[igt-dev] [PATCH i-g-t 1/6] lib/i915/i915_drm_local : Add DRM_I915_QUERY_DISTANCE_INFO query

Dixit, Ashutosh ashutosh.dixit at intel.com
Thu Apr 21 16:41:56 UTC 2022


On Thu, 21 Apr 2022 09:34:08 -0700, Matt Roper wrote:
>
> On Thu, Apr 21, 2022 at 08:22:06PM +0530, priyanka.dandamudi at intel.com wrote:
> > From: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
> >
> > Add distance info query to check if the memory region is reachable or
> > not. If memory region is reachable, it gives the distance from the
> > memory region to the (class, instance) engine given by the user.
> >
> > Cc: Arjun Melkaveri <arjun.melkaveri at intel.com>
> > Cc: Petri Latvala <petri.latvala at intel.com>
> > Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
> > ---
> >  lib/i915/i915_drm_local.h | 23 +++++++++++++++++++++++
> >  1 file changed, 23 insertions(+)
> >
> > diff --git a/lib/i915/i915_drm_local.h b/lib/i915/i915_drm_local.h
> > index 9a2273c4..1d584020 100644
> > --- a/lib/i915/i915_drm_local.h
> > +++ b/lib/i915/i915_drm_local.h
> > @@ -23,6 +23,29 @@ extern "C" {
> >
> >  #define DRM_I915_QUERY_GEOMETRY_SUBSLICES      6
> >
> > +#define DRM_I915_QUERY_DISTANCE_INFO 5
>
> DRM_I915_QUERY_HWCONFIG_BLOB has already taken query ID 5 (and
> DRM_I915_QUERY_GEOMETRY_SUBSLICES has taken 6).  So the first available
> ID is 7.

Also, I think we cannot merge this in IGT till this is exposed by the
kernel since the kernel uapi has to be approved first. This patch is ok for
a "Test-with:" (if we are submitting a kernel patch) or IGT review but
otherwise it needs to wait for the kernel patch to be merged I
think. Thanks.


More information about the igt-dev mailing list