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 E8DD8C83F04 for ; Thu, 3 Jul 2025 14:03:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9733210E855; Thu, 3 Jul 2025 14:03:58 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ZH/KFKGd"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id E401B10E855 for ; Thu, 3 Jul 2025 14:03:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751551438; x=1783087438; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/faAk7H2xJ8Int/FDzXLgO5yuVeRlxuMBffpkySrEak=; b=ZH/KFKGdGHbNiqL2mAEUhjIgej9Z94B2m0XooMjRw5Rkbng3Flzt/C1B L9RezwGLo2j5ttMtHaLhGd5DE7b/nDyzRNxihO2BJcWI7HAnCJcYERRRy 7N7Y+ZVzBjmIxPyayui3cwEp657zJG1A31psM4LPAc0blxqe+Wo3oOlFd hls17ip8hDQxG6gdSlAEqCm8AYY2vkk8KXD5KCjKxWpJrTwFBniYe2yQx 4TtqLp5cSpjHOHnxJwS/IN/sbabjUXUdIQS9PUem1AJeWOak5WyD7A+3w 4PEaXZ+UFTtZZENHJvWxEEvtqrDCUsR2ZIbzczmBKa26lesF+859AEzsd w==; X-CSE-ConnectionGUID: fn13P3LmT2ehxNst4M73Xg== X-CSE-MsgGUID: p1F8Z+VCQFmBlgUYiFitwg== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="53993354" X-IronPort-AV: E=Sophos;i="6.16,284,1744095600"; d="scan'208";a="53993354" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2025 07:03:58 -0700 X-CSE-ConnectionGUID: cv0/hhCzQW2GPVc9qV4T2g== X-CSE-MsgGUID: lwmkY+bETgiABcdWrTa29w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,284,1744095600"; d="scan'208";a="159879197" Received: from administrator-system-product-name.igk.intel.com ([10.91.214.181]) by fmviesa004.fm.intel.com with ESMTP; 03 Jul 2025 07:03:57 -0700 From: =?UTF-8?q?Micha=C5=82=20Grzelak?= To: igt-dev@lists.freedesktop.org Cc: =?UTF-8?q?Micha=C5=82=20Grzelak?= Subject: [PATCH i-g-t v1 RERUN 1/2] lib/igt_psr: Skip the test when PSR is disabled Date: Thu, 3 Jul 2025 16:04:50 +0200 Message-ID: <20250703140451.491593-2-michal.grzelak@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250703140451.491593-1-michal.grzelak@intel.com> References: <20250703140451.491593-1-michal.grzelak@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316 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" If PSR setup timing is not met, then PSR will stay disabled and test will fail anyway. Skip the test upon finding that setup timing was not met. Signed-off-by: MichaƂ Grzelak --- lib/igt_psr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/igt_psr.c b/lib/igt_psr.c index 3d8f1949b..f35051ebc 100644 --- a/lib/igt_psr.c +++ b/lib/igt_psr.c @@ -38,7 +38,7 @@ bool psr_disabled_check(int debugfs_fd) igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status", buf, sizeof(buf)); - return strstr(buf, "PSR mode: disabled\n"); + return strstr(buf, "PSR disabled:"); } bool selective_fetch_check(int debugfs_fd, igt_output_t *output) @@ -122,6 +122,8 @@ static bool psr_active_check(int debugfs_fd, enum psr_mode mode, igt_output_t *o igt_skip_on(strstr(buf, "PSR sink not reliable: yes")); + igt_skip_on(strstr(buf, "PSR setup timing not met")); + active = strstr(buf, state) || (c && (c->connector_type == DRM_MODE_CONNECTOR_DisplayPort) && strstr(buf, "SU_STANDBY")); -- 2.45.2