[PATCH i-g-t] tests/intel/xe_sriov_flr: Skip media GTs when reading LMEM provisioning
Adam Miszczak
adam.miszczak at linux.intel.com
Wed Aug 27 07:59:48 UTC 2025
On 8/26/2025 9:25 PM, Marcin Bernatowicz wrote:
> LMEM provisioning is exposed only on the primary GT.
> Media GTs do not provide LMEM provisioning data,
> so attempting to read it there caused the subtest to skip.
> Restrict iteration to non-media GTs before reading LMEM provisioning.
>
> Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz at linux.intel.com>
> Cc: Adam Miszczak <adam.miszczak at linux.intel.com>
> Cc: Jakub Kolakowski <jakub1.kolakowski at intel.com>
> Cc: Lukasz Laguna <lukasz.laguna at intel.com>
> Cc: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Cc: Satyanarayana K V P <satyanarayana.k.v.p at intel.com>
> ---
> tests/intel/xe_sriov_flr.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/tests/intel/xe_sriov_flr.c b/tests/intel/xe_sriov_flr.c
> index fc08703c0..248dcf6fb 100644
> --- a/tests/intel/xe_sriov_flr.c
> +++ b/tests/intel/xe_sriov_flr.c
> @@ -813,6 +813,9 @@ static int populate_vf_lmem_sizes(struct subcheck_data *data)
> igt_assert(ldata->vf_lmem_size);
>
> xe_for_each_gt(data->pf_fd, gt) {
> + if (xe_is_media_gt(data->pf_fd, gt))
> + continue;
> +
> ret = xe_sriov_pf_debugfs_read_provisioned_ranges(data->pf_fd,
> XE_SRIOV_SHARED_RES_LMEM,
> gt, &ranges, &nr_ranges);
LGTM,
Reviewed-by: Adam Miszczak <adam.miszczak at linux.intel.com>
More information about the igt-dev
mailing list