drm/xe/bo: Take a runtime PM ref when shrinking a bo needing invalidation
Subsystems (2)
PATCH 1/1 drm/xe/bo: Take a runtime PM ref when shrinking a bo needing invalidation
xe_bo_shrink() only took a runtime PM reference for the System CCS backup case, and only after the purgeable branch had already returned. That branch calls xe_bo_move_notify(), which reaches xe_bo_trigger_rebind() -> xe_vm_invalidate_vma() and submits a TLB invalidation over GuC CT. The non-purgeable branch reaches the same code through ttm_bo_shrink(.allow_move = true) -> xe_bo_move().
When the device is runtime suspended the CT is disabled and the send returns -ENODEV, tripping the XE_WARN_ON() in xe_bo_trigger_rebind():
WARNING: drivers/gpu/drm/xe/xe_bo.c:770 at xe_bo_move_notify+0x1fc/0x450 [xe], CPU#2: xe_madvise/21389 xe_bo_shrink+0x20f/0x2b0 [xe] __xe_shrinker_walk+0x174/0x410 [xe] xe_shrinker_walk+0x56/0xf0 [xe] xe_shrinker_scan+0x10c/0x1e0 [xe] do_shrink_slab+0x176/0x7e0 shrink_slab+0x137/0x990 drop_slab+0x7f/0x130 drop_caches_sysctl_handler+0x9c/0xf0
The invalidation is always issued for a fault-mode vm; since commit 4e7ebff69aed ("drm/xe/xe3p_lpg: flush shrinker bo cachelines manually") it is also issued for a non-fault-mode vm on hardware with an optimized L2 flush, which is how this surfaced.
Add bo_needs_invalidate(), mirroring that condition, and use it in xe_bo_shrink() to compute needs_rpm ahead of both branches. The reference is then held across xe_bo_move_notify() in either path, and is not taken for a bo whose mappings would not have been invalidated.
Shrinking can run in reclaim contexts where the device may not be resumed, so a bo is skipped when the reference cannot be acquired. Have that skip queue the shrinker PM worker: xe_shrinker_runtime_pm_get() is gated on the needs of its own backup pass rather than on this one, and on DGFX it returns before queueing anything, so without this a scan where every candidate is skipped makes no progress, reports nothing scanned and returns SHRINK_STOP with nothing arranging a wake.
Also gate the System CCS term on !xe_tt->purgeable, since xe_bo_shrink_purge() frees the pages without a GPU copy.
Reproduced with igt@xe_madvise@dontneed-before-exec while the GPU is runtime suspended.
--- drivers/gpu/drm/xe/xe_bo.c | 62 +++++++++++++++++++++++++++----- drivers/gpu/drm/xe/xe_shrinker.c | 18 +++++++++- drivers/gpu/drm/xe/xe_shrinker.h | 2 ++ 3 files changed, 72 insertions(+), 10 deletions(-)
drivers/gpu/drm/xe/xe_bo.c +53 -9
@@ -734,6 +734,32 @@ static int xe_ttm_io_mem_reserve(struct ttm_device *bdev, } } +/* +* Whether xe_bo_move_notify() will invalidate the GPU mappings of @bo, and +* therefore needs the device resumed to reach the GuC. +* +* This mirrors the condition under which xe_bo_trigger_rebind() below calls +* xe_vm_invalidate_vma(): always for a fault-mode vm, and for any bound vm on +* hardware where the L2 flush is optimized. Keep the two in sync. +* +* Context: Caller must hold the BO's dma-resv lock. +*/ +static bool bo_needs_invalidate (struct xe_bo *bo) +{ +struct drm_gpuvm_bo *vm_bo; + +if (xe_device_is_l2_flush_optimized (xe_bo_device (bo))) +return xe_bo_is_vm_bound (bo); + +xe_bo_assert_held (bo); + +drm_gem_for_each_gpuvm_bo (vm_bo, &bo->ttm.base) +if (xe_vm_in_fault_mode (gpuvm_to_vm (vm_bo->vm))) +return true; + +return false; +} +static int xe_bo_trigger_rebind (struct xe_device *xe,struct xe_bo *bo,const struct ttm_operation_ctx *ctx) {
@@ -1361,6 +1387,28 @@ long xe_bo_shrink(struct ttm_operation_ctx *ctx, struct ttm_buffer_object *bo,if (!xe_bo_is_xe_bo (bo) || !xe_bo_get_unless_zero (xe_bo))return xe_bo_shrink_purge (ctx, bo, scanned); +/* +* Moving this bo out of a non-system placement makes +* xe_bo_move_notify() invalidate its GPU mappings over GuC CT, and +* System CCS needs a gpu copy when moving PL_TT -> PL_SYSTEM. Both +* need the device resumed. +*/ + needs_rpm = bo->resource->mem_type !=XE_PL_SYSTEM && + (bo_needs_invalidate (xe_bo) || + (!xe_tt->purgeable && !IS_DGFX (xe) && +xe_bo_needs_ccs_pages (xe_bo))); +if (needs_rpm && !xe_pm_runtime_get_if_active (xe)) { +/* +* Resuming is not allowed from all reclaim contexts, so leave +* this bo alone and ask for the device to be woken up outside +* of reclaim. xe_shrinker_runtime_pm_get() is gated on the +* needs of its own backup pass rather than on ours, and on +* DGFX it returns before queueing anything, so ask here. +*/ +xe_shrinker_queue_pm (xe->mem.shrinker); + goto out_unref; + } +if (xe_tt->purgeable) {if (bo->resource->mem_type !=XE_PL_SYSTEM ) lret =xe_bo_move_notify (xe_bo, ctx);
@@ -1369,28 +1417,24 @@ long xe_bo_shrink(struct ttm_operation_ctx *ctx, struct ttm_buffer_object *bo,if (lret >0 &&xe_bo_madv_is_dontneed (xe_bo))xe_bo_set_purgeable_state (xe_bo,XE_MADV_PURGEABLE_PURGED ); - goto out_unref; + goto out_put_rpm; } -/* System CCS needs gpu copy when moving PL_TT -> PL_SYSTEM */ - needs_rpm = (!IS_DGFX (xe) && bo->resource->mem_type !=XE_PL_SYSTEM && -xe_bo_needs_ccs_pages (xe_bo)); -if (needs_rpm && !xe_pm_runtime_get_if_active (xe)) - goto out_unref; - *scanned += tt->num_pages; lret =ttm_bo_shrink (ctx, bo, (struct ttm_bo_shrink_flags ) {.purge = false, .writeback = flags.writeback, .allow_move = true}); -if (needs_rpm) -xe_pm_runtime_put (xe);if (lret >0 ) {xe_ttm_tt_account_subtract (xe, tt);update_global_total_pages (bo->bdev, -(long )tt->num_pages); } +out_put_rpm: +if (needs_rpm) +xe_pm_runtime_put (xe); + out_unref:xe_bo_put (xe_bo);
drivers/gpu/drm/xe/xe_shrinker.c +17 -1
@@ -54,6 +54,22 @@ xe_shrinker_mod_pages(struct xe_shrinker *shrinker, long shrinkable, long purgeawrite_unlock (&shrinker->lock); } +/** +* xe_shrinker_queue_pm() - Ask for the device to be woken up for shrinking +* @shrinker: Pointer to the struct xe_shrinker. +* +* Queue a worker that takes and drops a runtime PM reference. Shrinking can +* be called from reclaim context, where resuming the device is not always +* allowed, so a caller that needs the device resumed but could not acquire a +* reference uses this to have it woken up outside of reclaim. The current +* scan makes no progress on the affected buffer objects, but a subsequent one +* can. +*/ +void xe_shrinker_queue_pm (struct xe_shrinker *shrinker) +{ +queue_work (shrinker->xe->unordered_wq, &shrinker->pm_worker); +} + static s64 __xe_shrinker_walk(struct xe_device *xe, struct ttm_operation_ctx *ctx, const struct xe_bo_shrink_flags flags,
@@ -185,7 +201,7 @@ static bool xe_shrinker_runtime_pm_get(struct xe_shrinker *shrinker, bool force,xe_pm_runtime_get (xe);return true; } -queue_work (xe->unordered_wq, &shrinker->pm_worker); +xe_shrinker_queue_pm (shrinker);return false; }
drivers/gpu/drm/xe/xe_shrinker.h +2 -0
@@ -11,6 +11,8 @@ struct xe_device;void xe_shrinker_mod_pages (struct xe_shrinker *shrinker,long shrinkable,long purgeable); +void xe_shrinker_queue_pm (struct xe_shrinker *shrinker); +int xe_shrinker_create (struct xe_device *xe);#endif
Signature · 1 line
2.43.0
Patchwork
CI✓ CI.KUnit: success for drm/xe/bo: Take a runtime PM ref when shrinking a bo needing invalidation
== Series Details ==
== Series Details ==
Series: drm/xe/bo: Take a runtime PM ref when shrinking a bo needing invalidation
URL : https://patchwork.freedesktop.org/series/172760/
State : success
== Summary ==
+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig [22:54:27] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [22:54:32] 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 [22:55:04] Starting KUnit Kernel (1/1)... [22:55:04] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [22:55:05] ================== guc_buf (11 subtests) =================== [22:55:05] [PASSED] test_smallest [22:55:05] [PASSED] test_largest [22:55:05] [PASSED] test_granular [22:55:05] [PASSED] test_unique [22:55:05] [PASSED] test_overlap [22:55:05] [PASSED] test_reusable [22:55:05] [PASSED] test_too_big [22:55:05] [PASSED] test_flush [22:55:05] [PASSED] test_lookup [22:55:05] [PASSED] test_data [22:55:05] [PASSED] test_class [22:55:05] ===================== [PASSED] guc_buf ===================== [22:55:05] =================== guc_dbm (7 subtests) =================== [22:55:05] [PASSED] test_empty [22:55:05] [PASSED] test_default [22:55:05] ======================== test_size ======================== [22:55:05] [PASSED] 4 [22:55:05] [PASSED] 8 [22:55:05] [PASSED] 32 [22:55:05] [PASSED] 256 [22:55:05] ==================== [PASSED] test_size ==================== [22:55:05] ======================= test_reuse ======================== [22:55:05] [PASSED] 4 [22:55:05] [PASSED] 8 [22:55:05] [PASSED] 32 [22:55:05] [PASSED] 256 [22:55:05] =================== [PASSED] test_reuse ==================== [22:55:05] =================== test_range_overlap ==================== [22:55:05] [PASSED] 4 [22:55:05] [PASSED] 8 [22:55:05] [PASSED] 32 [22:55:05] [PASSED] 256 [22:55:05] =============== [PASSED] test_range_overlap ================ [22:55:05] =================== test_range_compact ==================== [22:55:05] [PASSED] 4 [22:55:05] [PASSED] 8 [22:55:05] [PASSED] 32 [22:55:05] [PASSED] 256 [22:55:05] =============== [PASSED] test_range_compact ================ [22:55:05] ==================== test_range_spare ===================== [22:55:05] [PASSED] 4 [22:55:05] [PASSED] 8 [22:55:05] [PASSED] 32 [22:55:05] [PASSED] 256 [22:55:05] ================ [PASSED] test_range_spare ================= [22:55:05] ===================== [PASSED] guc_dbm ===================== [22:55:05] =================== guc_idm (6 subtests) =================== [22:55:05] [PASSED] bad_init [22:55:05] [PASSED] no_init [22:55:05] [PASSED] init_fini [22:55:05] [PASSED] check_used [22:55:05] [PASSED] check_quota [22:55:05] [PASSED] check_all [22:55:05] ===================== [PASSED] guc_idm ===================== [22:55:05] =============== guc_klv_helpers (9 subtests) =============== [22:55:05] [PASSED] test_count [22:55:05] [PASSED] test_encode_u32 [22:55:05] [PASSED] test_encode_u64 [22:55:05] [PASSED] test_encode_string [22:55:05] [PASSED] test_encode_object_raw [22:55:05] [PASSED] test_encode_object_klv [22:55:05] [PASSED] test_encode_object_nested [22:55:05] [PASSED] test_encode_object_basic [22:55:05] [PASSED] test_print [22:55:05] ================= [PASSED] guc_klv_helpers ================= [22:55:05] =================== xe_log (4 subtests) ==================== [22:55:05] [PASSED] demo_cper [22:55:05] [PASSED] demo_dmesg [22:55:05] ======================= test_dmesg ======================== [22:55:05] [PASSED] test_fatal [22:55:05] [PASSED] test_fatal_tile [22:55:05] [PASSED] test_fatal_gt [22:55:05] [PASSED] test_fatal_comp [22:55:05] [PASSED] test_fatal_comp_tile [22:55:05] [PASSED] test_fatal_comp_gt [22:55:05] [PASSED] test_fatal_all [22:55:05] [PASSED] test_recoverable [22:55:05] [PASSED] test_recoverable_tile [22:55:05] [PASSED] test_recoverable_gt [22:55:05] [PASSED] test_recoverable_comp [22:55:05] [PASSED] test_recoverable_comp_tile [22:55:05] [PASSED] test_recoverable_comp_gt [22:55:05] [PASSED] test_recoverable_all [22:55:05] [PASSED] test_info [22:55:05] [PASSED] test_info_tile [22:55:05] [PASSED] test_info_gt [22:55:05] [PASSED] test_info_err [22:55:05] [PASSED] test_info_comp [22:55:05] [PASSED] test_info_comp_tile [22:55:05] [PASSED] test_info_comp_gt [22:55:05] [PASSED] test_info_all [22:55:05] [PASSED] test_hw_fatal [22:55:05] [PASSED] test_hw_recoverable [22:55:05] [PASSED] test_hw_corrected [22:55:05] [PASSED] test_hw_informational [22:55:05] =================== [PASSED] test_dmesg ==================== [22:55:05] ====================== test_invalid ======================= [22:55:05] [SKIPPED] no-component no-location no-warn (requires CONFIG_DRM_XE_DEBUG) [22:55:05] [SKIPPED] reserved location (requires CONFIG_DRM_XE_DEBUG) [22:55:05] [SKIPPED] unknown location (requires CONFIG_DRM_XE_DEBUG) [22:55:05] [SKIPPED] nonzero-device-id location (requires CONFIG_DRM_XE_DEBUG) [22:55:05] [SKIPPED] invalid-tile-id location (requires CONFIG_DRM_XE_DEBUG) [22:55:05] [SKIPPED] invalid-gt-id location (requires CONFIG_DRM_XE_DEBUG) [22:55:05] [SKIPPED] unknown component class (requires CONFIG_DRM_XE_DEBUG) [22:55:05] [SKIPPED] unknown system component (requires CONFIG_DRM_XE_DEBUG) [22:55:05] [SKIPPED] unknown hardware component (requires CONFIG_DRM_XE_DEBUG) [22:55:05] [SKIPPED] unknown component and location (requires CONFIG_DRM_XE_DEBUG) [22:55:05] ================== [SKIPPED] test_invalid ================== [22:55:05] ===================== [PASSED] xe_log ====================== [22:55:05] ================== no_relay (3 subtests) =================== [22:55:05] [PASSED] xe_drops_guc2pf_if_not_ready [22:55:05] [PASSED] xe_drops_guc2vf_if_not_ready [22:55:05] [PASSED] xe_rejects_send_if_not_ready [22:55:05] ==================== [PASSED] no_relay ===================== [22:55:05] ================== pf_relay (14 subtests) ================== [22:55:05] [PASSED] pf_rejects_guc2pf_too_short [22:55:05] [PASSED] pf_rejects_guc2pf_too_long [22:55:05] [PASSED] pf_rejects_guc2pf_no_payload [22:55:05] [PASSED] pf_fails_no_payload [22:55:05] [PASSED] pf_fails_bad_origin [22:55:05] [PASSED] pf_fails_bad_type [22:55:05] [PASSED] pf_txn_reports_error [22:55:05] [PASSED] pf_txn_sends_pf2guc [22:55:05] [PASSED] pf_sends_pf2guc [22:55:05] [SKIPPED] pf_loopback_nop (requires CONFIG_DRM_XE_DEBUG_SRIOV) [22:55:05] [SKIPPED] pf_loopback_echo (requires CONFIG_DRM_XE_DEBUG_SRIOV) [22:55:05] [SKIPPED] pf_loopback_fail (requires CONFIG_DRM_XE_DEBUG_SRIOV) [22:55:05] [SKIPPED] pf_loopback_busy (requires CONFIG_DRM_XE_DEBUG_SRIOV) [22:55:05] [SKIPPED] pf_loopback_retry (requires CONFIG_DRM_XE_DEBUG_SRIOV) [22:55:05] ==================== [PASSED] pf_relay ===================== [22:55:05] ================== vf_relay (3 subtests) =================== [22:55:05] [PASSED] vf_rejects_guc2vf_too_short [22:55:05] [PASSED] vf_rejects_guc2vf_too_long [22:55:05] [PASSED] vf_rejects_guc2vf_no_payload [22:55:05] ==================== [PASSED] vf_relay ===================== [22:55:05] ================ pf_gt_config (9 subtests) ================= [22:55:05] [PASSED] fair_contexts_1vf [22:55:05] [PASSED] fair_doorbells_1vf [22:55:05] [PASSED] fair_ggtt_1vf [22:55:05] ====================== fair_vram_1vf ====================== [22:55:05] [PASSED] 3.50 GiB [22:55:05] [PASSED] 11.5 GiB [22:55:05] [PASSED] 15.5 GiB [22:55:05] [PASSED] 31.5 GiB [22:55:05] [PASSED] 63.5 GiB [22:55:05] [PASSED] 1.91 GiB [22:55:05] ================== [PASSED] fair_vram_1vf ================== [22:55:05] ================ fair_vram_1vf_admin_only ================= [22:55:05] [PASSED] 3.50 GiB [22:55:05] [PASSED] 11.5 GiB [22:55:05] [PASSED] 15.5 GiB [22:55:05] [PASSED] 31.5 GiB [22:55:05] [PASSED] 63.5 GiB [22:55:05] [PASSED] 1.91 GiB [22:55:05] ============ [PASSED] fair_vram_1vf_admin_only ============= [22:55:05] ====================== fair_contexts ====================== [22:55:05] [PASSED] 1 VF [22:55:05] [PASSED] 2 VFs [22:55:05] [PASSED] 3 VFs [22:55:05] [PASSED] 4 VFs [22:55:05] [PASSED] 5 VFs [22:55:05] [PASSED] 6 VFs [22:55:05] [PASSED] 7 VFs [22:55:05] [PASSED] 8 VFs [22:55:05] [PASSED] 9 VFs [22:55:05] [PASSED] 10 VFs [22:55:05] [PASSED] 11 VFs [22:55:05] [PASSED] 12 VFs [22:55:05] [PASSED] 13 VFs [22:55:05] [PASSED] 14 VFs [22:55:05] [PASSED] 15 VFs [22:55:05] [PASSED] 16 VFs [22:55:05] [PASSED] 17 VFs [22:55:05] [PASSED] 18 VFs [22:55:05] [PASSED] 19 VFs [22:55:05] [PASSED] 20 VFs [22:55:05] [PASSED] 21 VFs [22:55:05] [PASSED] 22 VFs [22:55:05] [PASSED] 23 VFs [22:55:05] [PASSED] 24 VFs [22:55:05] [PASSED] 25 VFs [22:55:05] [PASSED] 26 VFs [22:55:05] [PASSED] 27 VFs [22:55:05] [PASSED] 28 VFs [22:55:05] [PASSED] 29 VFs [22:55:05] [PASSED] 30 VFs [22:55:05] [PASSED] 31 VFs [22:55:05] [PASSED] 32 VFs [22:55:05] [PASSED] 33 VFs [22:55:05] [PASSED] 34 VFs [22:55:05] [PASSED] 35 VFs [22:55:05] [PASSED] 36 VFs [22:55:05] [PASSED] 37 VFs [22:55:05] [PASSED] 38 VFs [22:55:05] [PASSED] 39 VFs [22:55:05] [PASSED] 40 VFs [22:55:05] [PASSED] 41 VFs [22:55:05] [PASSED] 42 VFs [22:55:05] [PASSED] 43 VFs [22:55:05] [PASSED] 44 VFs [22:55:05] [PASSED] 45 VFs [22:55:05] [PASSED] 46 VFs [22:55:05] [PASSED] 47 VFs [22:55:05] [PASSED] 48 VFs [22:55:05] [PASSED] 49 VFs [22:55:05] [PASSED] 50 VFs [22:55:05] [PASSED] 51 VFs [22:55:05] [PASSED] 52 VFs [22:55:05] [PASSED] 53 VFs [22:55:05] [PASSED] 54 VFs [22:55:05] [PASSED] 55 VFs [22:55:05] [PASSED] 56 VFs [22:55:05] [PASSED] 57 VFs [22:55:05] [PASSED] 58 VFs [22:55:05] [PASSED] 59 VFs [22:55:05] [PASSED] 60 VFs [22:55:05] [PASSED] 61 VFs [22:55:05] [PASSED] 62 VFs [22:55:05] [PASSED] 63 VFs [22:55:05] ================== [PASSED] fair_contexts ================== [22:55:05] ===================== fair_doorbells ====================== [22:55:05] [PASSED] 1 VF [22:55:05] [PASSED] 2 VFs [22:55:05] [PASSED] 3 VFs [22:55:05] [PASSED] 4 VFs [22:55:05] [PASSED] 5 VFs [22:55:05] [PASSED] 6 VFs [22:55:05] [PASSED] 7 VFs [22:55:05] [PASSED] 8 VFs [22:55:05] [PASSED] 9 VFs [22:55:05] [PASSED] 10 VFs [22:55:05] [PASSED] 11 VFs [22:55:05] [PASSED] 12 VFs [22:55:05] [PASSED] 13 VFs [22:55:05] [PASSED] 14 VFs [22:55:05] [PASSED] 15 VFs [22:55:05] [PASSED] 16 VFs [22:55:05] [PASSED] 17 VFs [22:55:05] [PASSED] 18 VFs [22:55:05] [PASSED] 19 VFs [22:55:05] [PASSED] 20 VFs [22:55:05] [PASSED] 21 VFs [22:55:05] [PASSED] 22 VFs [22:55:05] [PASSED] 23 VFs [22:55:05] [PASSED] 24 VFs [22:55:05] [PASSED] 25 VFs [22:55:05] [PASSED] 26 VFs [22:55:05] [PASSED] 27 VFs [22:55:05] [PASSED] 28 VFs [22:55:05] [PASSED] 29 VFs [22:55:05] [PASSED] 30 VFs [22:55:05] [PASSED] 31 VFs [22:55:05] [PASSED] 32 VFs [22:55:05] [PASSED] 33 VFs [22:55:05] [PASSED] 34 VFs [22:55:05] [PASSED] 35 VFs [22:55:05] [PASSED] 36 VFs [22:55:05] [PASSED] 37 VFs [22:55:05] [PASSED] 38 VFs [22:55:05] [PASSED] 39 VFs [22:55:05] [PASSED] 40 VFs [22:55:05] [PASSED] 41 VFs [22:55:05] [PASSED] 42 VFs [22:55:05] [PASSED] 43 VFs [22:55:05] [PASSED] 44 VFs [22:55:05] [PASSED] 45 VFs [22:55:05] [PASSED] 46 VFs [22:55:05] [PASSED] 47 VFs [22:55:05] [PASSED] 48 VFs [22:55:05] [PASSED] 49 VFs [22:55:05] [PASSED] 50 VFs [22:55:05] [PASSED] 51 VFs [22:55:05] [PASSED] 52 VFs [22:55:05] [PASSED] 53 VFs [22:55:05] [PASSED] 54 VFs [22:55:05] [PASSED] 55 VFs [22:55:05] [PASSED] 56 VFs [22:55:05] [PASSED] 57 VFs [22:55:05] [PASSED] 58 VFs [22:55:05] [PASSED] 59 VFs [22:55:05] [PASSED] 60 VFs [22:55:05] [PASSED] 61 VFs [22:55:05] [PASSED] 62 VFs [22:55:05] [PASSED] 63 VFs [22:55:05] ================= [PASSED] fair_doorbells ================== [22:55:05] ======================== fair_ggtt ======================== [22:55:05] [PASSED] 1 VF [22:55:05] [PASSED] 2 VFs [22:55:05] [PASSED] 3 VFs [22:55:05] [PASSED] 4 VFs [22:55:05] [PASSED] 5 VFs [22:55:05] [PASSED] 6 VFs [22:55:05] [PASSED] 7 VFs [22:55:05] [PASSED] 8 VFs [22:55:05] [PASSED] 9 VFs [22:55:05] [PASSED] 10 VFs [22:55:05] [PASSED] 11 VFs [22:55:05] [PASSED] 12 VFs [22:55:05] [PASSED] 13 VFs [22:55:05] [PASSED] 14 VFs [22:55:05] [PASSED] 15 VFs [22:55:05] [PASSED] 16 VFs [22:55:05] [PASSED] 17 VFs [22:55:05] [PASSED] 18 VFs [22:55:05] [PASSED] 19 VFs [22:55:05] [PASSED] 20 VFs [22:55:05] [PASSED] 21 VFs [22:55:05] [PASSED] 22 VFs [22:55:05] [PASSED] 23 VFs [22:55:05] [PASSED] 24 VFs [22:55:05] [PASSED] 25 VFs [22:55:05] [PASSED] 26 VFs [22:55:05] [PASSED] 27 VFs [22:55:05] [PASSED] 28 VFs [22:55:05] [PASSED] 29 VFs [22:55:05] [PASSED] 30 VFs [22:55:05] [PASSED] 31 VFs [22:55:05] [PASSED] 32 VFs [22:55:05] [PASSED] 33 VFs [22:55:05] [PASSED] 34 VFs [22:55:05] [PASSED] 35 VFs [22:55:05] [PASSED] 36 VFs [22:55:05] [PASSED] 37 VFs [22:55:05] [PASSED] 38 VFs [22:55:05] [PASSED] 39 VFs [22:55:05] [PASSED] 40 VFs [22:55:05] [PASSED] 41 VFs [22:55:05] [PASSED] 42 VFs [22:55:05] [PASSED] 43 VFs [22:55:05] [PASSED] 44 VFs [22:55:05] [PASSED] 45 VFs [22:55:05] [PASSED] 46 VFs [22:55:05] [PASSED] 47 VFs [22:55:05] [PASSED] 48 VFs [22:55:05] [PASSED] 49 VFs [22:55:05] [PASSED] 50 VFs [22:55:05] [PASSED] 51 VFs [22:55:05] [PASSED] 52 VFs [22:55:05] [PASSED] 53 VFs [22:55:05] [PASSED] 54 VFs [22:55:05] [PASSED] 55 VFs [22:55:05] [PASSED] 56 VFs [22:55:05] [PASSED] 57 VFs [22:55:05] [PASSED] 58 VFs [22:55:05] [PASSED] 59 VFs [22:55:05] [PASSED] 60 VFs [22:55:05] [PASSED] 61 VFs [22:55:05] [PASSED] 62 VFs [22:55:05] [PASSED] 63 VFs [22:55:05] ==================== [PASSED] fair_ggtt ==================== [22:55:05] ======================== fair_vram ======================== [22:55:05] [PASSED] 1 VF [22:55:05] [PASSED] 2 VFs [22:55:05] [PASSED] 3 VFs [22:55:05] [PASSED] 4 VFs [22:55:05] [PASSED] 5 VFs [22:55:05] [PASSED] 6 VFs [22:55:05] [PASSED] 7 VFs [22:55:05] [PASSED] 8 VFs [22:55:05] [PASSED] 9 VFs [22:55:05] [PASSED] 10 VFs [22:55:05] [PASSED] 11 VFs [22:55:05] [PASSED] 12 VFs [22:55:05] [PASSED] 13 VFs [22:55:05] [PASSED] 14 VFs [22:55:05] [PASSED] 15 VFs [22:55:05] [PASSED] 16 VFs [22:55:05] [PASSED] 17 VFs [22:55:05] [PASSED] 18 VFs [22:55:05] [PASSED] 19 VFs [22:55:05] [PASSED] 20 VFs [22:55:05] [PASSED] 21 VFs [22:55:05] [PASSED] 22 VFs [22:55:05] [PASSED] 23 VFs [22:55:05] [PASSED] 24 VFs [22:55:05] [PASSED] 25 VFs [22:55:05] [PASSED] 26 VFs [22:55:05] [PASSED] 27 VFs [22:55:05] [PASSED] 28 VFs [22:55:05] [PASSED] 29 VFs [22:55:05] [PASSED] 30 VFs [22:55:05] [PASSED] 31 VFs [22:55:05] [PASSED] 32 VFs [22:55:05] [PASSED] 33 VFs [22:55:05] [PASSED] 34 VFs [22:55:05] [PASSED] 35 VFs [22:55:05] [PASSED] 36 VFs [22:55:05] [PASSED] 37 VFs [22:55:05] [PASSED] 38 VFs [22:55:05] [PASSED] 39 VFs [22:55:05] [PASSED] 40 VFs [22:55:05] [PASSED] 41 VFs [22:55:05] [PASSED] 42 VFs [22:55:05] [PASSED] 43 VFs [22:55:05] [PASSED] 44 VFs [22:55:05] [PASSED] 45 VFs [22:55:05] [PASSED] 46 VFs [22:55:05] [PASSED] 47 VFs [22:55:05] [PASSED] 48 VFs [22:55:05] [PASSED] 49 VFs [22:55:05] [PASSED] 50 VFs [22:55:05] [PASSED] 51 VFs [22:55:05] [PASSED] 52 VFs [22:55:05] [PASSED] 53 VFs [22:55:05] [PASSED] 54 VFs [22:55:05] [PASSED] 55 VFs [22:55:05] [PASSED] 56 VFs [22:55:05] [PASSED] 57 VFs [22:55:05] [PASSED] 58 VFs [22:55:05] [PASSED] 59 VFs [22:55:05] [PASSED] 60 VFs [22:55:05] [PASSED] 61 VFs [22:55:05] [PASSED] 62 VFs [22:55:05] [PASSED] 63 VFs [22:55:05] ==================== [PASSED] fair_vram ==================== [22:55:05] ================== [PASSED] pf_gt_config =================== [22:55:05] ===================== lmtt (1 subtest) ===================== [22:55:05] ======================== test_ops ========================= [22:55:05] [PASSED] 2-level [22:55:05] [PASSED] multi-level [22:55:05] ==================== [PASSED] test_ops ===================== [22:55:05] ====================== [PASSED] lmtt ======================= [22:55:05] ================= sriov_packet (1 subtest) ================= [22:55:05] [PASSED] test_descriptor_init [22:55:05] ================== [PASSED] sriov_packet =================== [22:55:05] ================= pf_service (11 subtests) ================= [22:55:05] [PASSED] pf_negotiate_any [22:55:05] [PASSED] pf_negotiate_base_match [22:55:05] [PASSED] pf_negotiate_base_newer [22:55:05] [PASSED] pf_negotiate_base_next [22:55:05] [SKIPPED] pf_negotiate_base_older (no older minor) [22:55:05] [PASSED] pf_negotiate_base_prev [22:55:05] [PASSED] pf_negotiate_latest_match [22:55:05] [PASSED] pf_negotiate_latest_newer [22:55:05] [PASSED] pf_negotiate_latest_next [22:55:05] [SKIPPED] pf_negotiate_latest_older (no older minor) [22:55:05] [SKIPPED] pf_negotiate_latest_prev (no prev major) [22:55:05] =================== [PASSED] pf_service ==================== [22:55:05] ================= xe_guc_g2g (2 subtests) ================== [22:55:05] ============== xe_live_guc_g2g_kunit_default ============== [22:55:05] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ========== [22:55:05] ============== xe_live_guc_g2g_kunit_allmem =============== [22:55:05] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ========== [22:55:05] =================== [SKIPPED] xe_guc_g2g =================== [22:55:05] =================== xe_mocs (2 subtests) =================== [22:55:05] ================ xe_live_mocs_kernel_kunit ================ [22:55:05] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============ [22:55:05] ================ xe_live_mocs_reset_kunit ================= [22:55:05] ============ [SKIPPED] xe_live_mocs_reset_kunit ============ [22:55:05] ==================== [SKIPPED] xe_mocs ===================== [22:55:05] ================= xe_migrate (2 subtests) ================== [22:55:05] ================= xe_migrate_sanity_kunit ================= [22:55:05] ============ [SKIPPED] xe_migrate_sanity_kunit ============= [22:55:05] ================== xe_validate_ccs_kunit ================== [22:55:05] ============= [SKIPPED] xe_validate_ccs_kunit ============== [22:55:05] =================== [SKIPPED] xe_migrate =================== [22:55:05] ================== xe_dma_buf (1 subtest) ================== [22:55:05] ==================== xe_dma_buf_kunit ===================== [22:55:05] ================ [SKIPPED] xe_dma_buf_kunit ================ [22:55:05] =================== [SKIPPED] xe_dma_buf =================== [22:55:05] ================= xe_bo_shrink (1 subtest) ================= [22:55:05] =================== xe_bo_shrink_kunit ==================== [22:55:05] =============== [SKIPPED] xe_bo_shrink_kunit =============== [22:55:05] ================== [SKIPPED] xe_bo_shrink ================== [22:55:05] ==================== xe_bo (2 subtests) ==================== [22:55:05] ================== xe_ccs_migrate_kunit =================== [22:55:05] ============== [SKIPPED] xe_ccs_migrate_kunit ============== [22:55:05] ==================== xe_bo_evict_kunit ==================== [22:55:05] =============== [SKIPPED] xe_bo_evict_kunit ================ [22:55:05] ===================== [SKIPPED] xe_bo ====================== [22:55:05] =================== xe_any (9 subtests) ==================== [22:55:05] [PASSED] test_to_xe [22:55:05] [PASSED] test_to_dev [22:55:05] [PASSED] test_to_pdev [22:55:05] [PASSED] test_to_drm [22:55:05] [PASSED] test_if_pdev [22:55:05] [PASSED] test_if_xe [22:55:05] [PASSED] test_if_tile [22:55:05] [PASSED] test_if_gt [22:55:05] [PASSED] test_to_id [22:55:05] ===================== [PASSED] xe_any ====================== [22:55:05] ==================== args (13 subtests) ==================== [22:55:05] [PASSED] count_args_test [22:55:05] [PASSED] call_args_example [22:55:05] [PASSED] call_args_test [22:55:05] [PASSED] drop_first_arg_example [22:55:05] [PASSED] drop_first_arg_test [22:55:05] [PASSED] first_arg_example [22:55:05] [PASSED] first_arg_test [22:55:05] [PASSED] last_arg_example [22:55:05] [PASSED] last_arg_test [22:55:05] [PASSED] pick_arg_example [22:55:05] [PASSED] if_args_example [22:55:05] [PASSED] if_args_test [22:55:05] [PASSED] sep_comma_example [22:55:05] ====================== [PASSED] args ======================= [22:55:05] =================== xe_pci (3 subtests) ==================== [22:55:05] ==================== check_graphics_ip ==================== [22:55:05] [PASSED] 12.00 Xe_LP [22:55:05] [PASSED] 12.10 Xe_LP+ [22:55:05] [PASSED] 12.55 Xe_HPG [22:55:05] [PASSED] 12.60 Xe_HPC [22:55:05] [PASSED] 12.70 Xe_LPG [22:55:05] [PASSED] 12.71 Xe_LPG [22:55:05] [PASSED] 12.74 Xe_LPG+ [22:55:05] [PASSED] 20.01 Xe2_HPG [22:55:05] [PASSED] 20.02 Xe2_HPG [22:55:05] [PASSED] 20.04 Xe2_LPG [22:55:05] [PASSED] 30.00 Xe3_LPG [22:55:05] [PASSED] 30.01 Xe3_LPG [22:55:05] [PASSED] 30.03 Xe3_LPG [22:55:05] [PASSED] 30.04 Xe3_LPG [22:55:05] [PASSED] 30.05 Xe3_LPG [22:55:05] [PASSED] 35.10 Xe3p_LPG [22:55:05] [PASSED] 35.11 Xe3p_XPC [22:55:05] ================ [PASSED] check_graphics_ip ================ [22:55:05] ===================== check_media_ip ====================== [22:55:05] [PASSED] 12.00 Xe_M [22:55:05] [PASSED] 12.55 Xe_HPM [22:55:05] [PASSED] 13.00 Xe_LPM+ [22:55:05] [PASSED] 13.01 Xe2_HPM [22:55:05] [PASSED] 20.00 Xe2_LPM [22:55:05] [PASSED] 30.00 Xe3_LPM [22:55:05] [PASSED] 30.02 Xe3_LPM [22:55:05] [PASSED] 35.00 Xe3p_LPM [22:55:05] [PASSED] 35.03 Xe3p_HPM [22:55:05] ================= [PASSED] check_media_ip ================== [22:55:05] =================== check_platform_desc =================== [22:55:05] [PASSED] 0x9A60 (TIGERLAKE) [22:55:05] [PASSED] 0x9A68 (TIGERLAKE) [22:55:05] [PASSED] 0x9A70 (TIGERLAKE) [22:55:05] [PASSED] 0x9A40 (TIGERLAKE) [22:55:05] [PASSED] 0x9A49 (TIGERLAKE) [22:55:05] [PASSED] 0x9A59 (TIGERLAKE) [22:55:05] [PASSED] 0x9A78 (TIGERLAKE) [22:55:05] [PASSED] 0x9AC0 (TIGERLAKE) [22:55:05] [PASSED] 0x9AC9 (TIGERLAKE) [22:55:05] [PASSED] 0x9AD9 (TIGERLAKE) [22:55:05] [PASSED] 0x9AF8 (TIGERLAKE) [22:55:05] [PASSED] 0x4C80 (ROCKETLAKE) [22:55:05] [PASSED] 0x4C8A (ROCKETLAKE) [22:55:05] [PASSED] 0x4C8B (ROCKETLAKE) [22:55:05] [PASSED] 0x4C8C (ROCKETLAKE) [22:55:05] [PASSED] 0x4C90 (ROCKETLAKE) [22:55:05] [PASSED] 0x4C9A (ROCKETLAKE) [22:55:05] [PASSED] 0x4680 (ALDERLAKE_S) [22:55:05] [PASSED] 0x4682 (ALDERLAKE_S) [22:55:05] [PASSED] 0x4688 (ALDERLAKE_S) [22:55:05] [PASSED] 0x468A (ALDERLAKE_S) [22:55:05] [PASSED] 0x468B (ALDERLAKE_S) [22:55:05] [PASSED] 0x4690 (ALDERLAKE_S) [22:55:05] [PASSED] 0x4692 (ALDERLAKE_S) [22:55:05] [PASSED] 0x4693 (ALDERLAKE_S) [22:55:05] [PASSED] 0x46A0 (ALDERLAKE_P) [22:55:05] [PASSED] 0x46A1 (ALDERLAKE_P) [22:55:05] [PASSED] 0x46A2 (ALDERLAKE_P) [22:55:05] [PASSED] 0x46A3 (ALDERLAKE_P) [22:55:05] [PASSED] 0x46A6 (ALDERLAKE_P) [22:55:05] [PASSED] 0x46A8 (ALDERLAKE_P) [22:55:05] [PASSED] 0x46AA (ALDERLAKE_P) [22:55:05] [PASSED] 0x462A (ALDERLAKE_P) [22:55:05] [PASSED] 0x4626 (ALDERLAKE_P) [22:55:05] [PASSED] 0x4628 (ALDERLAKE_P) [22:55:05] [PASSED] 0x46B0 (ALDERLAKE_P) [22:55:05] [PASSED] 0x46B1 (ALDERLAKE_P) [22:55:05] [PASSED] 0x46B2 (ALDERLAKE_P) [22:55:05] [PASSED] 0x46B3 (ALDERLAKE_P) [22:55:05] [PASSED] 0x46C0 (ALDERLAKE_P) [22:55:05] [PASSED] 0x46C1 (ALDERLAKE_P) [22:55:05] [PASSED] 0x46C2 (ALDERLAKE_P) [22:55:05] [PASSED] 0x46C3 (ALDERLAKE_P) [22:55:05] [PASSED] 0x46D0 (ALDERLAKE_N) [22:55:05] [PASSED] 0x46D1 (ALDERLAKE_N) [22:55:05] [PASSED] 0x46D2 (ALDERLAKE_N) [22:55:05] [PASSED] 0x46D3 (ALDERLAKE_N) [22:55:05] [PASSED] 0x46D4 (ALDERLAKE_N) [22:55:05] [PASSED] 0xA721 (ALDERLAKE_P) [22:55:05] [PASSED] 0xA7A1 (ALDERLAKE_P) [22:55:05] [PASSED] 0xA7A9 (ALDERLAKE_P) [22:55:05] [PASSED] 0xA7AC (ALDERLAKE_P) [22:55:05] [PASSED] 0xA7AD (ALDERLAKE_P) [22:55:05] [PASSED] 0xA720 (ALDERLAKE_P) [22:55:05] [PASSED] 0xA7A0 (ALDERLAKE_P) [22:55:05] [PASSED] 0xA7A8 (ALDERLAKE_P) [22:55:05] [PASSED] 0xA7AA (ALDERLAKE_P) [22:55:05] [PASSED] 0xA7AB (ALDERLAKE_P) [22:55:05] [PASSED] 0xA780 (ALDERLAKE_S) [22:55:05] [PASSED] 0xA781 (ALDERLAKE_S) [22:55:05] [PASSED] 0xA782 (ALDERLAKE_S) [22:55:05] [PASSED] 0xA783 (ALDERLAKE_S) [22:55:05] [PASSED] 0xA788 (ALDERLAKE_S) [22:55:05] [PASSED] 0xA789 (ALDERLAKE_S) [22:55:05] [PASSED] 0xA78A (ALDERLAKE_S) [22:55:05] [PASSED] 0xA78B (ALDERLAKE_S) [22:55:05] [PASSED] 0x4905 (DG1) [22:55:05] [PASSED] 0x4906 (DG1) [22:55:05] [PASSED] 0x4907 (DG1) [22:55:05] [PASSED] 0x4908 (DG1) [22:55:05] [PASSED] 0x4909 (DG1) [22:55:05] [PASSED] 0x56C0 (DG2) [22:55:05] [PASSED] 0x56C2 (DG2) [22:55:05] [PASSED] 0x56C1 (DG2) [22:55:05] [PASSED] 0x7D51 (METEORLAKE) [22:55:05] [PASSED] 0x7DD1 (METEORLAKE) [22:55:05] [PASSED] 0x7D41 (METEORLAKE) [22:55:05] [PASSED] 0x7D67 (METEORLAKE) [22:55:05] [PASSED] 0xB640 (METEORLAKE) [22:55:05] [PASSED] 0x56A0 (DG2) [22:55:05] [PASSED] 0x56A1 (DG2) [22:55:05] [PASSED] 0x56A2 (DG2) [22:55:05] [PASSED] 0x56BE (DG2) [22:55:05] [PASSED] 0x56BF (DG2) [22:55:05] [PASSED] 0x5690 (DG2) [22:55:05] [PASSED] 0x5691 (DG2) [22:55:05] [PASSED] 0x5692 (DG2) [22:55:05] [PASSED] 0x56A5 (DG2) [22:55:05] [PASSED] 0x56A6 (DG2) [22:55:05] [PASSED] 0x56B0 (DG2) [22:55:05] [PASSED] 0x56B1 (DG2) [22:55:05] [PASSED] 0x56BA (DG2) [22:55:05] [PASSED] 0x56BB (DG2) [22:55:05] [PASSED] 0x56BC (DG2) [22:55:05] [PASSED] 0x56BD (DG2) [22:55:05] [PASSED] 0x5693 (DG2) [22:55:05] [PASSED] 0x5694 (DG2) [22:55:05] [PASSED] 0x5695 (DG2) [22:55:05] [PASSED] 0x56A3 (DG2) [22:55:05] [PASSED] 0x56A4 (DG2) [22:55:05] [PASSED] 0x56B2 (DG2) [22:55:05] [PASSED] 0x56B3 (DG2) [22:55:05] [PASSED] 0x5696 (DG2) [22:55:05] [PASSED] 0x5697 (DG2) [22:55:05] [PASSED] 0xB69 (PVC) [22:55:05] [PASSED] 0xB6E (PVC) [22:55:05] [PASSED] 0xBD4 (PVC) [22:55:05] [PASSED] 0xBD5 (PVC) [22:55:05] [PASSED] 0xBD6 (PVC) [22:55:05] [PASSED] 0xBD7 (PVC) [22:55:05] [PASSED] 0xBD8 (PVC) [22:55:05] [PASSED] 0xBD9 (PVC) [22:55:05] [PASSED] 0xBDA (PVC) [22:55:05] [PASSED] 0xBDB (PVC) [22:55:05] [PASSED] 0xBE0 (PVC) [22:55:05] [PASSED] 0xBE1 (PVC) [22:55:05] [PASSED] 0xBE5 (PVC) [22:55:05] [PASSED] 0x7D40 (METEORLAKE) [22:55:05] [PASSED] 0x7D45 (METEORLAKE) [22:55:05] [PASSED] 0x7D55 (METEORLAKE) [22:55:05] [PASSED] 0x7D60 (METEORLAKE) [22:55:05] [PASSED] 0x7DD5 (METEORLAKE) [22:55:05] [PASSED] 0x6420 (LUNARLAKE) [22:55:05] [PASSED] 0x64A0 (LUNARLAKE) [22:55:05] [PASSED] 0x64B0 (LUNARLAKE) [22:55:05] [PASSED] 0xE202 (BATTLEMAGE) [22:55:05] [PASSED] 0xE209 (BATTLEMAGE) [22:55:05] [PASSED] 0xE20B (BATTLEMAGE) [22:55:05] [PASSED] 0xE20C (BATTLEMAGE) [22:55:05] [PASSED] 0xE20D (BATTLEMAGE) [22:55:05] [PASSED] 0xE210 (BATTLEMAGE) [22:55:05] [PASSED] 0xE211 (BATTLEMAGE) [22:55:05] [PASSED] 0xE212 (BATTLEMAGE) [22:55:05] [PASSED] 0xE216 (BATTLEMAGE) [22:55:05] [PASSED] 0xE220 (BATTLEMAGE) [22:55:05] [PASSED] 0xE221 (BATTLEMAGE) [22:55:05] [PASSED] 0xE222 (BATTLEMAGE) [22:55:05] [PASSED] 0xE223 (BATTLEMAGE) [22:55:05] [PASSED] 0xB080 (PANTHERLAKE) [22:55:05] [PASSED] 0xB081 (PANTHERLAKE) [22:55:05] [PASSED] 0xB082 (PANTHERLAKE) [22:55:05] [PASSED] 0xB083 (PANTHERLAKE) [22:55:05] [PASSED] 0xB084 (PANTHERLAKE) [22:55:05] [PASSED] 0xB085 (PANTHERLAKE) [22:55:05] [PASSED] 0xB086 (PANTHERLAKE) [22:55:05] [PASSED] 0xB087 (PANTHERLAKE) [22:55:05] [PASSED] 0xB08F (PANTHERLAKE) [22:55:05] [PASSED] 0xB090 (PANTHERLAKE) [22:55:05] [PASSED] 0xB0A0 (PANTHERLAKE) [22:55:05] [PASSED] 0xB0B0 (PANTHERLAKE) [22:55:05] [PASSED] 0xFD80 (PANTHERLAKE) [22:55:05] [PASSED] 0xFD81 (PANTHERLAKE) [22:55:05] [PASSED] 0xD740 (NOVALAKE_S) [22:55:05] [PASSED] 0xD741 (NOVALAKE_S) [22:55:05] [PASSED] 0xD742 (NOVALAKE_S) [22:55:05] [PASSED] 0xD743 (NOVALAKE_S) [22:55:05] [PASSED] 0xD745 (NOVALAKE_S) [22:55:05] [PASSED] 0xD74A (NOVALAKE_S) [22:55:05] [PASSED] 0xD74B (NOVALAKE_S) [22:55:05] [PASSED] 0x674C (CRESCENTISLAND) [22:55:05] [PASSED] 0x674D (CRESCENTISLAND) [22:55:05] [PASSED] 0x674E (CRESCENTISLAND) [22:55:05] [PASSED] 0x674F (CRESCENTISLAND) [22:55:05] [PASSED] 0x6750 (CRESCENTISLAND) [22:55:05] [PASSED] 0xD750 (NOVALAKE_P) [22:55:05] [PASSED] 0xD751 (NOVALAKE_P) [22:55:05] [PASSED] 0xD752 (NOVALAKE_P) [22:55:05] [PASSED] 0xD753 (NOVALAKE_P) [22:55:05] [PASSED] 0xD754 (NOVALAKE_P) [22:55:05] [PASSED] 0xD755 (NOVALAKE_P) [22:55:05] [PASSED] 0xD756 (NOVALAKE_P) [22:55:05] [PASSED] 0xD757 (NOVALAKE_P) [22:55:05] [PASSED] 0xD75F (NOVALAKE_P) [22:55:05] =============== [PASSED] check_platform_desc =============== [22:55:05] ===================== [PASSED] xe_pci ====================== [22:55:05] ============= xe_rtp_tables_test (5 subtests) ============== [22:55:05] ================== xe_rtp_table_gt_test =================== [22:55:05] [PASSED] gt_was/14011060649 [22:55:05] [PASSED] gt_was/14011059788 [22:55:05] [PASSED] gt_was/14015795083 [22:55:05] [PASSED] gt_was/16021867713 [22:55:05] [PASSED] gt_was/14019449301 [22:55:05] [PASSED] gt_was/16028005424 [22:55:05] [PASSED] gt_was/14026578760 [22:55:05] [PASSED] gt_was/1409420604 [22:55:05] [PASSED] gt_was/1408615072 [22:55:05] [PASSED] gt_was/22010523718 [22:55:05] [PASSED] gt_was/14011006942 [22:55:05] [PASSED] gt_was/14014830051 [22:55:05] [PASSED] gt_was/18018781329 [22:55:05] [PASSED] gt_was/1509235366 [22:55:05] [PASSED] gt_was/18018781329 [22:55:05] [PASSED] gt_was/16016694945 [22:55:05] [PASSED] gt_was/14018575942 [22:55:05] [PASSED] gt_was/22016670082 [22:55:05] [PASSED] gt_was/22016670082 [22:55:05] [PASSED] gt_was/14017421178 [22:55:05] [PASSED] gt_was/16025250150 [22:55:05] [PASSED] gt_was/14021871409 [22:55:05] [PASSED] gt_was/16021865536 [22:55:05] [PASSED] gt_was/14021486841 [22:55:05] [PASSED] gt_was/14025160223 [22:55:05] [PASSED] gt_was/14026144927, 16029437861, 14026127056 [22:55:05] [PASSED] gt_was/14025635424 [22:55:05] [PASSED] gt_was/16028005424 [22:55:05] ============== [PASSED] xe_rtp_table_gt_test =============== [22:55:05] ================== xe_rtp_table_gt_test =================== [22:55:05] [PASSED] gt_tunings/Tuning: Blend Fill Caching Optimization Disable [22:55:05] [PASSED] gt_tunings/Tuning: 32B Access Enable [22:55:05] [PASSED] gt_tunings/Tuning: L3 cache [22:55:05] [PASSED] gt_tunings/Tuning: L3 cache - media [22:55:05] [PASSED] gt_tunings/Tuning: Compression Overfetch [22:55:05] [PASSED] gt_tunings/Tuning: Compression Overfetch - media [22:55:05] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 [22:55:05] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 - media [22:55:05] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only [22:55:05] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only - media [22:55:05] [PASSED] gt_tunings/Tuning: Stateless compression control [22:55:05] [PASSED] gt_tunings/Tuning: Stateless compression control - media [22:55:05] [PASSED] gt_tunings/Tuning: L3 RW flush all Cache [22:55:05] [PASSED] gt_tunings/Tuning: L3 RW flush all cache - media [22:55:05] [PASSED] gt_tunings/Tuning: Set STLB Bank Hash Mode to 4KB [22:55:05] ============== [PASSED] xe_rtp_table_gt_test =============== [22:55:05] ================== xe_rtp_table_oob_test ================== [22:55:05] [PASSED] oob_was/1607983814 [22:55:05] [PASSED] oob_was/16010904313 [22:55:05] [PASSED] oob_was/18022495364 [22:55:05] [PASSED] oob_was/22012773006 [22:55:05] [PASSED] oob_was/14014475959 [22:55:05] [PASSED] oob_was/22011391025 [22:55:05] [PASSED] oob_was/22012727170 [22:55:05] [PASSED] oob_was/22012727685 [22:55:05] [PASSED] oob_was/22016596838 [22:55:05] [PASSED] oob_was/18020744125 [22:55:05] [PASSED] oob_was/1409600907 [22:55:05] [PASSED] oob_was/22014953428 [22:55:05] [PASSED] oob_was/16017236439 [22:55:05] [PASSED] oob_was/14019821291 [22:55:05] [PASSED] oob_was/14015076503 [22:55:05] [PASSED] oob_was/14018913170 [22:55:05] [PASSED] oob_was/14018094691 [22:55:05] [PASSED] oob_was/18024947630 [22:55:05] [PASSED] oob_was/16022287689 [22:55:05] [PASSED] oob_was/13011645652 [22:55:05] [PASSED] oob_was/14022293748 [22:55:05] [PASSED] oob_was/22019794406 [22:55:05] [PASSED] oob_was/22019338487 [22:55:05] [PASSED] oob_was/16023588340 [22:55:05] [PASSED] oob_was/14019789679 [22:55:05] [PASSED] oob_was/14022866841 [22:55:05] [PASSED] oob_was/16021333562 [22:55:05] [PASSED] oob_was/14016712196 [22:55:05] [PASSED] oob_was/14015568240 [22:55:05] [PASSED] oob_was/18013179988 [22:55:05] [PASSED] oob_was/1508761755 [22:55:05] [PASSED] oob_was/16023105232 [22:55:05] [PASSED] oob_was/16026508708 [22:55:05] [PASSED] oob_was/14020001231 [22:55:05] [PASSED] oob_was/16023683509 [22:55:05] [PASSED] oob_was/14025515070 [22:55:05] [PASSED] oob_was/15015404425_disable [22:55:05] [PASSED] oob_was/16026007364 [22:55:05] [PASSED] oob_was/14020316580 [22:55:05] [PASSED] oob_was/14025883347 [22:55:05] [PASSED] oob_was/16029380221 [22:55:05] [PASSED] oob_was/22022079272 [22:55:05] [PASSED] oob_was/16029897822 [22:55:05] [PASSED] oob_was/14027054324 [22:55:05] ============== [PASSED] xe_rtp_table_oob_test ============== [22:55:05] ================ xe_rtp_table_dev_oob_test ================ [22:55:05] [PASSED] device_oob_was/22010954014 [22:55:05] [PASSED] device_oob_was/15015404425 [22:55:05] [PASSED] device_oob_was/22019338487_display [22:55:05] [PASSED] device_oob_was/14022085890 [22:55:05] [PASSED] device_oob_was/14026539277 [22:55:05] [PASSED] device_oob_was/14026633728 [22:55:05] [PASSED] device_oob_was/14026746987 [22:55:05] [PASSED] device_oob_was/14026779378 [22:55:05] ============ [PASSED] xe_rtp_table_dev_oob_test ============ [22:55:05] ========== xe_rtp_table_missing_upper_bound_test ========== [22:55:05] [PASSED] register_whitelist/WaAllowPMDepthAndInvocationCountAccessFromUMD, 1408556865 [22:55:05] [PASSED] register_whitelist/1508744258, 14012131227, 1808121037 [22:55:05] [PASSED] register_whitelist/1806527549 [22:55:05] [PASSED] register_whitelist/allow_read_ctx_timestamp [22:55:05] [PASSED] register_whitelist/allow_read_queue_timestamp [22:55:05] [PASSED] register_whitelist/16014440446 [22:55:05] [PASSED] register_whitelist/16017236439 [22:55:05] [PASSED] register_whitelist/16020183090 [22:55:05] [PASSED] register_whitelist/14024997852 [22:55:05] [PASSED] register_whitelist/14024997852 [22:55:05] ====== [PASSED] xe_rtp_table_missing_upper_bound_test ====== [22:55:05] =============== [PASSED] xe_rtp_tables_test ================ [22:55:05] =================== xe_rtp (3 subtests) ==================== [22:55:05] =================== xe_rtp_rules_tests ==================== [22:55:05] [PASSED] no [22:55:05] [PASSED] yes [22:55:05] [PASSED] no-and-no [22:55:05] [PASSED] no-and-yes [22:55:05] [PASSED] yes-and-no [22:55:05] [PASSED] yes-and-yes [22:55:05] [PASSED] no-or-no [22:55:05] [PASSED] no-or-yes [22:55:05] [PASSED] yes-or-no [22:55:05] [PASSED] yes-or-yes [22:55:05] [PASSED] no-yes-or-yes-no [22:55:05] [PASSED] no-yes-or-yes-yes [22:55:05] [PASSED] yes-yes-or-no-yes [22:55:05] [PASSED] yes-yes-or-yes-yes [22:55:05] [PASSED] no-no-or-yes-or-no [22:55:05] [PASSED] or [22:55:05] [PASSED] or-yes [22:55:05] [PASSED] or-no [22:55:05] [PASSED] yes-or [22:55:05] [PASSED] no-or [22:55:05] [PASSED] no-or-or-yes [22:55:05] [PASSED] yes-or-or-no [22:55:05] [PASSED] no-or-or-no [22:55:05] [PASSED] missing-context-engine-class [22:55:05] [PASSED] missing-context-engine-class-or-yes [22:55:05] [PASSED] missing-context-engine-class-or-or-yes [22:55:05] =============== [PASSED] xe_rtp_rules_tests ================ [22:55:05] =============== xe_rtp_process_to_sr_tests ================ [22:55:05] [PASSED] coalesce-same-reg [22:55:05] [PASSED] coalesce-same-reg-literal-and-func [22:55:05] [PASSED] no-match-no-add [22:55:05] [PASSED] two-regs-two-entries [22:55:05] [PASSED] clr-one-set-other [22:55:05] [PASSED] set-field [22:55:05] [PASSED] conflict-duplicate [22:55:05] [PASSED] conflict-not-disjoint [22:55:05] [PASSED] conflict-not-disjoint-literal-and-func [22:55:05] [PASSED] conflict-reg-type [22:55:05] [PASSED] bad-mcr-reg-forced-to-regular [22:55:05] [PASSED] bad-regular-reg-forced-to-mcr [22:55:05] =========== [PASSED] xe_rtp_process_to_sr_tests ============ [22:55:05] ================== xe_rtp_process_tests =================== [22:55:05] [PASSED] active1 [22:55:05] [PASSED] active2 [22:55:05] [PASSED] active-inactive [22:55:05] [PASSED] inactive-active [22:55:05] [PASSED] inactive-active-inactive [22:55:05] [PASSED] inactive-inactive-inactive [22:55:05] ============== [PASSED] xe_rtp_process_tests =============== [22:55:05] ===================== [PASSED] xe_rtp ====================== [22:55:05] ==================== xe_wa (1 subtest) ===================== [22:55:05] ======================== xe_wa_gt ========================= [22:55:05] [PASSED] TIGERLAKE B0 [22:55:05] [PASSED] DG1 A0 [22:55:05] [PASSED] DG1 B0 [22:55:05] [PASSED] ALDERLAKE_S A0 [22:55:05] [PASSED] ALDERLAKE_S B0 [22:55:05] [PASSED] ALDERLAKE_S C0 [22:55:05] [PASSED] ALDERLAKE_S D0 [22:55:05] [PASSED] ALDERLAKE_P A0 [22:55:05] [PASSED] ALDERLAKE_P B0 [22:55:05] [PASSED] ALDERLAKE_P C0 [22:55:05] [PASSED] ALDERLAKE_S RPLS D0 [22:55:05] [PASSED] ALDERLAKE_P RPLU E0 [22:55:05] [PASSED] DG2 G10 C0 [22:55:05] [PASSED] DG2 G11 B1 [22:55:05] [PASSED] DG2 G12 A1 [22:55:05] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0 [22:55:05] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0 [22:55:05] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0 [22:55:05] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0 [22:55:05] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0 [22:55:05] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1 [22:55:05] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0 [22:55:05] ==================== [PASSED] xe_wa_gt ===================== [22:55:05] ====================== [PASSED] xe_wa ====================== [22:55:05] ============================================================ [22:55:05] Testing complete. Ran 789 tests: passed: 761, skipped: 28 [22:55:05] Elapsed time: 37.800s total, 4.329s configuring, 32.754s building, 0.677s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [22:55:05] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [22:55:07] 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 [22:55:33] Starting KUnit Kernel (1/1)... [22:55:33] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [22:55:33] ============ drm_test_pick_cmdline (2 subtests) ============ [22:55:33] [PASSED] drm_test_pick_cmdline_res_1920_1080_60 [22:55:33] =============== drm_test_pick_cmdline_named =============== [22:55:33] [PASSED] NTSC [22:55:33] [PASSED] NTSC-J [22:55:33] [PASSED] PAL [22:55:33] [PASSED] PAL-M [22:55:33] =========== [PASSED] drm_test_pick_cmdline_named =========== [22:55:33] ============== [PASSED] drm_test_pick_cmdline ============== [22:55:33] == drm_test_atomic_get_connector_for_encoder (1 subtest) === [22:55:33] [PASSED] drm_test_drm_atomic_get_connector_for_encoder [22:55:33] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ==== [22:55:33] =========== drm_validate_clone_mode (2 subtests) =========== [22:55:33] ============== drm_test_check_in_clone_mode =============== [22:55:33] [PASSED] in_clone_mode [22:55:33] [PASSED] not_in_clone_mode [22:55:33] ========== [PASSED] drm_test_check_in_clone_mode =========== [22:55:33] =============== drm_test_check_valid_clones =============== [22:55:33] [PASSED] not_in_clone_mode [22:55:33] [PASSED] valid_clone [22:55:33] [PASSED] invalid_clone [22:55:33] =========== [PASSED] drm_test_check_valid_clones =========== [22:55:33] ============= [PASSED] drm_validate_clone_mode ============= [22:55:33] ============= drm_validate_modeset (1 subtest) ============= [22:55:33] [PASSED] drm_test_check_connector_changed_modeset [22:55:33] ============== [PASSED] drm_validate_modeset =============== [22:55:33] ====== drm_test_bridge_get_current_state (1 subtest) ======= [22:55:33] [PASSED] drm_test_drm_bridge_get_current_state_atomic [22:55:33] ======== [PASSED] drm_test_bridge_get_current_state ======== [22:55:33] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ====== [22:55:33] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic [22:55:33] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled [22:55:33] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts [22:55:33] ======== [PASSED] drm_test_bridge_helper_reset_crtc ======== [22:55:33] ============== drm_bridge_alloc (2 subtests) =============== [22:55:33] [PASSED] drm_test_drm_bridge_alloc_basic [22:55:33] [PASSED] drm_test_drm_bridge_alloc_get_put [22:55:33] ================ [PASSED] drm_bridge_alloc ================= [22:55:33] ============= drm_bridge_bus_fmt (5 subtests) ============== [22:55:33] [PASSED] drm_test_bridge_rgb_yuv_rgb [22:55:33] [PASSED] drm_test_bridge_must_convert_to_yuv444 [22:55:33] [PASSED] drm_test_bridge_hdmi_auto_rgb [22:55:33] [PASSED] drm_test_bridge_auto_first [22:55:33] [PASSED] drm_test_bridge_rgb_yuv_no_path [22:55:33] =============== [PASSED] drm_bridge_bus_fmt ================ [22:55:33] ============= drm_cmdline_parser (40 subtests) ============= [22:55:33] [PASSED] drm_test_cmdline_force_d_only [22:55:33] [PASSED] drm_test_cmdline_force_D_only_dvi [22:55:33] [PASSED] drm_test_cmdline_force_D_only_hdmi [22:55:33] [PASSED] drm_test_cmdline_force_D_only_not_digital [22:55:33] [PASSED] drm_test_cmdline_force_e_only [22:55:33] [PASSED] drm_test_cmdline_res [22:55:33] [PASSED] drm_test_cmdline_res_vesa [22:55:33] [PASSED] drm_test_cmdline_res_vesa_rblank [22:55:33] [PASSED] drm_test_cmdline_res_rblank [22:55:33] [PASSED] drm_test_cmdline_res_bpp [22:55:33] [PASSED] drm_test_cmdline_res_refresh [22:55:33] [PASSED] drm_test_cmdline_res_bpp_refresh [22:55:33] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced [22:55:33] [PASSED] drm_test_cmdline_res_bpp_refresh_margins [22:55:33] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off [22:55:33] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on [22:55:33] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog [22:55:33] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital [22:55:33] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on [22:55:33] [PASSED] drm_test_cmdline_res_margins_force_on [22:55:33] [PASSED] drm_test_cmdline_res_vesa_margins [22:55:33] [PASSED] drm_test_cmdline_name [22:55:33] [PASSED] drm_test_cmdline_name_bpp [22:55:33] [PASSED] drm_test_cmdline_name_option [22:55:33] [PASSED] drm_test_cmdline_name_bpp_option [22:55:33] [PASSED] drm_test_cmdline_rotate_0 [22:55:33] [PASSED] drm_test_cmdline_rotate_90 [22:55:33] [PASSED] drm_test_cmdline_rotate_180 [22:55:33] [PASSED] drm_test_cmdline_rotate_270 [22:55:33] [PASSED] drm_test_cmdline_hmirror [22:55:33] [PASSED] drm_test_cmdline_vmirror [22:55:33] [PASSED] drm_test_cmdline_margin_options [22:55:33] [PASSED] drm_test_cmdline_multiple_options [22:55:33] [PASSED] drm_test_cmdline_bpp_extra_and_option [22:55:33] [PASSED] drm_test_cmdline_extra_and_option [22:55:33] [PASSED] drm_test_cmdline_freestanding_options [22:55:33] [PASSED] drm_test_cmdline_freestanding_force_e_and_options [22:55:33] [PASSED] drm_test_cmdline_panel_orientation [22:55:33] ================ drm_test_cmdline_invalid ================= [22:55:33] [PASSED] margin_only [22:55:33] [PASSED] interlace_only [22:55:33] [PASSED] res_missing_x [22:55:33] [PASSED] res_missing_y [22:55:33] [PASSED] res_bad_y [22:55:33] [PASSED] res_missing_y_bpp [22:55:33] [PASSED] res_bad_bpp [22:55:33] [PASSED] res_bad_refresh [22:55:33] [PASSED] res_bpp_refresh_force_on_off [22:55:33] [PASSED] res_invalid_mode [22:55:33] [PASSED] res_bpp_wrong_place_mode [22:55:33] [PASSED] name_bpp_refresh [22:55:33] [PASSED] name_refresh [22:55:33] [PASSED] name_refresh_wrong_mode [22:55:33] [PASSED] name_refresh_invalid_mode [22:55:33] [PASSED] rotate_multiple [22:55:33] [PASSED] rotate_invalid_val [22:55:33] [PASSED] rotate_truncated [22:55:33] [PASSED] invalid_option [22:55:33] [PASSED] invalid_tv_option [22:55:33] [PASSED] truncated_tv_option [22:55:33] ============ [PASSED] drm_test_cmdline_invalid ============= [22:55:33] =============== drm_test_cmdline_tv_options =============== [22:55:33] [PASSED] NTSC [22:55:33] [PASSED] NTSC_443 [22:55:33] [PASSED] NTSC_J [22:55:33] [PASSED] PAL [22:55:33] [PASSED] PAL_M [22:55:33] [PASSED] PAL_N [22:55:33] [PASSED] SECAM [22:55:33] [PASSED] MONO_525 [22:55:33] [PASSED] MONO_625 [22:55:33] =========== [PASSED] drm_test_cmdline_tv_options =========== [22:55:33] =============== [PASSED] drm_cmdline_parser ================ [22:55:33] ========== drmm_connector_hdmi_init (20 subtests) ========== [22:55:33] [PASSED] drm_test_connector_hdmi_init_valid [22:55:33] [PASSED] drm_test_connector_hdmi_init_bpc_8 [22:55:33] [PASSED] drm_test_connector_hdmi_init_bpc_10 [22:55:33] [PASSED] drm_test_connector_hdmi_init_bpc_12 [22:55:33] [PASSED] drm_test_connector_hdmi_init_bpc_invalid [22:55:33] [PASSED] drm_test_connector_hdmi_init_bpc_null [22:55:33] [PASSED] drm_test_connector_hdmi_init_formats_empty [22:55:33] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb [22:55:33] === drm_test_connector_hdmi_init_formats_yuv420_allowed === [22:55:33] [PASSED] supported_formats=0x9 yuv420_allowed=1 [22:55:33] [PASSED] supported_formats=0x9 yuv420_allowed=0 [22:55:33] [PASSED] supported_formats=0x5 yuv420_allowed=1 [22:55:33] [PASSED] supported_formats=0x5 yuv420_allowed=0 [22:55:33] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed === [22:55:33] [PASSED] drm_test_connector_hdmi_init_null_ddc [22:55:33] [PASSED] drm_test_connector_hdmi_init_null_product [22:55:33] [PASSED] drm_test_connector_hdmi_init_null_vendor [22:55:33] [PASSED] drm_test_connector_hdmi_init_product_length_exact [22:55:33] [PASSED] drm_test_connector_hdmi_init_product_length_too_long [22:55:33] [PASSED] drm_test_connector_hdmi_init_product_valid [22:55:33] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact [22:55:33] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long [22:55:33] [PASSED] drm_test_connector_hdmi_init_vendor_valid [22:55:33] ========= drm_test_connector_hdmi_init_type_valid ========= [22:55:33] [PASSED] HDMI-A [22:55:33] [PASSED] HDMI-B [22:55:33] ===== [PASSED] drm_test_connector_hdmi_init_type_valid ===== [22:55:33] ======== drm_test_connector_hdmi_init_type_invalid ======== [22:55:33] [PASSED] Unknown [22:55:33] [PASSED] VGA [22:55:33] [PASSED] DVI-I [22:55:33] [PASSED] DVI-D [22:55:33] [PASSED] DVI-A [22:55:33] [PASSED] Composite [22:55:33] [PASSED] SVIDEO [22:55:33] [PASSED] LVDS [22:55:33] [PASSED] Component [22:55:33] [PASSED] DIN [22:55:33] [PASSED] DP [22:55:33] [PASSED] TV [22:55:33] [PASSED] eDP [22:55:33] [PASSED] Virtual [22:55:33] [PASSED] DSI [22:55:33] [PASSED] DPI [22:55:33] [PASSED] Writeback [22:55:33] [PASSED] SPI [22:55:33] [PASSED] USB [22:55:33] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ==== [22:55:33] ============ [PASSED] drmm_connector_hdmi_init ============= [22:55:33] ============= drmm_connector_init (3 subtests) ============= [22:55:33] [PASSED] drm_test_drmm_connector_init [22:55:33] [PASSED] drm_test_drmm_connector_init_null_ddc [22:55:33] ========= drm_test_drmm_connector_init_type_valid ========= [22:55:33] [PASSED] Unknown [22:55:33] [PASSED] VGA [22:55:33] [PASSED] DVI-I [22:55:33] [PASSED] DVI-D [22:55:33] [PASSED] DVI-A [22:55:33] [PASSED] Composite [22:55:33] [PASSED] SVIDEO [22:55:33] [PASSED] LVDS [22:55:33] [PASSED] Component [22:55:33] [PASSED] DIN [22:55:33] [PASSED] DP [22:55:33] [PASSED] HDMI-A [22:55:33] [PASSED] HDMI-B [22:55:33] [PASSED] TV [22:55:33] [PASSED] eDP [22:55:33] [PASSED] Virtual [22:55:33] [PASSED] DSI [22:55:33] [PASSED] DPI [22:55:33] [PASSED] Writeback [22:55:33] [PASSED] SPI [22:55:33] [PASSED] USB [22:55:33] ===== [PASSED] drm_test_drmm_connector_init_type_valid ===== [22:55:33] =============== [PASSED] drmm_connector_init =============== [22:55:33] ========= drm_connector_dynamic_init (6 subtests) ========== [22:55:33] [PASSED] drm_test_drm_connector_dynamic_init [22:55:33] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc [22:55:33] [PASSED] drm_test_drm_connector_dynamic_init_not_added [22:55:33] [PASSED] drm_test_drm_connector_dynamic_init_properties [22:55:33] ===== drm_test_drm_connector_dynamic_init_type_valid ====== [22:55:33] [PASSED] Unknown [22:55:33] [PASSED] VGA [22:55:33] [PASSED] DVI-I [22:55:33] [PASSED] DVI-D [22:55:33] [PASSED] DVI-A [22:55:33] [PASSED] Composite [22:55:33] [PASSED] SVIDEO [22:55:33] [PASSED] LVDS [22:55:33] [PASSED] Component [22:55:33] [PASSED] DIN [22:55:33] [PASSED] DP [22:55:33] [PASSED] HDMI-A [22:55:33] [PASSED] HDMI-B [22:55:33] [PASSED] TV [22:55:33] [PASSED] eDP [22:55:33] [PASSED] Virtual [22:55:33] [PASSED] DSI [22:55:33] [PASSED] DPI [22:55:33] [PASSED] Writeback [22:55:33] [PASSED] SPI [22:55:33] [PASSED] USB [22:55:33] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid == [22:55:33] ======== drm_test_drm_connector_dynamic_init_name ========= [22:55:33] [PASSED] Unknown [22:55:33] [PASSED] VGA [22:55:33] [PASSED] DVI-I [22:55:33] [PASSED] DVI-D [22:55:33] [PASSED] DVI-A [22:55:33] [PASSED] Composite [22:55:33] [PASSED] SVIDEO [22:55:33] [PASSED] LVDS [22:55:33] [PASSED] Component [22:55:33] [PASSED] DIN [22:55:33] [PASSED] DP [22:55:33] [PASSED] HDMI-A [22:55:33] [PASSED] HDMI-B [22:55:33] [PASSED] TV [22:55:33] [PASSED] eDP [22:55:33] [PASSED] Virtual [22:55:33] [PASSED] DSI [22:55:33] [PASSED] DPI [22:55:33] [PASSED] Writeback [22:55:33] [PASSED] SPI [22:55:33] [PASSED] USB [22:55:33] ==== [PASSED] drm_test_drm_connector_dynamic_init_name ===== [22:55:33] =========== [PASSED] drm_connector_dynamic_init ============ [22:55:33] ==== drm_connector_dynamic_register_early (4 subtests) ===== [22:55:33] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list [22:55:33] [PASSED] drm_test_drm_connector_dynamic_register_early_defer [22:55:33] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init [22:55:33] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object [22:55:33] ====== [PASSED] drm_connector_dynamic_register_early ======= [22:55:33] ======= drm_connector_dynamic_register (7 subtests) ======== [22:55:33] [PASSED] drm_test_drm_connector_dynamic_register_on_list [22:55:33] [PASSED] drm_test_drm_connector_dynamic_register_no_defer [22:55:33] [PASSED] drm_test_drm_connector_dynamic_register_no_init [22:55:33] [PASSED] drm_test_drm_connector_dynamic_register_mode_object [22:55:33] [PASSED] drm_test_drm_connector_dynamic_register_sysfs [22:55:33] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name [22:55:33] [PASSED] drm_test_drm_connector_dynamic_register_debugfs [22:55:33] ========= [PASSED] drm_connector_dynamic_register ========== [22:55:33] = drm_connector_attach_broadcast_rgb_property (2 subtests) = [22:55:33] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property [22:55:33] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector [22:55:33] === [PASSED] drm_connector_attach_broadcast_rgb_property === [22:55:33] ========== drm_get_tv_mode_from_name (2 subtests) ========== [22:55:33] ========== drm_test_get_tv_mode_from_name_valid =========== [22:55:33] [PASSED] NTSC [22:55:33] [PASSED] NTSC-443 [22:55:33] [PASSED] NTSC-J [22:55:33] [PASSED] PAL [22:55:33] [PASSED] PAL-M [22:55:33] [PASSED] PAL-N [22:55:33] [PASSED] SECAM [22:55:33] [PASSED] Mono [22:55:33] ====== [PASSED] drm_test_get_tv_mode_from_name_valid ======= [22:55:33] [PASSED] drm_test_get_tv_mode_from_name_truncated [22:55:33] ============ [PASSED] drm_get_tv_mode_from_name ============ [22:55:33] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) = [22:55:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb [22:55:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc [22:55:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1 [22:55:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc [22:55:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1 [22:55:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double [22:55:33] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid = [22:55:33] [PASSED] VIC 96 [22:55:33] [PASSED] VIC 97 [22:55:33] [PASSED] VIC 101 [22:55:33] [PASSED] VIC 102 [22:55:33] [PASSED] VIC 106 [22:55:33] [PASSED] VIC 107 [22:55:33] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid === [22:55:33] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc [22:55:33] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc [22:55:33] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc [22:55:33] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc [22:55:33] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc [22:55:33] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ==== [22:55:33] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) == [22:55:33] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ==== [22:55:33] [PASSED] Automatic [22:55:33] [PASSED] Full [22:55:33] [PASSED] Limited 16:235 [22:55:33] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name === [22:55:33] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid [22:55:33] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ==== [22:55:33] == drm_hdmi_connector_get_output_format_name (2 subtests) == [22:55:33] === drm_test_drm_hdmi_connector_get_output_format_name ==== [22:55:33] [PASSED] RGB [22:55:33] [PASSED] YUV 4:2:0 [22:55:33] [PASSED] YUV 4:2:2 [22:55:33] [PASSED] YUV 4:4:4 [22:55:33] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name === [22:55:33] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid [22:55:33] ==== [PASSED] drm_hdmi_connector_get_output_format_name ==== [22:55:33] ============= drm_damage_helper (21 subtests) ============== [22:55:33] [PASSED] drm_test_damage_iter_no_damage [22:55:33] [PASSED] drm_test_damage_iter_no_damage_fractional_src [22:55:33] [PASSED] drm_test_damage_iter_no_damage_src_moved [22:55:33] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved [22:55:33] [PASSED] drm_test_damage_iter_no_damage_not_visible [22:55:33] [PASSED] drm_test_damage_iter_no_damage_no_crtc [22:55:33] [PASSED] drm_test_damage_iter_no_damage_no_fb [22:55:33] [PASSED] drm_test_damage_iter_simple_damage [22:55:33] [PASSED] drm_test_damage_iter_single_damage [22:55:33] [PASSED] drm_test_damage_iter_single_damage_intersect_src [22:55:33] [PASSED] drm_test_damage_iter_single_damage_outside_src [22:55:33] [PASSED] drm_test_damage_iter_single_damage_fractional_src [22:55:33] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src [22:55:33] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src [22:55:33] [PASSED] drm_test_damage_iter_single_damage_src_moved [22:55:33] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved [22:55:33] [PASSED] drm_test_damage_iter_damage [22:55:33] [PASSED] drm_test_damage_iter_damage_one_intersect [22:55:33] [PASSED] drm_test_damage_iter_damage_one_outside [22:55:33] [PASSED] drm_test_damage_iter_damage_src_moved [22:55:33] [PASSED] drm_test_damage_iter_damage_not_visible [22:55:33] ================ [PASSED] drm_damage_helper ================ [22:55:33] ============== drm_dp_mst_helper (3 subtests) ============== [22:55:33] ============== drm_test_dp_mst_calc_pbn_mode ============== [22:55:33] [PASSED] Clock 154000 BPP 30 DSC disabled [22:55:33] [PASSED] Clock 234000 BPP 30 DSC disabled [22:55:33] [PASSED] Clock 297000 BPP 24 DSC disabled [22:55:33] [PASSED] Clock 332880 BPP 24 DSC enabled [22:55:33] [PASSED] Clock 324540 BPP 24 DSC enabled [22:55:33] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ========== [22:55:33] ============== drm_test_dp_mst_calc_pbn_div =============== [22:55:33] [PASSED] Link rate 2000000 lane count 4 [22:55:33] [PASSED] Link rate 2000000 lane count 2 [22:55:33] [PASSED] Link rate 2000000 lane count 1 [22:55:33] [PASSED] Link rate 1350000 lane count 4 [22:55:33] [PASSED] Link rate 1350000 lane count 2 [22:55:33] [PASSED] Link rate 1350000 lane count 1 [22:55:33] [PASSED] Link rate 1000000 lane count 4 [22:55:33] [PASSED] Link rate 1000000 lane count 2 [22:55:33] [PASSED] Link rate 1000000 lane count 1 [22:55:33] [PASSED] Link rate 810000 lane count 4 [22:55:33] [PASSED] Link rate 810000 lane count 2 [22:55:33] [PASSED] Link rate 810000 lane count 1 [22:55:33] [PASSED] Link rate 540000 lane count 4 [22:55:33] [PASSED] Link rate 540000 lane count 2 [22:55:33] [PASSED] Link rate 540000 lane count 1 [22:55:33] [PASSED] Link rate 270000 lane count 4 [22:55:33] [PASSED] Link rate 270000 lane count 2 [22:55:33] [PASSED] Link rate 270000 lane count 1 [22:55:33] [PASSED] Link rate 162000 lane count 4 [22:55:33] [PASSED] Link rate 162000 lane count 2 [22:55:33] [PASSED] Link rate 162000 lane count 1 [22:55:33] ========== [PASSED] drm_test_dp_mst_calc_pbn_div =========== [22:55:33] ========= drm_test_dp_mst_sideband_msg_req_decode ========= [22:55:33] [PASSED] DP_ENUM_PATH_RESOURCES with port number [22:55:33] [PASSED] DP_POWER_UP_PHY with port number [22:55:33] [PASSED] DP_POWER_DOWN_PHY with port number [22:55:33] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks [22:55:33] [PASSED] DP_ALLOCATE_PAYLOAD with port number [22:55:33] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI [22:55:33] [PASSED] DP_ALLOCATE_PAYLOAD with PBN [22:55:33] [PASSED] DP_QUERY_PAYLOAD with port number [22:55:33] [PASSED] DP_QUERY_PAYLOAD with VCPI [22:55:33] [PASSED] DP_REMOTE_DPCD_READ with port number [22:55:33] [PASSED] DP_REMOTE_DPCD_READ with DPCD address [22:55:33] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes [22:55:33] [PASSED] DP_REMOTE_DPCD_WRITE with port number [22:55:33] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address [22:55:33] [PASSED] DP_REMOTE_DPCD_WRITE with data array [22:55:33] [PASSED] DP_REMOTE_I2C_READ with port number [22:55:33] [PASSED] DP_REMOTE_I2C_READ with I2C device ID [22:55:33] [PASSED] DP_REMOTE_I2C_READ with transactions array [22:55:33] [PASSED] DP_REMOTE_I2C_WRITE with port number [22:55:33] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID [22:55:33] [PASSED] DP_REMOTE_I2C_WRITE with data array [22:55:33] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID [22:55:33] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID [22:55:33] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event [22:55:33] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event [22:55:33] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior [22:55:33] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior [22:55:33] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode ===== [22:55:33] ================ [PASSED] drm_dp_mst_helper ================ [22:55:33] ================== drm_exec (7 subtests) =================== [22:55:33] [PASSED] sanitycheck [22:55:33] [PASSED] test_lock [22:55:33] [PASSED] test_lock_unlock [22:55:33] [PASSED] test_duplicates [22:55:33] [PASSED] test_prepare [22:55:33] [PASSED] test_prepare_array [22:55:33] [PASSED] test_multiple_loops [22:55:33] ==================== [PASSED] drm_exec ===================== [22:55:33] =========== drm_format_helper_test (17 subtests) =========== [22:55:33] ============== drm_test_fb_xrgb8888_to_gray8 ============== [22:55:33] [PASSED] single_pixel_source_buffer [22:55:33] [PASSED] single_pixel_clip_rectangle [22:55:33] [PASSED] well_known_colors [22:55:33] [PASSED] destination_pitch [22:55:33] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ========== [22:55:33] ============= drm_test_fb_xrgb8888_to_rgb332 ============== [22:55:33] [PASSED] single_pixel_source_buffer [22:55:33] [PASSED] single_pixel_clip_rectangle [22:55:33] [PASSED] well_known_colors [22:55:33] [PASSED] destination_pitch [22:55:33] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ========== [22:55:33] ============= drm_test_fb_xrgb8888_to_rgb565 ============== [22:55:33] [PASSED] single_pixel_source_buffer [22:55:33] [PASSED] single_pixel_clip_rectangle [22:55:33] [PASSED] well_known_colors [22:55:33] [PASSED] destination_pitch [22:55:33] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ========== [22:55:33] ============ drm_test_fb_xrgb8888_to_xrgb1555 ============= [22:55:33] [PASSED] single_pixel_source_buffer [22:55:33] [PASSED] single_pixel_clip_rectangle [22:55:33] [PASSED] well_known_colors [22:55:33] [PASSED] destination_pitch [22:55:33] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 ========= [22:55:33] ============ drm_test_fb_xrgb8888_to_argb1555 ============= [22:55:33] [PASSED] single_pixel_source_buffer [22:55:33] [PASSED] single_pixel_clip_rectangle [22:55:33] [PASSED] well_known_colors [22:55:33] [PASSED] destination_pitch [22:55:33] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 ========= [22:55:33] ============ drm_test_fb_xrgb8888_to_rgba5551 ============= [22:55:33] [PASSED] single_pixel_source_buffer [22:55:33] [PASSED] single_pixel_clip_rectangle [22:55:33] [PASSED] well_known_colors [22:55:33] [PASSED] destination_pitch [22:55:33] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 ========= [22:55:33] ============= drm_test_fb_xrgb8888_to_rgb888 ============== [22:55:33] [PASSED] single_pixel_source_buffer [22:55:33] [PASSED] single_pixel_clip_rectangle [22:55:33] [PASSED] well_known_colors [22:55:33] [PASSED] destination_pitch [22:55:33] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ========== [22:55:33] ============= drm_test_fb_xrgb8888_to_bgr888 ============== [22:55:33] [PASSED] single_pixel_source_buffer [22:55:33] [PASSED] single_pixel_clip_rectangle [22:55:33] [PASSED] well_known_colors [22:55:33] [PASSED] destination_pitch [22:55:33] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ========== [22:55:33] ============ drm_test_fb_xrgb8888_to_argb8888 ============= [22:55:33] [PASSED] single_pixel_source_buffer [22:55:33] [PASSED] single_pixel_clip_rectangle [22:55:33] [PASSED] well_known_colors [22:55:33] [PASSED] destination_pitch [22:55:33] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 ========= [22:55:33] =========== drm_test_fb_xrgb8888_to_xrgb2101010 =========== [22:55:33] [PASSED] single_pixel_source_buffer [22:55:33] [PASSED] single_pixel_clip_rectangle [22:55:33] [PASSED] well_known_colors [22:55:33] [PASSED] destination_pitch [22:55:33] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 ======= [22:55:33] =========== drm_test_fb_xrgb8888_to_argb2101010 =========== [22:55:33] [PASSED] single_pixel_source_buffer [22:55:33] [PASSED] single_pixel_clip_rectangle [22:55:33] [PASSED] well_known_colors [22:55:33] [PASSED] destination_pitch [22:55:33] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 ======= [22:55:33] ============== drm_test_fb_xrgb8888_to_mono =============== [22:55:33] [PASSED] single_pixel_source_buffer [22:55:33] [PASSED] single_pixel_clip_rectangle [22:55:33] [PASSED] well_known_colors [22:55:33] [PASSED] destination_pitch [22:55:33] ========== [PASSED] drm_test_fb_xrgb8888_to_mono =========== [22:55:33] ==================== drm_test_fb_swab ===================== [22:55:33] [PASSED] single_pixel_source_buffer [22:55:33] [PASSED] single_pixel_clip_rectangle [22:55:33] [PASSED] well_known_colors [22:55:33] [PASSED] destination_pitch [22:55:33] ================ [PASSED] drm_test_fb_swab ================= [22:55:33] ============ drm_test_fb_xrgb8888_to_xbgr8888 ============= [22:55:33] [PASSED] single_pixel_source_buffer [22:55:33] [PASSED] single_pixel_clip_rectangle [22:55:33] [PASSED] well_known_colors [22:55:33] [PASSED] destination_pitch [22:55:33] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 ========= [22:55:33] ============ drm_test_fb_xrgb8888_to_abgr8888 ============= [22:55:33] [PASSED] single_pixel_source_buffer [22:55:33] [PASSED] single_pixel_clip_rectangle [22:55:33] [PASSED] well_known_colors [22:55:33] [PASSED] destination_pitch [22:55:33] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 ========= [22:55:33] ================= drm_test_fb_clip_offset ================= [22:55:33] [PASSED] pass through [22:55:33] [PASSED] horizontal offset [22:55:33] [PASSED] vertical offset [22:55:33] [PASSED] horizontal and vertical offset [22:55:33] [PASSED] horizontal offset (custom pitch) [22:55:33] [PASSED] vertical offset (custom pitch) [22:55:33] [PASSED] horizontal and vertical offset (custom pitch) [22:55:33] ============= [PASSED] drm_test_fb_clip_offset ============= [22:55:33] =================== drm_test_fb_memcpy ==================== [22:55:33] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258) [22:55:33] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258) [22:55:33] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559) [22:55:33] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258) [22:55:33] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258) [22:55:33] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559) [22:55:33] [PASSED] well_known_colors: XB24 little-endian (0x34324258) [22:55:33] [PASSED] well_known_colors: XRA8 little-endian (0x38415258) [22:55:33] [PASSED] well_known_colors: YU24 little-endian (0x34325559) [22:55:33] [PASSED] destination_pitch: XB24 little-endian (0x34324258) [22:55:33] [PASSED] destination_pitch: XRA8 little-endian (0x38415258) [22:55:33] [PASSED] destination_pitch: YU24 little-endian (0x34325559) [22:55:33] =============== [PASSED] drm_test_fb_memcpy ================ [22:55:33] ============= [PASSED] drm_format_helper_test ============== [22:55:33] ================= drm_format (18 subtests) ================= [22:55:33] [PASSED] drm_test_format_block_width_invalid [22:55:33] [PASSED] drm_test_format_block_width_one_plane [22:55:33] [PASSED] drm_test_format_block_width_two_plane [22:55:33] [PASSED] drm_test_format_block_width_three_plane [22:55:33] [PASSED] drm_test_format_block_width_tiled [22:55:33] [PASSED] drm_test_format_block_height_invalid [22:55:33] [PASSED] drm_test_format_block_height_one_plane [22:55:33] [PASSED] drm_test_format_block_height_two_plane [22:55:33] [PASSED] drm_test_format_block_height_three_plane [22:55:33] [PASSED] drm_test_format_block_height_tiled [22:55:33] [PASSED] drm_test_format_min_pitch_invalid [22:55:33] [PASSED] drm_test_format_min_pitch_one_plane_8bpp [22:55:33] [PASSED] drm_test_format_min_pitch_one_plane_16bpp [22:55:33] [PASSED] drm_test_format_min_pitch_one_plane_24bpp [22:55:33] [PASSED] drm_test_format_min_pitch_one_plane_32bpp [22:55:33] [PASSED] drm_test_format_min_pitch_two_plane [22:55:33] [PASSED] drm_test_format_min_pitch_three_plane_8bpp [22:55:33] [PASSED] drm_test_format_min_pitch_tiled [22:55:33] =================== [PASSED] drm_format ==================== [22:55:33] ============== drm_framebuffer (10 subtests) =============== [22:55:33] ========== drm_test_framebuffer_check_src_coords ========== [22:55:33] [PASSED] Success: source fits into fb [22:55:33] [PASSED] Fail: overflowing fb with x-axis coordinate [22:55:33] [PASSED] Fail: overflowing fb with y-axis coordinate [22:55:33] [PASSED] Fail: overflowing fb with source width [22:55:33] [PASSED] Fail: overflowing fb with source height [22:55:33] ====== [PASSED] drm_test_framebuffer_check_src_coords ====== [22:55:33] [PASSED] drm_test_framebuffer_cleanup [22:55:33] =============== drm_test_framebuffer_create =============== [22:55:33] [PASSED] ABGR8888 normal sizes [22:55:33] [PASSED] ABGR8888 max sizes [22:55:33] [PASSED] ABGR8888 pitch greater than min required [22:55:33] [PASSED] ABGR8888 pitch less than min required [22:55:33] [PASSED] ABGR8888 Invalid width [22:55:33] [PASSED] ABGR8888 Invalid buffer handle [22:55:33] [PASSED] No pixel format [22:55:33] [PASSED] ABGR8888 Width 0 [22:55:33] [PASSED] ABGR8888 Height 0 [22:55:33] [PASSED] ABGR8888 Out of bound height * pitch combination [22:55:33] [PASSED] ABGR8888 Large buffer offset [22:55:33] [PASSED] ABGR8888 Buffer offset for inexistent plane [22:55:33] [PASSED] ABGR8888 Invalid flag [22:55:33] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers [22:55:33] [PASSED] ABGR8888 Valid buffer modifier [22:55:33] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE) [22:55:33] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS [22:55:33] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS [22:55:33] [PASSED] NV12 Normal sizes [22:55:33] [PASSED] NV12 Max sizes [22:55:33] [PASSED] NV12 Invalid pitch [22:55:33] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag [22:55:33] [PASSED] NV12 different modifier per-plane [22:55:33] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE [22:55:33] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS [22:55:33] [PASSED] NV12 Modifier for inexistent plane [22:55:33] [PASSED] NV12 Handle for inexistent plane [22:55:33] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS [22:55:33] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier [22:55:33] [PASSED] YVU420 Normal sizes [22:55:33] [PASSED] YVU420 Max sizes [22:55:33] [PASSED] YVU420 Invalid pitch [22:55:33] [PASSED] YVU420 Different pitches [22:55:33] [PASSED] YVU420 Different buffer offsets/pitches [22:55:33] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS [22:55:33] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS [22:55:33] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS [22:55:33] [PASSED] YVU420 Valid modifier [22:55:33] [PASSED] YVU420 Different modifiers per plane [22:55:33] [PASSED] YVU420 Modifier for inexistent plane [22:55:33] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR) [22:55:33] [PASSED] X0L2 Normal sizes [22:55:33] [PASSED] X0L2 Max sizes [22:55:33] [PASSED] X0L2 Invalid pitch [22:55:33] [PASSED] X0L2 Pitch greater than minimum required [22:55:33] [PASSED] X0L2 Handle for inexistent plane [22:55:33] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set [22:55:33] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set [22:55:33] [PASSED] X0L2 Valid modifier [22:55:33] [PASSED] X0L2 Modifier for inexistent plane [22:55:33] =========== [PASSED] drm_test_framebuffer_create =========== [22:55:33] [PASSED] drm_test_framebuffer_free [22:55:33] [PASSED] drm_test_framebuffer_init [22:55:33] [PASSED] drm_test_framebuffer_init_bad_format [22:55:33] [PASSED] drm_test_framebuffer_init_dev_mismatch [22:55:33] [PASSED] drm_test_framebuffer_lookup [22:55:33] [PASSED] drm_test_framebuffer_lookup_inexistent [22:55:33] [PASSED] drm_test_framebuffer_modifiers_not_supported [22:55:33] ================= [PASSED] drm_framebuffer ================= [22:55:33] ================ drm_gem_shmem (8 subtests) ================ [22:55:33] [PASSED] drm_gem_shmem_test_obj_create [22:55:33] [PASSED] drm_gem_shmem_test_obj_create_private [22:55:33] [PASSED] drm_gem_shmem_test_pin_pages [22:55:33] [PASSED] drm_gem_shmem_test_vmap [22:55:33] [PASSED] drm_gem_shmem_test_get_sg_table [22:55:33] [PASSED] drm_gem_shmem_test_get_pages_sgt [22:55:33] [PASSED] drm_gem_shmem_test_madvise [22:55:33] [PASSED] drm_gem_shmem_test_purge [22:55:33] ================== [PASSED] drm_gem_shmem ================== [22:55:33] === drm_atomic_helper_connector_hdmi_check (29 subtests) === [22:55:33] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode [22:55:33] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1 [22:55:33] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode [22:55:33] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1 [22:55:33] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode [22:55:33] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1 [22:55:33] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 ======= [22:55:33] [PASSED] Automatic [22:55:33] [PASSED] Full [22:55:33] [PASSED] Limited 16:235 [22:55:33] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 === [22:55:33] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed [22:55:33] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed [22:55:33] [PASSED] drm_test_check_disable_connector [22:55:33] [PASSED] drm_test_check_hdmi_funcs_reject_rate [22:55:33] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb [22:55:33] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420 [22:55:33] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422 [22:55:33] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420 [22:55:33] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420 [22:55:33] [PASSED] drm_test_check_output_bpc_crtc_mode_changed [22:55:33] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed [22:55:33] [PASSED] drm_test_check_output_bpc_dvi [22:55:33] [PASSED] drm_test_check_output_bpc_format_vic_1 [22:55:33] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only [22:55:33] [PASSED] drm_test_check_output_bpc_format_display_rgb_only [22:55:33] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only [22:55:33] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only [22:55:33] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc [22:55:33] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc [22:55:33] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc [22:55:33] ============ drm_test_check_hdmi_color_format ============= [22:55:33] [PASSED] AUTO -> RGB [22:55:33] [PASSED] YCBCR422 -> YUV422 [22:55:33] [PASSED] YCBCR420 -> YUV420 [22:55:33] [PASSED] YCBCR444 -> YUV444 [22:55:33] [PASSED] RGB -> RGB [22:55:33] ======== [PASSED] drm_test_check_hdmi_color_format ========= [22:55:33] ======== drm_test_check_hdmi_color_format_420_only ======== [22:55:33] [PASSED] RGB should fail [22:55:33] [PASSED] YUV444 should fail [22:55:33] [PASSED] YUV422 should fail [22:55:33] [PASSED] YUV420 should work [22:55:33] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ==== [22:55:33] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ====== [22:55:33] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ==== [22:55:33] [PASSED] drm_test_check_broadcast_rgb_value [22:55:33] [PASSED] drm_test_check_bpc_8_value [22:55:33] [PASSED] drm_test_check_bpc_10_value [22:55:33] [PASSED] drm_test_check_bpc_12_value [22:55:33] [PASSED] drm_test_check_format_value [22:55:33] [PASSED] drm_test_check_tmds_char_value [22:55:33] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ====== [22:55:33] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) = [22:55:33] [PASSED] drm_test_check_mode_valid [22:55:33] [PASSED] drm_test_check_mode_valid_reject [22:55:33] [PASSED] drm_test_check_mode_valid_reject_rate [22:55:33] [PASSED] drm_test_check_mode_valid_reject_max_clock [22:55:33] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock [22:55:33] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector [22:55:33] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb [22:55:33] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid === [22:55:33] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) = [22:55:33] [PASSED] drm_test_check_infoframes [22:55:33] [PASSED] drm_test_check_reject_avi_infoframe [22:55:33] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8 [22:55:33] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10 [22:55:33] [PASSED] drm_test_check_reject_audio_infoframe [22:55:33] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes === [22:55:33] ================= drm_managed (2 subtests) ================= [22:55:33] [PASSED] drm_test_managed_release_action [22:55:33] [PASSED] drm_test_managed_run_action [22:55:33] =================== [PASSED] drm_managed =================== [22:55:33] =================== drm_mm (6 subtests) ==================== [22:55:33] [PASSED] drm_test_mm_init [22:55:33] [PASSED] drm_test_mm_debug [22:55:33] [PASSED] drm_test_mm_align32 [22:55:33] [PASSED] drm_test_mm_align64 [22:55:33] [PASSED] drm_test_mm_lowest [22:55:33] [PASSED] drm_test_mm_highest [22:55:33] ===================== [PASSED] drm_mm ====================== [22:55:33] ============= drm_modes_analog_tv (5 subtests) ============= [22:55:33] [PASSED] drm_test_modes_analog_tv_mono_576i [22:55:33] [PASSED] drm_test_modes_analog_tv_ntsc_480i [22:55:33] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined [22:55:33] [PASSED] drm_test_modes_analog_tv_pal_576i [22:55:33] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined [22:55:33] =============== [PASSED] drm_modes_analog_tv =============== [22:55:33] ============== drm_plane_helper (2 subtests) =============== [22:55:33] =============== drm_test_check_plane_state ================ [22:55:33] [PASSED] clipping_simple [22:55:33] [PASSED] clipping_rotate_reflect [22:55:33] [PASSED] positioning_simple [22:55:33] [PASSED] upscaling [22:55:33] [PASSED] downscaling [22:55:33] [PASSED] rounding1 [22:55:33] [PASSED] rounding2 [22:55:33] [PASSED] rounding3 [22:55:33] [PASSED] rounding4 [22:55:33] =========== [PASSED] drm_test_check_plane_state ============ [22:55:33] =========== drm_test_check_invalid_plane_state ============ [22:55:33] [PASSED] positioning_invalid [22:55:33] [PASSED] upscaling_invalid [22:55:33] [PASSED] downscaling_invalid [22:55:33] ======= [PASSED] drm_test_check_invalid_plane_state ======== [22:55:33] ================ [PASSED] drm_plane_helper ================= [22:55:33] ====== drm_connector_helper_tv_get_modes (1 subtest) ======= [22:55:33] ====== drm_test_connector_helper_tv_get_modes_check ======= [22:55:33] [PASSED] None [22:55:33] [PASSED] PAL [22:55:33] [PASSED] NTSC [22:55:33] [PASSED] Both, NTSC Default [22:55:33] [PASSED] Both, PAL Default [22:55:33] [PASSED] Both, NTSC Default, with PAL on command-line [22:55:33] [PASSED] Both, PAL Default, with NTSC on command-line [22:55:33] == [PASSED] drm_test_connector_helper_tv_get_modes_check === [22:55:33] ======== [PASSED] drm_connector_helper_tv_get_modes ======== [22:55:33] ================== drm_rect (9 subtests) =================== [22:55:33] [PASSED] drm_test_rect_clip_scaled_div_by_zero [22:55:33] [PASSED] drm_test_rect_clip_scaled_not_clipped [22:55:33] [PASSED] drm_test_rect_clip_scaled_clipped [22:55:33] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned [22:55:33] ================= drm_test_rect_intersect ================= [22:55:33] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0 [22:55:33] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1 [22:55:33] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0 [22:55:33] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1 [22:55:33] [PASSED] right x left: 2x1+0+0 x 3x1+1+0 [22:55:33] [PASSED] left x right: 3x1+1+0 x 2x1+0+0 [22:55:33] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1 [22:55:33] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0 [22:55:33] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1 [22:55:33] [PASSED] touching side: 1x1+0+0 x 1x1+1+0 [22:55:33] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0 [22:55:33] [PASSED] inside another: 2x2+0+0 x 1x1+1+1 [22:55:33] [PASSED] far away: 1x1+0+0 x 1x1+3+6 [22:55:33] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10 [22:55:33] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10 [22:55:33] ============= [PASSED] drm_test_rect_intersect ============= [22:55:33] ================ drm_test_rect_calc_hscale ================ [22:55:33] [PASSED] normal use [22:55:33] [PASSED] out of max range [22:55:33] [PASSED] out of min range [22:55:33] [PASSED] zero dst [22:55:33] [PASSED] negative src [22:55:33] [PASSED] negative dst [22:55:33] ============ [PASSED] drm_test_rect_calc_hscale ============ [22:55:33] ================ drm_test_rect_calc_vscale ================ [22:55:33] [PASSED] normal use [22:55:33] [PASSED] out of max range [22:55:33] [PASSED] out of min range [22:55:33] [PASSED] zero dst [22:55:33] [PASSED] negative src [22:55:33] [PASSED] negative dst [22:55:33] ============ [PASSED] drm_test_rect_calc_vscale ============ [22:55:33] ================== drm_test_rect_rotate =================== [22:55:33] [PASSED] reflect-x [22:55:33] [PASSED] reflect-y [22:55:33] [PASSED] rotate-0 [22:55:33] [PASSED] rotate-90 [22:55:33] [PASSED] rotate-180 [22:55:33] [PASSED] rotate-270 [22:55:33] ============== [PASSED] drm_test_rect_rotate =============== [22:55:33] ================ drm_test_rect_rotate_inv ================= [22:55:33] [PASSED] reflect-x [22:55:33] [PASSED] reflect-y [22:55:33] [PASSED] rotate-0 [22:55:33] [PASSED] rotate-90 [22:55:33] [PASSED] rotate-180 [22:55:33] [PASSED] rotate-270 [22:55:33] ============ [PASSED] drm_test_rect_rotate_inv ============= [22:55:33] ==================== [PASSED] drm_rect ===================== [22:55:33] ============ drm_sysfb_modeset_test (1 subtest) ============ [22:55:33] ============ drm_test_sysfb_build_fourcc_list ============= [22:55:33] [PASSED] no native formats [22:55:33] [PASSED] XRGB8888 as native format [22:55:33] [PASSED] remove duplicates [22:55:33] [PASSED] convert alpha formats [22:55:33] [PASSED] random formats [22:55:33] ======== [PASSED] drm_test_sysfb_build_fourcc_list ========= [22:55:33] ============= [PASSED] drm_sysfb_modeset_test ============== [22:55:33] ================== drm_fixp (2 subtests) =================== [22:55:33] [PASSED] drm_test_int2fixp [22:55:33] [PASSED] drm_test_sm2fixp [22:55:33] ==================== [PASSED] drm_fixp ===================== [22:55:33] ============================================================ [22:55:33] Testing complete. Ran 637 tests: passed: 637 [22:55:33] Elapsed time: 27.369s total, 1.885s configuring, 25.318s building, 0.150s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [22:55:33] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [22:55:35] 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 [22:55:45] Starting KUnit Kernel (1/1)... [22:55:45] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [22:55:45] ================= ttm_device (5 subtests) ================== [22:55:45] [PASSED] ttm_device_init_basic [22:55:45] [PASSED] ttm_device_init_multiple [22:55:45] [PASSED] ttm_device_fini_basic [22:55:45] [PASSED] ttm_device_init_no_vma_man [22:55:45] ================== ttm_device_init_pools ================== [22:55:45] [PASSED] No DMA allocations, no DMA32 required [22:55:45] [PASSED] DMA allocations, DMA32 required [22:55:45] [PASSED] No DMA allocations, DMA32 required [22:55:45] [PASSED] DMA allocations, no DMA32 required [22:55:45] ============== [PASSED] ttm_device_init_pools ============== [22:55:45] =================== [PASSED] ttm_device ==================== [22:55:45] ================== ttm_pool (8 subtests) =================== [22:55:45] ================== ttm_pool_alloc_basic =================== [22:55:45] [PASSED] One page [22:55:45] [PASSED] More than one page [22:55:45] [PASSED] Above the allocation limit [22:55:45] [PASSED] One page, with coherent DMA mappings enabled [22:55:45] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [22:55:45] ============== [PASSED] ttm_pool_alloc_basic =============== [22:55:45] ============== ttm_pool_alloc_basic_dma_addr ============== [22:55:45] [PASSED] One page [22:55:45] [PASSED] More than one page [22:55:45] [PASSED] Above the allocation limit [22:55:45] [PASSED] One page, with coherent DMA mappings enabled [22:55:45] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [22:55:45] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ========== [22:55:45] [PASSED] ttm_pool_alloc_order_caching_match [22:55:45] [PASSED] ttm_pool_alloc_caching_mismatch [22:55:45] [PASSED] ttm_pool_alloc_order_mismatch [22:55:45] [PASSED] ttm_pool_free_dma_alloc [22:55:45] [PASSED] ttm_pool_free_no_dma_alloc [22:55:45] [PASSED] ttm_pool_fini_basic [22:55:45] ==================== [PASSED] ttm_pool ===================== [22:55:45] ================ ttm_resource (8 subtests) ================= [22:55:45] ================= ttm_resource_init_basic ================= [22:55:45] [PASSED] Init resource in TTM_PL_SYSTEM [22:55:45] [PASSED] Init resource in TTM_PL_VRAM [22:55:45] [PASSED] Init resource in a private placement [22:55:45] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags [22:55:45] ============= [PASSED] ttm_resource_init_basic ============= [22:55:45] [PASSED] ttm_resource_init_pinned [22:55:45] [PASSED] ttm_resource_fini_basic [22:55:45] [PASSED] ttm_resource_manager_init_basic [22:55:45] [PASSED] ttm_resource_manager_usage_basic [22:55:45] [PASSED] ttm_resource_manager_set_used_basic [22:55:45] [PASSED] ttm_sys_man_alloc_basic [22:55:45] [PASSED] ttm_sys_man_free_basic [22:55:45] ================== [PASSED] ttm_resource =================== [22:55:45] =================== ttm_tt (15 subtests) =================== [22:55:45] ==================== ttm_tt_init_basic ==================== [22:55:45] [PASSED] Page-aligned size [22:55:45] [PASSED] Extra pages requested [22:55:45] ================ [PASSED] ttm_tt_init_basic ================ [22:55:45] [PASSED] ttm_tt_init_misaligned [22:55:45] [PASSED] ttm_tt_fini_basic [22:55:45] [PASSED] ttm_tt_fini_sg [22:55:45] [PASSED] ttm_tt_fini_shmem [22:55:45] [PASSED] ttm_tt_create_basic [22:55:45] [PASSED] ttm_tt_create_invalid_bo_type [22:55:45] [PASSED] ttm_tt_create_ttm_exists [22:55:45] [PASSED] ttm_tt_create_failed [22:55:45] [PASSED] ttm_tt_destroy_basic [22:55:45] [PASSED] ttm_tt_populate_null_ttm [22:55:45] [PASSED] ttm_tt_populate_populated_ttm [22:55:45] [PASSED] ttm_tt_unpopulate_basic [22:55:45] [PASSED] ttm_tt_unpopulate_empty_ttm [22:55:45] [PASSED] ttm_tt_swapin_basic [22:55:45] ===================== [PASSED] ttm_tt ====================== [22:55:45] =================== ttm_bo (14 subtests) =================== [22:55:45] =========== ttm_bo_reserve_optimistic_no_ticket =========== [22:55:45] [PASSED] Cannot be interrupted and sleeps [22:55:45] [PASSED] Cannot be interrupted, locks straight away [22:55:45] [PASSED] Can be interrupted, sleeps [22:55:45] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket ======= [22:55:45] [PASSED] ttm_bo_reserve_locked_no_sleep [22:55:45] [PASSED] ttm_bo_reserve_no_wait_ticket [22:55:45] [PASSED] ttm_bo_reserve_double_resv [22:55:45] [PASSED] ttm_bo_reserve_interrupted [22:55:45] [PASSED] ttm_bo_reserve_deadlock [22:55:45] [PASSED] ttm_bo_unreserve_basic [22:55:45] [PASSED] ttm_bo_unreserve_pinned [22:55:45] [PASSED] ttm_bo_unreserve_bulk [22:55:45] [PASSED] ttm_bo_fini_basic [22:55:45] [PASSED] ttm_bo_fini_shared_resv [22:55:45] [PASSED] ttm_bo_pin_basic [22:55:45] [PASSED] ttm_bo_pin_unpin_resource [22:55:45] [PASSED] ttm_bo_multiple_pin_one_unpin [22:55:45] ===================== [PASSED] ttm_bo ====================== [22:55:45] ============== ttm_bo_validate (22 subtests) =============== [22:55:45] ============== ttm_bo_init_reserved_sys_man =============== [22:55:45] [PASSED] Buffer object for userspace [22:55:45] [PASSED] Kernel buffer object [22:55:45] [PASSED] Shared buffer object [22:55:45] ========== [PASSED] ttm_bo_init_reserved_sys_man =========== [22:55:45] ============== ttm_bo_init_reserved_mock_man ============== [22:55:45] [PASSED] Buffer object for userspace [22:55:45] [PASSED] Kernel buffer object [22:55:45] [PASSED] Shared buffer object [22:55:45] ========== [PASSED] ttm_bo_init_reserved_mock_man ========== [22:55:45] [PASSED] ttm_bo_init_reserved_resv [22:55:45] ================== ttm_bo_validate_basic ================== [22:55:45] [PASSED] Buffer object for userspace [22:55:45] [PASSED] Kernel buffer object [22:55:45] [PASSED] Shared buffer object [22:55:45] ============== [PASSED] ttm_bo_validate_basic ============== [22:55:45] [PASSED] ttm_bo_validate_invalid_placement [22:55:45] ============= ttm_bo_validate_same_placement ============== [22:55:45] [PASSED] System manager [22:55:45] [PASSED] VRAM manager [22:55:45] ========= [PASSED] ttm_bo_validate_same_placement ========== [22:55:45] [PASSED] ttm_bo_validate_failed_alloc [22:55:45] [PASSED] ttm_bo_validate_pinned [22:55:45] [PASSED] ttm_bo_validate_busy_placement [22:55:45] ================ ttm_bo_validate_multihop ================= [22:55:45] [PASSED] Buffer object for userspace [22:55:45] [PASSED] Kernel buffer object [22:55:45] [PASSED] Shared buffer object [22:55:45] ============ [PASSED] ttm_bo_validate_multihop ============= [22:55:45] ========== ttm_bo_validate_no_placement_signaled ========== [22:55:45] [PASSED] Buffer object in system domain, no page vector [22:55:45] [PASSED] Buffer object in system domain with an existing page vector [22:55:45] ====== [PASSED] ttm_bo_validate_no_placement_signaled ====== [22:55:45] ======== ttm_bo_validate_no_placement_not_signaled ======== [22:55:45] [PASSED] Buffer object for userspace [22:55:45] [PASSED] Kernel buffer object [22:55:45] [PASSED] Shared buffer object [22:55:45] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ==== [22:55:45] [PASSED] ttm_bo_validate_move_fence_signaled [22:55:45] ========= ttm_bo_validate_move_fence_not_signaled ========= [22:55:45] [PASSED] Waits for GPU [22:55:45] [PASSED] Tries to lock straight away [22:55:45] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled ===== [22:55:45] [PASSED] ttm_bo_validate_swapout [22:55:45] [PASSED] ttm_bo_validate_happy_evict [22:55:45] [PASSED] ttm_bo_validate_all_pinned_evict [22:55:45] [PASSED] ttm_bo_validate_allowed_only_evict [22:55:45] [PASSED] ttm_bo_validate_deleted_evict [22:55:45] [PASSED] ttm_bo_validate_busy_domain_evict [22:55:45] [PASSED] ttm_bo_validate_evict_gutting [22:55:45] [PASSED] ttm_bo_validate_recrusive_evict [22:55:45] ================= [PASSED] ttm_bo_validate ================= [22:55:45] ============================================================ [22:55:45] Testing complete. Ran 102 tests: passed: 102 [22:55:45] Elapsed time: 12.211s total, 1.827s configuring, 10.169s building, 0.185s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/dma-buf/.kunitconfig [22:55:45] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [22:55:47] 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 [22:55:56] Starting KUnit Kernel (1/1)... [22:55:56] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [22:55:56] =============== dma-buf-fence (12 subtests) ================ [22:55:56] [PASSED] test_sanitycheck [22:55:56] [PASSED] test_signaling [22:55:56] [PASSED] test_add_callback [22:55:56] [PASSED] test_late_add_callback [22:55:56] [PASSED] test_rm_callback [22:55:56] [PASSED] test_late_rm_callback [22:55:56] [PASSED] test_status [22:55:56] [PASSED] test_error [22:55:56] [PASSED] test_wait [22:55:56] [PASSED] test_wait_timeout [22:55:56] [PASSED] test_stub [22:55:56] [SKIPPED] test_race_signal_callback (requires at least 2 CPUs) [22:55:56] ================== [PASSED] dma-buf-fence ================== [22:55:56] ============ dma-buf-fence-chain (11 subtests) ============= [22:55:56] [PASSED] test_sanitycheck [22:55:56] [PASSED] test_find_seqno [22:55:56] [PASSED] test_find_signaled [22:55:56] [PASSED] test_find_out_of_order [22:56:01] [PASSED] test_find_gap [22:56:01] [PASSED] test_find_race [22:56:01] [PASSED] test_signal_forward [22:56:01] [PASSED] test_signal_backward [22:56:01] [PASSED] test_wait_forward [22:56:01] [PASSED] test_wait_backward [22:56:01] [PASSED] test_wait_random [22:56:01] =============== [PASSED] dma-buf-fence-chain =============== [22:56:01] ============ dma-buf-fence-unwrap (10 subtests) ============ [22:56:01] [PASSED] test_sanitycheck [22:56:01] [PASSED] test_unwrap_array [22:56:01] [PASSED] test_unwrap_chain [22:56:01] [PASSED] test_unwrap_chain_array [22:56:01] [PASSED] test_unwrap_merge [22:56:01] [PASSED] test_unwrap_merge_duplicate [22:56:01] [PASSED] test_unwrap_merge_seqno [22:56:01] [PASSED] test_unwrap_merge_order [22:56:01] [PASSED] test_unwrap_merge_complex [22:56:01] [PASSED] test_unwrap_merge_complex_seqno [22:56:01] ============== [PASSED] dma-buf-fence-unwrap =============== [22:56:01] ================ dma-buf-resv (5 subtests) ================= [22:56:01] [PASSED] test_sanitycheck [22:56:01] ===================== test_signaling ====================== [22:56:01] [PASSED] kernel [22:56:01] [PASSED] write [22:56:01] [PASSED] read [22:56:01] [PASSED] bookkeep [22:56:01] ================= [PASSED] test_signaling ================== [22:56:01] ====================== test_for_each ====================== [22:56:01] [PASSED] kernel [22:56:01] [PASSED] write [22:56:01] [PASSED] read [22:56:01] [PASSED] bookkeep [22:56:01] ================== [PASSED] test_for_each ================== [22:56:01] ================= test_for_each_unlocked ================== [22:56:01] [PASSED] kernel [22:56:01] [PASSED] write [22:56:01] [PASSED] read [22:56:01] [PASSED] bookkeep [22:56:01] ============= [PASSED] test_for_each_unlocked ============== [22:56:01] ===================== test_get_fences ===================== [22:56:01] [PASSED] kernel [22:56:01] [PASSED] write [22:56:01] [PASSED] read [22:56:01] [PASSED] bookkeep [22:56:01] ================= [PASSED] test_get_fences ================= [22:56:01] ================== [PASSED] dma-buf-resv =================== [22:56:01] ============================================================ [22:56:01] Testing complete. Ran 50 tests: passed: 49, skipped: 1 [22:56:01] Elapsed time: 15.781s total, 1.779s configuring, 8.680s building, 5.281s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
Patchwork
CI✗ Xe.CI.BAT: failure for drm/xe/bo: Take a runtime PM ref when shrinking a bo needing invalidation
In reply to Shuicheng Lin== Series Details ==
== Series Details ==
Series: drm/xe/bo: Take a runtime PM ref when shrinking a bo needing invalidation
URL : https://patchwork.freedesktop.org/series/172760/
State : failure
== Summary ==
CI Bug Log - changes from xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad_BAT -> xe-pw-172760v1_BAT
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with xe-pw-172760v1_BAT absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in xe-pw-172760v1_BAT, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
Participating hosts (13 -> 13)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in xe-pw-172760v1_BAT:
### IGT changes ###
#### Possible regressions ####
* igt@xe_waitfence@abstime:
- bat-atsm-2: [PASS][1] -> [TIMEOUT][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad/bat-atsm-2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/bat-atsm-2/igt@[email protected]
Build changes
-------------
* IGT: IGT_9071 -> IGT_9074
* Linux: xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad -> xe-pw-172760v1
IGT_9071: 9071
IGT_9074: 9074
xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad: 15e2ba2fb6d25c03d89519aec46f8d5be3e118ad
xe-pw-172760v1: 172760v1
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/index.html
Patchwork
CI✓ Xe.CI.FULL: success for drm/xe/bo: Take a runtime PM ref when shrinking a bo needing invalidation
In reply to Shuicheng Lin== Series Details ==
== Series Details ==
Series: drm/xe/bo: Take a runtime PM ref when shrinking a bo needing invalidation
URL : https://patchwork.freedesktop.org/series/172760/
State : success
== Summary ==
CI Bug Log - changes from xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad_FULL -> xe-pw-172760v1_FULL
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (2 -> 2)
------------------------------
No changes in participating hosts
Known issues
------------
Here are the changes found in xe-pw-172760v1_FULL that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- shard-bmg: NOTRUN -> [SKIP][1] ([Intel XE#2233])
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-8/igt@[email protected]
* igt@kms_big_fb@4-tiled-32bpp-rotate-90:
- shard-bmg: NOTRUN -> [SKIP][2] ([Intel XE#2327]) +2 other tests skip
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-3/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-async-flip:
- shard-bmg: NOTRUN -> [SKIP][3] ([Intel XE#1124]) +4 other tests skip
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-4/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-async-flip.html
* igt@kms_big_fb@yf-tiled-addfb-size-overflow:
- shard-bmg: NOTRUN -> [SKIP][4] ([Intel XE#610] / [Intel XE#7387])
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-4/igt@[email protected]
* igt@kms_bw@linear-tiling-2-displays-target-3840x2160p:
- shard-bmg: NOTRUN -> [SKIP][5] ([Intel XE#367]) +2 other tests skip
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-2/igt@[email protected]
* igt@kms_ccs@bad-aux-stride-yf-tiled-ccs:
- shard-bmg: NOTRUN -> [SKIP][6] ([Intel XE#2887]) +10 other tests skip
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-8/igt@[email protected]
* igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs@pipe-c-dp-2:
- shard-bmg: [PASS][7] -> [INCOMPLETE][8] ([Intel XE#7084] / [Intel XE#8150])
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad/shard-bmg-9/igt@kms_ccs@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-6/igt@kms_ccs@[email protected]
* igt@kms_ccs@crc-primary-suspend-4-tiled-lnl-ccs@pipe-d-hdmi-a-3:
- shard-bmg: NOTRUN -> [SKIP][9] ([Intel XE#2652]) +17 other tests skip
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-1/igt@kms_ccs@[email protected]
* igt@kms_cdclk@plane-scaling:
- shard-bmg: NOTRUN -> [SKIP][10] ([Intel XE#2724] / [Intel XE#7449])
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-6/igt@[email protected]
* igt@kms_chamelium_color@ctm-0-75:
- shard-bmg: NOTRUN -> [SKIP][11] ([Intel XE#2325] / [Intel XE#7358])
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-1/igt@[email protected]
* igt@kms_chamelium_hpd@hdmi-hpd-storm-disable:
- shard-bmg: NOTRUN -> [SKIP][12] ([Intel XE#2252]) +3 other tests skip
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-3/igt@[email protected]
* igt@kms_content_protection@lic-type-0@pipe-a-dp-2:
- shard-bmg: NOTRUN -> [FAIL][13] ([Intel XE#1178] / [Intel XE#3304] / [Intel XE#7374]) +1 other test fail
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-9/igt@kms_content_protection@[email protected]
* igt@kms_cursor_crc@cursor-offscreen-512x170:
- shard-bmg: NOTRUN -> [SKIP][14] ([Intel XE#2321] / [Intel XE#7355])
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-7/igt@[email protected]
* igt@kms_cursor_crc@cursor-offscreen-max-size:
- shard-bmg: NOTRUN -> [SKIP][15] ([Intel XE#2320]) +4 other tests skip
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-10/igt@[email protected]
* igt@kms_dsc@dsc-with-bpc:
- shard-bmg: NOTRUN -> [SKIP][16] ([Intel XE#8265]) +1 other test skip
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-3/igt@[email protected]
* igt@kms_fbcon_fbt@fbc:
- shard-bmg: NOTRUN -> [SKIP][17] ([Intel XE#4156] / [Intel XE#7425])
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-10/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@a-edp1:
- shard-lnl: [PASS][18] -> [FAIL][19] ([Intel XE#301])
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad/shard-lnl-3/igt@kms_flip@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-lnl-3/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling:
- shard-bmg: NOTRUN -> [SKIP][20] ([Intel XE#7178] / [Intel XE#7351])
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-3/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling.html
* igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-32bpp-4tiledg2rcccs-downscaling:
- shard-bmg: NOTRUN -> [SKIP][21] ([Intel XE#7178] / [Intel XE#7349]) +1 other test skip
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-8/igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-32bpp-4tiledg2rcccs-downscaling.html
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-indfb-pgflip-blt:
- shard-bmg: NOTRUN -> [SKIP][22] ([Intel XE#4141]) +12 other tests skip
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-7/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-argb161616f-draw-render:
- shard-bmg: NOTRUN -> [SKIP][23] ([Intel XE#7061] / [Intel XE#7356]) +2 other tests skip
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcdrrs-2p-primscrn-shrfb-plflip-blt:
- shard-bmg: NOTRUN -> [SKIP][24] ([Intel XE#2311]) +33 other tests skip
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-4/igt@kms_frontbuffer_tracking@fbcdrrs-2p-primscrn-shrfb-plflip-blt.html
* igt@kms_frontbuffer_tracking@fbcpsrhdr-2p-primscrn-indfb-pgflip-blt:
- shard-bmg: NOTRUN -> [SKIP][25] ([Intel XE#2313]) +33 other tests skip
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-8/igt@kms_frontbuffer_tracking@fbcpsrhdr-2p-primscrn-indfb-pgflip-blt.html
* igt@kms_frontbuffer_tracking@psrhdr-argb161616f-draw-render:
- shard-bmg: NOTRUN -> [SKIP][26] ([Intel XE#7061]) +1 other test skip
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-8/igt@[email protected]
* igt@kms_joiner@basic-big-joiner:
- shard-bmg: NOTRUN -> [SKIP][27] ([Intel XE#6901])
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-6/igt@[email protected]
* igt@kms_joiner@basic-ultra-joiner:
- shard-bmg: NOTRUN -> [SKIP][28] ([Intel XE#6911] / [Intel XE#7378])
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-4/igt@[email protected]
* igt@kms_plane@pixel-format-4-tiled-modifier@pipe-b-plane-5:
- shard-bmg: NOTRUN -> [SKIP][29] ([Intel XE#8303]) +1 other test skip
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-5/igt@kms_plane@[email protected]
* igt@kms_plane@pixel-format-y-tiled-modifier:
- shard-bmg: NOTRUN -> [SKIP][30] ([Intel XE#7283]) +1 other test skip
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-9/igt@[email protected]
* igt@kms_plane_lowres@tiling-yf:
- shard-bmg: NOTRUN -> [SKIP][31] ([Intel XE#2393])
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-4/igt@[email protected]
* igt@kms_plane_multiple@tiling-y:
- shard-bmg: NOTRUN -> [SKIP][32] ([Intel XE#5020] / [Intel XE#7348])
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-7/igt@[email protected]
* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75@pipe-b:
- shard-bmg: NOTRUN -> [SKIP][33] ([Intel XE#2763] / [Intel XE#6886]) +4 other tests skip
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-9/igt@kms_plane_scaling@[email protected]
* igt@kms_pm_dc@dc3co-after-dc6:
- shard-bmg: NOTRUN -> [SKIP][34] ([Intel XE#8395] / [Intel XE#8396]) +3 other tests skip
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-4/igt@[email protected]
* igt@kms_pm_dc@dc3co-after-dc6@psr2-xrgb8888:
- shard-bmg: NOTRUN -> [SKIP][35] ([Intel XE#8396]) +3 other tests skip
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-4/igt@kms_pm_dc@[email protected]
* igt@kms_pm_dc@dc5-dpms:
- shard-lnl: [PASS][36] -> [FAIL][37] ([Intel XE#8399])
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad/shard-lnl-5/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-lnl-6/igt@[email protected]
* igt@kms_pm_dc@dc5-pageflip-negative:
- shard-bmg: NOTRUN -> [SKIP][38] ([Intel XE#6927])
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-10/igt@[email protected]
* igt@kms_pm_rpm@package-g7:
- shard-bmg: NOTRUN -> [SKIP][39] ([Intel XE#6814] / [Intel XE#7428])
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-4/igt@[email protected]
* igt@kms_psr2_sf@fbc-pr-cursor-plane-move-continuous-sf:
- shard-bmg: NOTRUN -> [SKIP][40] ([Intel XE#1489]) +6 other tests skip
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-9/igt@[email protected]
* igt@kms_psr@pr-sprite-plane-onoff:
- shard-bmg: NOTRUN -> [SKIP][41] ([Intel XE#2234] / [Intel XE#2850]) +8 other tests skip
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-10/igt@[email protected]
* igt@kms_psr_stress_test@invalidate-primary-flip-overlay:
- shard-bmg: NOTRUN -> [SKIP][42] ([Intel XE#7795])
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-2/igt@[email protected]
* igt@kms_sharpness_filter@invalid-filter-with-plane:
- shard-bmg: NOTRUN -> [SKIP][43] ([Intel XE#6503]) +1 other test skip
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-10/igt@[email protected]
* igt@kms_vrr@seamless-rr-switch-virtual:
- shard-bmg: NOTRUN -> [SKIP][44] ([Intel XE#1499])
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-3/igt@[email protected]
* igt@xe_evict@evict-beng-mixed-many-threads-small:
- shard-bmg: NOTRUN -> [INCOMPLETE][45] ([Intel XE#6321] / [Intel XE#8355])
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-2/igt@[email protected]
* igt@xe_evict@evict-small-multi-queue-cm:
- shard-bmg: NOTRUN -> [SKIP][46] ([Intel XE#8370])
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-2/igt@[email protected]
* igt@xe_exec_basic@multigpu-many-execqueues-many-vm-null-defer-mmap:
- shard-bmg: NOTRUN -> [SKIP][47] ([Intel XE#2322] / [Intel XE#7372]) +3 other tests skip
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-7/igt@xe_exec_basic@multigpu-many-execqueues-many-vm-null-defer-mmap.html
* igt@xe_exec_fault_mode@twice-multi-queue:
- shard-bmg: NOTRUN -> [SKIP][48] ([Intel XE#8374]) +7 other tests skip
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-4/igt@[email protected]
* igt@xe_exec_multi_queue@many-queues-preempt-mode-priority-smem:
- shard-bmg: NOTRUN -> [SKIP][49] ([Intel XE#8364]) +15 other tests skip
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-3/igt@[email protected]
* igt@xe_exec_reset@multi-queue-cat-error:
- shard-bmg: NOTRUN -> [SKIP][50] ([Intel XE#8369])
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-3/igt@[email protected]
* igt@xe_exec_threads@threads-multi-queue-hang-fd-userptr-invalidate-race:
- shard-bmg: NOTRUN -> [SKIP][51] ([Intel XE#8378]) +3 other tests skip
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-9/igt@xe_exec_threads@threads-multi-queue-hang-fd-userptr-invalidate-race.html
* igt@xe_fault_injection@inject-fault-probe-function-xe_device_probe_early:
- shard-bmg: NOTRUN -> [ABORT][52] ([Intel XE#8007])
[52]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-9/igt@xe_fault_injection@inject-fault-probe-function-xe_device_probe_early.html
* igt@xe_fault_injection@vm-bind-fail-xe_pt_update_ops_prepare:
- shard-bmg: [PASS][53] -> [ABORT][54] ([Intel XE#8007]) +1 other test abort
[53]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad/shard-bmg-10/igt@xe_fault_injection@vm-bind-fail-xe_pt_update_ops_prepare.html
[54]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-1/igt@xe_fault_injection@vm-bind-fail-xe_pt_update_ops_prepare.html
* igt@xe_live_ktest@xe_bo@xe_ccs_migrate_kunit:
- shard-bmg: NOTRUN -> [SKIP][55] ([Intel XE#2229])
[55]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-6/igt@xe_live_ktest@xe_bo@xe_ccs_migrate_kunit.html
* igt@xe_live_ktest@xe_eudebug:
- shard-bmg: NOTRUN -> [SKIP][56] ([Intel XE#2833])
[56]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-8/igt@xe_live_ktest@xe_eudebug.html
* igt@xe_multigpu_svm@mgpu-concurrent-access-basic:
- shard-bmg: NOTRUN -> [SKIP][57] ([Intel XE#6964]) +1 other test skip
[57]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-4/igt@[email protected]
* igt@xe_page_reclaim@binds-null-vma:
- shard-bmg: NOTRUN -> [SKIP][58] ([Intel XE#7793]) +2 other tests skip
[58]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-8/igt@[email protected]
* igt@xe_pat@l2-flush-opt-svm-pat-restrict:
- shard-bmg: NOTRUN -> [SKIP][59] ([Intel XE#7590])
[59]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-10/igt@[email protected]
* igt@xe_pat@pat-index-xelp:
- shard-bmg: NOTRUN -> [SKIP][60] ([Intel XE#2245] / [Intel XE#7590])
[60]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-8/igt@[email protected]
* igt@xe_peer2peer@read:
- shard-bmg: NOTRUN -> [SKIP][61] ([Intel XE#2427] / [Intel XE#6953] / [Intel XE#7326] / [Intel XE#7353])
[61]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-4/igt@[email protected]
* igt@xe_pm@d3cold-mocs:
- shard-bmg: NOTRUN -> [SKIP][62] ([Intel XE#2284] / [Intel XE#7370]) +1 other test skip
[62]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-3/igt@[email protected]
* igt@xe_pxp@pxp-stale-bo-exec-post-rpm:
- shard-bmg: NOTRUN -> [SKIP][63] ([Intel XE#4733] / [Intel XE#7417])
[63]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-9/igt@[email protected]
* igt@xe_query@multigpu-query-invalid-extension:
- shard-bmg: NOTRUN -> [SKIP][64] ([Intel XE#944]) +3 other tests skip
[64]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-10/igt@[email protected]
* igt@xe_sriov_auto_provisioning@selfconfig-reprovision-increase-numvfs:
- shard-bmg: [PASS][65] -> [FAIL][66] ([Intel XE#7992]) +1 other test fail
[65]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad/shard-bmg-3/igt@xe_sriov_auto_provisioning@selfconfig-reprovision-increase-numvfs.html
[66]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-4/igt@xe_sriov_auto_provisioning@selfconfig-reprovision-increase-numvfs.html
#### Possible fixes ####
* igt@kms_cursor_legacy@flip-vs-cursor-legacy:
- shard-bmg: [FAIL][67] ([Intel XE#7571]) -> [PASS][68]
[67]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad/shard-bmg-5/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-4/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@a-edp1:
- shard-lnl: [FAIL][69] ([Intel XE#301]) -> [PASS][70]
[69]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad/shard-lnl-6/igt@kms_flip@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-lnl-8/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@c-edp1:
- shard-lnl: [FAIL][71] ([Intel XE#301] / [Intel XE#3149]) -> [PASS][72] +2 other tests pass
[71]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad/shard-lnl-6/igt@kms_flip@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-lnl-8/igt@kms_flip@[email protected]
* igt@kms_flip@modeset-vs-vblank-race-interruptible@c-dp2:
- shard-bmg: [FAIL][73] ([Intel XE#3098]) -> [PASS][74] +1 other test pass
[73]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad/shard-bmg-2/igt@kms_flip@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-10/igt@kms_flip@[email protected]
* igt@xe_fault_injection@probe-fail-guc-xe_guc_ct_send_recv:
- shard-bmg: [ABORT][75] ([Intel XE#8007]) -> [PASS][76]
[75]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad/shard-bmg-5/igt@xe_fault_injection@probe-fail-guc-xe_guc_ct_send_recv.html
[76]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-8/igt@xe_fault_injection@probe-fail-guc-xe_guc_ct_send_recv.html
* igt@xe_sriov_flr@flr-vfs-parallel:
- shard-bmg: [FAIL][77] ([Intel XE#6569]) -> [PASS][78] +1 other test pass
[77]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad/shard-bmg-5/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-9/igt@[email protected]
#### Warnings ####
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-lnl: [FAIL][79] ([Intel XE#301] / [Intel XE#3149]) -> [FAIL][80] ([Intel XE#301])
[79]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad/shard-lnl-3/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-lnl-3/igt@[email protected]
* igt@kms_hdr@brightness-with-hdr:
- shard-bmg: [SKIP][81] ([Intel XE#3374] / [Intel XE#3544]) -> [SKIP][82] ([Intel XE#3544])
[81]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad/shard-bmg-6/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-1/igt@[email protected]
* igt@kms_tiled_display@basic-test-pattern-with-chamelium:
- shard-bmg: [SKIP][83] ([Intel XE#2509] / [Intel XE#7437]) -> [SKIP][84] ([Intel XE#2426] / [Intel XE#5848])
[83]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad/shard-bmg-10/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/shard-bmg-8/igt@[email protected]
[Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
[Intel XE#1178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1178
[Intel XE#1489]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1489
[Intel XE#1499]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1499
[Intel XE#2229]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2229
[Intel XE#2233]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2233
[Intel XE#2234]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2234
[Intel XE#2245]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2245
[Intel XE#2252]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2252
[Intel XE#2284]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2284
[Intel XE#2311]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2311
[Intel XE#2313]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2313
[Intel XE#2320]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2320
[Intel XE#2321]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2321
[Intel XE#2322]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2322
[Intel XE#2325]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2325
[Intel XE#2327]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2327
[Intel XE#2393]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2393
[Intel XE#2426]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2426
[Intel XE#2427]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2427
[Intel XE#2509]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2509
[Intel XE#2652]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2652
[Intel XE#2724]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2724
[Intel XE#2763]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2763
[Intel XE#2833]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2833
[Intel XE#2850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2850
[Intel XE#2887]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2887
[Intel XE#301]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/301
[Intel XE#3098]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3098
[Intel XE#3149]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3149
[Intel XE#3304]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3304
[Intel XE#3374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3374
[Intel XE#3544]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3544
[Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367
[Intel XE#4141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4141
[Intel XE#4156]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4156
[Intel XE#4733]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4733
[Intel XE#5020]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5020
[Intel XE#5848]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5848
[Intel XE#610]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/610
[Intel XE#6321]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6321
[Intel XE#6503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6503
[Intel XE#6569]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6569
[Intel XE#6814]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6814
[Intel XE#6886]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6886
[Intel XE#6901]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6901
[Intel XE#6911]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6911
[Intel XE#6927]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6927
[Intel XE#6953]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6953
[Intel XE#6964]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6964
[Intel XE#7061]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7061
[Intel XE#7084]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7084
[Intel XE#7178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7178
[Intel XE#7283]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7283
[Intel XE#7326]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7326
[Intel XE#7348]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7348
[Intel XE#7349]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7349
[Intel XE#7351]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7351
[Intel XE#7353]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7353
[Intel XE#7355]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7355
[Intel XE#7356]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7356
[Intel XE#7358]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7358
[Intel XE#7370]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7370
[Intel XE#7372]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7372
[Intel XE#7374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7374
[Intel XE#7378]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7378
[Intel XE#7387]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7387
[Intel XE#7417]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7417
[Intel XE#7425]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7425
[Intel XE#7428]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7428
[Intel XE#7437]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7437
[Intel XE#7449]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7449
[Intel XE#7571]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7571
[Intel XE#7590]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7590
[Intel XE#7793]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7793
[Intel XE#7795]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7795
[Intel XE#7992]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7992
[Intel XE#8007]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8007
[Intel XE#8150]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8150
[Intel XE#8265]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8265
[Intel XE#8303]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8303
[Intel XE#8355]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8355
[Intel XE#8364]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8364
[Intel XE#8369]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8369
[Intel XE#8370]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8370
[Intel XE#8374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8374
[Intel XE#8378]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8378
[Intel XE#8395]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8395
[Intel XE#8396]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8396
[Intel XE#8399]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8399
[Intel XE#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944
Build changes
-------------
* IGT: IGT_9071 -> IGT_9074
* Linux: xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad -> xe-pw-172760v1
IGT_9071: 9071
IGT_9074: 9074
xe-5642-15e2ba2fb6d25c03d89519aec46f8d5be3e118ad: 15e2ba2fb6d25c03d89519aec46f8d5be3e118ad
xe-pw-172760v1: 172760v1
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-172760v1/index.html
Thomas Hellström
maintainerQuoted 49 lines · Shuicheng Lin
xe_bo_shrink()only took a runtime PM reference for the System CCS backup case, and only after the purgeable branch had already returned.
That branch callsxe_bo_move_notify(), which reachesxe_bo_trigger_rebind()->xe_vm_invalidate_vma()and submits a TLB invalidation over GuC CT. The non-purgeable branch reaches the same code throughttm_bo_shrink(.allow_move = true)->xe_bo_move().When the device is runtime suspended the CT is disabled and the send returns
-ENODEV, tripping theXE_WARN_ON()inxe_bo_trigger_rebind():WARNING: drivers/gpu/drm/xe/xe_bo.c:770 at xe_bo_move_notify+0x1fc/0x450 [xe], CPU#2: xe_madvise/21389 xe_bo_shrink+0x20f/0x2b0 [xe] __xe_shrinker_walk+0x174/0x410 [xe] xe_shrinker_walk+0x56/0xf0 [xe] xe_shrinker_scan+0x10c/0x1e0 [xe] do_shrink_slab+0x176/0x7e0 shrink_slab+0x137/0x990 drop_slab+0x7f/0x130 drop_caches_sysctl_handler+0x9c/0xf0The invalidation is always issued for a fault-mode vm; since commit
4e7ebff69aed("drm/xe/xe3p_lpg: flush shrinker bo cachelines manually")
it is also issued for a non-fault-mode vm on hardware with an optimized
L2 flush, which is how this surfaced.Add
bo_needs_invalidate(), mirroring that condition, and use it inxe_bo_shrink()to computeneeds_rpmahead of both branches. The reference is then held acrossxe_bo_move_notify()in either path, and is
not taken for a bo whose mappings would not have been invalidated.Shrinking can run in reclaim contexts where the device may not be resumed, so a bo is skipped when the reference cannot be acquired. Have
that skip queue the shrinker PM worker:xe_shrinker_runtime_pm_get()is
gated on the needs of its own backup pass rather than on this one, and
on DGFX it returns before queueing anything, so without this a scan where every candidate is skipped makes no progress, reports nothing scanned and returnsSHRINK_STOPwith nothing arranging a wake.Also gate the System CCS term on !xe_tt->purgeable, since
xe_bo_shrink_purge()frees the pages without a GPU copy.
Quoted 7 lines
Reproduced with igt@xe_madvise@dontneed-before-exec while the GPU is runtime suspended.
Fixes 00c8efc3180f ("drm/xe: Add a shrinker for xe bos")Assisted-by Claude:claude-opus-5Cc Thomas Hellström <[email protected]>Signed-off-by Shuicheng Lin <[email protected]>
Nice catch.
I wonder, however, can we skip the TLB flush if runtime PM is not available at TLB flush time (runtime_pm_get_if_active()?) Assuming that if runtime PM is not available, no contexts can be active and they will flush TLB implicitly when becoming active?
IIRC It's not totally clear whether this would work for "has_ctx_tlb_inval" hardware, and if so we might need to add something similar to this for that hardware.
Thanks,
Thomas
Quoted 186 lines
---
drivers/gpu/drm/xe/xe_bo.c | 62 +++++++++++++++++++++++++++--- --
drivers/gpu/drm/xe/xe_shrinker.c | 18 +++++++++-drivers/gpu/drm/xe/xe_shrinker.h| 2 ++3 files changed, 72 insertions(+), 10 deletions(-)drivers/gpu/drm/xe/xe_bo.c +0
-0@@ -734,6 +734,32 @@ static int xe_ttm_io_mem_reserve(struct ttm_device *bdev, } }
+/*
+ * Whetherxe_bo_move_notify()will invalidate the GPU mappings of @bo, and
+ * therefore needs the device resumed to reach the GuC.
+ *
+ * This mirrors the condition under whichxe_bo_trigger_rebind()below calls
+ *xe_vm_invalidate_vma(): always for a fault-mode vm, and for any bound vm on
+ * hardware where the L2 flush is optimized. Keep the two in sync.
+ *
+ * Context: Caller must hold the BO's dma-resv lock.
+ */drivers/gpu/drm/xe/xe_bo.c +16
-0+static bool bo_needs_invalidate (struct xe_bo *bo) +{ +struct drm_gpuvm_bo *vm_bo; + +if (xe_device_is_l2_flush_optimized (xe_bo_device (bo))) +return xe_bo_is_vm_bound (bo); + +xe_bo_assert_held (bo); + +drm_gem_for_each_gpuvm_bo (vm_bo, &bo->ttm.base) +if (xe_vm_in_fault_mode (gpuvm_to_vm (vm_bo->vm))) +return true; + +return false; +} +static int xe_bo_trigger_rebind(struct
xe_device*xe, structxe_bo*bo,
const structttm_operation_ctx*ctx) {drivers/gpu/drm/xe/xe_bo.c +0
-0@@ -1361,6 +1387,28 @@ long xe_bo_shrink(struct ttm_operation_ctx *ctx, struct ttm_buffer_object *bo, if (!xe_bo_is_xe_bo(bo) || !xe_bo_get_unless_zero(xe_bo)) return xe_bo_shrink_purge(ctx, bo, scanned);drivers/gpu/drm/xe/xe_bo.c +3
-0+/* +* Moving this bo out of a non-system placement makes +* xe_bo_move_notify() invalidate its GPU mappings over GuC CT, and
drivers/gpu/drm/xe/xe_bo.c +1
-0+* System CCS needs a gpu copy when moving PL_TT ->
PL_SYSTEM. Bothdrivers/gpu/drm/xe/xe_bo.c +9
-0+* need the device resumed. +*/ + needs_rpm = bo->resource->mem_type !=XE_PL_SYSTEM && + (bo_needs_invalidate (xe_bo) || + (!xe_tt->purgeable && !IS_DGFX (xe) && + xe_bo_needs_ccs_pages(xe_bo))); +if (needs_rpm && !xe_pm_runtime_get_if_active (xe)) { +/* +* Resuming is not allowed from all reclaim contexts, so leave
drivers/gpu/drm/xe/xe_bo.c +1
-0+* this bo alone and ask for the device to be woken up outside
drivers/gpu/drm/xe/xe_bo.c +1
-0+* of reclaim. xe_shrinker_runtime_pm_get() is gated on the
drivers/gpu/drm/xe/xe_bo.c +1
-0+* needs of its own backup pass rather than on ours, and on
drivers/gpu/drm/xe/xe_bo.c +1
-0+* DGFX it returns before queueing anything, so ask here.
drivers/gpu/drm/xe/xe_bo.c +5
-0+*/ +xe_shrinker_queue_pm (xe->mem.shrinker); + goto out_unref; + } +if (
xe_tt->purgeable) {
if (bo->resource->mem_type!=XE_PL_SYSTEM) lret =xe_bo_move_notify(xe_bo, ctx);drivers/gpu/drm/xe/xe_bo.c +0
-0@@ -1369,28 +1417,24 @@ long xe_bo_shrink(struct ttm_operation_ctx *ctx, struct ttm_buffer_object *bo, if (lret > 0 && xe_bo_madv_is_dontneed(xe_bo)) xe_bo_set_purgeable_state(xe_bo,
XE_MADV_PURGEABLE_PURGED);drivers/gpu/drm/xe/xe_bo.c +1
-1- goto out_unref; + goto out_put_rpm;}
drivers/gpu/drm/xe/xe_bo.c +0
-1-/* System CCS needs gpu copy when moving PL_TT -> PL_SYSTEM */
drivers/gpu/drm/xe/xe_bo.c +0
-1- needs_rpm = (!IS_DGFX(xe) && bo->resource->mem_type !=
XE_PL_SYSTEM&&drivers/gpu/drm/xe/xe_bo.c +0
-4- xe_bo_needs_ccs_pages(xe_bo)); -if (needs_rpm && !xe_pm_runtime_get_if_active (xe)) - goto out_unref; -*scanned +=
tt->num_pages;
lret = ttm_bo_shrink(ctx, bo, (structttm_bo_shrink_flags) {.purge = false, .writeback = flags.writeback, .allow_move = true});drivers/gpu/drm/xe/xe_bo.c +0
-2-if (needs_rpm) -xe_pm_runtime_put (xe);
if (lret > 0) {xe_ttm_tt_account_subtract(xe, tt); update_global_total_pages(bo->bdev, -(long)tt-Quoted 1 line
num_pages);}
drivers/gpu/drm/xe/xe_bo.c +4
-0+out_put_rpm: +if (needs_rpm) +xe_pm_runtime_put (xe); +out_unref:
xe_bo_put(xe_bo);drivers/gpu/drm/xe/xe_shrinker.c +0
-0@@ -54,6 +54,22 @@ xe_shrinker_mod_pages(struct xe_shrinker *shrinker, long shrinkable, long purgea write_unlock(&shrinker->lock); }
+/**
+ *xe_shrinker_queue_pm()- Ask for the device to be woken up for shrinking
+ * @shrinker: Pointer to the structxe_shrinker.
+ *
+ * Queue a worker that takes and drops a runtime PM reference. Shrinking can
+ * be called from reclaim context, where resuming the device is not always
+ * allowed, so a caller that needs the device resumed but could not acquire a
+ * reference uses this to have it woken up outside of reclaim. The current
+ * scan makes no progress on the affected buffer objects, but a subsequent one
+ * can.
+ */drivers/gpu/drm/xe/xe_shrinker.c +3
-0+void xe_shrinker_queue_pm (struct xe_shrinker *shrinker) +{ + queue_work(shrinker->xe->unordered_wq, &shrinker-Quoted 1 line
pm_worker);drivers/gpu/drm/xe/xe_shrinker.c +2
-0+} +static s64 __xe_shrinker_walk(struct
xe_device*xe, structttm_operation_ctx*ctx, const structxe_bo_shrink_flagsflags,drivers/gpu/drm/xe/xe_shrinker.c +1
-1@@ -185,7 +201,7 @@ static bool xe_shrinker_runtime_pm_get(struct xe_shrinker *shrinker, bool force, xe_pm_runtime_get(xe); return true; } -queue_work (xe->unordered_wq, &shrinker->pm_worker); +xe_shrinker_queue_pm (shrinker); return false; }drivers/gpu/drm/xe/xe_shrinker.h +0
-0@@ -11,6 +11,8 @@ struct xe_device;
voidxe_shrinker_mod_pages(struct xe_shrinker *shrinker, long shrinkable, long purgeable);drivers/gpu/drm/xe/xe_shrinker.h +2
-0+void xe_shrinker_queue_pm (struct xe_shrinker *shrinker); +int
xe_shrinker_create(struct xe_device *xe);
#endif
Quoted 54 lines · Thomas Hellström
Quoted 45 lines · Shuicheng Lin
xe_bo_shrink()only took a runtime PM reference for the System CCS backup case, and only after the purgeable branch had already returned. That branch callsxe_bo_move_notify(), which reachesxe_bo_trigger_rebind()->xe_vm_invalidate_vma()and submits a TLB invalidation over GuC CT. The non-purgeable branch reaches the same code throughttm_bo_shrink(.allow_move = true)->xe_bo_move().When the device is runtime suspended the CT is disabled and the send returns
-ENODEV, tripping theXE_WARN_ON()inxe_bo_trigger_rebind():WARNING: drivers/gpu/drm/xe/xe_bo.c:770 at xe_bo_move_notify+0x1fc/0x450 [xe], CPU#2: xe_madvise/21389 xe_bo_shrink+0x20f/0x2b0 [xe] __xe_shrinker_walk+0x174/0x410 [xe] xe_shrinker_walk+0x56/0xf0 [xe] xe_shrinker_scan+0x10c/0x1e0 [xe] do_shrink_slab+0x176/0x7e0 shrink_slab+0x137/0x990 drop_slab+0x7f/0x130 drop_caches_sysctl_handler+0x9c/0xf0The invalidation is always issued for a fault-mode vm; since commit
4e7ebff69aed("drm/xe/xe3p_lpg: flush shrinker bo cachelines manually")
it is also issued for a non-fault-mode vm on hardware with an optimized
L2 flush, which is how this surfaced.Add
bo_needs_invalidate(), mirroring that condition, and use it inxe_bo_shrink()to computeneeds_rpmahead of both branches. The reference is then held acrossxe_bo_move_notify()in either path, and is not taken for a bo whose mappings would not have been invalidated.Shrinking can run in reclaim contexts where the device may not be resumed, so a bo is skipped when the reference cannot be acquired. Have
that skip queue the shrinker PM worker:xe_shrinker_runtime_pm_get()is gated on the needs of its own backup pass rather than on this one, and on DGFX it returns before queueing anything, so without this a scan where every candidate is skipped makes no progress, reports nothing scanned and returnsSHRINK_STOPwith nothing arranging a wake.Also gate the System CCS term on !xe_tt->purgeable, since
xe_bo_shrink_purge()frees the pages without a GPU copy.Quoted 7 lines
Reproduced with igt@xe_madvise@dontneed-before-exec while the GPU is runtime suspended.
Fixes 00c8efc3180f ("drm/xe: Add a shrinker for xe bos")Assisted-by Claude:claude-opus-5Cc Thomas Hellström <[email protected]>Signed-off-by Shuicheng Lin <[email protected]>
Quoted 6 lines
Nice catch.
I wonder, however, can we skip the TLB flush if runtime PM is not available at TLB flush time (
runtime_pm_get_if_active()?) Assuming that if runtime PM is not available, no contexts can be active and they will flush TLB implicitly when becoming active?
Do you mean call runtime_pm_get_if_active() in xe_tlb_inval_range_tilemask_submit(), or lower down in xe_tlb_inval_fence_init()?
I'd prefer that too, as it would simplify the code. Two things stop me doing it here.
First, the PTE zap also needs the device, and it runs before the flush. xe_pt_zap_ptes_entry() does xe_map_memset(), which asserts via xe_device_assert_mem_access():
Assertion !xe_pm_runtime_suspended(xe) failed!
xe_pt_zap_ptes_entry+0xb8/0x120 [xe] xe_vm_invalidate_vma_submit+0xb1/0x770 [xe] xe_bo_move_notify+0x1b3/0x450 [xe] xe_bo_shrink+0x20f/0x2b0 [xe]
The zap isn't optional - the pages are being freed, so the PTEs have to be cleared either way - and xe_pt_create() uses XE_BO_FLAG_VRAM_IF_DGFX(), so on discrete it is a BAR write that needs D0. Skipping the flush alone leaves that behind.
Second, I can't find the implicit flush in the code. xe_pm_runtime_resume() only calls xe_gt_resume() (do_gt_restart()) when d3cold.allowed; otherwise xe_gt_runtime_resume() just takes forcewake and does xe_uc_runtime_resume() - no reset, no invalidation. That doesn't mean the TLBs survive, it may well be a property of the power state, but I can't confirm the assumption by reading the driver. Do you know if that is guaranteed? Thanks.
Quoted 4 lines
IIRC It's not totally clear whether this would work for "
has_ctx_tlb_inval" hardware, and if so we might need to add something similar to this for that hardware.
My understanding is that it falls out for free if the check sits above xe_tlb_inval_issue(). Is it right? Thanks.
Shuicheng
Quoted 190 lines
Thanks,
ThomasQuoted 82 lines
---
drivers/gpu/drm/xe/xe_bo.c | 62 +++++++++++++++++++++++++++--- --
drivers/gpu/drm/xe/xe_shrinker.c | 18 +++++++++-drivers/gpu/drm/xe/xe_shrinker.h| 2 ++3 files changed, 72 insertions(+), 10 deletions(-)drivers/gpu/drm/xe/xe_bo.c +2
-0@@ -734,6 +734,32 @@ static int xe_ttm_io_mem_reserve(struct ttm_device *bdev, } } +/* +* Whether xe_bo_move_notify() will invalidate the GPU mappings of @bo, and
+ * therefore needs the device resumed to reach the GuC.
+ *
+ * This mirrors the condition under whichxe_bo_trigger_rebind()below calls
+ *xe_vm_invalidate_vma(): always for a fault-mode vm, and for any bound vm on
+ * hardware where the L2 flush is optimized. Keep the two in sync.
+ *
+ * Context: Caller must hold the BO's dma-resv lock.
+ */drivers/gpu/drm/xe/xe_bo.c +15
-0+static bool bo_needs_invalidate (struct xe_bo *bo) { +struct drm_gpuvm_bo *vm_bo; + +if (xe_device_is_l2_flush_optimized (xe_bo_device (bo))) +return xe_bo_is_vm_bound (bo); + +xe_bo_assert_held (bo); + +drm_gem_for_each_gpuvm_bo (vm_bo, &bo->ttm.base) +if (xe_vm_in_fault_mode (gpuvm_to_vm (vm_bo->vm))) +return true; + +return false; +} +static int xe_bo_trigger_rebind(struct
xe_device*xe, structxe_bo*bo,
const structttm_operation_ctx*ctx) {drivers/gpu/drm/xe/xe_bo.c +3
-0@@ -1361,6 +1387,28 @@ long xe_bo_shrink(struct ttm_operation_ctx *ctx, struct ttm_buffer_object *bo, if (!xe_bo_is_xe_bo(bo) || !xe_bo_get_unless_zero(xe_bo)) return xe_bo_shrink_purge(ctx, bo, scanned); +/* +* Moving this bo out of a non-system placement makes +* xe_bo_move_notify() invalidate its GPU mappings over GuC CT, and
drivers/gpu/drm/xe/xe_bo.c +1
-0+* System CCS needs a gpu copy when moving PL_TT ->
PL_SYSTEM. Bothdrivers/gpu/drm/xe/xe_bo.c +9
-0+* need the device resumed. +*/ + needs_rpm = bo->resource->mem_type !=XE_PL_SYSTEM && + (bo_needs_invalidate (xe_bo) || + (!xe_tt->purgeable && !IS_DGFX (xe) && + xe_bo_needs_ccs_pages(xe_bo))); +if (needs_rpm && !xe_pm_runtime_get_if_active (xe)) { +/* +* Resuming is not allowed from all reclaim contexts, so leave
drivers/gpu/drm/xe/xe_bo.c +1
-0+* this bo alone and ask for the device to be woken up outside
drivers/gpu/drm/xe/xe_bo.c +1
-0+* of reclaim. xe_shrinker_runtime_pm_get() is gated on the
drivers/gpu/drm/xe/xe_bo.c +1
-0+* needs of its own backup pass rather than on ours, and on
drivers/gpu/drm/xe/xe_bo.c +1
-0+* DGFX it returns before queueing anything, so ask here.
drivers/gpu/drm/xe/xe_bo.c +5
-0+*/ +xe_shrinker_queue_pm (xe->mem.shrinker); + goto out_unref; + } +Quoted 3 lines
if (
xe_tt->purgeable) {
if (bo->resource->mem_type!=XE_PL_SYSTEM) lret =xe_bo_move_notify(xe_bo, ctx); @@ -1369,28+1417,24 @@ long
Quoted 71 lines
xe_bo_shrink(struct
ttm_operation_ctx*ctx, structttm_buffer_object*bo,
if (lret > 0 &&xe_bo_madv_is_dontneed(xe_bo)) xe_bo_set_purgeable_state(xe_bo,
XE_MADV_PURGEABLE_PURGED);drivers/gpu/drm/xe/xe_bo.c +1
-1- goto out_unref; + goto out_put_rpm;}
drivers/gpu/drm/xe/xe_bo.c +0
-1-/* System CCS needs gpu copy when moving PL_TT -> PL_SYSTEM */
drivers/gpu/drm/xe/xe_bo.c +0
-1- needs_rpm = (!IS_DGFX(xe) && bo->resource->mem_type !=
XE_PL_SYSTEM&&drivers/gpu/drm/xe/xe_bo.c +0
-4- xe_bo_needs_ccs_pages(xe_bo)); -if (needs_rpm && !xe_pm_runtime_get_if_active (xe)) - goto out_unref; -*scanned +=
tt->num_pages;
lret = ttm_bo_shrink(ctx, bo, (structttm_bo_shrink_flags) {.purge = false, .writeback = flags.writeback, .allow_move = true});drivers/gpu/drm/xe/xe_bo.c +0
-2-if (needs_rpm) -xe_pm_runtime_put (xe);if (lret > 0) {
xe_ttm_tt_account_subtract(xe, tt); update_global_total_pages(bo->bdev, -(long)tt-Quoted 1 line
num_pages);}
drivers/gpu/drm/xe/xe_bo.c +4
-0+out_put_rpm: +if (needs_rpm) +xe_pm_runtime_put (xe); +out_unref:
xe_bo_put(xe_bo);drivers/gpu/drm/xe/xe_shrinker.c +0
-0@@ -54,6 +54,22 @@ xe_shrinker_mod_pages(struct xe_shrinker *shrinker,long shrinkable, long purgea
write_unlock(&shrinker->lock);
}+/**
+ *xe_shrinker_queue_pm()- Ask for the device to be woken up for shrinking
+ * @shrinker: Pointer to the structxe_shrinker.
+ *
+ * Queue a worker that takes and drops a runtime PM reference. Shrinking can
+ * be called from reclaim context, where resuming the device is not always
+ * allowed, so a caller that needs the device resumed but could not acquire a
+ * reference uses this to have it woken up outside of reclaim. The current
+ * scan makes no progress on the affected buffer objects, but a subsequent one
+ * can.
+ */drivers/gpu/drm/xe/xe_shrinker.c +2
-0+void xe_shrinker_queue_pm (struct xe_shrinker *shrinker) { + queue_work(shrinker->xe->unordered_wq, &shrinker-Quoted 1 line
pm_worker);drivers/gpu/drm/xe/xe_shrinker.c +2
-0+} +Quoted 3 lines
static s64 __xe_shrinker_walk(struct
xe_device*xe,
structttm_operation_ctx*ctx, const structxe_bo_shrink_flagsflags, @@ -185,7+201,7 @@
Quoted 25 lines
static bool xe_shrinker_runtime_pm_get(struct
xe_shrinker*shrinker, bool force,
xe_pm_runtime_get(xe);
return true;
}drivers/gpu/drm/xe/xe_shrinker.c +1
-1-queue_work (xe->unordered_wq, &shrinker->pm_worker); +xe_shrinker_queue_pm (shrinker);return false;
}drivers/gpu/drm/xe/xe_shrinker.h +0
-0@@ -11,6 +11,8 @@ struct xe_device;void
xe_shrinker_mod_pages(struct xe_shrinker *shrinker, long shrinkable, long purgeable);drivers/gpu/drm/xe/xe_shrinker.h +2
-0+void xe_shrinker_queue_pm (struct xe_shrinker *shrinker); +int
xe_shrinker_create(struct xe_device *xe);#endif
Matthew Brost
maintainerQuoted 62 lines · Shuicheng
Quoted 54 lines · Thomas Hellström
Quoted 45 lines · Shuicheng Lin
xe_bo_shrink()only took a runtime PM reference for the System CCS backup case, and only after the purgeable branch had already returned. That branch callsxe_bo_move_notify(), which reachesxe_bo_trigger_rebind()->xe_vm_invalidate_vma()and submits a TLB invalidation over GuC CT. The non-purgeable branch reaches the same code throughttm_bo_shrink(.allow_move = true)->xe_bo_move().When the device is runtime suspended the CT is disabled and the send returns
-ENODEV, tripping theXE_WARN_ON()inxe_bo_trigger_rebind():WARNING: drivers/gpu/drm/xe/xe_bo.c:770 at xe_bo_move_notify+0x1fc/0x450 [xe], CPU#2: xe_madvise/21389 xe_bo_shrink+0x20f/0x2b0 [xe] __xe_shrinker_walk+0x174/0x410 [xe] xe_shrinker_walk+0x56/0xf0 [xe] xe_shrinker_scan+0x10c/0x1e0 [xe] do_shrink_slab+0x176/0x7e0 shrink_slab+0x137/0x990 drop_slab+0x7f/0x130 drop_caches_sysctl_handler+0x9c/0xf0The invalidation is always issued for a fault-mode vm; since commit
4e7ebff69aed("drm/xe/xe3p_lpg: flush shrinker bo cachelines manually")
it is also issued for a non-fault-mode vm on hardware with an optimized
L2 flush, which is how this surfaced.Add
bo_needs_invalidate(), mirroring that condition, and use it inxe_bo_shrink()to computeneeds_rpmahead of both branches. The reference is then held acrossxe_bo_move_notify()in either path, and is not taken for a bo whose mappings would not have been invalidated.Shrinking can run in reclaim contexts where the device may not be resumed, so a bo is skipped when the reference cannot be acquired. Have
that skip queue the shrinker PM worker:xe_shrinker_runtime_pm_get()is gated on the needs of its own backup pass rather than on this one, and on DGFX it returns before queueing anything, so without this a scan where every candidate is skipped makes no progress, reports nothing scanned and returnsSHRINK_STOPwith nothing arranging a wake.Also gate the System CCS term on !xe_tt->purgeable, since
xe_bo_shrink_purge()frees the pages without a GPU copy.Quoted 7 lines
Reproduced with igt@xe_madvise@dontneed-before-exec while the GPU is runtime suspended.
Fixes 00c8efc3180f ("drm/xe: Add a shrinker for xe bos")Assisted-by Claude:claude-opus-5Cc Thomas Hellström <[email protected]>Signed-off-by Shuicheng Lin <[email protected]>Quoted 6 lines
Nice catch.
I wonder, however, can we skip the TLB flush if runtime PM is not available at TLB flush time (
runtime_pm_get_if_active()?) Assuming that if runtime PM is not available, no contexts can be active and they will flush TLB implicitly when becoming active?
Quoted 8 lines
Do you mean call
runtime_pm_get_if_active()inxe_tlb_inval_range_tilemask_submit(), or lower down inxe_tlb_inval_fence_init()?
I'd prefer that too, as it would simplify the code. Two things stop me doing it here.First, the PTE zap also needs the device, and it runs before the flush.
xe_pt_zap_ptes_entry()doesxe_map_memset(), which asserts viaxe_device_assert_mem_access():
I agree with this - the zap is not optional for fault mode, it probably isn't for 'xe_device_is_l2_flush_optimized'.
Quoted 86 lines
Assertion
!xe_pm_runtime_suspended(xe)failed!xe_pt_zap_ptes_entry+0xb8/0x120 [xe] xe_vm_invalidate_vma_submit+0xb1/0x770 [xe] xe_bo_move_notify+0x1b3/0x450 [xe] xe_bo_shrink+0x20f/0x2b0 [xe]The zap isn't optional - the pages are being freed, so the PTEs have to be cleared either way - and
xe_pt_create()usesXE_BO_FLAG_VRAM_IF_DGFX(), so on discrete it is a BAR write that needs D0. Skipping the flush alone leaves that behind.Second, I can't find the implicit flush in the code.
xe_pm_runtime_resume()only callsxe_gt_resume()(do_gt_restart()) when d3cold.allowed; otherwisexe_gt_runtime_resume()just takes forcewake and doesxe_uc_runtime_resume()- no reset, no invalidation. That doesn't mean the TLBs survive, it may well be a property of the power state, but I can't confirm the assumption by reading the driver. Do you know if that is guaranteed? Thanks.Quoted 4 lines
IIRC It's not totally clear whether this would work for "
has_ctx_tlb_inval" hardware, and if so we might need to add something similar to this for that hardware.My understanding is that it falls out for free if the check sits above
xe_tlb_inval_issue(). Is it right? Thanks.Shuicheng
Quoted 57 lines
Thanks,
ThomasQuoted 53 lines
---
drivers/gpu/drm/xe/xe_bo.c | 62 +++++++++++++++++++++++++++--- --
drivers/gpu/drm/xe/xe_shrinker.c | 18 +++++++++-drivers/gpu/drm/xe/xe_shrinker.h| 2 ++3 files changed, 72 insertions(+), 10 deletions(-)drivers/gpu/drm/xe/xe_bo.c +2
-0@@ -734,6 +734,32 @@ static int xe_ttm_io_mem_reserve(struct ttm_device *bdev, } } +/* +* Whether xe_bo_move_notify() will invalidate the GPU mappings of @bo, and
+ * therefore needs the device resumed to reach the GuC.
+ *
+ * This mirrors the condition under whichxe_bo_trigger_rebind()below calls
+ *xe_vm_invalidate_vma(): always for a fault-mode vm, and for any bound vm on
+ * hardware where the L2 flush is optimized. Keep the two in sync.
+ *
+ * Context: Caller must hold the BO's dma-resv lock.
+ */drivers/gpu/drm/xe/xe_bo.c +15
-0+static bool bo_needs_invalidate (struct xe_bo *bo) { +struct drm_gpuvm_bo *vm_bo; + +if (xe_device_is_l2_flush_optimized (xe_bo_device (bo))) +return xe_bo_is_vm_bound (bo); + +xe_bo_assert_held (bo); + +drm_gem_for_each_gpuvm_bo (vm_bo, &bo->ttm.base) +if (xe_vm_in_fault_mode (gpuvm_to_vm (vm_bo->vm))) +return true; + +return false; +} +static int xe_bo_trigger_rebind(struct
xe_device*xe, structxe_bo*bo,
const structttm_operation_ctx*ctx) {drivers/gpu/drm/xe/xe_bo.c +0
-0@@ -1361,6 +1387,28 @@ long xe_bo_shrink(struct ttm_operation_ctx *ctx, struct ttm_buffer_object *bo, if (!xe_bo_is_xe_bo(bo) || !xe_bo_get_unless_zero(xe_bo)) return xe_bo_shrink_purge(ctx, bo, scanned);
Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
drivers/gpu/drm/xe/xe_bo.c +3
-0+/* +* Moving this bo out of a non-system placement makes +* xe_bo_move_notify() invalidate its GPU mappings over GuC CT, and
Quoted 8 lines
drivers/gpu/drm/xe/xe_bo.c long xe_bo_shrink(struct ttm_operation_ctx *ctx, struct ttm_buffer_object *bo, · line 1399
Quoted 8 lines
drivers/gpu/drm/xe/xe_bo.c +1
-0+* System CCS needs a gpu copy when moving PL_TT ->
PL_SYSTEM. Bothdrivers/gpu/drm/xe/xe_bo.c +6
-0+* need the device resumed. +*/ + needs_rpm = bo->resource->mem_type !=XE_PL_SYSTEM && + (bo_needs_invalidate (xe_bo) || + (!xe_tt->purgeable && !IS_DGFX (xe) && + xe_bo_needs_ccs_pages(xe_bo)));
This is a complex enough conditional that my current feeling is to just unconditionally set:
needs_rpm = true;
In practice, on iGPUs where the display is in use, we always hold a runtime PM reference. It would be very unusual for the display to be suspended while the shrinker is running, at least as far as I can tell. Let's drop this hard-to-understand, likely overengineered conditional.
Thoughts?
Matt
Quoted 121 lines
Quoted 121 lines
Quoted 17 lines
drivers/gpu/drm/xe/xe_bo.c +3
-0+if (needs_rpm && !xe_pm_runtime_get_if_active (xe)) { +/* +* Resuming is not allowed from all reclaim contexts, so leave
drivers/gpu/drm/xe/xe_bo.c +1
-0+* this bo alone and ask for the device to be woken up outside
drivers/gpu/drm/xe/xe_bo.c +1
-0+* of reclaim. xe_shrinker_runtime_pm_get() is gated on the
drivers/gpu/drm/xe/xe_bo.c +1
-0+* needs of its own backup pass rather than on ours, and on
drivers/gpu/drm/xe/xe_bo.c +1
-0+* DGFX it returns before queueing anything, so ask here.
drivers/gpu/drm/xe/xe_bo.c +5
-0+*/ +xe_shrinker_queue_pm (xe->mem.shrinker); + goto out_unref; + } +Quoted 3 lines
if (
xe_tt->purgeable) {
if (bo->resource->mem_type!=XE_PL_SYSTEM) lret =xe_bo_move_notify(xe_bo, ctx); @@ -1369,28+1417,24 @@ long
Quoted 71 lines
xe_bo_shrink(struct
ttm_operation_ctx*ctx, structttm_buffer_object*bo,
if (lret > 0 &&xe_bo_madv_is_dontneed(xe_bo)) xe_bo_set_purgeable_state(xe_bo,
XE_MADV_PURGEABLE_PURGED);drivers/gpu/drm/xe/xe_bo.c +1
-1- goto out_unref; + goto out_put_rpm;}
drivers/gpu/drm/xe/xe_bo.c +0
-1-/* System CCS needs gpu copy when moving PL_TT -> PL_SYSTEM */
drivers/gpu/drm/xe/xe_bo.c +0
-1- needs_rpm = (!IS_DGFX(xe) && bo->resource->mem_type !=
XE_PL_SYSTEM&&drivers/gpu/drm/xe/xe_bo.c +0
-4- xe_bo_needs_ccs_pages(xe_bo)); -if (needs_rpm && !xe_pm_runtime_get_if_active (xe)) - goto out_unref; -*scanned +=
tt->num_pages;
lret = ttm_bo_shrink(ctx, bo, (structttm_bo_shrink_flags) {.purge = false, .writeback = flags.writeback, .allow_move = true});drivers/gpu/drm/xe/xe_bo.c +0
-2-if (needs_rpm) -xe_pm_runtime_put (xe);if (lret > 0) {
xe_ttm_tt_account_subtract(xe, tt); update_global_total_pages(bo->bdev, -(long)tt-Quoted 1 line
num_pages);}
drivers/gpu/drm/xe/xe_bo.c +4
-0+out_put_rpm: +if (needs_rpm) +xe_pm_runtime_put (xe); +out_unref:
xe_bo_put(xe_bo);drivers/gpu/drm/xe/xe_shrinker.c +0
-0@@ -54,6 +54,22 @@ xe_shrinker_mod_pages(struct xe_shrinker *shrinker,long shrinkable, long purgea
write_unlock(&shrinker->lock);
}+/**
+ *xe_shrinker_queue_pm()- Ask for the device to be woken up for shrinking
+ * @shrinker: Pointer to the structxe_shrinker.
+ *
+ * Queue a worker that takes and drops a runtime PM reference. Shrinking can
+ * be called from reclaim context, where resuming the device is not always
+ * allowed, so a caller that needs the device resumed but could not acquire a
+ * reference uses this to have it woken up outside of reclaim. The current
+ * scan makes no progress on the affected buffer objects, but a subsequent one
+ * can.
+ */drivers/gpu/drm/xe/xe_shrinker.c +2
-0+void xe_shrinker_queue_pm (struct xe_shrinker *shrinker) { + queue_work(shrinker->xe->unordered_wq, &shrinker-Quoted 1 line
pm_worker);drivers/gpu/drm/xe/xe_shrinker.c +2
-0+} +Quoted 3 lines
static s64 __xe_shrinker_walk(struct
xe_device*xe,
structttm_operation_ctx*ctx, const structxe_bo_shrink_flagsflags, @@ -185,7+201,7 @@
Quoted 25 lines
static bool xe_shrinker_runtime_pm_get(struct
xe_shrinker*shrinker, bool force,
xe_pm_runtime_get(xe);
return true;
}drivers/gpu/drm/xe/xe_shrinker.c +1
-1-queue_work (xe->unordered_wq, &shrinker->pm_worker); +xe_shrinker_queue_pm (shrinker);return false;
}drivers/gpu/drm/xe/xe_shrinker.h +0
-0@@ -11,6 +11,8 @@ struct xe_device;void
xe_shrinker_mod_pages(struct xe_shrinker *shrinker, long shrinkable, long purgeable);drivers/gpu/drm/xe/xe_shrinker.h +2
-0+void xe_shrinker_queue_pm (struct xe_shrinker *shrinker); +int
xe_shrinker_create(struct xe_device *xe);#endif
Quoted 187 lines · Matthew Brost
Quoted 11 lines · Shuicheng
Quoted 10 lines · Thomas Hellström
Quoted 9 lines · Shuicheng Lin
xe_bo_shrink()only took a runtime PM reference for the System CCS backup case, and only after the purgeable branch had already returned. That branch callsxe_bo_move_notify(), which reachesxe_bo_trigger_rebind()->xe_vm_invalidate_vma()and submits a TLB invalidation over GuC CT. The non-purgeable branch reaches the same code throughttm_bo_shrink(.allow_move = true)->xe_bo_move().When the device is runtime suspended the CT is disabled and the send returns
-ENODEV, tripping theXE_WARN_ON()in
xe_bo_trigger_rebind():Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
WARNING: drivers/gpu/drm/xe/xe_bo.c:770 at xe_bo_move_notify+0x1fc/0x450 [xe], CPU#2: xe_madvise/21389 xe_bo_shrink+0x20f/0x2b0 [xe] __xe_shrinker_walk+0x174/0x410 [xe] xe_shrinker_walk+0x56/0xf0 [xe] xe_shrinker_scan+0x10c/0x1e0 [xe] do_shrink_slab+0x176/0x7e0 shrink_slab+0x137/0x990 drop_slab+0x7f/0x130 drop_caches_sysctl_handler+0x9c/0xf0The invalidation is always issued for a fault-mode vm; since commit
4e7ebff69aed("drm/xe/xe3p_lpg: flush shrinker bo cachelines
manually")
it is also issued for a non-fault-mode vm on hardware with an optimized
L2 flush, which is how this surfaced.Add
bo_needs_invalidate(), mirroring that condition, and use it inxe_bo_shrink()to computeneeds_rpmahead of both branches. The reference is then held acrossxe_bo_move_notify()in either path, and is not taken for a bo whose mappings would not have been invalidated.Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Shrinking can run in reclaim contexts where the device may not be resumed, so a bo is skipped when the reference cannot be acquired. Have
that skip queue the shrinker PM worker:xe_shrinker_runtime_pm_get()is gated on the needs of its own backup pass rather than on this one, and on DGFX it returns before queueing anything, so without this a scan where every candidate is skipped makes no progress, reports nothing scanned and returns
SHRINK_STOPwith nothing arranging a wake.Quoted 19 lines
Quoted 12 lines
Quoted 11 lines
Also gate the System CCS term on !xe_tt->purgeable, since
xe_bo_shrink_purge()frees the pages without a GPU copy.Reproduced with igt@xe_madvise@dontneed-before-exec while the GPU is runtime suspended.
Fixes 00c8efc3180f ("drm/xe: Add a shrinker for xe bos")Assisted-by Claude:claude-opus-5Cc Thomas Hellström <[email protected]>Signed-off-by Shuicheng Lin <[email protected]>Quoted 6 lines
Nice catch.
I wonder, however, can we skip the TLB flush if runtime PM is not available at TLB flush time (
runtime_pm_get_if_active()?) Assuming that if runtime PM is not available, no contexts can be active and they will flush TLB implicitly when becoming active?Quoted 4 lines
Do you mean call
runtime_pm_get_if_active()inxe_tlb_inval_range_tilemask_submit(),
or lower down inxe_tlb_inval_fence_init()?
I'd prefer that too, as it would simplify the code. Two things stop me doing ithere.
Quoted 5 lines
First, the PTE zap also needs the device, and it runs before the flush.
xe_pt_zap_ptes_entry()doesxe_map_memset(), which asserts viaxe_device_assert_mem_access():I agree with this - the zap is not optional for fault mode, it probably isn't for '
xe_device_is_l2_flush_optimized'.Quoted 20 lines
Assertion
!xe_pm_runtime_suspended(xe)failed!xe_pt_zap_ptes_entry+0xb8/0x120 [xe] xe_vm_invalidate_vma_submit+0xb1/0x770 [xe] xe_bo_move_notify+0x1b3/0x450 [xe] xe_bo_shrink+0x20f/0x2b0 [xe]The zap isn't optional - the pages are being freed, so the PTEs have to be cleared either way - and
xe_pt_create()usesXE_BO_FLAG_VRAM_IF_DGFX(), so on discrete it is a BAR write that needs D0. Skipping the flush alone leaves that behind.Second, I can't find the implicit flush in the code.
xe_pm_runtime_resume()only callsxe_gt_resume()(do_gt_restart()) when d3cold.allowed; otherwisexe_gt_runtime_resume()just takes forcewake and doesxe_uc_runtime_resume()- no reset, no invalidation. That doesn't mean the TLBs survive, it may well be a property of the power state, but I can't confirm the assumption by reading the driver. Do you know if that is guaranteed? Thanks.Quoted 1 line
Quoted 5 lines
Quoted 3 lines
IIRC It's not totally clear whether this would work for "
has_ctx_tlb_inval" hardware, and if so we might need to add something similar to this for that hardware.My understanding is that it falls out for free if the check sits above
xe_tlb_inval_issue().Quoted 65 lines
Is it right? Thanks.
Shuicheng
Quoted 61 lines
Thanks,
ThomasQuoted 57 lines
---
drivers/gpu/drm/xe/xe_bo.c | 62
+++++++++++++++++++++++++++---
--
drivers/gpu/drm/xe/xe_shrinker.c | 18 +++++++++-
drivers/gpu/drm/xe/xe_shrinker.h | 2 ++3 files changed, 72 insertions(+), 10 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/xe/xe_bo.cindex2eb5d6aac523..274ff97d8542100644drivers/gpu/drm/xe/xe_bo.c +3
-0@@ -734,6 +734,32 @@ static int xe_ttm_io_mem_reserve(struct ttm_device *bdev, } } +/* +* Whether xe_bo_move_notify() will invalidate the GPU mappings +of @bo, and
+ * therefore needs the device resumed to reach the GuC.
+ *
+ * This mirrors the condition under whichxe_bo_trigger_rebind()below calls
+ *xe_vm_invalidate_vma(): always for a fault-mode vm, and for
+ any
bound vm on
+ * hardware where the L2 flush is optimized. Keep the two in sync.
+ *
+ * Context: Caller must hold the BO's dma-resv lock.
+ */drivers/gpu/drm/xe/xe_bo.c +15
-0+static bool bo_needs_invalidate (struct xe_bo *bo) { +struct drm_gpuvm_bo *vm_bo; + +if (xe_device_is_l2_flush_optimized (xe_bo_device (bo))) +return xe_bo_is_vm_bound (bo); + +xe_bo_assert_held (bo); + +drm_gem_for_each_gpuvm_bo (vm_bo, &bo->ttm.base) +if (xe_vm_in_fault_mode (gpuvm_to_vm (vm_bo->vm))) +return true; + +return false; +} +static int xe_bo_trigger_rebind(struct
xe_device*xe, structxe_bo*bo,
const structttm_operation_ctx*ctx) {drivers/gpu/drm/xe/xe_bo.c +0
-0@@ -1361,6 +1387,28 @@ long xe_bo_shrink(struct ttm_operation_ctx *ctx, struct ttm_buffer_object *bo, if (!xe_bo_is_xe_bo(bo) || !xe_bo_get_unless_zero(xe_bo)) return xe_bo_shrink_purge(ctx, bo, scanned);Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
drivers/gpu/drm/xe/xe_bo.c +3
-0+/* +* Moving this bo out of a non-system placement makes +* xe_bo_move_notify() invalidate its GPU mappings over GuC CT, and
Quoted 8 lines
drivers/gpu/drm/xe/xe_bo.c long xe_bo_shrink(struct ttm_operation_ctx *ctx, struct ttm_buffer_object *bo, · line 1399
Quoted 8 lines
drivers/gpu/drm/xe/xe_bo.c +1
-0+* System CCS needs a gpu copy when moving PL_TT ->
PL_SYSTEM. Bothdrivers/gpu/drm/xe/xe_bo.c +6
-0+* need the device resumed. +*/ + needs_rpm = bo->resource->mem_type !=XE_PL_SYSTEM && + (bo_needs_invalidate (xe_bo) || + (!xe_tt->purgeable && !IS_DGFX (xe) && + xe_bo_needs_ccs_pages(xe_bo)));This is a complex enough conditional that my current feeling is to just unconditionally set:
Quoted 1 line
needs_rpm= true;
How about keep the XE_PL_SYSTEM check?
/* Both the invalidation and the System CCS copy need the device. */ needs_rpm = bo->resource->mem_type != XE_PL_SYSTEM;
@Thomas Hellström you wrote the original code, what do you think?
Quoted 5 lines
In practice, on iGPUs where the display is in use, we always hold a runtime PM reference. It would be very unusual for the display to be suspended while the shrinker is running, at least as far as I can tell.
Let's drop this hard-to-understand, likely overengineered conditional.
I could only reproduce the issue with display disabled. And the CI machine that hits it has no monitor connected.
Shuicheng
Quoted 129 lines
Thoughts?
Matt
Quoted 124 lines
Quoted 124 lines
Quoted 17 lines
drivers/gpu/drm/xe/xe_bo.c +3
-0+if (needs_rpm && !xe_pm_runtime_get_if_active (xe)) { +/* +* Resuming is not allowed from all reclaim contexts, so leave
drivers/gpu/drm/xe/xe_bo.c +1
-0+* this bo alone and ask for the device to be woken up outside
drivers/gpu/drm/xe/xe_bo.c +1
-0+* of reclaim. xe_shrinker_runtime_pm_get() is gated on the
drivers/gpu/drm/xe/xe_bo.c +1
-0+* needs of its own backup pass rather than on ours, and on
drivers/gpu/drm/xe/xe_bo.c +1
-0+* DGFX it returns before queueing anything, so ask here.
drivers/gpu/drm/xe/xe_bo.c +5
-0+*/ +xe_shrinker_queue_pm (xe->mem.shrinker); + goto out_unref; + } +Quoted 3 lines
if (
xe_tt->purgeable) {
if (bo->resource->mem_type!=XE_PL_SYSTEM) lret =xe_bo_move_notify(xe_bo, ctx); @@ -1369,28+1417,24 @@ long
Quoted 74 lines
xe_bo_shrink(struct
ttm_operation_ctx*ctx, structttm_buffer_object*bo,
if (lret > 0 &&xe_bo_madv_is_dontneed(xe_bo)) xe_bo_set_purgeable_state(xe_bo,
XE_MADV_PURGEABLE_PURGED);drivers/gpu/drm/xe/xe_bo.c +1
-1- goto out_unref; + goto out_put_rpm;}
drivers/gpu/drm/xe/xe_bo.c +0
-1-/* System CCS needs gpu copy when moving PL_TT -> PL_SYSTEM */
drivers/gpu/drm/xe/xe_bo.c +0
-1- needs_rpm = (!IS_DGFX(xe) && bo->resource->mem_type !=
XE_PL_SYSTEM&&drivers/gpu/drm/xe/xe_bo.c +0
-4- xe_bo_needs_ccs_pages(xe_bo)); -if (needs_rpm && !xe_pm_runtime_get_if_active (xe)) - goto out_unref; -*scanned +=
tt->num_pages;
lret = ttm_bo_shrink(ctx, bo, (structttm_bo_shrink_flags) {.purge = false, .writeback = flags.writeback, .allow_move = true});drivers/gpu/drm/xe/xe_bo.c +0
-2-if (needs_rpm) -xe_pm_runtime_put (xe);if (lret > 0) {
xe_ttm_tt_account_subtract(xe, tt); update_global_total_pages(bo->bdev, -(long)tt-Quoted 1 line
num_pages);}
drivers/gpu/drm/xe/xe_bo.c +4
-0+out_put_rpm: +if (needs_rpm) +xe_pm_runtime_put (xe); +out_unref:
xe_bo_put(xe_bo);drivers/gpu/drm/xe/xe_shrinker.c +2
-0@@ -54,6 +54,22 @@ xe_shrinker_mod_pages(struct xe_shrinker *shrinker, long shrinkable, long purgea write_unlock(&shrinker->lock); } +/** +* xe_shrinker_queue_pm() - Ask for the device to be woken up for shrinking
+ * @shrinker: Pointer to the structxe_shrinker.
+ *
+ * Queue a worker that takes and drops a runtime PM reference. Shrinking can
+ * be called from reclaim context, where resuming the device is
+ not
always
+ * allowed, so a caller that needs the device resumed but could
+ not
acquire a
+ * reference uses this to have it woken up outside of reclaim.
+ The
current
+ * scan makes no progress on the affected buffer objects, but a subsequent one
+ * can.
+ */drivers/gpu/drm/xe/xe_shrinker.c +2
-0+void xe_shrinker_queue_pm (struct xe_shrinker *shrinker) { + queue_work(shrinker->xe->unordered_wq, &shrinker-Quoted 1 line
pm_worker);drivers/gpu/drm/xe/xe_shrinker.c +2
-0+} +Quoted 3 lines
static s64 __xe_shrinker_walk(struct
xe_device*xe,
structttm_operation_ctx*ctx, const structxe_bo_shrink_flagsflags, @@ -185,7+201,7 @@
Quoted 25 lines
static bool xe_shrinker_runtime_pm_get(struct
xe_shrinker*shrinker, bool force,
xe_pm_runtime_get(xe); return true;
}drivers/gpu/drm/xe/xe_shrinker.c +1
-1-queue_work (xe->unordered_wq, &shrinker->pm_worker); +xe_shrinker_queue_pm (shrinker);return false;
}drivers/gpu/drm/xe/xe_shrinker.h +0
-0@@ -11,6 +11,8 @@ struct xe_device;void
xe_shrinker_mod_pages(struct xe_shrinker *shrinker, long shrinkable, long purgeable);drivers/gpu/drm/xe/xe_shrinker.h +2
-0+void xe_shrinker_queue_pm (struct xe_shrinker *shrinker); +int
xe_shrinker_create(struct xe_device *xe);#endif
Matthew Brost
maintainerQuoted 188 lines · Shuicheng
Quoted 187 lines · Matthew Brost
Quoted 11 lines · Shuicheng
Quoted 10 lines · Thomas Hellström
Quoted 9 lines · Shuicheng Lin
xe_bo_shrink()only took a runtime PM reference for the System CCS backup case, and only after the purgeable branch had already returned. That branch callsxe_bo_move_notify(), which reachesxe_bo_trigger_rebind()->xe_vm_invalidate_vma()and submits a TLB invalidation over GuC CT. The non-purgeable branch reaches the same code throughttm_bo_shrink(.allow_move = true)->xe_bo_move().When the device is runtime suspended the CT is disabled and the send returns
-ENODEV, tripping theXE_WARN_ON()in
xe_bo_trigger_rebind():Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
WARNING: drivers/gpu/drm/xe/xe_bo.c:770 at xe_bo_move_notify+0x1fc/0x450 [xe], CPU#2: xe_madvise/21389 xe_bo_shrink+0x20f/0x2b0 [xe] __xe_shrinker_walk+0x174/0x410 [xe] xe_shrinker_walk+0x56/0xf0 [xe] xe_shrinker_scan+0x10c/0x1e0 [xe] do_shrink_slab+0x176/0x7e0 shrink_slab+0x137/0x990 drop_slab+0x7f/0x130 drop_caches_sysctl_handler+0x9c/0xf0The invalidation is always issued for a fault-mode vm; since commit
4e7ebff69aed("drm/xe/xe3p_lpg: flush shrinker bo cachelines
manually")
it is also issued for a non-fault-mode vm on hardware with an optimized
L2 flush, which is how this surfaced.Add
bo_needs_invalidate(), mirroring that condition, and use it inxe_bo_shrink()to computeneeds_rpmahead of both branches. The reference is then held acrossxe_bo_move_notify()in either path, and is not taken for a bo whose mappings would not have been invalidated.Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Shrinking can run in reclaim contexts where the device may not be resumed, so a bo is skipped when the reference cannot be acquired. Have
that skip queue the shrinker PM worker:xe_shrinker_runtime_pm_get()is gated on the needs of its own backup pass rather than on this one, and on DGFX it returns before queueing anything, so without this a scan where every candidate is skipped makes no progress, reports nothing scanned and returns
SHRINK_STOPwith nothing arranging a wake.Quoted 19 lines
Quoted 12 lines
Quoted 11 lines
Also gate the System CCS term on !xe_tt->purgeable, since
xe_bo_shrink_purge()frees the pages without a GPU copy.Reproduced with igt@xe_madvise@dontneed-before-exec while the GPU is runtime suspended.
Fixes 00c8efc3180f ("drm/xe: Add a shrinker for xe bos")Assisted-by Claude:claude-opus-5Cc Thomas Hellström <[email protected]>Signed-off-by Shuicheng Lin <[email protected]>Quoted 6 lines
Nice catch.
I wonder, however, can we skip the TLB flush if runtime PM is not available at TLB flush time (
runtime_pm_get_if_active()?) Assuming that if runtime PM is not available, no contexts can be active and they will flush TLB implicitly when becoming active?Quoted 4 lines
Do you mean call
runtime_pm_get_if_active()inxe_tlb_inval_range_tilemask_submit(),
or lower down inxe_tlb_inval_fence_init()?
I'd prefer that too, as it would simplify the code. Two things stop me doing ithere.
Quoted 5 lines
First, the PTE zap also needs the device, and it runs before the flush.
xe_pt_zap_ptes_entry()doesxe_map_memset(), which asserts viaxe_device_assert_mem_access():I agree with this - the zap is not optional for fault mode, it probably isn't for '
xe_device_is_l2_flush_optimized'.Quoted 20 lines
Assertion
!xe_pm_runtime_suspended(xe)failed!xe_pt_zap_ptes_entry+0xb8/0x120 [xe] xe_vm_invalidate_vma_submit+0xb1/0x770 [xe] xe_bo_move_notify+0x1b3/0x450 [xe] xe_bo_shrink+0x20f/0x2b0 [xe]The zap isn't optional - the pages are being freed, so the PTEs have to be cleared either way - and
xe_pt_create()usesXE_BO_FLAG_VRAM_IF_DGFX(), so on discrete it is a BAR write that needs D0. Skipping the flush alone leaves that behind.Second, I can't find the implicit flush in the code.
xe_pm_runtime_resume()only callsxe_gt_resume()(do_gt_restart()) when d3cold.allowed; otherwisexe_gt_runtime_resume()just takes forcewake and doesxe_uc_runtime_resume()- no reset, no invalidation. That doesn't mean the TLBs survive, it may well be a property of the power state, but I can't confirm the assumption by reading the driver. Do you know if that is guaranteed? Thanks.Quoted 1 line
Quoted 5 lines
Quoted 3 lines
IIRC It's not totally clear whether this would work for "
has_ctx_tlb_inval" hardware, and if so we might need to add something similar to this for that hardware.My understanding is that it falls out for free if the check sits above
xe_tlb_inval_issue().Quoted 65 lines
Is it right? Thanks.
Shuicheng
Quoted 61 lines
Thanks,
ThomasQuoted 57 lines
---
drivers/gpu/drm/xe/xe_bo.c | 62
+++++++++++++++++++++++++++---
--
drivers/gpu/drm/xe/xe_shrinker.c | 18 +++++++++-
drivers/gpu/drm/xe/xe_shrinker.h | 2 ++3 files changed, 72 insertions(+), 10 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/xe/xe_bo.cindex2eb5d6aac523..274ff97d8542100644drivers/gpu/drm/xe/xe_bo.c +3
-0@@ -734,6 +734,32 @@ static int xe_ttm_io_mem_reserve(struct ttm_device *bdev, } } +/* +* Whether xe_bo_move_notify() will invalidate the GPU mappings +of @bo, and
+ * therefore needs the device resumed to reach the GuC.
+ *
+ * This mirrors the condition under whichxe_bo_trigger_rebind()below calls
+ *xe_vm_invalidate_vma(): always for a fault-mode vm, and for
+ any
bound vm on
+ * hardware where the L2 flush is optimized. Keep the two in sync.
+ *
+ * Context: Caller must hold the BO's dma-resv lock.
+ */drivers/gpu/drm/xe/xe_bo.c +15
-0+static bool bo_needs_invalidate (struct xe_bo *bo) { +struct drm_gpuvm_bo *vm_bo; + +if (xe_device_is_l2_flush_optimized (xe_bo_device (bo))) +return xe_bo_is_vm_bound (bo); + +xe_bo_assert_held (bo); + +drm_gem_for_each_gpuvm_bo (vm_bo, &bo->ttm.base) +if (xe_vm_in_fault_mode (gpuvm_to_vm (vm_bo->vm))) +return true; + +return false; +} +static int xe_bo_trigger_rebind(struct
xe_device*xe, structxe_bo*bo,
const structttm_operation_ctx*ctx) {drivers/gpu/drm/xe/xe_bo.c +0
-0@@ -1361,6 +1387,28 @@ long xe_bo_shrink(struct ttm_operation_ctx *ctx, struct ttm_buffer_object *bo, if (!xe_bo_is_xe_bo(bo) || !xe_bo_get_unless_zero(xe_bo)) return xe_bo_shrink_purge(ctx, bo, scanned);Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
drivers/gpu/drm/xe/xe_bo.c +3
-0+/* +* Moving this bo out of a non-system placement makes +* xe_bo_move_notify() invalidate its GPU mappings over GuC CT, and
Quoted 8 lines
drivers/gpu/drm/xe/xe_bo.c long xe_bo_shrink(struct ttm_operation_ctx *ctx, struct ttm_buffer_object *bo, · line 1399
Quoted 8 lines
drivers/gpu/drm/xe/xe_bo.c +1
-0+* System CCS needs a gpu copy when moving PL_TT ->
PL_SYSTEM. Bothdrivers/gpu/drm/xe/xe_bo.c +6
-0+* need the device resumed. +*/ + needs_rpm = bo->resource->mem_type !=XE_PL_SYSTEM && + (bo_needs_invalidate (xe_bo) || + (!xe_tt->purgeable && !IS_DGFX (xe) && + xe_bo_needs_ccs_pages(xe_bo)));This is a complex enough conditional that my current feeling is to just unconditionally set:
Quoted 4 lines
Quoted 1 line
needs_rpm= true;How about keep the
XE_PL_SYSTEMcheck?
I think checking system is reasonable, and better than my suggestion, as this implies we don't have GPU pages (no invalidation) and no need for a CCS copy, and is keep check which is easy to understand.
Quoted 5 lines
/* Both the invalidation and the System CCS copy need the device. */ needs_rpm = bo->resource->mem_type != XE_PL_SYSTEM;@Thomas Hellström you wrote the original code, what do you think?
Yes, let's see what Thomas says.
Matt
Quoted 139 lines
Quoted 5 lines
In practice, on iGPUs where the display is in use, we always hold a runtime PM reference. It would be very unusual for the display to be suspended while the shrinker is running, at least as far as I can tell.
Let's drop this hard-to-understand, likely overengineered conditional.I could only reproduce the issue with display disabled. And the CI machine that hits it has no monitor connected.
Shuicheng
Quoted 129 lines
Thoughts?
Matt
Quoted 124 lines
Quoted 124 lines
Quoted 17 lines
drivers/gpu/drm/xe/xe_bo.c +3
-0+if (needs_rpm && !xe_pm_runtime_get_if_active (xe)) { +/* +* Resuming is not allowed from all reclaim contexts, so leave
drivers/gpu/drm/xe/xe_bo.c +1
-0+* this bo alone and ask for the device to be woken up outside
drivers/gpu/drm/xe/xe_bo.c +1
-0+* of reclaim. xe_shrinker_runtime_pm_get() is gated on the
drivers/gpu/drm/xe/xe_bo.c +1
-0+* needs of its own backup pass rather than on ours, and on
drivers/gpu/drm/xe/xe_bo.c +1
-0+* DGFX it returns before queueing anything, so ask here.
drivers/gpu/drm/xe/xe_bo.c +5
-0+*/ +xe_shrinker_queue_pm (xe->mem.shrinker); + goto out_unref; + } +Quoted 3 lines
if (
xe_tt->purgeable) {
if (bo->resource->mem_type!=XE_PL_SYSTEM) lret =xe_bo_move_notify(xe_bo, ctx); @@ -1369,28+1417,24 @@ long
Quoted 74 lines
xe_bo_shrink(struct
ttm_operation_ctx*ctx, structttm_buffer_object*bo,
if (lret > 0 &&xe_bo_madv_is_dontneed(xe_bo)) xe_bo_set_purgeable_state(xe_bo,
XE_MADV_PURGEABLE_PURGED);drivers/gpu/drm/xe/xe_bo.c +1
-1- goto out_unref; + goto out_put_rpm;}
drivers/gpu/drm/xe/xe_bo.c +0
-1-/* System CCS needs gpu copy when moving PL_TT -> PL_SYSTEM */
drivers/gpu/drm/xe/xe_bo.c +0
-1- needs_rpm = (!IS_DGFX(xe) && bo->resource->mem_type !=
XE_PL_SYSTEM&&drivers/gpu/drm/xe/xe_bo.c +0
-4- xe_bo_needs_ccs_pages(xe_bo)); -if (needs_rpm && !xe_pm_runtime_get_if_active (xe)) - goto out_unref; -*scanned +=
tt->num_pages;
lret = ttm_bo_shrink(ctx, bo, (structttm_bo_shrink_flags) {.purge = false, .writeback = flags.writeback, .allow_move = true});drivers/gpu/drm/xe/xe_bo.c +0
-2-if (needs_rpm) -xe_pm_runtime_put (xe);if (lret > 0) {
xe_ttm_tt_account_subtract(xe, tt); update_global_total_pages(bo->bdev, -(long)tt-Quoted 1 line
num_pages);}
drivers/gpu/drm/xe/xe_bo.c +4
-0+out_put_rpm: +if (needs_rpm) +xe_pm_runtime_put (xe); +out_unref:
xe_bo_put(xe_bo);drivers/gpu/drm/xe/xe_shrinker.c +2
-0@@ -54,6 +54,22 @@ xe_shrinker_mod_pages(struct xe_shrinker *shrinker, long shrinkable, long purgea write_unlock(&shrinker->lock); } +/** +* xe_shrinker_queue_pm() - Ask for the device to be woken up for shrinking
+ * @shrinker: Pointer to the structxe_shrinker.
+ *
+ * Queue a worker that takes and drops a runtime PM reference. Shrinking can
+ * be called from reclaim context, where resuming the device is
+ not
always
+ * allowed, so a caller that needs the device resumed but could
+ not
acquire a
+ * reference uses this to have it woken up outside of reclaim.
+ The
current
+ * scan makes no progress on the affected buffer objects, but a subsequent one
+ * can.
+ */drivers/gpu/drm/xe/xe_shrinker.c +2
-0+void xe_shrinker_queue_pm (struct xe_shrinker *shrinker) { + queue_work(shrinker->xe->unordered_wq, &shrinker-Quoted 1 line
pm_worker);drivers/gpu/drm/xe/xe_shrinker.c +2
-0+} +Quoted 3 lines
static s64 __xe_shrinker_walk(struct
xe_device*xe,
structttm_operation_ctx*ctx, const structxe_bo_shrink_flagsflags, @@ -185,7+201,7 @@
Quoted 25 lines
static bool xe_shrinker_runtime_pm_get(struct
xe_shrinker*shrinker, bool force,
xe_pm_runtime_get(xe); return true;
}drivers/gpu/drm/xe/xe_shrinker.c +1
-1-queue_work (xe->unordered_wq, &shrinker->pm_worker); +xe_shrinker_queue_pm (shrinker);return false;
}drivers/gpu/drm/xe/xe_shrinker.h +0
-0@@ -11,6 +11,8 @@ struct xe_device;void
xe_shrinker_mod_pages(struct xe_shrinker *shrinker, long shrinkable, long purgeable);drivers/gpu/drm/xe/xe_shrinker.h +2
-0+void xe_shrinker_queue_pm (struct xe_shrinker *shrinker); +int
xe_shrinker_create(struct xe_device *xe);#endif
Thomas Hellström
maintainerHi!
Quoted 253 lines · Matthew Brost
Quoted 241 lines · Shuicheng
Quoted 240 lines · Matthew Brost
Quoted 14 lines · Shuicheng
Quoted 13 lines · Thomas Hellström
Quoted 12 lines · Shuicheng Lin
xe_bo_shrink()only took a runtime PM reference for the System CCS
backup case, and only after the purgeable branch had already returned.
That branch callsxe_bo_move_notify(), which reachesxe_bo_trigger_rebind()->xe_vm_invalidate_vma()and submits a TLB
invalidation over GuC CT. The non-purgeable branch reaches the
same code throughttm_bo_shrink(.allow_move = true)->xe_bo_move().Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
When the device is runtime suspended the CT is disabled and the
send returns-ENODEV, tripping theXE_WARN_ON()in
xe_bo_trigger_rebind():Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
WARNING: drivers/gpu/drm/xe/xe_bo.c:770 at xe_bo_move_notify+0x1fc/0x450 [xe], CPU#2: xe_madvise/21389 xe_bo_shrink+0x20f/0x2b0 [xe] __xe_shrinker_walk+0x174/0x410 [xe] xe_shrinker_walk+0x56/0xf0 [xe] xe_shrinker_scan+0x10c/0x1e0 [xe] do_shrink_slab+0x176/0x7e0 shrink_slab+0x137/0x990 drop_slab+0x7f/0x130 drop_caches_sysctl_handler+0x9c/0xf0The invalidation is always issued for a fault-mode vm; since
commit4e7ebff69aed("drm/xe/xe3p_lpg: flush shrinker bo cachelines
manually")
it is also issued for a non-fault-mode vm on hardware with an
optimized
L2 flush, which is how this surfaced.Add
bo_needs_invalidate(), mirroring that condition, and use it inxe_bo_shrink()to computeneeds_rpmahead of both branches. The
reference is then held acrossxe_bo_move_notify()in either path,
and is not taken for a bo whose mappings would not have been invalidated.Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
Shrinking can run in reclaim contexts where the device may not be
resumed, so a bo is skipped when the reference cannot be acquired.
Have
that skip queue the shrinker PM worker:Quoted 8 lines
Quoted 8 lines
xe_shrinker_runtime_pm_get()is gated on the needs of its own
backup pass rather than on this one, and on DGFX it returns before
queueing anything, so without this a scan where every candidate is
skipped makes no progress, reports nothing scanned and returns
SHRINK_STOPwith nothing arranging a wake.Quoted 23 lines
Quoted 15 lines
Quoted 4 lines
Also gate the System CCS term on !xe_tt->purgeable, since
xe_bo_shrink_purge()frees the pages without a GPU copy.Quoted 8 lines
Reproduced with igt@xe_madvise@dontneed-before-exec while the GPU
is runtime suspended.Fixes 00c8efc3180f ("drm/xe: Add a shrinker for xe bos")Assisted-by Claude:claude-opus-5Cc Thomas Hellström <[email protected]>Signed-off-by Shuicheng Lin <[email protected]>Nice catch.
Quoted 7 lines
I wonder, however, can we skip the TLB flush if runtime PM is not
available at TLB flush time (runtime_pm_get_if_active()?) Assuming
that if runtime PM is not available, no contexts can be active and
they will flush TLB implicitly when becoming active?Quoted 5 lines
Do you mean call
runtime_pm_get_if_active()inxe_tlb_inval_range_tilemask_submit(),
or lower down inxe_tlb_inval_fence_init()?
I'd prefer that too, as it would simplify the code. Two things stop me doing ithere.
Quoted 6 lines
First, the PTE zap also needs the device, and it runs before the flush.
xe_pt_zap_ptes_entry()doesxe_map_memset(), which asserts viaxe_device_assert_mem_access():I agree with this - the zap is not optional for fault mode, it probably isn't for '
xe_device_is_l2_flush_optimized'.Quoted 27 lines
Assertion
!xe_pm_runtime_suspended(xe)failed!xe_pt_zap_ptes_entry+0xb8/0x120 [xe] xe_vm_invalidate_vma_submit+0xb1/0x770 [xe] xe_bo_move_notify+0x1b3/0x450 [xe] xe_bo_shrink+0x20f/0x2b0 [xe]The zap isn't optional - the pages are being freed, so the PTEs have
to be cleared either way - andxe_pt_create()usesXE_BO_FLAG_VRAM_IF_DGFX(), so on discrete it is a BAR write that needs
D0. Skipping the flush alone leaves that behind.Second, I can't find the implicit flush in the code.
xe_pm_runtime_resume()only callsxe_gt_resume()(do_gt_restart())
when d3cold.allowed; otherwisexe_gt_runtime_resume()just takes
forcewake and doesxe_uc_runtime_resume()- no reset, no invalidation.
That doesn't mean the TLBs survive, it may well be a property of the
power state, but I can't confirm the assumption by reading the driver.
Do you know if that is guaranteed? Thanks.Quoted 1 line
Quoted 8 lines
Quoted 5 lines
IIRC It's not totally clear whether this would work for "
has_ctx_tlb_inval"
hardware, and if so we might need to add something similar to this
for that hardware.My understanding is that it falls out for free if the check sits above
xe_tlb_inval_issue().Quoted 86 lines
Is it right? Thanks.
Shuicheng
Quoted 82 lines
Thanks,
ThomasQuoted 78 lines
---
drivers/gpu/drm/xe/xe_bo.c | 62
+++++++++++++++++++++++++++---
--
drivers/gpu/drm/xe/xe_shrinker.c | 18 +++++++++-drivers/gpu/drm/xe/xe_shrinker.h| 2 ++3 files changed, 72 insertions(+), 10 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/xe/xe_bo.cindex2eb5d6aac523..274ff97d8542
100644drivers/gpu/drm/xe/xe_bo.c +0
-0@@ -734,6 +734,32 @@ static intxe_ttm_io_mem_reserve(struct
ttm_device*bdev,
}
}+/*
+ * Whetherxe_bo_move_notify()will invalidate the GPU mappings
+of
@bo, and
+ * therefore needs the device resumed to reach the GuC.
+ *
+ * This mirrors the condition under whichxe_bo_trigger_rebind()
below calls
+ *xe_vm_invalidate_vma(): always for a fault-mode vm, and for
+ any
bound vm on
+ * hardware where the L2 flush is optimized. Keep the two in sync.
+ *
+ * Context: Caller must hold the BO's dma-resv lock.
+ */drivers/gpu/drm/xe/xe_bo.c +4
-0+static bool bo_needs_invalidate (struct xe_bo *bo) { +struct drm_gpuvm_bo *vm_bo; + + if(xe_device_is_l2_flush_optimized(xe_bo_device(bo)))
drivers/gpu/drm/xe/xe_bo.c +6
-0+return xe_bo_is_vm_bound (bo); + +xe_bo_assert_held (bo); + +drm_gem_for_each_gpuvm_bo (vm_bo, &bo->ttm.base) + if (xe_vm_in_fault_mode(gpuvm_to_vm(vm_bo-Quoted 1 line
vm)))
drivers/gpu/drm/xe/xe_bo.c +5
-0+return true; + +return false; +} +static int xe_bo_trigger_rebind(struct
xe_device*xe, structxe_bo*bo,
const structttm_operation_ctx*ctx)
{drivers/gpu/drm/xe/xe_bo.c +0
-0@@ -1361,6 +1387,28 @@ long xe_bo_shrink(struct
ttm_operation_ctx
*ctx, structttm_buffer_object*bo,
if (!xe_bo_is_xe_bo(bo) || !xe_bo_get_unless_zero(xe_bo))
returnxe_bo_shrink_purge(ctx, bo, scanned);drivers/gpu/drm/xe/xe_bo.c +2
-0+/* +* Moving this bo out of a non-system placement makes
drivers/gpu/drm/xe/xe_bo.c +1
-0+* xe_bo_move_notify() invalidate its GPU mappings over GuC
CT, anddrivers/gpu/drm/xe/xe_bo.c +1
-0+* System CCS needs a gpu copy when moving PL_TT - Quoted 1 line
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/xe/xe_bo.c long xe_bo_shrink(struct ttm_operation_ctx *ctx, struct ttm_buffer_object *bo, · line 1399
Quoted 8 lines
PL_SYSTEM. Bothdrivers/gpu/drm/xe/xe_bo.c +3
-0+* need the device resumed. +*/ + needs_rpm = bo->resource->mem_type !=XE_PL_SYSTEM &&
drivers/gpu/drm/xe/xe_bo.c +3
-0+ (bo_needs_invalidate (xe_bo) || + (!xe_tt->purgeable && !IS_DGFX (xe) && + xe_bo_needs_ccs_pages(xe_bo)));This is a complex enough conditional that my current feeling is to just
unconditionally set:Quoted 4 lines
Quoted 1 line
needs_rpm= true;How about keep the
XE_PL_SYSTEMcheck?I think checking system is reasonable, and better than my suggestion, as
this implies we don't have GPU pages (no invalidation) and no need for a
CCS copy, and is keep check which is easy to understand.
Quoted 8 lines
Quoted 6 lines
/* Both the invalidation and the System CCS copy need the device. */ needs_rpm = bo->resource->mem_type != XE_PL_SYSTEM;@Thomas Hellström you wrote the original code, what do you think?
Yes, let's see what Thomas says.
I think keeping the system check makes sense, and for now a quick fix.
However I think avoiding waking the device for small reclaims makes sense, so we should also look at the shrink batch series trying to make that merged.
If we wanted to optimize this, and add back the complexity, I think calling xe_vm_invalidate_vma() would only make sense if runtime_pm is available:
1) We need to do it on faulting VMs -> Runtime PM always available.
2) We need to do it to trap L1 cache flushes and on l2_flush_optimized to flush out l2 before reclaiming -> Can we assume that the device always does this before going to sleep? Need to confirm that with Ankur.
Thanks,
Thomas
Quoted 170 lines
Mattb
Quoted 167 lines
Quoted 8 lines
In practice, on iGPUs where the display is in use, we always hold a runtime PM
reference. It would be very unusual for the display to be suspended while the
shrinker is running, at least as far as I can tell. Let's drop this hard-to-understand, likely overengineered conditional.I could only reproduce the issue with display disabled. And the CI machine that hits it has no monitor connected.
Shuicheng
Quoted 153 lines
Thoughts?
Matt
Quoted 148 lines
Quoted 148 lines
Quoted 23 lines
drivers/gpu/drm/xe/xe_bo.c +1
-0+if (needs_rpm && !xe_pm_runtime_get_if_active (xe)){
drivers/gpu/drm/xe/xe_bo.c +2
-0+/* +* Resuming is not allowed from all reclaim
contexts, so leavedrivers/gpu/drm/xe/xe_bo.c +1
-0+* this bo alone and ask for the device to be woken
up outsidedrivers/gpu/drm/xe/xe_bo.c +1
-0+* of reclaim.
xe_shrinker_runtime_pm_get()is gated
on thedrivers/gpu/drm/xe/xe_bo.c +1
-0+* needs of its own backup pass rather than on ours,
and ondrivers/gpu/drm/xe/xe_bo.c +1
-0+* DGFX it returns before queueing anything, so ask
here.drivers/gpu/drm/xe/xe_bo.c +5
-0+*/ +xe_shrinker_queue_pm (xe->mem.shrinker); + goto out_unref; + } +Quoted 5 lines
if (
xe_tt->purgeable) {
if (bo->resource->mem_type!=XE_PL_SYSTEM)
lret =xe_bo_move_notify(xe_bo, ctx); @@ -1369,28+1417,24 @@ long
Quoted 86 lines
xe_bo_shrink(struct
ttm_operation_ctx*ctx, structttm_buffer_object*bo,
if (lret > 0 &&xe_bo_madv_is_dontneed(xe_bo)) xe_bo_set_purgeable_state(xe_bo,
XE_MADV_PURGEABLE_PURGED);drivers/gpu/drm/xe/xe_bo.c +1
-1- goto out_unref; + goto out_put_rpm;}
drivers/gpu/drm/xe/xe_bo.c +0
-1-/* System CCS needs gpu copy when moving PL_TT ->
PL_SYSTEM
*/drivers/gpu/drm/xe/xe_bo.c +0
-1- needs_rpm = (!IS_DGFX(xe) && bo->resource-Quoted 1 line
mem_type!=
XE_PL_SYSTEM&&drivers/gpu/drm/xe/xe_bo.c +0
-4- xe_bo_needs_ccs_pages(xe_bo)); -if (needs_rpm && !xe_pm_runtime_get_if_active (xe)) - goto out_unref; -*scanned +=
tt->num_pages;
lret = ttm_bo_shrink(ctx, bo, (structttm_bo_shrink_flags)
{.purge = false, .writeback = flags.writeback,
.allow_move = true});drivers/gpu/drm/xe/xe_bo.c +0
-2-if (needs_rpm) -xe_pm_runtime_put (xe);if (lret > 0) {
xe_ttm_tt_account_subtract(xe, tt); update_global_total_pages(bo->bdev, - (long)tt-Quoted 1 line
num_pages);}
drivers/gpu/drm/xe/xe_bo.c +4
-0+out_put_rpm: +if (needs_rpm) +xe_pm_runtime_put (xe); +out_unref:
xe_bo_put(xe_bo);drivers/gpu/drm/xe/xe_shrinker.c +2
-0@@ -54,6 +54,22 @@ xe_shrinker_mod_pages(struct xe_shrinker *shrinker, long shrinkable, long purgea write_unlock(&shrinker->lock); } +/** +* xe_shrinker_queue_pm() - Ask for the device to be woken up for
shrinking
+ * @shrinker: Pointer to the structxe_shrinker.
+ *
+ * Queue a worker that takes and drops a runtime PM reference.
Shrinking can
+ * be called from reclaim context, where resuming the device is
+ not
always
+ * allowed, so a caller that needs the device resumed but could
+ not
acquire a
+ * reference uses this to have it woken up outside of reclaim.
+ The
current
+ * scan makes no progress on the affected buffer objects, but a
subsequent one
+ * can.
+ */drivers/gpu/drm/xe/xe_shrinker.c +2
-0+void xe_shrinker_queue_pm (struct xe_shrinker *shrinker) { + queue_work(shrinker->xe->unordered_wq, &shrinker-Quoted 1 line
pm_worker);drivers/gpu/drm/xe/xe_shrinker.c +2
-0+} +Quoted 5 lines
static s64 __xe_shrinker_walk(struct
xe_device*xe, structttm_operation_ctx*ctx,
const structxe_bo_shrink_flagsflags, @@ -185,7+201,7 @@
Quoted 27 lines
static bool xe_shrinker_runtime_pm_get(struct
xe_shrinker*shrinker, bool force,
xe_pm_runtime_get(xe); return true;
}drivers/gpu/drm/xe/xe_shrinker.c +0
-1- queue_work(xe->unordered_wq, &shrinker-Quoted 1 line
pm_worker);drivers/gpu/drm/xe/xe_shrinker.c +1
-0+xe_shrinker_queue_pm (shrinker);return false;
}drivers/gpu/drm/xe/xe_shrinker.h +0
-0@@ -11,6 +11,8 @@ struct xe_device; void xe_shrinker_mod_pages(struct xe_shrinker *shrinker,long
shrinkable, long purgeable);drivers/gpu/drm/xe/xe_shrinker.h +2
-0+void xe_shrinker_queue_pm (struct xe_shrinker *shrinker); +int
xe_shrinker_create(struct xe_device *xe);#endif
Quoted 233 lines · Thomas Hellström
Hi!
Quoted 229 lines · Matthew Brost
Quoted 215 lines · Shuicheng
Quoted 214 lines · Matthew Brost
Quoted 11 lines · Shuicheng
Quoted 10 lines · Thomas Hellström
Quoted 9 lines · Shuicheng Lin
xe_bo_shrink()only took a runtime PM reference for the System CCS backup case, and only after the purgeable branch had already returned.
That branch callsxe_bo_move_notify(), which reachesxe_bo_trigger_rebind()->xe_vm_invalidate_vma()and submits a TLB invalidation over GuC CT. The non-purgeable branch reaches the same code throughttm_bo_shrink(.allow_move = true)->xe_bo_move().Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
When the device is runtime suspended the CT is disabled and the send returns
-ENODEV, tripping theXE_WARN_ON()in
xe_bo_trigger_rebind():Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
WARNING: drivers/gpu/drm/xe/xe_bo.c:770 at xe_bo_move_notify+0x1fc/0x450 [xe], CPU#2: xe_madvise/21389 xe_bo_shrink+0x20f/0x2b0 [xe] __xe_shrinker_walk+0x174/0x410 [xe] xe_shrinker_walk+0x56/0xf0 [xe] xe_shrinker_scan+0x10c/0x1e0 [xe] do_shrink_slab+0x176/0x7e0 shrink_slab+0x137/0x990 drop_slab+0x7f/0x130 drop_caches_sysctl_handler+0x9c/0xf0The invalidation is always issued for a fault-mode vm; since commit
4e7ebff69aed("drm/xe/xe3p_lpg: flush shrinker bo cachelines
manually")
it is also issued for a non-fault-mode vm on hardware with an optimized
L2 flush, which is how this surfaced.Add
bo_needs_invalidate(), mirroring that condition, and use it inxe_bo_shrink()to computeneeds_rpmahead of both branches. The reference is then held acrossxe_bo_move_notify()in either path, and is not taken for a bo whose mappings would not have been invalidated.Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Shrinking can run in reclaim contexts where the device may not be resumed, so a bo is skipped when the reference cannot be acquired.
Have
that skip queue the shrinker PM worker:xe_shrinker_runtime_pm_get()is gated on the needs of its own backup pass rather than on this one, and on DGFX it returns before queueing anything, so without this a scan where every candidate is skipped makes no progress, reports nothing scanned and returns
SHRINK_STOPwith nothing arranging a wake.Quoted 20 lines
Quoted 12 lines
Quoted 11 lines
Also gate the System CCS term on !xe_tt->purgeable, since
xe_bo_shrink_purge()frees the pages without a GPU copy.Reproduced with igt@xe_madvise@dontneed-before-exec while the GPU is runtime suspended.
Fixes 00c8efc3180f ("drm/xe: Add a shrinker for xe bos")Assisted-by Claude:claude-opus-5Cc Thomas Hellström <[email protected]>Signed-off-by Shuicheng Lin <[email protected]>Quoted 7 lines
Nice catch.
I wonder, however, can we skip the TLB flush if runtime PM is not available at TLB flush time (
runtime_pm_get_if_active()?) Assuming that if runtime PM is not available, no contexts can be active and they will flush TLB implicitly when becoming active?Quoted 5 lines
Do you mean call
runtime_pm_get_if_active()inxe_tlb_inval_range_tilemask_submit(),
or lower down inxe_tlb_inval_fence_init()?
I'd prefer that too, as it would simplify the code. Two things stop me doing ithere.
Quoted 6 lines
First, the PTE zap also needs the device, and it runs before the flush.
xe_pt_zap_ptes_entry()doesxe_map_memset(), which asserts viaxe_device_assert_mem_access():I agree with this - the zap is not optional for fault mode, it probably isn't for '
xe_device_is_l2_flush_optimized'.Quoted 23 lines
Assertion
!xe_pm_runtime_suspended(xe)failed!xe_pt_zap_ptes_entry+0xb8/0x120 [xe] xe_vm_invalidate_vma_submit+0xb1/0x770 [xe] xe_bo_move_notify+0x1b3/0x450 [xe] xe_bo_shrink+0x20f/0x2b0 [xe]The zap isn't optional - the pages are being freed, so the PTEs have to be cleared either way - and
xe_pt_create()usesXE_BO_FLAG_VRAM_IF_DGFX(), so on discrete it is a BAR write that needs D0. Skipping the flush alone leaves that behind.Second, I can't find the implicit flush in the code.
xe_pm_runtime_resume()only callsxe_gt_resume()(do_gt_restart())
when d3cold.allowed; otherwisexe_gt_runtime_resume()just takes forcewake and doesxe_uc_runtime_resume()- no reset, no invalidation.
That doesn't mean the TLBs survive, it may well be a property of the power state, but I can't confirm the assumption by reading the driver.
Do you know if that is guaranteed? Thanks.Quoted 1 line
Quoted 7 lines
Quoted 4 lines
IIRC It's not totally clear whether this would work for "
has_ctx_tlb_inval"
hardware, and if so we might need to add something similar to this for that hardware.My understanding is that it falls out for free if the check sits above
xe_tlb_inval_issue().Quoted 82 lines
Is it right? Thanks.
Shuicheng
Quoted 78 lines
Thanks,
ThomasQuoted 74 lines
---
drivers/gpu/drm/xe/xe_bo.c | 62
+++++++++++++++++++++++++++---
--
drivers/gpu/drm/xe/xe_shrinker.c | 18 +++++++++-drivers/gpu/drm/xe/xe_shrinker.h| 2 ++3 files changed, 72 insertions(+), 10 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/xe/xe_bo.cindex2eb5d6aac523..274ff97d8542
100644drivers/gpu/drm/xe/xe_bo.c +2
-0@@ -734,6 +734,32 @@ static int xe_ttm_io_mem_reserve(struct ttm_device *bdev, } } +/* +* Whether xe_bo_move_notify() will invalidate the GPU mappings
+of
@bo, and
+ * therefore needs the device resumed to reach the GuC.
+ *
+ * This mirrors the condition under whichxe_bo_trigger_rebind()
below calls
+ *xe_vm_invalidate_vma(): always for a fault-mode vm, and for
+ any
bound vm on
+ * hardware where the L2 flush is optimized. Keep the two in sync.
+ *
+ * Context: Caller must hold the BO's dma-resv lock.
+ */drivers/gpu/drm/xe/xe_bo.c +4
-0+static bool bo_needs_invalidate (struct xe_bo *bo) { +struct drm_gpuvm_bo *vm_bo; + + if(xe_device_is_l2_flush_optimized(xe_bo_device(bo)))
drivers/gpu/drm/xe/xe_bo.c +6
-0+return xe_bo_is_vm_bound (bo); + +xe_bo_assert_held (bo); + +drm_gem_for_each_gpuvm_bo (vm_bo, &bo->ttm.base) + if (xe_vm_in_fault_mode(gpuvm_to_vm(vm_bo-Quoted 1 line
vm)))
drivers/gpu/drm/xe/xe_bo.c +5
-0+return true; + +return false; +} +static int xe_bo_trigger_rebind(struct
xe_device*xe, structxe_bo*bo,
const structttm_operation_ctx*ctx)
{drivers/gpu/drm/xe/xe_bo.c +0
-0@@ -1361,6 +1387,28 @@ long xe_bo_shrink(struct ttm_operation_ctx *ctx, struct ttm_buffer_object *bo,if (!xe_bo_is_xe_bo(bo) || !xe_bo_get_unless_zero(xe_bo))
returnxe_bo_shrink_purge(ctx, bo, scanned);drivers/gpu/drm/xe/xe_bo.c +2
-0+/* +* Moving this bo out of a non-system placement makes
drivers/gpu/drm/xe/xe_bo.c +1
-0+* xe_bo_move_notify() invalidate its GPU mappings over GuC
CT, anddrivers/gpu/drm/xe/xe_bo.c +1
-0+* System CCS needs a gpu copy when moving PL_TT - Quoted 1 line
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/xe/xe_bo.c
Quoted 8 lines
PL_SYSTEM. Bothdrivers/gpu/drm/xe/xe_bo.c +3
-0+* need the device resumed. +*/ + needs_rpm = bo->resource->mem_type !=XE_PL_SYSTEM &&
drivers/gpu/drm/xe/xe_bo.c +3
-0+ (bo_needs_invalidate (xe_bo) || + (!xe_tt->purgeable && !IS_DGFX (xe) && + xe_bo_needs_ccs_pages(xe_bo)));This is a complex enough conditional that my current feeling is to just unconditionally set:
Quoted 4 lines
Quoted 1 line
needs_rpm= true;How about keep the
XE_PL_SYSTEMcheck?I think checking system is reasonable, and better than my suggestion, as this implies we don't have GPU pages (no invalidation) and no need for a CCS copy, and is keep check which is easy to understand.
Quoted 4 lines
/* Both the invalidation and the System CCS copy need the device. */ needs_rpm = bo->resource->mem_type != XE_PL_SYSTEM;
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
@Thomas Hellström you wrote the original code, what do you think?
Yes, let's see what Thomas says.
I think keeping the system check makes sense, and for now a quick fix.
Thanks, will update patch with it.
Quoted 3 lines
However I think avoiding waking the device for small reclaims makes sense, so we should also look at the shrink batch series trying to make that merged.
That points at the xe_shrinker_queue_pm() hunk in this patch, which queues a wake whenever the reference can't be taken. It was added for the "reclaim can stall while suspended" concern. With the mem_type check PL_SYSTEM bos are no longer skipped, so the stall risk is much smaller - should I drop the wake from the respin and leave it to the shrink batch series, or keep it for now?
Quoted 6 lines
If we wanted to optimize this, and add back the complexity, I think calling
xe_vm_invalidate_vma()would only make sense ifruntime_pmis available:1) We need to do it on faulting VMs -> Runtime PM always available.
Agreed, and it's enforced: xe_vm_create_ioctl() rejects FAULT_MODE without LR_MODE, and LR_MODE takes xe_pm_runtime_get_noresume() for the VM's lifetime.
Shuicheng
Quoted 174 lines
2) We need to do it to trap L1 cache flushes and on
l2_flush_optimizedto flush out l2 before reclaiming -> Can we assume that the device always does this before going to sleep? Need to confirm that with Ankur.Thanks,
ThomasQuoted 39 lines
Mattb
Quoted 36 lines
Quoted 7 lines
In practice, on iGPUs where the display is in use, we always hold a runtime PM reference. It would be very unusual for the display to be suspended while the shrinker is running, at least as far as I can tell.
Let's drop this hard-to-understand, likely overengineered conditional.I could only reproduce the issue with display disabled. And the CI machine that hits it has no monitor connected.
Shuicheng
Quoted 23 lines
Thoughts?
Matt
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
drivers/gpu/drm/xe/xe_bo.c +1
-0+if (needs_rpm && !xe_pm_runtime_get_if_active (xe)){
drivers/gpu/drm/xe/xe_bo.c +2
-0+/* +* Resuming is not allowed from all reclaim
contexts, so leavedrivers/gpu/drm/xe/xe_bo.c +1
-0+* this bo alone and ask for the device to be woken
up outsidedrivers/gpu/drm/xe/xe_bo.c +1
-0+* of reclaim.
xe_shrinker_runtime_pm_get()is gated on thedrivers/gpu/drm/xe/xe_bo.c +1
-0+* needs of its own backup pass rather than on ours,
and ondrivers/gpu/drm/xe/xe_bo.c +1
-0+* DGFX it returns before queueing anything, so ask
here.drivers/gpu/drm/xe/xe_bo.c +1
-0+*/ Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/xe/xe_bo.c +4
-0+xe_shrinker_queue_pm (xe->mem.shrinker); + goto out_unref; + } +if (
xe_tt->purgeable) {
if (bo->resource->mem_type!=XE_PL_SYSTEM)
lret =xe_bo_move_notify(xe_bo, ctx); @@ -1369,28
Quoted 118 lines
Quoted 118 lines
Quoted 118 lines
Quoted 118 lines
Quoted 118 lines
+1417,24 @@ long
Quoted 86 lines
xe_bo_shrink(struct
ttm_operation_ctx*ctx, structttm_buffer_object*bo,
if (lret > 0 &&xe_bo_madv_is_dontneed(xe_bo)) xe_bo_set_purgeable_state(xe_bo,
XE_MADV_PURGEABLE_PURGED);drivers/gpu/drm/xe/xe_bo.c +1
-1- goto out_unref; + goto out_put_rpm;}
drivers/gpu/drm/xe/xe_bo.c +0
-1-/* System CCS needs gpu copy when moving PL_TT ->
PL_SYSTEM
*/drivers/gpu/drm/xe/xe_bo.c +0
-1- needs_rpm = (!IS_DGFX(xe) && bo->resource-Quoted 1 line
mem_type!=
XE_PL_SYSTEM&&drivers/gpu/drm/xe/xe_bo.c +0
-4- xe_bo_needs_ccs_pages(xe_bo)); -if (needs_rpm && !xe_pm_runtime_get_if_active (xe)) - goto out_unref; -*scanned +=
tt->num_pages;
lret = ttm_bo_shrink(ctx, bo, (structttm_bo_shrink_flags)
{.purge = false, .writeback = flags.writeback,
.allow_move = true});drivers/gpu/drm/xe/xe_bo.c +0
-2-if (needs_rpm) -xe_pm_runtime_put (xe);if (lret > 0) {
xe_ttm_tt_account_subtract(xe, tt); update_global_total_pages(bo->bdev, - (long)tt-Quoted 1 line
num_pages);}
drivers/gpu/drm/xe/xe_bo.c +4
-0+out_put_rpm: +if (needs_rpm) +xe_pm_runtime_put (xe); +out_unref:
xe_bo_put(xe_bo);drivers/gpu/drm/xe/xe_shrinker.c +2
-0@@ -54,6 +54,22 @@ xe_shrinker_mod_pages(struct xe_shrinker *shrinker, long shrinkable, long purgea write_unlock(&shrinker->lock); } +/** +* xe_shrinker_queue_pm() - Ask for the device to be woken up for
shrinking
+ * @shrinker: Pointer to the structxe_shrinker.
+ *
+ * Queue a worker that takes and drops a runtime PM reference.
Shrinking can
+ * be called from reclaim context, where resuming the device is
+ not
always
+ * allowed, so a caller that needs the device resumed but could
+ not
acquire a
+ * reference uses this to have it woken up outside of reclaim.
+ The
current
+ * scan makes no progress on the affected buffer objects, but a
subsequent one
+ * can.
+ */drivers/gpu/drm/xe/xe_shrinker.c +2
-0+void xe_shrinker_queue_pm (struct xe_shrinker *shrinker) { + queue_work(shrinker->xe->unordered_wq, &shrinker-Quoted 1 line
pm_worker);drivers/gpu/drm/xe/xe_shrinker.c +2
-0+} +Quoted 4 lines
static s64 __xe_shrinker_walk(struct
xe_device*xe, structttm_operation_ctx*ctx, const structxe_bo_shrink_flagsflags, @@ -185,7+201,7 @@
Quoted 26 lines
static bool xe_shrinker_runtime_pm_get(struct
xe_shrinker*shrinker, bool force,
xe_pm_runtime_get(xe); return true;
}drivers/gpu/drm/xe/xe_shrinker.c +0
-1- queue_work(xe->unordered_wq, &shrinker-Quoted 1 line
pm_worker);drivers/gpu/drm/xe/xe_shrinker.c +1
-0+xe_shrinker_queue_pm (shrinker);return false;
}drivers/gpu/drm/xe/xe_shrinker.h +2
-0@@ -11,6 +11,8 @@ struct xe_device; void xe_shrinker_mod_pages(struct xe_shrinker *shrinker,long shrinkable,long purgeable); +void xe_shrinker_queue_pm (struct xe_shrinker *shrinker); + int xe_shrinker_create(struct xe_device *xe);#endif