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 385C8C77B7C for ; Wed, 25 Jun 2025 20:07:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EF16910E7D4; Wed, 25 Jun 2025 20:07:58 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="apy8sX0D"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id C5BD210E121 for ; Wed, 25 Jun 2025 20:07:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1750882078; x=1782418078; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BbKCdAuRyDMv4OxC5gAIadCTcjWIdMyzahPo3DzumWE=; b=apy8sX0DmgEw4/UVpBJ3+RHI1RwXEKEFZdRFDH2YqVewgl8I7OPmKvh6 xbK3bZxSwtteIzLpcS5tKbxmR/ZoA80szusZbUjR31g5ow0Ewb24bM9u0 j3YrUf96tWgMHwg1yj0t3G8xM0rBxLEet1J2cg2IcYzHprICXXtM9fVJw BD8fHo11pnbpdvU7lFv9jr3spEcCOPoXXDxuF+8n1ZP4RrReZn54Zyt5B 2A1riXAEV4IQbsLhwh92e9rU4zHuCrGLV2BbGMQaL6aLPfha6izjEJpQ+ CCyqVXxLQBuKh8/o+9n5CxgYb/5j+KAGPnjsXeGBl79tpz1rkvm6FNbLP Q==; X-CSE-ConnectionGUID: Sm8SbqyYRkOHjW2Sx/IxcA== X-CSE-MsgGUID: +jf1MoFWRqOCbqZPY1znCg== X-IronPort-AV: E=McAfee;i="6800,10657,11475"; a="52283730" X-IronPort-AV: E=Sophos;i="6.16,265,1744095600"; d="scan'208";a="52283730" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2025 13:07:57 -0700 X-CSE-ConnectionGUID: TQIXf8azRjCU6krOOySqyA== X-CSE-MsgGUID: PvR+3eenQxOu+S5kppC2OA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,265,1744095600"; d="scan'208";a="158076107" Received: from msatwood-mobl.jf.intel.com ([10.24.13.181]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2025 13:07:58 -0700 From: Matt Atwood To: intel-xe@lists.freedesktop.org Cc: matthew.d.roper@intel.com, rodrigo.vivi@intel.com, lucas.demarchi@intel.com, Matt Atwood Subject: [PATCH v4 5/5] drm/xe: disable wa_15015404425 for PTL B0 Date: Wed, 25 Jun 2025 13:07:50 -0700 Message-ID: <20250625200751.205166-6-matthew.s.atwood@intel.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250625200751.205166-1-matthew.s.atwood@intel.com> References: <20250625200751.205166-1-matthew.s.atwood@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" This workaround only applies to PTL Compute Die A0. The reality of modern platforms is we're Multi Chip Packages with logic spread across multiple dies. Because this information is not available during PCI probe it becomes a bit more complicated. This workaround needs to be applied on PTL until we prove that we are not Compute Die A0 stepping without reading any MMIOs. So use the new XE_DEVICE_WA infrastructure to apply early, until we can determine our stepping. There are at least two ways to determine Compute Die stepping. This patch uses the Media GT stepping to map to Compute Die stepping, in this case Compute and Media dies step synchronously. Since we're using the Media GT information to determine Compute Die stepping, use the XE_WA and the oob infrastructure to come back and toggle the workaround off when we know its safe, and after GT init. v2: rename SoC to device, avoid null pointer dereference, update commit message. v3: rebase Signed-off-by: Matt Atwood --- drivers/gpu/drm/xe/xe_pci.c | 7 +++++++ drivers/gpu/drm/xe/xe_wa_oob.rules | 2 ++ 2 files changed, 9 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c index a9f708608f3e..a294a1b26d8f 100644 --- a/drivers/gpu/drm/xe/xe_pci.c +++ b/drivers/gpu/drm/xe/xe_pci.c @@ -34,6 +34,9 @@ #include "xe_tile.h" #include "xe_wa.h" +#include "generated/xe_wa_oob.h" +#include "generated/xe_device_wa_oob.h" + enum toggle_d3cold { D3COLD_DISABLE, D3COLD_ENABLE, @@ -896,6 +899,10 @@ static int xe_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) drm_dbg(&xe->drm, "d3cold: capable=%s\n", str_yes_no(xe->d3cold.capable)); + if (xe->tiles->media_gt != NULL && + XE_WA(xe->tiles->media_gt, 15015404425_disable)) + xe->oob[XE_DEVICE_WA_OOB_15015404425] = 0; + return 0; err_driver_cleanup: diff --git a/drivers/gpu/drm/xe/xe_wa_oob.rules b/drivers/gpu/drm/xe/xe_wa_oob.rules index 96cc33da0fb5..255e67113406 100644 --- a/drivers/gpu/drm/xe/xe_wa_oob.rules +++ b/drivers/gpu/drm/xe/xe_wa_oob.rules @@ -70,3 +70,5 @@ no_media_l3 MEDIA_VERSION(3000) # SoC workaround - currently applies to all platforms with the following # primary GT GMDID 14022085890 GRAPHICS_VERSION(2001) + +15015404425_disable PLATFORM(PANTHERLAKE), MEDIA_STEP(B0, FOREVER) -- 2.49.0