[Intel-xe] [PATCH V2 0/3] drm/xe: Add sysfs entry for tile and relate it to GTs

Tejas Upadhyay tejas.upadhyay at intel.com
Wed Jun 7 10:11:00 UTC 2023


With the separation of xe_tile and xe_gt, We now consider
a PCI device (xe_device) to contain one or more tiles (struct xe_tile).
Each tile will contain one or two GTs (struct xe_gt).

Sysfs entries also needs to be aligned as follows:

drm/xe: Add sysfs entry per tile - Adds tile sysfs infrastructure
drm/xe: Add GTs under respective tile sysfs - Relates GTs to each tile
sysfs
drm/xe: Add sysfs entry to report per tile memory size - Reports actual
physical memory per respective tile

Sysfs entries will be as follows:
cat /sys/class/drm/card1/device/tileN/addr_range

V2 : 
   - Address review comments

Cc: Ghimiray, Himal Prasad <himal.prasad.ghimiray at intel.com>
Cc: Aravind Iddamsetty <aravind.iddamsetty at intel.com>
Signed-off-by: Tejas Upadhyay <tejas.upadhyay at intel.com>
Tejas Upadhyay (3):
  drm/xe: Add sysfs entry for tile
  drm/xe: Add GTs under respective tile sysfs
  drm/xe: Add sysfs entry to report per tile memory size

 drivers/gpu/drm/xe/Makefile              |  1 +
 drivers/gpu/drm/xe/xe_device_types.h     |  9 +++
 drivers/gpu/drm/xe/xe_gt_sysfs.c         |  4 +-
 drivers/gpu/drm/xe/xe_mmio.c             |  1 +
 drivers/gpu/drm/xe/xe_tile.c             |  3 +
 drivers/gpu/drm/xe/xe_tile.h             |  2 +
 drivers/gpu/drm/xe/xe_tile_sysfs.c       | 82 ++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_tile_sysfs.h       | 19 ++++++
 drivers/gpu/drm/xe/xe_tile_sysfs_types.h | 27 ++++++++
 9 files changed, 146 insertions(+), 2 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/xe_tile_sysfs.c
 create mode 100644 drivers/gpu/drm/xe/xe_tile_sysfs.h
 create mode 100644 drivers/gpu/drm/xe/xe_tile_sysfs_types.h

-- 
2.25.1



More information about the Intel-xe mailing list