From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id CEDDF10E3C3 for ; Thu, 21 Apr 2022 16:41:57 +0000 (UTC) Date: Thu, 21 Apr 2022 09:41:56 -0700 Message-ID: <87a6ce4cdn.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" To: In-Reply-To: References: <20220421145211.464313-1-priyanka.dandamudi@intel.com> <20220421145211.464313-2-priyanka.dandamudi@intel.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Subject: Re: [igt-dev] [PATCH i-g-t 1/6] lib/i915/i915_drm_local : Add DRM_I915_QUERY_DISTANCE_INFO query List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: petri.latvala@intel.com, igt-dev@lists.freedesktop.org, krishnaiah.bommu@intel.com Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: On Thu, 21 Apr 2022 09:34:08 -0700, Matt Roper wrote: > > On Thu, Apr 21, 2022 at 08:22:06PM +0530, priyanka.dandamudi@intel.com wrote: > > From: Priyanka Dandamudi > > > > 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 > > Cc: Petri Latvala > > Signed-off-by: Priyanka Dandamudi > > --- > > 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.