[PATCH i-g-t 1/4] lib/i915/fbc: print current fbc status if cannot be enabled
Cavitt, Jonathan
jonathan.cavitt at intel.com
Fri Jun 7 20:21:37 UTC 2024
-----Original Message-----
From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Vinod Govindapillai
Sent: Friday, June 7, 2024 7:57 AM
To: igt-dev at lists.freedesktop.org
Cc: Govindapillai, Vinod <vinod.govindapillai at intel.com>; Heikkila, Juha-pekka <juha-pekka.heikkila at intel.com>; Hogander, Jouni <jouni.hogander at intel.com>
Subject: [PATCH i-g-t 1/4] lib/i915/fbc: print current fbc status if cannot be enabled
>
> Print the current fbc status if the fbc is not enabled after
> the timeout.
>
> Signed-off-by: Vinod Govindapillai <vinod.govindapillai at intel.com>
Seems like a good debug step.
Reviewed-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
-Jonathan Cavitt
> ---
> lib/i915/intel_fbc.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/lib/i915/intel_fbc.c b/lib/i915/intel_fbc.c
> index 3fac60087..07ed7f469 100644
> --- a/lib/i915/intel_fbc.c
> +++ b/lib/i915/intel_fbc.c
> @@ -92,6 +92,10 @@ bool intel_fbc_is_enabled(int device, enum pipe pipe, int log_level)
> bool intel_fbc_wait_until_enabled(int device, enum pipe pipe)
> {
> char last_fbc_buf[FBC_STATUS_BUF_LEN] = {'\0'};
> + bool enabled = igt_wait(_intel_fbc_is_enabled(device, pipe, IGT_LOG_DEBUG, last_fbc_buf), 2000, 1);
>
> - return igt_wait(_intel_fbc_is_enabled(device, pipe, IGT_LOG_DEBUG, last_fbc_buf), 2000, 1);
> + if (!enabled)
> + igt_info("FBC is not enabled: \n%s\n", last_fbc_buf);
> +
> + return enabled;
> }
> --
> 2.34.1
>
>
More information about the igt-dev
mailing list