[igt-dev] [PATCH i-g-t] tests/psr: Check for DRRS enabled in no_drrs test

Mun, Gwan-gyeong gwan-gyeong.mun at intel.com
Wed Sep 2 12:38:07 UTC 2020


Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun at intel.com>

On Tue, 2020-09-01 at 10:34 -0700, José Roberto de Souza wrote:
> Commit caab25dc9e36 ("drm/i915/display: Fix DRRS debugfs") added
> "DRRS Enabled" that is set when DRRS is enabled and left
> "DRRS Supported" to return if the panel supports DRRS.
> 
> The lack of this change was causing no_drrs tests to always fails if
> panel supports this feature.
> 
> Cc: Gwan-gyeong Mun <gwan-gyeong.mun at intel.com>
> Signed-off-by: José Roberto de Souza <jose.souza at intel.com>
> ---
>  tests/kms_psr.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/kms_psr.c b/tests/kms_psr.c
> index 49ea446af..ab19073e7 100644
> --- a/tests/kms_psr.c
> +++ b/tests/kms_psr.c
> @@ -234,7 +234,7 @@ static bool drrs_disabled(data_t *data)
>  	igt_debugfs_simple_read(data->debugfs_fd, "i915_drrs_status",
>  			 buf, sizeof(buf));
>  
> -	return !strstr(buf, "DRRS Supported: Yes\n");
> +	return !strstr(buf, "DRRS Enabled : Yes\n");
>  }
>  
>  static void run_test(data_t *data)


More information about the igt-dev mailing list