[PATCH v2 7/7] drm/xe/tests: Skip xe_mocs live tests on VF device
Cavitt, Jonathan
jonathan.cavitt at intel.com
Wed Jul 17 20:19:00 UTC 2024
-----Original Message-----
From: Intel-xe <intel-xe-bounces at lists.freedesktop.org> On Behalf Of Michal Wajdeczko
Sent: Wednesday, July 17, 2024 12:52 PM
To: intel-xe at lists.freedesktop.org
Cc: Wajdeczko, Michal <Michal.Wajdeczko at intel.com>
Subject: [PATCH v2 7/7] drm/xe/tests: Skip xe_mocs live tests on VF device
>
> There is no point to run those tests on VFs devices as they can't
> access any of the MOCS registers. Skip testing on the VF device.
>
> [ ] =================== xe_mocs (1 subtest) ====================
> [ ] ================ xe_live_mocs_kernel_kunit ================
> [ ] [PASSED] 0000:4d:00.0
> [ ] [SKIPPED] 0000:4d:00.1
> [ ] ============ [PASSED] xe_live_mocs_kernel_kunit ============
> [ ] ===================== [PASSED] xe_mocs =====================
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
-Jonathan Cavitt
> ---
> drivers/gpu/drm/xe/tests/xe_mocs.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/tests/xe_mocs.c b/drivers/gpu/drm/xe/tests/xe_mocs.c
> index 19554019b255..79be73b4a02b 100644
> --- a/drivers/gpu/drm/xe/tests/xe_mocs.c
> +++ b/drivers/gpu/drm/xe/tests/xe_mocs.c
> @@ -138,6 +138,9 @@ static void xe_live_mocs_kernel_kunit(struct kunit *test)
> {
> struct xe_device *xe = test->priv;
>
> + if (IS_SRIOV_VF(xe))
> + kunit_skip(test, "this test is N/A for VF");
> +
> mocs_kernel_test_run_device(xe);
> }
>
> @@ -180,6 +183,9 @@ static void xe_live_mocs_reset_kunit(struct kunit *test)
> {
> struct xe_device *xe = test->priv;
>
> + if (IS_SRIOV_VF(xe))
> + kunit_skip(test, "this test is N/A for VF");
> +
> mocs_reset_test_run_device(xe);
> }
>
> --
> 2.43.0
>
>
More information about the Intel-xe
mailing list