intel-xe.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Large devcoredump file support
@ 2025-04-10  4:06 Matthew Brost
  2025-04-10  4:06 ` [PATCH v3 1/4] drm/xe: Add devcoredump chunking Matthew Brost
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Matthew Brost @ 2025-04-10  4:06 UTC (permalink / raw)
  To: intel-xe

Devcoredump were truncated at 2G, remove this restriction. While here,
add support for GPU copies of BOs to increase devcoredump speed.

v2:
 - Fix build error
 - Abort printing once printer if full
v3:
 - Actually fix build error
 - Address a few nits from Jonathan

Matthew Brost (4):
  drm/xe: Add devcoredump chunking
  drm/xe: Update xe_ttm_access_memory to use GPU for non-visible access
  drm/print: Add drm_printer_is_full
  drm/xe: Abort printing coredump in VM printer output if full

 drivers/gpu/drm/xe/xe_bo.c                |  15 +-
 drivers/gpu/drm/xe/xe_devcoredump.c       |  59 ++++--
 drivers/gpu/drm/xe/xe_devcoredump_types.h |   2 +
 drivers/gpu/drm/xe/xe_guc_hwconfig.c      |   2 +-
 drivers/gpu/drm/xe/xe_migrate.c           | 218 ++++++++++++++++++++--
 drivers/gpu/drm/xe/xe_migrate.h           |   4 +
 drivers/gpu/drm/xe/xe_vm.c                |   3 +
 include/drm/drm_print.h                   |  17 ++
 8 files changed, 288 insertions(+), 32 deletions(-)

-- 
2.34.1


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

* [PATCH v3 1/4] drm/xe: Add devcoredump chunking
  2025-04-10  4:06 [PATCH v3 0/4] Large devcoredump file support Matthew Brost
@ 2025-04-10  4:06 ` Matthew Brost
  2025-04-10 17:47   ` John Harrison
  2025-04-10  4:06 ` [PATCH v3 2/4] drm/xe: Update xe_ttm_access_memory to use GPU for non-visible access Matthew Brost
                   ` (6 subsequent siblings)
  7 siblings, 1 reply; 13+ messages in thread
From: Matthew Brost @ 2025-04-10  4:06 UTC (permalink / raw)
  To: intel-xe

Chunk devcoredump into 1.5G pieces to avoid hitting the kvmalloc limit
of 2G. Simple algorithm reads 1.5G at time in xe_devcoredump_read
callback as needed.

Some memory allocations are changed to GFP_ATOMIC as they done in
xe_devcoredump_read which holds lock in the path of reclaim. The
allocations are small, so in practice should never fail.

v2:
 - Update commit message wrt gfp atomic (John H)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
---
 drivers/gpu/drm/xe/xe_devcoredump.c       | 59 ++++++++++++++++++-----
 drivers/gpu/drm/xe/xe_devcoredump_types.h |  2 +
 drivers/gpu/drm/xe/xe_guc_hwconfig.c      |  2 +-
 3 files changed, 50 insertions(+), 13 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_devcoredump.c b/drivers/gpu/drm/xe/xe_devcoredump.c
index 81b9d9bb3f57..a9e618abf8ac 100644
--- a/drivers/gpu/drm/xe/xe_devcoredump.c
+++ b/drivers/gpu/drm/xe/xe_devcoredump.c
@@ -80,7 +80,8 @@ static struct xe_guc *exec_queue_to_guc(struct xe_exec_queue *q)
 	return &q->gt->uc.guc;
 }
 
-static ssize_t __xe_devcoredump_read(char *buffer, size_t count,
+static ssize_t __xe_devcoredump_read(char *buffer, ssize_t count,
+				     ssize_t start,
 				     struct xe_devcoredump *coredump)
 {
 	struct xe_device *xe;
@@ -94,7 +95,7 @@ static ssize_t __xe_devcoredump_read(char *buffer, size_t count,
 	ss = &coredump->snapshot;
 
 	iter.data = buffer;
-	iter.start = 0;
+	iter.start = start;
 	iter.remain = count;
 
 	p = drm_coredump_printer(&iter);
@@ -168,6 +169,8 @@ static void xe_devcoredump_snapshot_free(struct xe_devcoredump_snapshot *ss)
 	ss->vm = NULL;
 }
 
+#define XE_DEVCOREDUMP_CHUNK_MAX	(SZ_512M + SZ_1G)
+
 static ssize_t xe_devcoredump_read(char *buffer, loff_t offset,
 				   size_t count, void *data, size_t datalen)
 {
@@ -183,6 +186,9 @@ static ssize_t xe_devcoredump_read(char *buffer, loff_t offset,
 	/* Ensure delayed work is captured before continuing */
 	flush_work(&ss->work);
 
+	if (ss->read.size > XE_DEVCOREDUMP_CHUNK_MAX)
+		xe_pm_runtime_get(gt_to_xe(ss->gt));
+
 	mutex_lock(&coredump->lock);
 
 	if (!ss->read.buffer) {
@@ -195,12 +201,26 @@ static ssize_t xe_devcoredump_read(char *buffer, loff_t offset,
 		return 0;
 	}
 
+	if (offset >= ss->read.chunk_position + XE_DEVCOREDUMP_CHUNK_MAX ||
+	    offset < ss->read.chunk_position) {
+		ss->read.chunk_position =
+			ALIGN_DOWN(offset, XE_DEVCOREDUMP_CHUNK_MAX);
+
+		__xe_devcoredump_read(ss->read.buffer,
+				      XE_DEVCOREDUMP_CHUNK_MAX,
+				      ss->read.chunk_position, coredump);
+	}
+
 	byte_copied = count < ss->read.size - offset ? count :
 		ss->read.size - offset;
-	memcpy(buffer, ss->read.buffer + offset, byte_copied);
+	memcpy(buffer, ss->read.buffer +
+	       (offset % XE_DEVCOREDUMP_CHUNK_MAX), byte_copied);
 
 	mutex_unlock(&coredump->lock);
 
+	if (ss->read.size > XE_DEVCOREDUMP_CHUNK_MAX)
+		xe_pm_runtime_put(gt_to_xe(ss->gt));
+
 	return byte_copied;
 }
 
@@ -254,17 +274,32 @@ static void xe_devcoredump_deferred_snap_work(struct work_struct *work)
 	xe_guc_exec_queue_snapshot_capture_delayed(ss->ge);
 	xe_force_wake_put(gt_to_fw(ss->gt), fw_ref);
 
-	xe_pm_runtime_put(xe);
+	ss->read.chunk_position = 0;
 
 	/* Calculate devcoredump size */
-	ss->read.size = __xe_devcoredump_read(NULL, INT_MAX, coredump);
-
-	ss->read.buffer = kvmalloc(ss->read.size, GFP_USER);
-	if (!ss->read.buffer)
-		return;
+	ss->read.size = __xe_devcoredump_read(NULL, LONG_MAX, 0, coredump);
+
+	if (ss->read.size > XE_DEVCOREDUMP_CHUNK_MAX) {
+		ss->read.buffer = kvmalloc(XE_DEVCOREDUMP_CHUNK_MAX,
+					   GFP_USER);
+		if (!ss->read.buffer)
+			goto put_pm;
+
+		__xe_devcoredump_read(ss->read.buffer,
+				      XE_DEVCOREDUMP_CHUNK_MAX,
+				      0, coredump);
+	} else {
+		ss->read.buffer = kvmalloc(ss->read.size, GFP_USER);
+		if (!ss->read.buffer)
+			goto put_pm;
+
+		__xe_devcoredump_read(ss->read.buffer, ss->read.size, 0,
+				      coredump);
+		xe_devcoredump_snapshot_free(ss);
+	}
 
-	__xe_devcoredump_read(ss->read.buffer, ss->read.size, coredump);
-	xe_devcoredump_snapshot_free(ss);
+put_pm:
+	xe_pm_runtime_put(xe);
 }
 
 static void devcoredump_snapshot(struct xe_devcoredump *coredump,
@@ -425,7 +460,7 @@ void xe_print_blob_ascii85(struct drm_printer *p, const char *prefix, char suffi
 	if (offset & 3)
 		drm_printf(p, "Offset not word aligned: %zu", offset);
 
-	line_buff = kzalloc(DMESG_MAX_LINE_LEN, GFP_KERNEL);
+	line_buff = kzalloc(DMESG_MAX_LINE_LEN, GFP_ATOMIC);
 	if (!line_buff) {
 		drm_printf(p, "Failed to allocate line buffer\n");
 		return;
diff --git a/drivers/gpu/drm/xe/xe_devcoredump_types.h b/drivers/gpu/drm/xe/xe_devcoredump_types.h
index 1a1d16a96b2d..a174385a6d83 100644
--- a/drivers/gpu/drm/xe/xe_devcoredump_types.h
+++ b/drivers/gpu/drm/xe/xe_devcoredump_types.h
@@ -66,6 +66,8 @@ struct xe_devcoredump_snapshot {
 	struct {
 		/** @read.size: size of devcoredump in human readable format */
 		ssize_t size;
+		/** @read.chunk_position: position of devcoredump chunk */
+		ssize_t chunk_position;
 		/** @read.buffer: buffer of devcoredump in human readable format */
 		char *buffer;
 	} read;
diff --git a/drivers/gpu/drm/xe/xe_guc_hwconfig.c b/drivers/gpu/drm/xe/xe_guc_hwconfig.c
index af2c817d552c..21403a250834 100644
--- a/drivers/gpu/drm/xe/xe_guc_hwconfig.c
+++ b/drivers/gpu/drm/xe/xe_guc_hwconfig.c
@@ -175,7 +175,7 @@ int xe_guc_hwconfig_lookup_u32(struct xe_guc *guc, u32 attribute, u32 *val)
 	if (num_dw == 0)
 		return -EINVAL;
 
-	hwconfig = kzalloc(size, GFP_KERNEL);
+	hwconfig = kzalloc(size, GFP_ATOMIC);
 	if (!hwconfig)
 		return -ENOMEM;
 
-- 
2.34.1


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

* [PATCH v3 2/4] drm/xe: Update xe_ttm_access_memory to use GPU for non-visible access
  2025-04-10  4:06 [PATCH v3 0/4] Large devcoredump file support Matthew Brost
  2025-04-10  4:06 ` [PATCH v3 1/4] drm/xe: Add devcoredump chunking Matthew Brost
@ 2025-04-10  4:06 ` Matthew Brost
  2025-04-10  4:06 ` [PATCH v3 3/4] drm/print: Add drm_printer_is_full Matthew Brost
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: Matthew Brost @ 2025-04-10  4:06 UTC (permalink / raw)
  To: intel-xe

Add migrate layer functions to access VRAM and update
xe_ttm_access_memory to use for non-visible access and large (more than
16k) BO access. 8G devcoreump on BMG observed 3 minute CPU copy time vs.
3s GPU copy time.

v4:
 - Fix non-page aligned accesses
 - Add support for small / unaligned access
 - Update commit message indicating migrate used for large accesses (Auld)
 - Fix warning in xe_res_cursor for non-zero offset
v5:
 - Fix 32 bit build (CI)
v6:
 - Rebase and use SVM migration copy functions
v7:
 - Fix build error (CI)
v8:
 - Remove ifdef around VRAM copy functions (CI)
 - Use break statement in dma unmmaping (Jonathan)
 - Use if/else rather than goto (Jonathan)
 - Use single return point (Jonathan)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
---
 drivers/gpu/drm/xe/xe_bo.c      |  15 ++-
 drivers/gpu/drm/xe/xe_migrate.c | 218 +++++++++++++++++++++++++++++---
 drivers/gpu/drm/xe/xe_migrate.h |   4 +
 3 files changed, 218 insertions(+), 19 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
index c337790c81ae..5d3884484c9e 100644
--- a/drivers/gpu/drm/xe/xe_bo.c
+++ b/drivers/gpu/drm/xe/xe_bo.c
@@ -1455,6 +1455,7 @@ static int xe_ttm_access_memory(struct ttm_buffer_object *ttm_bo,
 	struct xe_res_cursor cursor;
 	struct xe_vram_region *vram;
 	int bytes_left = len;
+	int err = 0;
 
 	xe_bo_assert_held(bo);
 	xe_device_assert_mem_access(xe);
@@ -1462,9 +1463,14 @@ static int xe_ttm_access_memory(struct ttm_buffer_object *ttm_bo,
 	if (!mem_type_is_vram(ttm_bo->resource->mem_type))
 		return -EIO;
 
-	/* FIXME: Use GPU for non-visible VRAM */
-	if (!xe_ttm_resource_visible(ttm_bo->resource))
-		return -EIO;
+	if (!xe_ttm_resource_visible(ttm_bo->resource) || len >= SZ_16K) {
+		struct xe_migrate *migrate =
+			mem_type_to_migrate(xe, ttm_bo->resource->mem_type);
+
+		err = xe_migrate_access_memory(migrate, bo, offset, buf, len,
+					       write);
+		goto out;
+	}
 
 	vram = res_to_mem_region(ttm_bo->resource);
 	xe_res_first(ttm_bo->resource, offset & PAGE_MASK,
@@ -1488,7 +1494,8 @@ static int xe_ttm_access_memory(struct ttm_buffer_object *ttm_bo,
 			xe_res_next(&cursor, PAGE_SIZE);
 	} while (bytes_left);
 
-	return len;
+out:
+	return err ?: len;
 }
 
 const struct ttm_device_funcs xe_ttm_funcs = {
diff --git a/drivers/gpu/drm/xe/xe_migrate.c b/drivers/gpu/drm/xe/xe_migrate.c
index 3777cc30d688..8f8e9fdfb2a8 100644
--- a/drivers/gpu/drm/xe/xe_migrate.c
+++ b/drivers/gpu/drm/xe/xe_migrate.c
@@ -669,6 +669,7 @@ static void emit_copy(struct xe_gt *gt, struct xe_bb *bb,
 	u32 mocs = 0;
 	u32 tile_y = 0;
 
+	xe_gt_assert(gt, !(pitch & 3));
 	xe_gt_assert(gt, size / pitch <= S16_MAX);
 	xe_gt_assert(gt, pitch / 4 <= S16_MAX);
 	xe_gt_assert(gt, pitch <= U16_MAX);
@@ -1546,7 +1547,6 @@ void xe_migrate_wait(struct xe_migrate *m)
 		dma_fence_wait(m->fence, false);
 }
 
-#if IS_ENABLED(CONFIG_DRM_XE_DEVMEM_MIRROR)
 static u32 pte_update_cmd_size(u64 size)
 {
 	u32 num_dword;
@@ -1604,8 +1604,12 @@ enum xe_migrate_copy_dir {
 	XE_MIGRATE_COPY_TO_SRAM,
 };
 
+#define XE_CACHELINE_BYTES	64ull
+#define XE_CACHELINE_MASK	(XE_CACHELINE_BYTES - 1)
+
 static struct dma_fence *xe_migrate_vram(struct xe_migrate *m,
-					 unsigned long npages,
+					 unsigned long len,
+					 unsigned long sram_offset,
 					 dma_addr_t *sram_addr, u64 vram_addr,
 					 const enum xe_migrate_copy_dir dir)
 {
@@ -1615,17 +1619,21 @@ static struct dma_fence *xe_migrate_vram(struct xe_migrate *m,
 	struct dma_fence *fence = NULL;
 	u32 batch_size = 2;
 	u64 src_L0_ofs, dst_L0_ofs;
-	u64 round_update_size;
 	struct xe_sched_job *job;
 	struct xe_bb *bb;
 	u32 update_idx, pt_slot = 0;
+	unsigned long npages = DIV_ROUND_UP(len + sram_offset, PAGE_SIZE);
+	unsigned int pitch = len >= PAGE_SIZE && !(len & ~PAGE_MASK) ?
+		PAGE_SIZE : 4;
 	int err;
 
-	if (npages * PAGE_SIZE > MAX_PREEMPTDISABLE_TRANSFER)
-		return ERR_PTR(-EINVAL);
+	if (drm_WARN_ON(&xe->drm, (len & XE_CACHELINE_MASK) ||
+			(sram_offset | vram_addr) & XE_CACHELINE_MASK))
+		return ERR_PTR(-EOPNOTSUPP);
 
-	round_update_size = npages * PAGE_SIZE;
-	batch_size += pte_update_cmd_size(round_update_size);
+	xe_assert(xe, npages * PAGE_SIZE <= MAX_PREEMPTDISABLE_TRANSFER);
+
+	batch_size += pte_update_cmd_size(len);
 	batch_size += EMIT_COPY_DW;
 
 	bb = xe_bb_new(gt, batch_size, use_usm_batch);
@@ -1635,22 +1643,21 @@ static struct dma_fence *xe_migrate_vram(struct xe_migrate *m,
 	}
 
 	build_pt_update_batch_sram(m, bb, pt_slot * XE_PAGE_SIZE,
-				   sram_addr, round_update_size);
+				   sram_addr, len + sram_offset);
 
 	if (dir == XE_MIGRATE_COPY_TO_VRAM) {
-		src_L0_ofs = xe_migrate_vm_addr(pt_slot, 0);
+		src_L0_ofs = xe_migrate_vm_addr(pt_slot, 0) + sram_offset;
 		dst_L0_ofs = xe_migrate_vram_ofs(xe, vram_addr, false);
 
 	} else {
 		src_L0_ofs = xe_migrate_vram_ofs(xe, vram_addr, false);
-		dst_L0_ofs = xe_migrate_vm_addr(pt_slot, 0);
+		dst_L0_ofs = xe_migrate_vm_addr(pt_slot, 0) + sram_offset;
 	}
 
 	bb->cs[bb->len++] = MI_BATCH_BUFFER_END;
 	update_idx = bb->len;
 
-	emit_copy(gt, bb, src_L0_ofs, dst_L0_ofs, round_update_size,
-		  XE_PAGE_SIZE);
+	emit_copy(gt, bb, src_L0_ofs, dst_L0_ofs, len, pitch);
 
 	job = xe_bb_create_migration_job(m->q, bb,
 					 xe_migrate_batch_base(m, use_usm_batch),
@@ -1698,7 +1705,7 @@ struct dma_fence *xe_migrate_to_vram(struct xe_migrate *m,
 				     dma_addr_t *src_addr,
 				     u64 dst_addr)
 {
-	return xe_migrate_vram(m, npages, src_addr, dst_addr,
+	return xe_migrate_vram(m, npages * PAGE_SIZE, 0, src_addr, dst_addr,
 			       XE_MIGRATE_COPY_TO_VRAM);
 }
 
@@ -1719,11 +1726,192 @@ struct dma_fence *xe_migrate_from_vram(struct xe_migrate *m,
 				       u64 src_addr,
 				       dma_addr_t *dst_addr)
 {
-	return xe_migrate_vram(m, npages, dst_addr, src_addr,
+	return xe_migrate_vram(m, npages * PAGE_SIZE, 0, dst_addr, src_addr,
 			       XE_MIGRATE_COPY_TO_SRAM);
 }
 
-#endif
+static void xe_migrate_dma_unmap(struct xe_device *xe, dma_addr_t *dma_addr,
+				 int len, int write)
+{
+	unsigned long i, npages = DIV_ROUND_UP(len, PAGE_SIZE);
+
+	for (i = 0; i < npages; ++i) {
+		if (!dma_addr[i])
+			break;
+
+		dma_unmap_page(xe->drm.dev, dma_addr[i], PAGE_SIZE,
+			       write ? DMA_TO_DEVICE : DMA_FROM_DEVICE);
+	}
+	kfree(dma_addr);
+}
+
+static dma_addr_t *xe_migrate_dma_map(struct xe_device *xe,
+				      void *buf, int len, int write)
+{
+	dma_addr_t *dma_addr;
+	unsigned long i, npages = DIV_ROUND_UP(len, PAGE_SIZE);
+
+	dma_addr = kcalloc(npages, sizeof(*dma_addr), GFP_KERNEL);
+	if (!dma_addr)
+		return ERR_PTR(-ENOMEM);
+
+	for (i = 0; i < npages; ++i) {
+		dma_addr_t addr;
+		struct page *page;
+
+		if (is_vmalloc_addr(buf))
+			page = vmalloc_to_page(buf);
+		else
+			page = virt_to_page(buf);
+
+		addr = dma_map_page(xe->drm.dev,
+				    page, 0, PAGE_SIZE,
+				    write ? DMA_TO_DEVICE :
+				    DMA_FROM_DEVICE);
+		if (dma_mapping_error(xe->drm.dev, addr))
+			goto err_fault;
+
+		dma_addr[i] = addr;
+		buf += PAGE_SIZE;
+	}
+
+	return dma_addr;
+
+err_fault:
+	xe_migrate_dma_unmap(xe, dma_addr, len, write);
+	return ERR_PTR(-EFAULT);
+}
+
+/**
+ * xe_migrate_access_memory - Access memory of a BO via GPU
+ *
+ * @m: The migration context.
+ * @bo: buffer object
+ * @offset: access offset into buffer object
+ * @buf: pointer to caller memory to read into or write from
+ * @len: length of access
+ * @write: write access
+ *
+ * Access memory of a BO via GPU either reading in or writing from a passed in
+ * pointer. Pointer is dma mapped for GPU access and GPU commands are issued to
+ * read to or write from pointer.
+ *
+ * Returns:
+ * 0 if successful, negative error code on failure.
+ */
+int xe_migrate_access_memory(struct xe_migrate *m, struct xe_bo *bo,
+			     unsigned long offset, void *buf, int len,
+			     int write)
+{
+	struct xe_tile *tile = m->tile;
+	struct xe_device *xe = tile_to_xe(tile);
+	struct xe_res_cursor cursor;
+	struct dma_fence *fence = NULL;
+	dma_addr_t *dma_addr;
+	unsigned long page_offset = (unsigned long)buf & ~PAGE_MASK;
+	int bytes_left = len, current_page = 0;
+	void *orig_buf = buf;
+
+	xe_bo_assert_held(bo);
+
+	/* Use bounce buffer for small access and unaligned access */
+	if (len & XE_CACHELINE_MASK ||
+	    ((uintptr_t)buf | offset) & XE_CACHELINE_MASK) {
+		int buf_offset = 0;
+
+		/*
+		 * Less than ideal for large unaligned access but this should be
+		 * fairly rare, can fixup if this becomes common.
+		 */
+		do {
+			u8 bounce[XE_CACHELINE_BYTES];
+			void *ptr = (void *)bounce;
+			int err;
+			int copy_bytes = min_t(int, bytes_left,
+					       XE_CACHELINE_BYTES -
+					       (offset & XE_CACHELINE_MASK));
+			int ptr_offset = offset & XE_CACHELINE_MASK;
+
+			err = xe_migrate_access_memory(m, bo,
+						       offset &
+						       ~XE_CACHELINE_MASK,
+						       (void *)ptr,
+						       sizeof(bounce), 0);
+			if (err)
+				return err;
+
+			if (write) {
+				memcpy(ptr + ptr_offset, buf + buf_offset, copy_bytes);
+
+				err = xe_migrate_access_memory(m, bo,
+							       offset & ~XE_CACHELINE_MASK,
+							       (void *)ptr,
+							       sizeof(bounce), 0);
+				if (err)
+					return err;
+			} else {
+				memcpy(buf + buf_offset, ptr + ptr_offset,
+				       copy_bytes);
+			}
+
+			bytes_left -= copy_bytes;
+			buf_offset += copy_bytes;
+			offset += copy_bytes;
+		} while (bytes_left);
+
+		return 0;
+	}
+
+	dma_addr = xe_migrate_dma_map(xe, buf, len + page_offset, write);
+	if (IS_ERR(dma_addr))
+		return PTR_ERR(dma_addr);
+
+	xe_res_first(bo->ttm.resource, offset, bo->size - offset, &cursor);
+
+	do {
+		struct dma_fence *__fence;
+		u64 vram_addr = vram_region_gpu_offset(bo->ttm.resource) +
+			cursor.start;
+		int current_bytes;
+
+		if (cursor.size > MAX_PREEMPTDISABLE_TRANSFER)
+			current_bytes = min_t(int, bytes_left,
+					      MAX_PREEMPTDISABLE_TRANSFER);
+		else
+			current_bytes = min_t(int, bytes_left, cursor.size);
+
+		if (fence)
+			dma_fence_put(fence);
+
+		__fence = xe_migrate_vram(m, current_bytes,
+					  (unsigned long)buf & ~PAGE_MASK,
+					  dma_addr + current_page,
+					  vram_addr, write ?
+					  XE_MIGRATE_COPY_TO_VRAM :
+					  XE_MIGRATE_COPY_TO_SRAM);
+		if (IS_ERR(__fence)) {
+			if (fence)
+				dma_fence_wait(fence, false);
+			fence = __fence;
+			goto out_err;
+		}
+		fence = __fence;
+
+		buf += current_bytes;
+		offset += current_bytes;
+		current_page = (int)(buf - orig_buf) / PAGE_SIZE;
+		bytes_left -= current_bytes;
+		if (bytes_left)
+			xe_res_next(&cursor, current_bytes);
+	} while (bytes_left);
+
+	dma_fence_wait(fence, false);
+	dma_fence_put(fence);
+
+out_err:
+	xe_migrate_dma_unmap(xe, dma_addr, len + page_offset, write);
+	return IS_ERR(fence) ? PTR_ERR(fence) : 0;
+}
 
 #if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST)
 #include "tests/xe_migrate.c"
diff --git a/drivers/gpu/drm/xe/xe_migrate.h b/drivers/gpu/drm/xe/xe_migrate.h
index 6ff9a963425c..fb9839c1bae0 100644
--- a/drivers/gpu/drm/xe/xe_migrate.h
+++ b/drivers/gpu/drm/xe/xe_migrate.h
@@ -112,6 +112,10 @@ struct dma_fence *xe_migrate_copy(struct xe_migrate *m,
 				  struct ttm_resource *dst,
 				  bool copy_only_ccs);
 
+int xe_migrate_access_memory(struct xe_migrate *m, struct xe_bo *bo,
+			     unsigned long offset, void *buf, int len,
+			     int write);
+
 #define XE_MIGRATE_CLEAR_FLAG_BO_DATA		BIT(0)
 #define XE_MIGRATE_CLEAR_FLAG_CCS_DATA		BIT(1)
 #define XE_MIGRATE_CLEAR_FLAG_FULL	(XE_MIGRATE_CLEAR_FLAG_BO_DATA | \
-- 
2.34.1


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

* [PATCH v3 3/4] drm/print: Add drm_printer_is_full
  2025-04-10  4:06 [PATCH v3 0/4] Large devcoredump file support Matthew Brost
  2025-04-10  4:06 ` [PATCH v3 1/4] drm/xe: Add devcoredump chunking Matthew Brost
  2025-04-10  4:06 ` [PATCH v3 2/4] drm/xe: Update xe_ttm_access_memory to use GPU for non-visible access Matthew Brost
@ 2025-04-10  4:06 ` Matthew Brost
  2025-04-10 12:06   ` Jani Nikula
  2025-04-10  4:06 ` [PATCH v3 4/4] drm/xe: Abort printing coredump in VM printer output if full Matthew Brost
                   ` (4 subsequent siblings)
  7 siblings, 1 reply; 13+ messages in thread
From: Matthew Brost @ 2025-04-10  4:06 UTC (permalink / raw)
  To: intel-xe

Add drm_printer_is_full which indicates if a drm printer's output is
full. Useful to short circuit coredump printing once printer's output is
full.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
---
 include/drm/drm_print.h | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h
index f31eba1c7cab..db7517ee1b19 100644
--- a/include/drm/drm_print.h
+++ b/include/drm/drm_print.h
@@ -242,6 +242,23 @@ struct drm_print_iterator {
 	ssize_t offset;
 };
 
+/**
+ * drm_printer_is_full() - DRM printer output is full
+ * @p: DRM printer
+ *
+ * DRM printer output is full, useful to short circuit coredump printing once
+ * printer is full.
+ *
+ * RETURNS:
+ * True if DRM printer output buffer is full, False otherwise
+ */
+static inline bool drm_printer_is_full(struct drm_printer *p)
+{
+	struct drm_print_iterator *iterator = p->arg;
+
+	return !iterator->remain;
+}
+
 /**
  * drm_coredump_printer - construct a &drm_printer that can output to a buffer
  * from the read function for devcoredump
-- 
2.34.1


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

* [PATCH v3 4/4] drm/xe: Abort printing coredump in VM printer output if full
  2025-04-10  4:06 [PATCH v3 0/4] Large devcoredump file support Matthew Brost
                   ` (2 preceding siblings ...)
  2025-04-10  4:06 ` [PATCH v3 3/4] drm/print: Add drm_printer_is_full Matthew Brost
@ 2025-04-10  4:06 ` Matthew Brost
  2025-04-10  4:11 ` ✓ CI.Patch_applied: success for Large devcoredump file support Patchwork
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: Matthew Brost @ 2025-04-10  4:06 UTC (permalink / raw)
  To: intel-xe

Abort printing coredump in VM printer output if full. Helps speedup
large coredumps which need to walked multiple times in
xe_devcoredump_read.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
---
 drivers/gpu/drm/xe/xe_vm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
index 0c69ef6b5ec5..44e2d50c7ce1 100644
--- a/drivers/gpu/drm/xe/xe_vm.c
+++ b/drivers/gpu/drm/xe/xe_vm.c
@@ -3866,6 +3866,9 @@ void xe_vm_snapshot_print(struct xe_vm_snapshot *snap, struct drm_printer *p)
 		}
 
 		drm_puts(p, "\n");
+
+		if (drm_printer_is_full(p))
+			return;
 	}
 }
 
-- 
2.34.1


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

* ✓ CI.Patch_applied: success for Large devcoredump file support
  2025-04-10  4:06 [PATCH v3 0/4] Large devcoredump file support Matthew Brost
                   ` (3 preceding siblings ...)
  2025-04-10  4:06 ` [PATCH v3 4/4] drm/xe: Abort printing coredump in VM printer output if full Matthew Brost
@ 2025-04-10  4:11 ` Patchwork
  2025-04-10  4:11 ` ✓ CI.checkpatch: " Patchwork
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: Patchwork @ 2025-04-10  4:11 UTC (permalink / raw)
  To: Matthew Brost; +Cc: intel-xe

== Series Details ==

Series: Large devcoredump file support
URL   : https://patchwork.freedesktop.org/series/147503/
State : success

== Summary ==

=== Applying kernel patches on branch 'drm-tip' with base: ===
Base commit: c54633598106 drm-tip: 2025y-04m-10d-02h-15m-42s UTC integration manifest
=== git am output follows ===
Applying: drm/xe: Add devcoredump chunking
Applying: drm/xe: Update xe_ttm_access_memory to use GPU for non-visible access
Applying: drm/print: Add drm_printer_is_full
Applying: drm/xe: Abort printing coredump in VM printer output if full



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

* ✓ CI.checkpatch: success for Large devcoredump file support
  2025-04-10  4:06 [PATCH v3 0/4] Large devcoredump file support Matthew Brost
                   ` (4 preceding siblings ...)
  2025-04-10  4:11 ` ✓ CI.Patch_applied: success for Large devcoredump file support Patchwork
@ 2025-04-10  4:11 ` Patchwork
  2025-04-10  4:12 ` ✓ CI.KUnit: " Patchwork
  2025-04-10  4:28 ` ✗ CI.Build: failure " Patchwork
  7 siblings, 0 replies; 13+ messages in thread
From: Patchwork @ 2025-04-10  4:11 UTC (permalink / raw)
  To: Matthew Brost; +Cc: intel-xe

== Series Details ==

Series: Large devcoredump file support
URL   : https://patchwork.freedesktop.org/series/147503/
State : success

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
13a92ce9fd458ebd6064f23cec8c39c53d02ed26
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 5e1cc130e4ad491048ebe6eb52a175b48c08676f
Author: Matthew Brost <matthew.brost@intel.com>
Date:   Wed Apr 9 21:06:22 2025 -0700

    drm/xe: Abort printing coredump in VM printer output if full
    
    Abort printing coredump in VM printer output if full. Helps speedup
    large coredumps which need to walked multiple times in
    xe_devcoredump_read.
    
    Signed-off-by: Matthew Brost <matthew.brost@intel.com>
    Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
+ /mt/dim checkpatch c54633598106dbdb97f3aa589587b8176009b6d8 drm-intel
10a556e9e78a drm/xe: Add devcoredump chunking
d7c72e3d9820 drm/xe: Update xe_ttm_access_memory to use GPU for non-visible access
296fffce9e01 drm/print: Add drm_printer_is_full
5e1cc130e4ad drm/xe: Abort printing coredump in VM printer output if full



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

* ✓ CI.KUnit: success for Large devcoredump file support
  2025-04-10  4:06 [PATCH v3 0/4] Large devcoredump file support Matthew Brost
                   ` (5 preceding siblings ...)
  2025-04-10  4:11 ` ✓ CI.checkpatch: " Patchwork
@ 2025-04-10  4:12 ` Patchwork
  2025-04-10  4:28 ` ✗ CI.Build: failure " Patchwork
  7 siblings, 0 replies; 13+ messages in thread
From: Patchwork @ 2025-04-10  4:12 UTC (permalink / raw)
  To: Matthew Brost; +Cc: intel-xe

== Series Details ==

Series: Large devcoredump file support
URL   : https://patchwork.freedesktop.org/series/147503/
State : success

== Summary ==

+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
[04:11:27] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[04:11:31] 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
[04:11:58] Starting KUnit Kernel (1/1)...
[04:11:58] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[04:11:58] ================== guc_buf (11 subtests) ===================
[04:11:58] [PASSED] test_smallest
[04:11:58] [PASSED] test_largest
[04:11:58] [PASSED] test_granular
[04:11:58] [PASSED] test_unique
[04:11:58] [PASSED] test_overlap
[04:11:58] [PASSED] test_reusable
[04:11:58] [PASSED] test_too_big
[04:11:58] [PASSED] test_flush
[04:11:58] [PASSED] test_lookup
[04:11:58] [PASSED] test_data
[04:11:58] [PASSED] test_class
[04:11:58] ===================== [PASSED] guc_buf =====================
[04:11:58] =================== guc_dbm (7 subtests) ===================
[04:11:58] [PASSED] test_empty
[04:11:58] [PASSED] test_default
[04:11:58] ======================== test_size  ========================
[04:11:58] [PASSED] 4
[04:11:58] [PASSED] 8
[04:11:58] [PASSED] 32
[04:11:58] [PASSED] 256
[04:11:58] ==================== [PASSED] test_size ====================
[04:11:58] ======================= test_reuse  ========================
[04:11:58] [PASSED] 4
[04:11:58] [PASSED] 8
[04:11:58] [PASSED] 32
[04:11:58] [PASSED] 256
[04:11:58] =================== [PASSED] test_reuse ====================
[04:11:58] =================== test_range_overlap  ====================
[04:11:58] [PASSED] 4
[04:11:58] [PASSED] 8
[04:11:58] [PASSED] 32
[04:11:58] [PASSED] 256
[04:11:58] =============== [PASSED] test_range_overlap ================
[04:11:58] =================== test_range_compact  ====================
[04:11:58] [PASSED] 4
[04:11:58] [PASSED] 8
[04:11:58] [PASSED] 32
[04:11:58] [PASSED] 256
[04:11:58] =============== [PASSED] test_range_compact ================
[04:11:58] ==================== test_range_spare  =====================
[04:11:58] [PASSED] 4
[04:11:58] [PASSED] 8
[04:11:58] [PASSED] 32
[04:11:58] [PASSED] 256
[04:11:58] ================ [PASSED] test_range_spare =================
[04:11:58] ===================== [PASSED] guc_dbm =====================
[04:11:58] =================== guc_idm (6 subtests) ===================
[04:11:58] [PASSED] bad_init
[04:11:58] [PASSED] no_init
[04:11:58] [PASSED] init_fini
[04:11:58] [PASSED] check_used
[04:11:58] [PASSED] check_quota
[04:11:58] [PASSED] check_all
[04:11:58] ===================== [PASSED] guc_idm =====================
[04:11:58] ================== no_relay (3 subtests) ===================
[04:11:58] [PASSED] xe_drops_guc2pf_if_not_ready
[04:11:58] [PASSED] xe_drops_guc2vf_if_not_ready
[04:11:58] [PASSED] xe_rejects_send_if_not_ready
[04:11:58] ==================== [PASSED] no_relay =====================
[04:11:58] ================== pf_relay (14 subtests) ==================
[04:11:58] [PASSED] pf_rejects_guc2pf_too_short
[04:11:58] [PASSED] pf_rejects_guc2pf_too_long
[04:11:58] [PASSED] pf_rejects_guc2pf_no_payload
[04:11:58] [PASSED] pf_fails_no_payload
[04:11:58] [PASSED] pf_fails_bad_origin
[04:11:58] [PASSED] pf_fails_bad_type
[04:11:58] [PASSED] pf_txn_reports_error
[04:11:58] [PASSED] pf_txn_sends_pf2guc
[04:11:58] [PASSED] pf_sends_pf2guc
[04:11:58] [SKIPPED] pf_loopback_nop
[04:11:58] [SKIPPED] pf_loopback_echo
[04:11:58] [SKIPPED] pf_loopback_fail
[04:11:58] [SKIPPED] pf_loopback_busy
[04:11:58] [SKIPPED] pf_loopback_retry
[04:11:58] ==================== [PASSED] pf_relay =====================
[04:11:58] ================== vf_relay (3 subtests) ===================
[04:11:58] [PASSED] vf_rejects_guc2vf_too_short
[04:11:58] [PASSED] vf_rejects_guc2vf_too_long
[04:11:58] [PASSED] vf_rejects_guc2vf_no_payload
[04:11:58] ==================== [PASSED] vf_relay =====================
[04:11:58] ================= pf_service (11 subtests) =================
[04:11:58] [PASSED] pf_negotiate_any
[04:11:58] [PASSED] pf_negotiate_base_match
[04:11:58] [PASSED] pf_negotiate_base_newer
[04:11:58] [PASSED] pf_negotiate_base_next
[04:11:58] [SKIPPED] pf_negotiate_base_older
[04:11:58] [PASSED] pf_negotiate_base_prev
[04:11:58] [PASSED] pf_negotiate_latest_match
[04:11:58] [PASSED] pf_negotiate_latest_newer
[04:11:58] [PASSED] pf_negotiate_latest_next
[04:11:58] [SKIPPED] pf_negotiate_latest_older
[04:11:58] [SKIPPED] pf_negotiate_latest_prev
[04:11:58] =================== [PASSED] pf_service ====================
[04:11:58] ===================== lmtt (1 subtest) =====================
[04:11:58] ======================== test_ops  =========================
[04:11:58] [PASSED] 2-level
[04:11:58] [PASSED] multi-level
[04:11:58] ==================== [PASSED] test_ops =====================
[04:11:58] ====================== [PASSED] lmtt =======================
[04:11:58] =================== xe_mocs (2 subtests) ===================
[04:11:58] ================ xe_live_mocs_kernel_kunit  ================
[04:11:58] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[04:11:58] ================ xe_live_mocs_reset_kunit  =================
[04:11:58] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[04:11:58] ==================== [SKIPPED] xe_mocs =====================
[04:11:58] ================= xe_migrate (2 subtests) ==================
[04:11:58] ================= xe_migrate_sanity_kunit  =================
[04:11:58] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[04:11:58] ================== xe_validate_ccs_kunit  ==================
[04:11:58] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[04:11:58] =================== [SKIPPED] xe_migrate ===================
[04:11:58] ================== xe_dma_buf (1 subtest) ==================
[04:11:58] ==================== xe_dma_buf_kunit  =====================
[04:11:58] ================ [SKIPPED] xe_dma_buf_kunit ================
[04:11:58] =================== [SKIPPED] xe_dma_buf ===================
[04:11:58] ================= xe_bo_shrink (1 subtest) =================
[04:11:58] =================== xe_bo_shrink_kunit  ====================
[04:11:58] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[04:11:58] ================== [SKIPPED] xe_bo_shrink ==================
[04:11:58] ==================== xe_bo (2 subtests) ====================
[04:11:58] ================== xe_ccs_migrate_kunit  ===================
[04:11:58] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[04:11:58] ==================== xe_bo_evict_kunit  ====================
[04:11:58] =============== [SKIPPED] xe_bo_evict_kunit ================
[04:11:58] ===================== [SKIPPED] xe_bo ======================
[04:11:58] ==================== args (11 subtests) ====================
[04:11:58] [PASSED] count_args_test
[04:11:58] [PASSED] call_args_example
[04:11:58] [PASSED] call_args_test
[04:11:58] [PASSED] drop_first_arg_example
[04:11:58] [PASSED] drop_first_arg_test
[04:11:58] [PASSED] first_arg_example
[04:11:58] [PASSED] first_arg_test
[04:11:58] [PASSED] last_arg_example
[04:11:58] [PASSED] last_arg_test
[04:11:58] [PASSED] pick_arg_example
[04:11:58] [PASSED] sep_comma_example
[04:11:58] ====================== [PASSED] args =======================
[04:11:58] =================== xe_pci (2 subtests) ====================
[04:11:58] [PASSED] xe_gmdid_graphics_ip
[04:11:58] [PASSED] xe_gmdid_media_ip
[04:11:58] ===================== [PASSED] xe_pci ======================
[04:11:58] =================== xe_rtp (2 subtests) ====================
[04:11:58] =============== xe_rtp_process_to_sr_tests  ================
[04:11:58] [PASSED] coalesce-same-reg
[04:11:58] [PASSED] no-match-no-add
[04:11:58] [PASSED] match-or
[04:11:58] [PASSED] match-or-xfail
[04:11:58] [PASSED] no-match-no-add-multiple-rules
[04:11:58] [PASSED] two-regs-two-entries
[04:11:58] [PASSED] clr-one-set-other
[04:11:58] [PASSED] set-field
[04:11:58] [PASSED] conflict-duplicate
[04:11:58] [PASSED] conflict-not-disjoint
stty: 'standard input': Inappropriate ioctl for device
[04:11:58] [PASSED] conflict-reg-type
[04:11:58] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[04:11:58] ================== xe_rtp_process_tests  ===================
[04:11:58] [PASSED] active1
[04:11:58] [PASSED] active2
[04:11:58] [PASSED] active-inactive
[04:11:58] [PASSED] inactive-active
[04:11:58] [PASSED] inactive-1st_or_active-inactive
[04:11:58] [PASSED] inactive-2nd_or_active-inactive
[04:11:58] [PASSED] inactive-last_or_active-inactive
[04:11:58] [PASSED] inactive-no_or_active-inactive
[04:11:58] ============== [PASSED] xe_rtp_process_tests ===============
[04:11:58] ===================== [PASSED] xe_rtp ======================
[04:11:58] ==================== xe_wa (1 subtest) =====================
[04:11:58] ======================== xe_wa_gt  =========================
[04:11:58] [PASSED] TIGERLAKE (B0)
[04:11:58] [PASSED] DG1 (A0)
[04:11:58] [PASSED] DG1 (B0)
[04:11:58] [PASSED] ALDERLAKE_S (A0)
[04:11:58] [PASSED] ALDERLAKE_S (B0)
[04:11:58] [PASSED] ALDERLAKE_S (C0)
[04:11:58] [PASSED] ALDERLAKE_S (D0)
[04:11:58] [PASSED] ALDERLAKE_P (A0)
[04:11:58] [PASSED] ALDERLAKE_P (B0)
[04:11:58] [PASSED] ALDERLAKE_P (C0)
[04:11:58] [PASSED] ALDERLAKE_S_RPLS (D0)
[04:11:58] [PASSED] ALDERLAKE_P_RPLU (E0)
[04:11:58] [PASSED] DG2_G10 (C0)
[04:11:58] [PASSED] DG2_G11 (B1)
[04:11:58] [PASSED] DG2_G12 (A1)
[04:11:58] [PASSED] METEORLAKE (g:A0, m:A0)
[04:11:58] [PASSED] METEORLAKE (g:A0, m:A0)
[04:11:58] [PASSED] METEORLAKE (g:A0, m:A0)
[04:11:58] [PASSED] LUNARLAKE (g:A0, m:A0)
[04:11:58] [PASSED] LUNARLAKE (g:B0, m:A0)
[04:11:58] [PASSED] BATTLEMAGE (g:A0, m:A1)
[04:11:58] ==================== [PASSED] xe_wa_gt =====================
[04:11:58] ====================== [PASSED] xe_wa ======================
[04:11:58] ============================================================
[04:11:58] Testing complete. Ran 133 tests: passed: 117, skipped: 16
[04:11:58] Elapsed time: 30.959s total, 4.180s configuring, 26.463s building, 0.285s running

+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig
[04:11:58] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[04:12:00] 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
[04:12:21] Starting KUnit Kernel (1/1)...
[04:12:21] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[04:12:21] == drm_test_atomic_get_connector_for_encoder (1 subtest) ===
[04:12:21] [PASSED] drm_test_drm_atomic_get_connector_for_encoder
[04:12:21] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ====
[04:12:21] =========== drm_validate_clone_mode (2 subtests) ===========
[04:12:21] ============== drm_test_check_in_clone_mode  ===============
[04:12:21] [PASSED] in_clone_mode
[04:12:21] [PASSED] not_in_clone_mode
[04:12:21] ========== [PASSED] drm_test_check_in_clone_mode ===========
[04:12:21] =============== drm_test_check_valid_clones  ===============
[04:12:21] [PASSED] not_in_clone_mode
[04:12:21] [PASSED] valid_clone
[04:12:21] [PASSED] invalid_clone
[04:12:21] =========== [PASSED] drm_test_check_valid_clones ===========
[04:12:21] ============= [PASSED] drm_validate_clone_mode =============
[04:12:21] ============= drm_validate_modeset (1 subtest) =============
[04:12:21] [PASSED] drm_test_check_connector_changed_modeset
[04:12:21] ============== [PASSED] drm_validate_modeset ===============
[04:12:21] ====== drm_test_bridge_get_current_state (2 subtests) ======
[04:12:21] [PASSED] drm_test_drm_bridge_get_current_state_atomic
[04:12:21] [PASSED] drm_test_drm_bridge_get_current_state_legacy
[04:12:21] ======== [PASSED] drm_test_bridge_get_current_state ========
[04:12:21] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ======
[04:12:21] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic
[04:12:21] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled
[04:12:21] [PASSED] drm_test_drm_bridge_helper_reset_crtc_legacy
[04:12:21] ======== [PASSED] drm_test_bridge_helper_reset_crtc ========
[04:12:21] ================== drm_buddy (7 subtests) ==================
[04:12:21] [PASSED] drm_test_buddy_alloc_limit
[04:12:21] [PASSED] drm_test_buddy_alloc_optimistic
[04:12:21] [PASSED] drm_test_buddy_alloc_pessimistic
[04:12:21] [PASSED] drm_test_buddy_alloc_pathological
[04:12:21] [PASSED] drm_test_buddy_alloc_contiguous
[04:12:21] [PASSED] drm_test_buddy_alloc_clear
[04:12:21] [PASSED] drm_test_buddy_alloc_range_bias
[04:12:21] ==================== [PASSED] drm_buddy ====================
[04:12:21] ============= drm_cmdline_parser (40 subtests) =============
[04:12:21] [PASSED] drm_test_cmdline_force_d_only
[04:12:21] [PASSED] drm_test_cmdline_force_D_only_dvi
[04:12:21] [PASSED] drm_test_cmdline_force_D_only_hdmi
[04:12:21] [PASSED] drm_test_cmdline_force_D_only_not_digital
[04:12:21] [PASSED] drm_test_cmdline_force_e_only
[04:12:21] [PASSED] drm_test_cmdline_res
[04:12:21] [PASSED] drm_test_cmdline_res_vesa
[04:12:21] [PASSED] drm_test_cmdline_res_vesa_rblank
[04:12:21] [PASSED] drm_test_cmdline_res_rblank
[04:12:21] [PASSED] drm_test_cmdline_res_bpp
[04:12:21] [PASSED] drm_test_cmdline_res_refresh
[04:12:21] [PASSED] drm_test_cmdline_res_bpp_refresh
[04:12:21] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced
[04:12:21] [PASSED] drm_test_cmdline_res_bpp_refresh_margins
[04:12:21] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off
[04:12:21] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on
[04:12:21] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog
[04:12:21] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital
[04:12:21] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on
[04:12:21] [PASSED] drm_test_cmdline_res_margins_force_on
[04:12:21] [PASSED] drm_test_cmdline_res_vesa_margins
[04:12:21] [PASSED] drm_test_cmdline_name
[04:12:21] [PASSED] drm_test_cmdline_name_bpp
[04:12:21] [PASSED] drm_test_cmdline_name_option
[04:12:21] [PASSED] drm_test_cmdline_name_bpp_option
[04:12:21] [PASSED] drm_test_cmdline_rotate_0
[04:12:21] [PASSED] drm_test_cmdline_rotate_90
[04:12:21] [PASSED] drm_test_cmdline_rotate_180
[04:12:21] [PASSED] drm_test_cmdline_rotate_270
[04:12:21] [PASSED] drm_test_cmdline_hmirror
[04:12:21] [PASSED] drm_test_cmdline_vmirror
[04:12:21] [PASSED] drm_test_cmdline_margin_options
[04:12:21] [PASSED] drm_test_cmdline_multiple_options
[04:12:21] [PASSED] drm_test_cmdline_bpp_extra_and_option
[04:12:21] [PASSED] drm_test_cmdline_extra_and_option
[04:12:21] [PASSED] drm_test_cmdline_freestanding_options
[04:12:21] [PASSED] drm_test_cmdline_freestanding_force_e_and_options
[04:12:21] [PASSED] drm_test_cmdline_panel_orientation
[04:12:21] ================ drm_test_cmdline_invalid  =================
[04:12:21] [PASSED] margin_only
[04:12:21] [PASSED] interlace_only
[04:12:21] [PASSED] res_missing_x
[04:12:21] [PASSED] res_missing_y
[04:12:21] [PASSED] res_bad_y
[04:12:21] [PASSED] res_missing_y_bpp
[04:12:21] [PASSED] res_bad_bpp
[04:12:21] [PASSED] res_bad_refresh
[04:12:21] [PASSED] res_bpp_refresh_force_on_off
[04:12:21] [PASSED] res_invalid_mode
[04:12:21] [PASSED] res_bpp_wrong_place_mode
[04:12:21] [PASSED] name_bpp_refresh
[04:12:21] [PASSED] name_refresh
[04:12:21] [PASSED] name_refresh_wrong_mode
[04:12:21] [PASSED] name_refresh_invalid_mode
[04:12:21] [PASSED] rotate_multiple
[04:12:21] [PASSED] rotate_invalid_val
[04:12:21] [PASSED] rotate_truncated
[04:12:21] [PASSED] invalid_option
[04:12:21] [PASSED] invalid_tv_option
[04:12:21] [PASSED] truncated_tv_option
[04:12:21] ============ [PASSED] drm_test_cmdline_invalid =============
[04:12:21] =============== drm_test_cmdline_tv_options  ===============
[04:12:21] [PASSED] NTSC
[04:12:21] [PASSED] NTSC_443
[04:12:21] [PASSED] NTSC_J
[04:12:21] [PASSED] PAL
[04:12:21] [PASSED] PAL_M
[04:12:21] [PASSED] PAL_N
[04:12:21] [PASSED] SECAM
[04:12:21] [PASSED] MONO_525
[04:12:21] [PASSED] MONO_625
[04:12:21] =========== [PASSED] drm_test_cmdline_tv_options ===========
[04:12:21] =============== [PASSED] drm_cmdline_parser ================
[04:12:21] ========== drmm_connector_hdmi_init (20 subtests) ==========
[04:12:21] [PASSED] drm_test_connector_hdmi_init_valid
[04:12:21] [PASSED] drm_test_connector_hdmi_init_bpc_8
[04:12:21] [PASSED] drm_test_connector_hdmi_init_bpc_10
[04:12:21] [PASSED] drm_test_connector_hdmi_init_bpc_12
[04:12:21] [PASSED] drm_test_connector_hdmi_init_bpc_invalid
[04:12:21] [PASSED] drm_test_connector_hdmi_init_bpc_null
[04:12:21] [PASSED] drm_test_connector_hdmi_init_formats_empty
[04:12:21] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb
[04:12:21] === drm_test_connector_hdmi_init_formats_yuv420_allowed  ===
[04:12:21] [PASSED] supported_formats=0x9 yuv420_allowed=1
[04:12:21] [PASSED] supported_formats=0x9 yuv420_allowed=0
[04:12:21] [PASSED] supported_formats=0x3 yuv420_allowed=1
[04:12:21] [PASSED] supported_formats=0x3 yuv420_allowed=0
[04:12:21] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[04:12:21] [PASSED] drm_test_connector_hdmi_init_null_ddc
[04:12:21] [PASSED] drm_test_connector_hdmi_init_null_product
[04:12:21] [PASSED] drm_test_connector_hdmi_init_null_vendor
[04:12:21] [PASSED] drm_test_connector_hdmi_init_product_length_exact
[04:12:21] [PASSED] drm_test_connector_hdmi_init_product_length_too_long
[04:12:21] [PASSED] drm_test_connector_hdmi_init_product_valid
[04:12:21] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact
[04:12:21] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long
[04:12:21] [PASSED] drm_test_connector_hdmi_init_vendor_valid
[04:12:21] ========= drm_test_connector_hdmi_init_type_valid  =========
[04:12:21] [PASSED] HDMI-A
[04:12:21] [PASSED] HDMI-B
[04:12:21] ===== [PASSED] drm_test_connector_hdmi_init_type_valid =====
[04:12:21] ======== drm_test_connector_hdmi_init_type_invalid  ========
[04:12:21] [PASSED] Unknown
[04:12:21] [PASSED] VGA
[04:12:21] [PASSED] DVI-I
[04:12:21] [PASSED] DVI-D
[04:12:21] [PASSED] DVI-A
[04:12:21] [PASSED] Composite
[04:12:21] [PASSED] SVIDEO
[04:12:21] [PASSED] LVDS
[04:12:21] [PASSED] Component
[04:12:21] [PASSED] DIN
[04:12:21] [PASSED] DP
[04:12:21] [PASSED] TV
[04:12:21] [PASSED] eDP
[04:12:21] [PASSED] Virtual
[04:12:21] [PASSED] DSI
[04:12:21] [PASSED] DPI
[04:12:21] [PASSED] Writeback
[04:12:21] [PASSED] SPI
[04:12:21] [PASSED] USB
[04:12:21] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ====
[04:12:21] ============ [PASSED] drmm_connector_hdmi_init =============
[04:12:21] ============= drmm_connector_init (3 subtests) =============
[04:12:21] [PASSED] drm_test_drmm_connector_init
[04:12:21] [PASSED] drm_test_drmm_connector_init_null_ddc
[04:12:21] ========= drm_test_drmm_connector_init_type_valid  =========
[04:12:21] [PASSED] Unknown
[04:12:21] [PASSED] VGA
[04:12:21] [PASSED] DVI-I
[04:12:21] [PASSED] DVI-D
[04:12:21] [PASSED] DVI-A
[04:12:21] [PASSED] Composite
[04:12:21] [PASSED] SVIDEO
[04:12:21] [PASSED] LVDS
[04:12:21] [PASSED] Component
[04:12:21] [PASSED] DIN
[04:12:21] [PASSED] DP
[04:12:21] [PASSED] HDMI-A
[04:12:21] [PASSED] HDMI-B
[04:12:21] [PASSED] TV
[04:12:21] [PASSED] eDP
[04:12:21] [PASSED] Virtual
[04:12:21] [PASSED] DSI
[04:12:21] [PASSED] DPI
[04:12:21] [PASSED] Writeback
[04:12:21] [PASSED] SPI
[04:12:21] [PASSED] USB
[04:12:21] ===== [PASSED] drm_test_drmm_connector_init_type_valid =====
[04:12:21] =============== [PASSED] drmm_connector_init ===============
[04:12:21] ========= drm_connector_dynamic_init (6 subtests) ==========
[04:12:21] [PASSED] drm_test_drm_connector_dynamic_init
[04:12:21] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc
[04:12:21] [PASSED] drm_test_drm_connector_dynamic_init_not_added
[04:12:21] [PASSED] drm_test_drm_connector_dynamic_init_properties
[04:12:21] ===== drm_test_drm_connector_dynamic_init_type_valid  ======
[04:12:21] [PASSED] Unknown
[04:12:21] [PASSED] VGA
[04:12:21] [PASSED] DVI-I
[04:12:21] [PASSED] DVI-D
[04:12:21] [PASSED] DVI-A
[04:12:21] [PASSED] Composite
[04:12:21] [PASSED] SVIDEO
[04:12:21] [PASSED] LVDS
[04:12:21] [PASSED] Component
[04:12:21] [PASSED] DIN
[04:12:21] [PASSED] DP
[04:12:21] [PASSED] HDMI-A
[04:12:21] [PASSED] HDMI-B
[04:12:21] [PASSED] TV
[04:12:21] [PASSED] eDP
[04:12:21] [PASSED] Virtual
[04:12:21] [PASSED] DSI
[04:12:21] [PASSED] DPI
[04:12:21] [PASSED] Writeback
[04:12:21] [PASSED] SPI
[04:12:21] [PASSED] USB
[04:12:21] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid ==
[04:12:21] ======== drm_test_drm_connector_dynamic_init_name  =========
[04:12:21] [PASSED] Unknown
[04:12:21] [PASSED] VGA
[04:12:21] [PASSED] DVI-I
[04:12:21] [PASSED] DVI-D
[04:12:21] [PASSED] DVI-A
[04:12:21] [PASSED] Composite
[04:12:21] [PASSED] SVIDEO
[04:12:21] [PASSED] LVDS
[04:12:21] [PASSED] Component
[04:12:21] [PASSED] DIN
[04:12:21] [PASSED] DP
[04:12:21] [PASSED] HDMI-A
[04:12:21] [PASSED] HDMI-B
[04:12:21] [PASSED] TV
[04:12:21] [PASSED] eDP
[04:12:21] [PASSED] Virtual
[04:12:21] [PASSED] DSI
[04:12:21] [PASSED] DPI
[04:12:21] [PASSED] Writeback
[04:12:21] [PASSED] SPI
[04:12:21] [PASSED] USB
[04:12:21] ==== [PASSED] drm_test_drm_connector_dynamic_init_name =====
[04:12:21] =========== [PASSED] drm_connector_dynamic_init ============
[04:12:21] ==== drm_connector_dynamic_register_early (4 subtests) =====
[04:12:21] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list
[04:12:21] [PASSED] drm_test_drm_connector_dynamic_register_early_defer
[04:12:21] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init
[04:12:21] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object
[04:12:21] ====== [PASSED] drm_connector_dynamic_register_early =======
[04:12:21] ======= drm_connector_dynamic_register (7 subtests) ========
[04:12:21] [PASSED] drm_test_drm_connector_dynamic_register_on_list
[04:12:21] [PASSED] drm_test_drm_connector_dynamic_register_no_defer
[04:12:21] [PASSED] drm_test_drm_connector_dynamic_register_no_init
[04:12:21] [PASSED] drm_test_drm_connector_dynamic_register_mode_object
[04:12:21] [PASSED] drm_test_drm_connector_dynamic_register_sysfs
[04:12:21] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name
[04:12:21] [PASSED] drm_test_drm_connector_dynamic_register_debugfs
[04:12:21] ========= [PASSED] drm_connector_dynamic_register ==========
[04:12:21] = drm_connector_attach_broadcast_rgb_property (2 subtests) =
[04:12:21] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property
[04:12:21] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector
[04:12:21] === [PASSED] drm_connector_attach_broadcast_rgb_property ===
[04:12:21] ========== drm_get_tv_mode_from_name (2 subtests) ==========
[04:12:21] ========== drm_test_get_tv_mode_from_name_valid  ===========
[04:12:21] [PASSED] NTSC
[04:12:21] [PASSED] NTSC-443
[04:12:21] [PASSED] NTSC-J
[04:12:21] [PASSED] PAL
[04:12:21] [PASSED] PAL-M
[04:12:21] [PASSED] PAL-N
[04:12:21] [PASSED] SECAM
[04:12:21] [PASSED] Mono
[04:12:21] ====== [PASSED] drm_test_get_tv_mode_from_name_valid =======
[04:12:21] [PASSED] drm_test_get_tv_mode_from_name_truncated
[04:12:21] ============ [PASSED] drm_get_tv_mode_from_name ============
[04:12:21] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) =
[04:12:21] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb
[04:12:21] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc
[04:12:21] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1
[04:12:21] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc
[04:12:21] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1
[04:12:21] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double
[04:12:21] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid  =
[04:12:21] [PASSED] VIC 96
[04:12:21] [PASSED] VIC 97
[04:12:21] [PASSED] VIC 101
[04:12:21] [PASSED] VIC 102
[04:12:21] [PASSED] VIC 106
[04:12:21] [PASSED] VIC 107
[04:12:21] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid ===
[04:12:21] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc
[04:12:21] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc
[04:12:21] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc
[04:12:21] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc
[04:12:21] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc
[04:12:21] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ====
[04:12:21] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) ==
[04:12:21] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name  ====
[04:12:21] [PASSED] Automatic
[04:12:21] [PASSED] Full
[04:12:21] [PASSED] Limited 16:235
[04:12:21] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name ===
[04:12:21] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid
[04:12:21] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ====
[04:12:21] == drm_hdmi_connector_get_output_format_name (2 subtests) ==
[04:12:21] === drm_test_drm_hdmi_connector_get_output_format_name  ====
[04:12:21] [PASSED] RGB
[04:12:21] [PASSED] YUV 4:2:0
[04:12:21] [PASSED] YUV 4:2:2
[04:12:21] [PASSED] YUV 4:4:4
[04:12:21] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name ===
[04:12:21] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid
[04:12:21] ==== [PASSED] drm_hdmi_connector_get_output_format_name ====
[04:12:21] ============= drm_damage_helper (21 subtests) ==============
[04:12:21] [PASSED] drm_test_damage_iter_no_damage
[04:12:21] [PASSED] drm_test_damage_iter_no_damage_fractional_src
[04:12:21] [PASSED] drm_test_damage_iter_no_damage_src_moved
[04:12:21] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved
[04:12:21] [PASSED] drm_test_damage_iter_no_damage_not_visible
[04:12:21] [PASSED] drm_test_damage_iter_no_damage_no_crtc
[04:12:21] [PASSED] drm_test_damage_iter_no_damage_no_fb
[04:12:21] [PASSED] drm_test_damage_iter_simple_damage
[04:12:21] [PASSED] drm_test_damage_iter_single_damage
[04:12:21] [PASSED] drm_test_damage_iter_single_damage_intersect_src
[04:12:21] [PASSED] drm_test_damage_iter_single_damage_outside_src
[04:12:21] [PASSED] drm_test_damage_iter_single_damage_fractional_src
[04:12:21] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src
[04:12:21] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src
[04:12:21] [PASSED] drm_test_damage_iter_single_damage_src_moved
[04:12:21] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved
[04:12:21] [PASSED] drm_test_damage_iter_damage
[04:12:21] [PASSED] drm_test_damage_iter_damage_one_intersect
[04:12:21] [PASSED] drm_test_damage_iter_damage_one_outside
[04:12:21] [PASSED] drm_test_damage_iter_damage_src_moved
[04:12:21] [PASSED] drm_test_damage_iter_damage_not_visible
[04:12:21] ================ [PASSED] drm_damage_helper ================
[04:12:21] ============== drm_dp_mst_helper (3 subtests) ==============
[04:12:21] ============== drm_test_dp_mst_calc_pbn_mode  ==============
[04:12:21] [PASSED] Clock 154000 BPP 30 DSC disabled
[04:12:21] [PASSED] Clock 234000 BPP 30 DSC disabled
[04:12:21] [PASSED] Clock 297000 BPP 24 DSC disabled
[04:12:21] [PASSED] Clock 332880 BPP 24 DSC enabled
[04:12:21] [PASSED] Clock 324540 BPP 24 DSC enabled
[04:12:21] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ==========
[04:12:21] ============== drm_test_dp_mst_calc_pbn_div  ===============
[04:12:21] [PASSED] Link rate 2000000 lane count 4
[04:12:21] [PASSED] Link rate 2000000 lane count 2
[04:12:21] [PASSED] Link rate 2000000 lane count 1
[04:12:21] [PASSED] Link rate 1350000 lane count 4
[04:12:21] [PASSED] Link rate 1350000 lane count 2
[04:12:21] [PASSED] Link rate 1350000 lane count 1
[04:12:21] [PASSED] Link rate 1000000 lane count 4
[04:12:21] [PASSED] Link rate 1000000 lane count 2
[04:12:21] [PASSED] Link rate 1000000 lane count 1
[04:12:21] [PASSED] Link rate 810000 lane count 4
[04:12:21] [PASSED] Link rate 810000 lane count 2
[04:12:21] [PASSED] Link rate 810000 lane count 1
[04:12:21] [PASSED] Link rate 540000 lane count 4
[04:12:21] [PASSED] Link rate 540000 lane count 2
[04:12:21] [PASSED] Link rate 540000 lane count 1
[04:12:21] [PASSED] Link rate 270000 lane count 4
[04:12:21] [PASSED] Link rate 270000 lane count 2
[04:12:21] [PASSED] Link rate 270000 lane count 1
[04:12:21] [PASSED] Link rate 162000 lane count 4
[04:12:21] [PASSED] Link rate 162000 lane count 2
[04:12:21] [PASSED] Link rate 162000 lane count 1
[04:12:21] ========== [PASSED] drm_test_dp_mst_calc_pbn_div ===========
[04:12:21] ========= drm_test_dp_mst_sideband_msg_req_decode  =========
[04:12:21] [PASSED] DP_ENUM_PATH_RESOURCES with port number
[04:12:21] [PASSED] DP_POWER_UP_PHY with port number
[04:12:21] [PASSED] DP_POWER_DOWN_PHY with port number
[04:12:21] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks
[04:12:21] [PASSED] DP_ALLOCATE_PAYLOAD with port number
[04:12:21] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI
[04:12:21] [PASSED] DP_ALLOCATE_PAYLOAD with PBN
[04:12:21] [PASSED] DP_QUERY_PAYLOAD with port number
[04:12:21] [PASSED] DP_QUERY_PAYLOAD with VCPI
[04:12:21] [PASSED] DP_REMOTE_DPCD_READ with port number
[04:12:21] [PASSED] DP_REMOTE_DPCD_READ with DPCD address
[04:12:21] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes
[04:12:21] [PASSED] DP_REMOTE_DPCD_WRITE with port number
[04:12:21] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address
[04:12:21] [PASSED] DP_REMOTE_DPCD_WRITE with data array
[04:12:21] [PASSED] DP_REMOTE_I2C_READ with port number
[04:12:21] [PASSED] DP_REMOTE_I2C_READ with I2C device ID
[04:12:21] [PASSED] DP_REMOTE_I2C_READ with transactions array
[04:12:21] [PASSED] DP_REMOTE_I2C_WRITE with port number
[04:12:21] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID
[04:12:21] [PASSED] DP_REMOTE_I2C_WRITE with data array
[04:12:21] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID
[04:12:21] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID
[04:12:21] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event
[04:12:21] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event
[04:12:21] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior
[04:12:21] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior
[04:12:21] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode =====
[04:12:21] ================ [PASSED] drm_dp_mst_helper ================
[04:12:21] ================== drm_exec (7 subtests) ===================
[04:12:21] [PASSED] sanitycheck
[04:12:21] [PASSED] test_lock
[04:12:21] [PASSED] test_lock_unlock
[04:12:21] [PASSED] test_duplicates
[04:12:21] [PASSED] test_prepare
[04:12:21] [PASSED] test_prepare_array
[04:12:21] [PASSED] test_multiple_loops
[04:12:21] ==================== [PASSED] drm_exec =====================
[04:12:21] =========== drm_format_helper_test (18 subtests) ===========
[04:12:21] ============== drm_test_fb_xrgb8888_to_gray8  ==============
[04:12:21] [PASSED] single_pixel_source_buffer
[04:12:21] [PASSED] single_pixel_clip_rectangle
[04:12:21] [PASSED] well_known_colors
[04:12:21] [PASSED] destination_pitch
[04:12:21] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ==========
[04:12:21] ============= drm_test_fb_xrgb8888_to_rgb332  ==============
[04:12:21] [PASSED] single_pixel_source_buffer
[04:12:21] [PASSED] single_pixel_clip_rectangle
[04:12:21] [PASSED] well_known_colors
[04:12:21] [PASSED] destination_pitch
[04:12:21] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ==========
[04:12:21] ============= drm_test_fb_xrgb8888_to_rgb565  ==============
[04:12:21] [PASSED] single_pixel_source_buffer
[04:12:21] [PASSED] single_pixel_clip_rectangle
[04:12:21] [PASSED] well_known_colors
[04:12:21] [PASSED] destination_pitch
[04:12:21] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ==========
[04:12:21] ============ drm_test_fb_xrgb8888_to_xrgb1555  =============
[04:12:21] [PASSED] single_pixel_source_buffer
[04:12:21] [PASSED] single_pixel_clip_rectangle
[04:12:21] [PASSED] well_known_colors
[04:12:21] [PASSED] destination_pitch
[04:12:21] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 =========
[04:12:21] ============ drm_test_fb_xrgb8888_to_argb1555  =============
[04:12:21] [PASSED] single_pixel_source_buffer
[04:12:21] [PASSED] single_pixel_clip_rectangle
[04:12:21] [PASSED] well_known_colors
[04:12:21] [PASSED] destination_pitch
[04:12:21] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 =========
[04:12:21] ============ drm_test_fb_xrgb8888_to_rgba5551  =============
[04:12:21] [PASSED] single_pixel_source_buffer
[04:12:21] [PASSED] single_pixel_clip_rectangle
[04:12:21] [PASSED] well_known_colors
[04:12:21] [PASSED] destination_pitch
[04:12:21] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 =========
[04:12:21] ============= drm_test_fb_xrgb8888_to_rgb888  ==============
[04:12:21] [PASSED] single_pixel_source_buffer
[04:12:21] [PASSED] single_pixel_clip_rectangle
[04:12:21] [PASSED] well_known_colors
[04:12:21] [PASSED] destination_pitch
[04:12:21] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ==========
[04:12:21] ============= drm_test_fb_xrgb8888_to_bgr888  ==============
[04:12:21] [PASSED] single_pixel_source_buffer
[04:12:21] [PASSED] single_pixel_clip_rectangle
[04:12:21] [PASSED] well_known_colors
[04:12:21] [PASSED] destination_pitch
[04:12:21] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ==========
[04:12:21] ============ drm_test_fb_xrgb8888_to_argb8888  =============
[04:12:21] [PASSED] single_pixel_source_buffer
[04:12:21] [PASSED] single_pixel_clip_rectangle
[04:12:21] [PASSED] well_known_colors
[04:12:21] [PASSED] destination_pitch
[04:12:21] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 =========
[04:12:21] =========== drm_test_fb_xrgb8888_to_xrgb2101010  ===========
[04:12:21] [PASSED] single_pixel_source_buffer
[04:12:21] [PASSED] single_pixel_clip_rectangle
[04:12:21] [PASSED] well_known_colors
[04:12:21] [PASSED] destination_pitch
[04:12:21] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 =======
[04:12:21] =========== drm_test_fb_xrgb8888_to_argb2101010  ===========
[04:12:21] [PASSED] single_pixel_source_buffer
[04:12:21] [PASSED] single_pixel_clip_rectangle
[04:12:21] [PASSED] well_known_colors
[04:12:21] [PASSED] destination_pitch
[04:12:21] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 =======
[04:12:21] ============== drm_test_fb_xrgb8888_to_mono  ===============
[04:12:21] [PASSED] single_pixel_source_buffer
[04:12:21] [PASSED] single_pixel_clip_rectangle
[04:12:21] [PASSED] well_known_colors
[04:12:21] [PASSED] destination_pitch
[04:12:21] ========== [PASSED] drm_test_fb_xrgb8888_to_mono ===========
[04:12:21] ==================== drm_test_fb_swab  =====================
[04:12:21] [PASSED] single_pixel_source_buffer
[04:12:21] [PASSED] single_pixel_clip_rectangle
[04:12:21] [PASSED] well_known_colors
[04:12:21] [PASSED] destination_pitch
[04:12:21] ================ [PASSED] drm_test_fb_swab =================
[04:12:21] ============ drm_test_fb_xrgb8888_to_xbgr8888  =============
[04:12:21] [PASSED] single_pixel_source_buffer
[04:12:21] [PASSED] single_pixel_clip_rectangle
[04:12:21] [PASSED] well_known_colors
[04:12:21] [PASSED] destination_pitch
[04:12:21] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 =========
[04:12:21] ============ drm_test_fb_xrgb8888_to_abgr8888  =============
[04:12:21] [PASSED] single_pixel_source_buffer
[04:12:21] [PASSED] single_pixel_clip_rectangle
[04:12:21] [PASSED] well_known_colors
[04:12:21] [PASSED] destination_pitch
[04:12:21] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 =========
[04:12:21] ================= drm_test_fb_clip_offset  =================
[04:12:21] [PASSED] pass through
[04:12:21] [PASSED] horizontal offset
[04:12:21] [PASSED] vertical offset
[04:12:21] [PASSED] horizontal and vertical offset
[04:12:21] [PASSED] horizontal offset (custom pitch)
[04:12:21] [PASSED] vertical offset (custom pitch)
[04:12:21] [PASSED] horizontal and vertical offset (custom pitch)
[04:12:21] ============= [PASSED] drm_test_fb_clip_offset =============
[04:12:21] ============== drm_test_fb_build_fourcc_list  ==============
[04:12:21] [PASSED] no native formats
[04:12:21] [PASSED] XRGB8888 as native format
[04:12:21] [PASSED] remove duplicates
[04:12:21] [PASSED] convert alpha formats
[04:12:21] [PASSED] random formats
[04:12:21] ========== [PASSED] drm_test_fb_build_fourcc_list ==========
[04:12:21] =================== drm_test_fb_memcpy  ====================
[04:12:21] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258)
[04:12:21] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258)
[04:12:21] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559)
[04:12:21] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258)
[04:12:21] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258)
[04:12:21] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559)
[04:12:21] [PASSED] well_known_colors: XB24 little-endian (0x34324258)
[04:12:21] [PASSED] well_known_colors: XRA8 little-endian (0x38415258)
[04:12:21] [PASSED] well_known_colors: YU24 little-endian (0x34325559)
[04:12:21] [PASSED] destination_pitch: XB24 little-endian (0x34324258)
[04:12:21] [PASSED] destination_pitch: XRA8 little-endian (0x38415258)
[04:12:21] [PASSED] destination_pitch: YU24 little-endian (0x34325559)
[04:12:21] =============== [PASSED] drm_test_fb_memcpy ================
[04:12:21] ============= [PASSED] drm_format_helper_test ==============
[04:12:21] ================= drm_format (18 subtests) =================
[04:12:21] [PASSED] drm_test_format_block_width_invalid
[04:12:21] [PASSED] drm_test_format_block_width_one_plane
[04:12:21] [PASSED] drm_test_format_block_width_two_plane
[04:12:21] [PASSED] drm_test_format_block_width_three_plane
[04:12:21] [PASSED] drm_test_format_block_width_tiled
[04:12:21] [PASSED] drm_test_format_block_height_invalid
[04:12:21] [PASSED] drm_test_format_block_height_one_plane
[04:12:21] [PASSED] drm_test_format_block_height_two_plane
[04:12:21] [PASSED] drm_test_format_block_height_three_plane
[04:12:21] [PASSED] drm_test_format_block_height_tiled
[04:12:21] [PASSED] drm_test_format_min_pitch_invalid
[04:12:21] [PASSED] drm_test_format_min_pitch_one_plane_8bpp
[04:12:21] [PASSED] drm_test_format_min_pitch_one_plane_16bpp
[04:12:21] [PASSED] drm_test_format_min_pitch_one_plane_24bpp
[04:12:21] [PASSED] drm_test_format_min_pitch_one_plane_32bpp
[04:12:21] [PASSED] drm_test_format_min_pitch_two_plane
[04:12:21] [PASSED] drm_test_format_min_pitch_three_plane_8bpp
[04:12:21] [PASSED] drm_test_format_min_pitch_tiled
[04:12:21] =================== [PASSED] drm_format ====================
[04:12:21] ============== drm_framebuffer (10 subtests) ===============
[04:12:21] ========== drm_test_framebuffer_check_src_coords  ==========
[04:12:21] [PASSED] Success: source fits into fb
[04:12:21] [PASSED] Fail: overflowing fb with x-axis coordinate
[04:12:21] [PASSED] Fail: overflowing fb with y-axis coordinate
[04:12:21] [PASSED] Fail: overflowing fb with source width
[04:12:21] [PASSED] Fail: overflowing fb with source height
[04:12:21] ====== [PASSED] drm_test_framebuffer_check_src_coords ======
[04:12:21] [PASSED] drm_test_framebuffer_cleanup
[04:12:21] =============== drm_test_framebuffer_create  ===============
[04:12:21] [PASSED] ABGR8888 normal sizes
[04:12:21] [PASSED] ABGR8888 max sizes
[04:12:21] [PASSED] ABGR8888 pitch greater than min required
[04:12:21] [PASSED] ABGR8888 pitch less than min required
[04:12:21] [PASSED] ABGR8888 Invalid width
[04:12:21] [PASSED] ABGR8888 Invalid buffer handle
[04:12:21] [PASSED] No pixel format
[04:12:21] [PASSED] ABGR8888 Width 0
[04:12:21] [PASSED] ABGR8888 Height 0
[04:12:21] [PASSED] ABGR8888 Out of bound height * pitch combination
[04:12:21] [PASSED] ABGR8888 Large buffer offset
[04:12:21] [PASSED] ABGR8888 Buffer offset for inexistent plane
[04:12:21] [PASSED] ABGR8888 Invalid flag
[04:12:21] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
[04:12:21] [PASSED] ABGR8888 Valid buffer modifier
[04:12:21] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
[04:12:21] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
[04:12:21] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
[04:12:21] [PASSED] NV12 Normal sizes
[04:12:21] [PASSED] NV12 Max sizes
[04:12:21] [PASSED] NV12 Invalid pitch
[04:12:21] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
[04:12:21] [PASSED] NV12 different  modifier per-plane
[04:12:21] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
[04:12:21] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
[04:12:21] [PASSED] NV12 Modifier for inexistent plane
[04:12:21] [PASSED] NV12 Handle for inexistent plane
[04:12:21] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS
[04:12:21] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier
[04:12:21] [PASSED] YVU420 Normal sizes
[04:12:21] [PASSED] YVU420 Max sizes
[04:12:21] [PASSED] YVU420 Invalid pitch
[04:12:21] [PASSED] YVU420 Different pitches
[04:12:21] [PASSED] YVU420 Different buffer offsets/pitches
[04:12:21] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS
[04:12:21] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS
[04:12:21] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS
[04:12:21] [PASSED] YVU420 Valid modifier
[04:12:21] [PASSED] YVU420 Different modifiers per plane
[04:12:21] [PASSED] YVU420 Modifier for inexistent plane
[04:12:21] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR)
[04:12:21] [PASSED] X0L2 Normal sizes
[04:12:21] [PASSED] X0L2 Max sizes
[04:12:21] [PASSED] X0L2 Invalid pitch
[04:12:21] [PASSED] X0L2 Pitch greater than minimum required
[04:12:21] [PASSED] X0L2 Handle for inexistent plane
[04:12:21] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set
[04:12:21] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
[04:12:21] [PASSED] X0L2 Valid modifier
[04:12:21] [PASSED] X0L2 Modifier for inexistent plane
[04:12:21] =========== [PASSED] drm_test_framebuffer_create ===========
[04:12:21] [PASSED] drm_test_framebuffer_free
[04:12:21] [PASSED] drm_test_framebuffer_init
[04:12:21] [PASSED] drm_test_framebuffer_init_bad_format
[04:12:21] [PASSED] drm_test_framebuffer_init_dev_mismatch
[04:12:21] [PASSED] drm_test_framebuffer_lookup
[04:12:21] [PASSED] drm_test_framebuffer_lookup_inexistent
[04:12:21] [PASSED] drm_test_framebuffer_modifiers_not_supported
[04:12:21] ================= [PASSED] drm_framebuffer =================
[04:12:21] ================ drm_gem_shmem (8 subtests) ================
[04:12:21] [PASSED] drm_gem_shmem_test_obj_create
[04:12:21] [PASSED] drm_gem_shmem_test_obj_create_private
[04:12:21] [PASSED] drm_gem_shmem_test_pin_pages
[04:12:21] [PASSED] drm_gem_shmem_test_vmap
[04:12:21] [PASSED] drm_gem_shmem_test_get_pages_sgt
[04:12:21] [PASSED] drm_gem_shmem_test_get_sg_table
[04:12:21] [PASSED] drm_gem_shmem_test_madvise
[04:12:21] [PASSED] drm_gem_shmem_test_purge
[04:12:21] ================== [PASSED] drm_gem_shmem ==================
[04:12:21] === drm_atomic_helper_connector_hdmi_check (23 subtests) ===
[04:12:21] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode
[04:12:21] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1
[04:12:21] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode
[04:12:21] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1
[04:12:21] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode
[04:12:21] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1
[04:12:21] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed
[04:12:21] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed
[04:12:21] [PASSED] drm_test_check_disable_connector
[04:12:21] [PASSED] drm_test_check_hdmi_funcs_reject_rate
[04:12:21] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback
[04:12:21] [PASSED] drm_test_check_max_tmds_rate_format_fallback
[04:12:21] [PASSED] drm_test_check_output_bpc_crtc_mode_changed
[04:12:21] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed
[04:12:21] [PASSED] drm_test_check_output_bpc_dvi
[04:12:21] [PASSED] drm_test_check_output_bpc_format_vic_1
[04:12:21] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only
[04:12:21] [PASSED] drm_test_check_output_bpc_format_display_rgb_only
[04:12:21] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only
[04:12:21] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only
[04:12:21] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc
[04:12:21] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc
[04:12:21] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc
[04:12:21] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ======
[04:12:21] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ====
[04:12:21] [PASSED] drm_test_check_broadcast_rgb_value
[04:12:21] [PASSED] drm_test_check_bpc_8_value
[04:12:21] [PASSED] drm_test_check_bpc_10_value
[04:12:21] [PASSED] drm_test_check_bpc_12_value
[04:12:21] [PASSED] drm_test_check_format_value
[04:12:21] [PASSED] drm_test_check_tmds_char_value
[04:12:21] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ======
[04:12:21] = drm_atomic_helper_connector_hdmi_mode_valid (4 subtests) =
[04:12:21] [PASSED] drm_test_check_mode_valid
[04:12:21] [PASSED] drm_test_check_mode_valid_reject
[04:12:21] [PASSED] drm_test_check_mode_valid_reject_rate
[04:12:21] [PASSED] drm_test_check_mode_valid_reject_max_clock
[04:12:21] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid ===
[04:12:21] ================= drm_managed (2 subtests) =================
[04:12:21] [PASSED] drm_test_managed_release_action
[04:12:21] [PASSED] drm_test_managed_run_action
[04:12:21] =================== [PASSED] drm_managed ===================
[04:12:21] =================== drm_mm (6 subtests) ====================
[04:12:21] [PASSED] drm_test_mm_init
[04:12:21] [PASSED] drm_test_mm_debug
[04:12:21] [PASSED] drm_test_mm_align32
[04:12:21] [PASSED] drm_test_mm_align64
[04:12:21] [PASSED] drm_test_mm_lowest
[04:12:21] [PASSED] drm_test_mm_highest
[04:12:21] ===================== [PASSED] drm_mm ======================
[04:12:21] ============= drm_modes_analog_tv (5 subtests) =============
[04:12:21] [PASSED] drm_test_modes_analog_tv_mono_576i
[04:12:21] [PASSED] drm_test_modes_analog_tv_ntsc_480i
[04:12:21] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined
[04:12:21] [PASSED] drm_test_modes_analog_tv_pal_576i
[04:12:21] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined
[04:12:21] =============== [PASSED] drm_modes_analog_tv ===============
[04:12:21] ============== drm_plane_helper (2 subtests) ===============
[04:12:21] =============== drm_test_check_plane_state  ================
[04:12:21] [PASSED] clipping_simple
[04:12:21] [PASSED] clipping_rotate_reflect
[04:12:21] [PASSED] positioning_simple
[04:12:21] [PASSED] upscaling
[04:12:21] [PASSED] downscaling
[04:12:21] [PASSED] rounding1
[04:12:21] [PASSED] rounding2
[04:12:21] [PASSED] rounding3
[04:12:21] [PASSED] rounding4
[04:12:21] =========== [PASSED] drm_test_check_plane_state ============
[04:12:21] =========== drm_test_check_invalid_plane_state  ============
[04:12:21] [PASSED] positioning_invalid
[04:12:21] [PASSED] upscaling_invalid
[04:12:21] [PASSED] downscaling_invalid
[04:12:21] ======= [PASSED] drm_test_check_invalid_plane_state ========
[04:12:21] ================ [PASSED] drm_plane_helper =================
[04:12:21] ====== drm_connector_helper_tv_get_modes (1 subtest) =======
[04:12:21] ====== drm_test_connector_helper_tv_get_modes_check  =======
[04:12:21] [PASSED] None
[04:12:21] [PASSED] PAL
[04:12:21] [PASSED] NTSC
[04:12:21] [PASSED] Both, NTSC Default
[04:12:21] [PASSED] Both, PAL Default
[04:12:21] [PASSED] Both, NTSC Default, with PAL on command-line
[04:12:21] [PASSED] Both, PAL Default, with NTSC on command-line
[04:12:21] == [PASSED] drm_test_connector_helper_tv_get_modes_check ===
[04:12:21] ======== [PASSED] drm_connector_helper_tv_get_modes ========
[04:12:21] ================== drm_rect (9 subtests) ===================
[04:12:21] [PASSED] drm_test_rect_clip_scaled_div_by_zero
[04:12:21] [PASSED] drm_test_rect_clip_scaled_not_clipped
[04:12:21] [PASSED] drm_test_rect_clip_scaled_clipped
[04:12:21] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned
[04:12:21] ================= drm_test_rect_intersect  =================
[04:12:21] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0
[04:12:21] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1
[04:12:21] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0
[04:12:21] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1
[04:12:21] [PASSED] right x left: 2x1+0+0 x 3x1+1+0
[04:12:21] [PASSED] left x right: 3x1+1+0 x 2x1+0+0
[04:12:21] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1
[04:12:21] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0
[04:12:21] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1
[04:12:21] [PASSED] touching side: 1x1+0+0 x 1x1+1+0
[04:12:21] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0
[04:12:21] [PASSED] inside another: 2x2+0+0 x 1x1+1+1
[04:12:21] [PASSED] far away: 1x1+0+0 x 1x1+3+6
[04:12:21] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10
[04:12:21] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10
[04:12:21] ============= [PASSED] drm_test_rect_intersect =============
[04:12:21] ================ drm_test_rect_calc_hscale  ================
[04:12:21] [PASSED] normal use
[04:12:21] [PASSED] out of max range
[04:12:21] [PASSED] out of min range
[04:12:21] [PASSED] zero dst
[04:12:21] [PASSED] negative src
[04:12:21] [PASSED] negative dst
[04:12:21] ============ [PASSED] drm_test_rect_calc_hscale ============
[04:12:21] ================ drm_test_rect_calc_vscale  ================
[04:12:21] [PASSED] normal use
[04:12:21] [PASSED] out of max range
[04:12:21] [PASSED] out of min range
[04:12:21] [PASSED] zero dst
[04:12:21] [PASSED] negative src
[04:12:21] [PASSED] negative dst
[04:12:21] ============ [PASSED] drm_test_rect_calc_vscale ============
[04:12:21] ================== drm_test_rect_rotate  ===================
[04:12:21] [PASSED] reflect-x
[04:12:21] [PASSED] reflect-y
[04:12:21] [PASSED] rotate-0
[04:12:21] [PASSED] rotate-90
[04:12:21] [PASSED] rotate-180
[04:12:21] [PASSED] rotate-270
[04:12:21] ============== [PASSED] drm_test_rect_rotate ===============
[04:12:21] ================ drm_test_rect_rotate_inv  =================
[04:12:21] [PASSED] reflect-x
[04:12:21] [PASSED] reflect-y
[04:12:21] [PASSED] rotate-0
[04:12:21] [PASSED] rotate-90
[04:12:21] [PASSED] rotate-180
[04:12:21] [PASSED] rotate-270
[04:12:21] ============ [PASSED] drm_test_rect_rotate_inv =============
stty: 'standard input': Inappropriate ioctl for device
[04:12:21] ==================== [PASSED] drm_rect =====================
[04:12:21] ============================================================
[04:12:21] Testing complete. Ran 608 tests: passed: 608
[04:12:21] Elapsed time: 23.010s total, 1.731s configuring, 21.113s building, 0.143s running

+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig
[04:12:21] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[04:12:23] 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
[04:12:31] Starting KUnit Kernel (1/1)...
[04:12:31] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[04:12:31] ================= ttm_device (5 subtests) ==================
[04:12:31] [PASSED] ttm_device_init_basic
[04:12:31] [PASSED] ttm_device_init_multiple
[04:12:31] [PASSED] ttm_device_fini_basic
[04:12:31] [PASSED] ttm_device_init_no_vma_man
[04:12:31] ================== ttm_device_init_pools  ==================
[04:12:31] [PASSED] No DMA allocations, no DMA32 required
[04:12:31] [PASSED] DMA allocations, DMA32 required
[04:12:31] [PASSED] No DMA allocations, DMA32 required
[04:12:31] [PASSED] DMA allocations, no DMA32 required
[04:12:31] ============== [PASSED] ttm_device_init_pools ==============
[04:12:31] =================== [PASSED] ttm_device ====================
[04:12:31] ================== ttm_pool (8 subtests) ===================
[04:12:31] ================== ttm_pool_alloc_basic  ===================
[04:12:31] [PASSED] One page
[04:12:31] [PASSED] More than one page
[04:12:31] [PASSED] Above the allocation limit
[04:12:31] [PASSED] One page, with coherent DMA mappings enabled
[04:12:31] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[04:12:31] ============== [PASSED] ttm_pool_alloc_basic ===============
[04:12:31] ============== ttm_pool_alloc_basic_dma_addr  ==============
[04:12:31] [PASSED] One page
[04:12:31] [PASSED] More than one page
[04:12:31] [PASSED] Above the allocation limit
[04:12:31] [PASSED] One page, with coherent DMA mappings enabled
[04:12:31] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[04:12:31] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ==========
[04:12:31] [PASSED] ttm_pool_alloc_order_caching_match
[04:12:31] [PASSED] ttm_pool_alloc_caching_mismatch
[04:12:31] [PASSED] ttm_pool_alloc_order_mismatch
[04:12:31] [PASSED] ttm_pool_free_dma_alloc
[04:12:31] [PASSED] ttm_pool_free_no_dma_alloc
[04:12:31] [PASSED] ttm_pool_fini_basic
[04:12:31] ==================== [PASSED] ttm_pool =====================
[04:12:31] ================ ttm_resource (8 subtests) =================
[04:12:31] ================= ttm_resource_init_basic  =================
[04:12:31] [PASSED] Init resource in TTM_PL_SYSTEM
[04:12:31] [PASSED] Init resource in TTM_PL_VRAM
[04:12:31] [PASSED] Init resource in a private placement
[04:12:31] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags
[04:12:31] ============= [PASSED] ttm_resource_init_basic =============
[04:12:31] [PASSED] ttm_resource_init_pinned
[04:12:31] [PASSED] ttm_resource_fini_basic
[04:12:31] [PASSED] ttm_resource_manager_init_basic
[04:12:31] [PASSED] ttm_resource_manager_usage_basic
[04:12:31] [PASSED] ttm_resource_manager_set_used_basic
[04:12:31] [PASSED] ttm_sys_man_alloc_basic
[04:12:31] [PASSED] ttm_sys_man_free_basic
[04:12:31] ================== [PASSED] ttm_resource ===================
[04:12:31] =================== ttm_tt (15 subtests) ===================
[04:12:31] ==================== ttm_tt_init_basic  ====================
[04:12:31] [PASSED] Page-aligned size
[04:12:31] [PASSED] Extra pages requested
[04:12:31] ================ [PASSED] ttm_tt_init_basic ================
[04:12:31] [PASSED] ttm_tt_init_misaligned
[04:12:31] [PASSED] ttm_tt_fini_basic
[04:12:31] [PASSED] ttm_tt_fini_sg
[04:12:31] [PASSED] ttm_tt_fini_shmem
[04:12:31] [PASSED] ttm_tt_create_basic
[04:12:31] [PASSED] ttm_tt_create_invalid_bo_type
[04:12:31] [PASSED] ttm_tt_create_ttm_exists
[04:12:31] [PASSED] ttm_tt_create_failed
[04:12:31] [PASSED] ttm_tt_destroy_basic
[04:12:31] [PASSED] ttm_tt_populate_null_ttm
[04:12:31] [PASSED] ttm_tt_populate_populated_ttm
[04:12:31] [PASSED] ttm_tt_unpopulate_basic
[04:12:31] [PASSED] ttm_tt_unpopulate_empty_ttm
[04:12:31] [PASSED] ttm_tt_swapin_basic
[04:12:31] ===================== [PASSED] ttm_tt ======================
[04:12:31] =================== ttm_bo (14 subtests) ===================
[04:12:31] =========== ttm_bo_reserve_optimistic_no_ticket  ===========
[04:12:31] [PASSED] Cannot be interrupted and sleeps
[04:12:31] [PASSED] Cannot be interrupted, locks straight away
[04:12:31] [PASSED] Can be interrupted, sleeps
[04:12:31] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket =======
[04:12:31] [PASSED] ttm_bo_reserve_locked_no_sleep
[04:12:31] [PASSED] ttm_bo_reserve_no_wait_ticket
[04:12:31] [PASSED] ttm_bo_reserve_double_resv
[04:12:31] [PASSED] ttm_bo_reserve_interrupted
[04:12:31] [PASSED] ttm_bo_reserve_deadlock
[04:12:31] [PASSED] ttm_bo_unreserve_basic
[04:12:31] [PASSED] ttm_bo_unreserve_pinned
[04:12:31] [PASSED] ttm_bo_unreserve_bulk
[04:12:31] [PASSED] ttm_bo_put_basic
[04:12:31] [PASSED] ttm_bo_put_shared_resv
[04:12:31] [PASSED] ttm_bo_pin_basic
[04:12:31] [PASSED] ttm_bo_pin_unpin_resource
[04:12:31] [PASSED] ttm_bo_multiple_pin_one_unpin
[04:12:31] ===================== [PASSED] ttm_bo ======================
[04:12:31] ============== ttm_bo_validate (22 subtests) ===============
[04:12:31] ============== ttm_bo_init_reserved_sys_man  ===============
[04:12:31] [PASSED] Buffer object for userspace
[04:12:31] [PASSED] Kernel buffer object
[04:12:31] [PASSED] Shared buffer object
[04:12:31] ========== [PASSED] ttm_bo_init_reserved_sys_man ===========
[04:12:31] ============== ttm_bo_init_reserved_mock_man  ==============
[04:12:31] [PASSED] Buffer object for userspace
[04:12:31] [PASSED] Kernel buffer object
[04:12:31] [PASSED] Shared buffer object
[04:12:31] ========== [PASSED] ttm_bo_init_reserved_mock_man ==========
[04:12:31] [PASSED] ttm_bo_init_reserved_resv
[04:12:31] ================== ttm_bo_validate_basic  ==================
[04:12:31] [PASSED] Buffer object for userspace
[04:12:31] [PASSED] Kernel buffer object
[04:12:31] [PASSED] Shared buffer object
[04:12:31] ============== [PASSED] ttm_bo_validate_basic ==============
[04:12:31] [PASSED] ttm_bo_validate_invalid_placement
[04:12:31] ============= ttm_bo_validate_same_placement  ==============
[04:12:31] [PASSED] System manager
[04:12:31] [PASSED] VRAM manager
[04:12:31] ========= [PASSED] ttm_bo_validate_same_placement ==========
[04:12:31] [PASSED] ttm_bo_validate_failed_alloc
[04:12:31] [PASSED] ttm_bo_validate_pinned
[04:12:31] [PASSED] ttm_bo_validate_busy_placement
[04:12:31] ================ ttm_bo_validate_multihop  =================
[04:12:31] [PASSED] Buffer object for userspace
[04:12:31] [PASSED] Kernel buffer object
[04:12:31] [PASSED] Shared buffer object
[04:12:31] ============ [PASSED] ttm_bo_validate_multihop =============
[04:12:31] ========== ttm_bo_validate_no_placement_signaled  ==========
[04:12:31] [PASSED] Buffer object in system domain, no page vector
[04:12:31] [PASSED] Buffer object in system domain with an existing page vector
[04:12:31] ====== [PASSED] ttm_bo_validate_no_placement_signaled ======
[04:12:31] ======== ttm_bo_validate_no_placement_not_signaled  ========
[04:12:31] [PASSED] Buffer object for userspace
[04:12:31] [PASSED] Kernel buffer object
[04:12:31] [PASSED] Shared buffer object
[04:12:31] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ====
[04:12:31] [PASSED] ttm_bo_validate_move_fence_signaled
[04:12:31] ========= ttm_bo_validate_move_fence_not_signaled  =========
[04:12:31] [PASSED] Waits for GPU
[04:12:31] [PASSED] Tries to lock straight away
[04:12:32] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled =====
[04:12:32] [PASSED] ttm_bo_validate_swapout
[04:12:32] [PASSED] ttm_bo_validate_happy_evict
[04:12:32] [PASSED] ttm_bo_validate_all_pinned_evict
[04:12:32] [PASSED] ttm_bo_validate_allowed_only_evict
[04:12:32] [PASSED] ttm_bo_validate_deleted_evict
[04:12:32] [PASSED] ttm_bo_validate_busy_domain_evict
[04:12:32] [PASSED] ttm_bo_validate_evict_gutting
[04:12:32] [PASSED] ttm_bo_validate_recrusive_evict
stty: 'standard input': Inappropriate ioctl for device
[04:12:32] ================= [PASSED] ttm_bo_validate =================
[04:12:32] ============================================================
[04:12:32] Testing complete. Ran 102 tests: passed: 102
[04:12:32] Elapsed time: 10.341s total, 1.797s configuring, 7.927s building, 0.504s running

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



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

* ✗ CI.Build: failure for Large devcoredump file support
  2025-04-10  4:06 [PATCH v3 0/4] Large devcoredump file support Matthew Brost
                   ` (6 preceding siblings ...)
  2025-04-10  4:12 ` ✓ CI.KUnit: " Patchwork
@ 2025-04-10  4:28 ` Patchwork
  7 siblings, 0 replies; 13+ messages in thread
From: Patchwork @ 2025-04-10  4:28 UTC (permalink / raw)
  To: Matthew Brost; +Cc: intel-xe

== Series Details ==

Series: Large devcoredump file support
URL   : https://patchwork.freedesktop.org/series/147503/
State : failure

== Summary ==

lib/modules/6.15.0-rc1-xe+/kernel/arch/x86/events/intel/intel-cstate.ko
lib/modules/6.15.0-rc1-xe+/kernel/arch/x86/events/amd/
lib/modules/6.15.0-rc1-xe+/kernel/arch/x86/events/amd/amd-uncore.ko
lib/modules/6.15.0-rc1-xe+/kernel/arch/x86/events/rapl.ko
lib/modules/6.15.0-rc1-xe+/kernel/arch/x86/kvm/
lib/modules/6.15.0-rc1-xe+/kernel/arch/x86/kvm/kvm.ko
lib/modules/6.15.0-rc1-xe+/kernel/arch/x86/kvm/kvm-intel.ko
lib/modules/6.15.0-rc1-xe+/kernel/arch/x86/kvm/kvm-amd.ko
lib/modules/6.15.0-rc1-xe+/kernel/kernel/
lib/modules/6.15.0-rc1-xe+/kernel/kernel/kheaders.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/
lib/modules/6.15.0-rc1-xe+/kernel/crypto/ecrdsa_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/xcbc.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/serpent_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/aria_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/crypto_simd.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/adiantum.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/tcrypt.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/crypto_engine.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/zstd.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/asymmetric_keys/
lib/modules/6.15.0-rc1-xe+/kernel/crypto/asymmetric_keys/pkcs7_test_key.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/asymmetric_keys/pkcs8_key_parser.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/des_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/xctr.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/authenc.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/sm4_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/camellia_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/sm3.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/pcrypt.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/aegis128.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/af_alg.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/algif_aead.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/cmac.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/sm3_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/aes_ti.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/chacha_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/poly1305_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/nhpoly1305.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/crc32_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/essiv.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/ccm.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/wp512.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/streebog_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/authencesn.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/echainiv.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/lrw.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/cryptd.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/crypto_user.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/algif_hash.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/polyval-generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/hctr2.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/842.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/pcbc.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/ansi_cprng.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/cast6_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/twofish_common.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/twofish_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/lz4hc.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/blowfish_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/md4.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/chacha20poly1305.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/curve25519-generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/lz4.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/rmd160.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/algif_skcipher.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/cast5_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/fcrypt.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/ecdsa_generic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/sm4.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/cast_common.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/blowfish_common.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/michael_mic.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/async_tx/
lib/modules/6.15.0-rc1-xe+/kernel/crypto/async_tx/async_xor.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/async_tx/async_tx.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/async_tx/async_memcpy.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/async_tx/async_pq.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/async_tx/async_raid6_recov.ko
lib/modules/6.15.0-rc1-xe+/kernel/crypto/algif_rng.ko
lib/modules/6.15.0-rc1-xe+/kernel/block/
lib/modules/6.15.0-rc1-xe+/kernel/block/bfq.ko
lib/modules/6.15.0-rc1-xe+/kernel/block/kyber-iosched.ko
lib/modules/6.15.0-rc1-xe+/build
lib/modules/6.15.0-rc1-xe+/modules.alias.bin
lib/modules/6.15.0-rc1-xe+/modules.builtin
lib/modules/6.15.0-rc1-xe+/modules.softdep
lib/modules/6.15.0-rc1-xe+/modules.alias
lib/modules/6.15.0-rc1-xe+/modules.order
lib/modules/6.15.0-rc1-xe+/modules.symbols
lib/modules/6.15.0-rc1-xe+/modules.dep.bin
+ mv kernel-nodebug.tar.gz ..
+ cd ..
+ rm -rf archive-nodebug
+ sync
+ echo '[+] Finished building and packaging '\''nodebug'\''!'
[+] Finished building and packaging 'nodebug'!
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel



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

* Re: [PATCH v3 3/4] drm/print: Add drm_printer_is_full
  2025-04-10  4:06 ` [PATCH v3 3/4] drm/print: Add drm_printer_is_full Matthew Brost
@ 2025-04-10 12:06   ` Jani Nikula
  2025-04-15 17:10     ` Matthew Brost
  0 siblings, 1 reply; 13+ messages in thread
From: Jani Nikula @ 2025-04-10 12:06 UTC (permalink / raw)
  To: Matthew Brost, intel-xe

On Wed, 09 Apr 2025, Matthew Brost <matthew.brost@intel.com> wrote:
> Add drm_printer_is_full which indicates if a drm printer's output is
> full. Useful to short circuit coredump printing once printer's output is
> full.

The function is presented as a generic drm_printer thing, but it's
really only valid for a coredump printer, and will return random results
for other printers. Which can't even be "full" in any meaningful sense,
making the documentation for the function seem completely weird.

BR,
Jani.

>
> Signed-off-by: Matthew Brost <matthew.brost@intel.com>
> Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
> ---
>  include/drm/drm_print.h | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>
> diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h
> index f31eba1c7cab..db7517ee1b19 100644
> --- a/include/drm/drm_print.h
> +++ b/include/drm/drm_print.h
> @@ -242,6 +242,23 @@ struct drm_print_iterator {
>  	ssize_t offset;
>  };
>  
> +/**
> + * drm_printer_is_full() - DRM printer output is full
> + * @p: DRM printer
> + *
> + * DRM printer output is full, useful to short circuit coredump printing once
> + * printer is full.
> + *
> + * RETURNS:
> + * True if DRM printer output buffer is full, False otherwise
> + */
> +static inline bool drm_printer_is_full(struct drm_printer *p)
> +{
> +	struct drm_print_iterator *iterator = p->arg;
> +
> +	return !iterator->remain;
> +}
> +
>  /**
>   * drm_coredump_printer - construct a &drm_printer that can output to a buffer
>   * from the read function for devcoredump

-- 
Jani Nikula, Intel

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

* Re: [PATCH v3 1/4] drm/xe: Add devcoredump chunking
  2025-04-10  4:06 ` [PATCH v3 1/4] drm/xe: Add devcoredump chunking Matthew Brost
@ 2025-04-10 17:47   ` John Harrison
  0 siblings, 0 replies; 13+ messages in thread
From: John Harrison @ 2025-04-10 17:47 UTC (permalink / raw)
  To: Matthew Brost, intel-xe

On 4/9/2025 9:06 PM, Matthew Brost wrote:
> Chunk devcoredump into 1.5G pieces to avoid hitting the kvmalloc limit
> of 2G. Simple algorithm reads 1.5G at time in xe_devcoredump_read
> callback as needed.
>
> Some memory allocations are changed to GFP_ATOMIC as they done in
> xe_devcoredump_read which holds lock in the path of reclaim. The
> allocations are small, so in practice should never fail.
>
> v2:
>   - Update commit message wrt gfp atomic (John H)
>
> Signed-off-by: Matthew Brost <matthew.brost@intel.com>
> Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
> ---
>   drivers/gpu/drm/xe/xe_devcoredump.c       | 59 ++++++++++++++++++-----
>   drivers/gpu/drm/xe/xe_devcoredump_types.h |  2 +
>   drivers/gpu/drm/xe/xe_guc_hwconfig.c      |  2 +-
>   3 files changed, 50 insertions(+), 13 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_devcoredump.c b/drivers/gpu/drm/xe/xe_devcoredump.c
> index 81b9d9bb3f57..a9e618abf8ac 100644
> --- a/drivers/gpu/drm/xe/xe_devcoredump.c
> +++ b/drivers/gpu/drm/xe/xe_devcoredump.c
> @@ -80,7 +80,8 @@ static struct xe_guc *exec_queue_to_guc(struct xe_exec_queue *q)
>   	return &q->gt->uc.guc;
>   }
>   
> -static ssize_t __xe_devcoredump_read(char *buffer, size_t count,
> +static ssize_t __xe_devcoredump_read(char *buffer, ssize_t count,
> +				     ssize_t start,
>   				     struct xe_devcoredump *coredump)
>   {
>   	struct xe_device *xe;
> @@ -94,7 +95,7 @@ static ssize_t __xe_devcoredump_read(char *buffer, size_t count,
>   	ss = &coredump->snapshot;
>   
>   	iter.data = buffer;
> -	iter.start = 0;
> +	iter.start = start;
>   	iter.remain = count;
>   
>   	p = drm_coredump_printer(&iter);
> @@ -168,6 +169,8 @@ static void xe_devcoredump_snapshot_free(struct xe_devcoredump_snapshot *ss)
>   	ss->vm = NULL;
>   }
>   
> +#define XE_DEVCOREDUMP_CHUNK_MAX	(SZ_512M + SZ_1G)
> +
>   static ssize_t xe_devcoredump_read(char *buffer, loff_t offset,
>   				   size_t count, void *data, size_t datalen)
>   {
> @@ -183,6 +186,9 @@ static ssize_t xe_devcoredump_read(char *buffer, loff_t offset,
>   	/* Ensure delayed work is captured before continuing */
>   	flush_work(&ss->work);
>   
> +	if (ss->read.size > XE_DEVCOREDUMP_CHUNK_MAX)
> +		xe_pm_runtime_get(gt_to_xe(ss->gt));
> +
>   	mutex_lock(&coredump->lock);
>   
>   	if (!ss->read.buffer) {
> @@ -195,12 +201,26 @@ static ssize_t xe_devcoredump_read(char *buffer, loff_t offset,
>   		return 0;
>   	}
>   
> +	if (offset >= ss->read.chunk_position + XE_DEVCOREDUMP_CHUNK_MAX ||
> +	    offset < ss->read.chunk_position) {
> +		ss->read.chunk_position =
> +			ALIGN_DOWN(offset, XE_DEVCOREDUMP_CHUNK_MAX);
> +
> +		__xe_devcoredump_read(ss->read.buffer,
> +				      XE_DEVCOREDUMP_CHUNK_MAX,
> +				      ss->read.chunk_position, coredump);
> +	}
> +
>   	byte_copied = count < ss->read.size - offset ? count :
>   		ss->read.size - offset;
> -	memcpy(buffer, ss->read.buffer + offset, byte_copied);
> +	memcpy(buffer, ss->read.buffer +
> +	       (offset % XE_DEVCOREDUMP_CHUNK_MAX), byte_copied);
>   
>   	mutex_unlock(&coredump->lock);
>   
> +	if (ss->read.size > XE_DEVCOREDUMP_CHUNK_MAX)
> +		xe_pm_runtime_put(gt_to_xe(ss->gt));
> +
>   	return byte_copied;
>   }
>   
> @@ -254,17 +274,32 @@ static void xe_devcoredump_deferred_snap_work(struct work_struct *work)
>   	xe_guc_exec_queue_snapshot_capture_delayed(ss->ge);
>   	xe_force_wake_put(gt_to_fw(ss->gt), fw_ref);
>   
> -	xe_pm_runtime_put(xe);
> +	ss->read.chunk_position = 0;
>   
>   	/* Calculate devcoredump size */
> -	ss->read.size = __xe_devcoredump_read(NULL, INT_MAX, coredump);
> -
> -	ss->read.buffer = kvmalloc(ss->read.size, GFP_USER);
> -	if (!ss->read.buffer)
> -		return;
> +	ss->read.size = __xe_devcoredump_read(NULL, LONG_MAX, 0, coredump);
> +
> +	if (ss->read.size > XE_DEVCOREDUMP_CHUNK_MAX) {
> +		ss->read.buffer = kvmalloc(XE_DEVCOREDUMP_CHUNK_MAX,
> +					   GFP_USER);
> +		if (!ss->read.buffer)
> +			goto put_pm;
> +
> +		__xe_devcoredump_read(ss->read.buffer,
> +				      XE_DEVCOREDUMP_CHUNK_MAX,
> +				      0, coredump);
> +	} else {
> +		ss->read.buffer = kvmalloc(ss->read.size, GFP_USER);
> +		if (!ss->read.buffer)
> +			goto put_pm;
> +
> +		__xe_devcoredump_read(ss->read.buffer, ss->read.size, 0,
> +				      coredump);
> +		xe_devcoredump_snapshot_free(ss);
> +	}
>   
> -	__xe_devcoredump_read(ss->read.buffer, ss->read.size, coredump);
> -	xe_devcoredump_snapshot_free(ss);
> +put_pm:
> +	xe_pm_runtime_put(xe);
>   }
>   
>   static void devcoredump_snapshot(struct xe_devcoredump *coredump,
> @@ -425,7 +460,7 @@ void xe_print_blob_ascii85(struct drm_printer *p, const char *prefix, char suffi
>   	if (offset & 3)
>   		drm_printf(p, "Offset not word aligned: %zu", offset);
>   
> -	line_buff = kzalloc(DMESG_MAX_LINE_LEN, GFP_KERNEL);
> +	line_buff = kzalloc(DMESG_MAX_LINE_LEN, GFP_ATOMIC);
>   	if (!line_buff) {
>   		drm_printf(p, "Failed to allocate line buffer\n");
>   		return;
> diff --git a/drivers/gpu/drm/xe/xe_devcoredump_types.h b/drivers/gpu/drm/xe/xe_devcoredump_types.h
> index 1a1d16a96b2d..a174385a6d83 100644
> --- a/drivers/gpu/drm/xe/xe_devcoredump_types.h
> +++ b/drivers/gpu/drm/xe/xe_devcoredump_types.h
> @@ -66,6 +66,8 @@ struct xe_devcoredump_snapshot {
>   	struct {
>   		/** @read.size: size of devcoredump in human readable format */
>   		ssize_t size;
> +		/** @read.chunk_position: position of devcoredump chunk */
> +		ssize_t chunk_position;
>   		/** @read.buffer: buffer of devcoredump in human readable format */
>   		char *buffer;
>   	} read;
> diff --git a/drivers/gpu/drm/xe/xe_guc_hwconfig.c b/drivers/gpu/drm/xe/xe_guc_hwconfig.c
> index af2c817d552c..21403a250834 100644
> --- a/drivers/gpu/drm/xe/xe_guc_hwconfig.c
> +++ b/drivers/gpu/drm/xe/xe_guc_hwconfig.c
> @@ -175,7 +175,7 @@ int xe_guc_hwconfig_lookup_u32(struct xe_guc *guc, u32 attribute, u32 *val)
>   	if (num_dw == 0)
>   		return -EINVAL;
>   
> -	hwconfig = kzalloc(size, GFP_KERNEL);
> +	hwconfig = kzalloc(size, GFP_ATOMIC);
Did you work out what was going on here? It seems like this really 
should not be happening.

John.

>   	if (!hwconfig)
>   		return -ENOMEM;
>   


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

* Re: [PATCH v3 3/4] drm/print: Add drm_printer_is_full
  2025-04-10 12:06   ` Jani Nikula
@ 2025-04-15 17:10     ` Matthew Brost
  2025-04-16  7:14       ` Jani Nikula
  0 siblings, 1 reply; 13+ messages in thread
From: Matthew Brost @ 2025-04-15 17:10 UTC (permalink / raw)
  To: Jani Nikula; +Cc: intel-xe

On Thu, Apr 10, 2025 at 03:06:32PM +0300, Jani Nikula wrote:
> On Wed, 09 Apr 2025, Matthew Brost <matthew.brost@intel.com> wrote:
> > Add drm_printer_is_full which indicates if a drm printer's output is
> > full. Useful to short circuit coredump printing once printer's output is
> > full.
> 
> The function is presented as a generic drm_printer thing, but it's
> really only valid for a coredump printer, and will return random results
> for other printers. Which can't even be "full" in any meaningful sense,
> making the documentation for the function seem completely weird.
> 

So maybe:

s/drm_printer_is_full/drm_coredump_printer_is_full?

Matt

> BR,
> Jani.
> 
> >
> > Signed-off-by: Matthew Brost <matthew.brost@intel.com>
> > Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
> > ---
> >  include/drm/drm_print.h | 17 +++++++++++++++++
> >  1 file changed, 17 insertions(+)
> >
> > diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h
> > index f31eba1c7cab..db7517ee1b19 100644
> > --- a/include/drm/drm_print.h
> > +++ b/include/drm/drm_print.h
> > @@ -242,6 +242,23 @@ struct drm_print_iterator {
> >  	ssize_t offset;
> >  };
> >  
> > +/**
> > + * drm_printer_is_full() - DRM printer output is full
> > + * @p: DRM printer
> > + *
> > + * DRM printer output is full, useful to short circuit coredump printing once
> > + * printer is full.
> > + *
> > + * RETURNS:
> > + * True if DRM printer output buffer is full, False otherwise
> > + */
> > +static inline bool drm_printer_is_full(struct drm_printer *p)
> > +{
> > +	struct drm_print_iterator *iterator = p->arg;
> > +
> > +	return !iterator->remain;
> > +}
> > +
> >  /**
> >   * drm_coredump_printer - construct a &drm_printer that can output to a buffer
> >   * from the read function for devcoredump
> 
> -- 
> Jani Nikula, Intel

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

* Re: [PATCH v3 3/4] drm/print: Add drm_printer_is_full
  2025-04-15 17:10     ` Matthew Brost
@ 2025-04-16  7:14       ` Jani Nikula
  0 siblings, 0 replies; 13+ messages in thread
From: Jani Nikula @ 2025-04-16  7:14 UTC (permalink / raw)
  To: Matthew Brost; +Cc: intel-xe

On Tue, 15 Apr 2025, Matthew Brost <matthew.brost@intel.com> wrote:
> On Thu, Apr 10, 2025 at 03:06:32PM +0300, Jani Nikula wrote:
>> On Wed, 09 Apr 2025, Matthew Brost <matthew.brost@intel.com> wrote:
>> > Add drm_printer_is_full which indicates if a drm printer's output is
>> > full. Useful to short circuit coredump printing once printer's output is
>> > full.
>> 
>> The function is presented as a generic drm_printer thing, but it's
>> really only valid for a coredump printer, and will return random results
>> for other printers. Which can't even be "full" in any meaningful sense,
>> making the documentation for the function seem completely weird.
>> 
>
> So maybe:
>
> s/drm_printer_is_full/drm_coredump_printer_is_full?

Works for me.

BR,
Jani.


-- 
Jani Nikula, Intel

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

end of thread, other threads:[~2025-04-16  7:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-10  4:06 [PATCH v3 0/4] Large devcoredump file support Matthew Brost
2025-04-10  4:06 ` [PATCH v3 1/4] drm/xe: Add devcoredump chunking Matthew Brost
2025-04-10 17:47   ` John Harrison
2025-04-10  4:06 ` [PATCH v3 2/4] drm/xe: Update xe_ttm_access_memory to use GPU for non-visible access Matthew Brost
2025-04-10  4:06 ` [PATCH v3 3/4] drm/print: Add drm_printer_is_full Matthew Brost
2025-04-10 12:06   ` Jani Nikula
2025-04-15 17:10     ` Matthew Brost
2025-04-16  7:14       ` Jani Nikula
2025-04-10  4:06 ` [PATCH v3 4/4] drm/xe: Abort printing coredump in VM printer output if full Matthew Brost
2025-04-10  4:11 ` ✓ CI.Patch_applied: success for Large devcoredump file support Patchwork
2025-04-10  4:11 ` ✓ CI.checkpatch: " Patchwork
2025-04-10  4:12 ` ✓ CI.KUnit: " Patchwork
2025-04-10  4:28 ` ✗ CI.Build: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).