From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <8000be2a-c149-8766-d8c1-c63b0c4aa785@intel.com> Date: Thu, 1 Jun 2023 11:39:43 -0700 Content-Language: en-US To: Kamil Konieczny , , References: <20230524191906.2160802-1-vinay.belgaumkar@intel.com> <20230525182521.pxep2ekegnp54x77@kamilkon-desk1> From: "Belgaumkar, Vinay" In-Reply-To: <20230525182521.pxep2ekegnp54x77@kamilkon-desk1> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Subject: Re: [igt-dev] [Intel-gfx] [PATCH i-g-t] tests/i915/gem_ctx_persistence: Skip some subtests List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: On 5/25/2023 11:25 AM, Kamil Konieczny wrote: > Hi Vinay, > > On 2023-05-24 at 12:19:06 -0700, Vinay Belgaumkar wrote: >> Hang and heartbeat subtests are not supported with GuC submission >> enabled. >> >> Signed-off-by: Vinay Belgaumkar >> --- >> tests/i915/gem_ctx_persistence.c | 32 +++++++++++++++++++------------- >> 1 file changed, 19 insertions(+), 13 deletions(-) >> >> diff --git a/tests/i915/gem_ctx_persistence.c b/tests/i915/gem_ctx_persistence.c >> index 42cf96329..1e122535e 100644 >> --- a/tests/i915/gem_ctx_persistence.c >> +++ b/tests/i915/gem_ctx_persistence.c >> @@ -1366,19 +1366,25 @@ igt_main >> >> igt_subtest("hostile") >> test_nohangcheck_hostile(i915, &empty_cfg); >> - igt_subtest("hang") >> - test_nohangcheck_hang(i915, &empty_cfg); >> - >> - igt_subtest("heartbeat-stop") >> - test_noheartbeat_many(i915, 1, 0); >> - igt_subtest("heartbeat-hang") >> - test_noheartbeat_many(i915, 1, IGT_SPIN_NO_PREEMPTION); >> - igt_subtest("heartbeat-many") >> - test_noheartbeat_many(i915, 16, 0); >> - igt_subtest("heartbeat-close") >> - test_noheartbeat_close(i915, 0); >> - igt_subtest("heartbeat-hostile") >> - test_noheartbeat_close(i915, IGT_SPIN_NO_PREEMPTION); >> + >> + igt_subtest_group { >> + igt_fixture >> + igt_skip_on(gem_using_guc_submission(i915)); > ----------------------- ^^^^^^^^^^^ > You cannot put this in fixture as there is no test defined in it. > Place skips at begin of test functions that need it. Hi Kamil,    That's why I created a subtest_group. Is that not sufficient? Thanks, Vinay. > > Regards, > Kamil > >> + >> + igt_subtest("hang") >> + test_nohangcheck_hang(i915, &empty_cfg); >> + >> + igt_subtest("heartbeat-stop") >> + test_noheartbeat_many(i915, 1, 0); >> + igt_subtest("heartbeat-hang") >> + test_noheartbeat_many(i915, 1, IGT_SPIN_NO_PREEMPTION); >> + igt_subtest("heartbeat-many") >> + test_noheartbeat_many(i915, 16, 0); >> + igt_subtest("heartbeat-close") >> + test_noheartbeat_close(i915, 0); >> + igt_subtest("heartbeat-hostile") >> + test_noheartbeat_close(i915, IGT_SPIN_NO_PREEMPTION); >> + } >> >> igt_subtest_group { >> igt_fixture >> -- >> 2.38.1 >>