Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe: Check that GT is not NULL before testing Wa_16023588340

If the primary GT is disabled, skip the check for this workaround (which
only applies to dgpu platforms where the primary GT cannot be NULL).

Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Link: https://lore.kernel.org/r/20251013200944.2499947-44-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>

+2 -1
+2 -1
drivers/gpu/drm/xe/display/xe_display_wa.c
··· 13 13 bool intel_display_needs_wa_16023588340(struct intel_display *display) 14 14 { 15 15 struct xe_device *xe = to_xe_device(display->drm); 16 + struct xe_gt *wa_gt = xe_root_mmio_gt(xe); 16 17 17 - return XE_GT_WA(xe_root_mmio_gt(xe), 16023588340); 18 + return wa_gt && XE_GT_WA(wa_gt, 16023588340); 18 19 }