diff options
author | Vinay Belgaumkar <vinay.belgaumkar@intel.com> | 2021-07-30 13:21:08 -0700 |
---|---|---|
committer | John Harrison <John.C.Harrison@Intel.com> | 2021-08-03 16:05:24 -0700 |
commit | 7695d08f1e30f361502e9c19b6d330234d4ca755 (patch) | |
tree | cbbbbf12bdcc7710d75d484f0e7a0f354e8b67e4 /drivers/gpu/drm/i915/gt/uc/intel_guc.c | |
parent | 7ba79a671568b8d9d014f7a4c6fc8dfeb70c0d2d (diff) | |
download | linux-stable-7695d08f1e30f361502e9c19b6d330234d4ca755.tar.gz linux-stable-7695d08f1e30f361502e9c19b6d330234d4ca755.tar.bz2 linux-stable-7695d08f1e30f361502e9c19b6d330234d4ca755.zip |
drm/i915/guc/slpc: Adding SLPC communication interfaces
Add constants and params that are needed to configure SLPC.
v2: Add a new abi header for SLPC. Replace bitfields with
genmasks. Address other comments from Michal W.
v3: Add slpc H2G format in abi, other review commments (Michal W)
v4: Update status bits according to latest spec
v5: checkpatch()
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Signed-off-by: Sundaresan Sujaritha <sujaritha.sundaresan@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210730202119.23810-4-vinay.belgaumkar@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/gt/uc/intel_guc.c')
-rw-r--r-- | drivers/gpu/drm/i915/gt/uc/intel_guc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc.c b/drivers/gpu/drm/i915/gt/uc/intel_guc.c index 39bc3c16057b..5b0f8c541b69 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_guc.c +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc.c @@ -208,6 +208,9 @@ static u32 guc_ctl_feature_flags(struct intel_guc *guc) if (!intel_guc_submission_is_used(guc)) flags |= GUC_CTL_DISABLE_SCHEDULER; + if (intel_guc_slpc_is_used(guc)) + flags |= GUC_CTL_ENABLE_SLPC; + return flags; } |