[igt-dev] [PATCH i-g-t v8 1/4] lib/igt_sysfs: Add support to query number of tiles
Ghimiray, Himal Prasad
himal.prasad.ghimiray at intel.com
Mon Jul 10 04:12:20 UTC 2023
> -----Original Message-----
> From: Dixit, Ashutosh <ashutosh.dixit at intel.com>
> Sent: 09 July 2023 01:00
> To: Ghimiray, Himal Prasad <himal.prasad.ghimiray at intel.com>
> Cc: igt-dev at lists.freedesktop.org; Iddamsetty, Aravind
> <aravind.iddamsetty at intel.com>; Upadhyay, Tejas
> <tejas.upadhyay at intel.com>; Kumar, Janga Rahul
> <janga.rahul.kumar at intel.com>
> Subject: Re: [PATCH i-g-t v8 1/4] lib/igt_sysfs: Add support to query number
> of tiles
>
> On Fri, 07 Jul 2023 04:30:52 -0700, Himal Prasad Ghimiray wrote:
> >
> > diff --git a/lib/igt_sysfs.h b/lib/igt_sysfs.h index
> > 5635fc690..5d584b1c7 100644
> > --- a/lib/igt_sysfs.h
> > +++ b/lib/igt_sysfs.h
> > @@ -38,6 +38,11 @@
> > (dirfd__ = igt_sysfs_gt_open(i915__, gt__)) != -1; \
> > close(dirfd__), gt__++)
> >
> > +#define for_each_sysfs_tile_dirfd(xe__, dirfd__, tile__) \
> > + for (tile__ = 0; \
> > + (dirfd__ = xe_sysfs_tile_open(xe__, tile__)) != -1; \
> > + close(dirfd__), tile__++)
> > +
> > #define i915_for_each_gt for_each_sysfs_gt_dirfd
> >
> > #define igt_sysfs_rps_write(dir, id, data, len) \ @@ -73,6 +78,8 @@
> > #define igt_sysfs_rps_set_boolean(dir, id, value) \
> > igt_sysfs_set_boolean(dir, igt_sysfs_dir_id_to_name(dir, id), value)
> >
> > +#define xe_for_each_tile for_each_sysfs_tile_dirfd
>
> Let's delete xe_for_each_tile and directly use for_each_sysfs_tile_dirfd in
> Patch 4. Because xe_for_each_gt is written without the dirfd so it will be
> confusing if xe_for_each_tile now has dirfd.
Sure.
>
> Thanks.
> --
> Ashutosh
More information about the igt-dev
mailing list