[igt-dev] [PATCH i-g-t 5/7] lib/igt_psr: modified psr_get_mode for pr compatability
Hogander, Jouni
jouni.hogander at intel.com
Tue Oct 31 12:06:38 UTC 2023
On Tue, 2023-10-31 at 13:39 +0530, Kunal Joshi wrote:
> Modified psr_get_mode for PR_MODE
>
> Cc: Jouni Högander <jouni.hogander at intel.com>
> Cc: Animesh Manna <animesh.manna at intel.com>
> Cc: Arun R Murthy <arun.r.murthy at intel.com>
> Signed-off-by: Kunal Joshi <kunal1.joshi at 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 c2b2a4148..bddf80d6a 100644
> --- a/lib/igt_psr.c
> +++ b/lib/igt_psr.c
> @@ -382,7 +382,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;
You are missing Panel Replay Selective update. I would assume format
like this:
for PR Selective update:
Sink support: Panel Replay Selective update
PSR mode: Panel Replay Selective update enabled
Source PSR ctl: enabled [0xc2004a99]
Source PSR status: DEEP_SLEEP [0x80000100]
Busy frontbuffer bits: 0x00000000
Performance counter: 0
Frame: PSR2 SU blocks:
0 0
1 0
2 0
3 0
4 0
5 0
6 0
7 0
PSR2 selective fetch: enabled
and PR:
Sink support: Panel Replay
PSR mode: Panel Replay enabled
PSR sink not reliable: no
BR,
Jouni Högander
More information about the igt-dev
mailing list