Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Check if CSME is available before initializing PXP
@ 2025-11-14 20:14 Daniele Ceraolo Spurio
  2025-11-14 20:14 ` [PATCH v3 1/2] mei: me: Export the PCI ID list Daniele Ceraolo Spurio
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Daniele Ceraolo Spurio @ 2025-11-14 20:14 UTC (permalink / raw)
  To: intel-gfx
  Cc: gregkh, Daniele Ceraolo Spurio, Rodrigo Vivi, Alexander Usyskin,
	Alan Previn

To support PXP, i915 needs to interface with CSME, which is done via the
component interface. However, BIOS/Coreboot can hide the CSME device,
which leads to i915 timing out waiting for the component to bind. While
PXP failing to initialize is a supported scenario (and there are several
possible ways for it to happen), the particular case where the CSME is
not available at all is something we can easily detect in the driver
and therefore avoid entirely, which means userspace doesn't need to
handle the error in this case.

Given that mei_me owns the CSME and already has a list of possible PCI
IDs for the device, we can export that and use it in the i915 driver
to perform the device availability check.

The plan is to merge both patches via the drm-intel tree.

v2: move the pci_dev_present check to i915, so that mei doesn't need to
care about locking. Also clarify why i915 does not require any locking.

v3: export the pci_id list directly from the mei driver instead of using
a wrapper function.

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Alexander Usyskin <alexander.usyskin@intel.com>
Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Daniele Ceraolo Spurio (2):
  mei: me: Export the PCI ID list
  drm/i915/pxp: Do not support PXP if CSME is not available

 drivers/gpu/drm/i915/pxp/intel_pxp.c | 25 +++++++++++++++++++++++++
 drivers/misc/mei/pci-me.c            | 12 +++++++++++-
 include/linux/mei_me.h               | 15 +++++++++++++++
 3 files changed, 51 insertions(+), 1 deletion(-)
 create mode 100644 include/linux/mei_me.h

-- 
2.43.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-11-26 22:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-14 20:14 [PATCH v3 0/2] Check if CSME is available before initializing PXP Daniele Ceraolo Spurio
2025-11-14 20:14 ` [PATCH v3 1/2] mei: me: Export the PCI ID list Daniele Ceraolo Spurio
2025-11-25 10:26   ` Jani Nikula
2025-11-25 22:00     ` Daniele Ceraolo Spurio
2025-11-26  9:25       ` Jani Nikula
2025-11-14 20:14 ` [PATCH v3 2/2] drm/i915/pxp: Do not support PXP if CSME is not available Daniele Ceraolo Spurio
2025-11-25 10:28   ` Jani Nikula
2025-11-25 22:07     ` Daniele Ceraolo Spurio
2025-11-26  9:31       ` Jani Nikula
2025-11-26 22:24         ` Daniele Ceraolo Spurio
2025-11-15 13:13 ` ✗ i915.CI.Full: failure for Check if CSME is available before initializing PXP (rev3) Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox