On 18/05/2026 10:29, Joonas Lahtinen wrote:
This reverts commit 5401b9adebc9e5f68df58226f51493ef0e6ceb4d.

Superseded by a13edf9b92fc ("drm/i915/gem: Drop check for changed
VM in EXECBUF").

If I was able to follow this accurately, I would probably simplify the commit along the lines of:

"""
Drop the else block which was made a no-op in commit
a13edf9b92fc ("drm/i915/gem: Drop check for changed VM in EXECBUF").
"""

You can edit while pushing too:

Reviewed-by: Tvrtko Ursulin <[email protected]>

Regards,

Tvrtko

Link: 
https://lore.kernel.org/intel-gfx/CAHk-=whfUM8y3PoFfT21+guKWK-mJmAE=8ulzot+7hgv5nt...@mail.gmail.com/
Cc: Linus Torvalds <[email protected]>
Cc: Ville Syrjälä <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Signed-off-by: Joonas Lahtinen <[email protected]>
---
  drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 --
  1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c 
b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
index 05997e8bbb29..1f303d4eaa4d 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
@@ -898,8 +898,6 @@ static struct i915_vma *eb_lookup_vma(struct 
i915_execbuffer *eb, u32 handle)
                vma = radix_tree_lookup(&eb->gem_context->handles_vma, handle);
                if (likely(vma))
                        vma = i915_vma_tryget(vma);
-               else
-                       vma = NULL;
                rcu_read_unlock();
                if (likely(vma))
                        return vma;

Reply via email to