Skip to content

Commit 59c8cd3

Browse files
committed
drm/i915/mtl/huc: Use the media gt for the HuC getparam
On MTL, for obvious reasons, HuC is only available on the media tile. We already disable SW support for HuC on the root gt due to the absence of VCS engines, but we also need to update the getparam to point to the HuC struct in the media GT. Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: John Harrison <John.C.Harrison@Intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230531235415.1467475-7-daniele.ceraolospurio@intel.com
1 parent 08872cb commit 59c8cd3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

drivers/gpu/drm/i915/i915_getparam.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ int i915_getparam_ioctl(struct drm_device *dev, void *data,
100100
value = sseu->min_eu_in_pool;
101101
break;
102102
case I915_PARAM_HUC_STATUS:
103-
value = intel_huc_check_status(&to_gt(i915)->uc.huc);
103+
/* On platform with a media GT, the HuC is on that GT */
104+
if (i915->media_gt)
105+
value = intel_huc_check_status(&i915->media_gt->uc.huc);
106+
else
107+
value = intel_huc_check_status(&to_gt(i915)->uc.huc);
104108
if (value < 0)
105109
return value;
106110
break;

0 commit comments

Comments
 (0)