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

Upadhyay, Tejas tejas.upadhyay at intel.com
Fri Jun 16 14:01:23 UTC 2023


IGT testcase for this series is at https://patchwork.freedesktop.org/series/119278/ .

Thanks,
Tejas

> -----Original Message-----
> From: Upadhyay, Tejas <tejas.upadhyay at intel.com>
> Sent: Thursday, June 8, 2023 1:16 PM
> To: intel-xe at lists.freedesktop.org
> Cc: Upadhyay, Tejas <tejas.upadhyay at intel.com>; Ghimiray; Ghimiray, Himal
> Prasad <himal.prasad.ghimiray at intel.com>; Iddamsetty, Aravind
> <aravind.iddamsetty at intel.com>
> Subject: [PATCH V3 0/3] drm/xe: Add sysfs entry for tile and relate it to GTs
> 
> 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
> 
> V3 :
>    - Make tile_sysfs_init return void and warn for errors
>    - Exclude DG1 as it does not have TILE_ADDR_RANGE reg
>    - Use sysfs_create_files -> sysfs_create_file
> 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       | 78 ++++++++++++++++++++++++
>  drivers/gpu/drm/xe/xe_tile_sysfs.h       | 19 ++++++
>  drivers/gpu/drm/xe/xe_tile_sysfs_types.h | 27 ++++++++
>  9 files changed, 142 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