[v3 0/2] Add memory sysfs directory and attributes

Upadhyay, Tejas tejas.upadhyay at intel.com
Tue Dec 12 03:58:11 UTC 2023



> -----Original Message-----
> From: Intel-xe <intel-xe-bounces at lists.freedesktop.org> On Behalf Of Matt
> Roper
> Sent: Tuesday, December 12, 2023 4:11 AM
> To: Sundaresan, Sujaritha <sujaritha.sundaresan at intel.com>
> Cc: intel-xe at lists.freedesktop.org
> Subject: Re: [v3 0/2] Add memory sysfs directory and attributes
> 
> On Thu, Dec 07, 2023 at 08:47:37PM +0530, Sujaritha Sundaresan wrote:
> > Create another layer of sub directories to clean up memory/vram
> > related sysfs path. Additionally, introduce the vram frequency sysfs
> > under a the new path.
> 
> What's the userspace consumer of this uAPI?  How will this wind up getting
> used in a real-world software stack?  Isn't stuff like the memory size already
> returned via the query interface?

/**
         * @actual_physical_size: Actual VRAM size
         *
         * Actual VRAM size including reserved portions
         * (e.g stolen mem)
         */
        resource_size_t actual_physical_size;> 

It is actual physical size, including reserved portions, which query interface does not count. Level0 UMD is consumer.  

Tejas
> 
> Matt
> 
> >
> > Sujaritha Sundaresan (2):
> >   drm/xe: Add a new memory directory under tile
> >   drm/xe: Add vram frequency sysfs attributes
> >
> >  drivers/gpu/drm/xe/xe_pcode_api.h  |   8 +++
> >  drivers/gpu/drm/xe/xe_tile_sysfs.c | 101
> > +++++++++++++++++++++++++++--
> >  2 files changed, 104 insertions(+), 5 deletions(-)
> >
> > --
> > 2.25.1
> >
> 
> --
> Matt Roper
> Graphics Software Engineer
> Linux GPU Platform Enablement
> Intel Corporation


More information about the Intel-xe mailing list