All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Zhang <dingchen.zhang@amd.com>
To: <igt-dev@lists.freedesktop.org>
Subject: [igt-dev] [PATCH v3 1/5] lib/igt_psr: pass higher versions of PSR SU panels
Date: Sat, 12 Mar 2022 00:29:06 -0500	[thread overview]
Message-ID: <20220312052910.357949-2-dingchen.zhang@amd.com> (raw)
In-Reply-To: <20220312052910.357949-1-dingchen.zhang@amd.com>

[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 <rodrigo.siqueira@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Leo Li <sunpeng.li@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Cc: Wayne Lin <wayne.lin@amd.com>

Signed-off-by: David Zhang <dingchen.zhang@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
---
 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

  reply	other threads:[~2022-03-12  5:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-12  5:29 [igt-dev] [PATCH v3 0/5] PSR-SU MPO test case David Zhang
2022-03-12  5:29 ` David Zhang [this message]
2022-03-12  5:29 ` [igt-dev] [PATCH v3 2/5] lib/igt_amd: add helpers to check PSR capibility David Zhang
2022-03-12  5:29 ` [igt-dev] [PATCH v3 3/5] lib/igt_amd: add helpers to check PSR state David Zhang
2022-03-12  5:29 ` [igt-dev] [PATCH v3 4/5] lib/igt_amd: refactor checker of debugfs interface existence David Zhang
2022-03-12  5:29 ` [igt-dev] [PATCH v3 5/5] tests/amdgpu/amd_psr: add PSR-SU MPO subtest case David Zhang
2022-03-12  6:31 ` [igt-dev] ✓ Fi.CI.BAT: success for PSR-SU MPO test case (rev2) Patchwork
2022-03-12  7:34 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-03-14 21:08   ` Zhang, Dingchen (David)
2022-03-14 22:18     ` Vudum, Lakshminarayana
2022-03-14 21:56 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220312052910.357949-2-dingchen.zhang@amd.com \
    --to=dingchen.zhang@amd.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.