From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 40739C5DF74 for ; Tue, 18 Aug 2026 04:11:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E2F7210E9D4; Tue, 18 Aug 2026 04:11:06 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="i/t3WSUB"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id F16D210E4F6 for ; Tue, 18 Aug 2026 04:08:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1787026137; x=1818562137; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=tBbBFAAawKOs06EyOy/GG/GdlYTxX3ak+Tq/scXqTes=; b=i/t3WSUB6pJWZSo6fjccckrmm5GH8t6RNaglidQOxbzFrukTYut4qRmY wLTxr9NIExRMcHzLeI7dMQvIC4lYHcWtoJfheFT3b1hDmu/YtWrFeeWMn crH6dbO0ZHHSw/02QdlIzRpbnB+gNiWa4j68/+Fl62Nki+Z+Ngrt8ucJa eBUWcUBpGQ+BMuRa2pewXq/M7gQ+th6gHIdJLo4zceMq9kKnK78Vadnux ftubQgToX9XDmXKSOIh9YHXhnrP1q2rds8MsOAixyCHiU+vnx1l6ThySX SmFLQv2VBH5rl4u73CEy+uh95pD9BhlQ3uLy4femAthv+V0KY94RhUWiO g==; X-CSE-ConnectionGUID: nR/ycO7sRDaQ0dLCs6cbbQ== X-CSE-MsgGUID: YhaoNaQ2TXqZPUo0Rg7FLg== X-IronPort-AV: E=McAfee;i="6800,10657,11878"; a="98870383" X-IronPort-AV: E=Sophos;i="6.25,230,1779174000"; d="scan'208";a="98870383" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2026 21:08:57 -0700 X-CSE-ConnectionGUID: BIUrkCE1R4e1FEprcXIKsg== X-CSE-MsgGUID: zzeT+ND0Rk+tjErLyZSUHQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,230,1779174000"; d="scan'208";a="262477291" Received: from dut2116bmgfrd.iind.intel.com ([10.223.34.13]) by fmviesa008.fm.intel.com with ESMTP; 17 Aug 2026 21:08:56 -0700 From: nishit.sharma@intel.com To: igt-dev@lists.freedesktop.org, kamil.konieczny@intel.com Subject: [PATCH v2 8/9] tests/intel/xe_exec_reset: add gt-stress-reset-pm-transition subtest Date: Tue, 18 Aug 2026 04:08:44 +0000 Message-ID: <20260818040845.548727-9-nishit.sharma@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260818040845.548727-1-nishit.sharma@intel.com> References: <20260818040845.548727-1-nishit.sharma@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" From: Nishit Sharma This test creates a short idle/transition window before VM/context teardown-recreate, approximating PM transition timing while reset+submit pressure is active. Signed-off-by: Nishit Sharma --- tests/intel/xe_exec_reset.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/intel/xe_exec_reset.c b/tests/intel/xe_exec_reset.c index d818173c2..42c2a7efd 100644 --- a/tests/intel/xe_exec_reset.c +++ b/tests/intel/xe_exec_reset.c @@ -139,6 +139,7 @@ static void test_spin(int fd, struct drm_xe_engine_class_instance *eci, #define RAPID_RESET_STRESS (0x1 << 19) #define DESTROY_VM_CTX_STRESS (0x1 << 20) #define MIXED_ENGINE_STRESS (0x1 << 21) +#define PM_TRANSITION_STRESS (0x1 << 22) /** * SUBTEST: %s-cat-error @@ -804,7 +805,11 @@ static void submit_jobs(struct gt_thread_data *t) } if (((t->flags & INVALIDATE_BO_STRESS) && !(i % 96)) || - ((t->flags & DESTROY_VM_CTX_STRESS) && !(i % 128))) { + ((t->flags & DESTROY_VM_CTX_STRESS) && !(i % 128)) || + ((t->flags & PM_TRANSITION_STRESS) && !(i % 160))) { + if (t->flags & PM_TRANSITION_STRESS) + usleep(20000); + if (t->flags & MEM_PRESSURE_STRESS) { pressure_bo_destroy(fd, pressure_bos, pressure_count); pressure_count = 0; @@ -878,6 +883,10 @@ static void *gt_reset_thread(void *data) * Description: Stress concurrent GT resets and mixed-engine job submissions * Test category: stress test * + * SUBTEST: gt-stress-reset-pm-transition + * Description: Stress concurrent GT resets and job submissions during PM transition windows + * Test category: stress test + * */ static void gt_reset(int fd, int gt, int n_threads, int n_sec, unsigned int flags) @@ -1103,6 +1112,7 @@ int igt_main() { "reset-rapid-cycle", RAPID_RESET_STRESS }, { "reset-destroy-vm-context", DESTROY_VM_CTX_STRESS }, { "reset-mixed-engine-usage", MIXED_ENGINE_STRESS | RAPID_RESET_STRESS }, + { "reset-pm-transition", PM_TRANSITION_STRESS | DESTROY_VM_CTX_STRESS }, { NULL }, }; int gt; -- 2.43.0