Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Apply Wa_14028597154 to SR-IOV VF
@ 2026-12-03 18:14 Piórkowski, Piotr
  2026-12-03 18:14 ` [PATCH v2 1/5] drm/xe: Don't allow disabling multi-queue on PF Piórkowski, Piotr
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Piórkowski, Piotr @ 2026-12-03 18:14 UTC (permalink / raw)
  To: intel-xe; +Cc: Piotr Piórkowski

From: Piotr Piórkowski <piotr.piorkowski@intel.com>

Wa_14028597154 requires the low-4MB GGTT PTE matching each 4MB chunk of
GGTT (addr >> 10), plus the following page, to be backed by a dummy page
of the function owning that chunk. The WA is currently applied only on
native, this series extends it to SR-IOV PF and VF.

Patch 1 makes the probe fail if multi-queue is disabled via configfs on
an SR-IOV PF. The GuC is shared with the VFs and the PF has to prepare
the VF resources needed by multi-queue, so multi-queue can only be
disabled after SR-IOV is disabled (sriov/max_vfs=0).

Patches 2-3 make the shareable GGTT allocations align the GGTT address
instead of the drm_mm offset, which differ by ggtt->start (the WOPCM
size), and add a KUnit test for it. This is needed to provision VF GGTT
ranges with an alignment that ggtt->start does not satisfy.

Patch 4 is the PF side. When the WA is active, VF GGTT ranges are
provisioned 4MB aligned, in whole 4MB chunks and of at least 8MB. The
matching low-4MB PTEs are assigned to the VF together with its range
and returned to the PF dummy page on release. The 4MB chunk below a VF
range is kept free of PF allocations.

Patch 5 is the VF side. The VF maps its own dummy page into the low-4MB
PTEs matching its GGTT range at probe, on resume and after migration,
verifies that the PTEs were written and fails the probe if they were not
or if the provisioned range can't be used with the WA.

v1 -> v2:
 - Fix build without CONFIG_PCI_IOV in the PF patch (CI)

Piotr Piórkowski (3):
  drm/xe: Don't allow disabling multi-queue on PF
  drm/xe/ggtt: Align shareable GGTT nodes by GGTT address
  drm/xe/tests: Test shareable GGTT alignment by GGTT address

Varun Gupta (2):
  drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV PF
  drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV VF

 drivers/gpu/drm/xe/tests/xe_ggtt_kunit.c   |  24 ++
 drivers/gpu/drm/xe/xe_configfs.c           |   6 +
 drivers/gpu/drm/xe/xe_ggtt.c               | 370 ++++++++++++++++++---
 drivers/gpu/drm/xe/xe_ggtt.h               |   3 +-
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c |  19 +-
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c        |  12 +-
 drivers/gpu/drm/xe/xe_pci.c                |   6 +
 7 files changed, 394 insertions(+), 46 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH v2 1/5] drm/xe: Don't allow disabling multi-queue on PF
  2026-12-03 18:14 [PATCH v2 0/5] Apply Wa_14028597154 to SR-IOV VF Piórkowski, Piotr
@ 2026-12-03 18:14 ` Piórkowski, Piotr
  2026-12-03 20:06   ` Piotr Piórkowski
  2026-12-03 18:14 ` [PATCH v2 2/5] drm/xe/ggtt: Align shareable GGTT nodes by GGTT address Piórkowski, Piotr
                   ` (5 subsequent siblings)
  6 siblings, 1 reply; 14+ messages in thread
From: Piórkowski, Piotr @ 2026-12-03 18:14 UTC (permalink / raw)
  To: intel-xe
  Cc: Piotr Piórkowski, Matt Atwood, Rodrigo Vivi,
	Satyanarayana K V P, Tangudu Tilak Tirumalesh, Varun Gupta

From: Piotr Piórkowski <piotr.piorkowski@intel.com>

Multi-queue can be disabled via configfs. On an SR-IOV PF this also
disables it in the GuC, which is shared with the VFs. Each VF has its
own configfs setting and may still expect multi-queue to be available.
The PF also has to prepare the VF resources needed by multi-queue, like
the GGTT layout required by Wa_14028597154, and it skips that when
multi-queue is disabled on the PF.

Fail the probe if multi-queue is disabled on a PF that supports it and
tell the user to disable SR-IOV (sriov/max_vfs=0) first. Disabling
multi-queue on native and on a VF works as before.

Cc: Matt Atwood <matthew.s.atwood@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
Cc: Varun Gupta <varun.gupta@intel.com>
Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
---
 drivers/gpu/drm/xe/xe_configfs.c | 6 ++++++
 drivers/gpu/drm/xe/xe_pci.c      | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_configfs.c b/drivers/gpu/drm/xe/xe_configfs.c
index 3a05e1cd9dda..9ad07ee4f58e 100644
--- a/drivers/gpu/drm/xe/xe_configfs.c
+++ b/drivers/gpu/drm/xe/xe_configfs.c
@@ -139,6 +139,12 @@
  *
  *	# echo 0 > /sys/kernel/config/xe/0000:03:00.0/enable_multi_queue
  *
+ * Multi-queue can't be disabled on an SR-IOV PF, because the GuC is shared with
+ * the VFs and each VF decides on its own whether it uses multi-queue. Setting 0
+ * on a PF makes the probe fail. To disable multi-queue on such a device,
+ * disable SR-IOV first, e.g. with ``sriov/max_vfs`` set to 0, so the device
+ * runs as native.
+ *
  * This attribute can only be set before binding to the device.
  *
  * PSMI
diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
index 0c6bc82d917b..1a457b3f8d25 100644
--- a/drivers/gpu/drm/xe/xe_pci.c
+++ b/drivers/gpu/drm/xe/xe_pci.c
@@ -931,6 +931,12 @@ static struct xe_gt *alloc_primary_gt(struct xe_tile *tile,
 		!(GRAPHICS_VERx100(xe) == 3510 && xe->info.step.graphics < STEP_B0);
 	gt->info.multi_queue_engine_class_mask = graphics_desc->multi_queue_engine_class_mask;
 	if (!xe_configfs_get_enable_multi_queue(to_pci_dev(xe->drm.dev))) {
+		/* GuC is shared with VFs and PF must prepare their multi-queue resources */
+		if (IS_SRIOV_PF(xe) && gt->info.multi_queue_engine_class_mask) {
+			xe_gt_err(gt, "Can't disable multi-queue in SR-IOV PF mode, disable SR-IOV first (sriov/max_vfs=0)!\n");
+			return ERR_PTR(-ENODEV);
+		}
+
 		xe_gt_info(gt, "Multi-queue disabled via configfs\n");
 		gt->info.multi_queue_engine_class_mask = 0;
 	}
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH v2 2/5] drm/xe/ggtt: Align shareable GGTT nodes by GGTT address
  2026-12-03 18:14 [PATCH v2 0/5] Apply Wa_14028597154 to SR-IOV VF Piórkowski, Piotr
  2026-12-03 18:14 ` [PATCH v2 1/5] drm/xe: Don't allow disabling multi-queue on PF Piórkowski, Piotr
@ 2026-12-03 18:14 ` Piórkowski, Piotr
  2026-12-03 20:06   ` Rodrigo Vivi
  2026-12-03 18:14 ` [PATCH v2 3/5] drm/xe/tests: Test shareable GGTT alignment " Piórkowski, Piotr
                   ` (4 subsequent siblings)
  6 siblings, 1 reply; 14+ messages in thread
From: Piórkowski, Piotr @ 2026-12-03 18:14 UTC (permalink / raw)
  To: intel-xe
  Cc: Piotr Piórkowski, Matt Atwood, Rodrigo Vivi,
	Satyanarayana K V P, Tangudu Tilak Tirumalesh, Varun Gupta

From: Piotr Piórkowski <piotr.piorkowski@intel.com>

drm_mm offsets of the GGTT start at ggtt->start (the WOPCM size), so the
alignment passed to drm_mm is applied to the offset from ggtt->start, not
to the GGTT address. The GGTT address is only aligned when ggtt->start
is, which is not guaranteed as the WOPCM size differs between platforms.

The GGTT range provisioned to a VF is programmed in the hardware by its
GGTT address, so any alignment requirement for it applies to the GGTT
address and not to the drm_mm offset.

Make xe_ggtt_insert_node_shareable() align the GGTT address of the node.
If ggtt->start is not aligned to the requested alignment, look for the
highest suitable address in the holes of the shareable range and reserve
the node there.

Also align by GGTT address in xe_ggtt_largest_hole() and
xe_ggtt_print_holes(), so the VF provisioning estimates match what can
actually be allocated. While at it, drop the max() with ggtt->start
there, a leftover from when drm_mm used GGTT addresses, which made both
skip the first ggtt->start bytes of the lowest hole.

Cc: Matt Atwood <matthew.s.atwood@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
Cc: Varun Gupta <varun.gupta@intel.com>
Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
---
 drivers/gpu/drm/xe/xe_ggtt.c | 96 ++++++++++++++++++++++++++++++------
 1 file changed, 82 insertions(+), 14 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
index c24b7814c3ab..f3836a04eefd 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.c
+++ b/drivers/gpu/drm/xe/xe_ggtt.c
@@ -939,13 +939,66 @@ struct xe_ggtt_node *xe_ggtt_insert_node(struct xe_ggtt *ggtt, u32 size, u32 ali
 }
 
 #ifdef CONFIG_PCI_IOV
+/*
+ * drm_mm aligns offsets from ggtt->start, but the GGTT address of a VF range
+ * is what has to be aligned. If ggtt->start is not aligned to @align, look for
+ * the highest offset with an aligned GGTT address in the holes of the
+ * shareable range directly.
+ */
+static int ggtt_insert_node_shareable_locked(struct xe_ggtt_node *node, u64 size,
+					     u64 align)
+{
+	struct xe_ggtt *ggtt = node->ggtt;
+	u64 range_start = ggtt_shareable_offset(ggtt);
+	u64 range_end = ggtt->full_size;
+	u64 hole_start, hole_end, best = U64_MAX;
+	struct drm_mm_node *entry;
+
+	lockdep_assert_held(&ggtt->lock);
+
+	if (align <= 1 || IS_ALIGNED(ggtt->start, align))
+		return ggtt_insert_node_in_range_locked(node, size, align, range_start,
+							ggtt->shareable_size,
+							DRM_MM_INSERT_HIGH);
+
+	xe_tile_assert(ggtt->tile, is_power_of_2(align));
+
+	if (!size)
+		return -EINVAL;
+
+	drm_mm_for_each_hole(entry, &ggtt->mm, hole_start, hole_end) {
+		u64 lo = max(hole_start, range_start);
+		u64 hi = min(hole_end, range_end);
+		u64 addr;
+
+		if (hi <= lo || hi - lo < size)
+			continue;
+
+		addr = ALIGN_DOWN(ggtt->start + hi - size, align);
+		if (addr < ggtt->start + lo)
+			continue;
+
+		if (best == U64_MAX || addr - ggtt->start > best)
+			best = addr - ggtt->start;
+	}
+
+	if (best == U64_MAX)
+		return -ENOSPC;
+
+	node->base.start = best;
+	node->base.size = size;
+
+	return drm_mm_reserve_node(&ggtt->mm, &node->base);
+}
+
 /**
  * xe_ggtt_insert_node_shareable() - Insert a new node in the shareable GGTT range
  * @ggtt: the &xe_ggtt into which the node should be inserted.
  * @size: size of the node
- * @align: alignment constrain of the node
+ * @align: alignment constraint of the node
  *
- * Allocations always start from the top (DRM_MM_INSERT_HIGH).
+ * Allocations always start from the top (DRM_MM_INSERT_HIGH). @align applies
+ * to the GGTT address of the node, not to its offset from the GGTT start.
  *
  * Return: &xe_ggtt_node on success or an ERR_PTR on failure.
  */
@@ -963,10 +1016,7 @@ struct xe_ggtt_node *xe_ggtt_insert_node_shareable(struct xe_ggtt *ggtt, u32 siz
 
 	guard(mutex)(&ggtt->lock);
 
-	ret = ggtt_insert_node_in_range_locked(node, size, align,
-					       ggtt_shareable_offset(ggtt),
-					       ggtt->shareable_size,
-					       DRM_MM_INSERT_HIGH);
+	ret = ggtt_insert_node_shareable_locked(node, size, align);
 	if (ret) {
 		ggtt_node_fini(node);
 		return ERR_PTR(ret);
@@ -1224,6 +1274,30 @@ void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
 			    bo->flags & XE_BO_FLAG_GGTT_INVALIDATE);
 }
 
+/*
+ * Shrink a hole, given as drm_mm offsets, to aligned boundaries. Align the
+ * GGTT addresses rather than the drm_mm offsets.
+ */
+static bool ggtt_align_hole(struct xe_ggtt *ggtt, u64 alignment,
+			    u64 *hole_start, u64 *hole_end)
+{
+	u64 start = ggtt->start + *hole_start;
+	u64 end = ggtt->start + *hole_end;
+
+	if (alignment > 1) {
+		xe_tile_assert(ggtt->tile, is_power_of_2(alignment));
+		start = ALIGN(start, alignment);
+		end = ALIGN_DOWN(end, alignment);
+	}
+
+	if (start >= end)
+		return false;
+
+	*hole_start = start - ggtt->start;
+	*hole_end = end - ggtt->start;
+	return true;
+}
+
 /**
  * xe_ggtt_largest_hole - Largest GGTT hole
  * @ggtt: the &xe_ggtt that will be inspected
@@ -1241,10 +1315,7 @@ u64 xe_ggtt_largest_hole(struct xe_ggtt *ggtt, u64 alignment, u64 *spare)
 
 	mutex_lock(&ggtt->lock);
 	drm_mm_for_each_hole(entry, mm, hole_start, hole_end) {
-		hole_start = max(hole_start, ggtt->start);
-		hole_start = ALIGN(hole_start, alignment);
-		hole_end = ALIGN_DOWN(hole_end, alignment);
-		if (hole_start >= hole_end)
+		if (!ggtt_align_hole(ggtt, alignment, &hole_start, &hole_end))
 			continue;
 		hole_size = hole_end - hole_start;
 		if (spare)
@@ -1416,10 +1487,7 @@ u64 xe_ggtt_print_holes(struct xe_ggtt *ggtt, u64 alignment, struct drm_printer
 
 	mutex_lock(&ggtt->lock);
 	drm_mm_for_each_hole(entry, mm, hole_start, hole_end) {
-		hole_start = max(hole_start, ggtt->start);
-		hole_start = ALIGN(hole_start, alignment);
-		hole_end = ALIGN_DOWN(hole_end, alignment);
-		if (hole_start >= hole_end)
+		if (!ggtt_align_hole(ggtt, alignment, &hole_start, &hole_end))
 			continue;
 		hole_size = hole_end - hole_start;
 		total += hole_size;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH v2 3/5] drm/xe/tests: Test shareable GGTT alignment by GGTT address
  2026-12-03 18:14 [PATCH v2 0/5] Apply Wa_14028597154 to SR-IOV VF Piórkowski, Piotr
  2026-12-03 18:14 ` [PATCH v2 1/5] drm/xe: Don't allow disabling multi-queue on PF Piórkowski, Piotr
  2026-12-03 18:14 ` [PATCH v2 2/5] drm/xe/ggtt: Align shareable GGTT nodes by GGTT address Piórkowski, Piotr
@ 2026-12-03 18:14 ` Piórkowski, Piotr
  2026-12-03 20:07   ` Rodrigo Vivi
  2026-12-03 18:14 ` [PATCH v2 4/5] drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV PF Piórkowski, Piotr
                   ` (3 subsequent siblings)
  6 siblings, 1 reply; 14+ messages in thread
From: Piórkowski, Piotr @ 2026-12-03 18:14 UTC (permalink / raw)
  To: intel-xe
  Cc: Piotr Piórkowski, Matt Atwood, Rodrigo Vivi,
	Satyanarayana K V P, Tangudu Tilak Tirumalesh, Varun Gupta

From: Piotr Piórkowski <piotr.piorkowski@intel.com>

Add a test for a shareable GGTT node and the largest GGTT hole with a
4M alignment, which the 1M GGTT start used by the tests does not
satisfy. Check that the GGTT address of the node is aligned and that
the node is placed at the top of the GGTT. Also check the largest hole
before and after the node is inserted.

Cc: Matt Atwood <matthew.s.atwood@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
Cc: Varun Gupta <varun.gupta@intel.com>
Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
---
 drivers/gpu/drm/xe/tests/xe_ggtt_kunit.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/drivers/gpu/drm/xe/tests/xe_ggtt_kunit.c b/drivers/gpu/drm/xe/tests/xe_ggtt_kunit.c
index 202b48b0c984..090b7dd88888 100644
--- a/drivers/gpu/drm/xe/tests/xe_ggtt_kunit.c
+++ b/drivers/gpu/drm/xe/tests/xe_ggtt_kunit.c
@@ -306,6 +306,29 @@ static void alloc_shareable_pool_oversized(struct kunit *test)
 	KUNIT_EXPECT_EQ(test, PTR_ERR(node), -ENOSPC);
 }
 
+static void alloc_shareable_aligned_addr(struct kunit *test)
+{
+	u64 accessible = ggtt_test_accessible_size(test);
+	u64 top = ALIGN_DOWN(GGTT_TEST_START + accessible, SZ_4M);
+	struct xe_ggtt_node *node;
+	struct xe_ggtt *ggtt;
+
+	ggtt = ggtt_test_create(test, accessible, accessible, accessible);
+	KUNIT_ASSERT_NOT_NULL(test, ggtt);
+	/* Force the path for a GGTT start that is not aligned */
+	KUNIT_ASSERT_FALSE(test, IS_ALIGNED(GGTT_TEST_START, SZ_4M));
+
+	KUNIT_EXPECT_EQ(test, xe_ggtt_largest_hole(ggtt, SZ_4M, NULL),
+			top - ALIGN(GGTT_TEST_START, SZ_4M));
+
+	node = ggtt_test_track_node(test, xe_ggtt_insert_node_shareable(ggtt, SZ_8M, SZ_4M));
+	KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node);
+	KUNIT_EXPECT_TRUE(test, IS_ALIGNED(xe_ggtt_node_addr(node), SZ_4M));
+	KUNIT_EXPECT_EQ(test, xe_ggtt_node_addr(node) + SZ_8M, top);
+	KUNIT_EXPECT_EQ(test, xe_ggtt_largest_hole(ggtt, SZ_4M, NULL),
+			top - SZ_8M - ALIGN(GGTT_TEST_START, SZ_4M));
+}
+
 static struct kunit_case ggtt_iov_test_cases[] = {
 	KUNIT_CASE(init_shared_pf),
 	KUNIT_CASE(init_partial_overlap),
@@ -316,6 +339,7 @@ static struct kunit_case ggtt_iov_test_cases[] = {
 	KUNIT_CASE(alloc_partial_overlap_shareable_full),
 	KUNIT_CASE(alloc_shareable_pool_unavailable),
 	KUNIT_CASE(alloc_shareable_pool_oversized),
+	KUNIT_CASE(alloc_shareable_aligned_addr),
 	{}
 };
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH v2 4/5] drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV PF
  2026-12-03 18:14 [PATCH v2 0/5] Apply Wa_14028597154 to SR-IOV VF Piórkowski, Piotr
                   ` (2 preceding siblings ...)
  2026-12-03 18:14 ` [PATCH v2 3/5] drm/xe/tests: Test shareable GGTT alignment " Piórkowski, Piotr
