Work around media 52-bit limitation on CRI
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest16 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | drm/xe/sysctrl: Use preallocated mailbox staging buffersdrivers/ drivers/ | +31 | 0 replies | |
| 2/16 | drm/xe: Process device OOB workarounds during early info initdrivers/ drivers/ | +14 | 0 replies | |
| 3/16 | drm/xe/sysctrl: Restore the SoC remapper on every runtime resumedrivers/ drivers/ | +11 | 0 replies | |
| 4/16 | drm/xe: Add enable_media module parameterdrivers/ drivers/ drivers/ +5 more | +47 | 0 replies | |
| 5/16 | drm/xe: Detect each GMD_ID IP in a loopdrivers/ | +42 | 0 replies | |
| 6/16 | drm/xe: Tolerate a missing graphics IP in xe_info_init()drivers/ | +21 | 0 replies | |
| 7/16 | drm/xe: Verify IP presence against GU_CNTLdrivers/ drivers/ | +28 | 0 replies | |
| 8/16 | drm/xe: Guard per-tile primary GT accessesdrivers/ drivers/ | +13 | 0 replies | |
| 9/16 | drm/xe: Stop assuming the root tile has a primary GTdrivers/ drivers/ drivers/ +2 more | +43 | 0 replies | |
| 10/16 | drm/xe: Do not claim flat CCS without a graphics IPdrivers/ | +8 | 0 replies | |
| 11/16 | drm/xe: Run page table updates on the media GT when there is no primarydrivers/ drivers/ drivers/ +1 more | +57 | 0 replies | |
| 12/16 | drm/xe: Document that gt_types_allowed=media now probesdrivers/ | +3 | 0 replies | |
| 13/16 | drm/xe: Fall back to CPU copies when the tile cannot blitdrivers/ drivers/ drivers/ | +47 | 0 replies | |
| 14/16 | drm/xe: Require a fully visible VRAM BAR without a primary GTdrivers/ | +15 | 0 replies | |
| 15/16 | drm/xe: Allow probe without a primary GTdrivers/ | +9 | 0 replies | |
| 16/16 | drm/xe: Work around media 52-bit limitation on CRIdrivers/ drivers/ drivers/ +5 more | +294 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/16] Work around media 52-bit limitation on CRI
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(-)
Signature · 1 line
2.43.0