drm/i915: Release i915_gem_context from a worker
Subsystems (2)
PATCH 1/11 drm/i915: Release i915_gem_context from a worker
The only reason for this really is the i915_gem_engines->fence callback engines_notify(), which exists purely as a fairly funky reference counting scheme for that. Otherwise all other callers are from process context, and generally fairly benign locking context.
Unfortunately untangling that requires some major surgery, and we have a few i915_gem_context reference counting bugs that need fixing, and they blow in the current hardirq calling context, so we need a stop-gap measure.
Put a FIXME comment in when this should be removable again.
v2: Fix mock_context(), noticed by intel-gfx-ci.
--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 13 +++++++++++-- drivers/gpu/drm/i915/gem/i915_gem_context_types.h | 12 ++++++++++++ drivers/gpu/drm/i915/gem/selftests/mock_context.c | 1 + 3 files changed, 24 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_context.c +11 -2
@@ -986,9 +986,10 @@ static struct i915_gem_engines *user_engines(struct i915_gem_context *ctx,return err; } -void i915_gem_context_release (struct kref *ref) +static void i915_gem_context_release_work (struct work_struct *work) { -struct i915_gem_context *ctx =container_of (ref,typeof (*ctx), ref); +struct i915_gem_context *ctx =container_of (work,typeof (*ctx), + release_work);trace_i915_context_free (ctx);GEM_BUG_ON (!i915_gem_context_is_closed (ctx));
@@ -1002,6 +1003,13 @@ void i915_gem_context_release(struct kref *ref)kfree_rcu (ctx, rcu); } +void i915_gem_context_release (struct kref *ref) +{ +struct i915_gem_context *ctx =container_of (ref,typeof (*ctx), ref); + +queue_work (ctx->i915->wq, &ctx->release_work); +} +static inline struct i915_gem_engines *__context_engines_static (const struct i915_gem_context *ctx) {
@@ -1303,6 +1311,7 @@ i915_gem_create_context(struct drm_i915_private *i915, ctx->sched = pc->sched;mutex_init (&ctx->mutex);INIT_LIST_HEAD (&ctx->link); +INIT_WORK (&ctx->release_work, i915_gem_context_release_work);spin_lock_init (&ctx->stale.lock);INIT_LIST_HEAD (&ctx->stale.engines);
drivers/gpu/drm/i915/gem/i915_gem_context_types.h +12 -0
@@ -288,6 +288,18 @@ struct i915_gem_context {*/ struct kref ref; +/** +* @release_work: +* +* Work item for deferred cleanup, since i915_gem_context_put() tends to +* be called from hardirq context. +* +* FIXME: The only real reason for this is &i915_gem_engines.fence, all +* other callers are from process context and need at most some mild +* shuffling to pull the i915_gem_context_put() call out of a spinlock. +*/ +struct work_struct release_work; +/** * @rcu: rcu_head for deferred freeing. */
drivers/gpu/drm/i915/gem/selftests/mock_context.c +1 -0
@@ -23,6 +23,7 @@ mock_context(struct drm_i915_private *i915,kref_init (&ctx->ref);INIT_LIST_HEAD (&ctx->link); ctx->i915 = i915; +INIT_WORK (&ctx->release_work, i915_gem_context_release_work);mutex_init (&ctx->mutex);
Signature · 1 line
2.33.0
PATCH 2/11 drm/i915: Release ctx->syncobj on final put, not on ctx close
gem context refcounting is another exercise in least locking design it seems, where most things get destroyed upon context closure (which can race with anything really). Only the actual memory allocation and the locks survive while holding a reference.
This tripped up Jason when reimplementing the single timeline feature in
commit 00dae4d3d35d4f526929633b76e00b0ab4d3970d
Author: Jason Ekstrand <[email protected]> Date: Thu Jul 8 10:48:12 2021 -0500
drm/i915: Implement SINGLE_TIMELINE with a syncobj (v4)
We could fix the bug by holding ctx->mutex in execbuf and clear the pointer (again while holding the mutex) context_close, but it's cleaner to just make the context object actually invariant over its _entire_ lifetime. This way any other ioctl that's potentially racing, but holding a full reference, can still rely on ctx->syncobj being an immutable pointer. Which without this change, is not the case.
--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_context.c +3 -3
@@ -994,6 +994,9 @@ static void i915_gem_context_release_work(struct work_struct *work)trace_i915_context_free (ctx);GEM_BUG_ON (!i915_gem_context_is_closed (ctx)); +if (ctx->syncobj) +drm_syncobj_put (ctx->syncobj); +mutex_destroy (&ctx->engines_mutex);mutex_destroy (&ctx->lut_mutex);
@@ -1220,9 +1223,6 @@ static void context_close(struct i915_gem_context *ctx)if (vm)i915_vm_close (vm); -if (ctx->syncobj) -drm_syncobj_put (ctx->syncobj); - ctx->file_priv =ERR_PTR (-EBADF );/*
Signature · 1 line
2.33.0
PATCH 3/11 drm/i915: Keep gem ctx->vm alive until the final put
In reply to Daniel VetterThe comment added in
commit b81dde719439c8f09bb61e742ed95bfc4b33946b
Author: Chris Wilson <[email protected]>
Date: Tue May 21 22:11:29 2019 +0100
drm/i915: Allow userspace to clone contexts on creation
and moved in
commit 27dbae8f36c1c25008b7885fc07c57054b7dfba3
Author: Chris Wilson <[email protected]>
Date: Wed Nov 6 09:13:12 2019 +0000
drm/i915/gem: Safely acquire the ctx->vm when copyingsuggested that i915_address_space were at least intended to be managed through SLAB_TYPESAFE_BY_RCU:
* This ppgtt may have be reallocated between
* the read and the kref, and reassigned to a third
* context. In order to avoid inadvertent sharing
* of this ppgtt with that third context (and not
* src), we have to confirm that we have the same
* ppgtt after passing through the strong memory
* barrier implied by a successful
* kref_get_unless_zero().
But extensive git history search has not brough any such reuse to light.
What has come to light though is that ever since
commit 2850748ef8763ab46958e43a4d1c445f29eeb37d
Author: Chris Wilson <[email protected]> Date: Fri Oct 4 14:39:58 2019 +0100
drm/i915: Pull i915_vma_pin under the vm->mutex
(yes this commit is earlier) the final i915_vma_put call has been moved from i915_gem_context_free (now called _release) to context_close, which means it's not actually safe anymore to access the ctx->vm pointer without lock helds, because it might disappear at any moment. Note that superficially things all still work, because the i915_address_space is RCU protected since
commit b32fa811156328aea5a3c2ff05cc096490382456
Author: Chris Wilson <[email protected]>
Date: Thu Jun 20 19:37:05 2019 +0100
drm/i915/gtt: Defer address space cleanup to an RCU worker
except the very clever macro above (which is designed to protected against object reuse due to SLAB_TYPESAFE_BY_RCU or similar tricks) results in an endless loop if the refcount of the ctx->vm ever permanently drops to 0. Which it totally now can.
Fix that by moving the final i915_vm_put to where it should be.
Note that i915_gem_context is rcu protected, but _only_ the final kfree. This means anyone who chases a pointer to a gem ctx solely under the protection can pretty only call kref_get_unless_zero(). This seems to be pretty much the case, aside from a bunch of cases that consult the scheduling information without any further protection.
--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gem/i915_gem_context.c +13 -1
@@ -990,6 +990,7 @@ static void i915_gem_context_release_work(struct work_struct *work) {struct i915_gem_context *ctx =container_of (work,typeof (*ctx), release_work); +struct i915_address_space *vm;trace_i915_context_free (ctx);GEM_BUG_ON (!i915_gem_context_is_closed (ctx));
@@ -997,6 +998,10 @@ static void i915_gem_context_release_work(struct work_struct *work)if (ctx->syncobj)drm_syncobj_put (ctx->syncobj); + vm =i915_gem_context_vm (ctx); +if (vm) +i915_vm_put (vm); +mutex_destroy (&ctx->engines_mutex);mutex_destroy (&ctx->lut_mutex);
@@ -1220,8 +1225,15 @@ static void context_close(struct i915_gem_context *ctx)set_closed_name (ctx); vm =i915_gem_context_vm (ctx); -if (vm) +if (vm) { +/* i915_vm_close drops the final reference, which is a bit too +* early and could result in surprises with concurrent +* operations racing with thist ctx close. Keep a full reference +* until the end. +*/ +i915_vm_get (vm);i915_vm_close (vm); + } ctx->file_priv =ERR_PTR (-EBADF );
Signature · 1 line
2.33.0
PATCH 4/11 drm/i915: Drop code to handle set-vm races from execbuf
In reply to Daniel VetterChanging the vm from a finalized gem ctx is no longer possible, which means we don't have to check for that anymore.
I was pondering whether to keep the check as a WARN_ON, but things go boom real bad real fast if the vm of a vma is wrong. Plus we'd need to also get the ggtt vm for !full-ppgtt platforms. Ditching it all seemed like a better idea.
References: ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")
--- drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +1 -5
@@ -775,11 +775,7 @@ static int __eb_add_lut(struct i915_execbuffer *eb,/* Check that the context hasn't been closed in the meantime */ err = -EINTR ;if (!mutex_lock_interruptible (&ctx->lut_mutex)) { -struct i915_address_space *vm =rcu_access_pointer (ctx->vm); - -if (unlikely (vm && vma->vm != vm)) - err = -EAGAIN ;/* user racing with ctx set-vm */ -else if (likely (!i915_gem_context_is_closed (ctx))) +if (likely (!i915_gem_context_is_closed (ctx))) err =radix_tree_insert (&ctx->handles_vma, handle, vma);else err = -ENOENT ;
Signature · 1 line
2.33.0
PATCH 5/11 drm/i915: Rename i915_gem_context_get_vm_rcu to i915_gem_context_get_eb_vm
In reply to Daniel VetterThe important part isn't so much that this does an rcu lookup - that's more an implementation detail, which will also be removed.
The thing that makes this different from other functions is that it's gettting you the vm that batchbuffers will run in for that gem context, which is either a full ppgtt stored in gem->ctx, or the ggtt.
We'll make more use of this function later on.
--- drivers/gpu/drm/i915/gem/i915_gem_context.h | 2 +- drivers/gpu/drm/i915/gem/selftests/huge_pages.c | 4 ++-- drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 4 ++-- drivers/gpu/drm/i915/gt/selftest_execlists.c | 2 +- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 2 +- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 4 ++-- drivers/gpu/drm/i915/selftests/i915_vma.c | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_context.h +1 -1
@@ -155,7 +155,7 @@ i915_gem_context_vm(struct i915_gem_context *ctx) }static inline struct i915_address_space * -i915_gem_context_get_vm_rcu (struct i915_gem_context *ctx) +i915_gem_context_get_eb_vm (struct i915_gem_context *ctx) {struct i915_address_space *vm;
drivers/gpu/drm/i915/gem/selftests/huge_pages.c +2 -2
@@ -1456,7 +1456,7 @@ static int igt_tmpfs_fallback(void *arg)struct i915_gem_context *ctx = arg;struct drm_i915_private *i915 = ctx->i915;struct vfsmount *gemfs = i915->mm.gemfs; -struct i915_address_space *vm =i915_gem_context_get_vm_rcu (ctx); +struct i915_address_space *vm =i915_gem_context_get_eb_vm (ctx);struct drm_i915_gem_object *obj;struct i915_vma *vma;u32 *vaddr;
@@ -1512,7 +1512,7 @@ static int igt_shrink_thp(void *arg) {struct i915_gem_context *ctx = arg;struct drm_i915_private *i915 = ctx->i915; -struct i915_address_space *vm =i915_gem_context_get_vm_rcu (ctx); +struct i915_address_space *vm =i915_gem_context_get_eb_vm (ctx);struct drm_i915_gem_object *obj;struct i915_gem_engines_iter it;struct intel_context *ce;
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +2 -2
@@ -1528,7 +1528,7 @@ static int write_to_scratch(struct i915_gem_context *ctx,intel_gt_chipset_flush (engine->gt); - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =i915_vma_instance (obj, vm,NULL );if (IS_ERR (vma)) { err =PTR_ERR (vma);
@@ -1607,7 +1607,7 @@ static int read_from_scratch(struct i915_gem_context *ctx,if (GRAPHICS_VER (i915) >=8 ) {const u32 GPR0 = engine->mmio_base +0x600 ; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =i915_vma_instance (obj, vm,NULL );if (IS_ERR (vma)) { err =PTR_ERR (vma);
drivers/gpu/drm/i915/gt/selftest_execlists.c +1 -1
@@ -3493,7 +3493,7 @@ static int smoke_submit(struct preempt_smoke *smoke,if (batch) {struct i915_address_space *vm; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =i915_vma_instance (batch, vm,NULL );i915_vm_put (vm);if (IS_ERR (vma))
drivers/gpu/drm/i915/gt/selftest_hangcheck.c +1 -1
@@ -117,7 +117,7 @@ static struct i915_request * hang_create_request(struct hang *h, struct intel_engine_cs *engine) { struct intel_gt *gt = h->gt; -struct i915_address_space *vm =i915_gem_context_get_vm_rcu (h->ctx); +struct i915_address_space *vm =i915_gem_context_get_eb_vm (h->ctx);struct drm_i915_gem_object *obj;struct i915_request *rq =NULL ;struct i915_vma *hws, *vma;
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +2 -2
@@ -1300,7 +1300,7 @@ static int exercise_mock(struct drm_i915_private *i915,if (!ctx)return -ENOMEM ; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); err =func (vm,0 ,min (vm->total, limit), end_time);i915_vm_put (vm);
@@ -1848,7 +1848,7 @@ static int igt_cs_tlb(void *arg) goto out_unlock; } - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx);if (i915_is_ggtt (vm)) goto out_vm;
drivers/gpu/drm/i915/selftests/i915_vma.c +1 -1
@@ -118,7 +118,7 @@ static int create_vmas(struct drm_i915_private *i915,struct i915_vma *vma;int err; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =checked_vma_instance (obj, vm,NULL );i915_vm_put (vm);if (IS_ERR (vma))
Signature · 1 line
2.33.0
Re: [Intel-gfx] [PATCH 05/11] drm/i915: Rename i915_gem_context_get_vm_rcu to i915_gem_context_get_eb_vm
Quoted 58 lines · Daniel Vetter
The important part isn't so much that this does an rcu lookup - that's more an implementation detail, which will also be removed.
The thing that makes this different from other functions is that it's gettting you the vm that batchbuffers will run in for that gem context, which is either a full ppgtt stored in
gem->ctx, or the ggtt.We'll make more use of this function later on.
Reviewed-by Maarten Lankhorst <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Cc Jon Bloomfield <[email protected]>Cc Chris Wilson <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Daniel Vetter <[email protected]>Cc "Thomas Hellström" <[email protected]>Cc Matthew Auld <[email protected]>Cc Lionel Landwerlin <[email protected]>Cc Dave Airlie <[email protected]>Cc Jason Ekstrand <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_context.h | 2 +- drivers/gpu/drm/i915/gem/selftests/huge_pages.c | 4 ++-- drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 4 ++-- drivers/gpu/drm/i915/gt/selftest_execlists.c | 2 +- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 2 +- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 4 ++-- drivers/gpu/drm/i915/selftests/i915_vma.c | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_context.h +1
-1@@ -155,7 +155,7 @@ i915_gem_context_vm(struct i915_gem_context *ctx) }static inline struct i915_address_space * -i915_gem_context_get_vm_rcu (struct i915_gem_context *ctx) +i915_gem_context_get_eb_vm (struct i915_gem_context *ctx) {struct i915_address_space *vm;drivers/gpu/drm/i915/gem/selftests/huge_pages.c +1
-1@@ -1456,7 +1456,7 @@ static int igt_tmpfs_fallback(void *arg)struct i915_gem_context *ctx = arg;struct drm_i915_private *i915 = ctx->i915;struct vfsmount *gemfs = i915->mm.gemfs; -struct i915_address_space *vm =i915_gem_context_get_vm_rcu (ctx); +struct i915_address_space *vm =i915_gem_context_get_eb_vm (ctx);struct drm_i915_gem_object *obj;struct i915_vma *vma;u32 *vaddr;
drivers/gpu/drm/i915/gem/selftests/huge_pages.c static int igt_shrink_thp(void *arg) · line 1515
Quoted 5 lines
drivers/gpu/drm/i915/gem/selftests/huge_pages.c +1
-1@@ -1512,7 +1512,7 @@ static int igt_shrink_thp(void *arg) {struct i915_gem_context *ctx = arg;struct drm_i915_private *i915 = ctx->i915; -struct i915_address_space *vm =i915_gem_context_get_vm_rcu (ctx); +struct i915_address_space *vm =i915_gem_context_get_eb_vm (ctx);
Problem here (and probably elsewhere) is that this test does no "eb", nor even submits any requests for execution.
More so, execbuf path does currently rely on intel_context->vm which is always set. So I really wonder how it would look, what I touched on elsewhere in the thread, if we instead made ctx->vm always point to something. It would align the rules between intel_context and GEM context and may end up with a more consistent situation.
Regards,
Tvrtko
Quoted 87 lines
drivers/gpu/drm/i915/gem/selftests/huge_pages.c +0
-0struct drm_i915_gem_object *obj;struct i915_gem_engines_iter it;struct intel_context *ce;drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +2
-2@@ -1528,7 +1528,7 @@ static int write_to_scratch(struct i915_gem_context *ctx,intel_gt_chipset_flush (engine->gt); - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =i915_vma_instance (obj, vm,NULL );if (IS_ERR (vma)) { err =PTR_ERR (vma);@@ -1607,7 +1607,7 @@ static int read_from_scratch(struct i915_gem_context *ctx,if (GRAPHICS_VER (i915) >=8 ) {const u32 GPR0 = engine->mmio_base +0x600 ; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =i915_vma_instance (obj, vm,NULL );if (IS_ERR (vma)) { err =PTR_ERR (vma);drivers/gpu/drm/i915/gt/selftest_execlists.c +1
-1@@ -3493,7 +3493,7 @@ static int smoke_submit(struct preempt_smoke *smoke,if (batch) {struct i915_address_space *vm; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =i915_vma_instance (batch, vm,NULL );i915_vm_put (vm);if (IS_ERR (vma))drivers/gpu/drm/i915/gt/selftest_hangcheck.c +1
-1@@ -117,7 +117,7 @@ static struct i915_request * hang_create_request(struct hang *h, struct intel_engine_cs *engine) { struct intel_gt *gt = h->gt; -struct i915_address_space *vm =i915_gem_context_get_vm_rcu (h->ctx); +struct i915_address_space *vm =i915_gem_context_get_eb_vm (h->ctx);struct drm_i915_gem_object *obj;struct i915_request *rq =NULL ;struct i915_vma *hws, *vma;drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +2
-2@@ -1300,7 +1300,7 @@ static int exercise_mock(struct drm_i915_private *i915,if (!ctx)return -ENOMEM ; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); err =func (vm,0 ,min (vm->total, limit), end_time);i915_vm_put (vm);@@ -1848,7 +1848,7 @@ static int igt_cs_tlb(void *arg) goto out_unlock; } - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx);if (i915_is_ggtt (vm)) goto out_vm;drivers/gpu/drm/i915/selftests/i915_vma.c +1
-1@@ -118,7 +118,7 @@ static int create_vmas(struct drm_i915_private *i915,struct i915_vma *vma;int err; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =checked_vma_instance (obj, vm,NULL );i915_vm_put (vm);if (IS_ERR (vma))
Re: [Intel-gfx] [PATCH 05/11] drm/i915: Rename i915_gem_context_get_vm_rcu to i915_gem_context_get_eb_vm
Quoted 67 lines · Tvrtko Ursulin
Quoted 56 lines · Daniel Vetter
The important part isn't so much that this does an rcu lookup - that's more an implementation detail, which will also be removed.
The thing that makes this different from other functions is that it's gettting you the vm that batchbuffers will run in for that gem context, which is either a full ppgtt stored in
gem->ctx, or the ggtt.We'll make more use of this function later on.
Reviewed-by Maarten Lankhorst <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Cc Jon Bloomfield <[email protected]>Cc Chris Wilson <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Daniel Vetter <[email protected]>Cc "Thomas Hellström" <[email protected]>Cc Matthew Auld <[email protected]>Cc Lionel Landwerlin <[email protected]>Cc Dave Airlie <[email protected]>Cc Jason Ekstrand <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_context.h | 2 +- drivers/gpu/drm/i915/gem/selftests/huge_pages.c | 4 ++-- drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 4 ++-- drivers/gpu/drm/i915/gt/selftest_execlists.c | 2 +- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 2 +- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 4 ++-- drivers/gpu/drm/i915/selftests/i915_vma.c | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_context.h +1
-1@@ -155,7 +155,7 @@ i915_gem_context_vm(struct i915_gem_context *ctx) }static inline struct i915_address_space * -i915_gem_context_get_vm_rcu (struct i915_gem_context *ctx) +i915_gem_context_get_eb_vm (struct i915_gem_context *ctx) {struct i915_address_space *vm;drivers/gpu/drm/i915/gem/selftests/huge_pages.c +1
-1@@ -1456,7 +1456,7 @@ static int igt_tmpfs_fallback(void *arg)struct i915_gem_context *ctx = arg;struct drm_i915_private *i915 = ctx->i915;struct vfsmount *gemfs = i915->mm.gemfs; -struct i915_address_space *vm =i915_gem_context_get_vm_rcu (ctx); +struct i915_address_space *vm =i915_gem_context_get_eb_vm (ctx);struct drm_i915_gem_object *obj;struct i915_vma *vma;u32 *vaddr;drivers/gpu/drm/i915/gem/selftests/huge_pages.c static int igt_shrink_thp(void *arg) · line 1515
Quoted 5 lines
drivers/gpu/drm/i915/gem/selftests/huge_pages.c +1
-1@@ -1512,7 +1512,7 @@ static int igt_shrink_thp(void *arg) {struct i915_gem_context *ctx = arg;struct drm_i915_private *i915 = ctx->i915; -struct i915_address_space *vm =i915_gem_context_get_vm_rcu (ctx); +struct i915_address_space *vm =i915_gem_context_get_eb_vm (ctx);Problem here (and probably elsewhere) is that this test does no "eb", nor even submits any requests for execution.
Quoted 5 lines
More so, execbuf path does currently rely on
intel_context->vmwhich is always set. So I really wonder how it would look, what I touched on elsewhere in the thread, if we instead madectx->vmalways point to something. It would align the rules betweenintel_contextand GEM context and may end up with a more consistent situation.
The entire thing is substantially more messy, and my few quick attempts at fixing this went flat.
The thing is, this _is_ the vm we use for execbuf, patch 8 changes intel context initialization to also use this function. I do think it would make sense to always set the right vm in gem_ctx->vm, but when I tried to do that I've also tried to implement a bit stricter rules for intel_context->vm. Currently that's initialized to the single gt vm deep down in the per-type (virtual vs engine ctx) code, and then later on we'd overwrite that. My idea was that we'd no longer set the intel_context->vm in low-level code at all, but instead the variuos callers that create the ctx either pass the right vm down, or set it after initial setup is done.
This way we'd be guaranteed that we never accidentally run a userspace context on the kernel's gt vm, which would be bad.
The problem was that the entire refactor became really messy, and it was conflicting against the GuC stuff and the changed engines there, so I figured I'll drop it. There's more locking cleanup tbd, so I'll keep that on the list of things. Maybe once intel_context creation is a bit more untangled.
-Daniel
Quoted 83 lines
Regards,
Tvrtko
Quoted 78 lines
drivers/gpu/drm/i915/gem/selftests/huge_pages.c +0
-0struct drm_i915_gem_object *obj;struct i915_gem_engines_iter it;struct intel_context *ce;drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +2
-2@@ -1528,7 +1528,7 @@ static int write_to_scratch(struct i915_gem_context *ctx,intel_gt_chipset_flush (engine->gt); - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =i915_vma_instance (obj, vm,NULL );if (IS_ERR (vma)) { err =PTR_ERR (vma);@@ -1607,7 +1607,7 @@ static int read_from_scratch(struct i915_gem_context *ctx,if (GRAPHICS_VER (i915) >=8 ) {const u32 GPR0 = engine->mmio_base +0x600 ; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =i915_vma_instance (obj, vm,NULL );if (IS_ERR (vma)) { err =PTR_ERR (vma);drivers/gpu/drm/i915/gt/selftest_execlists.c +1
-1@@ -3493,7 +3493,7 @@ static int smoke_submit(struct preempt_smoke *smoke,if (batch) {struct i915_address_space *vm; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =i915_vma_instance (batch, vm,NULL );i915_vm_put (vm);if (IS_ERR (vma))drivers/gpu/drm/i915/gt/selftest_hangcheck.c +1
-1@@ -117,7 +117,7 @@ static struct i915_request * hang_create_request(struct hang *h, struct intel_engine_cs *engine) { struct intel_gt *gt = h->gt; -struct i915_address_space *vm =i915_gem_context_get_vm_rcu (h->ctx); +struct i915_address_space *vm =i915_gem_context_get_eb_vm (h->ctx);struct drm_i915_gem_object *obj;struct i915_request *rq =NULL ;struct i915_vma *hws, *vma;drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +2
-2@@ -1300,7 +1300,7 @@ static int exercise_mock(struct drm_i915_private *i915,if (!ctx)return -ENOMEM ; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); err =func (vm,0 ,min (vm->total, limit), end_time);i915_vm_put (vm);@@ -1848,7 +1848,7 @@ static int igt_cs_tlb(void *arg) goto out_unlock; } - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx);if (i915_is_ggtt (vm)) goto out_vm;drivers/gpu/drm/i915/selftests/i915_vma.c +1
-1@@ -118,7 +118,7 @@ static int create_vmas(struct drm_i915_private *i915,struct i915_vma *vma;int err; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =checked_vma_instance (obj, vm,NULL );i915_vm_put (vm);if (IS_ERR (vma))
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Re: [Intel-gfx] [PATCH 05/11] drm/i915: Rename i915_gem_context_get_vm_rcu to i915_gem_context_get_eb_vm
Quoted 87 lines · Daniel Vetter
Quoted 67 lines · Tvrtko Ursulin
Quoted 56 lines · Daniel Vetter
The important part isn't so much that this does an rcu lookup - that's more an implementation detail, which will also be removed.
The thing that makes this different from other functions is that it's gettting you the vm that batchbuffers will run in for that gem context, which is either a full ppgtt stored in
gem->ctx, or the ggtt.We'll make more use of this function later on.
Reviewed-by Maarten Lankhorst <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Cc Jon Bloomfield <[email protected]>Cc Chris Wilson <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Daniel Vetter <[email protected]>Cc "Thomas Hellström" <[email protected]>Cc Matthew Auld <[email protected]>Cc Lionel Landwerlin <[email protected]>Cc Dave Airlie <[email protected]>Cc Jason Ekstrand <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_context.h | 2 +- drivers/gpu/drm/i915/gem/selftests/huge_pages.c | 4 ++-- drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 4 ++-- drivers/gpu/drm/i915/gt/selftest_execlists.c | 2 +- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 2 +- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 4 ++-- drivers/gpu/drm/i915/selftests/i915_vma.c | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_context.h +1
-1@@ -155,7 +155,7 @@ i915_gem_context_vm(struct i915_gem_context *ctx) }static inline struct i915_address_space * -i915_gem_context_get_vm_rcu (struct i915_gem_context *ctx) +i915_gem_context_get_eb_vm (struct i915_gem_context *ctx) {struct i915_address_space *vm;drivers/gpu/drm/i915/gem/selftests/huge_pages.c +1
-1@@ -1456,7 +1456,7 @@ static int igt_tmpfs_fallback(void *arg)struct i915_gem_context *ctx = arg;struct drm_i915_private *i915 = ctx->i915;struct vfsmount *gemfs = i915->mm.gemfs; -struct i915_address_space *vm =i915_gem_context_get_vm_rcu (ctx); +struct i915_address_space *vm =i915_gem_context_get_eb_vm (ctx);struct drm_i915_gem_object *obj;struct i915_vma *vma;u32 *vaddr;drivers/gpu/drm/i915/gem/selftests/huge_pages.c static int igt_shrink_thp(void *arg) · line 1515
Quoted 5 lines
drivers/gpu/drm/i915/gem/selftests/huge_pages.c +1
-1@@ -1512,7 +1512,7 @@ static int igt_shrink_thp(void *arg) {struct i915_gem_context *ctx = arg;struct drm_i915_private *i915 = ctx->i915; -struct i915_address_space *vm =i915_gem_context_get_vm_rcu (ctx); +struct i915_address_space *vm =i915_gem_context_get_eb_vm (ctx);Problem here (and probably elsewhere) is that this test does no "eb", nor even submits any requests for execution.
Quoted 5 lines
More so, execbuf path does currently rely on
intel_context->vmwhich is always set. So I really wonder how it would look, what I touched on elsewhere in the thread, if we instead madectx->vmalways point to something. It would align the rules betweenintel_contextand GEM context and may end up with a more consistent situation.The entire thing is substantially more messy, and my few quick attempts at fixing this went flat.
The thing is, this _is_ the vm we use for execbuf, patch 8 changes intel context initialization to also use this function. I do think it would make sense to always set the right vm in
gem_ctx->vm, but when I tried to do that I've also tried to implement a bit stricter rules forintel_context->vm. Currently that's initialized to the single gt vm deep down in the per-type (virtual vs engine ctx) code, and then later on we'd overwrite that. My idea was that we'd no longer set theintel_context->vmin low-level code at all, but instead the variuos callers that create the ctx either pass the right vm down, or set it after initial setup is done.
Quoted 8 lines
This way we'd be guaranteed that we never accidentally run a userspace context on the kernel's gt vm, which would be bad.
The problem was that the entire refactor became really messy, and it was conflicting against the GuC stuff and the changed engines there, so I figured I'll drop it. There's more locking cleanup tbd, so I'll keep that on the list of things. Maybe once
intel_contextcreation is a bit more untangled.
I understood you were dropping this from the series but now that I noticed it all landed I realized you probably meant something else.
I think it's not ideal that you repeatedly ignored my comments to have a cover letter and not mix independent work in the same series. I am pretty sure this exact mode of operation was quite frowned upon, to put it mildly, not so long ago.
If I need to be explicit - large series doing multiple things, with no cover letter giving overview, plus merging with outstanding opens.
As I was not expecting this would go in so quick, I did not even read the whole series yet.
Even on the most prosaic level I even disagree with putting execbuf in the helper name which gets the VM from a GEM context. Proof in the pudding is that you have non-execbuf parts of the driver using this helper.
Regards,
Tvrtko
Quoted 86 lines
-Daniel
Quoted 83 lines
Regards,
Tvrtko
Quoted 78 lines
drivers/gpu/drm/i915/gem/selftests/huge_pages.c +0
-0struct drm_i915_gem_object *obj;struct i915_gem_engines_iter it;struct intel_context *ce;drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +2
-2@@ -1528,7 +1528,7 @@ static int write_to_scratch(struct i915_gem_context *ctx,intel_gt_chipset_flush (engine->gt); - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =i915_vma_instance (obj, vm,NULL );if (IS_ERR (vma)) { err =PTR_ERR (vma);@@ -1607,7 +1607,7 @@ static int read_from_scratch(struct i915_gem_context *ctx,if (GRAPHICS_VER (i915) >=8 ) {const u32 GPR0 = engine->mmio_base +0x600 ; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =i915_vma_instance (obj, vm,NULL );if (IS_ERR (vma)) { err =PTR_ERR (vma);drivers/gpu/drm/i915/gt/selftest_execlists.c +1
-1@@ -3493,7 +3493,7 @@ static int smoke_submit(struct preempt_smoke *smoke,if (batch) {struct i915_address_space *vm; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =i915_vma_instance (batch, vm,NULL );i915_vm_put (vm);if (IS_ERR (vma))drivers/gpu/drm/i915/gt/selftest_hangcheck.c +1
-1@@ -117,7 +117,7 @@ static struct i915_request * hang_create_request(struct hang *h, struct intel_engine_cs *engine) { struct intel_gt *gt = h->gt; -struct i915_address_space *vm =i915_gem_context_get_vm_rcu (h->ctx); +struct i915_address_space *vm =i915_gem_context_get_eb_vm (h->ctx);struct drm_i915_gem_object *obj;struct i915_request *rq =NULL ;struct i915_vma *hws, *vma;drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +2
-2@@ -1300,7 +1300,7 @@ static int exercise_mock(struct drm_i915_private *i915,if (!ctx)return -ENOMEM ; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); err =func (vm,0 ,min (vm->total, limit), end_time);i915_vm_put (vm);@@ -1848,7 +1848,7 @@ static int igt_cs_tlb(void *arg) goto out_unlock; } - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx);if (i915_is_ggtt (vm)) goto out_vm;drivers/gpu/drm/i915/selftests/i915_vma.c +1
-1@@ -118,7 +118,7 @@ static int create_vmas(struct drm_i915_private *i915,struct i915_vma *vma;int err; - vm =i915_gem_context_get_vm_rcu (ctx); + vm =i915_gem_context_get_eb_vm (ctx); vma =checked_vma_instance (obj, vm,NULL );i915_vm_put (vm);if (IS_ERR (vma))
PATCH 6/11 drm/i915: Use i915_gem_context_get_eb_vm in ctx_getparam
In reply to Daniel VetterConsolidates the "which is the vm my execbuf runs in" code a bit. We do some get/put which isn't really required, but all the other users want the refcounting, and I figured doing a function just for this getparam to avoid 2 atomis is a bit much.
--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_context.c +5 -6
@@ -2108,6 +2108,7 @@ int i915_gem_context_getparam_ioctl(struct drm_device *dev, void *data,struct drm_i915_file_private *file_priv = file->driver_priv;struct drm_i915_gem_context_param *args = data;struct i915_gem_context *ctx; +struct i915_address_space *vm;int ret =0 ; ctx =i915_gem_context_lookup (file_priv, args->ctx_id);
@@ -2117,12 +2118,10 @@ int i915_gem_context_getparam_ioctl(struct drm_device *dev, void *data,switch (args->param) {case I915_CONTEXT_PARAM_GTT_SIZE : args->size =0 ; -rcu_read_lock (); -if (rcu_access_pointer (ctx->vm)) - args->value =rcu_dereference (ctx->vm)->total; -else - args->value =to_i915 (dev)->ggtt.vm.total; -rcu_read_unlock (); + vm =i915_gem_context_get_eb_vm (ctx); + args->value = vm->total; +i915_vm_put (vm); +break ;case I915_CONTEXT_PARAM_NO_ERROR_CAPTURE :
Signature · 1 line
2.33.0
PATCH 7/11 drm/i915: Add i915_gem_context_is_full_ppgtt
In reply to Daniel VetterAnd use it anywhere we have open-coded checks for ctx->vm that really only check for full ppgtt.
Plus for paranoia add a GEM_BUG_ON that checks it's really only set when we have full ppgtt, just in case. gem_context->vm is different since it's NULL in ggtt mode, unlike intel_context->vm or gt->vm, which is always set.
v2: 0day found a testcase that I missed.
--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_context.h | 7 +++++++ drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 +- drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 6 +++--- 4 files changed, 12 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_context.c +1 -1
@@ -1566,7 +1566,7 @@ static int get_ppgtt(struct drm_i915_file_private *file_priv,int err;u32 id; -if (!rcu_access_pointer (ctx->vm)) +if (!i915_gem_context_is_full_ppgtt (ctx))return -ENODEV ;rcu_read_lock ();
drivers/gpu/drm/i915/gem/i915_gem_context.h +7 -0
@@ -154,6 +154,13 @@ i915_gem_context_vm(struct i915_gem_context *ctx)return rcu_dereference_protected (ctx->vm,lockdep_is_held (&ctx->mutex)); } +static inline bool i915_gem_context_is_full_ppgtt (struct i915_gem_context *ctx) +{ +GEM_BUG_ON (!!rcu_access_pointer (ctx->vm) !=HAS_FULL_PPGTT (ctx->i915)); + +return !!rcu_access_pointer (ctx->vm); +} +static inline struct i915_address_space *i915_gem_context_get_eb_vm (struct i915_gem_context *ctx) {
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +1 -1
@@ -749,7 +749,7 @@ static int eb_select_context(struct i915_execbuffer *eb)return PTR_ERR (ctx); eb->gem_context = ctx; -if (rcu_access_pointer (ctx->vm)) +if (i915_gem_context_is_full_ppgtt (ctx)) eb->invalid_flags |=EXEC_OBJECT_NEEDS_GTT ;return 0 ;
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +3 -3
@@ -704,7 +704,7 @@ static int igt_ctx_exec(void *arg)pr_err ("Failed to fill dword %lu [%lu/%lu] with gpu (%s) [full-ppgtt? %s], err=%d\n" , ndwords, dw,max_dwords (obj), engine->name, -yesno (!!rcu_access_pointer (ctx->vm)), +yesno (i915_gem_context_is_full_ppgtt (ctx)), err);intel_context_put (ce);kernel_context_close (ctx);
@@ -838,7 +838,7 @@ static int igt_shared_ctx_exec(void *arg)pr_err ("Failed to fill dword %lu [%lu/%lu] with gpu (%s) [full-ppgtt? %s], err=%d\n" , ndwords, dw,max_dwords (obj), engine->name, -yesno (!!rcu_access_pointer (ctx->vm)), +yesno (i915_gem_context_is_full_ppgtt (ctx)), err);intel_context_put (ce);kernel_context_close (ctx);
@@ -1417,7 +1417,7 @@ static int igt_ctx_readonly(void *arg)pr_err ("Failed to fill dword %lu [%lu/%lu] with gpu (%s) [full-ppgtt? %s], err=%d\n" , ndwords, dw,max_dwords (obj), ce->engine->name, -yesno (!!ctx_vm (ctx)), +yesno (i915_gem_context_is_full_ppgtt (ctx)), err);i915_gem_context_unlock_engines (ctx); goto out_file;
Signature · 1 line
2.33.0
Re: [Intel-gfx] [PATCH 07/11] drm/i915: Add i915_gem_context_is_full_ppgtt
Quoted 34 lines · Daniel Vetter
And use it anywhere we have open-coded checks for
ctx->vmthat really only check for full ppgtt.Plus for paranoia add a
GEM_BUG_ONthat checks it's really only set when we have full ppgtt, just in case.gem_context->vmis different since it's NULL in ggtt mode, unlikeintel_context->vmorgt->vm, which is always set.v2: 0day found a testcase that I missed.
Reviewed-by Maarten Lankhorst <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Cc Jon Bloomfield <[email protected]>Cc Chris Wilson <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Daniel Vetter <[email protected]>Cc "Thomas Hellström" <[email protected]>Cc Matthew Auld <[email protected]>Cc Lionel Landwerlin <[email protected]>Cc Dave Airlie <[email protected]>Cc Jason Ekstrand <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_context.h | 7 +++++++ drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 +- drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 6 +++--- 4 files changed, 12 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_context.c +0
-0
drivers/gpu/drm/i915/gem/i915_gem_context.c static int get_ppgtt(struct drm_i915_file_private *file_priv, · line 1569
Quoted 5 lines
drivers/gpu/drm/i915/gem/i915_gem_context.c +1
-1@@ -1566,7 +1566,7 @@ static int get_ppgtt(struct drm_i915_file_private *file_priv,int err;u32 id; -if (!rcu_access_pointer (ctx->vm)) +if (!i915_gem_context_is_full_ppgtt (ctx))
It reads a bit wrong because GEM context cannot *be* full ppggt. It can be associated with a VM which is or isn't full ppgtt. So a test on a VM retrieved from a context is semnntically more correct. Perhaps you want to consider adding a helper to that effect instead? It could mean splitting into two helpers (getter + test) or maybe just renaming would work. Like i915_gem_context_has_full_ppgtt_vm(ctx)?
Regards,
Tvrtko
Quoted 66 lines
drivers/gpu/drm/i915/gem/i915_gem_context.c +0
-0return -ENODEV ;rcu_read_lock ();drivers/gpu/drm/i915/gem/i915_gem_context.h +7
-0@@ -154,6 +154,13 @@ i915_gem_context_vm(struct i915_gem_context *ctx)return rcu_dereference_protected (ctx->vm,lockdep_is_held (&ctx->mutex)); } +static inline bool i915_gem_context_is_full_ppgtt (struct i915_gem_context *ctx) +{ +GEM_BUG_ON (!!rcu_access_pointer (ctx->vm) !=HAS_FULL_PPGTT (ctx->i915)); + +return !!rcu_access_pointer (ctx->vm); +} +static inline struct i915_address_space *i915_gem_context_get_eb_vm (struct i915_gem_context *ctx) {drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +1
-1@@ -749,7 +749,7 @@ static int eb_select_context(struct i915_execbuffer *eb)return PTR_ERR (ctx); eb->gem_context = ctx; -if (rcu_access_pointer (ctx->vm)) +if (i915_gem_context_is_full_ppgtt (ctx)) eb->invalid_flags |=EXEC_OBJECT_NEEDS_GTT ;return 0 ;drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +3
-3@@ -704,7 +704,7 @@ static int igt_ctx_exec(void *arg)pr_err ("Failed to fill dword %lu [%lu/%lu] with gpu (%s) [full-ppgtt? %s], err=%d\n" , ndwords, dw,max_dwords (obj), engine->name, -yesno (!!rcu_access_pointer (ctx->vm)), +yesno (i915_gem_context_is_full_ppgtt (ctx)), err);intel_context_put (ce);kernel_context_close (ctx);@@ -838,7 +838,7 @@ static int igt_shared_ctx_exec(void *arg)pr_err ("Failed to fill dword %lu [%lu/%lu] with gpu (%s) [full-ppgtt? %s], err=%d\n" , ndwords, dw,max_dwords (obj), engine->name, -yesno (!!rcu_access_pointer (ctx->vm)), +yesno (i915_gem_context_is_full_ppgtt (ctx)), err);intel_context_put (ce);kernel_context_close (ctx);@@ -1417,7 +1417,7 @@ static int igt_ctx_readonly(void *arg)pr_err ("Failed to fill dword %lu [%lu/%lu] with gpu (%s) [full-ppgtt? %s], err=%d\n" , ndwords, dw,max_dwords (obj), ce->engine->name, -yesno (!!ctx_vm (ctx)), +yesno (i915_gem_context_is_full_ppgtt (ctx)), err);i915_gem_context_unlock_engines (ctx); goto out_file;
Re: [Intel-gfx] [PATCH 07/11] drm/i915: Add i915_gem_context_is_full_ppgtt
Quoted 30 lines · Tvrtko Ursulin
Quoted 29 lines · Daniel Vetter
And use it anywhere we have open-coded checks for
ctx->vmthat really only check for full ppgtt.Plus for paranoia add a
GEM_BUG_ONthat checks it's really only set when we have full ppgtt, just in case.gem_context->vmis different since it's NULL in ggtt mode, unlikeintel_context->vmorgt->vm, which is always set.v2: 0day found a testcase that I missed.
Reviewed-by Maarten Lankhorst <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Cc Jon Bloomfield <[email protected]>Cc Chris Wilson <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Daniel Vetter <[email protected]>Cc "Thomas Hellström" <[email protected]>Cc Matthew Auld <[email protected]>Cc Lionel Landwerlin <[email protected]>Cc Dave Airlie <[email protected]>Cc Jason Ekstrand <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_context.h | 7 +++++++ drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 +- drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 6 +++--- 4 files changed, 12 insertions(+), 5 deletions(-)
Quoted 16 lines
drivers/gpu/drm/i915/gem/i915_gem_context.c static int get_ppgtt(struct drm_i915_file_private *file_priv, · line 1568
Quoted 9 lines
drivers/gpu/drm/i915/gem/i915_gem_context.c +1
-1@@ -1566,7 +1566,7 @@ static int get_ppgtt(struct drm_i915_file_private *file_priv,int err;u32 id; -if (!rcu_access_pointer (ctx->vm)) +if (!i915_gem_context_is_full_ppgtt (ctx))It reads a bit wrong because GEM context cannot *be* full ppggt. It can be associated with a VM which is or isn't full ppgtt. So a test on a VM retrieved from a context is semnntically more correct. Perhaps you want to consider adding a helper to that effect instead? It could mean splitting into two helpers (getter + test) or maybe just renaming would work. Like
i915_gem_context_has_full_ppgtt_vm(ctx)?
The pointer isn't set when the driver/context isn't running in full ppgtt mode. This is why I've added the GEM_BUG_ON to check we're not breaking any invariants. So yeah it is a full ppgtt context or it's not, that is indeed the question here.
I'm happy to bikeshed the naming, but I don't see how your suggestion is an improvement.
-Daniel
Quoted 67 lines
Regards,
Tvrtko
Quoted 62 lines
drivers/gpu/drm/i915/gem/i915_gem_context.c +0
-0return -ENODEV ;rcu_read_lock ();drivers/gpu/drm/i915/gem/i915_gem_context.h +7
-0@@ -154,6 +154,13 @@ i915_gem_context_vm(struct i915_gem_context *ctx)return rcu_dereference_protected (ctx->vm,lockdep_is_held (&ctx->mutex)); } +static inline bool i915_gem_context_is_full_ppgtt (struct i915_gem_context *ctx) +{ +GEM_BUG_ON (!!rcu_access_pointer (ctx->vm) !=HAS_FULL_PPGTT (ctx->i915)); + +return !!rcu_access_pointer (ctx->vm); +} +static inline struct i915_address_space *i915_gem_context_get_eb_vm (struct i915_gem_context *ctx) {drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +1
-1@@ -749,7 +749,7 @@ static int eb_select_context(struct i915_execbuffer *eb)return PTR_ERR (ctx); eb->gem_context = ctx; -if (rcu_access_pointer (ctx->vm)) +if (i915_gem_context_is_full_ppgtt (ctx)) eb->invalid_flags |=EXEC_OBJECT_NEEDS_GTT ;return 0 ;drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +3
-3@@ -704,7 +704,7 @@ static int igt_ctx_exec(void *arg)pr_err ("Failed to fill dword %lu [%lu/%lu] with gpu (%s) [full-ppgtt? %s], err=%d\n" , ndwords, dw,max_dwords (obj), engine->name, -yesno (!!rcu_access_pointer (ctx->vm)), +yesno (i915_gem_context_is_full_ppgtt (ctx)), err);intel_context_put (ce);kernel_context_close (ctx);@@ -838,7 +838,7 @@ static int igt_shared_ctx_exec(void *arg)pr_err ("Failed to fill dword %lu [%lu/%lu] with gpu (%s) [full-ppgtt? %s], err=%d\n" , ndwords, dw,max_dwords (obj), engine->name, -yesno (!!rcu_access_pointer (ctx->vm)), +yesno (i915_gem_context_is_full_ppgtt (ctx)), err);intel_context_put (ce);kernel_context_close (ctx);@@ -1417,7 +1417,7 @@ static int igt_ctx_readonly(void *arg)pr_err ("Failed to fill dword %lu [%lu/%lu] with gpu (%s) [full-ppgtt? %s], err=%d\n" , ndwords, dw,max_dwords (obj), ce->engine->name, -yesno (!!ctx_vm (ctx)), +yesno (i915_gem_context_is_full_ppgtt (ctx)), err);i915_gem_context_unlock_engines (ctx); goto out_file;
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Re: [Intel-gfx] [PATCH 07/11] drm/i915: Add i915_gem_context_is_full_ppgtt
Quoted 48 lines · Daniel Vetter
Quoted 30 lines · Tvrtko Ursulin
Quoted 29 lines · Daniel Vetter
And use it anywhere we have open-coded checks for
ctx->vmthat really only check for full ppgtt.Plus for paranoia add a
GEM_BUG_ONthat checks it's really only set when we have full ppgtt, just in case.gem_context->vmis different since it's NULL in ggtt mode, unlikeintel_context->vmorgt->vm, which is always set.v2: 0day found a testcase that I missed.
Reviewed-by Maarten Lankhorst <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Cc Jon Bloomfield <[email protected]>Cc Chris Wilson <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Daniel Vetter <[email protected]>Cc "Thomas Hellström" <[email protected]>Cc Matthew Auld <[email protected]>Cc Lionel Landwerlin <[email protected]>Cc Dave Airlie <[email protected]>Cc Jason Ekstrand <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_context.h | 7 +++++++ drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 +- drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 6 +++--- 4 files changed, 12 insertions(+), 5 deletions(-)Quoted 16 lines
drivers/gpu/drm/i915/gem/i915_gem_context.c static int get_ppgtt(struct drm_i915_file_private *file_priv, · line 1568
Quoted 9 lines
drivers/gpu/drm/i915/gem/i915_gem_context.c +1
-1@@ -1566,7 +1566,7 @@ static int get_ppgtt(struct drm_i915_file_private *file_priv,int err;u32 id; -if (!rcu_access_pointer (ctx->vm)) +if (!i915_gem_context_is_full_ppgtt (ctx))It reads a bit wrong because GEM context cannot *be* full ppggt. It can be associated with a VM which is or isn't full ppgtt. So a test on a VM retrieved from a context is semnntically more correct. Perhaps you want to consider adding a helper to that effect instead? It could mean splitting into two helpers (getter + test) or maybe just renaming would work. Like
i915_gem_context_has_full_ppgtt_vm(ctx)?
Quoted 7 lines
The pointer isn't set when the driver/context isn't running in full ppgtt mode. This is why I've added the
GEM_BUG_ONto check we're not breaking any invariants. So yeah it is a full ppgtt context or it's not, that is indeed the question here.I'm happy to bikeshed the naming, but I don't see how your suggestion is an improvement.
I think the pointer being set or not is implementation detail, for instance we could have it always set just like it is in intel_context.
I simply think GEM context *isn't* full ppgtt, but the VM is. And since GEM context *points* to a VM, *has* is the right verb in my mind. You did not write why do you not see has as more correct than is so I don't want to be guessing too much.
Regards,
Tvrtko
Quoted 68 lines
Quoted 67 lines
Regards,
Tvrtko
Quoted 62 lines
drivers/gpu/drm/i915/gem/i915_gem_context.c +0
-0return -ENODEV ;rcu_read_lock ();drivers/gpu/drm/i915/gem/i915_gem_context.h +7
-0@@ -154,6 +154,13 @@ i915_gem_context_vm(struct i915_gem_context *ctx)return rcu_dereference_protected (ctx->vm,lockdep_is_held (&ctx->mutex)); } +static inline bool i915_gem_context_is_full_ppgtt (struct i915_gem_context *ctx) +{ +GEM_BUG_ON (!!rcu_access_pointer (ctx->vm) !=HAS_FULL_PPGTT (ctx->i915)); + +return !!rcu_access_pointer (ctx->vm); +} +static inline struct i915_address_space *i915_gem_context_get_eb_vm (struct i915_gem_context *ctx) {drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +1
-1@@ -749,7 +749,7 @@ static int eb_select_context(struct i915_execbuffer *eb)return PTR_ERR (ctx); eb->gem_context = ctx; -if (rcu_access_pointer (ctx->vm)) +if (i915_gem_context_is_full_ppgtt (ctx)) eb->invalid_flags |=EXEC_OBJECT_NEEDS_GTT ;return 0 ;drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +3
-3@@ -704,7 +704,7 @@ static int igt_ctx_exec(void *arg)pr_err ("Failed to fill dword %lu [%lu/%lu] with gpu (%s) [full-ppgtt? %s], err=%d\n" , ndwords, dw,max_dwords (obj), engine->name, -yesno (!!rcu_access_pointer (ctx->vm)), +yesno (i915_gem_context_is_full_ppgtt (ctx)), err);intel_context_put (ce);kernel_context_close (ctx);@@ -838,7 +838,7 @@ static int igt_shared_ctx_exec(void *arg)pr_err ("Failed to fill dword %lu [%lu/%lu] with gpu (%s) [full-ppgtt? %s], err=%d\n" , ndwords, dw,max_dwords (obj), engine->name, -yesno (!!rcu_access_pointer (ctx->vm)), +yesno (i915_gem_context_is_full_ppgtt (ctx)), err);intel_context_put (ce);kernel_context_close (ctx);@@ -1417,7 +1417,7 @@ static int igt_ctx_readonly(void *arg)pr_err ("Failed to fill dword %lu [%lu/%lu] with gpu (%s) [full-ppgtt? %s], err=%d\n" , ndwords, dw,max_dwords (obj), ce->engine->name, -yesno (!!ctx_vm (ctx)), +yesno (i915_gem_context_is_full_ppgtt (ctx)), err);i915_gem_context_unlock_engines (ctx); goto out_file;
RE: [Intel-gfx] [PATCH 07/11] drm/i915: Add i915_gem_context_is_full_ppgtt
Quoted 81 lines
-----Original Message-----
From: Tvrtko Ursulin <[email protected]>
Sent: Thursday, September 2, 2021 9:42 AM
To: Daniel Vetter <[email protected]>
Cc: Daniel Vetter <[email protected]>; DRI Development <dri- [email protected]>; Intel Graphics Development <intel- [email protected]>; Maarten Lankhorst <[email protected]>; Vetter, Daniel <[email protected]>; Bloomfield, Jon <[email protected]>; Chris Wilson <[email protected]>; Joonas Lahtinen <[email protected]>; Thomas Hellström <[email protected]>; Auld, Matthew <[email protected]>; Landwerlin, Lionel G <[email protected]>; Dave Airlie <[email protected]>; Jason Ekstrand <[email protected]>
Subject: Re: [Intel-gfx] [PATCH 07/11] drm/i915: Addi915_gem_context_is_full_ppgttQuoted 31 lines · Daniel Vetter
Quoted 30 lines · Tvrtko Ursulin
Quoted 29 lines · Daniel Vetter
And use it anywhere we have open-coded checks for
ctx->vmthat really only check for full ppgtt.Plus for paranoia add a
GEM_BUG_ONthat checks it's really only set when we have full ppgtt, just in case.gem_context->vmis different since it's NULL in ggtt mode, unlikeintel_context->vmorgt->vm, which is always set.v2: 0day found a testcase that I missed.
Reviewed-by Maarten Lankhorst <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Cc Jon Bloomfield <[email protected]>Cc Chris Wilson <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Daniel Vetter <[email protected]>Cc "Thomas Hellström" <[email protected]>Cc Matthew Auld <[email protected]>Cc Lionel Landwerlin <[email protected]>Cc Dave Airlie <[email protected]>Cc Jason Ekstrand <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_context.h | 7 +++++++ drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 +- drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 6 +++--- 4 files changed, 12 insertions(+), 5 deletions(-)Quoted 1 line
Quoted 1 line
Review
Quoted 1 line
(quoted diff) +0
-0
b/drivers/gpu/drm/i915/gem/i915_gem_context.cQuoted 4 lines
Quoted 4 lines
drivers/gpu/drm/i915/gem/i915_gem_context.c static int get_ppgtt(struct
Quoted 4 lines
index
7a566fb7cca4..1eec85944c1f100644drivers/gpu/drm/i915/gem/i915_gem_context.c +0
-0@@ -1566,7 +1566,7 @@ static int get_ppgtt(struct
drm_i915_file_private*file_priv,Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/i915/gem/i915_gem_context.c static int get_ppgtt(struct drm_i915_file_private *file_priv, · line 1569
Quoted 4 lines
drivers/gpu/drm/i915/gem/i915_gem_context.c +1
-1int err;u32 id; -if (!rcu_access_pointer (ctx->vm)) +if (!i915_gem_context_is_full_ppgtt (ctx))It reads a bit wrong because GEM context cannot *be* full ppggt. It can
be
Quoted 2 lines
Quoted 2 lines
associated with a VM which is or isn't full ppgtt. So a test on a VM retrieved from a context is semnntically more correct. Perhaps you want
to
Quoted 6 lines
Quoted 3 lines
consider adding a helper to that effect instead? It could mean splitting into two helpers (getter + test) or maybe just renaming would work. Like
i915_gem_context_has_full_ppgtt_vm(ctx)?The pointer isn't set when the driver/context isn't running in full ppgtt mode. This is why I've added the
GEM_BUG_ONto check we're notbreaking
Quoted 5 lines
any invariants. So yeah it is a full ppgtt context or it's not, that is indeed the question here.
I'm happy to bikeshed the naming, but I don't see how your suggestion is an improvement.
Quoted 7 lines
I think the pointer being set or not is implementation detail, for instance we could have it always set just like it is in
intel_context.I simply think GEM context *isn't* full ppgtt, but the VM is. And since GEM context *points* to a VM, *has* is the right verb in my mind. You did not write why do you not see has as more correct than is so I don't want to be guessing too much.
FWIW, I agree with Tvrtko. i915_gem_context_is_full_ppgtt is incorrect grammar. It IS a bike shed, but, hey it'll live for a while.
Re: [Intel-gfx] [PATCH 07/11] drm/i915: Add i915_gem_context_is_full_ppgtt
Quoted 84 lines · Jon
Quoted 84 lines
-----Original Message-----
From: Tvrtko Ursulin <[email protected]>
Sent: Thursday, September 2, 2021 9:42 AM
To: Daniel Vetter <[email protected]>
Cc: Daniel Vetter <[email protected]>; DRI Development <dri- [email protected]>; Intel Graphics Development <intel- [email protected]>; Maarten Lankhorst <[email protected]>; Vetter, Daniel <[email protected]>; Bloomfield, Jon <[email protected]>; Chris Wilson <[email protected]>; Joonas Lahtinen <[email protected]>; Thomas Hellström <[email protected]>; Auld, Matthew <[email protected]>; Landwerlin, Lionel G <[email protected]>; Dave Airlie <[email protected]>; Jason Ekstrand <[email protected]>
Subject: Re: [Intel-gfx] [PATCH 07/11] drm/i915: Addi915_gem_context_is_full_ppgttQuoted 31 lines · Daniel Vetter
Quoted 30 lines · Tvrtko Ursulin
Quoted 29 lines · Daniel Vetter
And use it anywhere we have open-coded checks for
ctx->vmthat really only check for full ppgtt.Plus for paranoia add a
GEM_BUG_ONthat checks it's really only set when we have full ppgtt, just in case.gem_context->vmis different since it's NULL in ggtt mode, unlikeintel_context->vmorgt->vm, which is always set.v2: 0day found a testcase that I missed.
Reviewed-by Maarten Lankhorst <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Cc Jon Bloomfield <[email protected]>Cc Chris Wilson <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Daniel Vetter <[email protected]>Cc "Thomas Hellström" <[email protected]>Cc Matthew Auld <[email protected]>Cc Lionel Landwerlin <[email protected]>Cc Dave Airlie <[email protected]>Cc Jason Ekstrand <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_context.h | 7 +++++++ drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 +- drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 6 +++--- 4 files changed, 12 insertions(+), 5 deletions(-)Quoted 1 line
Quoted 1 line
Review
Quoted 1 line
(quoted diff) +0
-0
b/drivers/gpu/drm/i915/gem/i915_gem_context.cQuoted 4 lines
Quoted 4 lines
drivers/gpu/drm/i915/gem/i915_gem_context.c static int get_ppgtt(struct
Quoted 4 lines
index
7a566fb7cca4..1eec85944c1f100644drivers/gpu/drm/i915/gem/i915_gem_context.c +0
-0@@ -1566,7 +1566,7 @@ static int get_ppgtt(struct
drm_i915_file_private*file_priv,Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/i915/gem/i915_gem_context.c static int get_ppgtt(struct drm_i915_file_private *file_priv, · line 1569
Quoted 4 lines
drivers/gpu/drm/i915/gem/i915_gem_context.c +1
-1int err;u32 id; -if (!rcu_access_pointer (ctx->vm)) +if (!i915_gem_context_is_full_ppgtt (ctx))It reads a bit wrong because GEM context cannot *be* full ppggt. It can
be
Quoted 2 lines
Quoted 2 lines
associated with a VM which is or isn't full ppgtt. So a test on a VM retrieved from a context is semnntically more correct. Perhaps you want
to
Quoted 6 lines
Quoted 3 lines
consider adding a helper to that effect instead? It could mean splitting into two helpers (getter + test) or maybe just renaming would work. Like
i915_gem_context_has_full_ppgtt_vm(ctx)?The pointer isn't set when the driver/context isn't running in full ppgtt mode. This is why I've added the
GEM_BUG_ONto check we're notbreaking
Quoted 5 lines
any invariants. So yeah it is a full ppgtt context or it's not, that is indeed the question here.
I'm happy to bikeshed the naming, but I don't see how your suggestion is an improvement.
I think the pointer being set or not is implementation detail, for instance we could have it always set just like it is in
intel_context.
Quoted 7 lines
Quoted 4 lines
I simply think GEM context *isn't* full ppgtt, but the VM is. And since GEM context *points* to a VM, *has* is the right verb in my mind. You did not write why do you not see has as more correct than is so I don't want to be guessing too much.
FWIW, I agree with Tvrtko.
i915_gem_context_is_full_ppgttis incorrect grammar. It IS a bike shed, but, hey it'll live for a while.
Generally all our feature checks are of the various is_foo variety. HAS_FULL_PPGTT is one of the very rare exceptions. So it's a question of "is gem_ctx foo", not "has gem_ctx foo". The fact that we implement the check by looking at a pointer doesn't matter. And yes if it is full ppgtt, it also has it's own private vm, but we don't care about that part at all. It's just a distraction.
Anyway I'll repaint, least because the HAS_FULL_PPGTT thing is almost a decade old by now :-)
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
PATCH 8/11 drm/i915: Use i915_gem_context_get_eb_vm in intel_context_set_gem
In reply to Daniel VetterSince
commit ccbc1b97948ab671335e950271e39766729736c3
Author: Jason Ekstrand <[email protected]> Date: Thu Jul 8 10:48:30 2021 -0500
drm/i915/gem: Don't allow changing the VM on running contexts (v4)
the gem_ctx->vm can't change anymore. Plus we always set the intel_context->vm, so might as well use the helper we have for that.
This makes it very clear that we always overwrite intel_context->vm for userspace contexts, since the default is gt->vm, which is explicitly reserved for kernel context use. It would be good to split things up a bit further and avoid any possibility for an accident where we run kernel stuff in userspace vm or the other way round.
--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_context.c +2 -10
@@ -791,16 +791,8 @@ static int intel_context_set_gem(struct intel_context *ce, ce->ring_size =SZ_16K ; -if (rcu_access_pointer (ctx->vm)) { -struct i915_address_space *vm; - -rcu_read_lock (); - vm =context_get_vm_rcu (ctx);/* hmm */ -rcu_read_unlock (); - -i915_vm_put (ce->vm); - ce->vm = vm; - } +i915_vm_put (ce->vm); + ce->vm =i915_gem_context_get_eb_vm (ctx); if (ctx->sched.priority >= I915_PRIORITY_NORMAL && intel_engine_has_timeslices(ce->engine) &&
Signature · 1 line
2.33.0
PATCH 9/11 drm/i915: Drop __rcu from gem_context->vm
In reply to Daniel VetterIt's been invariant since
commit ccbc1b97948ab671335e950271e39766729736c3
Author: Jason Ekstrand <[email protected]>
Date: Thu Jul 8 10:48:30 2021 -0500
drm/i915/gem: Don't allow changing the VM on running contexts (v4)
this just completes the deed. I've tried to split out prep work for more careful review as much as possible, this is what's left:
- get_ppgtt gets simplified since we don't need to grab a temporary reference - we can rely on the temporary reference for the gem_ctx while we inspect the vm. The new vm_id still needs a full i915_vm_open ofc. This also removes the final caller of context_get_vm_rcu
- A pile of selftests can now just look at ctx->vm instead of rcu_dereference_protected( , true) or similar things.
- All callers of i915_gem_context_vm also disappear.
- I've changed the hugepage selftest to set scrub_64K without any locking, because when we inspect that setting we're also not taking any locks either. It works because it's a selftests that's careful (single threaded gives you nice ordering) and not a live driver where races can happen from anywhere.
These can only be split up further if we have some intermediate state with a bunch more rcu_dereference_protected(ctx->vm, true), just to shut up lockdep and sparse.
The conversion to __rcu happened in
commit a4e7ccdac38ec8335d9e4e2656c1a041c77feae1
Author: Chris Wilson <[email protected]> Date: Fri Oct 4 14:40:09 2019 +0100
drm/i915: Move context management under GEM
Note that we're not breaking the actual bugfix in there: The real bugfix is pushing the i915_vm_relase onto a separate worker, to avoid locking inversion issues. The rcu conversion was just thrown in for entertainment value on top (no vm lookup isn't even close to anything that's a hotpath where removing the single spinlock can be measured).
v2: Rebase over the change to move the i915_vm_put() into i915_gem_context_release().
--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 55 ++----------------- drivers/gpu/drm/i915/gem/i915_gem_context.h | 14 +---- .../gpu/drm/i915/gem/i915_gem_context_types.h | 2 +- .../gpu/drm/i915/gem/selftests/huge_pages.c | 4 +- .../drm/i915/gem/selftests/i915_gem_context.c | 24 +++----- drivers/gpu/drm/i915/i915_trace.h | 2 +- drivers/gpu/drm/i915/selftests/i915_vma.c | 2 +- 7 files changed, 22 insertions(+), 81 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_context.c +6 -49
@@ -742,44 +742,6 @@ static int set_proto_ctx_param(struct drm_i915_file_private *fpriv,return ret; } -static struct i915_address_space * -context_get_vm_rcu (struct i915_gem_context *ctx) -{ -GEM_BUG_ON (!rcu_access_pointer (ctx->vm)); - -do { -struct i915_address_space *vm; - -/* -* We do not allow downgrading from full-ppgtt [to a shared -* global gtt], so ctx->vm cannot become NULL. -*/ - vm =rcu_dereference (ctx->vm); -if (!kref_get_unless_zero (&vm->ref)) -continue ; - -/* -* This ppgtt may have be reallocated between -* the read and the kref, and reassigned to a third -* context. In order to avoid inadvertent sharing -* of this ppgtt with that third context (and not -* src), we have to confirm that we have the same -* ppgtt after passing through the strong memory -* barrier implied by a successful -* kref_get_unless_zero(). -* -* Once we have acquired the current ppgtt of ctx, -* we no longer care if it is released from ctx, as -* it cannot be reallocated elsewhere. -*/ - -if (vm ==rcu_access_pointer (ctx->vm)) -return rcu_pointer_handoff (vm); - -i915_vm_put (vm); - }while (1 ); -} -static int intel_context_set_gem (struct intel_context *ce,struct i915_gem_context *ctx,struct intel_sseu sseu)
@@ -990,7 +952,7 @@ static void i915_gem_context_release_work(struct work_struct *work)if (ctx->syncobj)drm_syncobj_put (ctx->syncobj); - vm =i915_gem_context_vm (ctx); + vm = ctx->vm;if (vm)i915_vm_put (vm);
@@ -1216,7 +1178,7 @@ static void context_close(struct i915_gem_context *ctx)set_closed_name (ctx); - vm =i915_gem_context_vm (ctx); + vm = ctx->vm;if (vm) {/* i915_vm_close drops the final reference, which is a bit too * early and could result in surprises with concurrent
@@ -1335,7 +1297,7 @@ i915_gem_create_context(struct drm_i915_private *i915, vm = &ppgtt->vm; }if (vm) { -RCU_INIT_POINTER (ctx->vm,i915_vm_open (vm)); + ctx->vm =i915_vm_open (vm);/* i915_vm_open() takes a reference */ i915_vm_put (vm);
@@ -1561,15 +1523,12 @@ static int get_ppgtt(struct drm_i915_file_private *file_priv,if (!i915_gem_context_is_full_ppgtt (ctx))return -ENODEV ; -rcu_read_lock (); - vm =context_get_vm_rcu (ctx); -rcu_read_unlock (); -if (!vm) -return -ENODEV ; + vm = ctx->vm; +GEM_BUG_ON (!vm); err =xa_alloc (&file_priv->vm_xa, &id, vm, xa_limit_32b,GFP_KERNEL );if (err) - goto err_put; +return err;i915_vm_open (vm);
@@ -1577,8 +1536,6 @@ static int get_ppgtt(struct drm_i915_file_private *file_priv, args->value = id; args->size =0 ; -err_put: -i915_vm_put (vm);return err; }
drivers/gpu/drm/i915/gem/i915_gem_context.h +3 -11
@@ -148,17 +148,11 @@ static inline void i915_gem_context_put(struct i915_gem_context *ctx)kref_put (&ctx->ref, i915_gem_context_release); } -static inline struct i915_address_space * -i915_gem_context_vm (struct i915_gem_context *ctx) -{ -return rcu_dereference_protected (ctx->vm,lockdep_is_held (&ctx->mutex)); -} -static inline bool i915_gem_context_is_full_ppgtt (struct i915_gem_context *ctx) { -GEM_BUG_ON (!!rcu_access_pointer (ctx->vm) !=HAS_FULL_PPGTT (ctx->i915)); +GEM_BUG_ON (!!ctx->vm !=HAS_FULL_PPGTT (ctx->i915)); -return !!rcu_access_pointer (ctx->vm); +return !!ctx->vm; } static inline struct i915_address_space *
@@ -166,12 +160,10 @@ i915_gem_context_get_eb_vm(struct i915_gem_context *ctx) {struct i915_address_space *vm; -rcu_read_lock (); - vm =rcu_dereference (ctx->vm); + vm = ctx->vm;if (!vm) vm = &ctx->i915->ggtt.vm; vm =i915_vm_get (vm); -rcu_read_unlock ();return vm; }
drivers/gpu/drm/i915/gem/i915_gem_context_types.h +1 -1
@@ -262,7 +262,7 @@ struct i915_gem_context {* In other modes, this is a NULL pointer with the expectation that * the caller uses the shared global GTT. */ -struct i915_address_space __rcu *vm; +struct i915_address_space *vm;/** * @pid: process id of creator
drivers/gpu/drm/i915/gem/selftests/huge_pages.c +1 -3
@@ -1688,11 +1688,9 @@ int i915_gem_huge_page_live_selftests(struct drm_i915_private *i915) goto out_file; } -mutex_lock (&ctx->mutex); - vm =i915_gem_context_vm (ctx); + vm = ctx->vm;if (vm)WRITE_ONCE (vm->scrub_64K, true); -mutex_unlock (&ctx->mutex); err =i915_subtests (tests, ctx);
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +9 -15
@@ -27,12 +27,6 @@#define DW_PER_PAGE (PAGE_SIZE / sizeof(u32)) -static inline struct i915_address_space *ctx_vm (struct i915_gem_context *ctx) -{ -/* single threaded, private ctx */ -return rcu_dereference_protected (ctx->vm, true); -} -static int live_nop_switch (void *arg) {const unsigned int nctx =1024 ;
@@ -813,7 +807,7 @@ static int igt_shared_ctx_exec(void *arg)struct i915_gem_context *ctx;struct intel_context *ce; - ctx =kernel_context (i915,ctx_vm (parent)); + ctx =kernel_context (i915, parent->vm);if (IS_ERR (ctx)) { err =PTR_ERR (ctx); goto out_test;
@@ -823,7 +817,7 @@ static int igt_shared_ctx_exec(void *arg)GEM_BUG_ON (IS_ERR (ce));if (!obj) { - obj =create_test_object (ctx_vm (parent), + obj =create_test_object (parent->vm, file, &objects);if (IS_ERR (obj)) { err =PTR_ERR (obj);
@@ -1380,7 +1374,7 @@ static int igt_ctx_readonly(void *arg) goto out_file; } - vm =ctx_vm (ctx) ?: &i915->ggtt.alias->vm; + vm = ctx->vm ?: &i915->ggtt.alias->vm;if (!vm || !vm->has_read_only) { err =0 ; goto out_file;
@@ -1499,7 +1493,7 @@ static int write_to_scratch(struct i915_gem_context *ctx,GEM_BUG_ON (offset <I915_GTT_PAGE_SIZE ); - err =check_scratch (ctx_vm (ctx), offset); + err =check_scratch (ctx->vm, offset);if (err)return err;
@@ -1596,7 +1590,7 @@ static int read_from_scratch(struct i915_gem_context *ctx,GEM_BUG_ON (offset <I915_GTT_PAGE_SIZE ); - err =check_scratch (ctx_vm (ctx), offset); + err =check_scratch (ctx->vm, offset);if (err)return err;
@@ -1739,7 +1733,7 @@ static int check_scratch_page(struct i915_gem_context *ctx, u32 *out)u32 *vaddr;int err =0 ; - vm =ctx_vm (ctx); + vm = ctx->vm;if (!vm)return -ENODEV ;
@@ -1801,7 +1795,7 @@ static int igt_vm_isolation(void *arg) }/* We can only test vm isolation, if the vm are distinct */ -if (ctx_vm (ctx_a) ==ctx_vm (ctx_b)) +if (ctx_a->vm == ctx_b->vm) goto out_file;/* Read the initial state of the scratch page */
@@ -1813,8 +1807,8 @@ static int igt_vm_isolation(void *arg)if (err) goto out_file; - vm_total =ctx_vm (ctx_a)->total; -GEM_BUG_ON (ctx_vm (ctx_b)->total != vm_total); + vm_total = ctx_a->vm->total; +GEM_BUG_ON (ctx_b->vm->total != vm_total); count =0 ; num_engines =0 ;
drivers/gpu/drm/i915/i915_trace.h +1 -1
@@ -1246,7 +1246,7 @@ DECLARE_EVENT_CLASS(i915_context,TP_fast_assign ( __entry->dev = ctx->i915->drm.primary->index; __entry->ctx = ctx; - __entry->vm =rcu_access_pointer (ctx->vm); + __entry->vm = ctx->vm; ), TP_printk("dev=%u, ctx=%p, ctx_vm=%p",
drivers/gpu/drm/i915/selftests/i915_vma.c +1 -1
@@ -39,7 +39,7 @@ static bool assert_vma(struct i915_vma *vma, {bool ok = true; -if (vma->vm !=rcu_access_pointer (ctx->vm)) { +if (vma->vm != ctx->vm) {pr_err ("VMA created with wrong VM\n" ); ok = false; }
Signature · 1 line
2.33.0
PATCH 10/11 drm/i915: use xa_lock/unlock for fpriv->vm_xa lookups
In reply to Daniel VetterWe don't need the absolute speed of rcu for this. And i915_address_space in general dont need rcu protection anywhere else, after we've made gem contexts and engines a lot more immutable.
Note that this semantically reverts
commit aabbe344dc3ca5f7d8263a02608ba6179e8a4499
Author: Chris Wilson <[email protected]> Date: Fri Aug 30 19:03:25 2019 +0100
drm/i915: Use RCU for unlocked vm_idr lookup
except we have the conversion from idr to xarray in between.
v2: kref_get_unless_zero is no longer required (Maarten)
--- drivers/gpu/drm/i915/i915_drv.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +4 -4
@@ -1874,11 +1874,11 @@ i915_gem_vm_lookup(struct drm_i915_file_private *file_priv, u32 id) {struct i915_address_space *vm; -rcu_read_lock (); +xa_lock (&file_priv->vm_xa); vm =xa_load (&file_priv->vm_xa, id); -if (vm && !kref_get_unless_zero (&vm->ref)) - vm =NULL ; -rcu_read_unlock (); +if (vm) +kref_get (&vm->ref); +xa_unlock (&file_priv->vm_xa);return vm; }
Signature · 1 line
2.33.0
PATCH 11/11 drm/i915: Stop rcu support for i915_address_space
In reply to Daniel VetterThe full audit is quite a bit of work:
- i915_dpt has very simple lifetime (somehow we create a display pagetable vm per object, so its _very_ simple, there's only ever a single vma in there), and uses i915_vm_close(), which internally does a i915_vm_put(). No rcu.
Aside: wtf is i915_dpt doing in the intel_display.c garbage collector as a new feature, instead of added as a separate file with some clean-ish interface.
Also, i915_dpt unfortunately re-introduces some coding patterns from pre-dma_resv_lock conversion times.
- i915_gem_proto_ctx is fully refcounted and no rcu, all protected by fpriv->proto_context_lock.
- i915_gem_context is itself rcu protected, and that might leak to anything it points at. Before
commit cf977e18610e66e48c31619e7e0cfa871be9eada Author: Chris Wilson <[email protected]> Date: Wed Dec 2 11:21:40 2020 +0000 drm/i915/gem: Spring clean debugfs
and
commit db80a1294c231b6ac725085f046bb2931e00c9db Author: Chris Wilson <[email protected]> Date: Mon Jan 18 11:08:54 2021 +0000 drm/i915/gem: Remove per-client stats from debugfs/i915_gem_objects
we had a bunch of debugfs files that relied on rcu protecting everything, but those are gone now. The main one was removed even earlier with
There doesn't seem to be anything left that's actually protecting stuff now that the ctx->vm itself is invariant. See
commit ccbc1b97948ab671335e950271e39766729736c3 Author: Jason Ekstrand <[email protected]> Date: Thu Jul 8 10:48:30 2021 -0500 drm/i915/gem: Don't allow changing the VM on running contexts (v4)
Note that we drop the vm refcount before the final release of the gem context refcount, so this is all very dangerous even without rcu. Note that aside from later on creating new engines (a defunct feature) and debug output we're never looked at gem_ctx->vm for anything functional, hence why this is ok. Fingers crossed.
Preceeding patches removed all vestiges of rcu use from gem_ctx->vm derferencing to make it clear it's really not used.
The gem_ctx->rcu protection was introduced in
commit a4e7ccdac38ec8335d9e4e2656c1a041c77feae1 Author: Chris Wilson <[email protected]> Date: Fri Oct 4 14:40:09 2019 +0100 drm/i915: Move context management under GEM
The commit message is somewhat entertaining because it fails to mention this fact completely, and compensates that by an in-commit changelog entry that claims that ctx->vm is protected by ctx->mutex. Which was the case _before_ this commit, but no longer after it.
- intel_context holds a full reference. Unfortunately intel_context is also rcu protected and the reference to the ->vm is dropped before the rcu barrier - only the kfree is delayed. So again we need to check whether that leaks anywhere on the intel_context->vm. RCU is only used to protect intel_context sitting on the breadcrumb lists, which don't look at the vm anywhere, so we are fine.
Nothing else relies on rcu protection of intel_context and hence is fully protected by the kref refcount alone, which protects intel_context->vm in turn.
The breadcrumbs rcu usage was added in
commit c744d50363b714783bbc88d986cc16def13710f7 Author: Chris Wilson <[email protected]> Date: Thu Nov 26 14:04:06 2020 +0000 drm/i915/gt: Split the breadcrumb spinlock between global and contexts
its parent commit added the intel_context rcu protection:
commit 14d1eaf08845c534963c83f754afe0cb14cb2512 Author: Chris Wilson <[email protected]> Date: Thu Nov 26 14:04:05 2020 +0000 drm/i915/gt: Protect context lifetime with RCU
given some credence to my claim that I've actually caught them all.
- drm_i915_gem_object's shares_resv_from pointer has a full refcount to the dma_resv, which is a sub-refcount that's released after the final i915_vm_put() has been called. Safe.
Aside: Maybe we should have a struct dma_resv_shared which is just dma_resv + kref as a stand-alone thing. It's a pretty useful pattern which other drivers might want to copy.
For a bit more context see
commit 4d8151ae5329cf50781a02fd2298a909589a5bab Author: Thomas Hellström <[email protected]> Date: Tue Jun 1 09:46:41 2021 +0200 drm/i915: Don't free shared locks while shared
- the fpriv->vm_xa was relying on rcu_read_lock for lookup, but that was updated in a prep patch too to just be a spinlock-protected lookup.
- intel_gt->vm is set at driver load in intel_gt_init() and released in intel_gt_driver_release(). There seems to be some issue that in some error paths this is called twice, but otherwise no rcu to be found anywhere. This was added in the below commit, which unfortunately doesn't explain why this complication exists.
commit e6ba76480299a0d77c51d846f7467b1673aad25b Author: Chris Wilson <[email protected]> Date: Sat Dec 21 16:03:24 2019 +0000 drm/i915: Remove i915->kernel_context
The proper fix most likely for this is to start using drmm_ at large scale, but that's also huge amounts of work.
- i915_vma->vm is some real pain, because rcu is rcu protected, at least in the vma lookup in the context lookup cache in eb_lookup_vma(). This was added in
commit 4ff4b44cbb70c269259958cbcc48d7b8a2cb9ec8 Author: Chris Wilson <[email protected]> Date: Fri Jun 16 15:05:16 2017 +0100 drm/i915: Store a direct lookup from object handle to vma
This was changed to a radix tree from the hashtable in, but with the locking unchanged, in
commit d1b48c1e7184d9bc4ae6d7f9fe2eed9efed11ffc Author: Chris Wilson <[email protected]> Date: Wed Aug 16 09:52:08 2017 +0100 drm/i915: Replace execbuf vma ht with an idr
In
commit 93159e12353c2a47e5576d642845a91fa00530bf Author: Chris Wilson <[email protected]> Date: Mon Mar 23 09:28:41 2020 +0000 drm/i915/gem: Avoid gem_context->mutex for simple vma lookup
the locking was changed from dev->struct_mutex to rcu, which added the requirement to rcu protect i915_vma. Somehow this was missed in review (or I'm completely blind).
Irrespective of all that the vma lookup cache rcu_read_lock grabs a full reference of the vma and the rcu doesn't leak further. So no impact on i915_address_space from that.
I have not found any other rcu use for i915_vma, but given that it seems broken I also didn't bother to do a careful in-depth audit.
Alltogether there's nothing left in-tree anymore which requires that a pointer deref to an i915_address_space is safe undre rcu_read_lock only.
rcu protection of i915_address_space was introduced in
commit b32fa811156328aea5a3c2ff05cc096490382456
Author: Chris Wilson <[email protected]> Date: Thu Jun 20 19:37:05 2019 +0100
drm/i915/gtt: Defer address space cleanup to an RCU worker
by mixing up a bugfixing (i915_address_space needs to be released from a worker) with enabling rcu support. The commit message also seems somewhat confused, because it talks about cleanup of WC pages requiring sleep, while the code and linked bugzilla are about a requirement to take dev->struct_mutex (which yes sleeps but it's a much more specific problem). Since final kref_put can be called from pretty much anywhere (including hardirq context through the scheduler's i915_active cleanup) we need a worker here. Hence that part must be kept.
Ideally all these reclaim workers should have some kind of integration with our shrinkers, but for some of these it's rather tricky. Anyway, that's a preexisting condition in the codeebase that we wont fix in this patch here.
We also remove the rcu_barrier in ggtt_cleanup_hw added in
commit 60a4233a4952729089e4df152e730f8f4d0e82ce
Author: Chris Wilson <[email protected]> Date: Mon Jul 29 14:24:12 2019 +0100
drm/i915: Flush the i915_vm_release before ggtt shutdown
--- drivers/gpu/drm/i915/gt/intel_ggtt.c | 1 - drivers/gpu/drm/i915/gt/intel_gtt.c | 6 +++--- drivers/gpu/drm/i915/gt/intel_gtt.h | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/gt/intel_ggtt.c +0 -1
@@ -727,7 +727,6 @@ static void ggtt_cleanup_hw(struct i915_ggtt *ggtt)atomic_set (&ggtt->vm.open,0 ); -rcu_barrier ();/* flush the RCU'ed__i915_vm_release */ flush_workqueue (ggtt->vm.i915->wq);mutex_lock (&ggtt->vm.mutex);
drivers/gpu/drm/i915/gt/intel_gtt.c +3 -3
@@ -155,7 +155,7 @@ void i915_vm_resv_release(struct kref *kref)static void __i915_vm_release (struct work_struct *work) {struct i915_address_space *vm = - container_of(work, struct i915_address_space, rcu.work); + container_of(work, struct i915_address_space, release_work); vm->cleanup (vm);i915_address_space_fini (vm);
@@ -171,7 +171,7 @@ void i915_vm_release(struct kref *kref)GEM_BUG_ON (i915_is_ggtt (vm));trace_i915_ppgtt_release (vm); -queue_rcu_work (vm->i915->wq, &vm->rcu); +queue_work (vm->i915->wq, &vm->release_work); }void i915_address_space_init (struct i915_address_space *vm,int subclass)
@@ -185,7 +185,7 @@ void i915_address_space_init(struct i915_address_space *vm, int subclass)if (!kref_read (&vm->resv_ref))kref_init (&vm->resv_ref); -INIT_RCU_WORK (&vm->rcu, __i915_vm_release); +INIT_WORK (&vm->release_work, __i915_vm_release);atomic_set (&vm->open,1 );/*
drivers/gpu/drm/i915/gt/intel_gtt.h +1 -1
@@ -213,7 +213,7 @@ struct i915_vma_ops {struct i915_address_space {struct kref ref; -struct rcu_work rcu; +struct work_struct release_work;struct drm_mm mm;struct intel_gt *gt;
Signature · 1 line
2.33.0
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [01/11] drm/i915: Release i915_gem_context from a worker
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [01/11] drm/i915: Release i915_gem_context from a worker
URL : https://patchwork.freedesktop.org/series/94285/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 54d95644f2a9 drm/i915: Release i915_gem_context from a worker -:109: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 57 lines checkedc04cf2142dbe drm/i915: Release ctx->syncobj on final put, not on ctx close
-:17: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 00dae4d3d35d ("drm/i915: Implement SINGLE_TIMELINE with a syncobj (v4)")' #17:
commit 00dae4d3d35d4f526929633b76e00b0ab4d3970d
-:67: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 1 errors, 1 warnings, 0 checks, 18 lines checkedc5a1cb3e71ba drm/i915: Keep gem ctx->vm alive until the final put
-:11: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit b81dde719439 ("drm/i915: Allow userspace to clone contexts on creation")' #11:
commit b81dde719439c8f09bb61e742ed95bfc4b33946b
-:19: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 27dbae8f36c1 ("drm/i915/gem: Safely acquire the ctx->vm when copying")' #19:
commit 27dbae8f36c1c25008b7885fc07c57054b7dfba3
-:42: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 2850748ef876 ("drm/i915: Pull i915_vma_pin under the vm->mutex")' #42:
commit 2850748ef8763ab46958e43a4d1c445f29eeb37d
-:55: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit b32fa8111563 ("drm/i915/gtt: Defer address space cleanup to an RCU worker")' #55:
commit b32fa811156328aea5a3c2ff05cc096490382456
-:127: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 4 errors, 1 warnings, 0 checks, 33 lines checked04166caa0331 drm/i915: Drop code to handle set-vm races from execbuf
-:18: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #18:
References: ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")
-:18: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")' #18:
References: ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")
-:47: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 1 errors, 2 warnings, 0 checks, 12 lines checkedf0920f57f420 drm/i915: Rename i915_gem_context_get_vm_rcu to i915_gem_context_get_eb_vm
-:149: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 80 lines checkedf226388f453a drm/i915: Use i915_gem_context_get_eb_vm in ctx_getparam
-:55: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 23 lines checkedfe6b0688e81f drm/i915: Add i915_gem_context_is_full_ppgtt
-:106: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 53 lines checkedc21c8cf7feb9 drm/i915: Use i915_gem_context_get_eb_vm in intel_context_set_gem
-:12: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")' #12:
commit ccbc1b97948ab671335e950271e39766729736c3
-:62: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 1 errors, 1 warnings, 0 checks, 18 lines checkedf2790c652851 drm/i915: Drop __rcu from gem_context->vm
-:11: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")' #11:
commit ccbc1b97948ab671335e950271e39766729736c3
-:23: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #23:
i915_vm_open ofc. This also removes the final caller of context_get_vm_rcu
-:42: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit a4e7ccdac38e ("drm/i915: Move context management under GEM")' #42:
commit a4e7ccdac38ec8335d9e4e2656c1a041c77feae1
-:358: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 2 errors, 2 warnings, 0 checks, 240 lines checked9385b69266f4 drm/i915: use xa_lock/unlock for fpriv->vm_xa lookups
-:15: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit aabbe344dc3c ("drm/i915: Use RCU for unlocked vm_idr lookup")' #15:
commit aabbe344dc3ca5f7d8263a02608ba6179e8a4499
-:57: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 1 errors, 1 warnings, 0 checks, 15 lines checked57e1781bcd3d drm/i915: Stop rcu support for i915_address_space
-:11: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #11:
- i915_dpt has very simple lifetime (somehow we create a display pagetable vm
-:27: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit cf977e18610e ("drm/i915/gem: Spring clean debugfs")' #27:
commit cf977e18610e66e48c31619e7e0cfa871be9eada
-:35: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit db80a1294c23 ("drm/i915/gem: Remove per-client stats from debugfs/i915_gem_objects")' #35:
commit db80a1294c231b6ac725085f046bb2931e00c9db
-:47: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")' #47:
commit ccbc1b97948ab671335e950271e39766729736c3
-:59: WARNING:TYPO_SPELLING: 'Preceeding' may be misspelled - perhaps 'Preceding'? #59:
Preceeding patches removed all vestiges of rcu use from gem_ctx->vm ^^^^^^^^^^
-:64: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit a4e7ccdac38e ("drm/i915: Move context management under GEM")' #64:
commit a4e7ccdac38ec8335d9e4e2656c1a041c77feae1
-:88: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit c744d50363b7 ("drm/i915/gt: Split the breadcrumb spinlock between global and contexts")' #88:
commit c744d50363b714783bbc88d986cc16def13710f7
-:94: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit added5fce61e ("ARM: mxs_defconfig: add CONFIG_USB_PHY")' #94:
its parent commit added the intel_context rcu protection:
-:96: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 14d1eaf08845 ("drm/i915/gt: Protect context lifetime with RCU")' #96:
commit 14d1eaf08845c534963c83f754afe0cb14cb2512
-:114: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 4d8151ae5329 ("drm/i915: Don't free shared locks while shared")' #114:
commit 4d8151ae5329cf50781a02fd2298a909589a5bab
-:130: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit e6ba76480299 ("drm/i915: Remove i915->kernel_context")' #130:
commit e6ba76480299a0d77c51d846f7467b1673aad25b
-:143: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 4ff4b44cbb70 ("drm/i915: Store a direct lookup from object handle to vma")' #143:
commit 4ff4b44cbb70c269259958cbcc48d7b8a2cb9ec8
-:152: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit d1b48c1e7184 ("drm/i915: Replace execbuf vma ht with an idr")' #152:
commit d1b48c1e7184d9bc4ae6d7f9fe2eed9efed11ffc
-:160: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 93159e12353c ("drm/i915/gem: Avoid gem_context->mutex for simple vma lookup")' #160:
commit 93159e12353c2a47e5576d642845a91fa00530bf
-:183: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit b32fa8111563 ("drm/i915/gtt: Defer address space cleanup to an RCU worker")' #183:
commit b32fa811156328aea5a3c2ff05cc096490382456
-:201: WARNING:TYPO_SPELLING: 'wont' may be misspelled - perhaps 'won't'? #201:
that's a preexisting condition in the codeebase that we wont fix in
^^^^
-:206: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 60a4233a4952 ("drm/i915: Flush the i915_vm_release before ggtt shutdown")' #206:
commit 60a4233a4952729089e4df152e730f8f4d0e82ce
-:280: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 14 errors, 4 warnings, 0 checks, 39 lines checked
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [01/11] drm/i915: Release i915_gem_context from a worker
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [01/11] drm/i915: Release i915_gem_context from a worker
URL : https://patchwork.freedesktop.org/series/94285/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. -drivers/gpu/drm/i915/gem/i915_gem_context.c:1349:34: expected struct i915_address_space *vm -drivers/gpu/drm/i915/gem/i915_gem_context.c:1349:34: got struct i915_address_space [noderef] __rcu *vm -drivers/gpu/drm/i915/gem/i915_gem_context.c:1349:34: warning: incorrect type in argument 1 (different address spaces) -drivers/gpu/drm/i915/gem/selftests/mock_context.c:44:25: expected struct i915_address_space [noderef] __rcu *vm -drivers/gpu/drm/i915/gem/selftests/mock_context.c:44:25: got struct i915_address_space * -drivers/gpu/drm/i915/gem/selftests/mock_context.c:44:25: warning: incorrect type in assignment (different address spaces) -drivers/gpu/drm/i915/gem/selftests/mock_context.c:61:34: expected struct i915_address_space *vm -drivers/gpu/drm/i915/gem/selftests/mock_context.c:61:34: got struct i915_address_space [noderef] __rcu *vm -drivers/gpu/drm/i915/gem/selftests/mock_context.c:61:34: warning: incorrect type in argument 1 (different address spaces)
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [01/11] drm/i915: Release i915_gem_context from a worker
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [01/11] drm/i915: Release i915_gem_context from a worker
URL : https://patchwork.freedesktop.org/series/94285/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_10548 -> Patchwork_20944
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_20944 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_20944, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20944/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_20944:
### IGT changes ###
#### Possible regressions ####
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-c:
- fi-rkl-11600: [PASS][1] -> [SKIP][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/fi-rkl-11600/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20944/fi-rkl-11600/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_20944 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@execlists:
- fi-bsw-kefka: [PASS][3] -> [INCOMPLETE][4] ([i915#2940])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/fi-bsw-kefka/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20944/fi-bsw-kefka/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@hangcheck:
- fi-snb-2600: [PASS][5] -> [INCOMPLETE][6] ([i915#3921])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/fi-snb-2600/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20944/fi-snb-2600/igt@i915_selftest@[email protected]
* igt@runner@aborted:
- fi-bsw-kefka: NOTRUN -> [FAIL][7] ([fdo#109271] / [i915#1436] / [i915#3428])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20944/fi-bsw-kefka/igt@[email protected]
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#2940]: https://gitlab.freedesktop.org/drm/intel/issues/2940
[i915#3428]: https://gitlab.freedesktop.org/drm/intel/issues/3428
[i915#3921]: https://gitlab.freedesktop.org/drm/intel/issues/3921
Participating hosts (48 -> 40)
------------------------------
Missing (8): fi-ilk-m540 bat-adls-5 fi-hsw-4200u bat-dg1-5 fi-bsw-cyan bat-adlp-4 fi-bdw-samus bat-jsl-1
Build changes
-------------
* Linux: CI_DRM_10548 -> Patchwork_20944
CI-20190529: 20190529
CI_DRM_10548: 50be9d6f82904be755ea5b04efbd6c5e19e2d945 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6197: 40888f97a6ad219f4ed48a1830d0ef3c9617d006 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_20944: 57e1781bcd3d3639fa403938f6360a416fce176e @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
57e1781bcd3d drm/i915: Stop rcu support for i915_address_space 9385b69266f4 drm/i915: use xa_lock/unlock for fpriv->vm_xa lookups f2790c652851 drm/i915: Drop __rcu from gem_context->vmc21c8cf7feb9 drm/i915: Use i915_gem_context_get_eb_vm in intel_context_set_gem fe6b0688e81f drm/i915: Add i915_gem_context_is_full_ppgttf226388f453a drm/i915: Use i915_gem_context_get_eb_vm in ctx_getparam f0920f57f420 drm/i915: Rename i915_gem_context_get_vm_rcu to i915_gem_context_get_eb_vm 04166caa0331 drm/i915: Drop code to handle set-vm races from execbuf c5a1cb3e71ba drm/i915: Keep gem ctx->vm alive until the final put c04cf2142dbe drm/i915: Release ctx->syncobj on final put, not on ctx close 54d95644f2a9 drm/i915: Release i915_gem_context from a worker
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20944/index.html
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [01/11] drm/i915: Release i915_gem_context from a worker (rev2)
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [01/11] drm/i915: Release i915_gem_context from a worker (rev2)
URL : https://patchwork.freedesktop.org/series/94285/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 64372bd0168a drm/i915: Release i915_gem_context from a worker -:109: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 57 lines checked0bc3da3c498c drm/i915: Release ctx->syncobj on final put, not on ctx close
-:17: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 00dae4d3d35d ("drm/i915: Implement SINGLE_TIMELINE with a syncobj (v4)")' #17:
commit 00dae4d3d35d4f526929633b76e00b0ab4d3970d
-:67: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 1 errors, 1 warnings, 0 checks, 18 lines checkedb9dd2188735b drm/i915: Keep gem ctx->vm alive until the final put
-:11: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit b81dde719439 ("drm/i915: Allow userspace to clone contexts on creation")' #11:
commit b81dde719439c8f09bb61e742ed95bfc4b33946b
-:19: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 27dbae8f36c1 ("drm/i915/gem: Safely acquire the ctx->vm when copying")' #19:
commit 27dbae8f36c1c25008b7885fc07c57054b7dfba3
-:42: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 2850748ef876 ("drm/i915: Pull i915_vma_pin under the vm->mutex")' #42:
commit 2850748ef8763ab46958e43a4d1c445f29eeb37d
-:55: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit b32fa8111563 ("drm/i915/gtt: Defer address space cleanup to an RCU worker")' #55:
commit b32fa811156328aea5a3c2ff05cc096490382456
-:127: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 4 errors, 1 warnings, 0 checks, 33 lines checked29e6c891c5c4 drm/i915: Drop code to handle set-vm races from execbuf
-:18: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #18:
References: ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")
-:18: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")' #18:
References: ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")
-:47: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 1 errors, 2 warnings, 0 checks, 12 lines checked3084a349e937 drm/i915: Rename i915_gem_context_get_vm_rcu to i915_gem_context_get_eb_vm
-:149: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 80 lines checked5a071ebff40f drm/i915: Use i915_gem_context_get_eb_vm in ctx_getparam
-:55: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 23 lines checked2da493a5ca5a drm/i915: Add i915_gem_context_is_full_ppgtt
-:106: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 53 lines checked1d14230abadc drm/i915: Use i915_gem_context_get_eb_vm in intel_context_set_gem
-:12: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")' #12:
commit ccbc1b97948ab671335e950271e39766729736c3
-:62: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 1 errors, 1 warnings, 0 checks, 18 lines checked7f80bb33cd1e drm/i915: Drop __rcu from gem_context->vm
-:11: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")' #11:
commit ccbc1b97948ab671335e950271e39766729736c3
-:23: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #23:
i915_vm_open ofc. This also removes the final caller of context_get_vm_rcu
-:42: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit a4e7ccdac38e ("drm/i915: Move context management under GEM")' #42:
commit a4e7ccdac38ec8335d9e4e2656c1a041c77feae1
-:358: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 2 errors, 2 warnings, 0 checks, 240 lines checked6d5eef0fbd0f drm/i915: use xa_lock/unlock for fpriv->vm_xa lookups
-:15: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit aabbe344dc3c ("drm/i915: Use RCU for unlocked vm_idr lookup")' #15:
commit aabbe344dc3ca5f7d8263a02608ba6179e8a4499
-:57: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 1 errors, 1 warnings, 0 checks, 15 lines checked6dc5fca7a0a0 drm/i915: Stop rcu support for i915_address_space
-:11: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #11:
- i915_dpt has very simple lifetime (somehow we create a display pagetable vm
-:27: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit cf977e18610e ("drm/i915/gem: Spring clean debugfs")' #27:
commit cf977e18610e66e48c31619e7e0cfa871be9eada
-:35: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit db80a1294c23 ("drm/i915/gem: Remove per-client stats from debugfs/i915_gem_objects")' #35:
commit db80a1294c231b6ac725085f046bb2931e00c9db
-:47: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")' #47:
commit ccbc1b97948ab671335e950271e39766729736c3
-:59: WARNING:TYPO_SPELLING: 'Preceeding' may be misspelled - perhaps 'Preceding'? #59:
Preceeding patches removed all vestiges of rcu use from gem_ctx->vm ^^^^^^^^^^
-:64: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit a4e7ccdac38e ("drm/i915: Move context management under GEM")' #64:
commit a4e7ccdac38ec8335d9e4e2656c1a041c77feae1
-:88: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit c744d50363b7 ("drm/i915/gt: Split the breadcrumb spinlock between global and contexts")' #88:
commit c744d50363b714783bbc88d986cc16def13710f7
-:94: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit added5fce61e ("ARM: mxs_defconfig: add CONFIG_USB_PHY")' #94:
its parent commit added the intel_context rcu protection:
-:96: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 14d1eaf08845 ("drm/i915/gt: Protect context lifetime with RCU")' #96:
commit 14d1eaf08845c534963c83f754afe0cb14cb2512
-:114: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 4d8151ae5329 ("drm/i915: Don't free shared locks while shared")' #114:
commit 4d8151ae5329cf50781a02fd2298a909589a5bab
-:130: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit e6ba76480299 ("drm/i915: Remove i915->kernel_context")' #130:
commit e6ba76480299a0d77c51d846f7467b1673aad25b
-:143: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 4ff4b44cbb70 ("drm/i915: Store a direct lookup from object handle to vma")' #143:
commit 4ff4b44cbb70c269259958cbcc48d7b8a2cb9ec8
-:152: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit d1b48c1e7184 ("drm/i915: Replace execbuf vma ht with an idr")' #152:
commit d1b48c1e7184d9bc4ae6d7f9fe2eed9efed11ffc
-:160: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 93159e12353c ("drm/i915/gem: Avoid gem_context->mutex for simple vma lookup")' #160:
commit 93159e12353c2a47e5576d642845a91fa00530bf
-:183: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit b32fa8111563 ("drm/i915/gtt: Defer address space cleanup to an RCU worker")' #183:
commit b32fa811156328aea5a3c2ff05cc096490382456
-:201: WARNING:TYPO_SPELLING: 'wont' may be misspelled - perhaps 'won't'? #201:
that's a preexisting condition in the codeebase that we wont fix in
^^^^
-:206: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 60a4233a4952 ("drm/i915: Flush the i915_vm_release before ggtt shutdown")' #206:
commit 60a4233a4952729089e4df152e730f8f4d0e82ce
-:280: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 14 errors, 4 warnings, 0 checks, 39 lines checked
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [01/11] drm/i915: Release i915_gem_context from a worker (rev2)
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [01/11] drm/i915: Release i915_gem_context from a worker (rev2)
URL : https://patchwork.freedesktop.org/series/94285/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. -drivers/gpu/drm/i915/gem/i915_gem_context.c:1349:34: expected struct i915_address_space *vm -drivers/gpu/drm/i915/gem/i915_gem_context.c:1349:34: got struct i915_address_space [noderef] __rcu *vm -drivers/gpu/drm/i915/gem/i915_gem_context.c:1349:34: warning: incorrect type in argument 1 (different address spaces) -drivers/gpu/drm/i915/gem/selftests/mock_context.c:44:25: expected struct i915_address_space [noderef] __rcu *vm -drivers/gpu/drm/i915/gem/selftests/mock_context.c:44:25: got struct i915_address_space * -drivers/gpu/drm/i915/gem/selftests/mock_context.c:44:25: warning: incorrect type in assignment (different address spaces) -drivers/gpu/drm/i915/gem/selftests/mock_context.c:61:34: expected struct i915_address_space *vm -drivers/gpu/drm/i915/gem/selftests/mock_context.c:61:34: got struct i915_address_space [noderef] __rcu *vm -drivers/gpu/drm/i915/gem/selftests/mock_context.c:61:34: warning: incorrect type in argument 1 (different address spaces)
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [01/11] drm/i915: Release i915_gem_context from a worker (rev2)
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [01/11] drm/i915: Release i915_gem_context from a worker (rev2)
URL : https://patchwork.freedesktop.org/series/94285/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_10548 -> Patchwork_20945
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_20945 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_20945, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20945/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_20945:
### IGT changes ###
#### Possible regressions ####
* igt@kms_flip@basic-flip-vs-dpms:
- fi-rkl-11600: NOTRUN -> [SKIP][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20945/fi-rkl-11600/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_20945 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s3:
- fi-tgl-1115g4: [PASS][2] -> [FAIL][3] ([i915#1888])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/fi-tgl-1115g4/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20945/fi-tgl-1115g4/igt@[email protected]
* igt@i915_selftest@live@gt_lrc:
- fi-rkl-guc: [PASS][4] -> [DMESG-WARN][5] ([i915#3958])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/fi-rkl-guc/igt@i915_selftest@live@gt_lrc.html
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20945/fi-rkl-guc/igt@i915_selftest@live@gt_lrc.html
* igt@i915_selftest@live@hangcheck:
- fi-snb-2600: [PASS][6] -> [INCOMPLETE][7] ([i915#3921])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/fi-snb-2600/igt@i915_selftest@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20945/fi-snb-2600/igt@i915_selftest@[email protected]
* igt@kms_cursor_legacy@basic-flip-before-cursor-varying-size:
- fi-rkl-11600: [PASS][8] -> [SKIP][9] ([fdo#111825])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/fi-rkl-11600/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20945/fi-rkl-11600/igt@[email protected]
* igt@kms_flip@basic-flip-vs-modeset:
- fi-rkl-11600: NOTRUN -> [SKIP][10] ([i915#3669])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20945/fi-rkl-11600/igt@[email protected]
* igt@runner@aborted:
- fi-bdw-5557u: NOTRUN -> [FAIL][11] ([i915#1602] / [i915#2029])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20945/fi-bdw-5557u/igt@[email protected]
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[i915#1602]: https://gitlab.freedesktop.org/drm/intel/issues/1602
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#2029]: https://gitlab.freedesktop.org/drm/intel/issues/2029
[i915#3669]: https://gitlab.freedesktop.org/drm/intel/issues/3669
[i915#3921]: https://gitlab.freedesktop.org/drm/intel/issues/3921
[i915#3958]: https://gitlab.freedesktop.org/drm/intel/issues/3958
Participating hosts (48 -> 40)
------------------------------
Missing (8): fi-ilk-m540 bat-adls-5 fi-hsw-4200u bat-dg1-5 fi-bsw-cyan bat-adlp-4 fi-bdw-samus bat-jsl-1
Build changes
-------------
* Linux: CI_DRM_10548 -> Patchwork_20945
CI-20190529: 20190529
CI_DRM_10548: 50be9d6f82904be755ea5b04efbd6c5e19e2d945 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6197: 40888f97a6ad219f4ed48a1830d0ef3c9617d006 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_20945: 6dc5fca7a0a04d024a130b497a278fb5a1925ecb @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
6dc5fca7a0a0 drm/i915: Stop rcu support for i915_address_space 6d5eef0fbd0f drm/i915: use xa_lock/unlock for fpriv->vm_xa lookups 7f80bb33cd1e drm/i915: Drop __rcu from gem_context->vm1d14230abadc drm/i915: Use i915_gem_context_get_eb_vm in intel_context_set_gem 2da493a5ca5a drm/i915: Add i915_gem_context_is_full_ppgtt5a071ebff40f drm/i915: Use i915_gem_context_get_eb_vm in ctx_getparam 3084a349e937 drm/i915: Rename i915_gem_context_get_vm_rcu to i915_gem_context_get_eb_vm 29e6c891c5c4 drm/i915: Drop code to handle set-vm races from execbuf b9dd2188735b drm/i915: Keep gem ctx->vm alive until the final put 0bc3da3c498c drm/i915: Release ctx->syncobj on final put, not on ctx close 64372bd0168a drm/i915: Release i915_gem_context from a worker
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20945/index.html
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [01/11] drm/i915: Release i915_gem_context from a worker (rev3)
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [01/11] drm/i915: Release i915_gem_context from a worker (rev3)
URL : https://patchwork.freedesktop.org/series/94285/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 2efbabdf9808 drm/i915: Release i915_gem_context from a worker -:109: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 57 lines checked
499801408807 drm/i915: Release ctx->syncobj on final put, not on ctx close
-:17: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 00dae4d3d35d ("drm/i915: Implement SINGLE_TIMELINE with a syncobj (v4)")' #17:
commit 00dae4d3d35d4f526929633b76e00b0ab4d3970d
-:67: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 1 errors, 1 warnings, 0 checks, 18 lines checkedafcffba951ab drm/i915: Keep gem ctx->vm alive until the final put
-:11: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit b81dde719439 ("drm/i915: Allow userspace to clone contexts on creation")' #11:
commit b81dde719439c8f09bb61e742ed95bfc4b33946b
-:19: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 27dbae8f36c1 ("drm/i915/gem: Safely acquire the ctx->vm when copying")' #19:
commit 27dbae8f36c1c25008b7885fc07c57054b7dfba3
-:42: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 2850748ef876 ("drm/i915: Pull i915_vma_pin under the vm->mutex")' #42:
commit 2850748ef8763ab46958e43a4d1c445f29eeb37d
-:55: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit b32fa8111563 ("drm/i915/gtt: Defer address space cleanup to an RCU worker")' #55:
commit b32fa811156328aea5a3c2ff05cc096490382456
-:127: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 4 errors, 1 warnings, 0 checks, 33 lines checkeda8d8c7b33c91 drm/i915: Drop code to handle set-vm races from execbuf
-:18: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #18:
References: ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")
-:18: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")' #18:
References: ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")
-:47: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 1 errors, 2 warnings, 0 checks, 12 lines checked45f40a9d3c04 drm/i915: Rename i915_gem_context_get_vm_rcu to i915_gem_context_get_eb_vm
-:149: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 80 lines checked0a69de4fc075 drm/i915: Use i915_gem_context_get_eb_vm in ctx_getparam
-:55: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 23 lines checked105dd8ab8137 drm/i915: Add i915_gem_context_is_full_ppgtt
-:106: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 53 lines checkedf1878363f69f drm/i915: Use i915_gem_context_get_eb_vm in intel_context_set_gem
-:12: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")' #12:
commit ccbc1b97948ab671335e950271e39766729736c3
-:62: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 1 errors, 1 warnings, 0 checks, 18 lines checkeddfa039b666fa drm/i915: Drop __rcu from gem_context->vm
-:11: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")' #11:
commit ccbc1b97948ab671335e950271e39766729736c3
-:23: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #23:
i915_vm_open ofc. This also removes the final caller of context_get_vm_rcu
-:42: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit a4e7ccdac38e ("drm/i915: Move context management under GEM")' #42:
commit a4e7ccdac38ec8335d9e4e2656c1a041c77feae1
-:358: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 2 errors, 2 warnings, 0 checks, 240 lines checked33c5697641ee drm/i915: use xa_lock/unlock for fpriv->vm_xa lookups
-:15: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit aabbe344dc3c ("drm/i915: Use RCU for unlocked vm_idr lookup")' #15:
commit aabbe344dc3ca5f7d8263a02608ba6179e8a4499
-:57: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 1 errors, 1 warnings, 0 checks, 15 lines checked014e30ab67f6 drm/i915: Stop rcu support for i915_address_space
-:11: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #11:
- i915_dpt has very simple lifetime (somehow we create a display pagetable vm
-:27: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit cf977e18610e ("drm/i915/gem: Spring clean debugfs")' #27:
commit cf977e18610e66e48c31619e7e0cfa871be9eada
-:35: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit db80a1294c23 ("drm/i915/gem: Remove per-client stats from debugfs/i915_gem_objects")' #35:
commit db80a1294c231b6ac725085f046bb2931e00c9db
-:47: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit ccbc1b97948a ("drm/i915/gem: Don't allow changing the VM on running contexts (v4)")' #47:
commit ccbc1b97948ab671335e950271e39766729736c3
-:59: WARNING:TYPO_SPELLING: 'Preceeding' may be misspelled - perhaps 'Preceding'? #59:
Preceeding patches removed all vestiges of rcu use from gem_ctx->vm ^^^^^^^^^^
-:64: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit a4e7ccdac38e ("drm/i915: Move context management under GEM")' #64:
commit a4e7ccdac38ec8335d9e4e2656c1a041c77feae1
-:88: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit c744d50363b7 ("drm/i915/gt: Split the breadcrumb spinlock between global and contexts")' #88:
commit c744d50363b714783bbc88d986cc16def13710f7
-:94: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit added5fce61e ("ARM: mxs_defconfig: add CONFIG_USB_PHY")' #94:
its parent commit added the intel_context rcu protection:
-:96: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 14d1eaf08845 ("drm/i915/gt: Protect context lifetime with RCU")' #96:
commit 14d1eaf08845c534963c83f754afe0cb14cb2512
-:114: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 4d8151ae5329 ("drm/i915: Don't free shared locks while shared")' #114:
commit 4d8151ae5329cf50781a02fd2298a909589a5bab
-:130: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit e6ba76480299 ("drm/i915: Remove i915->kernel_context")' #130:
commit e6ba76480299a0d77c51d846f7467b1673aad25b
-:143: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 4ff4b44cbb70 ("drm/i915: Store a direct lookup from object handle to vma")' #143:
commit 4ff4b44cbb70c269259958cbcc48d7b8a2cb9ec8
-:152: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit d1b48c1e7184 ("drm/i915: Replace execbuf vma ht with an idr")' #152:
commit d1b48c1e7184d9bc4ae6d7f9fe2eed9efed11ffc
-:160: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 93159e12353c ("drm/i915/gem: Avoid gem_context->mutex for simple vma lookup")' #160:
commit 93159e12353c2a47e5576d642845a91fa00530bf
-:183: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit b32fa8111563 ("drm/i915/gtt: Defer address space cleanup to an RCU worker")' #183:
commit b32fa811156328aea5a3c2ff05cc096490382456
-:201: WARNING:TYPO_SPELLING: 'wont' may be misspelled - perhaps 'won't'? #201:
that's a preexisting condition in the codeebase that we wont fix in
^^^^
-:206: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 60a4233a4952 ("drm/i915: Flush the i915_vm_release before ggtt shutdown")' #206:
commit 60a4233a4952729089e4df152e730f8f4d0e82ce
-:280: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address mismatch: 'From: Daniel Vetter <[email protected]>' != 'Signed-off-by: Daniel Vetter <[email protected]>'
total: 14 errors, 4 warnings, 0 checks, 39 lines checked
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [01/11] drm/i915: Release i915_gem_context from a worker (rev3)
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [01/11] drm/i915: Release i915_gem_context from a worker (rev3)
URL : https://patchwork.freedesktop.org/series/94285/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. -drivers/gpu/drm/i915/gem/i915_gem_context.c:1349:34: expected struct i915_address_space *vm -drivers/gpu/drm/i915/gem/i915_gem_context.c:1349:34: got struct i915_address_space [noderef] __rcu *vm -drivers/gpu/drm/i915/gem/i915_gem_context.c:1349:34: warning: incorrect type in argument 1 (different address spaces) -drivers/gpu/drm/i915/gem/selftests/mock_context.c:44:25: expected struct i915_address_space [noderef] __rcu *vm -drivers/gpu/drm/i915/gem/selftests/mock_context.c:44:25: got struct i915_address_space * -drivers/gpu/drm/i915/gem/selftests/mock_context.c:44:25: warning: incorrect type in assignment (different address spaces) -drivers/gpu/drm/i915/gem/selftests/mock_context.c:61:34: expected struct i915_address_space *vm -drivers/gpu/drm/i915/gem/selftests/mock_context.c:61:34: got struct i915_address_space [noderef] __rcu *vm -drivers/gpu/drm/i915/gem/selftests/mock_context.c:61:34: warning: incorrect type in argument 1 (different address spaces)
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [01/11] drm/i915: Release i915_gem_context from a worker (rev3)
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [01/11] drm/i915: Release i915_gem_context from a worker (rev3)
URL : https://patchwork.freedesktop.org/series/94285/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10548 -> Patchwork_20949
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/index.html
Known issues
------------
Here are the changes found in Patchwork_20949 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@requests:
- fi-rkl-guc: [PASS][1] -> [DMESG-FAIL][2] ([i915#4041])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/fi-rkl-guc/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/fi-rkl-guc/igt@i915_selftest@[email protected]
* igt@kms_cursor_legacy@basic-flip-after-cursor-atomic:
- fi-rkl-11600: [PASS][3] -> [SKIP][4] ([fdo#111825])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/fi-rkl-11600/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/fi-rkl-11600/igt@[email protected]
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[i915#4041]: https://gitlab.freedesktop.org/drm/intel/issues/4041
Participating hosts (48 -> 40)
------------------------------
Missing (8): fi-ilk-m540 bat-adls-5 fi-hsw-4200u bat-dg1-5 fi-bsw-cyan bat-adlp-4 fi-bdw-samus bat-jsl-1
Build changes
-------------
* Linux: CI_DRM_10548 -> Patchwork_20949
CI-20190529: 20190529
CI_DRM_10548: 50be9d6f82904be755ea5b04efbd6c5e19e2d945 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6197: 40888f97a6ad219f4ed48a1830d0ef3c9617d006 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_20949: 014e30ab67f6ef7615f6cd85304475df69b91195 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
014e30ab67f6 drm/i915: Stop rcu support for i915_address_space 33c5697641ee drm/i915: use xa_lock/unlock for fpriv->vm_xa lookups dfa039b666fa drm/i915: Drop __rcu from gem_context->vmf1878363f69f drm/i915: Use i915_gem_context_get_eb_vm in intel_context_set_gem 105dd8ab8137 drm/i915: Add i915_gem_context_is_full_ppgtt0a69de4fc075 drm/i915: Use i915_gem_context_get_eb_vm in ctx_getparam 45f40a9d3c04 drm/i915: Rename i915_gem_context_get_vm_rcu to i915_gem_context_get_eb_vm a8d8c7b33c91 drm/i915: Drop code to handle set-vm races from execbuf afcffba951ab drm/i915: Keep gem ctx->vm alive until the final put 499801408807 drm/i915: Release ctx->syncobj on final put, not on ctx close 2efbabdf9808 drm/i915: Release i915_gem_context from a worker
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/index.html
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [01/11] drm/i915: Release i915_gem_context from a worker (rev3)
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [01/11] drm/i915: Release i915_gem_context from a worker (rev3)
URL : https://patchwork.freedesktop.org/series/94285/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10548_full -> Patchwork_20949_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_20949_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_persistence@legacy-engines-mixed-process:
- shard-snb: NOTRUN -> [SKIP][1] ([fdo#109271] / [i915#1099]) +5 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-snb6/igt@[email protected]
* igt@gem_eio@unwedge-stress:
- shard-iclb: [PASS][2] -> [TIMEOUT][3] ([i915#2369] / [i915#2481] / [i915#3070])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-iclb2/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb3/igt@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-kbl: [PASS][4] -> [FAIL][5] ([i915#2842]) +2 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-kbl4/igt@gem_exec_fair@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-kbl1/igt@gem_exec_fair@[email protected]
- shard-apl: NOTRUN -> [FAIL][6] ([i915#2842])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl8/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@bcs0:
- shard-iclb: [PASS][7] -> [FAIL][8] ([i915#2842])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-iclb4/igt@gem_exec_fair@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vecs0:
- shard-tglb: [PASS][9] -> [FAIL][10] ([i915#2842])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-tglb6/igt@gem_exec_fair@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-tglb8/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [PASS][11] -> [FAIL][12] ([i915#2849])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-iclb3/igt@gem_exec_fair@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb3/igt@gem_exec_fair@[email protected]
* igt@gem_mmap_gtt@cpuset-big-copy-odd:
- shard-iclb: [PASS][13] -> [FAIL][14] ([i915#307])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-iclb4/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb5/igt@[email protected]
* igt@gem_pread@exhaustion:
- shard-skl: NOTRUN -> [WARN][15] ([i915#2658])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl3/igt@[email protected]
* igt@gem_pwrite@basic-exhaustion:
- shard-snb: NOTRUN -> [WARN][16] ([i915#2658]) +1 similar issue
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-snb6/igt@[email protected]
* igt@gem_render_copy@linear-to-vebox-yf-tiled:
- shard-iclb: NOTRUN -> [SKIP][17] ([i915#768]) +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb1/igt@[email protected]
* igt@gem_userptr_blits@vma-merge:
- shard-snb: NOTRUN -> [FAIL][18] ([i915#2724])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-snb6/igt@[email protected]
* igt@gen9_exec_parse@cmd-crossing-page:
- shard-iclb: NOTRUN -> [SKIP][19] ([i915#2856])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb1/igt@[email protected]
* igt@i915_pm_dc@dc3co-vpb-simulation:
- shard-skl: NOTRUN -> [SKIP][20] ([fdo#109271] / [i915#658])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl2/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [PASS][21] -> [FAIL][22] ([i915#454])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-iclb1/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb4/igt@[email protected]
- shard-skl: NOTRUN -> [FAIL][23] ([i915#454])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl6/igt@[email protected]
* igt@kms_async_flips@alternate-sync-async-flip:
- shard-skl: [PASS][24] -> [FAIL][25] ([i915#2521])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-skl5/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl8/igt@[email protected]
* igt@kms_big_fb@y-tiled-8bpp-rotate-90:
- shard-iclb: NOTRUN -> [SKIP][26] ([fdo#110725] / [fdo#111614])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb3/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-0-async-flip:
- shard-skl: NOTRUN -> [FAIL][27] ([i915#3722])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl3/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-0-hflip:
- shard-apl: NOTRUN -> [SKIP][28] ([fdo#109271] / [i915#3777]) +2 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl1/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip:
- shard-skl: NOTRUN -> [SKIP][29] ([fdo#109271] / [i915#3777]) +1 similar issue
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl3/igt@[email protected]
* igt@kms_big_fb@yf-tiled-32bpp-rotate-0:
- shard-iclb: [PASS][30] -> [DMESG-WARN][31] ([i915#3621])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-iclb6/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb1/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-0:
- shard-apl: NOTRUN -> [SKIP][32] ([fdo#109271]) +202 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl1/igt@[email protected]
* igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs:
- shard-iclb: NOTRUN -> [SKIP][33] ([fdo#109278] / [i915#3886]) +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb1/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_rc_ccs_cc:
- shard-skl: NOTRUN -> [SKIP][34] ([fdo#109271] / [i915#3886]) +3 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl6/igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-c-bad-rotation-90-y_tiled_gen12_mc_ccs:
- shard-apl: NOTRUN -> [SKIP][35] ([fdo#109271] / [i915#3886]) +11 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl1/igt@kms_ccs@pipe-c-bad-rotation-90-y_tiled_gen12_mc_ccs.html
* igt@kms_chamelium@vga-edid-read:
- shard-apl: NOTRUN -> [SKIP][36] ([fdo#109271] / [fdo#111827]) +19 similar issues
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl8/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-ctm-0-5:
- shard-snb: NOTRUN -> [SKIP][37] ([fdo#109271] / [fdo#111827]) +17 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-snb6/igt@[email protected]
* igt@kms_color_chamelium@pipe-invalid-degamma-lut-sizes:
- shard-skl: NOTRUN -> [SKIP][38] ([fdo#109271] / [fdo#111827]) +8 similar issues
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl3/igt@[email protected]
* igt@kms_content_protection@lic:
- shard-apl: NOTRUN -> [TIMEOUT][39] ([i915#1319]) +2 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl8/igt@[email protected]
* igt@kms_content_protection@mei_interface:
- shard-iclb: NOTRUN -> [SKIP][40] ([fdo#109300] / [fdo#111066])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb1/igt@kms_content_protection@mei_interface.html
* igt@kms_cursor_crc@pipe-d-cursor-128x128-sliding:
- shard-iclb: NOTRUN -> [SKIP][41] ([fdo#109278]) +3 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb1/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-d-128x128-right-edge:
- shard-skl: NOTRUN -> [SKIP][42] ([fdo#109271]) +55 similar issues
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl6/igt@[email protected]
* igt@kms_cursor_legacy@cursorb-vs-flipb-legacy:
- shard-iclb: NOTRUN -> [SKIP][43] ([fdo#109274] / [fdo#109278])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb3/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@a-edp1:
- shard-skl: [PASS][44] -> [FAIL][45] ([i915#79])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-skl6/igt@kms_flip@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl1/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@a-dp1:
- shard-apl: [PASS][46] -> [DMESG-WARN][47] ([i915#180]) +1 similar issue
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-apl8/igt@kms_flip@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl3/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@c-dp1:
- shard-kbl: [PASS][48] -> [INCOMPLETE][49] ([i915#636])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-kbl3/igt@kms_flip@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-kbl2/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile:
- shard-snb: NOTRUN -> [SKIP][50] ([fdo#109271]) +369 similar issues
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-snb6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-onoff:
- shard-iclb: NOTRUN -> [SKIP][51] ([fdo#109280]) +4 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb1/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-spr-indfb-move:
- shard-glk: NOTRUN -> [SKIP][52] ([fdo#109271])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-glk9/igt@[email protected]
* igt@kms_hdr@bpc-switch-suspend:
- shard-skl: NOTRUN -> [FAIL][53] ([i915#1188])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl3/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- shard-apl: NOTRUN -> [SKIP][54] ([fdo#109271] / [i915#533]) +2 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-min:
- shard-skl: [PASS][55] -> [FAIL][56] ([fdo#108145] / [i915#265]) +1 similar issue
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-skl10/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl5/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-7efc:
- shard-apl: NOTRUN -> [FAIL][57] ([fdo#108145] / [i915#265]) +1 similar issue
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-transparent-fb:
- shard-apl: NOTRUN -> [FAIL][58] ([i915#265])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-min:
- shard-skl: NOTRUN -> [FAIL][59] ([fdo#108145] / [i915#265])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl3/igt@[email protected]
* igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping:
- shard-apl: NOTRUN -> [SKIP][60] ([fdo#109271] / [i915#2733])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl6/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping.html
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-4:
- shard-apl: NOTRUN -> [SKIP][61] ([fdo#109271] / [i915#658]) +4 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl1/igt@[email protected]
* igt@kms_psr2_su@frontbuffer:
- shard-iclb: [PASS][62] -> [SKIP][63] ([fdo#109642] / [fdo#111068] / [i915#658])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-iclb2/igt@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb3/igt@[email protected]
* igt@kms_psr@psr2_cursor_blt:
- shard-iclb: [PASS][64] -> [SKIP][65] ([fdo#109441]) +1 similar issue
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-iclb2/igt@kms_psr@psr2_cursor_blt.html
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb3/igt@kms_psr@psr2_cursor_blt.html
* igt@kms_sysfs_edid_timing:
- shard-apl: NOTRUN -> [FAIL][66] ([IGT#2])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl6/igt@kms_sysfs_edid_timing.html
* igt@kms_writeback@writeback-pixel-formats:
- shard-skl: NOTRUN -> [SKIP][67] ([fdo#109271] / [i915#2437]) +1 similar issue
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl2/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][68] ([fdo#109271] / [i915#2437])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl1/igt@[email protected]
* igt@perf@unprivileged-single-ctx-counters:
- shard-iclb: NOTRUN -> [SKIP][69] ([fdo#109289])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb3/igt@[email protected]
* igt@sysfs_clients@fair-1:
- shard-apl: NOTRUN -> [SKIP][70] ([fdo#109271] / [i915#2994]) +2 similar issues
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl6/igt@[email protected]
* igt@sysfs_clients@fair-7:
- shard-skl: NOTRUN -> [SKIP][71] ([fdo#109271] / [i915#2994]) +1 similar issue
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl3/igt@[email protected]
#### Possible fixes ####
* igt@fbdev@info:
- {shard-rkl}: [SKIP][72] ([i915#2582]) -> [PASS][73]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@[email protected]
* igt@gem_ctx_isolation@preservation-s3@vcs0:
- shard-kbl: [DMESG-WARN][74] ([i915#180]) -> [PASS][75] +2 similar issues
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-kbl7/igt@gem_ctx_isolation@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-kbl7/igt@gem_ctx_isolation@[email protected]
* igt@gem_eio@unwedge-stress:
- shard-tglb: [TIMEOUT][76] ([i915#2369] / [i915#3063] / [i915#3648]) -> [PASS][77]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-tglb5/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-tglb3/igt@[email protected]
- {shard-rkl}: [TIMEOUT][78] ([i915#3063]) -> [PASS][79]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- {shard-rkl}: [FAIL][80] ([i915#2846]) -> [PASS][81]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@[email protected]
- shard-glk: [FAIL][82] ([i915#2846]) -> [PASS][83]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-glk7/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-glk6/igt@[email protected]
* igt@gem_exec_fair@basic-none-vip@rcs0:
- shard-kbl: [FAIL][84] ([i915#2842]) -> [PASS][85]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-kbl4/igt@gem_exec_fair@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-kbl1/igt@gem_exec_fair@[email protected]
- shard-glk: [FAIL][86] ([i915#2842]) -> [PASS][87]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-glk4/igt@gem_exec_fair@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-glk5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-tglb: [FAIL][88] ([i915#2842]) -> [PASS][89] +1 similar issue
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-tglb1/igt@gem_exec_fair@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-tglb6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@rcs0:
- shard-kbl: [SKIP][90] ([fdo#109271]) -> [PASS][91]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-kbl6/igt@gem_exec_fair@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-kbl6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- {shard-rkl}: [FAIL][92] ([i915#2842]) -> [PASS][93] +1 similar issue
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-1/igt@gem_exec_fair@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-2/igt@gem_exec_fair@[email protected]
* igt@gem_mmap_gtt@cpuset-big-copy-xy:
- shard-iclb: [FAIL][94] ([i915#307]) -> [PASS][95]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-iclb5/igt@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb5/igt@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-skl: [DMESG-WARN][96] ([i915#1436] / [i915#716]) -> [PASS][97]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-skl2/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl6/igt@[email protected]
* igt@i915_pm_rpm@dpms-mode-unset-lpsp:
- {shard-rkl}: [SKIP][98] ([i915#1397]) -> [PASS][99]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@[email protected]
* igt@i915_pm_rpm@i2c:
- {shard-rkl}: [SKIP][100] ([fdo#109308]) -> [PASS][101]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@[email protected]
* igt@kms_big_fb@y-tiled-16bpp-rotate-0:
- {shard-rkl}: [SKIP][102] ([i915#3638]) -> [PASS][103] +2 similar issues
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-180-hflip:
- {shard-rkl}: [SKIP][104] ([i915#3721]) -> [PASS][105] +2 similar issues
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@[email protected]
* igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc:
- {shard-rkl}: [SKIP][106] ([i915#1845]) -> [PASS][107] +15 similar issues
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc.html
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_color@pipe-a-legacy-gamma-reset:
- {shard-rkl}: [SKIP][108] ([i915#1849] / [i915#4070]) -> [PASS][109] +7 similar issues
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@[email protected]
* igt@kms_color@pipe-b-ctm-0-25:
- {shard-rkl}: [SKIP][110] ([i915#1149] / [i915#1849] / [i915#4070]) -> [PASS][111] +2 similar issues
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-256x85-random:
- {shard-rkl}: [SKIP][112] ([fdo#112022] / [i915#4070]) -> [PASS][113] +4 similar issues
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-skl: [INCOMPLETE][114] ([i915#300]) -> [PASS][115]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-skl8/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl3/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-skl: [FAIL][116] ([i915#2346] / [i915#533]) -> [PASS][117]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-skl5/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl8/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_cursor_legacy@short-flip-before-cursor-atomic-transitions-varying-size:
- {shard-rkl}: [SKIP][118] ([fdo#111825] / [i915#4070]) -> [PASS][119] +3 similar issues
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@kms_cursor_legacy@short-flip-before-cursor-atomic-transitions-varying-size.html
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@kms_cursor_legacy@short-flip-before-cursor-atomic-transitions-varying-size.html
* igt@kms_draw_crc@draw-method-xrgb8888-pwrite-ytiled:
- {shard-rkl}: [SKIP][120] ([fdo#111314]) -> [PASS][121] +3 similar issues
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@[email protected]
* igt@kms_fbcon_fbt@psr-suspend:
- shard-skl: [INCOMPLETE][122] ([i915#198]) -> [PASS][123]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-skl6/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl2/igt@[email protected]
* igt@kms_flip@blocking-wf_vblank@c-edp1:
- shard-skl: [FAIL][124] ([i915#2122]) -> [PASS][125]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-skl1/igt@kms_flip@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl4/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@b-edp1:
- shard-skl: [FAIL][126] ([i915#79]) -> [PASS][127]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-skl6/igt@kms_flip@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl1/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@c-dp1:
- shard-apl: [DMESG-WARN][128] ([i915#180]) -> [PASS][129] +3 similar issues
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-apl8/igt@kms_flip@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-apl3/igt@kms_flip@[email protected]
* igt@kms_hdr@bpc-switch:
- shard-skl: [FAIL][130] ([i915#1188]) -> [PASS][131]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-skl10/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl5/igt@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-b:
- {shard-rkl}: [SKIP][132] ([i915#1849]) -> [PASS][133] +23 similar issues
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@[email protected]
* igt@kms_plane@pixel-format-source-clamping@pipe-b-planes:
- {shard-rkl}: [SKIP][134] ([i915#3558]) -> [PASS][135] +1 similar issue
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@kms_plane@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@kms_plane@[email protected]
* igt@kms_plane_multiple@atomic-pipe-a-tiling-none:
- {shard-rkl}: [SKIP][136] ([i915#1849] / [i915#3558] / [i915#4070]) -> [PASS][137]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@[email protected]
* igt@kms_psr@cursor_mmap_cpu:
- {shard-rkl}: [SKIP][138] ([i915#1072]) -> [PASS][139]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@kms_psr@cursor_mmap_cpu.html
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@kms_psr@cursor_mmap_cpu.html
* igt@kms_rmfb@close-fd:
- shard-skl: [DMESG-WARN][140] ([i915#1982]) -> [PASS][141]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-skl5/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl8/igt@[email protected]
* igt@perf@polling:
- {shard-rkl}: [FAIL][142] ([i915#1542]) -> [PASS][143]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-rkl-5/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-rkl-6/igt@[email protected]
* igt@syncobj_wait@wait-all-for-submit-snapshot:
- shard-skl: [FAIL][144] -> [PASS][145]
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-skl2/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-skl8/igt@[email protected]
#### Warnings ####
* igt@gem_exec_fair@basic-none-rrul@rcs0:
- shard-iclb: [FAIL][146] ([i915#2852]) -> [FAIL][147] ([i915#2842])
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10548/shard-iclb3/igt@gem_exec_fair@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/shard-iclb3/igt@gem_exec_fair@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20949/index.html