* [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
@ 2024-05-31 16:02 Rodrigo Vivi
2024-05-31 16:08 ` ✓ CI.Patch_applied: success for " Patchwork
` (8 more replies)
0 siblings, 9 replies; 26+ messages in thread
From: Rodrigo Vivi @ 2024-05-31 16:02 UTC (permalink / raw)
To: intel-xe
Cc: Rodrigo Vivi, Paulo Zanoni, Francois Dugast,
Thomas Hellström, Matthew Brost
Defer the ggtt node removal to a thread if runtime_pm is not active.
The ggtt node removal can be called from multiple places, including
places where we cannot protect with outer callers and places we are
within other locks. So, try to grab the runtime reference if the
device is already active, otherwise defer the removal to a separate
thread from where we are sure we can wake the device up.
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_ggtt.c | 56 ++++++++++++++++++++++++++++++++----
1 file changed, 51 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
index b01a670fecb8..d63bf1a744b5 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.c
+++ b/drivers/gpu/drm/xe/xe_ggtt.c
@@ -443,16 +443,14 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
}
-void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
- bool invalidate)
+static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
{
struct xe_device *xe = tile_to_xe(ggtt->tile);
bool bound;
int idx;
bound = drm_dev_enter(&xe->drm, &idx);
- if (bound)
- xe_pm_runtime_get_noresume(xe);
mutex_lock(&ggtt->lock);
if (bound)
@@ -467,10 +465,58 @@ void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
if (invalidate)
xe_ggtt_invalidate(ggtt);
- xe_pm_runtime_put(xe);
drm_dev_exit(idx);
}
+struct remove_node_work {
+ struct work_struct work;
+ struct xe_ggtt *ggtt;
+ struct drm_mm_node *node;
+ bool invalidate;
+};
+
+static void ggtt_remove_node_work_func(struct work_struct *work)
+{
+ struct remove_node_work *remove_node = container_of(work, struct remove_node_work, work);
+ struct xe_device *xe = tile_to_xe(remove_node->ggtt->tile);
+
+ xe_pm_runtime_get(xe);
+ ggtt_remove_node(remove_node->ggtt, remove_node->node, remove_node->invalidate);
+ xe_pm_runtime_put(xe);
+
+ kfree(remove_node);
+}
+
+static void ggtt_queue_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct remove_node_work *remove_node;
+
+ remove_node = kmalloc(sizeof(*remove_node), GFP_KERNEL);
+ if (!remove_node)
+ return;
+
+ INIT_WORK(&remove_node->work, ggtt_remove_node_work_func);
+ remove_node->ggtt = ggtt;
+ remove_node->node = node;
+ remove_node->invalidate = invalidate;
+
+ queue_work(system_unbound_wq, &remove_node->work);
+}
+
+void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct xe_device *xe = tile_to_xe(ggtt->tile);
+
+ if (xe_pm_runtime_get_if_active(xe)) {
+ ggtt_remove_node(ggtt, node, invalidate);
+ xe_pm_runtime_put(xe);
+ } else {
+ ggtt_queue_remove_node(ggtt, node, invalidate);
+ }
+}
+
void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
{
if (XE_WARN_ON(!bo->ggtt_node.size))
--
2.45.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* ✓ CI.Patch_applied: success for drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-05-31 16:02 [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node Rodrigo Vivi
@ 2024-05-31 16:08 ` Patchwork
2024-05-31 16:08 ` ✓ CI.checkpatch: " Patchwork
` (7 subsequent siblings)
8 siblings, 0 replies; 26+ messages in thread
From: Patchwork @ 2024-05-31 16:08 UTC (permalink / raw)
To: Rodrigo Vivi; +Cc: intel-xe
== Series Details ==
Series: drm/xe: Fix missing runtime outer protection for ggtt_remove_node
URL : https://patchwork.freedesktop.org/series/134308/
State : success
== Summary ==
=== Applying kernel patches on branch 'drm-tip' with base: ===
Base commit: 71fb583af6de drm-tip: 2024y-05m-31d-13h-29m-19s UTC integration manifest
=== git am output follows ===
Applying: drm/xe: Fix missing runtime outer protection for ggtt_remove_node
^ permalink raw reply [flat|nested] 26+ messages in thread* ✓ CI.checkpatch: success for drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-05-31 16:02 [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node Rodrigo Vivi
2024-05-31 16:08 ` ✓ CI.Patch_applied: success for " Patchwork
@ 2024-05-31 16:08 ` Patchwork
2024-05-31 16:09 ` ✓ CI.KUnit: " Patchwork
` (6 subsequent siblings)
8 siblings, 0 replies; 26+ messages in thread
From: Patchwork @ 2024-05-31 16:08 UTC (permalink / raw)
To: Rodrigo Vivi; +Cc: intel-xe
== Series Details ==
Series: drm/xe: Fix missing runtime outer protection for ggtt_remove_node
URL : https://patchwork.freedesktop.org/series/134308/
State : success
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
51ce9f6cd981d42d7467409d7dbc559a450abc1e
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit be177e2fefbbc9bf29c111c9ee1e3919cfb9c017
Author: Rodrigo Vivi <rodrigo.vivi@intel.com>
Date: Fri May 31 12:02:05 2024 -0400
drm/xe: Fix missing runtime outer protection for ggtt_remove_node
Defer the ggtt node removal to a thread if runtime_pm is not active.
The ggtt node removal can be called from multiple places, including
places where we cannot protect with outer callers and places we are
within other locks. So, try to grab the runtime reference if the
device is already active, otherwise defer the removal to a separate
thread from where we are sure we can wake the device up.
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
+ /mt/dim checkpatch 71fb583af6dea41793b38d947a991f06156f7f11 drm-intel
be177e2fefbb drm/xe: Fix missing runtime outer protection for ggtt_remove_node
^ permalink raw reply [flat|nested] 26+ messages in thread* ✓ CI.KUnit: success for drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-05-31 16:02 [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node Rodrigo Vivi
2024-05-31 16:08 ` ✓ CI.Patch_applied: success for " Patchwork
2024-05-31 16:08 ` ✓ CI.checkpatch: " Patchwork
@ 2024-05-31 16:09 ` Patchwork
2024-05-31 16:15 ` [PATCH] " Matthew Brost
` (5 subsequent siblings)
8 siblings, 0 replies; 26+ messages in thread
From: Patchwork @ 2024-05-31 16:09 UTC (permalink / raw)
To: Rodrigo Vivi; +Cc: intel-xe
== Series Details ==
Series: drm/xe: Fix missing runtime outer protection for ggtt_remove_node
URL : https://patchwork.freedesktop.org/series/134308/
State : success
== Summary ==
+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
[16:08:31] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[16:08:35] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make ARCH=um O=.kunit --jobs=48
../lib/iomap.c:156:5: warning: no previous prototype for ‘ioread64_lo_hi’ [-Wmissing-prototypes]
156 | u64 ioread64_lo_hi(const void __iomem *addr)
| ^~~~~~~~~~~~~~
../lib/iomap.c:163:5: warning: no previous prototype for ‘ioread64_hi_lo’ [-Wmissing-prototypes]
163 | u64 ioread64_hi_lo(const void __iomem *addr)
| ^~~~~~~~~~~~~~
../lib/iomap.c:170:5: warning: no previous prototype for ‘ioread64be_lo_hi’ [-Wmissing-prototypes]
170 | u64 ioread64be_lo_hi(const void __iomem *addr)
| ^~~~~~~~~~~~~~~~
../lib/iomap.c:178:5: warning: no previous prototype for ‘ioread64be_hi_lo’ [-Wmissing-prototypes]
178 | u64 ioread64be_hi_lo(const void __iomem *addr)
| ^~~~~~~~~~~~~~~~
../lib/iomap.c:264:6: warning: no previous prototype for ‘iowrite64_lo_hi’ [-Wmissing-prototypes]
264 | void iowrite64_lo_hi(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~
../lib/iomap.c:272:6: warning: no previous prototype for ‘iowrite64_hi_lo’ [-Wmissing-prototypes]
272 | void iowrite64_hi_lo(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~
../lib/iomap.c:280:6: warning: no previous prototype for ‘iowrite64be_lo_hi’ [-Wmissing-prototypes]
280 | void iowrite64be_lo_hi(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~~~
../lib/iomap.c:288:6: warning: no previous prototype for ‘iowrite64be_hi_lo’ [-Wmissing-prototypes]
288 | void iowrite64be_hi_lo(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~~~
[16:09:01] Starting KUnit Kernel (1/1)...
[16:09:01] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[16:09:02] =================== guc_dbm (7 subtests) ===================
[16:09:02] [PASSED] test_empty
[16:09:02] [PASSED] test_default
[16:09:02] ======================== test_size ========================
[16:09:02] [PASSED] 4
[16:09:02] [PASSED] 8
[16:09:02] [PASSED] 32
[16:09:02] [PASSED] 256
[16:09:02] ==================== [PASSED] test_size ====================
[16:09:02] ======================= test_reuse ========================
[16:09:02] [PASSED] 4
[16:09:02] [PASSED] 8
[16:09:02] [PASSED] 32
[16:09:02] [PASSED] 256
[16:09:02] =================== [PASSED] test_reuse ====================
[16:09:02] =================== test_range_overlap ====================
[16:09:02] [PASSED] 4
[16:09:02] [PASSED] 8
[16:09:02] [PASSED] 32
[16:09:02] [PASSED] 256
[16:09:02] =============== [PASSED] test_range_overlap ================
[16:09:02] =================== test_range_compact ====================
[16:09:02] [PASSED] 4
[16:09:02] [PASSED] 8
[16:09:02] [PASSED] 32
[16:09:02] [PASSED] 256
[16:09:02] =============== [PASSED] test_range_compact ================
[16:09:02] ==================== test_range_spare =====================
[16:09:02] [PASSED] 4
[16:09:02] [PASSED] 8
[16:09:02] [PASSED] 32
[16:09:02] [PASSED] 256
[16:09:02] ================ [PASSED] test_range_spare =================
[16:09:02] ===================== [PASSED] guc_dbm =====================
[16:09:02] =================== guc_idm (6 subtests) ===================
[16:09:02] [PASSED] bad_init
[16:09:02] [PASSED] no_init
[16:09:02] [PASSED] init_fini
[16:09:02] [PASSED] check_used
[16:09:02] [PASSED] check_quota
[16:09:02] [PASSED] check_all
[16:09:02] ===================== [PASSED] guc_idm =====================
[16:09:02] ================== no_relay (3 subtests) ===================
[16:09:02] [PASSED] xe_drops_guc2pf_if_not_ready
[16:09:02] [PASSED] xe_drops_guc2vf_if_not_ready
[16:09:02] [PASSED] xe_rejects_send_if_not_ready
[16:09:02] ==================== [PASSED] no_relay =====================
[16:09:02] ================== pf_relay (14 subtests) ==================
[16:09:02] [PASSED] pf_rejects_guc2pf_too_short
[16:09:02] [PASSED] pf_rejects_guc2pf_too_long
[16:09:02] [PASSED] pf_rejects_guc2pf_no_payload
[16:09:02] [PASSED] pf_fails_no_payload
[16:09:02] [PASSED] pf_fails_bad_origin
[16:09:02] [PASSED] pf_fails_bad_type
[16:09:02] [PASSED] pf_txn_reports_error
[16:09:02] [PASSED] pf_txn_sends_pf2guc
[16:09:02] [PASSED] pf_sends_pf2guc
[16:09:02] [SKIPPED] pf_loopback_nop
[16:09:02] [SKIPPED] pf_loopback_echo
[16:09:02] [SKIPPED] pf_loopback_fail
[16:09:02] [SKIPPED] pf_loopback_busy
[16:09:02] [SKIPPED] pf_loopback_retry
[16:09:02] ==================== [PASSED] pf_relay =====================
[16:09:02] ================== vf_relay (3 subtests) ===================
[16:09:02] [PASSED] vf_rejects_guc2vf_too_short
[16:09:02] [PASSED] vf_rejects_guc2vf_too_long
[16:09:02] [PASSED] vf_rejects_guc2vf_no_payload
[16:09:02] ==================== [PASSED] vf_relay =====================
[16:09:02] ================= pf_service (11 subtests) =================
[16:09:02] [PASSED] pf_negotiate_any
[16:09:02] [PASSED] pf_negotiate_base_match
[16:09:02] [PASSED] pf_negotiate_base_newer
[16:09:02] [PASSED] pf_negotiate_base_next
[16:09:02] [SKIPPED] pf_negotiate_base_older
[16:09:02] [PASSED] pf_negotiate_base_prev
[16:09:02] [PASSED] pf_negotiate_latest_match
[16:09:02] [PASSED] pf_negotiate_latest_newer
[16:09:02] [PASSED] pf_negotiate_latest_next
[16:09:02] [SKIPPED] pf_negotiate_latest_older
[16:09:02] [SKIPPED] pf_negotiate_latest_prev
[16:09:02] =================== [PASSED] pf_service ====================
[16:09:02] ===================== lmtt (1 subtest) =====================
[16:09:02] ======================== test_ops =========================
[16:09:02] [PASSED] 2-level
[16:09:02] [PASSED] multi-level
[16:09:02] ==================== [PASSED] test_ops =====================
[16:09:02] ====================== [PASSED] lmtt =======================
[16:09:02] ==================== xe_bo (2 subtests) ====================
[16:09:02] [SKIPPED] xe_ccs_migrate_kunit
[16:09:02] [SKIPPED] xe_bo_evict_kunit
[16:09:02] ===================== [SKIPPED] xe_bo ======================
[16:09:02] ================== xe_dma_buf (1 subtest) ==================
[16:09:02] [SKIPPED] xe_dma_buf_kunit
[16:09:02] =================== [SKIPPED] xe_dma_buf ===================
[16:09:02] ================== xe_migrate (1 subtest) ==================
[16:09:02] [SKIPPED] xe_migrate_sanity_kunit
[16:09:02] =================== [SKIPPED] xe_migrate ===================
[16:09:02] =================== xe_mocs (2 subtests) ===================
[16:09:02] [SKIPPED] xe_live_mocs_kernel_kunit
[16:09:02] [SKIPPED] xe_live_mocs_reset_kunit
[16:09:02] ==================== [SKIPPED] xe_mocs =====================
[16:09:02] ==================== args (11 subtests) ====================
[16:09:02] [PASSED] count_args_test
[16:09:02] [PASSED] call_args_example
[16:09:02] [PASSED] call_args_test
[16:09:02] [PASSED] drop_first_arg_example
[16:09:02] [PASSED] drop_first_arg_test
[16:09:02] [PASSED] first_arg_example
[16:09:02] [PASSED] first_arg_test
[16:09:02] [PASSED] last_arg_example
[16:09:02] [PASSED] last_arg_test
[16:09:02] [PASSED] pick_arg_example
[16:09:02] [PASSED] sep_comma_example
[16:09:02] ====================== [PASSED] args =======================
[16:09:02] =================== xe_pci (2 subtests) ====================
[16:09:02] [PASSED] xe_gmdid_graphics_ip
[16:09:02] [PASSED] xe_gmdid_media_ip
[16:09:02] ===================== [PASSED] xe_pci ======================
[16:09:02] ==================== xe_rtp (1 subtest) ====================
[16:09:02] ================== xe_rtp_process_tests ===================
[16:09:02] [PASSED] coalesce-same-reg
[16:09:02] [PASSED] no-match-no-add
[16:09:02] [PASSED] no-match-no-add-multiple-rules
[16:09:02] [PASSED] two-regs-two-entries
[16:09:02] [PASSED] clr-one-set-other
[16:09:02] [PASSED] set-field
[16:09:02] [PASSED] conflict-duplicate
[16:09:02] [PASSED] conflict-not-disjoint
[16:09:02] [PASSED] conflict-reg-type
[16:09:02] ============== [PASSED] xe_rtp_process_tests ===============
stty: 'standard input': Inappropriate ioctl for device
[16:09:02] ===================== [PASSED] xe_rtp ======================
[16:09:02] ==================== xe_wa (1 subtest) =====================
[16:09:02] ======================== xe_wa_gt =========================
[16:09:02] [PASSED] TIGERLAKE (B0)
[16:09:02] [PASSED] DG1 (A0)
[16:09:02] [PASSED] DG1 (B0)
[16:09:02] [PASSED] ALDERLAKE_S (A0)
[16:09:02] [PASSED] ALDERLAKE_S (B0)
[16:09:02] [PASSED] ALDERLAKE_S (C0)
[16:09:02] [PASSED] ALDERLAKE_S (D0)
[16:09:02] [PASSED] ALDERLAKE_P (A0)
[16:09:02] [PASSED] ALDERLAKE_P (B0)
[16:09:02] [PASSED] ALDERLAKE_P (C0)
[16:09:02] [PASSED] ALDERLAKE_S_RPLS (D0)
[16:09:02] [PASSED] ALDERLAKE_P_RPLU (E0)
[16:09:02] [PASSED] DG2_G10 (C0)
[16:09:02] [PASSED] DG2_G11 (B1)
[16:09:02] [PASSED] DG2_G12 (A1)
[16:09:02] [PASSED] METEORLAKE (g:A0, m:A0)
[16:09:02] [PASSED] METEORLAKE (g:A0, m:A0)
[16:09:02] [PASSED] METEORLAKE (g:A0, m:A0)
[16:09:02] [PASSED] LUNARLAKE (g:A0, m:A0)
[16:09:02] [PASSED] LUNARLAKE (g:B0, m:A0)
[16:09:02] ==================== [PASSED] xe_wa_gt =====================
[16:09:02] ====================== [PASSED] xe_wa ======================
[16:09:02] ============================================================
[16:09:02] Testing complete. Ran 109 tests: passed: 95, skipped: 14
[16:09:02] Elapsed time: 30.564s total, 4.241s configuring, 26.052s building, 0.233s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig
[16:09:02] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[16:09:03] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make ARCH=um O=.kunit --jobs=48
../lib/iomap.c:156:5: warning: no previous prototype for ‘ioread64_lo_hi’ [-Wmissing-prototypes]
156 | u64 ioread64_lo_hi(const void __iomem *addr)
| ^~~~~~~~~~~~~~
../lib/iomap.c:163:5: warning: no previous prototype for ‘ioread64_hi_lo’ [-Wmissing-prototypes]
163 | u64 ioread64_hi_lo(const void __iomem *addr)
| ^~~~~~~~~~~~~~
../lib/iomap.c:170:5: warning: no previous prototype for ‘ioread64be_lo_hi’ [-Wmissing-prototypes]
170 | u64 ioread64be_lo_hi(const void __iomem *addr)
| ^~~~~~~~~~~~~~~~
../lib/iomap.c:178:5: warning: no previous prototype for ‘ioread64be_hi_lo’ [-Wmissing-prototypes]
178 | u64 ioread64be_hi_lo(const void __iomem *addr)
| ^~~~~~~~~~~~~~~~
../lib/iomap.c:264:6: warning: no previous prototype for ‘iowrite64_lo_hi’ [-Wmissing-prototypes]
264 | void iowrite64_lo_hi(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~
../lib/iomap.c:272:6: warning: no previous prototype for ‘iowrite64_hi_lo’ [-Wmissing-prototypes]
272 | void iowrite64_hi_lo(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~
../lib/iomap.c:280:6: warning: no previous prototype for ‘iowrite64be_lo_hi’ [-Wmissing-prototypes]
280 | void iowrite64be_lo_hi(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~~~
../lib/iomap.c:288:6: warning: no previous prototype for ‘iowrite64be_hi_lo’ [-Wmissing-prototypes]
288 | void iowrite64be_hi_lo(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~~~
[16:09:25] Starting KUnit Kernel (1/1)...
[16:09:25] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[16:09:25] ============ drm_test_pick_cmdline (2 subtests) ============
[16:09:25] [PASSED] drm_test_pick_cmdline_res_1920_1080_60
[16:09:25] =============== drm_test_pick_cmdline_named ===============
[16:09:25] [PASSED] NTSC
[16:09:25] [PASSED] NTSC-J
[16:09:25] [PASSED] PAL
[16:09:25] [PASSED] PAL-M
[16:09:25] =========== [PASSED] drm_test_pick_cmdline_named ===========
[16:09:25] ============== [PASSED] drm_test_pick_cmdline ==============
[16:09:25] ================== drm_buddy (7 subtests) ==================
[16:09:25] [PASSED] drm_test_buddy_alloc_limit
[16:09:25] [PASSED] drm_test_buddy_alloc_optimistic
[16:09:25] [PASSED] drm_test_buddy_alloc_pessimistic
[16:09:25] [PASSED] drm_test_buddy_alloc_pathological
[16:09:25] [PASSED] drm_test_buddy_alloc_contiguous
[16:09:25] [PASSED] drm_test_buddy_alloc_clear
[16:09:25] [PASSED] drm_test_buddy_alloc_range_bias
[16:09:25] ==================== [PASSED] drm_buddy ====================
[16:09:25] ============= drm_cmdline_parser (40 subtests) =============
[16:09:25] [PASSED] drm_test_cmdline_force_d_only
[16:09:25] [PASSED] drm_test_cmdline_force_D_only_dvi
[16:09:25] [PASSED] drm_test_cmdline_force_D_only_hdmi
[16:09:25] [PASSED] drm_test_cmdline_force_D_only_not_digital
[16:09:25] [PASSED] drm_test_cmdline_force_e_only
[16:09:25] [PASSED] drm_test_cmdline_res
[16:09:25] [PASSED] drm_test_cmdline_res_vesa
[16:09:25] [PASSED] drm_test_cmdline_res_vesa_rblank
[16:09:25] [PASSED] drm_test_cmdline_res_rblank
[16:09:25] [PASSED] drm_test_cmdline_res_bpp
[16:09:25] [PASSED] drm_test_cmdline_res_refresh
[16:09:25] [PASSED] drm_test_cmdline_res_bpp_refresh
[16:09:25] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced
[16:09:25] [PASSED] drm_test_cmdline_res_bpp_refresh_margins
[16:09:25] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off
[16:09:25] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on
[16:09:25] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog
[16:09:25] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital
[16:09:25] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on
[16:09:25] [PASSED] drm_test_cmdline_res_margins_force_on
[16:09:25] [PASSED] drm_test_cmdline_res_vesa_margins
[16:09:25] [PASSED] drm_test_cmdline_name
[16:09:25] [PASSED] drm_test_cmdline_name_bpp
[16:09:25] [PASSED] drm_test_cmdline_name_option
[16:09:25] [PASSED] drm_test_cmdline_name_bpp_option
[16:09:25] [PASSED] drm_test_cmdline_rotate_0
[16:09:25] [PASSED] drm_test_cmdline_rotate_90
[16:09:25] [PASSED] drm_test_cmdline_rotate_180
[16:09:25] [PASSED] drm_test_cmdline_rotate_270
[16:09:25] [PASSED] drm_test_cmdline_hmirror
[16:09:25] [PASSED] drm_test_cmdline_vmirror
[16:09:25] [PASSED] drm_test_cmdline_margin_options
[16:09:25] [PASSED] drm_test_cmdline_multiple_options
[16:09:25] [PASSED] drm_test_cmdline_bpp_extra_and_option
[16:09:25] [PASSED] drm_test_cmdline_extra_and_option
[16:09:25] [PASSED] drm_test_cmdline_freestanding_options
[16:09:25] [PASSED] drm_test_cmdline_freestanding_force_e_and_options
[16:09:25] [PASSED] drm_test_cmdline_panel_orientation
[16:09:25] ================ drm_test_cmdline_invalid =================
[16:09:25] [PASSED] margin_only
[16:09:25] [PASSED] interlace_only
[16:09:25] [PASSED] res_missing_x
[16:09:25] [PASSED] res_missing_y
[16:09:25] [PASSED] res_bad_y
[16:09:25] [PASSED] res_missing_y_bpp
[16:09:25] [PASSED] res_bad_bpp
[16:09:25] [PASSED] res_bad_refresh
[16:09:25] [PASSED] res_bpp_refresh_force_on_off
[16:09:25] [PASSED] res_invalid_mode
[16:09:25] [PASSED] res_bpp_wrong_place_mode
[16:09:25] [PASSED] name_bpp_refresh
[16:09:25] [PASSED] name_refresh
[16:09:25] [PASSED] name_refresh_wrong_mode
[16:09:25] [PASSED] name_refresh_invalid_mode
[16:09:25] [PASSED] rotate_multiple
[16:09:25] [PASSED] rotate_invalid_val
[16:09:25] [PASSED] rotate_truncated
[16:09:25] [PASSED] invalid_option
[16:09:25] [PASSED] invalid_tv_option
[16:09:25] [PASSED] truncated_tv_option
[16:09:25] ============ [PASSED] drm_test_cmdline_invalid =============
[16:09:25] =============== drm_test_cmdline_tv_options ===============
[16:09:25] [PASSED] NTSC
[16:09:25] [PASSED] NTSC_443
[16:09:25] [PASSED] NTSC_J
[16:09:25] [PASSED] PAL
[16:09:25] [PASSED] PAL_M
[16:09:25] [PASSED] PAL_N
[16:09:25] [PASSED] SECAM
[16:09:25] =========== [PASSED] drm_test_cmdline_tv_options ===========
[16:09:25] =============== [PASSED] drm_cmdline_parser ================
[16:09:25] ========== drmm_connector_hdmi_init (19 subtests) ==========
[16:09:25] [PASSED] drm_test_connector_hdmi_init_valid
[16:09:25] [PASSED] drm_test_connector_hdmi_init_bpc_8
[16:09:25] [PASSED] drm_test_connector_hdmi_init_bpc_10
[16:09:25] [PASSED] drm_test_connector_hdmi_init_bpc_12
[16:09:25] [PASSED] drm_test_connector_hdmi_init_bpc_invalid
[16:09:25] [PASSED] drm_test_connector_hdmi_init_bpc_null
[16:09:25] [PASSED] drm_test_connector_hdmi_init_formats_empty
[16:09:25] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb
[16:09:25] [PASSED] drm_test_connector_hdmi_init_null_ddc
[16:09:25] [PASSED] drm_test_connector_hdmi_init_null_product
[16:09:25] [PASSED] drm_test_connector_hdmi_init_null_vendor
[16:09:25] [PASSED] drm_test_connector_hdmi_init_product_length_exact
[16:09:25] [PASSED] drm_test_connector_hdmi_init_product_length_too_long
[16:09:25] [PASSED] drm_test_connector_hdmi_init_product_valid
[16:09:25] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact
[16:09:25] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long
[16:09:25] [PASSED] drm_test_connector_hdmi_init_vendor_valid
[16:09:25] ========= drm_test_connector_hdmi_init_type_valid =========
[16:09:25] [PASSED] HDMI-A
[16:09:25] [PASSED] HDMI-B
[16:09:25] ===== [PASSED] drm_test_connector_hdmi_init_type_valid =====
[16:09:25] ======== drm_test_connector_hdmi_init_type_invalid ========
[16:09:25] [PASSED] Unknown
[16:09:25] [PASSED] VGA
[16:09:25] [PASSED] DVI-I
[16:09:25] [PASSED] DVI-D
[16:09:25] [PASSED] DVI-A
[16:09:25] [PASSED] Composite
[16:09:25] [PASSED] SVIDEO
[16:09:25] [PASSED] LVDS
[16:09:25] [PASSED] Component
[16:09:25] [PASSED] DIN
[16:09:25] [PASSED] DP
[16:09:25] [PASSED] TV
[16:09:25] [PASSED] eDP
[16:09:25] [PASSED] Virtual
[16:09:25] [PASSED] DSI
[16:09:25] [PASSED] DPI
[16:09:25] [PASSED] Writeback
[16:09:25] [PASSED] SPI
[16:09:25] [PASSED] USB
[16:09:25] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ====
[16:09:25] ============ [PASSED] drmm_connector_hdmi_init =============
[16:09:25] ============= drmm_connector_init (3 subtests) =============
[16:09:25] [PASSED] drm_test_drmm_connector_init
[16:09:25] [PASSED] drm_test_drmm_connector_init_null_ddc
[16:09:25] ========= drm_test_drmm_connector_init_type_valid =========
[16:09:25] [PASSED] Unknown
[16:09:25] [PASSED] VGA
[16:09:25] [PASSED] DVI-I
[16:09:25] [PASSED] DVI-D
[16:09:25] [PASSED] DVI-A
[16:09:25] [PASSED] Composite
[16:09:25] [PASSED] SVIDEO
[16:09:25] [PASSED] LVDS
[16:09:25] [PASSED] Component
[16:09:25] [PASSED] DIN
[16:09:25] [PASSED] DP
[16:09:25] [PASSED] HDMI-A
[16:09:25] [PASSED] HDMI-B
[16:09:25] [PASSED] TV
[16:09:25] [PASSED] eDP
[16:09:25] [PASSED] Virtual
[16:09:25] [PASSED] DSI
[16:09:25] [PASSED] DPI
[16:09:25] [PASSED] Writeback
[16:09:25] [PASSED] SPI
[16:09:25] [PASSED] USB
[16:09:25] ===== [PASSED] drm_test_drmm_connector_init_type_valid =====
[16:09:25] =============== [PASSED] drmm_connector_init ===============
[16:09:25] = drm_connector_attach_broadcast_rgb_property (2 subtests) =
[16:09:25] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property
[16:09:25] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector
[16:09:25] === [PASSED] drm_connector_attach_broadcast_rgb_property ===
[16:09:25] ========== drm_get_tv_mode_from_name (2 subtests) ==========
[16:09:25] ========== drm_test_get_tv_mode_from_name_valid ===========
[16:09:25] [PASSED] NTSC
[16:09:25] [PASSED] NTSC-443
[16:09:25] [PASSED] NTSC-J
[16:09:25] [PASSED] PAL
[16:09:25] [PASSED] PAL-M
[16:09:25] [PASSED] PAL-N
[16:09:25] [PASSED] SECAM
[16:09:25] ====== [PASSED] drm_test_get_tv_mode_from_name_valid =======
[16:09:25] [PASSED] drm_test_get_tv_mode_from_name_truncated
[16:09:25] ============ [PASSED] drm_get_tv_mode_from_name ============
[16:09:25] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) =
[16:09:25] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb
[16:09:25] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc
[16:09:25] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1
[16:09:25] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc
[16:09:25] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1
[16:09:25] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double
[16:09:25] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid =
[16:09:25] [PASSED] VIC 96
[16:09:25] [PASSED] VIC 97
[16:09:25] [PASSED] VIC 101
[16:09:25] [PASSED] VIC 102
[16:09:25] [PASSED] VIC 106
[16:09:25] [PASSED] VIC 107
[16:09:25] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid ===
[16:09:25] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc
[16:09:25] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc
[16:09:25] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc
[16:09:25] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc
[16:09:25] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc
[16:09:25] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ====
[16:09:25] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) ==
[16:09:25] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ====
[16:09:25] [PASSED] Automatic
[16:09:25] [PASSED] Full
[16:09:25] [PASSED] Limited 16:235
[16:09:25] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name ===
[16:09:25] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid
[16:09:25] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ====
[16:09:25] == drm_hdmi_connector_get_output_format_name (2 subtests) ==
[16:09:25] === drm_test_drm_hdmi_connector_get_output_format_name ====
[16:09:25] [PASSED] RGB
[16:09:25] [PASSED] YUV 4:2:0
[16:09:25] [PASSED] YUV 4:2:2
[16:09:25] [PASSED] YUV 4:4:4
[16:09:25] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name ===
[16:09:25] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid
[16:09:25] ==== [PASSED] drm_hdmi_connector_get_output_format_name ====
[16:09:25] ============= drm_damage_helper (21 subtests) ==============
[16:09:25] [PASSED] drm_test_damage_iter_no_damage
[16:09:25] [PASSED] drm_test_damage_iter_no_damage_fractional_src
[16:09:25] [PASSED] drm_test_damage_iter_no_damage_src_moved
[16:09:25] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved
[16:09:25] [PASSED] drm_test_damage_iter_no_damage_not_visible
[16:09:25] [PASSED] drm_test_damage_iter_no_damage_no_crtc
[16:09:25] [PASSED] drm_test_damage_iter_no_damage_no_fb
[16:09:25] [PASSED] drm_test_damage_iter_simple_damage
[16:09:25] [PASSED] drm_test_damage_iter_single_damage
[16:09:25] [PASSED] drm_test_damage_iter_single_damage_intersect_src
[16:09:25] [PASSED] drm_test_damage_iter_single_damage_outside_src
[16:09:25] [PASSED] drm_test_damage_iter_single_damage_fractional_src
[16:09:25] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src
[16:09:25] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src
[16:09:25] [PASSED] drm_test_damage_iter_single_damage_src_moved
[16:09:25] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved
[16:09:25] [PASSED] drm_test_damage_iter_damage
[16:09:25] [PASSED] drm_test_damage_iter_damage_one_intersect
[16:09:25] [PASSED] drm_test_damage_iter_damage_one_outside
[16:09:25] [PASSED] drm_test_damage_iter_damage_src_moved
[16:09:25] [PASSED] drm_test_damage_iter_damage_not_visible
[16:09:25] ================ [PASSED] drm_damage_helper ================
[16:09:25] ============== drm_dp_mst_helper (3 subtests) ==============
[16:09:25] ============== drm_test_dp_mst_calc_pbn_mode ==============
[16:09:25] [PASSED] Clock 154000 BPP 30 DSC disabled
[16:09:25] [PASSED] Clock 234000 BPP 30 DSC disabled
[16:09:25] [PASSED] Clock 297000 BPP 24 DSC disabled
[16:09:25] [PASSED] Clock 332880 BPP 24 DSC enabled
[16:09:25] [PASSED] Clock 324540 BPP 24 DSC enabled
[16:09:25] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ==========
[16:09:25] ============== drm_test_dp_mst_calc_pbn_div ===============
[16:09:25] [PASSED] Link rate 2000000 lane count 4
[16:09:25] [PASSED] Link rate 2000000 lane count 2
[16:09:25] [PASSED] Link rate 2000000 lane count 1
[16:09:25] [PASSED] Link rate 1350000 lane count 4
[16:09:25] [PASSED] Link rate 1350000 lane count 2
[16:09:25] [PASSED] Link rate 1350000 lane count 1
[16:09:25] [PASSED] Link rate 1000000 lane count 4
[16:09:25] [PASSED] Link rate 1000000 lane count 2
[16:09:25] [PASSED] Link rate 1000000 lane count 1
[16:09:25] [PASSED] Link rate 810000 lane count 4
[16:09:25] [PASSED] Link rate 810000 lane count 2
[16:09:25] [PASSED] Link rate 810000 lane count 1
[16:09:25] [PASSED] Link rate 540000 lane count 4
[16:09:25] [PASSED] Link rate 540000 lane count 2
[16:09:25] [PASSED] Link rate 540000 lane count 1
[16:09:25] [PASSED] Link rate 270000 lane count 4
[16:09:25] [PASSED] Link rate 270000 lane count 2
[16:09:25] [PASSED] Link rate 270000 lane count 1
[16:09:25] [PASSED] Link rate 162000 lane count 4
[16:09:25] [PASSED] Link rate 162000 lane count 2
[16:09:25] [PASSED] Link rate 162000 lane count 1
[16:09:25] ========== [PASSED] drm_test_dp_mst_calc_pbn_div ===========
[16:09:25] ========= drm_test_dp_mst_sideband_msg_req_decode =========
[16:09:25] [PASSED] DP_ENUM_PATH_RESOURCES with port number
[16:09:25] [PASSED] DP_POWER_UP_PHY with port number
[16:09:25] [PASSED] DP_POWER_DOWN_PHY with port number
[16:09:25] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks
[16:09:25] [PASSED] DP_ALLOCATE_PAYLOAD with port number
[16:09:25] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI
[16:09:25] [PASSED] DP_ALLOCATE_PAYLOAD with PBN
[16:09:25] [PASSED] DP_QUERY_PAYLOAD with port number
[16:09:25] [PASSED] DP_QUERY_PAYLOAD with VCPI
[16:09:25] [PASSED] DP_REMOTE_DPCD_READ with port number
[16:09:25] [PASSED] DP_REMOTE_DPCD_READ with DPCD address
[16:09:25] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes
[16:09:25] [PASSED] DP_REMOTE_DPCD_WRITE with port number
[16:09:25] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address
[16:09:25] [PASSED] DP_REMOTE_DPCD_WRITE with data array
[16:09:25] [PASSED] DP_REMOTE_I2C_READ with port number
[16:09:25] [PASSED] DP_REMOTE_I2C_READ with I2C device ID
[16:09:25] [PASSED] DP_REMOTE_I2C_READ with transactions array
[16:09:25] [PASSED] DP_REMOTE_I2C_WRITE with port number
[16:09:25] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID
[16:09:25] [PASSED] DP_REMOTE_I2C_WRITE with data array
[16:09:25] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID
[16:09:25] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID
[16:09:25] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event
[16:09:25] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event
[16:09:25] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior
[16:09:25] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior
[16:09:25] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode =====
[16:09:25] ================ [PASSED] drm_dp_mst_helper ================
[16:09:25] ================== drm_exec (7 subtests) ===================
[16:09:25] [PASSED] sanitycheck
[16:09:25] [PASSED] test_lock
[16:09:25] [PASSED] test_lock_unlock
[16:09:25] [PASSED] test_duplicates
[16:09:25] [PASSED] test_prepare
[16:09:25] [PASSED] test_prepare_array
[16:09:25] [PASSED] test_multiple_loops
[16:09:25] ==================== [PASSED] drm_exec =====================
[16:09:25] =========== drm_format_helper_test (17 subtests) ===========
[16:09:25] ============== drm_test_fb_xrgb8888_to_gray8 ==============
[16:09:25] [PASSED] single_pixel_source_buffer
[16:09:25] [PASSED] single_pixel_clip_rectangle
[16:09:25] [PASSED] well_known_colors
[16:09:25] [PASSED] destination_pitch
[16:09:25] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ==========
[16:09:25] ============= drm_test_fb_xrgb8888_to_rgb332 ==============
[16:09:25] [PASSED] single_pixel_source_buffer
[16:09:25] [PASSED] single_pixel_clip_rectangle
[16:09:25] [PASSED] well_known_colors
[16:09:25] [PASSED] destination_pitch
[16:09:25] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ==========
[16:09:25] ============= drm_test_fb_xrgb8888_to_rgb565 ==============
[16:09:25] [PASSED] single_pixel_source_buffer
[16:09:25] [PASSED] single_pixel_clip_rectangle
[16:09:25] [PASSED] well_known_colors
[16:09:25] [PASSED] destination_pitch
[16:09:25] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ==========
[16:09:25] ============ drm_test_fb_xrgb8888_to_xrgb1555 =============
[16:09:25] [PASSED] single_pixel_source_buffer
[16:09:25] [PASSED] single_pixel_clip_rectangle
[16:09:25] [PASSED] well_known_colors
[16:09:25] [PASSED] destination_pitch
[16:09:25] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 =========
[16:09:25] ============ drm_test_fb_xrgb8888_to_argb1555 =============
[16:09:25] [PASSED] single_pixel_source_buffer
[16:09:25] [PASSED] single_pixel_clip_rectangle
[16:09:25] [PASSED] well_known_colors
[16:09:25] [PASSED] destination_pitch
[16:09:25] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 =========
[16:09:25] ============ drm_test_fb_xrgb8888_to_rgba5551 =============
[16:09:25] [PASSED] single_pixel_source_buffer
[16:09:25] [PASSED] single_pixel_clip_rectangle
[16:09:25] [PASSED] well_known_colors
[16:09:25] [PASSED] destination_pitch
[16:09:25] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 =========
[16:09:25] ============= drm_test_fb_xrgb8888_to_rgb888 ==============
[16:09:25] [PASSED] single_pixel_source_buffer
[16:09:25] [PASSED] single_pixel_clip_rectangle
[16:09:25] [PASSED] well_known_colors
[16:09:25] [PASSED] destination_pitch
[16:09:25] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ==========
[16:09:25] ============ drm_test_fb_xrgb8888_to_argb8888 =============
[16:09:25] [PASSED] single_pixel_source_buffer
[16:09:25] [PASSED] single_pixel_clip_rectangle
[16:09:25] [PASSED] well_known_colors
[16:09:25] [PASSED] destination_pitch
[16:09:25] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 =========
[16:09:25] =========== drm_test_fb_xrgb8888_to_xrgb2101010 ===========
[16:09:25] [PASSED] single_pixel_source_buffer
[16:09:25] [PASSED] single_pixel_clip_rectangle
[16:09:25] [PASSED] well_known_colors
[16:09:25] [PASSED] destination_pitch
[16:09:25] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 =======
[16:09:25] =========== drm_test_fb_xrgb8888_to_argb2101010 ===========
[16:09:25] [PASSED] single_pixel_source_buffer
[16:09:25] [PASSED] single_pixel_clip_rectangle
[16:09:25] [PASSED] well_known_colors
[16:09:25] [PASSED] destination_pitch
[16:09:25] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 =======
[16:09:25] ============== drm_test_fb_xrgb8888_to_mono ===============
[16:09:25] [PASSED] single_pixel_source_buffer
[16:09:25] [PASSED] single_pixel_clip_rectangle
[16:09:25] [PASSED] well_known_colors
[16:09:25] [PASSED] destination_pitch
[16:09:25] ========== [PASSED] drm_test_fb_xrgb8888_to_mono ===========
[16:09:25] ==================== drm_test_fb_swab =====================
[16:09:25] [PASSED] single_pixel_source_buffer
[16:09:25] [PASSED] single_pixel_clip_rectangle
[16:09:25] [PASSED] well_known_colors
[16:09:25] [PASSED] destination_pitch
[16:09:25] ================ [PASSED] drm_test_fb_swab =================
[16:09:25] ============ drm_test_fb_xrgb8888_to_xbgr8888 =============
[16:09:25] [PASSED] single_pixel_source_buffer
[16:09:25] [PASSED] single_pixel_clip_rectangle
[16:09:25] [PASSED] well_known_colors
[16:09:25] [PASSED] destination_pitch
[16:09:25] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 =========
[16:09:25] ============ drm_test_fb_xrgb8888_to_abgr8888 =============
[16:09:25] [PASSED] single_pixel_source_buffer
[16:09:25] [PASSED] single_pixel_clip_rectangle
[16:09:25] [PASSED] well_known_colors
[16:09:25] [PASSED] destination_pitch
[16:09:25] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 =========
[16:09:25] ================= drm_test_fb_clip_offset =================
[16:09:25] [PASSED] pass through
[16:09:25] [PASSED] horizontal offset
[16:09:25] [PASSED] vertical offset
[16:09:25] [PASSED] horizontal and vertical offset
[16:09:25] [PASSED] horizontal offset (custom pitch)
[16:09:25] [PASSED] vertical offset (custom pitch)
[16:09:25] [PASSED] horizontal and vertical offset (custom pitch)
[16:09:25] ============= [PASSED] drm_test_fb_clip_offset =============
[16:09:25] ============== drm_test_fb_build_fourcc_list ==============
[16:09:25] [PASSED] no native formats
[16:09:25] [PASSED] XRGB8888 as native format
[16:09:25] [PASSED] remove duplicates
[16:09:25] [PASSED] convert alpha formats
[16:09:25] [PASSED] random formats
[16:09:25] ========== [PASSED] drm_test_fb_build_fourcc_list ==========
[16:09:25] =================== drm_test_fb_memcpy ====================
[16:09:25] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258)
[16:09:25] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258)
[16:09:25] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559)
[16:09:25] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258)
[16:09:25] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258)
[16:09:25] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559)
[16:09:25] [PASSED] well_known_colors: XB24 little-endian (0x34324258)
[16:09:25] [PASSED] well_known_colors: XRA8 little-endian (0x38415258)
[16:09:25] [PASSED] well_known_colors: YU24 little-endian (0x34325559)
[16:09:25] [PASSED] destination_pitch: XB24 little-endian (0x34324258)
[16:09:25] [PASSED] destination_pitch: XRA8 little-endian (0x38415258)
[16:09:25] [PASSED] destination_pitch: YU24 little-endian (0x34325559)
[16:09:25] =============== [PASSED] drm_test_fb_memcpy ================
[16:09:25] ============= [PASSED] drm_format_helper_test ==============
[16:09:25] ================= drm_format (18 subtests) =================
[16:09:25] [PASSED] drm_test_format_block_width_invalid
[16:09:25] [PASSED] drm_test_format_block_width_one_plane
[16:09:25] [PASSED] drm_test_format_block_width_two_plane
[16:09:25] [PASSED] drm_test_format_block_width_three_plane
[16:09:25] [PASSED] drm_test_format_block_width_tiled
[16:09:25] [PASSED] drm_test_format_block_height_invalid
[16:09:25] [PASSED] drm_test_format_block_height_one_plane
[16:09:25] [PASSED] drm_test_format_block_height_two_plane
[16:09:25] [PASSED] drm_test_format_block_height_three_plane
[16:09:25] [PASSED] drm_test_format_block_height_tiled
[16:09:25] [PASSED] drm_test_format_min_pitch_invalid
[16:09:25] [PASSED] drm_test_format_min_pitch_one_plane_8bpp
[16:09:25] [PASSED] drm_test_format_min_pitch_one_plane_16bpp
[16:09:25] [PASSED] drm_test_format_min_pitch_one_plane_24bpp
[16:09:25] [PASSED] drm_test_format_min_pitch_one_plane_32bpp
[16:09:25] [PASSED] drm_test_format_min_pitch_two_plane
[16:09:25] [PASSED] drm_test_format_min_pitch_three_plane_8bpp
[16:09:25] [PASSED] drm_test_format_min_pitch_tiled
[16:09:25] =================== [PASSED] drm_format ====================
[16:09:25] =============== drm_framebuffer (1 subtest) ================
[16:09:25] =============== drm_test_framebuffer_create ===============
[16:09:25] [PASSED] ABGR8888 normal sizes
[16:09:25] [PASSED] ABGR8888 max sizes
[16:09:25] [PASSED] ABGR8888 pitch greater than min required
[16:09:25] [PASSED] ABGR8888 pitch less than min required
[16:09:25] [PASSED] ABGR8888 Invalid width
[16:09:25] [PASSED] ABGR8888 Invalid buffer handle
[16:09:25] [PASSED] No pixel format
[16:09:25] [PASSED] ABGR8888 Width 0
[16:09:25] [PASSED] ABGR8888 Height 0
[16:09:25] [PASSED] ABGR8888 Out of bound height * pitch combination
[16:09:25] [PASSED] ABGR8888 Large buffer offset
[16:09:25] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
[16:09:25] [PASSED] ABGR8888 Valid buffer modifier
[16:09:25] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
[16:09:25] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
[16:09:25] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
[16:09:25] [PASSED] NV12 Normal sizes
[16:09:25] [PASSED] NV12 Max sizes
[16:09:25] [PASSED] NV12 Invalid pitch
[16:09:25] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
[16:09:25] [PASSED] NV12 different modifier per-plane
[16:09:25] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
[16:09:25] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
[16:09:25] [PASSED] NV12 Modifier for inexistent plane
[16:09:25] [PASSED] NV12 Handle for inexistent plane
[16:09:25] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS
[16:09:25] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier
[16:09:25] [PASSED] YVU420 Normal sizes
[16:09:25] [PASSED] YVU420 Max sizes
[16:09:25] [PASSED] YVU420 Invalid pitch
[16:09:25] [PASSED] YVU420 Different pitches
[16:09:25] [PASSED] YVU420 Different buffer offsets/pitches
[16:09:25] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS
[16:09:25] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS
[16:09:25] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS
[16:09:25] [PASSED] YVU420 Valid modifier
[16:09:25] [PASSED] YVU420 Different modifiers per plane
[16:09:25] [PASSED] YVU420 Modifier for inexistent plane
[16:09:25] [PASSED] X0L2 Normal sizes
[16:09:25] [PASSED] X0L2 Max sizes
[16:09:25] [PASSED] X0L2 Invalid pitch
[16:09:25] [PASSED] X0L2 Pitch greater than minimum required
[16:09:25] [PASSED] X0L2 Handle for inexistent plane
[16:09:25] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set
[16:09:25] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
[16:09:25] [PASSED] X0L2 Valid modifier
[16:09:25] [PASSED] X0L2 Modifier for inexistent plane
[16:09:25] =========== [PASSED] drm_test_framebuffer_create ===========
[16:09:25] ================= [PASSED] drm_framebuffer =================
[16:09:25] ================ drm_gem_shmem (8 subtests) ================
[16:09:25] [PASSED] drm_gem_shmem_test_obj_create
[16:09:25] [PASSED] drm_gem_shmem_test_obj_create_private
[16:09:25] [PASSED] drm_gem_shmem_test_pin_pages
[16:09:25] [PASSED] drm_gem_shmem_test_vmap
[16:09:25] [PASSED] drm_gem_shmem_test_get_pages_sgt
[16:09:25] [PASSED] drm_gem_shmem_test_get_sg_table
[16:09:25] [PASSED] drm_gem_shmem_test_madvise
[16:09:25] [PASSED] drm_gem_shmem_test_purge
[16:09:25] ================== [PASSED] drm_gem_shmem ==================
[16:09:25] === drm_atomic_helper_connector_hdmi_check (22 subtests) ===
[16:09:25] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode
[16:09:25] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1
[16:09:25] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode
[16:09:25] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1
[16:09:25] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode
[16:09:25] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1
[16:09:25] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed
[16:09:25] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed
[16:09:25] [PASSED] drm_test_check_hdmi_funcs_reject_rate
[16:09:25] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback
[16:09:25] [PASSED] drm_test_check_max_tmds_rate_format_fallback
[16:09:25] [PASSED] drm_test_check_output_bpc_crtc_mode_changed
[16:09:25] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed
[16:09:25] [PASSED] drm_test_check_output_bpc_dvi
[16:09:25] [PASSED] drm_test_check_output_bpc_format_vic_1
[16:09:25] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only
[16:09:25] [PASSED] drm_test_check_output_bpc_format_display_rgb_only
[16:09:25] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only
[16:09:25] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only
[16:09:25] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc
[16:09:25] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc
[16:09:25] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc
[16:09:25] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ======
[16:09:25] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ====
[16:09:25] [PASSED] drm_test_check_broadcast_rgb_value
[16:09:25] [PASSED] drm_test_check_bpc_8_value
[16:09:25] [PASSED] drm_test_check_bpc_10_value
[16:09:25] [PASSED] drm_test_check_bpc_12_value
[16:09:25] [PASSED] drm_test_check_format_value
[16:09:25] [PASSED] drm_test_check_tmds_char_value
[16:09:25] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ======
[16:09:25] ================= drm_managed (2 subtests) =================
[16:09:25] [PASSED] drm_test_managed_release_action
[16:09:25] [PASSED] drm_test_managed_run_action
[16:09:25] =================== [PASSED] drm_managed ===================
[16:09:25] =================== drm_mm (6 subtests) ====================
[16:09:25] [PASSED] drm_test_mm_init
[16:09:25] [PASSED] drm_test_mm_debug
[16:09:25] [PASSED] drm_test_mm_align32
[16:09:25] [PASSED] drm_test_mm_align64
[16:09:25] [PASSED] drm_test_mm_lowest
[16:09:25] [PASSED] drm_test_mm_highest
[16:09:25] ===================== [PASSED] drm_mm ======================
[16:09:25] ============= drm_modes_analog_tv (4 subtests) =============
[16:09:25] [PASSED] drm_test_modes_analog_tv_ntsc_480i
[16:09:25] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined
[16:09:25] [PASSED] drm_test_modes_analog_tv_pal_576i
[16:09:25] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined
[16:09:25] =============== [PASSED] drm_modes_analog_tv ===============
[16:09:25] ============== drm_plane_helper (2 subtests) ===============
[16:09:25] =============== drm_test_check_plane_state ================
[16:09:25] [PASSED] clipping_simple
[16:09:25] [PASSED] clipping_rotate_reflect
[16:09:25] [PASSED] positioning_simple
[16:09:25] [PASSED] upscaling
[16:09:25] [PASSED] downscaling
[16:09:25] [PASSED] rounding1
[16:09:25] [PASSED] rounding2
[16:09:25] [PASSED] rounding3
[16:09:25] [PASSED] rounding4
[16:09:25] =========== [PASSED] drm_test_check_plane_state ============
[16:09:25] =========== drm_test_check_invalid_plane_state ============
[16:09:25] [PASSED] positioning_invalid
[16:09:25] [PASSED] upscaling_invalid
[16:09:25] [PASSED] downscaling_invalid
[16:09:25] ======= [PASSED] drm_test_check_invalid_plane_state ========
[16:09:25] ================ [PASSED] drm_plane_helper =================
stty: 'standard input': Inappropriate ioctl for device
[16:09:25] ====== drm_connector_helper_tv_get_modes (1 subtest) =======
[16:09:25] ====== drm_test_connector_helper_tv_get_modes_check =======
[16:09:25] [PASSED] None
[16:09:25] [PASSED] PAL
[16:09:25] [PASSED] NTSC
[16:09:25] [PASSED] Both, NTSC Default
[16:09:25] [PASSED] Both, PAL Default
[16:09:25] [PASSED] Both, NTSC Default, with PAL on command-line
[16:09:25] [PASSED] Both, PAL Default, with NTSC on command-line
[16:09:25] == [PASSED] drm_test_connector_helper_tv_get_modes_check ===
[16:09:25] ======== [PASSED] drm_connector_helper_tv_get_modes ========
[16:09:25] ================== drm_rect (9 subtests) ===================
[16:09:25] [PASSED] drm_test_rect_clip_scaled_div_by_zero
[16:09:25] [PASSED] drm_test_rect_clip_scaled_not_clipped
[16:09:25] [PASSED] drm_test_rect_clip_scaled_clipped
[16:09:25] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned
[16:09:25] ================= drm_test_rect_intersect =================
[16:09:25] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0
[16:09:25] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1
[16:09:25] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0
[16:09:25] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1
[16:09:25] [PASSED] right x left: 2x1+0+0 x 3x1+1+0
[16:09:25] [PASSED] left x right: 3x1+1+0 x 2x1+0+0
[16:09:25] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1
[16:09:25] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0
[16:09:25] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1
[16:09:25] [PASSED] touching side: 1x1+0+0 x 1x1+1+0
[16:09:25] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0
[16:09:26] [PASSED] inside another: 2x2+0+0 x 1x1+1+1
[16:09:26] [PASSED] far away: 1x1+0+0 x 1x1+3+6
[16:09:26] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10
[16:09:26] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10
[16:09:26] ============= [PASSED] drm_test_rect_intersect =============
[16:09:26] ================ drm_test_rect_calc_hscale ================
[16:09:26] [PASSED] normal use
[16:09:26] [PASSED] out of max range
[16:09:26] [PASSED] out of min range
[16:09:26] [PASSED] zero dst
[16:09:26] [PASSED] negative src
[16:09:26] [PASSED] negative dst
[16:09:26] ============ [PASSED] drm_test_rect_calc_hscale ============
[16:09:26] ================ drm_test_rect_calc_vscale ================
[16:09:26] [PASSED] normal use
[16:09:26] [PASSED] out of max range
[16:09:26] [PASSED] out of min range
[16:09:26] [PASSED] zero dst
[16:09:26] [PASSED] negative src
[16:09:26] [PASSED] negative dst
[16:09:26] ============ [PASSED] drm_test_rect_calc_vscale ============
[16:09:26] ================== drm_test_rect_rotate ===================
[16:09:26] [PASSED] reflect-x
[16:09:26] [PASSED] reflect-y
[16:09:26] [PASSED] rotate-0
[16:09:26] [PASSED] rotate-90
[16:09:26] [PASSED] rotate-180
[16:09:26] [PASSED] rotate-270
[16:09:26] ============== [PASSED] drm_test_rect_rotate ===============
[16:09:26] ================ drm_test_rect_rotate_inv =================
[16:09:26] [PASSED] reflect-x
[16:09:26] [PASSED] reflect-y
[16:09:26] [PASSED] rotate-0
[16:09:26] [PASSED] rotate-90
[16:09:26] [PASSED] rotate-180
[16:09:26] [PASSED] rotate-270
[16:09:26] ============ [PASSED] drm_test_rect_rotate_inv =============
[16:09:26] ==================== [PASSED] drm_rect =====================
[16:09:26] ============================================================
[16:09:26] Testing complete. Ran 511 tests: passed: 511
[16:09:26] Elapsed time: 23.773s total, 1.691s configuring, 21.812s building, 0.263s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
^ permalink raw reply [flat|nested] 26+ messages in thread* Re: [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-05-31 16:02 [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node Rodrigo Vivi
` (2 preceding siblings ...)
2024-05-31 16:09 ` ✓ CI.KUnit: " Patchwork
@ 2024-05-31 16:15 ` Matthew Brost
2024-05-31 16:31 ` Rodrigo Vivi
2024-05-31 16:21 ` ✓ CI.Build: success for " Patchwork
` (4 subsequent siblings)
8 siblings, 1 reply; 26+ messages in thread
From: Matthew Brost @ 2024-05-31 16:15 UTC (permalink / raw)
To: Rodrigo Vivi
Cc: intel-xe, Paulo Zanoni, Francois Dugast, Thomas Hellström
On Fri, May 31, 2024 at 12:02:05PM -0400, Rodrigo Vivi wrote:
> Defer the ggtt node removal to a thread if runtime_pm is not active.
>
> The ggtt node removal can be called from multiple places, including
> places where we cannot protect with outer callers and places we are
> within other locks. So, try to grab the runtime reference if the
> device is already active, otherwise defer the removal to a separate
> thread from where we are sure we can wake the device up.
>
> Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> Cc: Francois Dugast <francois.dugast@intel.com>
> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> Cc: Matthew Brost <matthew.brost@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/xe/xe_ggtt.c | 56 ++++++++++++++++++++++++++++++++----
> 1 file changed, 51 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
> index b01a670fecb8..d63bf1a744b5 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.c
> +++ b/drivers/gpu/drm/xe/xe_ggtt.c
> @@ -443,16 +443,14 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
> }
>
> -void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> - bool invalidate)
> +static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> + bool invalidate)
> {
> struct xe_device *xe = tile_to_xe(ggtt->tile);
> bool bound;
> int idx;
>
> bound = drm_dev_enter(&xe->drm, &idx);
> - if (bound)
> - xe_pm_runtime_get_noresume(xe);
>
> mutex_lock(&ggtt->lock);
> if (bound)
> @@ -467,10 +465,58 @@ void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> if (invalidate)
> xe_ggtt_invalidate(ggtt);
>
> - xe_pm_runtime_put(xe);
> drm_dev_exit(idx);
> }
>
> +struct remove_node_work {
> + struct work_struct work;
> + struct xe_ggtt *ggtt;
> + struct drm_mm_node *node;
> + bool invalidate;
> +};
> +
> +static void ggtt_remove_node_work_func(struct work_struct *work)
> +{
> + struct remove_node_work *remove_node = container_of(work, struct remove_node_work, work);
> + struct xe_device *xe = tile_to_xe(remove_node->ggtt->tile);
> +
> + xe_pm_runtime_get(xe);
> + ggtt_remove_node(remove_node->ggtt, remove_node->node, remove_node->invalidate);
> + xe_pm_runtime_put(xe);
> +
> + kfree(remove_node);
> +}
> +
> +static void ggtt_queue_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> + bool invalidate)
> +{
> + struct remove_node_work *remove_node;
> +
> + remove_node = kmalloc(sizeof(*remove_node), GFP_KERNEL);
Are we sure this code cannot be in an atomic context or in the path of a
dma-fence? If either of the former is true, then we cannot allocate
memory here. Alternatively, we could use GFP_ATOMIC or preallocate
'remove_node_work' as part of the initial GGTT node allocation. The
latter requires a bit more memory, but GGTT allocations are heavyweight
objects, and using a bit more memory seems fine to me. Also if we do the
later, maybe just add the node to a list and kick a dedicated work item
which process all nodes on the list.
> + if (!remove_node)
> + return;
> +
> + INIT_WORK(&remove_node->work, ggtt_remove_node_work_func);
> + remove_node->ggtt = ggtt;
> + remove_node->node = node;
> + remove_node->invalidate = invalidate;
> +
> + queue_work(system_unbound_wq, &remove_node->work);
I think we need to be careful with system wq usage. Recently we have had
two bugs [1][2] exposed in 6.9 in which we deadlocked by using system
wqs. I think it is likely safer to use a driver dedicated queue here.
Other than these questions, design of patch (try grabbing a PM, if we
can't defer to worker) LGTM.
Matt
[1] https://patchwork.freedesktop.org/series/133210/
[2] https://patchwork.freedesktop.org/patch/586095/?series=131904&rev=1
> +}
> +
> +void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> + bool invalidate)
> +{
> + struct xe_device *xe = tile_to_xe(ggtt->tile);
> +
> + if (xe_pm_runtime_get_if_active(xe)) {
> + ggtt_remove_node(ggtt, node, invalidate);
> + xe_pm_runtime_put(xe);
> + } else {
> + ggtt_queue_remove_node(ggtt, node, invalidate);
> + }
> +}
> +
> void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> {
> if (XE_WARN_ON(!bo->ggtt_node.size))
> --
> 2.45.1
>
^ permalink raw reply [flat|nested] 26+ messages in thread* Re: [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-05-31 16:15 ` [PATCH] " Matthew Brost
@ 2024-05-31 16:31 ` Rodrigo Vivi
2024-05-31 16:36 ` Matthew Brost
0 siblings, 1 reply; 26+ messages in thread
From: Rodrigo Vivi @ 2024-05-31 16:31 UTC (permalink / raw)
To: Matthew Brost
Cc: intel-xe, Paulo Zanoni, Francois Dugast, Thomas Hellström
On Fri, May 31, 2024 at 04:15:31PM +0000, Matthew Brost wrote:
> On Fri, May 31, 2024 at 12:02:05PM -0400, Rodrigo Vivi wrote:
> > Defer the ggtt node removal to a thread if runtime_pm is not active.
> >
> > The ggtt node removal can be called from multiple places, including
> > places where we cannot protect with outer callers and places we are
> > within other locks. So, try to grab the runtime reference if the
> > device is already active, otherwise defer the removal to a separate
> > thread from where we are sure we can wake the device up.
> >
> > Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> > Cc: Francois Dugast <francois.dugast@intel.com>
> > Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> > Cc: Matthew Brost <matthew.brost@intel.com>
> > Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > ---
> > drivers/gpu/drm/xe/xe_ggtt.c | 56 ++++++++++++++++++++++++++++++++----
> > 1 file changed, 51 insertions(+), 5 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
> > index b01a670fecb8..d63bf1a744b5 100644
> > --- a/drivers/gpu/drm/xe/xe_ggtt.c
> > +++ b/drivers/gpu/drm/xe/xe_ggtt.c
> > @@ -443,16 +443,14 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> > return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
> > }
> >
> > -void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> > - bool invalidate)
> > +static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> > + bool invalidate)
> > {
> > struct xe_device *xe = tile_to_xe(ggtt->tile);
> > bool bound;
> > int idx;
> >
> > bound = drm_dev_enter(&xe->drm, &idx);
> > - if (bound)
> > - xe_pm_runtime_get_noresume(xe);
> >
> > mutex_lock(&ggtt->lock);
> > if (bound)
> > @@ -467,10 +465,58 @@ void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> > if (invalidate)
> > xe_ggtt_invalidate(ggtt);
> >
> > - xe_pm_runtime_put(xe);
> > drm_dev_exit(idx);
> > }
> >
> > +struct remove_node_work {
> > + struct work_struct work;
> > + struct xe_ggtt *ggtt;
> > + struct drm_mm_node *node;
> > + bool invalidate;
> > +};
> > +
> > +static void ggtt_remove_node_work_func(struct work_struct *work)
> > +{
> > + struct remove_node_work *remove_node = container_of(work, struct remove_node_work, work);
> > + struct xe_device *xe = tile_to_xe(remove_node->ggtt->tile);
> > +
> > + xe_pm_runtime_get(xe);
> > + ggtt_remove_node(remove_node->ggtt, remove_node->node, remove_node->invalidate);
> > + xe_pm_runtime_put(xe);
> > +
> > + kfree(remove_node);
> > +}
> > +
> > +static void ggtt_queue_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> > + bool invalidate)
> > +{
> > + struct remove_node_work *remove_node;
> > +
> > + remove_node = kmalloc(sizeof(*remove_node), GFP_KERNEL);
>
> Are we sure this code cannot be in an atomic context or in the path of a
> dma-fence? If either of the former is true, then we cannot allocate
> memory here.
not sure tbh
> Alternatively, we could use GFP_ATOMIC or preallocate
> 'remove_node_work' as part of the initial GGTT node allocation. The
> latter requires a bit more memory, but GGTT allocations are heavyweight
> objects, and using a bit more memory seems fine to me.
I had thought about simply going with GFP_ATOMIC.
The pre-allocation doesn't work. Unless we encapsulate the drm_mm_node
into a xe_mm_node with the removal info in it.
> Also if we do the
> later, maybe just add the node to a list and kick a dedicated work item
> which process all nodes on the list.
The list with the single worker also sounds elegant solution here,
to process all the removals in the same way. But for simplicity,
if GFP_ATOMIC works I would prefer to go with this that minimizes
the thread and it has 1:1 work:item.
>
> > + if (!remove_node)
> > + return;
> > +
> > + INIT_WORK(&remove_node->work, ggtt_remove_node_work_func);
> > + remove_node->ggtt = ggtt;
> > + remove_node->node = node;
> > + remove_node->invalidate = invalidate;
> > +
> > + queue_work(system_unbound_wq, &remove_node->work);
>
> I think we need to be careful with system wq usage. Recently we have had
> two bugs [1][2] exposed in 6.9 in which we deadlocked by using system
> wqs. I think it is likely safer to use a driver dedicated queue here.
ouch! probably good to create a dedicated wq for xe_ggtt so we don't
interfeer with anything else.
>
> Other than these questions, design of patch (try grabbing a PM, if we
> can't defer to worker) LGTM.
>
> Matt
>
> [1] https://patchwork.freedesktop.org/series/133210/
> [2] https://patchwork.freedesktop.org/patch/586095/?series=131904&rev=1
>
> > +}
> > +
> > +void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> > + bool invalidate)
> > +{
> > + struct xe_device *xe = tile_to_xe(ggtt->tile);
> > +
> > + if (xe_pm_runtime_get_if_active(xe)) {
> > + ggtt_remove_node(ggtt, node, invalidate);
> > + xe_pm_runtime_put(xe);
> > + } else {
> > + ggtt_queue_remove_node(ggtt, node, invalidate);
> > + }
> > +}
> > +
> > void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> > {
> > if (XE_WARN_ON(!bo->ggtt_node.size))
> > --
> > 2.45.1
> >
^ permalink raw reply [flat|nested] 26+ messages in thread* Re: [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-05-31 16:31 ` Rodrigo Vivi
@ 2024-05-31 16:36 ` Matthew Brost
0 siblings, 0 replies; 26+ messages in thread
From: Matthew Brost @ 2024-05-31 16:36 UTC (permalink / raw)
To: Rodrigo Vivi
Cc: intel-xe, Paulo Zanoni, Francois Dugast, Thomas Hellström
On Fri, May 31, 2024 at 12:31:34PM -0400, Rodrigo Vivi wrote:
> On Fri, May 31, 2024 at 04:15:31PM +0000, Matthew Brost wrote:
> > On Fri, May 31, 2024 at 12:02:05PM -0400, Rodrigo Vivi wrote:
> > > Defer the ggtt node removal to a thread if runtime_pm is not active.
> > >
> > > The ggtt node removal can be called from multiple places, including
> > > places where we cannot protect with outer callers and places we are
> > > within other locks. So, try to grab the runtime reference if the
> > > device is already active, otherwise defer the removal to a separate
> > > thread from where we are sure we can wake the device up.
> > >
> > > Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> > > Cc: Francois Dugast <francois.dugast@intel.com>
> > > Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> > > Cc: Matthew Brost <matthew.brost@intel.com>
> > > Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > > ---
> > > drivers/gpu/drm/xe/xe_ggtt.c | 56 ++++++++++++++++++++++++++++++++----
> > > 1 file changed, 51 insertions(+), 5 deletions(-)
> > >
> > > diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
> > > index b01a670fecb8..d63bf1a744b5 100644
> > > --- a/drivers/gpu/drm/xe/xe_ggtt.c
> > > +++ b/drivers/gpu/drm/xe/xe_ggtt.c
> > > @@ -443,16 +443,14 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> > > return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
> > > }
> > >
> > > -void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> > > - bool invalidate)
> > > +static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> > > + bool invalidate)
> > > {
> > > struct xe_device *xe = tile_to_xe(ggtt->tile);
> > > bool bound;
> > > int idx;
> > >
> > > bound = drm_dev_enter(&xe->drm, &idx);
> > > - if (bound)
> > > - xe_pm_runtime_get_noresume(xe);
> > >
> > > mutex_lock(&ggtt->lock);
> > > if (bound)
> > > @@ -467,10 +465,58 @@ void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> > > if (invalidate)
> > > xe_ggtt_invalidate(ggtt);
> > >
> > > - xe_pm_runtime_put(xe);
> > > drm_dev_exit(idx);
> > > }
> > >
> > > +struct remove_node_work {
> > > + struct work_struct work;
> > > + struct xe_ggtt *ggtt;
> > > + struct drm_mm_node *node;
> > > + bool invalidate;
> > > +};
> > > +
> > > +static void ggtt_remove_node_work_func(struct work_struct *work)
> > > +{
> > > + struct remove_node_work *remove_node = container_of(work, struct remove_node_work, work);
> > > + struct xe_device *xe = tile_to_xe(remove_node->ggtt->tile);
> > > +
> > > + xe_pm_runtime_get(xe);
> > > + ggtt_remove_node(remove_node->ggtt, remove_node->node, remove_node->invalidate);
> > > + xe_pm_runtime_put(xe);
> > > +
> > > + kfree(remove_node);
> > > +}
> > > +
> > > +static void ggtt_queue_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> > > + bool invalidate)
> > > +{
> > > + struct remove_node_work *remove_node;
> > > +
> > > + remove_node = kmalloc(sizeof(*remove_node), GFP_KERNEL);
> >
> > Are we sure this code cannot be in an atomic context or in the path of a
> > dma-fence? If either of the former is true, then we cannot allocate
> > memory here.
>
> not sure tbh
>
Me either, we need some deeper thought to answer. Given that is fairly
deep layer I say it is convincible the latter could be true or become
true at some point. The former likely isn't given that we use mutexes
in this path. I'd say best to design this with that in mind.
> > Alternatively, we could use GFP_ATOMIC or preallocate
> > 'remove_node_work' as part of the initial GGTT node allocation. The
> > latter requires a bit more memory, but GGTT allocations are heavyweight
> > objects, and using a bit more memory seems fine to me.
>
> I had thought about simply going with GFP_ATOMIC.
>
> The pre-allocation doesn't work. Unless we encapsulate the drm_mm_node
> into a xe_mm_node with the removal info in it.
>
I was thinking a xe_mm_node subclass.
> > Also if we do the
> > later, maybe just add the node to a list and kick a dedicated work item
> > which process all nodes on the list.
>
> The list with the single worker also sounds elegant solution here,
> to process all the removals in the same way. But for simplicity,
> if GFP_ATOMIC works I would prefer to go with this that minimizes
> the thread and it has 1:1 work:item.
>
I'll leave GFP_ATOMIC vs. xe_mm_node subclass to you.
> >
> > > + if (!remove_node)
> > > + return;
> > > +
> > > + INIT_WORK(&remove_node->work, ggtt_remove_node_work_func);
> > > + remove_node->ggtt = ggtt;
> > > + remove_node->node = node;
> > > + remove_node->invalidate = invalidate;
> > > +
> > > + queue_work(system_unbound_wq, &remove_node->work);
> >
> > I think we need to be careful with system wq usage. Recently we have had
> > two bugs [1][2] exposed in 6.9 in which we deadlocked by using system
> > wqs. I think it is likely safer to use a driver dedicated queue here.
>
> ouch! probably good to create a dedicated wq for xe_ggtt so we don't
> interfeer with anything else.
>
+1 or use an existing Xe wq. Again I'll leave this to you.
Matt
> >
> > Other than these questions, design of patch (try grabbing a PM, if we
> > can't defer to worker) LGTM.
> >
> > Matt
> >
> > [1] https://patchwork.freedesktop.org/series/133210/
> > [2] https://patchwork.freedesktop.org/patch/586095/?series=131904&rev=1
> >
> > > +}
> > > +
> > > +void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> > > + bool invalidate)
> > > +{
> > > + struct xe_device *xe = tile_to_xe(ggtt->tile);
> > > +
> > > + if (xe_pm_runtime_get_if_active(xe)) {
> > > + ggtt_remove_node(ggtt, node, invalidate);
> > > + xe_pm_runtime_put(xe);
> > > + } else {
> > > + ggtt_queue_remove_node(ggtt, node, invalidate);
> > > + }
> > > +}
> > > +
> > > void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> > > {
> > > if (XE_WARN_ON(!bo->ggtt_node.size))
> > > --
> > > 2.45.1
> > >
^ permalink raw reply [flat|nested] 26+ messages in thread
* ✓ CI.Build: success for drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-05-31 16:02 [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node Rodrigo Vivi
` (3 preceding siblings ...)
2024-05-31 16:15 ` [PATCH] " Matthew Brost
@ 2024-05-31 16:21 ` Patchwork
2024-05-31 16:21 ` ✗ CI.Hooks: failure " Patchwork
` (3 subsequent siblings)
8 siblings, 0 replies; 26+ messages in thread
From: Patchwork @ 2024-05-31 16:21 UTC (permalink / raw)
To: Rodrigo Vivi; +Cc: intel-xe
== Series Details ==
Series: drm/xe: Fix missing runtime outer protection for ggtt_remove_node
URL : https://patchwork.freedesktop.org/series/134308/
State : success
== Summary ==
lib/modules/6.10.0-rc1-xe/kernel/sound/core/seq/
lib/modules/6.10.0-rc1-xe/kernel/sound/core/seq/snd-seq.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/core/snd-seq-device.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/core/snd-hwdep.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/core/snd.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/core/snd-pcm.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/core/snd-compress.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/core/snd-timer.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soundcore.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/intel/
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/intel/atom/
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/intel/atom/snd-soc-sst-atom-hifi2-platform.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/intel/atom/sst/
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/intel/atom/sst/snd-intel-sst-acpi.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/intel/atom/sst/snd-intel-sst-core.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/intel/common/
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/intel/common/snd-soc-acpi-intel-match.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/amd/
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/amd/snd-acp-config.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/intel/
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/intel/snd-sof-pci-intel-tgl.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/intel/snd-sof-intel-hda-mlink.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/intel/snd-sof-pci-intel-cnl.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/intel/snd-sof-pci-intel-lnl.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/intel/snd-sof-intel-hda-common.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/intel/snd-sof-intel-hda-generic.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/intel/snd-sof-intel-hda.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/intel/snd-sof-pci-intel-mtl.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/amd/
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/amd/snd-sof-amd-renoir.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/amd/snd-sof-amd-acp.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/snd-sof-utils.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/snd-sof-pci.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/snd-sof.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/snd-sof-probes.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/xtensa/
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/sof/xtensa/snd-sof-xtensa-dsp.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/snd-soc-core.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/snd-soc-acpi.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/codecs/
lib/modules/6.10.0-rc1-xe/kernel/sound/soc/codecs/snd-soc-hdac-hda.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/hda/
lib/modules/6.10.0-rc1-xe/kernel/sound/hda/snd-intel-sdw-acpi.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/hda/ext/
lib/modules/6.10.0-rc1-xe/kernel/sound/hda/ext/snd-hda-ext-core.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/hda/snd-intel-dspcfg.ko
lib/modules/6.10.0-rc1-xe/kernel/sound/hda/snd-hda-core.ko
lib/modules/6.10.0-rc1-xe/kernel/arch/
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/kernel/
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/kernel/msr.ko
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/kernel/cpuid.ko
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/crypto/
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/crypto/sha512-ssse3.ko
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/crypto/crct10dif-pclmul.ko
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/crypto/ghash-clmulni-intel.ko
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/crypto/sha1-ssse3.ko
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/crypto/crc32-pclmul.ko
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/crypto/sha256-ssse3.ko
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/crypto/aesni-intel.ko
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/crypto/polyval-clmulni.ko
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/events/
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/events/intel/
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/events/intel/intel-cstate.ko
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/events/rapl.ko
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/kvm/
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/kvm/kvm.ko
lib/modules/6.10.0-rc1-xe/kernel/arch/x86/kvm/kvm-intel.ko
lib/modules/6.10.0-rc1-xe/kernel/crypto/
lib/modules/6.10.0-rc1-xe/kernel/crypto/crypto_simd.ko
lib/modules/6.10.0-rc1-xe/kernel/crypto/cmac.ko
lib/modules/6.10.0-rc1-xe/kernel/crypto/ccm.ko
lib/modules/6.10.0-rc1-xe/kernel/crypto/cryptd.ko
lib/modules/6.10.0-rc1-xe/kernel/crypto/polyval-generic.ko
lib/modules/6.10.0-rc1-xe/kernel/crypto/async_tx/
lib/modules/6.10.0-rc1-xe/kernel/crypto/async_tx/async_xor.ko
lib/modules/6.10.0-rc1-xe/kernel/crypto/async_tx/async_tx.ko
lib/modules/6.10.0-rc1-xe/kernel/crypto/async_tx/async_memcpy.ko
lib/modules/6.10.0-rc1-xe/kernel/crypto/async_tx/async_pq.ko
lib/modules/6.10.0-rc1-xe/kernel/crypto/async_tx/async_raid6_recov.ko
lib/modules/6.10.0-rc1-xe/build
lib/modules/6.10.0-rc1-xe/modules.alias.bin
lib/modules/6.10.0-rc1-xe/modules.builtin
lib/modules/6.10.0-rc1-xe/modules.softdep
lib/modules/6.10.0-rc1-xe/modules.alias
lib/modules/6.10.0-rc1-xe/modules.order
lib/modules/6.10.0-rc1-xe/modules.symbols
lib/modules/6.10.0-rc1-xe/modules.dep.bin
+ mv kernel-nodebug.tar.gz ..
+ cd ..
+ rm -rf archive
++ date +%s
^[[0Ksection_end:1717172464:package_x86_64_nodebug
^[[0K
+ echo -e '\e[0Ksection_end:1717172464:package_x86_64_nodebug\r\e[0K'
+ sync
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
^ permalink raw reply [flat|nested] 26+ messages in thread* ✗ CI.Hooks: failure for drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-05-31 16:02 [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node Rodrigo Vivi
` (4 preceding siblings ...)
2024-05-31 16:21 ` ✓ CI.Build: success for " Patchwork
@ 2024-05-31 16:21 ` Patchwork
2024-05-31 16:22 ` ✓ CI.checksparse: success " Patchwork
` (2 subsequent siblings)
8 siblings, 0 replies; 26+ messages in thread
From: Patchwork @ 2024-05-31 16:21 UTC (permalink / raw)
To: Rodrigo Vivi; +Cc: intel-xe
== Series Details ==
Series: drm/xe: Fix missing runtime outer protection for ggtt_remove_node
URL : https://patchwork.freedesktop.org/series/134308/
State : failure
== Summary ==
run-parts: executing /workspace/ci/hooks/00-showenv
+ export
+ grep -Ei '(^|\W)CI_'
declare -x CI_KERNEL_BUILD_DIR="/workspace/kernel/build64-default"
declare -x CI_KERNEL_SRC_DIR="/workspace/kernel"
declare -x CI_TOOLS_SRC_DIR="/workspace/ci"
declare -x CI_WORKSPACE_DIR="/workspace"
run-parts: executing /workspace/ci/hooks/10-build-W1
+ SRC_DIR=/workspace/kernel
+ RESTORE_DISPLAY_CONFIG=0
+ '[' -n /workspace/kernel/build64-default ']'
+ BUILD_DIR=/workspace/kernel/build64-default
+ cd /workspace/kernel
++ nproc
+ make -j48 O=/workspace/kernel/build64-default modules_prepare
make[1]: Entering directory '/workspace/kernel/build64-default'
GEN Makefile
UPD include/generated/compile.h
UPD include/config/kernel.release
mkdir -p /workspace/kernel/build64-default/tools/objtool && make O=/workspace/kernel/build64-default subdir=tools/objtool --no-print-directory -C objtool
UPD include/generated/utsrelease.h
HOSTCC /workspace/kernel/build64-default/tools/objtool/fixdep.o
CALL ../scripts/checksyscalls.sh
HOSTLD /workspace/kernel/build64-default/tools/objtool/fixdep-in.o
LINK /workspace/kernel/build64-default/tools/objtool/fixdep
INSTALL libsubcmd_headers
CC /workspace/kernel/build64-default/tools/objtool/libsubcmd/exec-cmd.o
CC /workspace/kernel/build64-default/tools/objtool/libsubcmd/help.o
CC /workspace/kernel/build64-default/tools/objtool/libsubcmd/pager.o
CC /workspace/kernel/build64-default/tools/objtool/libsubcmd/parse-options.o
CC /workspace/kernel/build64-default/tools/objtool/libsubcmd/run-command.o
CC /workspace/kernel/build64-default/tools/objtool/libsubcmd/sigchain.o
CC /workspace/kernel/build64-default/tools/objtool/libsubcmd/subcmd-config.o
LD /workspace/kernel/build64-default/tools/objtool/libsubcmd/libsubcmd-in.o
AR /workspace/kernel/build64-default/tools/objtool/libsubcmd/libsubcmd.a
CC /workspace/kernel/build64-default/tools/objtool/weak.o
CC /workspace/kernel/build64-default/tools/objtool/check.o
CC /workspace/kernel/build64-default/tools/objtool/special.o
CC /workspace/kernel/build64-default/tools/objtool/builtin-check.o
CC /workspace/kernel/build64-default/tools/objtool/objtool.o
CC /workspace/kernel/build64-default/tools/objtool/elf.o
CC /workspace/kernel/build64-default/tools/objtool/orc_gen.o
CC /workspace/kernel/build64-default/tools/objtool/orc_dump.o
CC /workspace/kernel/build64-default/tools/objtool/libstring.o
CC /workspace/kernel/build64-default/tools/objtool/libctype.o
CC /workspace/kernel/build64-default/tools/objtool/str_error_r.o
CC /workspace/kernel/build64-default/tools/objtool/librbtree.o
CC /workspace/kernel/build64-default/tools/objtool/arch/x86/special.o
CC /workspace/kernel/build64-default/tools/objtool/arch/x86/decode.o
CC /workspace/kernel/build64-default/tools/objtool/arch/x86/orc.o
LD /workspace/kernel/build64-default/tools/objtool/arch/x86/objtool-in.o
LD /workspace/kernel/build64-default/tools/objtool/objtool-in.o
LINK /workspace/kernel/build64-default/tools/objtool/objtool
make[1]: Leaving directory '/workspace/kernel/build64-default'
++ nproc
+ make -j48 O=/workspace/kernel/build64-default M=drivers/gpu/drm/xe W=1
make[1]: Entering directory '/workspace/kernel/build64-default'
../scripts/Makefile.build:41: drivers/gpu/drm/xe/Makefile: No such file or directory
make[3]: *** No rule to make target 'drivers/gpu/drm/xe/Makefile'. Stop.
make[2]: *** [/workspace/kernel/Makefile:1934: drivers/gpu/drm/xe] Error 2
make[1]: Leaving directory '/workspace/kernel/build64-default'
make[1]: *** [/workspace/kernel/Makefile:240: __sub-make] Error 2
make: *** [Makefile:240: __sub-make] Error 2
run-parts: /workspace/ci/hooks/10-build-W1 exited with return code 2
^ permalink raw reply [flat|nested] 26+ messages in thread* ✓ CI.checksparse: success for drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-05-31 16:02 [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node Rodrigo Vivi
` (5 preceding siblings ...)
2024-05-31 16:21 ` ✗ CI.Hooks: failure " Patchwork
@ 2024-05-31 16:22 ` Patchwork
2024-05-31 17:03 ` ✓ CI.BAT: " Patchwork
2024-05-31 18:19 ` ✗ CI.FULL: failure " Patchwork
8 siblings, 0 replies; 26+ messages in thread
From: Patchwork @ 2024-05-31 16:22 UTC (permalink / raw)
To: Rodrigo Vivi; +Cc: intel-xe
== Series Details ==
Series: drm/xe: Fix missing runtime outer protection for ggtt_remove_node
URL : https://patchwork.freedesktop.org/series/134308/
State : success
== Summary ==
+ trap cleanup EXIT
+ KERNEL=/kernel
+ MT=/root/linux/maintainer-tools
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools /root/linux/maintainer-tools
Cloning into '/root/linux/maintainer-tools'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ make -C /root/linux/maintainer-tools
make: Entering directory '/root/linux/maintainer-tools'
cc -O2 -g -Wextra -o remap-log remap-log.c
make: Leaving directory '/root/linux/maintainer-tools'
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ /root/linux/maintainer-tools/dim sparse --fast 71fb583af6dea41793b38d947a991f06156f7f11
Sparse version: 0.6.1 (Ubuntu: 0.6.1-2build1)
Fast mode used, each commit won't be checked separately.
Okay!
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
^ permalink raw reply [flat|nested] 26+ messages in thread* ✓ CI.BAT: success for drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-05-31 16:02 [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node Rodrigo Vivi
` (6 preceding siblings ...)
2024-05-31 16:22 ` ✓ CI.checksparse: success " Patchwork
@ 2024-05-31 17:03 ` Patchwork
2024-05-31 18:19 ` ✗ CI.FULL: failure " Patchwork
8 siblings, 0 replies; 26+ messages in thread
From: Patchwork @ 2024-05-31 17:03 UTC (permalink / raw)
To: Rodrigo Vivi; +Cc: intel-xe
[-- Attachment #1: Type: text/plain, Size: 1342 bytes --]
== Series Details ==
Series: drm/xe: Fix missing runtime outer protection for ggtt_remove_node
URL : https://patchwork.freedesktop.org/series/134308/
State : success
== Summary ==
CI Bug Log - changes from xe-1390-71fb583af6dea41793b38d947a991f06156f7f11_BAT -> xe-pw-134308v1_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (5 -> 5)
------------------------------
No changes in participating hosts
Known issues
------------
Here are the changes found in xe-pw-134308v1_BAT that come from known issues:
### IGT changes ###
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[Intel XE#1069]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1069
Build changes
-------------
* IGT: IGT_7875 -> IGT_7876
* Linux: xe-1390-71fb583af6dea41793b38d947a991f06156f7f11 -> xe-pw-134308v1
IGT_7875: 44d48b5aec41357e90aa7990c8877ca807ff8d57 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
IGT_7876: 7876
xe-1390-71fb583af6dea41793b38d947a991f06156f7f11: 71fb583af6dea41793b38d947a991f06156f7f11
xe-pw-134308v1: 134308v1
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/index.html
[-- Attachment #2: Type: text/html, Size: 1833 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread* ✗ CI.FULL: failure for drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-05-31 16:02 [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node Rodrigo Vivi
` (7 preceding siblings ...)
2024-05-31 17:03 ` ✓ CI.BAT: " Patchwork
@ 2024-05-31 18:19 ` Patchwork
8 siblings, 0 replies; 26+ messages in thread
From: Patchwork @ 2024-05-31 18:19 UTC (permalink / raw)
To: Rodrigo Vivi; +Cc: intel-xe
[-- Attachment #1: Type: text/plain, Size: 81346 bytes --]
== Series Details ==
Series: drm/xe: Fix missing runtime outer protection for ggtt_remove_node
URL : https://patchwork.freedesktop.org/series/134308/
State : failure
== Summary ==
CI Bug Log - changes from xe-1390-71fb583af6dea41793b38d947a991f06156f7f11_full -> xe-pw-134308v1_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with xe-pw-134308v1_full absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in xe-pw-134308v1_full, please notify your bug team (I915-ci-infra@lists.freedesktop.org) to allow them
to document this new failure mode, which will reduce false positives in CI.
Participating hosts (3 -> 3)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in xe-pw-134308v1_full:
### IGT changes ###
#### Possible regressions ####
* igt@core_hotunplug@hotreplug:
- shard-dg2-set2: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-436/igt@core_hotunplug@hotreplug.html
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-433/igt@core_hotunplug@hotreplug.html
* igt@core_hotunplug@hotreplug-lateclose:
- shard-adlp: NOTRUN -> [ABORT][3]
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-6/igt@core_hotunplug@hotreplug-lateclose.html
- shard-dg2-set2: NOTRUN -> [ABORT][4]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-436/igt@core_hotunplug@hotreplug-lateclose.html
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses.
They do not affect the overall result.
* igt@core_hotunplug@hotunplug-rescan:
- {shard-lnl}: [PASS][5] -> [ABORT][6] +1 other test abort
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-lnl-3/igt@core_hotunplug@hotunplug-rescan.html
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-lnl-3/igt@core_hotunplug@hotunplug-rescan.html
* igt@kms_bw@linear-tiling-1-displays-3840x2160p:
- {shard-lnl}: [PASS][7] -> [DMESG-WARN][8]
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-lnl-6/igt@kms_bw@linear-tiling-1-displays-3840x2160p.html
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-lnl-8/igt@kms_bw@linear-tiling-1-displays-3840x2160p.html
* igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-16bpp-4tile-upscaling:
- {shard-lnl}: [PASS][9] -> [INCOMPLETE][10]
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-lnl-4/igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-16bpp-4tile-upscaling.html
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-lnl-2/igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-16bpp-4tile-upscaling.html
* igt@xe_vm@munmap-style-unbind-many-end:
- {shard-lnl}: NOTRUN -> [INCOMPLETE][11]
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-lnl-3/igt@xe_vm@munmap-style-unbind-many-end.html
Known issues
------------
Here are the changes found in xe-pw-134308v1_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@core_hotunplug@hotunplug-rescan:
- shard-dg2-set2: [PASS][12] -> [INCOMPLETE][13] ([Intel XE#1195] / [Intel XE#1451])
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-435/igt@core_hotunplug@hotunplug-rescan.html
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-464/igt@core_hotunplug@hotunplug-rescan.html
- shard-adlp: NOTRUN -> [INCOMPLETE][14] ([Intel XE#1195] / [Intel XE#1365] / [Intel XE#1451])
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@core_hotunplug@hotunplug-rescan.html
* igt@kms_big_fb@4-tiled-addfb-size-overflow:
- shard-adlp: NOTRUN -> [SKIP][15] ([Intel XE#1201] / [Intel XE#610])
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@kms_big_fb@4-tiled-addfb-size-overflow.html
* igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-0:
- shard-adlp: NOTRUN -> [SKIP][16] ([Intel XE#1124] / [Intel XE#1201]) +15 other tests skip
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-0.html
* igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip:
- shard-adlp: [PASS][17] -> [FAIL][18] ([Intel XE#1204])
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-1/igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-6/igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html
* igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-async-flip:
- shard-adlp: NOTRUN -> [FAIL][19] ([Intel XE#1204])
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-async-flip.html
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180:
- shard-adlp: [PASS][20] -> [FAIL][21] ([Intel XE#1874])
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-6/igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180.html
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180.html
* igt@kms_big_fb@y-tiled-32bpp-rotate-270:
- shard-adlp: NOTRUN -> [SKIP][22] ([Intel XE#1201] / [Intel XE#316]) +2 other tests skip
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@kms_big_fb@y-tiled-32bpp-rotate-270.html
* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-async-flip:
- shard-adlp: NOTRUN -> [DMESG-WARN][23] ([Intel XE#1214] / [Intel XE#324])
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-async-flip.html
* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip:
- shard-adlp: NOTRUN -> [DMESG-FAIL][24] ([Intel XE#324])
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip.html
* igt@kms_big_fb@yf-tiled-32bpp-rotate-0:
- shard-dg2-set2: NOTRUN -> [SKIP][25] ([Intel XE#1124] / [Intel XE#1201])
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-463/igt@kms_big_fb@yf-tiled-32bpp-rotate-0.html
* igt@kms_bw@linear-tiling-4-displays-1920x1080p:
- shard-dg2-set2: NOTRUN -> [SKIP][26] ([Intel XE#1201] / [Intel XE#367])
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-463/igt@kms_bw@linear-tiling-4-displays-1920x1080p.html
* igt@kms_bw@linear-tiling-4-displays-3840x2160p:
- shard-adlp: NOTRUN -> [SKIP][27] ([Intel XE#1201] / [Intel XE#367]) +2 other tests skip
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@kms_bw@linear-tiling-4-displays-3840x2160p.html
* igt@kms_ccs@bad-pixel-format-4-tiled-mtl-rc-ccs@pipe-c-hdmi-a-1:
- shard-adlp: NOTRUN -> [SKIP][28] ([Intel XE#1201] / [Intel XE#787]) +53 other tests skip
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@kms_ccs@bad-pixel-format-4-tiled-mtl-rc-ccs@pipe-c-hdmi-a-1.html
* igt@kms_ccs@bad-pixel-format-y-tiled-gen12-rc-ccs-cc@pipe-b-dp-4:
- shard-dg2-set2: NOTRUN -> [SKIP][29] ([Intel XE#1201] / [Intel XE#787]) +20 other tests skip
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-466/igt@kms_ccs@bad-pixel-format-y-tiled-gen12-rc-ccs-cc@pipe-b-dp-4.html
* igt@kms_ccs@crc-primary-basic-4-tiled-xe2-ccs:
- shard-adlp: NOTRUN -> [SKIP][30] ([Intel XE#1201] / [Intel XE#1252])
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@kms_ccs@crc-primary-basic-4-tiled-xe2-ccs.html
* igt@kms_ccs@crc-primary-rotation-180-4-tiled-dg2-rc-ccs-cc@pipe-d-hdmi-a-1:
- shard-adlp: NOTRUN -> [SKIP][31] ([Intel XE#1201] / [Intel XE#455] / [Intel XE#787]) +35 other tests skip
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@kms_ccs@crc-primary-rotation-180-4-tiled-dg2-rc-ccs-cc@pipe-d-hdmi-a-1.html
* igt@kms_ccs@random-ccs-data-4-tiled-mtl-rc-ccs-cc:
- shard-dg2-set2: NOTRUN -> [SKIP][32] ([Intel XE#1201] / [Intel XE#455] / [Intel XE#787]) +5 other tests skip
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-436/igt@kms_ccs@random-ccs-data-4-tiled-mtl-rc-ccs-cc.html
* igt@kms_cdclk@mode-transition:
- shard-adlp: NOTRUN -> [SKIP][33] ([Intel XE#1201] / [Intel XE#314] / [Intel XE#455]) +1 other test skip
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@kms_cdclk@mode-transition.html
* igt@kms_cdclk@mode-transition@pipe-b-hdmi-a-1:
- shard-adlp: NOTRUN -> [SKIP][34] ([Intel XE#1201] / [Intel XE#314]) +2 other tests skip
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@kms_cdclk@mode-transition@pipe-b-hdmi-a-1.html
* igt@kms_cdclk@mode-transition@pipe-c-dp-4:
- shard-dg2-set2: NOTRUN -> [SKIP][35] ([Intel XE#1201] / [Intel XE#314]) +3 other tests skip
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-433/igt@kms_cdclk@mode-transition@pipe-c-dp-4.html
* igt@kms_chamelium_color@ctm-blue-to-red:
- shard-adlp: NOTRUN -> [SKIP][36] ([Intel XE#1201] / [Intel XE#306]) +3 other tests skip
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@kms_chamelium_color@ctm-blue-to-red.html
* igt@kms_chamelium_frames@dp-crc-fast:
- shard-dg2-set2: NOTRUN -> [SKIP][37] ([Intel XE#1201] / [Intel XE#373]) +1 other test skip
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-433/igt@kms_chamelium_frames@dp-crc-fast.html
* igt@kms_chamelium_hpd@hdmi-hpd-storm-disable:
- shard-adlp: NOTRUN -> [SKIP][38] ([Intel XE#1201] / [Intel XE#373]) +14 other tests skip
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@kms_chamelium_hpd@hdmi-hpd-storm-disable.html
* igt@kms_color@ctm-0-25@pipe-c:
- shard-adlp: NOTRUN -> [SKIP][39] ([Intel XE#1201]) +14 other tests skip
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_color@ctm-0-25@pipe-c.html
* igt@kms_content_protection@dp-mst-type-1:
- shard-dg2-set2: NOTRUN -> [SKIP][40] ([Intel XE#1201] / [Intel XE#307])
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-466/igt@kms_content_protection@dp-mst-type-1.html
* igt@kms_cursor_crc@cursor-onscreen-256x256@pipe-a-hdmi-a-6:
- shard-dg2-set2: NOTRUN -> [DMESG-WARN][41] ([Intel XE#1214] / [Intel XE#282]) +1 other test dmesg-warn
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-435/igt@kms_cursor_crc@cursor-onscreen-256x256@pipe-a-hdmi-a-6.html
* igt@kms_cursor_crc@cursor-random-64x64:
- shard-adlp: [PASS][42] -> [SKIP][43] ([Intel XE#1201]) +3 other tests skip
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-1/igt@kms_cursor_crc@cursor-random-64x64.html
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_cursor_crc@cursor-random-64x64.html
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-varying-size:
- shard-dg2-set2: NOTRUN -> [SKIP][44] ([Intel XE#1201] / [Intel XE#323])
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-434/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-varying-size.html
* igt@kms_cursor_legacy@cursorb-vs-flipa-atomic-transitions-varying-size:
- shard-adlp: NOTRUN -> [SKIP][45] ([Intel XE#1201] / [Intel XE#309]) +4 other tests skip
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@kms_cursor_legacy@cursorb-vs-flipa-atomic-transitions-varying-size.html
* igt@kms_cursor_legacy@forked-move@pipe-b:
- shard-dg2-set2: [PASS][46] -> [DMESG-WARN][47] ([Intel XE#1214] / [Intel XE#282]) +6 other tests dmesg-warn
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-464/igt@kms_cursor_legacy@forked-move@pipe-b.html
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-464/igt@kms_cursor_legacy@forked-move@pipe-b.html
* igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions-varying-size:
- shard-adlp: NOTRUN -> [SKIP][48] ([Intel XE#1201] / [Intel XE#323])
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions-varying-size.html
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-adlp: NOTRUN -> [INCOMPLETE][49] ([Intel XE#1195] / [Intel XE#927])
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@kms_fbcon_fbt@fbc-suspend.html
* igt@kms_feature_discovery@display-3x:
- shard-adlp: NOTRUN -> [SKIP][50] ([Intel XE#1201] / [Intel XE#703])
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@kms_feature_discovery@display-3x.html
* igt@kms_feature_discovery@psr1:
- shard-adlp: NOTRUN -> [SKIP][51] ([Intel XE#1135] / [Intel XE#1201]) +1 other test skip
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@kms_feature_discovery@psr1.html
* igt@kms_flip@2x-flip-vs-panning:
- shard-adlp: NOTRUN -> [SKIP][52] ([Intel XE#1201] / [Intel XE#310]) +10 other tests skip
[52]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@kms_flip@2x-flip-vs-panning.html
* igt@kms_flip@flip-vs-suspend-interruptible@a-hdmi-a1:
- shard-adlp: NOTRUN -> [DMESG-WARN][53] ([Intel XE#1191] / [Intel XE#1214] / [Intel XE#1608]) +3 other tests dmesg-warn
[53]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_flip@flip-vs-suspend-interruptible@a-hdmi-a1.html
* igt@kms_flip@flip-vs-suspend-interruptible@b-hdmi-a1:
- shard-adlp: NOTRUN -> [DMESG-WARN][54] ([Intel XE#1214] / [Intel XE#1608]) +5 other tests dmesg-warn
[54]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_flip@flip-vs-suspend-interruptible@b-hdmi-a1.html
* igt@kms_flip@flip-vs-suspend@b-dp4:
- shard-dg2-set2: [PASS][55] -> [INCOMPLETE][56] ([Intel XE#1195])
[55]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_flip@flip-vs-suspend@b-dp4.html
[56]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-463/igt@kms_flip@flip-vs-suspend@b-dp4.html
* igt@kms_frontbuffer_tracking@drrs-2p-primscrn-spr-indfb-draw-mmap-wc:
- shard-dg2-set2: NOTRUN -> [SKIP][57] ([Intel XE#651])
[57]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_frontbuffer_tracking@drrs-2p-primscrn-spr-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-wc:
- shard-adlp: NOTRUN -> [FAIL][58] ([Intel XE#1861]) +1 other test fail
[58]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcdrrs-1p-primscrn-spr-indfb-draw-blt:
- shard-adlp: NOTRUN -> [SKIP][59] ([Intel XE#1201] / [Intel XE#651]) +17 other tests skip
[59]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@kms_frontbuffer_tracking@fbcdrrs-1p-primscrn-spr-indfb-draw-blt.html
* igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-cur-indfb-draw-blt:
- shard-dg2-set2: NOTRUN -> [SKIP][60] ([Intel XE#1201] / [Intel XE#651]) +7 other tests skip
[60]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-435/igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-cur-indfb-draw-blt.html
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-indfb-pgflip-blt:
- shard-adlp: NOTRUN -> [SKIP][61] ([Intel XE#1201] / [Intel XE#653]) +23 other tests skip
[61]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@kms_frontbuffer_tracking@psr-1p-primscrn-indfb-pgflip-blt.html
* igt@kms_frontbuffer_tracking@psr-2p-primscrn-shrfb-plflip-blt:
- shard-dg2-set2: NOTRUN -> [SKIP][62] ([Intel XE#1201] / [Intel XE#653]) +8 other tests skip
[62]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-436/igt@kms_frontbuffer_tracking@psr-2p-primscrn-shrfb-plflip-blt.html
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-cur-indfb-draw-render:
- shard-adlp: NOTRUN -> [SKIP][63] ([Intel XE#1201] / [Intel XE#656]) +49 other tests skip
[63]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-cur-indfb-draw-render.html
* igt@kms_plane@pixel-format@pipe-b:
- shard-adlp: NOTRUN -> [FAIL][64] ([Intel XE#1331] / [Intel XE#1978]) +2 other tests fail
[64]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_plane@pixel-format@pipe-b.html
* igt@kms_plane_scaling@plane-downscale-factor-0-25-with-pixel-format:
- shard-adlp: NOTRUN -> [SKIP][65] ([Intel XE#1201] / [Intel XE#455]) +29 other tests skip
[65]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_plane_scaling@plane-downscale-factor-0-25-with-pixel-format.html
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-b-hdmi-a-1:
- shard-adlp: NOTRUN -> [SKIP][66] ([Intel XE#1201] / [Intel XE#305]) +5 other tests skip
[66]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-b-hdmi-a-1.html
* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25@pipe-d-hdmi-a-1:
- shard-adlp: NOTRUN -> [SKIP][67] ([Intel XE#1201] / [Intel XE#305] / [Intel XE#455]) +3 other tests skip
[67]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25@pipe-d-hdmi-a-1.html
* igt@kms_pm_dc@dc5-psr:
- shard-adlp: NOTRUN -> [SKIP][68] ([Intel XE#1129] / [Intel XE#1201])
[68]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@kms_pm_dc@dc5-psr.html
* igt@kms_pm_dc@dc6-psr:
- shard-dg2-set2: NOTRUN -> [SKIP][69] ([Intel XE#1129] / [Intel XE#1201])
[69]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-466/igt@kms_pm_dc@dc6-psr.html
* igt@kms_pm_rpm@dpms-mode-unset-non-lpsp:
- shard-adlp: NOTRUN -> [SKIP][70] ([Intel XE#1201] / [Intel XE#836])
[70]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@kms_pm_rpm@dpms-mode-unset-non-lpsp.html
* igt@kms_psr2_su@page_flip-nv12:
- shard-dg2-set2: NOTRUN -> [SKIP][71] ([Intel XE#1122] / [Intel XE#1201]) +1 other test skip
[71]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-434/igt@kms_psr2_su@page_flip-nv12.html
- shard-adlp: NOTRUN -> [SKIP][72] ([Intel XE#1122] / [Intel XE#1201])
[72]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_psr2_su@page_flip-nv12.html
* igt@kms_psr@fbc-psr-basic:
- shard-adlp: NOTRUN -> [SKIP][73] ([Intel XE#1201] / [Intel XE#929]) +20 other tests skip
[73]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@kms_psr@fbc-psr-basic.html
* igt@kms_psr@psr2-cursor-plane-onoff:
- shard-dg2-set2: NOTRUN -> [SKIP][74] ([Intel XE#1201] / [Intel XE#929]) +4 other tests skip
[74]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-436/igt@kms_psr@psr2-cursor-plane-onoff.html
* igt@kms_psr_stress_test@invalidate-primary-flip-overlay:
- shard-adlp: NOTRUN -> [SKIP][75] ([Intel XE#1149] / [Intel XE#1201])
[75]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@kms_psr_stress_test@invalidate-primary-flip-overlay.html
* igt@kms_rotation_crc@bad-tiling:
- shard-dg2-set2: NOTRUN -> [SKIP][76] ([Intel XE#1201] / [Intel XE#327])
[76]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-433/igt@kms_rotation_crc@bad-tiling.html
* igt@kms_rotation_crc@multiplane-rotation-cropping-bottom:
- shard-adlp: NOTRUN -> [FAIL][77] ([Intel XE#1874]) +4 other tests fail
[77]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_rotation_crc@multiplane-rotation-cropping-bottom.html
* igt@kms_rotation_crc@primary-4-tiled-reflect-x-180:
- shard-adlp: NOTRUN -> [SKIP][78] ([Intel XE#1127] / [Intel XE#1201]) +1 other test skip
[78]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_rotation_crc@primary-4-tiled-reflect-x-180.html
* igt@kms_rotation_crc@primary-rotation-90:
- shard-adlp: NOTRUN -> [SKIP][79] ([Intel XE#1201] / [Intel XE#327]) +1 other test skip
[79]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-6/igt@kms_rotation_crc@primary-rotation-90.html
* igt@kms_sysfs_edid_timing:
- shard-adlp: NOTRUN -> [FAIL][80] ([Intel XE#1174])
[80]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@kms_sysfs_edid_timing.html
* igt@kms_universal_plane@cursor-fb-leak@pipe-a-hdmi-a-6:
- shard-dg2-set2: [PASS][81] -> [FAIL][82] ([Intel XE#899])
[81]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-464/igt@kms_universal_plane@cursor-fb-leak@pipe-a-hdmi-a-6.html
[82]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-466/igt@kms_universal_plane@cursor-fb-leak@pipe-a-hdmi-a-6.html
* igt@kms_vrr@flip-dpms:
- shard-dg2-set2: NOTRUN -> [SKIP][83] ([Intel XE#1201] / [Intel XE#455]) +2 other tests skip
[83]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-435/igt@kms_vrr@flip-dpms.html
* igt@kms_writeback@writeback-invalid-parameters:
- shard-adlp: NOTRUN -> [SKIP][84] ([Intel XE#1201] / [Intel XE#756]) +1 other test skip
[84]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_writeback@writeback-invalid-parameters.html
* igt@sriov_basic@enable-vfs-autoprobe-on:
- shard-dg2-set2: NOTRUN -> [SKIP][85] ([Intel XE#1091] / [Intel XE#1201]) +1 other test skip
[85]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-433/igt@sriov_basic@enable-vfs-autoprobe-on.html
* igt@sriov_basic@enable-vfs-bind-unbind-each:
- shard-adlp: NOTRUN -> [SKIP][86] ([Intel XE#1201] / [Intel XE#1932]) +1 other test skip
[86]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@sriov_basic@enable-vfs-bind-unbind-each.html
* igt@xe_ccs@block-copy-compressed-inc-dimension:
- shard-adlp: NOTRUN -> [SKIP][87] ([Intel XE#1201] / [Intel XE#455] / [Intel XE#488]) +2 other tests skip
[87]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-6/igt@xe_ccs@block-copy-compressed-inc-dimension.html
* igt@xe_compute@ccs-mode-basic:
- shard-adlp: NOTRUN -> [SKIP][88] ([Intel XE#1201] / [Intel XE#1447])
[88]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@xe_compute@ccs-mode-basic.html
* igt@xe_compute_preempt@compute-threadgroup-preempt@engine-drm_xe_engine_class_compute:
- shard-dg2-set2: NOTRUN -> [SKIP][89] ([Intel XE#1201] / [Intel XE#1280] / [Intel XE#455]) +1 other test skip
[89]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-434/igt@xe_compute_preempt@compute-threadgroup-preempt@engine-drm_xe_engine_class_compute.html
* igt@xe_copy_basic@mem-copy-linear-0xfd:
- shard-adlp: NOTRUN -> [SKIP][90] ([Intel XE#1123] / [Intel XE#1201])
[90]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@xe_copy_basic@mem-copy-linear-0xfd.html
* igt@xe_copy_basic@mem-set-linear-0x3fff:
- shard-adlp: NOTRUN -> [SKIP][91] ([Intel XE#1126] / [Intel XE#1201])
[91]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@xe_copy_basic@mem-set-linear-0x3fff.html
- shard-dg2-set2: NOTRUN -> [SKIP][92] ([Intel XE#1126] / [Intel XE#1201])
[92]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-463/igt@xe_copy_basic@mem-set-linear-0x3fff.html
* igt@xe_dma_buf_sync@export-dma-buf-once:
- shard-adlp: NOTRUN -> [DMESG-WARN][93] ([Intel XE#1214]) +5 other tests dmesg-warn
[93]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@xe_dma_buf_sync@export-dma-buf-once.html
* igt@xe_evict@evict-beng-mixed-threads-large:
- shard-dg2-set2: [PASS][94] -> [DMESG-FAIL][95] ([Intel XE#482])
[94]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-434/igt@xe_evict@evict-beng-mixed-threads-large.html
[95]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@xe_evict@evict-beng-mixed-threads-large.html
* igt@xe_evict@evict-beng-small-cm:
- shard-adlp: NOTRUN -> [SKIP][96] ([Intel XE#1201] / [Intel XE#261] / [Intel XE#688]) +5 other tests skip
[96]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@xe_evict@evict-beng-small-cm.html
* igt@xe_evict@evict-beng-threads-large:
- shard-dg2-set2: [PASS][97] -> [TIMEOUT][98] ([Intel XE#1473])
[97]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-464/igt@xe_evict@evict-beng-threads-large.html
[98]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-433/igt@xe_evict@evict-beng-threads-large.html
* igt@xe_evict@evict-cm-threads-large:
- shard-dg2-set2: [PASS][99] -> [INCOMPLETE][100] ([Intel XE#1473] / [Intel XE#392])
[99]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-464/igt@xe_evict@evict-cm-threads-large.html
[100]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@xe_evict@evict-cm-threads-large.html
* igt@xe_evict@evict-mixed-many-threads-small:
- shard-adlp: NOTRUN -> [SKIP][101] ([Intel XE#1201] / [Intel XE#261]) +3 other tests skip
[101]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@xe_evict@evict-mixed-many-threads-small.html
* igt@xe_evict_ccs@evict-overcommit-parallel-nofree-samefd:
- shard-adlp: NOTRUN -> [SKIP][102] ([Intel XE#1201] / [Intel XE#688]) +2 other tests skip
[102]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@xe_evict_ccs@evict-overcommit-parallel-nofree-samefd.html
* igt@xe_exec_basic@many-rebind:
- shard-adlp: [PASS][103] -> [DMESG-WARN][104] ([Intel XE#1214]) +6 other tests dmesg-warn
[103]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-1/igt@xe_exec_basic@many-rebind.html
[104]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@xe_exec_basic@many-rebind.html
* igt@xe_exec_basic@multigpu-many-execqueues-many-vm-null-rebind:
- shard-adlp: NOTRUN -> [SKIP][105] ([Intel XE#1201] / [Intel XE#1392]) +11 other tests skip
[105]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@xe_exec_basic@multigpu-many-execqueues-many-vm-null-rebind.html
* igt@xe_exec_fault_mode@many-execqueues-bindexecqueue-userptr-imm:
- shard-dg2-set2: NOTRUN -> [SKIP][106] ([Intel XE#1201] / [Intel XE#288]) +10 other tests skip
[106]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-463/igt@xe_exec_fault_mode@many-execqueues-bindexecqueue-userptr-imm.html
* igt@xe_exec_fault_mode@many-execqueues-userptr-rebind:
- shard-adlp: NOTRUN -> [SKIP][107] ([Intel XE#1201] / [Intel XE#288]) +31 other tests skip
[107]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@xe_exec_fault_mode@many-execqueues-userptr-rebind.html
* igt@xe_exec_reset@cat-error:
- shard-adlp: NOTRUN -> [DMESG-WARN][108] ([Intel XE#1214] / [Intel XE#1638] / [Intel XE#358])
[108]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@xe_exec_reset@cat-error.html
* igt@xe_exec_threads@threads-mixed-shared-vm-basic:
- shard-dg2-set2: [PASS][109] -> [INCOMPLETE][110] ([Intel XE#1169] / [Intel XE#1195] / [Intel XE#1356])
[109]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-466/igt@xe_exec_threads@threads-mixed-shared-vm-basic.html
[110]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-466/igt@xe_exec_threads@threads-mixed-shared-vm-basic.html
* igt@xe_module_load@reload:
- shard-dg2-set2: [PASS][111] -> [DMESG-WARN][112] ([Intel XE#1162])
[111]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-434/igt@xe_module_load@reload.html
[112]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@xe_module_load@reload.html
* igt@xe_noexec_ping_pong:
- shard-adlp: NOTRUN -> [SKIP][113] ([Intel XE#1201] / [Intel XE#379])
[113]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@xe_noexec_ping_pong.html
* igt@xe_peer2peer@read:
- shard-adlp: NOTRUN -> [SKIP][114] ([Intel XE#1061] / [Intel XE#1201])
[114]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@xe_peer2peer@read.html
* igt@xe_pm@d3cold-basic-exec:
- shard-adlp: NOTRUN -> [SKIP][115] ([Intel XE#1201] / [Intel XE#366])
[115]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@xe_pm@d3cold-basic-exec.html
* igt@xe_pm@s2idle-vm-bind-unbind-all:
- shard-dg2-set2: [PASS][116] -> [INCOMPLETE][117] ([Intel XE#1195] / [Intel XE#1694])
[116]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-435/igt@xe_pm@s2idle-vm-bind-unbind-all.html
[117]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-435/igt@xe_pm@s2idle-vm-bind-unbind-all.html
* igt@xe_pm@s2idle-vm-bind-userptr:
- shard-adlp: NOTRUN -> [INCOMPLETE][118] ([Intel XE#1195] / [Intel XE#1694])
[118]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@xe_pm@s2idle-vm-bind-userptr.html
* igt@xe_pm@s3-basic-exec:
- shard-dg2-set2: [PASS][119] -> [DMESG-WARN][120] ([Intel XE#1162] / [Intel XE#1214]) +3 other tests dmesg-warn
[119]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@xe_pm@s3-basic-exec.html
[120]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-463/igt@xe_pm@s3-basic-exec.html
- shard-adlp: [PASS][121] -> [INCOMPLETE][122] ([Intel XE#1044] / [Intel XE#1195] / [Intel XE#1358])
[121]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-1/igt@xe_pm@s3-basic-exec.html
[122]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@xe_pm@s3-basic-exec.html
* igt@xe_pm@s3-vm-bind-unbind-all:
- shard-dg2-set2: NOTRUN -> [DMESG-WARN][123] ([Intel XE#1162] / [Intel XE#1214] / [Intel XE#1941])
[123]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-435/igt@xe_pm@s3-vm-bind-unbind-all.html
* igt@xe_pm@vram-d3cold-threshold:
- shard-adlp: NOTRUN -> [SKIP][124] ([Intel XE#1201] / [Intel XE#579])
[124]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@xe_pm@vram-d3cold-threshold.html
* igt@xe_query@multigpu-query-cs-cycles:
- shard-dg2-set2: NOTRUN -> [SKIP][125] ([Intel XE#1201] / [Intel XE#944])
[125]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-463/igt@xe_query@multigpu-query-cs-cycles.html
* igt@xe_query@multigpu-query-invalid-extension:
- shard-adlp: NOTRUN -> [SKIP][126] ([Intel XE#1201] / [Intel XE#944]) +3 other tests skip
[126]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@xe_query@multigpu-query-invalid-extension.html
#### Possible fixes ####
* igt@kms_big_fb@x-tiled-8bpp-rotate-180:
- shard-adlp: [FAIL][127] ([Intel XE#1874]) -> [PASS][128]
[127]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-6/igt@kms_big_fb@x-tiled-8bpp-rotate-180.html
[128]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@kms_big_fb@x-tiled-8bpp-rotate-180.html
* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-dg2-mc-ccs@pipe-a-hdmi-a-6:
- shard-dg2-set2: [INCOMPLETE][129] ([Intel XE#1195]) -> [PASS][130] +1 other test pass
[129]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-463/igt@kms_ccs@crc-sprite-planes-basic-4-tiled-dg2-mc-ccs@pipe-a-hdmi-a-6.html
[130]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-464/igt@kms_ccs@crc-sprite-planes-basic-4-tiled-dg2-mc-ccs@pipe-a-hdmi-a-6.html
* igt@kms_color@invalid-ctm-matrix-sizes:
- shard-adlp: [DMESG-WARN][131] ([Intel XE#1214]) -> [PASS][132] +5 other tests pass
[131]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-8/igt@kms_color@invalid-ctm-matrix-sizes.html
[132]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_color@invalid-ctm-matrix-sizes.html
* igt@kms_cursor_legacy@2x-long-cursor-vs-flip-atomic:
- shard-dg2-set2: [DMESG-WARN][133] ([Intel XE#282] / [Intel XE#910]) -> [PASS][134]
[133]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_cursor_legacy@2x-long-cursor-vs-flip-atomic.html
[134]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-463/igt@kms_cursor_legacy@2x-long-cursor-vs-flip-atomic.html
* igt@kms_cursor_legacy@cursor-vs-flip-atomic-transitions:
- shard-dg2-set2: [DMESG-WARN][135] ([Intel XE#1214] / [Intel XE#282]) -> [PASS][136] +6 other tests pass
[135]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-435/igt@kms_cursor_legacy@cursor-vs-flip-atomic-transitions.html
[136]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-433/igt@kms_cursor_legacy@cursor-vs-flip-atomic-transitions.html
* igt@kms_plane_scaling@intel-max-src-size@pipe-a-dp-4:
- shard-dg2-set2: [FAIL][137] ([Intel XE#361]) -> [PASS][138] +2 other tests pass
[137]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-433/igt@kms_plane_scaling@intel-max-src-size@pipe-a-dp-4.html
[138]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_plane_scaling@intel-max-src-size@pipe-a-dp-4.html
* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75:
- shard-adlp: [SKIP][139] ([Intel XE#1201] / [Intel XE#455]) -> [PASS][140] +1 other test pass
[139]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-8/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75.html
[140]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75.html
* igt@kms_pm_rpm@i2c:
- shard-dg2-set2: [FAIL][141] ([Intel XE#1787]) -> [PASS][142]
[141]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-464/igt@kms_pm_rpm@i2c.html
[142]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_pm_rpm@i2c.html
* igt@kms_pm_rpm@modeset-lpsp-stress:
- shard-adlp: [SKIP][143] ([Intel XE#1201] / [Intel XE#1211]) -> [PASS][144] +1 other test pass
[143]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-8/igt@kms_pm_rpm@modeset-lpsp-stress.html
[144]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-6/igt@kms_pm_rpm@modeset-lpsp-stress.html
* igt@kms_psr@fbc-psr2-cursor-plane-onoff:
- {shard-lnl}: [FAIL][145] ([Intel XE#1649]) -> [PASS][146] +1 other test pass
[145]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-lnl-3/igt@kms_psr@fbc-psr2-cursor-plane-onoff.html
[146]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-lnl-5/igt@kms_psr@fbc-psr2-cursor-plane-onoff.html
* igt@kms_universal_plane@cursor-fb-leak:
- shard-adlp: [SKIP][147] ([Intel XE#1201]) -> [PASS][148] +6 other tests pass
[147]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-8/igt@kms_universal_plane@cursor-fb-leak.html
[148]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@kms_universal_plane@cursor-fb-leak.html
* igt@xe_evict@evict-mixed-many-threads-small:
- shard-dg2-set2: [TIMEOUT][149] ([Intel XE#1473]) -> [PASS][150]
[149]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-466/igt@xe_evict@evict-mixed-many-threads-small.html
[150]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-433/igt@xe_evict@evict-mixed-many-threads-small.html
* igt@xe_exec_fault_mode@many-execqueues-bindexecqueue-userptr-invalidate-race:
- {shard-lnl}: [ABORT][151] ([Intel XE#1761]) -> [PASS][152]
[151]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-lnl-8/igt@xe_exec_fault_mode@many-execqueues-bindexecqueue-userptr-invalidate-race.html
[152]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-lnl-6/igt@xe_exec_fault_mode@many-execqueues-bindexecqueue-userptr-invalidate-race.html
* igt@xe_exec_threads@threads-hang-shared-vm-userptr:
- shard-adlp: [DMESG-WARN][153] ([Intel XE#1214] / [Intel XE#358]) -> [PASS][154]
[153]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-8/igt@xe_exec_threads@threads-hang-shared-vm-userptr.html
[154]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@xe_exec_threads@threads-hang-shared-vm-userptr.html
* igt@xe_gt_freq@freq_low_max:
- shard-dg2-set2: [FAIL][155] ([Intel XE#1045] / [Intel XE#1204]) -> [PASS][156]
[155]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@xe_gt_freq@freq_low_max.html
[156]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-434/igt@xe_gt_freq@freq_low_max.html
* igt@xe_gt_freq@freq_suspend:
- shard-adlp: [DMESG-WARN][157] ([Intel XE#1191] / [Intel XE#1214]) -> [PASS][158]
[157]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-2/igt@xe_gt_freq@freq_suspend.html
[158]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@xe_gt_freq@freq_suspend.html
* igt@xe_live_ktest@xe_bo:
- shard-adlp: [SKIP][159] ([Intel XE#1192] / [Intel XE#1201]) -> [PASS][160]
[159]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-6/igt@xe_live_ktest@xe_bo.html
[160]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@xe_live_ktest@xe_bo.html
* igt@xe_live_ktest@xe_dma_buf:
- shard-dg2-set2: [SKIP][161] ([Intel XE#1192] / [Intel XE#1201]) -> [PASS][162]
[161]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-463/igt@xe_live_ktest@xe_dma_buf.html
[162]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-433/igt@xe_live_ktest@xe_dma_buf.html
* igt@xe_pm@s2idle-basic:
- shard-adlp: [INCOMPLETE][163] ([Intel XE#1044] / [Intel XE#1195] / [Intel XE#1358]) -> [PASS][164]
[163]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-9/igt@xe_pm@s2idle-basic.html
[164]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@xe_pm@s2idle-basic.html
* igt@xe_pm@s4-multiple-execs:
- shard-adlp: [INCOMPLETE][165] ([Intel XE#1195] / [Intel XE#1358]) -> [PASS][166]
[165]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-9/igt@xe_pm@s4-multiple-execs.html
[166]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@xe_pm@s4-multiple-execs.html
* igt@xe_pm@s4-vm-bind-prefetch:
- {shard-lnl}: [ABORT][167] ([Intel XE#1794]) -> [PASS][168]
[167]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-lnl-2/igt@xe_pm@s4-vm-bind-prefetch.html
[168]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-lnl-8/igt@xe_pm@s4-vm-bind-prefetch.html
* igt@xe_pm_residency@gt-c6-freeze:
- shard-adlp: [INCOMPLETE][169] ([Intel XE#1195] / [Intel XE#1349]) -> [PASS][170]
[169]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-1/igt@xe_pm_residency@gt-c6-freeze.html
[170]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@xe_pm_residency@gt-c6-freeze.html
#### Warnings ####
* igt@kms_async_flips@async-flip-with-page-flip-events@pipe-c-hdmi-a-6-4-mc-ccs:
- shard-dg2-set2: [SKIP][171] ([Intel XE#801]) -> [SKIP][172] ([Intel XE#1201] / [Intel XE#801]) +23 other tests skip
[171]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_async_flips@async-flip-with-page-flip-events@pipe-c-hdmi-a-6-4-mc-ccs.html
[172]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-464/igt@kms_async_flips@async-flip-with-page-flip-events@pipe-c-hdmi-a-6-4-mc-ccs.html
* igt@kms_big_fb@4-tiled-64bpp-rotate-90:
- shard-dg2-set2: [SKIP][173] ([Intel XE#316]) -> [SKIP][174] ([Intel XE#1201] / [Intel XE#316]) +1 other test skip
[173]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_big_fb@4-tiled-64bpp-rotate-90.html
[174]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-436/igt@kms_big_fb@4-tiled-64bpp-rotate-90.html
* igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip:
- shard-adlp: [SKIP][175] ([Intel XE#1124] / [Intel XE#1201]) -> [SKIP][176] ([Intel XE#1201])
[175]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-6/igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip.html
[176]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip.html
* igt@kms_big_fb@linear-8bpp-rotate-90:
- shard-dg2-set2: [SKIP][177] ([Intel XE#1201] / [Intel XE#316]) -> [SKIP][178] ([Intel XE#316])
[177]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-464/igt@kms_big_fb@linear-8bpp-rotate-90.html
[178]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_big_fb@linear-8bpp-rotate-90.html
* igt@kms_big_fb@x-tiled-8bpp-rotate-270:
- shard-adlp: [SKIP][179] ([Intel XE#1201] / [Intel XE#316]) -> [SKIP][180] ([Intel XE#1201])
[179]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-6/igt@kms_big_fb@x-tiled-8bpp-rotate-270.html
[180]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_big_fb@x-tiled-8bpp-rotate-270.html
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip:
- shard-adlp: [FAIL][181] ([Intel XE#1231]) -> [DMESG-FAIL][182] ([Intel XE#324]) +1 other test dmesg-fail
[181]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-2/igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip.html
[182]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-1/igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip.html
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-async-flip:
- shard-adlp: [SKIP][183] ([Intel XE#1201]) -> [FAIL][184] ([Intel XE#1231])
[183]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-8/igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-async-flip.html
[184]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-6/igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-async-flip.html
* igt@kms_big_fb@y-tiled-8bpp-rotate-270:
- shard-dg2-set2: [SKIP][185] ([Intel XE#1124]) -> [SKIP][186] ([Intel XE#1124] / [Intel XE#1201]) +4 other tests skip
[185]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_big_fb@y-tiled-8bpp-rotate-270.html
[186]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-433/igt@kms_big_fb@y-tiled-8bpp-rotate-270.html
* igt@kms_big_fb@y-tiled-addfb-size-offset-overflow:
- shard-dg2-set2: [SKIP][187] ([Intel XE#607]) -> [SKIP][188] ([Intel XE#1201] / [Intel XE#607])
[187]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_big_fb@y-tiled-addfb-size-offset-overflow.html
[188]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-434/igt@kms_big_fb@y-tiled-addfb-size-offset-overflow.html
* igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-0-hflip:
- shard-dg2-set2: [SKIP][189] ([Intel XE#1124] / [Intel XE#1201]) -> [SKIP][190] ([Intel XE#1124]) +5 other tests skip
[189]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-434/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-0-hflip.html
[190]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-0-hflip.html
* igt@kms_bw@linear-tiling-1-displays-1920x1080p:
- shard-dg2-set2: [SKIP][191] ([Intel XE#367]) -> [SKIP][192] ([Intel XE#1201] / [Intel XE#367]) +1 other test skip
[191]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_bw@linear-tiling-1-displays-1920x1080p.html
[192]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-435/igt@kms_bw@linear-tiling-1-displays-1920x1080p.html
* igt@kms_bw@linear-tiling-3-displays-2560x1440p:
- shard-dg2-set2: [SKIP][193] ([Intel XE#1201] / [Intel XE#367]) -> [SKIP][194] ([Intel XE#367]) +1 other test skip
[193]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-436/igt@kms_bw@linear-tiling-3-displays-2560x1440p.html
[194]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_bw@linear-tiling-3-displays-2560x1440p.html
* igt@kms_ccs@bad-pixel-format-4-tiled-mtl-mc-ccs:
- shard-dg2-set2: [SKIP][195] ([Intel XE#1201] / [Intel XE#455] / [Intel XE#787]) -> [SKIP][196] ([Intel XE#455] / [Intel XE#787]) +5 other tests skip
[195]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-436/igt@kms_ccs@bad-pixel-format-4-tiled-mtl-mc-ccs.html
[196]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_ccs@bad-pixel-format-4-tiled-mtl-mc-ccs.html
* igt@kms_ccs@bad-rotation-90-y-tiled-ccs@pipe-a-hdmi-a-6:
- shard-dg2-set2: [SKIP][197] ([Intel XE#1201] / [Intel XE#787]) -> [SKIP][198] ([Intel XE#787]) +20 other tests skip
[197]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-464/igt@kms_ccs@bad-rotation-90-y-tiled-ccs@pipe-a-hdmi-a-6.html
[198]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_ccs@bad-rotation-90-y-tiled-ccs@pipe-a-hdmi-a-6.html
* igt@kms_ccs@crc-primary-rotation-180-4-tiled-xe2-ccs:
- shard-dg2-set2: [SKIP][199] ([Intel XE#1252]) -> [SKIP][200] ([Intel XE#1201] / [Intel XE#1252])
[199]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_ccs@crc-primary-rotation-180-4-tiled-xe2-ccs.html
[200]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-464/igt@kms_ccs@crc-primary-rotation-180-4-tiled-xe2-ccs.html
* igt@kms_ccs@crc-sprite-planes-basic-yf-tiled-ccs:
- shard-dg2-set2: [SKIP][201] ([Intel XE#455] / [Intel XE#787]) -> [SKIP][202] ([Intel XE#1201] / [Intel XE#455] / [Intel XE#787]) +7 other tests skip
[201]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_ccs@crc-sprite-planes-basic-yf-tiled-ccs.html
[202]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-463/igt@kms_ccs@crc-sprite-planes-basic-yf-tiled-ccs.html
* igt@kms_ccs@crc-sprite-planes-basic-yf-tiled-ccs@pipe-d-hdmi-a-6:
- shard-dg2-set2: [SKIP][203] ([Intel XE#787]) -> [SKIP][204] ([Intel XE#1201] / [Intel XE#787]) +27 other tests skip
[203]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_ccs@crc-sprite-planes-basic-yf-tiled-ccs@pipe-d-hdmi-a-6.html
[204]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-463/igt@kms_ccs@crc-sprite-planes-basic-yf-tiled-ccs@pipe-d-hdmi-a-6.html
* igt@kms_ccs@random-ccs-data-4-tiled-xe2-ccs:
- shard-dg2-set2: [SKIP][205] ([Intel XE#1201] / [Intel XE#1252]) -> [SKIP][206] ([Intel XE#1252])
[205]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-435/igt@kms_ccs@random-ccs-data-4-tiled-xe2-ccs.html
[206]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_ccs@random-ccs-data-4-tiled-xe2-ccs.html
* igt@kms_chamelium_color@ctm-limited-range:
- shard-dg2-set2: [SKIP][207] ([Intel XE#1201] / [Intel XE#306]) -> [SKIP][208] ([Intel XE#306])
[207]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-434/igt@kms_chamelium_color@ctm-limited-range.html
[208]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_chamelium_color@ctm-limited-range.html
* igt@kms_chamelium_hpd@hdmi-hpd-with-enabled-mode:
- shard-dg2-set2: [SKIP][209] ([Intel XE#373]) -> [SKIP][210] ([Intel XE#1201] / [Intel XE#373]) +3 other tests skip
[209]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_chamelium_hpd@hdmi-hpd-with-enabled-mode.html
[210]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-463/igt@kms_chamelium_hpd@hdmi-hpd-with-enabled-mode.html
* igt@kms_chamelium_hpd@vga-hpd:
- shard-dg2-set2: [SKIP][211] ([Intel XE#1201] / [Intel XE#373]) -> [SKIP][212] ([Intel XE#373]) +4 other tests skip
[211]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-435/igt@kms_chamelium_hpd@vga-hpd.html
[212]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_chamelium_hpd@vga-hpd.html
* igt@kms_content_protection@dp-mst-type-0:
- shard-dg2-set2: [SKIP][213] ([Intel XE#1201] / [Intel XE#307]) -> [SKIP][214] ([Intel XE#307])
[213]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-464/igt@kms_content_protection@dp-mst-type-0.html
[214]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_content_protection@dp-mst-type-0.html
* igt@kms_cursor_crc@cursor-random-512x170:
- shard-dg2-set2: [SKIP][215] ([Intel XE#1201] / [Intel XE#308]) -> [SKIP][216] ([Intel XE#308])
[215]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-464/igt@kms_cursor_crc@cursor-random-512x170.html
[216]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_cursor_crc@cursor-random-512x170.html
* igt@kms_cursor_crc@cursor-random-512x512:
- shard-dg2-set2: [SKIP][217] ([Intel XE#308]) -> [SKIP][218] ([Intel XE#1201] / [Intel XE#308])
[217]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_cursor_crc@cursor-random-512x512.html
[218]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-433/igt@kms_cursor_crc@cursor-random-512x512.html
* igt@kms_cursor_crc@cursor-sliding-256x256@pipe-d-hdmi-a-6:
- shard-dg2-set2: [DMESG-WARN][219] ([Intel XE#282]) -> [DMESG-WARN][220] ([Intel XE#1214] / [Intel XE#282]) +2 other tests dmesg-warn
[219]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_cursor_crc@cursor-sliding-256x256@pipe-d-hdmi-a-6.html
[220]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-463/igt@kms_cursor_crc@cursor-sliding-256x256@pipe-d-hdmi-a-6.html
* igt@kms_cursor_crc@cursor-suspend:
- shard-adlp: [DMESG-WARN][221] ([Intel XE#1162] / [Intel XE#1191] / [Intel XE#1214] / [Intel XE#1608]) -> [INCOMPLETE][222] ([Intel XE#1195] / [Intel XE#927])
[221]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-6/igt@kms_cursor_crc@cursor-suspend.html
[222]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@kms_cursor_crc@cursor-suspend.html
* igt@kms_cursor_crc@cursor-suspend@pipe-a-hdmi-a-1:
- shard-adlp: [DMESG-WARN][223] ([Intel XE#1191] / [Intel XE#1214] / [Intel XE#1608]) -> [INCOMPLETE][224] ([Intel XE#1195])
[223]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-6/igt@kms_cursor_crc@cursor-suspend@pipe-a-hdmi-a-1.html
[224]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@kms_cursor_crc@cursor-suspend@pipe-a-hdmi-a-1.html
* igt@kms_cursor_edge_walk@256x256-right-edge@pipe-d-hdmi-a-6:
- shard-dg2-set2: [DMESG-WARN][225] ([Intel XE#1214] / [Intel XE#282]) -> [DMESG-WARN][226] ([Intel XE#282]) +4 other tests dmesg-warn
[225]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-436/igt@kms_cursor_edge_walk@256x256-right-edge@pipe-d-hdmi-a-6.html
[226]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_cursor_edge_walk@256x256-right-edge@pipe-d-hdmi-a-6.html
* igt@kms_cursor_legacy@cursor-vs-flip-atomic-transitions-varying-size:
- shard-dg2-set2: [DMESG-WARN][227] ([Intel XE#282] / [Intel XE#910]) -> [DMESG-WARN][228] ([Intel XE#1214] / [Intel XE#282] / [Intel XE#910])
[227]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_cursor_legacy@cursor-vs-flip-atomic-transitions-varying-size.html
[228]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-435/igt@kms_cursor_legacy@cursor-vs-flip-atomic-transitions-varying-size.html
* igt@kms_dirtyfb@psr-dirtyfb-ioctl:
- shard-adlp: [SKIP][229] ([Intel XE#1201]) -> [SKIP][230] ([Intel XE#1201] / [Intel XE#455])
[229]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-8/igt@kms_dirtyfb@psr-dirtyfb-ioctl.html
[230]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-9/igt@kms_dirtyfb@psr-dirtyfb-ioctl.html
* igt@kms_display_modes@mst-extended-mode-negative:
- shard-adlp: [SKIP][231] ([Intel XE#1201]) -> [SKIP][232] ([Intel XE#1201] / [Intel XE#307])
[231]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-8/igt@kms_display_modes@mst-extended-mode-negative.html
[232]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_display_modes@mst-extended-mode-negative.html
* igt@kms_fbcon_fbt@psr:
- shard-dg2-set2: [SKIP][233] ([Intel XE#776]) -> [SKIP][234] ([Intel XE#1201] / [Intel XE#776])
[233]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_fbcon_fbt@psr.html
[234]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-464/igt@kms_fbcon_fbt@psr.html
* igt@kms_flip@flip-vs-suspend:
- shard-dg2-set2: [DMESG-WARN][235] ([Intel XE#1162]) -> [INCOMPLETE][236] ([Intel XE#1195])
[235]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_flip@flip-vs-suspend.html
[236]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-463/igt@kms_flip@flip-vs-suspend.html
* igt@kms_flip@flip-vs-suspend-interruptible@a-hdmi-a6:
- shard-dg2-set2: [DMESG-WARN][237] ([Intel XE#1162] / [Intel XE#1214]) -> [DMESG-WARN][238] ([Intel XE#1162]) +1 other test dmesg-warn
[237]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-434/igt@kms_flip@flip-vs-suspend-interruptible@a-hdmi-a6.html
[238]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_flip@flip-vs-suspend-interruptible@a-hdmi-a6.html
* igt@kms_flip@flip-vs-suspend@a-hdmi-a6:
- shard-dg2-set2: [DMESG-WARN][239] ([Intel XE#1162]) -> [DMESG-WARN][240] ([Intel XE#1162] / [Intel XE#1214]) +2 other tests dmesg-warn
[239]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_flip@flip-vs-suspend@a-hdmi-a6.html
[240]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-463/igt@kms_flip@flip-vs-suspend@a-hdmi-a6.html
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling:
- shard-dg2-set2: [SKIP][241] ([Intel XE#455]) -> [SKIP][242] ([Intel XE#1201] / [Intel XE#455]) +8 other tests skip
[241]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling.html
[242]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-434/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling.html
* igt@kms_frontbuffer_tracking@drrs-1p-primscrn-cur-indfb-move:
- shard-dg2-set2: [SKIP][243] ([Intel XE#1201] / [Intel XE#651]) -> [SKIP][244] ([Intel XE#651]) +9 other tests skip
[243]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-466/igt@kms_frontbuffer_tracking@drrs-1p-primscrn-cur-indfb-move.html
[244]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_frontbuffer_tracking@drrs-1p-primscrn-cur-indfb-move.html
* igt@kms_frontbuffer_tracking@drrs-indfb-scaledprimary:
- shard-dg2-set2: [SKIP][245] ([Intel XE#651]) -> [SKIP][246] ([Intel XE#1201] / [Intel XE#651]) +8 other tests skip
[245]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_frontbuffer_tracking@drrs-indfb-scaledprimary.html
[246]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-434/igt@kms_frontbuffer_tracking@drrs-indfb-scaledprimary.html
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-draw-mmap-wc:
- shard-adlp: [SKIP][247] ([Intel XE#1201]) -> [SKIP][248] ([Intel XE#1201] / [Intel XE#656]) +4 other tests skip
[247]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-8/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-draw-mmap-wc.html
[248]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcdrrs-1p-primscrn-pri-indfb-draw-mmap-wc:
- shard-adlp: [SKIP][249] ([Intel XE#1201]) -> [SKIP][250] ([Intel XE#1201] / [Intel XE#651])
[249]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-8/igt@kms_frontbuffer_tracking@fbcdrrs-1p-primscrn-pri-indfb-draw-mmap-wc.html
[250]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@kms_frontbuffer_tracking@fbcdrrs-1p-primscrn-pri-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcdrrs-2p-primscrn-pri-indfb-draw-mmap-wc:
- shard-adlp: [SKIP][251] ([Intel XE#1201] / [Intel XE#656]) -> [SKIP][252] ([Intel XE#1201])
[251]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-6/igt@kms_frontbuffer_tracking@fbcdrrs-2p-primscrn-pri-indfb-draw-mmap-wc.html
[252]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_frontbuffer_tracking@fbcdrrs-2p-primscrn-pri-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-fullscreen:
- shard-dg2-set2: [SKIP][253] ([Intel XE#1201] / [Intel XE#653]) -> [SKIP][254] ([Intel XE#653]) +14 other tests skip
[253]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-463/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-fullscreen.html
[254]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-fullscreen.html
* igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-indfb-draw-mmap-wc:
- shard-adlp: [SKIP][255] ([Intel XE#1201]) -> [SKIP][256] ([Intel XE#1201] / [Intel XE#653]) +1 other test skip
[255]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-8/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-indfb-draw-mmap-wc.html
[256]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-8/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@psr-2p-primscrn-cur-indfb-draw-render:
- shard-dg2-set2: [SKIP][257] ([Intel XE#653]) -> [SKIP][258] ([Intel XE#1201] / [Intel XE#653]) +12 other tests skip
[257]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_frontbuffer_tracking@psr-2p-primscrn-cur-indfb-draw-render.html
[258]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-435/igt@kms_frontbuffer_tracking@psr-2p-primscrn-cur-indfb-draw-render.html
* igt@kms_plane_lowres@tiling-y:
- shard-dg2-set2: [SKIP][259] ([Intel XE#1201] / [Intel XE#455]) -> [SKIP][260] ([Intel XE#455]) +5 other tests skip
[259]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-463/igt@kms_plane_lowres@tiling-y.html
[260]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_plane_lowres@tiling-y.html
* igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-20x20@pipe-a-hdmi-a-6:
- shard-dg2-set2: [SKIP][261] ([Intel XE#305]) -> [SKIP][262] ([Intel XE#1201] / [Intel XE#305]) +5 other tests skip
[261]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-20x20@pipe-a-hdmi-a-6.html
[262]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-463/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-20x20@pipe-a-hdmi-a-6.html
* igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25:
- shard-dg2-set2: [SKIP][263] ([Intel XE#305] / [Intel XE#455]) -> [SKIP][264] ([Intel XE#1201] / [Intel XE#305] / [Intel XE#455]) +3 other tests skip
[263]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25.html
[264]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-434/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25.html
* igt@kms_pm_dc@dc6-dpms:
- shard-dg2-set2: [SKIP][265] ([Intel XE#1201] / [Intel XE#908]) -> [SKIP][266] ([Intel XE#908])
[265]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-464/igt@kms_pm_dc@dc6-dpms.html
[266]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_pm_dc@dc6-dpms.html
* igt@kms_psr@fbc-psr2-sprite-plane-move:
- shard-dg2-set2: [SKIP][267] ([Intel XE#929]) -> [SKIP][268] ([Intel XE#1201] / [Intel XE#929]) +5 other tests skip
[267]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_psr@fbc-psr2-sprite-plane-move.html
[268]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-435/igt@kms_psr@fbc-psr2-sprite-plane-move.html
* igt@kms_psr@psr-sprite-plane-onoff:
- shard-dg2-set2: [SKIP][269] ([Intel XE#1201] / [Intel XE#929]) -> [SKIP][270] ([Intel XE#929]) +8 other tests skip
[269]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-466/igt@kms_psr@psr-sprite-plane-onoff.html
[270]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@kms_psr@psr-sprite-plane-onoff.html
* igt@kms_psr_stress_test@flip-primary-invalidate-overlay:
- shard-dg2-set2: [SKIP][271] ([Intel XE#1149]) -> [SKIP][272] ([Intel XE#1149] / [Intel XE#1201])
[271]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@kms_psr_stress_test@flip-primary-invalidate-overlay.html
[272]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-433/igt@kms_psr_stress_test@flip-primary-invalidate-overlay.html
* igt@kms_vblank@ts-continuation-suspend:
- shard-adlp: [DMESG-WARN][273] ([Intel XE#1191] / [Intel XE#1214] / [Intel XE#1608]) -> [SKIP][274] ([Intel XE#1201])
[273]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-adlp-6/igt@kms_vblank@ts-continuation-suspend.html
[274]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-adlp-2/igt@kms_vblank@ts-continuation-suspend.html
* igt@sriov_basic@enable-vfs-autoprobe-off:
- shard-dg2-set2: [SKIP][275] ([Intel XE#1091]) -> [SKIP][276] ([Intel XE#1091] / [Intel XE#1201])
[275]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@sriov_basic@enable-vfs-autoprobe-off.html
[276]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-466/igt@sriov_basic@enable-vfs-autoprobe-off.html
* igt@xe_copy_basic@mem-copy-linear-0xfffe:
- shard-dg2-set2: [SKIP][277] ([Intel XE#1123]) -> [SKIP][278] ([Intel XE#1123] / [Intel XE#1201]) +1 other test skip
[277]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@xe_copy_basic@mem-copy-linear-0xfffe.html
[278]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-433/igt@xe_copy_basic@mem-copy-linear-0xfffe.html
* igt@xe_exec_fault_mode@many-bindexecqueue-rebind:
- shard-dg2-set2: [SKIP][279] ([Intel XE#288]) -> [SKIP][280] ([Intel XE#1201] / [Intel XE#288]) +14 other tests skip
[279]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@xe_exec_fault_mode@many-bindexecqueue-rebind.html
[280]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-434/igt@xe_exec_fault_mode@many-bindexecqueue-rebind.html
* igt@xe_exec_fault_mode@once-basic:
- shard-dg2-set2: [SKIP][281] ([Intel XE#1201] / [Intel XE#288]) -> [SKIP][282] ([Intel XE#288]) +11 other tests skip
[281]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-435/igt@xe_exec_fault_mode@once-basic.html
[282]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@xe_exec_fault_mode@once-basic.html
* igt@xe_huc_copy@huc_copy:
- shard-dg2-set2: [SKIP][283] ([Intel XE#1201] / [Intel XE#255]) -> [SKIP][284] ([Intel XE#255])
[283]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-436/igt@xe_huc_copy@huc_copy.html
[284]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@xe_huc_copy@huc_copy.html
* igt@xe_live_ktest@xe_mocs:
- shard-dg2-set2: [FAIL][285] ([Intel XE#1999]) -> [SKIP][286] ([Intel XE#1192])
[285]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-464/igt@xe_live_ktest@xe_mocs.html
[286]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@xe_live_ktest@xe_mocs.html
* igt@xe_pm@d3cold-basic:
- shard-dg2-set2: [SKIP][287] ([Intel XE#1201] / [Intel XE#366]) -> [SKIP][288] ([Intel XE#366])
[287]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-466/igt@xe_pm@d3cold-basic.html
[288]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@xe_pm@d3cold-basic.html
* igt@xe_wedged@wedged-at-any-timeout:
- shard-dg2-set2: [DMESG-FAIL][289] ([Intel XE#1760]) -> [DMESG-WARN][290] ([Intel XE#1760])
[289]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-1390-71fb583af6dea41793b38d947a991f06156f7f11/shard-dg2-432/igt@xe_wedged@wedged-at-any-timeout.html
[290]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/shard-dg2-432/igt@xe_wedged@wedged-at-any-timeout.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[Intel XE#1044]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1044
[Intel XE#1045]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1045
[Intel XE#1061]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1061
[Intel XE#1068]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1068
[Intel XE#1091]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1091
[Intel XE#1122]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1122
[Intel XE#1123]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1123
[Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
[Intel XE#1125]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1125
[Intel XE#1126]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1126
[Intel XE#1127]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1127
[Intel XE#1129]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1129
[Intel XE#1135]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1135
[Intel XE#1149]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1149
[Intel XE#1162]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1162
[Intel XE#1169]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1169
[Intel XE#1174]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1174
[Intel XE#1191]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1191
[Intel XE#1192]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1192
[Intel XE#1195]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1195
[Intel XE#1201]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1201
[Intel XE#1204]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1204
[Intel XE#1211]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1211
[Intel XE#1214]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1214
[Intel XE#1231]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1231
[Intel XE#1252]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1252
[Intel XE#1280]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1280
[Intel XE#1330]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1330
[Intel XE#1331]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1331
[Intel XE#1349]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1349
[Intel XE#1356]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1356
[Intel XE#1358]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1358
[Intel XE#1365]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1365
[Intel XE#1392]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1392
[Intel XE#1399]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1399
[Intel XE#1401]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1401
[Intel XE#1406]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1406
[Intel XE#1407]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1407
[Intel XE#1421]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1421
[Intel XE#1424]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1424
[Intel XE#1435]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1435
[Intel XE#1439]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1439
[Intel XE#1446]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1446
[Intel XE#1447]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1447
[Intel XE#1451]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1451
[Intel XE#1466]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1466
[Intel XE#1469]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1469
[Intel XE#1473]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1473
[Intel XE#1573]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1573
[Intel XE#1602]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1602
[Intel XE#1608]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1608
[Intel XE#1622]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1622
[Intel XE#1638]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1638
[Intel XE#1649]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1649
[Intel XE#1659]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1659
[Intel XE#1694]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1694
[Intel XE#1725]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1725
[Intel XE#1745]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1745
[Intel XE#1760]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1760
[Intel XE#1761]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1761
[Intel XE#1787]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1787
[Intel XE#1794]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1794
[Intel XE#1830]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1830
[Intel XE#1861]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1861
[Intel XE#1874]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1874
[Intel XE#1932]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1932
[Intel XE#1941]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1941
[Intel XE#1978]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1978
[Intel XE#1999]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1999
[Intel XE#255]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/255
[Intel XE#261]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/261
[Intel XE#282]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/282
[Intel XE#288]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/288
[Intel XE#305]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/305
[Intel XE#306]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/306
[Intel XE#307]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/307
[Intel XE#308]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/308
[Intel XE#309]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/309
[Intel XE#310]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/310
[Intel XE#314]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/314
[Intel XE#316]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/316
[Intel XE#323]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/323
[Intel XE#324]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/324
[Intel XE#327]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/327
[Intel XE#358]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/358
[Intel XE#361]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/361
[Intel XE#366]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/366
[Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367
[Intel XE#373]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/373
[Intel XE#379]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/379
[Intel XE#392]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/392
[Intel XE#455]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/455
[Intel XE#480]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/480
[Intel XE#482]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/482
[Intel XE#488]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/488
[Intel XE#498]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/498
[Intel XE#579]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/579
[Intel XE#584]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/584
[Intel XE#599]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/599
[Intel XE#607]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/607
[Intel XE#610]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/610
[Intel XE#651]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/651
[Intel XE#653]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/653
[Intel XE#656]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/656
[Intel XE#660]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/660
[Intel XE#688]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/688
[Intel XE#703]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/703
[Intel XE#756]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/756
[Intel XE#776]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/776
[Intel XE#787]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/787
[Intel XE#801]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/801
[Intel XE#836]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/836
[Intel XE#886]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/886
[Intel XE#899]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/899
[Intel XE#908]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/908
[Intel XE#910]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/910
[Intel XE#927]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/927
[Intel XE#929]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/929
[Intel XE#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944
[Intel XE#958]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/958
[Intel XE#979]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/979
Build changes
-------------
* IGT: IGT_7875 -> IGT_7876
* Linux: xe-1390-71fb583af6dea41793b38d947a991f06156f7f11 -> xe-pw-134308v1
IGT_7875: 44d48b5aec41357e90aa7990c8877ca807ff8d57 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
IGT_7876: 7876
xe-1390-71fb583af6dea41793b38d947a991f06156f7f11: 71fb583af6dea41793b38d947a991f06156f7f11
xe-pw-134308v1: 134308v1
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-134308v1/index.html
[-- Attachment #2: Type: text/html, Size: 106356 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
@ 2024-05-31 19:53 Rodrigo Vivi
0 siblings, 0 replies; 26+ messages in thread
From: Rodrigo Vivi @ 2024-05-31 19:53 UTC (permalink / raw)
To: intel-xe
Cc: Rodrigo Vivi, Paulo Zanoni, Francois Dugast,
Thomas Hellström, Matthew Brost
Defer the ggtt node removal to a thread if runtime_pm is not active.
The ggtt node removal can be called from multiple places, including
places where we cannot protect with outer callers and places we are
within other locks. So, try to grab the runtime reference if the
device is already active, otherwise defer the removal to a separate
thread from where we are sure we can wake the device up.
v2: - use xe wq instead of system wq (Matt and CI)
- Avoid GFP_KERNEL to be future proof since this removal can
be called from outside our drivers and we don't want to block
if atomic is needed. (Matt)
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_ggtt.c | 56 ++++++++++++++++++++++++++++++++----
1 file changed, 51 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
index b01a670fecb8..da8a65bdb9a3 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.c
+++ b/drivers/gpu/drm/xe/xe_ggtt.c
@@ -443,16 +443,14 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
}
-void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
- bool invalidate)
+static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
{
struct xe_device *xe = tile_to_xe(ggtt->tile);
bool bound;
int idx;
bound = drm_dev_enter(&xe->drm, &idx);
- if (bound)
- xe_pm_runtime_get_noresume(xe);
mutex_lock(&ggtt->lock);
if (bound)
@@ -467,10 +465,58 @@ void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
if (invalidate)
xe_ggtt_invalidate(ggtt);
- xe_pm_runtime_put(xe);
drm_dev_exit(idx);
}
+struct remove_node_work {
+ struct work_struct work;
+ struct xe_ggtt *ggtt;
+ struct drm_mm_node *node;
+ bool invalidate;
+};
+
+static void ggtt_remove_node_work_func(struct work_struct *work)
+{
+ struct remove_node_work *remove_node = container_of(work, struct remove_node_work, work);
+ struct xe_device *xe = tile_to_xe(remove_node->ggtt->tile);
+
+ xe_pm_runtime_get(xe);
+ ggtt_remove_node(remove_node->ggtt, remove_node->node, remove_node->invalidate);
+ xe_pm_runtime_put(xe);
+
+ kfree(remove_node);
+}
+
+static void ggtt_queue_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct remove_node_work *remove_node;
+
+ remove_node = kmalloc(sizeof(*remove_node), GFP_ATOMIC);
+ if (!remove_node)
+ return;
+
+ INIT_WORK(&remove_node->work, ggtt_remove_node_work_func);
+ remove_node->ggtt = ggtt;
+ remove_node->node = node;
+ remove_node->invalidate = invalidate;
+
+ queue_work(xe->unordered_wq, &remove_node->work);
+}
+
+void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct xe_device *xe = tile_to_xe(ggtt->tile);
+
+ if (xe_pm_runtime_get_if_active(xe)) {
+ ggtt_remove_node(ggtt, node, invalidate);
+ xe_pm_runtime_put(xe);
+ } else {
+ ggtt_queue_remove_node(ggtt, node, invalidate);
+ }
+}
+
void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
{
if (XE_WARN_ON(!bo->ggtt_node.size))
--
2.45.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
@ 2024-05-31 20:08 Rodrigo Vivi
2024-06-03 13:25 ` Thomas Hellström
2024-06-03 18:15 ` Matthew Brost
0 siblings, 2 replies; 26+ messages in thread
From: Rodrigo Vivi @ 2024-05-31 20:08 UTC (permalink / raw)
To: intel-xe
Cc: Rodrigo Vivi, Paulo Zanoni, Francois Dugast,
Thomas Hellström, Matthew Brost
Defer the ggtt node removal to a thread if runtime_pm is not active.
The ggtt node removal can be called from multiple places, including
places where we cannot protect with outer callers and places we are
within other locks. So, try to grab the runtime reference if the
device is already active, otherwise defer the removal to a separate
thread from where we are sure we can wake the device up.
v2: - use xe wq instead of system wq (Matt and CI)
- Avoid GFP_KERNEL to be future proof since this removal can
be called from outside our drivers and we don't want to block
if atomic is needed. (Matt)
v3: amend forgot chunk declaring xe_device.
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_ggtt.c | 57 ++++++++++++++++++++++++++++++++----
1 file changed, 52 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
index b01a670fecb8..ab086737f910 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.c
+++ b/drivers/gpu/drm/xe/xe_ggtt.c
@@ -443,16 +443,14 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
}
-void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
- bool invalidate)
+static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
{
struct xe_device *xe = tile_to_xe(ggtt->tile);
bool bound;
int idx;
bound = drm_dev_enter(&xe->drm, &idx);
- if (bound)
- xe_pm_runtime_get_noresume(xe);
mutex_lock(&ggtt->lock);
if (bound)
@@ -467,10 +465,59 @@ void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
if (invalidate)
xe_ggtt_invalidate(ggtt);
- xe_pm_runtime_put(xe);
drm_dev_exit(idx);
}
+struct remove_node_work {
+ struct work_struct work;
+ struct xe_ggtt *ggtt;
+ struct drm_mm_node *node;
+ bool invalidate;
+};
+
+static void ggtt_remove_node_work_func(struct work_struct *work)
+{
+ struct remove_node_work *remove_node = container_of(work, struct remove_node_work, work);
+ struct xe_device *xe = tile_to_xe(remove_node->ggtt->tile);
+
+ xe_pm_runtime_get(xe);
+ ggtt_remove_node(remove_node->ggtt, remove_node->node, remove_node->invalidate);
+ xe_pm_runtime_put(xe);
+
+ kfree(remove_node);
+}
+
+static void ggtt_queue_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct xe_device *xe = tile_to_xe(ggtt->tile);
+ struct remove_node_work *remove_node;
+
+ remove_node = kmalloc(sizeof(*remove_node), GFP_ATOMIC);
+ if (!remove_node)
+ return;
+
+ INIT_WORK(&remove_node->work, ggtt_remove_node_work_func);
+ remove_node->ggtt = ggtt;
+ remove_node->node = node;
+ remove_node->invalidate = invalidate;
+
+ queue_work(xe->unordered_wq, &remove_node->work);
+}
+
+void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct xe_device *xe = tile_to_xe(ggtt->tile);
+
+ if (xe_pm_runtime_get_if_active(xe)) {
+ ggtt_remove_node(ggtt, node, invalidate);
+ xe_pm_runtime_put(xe);
+ } else {
+ ggtt_queue_remove_node(ggtt, node, invalidate);
+ }
+}
+
void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
{
if (XE_WARN_ON(!bo->ggtt_node.size))
--
2.45.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-05-31 20:08 Rodrigo Vivi
@ 2024-06-03 13:25 ` Thomas Hellström
2024-06-03 18:15 ` Matthew Brost
1 sibling, 0 replies; 26+ messages in thread
From: Thomas Hellström @ 2024-06-03 13:25 UTC (permalink / raw)
To: Rodrigo Vivi, intel-xe; +Cc: Paulo Zanoni, Francois Dugast, Matthew Brost
On Fri, 2024-05-31 at 16:08 -0400, Rodrigo Vivi wrote:
> Defer the ggtt node removal to a thread if runtime_pm is not active.
>
> The ggtt node removal can be called from multiple places, including
> places where we cannot protect with outer callers and places we are
> within other locks. So, try to grab the runtime reference if the
> device is already active, otherwise defer the removal to a separate
> thread from where we are sure we can wake the device up.
>
> v2: - use xe wq instead of system wq (Matt and CI)
> - Avoid GFP_KERNEL to be future proof since this removal can
> be called from outside our drivers and we don't want to block
> if atomic is needed. (Matt)
> v3: amend forgot chunk declaring xe_device.
>
> Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> Cc: Francois Dugast <francois.dugast@intel.com>
> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> Cc: Matthew Brost <matthew.brost@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/xe/xe_ggtt.c | 57 ++++++++++++++++++++++++++++++++--
> --
> 1 file changed, 52 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.c
> b/drivers/gpu/drm/xe/xe_ggtt.c
> index b01a670fecb8..ab086737f910 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.c
> +++ b/drivers/gpu/drm/xe/xe_ggtt.c
> @@ -443,16 +443,14 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt,
> struct xe_bo *bo)
> return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
> }
>
> -void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node
> *node,
> - bool invalidate)
> +static void ggtt_remove_node(struct xe_ggtt *ggtt, struct
> drm_mm_node *node,
> + bool invalidate)
> {
> struct xe_device *xe = tile_to_xe(ggtt->tile);
> bool bound;
> int idx;
>
> bound = drm_dev_enter(&xe->drm, &idx);
> - if (bound)
> - xe_pm_runtime_get_noresume(xe);
>
> mutex_lock(&ggtt->lock);
> if (bound)
> @@ -467,10 +465,59 @@ void xe_ggtt_remove_node(struct xe_ggtt *ggtt,
> struct drm_mm_node *node,
> if (invalidate)
> xe_ggtt_invalidate(ggtt);
>
> - xe_pm_runtime_put(xe);
> drm_dev_exit(idx);
> }
>
> +struct remove_node_work {
> + struct work_struct work;
> + struct xe_ggtt *ggtt;
> + struct drm_mm_node *node;
> + bool invalidate;
> +};
> +
> +static void ggtt_remove_node_work_func(struct work_struct *work)
> +{
> + struct remove_node_work *remove_node = container_of(work,
> struct remove_node_work, work);
> + struct xe_device *xe = tile_to_xe(remove_node->ggtt->tile);
> +
> + xe_pm_runtime_get(xe);
> + ggtt_remove_node(remove_node->ggtt, remove_node->node,
> remove_node->invalidate);
> + xe_pm_runtime_put(xe);
> +
> + kfree(remove_node);
> +}
> +
> +static void ggtt_queue_remove_node(struct xe_ggtt *ggtt, struct
> drm_mm_node *node,
> + bool invalidate)
> +{
> + struct xe_device *xe = tile_to_xe(ggtt->tile);
> + struct remove_node_work *remove_node;
> +
> + remove_node = kmalloc(sizeof(*remove_node), GFP_ATOMIC);
> + if (!remove_node)
> + return;
> +
> + INIT_WORK(&remove_node->work, ggtt_remove_node_work_func);
> + remove_node->ggtt = ggtt;
> + remove_node->node = node;
> + remove_node->invalidate = invalidate;
> +
> + queue_work(xe->unordered_wq, &remove_node->work);
I don't see anything guaranteeing that there are no work items left at
ggtt fini. The workqueue isn't flushed until xe_device_destroy(),
which, from what I can tell, happens *after* ggtt_fini_early().
/Thomas
> +}
> +
> +void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node
> *node,
> + bool invalidate)
> +{
> + struct xe_device *xe = tile_to_xe(ggtt->tile);
> +
> + if (xe_pm_runtime_get_if_active(xe)) {
> + ggtt_remove_node(ggtt, node, invalidate);
> + xe_pm_runtime_put(xe);
> + } else {
> + ggtt_queue_remove_node(ggtt, node, invalidate);
> + }
> +}
> +
> void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> {
> if (XE_WARN_ON(!bo->ggtt_node.size))
^ permalink raw reply [flat|nested] 26+ messages in thread* Re: [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-05-31 20:08 Rodrigo Vivi
2024-06-03 13:25 ` Thomas Hellström
@ 2024-06-03 18:15 ` Matthew Brost
2024-06-03 21:03 ` Thomas Hellström
1 sibling, 1 reply; 26+ messages in thread
From: Matthew Brost @ 2024-06-03 18:15 UTC (permalink / raw)
To: Rodrigo Vivi
Cc: intel-xe, Paulo Zanoni, Francois Dugast, Thomas Hellström
On Fri, May 31, 2024 at 04:08:51PM -0400, Rodrigo Vivi wrote:
> Defer the ggtt node removal to a thread if runtime_pm is not active.
>
> The ggtt node removal can be called from multiple places, including
> places where we cannot protect with outer callers and places we are
> within other locks. So, try to grab the runtime reference if the
> device is already active, otherwise defer the removal to a separate
> thread from where we are sure we can wake the device up.
>
> v2: - use xe wq instead of system wq (Matt and CI)
> - Avoid GFP_KERNEL to be future proof since this removal can
> be called from outside our drivers and we don't want to block
> if atomic is needed. (Matt)
> v3: amend forgot chunk declaring xe_device.
>
> Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> Cc: Francois Dugast <francois.dugast@intel.com>
> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> Cc: Matthew Brost <matthew.brost@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/xe/xe_ggtt.c | 57 ++++++++++++++++++++++++++++++++----
> 1 file changed, 52 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
> index b01a670fecb8..ab086737f910 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.c
> +++ b/drivers/gpu/drm/xe/xe_ggtt.c
> @@ -443,16 +443,14 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
> }
>
> -void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> - bool invalidate)
> +static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> + bool invalidate)
> {
> struct xe_device *xe = tile_to_xe(ggtt->tile);
> bool bound;
> int idx;
>
> bound = drm_dev_enter(&xe->drm, &idx);
> - if (bound)
> - xe_pm_runtime_get_noresume(xe);
>
> mutex_lock(&ggtt->lock);
> if (bound)
> @@ -467,10 +465,59 @@ void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> if (invalidate)
> xe_ggtt_invalidate(ggtt);
>
> - xe_pm_runtime_put(xe);
> drm_dev_exit(idx);
> }
>
> +struct remove_node_work {
> + struct work_struct work;
> + struct xe_ggtt *ggtt;
> + struct drm_mm_node *node;
> + bool invalidate;
> +};
> +
> +static void ggtt_remove_node_work_func(struct work_struct *work)
> +{
> + struct remove_node_work *remove_node = container_of(work, struct remove_node_work, work);
> + struct xe_device *xe = tile_to_xe(remove_node->ggtt->tile);
> +
> + xe_pm_runtime_get(xe);
> + ggtt_remove_node(remove_node->ggtt, remove_node->node, remove_node->invalidate);
> + xe_pm_runtime_put(xe);
> +
> + kfree(remove_node);
> +}
> +
> +static void ggtt_queue_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> + bool invalidate)
> +{
> + struct xe_device *xe = tile_to_xe(ggtt->tile);
> + struct remove_node_work *remove_node;
> +
> + remove_node = kmalloc(sizeof(*remove_node), GFP_ATOMIC);
> + if (!remove_node)
I think a DRM error message here would be helpful too.
Matt
> + return;
> +
> + INIT_WORK(&remove_node->work, ggtt_remove_node_work_func);
> + remove_node->ggtt = ggtt;
> + remove_node->node = node;
> + remove_node->invalidate = invalidate;
> +
> + queue_work(xe->unordered_wq, &remove_node->work);
> +}
> +
> +void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> + bool invalidate)
> +{
> + struct xe_device *xe = tile_to_xe(ggtt->tile);
> +
> + if (xe_pm_runtime_get_if_active(xe)) {
> + ggtt_remove_node(ggtt, node, invalidate);
> + xe_pm_runtime_put(xe);
> + } else {
> + ggtt_queue_remove_node(ggtt, node, invalidate);
> + }
> +}
> +
> void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> {
> if (XE_WARN_ON(!bo->ggtt_node.size))
> --
> 2.45.1
>
^ permalink raw reply [flat|nested] 26+ messages in thread* Re: [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-06-03 18:15 ` Matthew Brost
@ 2024-06-03 21:03 ` Thomas Hellström
0 siblings, 0 replies; 26+ messages in thread
From: Thomas Hellström @ 2024-06-03 21:03 UTC (permalink / raw)
To: Matthew Brost, Rodrigo Vivi; +Cc: intel-xe, Paulo Zanoni, Francois Dugast
On Mon, 2024-06-03 at 18:15 +0000, Matthew Brost wrote:
> On Fri, May 31, 2024 at 04:08:51PM -0400, Rodrigo Vivi wrote:
> > Defer the ggtt node removal to a thread if runtime_pm is not
> > active.
> >
> > The ggtt node removal can be called from multiple places, including
> > places where we cannot protect with outer callers and places we are
> > within other locks. So, try to grab the runtime reference if the
> > device is already active, otherwise defer the removal to a separate
> > thread from where we are sure we can wake the device up.
> >
> > v2: - use xe wq instead of system wq (Matt and CI)
> > - Avoid GFP_KERNEL to be future proof since this removal can
> > be called from outside our drivers and we don't want to block
> > if atomic is needed. (Matt)
> > v3: amend forgot chunk declaring xe_device.
> >
> > Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> > Cc: Francois Dugast <francois.dugast@intel.com>
> > Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> > Cc: Matthew Brost <matthew.brost@intel.com>
> > Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > ---
> > drivers/gpu/drm/xe/xe_ggtt.c | 57
> > ++++++++++++++++++++++++++++++++----
> > 1 file changed, 52 insertions(+), 5 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/xe/xe_ggtt.c
> > b/drivers/gpu/drm/xe/xe_ggtt.c
> > index b01a670fecb8..ab086737f910 100644
> > --- a/drivers/gpu/drm/xe/xe_ggtt.c
> > +++ b/drivers/gpu/drm/xe/xe_ggtt.c
> > @@ -443,16 +443,14 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt,
> > struct xe_bo *bo)
> > return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
> > }
> >
> > -void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node
> > *node,
> > - bool invalidate)
> > +static void ggtt_remove_node(struct xe_ggtt *ggtt, struct
> > drm_mm_node *node,
> > + bool invalidate)
> > {
> > struct xe_device *xe = tile_to_xe(ggtt->tile);
> > bool bound;
> > int idx;
> >
> > bound = drm_dev_enter(&xe->drm, &idx);
> > - if (bound)
> > - xe_pm_runtime_get_noresume(xe);
> >
> > mutex_lock(&ggtt->lock);
> > if (bound)
> > @@ -467,10 +465,59 @@ void xe_ggtt_remove_node(struct xe_ggtt
> > *ggtt, struct drm_mm_node *node,
> > if (invalidate)
> > xe_ggtt_invalidate(ggtt);
> >
> > - xe_pm_runtime_put(xe);
> > drm_dev_exit(idx);
> > }
> >
> > +struct remove_node_work {
> > + struct work_struct work;
> > + struct xe_ggtt *ggtt;
> > + struct drm_mm_node *node;
> > + bool invalidate;
> > +};
> > +
> > +static void ggtt_remove_node_work_func(struct work_struct *work)
> > +{
> > + struct remove_node_work *remove_node = container_of(work,
> > struct remove_node_work, work);
> > + struct xe_device *xe = tile_to_xe(remove_node->ggtt-
> > >tile);
> > +
> > + xe_pm_runtime_get(xe);
> > + ggtt_remove_node(remove_node->ggtt, remove_node->node,
> > remove_node->invalidate);
> > + xe_pm_runtime_put(xe);
> > +
> > + kfree(remove_node);
> > +}
> > +
> > +static void ggtt_queue_remove_node(struct xe_ggtt *ggtt, struct
> > drm_mm_node *node,
> > + bool invalidate)
> > +{
> > + struct xe_device *xe = tile_to_xe(ggtt->tile);
> > + struct remove_node_work *remove_node;
> > +
> > + remove_node = kmalloc(sizeof(*remove_node), GFP_ATOMIC);
> > + if (!remove_node)
>
> I think a DRM error message here would be helpful too.
>
> Matt
GFP_ATOMIC has a pretty high chance of failing under memory stress.
High enough that we must not leak resources when that happens. (Or
perhaps I'm misunderstanding the code here?).
Could we ensure that we pre-allocate enough to be able to queue a work
item without allocations?
perhaps along the lines of
struct xe_ggtt_node {
struct llist_head deferred_remove_link;
struct drm_mm_node node;
};
/Thomas
>
> > + return;
> > +
> > + INIT_WORK(&remove_node->work, ggtt_remove_node_work_func);
> > + remove_node->ggtt = ggtt;
> > + remove_node->node = node;
> > + remove_node->invalidate = invalidate;
> > +
> > + queue_work(xe->unordered_wq, &remove_node->work);
> > +}
> > +
> > +void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node
> > *node,
> > + bool invalidate)
> > +{
> > + struct xe_device *xe = tile_to_xe(ggtt->tile);
> > +
> > + if (xe_pm_runtime_get_if_active(xe)) {
> > + ggtt_remove_node(ggtt, node, invalidate);
> > + xe_pm_runtime_put(xe);
> > + } else {
> > + ggtt_queue_remove_node(ggtt, node, invalidate);
> > + }
> > +}
> > +
> > void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> > {
> > if (XE_WARN_ON(!bo->ggtt_node.size))
> > --
> > 2.45.1
> >
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
@ 2024-06-12 17:27 Rodrigo Vivi
2024-06-12 18:05 ` Matthew Brost
0 siblings, 1 reply; 26+ messages in thread
From: Rodrigo Vivi @ 2024-06-12 17:27 UTC (permalink / raw)
To: intel-xe
Cc: Rodrigo Vivi, Paulo Zanoni, Francois Dugast,
Thomas Hellström, Matthew Brost
Defer the ggtt node removal to a thread if runtime_pm is not active.
The ggtt node removal can be called from multiple places, including
places where we cannot protect with outer callers and places we are
within other locks. So, try to grab the runtime reference if the
device is already active, otherwise defer the removal to a separate
thread from where we are sure we can wake the device up.
v2: - use xe wq instead of system wq (Matt and CI)
- Avoid GFP_KERNEL to be future proof since this removal can
be called from outside our drivers and we don't want to block
if atomic is needed. (Matt)
v3: amend forgot chunk declaring xe_device.
v4: Use a xe_ggtt_region to encapsulate the node and remova info,
wihtout the need for any memory allocation at runtime.
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/display/xe_fb_pin.c | 10 +--
drivers/gpu/drm/xe/xe_bo.c | 2 +-
drivers/gpu/drm/xe/xe_bo.h | 6 +-
drivers/gpu/drm/xe/xe_bo_types.h | 6 +-
drivers/gpu/drm/xe/xe_ggtt.c | 112 +++++++++++++++++--------
drivers/gpu/drm/xe/xe_ggtt.h | 1 -
drivers/gpu/drm/xe/xe_ggtt_types.h | 21 +++++
7 files changed, 111 insertions(+), 47 deletions(-)
diff --git a/drivers/gpu/drm/xe/display/xe_fb_pin.c b/drivers/gpu/drm/xe/display/xe_fb_pin.c
index a2f417209124..b54d8850463a 100644
--- a/drivers/gpu/drm/xe/display/xe_fb_pin.c
+++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c
@@ -153,7 +153,7 @@ static int __xe_pin_fb_vma_dpt(const struct intel_framebuffer *fb,
}
vma->dpt = dpt;
- vma->node = dpt->ggtt_node;
+ vma->node = dpt->ggtt_region.node;
return 0;
}
@@ -203,8 +203,8 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
align = max_t(u32, align, SZ_64K);
- if (bo->ggtt_node.size && view->type == I915_GTT_VIEW_NORMAL) {
- vma->node = bo->ggtt_node;
+ if (bo->ggtt_region.node.size && view->type == I915_GTT_VIEW_NORMAL) {
+ vma->node = bo->ggtt_region.node;
} else if (view->type == I915_GTT_VIEW_NORMAL) {
u32 x, size = bo->ttm.base.size;
@@ -322,8 +322,8 @@ static void __xe_unpin_fb_vma(struct i915_vma *vma)
if (vma->dpt)
xe_bo_unpin_map_no_vm(vma->dpt);
- else if (!drm_mm_node_allocated(&vma->bo->ggtt_node) ||
- vma->bo->ggtt_node.start != vma->node.start)
+ else if (!drm_mm_node_allocated(&vma->bo->ggtt_region.node) ||
+ vma->bo->ggtt_region.node.start != vma->node.start)
xe_ggtt_remove_node(ggtt, &vma->node, false);
ttm_bo_reserve(&vma->bo->ttm, false, false, NULL);
diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
index 2bae01ce4e5b..c807c0fe8d4a 100644
--- a/drivers/gpu/drm/xe/xe_bo.c
+++ b/drivers/gpu/drm/xe/xe_bo.c
@@ -1072,7 +1072,7 @@ static void xe_ttm_bo_destroy(struct ttm_buffer_object *ttm_bo)
xe_assert(xe, list_empty(&ttm_bo->base.gpuva.list));
- if (bo->ggtt_node.size)
+ if (bo->ggtt_region.node.size)
xe_ggtt_remove_bo(bo->tile->mem.ggtt, bo);
#ifdef CONFIG_PROC_FS
diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h
index 6de894c728f5..79e77dac48f3 100644
--- a/drivers/gpu/drm/xe/xe_bo.h
+++ b/drivers/gpu/drm/xe/xe_bo.h
@@ -194,9 +194,9 @@ xe_bo_main_addr(struct xe_bo *bo, size_t page_size)
static inline u32
xe_bo_ggtt_addr(struct xe_bo *bo)
{
- XE_WARN_ON(bo->ggtt_node.size > bo->size);
- XE_WARN_ON(bo->ggtt_node.start + bo->ggtt_node.size > (1ull << 32));
- return bo->ggtt_node.start;
+ XE_WARN_ON(bo->ggtt_region.node.size > bo->size);
+ XE_WARN_ON(bo->ggtt_region.node.start + bo->ggtt_region.node.size > (1ull << 32));
+ return bo->ggtt_region.node.start;
}
int xe_bo_vmap(struct xe_bo *bo);
diff --git a/drivers/gpu/drm/xe/xe_bo_types.h b/drivers/gpu/drm/xe/xe_bo_types.h
index 86422e113d39..d905fa5e1b52 100644
--- a/drivers/gpu/drm/xe/xe_bo_types.h
+++ b/drivers/gpu/drm/xe/xe_bo_types.h
@@ -14,6 +14,8 @@
#include <drm/ttm/ttm_execbuf_util.h>
#include <drm/ttm/ttm_placement.h>
+#include "xe_ggtt_types.h"
+
struct xe_device;
struct xe_vm;
@@ -38,8 +40,8 @@ struct xe_bo {
struct ttm_place placements[XE_BO_MAX_PLACEMENTS];
/** @placement: current placement for this BO */
struct ttm_placement placement;
- /** @ggtt_node: GGTT node if this BO is mapped in the GGTT */
- struct drm_mm_node ggtt_node;
+ /** @ggtt_region: GGTT region node if this BO is mapped in the GGTT */
+ struct xe_ggtt_region ggtt_region;
/** @vmap: iosys map of this buffer */
struct iosys_map vmap;
/** @ttm_kmap: TTM bo kmap object for internal use only. Keep off. */
diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
index 8ff91fd1b7c8..d683c27761c0 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.c
+++ b/drivers/gpu/drm/xe/xe_ggtt.c
@@ -389,7 +389,7 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
{
u16 cache_mode = bo->flags & XE_BO_FLAG_NEEDS_UC ? XE_CACHE_NONE : XE_CACHE_WB;
u16 pat_index = tile_to_xe(ggtt->tile)->pat.idx[cache_mode];
- u64 start = bo->ggtt_node.start;
+ u64 start = bo->ggtt_region.node.start;
u64 offset, pte;
for (offset = 0; offset < bo->size; offset += XE_PAGE_SIZE) {
@@ -398,6 +398,74 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
}
}
+static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct xe_device *xe = tile_to_xe(ggtt->tile);
+ bool bound;
+ int idx;
+
+ bound = drm_dev_enter(&xe->drm, &idx);
+
+ mutex_lock(&ggtt->lock);
+ if (bound)
+ xe_ggtt_clear(ggtt, node->start, node->size);
+ drm_mm_remove_node(node);
+ node->size = 0;
+ mutex_unlock(&ggtt->lock);
+
+ if (!bound)
+ return;
+
+ if (invalidate)
+ xe_ggtt_invalidate(ggtt);
+
+ drm_dev_exit(idx);
+}
+
+static void ggtt_remove_node_work_func(struct work_struct *work)
+{
+ struct xe_ggtt_region *ggtt_region = container_of(work,
+ typeof(*ggtt_region),
+ delayed_removal.work);
+ struct xe_device *xe = tile_to_xe(ggtt_region->ggtt->tile);
+
+ xe_pm_runtime_get(xe);
+ ggtt_remove_node(ggtt_region->ggtt, &ggtt_region->node,
+ ggtt_region->delayed_removal.invalidate);
+ xe_pm_runtime_put(xe);
+}
+
+static void ggtt_queue_remove_node(struct drm_mm_node *node, bool invalidate)
+{
+ struct xe_ggtt_region *ggtt_region = container_of(node,
+ typeof(*ggtt_region),
+ node);
+ struct xe_device *xe = tile_to_xe(ggtt_region->ggtt->tile);
+
+ queue_work(xe->unordered_wq, &ggtt_region->delayed_removal.work);
+}
+
+void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct xe_device *xe = tile_to_xe(ggtt->tile);
+
+ if (xe_pm_runtime_get_if_active(xe)) {
+ ggtt_remove_node(ggtt, node, invalidate);
+ xe_pm_runtime_put(xe);
+ } else {
+ ggtt_queue_remove_node(node, invalidate);
+ }
+}
+
+static void ggtt_region_init(struct xe_ggtt *ggtt,
+ struct xe_ggtt_region *ggtt_region)
+{
+ INIT_WORK(&ggtt_region->delayed_removal.work, ggtt_remove_node_work_func);
+ ggtt_region->ggtt = ggtt;
+}
+
static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
u64 start, u64 end)
{
@@ -407,9 +475,9 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
alignment = SZ_64K;
- if (XE_WARN_ON(bo->ggtt_node.size)) {
+ if (XE_WARN_ON(bo->ggtt_region.node.size)) {
/* Someone's already inserted this BO in the GGTT */
- xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
+ xe_tile_assert(ggtt->tile, bo->ggtt_region.node.size == bo->size);
return 0;
}
@@ -417,9 +485,11 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
if (err)
return err;
+ ggtt_region_init(ggtt, &bo->ggtt_region);
+
xe_pm_runtime_get_noresume(tile_to_xe(ggtt->tile));
mutex_lock(&ggtt->lock);
- err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_node, bo->size,
+ err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_region.node, bo->size,
alignment, 0, start, end, 0);
if (!err)
xe_ggtt_map_bo(ggtt, bo);
@@ -443,43 +513,15 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
}
-void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
- bool invalidate)
-{
- struct xe_device *xe = tile_to_xe(ggtt->tile);
- bool bound;
- int idx;
-
- bound = drm_dev_enter(&xe->drm, &idx);
- if (bound)
- xe_pm_runtime_get_noresume(xe);
-
- mutex_lock(&ggtt->lock);
- if (bound)
- xe_ggtt_clear(ggtt, node->start, node->size);
- drm_mm_remove_node(node);
- node->size = 0;
- mutex_unlock(&ggtt->lock);
-
- if (!bound)
- return;
-
- if (invalidate)
- xe_ggtt_invalidate(ggtt);
-
- xe_pm_runtime_put(xe);
- drm_dev_exit(idx);
-}
-
void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
{
- if (XE_WARN_ON(!bo->ggtt_node.size))
+ if (XE_WARN_ON(!bo->ggtt_region.node.size))
return;
/* This BO is not currently in the GGTT */
- xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
+ xe_tile_assert(ggtt->tile, bo->ggtt_region.node.size == bo->size);
- xe_ggtt_remove_node(ggtt, &bo->ggtt_node,
+ xe_ggtt_remove_node(ggtt, &bo->ggtt_region.node,
bo->flags & XE_BO_FLAG_GGTT_INVALIDATE);
}
diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
index 4a41a1762358..75511b5f43eb 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.h
+++ b/drivers/gpu/drm/xe/xe_ggtt.h
@@ -30,7 +30,6 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
int xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
u64 start, u64 end);
void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
-
int xe_ggtt_dump(struct xe_ggtt *ggtt, struct drm_printer *p);
#ifdef CONFIG_PCI_IOV
diff --git a/drivers/gpu/drm/xe/xe_ggtt_types.h b/drivers/gpu/drm/xe/xe_ggtt_types.h
index d8c584d9a8c3..bea66aa0d843 100644
--- a/drivers/gpu/drm/xe/xe_ggtt_types.h
+++ b/drivers/gpu/drm/xe/xe_ggtt_types.h
@@ -36,4 +36,25 @@ struct xe_ggtt {
struct drm_mm mm;
};
+/**
+ * struct xe_ggtt_region - GGTT region node
+ * It needs to be initialized before the drm_mm_node insertion in the GGTT.
+ */
+struct xe_ggtt_region {
+ /** @ggtt: Back pointer to xe_ggtt where this region will be inserted at */
+ struct xe_ggtt *ggtt;
+ /** @node: The drm_mm_node itself */
+ struct drm_mm_node node;
+ /**
+ * @delayed_removal: Information for removal through work thread when
+ * device runtime_pm is suspended
+ */
+ struct {
+ /** @delayed_removal.work: The work struct for the delayed removal */
+ struct work_struct work;
+ /** @delayed_removal.invalidate: If it needs invalidation upon removal */
+ bool invalidate;
+ } delayed_removal;
+};
+
#endif
--
2.45.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-06-12 17:27 Rodrigo Vivi
@ 2024-06-12 18:05 ` Matthew Brost
0 siblings, 0 replies; 26+ messages in thread
From: Matthew Brost @ 2024-06-12 18:05 UTC (permalink / raw)
To: Rodrigo Vivi
Cc: intel-xe, Paulo Zanoni, Francois Dugast, Thomas Hellström
On Wed, Jun 12, 2024 at 01:27:46PM -0400, Rodrigo Vivi wrote:
> Defer the ggtt node removal to a thread if runtime_pm is not active.
>
> The ggtt node removal can be called from multiple places, including
> places where we cannot protect with outer callers and places we are
> within other locks. So, try to grab the runtime reference if the
> device is already active, otherwise defer the removal to a separate
> thread from where we are sure we can wake the device up.
>
> v2: - use xe wq instead of system wq (Matt and CI)
> - Avoid GFP_KERNEL to be future proof since this removal can
> be called from outside our drivers and we don't want to block
> if atomic is needed. (Matt)
> v3: amend forgot chunk declaring xe_device.
> v4: Use a xe_ggtt_region to encapsulate the node and remova info,
> wihtout the need for any memory allocation at runtime.
>
> Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> Cc: Francois Dugast <francois.dugast@intel.com>
> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> Cc: Matthew Brost <matthew.brost@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/xe/display/xe_fb_pin.c | 10 +--
> drivers/gpu/drm/xe/xe_bo.c | 2 +-
> drivers/gpu/drm/xe/xe_bo.h | 6 +-
> drivers/gpu/drm/xe/xe_bo_types.h | 6 +-
> drivers/gpu/drm/xe/xe_ggtt.c | 112 +++++++++++++++++--------
> drivers/gpu/drm/xe/xe_ggtt.h | 1 -
> drivers/gpu/drm/xe/xe_ggtt_types.h | 21 +++++
> 7 files changed, 111 insertions(+), 47 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/display/xe_fb_pin.c b/drivers/gpu/drm/xe/display/xe_fb_pin.c
> index a2f417209124..b54d8850463a 100644
> --- a/drivers/gpu/drm/xe/display/xe_fb_pin.c
> +++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c
> @@ -153,7 +153,7 @@ static int __xe_pin_fb_vma_dpt(const struct intel_framebuffer *fb,
> }
>
> vma->dpt = dpt;
> - vma->node = dpt->ggtt_node;
> + vma->node = dpt->ggtt_region.node;
> return 0;
> }
>
> @@ -203,8 +203,8 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
> if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
> align = max_t(u32, align, SZ_64K);
>
> - if (bo->ggtt_node.size && view->type == I915_GTT_VIEW_NORMAL) {
> - vma->node = bo->ggtt_node;
> + if (bo->ggtt_region.node.size && view->type == I915_GTT_VIEW_NORMAL) {
> + vma->node = bo->ggtt_region.node;
> } else if (view->type == I915_GTT_VIEW_NORMAL) {
> u32 x, size = bo->ttm.base.size;
>
> @@ -322,8 +322,8 @@ static void __xe_unpin_fb_vma(struct i915_vma *vma)
>
> if (vma->dpt)
> xe_bo_unpin_map_no_vm(vma->dpt);
> - else if (!drm_mm_node_allocated(&vma->bo->ggtt_node) ||
> - vma->bo->ggtt_node.start != vma->node.start)
> + else if (!drm_mm_node_allocated(&vma->bo->ggtt_region.node) ||
> + vma->bo->ggtt_region.node.start != vma->node.start)
> xe_ggtt_remove_node(ggtt, &vma->node, false);
>
> ttm_bo_reserve(&vma->bo->ttm, false, false, NULL);
> diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
> index 2bae01ce4e5b..c807c0fe8d4a 100644
> --- a/drivers/gpu/drm/xe/xe_bo.c
> +++ b/drivers/gpu/drm/xe/xe_bo.c
> @@ -1072,7 +1072,7 @@ static void xe_ttm_bo_destroy(struct ttm_buffer_object *ttm_bo)
>
> xe_assert(xe, list_empty(&ttm_bo->base.gpuva.list));
>
> - if (bo->ggtt_node.size)
> + if (bo->ggtt_region.node.size)
> xe_ggtt_remove_bo(bo->tile->mem.ggtt, bo);
>
> #ifdef CONFIG_PROC_FS
> diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h
> index 6de894c728f5..79e77dac48f3 100644
> --- a/drivers/gpu/drm/xe/xe_bo.h
> +++ b/drivers/gpu/drm/xe/xe_bo.h
> @@ -194,9 +194,9 @@ xe_bo_main_addr(struct xe_bo *bo, size_t page_size)
> static inline u32
> xe_bo_ggtt_addr(struct xe_bo *bo)
> {
> - XE_WARN_ON(bo->ggtt_node.size > bo->size);
> - XE_WARN_ON(bo->ggtt_node.start + bo->ggtt_node.size > (1ull << 32));
> - return bo->ggtt_node.start;
> + XE_WARN_ON(bo->ggtt_region.node.size > bo->size);
> + XE_WARN_ON(bo->ggtt_region.node.start + bo->ggtt_region.node.size > (1ull << 32));
> + return bo->ggtt_region.node.start;
> }
>
> int xe_bo_vmap(struct xe_bo *bo);
> diff --git a/drivers/gpu/drm/xe/xe_bo_types.h b/drivers/gpu/drm/xe/xe_bo_types.h
> index 86422e113d39..d905fa5e1b52 100644
> --- a/drivers/gpu/drm/xe/xe_bo_types.h
> +++ b/drivers/gpu/drm/xe/xe_bo_types.h
> @@ -14,6 +14,8 @@
> #include <drm/ttm/ttm_execbuf_util.h>
> #include <drm/ttm/ttm_placement.h>
>
> +#include "xe_ggtt_types.h"
> +
> struct xe_device;
> struct xe_vm;
>
> @@ -38,8 +40,8 @@ struct xe_bo {
> struct ttm_place placements[XE_BO_MAX_PLACEMENTS];
> /** @placement: current placement for this BO */
> struct ttm_placement placement;
> - /** @ggtt_node: GGTT node if this BO is mapped in the GGTT */
> - struct drm_mm_node ggtt_node;
> + /** @ggtt_region: GGTT region node if this BO is mapped in the GGTT */
> + struct xe_ggtt_region ggtt_region;
> /** @vmap: iosys map of this buffer */
> struct iosys_map vmap;
> /** @ttm_kmap: TTM bo kmap object for internal use only. Keep off. */
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
> index 8ff91fd1b7c8..d683c27761c0 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.c
> +++ b/drivers/gpu/drm/xe/xe_ggtt.c
> @@ -389,7 +389,7 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> {
> u16 cache_mode = bo->flags & XE_BO_FLAG_NEEDS_UC ? XE_CACHE_NONE : XE_CACHE_WB;
> u16 pat_index = tile_to_xe(ggtt->tile)->pat.idx[cache_mode];
> - u64 start = bo->ggtt_node.start;
> + u64 start = bo->ggtt_region.node.start;
> u64 offset, pte;
>
> for (offset = 0; offset < bo->size; offset += XE_PAGE_SIZE) {
> @@ -398,6 +398,74 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> }
> }
>
> +static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> + bool invalidate)
> +{
> + struct xe_device *xe = tile_to_xe(ggtt->tile);
> + bool bound;
> + int idx;
> +
> + bound = drm_dev_enter(&xe->drm, &idx);
> +
> + mutex_lock(&ggtt->lock);
> + if (bound)
> + xe_ggtt_clear(ggtt, node->start, node->size);
> + drm_mm_remove_node(node);
> + node->size = 0;
> + mutex_unlock(&ggtt->lock);
> +
> + if (!bound)
> + return;
> +
> + if (invalidate)
> + xe_ggtt_invalidate(ggtt);
> +
> + drm_dev_exit(idx);
> +}
> +
> +static void ggtt_remove_node_work_func(struct work_struct *work)
> +{
> + struct xe_ggtt_region *ggtt_region = container_of(work,
> + typeof(*ggtt_region),
> + delayed_removal.work);
> + struct xe_device *xe = tile_to_xe(ggtt_region->ggtt->tile);
> +
> + xe_pm_runtime_get(xe);
> + ggtt_remove_node(ggtt_region->ggtt, &ggtt_region->node,
> + ggtt_region->delayed_removal.invalidate);
> + xe_pm_runtime_put(xe);
> +}
> +
> +static void ggtt_queue_remove_node(struct drm_mm_node *node, bool invalidate)
> +{
> + struct xe_ggtt_region *ggtt_region = container_of(node,
> + typeof(*ggtt_region),
> + node);
> + struct xe_device *xe = tile_to_xe(ggtt_region->ggtt->tile);
> +
I think you need to set ggtt_region->delayed_removal.invalidate here.
Otherwise LGTM.
Matt
> + queue_work(xe->unordered_wq, &ggtt_region->delayed_removal.work);
> +}
> +
> +void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> + bool invalidate)
> +{
> + struct xe_device *xe = tile_to_xe(ggtt->tile);
> +
> + if (xe_pm_runtime_get_if_active(xe)) {
> + ggtt_remove_node(ggtt, node, invalidate);
> + xe_pm_runtime_put(xe);
> + } else {
> + ggtt_queue_remove_node(node, invalidate);
> + }
> +}
> +
> +static void ggtt_region_init(struct xe_ggtt *ggtt,
> + struct xe_ggtt_region *ggtt_region)
> +{
> + INIT_WORK(&ggtt_region->delayed_removal.work, ggtt_remove_node_work_func);
> + ggtt_region->ggtt = ggtt;
> +}
> +
> static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
> u64 start, u64 end)
> {
> @@ -407,9 +475,9 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
> if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
> alignment = SZ_64K;
>
> - if (XE_WARN_ON(bo->ggtt_node.size)) {
> + if (XE_WARN_ON(bo->ggtt_region.node.size)) {
> /* Someone's already inserted this BO in the GGTT */
> - xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
> + xe_tile_assert(ggtt->tile, bo->ggtt_region.node.size == bo->size);
> return 0;
> }
>
> @@ -417,9 +485,11 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
> if (err)
> return err;
>
> + ggtt_region_init(ggtt, &bo->ggtt_region);
> +
> xe_pm_runtime_get_noresume(tile_to_xe(ggtt->tile));
> mutex_lock(&ggtt->lock);
> - err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_node, bo->size,
> + err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_region.node, bo->size,
> alignment, 0, start, end, 0);
> if (!err)
> xe_ggtt_map_bo(ggtt, bo);
> @@ -443,43 +513,15 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
> }
>
> -void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> - bool invalidate)
> -{
> - struct xe_device *xe = tile_to_xe(ggtt->tile);
> - bool bound;
> - int idx;
> -
> - bound = drm_dev_enter(&xe->drm, &idx);
> - if (bound)
> - xe_pm_runtime_get_noresume(xe);
> -
> - mutex_lock(&ggtt->lock);
> - if (bound)
> - xe_ggtt_clear(ggtt, node->start, node->size);
> - drm_mm_remove_node(node);
> - node->size = 0;
> - mutex_unlock(&ggtt->lock);
> -
> - if (!bound)
> - return;
> -
> - if (invalidate)
> - xe_ggtt_invalidate(ggtt);
> -
> - xe_pm_runtime_put(xe);
> - drm_dev_exit(idx);
> -}
> -
> void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> {
> - if (XE_WARN_ON(!bo->ggtt_node.size))
> + if (XE_WARN_ON(!bo->ggtt_region.node.size))
> return;
>
> /* This BO is not currently in the GGTT */
> - xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
> + xe_tile_assert(ggtt->tile, bo->ggtt_region.node.size == bo->size);
>
> - xe_ggtt_remove_node(ggtt, &bo->ggtt_node,
> + xe_ggtt_remove_node(ggtt, &bo->ggtt_region.node,
> bo->flags & XE_BO_FLAG_GGTT_INVALIDATE);
> }
>
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
> index 4a41a1762358..75511b5f43eb 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.h
> +++ b/drivers/gpu/drm/xe/xe_ggtt.h
> @@ -30,7 +30,6 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
> int xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
> u64 start, u64 end);
> void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
> -
> int xe_ggtt_dump(struct xe_ggtt *ggtt, struct drm_printer *p);
>
> #ifdef CONFIG_PCI_IOV
> diff --git a/drivers/gpu/drm/xe/xe_ggtt_types.h b/drivers/gpu/drm/xe/xe_ggtt_types.h
> index d8c584d9a8c3..bea66aa0d843 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt_types.h
> +++ b/drivers/gpu/drm/xe/xe_ggtt_types.h
> @@ -36,4 +36,25 @@ struct xe_ggtt {
> struct drm_mm mm;
> };
>
> +/**
> + * struct xe_ggtt_region - GGTT region node
> + * It needs to be initialized before the drm_mm_node insertion in the GGTT.
> + */
> +struct xe_ggtt_region {
> + /** @ggtt: Back pointer to xe_ggtt where this region will be inserted at */
> + struct xe_ggtt *ggtt;
> + /** @node: The drm_mm_node itself */
> + struct drm_mm_node node;
> + /**
> + * @delayed_removal: Information for removal through work thread when
> + * device runtime_pm is suspended
> + */
> + struct {
> + /** @delayed_removal.work: The work struct for the delayed removal */
> + struct work_struct work;
> + /** @delayed_removal.invalidate: If it needs invalidation upon removal */
> + bool invalidate;
> + } delayed_removal;
> +};
> +
> #endif
> --
> 2.45.1
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
@ 2024-06-12 18:20 Rodrigo Vivi
2024-06-13 9:06 ` Matthew Auld
0 siblings, 1 reply; 26+ messages in thread
From: Rodrigo Vivi @ 2024-06-12 18:20 UTC (permalink / raw)
To: intel-xe
Cc: Rodrigo Vivi, Paulo Zanoni, Francois Dugast,
Thomas Hellström, Matthew Brost
Defer the ggtt node removal to a thread if runtime_pm is not active.
The ggtt node removal can be called from multiple places, including
places where we cannot protect with outer callers and places we are
within other locks. So, try to grab the runtime reference if the
device is already active, otherwise defer the removal to a separate
thread from where we are sure we can wake the device up.
v2: - use xe wq instead of system wq (Matt and CI)
- Avoid GFP_KERNEL to be future proof since this removal can
be called from outside our drivers and we don't want to block
if atomic is needed. (Matt)
v3: amend forgot chunk declaring xe_device.
v4: Use a xe_ggtt_region to encapsulate the node and remova info,
wihtout the need for any memory allocation at runtime.
v5: Actually fill the delayed_removal.invalidate (Matt)
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/display/xe_fb_pin.c | 10 +--
drivers/gpu/drm/xe/xe_bo.c | 2 +-
drivers/gpu/drm/xe/xe_bo.h | 6 +-
drivers/gpu/drm/xe/xe_bo_types.h | 6 +-
drivers/gpu/drm/xe/xe_ggtt.c | 113 +++++++++++++++++--------
drivers/gpu/drm/xe/xe_ggtt.h | 1 -
drivers/gpu/drm/xe/xe_ggtt_types.h | 21 +++++
7 files changed, 112 insertions(+), 47 deletions(-)
diff --git a/drivers/gpu/drm/xe/display/xe_fb_pin.c b/drivers/gpu/drm/xe/display/xe_fb_pin.c
index a2f417209124..b54d8850463a 100644
--- a/drivers/gpu/drm/xe/display/xe_fb_pin.c
+++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c
@@ -153,7 +153,7 @@ static int __xe_pin_fb_vma_dpt(const struct intel_framebuffer *fb,
}
vma->dpt = dpt;
- vma->node = dpt->ggtt_node;
+ vma->node = dpt->ggtt_region.node;
return 0;
}
@@ -203,8 +203,8 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
align = max_t(u32, align, SZ_64K);
- if (bo->ggtt_node.size && view->type == I915_GTT_VIEW_NORMAL) {
- vma->node = bo->ggtt_node;
+ if (bo->ggtt_region.node.size && view->type == I915_GTT_VIEW_NORMAL) {
+ vma->node = bo->ggtt_region.node;
} else if (view->type == I915_GTT_VIEW_NORMAL) {
u32 x, size = bo->ttm.base.size;
@@ -322,8 +322,8 @@ static void __xe_unpin_fb_vma(struct i915_vma *vma)
if (vma->dpt)
xe_bo_unpin_map_no_vm(vma->dpt);
- else if (!drm_mm_node_allocated(&vma->bo->ggtt_node) ||
- vma->bo->ggtt_node.start != vma->node.start)
+ else if (!drm_mm_node_allocated(&vma->bo->ggtt_region.node) ||
+ vma->bo->ggtt_region.node.start != vma->node.start)
xe_ggtt_remove_node(ggtt, &vma->node, false);
ttm_bo_reserve(&vma->bo->ttm, false, false, NULL);
diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
index 2bae01ce4e5b..c807c0fe8d4a 100644
--- a/drivers/gpu/drm/xe/xe_bo.c
+++ b/drivers/gpu/drm/xe/xe_bo.c
@@ -1072,7 +1072,7 @@ static void xe_ttm_bo_destroy(struct ttm_buffer_object *ttm_bo)
xe_assert(xe, list_empty(&ttm_bo->base.gpuva.list));
- if (bo->ggtt_node.size)
+ if (bo->ggtt_region.node.size)
xe_ggtt_remove_bo(bo->tile->mem.ggtt, bo);
#ifdef CONFIG_PROC_FS
diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h
index 6de894c728f5..79e77dac48f3 100644
--- a/drivers/gpu/drm/xe/xe_bo.h
+++ b/drivers/gpu/drm/xe/xe_bo.h
@@ -194,9 +194,9 @@ xe_bo_main_addr(struct xe_bo *bo, size_t page_size)
static inline u32
xe_bo_ggtt_addr(struct xe_bo *bo)
{
- XE_WARN_ON(bo->ggtt_node.size > bo->size);
- XE_WARN_ON(bo->ggtt_node.start + bo->ggtt_node.size > (1ull << 32));
- return bo->ggtt_node.start;
+ XE_WARN_ON(bo->ggtt_region.node.size > bo->size);
+ XE_WARN_ON(bo->ggtt_region.node.start + bo->ggtt_region.node.size > (1ull << 32));
+ return bo->ggtt_region.node.start;
}
int xe_bo_vmap(struct xe_bo *bo);
diff --git a/drivers/gpu/drm/xe/xe_bo_types.h b/drivers/gpu/drm/xe/xe_bo_types.h
index 86422e113d39..d905fa5e1b52 100644
--- a/drivers/gpu/drm/xe/xe_bo_types.h
+++ b/drivers/gpu/drm/xe/xe_bo_types.h
@@ -14,6 +14,8 @@
#include <drm/ttm/ttm_execbuf_util.h>
#include <drm/ttm/ttm_placement.h>
+#include "xe_ggtt_types.h"
+
struct xe_device;
struct xe_vm;
@@ -38,8 +40,8 @@ struct xe_bo {
struct ttm_place placements[XE_BO_MAX_PLACEMENTS];
/** @placement: current placement for this BO */
struct ttm_placement placement;
- /** @ggtt_node: GGTT node if this BO is mapped in the GGTT */
- struct drm_mm_node ggtt_node;
+ /** @ggtt_region: GGTT region node if this BO is mapped in the GGTT */
+ struct xe_ggtt_region ggtt_region;
/** @vmap: iosys map of this buffer */
struct iosys_map vmap;
/** @ttm_kmap: TTM bo kmap object for internal use only. Keep off. */
diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
index 8ff91fd1b7c8..5f7c335020ce 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.c
+++ b/drivers/gpu/drm/xe/xe_ggtt.c
@@ -389,7 +389,7 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
{
u16 cache_mode = bo->flags & XE_BO_FLAG_NEEDS_UC ? XE_CACHE_NONE : XE_CACHE_WB;
u16 pat_index = tile_to_xe(ggtt->tile)->pat.idx[cache_mode];
- u64 start = bo->ggtt_node.start;
+ u64 start = bo->ggtt_region.node.start;
u64 offset, pte;
for (offset = 0; offset < bo->size; offset += XE_PAGE_SIZE) {
@@ -398,6 +398,75 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
}
}
+static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct xe_device *xe = tile_to_xe(ggtt->tile);
+ bool bound;
+ int idx;
+
+ bound = drm_dev_enter(&xe->drm, &idx);
+
+ mutex_lock(&ggtt->lock);
+ if (bound)
+ xe_ggtt_clear(ggtt, node->start, node->size);
+ drm_mm_remove_node(node);
+ node->size = 0;
+ mutex_unlock(&ggtt->lock);
+
+ if (!bound)
+ return;
+
+ if (invalidate)
+ xe_ggtt_invalidate(ggtt);
+
+ drm_dev_exit(idx);
+}
+
+static void ggtt_remove_node_work_func(struct work_struct *work)
+{
+ struct xe_ggtt_region *ggtt_region = container_of(work,
+ typeof(*ggtt_region),
+ delayed_removal.work);
+ struct xe_device *xe = tile_to_xe(ggtt_region->ggtt->tile);
+
+ xe_pm_runtime_get(xe);
+ ggtt_remove_node(ggtt_region->ggtt, &ggtt_region->node,
+ ggtt_region->delayed_removal.invalidate);
+ xe_pm_runtime_put(xe);
+}
+
+static void ggtt_queue_remove_node(struct drm_mm_node *node, bool invalidate)
+{
+ struct xe_ggtt_region *ggtt_region = container_of(node,
+ typeof(*ggtt_region),
+ node);
+ struct xe_device *xe = tile_to_xe(ggtt_region->ggtt->tile);
+
+ ggtt_region->delayed_removal.invalidate = invalidate;
+ queue_work(xe->unordered_wq, &ggtt_region->delayed_removal.work);
+}
+
+void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct xe_device *xe = tile_to_xe(ggtt->tile);
+
+ if (xe_pm_runtime_get_if_active(xe)) {
+ ggtt_remove_node(ggtt, node, invalidate);
+ xe_pm_runtime_put(xe);
+ } else {
+ ggtt_queue_remove_node(node, invalidate);
+ }
+}
+
+static void ggtt_region_init(struct xe_ggtt *ggtt,
+ struct xe_ggtt_region *ggtt_region)
+{
+ INIT_WORK(&ggtt_region->delayed_removal.work, ggtt_remove_node_work_func);
+ ggtt_region->ggtt = ggtt;
+}
+
static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
u64 start, u64 end)
{
@@ -407,9 +476,9 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
alignment = SZ_64K;
- if (XE_WARN_ON(bo->ggtt_node.size)) {
+ if (XE_WARN_ON(bo->ggtt_region.node.size)) {
/* Someone's already inserted this BO in the GGTT */
- xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
+ xe_tile_assert(ggtt->tile, bo->ggtt_region.node.size == bo->size);
return 0;
}
@@ -417,9 +486,11 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
if (err)
return err;
+ ggtt_region_init(ggtt, &bo->ggtt_region);
+
xe_pm_runtime_get_noresume(tile_to_xe(ggtt->tile));
mutex_lock(&ggtt->lock);
- err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_node, bo->size,
+ err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_region.node, bo->size,
alignment, 0, start, end, 0);
if (!err)
xe_ggtt_map_bo(ggtt, bo);
@@ -443,43 +514,15 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
}
-void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
- bool invalidate)
-{
- struct xe_device *xe = tile_to_xe(ggtt->tile);
- bool bound;
- int idx;
-
- bound = drm_dev_enter(&xe->drm, &idx);
- if (bound)
- xe_pm_runtime_get_noresume(xe);
-
- mutex_lock(&ggtt->lock);
- if (bound)
- xe_ggtt_clear(ggtt, node->start, node->size);
- drm_mm_remove_node(node);
- node->size = 0;
- mutex_unlock(&ggtt->lock);
-
- if (!bound)
- return;
-
- if (invalidate)
- xe_ggtt_invalidate(ggtt);
-
- xe_pm_runtime_put(xe);
- drm_dev_exit(idx);
-}
-
void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
{
- if (XE_WARN_ON(!bo->ggtt_node.size))
+ if (XE_WARN_ON(!bo->ggtt_region.node.size))
return;
/* This BO is not currently in the GGTT */
- xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
+ xe_tile_assert(ggtt->tile, bo->ggtt_region.node.size == bo->size);
- xe_ggtt_remove_node(ggtt, &bo->ggtt_node,
+ xe_ggtt_remove_node(ggtt, &bo->ggtt_region.node,
bo->flags & XE_BO_FLAG_GGTT_INVALIDATE);
}
diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
index 4a41a1762358..75511b5f43eb 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.h
+++ b/drivers/gpu/drm/xe/xe_ggtt.h
@@ -30,7 +30,6 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
int xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
u64 start, u64 end);
void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
-
int xe_ggtt_dump(struct xe_ggtt *ggtt, struct drm_printer *p);
#ifdef CONFIG_PCI_IOV
diff --git a/drivers/gpu/drm/xe/xe_ggtt_types.h b/drivers/gpu/drm/xe/xe_ggtt_types.h
index d8c584d9a8c3..bea66aa0d843 100644
--- a/drivers/gpu/drm/xe/xe_ggtt_types.h
+++ b/drivers/gpu/drm/xe/xe_ggtt_types.h
@@ -36,4 +36,25 @@ struct xe_ggtt {
struct drm_mm mm;
};
+/**
+ * struct xe_ggtt_region - GGTT region node
+ * It needs to be initialized before the drm_mm_node insertion in the GGTT.
+ */
+struct xe_ggtt_region {
+ /** @ggtt: Back pointer to xe_ggtt where this region will be inserted at */
+ struct xe_ggtt *ggtt;
+ /** @node: The drm_mm_node itself */
+ struct drm_mm_node node;
+ /**
+ * @delayed_removal: Information for removal through work thread when
+ * device runtime_pm is suspended
+ */
+ struct {
+ /** @delayed_removal.work: The work struct for the delayed removal */
+ struct work_struct work;
+ /** @delayed_removal.invalidate: If it needs invalidation upon removal */
+ bool invalidate;
+ } delayed_removal;
+};
+
#endif
--
2.45.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-06-12 18:20 Rodrigo Vivi
@ 2024-06-13 9:06 ` Matthew Auld
0 siblings, 0 replies; 26+ messages in thread
From: Matthew Auld @ 2024-06-13 9:06 UTC (permalink / raw)
To: Rodrigo Vivi, intel-xe
Cc: Paulo Zanoni, Francois Dugast, Thomas Hellström,
Matthew Brost
On 12/06/2024 19:20, Rodrigo Vivi wrote:
> Defer the ggtt node removal to a thread if runtime_pm is not active.
>
> The ggtt node removal can be called from multiple places, including
> places where we cannot protect with outer callers and places we are
> within other locks. So, try to grab the runtime reference if the
> device is already active, otherwise defer the removal to a separate
> thread from where we are sure we can wake the device up.
>
> v2: - use xe wq instead of system wq (Matt and CI)
> - Avoid GFP_KERNEL to be future proof since this removal can
> be called from outside our drivers and we don't want to block
> if atomic is needed. (Matt)
> v3: amend forgot chunk declaring xe_device.
> v4: Use a xe_ggtt_region to encapsulate the node and remova info,
> wihtout the need for any memory allocation at runtime.
> v5: Actually fill the delayed_removal.invalidate (Matt)
>
> Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> Cc: Francois Dugast <francois.dugast@intel.com>
> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> Cc: Matthew Brost <matthew.brost@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/xe/display/xe_fb_pin.c | 10 +--
> drivers/gpu/drm/xe/xe_bo.c | 2 +-
> drivers/gpu/drm/xe/xe_bo.h | 6 +-
> drivers/gpu/drm/xe/xe_bo_types.h | 6 +-
> drivers/gpu/drm/xe/xe_ggtt.c | 113 +++++++++++++++++--------
> drivers/gpu/drm/xe/xe_ggtt.h | 1 -
> drivers/gpu/drm/xe/xe_ggtt_types.h | 21 +++++
> 7 files changed, 112 insertions(+), 47 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/display/xe_fb_pin.c b/drivers/gpu/drm/xe/display/xe_fb_pin.c
> index a2f417209124..b54d8850463a 100644
> --- a/drivers/gpu/drm/xe/display/xe_fb_pin.c
> +++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c
> @@ -153,7 +153,7 @@ static int __xe_pin_fb_vma_dpt(const struct intel_framebuffer *fb,
> }
>
> vma->dpt = dpt;
> - vma->node = dpt->ggtt_node;
> + vma->node = dpt->ggtt_region.node;
> return 0;
> }
>
> @@ -203,8 +203,8 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
> if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
> align = max_t(u32, align, SZ_64K);
>
> - if (bo->ggtt_node.size && view->type == I915_GTT_VIEW_NORMAL) {
> - vma->node = bo->ggtt_node;
> + if (bo->ggtt_region.node.size && view->type == I915_GTT_VIEW_NORMAL) {
> + vma->node = bo->ggtt_region.node;
> } else if (view->type == I915_GTT_VIEW_NORMAL) {
> u32 x, size = bo->ttm.base.size;
>
> @@ -322,8 +322,8 @@ static void __xe_unpin_fb_vma(struct i915_vma *vma)
>
> if (vma->dpt)
> xe_bo_unpin_map_no_vm(vma->dpt);
> - else if (!drm_mm_node_allocated(&vma->bo->ggtt_node) ||
> - vma->bo->ggtt_node.start != vma->node.start)
> + else if (!drm_mm_node_allocated(&vma->bo->ggtt_region.node) ||
> + vma->bo->ggtt_region.node.start != vma->node.start)
> xe_ggtt_remove_node(ggtt, &vma->node, false);
>
> ttm_bo_reserve(&vma->bo->ttm, false, false, NULL);
> diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
> index 2bae01ce4e5b..c807c0fe8d4a 100644
> --- a/drivers/gpu/drm/xe/xe_bo.c
> +++ b/drivers/gpu/drm/xe/xe_bo.c
> @@ -1072,7 +1072,7 @@ static void xe_ttm_bo_destroy(struct ttm_buffer_object *ttm_bo)
>
> xe_assert(xe, list_empty(&ttm_bo->base.gpuva.list));
>
> - if (bo->ggtt_node.size)
> + if (bo->ggtt_region.node.size)
> xe_ggtt_remove_bo(bo->tile->mem.ggtt, bo);
>
> #ifdef CONFIG_PROC_FS
> diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h
> index 6de894c728f5..79e77dac48f3 100644
> --- a/drivers/gpu/drm/xe/xe_bo.h
> +++ b/drivers/gpu/drm/xe/xe_bo.h
> @@ -194,9 +194,9 @@ xe_bo_main_addr(struct xe_bo *bo, size_t page_size)
> static inline u32
> xe_bo_ggtt_addr(struct xe_bo *bo)
> {
> - XE_WARN_ON(bo->ggtt_node.size > bo->size);
> - XE_WARN_ON(bo->ggtt_node.start + bo->ggtt_node.size > (1ull << 32));
> - return bo->ggtt_node.start;
> + XE_WARN_ON(bo->ggtt_region.node.size > bo->size);
> + XE_WARN_ON(bo->ggtt_region.node.start + bo->ggtt_region.node.size > (1ull << 32));
> + return bo->ggtt_region.node.start;
> }
>
> int xe_bo_vmap(struct xe_bo *bo);
> diff --git a/drivers/gpu/drm/xe/xe_bo_types.h b/drivers/gpu/drm/xe/xe_bo_types.h
> index 86422e113d39..d905fa5e1b52 100644
> --- a/drivers/gpu/drm/xe/xe_bo_types.h
> +++ b/drivers/gpu/drm/xe/xe_bo_types.h
> @@ -14,6 +14,8 @@
> #include <drm/ttm/ttm_execbuf_util.h>
> #include <drm/ttm/ttm_placement.h>
>
> +#include "xe_ggtt_types.h"
> +
> struct xe_device;
> struct xe_vm;
>
> @@ -38,8 +40,8 @@ struct xe_bo {
> struct ttm_place placements[XE_BO_MAX_PLACEMENTS];
> /** @placement: current placement for this BO */
> struct ttm_placement placement;
> - /** @ggtt_node: GGTT node if this BO is mapped in the GGTT */
> - struct drm_mm_node ggtt_node;
> + /** @ggtt_region: GGTT region node if this BO is mapped in the GGTT */
> + struct xe_ggtt_region ggtt_region;
> /** @vmap: iosys map of this buffer */
> struct iosys_map vmap;
> /** @ttm_kmap: TTM bo kmap object for internal use only. Keep off. */
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
> index 8ff91fd1b7c8..5f7c335020ce 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.c
> +++ b/drivers/gpu/drm/xe/xe_ggtt.c
> @@ -389,7 +389,7 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> {
> u16 cache_mode = bo->flags & XE_BO_FLAG_NEEDS_UC ? XE_CACHE_NONE : XE_CACHE_WB;
> u16 pat_index = tile_to_xe(ggtt->tile)->pat.idx[cache_mode];
> - u64 start = bo->ggtt_node.start;
> + u64 start = bo->ggtt_region.node.start;
> u64 offset, pte;
>
> for (offset = 0; offset < bo->size; offset += XE_PAGE_SIZE) {
> @@ -398,6 +398,75 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> }
> }
>
> +static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> + bool invalidate)
> +{
> + struct xe_device *xe = tile_to_xe(ggtt->tile);
> + bool bound;
> + int idx;
> +
> + bound = drm_dev_enter(&xe->drm, &idx);
> +
> + mutex_lock(&ggtt->lock);
> + if (bound)
> + xe_ggtt_clear(ggtt, node->start, node->size);
> + drm_mm_remove_node(node);
> + node->size = 0;
> + mutex_unlock(&ggtt->lock);
> +
> + if (!bound)
> + return;
> +
> + if (invalidate)
> + xe_ggtt_invalidate(ggtt);
> +
> + drm_dev_exit(idx);
> +}
> +
> +static void ggtt_remove_node_work_func(struct work_struct *work)
> +{
> + struct xe_ggtt_region *ggtt_region = container_of(work,
> + typeof(*ggtt_region),
> + delayed_removal.work);
> + struct xe_device *xe = tile_to_xe(ggtt_region->ggtt->tile);
> +
> + xe_pm_runtime_get(xe);
> + ggtt_remove_node(ggtt_region->ggtt, &ggtt_region->node,
> + ggtt_region->delayed_removal.invalidate);
> + xe_pm_runtime_put(xe);
> +}
> +
> +static void ggtt_queue_remove_node(struct drm_mm_node *node, bool invalidate)
> +{
> + struct xe_ggtt_region *ggtt_region = container_of(node,
> + typeof(*ggtt_region),
> + node);
> + struct xe_device *xe = tile_to_xe(ggtt_region->ggtt->tile);
> +
> + ggtt_region->delayed_removal.invalidate = invalidate;
> + queue_work(xe->unordered_wq, &ggtt_region->delayed_removal.work);
What prevents ggtt_region from being freed before the queued work
completes? The ggtt_region looks to be embedded in the bo which is
potentially freed shorty after this.
> +}
> +
> +void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> + bool invalidate)
> +{
> + struct xe_device *xe = tile_to_xe(ggtt->tile);
> +
> + if (xe_pm_runtime_get_if_active(xe)) {
> + ggtt_remove_node(ggtt, node, invalidate);
> + xe_pm_runtime_put(xe);
> + } else {
> + ggtt_queue_remove_node(node, invalidate);
> + }
> +}
> +
> +static void ggtt_region_init(struct xe_ggtt *ggtt,
> + struct xe_ggtt_region *ggtt_region)
> +{
> + INIT_WORK(&ggtt_region->delayed_removal.work, ggtt_remove_node_work_func);
> + ggtt_region->ggtt = ggtt;
> +}
> +
> static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
> u64 start, u64 end)
> {
> @@ -407,9 +476,9 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
> if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
> alignment = SZ_64K;
>
> - if (XE_WARN_ON(bo->ggtt_node.size)) {
> + if (XE_WARN_ON(bo->ggtt_region.node.size)) {
> /* Someone's already inserted this BO in the GGTT */
> - xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
> + xe_tile_assert(ggtt->tile, bo->ggtt_region.node.size == bo->size);
> return 0;
> }
>
> @@ -417,9 +486,11 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
> if (err)
> return err;
>
> + ggtt_region_init(ggtt, &bo->ggtt_region);
> +
> xe_pm_runtime_get_noresume(tile_to_xe(ggtt->tile));
> mutex_lock(&ggtt->lock);
> - err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_node, bo->size,
> + err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_region.node, bo->size,
> alignment, 0, start, end, 0);
> if (!err)
> xe_ggtt_map_bo(ggtt, bo);
> @@ -443,43 +514,15 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
> }
>
> -void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> - bool invalidate)
> -{
> - struct xe_device *xe = tile_to_xe(ggtt->tile);
> - bool bound;
> - int idx;
> -
> - bound = drm_dev_enter(&xe->drm, &idx);
> - if (bound)
> - xe_pm_runtime_get_noresume(xe);
> -
> - mutex_lock(&ggtt->lock);
> - if (bound)
> - xe_ggtt_clear(ggtt, node->start, node->size);
> - drm_mm_remove_node(node);
> - node->size = 0;
> - mutex_unlock(&ggtt->lock);
> -
> - if (!bound)
> - return;
> -
> - if (invalidate)
> - xe_ggtt_invalidate(ggtt);
> -
> - xe_pm_runtime_put(xe);
> - drm_dev_exit(idx);
> -}
> -
> void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> {
> - if (XE_WARN_ON(!bo->ggtt_node.size))
> + if (XE_WARN_ON(!bo->ggtt_region.node.size))
> return;
>
> /* This BO is not currently in the GGTT */
> - xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
> + xe_tile_assert(ggtt->tile, bo->ggtt_region.node.size == bo->size);
>
> - xe_ggtt_remove_node(ggtt, &bo->ggtt_node,
> + xe_ggtt_remove_node(ggtt, &bo->ggtt_region.node,
> bo->flags & XE_BO_FLAG_GGTT_INVALIDATE);
> }
>
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
> index 4a41a1762358..75511b5f43eb 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.h
> +++ b/drivers/gpu/drm/xe/xe_ggtt.h
> @@ -30,7 +30,6 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
> int xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
> u64 start, u64 end);
> void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
> -
> int xe_ggtt_dump(struct xe_ggtt *ggtt, struct drm_printer *p);
>
> #ifdef CONFIG_PCI_IOV
> diff --git a/drivers/gpu/drm/xe/xe_ggtt_types.h b/drivers/gpu/drm/xe/xe_ggtt_types.h
> index d8c584d9a8c3..bea66aa0d843 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt_types.h
> +++ b/drivers/gpu/drm/xe/xe_ggtt_types.h
> @@ -36,4 +36,25 @@ struct xe_ggtt {
> struct drm_mm mm;
> };
>
> +/**
> + * struct xe_ggtt_region - GGTT region node
> + * It needs to be initialized before the drm_mm_node insertion in the GGTT.
> + */
> +struct xe_ggtt_region {
> + /** @ggtt: Back pointer to xe_ggtt where this region will be inserted at */
> + struct xe_ggtt *ggtt;
> + /** @node: The drm_mm_node itself */
> + struct drm_mm_node node;
> + /**
> + * @delayed_removal: Information for removal through work thread when
> + * device runtime_pm is suspended
> + */
> + struct {
> + /** @delayed_removal.work: The work struct for the delayed removal */
> + struct work_struct work;
> + /** @delayed_removal.invalidate: If it needs invalidation upon removal */
> + bool invalidate;
> + } delayed_removal;
> +};
> +
> #endif
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
@ 2024-06-13 21:53 Rodrigo Vivi
2024-06-13 22:39 ` Matthew Brost
2024-06-14 14:29 ` Matthew Auld
0 siblings, 2 replies; 26+ messages in thread
From: Rodrigo Vivi @ 2024-06-13 21:53 UTC (permalink / raw)
To: intel-xe
Cc: Rodrigo Vivi, Matthew Auld, Paulo Zanoni, Francois Dugast,
Thomas Hellström, Matthew Brost
Defer the ggtt node removal to a thread if runtime_pm is not active.
The ggtt node removal can be called from multiple places, including
places where we cannot protect with outer callers and places we are
within other locks. So, try to grab the runtime reference if the
device is already active, otherwise defer the removal to a separate
thread from where we are sure we can wake the device up.
v2: - use xe wq instead of system wq (Matt and CI)
- Avoid GFP_KERNEL to be future proof since this removal can
be called from outside our drivers and we don't want to block
if atomic is needed. (Brost)
v3: amend forgot chunk declaring xe_device.
v4: Use a xe_ggtt_region to encapsulate the node and remova info,
wihtout the need for any memory allocation at runtime.
v5: Actually fill the delayed_removal.invalidate (Brost)
v6: - Ensure that ggtt_region is not freed before work finishes (Auld)
- Own wq to ensures that the queued works are flushed before
ggtt_fini (Brost)
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/display/xe_fb_pin.c | 10 +-
drivers/gpu/drm/xe/xe_bo.c | 2 +-
drivers/gpu/drm/xe/xe_bo.h | 6 +-
drivers/gpu/drm/xe/xe_bo_types.h | 6 +-
drivers/gpu/drm/xe/xe_ggtt.c | 129 ++++++++++++++++++-------
drivers/gpu/drm/xe/xe_ggtt.h | 1 -
drivers/gpu/drm/xe/xe_ggtt_types.h | 23 +++++
7 files changed, 130 insertions(+), 47 deletions(-)
diff --git a/drivers/gpu/drm/xe/display/xe_fb_pin.c b/drivers/gpu/drm/xe/display/xe_fb_pin.c
index a2f417209124..b84139b27970 100644
--- a/drivers/gpu/drm/xe/display/xe_fb_pin.c
+++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c
@@ -153,7 +153,7 @@ static int __xe_pin_fb_vma_dpt(const struct intel_framebuffer *fb,
}
vma->dpt = dpt;
- vma->node = dpt->ggtt_node;
+ vma->node = dpt->ggtt_region->node;
return 0;
}
@@ -203,8 +203,8 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
align = max_t(u32, align, SZ_64K);
- if (bo->ggtt_node.size && view->type == I915_GTT_VIEW_NORMAL) {
- vma->node = bo->ggtt_node;
+ if (bo->ggtt_region->node.size && view->type == I915_GTT_VIEW_NORMAL) {
+ vma->node = bo->ggtt_region->node;
} else if (view->type == I915_GTT_VIEW_NORMAL) {
u32 x, size = bo->ttm.base.size;
@@ -322,8 +322,8 @@ static void __xe_unpin_fb_vma(struct i915_vma *vma)
if (vma->dpt)
xe_bo_unpin_map_no_vm(vma->dpt);
- else if (!drm_mm_node_allocated(&vma->bo->ggtt_node) ||
- vma->bo->ggtt_node.start != vma->node.start)
+ else if (!drm_mm_node_allocated(&vma->bo->ggtt_region->node) ||
+ vma->bo->ggtt_region->node.start != vma->node.start)
xe_ggtt_remove_node(ggtt, &vma->node, false);
ttm_bo_reserve(&vma->bo->ttm, false, false, NULL);
diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
index 74294f1b05bc..0bfd6d1eb0be 100644
--- a/drivers/gpu/drm/xe/xe_bo.c
+++ b/drivers/gpu/drm/xe/xe_bo.c
@@ -1072,7 +1072,7 @@ static void xe_ttm_bo_destroy(struct ttm_buffer_object *ttm_bo)
xe_assert(xe, list_empty(&ttm_bo->base.gpuva.list));
- if (bo->ggtt_node.size)
+ if (bo->ggtt_region->node.size)
xe_ggtt_remove_bo(bo->tile->mem.ggtt, bo);
#ifdef CONFIG_PROC_FS
diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h
index 6de894c728f5..aeb1ebc0d3fc 100644
--- a/drivers/gpu/drm/xe/xe_bo.h
+++ b/drivers/gpu/drm/xe/xe_bo.h
@@ -194,9 +194,9 @@ xe_bo_main_addr(struct xe_bo *bo, size_t page_size)
static inline u32
xe_bo_ggtt_addr(struct xe_bo *bo)
{
- XE_WARN_ON(bo->ggtt_node.size > bo->size);
- XE_WARN_ON(bo->ggtt_node.start + bo->ggtt_node.size > (1ull << 32));
- return bo->ggtt_node.start;
+ XE_WARN_ON(bo->ggtt_region->node.size > bo->size);
+ XE_WARN_ON(bo->ggtt_region->node.start + bo->ggtt_region->node.size > (1ull << 32));
+ return bo->ggtt_region->node.start;
}
int xe_bo_vmap(struct xe_bo *bo);
diff --git a/drivers/gpu/drm/xe/xe_bo_types.h b/drivers/gpu/drm/xe/xe_bo_types.h
index 86422e113d39..f45b1c4bbb6d 100644
--- a/drivers/gpu/drm/xe/xe_bo_types.h
+++ b/drivers/gpu/drm/xe/xe_bo_types.h
@@ -14,6 +14,8 @@
#include <drm/ttm/ttm_execbuf_util.h>
#include <drm/ttm/ttm_placement.h>
+#include "xe_ggtt_types.h"
+
struct xe_device;
struct xe_vm;
@@ -38,8 +40,8 @@ struct xe_bo {
struct ttm_place placements[XE_BO_MAX_PLACEMENTS];
/** @placement: current placement for this BO */
struct ttm_placement placement;
- /** @ggtt_node: GGTT node if this BO is mapped in the GGTT */
- struct drm_mm_node ggtt_node;
+ /** @ggtt_region: GGTT region node if this BO is mapped in the GGTT */
+ struct xe_ggtt_region *ggtt_region;
/** @vmap: iosys map of this buffer */
struct iosys_map vmap;
/** @ttm_kmap: TTM bo kmap object for internal use only. Keep off. */
diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
index 8ff91fd1b7c8..d0284f2c7cbc 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.c
+++ b/drivers/gpu/drm/xe/xe_ggtt.c
@@ -101,6 +101,7 @@ static void ggtt_fini_early(struct drm_device *drm, void *arg)
{
struct xe_ggtt *ggtt = arg;
+ destroy_workqueue(ggtt->wq);
mutex_destroy(&ggtt->lock);
drm_mm_takedown(&ggtt->mm);
}
@@ -191,6 +192,8 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt)
else
ggtt->pt_ops = &xelp_pt_ops;
+ ggtt->wq = alloc_workqueue("xe-ggtt-wq", 0, 0);
+
drm_mm_init(&ggtt->mm, xe_wopcm_size(xe),
ggtt->size - xe_wopcm_size(xe));
mutex_init(&ggtt->lock);
@@ -389,7 +392,7 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
{
u16 cache_mode = bo->flags & XE_BO_FLAG_NEEDS_UC ? XE_CACHE_NONE : XE_CACHE_WB;
u16 pat_index = tile_to_xe(ggtt->tile)->pat.idx[cache_mode];
- u64 start = bo->ggtt_node.start;
+ u64 start = bo->ggtt_region->node.start;
u64 offset, pte;
for (offset = 0; offset < bo->size; offset += XE_PAGE_SIZE) {
@@ -398,18 +401,97 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
}
}
+static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct xe_device *xe = tile_to_xe(ggtt->tile);
+ struct xe_ggtt_region *ggtt_region = container_of(node,
+ typeof(*ggtt_region),
+ node);
+ bool bound;
+ int idx;
+
+ bound = drm_dev_enter(&xe->drm, &idx);
+
+ mutex_lock(&ggtt->lock);
+ if (bound)
+ xe_ggtt_clear(ggtt, node->start, node->size);
+ drm_mm_remove_node(node);
+ node->size = 0;
+ mutex_unlock(&ggtt->lock);
+
+ if (!bound)
+ return;
+
+ if (invalidate)
+ xe_ggtt_invalidate(ggtt);
+
+ drm_dev_exit(idx);
+ kfree(ggtt_region);
+}
+
+static void ggtt_remove_node_work_func(struct work_struct *work)
+{
+ struct xe_ggtt_region *ggtt_region = container_of(work,
+ typeof(*ggtt_region),
+ delayed_removal.work);
+ struct xe_device *xe = tile_to_xe(ggtt_region->ggtt->tile);
+
+ xe_pm_runtime_get(xe);
+ ggtt_remove_node(ggtt_region->ggtt, &ggtt_region->node,
+ ggtt_region->delayed_removal.invalidate);
+ xe_pm_runtime_put(xe);
+}
+
+static void ggtt_queue_remove_node(struct drm_mm_node *node, bool invalidate)
+{
+ struct xe_ggtt_region *ggtt_region = container_of(node,
+ typeof(*ggtt_region),
+ node);
+
+ queue_work(ggtt_region->ggtt->wq, &ggtt_region->delayed_removal.work);
+}
+
+void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct xe_device *xe = tile_to_xe(ggtt->tile);
+
+ if (xe_pm_runtime_get_if_active(xe)) {
+ ggtt_remove_node(ggtt, node, invalidate);
+ xe_pm_runtime_put(xe);
+ } else {
+ ggtt_queue_remove_node(node, invalidate);
+ }
+}
+
+static struct xe_ggtt_region *ggtt_region_init(struct xe_ggtt *ggtt)
+{
+ struct xe_ggtt_region *ggtt_region = kzalloc(sizeof(*ggtt_region),
+ GFP_KERNEL);
+
+ if (!ggtt_region)
+ return ERR_PTR(-ENOMEM);
+
+ INIT_WORK(&ggtt_region->delayed_removal.work, ggtt_remove_node_work_func);
+ ggtt_region->ggtt = ggtt;
+
+ return ggtt_region;
+}
+
static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
u64 start, u64 end)
{
int err;
u64 alignment = XE_PAGE_SIZE;
+ struct xe_ggtt_region *ggtt_region;
if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
alignment = SZ_64K;
- if (XE_WARN_ON(bo->ggtt_node.size)) {
+ if (XE_WARN_ON(bo->ggtt_region->node.size)) {
/* Someone's already inserted this BO in the GGTT */
- xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
+ xe_tile_assert(ggtt->tile, bo->ggtt_region->node.size == bo->size);
return 0;
}
@@ -417,9 +499,14 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
if (err)
return err;
+ ggtt_region = ggtt_region_init(ggtt);
+ if (IS_ERR(ggtt_region))
+ return PTR_ERR(ggtt_region);
+ bo->ggtt_region = ggtt_region;
+
xe_pm_runtime_get_noresume(tile_to_xe(ggtt->tile));
mutex_lock(&ggtt->lock);
- err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_node, bo->size,
+ err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_region->node, bo->size,
alignment, 0, start, end, 0);
if (!err)
xe_ggtt_map_bo(ggtt, bo);
@@ -443,43 +530,15 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
}
-void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
- bool invalidate)
-{
- struct xe_device *xe = tile_to_xe(ggtt->tile);
- bool bound;
- int idx;
-
- bound = drm_dev_enter(&xe->drm, &idx);
- if (bound)
- xe_pm_runtime_get_noresume(xe);
-
- mutex_lock(&ggtt->lock);
- if (bound)
- xe_ggtt_clear(ggtt, node->start, node->size);
- drm_mm_remove_node(node);
- node->size = 0;
- mutex_unlock(&ggtt->lock);
-
- if (!bound)
- return;
-
- if (invalidate)
- xe_ggtt_invalidate(ggtt);
-
- xe_pm_runtime_put(xe);
- drm_dev_exit(idx);
-}
-
void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
{
- if (XE_WARN_ON(!bo->ggtt_node.size))
+ if (XE_WARN_ON(!bo->ggtt_region->node.size))
return;
/* This BO is not currently in the GGTT */
- xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
+ xe_tile_assert(ggtt->tile, bo->ggtt_region->node.size == bo->size);
- xe_ggtt_remove_node(ggtt, &bo->ggtt_node,
+ xe_ggtt_remove_node(ggtt, &bo->ggtt_region->node,
bo->flags & XE_BO_FLAG_GGTT_INVALIDATE);
}
diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
index 4a41a1762358..75511b5f43eb 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.h
+++ b/drivers/gpu/drm/xe/xe_ggtt.h
@@ -30,7 +30,6 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
int xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
u64 start, u64 end);
void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
-
int xe_ggtt_dump(struct xe_ggtt *ggtt, struct drm_printer *p);
#ifdef CONFIG_PCI_IOV
diff --git a/drivers/gpu/drm/xe/xe_ggtt_types.h b/drivers/gpu/drm/xe/xe_ggtt_types.h
index d8c584d9a8c3..202d7f3085ba 100644
--- a/drivers/gpu/drm/xe/xe_ggtt_types.h
+++ b/drivers/gpu/drm/xe/xe_ggtt_types.h
@@ -34,6 +34,29 @@ struct xe_ggtt {
const struct xe_ggtt_pt_ops *pt_ops;
struct drm_mm mm;
+ /** @wq: Dedicated unordered work queue to process node removals */
+ struct workqueue_struct *wq;
+};
+
+/**
+ * struct xe_ggtt_region - GGTT region node
+ * It needs to be initialized before the drm_mm_node insertion in the GGTT.
+ */
+struct xe_ggtt_region {
+ /** @ggtt: Back pointer to xe_ggtt where this region will be inserted at */
+ struct xe_ggtt *ggtt;
+ /** @node: The drm_mm_node itself */
+ struct drm_mm_node node;
+ /**
+ * @delayed_removal: Information for removal through work thread when
+ * device runtime_pm is suspended
+ */
+ struct {
+ /** @delayed_removal.work: The work struct for the delayed removal */
+ struct work_struct work;
+ /** @delayed_removal.invalidate: If it needs invalidation upon removal */
+ bool invalidate;
+ } delayed_removal;
};
#endif
--
2.45.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-06-13 21:53 Rodrigo Vivi
@ 2024-06-13 22:39 ` Matthew Brost
2024-06-14 14:29 ` Matthew Auld
1 sibling, 0 replies; 26+ messages in thread
From: Matthew Brost @ 2024-06-13 22:39 UTC (permalink / raw)
To: Rodrigo Vivi
Cc: intel-xe, Matthew Auld, Paulo Zanoni, Francois Dugast,
Thomas Hellström
On Thu, Jun 13, 2024 at 05:53:57PM -0400, Rodrigo Vivi wrote:
> Defer the ggtt node removal to a thread if runtime_pm is not active.
>
> The ggtt node removal can be called from multiple places, including
> places where we cannot protect with outer callers and places we are
> within other locks. So, try to grab the runtime reference if the
> device is already active, otherwise defer the removal to a separate
> thread from where we are sure we can wake the device up.
>
> v2: - use xe wq instead of system wq (Matt and CI)
> - Avoid GFP_KERNEL to be future proof since this removal can
> be called from outside our drivers and we don't want to block
> if atomic is needed. (Brost)
> v3: amend forgot chunk declaring xe_device.
> v4: Use a xe_ggtt_region to encapsulate the node and remova info,
> wihtout the need for any memory allocation at runtime.
> v5: Actually fill the delayed_removal.invalidate (Brost)
> v6: - Ensure that ggtt_region is not freed before work finishes (Auld)
> - Own wq to ensures that the queued works are flushed before
> ggtt_fini (Brost)
>
> Cc: Matthew Auld <matthew.auld@intel.com>
> Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> Cc: Francois Dugast <francois.dugast@intel.com>
> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> Cc: Matthew Brost <matthew.brost@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/xe/display/xe_fb_pin.c | 10 +-
> drivers/gpu/drm/xe/xe_bo.c | 2 +-
> drivers/gpu/drm/xe/xe_bo.h | 6 +-
> drivers/gpu/drm/xe/xe_bo_types.h | 6 +-
> drivers/gpu/drm/xe/xe_ggtt.c | 129 ++++++++++++++++++-------
> drivers/gpu/drm/xe/xe_ggtt.h | 1 -
> drivers/gpu/drm/xe/xe_ggtt_types.h | 23 +++++
> 7 files changed, 130 insertions(+), 47 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/display/xe_fb_pin.c b/drivers/gpu/drm/xe/display/xe_fb_pin.c
> index a2f417209124..b84139b27970 100644
> --- a/drivers/gpu/drm/xe/display/xe_fb_pin.c
> +++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c
> @@ -153,7 +153,7 @@ static int __xe_pin_fb_vma_dpt(const struct intel_framebuffer *fb,
> }
>
> vma->dpt = dpt;
> - vma->node = dpt->ggtt_node;
> + vma->node = dpt->ggtt_region->node;
> return 0;
> }
>
> @@ -203,8 +203,8 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
> if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
> align = max_t(u32, align, SZ_64K);
>
> - if (bo->ggtt_node.size && view->type == I915_GTT_VIEW_NORMAL) {
> - vma->node = bo->ggtt_node;
> + if (bo->ggtt_region->node.size && view->type == I915_GTT_VIEW_NORMAL) {
> + vma->node = bo->ggtt_region->node;
> } else if (view->type == I915_GTT_VIEW_NORMAL) {
> u32 x, size = bo->ttm.base.size;
>
> @@ -322,8 +322,8 @@ static void __xe_unpin_fb_vma(struct i915_vma *vma)
>
> if (vma->dpt)
> xe_bo_unpin_map_no_vm(vma->dpt);
> - else if (!drm_mm_node_allocated(&vma->bo->ggtt_node) ||
> - vma->bo->ggtt_node.start != vma->node.start)
> + else if (!drm_mm_node_allocated(&vma->bo->ggtt_region->node) ||
> + vma->bo->ggtt_region->node.start != vma->node.start)
> xe_ggtt_remove_node(ggtt, &vma->node, false);
>
> ttm_bo_reserve(&vma->bo->ttm, false, false, NULL);
> diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
> index 74294f1b05bc..0bfd6d1eb0be 100644
> --- a/drivers/gpu/drm/xe/xe_bo.c
> +++ b/drivers/gpu/drm/xe/xe_bo.c
> @@ -1072,7 +1072,7 @@ static void xe_ttm_bo_destroy(struct ttm_buffer_object *ttm_bo)
>
> xe_assert(xe, list_empty(&ttm_bo->base.gpuva.list));
>
> - if (bo->ggtt_node.size)
> + if (bo->ggtt_region->node.size)
> xe_ggtt_remove_bo(bo->tile->mem.ggtt, bo);
>
> #ifdef CONFIG_PROC_FS
> diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h
> index 6de894c728f5..aeb1ebc0d3fc 100644
> --- a/drivers/gpu/drm/xe/xe_bo.h
> +++ b/drivers/gpu/drm/xe/xe_bo.h
> @@ -194,9 +194,9 @@ xe_bo_main_addr(struct xe_bo *bo, size_t page_size)
> static inline u32
> xe_bo_ggtt_addr(struct xe_bo *bo)
> {
> - XE_WARN_ON(bo->ggtt_node.size > bo->size);
> - XE_WARN_ON(bo->ggtt_node.start + bo->ggtt_node.size > (1ull << 32));
> - return bo->ggtt_node.start;
> + XE_WARN_ON(bo->ggtt_region->node.size > bo->size);
> + XE_WARN_ON(bo->ggtt_region->node.start + bo->ggtt_region->node.size > (1ull << 32));
> + return bo->ggtt_region->node.start;
> }
>
> int xe_bo_vmap(struct xe_bo *bo);
> diff --git a/drivers/gpu/drm/xe/xe_bo_types.h b/drivers/gpu/drm/xe/xe_bo_types.h
> index 86422e113d39..f45b1c4bbb6d 100644
> --- a/drivers/gpu/drm/xe/xe_bo_types.h
> +++ b/drivers/gpu/drm/xe/xe_bo_types.h
> @@ -14,6 +14,8 @@
> #include <drm/ttm/ttm_execbuf_util.h>
> #include <drm/ttm/ttm_placement.h>
>
> +#include "xe_ggtt_types.h"
> +
> struct xe_device;
> struct xe_vm;
>
> @@ -38,8 +40,8 @@ struct xe_bo {
> struct ttm_place placements[XE_BO_MAX_PLACEMENTS];
> /** @placement: current placement for this BO */
> struct ttm_placement placement;
> - /** @ggtt_node: GGTT node if this BO is mapped in the GGTT */
> - struct drm_mm_node ggtt_node;
> + /** @ggtt_region: GGTT region node if this BO is mapped in the GGTT */
> + struct xe_ggtt_region *ggtt_region;
> /** @vmap: iosys map of this buffer */
> struct iosys_map vmap;
> /** @ttm_kmap: TTM bo kmap object for internal use only. Keep off. */
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
> index 8ff91fd1b7c8..d0284f2c7cbc 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.c
> +++ b/drivers/gpu/drm/xe/xe_ggtt.c
> @@ -101,6 +101,7 @@ static void ggtt_fini_early(struct drm_device *drm, void *arg)
> {
> struct xe_ggtt *ggtt = arg;
>
> + destroy_workqueue(ggtt->wq);
> mutex_destroy(&ggtt->lock);
> drm_mm_takedown(&ggtt->mm);
> }
> @@ -191,6 +192,8 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt)
> else
> ggtt->pt_ops = &xelp_pt_ops;
>
> + ggtt->wq = alloc_workqueue("xe-ggtt-wq", 0, 0);
> +
Random rantings... I think we are at the point where it would be good to
add a drm managed API to allocate work queues and subsequently handle
the cleanup. Not a blocker but may take a pass at adding this API and
updating Xe to use this soon.
Anyways, patch LGTM:
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
> drm_mm_init(&ggtt->mm, xe_wopcm_size(xe),
> ggtt->size - xe_wopcm_size(xe));
> mutex_init(&ggtt->lock);
> @@ -389,7 +392,7 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> {
> u16 cache_mode = bo->flags & XE_BO_FLAG_NEEDS_UC ? XE_CACHE_NONE : XE_CACHE_WB;
> u16 pat_index = tile_to_xe(ggtt->tile)->pat.idx[cache_mode];
> - u64 start = bo->ggtt_node.start;
> + u64 start = bo->ggtt_region->node.start;
> u64 offset, pte;
>
> for (offset = 0; offset < bo->size; offset += XE_PAGE_SIZE) {
> @@ -398,18 +401,97 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> }
> }
>
> +static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> + bool invalidate)
> +{
> + struct xe_device *xe = tile_to_xe(ggtt->tile);
> + struct xe_ggtt_region *ggtt_region = container_of(node,
> + typeof(*ggtt_region),
> + node);
> + bool bound;
> + int idx;
> +
> + bound = drm_dev_enter(&xe->drm, &idx);
> +
> + mutex_lock(&ggtt->lock);
> + if (bound)
> + xe_ggtt_clear(ggtt, node->start, node->size);
> + drm_mm_remove_node(node);
> + node->size = 0;
> + mutex_unlock(&ggtt->lock);
> +
> + if (!bound)
> + return;
> +
> + if (invalidate)
> + xe_ggtt_invalidate(ggtt);
> +
> + drm_dev_exit(idx);
> + kfree(ggtt_region);
> +}
> +
> +static void ggtt_remove_node_work_func(struct work_struct *work)
> +{
> + struct xe_ggtt_region *ggtt_region = container_of(work,
> + typeof(*ggtt_region),
> + delayed_removal.work);
> + struct xe_device *xe = tile_to_xe(ggtt_region->ggtt->tile);
> +
> + xe_pm_runtime_get(xe);
> + ggtt_remove_node(ggtt_region->ggtt, &ggtt_region->node,
> + ggtt_region->delayed_removal.invalidate);
> + xe_pm_runtime_put(xe);
> +}
> +
> +static void ggtt_queue_remove_node(struct drm_mm_node *node, bool invalidate)
> +{
> + struct xe_ggtt_region *ggtt_region = container_of(node,
> + typeof(*ggtt_region),
> + node);
> +
> + queue_work(ggtt_region->ggtt->wq, &ggtt_region->delayed_removal.work);
> +}
> +
> +void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> + bool invalidate)
> +{
> + struct xe_device *xe = tile_to_xe(ggtt->tile);
> +
> + if (xe_pm_runtime_get_if_active(xe)) {
> + ggtt_remove_node(ggtt, node, invalidate);
> + xe_pm_runtime_put(xe);
> + } else {
> + ggtt_queue_remove_node(node, invalidate);
> + }
> +}
> +
> +static struct xe_ggtt_region *ggtt_region_init(struct xe_ggtt *ggtt)
> +{
> + struct xe_ggtt_region *ggtt_region = kzalloc(sizeof(*ggtt_region),
> + GFP_KERNEL);
> +
> + if (!ggtt_region)
> + return ERR_PTR(-ENOMEM);
> +
> + INIT_WORK(&ggtt_region->delayed_removal.work, ggtt_remove_node_work_func);
> + ggtt_region->ggtt = ggtt;
> +
> + return ggtt_region;
> +}
> +
> static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
> u64 start, u64 end)
> {
> int err;
> u64 alignment = XE_PAGE_SIZE;
> + struct xe_ggtt_region *ggtt_region;
>
> if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
> alignment = SZ_64K;
>
> - if (XE_WARN_ON(bo->ggtt_node.size)) {
> + if (XE_WARN_ON(bo->ggtt_region->node.size)) {
> /* Someone's already inserted this BO in the GGTT */
> - xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
> + xe_tile_assert(ggtt->tile, bo->ggtt_region->node.size == bo->size);
> return 0;
> }
>
> @@ -417,9 +499,14 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
> if (err)
> return err;
>
> + ggtt_region = ggtt_region_init(ggtt);
> + if (IS_ERR(ggtt_region))
> + return PTR_ERR(ggtt_region);
> + bo->ggtt_region = ggtt_region;
> +
> xe_pm_runtime_get_noresume(tile_to_xe(ggtt->tile));
> mutex_lock(&ggtt->lock);
> - err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_node, bo->size,
> + err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_region->node, bo->size,
> alignment, 0, start, end, 0);
> if (!err)
> xe_ggtt_map_bo(ggtt, bo);
> @@ -443,43 +530,15 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
> }
>
> -void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> - bool invalidate)
> -{
> - struct xe_device *xe = tile_to_xe(ggtt->tile);
> - bool bound;
> - int idx;
> -
> - bound = drm_dev_enter(&xe->drm, &idx);
> - if (bound)
> - xe_pm_runtime_get_noresume(xe);
> -
> - mutex_lock(&ggtt->lock);
> - if (bound)
> - xe_ggtt_clear(ggtt, node->start, node->size);
> - drm_mm_remove_node(node);
> - node->size = 0;
> - mutex_unlock(&ggtt->lock);
> -
> - if (!bound)
> - return;
> -
> - if (invalidate)
> - xe_ggtt_invalidate(ggtt);
> -
> - xe_pm_runtime_put(xe);
> - drm_dev_exit(idx);
> -}
> -
> void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> {
> - if (XE_WARN_ON(!bo->ggtt_node.size))
> + if (XE_WARN_ON(!bo->ggtt_region->node.size))
> return;
>
> /* This BO is not currently in the GGTT */
> - xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
> + xe_tile_assert(ggtt->tile, bo->ggtt_region->node.size == bo->size);
>
> - xe_ggtt_remove_node(ggtt, &bo->ggtt_node,
> + xe_ggtt_remove_node(ggtt, &bo->ggtt_region->node,
> bo->flags & XE_BO_FLAG_GGTT_INVALIDATE);
> }
>
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
> index 4a41a1762358..75511b5f43eb 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.h
> +++ b/drivers/gpu/drm/xe/xe_ggtt.h
> @@ -30,7 +30,6 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
> int xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
> u64 start, u64 end);
> void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
> -
> int xe_ggtt_dump(struct xe_ggtt *ggtt, struct drm_printer *p);
>
> #ifdef CONFIG_PCI_IOV
> diff --git a/drivers/gpu/drm/xe/xe_ggtt_types.h b/drivers/gpu/drm/xe/xe_ggtt_types.h
> index d8c584d9a8c3..202d7f3085ba 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt_types.h
> +++ b/drivers/gpu/drm/xe/xe_ggtt_types.h
> @@ -34,6 +34,29 @@ struct xe_ggtt {
> const struct xe_ggtt_pt_ops *pt_ops;
>
> struct drm_mm mm;
> + /** @wq: Dedicated unordered work queue to process node removals */
> + struct workqueue_struct *wq;
> +};
> +
> +/**
> + * struct xe_ggtt_region - GGTT region node
> + * It needs to be initialized before the drm_mm_node insertion in the GGTT.
> + */
> +struct xe_ggtt_region {
> + /** @ggtt: Back pointer to xe_ggtt where this region will be inserted at */
> + struct xe_ggtt *ggtt;
> + /** @node: The drm_mm_node itself */
> + struct drm_mm_node node;
> + /**
> + * @delayed_removal: Information for removal through work thread when
> + * device runtime_pm is suspended
> + */
> + struct {
> + /** @delayed_removal.work: The work struct for the delayed removal */
> + struct work_struct work;
> + /** @delayed_removal.invalidate: If it needs invalidation upon removal */
> + bool invalidate;
> + } delayed_removal;
> };
>
> #endif
> --
> 2.45.1
>
^ permalink raw reply [flat|nested] 26+ messages in thread* Re: [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
2024-06-13 21:53 Rodrigo Vivi
2024-06-13 22:39 ` Matthew Brost
@ 2024-06-14 14:29 ` Matthew Auld
1 sibling, 0 replies; 26+ messages in thread
From: Matthew Auld @ 2024-06-14 14:29 UTC (permalink / raw)
To: Rodrigo Vivi, intel-xe
Cc: Paulo Zanoni, Francois Dugast, Thomas Hellström,
Matthew Brost
On 13/06/2024 22:53, Rodrigo Vivi wrote:
> Defer the ggtt node removal to a thread if runtime_pm is not active.
>
> The ggtt node removal can be called from multiple places, including
> places where we cannot protect with outer callers and places we are
> within other locks. So, try to grab the runtime reference if the
> device is already active, otherwise defer the removal to a separate
> thread from where we are sure we can wake the device up.
>
> v2: - use xe wq instead of system wq (Matt and CI)
> - Avoid GFP_KERNEL to be future proof since this removal can
> be called from outside our drivers and we don't want to block
> if atomic is needed. (Brost)
> v3: amend forgot chunk declaring xe_device.
> v4: Use a xe_ggtt_region to encapsulate the node and remova info,
> wihtout the need for any memory allocation at runtime.
> v5: Actually fill the delayed_removal.invalidate (Brost)
> v6: - Ensure that ggtt_region is not freed before work finishes (Auld)
> - Own wq to ensures that the queued works are flushed before
> ggtt_fini (Brost)
>
> Cc: Matthew Auld <matthew.auld@intel.com>
> Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> Cc: Francois Dugast <francois.dugast@intel.com>
> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> Cc: Matthew Brost <matthew.brost@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/xe/display/xe_fb_pin.c | 10 +-
> drivers/gpu/drm/xe/xe_bo.c | 2 +-
> drivers/gpu/drm/xe/xe_bo.h | 6 +-
> drivers/gpu/drm/xe/xe_bo_types.h | 6 +-
> drivers/gpu/drm/xe/xe_ggtt.c | 129 ++++++++++++++++++-------
> drivers/gpu/drm/xe/xe_ggtt.h | 1 -
> drivers/gpu/drm/xe/xe_ggtt_types.h | 23 +++++
> 7 files changed, 130 insertions(+), 47 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/display/xe_fb_pin.c b/drivers/gpu/drm/xe/display/xe_fb_pin.c
> index a2f417209124..b84139b27970 100644
> --- a/drivers/gpu/drm/xe/display/xe_fb_pin.c
> +++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c
> @@ -153,7 +153,7 @@ static int __xe_pin_fb_vma_dpt(const struct intel_framebuffer *fb,
> }
>
> vma->dpt = dpt;
> - vma->node = dpt->ggtt_node;
> + vma->node = dpt->ggtt_region->node;
> return 0;
> }
>
> @@ -203,8 +203,8 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
> if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
> align = max_t(u32, align, SZ_64K);
>
> - if (bo->ggtt_node.size && view->type == I915_GTT_VIEW_NORMAL) {
> - vma->node = bo->ggtt_node;
> + if (bo->ggtt_region->node.size && view->type == I915_GTT_VIEW_NORMAL) {
> + vma->node = bo->ggtt_region->node;
> } else if (view->type == I915_GTT_VIEW_NORMAL) {
> u32 x, size = bo->ttm.base.size;
>
> @@ -322,8 +322,8 @@ static void __xe_unpin_fb_vma(struct i915_vma *vma)
>
> if (vma->dpt)
> xe_bo_unpin_map_no_vm(vma->dpt);
> - else if (!drm_mm_node_allocated(&vma->bo->ggtt_node) ||
> - vma->bo->ggtt_node.start != vma->node.start)
> + else if (!drm_mm_node_allocated(&vma->bo->ggtt_region->node) ||
> + vma->bo->ggtt_region->node.start != vma->node.start)
> xe_ggtt_remove_node(ggtt, &vma->node, false);
>
> ttm_bo_reserve(&vma->bo->ttm, false, false, NULL);
> diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
> index 74294f1b05bc..0bfd6d1eb0be 100644
> --- a/drivers/gpu/drm/xe/xe_bo.c
> +++ b/drivers/gpu/drm/xe/xe_bo.c
> @@ -1072,7 +1072,7 @@ static void xe_ttm_bo_destroy(struct ttm_buffer_object *ttm_bo)
>
> xe_assert(xe, list_empty(&ttm_bo->base.gpuva.list));
>
> - if (bo->ggtt_node.size)
> + if (bo->ggtt_region->node.size)
> xe_ggtt_remove_bo(bo->tile->mem.ggtt, bo);
>
> #ifdef CONFIG_PROC_FS
> diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h
> index 6de894c728f5..aeb1ebc0d3fc 100644
> --- a/drivers/gpu/drm/xe/xe_bo.h
> +++ b/drivers/gpu/drm/xe/xe_bo.h
> @@ -194,9 +194,9 @@ xe_bo_main_addr(struct xe_bo *bo, size_t page_size)
> static inline u32
> xe_bo_ggtt_addr(struct xe_bo *bo)
> {
> - XE_WARN_ON(bo->ggtt_node.size > bo->size);
> - XE_WARN_ON(bo->ggtt_node.start + bo->ggtt_node.size > (1ull << 32));
> - return bo->ggtt_node.start;
> + XE_WARN_ON(bo->ggtt_region->node.size > bo->size);
> + XE_WARN_ON(bo->ggtt_region->node.start + bo->ggtt_region->node.size > (1ull << 32));
> + return bo->ggtt_region->node.start;
> }
>
> int xe_bo_vmap(struct xe_bo *bo);
> diff --git a/drivers/gpu/drm/xe/xe_bo_types.h b/drivers/gpu/drm/xe/xe_bo_types.h
> index 86422e113d39..f45b1c4bbb6d 100644
> --- a/drivers/gpu/drm/xe/xe_bo_types.h
> +++ b/drivers/gpu/drm/xe/xe_bo_types.h
> @@ -14,6 +14,8 @@
> #include <drm/ttm/ttm_execbuf_util.h>
> #include <drm/ttm/ttm_placement.h>
>
> +#include "xe_ggtt_types.h"
> +
> struct xe_device;
> struct xe_vm;
>
> @@ -38,8 +40,8 @@ struct xe_bo {
> struct ttm_place placements[XE_BO_MAX_PLACEMENTS];
> /** @placement: current placement for this BO */
> struct ttm_placement placement;
> - /** @ggtt_node: GGTT node if this BO is mapped in the GGTT */
> - struct drm_mm_node ggtt_node;
> + /** @ggtt_region: GGTT region node if this BO is mapped in the GGTT */
> + struct xe_ggtt_region *ggtt_region;
> /** @vmap: iosys map of this buffer */
> struct iosys_map vmap;
> /** @ttm_kmap: TTM bo kmap object for internal use only. Keep off. */
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
> index 8ff91fd1b7c8..d0284f2c7cbc 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.c
> +++ b/drivers/gpu/drm/xe/xe_ggtt.c
> @@ -101,6 +101,7 @@ static void ggtt_fini_early(struct drm_device *drm, void *arg)
> {
> struct xe_ggtt *ggtt = arg;
>
> + destroy_workqueue(ggtt->wq);
> mutex_destroy(&ggtt->lock);
> drm_mm_takedown(&ggtt->mm);
> }
> @@ -191,6 +192,8 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt)
> else
> ggtt->pt_ops = &xelp_pt_ops;
>
> + ggtt->wq = alloc_workqueue("xe-ggtt-wq", 0, 0);
Check for error?
> +
> drm_mm_init(&ggtt->mm, xe_wopcm_size(xe),
> ggtt->size - xe_wopcm_size(xe));
> mutex_init(&ggtt->lock);
> @@ -389,7 +392,7 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> {
> u16 cache_mode = bo->flags & XE_BO_FLAG_NEEDS_UC ? XE_CACHE_NONE : XE_CACHE_WB;
> u16 pat_index = tile_to_xe(ggtt->tile)->pat.idx[cache_mode];
> - u64 start = bo->ggtt_node.start;
> + u64 start = bo->ggtt_region->node.start;
> u64 offset, pte;
>
> for (offset = 0; offset < bo->size; offset += XE_PAGE_SIZE) {
> @@ -398,18 +401,97 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> }
> }
>
> +static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> + bool invalidate)
> +{
> + struct xe_device *xe = tile_to_xe(ggtt->tile);
> + struct xe_ggtt_region *ggtt_region = container_of(node,
> + typeof(*ggtt_region),
> + node);
> + bool bound;
> + int idx;
> +
> + bound = drm_dev_enter(&xe->drm, &idx);
> +
> + mutex_lock(&ggtt->lock);
> + if (bound)
> + xe_ggtt_clear(ggtt, node->start, node->size);
> + drm_mm_remove_node(node);
> + node->size = 0;
> + mutex_unlock(&ggtt->lock);
> +
> + if (!bound)
> + return;
Missing the kfree here?
> +
> + if (invalidate)
> + xe_ggtt_invalidate(ggtt);
> +
> + drm_dev_exit(idx);
> + kfree(ggtt_region);
> +}
> +
> +static void ggtt_remove_node_work_func(struct work_struct *work)
> +{
> + struct xe_ggtt_region *ggtt_region = container_of(work,
> + typeof(*ggtt_region),
> + delayed_removal.work);
> + struct xe_device *xe = tile_to_xe(ggtt_region->ggtt->tile);
> +
> + xe_pm_runtime_get(xe);
> + ggtt_remove_node(ggtt_region->ggtt, &ggtt_region->node,
> + ggtt_region->delayed_removal.invalidate);
> + xe_pm_runtime_put(xe);
> +}
> +
> +static void ggtt_queue_remove_node(struct drm_mm_node *node, bool invalidate)
> +{
> + struct xe_ggtt_region *ggtt_region = container_of(node,
> + typeof(*ggtt_region),
> + node);
> +
> + queue_work(ggtt_region->ggtt->wq, &ggtt_region->delayed_removal.work);
> +}
> +
> +void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> + bool invalidate)
> +{
> + struct xe_device *xe = tile_to_xe(ggtt->tile);
> +
> + if (xe_pm_runtime_get_if_active(xe)) {
> + ggtt_remove_node(ggtt, node, invalidate);
> + xe_pm_runtime_put(xe);
> + } else {
> + ggtt_queue_remove_node(node, invalidate);
> + }
> +}
> +
> +static struct xe_ggtt_region *ggtt_region_init(struct xe_ggtt *ggtt)
> +{
> + struct xe_ggtt_region *ggtt_region = kzalloc(sizeof(*ggtt_region),
> + GFP_KERNEL);
> +
> + if (!ggtt_region)
> + return ERR_PTR(-ENOMEM);
> +
> + INIT_WORK(&ggtt_region->delayed_removal.work, ggtt_remove_node_work_func);
> + ggtt_region->ggtt = ggtt;
> +
> + return ggtt_region;
> +}
> +
> static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
> u64 start, u64 end)
> {
> int err;
> u64 alignment = XE_PAGE_SIZE;
> + struct xe_ggtt_region *ggtt_region;
>
> if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
> alignment = SZ_64K;
>
> - if (XE_WARN_ON(bo->ggtt_node.size)) {
> + if (XE_WARN_ON(bo->ggtt_region->node.size)) {
> /* Someone's already inserted this BO in the GGTT */
> - xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
> + xe_tile_assert(ggtt->tile, bo->ggtt_region->node.size == bo->size);
> return 0;
> }
>
> @@ -417,9 +499,14 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
> if (err)
> return err;
>
> + ggtt_region = ggtt_region_init(ggtt);
> + if (IS_ERR(ggtt_region))
> + return PTR_ERR(ggtt_region);
> + bo->ggtt_region = ggtt_region;
> +
> xe_pm_runtime_get_noresume(tile_to_xe(ggtt->tile));
> mutex_lock(&ggtt->lock);
> - err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_node, bo->size,
> + err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_region->node, bo->size,
> alignment, 0, start, end, 0);
> if (!err)
> xe_ggtt_map_bo(ggtt, bo);
> @@ -443,43 +530,15 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
> }
>
> -void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
> - bool invalidate)
> -{
> - struct xe_device *xe = tile_to_xe(ggtt->tile);
> - bool bound;
> - int idx;
> -
> - bound = drm_dev_enter(&xe->drm, &idx);
> - if (bound)
> - xe_pm_runtime_get_noresume(xe);
> -
> - mutex_lock(&ggtt->lock);
> - if (bound)
> - xe_ggtt_clear(ggtt, node->start, node->size);
> - drm_mm_remove_node(node);
> - node->size = 0;
> - mutex_unlock(&ggtt->lock);
> -
> - if (!bound)
> - return;
> -
> - if (invalidate)
> - xe_ggtt_invalidate(ggtt);
> -
> - xe_pm_runtime_put(xe);
> - drm_dev_exit(idx);
> -}
> -
> void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
> {
> - if (XE_WARN_ON(!bo->ggtt_node.size))
> + if (XE_WARN_ON(!bo->ggtt_region->node.size))
> return;
>
> /* This BO is not currently in the GGTT */
> - xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
> + xe_tile_assert(ggtt->tile, bo->ggtt_region->node.size == bo->size);
>
> - xe_ggtt_remove_node(ggtt, &bo->ggtt_node,
> + xe_ggtt_remove_node(ggtt, &bo->ggtt_region->node,
> bo->flags & XE_BO_FLAG_GGTT_INVALIDATE);
> }
>
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
> index 4a41a1762358..75511b5f43eb 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.h
> +++ b/drivers/gpu/drm/xe/xe_ggtt.h
> @@ -30,7 +30,6 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
> int xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
> u64 start, u64 end);
> void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
> -
> int xe_ggtt_dump(struct xe_ggtt *ggtt, struct drm_printer *p);
>
> #ifdef CONFIG_PCI_IOV
> diff --git a/drivers/gpu/drm/xe/xe_ggtt_types.h b/drivers/gpu/drm/xe/xe_ggtt_types.h
> index d8c584d9a8c3..202d7f3085ba 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt_types.h
> +++ b/drivers/gpu/drm/xe/xe_ggtt_types.h
> @@ -34,6 +34,29 @@ struct xe_ggtt {
> const struct xe_ggtt_pt_ops *pt_ops;
>
> struct drm_mm mm;
> + /** @wq: Dedicated unordered work queue to process node removals */
> + struct workqueue_struct *wq;
> +};
> +
> +/**
> + * struct xe_ggtt_region - GGTT region node
> + * It needs to be initialized before the drm_mm_node insertion in the GGTT.
> + */
> +struct xe_ggtt_region {
> + /** @ggtt: Back pointer to xe_ggtt where this region will be inserted at */
> + struct xe_ggtt *ggtt;
> + /** @node: The drm_mm_node itself */
> + struct drm_mm_node node;
> + /**
> + * @delayed_removal: Information for removal through work thread when
> + * device runtime_pm is suspended
> + */
> + struct {
> + /** @delayed_removal.work: The work struct for the delayed removal */
> + struct work_struct work;
> + /** @delayed_removal.invalidate: If it needs invalidation upon removal */
> + bool invalidate;
> + } delayed_removal;
> };
>
> #endif
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
@ 2024-06-14 18:37 Rodrigo Vivi
0 siblings, 0 replies; 26+ messages in thread
From: Rodrigo Vivi @ 2024-06-14 18:37 UTC (permalink / raw)
To: intel-xe
Cc: Rodrigo Vivi, Matthew Auld, Paulo Zanoni, Francois Dugast,
Thomas Hellström, Matthew Brost
Defer the ggtt node removal to a thread if runtime_pm is not active.
The ggtt node removal can be called from multiple places, including
places where we cannot protect with outer callers and places we are
within other locks. So, try to grab the runtime reference if the
device is already active, otherwise defer the removal to a separate
thread from where we are sure we can wake the device up.
v2: - use xe wq instead of system wq (Matt and CI)
- Avoid GFP_KERNEL to be future proof since this removal can
be called from outside our drivers and we don't want to block
if atomic is needed. (Brost)
v3: amend forgot chunk declaring xe_device.
v4: Use a xe_ggtt_region to encapsulate the node and remova info,
wihtout the need for any memory allocation at runtime.
v5: Actually fill the delayed_removal.invalidate (Brost)
v6: - Ensure that ggtt_region is not freed before work finishes (Auld)
- Own wq to ensures that the queued works are flushed before
ggtt_fini (Brost)
v7: also free ggtt_region on early !bound return (Auld)
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/display/xe_fb_pin.c | 10 +-
drivers/gpu/drm/xe/xe_bo.c | 2 +-
drivers/gpu/drm/xe/xe_bo.h | 6 +-
drivers/gpu/drm/xe/xe_bo_types.h | 6 +-
drivers/gpu/drm/xe/xe_ggtt.c | 130 ++++++++++++++++++-------
drivers/gpu/drm/xe/xe_ggtt.h | 1 -
drivers/gpu/drm/xe/xe_ggtt_types.h | 23 +++++
7 files changed, 131 insertions(+), 47 deletions(-)
diff --git a/drivers/gpu/drm/xe/display/xe_fb_pin.c b/drivers/gpu/drm/xe/display/xe_fb_pin.c
index a2f417209124..b84139b27970 100644
--- a/drivers/gpu/drm/xe/display/xe_fb_pin.c
+++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c
@@ -153,7 +153,7 @@ static int __xe_pin_fb_vma_dpt(const struct intel_framebuffer *fb,
}
vma->dpt = dpt;
- vma->node = dpt->ggtt_node;
+ vma->node = dpt->ggtt_region->node;
return 0;
}
@@ -203,8 +203,8 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
align = max_t(u32, align, SZ_64K);
- if (bo->ggtt_node.size && view->type == I915_GTT_VIEW_NORMAL) {
- vma->node = bo->ggtt_node;
+ if (bo->ggtt_region->node.size && view->type == I915_GTT_VIEW_NORMAL) {
+ vma->node = bo->ggtt_region->node;
} else if (view->type == I915_GTT_VIEW_NORMAL) {
u32 x, size = bo->ttm.base.size;
@@ -322,8 +322,8 @@ static void __xe_unpin_fb_vma(struct i915_vma *vma)
if (vma->dpt)
xe_bo_unpin_map_no_vm(vma->dpt);
- else if (!drm_mm_node_allocated(&vma->bo->ggtt_node) ||
- vma->bo->ggtt_node.start != vma->node.start)
+ else if (!drm_mm_node_allocated(&vma->bo->ggtt_region->node) ||
+ vma->bo->ggtt_region->node.start != vma->node.start)
xe_ggtt_remove_node(ggtt, &vma->node, false);
ttm_bo_reserve(&vma->bo->ttm, false, false, NULL);
diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
index 74294f1b05bc..0bfd6d1eb0be 100644
--- a/drivers/gpu/drm/xe/xe_bo.c
+++ b/drivers/gpu/drm/xe/xe_bo.c
@@ -1072,7 +1072,7 @@ static void xe_ttm_bo_destroy(struct ttm_buffer_object *ttm_bo)
xe_assert(xe, list_empty(&ttm_bo->base.gpuva.list));
- if (bo->ggtt_node.size)
+ if (bo->ggtt_region->node.size)
xe_ggtt_remove_bo(bo->tile->mem.ggtt, bo);
#ifdef CONFIG_PROC_FS
diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h
index 6de894c728f5..aeb1ebc0d3fc 100644
--- a/drivers/gpu/drm/xe/xe_bo.h
+++ b/drivers/gpu/drm/xe/xe_bo.h
@@ -194,9 +194,9 @@ xe_bo_main_addr(struct xe_bo *bo, size_t page_size)
static inline u32
xe_bo_ggtt_addr(struct xe_bo *bo)
{
- XE_WARN_ON(bo->ggtt_node.size > bo->size);
- XE_WARN_ON(bo->ggtt_node.start + bo->ggtt_node.size > (1ull << 32));
- return bo->ggtt_node.start;
+ XE_WARN_ON(bo->ggtt_region->node.size > bo->size);
+ XE_WARN_ON(bo->ggtt_region->node.start + bo->ggtt_region->node.size > (1ull << 32));
+ return bo->ggtt_region->node.start;
}
int xe_bo_vmap(struct xe_bo *bo);
diff --git a/drivers/gpu/drm/xe/xe_bo_types.h b/drivers/gpu/drm/xe/xe_bo_types.h
index 86422e113d39..f45b1c4bbb6d 100644
--- a/drivers/gpu/drm/xe/xe_bo_types.h
+++ b/drivers/gpu/drm/xe/xe_bo_types.h
@@ -14,6 +14,8 @@
#include <drm/ttm/ttm_execbuf_util.h>
#include <drm/ttm/ttm_placement.h>
+#include "xe_ggtt_types.h"
+
struct xe_device;
struct xe_vm;
@@ -38,8 +40,8 @@ struct xe_bo {
struct ttm_place placements[XE_BO_MAX_PLACEMENTS];
/** @placement: current placement for this BO */
struct ttm_placement placement;
- /** @ggtt_node: GGTT node if this BO is mapped in the GGTT */
- struct drm_mm_node ggtt_node;
+ /** @ggtt_region: GGTT region node if this BO is mapped in the GGTT */
+ struct xe_ggtt_region *ggtt_region;
/** @vmap: iosys map of this buffer */
struct iosys_map vmap;
/** @ttm_kmap: TTM bo kmap object for internal use only. Keep off. */
diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
index 8ff91fd1b7c8..0d8de8a1e189 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.c
+++ b/drivers/gpu/drm/xe/xe_ggtt.c
@@ -101,6 +101,7 @@ static void ggtt_fini_early(struct drm_device *drm, void *arg)
{
struct xe_ggtt *ggtt = arg;
+ destroy_workqueue(ggtt->wq);
mutex_destroy(&ggtt->lock);
drm_mm_takedown(&ggtt->mm);
}
@@ -191,6 +192,8 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt)
else
ggtt->pt_ops = &xelp_pt_ops;
+ ggtt->wq = alloc_workqueue("xe-ggtt-wq", 0, 0);
+
drm_mm_init(&ggtt->mm, xe_wopcm_size(xe),
ggtt->size - xe_wopcm_size(xe));
mutex_init(&ggtt->lock);
@@ -389,7 +392,7 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
{
u16 cache_mode = bo->flags & XE_BO_FLAG_NEEDS_UC ? XE_CACHE_NONE : XE_CACHE_WB;
u16 pat_index = tile_to_xe(ggtt->tile)->pat.idx[cache_mode];
- u64 start = bo->ggtt_node.start;
+ u64 start = bo->ggtt_region->node.start;
u64 offset, pte;
for (offset = 0; offset < bo->size; offset += XE_PAGE_SIZE) {
@@ -398,18 +401,98 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
}
}
+static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct xe_device *xe = tile_to_xe(ggtt->tile);
+ struct xe_ggtt_region *ggtt_region = container_of(node,
+ typeof(*ggtt_region),
+ node);
+ bool bound;
+ int idx;
+
+ bound = drm_dev_enter(&xe->drm, &idx);
+
+ mutex_lock(&ggtt->lock);
+ if (bound)
+ xe_ggtt_clear(ggtt, node->start, node->size);
+ drm_mm_remove_node(node);
+ node->size = 0;
+ mutex_unlock(&ggtt->lock);
+
+ if (!bound)
+ goto out;
+
+ if (invalidate)
+ xe_ggtt_invalidate(ggtt);
+
+ drm_dev_exit(idx);
+out:
+ kfree(ggtt_region);
+}
+
+static void ggtt_remove_node_work_func(struct work_struct *work)
+{
+ struct xe_ggtt_region *ggtt_region = container_of(work,
+ typeof(*ggtt_region),
+ delayed_removal.work);
+ struct xe_device *xe = tile_to_xe(ggtt_region->ggtt->tile);
+
+ xe_pm_runtime_get(xe);
+ ggtt_remove_node(ggtt_region->ggtt, &ggtt_region->node,
+ ggtt_region->delayed_removal.invalidate);
+ xe_pm_runtime_put(xe);
+}
+
+static void ggtt_queue_remove_node(struct drm_mm_node *node, bool invalidate)
+{
+ struct xe_ggtt_region *ggtt_region = container_of(node,
+ typeof(*ggtt_region),
+ node);
+
+ queue_work(ggtt_region->ggtt->wq, &ggtt_region->delayed_removal.work);
+}
+
+void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct xe_device *xe = tile_to_xe(ggtt->tile);
+
+ if (xe_pm_runtime_get_if_active(xe)) {
+ ggtt_remove_node(ggtt, node, invalidate);
+ xe_pm_runtime_put(xe);
+ } else {
+ ggtt_queue_remove_node(node, invalidate);
+ }
+}
+
+static struct xe_ggtt_region *ggtt_region_init(struct xe_ggtt *ggtt)
+{
+ struct xe_ggtt_region *ggtt_region = kzalloc(sizeof(*ggtt_region),
+ GFP_KERNEL);
+
+ if (!ggtt_region)
+ return ERR_PTR(-ENOMEM);
+
+ INIT_WORK(&ggtt_region->delayed_removal.work, ggtt_remove_node_work_func);
+ ggtt_region->ggtt = ggtt;
+
+ return ggtt_region;
+}
+
static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
u64 start, u64 end)
{
int err;
u64 alignment = XE_PAGE_SIZE;
+ struct xe_ggtt_region *ggtt_region;
if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
alignment = SZ_64K;
- if (XE_WARN_ON(bo->ggtt_node.size)) {
+ if (XE_WARN_ON(bo->ggtt_region->node.size)) {
/* Someone's already inserted this BO in the GGTT */
- xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
+ xe_tile_assert(ggtt->tile, bo->ggtt_region->node.size == bo->size);
return 0;
}
@@ -417,9 +500,14 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
if (err)
return err;
+ ggtt_region = ggtt_region_init(ggtt);
+ if (IS_ERR(ggtt_region))
+ return PTR_ERR(ggtt_region);
+ bo->ggtt_region = ggtt_region;
+
xe_pm_runtime_get_noresume(tile_to_xe(ggtt->tile));
mutex_lock(&ggtt->lock);
- err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_node, bo->size,
+ err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_region->node, bo->size,
alignment, 0, start, end, 0);
if (!err)
xe_ggtt_map_bo(ggtt, bo);
@@ -443,43 +531,15 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
}
-void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
- bool invalidate)
-{
- struct xe_device *xe = tile_to_xe(ggtt->tile);
- bool bound;
- int idx;
-
- bound = drm_dev_enter(&xe->drm, &idx);
- if (bound)
- xe_pm_runtime_get_noresume(xe);
-
- mutex_lock(&ggtt->lock);
- if (bound)
- xe_ggtt_clear(ggtt, node->start, node->size);
- drm_mm_remove_node(node);
- node->size = 0;
- mutex_unlock(&ggtt->lock);
-
- if (!bound)
- return;
-
- if (invalidate)
- xe_ggtt_invalidate(ggtt);
-
- xe_pm_runtime_put(xe);
- drm_dev_exit(idx);
-}
-
void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
{
- if (XE_WARN_ON(!bo->ggtt_node.size))
+ if (XE_WARN_ON(!bo->ggtt_region->node.size))
return;
/* This BO is not currently in the GGTT */
- xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
+ xe_tile_assert(ggtt->tile, bo->ggtt_region->node.size == bo->size);
- xe_ggtt_remove_node(ggtt, &bo->ggtt_node,
+ xe_ggtt_remove_node(ggtt, &bo->ggtt_region->node,
bo->flags & XE_BO_FLAG_GGTT_INVALIDATE);
}
diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
index 4a41a1762358..75511b5f43eb 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.h
+++ b/drivers/gpu/drm/xe/xe_ggtt.h
@@ -30,7 +30,6 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
int xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
u64 start, u64 end);
void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
-
int xe_ggtt_dump(struct xe_ggtt *ggtt, struct drm_printer *p);
#ifdef CONFIG_PCI_IOV
diff --git a/drivers/gpu/drm/xe/xe_ggtt_types.h b/drivers/gpu/drm/xe/xe_ggtt_types.h
index d8c584d9a8c3..202d7f3085ba 100644
--- a/drivers/gpu/drm/xe/xe_ggtt_types.h
+++ b/drivers/gpu/drm/xe/xe_ggtt_types.h
@@ -34,6 +34,29 @@ struct xe_ggtt {
const struct xe_ggtt_pt_ops *pt_ops;
struct drm_mm mm;
+ /** @wq: Dedicated unordered work queue to process node removals */
+ struct workqueue_struct *wq;
+};
+
+/**
+ * struct xe_ggtt_region - GGTT region node
+ * It needs to be initialized before the drm_mm_node insertion in the GGTT.
+ */
+struct xe_ggtt_region {
+ /** @ggtt: Back pointer to xe_ggtt where this region will be inserted at */
+ struct xe_ggtt *ggtt;
+ /** @node: The drm_mm_node itself */
+ struct drm_mm_node node;
+ /**
+ * @delayed_removal: Information for removal through work thread when
+ * device runtime_pm is suspended
+ */
+ struct {
+ /** @delayed_removal.work: The work struct for the delayed removal */
+ struct work_struct work;
+ /** @delayed_removal.invalidate: If it needs invalidation upon removal */
+ bool invalidate;
+ } delayed_removal;
};
#endif
--
2.45.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node
@ 2024-06-14 21:42 Rodrigo Vivi
0 siblings, 0 replies; 26+ messages in thread
From: Rodrigo Vivi @ 2024-06-14 21:42 UTC (permalink / raw)
To: intel-xe
Cc: Rodrigo Vivi, Matthew Auld, Paulo Zanoni, Francois Dugast,
Thomas Hellström, Matthew Brost
Defer the ggtt node removal to a thread if runtime_pm is not active.
The ggtt node removal can be called from multiple places, including
places where we cannot protect with outer callers and places we are
within other locks. So, try to grab the runtime reference if the
device is already active, otherwise defer the removal to a separate
thread from where we are sure we can wake the device up.
v2: - use xe wq instead of system wq (Matt and CI)
- Avoid GFP_KERNEL to be future proof since this removal can
be called from outside our drivers and we don't want to block
if atomic is needed. (Brost)
v3: amend forgot chunk declaring xe_device.
v4: Use a xe_ggtt_region to encapsulate the node and remova info,
wihtout the need for any memory allocation at runtime.
v5: Actually fill the delayed_removal.invalidate (Brost)
v6: - Ensure that ggtt_region is not freed before work finishes (Auld)
- Own wq to ensures that the queued works are flushed before
ggtt_fini (Brost)
v7: also free ggtt_region on early !bound return (Auld)
v8: Address the null deref (CI)
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/display/xe_fb_pin.c | 11 +-
drivers/gpu/drm/xe/xe_bo.c | 2 +-
drivers/gpu/drm/xe/xe_bo.h | 9 +-
drivers/gpu/drm/xe/xe_bo_types.h | 6 +-
drivers/gpu/drm/xe/xe_ggtt.c | 135 ++++++++++++++++++-------
drivers/gpu/drm/xe/xe_ggtt.h | 1 -
drivers/gpu/drm/xe/xe_ggtt_types.h | 23 +++++
7 files changed, 140 insertions(+), 47 deletions(-)
diff --git a/drivers/gpu/drm/xe/display/xe_fb_pin.c b/drivers/gpu/drm/xe/display/xe_fb_pin.c
index a2f417209124..5361e2eea78d 100644
--- a/drivers/gpu/drm/xe/display/xe_fb_pin.c
+++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c
@@ -153,7 +153,7 @@ static int __xe_pin_fb_vma_dpt(const struct intel_framebuffer *fb,
}
vma->dpt = dpt;
- vma->node = dpt->ggtt_node;
+ vma->node = dpt->ggtt_region->node;
return 0;
}
@@ -203,8 +203,8 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
align = max_t(u32, align, SZ_64K);
- if (bo->ggtt_node.size && view->type == I915_GTT_VIEW_NORMAL) {
- vma->node = bo->ggtt_node;
+ if (bo->ggtt_region && view->type == I915_GTT_VIEW_NORMAL) {
+ vma->node = bo->ggtt_region->node;
} else if (view->type == I915_GTT_VIEW_NORMAL) {
u32 x, size = bo->ttm.base.size;
@@ -322,8 +322,9 @@ static void __xe_unpin_fb_vma(struct i915_vma *vma)
if (vma->dpt)
xe_bo_unpin_map_no_vm(vma->dpt);
- else if (!drm_mm_node_allocated(&vma->bo->ggtt_node) ||
- vma->bo->ggtt_node.start != vma->node.start)
+ else if (vma->bo->ggtt_region &&
+ (!drm_mm_node_allocated(&vma->bo->ggtt_region->node) ||
+ vma->bo->ggtt_region->node.start != vma->node.start))
xe_ggtt_remove_node(ggtt, &vma->node, false);
ttm_bo_reserve(&vma->bo->ttm, false, false, NULL);
diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
index 74294f1b05bc..95ed2687c5e2 100644
--- a/drivers/gpu/drm/xe/xe_bo.c
+++ b/drivers/gpu/drm/xe/xe_bo.c
@@ -1072,7 +1072,7 @@ static void xe_ttm_bo_destroy(struct ttm_buffer_object *ttm_bo)
xe_assert(xe, list_empty(&ttm_bo->base.gpuva.list));
- if (bo->ggtt_node.size)
+ if (bo->ggtt_region)
xe_ggtt_remove_bo(bo->tile->mem.ggtt, bo);
#ifdef CONFIG_PROC_FS
diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h
index 6de894c728f5..998ddab3ab6d 100644
--- a/drivers/gpu/drm/xe/xe_bo.h
+++ b/drivers/gpu/drm/xe/xe_bo.h
@@ -194,9 +194,12 @@ xe_bo_main_addr(struct xe_bo *bo, size_t page_size)
static inline u32
xe_bo_ggtt_addr(struct xe_bo *bo)
{
- XE_WARN_ON(bo->ggtt_node.size > bo->size);
- XE_WARN_ON(bo->ggtt_node.start + bo->ggtt_node.size > (1ull << 32));
- return bo->ggtt_node.start;
+ if (XE_WARN_ON(!bo->ggtt_region))
+ return 0;
+
+ XE_WARN_ON(bo->ggtt_region->node.size > bo->size);
+ XE_WARN_ON(bo->ggtt_region->node.start + bo->ggtt_region->node.size > (1ull << 32));
+ return bo->ggtt_region->node.start;
}
int xe_bo_vmap(struct xe_bo *bo);
diff --git a/drivers/gpu/drm/xe/xe_bo_types.h b/drivers/gpu/drm/xe/xe_bo_types.h
index 86422e113d39..f45b1c4bbb6d 100644
--- a/drivers/gpu/drm/xe/xe_bo_types.h
+++ b/drivers/gpu/drm/xe/xe_bo_types.h
@@ -14,6 +14,8 @@
#include <drm/ttm/ttm_execbuf_util.h>
#include <drm/ttm/ttm_placement.h>
+#include "xe_ggtt_types.h"
+
struct xe_device;
struct xe_vm;
@@ -38,8 +40,8 @@ struct xe_bo {
struct ttm_place placements[XE_BO_MAX_PLACEMENTS];
/** @placement: current placement for this BO */
struct ttm_placement placement;
- /** @ggtt_node: GGTT node if this BO is mapped in the GGTT */
- struct drm_mm_node ggtt_node;
+ /** @ggtt_region: GGTT region node if this BO is mapped in the GGTT */
+ struct xe_ggtt_region *ggtt_region;
/** @vmap: iosys map of this buffer */
struct iosys_map vmap;
/** @ttm_kmap: TTM bo kmap object for internal use only. Keep off. */
diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
index 8ff91fd1b7c8..b80fb2043ffc 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.c
+++ b/drivers/gpu/drm/xe/xe_ggtt.c
@@ -101,6 +101,7 @@ static void ggtt_fini_early(struct drm_device *drm, void *arg)
{
struct xe_ggtt *ggtt = arg;
+ destroy_workqueue(ggtt->wq);
mutex_destroy(&ggtt->lock);
drm_mm_takedown(&ggtt->mm);
}
@@ -191,6 +192,8 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt)
else
ggtt->pt_ops = &xelp_pt_ops;
+ ggtt->wq = alloc_workqueue("xe-ggtt-wq", 0, 0);
+
drm_mm_init(&ggtt->mm, xe_wopcm_size(xe),
ggtt->size - xe_wopcm_size(xe));
mutex_init(&ggtt->lock);
@@ -389,27 +392,112 @@ void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
{
u16 cache_mode = bo->flags & XE_BO_FLAG_NEEDS_UC ? XE_CACHE_NONE : XE_CACHE_WB;
u16 pat_index = tile_to_xe(ggtt->tile)->pat.idx[cache_mode];
- u64 start = bo->ggtt_node.start;
+ u64 start;
u64 offset, pte;
+ if (XE_WARN_ON(!bo->ggtt_region))
+ return;
+
+ start = bo->ggtt_region->node.start;
+
for (offset = 0; offset < bo->size; offset += XE_PAGE_SIZE) {
pte = ggtt->pt_ops->pte_encode_bo(bo, offset, pat_index);
xe_ggtt_set_pte(ggtt, start + offset, pte);
}
}
+static void ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct xe_device *xe = tile_to_xe(ggtt->tile);
+ struct xe_ggtt_region *ggtt_region = container_of(node,
+ typeof(*ggtt_region),
+ node);
+ bool bound;
+ int idx;
+
+ bound = drm_dev_enter(&xe->drm, &idx);
+
+ mutex_lock(&ggtt->lock);
+ if (bound)
+ xe_ggtt_clear(ggtt, node->start, node->size);
+ drm_mm_remove_node(node);
+ node->size = 0;
+ mutex_unlock(&ggtt->lock);
+
+ if (!bound)
+ goto out;
+
+ if (invalidate)
+ xe_ggtt_invalidate(ggtt);
+
+ drm_dev_exit(idx);
+out:
+ kfree(ggtt_region);
+}
+
+static void ggtt_remove_node_work_func(struct work_struct *work)
+{
+ struct xe_ggtt_region *ggtt_region = container_of(work,
+ typeof(*ggtt_region),
+ delayed_removal.work);
+ struct xe_device *xe = tile_to_xe(ggtt_region->ggtt->tile);
+
+ xe_pm_runtime_get(xe);
+ ggtt_remove_node(ggtt_region->ggtt, &ggtt_region->node,
+ ggtt_region->delayed_removal.invalidate);
+ xe_pm_runtime_put(xe);
+}
+
+static void ggtt_queue_remove_node(struct drm_mm_node *node, bool invalidate)
+{
+ struct xe_ggtt_region *ggtt_region = container_of(node,
+ typeof(*ggtt_region),
+ node);
+
+ queue_work(ggtt_region->ggtt->wq, &ggtt_region->delayed_removal.work);
+}
+
+void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+ bool invalidate)
+{
+ struct xe_device *xe = tile_to_xe(ggtt->tile);
+
+ if (xe_pm_runtime_get_if_active(xe)) {
+ ggtt_remove_node(ggtt, node, invalidate);
+ xe_pm_runtime_put(xe);
+ } else {
+ ggtt_queue_remove_node(node, invalidate);
+ }
+}
+
+static struct xe_ggtt_region *ggtt_region_init(struct xe_ggtt *ggtt)
+{
+ struct xe_ggtt_region *ggtt_region = kzalloc(sizeof(*ggtt_region),
+ GFP_KERNEL);
+
+ if (!ggtt_region)
+ return ERR_PTR(-ENOMEM);
+
+ INIT_WORK(&ggtt_region->delayed_removal.work, ggtt_remove_node_work_func);
+ ggtt_region->ggtt = ggtt;
+
+ return ggtt_region;
+}
+
static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
u64 start, u64 end)
{
int err;
u64 alignment = XE_PAGE_SIZE;
+ struct xe_ggtt_region *ggtt_region;
if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
alignment = SZ_64K;
- if (XE_WARN_ON(bo->ggtt_node.size)) {
+ if (XE_WARN_ON(bo->ggtt_region)) {
/* Someone's already inserted this BO in the GGTT */
- xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
+ xe_tile_assert(ggtt->tile, bo->ggtt_region->node.size == bo->size);
return 0;
}
@@ -417,9 +505,14 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
if (err)
return err;
+ ggtt_region = ggtt_region_init(ggtt);
+ if (IS_ERR(ggtt_region))
+ return PTR_ERR(ggtt_region);
+ bo->ggtt_region = ggtt_region;
+
xe_pm_runtime_get_noresume(tile_to_xe(ggtt->tile));
mutex_lock(&ggtt->lock);
- err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_node, bo->size,
+ err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_region->node, bo->size,
alignment, 0, start, end, 0);
if (!err)
xe_ggtt_map_bo(ggtt, bo);
@@ -443,43 +536,15 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
return __xe_ggtt_insert_bo_at(ggtt, bo, 0, U64_MAX);
}
-void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
- bool invalidate)
-{
- struct xe_device *xe = tile_to_xe(ggtt->tile);
- bool bound;
- int idx;
-
- bound = drm_dev_enter(&xe->drm, &idx);
- if (bound)
- xe_pm_runtime_get_noresume(xe);
-
- mutex_lock(&ggtt->lock);
- if (bound)
- xe_ggtt_clear(ggtt, node->start, node->size);
- drm_mm_remove_node(node);
- node->size = 0;
- mutex_unlock(&ggtt->lock);
-
- if (!bound)
- return;
-
- if (invalidate)
- xe_ggtt_invalidate(ggtt);
-
- xe_pm_runtime_put(xe);
- drm_dev_exit(idx);
-}
-
void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
{
- if (XE_WARN_ON(!bo->ggtt_node.size))
+ if (XE_WARN_ON(!bo->ggtt_region))
return;
/* This BO is not currently in the GGTT */
- xe_tile_assert(ggtt->tile, bo->ggtt_node.size == bo->size);
+ xe_tile_assert(ggtt->tile, bo->ggtt_region->node.size == bo->size);
- xe_ggtt_remove_node(ggtt, &bo->ggtt_node,
+ xe_ggtt_remove_node(ggtt, &bo->ggtt_region->node,
bo->flags & XE_BO_FLAG_GGTT_INVALIDATE);
}
diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
index 4a41a1762358..75511b5f43eb 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.h
+++ b/drivers/gpu/drm/xe/xe_ggtt.h
@@ -30,7 +30,6 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
int xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
u64 start, u64 end);
void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
-
int xe_ggtt_dump(struct xe_ggtt *ggtt, struct drm_printer *p);
#ifdef CONFIG_PCI_IOV
diff --git a/drivers/gpu/drm/xe/xe_ggtt_types.h b/drivers/gpu/drm/xe/xe_ggtt_types.h
index d8c584d9a8c3..202d7f3085ba 100644
--- a/drivers/gpu/drm/xe/xe_ggtt_types.h
+++ b/drivers/gpu/drm/xe/xe_ggtt_types.h
@@ -34,6 +34,29 @@ struct xe_ggtt {
const struct xe_ggtt_pt_ops *pt_ops;
struct drm_mm mm;
+ /** @wq: Dedicated unordered work queue to process node removals */
+ struct workqueue_struct *wq;
+};
+
+/**
+ * struct xe_ggtt_region - GGTT region node
+ * It needs to be initialized before the drm_mm_node insertion in the GGTT.
+ */
+struct xe_ggtt_region {
+ /** @ggtt: Back pointer to xe_ggtt where this region will be inserted at */
+ struct xe_ggtt *ggtt;
+ /** @node: The drm_mm_node itself */
+ struct drm_mm_node node;
+ /**
+ * @delayed_removal: Information for removal through work thread when
+ * device runtime_pm is suspended
+ */
+ struct {
+ /** @delayed_removal.work: The work struct for the delayed removal */
+ struct work_struct work;
+ /** @delayed_removal.invalidate: If it needs invalidation upon removal */
+ bool invalidate;
+ } delayed_removal;
};
#endif
--
2.45.1
^ permalink raw reply related [flat|nested] 26+ messages in thread
end of thread, other threads:[~2024-06-14 21:42 UTC | newest]
Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-31 16:02 [PATCH] drm/xe: Fix missing runtime outer protection for ggtt_remove_node Rodrigo Vivi
2024-05-31 16:08 ` ✓ CI.Patch_applied: success for " Patchwork
2024-05-31 16:08 ` ✓ CI.checkpatch: " Patchwork
2024-05-31 16:09 ` ✓ CI.KUnit: " Patchwork
2024-05-31 16:15 ` [PATCH] " Matthew Brost
2024-05-31 16:31 ` Rodrigo Vivi
2024-05-31 16:36 ` Matthew Brost
2024-05-31 16:21 ` ✓ CI.Build: success for " Patchwork
2024-05-31 16:21 ` ✗ CI.Hooks: failure " Patchwork
2024-05-31 16:22 ` ✓ CI.checksparse: success " Patchwork
2024-05-31 17:03 ` ✓ CI.BAT: " Patchwork
2024-05-31 18:19 ` ✗ CI.FULL: failure " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2024-05-31 19:53 [PATCH] " Rodrigo Vivi
2024-05-31 20:08 Rodrigo Vivi
2024-06-03 13:25 ` Thomas Hellström
2024-06-03 18:15 ` Matthew Brost
2024-06-03 21:03 ` Thomas Hellström
2024-06-12 17:27 Rodrigo Vivi
2024-06-12 18:05 ` Matthew Brost
2024-06-12 18:20 Rodrigo Vivi
2024-06-13 9:06 ` Matthew Auld
2024-06-13 21:53 Rodrigo Vivi
2024-06-13 22:39 ` Matthew Brost
2024-06-14 14:29 ` Matthew Auld
2024-06-14 18:37 Rodrigo Vivi
2024-06-14 21:42 Rodrigo Vivi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox