Two-pass MMU interval notifiers
Subsystems (4)
Thomas Hellström
maintainerv4 cover Two-pass MMU interval notifiers
GPU use-cases for mmu_interval_notifiers with hmm often involve starting a gpu operation and then waiting for it to complete. These operations are typically context preemption or TLB flushing.
With single-pass notifiers per GPU this doesn't scale in multi-gpu scenarios. In those scenarios we'd want to first start preemption- or TLB flushing on all GPUs and as a second pass wait for them to complete.
This also applies in non-recoverable page-fault scenarios to starting a preemption requests on GPUs and waiting for the GPUs to preempt so that system pages they access can be reclaimed.
One can do this on per-driver basis multiplexing per-driver notifiers but that would mean sharing the notifier "user" lock across all GPUs and that doesn't scale well either, so adding support for two-pass in the core appears like the right choice.
So this series does that, with pach 1 implementing the core support and also describes the choices made.
The rest of the patches implements a POC with xeKMD userptr invalidation and potential TLB-flushing. A follow-up series will extend to drm_gpusvm.
v2 hightlights:
- Refactor the core mm patch to use the struct mmu_interval_notifier_ops for the invalidate_finish() callback.
- Rebase on xe driver tlb invalidation changes.
- Provide an initial implementation for userptr instead of drm_gpusvm. The intent is to handle drm_gpusvm in a follow-up series.
v3:
- Address review comments from Matt Brost: Code formatting, documentation, additional asserts and removal of unnecessary waits, as specified in each patch.
v4:
- Extend to wider audience and add R-Bs on the xe patches.
- Address documentation review comments from David Hildenbrand
Thomas Hellström (4):
mm/mmu_notifier: Allow two-pass struct mmu_interval_notifiers drm/xe/userptr: Convert invalidation to two-pass MMU notifier drm/xe: Split TLB invalidation into submit and wait steps drm/xe/userptr: Defer Waiting for TLB invalidation to the second pass
if possible
drivers/gpu/drm/xe/xe_svm.c | 8 +- drivers/gpu/drm/xe/xe_tlb_inval.c | 84 +++++++++++++ drivers/gpu/drm/xe/xe_tlb_inval.h | 6 + drivers/gpu/drm/xe/xe_tlb_inval_types.h | 14 +++ drivers/gpu/drm/xe/xe_userptr.c | 155 ++++++++++++++++++++---- drivers/gpu/drm/xe/xe_userptr.h | 31 ++++- drivers/gpu/drm/xe/xe_vm.c | 99 +++++---------- drivers/gpu/drm/xe/xe_vm.h | 5 +- drivers/gpu/drm/xe/xe_vm_madvise.c | 10 +- drivers/gpu/drm/xe/xe_vm_types.h | 1 + include/linux/mmu_notifier.h | 42 +++++++ mm/mmu_notifier.c | 65 ++++++++-- 12 files changed, 416 insertions(+), 104 deletions(-)
Signature · 1 line
2.53.0
Thomas Hellström
maintainerPATCH v4 1/4 mm/mmu_notifier: Allow two-pass struct mmu_interval_notifiers
GPU use-cases for mmu_interval_notifiers with hmm often involve starting a gpu operation and then waiting for it to complete. These operations are typically context preemption or TLB flushing.
With single-pass notifiers per GPU this doesn't scale in multi-gpu scenarios. In those scenarios we'd want to first start preemption- or TLB flushing on all GPUs and as a second pass wait for them to complete.
One can do this on per-driver basis multiplexing per-driver notifiers but that would mean sharing the notifier "user" lock across all GPUs and that doesn't scale well either, so adding support for multi-pass in the core appears to be the right choice.
Implement two-pass capability in the mmu_interval_notifier. Use a linked list for the final passes to minimize the impact for use-cases that don't need the multi-pass functionality by avoiding a second interval tree walk, and to be able to easily pass data between the two passes.
v1:
- Restrict to two passes (Jason Gunthorpe)
- Improve on documentation (Jason Gunthorpe)
- Improve on function naming (Alistair Popple)
v2:
- Include the invalidate_finish() callback in the
struct mmu_interval_notifier_ops.
- Update documentation (GitHub Copilot:claude-sonnet-4.6)
- Use lockless list for list management.
v3:
- Update kerneldoc for the struct mmu_interval_notifier_finish::list member (Matthew Brost)
- Add a WARN_ON_ONCE() checking for NULL invalidate_finish() op if if invalidate_start() is non-NULL. (Matthew Brost)
v4:
- Addressed documentation review comments by David Hildenbrand.
--- include/linux/mmu_notifier.h | 42 +++++++++++++++++++++++ mm/mmu_notifier.c | 65 +++++++++++++++++++++++++++++++----- 2 files changed, 98 insertions(+), 9 deletions(-)
include/linux/mmu_notifier.h +42 -0
@@ -233,16 +233,58 @@ struct mmu_notifier {unsigned int users; }; +/** +* struct mmu_interval_notifier_finish - mmu_interval_notifier two-pass abstraction +* @link: Lockless list link for the notifiers pending pass list +* @notifier: The mmu_interval_notifier for which the finish pass is called. +* +* Allocate, typically using GFP_NOWAIT in the interval notifier's start pass. +* Note that with a large number of notifiers implementing two passes, +* allocation with GFP_NOWAIT will become increasingly likely to fail, so consider +* implementing a small pool instead of using kmalloc() allocations. +* +* If the implementation needs to pass data between the start and the finish passes, +* the recommended way is to embed struct mmu_interval_notifier_finish into a larger +* structure that also contains the data needed to be shared. Keep in mind that +* a notifier callback can be invoked in parallel, and each invocation needs its +* own struct mmu_interval_notifier_finish. +* +* If allocation fails, then the &mmu_interval_notifier_ops->invalidate_start op +* needs to implements the full notifier functionality. Please refer to its +* documentation. +*/ +struct mmu_interval_notifier_finish { +struct llist_node link; +struct mmu_interval_notifier *notifier; +}; +/** * struct mmu_interval_notifier_ops * @invalidate: Upon return the caller must stop using any SPTEs within this * range. This function can sleep. Return false only if sleeping * was required but mmu_notifier_range_blockable(range) is false. +* @invalidate_start: Similar to @invalidate, but intended for two-pass notifier +* callbacks where the call to @invalidate_start is the first +* pass and any struct mmu_interval_notifier_finish pointer +* returned in the @finish parameter describes the finish pass. +* If *@finish is %NULL on return, then no final pass will be +* called, and @invalidate_start needs to implement the full +* notifier, behaving like @invalidate. The value of *@finish +* is guaranteed to be %NULL at function entry. +* @invalidate_finish: Called as the second pass for any notifier that returned +* a non-NULL *@finish from @invalidate_start. The @finish +* pointer passed here is the same one returned by +* @invalidate_start. */ struct mmu_interval_notifier_ops {bool (*invalidate)(struct mmu_interval_notifier *interval_sub,const struct mmu_notifier_range *range,unsigned long cur_seq); +bool (*invalidate_start)(struct mmu_interval_notifier *interval_sub, +const struct mmu_notifier_range *range, +unsigned long cur_seq, +struct mmu_interval_notifier_finish **finish); +void (*invalidate_finish)(struct mmu_interval_notifier_finish *finish); };struct mmu_interval_notifier {
mm/mmu_notifier.c +56 -9
115 lines not on this page · raw message
Signature · 1 line
2.53.0
Thomas Hellström
maintainerPATCH v4 2/4 drm/xe/userptr: Convert invalidation to two-pass MMU notifier
In reply to Thomas HellströmIn multi-GPU scenarios, asynchronous GPU job latency is a bottleneck if each notifier waits for its own GPU before returning. The two-pass mmu_interval_notifier infrastructure allows deferring the wait to a second pass, so all GPUs can be signalled in the first pass before any of them are waited on.
Convert the userptr invalidation to use the two-pass model:
Use invalidate_start as the first pass to mark the VMA for repin and enable software signalling on the VM reservation fences to start any gpu work needed for signaling. Fall back to completing the work synchronously if all fences are already signalled, or if a concurrent invalidation is already using the embedded finish structure.
Use invalidate_finish as the second pass to wait for the reservation fences to complete, invalidate the GPU TLB in fault mode, and unmap the gpusvm pages.
Embed a struct mmu_interval_notifier_finish in struct xe_userptr to avoid dynamic allocation in the notifier callback. Use a finish_inuse flag to prevent two concurrent invalidations from using it simultaneously; fall back to the synchronous path for the second caller.
v3:
- Add locking asserts in notifier components (Matt Brost)
- Clean up newlines (Matt Brost)
- Update the userptr notifier state member locking documentation (Matt Brost)
--- drivers/gpu/drm/xe/xe_userptr.c | 108 +++++++++++++++++++++++++------- drivers/gpu/drm/xe/xe_userptr.h | 14 ++++- 2 files changed, 99 insertions(+), 23 deletions(-)
drivers/gpu/drm/xe/xe_userptr.c +86 -22
@@ -10,6 +10,14 @@#include "xe_trace_bo.h" +static void xe_userptr_assert_in_notifier (struct xe_vm *vm) +{ +lockdep_assert (lockdep_is_held_type (&vm->svm.gpusvm.notifier_lock,0 ) || + (lockdep_is_held (&vm->lock) && +lockdep_is_held_type (&vm->svm.gpusvm.notifier_lock,1 ) && +dma_resv_held (xe_vm_resv (vm)))); +} +/** * xe_vma_userptr_check_repin() - Advisory check for repin needed * @uvma: The userptr vma
@@ -73,18 +81,46 @@ int xe_vma_userptr_pin_pages(struct xe_userptr_vma *uvma) &ctx); } -static void __vma_userptr_invalidate (struct xe_vm *vm,struct xe_userptr_vma *uvma) +static void xe_vma_userptr_do_inval (struct xe_vm *vm,struct xe_userptr_vma *uvma, +bool is_deferred) {struct xe_userptr *userptr = &uvma->userptr;struct xe_vma *vma = &uvma->vma; -struct dma_resv_iter cursor; -struct dma_fence *fence;struct drm_gpusvm_ctx ctx = { .in_notifier = true, .read_only =xe_vma_read_only (vma), };long err; +xe_userptr_assert_in_notifier (vm); + + err =dma_resv_wait_timeout (xe_vm_resv (vm), +DMA_RESV_USAGE_BOOKKEEP , + false,MAX_SCHEDULE_TIMEOUT ); +XE_WARN_ON (err <=0 ); + +if (xe_vm_in_fault_mode (vm) && userptr->initial_bind) { + err =xe_vm_invalidate_vma (vma); +XE_WARN_ON (err); + } + +if (is_deferred) + userptr->finish_inuse = false; +drm_gpusvm_unmap_pages (&vm->svm.gpusvm, &uvma->userptr.pages, +xe_vma_size (vma) >>PAGE_SHIFT , &ctx); +} + +static struct mmu_interval_notifier_finish * +xe_vma_userptr_invalidate_pass1 (struct xe_vm *vm,struct xe_userptr_vma *uvma) +{ +struct xe_userptr *userptr = &uvma->userptr; +struct xe_vma *vma = &uvma->vma; +struct dma_resv_iter cursor; +struct dma_fence *fence; +bool signaled = true; + +xe_userptr_assert_in_notifier (vm); +/* * Tell exec and rebind worker they need to repin and rebind this * userptr.
@@ -105,27 +141,32 @@ static void __vma_userptr_invalidate(struct xe_vm *vm, struct xe_userptr_vma *uv*/ dma_resv_iter_begin (&cursor,xe_vm_resv (vm),DMA_RESV_USAGE_BOOKKEEP ); -dma_resv_for_each_fence_unlocked (&cursor, fence) +dma_resv_for_each_fence_unlocked (&cursor, fence) {dma_fence_enable_sw_signaling (fence); +if (signaled && !dma_fence_is_signaled (fence)) + signaled = false; + }dma_resv_iter_end (&cursor); - err =dma_resv_wait_timeout (xe_vm_resv (vm), -DMA_RESV_USAGE_BOOKKEEP , - false,MAX_SCHEDULE_TIMEOUT ); -XE_WARN_ON (err <=0 ); - -if (xe_vm_in_fault_mode (vm) && userptr->initial_bind) { - err =xe_vm_invalidate_vma (vma); -XE_WARN_ON (err); +/* +* Only one caller at a time can use the multi-pass state. +* If it's already in use, or all fences are already signaled, +* proceed directly to invalidation without deferring. +*/ +if (signaled || userptr->finish_inuse) { +xe_vma_userptr_do_inval (vm, uvma, false); +return NULL ; } -drm_gpusvm_unmap_pages (&vm->svm.gpusvm, &uvma->userptr.pages, -xe_vma_size (vma) >>PAGE_SHIFT , &ctx); + userptr->finish_inuse = true; + +return &userptr->finish; } -static bool vma_userptr_invalidate (struct mmu_interval_notifier *mni, -const struct mmu_notifier_range *range, -unsigned long cur_seq) +static bool xe_vma_userptr_invalidate_start (struct mmu_interval_notifier *mni, +const struct mmu_notifier_range *range, +unsigned long cur_seq, +struct mmu_interval_notifier_finish **p_finish) {struct xe_userptr_vma *uvma =container_of (mni,typeof (*uvma), userptr.notifier);struct xe_vma *vma = &uvma->vma;
@@ -138,21 +179,40 @@ static bool vma_userptr_invalidate(struct mmu_interval_notifier *mni,return false;vm_dbg (&xe_vma_vm (vma)->xe->drm, -"NOTIFIER: addr=0x%016llx, range=0x%016llx" , +"NOTIFIER PASS1: addr=0x%016llx, range=0x%016llx" ,xe_vma_start (vma),xe_vma_size (vma));down_write (&vm->svm.gpusvm.notifier_lock);mmu_interval_set_seq (mni, cur_seq); -__vma_userptr_invalidate (vm, uvma); + *p_finish =xe_vma_userptr_invalidate_pass1 (vm, uvma); +up_write (&vm->svm.gpusvm.notifier_lock); -trace_xe_vma_userptr_invalidate_complete (vma); +if (!*p_finish) +trace_xe_vma_userptr_invalidate_complete (vma);return true; } +static void xe_vma_userptr_invalidate_finish (struct mmu_interval_notifier_finish *finish) +{ +struct xe_userptr_vma *uvma =container_of (finish,typeof (*uvma), userptr.finish); +struct xe_vma *vma = &uvma->vma; +struct xe_vm *vm =xe_vma_vm (vma); + +vm_dbg (&xe_vma_vm (vma)->xe->drm, +"NOTIFIER PASS2: addr=0x%016llx, range=0x%016llx" , +xe_vma_start (vma),xe_vma_size (vma)); + +down_write (&vm->svm.gpusvm.notifier_lock); +xe_vma_userptr_do_inval (vm, uvma, true); +up_write (&vm->svm.gpusvm.notifier_lock); +trace_xe_vma_userptr_invalidate_complete (vma); +} +static const struct mmu_interval_notifier_ops vma_userptr_notifier_ops = { - .invalidate = vma_userptr_invalidate, + .invalidate_start = xe_vma_userptr_invalidate_start, + .invalidate_finish = xe_vma_userptr_invalidate_finish, };#if IS_ENABLED (CONFIG_DRM_XE_USERPTR_INVAL_INJECT )
@@ -164,6 +224,7 @@ static const struct mmu_interval_notifier_ops vma_userptr_notifier_ops = {*/ void xe_vma_userptr_force_invalidate (struct xe_userptr_vma *uvma) { +static struct mmu_interval_notifier_finish *finish;struct xe_vm *vm =xe_vma_vm (&uvma->vma);/* Protect against concurrent userptr pinning */
@@ -179,7 +240,10 @@ void xe_vma_userptr_force_invalidate(struct xe_userptr_vma *uvma)if (!mmu_interval_read_retry (&uvma->userptr.notifier, uvma->userptr.pages.notifier_seq)) uvma->userptr.pages.notifier_seq -=2 ; - __vma_userptr_invalidate(vm, uvma); + + finish =xe_vma_userptr_invalidate_pass1 (vm, uvma); +if (finish) + xe_vma_userptr_do_inval(vm, uvma, true); }#endif
drivers/gpu/drm/xe/xe_userptr.h +13 -1
@@ -56,7 +56,19 @@ struct xe_userptr {* @notifier: MMU notifier for user pointer (invalidation call back) */ struct mmu_interval_notifier notifier; - +/** +* @finish: MMU notifier finish structure for two-pass invalidation. +* Embedded here to avoid allocation in the notifier callback. +* Protected by struct xe_vm::svm.gpusvm.notifier_lock in write mode +* alternatively by the same lock in read mode *and* the vm resv held. +*/ +struct mmu_interval_notifier_finish finish; +/** +* @finish_inuse: Whether @finish is currently in use by an in-progress +* two-pass invalidation. +* Protected using the same locking as @finish. +*/ +bool finish_inuse;/** * @initial_bind: user pointer has been bound at least once. * write: vm->svm.gpusvm.notifier_lock in read mode and vm->resv held.
Signature · 1 line
2.53.0
Thomas Hellström
maintainerPATCH v4 3/4 drm/xe: Split TLB invalidation into submit and wait steps
In reply to Thomas Hellströmxe_vm_range_tilemask_tlb_inval() submits TLB invalidation requests to all GTs in a tile mask and then immediately waits for them to complete before returning. This is fine for the existing callers, but a subsequent patch will need to defer the wait in order to overlap TLB invalidations across multiple VMAs.
Introduce xe_tlb_inval_range_tilemask_submit() and xe_tlb_inval_batch_wait() in xe_tlb_inval.c as the submit and wait halves respectively. The batch of fences is carried in the new xe_tlb_inval_batch structure. Remove xe_vm_range_tilemask_tlb_inval() and convert all three call sites to the new API.
v3:
- Don't wait on TLB invalidation batches if the corresponding batch submit returns an error. (Matt Brost)
- s/_batch/batch/ (Matt Brost)
--- drivers/gpu/drm/xe/xe_svm.c | 8 ++- drivers/gpu/drm/xe/xe_tlb_inval.c | 84 +++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_tlb_inval.h | 6 ++ drivers/gpu/drm/xe/xe_tlb_inval_types.h | 14 +++++ drivers/gpu/drm/xe/xe_vm.c | 69 +++----------------- drivers/gpu/drm/xe/xe_vm.h | 3 - drivers/gpu/drm/xe/xe_vm_madvise.c | 10 ++- drivers/gpu/drm/xe/xe_vm_types.h | 1 + 8 files changed, 127 insertions(+), 68 deletions(-)
drivers/gpu/drm/xe/xe_svm.c +6 -2
@@ -19,6 +19,7 @@#include "xe_pt.h" #include "xe_svm.h" #include "xe_tile.h" +#include "xe_tlb_inval.h" #include "xe_ttm_vram_mgr.h" #include "xe_vm.h" #include "xe_vm_types.h"
@@ -225,6 +226,7 @@ static void xe_svm_invalidate(struct drm_gpusvm *gpusvm, const struct mmu_notifier_range *mmu_range) {struct xe_vm *vm =gpusvm_to_vm (gpusvm); +struct xe_tlb_inval_batch batch;struct xe_device *xe = vm->xe;struct drm_gpusvm_range *r, *first;struct xe_tile *tile;
@@ -276,8 +278,10 @@ static void xe_svm_invalidate(struct drm_gpusvm *gpusvm,xe_device_wmb (xe); - err =xe_vm_range_tilemask_tlb_inval (vm, adj_start, adj_end, tile_mask); -WARN_ON_ONCE (err); + err =xe_tlb_inval_range_tilemask_submit (xe, vm->usm.asid, adj_start, adj_end, + tile_mask, &batch); +if (!WARN_ON_ONCE (err)) +xe_tlb_inval_batch_wait (&batch); range_notifier_event_end: r = first;
drivers/gpu/drm/xe/xe_tlb_inval.c +84 -0
87 lines not on this page · raw message
drivers/gpu/drm/xe/xe_tlb_inval.h +6 -0
@@ -45,4 +45,10 @@ void xe_tlb_inval_done_handler(struct xe_tlb_inval *tlb_inval, int seqno);bool xe_tlb_inval_idle (struct xe_tlb_inval *tlb_inval); +int xe_tlb_inval_range_tilemask_submit (struct xe_device *xe,u32 asid, +u64 start,u64 end,u8 tile_mask, +struct xe_tlb_inval_batch *batch); + +void xe_tlb_inval_batch_wait (struct xe_tlb_inval_batch *batch); +#endif /* _XE_TLB_INVAL_ */
drivers/gpu/drm/xe/xe_tlb_inval_types.h +14 -0
@@ -9,6 +9,8 @@#include <linux/workqueue.h> #include <linux/dma-fence.h> +#include "xe_device_types.h" +struct drm_suballoc ;struct xe_tlb_inval ;
@@ -132,4 +134,16 @@ struct xe_tlb_inval_fence { ktime_t inval_time; }; +/** +* struct xe_tlb_inval_batch - Batch of TLB invalidation fences +* +* Holds one fence per GT covered by a TLB invalidation request. +*/ +struct xe_tlb_inval_batch { +/** @fence: per-GT TLB invalidation fences */ +struct xe_tlb_inval_fence fence[XE_MAX_TILES_PER_DEVICE *XE_MAX_GT_PER_TILE ]; +/** @num_fences: number of valid entries in @fence */ +unsigned int num_fences; +}; +#endif
drivers/gpu/drm/xe/xe_vm.c +7 -62
91 lines not on this page · raw message
drivers/gpu/drm/xe/xe_vm.h +0 -3
@@ -240,9 +240,6 @@ struct dma_fence *xe_vm_range_rebind(struct xe_vm *vm,struct dma_fence *xe_vm_range_unbind (struct xe_vm *vm,struct xe_svm_range *range); -int xe_vm_range_tilemask_tlb_inval (struct xe_vm *vm,u64 start, -u64 end,u8 tile_mask); -int xe_vm_invalidate_vma (struct xe_vma *vma);int xe_vm_validate_protected (struct xe_vm *vm);
drivers/gpu/drm/xe/xe_vm_madvise.c +9 -1
@@ -12,6 +12,7 @@#include "xe_pat.h" #include "xe_pt.h" #include "xe_svm.h" +#include "xe_tlb_inval.h" struct xe_vmas_in_madvise_range {u64 addr;
@@ -235,13 +236,20 @@ static u8 xe_zap_ptes_in_madvise_range(struct xe_vm *vm, u64 start, u64 end)static int xe_vm_invalidate_madvise_range (struct xe_vm *vm,u64 start,u64 end) {u8 tile_mask =xe_zap_ptes_in_madvise_range (vm, start, end); +struct xe_tlb_inval_batch batch; +int err;if (!tile_mask)return 0 ;xe_device_wmb (vm->xe); -return xe_vm_range_tilemask_tlb_inval (vm, start, end, tile_mask); + err =xe_tlb_inval_range_tilemask_submit (vm->xe, vm->usm.asid, start, end, + tile_mask, &batch); +if (!err) +xe_tlb_inval_batch_wait (&batch); + +return err; }static bool madvise_args_are_sane (struct xe_device *xe,const struct drm_xe_madvise *args)
drivers/gpu/drm/xe/xe_vm_types.h +1 -0
@@ -18,6 +18,7 @@#include "xe_device_types.h" #include "xe_pt_types.h" #include "xe_range_fence.h" +#include "xe_tlb_inval_types.h" #include "xe_userptr.h" struct drm_pagemap ;
Signature · 1 line
2.53.0
Thomas Hellström
maintainerPATCH v4 4/4 drm/xe/userptr: Defer Waiting for TLB invalidation to the second pass if possible
In reply to Thomas HellströmNow that the two-pass notifier flow uses xe_vma_userptr_do_inval() for the fence-wait + TLB-invalidate work, extend it to support a further deferred TLB wait:
- xe_vma_userptr_do_inval(): when the embedded finish handle is free, submit the TLB invalidation asynchronously (xe_vm_invalidate_vma_submit) and return &userptr->finish so the mmu_notifier core schedules a third pass. When the handle is occupied by a concurrent invalidation, fall back to the synchronous xe_vm_invalidate_vma() path.
- xe_vma_userptr_complete_tlb_inval(): new helper called from invalidate_finish when tlb_inval_submitted is set. Waits for the previously submitted batch and unmaps the gpusvm pages.
xe_vma_userptr_invalidate_finish() dispatches between the two helpers via tlb_inval_submitted, making the three possible flows explicit:
pass1 (fences pending) -> invalidate_finish -> do_inval (sync TLB)
pass1 (fences done) -> do_inval -> invalidate_finish
-> complete_tlb_inval (deferred TLB)
pass1 (finish occupied) -> do_inval (sync TLB, inline)
In multi-GPU scenarios this allows TLB flushes to be submitted on all GPUs in one pass before any of them are waited on.
Also adds xe_vm_invalidate_vma_submit() which submits the TLB range invalidation without blocking, populating a xe_tlb_inval_batch that the caller waits on separately.
v3:
- Add locking asserts and notifier state asserts (Matt Brost)
- Update the locking documentation of the notifier state members (Matt Brost)
- Remove unrelated code formatting changes (Matt Brost)
--- drivers/gpu/drm/xe/xe_userptr.c | 63 ++++++++++++++++++++++++++++----- drivers/gpu/drm/xe/xe_userptr.h | 17 +++++++++ drivers/gpu/drm/xe/xe_vm.c | 38 +++++++++++++++----- drivers/gpu/drm/xe/xe_vm.h | 2 ++ 4 files changed, 104 insertions(+), 16 deletions(-)
drivers/gpu/drm/xe/xe_userptr.c +55 -8
@@ -8,6 +8,7 @@#include <linux/mm.h> +#include "xe_tlb_inval.h" #include "xe_trace_bo.h" static void xe_userptr_assert_in_notifier (struct xe_vm *vm)
@@ -81,8 +82,8 @@ int xe_vma_userptr_pin_pages(struct xe_userptr_vma *uvma) &ctx); } -static void xe_vma_userptr_do_inval (struct xe_vm *vm,struct xe_userptr_vma *uvma, -bool is_deferred) +static struct mmu_interval_notifier_finish * +xe_vma_userptr_do_inval (struct xe_vm *vm,struct xe_userptr_vma *uvma,bool is_deferred) {struct xe_userptr *userptr = &uvma->userptr;struct xe_vma *vma = &uvma->vma;
@@ -93,6 +94,8 @@ static void xe_vma_userptr_do_inval(struct xe_vm *vm, struct xe_userptr_vma *uvmlong err;xe_userptr_assert_in_notifier (vm); +if (is_deferred) +xe_assert (vm->xe, userptr->finish_inuse && !userptr->tlb_inval_submitted); err = dma_resv_wait_timeout(xe_vm_resv(vm), DMA_RESV_USAGE_BOOKKEEP,
@@ -100,6 +103,19 @@ static void xe_vma_userptr_do_inval(struct xe_vm *vm, struct xe_userptr_vma *uvmXE_WARN_ON (err <=0 );if (xe_vm_in_fault_mode (vm) && userptr->initial_bind) { +if (!userptr->finish_inuse) { +/* +* Defer the TLB wait to an extra pass so the caller +* can pipeline TLB flushes across GPUs before waiting +* on any of them. +*/ +xe_assert (vm->xe, !userptr->tlb_inval_submitted); + userptr->finish_inuse = true; + userptr->tlb_inval_submitted = true; + err =xe_vm_invalidate_vma_submit (vma, &userptr->inval_batch); +XE_WARN_ON (err); +return &userptr->finish; + } err =xe_vm_invalidate_vma (vma);XE_WARN_ON (err); }
@@ -108,6 +124,28 @@ static void xe_vma_userptr_do_inval(struct xe_vm *vm, struct xe_userptr_vma *uvm userptr->finish_inuse = false;drm_gpusvm_unmap_pages (&vm->svm.gpusvm, &uvma->userptr.pages,xe_vma_size (vma) >>PAGE_SHIFT , &ctx); +return NULL ; +} + +static void +xe_vma_userptr_complete_tlb_inval (struct xe_vm *vm,struct xe_userptr_vma *uvma) +{ +struct xe_userptr *userptr = &uvma->userptr; +struct xe_vma *vma = &uvma->vma; +struct drm_gpusvm_ctx ctx = { + .in_notifier = true, + .read_only =xe_vma_read_only (vma), + }; + +xe_userptr_assert_in_notifier (vm); +xe_assert (vm->xe, userptr->finish_inuse); +xe_assert (vm->xe, userptr->tlb_inval_submitted); + +xe_tlb_inval_batch_wait (&userptr->inval_batch); + userptr->tlb_inval_submitted = false; + userptr->finish_inuse = false; +drm_gpusvm_unmap_pages (&vm->svm.gpusvm, &uvma->userptr.pages, +xe_vma_size (vma) >>PAGE_SHIFT , &ctx); } static struct mmu_interval_notifier_finish *
@@ -153,11 +191,10 @@ xe_vma_userptr_invalidate_pass1(struct xe_vm *vm, struct xe_userptr_vma *uvma)* If it's already in use, or all fences are already signaled, * proceed directly to invalidation without deferring. */ -if (signaled || userptr->finish_inuse) { -xe_vma_userptr_do_inval (vm, uvma, false); -return NULL ; - } +if (signaled || userptr->finish_inuse) +return xe_vma_userptr_do_inval (vm, uvma, false); +/* Defer: the notifier core will call invalidate_finish once done. */ userptr->finish_inuse = true;return &userptr->finish;
@@ -205,7 +242,15 @@ static void xe_vma_userptr_invalidate_finish(struct mmu_interval_notifier_finish xe_vma_start(vma), xe_vma_size(vma));down_write (&vm->svm.gpusvm.notifier_lock); -xe_vma_userptr_do_inval (vm, uvma, true); +/* +* If a TLB invalidation was previously submitted (deferred from the +* synchronous pass1 fallback), wait for it and unmap pages. +* Otherwise, fences have now completed: invalidate the TLB and unmap. +*/ +if (uvma->userptr.tlb_inval_submitted) +xe_vma_userptr_complete_tlb_inval (vm, uvma); +else +xe_vma_userptr_do_inval (vm, uvma, true);up_write (&vm->svm.gpusvm.notifier_lock);trace_xe_vma_userptr_invalidate_complete (vma); }
@@ -243,7 +288,9 @@ void xe_vma_userptr_force_invalidate(struct xe_userptr_vma *uvma) finish =xe_vma_userptr_invalidate_pass1 (vm, uvma);if (finish) - xe_vma_userptr_do_inval(vm, uvma, true); + finish =xe_vma_userptr_do_inval (vm, uvma, true); +if (finish) + xe_vma_userptr_complete_tlb_inval(vm, uvma); }#endif
drivers/gpu/drm/xe/xe_userptr.h +17 -0
@@ -14,6 +14,8 @@#include <drm/drm_gpusvm.h> +#include "xe_tlb_inval_types.h" +struct xe_vm ;struct xe_vma ;struct xe_userptr_vma ;
@@ -63,12 +65,27 @@ struct xe_userptr {* alternatively by the same lock in read mode *and* the vm resv held. */ struct mmu_interval_notifier_finish finish; +/** +* @inval_batch: TLB invalidation batch for deferred completion. +* Stores an in-flight TLB invalidation submitted during a two-pass +* notifier so the wait can be deferred to a subsequent pass, allowing +* multiple GPUs to be signalled before any of them are waited on. +* Protected using the same locking as @finish. +*/ +struct xe_tlb_inval_batch inval_batch;/** * @finish_inuse: Whether @finish is currently in use by an in-progress * two-pass invalidation. * Protected using the same locking as @finish. */ bool finish_inuse; +/** +* @tlb_inval_submitted: Whether a TLB invalidation has been submitted +* via @inval_batch and is pending completion. When set, the next pass +* must call xe_tlb_inval_batch_wait() before reusing @inval_batch. +* Protected using the same locking as @finish. +*/ +bool tlb_inval_submitted;/** * @initial_bind: user pointer has been bound at least once. * write: vm->svm.gpusvm.notifier_lock in read mode and vm->resv held.
drivers/gpu/drm/xe/xe_vm.c +30 -8
@@ -3967,20 +3967,23 @@ void xe_vm_unlock(struct xe_vm *vm) }/** -* xe_vm_invalidate_vma - invalidate GPU mappings for VMA without a lock +* xe_vm_invalidate_vma_submit - Submit a job to invalidate GPU mappings for +* VMA. * @vma: VMA to invalidate +* @batch: TLB invalidation batch to populate; caller must later call +* xe_tlb_inval_batch_wait() on it to wait for completion * * Walks a list of page tables leaves which it memset the entries owned by this -* VMA to zero, invalidates the TLBs, and block until TLBs invalidation is -* complete. +* VMA to zero, invalidates the TLBs, but doesn't block waiting for TLB flush +* to complete, but instead populates @batch which can be waited on using +* xe_tlb_inval_batch_wait(). * * Returns 0 for success, negative error code otherwise. */ -int xe_vm_invalidate_vma (struct xe_vma *vma) +int xe_vm_invalidate_vma_submit (struct xe_vma *vma,struct xe_tlb_inval_batch *batch) {struct xe_device *xe =xe_vma_vm (vma)->xe;struct xe_vm *vm =xe_vma_vm (vma); -struct xe_tlb_inval_batch batch;struct xe_tile *tile;u8 tile_mask =0 ;int ret =0 ;
@@ -4023,14 +4026,33 @@ int xe_vm_invalidate_vma(struct xe_vma *vma) ret =xe_tlb_inval_range_tilemask_submit (xe,xe_vma_vm (vma)->usm.asid,xe_vma_start (vma),xe_vma_end (vma), - tile_mask, &batch); + tile_mask, batch);/* WRITE_ONCE pairs with READ_ONCE in xe_vm_has_valid_gpu_mapping() */ WRITE_ONCE (vma->tile_invalidated, vma->tile_mask); +return ret; +} + +/** +* xe_vm_invalidate_vma - invalidate GPU mappings for VMA without a lock +* @vma: VMA to invalidate +* +* Walks a list of page tables leaves which it memset the entries owned by this +* VMA to zero, invalidates the TLBs, and block until TLBs invalidation is +* complete. +* +* Returns 0 for success, negative error code otherwise. +*/ +int xe_vm_invalidate_vma (struct xe_vma *vma) +{ +struct xe_tlb_inval_batch batch; +int ret; -if (!ret) -xe_tlb_inval_batch_wait (&batch); + ret =xe_vm_invalidate_vma_submit (vma, &batch); +if (ret) +return ret; +xe_tlb_inval_batch_wait (&batch);return ret; }
drivers/gpu/drm/xe/xe_vm.h +2 -0
@@ -242,6 +242,8 @@ struct dma_fence *xe_vm_range_unbind(struct xe_vm *vm,int xe_vm_invalidate_vma (struct xe_vma *vma); +int xe_vm_invalidate_vma_submit (struct xe_vma *vma,struct xe_tlb_inval_batch *batch); +int xe_vm_validate_protected (struct xe_vm *vm);static inline void xe_vm_queue_rebind_worker (struct xe_vm *vm)
Signature · 1 line
2.53.0
Re: [PATCH v4 1/4] mm/mmu_notifier: Allow two-pass struct mmu_interval_notifiers
In reply to Thomas HellströmQuoted 55 lines · Thomas Hellström
GPU use-cases for
mmu_interval_notifierswith hmm often involve starting a gpu operation and then waiting for it to complete. These operations are typically context preemption or TLB flushing.With single-pass notifiers per GPU this doesn't scale in multi-gpu scenarios. In those scenarios we'd want to first start preemption- or TLB flushing on all GPUs and as a second pass wait for them to complete.
One can do this on per-driver basis multiplexing per-driver notifiers but that would mean sharing the notifier "user" lock across all GPUs and that doesn't scale well either, so adding support for multi-pass in the core appears to be the right choice.
Implement two-pass capability in the
mmu_interval_notifier. Use a linked list for the final passes to minimize the impact for use-cases that don't need the multi-pass functionality by avoiding a second interval tree walk, and to be able to easily pass data between the two passes.v1:
- Restrict to two passes (Jason Gunthorpe)
- Improve on documentation (Jason Gunthorpe)
- Improve on function naming (Alistair Popple)
v2:
- Include theinvalidate_finish()callback in the
structmmu_interval_notifier_ops.
- Update documentation (GitHub Copilot:claude-sonnet-4.6)
- Use lockless list for list management.
v3:
- Update kerneldoc for the structmmu_interval_notifier_finish::listmember (Matthew Brost)
- Add aWARN_ON_ONCE()checking for NULLinvalidate_finish()op if ifinvalidate_start()is non-NULL. (Matthew Brost)
v4:
- Addressed documentation review comments by David Hildenbrand.Cc Matthew Brost <[email protected]>Cc Christian König <[email protected]>Cc David Hildenbrand <[email protected]>Cc Lorenzo Stoakes <[email protected]>Cc Liam R. Howlett <[email protected]>Cc Vlastimil Babka <[email protected]>Cc Mike Rapoport <[email protected]>Cc Suren Baghdasaryan <[email protected]>Cc Michal Hocko <[email protected]>Cc Jason Gunthorpe <[email protected]>Cc Andrew Morton <[email protected]>Cc Simona Vetter <[email protected]>Cc Dave Airlie <[email protected]>Cc Alistair Popple <[email protected]>Cc <[email protected]>Cc <[email protected]>Cc <[email protected]>
Quoted 3 lines
Assisted-by GitHub Copilot:claude-sonnet-4.6 # Documentation only.Signed-off-by Thomas Hellström <[email protected]>---
LGTM, thanks!
Signature · 3 lines
Cheers, David
✗ CI.checkpatch: warning for Two-pass MMU interval notifiers (rev4)
In reply to Thomas Hellström== Series Details ==
== Series Details ==
Series: Two-pass MMU interval notifiers (rev4)
URL : https://patchwork.freedesktop.org/series/153280/
State : warning
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master 1f57ba1afceae32108bd24770069f764d940a0e4
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit a2877005bac5f0443faf5e55d52181e709fe61dc
Author: Thomas Hellström <[email protected]> Date: Thu Mar 5 10:39:09 2026 +0100
drm/xe/userptr: Defer Waiting for TLB invalidation to the second pass if possible
Now that the two-pass notifier flow uses xe_vma_userptr_do_inval() for the fence-wait + TLB-invalidate work, extend it to support a further deferred TLB wait:
- xe_vma_userptr_do_inval(): when the embedded finish handle is free, submit the TLB invalidation asynchronously (xe_vm_invalidate_vma_submit) and return &userptr->finish so the mmu_notifier core schedules a third pass. When the handle is occupied by a concurrent invalidation, fall back to the synchronous xe_vm_invalidate_vma() path.
- xe_vma_userptr_complete_tlb_inval(): new helper called from invalidate_finish when tlb_inval_submitted is set. Waits for the previously submitted batch and unmaps the gpusvm pages.
xe_vma_userptr_invalidate_finish() dispatches between the two helpers via tlb_inval_submitted, making the three possible flows explicit:
pass1 (fences pending) -> invalidate_finish -> do_inval (sync TLB)
pass1 (fences done) -> do_inval -> invalidate_finish
-> complete_tlb_inval (deferred TLB)
pass1 (finish occupied) -> do_inval (sync TLB, inline)
In multi-GPU scenarios this allows TLB flushes to be submitted on all GPUs in one pass before any of them are waited on.
Also adds xe_vm_invalidate_vma_submit() which submits the TLB range invalidation without blocking, populating a xe_tlb_inval_batch that the caller waits on separately.
v3:
- Add locking asserts and notifier state asserts (Matt Brost)
- Update the locking documentation of the notifier state members (Matt Brost)
- Remove unrelated code formatting changes (Matt Brost)
+ /mt/dim checkpatch 79792a2fc5d37b5446e543f1de05158ab0f551c9 drm-intel c53fa8cf81e2 mm/mmu_notifier: Allow two-pass struct mmu_interval_notifiers -:64: WARNING:BAD_SIGN_OFF: Non-standard signature: Assisted-by:
#64:
-:64: ERROR:BAD_SIGN_OFF: Unrecognized email address: 'GitHub Copilot:claude-sonnet-4.6 # Documentation only.' #64:
total: 1 errors, 1 warnings, 0 checks, 173 lines checked 1b5dd69f6e15 drm/xe/userptr: Convert invalidation to two-pass MMU notifier -:38: WARNING:BAD_SIGN_OFF: Non-standard signature: Assisted-by:
#38:
-:38: ERROR:BAD_SIGN_OFF: Unrecognized email address: 'GitHub Copilot:claude-sonnet-4.6' #38:
total: 1 errors, 1 warnings, 0 checks, 191 lines checked 8319fdd4b018 drm/xe: Split TLB invalidation into submit and wait steps -:26: WARNING:BAD_SIGN_OFF: Non-standard signature: Assisted-by:
#26:
-:26: ERROR:BAD_SIGN_OFF: Unrecognized email address: 'GitHub Copilot:claude-sonnet-4.6' #26:
total: 1 errors, 1 warnings, 0 checks, 282 lines checkeda2877005bac5 drm/xe/userptr: Defer Waiting for TLB invalidation to the second pass if possible -:45: WARNING:BAD_SIGN_OFF: Non-standard signature: Assisted-by:
#45:
-:45: ERROR:BAD_SIGN_OFF: Unrecognized email address: 'GitHub Copilot:claude-sonnet-4.6' #45:
total: 1 errors, 1 warnings, 0 checks, 219 lines checked
Patchwork
CI✓ CI.KUnit: success for Two-pass MMU interval notifiers (rev4)
In reply to Thomas Hellström== Series Details ==
== Series Details ==
Series: Two-pass MMU interval notifiers (rev4)
URL : https://patchwork.freedesktop.org/series/153280/
State : success
== Summary ==
+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig [09:49:19] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [09:49:23] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [09:49:53] Starting KUnit Kernel (1/1)... [09:49:53] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [09:49:54] ================== guc_buf (11 subtests) =================== [09:49:54] [PASSED] test_smallest [09:49:54] [PASSED] test_largest [09:49:54] [PASSED] test_granular [09:49:54] [PASSED] test_unique [09:49:54] [PASSED] test_overlap [09:49:54] [PASSED] test_reusable [09:49:54] [PASSED] test_too_big [09:49:54] [PASSED] test_flush [09:49:54] [PASSED] test_lookup [09:49:54] [PASSED] test_data [09:49:54] [PASSED] test_class [09:49:54] ===================== [PASSED] guc_buf ===================== [09:49:54] =================== guc_dbm (7 subtests) =================== [09:49:54] [PASSED] test_empty [09:49:54] [PASSED] test_default [09:49:54] ======================== test_size ======================== [09:49:54] [PASSED] 4 [09:49:54] [PASSED] 8 [09:49:54] [PASSED] 32 [09:49:54] [PASSED] 256 [09:49:54] ==================== [PASSED] test_size ==================== [09:49:54] ======================= test_reuse ======================== [09:49:54] [PASSED] 4 [09:49:54] [PASSED] 8 [09:49:54] [PASSED] 32 [09:49:54] [PASSED] 256 [09:49:54] =================== [PASSED] test_reuse ==================== [09:49:54] =================== test_range_overlap ==================== [09:49:54] [PASSED] 4 [09:49:54] [PASSED] 8 [09:49:54] [PASSED] 32 [09:49:54] [PASSED] 256 [09:49:54] =============== [PASSED] test_range_overlap ================ [09:49:54] =================== test_range_compact ==================== [09:49:54] [PASSED] 4 [09:49:54] [PASSED] 8 [09:49:54] [PASSED] 32 [09:49:54] [PASSED] 256 [09:49:54] =============== [PASSED] test_range_compact ================ [09:49:54] ==================== test_range_spare ===================== [09:49:54] [PASSED] 4 [09:49:54] [PASSED] 8 [09:49:54] [PASSED] 32 [09:49:54] [PASSED] 256 [09:49:54] ================ [PASSED] test_range_spare ================= [09:49:54] ===================== [PASSED] guc_dbm ===================== [09:49:54] =================== guc_idm (6 subtests) =================== [09:49:54] [PASSED] bad_init [09:49:54] [PASSED] no_init [09:49:54] [PASSED] init_fini [09:49:54] [PASSED] check_used [09:49:54] [PASSED] check_quota [09:49:54] [PASSED] check_all [09:49:54] ===================== [PASSED] guc_idm ===================== [09:49:54] ================== no_relay (3 subtests) =================== [09:49:54] [PASSED] xe_drops_guc2pf_if_not_ready [09:49:54] [PASSED] xe_drops_guc2vf_if_not_ready [09:49:54] [PASSED] xe_rejects_send_if_not_ready [09:49:54] ==================== [PASSED] no_relay ===================== [09:49:54] ================== pf_relay (14 subtests) ================== [09:49:54] [PASSED] pf_rejects_guc2pf_too_short [09:49:54] [PASSED] pf_rejects_guc2pf_too_long [09:49:54] [PASSED] pf_rejects_guc2pf_no_payload [09:49:54] [PASSED] pf_fails_no_payload [09:49:54] [PASSED] pf_fails_bad_origin [09:49:54] [PASSED] pf_fails_bad_type [09:49:54] [PASSED] pf_txn_reports_error [09:49:54] [PASSED] pf_txn_sends_pf2guc [09:49:54] [PASSED] pf_sends_pf2guc [09:49:54] [SKIPPED] pf_loopback_nop [09:49:54] [SKIPPED] pf_loopback_echo [09:49:54] [SKIPPED] pf_loopback_fail [09:49:54] [SKIPPED] pf_loopback_busy [09:49:54] [SKIPPED] pf_loopback_retry [09:49:54] ==================== [PASSED] pf_relay ===================== [09:49:54] ================== vf_relay (3 subtests) =================== [09:49:54] [PASSED] vf_rejects_guc2vf_too_short [09:49:54] [PASSED] vf_rejects_guc2vf_too_long [09:49:54] [PASSED] vf_rejects_guc2vf_no_payload [09:49:54] ==================== [PASSED] vf_relay ===================== [09:49:54] ================ pf_gt_config (9 subtests) ================= [09:49:54] [PASSED] fair_contexts_1vf [09:49:54] [PASSED] fair_doorbells_1vf [09:49:54] [PASSED] fair_ggtt_1vf [09:49:54] ====================== fair_vram_1vf ====================== [09:49:54] [PASSED] 3.50 GiB [09:49:54] [PASSED] 11.5 GiB [09:49:54] [PASSED] 15.5 GiB [09:49:54] [PASSED] 31.5 GiB [09:49:54] [PASSED] 63.5 GiB [09:49:54] [PASSED] 1.91 GiB [09:49:54] ================== [PASSED] fair_vram_1vf ================== [09:49:54] ================ fair_vram_1vf_admin_only ================= [09:49:54] [PASSED] 3.50 GiB [09:49:54] [PASSED] 11.5 GiB [09:49:54] [PASSED] 15.5 GiB [09:49:54] [PASSED] 31.5 GiB [09:49:54] [PASSED] 63.5 GiB [09:49:54] [PASSED] 1.91 GiB [09:49:54] ============ [PASSED] fair_vram_1vf_admin_only ============= [09:49:54] ====================== fair_contexts ====================== [09:49:54] [PASSED] 1 VF [09:49:54] [PASSED] 2 VFs [09:49:54] [PASSED] 3 VFs [09:49:54] [PASSED] 4 VFs [09:49:54] [PASSED] 5 VFs [09:49:54] [PASSED] 6 VFs [09:49:54] [PASSED] 7 VFs [09:49:54] [PASSED] 8 VFs [09:49:54] [PASSED] 9 VFs [09:49:54] [PASSED] 10 VFs [09:49:54] [PASSED] 11 VFs [09:49:54] [PASSED] 12 VFs [09:49:54] [PASSED] 13 VFs [09:49:54] [PASSED] 14 VFs [09:49:54] [PASSED] 15 VFs [09:49:54] [PASSED] 16 VFs [09:49:54] [PASSED] 17 VFs [09:49:54] [PASSED] 18 VFs [09:49:54] [PASSED] 19 VFs [09:49:54] [PASSED] 20 VFs [09:49:54] [PASSED] 21 VFs [09:49:54] [PASSED] 22 VFs [09:49:54] [PASSED] 23 VFs [09:49:54] [PASSED] 24 VFs [09:49:54] [PASSED] 25 VFs [09:49:54] [PASSED] 26 VFs [09:49:54] [PASSED] 27 VFs [09:49:54] [PASSED] 28 VFs [09:49:54] [PASSED] 29 VFs [09:49:54] [PASSED] 30 VFs [09:49:54] [PASSED] 31 VFs [09:49:54] [PASSED] 32 VFs [09:49:54] [PASSED] 33 VFs [09:49:54] [PASSED] 34 VFs [09:49:54] [PASSED] 35 VFs [09:49:54] [PASSED] 36 VFs [09:49:54] [PASSED] 37 VFs [09:49:54] [PASSED] 38 VFs [09:49:54] [PASSED] 39 VFs [09:49:54] [PASSED] 40 VFs [09:49:54] [PASSED] 41 VFs [09:49:54] [PASSED] 42 VFs [09:49:54] [PASSED] 43 VFs [09:49:54] [PASSED] 44 VFs [09:49:54] [PASSED] 45 VFs [09:49:54] [PASSED] 46 VFs [09:49:54] [PASSED] 47 VFs [09:49:54] [PASSED] 48 VFs [09:49:54] [PASSED] 49 VFs [09:49:54] [PASSED] 50 VFs [09:49:54] [PASSED] 51 VFs [09:49:54] [PASSED] 52 VFs [09:49:54] [PASSED] 53 VFs [09:49:54] [PASSED] 54 VFs [09:49:54] [PASSED] 55 VFs [09:49:54] [PASSED] 56 VFs [09:49:54] [PASSED] 57 VFs [09:49:54] [PASSED] 58 VFs [09:49:54] [PASSED] 59 VFs [09:49:54] [PASSED] 60 VFs [09:49:54] [PASSED] 61 VFs [09:49:54] [PASSED] 62 VFs [09:49:54] [PASSED] 63 VFs [09:49:54] ================== [PASSED] fair_contexts ================== [09:49:54] ===================== fair_doorbells ====================== [09:49:54] [PASSED] 1 VF [09:49:54] [PASSED] 2 VFs [09:49:54] [PASSED] 3 VFs [09:49:54] [PASSED] 4 VFs [09:49:54] [PASSED] 5 VFs [09:49:54] [PASSED] 6 VFs [09:49:54] [PASSED] 7 VFs [09:49:54] [PASSED] 8 VFs [09:49:54] [PASSED] 9 VFs [09:49:54] [PASSED] 10 VFs [09:49:54] [PASSED] 11 VFs [09:49:54] [PASSED] 12 VFs [09:49:54] [PASSED] 13 VFs [09:49:54] [PASSED] 14 VFs [09:49:54] [PASSED] 15 VFs [09:49:54] [PASSED] 16 VFs [09:49:54] [PASSED] 17 VFs [09:49:54] [PASSED] 18 VFs [09:49:54] [PASSED] 19 VFs [09:49:54] [PASSED] 20 VFs [09:49:54] [PASSED] 21 VFs [09:49:54] [PASSED] 22 VFs [09:49:54] [PASSED] 23 VFs [09:49:54] [PASSED] 24 VFs [09:49:54] [PASSED] 25 VFs [09:49:54] [PASSED] 26 VFs [09:49:54] [PASSED] 27 VFs [09:49:54] [PASSED] 28 VFs [09:49:54] [PASSED] 29 VFs [09:49:54] [PASSED] 30 VFs [09:49:54] [PASSED] 31 VFs [09:49:54] [PASSED] 32 VFs [09:49:54] [PASSED] 33 VFs [09:49:54] [PASSED] 34 VFs [09:49:54] [PASSED] 35 VFs [09:49:54] [PASSED] 36 VFs [09:49:54] [PASSED] 37 VFs [09:49:54] [PASSED] 38 VFs [09:49:54] [PASSED] 39 VFs [09:49:54] [PASSED] 40 VFs [09:49:54] [PASSED] 41 VFs [09:49:54] [PASSED] 42 VFs [09:49:54] [PASSED] 43 VFs [09:49:54] [PASSED] 44 VFs [09:49:54] [PASSED] 45 VFs [09:49:54] [PASSED] 46 VFs [09:49:54] [PASSED] 47 VFs [09:49:54] [PASSED] 48 VFs [09:49:54] [PASSED] 49 VFs [09:49:54] [PASSED] 50 VFs [09:49:54] [PASSED] 51 VFs [09:49:54] [PASSED] 52 VFs [09:49:54] [PASSED] 53 VFs [09:49:54] [PASSED] 54 VFs [09:49:54] [PASSED] 55 VFs [09:49:54] [PASSED] 56 VFs [09:49:54] [PASSED] 57 VFs [09:49:54] [PASSED] 58 VFs [09:49:54] [PASSED] 59 VFs [09:49:54] [PASSED] 60 VFs [09:49:54] [PASSED] 61 VFs [09:49:54] [PASSED] 62 VFs [09:49:54] [PASSED] 63 VFs [09:49:54] ================= [PASSED] fair_doorbells ================== [09:49:54] ======================== fair_ggtt ======================== [09:49:54] [PASSED] 1 VF [09:49:54] [PASSED] 2 VFs [09:49:54] [PASSED] 3 VFs [09:49:54] [PASSED] 4 VFs [09:49:54] [PASSED] 5 VFs [09:49:54] [PASSED] 6 VFs [09:49:54] [PASSED] 7 VFs [09:49:54] [PASSED] 8 VFs [09:49:54] [PASSED] 9 VFs [09:49:54] [PASSED] 10 VFs [09:49:54] [PASSED] 11 VFs [09:49:54] [PASSED] 12 VFs [09:49:54] [PASSED] 13 VFs [09:49:54] [PASSED] 14 VFs [09:49:54] [PASSED] 15 VFs [09:49:54] [PASSED] 16 VFs [09:49:54] [PASSED] 17 VFs [09:49:54] [PASSED] 18 VFs [09:49:54] [PASSED] 19 VFs [09:49:54] [PASSED] 20 VFs [09:49:54] [PASSED] 21 VFs [09:49:54] [PASSED] 22 VFs [09:49:54] [PASSED] 23 VFs [09:49:54] [PASSED] 24 VFs [09:49:54] [PASSED] 25 VFs [09:49:54] [PASSED] 26 VFs [09:49:54] [PASSED] 27 VFs [09:49:54] [PASSED] 28 VFs [09:49:54] [PASSED] 29 VFs [09:49:54] [PASSED] 30 VFs [09:49:54] [PASSED] 31 VFs [09:49:54] [PASSED] 32 VFs [09:49:54] [PASSED] 33 VFs [09:49:54] [PASSED] 34 VFs [09:49:54] [PASSED] 35 VFs [09:49:54] [PASSED] 36 VFs [09:49:54] [PASSED] 37 VFs [09:49:54] [PASSED] 38 VFs [09:49:54] [PASSED] 39 VFs [09:49:54] [PASSED] 40 VFs [09:49:54] [PASSED] 41 VFs [09:49:54] [PASSED] 42 VFs [09:49:54] [PASSED] 43 VFs [09:49:54] [PASSED] 44 VFs [09:49:54] [PASSED] 45 VFs [09:49:54] [PASSED] 46 VFs [09:49:54] [PASSED] 47 VFs [09:49:54] [PASSED] 48 VFs [09:49:54] [PASSED] 49 VFs [09:49:54] [PASSED] 50 VFs [09:49:54] [PASSED] 51 VFs [09:49:54] [PASSED] 52 VFs [09:49:54] [PASSED] 53 VFs [09:49:54] [PASSED] 54 VFs [09:49:54] [PASSED] 55 VFs [09:49:54] [PASSED] 56 VFs [09:49:54] [PASSED] 57 VFs [09:49:54] [PASSED] 58 VFs [09:49:54] [PASSED] 59 VFs [09:49:54] [PASSED] 60 VFs [09:49:54] [PASSED] 61 VFs [09:49:54] [PASSED] 62 VFs [09:49:54] [PASSED] 63 VFs [09:49:54] ==================== [PASSED] fair_ggtt ==================== [09:49:54] ======================== fair_vram ======================== [09:49:54] [PASSED] 1 VF [09:49:54] [PASSED] 2 VFs [09:49:54] [PASSED] 3 VFs [09:49:54] [PASSED] 4 VFs [09:49:54] [PASSED] 5 VFs [09:49:54] [PASSED] 6 VFs [09:49:54] [PASSED] 7 VFs [09:49:54] [PASSED] 8 VFs [09:49:54] [PASSED] 9 VFs [09:49:54] [PASSED] 10 VFs [09:49:54] [PASSED] 11 VFs [09:49:54] [PASSED] 12 VFs [09:49:54] [PASSED] 13 VFs [09:49:54] [PASSED] 14 VFs [09:49:54] [PASSED] 15 VFs [09:49:54] [PASSED] 16 VFs [09:49:54] [PASSED] 17 VFs [09:49:54] [PASSED] 18 VFs [09:49:54] [PASSED] 19 VFs [09:49:54] [PASSED] 20 VFs [09:49:54] [PASSED] 21 VFs [09:49:54] [PASSED] 22 VFs [09:49:54] [PASSED] 23 VFs [09:49:54] [PASSED] 24 VFs [09:49:54] [PASSED] 25 VFs [09:49:54] [PASSED] 26 VFs [09:49:54] [PASSED] 27 VFs [09:49:54] [PASSED] 28 VFs [09:49:54] [PASSED] 29 VFs [09:49:54] [PASSED] 30 VFs [09:49:54] [PASSED] 31 VFs [09:49:54] [PASSED] 32 VFs [09:49:54] [PASSED] 33 VFs [09:49:54] [PASSED] 34 VFs [09:49:54] [PASSED] 35 VFs [09:49:54] [PASSED] 36 VFs [09:49:54] [PASSED] 37 VFs [09:49:54] [PASSED] 38 VFs [09:49:54] [PASSED] 39 VFs [09:49:54] [PASSED] 40 VFs [09:49:54] [PASSED] 41 VFs [09:49:54] [PASSED] 42 VFs [09:49:54] [PASSED] 43 VFs [09:49:54] [PASSED] 44 VFs [09:49:54] [PASSED] 45 VFs [09:49:54] [PASSED] 46 VFs [09:49:54] [PASSED] 47 VFs [09:49:54] [PASSED] 48 VFs [09:49:54] [PASSED] 49 VFs [09:49:54] [PASSED] 50 VFs [09:49:54] [PASSED] 51 VFs [09:49:54] [PASSED] 52 VFs [09:49:54] [PASSED] 53 VFs [09:49:54] [PASSED] 54 VFs [09:49:54] [PASSED] 55 VFs [09:49:54] [PASSED] 56 VFs [09:49:54] [PASSED] 57 VFs [09:49:54] [PASSED] 58 VFs [09:49:54] [PASSED] 59 VFs [09:49:54] [PASSED] 60 VFs [09:49:54] [PASSED] 61 VFs [09:49:54] [PASSED] 62 VFs [09:49:54] [PASSED] 63 VFs [09:49:54] ==================== [PASSED] fair_vram ==================== [09:49:54] ================== [PASSED] pf_gt_config =================== [09:49:54] ===================== lmtt (1 subtest) ===================== [09:49:54] ======================== test_ops ========================= [09:49:54] [PASSED] 2-level [09:49:54] [PASSED] multi-level [09:49:54] ==================== [PASSED] test_ops ===================== [09:49:54] ====================== [PASSED] lmtt ======================= [09:49:54] ================= pf_service (11 subtests) ================= [09:49:54] [PASSED] pf_negotiate_any [09:49:54] [PASSED] pf_negotiate_base_match [09:49:54] [PASSED] pf_negotiate_base_newer [09:49:54] [PASSED] pf_negotiate_base_next [09:49:54] [SKIPPED] pf_negotiate_base_older [09:49:54] [PASSED] pf_negotiate_base_prev [09:49:54] [PASSED] pf_negotiate_latest_match [09:49:54] [PASSED] pf_negotiate_latest_newer [09:49:54] [PASSED] pf_negotiate_latest_next [09:49:54] [SKIPPED] pf_negotiate_latest_older [09:49:54] [SKIPPED] pf_negotiate_latest_prev [09:49:54] =================== [PASSED] pf_service ==================== [09:49:54] ================= xe_guc_g2g (2 subtests) ================== [09:49:54] ============== xe_live_guc_g2g_kunit_default ============== [09:49:54] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ========== [09:49:54] ============== xe_live_guc_g2g_kunit_allmem =============== [09:49:54] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ========== [09:49:54] =================== [SKIPPED] xe_guc_g2g =================== [09:49:54] =================== xe_mocs (2 subtests) =================== [09:49:54] ================ xe_live_mocs_kernel_kunit ================ [09:49:54] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============ [09:49:54] ================ xe_live_mocs_reset_kunit ================= [09:49:54] ============ [SKIPPED] xe_live_mocs_reset_kunit ============ [09:49:54] ==================== [SKIPPED] xe_mocs ===================== [09:49:54] ================= xe_migrate (2 subtests) ================== [09:49:54] ================= xe_migrate_sanity_kunit ================= [09:49:54] ============ [SKIPPED] xe_migrate_sanity_kunit ============= [09:49:54] ================== xe_validate_ccs_kunit ================== [09:49:54] ============= [SKIPPED] xe_validate_ccs_kunit ============== [09:49:54] =================== [SKIPPED] xe_migrate =================== [09:49:54] ================== xe_dma_buf (1 subtest) ================== [09:49:54] ==================== xe_dma_buf_kunit ===================== [09:49:54] ================ [SKIPPED] xe_dma_buf_kunit ================ [09:49:54] =================== [SKIPPED] xe_dma_buf =================== [09:49:54] ================= xe_bo_shrink (1 subtest) ================= [09:49:54] =================== xe_bo_shrink_kunit ==================== [09:49:54] =============== [SKIPPED] xe_bo_shrink_kunit =============== [09:49:54] ================== [SKIPPED] xe_bo_shrink ================== [09:49:54] ==================== xe_bo (2 subtests) ==================== [09:49:54] ================== xe_ccs_migrate_kunit =================== [09:49:54] ============== [SKIPPED] xe_ccs_migrate_kunit ============== [09:49:54] ==================== xe_bo_evict_kunit ==================== [09:49:54] =============== [SKIPPED] xe_bo_evict_kunit ================ [09:49:54] ===================== [SKIPPED] xe_bo ====================== [09:49:54] ==================== args (13 subtests) ==================== [09:49:54] [PASSED] count_args_test [09:49:54] [PASSED] call_args_example [09:49:54] [PASSED] call_args_test [09:49:54] [PASSED] drop_first_arg_example [09:49:54] [PASSED] drop_first_arg_test [09:49:54] [PASSED] first_arg_example [09:49:54] [PASSED] first_arg_test [09:49:54] [PASSED] last_arg_example [09:49:54] [PASSED] last_arg_test [09:49:54] [PASSED] pick_arg_example [09:49:54] [PASSED] if_args_example [09:49:54] [PASSED] if_args_test [09:49:54] [PASSED] sep_comma_example [09:49:54] ====================== [PASSED] args ======================= [09:49:54] =================== xe_pci (3 subtests) ==================== [09:49:54] ==================== check_graphics_ip ==================== [09:49:54] [PASSED] 12.00 Xe_LP [09:49:54] [PASSED] 12.10 Xe_LP+ [09:49:54] [PASSED] 12.55 Xe_HPG [09:49:54] [PASSED] 12.60 Xe_HPC [09:49:54] [PASSED] 12.70 Xe_LPG [09:49:54] [PASSED] 12.71 Xe_LPG [09:49:54] [PASSED] 12.74 Xe_LPG+ [09:49:54] [PASSED] 20.01 Xe2_HPG [09:49:54] [PASSED] 20.02 Xe2_HPG [09:49:54] [PASSED] 20.04 Xe2_LPG [09:49:54] [PASSED] 30.00 Xe3_LPG [09:49:54] [PASSED] 30.01 Xe3_LPG [09:49:54] [PASSED] 30.03 Xe3_LPG [09:49:54] [PASSED] 30.04 Xe3_LPG [09:49:54] [PASSED] 30.05 Xe3_LPG [09:49:54] [PASSED] 35.10 Xe3p_LPG [09:49:54] [PASSED] 35.11 Xe3p_XPC [09:49:54] ================ [PASSED] check_graphics_ip ================ [09:49:54] ===================== check_media_ip ====================== [09:49:54] [PASSED] 12.00 Xe_M [09:49:54] [PASSED] 12.55 Xe_HPM [09:49:54] [PASSED] 13.00 Xe_LPM+ [09:49:54] [PASSED] 13.01 Xe2_HPM [09:49:54] [PASSED] 20.00 Xe2_LPM [09:49:54] [PASSED] 30.00 Xe3_LPM [09:49:54] [PASSED] 30.02 Xe3_LPM [09:49:54] [PASSED] 35.00 Xe3p_LPM [09:49:54] [PASSED] 35.03 Xe3p_HPM [09:49:54] ================= [PASSED] check_media_ip ================== [09:49:54] =================== check_platform_desc =================== [09:49:54] [PASSED] 0x9A60 (TIGERLAKE) [09:49:54] [PASSED] 0x9A68 (TIGERLAKE) [09:49:54] [PASSED] 0x9A70 (TIGERLAKE) [09:49:54] [PASSED] 0x9A40 (TIGERLAKE) [09:49:54] [PASSED] 0x9A49 (TIGERLAKE) [09:49:54] [PASSED] 0x9A59 (TIGERLAKE) [09:49:54] [PASSED] 0x9A78 (TIGERLAKE) [09:49:54] [PASSED] 0x9AC0 (TIGERLAKE) [09:49:54] [PASSED] 0x9AC9 (TIGERLAKE) [09:49:54] [PASSED] 0x9AD9 (TIGERLAKE) [09:49:54] [PASSED] 0x9AF8 (TIGERLAKE) [09:49:54] [PASSED] 0x4C80 (ROCKETLAKE) [09:49:54] [PASSED] 0x4C8A (ROCKETLAKE) [09:49:54] [PASSED] 0x4C8B (ROCKETLAKE) [09:49:54] [PASSED] 0x4C8C (ROCKETLAKE) [09:49:54] [PASSED] 0x4C90 (ROCKETLAKE) [09:49:54] [PASSED] 0x4C9A (ROCKETLAKE) [09:49:54] [PASSED] 0x4680 (ALDERLAKE_S) [09:49:54] [PASSED] 0x4682 (ALDERLAKE_S) [09:49:54] [PASSED] 0x4688 (ALDERLAKE_S) [09:49:54] [PASSED] 0x468A (ALDERLAKE_S) [09:49:54] [PASSED] 0x468B (ALDERLAKE_S) [09:49:54] [PASSED] 0x4690 (ALDERLAKE_S) [09:49:54] [PASSED] 0x4692 (ALDERLAKE_S) [09:49:54] [PASSED] 0x4693 (ALDERLAKE_S) [09:49:54] [PASSED] 0x46A0 (ALDERLAKE_P) [09:49:54] [PASSED] 0x46A1 (ALDERLAKE_P) [09:49:54] [PASSED] 0x46A2 (ALDERLAKE_P) [09:49:54] [PASSED] 0x46A3 (ALDERLAKE_P) [09:49:54] [PASSED] 0x46A6 (ALDERLAKE_P) [09:49:54] [PASSED] 0x46A8 (ALDERLAKE_P) [09:49:54] [PASSED] 0x46AA (ALDERLAKE_P) [09:49:54] [PASSED] 0x462A (ALDERLAKE_P) [09:49:54] [PASSED] 0x4626 (ALDERLAKE_P) [09:49:54] [PASSED] 0x4628 (ALDERLAKE_P) [09:49:54] [PASSED] 0x46B0 (ALDERLAKE_P) [09:49:54] [PASSED] 0x46B1 (ALDERLAKE_P) [09:49:54] [PASSED] 0x46B2 (ALDERLAKE_P) [09:49:54] [PASSED] 0x46B3 (ALDERLAKE_P) [09:49:54] [PASSED] 0x46C0 (ALDERLAKE_P) [09:49:54] [PASSED] 0x46C1 (ALDERLAKE_P) [09:49:54] [PASSED] 0x46C2 (ALDERLAKE_P) [09:49:54] [PASSED] 0x46C3 (ALDERLAKE_P) [09:49:54] [PASSED] 0x46D0 (ALDERLAKE_N) [09:49:54] [PASSED] 0x46D1 (ALDERLAKE_N) [09:49:54] [PASSED] 0x46D2 (ALDERLAKE_N) [09:49:54] [PASSED] 0x46D3 (ALDERLAKE_N) [09:49:54] [PASSED] 0x46D4 (ALDERLAKE_N) [09:49:54] [PASSED] 0xA721 (ALDERLAKE_P) [09:49:54] [PASSED] 0xA7A1 (ALDERLAKE_P) [09:49:54] [PASSED] 0xA7A9 (ALDERLAKE_P) [09:49:54] [PASSED] 0xA7AC (ALDERLAKE_P) [09:49:54] [PASSED] 0xA7AD (ALDERLAKE_P) [09:49:54] [PASSED] 0xA720 (ALDERLAKE_P) [09:49:54] [PASSED] 0xA7A0 (ALDERLAKE_P) [09:49:54] [PASSED] 0xA7A8 (ALDERLAKE_P) [09:49:54] [PASSED] 0xA7AA (ALDERLAKE_P) [09:49:54] [PASSED] 0xA7AB (ALDERLAKE_P) [09:49:54] [PASSED] 0xA780 (ALDERLAKE_S) [09:49:54] [PASSED] 0xA781 (ALDERLAKE_S) [09:49:54] [PASSED] 0xA782 (ALDERLAKE_S) [09:49:54] [PASSED] 0xA783 (ALDERLAKE_S) [09:49:54] [PASSED] 0xA788 (ALDERLAKE_S) [09:49:54] [PASSED] 0xA789 (ALDERLAKE_S) [09:49:54] [PASSED] 0xA78A (ALDERLAKE_S) [09:49:54] [PASSED] 0xA78B (ALDERLAKE_S) [09:49:54] [PASSED] 0x4905 (DG1) [09:49:54] [PASSED] 0x4906 (DG1) [09:49:54] [PASSED] 0x4907 (DG1) [09:49:54] [PASSED] 0x4908 (DG1) [09:49:54] [PASSED] 0x4909 (DG1) [09:49:54] [PASSED] 0x56C0 (DG2) [09:49:54] [PASSED] 0x56C2 (DG2) [09:49:54] [PASSED] 0x56C1 (DG2) [09:49:54] [PASSED] 0x7D51 (METEORLAKE) [09:49:54] [PASSED] 0x7DD1 (METEORLAKE) [09:49:54] [PASSED] 0x7D41 (METEORLAKE) [09:49:54] [PASSED] 0x7D67 (METEORLAKE) [09:49:54] [PASSED] 0xB640 (METEORLAKE) [09:49:54] [PASSED] 0x56A0 (DG2) [09:49:54] [PASSED] 0x56A1 (DG2) [09:49:54] [PASSED] 0x56A2 (DG2) [09:49:54] [PASSED] 0x56BE (DG2) [09:49:54] [PASSED] 0x56BF (DG2) [09:49:54] [PASSED] 0x5690 (DG2) [09:49:54] [PASSED] 0x5691 (DG2) [09:49:54] [PASSED] 0x5692 (DG2) [09:49:54] [PASSED] 0x56A5 (DG2) [09:49:54] [PASSED] 0x56A6 (DG2) [09:49:54] [PASSED] 0x56B0 (DG2) [09:49:54] [PASSED] 0x56B1 (DG2) [09:49:54] [PASSED] 0x56BA (DG2) [09:49:54] [PASSED] 0x56BB (DG2) [09:49:54] [PASSED] 0x56BC (DG2) [09:49:54] [PASSED] 0x56BD (DG2) [09:49:54] [PASSED] 0x5693 (DG2) [09:49:54] [PASSED] 0x5694 (DG2) [09:49:54] [PASSED] 0x5695 (DG2) [09:49:54] [PASSED] 0x56A3 (DG2) [09:49:54] [PASSED] 0x56A4 (DG2) [09:49:54] [PASSED] 0x56B2 (DG2) [09:49:54] [PASSED] 0x56B3 (DG2) [09:49:54] [PASSED] 0x5696 (DG2) [09:49:54] [PASSED] 0x5697 (DG2) [09:49:54] [PASSED] 0xB69 (PVC) [09:49:54] [PASSED] 0xB6E (PVC) [09:49:54] [PASSED] 0xBD4 (PVC) [09:49:54] [PASSED] 0xBD5 (PVC) [09:49:54] [PASSED] 0xBD6 (PVC) [09:49:54] [PASSED] 0xBD7 (PVC) [09:49:54] [PASSED] 0xBD8 (PVC) [09:49:54] [PASSED] 0xBD9 (PVC) [09:49:54] [PASSED] 0xBDA (PVC) [09:49:54] [PASSED] 0xBDB (PVC) [09:49:54] [PASSED] 0xBE0 (PVC) [09:49:54] [PASSED] 0xBE1 (PVC) [09:49:54] [PASSED] 0xBE5 (PVC) [09:49:54] [PASSED] 0x7D40 (METEORLAKE) [09:49:54] [PASSED] 0x7D45 (METEORLAKE) [09:49:54] [PASSED] 0x7D55 (METEORLAKE) [09:49:54] [PASSED] 0x7D60 (METEORLAKE) [09:49:54] [PASSED] 0x7DD5 (METEORLAKE) [09:49:54] [PASSED] 0x6420 (LUNARLAKE) [09:49:54] [PASSED] 0x64A0 (LUNARLAKE) [09:49:54] [PASSED] 0x64B0 (LUNARLAKE) [09:49:54] [PASSED] 0xE202 (BATTLEMAGE) [09:49:54] [PASSED] 0xE209 (BATTLEMAGE) [09:49:54] [PASSED] 0xE20B (BATTLEMAGE) [09:49:54] [PASSED] 0xE20C (BATTLEMAGE) [09:49:54] [PASSED] 0xE20D (BATTLEMAGE) [09:49:54] [PASSED] 0xE210 (BATTLEMAGE) [09:49:54] [PASSED] 0xE211 (BATTLEMAGE) [09:49:54] [PASSED] 0xE212 (BATTLEMAGE) [09:49:54] [PASSED] 0xE216 (BATTLEMAGE) [09:49:54] [PASSED] 0xE220 (BATTLEMAGE) [09:49:54] [PASSED] 0xE221 (BATTLEMAGE) [09:49:54] [PASSED] 0xE222 (BATTLEMAGE) [09:49:54] [PASSED] 0xE223 (BATTLEMAGE) [09:49:54] [PASSED] 0xB080 (PANTHERLAKE) [09:49:54] [PASSED] 0xB081 (PANTHERLAKE) [09:49:54] [PASSED] 0xB082 (PANTHERLAKE) [09:49:54] [PASSED] 0xB083 (PANTHERLAKE) [09:49:54] [PASSED] 0xB084 (PANTHERLAKE) [09:49:54] [PASSED] 0xB085 (PANTHERLAKE) [09:49:54] [PASSED] 0xB086 (PANTHERLAKE) [09:49:54] [PASSED] 0xB087 (PANTHERLAKE) [09:49:54] [PASSED] 0xB08F (PANTHERLAKE) [09:49:54] [PASSED] 0xB090 (PANTHERLAKE) [09:49:54] [PASSED] 0xB0A0 (PANTHERLAKE) [09:49:54] [PASSED] 0xB0B0 (PANTHERLAKE) [09:49:54] [PASSED] 0xFD80 (PANTHERLAKE) [09:49:54] [PASSED] 0xFD81 (PANTHERLAKE) [09:49:54] [PASSED] 0xD740 (NOVALAKE_S) [09:49:54] [PASSED] 0xD741 (NOVALAKE_S) [09:49:54] [PASSED] 0xD742 (NOVALAKE_S) [09:49:54] [PASSED] 0xD743 (NOVALAKE_S) [09:49:54] [PASSED] 0xD744 (NOVALAKE_S) [09:49:54] [PASSED] 0xD745 (NOVALAKE_S) [09:49:54] [PASSED] 0x674C (CRESCENTISLAND) [09:49:54] [PASSED] 0xD750 (NOVALAKE_P) [09:49:54] [PASSED] 0xD751 (NOVALAKE_P) [09:49:54] [PASSED] 0xD752 (NOVALAKE_P) [09:49:54] [PASSED] 0xD753 (NOVALAKE_P) [09:49:54] [PASSED] 0xD754 (NOVALAKE_P) [09:49:54] [PASSED] 0xD755 (NOVALAKE_P) [09:49:54] [PASSED] 0xD756 (NOVALAKE_P) [09:49:54] [PASSED] 0xD757 (NOVALAKE_P) [09:49:54] [PASSED] 0xD75F (NOVALAKE_P) [09:49:54] =============== [PASSED] check_platform_desc =============== [09:49:54] ===================== [PASSED] xe_pci ====================== [09:49:54] =================== xe_rtp (2 subtests) ==================== [09:49:54] =============== xe_rtp_process_to_sr_tests ================ [09:49:54] [PASSED] coalesce-same-reg [09:49:54] [PASSED] no-match-no-add [09:49:54] [PASSED] match-or [09:49:54] [PASSED] match-or-xfail [09:49:54] [PASSED] no-match-no-add-multiple-rules [09:49:54] [PASSED] two-regs-two-entries [09:49:54] [PASSED] clr-one-set-other [09:49:54] [PASSED] set-field [09:49:54] [PASSED] conflict-duplicate stty: 'standard input': Inappropriate ioctl for device [09:49:54] [PASSED] conflict-not-disjoint [09:49:54] [PASSED] conflict-reg-type [09:49:54] =========== [PASSED] xe_rtp_process_to_sr_tests ============ [09:49:54] ================== xe_rtp_process_tests =================== [09:49:54] [PASSED] active1 [09:49:54] [PASSED] active2 [09:49:54] [PASSED] active-inactive [09:49:54] [PASSED] inactive-active [09:49:54] [PASSED] inactive-1st_or_active-inactive [09:49:54] [PASSED] inactive-2nd_or_active-inactive [09:49:54] [PASSED] inactive-last_or_active-inactive [09:49:54] [PASSED] inactive-no_or_active-inactive [09:49:54] ============== [PASSED] xe_rtp_process_tests =============== [09:49:54] ===================== [PASSED] xe_rtp ====================== [09:49:54] ==================== xe_wa (1 subtest) ===================== [09:49:54] ======================== xe_wa_gt ========================= [09:49:54] [PASSED] TIGERLAKE B0 [09:49:54] [PASSED] DG1 A0 [09:49:54] [PASSED] DG1 B0 [09:49:54] [PASSED] ALDERLAKE_S A0 [09:49:54] [PASSED] ALDERLAKE_S B0 [09:49:54] [PASSED] ALDERLAKE_S C0 [09:49:54] [PASSED] ALDERLAKE_S D0 [09:49:54] [PASSED] ALDERLAKE_P A0 [09:49:54] [PASSED] ALDERLAKE_P B0 [09:49:54] [PASSED] ALDERLAKE_P C0 [09:49:54] [PASSED] ALDERLAKE_S RPLS D0 [09:49:54] [PASSED] ALDERLAKE_P RPLU E0 [09:49:54] [PASSED] DG2 G10 C0 [09:49:54] [PASSED] DG2 G11 B1 [09:49:54] [PASSED] DG2 G12 A1 [09:49:54] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0 [09:49:54] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0 [09:49:54] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0 [09:49:54] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0 [09:49:54] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0 [09:49:54] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1 [09:49:54] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0 [09:49:54] ==================== [PASSED] xe_wa_gt ===================== [09:49:54] ====================== [PASSED] xe_wa ====================== [09:49:54] ============================================================ [09:49:54] Testing complete. Ran 597 tests: passed: 579, skipped: 18 [09:49:54] Elapsed time: 35.400s total, 4.175s configuring, 30.606s building, 0.613s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [09:49:54] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [09:49:56] 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 [09:50:20] Starting KUnit Kernel (1/1)... [09:50:20] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [09:50:20] ============ drm_test_pick_cmdline (2 subtests) ============ [09:50:20] [PASSED] drm_test_pick_cmdline_res_1920_1080_60 [09:50:20] =============== drm_test_pick_cmdline_named =============== [09:50:20] [PASSED] NTSC [09:50:20] [PASSED] NTSC-J [09:50:20] [PASSED] PAL [09:50:20] [PASSED] PAL-M [09:50:20] =========== [PASSED] drm_test_pick_cmdline_named =========== [09:50:20] ============== [PASSED] drm_test_pick_cmdline ============== [09:50:20] == drm_test_atomic_get_connector_for_encoder (1 subtest) === [09:50:20] [PASSED] drm_test_drm_atomic_get_connector_for_encoder [09:50:20] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ==== [09:50:20] =========== drm_validate_clone_mode (2 subtests) =========== [09:50:20] ============== drm_test_check_in_clone_mode =============== [09:50:20] [PASSED] in_clone_mode [09:50:20] [PASSED] not_in_clone_mode [09:50:20] ========== [PASSED] drm_test_check_in_clone_mode =========== [09:50:20] =============== drm_test_check_valid_clones =============== [09:50:20] [PASSED] not_in_clone_mode [09:50:20] [PASSED] valid_clone [09:50:20] [PASSED] invalid_clone [09:50:20] =========== [PASSED] drm_test_check_valid_clones =========== [09:50:20] ============= [PASSED] drm_validate_clone_mode ============= [09:50:20] ============= drm_validate_modeset (1 subtest) ============= [09:50:20] [PASSED] drm_test_check_connector_changed_modeset [09:50:20] ============== [PASSED] drm_validate_modeset =============== [09:50:20] ====== drm_test_bridge_get_current_state (2 subtests) ====== [09:50:20] [PASSED] drm_test_drm_bridge_get_current_state_atomic [09:50:20] [PASSED] drm_test_drm_bridge_get_current_state_legacy [09:50:20] ======== [PASSED] drm_test_bridge_get_current_state ======== [09:50:20] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ====== [09:50:20] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic [09:50:20] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled [09:50:20] [PASSED] drm_test_drm_bridge_helper_reset_crtc_legacy [09:50:20] ======== [PASSED] drm_test_bridge_helper_reset_crtc ======== [09:50:20] ============== drm_bridge_alloc (2 subtests) =============== [09:50:20] [PASSED] drm_test_drm_bridge_alloc_basic [09:50:20] [PASSED] drm_test_drm_bridge_alloc_get_put [09:50:20] ================ [PASSED] drm_bridge_alloc ================= [09:50:20] ============= drm_cmdline_parser (40 subtests) ============= [09:50:20] [PASSED] drm_test_cmdline_force_d_only [09:50:20] [PASSED] drm_test_cmdline_force_D_only_dvi [09:50:20] [PASSED] drm_test_cmdline_force_D_only_hdmi [09:50:20] [PASSED] drm_test_cmdline_force_D_only_not_digital [09:50:20] [PASSED] drm_test_cmdline_force_e_only [09:50:20] [PASSED] drm_test_cmdline_res [09:50:20] [PASSED] drm_test_cmdline_res_vesa [09:50:20] [PASSED] drm_test_cmdline_res_vesa_rblank [09:50:20] [PASSED] drm_test_cmdline_res_rblank [09:50:20] [PASSED] drm_test_cmdline_res_bpp [09:50:20] [PASSED] drm_test_cmdline_res_refresh [09:50:20] [PASSED] drm_test_cmdline_res_bpp_refresh [09:50:20] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced [09:50:20] [PASSED] drm_test_cmdline_res_bpp_refresh_margins [09:50:20] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off [09:50:20] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on [09:50:20] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog [09:50:20] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital [09:50:20] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on [09:50:20] [PASSED] drm_test_cmdline_res_margins_force_on [09:50:20] [PASSED] drm_test_cmdline_res_vesa_margins [09:50:20] [PASSED] drm_test_cmdline_name [09:50:20] [PASSED] drm_test_cmdline_name_bpp [09:50:20] [PASSED] drm_test_cmdline_name_option [09:50:20] [PASSED] drm_test_cmdline_name_bpp_option [09:50:20] [PASSED] drm_test_cmdline_rotate_0 [09:50:20] [PASSED] drm_test_cmdline_rotate_90 [09:50:20] [PASSED] drm_test_cmdline_rotate_180 [09:50:20] [PASSED] drm_test_cmdline_rotate_270 [09:50:20] [PASSED] drm_test_cmdline_hmirror [09:50:20] [PASSED] drm_test_cmdline_vmirror [09:50:20] [PASSED] drm_test_cmdline_margin_options [09:50:20] [PASSED] drm_test_cmdline_multiple_options [09:50:20] [PASSED] drm_test_cmdline_bpp_extra_and_option [09:50:20] [PASSED] drm_test_cmdline_extra_and_option [09:50:20] [PASSED] drm_test_cmdline_freestanding_options [09:50:20] [PASSED] drm_test_cmdline_freestanding_force_e_and_options [09:50:20] [PASSED] drm_test_cmdline_panel_orientation [09:50:20] ================ drm_test_cmdline_invalid ================= [09:50:20] [PASSED] margin_only [09:50:20] [PASSED] interlace_only [09:50:20] [PASSED] res_missing_x [09:50:20] [PASSED] res_missing_y [09:50:20] [PASSED] res_bad_y [09:50:20] [PASSED] res_missing_y_bpp [09:50:20] [PASSED] res_bad_bpp [09:50:20] [PASSED] res_bad_refresh [09:50:20] [PASSED] res_bpp_refresh_force_on_off [09:50:20] [PASSED] res_invalid_mode [09:50:20] [PASSED] res_bpp_wrong_place_mode [09:50:20] [PASSED] name_bpp_refresh [09:50:20] [PASSED] name_refresh [09:50:20] [PASSED] name_refresh_wrong_mode [09:50:20] [PASSED] name_refresh_invalid_mode [09:50:20] [PASSED] rotate_multiple [09:50:20] [PASSED] rotate_invalid_val [09:50:20] [PASSED] rotate_truncated [09:50:20] [PASSED] invalid_option [09:50:20] [PASSED] invalid_tv_option [09:50:20] [PASSED] truncated_tv_option [09:50:20] ============ [PASSED] drm_test_cmdline_invalid ============= [09:50:20] =============== drm_test_cmdline_tv_options =============== [09:50:20] [PASSED] NTSC [09:50:20] [PASSED] NTSC_443 [09:50:20] [PASSED] NTSC_J [09:50:20] [PASSED] PAL [09:50:20] [PASSED] PAL_M [09:50:20] [PASSED] PAL_N [09:50:20] [PASSED] SECAM [09:50:20] [PASSED] MONO_525 [09:50:20] [PASSED] MONO_625 [09:50:20] =========== [PASSED] drm_test_cmdline_tv_options =========== [09:50:20] =============== [PASSED] drm_cmdline_parser ================ [09:50:20] ========== drmm_connector_hdmi_init (20 subtests) ========== [09:50:20] [PASSED] drm_test_connector_hdmi_init_valid [09:50:20] [PASSED] drm_test_connector_hdmi_init_bpc_8 [09:50:20] [PASSED] drm_test_connector_hdmi_init_bpc_10 [09:50:20] [PASSED] drm_test_connector_hdmi_init_bpc_12 [09:50:20] [PASSED] drm_test_connector_hdmi_init_bpc_invalid [09:50:20] [PASSED] drm_test_connector_hdmi_init_bpc_null [09:50:20] [PASSED] drm_test_connector_hdmi_init_formats_empty [09:50:20] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb [09:50:20] === drm_test_connector_hdmi_init_formats_yuv420_allowed === [09:50:20] [PASSED] supported_formats=0x9 yuv420_allowed=1 [09:50:20] [PASSED] supported_formats=0x9 yuv420_allowed=0 [09:50:20] [PASSED] supported_formats=0x3 yuv420_allowed=1 [09:50:20] [PASSED] supported_formats=0x3 yuv420_allowed=0 [09:50:20] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed === [09:50:20] [PASSED] drm_test_connector_hdmi_init_null_ddc [09:50:20] [PASSED] drm_test_connector_hdmi_init_null_product [09:50:20] [PASSED] drm_test_connector_hdmi_init_null_vendor [09:50:20] [PASSED] drm_test_connector_hdmi_init_product_length_exact [09:50:20] [PASSED] drm_test_connector_hdmi_init_product_length_too_long [09:50:20] [PASSED] drm_test_connector_hdmi_init_product_valid [09:50:20] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact [09:50:20] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long [09:50:20] [PASSED] drm_test_connector_hdmi_init_vendor_valid [09:50:20] ========= drm_test_connector_hdmi_init_type_valid ========= [09:50:20] [PASSED] HDMI-A [09:50:20] [PASSED] HDMI-B [09:50:20] ===== [PASSED] drm_test_connector_hdmi_init_type_valid ===== [09:50:20] ======== drm_test_connector_hdmi_init_type_invalid ======== [09:50:20] [PASSED] Unknown [09:50:20] [PASSED] VGA [09:50:20] [PASSED] DVI-I [09:50:20] [PASSED] DVI-D [09:50:20] [PASSED] DVI-A [09:50:20] [PASSED] Composite [09:50:20] [PASSED] SVIDEO [09:50:20] [PASSED] LVDS [09:50:20] [PASSED] Component [09:50:20] [PASSED] DIN [09:50:20] [PASSED] DP [09:50:20] [PASSED] TV [09:50:20] [PASSED] eDP [09:50:20] [PASSED] Virtual [09:50:20] [PASSED] DSI [09:50:20] [PASSED] DPI [09:50:20] [PASSED] Writeback [09:50:20] [PASSED] SPI [09:50:20] [PASSED] USB [09:50:20] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ==== [09:50:20] ============ [PASSED] drmm_connector_hdmi_init ============= [09:50:20] ============= drmm_connector_init (3 subtests) ============= [09:50:20] [PASSED] drm_test_drmm_connector_init [09:50:20] [PASSED] drm_test_drmm_connector_init_null_ddc [09:50:20] ========= drm_test_drmm_connector_init_type_valid ========= [09:50:20] [PASSED] Unknown [09:50:20] [PASSED] VGA [09:50:20] [PASSED] DVI-I [09:50:20] [PASSED] DVI-D [09:50:20] [PASSED] DVI-A [09:50:20] [PASSED] Composite [09:50:20] [PASSED] SVIDEO [09:50:20] [PASSED] LVDS [09:50:20] [PASSED] Component [09:50:20] [PASSED] DIN [09:50:20] [PASSED] DP [09:50:20] [PASSED] HDMI-A [09:50:20] [PASSED] HDMI-B [09:50:20] [PASSED] TV [09:50:20] [PASSED] eDP [09:50:20] [PASSED] Virtual [09:50:20] [PASSED] DSI [09:50:20] [PASSED] DPI [09:50:20] [PASSED] Writeback [09:50:20] [PASSED] SPI [09:50:20] [PASSED] USB [09:50:20] ===== [PASSED] drm_test_drmm_connector_init_type_valid ===== [09:50:20] =============== [PASSED] drmm_connector_init =============== [09:50:20] ========= drm_connector_dynamic_init (6 subtests) ========== [09:50:20] [PASSED] drm_test_drm_connector_dynamic_init [09:50:20] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc [09:50:20] [PASSED] drm_test_drm_connector_dynamic_init_not_added [09:50:20] [PASSED] drm_test_drm_connector_dynamic_init_properties [09:50:20] ===== drm_test_drm_connector_dynamic_init_type_valid ====== [09:50:20] [PASSED] Unknown [09:50:20] [PASSED] VGA [09:50:20] [PASSED] DVI-I [09:50:20] [PASSED] DVI-D [09:50:20] [PASSED] DVI-A [09:50:20] [PASSED] Composite [09:50:20] [PASSED] SVIDEO [09:50:20] [PASSED] LVDS [09:50:20] [PASSED] Component [09:50:20] [PASSED] DIN [09:50:20] [PASSED] DP [09:50:20] [PASSED] HDMI-A [09:50:20] [PASSED] HDMI-B [09:50:20] [PASSED] TV [09:50:20] [PASSED] eDP [09:50:20] [PASSED] Virtual [09:50:20] [PASSED] DSI [09:50:20] [PASSED] DPI [09:50:20] [PASSED] Writeback [09:50:20] [PASSED] SPI [09:50:20] [PASSED] USB [09:50:20] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid == [09:50:20] ======== drm_test_drm_connector_dynamic_init_name ========= [09:50:20] [PASSED] Unknown [09:50:20] [PASSED] VGA [09:50:20] [PASSED] DVI-I [09:50:20] [PASSED] DVI-D [09:50:20] [PASSED] DVI-A [09:50:20] [PASSED] Composite [09:50:20] [PASSED] SVIDEO [09:50:20] [PASSED] LVDS [09:50:20] [PASSED] Component [09:50:20] [PASSED] DIN [09:50:20] [PASSED] DP [09:50:20] [PASSED] HDMI-A [09:50:20] [PASSED] HDMI-B [09:50:20] [PASSED] TV [09:50:20] [PASSED] eDP [09:50:20] [PASSED] Virtual [09:50:20] [PASSED] DSI [09:50:20] [PASSED] DPI [09:50:20] [PASSED] Writeback [09:50:20] [PASSED] SPI [09:50:20] [PASSED] USB [09:50:20] ==== [PASSED] drm_test_drm_connector_dynamic_init_name ===== [09:50:20] =========== [PASSED] drm_connector_dynamic_init ============ [09:50:20] ==== drm_connector_dynamic_register_early (4 subtests) ===== [09:50:20] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list [09:50:20] [PASSED] drm_test_drm_connector_dynamic_register_early_defer [09:50:20] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init [09:50:20] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object [09:50:20] ====== [PASSED] drm_connector_dynamic_register_early ======= [09:50:20] ======= drm_connector_dynamic_register (7 subtests) ======== [09:50:20] [PASSED] drm_test_drm_connector_dynamic_register_on_list [09:50:20] [PASSED] drm_test_drm_connector_dynamic_register_no_defer [09:50:20] [PASSED] drm_test_drm_connector_dynamic_register_no_init [09:50:20] [PASSED] drm_test_drm_connector_dynamic_register_mode_object [09:50:20] [PASSED] drm_test_drm_connector_dynamic_register_sysfs [09:50:20] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name [09:50:20] [PASSED] drm_test_drm_connector_dynamic_register_debugfs [09:50:20] ========= [PASSED] drm_connector_dynamic_register ========== [09:50:20] = drm_connector_attach_broadcast_rgb_property (2 subtests) = [09:50:20] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property [09:50:20] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector [09:50:20] === [PASSED] drm_connector_attach_broadcast_rgb_property === [09:50:20] ========== drm_get_tv_mode_from_name (2 subtests) ========== [09:50:20] ========== drm_test_get_tv_mode_from_name_valid =========== [09:50:20] [PASSED] NTSC [09:50:20] [PASSED] NTSC-443 [09:50:20] [PASSED] NTSC-J [09:50:20] [PASSED] PAL [09:50:20] [PASSED] PAL-M [09:50:20] [PASSED] PAL-N [09:50:20] [PASSED] SECAM [09:50:20] [PASSED] Mono [09:50:20] ====== [PASSED] drm_test_get_tv_mode_from_name_valid ======= [09:50:20] [PASSED] drm_test_get_tv_mode_from_name_truncated [09:50:20] ============ [PASSED] drm_get_tv_mode_from_name ============ [09:50:20] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) = [09:50:20] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb [09:50:20] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc [09:50:20] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1 [09:50:20] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc [09:50:20] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1 [09:50:20] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double [09:50:20] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid = [09:50:20] [PASSED] VIC 96 [09:50:20] [PASSED] VIC 97 [09:50:20] [PASSED] VIC 101 [09:50:20] [PASSED] VIC 102 [09:50:20] [PASSED] VIC 106 [09:50:20] [PASSED] VIC 107 [09:50:20] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid === [09:50:20] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc [09:50:20] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc [09:50:20] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc [09:50:20] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc [09:50:20] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc [09:50:20] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ==== [09:50:20] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) == [09:50:20] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ==== [09:50:20] [PASSED] Automatic [09:50:20] [PASSED] Full [09:50:20] [PASSED] Limited 16:235 [09:50:20] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name === [09:50:20] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid [09:50:20] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ==== [09:50:20] == drm_hdmi_connector_get_output_format_name (2 subtests) == [09:50:20] === drm_test_drm_hdmi_connector_get_output_format_name ==== [09:50:20] [PASSED] RGB [09:50:20] [PASSED] YUV 4:2:0 [09:50:20] [PASSED] YUV 4:2:2 [09:50:20] [PASSED] YUV 4:4:4 [09:50:20] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name === [09:50:20] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid [09:50:20] ==== [PASSED] drm_hdmi_connector_get_output_format_name ==== [09:50:20] ============= drm_damage_helper (21 subtests) ============== [09:50:20] [PASSED] drm_test_damage_iter_no_damage [09:50:20] [PASSED] drm_test_damage_iter_no_damage_fractional_src [09:50:20] [PASSED] drm_test_damage_iter_no_damage_src_moved [09:50:20] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved [09:50:20] [PASSED] drm_test_damage_iter_no_damage_not_visible [09:50:20] [PASSED] drm_test_damage_iter_no_damage_no_crtc [09:50:20] [PASSED] drm_test_damage_iter_no_damage_no_fb [09:50:20] [PASSED] drm_test_damage_iter_simple_damage [09:50:20] [PASSED] drm_test_damage_iter_single_damage [09:50:20] [PASSED] drm_test_damage_iter_single_damage_intersect_src [09:50:20] [PASSED] drm_test_damage_iter_single_damage_outside_src [09:50:20] [PASSED] drm_test_damage_iter_single_damage_fractional_src [09:50:20] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src [09:50:20] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src [09:50:20] [PASSED] drm_test_damage_iter_single_damage_src_moved [09:50:20] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved [09:50:20] [PASSED] drm_test_damage_iter_damage [09:50:20] [PASSED] drm_test_damage_iter_damage_one_intersect [09:50:20] [PASSED] drm_test_damage_iter_damage_one_outside [09:50:20] [PASSED] drm_test_damage_iter_damage_src_moved [09:50:20] [PASSED] drm_test_damage_iter_damage_not_visible [09:50:20] ================ [PASSED] drm_damage_helper ================ [09:50:20] ============== drm_dp_mst_helper (3 subtests) ============== [09:50:20] ============== drm_test_dp_mst_calc_pbn_mode ============== [09:50:20] [PASSED] Clock 154000 BPP 30 DSC disabled [09:50:20] [PASSED] Clock 234000 BPP 30 DSC disabled [09:50:20] [PASSED] Clock 297000 BPP 24 DSC disabled [09:50:20] [PASSED] Clock 332880 BPP 24 DSC enabled [09:50:20] [PASSED] Clock 324540 BPP 24 DSC enabled [09:50:20] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ========== [09:50:20] ============== drm_test_dp_mst_calc_pbn_div =============== [09:50:20] [PASSED] Link rate 2000000 lane count 4 [09:50:20] [PASSED] Link rate 2000000 lane count 2 [09:50:20] [PASSED] Link rate 2000000 lane count 1 [09:50:20] [PASSED] Link rate 1350000 lane count 4 [09:50:20] [PASSED] Link rate 1350000 lane count 2 [09:50:20] [PASSED] Link rate 1350000 lane count 1 [09:50:20] [PASSED] Link rate 1000000 lane count 4 [09:50:20] [PASSED] Link rate 1000000 lane count 2 [09:50:20] [PASSED] Link rate 1000000 lane count 1 [09:50:20] [PASSED] Link rate 810000 lane count 4 [09:50:20] [PASSED] Link rate 810000 lane count 2 [09:50:20] [PASSED] Link rate 810000 lane count 1 [09:50:20] [PASSED] Link rate 540000 lane count 4 [09:50:20] [PASSED] Link rate 540000 lane count 2 [09:50:20] [PASSED] Link rate 540000 lane count 1 [09:50:20] [PASSED] Link rate 270000 lane count 4 [09:50:20] [PASSED] Link rate 270000 lane count 2 [09:50:20] [PASSED] Link rate 270000 lane count 1 [09:50:20] [PASSED] Link rate 162000 lane count 4 [09:50:20] [PASSED] Link rate 162000 lane count 2 [09:50:20] [PASSED] Link rate 162000 lane count 1 [09:50:20] ========== [PASSED] drm_test_dp_mst_calc_pbn_div =========== [09:50:20] ========= drm_test_dp_mst_sideband_msg_req_decode ========= [09:50:20] [PASSED] DP_ENUM_PATH_RESOURCES with port number [09:50:20] [PASSED] DP_POWER_UP_PHY with port number [09:50:20] [PASSED] DP_POWER_DOWN_PHY with port number [09:50:20] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks [09:50:20] [PASSED] DP_ALLOCATE_PAYLOAD with port number [09:50:20] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI [09:50:20] [PASSED] DP_ALLOCATE_PAYLOAD with PBN [09:50:20] [PASSED] DP_QUERY_PAYLOAD with port number [09:50:20] [PASSED] DP_QUERY_PAYLOAD with VCPI [09:50:20] [PASSED] DP_REMOTE_DPCD_READ with port number [09:50:20] [PASSED] DP_REMOTE_DPCD_READ with DPCD address [09:50:20] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes [09:50:20] [PASSED] DP_REMOTE_DPCD_WRITE with port number [09:50:20] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address [09:50:20] [PASSED] DP_REMOTE_DPCD_WRITE with data array [09:50:20] [PASSED] DP_REMOTE_I2C_READ with port number [09:50:20] [PASSED] DP_REMOTE_I2C_READ with I2C device ID [09:50:20] [PASSED] DP_REMOTE_I2C_READ with transactions array [09:50:20] [PASSED] DP_REMOTE_I2C_WRITE with port number [09:50:20] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID [09:50:20] [PASSED] DP_REMOTE_I2C_WRITE with data array [09:50:20] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID [09:50:20] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID [09:50:20] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event [09:50:20] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event [09:50:20] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior [09:50:20] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior [09:50:20] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode ===== [09:50:20] ================ [PASSED] drm_dp_mst_helper ================ [09:50:20] ================== drm_exec (7 subtests) =================== [09:50:20] [PASSED] sanitycheck [09:50:20] [PASSED] test_lock [09:50:20] [PASSED] test_lock_unlock [09:50:20] [PASSED] test_duplicates [09:50:20] [PASSED] test_prepare [09:50:20] [PASSED] test_prepare_array [09:50:20] [PASSED] test_multiple_loops [09:50:20] ==================== [PASSED] drm_exec ===================== [09:50:20] =========== drm_format_helper_test (17 subtests) =========== [09:50:20] ============== drm_test_fb_xrgb8888_to_gray8 ============== [09:50:20] [PASSED] single_pixel_source_buffer [09:50:20] [PASSED] single_pixel_clip_rectangle [09:50:20] [PASSED] well_known_colors [09:50:20] [PASSED] destination_pitch [09:50:20] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ========== [09:50:20] ============= drm_test_fb_xrgb8888_to_rgb332 ============== [09:50:20] [PASSED] single_pixel_source_buffer [09:50:20] [PASSED] single_pixel_clip_rectangle [09:50:20] [PASSED] well_known_colors [09:50:20] [PASSED] destination_pitch [09:50:20] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ========== [09:50:20] ============= drm_test_fb_xrgb8888_to_rgb565 ============== [09:50:20] [PASSED] single_pixel_source_buffer [09:50:20] [PASSED] single_pixel_clip_rectangle [09:50:20] [PASSED] well_known_colors [09:50:20] [PASSED] destination_pitch [09:50:20] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ========== [09:50:20] ============ drm_test_fb_xrgb8888_to_xrgb1555 ============= [09:50:20] [PASSED] single_pixel_source_buffer [09:50:20] [PASSED] single_pixel_clip_rectangle [09:50:20] [PASSED] well_known_colors [09:50:20] [PASSED] destination_pitch [09:50:20] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 ========= [09:50:20] ============ drm_test_fb_xrgb8888_to_argb1555 ============= [09:50:20] [PASSED] single_pixel_source_buffer [09:50:20] [PASSED] single_pixel_clip_rectangle [09:50:20] [PASSED] well_known_colors [09:50:20] [PASSED] destination_pitch [09:50:20] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 ========= [09:50:20] ============ drm_test_fb_xrgb8888_to_rgba5551 ============= [09:50:20] [PASSED] single_pixel_source_buffer [09:50:20] [PASSED] single_pixel_clip_rectangle [09:50:20] [PASSED] well_known_colors [09:50:20] [PASSED] destination_pitch [09:50:20] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 ========= [09:50:20] ============= drm_test_fb_xrgb8888_to_rgb888 ============== [09:50:20] [PASSED] single_pixel_source_buffer [09:50:20] [PASSED] single_pixel_clip_rectangle [09:50:20] [PASSED] well_known_colors [09:50:20] [PASSED] destination_pitch [09:50:20] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ========== [09:50:20] ============= drm_test_fb_xrgb8888_to_bgr888 ============== [09:50:20] [PASSED] single_pixel_source_buffer [09:50:20] [PASSED] single_pixel_clip_rectangle [09:50:20] [PASSED] well_known_colors [09:50:20] [PASSED] destination_pitch [09:50:20] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ========== [09:50:20] ============ drm_test_fb_xrgb8888_to_argb8888 ============= [09:50:20] [PASSED] single_pixel_source_buffer [09:50:20] [PASSED] single_pixel_clip_rectangle [09:50:20] [PASSED] well_known_colors [09:50:20] [PASSED] destination_pitch [09:50:20] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 ========= [09:50:20] =========== drm_test_fb_xrgb8888_to_xrgb2101010 =========== [09:50:20] [PASSED] single_pixel_source_buffer [09:50:20] [PASSED] single_pixel_clip_rectangle [09:50:20] [PASSED] well_known_colors [09:50:20] [PASSED] destination_pitch [09:50:20] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 ======= [09:50:20] =========== drm_test_fb_xrgb8888_to_argb2101010 =========== [09:50:20] [PASSED] single_pixel_source_buffer [09:50:20] [PASSED] single_pixel_clip_rectangle [09:50:20] [PASSED] well_known_colors [09:50:20] [PASSED] destination_pitch [09:50:20] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 ======= [09:50:20] ============== drm_test_fb_xrgb8888_to_mono =============== [09:50:20] [PASSED] single_pixel_source_buffer [09:50:20] [PASSED] single_pixel_clip_rectangle [09:50:20] [PASSED] well_known_colors [09:50:20] [PASSED] destination_pitch [09:50:20] ========== [PASSED] drm_test_fb_xrgb8888_to_mono =========== [09:50:20] ==================== drm_test_fb_swab ===================== [09:50:20] [PASSED] single_pixel_source_buffer [09:50:20] [PASSED] single_pixel_clip_rectangle [09:50:20] [PASSED] well_known_colors [09:50:20] [PASSED] destination_pitch [09:50:20] ================ [PASSED] drm_test_fb_swab ================= [09:50:20] ============ drm_test_fb_xrgb8888_to_xbgr8888 ============= [09:50:20] [PASSED] single_pixel_source_buffer [09:50:20] [PASSED] single_pixel_clip_rectangle [09:50:20] [PASSED] well_known_colors [09:50:20] [PASSED] destination_pitch [09:50:20] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 ========= [09:50:20] ============ drm_test_fb_xrgb8888_to_abgr8888 ============= [09:50:20] [PASSED] single_pixel_source_buffer [09:50:20] [PASSED] single_pixel_clip_rectangle [09:50:20] [PASSED] well_known_colors [09:50:20] [PASSED] destination_pitch [09:50:20] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 ========= [09:50:20] ================= drm_test_fb_clip_offset ================= [09:50:20] [PASSED] pass through [09:50:20] [PASSED] horizontal offset [09:50:20] [PASSED] vertical offset [09:50:20] [PASSED] horizontal and vertical offset [09:50:20] [PASSED] horizontal offset (custom pitch) [09:50:20] [PASSED] vertical offset (custom pitch) [09:50:20] [PASSED] horizontal and vertical offset (custom pitch) [09:50:20] ============= [PASSED] drm_test_fb_clip_offset ============= [09:50:20] =================== drm_test_fb_memcpy ==================== [09:50:20] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258) [09:50:20] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258) [09:50:20] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559) [09:50:20] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258) [09:50:20] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258) [09:50:20] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559) [09:50:20] [PASSED] well_known_colors: XB24 little-endian (0x34324258) [09:50:20] [PASSED] well_known_colors: XRA8 little-endian (0x38415258) [09:50:20] [PASSED] well_known_colors: YU24 little-endian (0x34325559) [09:50:20] [PASSED] destination_pitch: XB24 little-endian (0x34324258) [09:50:20] [PASSED] destination_pitch: XRA8 little-endian (0x38415258) [09:50:20] [PASSED] destination_pitch: YU24 little-endian (0x34325559) [09:50:20] =============== [PASSED] drm_test_fb_memcpy ================ [09:50:20] ============= [PASSED] drm_format_helper_test ============== [09:50:20] ================= drm_format (18 subtests) ================= [09:50:20] [PASSED] drm_test_format_block_width_invalid [09:50:20] [PASSED] drm_test_format_block_width_one_plane [09:50:20] [PASSED] drm_test_format_block_width_two_plane [09:50:20] [PASSED] drm_test_format_block_width_three_plane [09:50:20] [PASSED] drm_test_format_block_width_tiled [09:50:20] [PASSED] drm_test_format_block_height_invalid [09:50:20] [PASSED] drm_test_format_block_height_one_plane [09:50:20] [PASSED] drm_test_format_block_height_two_plane [09:50:20] [PASSED] drm_test_format_block_height_three_plane [09:50:20] [PASSED] drm_test_format_block_height_tiled [09:50:20] [PASSED] drm_test_format_min_pitch_invalid [09:50:20] [PASSED] drm_test_format_min_pitch_one_plane_8bpp [09:50:20] [PASSED] drm_test_format_min_pitch_one_plane_16bpp [09:50:20] [PASSED] drm_test_format_min_pitch_one_plane_24bpp [09:50:20] [PASSED] drm_test_format_min_pitch_one_plane_32bpp [09:50:20] [PASSED] drm_test_format_min_pitch_two_plane [09:50:20] [PASSED] drm_test_format_min_pitch_three_plane_8bpp [09:50:20] [PASSED] drm_test_format_min_pitch_tiled [09:50:20] =================== [PASSED] drm_format ==================== [09:50:20] ============== drm_framebuffer (10 subtests) =============== [09:50:20] ========== drm_test_framebuffer_check_src_coords ========== [09:50:20] [PASSED] Success: source fits into fb [09:50:20] [PASSED] Fail: overflowing fb with x-axis coordinate [09:50:20] [PASSED] Fail: overflowing fb with y-axis coordinate [09:50:20] [PASSED] Fail: overflowing fb with source width [09:50:20] [PASSED] Fail: overflowing fb with source height [09:50:20] ====== [PASSED] drm_test_framebuffer_check_src_coords ====== [09:50:20] [PASSED] drm_test_framebuffer_cleanup [09:50:20] =============== drm_test_framebuffer_create =============== [09:50:20] [PASSED] ABGR8888 normal sizes [09:50:20] [PASSED] ABGR8888 max sizes [09:50:20] [PASSED] ABGR8888 pitch greater than min required [09:50:20] [PASSED] ABGR8888 pitch less than min required [09:50:20] [PASSED] ABGR8888 Invalid width [09:50:20] [PASSED] ABGR8888 Invalid buffer handle [09:50:20] [PASSED] No pixel format [09:50:20] [PASSED] ABGR8888 Width 0 [09:50:20] [PASSED] ABGR8888 Height 0 [09:50:20] [PASSED] ABGR8888 Out of bound height * pitch combination [09:50:20] [PASSED] ABGR8888 Large buffer offset [09:50:20] [PASSED] ABGR8888 Buffer offset for inexistent plane [09:50:20] [PASSED] ABGR8888 Invalid flag [09:50:20] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers [09:50:20] [PASSED] ABGR8888 Valid buffer modifier [09:50:20] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE) [09:50:20] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS [09:50:20] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS [09:50:20] [PASSED] NV12 Normal sizes [09:50:20] [PASSED] NV12 Max sizes [09:50:20] [PASSED] NV12 Invalid pitch [09:50:20] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag [09:50:20] [PASSED] NV12 different modifier per-plane [09:50:20] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE [09:50:20] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS [09:50:20] [PASSED] NV12 Modifier for inexistent plane [09:50:20] [PASSED] NV12 Handle for inexistent plane [09:50:20] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS [09:50:20] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier [09:50:20] [PASSED] YVU420 Normal sizes [09:50:20] [PASSED] YVU420 Max sizes [09:50:20] [PASSED] YVU420 Invalid pitch [09:50:20] [PASSED] YVU420 Different pitches [09:50:20] [PASSED] YVU420 Different buffer offsets/pitches [09:50:20] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS [09:50:20] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS [09:50:20] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS [09:50:20] [PASSED] YVU420 Valid modifier [09:50:20] [PASSED] YVU420 Different modifiers per plane [09:50:20] [PASSED] YVU420 Modifier for inexistent plane [09:50:20] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR) [09:50:20] [PASSED] X0L2 Normal sizes [09:50:20] [PASSED] X0L2 Max sizes [09:50:20] [PASSED] X0L2 Invalid pitch [09:50:20] [PASSED] X0L2 Pitch greater than minimum required [09:50:20] [PASSED] X0L2 Handle for inexistent plane [09:50:20] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set [09:50:20] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set [09:50:20] [PASSED] X0L2 Valid modifier [09:50:20] [PASSED] X0L2 Modifier for inexistent plane [09:50:20] =========== [PASSED] drm_test_framebuffer_create =========== [09:50:20] [PASSED] drm_test_framebuffer_free [09:50:20] [PASSED] drm_test_framebuffer_init [09:50:20] [PASSED] drm_test_framebuffer_init_bad_format [09:50:20] [PASSED] drm_test_framebuffer_init_dev_mismatch [09:50:20] [PASSED] drm_test_framebuffer_lookup [09:50:20] [PASSED] drm_test_framebuffer_lookup_inexistent [09:50:20] [PASSED] drm_test_framebuffer_modifiers_not_supported [09:50:20] ================= [PASSED] drm_framebuffer ================= [09:50:20] ================ drm_gem_shmem (8 subtests) ================ [09:50:20] [PASSED] drm_gem_shmem_test_obj_create [09:50:20] [PASSED] drm_gem_shmem_test_obj_create_private [09:50:20] [PASSED] drm_gem_shmem_test_pin_pages [09:50:20] [PASSED] drm_gem_shmem_test_vmap [09:50:20] [PASSED] drm_gem_shmem_test_get_sg_table [09:50:20] [PASSED] drm_gem_shmem_test_get_pages_sgt [09:50:20] [PASSED] drm_gem_shmem_test_madvise [09:50:20] [PASSED] drm_gem_shmem_test_purge [09:50:20] ================== [PASSED] drm_gem_shmem ================== [09:50:20] === drm_atomic_helper_connector_hdmi_check (27 subtests) === [09:50:20] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode [09:50:20] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1 [09:50:20] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode [09:50:20] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1 [09:50:20] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode [09:50:20] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1 [09:50:20] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 ======= [09:50:20] [PASSED] Automatic [09:50:20] [PASSED] Full [09:50:20] [PASSED] Limited 16:235 [09:50:20] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 === [09:50:20] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed [09:50:20] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed [09:50:20] [PASSED] drm_test_check_disable_connector [09:50:20] [PASSED] drm_test_check_hdmi_funcs_reject_rate [09:50:20] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb [09:50:20] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420 [09:50:20] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422 [09:50:20] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420 [09:50:20] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420 [09:50:20] [PASSED] drm_test_check_output_bpc_crtc_mode_changed [09:50:20] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed [09:50:20] [PASSED] drm_test_check_output_bpc_dvi [09:50:20] [PASSED] drm_test_check_output_bpc_format_vic_1 [09:50:20] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only [09:50:20] [PASSED] drm_test_check_output_bpc_format_display_rgb_only [09:50:20] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only [09:50:20] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only [09:50:20] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc [09:50:20] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc [09:50:20] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc [09:50:20] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ====== [09:50:20] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ==== [09:50:20] [PASSED] drm_test_check_broadcast_rgb_value [09:50:20] [PASSED] drm_test_check_bpc_8_value [09:50:20] [PASSED] drm_test_check_bpc_10_value [09:50:20] [PASSED] drm_test_check_bpc_12_value [09:50:20] [PASSED] drm_test_check_format_value [09:50:20] [PASSED] drm_test_check_tmds_char_value [09:50:20] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ====== [09:50:20] = drm_atomic_helper_connector_hdmi_mode_valid (4 subtests) = [09:50:20] [PASSED] drm_test_check_mode_valid [09:50:20] [PASSED] drm_test_check_mode_valid_reject [09:50:20] [PASSED] drm_test_check_mode_valid_reject_rate [09:50:20] [PASSED] drm_test_check_mode_valid_reject_max_clock [09:50:20] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid === [09:50:20] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) = [09:50:20] [PASSED] drm_test_check_infoframes [09:50:20] [PASSED] drm_test_check_reject_avi_infoframe [09:50:20] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8 [09:50:20] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10 [09:50:20] [PASSED] drm_test_check_reject_audio_infoframe [09:50:20] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes === [09:50:20] ================= drm_managed (2 subtests) ================= [09:50:20] [PASSED] drm_test_managed_release_action [09:50:20] [PASSED] drm_test_managed_run_action [09:50:20] =================== [PASSED] drm_managed =================== [09:50:20] =================== drm_mm (6 subtests) ==================== [09:50:20] [PASSED] drm_test_mm_init [09:50:20] [PASSED] drm_test_mm_debug [09:50:20] [PASSED] drm_test_mm_align32 [09:50:20] [PASSED] drm_test_mm_align64 [09:50:20] [PASSED] drm_test_mm_lowest [09:50:20] [PASSED] drm_test_mm_highest [09:50:20] ===================== [PASSED] drm_mm ====================== [09:50:20] ============= drm_modes_analog_tv (5 subtests) ============= [09:50:20] [PASSED] drm_test_modes_analog_tv_mono_576i [09:50:20] [PASSED] drm_test_modes_analog_tv_ntsc_480i [09:50:20] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined [09:50:20] [PASSED] drm_test_modes_analog_tv_pal_576i [09:50:20] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined [09:50:20] =============== [PASSED] drm_modes_analog_tv =============== [09:50:20] ============== drm_plane_helper (2 subtests) =============== [09:50:20] =============== drm_test_check_plane_state ================ [09:50:20] [PASSED] clipping_simple [09:50:20] [PASSED] clipping_rotate_reflect [09:50:20] [PASSED] positioning_simple [09:50:20] [PASSED] upscaling [09:50:20] [PASSED] downscaling [09:50:20] [PASSED] rounding1 [09:50:20] [PASSED] rounding2 [09:50:20] [PASSED] rounding3 [09:50:20] [PASSED] rounding4 [09:50:20] =========== [PASSED] drm_test_check_plane_state ============ [09:50:20] =========== drm_test_check_invalid_plane_state ============ [09:50:20] [PASSED] positioning_invalid [09:50:20] [PASSED] upscaling_invalid [09:50:20] [PASSED] downscaling_invalid [09:50:20] ======= [PASSED] drm_test_check_invalid_plane_state ======== [09:50:20] ================ [PASSED] drm_plane_helper ================= [09:50:20] ====== drm_connector_helper_tv_get_modes (1 subtest) ======= [09:50:20] ====== drm_test_connector_helper_tv_get_modes_check ======= [09:50:20] [PASSED] None [09:50:20] [PASSED] PAL [09:50:20] [PASSED] NTSC [09:50:20] [PASSED] Both, NTSC Default [09:50:20] [PASSED] Both, PAL Default [09:50:20] [PASSED] Both, NTSC Default, with PAL on command-line [09:50:20] [PASSED] Both, PAL Default, with NTSC on command-line [09:50:20] == [PASSED] drm_test_connector_helper_tv_get_modes_check === [09:50:20] ======== [PASSED] drm_connector_helper_tv_get_modes ======== [09:50:20] ================== drm_rect (9 subtests) =================== [09:50:20] [PASSED] drm_test_rect_clip_scaled_div_by_zero [09:50:20] [PASSED] drm_test_rect_clip_scaled_not_clipped [09:50:20] [PASSED] drm_test_rect_clip_scaled_clipped [09:50:20] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned [09:50:20] ================= drm_test_rect_intersect ================= [09:50:20] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0 [09:50:20] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1 [09:50:20] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0 [09:50:20] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1 [09:50:20] [PASSED] right x left: 2x1+0+0 x 3x1+1+0 [09:50:20] [PASSED] left x right: 3x1+1+0 x 2x1+0+0 [09:50:20] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1 [09:50:20] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0 [09:50:20] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1 [09:50:20] [PASSED] touching side: 1x1+0+0 x 1x1+1+0 [09:50:20] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0 [09:50:20] [PASSED] inside another: 2x2+0+0 x 1x1+1+1 [09:50:20] [PASSED] far away: 1x1+0+0 x 1x1+3+6 [09:50:20] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10 [09:50:20] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10 [09:50:20] ============= [PASSED] drm_test_rect_intersect ============= [09:50:20] ================ drm_test_rect_calc_hscale ================ [09:50:20] [PASSED] normal use [09:50:20] [PASSED] out of max range [09:50:20] [PASSED] out of min range [09:50:20] [PASSED] zero dst [09:50:20] [PASSED] negative src [09:50:20] [PASSED] negative dst [09:50:20] ============ [PASSED] drm_test_rect_calc_hscale ============ [09:50:20] ================ drm_test_rect_calc_vscale ================ [09:50:20] [PASSED] normal use [09:50:20] [PASSED] out of max range [09:50:20] [PASSED] out of min range [09:50:20] [PASSED] zero dst [09:50:20] [PASSED] negative src [09:50:20] [PASSED] negative dst stty: 'standard input': Inappropriate ioctl for device [09:50:20] ============ [PASSED] drm_test_rect_calc_vscale ============ [09:50:20] ================== drm_test_rect_rotate =================== [09:50:20] [PASSED] reflect-x [09:50:20] [PASSED] reflect-y [09:50:20] [PASSED] rotate-0 [09:50:20] [PASSED] rotate-90 [09:50:20] [PASSED] rotate-180 [09:50:20] [PASSED] rotate-270 [09:50:20] ============== [PASSED] drm_test_rect_rotate =============== [09:50:20] ================ drm_test_rect_rotate_inv ================= [09:50:20] [PASSED] reflect-x [09:50:20] [PASSED] reflect-y [09:50:20] [PASSED] rotate-0 [09:50:20] [PASSED] rotate-90 [09:50:20] [PASSED] rotate-180 [09:50:20] [PASSED] rotate-270 [09:50:20] ============ [PASSED] drm_test_rect_rotate_inv ============= [09:50:20] ==================== [PASSED] drm_rect ===================== [09:50:20] ============ drm_sysfb_modeset_test (1 subtest) ============ [09:50:20] ============ drm_test_sysfb_build_fourcc_list ============= [09:50:20] [PASSED] no native formats [09:50:20] [PASSED] XRGB8888 as native format [09:50:20] [PASSED] remove duplicates [09:50:20] [PASSED] convert alpha formats [09:50:20] [PASSED] random formats [09:50:20] ======== [PASSED] drm_test_sysfb_build_fourcc_list ========= [09:50:20] ============= [PASSED] drm_sysfb_modeset_test ============== [09:50:20] ================== drm_fixp (2 subtests) =================== [09:50:20] [PASSED] drm_test_int2fixp [09:50:20] [PASSED] drm_test_sm2fixp [09:50:20] ==================== [PASSED] drm_fixp ===================== [09:50:20] ============================================================ [09:50:20] Testing complete. Ran 621 tests: passed: 621 [09:50:20] Elapsed time: 25.976s total, 1.747s configuring, 24.046s building, 0.180s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [09:50:20] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [09:50:22] 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 [09:50:32] Starting KUnit Kernel (1/1)... [09:50:32] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [09:50:32] ================= ttm_device (5 subtests) ================== [09:50:32] [PASSED] ttm_device_init_basic [09:50:32] [PASSED] ttm_device_init_multiple [09:50:32] [PASSED] ttm_device_fini_basic [09:50:32] [PASSED] ttm_device_init_no_vma_man [09:50:32] ================== ttm_device_init_pools ================== [09:50:32] [PASSED] No DMA allocations, no DMA32 required [09:50:32] [PASSED] DMA allocations, DMA32 required [09:50:32] [PASSED] No DMA allocations, DMA32 required [09:50:32] [PASSED] DMA allocations, no DMA32 required [09:50:32] ============== [PASSED] ttm_device_init_pools ============== [09:50:32] =================== [PASSED] ttm_device ==================== [09:50:32] ================== ttm_pool (8 subtests) =================== [09:50:32] ================== ttm_pool_alloc_basic =================== [09:50:32] [PASSED] One page [09:50:32] [PASSED] More than one page [09:50:32] [PASSED] Above the allocation limit [09:50:32] [PASSED] One page, with coherent DMA mappings enabled [09:50:32] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [09:50:32] ============== [PASSED] ttm_pool_alloc_basic =============== [09:50:32] ============== ttm_pool_alloc_basic_dma_addr ============== [09:50:32] [PASSED] One page [09:50:32] [PASSED] More than one page [09:50:32] [PASSED] Above the allocation limit [09:50:32] [PASSED] One page, with coherent DMA mappings enabled [09:50:32] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [09:50:32] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ========== [09:50:32] [PASSED] ttm_pool_alloc_order_caching_match [09:50:32] [PASSED] ttm_pool_alloc_caching_mismatch [09:50:32] [PASSED] ttm_pool_alloc_order_mismatch [09:50:32] [PASSED] ttm_pool_free_dma_alloc [09:50:32] [PASSED] ttm_pool_free_no_dma_alloc [09:50:32] [PASSED] ttm_pool_fini_basic [09:50:32] ==================== [PASSED] ttm_pool ===================== [09:50:32] ================ ttm_resource (8 subtests) ================= [09:50:32] ================= ttm_resource_init_basic ================= [09:50:32] [PASSED] Init resource in TTM_PL_SYSTEM [09:50:32] [PASSED] Init resource in TTM_PL_VRAM [09:50:32] [PASSED] Init resource in a private placement [09:50:32] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags [09:50:32] ============= [PASSED] ttm_resource_init_basic ============= [09:50:32] [PASSED] ttm_resource_init_pinned [09:50:32] [PASSED] ttm_resource_fini_basic [09:50:32] [PASSED] ttm_resource_manager_init_basic [09:50:32] [PASSED] ttm_resource_manager_usage_basic [09:50:32] [PASSED] ttm_resource_manager_set_used_basic [09:50:32] [PASSED] ttm_sys_man_alloc_basic [09:50:32] [PASSED] ttm_sys_man_free_basic [09:50:32] ================== [PASSED] ttm_resource =================== [09:50:32] =================== ttm_tt (15 subtests) =================== [09:50:32] ==================== ttm_tt_init_basic ==================== [09:50:32] [PASSED] Page-aligned size [09:50:32] [PASSED] Extra pages requested [09:50:32] ================ [PASSED] ttm_tt_init_basic ================ [09:50:32] [PASSED] ttm_tt_init_misaligned [09:50:32] [PASSED] ttm_tt_fini_basic [09:50:32] [PASSED] ttm_tt_fini_sg [09:50:32] [PASSED] ttm_tt_fini_shmem [09:50:32] [PASSED] ttm_tt_create_basic [09:50:32] [PASSED] ttm_tt_create_invalid_bo_type [09:50:32] [PASSED] ttm_tt_create_ttm_exists [09:50:32] [PASSED] ttm_tt_create_failed [09:50:32] [PASSED] ttm_tt_destroy_basic [09:50:32] [PASSED] ttm_tt_populate_null_ttm [09:50:32] [PASSED] ttm_tt_populate_populated_ttm [09:50:32] [PASSED] ttm_tt_unpopulate_basic [09:50:32] [PASSED] ttm_tt_unpopulate_empty_ttm [09:50:32] [PASSED] ttm_tt_swapin_basic [09:50:32] ===================== [PASSED] ttm_tt ====================== [09:50:32] =================== ttm_bo (14 subtests) =================== [09:50:32] =========== ttm_bo_reserve_optimistic_no_ticket =========== [09:50:32] [PASSED] Cannot be interrupted and sleeps [09:50:32] [PASSED] Cannot be interrupted, locks straight away [09:50:32] [PASSED] Can be interrupted, sleeps [09:50:32] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket ======= [09:50:32] [PASSED] ttm_bo_reserve_locked_no_sleep [09:50:32] [PASSED] ttm_bo_reserve_no_wait_ticket [09:50:32] [PASSED] ttm_bo_reserve_double_resv [09:50:32] [PASSED] ttm_bo_reserve_interrupted [09:50:32] [PASSED] ttm_bo_reserve_deadlock [09:50:32] [PASSED] ttm_bo_unreserve_basic [09:50:32] [PASSED] ttm_bo_unreserve_pinned [09:50:32] [PASSED] ttm_bo_unreserve_bulk [09:50:32] [PASSED] ttm_bo_fini_basic [09:50:32] [PASSED] ttm_bo_fini_shared_resv [09:50:32] [PASSED] ttm_bo_pin_basic [09:50:32] [PASSED] ttm_bo_pin_unpin_resource [09:50:32] [PASSED] ttm_bo_multiple_pin_one_unpin [09:50:32] ===================== [PASSED] ttm_bo ====================== [09:50:32] ============== ttm_bo_validate (21 subtests) =============== [09:50:32] ============== ttm_bo_init_reserved_sys_man =============== [09:50:32] [PASSED] Buffer object for userspace [09:50:32] [PASSED] Kernel buffer object [09:50:32] [PASSED] Shared buffer object [09:50:32] ========== [PASSED] ttm_bo_init_reserved_sys_man =========== [09:50:32] ============== ttm_bo_init_reserved_mock_man ============== [09:50:32] [PASSED] Buffer object for userspace [09:50:32] [PASSED] Kernel buffer object [09:50:32] [PASSED] Shared buffer object [09:50:32] ========== [PASSED] ttm_bo_init_reserved_mock_man ========== [09:50:32] [PASSED] ttm_bo_init_reserved_resv [09:50:32] ================== ttm_bo_validate_basic ================== [09:50:32] [PASSED] Buffer object for userspace [09:50:32] [PASSED] Kernel buffer object [09:50:32] [PASSED] Shared buffer object [09:50:32] ============== [PASSED] ttm_bo_validate_basic ============== [09:50:32] [PASSED] ttm_bo_validate_invalid_placement [09:50:32] ============= ttm_bo_validate_same_placement ============== [09:50:32] [PASSED] System manager [09:50:32] [PASSED] VRAM manager [09:50:32] ========= [PASSED] ttm_bo_validate_same_placement ========== [09:50:32] [PASSED] ttm_bo_validate_failed_alloc [09:50:32] [PASSED] ttm_bo_validate_pinned [09:50:32] [PASSED] ttm_bo_validate_busy_placement [09:50:32] ================ ttm_bo_validate_multihop ================= [09:50:32] [PASSED] Buffer object for userspace [09:50:32] [PASSED] Kernel buffer object [09:50:32] [PASSED] Shared buffer object [09:50:32] ============ [PASSED] ttm_bo_validate_multihop ============= [09:50:32] ========== ttm_bo_validate_no_placement_signaled ========== [09:50:32] [PASSED] Buffer object in system domain, no page vector [09:50:32] [PASSED] Buffer object in system domain with an existing page vector [09:50:32] ====== [PASSED] ttm_bo_validate_no_placement_signaled ====== [09:50:32] ======== ttm_bo_validate_no_placement_not_signaled ======== [09:50:32] [PASSED] Buffer object for userspace [09:50:32] [PASSED] Kernel buffer object [09:50:32] [PASSED] Shared buffer object [09:50:32] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ==== [09:50:32] [PASSED] ttm_bo_validate_move_fence_signaled [09:50:32] ========= ttm_bo_validate_move_fence_not_signaled ========= [09:50:32] [PASSED] Waits for GPU [09:50:32] [PASSED] Tries to lock straight away [09:50:32] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled ===== [09:50:32] [PASSED] ttm_bo_validate_happy_evict [09:50:32] [PASSED] ttm_bo_validate_all_pinned_evict [09:50:32] [PASSED] ttm_bo_validate_allowed_only_evict [09:50:32] [PASSED] ttm_bo_validate_deleted_evict [09:50:32] [PASSED] ttm_bo_validate_busy_domain_evict [09:50:32] [PASSED] ttm_bo_validate_evict_gutting [09:50:32] [PASSED] ttm_bo_validate_recrusive_evict stty: 'standard input': Inappropriate ioctl for device [09:50:32] ================= [PASSED] ttm_bo_validate ================= [09:50:32] ============================================================ [09:50:32] Testing complete. Ran 101 tests: passed: 101 [09:50:32] Elapsed time: 11.491s total, 1.732s configuring, 9.493s building, 0.225s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
Patchwork
CI✗ Xe.CI.BAT: failure for Two-pass MMU interval notifiers (rev4)
In reply to Thomas Hellström== Series Details ==
== Series Details ==
Series: Two-pass MMU interval notifiers (rev4)
URL : https://patchwork.freedesktop.org/series/153280/
State : failure
== Summary ==
CI Bug Log - changes from xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9_BAT -> xe-pw-153280v4_BAT
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with xe-pw-153280v4_BAT absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in xe-pw-153280v4_BAT, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
Participating hosts (14 -> 15)
------------------------------
Additional (1): bat-pvc-2
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in xe-pw-153280v4_BAT:
### IGT changes ###
#### Possible regressions ####
* igt@xe_module_load@load:
- bat-pvc-2: NOTRUN -> [ABORT][1]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/bat-pvc-2/igt@[email protected]
Build changes
-------------
* Linux: xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9 -> xe-pw-153280v4
IGT_8782: eac3b04d1f76b82ac3a183fb293c44e9185d8dba @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9: 79792a2fc5d37b5446e543f1de05158ab0f551c9
xe-pw-153280v4: 153280v4
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/index.html
Patchwork
CI✗ Xe.CI.FULL: failure for Two-pass MMU interval notifiers (rev4)
In reply to Thomas Hellström== Series Details ==
== Series Details ==
Series: Two-pass MMU interval notifiers (rev4)
URL : https://patchwork.freedesktop.org/series/153280/
State : failure
== Summary ==
CI Bug Log - changes from xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9_FULL -> xe-pw-153280v4_FULL
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with xe-pw-153280v4_FULL absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in xe-pw-153280v4_FULL, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
Participating hosts (2 -> 2)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in xe-pw-153280v4_FULL:
### IGT changes ###
#### Possible regressions ####
* igt@kms_cursor_legacy@flip-vs-cursor-atomic:
- shard-bmg: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-bmg-3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-8/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@d-dp2:
- shard-bmg: [PASS][3] -> [INCOMPLETE][4] +1 other test incomplete
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-bmg-5/igt@kms_flip@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-3/igt@kms_flip@[email protected]
* igt@xe_survivability@runtime-survivability:
- shard-bmg: [PASS][5] -> [ABORT][6] +1 other test abort
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-bmg-2/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-4/igt@[email protected]
Known issues
------------
Here are the changes found in xe-pw-153280v4_FULL that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_async_flips@alternate-sync-async-flip@pipe-b-edp-1:
- shard-lnl: [PASS][7] -> [FAIL][8] ([Intel XE#3718] / [Intel XE#7265])
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-lnl-6/igt@kms_async_flips@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-lnl-5/igt@kms_async_flips@[email protected]
* igt@kms_big_fb@yf-tiled-64bpp-rotate-0:
- shard-bmg: NOTRUN -> [SKIP][9] ([Intel XE#1124])
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-6/igt@[email protected]
* igt@kms_cursor_crc@cursor-rapid-movement-256x85:
- shard-bmg: NOTRUN -> [SKIP][10] ([Intel XE#2320])
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-6/igt@[email protected]
* igt@kms_dsc@dsc-with-output-formats:
- shard-bmg: NOTRUN -> [SKIP][11] ([Intel XE#2244])
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-6/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@a-edp1:
- shard-lnl: [PASS][12] -> [FAIL][13] ([Intel XE#301])
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-lnl-5/igt@kms_flip@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-lnl-4/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling:
- shard-bmg: NOTRUN -> [SKIP][14] ([Intel XE#7178] / [Intel XE#7351])
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-6/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling.html
* igt@kms_frontbuffer_tracking@fbc-argb161616f-draw-render:
- shard-bmg: NOTRUN -> [SKIP][15] ([Intel XE#7061] / [Intel XE#7356]) +1 other test skip
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-tiling-4:
- shard-bmg: NOTRUN -> [SKIP][16] ([Intel XE#4141])
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcdrrs-rgb101010-draw-blt:
- shard-bmg: NOTRUN -> [SKIP][17] ([Intel XE#2311]) +3 other tests skip
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-4/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-primscrn-cur-indfb-draw-render:
- shard-bmg: NOTRUN -> [SKIP][18] ([Intel XE#2313]) +1 other test skip
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-6/igt@kms_frontbuffer_tracking@psr-2p-primscrn-cur-indfb-draw-render.html
* igt@kms_setmode@basic:
- shard-bmg: [PASS][19] -> [FAIL][20] ([Intel XE#6361]) +2 other tests fail
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-bmg-9/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-7/igt@[email protected]
* igt@kms_setmode@basic@pipe-b-edp-1:
- shard-lnl: [PASS][21] -> [FAIL][22] ([Intel XE#6361]) +2 other tests fail
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-lnl-8/igt@kms_setmode@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-lnl-8/igt@kms_setmode@[email protected]
* igt@xe_evict@evict-beng-mixed-many-threads-small:
- shard-bmg: [PASS][23] -> [INCOMPLETE][24] ([Intel XE#6321])
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-bmg-2/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-7/igt@[email protected]
* igt@xe_evict@evict-cm-threads-small-multi-queue:
- shard-bmg: NOTRUN -> [SKIP][25] ([Intel XE#7140])
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-4/igt@[email protected]
* igt@xe_exec_basic@multigpu-once-null-defer-mmap:
- shard-bmg: NOTRUN -> [SKIP][26] ([Intel XE#2322] / [Intel XE#7372]) +1 other test skip
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-4/igt@[email protected]
* igt@xe_exec_multi_queue@many-queues-preempt-mode-dyn-priority-smem:
- shard-bmg: NOTRUN -> [SKIP][27] ([Intel XE#6874]) +2 other tests skip
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-6/igt@xe_exec_multi_queue@many-queues-preempt-mode-dyn-priority-smem.html
* igt@xe_exec_threads@threads-multi-queue-rebind:
- shard-bmg: NOTRUN -> [SKIP][28] ([Intel XE#7138])
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-6/igt@[email protected]
* igt@xe_oa@mmio-triggered-reports-read:
- shard-bmg: NOTRUN -> [FAIL][29] ([Intel XE#7522] / [Intel XE#7555])
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-6/igt@[email protected]
* igt@xe_oa@mmio-triggered-reports-read@oam-3:
- shard-bmg: NOTRUN -> [FAIL][30] ([Intel XE#7522])
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-6/igt@xe_oa@[email protected]
* igt@xe_query@multigpu-query-invalid-query:
- shard-bmg: NOTRUN -> [SKIP][31] ([Intel XE#944])
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-6/igt@[email protected]
#### Possible fixes ####
* igt@kms_async_flips@alternate-sync-async-flip@pipe-a-edp-1:
- shard-lnl: [FAIL][32] ([Intel XE#3718] / [Intel XE#7265]) -> [PASS][33]
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-lnl-6/igt@kms_async_flips@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-lnl-5/igt@kms_async_flips@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@c-edp1:
- shard-lnl: [FAIL][34] ([Intel XE#301] / [Intel XE#3149]) -> [PASS][35]
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-lnl-5/igt@kms_flip@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-lnl-4/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate:
- shard-bmg: [DMESG-WARN][36] ([Intel XE#5208]) -> [PASS][37]
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-bmg-2/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-1/igt@[email protected]
* igt@kms_flip@plain-flip-fb-recreate@c-dp2:
- shard-bmg: [DMESG-WARN][38] -> [PASS][39]
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-bmg-2/igt@kms_flip@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-1/igt@kms_flip@[email protected]
* igt@kms_hdr@invalid-hdr:
- shard-bmg: [SKIP][40] ([Intel XE#1503]) -> [PASS][41]
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-bmg-9/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-1/igt@[email protected]
* igt@kms_vrr@seamless-rr-switch-virtual@pipe-a-edp-1:
- shard-lnl: [FAIL][42] ([Intel XE#2142]) -> [PASS][43] +1 other test pass
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-lnl-1/igt@kms_vrr@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-lnl-6/igt@kms_vrr@[email protected]
#### Warnings ####
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-lnl: [FAIL][44] ([Intel XE#301] / [Intel XE#3149]) -> [FAIL][45] ([Intel XE#301])
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-lnl-5/igt@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-lnl-4/igt@[email protected]
* igt@kms_hdr@brightness-with-hdr:
- shard-bmg: [SKIP][46] ([Intel XE#3544]) -> [SKIP][47] ([Intel XE#3374] / [Intel XE#3544])
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-bmg-2/igt@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-1/igt@[email protected]
* igt@kms_tiled_display@basic-test-pattern:
- shard-bmg: [FAIL][48] ([Intel XE#1729] / [Intel XE#7424]) -> [SKIP][49] ([Intel XE#2426] / [Intel XE#5848])
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-bmg-2/igt@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-1/igt@[email protected]
* igt@kms_tiled_display@basic-test-pattern-with-chamelium:
- shard-bmg: [SKIP][50] ([Intel XE#2426] / [Intel XE#5848]) -> [SKIP][51] ([Intel XE#2509] / [Intel XE#7437])
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9/shard-bmg-7/igt@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/shard-bmg-2/igt@[email protected]
[Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
[Intel XE#1503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1503
[Intel XE#1729]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1729
[Intel XE#2142]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2142
[Intel XE#2244]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2244
[Intel XE#2311]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2311
[Intel XE#2313]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2313
[Intel XE#2320]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2320
[Intel XE#2322]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2322
[Intel XE#2426]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2426
[Intel XE#2509]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2509
[Intel XE#301]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/301
[Intel XE#3149]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3149
[Intel XE#3374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3374
[Intel XE#3544]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3544
[Intel XE#3718]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3718
[Intel XE#4141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4141
[Intel XE#5208]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5208
[Intel XE#5848]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5848
[Intel XE#6321]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6321
[Intel XE#6361]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6361
[Intel XE#6874]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6874
[Intel XE#7061]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7061
[Intel XE#7138]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7138
[Intel XE#7140]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7140
[Intel XE#7178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7178
[Intel XE#7265]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7265
[Intel XE#7351]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7351
[Intel XE#7356]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7356
[Intel XE#7372]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7372
[Intel XE#7424]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7424
[Intel XE#7437]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7437
[Intel XE#7522]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7522
[Intel XE#7555]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7555
[Intel XE#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944
Build changes
-------------
* Linux: xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9 -> xe-pw-153280v4
IGT_8782: eac3b04d1f76b82ac3a183fb293c44e9185d8dba @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-4673-79792a2fc5d37b5446e543f1de05158ab0f551c9: 79792a2fc5d37b5446e543f1de05158ab0f551c9
xe-pw-153280v4: 153280v4
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-153280v4/index.html
Re: [PATCH v4 1/4] mm/mmu_notifier: Allow two-pass struct mmu_interval_notifiers
In reply to Thomas HellströmHey,
Den 2026-03-05 kl. 10:39, skrev Thomas Hellström:
Quoted 160 lines
GPU use-cases for
mmu_interval_notifierswith hmm often involve starting a gpu operation and then waiting for it to complete. These operations are typically context preemption or TLB flushing.With single-pass notifiers per GPU this doesn't scale in multi-gpu scenarios. In those scenarios we'd want to first start preemption- or TLB flushing on all GPUs and as a second pass wait for them to complete.
One can do this on per-driver basis multiplexing per-driver notifiers but that would mean sharing the notifier "user" lock across all GPUs and that doesn't scale well either, so adding support for multi-pass in the core appears to be the right choice.
Implement two-pass capability in the
mmu_interval_notifier. Use a linked list for the final passes to minimize the impact for use-cases that don't need the multi-pass functionality by avoiding a second interval tree walk, and to be able to easily pass data between the two passes.v1:
- Restrict to two passes (Jason Gunthorpe)
- Improve on documentation (Jason Gunthorpe)
- Improve on function naming (Alistair Popple)
v2:
- Include theinvalidate_finish()callback in the
structmmu_interval_notifier_ops.
- Update documentation (GitHub Copilot:claude-sonnet-4.6)
- Use lockless list for list management.
v3:
- Update kerneldoc for the structmmu_interval_notifier_finish::listmember (Matthew Brost)
- Add aWARN_ON_ONCE()checking for NULLinvalidate_finish()op if ifinvalidate_start()is non-NULL. (Matthew Brost)
v4:
- Addressed documentation review comments by David Hildenbrand.Cc Matthew Brost <[email protected]>Cc Christian König <[email protected]>Cc David Hildenbrand <[email protected]>Cc Lorenzo Stoakes <[email protected]>Cc Liam R. Howlett <[email protected]>Cc Vlastimil Babka <[email protected]>Cc Mike Rapoport <[email protected]>Cc Suren Baghdasaryan <[email protected]>Cc Michal Hocko <[email protected]>Cc Jason Gunthorpe <[email protected]>Cc Andrew Morton <[email protected]>Cc Simona Vetter <[email protected]>Cc Dave Airlie <[email protected]>Cc Alistair Popple <[email protected]>Cc <[email protected]>Cc <[email protected]>Cc <[email protected]>Assisted-by GitHub Copilot:claude-sonnet-4.6 # Documentation only.Signed-off-by Thomas Hellström <[email protected]>--- include/linux/mmu_notifier.h | 42 +++++++++++++++++++++++ mm/mmu_notifier.c | 65 +++++++++++++++++++++++++++++++----- 2 files changed, 98 insertions(+), 9 deletions(-)include/linux/mmu_notifier.h +42
-0@@ -233,16 +233,58 @@ struct mmu_notifier {unsigned int users; }; +/** +* struct mmu_interval_notifier_finish - mmu_interval_notifier two-pass abstraction +* @link: Lockless list link for the notifiers pending pass list +* @notifier: The mmu_interval_notifier for which the finish pass is called. +* +* Allocate, typically using GFP_NOWAIT in the interval notifier's start pass. +* Note that with a large number of notifiers implementing two passes, +* allocation with GFP_NOWAIT will become increasingly likely to fail, so consider +* implementing a small pool instead of using kmalloc() allocations. +* +* If the implementation needs to pass data between the start and the finish passes, +* the recommended way is to embed struct mmu_interval_notifier_finish into a larger +* structure that also contains the data needed to be shared. Keep in mind that +* a notifier callback can be invoked in parallel, and each invocation needs its +* own struct mmu_interval_notifier_finish. +* +* If allocation fails, then the &mmu_interval_notifier_ops->invalidate_start op +* needs to implements the full notifier functionality. Please refer to its +* documentation. +*/ +struct mmu_interval_notifier_finish { +struct llist_node link; +struct mmu_interval_notifier *notifier; +}; +/** * struct mmu_interval_notifier_ops * @invalidate: Upon return the caller must stop using any SPTEs within this * range. This function can sleep. Return false only if sleeping * was required but mmu_notifier_range_blockable(range) is false. +* @invalidate_start: Similar to @invalidate, but intended for two-pass notifier +* callbacks where the call to @invalidate_start is the first +* pass and any struct mmu_interval_notifier_finish pointer +* returned in the @finish parameter describes the finish pass. +* If *@finish is %NULL on return, then no final pass will be +* called, and @invalidate_start needs to implement the full +* notifier, behaving like @invalidate. The value of *@finish +* is guaranteed to be %NULL at function entry. +* @invalidate_finish: Called as the second pass for any notifier that returned +* a non-NULL *@finish from @invalidate_start. The @finish +* pointer passed here is the same one returned by +* @invalidate_start. */ struct mmu_interval_notifier_ops {bool (*invalidate)(struct mmu_interval_notifier *interval_sub,const struct mmu_notifier_range *range,unsigned long cur_seq); +bool (*invalidate_start)(struct mmu_interval_notifier *interval_sub, +const struct mmu_notifier_range *range, +unsigned long cur_seq, +struct mmu_interval_notifier_finish **finish); +void (*invalidate_finish)(struct mmu_interval_notifier_finish *finish); };struct mmu_interval_notifier {mm/mmu_notifier.c +11
-2@@ -260,6 +260,15 @@ mmu_interval_read_begin(struct mmu_interval_notifier *interval_sub) }EXPORT_SYMBOL_GPL (mmu_interval_read_begin); +static void mn_itree_finish_pass (struct llist_head *finish_passes) +{ +struct llist_node *first =llist_reverse_order (__llist_del_all (finish_passes)); +struct mmu_interval_notifier_finish *f, *next; + +llist_for_each_entry_safe (f, next, first, link) + f->notifier->ops->invalidate_finish (f); +} +static void mn_itree_release (struct mmu_notifier_subscriptions *subscriptions,struct mm_struct *mm) {@@ -271,6 +280,7 @@ static void mn_itree_release(struct mmu_notifier_subscriptions *subscriptions, .end = ULONG_MAX, };struct mmu_interval_notifier *interval_sub; +LLIST_HEAD (finish_passes);unsigned long cur_seq;bool ret;@@ -278,11 +288,27 @@ static void mn_itree_release(struct mmu_notifier_subscriptions *subscriptions,mn_itree_inv_start_range (subscriptions, &range, &cur_seq); interval_sub; interval_sub = mn_itree_inv_next(interval_sub, &range)) { - ret = interval_sub->ops->invalidate (interval_sub, &range, - cur_seq); +if (interval_sub->ops->invalidate_start) {
mm/mmu_notifier.c static void mn_itree_release(struct mmu_notifier_subscriptions *subscriptions, · line 301
Quoted 10 lines
mm/mmu_notifier.c +10
-0+struct mmu_interval_notifier_finish *finish =NULL ; + + ret = interval_sub->ops->invalidate_start (interval_sub, + &range, + cur_seq, + &finish); +if (ret && finish) { + finish->notifier = interval_sub; +__llist_add (&finish->link, &finish_passes); + }
Should we warn if !ret && finish?
Anyway, looks good either way.
Quoted 79 lines
mm/mmu_notifier.c +34
-7+ }else { + ret = interval_sub->ops->invalidate (interval_sub, + &range, + cur_seq); + }WARN_ON (!ret); } +mn_itree_finish_pass (&finish_passes);mn_itree_inv_end (subscriptions); }@@ -430,7 +456,9 @@ static int mn_itree_invalidate(struct mmu_notifier_subscriptions *subscriptions, const struct mmu_notifier_range *range) {struct mmu_interval_notifier *interval_sub; +LLIST_HEAD (finish_passes);unsigned long cur_seq; +int err =0 ; for (interval_sub = mn_itree_inv_start_range(subscriptions, range, &cur_seq);@@ -438,23 +466,41 @@ static int mn_itree_invalidate(struct mmu_notifier_subscriptions *subscriptions, interval_sub = mn_itree_inv_next(interval_sub, range)) {bool ret; - ret = interval_sub->ops->invalidate (interval_sub, range, - cur_seq); +if (interval_sub->ops->invalidate_start) { +struct mmu_interval_notifier_finish *finish =NULL ; + + ret = interval_sub->ops->invalidate_start (interval_sub, + range, + cur_seq, + &finish); +if (ret && finish) { + finish->notifier = interval_sub; +__llist_add (&finish->link, &finish_passes); + } + + }else { + ret = interval_sub->ops->invalidate (interval_sub, + range, + cur_seq); + }if (!ret) {if (WARN_ON (mmu_notifier_range_blockable (range)))continue ; - goto out_would_block; + err = -EAGAIN ; +break ; } } -return 0 ; -out_would_block: +mn_itree_finish_pass (&finish_passes); +/* * On -EAGAIN the non-blocking caller is not allowed to call * invalidate_range_end() */ -mn_itree_inv_end (subscriptions); -return -EAGAIN ; +if (err) +mn_itree_inv_end (subscriptions); + +return err; } static int mn_hlist_invalidate_range_start(@@ -976,6 +1022,7 @@ int mmu_interval_notifier_insert(struct mmu_interval_notifier *interval_sub,struct mmu_notifier_subscriptions *subscriptions;int ret; +WARN_ON_ONCE (ops->invalidate_start && !ops->invalidate_finish);might_lock (&mm->mmap_lock); subscriptions =smp_load_acquire (&mm->notifier_subscriptions);
Thomas Hellström
maintainerRe: [PATCH v4 1/4] mm/mmu_notifier: Allow two-pass struct mmu_interval_notifiers
In reply to a message not in the archiveReplying to list address for reference.
Quoted 87 lines · David Hildenbrand (Arm)
Quoted 71 lines · Thomas Hellström
Quoted 70 lines · David Hildenbrand (Arm)
Quoted 68 lines · Thomas Hellström
GPU use-cases for
mmu_interval_notifierswith hmm often involve starting a gpu operation and then waiting for it to complete. These operations are typically context preemption or TLB flushing.With single-pass notifiers per GPU this doesn't scale in multi-gpu scenarios. In those scenarios we'd want to first start
preemption- or TLB flushing on all GPUs and as a second pass wait
for them to complete.One can do this on per-driver basis multiplexing per-driver notifiers but that would mean sharing the notifier "user" lock across all GPUs and that doesn't scale well either, so adding support
for multi-pass in the core appears to be the right choice.Implement two-pass capability in the
mmu_interval_notifier. Use a
linked list for the final passes to minimize the impact for use-cases that don't need the multi-pass functionality by avoiding
a second interval tree walk, and to be able to easily pass data between the two passes.v1:
- Restrict to two passes (Jason Gunthorpe)
- Improve on documentation (Jason Gunthorpe)
- Improve on function naming (Alistair Popple)
v2:
- Include theinvalidate_finish()callback in the structmmu_interval_notifier_ops.
- Update documentation (GitHub Copilot:claude-sonnet-4.6)
- Use lockless list for list management.
v3:
- Update kerneldoc for the structmmu_interval_notifier_finish::listmember
(Matthew Brost)
- Add aWARN_ON_ONCE()checking for NULLinvalidate_finish()op if
ifinvalidate_start()is non-NULL. (Matthew Brost) v4:
- Addressed documentation review comments by David Hildenbrand.Cc Matthew Brost <[email protected]>Cc Christian König <[email protected]>Cc David Hildenbrand <[email protected]>Cc Lorenzo Stoakes <[email protected]>Cc Liam R. Howlett <[email protected]>Cc Vlastimil Babka <[email protected]>Cc Mike Rapoport <[email protected]>Cc Suren Baghdasaryan <[email protected]>Cc Michal Hocko <[email protected]>Cc Jason Gunthorpe <[email protected]>Cc Andrew Morton <[email protected]>Cc Simona Vetter <[email protected]>Cc Dave Airlie <[email protected]>Cc Alistair Popple <[email protected]>Cc <[email protected]>Cc <[email protected]>Cc <[email protected]>Assisted-by GitHub Copilot:claude-sonnet-4.6 # Documentationonly.
Signed-off-by: Thomas Hellström
<[email protected]>
---Quoted 7 lines
Quoted 3 lines
LGTM, thanks!
Thanks, David.
Ack to merge this through drm together with the drm/xe patches?
Works for me, let me CC Andrew for awareness.
Quoted 3 lines
If so, do I need an additional R-B in addition to any drm/xe reviewers?
Not from MM people :)
Re: [PATCH v4 1/4] mm/mmu_notifier: Allow two-pass struct mmu_interval_notifiers
In reply to Thomas HellströmQuoted 55 lines · Thomas Hellström
GPU use-cases for
mmu_interval_notifierswith hmm often involve starting a gpu operation and then waiting for it to complete. These operations are typically context preemption or TLB flushing.With single-pass notifiers per GPU this doesn't scale in multi-gpu scenarios. In those scenarios we'd want to first start preemption- or TLB flushing on all GPUs and as a second pass wait for them to complete.
One can do this on per-driver basis multiplexing per-driver notifiers but that would mean sharing the notifier "user" lock across all GPUs and that doesn't scale well either, so adding support for multi-pass in the core appears to be the right choice.
Implement two-pass capability in the
mmu_interval_notifier. Use a linked list for the final passes to minimize the impact for use-cases that don't need the multi-pass functionality by avoiding a second interval tree walk, and to be able to easily pass data between the two passes.v1:
- Restrict to two passes (Jason Gunthorpe)
- Improve on documentation (Jason Gunthorpe)
- Improve on function naming (Alistair Popple)
v2:
- Include theinvalidate_finish()callback in the
structmmu_interval_notifier_ops.
- Update documentation (GitHub Copilot:claude-sonnet-4.6)
- Use lockless list for list management.
v3:
- Update kerneldoc for the structmmu_interval_notifier_finish::listmember (Matthew Brost)
- Add aWARN_ON_ONCE()checking for NULLinvalidate_finish()op if ifinvalidate_start()is non-NULL. (Matthew Brost)
v4:
- Addressed documentation review comments by David Hildenbrand.Cc Matthew Brost <[email protected]>Cc Christian König <[email protected]>Cc David Hildenbrand <[email protected]>Cc Lorenzo Stoakes <[email protected]>Cc Liam R. Howlett <[email protected]>Cc Vlastimil Babka <[email protected]>Cc Mike Rapoport <[email protected]>Cc Suren Baghdasaryan <[email protected]>Cc Michal Hocko <[email protected]>Cc Jason Gunthorpe <[email protected]>Cc Andrew Morton <[email protected]>Cc Simona Vetter <[email protected]>Cc Dave Airlie <[email protected]>Cc Alistair Popple <[email protected]>Cc <[email protected]>Cc <[email protected]>Cc <[email protected]>
Quoted 6 lines
Assisted-by GitHub Copilot:claude-sonnet-4.6 # Documentation only.Signed-off-by Thomas Hellström <[email protected]>--- include/linux/mmu_notifier.h | 42 +++++++++++++++++++++++ mm/mmu_notifier.c | 65 +++++++++++++++++++++++++++++++----- 2 files changed, 98 insertions(+), 9 deletions(-)
Jason