* [PATCH v8 1/8] drm/xe/oa: Ignore a HW tail pointer outside the OA buffer
2026-11-19 0:27 [PATCH v8 0/8] Cleanup OA stream on PCI unbind/remove Umesh Nerlige Ramappa
@ 2026-11-19 0:27 ` Umesh Nerlige Ramappa
2026-11-19 0:39 ` sashiko-bot
2026-11-19 0:27 ` [PATCH v8 2/8] drm/xe/oa: Use the drm device address_space for the OA stream fd Umesh Nerlige Ramappa
` (8 subsequent siblings)
9 siblings, 1 reply; 16+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-19 0:27 UTC (permalink / raw)
To: intel-xe, shekhar.chauhan, harish.chegondi; +Cc: matthew.brost
A device that stopped responding, e.g. during PCI error recovery or
after a surprise removal, returns all ones for the OA tail pointer, and
a reset device returns 0. Subtracting the GGTT address of the OA buffer
then leaves a tail offset way past the end of the OA buffer.
Since xe_oa_circ_diff() replaced the masked OA_TAKEN(), nothing brings
such an offset back into the OA buffer. xe_oa_buffer_check_unlocked()
walks backward from it, reading report ids and timestamps out of bounds
of the OA buffer mapping, from the poll hrtimer in hardirq context and
with the OA buffer lock held.
Ignore a HW tail outside the OA buffer, as if no new reports landed.
Fixes: 3a1fc394ba85 ("drm/xe/oa: Changes to OA_TAKEN")
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
drivers/gpu/drm/xe/xe_oa.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
index 838802482ada..fdd2d11ce4e7 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -270,6 +270,15 @@ static bool xe_oa_buffer_check_unlocked(struct xe_oa_stream *stream)
hw_tail = xe_oa_hw_tail_read(stream);
hw_tail -= gtt_offset;
+ /*
+ * A device that stopped responding, or was reset, returns a tail outside the OA
+ * buffer. Don't walk the buffer from there.
+ */
+ if (hw_tail >= stream->oa_buffer.circ_size) {
+ spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
+ return false;
+ }
+
/*
* The tail pointer increases in 64 byte (cacheline size), not in report_size
* increments. Also report size may not be a power of 2. Compute potential
--
2.55.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [PATCH v8 1/8] drm/xe/oa: Ignore a HW tail pointer outside the OA buffer
2026-11-19 0:27 ` [PATCH v8 1/8] drm/xe/oa: Ignore a HW tail pointer outside the OA buffer Umesh Nerlige Ramappa
@ 2026-11-19 0:39 ` sashiko-bot
0 siblings, 0 replies; 16+ messages in thread
From: sashiko-bot @ 2026-11-19 0:39 UTC (permalink / raw)
To: Umesh Nerlige Ramappa, intel-xe
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] drm/xe/oa: early false return in
xe_oa_buffer_check_unlocked() desyncs pollin
- [Low] drm/xe/oa: Fixes trailer cites 3a1fc394ba85 instead of
cffd77865f47
--
commit 42d5de4e7078897659a5043b18ec1b877eb0c6b7
Author: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
> drm/xe/oa: Ignore a HW tail pointer outside the OA buffer
>
> A device that stopped responding, e.g. during PCI error recovery or
> after a surprise removal, returns all ones for the OA tail pointer, and
> a reset device returns 0. Subtracting the GGTT address of the OA buffer
> then leaves a tail offset way past the end of the OA buffer.
>
> Since xe_oa_circ_diff() replaced the masked OA_TAKEN(), nothing brings
> such an offset back into the OA buffer. xe_oa_buffer_check_unlocked()
> walks backward from it, reading report ids and timestamps out of bounds
> of the OA buffer mapping, from the poll hrtimer in hardirq context and
> with the OA buffer lock held.
>
> Ignore a HW tail outside the OA buffer, as if no new reports landed.
>
> Fixes: 3a1fc394ba85 ("drm/xe/oa: Changes to OA_TAKEN")
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
[Severity: Low]
Should the Fixes: tag point to cffd77865f47 ("drm/xe/oa: Enable Xe2+
overrun mode") instead?
Commit 3a1fc394ba85 ("drm/xe/oa: Changes to OA_TAKEN") only renamed
OA_TAKEN() to xe_oa_circ_diff() while keeping the (XE_OA_BUFFER_SIZE - 1)
mask. Commit cffd77865f47 ("drm/xe/oa: Enable Xe2+ overrun mode")
removed that mask and added stream->oa_buffer.circ_size.
> diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
> index 838802482adaf..fdd2d11ce4e7a 100644
> --- a/drivers/gpu/drm/xe/xe_oa.c
> +++ b/drivers/gpu/drm/xe/xe_oa.c
> @@ -270,6 +270,15 @@ static bool xe_oa_buffer_check_unlocked(struct xe_oa_stream *stream)
> hw_tail = xe_oa_hw_tail_read(stream);
> hw_tail -= gtt_offset;
>
> + /*
> + * A device that stopped responding, or was reset, returns a tail outside the OA
> + * buffer. Don't walk the buffer from there.
> + */
> + if (hw_tail >= stream->oa_buffer.circ_size) {
> + spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
> + return false;
> + }
[Severity: Medium]
Should this return stream->pollin (or recompute it from the unread data
between stream->oa_buffer.head and stream->oa_buffer.tail) instead of
false?
If reports had already landed and set stream->pollin = true before a
reset or PCI error makes hw_tail out of bounds, xe_oa_poll_locked() will
still report EPOLLIN via stream->pollin, while a blocking read in
xe_oa_wait_unlocked() will wait in wait_event_interruptible() for
xe_oa_buffer_check_unlocked(stream) and stall instead of draining the
buffered reports.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261119002737.3899877-10-umesh.nerlige.ramappa@intel.com?part=1
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH v8 2/8] drm/xe/oa: Use the drm device address_space for the OA stream fd
2026-11-19 0:27 [PATCH v8 0/8] Cleanup OA stream on PCI unbind/remove Umesh Nerlige Ramappa
2026-11-19 0:27 ` [PATCH v8 1/8] drm/xe/oa: Ignore a HW tail pointer outside the OA buffer Umesh Nerlige Ramappa
@ 2026-11-19 0:27 ` Umesh Nerlige Ramappa
2026-11-19 0:39 ` sashiko-bot
2026-11-19 0:27 ` [PATCH v8 3/8] drm/xe/oa: Wait for in-flight OA batches before stream HW teardown Umesh Nerlige Ramappa
` (7 subsequent siblings)
9 siblings, 1 reply; 16+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-19 0:27 UTC (permalink / raw)
To: intel-xe, shekhar.chauhan, harish.chegondi; +Cc: matthew.brost
anon_inode_getfd() hands back a file whose f_mapping points at the
address_space of the kernel-wide singleton anon_inode_inode, shared by
every other anon_inode_getfd()/anon_inode_getfile() user in the system.
Any code that needs to invalidate userspace mappings of the OA buffer
via that mapping (e.g. unmap_mapping_range()) would end up operating on
an address_space it doesn't own, with the potential to affect unrelated
mappings.
Keep the anon inode singleton and only point the file's f_mapping at the
drm device's address_space (drm.anon_inode->i_mapping), same as drm_file
does for drm fds. f_mapping must be set before the fd is visible to
userspace, so reserve the fd with get_unused_fd_flags(), create the file
with anon_inode_getfile() and install it with fd_install() after setting
f_mapping.
To keep the OA buffer mmaps of different streams apart from each other
and from GEM mmaps in that shared address_space, reserve a GEM fake
offset for the OA buffer with drm_gem_create_mmap_offset(), and move
the vma to that offset in xe_oa_mmap() by setting vm_pgoff, the same
way drm_gem_prime_mmap() does. f_op->mmap runs before the vma is linked
into the address_space, so the vma is tracked at the OA buffer's own
range, and drm_vma_node_unmap() on the OA buffer only zaps mappings of
that buffer. The TTM fault handler already subtracts the fake offset
from vm_pgoff, so faults resolve to the right pages unchanged.
drm_dev_unplug() now also zaps OA buffer mmaps along with all other
mmaps of the drm device.
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
drivers/gpu/drm/xe/xe_oa.c | 41 +++++++++++++++++++++++++++++++++++++-
1 file changed, 40 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
index fdd2d11ce4e7..d574b0ecf39b 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -917,6 +917,7 @@ static int xe_oa_alloc_oa_buffer(struct xe_oa_stream *stream, size_t size)
XE_BO_FLAG_VRAM_IF_DGFX(xe_device_get_root_tile(stream->oa->xe)) :
XE_BO_FLAG_SYSTEM;
struct xe_bo *bo;
+ int ret;
bo = xe_bo_create_pin_map_novm(stream->oa->xe, stream->gt->tile,
size, ttm_bo_type_kernel,
@@ -924,6 +925,17 @@ static int xe_oa_alloc_oa_buffer(struct xe_oa_stream *stream, size_t size)
if (IS_ERR(bo))
return PTR_ERR(bo);
+ /*
+ * Reserve a range for the OA buffer in the drm device's address_space, so that its
+ * userspace mmaps don't overlap with those of GEM BOs or other OA buffers and can be
+ * unmapped on their own. Not granted to any drm_file, so not mmap'able via drm fds.
+ */
+ ret = drm_gem_create_mmap_offset(&bo->ttm.base);
+ if (ret) {
+ xe_bo_unpin_map_no_vm(bo);
+ return ret;
+ }
+
/*
* ttm_bo_type_kernel BOs are not zeroed on allocation, so the buffer can
* hold stale data from previously freed pages. Since the OA buffer is
@@ -1731,6 +1743,15 @@ static int xe_oa_mmap(struct file *file, struct vm_area_struct *vma)
return ret;
}
+ /*
+ * Userspace always maps the OA buffer at offset 0, the mapping is moved to the OA
+ * buffer's own range in the drm device's address_space below
+ */
+ if (vma->vm_pgoff) {
+ drm_dbg(&stream->oa->xe->drm, "Wrong mmap offset, must be 0\n");
+ return -EINVAL;
+ }
+
/* Can mmap the entire OA buffer or nothing (no partial OA buffer mmaps) */
if (vma->vm_end - vma->vm_start != xe_bo_size(bo)) {
drm_dbg(&stream->oa->xe->drm, "Wrong mmap size, must be OA buffer size\n");
@@ -1748,6 +1769,8 @@ static int xe_oa_mmap(struct file *file, struct vm_area_struct *vma)
vm_flags_mod(vma, VM_PFNMAP | VM_DONTEXPAND | VM_DONTDUMP | VM_DONTCOPY,
VM_MAYWRITE | VM_MAYEXEC);
+ vma->vm_pgoff = drm_vma_node_start(&bo->ttm.base.vma_node);
+
return drm_gem_mmap_obj(&bo->ttm.base, xe_bo_size(bo), vma);
}
@@ -1878,6 +1901,7 @@ static int xe_oa_stream_open_ioctl_locked(struct xe_oa *oa,
{
struct xe_oa_stream *stream;
struct drm_syncobj *ufence_syncobj;
+ struct file *file;
int stream_fd;
int ret;
@@ -1919,12 +1943,27 @@ static int xe_oa_stream_open_ioctl_locked(struct xe_oa *oa,
goto err_destroy;
}
- stream_fd = anon_inode_getfd("[xe_oa]", &xe_oa_fops, stream, 0);
+ stream_fd = get_unused_fd_flags(0);
if (stream_fd < 0) {
ret = stream_fd;
goto err_disable;
}
+ file = anon_inode_getfile("[xe_oa]", &xe_oa_fops, stream, 0);
+ if (IS_ERR(file)) {
+ ret = PTR_ERR(file);
+ put_unused_fd(stream_fd);
+ goto err_disable;
+ }
+
+ /*
+ * Don't use the address_space of the anon inode singleton, which is shared with
+ * unrelated anon files. Use the drm device's address_space instead, same as drm fds.
+ * OA buffer mmaps live at the OA buffer's own fake offset range there.
+ */
+ file->f_mapping = oa->xe->drm.anon_inode->i_mapping;
+ fd_install(stream_fd, file);
+
if (stream->sample)
xe_reg_whitelist_oa_regs(stream->gt);
--
2.55.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [PATCH v8 2/8] drm/xe/oa: Use the drm device address_space for the OA stream fd
2026-11-19 0:27 ` [PATCH v8 2/8] drm/xe/oa: Use the drm device address_space for the OA stream fd Umesh Nerlige Ramappa
@ 2026-11-19 0:39 ` sashiko-bot
0 siblings, 0 replies; 16+ messages in thread
From: sashiko-bot @ 2026-11-19 0:39 UTC (permalink / raw)
To: Umesh Nerlige Ramappa, intel-xe
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/xe/oa: missing Fixes trailer for OA buffer mmap
address_space fix
--
commit 578317c3691785f24541d656435be9897f349165
Author: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
> drm/xe/oa: Use the drm device address_space for the OA stream fd
>
> anon_inode_getfd() hands back a file whose f_mapping points at the
> address_space of the kernel-wide singleton anon_inode_inode, shared by
> every other anon_inode_getfd()/anon_inode_getfile() user in the system.
> Any code that needs to invalidate userspace mappings of the OA buffer
> via that mapping (e.g. unmap_mapping_range()) would end up operating on
> an address_space it doesn't own, with the potential to affect unrelated
> mappings.
>
> Keep the anon inode singleton and only point the file's f_mapping at the
> drm device's address_space (drm.anon_inode->i_mapping), same as drm_file
> does for drm fds. f_mapping must be set before the fd is visible to
> userspace, so reserve the fd with get_unused_fd_flags(), create the file
> with anon_inode_getfile() and install it with fd_install() after setting
> f_mapping.
>
> To keep the OA buffer mmaps of different streams apart from each other
> and from GEM mmaps in that shared address_space, reserve a GEM fake
> offset for the OA buffer with drm_gem_create_mmap_offset(), and move
> the vma to that offset in xe_oa_mmap() by setting vm_pgoff, the same
> way drm_gem_prime_mmap() does. f_op->mmap runs before the vma is linked
> into the address_space, so the vma is tracked at the OA buffer's own
> range, and drm_vma_node_unmap() on the OA buffer only zaps mappings of
> that buffer. The TTM fault handler already subtracts the fake offset
> from vm_pgoff, so faults resolve to the right pages unchanged.
>
> drm_dev_unplug() now also zaps OA buffer mmaps along with all other
> mmaps of the drm device.
>
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
[Severity: Low]
Without setting file->f_mapping to oa->xe->drm.anon_inode->i_mapping and
assigning a per-BO fake offset in vma->vm_pgoff, splitting an OA buffer
VMA triggers WARN_ON(bo->bdev->dev_mapping != vma->vm_file->f_mapping) in
ttm_bo_vm_open(), non-zero mmap offsets miscalculate page_offset in
ttm_bo_vm_fault_reserved(), and drm_vma_node_unmap() and drm_dev_unplug()
fail to unmap OA buffer mappings.
Should this include Fixes tags for the commits that introduced OA buffer
mmap and switched it to drm_gem_mmap_obj()?
Fixes: 392bf22238ff ("drm/xe/oa/uapi: OA buffer mmap")
Fixes: 41255b2f1e03 ("drm/xe/oa: Use drm_gem_mmap_obj for OA buffer mmap")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261119002737.3899877-10-umesh.nerlige.ramappa@intel.com?part=2
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH v8 3/8] drm/xe/oa: Wait for in-flight OA batches before stream HW teardown
2026-11-19 0:27 [PATCH v8 0/8] Cleanup OA stream on PCI unbind/remove Umesh Nerlige Ramappa
2026-11-19 0:27 ` [PATCH v8 1/8] drm/xe/oa: Ignore a HW tail pointer outside the OA buffer Umesh Nerlige Ramappa
2026-11-19 0:27 ` [PATCH v8 2/8] drm/xe/oa: Use the drm device address_space for the OA stream fd Umesh Nerlige Ramappa
@ 2026-11-19 0:27 ` Umesh Nerlige Ramappa
2026-11-19 0:27 ` [PATCH v8 4/8] drm/xe: Reject vm_ops->access on BO mappings of an unplugged device Umesh Nerlige Ramappa
` (6 subsequent siblings)
9 siblings, 0 replies; 16+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-19 0:27 UTC (permalink / raw)
To: intel-xe, shekhar.chauhan, harish.chegondi; +Cc: matthew.brost
Config batches submitted with output syncs and context LRI batches are
not waited for. If one is still in flight when the stream is closed, it
can program the OA registers after they were restored.
Both go to the same exec queue, so also record the LRI batch fence in
stream->last_fence, and wait for it before the HW teardown, bounded by
the job timeout of the exec queue. Also wait for the LRI batch that
disables the context save/restore of the OA counters during the HW
teardown, which covers the stream init error path as well.
A config batch with an input sync that doesn't signal sits in the
scheduler, where no TDR times it out, and still runs once the sync
signals, possibly reprogramming the OA config of a later stream. Don't
kill the exec queue when the wait times out to prevent that: the TDR of
a killed kernel exec queue resets the GT and can wedge the device.
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
v2: Kill the exec queue if the wait times out (Sashiko)
v3: Drop the exec queue kill, it can reset the GT and wedge the device
when the batch is on the kernel exec queue. Wait for the context LRI
batch of the HW teardown too (Sashiko)
---
drivers/gpu/drm/xe/xe_oa.c | 46 +++++++++++++++++++++++++++++++-------
1 file changed, 38 insertions(+), 8 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
index d574b0ecf39b..1c2f57735e0d 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -741,6 +741,12 @@ static void xe_oa_free_configs(struct xe_oa_stream *stream)
dma_fence_put(stream->last_fence);
}
+static void xe_oa_update_last_fence(struct xe_oa_stream *stream, struct dma_fence *fence)
+{
+ dma_fence_put(stream->last_fence);
+ stream->last_fence = dma_fence_get(fence);
+}
+
static int xe_oa_load_with_lri(struct xe_oa_stream *stream, struct xe_oa_reg *reg_lri, u32 count)
{
struct dma_fence *fence;
@@ -761,6 +767,7 @@ static int xe_oa_load_with_lri(struct xe_oa_stream *stream, struct xe_oa_reg *re
goto free_bb;
}
xe_bb_free(bb, fence);
+ xe_oa_update_last_fence(stream, fence);
dma_fence_put(fence);
return 0;
@@ -848,6 +855,28 @@ static u32 oag_configure_mmio_trigger(const struct xe_oa_stream *stream, bool en
return REG_MASKED_FIELD_ENABLE(OAG_OA_DEBUG_DISABLE_MMIO_TRG);
}
+/*
+ * Wait for the last OA batch of the stream, so that it can't program the HW after the HW
+ * teardown.
+ */
+static void xe_oa_stream_drain(struct xe_oa_stream *stream)
+{
+ struct xe_exec_queue *q = stream->exec_q ?: stream->k_exec_q;
+ long timeout;
+
+ if (!stream->last_fence || dma_fence_is_signaled(stream->last_fence))
+ return;
+
+ /*
+ * A batch waiting for an input sync that doesn't signal isn't covered by a TDR and still
+ * runs once the sync signals, possibly reprogramming the OA config. Don't kill the exec
+ * queue to prevent that, the TDR of a killed kernel exec queue resets the GT.
+ */
+ timeout = msecs_to_jiffies(q->sched_props.job_timeout_ms) + HZ;
+ if (!dma_fence_wait_timeout(stream->last_fence, false, timeout))
+ drm_err(&stream->oa->xe->drm, "Timed out waiting for OA batch\n");
+}
+
static void xe_oa_disable_metric_set(struct xe_oa_stream *stream)
{
struct xe_mmio *mmio = &stream->gt->mmio;
@@ -864,9 +893,14 @@ static void xe_oa_disable_metric_set(struct xe_oa_stream *stream)
xe_mmio_write32(mmio, __oa_regs(stream)->oa_debug,
oag_configure_mmio_trigger(stream, false));
- /* disable the context save/restore or OAR counters */
- if (stream->exec_q)
+ /*
+ * disable the context save/restore or OAR counters, and wait for that batch like for
+ * the ones before it
+ */
+ if (stream->exec_q) {
xe_oa_configure_oa_context(stream, false);
+ xe_oa_stream_drain(stream);
+ }
/* Make sure we disable noa to save power. */
if (GT_VER(stream->gt) < 35)
@@ -896,6 +930,8 @@ static void xe_oa_stream_destroy(struct xe_oa_stream *stream)
mutex_destroy(&stream->stream_lock);
+ xe_oa_stream_drain(stream);
+
if (stream->sample)
xe_reg_dewhitelist_oa_regs(stream->gt);
@@ -1002,12 +1038,6 @@ xe_oa_alloc_config_buffer(struct xe_oa_stream *stream, struct xe_oa_config *oa_c
return oa_bo;
}
-static void xe_oa_update_last_fence(struct xe_oa_stream *stream, struct dma_fence *fence)
-{
- dma_fence_put(stream->last_fence);
- stream->last_fence = dma_fence_get(fence);
-}
-
static void xe_oa_fence_work_fn(struct work_struct *w)
{
struct xe_oa_fence *ofence = container_of(w, typeof(*ofence), work.work);
--
2.55.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH v8 4/8] drm/xe: Reject vm_ops->access on BO mappings of an unplugged device
2026-11-19 0:27 [PATCH v8 0/8] Cleanup OA stream on PCI unbind/remove Umesh Nerlige Ramappa
` (2 preceding siblings ...)
2026-11-19 0:27 ` [PATCH v8 3/8] drm/xe/oa: Wait for in-flight OA batches before stream HW teardown Umesh Nerlige Ramappa
@ 2026-11-19 0:27 ` Umesh Nerlige Ramappa
2026-11-19 0:39 ` sashiko-bot
2026-11-19 0:27 ` [PATCH v8 5/8] drm/xe/oa: Fence OA ioctls and mmap against device unplug and wedging Umesh Nerlige Ramappa
` (5 subsequent siblings)
9 siblings, 1 reply; 16+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-19 0:27 UTC (permalink / raw)
To: intel-xe, shekhar.chauhan, harish.chegondi; +Cc: matthew.brost
A userspace mapping of a BO can outlive the device, e.g. across unbind
or a PCI slot reset. After drm_dev_unplug() the fault handler only
installs a dummy page, but ptrace, /proc/<pid>/mem and
process_vm_readv() can't use get_user_pages() on these VM_PFNMAP vmas
and fall back to vm_ops->access(), i.e. xe_bo_vm_access().
xe_bo_vm_access() doesn't check whether the device is still there. For
a BO in VRAM, xe_ttm_access_memory() then either goes through the VRAM
iomap, which is unmapped on remove, or submits a migrate job after the
GT has been torn down. This applies to GEM mmaps and to the OA buffer
mmap of an OA stream that outlives the device.
Enter a drm_dev_enter() section in xe_bo_vm_access() and fail with
-ENODEV once the device is unplugged, like xe_bo_cpu_fault() does.
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
---
drivers/gpu/drm/xe/xe_bo.c | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
index 42a6aa1a2e4a..a74c38df2bdd 100644
--- a/drivers/gpu/drm/xe/xe_bo.c
+++ b/drivers/gpu/drm/xe/xe_bo.c
@@ -2345,9 +2345,20 @@ static int xe_bo_vm_access(struct vm_area_struct *vma, unsigned long addr,
struct ttm_buffer_object *ttm_bo = vma->vm_private_data;
struct xe_bo *bo = ttm_to_xe_bo(ttm_bo);
struct xe_device *xe = xe_bo_device(bo);
+ int idx, ret;
- guard(xe_pm_runtime)(xe);
- return ttm_bo_vm_access(vma, addr, buf, len, write);
+ /*
+ * A mapping can outlive the device. Once it's unplugged, VRAM is unmapped and the
+ * migrate engines are gone, so refuse access, like the fault handler does.
+ */
+ if (!drm_dev_enter(&xe->drm, &idx))
+ return -ENODEV;
+
+ scoped_guard(xe_pm_runtime, xe)
+ ret = ttm_bo_vm_access(vma, addr, buf, len, write);
+
+ drm_dev_exit(idx);
+ return ret;
}
/**
--
2.55.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [PATCH v8 4/8] drm/xe: Reject vm_ops->access on BO mappings of an unplugged device
2026-11-19 0:27 ` [PATCH v8 4/8] drm/xe: Reject vm_ops->access on BO mappings of an unplugged device Umesh Nerlige Ramappa
@ 2026-11-19 0:39 ` sashiko-bot
0 siblings, 0 replies; 16+ messages in thread
From: sashiko-bot @ 2026-11-19 0:39 UTC (permalink / raw)
To: Umesh Nerlige Ramappa, intel-xe
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/xe: missing Fixes trailer in xe_bo_vm_access() unplug fix
--
commit e933357c9bd9b1d3ece2d7be6b906c17ac2ef57d
Author: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
> drm/xe: Reject vm_ops->access on BO mappings of an unplugged device
>
> A userspace mapping of a BO can outlive the device, e.g. across unbind
> or a PCI slot reset. After drm_dev_unplug() the fault handler only
> installs a dummy page, but ptrace, /proc/<pid>/mem and
> process_vm_readv() can't use get_user_pages() on these VM_PFNMAP vmas
> and fall back to vm_ops->access(), i.e. xe_bo_vm_access().
>
> xe_bo_vm_access() doesn't check whether the device is still there. For
> a BO in VRAM, xe_ttm_access_memory() then either goes through the VRAM
> iomap, which is unmapped on remove, or submits a migrate job after the
> GT has been torn down. This applies to GEM mmaps and to the OA buffer
> mmap of an OA stream that outlives the device.
>
> Enter a drm_dev_enter() section in xe_bo_vm_access() and fail with
> -ENODEV once the device is unplugged, like xe_bo_cpu_fault() does.
>
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
> Cc: Matthew Brost <matthew.brost@intel.com>
[Severity: Low]
Since this fixes a missing unplug check in xe_bo_vm_access(), should it
include:
Fixes: f85dc3c5abdd ("drm/xe: Add xe_bo_vm_access")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261119002737.3899877-10-umesh.nerlige.ramappa@intel.com?part=4
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH v8 5/8] drm/xe/oa: Fence OA ioctls and mmap against device unplug and wedging
2026-11-19 0:27 [PATCH v8 0/8] Cleanup OA stream on PCI unbind/remove Umesh Nerlige Ramappa
` (3 preceding siblings ...)
2026-11-19 0:27 ` [PATCH v8 4/8] drm/xe: Reject vm_ops->access on BO mappings of an unplugged device Umesh Nerlige Ramappa
@ 2026-11-19 0:27 ` Umesh Nerlige Ramappa
2026-11-19 0:27 ` [PATCH v8 6/8] drm/xe/oa: Take the runtime PM reference in xe_oa_destroy_locked() Umesh Nerlige Ramappa
` (4 subsequent siblings)
9 siblings, 0 replies; 16+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-19 0:27 UTC (permalink / raw)
To: intel-xe, shekhar.chauhan, harish.chegondi; +Cc: matthew.brost
drm_ioctl() only checks for unplug on entry, so an OA ioctl that
started before drm_dev_unplug() can still open a stream, or access
oa->xe and the metrics idr, while the device is removed. The ioctls and
the mmap of the OA stream fd don't go through drm_ioctl() at all, and
neither through the wedged check of xe_drm_ioctl().
Run the OA ioctls of the drm fd and the ioctls and mmap of the OA stream
fd in a drm_dev_enter() section, so that they fail with -ENODEV once the
device is unplugged, and drm_dev_unplug() waits for the ones in flight.
Fail the stream fd ioctls with -ECANCELED on a wedged device, like
xe_drm_ioctl() does.
A config without output syncs waits synchronously for its batch, while
holding stream_lock or gt_lock and now in a drm_dev_enter() section. If
the batch waits on an input fence that never signals, or never completes
on a wedged device, that would block drm_dev_unplug() or the stream
teardown. Stop waiting once the device is unplugged or wedged, and fail
the config.
A stream fd can still outlive the device, the following patch handles
that.
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
v8: Split out of "drm/xe/oa: Quiesce OA streams on driver unbind and PCI
reset", which carried these changes since v4
---
drivers/gpu/drm/xe/xe_oa.c | 75 +++++++++++++++++++++++------
drivers/gpu/drm/xe/xe_observation.c | 20 +++++++-
2 files changed, 78 insertions(+), 17 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
index 1c2f57735e0d..72f173fb23cd 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -43,6 +43,7 @@
#include "xe_sriov.h"
#include "xe_sync.h"
#include "xe_wa.h"
+#include "xe_wedge.h"
#define DEFAULT_POLL_FREQUENCY_HZ 200
#define DEFAULT_POLL_PERIOD_NS (NSEC_PER_SEC / DEFAULT_POLL_FREQUENCY_HZ)
@@ -1082,6 +1083,7 @@ static int xe_oa_emit_oa_config(struct xe_oa_stream *stream, struct xe_oa_config
struct xe_oa_fence *ofence;
int i, err, num_signal = 0;
struct dma_fence *fence;
+ int ret = 0;
ofence = kzalloc_obj(*ofence);
if (!ofence) {
@@ -1125,12 +1127,28 @@ static int xe_oa_emit_oa_config(struct xe_oa_stream *stream, struct xe_oa_config
if (err == -ENOENT)
xe_oa_config_cb(fence, &ofence->cb);
- /* If nothing needs to be signaled we wait synchronously */
+ /*
+ * If nothing needs to be signaled we wait synchronously unless the device
+ * is unplugged/wedged.
+ */
if (!num_signal) {
- dma_fence_wait(&ofence->base, false);
+ while (!dma_fence_wait_timeout(&ofence->base, false, HZ / 10)) {
+ if (drm_dev_is_unplugged(>_to_xe(stream->gt)->drm)) {
+ ret = -ENODEV;
+ break;
+ }
+ if (xe_wedged(gt_to_xe(stream->gt))) {
+ ret = -ECANCELED;
+ break;
+ }
+ }
dma_fence_put(&ofence->base);
}
+ /* The callers clean up the syncs on error */
+ if (ret)
+ return ret;
+
/* Done with syncs */
for (i = 0; i < stream->num_syncs; i++)
xe_sync_entry_cleanup(&stream->syncs[i]);
@@ -1722,11 +1740,20 @@ static long xe_oa_ioctl(struct file *file,
unsigned long arg)
{
struct xe_oa_stream *stream = file->private_data;
- long ret;
+ struct xe_device *xe = gt_to_xe(stream->gt);
+ long ret = -ECANCELED;
+ int idx;
- mutex_lock(&stream->stream_lock);
- ret = xe_oa_ioctl_locked(stream, cmd, arg);
- mutex_unlock(&stream->stream_lock);
+ if (!drm_dev_enter(&xe->drm, &idx))
+ return -ENODEV;
+
+ if (!xe_wedged(xe)) {
+ mutex_lock(&stream->stream_lock);
+ ret = xe_oa_ioctl_locked(stream, cmd, arg);
+ mutex_unlock(&stream->stream_lock);
+ }
+
+ drm_dev_exit(idx);
return ret;
}
@@ -1765,27 +1792,41 @@ static int xe_oa_release(struct inode *inode, struct file *file)
static int xe_oa_mmap(struct file *file, struct vm_area_struct *vma)
{
struct xe_oa_stream *stream = file->private_data;
+ struct xe_device *xe = gt_to_xe(stream->gt);
int ret = xe_observation_paranoid_check();
- struct xe_bo *bo = stream->oa_buffer.bo;
+ struct xe_bo *bo;
+ int idx;
if (ret) {
- drm_dbg(&stream->oa->xe->drm, "Insufficient privilege to map OA buffer\n");
+ drm_dbg(&xe->drm, "Insufficient privilege to map OA buffer\n");
return ret;
}
+ /*
+ * drm_dev_unplug() zaps the OA buffer mmaps and waits for this section to finish, so
+ * no mmap of the OA buffer can be set up after that. Can't use stream_lock here, it is
+ * held across user copies which fault on mmap_lock, held by the caller.
+ */
+ if (!drm_dev_enter(&xe->drm, &idx))
+ return -ENODEV;
+
/*
* Userspace always maps the OA buffer at offset 0, the mapping is moved to the OA
* buffer's own range in the drm device's address_space below
*/
if (vma->vm_pgoff) {
- drm_dbg(&stream->oa->xe->drm, "Wrong mmap offset, must be 0\n");
- return -EINVAL;
+ drm_dbg(&xe->drm, "Wrong mmap offset, must be 0\n");
+ ret = -EINVAL;
+ goto exit;
}
+ bo = stream->oa_buffer.bo;
+
/* Can mmap the entire OA buffer or nothing (no partial OA buffer mmaps) */
if (vma->vm_end - vma->vm_start != xe_bo_size(bo)) {
- drm_dbg(&stream->oa->xe->drm, "Wrong mmap size, must be OA buffer size\n");
- return -EINVAL;
+ drm_dbg(&xe->drm, "Wrong mmap size, must be OA buffer size\n");
+ ret = -EINVAL;
+ goto exit;
}
/*
@@ -1793,15 +1834,19 @@ static int xe_oa_mmap(struct file *file, struct vm_area_struct *vma)
* VM_MAYSHARE, don't copy the vma on fork
*/
if (vma->vm_flags & (VM_WRITE | VM_EXEC | VM_SHARED | VM_MAYSHARE)) {
- drm_dbg(&stream->oa->xe->drm, "mmap must be read only\n");
- return -EINVAL;
+ drm_dbg(&xe->drm, "mmap must be read only\n");
+ ret = -EINVAL;
+ goto exit;
}
vm_flags_mod(vma, VM_PFNMAP | VM_DONTEXPAND | VM_DONTDUMP | VM_DONTCOPY,
VM_MAYWRITE | VM_MAYEXEC);
vma->vm_pgoff = drm_vma_node_start(&bo->ttm.base.vma_node);
- return drm_gem_mmap_obj(&bo->ttm.base, xe_bo_size(bo), vma);
+ ret = drm_gem_mmap_obj(&bo->ttm.base, xe_bo_size(bo), vma);
+exit:
+ drm_dev_exit(idx);
+ return ret;
}
static const struct file_operations xe_oa_fops = {
diff --git a/drivers/gpu/drm/xe/xe_observation.c b/drivers/gpu/drm/xe/xe_observation.c
index 39e05b9131a7..9e23ade51dc1 100644
--- a/drivers/gpu/drm/xe/xe_observation.c
+++ b/drivers/gpu/drm/xe/xe_observation.c
@@ -7,6 +7,7 @@
#include <linux/perf_event.h>
#include <linux/sysctl.h>
+#include <drm/drm_drv.h>
#include <uapi/drm/xe_drm.h>
#include "xe_eu_stall.h"
@@ -35,8 +36,8 @@ int xe_observation_paranoid_check(void)
return perf_allow_cpu();
}
-static int xe_oa_ioctl(struct drm_device *dev, struct drm_xe_observation_param *arg,
- struct drm_file *file)
+static int __xe_oa_ioctl(struct drm_device *dev, struct drm_xe_observation_param *arg,
+ struct drm_file *file)
{
switch (arg->observation_op) {
case DRM_XE_OBSERVATION_OP_STREAM_OPEN:
@@ -50,6 +51,21 @@ static int xe_oa_ioctl(struct drm_device *dev, struct drm_xe_observation_param *
}
}
+static int xe_oa_ioctl(struct drm_device *dev, struct drm_xe_observation_param *arg,
+ struct drm_file *file)
+{
+ int idx, ret;
+
+ /* Hold off drm_dev_unplug() while the OA ioctls run */
+ if (!drm_dev_enter(dev, &idx))
+ return -ENODEV;
+
+ ret = __xe_oa_ioctl(dev, arg, file);
+
+ drm_dev_exit(idx);
+ return ret;
+}
+
static int xe_eu_stall_ioctl(struct drm_device *dev, struct drm_xe_observation_param *arg,
struct drm_file *file)
{
--
2.55.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH v8 6/8] drm/xe/oa: Take the runtime PM reference in xe_oa_destroy_locked()
2026-11-19 0:27 [PATCH v8 0/8] Cleanup OA stream on PCI unbind/remove Umesh Nerlige Ramappa
` (4 preceding siblings ...)
2026-11-19 0:27 ` [PATCH v8 5/8] drm/xe/oa: Fence OA ioctls and mmap against device unplug and wedging Umesh Nerlige Ramappa
@ 2026-11-19 0:27 ` Umesh Nerlige Ramappa
2026-11-19 0:27 ` [PATCH v8 7/8] drm/xe/oa: Free the OA buffer and the stream after the stream destroy Umesh Nerlige Ramappa
` (3 subsequent siblings)
9 siblings, 0 replies; 16+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-19 0:27 UTC (permalink / raw)
To: intel-xe, shekhar.chauhan, harish.chegondi; +Cc: matthew.brost
Move the runtime PM get/put around stream destruction from
xe_oa_release() into xe_oa_destroy_locked(), the only caller, so the
reference is held just around the code that needs the device awake.
This lets a following patch free a stream of a removed device without
taking a runtime PM reference on it. No functional change.
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
drivers/gpu/drm/xe/xe_oa.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
index 72f173fb23cd..f3eceeb34e7b 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -1760,6 +1760,8 @@ static long xe_oa_ioctl(struct file *file,
static void xe_oa_destroy_locked(struct xe_oa_stream *stream)
{
+ xe_pm_runtime_get(gt_to_xe(stream->gt));
+
if (stream->enabled)
xe_oa_disable_locked(stream);
@@ -1769,6 +1771,7 @@ static void xe_oa_destroy_locked(struct xe_oa_stream *stream)
xe_exec_queue_put(stream->exec_q);
drm_syncobj_put(stream->ufence_syncobj);
+ xe_pm_runtime_put(gt_to_xe(stream->gt));
kfree(stream);
}
@@ -1777,11 +1780,9 @@ static int xe_oa_release(struct inode *inode, struct file *file)
struct xe_oa_stream *stream = file->private_data;
struct xe_gt *gt = stream->gt;
- xe_pm_runtime_get(gt_to_xe(gt));
mutex_lock(>->oa.gt_lock);
xe_oa_destroy_locked(stream);
mutex_unlock(>->oa.gt_lock);
- xe_pm_runtime_put(gt_to_xe(gt));
/* Release the reference the OA stream kept on the driver */
drm_dev_put(>_to_xe(gt)->drm);
--
2.55.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH v8 7/8] drm/xe/oa: Free the OA buffer and the stream after the stream destroy
2026-11-19 0:27 [PATCH v8 0/8] Cleanup OA stream on PCI unbind/remove Umesh Nerlige Ramappa
` (5 preceding siblings ...)
2026-11-19 0:27 ` [PATCH v8 6/8] drm/xe/oa: Take the runtime PM reference in xe_oa_destroy_locked() Umesh Nerlige Ramappa
@ 2026-11-19 0:27 ` Umesh Nerlige Ramappa
2026-11-19 0:48 ` sashiko-bot
2026-11-19 0:27 ` [PATCH v8 8/8] drm/xe/oa: Quiesce OA streams on driver unbind and PCI reset Umesh Nerlige Ramappa
` (2 subsequent siblings)
9 siblings, 1 reply; 16+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-19 0:27 UTC (permalink / raw)
To: intel-xe, shekhar.chauhan, harish.chegondi; +Cc: matthew.brost
Free the OA buffer, destroy stream_lock and free the stream struct in
the callers, xe_oa_release() and the stream open error path, after
xe_oa_stream_destroy() and xe_oa_destroy_locked() have released the
rest of the stream.
This lets a following patch release the stream resources when the
device goes away, while keeping the stream struct and the OA buffer,
which an mmap may still reference, until the stream fd is released.
The OA buffer is now freed after the runtime PM reference is dropped.
Removing its GGTT node wakes the device if it is suspended by then.
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
drivers/gpu/drm/xe/xe_oa.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
index f3eceeb34e7b..223419347eb7 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -929,8 +929,6 @@ static void xe_oa_stream_destroy(struct xe_oa_stream *stream)
WRITE_ONCE(u->exclusive_stream, NULL);
- mutex_destroy(&stream->stream_lock);
-
xe_oa_stream_drain(stream);
if (stream->sample)
@@ -939,8 +937,6 @@ static void xe_oa_stream_destroy(struct xe_oa_stream *stream)
xe_oa_disable_metric_set(stream);
xe_exec_queue_put(stream->k_exec_q);
- xe_oa_free_oa_buffer(stream);
-
xe_force_wake_put(gt_to_fw(gt), stream->fw_ref);
xe_pm_runtime_put(stream->oa->xe);
@@ -1772,7 +1768,6 @@ static void xe_oa_destroy_locked(struct xe_oa_stream *stream)
drm_syncobj_put(stream->ufence_syncobj);
xe_pm_runtime_put(gt_to_xe(stream->gt));
- kfree(stream);
}
static int xe_oa_release(struct inode *inode, struct file *file)
@@ -1784,6 +1779,10 @@ static int xe_oa_release(struct inode *inode, struct file *file)
xe_oa_destroy_locked(stream);
mutex_unlock(>->oa.gt_lock);
+ xe_oa_free_oa_buffer(stream);
+ mutex_destroy(&stream->stream_lock);
+ kfree(stream);
+
/* Release the reference the OA stream kept on the driver */
drm_dev_put(>_to_xe(gt)->drm);
@@ -2052,6 +2051,8 @@ static int xe_oa_stream_open_ioctl_locked(struct xe_oa *oa,
xe_oa_disable_locked(stream);
err_destroy:
xe_oa_stream_destroy(stream);
+ xe_oa_free_oa_buffer(stream);
+ mutex_destroy(&stream->stream_lock);
err_free:
kfree(stream);
err_syncobj:
--
2.55.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [PATCH v8 7/8] drm/xe/oa: Free the OA buffer and the stream after the stream destroy
2026-11-19 0:27 ` [PATCH v8 7/8] drm/xe/oa: Free the OA buffer and the stream after the stream destroy Umesh Nerlige Ramappa
@ 2026-11-19 0:48 ` sashiko-bot
0 siblings, 0 replies; 16+ messages in thread
From: sashiko-bot @ 2026-11-19 0:48 UTC (permalink / raw)
To: Umesh Nerlige Ramappa, intel-xe
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/xe/oa: xe_oa_free_oa_buffer() without rpm ref races with
D3cold evict
--
commit e0096ecf7691779fa66e916b1237581810b85b60
Author: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
drm/xe/oa: Free the OA buffer and the stream after the stream destroy
This commit moves freeing the OA buffer, destroying stream_lock, and
freeing the stream structure from xe_oa_stream_destroy() and
xe_oa_destroy_locked() to their callers, xe_oa_release() and the error
path in xe_oa_stream_open_ioctl_locked().
> diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
> index f3eceeb34e7b6..223419347eb7b 100644
> --- a/drivers/gpu/drm/xe/xe_oa.c
> +++ b/drivers/gpu/drm/xe/xe_oa.c
> @@ -929,8 +929,6 @@ static void xe_oa_stream_destroy(struct xe_oa_stream *stream)
>
> WRITE_ONCE(u->exclusive_stream, NULL);
>
> - mutex_destroy(&stream->stream_lock);
> -
> xe_oa_stream_drain(stream);
>
> if (stream->sample)
> @@ -939,8 +937,6 @@ static void xe_oa_stream_destroy(struct xe_oa_stream *stream)
> xe_oa_disable_metric_set(stream);
> xe_exec_queue_put(stream->k_exec_q);
>
> - xe_oa_free_oa_buffer(stream);
> -
> xe_force_wake_put(gt_to_fw(gt), stream->fw_ref);
> xe_pm_runtime_put(stream->oa->xe);
>
> @@ -1772,7 +1768,6 @@ static void xe_oa_destroy_locked(struct xe_oa_stream *stream)
>
> drm_syncobj_put(stream->ufence_syncobj);
> xe_pm_runtime_put(gt_to_xe(stream->gt));
> - kfree(stream);
> }
>
> static int xe_oa_release(struct inode *inode, struct file *file)
> @@ -1784,6 +1779,10 @@ static int xe_oa_release(struct inode *inode, struct file *file)
> xe_oa_destroy_locked(stream);
> mutex_unlock(>->oa.gt_lock);
>
> + xe_oa_free_oa_buffer(stream);
> + mutex_destroy(&stream->stream_lock);
> + kfree(stream);
> +
> /* Release the reference the OA stream kept on the driver */
> drm_dev_put(>_to_xe(gt)->drm);
>
> @@ -2052,6 +2051,8 @@ static int xe_oa_stream_open_ioctl_locked(struct xe_oa *oa,
> xe_oa_disable_locked(stream);
> err_destroy:
> xe_oa_stream_destroy(stream);
> + xe_oa_free_oa_buffer(stream);
> + mutex_destroy(&stream->stream_lock);
> err_free:
> kfree(stream);
> err_syncobj:
[Severity: Medium]
Can calling xe_oa_free_oa_buffer() after the stream's runtime PM
references have been dropped race with D3cold pinned-BO eviction and
restoration?
stream->oa_buffer.bo is pinned with XE_BO_FLAG_GGTT, which places it on
xe->pinned.early.kernel_bo_present. When D3cold is allowed,
xe_pm_runtime_suspend() and xe_pm_runtime_resume() walk the pinned lists
via xe_bo_apply_to_pinned(), which drops xe->pinned.lock before locking
the BO:
CPU0 CPU1
xe_oa_release() xe_pm_runtime_suspend()
xe_oa_destroy_locked() xe_bo_evict_all()
xe_pm_runtime_put() xe_bo_apply_to_pinned()
spin_lock(&xe->pinned.lock)
xe_bo_get(bo)
list_move_tail(&bo->pinned_link, ...)
spin_unlock(&xe->pinned.lock)
xe_oa_free_oa_buffer()
xe_bo_unpin_map_no_vm(bo)
xe_bo_lock(bo, false)
xe_bo_unpin(bo)
xe_bo_unlock(bo)
xe_bo_evict_pinned(bo)
xe_bo_lock(bo, false)
WARN_ON(!xe_bo_is_pinned(bo))
<-- returns -EINVAL
If runtime suspend finishes first and a subsequent runtime resume races
with xe_oa_free_oa_buffer() on platforms where mert_wa_14026633728 places
the OA buffer in VRAM, xe_bo_restore_pinned() also reads bo->backup_obj
before acquiring xe_bo_lock(bo, false), racing with xe_bo_unpin() freeing
bo->backup_obj.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261119002737.3899877-10-umesh.nerlige.ramappa@intel.com?part=7
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH v8 8/8] drm/xe/oa: Quiesce OA streams on driver unbind and PCI reset
2026-11-19 0:27 [PATCH v8 0/8] Cleanup OA stream on PCI unbind/remove Umesh Nerlige Ramappa
` (6 preceding siblings ...)
2026-11-19 0:27 ` [PATCH v8 7/8] drm/xe/oa: Free the OA buffer and the stream after the stream destroy Umesh Nerlige Ramappa
@ 2026-11-19 0:27 ` Umesh Nerlige Ramappa
2026-11-19 1:11 ` sashiko-bot
2026-11-19 6:05 ` ✓ CI.KUnit: success for Cleanup OA stream on PCI unbind/remove (rev8) Patchwork
2026-11-19 6:46 ` ✓ Xe.CI.BAT: " Patchwork
9 siblings, 1 reply; 16+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-19 0:27 UTC (permalink / raw)
To: intel-xe, shekhar.chauhan, harish.chegondi; +Cc: matthew.brost
An OA stream fd can outlive the device: after a PCI slot reset or after
unbind. The poll hrtimer and userspace calls on the fd could then access
MMIO and other device-bound objects that were released on remove,
causing a NULL pointer dereference, and xe_oa_release() would tear down
against freed objects.
Destroy a stream the same way whether its fd is closed or the device
goes away: xe_oa_destroy_locked() marks the stream dead, disables it,
restores the HW state and releases everything but the OA buffer and the
stream struct, whether or not the HW still responds. xe_oa_fini() calls
xe_oa_quiesce() to destroy the streams of a removed device, and
xe_oa_release() skips the destroy of such a dead stream. Only the
stream struct, with stream_lock and poll_wq valid, and the pinned OA
buffer stay allocated until the fd is closed or the process owning the
fd exits.
Once dead, OA interfaces return -ENODEV, poll reports EPOLLERR |
EPOLLHUP, and xe_oa_release() frees the stream struct and the OA
buffer, and drops the drm device reference.
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
v2: Include Sashiko's comments
v3: Fix circular lockdep issue due to scope of stream->mmap_mutex
v4: Rely on drm_dev_unplug() to zap OA buffer mmaps and on the dummy page
for refaults. Drop the OA specific fault handler and mmap_mutex. Split
out the stream destroy refactor and the runtime PM move into separate
patches. DMA-unmap the OA buffer on quiesce and run the OA ioctls in a
drm_dev_enter() section instead of the per-GT quiesced flag. Don't
restore the context state on quiesce, wait for pending OA batches on
quiesce, don't block unplug on a synchronous OA config wait and
quiesce a stream released during removal (Sashiko).
v5: Keep the OA buffer pinned until the stream fd is released instead of
DMA-unmapping it on quiesce, so the shrinker can't drop the last
reference after the device is gone (Sashiko).
v6: Run the stream fd ioctls in a drm_dev_enter() section and reject them
on a wedged device. Stop the synchronous OA config wait on a wedged
device too. Flush the TTM workqueue before dropping the drm device
reference on release of an unplugged device (Sashiko).
v7: Return -ENODEV rather than -ECANCELED from stream fd ioctls once the
device is unplugged, also when it is wedged. Fail the synchronous OA
config wait when it is cut short. DMA-unmap the OA buffer on quiesce,
as xe_bo_pinned_fini() can race with its release. Fix the
xe_oa_quiesce() comment (Sashiko).
v8: Destroy a stream the same way on close and on quiesce, whether or
not the device is wedged or still responds, all HW waits are
bounded. This also restores preemption and the context state on
quiesce. Drop the release time drm_dev_enter() section, gt_lock
already serializes release against the quiesce. Replace the stream
destroy split with a patch that only moves freeing the OA buffer and
the stream to the callers. Split out the ioctl and mmap
unplug/wedged fencing and the synchronous config wait into a
separate patch.
---
drivers/gpu/drm/xe/xe_oa.c | 110 +++++++++++++++++++++++++++++--
drivers/gpu/drm/xe/xe_oa_types.h | 3 +
2 files changed, 106 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
index 223419347eb7..0b51bc818ef4 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -261,13 +261,18 @@ static bool mert_wa_14026633728(struct xe_oa_stream *s)
static bool xe_oa_buffer_check_unlocked(struct xe_oa_stream *stream)
{
- u32 gtt_offset = xe_bo_ggtt_addr(stream->oa_buffer.bo);
- u32 tail, hw_tail, partial_report_size, available;
+ u32 gtt_offset, tail, hw_tail, partial_report_size, available;
int report_size = stream->oa_buffer.format->size;
unsigned long flags;
spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags);
+ if (stream->dead) {
+ spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
+ return false;
+ }
+
+ gtt_offset = xe_bo_ggtt_addr(stream->oa_buffer.bo);
hw_tail = xe_oa_hw_tail_read(stream);
hw_tail -= gtt_offset;
@@ -328,6 +333,9 @@ static enum hrtimer_restart xe_oa_poll_check_timer_cb(struct hrtimer *hrtimer)
struct xe_oa_stream *stream =
container_of(hrtimer, typeof(*stream), poll_check_timer);
+ if (READ_ONCE(stream->dead))
+ return HRTIMER_NORESTART;
+
if (xe_oa_buffer_check_unlocked(stream))
wake_up(&stream->poll_wq);
@@ -539,12 +547,19 @@ static void xe_oa_disable(struct xe_oa_stream *stream)
static int xe_oa_wait_unlocked(struct xe_oa_stream *stream)
{
+ int ret;
+
/* We might wait indefinitely if periodic sampling is not enabled */
if (!stream->periodic)
return -EINVAL;
- return wait_event_interruptible(stream->poll_wq,
- xe_oa_buffer_check_unlocked(stream));
+ ret = wait_event_interruptible(stream->poll_wq,
+ READ_ONCE(stream->dead) ||
+ xe_oa_buffer_check_unlocked(stream));
+ if (ret)
+ return ret;
+
+ return READ_ONCE(stream->dead) ? -ENODEV : 0;
}
#define OASTATUS_RELEVANT_BITS (OASTATUS_MMIO_TRG_Q_FULL | OASTATUS_COUNTER_OVERFLOW | \
@@ -573,6 +588,9 @@ static ssize_t xe_oa_read(struct file *file, char __user *buf,
size_t offset = 0;
int ret;
+ if (READ_ONCE(stream->dead))
+ return -ENODEV;
+
if (!stream->sample)
return -EINVAL;
@@ -583,13 +601,14 @@ static ssize_t xe_oa_read(struct file *file, char __user *buf,
return ret;
mutex_lock(&stream->stream_lock);
- ret = __xe_oa_read(stream, buf, count, &offset);
+ ret = stream->dead ? -ENODEV :
+ __xe_oa_read(stream, buf, count, &offset);
mutex_unlock(&stream->stream_lock);
} while (!offset && !ret);
} else {
xe_oa_buffer_check_unlocked(stream);
mutex_lock(&stream->stream_lock);
- ret = __xe_oa_read(stream, buf, count, &offset);
+ ret = stream->dead ? -ENODEV : __xe_oa_read(stream, buf, count, &offset);
mutex_unlock(&stream->stream_lock);
}
@@ -616,6 +635,9 @@ static __poll_t xe_oa_poll_locked(struct xe_oa_stream *stream,
poll_wait(file, &stream->poll_wq, wait);
+ if (stream->dead)
+ return EPOLLERR | EPOLLHUP;
+
/*
* We don't explicitly check whether there's something to read here since this
* path may be hot depending on what else userspace is polling, or on the timeout
@@ -937,6 +959,13 @@ static void xe_oa_stream_destroy(struct xe_oa_stream *stream)
xe_oa_disable_metric_set(stream);
xe_exec_queue_put(stream->k_exec_q);
+ /*
+ * The OA buffer is freed on release of the stream fd, an mmap may still hold a
+ * reference on it. Drop its DMA mapping now, while pinned: the fd may be released, and
+ * the BO unpinned, while xe_bo_pinned_fini() DMA-unmaps it without the BO lock.
+ */
+ xe_bo_dma_unmap_pinned(stream->oa_buffer.bo);
+
xe_force_wake_put(gt_to_fw(gt), stream->fw_ref);
xe_pm_runtime_put(stream->oa->xe);
@@ -1715,6 +1744,9 @@ static long xe_oa_ioctl_locked(struct xe_oa_stream *stream,
unsigned int cmd,
unsigned long arg)
{
+ if (stream->dead)
+ return -ENODEV;
+
switch (cmd) {
case DRM_XE_OBSERVATION_IOCTL_ENABLE:
return xe_oa_enable_locked(stream);
@@ -1754,19 +1786,35 @@ static long xe_oa_ioctl(struct file *file,
return ret;
}
+/*
+ * Disable the stream, restore the HW state and release everything but the OA buffer and the
+ * stream struct, the same whether the stream fd is closed or the device goes away, and
+ * whether or not the HW still responds: all HW waits are bounded. Afterwards the stream is
+ * dead and any further read, poll, mmap or ioctl on the stream fd fails with -ENODEV.
+ */
static void xe_oa_destroy_locked(struct xe_oa_stream *stream)
{
+ unsigned long flags;
+
xe_pm_runtime_get(gt_to_xe(stream->gt));
+ mutex_lock(&stream->stream_lock);
+
+ spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags);
+ WRITE_ONCE(stream->dead, true);
+ spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
if (stream->enabled)
xe_oa_disable_locked(stream);
+ wake_up_all(&stream->poll_wq);
+
xe_oa_stream_destroy(stream);
if (stream->exec_q)
xe_exec_queue_put(stream->exec_q);
drm_syncobj_put(stream->ufence_syncobj);
+ mutex_unlock(&stream->stream_lock);
xe_pm_runtime_put(gt_to_xe(stream->gt));
}
@@ -1775,14 +1823,24 @@ static int xe_oa_release(struct inode *inode, struct file *file)
struct xe_oa_stream *stream = file->private_data;
struct xe_gt *gt = stream->gt;
+ /* gt_lock serializes against xe_oa_fini(), which destroys the stream on device removal */
mutex_lock(>->oa.gt_lock);
- xe_oa_destroy_locked(stream);
+ if (!stream->dead)
+ xe_oa_destroy_locked(stream);
mutex_unlock(>->oa.gt_lock);
xe_oa_free_oa_buffer(stream);
mutex_destroy(&stream->stream_lock);
kfree(stream);
+ /*
+ * Freeing the OA buffer may defer the BO destroy to the TTM workqueue. Once the device
+ * is unplugged, this may be the last reference on the drm device, so let the destroy
+ * finish before drm_dev_put() releases the GGTT.
+ */
+ if (drm_dev_is_unplugged(>_to_xe(gt)->drm))
+ flush_workqueue(gt_to_xe(gt)->ttm.wq);
+
/* Release the reference the OA stream kept on the driver */
drm_dev_put(>_to_xe(gt)->drm);
@@ -1810,6 +1868,11 @@ static int xe_oa_mmap(struct file *file, struct vm_area_struct *vma)
if (!drm_dev_enter(&xe->drm, &idx))
return -ENODEV;
+ if (READ_ONCE(stream->dead)) {
+ ret = -ENODEV;
+ goto exit;
+ }
+
/*
* Userspace always maps the OA buffer at offset 0, the mapping is moved to the OA
* buffer's own range in the drm device's address_space below
@@ -2674,6 +2737,37 @@ static void xe_oa_unregister(void *arg)
oa->metrics_kobj = NULL;
}
+static void xe_oa_quiesce_gt(struct xe_gt *gt)
+{
+ int i;
+
+ mutex_lock(>->oa.gt_lock);
+ for (i = 0; i < gt->oa.num_oa_units; i++)
+ if (gt->oa.oa_unit[i].exclusive_stream)
+ xe_oa_destroy_locked(gt->oa.oa_unit[i].exclusive_stream);
+ mutex_unlock(>->oa.gt_lock);
+}
+
+/**
+ * xe_oa_quiesce - Disable all active OA streams on driver unbind or PCI slot reset
+ * @xe: @xe_device
+ *
+ * Destroys every active stream like closing its fd would, see xe_oa_destroy_locked().
+ * Only the stream struct and the pinned OA buffer stay allocated until userspace closes
+ * the fd, at which point xe_oa_release() frees them.
+ */
+static void xe_oa_quiesce(struct xe_device *xe)
+{
+ struct xe_gt *gt;
+ u8 id;
+
+ if (!xe->oa.xe)
+ return;
+
+ for_each_gt(gt, xe, id)
+ xe_oa_quiesce_gt(gt);
+}
+
/**
* xe_oa_register - Xe OA registration
* @xe: @xe_device
@@ -2985,6 +3079,8 @@ static void xe_oa_fini(void *arg)
if (!oa->xe)
return;
+ xe_oa_quiesce(xe);
+
idr_for_each(&oa->metrics_idr, destroy_config, oa);
idr_destroy(&oa->metrics_idr);
diff --git a/drivers/gpu/drm/xe/xe_oa_types.h b/drivers/gpu/drm/xe/xe_oa_types.h
index e876e9be92ba..e60a90bae1c6 100644
--- a/drivers/gpu/drm/xe/xe_oa_types.h
+++ b/drivers/gpu/drm/xe/xe_oa_types.h
@@ -214,6 +214,9 @@ struct xe_oa_stream {
/** @enabled: Whether the stream is currently enabled */
bool enabled;
+ /** @dead: Gate HW access when device is wedged or going away */
+ bool dead;
+
/** @oa_config: OA configuration used by the stream */
struct xe_oa_config *oa_config;
--
2.55.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [PATCH v8 8/8] drm/xe/oa: Quiesce OA streams on driver unbind and PCI reset
2026-11-19 0:27 ` [PATCH v8 8/8] drm/xe/oa: Quiesce OA streams on driver unbind and PCI reset Umesh Nerlige Ramappa
@ 2026-11-19 1:11 ` sashiko-bot
0 siblings, 0 replies; 16+ messages in thread
From: sashiko-bot @ 2026-11-19 1:11 UTC (permalink / raw)
To: Umesh Nerlige Ramappa, intel-xe
Thank you for your contribution! Sashiko AI review found 5 potential
issues to consider:
- [Medium] drm/xe/oa: drm_dev_is_unplugged() race in xe_oa_release()
skips ttm.wq flush
- [Medium] drm/xe/oa: OA buffer BO references can outlive
flush_workqueue() on unplug
- [Medium] drm/xe/oa: missing or blocking drain in xe_oa_stream_init()
error path
- [Medium] drm/xe/oa: NULL sg_table deref on resume after
xe_bo_dma_unmap_pinned()
- [Medium] drm/xe/oa: unconditional drain and batch submit on wedged
device in destroy
--
commit 2b379416db1422398b8cce664304d4acea228c64
Author: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
drm/xe/oa: Quiesce OA streams on driver unbind and PCI reset
This commit quiesces active OA streams on driver unbind or PCI reset by
marking them dead and tearing down their hardware and device resources
while keeping the stream structure and pinned OA buffer allocated until
the stream file descriptor is closed.
> diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
> index 223419347eb7b..0b51bc818ef47 100644
> --- a/drivers/gpu/drm/xe/xe_oa.c
> +++ b/drivers/gpu/drm/xe/xe_oa.c
[ ... ]
> @@ -937,6 +959,13 @@ static void xe_oa_stream_destroy(struct xe_oa_stream *stream)
> xe_oa_disable_metric_set(stream);
> xe_exec_queue_put(stream->k_exec_q);
>
> + /*
> + * The OA buffer is freed on release of the stream fd, an mmap may still hold a
> + * reference on it. Drop its DMA mapping now, while pinned: the fd may be released, and
> + * the BO unpinned, while xe_bo_pinned_fini() DMA-unmaps it without the BO lock.
> + */
> + xe_bo_dma_unmap_pinned(stream->oa_buffer.bo);
> +
> xe_force_wake_put(gt_to_fw(gt), stream->fw_ref);
> xe_pm_runtime_put(stream->oa->xe);
[Severity: Medium]
Can calling xe_bo_dma_unmap_pinned() here while stream->oa_buffer.bo stays
pinned on xe->pinned.early.kernel_bo_present cause a NULL pointer
dereference if the device suspends and resumes before
xe_oa_free_oa_buffer() unpins the BO?
CPU0 CPU1
xe_oa_release()
xe_oa_destroy_locked()
xe_oa_stream_destroy()
xe_bo_dma_unmap_pinned(bo)
xe_tt->sg = NULL
xe_pm_runtime_put()
xe_pm_runtime_put()
xe_pm_suspend()
xe_bo_evict_all()
xe_pm_resume()
xe_bo_restore_early()
xe_bo_restore_and_map_ggtt()
xe_ggtt_map_bo()
xe_res_first_sg(NULL, ...)
<-- NULL pointer dereference
xe_oa_free_oa_buffer()
xe_bo_unpin_map_no_vm(bo)
Non-MERT OA buffers are created with XE_BO_FLAG_SYSTEM | XE_BO_FLAG_GGTT
and remain linked on xe->pinned.early.kernel_bo_present until
xe_bo_unpin() removes bo->pinned_link. Once xe_oa_destroy_locked() drops
the last runtime PM reference, a system or D3cold runtime suspend/resume
cycle will evict and restore the pinned BO via xe_ggtt_map_bo(), passing
xe_bo_sg(bo) == NULL to xe_res_first_sg().
[ ... ]
> @@ -1754,19 +1786,35 @@ static long xe_oa_ioctl(struct file *file,
> return ret;
> }
>
> +/*
> + * Disable the stream, restore the HW state and release everything but the OA buffer and the
> + * stream struct, the same whether the stream fd is closed or the device goes away, and
> + * whether or not the HW still responds: all HW waits are bounded. Afterwards the stream is
> + * dead and any further read, poll, mmap or ioctl on the stream fd fails with -ENODEV.
> + */
> static void xe_oa_destroy_locked(struct xe_oa_stream *stream)
> {
> + unsigned long flags;
> +
> xe_pm_runtime_get(gt_to_xe(stream->gt));
> + mutex_lock(&stream->stream_lock);
> +
> + spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags);
> + WRITE_ONCE(stream->dead, true);
> + spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
>
> if (stream->enabled)
> xe_oa_disable_locked(stream);
>
> + wake_up_all(&stream->poll_wq);
> +
> xe_oa_stream_destroy(stream);
[Severity: Medium]
When the device is wedged, does xe_oa_stream_destroy() stall for multiple
seconds and log a timeout error?
xe_oa_stream_destroy() unconditionally calls xe_oa_stream_drain() and
xe_oa_disable_metric_set() without checking xe_wedged(). If
stream->last_fence is unsignaled when the device wedges (for example when
a config batch is waiting on an input fence or after xe_oa_emit_oa_config()
breaks out of its wait loop on wedge), xe_oa_stream_drain() sleeps
uninterruptibly for job_timeout_ms + HZ and prints "Timed out waiting for
OA batch". Then, when stream->exec_q is set, xe_oa_disable_metric_set()
calls xe_oa_configure_oa_context(stream, false) to submit a new batch to
the already-wedged queue (which guc_exec_queue_run_job() does not submit
to hardware) and waits again in xe_oa_stream_drain() until TDR or timeout.
[Severity: Medium]
Similarly, in xe_oa_stream_init(), what happens when
xe_oa_enable_metric_set() -> xe_oa_emit_oa_config() cuts its synchronous
wait short on device unplug or wedge (introduced in commit "drm/xe/oa:
Fence OA ioctls and mmap against device unplug and wedging")?
drivers/gpu/drm/xe/xe_oa.c:xe_oa_stream_init() {
...
err_put_k_exec_q:
xe_oa_disable_metric_set(stream);
xe_exec_queue_put(stream->k_exec_q);
err_free_oa_buf:
xe_oa_free_oa_buffer(stream);
err_fw_put:
xe_force_wake_put(gt_to_fw(gt), stream->fw_ref);
xe_pm_runtime_put(stream->oa->xe);
xe_oa_free_configs(stream);
...
}
At that point the config batch has already been submitted to
stream->k_exec_q and recorded in stream->last_fence. Unlike
xe_oa_stream_destroy(), err_put_k_exec_q does not call
xe_oa_stream_drain() before xe_oa_disable_metric_set(). When
stream->exec_q is NULL, the in-flight config batch on stream->k_exec_q is
never drained before OA registers, forcewake, and runtime PM are released.
When stream->exec_q is non-NULL, xe_oa_disable_metric_set() queues a
context-restore batch behind the unsignaled config batch and blocks in
xe_oa_stream_drain() for job_timeout_ms + HZ while still inside the
drm_dev_enter() section of xe_observation_ioctl(), blocking
drm_dev_unplug().
>
> if (stream->exec_q)
> xe_exec_queue_put(stream->exec_q);
>
> drm_syncobj_put(stream->ufence_syncobj);
> + mutex_unlock(&stream->stream_lock);
> xe_pm_runtime_put(gt_to_xe(stream->gt));
> }
>
> @@ -1775,14 +1823,24 @@ static int xe_oa_release(struct inode *inode, struct file *file)
> struct xe_oa_stream *stream = file->private_data;
> struct xe_gt *gt = stream->gt;
>
> + /* gt_lock serializes against xe_oa_fini(), which destroys the stream on device removal */
> mutex_lock(>->oa.gt_lock);
> - xe_oa_destroy_locked(stream);
> + if (!stream->dead)
> + xe_oa_destroy_locked(stream);
> mutex_unlock(>->oa.gt_lock);
>
> xe_oa_free_oa_buffer(stream);
> mutex_destroy(&stream->stream_lock);
> kfree(stream);
>
> + /*
> + * Freeing the OA buffer may defer the BO destroy to the TTM workqueue. Once the device
> + * is unplugged, this may be the last reference on the drm device, so let the destroy
> + * finish before drm_dev_put() releases the GGTT.
> + */
> + if (drm_dev_is_unplugged(>_to_xe(gt)->drm))
> + flush_workqueue(gt_to_xe(gt)->ttm.wq);
> +
> /* Release the reference the OA stream kept on the driver */
> drm_dev_put(>_to_xe(gt)->drm);
[Severity: Medium]
Can xe_oa_release() race with drm_dev_unplug() and skip flushing
xe->ttm.wq before dropping the final drm_device reference?
CPU0 CPU1
xe_oa_release()
xe_oa_free_oa_buffer(stream)
...
queue_work(xe->ttm.wq,
&bo->delayed_delete)
drm_dev_is_unplugged(&xe->drm)
--> false
xe_device_remove()
drm_dev_unplug(&xe->drm)
...
drm_dev_put(&xe->drm)
drm_dev_put(&xe->drm)
drm_managed_release()
ggtt_fini_early()
drm_mm_takedown(&ggtt->mm)
ttm_bo_delayed_delete()
xe_ttm_bo_destroy()
xe_ggtt_remove_bo(ggtt, bo)
<-- use-after-free on ggtt
drm_dev_is_unplugged() drops its SRCU read lock immediately, and nothing
during device removal flushes xe->ttm.wq for an already-deleted BO. Because
ggtt_fini_early() is registered with drmm after xe_device_destroy()
(which calls ttm_device_fini() to drain xe->ttm.wq), the final
drm_dev_put() tears down and frees tile->mem.ggtt while
bo->delayed_delete is still pending on xe->ttm.wq.
[Severity: Medium]
Even after the device is already unplugged, can a temporary reference on
stream->oa_buffer.bo outlive xe_oa_free_oa_buffer() and cause
flush_workqueue(xe->ttm.wq) to run before bo->delayed_delete is queued?
CPU0 CPU1
xe_device_remove()
...
xe_bo_pinned_fini()
xe_bo_apply_to_pinned()
xe_bo_get(bo)
spin_unlock(&xe->pinned.lock)
xe_oa_release()
xe_oa_free_oa_buffer()
xe_bo_unpin_map_no_vm(bo)
xe_bo_put(bo)
flush_workqueue(xe->ttm.wq)
xe_bo_dma_unmap_pinned(bo)
xe_bo_put(bo)
queue_work(xe->ttm.wq,
&bo->delayed_delete)
drm_dev_put(&xe->drm)
drm_dev_put(&xe->drm)
drm_managed_release()
ggtt_fini_early()
<-- ggtt freed before
bo->delayed_delete runs
Because xe_oa_stream_destroy() leaves stream->oa_buffer.bo on
xe->pinned.early.kernel_bo_present, xe_bo_pinned_fini() still visits it
and holds a reference outside xe->pinned.lock. Similarly, in
xe_bo_unpin_map_no_vm(), xe_bo_unpin() puts the BO back on the TTM LRU
and unlocks dma-resv before xe_bo_put(bo), allowing xe_shrinker_scan() to
grab a temporary BO reference. In either case, xe_oa_release() flushes
xe->ttm.wq before the last BO reference is dropped.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261119002737.3899877-10-umesh.nerlige.ramappa@intel.com?part=8
^ permalink raw reply [flat|nested] 16+ messages in thread
* ✓ CI.KUnit: success for Cleanup OA stream on PCI unbind/remove (rev8)
2026-11-19 0:27 [PATCH v8 0/8] Cleanup OA stream on PCI unbind/remove Umesh Nerlige Ramappa
` (7 preceding siblings ...)
2026-11-19 0:27 ` [PATCH v8 8/8] drm/xe/oa: Quiesce OA streams on driver unbind and PCI reset Umesh Nerlige Ramappa
@ 2026-11-19 6:05 ` Patchwork
2026-11-19 6:46 ` ✓ Xe.CI.BAT: " Patchwork
9 siblings, 0 replies; 16+ messages in thread
From: Patchwork @ 2026-11-19 6:05 UTC (permalink / raw)
To: Umesh Nerlige Ramappa; +Cc: intel-xe
== Series Details ==
Series: Cleanup OA stream on PCI unbind/remove (rev8)
URL : https://patchwork.freedesktop.org/series/177300/
State : success
== Summary ==
+ trap cleanup EXIT
+ kunitconfigs=('/kernel/drivers/gpu/tests/.kunitconfig' '/kernel/drivers/gpu/drm/xe/.kunitconfig' '/kernel/drivers/gpu/drm/tests/.kunitconfig' '/kernel/drivers/gpu/drm/ttm/tests/.kunitconfig' '/kernel/drivers/dma-buf/.kunitconfig')
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/tests/.kunitconfig
[06:02:59] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[06:03:04] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[06:03:25] Starting KUnit Kernel (1/1)...
[06:03:25] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[06:03:25] ================= gpu_buddy (15 subtests) ==================
[06:03:25] [PASSED] gpu_test_buddy_alloc_limit
[06:03:25] [PASSED] gpu_test_buddy_alloc_optimistic
[06:03:25] [PASSED] gpu_test_buddy_alloc_pessimistic
[06:03:25] [PASSED] gpu_test_buddy_alloc_pathological
[06:03:25] [PASSED] gpu_test_buddy_alloc_contiguous
[06:03:25] [PASSED] gpu_test_buddy_alloc_clear
[06:03:25] [PASSED] gpu_test_buddy_alloc_range
[06:03:25] [PASSED] gpu_test_buddy_alloc_range_bias
[06:03:25] [PASSED] gpu_test_buddy_alloc_range_clear_guard
[06:03:26] [PASSED] gpu_test_buddy_fragmentation_performance
[06:03:27] [PASSED] gpu_test_buddy_dirty_tracker_performance
[06:03:27] [PASSED] gpu_test_buddy_alloc_exceeds_max_order
[06:03:27] [PASSED] gpu_test_buddy_offset_aligned_allocation
[06:03:27] [PASSED] gpu_test_buddy_subtree_offset_alignment_stress
[06:03:27] [PASSED] gpu_test_buddy_addr_to_block
[06:03:27] ==================== [PASSED] gpu_buddy ====================
[06:03:27] ============================================================
[06:03:27] Testing complete. Ran 15 tests: passed: 15
[06:03:27] Elapsed time: 28.083s total, 5.110s configuring, 20.955s building, 1.976s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/xe/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
[06:03:27] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[06:03:30] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[06:04:08] Starting KUnit Kernel (1/1)...
[06:04:08] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[06:04:09] ================= xe_ggtt_iov (9 subtests) =================
[06:04:09] [PASSED] init_shared_pf
[06:04:09] [PASSED] init_partial_overlap
[06:04:09] [PASSED] alloc_usable_pool_low
[06:04:09] [PASSED] alloc_shareable_pool_high
[06:04:09] [PASSED] alloc_partial_overlap
[06:04:09] [PASSED] alloc_partial_overlap_usable_full
[06:04:09] [PASSED] alloc_partial_overlap_shareable_full
[06:04:09] [PASSED] alloc_shareable_pool_unavailable
[06:04:09] [PASSED] alloc_shareable_pool_oversized
[06:04:09] =================== [PASSED] xe_ggtt_iov ===================
[06:04:09] =================== xe_ggtt (3 subtests) ===================
[06:04:09] [PASSED] init_native
[06:04:09] [PASSED] alloc_usable_pool_native
[06:04:09] [PASSED] alloc_usable_pool_oversized
[06:04:09] ===================== [PASSED] xe_ggtt =====================
[06:04:09] ================== guc_buf (11 subtests) ===================
[06:04:09] [PASSED] test_smallest
[06:04:09] [PASSED] test_largest
[06:04:09] [PASSED] test_granular
[06:04:09] [PASSED] test_unique
[06:04:09] [PASSED] test_overlap
[06:04:09] [PASSED] test_reusable
[06:04:09] [PASSED] test_too_big
[06:04:09] [PASSED] test_flush
[06:04:09] [PASSED] test_lookup
[06:04:09] [PASSED] test_data
[06:04:09] [PASSED] test_class
[06:04:09] ===================== [PASSED] guc_buf =====================
[06:04:09] =================== guc_dbm (7 subtests) ===================
[06:04:09] [PASSED] test_empty
[06:04:09] [PASSED] test_default
[06:04:09] ======================== test_size ========================
[06:04:09] [PASSED] 4
[06:04:09] [PASSED] 8
[06:04:09] [PASSED] 32
[06:04:09] [PASSED] 256
[06:04:09] ==================== [PASSED] test_size ====================
[06:04:09] ======================= test_reuse ========================
[06:04:09] [PASSED] 4
[06:04:09] [PASSED] 8
[06:04:09] [PASSED] 32
[06:04:09] [PASSED] 256
[06:04:09] =================== [PASSED] test_reuse ====================
[06:04:09] =================== test_range_overlap ====================
[06:04:09] [PASSED] 4
[06:04:09] [PASSED] 8
[06:04:09] [PASSED] 32
[06:04:09] [PASSED] 256
[06:04:09] =============== [PASSED] test_range_overlap ================
[06:04:09] =================== test_range_compact ====================
[06:04:09] [PASSED] 4
[06:04:09] [PASSED] 8
[06:04:09] [PASSED] 32
[06:04:09] [PASSED] 256
[06:04:09] =============== [PASSED] test_range_compact ================
[06:04:09] ==================== test_range_spare =====================
[06:04:09] [PASSED] 4
[06:04:09] [PASSED] 8
[06:04:09] [PASSED] 32
[06:04:09] [PASSED] 256
[06:04:09] ================ [PASSED] test_range_spare =================
[06:04:09] ===================== [PASSED] guc_dbm =====================
[06:04:09] ================== guc_idm (22 subtests) ===================
[06:04:09] [PASSED] bad_init
[06:04:09] [PASSED] no_init
[06:04:09] [PASSED] init_fini
[06:04:09] [PASSED] check_init_small
[06:04:09] [PASSED] check_init_shared
[06:04:09] [PASSED] check_used
[06:04:09] [PASSED] check_quota
[06:04:09] [PASSED] check_all
[06:04:09] [PASSED] check_limits
[06:04:09] [PASSED] check_overlap
[06:04:09] [PASSED] check_overlap_alloc
[06:04:09] [PASSED] check_overlap_release
[06:04:09] [PASSED] check_overlap_partial_init
[06:04:09] [PASSED] check_overlap_partial_shared_range_blocking
[06:04:09] [PASSED] check_used_usable
[06:04:09] [PASSED] check_used_shareable
[06:04:09] [PASSED] check_used_mixed
[06:04:09] [PASSED] check_release_usable_range
[06:04:09] [PASSED] check_release_shareable_range
[06:04:09] [PASSED] check_split_boundaries
[06:04:09] [PASSED] check_shareable_spare
[06:04:09] [PASSED] check_shareable_spare_fragmented_tail
[06:04:09] ===================== [PASSED] guc_idm =====================
[06:04:09] ============== guc_klv_helpers (13 subtests) ===============
[06:04:09] [PASSED] test_count
[06:04:09] [PASSED] test_encode_u32
[06:04:09] [PASSED] test_encode_u64
[06:04:09] [PASSED] test_encode_string
[06:04:09] [PASSED] test_encode_object_raw
[06:04:09] [PASSED] test_encode_object_klv
[06:04:09] [PASSED] test_encode_object_nested
[06:04:09] [PASSED] test_encode_object_basic
[06:04:09] ===================== test_decode_u16 =====================
[06:04:09] [PASSED] empty
[06:04:09] [PASSED] valid
[06:04:09] [PASSED] max
[06:04:09] [PASSED] big
[06:04:09] [PASSED] long
[06:04:09] ================= [PASSED] test_decode_u16 =================
[06:04:09] ===================== test_decode_u32 =====================
[06:04:09] [PASSED] empty
[06:04:09] [PASSED] valid
[06:04:09] [PASSED] max
[06:04:09] [PASSED] long
[06:04:09] ================= [PASSED] test_decode_u32 =================
[06:04:09] ===================== test_decode_u64 =====================
[06:04:09] [PASSED] empty
[06:04:09] [PASSED] short
[06:04:09] [PASSED] valid
[06:04:09] [PASSED] max
[06:04:09] [PASSED] long
[06:04:09] ================= [PASSED] test_decode_u64 =================
[06:04:09] ===================== test_decode_str =====================
[06:04:09] [PASSED] empty
[06:04:09] [PASSED] one
[06:04:09] [PASSED] one_trash
[06:04:09] [PASSED] two
[06:04:09] [PASSED] two_trash
[06:04:09] [PASSED] three
[06:04:09] [PASSED] dword
[06:04:09] [PASSED] four
[06:04:09] [PASSED] five
[06:04:09] [PASSED] six
[06:04:09] [PASSED] seven
[06:04:09] [PASSED] qword
[06:04:09] ================= [PASSED] test_decode_str =================
[06:04:09] [PASSED] test_print
[06:04:09] ================= [PASSED] guc_klv_helpers =================
[06:04:09] =================== xe_log (4 subtests) ====================
[06:04:09] [PASSED] demo_cper
[06:04:09] [PASSED] demo_dmesg
[06:04:09] ======================= test_dmesg ========================
[06:04:09] [PASSED] test_fatal
[06:04:09] [PASSED] test_fatal_tile
[06:04:09] [PASSED] test_fatal_gt
[06:04:09] [PASSED] test_fatal_comp
[06:04:09] [PASSED] test_fatal_comp_tile
[06:04:09] [PASSED] test_fatal_comp_gt
[06:04:09] [PASSED] test_fatal_all
[06:04:09] [PASSED] test_recoverable
[06:04:09] [PASSED] test_recoverable_tile
[06:04:09] [PASSED] test_recoverable_gt
[06:04:09] [PASSED] test_recoverable_comp
[06:04:09] [PASSED] test_recoverable_comp_tile
[06:04:09] [PASSED] test_recoverable_comp_gt
[06:04:09] [PASSED] test_recoverable_all
[06:04:09] [PASSED] test_info
[06:04:09] [PASSED] test_info_tile
[06:04:09] [PASSED] test_info_gt
[06:04:09] [PASSED] test_info_err
[06:04:09] [PASSED] test_info_comp
[06:04:09] [PASSED] test_info_comp_tile
[06:04:09] [PASSED] test_info_comp_gt
[06:04:09] [PASSED] test_info_all
[06:04:09] [PASSED] test_hw_fatal
[06:04:09] [PASSED] test_hw_recoverable
[06:04:09] [PASSED] test_hw_corrected
[06:04:09] [PASSED] test_hw_informational
[06:04:09] =================== [PASSED] test_dmesg ====================
[06:04:09] ====================== test_invalid =======================
[06:04:09] [SKIPPED] no-component no-location no-warn (requires CONFIG_DRM_XE_DEBUG)
[06:04:09] [SKIPPED] reserved location (requires CONFIG_DRM_XE_DEBUG)
[06:04:09] [SKIPPED] unknown location (requires CONFIG_DRM_XE_DEBUG)
[06:04:09] [SKIPPED] nonzero-device-id location (requires CONFIG_DRM_XE_DEBUG)
[06:04:09] [SKIPPED] invalid-tile-id location (requires CONFIG_DRM_XE_DEBUG)
[06:04:09] [SKIPPED] invalid-gt-id location (requires CONFIG_DRM_XE_DEBUG)
[06:04:09] [SKIPPED] unknown component class (requires CONFIG_DRM_XE_DEBUG)
[06:04:09] [SKIPPED] unknown system component (requires CONFIG_DRM_XE_DEBUG)
[06:04:09] [SKIPPED] unknown hardware component (requires CONFIG_DRM_XE_DEBUG)
[06:04:09] [SKIPPED] unknown component and location (requires CONFIG_DRM_XE_DEBUG)
[06:04:09] ================== [SKIPPED] test_invalid ==================
[06:04:09] ===================== [PASSED] xe_log ======================
[06:04:09] ================== no_relay (3 subtests) ===================
[06:04:09] [PASSED] xe_drops_guc2pf_if_not_ready
[06:04:09] [PASSED] xe_drops_guc2vf_if_not_ready
[06:04:09] [PASSED] xe_rejects_send_if_not_ready
[06:04:09] ==================== [PASSED] no_relay =====================
[06:04:09] ================== pf_relay (14 subtests) ==================
[06:04:09] [PASSED] pf_rejects_guc2pf_too_short
[06:04:09] [PASSED] pf_rejects_guc2pf_too_long
[06:04:09] [PASSED] pf_rejects_guc2pf_no_payload
[06:04:09] [PASSED] pf_fails_no_payload
[06:04:09] [PASSED] pf_fails_bad_origin
[06:04:09] [PASSED] pf_fails_bad_type
[06:04:09] [PASSED] pf_txn_reports_error
[06:04:09] [PASSED] pf_txn_sends_pf2guc
[06:04:09] [PASSED] pf_sends_pf2guc
[06:04:09] [SKIPPED] pf_loopback_nop (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[06:04:09] [SKIPPED] pf_loopback_echo (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[06:04:09] [SKIPPED] pf_loopback_fail (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[06:04:09] [SKIPPED] pf_loopback_busy (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[06:04:09] [SKIPPED] pf_loopback_retry (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[06:04:09] ==================== [PASSED] pf_relay =====================
[06:04:09] ================== vf_relay (3 subtests) ===================
[06:04:09] [PASSED] vf_rejects_guc2vf_too_short
[06:04:09] [PASSED] vf_rejects_guc2vf_too_long
[06:04:09] [PASSED] vf_rejects_guc2vf_no_payload
[06:04:09] ==================== [PASSED] vf_relay =====================
[06:04:09] ================ pf_gt_config (9 subtests) =================
[06:04:09] [PASSED] fair_contexts_1vf
[06:04:09] [PASSED] fair_doorbells_1vf
[06:04:09] [PASSED] fair_ggtt_1vf
[06:04:09] ====================== fair_vram_1vf ======================
[06:04:09] [PASSED] 3.50 GiB
[06:04:09] [PASSED] 11.5 GiB
[06:04:09] [PASSED] 15.5 GiB
[06:04:09] [PASSED] 31.5 GiB
[06:04:09] [PASSED] 63.5 GiB
[06:04:09] [PASSED] 1.91 GiB
[06:04:09] ================== [PASSED] fair_vram_1vf ==================
[06:04:09] ================ fair_vram_1vf_admin_only =================
[06:04:09] [PASSED] 3.50 GiB
[06:04:09] [PASSED] 11.5 GiB
[06:04:09] [PASSED] 15.5 GiB
[06:04:09] [PASSED] 31.5 GiB
[06:04:09] [PASSED] 63.5 GiB
[06:04:09] [PASSED] 1.91 GiB
[06:04:09] ============ [PASSED] fair_vram_1vf_admin_only =============
[06:04:09] ====================== fair_contexts ======================
[06:04:09] [PASSED] 1 VF
[06:04:09] [PASSED] 2 VFs
[06:04:09] [PASSED] 3 VFs
[06:04:09] [PASSED] 4 VFs
[06:04:09] [PASSED] 5 VFs
[06:04:09] [PASSED] 6 VFs
[06:04:09] [PASSED] 7 VFs
[06:04:09] [PASSED] 8 VFs
[06:04:09] [PASSED] 9 VFs
[06:04:09] [PASSED] 10 VFs
[06:04:09] [PASSED] 11 VFs
[06:04:09] [PASSED] 12 VFs
[06:04:09] [PASSED] 13 VFs
[06:04:09] [PASSED] 14 VFs
[06:04:09] [PASSED] 15 VFs
[06:04:09] [PASSED] 16 VFs
[06:04:09] [PASSED] 17 VFs
[06:04:09] [PASSED] 18 VFs
[06:04:09] [PASSED] 19 VFs
[06:04:09] [PASSED] 20 VFs
[06:04:09] [PASSED] 21 VFs
[06:04:09] [PASSED] 22 VFs
[06:04:09] [PASSED] 23 VFs
[06:04:09] [PASSED] 24 VFs
[06:04:09] [PASSED] 25 VFs
[06:04:09] [PASSED] 26 VFs
[06:04:09] [PASSED] 27 VFs
[06:04:09] [PASSED] 28 VFs
[06:04:09] [PASSED] 29 VFs
[06:04:09] [PASSED] 30 VFs
[06:04:09] [PASSED] 31 VFs
[06:04:09] [PASSED] 32 VFs
[06:04:09] [PASSED] 33 VFs
[06:04:09] [PASSED] 34 VFs
[06:04:09] [PASSED] 35 VFs
[06:04:09] [PASSED] 36 VFs
[06:04:09] [PASSED] 37 VFs
[06:04:09] [PASSED] 38 VFs
[06:04:09] [PASSED] 39 VFs
[06:04:09] [PASSED] 40 VFs
[06:04:09] [PASSED] 41 VFs
[06:04:09] [PASSED] 42 VFs
[06:04:09] [PASSED] 43 VFs
[06:04:09] [PASSED] 44 VFs
[06:04:09] [PASSED] 45 VFs
[06:04:09] [PASSED] 46 VFs
[06:04:09] [PASSED] 47 VFs
[06:04:09] [PASSED] 48 VFs
[06:04:09] [PASSED] 49 VFs
[06:04:09] [PASSED] 50 VFs
[06:04:09] [PASSED] 51 VFs
[06:04:09] [PASSED] 52 VFs
[06:04:09] [PASSED] 53 VFs
[06:04:09] [PASSED] 54 VFs
[06:04:09] [PASSED] 55 VFs
[06:04:09] [PASSED] 56 VFs
[06:04:09] [PASSED] 57 VFs
[06:04:09] [PASSED] 58 VFs
[06:04:09] [PASSED] 59 VFs
[06:04:09] [PASSED] 60 VFs
[06:04:09] [PASSED] 61 VFs
[06:04:09] [PASSED] 62 VFs
[06:04:09] [PASSED] 63 VFs
[06:04:09] ================== [PASSED] fair_contexts ==================
[06:04:09] ===================== fair_doorbells ======================
[06:04:09] [PASSED] 1 VF
[06:04:09] [PASSED] 2 VFs
[06:04:09] [PASSED] 3 VFs
[06:04:09] [PASSED] 4 VFs
[06:04:09] [PASSED] 5 VFs
[06:04:09] [PASSED] 6 VFs
[06:04:09] [PASSED] 7 VFs
[06:04:09] [PASSED] 8 VFs
[06:04:09] [PASSED] 9 VFs
[06:04:09] [PASSED] 10 VFs
[06:04:09] [PASSED] 11 VFs
[06:04:09] [PASSED] 12 VFs
[06:04:09] [PASSED] 13 VFs
[06:04:09] [PASSED] 14 VFs
[06:04:09] [PASSED] 15 VFs
[06:04:09] [PASSED] 16 VFs
[06:04:09] [PASSED] 17 VFs
[06:04:09] [PASSED] 18 VFs
[06:04:09] [PASSED] 19 VFs
[06:04:09] [PASSED] 20 VFs
[06:04:09] [PASSED] 21 VFs
[06:04:09] [PASSED] 22 VFs
[06:04:09] [PASSED] 23 VFs
[06:04:09] [PASSED] 24 VFs
[06:04:09] [PASSED] 25 VFs
[06:04:09] [PASSED] 26 VFs
[06:04:09] [PASSED] 27 VFs
[06:04:09] [PASSED] 28 VFs
[06:04:09] [PASSED] 29 VFs
[06:04:09] [PASSED] 30 VFs
[06:04:09] [PASSED] 31 VFs
[06:04:09] [PASSED] 32 VFs
[06:04:09] [PASSED] 33 VFs
[06:04:09] [PASSED] 34 VFs
[06:04:09] [PASSED] 35 VFs
[06:04:09] [PASSED] 36 VFs
[06:04:09] [PASSED] 37 VFs
[06:04:09] [PASSED] 38 VFs
[06:04:09] [PASSED] 39 VFs
[06:04:09] [PASSED] 40 VFs
[06:04:09] [PASSED] 41 VFs
[06:04:09] [PASSED] 42 VFs
[06:04:09] [PASSED] 43 VFs
[06:04:09] [PASSED] 44 VFs
[06:04:09] [PASSED] 45 VFs
[06:04:09] [PASSED] 46 VFs
[06:04:09] [PASSED] 47 VFs
[06:04:09] [PASSED] 48 VFs
[06:04:09] [PASSED] 49 VFs
[06:04:09] [PASSED] 50 VFs
[06:04:09] [PASSED] 51 VFs
[06:04:09] [PASSED] 52 VFs
[06:04:09] [PASSED] 53 VFs
[06:04:09] [PASSED] 54 VFs
[06:04:09] [PASSED] 55 VFs
[06:04:09] [PASSED] 56 VFs
[06:04:09] [PASSED] 57 VFs
[06:04:09] [PASSED] 58 VFs
[06:04:09] [PASSED] 59 VFs
[06:04:09] [PASSED] 60 VFs
[06:04:09] [PASSED] 61 VFs
[06:04:09] [PASSED] 62 VFs
[06:04:09] [PASSED] 63 VFs
[06:04:09] ================= [PASSED] fair_doorbells ==================
[06:04:09] ======================== fair_ggtt ========================
[06:04:09] [PASSED] 1 VF
[06:04:09] [PASSED] 2 VFs
[06:04:09] [PASSED] 3 VFs
[06:04:09] [PASSED] 4 VFs
[06:04:09] [PASSED] 5 VFs
[06:04:09] [PASSED] 6 VFs
[06:04:09] [PASSED] 7 VFs
[06:04:09] [PASSED] 8 VFs
[06:04:09] [PASSED] 9 VFs
[06:04:09] [PASSED] 10 VFs
[06:04:09] [PASSED] 11 VFs
[06:04:09] [PASSED] 12 VFs
[06:04:09] [PASSED] 13 VFs
[06:04:09] [PASSED] 14 VFs
[06:04:09] [PASSED] 15 VFs
[06:04:09] [PASSED] 16 VFs
[06:04:09] [PASSED] 17 VFs
[06:04:09] [PASSED] 18 VFs
[06:04:09] [PASSED] 19 VFs
[06:04:09] [PASSED] 20 VFs
[06:04:09] [PASSED] 21 VFs
[06:04:09] [PASSED] 22 VFs
[06:04:09] [PASSED] 23 VFs
[06:04:09] [PASSED] 24 VFs
[06:04:09] [PASSED] 25 VFs
[06:04:09] [PASSED] 26 VFs
[06:04:09] [PASSED] 27 VFs
[06:04:09] [PASSED] 28 VFs
[06:04:09] [PASSED] 29 VFs
[06:04:09] [PASSED] 30 VFs
[06:04:09] [PASSED] 31 VFs
[06:04:09] [PASSED] 32 VFs
[06:04:09] [PASSED] 33 VFs
[06:04:09] [PASSED] 34 VFs
[06:04:09] [PASSED] 35 VFs
[06:04:09] [PASSED] 36 VFs
[06:04:09] [PASSED] 37 VFs
[06:04:09] [PASSED] 38 VFs
[06:04:09] [PASSED] 39 VFs
[06:04:09] [PASSED] 40 VFs
[06:04:09] [PASSED] 41 VFs
[06:04:09] [PASSED] 42 VFs
[06:04:09] [PASSED] 43 VFs
[06:04:09] [PASSED] 44 VFs
[06:04:09] [PASSED] 45 VFs
[06:04:09] [PASSED] 46 VFs
[06:04:09] [PASSED] 47 VFs
[06:04:09] [PASSED] 48 VFs
[06:04:09] [PASSED] 49 VFs
[06:04:09] [PASSED] 50 VFs
[06:04:09] [PASSED] 51 VFs
[06:04:09] [PASSED] 52 VFs
[06:04:09] [PASSED] 53 VFs
[06:04:09] [PASSED] 54 VFs
[06:04:09] [PASSED] 55 VFs
[06:04:09] [PASSED] 56 VFs
[06:04:09] [PASSED] 57 VFs
[06:04:09] [PASSED] 58 VFs
[06:04:09] [PASSED] 59 VFs
[06:04:09] [PASSED] 60 VFs
[06:04:09] [PASSED] 61 VFs
[06:04:09] [PASSED] 62 VFs
[06:04:09] [PASSED] 63 VFs
[06:04:09] ==================== [PASSED] fair_ggtt ====================
[06:04:09] ======================== fair_vram ========================
[06:04:09] [PASSED] 1 VF
[06:04:09] [PASSED] 2 VFs
[06:04:09] [PASSED] 3 VFs
[06:04:09] [PASSED] 4 VFs
[06:04:09] [PASSED] 5 VFs
[06:04:09] [PASSED] 6 VFs
[06:04:09] [PASSED] 7 VFs
[06:04:09] [PASSED] 8 VFs
[06:04:09] [PASSED] 9 VFs
[06:04:09] [PASSED] 10 VFs
[06:04:09] [PASSED] 11 VFs
[06:04:09] [PASSED] 12 VFs
[06:04:09] [PASSED] 13 VFs
[06:04:09] [PASSED] 14 VFs
[06:04:09] [PASSED] 15 VFs
[06:04:09] [PASSED] 16 VFs
[06:04:09] [PASSED] 17 VFs
[06:04:09] [PASSED] 18 VFs
[06:04:09] [PASSED] 19 VFs
[06:04:09] [PASSED] 20 VFs
[06:04:09] [PASSED] 21 VFs
[06:04:09] [PASSED] 22 VFs
[06:04:09] [PASSED] 23 VFs
[06:04:09] [PASSED] 24 VFs
[06:04:09] [PASSED] 25 VFs
[06:04:09] [PASSED] 26 VFs
[06:04:09] [PASSED] 27 VFs
[06:04:09] [PASSED] 28 VFs
[06:04:09] [PASSED] 29 VFs
[06:04:09] [PASSED] 30 VFs
[06:04:09] [PASSED] 31 VFs
[06:04:09] [PASSED] 32 VFs
[06:04:09] [PASSED] 33 VFs
[06:04:09] [PASSED] 34 VFs
[06:04:09] [PASSED] 35 VFs
[06:04:09] [PASSED] 36 VFs
[06:04:09] [PASSED] 37 VFs
[06:04:09] [PASSED] 38 VFs
[06:04:09] [PASSED] 39 VFs
[06:04:09] [PASSED] 40 VFs
[06:04:09] [PASSED] 41 VFs
[06:04:09] [PASSED] 42 VFs
[06:04:09] [PASSED] 43 VFs
[06:04:09] [PASSED] 44 VFs
[06:04:09] [PASSED] 45 VFs
[06:04:09] [PASSED] 46 VFs
[06:04:09] [PASSED] 47 VFs
[06:04:09] [PASSED] 48 VFs
[06:04:09] [PASSED] 49 VFs
[06:04:09] [PASSED] 50 VFs
[06:04:09] [PASSED] 51 VFs
[06:04:09] [PASSED] 52 VFs
[06:04:09] [PASSED] 53 VFs
[06:04:09] [PASSED] 54 VFs
[06:04:09] [PASSED] 55 VFs
[06:04:09] [PASSED] 56 VFs
[06:04:09] [PASSED] 57 VFs
[06:04:09] [PASSED] 58 VFs
[06:04:09] [PASSED] 59 VFs
[06:04:09] [PASSED] 60 VFs
[06:04:09] [PASSED] 61 VFs
[06:04:09] [PASSED] 62 VFs
[06:04:09] [PASSED] 63 VFs
[06:04:09] ==================== [PASSED] fair_vram ====================
[06:04:09] ================== [PASSED] pf_gt_config ===================
[06:04:09] ===================== lmtt (1 subtest) =====================
[06:04:09] ======================== test_ops =========================
[06:04:09] [PASSED] 2-level
[06:04:09] [PASSED] multi-level
[06:04:09] ==================== [PASSED] test_ops =====================
[06:04:09] ====================== [PASSED] lmtt =======================
[06:04:09] ================= sriov_packet (1 subtest) =================
[06:04:09] [PASSED] test_descriptor_init
[06:04:09] ================== [PASSED] sriov_packet ===================
[06:04:09] ================= pf_service (11 subtests) =================
[06:04:09] [PASSED] pf_negotiate_any
[06:04:09] [PASSED] pf_negotiate_base_match
[06:04:09] [PASSED] pf_negotiate_base_newer
[06:04:09] [PASSED] pf_negotiate_base_next
[06:04:09] [SKIPPED] pf_negotiate_base_older (no older minor)
[06:04:09] [PASSED] pf_negotiate_base_prev
[06:04:09] [PASSED] pf_negotiate_latest_match
[06:04:09] [PASSED] pf_negotiate_latest_newer
[06:04:09] [PASSED] pf_negotiate_latest_next
[06:04:09] [SKIPPED] pf_negotiate_latest_older (no older minor)
[06:04:09] [SKIPPED] pf_negotiate_latest_prev (no prev major)
[06:04:09] =================== [PASSED] pf_service ====================
[06:04:09] ================= xe_guc_g2g (2 subtests) ==================
[06:04:09] ============== xe_live_guc_g2g_kunit_default ==============
[06:04:09] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ==========
[06:04:09] ============== xe_live_guc_g2g_kunit_allmem ===============
[06:04:09] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ==========
[06:04:09] =================== [SKIPPED] xe_guc_g2g ===================
[06:04:09] =================== xe_mocs (2 subtests) ===================
[06:04:09] ================ xe_live_mocs_kernel_kunit ================
[06:04:09] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[06:04:09] ================ xe_live_mocs_reset_kunit =================
[06:04:09] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[06:04:09] ==================== [SKIPPED] xe_mocs =====================
[06:04:09] ================= xe_migrate (3 subtests) ==================
[06:04:09] ================= xe_migrate_sanity_kunit =================
[06:04:09] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[06:04:09] ================== xe_validate_ccs_kunit ==================
[06:04:09] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[06:04:09] ============= xe_migrate_access_memory_kunit ==============
[06:04:09] ========= [SKIPPED] xe_migrate_access_memory_kunit =========
[06:04:09] =================== [SKIPPED] xe_migrate ===================
[06:04:09] ================== xe_dma_buf (1 subtest) ==================
[06:04:09] ==================== xe_dma_buf_kunit =====================
[06:04:09] ================ [SKIPPED] xe_dma_buf_kunit ================
[06:04:09] =================== [SKIPPED] xe_dma_buf ===================
[06:04:09] ================= xe_bo_shrink (1 subtest) =================
[06:04:09] =================== xe_bo_shrink_kunit ====================
[06:04:09] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[06:04:09] ================== [SKIPPED] xe_bo_shrink ==================
[06:04:09] ==================== xe_bo (2 subtests) ====================
[06:04:09] ================== xe_ccs_migrate_kunit ===================
[06:04:09] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[06:04:09] ==================== xe_bo_evict_kunit ====================
[06:04:09] =============== [SKIPPED] xe_bo_evict_kunit ================
[06:04:09] ===================== [SKIPPED] xe_bo ======================
[06:04:09] =================== xe_any (9 subtests) ====================
[06:04:09] [PASSED] test_to_xe
[06:04:09] [PASSED] test_to_dev
[06:04:09] [PASSED] test_to_pdev
[06:04:09] [PASSED] test_to_drm
[06:04:09] [PASSED] test_if_pdev
[06:04:09] [PASSED] test_if_xe
[06:04:09] [PASSED] test_if_tile
[06:04:09] [PASSED] test_if_gt
[06:04:09] [PASSED] test_to_id
[06:04:09] ===================== [PASSED] xe_any ======================
[06:04:09] ==================== args (13 subtests) ====================
[06:04:09] [PASSED] count_args_test
[06:04:09] [PASSED] call_args_example
[06:04:09] [PASSED] call_args_test
[06:04:09] [PASSED] drop_first_arg_example
[06:04:09] [PASSED] drop_first_arg_test
[06:04:09] [PASSED] first_arg_example
[06:04:09] [PASSED] first_arg_test
[06:04:09] [PASSED] last_arg_example
[06:04:09] [PASSED] last_arg_test
[06:04:09] [PASSED] pick_arg_example
[06:04:09] [PASSED] if_args_example
[06:04:09] [PASSED] if_args_test
[06:04:09] [PASSED] sep_comma_example
[06:04:09] ====================== [PASSED] args =======================
[06:04:09] =================== xe_pci (3 subtests) ====================
[06:04:09] ==================== check_graphics_ip ====================
[06:04:09] [PASSED] 12.00 Xe_LP
[06:04:09] [PASSED] 12.10 Xe_LP+
[06:04:09] [PASSED] 12.55 Xe_HPG
[06:04:09] [PASSED] 12.60 Xe_HPC
[06:04:09] [PASSED] 12.70 Xe_LPG
[06:04:09] [PASSED] 12.71 Xe_LPG
[06:04:09] [PASSED] 12.74 Xe_LPG+
[06:04:09] [PASSED] 20.01 Xe2_HPG
[06:04:09] [PASSED] 20.02 Xe2_HPG
[06:04:09] [PASSED] 20.04 Xe2_LPG
[06:04:09] [PASSED] 30.00 Xe3_LPG
[06:04:09] [PASSED] 30.01 Xe3_LPG
[06:04:09] [PASSED] 30.03 Xe3_LPG
[06:04:09] [PASSED] 30.04 Xe3_LPG
[06:04:09] [PASSED] 30.05 Xe3_LPG
[06:04:09] [PASSED] 35.10 Xe3p_LPG
[06:04:09] [PASSED] 35.11 Xe3p_XPC
[06:04:09] ================ [PASSED] check_graphics_ip ================
[06:04:09] ===================== check_media_ip ======================
[06:04:09] [PASSED] 12.00 Xe_M
[06:04:09] [PASSED] 12.55 Xe_HPM
[06:04:09] [PASSED] 13.00 Xe_LPM+
[06:04:09] [PASSED] 13.01 Xe2_HPM
[06:04:09] [PASSED] 20.00 Xe2_LPM
[06:04:09] [PASSED] 30.00 Xe3_LPM
[06:04:09] [PASSED] 30.02 Xe3_LPM
[06:04:09] [PASSED] 35.00 Xe3p_LPM
[06:04:09] [PASSED] 35.03 Xe3p_HPM
[06:04:09] ================= [PASSED] check_media_ip ==================
[06:04:09] =================== check_platform_desc ===================
[06:04:09] [PASSED] 0x9A60 (TIGERLAKE)
[06:04:09] [PASSED] 0x9A68 (TIGERLAKE)
[06:04:09] [PASSED] 0x9A70 (TIGERLAKE)
[06:04:09] [PASSED] 0x9A40 (TIGERLAKE)
[06:04:09] [PASSED] 0x9A49 (TIGERLAKE)
[06:04:09] [PASSED] 0x9A59 (TIGERLAKE)
[06:04:09] [PASSED] 0x9A78 (TIGERLAKE)
[06:04:09] [PASSED] 0x9AC0 (TIGERLAKE)
[06:04:09] [PASSED] 0x9AC9 (TIGERLAKE)
[06:04:09] [PASSED] 0x9AD9 (TIGERLAKE)
[06:04:09] [PASSED] 0x9AF8 (TIGERLAKE)
[06:04:09] [PASSED] 0x4C80 (ROCKETLAKE)
[06:04:09] [PASSED] 0x4C8A (ROCKETLAKE)
[06:04:09] [PASSED] 0x4C8B (ROCKETLAKE)
[06:04:09] [PASSED] 0x4C8C (ROCKETLAKE)
[06:04:09] [PASSED] 0x4C90 (ROCKETLAKE)
[06:04:09] [PASSED] 0x4C9A (ROCKETLAKE)
[06:04:09] [PASSED] 0x4680 (ALDERLAKE_S)
[06:04:09] [PASSED] 0x4682 (ALDERLAKE_S)
[06:04:09] [PASSED] 0x4688 (ALDERLAKE_S)
[06:04:09] [PASSED] 0x468A (ALDERLAKE_S)
[06:04:09] [PASSED] 0x468B (ALDERLAKE_S)
[06:04:09] [PASSED] 0x4690 (ALDERLAKE_S)
[06:04:09] [PASSED] 0x4692 (ALDERLAKE_S)
[06:04:09] [PASSED] 0x4693 (ALDERLAKE_S)
[06:04:09] [PASSED] 0x46A0 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x46A1 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x46A2 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x46A3 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x46A6 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x46A8 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x46AA (ALDERLAKE_P)
[06:04:09] [PASSED] 0x462A (ALDERLAKE_P)
[06:04:09] [PASSED] 0x4626 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x4628 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x46B0 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x46B1 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x46B2 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x46B3 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x46C0 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x46C1 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x46C2 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x46C3 (ALDERLAKE_P)
[06:04:09] [PASSED] 0x46D0 (ALDERLAKE_N)
[06:04:09] [PASSED] 0x46D1 (ALDERLAKE_N)
[06:04:09] [PASSED] 0x46D2 (ALDERLAKE_N)
[06:04:09] [PASSED] 0x46D3 (ALDERLAKE_N)
[06:04:09] [PASSED] 0x46D4 (ALDERLAKE_N)
[06:04:09] [PASSED] 0xA721 (ALDERLAKE_P)
[06:04:09] [PASSED] 0xA7A1 (ALDERLAKE_P)
[06:04:09] [PASSED] 0xA7A9 (ALDERLAKE_P)
[06:04:09] [PASSED] 0xA7AC (ALDERLAKE_P)
[06:04:09] [PASSED] 0xA7AD (ALDERLAKE_P)
[06:04:09] [PASSED] 0xA720 (ALDERLAKE_P)
[06:04:09] [PASSED] 0xA7A0 (ALDERLAKE_P)
[06:04:09] [PASSED] 0xA7A8 (ALDERLAKE_P)
[06:04:09] [PASSED] 0xA7AA (ALDERLAKE_P)
[06:04:09] [PASSED] 0xA7AB (ALDERLAKE_P)
[06:04:09] [PASSED] 0xA780 (ALDERLAKE_S)
[06:04:09] [PASSED] 0xA781 (ALDERLAKE_S)
[06:04:09] [PASSED] 0xA782 (ALDERLAKE_S)
[06:04:09] [PASSED] 0xA783 (ALDERLAKE_S)
[06:04:09] [PASSED] 0xA788 (ALDERLAKE_S)
[06:04:09] [PASSED] 0xA789 (ALDERLAKE_S)
[06:04:09] [PASSED] 0xA78A (ALDERLAKE_S)
[06:04:09] [PASSED] 0xA78B (ALDERLAKE_S)
[06:04:09] [PASSED] 0x4905 (DG1)
[06:04:09] [PASSED] 0x4906 (DG1)
[06:04:09] [PASSED] 0x4907 (DG1)
[06:04:09] [PASSED] 0x4908 (DG1)
[06:04:09] [PASSED] 0x4909 (DG1)
[06:04:09] [PASSED] 0x56C0 (DG2)
[06:04:09] [PASSED] 0x56C2 (DG2)
[06:04:09] [PASSED] 0x56C1 (DG2)
[06:04:09] [PASSED] 0x7D51 (METEORLAKE)
[06:04:09] [PASSED] 0x7DD1 (METEORLAKE)
[06:04:09] [PASSED] 0x7D41 (METEORLAKE)
[06:04:09] [PASSED] 0x7D67 (METEORLAKE)
[06:04:09] [PASSED] 0xB640 (METEORLAKE)
[06:04:09] [PASSED] 0x56A0 (DG2)
[06:04:09] [PASSED] 0x56A1 (DG2)
[06:04:09] [PASSED] 0x56A2 (DG2)
[06:04:09] [PASSED] 0x56BE (DG2)
[06:04:09] [PASSED] 0x56BF (DG2)
[06:04:09] [PASSED] 0x5690 (DG2)
[06:04:09] [PASSED] 0x5691 (DG2)
[06:04:09] [PASSED] 0x5692 (DG2)
[06:04:09] [PASSED] 0x56A5 (DG2)
[06:04:09] [PASSED] 0x56A6 (DG2)
[06:04:09] [PASSED] 0x56B0 (DG2)
[06:04:09] [PASSED] 0x56B1 (DG2)
[06:04:09] [PASSED] 0x56BA (DG2)
[06:04:09] [PASSED] 0x56BB (DG2)
[06:04:09] [PASSED] 0x56BC (DG2)
[06:04:09] [PASSED] 0x56BD (DG2)
[06:04:09] [PASSED] 0x5693 (DG2)
[06:04:09] [PASSED] 0x5694 (DG2)
[06:04:09] [PASSED] 0x5695 (DG2)
[06:04:09] [PASSED] 0x56A3 (DG2)
[06:04:09] [PASSED] 0x56A4 (DG2)
[06:04:09] [PASSED] 0x56B2 (DG2)
[06:04:09] [PASSED] 0x56B3 (DG2)
[06:04:09] [PASSED] 0x5696 (DG2)
[06:04:09] [PASSED] 0x5697 (DG2)
[06:04:09] [PASSED] 0xB69 (PVC)
[06:04:09] [PASSED] 0xB6E (PVC)
[06:04:09] [PASSED] 0xBD4 (PVC)
[06:04:09] [PASSED] 0xBD5 (PVC)
[06:04:09] [PASSED] 0xBD6 (PVC)
[06:04:09] [PASSED] 0xBD7 (PVC)
[06:04:09] [PASSED] 0xBD8 (PVC)
[06:04:09] [PASSED] 0xBD9 (PVC)
[06:04:09] [PASSED] 0xBDA (PVC)
[06:04:09] [PASSED] 0xBDB (PVC)
[06:04:09] [PASSED] 0xBE0 (PVC)
[06:04:09] [PASSED] 0xBE1 (PVC)
[06:04:09] [PASSED] 0xBE5 (PVC)
[06:04:09] [PASSED] 0x7D40 (METEORLAKE)
[06:04:09] [PASSED] 0x7D45 (METEORLAKE)
[06:04:09] [PASSED] 0x7D55 (METEORLAKE)
[06:04:09] [PASSED] 0x7D60 (METEORLAKE)
[06:04:09] [PASSED] 0x7DD5 (METEORLAKE)
[06:04:09] [PASSED] 0x6420 (LUNARLAKE)
[06:04:09] [PASSED] 0x64A0 (LUNARLAKE)
[06:04:09] [PASSED] 0x64B0 (LUNARLAKE)
[06:04:09] [PASSED] 0xE202 (BATTLEMAGE)
[06:04:09] [PASSED] 0xE209 (BATTLEMAGE)
[06:04:09] [PASSED] 0xE20B (BATTLEMAGE)
[06:04:09] [PASSED] 0xE20C (BATTLEMAGE)
[06:04:09] [PASSED] 0xE20D (BATTLEMAGE)
[06:04:09] [PASSED] 0xE210 (BATTLEMAGE)
[06:04:09] [PASSED] 0xE211 (BATTLEMAGE)
[06:04:09] [PASSED] 0xE212 (BATTLEMAGE)
[06:04:09] [PASSED] 0xE216 (BATTLEMAGE)
[06:04:09] [PASSED] 0xE220 (BATTLEMAGE)
[06:04:09] [PASSED] 0xE221 (BATTLEMAGE)
[06:04:09] [PASSED] 0xE222 (BATTLEMAGE)
[06:04:09] [PASSED] 0xE223 (BATTLEMAGE)
[06:04:09] [PASSED] 0xB080 (PANTHERLAKE)
[06:04:09] [PASSED] 0xB081 (PANTHERLAKE)
[06:04:09] [PASSED] 0xB082 (PANTHERLAKE)
[06:04:09] [PASSED] 0xB083 (PANTHERLAKE)
[06:04:09] [PASSED] 0xB084 (PANTHERLAKE)
[06:04:09] [PASSED] 0xB085 (PANTHERLAKE)
[06:04:09] [PASSED] 0xB086 (PANTHERLAKE)
[06:04:09] [PASSED] 0xB087 (PANTHERLAKE)
[06:04:09] [PASSED] 0xB08F (PANTHERLAKE)
[06:04:09] [PASSED] 0xB090 (PANTHERLAKE)
[06:04:09] [PASSED] 0xB0A0 (PANTHERLAKE)
[06:04:09] [PASSED] 0xB0A1 (PANTHERLAKE)
[06:04:09] [PASSED] 0xB0B0 (PANTHERLAKE)
[06:04:09] [PASSED] 0xFD80 (PANTHERLAKE)
[06:04:09] [PASSED] 0xFD81 (PANTHERLAKE)
[06:04:09] [PASSED] 0xD740 (NOVALAKE_S)
[06:04:09] [PASSED] 0xD741 (NOVALAKE_S)
[06:04:09] [PASSED] 0xD742 (NOVALAKE_S)
[06:04:09] [PASSED] 0xD743 (NOVALAKE_S)
[06:04:09] [PASSED] 0xD745 (NOVALAKE_S)
[06:04:09] [PASSED] 0xD74A (NOVALAKE_S)
[06:04:09] [PASSED] 0xD74B (NOVALAKE_S)
[06:04:09] [PASSED] 0x674C (CRESCENTISLAND)
[06:04:09] [PASSED] 0x674D (CRESCENTISLAND)
[06:04:09] [PASSED] 0x674E (CRESCENTISLAND)
[06:04:09] [PASSED] 0x674F (CRESCENTISLAND)
[06:04:09] [PASSED] 0x6750 (CRESCENTISLAND)
[06:04:09] [PASSED] 0x6751 (CRESCENTISLAND)
[06:04:09] [PASSED] 0x6752 (CRESCENTISLAND)
[06:04:09] [PASSED] 0x6753 (CRESCENTISLAND)
[06:04:09] [PASSED] 0x6754 (CRESCENTISLAND)
[06:04:09] [PASSED] 0x6755 (CRESCENTISLAND)
[06:04:09] [PASSED] 0x6756 (CRESCENTISLAND)
[06:04:09] [PASSED] 0xD750 (NOVALAKE_P)
[06:04:09] [PASSED] 0xD751 (NOVALAKE_P)
[06:04:09] [PASSED] 0xD752 (NOVALAKE_P)
[06:04:09] [PASSED] 0xD753 (NOVALAKE_P)
[06:04:09] [PASSED] 0xD754 (NOVALAKE_P)
[06:04:09] [PASSED] 0xD755 (NOVALAKE_P)
[06:04:09] [PASSED] 0xD756 (NOVALAKE_P)
[06:04:09] [PASSED] 0xD757 (NOVALAKE_P)
[06:04:09] [PASSED] 0xD75F (NOVALAKE_P)
[06:04:09] =============== [PASSED] check_platform_desc ===============
[06:04:09] ===================== [PASSED] xe_pci ======================
[06:04:09] ============= xe_rtp_tables_test (5 subtests) ==============
[06:04:09] ================== xe_rtp_table_gt_test ===================
[06:04:09] [PASSED] gt_was/14011060649
[06:04:09] [PASSED] gt_was/14011059788
[06:04:09] [PASSED] gt_was/14015795083
[06:04:09] [PASSED] gt_was/16021867713
[06:04:09] [PASSED] gt_was/14019449301
[06:04:09] [PASSED] gt_was/16028005424
[06:04:09] [PASSED] gt_was/14026578760
[06:04:09] [PASSED] gt_was/1409420604
[06:04:09] [PASSED] gt_was/1408615072
[06:04:09] [PASSED] gt_was/22010523718
[06:04:09] [PASSED] gt_was/14011006942
[06:04:09] [PASSED] gt_was/14014830051
[06:04:09] [PASSED] gt_was/18018781329
[06:04:09] [PASSED] gt_was/1509235366
[06:04:09] [PASSED] gt_was/18018781329
[06:04:09] [PASSED] gt_was/16016694945
[06:04:09] [PASSED] gt_was/14018575942
[06:04:09] [PASSED] gt_was/22016670082
[06:04:09] [PASSED] gt_was/22016670082
[06:04:09] [PASSED] gt_was/14017421178
[06:04:09] [PASSED] gt_was/16025250150
[06:04:09] [PASSED] gt_was/14021871409
[06:04:09] [PASSED] gt_was/16021865536
[06:04:09] [PASSED] gt_was/14021486841
[06:04:09] [PASSED] gt_was/14025160223
[06:04:09] [PASSED] gt_was/14026144927, 16029437861, 14026127056
[06:04:09] [PASSED] gt_was/14025635424
[06:04:09] [PASSED] gt_was/16028005424
[06:04:09] ============== [PASSED] xe_rtp_table_gt_test ===============
[06:04:09] ================== xe_rtp_table_gt_test ===================
[06:04:09] [PASSED] gt_tunings/Tuning: Blend Fill Caching Optimization Disable
[06:04:09] [PASSED] gt_tunings/Tuning: 32B Access Enable
[06:04:09] [PASSED] gt_tunings/Tuning: L3 cache
[06:04:09] [PASSED] gt_tunings/Tuning: L3 cache - media
[06:04:09] [PASSED] gt_tunings/Tuning: Compression Overfetch
[06:04:09] [PASSED] gt_tunings/Tuning: Compression Overfetch - media
[06:04:09] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3
[06:04:09] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 - media
[06:04:09] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only
[06:04:09] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only - media
[06:04:09] [PASSED] gt_tunings/Tuning: Stateless compression control
[06:04:09] [PASSED] gt_tunings/Tuning: Stateless compression control - media
[06:04:09] [PASSED] gt_tunings/Tuning: L3 RW flush all Cache
[06:04:09] [PASSED] gt_tunings/Tuning: L3 RW flush all cache - media
[06:04:09] [PASSED] gt_tunings/Tuning: Set STLB Bank Hash Mode to 4KB
[06:04:09] [PASSED] gt_tunings/Tuning: Force All Non-Compressible Memory Reads to be 256B Overfetches
[06:04:09] ============== [PASSED] xe_rtp_table_gt_test ===============
[06:04:09] ================== xe_rtp_table_oob_test ==================
[06:04:09] [PASSED] oob_was/1607983814
[06:04:09] [PASSED] oob_was/16010904313
[06:04:09] [PASSED] oob_was/18022495364
[06:04:09] [PASSED] oob_was/22012773006
[06:04:09] [PASSED] oob_was/14014475959
[06:04:09] [PASSED] oob_was/22011391025
[06:04:09] [PASSED] oob_was/22012727170
[06:04:09] [PASSED] oob_was/22012727685
[06:04:09] [PASSED] oob_was/22016596838
[06:04:09] [PASSED] oob_was/18020744125
[06:04:09] [PASSED] oob_was/1409600907
[06:04:09] [PASSED] oob_was/22014953428
[06:04:09] [PASSED] oob_was/16017236439
[06:04:09] [PASSED] oob_was/14019821291
[06:04:09] [PASSED] oob_was/14015076503
[06:04:09] [PASSED] oob_was/22016122933
[06:04:09] [PASSED] oob_was/14018913170
[06:04:09] [PASSED] oob_was/14018094691
[06:04:09] [PASSED] oob_was/18024947630
[06:04:09] [PASSED] oob_was/16022287689
[06:04:09] [PASSED] oob_was/13011645652
[06:04:09] [PASSED] oob_was/14022293748
[06:04:09] [PASSED] oob_was/22019794406
[06:04:09] [PASSED] oob_was/22019338487
[06:04:09] [PASSED] oob_was/16023588340
[06:04:09] [PASSED] oob_was/14019789679
[06:04:09] [PASSED] oob_was/14022866841
[06:04:09] [PASSED] oob_was/16021333562
[06:04:09] [PASSED] oob_was/14016712196
[06:04:09] [PASSED] oob_was/14015568240
[06:04:09] [PASSED] oob_was/18013179988
[06:04:09] [PASSED] oob_was/1508761755
[06:04:09] [PASSED] oob_was/16023105232
[06:04:09] [PASSED] oob_was/16026508708
[06:04:09] [PASSED] oob_was/14020001231
[06:04:09] [PASSED] oob_was/16023683509
[06:04:09] [PASSED] oob_was/14025515070
[06:04:09] [PASSED] oob_was/15015404425_disable
[06:04:09] [PASSED] oob_was/16026007364
[06:04:09] [PASSED] oob_was/14020316580
[06:04:09] [PASSED] oob_was/14025883347
[06:04:09] [PASSED] oob_was/16029380221
[06:04:09] [PASSED] oob_was/22022079272
[06:04:09] [PASSED] oob_was/16029897822
[06:04:09] [PASSED] oob_was/14026539277
[06:04:09] [PASSED] oob_was/14027054324
[06:04:09] [PASSED] oob_was/14025941587
[06:04:09] [PASSED] oob_was/16030224309
[06:04:09] [PASSED] oob_was/14028709524
[06:04:09] [PASSED] oob_was/14028250015
[06:04:09] [PASSED] oob_was/16031259911
[06:04:09] ============== [PASSED] xe_rtp_table_oob_test ==============
[06:04:09] ================ xe_rtp_table_dev_oob_test ================
[06:04:09] [PASSED] device_oob_was/22010954014
[06:04:09] [PASSED] device_oob_was/15015404425
[06:04:09] [PASSED] device_oob_was/22019338487_display
[06:04:09] [PASSED] device_oob_was/14022085890
[06:04:09] [PASSED] device_oob_was/14026633728
[06:04:09] [PASSED] device_oob_was/14026746987
[06:04:09] [PASSED] device_oob_was/14026779378
[06:04:09] [PASSED] device_oob_was/14028586678
[06:04:09] [PASSED] device_oob_was/14028434957
[06:04:09] ============ [PASSED] xe_rtp_table_dev_oob_test ============
[06:04:09] ========== xe_rtp_table_missing_upper_bound_test ==========
[06:04:09] [PASSED] register_whitelist/WaAllowPMDepthAndInvocationCountAccessFromUMD, 1408556865
[06:04:09] [PASSED] register_whitelist/1508744258, 14012131227, 1808121037
[06:04:09] [PASSED] register_whitelist/1806527549
[06:04:09] [PASSED] register_whitelist/allow_read_ctx_timestamp
[06:04:09] [PASSED] register_whitelist/allow_read_queue_timestamp
[06:04:09] [PASSED] register_whitelist/16014440446
[06:04:09] [PASSED] register_whitelist/16017236439
[06:04:09] [PASSED] register_whitelist/16020183090
[06:04:09] [PASSED] register_whitelist/14024997852
[06:04:09] [PASSED] register_whitelist/14024997852
[06:04:09] ====== [PASSED] xe_rtp_table_missing_upper_bound_test ======
[06:04:09] =============== [PASSED] xe_rtp_tables_test ================
[06:04:09] =================== xe_rtp (3 subtests) ====================
[06:04:09] =================== xe_rtp_rules_tests ====================
[06:04:09] [PASSED] no
[06:04:09] [PASSED] yes
[06:04:09] [PASSED] no-and-no
[06:04:09] [PASSED] no-and-yes
[06:04:09] [PASSED] yes-and-no
[06:04:09] [PASSED] yes-and-yes
[06:04:09] [PASSED] no-or-no
[06:04:09] [PASSED] no-or-yes
[06:04:09] [PASSED] yes-or-no
[06:04:09] [PASSED] yes-or-yes
[06:04:09] [PASSED] no-yes-or-yes-no
[06:04:09] [PASSED] no-yes-or-yes-yes
[06:04:09] [PASSED] yes-yes-or-no-yes
[06:04:09] [PASSED] yes-yes-or-yes-yes
[06:04:09] [PASSED] no-no-or-yes-or-no
[06:04:09] [PASSED] or
[06:04:09] [PASSED] or-yes
[06:04:09] [PASSED] or-no
[06:04:09] [PASSED] yes-or
[06:04:09] [PASSED] no-or
[06:04:09] [PASSED] no-or-or-yes
[06:04:09] [PASSED] yes-or-or-no
[06:04:09] [PASSED] no-or-or-no
[06:04:09] [PASSED] missing-context-engine-class
[06:04:09] [PASSED] missing-context-engine-class-or-yes
[06:04:09] [PASSED] missing-context-engine-class-or-or-yes
[06:04:09] =============== [PASSED] xe_rtp_rules_tests ================
[06:04:09] =============== xe_rtp_process_to_sr_tests ================
[06:04:09] [PASSED] coalesce-same-reg
[06:04:09] [PASSED] coalesce-same-reg-literal-and-func
[06:04:09] [PASSED] no-match-no-add
[06:04:09] [PASSED] two-regs-two-entries
[06:04:09] [PASSED] clr-one-set-other
[06:04:09] [PASSED] set-field
[06:04:09] [PASSED] conflict-duplicate
[06:04:09] [PASSED] conflict-not-disjoint
[06:04:09] [PASSED] conflict-not-disjoint-literal-and-func
[06:04:09] [PASSED] conflict-reg-type
[06:04:09] [PASSED] bad-mcr-reg-forced-to-regular
[06:04:09] [PASSED] bad-regular-reg-forced-to-mcr
[06:04:09] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[06:04:09] ================== xe_rtp_process_tests ===================
[06:04:09] [PASSED] active1
[06:04:09] [PASSED] active2
[06:04:09] [PASSED] active-inactive
[06:04:09] [PASSED] inactive-active
[06:04:09] [PASSED] inactive-active-inactive
[06:04:09] [PASSED] inactive-inactive-inactive
[06:04:09] ============== [PASSED] xe_rtp_process_tests ===============
[06:04:09] ===================== [PASSED] xe_rtp ======================
[06:04:09] ==================== xe_wa (1 subtest) =====================
[06:04:09] ======================== xe_wa_gt =========================
[06:04:09] [PASSED] TIGERLAKE B0
[06:04:09] [PASSED] DG1 A0
[06:04:09] [PASSED] DG1 B0
[06:04:09] [PASSED] ALDERLAKE_S A0
[06:04:09] [PASSED] ALDERLAKE_S B0
[06:04:09] [PASSED] ALDERLAKE_S C0
[06:04:09] [PASSED] ALDERLAKE_S D0
[06:04:09] [PASSED] ALDERLAKE_P A0
[06:04:09] [PASSED] ALDERLAKE_P B0
[06:04:09] [PASSED] ALDERLAKE_P C0
[06:04:09] [PASSED] ALDERLAKE_S RPLS D0
[06:04:09] [PASSED] ALDERLAKE_P RPLU E0
[06:04:09] [PASSED] DG2 G10 C0
[06:04:09] [PASSED] DG2 G11 B1
[06:04:09] [PASSED] DG2 G12 A1
[06:04:09] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0
[06:04:09] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0
[06:04:09] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0
[06:04:09] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0
[06:04:09] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0
[06:04:09] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1
[06:04:09] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0
[06:04:09] ==================== [PASSED] xe_wa_gt =====================
[06:04:09] ====================== [PASSED] xe_wa ======================
[06:04:09] ============================================================
[06:04:09] Testing complete. Ran 860 tests: passed: 831, skipped: 29
[06:04:09] Elapsed time: 42.078s total, 2.510s configuring, 38.802s building, 0.744s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig
[06:04:09] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[06:04:12] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[06:04:38] Starting KUnit Kernel (1/1)...
[06:04:38] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[06:04:38] ============ drm_test_pick_cmdline (2 subtests) ============
[06:04:38] [PASSED] drm_test_pick_cmdline_res_1920_1080_60
[06:04:38] =============== drm_test_pick_cmdline_named ===============
[06:04:38] [PASSED] NTSC
[06:04:38] [PASSED] NTSC-J
[06:04:38] [PASSED] PAL
[06:04:38] [PASSED] PAL-M
[06:04:38] =========== [PASSED] drm_test_pick_cmdline_named ===========
[06:04:38] ============== [PASSED] drm_test_pick_cmdline ==============
[06:04:38] == drm_test_atomic_get_connector_for_encoder (1 subtest) ===
[06:04:38] [PASSED] drm_test_drm_atomic_get_connector_for_encoder
[06:04:38] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ====
[06:04:38] =========== drm_validate_clone_mode (2 subtests) ===========
[06:04:38] ============== drm_test_check_in_clone_mode ===============
[06:04:38] [PASSED] in_clone_mode
[06:04:38] [PASSED] not_in_clone_mode
[06:04:38] ========== [PASSED] drm_test_check_in_clone_mode ===========
[06:04:38] =============== drm_test_check_valid_clones ===============
[06:04:38] [PASSED] not_in_clone_mode
[06:04:38] [PASSED] valid_clone
[06:04:38] [PASSED] invalid_clone
[06:04:38] =========== [PASSED] drm_test_check_valid_clones ===========
[06:04:38] ============= [PASSED] drm_validate_clone_mode =============
[06:04:38] ============= drm_validate_modeset (1 subtest) =============
[06:04:38] [PASSED] drm_test_check_connector_changed_modeset
[06:04:38] ============== [PASSED] drm_validate_modeset ===============
[06:04:38] ====== drm_test_bridge_get_current_state (1 subtest) =======
[06:04:38] [PASSED] drm_test_drm_bridge_get_current_state_atomic
[06:04:38] ======== [PASSED] drm_test_bridge_get_current_state ========
[06:04:38] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ======
[06:04:38] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic
[06:04:38] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled
[06:04:38] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts
[06:04:38] ======== [PASSED] drm_test_bridge_helper_reset_crtc ========
[06:04:38] ============== drm_bridge_alloc (2 subtests) ===============
[06:04:38] [PASSED] drm_test_drm_bridge_alloc_basic
[06:04:38] [PASSED] drm_test_drm_bridge_alloc_get_put
[06:04:38] ================ [PASSED] drm_bridge_alloc =================
[06:04:38] ============= drm_bridge_bus_fmt (5 subtests) ==============
[06:04:38] [PASSED] drm_test_bridge_rgb_yuv_rgb
[06:04:38] [PASSED] drm_test_bridge_must_convert_to_yuv444
[06:04:38] [PASSED] drm_test_bridge_hdmi_auto_rgb
[06:04:38] [PASSED] drm_test_bridge_auto_first
[06:04:38] [PASSED] drm_test_bridge_rgb_yuv_no_path
[06:04:38] =============== [PASSED] drm_bridge_bus_fmt ================
[06:04:38] ============= drm_cmdline_parser (40 subtests) =============
[06:04:38] [PASSED] drm_test_cmdline_force_d_only
[06:04:38] [PASSED] drm_test_cmdline_force_D_only_dvi
[06:04:38] [PASSED] drm_test_cmdline_force_D_only_hdmi
[06:04:38] [PASSED] drm_test_cmdline_force_D_only_not_digital
[06:04:38] [PASSED] drm_test_cmdline_force_e_only
[06:04:38] [PASSED] drm_test_cmdline_res
[06:04:38] [PASSED] drm_test_cmdline_res_vesa
[06:04:38] [PASSED] drm_test_cmdline_res_vesa_rblank
[06:04:38] [PASSED] drm_test_cmdline_res_rblank
[06:04:38] [PASSED] drm_test_cmdline_res_bpp
[06:04:38] [PASSED] drm_test_cmdline_res_refresh
[06:04:38] [PASSED] drm_test_cmdline_res_bpp_refresh
[06:04:38] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced
[06:04:38] [PASSED] drm_test_cmdline_res_bpp_refresh_margins
[06:04:38] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off
[06:04:38] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on
[06:04:38] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog
[06:04:38] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital
[06:04:38] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on
[06:04:38] [PASSED] drm_test_cmdline_res_margins_force_on
[06:04:38] [PASSED] drm_test_cmdline_res_vesa_margins
[06:04:38] [PASSED] drm_test_cmdline_name
[06:04:38] [PASSED] drm_test_cmdline_name_bpp
[06:04:38] [PASSED] drm_test_cmdline_name_option
[06:04:38] [PASSED] drm_test_cmdline_name_bpp_option
[06:04:38] [PASSED] drm_test_cmdline_rotate_0
[06:04:38] [PASSED] drm_test_cmdline_rotate_90
[06:04:38] [PASSED] drm_test_cmdline_rotate_180
[06:04:38] [PASSED] drm_test_cmdline_rotate_270
[06:04:38] [PASSED] drm_test_cmdline_hmirror
[06:04:38] [PASSED] drm_test_cmdline_vmirror
[06:04:38] [PASSED] drm_test_cmdline_margin_options
[06:04:38] [PASSED] drm_test_cmdline_multiple_options
[06:04:38] [PASSED] drm_test_cmdline_bpp_extra_and_option
[06:04:38] [PASSED] drm_test_cmdline_extra_and_option
[06:04:38] [PASSED] drm_test_cmdline_freestanding_options
[06:04:38] [PASSED] drm_test_cmdline_freestanding_force_e_and_options
[06:04:38] [PASSED] drm_test_cmdline_panel_orientation
[06:04:38] ================ drm_test_cmdline_invalid =================
[06:04:38] [PASSED] margin_only
[06:04:38] [PASSED] interlace_only
[06:04:38] [PASSED] res_missing_x
[06:04:38] [PASSED] res_missing_y
[06:04:38] [PASSED] res_bad_y
[06:04:38] [PASSED] res_missing_y_bpp
[06:04:38] [PASSED] res_bad_bpp
[06:04:38] [PASSED] res_bad_refresh
[06:04:38] [PASSED] res_bpp_refresh_force_on_off
[06:04:38] [PASSED] res_invalid_mode
[06:04:38] [PASSED] res_bpp_wrong_place_mode
[06:04:38] [PASSED] name_bpp_refresh
[06:04:38] [PASSED] name_refresh
[06:04:38] [PASSED] name_refresh_wrong_mode
[06:04:38] [PASSED] name_refresh_invalid_mode
[06:04:38] [PASSED] rotate_multiple
[06:04:38] [PASSED] rotate_invalid_val
[06:04:38] [PASSED] rotate_truncated
[06:04:38] [PASSED] invalid_option
[06:04:38] [PASSED] invalid_tv_option
[06:04:38] [PASSED] truncated_tv_option
[06:04:38] ============ [PASSED] drm_test_cmdline_invalid =============
[06:04:38] =============== drm_test_cmdline_tv_options ===============
[06:04:38] [PASSED] NTSC
[06:04:38] [PASSED] NTSC_443
[06:04:38] [PASSED] NTSC_J
[06:04:38] [PASSED] PAL
[06:04:38] [PASSED] PAL_M
[06:04:38] [PASSED] PAL_N
[06:04:38] [PASSED] SECAM
[06:04:38] [PASSED] MONO_525
[06:04:38] [PASSED] MONO_625
[06:04:38] =========== [PASSED] drm_test_cmdline_tv_options ===========
[06:04:38] =============== [PASSED] drm_cmdline_parser ================
[06:04:38] ========== drmm_connector_hdmi_init (20 subtests) ==========
[06:04:38] [PASSED] drm_test_connector_hdmi_init_valid
[06:04:38] [PASSED] drm_test_connector_hdmi_init_bpc_8
[06:04:38] [PASSED] drm_test_connector_hdmi_init_bpc_10
[06:04:38] [PASSED] drm_test_connector_hdmi_init_bpc_12
[06:04:38] [PASSED] drm_test_connector_hdmi_init_bpc_invalid
[06:04:38] [PASSED] drm_test_connector_hdmi_init_bpc_null
[06:04:38] [PASSED] drm_test_connector_hdmi_init_formats_empty
[06:04:38] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb
[06:04:38] === drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[06:04:38] [PASSED] supported_formats=0x9 yuv420_allowed=1
[06:04:38] [PASSED] supported_formats=0x9 yuv420_allowed=0
[06:04:38] [PASSED] supported_formats=0x5 yuv420_allowed=1
[06:04:38] [PASSED] supported_formats=0x5 yuv420_allowed=0
[06:04:38] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[06:04:38] [PASSED] drm_test_connector_hdmi_init_null_ddc
[06:04:38] [PASSED] drm_test_connector_hdmi_init_null_product
[06:04:38] [PASSED] drm_test_connector_hdmi_init_null_vendor
[06:04:38] [PASSED] drm_test_connector_hdmi_init_product_length_exact
[06:04:38] [PASSED] drm_test_connector_hdmi_init_product_length_too_long
[06:04:38] [PASSED] drm_test_connector_hdmi_init_product_valid
[06:04:38] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact
[06:04:38] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long
[06:04:38] [PASSED] drm_test_connector_hdmi_init_vendor_valid
[06:04:38] ========= drm_test_connector_hdmi_init_type_valid =========
[06:04:38] [PASSED] HDMI-A
[06:04:38] [PASSED] HDMI-B
[06:04:38] ===== [PASSED] drm_test_connector_hdmi_init_type_valid =====
[06:04:38] ======== drm_test_connector_hdmi_init_type_invalid ========
[06:04:38] [PASSED] Unknown
[06:04:38] [PASSED] VGA
[06:04:38] [PASSED] DVI-I
[06:04:38] [PASSED] DVI-D
[06:04:38] [PASSED] DVI-A
[06:04:38] [PASSED] Composite
[06:04:38] [PASSED] SVIDEO
[06:04:38] [PASSED] LVDS
[06:04:38] [PASSED] Component
[06:04:38] [PASSED] DIN
[06:04:38] [PASSED] DP
[06:04:38] [PASSED] TV
[06:04:38] [PASSED] eDP
[06:04:38] [PASSED] Virtual
[06:04:38] [PASSED] DSI
[06:04:38] [PASSED] DPI
[06:04:38] [PASSED] Writeback
[06:04:38] [PASSED] SPI
[06:04:38] [PASSED] USB
[06:04:38] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ====
[06:04:38] ============ [PASSED] drmm_connector_hdmi_init =============
[06:04:38] ============= drmm_connector_init (3 subtests) =============
[06:04:38] [PASSED] drm_test_drmm_connector_init
[06:04:38] [PASSED] drm_test_drmm_connector_init_null_ddc
[06:04:38] ========= drm_test_drmm_connector_init_type_valid =========
[06:04:38] [PASSED] Unknown
[06:04:38] [PASSED] VGA
[06:04:38] [PASSED] DVI-I
[06:04:38] [PASSED] DVI-D
[06:04:38] [PASSED] DVI-A
[06:04:38] [PASSED] Composite
[06:04:38] [PASSED] SVIDEO
[06:04:38] [PASSED] LVDS
[06:04:38] [PASSED] Component
[06:04:38] [PASSED] DIN
[06:04:38] [PASSED] DP
[06:04:38] [PASSED] HDMI-A
[06:04:38] [PASSED] HDMI-B
[06:04:38] [PASSED] TV
[06:04:38] [PASSED] eDP
[06:04:38] [PASSED] Virtual
[06:04:38] [PASSED] DSI
[06:04:38] [PASSED] DPI
[06:04:38] [PASSED] Writeback
[06:04:38] [PASSED] SPI
[06:04:38] [PASSED] USB
[06:04:38] ===== [PASSED] drm_test_drmm_connector_init_type_valid =====
[06:04:38] =============== [PASSED] drmm_connector_init ===============
[06:04:38] ========= drm_connector_dynamic_init (6 subtests) ==========
[06:04:38] [PASSED] drm_test_drm_connector_dynamic_init
[06:04:38] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc
[06:04:38] [PASSED] drm_test_drm_connector_dynamic_init_not_added
[06:04:38] [PASSED] drm_test_drm_connector_dynamic_init_properties
[06:04:38] ===== drm_test_drm_connector_dynamic_init_type_valid ======
[06:04:38] [PASSED] Unknown
[06:04:38] [PASSED] VGA
[06:04:38] [PASSED] DVI-I
[06:04:38] [PASSED] DVI-D
[06:04:38] [PASSED] DVI-A
[06:04:38] [PASSED] Composite
[06:04:38] [PASSED] SVIDEO
[06:04:38] [PASSED] LVDS
[06:04:38] [PASSED] Component
[06:04:38] [PASSED] DIN
[06:04:38] [PASSED] DP
[06:04:38] [PASSED] HDMI-A
[06:04:38] [PASSED] HDMI-B
[06:04:38] [PASSED] TV
[06:04:38] [PASSED] eDP
[06:04:38] [PASSED] Virtual
[06:04:38] [PASSED] DSI
[06:04:38] [PASSED] DPI
[06:04:38] [PASSED] Writeback
[06:04:38] [PASSED] SPI
[06:04:38] [PASSED] USB
[06:04:38] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid ==
[06:04:38] ======== drm_test_drm_connector_dynamic_init_name =========
[06:04:38] [PASSED] Unknown
[06:04:38] [PASSED] VGA
[06:04:38] [PASSED] DVI-I
[06:04:38] [PASSED] DVI-D
[06:04:38] [PASSED] DVI-A
[06:04:38] [PASSED] Composite
[06:04:38] [PASSED] SVIDEO
[06:04:38] [PASSED] LVDS
[06:04:38] [PASSED] Component
[06:04:38] [PASSED] DIN
[06:04:38] [PASSED] DP
[06:04:38] [PASSED] HDMI-A
[06:04:38] [PASSED] HDMI-B
[06:04:38] [PASSED] TV
[06:04:38] [PASSED] eDP
[06:04:38] [PASSED] Virtual
[06:04:38] [PASSED] DSI
[06:04:38] [PASSED] DPI
[06:04:38] [PASSED] Writeback
[06:04:38] [PASSED] SPI
[06:04:38] [PASSED] USB
[06:04:38] ==== [PASSED] drm_test_drm_connector_dynamic_init_name =====
[06:04:38] =========== [PASSED] drm_connector_dynamic_init ============
[06:04:38] ==== drm_connector_dynamic_register_early (4 subtests) =====
[06:04:38] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list
[06:04:38] [PASSED] drm_test_drm_connector_dynamic_register_early_defer
[06:04:38] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init
[06:04:38] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object
[06:04:38] ====== [PASSED] drm_connector_dynamic_register_early =======
[06:04:38] ======= drm_connector_dynamic_register (7 subtests) ========
[06:04:38] [PASSED] drm_test_drm_connector_dynamic_register_on_list
[06:04:38] [PASSED] drm_test_drm_connector_dynamic_register_no_defer
[06:04:38] [PASSED] drm_test_drm_connector_dynamic_register_no_init
[06:04:38] [PASSED] drm_test_drm_connector_dynamic_register_mode_object
[06:04:38] [PASSED] drm_test_drm_connector_dynamic_register_sysfs
[06:04:38] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name
[06:04:38] [PASSED] drm_test_drm_connector_dynamic_register_debugfs
[06:04:38] ========= [PASSED] drm_connector_dynamic_register ==========
[06:04:38] = drm_connector_attach_broadcast_rgb_property (2 subtests) =
[06:04:38] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property
[06:04:38] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector
[06:04:38] === [PASSED] drm_connector_attach_broadcast_rgb_property ===
[06:04:38] ========== drm_get_tv_mode_from_name (2 subtests) ==========
[06:04:38] ========== drm_test_get_tv_mode_from_name_valid ===========
[06:04:38] [PASSED] NTSC
[06:04:38] [PASSED] NTSC-443
[06:04:38] [PASSED] NTSC-J
[06:04:38] [PASSED] PAL
[06:04:38] [PASSED] PAL-M
[06:04:38] [PASSED] PAL-N
[06:04:38] [PASSED] SECAM
[06:04:38] [PASSED] Mono
[06:04:38] ====== [PASSED] drm_test_get_tv_mode_from_name_valid =======
[06:04:38] [PASSED] drm_test_get_tv_mode_from_name_truncated
[06:04:38] ============ [PASSED] drm_get_tv_mode_from_name ============
[06:04:38] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) =
[06:04:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb
[06:04:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc
[06:04:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1
[06:04:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc
[06:04:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1
[06:04:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double
[06:04:38] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid =
[06:04:38] [PASSED] VIC 96
[06:04:38] [PASSED] VIC 97
[06:04:38] [PASSED] VIC 101
[06:04:38] [PASSED] VIC 102
[06:04:38] [PASSED] VIC 106
[06:04:38] [PASSED] VIC 107
[06:04:38] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid ===
[06:04:38] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc
[06:04:38] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc
[06:04:38] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc
[06:04:38] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc
[06:04:38] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc
[06:04:38] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ====
[06:04:38] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) ==
[06:04:38] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ====
[06:04:38] [PASSED] Automatic
[06:04:38] [PASSED] Full
[06:04:38] [PASSED] Limited 16:235
[06:04:38] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name ===
[06:04:38] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid
[06:04:38] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ====
[06:04:38] == drm_hdmi_connector_get_output_format_name (2 subtests) ==
[06:04:38] === drm_test_drm_hdmi_connector_get_output_format_name ====
[06:04:38] [PASSED] RGB
[06:04:38] [PASSED] YUV 4:2:0
[06:04:38] [PASSED] YUV 4:2:2
[06:04:38] [PASSED] YUV 4:4:4
[06:04:38] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name ===
[06:04:38] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid
[06:04:38] ==== [PASSED] drm_hdmi_connector_get_output_format_name ====
[06:04:38] ============= drm_damage_helper (21 subtests) ==============
[06:04:38] [PASSED] drm_test_damage_iter_no_damage
[06:04:38] [PASSED] drm_test_damage_iter_no_damage_fractional_src
[06:04:38] [PASSED] drm_test_damage_iter_no_damage_src_moved
[06:04:38] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved
[06:04:38] [PASSED] drm_test_damage_iter_no_damage_not_visible
[06:04:38] [PASSED] drm_test_damage_iter_no_damage_no_crtc
[06:04:38] [PASSED] drm_test_damage_iter_no_damage_no_fb
[06:04:38] [PASSED] drm_test_damage_iter_simple_damage
[06:04:38] [PASSED] drm_test_damage_iter_single_damage
[06:04:38] [PASSED] drm_test_damage_iter_single_damage_intersect_src
[06:04:38] [PASSED] drm_test_damage_iter_single_damage_outside_src
[06:04:38] [PASSED] drm_test_damage_iter_single_damage_fractional_src
[06:04:38] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src
[06:04:38] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src
[06:04:38] [PASSED] drm_test_damage_iter_single_damage_src_moved
[06:04:38] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved
[06:04:38] [PASSED] drm_test_damage_iter_damage
[06:04:38] [PASSED] drm_test_damage_iter_damage_one_intersect
[06:04:38] [PASSED] drm_test_damage_iter_damage_one_outside
[06:04:38] [PASSED] drm_test_damage_iter_damage_src_moved
[06:04:38] [PASSED] drm_test_damage_iter_damage_not_visible
[06:04:38] ================ [PASSED] drm_damage_helper ================
[06:04:38] ============== drm_dp_mst_helper (3 subtests) ==============
[06:04:38] ============== drm_test_dp_mst_calc_pbn_mode ==============
[06:04:38] [PASSED] Clock 154000 BPP 30 DSC disabled
[06:04:38] [PASSED] Clock 234000 BPP 30 DSC disabled
[06:04:38] [PASSED] Clock 297000 BPP 24 DSC disabled
[06:04:38] [PASSED] Clock 332880 BPP 24 DSC enabled
[06:04:38] [PASSED] Clock 324540 BPP 24 DSC enabled
[06:04:38] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ==========
[06:04:38] ============== drm_test_dp_mst_calc_pbn_div ===============
[06:04:38] [PASSED] Link rate 2000000 lane count 4
[06:04:38] [PASSED] Link rate 2000000 lane count 2
[06:04:38] [PASSED] Link rate 2000000 lane count 1
[06:04:38] [PASSED] Link rate 1350000 lane count 4
[06:04:38] [PASSED] Link rate 1350000 lane count 2
[06:04:38] [PASSED] Link rate 1350000 lane count 1
[06:04:38] [PASSED] Link rate 1000000 lane count 4
[06:04:38] [PASSED] Link rate 1000000 lane count 2
[06:04:38] [PASSED] Link rate 1000000 lane count 1
[06:04:38] [PASSED] Link rate 810000 lane count 4
[06:04:38] [PASSED] Link rate 810000 lane count 2
[06:04:38] [PASSED] Link rate 810000 lane count 1
[06:04:38] [PASSED] Link rate 540000 lane count 4
[06:04:38] [PASSED] Link rate 540000 lane count 2
[06:04:38] [PASSED] Link rate 540000 lane count 1
[06:04:38] [PASSED] Link rate 270000 lane count 4
[06:04:38] [PASSED] Link rate 270000 lane count 2
[06:04:38] [PASSED] Link rate 270000 lane count 1
[06:04:38] [PASSED] Link rate 162000 lane count 4
[06:04:38] [PASSED] Link rate 162000 lane count 2
[06:04:38] [PASSED] Link rate 162000 lane count 1
[06:04:38] ========== [PASSED] drm_test_dp_mst_calc_pbn_div ===========
[06:04:38] ========= drm_test_dp_mst_sideband_msg_req_decode =========
[06:04:38] [PASSED] DP_ENUM_PATH_RESOURCES with port number
[06:04:38] [PASSED] DP_POWER_UP_PHY with port number
[06:04:38] [PASSED] DP_POWER_DOWN_PHY with port number
[06:04:38] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks
[06:04:38] [PASSED] DP_ALLOCATE_PAYLOAD with port number
[06:04:38] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI
[06:04:38] [PASSED] DP_ALLOCATE_PAYLOAD with PBN
[06:04:38] [PASSED] DP_QUERY_PAYLOAD with port number
[06:04:38] [PASSED] DP_QUERY_PAYLOAD with VCPI
[06:04:38] [PASSED] DP_REMOTE_DPCD_READ with port number
[06:04:38] [PASSED] DP_REMOTE_DPCD_READ with DPCD address
[06:04:38] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes
[06:04:38] [PASSED] DP_REMOTE_DPCD_WRITE with port number
[06:04:38] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address
[06:04:38] [PASSED] DP_REMOTE_DPCD_WRITE with data array
[06:04:38] [PASSED] DP_REMOTE_I2C_READ with port number
[06:04:38] [PASSED] DP_REMOTE_I2C_READ with I2C device ID
[06:04:38] [PASSED] DP_REMOTE_I2C_READ with transactions array
[06:04:38] [PASSED] DP_REMOTE_I2C_WRITE with port number
[06:04:38] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID
[06:04:38] [PASSED] DP_REMOTE_I2C_WRITE with data array
[06:04:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID
[06:04:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID
[06:04:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event
[06:04:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event
[06:04:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior
[06:04:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior
[06:04:38] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode =====
[06:04:38] ================ [PASSED] drm_dp_mst_helper ================
[06:04:38] ================== drm_exec (7 subtests) ===================
[06:04:38] [PASSED] sanitycheck
[06:04:38] [PASSED] test_lock
[06:04:38] [PASSED] test_lock_unlock
[06:04:38] [PASSED] test_duplicates
[06:04:38] [PASSED] test_prepare
[06:04:38] [PASSED] test_prepare_array
[06:04:38] [PASSED] test_multiple_loops
[06:04:38] ==================== [PASSED] drm_exec =====================
[06:04:38] =========== drm_format_helper_test (17 subtests) ===========
[06:04:38] ============== drm_test_fb_xrgb8888_to_gray8 ==============
[06:04:38] [PASSED] single_pixel_source_buffer
[06:04:38] [PASSED] single_pixel_clip_rectangle
[06:04:38] [PASSED] well_known_colors
[06:04:38] [PASSED] destination_pitch
[06:04:38] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ==========
[06:04:38] ============= drm_test_fb_xrgb8888_to_rgb332 ==============
[06:04:38] [PASSED] single_pixel_source_buffer
[06:04:38] [PASSED] single_pixel_clip_rectangle
[06:04:38] [PASSED] well_known_colors
[06:04:38] [PASSED] destination_pitch
[06:04:38] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ==========
[06:04:38] ============= drm_test_fb_xrgb8888_to_rgb565 ==============
[06:04:38] [PASSED] single_pixel_source_buffer
[06:04:38] [PASSED] single_pixel_clip_rectangle
[06:04:38] [PASSED] well_known_colors
[06:04:38] [PASSED] destination_pitch
[06:04:38] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ==========
[06:04:38] ============ drm_test_fb_xrgb8888_to_xrgb1555 =============
[06:04:38] [PASSED] single_pixel_source_buffer
[06:04:38] [PASSED] single_pixel_clip_rectangle
[06:04:38] [PASSED] well_known_colors
[06:04:38] [PASSED] destination_pitch
[06:04:38] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 =========
[06:04:38] ============ drm_test_fb_xrgb8888_to_argb1555 =============
[06:04:38] [PASSED] single_pixel_source_buffer
[06:04:38] [PASSED] single_pixel_clip_rectangle
[06:04:38] [PASSED] well_known_colors
[06:04:38] [PASSED] destination_pitch
[06:04:38] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 =========
[06:04:38] ============ drm_test_fb_xrgb8888_to_rgba5551 =============
[06:04:38] [PASSED] single_pixel_source_buffer
[06:04:38] [PASSED] single_pixel_clip_rectangle
[06:04:38] [PASSED] well_known_colors
[06:04:38] [PASSED] destination_pitch
[06:04:38] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 =========
[06:04:38] ============= drm_test_fb_xrgb8888_to_rgb888 ==============
[06:04:38] [PASSED] single_pixel_source_buffer
[06:04:38] [PASSED] single_pixel_clip_rectangle
[06:04:38] [PASSED] well_known_colors
[06:04:38] [PASSED] destination_pitch
[06:04:38] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ==========
[06:04:38] ============= drm_test_fb_xrgb8888_to_bgr888 ==============
[06:04:38] [PASSED] single_pixel_source_buffer
[06:04:38] [PASSED] single_pixel_clip_rectangle
[06:04:38] [PASSED] well_known_colors
[06:04:38] [PASSED] destination_pitch
[06:04:38] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ==========
[06:04:38] ============ drm_test_fb_xrgb8888_to_argb8888 =============
[06:04:38] [PASSED] single_pixel_source_buffer
[06:04:38] [PASSED] single_pixel_clip_rectangle
[06:04:38] [PASSED] well_known_colors
[06:04:38] [PASSED] destination_pitch
[06:04:38] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 =========
[06:04:38] =========== drm_test_fb_xrgb8888_to_xrgb2101010 ===========
[06:04:38] [PASSED] single_pixel_source_buffer
[06:04:38] [PASSED] single_pixel_clip_rectangle
[06:04:38] [PASSED] well_known_colors
[06:04:38] [PASSED] destination_pitch
[06:04:38] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 =======
[06:04:38] =========== drm_test_fb_xrgb8888_to_argb2101010 ===========
[06:04:38] [PASSED] single_pixel_source_buffer
[06:04:38] [PASSED] single_pixel_clip_rectangle
[06:04:38] [PASSED] well_known_colors
[06:04:38] [PASSED] destination_pitch
[06:04:38] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 =======
[06:04:38] ============== drm_test_fb_xrgb8888_to_mono ===============
[06:04:38] [PASSED] single_pixel_source_buffer
[06:04:38] [PASSED] single_pixel_clip_rectangle
[06:04:38] [PASSED] well_known_colors
[06:04:38] [PASSED] destination_pitch
[06:04:38] ========== [PASSED] drm_test_fb_xrgb8888_to_mono ===========
[06:04:38] ==================== drm_test_fb_swab =====================
[06:04:38] [PASSED] single_pixel_source_buffer
[06:04:38] [PASSED] single_pixel_clip_rectangle
[06:04:38] [PASSED] well_known_colors
[06:04:38] [PASSED] destination_pitch
[06:04:38] ================ [PASSED] drm_test_fb_swab =================
[06:04:38] ============ drm_test_fb_xrgb8888_to_xbgr8888 =============
[06:04:38] [PASSED] single_pixel_source_buffer
[06:04:38] [PASSED] single_pixel_clip_rectangle
[06:04:38] [PASSED] well_known_colors
[06:04:38] [PASSED] destination_pitch
[06:04:38] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 =========
[06:04:38] ============ drm_test_fb_xrgb8888_to_abgr8888 =============
[06:04:38] [PASSED] single_pixel_source_buffer
[06:04:38] [PASSED] single_pixel_clip_rectangle
[06:04:38] [PASSED] well_known_colors
[06:04:38] [PASSED] destination_pitch
[06:04:38] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 =========
[06:04:38] ================= drm_test_fb_clip_offset =================
[06:04:38] [PASSED] pass through
[06:04:38] [PASSED] horizontal offset
[06:04:38] [PASSED] vertical offset
[06:04:38] [PASSED] horizontal and vertical offset
[06:04:38] [PASSED] horizontal offset (custom pitch)
[06:04:38] [PASSED] vertical offset (custom pitch)
[06:04:38] [PASSED] horizontal and vertical offset (custom pitch)
[06:04:38] ============= [PASSED] drm_test_fb_clip_offset =============
[06:04:38] =================== drm_test_fb_memcpy ====================
[06:04:38] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258)
[06:04:38] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258)
[06:04:38] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559)
[06:04:38] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258)
[06:04:38] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258)
[06:04:38] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559)
[06:04:38] [PASSED] well_known_colors: XB24 little-endian (0x34324258)
[06:04:38] [PASSED] well_known_colors: XRA8 little-endian (0x38415258)
[06:04:38] [PASSED] well_known_colors: YU24 little-endian (0x34325559)
[06:04:38] [PASSED] destination_pitch: XB24 little-endian (0x34324258)
[06:04:38] [PASSED] destination_pitch: XRA8 little-endian (0x38415258)
[06:04:38] [PASSED] destination_pitch: YU24 little-endian (0x34325559)
[06:04:38] =============== [PASSED] drm_test_fb_memcpy ================
[06:04:38] ============= [PASSED] drm_format_helper_test ==============
[06:04:38] ================= drm_format (18 subtests) =================
[06:04:38] [PASSED] drm_test_format_block_width_invalid
[06:04:38] [PASSED] drm_test_format_block_width_one_plane
[06:04:38] [PASSED] drm_test_format_block_width_two_plane
[06:04:38] [PASSED] drm_test_format_block_width_three_plane
[06:04:38] [PASSED] drm_test_format_block_width_tiled
[06:04:38] [PASSED] drm_test_format_block_height_invalid
[06:04:38] [PASSED] drm_test_format_block_height_one_plane
[06:04:38] [PASSED] drm_test_format_block_height_two_plane
[06:04:38] [PASSED] drm_test_format_block_height_three_plane
[06:04:38] [PASSED] drm_test_format_block_height_tiled
[06:04:38] [PASSED] drm_test_format_min_pitch_invalid
[06:04:38] [PASSED] drm_test_format_min_pitch_one_plane_8bpp
[06:04:38] [PASSED] drm_test_format_min_pitch_one_plane_16bpp
[06:04:38] [PASSED] drm_test_format_min_pitch_one_plane_24bpp
[06:04:38] [PASSED] drm_test_format_min_pitch_one_plane_32bpp
[06:04:38] [PASSED] drm_test_format_min_pitch_two_plane
[06:04:38] [PASSED] drm_test_format_min_pitch_three_plane_8bpp
[06:04:38] [PASSED] drm_test_format_min_pitch_tiled
[06:04:38] =================== [PASSED] drm_format ====================
[06:04:38] ============== drm_framebuffer (10 subtests) ===============
[06:04:38] ========== drm_test_framebuffer_check_src_coords ==========
[06:04:38] [PASSED] Success: source fits into fb
[06:04:38] [PASSED] Fail: overflowing fb with x-axis coordinate
[06:04:38] [PASSED] Fail: overflowing fb with y-axis coordinate
[06:04:38] [PASSED] Fail: overflowing fb with source width
[06:04:38] [PASSED] Fail: overflowing fb with source height
[06:04:38] ====== [PASSED] drm_test_framebuffer_check_src_coords ======
[06:04:38] [PASSED] drm_test_framebuffer_cleanup
[06:04:38] =============== drm_test_framebuffer_create ===============
[06:04:38] [PASSED] ABGR8888 normal sizes
[06:04:38] [PASSED] ABGR8888 max sizes
[06:04:38] [PASSED] ABGR8888 pitch greater than min required
[06:04:38] [PASSED] ABGR8888 pitch less than min required
[06:04:38] [PASSED] ABGR8888 Invalid width
[06:04:38] [PASSED] ABGR8888 Invalid buffer handle
[06:04:38] [PASSED] No pixel format
[06:04:38] [PASSED] ABGR8888 Width 0
[06:04:38] [PASSED] ABGR8888 Height 0
[06:04:38] [PASSED] ABGR8888 Out of bound height * pitch combination
[06:04:38] [PASSED] ABGR8888 Large buffer offset
[06:04:38] [PASSED] ABGR8888 Buffer offset for inexistent plane
[06:04:38] [PASSED] ABGR8888 Invalid flag
[06:04:38] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
[06:04:38] [PASSED] ABGR8888 Valid buffer modifier
[06:04:38] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
[06:04:38] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
[06:04:38] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
[06:04:38] [PASSED] NV12 Normal sizes
[06:04:38] [PASSED] NV12 Max sizes
[06:04:38] [PASSED] NV12 Invalid pitch
[06:04:38] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
[06:04:38] [PASSED] NV12 different modifier per-plane
[06:04:38] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
[06:04:38] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
[06:04:38] [PASSED] NV12 Modifier for inexistent plane
[06:04:38] [PASSED] NV12 Handle for inexistent plane
[06:04:38] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS
[06:04:38] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier
[06:04:38] [PASSED] YVU420 Normal sizes
[06:04:38] [PASSED] YVU420 Max sizes
[06:04:38] [PASSED] YVU420 Invalid pitch
[06:04:38] [PASSED] YVU420 Different pitches
[06:04:38] [PASSED] YVU420 Different buffer offsets/pitches
[06:04:38] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS
[06:04:38] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS
[06:04:38] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS
[06:04:38] [PASSED] YVU420 Valid modifier
[06:04:38] [PASSED] YVU420 Different modifiers per plane
[06:04:38] [PASSED] YVU420 Modifier for inexistent plane
[06:04:38] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR)
[06:04:38] [PASSED] X0L2 Normal sizes
[06:04:38] [PASSED] X0L2 Max sizes
[06:04:38] [PASSED] X0L2 Invalid pitch
[06:04:38] [PASSED] X0L2 Pitch greater than minimum required
[06:04:38] [PASSED] X0L2 Handle for inexistent plane
[06:04:38] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set
[06:04:38] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
[06:04:38] [PASSED] X0L2 Valid modifier
[06:04:38] [PASSED] X0L2 Modifier for inexistent plane
[06:04:38] =========== [PASSED] drm_test_framebuffer_create ===========
[06:04:38] [PASSED] drm_test_framebuffer_free
[06:04:38] [PASSED] drm_test_framebuffer_init
[06:04:38] [PASSED] drm_test_framebuffer_init_bad_format
[06:04:38] [PASSED] drm_test_framebuffer_init_dev_mismatch
[06:04:38] [PASSED] drm_test_framebuffer_lookup
[06:04:38] [PASSED] drm_test_framebuffer_lookup_inexistent
[06:04:38] [PASSED] drm_test_framebuffer_modifiers_not_supported
[06:04:38] ================= [PASSED] drm_framebuffer =================
[06:04:38] ================ drm_gem_shmem (8 subtests) ================
[06:04:38] [PASSED] drm_gem_shmem_test_obj_create
[06:04:38] [PASSED] drm_gem_shmem_test_obj_create_private
[06:04:38] [PASSED] drm_gem_shmem_test_pin_pages
[06:04:38] [PASSED] drm_gem_shmem_test_vmap
[06:04:38] [PASSED] drm_gem_shmem_test_get_sg_table
[06:04:38] [PASSED] drm_gem_shmem_test_get_pages_sgt
[06:04:38] [PASSED] drm_gem_shmem_test_madvise
[06:04:38] [PASSED] drm_gem_shmem_test_purge
[06:04:38] ================== [PASSED] drm_gem_shmem ==================
[06:04:38] === drm_atomic_helper_connector_hdmi_check (29 subtests) ===
[06:04:38] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode
[06:04:38] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1
[06:04:38] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode
[06:04:38] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1
[06:04:38] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode
[06:04:38] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1
[06:04:38] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 =======
[06:04:38] [PASSED] Automatic
[06:04:38] [PASSED] Full
[06:04:38] [PASSED] Limited 16:235
[06:04:38] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 ===
[06:04:38] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed
[06:04:38] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed
[06:04:38] [PASSED] drm_test_check_disable_connector
[06:04:38] [PASSED] drm_test_check_hdmi_funcs_reject_rate
[06:04:38] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb
[06:04:38] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420
[06:04:38] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422
[06:04:38] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420
[06:04:38] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420
[06:04:38] [PASSED] drm_test_check_output_bpc_crtc_mode_changed
[06:04:38] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed
[06:04:38] [PASSED] drm_test_check_output_bpc_dvi
[06:04:38] [PASSED] drm_test_check_output_bpc_format_vic_1
[06:04:38] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only
[06:04:38] [PASSED] drm_test_check_output_bpc_format_display_rgb_only
[06:04:38] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only
[06:04:38] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only
[06:04:38] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc
[06:04:38] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc
[06:04:38] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc
[06:04:38] ============ drm_test_check_hdmi_color_format =============
[06:04:38] [PASSED] AUTO -> RGB
[06:04:38] [PASSED] YCBCR422 -> YUV422
[06:04:38] [PASSED] YCBCR420 -> YUV420
[06:04:38] [PASSED] YCBCR444 -> YUV444
[06:04:38] [PASSED] RGB -> RGB
[06:04:38] ======== [PASSED] drm_test_check_hdmi_color_format =========
[06:04:38] ======== drm_test_check_hdmi_color_format_420_only ========
[06:04:38] [PASSED] RGB should fail
[06:04:38] [PASSED] YUV444 should fail
[06:04:38] [PASSED] YUV422 should fail
[06:04:38] [PASSED] YUV420 should work
[06:04:38] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ====
[06:04:38] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ======
[06:04:38] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ====
[06:04:38] [PASSED] drm_test_check_broadcast_rgb_value
[06:04:38] [PASSED] drm_test_check_bpc_8_value
[06:04:38] [PASSED] drm_test_check_bpc_10_value
[06:04:38] [PASSED] drm_test_check_bpc_12_value
[06:04:38] [PASSED] drm_test_check_format_value
[06:04:38] [PASSED] drm_test_check_tmds_char_value
[06:04:38] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ======
[06:04:38] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) =
[06:04:38] [PASSED] drm_test_check_mode_valid
[06:04:38] [PASSED] drm_test_check_mode_valid_reject
[06:04:38] [PASSED] drm_test_check_mode_valid_reject_rate
[06:04:38] [PASSED] drm_test_check_mode_valid_reject_max_clock
[06:04:38] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock
[06:04:38] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector
[06:04:38] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb
[06:04:38] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid ===
[06:04:38] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) =
[06:04:38] [PASSED] drm_test_check_infoframes
[06:04:38] [PASSED] drm_test_check_reject_avi_infoframe
[06:04:38] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8
[06:04:38] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10
[06:04:38] [PASSED] drm_test_check_reject_audio_infoframe
[06:04:38] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes ===
[06:04:38] ================= drm_managed (2 subtests) =================
[06:04:38] [PASSED] drm_test_managed_release_action
[06:04:38] [PASSED] drm_test_managed_run_action
[06:04:38] =================== [PASSED] drm_managed ===================
[06:04:38] =================== drm_mm (6 subtests) ====================
[06:04:38] [PASSED] drm_test_mm_init
[06:04:38] [PASSED] drm_test_mm_debug
[06:04:38] [PASSED] drm_test_mm_align32
[06:04:38] [PASSED] drm_test_mm_align64
[06:04:38] [PASSED] drm_test_mm_lowest
[06:04:38] [PASSED] drm_test_mm_highest
[06:04:38] ===================== [PASSED] drm_mm ======================
[06:04:38] ============= drm_modes_analog_tv (5 subtests) =============
[06:04:38] [PASSED] drm_test_modes_analog_tv_mono_576i
[06:04:38] [PASSED] drm_test_modes_analog_tv_ntsc_480i
[06:04:38] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined
[06:04:38] [PASSED] drm_test_modes_analog_tv_pal_576i
[06:04:38] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined
[06:04:38] =============== [PASSED] drm_modes_analog_tv ===============
[06:04:38] ============== drm_panic_helper (3 subtests) ===============
[06:04:38] ============= drm_test_panic_screen_user_map ==============
[06:04:38] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752)
[06:04:38] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752)
[06:04:38] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752)
[06:04:38] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752)
[06:04:38] ========= [PASSED] drm_test_panic_screen_user_map ==========
[06:04:38] ============= drm_test_panic_screen_user_page =============
[06:04:38] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752)
[06:04:38] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752)
[06:04:38] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752)
[06:04:38] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752)
[06:04:38] ========= [PASSED] drm_test_panic_screen_user_page =========
[06:04:38] ========== drm_test_panic_screen_user_set_pixel ===========
[06:04:38] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752)
[06:04:38] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752)
[06:04:38] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[06:04:38] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752)
[06:04:38] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752)
[06:04:38] ====== [PASSED] drm_test_panic_screen_user_set_pixel =======
[06:04:38] ================ [PASSED] drm_panic_helper =================
[06:04:38] ============== drm_plane_helper (2 subtests) ===============
[06:04:38] =============== drm_test_check_plane_state ================
[06:04:38] [PASSED] clipping_simple
[06:04:38] [PASSED] clipping_rotate_reflect
[06:04:38] [PASSED] positioning_simple
[06:04:38] [PASSED] upscaling
[06:04:38] [PASSED] downscaling
[06:04:38] [PASSED] rounding1
[06:04:38] [PASSED] rounding2
[06:04:38] [PASSED] rounding3
[06:04:38] [PASSED] rounding4
[06:04:38] =========== [PASSED] drm_test_check_plane_state ============
[06:04:38] =========== drm_test_check_invalid_plane_state ============
[06:04:38] [PASSED] positioning_invalid
[06:04:38] [PASSED] upscaling_invalid
[06:04:38] [PASSED] downscaling_invalid
[06:04:38] ======= [PASSED] drm_test_check_invalid_plane_state ========
[06:04:38] ================ [PASSED] drm_plane_helper =================
[06:04:38] ====== drm_connector_helper_tv_get_modes (1 subtest) =======
[06:04:38] ====== drm_test_connector_helper_tv_get_modes_check =======
[06:04:38] [PASSED] None
[06:04:38] [PASSED] PAL
[06:04:38] [PASSED] NTSC
[06:04:38] [PASSED] Both, NTSC Default
[06:04:38] [PASSED] Both, PAL Default
[06:04:38] [PASSED] Both, NTSC Default, with PAL on command-line
[06:04:38] [PASSED] Both, PAL Default, with NTSC on command-line
[06:04:38] == [PASSED] drm_test_connector_helper_tv_get_modes_check ===
[06:04:38] ======== [PASSED] drm_connector_helper_tv_get_modes ========
[06:04:38] ================== drm_rect (9 subtests) ===================
[06:04:38] [PASSED] drm_test_rect_clip_scaled_div_by_zero
[06:04:38] [PASSED] drm_test_rect_clip_scaled_not_clipped
[06:04:38] [PASSED] drm_test_rect_clip_scaled_clipped
[06:04:38] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned
[06:04:38] ================= drm_test_rect_intersect =================
[06:04:38] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0
[06:04:38] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1
[06:04:38] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0
[06:04:38] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1
[06:04:38] [PASSED] right x left: 2x1+0+0 x 3x1+1+0
[06:04:38] [PASSED] left x right: 3x1+1+0 x 2x1+0+0
[06:04:38] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1
[06:04:38] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0
[06:04:38] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1
[06:04:38] [PASSED] touching side: 1x1+0+0 x 1x1+1+0
[06:04:38] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0
[06:04:38] [PASSED] inside another: 2x2+0+0 x 1x1+1+1
[06:04:38] [PASSED] far away: 1x1+0+0 x 1x1+3+6
[06:04:38] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10
[06:04:38] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10
[06:04:38] ============= [PASSED] drm_test_rect_intersect =============
[06:04:38] ================ drm_test_rect_calc_hscale ================
[06:04:38] [PASSED] normal use
[06:04:38] [PASSED] out of max range
[06:04:38] [PASSED] out of min range
[06:04:38] [PASSED] zero dst
[06:04:38] [PASSED] negative src
[06:04:38] [PASSED] negative dst
[06:04:38] ============ [PASSED] drm_test_rect_calc_hscale ============
[06:04:38] ================ drm_test_rect_calc_vscale ================
[06:04:38] [PASSED] normal use
[06:04:38] [PASSED] out of max range
[06:04:38] [PASSED] out of min range
[06:04:38] [PASSED] zero dst
[06:04:38] [PASSED] negative src
[06:04:38] [PASSED] negative dst
[06:04:38] ============ [PASSED] drm_test_rect_calc_vscale ============
[06:04:38] ================== drm_test_rect_rotate ===================
[06:04:38] [PASSED] reflect-x
[06:04:38] [PASSED] reflect-y
[06:04:38] [PASSED] rotate-0
[06:04:38] [PASSED] rotate-90
[06:04:38] [PASSED] rotate-180
[06:04:38] [PASSED] rotate-270
[06:04:38] ============== [PASSED] drm_test_rect_rotate ===============
[06:04:38] ================ drm_test_rect_rotate_inv =================
[06:04:38] [PASSED] reflect-x
[06:04:38] [PASSED] reflect-y
[06:04:38] [PASSED] rotate-0
[06:04:38] [PASSED] rotate-90
[06:04:38] [PASSED] rotate-180
[06:04:38] [PASSED] rotate-270
[06:04:38] ============ [PASSED] drm_test_rect_rotate_inv =============
[06:04:38] ==================== [PASSED] drm_rect =====================
[06:04:38] ============ drm_sysfb_modeset_test (1 subtest) ============
[06:04:38] ============ drm_test_sysfb_build_fourcc_list =============
[06:04:38] [PASSED] no native formats
[06:04:38] [PASSED] XRGB8888 as native format
[06:04:38] [PASSED] remove duplicates
[06:04:38] [PASSED] convert alpha formats
[06:04:38] [PASSED] random formats
[06:04:38] ======== [PASSED] drm_test_sysfb_build_fourcc_list =========
[06:04:38] ============= [PASSED] drm_sysfb_modeset_test ==============
[06:04:38] ================== drm_fixp (2 subtests) ===================
[06:04:38] [PASSED] drm_test_int2fixp
[06:04:38] [PASSED] drm_test_sm2fixp
[06:04:38] ==================== [PASSED] drm_fixp =====================
[06:04:38] ============================================================
[06:04:38] Testing complete. Ran 667 tests: passed: 667
[06:04:38] Elapsed time: 28.632s total, 2.538s configuring, 25.629s building, 0.453s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig
[06:04:38] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[06:04:41] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[06:04:51] Starting KUnit Kernel (1/1)...
[06:04:51] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[06:04:51] ================= ttm_device (5 subtests) ==================
[06:04:51] [PASSED] ttm_device_init_basic
[06:04:51] [PASSED] ttm_device_init_multiple
[06:04:51] [PASSED] ttm_device_fini_basic
[06:04:51] [PASSED] ttm_device_init_no_vma_man
[06:04:51] ================== ttm_device_init_pools ==================
[06:04:51] [PASSED] No DMA allocations, no DMA32 required
[06:04:51] [PASSED] DMA allocations, DMA32 required
[06:04:51] [PASSED] No DMA allocations, DMA32 required
[06:04:51] [PASSED] DMA allocations, no DMA32 required
[06:04:51] ============== [PASSED] ttm_device_init_pools ==============
[06:04:51] =================== [PASSED] ttm_device ====================
[06:04:51] ================== ttm_pool (8 subtests) ===================
[06:04:51] ================== ttm_pool_alloc_basic ===================
[06:04:51] [PASSED] One page
[06:04:51] [PASSED] More than one page
[06:04:51] [PASSED] Above the allocation limit
[06:04:51] [PASSED] One page, with coherent DMA mappings enabled
[06:04:51] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[06:04:51] ============== [PASSED] ttm_pool_alloc_basic ===============
[06:04:51] ============== ttm_pool_alloc_basic_dma_addr ==============
[06:04:51] [PASSED] One page
[06:04:51] [PASSED] More than one page
[06:04:51] [PASSED] Above the allocation limit
[06:04:51] [PASSED] One page, with coherent DMA mappings enabled
[06:04:51] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[06:04:51] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ==========
[06:04:51] [PASSED] ttm_pool_alloc_order_caching_match
[06:04:51] [PASSED] ttm_pool_alloc_caching_mismatch
[06:04:51] [PASSED] ttm_pool_alloc_order_mismatch
[06:04:51] [PASSED] ttm_pool_free_dma_alloc
[06:04:51] [PASSED] ttm_pool_free_no_dma_alloc
[06:04:51] [PASSED] ttm_pool_fini_basic
[06:04:51] ==================== [PASSED] ttm_pool =====================
[06:04:51] ================ ttm_resource (8 subtests) =================
[06:04:51] ================= ttm_resource_init_basic =================
[06:04:51] [PASSED] Init resource in TTM_PL_SYSTEM
[06:04:51] [PASSED] Init resource in TTM_PL_VRAM
[06:04:51] [PASSED] Init resource in a private placement
[06:04:51] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags
[06:04:51] ============= [PASSED] ttm_resource_init_basic =============
[06:04:51] [PASSED] ttm_resource_init_pinned
[06:04:51] [PASSED] ttm_resource_fini_basic
[06:04:51] [PASSED] ttm_resource_manager_init_basic
[06:04:51] [PASSED] ttm_resource_manager_usage_basic
[06:04:51] [PASSED] ttm_resource_manager_set_used_basic
[06:04:51] [PASSED] ttm_sys_man_alloc_basic
[06:04:51] [PASSED] ttm_sys_man_free_basic
[06:04:51] ================== [PASSED] ttm_resource ===================
[06:04:51] =================== ttm_tt (15 subtests) ===================
[06:04:51] ==================== ttm_tt_init_basic ====================
[06:04:51] [PASSED] Page-aligned size
[06:04:51] [PASSED] Extra pages requested
[06:04:51] ================ [PASSED] ttm_tt_init_basic ================
[06:04:51] [PASSED] ttm_tt_init_misaligned
[06:04:51] [PASSED] ttm_tt_fini_basic
[06:04:51] [PASSED] ttm_tt_fini_sg
[06:04:51] [PASSED] ttm_tt_fini_shmem
[06:04:51] [PASSED] ttm_tt_create_basic
[06:04:51] [PASSED] ttm_tt_create_invalid_bo_type
[06:04:51] [PASSED] ttm_tt_create_ttm_exists
[06:04:51] [PASSED] ttm_tt_create_failed
[06:04:51] [PASSED] ttm_tt_destroy_basic
[06:04:51] [PASSED] ttm_tt_populate_null_ttm
[06:04:51] [PASSED] ttm_tt_populate_populated_ttm
[06:04:51] [PASSED] ttm_tt_unpopulate_basic
[06:04:51] [PASSED] ttm_tt_unpopulate_empty_ttm
[06:04:51] [PASSED] ttm_tt_swapin_basic
[06:04:51] ===================== [PASSED] ttm_tt ======================
[06:04:51] =================== ttm_bo (14 subtests) ===================
[06:04:51] =========== ttm_bo_reserve_optimistic_no_ticket ===========
[06:04:51] [PASSED] Cannot be interrupted and sleeps
[06:04:51] [PASSED] Cannot be interrupted, locks straight away
[06:04:51] [PASSED] Can be interrupted, sleeps
[06:04:51] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket =======
[06:04:51] [PASSED] ttm_bo_reserve_locked_no_sleep
[06:04:51] [PASSED] ttm_bo_reserve_no_wait_ticket
[06:04:52] [PASSED] ttm_bo_reserve_double_resv
[06:04:52] [PASSED] ttm_bo_reserve_interrupted
[06:04:52] [PASSED] ttm_bo_reserve_deadlock
[06:04:52] [PASSED] ttm_bo_unreserve_basic
[06:04:52] [PASSED] ttm_bo_unreserve_pinned
[06:04:52] [PASSED] ttm_bo_unreserve_bulk
[06:04:52] [PASSED] ttm_bo_fini_basic
[06:04:52] [PASSED] ttm_bo_fini_shared_resv
[06:04:52] [PASSED] ttm_bo_pin_basic
[06:04:52] [PASSED] ttm_bo_pin_unpin_resource
[06:04:52] [PASSED] ttm_bo_multiple_pin_one_unpin
[06:04:52] ===================== [PASSED] ttm_bo ======================
[06:04:52] ============== ttm_bo_validate (22 subtests) ===============
[06:04:52] ============== ttm_bo_init_reserved_sys_man ===============
[06:04:52] [PASSED] Buffer object for userspace
[06:04:52] [PASSED] Kernel buffer object
[06:04:52] [PASSED] Shared buffer object
[06:04:52] ========== [PASSED] ttm_bo_init_reserved_sys_man ===========
[06:04:52] ============== ttm_bo_init_reserved_mock_man ==============
[06:04:52] [PASSED] Buffer object for userspace
[06:04:52] [PASSED] Kernel buffer object
[06:04:52] [PASSED] Shared buffer object
[06:04:52] ========== [PASSED] ttm_bo_init_reserved_mock_man ==========
[06:04:52] [PASSED] ttm_bo_init_reserved_resv
[06:04:52] ================== ttm_bo_validate_basic ==================
[06:04:52] [PASSED] Buffer object for userspace
[06:04:52] [PASSED] Kernel buffer object
[06:04:52] [PASSED] Shared buffer object
[06:04:52] ============== [PASSED] ttm_bo_validate_basic ==============
[06:04:52] [PASSED] ttm_bo_validate_invalid_placement
[06:04:52] ============= ttm_bo_validate_same_placement ==============
[06:04:52] [PASSED] System manager
[06:04:52] [PASSED] VRAM manager
[06:04:52] ========= [PASSED] ttm_bo_validate_same_placement ==========
[06:04:52] [PASSED] ttm_bo_validate_failed_alloc
[06:04:52] [PASSED] ttm_bo_validate_pinned
[06:04:52] [PASSED] ttm_bo_validate_busy_placement
[06:04:52] ================ ttm_bo_validate_multihop =================
[06:04:52] [PASSED] Buffer object for userspace
[06:04:52] [PASSED] Kernel buffer object
[06:04:52] [PASSED] Shared buffer object
[06:04:52] ============ [PASSED] ttm_bo_validate_multihop =============
[06:04:52] ========== ttm_bo_validate_no_placement_signaled ==========
[06:04:52] [PASSED] Buffer object in system domain, no page vector
[06:04:52] [PASSED] Buffer object in system domain with an existing page vector
[06:04:52] ====== [PASSED] ttm_bo_validate_no_placement_signaled ======
[06:04:52] ======== ttm_bo_validate_no_placement_not_signaled ========
[06:04:52] [PASSED] Buffer object for userspace
[06:04:52] [PASSED] Kernel buffer object
[06:04:52] [PASSED] Shared buffer object
[06:04:52] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ====
[06:04:52] [PASSED] ttm_bo_validate_move_fence_signaled
[06:04:52] ========= ttm_bo_validate_move_fence_not_signaled =========
[06:04:52] [PASSED] Waits for GPU
[06:04:52] [PASSED] Tries to lock straight away
[06:04:52] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled =====
[06:04:52] [PASSED] ttm_bo_validate_swapout
[06:04:52] [PASSED] ttm_bo_validate_happy_evict
[06:04:52] [PASSED] ttm_bo_validate_all_pinned_evict
[06:04:52] [PASSED] ttm_bo_validate_allowed_only_evict
[06:04:52] [PASSED] ttm_bo_validate_deleted_evict
[06:04:52] [PASSED] ttm_bo_validate_busy_domain_evict
[06:04:52] [PASSED] ttm_bo_validate_evict_gutting
[06:04:52] [PASSED] ttm_bo_validate_recrusive_evict
[06:04:52] ================= [PASSED] ttm_bo_validate =================
[06:04:52] ============================================================
[06:04:52] Testing complete. Ran 102 tests: passed: 102
[06:04:52] Elapsed time: 13.512s total, 2.538s configuring, 10.759s building, 0.180s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/dma-buf/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/dma-buf/.kunitconfig
[06:04:52] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[06:04:54] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[06:05:04] Starting KUnit Kernel (1/1)...
[06:05:04] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[06:05:04] =============== dma-buf-fence (12 subtests) ================
[06:05:04] [PASSED] test_sanitycheck
[06:05:04] [PASSED] test_signaling
[06:05:04] [PASSED] test_add_callback
[06:05:04] [PASSED] test_late_add_callback
[06:05:04] [PASSED] test_rm_callback
[06:05:04] [PASSED] test_late_rm_callback
[06:05:04] [PASSED] test_status
[06:05:04] [PASSED] test_error
[06:05:04] [PASSED] test_wait
[06:05:04] [PASSED] test_wait_timeout
[06:05:04] [PASSED] test_stub
[06:05:04] [SKIPPED] test_race_signal_callback (requires at least 2 CPUs)
[06:05:04] ================== [PASSED] dma-buf-fence ==================
[06:05:04] ============ dma-buf-fence-chain (11 subtests) =============
[06:05:04] [PASSED] test_sanitycheck
[06:05:04] [PASSED] test_find_seqno
[06:05:04] [PASSED] test_find_signaled
[06:05:04] [PASSED] test_find_out_of_order
[06:05:09] [PASSED] test_find_gap
[06:05:09] [PASSED] test_find_race
[06:05:09] [PASSED] test_signal_forward
[06:05:09] [PASSED] test_signal_backward
[06:05:09] [PASSED] test_wait_forward
[06:05:09] [PASSED] test_wait_backward
[06:05:09] [PASSED] test_wait_random
[06:05:09] =============== [PASSED] dma-buf-fence-chain ===============
[06:05:09] ============ dma-buf-fence-unwrap (11 subtests) ============
[06:05:09] [PASSED] test_sanitycheck
[06:05:09] [PASSED] test_unwrap_array
[06:05:09] [PASSED] test_unwrap_chain
[06:05:09] [PASSED] test_unwrap_chain_array
[06:05:09] [PASSED] test_unwrap_merge
[06:05:09] [PASSED] test_unwrap_merge_duplicate
[06:05:09] [PASSED] test_unwrap_merge_seqno
[06:05:09] [PASSED] test_unwrap_merge_order
[06:05:09] [PASSED] test_unwrap_merge_complex
[06:05:09] [PASSED] test_unwrap_merge_complex_seqno
[06:05:09] [PASSED] test_dedup_empty
[06:05:09] ============== [PASSED] dma-buf-fence-unwrap ===============
[06:05:09] ================ dma-buf-resv (5 subtests) =================
[06:05:09] [PASSED] test_sanitycheck
[06:05:09] ===================== test_signaling ======================
[06:05:09] [PASSED] kernel
[06:05:09] [PASSED] write
[06:05:09] [PASSED] read
[06:05:09] [PASSED] bookkeep
[06:05:09] ================= [PASSED] test_signaling ==================
[06:05:09] ====================== test_for_each ======================
[06:05:09] [PASSED] kernel
[06:05:09] [PASSED] write
[06:05:09] [PASSED] read
[06:05:09] [PASSED] bookkeep
[06:05:09] ================== [PASSED] test_for_each ==================
[06:05:09] ================= test_for_each_unlocked ==================
[06:05:09] [PASSED] kernel
[06:05:09] [PASSED] write
[06:05:09] [PASSED] read
[06:05:09] [PASSED] bookkeep
[06:05:09] ============= [PASSED] test_for_each_unlocked ==============
[06:05:09] ===================== test_get_fences =====================
[06:05:09] [PASSED] kernel
[06:05:09] [PASSED] write
[06:05:09] [PASSED] read
[06:05:09] [PASSED] bookkeep
[06:05:09] ================= [PASSED] test_get_fences =================
[06:05:09] ================== [PASSED] dma-buf-resv ===================
[06:05:09] ============================================================
[06:05:09] Testing complete. Ran 51 tests: passed: 50, skipped: 1
[06:05:09] Elapsed time: 17.139s total, 2.410s configuring, 9.358s building, 5.355s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
^ permalink raw reply [flat|nested] 16+ messages in thread* ✓ Xe.CI.BAT: success for Cleanup OA stream on PCI unbind/remove (rev8)
2026-11-19 0:27 [PATCH v8 0/8] Cleanup OA stream on PCI unbind/remove Umesh Nerlige Ramappa
` (8 preceding siblings ...)
2026-11-19 6:05 ` ✓ CI.KUnit: success for Cleanup OA stream on PCI unbind/remove (rev8) Patchwork
@ 2026-11-19 6:46 ` Patchwork
9 siblings, 0 replies; 16+ messages in thread
From: Patchwork @ 2026-11-19 6:46 UTC (permalink / raw)
To: Umesh Nerlige Ramappa; +Cc: intel-xe
[-- Attachment #1: Type: text/plain, Size: 868 bytes --]
== Series Details ==
Series: Cleanup OA stream on PCI unbind/remove (rev8)
URL : https://patchwork.freedesktop.org/series/177300/
State : success
== Summary ==
CI Bug Log - changes from xe-6184-ce3179725e3c265703bc49afce4b70ee8a08c0cf_BAT -> xe-pw-177300v8_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (15 -> 15)
------------------------------
No changes in participating hosts
Changes
-------
No changes found
Build changes
-------------
* Linux: xe-6184-ce3179725e3c265703bc49afce4b70ee8a08c0cf -> xe-pw-177300v8
IGT_9198: 9198
xe-6184-ce3179725e3c265703bc49afce4b70ee8a08c0cf: ce3179725e3c265703bc49afce4b70ee8a08c0cf
xe-pw-177300v8: 177300v8
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-177300v8/index.html
[-- Attachment #2: Type: text/html, Size: 1416 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread