From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 91593CCD18F for ; Mon, 13 Oct 2025 20:10:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4D30710E502; Mon, 13 Oct 2025 20:10:17 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Fnj7km7x"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id D62B910E507 for ; Mon, 13 Oct 2025 20:10:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1760386204; x=1791922204; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tyxLl+ijl0BKlq/pr2uYEsVHvC8UsbQB4ucvCrZLkso=; b=Fnj7km7x+oZL1hux3SqcaiHoueJoCZJNDnrmGK4XO/Dp9swaBhFY2caJ HiaxKYi+b4NPog9tujYPzSoiMr/ztXgpQb5MLiQwheKnZGkPrARlsYnKQ FfwHglv91t6VYRvGhoni7zwiT8CFyVVvhF4sjyp/e+XxT2FCLkqEpHst8 kbLRuZauSaHBFZdYa3ipnWPjk/fSxjoIyb54PSVinOTKkN+kB+pMIHdwz EYqBmrxHhQMq4RhlsCr/1QCoz5fCMXwwd5C+HuzfeOITys+O07pQTDg6i bq7q2ayyeht8AxudkjfOB4pHzX6Qi4YJPmc6ufkzKdK8nCSUvxGaVKBKy A==; X-CSE-ConnectionGUID: F7sa70KqTROBR+f4L7rSOQ== X-CSE-MsgGUID: tb+gL4uMS4mdFsv3fxiCJw== X-IronPort-AV: E=McAfee;i="6800,10657,11581"; a="72800556" X-IronPort-AV: E=Sophos;i="6.19,226,1754982000"; d="scan'208";a="72800556" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2025 13:10:03 -0700 X-CSE-ConnectionGUID: gc7iD7+ZSQaZcOzDnP+qiQ== X-CSE-MsgGUID: hXPAm9KZSUOxd/6jwkFIdA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,226,1754982000"; d="scan'208";a="185707615" Received: from mdroper-desk1.fm.intel.com ([10.1.39.133]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2025 13:10:03 -0700 From: Matt Roper To: intel-xe@lists.freedesktop.org Cc: matthew.d.roper@intel.com, Tejas Upadhyay Subject: [PATCH v5 19/23] drm/xe: Check that GT is not NULL before testing Wa_16023588340 Date: Mon, 13 Oct 2025 13:10:02 -0700 Message-ID: <20251013200944.2499947-44-matthew.d.roper@intel.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251013200944.2499947-25-matthew.d.roper@intel.com> References: <20251013200944.2499947-25-matthew.d.roper@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" 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). Signed-off-by: Matt Roper Reviewed-by: Tejas Upadhyay --- drivers/gpu/drm/xe/display/xe_display_wa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xe/display/xe_display_wa.c b/drivers/gpu/drm/xe/display/xe_display_wa.c index 8ada1cbcb16c..2aa1b8c03411 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); } -- 2.51.0