summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Zhang <dingchen.zhang@amd.com>2022-03-12 00:29:06 -0500
committerAurabindo Pillai <aurabindo.pillai@amd.com>2022-03-16 15:45:51 -0400
commitbde477dbaa4f4874e15fb6bafd5e43b5237a9265 (patch)
tree51c07dff86d77679ee936814aa3a72e0844e444d /lib
parent385d1ba1499a3d8ab81e40bc7b831783dd6006c5 (diff)
lib/igt_psr: pass higher versions of PSR SU panels
[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>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_psr.c8
1 files changed, 7 insertions, 1 deletions
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"