drm/xe: Expose CRI memory capability limits via sysfs
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 3 repliesIn review
- v23 patches 0 repliesSuperseded
- v13 patches 0 repliesSuperseded
Changes in v3 from the cover letter
Reverted the device_uid version change because it was made by mistake
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | drm/xe/pcode: Add MEMORY_CONFIG mailbox definitionsdrivers/ | +4 | 0 replies | |
| 2/3 | drm/xe: Rename xe_vram_freq to xe_vram_configdrivers/ drivers/ drivers/ +2 more | +20 | 0 replies | |
| 3/3 | drm/xe: Expose CRI maximum memory frequency and bandwidth in sysfsDocumentation/ drivers/ | +132 | 3 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Badal Nilawar |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/3] drm/xe: Expose CRI memory capability limits via sysfs
This series adds read-only sysfs attributes for CRI devices to expose the maximum supported memory frequency and memory bandwidth.
These attributes allow userspace to discover platform memory capability limits. They are needed by compute runtime software, including NEO [1], for capability discovery on CRI.
The existing tile memory sysfs support currently focuses on frequency- related handling. Since it is now being extended to cover broader memory configuration information, rename the component/files from "freq" to "config" to better reflect their scope.
The new attributes provide a stable userspace interface for discovering platform memory capability limits.
The series consists of:
1. Add PCODE MEMORY_CONFIG mailbox definitions and subcommands
2. Rename xe_vram_freq to xe_vram_config
3. Expose maximum memory frequency and bandwidth through sysfs for CRI
Reference:[1]
https://github.com/intel-innersource/drivers.gpu.compute.runtime/pull/57544
v2:(Sashiko/Badal)
RB'd as per [2] [2]https://patchwork.freedesktop.org/patch/770315/?series=178849&rev=1
1. Fixed CFI violation by updating attribute types and callback signatures
2. Added a check for xe->info.skip_pcode in memory_groups() to prevent exposing these attributes on Virtual Functions,
where PCODE access is disabled.
3. Changed kernel version in documentation from 7.4 to 7.5
v3:
Reverted the device_uid version change because it was made by mistake
Himal Prasad Ghimiray (3):
drm/xe/pcode: Add MEMORY_CONFIG mailbox definitions drm/xe: Rename xe_vram_freq to xe_vram_config
drm/xe: Expose CRI maximum memory frequency and bandwidth in sysfs
.../ABI/testing/sysfs-driver-intel-xe-gpu | 24 ++ drivers/gpu/drm/xe/Makefile | 2 +- drivers/gpu/drm/xe/xe_pcode_api.h | 4 + drivers/gpu/drm/xe/xe_tile_sysfs.c | 4 +- drivers/gpu/drm/xe/xe_vram_config.c | 217 ++++++++++++++++++ drivers/gpu/drm/xe/xe_vram_config.h | 13 ++ drivers/gpu/drm/xe/xe_vram_freq.c | 123 ---------- drivers/gpu/drm/xe/xe_vram_freq.h | 13 -- 8 files changed, 261 insertions(+), 139 deletions(-) create mode 100644 drivers/gpu/drm/xe/xe_vram_config.c create mode 100644 drivers/gpu/drm/xe/xe_vram_config.h delete mode 100644 drivers/gpu/drm/xe/xe_vram_freq.c delete mode 100644 drivers/gpu/drm/xe/xe_vram_freq.h
Signature · 1 line
2.43.0