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 99A1CCF9C69 for ; Mon, 23 Sep 2024 10:21:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5325710E3CD; Mon, 23 Sep 2024 10:21:24 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="RLnclR/+"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id 429F310E3CD for ; Mon, 23 Sep 2024 10:21:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727086884; x=1758622884; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GJvf3ThmhPEVdwdHecNvXA6hb5tn7zYLWf7qu875Rkg=; b=RLnclR/+odghGFmk35Qvwq5dQ0H4pSfnilrEsmHh5cgqtpzx2jriK0ng agIYujCpqViRsmjQvxITXO5MjBnjEor9i7TP0C+i9Cg0ZHzkOM+qdKt8K ANjHS8+xZxyN/zwF8Jbf0epZ0lX1Vh6ZY9aWhw9g92xxkpGOJS3rslJSN KPV6Ak+Yj1HZLujUGVniJZOIPq3Fja40xvyMzrsVKqpNYEAg8FMd4pF7h DNkopVfKiUbLcibDrgVgDKnIp8MkeSutXuQuYIQxtcLB7egFEMXFDqn+9 23XEhfUDXbrm6agPA0e4AjoxpA2V7KV6+bhx9ueKG0WGfkzgunWUkMb5L g==; X-CSE-ConnectionGUID: eCSqI468S42zVjB4bUrQkw== X-CSE-MsgGUID: 2irHzmmSR3aQC1xgH+dWlg== X-IronPort-AV: E=McAfee;i="6700,10204,11202"; a="48552080" X-IronPort-AV: E=Sophos;i="6.10,251,1719903600"; d="scan'208";a="48552080" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2024 03:21:23 -0700 X-CSE-ConnectionGUID: h/7JWj2XSGCDJqch7g8M3g== X-CSE-MsgGUID: 7DeKzDZoTS+sV5Zk6X33sg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,251,1719903600"; d="scan'208";a="71468880" Received: from ijarvine-mobl1.ger.corp.intel.com (HELO jhogande-mobl1..) ([10.245.245.180]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2024 03:21:21 -0700 From: =?UTF-8?q?Jouni=20H=C3=B6gander?= To: igt-dev@lists.freedesktop.org Cc: ramanaidu.naladala@intel.com, =?UTF-8?q?Jouni=20H=C3=B6gander?= Subject: [PATCH i-g-t] lib/igt_psr: Allow testing without checking sink status Date: Mon, 23 Sep 2024 13:21:06 +0300 Message-Id: <20240923102106.2228688-1-jouni.hogander@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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" We are currently seeing problems with DP2.1 display emulator devices as sink Panel Replay status is not updating as expected. For this purpose use environment variable (IGT_PSR_IGNORE_SINK_STATUS) to disable checking sink status completely. Signed-off-by: Jouni Högander --- lib/igt_psr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/igt_psr.c b/lib/igt_psr.c index d14a93534..963385967 100644 --- a/lib/igt_psr.c +++ b/lib/igt_psr.c @@ -85,6 +85,7 @@ static bool psr_active_check(int debugfs_fd, enum psr_mode mode, igt_output_t *o char buf[PSR_STATUS_MAX_LEN]; drmModeConnector *c; const char *state; + const char *env; bool active; int ret; @@ -114,7 +115,9 @@ 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")); active = strstr(buf, state); - if (active && output) + + env = getenv("IGT_PANEL_REPLAY_IGNORE_SINK_STATUS"); + if (active && output && (!env || !atoi(env))) active = psr_active_sink_check(debugfs_fd, output); return active; -- 2.34.1