From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9704810E033 for ; Tue, 6 Dec 2022 01:40:47 +0000 (UTC) Date: Mon, 05 Dec 2022 17:32:16 -0800 Message-ID: <87zgc148rj.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" To: Alan Previn In-Reply-To: <20221206004856.145806-1-alan.previn.teres.alexis@intel.com> References: <20221206004856.145806-1-alan.previn.teres.alexis@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 v1 1/1] tests/gem_pxp: Pre-MTL prep: PXP is now global. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: igt-dev@lists.freedesktop.org, Vivi@freedesktop.org, Rodrigo Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: On Mon, 05 Dec 2022 16:48:56 -0800, Alan Previn wrote: > > From the PXP IGT, we assume PXP is a GT subsystem when we > access then PXP debugfs to force a teardown for testiability. > As part of kernel side PXP preparation work, the recent > Intel GFX patchwork's series titled "drm/i915/pxp: Promote > pxp subsystem to top-level of i915" has moved PXP to be a > top level i915 subsystem. See kernel side rev9 URL at > https://patchwork.freedesktop.org/patch/514043/?series=111650&rev=1). > > To align with that, we need to change the debugfs path for pxp to > ensure several of the substests (that rely on debugfs to simulate > events that cannot be simulated by user-space) continue to work as > expected. Reviewed-by: Ashutosh Dixit > > NOTE: this patch should only be merged after the kernel side > has merged. Well either way there will be failures: new kernel with old igt or the other way round... > Signed-off-by: Alan Previn > --- > tests/i915/gem_pxp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/i915/gem_pxp.c b/tests/i915/gem_pxp.c > index ffad9b5a..6cf254ca 100644 > --- a/tests/i915/gem_pxp.c > +++ b/tests/i915/gem_pxp.c > @@ -847,7 +847,7 @@ static void trigger_pxp_debugfs_forced_teardown(int i915) > int fd, ret; > char str[32]; > > - fd = igt_debugfs_open(i915, "gt/pxp/terminate_state", O_RDWR); > + fd = igt_debugfs_open(i915, "pxp/terminate_state", O_RDWR); > igt_assert_f(fd >= 0, "Can't open pxp termination debugfs\n"); > ret = snprintf(str, sizeof(str), "0x1"); > igt_assert(ret > 2 && ret < sizeof(str)); > > base-commit: c001793d5f22deb01918b6ba52af829794582df1 > -- > 2.34.1 >