From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5178210E4DC for ; Wed, 29 Mar 2023 05:19:02 +0000 (UTC) From: pallavi.mishra@intel.com To: igt-dev@lists.freedesktop.org, kamil.konieczny@intel.com Date: Wed, 29 Mar 2023 10:58:48 +0530 Message-Id: <20230329052848.1076928-3-pallavi.mishra@intel.com> In-Reply-To: <20230329052848.1076928-1-pallavi.mishra@intel.com> References: <20230329052848.1076928-1-pallavi.mishra@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH 2/2] [PATCH i-g-t] i915/sysfs_timeslice_duration: skip off subtest for GuC submission List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: From: Pallavi Mishra Don't run 'off' section as with GuC submission we don't handle dynamically changing the timeslice duration from 'off' to 'on' on a currently running context. This is not bug in GuC submission rather an architectural decision to not implement this as there is no user aside from IGTs. Co-authored-by: Matthew Brost Signed-off-by: Pallavi Mishra --- tests/i915/sysfs_timeslice_duration.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/i915/sysfs_timeslice_duration.c b/tests/i915/sysfs_timeslice_duration.c index c23424c6..92c4c5ea 100644 --- a/tests/i915/sysfs_timeslice_duration.c +++ b/tests/i915/sysfs_timeslice_duration.c @@ -29,6 +29,7 @@ #include #include +#include "igt.h" #include "igt_params.h" #include "drmtest.h" #include "i915/gem.h" @@ -475,6 +476,13 @@ static void test_off(int i915, int engine) gem_quiescent_gpu(i915); igt_require(enable_hangcheck(i915, false)); + /* GuC does not handle dynamic change in timeslice + * duration from 'off' to 'on' on a currently + * running context. Hence add below check. + */ + + igt_require(!gem_using_guc_submission(i915)); + igt_assert(igt_sysfs_scanf(engine, "class", "%u", &class) == 1); igt_assert(igt_sysfs_scanf(engine, "instance", "%u", &inst) == 1); -- 2.25.1