@ 2026-12-03 18:14 ` Piórkowski, Piotr
  2026-12-03 20:30   ` Rodrigo Vivi
  2026-12-03 18:14 ` [PATCH v2 5/5] drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV VF Piórkowski, Piotr
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 14+ messages in thread
From: Piórkowski, Piotr @ 2026-12-03 18:14 UTC (permalink / raw)
  To: intel-xe
  Cc: Varun Gupta, Matt Atwood, Rodrigo Vivi, Satyanarayana K V P,
	Tangudu Tilak Tirumalesh, Piotr Piórkowski

From: Varun Gupta <varun.gupta@intel.com>

Wa_14028597154 requires the low-4MB GGTT PTE matching each 4MB chunk of
GGTT (addr >> 10), plus the following page, to be backed by a dummy page
of the function owning that chunk. With SR-IOV this also applies to the
GGTT ranges of the VFs.

When the WA is active, provision VF GGTT ranges 4MB aligned and in whole
4MB chunks. Make them at least 8MB, as the VF keeps the top 4MB of its
range unused, and don't estimate a fair VF GGTT size below 8MB.

Hand the low-4MB PTEs matching a VF range to the VF together with the
range, as VFID-only PTEs like the range itself. On release, restore the
PF dummy page in them and invalidate the GGTT TLBs.

Keep the 4MB chunk right below a VF range free of PF allocations. Place
PF BOs at least 4MB below the lowest VF chunk, and place a VF range only
where the chunk below is free or owned by another VF. Track the
VF-owned chunks, so PF resume leaves their low-4MB PTEs alone.

The VF side of the WA is added in a follow-up patch.

v2:
 - Fix build without CONFIG_PCI_IOV (CI)

Cc: Matt Atwood <matthew.s.atwood@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
Signed-off-by: Varun Gupta <varun.gupta@intel.com>
Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
---
 drivers/gpu/drm/xe/xe_ggtt.c               | 159 +++++++++++++++++++--
 drivers/gpu/drm/xe/xe_ggtt.h               |   1 +
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c |  19 ++-
 3 files changed, 164 insertions(+), 15 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
index f3836a04eefd..64b81c0c48a3 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.c
+++ b/drivers/gpu/drm/xe/xe_ggtt.c
@@ -6,6 +6,7 @@
 #include "xe_ggtt.h"
 
 #include <kunit/visibility.h>
+#include <linux/bitmap.h>
 #include <linux/error-injection.h>
 #include <linux/io-64-nonatomic-lo-hi.h>
 #include <linux/sizes.h>
@@ -72,6 +73,8 @@
 #define XE_GGTT_FLAGS_64K	BIT(0)
 #define XE_GGTT_FLAGS_ONLINE	BIT(1)
 
+#define XE_GGTT_NUM_4M_CHUNKS	(SZ_4G / SZ_4M)
+
 /**
  * struct xe_ggtt_node - A node in GGTT.
  *
@@ -132,6 +135,8 @@ struct xe_ggtt {
 	struct xe_bo *scratch;
 	/** @low_4m_pte: PTE backing GGTT [4K, 4M), 0 if unused */
 	u64 low_4m_pte;
+	/** @vf_chunks: Bitmap of 4MB GGTT chunks assigned to VFs */
+	DECLARE_BITMAP(vf_chunks, XE_GGTT_NUM_4M_CHUNKS);
 	/** @lock: Mutex lock to protect GGTT data */
 	struct mutex lock;
 	/**
@@ -480,6 +485,14 @@ static void ggtt_init_shared(struct xe_ggtt *ggtt, u64 start, u64 size)
 	ggtt_init_ranges(ggtt, start, size, size, size);
 }
 
+static bool ggtt_needs_low_4m_wa(struct xe_ggtt *ggtt)
+{
+	struct xe_tile *tile = ggtt->tile;
+
+	return tile->primary_gt && XE_GT_WA(tile->primary_gt, 14028597154) &&
+	       xe_gt_has_multi_queue(tile->primary_gt);
+}
+
 static void ggtt_init_generic(struct xe_ggtt *ggtt, u64 start, u64 size)
 {
 	struct xe_device *xe = tile_to_xe(ggtt->tile);
@@ -568,6 +581,87 @@ ALLOW_ERROR_INJECTION(xe_ggtt_init_early, ERRNO); /* See xe_pci_probe() */
 static void xe_ggtt_invalidate(struct xe_ggtt *ggtt);
 static void xe_ggtt_invalidate_engine(struct xe_ggtt *ggtt);
 
+/*
+ * Return the low-4MB PTEs of the VF chunks in [start, start + size) to the PF
+ * dummy page. Chunks not assigned to a VF are left alone, so releasing a PF
+ * node does not touch the low 4MB.
+ */
+static void ggtt_release_low_4m_locked(struct xe_ggtt *ggtt, u64 start, u64 size)
+{
+	u64 va;
+
+	lockdep_assert_held(&ggtt->lock);
+	xe_tile_assert(ggtt->tile, ggtt->low_4m_pte);
+
+	for (va = ALIGN_DOWN(start, SZ_4M); va < start + size; va += SZ_4M)
+		if (__test_and_clear_bit(va / SZ_4M, ggtt->vf_chunks))
+			ggtt_set_low_4m_pte(ggtt, va >> 10, ggtt->low_4m_pte);
+}
+
+#ifdef CONFIG_PCI_IOV
+static u64 xe_encode_vfid_pte(u16 vfid)
+{
+	return FIELD_PREP(GGTT_PTE_VFID, vfid) | XE_PAGE_PRESENT;
+}
+
+/*
+ * Wa_14028597154: hand the low-4MB PTE matching every 4MB chunk of a VF range
+ * (va >> 10) to that VF, as a VFID-only PTE like in xe_ggtt_assign_locked().
+ */
+static void ggtt_assign_low_4m_locked(struct xe_ggtt *ggtt, u64 start, u64 size,
+				      u16 vfid)
+{
+	u64 pte = xe_encode_vfid_pte(vfid);
+	u64 va;
+
+	lockdep_assert_held(&ggtt->lock);
+	xe_tile_assert(ggtt->tile, ggtt->low_4m_pte);
+	xe_tile_assert(ggtt->tile, IS_ALIGNED(start, SZ_4M) && IS_ALIGNED(size, SZ_4M));
+
+	for (va = start; va < start + size; va += SZ_4M) {
+		ggtt_set_low_4m_pte(ggtt, va >> 10, pte);
+		__set_bit(va / SZ_4M, ggtt->vf_chunks);
+	}
+}
+
+/*
+ * Wa_14028597154: the 4MB chunk right below a VF range must not hold PF
+ * allocations. It has to be free, below the GGTT start, or owned by another
+ * VF.
+ */
+static bool ggtt_low_4m_room_below(struct xe_ggtt *ggtt, u64 addr, u64 hole_start)
+{
+	if (!ggtt->low_4m_pte || addr >= hole_start + SZ_4M)
+		return true;
+
+	if (hole_start == ggtt->start)
+		return true;
+
+	if (addr < SZ_4M)
+		return false;
+
+	return test_bit(addr / SZ_4M - 1, ggtt->vf_chunks);
+}
+#endif
+
+/*
+ * Return the lowest drm_mm offset in a hole that can hold a VF range. If the
+ * hole starts right above a node not owned by a VF, skip its first 4MB, see
+ * ggtt_low_4m_room_below().
+ */
+static u64 ggtt_low_4m_hole_start(struct xe_ggtt *ggtt, u64 hole_start)
+{
+	u64 addr = ggtt->start + hole_start;
+
+	if (!ggtt->low_4m_pte || !hole_start)
+		return hole_start;
+
+	if (IS_ALIGNED(addr, SZ_4M) && test_bit(addr / SZ_4M - 1, ggtt->vf_chunks))
+		return hole_start;
+
+	return hole_start + SZ_4M;
+}
+
 static void ggtt_restore_low_4m_locked(struct xe_ggtt *ggtt)
 {
 	u64 low_start = max_t(u64, ALIGN_DOWN(ggtt->start, SZ_4M) >> 10,
@@ -582,8 +676,11 @@ static void ggtt_restore_low_4m_locked(struct xe_ggtt *ggtt)
 	if (!ggtt->low_4m_pte)
 		return;
 
-	for (addr = low_start; addr < low_end; addr += XE_PAGE_SIZE)
+	for (addr = low_start; addr < low_end; addr += XE_PAGE_SIZE) {
+		if (test_bit(addr >> XE_PTE_SHIFT, ggtt->vf_chunks))
+			continue;
 		ggtt_set_low_4m_pte(ggtt, addr, ggtt->low_4m_pte);
+	}
 }
 
 /*
@@ -607,8 +704,7 @@ static int ggtt_map_low_4m_wa(struct xe_ggtt *ggtt)
 	if (IS_SRIOV_VF(xe))
 		return 0;
 
-	if (!tile->primary_gt || !XE_GT_WA(tile->primary_gt, 14028597154) ||
-	    !xe_gt_has_multi_queue(tile->primary_gt))
+	if (!ggtt_needs_low_4m_wa(ggtt))
 		return 0;
 
 	bo = xe_managed_bo_create_pin_map(xe, tile, XE_PAGE_SIZE, XE_BO_FLAG_SYSTEM);
@@ -640,6 +736,17 @@ void xe_ggtt_resume(struct xe_ggtt *ggtt)
 	ggtt_restore_low_4m_locked(ggtt);
 }
 
+/**
+ * xe_ggtt_has_low_4m_wa() - Check if the low-4MB GGTT mapping is applied
+ * @ggtt: the &xe_ggtt
+ *
+ * Return: true if the low-4MB GGTT mapping for Wa_14028597154 is in place.
+ */
+bool xe_ggtt_has_low_4m_wa(struct xe_ggtt *ggtt)
+{
+	return ggtt->low_4m_pte;
+}
+
 static void xe_ggtt_initial_clear(struct xe_ggtt *ggtt)
 {
 	struct drm_mm_node *hole;
@@ -666,8 +773,13 @@ static void ggtt_node_remove(struct xe_ggtt_node *node)
 
 	mutex_lock(&ggtt->lock);
 	bound = ggtt->flags & XE_GGTT_FLAGS_ONLINE;
-	if (bound)
+	if (bound) {
 		xe_ggtt_clear(ggtt, xe_ggtt_node_addr(node), xe_ggtt_node_size(node));
+		/* Return a released VF range's low-4MB PTEs to the PF dummy page */
+		if (IS_SRIOV_PF(tile_to_xe(ggtt->tile)) && ggtt->low_4m_pte)
+			ggtt_release_low_4m_locked(ggtt, xe_ggtt_node_addr(node),
+						   xe_ggtt_node_size(node));
+	}
 	drm_mm_remove_node(&node->base);
 	node->base.size = 0;
 	if (bound && node->invalidate_on_remove) {
@@ -941,9 +1053,9 @@ struct xe_ggtt_node *xe_ggtt_insert_node(struct xe_ggtt *ggtt, u32 size, u32 ali
 #ifdef CONFIG_PCI_IOV
 /*
  * drm_mm aligns offsets from ggtt->start, but the GGTT address of a VF range
- * is what has to be aligned. If ggtt->start is not aligned to @align, look for
- * the highest offset with an aligned GGTT address in the holes of the
- * shareable range directly.
+ * is what has to be aligned. If ggtt->start is not aligned to @align, or the
+ * placement has to follow Wa_14028597154, look for the highest offset with an
+ * aligned GGTT address in the holes of the shareable range directly.
  */
 static int ggtt_insert_node_shareable_locked(struct xe_ggtt_node *node, u64 size,
 					     u64 align)
@@ -956,11 +1068,13 @@ static int ggtt_insert_node_shareable_locked(struct xe_ggtt_node *node, u64 size
 
 	lockdep_assert_held(&ggtt->lock);
 
-	if (align <= 1 || IS_ALIGNED(ggtt->start, align))
+	if ((align <= 1 || IS_ALIGNED(ggtt->start, align)) && !ggtt->low_4m_pte)
 		return ggtt_insert_node_in_range_locked(node, size, align, range_start,
 							ggtt->shareable_size,
 							DRM_MM_INSERT_HIGH);
 
+	/* Wa_14028597154: VF ranges are handed out in whole 4MB chunks */
+	align = max_t(u64, align, ggtt->low_4m_pte ? SZ_4M : 1);
 	xe_tile_assert(ggtt->tile, is_power_of_2(align));
 
 	if (!size)
@@ -978,6 +1092,10 @@ static int ggtt_insert_node_shareable_locked(struct xe_ggtt_node *node, u64 size
 		if (addr < ggtt->start + lo)
 			continue;
 
+		/* Wa_14028597154: keep PF allocations out of the chunk below */
+		if (!ggtt_low_4m_room_below(ggtt, addr, ggtt->start + hole_start))
+			continue;
+
 		if (best == U64_MAX || addr - ggtt->start > best)
 			best = addr - ggtt->start;
 	}
@@ -1198,6 +1316,21 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
 
 	end = min(end, ggtt->size);
 
+	/*
+	 * Wa_14028597154: keep PF allocations at least 4MB below the lowest
+	 * VF-owned chunk.
+	 */
+	if (ggtt->low_4m_pte && IS_SRIOV_PF(tile_to_xe(ggtt->tile))) {
+		unsigned long first_vf = find_first_bit(ggtt->vf_chunks,
+							XE_GGTT_NUM_4M_CHUNKS);
+
+		if (first_vf < XE_GGTT_NUM_4M_CHUNKS) {
+			u64 limit = (u64)first_vf * SZ_4M - SZ_4M;
+
+			end = limit > ggtt->start ? min(end, limit - ggtt->start) : 0;
+		}
+	}
+
 	if (end < start + xe_bo_size(bo))
 		err = -ENOSPC;
 	else
@@ -1315,6 +1448,7 @@ u64 xe_ggtt_largest_hole(struct xe_ggtt *ggtt, u64 alignment, u64 *spare)
 
 	mutex_lock(&ggtt->lock);
 	drm_mm_for_each_hole(entry, mm, hole_start, hole_end) {
+		hole_start = ggtt_low_4m_hole_start(ggtt, hole_start);
 		if (!ggtt_align_hole(ggtt, alignment, &hole_start, &hole_end))
 			continue;
 		hole_size = hole_end - hole_start;
@@ -1329,11 +1463,6 @@ u64 xe_ggtt_largest_hole(struct xe_ggtt *ggtt, u64 alignment, u64 *spare)
 }
 
 #ifdef CONFIG_PCI_IOV
-static u64 xe_encode_vfid_pte(u16 vfid)
-{
-	return FIELD_PREP(GGTT_PTE_VFID, vfid) | XE_PAGE_PRESENT;
-}
-
 static void xe_ggtt_assign_locked(const struct xe_ggtt_node *node, u16 vfid)
 {
 	struct xe_ggtt *ggtt = node->ggtt;
@@ -1344,6 +1473,9 @@ static void xe_ggtt_assign_locked(const struct xe_ggtt_node *node, u16 vfid)
 
 	lockdep_assert_held(&ggtt->lock);
 
+	if (ggtt->low_4m_pte)
+		ggtt_assign_low_4m_locked(ggtt, start, size, vfid);
+
 	while (start < end) {
 		ggtt->pt_ops->ggtt_set_pte(ggtt, start, pte);
 		start += XE_PAGE_SIZE;
@@ -1487,6 +1619,7 @@ u64 xe_ggtt_print_holes(struct xe_ggtt *ggtt, u64 alignment, struct drm_printer
 
 	mutex_lock(&ggtt->lock);
 	drm_mm_for_each_hole(entry, mm, hole_start, hole_end) {
+		hole_start = ggtt_low_4m_hole_start(ggtt, hole_start);
 		if (!ggtt_align_hole(ggtt, alignment, &hole_start, &hole_end))
 			continue;
 		hole_size = hole_end - hole_start;
diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
index 78e68c2ca3ad..7b5221d6f733 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.h
+++ b/drivers/gpu/drm/xe/xe_ggtt.h
@@ -18,6 +18,7 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt);
 int xe_ggtt_init_kunit(struct xe_ggtt *ggtt, u32 reserved, u32 size);
 int xe_ggtt_init(struct xe_ggtt *ggtt);
 void xe_ggtt_resume(struct xe_ggtt *ggtt);
+bool xe_ggtt_has_low_4m_wa(struct xe_ggtt *ggtt);
 
 void xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_base);
 u64 xe_ggtt_start(struct xe_ggtt *ggtt);
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
index 926f1e83bd79..0b136b4616e7 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
@@ -442,6 +442,10 @@ static u64 pf_get_ggtt_alignment(struct xe_gt *gt)
 {
 	struct xe_device *xe = gt_to_xe(gt);
 
+	/* Wa_14028597154: VF GGTT ranges must start on and span whole 4MB chunks */
+	if (xe_ggtt_has_low_4m_wa(gt_to_tile(gt)->mem.ggtt))
+		return SZ_4M;
+
 	return IS_DGFX(xe) && xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K ? SZ_64K : SZ_4K;
 }
 
@@ -495,7 +499,9 @@ static int pf_distribute_config_ggtt(struct xe_tile *tile, unsigned int vfid, u6
 
 static void pf_release_vf_config_ggtt(struct xe_gt *gt, struct xe_gt_sriov_config *config)
 {
-	xe_ggtt_node_remove(config->ggtt_region, false);
+	/* Wa_14028597154: drop TLB entries for the VF's own low-4MB dummy page */
+	xe_ggtt_node_remove(config->ggtt_region,
+			    xe_ggtt_has_low_4m_wa(gt_to_tile(gt)->mem.ggtt));
 	config->ggtt_region = NULL;
 }
 
@@ -514,6 +520,10 @@ static int pf_provision_vf_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size)
 
 	size = round_up(size, alignment);
 
+	/* Wa_14028597154: the VF keeps its top 4MB free, so give it at least 8MB */
+	if (size && xe_ggtt_has_low_4m_wa(ggtt))
+		size = max_t(u64, size, SZ_8M);
+
 	if (config->ggtt_region) {
 		err = pf_distribute_config_ggtt(tile, vfid, 0, 0);
 		if (unlikely(err))
@@ -545,7 +555,7 @@ static int pf_provision_vf_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size)
 	config->ggtt_region = node;
 	return 0;
 err:
-	xe_ggtt_node_remove(node, false);
+	xe_ggtt_node_remove(node, xe_ggtt_has_low_4m_wa(ggtt));
 	return err;
 }
 
@@ -751,6 +761,11 @@ static u64 pf_estimate_fair_ggtt(struct xe_gt *gt, unsigned int num_vfs)
 
 	fair = div_u64(available, num_vfs);
 	fair = ALIGN_DOWN(fair, alignment);
+
+	/* Wa_14028597154: each VF needs at least 8MB, see pf_provision_vf_ggtt() */
+	if (fair < SZ_8M && xe_ggtt_has_low_4m_wa(gt_to_tile(gt)->mem.ggtt))
+		fair = 0;
+
 	xe_gt_sriov_dbg_verbose(gt, "GGTT available(%lluK) fair(%u x %lluK)\n",
 				available / SZ_1K, num_vfs, fair / SZ_1K);
 	return fair;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH v2 5/5] drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV VF
  2026-12-03 18:14 [PATCH v2 0/5] Apply Wa_14028597154 to SR-IOV VF Piórkowski, Piotr
                   ` (3 preceding siblings ...)
  2026-12-03 18:14 ` [PATCH v2 4/5] drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV PF Piórkowski, Piotr
@ 2026-12-03 18:14 ` Piórkowski, Piotr
  2026-12-03 20:31   ` Rodrigo Vivi
  2026-12-03 18:28 ` ✓ CI.KUnit: success for Apply Wa_14028597154 to SR-IOV VF (rev2) Patchwork
  2026-12-03 19:04 ` ✓ Xe.CI.BAT: " Patchwork
  6 siblings, 1 reply; 14+ messages in thread
From: Piórkowski, Piotr @ 2026-12-03 18:14 UTC (permalink / raw)
  To: intel-xe
  Cc: Varun Gupta, Matt Atwood, Rodrigo Vivi, Satyanarayana K V P,
	Tangudu Tilak Tirumalesh, Tomasz Lis, Piotr Piórkowski

From: Varun Gupta <varun.gupta@intel.com>

The PF assigns the low-4MB GGTT PTEs matching a VF GGTT range to the VF
together with the range, but it is the VF that has to back them with its
own dummy page for Wa_14028597154.

When the WA is active, map the VF dummy page into the low-4MB PTEs
matching the VF GGTT range at probe, on resume and in
xe_ggtt_shift_nodes(), even if the GGTT base did not change, as these
PTEs are not migrated with the VF. Read them back and fail the probe if
they were not written. Also fail the probe if the VF GGTT range is not
4MB aligned, starts below 4MB or is smaller than 8MB. Keep the top 4MB
chunk of the VF GGTT range out of the usable range.

Let xe_ggtt_shift_nodes() return an error, without moving the nodes, so
the post-migration recovery fails if the low-4MB PTEs of the new GGTT
range can't be mapped.

Cc: Matt Atwood <matthew.s.atwood@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
Cc: Tomasz Lis <tomasz.lis@intel.com>
Signed-off-by: Varun Gupta <varun.gupta@intel.com>
Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
---
 drivers/gpu/drm/xe/xe_ggtt.c        | 123 ++++++++++++++++++++++++----
 drivers/gpu/drm/xe/xe_ggtt.h        |   2 +-
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c |  12 ++-
 3 files changed, 116 insertions(+), 21 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
index 64b81c0c48a3..4cf0ee203cd9 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.c
+++ b/drivers/gpu/drm/xe/xe_ggtt.c
@@ -497,10 +497,16 @@ static void ggtt_init_generic(struct xe_ggtt *ggtt, u64 start, u64 size)
 {
 	struct xe_device *xe = tile_to_xe(ggtt->tile);
 
-	if (!IS_SRIOV_PF(xe))
-		ggtt_init_native(ggtt, start, size);
-	else
+	if (IS_SRIOV_PF(xe))
 		ggtt_init_shared(ggtt, start, size);
+	else if (IS_SRIOV_VF(xe) && ggtt_needs_low_4m_wa(ggtt))
+		/*
+		 * Wa_14028597154: keep the top 4MB chunk of the VF GGTT range
+		 * out of the usable range.
+		 */
+		ggtt_init_ranges(ggtt, start, size, size - SZ_4M, 0);
+	else
+		ggtt_init_native(ggtt, start, size);
 
 	xe_tile_info(ggtt->tile, "GGTT usable %#llx-%#llx = %lluK\n",
 		     ggtt->start, ggtt->start + ggtt->size - 1,
@@ -563,6 +569,20 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt)
 	else
 		ggtt->pt_ops = &xelp_pt_ops;
 
+	/*
+	 * Wa_14028597154: the PF provisions VF GGTT ranges 4MB aligned, above
+	 * 4MB and of at least 8MB. Refuse any other range, as the WA can't be
+	 * applied to it.
+	 */
+	if (IS_SRIOV_VF(xe) && ggtt_needs_low_4m_wa(ggtt) &&
+	    (ggtt_start < SZ_4M || ggtt_size < SZ_8M ||
+	     !IS_ALIGNED(ggtt_start | ggtt_size, SZ_4M))) {
+		xe_log_err_fatal(ggtt->tile, GGTT, -ERANGE,
+				 "GGTT %#llx-%#llx unusable for Wa_14028597154\n",
+				 ggtt_start, ggtt_start + ggtt_size - 1);
+		return -ERANGE;
+	}
+
 	ggtt->wq = alloc_workqueue("xe-ggtt-wq", WQ_MEM_RECLAIM | WQ_PERCPU, 0);
 	if (!ggtt->wq)
 		return -ENOMEM;
@@ -581,6 +601,14 @@ ALLOW_ERROR_INJECTION(xe_ggtt_init_early, ERRNO); /* See xe_pci_probe() */
 static void xe_ggtt_invalidate(struct xe_ggtt *ggtt);
 static void xe_ggtt_invalidate_engine(struct xe_ggtt *ggtt);
 
+static u64 ggtt_get_low_4m_pte(struct xe_ggtt *ggtt, u64 addr)
+{
+	xe_tile_assert(ggtt->tile, addr >= XE_PAGE_SIZE && addr < SZ_4M);
+	xe_tile_assert(ggtt->tile, !(addr & XE_PTE_MASK));
+
+	return readq(&ggtt->gsm[addr >> XE_PTE_SHIFT]);
+}
+
 /*
  * Return the low-4MB PTEs of the VF chunks in [start, start + size) to the PF
  * dummy page. Chunks not assigned to a VF are left alone, so releasing a PF
@@ -662,8 +690,40 @@ static u64 ggtt_low_4m_hole_start(struct xe_ggtt *ggtt, u64 hole_start)
 	return hole_start + SZ_4M;
 }
 
+/*
+ * Map the VF dummy page into the low-4MB PTEs matching the whole VF GGTT
+ * range from @start. The VF can only modify them if the PF has assigned them
+ * to it, so read them back to verify the mapping.
+ */
+static int ggtt_vf_map_low_4m_locked(struct xe_ggtt *ggtt, u64 start)
+{
+	u64 mask = XE_PAGE_ADDR_MASK(XE_PTE_SHIFT) | XE_PAGE_PRESENT;
+	u64 end = start + ggtt->full_size;
+	u64 va;
+
+	xe_tile_assert(ggtt->tile, IS_SRIOV_VF(tile_to_xe(ggtt->tile)));
+	xe_tile_assert(ggtt->tile, ggtt->low_4m_pte);
+	lockdep_assert_held(&ggtt->lock);
+
+	if (start < SZ_4M || !IS_ALIGNED(start | ggtt->full_size, SZ_4M))
+		return -ERANGE;
+
+	for (va = start; va < end; va += SZ_4M)
+		ggtt_set_low_4m_pte(ggtt, va >> 10, ggtt->low_4m_pte);
+
+	for (va = start; va < end; va += SZ_4M) {
+		u64 pte = ggtt_get_low_4m_pte(ggtt, va >> 10);
+
+		if ((pte & mask) != (ggtt->low_4m_pte & mask))
+			return -EPERM;
+	}
+
+	return 0;
+}
+
 static void ggtt_restore_low_4m_locked(struct xe_ggtt *ggtt)
 {
+	struct xe_device *xe = tile_to_xe(ggtt->tile);
 	u64 low_start = max_t(u64, ALIGN_DOWN(ggtt->start, SZ_4M) >> 10,
 			      XE_PAGE_SIZE);
 	u64 low_end = min_t(u64,
@@ -676,6 +736,14 @@ static void ggtt_restore_low_4m_locked(struct xe_ggtt *ggtt)
 	if (!ggtt->low_4m_pte)
 		return;
 
+	/* A VF only owns the low-4MB PTEs matching its own GGTT range */
+	if (IS_SRIOV_VF(xe)) {
+		if (ggtt_vf_map_low_4m_locked(ggtt, ggtt->start))
+			xe_tile_err(ggtt->tile,
+				    "Failed to restore low-4MB GGTT PTEs for Wa_14028597154\n");
+		return;
+	}
+
 	for (addr = low_start; addr < low_end; addr += XE_PAGE_SIZE) {
 		if (test_bit(addr >> XE_PTE_SHIFT, ggtt->vf_chunks))
 			continue;
@@ -694,16 +762,9 @@ static int ggtt_map_low_4m_wa(struct xe_ggtt *ggtt)
 	struct xe_device *xe = tile_to_xe(tile);
 	u16 pat_index = xe_cache_pat_idx(xe, XE_CACHE_WB);
 	struct xe_bo *bo;
+	int err = 0;
 	u64 pte;
 
-	/*
-	 * TODO: SR-IOV VF support for Wa_14028597154 is deferred to a follow-up
-	 * (requires PF 4MB-aligned VF GGTT provisioning, low-4MB VFID PTE
-	 * assignment, and VF dummy-page mapping).
-	 */
-	if (IS_SRIOV_VF(xe))
-		return 0;
-
 	if (!ggtt_needs_low_4m_wa(ggtt))
 		return 0;
 
@@ -716,7 +777,19 @@ static int ggtt_map_low_4m_wa(struct xe_ggtt *ggtt)
 
 	scoped_guard(mutex, &ggtt->lock) {
 		ggtt->low_4m_pte = pte;
-		ggtt_restore_low_4m_locked(ggtt);
+		if (IS_SRIOV_VF(xe))
+			err = ggtt_vf_map_low_4m_locked(ggtt, ggtt->start);
+		else
+			ggtt_restore_low_4m_locked(ggtt);
+	}
+
+	/* The PF has to assign the low-4MB PTEs together with the VF range */
+	if (err) {
+		xe_log_err_fatal(tile, GGTT, err,
+				 "Low-4MB GGTT range %#llx-%#llx not writable, required by Wa_14028597154\n",
+				 ggtt->start >> 10,
+				 ((ggtt->start + ggtt->full_size) >> 10) - 1);
+		return err;
 	}
 
 	return 0;
@@ -945,23 +1018,41 @@ static void xe_ggtt_invalidate_engine(struct xe_ggtt *ggtt)
  * Ensure that all struct &xe_ggtt_node are moved to the @new_start base address
  * by changing the base offset of the GGTT.
  *
- * This function may be called multiple times during recovery, but if
- * @new_start is unchanged from the current base, it's a noop.
+ * This function may be called multiple times during recovery. If @new_start
+ * is unchanged from the current base, the nodes stay where they are.
+ *
+ * When Wa_14028597154 is applied, the low-4MB PTEs matching the VF GGTT range
+ * are mapped to the VF dummy page again on every call, even if the base is
+ * unchanged, as they are not migrated with the VF.
  *
  * @new_start should be a value between the WOPCM size and #GUC_GGTT_TOP. VFs
  * don't have access to the WOPCM size so we can't test against that.
+ *
+ * Return: 0 on success or a negative error code if @new_start is unusable for
+ * Wa_14028597154 or the low-4MB PTEs can't be mapped.
  */
-void xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_start)
+int xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_start)
 {
+	int err;
+
 	guard(mutex)(&ggtt->lock);
 
-	xe_tile_assert(ggtt->tile, new_start + ggtt->size <= GUC_GGTT_TOP);
+	xe_tile_assert(ggtt->tile, new_start + ggtt->full_size <= GUC_GGTT_TOP);
 #ifdef CONFIG_PCI_IOV
 	xe_tile_assert(ggtt->tile, ggtt->shareable_size == 0);
 #endif
 
+	/* Don't move the nodes to a range unusable for Wa_14028597154 */
+	if (ggtt->low_4m_pte) {
+		err = ggtt_vf_map_low_4m_locked(ggtt, new_start);
+		if (err)
+			return err;
+	}
+
 	/* pairs with READ_ONCE in xe_ggtt_node_addr() */
 	WRITE_ONCE(ggtt->start, new_start);
+
+	return 0;
 }
 
 static int ggtt_insert_node_in_range_locked(struct xe_ggtt_node *node, u32 size,
diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
index 7b5221d6f733..22cf19d2b8eb 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.h
+++ b/drivers/gpu/drm/xe/xe_ggtt.h
@@ -20,7 +20,7 @@ int xe_ggtt_init(struct xe_ggtt *ggtt);
 void xe_ggtt_resume(struct xe_ggtt *ggtt);
 bool xe_ggtt_has_low_4m_wa(struct xe_ggtt *ggtt);
 
-void xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_base);
+int xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_base);
 u64 xe_ggtt_start(struct xe_ggtt *ggtt);
 u64 xe_ggtt_size(struct xe_ggtt *ggtt);
 
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
index 60f1b29358f9..1a5395486327 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
@@ -531,12 +531,16 @@ static int vf_get_ggtt_info(struct xe_gt *gt)
 	/*
 	 * This function can be called repeatedly from post migration fixups,
 	 * at which point we inform the GGTT of the new base address.
-	 * xe_ggtt_shift_nodes() may be called multiple times for each migration,
-	 * but will be a noop if the base is unchanged.
+	 * xe_ggtt_shift_nodes() may be called multiple times for each migration.
+	 * The nodes stay in place if the base is unchanged, but the low-4MB PTEs
+	 * of Wa_14028597154 are mapped again, as they are not migrated.
 	 */
-	xe_ggtt_shift_nodes(tile->mem.ggtt, start);
+	err = xe_ggtt_shift_nodes(tile->mem.ggtt, start);
+	if (err)
+		xe_gt_sriov_err(gt, "Failed to apply Wa_14028597154 to GGTT %#llx-%#llx (%pe)\n",
+				start, start + size - 1, ERR_PTR(err));
 
-	return 0;
+	return err;
 }
 
 static int vf_get_lmem_info(struct xe_gt *gt)
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* ✓ CI.KUnit: success for Apply Wa_14028597154 to SR-IOV VF (rev2)
  2026-12-03 18:14 [PATCH v2 0/5] Apply Wa_14028597154 to SR-IOV VF Piórkowski, Piotr
                   ` (4 preceding siblings ...)
  2026-12-03 18:14 ` [PATCH v2 5/5] drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV VF Piórkowski, Piotr
@ 2026-12-03 18:28 ` Patchwork
  2026-12-03 19:04 ` ✓ Xe.CI.BAT: " Patchwork
  6 siblings, 0 replies; 14+ messages in thread
From: Patchwork @ 2026-12-03 18:28 UTC (permalink / raw)
  To: Piórkowski, Piotr; +Cc: intel-xe

== Series Details ==

Series: Apply Wa_14028597154 to SR-IOV VF (rev2)
URL   : https://patchwork.freedesktop.org/series/180447/
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
[18:25:11] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[18:25:16] 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
[18:25:37] Starting KUnit Kernel (1/1)...
[18:25:37] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[18:25:37] ================= gpu_buddy (15 subtests) ==================
[18:25:37] [PASSED] gpu_test_buddy_alloc_limit
[18:25:37] [PASSED] gpu_test_buddy_alloc_optimistic
[18:25:37] [PASSED] gpu_test_buddy_alloc_pessimistic
[18:25:37] [PASSED] gpu_test_buddy_alloc_pathological
[18:25:37] [PASSED] gpu_test_buddy_alloc_contiguous
[18:25:37] [PASSED] gpu_test_buddy_alloc_clear
[18:25:37] [PASSED] gpu_test_buddy_alloc_range
[18:25:37] [PASSED] gpu_test_buddy_alloc_range_bias
[18:25:38] [PASSED] gpu_test_buddy_alloc_range_clear_guard
[18:25:39] [PASSED] gpu_test_buddy_fragmentation_performance
[18:25:39] [PASSED] gpu_test_buddy_dirty_tracker_performance
[18:25:39] [PASSED] gpu_test_buddy_alloc_exceeds_max_order
[18:25:39] [PASSED] gpu_test_buddy_offset_aligned_allocation
[18:25:39] [PASSED] gpu_test_buddy_subtree_offset_alignment_stress
[18:25:39] [PASSED] gpu_test_buddy_addr_to_block
[18:25:39] ==================== [PASSED] gpu_buddy ====================
[18:25:39] ============================================================
[18:25:39] Testing complete. Ran 15 tests: passed: 15
[18:25:39] Elapsed time: 28.080s total, 5.224s configuring, 20.738s building, 2.081s 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
[18:25:39] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[18:25:42] 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
[18:26:21] Starting KUnit Kernel (1/1)...
[18:26:21] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[18:26:22] ================ xe_ggtt_iov (10 subtests) =================
[18:26:22] [PASSED] init_shared_pf
[18:26:22] [PASSED] init_partial_overlap
[18:26:22] [PASSED] alloc_usable_pool_low
[18:26:22] [PASSED] alloc_shareable_pool_high
[18:26:22] [PASSED] alloc_partial_overlap
[18:26:22] [PASSED] alloc_partial_overlap_usable_full
[18:26:22] [PASSED] alloc_partial_overlap_shareable_full
[18:26:22] [PASSED] alloc_shareable_pool_unavailable
[18:26:22] [PASSED] alloc_shareable_pool_oversized
[18:26:22] [PASSED] alloc_shareable_aligned_addr
[18:26:22] =================== [PASSED] xe_ggtt_iov ===================
[18:26:22] =================== xe_ggtt (3 subtests) ===================
[18:26:22] [PASSED] init_native
[18:26:22] [PASSED] alloc_usable_pool_native
[18:26:22] [PASSED] alloc_usable_pool_oversized
[18:26:22] ===================== [PASSED] xe_ggtt =====================
[18:26:22] ================== guc_buf (11 subtests) ===================
[18:26:22] [PASSED] test_smallest
[18:26:22] [PASSED] test_largest
[18:26:22] [PASSED] test_granular
[18:26:22] [PASSED] test_unique
[18:26:22] [PASSED] test_overlap
[18:26:22] [PASSED] test_reusable
[18:26:22] [PASSED] test_too_big
[18:26:22] [PASSED] test_flush
[18:26:22] [PASSED] test_lookup
[18:26:22] [PASSED] test_data
[18:26:22] [PASSED] test_class
[18:26:22] ===================== [PASSED] guc_buf =====================
[18:26:22] =================== guc_dbm (7 subtests) ===================
[18:26:22] [PASSED] test_empty
[18:26:22] [PASSED] test_default
[18:26:22] ======================== test_size  ========================
[18:26:22] [PASSED] 4
[18:26:22] [PASSED] 8
[18:26:22] [PASSED] 32
[18:26:22] [PASSED] 256
[18:26:22] ==================== [PASSED] test_size ====================
[18:26:22] ======================= test_reuse  ========================
[18:26:22] [PASSED] 4
[18:26:22] [PASSED] 8
[18:26:22] [PASSED] 32
[18:26:22] [PASSED] 256
[18:26:22] =================== [PASSED] test_reuse ====================
[18:26:22] =================== test_range_overlap  ====================
[18:26:22] [PASSED] 4
[18:26:22] [PASSED] 8
[18:26:22] [PASSED] 32
[18:26:22] [PASSED] 256
[18:26:22] =============== [PASSED] test_range_overlap ================
[18:26:22] =================== test_range_compact  ====================
[18:26:22] [PASSED] 4
[18:26:22] [PASSED] 8
[18:26:22] [PASSED] 32
[18:26:22] [PASSED] 256
[18:26:22] =============== [PASSED] test_range_compact ================
[18:26:22] ==================== test_range_spare  =====================
[18:26:22] [PASSED] 4
[18:26:22] [PASSED] 8
[18:26:22] [PASSED] 32
[18:26:22] [PASSED] 256
[18:26:22] ================ [PASSED] test_range_spare =================
[18:26:22] ===================== [PASSED] guc_dbm =====================
[18:26:22] ================== guc_idm (22 subtests) ===================
[18:26:22] [PASSED] bad_init
[18:26:22] [PASSED] no_init
[18:26:22] [PASSED] init_fini
[18:26:22] [PASSED] check_init_small
[18:26:22] [PASSED] check_init_shared
[18:26:22] [PASSED] check_used
[18:26:22] [PASSED] check_quota
[18:26:22] [PASSED] check_all
[18:26:22] [PASSED] check_limits
[18:26:22] [PASSED] check_overlap
[18:26:22] [PASSED] check_overlap_alloc
[18:26:22] [PASSED] check_overlap_release
[18:26:22] [PASSED] check_overlap_partial_init
[18:26:22] [PASSED] check_overlap_partial_shared_range_blocking
[18:26:22] [PASSED] check_used_usable
[18:26:22] [PASSED] check_used_shareable
[18:26:22] [PASSED] check_used_mixed
[18:26:22] [PASSED] check_release_usable_range
[18:26:22] [PASSED] check_release_shareable_range
[18:26:22] [PASSED] check_split_boundaries
[18:26:22] [PASSED] check_shareable_spare
[18:26:22] [PASSED] check_shareable_spare_fragmented_tail
[18:26:22] ===================== [PASSED] guc_idm =====================
[18:26:22] ============== guc_klv_helpers (13 subtests) ===============
[18:26:22] [PASSED] test_count
[18:26:22] [PASSED] test_encode_u32
[18:26:22] [PASSED] test_encode_u64
[18:26:22] [PASSED] test_encode_string
[18:26:22] [PASSED] test_encode_object_raw
[18:26:22] [PASSED] test_encode_object_klv
[18:26:22] [PASSED] test_encode_object_nested
[18:26:22] [PASSED] test_encode_object_basic
[18:26:22] ===================== test_decode_u16  =====================
[18:26:22] [PASSED] empty
[18:26:22] [PASSED] valid
[18:26:22] [PASSED] max
[18:26:22] [PASSED] big
[18:26:22] [PASSED] long
[18:26:22] ================= [PASSED] test_decode_u16 =================
[18:26:22] ===================== test_decode_u32  =====================
[18:26:22] [PASSED] empty
[18:26:22] [PASSED] valid
[18:26:22] [PASSED] max
[18:26:22] [PASSED] long
[18:26:22] ================= [PASSED] test_decode_u32 =================
[18:26:22] ===================== test_decode_u64  =====================
[18:26:22] [PASSED] empty
[18:26:22] [PASSED] short
[18:26:22] [PASSED] valid
[18:26:22] [PASSED] max
[18:26:22] [PASSED] long
[18:26:22] ================= [PASSED] test_decode_u64 =================
[18:26:22] ===================== test_decode_str  =====================
[18:26:22] [PASSED] empty
[18:26:22] [PASSED] one
[18:26:22] [PASSED] one_trash
[18:26:22] [PASSED] two
[18:26:22] [PASSED] two_trash
[18:26:22] [PASSED] three
[18:26:22] [PASSED] dword
[18:26:22] [PASSED] four
[18:26:22] [PASSED] five
[18:26:22] [PASSED] six
[18:26:22] [PASSED] seven
[18:26:22] [PASSED] qword
[18:26:22] ================= [PASSED] test_decode_str =================
[18:26:22] [PASSED] test_print
[18:26:22] ================= [PASSED] guc_klv_helpers =================
[18:26:22] =================== xe_log (6 subtests) ====================
[18:26:22] [PASSED] demo_cper
[18:26:22] [PASSED] demo_dmesg
[18:26:22] [PASSED] test_cper_null_xe
[18:26:22] ======================= test_dmesg  ========================
[18:26:22] [PASSED] test_fatal
[18:26:22] [PASSED] test_fatal_tile
[18:26:22] [PASSED] test_fatal_gt
[18:26:22] [PASSED] test_fatal_comp
[18:26:22] [PASSED] test_fatal_comp_tile
[18:26:22] [PASSED] test_fatal_comp_gt
[18:26:22] [PASSED] test_fatal_all
[18:26:22] [PASSED] test_recoverable
[18:26:22] [PASSED] test_recoverable_tile
[18:26:22] [PASSED] test_recoverable_gt
[18:26:22] [PASSED] test_recoverable_comp
[18:26:22] [PASSED] test_recoverable_comp_tile
[18:26:22] [PASSED] test_recoverable_comp_gt
[18:26:22] [PASSED] test_recoverable_all
[18:26:22] [PASSED] test_info
[18:26:22] [PASSED] test_info_tile
[18:26:22] [PASSED] test_info_gt
[18:26:22] [PASSED] test_info_err
[18:26:22] [PASSED] test_info_comp
[18:26:22] [PASSED] test_info_comp_tile
[18:26:22] [PASSED] test_info_comp_gt
[18:26:22] [PASSED] test_info_all
[18:26:22] [PASSED] test_hw_fatal
[18:26:22] [PASSED] test_hw_recoverable
[18:26:22] [PASSED] test_hw_corrected
[18:26:22] [PASSED] test_hw_informational
[18:26:22] =================== [PASSED] test_dmesg ====================
[18:26:22] ====================== test_sw_cper  =======================
[18:26:22] [PASSED] sw-fatal-errno
[18:26:22] [PASSED] sw-recoverable-errno
[18:26:22] [PASSED] sw-corrected
[18:26:22] [PASSED] sw-informational
[18:26:22] [PASSED] sw-with-error-class
[18:26:22] ================== [PASSED] test_sw_cper ===================
[18:26:22] ====================== test_invalid  =======================
[18:26:22] [SKIPPED] no-component no-location no-warn (requires CONFIG_DRM_XE_DEBUG)
[18:26:22] [SKIPPED] reserved location (requires CONFIG_DRM_XE_DEBUG)
[18:26:22] [SKIPPED] unknown location (requires CONFIG_DRM_XE_DEBUG)
[18:26:22] [SKIPPED] nonzero-device-id location (requires CONFIG_DRM_XE_DEBUG)
[18:26:22] [SKIPPED] invalid-tile-id location (requires CONFIG_DRM_XE_DEBUG)
[18:26:22] [SKIPPED] invalid-gt-id location (requires CONFIG_DRM_XE_DEBUG)
[18:26:22] [SKIPPED] unknown component class (requires CONFIG_DRM_XE_DEBUG)
[18:26:22] [SKIPPED] unknown system component (requires CONFIG_DRM_XE_DEBUG)
[18:26:22] [SKIPPED] unknown hardware component (requires CONFIG_DRM_XE_DEBUG)
[18:26:22] [SKIPPED] unknown component and location (requires CONFIG_DRM_XE_DEBUG)
[18:26:22] ================== [SKIPPED] test_invalid ==================
[18:26:22] ===================== [PASSED] xe_log ======================
[18:26:22] ================== no_relay (3 subtests) ===================
[18:26:22] [PASSED] xe_drops_guc2pf_if_not_ready
[18:26:22] [PASSED] xe_drops_guc2vf_if_not_ready
[18:26:22] [PASSED] xe_rejects_send_if_not_ready
[18:26:22] ==================== [PASSED] no_relay =====================
[18:26:22] ================== pf_relay (14 subtests) ==================
[18:26:22] [PASSED] pf_rejects_guc2pf_too_short
[18:26:22] [PASSED] pf_rejects_guc2pf_too_long
[18:26:22] [PASSED] pf_rejects_guc2pf_no_payload
[18:26:22] [PASSED] pf_fails_no_payload
[18:26:22] [PASSED] pf_fails_bad_origin
[18:26:22] [PASSED] pf_fails_bad_type
[18:26:22] [PASSED] pf_txn_reports_error
[18:26:22] [PASSED] pf_txn_sends_pf2guc
[18:26:22] [PASSED] pf_sends_pf2guc
[18:26:22] [SKIPPED] pf_loopback_nop (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[18:26:22] [SKIPPED] pf_loopback_echo (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[18:26:22] [SKIPPED] pf_loopback_fail (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[18:26:22] [SKIPPED] pf_loopback_busy (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[18:26:22] [SKIPPED] pf_loopback_retry (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[18:26:22] ==================== [PASSED] pf_relay =====================
[18:26:22] ================== vf_relay (3 subtests) ===================
[18:26:22] [PASSED] vf_rejects_guc2vf_too_short
[18:26:22] [PASSED] vf_rejects_guc2vf_too_long
[18:26:22] [PASSED] vf_rejects_guc2vf_no_payload
[18:26:22] ==================== [PASSED] vf_relay =====================
[18:26:22] ================ pf_gt_config (9 subtests) =================
[18:26:22] [PASSED] fair_contexts_1vf
[18:26:22] [PASSED] fair_doorbells_1vf
[18:26:22] [PASSED] fair_ggtt_1vf
[18:26:22] ====================== fair_vram_1vf  ======================
[18:26:22] [PASSED] 3.50 GiB
[18:26:22] [PASSED] 11.5 GiB
[18:26:22] [PASSED] 15.5 GiB
[18:26:22] [PASSED] 31.5 GiB
[18:26:22] [PASSED] 63.5 GiB
[18:26:22] [PASSED] 1.91 GiB
[18:26:22] ================== [PASSED] fair_vram_1vf ==================
[18:26:22] ================ fair_vram_1vf_admin_only  =================
[18:26:22] [PASSED] 3.50 GiB
[18:26:22] [PASSED] 11.5 GiB
[18:26:22] [PASSED] 15.5 GiB
[18:26:22] [PASSED] 31.5 GiB
[18:26:22] [PASSED] 63.5 GiB
[18:26:22] [PASSED] 1.91 GiB
[18:26:22] ============ [PASSED] fair_vram_1vf_admin_only =============
[18:26:22] ====================== fair_contexts  ======================
[18:26:22] [PASSED] 1 VF
[18:26:22] [PASSED] 2 VFs
[18:26:22] [PASSED] 3 VFs
[18:26:22] [PASSED] 4 VFs
[18:26:22] [PASSED] 5 VFs
[18:26:22] [PASSED] 6 VFs
[18:26:22] [PASSED] 7 VFs
[18:26:22] [PASSED] 8 VFs
[18:26:22] [PASSED] 9 VFs
[18:26:22] [PASSED] 10 VFs
[18:26:22] [PASSED] 11 VFs
[18:26:22] [PASSED] 12 VFs
[18:26:22] [PASSED] 13 VFs
[18:26:22] [PASSED] 14 VFs
[18:26:22] [PASSED] 15 VFs
[18:26:22] [PASSED] 16 VFs
[18:26:22] [PASSED] 17 VFs
[18:26:22] [PASSED] 18 VFs
[18:26:22] [PASSED] 19 VFs
[18:26:22] [PASSED] 20 VFs
[18:26:22] [PASSED] 21 VFs
[18:26:22] [PASSED] 22 VFs
[18:26:22] [PASSED] 23 VFs
[18:26:22] [PASSED] 24 VFs
[18:26:22] [PASSED] 25 VFs
[18:26:22] [PASSED] 26 VFs
[18:26:22] [PASSED] 27 VFs
[18:26:22] [PASSED] 28 VFs
[18:26:22] [PASSED] 29 VFs
[18:26:22] [PASSED] 30 VFs
[18:26:22] [PASSED] 31 VFs
[18:26:22] [PASSED] 32 VFs
[18:26:22] [PASSED] 33 VFs
[18:26:22] [PASSED] 34 VFs
[18:26:22] [PASSED] 35 VFs
[18:26:22] [PASSED] 36 VFs
[18:26:22] [PASSED] 37 VFs
[18:26:22] [PASSED] 38 VFs
[18:26:22] [PASSED] 39 VFs
[18:26:22] [PASSED] 40 VFs
[18:26:22] [PASSED] 41 VFs
[18:26:22] [PASSED] 42 VFs
[18:26:22] [PASSED] 43 VFs
[18:26:22] [PASSED] 44 VFs
[18:26:22] [PASSED] 45 VFs
[18:26:22] [PASSED] 46 VFs
[18:26:22] [PASSED] 47 VFs
[18:26:22] [PASSED] 48 VFs
[18:26:22] [PASSED] 49 VFs
[18:26:22] [PASSED] 50 VFs
[18:26:22] [PASSED] 51 VFs
[18:26:22] [PASSED] 52 VFs
[18:26:22] [PASSED] 53 VFs
[18:26:22] [PASSED] 54 VFs
[18:26:22] [PASSED] 55 VFs
[18:26:22] [PASSED] 56 VFs
[18:26:22] [PASSED] 57 VFs
[18:26:22] [PASSED] 58 VFs
[18:26:22] [PASSED] 59 VFs
[18:26:22] [PASSED] 60 VFs
[18:26:22] [PASSED] 61 VFs
[18:26:22] [PASSED] 62 VFs
[18:26:22] [PASSED] 63 VFs
[18:26:22] ================== [PASSED] fair_contexts ==================
[18:26:22] ===================== fair_doorbells  ======================
[18:26:22] [PASSED] 1 VF
[18:26:22] [PASSED] 2 VFs
[18:26:22] [PASSED] 3 VFs
[18:26:22] [PASSED] 4 VFs
[18:26:22] [PASSED] 5 VFs
[18:26:22] [PASSED] 6 VFs
[18:26:22] [PASSED] 7 VFs
[18:26:22] [PASSED] 8 VFs
[18:26:22] [PASSED] 9 VFs
[18:26:22] [PASSED] 10 VFs
[18:26:22] [PASSED] 11 VFs
[18:26:22] [PASSED] 12 VFs
[18:26:22] [PASSED] 13 VFs
[18:26:22] [PASSED] 14 VFs
[18:26:22] [PASSED] 15 VFs
[18:26:22] [PASSED] 16 VFs
[18:26:22] [PASSED] 17 VFs
[18:26:22] [PASSED] 18 VFs
[18:26:22] [PASSED] 19 VFs
[18:26:22] [PASSED] 20 VFs
[18:26:22] [PASSED] 21 VFs
[18:26:22] [PASSED] 22 VFs
[18:26:22] [PASSED] 23 VFs
[18:26:22] [PASSED] 24 VFs
[18:26:22] [PASSED] 25 VFs
[18:26:22] [PASSED] 26 VFs
[18:26:22] [PASSED] 27 VFs
[18:26:22] [PASSED] 28 VFs
[18:26:22] [PASSED] 29 VFs
[18:26:22] [PASSED] 30 VFs
[18:26:22] [PASSED] 31 VFs
[18:26:22] [PASSED] 32 VFs
[18:26:22] [PASSED] 33 VFs
[18:26:22] [PASSED] 34 VFs
[18:26:22] [PASSED] 35 VFs
[18:26:22] [PASSED] 36 VFs
[18:26:22] [PASSED] 37 VFs
[18:26:22] [PASSED] 38 VFs
[18:26:22] [PASSED] 39 VFs
[18:26:22] [PASSED] 40 VFs
[18:26:22] [PASSED] 41 VFs
[18:26:22] [PASSED] 42 VFs
[18:26:22] [PASSED] 43 VFs
[18:26:22] [PASSED] 44 VFs
[18:26:22] [PASSED] 45 VFs
[18:26:22] [PASSED] 46 VFs
[18:26:22] [PASSED] 47 VFs
[18:26:22] [PASSED] 48 VFs
[18:26:22] [PASSED] 49 VFs
[18:26:22] [PASSED] 50 VFs
[18:26:22] [PASSED] 51 VFs
[18:26:22] [PASSED] 52 VFs
[18:26:22] [PASSED] 53 VFs
[18:26:22] [PASSED] 54 VFs
[18:26:22] [PASSED] 55 VFs
[18:26:22] [PASSED] 56 VFs
[18:26:22] [PASSED] 57 VFs
[18:26:22] [PASSED] 58 VFs
[18:26:22] [PASSED] 59 VFs
[18:26:22] [PASSED] 60 VFs
[18:26:22] [PASSED] 61 VFs
[18:26:22] [PASSED] 62 VFs
[18:26:22] [PASSED] 63 VFs
[18:26:22] ================= [PASSED] fair_doorbells ==================
[18:26:22] ======================== fair_ggtt  ========================
[18:26:22] [PASSED] 1 VF
[18:26:22] [PASSED] 2 VFs
[18:26:22] [PASSED] 3 VFs
[18:26:22] [PASSED] 4 VFs
[18:26:22] [PASSED] 5 VFs
[18:26:22] [PASSED] 6 VFs
[18:26:22] [PASSED] 7 VFs
[18:26:22] [PASSED] 8 VFs
[18:26:22] [PASSED] 9 VFs
[18:26:22] [PASSED] 10 VFs
[18:26:22] [PASSED] 11 VFs
[18:26:22] [PASSED] 12 VFs
[18:26:22] [PASSED] 13 VFs
[18:26:22] [PASSED] 14 VFs
[18:26:22] [PASSED] 15 VFs
[18:26:22] [PASSED] 16 VFs
[18:26:22] [PASSED] 17 VFs
[18:26:22] [PASSED] 18 VFs
[18:26:22] [PASSED] 19 VFs
[18:26:22] [PASSED] 20 VFs
[18:26:22] [PASSED] 21 VFs
[18:26:22] [PASSED] 22 VFs
[18:26:22] [PASSED] 23 VFs
[18:26:22] [PASSED] 24 VFs
[18:26:22] [PASSED] 25 VFs
[18:26:22] [PASSED] 26 VFs
[18:26:22] [PASSED] 27 VFs
[18:26:22] [PASSED] 28 VFs
[18:26:22] [PASSED] 29 VFs
[18:26:22] [PASSED] 30 VFs
[18:26:22] [PASSED] 31 VFs
[18:26:22] [PASSED] 32 VFs
[18:26:22] [PASSED] 33 VFs
[18:26:22] [PASSED] 34 VFs
[18:26:22] [PASSED] 35 VFs
[18:26:22] [PASSED] 36 VFs
[18:26:22] [PASSED] 37 VFs
[18:26:22] [PASSED] 38 VFs
[18:26:22] [PASSED] 39 VFs
[18:26:22] [PASSED] 40 VFs
[18:26:22] [PASSED] 41 VFs
[18:26:22] [PASSED] 42 VFs
[18:26:22] [PASSED] 43 VFs
[18:26:22] [PASSED] 44 VFs
[18:26:22] [PASSED] 45 VFs
[18:26:22] [PASSED] 46 VFs
[18:26:22] [PASSED] 47 VFs
[18:26:22] [PASSED] 48 VFs
[18:26:22] [PASSED] 49 VFs
[18:26:22] [PASSED] 50 VFs
[18:26:22] [PASSED] 51 VFs
[18:26:22] [PASSED] 52 VFs
[18:26:22] [PASSED] 53 VFs
[18:26:22] [PASSED] 54 VFs
[18:26:22] [PASSED] 55 VFs
[18:26:22] [PASSED] 56 VFs
[18:26:22] [PASSED] 57 VFs
[18:26:22] [PASSED] 58 VFs
[18:26:22] [PASSED] 59 VFs
[18:26:22] [PASSED] 60 VFs
[18:26:22] [PASSED] 61 VFs
[18:26:22] [PASSED] 62 VFs
[18:26:22] [PASSED] 63 VFs
[18:26:22] ==================== [PASSED] fair_ggtt ====================
[18:26:22] ======================== fair_vram  ========================
[18:26:22] [PASSED] 1 VF
[18:26:22] [PASSED] 2 VFs
[18:26:22] [PASSED] 3 VFs
[18:26:22] [PASSED] 4 VFs
[18:26:22] [PASSED] 5 VFs
[18:26:22] [PASSED] 6 VFs
[18:26:22] [PASSED] 7 VFs
[18:26:22] [PASSED] 8 VFs
[18:26:22] [PASSED] 9 VFs
[18:26:22] [PASSED] 10 VFs
[18:26:22] [PASSED] 11 VFs
[18:26:22] [PASSED] 12 VFs
[18:26:22] [PASSED] 13 VFs
[18:26:22] [PASSED] 14 VFs
[18:26:22] [PASSED] 15 VFs
[18:26:22] [PASSED] 16 VFs
[18:26:22] [PASSED] 17 VFs
[18:26:22] [PASSED] 18 VFs
[18:26:22] [PASSED] 19 VFs
[18:26:22] [PASSED] 20 VFs
[18:26:22] [PASSED] 21 VFs
[18:26:22] [PASSED] 22 VFs
[18:26:22] [PASSED] 23 VFs
[18:26:22] [PASSED] 24 VFs
[18:26:22] [PASSED] 25 VFs
[18:26:22] [PASSED] 26 VFs
[18:26:22] [PASSED] 27 VFs
[18:26:22] [PASSED] 28 VFs
[18:26:22] [PASSED] 29 VFs
[18:26:22] [PASSED] 30 VFs
[18:26:22] [PASSED] 31 VFs
[18:26:22] [PASSED] 32 VFs
[18:26:22] [PASSED] 33 VFs
[18:26:22] [PASSED] 34 VFs
[18:26:22] [PASSED] 35 VFs
[18:26:22] [PASSED] 36 VFs
[18:26:22] [PASSED] 37 VFs
[18:26:22] [PASSED] 38 VFs
[18:26:22] [PASSED] 39 VFs
[18:26:22] [PASSED] 40 VFs
[18:26:22] [PASSED] 41 VFs
[18:26:22] [PASSED] 42 VFs
[18:26:22] [PASSED] 43 VFs
[18:26:22] [PASSED] 44 VFs
[18:26:22] [PASSED] 45 VFs
[18:26:22] [PASSED] 46 VFs
[18:26:22] [PASSED] 47 VFs
[18:26:22] [PASSED] 48 VFs
[18:26:22] [PASSED] 49 VFs
[18:26:22] [PASSED] 50 VFs
[18:26:22] [PASSED] 51 VFs
[18:26:22] [PASSED] 52 VFs
[18:26:22] [PASSED] 53 VFs
[18:26:22] [PASSED] 54 VFs
[18:26:22] [PASSED] 55 VFs
[18:26:22] [PASSED] 56 VFs
[18:26:22] [PASSED] 57 VFs
[18:26:22] [PASSED] 58 VFs
[18:26:22] [PASSED] 59 VFs
[18:26:22] [PASSED] 60 VFs
[18:26:22] [PASSED] 61 VFs
[18:26:22] [PASSED] 62 VFs
[18:26:22] [PASSED] 63 VFs
[18:26:22] ==================== [PASSED] fair_vram ====================
[18:26:22] ================== [PASSED] pf_gt_config ===================
[18:26:22] ===================== lmtt (1 subtest) =====================
[18:26:22] ======================== test_ops  =========================
[18:26:22] [PASSED] 2-level
[18:26:22] [PASSED] multi-level
[18:26:22] ==================== [PASSED] test_ops =====================
[18:26:22] ====================== [PASSED] lmtt =======================
[18:26:22] ================= sriov_packet (1 subtest) =================
[18:26:22] [PASSED] test_descriptor_init
[18:26:22] ================== [PASSED] sriov_packet ===================
[18:26:22] ================= pf_service (11 subtests) =================
[18:26:22] [PASSED] pf_negotiate_any
[18:26:22] [PASSED] pf_negotiate_base_match
[18:26:22] [PASSED] pf_negotiate_base_newer
[18:26:22] [PASSED] pf_negotiate_base_next
[18:26:22] [SKIPPED] pf_negotiate_base_older (no older minor)
[18:26:22] [PASSED] pf_negotiate_base_prev
[18:26:22] [PASSED] pf_negotiate_latest_match
[18:26:22] [PASSED] pf_negotiate_latest_newer
[18:26:22] [PASSED] pf_negotiate_latest_next
[18:26:22] [SKIPPED] pf_negotiate_latest_older (no older minor)
[18:26:22] [SKIPPED] pf_negotiate_latest_prev (no prev major)
[18:26:22] =================== [PASSED] pf_service ====================
[18:26:22] ================= xe_guc_g2g (2 subtests) ==================
[18:26:22] ============== xe_live_guc_g2g_kunit_default  ==============
[18:26:22] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ==========
[18:26:22] ============== xe_live_guc_g2g_kunit_allmem  ===============
[18:26:22] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ==========
[18:26:22] =================== [SKIPPED] xe_guc_g2g ===================
[18:26:22] =================== xe_mocs (2 subtests) ===================
[18:26:22] ================ xe_live_mocs_kernel_kunit  ================
[18:26:22] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[18:26:22] ================ xe_live_mocs_reset_kunit  =================
[18:26:22] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[18:26:22] ==================== [SKIPPED] xe_mocs =====================
[18:26:22] ================= xe_migrate (3 subtests) ==================
[18:26:22] ================= xe_migrate_sanity_kunit  =================
[18:26:22] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[18:26:22] ================== xe_validate_ccs_kunit  ==================
[18:26:22] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[18:26:22] ============= xe_migrate_access_memory_kunit  ==============
[18:26:22] ========= [SKIPPED] xe_migrate_access_memory_kunit =========
[18:26:22] =================== [SKIPPED] xe_migrate ===================
[18:26:22] ================== xe_dma_buf (1 subtest) ==================
[18:26:22] ==================== xe_dma_buf_kunit  =====================
[18:26:22] ================ [SKIPPED] xe_dma_buf_kunit ================
[18:26:22] =================== [SKIPPED] xe_dma_buf ===================
[18:26:22] ================= xe_bo_shrink (1 subtest) =================
[18:26:22] =================== xe_bo_shrink_kunit  ====================
[18:26:22] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[18:26:22] ================== [SKIPPED] xe_bo_shrink ==================
[18:26:22] ==================== xe_bo (2 subtests) ====================
[18:26:22] ================== xe_ccs_migrate_kunit  ===================
[18:26:22] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[18:26:22] ==================== xe_bo_evict_kunit  ====================
[18:26:22] =============== [SKIPPED] xe_bo_evict_kunit ================
[18:26:22] ===================== [SKIPPED] xe_bo ======================
[18:26:22] =================== xe_any (9 subtests) ====================
[18:26:22] [PASSED] test_to_xe
[18:26:22] [PASSED] test_to_dev
[18:26:22] [PASSED] test_to_pdev
[18:26:22] [PASSED] test_to_drm
[18:26:22] [PASSED] test_if_pdev
[18:26:22] [PASSED] test_if_xe
[18:26:22] [PASSED] test_if_tile
[18:26:22] [PASSED] test_if_gt
[18:26:22] [PASSED] test_to_id
[18:26:22] ===================== [PASSED] xe_any ======================
[18:26:22] ==================== args (13 subtests) ====================
[18:26:22] [PASSED] count_args_test
[18:26:22] [PASSED] call_args_example
[18:26:22] [PASSED] call_args_test
[18:26:22] [PASSED] drop_first_arg_example
[18:26:22] [PASSED] drop_first_arg_test
[18:26:22] [PASSED] first_arg_example
[18:26:22] [PASSED] first_arg_test
[18:26:22] [PASSED] last_arg_example
[18:26:22] [PASSED] last_arg_test
[18:26:22] [PASSED] pick_arg_example
[18:26:22] [PASSED] if_args_example
[18:26:22] [PASSED] if_args_test
[18:26:22] [PASSED] sep_comma_example
[18:26:22] ====================== [PASSED] args =======================
[18:26:22] =================== xe_pci (3 subtests) ====================
[18:26:22] ==================== check_graphics_ip  ====================
[18:26:22] [PASSED] 12.00 Xe_LP
[18:26:22] [PASSED] 12.10 Xe_LP+
[18:26:22] [PASSED] 12.55 Xe_HPG
[18:26:22] [PASSED] 12.60 Xe_HPC
[18:26:22] [PASSED] 12.70 Xe_LPG
[18:26:22] [PASSED] 12.71 Xe_LPG
[18:26:22] [PASSED] 12.74 Xe_LPG+
[18:26:22] [PASSED] 20.01 Xe2_HPG
[18:26:22] [PASSED] 20.02 Xe2_HPG
[18:26:22] [PASSED] 20.04 Xe2_LPG
[18:26:22] [PASSED] 30.00 Xe3_LPG
[18:26:22] [PASSED] 30.01 Xe3_LPG
[18:26:22] [PASSED] 30.03 Xe3_LPG
[18:26:22] [PASSED] 30.04 Xe3_LPG
[18:26:22] [PASSED] 30.05 Xe3_LPG
[18:26:22] [PASSED] 35.10 Xe3p_LPG
[18:26:22] [PASSED] 35.11 Xe3p_XPC
[18:26:22] ================ [PASSED] check_graphics_ip ================
[18:26:22] ===================== check_media_ip  ======================
[18:26:22] [PASSED] 12.00 Xe_M
[18:26:22] [PASSED] 12.55 Xe_HPM
[18:26:22] [PASSED] 13.00 Xe_LPM+
[18:26:22] [PASSED] 13.01 Xe2_HPM
[18:26:22] [PASSED] 20.00 Xe2_LPM
[18:26:22] [PASSED] 30.00 Xe3_LPM
[18:26:22] [PASSED] 30.02 Xe3_LPM
[18:26:22] [PASSED] 35.00 Xe3p_LPM
[18:26:22] [PASSED] 35.03 Xe3p_HPM
[18:26:22] ================= [PASSED] check_media_ip ==================
[18:26:22] =================== check_platform_desc  ===================
[18:26:22] [PASSED] 0x9A60 (TIGERLAKE)
[18:26:22] [PASSED] 0x9A68 (TIGERLAKE)
[18:26:22] [PASSED] 0x9A70 (TIGERLAKE)
[18:26:22] [PASSED] 0x9A40 (TIGERLAKE)
[18:26:22] [PASSED] 0x9A49 (TIGERLAKE)
[18:26:22] [PASSED] 0x9A59 (TIGERLAKE)
[18:26:22] [PASSED] 0x9A78 (TIGERLAKE)
[18:26:22] [PASSED] 0x9AC0 (TIGERLAKE)
[18:26:22] [PASSED] 0x9AC9 (TIGERLAKE)
[18:26:22] [PASSED] 0x9AD9 (TIGERLAKE)
[18:26:22] [PASSED] 0x9AF8 (TIGERLAKE)
[18:26:22] [PASSED] 0x4C80 (ROCKETLAKE)
[18:26:22] [PASSED] 0x4C8A (ROCKETLAKE)
[18:26:22] [PASSED] 0x4C8B (ROCKETLAKE)
[18:26:22] [PASSED] 0x4C8C (ROCKETLAKE)
[18:26:22] [PASSED] 0x4C90 (ROCKETLAKE)
[18:26:22] [PASSED] 0x4C9A (ROCKETLAKE)
[18:26:22] [PASSED] 0x4680 (ALDERLAKE_S)
[18:26:22] [PASSED] 0x4682 (ALDERLAKE_S)
[18:26:22] [PASSED] 0x4688 (ALDERLAKE_S)
[18:26:22] [PASSED] 0x468A (ALDERLAKE_S)
[18:26:22] [PASSED] 0x468B (ALDERLAKE_S)
[18:26:22] [PASSED] 0x4690 (ALDERLAKE_S)
[18:26:22] [PASSED] 0x4692 (ALDERLAKE_S)
[18:26:22] [PASSED] 0x4693 (ALDERLAKE_S)
[18:26:22] [PASSED] 0x46A0 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x46A1 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x46A2 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x46A3 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x46A6 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x46A8 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x46AA (ALDERLAKE_P)
[18:26:22] [PASSED] 0x462A (ALDERLAKE_P)
[18:26:22] [PASSED] 0x4626 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x4628 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x46B0 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x46B1 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x46B2 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x46B3 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x46C0 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x46C1 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x46C2 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x46C3 (ALDERLAKE_P)
[18:26:22] [PASSED] 0x46D0 (ALDERLAKE_N)
[18:26:22] [PASSED] 0x46D1 (ALDERLAKE_N)
[18:26:22] [PASSED] 0x46D2 (ALDERLAKE_N)
[18:26:22] [PASSED] 0x46D3 (ALDERLAKE_N)
[18:26:22] [PASSED] 0x46D4 (ALDERLAKE_N)
[18:26:22] [PASSED] 0xA721 (ALDERLAKE_P)
[18:26:22] [PASSED] 0xA7A1 (ALDERLAKE_P)
[18:26:22] [PASSED] 0xA7A9 (ALDERLAKE_P)
[18:26:22] [PASSED] 0xA7AC (ALDERLAKE_P)
[18:26:22] [PASSED] 0xA7AD (ALDERLAKE_P)
[18:26:22] [PASSED] 0xA720 (ALDERLAKE_P)
[18:26:22] [PASSED] 0xA7A0 (ALDERLAKE_P)
[18:26:22] [PASSED] 0xA7A8 (ALDERLAKE_P)
[18:26:22] [PASSED] 0xA7AA (ALDERLAKE_P)
[18:26:22] [PASSED] 0xA7AB (ALDERLAKE_P)
[18:26:22] [PASSED] 0xA780 (ALDERLAKE_S)
[18:26:22] [PASSED] 0xA781 (ALDERLAKE_S)
[18:26:22] [PASSED] 0xA782 (ALDERLAKE_S)
[18:26:22] [PASSED] 0xA783 (ALDERLAKE_S)
[18:26:22] [PASSED] 0xA788 (ALDERLAKE_S)
[18:26:22] [PASSED] 0xA789 (ALDERLAKE_S)
[18:26:22] [PASSED] 0xA78A (ALDERLAKE_S)
[18:26:22] [PASSED] 0xA78B (ALDERLAKE_S)
[18:26:22] [PASSED] 0x4905 (DG1)
[18:26:22] [PASSED] 0x4906 (DG1)
[18:26:22] [PASSED] 0x4907 (DG1)
[18:26:22] [PASSED] 0x4908 (DG1)
[18:26:22] [PASSED] 0x4909 (DG1)
[18:26:22] [PASSED] 0x56C0 (DG2)
[18:26:22] [PASSED] 0x56C2 (DG2)
[18:26:22] [PASSED] 0x56C1 (DG2)
[18:26:22] [PASSED] 0x7D51 (METEORLAKE)
[18:26:22] [PASSED] 0x7DD1 (METEORLAKE)
[18:26:22] [PASSED] 0x7D41 (METEORLAKE)
[18:26:22] [PASSED] 0x7D67 (METEORLAKE)
[18:26:22] [PASSED] 0xB640 (METEORLAKE)
[18:26:22] [PASSED] 0x56A0 (DG2)
[18:26:22] [PASSED] 0x56A1 (DG2)
[18:26:22] [PASSED] 0x56A2 (DG2)
[18:26:22] [PASSED] 0x56BE (DG2)
[18:26:22] [PASSED] 0x56BF (DG2)
[18:26:22] [PASSED] 0x5690 (DG2)
[18:26:22] [PASSED] 0x5691 (DG2)
[18:26:22] [PASSED] 0x5692 (DG2)
[18:26:22] [PASSED] 0x56A5 (DG2)
[18:26:22] [PASSED] 0x56A6 (DG2)
[18:26:22] [PASSED] 0x56B0 (DG2)
[18:26:22] [PASSED] 0x56B1 (DG2)
[18:26:22] [PASSED] 0x56BA (DG2)
[18:26:22] [PASSED] 0x56BB (DG2)
[18:26:22] [PASSED] 0x56BC (DG2)
[18:26:22] [PASSED] 0x56BD (DG2)
[18:26:22] [PASSED] 0x5693 (DG2)
[18:26:22] [PASSED] 0x5694 (DG2)
[18:26:22] [PASSED] 0x5695 (DG2)
[18:26:22] [PASSED] 0x56A3 (DG2)
[18:26:22] [PASSED] 0x56A4 (DG2)
[18:26:22] [PASSED] 0x56B2 (DG2)
[18:26:22] [PASSED] 0x56B3 (DG2)
[18:26:22] [PASSED] 0x5696 (DG2)
[18:26:22] [PASSED] 0x5697 (DG2)
[18:26:22] [PASSED] 0xB69 (PVC)
[18:26:22] [PASSED] 0xB6E (PVC)
[18:26:22] [PASSED] 0xBD4 (PVC)
[18:26:22] [PASSED] 0xBD5 (PVC)
[18:26:22] [PASSED] 0xBD6 (PVC)
[18:26:22] [PASSED] 0xBD7 (PVC)
[18:26:22] [PASSED] 0xBD8 (PVC)
[18:26:22] [PASSED] 0xBD9 (PVC)
[18:26:22] [PASSED] 0xBDA (PVC)
[18:26:22] [PASSED] 0xBDB (PVC)
[18:26:22] [PASSED] 0xBE0 (PVC)
[18:26:22] [PASSED] 0xBE1 (PVC)
[18:26:22] [PASSED] 0xBE5 (PVC)
[18:26:22] [PASSED] 0x7D40 (METEORLAKE)
[18:26:22] [PASSED] 0x7D45 (METEORLAKE)
[18:26:22] [PASSED] 0x7D55 (METEORLAKE)
[18:26:22] [PASSED] 0x7D60 (METEORLAKE)
[18:26:22] [PASSED] 0x7DD5 (METEORLAKE)
[18:26:22] [PASSED] 0x6420 (LUNARLAKE)
[18:26:22] [PASSED] 0x64A0 (LUNARLAKE)
[18:26:22] [PASSED] 0x64B0 (LUNARLAKE)
[18:26:22] [PASSED] 0xE202 (BATTLEMAGE)
[18:26:22] [PASSED] 0xE209 (BATTLEMAGE)
[18:26:22] [PASSED] 0xE20B (BATTLEMAGE)
[18:26:22] [PASSED] 0xE20C (BATTLEMAGE)
[18:26:22] [PASSED] 0xE20D (BATTLEMAGE)
[18:26:22] [PASSED] 0xE210 (BATTLEMAGE)
[18:26:22] [PASSED] 0xE211 (BATTLEMAGE)
[18:26:22] [PASSED] 0xE212 (BATTLEMAGE)
[18:26:22] [PASSED] 0xE216 (BATTLEMAGE)
[18:26:22] [PASSED] 0xE220 (BATTLEMAGE)
[18:26:22] [PASSED] 0xE221 (BATTLEMAGE)
[18:26:22] [PASSED] 0xE222 (BATTLEMAGE)
[18:26:22] [PASSED] 0xE223 (BATTLEMAGE)
[18:26:22] [PASSED] 0xB080 (PANTHERLAKE)
[18:26:22] [PASSED] 0xB081 (PANTHERLAKE)
[18:26:22] [PASSED] 0xB082 (PANTHERLAKE)
[18:26:22] [PASSED] 0xB083 (PANTHERLAKE)
[18:26:22] [PASSED] 0xB084 (PANTHERLAKE)
[18:26:22] [PASSED] 0xB085 (PANTHERLAKE)
[18:26:22] [PASSED] 0xB086 (PANTHERLAKE)
[18:26:22] [PASSED] 0xB087 (PANTHERLAKE)
[18:26:22] [PASSED] 0xB08F (PANTHERLAKE)
[18:26:22] [PASSED] 0xB090 (PANTHERLAKE)
[18:26:22] [PASSED] 0xB0A0 (PANTHERLAKE)
[18:26:22] [PASSED] 0xB0A1 (PANTHERLAKE)
[18:26:22] [PASSED] 0xB0B0 (PANTHERLAKE)
[18:26:22] [PASSED] 0xFD80 (PANTHERLAKE)
[18:26:22] [PASSED] 0xFD81 (PANTHERLAKE)
[18:26:22] [PASSED] 0xD740 (NOVALAKE_S)
[18:26:22] [PASSED] 0xD741 (NOVALAKE_S)
[18:26:22] [PASSED] 0xD742 (NOVALAKE_S)
[18:26:22] [PASSED] 0xD743 (NOVALAKE_S)
[18:26:22] [PASSED] 0xD745 (NOVALAKE_S)
[18:26:22] [PASSED] 0xD74A (NOVALAKE_S)
[18:26:22] [PASSED] 0xD74B (NOVALAKE_S)
[18:26:22] [PASSED] 0x674C (CRESCENTISLAND)
[18:26:22] [PASSED] 0x674D (CRESCENTISLAND)
[18:26:22] [PASSED] 0x674E (CRESCENTISLAND)
[18:26:22] [PASSED] 0x674F (CRESCENTISLAND)
[18:26:22] [PASSED] 0x6750 (CRESCENTISLAND)
[18:26:22] [PASSED] 0x6751 (CRESCENTISLAND)
[18:26:22] [PASSED] 0x6752 (CRESCENTISLAND)
[18:26:22] [PASSED] 0x6753 (CRESCENTISLAND)
[18:26:22] [PASSED] 0x6754 (CRESCENTISLAND)
[18:26:22] [PASSED] 0x6755 (CRESCENTISLAND)
[18:26:22] [PASSED] 0x6756 (CRESCENTISLAND)
[18:26:22] [PASSED] 0xD750 (NOVALAKE_P)
[18:26:22] [PASSED] 0xD751 (NOVALAKE_P)
[18:26:22] [PASSED] 0xD752 (NOVALAKE_P)
[18:26:22] [PASSED] 0xD753 (NOVALAKE_P)
[18:26:22] [PASSED] 0xD754 (NOVALAKE_P)
[18:26:22] [PASSED] 0xD755 (NOVALAKE_P)
[18:26:22] [PASSED] 0xD756 (NOVALAKE_P)
[18:26:22] [PASSED] 0xD757 (NOVALAKE_P)
[18:26:22] [PASSED] 0xD75F (NOVALAKE_P)
[18:26:22] =============== [PASSED] check_platform_desc ===============
[18:26:22] ===================== [PASSED] xe_pci ======================
[18:26:22] ============= xe_rtp_tables_test (5 subtests) ==============
[18:26:22] ================== xe_rtp_table_gt_test  ===================
[18:26:22] [PASSED] gt_was/14011060649
[18:26:22] [PASSED] gt_was/14011059788
[18:26:22] [PASSED] gt_was/14015795083
[18:26:22] [PASSED] gt_was/16021867713
[18:26:22] [PASSED] gt_was/14019449301
[18:26:22] [PASSED] gt_was/16028005424
[18:26:22] [PASSED] gt_was/14026578760
[18:26:22] [PASSED] gt_was/1409420604
[18:26:22] [PASSED] gt_was/1408615072
[18:26:22] [PASSED] gt_was/22010523718
[18:26:22] [PASSED] gt_was/14011006942
[18:26:22] [PASSED] gt_was/14014830051
[18:26:22] [PASSED] gt_was/18018781329
[18:26:22] [PASSED] gt_was/1509235366
[18:26:22] [PASSED] gt_was/18018781329
[18:26:22] [PASSED] gt_was/16016694945
[18:26:22] [PASSED] gt_was/14018575942
[18:26:22] [PASSED] gt_was/22016670082
[18:26:22] [PASSED] gt_was/22016670082
[18:26:22] [PASSED] gt_was/14017421178
[18:26:22] [PASSED] gt_was/16025250150
[18:26:22] [PASSED] gt_was/14021871409
[18:26:22] [PASSED] gt_was/16021865536
[18:26:22] [PASSED] gt_was/14021486841
[18:26:22] [PASSED] gt_was/14025160223
[18:26:22] [PASSED] gt_was/14026144927, 16029437861, 14026127056
[18:26:22] [PASSED] gt_was/14025635424
[18:26:22] [PASSED] gt_was/16028005424
[18:26:22] ============== [PASSED] xe_rtp_table_gt_test ===============
[18:26:22] ================== xe_rtp_table_gt_test  ===================
[18:26:22] [PASSED] gt_tunings/Tuning: Blend Fill Caching Optimization Disable
[18:26:22] [PASSED] gt_tunings/Tuning: 32B Access Enable
[18:26:22] [PASSED] gt_tunings/Tuning: L3 cache
[18:26:22] [PASSED] gt_tunings/Tuning: L3 cache - media
[18:26:22] [PASSED] gt_tunings/Tuning: Compression Overfetch
[18:26:22] [PASSED] gt_tunings/Tuning: Compression Overfetch - media
[18:26:22] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3
[18:26:22] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 - media
[18:26:22] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only
[18:26:22] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only - media
[18:26:22] [PASSED] gt_tunings/Tuning: Stateless compression control
[18:26:22] [PASSED] gt_tunings/Tuning: Stateless compression control - media
[18:26:22] [PASSED] gt_tunings/Tuning: L3 RW flush all Cache
[18:26:22] [PASSED] gt_tunings/Tuning: L3 RW flush all cache - media
[18:26:22] [PASSED] gt_tunings/Tuning: Set STLB Bank Hash Mode to 4KB
[18:26:22] [PASSED] gt_tunings/Tuning: Force All Non-Compressible Memory Reads to be 256B Overfetches
[18:26:22] ============== [PASSED] xe_rtp_table_gt_test ===============
[18:26:22] ================== xe_rtp_table_oob_test  ==================
[18:26:22] [PASSED] oob_was/1607983814
[18:26:22] [PASSED] oob_was/16010904313
[18:26:22] [PASSED] oob_was/18022495364
[18:26:22] [PASSED] oob_was/22012773006
[18:26:22] [PASSED] oob_was/14014475959
[18:26:22] [PASSED] oob_was/22011391025
[18:26:22] [PASSED] oob_was/22012727170
[18:26:22] [PASSED] oob_was/22012727685
[18:26:22] [PASSED] oob_was/22016596838
[18:26:22] [PASSED] oob_was/18020744125
[18:26:22] [PASSED] oob_was/1409600907
[18:26:22] [PASSED] oob_was/22014953428
[18:26:22] [PASSED] oob_was/16017236439
[18:26:22] [PASSED] oob_was/14019821291
[18:26:22] [PASSED] oob_was/14015076503
[18:26:22] [PASSED] oob_was/22016122933
[18:26:22] [PASSED] oob_was/14018913170
[18:26:22] [PASSED] oob_was/14018094691
[18:26:22] [PASSED] oob_was/18024947630
[18:26:22] [PASSED] oob_was/16022287689
[18:26:22] [PASSED] oob_was/13011645652
[18:26:22] [PASSED] oob_was/14022293748
[18:26:22] [PASSED] oob_was/22019794406
[18:26:22] [PASSED] oob_was/22019338487
[18:26:22] [PASSED] oob_was/16023588340
[18:26:22] [PASSED] oob_was/14019789679
[18:26:22] [PASSED] oob_was/14022866841
[18:26:22] [PASSED] oob_was/16021333562
[18:26:22] [PASSED] oob_was/14016712196
[18:26:22] [PASSED] oob_was/14015568240
[18:26:22] [PASSED] oob_was/18013179988
[18:26:22] [PASSED] oob_was/1508761755
[18:26:22] [PASSED] oob_was/16023105232
[18:26:22] [PASSED] oob_was/16026508708
[18:26:22] [PASSED] oob_was/14020001231
[18:26:22] [PASSED] oob_was/16023683509
[18:26:22] [PASSED] oob_was/14025515070
[18:26:22] [PASSED] oob_was/15015404425_disable
[18:26:22] [PASSED] oob_was/16026007364
[18:26:22] [PASSED] oob_was/14020316580
[18:26:22] [PASSED] oob_was/14025883347
[18:26:22] [PASSED] oob_was/16029380221
[18:26:22] [PASSED] oob_was/22022079272
[18:26:22] [PASSED] oob_was/16029897822
[18:26:22] [PASSED] oob_was/14026539277
[18:26:22] [PASSED] oob_was/14028564128
[18:26:22] [PASSED] oob_was/14027054324
[18:26:22] [PASSED] oob_was/14025941587
[18:26:22] [PASSED] oob_was/16030224309
[18:26:22] [PASSED] oob_was/14028709524
[18:26:22] [PASSED] oob_was/14028250015
[18:26:22] [PASSED] oob_was/16031259911
[18:26:22] [PASSED] oob_was/14028597154
[18:26:22] ============== [PASSED] xe_rtp_table_oob_test ==============
[18:26:22] ================ xe_rtp_table_dev_oob_test  ================
[18:26:22] [PASSED] device_oob_was/22010954014
[18:26:22] [PASSED] device_oob_was/15015404425
[18:26:22] [PASSED] device_oob_was/22019338487_display
[18:26:22] [PASSED] device_oob_was/14022085890
[18:26:22] [PASSED] device_oob_was/14026633728
[18:26:22] [PASSED] device_oob_was/14026746987
[18:26:22] [PASSED] device_oob_was/14026779378
[18:26:22] [PASSED] device_oob_was/14028586678
[18:26:22] [PASSED] device_oob_was/14028434957
[18:26:22] ============ [PASSED] xe_rtp_table_dev_oob_test ============
[18:26:22] ========== xe_rtp_table_missing_upper_bound_test  ==========
[18:26:22] [PASSED] register_whitelist/WaAllowPMDepthAndInvocationCountAccessFromUMD, 1408556865
[18:26:22] [PASSED] register_whitelist/1508744258, 14012131227, 1808121037
[18:26:22] [PASSED] register_whitelist/1806527549
[18:26:22] [PASSED] register_whitelist/allow_read_ctx_timestamp
[18:26:22] [PASSED] register_whitelist/allow_read_queue_timestamp
[18:26:22] [PASSED] register_whitelist/16014440446
[18:26:22] [PASSED] register_whitelist/16017236439
[18:26:22] [PASSED] register_whitelist/16020183090
[18:26:22] [PASSED] register_whitelist/14024997852
[18:26:22] [PASSED] register_whitelist/14024997852
[18:26:22] ====== [PASSED] xe_rtp_table_missing_upper_bound_test ======
[18:26:22] =============== [PASSED] xe_rtp_tables_test ================
[18:26:22] =================== xe_rtp (3 subtests) ====================
[18:26:22] =================== xe_rtp_rules_tests  ====================
[18:26:22] [PASSED] no
[18:26:22] [PASSED] yes
[18:26:22] [PASSED] no-and-no
[18:26:22] [PASSED] no-and-yes
[18:26:22] [PASSED] yes-and-no
[18:26:22] [PASSED] yes-and-yes
[18:26:22] [PASSED] no-or-no
[18:26:22] [PASSED] no-or-yes
[18:26:22] [PASSED] yes-or-no
[18:26:22] [PASSED] yes-or-yes
[18:26:22] [PASSED] no-yes-or-yes-no
[18:26:22] [PASSED] no-yes-or-yes-yes
[18:26:22] [PASSED] yes-yes-or-no-yes
[18:26:22] [PASSED] yes-yes-or-yes-yes
[18:26:22] [PASSED] no-no-or-yes-or-no
[18:26:22] [PASSED] or
[18:26:22] [PASSED] or-yes
[18:26:22] [PASSED] or-no
[18:26:22] [PASSED] yes-or
[18:26:22] [PASSED] no-or
[18:26:22] [PASSED] no-or-or-yes
[18:26:22] [PASSED] yes-or-or-no
[18:26:22] [PASSED] no-or-or-no
[18:26:22] [PASSED] missing-context-engine-class
[18:26:22] [PASSED] missing-context-engine-class-or-yes
[18:26:22] [PASSED] missing-context-engine-class-or-or-yes
[18:26:22] =============== [PASSED] xe_rtp_rules_tests ================
[18:26:22] =============== xe_rtp_process_to_sr_tests  ================
[18:26:22] [PASSED] coalesce-same-reg
[18:26:22] [PASSED] coalesce-same-reg-literal-and-func
[18:26:22] [PASSED] no-match-no-add
[18:26:22] [PASSED] two-regs-two-entries
[18:26:22] [PASSED] clr-one-set-other
[18:26:22] [PASSED] set-field
[18:26:22] [PASSED] conflict-duplicate
[18:26:22] [PASSED] conflict-not-disjoint
[18:26:22] [PASSED] conflict-not-disjoint-literal-and-func
[18:26:22] [PASSED] conflict-reg-type
[18:26:22] [PASSED] bad-mcr-reg-forced-to-regular
[18:26:22] [PASSED] bad-regular-reg-forced-to-mcr
[18:26:22] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[18:26:22] ================== xe_rtp_process_tests  ===================
[18:26:22] [PASSED] active1
[18:26:22] [PASSED] active2
[18:26:22] [PASSED] active-inactive
[18:26:22] [PASSED] inactive-active
[18:26:22] [PASSED] inactive-active-inactive
[18:26:22] [PASSED] inactive-inactive-inactive
[18:26:22] ============== [PASSED] xe_rtp_process_tests ===============
[18:26:22] ===================== [PASSED] xe_rtp ======================
[18:26:22] ==================== xe_wa (1 subtest) =====================
[18:26:22] ======================== xe_wa_gt  =========================
[18:26:22] [PASSED] TIGERLAKE B0
[18:26:22] [PASSED] DG1 A0
[18:26:22] [PASSED] DG1 B0
[18:26:22] [PASSED] ALDERLAKE_S A0
[18:26:22] [PASSED] ALDERLAKE_S B0
[18:26:22] [PASSED] ALDERLAKE_S C0
[18:26:22] [PASSED] ALDERLAKE_S D0
[18:26:22] [PASSED] ALDERLAKE_P A0
[18:26:22] [PASSED] ALDERLAKE_P B0
[18:26:22] [PASSED] ALDERLAKE_P C0
[18:26:22] [PASSED] ALDERLAKE_S RPLS D0
[18:26:22] [PASSED] ALDERLAKE_P RPLU E0
[18:26:22] [PASSED] DG2 G10 C0
[18:26:22] [PASSED] DG2 G11 B1
[18:26:22] [PASSED] DG2 G12 A1
[18:26:22] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0
[18:26:22] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0
[18:26:22] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0
[18:26:22] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0
[18:26:22] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0
[18:26:22] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1
[18:26:22] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0
[18:26:22] ==================== [PASSED] xe_wa_gt =====================
[18:26:22] ====================== [PASSED] xe_wa ======================
[18:26:22] ============================================================
[18:26:22] Testing complete. Ran 869 tests: passed: 840, skipped: 29
[18:26:22] Elapsed time: 42.764s total, 2.574s configuring, 39.424s building, 0.755s 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
[18:26:22] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[18:26:25] 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
[18:26:51] Starting KUnit Kernel (1/1)...
[18:26:51] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[18:26:51] ============ drm_test_pick_cmdline (2 subtests) ============
[18:26:51] [PASSED] drm_test_pick_cmdline_res_1920_1080_60
[18:26:51] =============== drm_test_pick_cmdline_named  ===============
[18:26:51] [PASSED] NTSC
[18:26:51] [PASSED] NTSC-J
[18:26:51] [PASSED] PAL
[18:26:51] [PASSED] PAL-M
[18:26:51] =========== [PASSED] drm_test_pick_cmdline_named ===========
[18:26:51] ============== [PASSED] drm_test_pick_cmdline ==============
[18:26:51] == drm_test_atomic_get_connector_for_encoder (1 subtest) ===
[18:26:51] [PASSED] drm_test_drm_atomic_get_connector_for_encoder
[18:26:51] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ====
[18:26:51] =========== drm_validate_clone_mode (2 subtests) ===========
[18:26:51] ============== drm_test_check_in_clone_mode  ===============
[18:26:51] [PASSED] in_clone_mode
[18:26:51] [PASSED] not_in_clone_mode
[18:26:51] ========== [PASSED] drm_test_check_in_clone_mode ===========
[18:26:51] =============== drm_test_check_valid_clones  ===============
[18:26:51] [PASSED] not_in_clone_mode
[18:26:51] [PASSED] valid_clone
[18:26:51] [PASSED] invalid_clone
[18:26:51] =========== [PASSED] drm_test_check_valid_clones ===========
[18:26:51] ============= [PASSED] drm_validate_clone_mode =============
[18:26:51] ============= drm_validate_modeset (1 subtest) =============
[18:26:51] [PASSED] drm_test_check_connector_changed_modeset
[18:26:51] ============== [PASSED] drm_validate_modeset ===============
[18:26:51] ====== drm_test_bridge_get_current_state (1 subtest) =======
[18:26:51] [PASSED] drm_test_drm_bridge_get_current_state_atomic
[18:26:51] ======== [PASSED] drm_test_bridge_get_current_state ========
[18:26:51] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ======
[18:26:51] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic
[18:26:51] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled
[18:26:51] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts
[18:26:51] ======== [PASSED] drm_test_bridge_helper_reset_crtc ========
[18:26:51] ============== drm_bridge_alloc (2 subtests) ===============
[18:26:51] [PASSED] drm_test_drm_bridge_alloc_basic
[18:26:51] [PASSED] drm_test_drm_bridge_alloc_get_put
[18:26:51] ================ [PASSED] drm_bridge_alloc =================
[18:26:51] ============= drm_bridge_bus_fmt (5 subtests) ==============
[18:26:51] [PASSED] drm_test_bridge_rgb_yuv_rgb
[18:26:51] [PASSED] drm_test_bridge_must_convert_to_yuv444
[18:26:51] [PASSED] drm_test_bridge_hdmi_auto_rgb
[18:26:51] [PASSED] drm_test_bridge_auto_first
[18:26:51] [PASSED] drm_test_bridge_rgb_yuv_no_path
[18:26:51] =============== [PASSED] drm_bridge_bus_fmt ================
[18:26:51] ============= drm_cmdline_parser (40 subtests) =============
[18:26:51] [PASSED] drm_test_cmdline_force_d_only
[18:26:51] [PASSED] drm_test_cmdline_force_D_only_dvi
[18:26:51] [PASSED] drm_test_cmdline_force_D_only_hdmi
[18:26:51] [PASSED] drm_test_cmdline_force_D_only_not_digital
[18:26:51] [PASSED] drm_test_cmdline_force_e_only
[18:26:51] [PASSED] drm_test_cmdline_res
[18:26:51] [PASSED] drm_test_cmdline_res_vesa
[18:26:51] [PASSED] drm_test_cmdline_res_vesa_rblank
[18:26:51] [PASSED] drm_test_cmdline_res_rblank
[18:26:51] [PASSED] drm_test_cmdline_res_bpp
[18:26:51] [PASSED] drm_test_cmdline_res_refresh
[18:26:51] [PASSED] drm_test_cmdline_res_bpp_refresh
[18:26:51] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced
[18:26:51] [PASSED] drm_test_cmdline_res_bpp_refresh_margins
[18:26:51] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off
[18:26:51] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on
[18:26:51] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog
[18:26:51] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital
[18:26:51] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on
[18:26:51] [PASSED] drm_test_cmdline_res_margins_force_on
[18:26:51] [PASSED] drm_test_cmdline_res_vesa_margins
[18:26:51] [PASSED] drm_test_cmdline_name
[18:26:51] [PASSED] drm_test_cmdline_name_bpp
[18:26:51] [PASSED] drm_test_cmdline_name_option
[18:26:51] [PASSED] drm_test_cmdline_name_bpp_option
[18:26:51] [PASSED] drm_test_cmdline_rotate_0
[18:26:51] [PASSED] drm_test_cmdline_rotate_90
[18:26:51] [PASSED] drm_test_cmdline_rotate_180
[18:26:51] [PASSED] drm_test_cmdline_rotate_270
[18:26:51] [PASSED] drm_test_cmdline_hmirror
[18:26:51] [PASSED] drm_test_cmdline_vmirror
[18:26:51] [PASSED] drm_test_cmdline_margin_options
[18:26:51] [PASSED] drm_test_cmdline_multiple_options
[18:26:51] [PASSED] drm_test_cmdline_bpp_extra_and_option
[18:26:51] [PASSED] drm_test_cmdline_extra_and_option
[18:26:51] [PASSED] drm_test_cmdline_freestanding_options
[18:26:51] [PASSED] drm_test_cmdline_freestanding_force_e_and_options
[18:26:51] [PASSED] drm_test_cmdline_panel_orientation
[18:26:51] ================ drm_test_cmdline_invalid  =================
[18:26:51] [PASSED] margin_only
[18:26:51] [PASSED] interlace_only
[18:26:51] [PASSED] res_missing_x
[18:26:51] [PASSED] res_missing_y
[18:26:51] [PASSED] res_bad_y
[18:26:51] [PASSED] res_missing_y_bpp
[18:26:51] [PASSED] res_bad_bpp
[18:26:51] [PASSED] res_bad_refresh
[18:26:51] [PASSED] res_bpp_refresh_force_on_off
[18:26:51] [PASSED] res_invalid_mode
[18:26:51] [PASSED] res_bpp_wrong_place_mode
[18:26:51] [PASSED] name_bpp_refresh
[18:26:51] [PASSED] name_refresh
[18:26:51] [PASSED] name_refresh_wrong_mode
[18:26:51] [PASSED] name_refresh_invalid_mode
[18:26:51] [PASSED] rotate_multiple
[18:26:51] [PASSED] rotate_invalid_val
[18:26:51] [PASSED] rotate_truncated
[18:26:51] [PASSED] invalid_option
[18:26:51] [PASSED] invalid_tv_option
[18:26:51] [PASSED] truncated_tv_option
[18:26:51] ============ [PASSED] drm_test_cmdline_invalid =============
[18:26:51] =============== drm_test_cmdline_tv_options  ===============
[18:26:51] [PASSED] NTSC
[18:26:51] [PASSED] NTSC_443
[18:26:51] [PASSED] NTSC_J
[18:26:51] [PASSED] PAL
[18:26:51] [PASSED] PAL_M
[18:26:51] [PASSED] PAL_N
[18:26:51] [PASSED] SECAM
[18:26:51] [PASSED] MONO_525
[18:26:51] [PASSED] MONO_625
[18:26:51] =========== [PASSED] drm_test_cmdline_tv_options ===========
[18:26:51] =============== [PASSED] drm_cmdline_parser ================
[18:26:51] ========== drmm_connector_hdmi_init (20 subtests) ==========
[18:26:51] [PASSED] drm_test_connector_hdmi_init_valid
[18:26:51] [PASSED] drm_test_connector_hdmi_init_bpc_8
[18:26:51] [PASSED] drm_test_connector_hdmi_init_bpc_10
[18:26:51] [PASSED] drm_test_connector_hdmi_init_bpc_12
[18:26:51] [PASSED] drm_test_connector_hdmi_init_bpc_invalid
[18:26:51] [PASSED] drm_test_connector_hdmi_init_bpc_null
[18:26:51] [PASSED] drm_test_connector_hdmi_init_formats_empty
[18:26:51] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb
[18:26:51] === drm_test_connector_hdmi_init_formats_yuv420_allowed  ===
[18:26:51] [PASSED] supported_formats=0x9 yuv420_allowed=1
[18:26:51] [PASSED] supported_formats=0x9 yuv420_allowed=0
[18:26:51] [PASSED] supported_formats=0x5 yuv420_allowed=1
[18:26:51] [PASSED] supported_formats=0x5 yuv420_allowed=0
[18:26:51] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[18:26:51] [PASSED] drm_test_connector_hdmi_init_null_ddc
[18:26:51] [PASSED] drm_test_connector_hdmi_init_null_product
[18:26:51] [PASSED] drm_test_connector_hdmi_init_null_vendor
[18:26:51] [PASSED] drm_test_connector_hdmi_init_product_length_exact
[18:26:51] [PASSED] drm_test_connector_hdmi_init_product_length_too_long
[18:26:51] [PASSED] drm_test_connector_hdmi_init_product_valid
[18:26:51] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact
[18:26:51] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long
[18:26:51] [PASSED] drm_test_connector_hdmi_init_vendor_valid
[18:26:51] ========= drm_test_connector_hdmi_init_type_valid  =========
[18:26:51] [PASSED] HDMI-A
[18:26:51] [PASSED] HDMI-B
[18:26:51] ===== [PASSED] drm_test_connector_hdmi_init_type_valid =====
[18:26:51] ======== drm_test_connector_hdmi_init_type_invalid  ========
[18:26:51] [PASSED] Unknown
[18:26:51] [PASSED] VGA
[18:26:51] [PASSED] DVI-I
[18:26:51] [PASSED] DVI-D
[18:26:51] [PASSED] DVI-A
[18:26:51] [PASSED] Composite
[18:26:51] [PASSED] SVIDEO
[18:26:51] [PASSED] LVDS
[18:26:51] [PASSED] Component
[18:26:51] [PASSED] DIN
[18:26:51] [PASSED] DP
[18:26:51] [PASSED] TV
[18:26:51] [PASSED] eDP
[18:26:51] [PASSED] Virtual
[18:26:51] [PASSED] DSI
[18:26:51] [PASSED] DPI
[18:26:51] [PASSED] Writeback
[18:26:51] [PASSED] SPI
[18:26:51] [PASSED] USB
[18:26:51] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ====
[18:26:51] ============ [PASSED] drmm_connector_hdmi_init =============
[18:26:51] ============= drmm_connector_init (3 subtests) =============
[18:26:51] [PASSED] drm_test_drmm_connector_init
[18:26:51] [PASSED] drm_test_drmm_connector_init_null_ddc
[18:26:51] ========= drm_test_drmm_connector_init_type_valid  =========
[18:26:51] [PASSED] Unknown
[18:26:51] [PASSED] VGA
[18:26:51] [PASSED] DVI-I
[18:26:51] [PASSED] DVI-D
[18:26:51] [PASSED] DVI-A
[18:26:51] [PASSED] Composite
[18:26:51] [PASSED] SVIDEO
[18:26:51] [PASSED] LVDS
[18:26:51] [PASSED] Component
[18:26:51] [PASSED] DIN
[18:26:51] [PASSED] DP
[18:26:51] [PASSED] HDMI-A
[18:26:51] [PASSED] HDMI-B
[18:26:51] [PASSED] TV
[18:26:51] [PASSED] eDP
[18:26:51] [PASSED] Virtual
[18:26:51] [PASSED] DSI
[18:26:51] [PASSED] DPI
[18:26:51] [PASSED] Writeback
[18:26:51] [PASSED] SPI
[18:26:51] [PASSED] USB
[18:26:51] ===== [PASSED] drm_test_drmm_connector_init_type_valid =====
[18:26:51] =============== [PASSED] drmm_connector_init ===============
[18:26:51] ========= drm_connector_dynamic_init (6 subtests) ==========
[18:26:51] [PASSED] drm_test_drm_connector_dynamic_init
[18:26:51] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc
[18:26:51] [PASSED] drm_test_drm_connector_dynamic_init_not_added
[18:26:51] [PASSED] drm_test_drm_connector_dynamic_init_properties
[18:26:51] ===== drm_test_drm_connector_dynamic_init_type_valid  ======
[18:26:51] [PASSED] Unknown
[18:26:51] [PASSED] VGA
[18:26:51] [PASSED] DVI-I
[18:26:51] [PASSED] DVI-D
[18:26:51] [PASSED] DVI-A
[18:26:51] [PASSED] Composite
[18:26:51] [PASSED] SVIDEO
[18:26:51] [PASSED] LVDS
[18:26:51] [PASSED] Component
[18:26:51] [PASSED] DIN
[18:26:51] [PASSED] DP
[18:26:51] [PASSED] HDMI-A
[18:26:51] [PASSED] HDMI-B
[18:26:51] [PASSED] TV
[18:26:51] [PASSED] eDP
[18:26:51] [PASSED] Virtual
[18:26:51] [PASSED] DSI
[18:26:51] [PASSED] DPI
[18:26:51] [PASSED] Writeback
[18:26:51] [PASSED] SPI
[18:26:51] [PASSED] USB
[18:26:51] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid ==
[18:26:51] ======== drm_test_drm_connector_dynamic_init_name  =========
[18:26:51] [PASSED] Unknown
[18:26:51] [PASSED] VGA
[18:26:51] [PASSED] DVI-I
[18:26:51] [PASSED] DVI-D
[18:26:51] [PASSED] DVI-A
[18:26:51] [PASSED] Composite
[18:26:51] [PASSED] SVIDEO
[18:26:51] [PASSED] LVDS
[18:26:51] [PASSED] Component
[18:26:51] [PASSED] DIN
[18:26:51] [PASSED] DP
[18:26:51] [PASSED] HDMI-A
[18:26:51] [PASSED] HDMI-B
[18:26:51] [PASSED] TV
[18:26:51] [PASSED] eDP
[18:26:51] [PASSED] Virtual
[18:26:51] [PASSED] DSI
[18:26:51] [PASSED] DPI
[18:26:51] [PASSED] Writeback
[18:26:51] [PASSED] SPI
[18:26:51] [PASSED] USB
[18:26:51] ==== [PASSED] drm_test_drm_connector_dynamic_init_name =====
[18:26:51] =========== [PASSED] drm_connector_dynamic_init ============
[18:26:51] ==== drm_connector_dynamic_register_early (4 subtests) =====
[18:26:51] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list
[18:26:51] [PASSED] drm_test_drm_connector_dynamic_register_early_defer
[18:26:51] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init
[18:26:51] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object
[18:26:51] ====== [PASSED] drm_connector_dynamic_register_early =======
[18:26:51] ======= drm_connector_dynamic_register (7 subtests) ========
[18:26:51] [PASSED] drm_test_drm_connector_dynamic_register_on_list
[18:26:51] [PASSED] drm_test_drm_connector_dynamic_register_no_defer
[18:26:51] [PASSED] drm_test_drm_connector_dynamic_register_no_init
[18:26:51] [PASSED] drm_test_drm_connector_dynamic_register_mode_object
[18:26:51] [PASSED] drm_test_drm_connector_dynamic_register_sysfs
[18:26:51] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name
[18:26:51] [PASSED] drm_test_drm_connector_dynamic_register_debugfs
[18:26:51] ========= [PASSED] drm_connector_dynamic_register ==========
[18:26:51] = drm_connector_attach_broadcast_rgb_property (2 subtests) =
[18:26:51] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property
[18:26:51] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector
[18:26:51] === [PASSED] drm_connector_attach_broadcast_rgb_property ===
[18:26:51] ========== drm_get_tv_mode_from_name (2 subtests) ==========
[18:26:51] ========== drm_test_get_tv_mode_from_name_valid  ===========
[18:26:51] [PASSED] NTSC
[18:26:51] [PASSED] NTSC-443
[18:26:51] [PASSED] NTSC-J
[18:26:51] [PASSED] PAL
[18:26:51] [PASSED] PAL-M
[18:26:51] [PASSED] PAL-N
[18:26:51] [PASSED] SECAM
[18:26:51] [PASSED] Mono
[18:26:51] ====== [PASSED] drm_test_get_tv_mode_from_name_valid =======
[18:26:51] [PASSED] drm_test_get_tv_mode_from_name_truncated
[18:26:51] ============ [PASSED] drm_get_tv_mode_from_name ============
[18:26:51] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) =
[18:26:51] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb
[18:26:51] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc
[18:26:51] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1
[18:26:51] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc
[18:26:51] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1
[18:26:51] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double
[18:26:51] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid  =
[18:26:51] [PASSED] VIC 96
[18:26:51] [PASSED] VIC 97
[18:26:51] [PASSED] VIC 101
[18:26:51] [PASSED] VIC 102
[18:26:51] [PASSED] VIC 106
[18:26:51] [PASSED] VIC 107
[18:26:51] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid ===
[18:26:51] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc
[18:26:51] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc
[18:26:51] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc
[18:26:51] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc
[18:26:51] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc
[18:26:51] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ====
[18:26:51] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) ==
[18:26:51] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name  ====
[18:26:51] [PASSED] Automatic
[18:26:51] [PASSED] Full
[18:26:51] [PASSED] Limited 16:235
[18:26:51] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name ===
[18:26:51] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid
[18:26:51] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ====
[18:26:51] == drm_hdmi_connector_get_output_format_name (2 subtests) ==
[18:26:51] === drm_test_drm_hdmi_connector_get_output_format_name  ====
[18:26:51] [PASSED] RGB
[18:26:51] [PASSED] YUV 4:2:0
[18:26:51] [PASSED] YUV 4:2:2
[18:26:51] [PASSED] YUV 4:4:4
[18:26:51] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name ===
[18:26:51] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid
[18:26:51] ==== [PASSED] drm_hdmi_connector_get_output_format_name ====
[18:26:51] ============= drm_damage_helper (21 subtests) ==============
[18:26:51] [PASSED] drm_test_damage_iter_no_damage
[18:26:51] [PASSED] drm_test_damage_iter_no_damage_fractional_src
[18:26:51] [PASSED] drm_test_damage_iter_no_damage_src_moved
[18:26:51] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved
[18:26:51] [PASSED] drm_test_damage_iter_no_damage_not_visible
[18:26:51] [PASSED] drm_test_damage_iter_no_damage_no_crtc
[18:26:51] [PASSED] drm_test_damage_iter_no_damage_no_fb
[18:26:51] [PASSED] drm_test_damage_iter_simple_damage
[18:26:51] [PASSED] drm_test_damage_iter_single_damage
[18:26:51] [PASSED] drm_test_damage_iter_single_damage_intersect_src
[18:26:51] [PASSED] drm_test_damage_iter_single_damage_outside_src
[18:26:51] [PASSED] drm_test_damage_iter_single_damage_fractional_src
[18:26:51] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src
[18:26:51] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src
[18:26:51] [PASSED] drm_test_damage_iter_single_damage_src_moved
[18:26:51] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved
[18:26:51] [PASSED] drm_test_damage_iter_damage
[18:26:51] [PASSED] drm_test_damage_iter_damage_one_intersect
[18:26:51] [PASSED] drm_test_damage_iter_damage_one_outside
[18:26:51] [PASSED] drm_test_damage_iter_damage_src_moved
[18:26:51] [PASSED] drm_test_damage_iter_damage_not_visible
[18:26:51] ================ [PASSED] drm_damage_helper ================
[18:26:51] ============== drm_dp_mst_helper (3 subtests) ==============
[18:26:51] ============== drm_test_dp_mst_calc_pbn_mode  ==============
[18:26:51] [PASSED] Clock 154000 BPP 30 DSC disabled
[18:26:51] [PASSED] Clock 234000 BPP 30 DSC disabled
[18:26:51] [PASSED] Clock 297000 BPP 24 DSC disabled
[18:26:51] [PASSED] Clock 332880 BPP 24 DSC enabled
[18:26:51] [PASSED] Clock 324540 BPP 24 DSC enabled
[18:26:51] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ==========
[18:26:51] ============== drm_test_dp_mst_calc_pbn_div  ===============
[18:26:51] [PASSED] Link rate 2000000 lane count 4
[18:26:51] [PASSED] Link rate 2000000 lane count 2
[18:26:51] [PASSED] Link rate 2000000 lane count 1
[18:26:51] [PASSED] Link rate 1350000 lane count 4
[18:26:51] [PASSED] Link rate 1350000 lane count 2
[18:26:51] [PASSED] Link rate 1350000 lane count 1
[18:26:51] [PASSED] Link rate 1000000 lane count 4
[18:26:51] [PASSED] Link rate 1000000 lane count 2
[18:26:51] [PASSED] Link rate 1000000 lane count 1
[18:26:51] [PASSED] Link rate 810000 lane count 4
[18:26:51] [PASSED] Link rate 810000 lane count 2
[18:26:51] [PASSED] Link rate 810000 lane count 1
[18:26:51] [PASSED] Link rate 540000 lane count 4
[18:26:51] [PASSED] Link rate 540000 lane count 2
[18:26:51] [PASSED] Link rate 540000 lane count 1
[18:26:51] [PASSED] Link rate 270000 lane count 4
[18:26:51] [PASSED] Link rate 270000 lane count 2
[18:26:51] [PASSED] Link rate 270000 lane count 1
[18:26:51] [PASSED] Link rate 162000 lane count 4
[18:26:51] [PASSED] Link rate 162000 lane count 2
[18:26:51] [PASSED] Link rate 162000 lane count 1
[18:26:51] ========== [PASSED] drm_test_dp_mst_calc_pbn_div ===========
[18:26:51] ========= drm_test_dp_mst_sideband_msg_req_decode  =========
[18:26:51] [PASSED] DP_ENUM_PATH_RESOURCES with port number
[18:26:51] [PASSED] DP_POWER_UP_PHY with port number
[18:26:51] [PASSED] DP_POWER_DOWN_PHY with port number
[18:26:51] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks
[18:26:51] [PASSED] DP_ALLOCATE_PAYLOAD with port number
[18:26:51] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI
[18:26:51] [PASSED] DP_ALLOCATE_PAYLOAD with PBN
[18:26:51] [PASSED] DP_QUERY_PAYLOAD with port number
[18:26:51] [PASSED] DP_QUERY_PAYLOAD with VCPI
[18:26:51] [PASSED] DP_REMOTE_DPCD_READ with port number
[18:26:51] [PASSED] DP_REMOTE_DPCD_READ with DPCD address
[18:26:51] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes
[18:26:51] [PASSED] DP_REMOTE_DPCD_WRITE with port number
[18:26:51] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address
[18:26:51] [PASSED] DP_REMOTE_DPCD_WRITE with data array
[18:26:51] [PASSED] DP_REMOTE_I2C_READ with port number
[18:26:51] [PASSED] DP_REMOTE_I2C_READ with I2C device ID
[18:26:51] [PASSED] DP_REMOTE_I2C_READ with transactions array
[18:26:51] [PASSED] DP_REMOTE_I2C_WRITE with port number
[18:26:51] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID
[18:26:51] [PASSED] DP_REMOTE_I2C_WRITE with data array
[18:26:51] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID
[18:26:51] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID
[18:26:51] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event
[18:26:51] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event
[18:26:51] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior
[18:26:51] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior
[18:26:51] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode =====
[18:26:51] ================ [PASSED] drm_dp_mst_helper ================
[18:26:51] ================== drm_exec (7 subtests) ===================
[18:26:51] [PASSED] sanitycheck
[18:26:51] [PASSED] test_lock
[18:26:51] [PASSED] test_lock_unlock
[18:26:51] [PASSED] test_duplicates
[18:26:51] [PASSED] test_prepare
[18:26:51] [PASSED] test_prepare_array
[18:26:51] [PASSED] test_multiple_loops
[18:26:51] ==================== [PASSED] drm_exec =====================
[18:26:51] =========== drm_format_helper_test (17 subtests) ===========
[18:26:51] ============== drm_test_fb_xrgb8888_to_gray8  ==============
[18:26:51] [PASSED] single_pixel_source_buffer
[18:26:51] [PASSED] single_pixel_clip_rectangle
[18:26:51] [PASSED] well_known_colors
[18:26:51] [PASSED] destination_pitch
[18:26:51] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ==========
[18:26:51] ============= drm_test_fb_xrgb8888_to_rgb332  ==============
[18:26:51] [PASSED] single_pixel_source_buffer
[18:26:51] [PASSED] single_pixel_clip_rectangle
[18:26:51] [PASSED] well_known_colors
[18:26:51] [PASSED] destination_pitch
[18:26:51] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ==========
[18:26:51] ============= drm_test_fb_xrgb8888_to_rgb565  ==============
[18:26:51] [PASSED] single_pixel_source_buffer
[18:26:51] [PASSED] single_pixel_clip_rectangle
[18:26:51] [PASSED] well_known_colors
[18:26:51] [PASSED] destination_pitch
[18:26:51] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ==========
[18:26:51] ============ drm_test_fb_xrgb8888_to_xrgb1555  =============
[18:26:51] [PASSED] single_pixel_source_buffer
[18:26:51] [PASSED] single_pixel_clip_rectangle
[18:26:51] [PASSED] well_known_colors
[18:26:51] [PASSED] destination_pitch
[18:26:51] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 =========
[18:26:51] ============ drm_test_fb_xrgb8888_to_argb1555  =============
[18:26:51] [PASSED] single_pixel_source_buffer
[18:26:51] [PASSED] single_pixel_clip_rectangle
[18:26:51] [PASSED] well_known_colors
[18:26:51] [PASSED] destination_pitch
[18:26:51] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 =========
[18:26:51] ============ drm_test_fb_xrgb8888_to_rgba5551  =============
[18:26:51] [PASSED] single_pixel_source_buffer
[18:26:51] [PASSED] single_pixel_clip_rectangle
[18:26:51] [PASSED] well_known_colors
[18:26:51] [PASSED] destination_pitch
[18:26:51] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 =========
[18:26:51] ============= drm_test_fb_xrgb8888_to_rgb888  ==============
[18:26:51] [PASSED] single_pixel_source_buffer
[18:26:51] [PASSED] single_pixel_clip_rectangle
[18:26:51] [PASSED] well_known_colors
[18:26:51] [PASSED] destination_pitch
[18:26:51] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ==========
[18:26:51] ============= drm_test_fb_xrgb8888_to_bgr888  ==============
[18:26:51] [PASSED] single_pixel_source_buffer
[18:26:51] [PASSED] single_pixel_clip_rectangle
[18:26:51] [PASSED] well_known_colors
[18:26:51] [PASSED] destination_pitch
[18:26:51] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ==========
[18:26:51] ============ drm_test_fb_xrgb8888_to_argb8888  =============
[18:26:51] [PASSED] single_pixel_source_buffer
[18:26:51] [PASSED] single_pixel_clip_rectangle
[18:26:51] [PASSED] well_known_colors
[18:26:51] [PASSED] destination_pitch
[18:26:51] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 =========
[18:26:51] =========== drm_test_fb_xrgb8888_to_xrgb2101010  ===========
[18:26:51] [PASSED] single_pixel_source_buffer
[18:26:51] [PASSED] single_pixel_clip_rectangle
[18:26:51] [PASSED] well_known_colors
[18:26:51] [PASSED] destination_pitch
[18:26:51] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 =======
[18:26:51] =========== drm_test_fb_xrgb8888_to_argb2101010  ===========
[18:26:51] [PASSED] single_pixel_source_buffer
[18:26:51] [PASSED] single_pixel_clip_rectangle
[18:26:51] [PASSED] well_known_colors
[18:26:51] [PASSED] destination_pitch
[18:26:51] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 =======
[18:26:51] ============== drm_test_fb_xrgb8888_to_mono  ===============
[18:26:51] [PASSED] single_pixel_source_buffer
[18:26:51] [PASSED] single_pixel_clip_rectangle
[18:26:51] [PASSED] well_known_colors
[18:26:51] [PASSED] destination_pitch
[18:26:51] ========== [PASSED] drm_test_fb_xrgb8888_to_mono ===========
[18:26:51] ==================== drm_test_fb_swab  =====================
[18:26:51] [PASSED] single_pixel_source_buffer
[18:26:51] [PASSED] single_pixel_clip_rectangle
[18:26:51] [PASSED] well_known_colors
[18:26:51] [PASSED] destination_pitch
[18:26:51] ================ [PASSED] drm_test_fb_swab =================
[18:26:51] ============ drm_test_fb_xrgb8888_to_xbgr8888  =============
[18:26:51] [PASSED] single_pixel_source_buffer
[18:26:51] [PASSED] single_pixel_clip_rectangle
[18:26:51] [PASSED] well_known_colors
[18:26:51] [PASSED] destination_pitch
[18:26:51] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 =========
[18:26:51] ============ drm_test_fb_xrgb8888_to_abgr8888  =============
[18:26:51] [PASSED] single_pixel_source_buffer
[18:26:51] [PASSED] single_pixel_clip_rectangle
[18:26:51] [PASSED] well_known_colors
[18:26:51] [PASSED] destination_pitch
[18:26:51] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 =========
[18:26:51] ================= drm_test_fb_clip_offset  =================
[18:26:51] [PASSED] pass through
[18:26:51] [PASSED] horizontal offset
[18:26:51] [PASSED] vertical offset
[18:26:51] [PASSED] horizontal and vertical offset
[18:26:51] [PASSED] horizontal offset (custom pitch)
[18:26:51] [PASSED] vertical offset (custom pitch)
[18:26:51] [PASSED] horizontal and vertical offset (custom pitch)
[18:26:51] ============= [PASSED] drm_test_fb_clip_offset =============
[18:26:51] =================== drm_test_fb_memcpy  ====================
[18:26:51] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258)
[18:26:51] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258)
[18:26:51] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559)
[18:26:51] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258)
[18:26:51] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258)
[18:26:51] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559)
[18:26:51] [PASSED] well_known_colors: XB24 little-endian (0x34324258)
[18:26:51] [PASSED] well_known_colors: XRA8 little-endian (0x38415258)
[18:26:51] [PASSED] well_known_colors: YU24 little-endian (0x34325559)
[18:26:51] [PASSED] destination_pitch: XB24 little-endian (0x34324258)
[18:26:51] [PASSED] destination_pitch: XRA8 little-endian (0x38415258)
[18:26:51] [PASSED] destination_pitch: YU24 little-endian (0x34325559)
[18:26:51] =============== [PASSED] drm_test_fb_memcpy ================
[18:26:51] ============= [PASSED] drm_format_helper_test ==============
[18:26:51] ================= drm_format (18 subtests) =================
[18:26:51] [PASSED] drm_test_format_block_width_invalid
[18:26:51] [PASSED] drm_test_format_block_width_one_plane
[18:26:51] [PASSED] drm_test_format_block_width_two_plane
[18:26:51] [PASSED] drm_test_format_block_width_three_plane
[18:26:51] [PASSED] drm_test_format_block_width_tiled
[18:26:51] [PASSED] drm_test_format_block_height_invalid
[18:26:51] [PASSED] drm_test_format_block_height_one_plane
[18:26:51] [PASSED] drm_test_format_block_height_two_plane
[18:26:51] [PASSED] drm_test_format_block_height_three_plane
[18:26:51] [PASSED] drm_test_format_block_height_tiled
[18:26:51] [PASSED] drm_test_format_min_pitch_invalid
[18:26:51] [PASSED] drm_test_format_min_pitch_one_plane_8bpp
[18:26:51] [PASSED] drm_test_format_min_pitch_one_plane_16bpp
[18:26:51] [PASSED] drm_test_format_min_pitch_one_plane_24bpp
[18:26:51] [PASSED] drm_test_format_min_pitch_one_plane_32bpp
[18:26:51] [PASSED] drm_test_format_min_pitch_two_plane
[18:26:51] [PASSED] drm_test_format_min_pitch_three_plane_8bpp
[18:26:51] [PASSED] drm_test_format_min_pitch_tiled
[18:26:51] =================== [PASSED] drm_format ====================
[18:26:51] ============== drm_framebuffer (10 subtests) ===============
[18:26:51] ========== drm_test_framebuffer_check_src_coords  ==========
[18:26:51] [PASSED] Success: source fits into fb
[18:26:51] [PASSED] Fail: overflowing fb with x-axis coordinate
[18:26:51] [PASSED] Fail: overflowing fb with y-axis coordinate
[18:26:51] [PASSED] Fail: overflowing fb with source width
[18:26:51] [PASSED] Fail: overflowing fb with source height
[18:26:51] ====== [PASSED] drm_test_framebuffer_check_src_coords ======
[18:26:51] [PASSED] drm_test_framebuffer_cleanup
[18:26:51] =============== drm_test_framebuffer_create  ===============
[18:26:51] [PASSED] ABGR8888 normal sizes
[18:26:51] [PASSED] ABGR8888 max sizes
[18:26:51] [PASSED] ABGR8888 pitch greater than min required
[18:26:51] [PASSED] ABGR8888 pitch less than min required
[18:26:51] [PASSED] ABGR8888 Invalid width
[18:26:51] [PASSED] ABGR8888 Invalid buffer handle
[18:26:51] [PASSED] No pixel format
[18:26:51] [PASSED] ABGR8888 Width 0
[18:26:51] [PASSED] ABGR8888 Height 0
[18:26:51] [PASSED] ABGR8888 Out of bound height * pitch combination
[18:26:51] [PASSED] ABGR8888 Large buffer offset
[18:26:51] [PASSED] ABGR8888 Buffer offset for inexistent plane
[18:26:51] [PASSED] ABGR8888 Invalid flag
[18:26:51] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
[18:26:51] [PASSED] ABGR8888 Valid buffer modifier
[18:26:51] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
[18:26:51] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
[18:26:51] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
[18:26:51] [PASSED] NV12 Normal sizes
[18:26:51] [PASSED] NV12 Max sizes
[18:26:51] [PASSED] NV12 Invalid pitch
[18:26:51] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
[18:26:51] [PASSED] NV12 different  modifier per-plane
[18:26:51] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
[18:26:51] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
[18:26:51] [PASSED] NV12 Modifier for inexistent plane
[18:26:51] [PASSED] NV12 Handle for inexistent plane
[18:26:51] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS
[18:26:51] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier
[18:26:51] [PASSED] YVU420 Normal sizes
[18:26:51] [PASSED] YVU420 Max sizes
[18:26:51] [PASSED] YVU420 Invalid pitch
[18:26:51] [PASSED] YVU420 Different pitches
[18:26:51] [PASSED] YVU420 Different buffer offsets/pitches
[18:26:51] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS
[18:26:51] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS
[18:26:51] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS
[18:26:51] [PASSED] YVU420 Valid modifier
[18:26:51] [PASSED] YVU420 Different modifiers per plane
[18:26:51] [PASSED] YVU420 Modifier for inexistent plane
[18:26:51] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR)
[18:26:51] [PASSED] X0L2 Normal sizes
[18:26:51] [PASSED] X0L2 Max sizes
[18:26:51] [PASSED] X0L2 Invalid pitch
[18:26:51] [PASSED] X0L2 Pitch greater than minimum required
[18:26:51] [PASSED] X0L2 Handle for inexistent plane
[18:26:51] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set
[18:26:51] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
[18:26:51] [PASSED] X0L2 Valid modifier
[18:26:51] [PASSED] X0L2 Modifier for inexistent plane
[18:26:51] =========== [PASSED] drm_test_framebuffer_create ===========
[18:26:51] [PASSED] drm_test_framebuffer_free
[18:26:51] [PASSED] drm_test_framebuffer_init
[18:26:51] [PASSED] drm_test_framebuffer_init_bad_format
[18:26:51] [PASSED] drm_test_framebuffer_init_dev_mismatch
[18:26:51] [PASSED] drm_test_framebuffer_lookup
[18:26:51] [PASSED] drm_test_framebuffer_lookup_inexistent
[18:26:51] [PASSED] drm_test_framebuffer_modifiers_not_supported
[18:26:51] ================= [PASSED] drm_framebuffer =================
[18:26:51] ================ drm_gem_shmem (8 subtests) ================
[18:26:51] [PASSED] drm_gem_shmem_test_obj_create
[18:26:51] [PASSED] drm_gem_shmem_test_obj_create_private
[18:26:51] [PASSED] drm_gem_shmem_test_pin_pages
[18:26:51] [PASSED] drm_gem_shmem_test_vmap
[18:26:51] [PASSED] drm_gem_shmem_test_get_sg_table
[18:26:51] [PASSED] drm_gem_shmem_test_get_pages_sgt
[18:26:51] [PASSED] drm_gem_shmem_test_madvise
[18:26:51] [PASSED] drm_gem_shmem_test_purge
[18:26:51] ================== [PASSED] drm_gem_shmem ==================
[18:26:51] === drm_atomic_helper_connector_hdmi_check (29 subtests) ===
[18:26:51] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode
[18:26:51] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1
[18:26:51] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode
[18:26:51] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1
[18:26:51] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode
[18:26:51] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1
[18:26:51] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420  =======
[18:26:51] [PASSED] Automatic
[18:26:51] [PASSED] Full
[18:26:51] [PASSED] Limited 16:235
[18:26:51] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 ===
[18:26:51] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed
[18:26:51] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed
[18:26:51] [PASSED] drm_test_check_disable_connector
[18:26:51] [PASSED] drm_test_check_hdmi_funcs_reject_rate
[18:26:51] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb
[18:26:51] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420
[18:26:51] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422
[18:26:51] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420
[18:26:51] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420
[18:26:51] [PASSED] drm_test_check_output_bpc_crtc_mode_changed
[18:26:51] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed
[18:26:51] [PASSED] drm_test_check_output_bpc_dvi
[18:26:51] [PASSED] drm_test_check_output_bpc_format_vic_1
[18:26:51] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only
[18:26:51] [PASSED] drm_test_check_output_bpc_format_display_rgb_only
[18:26:51] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only
[18:26:51] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only
[18:26:51] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc
[18:26:51] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc
[18:26:51] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc
[18:26:51] ============ drm_test_check_hdmi_color_format  =============
[18:26:51] [PASSED] AUTO -> RGB
[18:26:51] [PASSED] YCBCR422 -> YUV422
[18:26:51] [PASSED] YCBCR420 -> YUV420
[18:26:51] [PASSED] YCBCR444 -> YUV444
[18:26:51] [PASSED] RGB -> RGB
[18:26:51] ======== [PASSED] drm_test_check_hdmi_color_format =========
[18:26:51] ======== drm_test_check_hdmi_color_format_420_only  ========
[18:26:51] [PASSED] RGB should fail
[18:26:51] [PASSED] YUV444 should fail
[18:26:51] [PASSED] YUV422 should fail
[18:26:51] [PASSED] YUV420 should work
[18:26:51] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ====
[18:26:51] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ======
[18:26:51] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ====
[18:26:51] [PASSED] drm_test_check_broadcast_rgb_value
[18:26:51] [PASSED] drm_test_check_bpc_8_value
[18:26:51] [PASSED] drm_test_check_bpc_10_value
[18:26:51] [PASSED] drm_test_check_bpc_12_value
[18:26:51] [PASSED] drm_test_check_format_value
[18:26:51] [PASSED] drm_test_check_tmds_char_value
[18:26:51] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ======
[18:26:51] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) =
[18:26:51] [PASSED] drm_test_check_mode_valid
[18:26:51] [PASSED] drm_test_check_mode_valid_reject
[18:26:51] [PASSED] drm_test_check_mode_valid_reject_rate
[18:26:51] [PASSED] drm_test_check_mode_valid_reject_max_clock
[18:26:51] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock
[18:26:51] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector
[18:26:51] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb
[18:26:51] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid ===
[18:26:51] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) =
[18:26:51] [PASSED] drm_test_check_infoframes
[18:26:51] [PASSED] drm_test_check_reject_avi_infoframe
[18:26:51] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8
[18:26:51] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10
[18:26:51] [PASSED] drm_test_check_reject_audio_infoframe
[18:26:51] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes ===
[18:26:51] ================= drm_managed (2 subtests) =================
[18:26:51] [PASSED] drm_test_managed_release_action
[18:26:51] [PASSED] drm_test_managed_run_action
[18:26:51] =================== [PASSED] drm_managed ===================
[18:26:51] =================== drm_mm (6 subtests) ====================
[18:26:51] [PASSED] drm_test_mm_init
[18:26:51] [PASSED] drm_test_mm_debug
[18:26:51] [PASSED] drm_test_mm_align32
[18:26:51] [PASSED] drm_test_mm_align64
[18:26:51] [PASSED] drm_test_mm_lowest
[18:26:51] [PASSED] drm_test_mm_highest
[18:26:51] ===================== [PASSED] drm_mm ======================
[18:26:51] ============= drm_modes_analog_tv (5 subtests) =============
[18:26:51] [PASSED] drm_test_modes_analog_tv_mono_576i
[18:26:51] [PASSED] drm_test_modes_analog_tv_ntsc_480i
[18:26:51] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined
[18:26:51] [PASSED] drm_test_modes_analog_tv_pal_576i
[18:26:51] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined
[18:26:51] =============== [PASSED] drm_modes_analog_tv ===============
[18:26:51] ============== drm_panic_helper (3 subtests) ===============
[18:26:51] ============= drm_test_panic_screen_user_map  ==============
[18:26:51] [PASSED] Panic screen user, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen user, mode: 494 x 494 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen user, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen user, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[18:26:51] [PASSED] Panic screen user, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[18:26:51] [PASSED] Panic screen kmsg, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen kmsg, mode: 494 x 494 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen kmsg, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[18:26:51] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[18:26:51] ========= [PASSED] drm_test_panic_screen_user_map ==========
[18:26:51] ============= drm_test_panic_screen_user_page  =============
[18:26:51] [PASSED] Panic screen user, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen user, mode: 494 x 494 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen user, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen user, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[18:26:51] [PASSED] Panic screen user, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[18:26:51] [PASSED] Panic screen kmsg, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen kmsg, mode: 494 x 494 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen kmsg, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[18:26:51] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[18:26:51] ========= [PASSED] drm_test_panic_screen_user_page =========
[18:26:51] ========== drm_test_panic_screen_user_set_pixel  ===========
[18:26:51] [PASSED] Panic screen user, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen user, mode: 494 x 494 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen user, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen user, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[18:26:51] [PASSED] Panic screen user, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[18:26:51] [PASSED] Panic screen kmsg, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen kmsg, mode: 494 x 494 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen kmsg, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[18:26:51] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[18:26:51] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[18:26:51] ====== [PASSED] drm_test_panic_screen_user_set_pixel =======
[18:26:51] ================ [PASSED] drm_panic_helper =================
[18:26:51] ============== drm_plane_helper (2 subtests) ===============
[18:26:51] =============== drm_test_check_plane_state  ================
[18:26:51] [PASSED] clipping_simple
[18:26:51] [PASSED] clipping_rotate_reflect
[18:26:51] [PASSED] positioning_simple
[18:26:51] [PASSED] upscaling
[18:26:51] [PASSED] downscaling
[18:26:51] [PASSED] rounding1
[18:26:51] [PASSED] rounding2
[18:26:51] [PASSED] rounding3
[18:26:51] [PASSED] rounding4
[18:26:51] =========== [PASSED] drm_test_check_plane_state ============
[18:26:51] =========== drm_test_check_invalid_plane_state  ============
[18:26:51] [PASSED] positioning_invalid
[18:26:51] [PASSED] upscaling_invalid
[18:26:51] [PASSED] downscaling_invalid
[18:26:51] ======= [PASSED] drm_test_check_invalid_plane_state ========
[18:26:51] ================ [PASSED] drm_plane_helper =================
[18:26:51] ====== drm_connector_helper_tv_get_modes (1 subtest) =======
[18:26:51] ====== drm_test_connector_helper_tv_get_modes_check  =======
[18:26:51] [PASSED] None
[18:26:51] [PASSED] PAL
[18:26:51] [PASSED] NTSC
[18:26:51] [PASSED] Both, NTSC Default
[18:26:51] [PASSED] Both, PAL Default
[18:26:51] [PASSED] Both, NTSC Default, with PAL on command-line
[18:26:51] [PASSED] Both, PAL Default, with NTSC on command-line
[18:26:51] == [PASSED] drm_test_connector_helper_tv_get_modes_check ===
[18:26:51] ======== [PASSED] drm_connector_helper_tv_get_modes ========
[18:26:51] ================== drm_rect (9 subtests) ===================
[18:26:51] [PASSED] drm_test_rect_clip_scaled_div_by_zero
[18:26:51] [PASSED] drm_test_rect_clip_scaled_not_clipped
[18:26:51] [PASSED] drm_test_rect_clip_scaled_clipped
[18:26:51] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned
[18:26:51] ================= drm_test_rect_intersect  =================
[18:26:51] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0
[18:26:51] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1
[18:26:51] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0
[18:26:51] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1
[18:26:51] [PASSED] right x left: 2x1+0+0 x 3x1+1+0
[18:26:51] [PASSED] left x right: 3x1+1+0 x 2x1+0+0
[18:26:51] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1
[18:26:51] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0
[18:26:51] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1
[18:26:51] [PASSED] touching side: 1x1+0+0 x 1x1+1+0
[18:26:51] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0
[18:26:51] [PASSED] inside another: 2x2+0+0 x 1x1+1+1
[18:26:51] [PASSED] far away: 1x1+0+0 x 1x1+3+6
[18:26:51] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10
[18:26:51] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10
[18:26:51] ============= [PASSED] drm_test_rect_intersect =============
[18:26:51] ================ drm_test_rect_calc_hscale  ================
[18:26:51] [PASSED] normal use
[18:26:51] [PASSED] out of max range
[18:26:51] [PASSED] out of min range
[18:26:51] [PASSED] zero dst
[18:26:51] [PASSED] negative src
[18:26:51] [PASSED] negative dst
[18:26:51] ============ [PASSED] drm_test_rect_calc_hscale ============
[18:26:51] ================ drm_test_rect_calc_vscale  ================
[18:26:51] [PASSED] normal use
[18:26:51] [PASSED] out of max range
[18:26:51] [PASSED] out of min range
[18:26:51] [PASSED] zero dst
[18:26:51] [PASSED] negative src
[18:26:51] [PASSED] negative dst
[18:26:51] ============ [PASSED] drm_test_rect_calc_vscale ============
[18:26:51] ================== drm_test_rect_rotate  ===================
[18:26:51] [PASSED] reflect-x
[18:26:51] [PASSED] reflect-y
[18:26:51] [PASSED] rotate-0
[18:26:51] [PASSED] rotate-90
[18:26:51] [PASSED] rotate-180
[18:26:51] [PASSED] rotate-270
[18:26:51] ============== [PASSED] drm_test_rect_rotate ===============
[18:26:51] ================ drm_test_rect_rotate_inv  =================
[18:26:51] [PASSED] reflect-x
[18:26:51] [PASSED] reflect-y
[18:26:51] [PASSED] rotate-0
[18:26:51] [PASSED] rotate-90
[18:26:51] [PASSED] rotate-180
[18:26:51] [PASSED] rotate-270
[18:26:51] ============ [PASSED] drm_test_rect_rotate_inv =============
[18:26:51] ==================== [PASSED] drm_rect =====================
[18:26:51] ============ drm_sysfb_modeset_test (1 subtest) ============
[18:26:51] ============ drm_test_sysfb_build_fourcc_list  =============
[18:26:51] [PASSED] no native formats
[18:26:51] [PASSED] XRGB8888 as native format
[18:26:51] [PASSED] remove duplicates
[18:26:51] [PASSED] convert alpha formats
[18:26:51] [PASSED] random formats
[18:26:51] ======== [PASSED] drm_test_sysfb_build_fourcc_list =========
[18:26:51] ============= [PASSED] drm_sysfb_modeset_test ==============
[18:26:51] ================== drm_fixp (2 subtests) ===================
[18:26:51] [PASSED] drm_test_int2fixp
[18:26:51] [PASSED] drm_test_sm2fixp
[18:26:51] ==================== [PASSED] drm_fixp =====================
[18:26:51] ============================================================
[18:26:51] Testing complete. Ran 667 tests: passed: 667
[18:26:51] Elapsed time: 28.572s total, 2.573s configuring, 25.676s building, 0.300s 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
[18:26:51] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[18:26:54] 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
[18:27:04] Starting KUnit Kernel (1/1)...
[18:27:04] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[18:27:04] ================= ttm_device (5 subtests) ==================
[18:27:04] [PASSED] ttm_device_init_basic
[18:27:04] [PASSED] ttm_device_init_multiple
[18:27:04] [PASSED] ttm_device_fini_basic
[18:27:04] [PASSED] ttm_device_init_no_vma_man
[18:27:04] ================== ttm_device_init_pools  ==================
[18:27:04] [PASSED] No DMA allocations, no DMA32 required
[18:27:04] [PASSED] DMA allocations, DMA32 required
[18:27:04] [PASSED] No DMA allocations, DMA32 required
[18:27:04] [PASSED] DMA allocations, no DMA32 required
[18:27:04] ============== [PASSED] ttm_device_init_pools ==============
[18:27:04] =================== [PASSED] ttm_device ====================
[18:27:04] ================== ttm_pool (8 subtests) ===================
[18:27:04] ================== ttm_pool_alloc_basic  ===================
[18:27:04] [PASSED] One page
[18:27:04] [PASSED] More than one page
[18:27:04] [PASSED] Above the allocation limit
[18:27:04] [PASSED] One page, with coherent DMA mappings enabled
[18:27:04] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[18:27:04] ============== [PASSED] ttm_pool_alloc_basic ===============
[18:27:04] ============== ttm_pool_alloc_basic_dma_addr  ==============
[18:27:04] [PASSED] One page
[18:27:04] [PASSED] More than one page
[18:27:04] [PASSED] Above the allocation limit
[18:27:04] [PASSED] One page, with coherent DMA mappings enabled
[18:27:04] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[18:27:04] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ==========
[18:27:04] [PASSED] ttm_pool_alloc_order_caching_match
[18:27:04] [PASSED] ttm_pool_alloc_caching_mismatch
[18:27:04] [PASSED] ttm_pool_alloc_order_mismatch
[18:27:04] [PASSED] ttm_pool_free_dma_alloc
[18:27:04] [PASSED] ttm_pool_free_no_dma_alloc
[18:27:04] [PASSED] ttm_pool_fini_basic
[18:27:04] ==================== [PASSED] ttm_pool =====================
[18:27:04] ================ ttm_resource (8 subtests) =================
[18:27:04] ================= ttm_resource_init_basic  =================
[18:27:04] [PASSED] Init resource in TTM_PL_SYSTEM
[18:27:04] [PASSED] Init resource in TTM_PL_VRAM
[18:27:04] [PASSED] Init resource in a private placement
[18:27:04] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags
[18:27:04] ============= [PASSED] ttm_resource_init_basic =============
[18:27:04] [PASSED] ttm_resource_init_pinned
[18:27:04] [PASSED] ttm_resource_fini_basic
[18:27:04] [PASSED] ttm_resource_manager_init_basic
[18:27:04] [PASSED] ttm_resource_manager_usage_basic
[18:27:04] [PASSED] ttm_resource_manager_set_used_basic
[18:27:04] [PASSED] ttm_sys_man_alloc_basic
[18:27:04] [PASSED] ttm_sys_man_free_basic
[18:27:04] ================== [PASSED] ttm_resource ===================
[18:27:04] =================== ttm_tt (15 subtests) ===================
[18:27:04] ==================== ttm_tt_init_basic  ====================
[18:27:04] [PASSED] Page-aligned size
[18:27:04] [PASSED] Extra pages requested
[18:27:04] ================ [PASSED] ttm_tt_init_basic ================
[18:27:04] [PASSED] ttm_tt_init_misaligned
[18:27:04] [PASSED] ttm_tt_fini_basic
[18:27:04] [PASSED] ttm_tt_fini_sg
[18:27:04] [PASSED] ttm_tt_fini_shmem
[18:27:04] [PASSED] ttm_tt_create_basic
[18:27:04] [PASSED] ttm_tt_create_invalid_bo_type
[18:27:04] [PASSED] ttm_tt_create_ttm_exists
[18:27:04] [PASSED] ttm_tt_create_failed
[18:27:04] [PASSED] ttm_tt_destroy_basic
[18:27:04] [PASSED] ttm_tt_populate_null_ttm
[18:27:04] [PASSED] ttm_tt_populate_populated_ttm
[18:27:04] [PASSED] ttm_tt_unpopulate_basic
[18:27:04] [PASSED] ttm_tt_unpopulate_empty_ttm
[18:27:04] [PASSED] ttm_tt_swapin_basic
[18:27:04] ===================== [PASSED] ttm_tt ======================
[18:27:04] =================== ttm_bo (14 subtests) ===================
[18:27:04] =========== ttm_bo_reserve_optimistic_no_ticket  ===========
[18:27:04] [PASSED] Cannot be interrupted and sleeps
[18:27:04] [PASSED] Cannot be interrupted, locks straight away
[18:27:04] [PASSED] Can be interrupted, sleeps
[18:27:04] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket =======
[18:27:04] [PASSED] ttm_bo_reserve_locked_no_sleep
[18:27:04] [PASSED] ttm_bo_reserve_no_wait_ticket
[18:27:04] [PASSED] ttm_bo_reserve_double_resv
[18:27:04] [PASSED] ttm_bo_reserve_interrupted
[18:27:04] [PASSED] ttm_bo_reserve_deadlock
[18:27:04] [PASSED] ttm_bo_unreserve_basic
[18:27:04] [PASSED] ttm_bo_unreserve_pinned
[18:27:04] [PASSED] ttm_bo_unreserve_bulk
[18:27:04] [PASSED] ttm_bo_fini_basic
[18:27:04] [PASSED] ttm_bo_fini_shared_resv
[18:27:04] [PASSED] ttm_bo_pin_basic
[18:27:04] [PASSED] ttm_bo_pin_unpin_resource
[18:27:04] [PASSED] ttm_bo_multiple_pin_one_unpin
[18:27:04] ===================== [PASSED] ttm_bo ======================
[18:27:04] ============== ttm_bo_validate (22 subtests) ===============
[18:27:04] ============== ttm_bo_init_reserved_sys_man  ===============
[18:27:04] [PASSED] Buffer object for userspace
[18:27:04] [PASSED] Kernel buffer object
[18:27:04] [PASSED] Shared buffer object
[18:27:04] ========== [PASSED] ttm_bo_init_reserved_sys_man ===========
[18:27:04] ============== ttm_bo_init_reserved_mock_man  ==============
[18:27:04] [PASSED] Buffer object for userspace
[18:27:04] [PASSED] Kernel buffer object
[18:27:04] [PASSED] Shared buffer object
[18:27:04] ========== [PASSED] ttm_bo_init_reserved_mock_man ==========
[18:27:04] [PASSED] ttm_bo_init_reserved_resv
[18:27:04] ================== ttm_bo_validate_basic  ==================
[18:27:04] [PASSED] Buffer object for userspace
[18:27:04] [PASSED] Kernel buffer object
[18:27:04] [PASSED] Shared buffer object
[18:27:04] ============== [PASSED] ttm_bo_validate_basic ==============
[18:27:04] [PASSED] ttm_bo_validate_invalid_placement
[18:27:04] ============= ttm_bo_validate_same_placement  ==============
[18:27:04] [PASSED] System manager
[18:27:04] [PASSED] VRAM manager
[18:27:04] ========= [PASSED] ttm_bo_validate_same_placement ==========
[18:27:04] [PASSED] ttm_bo_validate_failed_alloc
[18:27:04] [PASSED] ttm_bo_validate_pinned
[18:27:04] [PASSED] ttm_bo_validate_busy_placement
[18:27:04] ================ ttm_bo_validate_multihop  =================
[18:27:04] [PASSED] Buffer object for userspace
[18:27:04] [PASSED] Kernel buffer object
[18:27:04] [PASSED] Shared buffer object
[18:27:04] ============ [PASSED] ttm_bo_validate_multihop =============
[18:27:04] ========== ttm_bo_validate_no_placement_signaled  ==========
[18:27:04] [PASSED] Buffer object in system domain, no page vector
[18:27:04] [PASSED] Buffer object in system domain with an existing page vector
[18:27:04] ====== [PASSED] ttm_bo_validate_no_placement_signaled ======
[18:27:04] ======== ttm_bo_validate_no_placement_not_signaled  ========
[18:27:04] [PASSED] Buffer object for userspace
[18:27:04] [PASSED] Kernel buffer object
[18:27:04] [PASSED] Shared buffer object
[18:27:04] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ====
[18:27:04] [PASSED] ttm_bo_validate_move_fence_signaled
[18:27:04] ========= ttm_bo_validate_move_fence_not_signaled  =========
[18:27:04] [PASSED] Waits for GPU
[18:27:04] [PASSED] Tries to lock straight away
[18:27:04] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled =====
[18:27:04] [PASSED] ttm_bo_validate_swapout
[18:27:04] [PASSED] ttm_bo_validate_happy_evict
[18:27:04] [PASSED] ttm_bo_validate_all_pinned_evict
[18:27:04] [PASSED] ttm_bo_validate_allowed_only_evict
[18:27:04] [PASSED] ttm_bo_validate_deleted_evict
[18:27:04] [PASSED] ttm_bo_validate_busy_domain_evict
[18:27:04] [PASSED] ttm_bo_validate_evict_gutting
[18:27:04] [PASSED] ttm_bo_validate_recursive_evict
[18:27:04] ================= [PASSED] ttm_bo_validate =================
[18:27:04] ============================================================
[18:27:04] Testing complete. Ran 102 tests: passed: 102
[18:27:04] Elapsed time: 13.202s total, 2.574s configuring, 10.414s building, 0.182s running

+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/dma-buf/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/dma-buf/.kunitconfig
[18:27:04] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[18:27: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
[18:27:16] Starting KUnit Kernel (1/1)...
[18:27:16] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[18:27:16] =============== dma-buf-fence (12 subtests) ================
[18:27:16] [PASSED] test_sanitycheck
[18:27:16] [PASSED] test_signaling
[18:27:16] [PASSED] test_add_callback
[18:27:16] [PASSED] test_late_add_callback
[18:27:16] [PASSED] test_rm_callback
[18:27:16] [PASSED] test_late_rm_callback
[18:27:16] [PASSED] test_status
[18:27:16] [PASSED] test_error
[18:27:16] [PASSED] test_wait
[18:27:16] [PASSED] test_wait_timeout
[18:27:16] [PASSED] test_stub
[18:27:16] [SKIPPED] test_race_signal_callback (requires at least 2 CPUs)
[18:27:16] ================== [PASSED] dma-buf-fence ==================
[18:27:16] ============ dma-buf-fence-chain (11 subtests) =============
[18:27:16] [PASSED] test_sanitycheck
[18:27:16] [PASSED] test_find_seqno
[18:27:16] [PASSED] test_find_signaled
[18:27:16] [PASSED] test_find_out_of_order
[18:27:21] [PASSED] test_find_gap
[18:27:21] [PASSED] test_find_race
[18:27:21] [PASSED] test_signal_forward
[18:27:21] [PASSED] test_signal_backward
[18:27:21] [PASSED] test_wait_forward
[18:27:21] [PASSED] test_wait_backward
[18:27:21] [PASSED] test_wait_random
[18:27:21] =============== [PASSED] dma-buf-fence-chain ===============
[18:27:21] ============ dma-buf-fence-unwrap (11 subtests) ============
[18:27:21] [PASSED] test_sanitycheck
[18:27:21] [PASSED] test_unwrap_array
[18:27:21] [PASSED] test_unwrap_chain
[18:27:21] [PASSED] test_unwrap_chain_array
[18:27:21] [PASSED] test_unwrap_merge
[18:27:21] [PASSED] test_unwrap_merge_duplicate
[18:27:21] [PASSED] test_unwrap_merge_seqno
[18:27:21] [PASSED] test_unwrap_merge_order
[18:27:21] [PASSED] test_unwrap_merge_complex
[18:27:21] [PASSED] test_unwrap_merge_complex_seqno
[18:27:21] [PASSED] test_dedup_empty
[18:27:21] ============== [PASSED] dma-buf-fence-unwrap ===============
[18:27:21] ================ dma-buf-resv (5 subtests) =================
[18:27:21] [PASSED] test_sanitycheck
[18:27:21] ===================== test_signaling  ======================
[18:27:21] [PASSED] kernel
[18:27:21] [PASSED] write
[18:27:21] [PASSED] read
[18:27:21] [PASSED] bookkeep
[18:27:21] ================= [PASSED] test_signaling ==================
[18:27:21] ====================== test_for_each  ======================
[18:27:21] [PASSED] kernel
[18:27:21] [PASSED] write
[18:27:21] [PASSED] read
[18:27:21] [PASSED] bookkeep
[18:27:21] ================== [PASSED] test_for_each ==================
[18:27:21] ================= test_for_each_unlocked  ==================
[18:27:21] [PASSED] kernel
[18:27:21] [PASSED] write
[18:27:21] [PASSED] read
[18:27:21] [PASSED] bookkeep
[18:27:21] ============= [PASSED] test_for_each_unlocked ==============
[18:27:21] ===================== test_get_fences  =====================
[18:27:21] [PASSED] kernel
[18:27:21] [PASSED] write
[18:27:21] [PASSED] read
[18:27:21] [PASSED] bookkeep
[18:27:21] ================= [PASSED] test_get_fences =================
[18:27:21] ================== [PASSED] dma-buf-resv ===================
[18:27:21] ============================================================
[18:27:21] Testing complete. Ran 51 tests: passed: 50, skipped: 1
[18:27:21] Elapsed time: 16.929s total, 2.613s configuring, 8.944s building, 5.334s running

+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel



^ permalink raw reply	[flat|nested] 14+ messages in thread

* ✓ Xe.CI.BAT: success for Apply Wa_14028597154 to SR-IOV VF (rev2)
  2026-12-03 18:14 [PATCH v2 0/5] Apply Wa_14028597154 to SR-IOV VF Piórkowski, Piotr
                   ` (5 preceding siblings ...)
  2026-12-03 18:28 ` ✓ CI.KUnit: success for Apply Wa_14028597154 to SR-IOV VF (rev2) Patchwork
@ 2026-12-03 19:04 ` Patchwork
  6 siblings, 0 replies; 14+ messages in thread
