Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/16] Work around media 52-bit limitation on CRI
@ 2026-11-20  5:47 Stuart Summers
  2026-11-20  5:47 ` [PATCH 01/16] drm/xe/sysctrl: Use preallocated mailbox staging buffers Stuart Summers
                   ` (15 more replies)
  0 siblings, 16 replies; 22+ messages in thread
From: Stuart Summers @ 2026-11-20  5:47 UTC (permalink / raw)
  Cc: rodrigo.vivi, riana.tauro, anoop.c.vijay, matthew.d.roper,
	fei.yang, intel-xe, Stuart Summers

Note this is somewhat of an RFC right now to get early feedback. I'm
planning a follow up to clean some of this up shortly.

This is a combination of two series I have on the list now, [1] and [2].
I've already gotten some feedback from Rodrigo and Sashiko on both of
these I'm planning to incorporate. Apologies those updates didn't make
it in to this series yet. I'm also planning on reviewing at least [1]
separately since this likely needs more discussion anyway and isn't
strictly related/required to the current series.

The main two patches I'm interested in getting feedback in the meantime
are:
  drm/xe: Add enable_media module parameter
  drm/xe: Work around media 52-bit limitation on CRI

The latter is the crux of the workaround here. The first sets up
the module parameter which will be used to disable media by default.

The reason to include a module parameter here is we have some customers
who are planning many CRI devices on a single host. The request from
those customers is to have a way to configure all of the cards on
that host at one time rather than having to loop through each device
separately (i.e. module parameter instead of configfs). We do already
have a configfs that allows media to be disabled
(gt_types_allowed = 'primary'), but this is both meant for developer
debug, not production configuration, and it requires that per-device
configuration.

The workaround details are provided in that last patch in the series
so I won't duplicate all of that here, but at a high level, media
is now disabled by default and in order to maintain performance for
compute when media is enabled on a system that supports 52-bit
addressing, PCIe level address translation is supported, but an
internal configuration of address translation for the media GAM
is disabled. Again, the details of how this is done are in that last
patch.

Again, I'm not planning on merging these as-is, but just to clarify,
[1] is attempting to separate the primary and media GT. This is mostly
for debug but also used to refactor for that last patch. Likely in
the repost I'll just drop this for now and review it completely
separately, skipping this refactor unless it's deemed particularly
interesting.

[2] is adding a few fixes and refactors in preparation for the actual
workaround so I'll be keeping these in the repost. Two of the three
patches there have been reviewed (with some feedback) already. The
third I'm planning to drop after feedback from Rodrigo.

[1] https://patchwork.freedesktop.org/series/178247/
[2] https://patchwork.freedesktop.org/series/177792/

