Return-Path: Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2064.outbound.protection.outlook.com [40.107.220.64]) by gabe.freedesktop.org (Postfix) with ESMTPS id 59DB210E5AF for ; Thu, 10 Mar 2022 22:31:09 +0000 (UTC) From: David Zhang To: Date: Thu, 10 Mar 2022 17:30:43 -0500 Message-ID: <20220310223046.578910-2-dingchen.zhang@amd.com> In-Reply-To: <20220310223046.578910-1-dingchen.zhang@amd.com> References: <20220310223046.578910-1-dingchen.zhang@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Subject: [igt-dev] [PATCH 1/4] lib/igt_psr: pass higher versions of PSR SU panels List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: [why] From eDP 1.5 (eDP 1.4b SCR adopted), a higher version of PSR-SU eDP panel, i.e. version 0x4, is added into spec. Need to treat such PSR panel as PSR capable sink device. [how] validate the PSR capable sink for higher PSR version 0x4. Cc: Rodrigo Siqueira Cc: Harry Wentland Cc: Leo Li Cc: Jay Pillai Cc: Wayne Lin Signed-off-by: David Zhang --- lib/igt_psr.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/igt_psr.c b/lib/igt_psr.c index 98eb28b4..2b73e809 100644 --- a/lib/igt_psr.c +++ b/lib/igt_psr.c @@ -209,8 +209,14 @@ bool psr_sink_support(int device, int debugfs_fd, enum psr_mode mode) /* * i915 requires PSR version 0x03 that is PSR2 + SU with * Y-coordinate to support PSR2 + * + * or + * + * PSR version 0x4 that is PSR2 + SU w/ Y-coordinate and SU + * Region Early Transport to support PSR2 (eDP 1.5) */ - return strstr(buf, "Sink support: yes [0x03]"); + return strstr(buf, "Sink support: yes [0x03]") || + strstr(buf, "Sink support: yes [0x04]"); } #define PSR2_SU_BLOCK_STR_LOOKUP "PSR2 SU blocks:\n0\t" -- 2.25.1