[PATCH i-g-t] tests/xe_oa: Skip when no OA units available

Dixit, Ashutosh ashutosh.dixit at intel.com
Fri Feb 21 17:08:18 UTC 2025


On Thu, 20 Feb 2025 05:01:05 -0800, Marcin Bernatowicz wrote:
>
> Add a check to ensure at least one OA unit is available before
> proceeding with the tests. This prevents unnecessary failures on
> devices that do not support OA units.

Are we seeing this anywhere?

In any case:

Acked-by: Ashutosh Dixit <ashutosh.dixit at intel.com>

>
> Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz at linux.intel.com>
> Cc: Ashutosh Dixit <ashutosh.dixit at intel.com>
> Cc: Jakub Kolakowski <jakub1.kolakowski at intel.com>
> Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
> ---
>  tests/intel/xe_oa.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
> index 0242fd594..6abf44128 100644
> --- a/tests/intel/xe_oa.c
> +++ b/tests/intel/xe_oa.c
> @@ -4852,6 +4852,7 @@ igt_main
>
>		/* See xe_query_oa_units_new() */
>		igt_require(xe_dev->oa_units);
> +		igt_require(xe_dev->oa_units->num_oa_units);
>		oau = nth_oa_unit(drm_fd, 0);
>
>		devid = intel_get_drm_devid(drm_fd);
> --
> 2.31.1
>


More information about the igt-dev mailing list