Skip to content

Add a few sysctrl refactors in preparation for

Stuart Summers intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/xe/sysctrl: Use preallocated mailbox staging buffersdrivers/gpu/drm/xe/xe_sysctrl_mailbox.c drivers/gpu/drm/xe/xe_sysctrl_types.h+31 -361 reply
2/3drm/xe: Process device OOB workarounds during early info initdrivers/gpu/drm/xe/xe_device.c drivers/gpu/drm/xe/xe_pci.c+14 -32 replies
3/3drm/xe/sysctrl: Restore the SoC remapper on every runtime resumedrivers/gpu/drm/xe/xe_pm.c drivers/gpu/drm/xe/xe_sysctrl.c+11 -42 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchRodrigo Vivi
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Add a few sysctrl refactors in preparation for

I'm doing some debug right now that touches address translation (ATS) configuration around the suspend/resume time. Right now, we're re-enabling ATS through the resume path regardless of whether we get the d3cold hint, but we only re-enable the system controller when the d3cold.allowed is set. This means if I'm trying to touch this through the firmware, I might not be able to do that easily on the resume path.

In this series I'm adding a few refactors that allow this kind of debug. The first patch moves from a dynamic allocation of some of the sysctrl buffers to static allocation to avoid re-allocation in the resume path. The second patch moves the workaround initialization a little earlier in the driver for an easier hook here. And the third patch moves the sysctrl initialization outside of that d3cold.allowed hint in the resume path.

All of this was developed in collaboration with Claude Opus.

Stuart Summers (3):
drm/xe/sysctrl: Use preallocated mailbox staging buffers drm/xe: Process device OOB workarounds during early info init drm/xe/sysctrl: Restore the SoC remapper on every runtime resume

 drivers/gpu/drm/xe/xe_device.c          |  3 --
 drivers/gpu/drm/xe/xe_pci.c             | 14 +++++++
 drivers/gpu/drm/xe/xe_pm.c              |  9 +++-
 drivers/gpu/drm/xe/xe_sysctrl.c         |  6 ++-
 drivers/gpu/drm/xe/xe_sysctrl_mailbox.c | 56 +++++++++----------------
 drivers/gpu/drm/xe/xe_sysctrl_types.h   | 11 +++++
 6 files changed, 56 insertions(+), 43 deletions(-)
Signature · 1 line
2.43.0