From: Patchwork @ 2026-12-03 19:04 UTC (permalink / raw)
  To: Piórkowski, Piotr; +Cc: intel-xe

[-- Attachment #1: Type: text/plain, Size: 910 bytes --]

== Series Details ==

Series: Apply Wa_14028597154 to SR-IOV VF (rev2)
URL   : https://patchwork.freedesktop.org/series/180447/
State : success

== Summary ==

CI Bug Log - changes from xe-6291-f360b5218783450630793ca7a462fdcff2dfd2e5_BAT -> xe-pw-180447v2_BAT
====================================================

Summary
-------

  **SUCCESS**

  No regressions found.

  

Participating hosts (13 -> 13)
------------------------------

  No changes in participating hosts


Changes
-------

  No changes found


Build changes
-------------

  * IGT: IGT_9223 -> IGT_9224
  * Linux: xe-6291-f360b5218783450630793ca7a462fdcff2dfd2e5 -> xe-pw-180447v2

  IGT_9223: 9223
  IGT_9224: 9224
  xe-6291-f360b5218783450630793ca7a462fdcff2dfd2e5: f360b5218783450630793ca7a462fdcff2dfd2e5
  xe-pw-180447v2: 180447v2

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-180447v2/index.html

[-- Attachment #2: Type: text/html, Size: 1472 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v2 2/5] drm/xe/ggtt: Align shareable GGTT nodes by GGTT address
  2026-12-03 18:14 ` [PATCH v2 2/5] drm/xe/ggtt: Align shareable GGTT nodes by GGTT address Piórkowski, Piotr
@ 2026-12-03 20:06   ` Rodrigo Vivi
  0 siblings, 0 replies; 14+ messages in thread
From: Rodrigo Vivi @ 2026-12-03 20:06 UTC (permalink / raw)
  To: Piórkowski, Piotr
  Cc: intel-xe, Matt Atwood, Satyanarayana K V P,
	Tangudu Tilak Tirumalesh, Varun Gupta

On Thu, Dec 03, 2026 at 07:14:05PM +0100, Piórkowski, Piotr wrote:
> From: Piotr Piórkowski <piotr.piorkowski@intel.com>
> 
> drm_mm offsets of the GGTT start at ggtt->start (the WOPCM size), so the
> alignment passed to drm_mm is applied to the offset from ggtt->start, not
> to the GGTT address. The GGTT address is only aligned when ggtt->start
> is, which is not guaranteed as the WOPCM size differs between platforms.
> 
> The GGTT range provisioned to a VF is programmed in the hardware by its
> GGTT address, so any alignment requirement for it applies to the GGTT
> address and not to the drm_mm offset.
> 
> Make xe_ggtt_insert_node_shareable() align the GGTT address of the node.
> If ggtt->start is not aligned to the requested alignment, look for the
> highest suitable address in the holes of the shareable range and reserve
> the node there.
> 
> Also align by GGTT address in xe_ggtt_largest_hole() and
> xe_ggtt_print_holes(), so the VF provisioning estimates match what can
> actually be allocated. While at it, drop the max() with ggtt->start
> there, a leftover from when drm_mm used GGTT addresses, which made both
> skip the first ggtt->start bytes of the lowest hole.
> 
> Cc: Matt Atwood <matthew.s.atwood@intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> Cc: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
> Cc: Varun Gupta <varun.gupta@intel.com>
> Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> ---
>  drivers/gpu/drm/xe/xe_ggtt.c | 96 ++++++++++++++++++++++++++++++------
>  1 file changed, 82 insertions(+), 14 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
> index c24b7814c3ab..f3836a04eefd 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.c
> +++ b/drivers/gpu/drm/xe/xe_ggtt.c
> @@ -939,13 +939,66 @@ struct xe_ggtt_node *xe_ggtt_insert_node(struct xe_ggtt *ggtt, u32 size, u32 ali
>  }
>  
>  #ifdef CONFIG_PCI_IOV
> +/*
> + * drm_mm aligns offsets from ggtt->start, but the GGTT address of a VF range
> + * is what has to be aligned. If ggtt->start is not aligned to @align, look for
> + * the highest offset with an aligned GGTT address in the holes of the
> + * shareable range directly.
> + */
> +static int ggtt_insert_node_shareable_locked(struct xe_ggtt_node *node, u64 size,
> +					     u64 align)
> +{
> +	struct xe_ggtt *ggtt = node->ggtt;
> +	u64 range_start = ggtt_shareable_offset(ggtt);
> +	u64 range_end = ggtt->full_size;
> +	u64 hole_start, hole_end, best = U64_MAX;
> +	struct drm_mm_node *entry;
> +
> +	lockdep_assert_held(&ggtt->lock);
> +
> +	if (align <= 1 || IS_ALIGNED(ggtt->start, align))
> +		return ggtt_insert_node_in_range_locked(node, size, align, range_start,
> +							ggtt->shareable_size,
> +							DRM_MM_INSERT_HIGH);
> +
> +	xe_tile_assert(ggtt->tile, is_power_of_2(align));
> +
> +	if (!size)
> +		return -EINVAL;
> +
> +	drm_mm_for_each_hole(entry, &ggtt->mm, hole_start, hole_end) {
> +		u64 lo = max(hole_start, range_start);
> +		u64 hi = min(hole_end, range_end);
> +		u64 addr;
> +
> +		if (hi <= lo || hi - lo < size)
> +			continue;
> +
> +		addr = ALIGN_DOWN(ggtt->start + hi - size, align);
> +		if (addr < ggtt->start + lo)
> +			continue;
> +
> +		if (best == U64_MAX || addr - ggtt->start > best)
> +			best = addr - ggtt->start;
> +	}
> +
> +	if (best == U64_MAX)
> +		return -ENOSPC;
> +
> +	node->base.start = best;
> +	node->base.size = size;
> +
> +	return drm_mm_reserve_node(&ggtt->mm, &node->base);
> +}
> +
>  /**
>   * xe_ggtt_insert_node_shareable() - Insert a new node in the shareable GGTT range
>   * @ggtt: the &xe_ggtt into which the node should be inserted.
>   * @size: size of the node
> - * @align: alignment constrain of the node
> + * @align: alignment constraint of the node
>   *
> - * Allocations always start from the top (DRM_MM_INSERT_HIGH).
> + * Allocations always start from the top (DRM_MM_INSERT_HIGH). @align applies
> + * to the GGTT address of the node, not to its offset from the GGTT start.
>   *
>   * Return: &xe_ggtt_node on success or an ERR_PTR on failure.
>   */
> @@ -963,10 +1016,7 @@ struct xe_ggtt_node *xe_ggtt_insert_node_shareable(struct xe_ggtt *ggtt, u32 siz
>  
>  	guard(mutex)(&ggtt->lock);
>  
> -	ret = ggtt_insert_node_in_range_locked(node, size, align,
> -					       ggtt_shareable_offset(ggtt),
> -					       ggtt->shareable_size,
> -					       DRM_MM_INSERT_HIGH);
> +	ret = ggtt_insert_node_shareable_locked(node, size, align);
>  	if (ret) {
>  		ggtt_node_fini(node);
>  		return ERR_PTR(ret);
> @@ -1224,6 +1274,30 @@ void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
>  			    bo->flags & XE_BO_FLAG_GGTT_INVALIDATE);
>  }
>  
> +/*
> + * Shrink a hole, given as drm_mm offsets, to aligned boundaries. Align the
> + * GGTT addresses rather than the drm_mm offsets.
> + */
> +static bool ggtt_align_hole(struct xe_ggtt *ggtt, u64 alignment,
> +			    u64 *hole_start, u64 *hole_end)
> +{
> +	u64 start = ggtt->start + *hole_start;
> +	u64 end = ggtt->start + *hole_end;
> +
> +	if (alignment > 1) {
> +		xe_tile_assert(ggtt->tile, is_power_of_2(alignment));
> +		start = ALIGN(start, alignment);
> +		end = ALIGN_DOWN(end, alignment);
> +	}
> +
> +	if (start >= end)
> +		return false;
> +
> +	*hole_start = start - ggtt->start;
> +	*hole_end = end - ggtt->start;
> +	return true;
> +}
> +
>  /**
>   * xe_ggtt_largest_hole - Largest GGTT hole
>   * @ggtt: the &xe_ggtt that will be inspected
> @@ -1241,10 +1315,7 @@ u64 xe_ggtt_largest_hole(struct xe_ggtt *ggtt, u64 alignment, u64 *spare)
>  
>  	mutex_lock(&ggtt->lock);
>  	drm_mm_for_each_hole(entry, mm, hole_start, hole_end) {
> -		hole_start = max(hole_start, ggtt->start);
> -		hole_start = ALIGN(hole_start, alignment);
> -		hole_end = ALIGN_DOWN(hole_end, alignment);
> -		if (hole_start >= hole_end)
> +		if (!ggtt_align_hole(ggtt, alignment, &hole_start, &hole_end))
>  			continue;
>  		hole_size = hole_end - hole_start;
>  		if (spare)
> @@ -1416,10 +1487,7 @@ u64 xe_ggtt_print_holes(struct xe_ggtt *ggtt, u64 alignment, struct drm_printer
>  
>  	mutex_lock(&ggtt->lock);
>  	drm_mm_for_each_hole(entry, mm, hole_start, hole_end) {
> -		hole_start = max(hole_start, ggtt->start);
> -		hole_start = ALIGN(hole_start, alignment);
> -		hole_end = ALIGN_DOWN(hole_end, alignment);
> -		if (hole_start >= hole_end)
> +		if (!ggtt_align_hole(ggtt, alignment, &hole_start, &hole_end))
>  			continue;
>  		hole_size = hole_end - hole_start;
>  		total += hole_size;
> -- 
> 2.34.1
> 

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v2 1/5] drm/xe: Don't allow disabling multi-queue on PF
  2026-12-03 18:14 ` [PATCH v2 1/5] drm/xe: Don't allow disabling multi-queue on PF Piórkowski, Piotr
@ 2026-12-03 20:06   ` Piotr Piórkowski
  2026-12-03 20:30     ` Rodrigo Vivi
  0 siblings, 1 reply; 14+ messages in thread
From: Piotr Piórkowski @ 2026-12-03 20:06 UTC (permalink / raw)
  To: intel-xe
  Cc: Matt Atwood, Rodrigo Vivi, Satyanarayana K V P,
	Tangudu Tilak Tirumalesh, Varun Gupta

Piórkowski, Piotr <piotr.piorkowski@intel.com> wrote on czw [2026-gru-03 19:14:04 +0100]:
> From: Piotr Piórkowski <piotr.piorkowski@intel.com>
> 
> Multi-queue can be disabled via configfs. On an SR-IOV PF this also
> disables it in the GuC, which is shared with the VFs. Each VF has its
> own configfs setting and may still expect multi-queue to be available.
> The PF also has to prepare the VF resources needed by multi-queue, like
> the GGTT layout required by Wa_14028597154, and it skips that when
> multi-queue is disabled on the PF.
> 
> Fail the probe if multi-queue is disabled on a PF that supports it and
> tell the user to disable SR-IOV (sriov/max_vfs=0) first. Disabling
> multi-queue on native and on a VF works as before.

This patch, as it is, is garbage - but it seems there's a way for VF to realize
that MQ is disabled - I'll implement it in correct way

Thanks
Piotr
> 
> Cc: Matt Atwood <matthew.s.atwood@intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> Cc: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
> Cc: Varun Gupta <varun.gupta@intel.com>
> Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_configfs.c | 6 ++++++
>  drivers/gpu/drm/xe/xe_pci.c      | 6 ++++++
>  2 files changed, 12 insertions(+)
> 
> diff --git a/drivers/gpu/drm/xe/xe_configfs.c b/drivers/gpu/drm/xe/xe_configfs.c
> index 3a05e1cd9dda..9ad07ee4f58e 100644
> --- a/drivers/gpu/drm/xe/xe_configfs.c
> +++ b/drivers/gpu/drm/xe/xe_configfs.c
> @@ -139,6 +139,12 @@
>   *
>   *	# echo 0 > /sys/kernel/config/xe/0000:03:00.0/enable_multi_queue
>   *
> + * Multi-queue can't be disabled on an SR-IOV PF, because the GuC is shared with
> + * the VFs and each VF decides on its own whether it uses multi-queue. Setting 0
> + * on a PF makes the probe fail. To disable multi-queue on such a device,
> + * disable SR-IOV first, e.g. with ``sriov/max_vfs`` set to 0, so the device
> + * runs as native.
> + *
>   * This attribute can only be set before binding to the device.
>   *
>   * PSMI
> diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
> index 0c6bc82d917b..1a457b3f8d25 100644
> --- a/drivers/gpu/drm/xe/xe_pci.c
> +++ b/drivers/gpu/drm/xe/xe_pci.c
> @@ -931,6 +931,12 @@ static struct xe_gt *alloc_primary_gt(struct xe_tile *tile,
>  		!(GRAPHICS_VERx100(xe) == 3510 && xe->info.step.graphics < STEP_B0);
>  	gt->info.multi_queue_engine_class_mask = graphics_desc->multi_queue_engine_class_mask;
>  	if (!xe_configfs_get_enable_multi_queue(to_pci_dev(xe->drm.dev))) {
> +		/* GuC is shared with VFs and PF must prepare their multi-queue resources */
> +		if (IS_SRIOV_PF(xe) && gt->info.multi_queue_engine_class_mask) {
> +			xe_gt_err(gt, "Can't disable multi-queue in SR-IOV PF mode, disable SR-IOV first (sriov/max_vfs=0)!\n");
> +			return ERR_PTR(-ENODEV);
> +		}
> +
>  		xe_gt_info(gt, "Multi-queue disabled via configfs\n");
>  		gt->info.multi_queue_engine_class_mask = 0;
>  	}
> -- 
> 2.34.1
> 

-- 

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v2 3/5] drm/xe/tests: Test shareable GGTT alignment by GGTT address
  2026-12-03 18:14 ` [PATCH v2 3/5] drm/xe/tests: Test shareable GGTT alignment " Piórkowski, Piotr
@ 2026-12-03 20:07   ` Rodrigo Vivi
  0 siblings, 0 replies; 14+ messages in thread
