[igt-dev] [PATCH i-g-t 4/7] lib/igt_psr: modified psr_set for pr compatability

Hogander, Jouni jouni.hogander at intel.com
Tue Oct 31 11:42:39 UTC 2023


On Tue, 2023-10-31 at 13:39 +0530, Kunal Joshi wrote:
> Modified psr_set to add support PR_MODE and
> PR_MODE_SEL_FETCH
> 
> 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>

Let's see what are the final values for PR in i915_edp_psr_debug
interface. 5 and 6 are ok for now:

Reviewed-by: Jouni Högander <jouni.hogander at intel.com>

> ---
>  lib/igt_psr.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/lib/igt_psr.c b/lib/igt_psr.c
> index 665b28a76..c2b2a4148 100644
> --- a/lib/igt_psr.c
> +++ b/lib/igt_psr.c
> @@ -168,6 +168,12 @@ static bool psr_set(int device, int debugfs_fd,
> int mode)
>                 case PSR_MODE_2_SEL_FETCH:
>                         debug_val = "0x4";
>                         break;
> +               case PR_MODE:
> +                       debug_val = "0x5";
> +                       break;
> +               case PR_MODE_SEL_FETCH:
> +                       debug_val = "0x6";
> +                       break;
>                 default:
>                         /* Disables PSR */
>                         debug_val = "0x1";



More information about the igt-dev mailing list