All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Check if CSME is available before initializing PXP
@ 2025-07-15 23:00 Daniele Ceraolo Spurio
  2025-07-15 23:00 ` [PATCH 1/2] mei: me: Add exported function to check ME device availabiliy Daniele Ceraolo Spurio
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Daniele Ceraolo Spurio @ 2025-07-15 23:00 UTC (permalink / raw)
  To: intel-gfx
  Cc: Daniele Ceraolo Spurio, Rodrigo Vivi, Alexander Usyskin,
	Alan Previn, Greg Kroah-Hartman

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, the check for the device availability
is added to that driver and exported, with i915 calling it. The plan is
to merge both patches via the drm-intel tree.

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: Add exported function to check ME device availabiliy
  drm/i915/pxp: Do not support PXP if CSME is not available

 drivers/gpu/drm/i915/i915_module.c   |  1 +
 drivers/gpu/drm/i915/pxp/intel_pxp.c |  5 +++++
 drivers/misc/mei/pci-me.c            | 17 +++++++++++++++++
 include/linux/mei_me.h               | 20 ++++++++++++++++++++
 4 files changed, 43 insertions(+)
 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-07-30 15:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-15 23:00 [PATCH 0/2] Check if CSME is available before initializing PXP Daniele Ceraolo Spurio
2025-07-15 23:00 ` [PATCH 1/2] mei: me: Add exported function to check ME device availabiliy Daniele Ceraolo Spurio
2025-07-16  5:10   ` Greg Kroah-Hartman
2025-07-16 16:38     ` Daniele Ceraolo Spurio
2025-07-16 16:49       ` Greg Kroah-Hartman
2025-07-16 17:57         ` Daniele Ceraolo Spurio
2025-07-30 15:57           ` Daniele Ceraolo Spurio
2025-07-15 23:00 ` [PATCH 2/2] drm/i915/pxp: Do not support PXP if CSME is not available Daniele Ceraolo Spurio
2025-07-16 11:34   ` Valentine Burley
2025-07-15 23:53 ` ✓ i915.CI.BAT: success for Check if CSME is available before initializing PXP Patchwork
2025-07-16 17:45 ` ✗ i915.CI.Full: failure " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.