mm: Fix a hmm_range_fault() livelock / starvation problem
Subsystems (3)
PATCH v2 1/1 mm: Fix a hmm_range_fault() livelock / starvation problem
If hmm_range_fault() fails a folio_trylock() in do_swap_page, trying to acquire the lock of a device-private folio for migration, to ram, the function will spin until it succeeds grabbing the lock.
However, if the process holding the lock is depending on a work item to be completed, which is scheduled on the same CPU as the spinning hmm_range_fault(), that work item might be starved and we end up in a livelock / starvation situation which is never resolved.
This can happen, for example if the process holding the device-private folio lock is stuck in
migrate_device_unmap()->lru_add_drain_all()
The lru_add_drain_all() function requires a short work-item to be run on all online cpus to complete.
A prerequisite for this to happen is:
a) Both zone device and system memory folios are considered in migrate_device_unmap(), so that there is a reason to call lru_add_drain_all() for a system memory folio while a folio lock is held on a zone device folio.
b) The zone device folio has an initial mapcount > 1 which causes at least one migration PTE entry insertion to be deferred to try_to_migrate(), which can happen after the call to lru_add_drain_all().
c) No or voluntary only preemption.
This all seems pretty unlikely to happen, but indeed is hit by the "xe_exec_system_allocator" igt test.
Resolve this by waiting for the folio to be unlocked if the folio_trylock() fails in the do_swap_page() function.
Future code improvements might consider moving
the lru_add_drain_all() call in migrate_device_unmap() to be called *after* all pages have migration entries inserted. That would eliminate also b) above.
v2:
- Instead of a cond_resched() in the hmm_range_fault() function, eliminate the problem by waiting for the folio to be unlocked in do_swap_page() (Alistair Popple, Andrew Morton)
--- mm/memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mm/memory.c +2 -1
@@ -4684,7 +4684,8 @@ vm_fault_t do_swap_page(struct vm_fault *vmf)unlock_page (vmf->page);put_page (vmf->page); }else { -pte_unmap_unlock (vmf->pte, vmf->ptl); +pte_unmap (vmf->pte); +migration_entry_wait_on_locked (entry, vmf->ptl); } }else if (softleaf_is_hwpoison (entry)) { ret =VM_FAULT_HWPOISON ;
Signature · 1 line
2.52.0
Patchwork
CI✓ CI.KUnit: success for mm: Fix a hmm_range_fault() livelock / starvation problem
== Series Details ==
== Series Details ==
Series: mm: Fix a hmm_range_fault() livelock / starvation problem
URL : https://patchwork.freedesktop.org/series/161081/
State : success
== Summary ==
+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig [11:48:48] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [11:48:52] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [11:49:25] Starting KUnit Kernel (1/1)... [11:49:25] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [11:49:25] ================== guc_buf (11 subtests) =================== [11:49:25] [PASSED] test_smallest [11:49:25] [PASSED] test_largest [11:49:25] [PASSED] test_granular [11:49:25] [PASSED] test_unique [11:49:25] [PASSED] test_overlap [11:49:25] [PASSED] test_reusable [11:49:25] [PASSED] test_too_big [11:49:25] [PASSED] test_flush [11:49:25] [PASSED] test_lookup [11:49:25] [PASSED] test_data [11:49:25] [PASSED] test_class [11:49:25] ===================== [PASSED] guc_buf ===================== [11:49:25] =================== guc_dbm (7 subtests) =================== [11:49:25] [PASSED] test_empty [11:49:25] [PASSED] test_default [11:49:25] ======================== test_size ======================== [11:49:25] [PASSED] 4 [11:49:25] [PASSED] 8 [11:49:25] [PASSED] 32 [11:49:25] [PASSED] 256 [11:49:25] ==================== [PASSED] test_size ==================== [11:49:25] ======================= test_reuse ======================== [11:49:25] [PASSED] 4 [11:49:25] [PASSED] 8 [11:49:25] [PASSED] 32 [11:49:25] [PASSED] 256 [11:49:25] =================== [PASSED] test_reuse ==================== [11:49:25] =================== test_range_overlap ==================== [11:49:25] [PASSED] 4 [11:49:25] [PASSED] 8 [11:49:25] [PASSED] 32 [11:49:25] [PASSED] 256 [11:49:25] =============== [PASSED] test_range_overlap ================ [11:49:25] =================== test_range_compact ==================== [11:49:25] [PASSED] 4 [11:49:25] [PASSED] 8 [11:49:25] [PASSED] 32 [11:49:25] [PASSED] 256 [11:49:25] =============== [PASSED] test_range_compact ================ [11:49:25] ==================== test_range_spare ===================== [11:49:25] [PASSED] 4 [11:49:25] [PASSED] 8 [11:49:25] [PASSED] 32 [11:49:25] [PASSED] 256 [11:49:25] ================ [PASSED] test_range_spare ================= [11:49:25] ===================== [PASSED] guc_dbm ===================== [11:49:25] =================== guc_idm (6 subtests) =================== [11:49:25] [PASSED] bad_init [11:49:25] [PASSED] no_init [11:49:25] [PASSED] init_fini [11:49:25] [PASSED] check_used [11:49:25] [PASSED] check_quota [11:49:25] [PASSED] check_all [11:49:25] ===================== [PASSED] guc_idm ===================== [11:49:25] ================== no_relay (3 subtests) =================== [11:49:25] [PASSED] xe_drops_guc2pf_if_not_ready [11:49:25] [PASSED] xe_drops_guc2vf_if_not_ready [11:49:25] [PASSED] xe_rejects_send_if_not_ready [11:49:25] ==================== [PASSED] no_relay ===================== [11:49:25] ================== pf_relay (14 subtests) ================== [11:49:25] [PASSED] pf_rejects_guc2pf_too_short [11:49:25] [PASSED] pf_rejects_guc2pf_too_long [11:49:25] [PASSED] pf_rejects_guc2pf_no_payload [11:49:25] [PASSED] pf_fails_no_payload [11:49:25] [PASSED] pf_fails_bad_origin [11:49:25] [PASSED] pf_fails_bad_type [11:49:25] [PASSED] pf_txn_reports_error [11:49:25] [PASSED] pf_txn_sends_pf2guc [11:49:25] [PASSED] pf_sends_pf2guc [11:49:25] [SKIPPED] pf_loopback_nop [11:49:25] [SKIPPED] pf_loopback_echo [11:49:25] [SKIPPED] pf_loopback_fail [11:49:25] [SKIPPED] pf_loopback_busy [11:49:25] [SKIPPED] pf_loopback_retry [11:49:25] ==================== [PASSED] pf_relay ===================== [11:49:25] ================== vf_relay (3 subtests) =================== [11:49:25] [PASSED] vf_rejects_guc2vf_too_short [11:49:25] [PASSED] vf_rejects_guc2vf_too_long [11:49:25] [PASSED] vf_rejects_guc2vf_no_payload [11:49:25] ==================== [PASSED] vf_relay ===================== [11:49:25] ================ pf_gt_config (6 subtests) ================= [11:49:25] [PASSED] fair_contexts_1vf [11:49:25] [PASSED] fair_doorbells_1vf [11:49:25] [PASSED] fair_ggtt_1vf [11:49:25] ====================== fair_contexts ====================== [11:49:25] [PASSED] 1 VF [11:49:25] [PASSED] 2 VFs [11:49:25] [PASSED] 3 VFs [11:49:25] [PASSED] 4 VFs [11:49:25] [PASSED] 5 VFs [11:49:25] [PASSED] 6 VFs [11:49:25] [PASSED] 7 VFs [11:49:25] [PASSED] 8 VFs [11:49:25] [PASSED] 9 VFs [11:49:25] [PASSED] 10 VFs [11:49:25] [PASSED] 11 VFs [11:49:25] [PASSED] 12 VFs [11:49:25] [PASSED] 13 VFs [11:49:25] [PASSED] 14 VFs [11:49:25] [PASSED] 15 VFs [11:49:25] [PASSED] 16 VFs [11:49:25] [PASSED] 17 VFs [11:49:25] [PASSED] 18 VFs [11:49:25] [PASSED] 19 VFs [11:49:25] [PASSED] 20 VFs [11:49:25] [PASSED] 21 VFs [11:49:25] [PASSED] 22 VFs [11:49:25] [PASSED] 23 VFs [11:49:25] [PASSED] 24 VFs [11:49:25] [PASSED] 25 VFs [11:49:25] [PASSED] 26 VFs [11:49:25] [PASSED] 27 VFs [11:49:25] [PASSED] 28 VFs [11:49:25] [PASSED] 29 VFs [11:49:25] [PASSED] 30 VFs [11:49:25] [PASSED] 31 VFs [11:49:25] [PASSED] 32 VFs [11:49:25] [PASSED] 33 VFs [11:49:25] [PASSED] 34 VFs [11:49:25] [PASSED] 35 VFs [11:49:25] [PASSED] 36 VFs [11:49:25] [PASSED] 37 VFs [11:49:25] [PASSED] 38 VFs [11:49:25] [PASSED] 39 VFs [11:49:25] [PASSED] 40 VFs [11:49:25] [PASSED] 41 VFs [11:49:25] [PASSED] 42 VFs [11:49:25] [PASSED] 43 VFs [11:49:25] [PASSED] 44 VFs [11:49:25] [PASSED] 45 VFs [11:49:25] [PASSED] 46 VFs [11:49:25] [PASSED] 47 VFs [11:49:25] [PASSED] 48 VFs [11:49:25] [PASSED] 49 VFs [11:49:25] [PASSED] 50 VFs [11:49:25] [PASSED] 51 VFs [11:49:25] [PASSED] 52 VFs [11:49:25] [PASSED] 53 VFs [11:49:25] [PASSED] 54 VFs [11:49:25] [PASSED] 55 VFs [11:49:25] [PASSED] 56 VFs [11:49:25] [PASSED] 57 VFs [11:49:25] [PASSED] 58 VFs [11:49:25] [PASSED] 59 VFs [11:49:25] [PASSED] 60 VFs [11:49:25] [PASSED] 61 VFs [11:49:25] [PASSED] 62 VFs [11:49:25] [PASSED] 63 VFs [11:49:25] ================== [PASSED] fair_contexts ================== [11:49:25] ===================== fair_doorbells ====================== [11:49:25] [PASSED] 1 VF [11:49:25] [PASSED] 2 VFs [11:49:25] [PASSED] 3 VFs [11:49:25] [PASSED] 4 VFs [11:49:25] [PASSED] 5 VFs [11:49:25] [PASSED] 6 VFs [11:49:25] [PASSED] 7 VFs [11:49:25] [PASSED] 8 VFs [11:49:25] [PASSED] 9 VFs [11:49:25] [PASSED] 10 VFs [11:49:25] [PASSED] 11 VFs [11:49:25] [PASSED] 12 VFs [11:49:25] [PASSED] 13 VFs [11:49:25] [PASSED] 14 VFs [11:49:25] [PASSED] 15 VFs [11:49:25] [PASSED] 16 VFs [11:49:25] [PASSED] 17 VFs [11:49:25] [PASSED] 18 VFs [11:49:25] [PASSED] 19 VFs [11:49:25] [PASSED] 20 VFs [11:49:25] [PASSED] 21 VFs [11:49:25] [PASSED] 22 VFs [11:49:25] [PASSED] 23 VFs [11:49:25] [PASSED] 24 VFs [11:49:25] [PASSED] 25 VFs [11:49:25] [PASSED] 26 VFs [11:49:25] [PASSED] 27 VFs [11:49:25] [PASSED] 28 VFs [11:49:25] [PASSED] 29 VFs [11:49:25] [PASSED] 30 VFs [11:49:25] [PASSED] 31 VFs [11:49:25] [PASSED] 32 VFs [11:49:25] [PASSED] 33 VFs [11:49:25] [PASSED] 34 VFs [11:49:25] [PASSED] 35 VFs [11:49:25] [PASSED] 36 VFs [11:49:25] [PASSED] 37 VFs [11:49:25] [PASSED] 38 VFs [11:49:25] [PASSED] 39 VFs [11:49:25] [PASSED] 40 VFs [11:49:25] [PASSED] 41 VFs [11:49:25] [PASSED] 42 VFs [11:49:25] [PASSED] 43 VFs [11:49:25] [PASSED] 44 VFs [11:49:25] [PASSED] 45 VFs [11:49:25] [PASSED] 46 VFs [11:49:25] [PASSED] 47 VFs [11:49:25] [PASSED] 48 VFs [11:49:25] [PASSED] 49 VFs [11:49:25] [PASSED] 50 VFs [11:49:25] [PASSED] 51 VFs [11:49:25] [PASSED] 52 VFs [11:49:25] [PASSED] 53 VFs [11:49:25] [PASSED] 54 VFs [11:49:25] [PASSED] 55 VFs [11:49:25] [PASSED] 56 VFs [11:49:25] [PASSED] 57 VFs [11:49:25] [PASSED] 58 VFs [11:49:25] [PASSED] 59 VFs [11:49:25] [PASSED] 60 VFs [11:49:25] [PASSED] 61 VFs [11:49:25] [PASSED] 62 VFs [11:49:25] [PASSED] 63 VFs [11:49:25] ================= [PASSED] fair_doorbells ================== [11:49:25] ======================== fair_ggtt ======================== [11:49:25] [PASSED] 1 VF [11:49:25] [PASSED] 2 VFs [11:49:25] [PASSED] 3 VFs [11:49:25] [PASSED] 4 VFs [11:49:25] [PASSED] 5 VFs [11:49:25] [PASSED] 6 VFs [11:49:25] [PASSED] 7 VFs [11:49:25] [PASSED] 8 VFs [11:49:25] [PASSED] 9 VFs [11:49:25] [PASSED] 10 VFs [11:49:25] [PASSED] 11 VFs [11:49:25] [PASSED] 12 VFs [11:49:25] [PASSED] 13 VFs [11:49:25] [PASSED] 14 VFs [11:49:25] [PASSED] 15 VFs [11:49:25] [PASSED] 16 VFs [11:49:25] [PASSED] 17 VFs [11:49:25] [PASSED] 18 VFs [11:49:25] [PASSED] 19 VFs [11:49:25] [PASSED] 20 VFs [11:49:25] [PASSED] 21 VFs [11:49:25] [PASSED] 22 VFs [11:49:25] [PASSED] 23 VFs [11:49:25] [PASSED] 24 VFs [11:49:25] [PASSED] 25 VFs [11:49:25] [PASSED] 26 VFs [11:49:25] [PASSED] 27 VFs [11:49:25] [PASSED] 28 VFs [11:49:25] [PASSED] 29 VFs [11:49:25] [PASSED] 30 VFs [11:49:25] [PASSED] 31 VFs [11:49:25] [PASSED] 32 VFs [11:49:25] [PASSED] 33 VFs [11:49:25] [PASSED] 34 VFs [11:49:25] [PASSED] 35 VFs [11:49:25] [PASSED] 36 VFs [11:49:25] [PASSED] 37 VFs [11:49:25] [PASSED] 38 VFs [11:49:25] [PASSED] 39 VFs [11:49:25] [PASSED] 40 VFs [11:49:25] [PASSED] 41 VFs [11:49:25] [PASSED] 42 VFs [11:49:25] [PASSED] 43 VFs [11:49:25] [PASSED] 44 VFs [11:49:25] [PASSED] 45 VFs [11:49:25] [PASSED] 46 VFs [11:49:25] [PASSED] 47 VFs [11:49:25] [PASSED] 48 VFs [11:49:25] [PASSED] 49 VFs [11:49:25] [PASSED] 50 VFs [11:49:25] [PASSED] 51 VFs [11:49:25] [PASSED] 52 VFs [11:49:25] [PASSED] 53 VFs [11:49:25] [PASSED] 54 VFs [11:49:25] [PASSED] 55 VFs [11:49:25] [PASSED] 56 VFs [11:49:25] [PASSED] 57 VFs [11:49:25] [PASSED] 58 VFs [11:49:25] [PASSED] 59 VFs [11:49:25] [PASSED] 60 VFs [11:49:25] [PASSED] 61 VFs [11:49:25] [PASSED] 62 VFs [11:49:25] [PASSED] 63 VFs [11:49:25] ==================== [PASSED] fair_ggtt ==================== [11:49:25] ================== [PASSED] pf_gt_config =================== [11:49:25] ===================== lmtt (1 subtest) ===================== [11:49:25] ======================== test_ops ========================= [11:49:25] [PASSED] 2-level [11:49:25] [PASSED] multi-level [11:49:25] ==================== [PASSED] test_ops ===================== [11:49:25] ====================== [PASSED] lmtt ======================= [11:49:25] ================= pf_service (11 subtests) ================= [11:49:25] [PASSED] pf_negotiate_any [11:49:25] [PASSED] pf_negotiate_base_match [11:49:25] [PASSED] pf_negotiate_base_newer [11:49:25] [PASSED] pf_negotiate_base_next [11:49:25] [SKIPPED] pf_negotiate_base_older [11:49:25] [PASSED] pf_negotiate_base_prev [11:49:25] [PASSED] pf_negotiate_latest_match [11:49:25] [PASSED] pf_negotiate_latest_newer [11:49:25] [PASSED] pf_negotiate_latest_next [11:49:25] [SKIPPED] pf_negotiate_latest_older [11:49:25] [SKIPPED] pf_negotiate_latest_prev [11:49:25] =================== [PASSED] pf_service ==================== [11:49:25] ================= xe_guc_g2g (2 subtests) ================== [11:49:25] ============== xe_live_guc_g2g_kunit_default ============== [11:49:25] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ========== [11:49:25] ============== xe_live_guc_g2g_kunit_allmem =============== [11:49:25] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ========== [11:49:25] =================== [SKIPPED] xe_guc_g2g =================== [11:49:25] =================== xe_mocs (2 subtests) =================== [11:49:25] ================ xe_live_mocs_kernel_kunit ================ [11:49:25] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============ [11:49:25] ================ xe_live_mocs_reset_kunit ================= [11:49:25] ============ [SKIPPED] xe_live_mocs_reset_kunit ============ [11:49:25] ==================== [SKIPPED] xe_mocs ===================== [11:49:25] ================= xe_migrate (2 subtests) ================== [11:49:25] ================= xe_migrate_sanity_kunit ================= [11:49:25] ============ [SKIPPED] xe_migrate_sanity_kunit ============= [11:49:25] ================== xe_validate_ccs_kunit ================== [11:49:25] ============= [SKIPPED] xe_validate_ccs_kunit ============== [11:49:25] =================== [SKIPPED] xe_migrate =================== [11:49:25] ================== xe_dma_buf (1 subtest) ================== [11:49:25] ==================== xe_dma_buf_kunit ===================== [11:49:25] ================ [SKIPPED] xe_dma_buf_kunit ================ [11:49:25] =================== [SKIPPED] xe_dma_buf =================== [11:49:25] ================= xe_bo_shrink (1 subtest) ================= [11:49:25] =================== xe_bo_shrink_kunit ==================== [11:49:25] =============== [SKIPPED] xe_bo_shrink_kunit =============== [11:49:25] ================== [SKIPPED] xe_bo_shrink ================== [11:49:25] ==================== xe_bo (2 subtests) ==================== [11:49:25] ================== xe_ccs_migrate_kunit =================== [11:49:25] ============== [SKIPPED] xe_ccs_migrate_kunit ============== [11:49:25] ==================== xe_bo_evict_kunit ==================== [11:49:25] =============== [SKIPPED] xe_bo_evict_kunit ================ [11:49:25] ===================== [SKIPPED] xe_bo ====================== [11:49:25] ==================== args (13 subtests) ==================== [11:49:25] [PASSED] count_args_test [11:49:25] [PASSED] call_args_example [11:49:25] [PASSED] call_args_test [11:49:25] [PASSED] drop_first_arg_example [11:49:25] [PASSED] drop_first_arg_test [11:49:25] [PASSED] first_arg_example [11:49:25] [PASSED] first_arg_test [11:49:25] [PASSED] last_arg_example [11:49:25] [PASSED] last_arg_test [11:49:25] [PASSED] pick_arg_example [11:49:25] [PASSED] if_args_example [11:49:25] [PASSED] if_args_test [11:49:25] [PASSED] sep_comma_example [11:49:25] ====================== [PASSED] args ======================= [11:49:25] =================== xe_pci (3 subtests) ==================== [11:49:25] ==================== check_graphics_ip ==================== [11:49:25] [PASSED] 12.00 Xe_LP [11:49:25] [PASSED] 12.10 Xe_LP+ [11:49:25] [PASSED] 12.55 Xe_HPG [11:49:25] [PASSED] 12.60 Xe_HPC [11:49:25] [PASSED] 12.70 Xe_LPG [11:49:25] [PASSED] 12.71 Xe_LPG [11:49:25] [PASSED] 12.74 Xe_LPG+ [11:49:25] [PASSED] 20.01 Xe2_HPG [11:49:25] [PASSED] 20.02 Xe2_HPG [11:49:25] [PASSED] 20.04 Xe2_LPG [11:49:25] [PASSED] 30.00 Xe3_LPG [11:49:25] [PASSED] 30.01 Xe3_LPG [11:49:25] [PASSED] 30.03 Xe3_LPG [11:49:25] [PASSED] 30.04 Xe3_LPG [11:49:25] [PASSED] 30.05 Xe3_LPG [11:49:25] [PASSED] 35.11 Xe3p_XPC [11:49:25] ================ [PASSED] check_graphics_ip ================ [11:49:25] ===================== check_media_ip ====================== [11:49:25] [PASSED] 12.00 Xe_M [11:49:25] [PASSED] 12.55 Xe_HPM [11:49:25] [PASSED] 13.00 Xe_LPM+ [11:49:25] [PASSED] 13.01 Xe2_HPM [11:49:25] [PASSED] 20.00 Xe2_LPM [11:49:25] [PASSED] 30.00 Xe3_LPM [11:49:25] [PASSED] 30.02 Xe3_LPM [11:49:25] [PASSED] 35.00 Xe3p_LPM [11:49:25] [PASSED] 35.03 Xe3p_HPM [11:49:25] ================= [PASSED] check_media_ip ================== [11:49:25] =================== check_platform_desc =================== [11:49:25] [PASSED] 0x9A60 (TIGERLAKE) [11:49:25] [PASSED] 0x9A68 (TIGERLAKE) [11:49:25] [PASSED] 0x9A70 (TIGERLAKE) [11:49:25] [PASSED] 0x9A40 (TIGERLAKE) [11:49:25] [PASSED] 0x9A49 (TIGERLAKE) [11:49:25] [PASSED] 0x9A59 (TIGERLAKE) [11:49:25] [PASSED] 0x9A78 (TIGERLAKE) [11:49:25] [PASSED] 0x9AC0 (TIGERLAKE) [11:49:25] [PASSED] 0x9AC9 (TIGERLAKE) [11:49:25] [PASSED] 0x9AD9 (TIGERLAKE) [11:49:25] [PASSED] 0x9AF8 (TIGERLAKE) [11:49:25] [PASSED] 0x4C80 (ROCKETLAKE) [11:49:25] [PASSED] 0x4C8A (ROCKETLAKE) [11:49:25] [PASSED] 0x4C8B (ROCKETLAKE) [11:49:25] [PASSED] 0x4C8C (ROCKETLAKE) [11:49:25] [PASSED] 0x4C90 (ROCKETLAKE) [11:49:25] [PASSED] 0x4C9A (ROCKETLAKE) [11:49:25] [PASSED] 0x4680 (ALDERLAKE_S) [11:49:25] [PASSED] 0x4682 (ALDERLAKE_S) [11:49:25] [PASSED] 0x4688 (ALDERLAKE_S) [11:49:25] [PASSED] 0x468A (ALDERLAKE_S) [11:49:25] [PASSED] 0x468B (ALDERLAKE_S) [11:49:25] [PASSED] 0x4690 (ALDERLAKE_S) [11:49:25] [PASSED] 0x4692 (ALDERLAKE_S) [11:49:25] [PASSED] 0x4693 (ALDERLAKE_S) [11:49:25] [PASSED] 0x46A0 (ALDERLAKE_P) [11:49:25] [PASSED] 0x46A1 (ALDERLAKE_P) [11:49:25] [PASSED] 0x46A2 (ALDERLAKE_P) [11:49:25] [PASSED] 0x46A3 (ALDERLAKE_P) [11:49:25] [PASSED] 0x46A6 (ALDERLAKE_P) [11:49:25] [PASSED] 0x46A8 (ALDERLAKE_P) [11:49:25] [PASSED] 0x46AA (ALDERLAKE_P) [11:49:25] [PASSED] 0x462A (ALDERLAKE_P) [11:49:25] [PASSED] 0x4626 (ALDERLAKE_P) [11:49:25] [PASSED] 0x4628 (ALDERLAKE_P) stty: 'standard input': Inappropriate ioctl for device [11:49:25] [PASSED] 0x46B0 (ALDERLAKE_P) [11:49:25] [PASSED] 0x46B1 (ALDERLAKE_P) [11:49:25] [PASSED] 0x46B2 (ALDERLAKE_P) [11:49:25] [PASSED] 0x46B3 (ALDERLAKE_P) [11:49:25] [PASSED] 0x46C0 (ALDERLAKE_P) [11:49:25] [PASSED] 0x46C1 (ALDERLAKE_P) [11:49:25] [PASSED] 0x46C2 (ALDERLAKE_P) [11:49:25] [PASSED] 0x46C3 (ALDERLAKE_P) [11:49:25] [PASSED] 0x46D0 (ALDERLAKE_N) [11:49:25] [PASSED] 0x46D1 (ALDERLAKE_N) [11:49:25] [PASSED] 0x46D2 (ALDERLAKE_N) [11:49:25] [PASSED] 0x46D3 (ALDERLAKE_N) [11:49:25] [PASSED] 0x46D4 (ALDERLAKE_N) [11:49:25] [PASSED] 0xA721 (ALDERLAKE_P) [11:49:25] [PASSED] 0xA7A1 (ALDERLAKE_P) [11:49:25] [PASSED] 0xA7A9 (ALDERLAKE_P) [11:49:25] [PASSED] 0xA7AC (ALDERLAKE_P) [11:49:25] [PASSED] 0xA7AD (ALDERLAKE_P) [11:49:25] [PASSED] 0xA720 (ALDERLAKE_P) [11:49:25] [PASSED] 0xA7A0 (ALDERLAKE_P) [11:49:25] [PASSED] 0xA7A8 (ALDERLAKE_P) [11:49:25] [PASSED] 0xA7AA (ALDERLAKE_P) [11:49:25] [PASSED] 0xA7AB (ALDERLAKE_P) [11:49:25] [PASSED] 0xA780 (ALDERLAKE_S) [11:49:25] [PASSED] 0xA781 (ALDERLAKE_S) [11:49:25] [PASSED] 0xA782 (ALDERLAKE_S) [11:49:25] [PASSED] 0xA783 (ALDERLAKE_S) [11:49:25] [PASSED] 0xA788 (ALDERLAKE_S) [11:49:25] [PASSED] 0xA789 (ALDERLAKE_S) [11:49:25] [PASSED] 0xA78A (ALDERLAKE_S) [11:49:25] [PASSED] 0xA78B (ALDERLAKE_S) [11:49:25] [PASSED] 0x4905 (DG1) [11:49:25] [PASSED] 0x4906 (DG1) [11:49:25] [PASSED] 0x4907 (DG1) [11:49:25] [PASSED] 0x4908 (DG1) [11:49:25] [PASSED] 0x4909 (DG1) [11:49:25] [PASSED] 0x56C0 (DG2) [11:49:25] [PASSED] 0x56C2 (DG2) [11:49:25] [PASSED] 0x56C1 (DG2) [11:49:25] [PASSED] 0x7D51 (METEORLAKE) [11:49:25] [PASSED] 0x7DD1 (METEORLAKE) [11:49:25] [PASSED] 0x7D41 (METEORLAKE) [11:49:25] [PASSED] 0x7D67 (METEORLAKE) [11:49:25] [PASSED] 0xB640 (METEORLAKE) [11:49:25] [PASSED] 0x56A0 (DG2) [11:49:25] [PASSED] 0x56A1 (DG2) [11:49:25] [PASSED] 0x56A2 (DG2) [11:49:25] [PASSED] 0x56BE (DG2) [11:49:25] [PASSED] 0x56BF (DG2) [11:49:25] [PASSED] 0x5690 (DG2) [11:49:25] [PASSED] 0x5691 (DG2) [11:49:25] [PASSED] 0x5692 (DG2) [11:49:25] [PASSED] 0x56A5 (DG2) [11:49:25] [PASSED] 0x56A6 (DG2) [11:49:25] [PASSED] 0x56B0 (DG2) [11:49:25] [PASSED] 0x56B1 (DG2) [11:49:25] [PASSED] 0x56BA (DG2) [11:49:25] [PASSED] 0x56BB (DG2) [11:49:25] [PASSED] 0x56BC (DG2) [11:49:25] [PASSED] 0x56BD (DG2) [11:49:25] [PASSED] 0x5693 (DG2) [11:49:25] [PASSED] 0x5694 (DG2) [11:49:25] [PASSED] 0x5695 (DG2) [11:49:25] [PASSED] 0x56A3 (DG2) [11:49:25] [PASSED] 0x56A4 (DG2) [11:49:25] [PASSED] 0x56B2 (DG2) [11:49:25] [PASSED] 0x56B3 (DG2) [11:49:25] [PASSED] 0x5696 (DG2) [11:49:25] [PASSED] 0x5697 (DG2) [11:49:25] [PASSED] 0xB69 (PVC) [11:49:25] [PASSED] 0xB6E (PVC) [11:49:25] [PASSED] 0xBD4 (PVC) [11:49:25] [PASSED] 0xBD5 (PVC) [11:49:25] [PASSED] 0xBD6 (PVC) [11:49:25] [PASSED] 0xBD7 (PVC) [11:49:25] [PASSED] 0xBD8 (PVC) [11:49:25] [PASSED] 0xBD9 (PVC) [11:49:25] [PASSED] 0xBDA (PVC) [11:49:25] [PASSED] 0xBDB (PVC) [11:49:25] [PASSED] 0xBE0 (PVC) [11:49:25] [PASSED] 0xBE1 (PVC) [11:49:25] [PASSED] 0xBE5 (PVC) [11:49:25] [PASSED] 0x7D40 (METEORLAKE) [11:49:25] [PASSED] 0x7D45 (METEORLAKE) [11:49:25] [PASSED] 0x7D55 (METEORLAKE) [11:49:25] [PASSED] 0x7D60 (METEORLAKE) [11:49:25] [PASSED] 0x7DD5 (METEORLAKE) [11:49:25] [PASSED] 0x6420 (LUNARLAKE) [11:49:25] [PASSED] 0x64A0 (LUNARLAKE) [11:49:25] [PASSED] 0x64B0 (LUNARLAKE) [11:49:25] [PASSED] 0xE202 (BATTLEMAGE) [11:49:25] [PASSED] 0xE209 (BATTLEMAGE) [11:49:25] [PASSED] 0xE20B (BATTLEMAGE) [11:49:25] [PASSED] 0xE20C (BATTLEMAGE) [11:49:25] [PASSED] 0xE20D (BATTLEMAGE) [11:49:25] [PASSED] 0xE210 (BATTLEMAGE) [11:49:25] [PASSED] 0xE211 (BATTLEMAGE) [11:49:25] [PASSED] 0xE212 (BATTLEMAGE) [11:49:25] [PASSED] 0xE216 (BATTLEMAGE) [11:49:25] [PASSED] 0xE220 (BATTLEMAGE) [11:49:25] [PASSED] 0xE221 (BATTLEMAGE) [11:49:25] [PASSED] 0xE222 (BATTLEMAGE) [11:49:25] [PASSED] 0xE223 (BATTLEMAGE) [11:49:25] [PASSED] 0xB080 (PANTHERLAKE) [11:49:25] [PASSED] 0xB081 (PANTHERLAKE) [11:49:25] [PASSED] 0xB082 (PANTHERLAKE) [11:49:25] [PASSED] 0xB083 (PANTHERLAKE) [11:49:25] [PASSED] 0xB084 (PANTHERLAKE) [11:49:25] [PASSED] 0xB085 (PANTHERLAKE) [11:49:25] [PASSED] 0xB086 (PANTHERLAKE) [11:49:25] [PASSED] 0xB087 (PANTHERLAKE) [11:49:25] [PASSED] 0xB08F (PANTHERLAKE) [11:49:25] [PASSED] 0xB090 (PANTHERLAKE) [11:49:25] [PASSED] 0xB0A0 (PANTHERLAKE) [11:49:25] [PASSED] 0xB0B0 (PANTHERLAKE) [11:49:25] [PASSED] 0xFD80 (PANTHERLAKE) [11:49:25] [PASSED] 0xFD81 (PANTHERLAKE) [11:49:25] [PASSED] 0xD740 (NOVALAKE_S) [11:49:25] [PASSED] 0xD741 (NOVALAKE_S) [11:49:25] [PASSED] 0xD742 (NOVALAKE_S) [11:49:25] [PASSED] 0xD743 (NOVALAKE_S) [11:49:25] [PASSED] 0xD744 (NOVALAKE_S) [11:49:25] [PASSED] 0xD745 (NOVALAKE_S) [11:49:25] [PASSED] 0x674C (CRESCENTISLAND) [11:49:25] =============== [PASSED] check_platform_desc =============== [11:49:25] ===================== [PASSED] xe_pci ====================== [11:49:25] =================== xe_rtp (2 subtests) ==================== [11:49:25] =============== xe_rtp_process_to_sr_tests ================ [11:49:25] [PASSED] coalesce-same-reg [11:49:25] [PASSED] no-match-no-add [11:49:25] [PASSED] match-or [11:49:25] [PASSED] match-or-xfail [11:49:25] [PASSED] no-match-no-add-multiple-rules [11:49:25] [PASSED] two-regs-two-entries [11:49:25] [PASSED] clr-one-set-other [11:49:25] [PASSED] set-field [11:49:25] [PASSED] conflict-duplicate [11:49:25] [PASSED] conflict-not-disjoint [11:49:25] [PASSED] conflict-reg-type [11:49:25] =========== [PASSED] xe_rtp_process_to_sr_tests ============ [11:49:25] ================== xe_rtp_process_tests =================== [11:49:25] [PASSED] active1 [11:49:25] [PASSED] active2 [11:49:25] [PASSED] active-inactive [11:49:25] [PASSED] inactive-active [11:49:25] [PASSED] inactive-1st_or_active-inactive [11:49:25] [PASSED] inactive-2nd_or_active-inactive [11:49:25] [PASSED] inactive-last_or_active-inactive [11:49:25] [PASSED] inactive-no_or_active-inactive [11:49:25] ============== [PASSED] xe_rtp_process_tests =============== [11:49:25] ===================== [PASSED] xe_rtp ====================== [11:49:25] ==================== xe_wa (1 subtest) ===================== [11:49:25] ======================== xe_wa_gt ========================= [11:49:25] [PASSED] TIGERLAKE B0 [11:49:25] [PASSED] DG1 A0 [11:49:25] [PASSED] DG1 B0 [11:49:25] [PASSED] ALDERLAKE_S A0 [11:49:25] [PASSED] ALDERLAKE_S B0 [11:49:25] [PASSED] ALDERLAKE_S C0 [11:49:25] [PASSED] ALDERLAKE_S D0 [11:49:25] [PASSED] ALDERLAKE_P A0 [11:49:25] [PASSED] ALDERLAKE_P B0 [11:49:25] [PASSED] ALDERLAKE_P C0 [11:49:25] [PASSED] ALDERLAKE_S RPLS D0 [11:49:25] [PASSED] ALDERLAKE_P RPLU E0 [11:49:25] [PASSED] DG2 G10 C0 [11:49:25] [PASSED] DG2 G11 B1 [11:49:25] [PASSED] DG2 G12 A1 [11:49:25] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0 [11:49:25] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0 [11:49:25] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0 [11:49:25] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0 [11:49:25] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0 [11:49:25] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1 [11:49:25] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0 [11:49:25] ==================== [PASSED] xe_wa_gt ===================== [11:49:25] ====================== [PASSED] xe_wa ====================== [11:49:25] ============================================================ [11:49:25] Testing complete. Ran 512 tests: passed: 494, skipped: 18 [11:49:25] Elapsed time: 37.090s total, 4.217s configuring, 32.356s building, 0.486s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [11:49:25] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [11:49:27] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [11:49:53] Starting KUnit Kernel (1/1)... [11:49:53] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [11:49:53] ============ drm_test_pick_cmdline (2 subtests) ============ [11:49:53] [PASSED] drm_test_pick_cmdline_res_1920_1080_60 [11:49:53] =============== drm_test_pick_cmdline_named =============== [11:49:53] [PASSED] NTSC [11:49:53] [PASSED] NTSC-J [11:49:53] [PASSED] PAL [11:49:53] [PASSED] PAL-M [11:49:53] =========== [PASSED] drm_test_pick_cmdline_named =========== [11:49:53] ============== [PASSED] drm_test_pick_cmdline ============== [11:49:53] == drm_test_atomic_get_connector_for_encoder (1 subtest) === [11:49:53] [PASSED] drm_test_drm_atomic_get_connector_for_encoder [11:49:53] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ==== [11:49:53] =========== drm_validate_clone_mode (2 subtests) =========== [11:49:53] ============== drm_test_check_in_clone_mode =============== [11:49:53] [PASSED] in_clone_mode [11:49:53] [PASSED] not_in_clone_mode [11:49:53] ========== [PASSED] drm_test_check_in_clone_mode =========== [11:49:53] =============== drm_test_check_valid_clones =============== [11:49:53] [PASSED] not_in_clone_mode [11:49:53] [PASSED] valid_clone [11:49:53] [PASSED] invalid_clone [11:49:53] =========== [PASSED] drm_test_check_valid_clones =========== [11:49:53] ============= [PASSED] drm_validate_clone_mode ============= [11:49:53] ============= drm_validate_modeset (1 subtest) ============= [11:49:53] [PASSED] drm_test_check_connector_changed_modeset [11:49:53] ============== [PASSED] drm_validate_modeset =============== [11:49:53] ====== drm_test_bridge_get_current_state (2 subtests) ====== [11:49:53] [PASSED] drm_test_drm_bridge_get_current_state_atomic [11:49:53] [PASSED] drm_test_drm_bridge_get_current_state_legacy [11:49:53] ======== [PASSED] drm_test_bridge_get_current_state ======== [11:49:53] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ====== [11:49:53] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic [11:49:53] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled [11:49:53] [PASSED] drm_test_drm_bridge_helper_reset_crtc_legacy [11:49:53] ======== [PASSED] drm_test_bridge_helper_reset_crtc ======== [11:49:53] ============== drm_bridge_alloc (2 subtests) =============== [11:49:53] [PASSED] drm_test_drm_bridge_alloc_basic [11:49:53] [PASSED] drm_test_drm_bridge_alloc_get_put [11:49:53] ================ [PASSED] drm_bridge_alloc ================= [11:49:53] ================== drm_buddy (9 subtests) ================== [11:49:53] [PASSED] drm_test_buddy_alloc_limit [11:49:53] [PASSED] drm_test_buddy_alloc_optimistic [11:49:53] [PASSED] drm_test_buddy_alloc_pessimistic [11:49:53] [PASSED] drm_test_buddy_alloc_pathological [11:49:53] [PASSED] drm_test_buddy_alloc_contiguous [11:49:53] [PASSED] drm_test_buddy_alloc_clear [11:49:53] [PASSED] drm_test_buddy_alloc_range_bias [11:49:53] [PASSED] drm_test_buddy_fragmentation_performance [11:49:53] [PASSED] drm_test_buddy_alloc_exceeds_max_order [11:49:53] ==================== [PASSED] drm_buddy ==================== [11:49:53] ============= drm_cmdline_parser (40 subtests) ============= [11:49:53] [PASSED] drm_test_cmdline_force_d_only [11:49:53] [PASSED] drm_test_cmdline_force_D_only_dvi [11:49:53] [PASSED] drm_test_cmdline_force_D_only_hdmi [11:49:53] [PASSED] drm_test_cmdline_force_D_only_not_digital [11:49:53] [PASSED] drm_test_cmdline_force_e_only [11:49:53] [PASSED] drm_test_cmdline_res [11:49:53] [PASSED] drm_test_cmdline_res_vesa [11:49:53] [PASSED] drm_test_cmdline_res_vesa_rblank [11:49:53] [PASSED] drm_test_cmdline_res_rblank [11:49:53] [PASSED] drm_test_cmdline_res_bpp [11:49:53] [PASSED] drm_test_cmdline_res_refresh [11:49:53] [PASSED] drm_test_cmdline_res_bpp_refresh [11:49:53] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced [11:49:53] [PASSED] drm_test_cmdline_res_bpp_refresh_margins [11:49:53] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off [11:49:53] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on [11:49:53] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog [11:49:53] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital [11:49:53] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on [11:49:53] [PASSED] drm_test_cmdline_res_margins_force_on [11:49:53] [PASSED] drm_test_cmdline_res_vesa_margins [11:49:53] [PASSED] drm_test_cmdline_name [11:49:53] [PASSED] drm_test_cmdline_name_bpp [11:49:53] [PASSED] drm_test_cmdline_name_option [11:49:53] [PASSED] drm_test_cmdline_name_bpp_option [11:49:53] [PASSED] drm_test_cmdline_rotate_0 [11:49:53] [PASSED] drm_test_cmdline_rotate_90 [11:49:53] [PASSED] drm_test_cmdline_rotate_180 [11:49:53] [PASSED] drm_test_cmdline_rotate_270 [11:49:53] [PASSED] drm_test_cmdline_hmirror [11:49:53] [PASSED] drm_test_cmdline_vmirror [11:49:53] [PASSED] drm_test_cmdline_margin_options [11:49:53] [PASSED] drm_test_cmdline_multiple_options [11:49:53] [PASSED] drm_test_cmdline_bpp_extra_and_option [11:49:53] [PASSED] drm_test_cmdline_extra_and_option [11:49:53] [PASSED] drm_test_cmdline_freestanding_options [11:49:53] [PASSED] drm_test_cmdline_freestanding_force_e_and_options [11:49:53] [PASSED] drm_test_cmdline_panel_orientation [11:49:53] ================ drm_test_cmdline_invalid ================= [11:49:53] [PASSED] margin_only [11:49:53] [PASSED] interlace_only [11:49:53] [PASSED] res_missing_x [11:49:53] [PASSED] res_missing_y [11:49:53] [PASSED] res_bad_y [11:49:53] [PASSED] res_missing_y_bpp [11:49:53] [PASSED] res_bad_bpp [11:49:53] [PASSED] res_bad_refresh [11:49:53] [PASSED] res_bpp_refresh_force_on_off [11:49:53] [PASSED] res_invalid_mode [11:49:53] [PASSED] res_bpp_wrong_place_mode [11:49:53] [PASSED] name_bpp_refresh [11:49:53] [PASSED] name_refresh [11:49:53] [PASSED] name_refresh_wrong_mode [11:49:53] [PASSED] name_refresh_invalid_mode [11:49:53] [PASSED] rotate_multiple [11:49:53] [PASSED] rotate_invalid_val [11:49:53] [PASSED] rotate_truncated [11:49:53] [PASSED] invalid_option [11:49:53] [PASSED] invalid_tv_option [11:49:53] [PASSED] truncated_tv_option [11:49:53] ============ [PASSED] drm_test_cmdline_invalid ============= [11:49:53] =============== drm_test_cmdline_tv_options =============== [11:49:53] [PASSED] NTSC [11:49:53] [PASSED] NTSC_443 [11:49:53] [PASSED] NTSC_J [11:49:53] [PASSED] PAL [11:49:53] [PASSED] PAL_M [11:49:53] [PASSED] PAL_N [11:49:53] [PASSED] SECAM [11:49:53] [PASSED] MONO_525 [11:49:53] [PASSED] MONO_625 [11:49:53] =========== [PASSED] drm_test_cmdline_tv_options =========== [11:49:53] =============== [PASSED] drm_cmdline_parser ================ [11:49:53] ========== drmm_connector_hdmi_init (20 subtests) ========== [11:49:53] [PASSED] drm_test_connector_hdmi_init_valid [11:49:53] [PASSED] drm_test_connector_hdmi_init_bpc_8 [11:49:53] [PASSED] drm_test_connector_hdmi_init_bpc_10 [11:49:53] [PASSED] drm_test_connector_hdmi_init_bpc_12 [11:49:53] [PASSED] drm_test_connector_hdmi_init_bpc_invalid [11:49:53] [PASSED] drm_test_connector_hdmi_init_bpc_null [11:49:53] [PASSED] drm_test_connector_hdmi_init_formats_empty [11:49:53] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb [11:49:53] === drm_test_connector_hdmi_init_formats_yuv420_allowed === [11:49:53] [PASSED] supported_formats=0x9 yuv420_allowed=1 [11:49:53] [PASSED] supported_formats=0x9 yuv420_allowed=0 [11:49:53] [PASSED] supported_formats=0x3 yuv420_allowed=1 [11:49:53] [PASSED] supported_formats=0x3 yuv420_allowed=0 [11:49:53] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed === [11:49:53] [PASSED] drm_test_connector_hdmi_init_null_ddc [11:49:53] [PASSED] drm_test_connector_hdmi_init_null_product [11:49:53] [PASSED] drm_test_connector_hdmi_init_null_vendor [11:49:53] [PASSED] drm_test_connector_hdmi_init_product_length_exact [11:49:53] [PASSED] drm_test_connector_hdmi_init_product_length_too_long [11:49:53] [PASSED] drm_test_connector_hdmi_init_product_valid [11:49:53] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact [11:49:53] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long [11:49:53] [PASSED] drm_test_connector_hdmi_init_vendor_valid [11:49:53] ========= drm_test_connector_hdmi_init_type_valid ========= [11:49:53] [PASSED] HDMI-A [11:49:53] [PASSED] HDMI-B [11:49:53] ===== [PASSED] drm_test_connector_hdmi_init_type_valid ===== [11:49:53] ======== drm_test_connector_hdmi_init_type_invalid ======== [11:49:53] [PASSED] Unknown [11:49:53] [PASSED] VGA [11:49:53] [PASSED] DVI-I [11:49:53] [PASSED] DVI-D [11:49:53] [PASSED] DVI-A [11:49:53] [PASSED] Composite [11:49:53] [PASSED] SVIDEO [11:49:53] [PASSED] LVDS [11:49:53] [PASSED] Component [11:49:53] [PASSED] DIN [11:49:53] [PASSED] DP [11:49:53] [PASSED] TV [11:49:53] [PASSED] eDP [11:49:53] [PASSED] Virtual [11:49:53] [PASSED] DSI [11:49:53] [PASSED] DPI [11:49:53] [PASSED] Writeback [11:49:53] [PASSED] SPI [11:49:53] [PASSED] USB [11:49:53] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ==== [11:49:53] ============ [PASSED] drmm_connector_hdmi_init ============= [11:49:53] ============= drmm_connector_init (3 subtests) ============= [11:49:53] [PASSED] drm_test_drmm_connector_init [11:49:53] [PASSED] drm_test_drmm_connector_init_null_ddc [11:49:53] ========= drm_test_drmm_connector_init_type_valid ========= [11:49:53] [PASSED] Unknown [11:49:53] [PASSED] VGA [11:49:53] [PASSED] DVI-I [11:49:53] [PASSED] DVI-D [11:49:53] [PASSED] DVI-A [11:49:53] [PASSED] Composite [11:49:53] [PASSED] SVIDEO [11:49:53] [PASSED] LVDS [11:49:53] [PASSED] Component [11:49:53] [PASSED] DIN [11:49:53] [PASSED] DP [11:49:53] [PASSED] HDMI-A [11:49:53] [PASSED] HDMI-B [11:49:53] [PASSED] TV [11:49:53] [PASSED] eDP [11:49:53] [PASSED] Virtual [11:49:53] [PASSED] DSI [11:49:53] [PASSED] DPI [11:49:53] [PASSED] Writeback [11:49:53] [PASSED] SPI [11:49:53] [PASSED] USB [11:49:53] ===== [PASSED] drm_test_drmm_connector_init_type_valid ===== [11:49:53] =============== [PASSED] drmm_connector_init =============== [11:49:53] ========= drm_connector_dynamic_init (6 subtests) ========== [11:49:53] [PASSED] drm_test_drm_connector_dynamic_init [11:49:53] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc [11:49:53] [PASSED] drm_test_drm_connector_dynamic_init_not_added [11:49:53] [PASSED] drm_test_drm_connector_dynamic_init_properties [11:49:53] ===== drm_test_drm_connector_dynamic_init_type_valid ====== [11:49:53] [PASSED] Unknown [11:49:53] [PASSED] VGA [11:49:53] [PASSED] DVI-I [11:49:53] [PASSED] DVI-D [11:49:53] [PASSED] DVI-A [11:49:53] [PASSED] Composite [11:49:53] [PASSED] SVIDEO [11:49:53] [PASSED] LVDS [11:49:53] [PASSED] Component [11:49:53] [PASSED] DIN [11:49:53] [PASSED] DP [11:49:53] [PASSED] HDMI-A [11:49:53] [PASSED] HDMI-B [11:49:53] [PASSED] TV [11:49:53] [PASSED] eDP [11:49:53] [PASSED] Virtual [11:49:53] [PASSED] DSI [11:49:53] [PASSED] DPI [11:49:53] [PASSED] Writeback [11:49:53] [PASSED] SPI [11:49:53] [PASSED] USB [11:49:53] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid == [11:49:53] ======== drm_test_drm_connector_dynamic_init_name ========= [11:49:53] [PASSED] Unknown [11:49:53] [PASSED] VGA [11:49:53] [PASSED] DVI-I [11:49:53] [PASSED] DVI-D [11:49:53] [PASSED] DVI-A [11:49:53] [PASSED] Composite [11:49:53] [PASSED] SVIDEO [11:49:53] [PASSED] LVDS [11:49:53] [PASSED] Component [11:49:53] [PASSED] DIN [11:49:53] [PASSED] DP [11:49:53] [PASSED] HDMI-A [11:49:53] [PASSED] HDMI-B [11:49:53] [PASSED] TV [11:49:53] [PASSED] eDP [11:49:53] [PASSED] Virtual [11:49:53] [PASSED] DSI [11:49:53] [PASSED] DPI [11:49:53] [PASSED] Writeback [11:49:53] [PASSED] SPI [11:49:53] [PASSED] USB [11:49:53] ==== [PASSED] drm_test_drm_connector_dynamic_init_name ===== [11:49:53] =========== [PASSED] drm_connector_dynamic_init ============ [11:49:53] ==== drm_connector_dynamic_register_early (4 subtests) ===== [11:49:53] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list [11:49:53] [PASSED] drm_test_drm_connector_dynamic_register_early_defer [11:49:53] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init [11:49:53] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object [11:49:53] ====== [PASSED] drm_connector_dynamic_register_early ======= [11:49:53] ======= drm_connector_dynamic_register (7 subtests) ======== [11:49:53] [PASSED] drm_test_drm_connector_dynamic_register_on_list [11:49:53] [PASSED] drm_test_drm_connector_dynamic_register_no_defer [11:49:53] [PASSED] drm_test_drm_connector_dynamic_register_no_init [11:49:53] [PASSED] drm_test_drm_connector_dynamic_register_mode_object [11:49:53] [PASSED] drm_test_drm_connector_dynamic_register_sysfs [11:49:53] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name [11:49:53] [PASSED] drm_test_drm_connector_dynamic_register_debugfs [11:49:53] ========= [PASSED] drm_connector_dynamic_register ========== [11:49:53] = drm_connector_attach_broadcast_rgb_property (2 subtests) = [11:49:53] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property [11:49:53] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector [11:49:53] === [PASSED] drm_connector_attach_broadcast_rgb_property === [11:49:53] ========== drm_get_tv_mode_from_name (2 subtests) ========== [11:49:53] ========== drm_test_get_tv_mode_from_name_valid =========== [11:49:53] [PASSED] NTSC [11:49:53] [PASSED] NTSC-443 [11:49:53] [PASSED] NTSC-J [11:49:53] [PASSED] PAL [11:49:53] [PASSED] PAL-M [11:49:53] [PASSED] PAL-N [11:49:53] [PASSED] SECAM [11:49:53] [PASSED] Mono [11:49:53] ====== [PASSED] drm_test_get_tv_mode_from_name_valid ======= [11:49:53] [PASSED] drm_test_get_tv_mode_from_name_truncated [11:49:53] ============ [PASSED] drm_get_tv_mode_from_name ============ [11:49:53] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) = [11:49:53] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb [11:49:53] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc [11:49:53] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1 [11:49:53] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc [11:49:53] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1 [11:49:53] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double [11:49:53] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid = [11:49:53] [PASSED] VIC 96 [11:49:53] [PASSED] VIC 97 [11:49:53] [PASSED] VIC 101 [11:49:53] [PASSED] VIC 102 [11:49:53] [PASSED] VIC 106 [11:49:53] [PASSED] VIC 107 [11:49:53] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid === [11:49:53] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc [11:49:53] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc [11:49:53] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc [11:49:53] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc [11:49:53] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc [11:49:53] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ==== [11:49:53] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) == [11:49:53] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ==== [11:49:53] [PASSED] Automatic [11:49:53] [PASSED] Full [11:49:53] [PASSED] Limited 16:235 [11:49:53] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name === [11:49:53] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid [11:49:53] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ==== [11:49:53] == drm_hdmi_connector_get_output_format_name (2 subtests) == [11:49:53] === drm_test_drm_hdmi_connector_get_output_format_name ==== [11:49:53] [PASSED] RGB [11:49:53] [PASSED] YUV 4:2:0 [11:49:53] [PASSED] YUV 4:2:2 [11:49:53] [PASSED] YUV 4:4:4 [11:49:53] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name === [11:49:53] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid [11:49:53] ==== [PASSED] drm_hdmi_connector_get_output_format_name ==== [11:49:53] ============= drm_damage_helper (21 subtests) ============== [11:49:53] [PASSED] drm_test_damage_iter_no_damage [11:49:53] [PASSED] drm_test_damage_iter_no_damage_fractional_src [11:49:53] [PASSED] drm_test_damage_iter_no_damage_src_moved [11:49:53] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved [11:49:53] [PASSED] drm_test_damage_iter_no_damage_not_visible [11:49:53] [PASSED] drm_test_damage_iter_no_damage_no_crtc [11:49:53] [PASSED] drm_test_damage_iter_no_damage_no_fb [11:49:53] [PASSED] drm_test_damage_iter_simple_damage [11:49:53] [PASSED] drm_test_damage_iter_single_damage [11:49:53] [PASSED] drm_test_damage_iter_single_damage_intersect_src [11:49:53] [PASSED] drm_test_damage_iter_single_damage_outside_src [11:49:53] [PASSED] drm_test_damage_iter_single_damage_fractional_src [11:49:53] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src [11:49:53] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src [11:49:53] [PASSED] drm_test_damage_iter_single_damage_src_moved [11:49:53] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved [11:49:53] [PASSED] drm_test_damage_iter_damage [11:49:53] [PASSED] drm_test_damage_iter_damage_one_intersect [11:49:53] [PASSED] drm_test_damage_iter_damage_one_outside [11:49:53] [PASSED] drm_test_damage_iter_damage_src_moved [11:49:53] [PASSED] drm_test_damage_iter_damage_not_visible [11:49:53] ================ [PASSED] drm_damage_helper ================ [11:49:53] ============== drm_dp_mst_helper (3 subtests) ============== [11:49:53] ============== drm_test_dp_mst_calc_pbn_mode ============== [11:49:53] [PASSED] Clock 154000 BPP 30 DSC disabled [11:49:53] [PASSED] Clock 234000 BPP 30 DSC disabled [11:49:53] [PASSED] Clock 297000 BPP 24 DSC disabled [11:49:53] [PASSED] Clock 332880 BPP 24 DSC enabled [11:49:53] [PASSED] Clock 324540 BPP 24 DSC enabled [11:49:53] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ========== [11:49:53] ============== drm_test_dp_mst_calc_pbn_div =============== [11:49:53] [PASSED] Link rate 2000000 lane count 4 [11:49:53] [PASSED] Link rate 2000000 lane count 2 [11:49:53] [PASSED] Link rate 2000000 lane count 1 [11:49:53] [PASSED] Link rate 1350000 lane count 4 [11:49:53] [PASSED] Link rate 1350000 lane count 2 [11:49:53] [PASSED] Link rate 1350000 lane count 1 [11:49:53] [PASSED] Link rate 1000000 lane count 4 [11:49:53] [PASSED] Link rate 1000000 lane count 2 [11:49:53] [PASSED] Link rate 1000000 lane count 1 [11:49:53] [PASSED] Link rate 810000 lane count 4 [11:49:53] [PASSED] Link rate 810000 lane count 2 [11:49:53] [PASSED] Link rate 810000 lane count 1 [11:49:53] [PASSED] Link rate 540000 lane count 4 [11:49:53] [PASSED] Link rate 540000 lane count 2 [11:49:53] [PASSED] Link rate 540000 lane count 1 [11:49:53] [PASSED] Link rate 270000 lane count 4 [11:49:53] [PASSED] Link rate 270000 lane count 2 [11:49:53] [PASSED] Link rate 270000 lane count 1 [11:49:53] [PASSED] Link rate 162000 lane count 4 [11:49:53] [PASSED] Link rate 162000 lane count 2 [11:49:53] [PASSED] Link rate 162000 lane count 1 [11:49:53] ========== [PASSED] drm_test_dp_mst_calc_pbn_div =========== [11:49:53] ========= drm_test_dp_mst_sideband_msg_req_decode ========= [11:49:53] [PASSED] DP_ENUM_PATH_RESOURCES with port number [11:49:53] [PASSED] DP_POWER_UP_PHY with port number [11:49:53] [PASSED] DP_POWER_DOWN_PHY with port number [11:49:53] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks [11:49:53] [PASSED] DP_ALLOCATE_PAYLOAD with port number [11:49:53] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI [11:49:53] [PASSED] DP_ALLOCATE_PAYLOAD with PBN [11:49:53] [PASSED] DP_QUERY_PAYLOAD with port number [11:49:53] [PASSED] DP_QUERY_PAYLOAD with VCPI [11:49:53] [PASSED] DP_REMOTE_DPCD_READ with port number [11:49:53] [PASSED] DP_REMOTE_DPCD_READ with DPCD address [11:49:53] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes [11:49:53] [PASSED] DP_REMOTE_DPCD_WRITE with port number [11:49:53] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address [11:49:53] [PASSED] DP_REMOTE_DPCD_WRITE with data array [11:49:53] [PASSED] DP_REMOTE_I2C_READ with port number [11:49:53] [PASSED] DP_REMOTE_I2C_READ with I2C device ID [11:49:53] [PASSED] DP_REMOTE_I2C_READ with transactions array [11:49:53] [PASSED] DP_REMOTE_I2C_WRITE with port number [11:49:53] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID [11:49:53] [PASSED] DP_REMOTE_I2C_WRITE with data array [11:49:53] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID [11:49:53] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID [11:49:53] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event [11:49:53] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event [11:49:53] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior [11:49:53] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior [11:49:53] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode ===== [11:49:53] ================ [PASSED] drm_dp_mst_helper ================ [11:49:53] ================== drm_exec (7 subtests) =================== [11:49:53] [PASSED] sanitycheck [11:49:53] [PASSED] test_lock [11:49:53] [PASSED] test_lock_unlock [11:49:53] [PASSED] test_duplicates [11:49:53] [PASSED] test_prepare [11:49:53] [PASSED] test_prepare_array [11:49:53] [PASSED] test_multiple_loops [11:49:53] ==================== [PASSED] drm_exec ===================== [11:49:53] =========== drm_format_helper_test (17 subtests) =========== [11:49:53] ============== drm_test_fb_xrgb8888_to_gray8 ============== [11:49:53] [PASSED] single_pixel_source_buffer [11:49:53] [PASSED] single_pixel_clip_rectangle [11:49:53] [PASSED] well_known_colors [11:49:53] [PASSED] destination_pitch [11:49:53] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ========== [11:49:53] ============= drm_test_fb_xrgb8888_to_rgb332 ============== [11:49:53] [PASSED] single_pixel_source_buffer [11:49:53] [PASSED] single_pixel_clip_rectangle [11:49:53] [PASSED] well_known_colors [11:49:53] [PASSED] destination_pitch [11:49:53] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ========== [11:49:53] ============= drm_test_fb_xrgb8888_to_rgb565 ============== [11:49:53] [PASSED] single_pixel_source_buffer [11:49:53] [PASSED] single_pixel_clip_rectangle [11:49:53] [PASSED] well_known_colors [11:49:53] [PASSED] destination_pitch [11:49:53] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ========== [11:49:53] ============ drm_test_fb_xrgb8888_to_xrgb1555 ============= [11:49:53] [PASSED] single_pixel_source_buffer [11:49:53] [PASSED] single_pixel_clip_rectangle [11:49:53] [PASSED] well_known_colors [11:49:53] [PASSED] destination_pitch [11:49:53] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 ========= [11:49:53] ============ drm_test_fb_xrgb8888_to_argb1555 ============= [11:49:53] [PASSED] single_pixel_source_buffer [11:49:53] [PASSED] single_pixel_clip_rectangle [11:49:53] [PASSED] well_known_colors [11:49:53] [PASSED] destination_pitch [11:49:53] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 ========= [11:49:53] ============ drm_test_fb_xrgb8888_to_rgba5551 ============= [11:49:53] [PASSED] single_pixel_source_buffer [11:49:53] [PASSED] single_pixel_clip_rectangle [11:49:53] [PASSED] well_known_colors [11:49:53] [PASSED] destination_pitch [11:49:53] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 ========= [11:49:53] ============= drm_test_fb_xrgb8888_to_rgb888 ============== [11:49:53] [PASSED] single_pixel_source_buffer [11:49:53] [PASSED] single_pixel_clip_rectangle [11:49:53] [PASSED] well_known_colors [11:49:53] [PASSED] destination_pitch [11:49:53] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ========== [11:49:53] ============= drm_test_fb_xrgb8888_to_bgr888 ============== [11:49:53] [PASSED] single_pixel_source_buffer [11:49:53] [PASSED] single_pixel_clip_rectangle [11:49:53] [PASSED] well_known_colors [11:49:53] [PASSED] destination_pitch [11:49:53] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ========== [11:49:53] ============ drm_test_fb_xrgb8888_to_argb8888 ============= [11:49:53] [PASSED] single_pixel_source_buffer [11:49:53] [PASSED] single_pixel_clip_rectangle [11:49:53] [PASSED] well_known_colors [11:49:53] [PASSED] destination_pitch [11:49:53] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 ========= [11:49:53] =========== drm_test_fb_xrgb8888_to_xrgb2101010 =========== [11:49:53] [PASSED] single_pixel_source_buffer [11:49:53] [PASSED] single_pixel_clip_rectangle [11:49:53] [PASSED] well_known_colors [11:49:53] [PASSED] destination_pitch [11:49:53] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 ======= [11:49:53] =========== drm_test_fb_xrgb8888_to_argb2101010 =========== [11:49:53] [PASSED] single_pixel_source_buffer [11:49:53] [PASSED] single_pixel_clip_rectangle [11:49:53] [PASSED] well_known_colors [11:49:53] [PASSED] destination_pitch [11:49:53] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 ======= [11:49:53] ============== drm_test_fb_xrgb8888_to_mono =============== [11:49:53] [PASSED] single_pixel_source_buffer [11:49:53] [PASSED] single_pixel_clip_rectangle [11:49:53] [PASSED] well_known_colors [11:49:53] [PASSED] destination_pitch [11:49:53] ========== [PASSED] drm_test_fb_xrgb8888_to_mono =========== [11:49:53] ==================== drm_test_fb_swab ===================== [11:49:53] [PASSED] single_pixel_source_buffer [11:49:53] [PASSED] single_pixel_clip_rectangle [11:49:53] [PASSED] well_known_colors [11:49:53] [PASSED] destination_pitch [11:49:53] ================ [PASSED] drm_test_fb_swab ================= [11:49:53] ============ drm_test_fb_xrgb8888_to_xbgr8888 ============= [11:49:53] [PASSED] single_pixel_source_buffer [11:49:53] [PASSED] single_pixel_clip_rectangle [11:49:53] [PASSED] well_known_colors [11:49:53] [PASSED] destination_pitch [11:49:53] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 ========= [11:49:53] ============ drm_test_fb_xrgb8888_to_abgr8888 ============= [11:49:53] [PASSED] single_pixel_source_buffer [11:49:53] [PASSED] single_pixel_clip_rectangle [11:49:53] [PASSED] well_known_colors [11:49:53] [PASSED] destination_pitch [11:49:53] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 ========= [11:49:53] ================= drm_test_fb_clip_offset ================= [11:49:53] [PASSED] pass through [11:49:53] [PASSED] horizontal offset [11:49:53] [PASSED] vertical offset [11:49:53] [PASSED] horizontal and vertical offset [11:49:53] [PASSED] horizontal offset (custom pitch) [11:49:53] [PASSED] vertical offset (custom pitch) [11:49:53] [PASSED] horizontal and vertical offset (custom pitch) [11:49:53] ============= [PASSED] drm_test_fb_clip_offset ============= [11:49:53] =================== drm_test_fb_memcpy ==================== [11:49:53] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258) [11:49:53] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258) [11:49:53] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559) [11:49:53] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258) [11:49:53] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258) [11:49:53] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559) [11:49:53] [PASSED] well_known_colors: XB24 little-endian (0x34324258) [11:49:53] [PASSED] well_known_colors: XRA8 little-endian (0x38415258) [11:49:53] [PASSED] well_known_colors: YU24 little-endian (0x34325559) [11:49:53] [PASSED] destination_pitch: XB24 little-endian (0x34324258) [11:49:53] [PASSED] destination_pitch: XRA8 little-endian (0x38415258) [11:49:53] [PASSED] destination_pitch: YU24 little-endian (0x34325559) [11:49:53] =============== [PASSED] drm_test_fb_memcpy ================ [11:49:53] ============= [PASSED] drm_format_helper_test ============== [11:49:53] ================= drm_format (18 subtests) ================= [11:49:53] [PASSED] drm_test_format_block_width_invalid [11:49:53] [PASSED] drm_test_format_block_width_one_plane [11:49:53] [PASSED] drm_test_format_block_width_two_plane [11:49:53] [PASSED] drm_test_format_block_width_three_plane [11:49:53] [PASSED] drm_test_format_block_width_tiled [11:49:53] [PASSED] drm_test_format_block_height_invalid [11:49:53] [PASSED] drm_test_format_block_height_one_plane [11:49:53] [PASSED] drm_test_format_block_height_two_plane [11:49:53] [PASSED] drm_test_format_block_height_three_plane [11:49:53] [PASSED] drm_test_format_block_height_tiled [11:49:53] [PASSED] drm_test_format_min_pitch_invalid [11:49:53] [PASSED] drm_test_format_min_pitch_one_plane_8bpp [11:49:53] [PASSED] drm_test_format_min_pitch_one_plane_16bpp [11:49:53] [PASSED] drm_test_format_min_pitch_one_plane_24bpp [11:49:53] [PASSED] drm_test_format_min_pitch_one_plane_32bpp [11:49:53] [PASSED] drm_test_format_min_pitch_two_plane [11:49:53] [PASSED] drm_test_format_min_pitch_three_plane_8bpp [11:49:53] [PASSED] drm_test_format_min_pitch_tiled [11:49:53] =================== [PASSED] drm_format ==================== [11:49:53] ============== drm_framebuffer (10 subtests) =============== [11:49:53] ========== drm_test_framebuffer_check_src_coords ========== [11:49:53] [PASSED] Success: source fits into fb [11:49:53] [PASSED] Fail: overflowing fb with x-axis coordinate [11:49:53] [PASSED] Fail: overflowing fb with y-axis coordinate [11:49:53] [PASSED] Fail: overflowing fb with source width [11:49:53] [PASSED] Fail: overflowing fb with source height [11:49:53] ====== [PASSED] drm_test_framebuffer_check_src_coords ====== [11:49:53] [PASSED] drm_test_framebuffer_cleanup [11:49:53] =============== drm_test_framebuffer_create =============== [11:49:53] [PASSED] ABGR8888 normal sizes [11:49:53] [PASSED] ABGR8888 max sizes [11:49:53] [PASSED] ABGR8888 pitch greater than min required [11:49:53] [PASSED] ABGR8888 pitch less than min required [11:49:53] [PASSED] ABGR8888 Invalid width [11:49:53] [PASSED] ABGR8888 Invalid buffer handle [11:49:53] [PASSED] No pixel format [11:49:53] [PASSED] ABGR8888 Width 0 [11:49:53] [PASSED] ABGR8888 Height 0 [11:49:53] [PASSED] ABGR8888 Out of bound height * pitch combination [11:49:53] [PASSED] ABGR8888 Large buffer offset [11:49:53] [PASSED] ABGR8888 Buffer offset for inexistent plane [11:49:53] [PASSED] ABGR8888 Invalid flag [11:49:53] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers [11:49:53] [PASSED] ABGR8888 Valid buffer modifier [11:49:53] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE) [11:49:53] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS [11:49:53] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS [11:49:53] [PASSED] NV12 Normal sizes [11:49:53] [PASSED] NV12 Max sizes [11:49:53] [PASSED] NV12 Invalid pitch [11:49:53] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag [11:49:53] [PASSED] NV12 different modifier per-plane [11:49:53] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE [11:49:53] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS [11:49:53] [PASSED] NV12 Modifier for inexistent plane [11:49:53] [PASSED] NV12 Handle for inexistent plane [11:49:53] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS [11:49:53] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier [11:49:53] [PASSED] YVU420 Normal sizes [11:49:53] [PASSED] YVU420 Max sizes [11:49:53] [PASSED] YVU420 Invalid pitch [11:49:53] [PASSED] YVU420 Different pitches [11:49:53] [PASSED] YVU420 Different buffer offsets/pitches [11:49:53] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS [11:49:53] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS [11:49:53] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS [11:49:53] [PASSED] YVU420 Valid modifier [11:49:53] [PASSED] YVU420 Different modifiers per plane [11:49:53] [PASSED] YVU420 Modifier for inexistent plane [11:49:53] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR) [11:49:53] [PASSED] X0L2 Normal sizes [11:49:53] [PASSED] X0L2 Max sizes [11:49:53] [PASSED] X0L2 Invalid pitch [11:49:53] [PASSED] X0L2 Pitch greater than minimum required [11:49:53] [PASSED] X0L2 Handle for inexistent plane [11:49:53] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set [11:49:53] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set [11:49:53] [PASSED] X0L2 Valid modifier [11:49:53] [PASSED] X0L2 Modifier for inexistent plane [11:49:53] =========== [PASSED] drm_test_framebuffer_create =========== [11:49:53] [PASSED] drm_test_framebuffer_free [11:49:53] [PASSED] drm_test_framebuffer_init [11:49:53] [PASSED] drm_test_framebuffer_init_bad_format [11:49:53] [PASSED] drm_test_framebuffer_init_dev_mismatch [11:49:53] [PASSED] drm_test_framebuffer_lookup [11:49:53] [PASSED] drm_test_framebuffer_lookup_inexistent [11:49:53] [PASSED] drm_test_framebuffer_modifiers_not_supported [11:49:53] ================= [PASSED] drm_framebuffer ================= [11:49:53] ================ drm_gem_shmem (8 subtests) ================ [11:49:53] [PASSED] drm_gem_shmem_test_obj_create [11:49:53] [PASSED] drm_gem_shmem_test_obj_create_private [11:49:53] [PASSED] drm_gem_shmem_test_pin_pages [11:49:53] [PASSED] drm_gem_shmem_test_vmap [11:49:53] [PASSED] drm_gem_shmem_test_get_sg_table [11:49:53] [PASSED] drm_gem_shmem_test_get_pages_sgt [11:49:53] [PASSED] drm_gem_shmem_test_madvise [11:49:53] [PASSED] drm_gem_shmem_test_purge [11:49:53] ================== [PASSED] drm_gem_shmem ================== [11:49:53] === drm_atomic_helper_connector_hdmi_check (27 subtests) === [11:49:53] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode [11:49:53] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1 [11:49:53] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode [11:49:53] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1 [11:49:53] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode [11:49:53] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1 [11:49:53] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 ======= [11:49:53] [PASSED] Automatic [11:49:53] [PASSED] Full [11:49:53] [PASSED] Limited 16:235 [11:49:53] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 === [11:49:53] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed [11:49:53] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed [11:49:53] [PASSED] drm_test_check_disable_connector [11:49:53] [PASSED] drm_test_check_hdmi_funcs_reject_rate [11:49:53] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb [11:49:53] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420 [11:49:53] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422 [11:49:53] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420 [11:49:53] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420 [11:49:53] [PASSED] drm_test_check_output_bpc_crtc_mode_changed [11:49:53] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed [11:49:53] [PASSED] drm_test_check_output_bpc_dvi [11:49:53] [PASSED] drm_test_check_output_bpc_format_vic_1 [11:49:53] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only [11:49:53] [PASSED] drm_test_check_output_bpc_format_display_rgb_only [11:49:53] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only [11:49:53] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only [11:49:53] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc [11:49:53] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc [11:49:53] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc [11:49:53] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ====== [11:49:53] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ==== [11:49:53] [PASSED] drm_test_check_broadcast_rgb_value [11:49:53] [PASSED] drm_test_check_bpc_8_value [11:49:53] [PASSED] drm_test_check_bpc_10_value [11:49:53] [PASSED] drm_test_check_bpc_12_value [11:49:53] [PASSED] drm_test_check_format_value [11:49:53] [PASSED] drm_test_check_tmds_char_value [11:49:53] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ====== [11:49:53] = drm_atomic_helper_connector_hdmi_mode_valid (4 subtests) = [11:49:53] [PASSED] drm_test_check_mode_valid [11:49:53] [PASSED] drm_test_check_mode_valid_reject [11:49:53] [PASSED] drm_test_check_mode_valid_reject_rate [11:49:53] [PASSED] drm_test_check_mode_valid_reject_max_clock [11:49:53] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid === [11:49:53] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) = [11:49:53] [PASSED] drm_test_check_infoframes [11:49:53] [PASSED] drm_test_check_reject_avi_infoframe [11:49:53] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8 [11:49:53] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10 [11:49:53] [PASSED] drm_test_check_reject_audio_infoframe [11:49:53] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes === [11:49:53] ================= drm_managed (2 subtests) ================= [11:49:53] [PASSED] drm_test_managed_release_action [11:49:53] [PASSED] drm_test_managed_run_action [11:49:53] =================== [PASSED] drm_managed =================== [11:49:53] =================== drm_mm (6 subtests) ==================== [11:49:53] [PASSED] drm_test_mm_init [11:49:53] [PASSED] drm_test_mm_debug [11:49:53] [PASSED] drm_test_mm_align32 [11:49:53] [PASSED] drm_test_mm_align64 [11:49:53] [PASSED] drm_test_mm_lowest [11:49:53] [PASSED] drm_test_mm_highest [11:49:53] ===================== [PASSED] drm_mm ====================== [11:49:53] ============= drm_modes_analog_tv (5 subtests) ============= [11:49:53] [PASSED] drm_test_modes_analog_tv_mono_576i [11:49:53] [PASSED] drm_test_modes_analog_tv_ntsc_480i [11:49:53] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined [11:49:53] [PASSED] drm_test_modes_analog_tv_pal_576i [11:49:53] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined [11:49:53] =============== [PASSED] drm_modes_analog_tv =============== [11:49:53] ============== drm_plane_helper (2 subtests) =============== [11:49:53] =============== drm_test_check_plane_state ================ [11:49:53] [PASSED] clipping_simple [11:49:53] [PASSED] clipping_rotate_reflect [11:49:53] [PASSED] positioning_simple [11:49:53] [PASSED] upscaling [11:49:53] [PASSED] downscaling [11:49:53] [PASSED] rounding1 [11:49:53] [PASSED] rounding2 [11:49:53] [PASSED] rounding3 [11:49:53] [PASSED] rounding4 [11:49:53] =========== [PASSED] drm_test_check_plane_state ============ [11:49:53] =========== drm_test_check_invalid_plane_state ============ [11:49:53] [PASSED] positioning_invalid [11:49:53] [PASSED] upscaling_invalid [11:49:53] [PASSED] downscaling_invalid [11:49:53] ======= [PASSED] drm_test_check_invalid_plane_state ======== [11:49:53] ================ [PASSED] drm_plane_helper ================= [11:49:53] ====== drm_connector_helper_tv_get_modes (1 subtest) ======= [11:49:53] ====== drm_test_connector_helper_tv_get_modes_check ======= [11:49:53] [PASSED] None [11:49:53] [PASSED] PAL [11:49:53] [PASSED] NTSC [11:49:53] [PASSED] Both, NTSC Default [11:49:53] [PASSED] Both, PAL Default [11:49:53] [PASSED] Both, NTSC Default, with PAL on command-line [11:49:53] [PASSED] Both, PAL Default, with NTSC on command-line [11:49:53] == [PASSED] drm_test_connector_helper_tv_get_modes_check === [11:49:53] ======== [PASSED] drm_connector_helper_tv_get_modes ======== [11:49:53] ================== drm_rect (9 subtests) =================== [11:49:53] [PASSED] drm_test_rect_clip_scaled_div_by_zero [11:49:53] [PASSED] drm_test_rect_clip_scaled_not_clipped [11:49:53] [PASSED] drm_test_rect_clip_scaled_clipped [11:49:53] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned [11:49:53] ================= drm_test_rect_intersect ================= [11:49:53] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0 [11:49:53] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1 [11:49:53] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0 [11:49:53] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1 [11:49:53] [PASSED] right x left: 2x1+0+0 x 3x1+1+0 [11:49:53] [PASSED] left x right: 3x1+1+0 x 2x1+0+0 [11:49:53] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1 [11:49:53] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0 [11:49:53] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1 [11:49:53] [PASSED] touching side: 1x1+0+0 x 1x1+1+0 [11:49:53] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0 [11:49:53] [PASSED] inside another: 2x2+0+0 x 1x1+1+1 [11:49:53] [PASSED] far away: 1x1+0+0 x 1x1+3+6 [11:49:53] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10 [11:49:53] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10 stty: 'standard input': Inappropriate ioctl for device [11:49:53] ============= [PASSED] drm_test_rect_intersect ============= [11:49:53] ================ drm_test_rect_calc_hscale ================ [11:49:53] [PASSED] normal use [11:49:53] [PASSED] out of max range [11:49:53] [PASSED] out of min range [11:49:53] [PASSED] zero dst [11:49:53] [PASSED] negative src [11:49:53] [PASSED] negative dst [11:49:53] ============ [PASSED] drm_test_rect_calc_hscale ============ [11:49:53] ================ drm_test_rect_calc_vscale ================ [11:49:53] [PASSED] normal use [11:49:53] [PASSED] out of max range [11:49:53] [PASSED] out of min range [11:49:53] [PASSED] zero dst [11:49:53] [PASSED] negative src [11:49:53] [PASSED] negative dst [11:49:53] ============ [PASSED] drm_test_rect_calc_vscale ============ [11:49:53] ================== drm_test_rect_rotate =================== [11:49:53] [PASSED] reflect-x [11:49:53] [PASSED] reflect-y [11:49:53] [PASSED] rotate-0 [11:49:53] [PASSED] rotate-90 [11:49:53] [PASSED] rotate-180 [11:49:53] [PASSED] rotate-270 [11:49:53] ============== [PASSED] drm_test_rect_rotate =============== [11:49:53] ================ drm_test_rect_rotate_inv ================= [11:49:53] [PASSED] reflect-x [11:49:53] [PASSED] reflect-y [11:49:53] [PASSED] rotate-0 [11:49:53] [PASSED] rotate-90 [11:49:53] [PASSED] rotate-180 [11:49:53] [PASSED] rotate-270 [11:49:53] ============ [PASSED] drm_test_rect_rotate_inv ============= [11:49:53] ==================== [PASSED] drm_rect ===================== [11:49:53] ============ drm_sysfb_modeset_test (1 subtest) ============ [11:49:53] ============ drm_test_sysfb_build_fourcc_list ============= [11:49:53] [PASSED] no native formats [11:49:53] [PASSED] XRGB8888 as native format [11:49:53] [PASSED] remove duplicates [11:49:53] [PASSED] convert alpha formats [11:49:53] [PASSED] random formats [11:49:53] ======== [PASSED] drm_test_sysfb_build_fourcc_list ========= [11:49:53] ============= [PASSED] drm_sysfb_modeset_test ============== [11:49:53] ================== drm_fixp (2 subtests) =================== [11:49:53] [PASSED] drm_test_int2fixp [11:49:53] [PASSED] drm_test_sm2fixp [11:49:53] ==================== [PASSED] drm_fixp ===================== [11:49:53] ============================================================ [11:49:53] Testing complete. Ran 630 tests: passed: 630 [11:49:53] Elapsed time: 28.002s total, 1.672s configuring, 25.913s building, 0.377s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [11:49:53] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [11:49:55] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [11:50:05] Starting KUnit Kernel (1/1)... [11:50:05] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [11:50:05] ================= ttm_device (5 subtests) ================== [11:50:05] [PASSED] ttm_device_init_basic [11:50:05] [PASSED] ttm_device_init_multiple [11:50:05] [PASSED] ttm_device_fini_basic [11:50:05] [PASSED] ttm_device_init_no_vma_man [11:50:05] ================== ttm_device_init_pools ================== [11:50:05] [PASSED] No DMA allocations, no DMA32 required [11:50:05] [PASSED] DMA allocations, DMA32 required [11:50:05] [PASSED] No DMA allocations, DMA32 required [11:50:05] [PASSED] DMA allocations, no DMA32 required [11:50:05] ============== [PASSED] ttm_device_init_pools ============== [11:50:05] =================== [PASSED] ttm_device ==================== [11:50:05] ================== ttm_pool (8 subtests) =================== [11:50:05] ================== ttm_pool_alloc_basic =================== [11:50:05] [PASSED] One page [11:50:05] [PASSED] More than one page [11:50:05] [PASSED] Above the allocation limit [11:50:05] [PASSED] One page, with coherent DMA mappings enabled [11:50:05] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [11:50:05] ============== [PASSED] ttm_pool_alloc_basic =============== [11:50:05] ============== ttm_pool_alloc_basic_dma_addr ============== [11:50:05] [PASSED] One page [11:50:05] [PASSED] More than one page [11:50:05] [PASSED] Above the allocation limit [11:50:05] [PASSED] One page, with coherent DMA mappings enabled [11:50:05] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [11:50:05] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ========== [11:50:05] [PASSED] ttm_pool_alloc_order_caching_match [11:50:05] [PASSED] ttm_pool_alloc_caching_mismatch [11:50:05] [PASSED] ttm_pool_alloc_order_mismatch [11:50:05] [PASSED] ttm_pool_free_dma_alloc [11:50:05] [PASSED] ttm_pool_free_no_dma_alloc [11:50:05] [PASSED] ttm_pool_fini_basic [11:50:05] ==================== [PASSED] ttm_pool ===================== [11:50:05] ================ ttm_resource (8 subtests) ================= [11:50:05] ================= ttm_resource_init_basic ================= [11:50:05] [PASSED] Init resource in TTM_PL_SYSTEM [11:50:05] [PASSED] Init resource in TTM_PL_VRAM [11:50:05] [PASSED] Init resource in a private placement [11:50:05] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags [11:50:05] ============= [PASSED] ttm_resource_init_basic ============= [11:50:05] [PASSED] ttm_resource_init_pinned [11:50:05] [PASSED] ttm_resource_fini_basic [11:50:05] [PASSED] ttm_resource_manager_init_basic [11:50:05] [PASSED] ttm_resource_manager_usage_basic [11:50:05] [PASSED] ttm_resource_manager_set_used_basic [11:50:05] [PASSED] ttm_sys_man_alloc_basic [11:50:05] [PASSED] ttm_sys_man_free_basic [11:50:05] ================== [PASSED] ttm_resource =================== [11:50:05] =================== ttm_tt (15 subtests) =================== [11:50:05] ==================== ttm_tt_init_basic ==================== [11:50:05] [PASSED] Page-aligned size [11:50:05] [PASSED] Extra pages requested [11:50:05] ================ [PASSED] ttm_tt_init_basic ================ [11:50:05] [PASSED] ttm_tt_init_misaligned [11:50:05] [PASSED] ttm_tt_fini_basic [11:50:05] [PASSED] ttm_tt_fini_sg [11:50:05] [PASSED] ttm_tt_fini_shmem [11:50:05] [PASSED] ttm_tt_create_basic [11:50:05] [PASSED] ttm_tt_create_invalid_bo_type [11:50:05] [PASSED] ttm_tt_create_ttm_exists [11:50:05] [PASSED] ttm_tt_create_failed [11:50:05] [PASSED] ttm_tt_destroy_basic [11:50:05] [PASSED] ttm_tt_populate_null_ttm [11:50:05] [PASSED] ttm_tt_populate_populated_ttm [11:50:05] [PASSED] ttm_tt_unpopulate_basic [11:50:05] [PASSED] ttm_tt_unpopulate_empty_ttm [11:50:05] [PASSED] ttm_tt_swapin_basic [11:50:05] ===================== [PASSED] ttm_tt ====================== [11:50:05] =================== ttm_bo (14 subtests) =================== [11:50:05] =========== ttm_bo_reserve_optimistic_no_ticket =========== [11:50:05] [PASSED] Cannot be interrupted and sleeps [11:50:05] [PASSED] Cannot be interrupted, locks straight away [11:50:05] [PASSED] Can be interrupted, sleeps [11:50:05] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket ======= [11:50:05] [PASSED] ttm_bo_reserve_locked_no_sleep [11:50:05] [PASSED] ttm_bo_reserve_no_wait_ticket [11:50:05] [PASSED] ttm_bo_reserve_double_resv [11:50:05] [PASSED] ttm_bo_reserve_interrupted [11:50:05] [PASSED] ttm_bo_reserve_deadlock [11:50:05] [PASSED] ttm_bo_unreserve_basic [11:50:05] [PASSED] ttm_bo_unreserve_pinned [11:50:05] [PASSED] ttm_bo_unreserve_bulk [11:50:05] [PASSED] ttm_bo_fini_basic [11:50:05] [PASSED] ttm_bo_fini_shared_resv [11:50:05] [PASSED] ttm_bo_pin_basic [11:50:05] [PASSED] ttm_bo_pin_unpin_resource [11:50:05] [PASSED] ttm_bo_multiple_pin_one_unpin [11:50:05] ===================== [PASSED] ttm_bo ====================== [11:50:05] ============== ttm_bo_validate (21 subtests) =============== [11:50:05] ============== ttm_bo_init_reserved_sys_man =============== [11:50:05] [PASSED] Buffer object for userspace [11:50:05] [PASSED] Kernel buffer object [11:50:05] [PASSED] Shared buffer object [11:50:05] ========== [PASSED] ttm_bo_init_reserved_sys_man =========== [11:50:05] ============== ttm_bo_init_reserved_mock_man ============== [11:50:05] [PASSED] Buffer object for userspace [11:50:05] [PASSED] Kernel buffer object [11:50:05] [PASSED] Shared buffer object [11:50:05] ========== [PASSED] ttm_bo_init_reserved_mock_man ========== [11:50:05] [PASSED] ttm_bo_init_reserved_resv [11:50:05] ================== ttm_bo_validate_basic ================== [11:50:05] [PASSED] Buffer object for userspace [11:50:05] [PASSED] Kernel buffer object [11:50:05] [PASSED] Shared buffer object [11:50:05] ============== [PASSED] ttm_bo_validate_basic ============== [11:50:05] [PASSED] ttm_bo_validate_invalid_placement [11:50:05] ============= ttm_bo_validate_same_placement ============== [11:50:05] [PASSED] System manager [11:50:05] [PASSED] VRAM manager [11:50:05] ========= [PASSED] ttm_bo_validate_same_placement ========== [11:50:05] [PASSED] ttm_bo_validate_failed_alloc [11:50:05] [PASSED] ttm_bo_validate_pinned [11:50:05] [PASSED] ttm_bo_validate_busy_placement [11:50:05] ================ ttm_bo_validate_multihop ================= [11:50:05] [PASSED] Buffer object for userspace [11:50:05] [PASSED] Kernel buffer object [11:50:05] [PASSED] Shared buffer object [11:50:05] ============ [PASSED] ttm_bo_validate_multihop ============= [11:50:05] ========== ttm_bo_validate_no_placement_signaled ========== [11:50:05] [PASSED] Buffer object in system domain, no page vector [11:50:05] [PASSED] Buffer object in system domain with an existing page vector [11:50:05] ====== [PASSED] ttm_bo_validate_no_placement_signaled ====== [11:50:05] ======== ttm_bo_validate_no_placement_not_signaled ======== [11:50:05] [PASSED] Buffer object for userspace [11:50:05] [PASSED] Kernel buffer object [11:50:05] [PASSED] Shared buffer object [11:50:05] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ==== [11:50:05] [PASSED] ttm_bo_validate_move_fence_signaled [11:50:05] ========= ttm_bo_validate_move_fence_not_signaled ========= [11:50:05] [PASSED] Waits for GPU [11:50:05] [PASSED] Tries to lock straight away [11:50:05] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled ===== [11:50:05] [PASSED] ttm_bo_validate_happy_evict [11:50:05] [PASSED] ttm_bo_validate_all_pinned_evict [11:50:05] [PASSED] ttm_bo_validate_allowed_only_evict [11:50:05] [PASSED] ttm_bo_validate_deleted_evict [11:50:05] [PASSED] ttm_bo_validate_busy_domain_evict [11:50:05] [PASSED] ttm_bo_validate_evict_gutting [11:50:05] [PASSED] ttm_bo_validate_recrusive_evict stty: 'standard input': Inappropriate ioctl for device [11:50:05] ================= [PASSED] ttm_bo_validate ================= [11:50:05] ============================================================ [11:50:05] Testing complete. Ran 101 tests: passed: 101 [11:50:05] Elapsed time: 11.706s total, 1.689s configuring, 9.800s building, 0.177s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
Patchwork
CI✓ Xe.CI.BAT: success for mm: Fix a hmm_range_fault() livelock / starvation problem
In reply to Thomas Hellström== Series Details ==
== Series Details ==
Series: mm: Fix a hmm_range_fault() livelock / starvation problem
URL : https://patchwork.freedesktop.org/series/161081/
State : success
== Summary ==
CI Bug Log - changes from xe-4489-1c038794140250955ba149f8175f6564e573d5c7_BAT -> xe-pw-161081v1_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (12 -> 12)
------------------------------
No changes in participating hosts
Known issues
------------
Here are the changes found in xe-pw-161081v1_BAT that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@xe_waitfence@reltime:
- bat-dg2-oem2: [PASS][1] -> [FAIL][2] ([Intel XE#6520])
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4489-1c038794140250955ba149f8175f6564e573d5c7/bat-dg2-oem2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-161081v1/bat-dg2-oem2/igt@[email protected]
#### Possible fixes ####
* igt@xe_waitfence@abstime:
- bat-dg2-oem2: [TIMEOUT][3] ([Intel XE#6506]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4489-1c038794140250955ba149f8175f6564e573d5c7/bat-dg2-oem2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-161081v1/bat-dg2-oem2/igt@[email protected]
[Intel XE#6506]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6506
[Intel XE#6520]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6520
Build changes
-------------
* IGT: IGT_8729 -> IGT_8730
* Linux: xe-4489-1c038794140250955ba149f8175f6564e573d5c7 -> xe-pw-161081v1
IGT_8729: 8729
IGT_8730: 8730
xe-4489-1c038794140250955ba149f8175f6564e573d5c7: 1c038794140250955ba149f8175f6564e573d5c7
xe-pw-161081v1: 161081v1
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-161081v1/index.html
kernel test robot
build botkernel test robot noticed the following build errors:
Hi Thomas,
kernel test robot noticed the following build errors:
[auto build test ERROR on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Thomas-Hellstr-m/mm-Fix-a-hmm_range_fault-livelock-starvation-problem/20260203-184803 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20260203104532.98534-1-thomas.hellstrom%40linux.intel.com patch subject: [PATCH v2] mm: Fix a hmm_range_fault() livelock / starvation problem config: alpha-allnoconfig (https://download.01.org/0day-ci/archive/20260203/[email protected]/config) compiler: alpha-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260203/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
mm/memory.c: In function 'do_swap_page':
>> mm/memory.c:4769:33: error: implicit declaration of function 'migration_entry_wait_on_locked'; did you mean 'migration_entry_wait_huge'? [-Wimplicit-function-declaration]
4769 | migration_entry_wait_on_locked(entry, vmf->ptl);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| migration_entry_wait_hugevim +4769 mm/memory.c
4699
4700 /*
4701 * We enter with non-exclusive mmap_lock (to exclude vma changes,
4702 * but allow concurrent faults), and pte mapped but not yet locked.
4703 * We return with pte unmapped and unlocked.
4704 *
4705 * We return with the mmap_lock locked or unlocked in the same cases
4706 * as does filemap_fault().
4707 */
4708 vm_fault_t do_swap_page(struct vm_fault *vmf)
4709 {
4710 struct vm_area_struct *vma = vmf->vma;
4711 struct folio *swapcache = NULL, *folio;
4712 struct page *page;
4713 struct swap_info_struct *si = NULL;
4714 rmap_t rmap_flags = RMAP_NONE;
4715 bool exclusive = false;
4716 softleaf_t entry;
4717 pte_t pte;
4718 vm_fault_t ret = 0;
4719 int nr_pages;
4720 unsigned long page_idx;
4721 unsigned long address;
4722 pte_t *ptep;
4723
4724 if (!pte_unmap_same(vmf))
4725 goto out;
4726
4727 entry = softleaf_from_pte(vmf->orig_pte);
4728 if (unlikely(!softleaf_is_swap(entry))) {
4729 if (softleaf_is_migration(entry)) {
4730 migration_entry_wait(vma->vm_mm, vmf->pmd,
4731 vmf->address);
4732 } else if (softleaf_is_device_exclusive(entry)) {
4733 vmf->page = softleaf_to_page(entry);
4734 ret = remove_device_exclusive_entry(vmf);
4735 } else if (softleaf_is_device_private(entry)) {
4736 if (vmf->flags & FAULT_FLAG_VMA_LOCK) {
4737 /*
4738 * migrate_to_ram is not yet ready to operate
4739 * under VMA lock.
4740 */
4741 vma_end_read(vma);
4742 ret = VM_FAULT_RETRY;
4743 goto out;
4744 }
4745
4746 vmf->page = softleaf_to_page(entry);
4747 vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd,
4748 vmf->address, &vmf->ptl);
4749 if (unlikely(!vmf->pte ||
4750 !pte_same(ptep_get(vmf->pte),
4751 vmf->orig_pte)))
4752 goto unlock;
4753
4754 /*
4755 * Get a page reference while we know the page can't be
4756 * freed.
4757 */
4758 if (trylock_page(vmf->page)) {
4759 struct dev_pagemap *pgmap;
4760
4761 get_page(vmf->page);
4762 pte_unmap_unlock(vmf->pte, vmf->ptl);
4763 pgmap = page_pgmap(vmf->page);
4764 ret = pgmap->ops->migrate_to_ram(vmf);
4765 unlock_page(vmf->page);
4766 put_page(vmf->page);
4767 } else {
4768 pte_unmap(vmf->pte);
> 4769 migration_entry_wait_on_locked(entry, vmf->ptl);
4770 }
4771 } else if (softleaf_is_hwpoison(entry)) {
4772 ret = VM_FAULT_HWPOISON;
4773 } else if (softleaf_is_marker(entry)) {
4774 ret = handle_pte_marker(vmf);
4775 } else {
4776 print_bad_pte(vma, vmf->address, vmf->orig_pte, NULL);
4777 ret = VM_FAULT_SIGBUS;
4778 }
4779 goto out;
4780 }
4781
4782 /* Prevent swapoff from happening to us. */
4783 si = get_swap_device(entry);
4784 if (unlikely(!si))
4785 goto out;
4786
4787 folio = swap_cache_get_folio(entry);
4788 if (folio)
4789 swap_update_readahead(folio, vma, vmf->address);
4790 if (!folio) {
4791 if (data_race(si->flags & SWP_SYNCHRONOUS_IO)) {
4792 folio = alloc_swap_folio(vmf);
4793 if (folio) {
4794 /*
4795 * folio is charged, so swapin can only fail due
4796 * to raced swapin and return NULL.
4797 */
4798 swapcache = swapin_folio(entry, folio);
4799 if (swapcache != folio)
4800 folio_put(folio);
4801 folio = swapcache;
4802 }
4803 } else {
4804 folio = swapin_readahead(entry, GFP_HIGHUSER_MOVABLE, vmf);
4805 }
4806
4807 if (!folio) {
4808 /*
4809 * Back out if somebody else faulted in this pte
4810 * while we released the pte lock.
4811 */
4812 vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd,
4813 vmf->address, &vmf->ptl);
4814 if (likely(vmf->pte &&
4815 pte_same(ptep_get(vmf->pte), vmf->orig_pte)))
4816 ret = VM_FAULT_OOM;
4817 goto unlock;
4818 }
4819
4820 /* Had to read the page from swap area: Major fault */
4821 ret = VM_FAULT_MAJOR;
4822 count_vm_event(PGMAJFAULT);
4823 count_memcg_event_mm(vma->vm_mm, PGMAJFAULT);
4824 }
4825
4826 swapcache = folio;
4827 ret |= folio_lock_or_retry(folio, vmf);
4828 if (ret & VM_FAULT_RETRY)
4829 goto out_release;
4830
4831 page = folio_file_page(folio, swp_offset(entry));
4832 /*
4833 * Make sure folio_free_swap() or swapoff did not release the
4834 * swapcache from under us. The page pin, and pte_same test
4835 * below, are not enough to exclude that. Even if it is still
4836 * swapcache, we need to check that the page's swap has not
4837 * changed.
4838 */
4839 if (unlikely(!folio_matches_swap_entry(folio, entry)))
4840 goto out_page;
4841
4842 if (unlikely(PageHWPoison(page))) {
4843 /*
4844 * hwpoisoned dirty swapcache pages are kept for killing
4845 * owner processes (which may be unknown at hwpoison time)
4846 */
4847 ret = VM_FAULT_HWPOISON;
4848 goto out_page;
4849 }
4850
4851 /*
4852 * KSM sometimes has to copy on read faults, for example, if
4853 * folio->index of non-ksm folios would be nonlinear inside the
4854 * anon VMA -- the ksm flag is lost on actual swapout.
4855 */
4856 folio = ksm_might_need_to_copy(folio, vma, vmf->address);
4857 if (unlikely(!folio)) {
4858 ret = VM_FAULT_OOM;
4859 folio = swapcache;
4860 goto out_page;
4861 } else if (unlikely(folio == ERR_PTR(-EHWPOISON))) {
4862 ret = VM_FAULT_HWPOISON;
4863 folio = swapcache;
4864 goto out_page;
4865 } else if (folio != swapcache)
4866 page = folio_page(folio, 0);
4867
4868 /*
4869 * If we want to map a page that's in the swapcache writable, we
4870 * have to detect via the refcount if we're really the exclusive
4871 * owner. Try removing the extra reference from the local LRU
4872 * caches if required.
4873 */
4874 if ((vmf->flags & FAULT_FLAG_WRITE) &&
4875 !folio_test_ksm(folio) && !folio_test_lru(folio))
4876 lru_add_drain();
4877
4878 folio_throttle_swaprate(folio, GFP_KERNEL);
4879
4880 /*
4881 * Back out if somebody else already faulted in this pte.
4882 */
4883 vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd, vmf->address,
4884 &vmf->ptl);
4885 if (unlikely(!vmf->pte || !pte_same(ptep_get(vmf->pte), vmf->orig_pte)))
4886 goto out_nomap;
4887
4888 if (unlikely(!folio_test_uptodate(folio))) {
4889 ret = VM_FAULT_SIGBUS;
4890 goto out_nomap;
4891 }
4892
4893 nr_pages = 1;
4894 page_idx = 0;
4895 address = vmf->address;
4896 ptep = vmf->pte;
4897 if (folio_test_large(folio) && folio_test_swapcache(folio)) {
4898 int nr = folio_nr_pages(folio);
4899 unsigned long idx = folio_page_idx(folio, page);
4900 unsigned long folio_start = address - idx * PAGE_SIZE;
4901 unsigned long folio_end = folio_start + nr * PAGE_SIZE;
4902 pte_t *folio_ptep;
4903 pte_t folio_pte;
4904
4905 if (unlikely(folio_start < max(address & PMD_MASK, vma->vm_start)))
4906 goto check_folio;
4907 if (unlikely(folio_end > pmd_addr_end(address, vma->vm_end)))
4908 goto check_folio;
4909
4910 folio_ptep = vmf->pte - idx;
4911 folio_pte = ptep_get(folio_ptep);
4912 if (!pte_same(folio_pte, pte_move_swp_offset(vmf->orig_pte, -idx)) ||
4913 swap_pte_batch(folio_ptep, nr, folio_pte) != nr)
4914 goto check_folio;
4915
4916 page_idx = idx;
4917 address = folio_start;
4918 ptep = folio_ptep;
4919 nr_pages = nr;
4920 entry = folio->swap;
4921 page = &folio->page;
4922 }
4923
4924 check_folio:
4925 /*
4926 * PG_anon_exclusive reuses PG_mappedtodisk for anon pages. A swap pte
4927 * must never point at an anonymous page in the swapcache that is
4928 * PG_anon_exclusive. Sanity check that this holds and especially, that
4929 * no filesystem set PG_mappedtodisk on a page in the swapcache. Sanity
4930 * check after taking the PT lock and making sure that nobody
4931 * concurrently faulted in this page and set PG_anon_exclusive.
4932 */
4933 BUG_ON(!folio_test_anon(folio) && folio_test_mappedtodisk(folio));
4934 BUG_ON(folio_test_anon(folio) && PageAnonExclusive(page));
4935
4936 /*
4937 * If a large folio already belongs to anon mapping, then we
4938 * can just go on and map it partially.
4939 * If not, with the large swapin check above failing, the page table
4940 * have changed, so sub pages might got charged to the wrong cgroup,
4941 * or even should be shmem. So we have to free it and fallback.
4942 * Nothing should have touched it, both anon and shmem checks if a
4943 * large folio is fully appliable before use.
4944 *
4945 * This will be removed once we unify folio allocation in the swap cache
4946 * layer, where allocation of a folio stabilizes the swap entries.
4947 */
4948 if (!folio_test_anon(folio) && folio_test_large(folio) &&
4949 nr_pages != folio_nr_pages(folio)) {
4950 if (!WARN_ON_ONCE(folio_test_dirty(folio)))
4951 swap_cache_del_folio(folio);
4952 goto out_nomap;
4953 }
4954
4955 /*
4956 * Check under PT lock (to protect against concurrent fork() sharing
4957 * the swap entry concurrently) for certainly exclusive pages.
4958 */
4959 if (!folio_test_ksm(folio)) {
4960 /*
4961 * The can_swapin_thp check above ensures all PTE have
4962 * same exclusiveness. Checking just one PTE is fine.
4963 */
4964 exclusive = pte_swp_exclusive(vmf->orig_pte);
4965 if (exclusive)
4966 check_swap_exclusive(folio, entry, nr_pages);
4967 if (folio != swapcache) {
4968 /*
4969 * We have a fresh page that is not exposed to the
4970 * swapcache -> certainly exclusive.
4971 */
4972 exclusive = true;
4973 } else if (exclusive && folio_test_writeback(folio) &&
4974 data_race(si->flags & SWP_STABLE_WRITES)) {
4975 /*
4976 * This is tricky: not all swap backends support
4977 * concurrent page modifications while under writeback.
4978 *
4979 * So if we stumble over such a page in the swapcache
4980 * we must not set the page exclusive, otherwise we can
4981 * map it writable without further checks and modify it
4982 * while still under writeback.
4983 *
4984 * For these problematic swap backends, simply drop the
4985 * exclusive marker: this is perfectly fine as we start
4986 * writeback only if we fully unmapped the page and
4987 * there are no unexpected references on the page after
4988 * unmapping succeeded. After fully unmapped, no
4989 * further GUP references (FOLL_GET and FOLL_PIN) can
4990 * appear, so dropping the exclusive marker and mapping
4991 * it only R/O is fine.
4992 */
4993 exclusive = false;
4994 }
4995 }
4996
4997 /*
4998 * Some architectures may have to restore extra metadata to the page
4999 * when reading from swap. This metadata may be indexed by swap entry
5000 * so this must be called before folio_put_swap().
5001 */
5002 arch_swap_restore(folio_swap(entry, folio), folio);
5003
5004 add_mm_counter(vma->vm_mm, MM_ANONPAGES, nr_pages);
5005 add_mm_counter(vma->vm_mm, MM_SWAPENTS, -nr_pages);
5006 pte = mk_pte(page, vma->vm_page_prot);
5007 if (pte_swp_soft_dirty(vmf->orig_pte))
5008 pte = pte_mksoft_dirty(pte);
5009 if (pte_swp_uffd_wp(vmf->orig_pte))
5010 pte = pte_mkuffd_wp(pte);
5011
5012 /*
5013 * Same logic as in do_wp_page(); however, optimize for pages that are
5014 * certainly not shared either because we just allocated them without
5015 * exposing them to the swapcache or because the swap entry indicates
5016 * exclusivity.
5017 */
5018 if (!folio_test_ksm(folio) &&
5019 (exclusive || folio_ref_count(folio) == 1)) {
5020 if ((vma->vm_flags & VM_WRITE) && !userfaultfd_pte_wp(vma, pte) &&
5021 !pte_needs_soft_dirty_wp(vma, pte)) {
5022 pte = pte_mkwrite(pte, vma);
5023 if (vmf->flags & FAULT_FLAG_WRITE) {
5024 pte = pte_mkdirty(pte);
5025 vmf->flags &= ~FAULT_FLAG_WRITE;
5026 }
5027 }
5028 rmap_flags |= RMAP_EXCLUSIVE;
5029 }
5030 folio_ref_add(folio, nr_pages - 1);
5031 flush_icache_pages(vma, page, nr_pages);
5032 vmf->orig_pte = pte_advance_pfn(pte, page_idx);
5033
5034 /* ksm created a completely new copy */
5035 if (unlikely(folio != swapcache)) {
5036 folio_add_new_anon_rmap(folio, vma, address, RMAP_EXCLUSIVE);
5037 folio_add_lru_vma(folio, vma);
5038 folio_put_swap(swapcache, NULL);
5039 } else if (!folio_test_anon(folio)) {
5040 /*
5041 * We currently only expect !anon folios that are fully
5042 * mappable. See the comment after can_swapin_thp above.
5043 */
5044 VM_WARN_ON_ONCE_FOLIO(folio_nr_pages(folio) != nr_pages, folio);
5045 VM_WARN_ON_ONCE_FOLIO(folio_mapped(folio), folio);
5046 folio_add_new_anon_rmap(folio, vma, address, rmap_flags);
5047 folio_put_swap(folio, NULL);
5048 } else {
5049 VM_WARN_ON_ONCE(nr_pages != 1 && nr_pages != folio_nr_pages(folio));
5050 folio_add_anon_rmap_ptes(folio, page, nr_pages, vma, address,
5051 rmap_flags);
5052 folio_put_swap(folio, nr_pages == 1 ? page : NULL);
5053 }
5054
5055 VM_BUG_ON(!folio_test_anon(folio) ||
5056 (pte_write(pte) && !PageAnonExclusive(page)));
5057 set_ptes(vma->vm_mm, address, ptep, pte, nr_pages);
5058 arch_do_swap_page_nr(vma->vm_mm, vma, address,
5059 pte, pte, nr_pages);
5060
5061 /*
5062 * Remove the swap entry and conditionally try to free up the swapcache.
5063 * Do it after mapping, so raced page faults will likely see the folio
5064 * in swap cache and wait on the folio lock.
5065 */
5066 if (should_try_to_free_swap(si, folio, vma, nr_pages, vmf->flags))
5067 folio_free_swap(folio);
5068
5069 folio_unlock(folio);
5070 if (unlikely(folio != swapcache)) {
5071 /*
5072 * Hold the lock to avoid the swap entry to be reused
5073 * until we take the PT lock for the pte_same() check
5074 * (to avoid false positives from pte_same). For
5075 * further safety release the lock after the folio_put_swap
5076 * so that the swap count won't change under a
5077 * parallel locked swapcache.
5078 */
5079 folio_unlock(swapcache);
5080 folio_put(swapcache);
5081 }
5082
5083 if (vmf->flags & FAULT_FLAG_WRITE) {
5084 ret |= do_wp_page(vmf);
5085 if (ret & VM_FAULT_ERROR)
5086 ret &= VM_FAULT_ERROR;
5087 goto out;
5088 }
5089
5090 /* No need to invalidate - it was non-present before */
5091 update_mmu_cache_range(vmf, vma, address, ptep, nr_pages);
5092 unlock:
5093 if (vmf->pte)
5094 pte_unmap_unlock(vmf->pte, vmf->ptl);
5095 out:
5096 if (si)
5097 put_swap_device(si);
5098 return ret;
5099 out_nomap:
5100 if (vmf->pte)
5101 pte_unmap_unlock(vmf->pte, vmf->ptl);
5102 out_page:
5103 if (folio_test_swapcache(folio))
5104 folio_free_swap(folio);
5105 folio_unlock(folio);
5106 out_release:
5107 folio_put(folio);
5108 if (folio != swapcache) {
5109 folio_unlock(swapcache);
5110 folio_put(swapcache);
5111 }
5112 if (si)
5113 put_swap_device(si);
5114 return ret;
5115 }
5116
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
kernel test robot
build botkernel test robot noticed the following build errors:
Hi Thomas,
kernel test robot noticed the following build errors:
[auto build test ERROR on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Thomas-Hellstr-m/mm-Fix-a-hmm_range_fault-livelock-starvation-problem/20260203-184803 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20260203104532.98534-1-thomas.hellstrom%40linux.intel.com patch subject: [PATCH v2] mm: Fix a hmm_range_fault() livelock / starvation problem config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20260203/[email protected]/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260203/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> mm/memory.c:4769:5: error: call to undeclared function 'migration_entry_wait_on_locked'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
4769 | migration_entry_wait_on_locked(entry, vmf->ptl);
| ^ mm/memory.c:4769:5: note: did you mean 'migration_entry_wait_huge'? include/linux/swapops.h:237:20: note: 'migration_entry_wait_huge' declared here
237 | static inline void migration_entry_wait_huge(struct vm_area_struct *vma,
| ^
1 error generated.
vim +/migration_entry_wait_on_locked +4769 mm/memory.c
4699
4700 /*
4701 * We enter with non-exclusive mmap_lock (to exclude vma changes,
4702 * but allow concurrent faults), and pte mapped but not yet locked.
4703 * We return with pte unmapped and unlocked.
4704 *
4705 * We return with the mmap_lock locked or unlocked in the same cases
4706 * as does filemap_fault().
4707 */
4708 vm_fault_t do_swap_page(struct vm_fault *vmf)
4709 {
4710 struct vm_area_struct *vma = vmf->vma;
4711 struct folio *swapcache = NULL, *folio;
4712 struct page *page;
4713 struct swap_info_struct *si = NULL;
4714 rmap_t rmap_flags = RMAP_NONE;
4715 bool exclusive = false;
4716 softleaf_t entry;
4717 pte_t pte;
4718 vm_fault_t ret = 0;
4719 int nr_pages;
4720 unsigned long page_idx;
4721 unsigned long address;
4722 pte_t *ptep;
4723
4724 if (!pte_unmap_same(vmf))
4725 goto out;
4726
4727 entry = softleaf_from_pte(vmf->orig_pte);
4728 if (unlikely(!softleaf_is_swap(entry))) {
4729 if (softleaf_is_migration(entry)) {
4730 migration_entry_wait(vma->vm_mm, vmf->pmd,
4731 vmf->address);
4732 } else if (softleaf_is_device_exclusive(entry)) {
4733 vmf->page = softleaf_to_page(entry);
4734 ret = remove_device_exclusive_entry(vmf);
4735 } else if (softleaf_is_device_private(entry)) {
4736 if (vmf->flags & FAULT_FLAG_VMA_LOCK) {
4737 /*
4738 * migrate_to_ram is not yet ready to operate
4739 * under VMA lock.
4740 */
4741 vma_end_read(vma);
4742 ret = VM_FAULT_RETRY;
4743 goto out;
4744 }
4745
4746 vmf->page = softleaf_to_page(entry);
4747 vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd,
4748 vmf->address, &vmf->ptl);
4749 if (unlikely(!vmf->pte ||
4750 !pte_same(ptep_get(vmf->pte),
4751 vmf->orig_pte)))
4752 goto unlock;
4753
4754 /*
4755 * Get a page reference while we know the page can't be
4756 * freed.
4757 */
4758 if (trylock_page(vmf->page)) {
4759 struct dev_pagemap *pgmap;
4760
4761 get_page(vmf->page);
4762 pte_unmap_unlock(vmf->pte, vmf->ptl);
4763 pgmap = page_pgmap(vmf->page);
4764 ret = pgmap->ops->migrate_to_ram(vmf);
4765 unlock_page(vmf->page);
4766 put_page(vmf->page);
4767 } else {
4768 pte_unmap(vmf->pte);
> 4769 migration_entry_wait_on_locked(entry, vmf->ptl);
4770 }
4771 } else if (softleaf_is_hwpoison(entry)) {
4772 ret = VM_FAULT_HWPOISON;
4773 } else if (softleaf_is_marker(entry)) {
4774 ret = handle_pte_marker(vmf);
4775 } else {
4776 print_bad_pte(vma, vmf->address, vmf->orig_pte, NULL);
4777 ret = VM_FAULT_SIGBUS;
4778 }
4779 goto out;
4780 }
4781
4782 /* Prevent swapoff from happening to us. */
4783 si = get_swap_device(entry);
4784 if (unlikely(!si))
4785 goto out;
4786
4787 folio = swap_cache_get_folio(entry);
4788 if (folio)
4789 swap_update_readahead(folio, vma, vmf->address);
4790 if (!folio) {
4791 if (data_race(si->flags & SWP_SYNCHRONOUS_IO)) {
4792 folio = alloc_swap_folio(vmf);
4793 if (folio) {
4794 /*
4795 * folio is charged, so swapin can only fail due
4796 * to raced swapin and return NULL.
4797 */
4798 swapcache = swapin_folio(entry, folio);
4799 if (swapcache != folio)
4800 folio_put(folio);
4801 folio = swapcache;
4802 }
4803 } else {
4804 folio = swapin_readahead(entry, GFP_HIGHUSER_MOVABLE, vmf);
4805 }
4806
4807 if (!folio) {
4808 /*
4809 * Back out if somebody else faulted in this pte
4810 * while we released the pte lock.
4811 */
4812 vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd,
4813 vmf->address, &vmf->ptl);
4814 if (likely(vmf->pte &&
4815 pte_same(ptep_get(vmf->pte), vmf->orig_pte)))
4816 ret = VM_FAULT_OOM;
4817 goto unlock;
4818 }
4819
4820 /* Had to read the page from swap area: Major fault */
4821 ret = VM_FAULT_MAJOR;
4822 count_vm_event(PGMAJFAULT);
4823 count_memcg_event_mm(vma->vm_mm, PGMAJFAULT);
4824 }
4825
4826 swapcache = folio;
4827 ret |= folio_lock_or_retry(folio, vmf);
4828 if (ret & VM_FAULT_RETRY)
4829 goto out_release;
4830
4831 page = folio_file_page(folio, swp_offset(entry));
4832 /*
4833 * Make sure folio_free_swap() or swapoff did not release the
4834 * swapcache from under us. The page pin, and pte_same test
4835 * below, are not enough to exclude that. Even if it is still
4836 * swapcache, we need to check that the page's swap has not
4837 * changed.
4838 */
4839 if (unlikely(!folio_matches_swap_entry(folio, entry)))
4840 goto out_page;
4841
4842 if (unlikely(PageHWPoison(page))) {
4843 /*
4844 * hwpoisoned dirty swapcache pages are kept for killing
4845 * owner processes (which may be unknown at hwpoison time)
4846 */
4847 ret = VM_FAULT_HWPOISON;
4848 goto out_page;
4849 }
4850
4851 /*
4852 * KSM sometimes has to copy on read faults, for example, if
4853 * folio->index of non-ksm folios would be nonlinear inside the
4854 * anon VMA -- the ksm flag is lost on actual swapout.
4855 */
4856 folio = ksm_might_need_to_copy(folio, vma, vmf->address);
4857 if (unlikely(!folio)) {
4858 ret = VM_FAULT_OOM;
4859 folio = swapcache;
4860 goto out_page;
4861 } else if (unlikely(folio == ERR_PTR(-EHWPOISON))) {
4862 ret = VM_FAULT_HWPOISON;
4863 folio = swapcache;
4864 goto out_page;
4865 } else if (folio != swapcache)
4866 page = folio_page(folio, 0);
4867
4868 /*
4869 * If we want to map a page that's in the swapcache writable, we
4870 * have to detect via the refcount if we're really the exclusive
4871 * owner. Try removing the extra reference from the local LRU
4872 * caches if required.
4873 */
4874 if ((vmf->flags & FAULT_FLAG_WRITE) &&
4875 !folio_test_ksm(folio) && !folio_test_lru(folio))
4876 lru_add_drain();
4877
4878 folio_throttle_swaprate(folio, GFP_KERNEL);
4879
4880 /*
4881 * Back out if somebody else already faulted in this pte.
4882 */
4883 vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd, vmf->address,
4884 &vmf->ptl);
4885 if (unlikely(!vmf->pte || !pte_same(ptep_get(vmf->pte), vmf->orig_pte)))
4886 goto out_nomap;
4887
4888 if (unlikely(!folio_test_uptodate(folio))) {
4889 ret = VM_FAULT_SIGBUS;
4890 goto out_nomap;
4891 }
4892
4893 nr_pages = 1;
4894 page_idx = 0;
4895 address = vmf->address;
4896 ptep = vmf->pte;
4897 if (folio_test_large(folio) && folio_test_swapcache(folio)) {
4898 int nr = folio_nr_pages(folio);
4899 unsigned long idx = folio_page_idx(folio, page);
4900 unsigned long folio_start = address - idx * PAGE_SIZE;
4901 unsigned long folio_end = folio_start + nr * PAGE_SIZE;
4902 pte_t *folio_ptep;
4903 pte_t folio_pte;
4904
4905 if (unlikely(folio_start < max(address & PMD_MASK, vma->vm_start)))
4906 goto check_folio;
4907 if (unlikely(folio_end > pmd_addr_end(address, vma->vm_end)))
4908 goto check_folio;
4909
4910 folio_ptep = vmf->pte - idx;
4911 folio_pte = ptep_get(folio_ptep);
4912 if (!pte_same(folio_pte, pte_move_swp_offset(vmf->orig_pte, -idx)) ||
4913 swap_pte_batch(folio_ptep, nr, folio_pte) != nr)
4914 goto check_folio;
4915
4916 page_idx = idx;
4917 address = folio_start;
4918 ptep = folio_ptep;
4919 nr_pages = nr;
4920 entry = folio->swap;
4921 page = &folio->page;
4922 }
4923
4924 check_folio:
4925 /*
4926 * PG_anon_exclusive reuses PG_mappedtodisk for anon pages. A swap pte
4927 * must never point at an anonymous page in the swapcache that is
4928 * PG_anon_exclusive. Sanity check that this holds and especially, that
4929 * no filesystem set PG_mappedtodisk on a page in the swapcache. Sanity
4930 * check after taking the PT lock and making sure that nobody
4931 * concurrently faulted in this page and set PG_anon_exclusive.
4932 */
4933 BUG_ON(!folio_test_anon(folio) && folio_test_mappedtodisk(folio));
4934 BUG_ON(folio_test_anon(folio) && PageAnonExclusive(page));
4935
4936 /*
4937 * If a large folio already belongs to anon mapping, then we
4938 * can just go on and map it partially.
4939 * If not, with the large swapin check above failing, the page table
4940 * have changed, so sub pages might got charged to the wrong cgroup,
4941 * or even should be shmem. So we have to free it and fallback.
4942 * Nothing should have touched it, both anon and shmem checks if a
4943 * large folio is fully appliable before use.
4944 *
4945 * This will be removed once we unify folio allocation in the swap cache
4946 * layer, where allocation of a folio stabilizes the swap entries.
4947 */
4948 if (!folio_test_anon(folio) && folio_test_large(folio) &&
4949 nr_pages != folio_nr_pages(folio)) {
4950 if (!WARN_ON_ONCE(folio_test_dirty(folio)))
4951 swap_cache_del_folio(folio);
4952 goto out_nomap;
4953 }
4954
4955 /*
4956 * Check under PT lock (to protect against concurrent fork() sharing
4957 * the swap entry concurrently) for certainly exclusive pages.
4958 */
4959 if (!folio_test_ksm(folio)) {
4960 /*
4961 * The can_swapin_thp check above ensures all PTE have
4962 * same exclusiveness. Checking just one PTE is fine.
4963 */
4964 exclusive = pte_swp_exclusive(vmf->orig_pte);
4965 if (exclusive)
4966 check_swap_exclusive(folio, entry, nr_pages);
4967 if (folio != swapcache) {
4968 /*
4969 * We have a fresh page that is not exposed to the
4970 * swapcache -> certainly exclusive.
4971 */
4972 exclusive = true;
4973 } else if (exclusive && folio_test_writeback(folio) &&
4974 data_race(si->flags & SWP_STABLE_WRITES)) {
4975 /*
4976 * This is tricky: not all swap backends support
4977 * concurrent page modifications while under writeback.
4978 *
4979 * So if we stumble over such a page in the swapcache
4980 * we must not set the page exclusive, otherwise we can
4981 * map it writable without further checks and modify it
4982 * while still under writeback.
4983 *
4984 * For these problematic swap backends, simply drop the
4985 * exclusive marker: this is perfectly fine as we start
4986 * writeback only if we fully unmapped the page and
4987 * there are no unexpected references on the page after
4988 * unmapping succeeded. After fully unmapped, no
4989 * further GUP references (FOLL_GET and FOLL_PIN) can
4990 * appear, so dropping the exclusive marker and mapping
4991 * it only R/O is fine.
4992 */
4993 exclusive = false;
4994 }
4995 }
4996
4997 /*
4998 * Some architectures may have to restore extra metadata to the page
4999 * when reading from swap. This metadata may be indexed by swap entry
5000 * so this must be called before folio_put_swap().
5001 */
5002 arch_swap_restore(folio_swap(entry, folio), folio);
5003
5004 add_mm_counter(vma->vm_mm, MM_ANONPAGES, nr_pages);
5005 add_mm_counter(vma->vm_mm, MM_SWAPENTS, -nr_pages);
5006 pte = mk_pte(page, vma->vm_page_prot);
5007 if (pte_swp_soft_dirty(vmf->orig_pte))
5008 pte = pte_mksoft_dirty(pte);
5009 if (pte_swp_uffd_wp(vmf->orig_pte))
5010 pte = pte_mkuffd_wp(pte);
5011
5012 /*
5013 * Same logic as in do_wp_page(); however, optimize for pages that are
5014 * certainly not shared either because we just allocated them without
5015 * exposing them to the swapcache or because the swap entry indicates
5016 * exclusivity.
5017 */
5018 if (!folio_test_ksm(folio) &&
5019 (exclusive || folio_ref_count(folio) == 1)) {
5020 if ((vma->vm_flags & VM_WRITE) && !userfaultfd_pte_wp(vma, pte) &&
5021 !pte_needs_soft_dirty_wp(vma, pte)) {
5022 pte = pte_mkwrite(pte, vma);
5023 if (vmf->flags & FAULT_FLAG_WRITE) {
5024 pte = pte_mkdirty(pte);
5025 vmf->flags &= ~FAULT_FLAG_WRITE;
5026 }
5027 }
5028 rmap_flags |= RMAP_EXCLUSIVE;
5029 }
5030 folio_ref_add(folio, nr_pages - 1);
5031 flush_icache_pages(vma, page, nr_pages);
5032 vmf->orig_pte = pte_advance_pfn(pte, page_idx);
5033
5034 /* ksm created a completely new copy */
5035 if (unlikely(folio != swapcache)) {
5036 folio_add_new_anon_rmap(folio, vma, address, RMAP_EXCLUSIVE);
5037 folio_add_lru_vma(folio, vma);
5038 folio_put_swap(swapcache, NULL);
5039 } else if (!folio_test_anon(folio)) {
5040 /*
5041 * We currently only expect !anon folios that are fully
5042 * mappable. See the comment after can_swapin_thp above.
5043 */
5044 VM_WARN_ON_ONCE_FOLIO(folio_nr_pages(folio) != nr_pages, folio);
5045 VM_WARN_ON_ONCE_FOLIO(folio_mapped(folio), folio);
5046 folio_add_new_anon_rmap(folio, vma, address, rmap_flags);
5047 folio_put_swap(folio, NULL);
5048 } else {
5049 VM_WARN_ON_ONCE(nr_pages != 1 && nr_pages != folio_nr_pages(folio));
5050 folio_add_anon_rmap_ptes(folio, page, nr_pages, vma, address,
5051 rmap_flags);
5052 folio_put_swap(folio, nr_pages == 1 ? page : NULL);
5053 }
5054
5055 VM_BUG_ON(!folio_test_anon(folio) ||
5056 (pte_write(pte) && !PageAnonExclusive(page)));
5057 set_ptes(vma->vm_mm, address, ptep, pte, nr_pages);
5058 arch_do_swap_page_nr(vma->vm_mm, vma, address,
5059 pte, pte, nr_pages);
5060
5061 /*
5062 * Remove the swap entry and conditionally try to free up the swapcache.
5063 * Do it after mapping, so raced page faults will likely see the folio
5064 * in swap cache and wait on the folio lock.
5065 */
5066 if (should_try_to_free_swap(si, folio, vma, nr_pages, vmf->flags))
5067 folio_free_swap(folio);
5068
5069 folio_unlock(folio);
5070 if (unlikely(folio != swapcache)) {
5071 /*
5072 * Hold the lock to avoid the swap entry to be reused
5073 * until we take the PT lock for the pte_same() check
5074 * (to avoid false positives from pte_same). For
5075 * further safety release the lock after the folio_put_swap
5076 * so that the swap count won't change under a
5077 * parallel locked swapcache.
5078 */
5079 folio_unlock(swapcache);
5080 folio_put(swapcache);
5081 }
5082
5083 if (vmf->flags & FAULT_FLAG_WRITE) {
5084 ret |= do_wp_page(vmf);
5085 if (ret & VM_FAULT_ERROR)
5086 ret &= VM_FAULT_ERROR;
5087 goto out;
5088 }
5089
5090 /* No need to invalidate - it was non-present before */
5091 update_mmu_cache_range(vmf, vma, address, ptep, nr_pages);
5092 unlock:
5093 if (vmf->pte)
5094 pte_unmap_unlock(vmf->pte, vmf->ptl);
5095 out:
5096 if (si)
5097 put_swap_device(si);
5098 return ret;
5099 out_nomap:
5100 if (vmf->pte)
5101 pte_unmap_unlock(vmf->pte, vmf->ptl);
5102 out_page:
5103 if (folio_test_swapcache(folio))
5104 folio_free_swap(folio);
5105 folio_unlock(folio);
5106 out_release:
5107 folio_put(folio);
5108 if (folio != swapcache) {
5109 folio_unlock(swapcache);
5110 folio_put(swapcache);
5111 }
5112 if (si)
5113 put_swap_device(si);
5114 return ret;
5115 }
5116
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki