Commit cf1e6edb authored by Michal Wajdeczko's avatar Michal Wajdeczko

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: default avatarMichal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: default avatarJonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240720142528.530-8-michal.wajdeczko@intel.com
parent 57ecead3
...@@ -138,6 +138,9 @@ static void xe_live_mocs_kernel_kunit(struct kunit *test) ...@@ -138,6 +138,9 @@ static void xe_live_mocs_kernel_kunit(struct kunit *test)
{ {
struct xe_device *xe = test->priv; 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); mocs_kernel_test_run_device(xe);
} }
...@@ -180,6 +183,9 @@ static void xe_live_mocs_reset_kunit(struct kunit *test) ...@@ -180,6 +183,9 @@ static void xe_live_mocs_reset_kunit(struct kunit *test)
{ {
struct xe_device *xe = test->priv; 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); mocs_reset_test_run_device(xe);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment