[Intel-xe] [PATCH 0/3] drm/xe: Add sysfs entry for tile and relate it to GTs
Tejas Upadhyay
tejas.upadhyay at intel.com
Tue Jun 6 11:12:52 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
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 per 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 | 8 ++
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 | 105 +++++++++++++++++++++++
drivers/gpu/drm/xe/xe_tile_sysfs.h | 19 ++++
drivers/gpu/drm/xe/xe_tile_sysfs_types.h | 27 ++++++
9 files changed, 168 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