Skip to content

drm/xe: Expose CRI memory capability limits via sysfs

Nareshkumar Gollakoti intel-xe 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 of 3 patches 0 repliesNew

2 of 3 patches are in this archive. The cover letter announces 3.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/xe/pcode: Add MEMORY_CONFIG mailbox definitionsdrivers/gpu/drm/xe/xe_pcode_api.h+4 -00 replies
2/3drm/xe: Rename xe_vram_freq to xe_vram_configdrivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/xe_tile_sysfs.c drivers/gpu/drm/xe/xe_vram_config.c +2 more+20 -200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 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

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 +-
 .../xe/{xe_vram_freq.c => xe_vram_config.c}   | 93 +++++++++++++++++--
 drivers/gpu/drm/xe/xe_vram_config.h           | 13 +++
 drivers/gpu/drm/xe/xe_vram_freq.h             | 13 ---
 7 files changed, 129 insertions(+), 24 deletions(-)
 rename drivers/gpu/drm/xe/{xe_vram_freq.c => xe_vram_config.c} (53%)
 create mode 100644 drivers/gpu/drm/xe/xe_vram_config.h
 delete mode 100644 drivers/gpu/drm/xe/xe_vram_freq.h
Signature · 1 line
2.43.0