Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240720142528.530-8-michal.wajdeczko@intel.com

+6
+6
drivers/gpu/drm/xe/tests/xe_mocs.c
··· 138 138 { 139 139 struct xe_device *xe = test->priv; 140 140 141 + if (IS_SRIOV_VF(xe)) 142 + kunit_skip(test, "this test is N/A for VF"); 143 + 141 144 mocs_kernel_test_run_device(xe); 142 145 } 143 146 ··· 182 179 static void xe_live_mocs_reset_kunit(struct kunit *test) 183 180 { 184 181 struct xe_device *xe = test->priv; 182 + 183 + if (IS_SRIOV_VF(xe)) 184 + kunit_skip(test, "this test is N/A for VF"); 185 185 186 186 mocs_reset_test_run_device(xe); 187 187 }