From: Matt Roper Date: Mon, 13 Oct 2025 20:10:02 +0000 (-0700) Subject: drm/xe: Check that GT is not NULL before testing Wa_16023588340 X-Git-Tag: v6.19-rc1~157^2~25^2~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5dfc8989694001aff99348eef3c69c3294ea8e09;p=thirdparty%2Flinux.git 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 Link: https://lore.kernel.org/r/20251013200944.2499947-44-matthew.d.roper@intel.com Signed-off-by: Matt Roper --- diff --git a/drivers/gpu/drm/xe/display/xe_display_wa.c b/drivers/gpu/drm/xe/display/xe_display_wa.c index 8ada1cbcb16c5..2aa1b8c03411f 100644 --- a/drivers/gpu/drm/xe/display/xe_display_wa.c +++ b/drivers/gpu/drm/xe/display/xe_display_wa.c @@ -13,6 +13,7 @@ bool intel_display_needs_wa_16023588340(struct intel_display *display) { struct xe_device *xe = to_xe_device(display->drm); + struct xe_gt *wa_gt = xe_root_mmio_gt(xe); - return XE_GT_WA(xe_root_mmio_gt(xe), 16023588340); + return wa_gt && XE_GT_WA(wa_gt, 16023588340); }