Work around 52-bit limitation in CRI media
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | drm/xe: Add enable_media module parameterdrivers/ drivers/ drivers/ +5 more | +49 | 2 replies | |
| 2/2 | drm/xe: Work around media 52-bit limitation on CRIdrivers/ drivers/ drivers/ +5 more | +285 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] Work around 52-bit limitation in CRI media
Individual commits have the detail of the workaround. Essentially we are now disabling media by default to give a more consistent user experience for CRI given that media can only be used in specific configurations. To enable, there is certain criteria that must be met, but essentially this means host addresses above 46 bits must be translated down to within 46 bits before being sent into the media IP. If the KMD cannot guarantee this, media is disabled.
I had submitted a version of this series already which had some extra preliminiary patches (which have now been merged) and some patches I was using for debug. For some reason patchworks isn't working for me. This series just takes the most critical patches for the workaround. The for-debug patches from that other series I'll submit and review separately.
I tested this on a Xeon based CRI that was seeing the original issue and confirmed this is no longer present with the workaround and the appropriate changes in the IFWI.
v2: Addressed the review feedback from Rodrigo and Sashiko.
I decided to go with an upleveled macro for the architecture physical limit.
Using the GMD ID instead of the media_gt structure to determine media presence now.
Moved a few of the logs from xe_info to xe_dbg. I had them mistakenly as info for debugging, but no need to spam here.
I didn't remove the module parameter for now. I know there is still some ongoing discussion there. I'd like to conclude on that before making any changes. Retested all the basic cases here on a 52-bit system that was previously hitting the issue and it isn't reproducible.
Stuart Summers (2):
drm/xe: Add enable_media module parameter drm/xe: Work around media 52-bit limitation on CRI
drivers/gpu/drm/xe/xe_configfs.c | 3 + drivers/gpu/drm/xe/xe_defaults.h | 1 + drivers/gpu/drm/xe/xe_device.c | 24 +++ drivers/gpu/drm/xe/xe_device.h | 1 + drivers/gpu/drm/xe/xe_device_types.h | 2 + drivers/gpu/drm/xe/xe_device_wa_oob.rules | 1 + drivers/gpu/drm/xe/xe_module.c | 7 + drivers/gpu/drm/xe/xe_module.h | 1 + drivers/gpu/drm/xe/xe_pci.c | 85 ++++++++- drivers/gpu/drm/xe/xe_pm.c | 7 +- drivers/gpu/drm/xe/xe_sysctrl.c | 164 ++++++++++++++++++ drivers/gpu/drm/xe/xe_sysctrl.h | 2 + drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 34 ++++ drivers/gpu/drm/xe/xe_sysctrl_types.h | 6 + 14 files changed, 332 insertions(+), 6 deletions(-)
Signature · 1 line
2.43.0