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 96A11C77B7C for ; Wed, 25 Jun 2025 20:07:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4E26510E00D; Wed, 25 Jun 2025 20:07:56 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="R0QMg5Mb"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id ACAEA10E00D for ; Wed, 25 Jun 2025 20:07:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1750882074; x=1782418074; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=mPiRfB0uUCRbw7+EBLwudGnQbrfH3YAipX6g8MXbDBY=; b=R0QMg5MbSTXRDUgASNNlCpgsevUKfEuPSMZa45mR1lKC3n6KUe4JcTeE 6QKNxFEMUHPPCZ2V43ud9zUJsrrDGwZu4FXBs5hhVdKQzqJvHqehVkRcS URLXct3cafU6H1j5KEJLSYzRgRmJrm4NQbJBfodQLbCh/RvLOMwQOZclf RsmXZP5jvHtGV7EKFkJLS4m2tq2FsQ4BriEte4K1uTpnLjwEcXpsiS6ru dyONL2sUC+8Wzr72CBeOgXMljPh8U2X37K4tsCyseTz4yZKIaY9qydyo1 c9dcoLNGybflCKbgE4LJgOw/IqQSztafhmtgHiagsc1LqzbMkeMkTbhuF g==; X-CSE-ConnectionGUID: XU44SEkIQYmEj8UV0achDQ== X-CSE-MsgGUID: 3l6ducEjStCSeJGGQsyuow== X-IronPort-AV: E=McAfee;i="6800,10657,11475"; a="52283721" X-IronPort-AV: E=Sophos;i="6.16,265,1744095600"; d="scan'208";a="52283721" 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:54 -0700 X-CSE-ConnectionGUID: 33dLWjjfSBappMxpKqzjLA== X-CSE-MsgGUID: qZwEr0yoRL2EaONNxZnmSw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,265,1744095600"; d="scan'208";a="158076078" 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:54 -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 v2 0/5] drm/xe: Create and use XE_DEVICE_WA infrastructure Date: Wed, 25 Jun 2025 13:07:45 -0700 Message-ID: <20250625200751.205166-1-matthew.s.atwood@intel.com> X-Mailer: git-send-email 2.49.0 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" There currently is not a way to apply and track workarounds that are needed ahead of GT init. This series adds a bit field to the xe_device structure similar to those in the GT structures to apply and track workarounds applied at runtime (oobs). Device workarounds in this new infrastructure are tracked in the existing sysfs entries in gtX/workarounds. Currently 15015404425 is the only workaround like this, so move it to using this new infrastructure. PTL A0 is impacted by 15015404425, but only applies to Compute Die A0 stepping. The reality of modern platforms is that we're a Multi Chip Package with logic spread acress multiple dies. This information not being readily available during PCI probe without a read makes this more complicated. Apply 15015404425 to PTL unconditionally during PCI probe (and GT init). After GT init use the Media GT stepping to determine if we can disable this workaround. v2: Change naming from SoC to device, address styling issues, update commit messages v3: rebase v4: fix compile issue Matt Atwood (5): drm/xe: add xe_device_wa infrastructure drm/xe: Add infrastructure for Device OOB workarounds drm/xe: Move Wa_15015404425 to use the new EX_DEVICE_WA macro drm/xe: extend Wa_15015404425 to apply to PTL drm/xe: disable wa_15015404425 for PTL B0 drivers/gpu/drm/xe/Makefile | 11 +++++- drivers/gpu/drm/xe/xe_device_types.h | 9 +++++ drivers/gpu/drm/xe/xe_device_wa_oob.rules | 2 + drivers/gpu/drm/xe/xe_gen_wa_oob.c | 27 +++++++++---- drivers/gpu/drm/xe/xe_mmio.c | 10 ++--- drivers/gpu/drm/xe/xe_pci.c | 11 ++++++ drivers/gpu/drm/xe/xe_rtp.c | 5 +++ drivers/gpu/drm/xe/xe_rtp.h | 3 +- drivers/gpu/drm/xe/xe_rtp_types.h | 2 + drivers/gpu/drm/xe/xe_wa.c | 46 +++++++++++++++++++++++ drivers/gpu/drm/xe/xe_wa.h | 18 +++++++-- drivers/gpu/drm/xe/xe_wa_oob.rules | 1 + 12 files changed, 127 insertions(+), 18 deletions(-) create mode 100644 drivers/gpu/drm/xe/xe_device_wa_oob.rules -- 2.49.0