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

drm/xe/tests: Move shrink test out of xe_bo

The subtest typically has an execution time long enough to motivate a
separate test so that it can be easily excluded if needed.

v2: reword commit message(Thomas)

Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241218141447.2528530-1-nirmoy.das@intel.com
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>

+16 -2
+14 -2
drivers/gpu/drm/xe/tests/xe_bo.c
··· 606 606 static struct kunit_case xe_bo_tests[] = { 607 607 KUNIT_CASE_PARAM(xe_ccs_migrate_kunit, xe_pci_live_device_gen_param), 608 608 KUNIT_CASE_PARAM(xe_bo_evict_kunit, xe_pci_live_device_gen_param), 609 - KUNIT_CASE_PARAM_ATTR(xe_bo_shrink_kunit, xe_pci_live_device_gen_param, 610 - {.speed = KUNIT_SPEED_SLOW}), 611 609 {} 612 610 }; 613 611 ··· 616 618 .init = xe_kunit_helper_xe_device_live_test_init, 617 619 }; 618 620 EXPORT_SYMBOL_IF_KUNIT(xe_bo_test_suite); 621 + 622 + static struct kunit_case xe_bo_shrink_test[] = { 623 + KUNIT_CASE_PARAM_ATTR(xe_bo_shrink_kunit, xe_pci_live_device_gen_param, 624 + {.speed = KUNIT_SPEED_SLOW}), 625 + {} 626 + }; 627 + 628 + VISIBLE_IF_KUNIT 629 + struct kunit_suite xe_bo_shrink_test_suite = { 630 + .name = "xe_bo_shrink", 631 + .test_cases = xe_bo_shrink_test, 632 + .init = xe_kunit_helper_xe_device_live_test_init, 633 + }; 634 + EXPORT_SYMBOL_IF_KUNIT(xe_bo_shrink_test_suite);
+2
drivers/gpu/drm/xe/tests/xe_live_test_mod.c
··· 6 6 #include <kunit/test.h> 7 7 8 8 extern struct kunit_suite xe_bo_test_suite; 9 + extern struct kunit_suite xe_bo_shrink_test_suite; 9 10 extern struct kunit_suite xe_dma_buf_test_suite; 10 11 extern struct kunit_suite xe_migrate_test_suite; 11 12 extern struct kunit_suite xe_mocs_test_suite; 12 13 13 14 kunit_test_suite(xe_bo_test_suite); 15 + kunit_test_suite(xe_bo_shrink_test_suite); 14 16 kunit_test_suite(xe_dma_buf_test_suite); 15 17 kunit_test_suite(xe_migrate_test_suite); 16 18 kunit_test_suite(xe_mocs_test_suite);