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

Upadhyay, Tejas tejas.upadhyay at intel.com
Thu May 4 12:15:21 UTC 2023



> -----Original Message-----
> From: Iddamsetty, Aravind <aravind.iddamsetty at intel.com>
> Sent: Thursday, May 4, 2023 5:34 PM
> To: Upadhyay, Tejas <tejas.upadhyay at intel.com>; intel-
> xe at lists.freedesktop.org
> Subject: Re: [PATCH 0/3] drm/xe: Add sysfs entry to report per gt memory
> size
> 
> 
> 
> 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.

This is where we used to create them using drm_class in i915. What should be right path as per you, as there is no mention in related JIRA. 

Gt folder was not there, I created it to have parity with i915. As we have requirement of "gt/gt<N>" mentioned in JIRA.

Thanks,
Tejas 

> 
> 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