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

Bernatowicz, Marcin marcin.bernatowicz at linux.intel.com
Fri Feb 21 19:36:10 UTC 2025



On 2/21/2025 6:08 PM, Dixit, Ashutosh wrote:
> 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?

Yes, we hit this in VM runs (with passed VF device).

> 
> 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