From: Rodrigo Vivi @ 2026-12-03 20:07 UTC (permalink / raw)
  To: Piórkowski, Piotr
  Cc: intel-xe, Matt Atwood, Satyanarayana K V P,
	Tangudu Tilak Tirumalesh, Varun Gupta

On Thu, Dec 03, 2026 at 07:14:06PM +0100, Piórkowski, Piotr wrote:
> From: Piotr Piórkowski <piotr.piorkowski@intel.com>
> 
> Add a test for a shareable GGTT node and the largest GGTT hole with a
> 4M alignment, which the 1M GGTT start used by the tests does not
> satisfy. Check that the GGTT address of the node is aligned and that
> the node is placed at the top of the GGTT. Also check the largest hole
> before and after the node is inserted.
> 
> Cc: Matt Atwood <matthew.s.atwood@intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> Cc: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
> Cc: Varun Gupta <varun.gupta@intel.com>
> Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> ---
>  drivers/gpu/drm/xe/tests/xe_ggtt_kunit.c | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
> 
> diff --git a/drivers/gpu/drm/xe/tests/xe_ggtt_kunit.c b/drivers/gpu/drm/xe/tests/xe_ggtt_kunit.c
> index 202b48b0c984..090b7dd88888 100644
> --- a/drivers/gpu/drm/xe/tests/xe_ggtt_kunit.c
> +++ b/drivers/gpu/drm/xe/tests/xe_ggtt_kunit.c
> @@ -306,6 +306,29 @@ static void alloc_shareable_pool_oversized(struct kunit *test)
>  	KUNIT_EXPECT_EQ(test, PTR_ERR(node), -ENOSPC);
>  }
>  
> +static void alloc_shareable_aligned_addr(struct kunit *test)
> +{
> +	u64 accessible = ggtt_test_accessible_size(test);
> +	u64 top = ALIGN_DOWN(GGTT_TEST_START + accessible, SZ_4M);
> +	struct xe_ggtt_node *node;
> +	struct xe_ggtt *ggtt;
> +
> +	ggtt = ggtt_test_create(test, accessible, accessible, accessible);
> +	KUNIT_ASSERT_NOT_NULL(test, ggtt);
> +	/* Force the path for a GGTT start that is not aligned */
> +	KUNIT_ASSERT_FALSE(test, IS_ALIGNED(GGTT_TEST_START, SZ_4M));
> +
> +	KUNIT_EXPECT_EQ(test, xe_ggtt_largest_hole(ggtt, SZ_4M, NULL),
> +			top - ALIGN(GGTT_TEST_START, SZ_4M));
> +
> +	node = ggtt_test_track_node(test, xe_ggtt_insert_node_shareable(ggtt, SZ_8M, SZ_4M));
> +	KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node);
> +	KUNIT_EXPECT_TRUE(test, IS_ALIGNED(xe_ggtt_node_addr(node), SZ_4M));
> +	KUNIT_EXPECT_EQ(test, xe_ggtt_node_addr(node) + SZ_8M, top);
> +	KUNIT_EXPECT_EQ(test, xe_ggtt_largest_hole(ggtt, SZ_4M, NULL),
> +			top - SZ_8M - ALIGN(GGTT_TEST_START, SZ_4M));
> +}
> +
>  static struct kunit_case ggtt_iov_test_cases[] = {
>  	KUNIT_CASE(init_shared_pf),
>  	KUNIT_CASE(init_partial_overlap),
> @@ -316,6 +339,7 @@ static struct kunit_case ggtt_iov_test_cases[] = {
>  	KUNIT_CASE(alloc_partial_overlap_shareable_full),
>  	KUNIT_CASE(alloc_shareable_pool_unavailable),
>  	KUNIT_CASE(alloc_shareable_pool_oversized),
> +	KUNIT_CASE(alloc_shareable_aligned_addr),
>  	{}
>  };
>  
> -- 
> 2.34.1
> 

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v2 1/5] drm/xe: Don't allow disabling multi-queue on PF
  2026-12-03 20:06   ` Piotr Piórkowski
@ 2026-12-03 20:30     ` Rodrigo Vivi
  0 siblings, 0 replies; 14+ messages in thread
From: Rodrigo Vivi @ 2026-12-03 20:30 UTC (permalink / raw)
  To: Piotr Piórkowski
  Cc: intel-xe, Matt Atwood, Satyanarayana K V P,
	Tangudu Tilak Tirumalesh, Varun Gupta

On Thu, Dec 03, 2026 at 09:06:46PM +0100, Piotr Piórkowski wrote:
> Piórkowski, Piotr <piotr.piorkowski@intel.com> wrote on czw [2026-gru-03 19:14:04 +0100]:
> > From: Piotr Piórkowski <piotr.piorkowski@intel.com>
> > 
> > Multi-queue can be disabled via configfs. On an SR-IOV PF this also
> > disables it in the GuC, which is shared with the VFs. Each VF has its
> > own configfs setting and may still expect multi-queue to be available.
> > The PF also has to prepare the VF resources needed by multi-queue, like
> > the GGTT layout required by Wa_14028597154, and it skips that when
> > multi-queue is disabled on the PF.
> > 
> > Fail the probe if multi-queue is disabled on a PF that supports it and
> > tell the user to disable SR-IOV (sriov/max_vfs=0) first. Disabling
> > multi-queue on native and on a VF works as before.
> 
> This patch, as it is, is garbage - but it seems there's a way for VF to realize
> that MQ is disabled - I'll implement it in correct way

Sounds good. Just make sure the VF knows MQ is off before
xe_ggtt_init_early(), since 5/5 checks it there.

And if the VF can't apply the WA (like on an older PF), let it just
turn off its own MQ instead of failing the probe.

> 
> Thanks
> Piotr
> > 
> > Cc: Matt Atwood <matthew.s.atwood@intel.com>
> > Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> > Cc: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
> > Cc: Varun Gupta <varun.gupta@intel.com>
> > Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
> > ---
> >  drivers/gpu/drm/xe/xe_configfs.c | 6 ++++++
> >  drivers/gpu/drm/xe/xe_pci.c      | 6 ++++++
> >  2 files changed, 12 insertions(+)
> > 
> > diff --git a/drivers/gpu/drm/xe/xe_configfs.c b/drivers/gpu/drm/xe/xe_configfs.c
> > index 3a05e1cd9dda..9ad07ee4f58e 100644
> > --- a/drivers/gpu/drm/xe/xe_configfs.c
> > +++ b/drivers/gpu/drm/xe/xe_configfs.c
> > @@ -139,6 +139,12 @@
> >   *
> >   *	# echo 0 > /sys/kernel/config/xe/0000:03:00.0/enable_multi_queue
> >   *
> > + * Multi-queue can't be disabled on an SR-IOV PF, because the GuC is shared with
> > + * the VFs and each VF decides on its own whether it uses multi-queue. Setting 0
> > + * on a PF makes the probe fail. To disable multi-queue on such a device,
> > + * disable SR-IOV first, e.g. with ``sriov/max_vfs`` set to 0, so the device
> > + * runs as native.
> > + *
> >   * This attribute can only be set before binding to the device.
> >   *
> >   * PSMI
> > diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
> > index 0c6bc82d917b..1a457b3f8d25 100644
> > --- a/drivers/gpu/drm/xe/xe_pci.c
> > +++ b/drivers/gpu/drm/xe/xe_pci.c
> > @@ -931,6 +931,12 @@ static struct xe_gt *alloc_primary_gt(struct xe_tile *tile,
> >  		!(GRAPHICS_VERx100(xe) == 3510 && xe->info.step.graphics < STEP_B0);
> >  	gt->info.multi_queue_engine_class_mask = graphics_desc->multi_queue_engine_class_mask;
> >  	if (!xe_configfs_get_enable_multi_queue(to_pci_dev(xe->drm.dev))) {
> > +		/* GuC is shared with VFs and PF must prepare their multi-queue resources */
> > +		if (IS_SRIOV_PF(xe) && gt->info.multi_queue_engine_class_mask) {
> > +			xe_gt_err(gt, "Can't disable multi-queue in SR-IOV PF mode, disable SR-IOV first (sriov/max_vfs=0)!\n");
> > +			return ERR_PTR(-ENODEV);
> > +		}
> > +
> >  		xe_gt_info(gt, "Multi-queue disabled via configfs\n");
> >  		gt->info.multi_queue_engine_class_mask = 0;
> >  	}
> > -- 
> > 2.34.1
> > 
> 
> -- 

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v2 4/5] drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV PF
  2026-12-03 18:14 ` [PATCH v2 4/5] drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV PF Piórkowski, Piotr
@ 2026-12-03 20:30   ` Rodrigo Vivi
  0 siblings, 0 replies; 14+ messages in thread
From: Rodrigo Vivi @ 2026-12-03 20:30 UTC (permalink / raw)
  To: Piórkowski, Piotr
  Cc: intel-xe, Varun Gupta, Matt Atwood, Satyanarayana K V P,
	Tangudu Tilak Tirumalesh

On Thu, Dec 03, 2026 at 07:14:07PM +0100, Piórkowski, Piotr wrote:
> From: Varun Gupta <varun.gupta@intel.com>
> 
> Wa_14028597154 requires the low-4MB GGTT PTE matching each 4MB chunk of
> GGTT (addr >> 10), plus the following page, to be backed by a dummy page
> of the function owning that chunk. With SR-IOV this also applies to the
> GGTT ranges of the VFs.
> 
> When the WA is active, provision VF GGTT ranges 4MB aligned and in whole
> 4MB chunks. Make them at least 8MB, as the VF keeps the top 4MB of its
> range unused, and don't estimate a fair VF GGTT size below 8MB.
> 
> Hand the low-4MB PTEs matching a VF range to the VF together with the
> range, as VFID-only PTEs like the range itself. On release, restore the
> PF dummy page in them and invalidate the GGTT TLBs.
> 
> Keep the 4MB chunk right below a VF range free of PF allocations. Place
> PF BOs at least 4MB below the lowest VF chunk, and place a VF range only
> where the chunk below is free or owned by another VF. Track the
> VF-owned chunks, so PF resume leaves their low-4MB PTEs alone.
> 
> The VF side of the WA is added in a follow-up patch.
> 
> v2:
>  - Fix build without CONFIG_PCI_IOV (CI)
> 
> Cc: Matt Atwood <matthew.s.atwood@intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> Cc: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
> Signed-off-by: Varun Gupta <varun.gupta@intel.com>
> Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_ggtt.c               | 159 +++++++++++++++++++--
>  drivers/gpu/drm/xe/xe_ggtt.h               |   1 +
>  drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c |  19 ++-
>  3 files changed, 164 insertions(+), 15 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
> index f3836a04eefd..64b81c0c48a3 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.c
> +++ b/drivers/gpu/drm/xe/xe_ggtt.c
> @@ -6,6 +6,7 @@
>  #include "xe_ggtt.h"
>  
>  #include <kunit/visibility.h>
> +#include <linux/bitmap.h>
>  #include <linux/error-injection.h>
>  #include <linux/io-64-nonatomic-lo-hi.h>
>  #include <linux/sizes.h>
> @@ -72,6 +73,8 @@
>  #define XE_GGTT_FLAGS_64K	BIT(0)
>  #define XE_GGTT_FLAGS_ONLINE	BIT(1)
>  
> +#define XE_GGTT_NUM_4M_CHUNKS	(SZ_4G / SZ_4M)
> +
>  /**
>   * struct xe_ggtt_node - A node in GGTT.
>   *
> @@ -132,6 +135,8 @@ struct xe_ggtt {
>  	struct xe_bo *scratch;
>  	/** @low_4m_pte: PTE backing GGTT [4K, 4M), 0 if unused */
>  	u64 low_4m_pte;
> +	/** @vf_chunks: Bitmap of 4MB GGTT chunks assigned to VFs */
> +	DECLARE_BITMAP(vf_chunks, XE_GGTT_NUM_4M_CHUNKS);
>  	/** @lock: Mutex lock to protect GGTT data */
>  	struct mutex lock;
>  	/**
> @@ -480,6 +485,14 @@ static void ggtt_init_shared(struct xe_ggtt *ggtt, u64 start, u64 size)
>  	ggtt_init_ranges(ggtt, start, size, size, size);
>  }
>  
> +static bool ggtt_needs_low_4m_wa(struct xe_ggtt *ggtt)
> +{
> +	struct xe_tile *tile = ggtt->tile;
> +
> +	return tile->primary_gt && XE_GT_WA(tile->primary_gt, 14028597154) &&
> +	       xe_gt_has_multi_queue(tile->primary_gt);
> +}
> +
>  static void ggtt_init_generic(struct xe_ggtt *ggtt, u64 start, u64 size)
>  {
>  	struct xe_device *xe = tile_to_xe(ggtt->tile);
> @@ -568,6 +581,87 @@ ALLOW_ERROR_INJECTION(xe_ggtt_init_early, ERRNO); /* See xe_pci_probe() */
>  static void xe_ggtt_invalidate(struct xe_ggtt *ggtt);
>  static void xe_ggtt_invalidate_engine(struct xe_ggtt *ggtt);
>  
> +/*
> + * Return the low-4MB PTEs of the VF chunks in [start, start + size) to the PF
> + * dummy page. Chunks not assigned to a VF are left alone, so releasing a PF
> + * node does not touch the low 4MB.
> + */
> +static void ggtt_release_low_4m_locked(struct xe_ggtt *ggtt, u64 start, u64 size)
> +{
> +	u64 va;
> +
> +	lockdep_assert_held(&ggtt->lock);
> +	xe_tile_assert(ggtt->tile, ggtt->low_4m_pte);
> +
> +	for (va = ALIGN_DOWN(start, SZ_4M); va < start + size; va += SZ_4M)
> +		if (__test_and_clear_bit(va / SZ_4M, ggtt->vf_chunks))
> +			ggtt_set_low_4m_pte(ggtt, va >> 10, ggtt->low_4m_pte);
> +}
> +
> +#ifdef CONFIG_PCI_IOV
> +static u64 xe_encode_vfid_pte(u16 vfid)
> +{
> +	return FIELD_PREP(GGTT_PTE_VFID, vfid) | XE_PAGE_PRESENT;
> +}
> +
> +/*
> + * Wa_14028597154: hand the low-4MB PTE matching every 4MB chunk of a VF range
> + * (va >> 10) to that VF, as a VFID-only PTE like in xe_ggtt_assign_locked().
> + */
> +static void ggtt_assign_low_4m_locked(struct xe_ggtt *ggtt, u64 start, u64 size,
> +				      u16 vfid)
> +{
> +	u64 pte = xe_encode_vfid_pte(vfid);
> +	u64 va;
> +
> +	lockdep_assert_held(&ggtt->lock);
> +	xe_tile_assert(ggtt->tile, ggtt->low_4m_pte);
> +	xe_tile_assert(ggtt->tile, IS_ALIGNED(start, SZ_4M) && IS_ALIGNED(size, SZ_4M));
> +
> +	for (va = start; va < start + size; va += SZ_4M) {
> +		ggtt_set_low_4m_pte(ggtt, va >> 10, pte);
> +		__set_bit(va / SZ_4M, ggtt->vf_chunks);
> +	}
> +}
> +
> +/*
> + * Wa_14028597154: the 4MB chunk right below a VF range must not hold PF
> + * allocations. It has to be free, below the GGTT start, or owned by another
> + * VF.
> + */
> +static bool ggtt_low_4m_room_below(struct xe_ggtt *ggtt, u64 addr, u64 hole_start)
> +{
> +	if (!ggtt->low_4m_pte || addr >= hole_start + SZ_4M)
> +		return true;
> +
> +	if (hole_start == ggtt->start)
> +		return true;
> +
> +	if (addr < SZ_4M)
> +		return false;
> +
> +	return test_bit(addr / SZ_4M - 1, ggtt->vf_chunks);
> +}
> +#endif
> +
> +/*
> + * Return the lowest drm_mm offset in a hole that can hold a VF range. If the
> + * hole starts right above a node not owned by a VF, skip its first 4MB, see
> + * ggtt_low_4m_room_below().
> + */
> +static u64 ggtt_low_4m_hole_start(struct xe_ggtt *ggtt, u64 hole_start)
> +{
> +	u64 addr = ggtt->start + hole_start;
> +
> +	if (!ggtt->low_4m_pte || !hole_start)
> +		return hole_start;
> +
> +	if (IS_ALIGNED(addr, SZ_4M) && test_bit(addr / SZ_4M - 1, ggtt->vf_chunks))
> +		return hole_start;
> +
> +	return hole_start + SZ_4M;
> +}
> +
>  static void ggtt_restore_low_4m_locked(struct xe_ggtt *ggtt)
>  {
>  	u64 low_start = max_t(u64, ALIGN_DOWN(ggtt->start, SZ_4M) >> 10,
> @@ -582,8 +676,11 @@ static void ggtt_restore_low_4m_locked(struct xe_ggtt *ggtt)
>  	if (!ggtt->low_4m_pte)
>  		return;
>  
> -	for (addr = low_start; addr < low_end; addr += XE_PAGE_SIZE)
> +	for (addr = low_start; addr < low_end; addr += XE_PAGE_SIZE) {
> +		if (test_bit(addr >> XE_PTE_SHIFT, ggtt->vf_chunks))
> +			continue;
>  		ggtt_set_low_4m_pte(ggtt, addr, ggtt->low_4m_pte);
> +	}
>  }
>  
>  /*
> @@ -607,8 +704,7 @@ static int ggtt_map_low_4m_wa(struct xe_ggtt *ggtt)
>  	if (IS_SRIOV_VF(xe))
>  		return 0;
>  
> -	if (!tile->primary_gt || !XE_GT_WA(tile->primary_gt, 14028597154) ||
> -	    !xe_gt_has_multi_queue(tile->primary_gt))
> +	if (!ggtt_needs_low_4m_wa(ggtt))
>  		return 0;
>  
>  	bo = xe_managed_bo_create_pin_map(xe, tile, XE_PAGE_SIZE, XE_BO_FLAG_SYSTEM);
> @@ -640,6 +736,17 @@ void xe_ggtt_resume(struct xe_ggtt *ggtt)
>  	ggtt_restore_low_4m_locked(ggtt);
>  }
>  
> +/**
> + * xe_ggtt_has_low_4m_wa() - Check if the low-4MB GGTT mapping is applied
> + * @ggtt: the &xe_ggtt
> + *
> + * Return: true if the low-4MB GGTT mapping for Wa_14028597154 is in place.
> + */
> +bool xe_ggtt_has_low_4m_wa(struct xe_ggtt *ggtt)
> +{
> +	return ggtt->low_4m_pte;
> +}
> +
>  static void xe_ggtt_initial_clear(struct xe_ggtt *ggtt)
>  {
>  	struct drm_mm_node *hole;
> @@ -666,8 +773,13 @@ static void ggtt_node_remove(struct xe_ggtt_node *node)
>  
>  	mutex_lock(&ggtt->lock);
>  	bound = ggtt->flags & XE_GGTT_FLAGS_ONLINE;
> -	if (bound)
> +	if (bound) {
>  		xe_ggtt_clear(ggtt, xe_ggtt_node_addr(node), xe_ggtt_node_size(node));
> +		/* Return a released VF range's low-4MB PTEs to the PF dummy page */
> +		if (IS_SRIOV_PF(tile_to_xe(ggtt->tile)) && ggtt->low_4m_pte)
> +			ggtt_release_low_4m_locked(ggtt, xe_ggtt_node_addr(node),
> +						   xe_ggtt_node_size(node));
> +	}
>  	drm_mm_remove_node(&node->base);
>  	node->base.size = 0;
>  	if (bound && node->invalidate_on_remove) {
> @@ -941,9 +1053,9 @@ struct xe_ggtt_node *xe_ggtt_insert_node(struct xe_ggtt *ggtt, u32 size, u32 ali
>  #ifdef CONFIG_PCI_IOV
>  /*
>   * drm_mm aligns offsets from ggtt->start, but the GGTT address of a VF range
> - * is what has to be aligned. If ggtt->start is not aligned to @align, look for
> - * the highest offset with an aligned GGTT address in the holes of the
> - * shareable range directly.
> + * is what has to be aligned. If ggtt->start is not aligned to @align, or the
> + * placement has to follow Wa_14028597154, look for the highest offset with an
> + * aligned GGTT address in the holes of the shareable range directly.
>   */
>  static int ggtt_insert_node_shareable_locked(struct xe_ggtt_node *node, u64 size,
>  					     u64 align)
> @@ -956,11 +1068,13 @@ static int ggtt_insert_node_shareable_locked(struct xe_ggtt_node *node, u64 size
>  
>  	lockdep_assert_held(&ggtt->lock);
>  
> -	if (align <= 1 || IS_ALIGNED(ggtt->start, align))
> +	if ((align <= 1 || IS_ALIGNED(ggtt->start, align)) && !ggtt->low_4m_pte)
>  		return ggtt_insert_node_in_range_locked(node, size, align, range_start,
>  							ggtt->shareable_size,
>  							DRM_MM_INSERT_HIGH);
>  
> +	/* Wa_14028597154: VF ranges are handed out in whole 4MB chunks */
> +	align = max_t(u64, align, ggtt->low_4m_pte ? SZ_4M : 1);
>  	xe_tile_assert(ggtt->tile, is_power_of_2(align));
>  
>  	if (!size)
> @@ -978,6 +1092,10 @@ static int ggtt_insert_node_shareable_locked(struct xe_ggtt_node *node, u64 size
>  		if (addr < ggtt->start + lo)
>  			continue;
>  
> +		/* Wa_14028597154: keep PF allocations out of the chunk below */
> +		if (!ggtt_low_4m_room_below(ggtt, addr, ggtt->start + hole_start))
> +			continue;
> +
>  		if (best == U64_MAX || addr - ggtt->start > best)
>  			best = addr - ggtt->start;
>  	}
> @@ -1198,6 +1316,21 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
>  
>  	end = min(end, ggtt->size);
>  
> +	/*
> +	 * Wa_14028597154: keep PF allocations at least 4MB below the lowest
> +	 * VF-owned chunk.
> +	 */
> +	if (ggtt->low_4m_pte && IS_SRIOV_PF(tile_to_xe(ggtt->tile))) {

Only BOs get this limit, display fb pins don't. Fine if only contexts
matter for this WA, right? Maybe say it in the comment.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> +		unsigned long first_vf = find_first_bit(ggtt->vf_chunks,
> +							XE_GGTT_NUM_4M_CHUNKS);
> +
> +		if (first_vf < XE_GGTT_NUM_4M_CHUNKS) {
> +			u64 limit = (u64)first_vf * SZ_4M - SZ_4M;
> +
> +			end = limit > ggtt->start ? min(end, limit - ggtt->start) : 0;
> +		}
> +	}
> +
>  	if (end < start + xe_bo_size(bo))
>  		err = -ENOSPC;
>  	else
> @@ -1315,6 +1448,7 @@ u64 xe_ggtt_largest_hole(struct xe_ggtt *ggtt, u64 alignment, u64 *spare)
>  
>  	mutex_lock(&ggtt->lock);
>  	drm_mm_for_each_hole(entry, mm, hole_start, hole_end) {
> +		hole_start = ggtt_low_4m_hole_start(ggtt, hole_start);
>  		if (!ggtt_align_hole(ggtt, alignment, &hole_start, &hole_end))
>  			continue;
>  		hole_size = hole_end - hole_start;
> @@ -1329,11 +1463,6 @@ u64 xe_ggtt_largest_hole(struct xe_ggtt *ggtt, u64 alignment, u64 *spare)
>  }
>  
>  #ifdef CONFIG_PCI_IOV
> -static u64 xe_encode_vfid_pte(u16 vfid)
> -{
> -	return FIELD_PREP(GGTT_PTE_VFID, vfid) | XE_PAGE_PRESENT;
> -}
> -
>  static void xe_ggtt_assign_locked(const struct xe_ggtt_node *node, u16 vfid)
>  {
>  	struct xe_ggtt *ggtt = node->ggtt;
> @@ -1344,6 +1473,9 @@ static void xe_ggtt_assign_locked(const struct xe_ggtt_node *node, u16 vfid)
>  
>  	lockdep_assert_held(&ggtt->lock);
>  
> +	if (ggtt->low_4m_pte)
> +		ggtt_assign_low_4m_locked(ggtt, start, size, vfid);
> +
>  	while (start < end) {
>  		ggtt->pt_ops->ggtt_set_pte(ggtt, start, pte);
>  		start += XE_PAGE_SIZE;
> @@ -1487,6 +1619,7 @@ u64 xe_ggtt_print_holes(struct xe_ggtt *ggtt, u64 alignment, struct drm_printer
>  
>  	mutex_lock(&ggtt->lock);
>  	drm_mm_for_each_hole(entry, mm, hole_start, hole_end) {
> +		hole_start = ggtt_low_4m_hole_start(ggtt, hole_start);
>  		if (!ggtt_align_hole(ggtt, alignment, &hole_start, &hole_end))
>  			continue;
>  		hole_size = hole_end - hole_start;
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
> index 78e68c2ca3ad..7b5221d6f733 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.h
> +++ b/drivers/gpu/drm/xe/xe_ggtt.h
> @@ -18,6 +18,7 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt);
>  int xe_ggtt_init_kunit(struct xe_ggtt *ggtt, u32 reserved, u32 size);
>  int xe_ggtt_init(struct xe_ggtt *ggtt);
>  void xe_ggtt_resume(struct xe_ggtt *ggtt);
> +bool xe_ggtt_has_low_4m_wa(struct xe_ggtt *ggtt);
>  
>  void xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_base);
>  u64 xe_ggtt_start(struct xe_ggtt *ggtt);
> diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> index 926f1e83bd79..0b136b4616e7 100644
> --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> @@ -442,6 +442,10 @@ static u64 pf_get_ggtt_alignment(struct xe_gt *gt)
>  {
>  	struct xe_device *xe = gt_to_xe(gt);
>  
> +	/* Wa_14028597154: VF GGTT ranges must start on and span whole 4MB chunks */
> +	if (xe_ggtt_has_low_4m_wa(gt_to_tile(gt)->mem.ggtt))
> +		return SZ_4M;
> +
>  	return IS_DGFX(xe) && xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K ? SZ_64K : SZ_4K;
>  }
>  
> @@ -495,7 +499,9 @@ static int pf_distribute_config_ggtt(struct xe_tile *tile, unsigned int vfid, u6
>  
>  static void pf_release_vf_config_ggtt(struct xe_gt *gt, struct xe_gt_sriov_config *config)
>  {
> -	xe_ggtt_node_remove(config->ggtt_region, false);
> +	/* Wa_14028597154: drop TLB entries for the VF's own low-4MB dummy page */
> +	xe_ggtt_node_remove(config->ggtt_region,
> +			    xe_ggtt_has_low_4m_wa(gt_to_tile(gt)->mem.ggtt));
>  	config->ggtt_region = NULL;
>  }
>  
> @@ -514,6 +520,10 @@ static int pf_provision_vf_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size)
>  
>  	size = round_up(size, alignment);
>  
> +	/* Wa_14028597154: the VF keeps its top 4MB free, so give it at least 8MB */
> +	if (size && xe_ggtt_has_low_4m_wa(ggtt))
> +		size = max_t(u64, size, SZ_8M);
> +
>  	if (config->ggtt_region) {
>  		err = pf_distribute_config_ggtt(tile, vfid, 0, 0);
>  		if (unlikely(err))
> @@ -545,7 +555,7 @@ static int pf_provision_vf_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size)
>  	config->ggtt_region = node;
>  	return 0;
>  err:
> -	xe_ggtt_node_remove(node, false);
> +	xe_ggtt_node_remove(node, xe_ggtt_has_low_4m_wa(ggtt));
>  	return err;
>  }
>  
> @@ -751,6 +761,11 @@ static u64 pf_estimate_fair_ggtt(struct xe_gt *gt, unsigned int num_vfs)
>  
>  	fair = div_u64(available, num_vfs);
>  	fair = ALIGN_DOWN(fair, alignment);
> +
> +	/* Wa_14028597154: each VF needs at least 8MB, see pf_provision_vf_ggtt() */
> +	if (fair < SZ_8M && xe_ggtt_has_low_4m_wa(gt_to_tile(gt)->mem.ggtt))
> +		fair = 0;
> +
>  	xe_gt_sriov_dbg_verbose(gt, "GGTT available(%lluK) fair(%u x %lluK)\n",
>  				available / SZ_1K, num_vfs, fair / SZ_1K);
>  	return fair;
> -- 
> 2.34.1
> 

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v2 5/5] drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV VF
  2026-12-03 18:14 ` [PATCH v2 5/5] drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV VF Piórkowski, Piotr
@ 2026-12-03 20:31   ` Rodrigo Vivi
  0 siblings, 0 replies; 14+ messages in thread
From: Rodrigo Vivi @ 2026-12-03 20:31 UTC (permalink / raw)
  To: Piórkowski, Piotr
  Cc: intel-xe, Varun Gupta, Matt Atwood, Satyanarayana K V P,
	Tangudu Tilak Tirumalesh, Tomasz Lis

On Thu, Dec 03, 2026 at 07:14:08PM +0100, Piórkowski, Piotr wrote:
> From: Varun Gupta <varun.gupta@intel.com>
> 
> The PF assigns the low-4MB GGTT PTEs matching a VF GGTT range to the VF
> together with the range, but it is the VF that has to back them with its
> own dummy page for Wa_14028597154.
> 
> When the WA is active, map the VF dummy page into the low-4MB PTEs
> matching the VF GGTT range at probe, on resume and in
> xe_ggtt_shift_nodes(), even if the GGTT base did not change, as these
> PTEs are not migrated with the VF. Read them back and fail the probe if
> they were not written. Also fail the probe if the VF GGTT range is not
> 4MB aligned, starts below 4MB or is smaller than 8MB. Keep the top 4MB
> chunk of the VF GGTT range out of the usable range.
> 
> Let xe_ggtt_shift_nodes() return an error, without moving the nodes, so
> the post-migration recovery fails if the low-4MB PTEs of the new GGTT
> range can't be mapped.
> 
> Cc: Matt Atwood <matthew.s.atwood@intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> Cc: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
> Cc: Tomasz Lis <tomasz.lis@intel.com>
> Signed-off-by: Varun Gupta <varun.gupta@intel.com>
> Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_ggtt.c        | 123 ++++++++++++++++++++++++----
>  drivers/gpu/drm/xe/xe_ggtt.h        |   2 +-
>  drivers/gpu/drm/xe/xe_gt_sriov_vf.c |  12 ++-
>  3 files changed, 116 insertions(+), 21 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
> index 64b81c0c48a3..4cf0ee203cd9 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.c
> +++ b/drivers/gpu/drm/xe/xe_ggtt.c
> @@ -497,10 +497,16 @@ static void ggtt_init_generic(struct xe_ggtt *ggtt, u64 start, u64 size)
>  {
>  	struct xe_device *xe = tile_to_xe(ggtt->tile);
>  
> -	if (!IS_SRIOV_PF(xe))
> -		ggtt_init_native(ggtt, start, size);
> -	else
> +	if (IS_SRIOV_PF(xe))
>  		ggtt_init_shared(ggtt, start, size);
> +	else if (IS_SRIOV_VF(xe) && ggtt_needs_low_4m_wa(ggtt))
> +		/*
> +		 * Wa_14028597154: keep the top 4MB chunk of the VF GGTT range
> +		 * out of the usable range.
> +		 */
> +		ggtt_init_ranges(ggtt, start, size, size - SZ_4M, 0);
> +	else
> +		ggtt_init_native(ggtt, start, size);
>  
>  	xe_tile_info(ggtt->tile, "GGTT usable %#llx-%#llx = %lluK\n",
>  		     ggtt->start, ggtt->start + ggtt->size - 1,
> @@ -563,6 +569,20 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt)
>  	else
>  		ggtt->pt_ops = &xelp_pt_ops;
>  
> +	/*
> +	 * Wa_14028597154: the PF provisions VF GGTT ranges 4MB aligned, above
> +	 * 4MB and of at least 8MB. Refuse any other range, as the WA can't be
> +	 * applied to it.
> +	 */
> +	if (IS_SRIOV_VF(xe) && ggtt_needs_low_4m_wa(ggtt) &&
> +	    (ggtt_start < SZ_4M || ggtt_size < SZ_8M ||
> +	     !IS_ALIGNED(ggtt_start | ggtt_size, SZ_4M))) {

Please see my reply on 1/5 about failing the probe here.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> +		xe_log_err_fatal(ggtt->tile, GGTT, -ERANGE,
> +				 "GGTT %#llx-%#llx unusable for Wa_14028597154\n",
> +				 ggtt_start, ggtt_start + ggtt_size - 1);
> +		return -ERANGE;
> +	}
> +
>  	ggtt->wq = alloc_workqueue("xe-ggtt-wq", WQ_MEM_RECLAIM | WQ_PERCPU, 0);
>  	if (!ggtt->wq)
>  		return -ENOMEM;
> @@ -581,6 +601,14 @@ ALLOW_ERROR_INJECTION(xe_ggtt_init_early, ERRNO); /* See xe_pci_probe() */
>  static void xe_ggtt_invalidate(struct xe_ggtt *ggtt);
>  static void xe_ggtt_invalidate_engine(struct xe_ggtt *ggtt);
>  
> +static u64 ggtt_get_low_4m_pte(struct xe_ggtt *ggtt, u64 addr)
> +{
> +	xe_tile_assert(ggtt->tile, addr >= XE_PAGE_SIZE && addr < SZ_4M);
> +	xe_tile_assert(ggtt->tile, !(addr & XE_PTE_MASK));
> +
> +	return readq(&ggtt->gsm[addr >> XE_PTE_SHIFT]);
> +}
> +
>  /*
>   * Return the low-4MB PTEs of the VF chunks in [start, start + size) to the PF
>   * dummy page. Chunks not assigned to a VF are left alone, so releasing a PF
> @@ -662,8 +690,40 @@ static u64 ggtt_low_4m_hole_start(struct xe_ggtt *ggtt, u64 hole_start)
>  	return hole_start + SZ_4M;
>  }
>  
> +/*
> + * Map the VF dummy page into the low-4MB PTEs matching the whole VF GGTT
> + * range from @start. The VF can only modify them if the PF has assigned them
> + * to it, so read them back to verify the mapping.
> + */
> +static int ggtt_vf_map_low_4m_locked(struct xe_ggtt *ggtt, u64 start)
> +{
> +	u64 mask = XE_PAGE_ADDR_MASK(XE_PTE_SHIFT) | XE_PAGE_PRESENT;
> +	u64 end = start + ggtt->full_size;
> +	u64 va;
> +
> +	xe_tile_assert(ggtt->tile, IS_SRIOV_VF(tile_to_xe(ggtt->tile)));
> +	xe_tile_assert(ggtt->tile, ggtt->low_4m_pte);
> +	lockdep_assert_held(&ggtt->lock);
> +
> +	if (start < SZ_4M || !IS_ALIGNED(start | ggtt->full_size, SZ_4M))
> +		return -ERANGE;
> +
> +	for (va = start; va < end; va += SZ_4M)
> +		ggtt_set_low_4m_pte(ggtt, va >> 10, ggtt->low_4m_pte);
> +
> +	for (va = start; va < end; va += SZ_4M) {
> +		u64 pte = ggtt_get_low_4m_pte(ggtt, va >> 10);
> +
> +		if ((pte & mask) != (ggtt->low_4m_pte & mask))
> +			return -EPERM;
> +	}
> +
> +	return 0;
> +}
> +
>  static void ggtt_restore_low_4m_locked(struct xe_ggtt *ggtt)
>  {
> +	struct xe_device *xe = tile_to_xe(ggtt->tile);
>  	u64 low_start = max_t(u64, ALIGN_DOWN(ggtt->start, SZ_4M) >> 10,
>  			      XE_PAGE_SIZE);
>  	u64 low_end = min_t(u64,
> @@ -676,6 +736,14 @@ static void ggtt_restore_low_4m_locked(struct xe_ggtt *ggtt)
>  	if (!ggtt->low_4m_pte)
>  		return;
>  
> +	/* A VF only owns the low-4MB PTEs matching its own GGTT range */
> +	if (IS_SRIOV_VF(xe)) {
> +		if (ggtt_vf_map_low_4m_locked(ggtt, ggtt->start))
> +			xe_tile_err(ggtt->tile,
> +				    "Failed to restore low-4MB GGTT PTEs for Wa_14028597154\n");
> +		return;
> +	}
> +
>  	for (addr = low_start; addr < low_end; addr += XE_PAGE_SIZE) {
>  		if (test_bit(addr >> XE_PTE_SHIFT, ggtt->vf_chunks))
>  			continue;
> @@ -694,16 +762,9 @@ static int ggtt_map_low_4m_wa(struct xe_ggtt *ggtt)
>  	struct xe_device *xe = tile_to_xe(tile);
>  	u16 pat_index = xe_cache_pat_idx(xe, XE_CACHE_WB);
>  	struct xe_bo *bo;
> +	int err = 0;
>  	u64 pte;
>  
> -	/*
> -	 * TODO: SR-IOV VF support for Wa_14028597154 is deferred to a follow-up
> -	 * (requires PF 4MB-aligned VF GGTT provisioning, low-4MB VFID PTE
> -	 * assignment, and VF dummy-page mapping).
> -	 */
> -	if (IS_SRIOV_VF(xe))
> -		return 0;
> -
>  	if (!ggtt_needs_low_4m_wa(ggtt))
>  		return 0;
>  
> @@ -716,7 +777,19 @@ static int ggtt_map_low_4m_wa(struct xe_ggtt *ggtt)
>  
>  	scoped_guard(mutex, &ggtt->lock) {
>  		ggtt->low_4m_pte = pte;
> -		ggtt_restore_low_4m_locked(ggtt);
> +		if (IS_SRIOV_VF(xe))
> +			err = ggtt_vf_map_low_4m_locked(ggtt, ggtt->start);
> +		else
> +			ggtt_restore_low_4m_locked(ggtt);
> +	}
> +
> +	/* The PF has to assign the low-4MB PTEs together with the VF range */
> +	if (err) {
> +		xe_log_err_fatal(tile, GGTT, err,
> +				 "Low-4MB GGTT range %#llx-%#llx not writable, required by Wa_14028597154\n",
> +				 ggtt->start >> 10,
> +				 ((ggtt->start + ggtt->full_size) >> 10) - 1);
> +		return err;
>  	}
>  
>  	return 0;
> @@ -945,23 +1018,41 @@ static void xe_ggtt_invalidate_engine(struct xe_ggtt *ggtt)
>   * Ensure that all struct &xe_ggtt_node are moved to the @new_start base address
>   * by changing the base offset of the GGTT.
>   *
> - * This function may be called multiple times during recovery, but if
> - * @new_start is unchanged from the current base, it's a noop.
> + * This function may be called multiple times during recovery. If @new_start
> + * is unchanged from the current base, the nodes stay where they are.
> + *
> + * When Wa_14028597154 is applied, the low-4MB PTEs matching the VF GGTT range
> + * are mapped to the VF dummy page again on every call, even if the base is
> + * unchanged, as they are not migrated with the VF.
>   *
>   * @new_start should be a value between the WOPCM size and #GUC_GGTT_TOP. VFs
>   * don't have access to the WOPCM size so we can't test against that.
> + *
> + * Return: 0 on success or a negative error code if @new_start is unusable for
> + * Wa_14028597154 or the low-4MB PTEs can't be mapped.
>   */
> -void xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_start)
> +int xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_start)
>  {
> +	int err;
> +
>  	guard(mutex)(&ggtt->lock);
>  
> -	xe_tile_assert(ggtt->tile, new_start + ggtt->size <= GUC_GGTT_TOP);
> +	xe_tile_assert(ggtt->tile, new_start + ggtt->full_size <= GUC_GGTT_TOP);
>  #ifdef CONFIG_PCI_IOV
>  	xe_tile_assert(ggtt->tile, ggtt->shareable_size == 0);
>  #endif
>  
> +	/* Don't move the nodes to a range unusable for Wa_14028597154 */
> +	if (ggtt->low_4m_pte) {
> +		err = ggtt_vf_map_low_4m_locked(ggtt, new_start);
> +		if (err)
> +			return err;
> +	}
> +
>  	/* pairs with READ_ONCE in xe_ggtt_node_addr() */
>  	WRITE_ONCE(ggtt->start, new_start);
> +
> +	return 0;
>  }
>  
>  static int ggtt_insert_node_in_range_locked(struct xe_ggtt_node *node, u32 size,
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
> index 7b5221d6f733..22cf19d2b8eb 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.h
> +++ b/drivers/gpu/drm/xe/xe_ggtt.h
> @@ -20,7 +20,7 @@ int xe_ggtt_init(struct xe_ggtt *ggtt);
>  void xe_ggtt_resume(struct xe_ggtt *ggtt);
>  bool xe_ggtt_has_low_4m_wa(struct xe_ggtt *ggtt);
>  
> -void xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_base);
> +int xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_base);
>  u64 xe_ggtt_start(struct xe_ggtt *ggtt);
>  u64 xe_ggtt_size(struct xe_ggtt *ggtt);
>  
> diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
> index 60f1b29358f9..1a5395486327 100644
> --- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
> +++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
> @@ -531,12 +531,16 @@ static int vf_get_ggtt_info(struct xe_gt *gt)
>  	/*
>  	 * This function can be called repeatedly from post migration fixups,
>  	 * at which point we inform the GGTT of the new base address.
> -	 * xe_ggtt_shift_nodes() may be called multiple times for each migration,
> -	 * but will be a noop if the base is unchanged.
> +	 * xe_ggtt_shift_nodes() may be called multiple times for each migration.
> +	 * The nodes stay in place if the base is unchanged, but the low-4MB PTEs
> +	 * of Wa_14028597154 are mapped again, as they are not migrated.
>  	 */
> -	xe_ggtt_shift_nodes(tile->mem.ggtt, start);
> +	err = xe_ggtt_shift_nodes(tile->mem.ggtt, start);
> +	if (err)
> +		xe_gt_sriov_err(gt, "Failed to apply Wa_14028597154 to GGTT %#llx-%#llx (%pe)\n",
> +				start, start + size - 1, ERR_PTR(err));
>  
> -	return 0;
> +	return err;
>  }
>  
>  static int vf_get_lmem_info(struct xe_gt *gt)
> -- 
> 2.34.1
> 

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-12-03 20:31 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 18:14 [PATCH v2 0/5] Apply Wa_14028597154 to SR-IOV VF Piórkowski, Piotr
2026-12-03 18:14 ` [PATCH v2 1/5] drm/xe: Don't allow disabling multi-queue on PF Piórkowski, Piotr
2026-12-03 20:06   ` Piotr Piórkowski
2026-12-03 20:30     ` Rodrigo Vivi
2026-12-03 18:14 ` [PATCH v2 2/5] drm/xe/ggtt: Align shareable GGTT nodes by GGTT address Piórkowski, Piotr
2026-12-03 20:06   ` Rodrigo Vivi
2026-12-03 18:14 ` [PATCH v2 3/5] drm/xe/tests: Test shareable GGTT alignment " Piórkowski, Piotr
2026-12-03 20:07   ` Rodrigo Vivi
2026-12-03 18:14 ` [PATCH v2 4/5] drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV PF Piórkowski, Piotr
2026-12-03 20:30   ` Rodrigo Vivi
2026-12-03 18:14 ` [PATCH v2 5/5] drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV VF Piórkowski, Piotr
2026-12-03 20:31   ` Rodrigo Vivi
2026-12-03 18:28 ` ✓ CI.KUnit: success for Apply Wa_14028597154 to SR-IOV VF (rev2) Patchwork
2026-12-03 19:04 ` ✓ Xe.CI.BAT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox