[PATCH 2/5] drm/xe: Helper to get memory region from tile

Zeng, Oak oak.zeng at intel.com
Fri Mar 15 02:48:17 UTC 2024



> -----Original Message-----
> From: Brost, Matthew <matthew.brost at intel.com>
> Sent: Thursday, March 14, 2024 1:44 PM
> To: Zeng, Oak <oak.zeng at intel.com>
> Cc: intel-xe at lists.freedesktop.org; Hellstrom, Thomas
> <thomas.hellstrom at intel.com>; airlied at gmail.com; Welty, Brian
> <brian.welty at intel.com>; Ghimiray, Himal Prasad
> <himal.prasad.ghimiray at intel.com>
> Subject: Re: [PATCH 2/5] drm/xe: Helper to get memory region from tile
> 
> On Wed, Mar 13, 2024 at 11:35:50PM -0400, Oak Zeng wrote:
> > Signed-off-by: Oak Zeng <oak.zeng at intel.com>
> 
> Missed this. Need a commit message. Also this looks to be unused in this series.

Yes... I accidently picked wrong patch. Will drop this one and pick up the correct one.

Oak
> 
> Matt
> 
> > ---
> >  drivers/gpu/drm/xe/xe_device_types.h | 5 +++++
> >  1 file changed, 5 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/xe/xe_device_types.h
> b/drivers/gpu/drm/xe/xe_device_types.h
> > index f27c3bee8ce7..bbea40b57e84 100644
> > --- a/drivers/gpu/drm/xe/xe_device_types.h
> > +++ b/drivers/gpu/drm/xe/xe_device_types.h
> > @@ -571,4 +571,9 @@ struct xe_file {
> >  	struct xe_drm_client *client;
> >  };
> >
> > +static inline struct xe_tile *mem_region_to_tile(struct xe_mem_region *mr)
> > +{
> > +	return container_of(mr, struct xe_tile, mem.vram);
> > +}
> > +
> >  #endif
> > --
> > 2.26.3
> >


More information about the Intel-xe mailing list