From: Kunal Joshi <kunal1.joshi@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: "Kunal Joshi" <kunal1.joshi@intel.com>,
"Jouni Högander" <jouni.hogander@intel.com>,
"Animesh Manna" <animesh.manna@intel.com>,
"Arun R Murthy" <arun.r.murthy@intel.com>
Subject: [PATCH i-g-t 1/3] lib/igt_psr: add support for PR selective update
Date: Wed, 7 Feb 2024 19:23:17 +0530 [thread overview]
Message-ID: <20240207135319.1880229-2-kunal1.joshi@intel.com> (raw)
In-Reply-To: <20240207135319.1880229-1-kunal1.joshi@intel.com>
adapt to kmd changes to support PR selective update
https://patchwork.freedesktop.org/patch/575163/?series=128193&rev=3
v2: "PSR2 selective fetch: enable" valid for both cases (Jouni)
Cc: Jouni Högander <jouni.hogander@intel.com>
Cc: Animesh Manna <animesh.manna@intel.com>
Cc: Arun R Murthy <arun.r.murthy@intel.com>
Signed-off-by: Kunal Joshi <kunal1.joshi@intel.com>
---
lib/igt_psr.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index ac214fcfc..8acab2231 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -245,7 +245,9 @@ bool psr_sink_support(int device, int debugfs_fd, enum psr_mode mode, igt_output
(strstr(line, "PSR = yes") &&
(strstr(line, "[0x03]") || strstr(line, "[0x04]")));
case PR_MODE:
- return strstr(line, "Panel Replay = yes");
+ return strstr(line, "Panel Replay = yes, Panel Replay Selective Update = no");
+ case PR_MODE_SEL_FETCH:
+ return strstr(line, "Panel Replay = yes, Panel Replay Selective Update = yes");
default:
igt_assert_f(false, "Invalid psr mode\n");
return false;
@@ -385,11 +387,13 @@ enum psr_mode psr_get_mode(int debugfs_fd)
if (strstr(buf, "Panel Replay Enabled"))
return PR_MODE;
+ else if (strstr(buf, "Panel Replay Selective Update Enabled"))
+ return PR_MODE_SEL_FETCH;
else if (strstr(buf, "PSR2 selective fetch: enabled"))
return PSR_MODE_2_SEL_FETCH;
- else if (strstr(buf, "PSR2 enabled"))
+ else if (strstr(buf, "PSR2"))
return PSR_MODE_2;
- else if (strstr(buf, "PSR1 enabled"))
+ else if (strstr(buf, "PSR1"))
return PSR_MODE_1;
return PSR_DISABLED;
--
2.25.1
next prev parent reply other threads:[~2024-02-07 13:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-07 13:53 [PATCH i-g-t 0/3] extend psr2_sf test for pr_sf Kunal Joshi
2024-02-07 13:53 ` Kunal Joshi [this message]
2024-02-07 13:53 ` [PATCH i-g-t 2/3] lib/igt_psr: modify library to support multiple PSR/PR outputs Kunal Joshi
2024-02-08 8:39 ` Hogander, Jouni
2024-02-09 8:12 ` Joshi, Kunal1
2024-02-07 13:53 ` [PATCH i-g-t 3/3] tests/intel/kms_psr2_sf: extend tests for panel replay sf Kunal Joshi
2024-02-08 9:05 ` Hogander, Jouni
2024-02-07 15:01 ` ✓ Fi.CI.BAT: success for extend psr2_sf test for pr_sf (rev3) Patchwork
2024-02-07 16:19 ` ✓ CI.xeBAT: " Patchwork
2024-02-07 18:01 ` ✗ Fi.CI.IGT: failure " 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=20240207135319.1880229-2-kunal1.joshi@intel.com \
--to=kunal1.joshi@intel.com \
--cc=animesh.manna@intel.com \
--cc=arun.r.murthy@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jouni.hogander@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox