[Intel-gfx] [PATCH 15/27] drm/i915/gt: Expose engine->mmio_base via sysfs

Chris Wilson chris at chris-wilson.co.uk
Thu Nov 21 13:23:33 UTC 2019


Quoting Lionel Landwerlin (2019-11-21 13:18:47)
> On 12/11/2019 11:28, Chris Wilson wrote:
> > Use the per-engine sysfs directory to let userspace discover the
> > mmio_base of each engine. Prior to recent generations, the user
> > accessible registers on each engine are at a fixed offset relative to
> > each engine -- but require absolute addressing. As the absolute address
> > depends on the actual physical engine, this is not always possible to
> > determine from userspace (for example icl may expose vcs1 or vcs2 as the
> > second vcs engine). Make this easy for userspace to discover by
> > providing the mmio_base in sysfs.
> >
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> 
> 
> Sounds like a good idea :
> 
> 
> Acked-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> 
> 
> I guess this being under unstable make this unsuitable to expose through 
> i915_query?

I couldn't gather enough support for a HW info i915_query :(
-Chris


More information about the Intel-gfx mailing list