[igt-dev] [PATCH i-g-t] kms_frontbuffer_tracking: Fix PSR reporting after PSR active flag is removed.

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Fri Mar 16 16:26:24 UTC 2018


Op 16-03-18 om 17:16 schreef Maarten Lankhorst:
> Either the main link in standby mode or hw enabled is enough to
> say that PSR is activated, so just use both.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105519
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
> ---
>  tests/kms_frontbuffer_tracking.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
> index 454103d367c7..e4da706b0631 100644
> --- a/tests/kms_frontbuffer_tracking.c
> +++ b/tests/kms_frontbuffer_tracking.c
> @@ -781,7 +781,7 @@ static bool psr_is_enabled(void)
>  	char buf[256];
>  
>  	debugfs_read("i915_edp_psr_status", buf);
> -	return strstr(buf, "\nActive: yes\n") &&
> +	return strstr(buf, "\nMain link in standby mode: yes\n") ||
>  	       strstr(buf, "\nHW Enabled & Active bit: yes\n");
>  }
>  

Nm, other patch is better, carry on. :)



More information about the igt-dev mailing list