From: Kunal Joshi <kunal1.joshi@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH 5/8] lib/igt_psr: modified psr_get_mode for pr compatability
Date: Tue, 14 Nov 2023 14:39:23 +0530 [thread overview]
Message-ID: <20231114090926.1618995-6-kunal1.joshi@intel.com> (raw)
In-Reply-To: <20231114090926.1618995-1-kunal1.joshi@intel.com>
Modified psr_get_mode for PR_MODE
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>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
---
lib/igt_psr.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index a974036fd..c9fd3ee58 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -383,7 +383,9 @@ enum psr_mode psr_get_mode(int debugfs_fd)
return PSR_DISABLED;
}
- if (strstr(buf, "PSR2 selective fetch: enabled"))
+ if (strstr(buf, "Panel Replay Enabled"))
+ return PR_MODE;
+ else if (strstr(buf, "PSR2 selective fetch: enabled"))
return PSR_MODE_2_SEL_FETCH;
else if (strstr(buf, "PSR2 enabled"))
return PSR_MODE_2;
--
2.25.1
next prev parent reply other threads:[~2023-11-14 9:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-14 9:09 [igt-dev] [PATCH 0/8] extend kms_psr test to validate pr Kunal Joshi
2023-11-14 9:09 ` [igt-dev] [PATCH 1/8] lib/igt_psr: added enum for panel replay Kunal Joshi
2023-11-14 9:09 ` [igt-dev] [PATCH 2/8] lib/igt_psr: modified psr_sink_support for pr compatability Kunal Joshi
2023-11-14 9:09 ` [igt-dev] [PATCH 3/8] lib/igt_psr: modified psr_active_check " Kunal Joshi
2023-11-14 9:09 ` [igt-dev] [PATCH 4/8] lib/igt_psr: modified psr_set " Kunal Joshi
2023-11-14 9:09 ` Kunal Joshi [this message]
2023-11-14 9:09 ` [igt-dev] [PATCH 6/8] tests/intel/kms_psr: made test compaitable with pr Kunal Joshi
2023-11-14 9:09 ` [igt-dev] [PATCH 7/8] tests/intel-ci/fast-feedback: update renamed tests Kunal Joshi
2023-11-14 9:39 ` Sharma, Swati2
2023-11-14 9:09 ` [igt-dev] [PATCH 8/8] tests/intel-ci/xe-fast-feedback: " Kunal Joshi
2023-11-14 9:40 ` Sharma, Swati2
2023-11-14 14:40 ` [igt-dev] ✓ Fi.CI.BAT: success for extend kms_psr test to validate pr (rev11) Patchwork
2023-11-14 15:50 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-11-15 9:56 ` [igt-dev] ✗ 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=20231114090926.1618995-6-kunal1.joshi@intel.com \
--to=kunal1.joshi@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox