Skip to content

drm/xe: Add psmi support

Lucas De Marchi intel-xe 5 versions – In review

Get series with b4
b4 am [email protected] change-id 20250618-psmi-9f270bf67895

Versions newest first

  1. v5 Latest12 patches 2 repliesIn review
  2. v413 patches 5 repliesSuperseded
  3. v313 patches 19 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v27 patches0 repliesSuperseded
v14 patches2 repliesSuperseded

Changes in v5 from the cover letter

- Fix wrong check for GRAPHICS_STEP
- Remove patch to block changes in runtime: that needs changes in igt that can wait those patches to be reviewed:
https://patchwork.freedesktop.org/series/153175/
- Link to v4: https://lore.kernel.org/r/[email protected]

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12drm/xe/psmi: Add GuC flag to enable PSMIdrivers/gpu/drm/xe/xe_configfs.h drivers/gpu/drm/xe/xe_guc.c drivers/gpu/drm/xe/xe_guc_fwif.h+9 -10 replies
2/12drm/xe/psmi: Add debugfs interface for PSMIdrivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/xe_debugfs.c drivers/gpu/drm/xe/xe_device.c +3 more+337 -00 replies
3/12drm/xe/rtp: Add match for psmidrivers/gpu/drm/xe/xe_rtp.c drivers/gpu/drm/xe/xe_rtp.h+10 -00 replies
4/12drm/xe/psmi: Add Wa_14020001231drivers/gpu/drm/xe/abi/guc_klvs_abi.h drivers/gpu/drm/xe/xe_guc_ads.c drivers/gpu/drm/xe/xe_wa_oob.rules+9 -00 replies
5/12drm/xe/psmi: Add Wa_16023683509drivers/gpu/drm/xe/xe_guc.c drivers/gpu/drm/xe/xe_guc_fwif.h drivers/gpu/drm/xe/xe_wa_oob.rules+6 -01 reply
6/12drm/xe/configfs: Simplify kernel docdrivers/gpu/drm/xe/xe_configfs.c+3 -120 replies
7/12drm/xe/configfs: Allow to enable PSMIdrivers/gpu/drm/xe/xe_configfs.c drivers/gpu/drm/xe/xe_configfs.h+63 -50 replies
8/12drm/xe/configfs: Use guard() for dev->lockdrivers/gpu/drm/xe/xe_configfs.c+5 -80 replies
9/12drm/xe/configfs: Use tree-like output in documentationdrivers/gpu/drm/xe/xe_configfs.c+10 -20 replies
10/12drm/xe/configfs: Improve documentation stepsdrivers/gpu/drm/xe/xe_configfs.c+16 -40 replies
11/12drm/xe/configfs: Minor fixes to documentationdrivers/gpu/drm/xe/xe_configfs.c+5 -40 replies
12/12drm/xe/configfs: Dump custom settings when bindingdrivers/gpu/drm/xe/xe_configfs.c drivers/gpu/drm/xe/xe_configfs.h drivers/gpu/drm/xe/xe_pci.c+44 -00 replies

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchVinay BelgaumkarMatt AtwoodRiana TauroDnyaneshwar Bhadane
1/12R-b
2/12R-b
3/12R-b
4/12R-b
5/12R-b
6/12R-b
7/12R-b
8/12R-b
9/12R-b
10/12R-b
11/12R-b
12/12R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v5 thread

Cover letter [PATCH v5 00/12] drm/xe: Add psmi support

Add PSMI support to aid debugging. More information about PSMI is in the first and second patches.

Expose the toggle to enable it via configfs, which allows to debug just one of the possible cards attached.

The buffer allocation request is done via debugfs.

In order to apply WAs conditionally to using PSMI, a new RTP match is also added.

The rest of the patches are improvements to our configfs integration that I've been collecting while reviewing other semi-related patches.

---
Changes in v5:
- Fix wrong check for GRAPHICS_STEP
- Remove patch to block changes in runtime: that needs changes in igt that can wait those patches to be reviewed:
https://patchwork.freedesktop.org/series/153175/
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Rebase and handle feedback from reviews as noted in individual patches
- One open is if the reserved buffer needs to be cleared
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Rebase and refactor on multiple configfs changes
- Add patches to log to dmesg when non-default configfs value is found
- Block runtime changes of configfs attributes as they don't have any effect
- Improve documentation
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- configfs
- some refactors as noted on individual patches
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Badal Nilawar (1):

      drm/xe/psmi: Add Wa_14020001231

Lucas De Marchi (10):
drm/xe/psmi: Add GuC flag to enable PSMI drm/xe/psmi: Add debugfs interface for PSMI drm/xe/rtp: Add match for psmi drm/xe/configfs: Simplify kernel doc drm/xe/configfs: Allow to enable PSMI drm/xe/configfs: Use guard() for dev->lock drm/xe/configfs: Use tree-like output in documentation drm/xe/configfs: Improve documentation steps drm/xe/configfs: Minor fixes to documentation drm/xe/configfs: Dump custom settings when binding

Vinay Belgaumkar (1):

      drm/xe/psmi: Add Wa_16023683509
 drivers/gpu/drm/xe/Makefile           |   1 +
 drivers/gpu/drm/xe/abi/guc_klvs_abi.h |   1 +
 drivers/gpu/drm/xe/xe_configfs.c      | 170 +++++++++++++++----
 drivers/gpu/drm/xe/xe_configfs.h      |   4 +
 drivers/gpu/drm/xe/xe_debugfs.c       |   3 +
 drivers/gpu/drm/xe/xe_device.c        |   5 +
 drivers/gpu/drm/xe/xe_device_types.h  |   8 +
 drivers/gpu/drm/xe/xe_guc.c           |  10 +-
 drivers/gpu/drm/xe/xe_guc_ads.c       |   4 +
 drivers/gpu/drm/xe/xe_guc_fwif.h      |   2 +
 drivers/gpu/drm/xe/xe_pci.c           |   3 +
 drivers/gpu/drm/xe/xe_psmi.c          | 306 ++++++++++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_psmi.h          |  14 ++
 drivers/gpu/drm/xe/xe_rtp.c           |   7 +
 drivers/gpu/drm/xe/xe_rtp.h           |   3 +
 drivers/gpu/drm/xe/xe_wa_oob.rules    |   6 +
 16 files changed, 514 insertions(+), 33 deletions(-)

base-commit: 16e133c7e6922a9f224b272a48ac172cf06e3408
change-id: 20250618-psmi-9f270bf67895

Lucas De Marchi