[Intel-xe] [PATCH 0/3] drm/xe: Add sysfs entry to report per gt memory size

Iddamsetty, Aravind aravind.iddamsetty at intel.com
Thu May 4 12:04:11 UTC 2023



On 04-05-2023 16:50, Tejas Upadhyay wrote:
> Add sysfs entry to read per gt physical memory
> in total including stolen memory.
> 
> The sysfs entry added can be read using:
> cat /sys/class/drm/card1/gt/gt0/addr_range
> cat /sys/class/drm/card1/gt/gt1/addr_range
is this the right sysfs path? i do not think gt is enumerated under card
folder and also there is no top level gt folder as in i915.

Thanks,
Aravind.
> 
> As it involves drm_class, it required movement in
> xe_device init flow, patch for same is part of this
> series.
> 
> Actual physical memory per GT was dependent on infra patch
> from Ruhl, Michael J, so I have added it as part of this
> series to pass through pre-merge.
> Patchwork: https://patchwork.freedesktop.org/series/117126/#rev3
> 
> Cc: Aravind Iddamsetty <aravind.iddamsetty at intel.com>
> Signed-off-by: Tejas Upadhyay <tejas.upadhyay at intel.com>
> 
> Tejas Upadhyay (3):
>   drm/xe: Rework multi tile device memory initialization
>   drm/xe: Register drm device prior to gt init
>   drm/xe: Add sysfs entry to report per gt memory size
> 
>  drivers/gpu/drm/xe/regs/xe_gt_regs.h   |   2 +-
>  drivers/gpu/drm/xe/xe_bo.c             |   8 +-
>  drivers/gpu/drm/xe/xe_bo.h             |   2 +-
>  drivers/gpu/drm/xe/xe_device.c         |   8 +-
>  drivers/gpu/drm/xe/xe_device_types.h   |  20 +-
>  drivers/gpu/drm/xe/xe_gt_sysfs.c       |  74 ++++++-
>  drivers/gpu/drm/xe/xe_gt_sysfs.h       |   1 -
>  drivers/gpu/drm/xe/xe_gt_types.h       |  21 +-
>  drivers/gpu/drm/xe/xe_migrate.c        |   6 +-
>  drivers/gpu/drm/xe/xe_mmio.c           | 279 ++++++++++++++-----------
>  drivers/gpu/drm/xe/xe_mmio.h           |   4 +-
>  drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c |  30 +--
>  12 files changed, 291 insertions(+), 164 deletions(-)
> 


More information about the Intel-xe mailing list