Stuart Summers (16):
  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
  drm/xe: Add enable_media module parameter
  drm/xe: Detect each GMD_ID IP in a loop
  drm/xe: Tolerate a missing graphics IP in xe_info_init()
  drm/xe: Verify IP presence against GU_CNTL
  drm/xe: Guard per-tile primary GT accesses
  drm/xe: Stop assuming the root tile has a primary GT
  drm/xe: Do not claim flat CCS without a graphics IP
  drm/xe: Run page table updates on the media GT when there is no
    primary
  drm/xe: Document that gt_types_allowed=media now probes
  drm/xe: Fall back to CPU copies when the tile cannot blit
  drm/xe: Require a fully visible VRAM BAR without a primary GT
  drm/xe: Allow probe without a primary GT
  drm/xe: Work around media 52-bit limitation on CRI

 drivers/gpu/drm/xe/regs/xe_regs.h             |   2 +
 drivers/gpu/drm/xe/xe_bo.c                    |  43 +++-
 drivers/gpu/drm/xe/xe_configfs.c              |  10 +-
 drivers/gpu/drm/xe/xe_defaults.h              |   1 +
 drivers/gpu/drm/xe/xe_device.c                |  27 +-
 drivers/gpu/drm/xe/xe_device.h                |  17 ++
 drivers/gpu/drm/xe/xe_device_types.h          |   2 +
 drivers/gpu/drm/xe/xe_device_wa_oob.rules     |   1 +
 drivers/gpu/drm/xe/xe_exec_queue.c            |   5 +-
 drivers/gpu/drm/xe/xe_gt.c                    |  11 +-
 drivers/gpu/drm/xe/xe_memirq.c                |   3 +-
 drivers/gpu/drm/xe/xe_migrate.c               |  45 +++-
 drivers/gpu/drm/xe/xe_migrate.h               |   2 +
 drivers/gpu/drm/xe/xe_module.c                |   7 +
 drivers/gpu/drm/xe/xe_module.h                |   1 +
 drivers/gpu/drm/xe/xe_oa.c                    |  24 +-
 drivers/gpu/drm/xe/xe_pagefault.c             |   4 +-
 drivers/gpu/drm/xe/xe_pci.c                   | 241 ++++++++++++++----
 drivers/gpu/drm/xe/xe_pm.c                    |  13 +-
 drivers/gpu/drm/xe/xe_query.c                 |   3 +-
 drivers/gpu/drm/xe/xe_sysctrl.c               | 191 +++++++++++++-
 drivers/gpu/drm/xe/xe_sysctrl.h               |   2 +
 drivers/gpu/drm/xe/xe_sysctrl_mailbox.c       |  56 ++--
 drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h |  34 +++
 drivers/gpu/drm/xe/xe_sysctrl_types.h         |  17 ++
 drivers/gpu/drm/xe/xe_tile.h                  |  32 +++
 drivers/gpu/drm/xe/xe_tlb_inval.c             |  20 +-
 drivers/gpu/drm/xe/xe_vm.c                    |   2 +-
 drivers/gpu/drm/xe/xe_vram.c                  |  15 ++
 29 files changed, 678 insertions(+), 153 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-11-20  6:13 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20  5:47 [PATCH 00/16] Work around media 52-bit limitation on CRI Stuart Summers
2026-11-20  5:47 ` [PATCH 01/16] drm/xe/sysctrl: Use preallocated mailbox staging buffers Stuart Summers
2026-11-20  5:52   ` sashiko-bot
2026-11-20  5:47 ` [PATCH 02/16] drm/xe: Process device OOB workarounds during early info init Stuart Summers
2026-11-20  5:47 ` [PATCH 03/16] drm/xe/sysctrl: Restore the SoC remapper on every runtime resume Stuart Summers
2026-11-20  5:47 ` [PATCH 04/16] drm/xe: Add enable_media module parameter Stuart Summers
2026-11-20  5:47 ` [PATCH 05/16] drm/xe: Detect each GMD_ID IP in a loop Stuart Summers
2026-11-20  5:47 ` [PATCH 06/16] drm/xe: Tolerate a missing graphics IP in xe_info_init() Stuart Summers
2026-11-20  5:47 ` [PATCH 07/16] drm/xe: Verify IP presence against GU_CNTL Stuart Summers
2026-11-20  5:47 ` [PATCH 08/16] drm/xe: Guard per-tile primary GT accesses Stuart Summers
2026-11-20  5:47 ` [PATCH 09/16] drm/xe: Stop assuming the root tile has a primary GT Stuart Summers
2026-11-20  5:47 ` [PATCH 10/16] drm/xe: Do not claim flat CCS without a graphics IP Stuart Summers
2026-11-20  5:47 ` [PATCH 11/16] drm/xe: Run page table updates on the media GT when there is no primary Stuart Summers
2026-11-20  6:10   ` sashiko-bot
2026-11-20  5:47 ` [PATCH 12/16] drm/xe: Document that gt_types_allowed=media now probes Stuart Summers
2026-11-20  5:47 ` [PATCH 13/16] drm/xe: Fall back to CPU copies when the tile cannot blit Stuart Summers
2026-11-20  6:09   ` sashiko-bot
2026-11-20  5:47 ` [PATCH 14/16] drm/xe: Require a fully visible VRAM BAR without a primary GT Stuart Summers
2026-11-20  5:47 ` [PATCH 15/16] drm/xe: Allow probe " Stuart Summers
2026-11-20  6:13   ` sashiko-bot
2026-11-20  5:47 ` [PATCH 16/16] drm/xe: Work around media 52-bit limitation on CRI Stuart Summers
2026-11-20  6:11   ` sashiko-bot

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