* [PATCH v2] gpu/buddy: add range-restricted contiguous allocation fallback
@ 2026-09-30 6:21 Arunpravin Paneer Selvam
2026-09-30 6:29 ` ✓ CI.KUnit: success for " Patchwork
` (5 more replies)
0 siblings, 6 replies; 11+ messages in thread
From: Arunpravin Paneer Selvam @ 2026-09-30 6:21 UTC (permalink / raw)
To: matthew.auld, dri-devel, intel-gfx, intel-xe, amd-gfx
Cc: christian.koenig, alexander.deucher, Anand.Raghavendra,
Arunpravin Paneer Selvam
From: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
A range + contiguous allocation (e.g. a scanout FB confined to the
CPU-visible VRAM aperture) rounds its size up to a power of two and
requires a naturally aligned free block of that size; on a fragmented
aperture no such aligned block may exist even though enough contiguous
space is free, so the allocation fails with -ENOSPC.
The non-range contiguous path already recovers from this via
__alloc_contig_try_harder(), which stitches an exact-size span from
smaller adjacent blocks, but that fallback was unreachable once
GPU_BUDDY_RANGE_ALLOCATION was set. Give __alloc_contig_try_harder()
a [range_start, range_end) window and route the range + contiguous
case through it: each candidate placement is confined to the window
and aligned to min_block_size. Non-range callers pass [0, mm->size),
where the guards are no-ops, so the existing behaviour is unchanged.
A KUnit regression test covers the fragmentation pattern.
Resolves the igt@kms_plane@plane-panning-bottom-right@pipe-a/pipe-b
regression.
v2:
- Drop the split-undo patch; the range-bias search always descends to
an exact-order block or fails the split (already handled), so the
extra undo was redundant. (Matthew)
- Verified this fallback alone fixes the kms_plane regression.
Fixes: 1ad5e807f716 ("gpu/buddy: replace dual-tree/force_merge with decoupled dirty tracker")
Assisted-by: Claude:claude-opus-4-8
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
---
drivers/gpu/buddy.c | 88 ++++++++++++++++--------------
drivers/gpu/tests/gpu_buddy_test.c | 83 ++++++++++++++++++++++++++--
2 files changed, 126 insertions(+), 45 deletions(-)
diff --git a/drivers/gpu/buddy.c b/drivers/gpu/buddy.c
index 2f2aaadafe35..5265e1f6a318 100644
--- a/drivers/gpu/buddy.c
+++ b/drivers/gpu/buddy.c
@@ -1685,26 +1685,14 @@ static int __gpu_buddy_alloc_range(struct gpu_buddy *mm,
blocks, total_allocated_on_err);
}
-static int __alloc_contig_aligned_retry(struct gpu_buddy *mm,
- u64 unaligned_offset,
- u64 size,
- u64 min_block_size,
- unsigned long flags,
- struct list_head *blocks)
-{
- u64 aligned_offset = round_down(unaligned_offset, min_block_size);
-
- return __gpu_buddy_alloc_range(mm, aligned_offset, size, flags,
- NULL, blocks);
-}
-
static int __alloc_contig_try_harder(struct gpu_buddy *mm,
+ u64 range_start, u64 range_end,
u64 size,
u64 min_block_size,
unsigned long flags,
struct list_head *blocks)
{
- u64 rhs_offset, lhs_offset, filled;
+ u64 rhs_offset, lhs_offset, filled, aligned;
struct gpu_buddy_block *block;
struct rb_root *root;
struct rb_node *iter;
@@ -1734,20 +1722,24 @@ static int __alloc_contig_try_harder(struct gpu_buddy *mm,
flags, &filled, blocks);
if (err && err != -ENOSPC)
return err;
- if (!err && IS_ALIGNED(rhs_offset, min_block_size))
+ if (!err && IS_ALIGNED(rhs_offset, min_block_size) &&
+ rhs_offset >= range_start && rhs_offset + size <= range_end)
return 0;
if (!err) {
/* Allocate the unaligned RHS offset using round_down */
gpu_buddy_free_list_internal(mm, blocks);
- err = __alloc_contig_aligned_retry(mm, rhs_offset,
- size,
- min_block_size,
- flags, blocks);
- if (!err)
- return 0;
- if (err != -ENOSPC) {
- gpu_buddy_free_list_internal(mm, blocks);
- return err;
+
+ aligned = round_down(rhs_offset, min_block_size);
+ if (aligned >= range_start &&
+ aligned + size <= range_end) {
+ err = __gpu_buddy_alloc_range(mm, aligned, size,
+ flags, NULL, blocks);
+ if (!err)
+ return 0;
+ if (err != -ENOSPC) {
+ gpu_buddy_free_list_internal(mm, blocks);
+ return err;
+ }
}
goto next;
}
@@ -1759,15 +1751,17 @@ static int __alloc_contig_try_harder(struct gpu_buddy *mm,
/* Allocate the unaligned LHS offset using round_down */
gpu_buddy_free_list_internal(mm, blocks);
- err = __alloc_contig_aligned_retry(mm, lhs_offset,
- size,
- min_block_size,
- flags, blocks);
- if (!err)
- return 0;
- if (err != -ENOSPC) {
- gpu_buddy_free_list_internal(mm, blocks);
- return err;
+
+ aligned = round_down(lhs_offset, min_block_size);
+ if (aligned >= range_start && aligned + size <= range_end) {
+ err = __gpu_buddy_alloc_range(mm, aligned, size,
+ flags, NULL, blocks);
+ if (!err)
+ return 0;
+ if (err != -ENOSPC) {
+ gpu_buddy_free_list_internal(mm, blocks);
+ return err;
+ }
}
next:
gpu_buddy_free_list_internal(mm, blocks);
@@ -2021,11 +2015,18 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm,
min_order = ilog2(min_block_size) - ilog2(mm->chunk_size);
if (order > mm->max_order || size > mm->size) {
- if ((flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) &&
- !(flags & GPU_BUDDY_RANGE_ALLOCATION))
- return __alloc_contig_try_harder(mm, original_size,
+ if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) {
+ u64 range_start, range_end;
+
+ range_start = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? start : 0;
+ range_end = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? end : mm->size;
+
+ return __alloc_contig_try_harder(mm, range_start,
+ range_end,
+ original_size,
original_min_size,
flags, blocks);
+ }
return -EINVAL;
}
@@ -2058,9 +2059,14 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm,
* Try contiguous block allocation through
* try harder method.
*/
- if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION &&
- !(flags & GPU_BUDDY_RANGE_ALLOCATION)) {
- err = __alloc_contig_try_harder(mm,
+ if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) {
+ u64 range_start, range_end;
+
+ range_start = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? start : 0;
+ range_end = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? end : mm->size;
+
+ err = __alloc_contig_try_harder(mm, range_start,
+ range_end,
original_size,
original_min_size,
flags,
@@ -2068,9 +2074,9 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm,
if (!err)
return 0;
if (err != -ENOSPC)
- return err;
- goto err_free;
+ goto err_free;
}
+
err = -ENOSPC;
goto err_free;
} while (1);
diff --git a/drivers/gpu/tests/gpu_buddy_test.c b/drivers/gpu/tests/gpu_buddy_test.c
index b75d32ca6ca0..2c445870b808 100644
--- a/drivers/gpu/tests/gpu_buddy_test.c
+++ b/drivers/gpu/tests/gpu_buddy_test.c
@@ -1251,6 +1251,77 @@ static void gpu_test_buddy_alloc_contiguous(struct kunit *test)
gpu_buddy_fini(&mm);
}
+static void gpu_test_buddy_alloc_range_contiguous(struct kunit *test)
+{
+ const unsigned long ps = SZ_4K, mm_size = 16 * ps;
+ const unsigned long range_end = 8 * ps;
+ struct gpu_buddy_block *block, *prev;
+ LIST_HEAD(allocated);
+ struct gpu_buddy mm;
+ LIST_HEAD(pin_lo);
+ LIST_HEAD(pin_hi);
+ u64 total;
+
+ KUNIT_ASSERT_FALSE_MSG(test, gpu_buddy_init(&mm, mm_size, ps),
+ "buddy_init failed\n");
+
+ /*
+ * Idea is to confine the test to the sub-range [0, 32K), which a 12K
+ * contiguous request (rounded up to 16K) splits into two naturally
+ * aligned 16K slots: [0, 16K) and [16K, 32K). We pin the first 4K page
+ * of each slot ([0, 4K) and [16K, 20K)) so that neither aligned slot
+ * can satisfy the rounded-up 16K allocation, yet the freed remainder
+ * still leaves a contiguous 12K hole at offset 4K, which is page-aligned
+ * but not 16K-aligned. A 12K contiguous+range allocation must therefore
+ * fall back to stitching that span instead of returning -ENOSPC.
+ */
+ KUNIT_ASSERT_FALSE_MSG(test,
+ gpu_buddy_alloc_blocks(&mm, 0, ps, ps, ps,
+ &pin_lo, 0),
+ "failed to pin low page\n");
+ KUNIT_ASSERT_FALSE_MSG(test,
+ gpu_buddy_alloc_blocks(&mm, 4 * ps, 5 * ps, ps,
+ ps, &pin_hi, 0),
+ "failed to pin high page\n");
+
+ /* No aligned 16K block is free; the range-aware fallback must stitch
+ * the unaligned [ps, 4*ps) hole instead of returning -ENOSPC.
+ */
+ KUNIT_ASSERT_FALSE_MSG(test,
+ gpu_buddy_alloc_blocks(&mm, 0, range_end, 3 * ps,
+ ps, &allocated,
+ GPU_BUDDY_CONTIGUOUS_ALLOCATION |
+ GPU_BUDDY_RANGE_ALLOCATION),
+ "range-restricted contiguous alloc failed\n");
+
+ /* The result must be exactly 3*ps, contiguous, and inside the range. */
+ total = 0;
+ prev = NULL;
+ list_for_each_entry(block, &allocated, link) {
+ u64 offset = gpu_buddy_block_offset(block);
+ u64 bsize = gpu_buddy_block_size(&mm, block);
+
+ KUNIT_EXPECT_TRUE_MSG(test, offset + bsize <= range_end,
+ "block [%llx, %llx) outside range\n",
+ offset, offset + bsize);
+ if (prev)
+ KUNIT_EXPECT_EQ_MSG(test,
+ gpu_buddy_block_offset(prev) +
+ gpu_buddy_block_size(&mm, prev),
+ offset,
+ "block at %llx not contiguous\n",
+ offset);
+ prev = block;
+ total += bsize;
+ }
+ KUNIT_EXPECT_EQ(test, total, 3 * ps);
+
+ gpu_buddy_free_list(&mm, &allocated, 0);
+ gpu_buddy_free_list(&mm, &pin_lo, 0);
+ gpu_buddy_free_list(&mm, &pin_hi, 0);
+ gpu_buddy_fini(&mm);
+}
+
static void gpu_test_buddy_alloc_pathological(struct kunit *test)
{
u64 mm_size, size, start = 0;
@@ -1534,10 +1605,13 @@ static void gpu_test_buddy_alloc_exceeds_max_order(struct kunit *test)
GPU_BUDDY_RANGE_ALLOCATION);
KUNIT_EXPECT_EQ(test, err, -EINVAL);
- /* CONTIGUOUS + RANGE should return -EINVAL (no try_harder for RANGE) */
- err = gpu_buddy_alloc_blocks(&mm, 0, mm_size, size, SZ_4K, &blocks,
- GPU_BUDDY_CONTIGUOUS_ALLOCATION | GPU_BUDDY_RANGE_ALLOCATION);
- KUNIT_EXPECT_EQ(test, err, -EINVAL);
+ /* CONTIGUOUS + RANGE should succeed via the range-aware try_harder */
+ KUNIT_ASSERT_FALSE_MSG(test, gpu_buddy_alloc_blocks(&mm, 0, mm_size, size,
+ SZ_4K, &blocks,
+ GPU_BUDDY_CONTIGUOUS_ALLOCATION |
+ GPU_BUDDY_RANGE_ALLOCATION),
+ "range contiguous alloc hit an error size=%llu\n", size);
+ gpu_buddy_free_list(&mm, &blocks, 0);
gpu_buddy_fini(&mm);
}
@@ -1603,6 +1677,7 @@ static struct kunit_case gpu_buddy_tests[] = {
KUNIT_CASE(gpu_test_buddy_alloc_pessimistic),
KUNIT_CASE(gpu_test_buddy_alloc_pathological),
KUNIT_CASE(gpu_test_buddy_alloc_contiguous),
+ KUNIT_CASE(gpu_test_buddy_alloc_range_contiguous),
KUNIT_CASE(gpu_test_buddy_alloc_clear),
KUNIT_CASE(gpu_test_buddy_alloc_range),
KUNIT_CASE(gpu_test_buddy_alloc_range_bias),
base-commit: 744f262401cc2e1f3827496c72a47e072d31a852
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread* ✓ CI.KUnit: success for gpu/buddy: add range-restricted contiguous allocation fallback 2026-09-30 6:21 [PATCH v2] gpu/buddy: add range-restricted contiguous allocation fallback Arunpravin Paneer Selvam @ 2026-09-30 6:29 ` Patchwork 2026-09-30 6:31 ` [PATCH v2] " sashiko-bot ` (4 subsequent siblings) 5 siblings, 0 replies; 11+ messages in thread From: Patchwork @ 2026-09-30 6:29 UTC (permalink / raw) To: Arunpravin Paneer Selvam; +Cc: intel-xe == Series Details == Series: gpu/buddy: add range-restricted contiguous allocation fallback URL : https://patchwork.freedesktop.org/series/175261/ State : success == Summary == + trap cleanup EXIT + kunitconfigs=('/kernel/drivers/gpu/tests/.kunitconfig' '/kernel/drivers/gpu/drm/xe/.kunitconfig' '/kernel/drivers/gpu/drm/tests/.kunitconfig' '/kernel/drivers/gpu/drm/ttm/tests/.kunitconfig' '/kernel/drivers/dma-buf/.kunitconfig') + for kcfg in "${kunitconfigs[@]}" + [[ ! -f /kernel/drivers/gpu/tests/.kunitconfig ]] + /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/tests/.kunitconfig [06:27:34] Configuring KUnit Kernel ... Generating .config ... Populating config with: $ make ARCH=um O=.kunit olddefconfig [06:27:38] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [06:27:59] Starting KUnit Kernel (1/1)... [06:27:59] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [06:27:59] ============= refcount_interrupt (4 subtests) ============== [06:27:59] [PASSED] test_single_irq_change [06:27:59] [PASSED] test_nested_irq_change [06:27:59] [PASSED] test_multiple_irq_change [06:27:59] [PASSED] test_irq_save [06:27:59] =============== [PASSED] refcount_interrupt ================ [06:27:59] ================= gpu_buddy (15 subtests) ================== [06:27:59] [PASSED] gpu_test_buddy_alloc_limit [06:27:59] [PASSED] gpu_test_buddy_alloc_optimistic [06:27:59] [PASSED] gpu_test_buddy_alloc_pessimistic [06:27:59] [PASSED] gpu_test_buddy_alloc_pathological [06:27:59] [PASSED] gpu_test_buddy_alloc_contiguous [06:27:59] [PASSED] gpu_test_buddy_alloc_range_contiguous [06:27:59] [PASSED] gpu_test_buddy_alloc_clear [06:27:59] [PASSED] gpu_test_buddy_alloc_range [06:27:59] [PASSED] gpu_test_buddy_alloc_range_bias [06:28:00] [PASSED] gpu_test_buddy_fragmentation_performance [06:28:01] [PASSED] gpu_test_buddy_dirty_tracker_performance [06:28:01] [PASSED] gpu_test_buddy_alloc_exceeds_max_order [06:28:01] [PASSED] gpu_test_buddy_offset_aligned_allocation [06:28:01] [PASSED] gpu_test_buddy_subtree_offset_alignment_stress [06:28:01] [PASSED] gpu_test_buddy_addr_to_block [06:28:01] ==================== [PASSED] gpu_buddy ==================== [06:28:01] ============================================================ [06:28:01] Testing complete. Ran 19 tests: passed: 19 [06:28:01] Elapsed time: 27.039s total, 4.335s configuring, 20.786s building, 1.852s running + for kcfg in "${kunitconfigs[@]}" + [[ ! -f /kernel/drivers/gpu/drm/xe/.kunitconfig ]] + /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig [06:28:01] Configuring KUnit Kernel ... Regenerating .config ... Populating config with: $ make ARCH=um O=.kunit olddefconfig [06:28:03] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [06:28:37] Starting KUnit Kernel (1/1)... [06:28:37] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [06:28:37] ============= refcount_interrupt (4 subtests) ============== [06:28:37] [PASSED] test_single_irq_change [06:28:37] [PASSED] test_nested_irq_change [06:28:37] [PASSED] test_multiple_irq_change [06:28:37] [PASSED] test_irq_save [06:28:37] =============== [PASSED] refcount_interrupt ================ [06:28:37] ================== guc_buf (11 subtests) =================== [06:28:37] [PASSED] test_smallest [06:28:37] [PASSED] test_largest [06:28:37] [PASSED] test_granular [06:28:37] [PASSED] test_unique [06:28:37] [PASSED] test_overlap [06:28:37] [PASSED] test_reusable [06:28:37] [PASSED] test_too_big [06:28:37] [PASSED] test_flush [06:28:37] [PASSED] test_lookup [06:28:37] [PASSED] test_data [06:28:37] [PASSED] test_class [06:28:37] ===================== [PASSED] guc_buf ===================== [06:28:37] =================== guc_dbm (7 subtests) =================== [06:28:37] [PASSED] test_empty [06:28:37] [PASSED] test_default [06:28:37] ======================== test_size ======================== [06:28:37] [PASSED] 4 [06:28:37] [PASSED] 8 [06:28:37] [PASSED] 32 [06:28:37] [PASSED] 256 [06:28:37] ==================== [PASSED] test_size ==================== [06:28:37] ======================= test_reuse ======================== [06:28:37] [PASSED] 4 [06:28:37] [PASSED] 8 [06:28:37] [PASSED] 32 [06:28:37] [PASSED] 256 [06:28:37] =================== [PASSED] test_reuse ==================== [06:28:37] =================== test_range_overlap ==================== [06:28:37] [PASSED] 4 [06:28:37] [PASSED] 8 [06:28:37] [PASSED] 32 [06:28:37] [PASSED] 256 [06:28:37] =============== [PASSED] test_range_overlap ================ [06:28:37] =================== test_range_compact ==================== [06:28:37] [PASSED] 4 [06:28:37] [PASSED] 8 [06:28:37] [PASSED] 32 [06:28:37] [PASSED] 256 [06:28:37] =============== [PASSED] test_range_compact ================ [06:28:37] ==================== test_range_spare ===================== [06:28:37] [PASSED] 4 [06:28:37] [PASSED] 8 [06:28:37] [PASSED] 32 [06:28:37] [PASSED] 256 [06:28:37] ================ [PASSED] test_range_spare ================= [06:28:37] ===================== [PASSED] guc_dbm ===================== [06:28:37] =================== guc_idm (6 subtests) =================== [06:28:37] [PASSED] bad_init [06:28:37] [PASSED] no_init [06:28:37] [PASSED] init_fini [06:28:37] [PASSED] check_used [06:28:37] [PASSED] check_quota [06:28:37] [PASSED] check_all [06:28:37] ===================== [PASSED] guc_idm ===================== [06:28:37] ============== guc_klv_helpers (13 subtests) =============== [06:28:37] [PASSED] test_count [06:28:37] [PASSED] test_encode_u32 [06:28:37] [PASSED] test_encode_u64 [06:28:37] [PASSED] test_encode_string [06:28:37] [PASSED] test_encode_object_raw [06:28:37] [PASSED] test_encode_object_klv [06:28:37] [PASSED] test_encode_object_nested [06:28:37] [PASSED] test_encode_object_basic [06:28:37] ===================== test_decode_u16 ===================== [06:28:37] [PASSED] empty [06:28:37] [PASSED] valid [06:28:37] [PASSED] max [06:28:37] [PASSED] big [06:28:37] [PASSED] long [06:28:37] ================= [PASSED] test_decode_u16 ================= [06:28:37] ===================== test_decode_u32 ===================== [06:28:37] [PASSED] empty [06:28:37] [PASSED] valid [06:28:37] [PASSED] max [06:28:37] [PASSED] long [06:28:37] ================= [PASSED] test_decode_u32 ================= [06:28:37] ===================== test_decode_u64 ===================== [06:28:37] [PASSED] empty [06:28:37] [PASSED] short [06:28:37] [PASSED] valid [06:28:37] [PASSED] max [06:28:37] [PASSED] long [06:28:37] ================= [PASSED] test_decode_u64 ================= [06:28:37] ===================== test_decode_str ===================== [06:28:37] [PASSED] empty [06:28:37] [PASSED] one [06:28:37] [PASSED] one_trash [06:28:37] [PASSED] two [06:28:37] [PASSED] two_trash [06:28:37] [PASSED] three [06:28:37] [PASSED] dword [06:28:37] [PASSED] four [06:28:37] [PASSED] five [06:28:37] [PASSED] six [06:28:37] [PASSED] seven [06:28:37] [PASSED] qword [06:28:37] ================= [PASSED] test_decode_str ================= [06:28:37] [PASSED] test_print [06:28:37] ================= [PASSED] guc_klv_helpers ================= [06:28:37] =================== xe_log (4 subtests) ==================== [06:28:37] [PASSED] demo_cper [06:28:37] [PASSED] demo_dmesg [06:28:37] ======================= test_dmesg ======================== [06:28:37] [PASSED] test_fatal [06:28:37] [PASSED] test_fatal_tile [06:28:37] [PASSED] test_fatal_gt [06:28:37] [PASSED] test_fatal_comp [06:28:37] [PASSED] test_fatal_comp_tile [06:28:37] [PASSED] test_fatal_comp_gt [06:28:37] [PASSED] test_fatal_all [06:28:37] [PASSED] test_recoverable [06:28:37] [PASSED] test_recoverable_tile [06:28:37] [PASSED] test_recoverable_gt [06:28:37] [PASSED] test_recoverable_comp [06:28:37] [PASSED] test_recoverable_comp_tile [06:28:37] [PASSED] test_recoverable_comp_gt [06:28:37] [PASSED] test_recoverable_all [06:28:37] [PASSED] test_info [06:28:37] [PASSED] test_info_tile [06:28:37] [PASSED] test_info_gt [06:28:37] [PASSED] test_info_err [06:28:37] [PASSED] test_info_comp [06:28:37] [PASSED] test_info_comp_tile [06:28:37] [PASSED] test_info_comp_gt [06:28:37] [PASSED] test_info_all [06:28:37] [PASSED] test_hw_fatal [06:28:37] [PASSED] test_hw_recoverable [06:28:37] [PASSED] test_hw_corrected [06:28:37] [PASSED] test_hw_informational [06:28:37] =================== [PASSED] test_dmesg ==================== [06:28:37] ====================== test_invalid ======================= [06:28:37] [SKIPPED] no-component no-location no-warn (requires CONFIG_DRM_XE_DEBUG) [06:28:37] [SKIPPED] reserved location (requires CONFIG_DRM_XE_DEBUG) [06:28:37] [SKIPPED] unknown location (requires CONFIG_DRM_XE_DEBUG) [06:28:37] [SKIPPED] nonzero-device-id location (requires CONFIG_DRM_XE_DEBUG) [06:28:37] [SKIPPED] invalid-tile-id location (requires CONFIG_DRM_XE_DEBUG) [06:28:37] [SKIPPED] invalid-gt-id location (requires CONFIG_DRM_XE_DEBUG) [06:28:37] [SKIPPED] unknown component class (requires CONFIG_DRM_XE_DEBUG) [06:28:37] [SKIPPED] unknown system component (requires CONFIG_DRM_XE_DEBUG) [06:28:37] [SKIPPED] unknown hardware component (requires CONFIG_DRM_XE_DEBUG) [06:28:37] [SKIPPED] unknown component and location (requires CONFIG_DRM_XE_DEBUG) [06:28:37] ================== [SKIPPED] test_invalid ================== [06:28:37] ===================== [PASSED] xe_log ====================== [06:28:37] ================== no_relay (3 subtests) =================== [06:28:37] [PASSED] xe_drops_guc2pf_if_not_ready [06:28:37] [PASSED] xe_drops_guc2vf_if_not_ready [06:28:37] [PASSED] xe_rejects_send_if_not_ready [06:28:37] ==================== [PASSED] no_relay ===================== [06:28:37] ================== pf_relay (14 subtests) ================== [06:28:37] [PASSED] pf_rejects_guc2pf_too_short [06:28:37] [PASSED] pf_rejects_guc2pf_too_long [06:28:37] [PASSED] pf_rejects_guc2pf_no_payload [06:28:37] [PASSED] pf_fails_no_payload [06:28:37] [PASSED] pf_fails_bad_origin [06:28:37] [PASSED] pf_fails_bad_type [06:28:37] [PASSED] pf_txn_reports_error [06:28:37] [PASSED] pf_txn_sends_pf2guc [06:28:37] [PASSED] pf_sends_pf2guc [06:28:37] [SKIPPED] pf_loopback_nop (requires CONFIG_DRM_XE_DEBUG_SRIOV) [06:28:37] [SKIPPED] pf_loopback_echo (requires CONFIG_DRM_XE_DEBUG_SRIOV) [06:28:37] [SKIPPED] pf_loopback_fail (requires CONFIG_DRM_XE_DEBUG_SRIOV) [06:28:37] [SKIPPED] pf_loopback_busy (requires CONFIG_DRM_XE_DEBUG_SRIOV) [06:28:37] [SKIPPED] pf_loopback_retry (requires CONFIG_DRM_XE_DEBUG_SRIOV) [06:28:37] ==================== [PASSED] pf_relay ===================== [06:28:37] ================== vf_relay (3 subtests) =================== [06:28:37] [PASSED] vf_rejects_guc2vf_too_short [06:28:37] [PASSED] vf_rejects_guc2vf_too_long [06:28:37] [PASSED] vf_rejects_guc2vf_no_payload [06:28:37] ==================== [PASSED] vf_relay ===================== [06:28:37] ================ pf_gt_config (9 subtests) ================= [06:28:37] [PASSED] fair_contexts_1vf [06:28:37] [PASSED] fair_doorbells_1vf [06:28:37] [PASSED] fair_ggtt_1vf [06:28:37] ====================== fair_vram_1vf ====================== [06:28:37] [PASSED] 3.50 GiB [06:28:37] [PASSED] 11.5 GiB [06:28:37] [PASSED] 15.5 GiB [06:28:37] [PASSED] 31.5 GiB [06:28:37] [PASSED] 63.5 GiB [06:28:37] [PASSED] 1.91 GiB [06:28:37] ================== [PASSED] fair_vram_1vf ================== [06:28:37] ================ fair_vram_1vf_admin_only ================= [06:28:37] [PASSED] 3.50 GiB [06:28:37] [PASSED] 11.5 GiB [06:28:37] [PASSED] 15.5 GiB [06:28:37] [PASSED] 31.5 GiB [06:28:37] [PASSED] 63.5 GiB [06:28:37] [PASSED] 1.91 GiB [06:28:37] ============ [PASSED] fair_vram_1vf_admin_only ============= [06:28:37] ====================== fair_contexts ====================== [06:28:37] [PASSED] 1 VF [06:28:37] [PASSED] 2 VFs [06:28:37] [PASSED] 3 VFs [06:28:37] [PASSED] 4 VFs [06:28:37] [PASSED] 5 VFs [06:28:37] [PASSED] 6 VFs [06:28:37] [PASSED] 7 VFs [06:28:37] [PASSED] 8 VFs [06:28:37] [PASSED] 9 VFs [06:28:37] [PASSED] 10 VFs [06:28:37] [PASSED] 11 VFs [06:28:37] [PASSED] 12 VFs [06:28:37] [PASSED] 13 VFs [06:28:37] [PASSED] 14 VFs [06:28:37] [PASSED] 15 VFs [06:28:37] [PASSED] 16 VFs [06:28:37] [PASSED] 17 VFs [06:28:37] [PASSED] 18 VFs [06:28:37] [PASSED] 19 VFs [06:28:37] [PASSED] 20 VFs [06:28:37] [PASSED] 21 VFs [06:28:37] [PASSED] 22 VFs [06:28:37] [PASSED] 23 VFs [06:28:37] [PASSED] 24 VFs [06:28:37] [PASSED] 25 VFs [06:28:37] [PASSED] 26 VFs [06:28:37] [PASSED] 27 VFs [06:28:37] [PASSED] 28 VFs [06:28:37] [PASSED] 29 VFs [06:28:37] [PASSED] 30 VFs [06:28:37] [PASSED] 31 VFs [06:28:37] [PASSED] 32 VFs [06:28:37] [PASSED] 33 VFs [06:28:37] [PASSED] 34 VFs [06:28:37] [PASSED] 35 VFs [06:28:37] [PASSED] 36 VFs [06:28:37] [PASSED] 37 VFs [06:28:37] [PASSED] 38 VFs [06:28:37] [PASSED] 39 VFs [06:28:37] [PASSED] 40 VFs [06:28:37] [PASSED] 41 VFs [06:28:37] [PASSED] 42 VFs [06:28:37] [PASSED] 43 VFs [06:28:37] [PASSED] 44 VFs [06:28:37] [PASSED] 45 VFs [06:28:37] [PASSED] 46 VFs [06:28:37] [PASSED] 47 VFs [06:28:37] [PASSED] 48 VFs [06:28:37] [PASSED] 49 VFs [06:28:37] [PASSED] 50 VFs [06:28:37] [PASSED] 51 VFs [06:28:37] [PASSED] 52 VFs [06:28:37] [PASSED] 53 VFs [06:28:37] [PASSED] 54 VFs [06:28:37] [PASSED] 55 VFs [06:28:37] [PASSED] 56 VFs [06:28:37] [PASSED] 57 VFs [06:28:37] [PASSED] 58 VFs [06:28:37] [PASSED] 59 VFs [06:28:37] [PASSED] 60 VFs [06:28:37] [PASSED] 61 VFs [06:28:37] [PASSED] 62 VFs [06:28:37] [PASSED] 63 VFs [06:28:37] ================== [PASSED] fair_contexts ================== [06:28:37] ===================== fair_doorbells ====================== [06:28:37] [PASSED] 1 VF [06:28:37] [PASSED] 2 VFs [06:28:37] [PASSED] 3 VFs [06:28:37] [PASSED] 4 VFs [06:28:37] [PASSED] 5 VFs [06:28:37] [PASSED] 6 VFs [06:28:37] [PASSED] 7 VFs [06:28:37] [PASSED] 8 VFs [06:28:37] [PASSED] 9 VFs [06:28:37] [PASSED] 10 VFs [06:28:37] [PASSED] 11 VFs [06:28:37] [PASSED] 12 VFs [06:28:37] [PASSED] 13 VFs [06:28:37] [PASSED] 14 VFs [06:28:37] [PASSED] 15 VFs [06:28:37] [PASSED] 16 VFs [06:28:37] [PASSED] 17 VFs [06:28:37] [PASSED] 18 VFs [06:28:37] [PASSED] 19 VFs [06:28:37] [PASSED] 20 VFs [06:28:37] [PASSED] 21 VFs [06:28:37] [PASSED] 22 VFs [06:28:37] [PASSED] 23 VFs [06:28:37] [PASSED] 24 VFs [06:28:37] [PASSED] 25 VFs [06:28:37] [PASSED] 26 VFs [06:28:37] [PASSED] 27 VFs [06:28:37] [PASSED] 28 VFs [06:28:37] [PASSED] 29 VFs [06:28:37] [PASSED] 30 VFs [06:28:37] [PASSED] 31 VFs [06:28:37] [PASSED] 32 VFs [06:28:37] [PASSED] 33 VFs [06:28:37] [PASSED] 34 VFs [06:28:37] [PASSED] 35 VFs [06:28:37] [PASSED] 36 VFs [06:28:37] [PASSED] 37 VFs [06:28:37] [PASSED] 38 VFs [06:28:37] [PASSED] 39 VFs [06:28:37] [PASSED] 40 VFs [06:28:37] [PASSED] 41 VFs [06:28:37] [PASSED] 42 VFs [06:28:37] [PASSED] 43 VFs [06:28:37] [PASSED] 44 VFs [06:28:37] [PASSED] 45 VFs [06:28:37] [PASSED] 46 VFs [06:28:37] [PASSED] 47 VFs [06:28:37] [PASSED] 48 VFs [06:28:37] [PASSED] 49 VFs [06:28:37] [PASSED] 50 VFs [06:28:37] [PASSED] 51 VFs [06:28:37] [PASSED] 52 VFs [06:28:37] [PASSED] 53 VFs [06:28:37] [PASSED] 54 VFs [06:28:37] [PASSED] 55 VFs [06:28:37] [PASSED] 56 VFs [06:28:37] [PASSED] 57 VFs [06:28:37] [PASSED] 58 VFs [06:28:37] [PASSED] 59 VFs [06:28:37] [PASSED] 60 VFs [06:28:37] [PASSED] 61 VFs [06:28:37] [PASSED] 62 VFs [06:28:37] [PASSED] 63 VFs [06:28:37] ================= [PASSED] fair_doorbells ================== [06:28:37] ======================== fair_ggtt ======================== [06:28:37] [PASSED] 1 VF [06:28:37] [PASSED] 2 VFs [06:28:37] [PASSED] 3 VFs [06:28:37] [PASSED] 4 VFs [06:28:37] [PASSED] 5 VFs [06:28:37] [PASSED] 6 VFs [06:28:37] [PASSED] 7 VFs [06:28:37] [PASSED] 8 VFs [06:28:37] [PASSED] 9 VFs [06:28:37] [PASSED] 10 VFs [06:28:37] [PASSED] 11 VFs [06:28:37] [PASSED] 12 VFs [06:28:37] [PASSED] 13 VFs [06:28:37] [PASSED] 14 VFs [06:28:37] [PASSED] 15 VFs [06:28:37] [PASSED] 16 VFs [06:28:37] [PASSED] 17 VFs [06:28:37] [PASSED] 18 VFs [06:28:37] [PASSED] 19 VFs [06:28:37] [PASSED] 20 VFs [06:28:37] [PASSED] 21 VFs [06:28:37] [PASSED] 22 VFs [06:28:37] [PASSED] 23 VFs [06:28:37] [PASSED] 24 VFs [06:28:37] [PASSED] 25 VFs [06:28:37] [PASSED] 26 VFs [06:28:37] [PASSED] 27 VFs [06:28:37] [PASSED] 28 VFs [06:28:37] [PASSED] 29 VFs [06:28:37] [PASSED] 30 VFs [06:28:37] [PASSED] 31 VFs [06:28:37] [PASSED] 32 VFs [06:28:37] [PASSED] 33 VFs [06:28:37] [PASSED] 34 VFs [06:28:37] [PASSED] 35 VFs [06:28:38] [PASSED] 36 VFs [06:28:38] [PASSED] 37 VFs [06:28:38] [PASSED] 38 VFs [06:28:38] [PASSED] 39 VFs [06:28:38] [PASSED] 40 VFs [06:28:38] [PASSED] 41 VFs [06:28:38] [PASSED] 42 VFs [06:28:38] [PASSED] 43 VFs [06:28:38] [PASSED] 44 VFs [06:28:38] [PASSED] 45 VFs [06:28:38] [PASSED] 46 VFs [06:28:38] [PASSED] 47 VFs [06:28:38] [PASSED] 48 VFs [06:28:38] [PASSED] 49 VFs [06:28:38] [PASSED] 50 VFs [06:28:38] [PASSED] 51 VFs [06:28:38] [PASSED] 52 VFs [06:28:38] [PASSED] 53 VFs [06:28:38] [PASSED] 54 VFs [06:28:38] [PASSED] 55 VFs [06:28:38] [PASSED] 56 VFs [06:28:38] [PASSED] 57 VFs [06:28:38] [PASSED] 58 VFs [06:28:38] [PASSED] 59 VFs [06:28:38] [PASSED] 60 VFs [06:28:38] [PASSED] 61 VFs [06:28:38] [PASSED] 62 VFs [06:28:38] [PASSED] 63 VFs [06:28:38] ==================== [PASSED] fair_ggtt ==================== [06:28:38] ======================== fair_vram ======================== [06:28:38] [PASSED] 1 VF [06:28:38] [PASSED] 2 VFs [06:28:38] [PASSED] 3 VFs [06:28:38] [PASSED] 4 VFs [06:28:38] [PASSED] 5 VFs [06:28:38] [PASSED] 6 VFs [06:28:38] [PASSED] 7 VFs [06:28:38] [PASSED] 8 VFs [06:28:38] [PASSED] 9 VFs [06:28:38] [PASSED] 10 VFs [06:28:38] [PASSED] 11 VFs [06:28:38] [PASSED] 12 VFs [06:28:38] [PASSED] 13 VFs [06:28:38] [PASSED] 14 VFs [06:28:38] [PASSED] 15 VFs [06:28:38] [PASSED] 16 VFs [06:28:38] [PASSED] 17 VFs [06:28:38] [PASSED] 18 VFs [06:28:38] [PASSED] 19 VFs [06:28:38] [PASSED] 20 VFs [06:28:38] [PASSED] 21 VFs [06:28:38] [PASSED] 22 VFs [06:28:38] [PASSED] 23 VFs [06:28:38] [PASSED] 24 VFs [06:28:38] [PASSED] 25 VFs [06:28:38] [PASSED] 26 VFs [06:28:38] [PASSED] 27 VFs [06:28:38] [PASSED] 28 VFs [06:28:38] [PASSED] 29 VFs [06:28:38] [PASSED] 30 VFs [06:28:38] [PASSED] 31 VFs [06:28:38] [PASSED] 32 VFs [06:28:38] [PASSED] 33 VFs [06:28:38] [PASSED] 34 VFs [06:28:38] [PASSED] 35 VFs [06:28:38] [PASSED] 36 VFs [06:28:38] [PASSED] 37 VFs [06:28:38] [PASSED] 38 VFs [06:28:38] [PASSED] 39 VFs [06:28:38] [PASSED] 40 VFs [06:28:38] [PASSED] 41 VFs [06:28:38] [PASSED] 42 VFs [06:28:38] [PASSED] 43 VFs [06:28:38] [PASSED] 44 VFs [06:28:38] [PASSED] 45 VFs [06:28:38] [PASSED] 46 VFs [06:28:38] [PASSED] 47 VFs [06:28:38] [PASSED] 48 VFs [06:28:38] [PASSED] 49 VFs [06:28:38] [PASSED] 50 VFs [06:28:38] [PASSED] 51 VFs [06:28:38] [PASSED] 52 VFs [06:28:38] [PASSED] 53 VFs [06:28:38] [PASSED] 54 VFs [06:28:38] [PASSED] 55 VFs [06:28:38] [PASSED] 56 VFs [06:28:38] [PASSED] 57 VFs [06:28:38] [PASSED] 58 VFs [06:28:38] [PASSED] 59 VFs [06:28:38] [PASSED] 60 VFs [06:28:38] [PASSED] 61 VFs [06:28:38] [PASSED] 62 VFs [06:28:38] [PASSED] 63 VFs [06:28:38] ==================== [PASSED] fair_vram ==================== [06:28:38] ================== [PASSED] pf_gt_config =================== [06:28:38] ===================== lmtt (1 subtest) ===================== [06:28:38] ======================== test_ops ========================= [06:28:38] [PASSED] 2-level [06:28:38] [PASSED] multi-level [06:28:38] ==================== [PASSED] test_ops ===================== [06:28:38] ====================== [PASSED] lmtt ======================= [06:28:38] ================= sriov_packet (1 subtest) ================= [06:28:38] [PASSED] test_descriptor_init [06:28:38] ================== [PASSED] sriov_packet =================== [06:28:38] ================= pf_service (11 subtests) ================= [06:28:38] [PASSED] pf_negotiate_any [06:28:38] [PASSED] pf_negotiate_base_match [06:28:38] [PASSED] pf_negotiate_base_newer [06:28:38] [PASSED] pf_negotiate_base_next [06:28:38] [SKIPPED] pf_negotiate_base_older (no older minor) [06:28:38] [PASSED] pf_negotiate_base_prev [06:28:38] [PASSED] pf_negotiate_latest_match [06:28:38] [PASSED] pf_negotiate_latest_newer [06:28:38] [PASSED] pf_negotiate_latest_next [06:28:38] [SKIPPED] pf_negotiate_latest_older (no older minor) [06:28:38] [SKIPPED] pf_negotiate_latest_prev (no prev major) [06:28:38] =================== [PASSED] pf_service ==================== [06:28:38] ================= xe_guc_g2g (2 subtests) ================== [06:28:38] ============== xe_live_guc_g2g_kunit_default ============== [06:28:38] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ========== [06:28:38] ============== xe_live_guc_g2g_kunit_allmem =============== [06:28:38] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ========== [06:28:38] =================== [SKIPPED] xe_guc_g2g =================== [06:28:38] =================== xe_mocs (2 subtests) =================== [06:28:38] ================ xe_live_mocs_kernel_kunit ================ [06:28:38] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============ [06:28:38] ================ xe_live_mocs_reset_kunit ================= [06:28:38] ============ [SKIPPED] xe_live_mocs_reset_kunit ============ [06:28:38] ==================== [SKIPPED] xe_mocs ===================== [06:28:38] ================= xe_migrate (2 subtests) ================== [06:28:38] ================= xe_migrate_sanity_kunit ================= [06:28:38] ============ [SKIPPED] xe_migrate_sanity_kunit ============= [06:28:38] ================== xe_validate_ccs_kunit ================== [06:28:38] ============= [SKIPPED] xe_validate_ccs_kunit ============== [06:28:38] =================== [SKIPPED] xe_migrate =================== [06:28:38] ================== xe_dma_buf (1 subtest) ================== [06:28:38] ==================== xe_dma_buf_kunit ===================== [06:28:38] ================ [SKIPPED] xe_dma_buf_kunit ================ [06:28:38] =================== [SKIPPED] xe_dma_buf =================== [06:28:38] ================= xe_bo_shrink (1 subtest) ================= [06:28:38] =================== xe_bo_shrink_kunit ==================== [06:28:38] =============== [SKIPPED] xe_bo_shrink_kunit =============== [06:28:38] ================== [SKIPPED] xe_bo_shrink ================== [06:28:38] ==================== xe_bo (2 subtests) ==================== [06:28:38] ================== xe_ccs_migrate_kunit =================== [06:28:38] ============== [SKIPPED] xe_ccs_migrate_kunit ============== [06:28:38] ==================== xe_bo_evict_kunit ==================== [06:28:38] =============== [SKIPPED] xe_bo_evict_kunit ================ [06:28:38] ===================== [SKIPPED] xe_bo ====================== [06:28:38] =================== xe_any (9 subtests) ==================== [06:28:38] [PASSED] test_to_xe [06:28:38] [PASSED] test_to_dev [06:28:38] [PASSED] test_to_pdev [06:28:38] [PASSED] test_to_drm [06:28:38] [PASSED] test_if_pdev [06:28:38] [PASSED] test_if_xe [06:28:38] [PASSED] test_if_tile [06:28:38] [PASSED] test_if_gt [06:28:38] [PASSED] test_to_id [06:28:38] ===================== [PASSED] xe_any ====================== [06:28:38] ==================== args (13 subtests) ==================== [06:28:38] [PASSED] count_args_test [06:28:38] [PASSED] call_args_example [06:28:38] [PASSED] call_args_test [06:28:38] [PASSED] drop_first_arg_example [06:28:38] [PASSED] drop_first_arg_test [06:28:38] [PASSED] first_arg_example [06:28:38] [PASSED] first_arg_test [06:28:38] [PASSED] last_arg_example [06:28:38] [PASSED] last_arg_test [06:28:38] [PASSED] pick_arg_example [06:28:38] [PASSED] if_args_example [06:28:38] [PASSED] if_args_test [06:28:38] [PASSED] sep_comma_example [06:28:38] ====================== [PASSED] args ======================= [06:28:38] =================== xe_pci (3 subtests) ==================== [06:28:38] ==================== check_graphics_ip ==================== [06:28:38] [PASSED] 12.00 Xe_LP [06:28:38] [PASSED] 12.10 Xe_LP+ [06:28:38] [PASSED] 12.55 Xe_HPG [06:28:38] [PASSED] 12.60 Xe_HPC [06:28:38] [PASSED] 12.70 Xe_LPG [06:28:38] [PASSED] 12.71 Xe_LPG [06:28:38] [PASSED] 12.74 Xe_LPG+ [06:28:38] [PASSED] 20.01 Xe2_HPG [06:28:38] [PASSED] 20.02 Xe2_HPG [06:28:38] [PASSED] 20.04 Xe2_LPG [06:28:38] [PASSED] 30.00 Xe3_LPG [06:28:38] [PASSED] 30.01 Xe3_LPG [06:28:38] [PASSED] 30.03 Xe3_LPG [06:28:38] [PASSED] 30.04 Xe3_LPG [06:28:38] [PASSED] 30.05 Xe3_LPG [06:28:38] [PASSED] 35.10 Xe3p_LPG [06:28:38] [PASSED] 35.11 Xe3p_XPC [06:28:38] ================ [PASSED] check_graphics_ip ================ [06:28:38] ===================== check_media_ip ====================== [06:28:38] [PASSED] 12.00 Xe_M [06:28:38] [PASSED] 12.55 Xe_HPM [06:28:38] [PASSED] 13.00 Xe_LPM+ [06:28:38] [PASSED] 13.01 Xe2_HPM [06:28:38] [PASSED] 20.00 Xe2_LPM [06:28:38] [PASSED] 30.00 Xe3_LPM [06:28:38] [PASSED] 30.02 Xe3_LPM [06:28:38] [PASSED] 35.00 Xe3p_LPM [06:28:38] [PASSED] 35.03 Xe3p_HPM [06:28:38] ================= [PASSED] check_media_ip ================== [06:28:38] =================== check_platform_desc =================== [06:28:38] [PASSED] 0x9A60 (TIGERLAKE) [06:28:38] [PASSED] 0x9A68 (TIGERLAKE) [06:28:38] [PASSED] 0x9A70 (TIGERLAKE) [06:28:38] [PASSED] 0x9A40 (TIGERLAKE) [06:28:38] [PASSED] 0x9A49 (TIGERLAKE) [06:28:38] [PASSED] 0x9A59 (TIGERLAKE) [06:28:38] [PASSED] 0x9A78 (TIGERLAKE) [06:28:38] [PASSED] 0x9AC0 (TIGERLAKE) [06:28:38] [PASSED] 0x9AC9 (TIGERLAKE) [06:28:38] [PASSED] 0x9AD9 (TIGERLAKE) [06:28:38] [PASSED] 0x9AF8 (TIGERLAKE) [06:28:38] [PASSED] 0x4C80 (ROCKETLAKE) [06:28:38] [PASSED] 0x4C8A (ROCKETLAKE) [06:28:38] [PASSED] 0x4C8B (ROCKETLAKE) [06:28:38] [PASSED] 0x4C8C (ROCKETLAKE) [06:28:38] [PASSED] 0x4C90 (ROCKETLAKE) [06:28:38] [PASSED] 0x4C9A (ROCKETLAKE) [06:28:38] [PASSED] 0x4680 (ALDERLAKE_S) [06:28:38] [PASSED] 0x4682 (ALDERLAKE_S) [06:28:38] [PASSED] 0x4688 (ALDERLAKE_S) [06:28:38] [PASSED] 0x468A (ALDERLAKE_S) [06:28:38] [PASSED] 0x468B (ALDERLAKE_S) [06:28:38] [PASSED] 0x4690 (ALDERLAKE_S) [06:28:38] [PASSED] 0x4692 (ALDERLAKE_S) [06:28:38] [PASSED] 0x4693 (ALDERLAKE_S) [06:28:38] [PASSED] 0x46A0 (ALDERLAKE_P) [06:28:38] [PASSED] 0x46A1 (ALDERLAKE_P) [06:28:38] [PASSED] 0x46A2 (ALDERLAKE_P) [06:28:38] [PASSED] 0x46A3 (ALDERLAKE_P) [06:28:38] [PASSED] 0x46A6 (ALDERLAKE_P) [06:28:38] [PASSED] 0x46A8 (ALDERLAKE_P) [06:28:38] [PASSED] 0x46AA (ALDERLAKE_P) [06:28:38] [PASSED] 0x462A (ALDERLAKE_P) [06:28:38] [PASSED] 0x4626 (ALDERLAKE_P) [06:28:38] [PASSED] 0x4628 (ALDERLAKE_P) [06:28:38] [PASSED] 0x46B0 (ALDERLAKE_P) [06:28:38] [PASSED] 0x46B1 (ALDERLAKE_P) [06:28:38] [PASSED] 0x46B2 (ALDERLAKE_P) [06:28:38] [PASSED] 0x46B3 (ALDERLAKE_P) [06:28:38] [PASSED] 0x46C0 (ALDERLAKE_P) [06:28:38] [PASSED] 0x46C1 (ALDERLAKE_P) [06:28:38] [PASSED] 0x46C2 (ALDERLAKE_P) [06:28:38] [PASSED] 0x46C3 (ALDERLAKE_P) [06:28:38] [PASSED] 0x46D0 (ALDERLAKE_N) [06:28:38] [PASSED] 0x46D1 (ALDERLAKE_N) [06:28:38] [PASSED] 0x46D2 (ALDERLAKE_N) [06:28:38] [PASSED] 0x46D3 (ALDERLAKE_N) [06:28:38] [PASSED] 0x46D4 (ALDERLAKE_N) [06:28:38] [PASSED] 0xA721 (ALDERLAKE_P) [06:28:38] [PASSED] 0xA7A1 (ALDERLAKE_P) [06:28:38] [PASSED] 0xA7A9 (ALDERLAKE_P) [06:28:38] [PASSED] 0xA7AC (ALDERLAKE_P) [06:28:38] [PASSED] 0xA7AD (ALDERLAKE_P) [06:28:38] [PASSED] 0xA720 (ALDERLAKE_P) [06:28:38] [PASSED] 0xA7A0 (ALDERLAKE_P) [06:28:38] [PASSED] 0xA7A8 (ALDERLAKE_P) [06:28:38] [PASSED] 0xA7AA (ALDERLAKE_P) [06:28:38] [PASSED] 0xA7AB (ALDERLAKE_P) [06:28:38] [PASSED] 0xA780 (ALDERLAKE_S) [06:28:38] [PASSED] 0xA781 (ALDERLAKE_S) [06:28:38] [PASSED] 0xA782 (ALDERLAKE_S) [06:28:38] [PASSED] 0xA783 (ALDERLAKE_S) [06:28:38] [PASSED] 0xA788 (ALDERLAKE_S) [06:28:38] [PASSED] 0xA789 (ALDERLAKE_S) [06:28:38] [PASSED] 0xA78A (ALDERLAKE_S) [06:28:38] [PASSED] 0xA78B (ALDERLAKE_S) [06:28:38] [PASSED] 0x4905 (DG1) [06:28:38] [PASSED] 0x4906 (DG1) [06:28:38] [PASSED] 0x4907 (DG1) [06:28:38] [PASSED] 0x4908 (DG1) [06:28:38] [PASSED] 0x4909 (DG1) [06:28:38] [PASSED] 0x56C0 (DG2) [06:28:38] [PASSED] 0x56C2 (DG2) [06:28:38] [PASSED] 0x56C1 (DG2) [06:28:38] [PASSED] 0x7D51 (METEORLAKE) [06:28:38] [PASSED] 0x7DD1 (METEORLAKE) [06:28:38] [PASSED] 0x7D41 (METEORLAKE) [06:28:38] [PASSED] 0x7D67 (METEORLAKE) [06:28:38] [PASSED] 0xB640 (METEORLAKE) [06:28:38] [PASSED] 0x56A0 (DG2) [06:28:38] [PASSED] 0x56A1 (DG2) [06:28:38] [PASSED] 0x56A2 (DG2) [06:28:38] [PASSED] 0x56BE (DG2) [06:28:38] [PASSED] 0x56BF (DG2) [06:28:38] [PASSED] 0x5690 (DG2) [06:28:38] [PASSED] 0x5691 (DG2) [06:28:38] [PASSED] 0x5692 (DG2) [06:28:38] [PASSED] 0x56A5 (DG2) [06:28:38] [PASSED] 0x56A6 (DG2) [06:28:38] [PASSED] 0x56B0 (DG2) [06:28:38] [PASSED] 0x56B1 (DG2) [06:28:38] [PASSED] 0x56BA (DG2) [06:28:38] [PASSED] 0x56BB (DG2) [06:28:38] [PASSED] 0x56BC (DG2) [06:28:38] [PASSED] 0x56BD (DG2) [06:28:38] [PASSED] 0x5693 (DG2) [06:28:38] [PASSED] 0x5694 (DG2) [06:28:38] [PASSED] 0x5695 (DG2) [06:28:38] [PASSED] 0x56A3 (DG2) [06:28:38] [PASSED] 0x56A4 (DG2) [06:28:38] [PASSED] 0x56B2 (DG2) [06:28:38] [PASSED] 0x56B3 (DG2) [06:28:38] [PASSED] 0x5696 (DG2) [06:28:38] [PASSED] 0x5697 (DG2) [06:28:38] [PASSED] 0xB69 (PVC) [06:28:38] [PASSED] 0xB6E (PVC) [06:28:38] [PASSED] 0xBD4 (PVC) [06:28:38] [PASSED] 0xBD5 (PVC) [06:28:38] [PASSED] 0xBD6 (PVC) [06:28:38] [PASSED] 0xBD7 (PVC) [06:28:38] [PASSED] 0xBD8 (PVC) [06:28:38] [PASSED] 0xBD9 (PVC) [06:28:38] [PASSED] 0xBDA (PVC) [06:28:38] [PASSED] 0xBDB (PVC) [06:28:38] [PASSED] 0xBE0 (PVC) [06:28:38] [PASSED] 0xBE1 (PVC) [06:28:38] [PASSED] 0xBE5 (PVC) [06:28:38] [PASSED] 0x7D40 (METEORLAKE) [06:28:38] [PASSED] 0x7D45 (METEORLAKE) [06:28:38] [PASSED] 0x7D55 (METEORLAKE) [06:28:38] [PASSED] 0x7D60 (METEORLAKE) [06:28:38] [PASSED] 0x7DD5 (METEORLAKE) [06:28:38] [PASSED] 0x6420 (LUNARLAKE) [06:28:38] [PASSED] 0x64A0 (LUNARLAKE) [06:28:38] [PASSED] 0x64B0 (LUNARLAKE) [06:28:38] [PASSED] 0xE202 (BATTLEMAGE) [06:28:38] [PASSED] 0xE209 (BATTLEMAGE) [06:28:38] [PASSED] 0xE20B (BATTLEMAGE) [06:28:38] [PASSED] 0xE20C (BATTLEMAGE) [06:28:38] [PASSED] 0xE20D (BATTLEMAGE) [06:28:38] [PASSED] 0xE210 (BATTLEMAGE) [06:28:38] [PASSED] 0xE211 (BATTLEMAGE) [06:28:38] [PASSED] 0xE212 (BATTLEMAGE) [06:28:38] [PASSED] 0xE216 (BATTLEMAGE) [06:28:38] [PASSED] 0xE220 (BATTLEMAGE) [06:28:38] [PASSED] 0xE221 (BATTLEMAGE) [06:28:38] [PASSED] 0xE222 (BATTLEMAGE) [06:28:38] [PASSED] 0xE223 (BATTLEMAGE) [06:28:38] [PASSED] 0xB080 (PANTHERLAKE) [06:28:38] [PASSED] 0xB081 (PANTHERLAKE) [06:28:38] [PASSED] 0xB082 (PANTHERLAKE) [06:28:38] [PASSED] 0xB083 (PANTHERLAKE) [06:28:38] [PASSED] 0xB084 (PANTHERLAKE) [06:28:38] [PASSED] 0xB085 (PANTHERLAKE) [06:28:38] [PASSED] 0xB086 (PANTHERLAKE) [06:28:38] [PASSED] 0xB087 (PANTHERLAKE) [06:28:38] [PASSED] 0xB08F (PANTHERLAKE) [06:28:38] [PASSED] 0xB090 (PANTHERLAKE) [06:28:38] [PASSED] 0xB0A0 (PANTHERLAKE) [06:28:38] [PASSED] 0xB0A1 (PANTHERLAKE) [06:28:38] [PASSED] 0xB0B0 (PANTHERLAKE) [06:28:38] [PASSED] 0xFD80 (PANTHERLAKE) [06:28:38] [PASSED] 0xFD81 (PANTHERLAKE) [06:28:38] [PASSED] 0xD740 (NOVALAKE_S) [06:28:38] [PASSED] 0xD741 (NOVALAKE_S) [06:28:38] [PASSED] 0xD742 (NOVALAKE_S) [06:28:38] [PASSED] 0xD743 (NOVALAKE_S) [06:28:38] [PASSED] 0xD745 (NOVALAKE_S) [06:28:38] [PASSED] 0xD74A (NOVALAKE_S) [06:28:38] [PASSED] 0xD74B (NOVALAKE_S) [06:28:38] [PASSED] 0x674C (CRESCENTISLAND) [06:28:38] [PASSED] 0x674D (CRESCENTISLAND) [06:28:38] [PASSED] 0x674E (CRESCENTISLAND) [06:28:38] [PASSED] 0x674F (CRESCENTISLAND) [06:28:38] [PASSED] 0x6750 (CRESCENTISLAND) [06:28:38] [PASSED] 0xD750 (NOVALAKE_P) [06:28:38] [PASSED] 0xD751 (NOVALAKE_P) [06:28:38] [PASSED] 0xD752 (NOVALAKE_P) [06:28:38] [PASSED] 0xD753 (NOVALAKE_P) [06:28:38] [PASSED] 0xD754 (NOVALAKE_P) [06:28:38] [PASSED] 0xD755 (NOVALAKE_P) [06:28:38] [PASSED] 0xD756 (NOVALAKE_P) [06:28:38] [PASSED] 0xD757 (NOVALAKE_P) [06:28:38] [PASSED] 0xD75F (NOVALAKE_P) [06:28:38] =============== [PASSED] check_platform_desc =============== [06:28:38] ===================== [PASSED] xe_pci ====================== [06:28:38] ============= xe_rtp_tables_test (5 subtests) ============== [06:28:38] ================== xe_rtp_table_gt_test =================== [06:28:38] [PASSED] gt_was/14011060649 [06:28:38] [PASSED] gt_was/14011059788 [06:28:38] [PASSED] gt_was/14015795083 [06:28:38] [PASSED] gt_was/16021867713 [06:28:38] [PASSED] gt_was/14019449301 [06:28:38] [PASSED] gt_was/16028005424 [06:28:38] [PASSED] gt_was/14026578760 [06:28:38] [PASSED] gt_was/1409420604 [06:28:38] [PASSED] gt_was/1408615072 [06:28:38] [PASSED] gt_was/22010523718 [06:28:38] [PASSED] gt_was/14011006942 [06:28:38] [PASSED] gt_was/14014830051 [06:28:38] [PASSED] gt_was/18018781329 [06:28:38] [PASSED] gt_was/1509235366 [06:28:38] [PASSED] gt_was/18018781329 [06:28:38] [PASSED] gt_was/16016694945 [06:28:38] [PASSED] gt_was/14018575942 [06:28:38] [PASSED] gt_was/22016670082 [06:28:38] [PASSED] gt_was/22016670082 [06:28:38] [PASSED] gt_was/14017421178 [06:28:38] [PASSED] gt_was/16025250150 [06:28:38] [PASSED] gt_was/14021871409 [06:28:38] [PASSED] gt_was/16021865536 [06:28:38] [PASSED] gt_was/14021486841 [06:28:38] [PASSED] gt_was/14025160223 [06:28:38] [PASSED] gt_was/14026144927, 16029437861, 14026127056 [06:28:38] [PASSED] gt_was/14025635424 [06:28:38] [PASSED] gt_was/16028005424 [06:28:38] ============== [PASSED] xe_rtp_table_gt_test =============== [06:28:38] ================== xe_rtp_table_gt_test =================== [06:28:38] [PASSED] gt_tunings/Tuning: Blend Fill Caching Optimization Disable [06:28:38] [PASSED] gt_tunings/Tuning: 32B Access Enable [06:28:38] [PASSED] gt_tunings/Tuning: L3 cache [06:28:38] [PASSED] gt_tunings/Tuning: L3 cache - media [06:28:38] [PASSED] gt_tunings/Tuning: Compression Overfetch [06:28:38] [PASSED] gt_tunings/Tuning: Compression Overfetch - media [06:28:38] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 [06:28:38] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 - media [06:28:38] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only [06:28:38] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only - media [06:28:38] [PASSED] gt_tunings/Tuning: Stateless compression control [06:28:38] [PASSED] gt_tunings/Tuning: Stateless compression control - media [06:28:38] [PASSED] gt_tunings/Tuning: L3 RW flush all Cache [06:28:38] [PASSED] gt_tunings/Tuning: L3 RW flush all cache - media [06:28:38] [PASSED] gt_tunings/Tuning: Set STLB Bank Hash Mode to 4KB [06:28:38] [PASSED] gt_tunings/Tuning: Force All Non-Compressible Memory Reads to be 256B Overfetches [06:28:38] ============== [PASSED] xe_rtp_table_gt_test =============== [06:28:38] ================== xe_rtp_table_oob_test ================== [06:28:38] [PASSED] oob_was/1607983814 [06:28:38] [PASSED] oob_was/16010904313 [06:28:38] [PASSED] oob_was/18022495364 [06:28:38] [PASSED] oob_was/22012773006 [06:28:38] [PASSED] oob_was/14014475959 [06:28:38] [PASSED] oob_was/22011391025 [06:28:38] [PASSED] oob_was/22012727170 [06:28:38] [PASSED] oob_was/22012727685 [06:28:38] [PASSED] oob_was/22016596838 [06:28:38] [PASSED] oob_was/18020744125 [06:28:38] [PASSED] oob_was/1409600907 [06:28:38] [PASSED] oob_was/22014953428 [06:28:38] [PASSED] oob_was/16017236439 [06:28:38] [PASSED] oob_was/14019821291 [06:28:38] [PASSED] oob_was/14015076503 [06:28:38] [PASSED] oob_was/22016122933 [06:28:38] [PASSED] oob_was/14018913170 [06:28:38] [PASSED] oob_was/14018094691 [06:28:38] [PASSED] oob_was/18024947630 [06:28:38] [PASSED] oob_was/16022287689 [06:28:38] [PASSED] oob_was/13011645652 [06:28:38] [PASSED] oob_was/14022293748 [06:28:38] [PASSED] oob_was/22019794406 [06:28:38] [PASSED] oob_was/22019338487 [06:28:38] [PASSED] oob_was/16023588340 [06:28:38] [PASSED] oob_was/14019789679 [06:28:38] [PASSED] oob_was/14022866841 [06:28:38] [PASSED] oob_was/16021333562 [06:28:38] [PASSED] oob_was/14016712196 [06:28:38] [PASSED] oob_was/14015568240 [06:28:38] [PASSED] oob_was/18013179988 [06:28:38] [PASSED] oob_was/1508761755 [06:28:38] [PASSED] oob_was/16023105232 [06:28:38] [PASSED] oob_was/16026508708 [06:28:38] [PASSED] oob_was/14020001231 [06:28:38] [PASSED] oob_was/16023683509 [06:28:38] [PASSED] oob_was/14025515070 [06:28:38] [PASSED] oob_was/15015404425_disable [06:28:38] [PASSED] oob_was/16026007364 [06:28:38] [PASSED] oob_was/14020316580 [06:28:38] [PASSED] oob_was/14025883347 [06:28:38] [PASSED] oob_was/16029380221 [06:28:38] [PASSED] oob_was/22022079272 [06:28:38] [PASSED] oob_was/16029897822 [06:28:38] [PASSED] oob_was/14027054324 [06:28:38] [PASSED] oob_was/14025941587 [06:28:38] [PASSED] oob_was/16030224309 [06:28:38] ============== [PASSED] xe_rtp_table_oob_test ============== [06:28:38] ================ xe_rtp_table_dev_oob_test ================ [06:28:38] [PASSED] device_oob_was/22010954014 [06:28:38] [PASSED] device_oob_was/15015404425 [06:28:38] [PASSED] device_oob_was/22019338487_display [06:28:38] [PASSED] device_oob_was/14022085890 [06:28:38] [PASSED] device_oob_was/14026539277 [06:28:38] [PASSED] device_oob_was/14026633728 [06:28:38] [PASSED] device_oob_was/14026746987 [06:28:38] [PASSED] device_oob_was/14026779378 [06:28:38] ============ [PASSED] xe_rtp_table_dev_oob_test ============ [06:28:38] ========== xe_rtp_table_missing_upper_bound_test ========== [06:28:38] [PASSED] register_whitelist/WaAllowPMDepthAndInvocationCountAccessFromUMD, 1408556865 [06:28:38] [PASSED] register_whitelist/1508744258, 14012131227, 1808121037 [06:28:38] [PASSED] register_whitelist/1806527549 [06:28:38] [PASSED] register_whitelist/allow_read_ctx_timestamp [06:28:38] [PASSED] register_whitelist/allow_read_queue_timestamp [06:28:38] [PASSED] register_whitelist/16014440446 [06:28:38] [PASSED] register_whitelist/16017236439 [06:28:38] [PASSED] register_whitelist/16020183090 [06:28:38] [PASSED] register_whitelist/14024997852 [06:28:38] [PASSED] register_whitelist/14024997852 [06:28:38] ====== [PASSED] xe_rtp_table_missing_upper_bound_test ====== [06:28:38] =============== [PASSED] xe_rtp_tables_test ================ [06:28:38] =================== xe_rtp (3 subtests) ==================== [06:28:38] =================== xe_rtp_rules_tests ==================== [06:28:38] [PASSED] no [06:28:38] [PASSED] yes [06:28:38] [PASSED] no-and-no [06:28:38] [PASSED] no-and-yes [06:28:38] [PASSED] yes-and-no [06:28:38] [PASSED] yes-and-yes [06:28:38] [PASSED] no-or-no [06:28:38] [PASSED] no-or-yes [06:28:38] [PASSED] yes-or-no [06:28:38] [PASSED] yes-or-yes [06:28:38] [PASSED] no-yes-or-yes-no [06:28:38] [PASSED] no-yes-or-yes-yes [06:28:38] [PASSED] yes-yes-or-no-yes [06:28:38] [PASSED] yes-yes-or-yes-yes [06:28:38] [PASSED] no-no-or-yes-or-no [06:28:38] [PASSED] or [06:28:38] [PASSED] or-yes [06:28:38] [PASSED] or-no [06:28:38] [PASSED] yes-or [06:28:38] [PASSED] no-or [06:28:38] [PASSED] no-or-or-yes [06:28:38] [PASSED] yes-or-or-no [06:28:38] [PASSED] no-or-or-no [06:28:38] [PASSED] missing-context-engine-class [06:28:38] [PASSED] missing-context-engine-class-or-yes [06:28:38] [PASSED] missing-context-engine-class-or-or-yes [06:28:38] =============== [PASSED] xe_rtp_rules_tests ================ [06:28:38] =============== xe_rtp_process_to_sr_tests ================ [06:28:38] [PASSED] coalesce-same-reg [06:28:38] [PASSED] coalesce-same-reg-literal-and-func [06:28:38] [PASSED] no-match-no-add [06:28:38] [PASSED] two-regs-two-entries [06:28:38] [PASSED] clr-one-set-other [06:28:38] [PASSED] set-field [06:28:38] [PASSED] conflict-duplicate [06:28:38] [PASSED] conflict-not-disjoint [06:28:38] [PASSED] conflict-not-disjoint-literal-and-func [06:28:38] [PASSED] conflict-reg-type [06:28:38] [PASSED] bad-mcr-reg-forced-to-regular [06:28:38] [PASSED] bad-regular-reg-forced-to-mcr [06:28:38] =========== [PASSED] xe_rtp_process_to_sr_tests ============ [06:28:38] ================== xe_rtp_process_tests =================== [06:28:38] [PASSED] active1 [06:28:38] [PASSED] active2 [06:28:38] [PASSED] active-inactive [06:28:38] [PASSED] inactive-active [06:28:38] [PASSED] inactive-active-inactive [06:28:38] [PASSED] inactive-inactive-inactive [06:28:38] ============== [PASSED] xe_rtp_process_tests =============== [06:28:38] ===================== [PASSED] xe_rtp ====================== [06:28:38] ==================== xe_wa (1 subtest) ===================== [06:28:38] ======================== xe_wa_gt ========================= [06:28:38] [PASSED] TIGERLAKE B0 [06:28:38] [PASSED] DG1 A0 [06:28:38] [PASSED] DG1 B0 [06:28:38] [PASSED] ALDERLAKE_S A0 [06:28:38] [PASSED] ALDERLAKE_S B0 [06:28:38] [PASSED] ALDERLAKE_S C0 [06:28:38] [PASSED] ALDERLAKE_S D0 [06:28:38] [PASSED] ALDERLAKE_P A0 [06:28:38] [PASSED] ALDERLAKE_P B0 [06:28:38] [PASSED] ALDERLAKE_P C0 [06:28:38] [PASSED] ALDERLAKE_S RPLS D0 [06:28:38] [PASSED] ALDERLAKE_P RPLU E0 [06:28:38] [PASSED] DG2 G10 C0 [06:28:38] [PASSED] DG2 G11 B1 [06:28:38] [PASSED] DG2 G12 A1 [06:28:38] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0 [06:28:38] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0 [06:28:38] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0 [06:28:38] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0 [06:28:38] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0 [06:28:38] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1 [06:28:38] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0 [06:28:38] ==================== [PASSED] xe_wa_gt ===================== [06:28:38] ====================== [PASSED] xe_wa ====================== [06:28:38] ============================================================ [06:28:38] Testing complete. Ran 824 tests: passed: 796, skipped: 28 [06:28:38] Elapsed time: 36.921s total, 1.801s configuring, 34.403s building, 0.711s running + for kcfg in "${kunitconfigs[@]}" + [[ ! -f /kernel/drivers/gpu/drm/tests/.kunitconfig ]] + /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [06:28:38] Configuring KUnit Kernel ... Regenerating .config ... Populating config with: $ make ARCH=um O=.kunit olddefconfig [06:28:40] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [06:29:05] Starting KUnit Kernel (1/1)... [06:29:05] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [06:29:05] ============= refcount_interrupt (4 subtests) ============== [06:29:05] [PASSED] test_single_irq_change [06:29:05] [PASSED] test_nested_irq_change [06:29:05] [PASSED] test_multiple_irq_change [06:29:05] [PASSED] test_irq_save [06:29:05] =============== [PASSED] refcount_interrupt ================ [06:29:05] ============ drm_test_pick_cmdline (2 subtests) ============ [06:29:05] [PASSED] drm_test_pick_cmdline_res_1920_1080_60 [06:29:05] =============== drm_test_pick_cmdline_named =============== [06:29:05] [PASSED] NTSC [06:29:05] [PASSED] NTSC-J [06:29:05] [PASSED] PAL [06:29:05] [PASSED] PAL-M [06:29:05] =========== [PASSED] drm_test_pick_cmdline_named =========== [06:29:05] ============== [PASSED] drm_test_pick_cmdline ============== [06:29:05] == drm_test_atomic_get_connector_for_encoder (1 subtest) === [06:29:05] [PASSED] drm_test_drm_atomic_get_connector_for_encoder [06:29:05] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ==== [06:29:05] =========== drm_validate_clone_mode (2 subtests) =========== [06:29:05] ============== drm_test_check_in_clone_mode =============== [06:29:05] [PASSED] in_clone_mode [06:29:05] [PASSED] not_in_clone_mode [06:29:05] ========== [PASSED] drm_test_check_in_clone_mode =========== [06:29:05] =============== drm_test_check_valid_clones =============== [06:29:05] [PASSED] not_in_clone_mode [06:29:05] [PASSED] valid_clone [06:29:05] [PASSED] invalid_clone [06:29:05] =========== [PASSED] drm_test_check_valid_clones =========== [06:29:05] ============= [PASSED] drm_validate_clone_mode ============= [06:29:05] ============= drm_validate_modeset (1 subtest) ============= [06:29:05] [PASSED] drm_test_check_connector_changed_modeset [06:29:05] ============== [PASSED] drm_validate_modeset =============== [06:29:05] ====== drm_test_bridge_get_current_state (1 subtest) ======= [06:29:05] [PASSED] drm_test_drm_bridge_get_current_state_atomic [06:29:05] ======== [PASSED] drm_test_bridge_get_current_state ======== [06:29:05] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ====== [06:29:05] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic [06:29:05] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled [06:29:05] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts [06:29:05] ======== [PASSED] drm_test_bridge_helper_reset_crtc ======== [06:29:05] ============== drm_bridge_alloc (2 subtests) =============== [06:29:05] [PASSED] drm_test_drm_bridge_alloc_basic [06:29:05] [PASSED] drm_test_drm_bridge_alloc_get_put [06:29:05] ================ [PASSED] drm_bridge_alloc ================= [06:29:05] ============= drm_bridge_bus_fmt (5 subtests) ============== [06:29:05] [PASSED] drm_test_bridge_rgb_yuv_rgb [06:29:05] [PASSED] drm_test_bridge_must_convert_to_yuv444 [06:29:05] [PASSED] drm_test_bridge_hdmi_auto_rgb [06:29:05] [PASSED] drm_test_bridge_auto_first [06:29:05] [PASSED] drm_test_bridge_rgb_yuv_no_path [06:29:05] =============== [PASSED] drm_bridge_bus_fmt ================ [06:29:05] ============= drm_cmdline_parser (40 subtests) ============= [06:29:05] [PASSED] drm_test_cmdline_force_d_only [06:29:05] [PASSED] drm_test_cmdline_force_D_only_dvi [06:29:05] [PASSED] drm_test_cmdline_force_D_only_hdmi [06:29:05] [PASSED] drm_test_cmdline_force_D_only_not_digital [06:29:05] [PASSED] drm_test_cmdline_force_e_only [06:29:05] [PASSED] drm_test_cmdline_res [06:29:05] [PASSED] drm_test_cmdline_res_vesa [06:29:05] [PASSED] drm_test_cmdline_res_vesa_rblank [06:29:05] [PASSED] drm_test_cmdline_res_rblank [06:29:05] [PASSED] drm_test_cmdline_res_bpp [06:29:05] [PASSED] drm_test_cmdline_res_refresh [06:29:05] [PASSED] drm_test_cmdline_res_bpp_refresh [06:29:05] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced [06:29:05] [PASSED] drm_test_cmdline_res_bpp_refresh_margins [06:29:05] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off [06:29:05] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on [06:29:05] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog [06:29:05] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital [06:29:05] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on [06:29:05] [PASSED] drm_test_cmdline_res_margins_force_on [06:29:05] [PASSED] drm_test_cmdline_res_vesa_margins [06:29:05] [PASSED] drm_test_cmdline_name [06:29:05] [PASSED] drm_test_cmdline_name_bpp [06:29:05] [PASSED] drm_test_cmdline_name_option [06:29:05] [PASSED] drm_test_cmdline_name_bpp_option [06:29:05] [PASSED] drm_test_cmdline_rotate_0 [06:29:05] [PASSED] drm_test_cmdline_rotate_90 [06:29:05] [PASSED] drm_test_cmdline_rotate_180 [06:29:05] [PASSED] drm_test_cmdline_rotate_270 [06:29:05] [PASSED] drm_test_cmdline_hmirror [06:29:05] [PASSED] drm_test_cmdline_vmirror [06:29:05] [PASSED] drm_test_cmdline_margin_options [06:29:05] [PASSED] drm_test_cmdline_multiple_options [06:29:05] [PASSED] drm_test_cmdline_bpp_extra_and_option [06:29:05] [PASSED] drm_test_cmdline_extra_and_option [06:29:05] [PASSED] drm_test_cmdline_freestanding_options [06:29:05] [PASSED] drm_test_cmdline_freestanding_force_e_and_options [06:29:05] [PASSED] drm_test_cmdline_panel_orientation [06:29:05] ================ drm_test_cmdline_invalid ================= [06:29:05] [PASSED] margin_only [06:29:05] [PASSED] interlace_only [06:29:05] [PASSED] res_missing_x [06:29:05] [PASSED] res_missing_y [06:29:05] [PASSED] res_bad_y [06:29:05] [PASSED] res_missing_y_bpp [06:29:05] [PASSED] res_bad_bpp [06:29:05] [PASSED] res_bad_refresh [06:29:05] [PASSED] res_bpp_refresh_force_on_off [06:29:05] [PASSED] res_invalid_mode [06:29:05] [PASSED] res_bpp_wrong_place_mode [06:29:05] [PASSED] name_bpp_refresh [06:29:05] [PASSED] name_refresh [06:29:05] [PASSED] name_refresh_wrong_mode [06:29:05] [PASSED] name_refresh_invalid_mode [06:29:05] [PASSED] rotate_multiple [06:29:05] [PASSED] rotate_invalid_val [06:29:05] [PASSED] rotate_truncated [06:29:05] [PASSED] invalid_option [06:29:05] [PASSED] invalid_tv_option [06:29:05] [PASSED] truncated_tv_option [06:29:05] ============ [PASSED] drm_test_cmdline_invalid ============= [06:29:05] =============== drm_test_cmdline_tv_options =============== [06:29:05] [PASSED] NTSC [06:29:05] [PASSED] NTSC_443 [06:29:05] [PASSED] NTSC_J [06:29:05] [PASSED] PAL [06:29:05] [PASSED] PAL_M [06:29:05] [PASSED] PAL_N [06:29:05] [PASSED] SECAM [06:29:05] [PASSED] MONO_525 [06:29:05] [PASSED] MONO_625 [06:29:05] =========== [PASSED] drm_test_cmdline_tv_options =========== [06:29:05] =============== [PASSED] drm_cmdline_parser ================ [06:29:05] ========== drmm_connector_hdmi_init (20 subtests) ========== [06:29:05] [PASSED] drm_test_connector_hdmi_init_valid [06:29:05] [PASSED] drm_test_connector_hdmi_init_bpc_8 [06:29:05] [PASSED] drm_test_connector_hdmi_init_bpc_10 [06:29:05] [PASSED] drm_test_connector_hdmi_init_bpc_12 [06:29:05] [PASSED] drm_test_connector_hdmi_init_bpc_invalid [06:29:05] [PASSED] drm_test_connector_hdmi_init_bpc_null [06:29:05] [PASSED] drm_test_connector_hdmi_init_formats_empty [06:29:05] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb [06:29:05] === drm_test_connector_hdmi_init_formats_yuv420_allowed === [06:29:05] [PASSED] supported_formats=0x9 yuv420_allowed=1 [06:29:05] [PASSED] supported_formats=0x9 yuv420_allowed=0 [06:29:05] [PASSED] supported_formats=0x5 yuv420_allowed=1 [06:29:05] [PASSED] supported_formats=0x5 yuv420_allowed=0 [06:29:05] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed === [06:29:05] [PASSED] drm_test_connector_hdmi_init_null_ddc [06:29:05] [PASSED] drm_test_connector_hdmi_init_null_product [06:29:05] [PASSED] drm_test_connector_hdmi_init_null_vendor [06:29:05] [PASSED] drm_test_connector_hdmi_init_product_length_exact [06:29:05] [PASSED] drm_test_connector_hdmi_init_product_length_too_long [06:29:05] [PASSED] drm_test_connector_hdmi_init_product_valid [06:29:05] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact [06:29:05] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long [06:29:05] [PASSED] drm_test_connector_hdmi_init_vendor_valid [06:29:05] ========= drm_test_connector_hdmi_init_type_valid ========= [06:29:05] [PASSED] HDMI-A [06:29:05] [PASSED] HDMI-B [06:29:05] ===== [PASSED] drm_test_connector_hdmi_init_type_valid ===== [06:29:05] ======== drm_test_connector_hdmi_init_type_invalid ======== [06:29:05] [PASSED] Unknown [06:29:05] [PASSED] VGA [06:29:05] [PASSED] DVI-I [06:29:05] [PASSED] DVI-D [06:29:05] [PASSED] DVI-A [06:29:05] [PASSED] Composite [06:29:05] [PASSED] SVIDEO [06:29:05] [PASSED] LVDS [06:29:05] [PASSED] Component [06:29:05] [PASSED] DIN [06:29:05] [PASSED] DP [06:29:05] [PASSED] TV [06:29:05] [PASSED] eDP [06:29:05] [PASSED] Virtual [06:29:05] [PASSED] DSI [06:29:05] [PASSED] DPI [06:29:05] [PASSED] Writeback [06:29:05] [PASSED] SPI [06:29:05] [PASSED] USB [06:29:05] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ==== [06:29:05] ============ [PASSED] drmm_connector_hdmi_init ============= [06:29:05] ============= drmm_connector_init (3 subtests) ============= [06:29:05] [PASSED] drm_test_drmm_connector_init [06:29:05] [PASSED] drm_test_drmm_connector_init_null_ddc [06:29:05] ========= drm_test_drmm_connector_init_type_valid ========= [06:29:05] [PASSED] Unknown [06:29:05] [PASSED] VGA [06:29:05] [PASSED] DVI-I [06:29:05] [PASSED] DVI-D [06:29:05] [PASSED] DVI-A [06:29:05] [PASSED] Composite [06:29:05] [PASSED] SVIDEO [06:29:05] [PASSED] LVDS [06:29:05] [PASSED] Component [06:29:05] [PASSED] DIN [06:29:05] [PASSED] DP [06:29:05] [PASSED] HDMI-A [06:29:05] [PASSED] HDMI-B [06:29:05] [PASSED] TV [06:29:05] [PASSED] eDP [06:29:05] [PASSED] Virtual [06:29:05] [PASSED] DSI [06:29:05] [PASSED] DPI [06:29:05] [PASSED] Writeback [06:29:05] [PASSED] SPI [06:29:05] [PASSED] USB [06:29:05] ===== [PASSED] drm_test_drmm_connector_init_type_valid ===== [06:29:05] =============== [PASSED] drmm_connector_init =============== [06:29:05] ========= drm_connector_dynamic_init (6 subtests) ========== [06:29:05] [PASSED] drm_test_drm_connector_dynamic_init [06:29:05] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc [06:29:05] [PASSED] drm_test_drm_connector_dynamic_init_not_added [06:29:05] [PASSED] drm_test_drm_connector_dynamic_init_properties [06:29:05] ===== drm_test_drm_connector_dynamic_init_type_valid ====== [06:29:05] [PASSED] Unknown [06:29:05] [PASSED] VGA [06:29:05] [PASSED] DVI-I [06:29:05] [PASSED] DVI-D [06:29:05] [PASSED] DVI-A [06:29:05] [PASSED] Composite [06:29:05] [PASSED] SVIDEO [06:29:05] [PASSED] LVDS [06:29:05] [PASSED] Component [06:29:05] [PASSED] DIN [06:29:05] [PASSED] DP [06:29:05] [PASSED] HDMI-A [06:29:05] [PASSED] HDMI-B [06:29:05] [PASSED] TV [06:29:05] [PASSED] eDP [06:29:05] [PASSED] Virtual [06:29:05] [PASSED] DSI [06:29:05] [PASSED] DPI [06:29:05] [PASSED] Writeback [06:29:05] [PASSED] SPI [06:29:05] [PASSED] USB [06:29:05] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid == [06:29:05] ======== drm_test_drm_connector_dynamic_init_name ========= [06:29:05] [PASSED] Unknown [06:29:05] [PASSED] VGA [06:29:05] [PASSED] DVI-I [06:29:05] [PASSED] DVI-D [06:29:05] [PASSED] DVI-A [06:29:05] [PASSED] Composite [06:29:05] [PASSED] SVIDEO [06:29:05] [PASSED] LVDS [06:29:05] [PASSED] Component [06:29:05] [PASSED] DIN [06:29:05] [PASSED] DP [06:29:05] [PASSED] HDMI-A [06:29:05] [PASSED] HDMI-B [06:29:05] [PASSED] TV [06:29:05] [PASSED] eDP [06:29:05] [PASSED] Virtual [06:29:05] [PASSED] DSI [06:29:05] [PASSED] DPI [06:29:05] [PASSED] Writeback [06:29:05] [PASSED] SPI [06:29:05] [PASSED] USB [06:29:05] ==== [PASSED] drm_test_drm_connector_dynamic_init_name ===== [06:29:05] =========== [PASSED] drm_connector_dynamic_init ============ [06:29:05] ==== drm_connector_dynamic_register_early (4 subtests) ===== [06:29:05] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list [06:29:05] [PASSED] drm_test_drm_connector_dynamic_register_early_defer [06:29:05] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init [06:29:05] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object [06:29:05] ====== [PASSED] drm_connector_dynamic_register_early ======= [06:29:05] ======= drm_connector_dynamic_register (7 subtests) ======== [06:29:05] [PASSED] drm_test_drm_connector_dynamic_register_on_list [06:29:05] [PASSED] drm_test_drm_connector_dynamic_register_no_defer [06:29:05] [PASSED] drm_test_drm_connector_dynamic_register_no_init [06:29:05] [PASSED] drm_test_drm_connector_dynamic_register_mode_object [06:29:05] [PASSED] drm_test_drm_connector_dynamic_register_sysfs [06:29:05] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name [06:29:05] [PASSED] drm_test_drm_connector_dynamic_register_debugfs [06:29:05] ========= [PASSED] drm_connector_dynamic_register ========== [06:29:05] = drm_connector_attach_broadcast_rgb_property (2 subtests) = [06:29:05] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property [06:29:05] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector [06:29:05] === [PASSED] drm_connector_attach_broadcast_rgb_property === [06:29:05] ========== drm_get_tv_mode_from_name (2 subtests) ========== [06:29:05] ========== drm_test_get_tv_mode_from_name_valid =========== [06:29:05] [PASSED] NTSC [06:29:05] [PASSED] NTSC-443 [06:29:05] [PASSED] NTSC-J [06:29:05] [PASSED] PAL [06:29:05] [PASSED] PAL-M [06:29:05] [PASSED] PAL-N [06:29:05] [PASSED] SECAM [06:29:05] [PASSED] Mono [06:29:05] ====== [PASSED] drm_test_get_tv_mode_from_name_valid ======= [06:29:05] [PASSED] drm_test_get_tv_mode_from_name_truncated [06:29:05] ============ [PASSED] drm_get_tv_mode_from_name ============ [06:29:05] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) = [06:29:05] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb [06:29:05] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc [06:29:05] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1 [06:29:05] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc [06:29:05] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1 [06:29:05] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double [06:29:05] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid = [06:29:05] [PASSED] VIC 96 [06:29:05] [PASSED] VIC 97 [06:29:05] [PASSED] VIC 101 [06:29:05] [PASSED] VIC 102 [06:29:05] [PASSED] VIC 106 [06:29:05] [PASSED] VIC 107 [06:29:05] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid === [06:29:05] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc [06:29:05] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc [06:29:05] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc [06:29:05] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc [06:29:05] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc [06:29:05] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ==== [06:29:05] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) == [06:29:05] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ==== [06:29:05] [PASSED] Automatic [06:29:05] [PASSED] Full [06:29:05] [PASSED] Limited 16:235 [06:29:05] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name === [06:29:05] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid [06:29:05] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ==== [06:29:05] == drm_hdmi_connector_get_output_format_name (2 subtests) == [06:29:05] === drm_test_drm_hdmi_connector_get_output_format_name ==== [06:29:05] [PASSED] RGB [06:29:05] [PASSED] YUV 4:2:0 [06:29:05] [PASSED] YUV 4:2:2 [06:29:05] [PASSED] YUV 4:4:4 [06:29:05] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name === [06:29:05] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid [06:29:05] ==== [PASSED] drm_hdmi_connector_get_output_format_name ==== [06:29:05] ============= drm_damage_helper (21 subtests) ============== [06:29:05] [PASSED] drm_test_damage_iter_no_damage [06:29:05] [PASSED] drm_test_damage_iter_no_damage_fractional_src [06:29:05] [PASSED] drm_test_damage_iter_no_damage_src_moved [06:29:05] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved [06:29:05] [PASSED] drm_test_damage_iter_no_damage_not_visible [06:29:05] [PASSED] drm_test_damage_iter_no_damage_no_crtc [06:29:05] [PASSED] drm_test_damage_iter_no_damage_no_fb [06:29:05] [PASSED] drm_test_damage_iter_simple_damage [06:29:05] [PASSED] drm_test_damage_iter_single_damage [06:29:05] [PASSED] drm_test_damage_iter_single_damage_intersect_src [06:29:05] [PASSED] drm_test_damage_iter_single_damage_outside_src [06:29:05] [PASSED] drm_test_damage_iter_single_damage_fractional_src [06:29:05] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src [06:29:05] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src [06:29:05] [PASSED] drm_test_damage_iter_single_damage_src_moved [06:29:05] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved [06:29:05] [PASSED] drm_test_damage_iter_damage [06:29:05] [PASSED] drm_test_damage_iter_damage_one_intersect [06:29:05] [PASSED] drm_test_damage_iter_damage_one_outside [06:29:05] [PASSED] drm_test_damage_iter_damage_src_moved [06:29:05] [PASSED] drm_test_damage_iter_damage_not_visible [06:29:05] ================ [PASSED] drm_damage_helper ================ [06:29:05] ============== drm_dp_mst_helper (3 subtests) ============== [06:29:05] ============== drm_test_dp_mst_calc_pbn_mode ============== [06:29:05] [PASSED] Clock 154000 BPP 30 DSC disabled [06:29:05] [PASSED] Clock 234000 BPP 30 DSC disabled [06:29:05] [PASSED] Clock 297000 BPP 24 DSC disabled [06:29:05] [PASSED] Clock 332880 BPP 24 DSC enabled [06:29:05] [PASSED] Clock 324540 BPP 24 DSC enabled [06:29:05] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ========== [06:29:05] ============== drm_test_dp_mst_calc_pbn_div =============== [06:29:05] [PASSED] Link rate 2000000 lane count 4 [06:29:05] [PASSED] Link rate 2000000 lane count 2 [06:29:05] [PASSED] Link rate 2000000 lane count 1 [06:29:05] [PASSED] Link rate 1350000 lane count 4 [06:29:05] [PASSED] Link rate 1350000 lane count 2 [06:29:05] [PASSED] Link rate 1350000 lane count 1 [06:29:05] [PASSED] Link rate 1000000 lane count 4 [06:29:05] [PASSED] Link rate 1000000 lane count 2 [06:29:05] [PASSED] Link rate 1000000 lane count 1 [06:29:05] [PASSED] Link rate 810000 lane count 4 [06:29:05] [PASSED] Link rate 810000 lane count 2 [06:29:05] [PASSED] Link rate 810000 lane count 1 [06:29:05] [PASSED] Link rate 540000 lane count 4 [06:29:05] [PASSED] Link rate 540000 lane count 2 [06:29:05] [PASSED] Link rate 540000 lane count 1 [06:29:05] [PASSED] Link rate 270000 lane count 4 [06:29:05] [PASSED] Link rate 270000 lane count 2 [06:29:05] [PASSED] Link rate 270000 lane count 1 [06:29:05] [PASSED] Link rate 162000 lane count 4 [06:29:05] [PASSED] Link rate 162000 lane count 2 [06:29:05] [PASSED] Link rate 162000 lane count 1 [06:29:05] ========== [PASSED] drm_test_dp_mst_calc_pbn_div =========== [06:29:05] ========= drm_test_dp_mst_sideband_msg_req_decode ========= [06:29:05] [PASSED] DP_ENUM_PATH_RESOURCES with port number [06:29:05] [PASSED] DP_POWER_UP_PHY with port number [06:29:05] [PASSED] DP_POWER_DOWN_PHY with port number [06:29:05] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks [06:29:05] [PASSED] DP_ALLOCATE_PAYLOAD with port number [06:29:05] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI [06:29:05] [PASSED] DP_ALLOCATE_PAYLOAD with PBN [06:29:05] [PASSED] DP_QUERY_PAYLOAD with port number [06:29:05] [PASSED] DP_QUERY_PAYLOAD with VCPI [06:29:05] [PASSED] DP_REMOTE_DPCD_READ with port number [06:29:05] [PASSED] DP_REMOTE_DPCD_READ with DPCD address [06:29:05] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes [06:29:05] [PASSED] DP_REMOTE_DPCD_WRITE with port number [06:29:05] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address [06:29:05] [PASSED] DP_REMOTE_DPCD_WRITE with data array [06:29:05] [PASSED] DP_REMOTE_I2C_READ with port number [06:29:05] [PASSED] DP_REMOTE_I2C_READ with I2C device ID [06:29:05] [PASSED] DP_REMOTE_I2C_READ with transactions array [06:29:05] [PASSED] DP_REMOTE_I2C_WRITE with port number [06:29:05] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID [06:29:05] [PASSED] DP_REMOTE_I2C_WRITE with data array [06:29:05] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID [06:29:05] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID [06:29:05] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event [06:29:05] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event [06:29:05] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior [06:29:05] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior [06:29:05] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode ===== [06:29:05] ================ [PASSED] drm_dp_mst_helper ================ [06:29:05] ================== drm_exec (7 subtests) =================== [06:29:05] [PASSED] sanitycheck [06:29:05] [PASSED] test_lock [06:29:05] [PASSED] test_lock_unlock [06:29:05] [PASSED] test_duplicates [06:29:05] [PASSED] test_prepare [06:29:05] [PASSED] test_prepare_array [06:29:05] [PASSED] test_multiple_loops [06:29:05] ==================== [PASSED] drm_exec ===================== [06:29:05] =========== drm_format_helper_test (17 subtests) =========== [06:29:05] ============== drm_test_fb_xrgb8888_to_gray8 ============== [06:29:05] [PASSED] single_pixel_source_buffer [06:29:05] [PASSED] single_pixel_clip_rectangle [06:29:05] [PASSED] well_known_colors [06:29:05] [PASSED] destination_pitch [06:29:05] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ========== [06:29:05] ============= drm_test_fb_xrgb8888_to_rgb332 ============== [06:29:05] [PASSED] single_pixel_source_buffer [06:29:05] [PASSED] single_pixel_clip_rectangle [06:29:05] [PASSED] well_known_colors [06:29:05] [PASSED] destination_pitch [06:29:05] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ========== [06:29:05] ============= drm_test_fb_xrgb8888_to_rgb565 ============== [06:29:05] [PASSED] single_pixel_source_buffer [06:29:05] [PASSED] single_pixel_clip_rectangle [06:29:05] [PASSED] well_known_colors [06:29:05] [PASSED] destination_pitch [06:29:05] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ========== [06:29:05] ============ drm_test_fb_xrgb8888_to_xrgb1555 ============= [06:29:05] [PASSED] single_pixel_source_buffer [06:29:05] [PASSED] single_pixel_clip_rectangle [06:29:05] [PASSED] well_known_colors [06:29:05] [PASSED] destination_pitch [06:29:05] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 ========= [06:29:05] ============ drm_test_fb_xrgb8888_to_argb1555 ============= [06:29:05] [PASSED] single_pixel_source_buffer [06:29:05] [PASSED] single_pixel_clip_rectangle [06:29:05] [PASSED] well_known_colors [06:29:05] [PASSED] destination_pitch [06:29:05] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 ========= [06:29:05] ============ drm_test_fb_xrgb8888_to_rgba5551 ============= [06:29:05] [PASSED] single_pixel_source_buffer [06:29:05] [PASSED] single_pixel_clip_rectangle [06:29:05] [PASSED] well_known_colors [06:29:05] [PASSED] destination_pitch [06:29:05] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 ========= [06:29:05] ============= drm_test_fb_xrgb8888_to_rgb888 ============== [06:29:05] [PASSED] single_pixel_source_buffer [06:29:05] [PASSED] single_pixel_clip_rectangle [06:29:05] [PASSED] well_known_colors [06:29:05] [PASSED] destination_pitch [06:29:05] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ========== [06:29:05] ============= drm_test_fb_xrgb8888_to_bgr888 ============== [06:29:05] [PASSED] single_pixel_source_buffer [06:29:05] [PASSED] single_pixel_clip_rectangle [06:29:05] [PASSED] well_known_colors [06:29:05] [PASSED] destination_pitch [06:29:05] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ========== [06:29:05] ============ drm_test_fb_xrgb8888_to_argb8888 ============= [06:29:05] [PASSED] single_pixel_source_buffer [06:29:05] [PASSED] single_pixel_clip_rectangle [06:29:05] [PASSED] well_known_colors [06:29:05] [PASSED] destination_pitch [06:29:05] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 ========= [06:29:05] =========== drm_test_fb_xrgb8888_to_xrgb2101010 =========== [06:29:05] [PASSED] single_pixel_source_buffer [06:29:05] [PASSED] single_pixel_clip_rectangle [06:29:05] [PASSED] well_known_colors [06:29:05] [PASSED] destination_pitch [06:29:05] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 ======= [06:29:05] =========== drm_test_fb_xrgb8888_to_argb2101010 =========== [06:29:05] [PASSED] single_pixel_source_buffer [06:29:05] [PASSED] single_pixel_clip_rectangle [06:29:05] [PASSED] well_known_colors [06:29:05] [PASSED] destination_pitch [06:29:05] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 ======= [06:29:05] ============== drm_test_fb_xrgb8888_to_mono =============== [06:29:05] [PASSED] single_pixel_source_buffer [06:29:05] [PASSED] single_pixel_clip_rectangle [06:29:05] [PASSED] well_known_colors [06:29:05] [PASSED] destination_pitch [06:29:05] ========== [PASSED] drm_test_fb_xrgb8888_to_mono =========== [06:29:05] ==================== drm_test_fb_swab ===================== [06:29:05] [PASSED] single_pixel_source_buffer [06:29:05] [PASSED] single_pixel_clip_rectangle [06:29:05] [PASSED] well_known_colors [06:29:05] [PASSED] destination_pitch [06:29:05] ================ [PASSED] drm_test_fb_swab ================= [06:29:05] ============ drm_test_fb_xrgb8888_to_xbgr8888 ============= [06:29:05] [PASSED] single_pixel_source_buffer [06:29:05] [PASSED] single_pixel_clip_rectangle [06:29:05] [PASSED] well_known_colors [06:29:05] [PASSED] destination_pitch [06:29:05] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 ========= [06:29:05] ============ drm_test_fb_xrgb8888_to_abgr8888 ============= [06:29:05] [PASSED] single_pixel_source_buffer [06:29:05] [PASSED] single_pixel_clip_rectangle [06:29:05] [PASSED] well_known_colors [06:29:05] [PASSED] destination_pitch [06:29:05] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 ========= [06:29:05] ================= drm_test_fb_clip_offset ================= [06:29:05] [PASSED] pass through [06:29:05] [PASSED] horizontal offset [06:29:05] [PASSED] vertical offset [06:29:05] [PASSED] horizontal and vertical offset [06:29:05] [PASSED] horizontal offset (custom pitch) [06:29:05] [PASSED] vertical offset (custom pitch) [06:29:05] [PASSED] horizontal and vertical offset (custom pitch) [06:29:05] ============= [PASSED] drm_test_fb_clip_offset ============= [06:29:05] =================== drm_test_fb_memcpy ==================== [06:29:05] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258) [06:29:05] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258) [06:29:05] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559) [06:29:05] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258) [06:29:05] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258) [06:29:05] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559) [06:29:05] [PASSED] well_known_colors: XB24 little-endian (0x34324258) [06:29:05] [PASSED] well_known_colors: XRA8 little-endian (0x38415258) [06:29:05] [PASSED] well_known_colors: YU24 little-endian (0x34325559) [06:29:05] [PASSED] destination_pitch: XB24 little-endian (0x34324258) [06:29:05] [PASSED] destination_pitch: XRA8 little-endian (0x38415258) [06:29:05] [PASSED] destination_pitch: YU24 little-endian (0x34325559) [06:29:05] =============== [PASSED] drm_test_fb_memcpy ================ [06:29:05] ============= [PASSED] drm_format_helper_test ============== [06:29:05] ================= drm_format (18 subtests) ================= [06:29:05] [PASSED] drm_test_format_block_width_invalid [06:29:05] [PASSED] drm_test_format_block_width_one_plane [06:29:05] [PASSED] drm_test_format_block_width_two_plane [06:29:05] [PASSED] drm_test_format_block_width_three_plane [06:29:05] [PASSED] drm_test_format_block_width_tiled [06:29:05] [PASSED] drm_test_format_block_height_invalid [06:29:05] [PASSED] drm_test_format_block_height_one_plane [06:29:05] [PASSED] drm_test_format_block_height_two_plane [06:29:05] [PASSED] drm_test_format_block_height_three_plane [06:29:05] [PASSED] drm_test_format_block_height_tiled [06:29:05] [PASSED] drm_test_format_min_pitch_invalid [06:29:05] [PASSED] drm_test_format_min_pitch_one_plane_8bpp [06:29:05] [PASSED] drm_test_format_min_pitch_one_plane_16bpp [06:29:05] [PASSED] drm_test_format_min_pitch_one_plane_24bpp [06:29:05] [PASSED] drm_test_format_min_pitch_one_plane_32bpp [06:29:05] [PASSED] drm_test_format_min_pitch_two_plane [06:29:05] [PASSED] drm_test_format_min_pitch_three_plane_8bpp [06:29:05] [PASSED] drm_test_format_min_pitch_tiled [06:29:05] =================== [PASSED] drm_format ==================== [06:29:05] ============== drm_framebuffer (10 subtests) =============== [06:29:05] ========== drm_test_framebuffer_check_src_coords ========== [06:29:05] [PASSED] Success: source fits into fb [06:29:05] [PASSED] Fail: overflowing fb with x-axis coordinate [06:29:05] [PASSED] Fail: overflowing fb with y-axis coordinate [06:29:05] [PASSED] Fail: overflowing fb with source width [06:29:05] [PASSED] Fail: overflowing fb with source height [06:29:05] ====== [PASSED] drm_test_framebuffer_check_src_coords ====== [06:29:05] [PASSED] drm_test_framebuffer_cleanup [06:29:05] =============== drm_test_framebuffer_create =============== [06:29:05] [PASSED] ABGR8888 normal sizes [06:29:05] [PASSED] ABGR8888 max sizes [06:29:05] [PASSED] ABGR8888 pitch greater than min required [06:29:05] [PASSED] ABGR8888 pitch less than min required [06:29:05] [PASSED] ABGR8888 Invalid width [06:29:05] [PASSED] ABGR8888 Invalid buffer handle [06:29:05] [PASSED] No pixel format [06:29:05] [PASSED] ABGR8888 Width 0 [06:29:05] [PASSED] ABGR8888 Height 0 [06:29:05] [PASSED] ABGR8888 Out of bound height * pitch combination [06:29:05] [PASSED] ABGR8888 Large buffer offset [06:29:05] [PASSED] ABGR8888 Buffer offset for inexistent plane [06:29:05] [PASSED] ABGR8888 Invalid flag [06:29:05] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers [06:29:05] [PASSED] ABGR8888 Valid buffer modifier [06:29:05] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE) [06:29:05] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS [06:29:05] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS [06:29:05] [PASSED] NV12 Normal sizes [06:29:05] [PASSED] NV12 Max sizes [06:29:05] [PASSED] NV12 Invalid pitch [06:29:05] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag [06:29:05] [PASSED] NV12 different modifier per-plane [06:29:05] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE [06:29:05] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS [06:29:05] [PASSED] NV12 Modifier for inexistent plane [06:29:05] [PASSED] NV12 Handle for inexistent plane [06:29:05] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS [06:29:05] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier [06:29:05] [PASSED] YVU420 Normal sizes [06:29:05] [PASSED] YVU420 Max sizes [06:29:05] [PASSED] YVU420 Invalid pitch [06:29:05] [PASSED] YVU420 Different pitches [06:29:05] [PASSED] YVU420 Different buffer offsets/pitches [06:29:05] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS [06:29:05] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS [06:29:05] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS [06:29:05] [PASSED] YVU420 Valid modifier [06:29:05] [PASSED] YVU420 Different modifiers per plane [06:29:05] [PASSED] YVU420 Modifier for inexistent plane [06:29:05] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR) [06:29:05] [PASSED] X0L2 Normal sizes [06:29:05] [PASSED] X0L2 Max sizes [06:29:05] [PASSED] X0L2 Invalid pitch [06:29:05] [PASSED] X0L2 Pitch greater than minimum required [06:29:05] [PASSED] X0L2 Handle for inexistent plane [06:29:05] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set [06:29:05] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set [06:29:05] [PASSED] X0L2 Valid modifier [06:29:05] [PASSED] X0L2 Modifier for inexistent plane [06:29:05] =========== [PASSED] drm_test_framebuffer_create =========== [06:29:05] [PASSED] drm_test_framebuffer_free [06:29:05] [PASSED] drm_test_framebuffer_init [06:29:05] [PASSED] drm_test_framebuffer_init_bad_format [06:29:05] [PASSED] drm_test_framebuffer_init_dev_mismatch [06:29:05] [PASSED] drm_test_framebuffer_lookup [06:29:05] [PASSED] drm_test_framebuffer_lookup_inexistent [06:29:05] [PASSED] drm_test_framebuffer_modifiers_not_supported [06:29:05] ================= [PASSED] drm_framebuffer ================= [06:29:05] ================ drm_gem_shmem (8 subtests) ================ [06:29:05] [PASSED] drm_gem_shmem_test_obj_create [06:29:05] [PASSED] drm_gem_shmem_test_obj_create_private [06:29:05] [PASSED] drm_gem_shmem_test_pin_pages [06:29:05] [PASSED] drm_gem_shmem_test_vmap [06:29:05] [PASSED] drm_gem_shmem_test_get_sg_table [06:29:05] [PASSED] drm_gem_shmem_test_get_pages_sgt [06:29:05] [PASSED] drm_gem_shmem_test_madvise [06:29:05] [PASSED] drm_gem_shmem_test_purge [06:29:05] ================== [PASSED] drm_gem_shmem ================== [06:29:05] === drm_atomic_helper_connector_hdmi_check (29 subtests) === [06:29:05] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode [06:29:05] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1 [06:29:05] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode [06:29:05] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1 [06:29:05] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode [06:29:05] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1 [06:29:05] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 ======= [06:29:05] [PASSED] Automatic [06:29:05] [PASSED] Full [06:29:05] [PASSED] Limited 16:235 [06:29:05] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 === [06:29:05] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed [06:29:05] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed [06:29:05] [PASSED] drm_test_check_disable_connector [06:29:05] [PASSED] drm_test_check_hdmi_funcs_reject_rate [06:29:05] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb [06:29:05] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420 [06:29:05] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422 [06:29:05] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420 [06:29:05] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420 [06:29:05] [PASSED] drm_test_check_output_bpc_crtc_mode_changed [06:29:05] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed [06:29:05] [PASSED] drm_test_check_output_bpc_dvi [06:29:05] [PASSED] drm_test_check_output_bpc_format_vic_1 [06:29:05] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only [06:29:05] [PASSED] drm_test_check_output_bpc_format_display_rgb_only [06:29:05] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only [06:29:05] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only [06:29:05] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc [06:29:05] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc [06:29:05] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc [06:29:05] ============ drm_test_check_hdmi_color_format ============= [06:29:05] [PASSED] AUTO -> RGB [06:29:05] [PASSED] YCBCR422 -> YUV422 [06:29:05] [PASSED] YCBCR420 -> YUV420 [06:29:05] [PASSED] YCBCR444 -> YUV444 [06:29:05] [PASSED] RGB -> RGB [06:29:05] ======== [PASSED] drm_test_check_hdmi_color_format ========= [06:29:05] ======== drm_test_check_hdmi_color_format_420_only ======== [06:29:05] [PASSED] RGB should fail [06:29:05] [PASSED] YUV444 should fail [06:29:05] [PASSED] YUV422 should fail [06:29:05] [PASSED] YUV420 should work [06:29:05] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ==== [06:29:05] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ====== [06:29:05] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ==== [06:29:05] [PASSED] drm_test_check_broadcast_rgb_value [06:29:05] [PASSED] drm_test_check_bpc_8_value [06:29:05] [PASSED] drm_test_check_bpc_10_value [06:29:05] [PASSED] drm_test_check_bpc_12_value [06:29:05] [PASSED] drm_test_check_format_value [06:29:05] [PASSED] drm_test_check_tmds_char_value [06:29:05] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ====== [06:29:05] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) = [06:29:05] [PASSED] drm_test_check_mode_valid [06:29:05] [PASSED] drm_test_check_mode_valid_reject [06:29:05] [PASSED] drm_test_check_mode_valid_reject_rate [06:29:05] [PASSED] drm_test_check_mode_valid_reject_max_clock [06:29:05] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock [06:29:05] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector [06:29:05] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb [06:29:05] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid === [06:29:05] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) = [06:29:05] [PASSED] drm_test_check_infoframes [06:29:05] [PASSED] drm_test_check_reject_avi_infoframe [06:29:05] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8 [06:29:05] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10 [06:29:05] [PASSED] drm_test_check_reject_audio_infoframe [06:29:05] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes === [06:29:05] ================= drm_managed (2 subtests) ================= [06:29:05] [PASSED] drm_test_managed_release_action [06:29:05] [PASSED] drm_test_managed_run_action [06:29:05] =================== [PASSED] drm_managed =================== [06:29:05] =================== drm_mm (6 subtests) ==================== [06:29:05] [PASSED] drm_test_mm_init [06:29:05] [PASSED] drm_test_mm_debug [06:29:05] [PASSED] drm_test_mm_align32 [06:29:05] [PASSED] drm_test_mm_align64 [06:29:05] [PASSED] drm_test_mm_lowest [06:29:05] [PASSED] drm_test_mm_highest [06:29:05] ===================== [PASSED] drm_mm ====================== [06:29:05] ============= drm_modes_analog_tv (5 subtests) ============= [06:29:05] [PASSED] drm_test_modes_analog_tv_mono_576i [06:29:05] [PASSED] drm_test_modes_analog_tv_ntsc_480i [06:29:05] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined [06:29:05] [PASSED] drm_test_modes_analog_tv_pal_576i [06:29:05] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined [06:29:05] =============== [PASSED] drm_modes_analog_tv =============== [06:29:05] ============== drm_panic_helper (3 subtests) =============== [06:29:05] ============= drm_test_panic_screen_user_map ============== [06:29:05] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752) [06:29:05] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752) [06:29:05] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752) [06:29:05] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752) [06:29:05] ========= [PASSED] drm_test_panic_screen_user_map ========== [06:29:05] ============= drm_test_panic_screen_user_page ============= [06:29:05] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752) [06:29:05] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752) [06:29:05] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752) [06:29:05] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752) [06:29:05] ========= [PASSED] drm_test_panic_screen_user_page ========= [06:29:05] ========== drm_test_panic_screen_user_set_pixel =========== [06:29:05] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752) [06:29:05] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752) [06:29:05] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258) [06:29:05] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752) [06:29:05] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752) [06:29:05] ====== [PASSED] drm_test_panic_screen_user_set_pixel ======= [06:29:05] ================ [PASSED] drm_panic_helper ================= [06:29:05] ============== drm_plane_helper (2 subtests) =============== [06:29:05] =============== drm_test_check_plane_state ================ [06:29:05] [PASSED] clipping_simple [06:29:05] [PASSED] clipping_rotate_reflect [06:29:05] [PASSED] positioning_simple [06:29:05] [PASSED] upscaling [06:29:05] [PASSED] downscaling [06:29:05] [PASSED] rounding1 [06:29:05] [PASSED] rounding2 [06:29:05] [PASSED] rounding3 [06:29:05] [PASSED] rounding4 [06:29:05] =========== [PASSED] drm_test_check_plane_state ============ [06:29:05] =========== drm_test_check_invalid_plane_state ============ [06:29:05] [PASSED] positioning_invalid [06:29:05] [PASSED] upscaling_invalid [06:29:05] [PASSED] downscaling_invalid [06:29:05] ======= [PASSED] drm_test_check_invalid_plane_state ======== [06:29:05] ================ [PASSED] drm_plane_helper ================= [06:29:05] ====== drm_connector_helper_tv_get_modes (1 subtest) ======= [06:29:05] ====== drm_test_connector_helper_tv_get_modes_check ======= [06:29:05] [PASSED] None [06:29:05] [PASSED] PAL [06:29:05] [PASSED] NTSC [06:29:05] [PASSED] Both, NTSC Default [06:29:05] [PASSED] Both, PAL Default [06:29:05] [PASSED] Both, NTSC Default, with PAL on command-line [06:29:05] [PASSED] Both, PAL Default, with NTSC on command-line [06:29:05] == [PASSED] drm_test_connector_helper_tv_get_modes_check === [06:29:05] ======== [PASSED] drm_connector_helper_tv_get_modes ======== [06:29:05] ================== drm_rect (9 subtests) =================== [06:29:05] [PASSED] drm_test_rect_clip_scaled_div_by_zero [06:29:05] [PASSED] drm_test_rect_clip_scaled_not_clipped [06:29:05] [PASSED] drm_test_rect_clip_scaled_clipped [06:29:05] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned [06:29:05] ================= drm_test_rect_intersect ================= [06:29:05] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0 [06:29:05] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1 [06:29:05] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0 [06:29:05] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1 [06:29:05] [PASSED] right x left: 2x1+0+0 x 3x1+1+0 [06:29:05] [PASSED] left x right: 3x1+1+0 x 2x1+0+0 [06:29:05] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1 [06:29:05] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0 [06:29:05] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1 [06:29:05] [PASSED] touching side: 1x1+0+0 x 1x1+1+0 [06:29:05] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0 [06:29:05] [PASSED] inside another: 2x2+0+0 x 1x1+1+1 [06:29:05] [PASSED] far away: 1x1+0+0 x 1x1+3+6 [06:29:05] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10 [06:29:05] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10 [06:29:05] ============= [PASSED] drm_test_rect_intersect ============= [06:29:05] ================ drm_test_rect_calc_hscale ================ [06:29:05] [PASSED] normal use [06:29:05] [PASSED] out of max range [06:29:05] [PASSED] out of min range [06:29:05] [PASSED] zero dst [06:29:05] [PASSED] negative src [06:29:05] [PASSED] negative dst [06:29:05] ============ [PASSED] drm_test_rect_calc_hscale ============ [06:29:05] ================ drm_test_rect_calc_vscale ================ [06:29:05] [PASSED] normal use [06:29:05] [PASSED] out of max range [06:29:05] [PASSED] out of min range [06:29:05] [PASSED] zero dst [06:29:05] [PASSED] negative src [06:29:05] [PASSED] negative dst [06:29:05] ============ [PASSED] drm_test_rect_calc_vscale ============ [06:29:05] ================== drm_test_rect_rotate =================== [06:29:05] [PASSED] reflect-x [06:29:05] [PASSED] reflect-y [06:29:05] [PASSED] rotate-0 [06:29:05] [PASSED] rotate-90 [06:29:05] [PASSED] rotate-180 [06:29:05] [PASSED] rotate-270 [06:29:05] ============== [PASSED] drm_test_rect_rotate =============== [06:29:05] ================ drm_test_rect_rotate_inv ================= [06:29:05] [PASSED] reflect-x [06:29:05] [PASSED] reflect-y [06:29:05] [PASSED] rotate-0 [06:29:05] [PASSED] rotate-90 [06:29:05] [PASSED] rotate-180 [06:29:05] [PASSED] rotate-270 [06:29:05] ============ [PASSED] drm_test_rect_rotate_inv ============= [06:29:05] ==================== [PASSED] drm_rect ===================== [06:29:05] ============ drm_sysfb_modeset_test (1 subtest) ============ [06:29:05] ============ drm_test_sysfb_build_fourcc_list ============= [06:29:05] [PASSED] no native formats [06:29:05] [PASSED] XRGB8888 as native format [06:29:05] [PASSED] remove duplicates [06:29:05] [PASSED] convert alpha formats [06:29:05] [PASSED] random formats [06:29:05] ======== [PASSED] drm_test_sysfb_build_fourcc_list ========= [06:29:05] ============= [PASSED] drm_sysfb_modeset_test ============== [06:29:05] ================== drm_fixp (2 subtests) =================== [06:29:05] [PASSED] drm_test_int2fixp [06:29:05] [PASSED] drm_test_sm2fixp [06:29:05] ==================== [PASSED] drm_fixp ===================== [06:29:05] ============================================================ [06:29:05] Testing complete. Ran 671 tests: passed: 671 [06:29:06] Elapsed time: 27.670s total, 1.816s configuring, 25.383s building, 0.420s running + for kcfg in "${kunitconfigs[@]}" + [[ ! -f /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig ]] + /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [06:29:06] Configuring KUnit Kernel ... Regenerating .config ... Populating config with: $ make ARCH=um O=.kunit olddefconfig [06:29:07] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [06:29:18] Starting KUnit Kernel (1/1)... [06:29:18] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [06:29:18] ============= refcount_interrupt (4 subtests) ============== [06:29:18] [PASSED] test_single_irq_change [06:29:18] [PASSED] test_nested_irq_change [06:29:18] [PASSED] test_multiple_irq_change [06:29:18] [PASSED] test_irq_save [06:29:18] =============== [PASSED] refcount_interrupt ================ [06:29:18] ================= ttm_device (5 subtests) ================== [06:29:18] [PASSED] ttm_device_init_basic [06:29:18] [PASSED] ttm_device_init_multiple [06:29:18] [PASSED] ttm_device_fini_basic [06:29:18] [PASSED] ttm_device_init_no_vma_man [06:29:18] ================== ttm_device_init_pools ================== [06:29:18] [PASSED] No DMA allocations, no DMA32 required [06:29:18] [PASSED] DMA allocations, DMA32 required [06:29:18] [PASSED] No DMA allocations, DMA32 required [06:29:18] [PASSED] DMA allocations, no DMA32 required [06:29:18] ============== [PASSED] ttm_device_init_pools ============== [06:29:18] =================== [PASSED] ttm_device ==================== [06:29:18] ================== ttm_pool (8 subtests) =================== [06:29:18] ================== ttm_pool_alloc_basic =================== [06:29:18] [PASSED] One page [06:29:18] [PASSED] More than one page [06:29:18] [PASSED] Above the allocation limit [06:29:18] [PASSED] One page, with coherent DMA mappings enabled [06:29:18] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [06:29:18] ============== [PASSED] ttm_pool_alloc_basic =============== [06:29:18] ============== ttm_pool_alloc_basic_dma_addr ============== [06:29:18] [PASSED] One page [06:29:18] [PASSED] More than one page [06:29:18] [PASSED] Above the allocation limit [06:29:18] [PASSED] One page, with coherent DMA mappings enabled [06:29:18] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [06:29:18] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ========== [06:29:18] [PASSED] ttm_pool_alloc_order_caching_match [06:29:18] [PASSED] ttm_pool_alloc_caching_mismatch [06:29:18] [PASSED] ttm_pool_alloc_order_mismatch [06:29:18] [PASSED] ttm_pool_free_dma_alloc [06:29:18] [PASSED] ttm_pool_free_no_dma_alloc [06:29:18] [PASSED] ttm_pool_fini_basic [06:29:18] ==================== [PASSED] ttm_pool ===================== [06:29:18] ================ ttm_resource (8 subtests) ================= [06:29:18] ================= ttm_resource_init_basic ================= [06:29:18] [PASSED] Init resource in TTM_PL_SYSTEM [06:29:18] [PASSED] Init resource in TTM_PL_VRAM [06:29:18] [PASSED] Init resource in a private placement [06:29:18] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags [06:29:18] ============= [PASSED] ttm_resource_init_basic ============= [06:29:18] [PASSED] ttm_resource_init_pinned [06:29:18] [PASSED] ttm_resource_fini_basic [06:29:18] [PASSED] ttm_resource_manager_init_basic [06:29:18] [PASSED] ttm_resource_manager_usage_basic [06:29:18] [PASSED] ttm_resource_manager_set_used_basic [06:29:18] [PASSED] ttm_sys_man_alloc_basic [06:29:18] [PASSED] ttm_sys_man_free_basic [06:29:18] ================== [PASSED] ttm_resource =================== [06:29:18] =================== ttm_tt (15 subtests) =================== [06:29:18] ==================== ttm_tt_init_basic ==================== [06:29:18] [PASSED] Page-aligned size [06:29:18] [PASSED] Extra pages requested [06:29:18] ================ [PASSED] ttm_tt_init_basic ================ [06:29:18] [PASSED] ttm_tt_init_misaligned [06:29:18] [PASSED] ttm_tt_fini_basic [06:29:18] [PASSED] ttm_tt_fini_sg [06:29:18] [PASSED] ttm_tt_fini_shmem [06:29:18] [PASSED] ttm_tt_create_basic [06:29:18] [PASSED] ttm_tt_create_invalid_bo_type [06:29:18] [PASSED] ttm_tt_create_ttm_exists [06:29:18] [PASSED] ttm_tt_create_failed [06:29:18] [PASSED] ttm_tt_destroy_basic [06:29:18] [PASSED] ttm_tt_populate_null_ttm [06:29:18] [PASSED] ttm_tt_populate_populated_ttm [06:29:18] [PASSED] ttm_tt_unpopulate_basic [06:29:18] [PASSED] ttm_tt_unpopulate_empty_ttm [06:29:18] [PASSED] ttm_tt_swapin_basic [06:29:18] ===================== [PASSED] ttm_tt ====================== [06:29:18] =================== ttm_bo (14 subtests) =================== [06:29:18] =========== ttm_bo_reserve_optimistic_no_ticket =========== [06:29:18] [PASSED] Cannot be interrupted and sleeps [06:29:18] [PASSED] Cannot be interrupted, locks straight away [06:29:18] [PASSED] Can be interrupted, sleeps [06:29:18] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket ======= [06:29:18] [PASSED] ttm_bo_reserve_locked_no_sleep [06:29:18] [PASSED] ttm_bo_reserve_no_wait_ticket [06:29:18] [PASSED] ttm_bo_reserve_double_resv [06:29:18] [PASSED] ttm_bo_reserve_interrupted [06:29:18] [PASSED] ttm_bo_reserve_deadlock [06:29:18] [PASSED] ttm_bo_unreserve_basic [06:29:18] [PASSED] ttm_bo_unreserve_pinned [06:29:18] [PASSED] ttm_bo_unreserve_bulk [06:29:18] [PASSED] ttm_bo_fini_basic [06:29:18] [PASSED] ttm_bo_fini_shared_resv [06:29:18] [PASSED] ttm_bo_pin_basic [06:29:18] [PASSED] ttm_bo_pin_unpin_resource [06:29:18] [PASSED] ttm_bo_multiple_pin_one_unpin [06:29:18] ===================== [PASSED] ttm_bo ====================== [06:29:18] ============== ttm_bo_validate (22 subtests) =============== [06:29:18] ============== ttm_bo_init_reserved_sys_man =============== [06:29:18] [PASSED] Buffer object for userspace [06:29:18] [PASSED] Kernel buffer object [06:29:18] [PASSED] Shared buffer object [06:29:18] ========== [PASSED] ttm_bo_init_reserved_sys_man =========== [06:29:18] ============== ttm_bo_init_reserved_mock_man ============== [06:29:18] [PASSED] Buffer object for userspace [06:29:18] [PASSED] Kernel buffer object [06:29:18] [PASSED] Shared buffer object [06:29:18] ========== [PASSED] ttm_bo_init_reserved_mock_man ========== [06:29:18] [PASSED] ttm_bo_init_reserved_resv [06:29:18] ================== ttm_bo_validate_basic ================== [06:29:18] [PASSED] Buffer object for userspace [06:29:18] [PASSED] Kernel buffer object [06:29:18] [PASSED] Shared buffer object [06:29:18] ============== [PASSED] ttm_bo_validate_basic ============== [06:29:18] [PASSED] ttm_bo_validate_invalid_placement [06:29:18] ============= ttm_bo_validate_same_placement ============== [06:29:18] [PASSED] System manager [06:29:18] [PASSED] VRAM manager [06:29:18] ========= [PASSED] ttm_bo_validate_same_placement ========== [06:29:18] [PASSED] ttm_bo_validate_failed_alloc [06:29:18] [PASSED] ttm_bo_validate_pinned [06:29:18] [PASSED] ttm_bo_validate_busy_placement [06:29:18] ================ ttm_bo_validate_multihop ================= [06:29:18] [PASSED] Buffer object for userspace [06:29:18] [PASSED] Kernel buffer object [06:29:18] [PASSED] Shared buffer object [06:29:18] ============ [PASSED] ttm_bo_validate_multihop ============= [06:29:18] ========== ttm_bo_validate_no_placement_signaled ========== [06:29:18] [PASSED] Buffer object in system domain, no page vector [06:29:18] [PASSED] Buffer object in system domain with an existing page vector [06:29:18] ====== [PASSED] ttm_bo_validate_no_placement_signaled ====== [06:29:18] ======== ttm_bo_validate_no_placement_not_signaled ======== [06:29:18] [PASSED] Buffer object for userspace [06:29:18] [PASSED] Kernel buffer object [06:29:18] [PASSED] Shared buffer object [06:29:18] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ==== [06:29:18] [PASSED] ttm_bo_validate_move_fence_signaled [06:29:18] ========= ttm_bo_validate_move_fence_not_signaled ========= [06:29:18] [PASSED] Waits for GPU [06:29:18] [PASSED] Tries to lock straight away [06:29:18] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled ===== [06:29:18] [PASSED] ttm_bo_validate_swapout [06:29:18] [PASSED] ttm_bo_validate_happy_evict [06:29:18] [PASSED] ttm_bo_validate_all_pinned_evict [06:29:18] [PASSED] ttm_bo_validate_allowed_only_evict [06:29:18] [PASSED] ttm_bo_validate_deleted_evict [06:29:18] [PASSED] ttm_bo_validate_busy_domain_evict [06:29:18] [PASSED] ttm_bo_validate_evict_gutting [06:29:18] [PASSED] ttm_bo_validate_recrusive_evict [06:29:18] ================= [PASSED] ttm_bo_validate ================= [06:29:18] ============================================================ [06:29:18] Testing complete. Ran 106 tests: passed: 106 [06:29:18] Elapsed time: 12.575s total, 1.802s configuring, 10.557s building, 0.174s running + for kcfg in "${kunitconfigs[@]}" + [[ ! -f /kernel/drivers/dma-buf/.kunitconfig ]] + /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/dma-buf/.kunitconfig [06:29:18] Configuring KUnit Kernel ... Regenerating .config ... Populating config with: $ make ARCH=um O=.kunit olddefconfig [06:29:20] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [06:29:29] Starting KUnit Kernel (1/1)... [06:29:29] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [06:29:29] ============= refcount_interrupt (4 subtests) ============== [06:29:29] [PASSED] test_single_irq_change [06:29:29] [PASSED] test_nested_irq_change [06:29:29] [PASSED] test_multiple_irq_change [06:29:29] [PASSED] test_irq_save [06:29:29] =============== [PASSED] refcount_interrupt ================ [06:29:29] =============== dma-buf-fence (12 subtests) ================ [06:29:29] [PASSED] test_sanitycheck [06:29:29] [PASSED] test_signaling [06:29:29] [PASSED] test_add_callback [06:29:29] [PASSED] test_late_add_callback [06:29:29] [PASSED] test_rm_callback [06:29:29] [PASSED] test_late_rm_callback [06:29:29] [PASSED] test_status [06:29:29] [PASSED] test_error [06:29:29] [PASSED] test_wait [06:29:29] [PASSED] test_wait_timeout [06:29:29] [PASSED] test_stub [06:29:29] [SKIPPED] test_race_signal_callback (requires at least 2 CPUs) [06:29:29] ================== [PASSED] dma-buf-fence ================== [06:29:29] ============ dma-buf-fence-chain (11 subtests) ============= [06:29:29] [PASSED] test_sanitycheck [06:29:29] [PASSED] test_find_seqno [06:29:29] [PASSED] test_find_signaled [06:29:29] [PASSED] test_find_out_of_order [06:29:34] [PASSED] test_find_gap [06:29:34] [PASSED] test_find_race [06:29:34] [PASSED] test_signal_forward [06:29:34] [PASSED] test_signal_backward [06:29:34] [PASSED] test_wait_forward [06:29:34] [PASSED] test_wait_backward [06:29:34] [PASSED] test_wait_random [06:29:34] =============== [PASSED] dma-buf-fence-chain =============== [06:29:34] ============ dma-buf-fence-unwrap (10 subtests) ============ [06:29:34] [PASSED] test_sanitycheck [06:29:34] [PASSED] test_unwrap_array [06:29:34] [PASSED] test_unwrap_chain [06:29:34] [PASSED] test_unwrap_chain_array [06:29:34] [PASSED] test_unwrap_merge [06:29:34] [PASSED] test_unwrap_merge_duplicate [06:29:34] [PASSED] test_unwrap_merge_seqno [06:29:34] [PASSED] test_unwrap_merge_order [06:29:34] [PASSED] test_unwrap_merge_complex [06:29:34] [PASSED] test_unwrap_merge_complex_seqno [06:29:34] ============== [PASSED] dma-buf-fence-unwrap =============== [06:29:34] ================ dma-buf-resv (5 subtests) ================= [06:29:34] [PASSED] test_sanitycheck [06:29:34] ===================== test_signaling ====================== [06:29:34] [PASSED] kernel [06:29:34] [PASSED] write [06:29:34] [PASSED] read [06:29:34] [PASSED] bookkeep [06:29:34] ================= [PASSED] test_signaling ================== [06:29:34] ====================== test_for_each ====================== [06:29:34] [PASSED] kernel [06:29:34] [PASSED] write [06:29:34] [PASSED] read [06:29:34] [PASSED] bookkeep [06:29:34] ================== [PASSED] test_for_each ================== [06:29:34] ================= test_for_each_unlocked ================== [06:29:34] [PASSED] kernel [06:29:34] [PASSED] write [06:29:34] [PASSED] read [06:29:34] [PASSED] bookkeep [06:29:34] ============= [PASSED] test_for_each_unlocked ============== [06:29:34] ===================== test_get_fences ===================== [06:29:34] [PASSED] kernel [06:29:34] [PASSED] write [06:29:34] [PASSED] read [06:29:34] [PASSED] bookkeep [06:29:34] ================= [PASSED] test_get_fences ================= [06:29:34] ================== [PASSED] dma-buf-resv =================== [06:29:34] ============================================================ [06:29:34] Testing complete. Ran 54 tests: passed: 53, skipped: 1 [06:29:34] Elapsed time: 16.134s total, 1.795s configuring, 8.968s building, 5.358s running + cleanup ++ stat -c %u:%g /kernel + chown -R 1003:1003 /kernel ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2] gpu/buddy: add range-restricted contiguous allocation fallback 2026-09-30 6:21 [PATCH v2] gpu/buddy: add range-restricted contiguous allocation fallback Arunpravin Paneer Selvam 2026-09-30 6:29 ` ✓ CI.KUnit: success for " Patchwork @ 2026-09-30 6:31 ` sashiko-bot 2026-09-30 7:32 ` ✓ Xe.CI.BAT: success for " Patchwork ` (3 subsequent siblings) 5 siblings, 0 replies; 11+ messages in thread From: sashiko-bot @ 2026-09-30 6:31 UTC (permalink / raw) To: Arunpravin Paneer Selvam; +Cc: dri-devel, intel-xe, intel-gfx Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [High] gpu/buddy: range-restricted alloc fails when free space exceeds range_end -- commit 2ed4c9d1a70c51390968b65e939095ce52c8ee07 Author: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com> gpu/buddy: add range-restricted contiguous allocation fallback A range + contiguous allocation rounds its size up to a power of two and requires a naturally aligned free block of that size. The non-range contiguous path already recovers from fragmentation via __alloc_contig_try_harder(), which is now given a range window to support the range + contiguous case. > diff --git a/drivers/gpu/buddy.c b/drivers/gpu/buddy.c > index 2f2aaadafe351..5265e1f6a3183 100644 > --- a/drivers/gpu/buddy.c > +++ b/drivers/gpu/buddy.c [ ... ] > @@ -1734,20 +1722,24 @@ static int __alloc_contig_try_harder(struct gpu_buddy *mm, [ ... ] > if (!err) { > /* Allocate the unaligned RHS offset using round_down */ > gpu_buddy_free_list_internal(mm, blocks); > - err = __alloc_contig_aligned_retry(mm, rhs_offset, > - size, > - min_block_size, > - flags, blocks); > - if (!err) > - return 0; > - if (err != -ENOSPC) { > - gpu_buddy_free_list_internal(mm, blocks); > - return err; > + > + aligned = round_down(rhs_offset, min_block_size); > + if (aligned >= range_start && > + aligned + size <= range_end) { > + err = __gpu_buddy_alloc_range(mm, aligned, size, > + flags, NULL, blocks); > + if (!err) > + return 0; > + if (err != -ENOSPC) { > + gpu_buddy_free_list_internal(mm, blocks); > + return err; > + } > } > goto next; > } [Severity: High] Does this skip the left-hand side (LHS) fallback when contiguous free space exceeds range_end? If __gpu_buddy_alloc_range() succeeds at finding free space starting at rhs_offset, err is 0. If the free space extends beyond range_end, the newly added check (aligned >= range_start && aligned + size <= range_end) might fail. But since err is still 0, it hits the unconditional goto next. By skipping to next, doesn't this bypass the LHS window-sliding logic below? If there was valid free space to the left of rhs_offset that perfectly fits the window, it appears it would be ignored, causing the allocator to return -ENOSPC despite sufficient space existing within the requested range. -- Sashiko AI review · https://sashiko.dev/#/patchset/20260930062117.585089-1-arunpravin.paneerselvam@amd.com?part=1 ^ permalink raw reply [flat|nested] 11+ messages in thread
* ✓ Xe.CI.BAT: success for gpu/buddy: add range-restricted contiguous allocation fallback 2026-09-30 6:21 [PATCH v2] gpu/buddy: add range-restricted contiguous allocation fallback Arunpravin Paneer Selvam 2026-09-30 6:29 ` ✓ CI.KUnit: success for " Patchwork 2026-09-30 6:31 ` [PATCH v2] " sashiko-bot @ 2026-09-30 7:32 ` Patchwork 2026-09-30 11:53 ` ✗ Xe.CI.FULL: failure " Patchwork ` (2 subsequent siblings) 5 siblings, 0 replies; 11+ messages in thread From: Patchwork @ 2026-09-30 7:32 UTC (permalink / raw) To: Arunpravin Paneer Selvam; +Cc: intel-xe [-- Attachment #1: Type: text/plain, Size: 976 bytes --] == Series Details == Series: gpu/buddy: add range-restricted contiguous allocation fallback URL : https://patchwork.freedesktop.org/series/175261/ State : success == Summary == CI Bug Log - changes from xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493_BAT -> xe-pw-175261v1_BAT ==================================================== Summary ------- **SUCCESS** No regressions found. Participating hosts (15 -> 15) ------------------------------ No changes in participating hosts Changes ------- No changes found Build changes ------------- * Linux: xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493 -> xe-pw-175261v1 IGT_9116: 9d4b6ef512b4e2e4d05129c6519313fd13a306d2 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493: e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493 xe-pw-175261v1: 175261v1 == Logs == For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/index.html [-- Attachment #2: Type: text/html, Size: 1524 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* ✗ Xe.CI.FULL: failure for gpu/buddy: add range-restricted contiguous allocation fallback 2026-09-30 6:21 [PATCH v2] gpu/buddy: add range-restricted contiguous allocation fallback Arunpravin Paneer Selvam ` (2 preceding siblings ...) 2026-09-30 7:32 ` ✓ Xe.CI.BAT: success for " Patchwork @ 2026-09-30 11:53 ` Patchwork 2026-10-01 7:06 ` [PATCH v2] " Arunpravin Paneer Selvam 2026-10-01 18:28 ` Matthew Auld 5 siblings, 0 replies; 11+ messages in thread From: Patchwork @ 2026-09-30 11:53 UTC (permalink / raw) To: Arunpravin Paneer Selvam; +Cc: intel-xe [-- Attachment #1: Type: text/plain, Size: 52563 bytes --] == Series Details == Series: gpu/buddy: add range-restricted contiguous allocation fallback URL : https://patchwork.freedesktop.org/series/175261/ State : failure == Summary == CI Bug Log - changes from xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493_FULL -> xe-pw-175261v1_FULL ==================================================== Summary ------- **FAILURE** Serious unknown changes coming with xe-pw-175261v1_FULL absolutely need to be verified manually. If you think the reported changes have nothing to do with the changes introduced in xe-pw-175261v1_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-175261v1_FULL: ### IGT changes ### #### Possible regressions #### * igt@core_hotunplug@hotunbind-rebind: - shard-bmg: [PASS][1] -> [ABORT][2] [1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-bmg-2/igt@core_hotunplug@hotunbind-rebind.html [2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@core_hotunplug@hotunbind-rebind.html Known issues ------------ Here are the changes found in xe-pw-175261v1_FULL that come from known issues: ### IGT changes ### #### Issues hit #### * igt@kms_async_flips@alternate-sync-async-flip-atomic: - shard-bmg: [PASS][3] -> [FAIL][4] ([Intel XE#3718] / [Intel XE#6078]) [3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-bmg-10/igt@kms_async_flips@alternate-sync-async-flip-atomic.html [4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-6/igt@kms_async_flips@alternate-sync-async-flip-atomic.html * igt@kms_async_flips@alternate-sync-async-flip-atomic@pipe-c-dp-2: - shard-bmg: [PASS][5] -> [FAIL][6] ([Intel XE#6078]) [5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-bmg-10/igt@kms_async_flips@alternate-sync-async-flip-atomic@pipe-c-dp-2.html [6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-6/igt@kms_async_flips@alternate-sync-async-flip-atomic@pipe-c-dp-2.html * igt@kms_big_fb@linear-32bpp-rotate-270: - shard-lnl: NOTRUN -> [SKIP][7] ([Intel XE#1407]) [7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_big_fb@linear-32bpp-rotate-270.html * igt@kms_big_fb@x-tiled-16bpp-rotate-90: - shard-bmg: NOTRUN -> [SKIP][8] ([Intel XE#2327]) [8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_big_fb@x-tiled-16bpp-rotate-90.html * igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-180: - shard-ptl: NOTRUN -> [SKIP][9] ([Intel XE#5808]) +4 other tests skip [9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-180.html * igt@kms_big_fb@yf-tiled-16bpp-rotate-0: - shard-lnl: NOTRUN -> [SKIP][10] ([Intel XE#1124]) +1 other test skip [10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_big_fb@yf-tiled-16bpp-rotate-0.html * igt@kms_big_fb@yf-tiled-32bpp-rotate-270: - shard-bmg: NOTRUN -> [SKIP][11] ([Intel XE#1124]) +1 other test skip [11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_big_fb@yf-tiled-32bpp-rotate-270.html * igt@kms_bw@linear-tiling-1-displays-target-2560x1440p: - shard-bmg: NOTRUN -> [SKIP][12] ([Intel XE#367]) [12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_bw@linear-tiling-1-displays-target-2560x1440p.html * igt@kms_bw@linear-tiling-2-displays-target-2560x1440p: - shard-lnl: NOTRUN -> [SKIP][13] ([Intel XE#367]) [13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_bw@linear-tiling-2-displays-target-2560x1440p.html * igt@kms_bw@linear-tiling-3-displays-target-2160x1440p: - shard-ptl: NOTRUN -> [SKIP][14] ([Intel XE#367]) [14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@kms_bw@linear-tiling-3-displays-target-2160x1440p.html * igt@kms_ccs@bad-rotation-90-4-tiled-bmg-ccs@pipe-c-edp-1: - shard-ptl: NOTRUN -> [SKIP][15] ([Intel XE#5823] / [Intel XE#6918]) +4 other tests skip [15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@kms_ccs@bad-rotation-90-4-tiled-bmg-ccs@pipe-c-edp-1.html * igt@kms_ccs@ccs-on-another-bo-y-tiled-ccs: - shard-bmg: NOTRUN -> [SKIP][16] ([Intel XE#2887]) +1 other test skip [16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_ccs@ccs-on-another-bo-y-tiled-ccs.html * igt@kms_ccs@crc-primary-rotation-180-4-tiled-mtl-rc-ccs: - shard-lnl: NOTRUN -> [SKIP][17] ([Intel XE#2887]) [17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_ccs@crc-primary-rotation-180-4-tiled-mtl-rc-ccs.html * igt@kms_ccs@crc-primary-rotation-180-4-tiled-mtl-rc-ccs-cc: - shard-ptl: NOTRUN -> [SKIP][18] ([Intel XE#5822]) +2 other tests skip [18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@kms_ccs@crc-primary-rotation-180-4-tiled-mtl-rc-ccs-cc.html * igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs: - shard-bmg: [PASS][19] -> [INCOMPLETE][20] ([Intel XE#7084] / [Intel XE#8150]) +1 other test incomplete [19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-bmg-8/igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs.html [20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-4/igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs.html * igt@kms_ccs@crc-primary-suspend-4-tiled-dg2-mc-ccs: - shard-bmg: NOTRUN -> [SKIP][21] ([Intel XE#3432]) [21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_ccs@crc-primary-suspend-4-tiled-dg2-mc-ccs.html * igt@kms_ccs@crc-primary-suspend-4-tiled-lnl-ccs@pipe-a-edp-1: - shard-lnl: [PASS][22] -> [ABORT][23] ([Intel XE#7084] / [Intel XE#9362]) +1 other test abort [22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-lnl-3/igt@kms_ccs@crc-primary-suspend-4-tiled-lnl-ccs@pipe-a-edp-1.html [23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-2/igt@kms_ccs@crc-primary-suspend-4-tiled-lnl-ccs@pipe-a-edp-1.html * igt@kms_chamelium_color@degamma: - shard-bmg: NOTRUN -> [SKIP][24] ([Intel XE#2325] / [Intel XE#7358]) [24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_chamelium_color@degamma.html * igt@kms_chamelium_color_pipeline@plane-fixed-matrix-yuv-rgb-bt2020-lut1d: - shard-lnl: NOTRUN -> [SKIP][25] ([Intel XE#7358]) [25]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_chamelium_color_pipeline@plane-fixed-matrix-yuv-rgb-bt2020-lut1d.html * igt@kms_chamelium_color_pipeline@plane-lut1d-lut1d: - shard-ptl: NOTRUN -> [SKIP][26] ([Intel XE#8391]) +3 other tests skip [26]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-3/igt@kms_chamelium_color_pipeline@plane-lut1d-lut1d.html * igt@kms_chamelium_edid@dp-edid-read: - shard-lnl: NOTRUN -> [SKIP][27] ([Intel XE#373]) [27]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_chamelium_edid@dp-edid-read.html * igt@kms_chamelium_edid@hdmi-edid-stress-resolution-non-4k: - shard-bmg: NOTRUN -> [SKIP][28] ([Intel XE#2252]) +1 other test skip [28]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_chamelium_edid@hdmi-edid-stress-resolution-non-4k.html * igt@kms_chamelium_hpd@hdmi-hpd-storm-disable: - shard-ptl: NOTRUN -> [SKIP][29] ([Intel XE#2252]) [29]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@kms_chamelium_hpd@hdmi-hpd-storm-disable.html * igt@kms_color_pipeline@plane-fixed-matrix-yuv-rgb-bt2020-lim@pipe-a-plane-1: - shard-ptl: NOTRUN -> [FAIL][30] ([Intel XE#9333]) +20 other tests fail [30]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-1/igt@kms_color_pipeline@plane-fixed-matrix-yuv-rgb-bt2020-lim@pipe-a-plane-1.html * igt@kms_color_pipeline@plane-lut1d-post-ctm3x4@pipe-d-plane-4: - shard-ptl: NOTRUN -> [SKIP][31] ([Intel XE#6969]) +7 other tests skip [31]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@kms_color_pipeline@plane-lut1d-post-ctm3x4@pipe-d-plane-4.html * igt@kms_content_protection@atomic: - shard-bmg: NOTRUN -> [FAIL][32] ([Intel XE#1178] / [Intel XE#3304] / [Intel XE#7374]) +1 other test fail [32]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_content_protection@atomic.html * igt@kms_content_protection@dp-mst-type-0-suspend-resume: - shard-ptl: NOTRUN -> [SKIP][33] ([Intel XE#6974]) [33]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@kms_content_protection@dp-mst-type-0-suspend-resume.html * igt@kms_content_protection@lic-type-0-hdcp14: - shard-ptl: NOTRUN -> [SKIP][34] ([Intel XE#7642]) [34]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@kms_content_protection@lic-type-0-hdcp14.html * igt@kms_content_protection@mei-interface: - shard-bmg: NOTRUN -> [SKIP][35] ([Intel XE#7642]) [35]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_content_protection@mei-interface.html * igt@kms_cursor_crc@cursor-offscreen-512x170: - shard-ptl: NOTRUN -> [SKIP][36] ([Intel XE#5846]) [36]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@kms_cursor_crc@cursor-offscreen-512x170.html * igt@kms_cursor_crc@cursor-onscreen-128x42: - shard-ptl: NOTRUN -> [SKIP][37] ([Intel XE#5900]) [37]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@kms_cursor_crc@cursor-onscreen-128x42.html * igt@kms_cursor_crc@cursor-onscreen-32x10: - shard-lnl: NOTRUN -> [SKIP][38] ([Intel XE#1424]) [38]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_cursor_crc@cursor-onscreen-32x10.html * igt@kms_cursor_crc@cursor-random-128x42: - shard-bmg: NOTRUN -> [SKIP][39] ([Intel XE#2320]) [39]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_cursor_crc@cursor-random-128x42.html * igt@kms_cursor_crc@cursor-rapid-movement-512x170: - shard-lnl: NOTRUN -> [SKIP][40] ([Intel XE#2321] / [Intel XE#7355]) [40]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_cursor_crc@cursor-rapid-movement-512x170.html * igt@kms_dp_link_training@uhbr-mst: - shard-ptl: NOTRUN -> [SKIP][41] ([Intel XE#7386]) [41]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@kms_dp_link_training@uhbr-mst.html * igt@kms_dp_linktrain_fallback@dp-fallback: - shard-ptl: NOTRUN -> [SKIP][42] ([Intel XE#9009]) [42]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-2/igt@kms_dp_linktrain_fallback@dp-fallback.html * igt@kms_dp_linktrain_fallback@uhbr-to-hbr-fallback: - shard-bmg: NOTRUN -> [SKIP][43] ([Intel XE#9009]) [43]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_dp_linktrain_fallback@uhbr-to-hbr-fallback.html * igt@kms_dsc@dsc-with-bpc-formats-ultrajoiner: - shard-ptl: NOTRUN -> [SKIP][44] ([Intel XE#5907]) +1 other test skip [44]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-1/igt@kms_dsc@dsc-with-bpc-formats-ultrajoiner.html * igt@kms_flip@2x-absolute-wf_vblank-interruptible: - shard-lnl: NOTRUN -> [SKIP][45] ([Intel XE#1421]) [45]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_flip@2x-absolute-wf_vblank-interruptible.html * igt@kms_flip@2x-plain-flip-fb-recreate: - shard-ptl: NOTRUN -> [SKIP][46] ([Intel XE#2316]) +4 other tests skip [46]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@kms_flip@2x-plain-flip-fb-recreate.html * igt@kms_flip@plain-flip-fb-recreate-interruptible@d-dp2: - shard-bmg: [PASS][47] -> [FAIL][48] ([Intel XE#3098]) +1 other test fail [47]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-bmg-9/igt@kms_flip@plain-flip-fb-recreate-interruptible@d-dp2.html [48]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-8/igt@kms_flip@plain-flip-fb-recreate-interruptible@d-dp2.html * igt@kms_flip_scaled_crc@flip-32bpp-linear-to-32bpp-linear-reflect-x: - shard-ptl: NOTRUN -> [SKIP][49] ([Intel XE#7179]) [49]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-1/igt@kms_flip_scaled_crc@flip-32bpp-linear-to-32bpp-linear-reflect-x.html * igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile-downscaling: - shard-lnl: NOTRUN -> [SKIP][50] ([Intel XE#7178] / [Intel XE#7351]) [50]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile-downscaling.html * igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling: - shard-bmg: NOTRUN -> [SKIP][51] ([Intel XE#7178] / [Intel XE#7351]) +1 other test skip [51]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling.html * igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilercccs-downscaling: - shard-ptl: NOTRUN -> [SKIP][52] ([Intel XE#7178]) +1 other test skip [52]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-1/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilercccs-downscaling.html * igt@kms_frontbuffer_tracking@drrs-abgr161616f-draw-blt: - shard-bmg: NOTRUN -> [SKIP][53] ([Intel XE#7061] / [Intel XE#7356]) [53]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_frontbuffer_tracking@drrs-abgr161616f-draw-blt.html * igt@kms_frontbuffer_tracking@drrs-rgb101010-draw-mmap-wc: - shard-lnl: NOTRUN -> [SKIP][54] ([Intel XE#6312] / [Intel XE#651]) +1 other test skip [54]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_frontbuffer_tracking@drrs-rgb101010-draw-mmap-wc.html * igt@kms_frontbuffer_tracking@drrs-shrfb-scaledprimary: - shard-bmg: NOTRUN -> [SKIP][55] ([Intel XE#2311]) +10 other tests skip [55]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_frontbuffer_tracking@drrs-shrfb-scaledprimary.html * igt@kms_frontbuffer_tracking@drrs-slowdraw: - shard-ptl: NOTRUN -> [SKIP][56] ([Intel XE#5800] / [Intel XE#6312]) +2 other tests skip [56]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@kms_frontbuffer_tracking@drrs-slowdraw.html * igt@kms_frontbuffer_tracking@drrshdr-1p-primscrn-indfb-msflip-blt: - shard-ptl: NOTRUN -> [SKIP][57] ([Intel XE#6312]) +3 other tests skip [57]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@kms_frontbuffer_tracking@drrshdr-1p-primscrn-indfb-msflip-blt.html * igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-mmap-wc: - shard-bmg: NOTRUN -> [SKIP][58] ([Intel XE#4141]) +2 other tests skip [58]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-mmap-wc.html * igt@kms_frontbuffer_tracking@fbcdrrs-1p-offscreen-pri-shrfb-draw-blt: - shard-lnl: NOTRUN -> [SKIP][59] ([Intel XE#6312]) [59]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_frontbuffer_tracking@fbcdrrs-1p-offscreen-pri-shrfb-draw-blt.html * igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-indfb-plflip-blt: - shard-lnl: NOTRUN -> [SKIP][60] ([Intel XE#656] / [Intel XE#7905]) +4 other tests skip [60]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-indfb-plflip-blt.html * igt@kms_frontbuffer_tracking@fbcdrrs-argb161616f-draw-blt: - shard-ptl: NOTRUN -> [SKIP][61] ([Intel XE#7061] / [Intel XE#7356]) [61]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@kms_frontbuffer_tracking@fbcdrrs-argb161616f-draw-blt.html * igt@kms_frontbuffer_tracking@fbcdrrshdr-argb161616f-draw-blt: - shard-bmg: NOTRUN -> [SKIP][62] ([Intel XE#7061]) +2 other tests skip [62]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_frontbuffer_tracking@fbcdrrshdr-argb161616f-draw-blt.html * igt@kms_frontbuffer_tracking@fbchdr-2p-primscrn-shrfb-msflip-blt: - shard-ptl: NOTRUN -> [SKIP][63] ([Intel XE#5812]) +19 other tests skip [63]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@kms_frontbuffer_tracking@fbchdr-2p-primscrn-shrfb-msflip-blt.html * igt@kms_frontbuffer_tracking@fbchdr-tiling-y: - shard-bmg: NOTRUN -> [SKIP][64] ([Intel XE#7399]) [64]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_frontbuffer_tracking@fbchdr-tiling-y.html * igt@kms_frontbuffer_tracking@fbcpsrhdr-1p-primscrn-indfb-msflip-blt: - shard-lnl: NOTRUN -> [SKIP][65] ([Intel XE#7865]) +5 other tests skip [65]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_frontbuffer_tracking@fbcpsrhdr-1p-primscrn-indfb-msflip-blt.html * igt@kms_frontbuffer_tracking@fbcpsrhdr-2p-scndscrn-pri-shrfb-draw-mmap-wc: - shard-lnl: NOTRUN -> [SKIP][66] ([Intel XE#7905]) +7 other tests skip [66]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_frontbuffer_tracking@fbcpsrhdr-2p-scndscrn-pri-shrfb-draw-mmap-wc.html * igt@kms_frontbuffer_tracking@fbcpsrhdr-rgb565-draw-mmap-wc: - shard-ptl: NOTRUN -> [SKIP][67] ([Intel XE#7865]) +8 other tests skip [67]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@kms_frontbuffer_tracking@fbcpsrhdr-rgb565-draw-mmap-wc.html * igt@kms_frontbuffer_tracking@psrhdr-abgr161616f-draw-render: - shard-lnl: NOTRUN -> [SKIP][68] ([Intel XE#7061]) [68]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_frontbuffer_tracking@psrhdr-abgr161616f-draw-render.html * igt@kms_frontbuffer_tracking@psrhdr-rgb565-draw-render: - shard-bmg: NOTRUN -> [SKIP][69] ([Intel XE#2313]) +12 other tests skip [69]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_frontbuffer_tracking@psrhdr-rgb565-draw-render.html * igt@kms_hdmi_inject@inject-audio: - shard-ptl: NOTRUN -> [SKIP][70] ([Intel XE#7308]) [70]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-1/igt@kms_hdmi_inject@inject-audio.html * igt@kms_hdr@bpc-switch-suspend: - shard-ptl: NOTRUN -> [ABORT][71] ([Intel XE#9362]) +3 other tests abort [71]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-3/igt@kms_hdr@bpc-switch-suspend.html * igt@kms_hdr@invalid-metadata-sizes: - shard-ptl: NOTRUN -> [SKIP][72] ([Intel XE#5917] / [Intel XE#6174]) [72]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@kms_hdr@invalid-metadata-sizes.html * igt@kms_plane@pixel-format-4-tiled-dg2-rc-ccs-cc-modifier: - shard-ptl: NOTRUN -> [SKIP][73] ([Intel XE#7283]) +1 other test skip [73]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@kms_plane@pixel-format-4-tiled-dg2-rc-ccs-cc-modifier.html * igt@kms_plane@pixel-format-4-tiled-mtl-rc-ccs-modifier-source-clamping: - shard-bmg: NOTRUN -> [SKIP][74] ([Intel XE#7283]) [74]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_plane@pixel-format-4-tiled-mtl-rc-ccs-modifier-source-clamping.html * igt@kms_plane_multiple@2x-tiling-none: - shard-ptl: NOTRUN -> [SKIP][75] ([Intel XE#4596] / [Intel XE#5854]) [75]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-1/igt@kms_plane_multiple@2x-tiling-none.html * igt@kms_plane_multiple@tiling-y: - shard-bmg: NOTRUN -> [SKIP][76] ([Intel XE#5020] / [Intel XE#7348]) [76]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_plane_multiple@tiling-y.html * igt@kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-75@pipe-d: - shard-ptl: NOTRUN -> [SKIP][77] ([Intel XE#6886]) +4 other tests skip [77]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-75@pipe-d.html * igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75: - shard-bmg: NOTRUN -> [SKIP][78] ([Intel XE#2763] / [Intel XE#6886]) +4 other tests skip [78]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75.html * igt@kms_pm_dc@dc3co-vpb-simulation: - shard-ptl: NOTRUN -> [SKIP][79] ([Intel XE#8395] / [Intel XE#8396]) +1 other test skip [79]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@kms_pm_dc@dc3co-vpb-simulation.html * igt@kms_pm_dc@dc3co-vpb-simulation@psr2-yuv420: - shard-ptl: NOTRUN -> [SKIP][80] ([Intel XE#8396]) +1 other test skip [80]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@kms_pm_dc@dc3co-vpb-simulation@psr2-yuv420.html * igt@kms_pm_rpm@modeset-non-lpsp: - shard-lnl: NOTRUN -> [SKIP][81] ([Intel XE#1439] / [Intel XE#3141] / [Intel XE#7383]) [81]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_pm_rpm@modeset-non-lpsp.html * igt@kms_psr2_sf@pr-cursor-plane-move-continuous-exceed-fully-sf: - shard-lnl: NOTRUN -> [SKIP][82] ([Intel XE#2893] / [Intel XE#7304]) [82]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_psr2_sf@pr-cursor-plane-move-continuous-exceed-fully-sf.html * igt@kms_psr2_sf@pr-overlay-plane-move-continuous-exceed-fully-sf: - shard-ptl: NOTRUN -> [SKIP][83] ([Intel XE#7304]) [83]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@kms_psr2_sf@pr-overlay-plane-move-continuous-exceed-fully-sf.html * igt@kms_psr2_sf@psr2-cursor-plane-move-continuous-exceed-sf: - shard-bmg: NOTRUN -> [SKIP][84] ([Intel XE#1489]) +1 other test skip [84]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_psr2_sf@psr2-cursor-plane-move-continuous-exceed-sf.html * igt@kms_psr@fbc-psr2-basic@edp-1: - shard-ptl: NOTRUN -> [SKIP][85] ([Intel XE#1406] / [Intel XE#5835]) +1 other test skip [85]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-3/igt@kms_psr@fbc-psr2-basic@edp-1.html * igt@kms_psr@fbc-psr2-sprite-plane-onoff: - shard-lnl: NOTRUN -> [SKIP][86] ([Intel XE#1406] / [Intel XE#7345]) +1 other test skip [86]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_psr@fbc-psr2-sprite-plane-onoff.html * igt@kms_psr@fbc-psr2-sprite-plane-onoff@edp-1: - shard-lnl: NOTRUN -> [SKIP][87] ([Intel XE#1406] / [Intel XE#4609] / [Intel XE#7345]) +1 other test skip [87]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@kms_psr@fbc-psr2-sprite-plane-onoff@edp-1.html * igt@kms_psr@pr-primary-blt: - shard-bmg: NOTRUN -> [SKIP][88] ([Intel XE#2234] / [Intel XE#2850]) +2 other tests skip [88]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_psr@pr-primary-blt.html * igt@kms_psr@pr-suspend: - shard-ptl: NOTRUN -> [SKIP][89] ([Intel XE#1406]) +1 other test skip [89]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-1/igt@kms_psr@pr-suspend.html * igt@kms_rotation_crc@sprite-rotation-90: - shard-bmg: NOTRUN -> [SKIP][90] ([Intel XE#3904] / [Intel XE#7342]) [90]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@kms_rotation_crc@sprite-rotation-90.html * igt@xe_configfs@ctx-restore-mid-bb: - shard-bmg: [PASS][91] -> [ABORT][92] ([Intel XE#9463]) [91]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-bmg-3/igt@xe_configfs@ctx-restore-mid-bb.html [92]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-3/igt@xe_configfs@ctx-restore-mid-bb.html * igt@xe_create@multigpu-create-massive-size: - shard-bmg: NOTRUN -> [SKIP][93] ([Intel XE#2504] / [Intel XE#7319] / [Intel XE#7350]) [93]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@xe_create@multigpu-create-massive-size.html * igt@xe_evict@evict-mixed-threads-small-multi-queue: - shard-ptl: NOTRUN -> [SKIP][94] ([Intel XE#5764]) [94]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@xe_evict@evict-mixed-threads-small-multi-queue.html * igt@xe_evict@evict-small-multi-queue: - shard-lnl: NOTRUN -> [SKIP][95] ([Intel XE#6540] / [Intel XE#688]) [95]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@xe_evict@evict-small-multi-queue.html * igt@xe_exec_balancer@many-execqueues-cm-parallel-userptr-invalidate: - shard-ptl: NOTRUN -> [SKIP][96] ([Intel XE#7482]) +5 other tests skip [96]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-2/igt@xe_exec_balancer@many-execqueues-cm-parallel-userptr-invalidate.html * igt@xe_exec_balancer@twice-cm-virtual-userptr: - shard-lnl: NOTRUN -> [SKIP][97] ([Intel XE#7482]) +2 other tests skip [97]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@xe_exec_balancer@twice-cm-virtual-userptr.html * igt@xe_exec_basic@multigpu-many-execqueues-many-vm-userptr-rebind: - shard-lnl: NOTRUN -> [SKIP][98] ([Intel XE#1392]) [98]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@xe_exec_basic@multigpu-many-execqueues-many-vm-userptr-rebind.html * igt@xe_exec_basic@multigpu-no-exec-basic-defer-mmap: - shard-ptl: NOTRUN -> [SKIP][99] ([Intel XE#5575] / [Intel XE#7484]) +4 other tests skip [99]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@xe_exec_basic@multigpu-no-exec-basic-defer-mmap.html * igt@xe_exec_basic@multigpu-no-exec-userptr: - shard-bmg: NOTRUN -> [SKIP][100] ([Intel XE#2322] / [Intel XE#7372]) +2 other tests skip [100]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@xe_exec_basic@multigpu-no-exec-userptr.html * igt@xe_exec_fault_mode@many-execqueues-multi-queue-prefetch: - shard-ptl: NOTRUN -> [SKIP][101] ([Intel XE#8374]) +5 other tests skip [101]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@xe_exec_fault_mode@many-execqueues-multi-queue-prefetch.html * igt@xe_exec_fault_mode@many-execqueues-multi-queue-userptr-prefetch: - shard-bmg: NOTRUN -> [SKIP][102] ([Intel XE#8374]) +3 other tests skip [102]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@xe_exec_fault_mode@many-execqueues-multi-queue-userptr-prefetch.html * igt@xe_exec_mix_modes@exec-multi-queue-spinner-interrupted-lr: - shard-ptl: NOTRUN -> [SKIP][103] ([Intel XE#9003]) [103]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-1/igt@xe_exec_mix_modes@exec-multi-queue-spinner-interrupted-lr.html * igt@xe_exec_multi_queue@many-execs-preempt-mode-dyn-priority-smem: - shard-bmg: NOTRUN -> [SKIP][104] ([Intel XE#8364]) +4 other tests skip [104]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@xe_exec_multi_queue@many-execs-preempt-mode-dyn-priority-smem.html * igt@xe_exec_multi_queue@one-queue-preempt-mode-fault-close-fd: - shard-ptl: NOTRUN -> [SKIP][105] ([Intel XE#8364]) +1 other test skip [105]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@xe_exec_multi_queue@one-queue-preempt-mode-fault-close-fd.html * igt@xe_exec_multi_queue@two-queues-basic-smem: - shard-lnl: NOTRUN -> [SKIP][106] ([Intel XE#8364]) +2 other tests skip [106]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@xe_exec_multi_queue@two-queues-basic-smem.html * igt@xe_exec_reset@gt-reset-fault-injection: - shard-ptl: NOTRUN -> [DMESG-WARN][107] ([Intel XE#9130]) [107]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-3/igt@xe_exec_reset@gt-reset-fault-injection.html * igt@xe_exec_reset@gt-stress-reset-pm-transition: - shard-bmg: [PASS][108] -> [DMESG-WARN][109] ([Intel XE#8649] / [Intel XE#8652]) [108]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-bmg-1/igt@xe_exec_reset@gt-stress-reset-pm-transition.html [109]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-3/igt@xe_exec_reset@gt-stress-reset-pm-transition.html * igt@xe_exec_threads@threads-hang-fd-userptr-invalidate-race: - shard-lnl: [PASS][110] -> [FAIL][111] ([Intel XE#9096] / [Intel XE#9297]) [110]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-lnl-1/igt@xe_exec_threads@threads-hang-fd-userptr-invalidate-race.html [111]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-1/igt@xe_exec_threads@threads-hang-fd-userptr-invalidate-race.html * igt@xe_exec_threads@threads-multi-queue-cm-fd-userptr-rebind: - shard-ptl: NOTRUN -> [SKIP][112] ([Intel XE#8378]) +2 other tests skip [112]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-3/igt@xe_exec_threads@threads-multi-queue-cm-fd-userptr-rebind.html * igt@xe_exec_threads@threads-multi-queue-cm-shared-vm-userptr-invalidate-race: - shard-bmg: NOTRUN -> [SKIP][113] ([Intel XE#8378]) +1 other test skip [113]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@xe_exec_threads@threads-multi-queue-cm-shared-vm-userptr-invalidate-race.html * igt@xe_live_ktest@xe_eudebug: - shard-bmg: NOTRUN -> [SKIP][114] ([Intel XE#2833]) [114]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@xe_live_ktest@xe_eudebug.html * igt@xe_madvise@atomic-global: - shard-ptl: NOTRUN -> [SKIP][115] ([Intel XE#7980]) [115]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@xe_madvise@atomic-global.html * igt@xe_mmap@pci-membarrier-bad-object: - shard-lnl: NOTRUN -> [SKIP][116] ([Intel XE#5100] / [Intel XE#7322] / [Intel XE#7408]) [116]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@xe_mmap@pci-membarrier-bad-object.html * igt@xe_multigpu_svm@mgpu-atomic-op-conflict: - shard-lnl: NOTRUN -> [SKIP][117] ([Intel XE#6964]) [117]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@xe_multigpu_svm@mgpu-atomic-op-conflict.html * igt@xe_multigpu_svm@mgpu-concurrent-access-basic: - shard-bmg: NOTRUN -> [SKIP][118] ([Intel XE#6964]) [118]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@xe_multigpu_svm@mgpu-concurrent-access-basic.html * igt@xe_page_reclaim@binds-null-vma: - shard-lnl: NOTRUN -> [SKIP][119] ([Intel XE#7793]) +1 other test skip [119]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@xe_page_reclaim@binds-null-vma.html * igt@xe_pat@pat-sw-hw-compare: - shard-bmg: NOTRUN -> [FAIL][120] ([Intel XE#7695]) [120]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@xe_pat@pat-sw-hw-compare.html * igt@xe_peer2peer@read: - shard-bmg: NOTRUN -> [SKIP][121] ([Intel XE#2427] / [Intel XE#6953] / [Intel XE#7326] / [Intel XE#7353]) [121]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@xe_peer2peer@read.html * igt@xe_pm@d3cold-basic: - shard-ptl: NOTRUN -> [SKIP][122] ([Intel XE#5741]) [122]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-2/igt@xe_pm@d3cold-basic.html * igt@xe_pm@s3-mocs: - shard-bmg: [PASS][123] -> [ABORT][124] ([Intel XE#9362]) [123]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-bmg-1/igt@xe_pm@s3-mocs.html [124]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-7/igt@xe_pm@s3-mocs.html * igt@xe_pm@s4-basic-exec: - shard-ptl: [PASS][125] -> [ABORT][126] ([Intel XE#9362]) [125]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-ptl-6/igt@xe_pm@s4-basic-exec.html [126]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-2/igt@xe_pm@s4-basic-exec.html * igt@xe_pm@s4-d3hot-basic-exec: - shard-ptl: [PASS][127] -> [DMESG-WARN][128] ([Intel XE#7727]) [127]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-ptl-3/igt@xe_pm@s4-d3hot-basic-exec.html [128]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@xe_pm@s4-d3hot-basic-exec.html * igt@xe_pm@s4-exec-after: - shard-lnl: [PASS][129] -> [ABORT][130] ([Intel XE#9362] / [Intel XE#9426]) [129]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-lnl-8/igt@xe_pm@s4-exec-after.html [130]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-4/igt@xe_pm@s4-exec-after.html * igt@xe_pm@s4-mocs: - shard-lnl: [PASS][131] -> [DMESG-WARN][132] ([Intel XE#7727]) +1 other test dmesg-warn [131]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-lnl-3/igt@xe_pm@s4-mocs.html [132]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-2/igt@xe_pm@s4-mocs.html * igt@xe_query@multigpu-query-invalid-cs-cycles: - shard-bmg: NOTRUN -> [SKIP][133] ([Intel XE#944]) [133]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@xe_query@multigpu-query-invalid-cs-cycles.html * igt@xe_query@multigpu-query-invalid-size: - shard-ptl: NOTRUN -> [SKIP][134] ([Intel XE#6019]) [134]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@xe_query@multigpu-query-invalid-size.html * igt@xe_query@multigpu-query-invalid-uc-fw-version-mbz: - shard-lnl: NOTRUN -> [SKIP][135] ([Intel XE#944]) [135]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@xe_query@multigpu-query-invalid-uc-fw-version-mbz.html * igt@xe_survivability@runtime-survivability: - shard-bmg: NOTRUN -> [DMESG-WARN][136] ([Intel XE#8966]) [136]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@xe_survivability@runtime-survivability.html #### Possible fixes #### * igt@kms_async_flips@alternate-sync-async-flip: - shard-ptl: [FAIL][137] ([Intel XE#6078]) -> [PASS][138] +1 other test pass [137]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-ptl-2/igt@kms_async_flips@alternate-sync-async-flip.html [138]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-7/igt@kms_async_flips@alternate-sync-async-flip.html * igt@kms_ccs@crc-primary-suspend-4-tiled-lnl-ccs@pipe-c-edp-1: - shard-ptl: [ABORT][139] ([Intel XE#7084] / [Intel XE#9364]) -> [PASS][140] +1 other test pass [139]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-ptl-7/igt@kms_ccs@crc-primary-suspend-4-tiled-lnl-ccs@pipe-c-edp-1.html [140]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-3/igt@kms_ccs@crc-primary-suspend-4-tiled-lnl-ccs@pipe-c-edp-1.html * igt@kms_flip@flip-vs-suspend-interruptible: - shard-ptl: [ABORT][141] ([Intel XE#9362]) -> [PASS][142] +4 other tests pass [141]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-ptl-2/igt@kms_flip@flip-vs-suspend-interruptible.html [142]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-5/igt@kms_flip@flip-vs-suspend-interruptible.html * igt@kms_vrr@flip-basic-fastset: - shard-ptl: [FAIL][143] ([Intel XE#4227] / [Intel XE#7397]) -> [PASS][144] [143]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-ptl-2/igt@kms_vrr@flip-basic-fastset.html [144]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-7/igt@kms_vrr@flip-basic-fastset.html * igt@kms_vrr@flip-basic-fastset@pipe-a-edp-1: - shard-ptl: [FAIL][145] ([Intel XE#6293] / [Intel XE#7397]) -> [PASS][146] [145]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-ptl-2/igt@kms_vrr@flip-basic-fastset@pipe-a-edp-1.html [146]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-7/igt@kms_vrr@flip-basic-fastset@pipe-a-edp-1.html * igt@xe_exec_reset@gt-stress-reset-mixed-engine-usage: - shard-lnl: [DMESG-WARN][147] ([Intel XE#8652]) -> [PASS][148] [147]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-lnl-7/igt@xe_exec_reset@gt-stress-reset-mixed-engine-usage.html [148]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-7/igt@xe_exec_reset@gt-stress-reset-mixed-engine-usage.html * igt@xe_fault_injection@exec-queue-create-fail-xe_exec_queue_create_bind: - shard-bmg: [ABORT][149] ([Intel XE#9463]) -> [PASS][150] [149]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-bmg-5/igt@xe_fault_injection@exec-queue-create-fail-xe_exec_queue_create_bind.html [150]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-1/igt@xe_fault_injection@exec-queue-create-fail-xe_exec_queue_create_bind.html * igt@xe_pm@s4-basic: - shard-ptl: [DMESG-WARN][151] ([Intel XE#7727]) -> [PASS][152] [151]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-ptl-1/igt@xe_pm@s4-basic.html [152]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-4/igt@xe_pm@s4-basic.html * igt@xe_pm@s4-vm-bind-prefetch: - shard-lnl: [ABORT][153] ([Intel XE#9362]) -> [PASS][154] [153]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-lnl-8/igt@xe_pm@s4-vm-bind-prefetch.html [154]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-lnl-8/igt@xe_pm@s4-vm-bind-prefetch.html * igt@xe_pm_residency@gt-c6-freeze@gt0: - shard-bmg: [FAIL][155] ([Intel XE#9254]) -> [PASS][156] +1 other test pass [155]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-bmg-7/igt@xe_pm_residency@gt-c6-freeze@gt0.html [156]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-4/igt@xe_pm_residency@gt-c6-freeze@gt0.html #### Warnings #### * igt@kms_hdr@brightness-with-hdr: - shard-bmg: [SKIP][157] ([Intel XE#3374] / [Intel XE#3544]) -> [SKIP][158] ([Intel XE#3544]) [157]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-bmg-7/igt@kms_hdr@brightness-with-hdr.html [158]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-4/igt@kms_hdr@brightness-with-hdr.html * igt@kms_tiled_display@basic-test-pattern: - shard-bmg: [SKIP][159] ([Intel XE#2426] / [Intel XE#5848]) -> [FAIL][160] ([Intel XE#1729] / [Intel XE#7424]) [159]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-bmg-2/igt@kms_tiled_display@basic-test-pattern.html [160]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-bmg-4/igt@kms_tiled_display@basic-test-pattern.html * igt@xe_pat@pat-sw-hw-suspend: - shard-ptl: [FAIL][161] ([Intel XE#7695]) -> [ABORT][162] ([Intel XE#9362]) [161]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-ptl-3/igt@xe_pat@pat-sw-hw-suspend.html [162]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-8/igt@xe_pat@pat-sw-hw-suspend.html * igt@xe_pm@s4-vm-bind-unbind-all: - shard-ptl: [ABORT][163] ([Intel XE#9362]) -> [DMESG-WARN][164] ([Intel XE#7727]) [163]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493/shard-ptl-8/igt@xe_pm@s4-vm-bind-unbind-all.html [164]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/shard-ptl-6/igt@xe_pm@s4-vm-bind-unbind-all.html [Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124 [Intel XE#1178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1178 [Intel XE#1392]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1392 [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#1439]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1439 [Intel XE#1489]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1489 [Intel XE#1729]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1729 [Intel XE#2234]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2234 [Intel XE#2252]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2252 [Intel XE#2311]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2311 [Intel XE#2313]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2313 [Intel XE#2316]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2316 [Intel XE#2320]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2320 [Intel XE#2321]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2321 [Intel XE#2322]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2322 [Intel XE#2325]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2325 [Intel XE#2327]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2327 [Intel XE#2426]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2426 [Intel XE#2427]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2427 [Intel XE#2504]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2504 [Intel XE#2763]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2763 [Intel XE#2833]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2833 [Intel XE#2850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2850 [Intel XE#2887]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2887 [Intel XE#2893]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2893 [Intel XE#3098]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3098 [Intel XE#3141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3141 [Intel XE#3304]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3304 [Intel XE#3374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3374 [Intel XE#3432]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3432 [Intel XE#3544]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3544 [Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367 [Intel XE#3718]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3718 [Intel XE#373]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/373 [Intel XE#3904]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3904 [Intel XE#4141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4141 [Intel XE#4227]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4227 [Intel XE#4596]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4596 [Intel XE#4609]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4609 [Intel XE#5020]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5020 [Intel XE#5100]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5100 [Intel XE#5575]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5575 [Intel XE#5741]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5741 [Intel XE#5764]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5764 [Intel XE#5800]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5800 [Intel XE#5808]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5808 [Intel XE#5812]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5812 [Intel XE#5822]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5822 [Intel XE#5823]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5823 [Intel XE#5835]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5835 [Intel XE#5846]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5846 [Intel XE#5848]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5848 [Intel XE#5854]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5854 [Intel XE#5900]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5900 [Intel XE#5907]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5907 [Intel XE#5917]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5917 [Intel XE#6019]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6019 [Intel XE#6078]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6078 [Intel XE#6174]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6174 [Intel XE#6293]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6293 [Intel XE#6312]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6312 [Intel XE#651]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/651 [Intel XE#6540]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6540 [Intel XE#656]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/656 [Intel XE#688]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/688 [Intel XE#6886]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6886 [Intel XE#6918]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6918 [Intel XE#6953]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6953 [Intel XE#6964]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6964 [Intel XE#6969]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6969 [Intel XE#6974]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6974 [Intel XE#7061]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7061 [Intel XE#7084]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7084 [Intel XE#7178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7178 [Intel XE#7179]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7179 [Intel XE#7283]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7283 [Intel XE#7304]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7304 [Intel XE#7308]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7308 [Intel XE#7319]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7319 [Intel XE#7322]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7322 [Intel XE#7326]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7326 [Intel XE#7342]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7342 [Intel XE#7345]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7345 [Intel XE#7348]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7348 [Intel XE#7350]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7350 [Intel XE#7351]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7351 [Intel XE#7353]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7353 [Intel XE#7355]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7355 [Intel XE#7356]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7356 [Intel XE#7358]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7358 [Intel XE#7372]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7372 [Intel XE#7374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7374 [Intel XE#7383]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7383 [Intel XE#7386]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7386 [Intel XE#7397]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7397 [Intel XE#7399]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7399 [Intel XE#7408]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7408 [Intel XE#7424]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7424 [Intel XE#7482]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7482 [Intel XE#7484]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7484 [Intel XE#7642]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7642 [Intel XE#7695]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7695 [Intel XE#7727]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7727 [Intel XE#7793]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7793 [Intel XE#7865]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7865 [Intel XE#7905]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7905 [Intel XE#7980]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7980 [Intel XE#8150]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8150 [Intel XE#8364]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8364 [Intel XE#8374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8374 [Intel XE#8378]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8378 [Intel XE#8391]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8391 [Intel XE#8395]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8395 [Intel XE#8396]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8396 [Intel XE#8649]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8649 [Intel XE#8652]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8652 [Intel XE#8966]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8966 [Intel XE#9003]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9003 [Intel XE#9009]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9009 [Intel XE#9096]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9096 [Intel XE#9130]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9130 [Intel XE#9254]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9254 [Intel XE#9297]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9297 [Intel XE#9333]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9333 [Intel XE#9362]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9362 [Intel XE#9364]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9364 [Intel XE#9426]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9426 [Intel XE#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944 [Intel XE#9463]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9463 Build changes ------------- * Linux: xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493 -> xe-pw-175261v1 IGT_9116: 9d4b6ef512b4e2e4d05129c6519313fd13a306d2 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git xe-5845-e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493: e6a6d431be7101c5cdbb1b5d97caa9c1ea9cb493 xe-pw-175261v1: 175261v1 == Logs == For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175261v1/index.html [-- Attachment #2: Type: text/html, Size: 59811 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2] gpu/buddy: add range-restricted contiguous allocation fallback 2026-09-30 6:21 [PATCH v2] gpu/buddy: add range-restricted contiguous allocation fallback Arunpravin Paneer Selvam ` (3 preceding siblings ...) 2026-09-30 11:53 ` ✗ Xe.CI.FULL: failure " Patchwork @ 2026-10-01 7:06 ` Arunpravin Paneer Selvam 2026-10-01 18:28 ` Matthew Auld 5 siblings, 0 replies; 11+ messages in thread From: Arunpravin Paneer Selvam @ 2026-10-01 7:06 UTC (permalink / raw) To: matthew.auld, dri-devel, intel-gfx, intel-xe, amd-gfx Cc: christian.koenig, alexander.deucher, Anand.Raghavendra Hi Matthew, Could you please review this patch. Thanks, Arun. On 9/30/2026 11:51 AM, Arunpravin Paneer Selvam wrote: > From: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com> > > A range + contiguous allocation (e.g. a scanout FB confined to the > CPU-visible VRAM aperture) rounds its size up to a power of two and > requires a naturally aligned free block of that size; on a fragmented > aperture no such aligned block may exist even though enough contiguous > space is free, so the allocation fails with -ENOSPC. > > The non-range contiguous path already recovers from this via > __alloc_contig_try_harder(), which stitches an exact-size span from > smaller adjacent blocks, but that fallback was unreachable once > GPU_BUDDY_RANGE_ALLOCATION was set. Give __alloc_contig_try_harder() > a [range_start, range_end) window and route the range + contiguous > case through it: each candidate placement is confined to the window > and aligned to min_block_size. Non-range callers pass [0, mm->size), > where the guards are no-ops, so the existing behaviour is unchanged. > A KUnit regression test covers the fragmentation pattern. > > Resolves the igt@kms_plane@plane-panning-bottom-right@pipe-a/pipe-b > regression. > > v2: > - Drop the split-undo patch; the range-bias search always descends to > an exact-order block or fails the split (already handled), so the > extra undo was redundant. (Matthew) > - Verified this fallback alone fixes the kms_plane regression. > > Fixes: 1ad5e807f716 ("gpu/buddy: replace dual-tree/force_merge with decoupled dirty tracker") > Assisted-by: Claude:claude-opus-4-8 > Cc: Matthew Auld <matthew.auld@intel.com> > Cc: Christian König <christian.koenig@amd.com> > Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com> > --- > drivers/gpu/buddy.c | 88 ++++++++++++++++-------------- > drivers/gpu/tests/gpu_buddy_test.c | 83 ++++++++++++++++++++++++++-- > 2 files changed, 126 insertions(+), 45 deletions(-) > > diff --git a/drivers/gpu/buddy.c b/drivers/gpu/buddy.c > index 2f2aaadafe35..5265e1f6a318 100644 > --- a/drivers/gpu/buddy.c > +++ b/drivers/gpu/buddy.c > @@ -1685,26 +1685,14 @@ static int __gpu_buddy_alloc_range(struct gpu_buddy *mm, > blocks, total_allocated_on_err); > } > > -static int __alloc_contig_aligned_retry(struct gpu_buddy *mm, > - u64 unaligned_offset, > - u64 size, > - u64 min_block_size, > - unsigned long flags, > - struct list_head *blocks) > -{ > - u64 aligned_offset = round_down(unaligned_offset, min_block_size); > - > - return __gpu_buddy_alloc_range(mm, aligned_offset, size, flags, > - NULL, blocks); > -} > - > static int __alloc_contig_try_harder(struct gpu_buddy *mm, > + u64 range_start, u64 range_end, > u64 size, > u64 min_block_size, > unsigned long flags, > struct list_head *blocks) > { > - u64 rhs_offset, lhs_offset, filled; > + u64 rhs_offset, lhs_offset, filled, aligned; > struct gpu_buddy_block *block; > struct rb_root *root; > struct rb_node *iter; > @@ -1734,20 +1722,24 @@ static int __alloc_contig_try_harder(struct gpu_buddy *mm, > flags, &filled, blocks); > if (err && err != -ENOSPC) > return err; > - if (!err && IS_ALIGNED(rhs_offset, min_block_size)) > + if (!err && IS_ALIGNED(rhs_offset, min_block_size) && > + rhs_offset >= range_start && rhs_offset + size <= range_end) > return 0; > if (!err) { > /* Allocate the unaligned RHS offset using round_down */ > gpu_buddy_free_list_internal(mm, blocks); > - err = __alloc_contig_aligned_retry(mm, rhs_offset, > - size, > - min_block_size, > - flags, blocks); > - if (!err) > - return 0; > - if (err != -ENOSPC) { > - gpu_buddy_free_list_internal(mm, blocks); > - return err; > + > + aligned = round_down(rhs_offset, min_block_size); > + if (aligned >= range_start && > + aligned + size <= range_end) { > + err = __gpu_buddy_alloc_range(mm, aligned, size, > + flags, NULL, blocks); > + if (!err) > + return 0; > + if (err != -ENOSPC) { > + gpu_buddy_free_list_internal(mm, blocks); > + return err; > + } > } > goto next; > } > @@ -1759,15 +1751,17 @@ static int __alloc_contig_try_harder(struct gpu_buddy *mm, > > /* Allocate the unaligned LHS offset using round_down */ > gpu_buddy_free_list_internal(mm, blocks); > - err = __alloc_contig_aligned_retry(mm, lhs_offset, > - size, > - min_block_size, > - flags, blocks); > - if (!err) > - return 0; > - if (err != -ENOSPC) { > - gpu_buddy_free_list_internal(mm, blocks); > - return err; > + > + aligned = round_down(lhs_offset, min_block_size); > + if (aligned >= range_start && aligned + size <= range_end) { > + err = __gpu_buddy_alloc_range(mm, aligned, size, > + flags, NULL, blocks); > + if (!err) > + return 0; > + if (err != -ENOSPC) { > + gpu_buddy_free_list_internal(mm, blocks); > + return err; > + } > } > next: > gpu_buddy_free_list_internal(mm, blocks); > @@ -2021,11 +2015,18 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm, > min_order = ilog2(min_block_size) - ilog2(mm->chunk_size); > > if (order > mm->max_order || size > mm->size) { > - if ((flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) && > - !(flags & GPU_BUDDY_RANGE_ALLOCATION)) > - return __alloc_contig_try_harder(mm, original_size, > + if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) { > + u64 range_start, range_end; > + > + range_start = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? start : 0; > + range_end = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? end : mm->size; > + > + return __alloc_contig_try_harder(mm, range_start, > + range_end, > + original_size, > original_min_size, > flags, blocks); > + } > > return -EINVAL; > } > @@ -2058,9 +2059,14 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm, > * Try contiguous block allocation through > * try harder method. > */ > - if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION && > - !(flags & GPU_BUDDY_RANGE_ALLOCATION)) { > - err = __alloc_contig_try_harder(mm, > + if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) { > + u64 range_start, range_end; > + > + range_start = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? start : 0; > + range_end = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? end : mm->size; > + > + err = __alloc_contig_try_harder(mm, range_start, > + range_end, > original_size, > original_min_size, > flags, > @@ -2068,9 +2074,9 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm, > if (!err) > return 0; > if (err != -ENOSPC) > - return err; > - goto err_free; > + goto err_free; > } > + > err = -ENOSPC; > goto err_free; > } while (1); > diff --git a/drivers/gpu/tests/gpu_buddy_test.c b/drivers/gpu/tests/gpu_buddy_test.c > index b75d32ca6ca0..2c445870b808 100644 > --- a/drivers/gpu/tests/gpu_buddy_test.c > +++ b/drivers/gpu/tests/gpu_buddy_test.c > @@ -1251,6 +1251,77 @@ static void gpu_test_buddy_alloc_contiguous(struct kunit *test) > gpu_buddy_fini(&mm); > } > > +static void gpu_test_buddy_alloc_range_contiguous(struct kunit *test) > +{ > + const unsigned long ps = SZ_4K, mm_size = 16 * ps; > + const unsigned long range_end = 8 * ps; > + struct gpu_buddy_block *block, *prev; > + LIST_HEAD(allocated); > + struct gpu_buddy mm; > + LIST_HEAD(pin_lo); > + LIST_HEAD(pin_hi); > + u64 total; > + > + KUNIT_ASSERT_FALSE_MSG(test, gpu_buddy_init(&mm, mm_size, ps), > + "buddy_init failed\n"); > + > + /* > + * Idea is to confine the test to the sub-range [0, 32K), which a 12K > + * contiguous request (rounded up to 16K) splits into two naturally > + * aligned 16K slots: [0, 16K) and [16K, 32K). We pin the first 4K page > + * of each slot ([0, 4K) and [16K, 20K)) so that neither aligned slot > + * can satisfy the rounded-up 16K allocation, yet the freed remainder > + * still leaves a contiguous 12K hole at offset 4K, which is page-aligned > + * but not 16K-aligned. A 12K contiguous+range allocation must therefore > + * fall back to stitching that span instead of returning -ENOSPC. > + */ > + KUNIT_ASSERT_FALSE_MSG(test, > + gpu_buddy_alloc_blocks(&mm, 0, ps, ps, ps, > + &pin_lo, 0), > + "failed to pin low page\n"); > + KUNIT_ASSERT_FALSE_MSG(test, > + gpu_buddy_alloc_blocks(&mm, 4 * ps, 5 * ps, ps, > + ps, &pin_hi, 0), > + "failed to pin high page\n"); > + > + /* No aligned 16K block is free; the range-aware fallback must stitch > + * the unaligned [ps, 4*ps) hole instead of returning -ENOSPC. > + */ > + KUNIT_ASSERT_FALSE_MSG(test, > + gpu_buddy_alloc_blocks(&mm, 0, range_end, 3 * ps, > + ps, &allocated, > + GPU_BUDDY_CONTIGUOUS_ALLOCATION | > + GPU_BUDDY_RANGE_ALLOCATION), > + "range-restricted contiguous alloc failed\n"); > + > + /* The result must be exactly 3*ps, contiguous, and inside the range. */ > + total = 0; > + prev = NULL; > + list_for_each_entry(block, &allocated, link) { > + u64 offset = gpu_buddy_block_offset(block); > + u64 bsize = gpu_buddy_block_size(&mm, block); > + > + KUNIT_EXPECT_TRUE_MSG(test, offset + bsize <= range_end, > + "block [%llx, %llx) outside range\n", > + offset, offset + bsize); > + if (prev) > + KUNIT_EXPECT_EQ_MSG(test, > + gpu_buddy_block_offset(prev) + > + gpu_buddy_block_size(&mm, prev), > + offset, > + "block at %llx not contiguous\n", > + offset); > + prev = block; > + total += bsize; > + } > + KUNIT_EXPECT_EQ(test, total, 3 * ps); > + > + gpu_buddy_free_list(&mm, &allocated, 0); > + gpu_buddy_free_list(&mm, &pin_lo, 0); > + gpu_buddy_free_list(&mm, &pin_hi, 0); > + gpu_buddy_fini(&mm); > +} > + > static void gpu_test_buddy_alloc_pathological(struct kunit *test) > { > u64 mm_size, size, start = 0; > @@ -1534,10 +1605,13 @@ static void gpu_test_buddy_alloc_exceeds_max_order(struct kunit *test) > GPU_BUDDY_RANGE_ALLOCATION); > KUNIT_EXPECT_EQ(test, err, -EINVAL); > > - /* CONTIGUOUS + RANGE should return -EINVAL (no try_harder for RANGE) */ > - err = gpu_buddy_alloc_blocks(&mm, 0, mm_size, size, SZ_4K, &blocks, > - GPU_BUDDY_CONTIGUOUS_ALLOCATION | GPU_BUDDY_RANGE_ALLOCATION); > - KUNIT_EXPECT_EQ(test, err, -EINVAL); > + /* CONTIGUOUS + RANGE should succeed via the range-aware try_harder */ > + KUNIT_ASSERT_FALSE_MSG(test, gpu_buddy_alloc_blocks(&mm, 0, mm_size, size, > + SZ_4K, &blocks, > + GPU_BUDDY_CONTIGUOUS_ALLOCATION | > + GPU_BUDDY_RANGE_ALLOCATION), > + "range contiguous alloc hit an error size=%llu\n", size); > + gpu_buddy_free_list(&mm, &blocks, 0); > > gpu_buddy_fini(&mm); > } > @@ -1603,6 +1677,7 @@ static struct kunit_case gpu_buddy_tests[] = { > KUNIT_CASE(gpu_test_buddy_alloc_pessimistic), > KUNIT_CASE(gpu_test_buddy_alloc_pathological), > KUNIT_CASE(gpu_test_buddy_alloc_contiguous), > + KUNIT_CASE(gpu_test_buddy_alloc_range_contiguous), > KUNIT_CASE(gpu_test_buddy_alloc_clear), > KUNIT_CASE(gpu_test_buddy_alloc_range), > KUNIT_CASE(gpu_test_buddy_alloc_range_bias), > > base-commit: 744f262401cc2e1f3827496c72a47e072d31a852 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2] gpu/buddy: add range-restricted contiguous allocation fallback 2026-09-30 6:21 [PATCH v2] gpu/buddy: add range-restricted contiguous allocation fallback Arunpravin Paneer Selvam ` (4 preceding siblings ...) 2026-10-01 7:06 ` [PATCH v2] " Arunpravin Paneer Selvam @ 2026-10-01 18:28 ` Matthew Auld 2026-10-05 14:14 ` Arunpravin Paneer Selvam 5 siblings, 1 reply; 11+ messages in thread From: Matthew Auld @ 2026-10-01 18:28 UTC (permalink / raw) To: Arunpravin Paneer Selvam, dri-devel, intel-gfx, intel-xe, amd-gfx Cc: christian.koenig, alexander.deucher, Anand.Raghavendra On 30/09/2026 07:21, Arunpravin Paneer Selvam wrote: > From: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com> > > A range + contiguous allocation (e.g. a scanout FB confined to the > CPU-visible VRAM aperture) rounds its size up to a power of two and > requires a naturally aligned free block of that size; on a fragmented > aperture no such aligned block may exist even though enough contiguous > space is free, so the allocation fails with -ENOSPC. > > The non-range contiguous path already recovers from this via > __alloc_contig_try_harder(), which stitches an exact-size span from > smaller adjacent blocks, but that fallback was unreachable once > GPU_BUDDY_RANGE_ALLOCATION was set. Give __alloc_contig_try_harder() > a [range_start, range_end) window and route the range + contiguous > case through it: each candidate placement is confined to the window > and aligned to min_block_size. Non-range callers pass [0, mm->size), > where the guards are no-ops, so the existing behaviour is unchanged. > A KUnit regression test covers the fragmentation pattern. > > Resolves the igt@kms_plane@plane-panning-bottom-right@pipe-a/pipe-b > regression. > > v2: > - Drop the split-undo patch; the range-bias search always descends to > an exact-order block or fails the split (already handled), so the > extra undo was redundant. (Matthew) > - Verified this fallback alone fixes the kms_plane regression. > > Fixes: 1ad5e807f716 ("gpu/buddy: replace dual-tree/force_merge with decoupled dirty tracker") Patch looks more like totally new functionally/feature, so the fixes here is maybe unexpected? Did something in that fixes commit change something such that the try_harder is now needed, but that needs some expansion with bias + contig? Do we know exactly what changed here? > Assisted-by: Claude:claude-opus-4-8 Assisted-by: LLM > Cc: Matthew Auld <matthew.auld@intel.com> > Cc: Christian König <christian.koenig@amd.com> > Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com> > --- > drivers/gpu/buddy.c | 88 ++++++++++++++++-------------- > drivers/gpu/tests/gpu_buddy_test.c | 83 ++++++++++++++++++++++++++-- > 2 files changed, 126 insertions(+), 45 deletions(-) > > diff --git a/drivers/gpu/buddy.c b/drivers/gpu/buddy.c > index 2f2aaadafe35..5265e1f6a318 100644 > --- a/drivers/gpu/buddy.c > +++ b/drivers/gpu/buddy.c > @@ -1685,26 +1685,14 @@ static int __gpu_buddy_alloc_range(struct gpu_buddy *mm, > blocks, total_allocated_on_err); > } > > -static int __alloc_contig_aligned_retry(struct gpu_buddy *mm, > - u64 unaligned_offset, > - u64 size, > - u64 min_block_size, > - unsigned long flags, > - struct list_head *blocks) > -{ > - u64 aligned_offset = round_down(unaligned_offset, min_block_size); > - > - return __gpu_buddy_alloc_range(mm, aligned_offset, size, flags, > - NULL, blocks); > -} > - > static int __alloc_contig_try_harder(struct gpu_buddy *mm, > + u64 range_start, u64 range_end, > u64 size, > u64 min_block_size, > unsigned long flags, > struct list_head *blocks) > { > - u64 rhs_offset, lhs_offset, filled; > + u64 rhs_offset, lhs_offset, filled, aligned; > struct gpu_buddy_block *block; > struct rb_root *root; > struct rb_node *iter; > @@ -1734,20 +1722,24 @@ static int __alloc_contig_try_harder(struct gpu_buddy *mm, > flags, &filled, blocks); > if (err && err != -ENOSPC) > return err; > - if (!err && IS_ALIGNED(rhs_offset, min_block_size)) > + if (!err && IS_ALIGNED(rhs_offset, min_block_size) && > + rhs_offset >= range_start && rhs_offset + size <= range_end) > return 0; > if (!err) { > /* Allocate the unaligned RHS offset using round_down */ > gpu_buddy_free_list_internal(mm, blocks); > - err = __alloc_contig_aligned_retry(mm, rhs_offset, > - size, > - min_block_size, > - flags, blocks); > - if (!err) > - return 0; > - if (err != -ENOSPC) { > - gpu_buddy_free_list_internal(mm, blocks); > - return err; > + > + aligned = round_down(rhs_offset, min_block_size); > + if (aligned >= range_start && > + aligned + size <= range_end) { > + err = __gpu_buddy_alloc_range(mm, aligned, size, > + flags, NULL, blocks); Did you consider doing a bias-range for [start, end] using min_block_size and using what it returns as the starting point, extending left/right? If that fails advance start and try again? Maybe what you have here is much better for the case you have in mind? > + if (!err) > + return 0; > + if (err != -ENOSPC) { > + gpu_buddy_free_list_internal(mm, blocks); > + return err; > + } > } > goto next; > } > @@ -1759,15 +1751,17 @@ static int __alloc_contig_try_harder(struct gpu_buddy *mm, > > /* Allocate the unaligned LHS offset using round_down */ > gpu_buddy_free_list_internal(mm, blocks); > - err = __alloc_contig_aligned_retry(mm, lhs_offset, > - size, > - min_block_size, > - flags, blocks); > - if (!err) > - return 0; > - if (err != -ENOSPC) { > - gpu_buddy_free_list_internal(mm, blocks); > - return err; > + > + aligned = round_down(lhs_offset, min_block_size); > + if (aligned >= range_start && aligned + size <= range_end) { > + err = __gpu_buddy_alloc_range(mm, aligned, size, > + flags, NULL, blocks); > + if (!err) > + return 0; > + if (err != -ENOSPC) { > + gpu_buddy_free_list_internal(mm, blocks); > + return err; > + } > } > next: > gpu_buddy_free_list_internal(mm, blocks); > @@ -2021,11 +2015,18 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm, > min_order = ilog2(min_block_size) - ilog2(mm->chunk_size); > > if (order > mm->max_order || size > mm->size) { > - if ((flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) && > - !(flags & GPU_BUDDY_RANGE_ALLOCATION)) > - return __alloc_contig_try_harder(mm, original_size, > + if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) { > + u64 range_start, range_end; > + > + range_start = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? start : 0; > + range_end = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? end : mm->size; > + > + return __alloc_contig_try_harder(mm, range_start, > + range_end, > + original_size, > original_min_size, > flags, blocks); > + } > > return -EINVAL; > } > @@ -2058,9 +2059,14 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm, > * Try contiguous block allocation through > * try harder method. > */ > - if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION && > - !(flags & GPU_BUDDY_RANGE_ALLOCATION)) { > - err = __alloc_contig_try_harder(mm, > + if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) { > + u64 range_start, range_end; > + > + range_start = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? start : 0; > + range_end = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? end : mm->size; > + > + err = __alloc_contig_try_harder(mm, range_start, > + range_end, > original_size, > original_min_size, > flags, > @@ -2068,9 +2074,9 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm, > if (!err) > return 0; > if (err != -ENOSPC) > - return err; > - goto err_free; > + goto err_free; > } > + > err = -ENOSPC; > goto err_free; > } while (1); > diff --git a/drivers/gpu/tests/gpu_buddy_test.c b/drivers/gpu/tests/gpu_buddy_test.c > index b75d32ca6ca0..2c445870b808 100644 > --- a/drivers/gpu/tests/gpu_buddy_test.c > +++ b/drivers/gpu/tests/gpu_buddy_test.c > @@ -1251,6 +1251,77 @@ static void gpu_test_buddy_alloc_contiguous(struct kunit *test) > gpu_buddy_fini(&mm); > } > > +static void gpu_test_buddy_alloc_range_contiguous(struct kunit *test) > +{ > + const unsigned long ps = SZ_4K, mm_size = 16 * ps; > + const unsigned long range_end = 8 * ps; > + struct gpu_buddy_block *block, *prev; > + LIST_HEAD(allocated); > + struct gpu_buddy mm; > + LIST_HEAD(pin_lo); > + LIST_HEAD(pin_hi); > + u64 total; > + > + KUNIT_ASSERT_FALSE_MSG(test, gpu_buddy_init(&mm, mm_size, ps), > + "buddy_init failed\n"); > + > + /* > + * Idea is to confine the test to the sub-range [0, 32K), which a 12K > + * contiguous request (rounded up to 16K) splits into two naturally > + * aligned 16K slots: [0, 16K) and [16K, 32K). We pin the first 4K page > + * of each slot ([0, 4K) and [16K, 20K)) so that neither aligned slot > + * can satisfy the rounded-up 16K allocation, yet the freed remainder > + * still leaves a contiguous 12K hole at offset 4K, which is page-aligned > + * but not 16K-aligned. A 12K contiguous+range allocation must therefore > + * fall back to stitching that span instead of returning -ENOSPC. > + */ > + KUNIT_ASSERT_FALSE_MSG(test, > + gpu_buddy_alloc_blocks(&mm, 0, ps, ps, ps, > + &pin_lo, 0), > + "failed to pin low page\n"); > + KUNIT_ASSERT_FALSE_MSG(test, > + gpu_buddy_alloc_blocks(&mm, 4 * ps, 5 * ps, ps, > + ps, &pin_hi, 0), > + "failed to pin high page\n"); > + > + /* No aligned 16K block is free; the range-aware fallback must stitch > + * the unaligned [ps, 4*ps) hole instead of returning -ENOSPC. > + */ > + KUNIT_ASSERT_FALSE_MSG(test, > + gpu_buddy_alloc_blocks(&mm, 0, range_end, 3 * ps, > + ps, &allocated, > + GPU_BUDDY_CONTIGUOUS_ALLOCATION | > + GPU_BUDDY_RANGE_ALLOCATION), > + "range-restricted contiguous alloc failed\n"); > + > + /* The result must be exactly 3*ps, contiguous, and inside the range. */ > + total = 0; > + prev = NULL; > + list_for_each_entry(block, &allocated, link) { > + u64 offset = gpu_buddy_block_offset(block); > + u64 bsize = gpu_buddy_block_size(&mm, block); > + > + KUNIT_EXPECT_TRUE_MSG(test, offset + bsize <= range_end, > + "block [%llx, %llx) outside range\n", > + offset, offset + bsize); > + if (prev) > + KUNIT_EXPECT_EQ_MSG(test, > + gpu_buddy_block_offset(prev) + > + gpu_buddy_block_size(&mm, prev), > + offset, > + "block at %llx not contiguous\n", > + offset); > + prev = block; > + total += bsize; > + } > + KUNIT_EXPECT_EQ(test, total, 3 * ps); > + > + gpu_buddy_free_list(&mm, &allocated, 0); > + gpu_buddy_free_list(&mm, &pin_lo, 0); > + gpu_buddy_free_list(&mm, &pin_hi, 0); > + gpu_buddy_fini(&mm); > +} > + > static void gpu_test_buddy_alloc_pathological(struct kunit *test) > { > u64 mm_size, size, start = 0; > @@ -1534,10 +1605,13 @@ static void gpu_test_buddy_alloc_exceeds_max_order(struct kunit *test) > GPU_BUDDY_RANGE_ALLOCATION); > KUNIT_EXPECT_EQ(test, err, -EINVAL); > > - /* CONTIGUOUS + RANGE should return -EINVAL (no try_harder for RANGE) */ > - err = gpu_buddy_alloc_blocks(&mm, 0, mm_size, size, SZ_4K, &blocks, > - GPU_BUDDY_CONTIGUOUS_ALLOCATION | GPU_BUDDY_RANGE_ALLOCATION); > - KUNIT_EXPECT_EQ(test, err, -EINVAL); > + /* CONTIGUOUS + RANGE should succeed via the range-aware try_harder */ > + KUNIT_ASSERT_FALSE_MSG(test, gpu_buddy_alloc_blocks(&mm, 0, mm_size, size, > + SZ_4K, &blocks, > + GPU_BUDDY_CONTIGUOUS_ALLOCATION | > + GPU_BUDDY_RANGE_ALLOCATION), > + "range contiguous alloc hit an error size=%llu\n", size); > + gpu_buddy_free_list(&mm, &blocks, 0); > > gpu_buddy_fini(&mm); > } > @@ -1603,6 +1677,7 @@ static struct kunit_case gpu_buddy_tests[] = { > KUNIT_CASE(gpu_test_buddy_alloc_pessimistic), > KUNIT_CASE(gpu_test_buddy_alloc_pathological), > KUNIT_CASE(gpu_test_buddy_alloc_contiguous), > + KUNIT_CASE(gpu_test_buddy_alloc_range_contiguous), > KUNIT_CASE(gpu_test_buddy_alloc_clear), > KUNIT_CASE(gpu_test_buddy_alloc_range), > KUNIT_CASE(gpu_test_buddy_alloc_range_bias), > > base-commit: 744f262401cc2e1f3827496c72a47e072d31a852 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2] gpu/buddy: add range-restricted contiguous allocation fallback 2026-10-01 18:28 ` Matthew Auld @ 2026-10-05 14:14 ` Arunpravin Paneer Selvam 2026-10-06 9:57 ` Matthew Auld 0 siblings, 1 reply; 11+ messages in thread From: Arunpravin Paneer Selvam @ 2026-10-05 14:14 UTC (permalink / raw) To: Matthew Auld, dri-devel, intel-gfx, intel-xe, amd-gfx Cc: christian.koenig, alexander.deucher, Anand.Raghavendra On 10/1/2026 11:58 PM, Matthew Auld wrote: > On 30/09/2026 07:21, Arunpravin Paneer Selvam wrote: >> From: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com> >> >> A range + contiguous allocation (e.g. a scanout FB confined to the >> CPU-visible VRAM aperture) rounds its size up to a power of two and >> requires a naturally aligned free block of that size; on a fragmented >> aperture no such aligned block may exist even though enough contiguous >> space is free, so the allocation fails with -ENOSPC. >> >> The non-range contiguous path already recovers from this via >> __alloc_contig_try_harder(), which stitches an exact-size span from >> smaller adjacent blocks, but that fallback was unreachable once >> GPU_BUDDY_RANGE_ALLOCATION was set. Give __alloc_contig_try_harder() >> a [range_start, range_end) window and route the range + contiguous >> case through it: each candidate placement is confined to the window >> and aligned to min_block_size. Non-range callers pass [0, mm->size), >> where the guards are no-ops, so the existing behaviour is unchanged. >> A KUnit regression test covers the fragmentation pattern. >> >> Resolves the igt@kms_plane@plane-panning-bottom-right@pipe-a/pipe-b >> regression. >> >> v2: >> - Drop the split-undo patch; the range-bias search always descends to >> an exact-order block or fails the split (already handled), so the >> extra undo was redundant. (Matthew) >> - Verified this fallback alone fixes the kms_plane regression. >> >> Fixes: 1ad5e807f716 ("gpu/buddy: replace dual-tree/force_merge with >> decoupled dirty tracker") > > Patch looks more like totally new functionally/feature, so the fixes > here is maybe unexpected? Did something in that fixes commit change > something such that the try_harder is now needed, but that needs some > expansion with bias + contig? Do we know exactly what changed here? That commit removed __force_merge(), which previously helped recover larger contiguous allocations on demand. As a result, some range-restricted contiguous allocation requests that used to succeed now fail with -ENOSPC (the kms_plane regression). This patch restores that capability through the try_harder() stitching logic, so the Fixes: tag reflects a regression introduced by that commit rather than new functionality. > >> Assisted-by: Claude:claude-opus-4-8 > > Assisted-by: LLM > >> Cc: Matthew Auld <matthew.auld@intel.com> >> Cc: Christian König <christian.koenig@amd.com> >> Signed-off-by: Arunpravin Paneer Selvam >> <Arunpravin.PaneerSelvam@amd.com> >> --- >> drivers/gpu/buddy.c | 88 ++++++++++++++++-------------- >> drivers/gpu/tests/gpu_buddy_test.c | 83 ++++++++++++++++++++++++++-- >> 2 files changed, 126 insertions(+), 45 deletions(-) >> >> diff --git a/drivers/gpu/buddy.c b/drivers/gpu/buddy.c >> index 2f2aaadafe35..5265e1f6a318 100644 >> --- a/drivers/gpu/buddy.c >> +++ b/drivers/gpu/buddy.c >> @@ -1685,26 +1685,14 @@ static int __gpu_buddy_alloc_range(struct >> gpu_buddy *mm, >> blocks, total_allocated_on_err); >> } >> -static int __alloc_contig_aligned_retry(struct gpu_buddy *mm, >> - u64 unaligned_offset, >> - u64 size, >> - u64 min_block_size, >> - unsigned long flags, >> - struct list_head *blocks) >> -{ >> - u64 aligned_offset = round_down(unaligned_offset, min_block_size); >> - >> - return __gpu_buddy_alloc_range(mm, aligned_offset, size, flags, >> - NULL, blocks); >> -} >> - >> static int __alloc_contig_try_harder(struct gpu_buddy *mm, >> + u64 range_start, u64 range_end, >> u64 size, >> u64 min_block_size, >> unsigned long flags, >> struct list_head *blocks) >> { >> - u64 rhs_offset, lhs_offset, filled; >> + u64 rhs_offset, lhs_offset, filled, aligned; >> struct gpu_buddy_block *block; >> struct rb_root *root; >> struct rb_node *iter; >> @@ -1734,20 +1722,24 @@ static int __alloc_contig_try_harder(struct >> gpu_buddy *mm, >> flags, &filled, blocks); >> if (err && err != -ENOSPC) >> return err; >> - if (!err && IS_ALIGNED(rhs_offset, min_block_size)) >> + if (!err && IS_ALIGNED(rhs_offset, min_block_size) && >> + rhs_offset >= range_start && rhs_offset + size <= >> range_end) >> return 0; >> if (!err) { >> /* Allocate the unaligned RHS offset using round_down */ >> gpu_buddy_free_list_internal(mm, blocks); >> - err = __alloc_contig_aligned_retry(mm, rhs_offset, >> - size, >> - min_block_size, >> - flags, blocks); >> - if (!err) >> - return 0; >> - if (err != -ENOSPC) { >> - gpu_buddy_free_list_internal(mm, blocks); >> - return err; >> + >> + aligned = round_down(rhs_offset, min_block_size); >> + if (aligned >= range_start && >> + aligned + size <= range_end) { >> + err = __gpu_buddy_alloc_range(mm, aligned, size, >> + flags, NULL, blocks); > > Did you consider doing a bias-range for [start, end] using > min_block_size and using what it returns as the starting point, > extending left/right? If that fails advance start and try again? Maybe > what you have here is much better for the case you have in mind? I took a closer look at the alloc_range_bias approach. My understanding is that this would repeatedly bias within [start, end], use the returned min_block_size block as a starting point, and then extend left/right to build the requested run. While that should work, every failed attempt may require splitting higher-order blocks to obtain a min_block_size block, followed by a free/merge back when the extension fails. The free-tree descent evaluates the available starting points through a tree walk without any splitting or allocation just for enumeration, so I kept that approach. Please let me know if there is a case where alloc_range_bias would provide an advantage over the free-tree descent. While evaluating it, I found two issues in the current try_harder() implementation: 1. It only searches free_tree[size_order]. This is insufficient when min_block_size < size. For example, for a 128 KiB allocation (order-5) with min_block_size = 4 KiB, free_tree[5] may be empty while two adjacent order-4 (64 KiB) blocks covering [64 KiB, 128 KiB] and [128 KiB, 192 KiB] are free. These blocks still form a valid order-5-sized contiguous run, but they can never appear in free_tree[5] because they are not mergeable buddies. As a result, a search that only considers free_tree[5] will never find this placement. v3 addresses this by walking the free tree from the requested size order down to min_order, while reusing the existing extend/stitch logic and min_block_size alignment checks unchanged. 2. The search is not restricted to the requested range. v3 confines the walk to [range_start, range_end], skipping candidates at or above range_end and stopping once the walk falls below range_start. This ensures that range-constrained allocations only consider free blocks within the requested window and avoids performing allocation/free attempts on blocks outside the specified range. For non-range callers, the effective window remains [0, mm->size], so the behavior is unchanged. Regards, Arun. > >> + if (!err) >> + return 0; >> + if (err != -ENOSPC) { >> + gpu_buddy_free_list_internal(mm, blocks); >> + return err; >> + } >> } >> goto next; >> } >> @@ -1759,15 +1751,17 @@ static int __alloc_contig_try_harder(struct >> gpu_buddy *mm, >> /* Allocate the unaligned LHS offset using round_down */ >> gpu_buddy_free_list_internal(mm, blocks); >> - err = __alloc_contig_aligned_retry(mm, lhs_offset, >> - size, >> - min_block_size, >> - flags, blocks); >> - if (!err) >> - return 0; >> - if (err != -ENOSPC) { >> - gpu_buddy_free_list_internal(mm, blocks); >> - return err; >> + >> + aligned = round_down(lhs_offset, min_block_size); >> + if (aligned >= range_start && aligned + size <= range_end) { >> + err = __gpu_buddy_alloc_range(mm, aligned, size, >> + flags, NULL, blocks); >> + if (!err) >> + return 0; >> + if (err != -ENOSPC) { >> + gpu_buddy_free_list_internal(mm, blocks); >> + return err; >> + } >> } >> next: >> gpu_buddy_free_list_internal(mm, blocks); >> @@ -2021,11 +2015,18 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm, >> min_order = ilog2(min_block_size) - ilog2(mm->chunk_size); >> if (order > mm->max_order || size > mm->size) { >> - if ((flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) && >> - !(flags & GPU_BUDDY_RANGE_ALLOCATION)) >> - return __alloc_contig_try_harder(mm, original_size, >> + if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) { >> + u64 range_start, range_end; >> + >> + range_start = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? >> start : 0; >> + range_end = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? end : >> mm->size; >> + >> + return __alloc_contig_try_harder(mm, range_start, >> + range_end, >> + original_size, >> original_min_size, >> flags, blocks); >> + } >> return -EINVAL; >> } >> @@ -2058,9 +2059,14 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm, >> * Try contiguous block allocation through >> * try harder method. >> */ >> - if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION && >> - !(flags & GPU_BUDDY_RANGE_ALLOCATION)) { >> - err = __alloc_contig_try_harder(mm, >> + if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) { >> + u64 range_start, range_end; >> + >> + range_start = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? >> start : 0; >> + range_end = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? >> end : mm->size; >> + >> + err = __alloc_contig_try_harder(mm, range_start, >> + range_end, >> original_size, >> original_min_size, >> flags, >> @@ -2068,9 +2074,9 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm, >> if (!err) >> return 0; >> if (err != -ENOSPC) >> - return err; >> - goto err_free; >> + goto err_free; >> } >> + >> err = -ENOSPC; >> goto err_free; >> } while (1); >> diff --git a/drivers/gpu/tests/gpu_buddy_test.c >> b/drivers/gpu/tests/gpu_buddy_test.c >> index b75d32ca6ca0..2c445870b808 100644 >> --- a/drivers/gpu/tests/gpu_buddy_test.c >> +++ b/drivers/gpu/tests/gpu_buddy_test.c >> @@ -1251,6 +1251,77 @@ static void >> gpu_test_buddy_alloc_contiguous(struct kunit *test) >> gpu_buddy_fini(&mm); >> } >> +static void gpu_test_buddy_alloc_range_contiguous(struct kunit *test) >> +{ >> + const unsigned long ps = SZ_4K, mm_size = 16 * ps; >> + const unsigned long range_end = 8 * ps; >> + struct gpu_buddy_block *block, *prev; >> + LIST_HEAD(allocated); >> + struct gpu_buddy mm; >> + LIST_HEAD(pin_lo); >> + LIST_HEAD(pin_hi); >> + u64 total; >> + >> + KUNIT_ASSERT_FALSE_MSG(test, gpu_buddy_init(&mm, mm_size, ps), >> + "buddy_init failed\n"); >> + >> + /* >> + * Idea is to confine the test to the sub-range [0, 32K), which >> a 12K >> + * contiguous request (rounded up to 16K) splits into two naturally >> + * aligned 16K slots: [0, 16K) and [16K, 32K). We pin the first >> 4K page >> + * of each slot ([0, 4K) and [16K, 20K)) so that neither aligned >> slot >> + * can satisfy the rounded-up 16K allocation, yet the freed >> remainder >> + * still leaves a contiguous 12K hole at offset 4K, which is >> page-aligned >> + * but not 16K-aligned. A 12K contiguous+range allocation must >> therefore >> + * fall back to stitching that span instead of returning -ENOSPC. >> + */ >> + KUNIT_ASSERT_FALSE_MSG(test, >> + gpu_buddy_alloc_blocks(&mm, 0, ps, ps, ps, >> + &pin_lo, 0), >> + "failed to pin low page\n"); >> + KUNIT_ASSERT_FALSE_MSG(test, >> + gpu_buddy_alloc_blocks(&mm, 4 * ps, 5 * ps, ps, >> + ps, &pin_hi, 0), >> + "failed to pin high page\n"); >> + >> + /* No aligned 16K block is free; the range-aware fallback must >> stitch >> + * the unaligned [ps, 4*ps) hole instead of returning -ENOSPC. >> + */ >> + KUNIT_ASSERT_FALSE_MSG(test, >> + gpu_buddy_alloc_blocks(&mm, 0, range_end, 3 * ps, >> + ps, &allocated, >> + GPU_BUDDY_CONTIGUOUS_ALLOCATION | >> + GPU_BUDDY_RANGE_ALLOCATION), >> + "range-restricted contiguous alloc failed\n"); >> + >> + /* The result must be exactly 3*ps, contiguous, and inside the >> range. */ >> + total = 0; >> + prev = NULL; >> + list_for_each_entry(block, &allocated, link) { >> + u64 offset = gpu_buddy_block_offset(block); >> + u64 bsize = gpu_buddy_block_size(&mm, block); >> + >> + KUNIT_EXPECT_TRUE_MSG(test, offset + bsize <= range_end, >> + "block [%llx, %llx) outside range\n", >> + offset, offset + bsize); >> + if (prev) >> + KUNIT_EXPECT_EQ_MSG(test, >> + gpu_buddy_block_offset(prev) + >> + gpu_buddy_block_size(&mm, prev), >> + offset, >> + "block at %llx not contiguous\n", >> + offset); >> + prev = block; >> + total += bsize; >> + } >> + KUNIT_EXPECT_EQ(test, total, 3 * ps); >> + >> + gpu_buddy_free_list(&mm, &allocated, 0); >> + gpu_buddy_free_list(&mm, &pin_lo, 0); >> + gpu_buddy_free_list(&mm, &pin_hi, 0); >> + gpu_buddy_fini(&mm); >> +} >> + >> static void gpu_test_buddy_alloc_pathological(struct kunit *test) >> { >> u64 mm_size, size, start = 0; >> @@ -1534,10 +1605,13 @@ static void >> gpu_test_buddy_alloc_exceeds_max_order(struct kunit *test) >> GPU_BUDDY_RANGE_ALLOCATION); >> KUNIT_EXPECT_EQ(test, err, -EINVAL); >> - /* CONTIGUOUS + RANGE should return -EINVAL (no try_harder for >> RANGE) */ >> - err = gpu_buddy_alloc_blocks(&mm, 0, mm_size, size, SZ_4K, &blocks, >> - GPU_BUDDY_CONTIGUOUS_ALLOCATION | >> GPU_BUDDY_RANGE_ALLOCATION); >> - KUNIT_EXPECT_EQ(test, err, -EINVAL); >> + /* CONTIGUOUS + RANGE should succeed via the range-aware >> try_harder */ >> + KUNIT_ASSERT_FALSE_MSG(test, gpu_buddy_alloc_blocks(&mm, 0, >> mm_size, size, >> + SZ_4K, &blocks, >> + GPU_BUDDY_CONTIGUOUS_ALLOCATION | >> + GPU_BUDDY_RANGE_ALLOCATION), >> + "range contiguous alloc hit an error >> size=%llu\n", size); >> + gpu_buddy_free_list(&mm, &blocks, 0); >> gpu_buddy_fini(&mm); >> } >> @@ -1603,6 +1677,7 @@ static struct kunit_case gpu_buddy_tests[] = { >> KUNIT_CASE(gpu_test_buddy_alloc_pessimistic), >> KUNIT_CASE(gpu_test_buddy_alloc_pathological), >> KUNIT_CASE(gpu_test_buddy_alloc_contiguous), >> + KUNIT_CASE(gpu_test_buddy_alloc_range_contiguous), >> KUNIT_CASE(gpu_test_buddy_alloc_clear), >> KUNIT_CASE(gpu_test_buddy_alloc_range), >> KUNIT_CASE(gpu_test_buddy_alloc_range_bias), >> >> base-commit: 744f262401cc2e1f3827496c72a47e072d31a852 > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2] gpu/buddy: add range-restricted contiguous allocation fallback 2026-10-05 14:14 ` Arunpravin Paneer Selvam @ 2026-10-06 9:57 ` Matthew Auld 2026-10-09 9:14 ` Arunpravin Paneer Selvam 0 siblings, 1 reply; 11+ messages in thread From: Matthew Auld @ 2026-10-06 9:57 UTC (permalink / raw) To: Arunpravin Paneer Selvam, dri-devel, intel-gfx, intel-xe, amd-gfx Cc: christian.koenig, alexander.deucher, Anand.Raghavendra On 05/10/2026 15:14, Arunpravin Paneer Selvam wrote: > > > On 10/1/2026 11:58 PM, Matthew Auld wrote: >> On 30/09/2026 07:21, Arunpravin Paneer Selvam wrote: >>> From: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com> >>> >>> A range + contiguous allocation (e.g. a scanout FB confined to the >>> CPU-visible VRAM aperture) rounds its size up to a power of two and >>> requires a naturally aligned free block of that size; on a fragmented >>> aperture no such aligned block may exist even though enough contiguous >>> space is free, so the allocation fails with -ENOSPC. >>> >>> The non-range contiguous path already recovers from this via >>> __alloc_contig_try_harder(), which stitches an exact-size span from >>> smaller adjacent blocks, but that fallback was unreachable once >>> GPU_BUDDY_RANGE_ALLOCATION was set. Give __alloc_contig_try_harder() >>> a [range_start, range_end) window and route the range + contiguous >>> case through it: each candidate placement is confined to the window >>> and aligned to min_block_size. Non-range callers pass [0, mm->size), >>> where the guards are no-ops, so the existing behaviour is unchanged. >>> A KUnit regression test covers the fragmentation pattern. >>> >>> Resolves the igt@kms_plane@plane-panning-bottom-right@pipe-a/pipe-b >>> regression. >>> >>> v2: >>> - Drop the split-undo patch; the range-bias search always descends to >>> an exact-order block or fails the split (already handled), so the >>> extra undo was redundant. (Matthew) >>> - Verified this fallback alone fixes the kms_plane regression. >>> >>> Fixes: 1ad5e807f716 ("gpu/buddy: replace dual-tree/force_merge with >>> decoupled dirty tracker") >> >> Patch looks more like totally new functionally/feature, so the fixes >> here is maybe unexpected? Did something in that fixes commit change >> something such that the try_harder is now needed, but that needs some >> expansion with bias + contig? Do we know exactly what changed here? > That commit removed __force_merge(), which previously helped recover > larger contiguous allocations on demand. As a result, some range- __force_merge() got nuked, but IIRC I think that was essentially because we now "force merge" on free, so shouldn't we get the ~same result? Or is the fact that we force_merge() on every free giving a different layout of pages, and with some very some specific allocation pattern that difference subtly results in -ENOSPC, somehow? > restricted contiguous allocation requests > that used to succeed now fail with -ENOSPC (the kms_plane regression). > This patch restores that capability through the try_harder() stitching > logic, so the Fixes: tag reflects a > regression introduced by that commit rather than new functionality. >> >>> Assisted-by: Claude:claude-opus-4-8 >> >> Assisted-by: LLM >> >>> Cc: Matthew Auld <matthew.auld@intel.com> >>> Cc: Christian König <christian.koenig@amd.com> >>> Signed-off-by: Arunpravin Paneer Selvam >>> <Arunpravin.PaneerSelvam@amd.com> >>> --- >>> drivers/gpu/buddy.c | 88 ++++++++++++++++-------------- >>> drivers/gpu/tests/gpu_buddy_test.c | 83 ++++++++++++++++++++++++++-- >>> 2 files changed, 126 insertions(+), 45 deletions(-) >>> >>> diff --git a/drivers/gpu/buddy.c b/drivers/gpu/buddy.c >>> index 2f2aaadafe35..5265e1f6a318 100644 >>> --- a/drivers/gpu/buddy.c >>> +++ b/drivers/gpu/buddy.c >>> @@ -1685,26 +1685,14 @@ static int __gpu_buddy_alloc_range(struct >>> gpu_buddy *mm, >>> blocks, total_allocated_on_err); >>> } >>> -static int __alloc_contig_aligned_retry(struct gpu_buddy *mm, >>> - u64 unaligned_offset, >>> - u64 size, >>> - u64 min_block_size, >>> - unsigned long flags, >>> - struct list_head *blocks) >>> -{ >>> - u64 aligned_offset = round_down(unaligned_offset, min_block_size); >>> - >>> - return __gpu_buddy_alloc_range(mm, aligned_offset, size, flags, >>> - NULL, blocks); >>> -} >>> - >>> static int __alloc_contig_try_harder(struct gpu_buddy *mm, >>> + u64 range_start, u64 range_end, >>> u64 size, >>> u64 min_block_size, >>> unsigned long flags, >>> struct list_head *blocks) >>> { >>> - u64 rhs_offset, lhs_offset, filled; >>> + u64 rhs_offset, lhs_offset, filled, aligned; >>> struct gpu_buddy_block *block; >>> struct rb_root *root; >>> struct rb_node *iter; >>> @@ -1734,20 +1722,24 @@ static int __alloc_contig_try_harder(struct >>> gpu_buddy *mm, >>> flags, &filled, blocks); >>> if (err && err != -ENOSPC) >>> return err; >>> - if (!err && IS_ALIGNED(rhs_offset, min_block_size)) >>> + if (!err && IS_ALIGNED(rhs_offset, min_block_size) && >>> + rhs_offset >= range_start && rhs_offset + size <= >>> range_end) >>> return 0; >>> if (!err) { >>> /* Allocate the unaligned RHS offset using round_down */ >>> gpu_buddy_free_list_internal(mm, blocks); >>> - err = __alloc_contig_aligned_retry(mm, rhs_offset, >>> - size, >>> - min_block_size, >>> - flags, blocks); >>> - if (!err) >>> - return 0; >>> - if (err != -ENOSPC) { >>> - gpu_buddy_free_list_internal(mm, blocks); >>> - return err; >>> + >>> + aligned = round_down(rhs_offset, min_block_size); >>> + if (aligned >= range_start && >>> + aligned + size <= range_end) { >>> + err = __gpu_buddy_alloc_range(mm, aligned, size, >>> + flags, NULL, blocks); >> >> Did you consider doing a bias-range for [start, end] using >> min_block_size and using what it returns as the starting point, >> extending left/right? If that fails advance start and try again? Maybe >> what you have here is much better for the case you have in mind? > I took a closer look at the alloc_range_bias approach. My understanding > is that this would repeatedly bias within [start, end], use the returned > min_block_size block as a starting point, and then extend left/right to > build the requested run. > While that should work, every failed attempt may require splitting > higher-order blocks to obtain a min_block_size block, followed by a > free/merge back when the extension fails. > The free-tree descent evaluates the available starting points through a > tree walk without any splitting or allocation just for enumeration, so I > kept that approach. > Please let me know if there is a case where alloc_range_bias would > provide an advantage over the free-tree descent. > > While evaluating it, I found two issues in the current try_harder() > implementation: > > 1. It only searches free_tree[size_order]. This is insufficient when > min_block_size < size. For example, for a 128 KiB allocation (order-5) > with min_block_size = 4 KiB, free_tree[5] may be empty > while two adjacent order-4 (64 KiB) blocks covering [64 KiB, 128 KiB] > and [128 KiB, 192 KiB] are free. These blocks still form a valid > order-5-sized contiguous run, but they can never appear in > free_tree[5] because they are not mergeable buddies. As a result, a > search that only considers free_tree[5] will never find this placement. > v3 addresses this by walking the free tree from the > requested size order down to min_order, while reusing the existing > extend/stitch logic and min_block_size alignment checks unchanged. > > 2. The search is not restricted to the requested range. v3 confines the > walk to [range_start, range_end], skipping candidates at or above > range_end and stopping once the walk falls below range_start. > This ensures that range-constrained allocations only consider free > blocks within the requested window and avoids performing allocation/free > attempts on blocks outside the specified range. > For non-range callers, the effective window remains [0, mm->size], so > the behavior is unchanged. > > Regards, > Arun. >> >>> + if (!err) >>> + return 0; >>> + if (err != -ENOSPC) { >>> + gpu_buddy_free_list_internal(mm, blocks); >>> + return err; >>> + } >>> } >>> goto next; >>> } >>> @@ -1759,15 +1751,17 @@ static int __alloc_contig_try_harder(struct >>> gpu_buddy *mm, >>> /* Allocate the unaligned LHS offset using round_down */ >>> gpu_buddy_free_list_internal(mm, blocks); >>> - err = __alloc_contig_aligned_retry(mm, lhs_offset, >>> - size, >>> - min_block_size, >>> - flags, blocks); >>> - if (!err) >>> - return 0; >>> - if (err != -ENOSPC) { >>> - gpu_buddy_free_list_internal(mm, blocks); >>> - return err; >>> + >>> + aligned = round_down(lhs_offset, min_block_size); >>> + if (aligned >= range_start && aligned + size <= range_end) { >>> + err = __gpu_buddy_alloc_range(mm, aligned, size, >>> + flags, NULL, blocks); >>> + if (!err) >>> + return 0; >>> + if (err != -ENOSPC) { >>> + gpu_buddy_free_list_internal(mm, blocks); >>> + return err; >>> + } >>> } >>> next: >>> gpu_buddy_free_list_internal(mm, blocks); >>> @@ -2021,11 +2015,18 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm, >>> min_order = ilog2(min_block_size) - ilog2(mm->chunk_size); >>> if (order > mm->max_order || size > mm->size) { >>> - if ((flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) && >>> - !(flags & GPU_BUDDY_RANGE_ALLOCATION)) >>> - return __alloc_contig_try_harder(mm, original_size, >>> + if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) { >>> + u64 range_start, range_end; >>> + >>> + range_start = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? >>> start : 0; >>> + range_end = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? end : >>> mm->size; >>> + >>> + return __alloc_contig_try_harder(mm, range_start, >>> + range_end, >>> + original_size, >>> original_min_size, >>> flags, blocks); >>> + } >>> return -EINVAL; >>> } >>> @@ -2058,9 +2059,14 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm, >>> * Try contiguous block allocation through >>> * try harder method. >>> */ >>> - if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION && >>> - !(flags & GPU_BUDDY_RANGE_ALLOCATION)) { >>> - err = __alloc_contig_try_harder(mm, >>> + if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) { >>> + u64 range_start, range_end; >>> + >>> + range_start = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? >>> start : 0; >>> + range_end = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? >>> end : mm->size; >>> + >>> + err = __alloc_contig_try_harder(mm, range_start, >>> + range_end, >>> original_size, >>> original_min_size, >>> flags, >>> @@ -2068,9 +2074,9 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm, >>> if (!err) >>> return 0; >>> if (err != -ENOSPC) >>> - return err; >>> - goto err_free; >>> + goto err_free; >>> } >>> + >>> err = -ENOSPC; >>> goto err_free; >>> } while (1); >>> diff --git a/drivers/gpu/tests/gpu_buddy_test.c b/drivers/gpu/tests/ >>> gpu_buddy_test.c >>> index b75d32ca6ca0..2c445870b808 100644 >>> --- a/drivers/gpu/tests/gpu_buddy_test.c >>> +++ b/drivers/gpu/tests/gpu_buddy_test.c >>> @@ -1251,6 +1251,77 @@ static void >>> gpu_test_buddy_alloc_contiguous(struct kunit *test) >>> gpu_buddy_fini(&mm); >>> } >>> +static void gpu_test_buddy_alloc_range_contiguous(struct kunit *test) >>> +{ >>> + const unsigned long ps = SZ_4K, mm_size = 16 * ps; >>> + const unsigned long range_end = 8 * ps; >>> + struct gpu_buddy_block *block, *prev; >>> + LIST_HEAD(allocated); >>> + struct gpu_buddy mm; >>> + LIST_HEAD(pin_lo); >>> + LIST_HEAD(pin_hi); >>> + u64 total; >>> + >>> + KUNIT_ASSERT_FALSE_MSG(test, gpu_buddy_init(&mm, mm_size, ps), >>> + "buddy_init failed\n"); >>> + >>> + /* >>> + * Idea is to confine the test to the sub-range [0, 32K), which >>> a 12K >>> + * contiguous request (rounded up to 16K) splits into two naturally >>> + * aligned 16K slots: [0, 16K) and [16K, 32K). We pin the first >>> 4K page >>> + * of each slot ([0, 4K) and [16K, 20K)) so that neither aligned >>> slot >>> + * can satisfy the rounded-up 16K allocation, yet the freed >>> remainder >>> + * still leaves a contiguous 12K hole at offset 4K, which is >>> page-aligned >>> + * but not 16K-aligned. A 12K contiguous+range allocation must >>> therefore >>> + * fall back to stitching that span instead of returning -ENOSPC. >>> + */ >>> + KUNIT_ASSERT_FALSE_MSG(test, >>> + gpu_buddy_alloc_blocks(&mm, 0, ps, ps, ps, >>> + &pin_lo, 0), >>> + "failed to pin low page\n"); >>> + KUNIT_ASSERT_FALSE_MSG(test, >>> + gpu_buddy_alloc_blocks(&mm, 4 * ps, 5 * ps, ps, >>> + ps, &pin_hi, 0), >>> + "failed to pin high page\n"); >>> + >>> + /* No aligned 16K block is free; the range-aware fallback must >>> stitch >>> + * the unaligned [ps, 4*ps) hole instead of returning -ENOSPC. >>> + */ >>> + KUNIT_ASSERT_FALSE_MSG(test, >>> + gpu_buddy_alloc_blocks(&mm, 0, range_end, 3 * ps, >>> + ps, &allocated, >>> + GPU_BUDDY_CONTIGUOUS_ALLOCATION | >>> + GPU_BUDDY_RANGE_ALLOCATION), >>> + "range-restricted contiguous alloc failed\n"); >>> + >>> + /* The result must be exactly 3*ps, contiguous, and inside the >>> range. */ >>> + total = 0; >>> + prev = NULL; >>> + list_for_each_entry(block, &allocated, link) { >>> + u64 offset = gpu_buddy_block_offset(block); >>> + u64 bsize = gpu_buddy_block_size(&mm, block); >>> + >>> + KUNIT_EXPECT_TRUE_MSG(test, offset + bsize <= range_end, >>> + "block [%llx, %llx) outside range\n", >>> + offset, offset + bsize); >>> + if (prev) >>> + KUNIT_EXPECT_EQ_MSG(test, >>> + gpu_buddy_block_offset(prev) + >>> + gpu_buddy_block_size(&mm, prev), >>> + offset, >>> + "block at %llx not contiguous\n", >>> + offset); >>> + prev = block; >>> + total += bsize; >>> + } >>> + KUNIT_EXPECT_EQ(test, total, 3 * ps); >>> + >>> + gpu_buddy_free_list(&mm, &allocated, 0); >>> + gpu_buddy_free_list(&mm, &pin_lo, 0); >>> + gpu_buddy_free_list(&mm, &pin_hi, 0); >>> + gpu_buddy_fini(&mm); >>> +} >>> + >>> static void gpu_test_buddy_alloc_pathological(struct kunit *test) >>> { >>> u64 mm_size, size, start = 0; >>> @@ -1534,10 +1605,13 @@ static void >>> gpu_test_buddy_alloc_exceeds_max_order(struct kunit *test) >>> GPU_BUDDY_RANGE_ALLOCATION); >>> KUNIT_EXPECT_EQ(test, err, -EINVAL); >>> - /* CONTIGUOUS + RANGE should return -EINVAL (no try_harder for >>> RANGE) */ >>> - err = gpu_buddy_alloc_blocks(&mm, 0, mm_size, size, SZ_4K, &blocks, >>> - GPU_BUDDY_CONTIGUOUS_ALLOCATION | >>> GPU_BUDDY_RANGE_ALLOCATION); >>> - KUNIT_EXPECT_EQ(test, err, -EINVAL); >>> + /* CONTIGUOUS + RANGE should succeed via the range-aware >>> try_harder */ >>> + KUNIT_ASSERT_FALSE_MSG(test, gpu_buddy_alloc_blocks(&mm, 0, >>> mm_size, size, >>> + SZ_4K, &blocks, >>> + GPU_BUDDY_CONTIGUOUS_ALLOCATION | >>> + GPU_BUDDY_RANGE_ALLOCATION), >>> + "range contiguous alloc hit an error >>> size=%llu\n", size); >>> + gpu_buddy_free_list(&mm, &blocks, 0); >>> gpu_buddy_fini(&mm); >>> } >>> @@ -1603,6 +1677,7 @@ static struct kunit_case gpu_buddy_tests[] = { >>> KUNIT_CASE(gpu_test_buddy_alloc_pessimistic), >>> KUNIT_CASE(gpu_test_buddy_alloc_pathological), >>> KUNIT_CASE(gpu_test_buddy_alloc_contiguous), >>> + KUNIT_CASE(gpu_test_buddy_alloc_range_contiguous), >>> KUNIT_CASE(gpu_test_buddy_alloc_clear), >>> KUNIT_CASE(gpu_test_buddy_alloc_range), >>> KUNIT_CASE(gpu_test_buddy_alloc_range_bias), >>> >>> base-commit: 744f262401cc2e1f3827496c72a47e072d31a852 >> > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2] gpu/buddy: add range-restricted contiguous allocation fallback 2026-10-06 9:57 ` Matthew Auld @ 2026-10-09 9:14 ` Arunpravin Paneer Selvam 2026-10-09 10:17 ` Matthew Auld 0 siblings, 1 reply; 11+ messages in thread From: Arunpravin Paneer Selvam @ 2026-10-09 9:14 UTC (permalink / raw) To: Matthew Auld, dri-devel, intel-gfx, intel-xe, amd-gfx Cc: christian.koenig, alexander.deucher, Anand.Raghavendra On 10/6/2026 3:27 PM, Matthew Auld wrote: > On 05/10/2026 15:14, Arunpravin Paneer Selvam wrote: >> >> >> On 10/1/2026 11:58 PM, Matthew Auld wrote: >>> On 30/09/2026 07:21, Arunpravin Paneer Selvam wrote: >>>> From: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com> >>>> >>>> A range + contiguous allocation (e.g. a scanout FB confined to the >>>> CPU-visible VRAM aperture) rounds its size up to a power of two and >>>> requires a naturally aligned free block of that size; on a fragmented >>>> aperture no such aligned block may exist even though enough contiguous >>>> space is free, so the allocation fails with -ENOSPC. >>>> >>>> The non-range contiguous path already recovers from this via >>>> __alloc_contig_try_harder(), which stitches an exact-size span from >>>> smaller adjacent blocks, but that fallback was unreachable once >>>> GPU_BUDDY_RANGE_ALLOCATION was set. Give __alloc_contig_try_harder() >>>> a [range_start, range_end) window and route the range + contiguous >>>> case through it: each candidate placement is confined to the window >>>> and aligned to min_block_size. Non-range callers pass [0, mm->size), >>>> where the guards are no-ops, so the existing behaviour is unchanged. >>>> A KUnit regression test covers the fragmentation pattern. >>>> >>>> Resolves the igt@kms_plane@plane-panning-bottom-right@pipe-a/pipe-b >>>> regression. >>>> >>>> v2: >>>> - Drop the split-undo patch; the range-bias search always >>>> descends to >>>> an exact-order block or fails the split (already handled), so the >>>> extra undo was redundant. (Matthew) >>>> - Verified this fallback alone fixes the kms_plane regression. >>>> >>>> Fixes: 1ad5e807f716 ("gpu/buddy: replace dual-tree/force_merge with >>>> decoupled dirty tracker") >>> >>> Patch looks more like totally new functionally/feature, so the fixes >>> here is maybe unexpected? Did something in that fixes commit change >>> something such that the try_harder is now needed, but that needs >>> some expansion with bias + contig? Do we know exactly what changed >>> here? >> That commit removed __force_merge(), which previously helped recover >> larger contiguous allocations on demand. As a result, some range- > > __force_merge() got nuked, but IIRC I think that was essentially > because we now "force merge" on free, so shouldn't we get the ~same > result? Or is the fact that we force_merge() on every free giving a > different layout of pages, and with some very some specific allocation > pattern that difference subtly results in -ENOSPC, somehow? You are right - merge-on-free reclaims contiguity just like the old on-demand __force_merge() , so that is not the cause and the layout is effectively the same. The real change is where clear/dirty segregation lives: it used to be an inline guard inside __alloc_range_bias() , but the rework pulled it out into dirty_steer_window() , which only runs for non-range allocations. So range (aperture) requests now go through __alloc_range_bias() with no clear/dirty guard at all - clear and dirty allocations interleave and fragment the aperture until no large same-class run survives for a 4K scanout pin (-> -ENOSPC). Restoring that two-pass guard is the real fix. I have accordingly moved the Fixes: tag onto that guard-restore patch, and kept the range support in __alloc_contig_try_harder() as a new feature - it still helps, but it is a safety-net fallback that should land on top, not as the root-cause fix. Regards, Arun. > >> restricted contiguous allocation requests >> that used to succeed now fail with -ENOSPC (the kms_plane >> regression). This patch restores that capability through the >> try_harder() stitching logic, so the Fixes: tag reflects a >> regression introduced by that commit rather than new functionality. >>> >>>> Assisted-by: Claude:claude-opus-4-8 >>> >>> Assisted-by: LLM >>> >>>> Cc: Matthew Auld <matthew.auld@intel.com> >>>> Cc: Christian König <christian.koenig@amd.com> >>>> Signed-off-by: Arunpravin Paneer Selvam >>>> <Arunpravin.PaneerSelvam@amd.com> >>>> --- >>>> drivers/gpu/buddy.c | 88 >>>> ++++++++++++++++-------------- >>>> drivers/gpu/tests/gpu_buddy_test.c | 83 ++++++++++++++++++++++++++-- >>>> 2 files changed, 126 insertions(+), 45 deletions(-) >>>> >>>> diff --git a/drivers/gpu/buddy.c b/drivers/gpu/buddy.c >>>> index 2f2aaadafe35..5265e1f6a318 100644 >>>> --- a/drivers/gpu/buddy.c >>>> +++ b/drivers/gpu/buddy.c >>>> @@ -1685,26 +1685,14 @@ static int __gpu_buddy_alloc_range(struct >>>> gpu_buddy *mm, >>>> blocks, total_allocated_on_err); >>>> } >>>> -static int __alloc_contig_aligned_retry(struct gpu_buddy *mm, >>>> - u64 unaligned_offset, >>>> - u64 size, >>>> - u64 min_block_size, >>>> - unsigned long flags, >>>> - struct list_head *blocks) >>>> -{ >>>> - u64 aligned_offset = round_down(unaligned_offset, >>>> min_block_size); >>>> - >>>> - return __gpu_buddy_alloc_range(mm, aligned_offset, size, flags, >>>> - NULL, blocks); >>>> -} >>>> - >>>> static int __alloc_contig_try_harder(struct gpu_buddy *mm, >>>> + u64 range_start, u64 range_end, >>>> u64 size, >>>> u64 min_block_size, >>>> unsigned long flags, >>>> struct list_head *blocks) >>>> { >>>> - u64 rhs_offset, lhs_offset, filled; >>>> + u64 rhs_offset, lhs_offset, filled, aligned; >>>> struct gpu_buddy_block *block; >>>> struct rb_root *root; >>>> struct rb_node *iter; >>>> @@ -1734,20 +1722,24 @@ static int __alloc_contig_try_harder(struct >>>> gpu_buddy *mm, >>>> flags, &filled, blocks); >>>> if (err && err != -ENOSPC) >>>> return err; >>>> - if (!err && IS_ALIGNED(rhs_offset, min_block_size)) >>>> + if (!err && IS_ALIGNED(rhs_offset, min_block_size) && >>>> + rhs_offset >= range_start && rhs_offset + size <= >>>> range_end) >>>> return 0; >>>> if (!err) { >>>> /* Allocate the unaligned RHS offset using round_down */ >>>> gpu_buddy_free_list_internal(mm, blocks); >>>> - err = __alloc_contig_aligned_retry(mm, rhs_offset, >>>> - size, >>>> - min_block_size, >>>> - flags, blocks); >>>> - if (!err) >>>> - return 0; >>>> - if (err != -ENOSPC) { >>>> - gpu_buddy_free_list_internal(mm, blocks); >>>> - return err; >>>> + >>>> + aligned = round_down(rhs_offset, min_block_size); >>>> + if (aligned >= range_start && >>>> + aligned + size <= range_end) { >>>> + err = __gpu_buddy_alloc_range(mm, aligned, size, >>>> + flags, NULL, blocks); >>> >>> Did you consider doing a bias-range for [start, end] using >>> min_block_size and using what it returns as the starting point, >>> extending left/right? If that fails advance start and try again? >>> Maybe what you have here is much better for the case you have in mind? >> I took a closer look at the alloc_range_bias approach. My >> understanding is that this would repeatedly bias within [start, end], >> use the returned min_block_size block as a starting point, and then >> extend left/right to build the requested run. >> While that should work, every failed attempt may require splitting >> higher-order blocks to obtain a min_block_size block, followed by a >> free/merge back when the extension fails. >> The free-tree descent evaluates the available starting points through >> a tree walk without any splitting or allocation just for enumeration, >> so I kept that approach. >> Please let me know if there is a case where alloc_range_bias would >> provide an advantage over the free-tree descent. >> >> While evaluating it, I found two issues in the current try_harder() >> implementation: >> >> 1. It only searches free_tree[size_order]. This is insufficient when >> min_block_size < size. For example, for a 128 KiB allocation >> (order-5) with min_block_size = 4 KiB, free_tree[5] may be empty >> while two adjacent order-4 (64 KiB) blocks covering [64 KiB, 128 KiB] >> and [128 KiB, 192 KiB] are free. These blocks still form a valid >> order-5-sized contiguous run, but they can never appear in >> free_tree[5] because they are not mergeable buddies. As a result, a >> search that only considers free_tree[5] will never find this >> placement. v3 addresses this by walking the free tree from the >> requested size order down to min_order, while reusing the existing >> extend/stitch logic and min_block_size alignment checks unchanged. >> >> 2. The search is not restricted to the requested range. v3 confines >> the walk to [range_start, range_end], skipping candidates at or above >> range_end and stopping once the walk falls below range_start. >> This ensures that range-constrained allocations only consider free >> blocks within the requested window and avoids performing >> allocation/free attempts on blocks outside the specified range. >> For non-range callers, the effective window remains [0, mm->size], so >> the behavior is unchanged. >> >> Regards, >> Arun. >>> >>>> + if (!err) >>>> + return 0; >>>> + if (err != -ENOSPC) { >>>> + gpu_buddy_free_list_internal(mm, blocks); >>>> + return err; >>>> + } >>>> } >>>> goto next; >>>> } >>>> @@ -1759,15 +1751,17 @@ static int __alloc_contig_try_harder(struct >>>> gpu_buddy *mm, >>>> /* Allocate the unaligned LHS offset using round_down */ >>>> gpu_buddy_free_list_internal(mm, blocks); >>>> - err = __alloc_contig_aligned_retry(mm, lhs_offset, >>>> - size, >>>> - min_block_size, >>>> - flags, blocks); >>>> - if (!err) >>>> - return 0; >>>> - if (err != -ENOSPC) { >>>> - gpu_buddy_free_list_internal(mm, blocks); >>>> - return err; >>>> + >>>> + aligned = round_down(lhs_offset, min_block_size); >>>> + if (aligned >= range_start && aligned + size <= range_end) { >>>> + err = __gpu_buddy_alloc_range(mm, aligned, size, >>>> + flags, NULL, blocks); >>>> + if (!err) >>>> + return 0; >>>> + if (err != -ENOSPC) { >>>> + gpu_buddy_free_list_internal(mm, blocks); >>>> + return err; >>>> + } >>>> } >>>> next: >>>> gpu_buddy_free_list_internal(mm, blocks); >>>> @@ -2021,11 +2015,18 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy >>>> *mm, >>>> min_order = ilog2(min_block_size) - ilog2(mm->chunk_size); >>>> if (order > mm->max_order || size > mm->size) { >>>> - if ((flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) && >>>> - !(flags & GPU_BUDDY_RANGE_ALLOCATION)) >>>> - return __alloc_contig_try_harder(mm, original_size, >>>> + if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) { >>>> + u64 range_start, range_end; >>>> + >>>> + range_start = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? >>>> start : 0; >>>> + range_end = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? end >>>> : mm->size; >>>> + >>>> + return __alloc_contig_try_harder(mm, range_start, >>>> + range_end, >>>> + original_size, >>>> original_min_size, >>>> flags, blocks); >>>> + } >>>> return -EINVAL; >>>> } >>>> @@ -2058,9 +2059,14 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy >>>> *mm, >>>> * Try contiguous block allocation through >>>> * try harder method. >>>> */ >>>> - if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION && >>>> - !(flags & GPU_BUDDY_RANGE_ALLOCATION)) { >>>> - err = __alloc_contig_try_harder(mm, >>>> + if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) { >>>> + u64 range_start, range_end; >>>> + >>>> + range_start = (flags & GPU_BUDDY_RANGE_ALLOCATION) >>>> ? start : 0; >>>> + range_end = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? >>>> end : mm->size; >>>> + >>>> + err = __alloc_contig_try_harder(mm, range_start, >>>> + range_end, >>>> original_size, >>>> original_min_size, >>>> flags, >>>> @@ -2068,9 +2074,9 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm, >>>> if (!err) >>>> return 0; >>>> if (err != -ENOSPC) >>>> - return err; >>>> - goto err_free; >>>> + goto err_free; >>>> } >>>> + >>>> err = -ENOSPC; >>>> goto err_free; >>>> } while (1); >>>> diff --git a/drivers/gpu/tests/gpu_buddy_test.c >>>> b/drivers/gpu/tests/ gpu_buddy_test.c >>>> index b75d32ca6ca0..2c445870b808 100644 >>>> --- a/drivers/gpu/tests/gpu_buddy_test.c >>>> +++ b/drivers/gpu/tests/gpu_buddy_test.c >>>> @@ -1251,6 +1251,77 @@ static void >>>> gpu_test_buddy_alloc_contiguous(struct kunit *test) >>>> gpu_buddy_fini(&mm); >>>> } >>>> +static void gpu_test_buddy_alloc_range_contiguous(struct kunit >>>> *test) >>>> +{ >>>> + const unsigned long ps = SZ_4K, mm_size = 16 * ps; >>>> + const unsigned long range_end = 8 * ps; >>>> + struct gpu_buddy_block *block, *prev; >>>> + LIST_HEAD(allocated); >>>> + struct gpu_buddy mm; >>>> + LIST_HEAD(pin_lo); >>>> + LIST_HEAD(pin_hi); >>>> + u64 total; >>>> + >>>> + KUNIT_ASSERT_FALSE_MSG(test, gpu_buddy_init(&mm, mm_size, ps), >>>> + "buddy_init failed\n"); >>>> + >>>> + /* >>>> + * Idea is to confine the test to the sub-range [0, 32K), >>>> which a 12K >>>> + * contiguous request (rounded up to 16K) splits into two >>>> naturally >>>> + * aligned 16K slots: [0, 16K) and [16K, 32K). We pin the >>>> first 4K page >>>> + * of each slot ([0, 4K) and [16K, 20K)) so that neither >>>> aligned slot >>>> + * can satisfy the rounded-up 16K allocation, yet the freed >>>> remainder >>>> + * still leaves a contiguous 12K hole at offset 4K, which is >>>> page-aligned >>>> + * but not 16K-aligned. A 12K contiguous+range allocation must >>>> therefore >>>> + * fall back to stitching that span instead of returning -ENOSPC. >>>> + */ >>>> + KUNIT_ASSERT_FALSE_MSG(test, >>>> + gpu_buddy_alloc_blocks(&mm, 0, ps, ps, ps, >>>> + &pin_lo, 0), >>>> + "failed to pin low page\n"); >>>> + KUNIT_ASSERT_FALSE_MSG(test, >>>> + gpu_buddy_alloc_blocks(&mm, 4 * ps, 5 * ps, ps, >>>> + ps, &pin_hi, 0), >>>> + "failed to pin high page\n"); >>>> + >>>> + /* No aligned 16K block is free; the range-aware fallback must >>>> stitch >>>> + * the unaligned [ps, 4*ps) hole instead of returning -ENOSPC. >>>> + */ >>>> + KUNIT_ASSERT_FALSE_MSG(test, >>>> + gpu_buddy_alloc_blocks(&mm, 0, range_end, 3 * ps, >>>> + ps, &allocated, >>>> + GPU_BUDDY_CONTIGUOUS_ALLOCATION | >>>> + GPU_BUDDY_RANGE_ALLOCATION), >>>> + "range-restricted contiguous alloc failed\n"); >>>> + >>>> + /* The result must be exactly 3*ps, contiguous, and inside the >>>> range. */ >>>> + total = 0; >>>> + prev = NULL; >>>> + list_for_each_entry(block, &allocated, link) { >>>> + u64 offset = gpu_buddy_block_offset(block); >>>> + u64 bsize = gpu_buddy_block_size(&mm, block); >>>> + >>>> + KUNIT_EXPECT_TRUE_MSG(test, offset + bsize <= range_end, >>>> + "block [%llx, %llx) outside range\n", >>>> + offset, offset + bsize); >>>> + if (prev) >>>> + KUNIT_EXPECT_EQ_MSG(test, >>>> + gpu_buddy_block_offset(prev) + >>>> + gpu_buddy_block_size(&mm, prev), >>>> + offset, >>>> + "block at %llx not contiguous\n", >>>> + offset); >>>> + prev = block; >>>> + total += bsize; >>>> + } >>>> + KUNIT_EXPECT_EQ(test, total, 3 * ps); >>>> + >>>> + gpu_buddy_free_list(&mm, &allocated, 0); >>>> + gpu_buddy_free_list(&mm, &pin_lo, 0); >>>> + gpu_buddy_free_list(&mm, &pin_hi, 0); >>>> + gpu_buddy_fini(&mm); >>>> +} >>>> + >>>> static void gpu_test_buddy_alloc_pathological(struct kunit *test) >>>> { >>>> u64 mm_size, size, start = 0; >>>> @@ -1534,10 +1605,13 @@ static void >>>> gpu_test_buddy_alloc_exceeds_max_order(struct kunit *test) >>>> GPU_BUDDY_RANGE_ALLOCATION); >>>> KUNIT_EXPECT_EQ(test, err, -EINVAL); >>>> - /* CONTIGUOUS + RANGE should return -EINVAL (no try_harder >>>> for RANGE) */ >>>> - err = gpu_buddy_alloc_blocks(&mm, 0, mm_size, size, SZ_4K, >>>> &blocks, >>>> - GPU_BUDDY_CONTIGUOUS_ALLOCATION | >>>> GPU_BUDDY_RANGE_ALLOCATION); >>>> - KUNIT_EXPECT_EQ(test, err, -EINVAL); >>>> + /* CONTIGUOUS + RANGE should succeed via the range-aware >>>> try_harder */ >>>> + KUNIT_ASSERT_FALSE_MSG(test, gpu_buddy_alloc_blocks(&mm, 0, >>>> mm_size, size, >>>> + SZ_4K, &blocks, >>>> + GPU_BUDDY_CONTIGUOUS_ALLOCATION | >>>> + GPU_BUDDY_RANGE_ALLOCATION), >>>> + "range contiguous alloc hit an error >>>> size=%llu\n", size); >>>> + gpu_buddy_free_list(&mm, &blocks, 0); >>>> gpu_buddy_fini(&mm); >>>> } >>>> @@ -1603,6 +1677,7 @@ static struct kunit_case gpu_buddy_tests[] = { >>>> KUNIT_CASE(gpu_test_buddy_alloc_pessimistic), >>>> KUNIT_CASE(gpu_test_buddy_alloc_pathological), >>>> KUNIT_CASE(gpu_test_buddy_alloc_contiguous), >>>> + KUNIT_CASE(gpu_test_buddy_alloc_range_contiguous), >>>> KUNIT_CASE(gpu_test_buddy_alloc_clear), >>>> KUNIT_CASE(gpu_test_buddy_alloc_range), >>>> KUNIT_CASE(gpu_test_buddy_alloc_range_bias), >>>> >>>> base-commit: 744f262401cc2e1f3827496c72a47e072d31a852 >>> >> > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2] gpu/buddy: add range-restricted contiguous allocation fallback 2026-10-09 9:14 ` Arunpravin Paneer Selvam @ 2026-10-09 10:17 ` Matthew Auld 0 siblings, 0 replies; 11+ messages in thread From: Matthew Auld @ 2026-10-09 10:17 UTC (permalink / raw) To: Arunpravin Paneer Selvam, dri-devel, intel-gfx, intel-xe, amd-gfx Cc: christian.koenig, alexander.deucher, Anand.Raghavendra On 09/10/2026 10:14, Arunpravin Paneer Selvam wrote: > > > On 10/6/2026 3:27 PM, Matthew Auld wrote: >> On 05/10/2026 15:14, Arunpravin Paneer Selvam wrote: >>> >>> >>> On 10/1/2026 11:58 PM, Matthew Auld wrote: >>>> On 30/09/2026 07:21, Arunpravin Paneer Selvam wrote: >>>>> From: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com> >>>>> >>>>> A range + contiguous allocation (e.g. a scanout FB confined to the >>>>> CPU-visible VRAM aperture) rounds its size up to a power of two and >>>>> requires a naturally aligned free block of that size; on a fragmented >>>>> aperture no such aligned block may exist even though enough contiguous >>>>> space is free, so the allocation fails with -ENOSPC. >>>>> >>>>> The non-range contiguous path already recovers from this via >>>>> __alloc_contig_try_harder(), which stitches an exact-size span from >>>>> smaller adjacent blocks, but that fallback was unreachable once >>>>> GPU_BUDDY_RANGE_ALLOCATION was set. Give __alloc_contig_try_harder() >>>>> a [range_start, range_end) window and route the range + contiguous >>>>> case through it: each candidate placement is confined to the window >>>>> and aligned to min_block_size. Non-range callers pass [0, mm->size), >>>>> where the guards are no-ops, so the existing behaviour is unchanged. >>>>> A KUnit regression test covers the fragmentation pattern. >>>>> >>>>> Resolves the igt@kms_plane@plane-panning-bottom-right@pipe-a/pipe-b >>>>> regression. >>>>> >>>>> v2: >>>>> - Drop the split-undo patch; the range-bias search always >>>>> descends to >>>>> an exact-order block or fails the split (already handled), so the >>>>> extra undo was redundant. (Matthew) >>>>> - Verified this fallback alone fixes the kms_plane regression. >>>>> >>>>> Fixes: 1ad5e807f716 ("gpu/buddy: replace dual-tree/force_merge with >>>>> decoupled dirty tracker") >>>> >>>> Patch looks more like totally new functionally/feature, so the fixes >>>> here is maybe unexpected? Did something in that fixes commit change >>>> something such that the try_harder is now needed, but that needs >>>> some expansion with bias + contig? Do we know exactly what changed >>>> here? >>> That commit removed __force_merge(), which previously helped recover >>> larger contiguous allocations on demand. As a result, some range- >> >> __force_merge() got nuked, but IIRC I think that was essentially >> because we now "force merge" on free, so shouldn't we get the ~same >> result? Or is the fact that we force_merge() on every free giving a >> different layout of pages, and with some very some specific allocation >> pattern that difference subtly results in -ENOSPC, somehow? > You are right - merge-on-free reclaims contiguity just like the old on- > demand __force_merge() , so that is not the cause and the layout is > effectively the same. The real change is where clear/dirty segregation > lives: it used to be an inline guard inside __alloc_range_bias() , but > the rework pulled it out into dirty_steer_window() , which only runs for > non-range allocations. So range (aperture) requests now go through > __alloc_range_bias() with no clear/dirty guard at all - clear and dirty > allocations interleave and fragment the aperture until no large same- > class run survives for a 4K scanout pin (-> -ENOSPC). Restoring that > two-pass guard is the real fix. Ahh, yeah that makes more sense now :) > > I have accordingly moved the Fixes: tag onto that guard-restore patch, > and kept the range support in __alloc_contig_try_harder() as a new > feature - it still helps, but it is a safety-net fallback that should > land on top, not as the root-cause fix. > > Regards, > Arun. >> >>> restricted contiguous allocation requests >>> that used to succeed now fail with -ENOSPC (the kms_plane >>> regression). This patch restores that capability through the >>> try_harder() stitching logic, so the Fixes: tag reflects a >>> regression introduced by that commit rather than new functionality. >>>> >>>>> Assisted-by: Claude:claude-opus-4-8 >>>> >>>> Assisted-by: LLM >>>> >>>>> Cc: Matthew Auld <matthew.auld@intel.com> >>>>> Cc: Christian König <christian.koenig@amd.com> >>>>> Signed-off-by: Arunpravin Paneer Selvam >>>>> <Arunpravin.PaneerSelvam@amd.com> >>>>> --- >>>>> drivers/gpu/buddy.c | 88 +++++++++++++++ >>>>> +-------------- >>>>> drivers/gpu/tests/gpu_buddy_test.c | 83 ++++++++++++++++++++++++++-- >>>>> 2 files changed, 126 insertions(+), 45 deletions(-) >>>>> >>>>> diff --git a/drivers/gpu/buddy.c b/drivers/gpu/buddy.c >>>>> index 2f2aaadafe35..5265e1f6a318 100644 >>>>> --- a/drivers/gpu/buddy.c >>>>> +++ b/drivers/gpu/buddy.c >>>>> @@ -1685,26 +1685,14 @@ static int __gpu_buddy_alloc_range(struct >>>>> gpu_buddy *mm, >>>>> blocks, total_allocated_on_err); >>>>> } >>>>> -static int __alloc_contig_aligned_retry(struct gpu_buddy *mm, >>>>> - u64 unaligned_offset, >>>>> - u64 size, >>>>> - u64 min_block_size, >>>>> - unsigned long flags, >>>>> - struct list_head *blocks) >>>>> -{ >>>>> - u64 aligned_offset = round_down(unaligned_offset, >>>>> min_block_size); >>>>> - >>>>> - return __gpu_buddy_alloc_range(mm, aligned_offset, size, flags, >>>>> - NULL, blocks); >>>>> -} >>>>> - >>>>> static int __alloc_contig_try_harder(struct gpu_buddy *mm, >>>>> + u64 range_start, u64 range_end, >>>>> u64 size, >>>>> u64 min_block_size, >>>>> unsigned long flags, >>>>> struct list_head *blocks) >>>>> { >>>>> - u64 rhs_offset, lhs_offset, filled; >>>>> + u64 rhs_offset, lhs_offset, filled, aligned; >>>>> struct gpu_buddy_block *block; >>>>> struct rb_root *root; >>>>> struct rb_node *iter; >>>>> @@ -1734,20 +1722,24 @@ static int __alloc_contig_try_harder(struct >>>>> gpu_buddy *mm, >>>>> flags, &filled, blocks); >>>>> if (err && err != -ENOSPC) >>>>> return err; >>>>> - if (!err && IS_ALIGNED(rhs_offset, min_block_size)) >>>>> + if (!err && IS_ALIGNED(rhs_offset, min_block_size) && >>>>> + rhs_offset >= range_start && rhs_offset + size <= >>>>> range_end) >>>>> return 0; >>>>> if (!err) { >>>>> /* Allocate the unaligned RHS offset using round_down */ >>>>> gpu_buddy_free_list_internal(mm, blocks); >>>>> - err = __alloc_contig_aligned_retry(mm, rhs_offset, >>>>> - size, >>>>> - min_block_size, >>>>> - flags, blocks); >>>>> - if (!err) >>>>> - return 0; >>>>> - if (err != -ENOSPC) { >>>>> - gpu_buddy_free_list_internal(mm, blocks); >>>>> - return err; >>>>> + >>>>> + aligned = round_down(rhs_offset, min_block_size); >>>>> + if (aligned >= range_start && >>>>> + aligned + size <= range_end) { >>>>> + err = __gpu_buddy_alloc_range(mm, aligned, size, >>>>> + flags, NULL, blocks); >>>> >>>> Did you consider doing a bias-range for [start, end] using >>>> min_block_size and using what it returns as the starting point, >>>> extending left/right? If that fails advance start and try again? >>>> Maybe what you have here is much better for the case you have in mind? >>> I took a closer look at the alloc_range_bias approach. My >>> understanding is that this would repeatedly bias within [start, end], >>> use the returned min_block_size block as a starting point, and then >>> extend left/right to build the requested run. >>> While that should work, every failed attempt may require splitting >>> higher-order blocks to obtain a min_block_size block, followed by a >>> free/merge back when the extension fails. >>> The free-tree descent evaluates the available starting points through >>> a tree walk without any splitting or allocation just for enumeration, >>> so I kept that approach. >>> Please let me know if there is a case where alloc_range_bias would >>> provide an advantage over the free-tree descent. >>> >>> While evaluating it, I found two issues in the current try_harder() >>> implementation: >>> >>> 1. It only searches free_tree[size_order]. This is insufficient when >>> min_block_size < size. For example, for a 128 KiB allocation >>> (order-5) with min_block_size = 4 KiB, free_tree[5] may be empty >>> while two adjacent order-4 (64 KiB) blocks covering [64 KiB, 128 KiB] >>> and [128 KiB, 192 KiB] are free. These blocks still form a valid >>> order-5-sized contiguous run, but they can never appear in >>> free_tree[5] because they are not mergeable buddies. As a result, a >>> search that only considers free_tree[5] will never find this >>> placement. v3 addresses this by walking the free tree from the >>> requested size order down to min_order, while reusing the existing >>> extend/stitch logic and min_block_size alignment checks unchanged. >>> >>> 2. The search is not restricted to the requested range. v3 confines >>> the walk to [range_start, range_end], skipping candidates at or above >>> range_end and stopping once the walk falls below range_start. >>> This ensures that range-constrained allocations only consider free >>> blocks within the requested window and avoids performing allocation/ >>> free attempts on blocks outside the specified range. >>> For non-range callers, the effective window remains [0, mm->size], so >>> the behavior is unchanged. >>> >>> Regards, >>> Arun. >>>> >>>>> + if (!err) >>>>> + return 0; >>>>> + if (err != -ENOSPC) { >>>>> + gpu_buddy_free_list_internal(mm, blocks); >>>>> + return err; >>>>> + } >>>>> } >>>>> goto next; >>>>> } >>>>> @@ -1759,15 +1751,17 @@ static int __alloc_contig_try_harder(struct >>>>> gpu_buddy *mm, >>>>> /* Allocate the unaligned LHS offset using round_down */ >>>>> gpu_buddy_free_list_internal(mm, blocks); >>>>> - err = __alloc_contig_aligned_retry(mm, lhs_offset, >>>>> - size, >>>>> - min_block_size, >>>>> - flags, blocks); >>>>> - if (!err) >>>>> - return 0; >>>>> - if (err != -ENOSPC) { >>>>> - gpu_buddy_free_list_internal(mm, blocks); >>>>> - return err; >>>>> + >>>>> + aligned = round_down(lhs_offset, min_block_size); >>>>> + if (aligned >= range_start && aligned + size <= range_end) { >>>>> + err = __gpu_buddy_alloc_range(mm, aligned, size, >>>>> + flags, NULL, blocks); >>>>> + if (!err) >>>>> + return 0; >>>>> + if (err != -ENOSPC) { >>>>> + gpu_buddy_free_list_internal(mm, blocks); >>>>> + return err; >>>>> + } >>>>> } >>>>> next: >>>>> gpu_buddy_free_list_internal(mm, blocks); >>>>> @@ -2021,11 +2015,18 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy >>>>> *mm, >>>>> min_order = ilog2(min_block_size) - ilog2(mm->chunk_size); >>>>> if (order > mm->max_order || size > mm->size) { >>>>> - if ((flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) && >>>>> - !(flags & GPU_BUDDY_RANGE_ALLOCATION)) >>>>> - return __alloc_contig_try_harder(mm, original_size, >>>>> + if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) { >>>>> + u64 range_start, range_end; >>>>> + >>>>> + range_start = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? >>>>> start : 0; >>>>> + range_end = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? >>>>> end : mm->size; >>>>> + >>>>> + return __alloc_contig_try_harder(mm, range_start, >>>>> + range_end, >>>>> + original_size, >>>>> original_min_size, >>>>> flags, blocks); >>>>> + } >>>>> return -EINVAL; >>>>> } >>>>> @@ -2058,9 +2059,14 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy >>>>> *mm, >>>>> * Try contiguous block allocation through >>>>> * try harder method. >>>>> */ >>>>> - if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION && >>>>> - !(flags & GPU_BUDDY_RANGE_ALLOCATION)) { >>>>> - err = __alloc_contig_try_harder(mm, >>>>> + if (flags & GPU_BUDDY_CONTIGUOUS_ALLOCATION) { >>>>> + u64 range_start, range_end; >>>>> + >>>>> + range_start = (flags & >>>>> GPU_BUDDY_RANGE_ALLOCATION) ? start : 0; >>>>> + range_end = (flags & GPU_BUDDY_RANGE_ALLOCATION) ? >>>>> end : mm->size; >>>>> + >>>>> + err = __alloc_contig_try_harder(mm, range_start, >>>>> + range_end, >>>>> original_size, >>>>> original_min_size, >>>>> flags, >>>>> @@ -2068,9 +2074,9 @@ int gpu_buddy_alloc_blocks(struct gpu_buddy *mm, >>>>> if (!err) >>>>> return 0; >>>>> if (err != -ENOSPC) >>>>> - return err; >>>>> - goto err_free; >>>>> + goto err_free; >>>>> } >>>>> + >>>>> err = -ENOSPC; >>>>> goto err_free; >>>>> } while (1); >>>>> diff --git a/drivers/gpu/tests/gpu_buddy_test.c b/drivers/gpu/ >>>>> tests/ gpu_buddy_test.c >>>>> index b75d32ca6ca0..2c445870b808 100644 >>>>> --- a/drivers/gpu/tests/gpu_buddy_test.c >>>>> +++ b/drivers/gpu/tests/gpu_buddy_test.c >>>>> @@ -1251,6 +1251,77 @@ static void >>>>> gpu_test_buddy_alloc_contiguous(struct kunit *test) >>>>> gpu_buddy_fini(&mm); >>>>> } >>>>> +static void gpu_test_buddy_alloc_range_contiguous(struct kunit >>>>> *test) >>>>> +{ >>>>> + const unsigned long ps = SZ_4K, mm_size = 16 * ps; >>>>> + const unsigned long range_end = 8 * ps; >>>>> + struct gpu_buddy_block *block, *prev; >>>>> + LIST_HEAD(allocated); >>>>> + struct gpu_buddy mm; >>>>> + LIST_HEAD(pin_lo); >>>>> + LIST_HEAD(pin_hi); >>>>> + u64 total; >>>>> + >>>>> + KUNIT_ASSERT_FALSE_MSG(test, gpu_buddy_init(&mm, mm_size, ps), >>>>> + "buddy_init failed\n"); >>>>> + >>>>> + /* >>>>> + * Idea is to confine the test to the sub-range [0, 32K), >>>>> which a 12K >>>>> + * contiguous request (rounded up to 16K) splits into two >>>>> naturally >>>>> + * aligned 16K slots: [0, 16K) and [16K, 32K). We pin the >>>>> first 4K page >>>>> + * of each slot ([0, 4K) and [16K, 20K)) so that neither >>>>> aligned slot >>>>> + * can satisfy the rounded-up 16K allocation, yet the freed >>>>> remainder >>>>> + * still leaves a contiguous 12K hole at offset 4K, which is >>>>> page-aligned >>>>> + * but not 16K-aligned. A 12K contiguous+range allocation must >>>>> therefore >>>>> + * fall back to stitching that span instead of returning -ENOSPC. >>>>> + */ >>>>> + KUNIT_ASSERT_FALSE_MSG(test, >>>>> + gpu_buddy_alloc_blocks(&mm, 0, ps, ps, ps, >>>>> + &pin_lo, 0), >>>>> + "failed to pin low page\n"); >>>>> + KUNIT_ASSERT_FALSE_MSG(test, >>>>> + gpu_buddy_alloc_blocks(&mm, 4 * ps, 5 * ps, ps, >>>>> + ps, &pin_hi, 0), >>>>> + "failed to pin high page\n"); >>>>> + >>>>> + /* No aligned 16K block is free; the range-aware fallback must >>>>> stitch >>>>> + * the unaligned [ps, 4*ps) hole instead of returning -ENOSPC. >>>>> + */ >>>>> + KUNIT_ASSERT_FALSE_MSG(test, >>>>> + gpu_buddy_alloc_blocks(&mm, 0, range_end, 3 * ps, >>>>> + ps, &allocated, >>>>> + GPU_BUDDY_CONTIGUOUS_ALLOCATION | >>>>> + GPU_BUDDY_RANGE_ALLOCATION), >>>>> + "range-restricted contiguous alloc failed\n"); >>>>> + >>>>> + /* The result must be exactly 3*ps, contiguous, and inside the >>>>> range. */ >>>>> + total = 0; >>>>> + prev = NULL; >>>>> + list_for_each_entry(block, &allocated, link) { >>>>> + u64 offset = gpu_buddy_block_offset(block); >>>>> + u64 bsize = gpu_buddy_block_size(&mm, block); >>>>> + >>>>> + KUNIT_EXPECT_TRUE_MSG(test, offset + bsize <= range_end, >>>>> + "block [%llx, %llx) outside range\n", >>>>> + offset, offset + bsize); >>>>> + if (prev) >>>>> + KUNIT_EXPECT_EQ_MSG(test, >>>>> + gpu_buddy_block_offset(prev) + >>>>> + gpu_buddy_block_size(&mm, prev), >>>>> + offset, >>>>> + "block at %llx not contiguous\n", >>>>> + offset); >>>>> + prev = block; >>>>> + total += bsize; >>>>> + } >>>>> + KUNIT_EXPECT_EQ(test, total, 3 * ps); >>>>> + >>>>> + gpu_buddy_free_list(&mm, &allocated, 0); >>>>> + gpu_buddy_free_list(&mm, &pin_lo, 0); >>>>> + gpu_buddy_free_list(&mm, &pin_hi, 0); >>>>> + gpu_buddy_fini(&mm); >>>>> +} >>>>> + >>>>> static void gpu_test_buddy_alloc_pathological(struct kunit *test) >>>>> { >>>>> u64 mm_size, size, start = 0; >>>>> @@ -1534,10 +1605,13 @@ static void >>>>> gpu_test_buddy_alloc_exceeds_max_order(struct kunit *test) >>>>> GPU_BUDDY_RANGE_ALLOCATION); >>>>> KUNIT_EXPECT_EQ(test, err, -EINVAL); >>>>> - /* CONTIGUOUS + RANGE should return -EINVAL (no try_harder >>>>> for RANGE) */ >>>>> - err = gpu_buddy_alloc_blocks(&mm, 0, mm_size, size, SZ_4K, >>>>> &blocks, >>>>> - GPU_BUDDY_CONTIGUOUS_ALLOCATION | >>>>> GPU_BUDDY_RANGE_ALLOCATION); >>>>> - KUNIT_EXPECT_EQ(test, err, -EINVAL); >>>>> + /* CONTIGUOUS + RANGE should succeed via the range-aware >>>>> try_harder */ >>>>> + KUNIT_ASSERT_FALSE_MSG(test, gpu_buddy_alloc_blocks(&mm, 0, >>>>> mm_size, size, >>>>> + SZ_4K, &blocks, >>>>> + GPU_BUDDY_CONTIGUOUS_ALLOCATION | >>>>> + GPU_BUDDY_RANGE_ALLOCATION), >>>>> + "range contiguous alloc hit an error >>>>> size=%llu\n", size); >>>>> + gpu_buddy_free_list(&mm, &blocks, 0); >>>>> gpu_buddy_fini(&mm); >>>>> } >>>>> @@ -1603,6 +1677,7 @@ static struct kunit_case gpu_buddy_tests[] = { >>>>> KUNIT_CASE(gpu_test_buddy_alloc_pessimistic), >>>>> KUNIT_CASE(gpu_test_buddy_alloc_pathological), >>>>> KUNIT_CASE(gpu_test_buddy_alloc_contiguous), >>>>> + KUNIT_CASE(gpu_test_buddy_alloc_range_contiguous), >>>>> KUNIT_CASE(gpu_test_buddy_alloc_clear), >>>>> KUNIT_CASE(gpu_test_buddy_alloc_range), >>>>> KUNIT_CASE(gpu_test_buddy_alloc_range_bias), >>>>> >>>>> base-commit: 744f262401cc2e1f3827496c72a47e072d31a852 >>>> >>> >> > ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2026-10-09 10:17 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-09-30 6:21 [PATCH v2] gpu/buddy: add range-restricted contiguous allocation fallback Arunpravin Paneer Selvam 2026-09-30 6:29 ` ✓ CI.KUnit: success for " Patchwork 2026-09-30 6:31 ` [PATCH v2] " sashiko-bot 2026-09-30 7:32 ` ✓ Xe.CI.BAT: success for " Patchwork 2026-09-30 11:53 ` ✗ Xe.CI.FULL: failure " Patchwork 2026-10-01 7:06 ` [PATCH v2] " Arunpravin Paneer Selvam 2026-10-01 18:28 ` Matthew Auld 2026-10-05 14:14 ` Arunpravin Paneer Selvam 2026-10-06 9:57 ` Matthew Auld 2026-10-09 9:14 ` Arunpravin Paneer Selvam 2026-10-09 10:17 ` Matthew Auld
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox