Skip to contentSkip to conversation

drm/i915/gt: Remove errant assertion in __intel_context_do_pin

PATCH In review Chris Wilson 3 participants 3 messages May 20, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915/gt: Remove errant assertion in __intel_context_do_pin

This assertion was removed in b412c63f1cba ("drm/i915/gt: Report context-is-closed prior to pinning"), but accidentally restored by a cherry-pick into drm-next and now has percolated back to drm-intel-next-queued.

Fixes 2e46a2a0b014 ("drm/i915: Use explicit flag to mark unreachable intel_context")
Fixes 2b703bbda271 ("Merge drm/drm-next into drm-intel-next-queued")
Cc Rodrigo Vivi <[email protected]>
Cc Joonas Lahtinen <[email protected]>
---
 drivers/gpu/drm/i915/gt/intel_context.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/i915/gt/intel_context.c +0 -2
index 74ddb49b2941..e4aece20bc80 100644
@@ -97,8 +97,6 @@ int __intel_context_do_pin(struct intel_context *ce)
 {
 	int err;
 
-	GEM_BUG_ON(intel_context_is_closed(ce));
-
 	if (unlikely(!test_bit(CONTEXT_ALLOC_BIT, &ce->flags))) {
 		err = intel_context_alloc_state(ce);
 		if (err)
Signature · 6 lines
2.27.0.rc0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/gt: Remove errant assertion in __intel_context_do_pin

== Series Details ==

== Series Details ==

Series: drm/i915/gt: Remove errant assertion in __intel_context_do_pin
URL : https://patchwork.freedesktop.org/series/77448/
State : failure

== Summary ==

Applying: drm/i915/gt: Remove errant assertion in __intel_context_do_pin Using index info to reconstruct a base tree...
M drivers/gpu/drm/i915/gt/intel_context.c
Falling back to patching base and 3-way merge...
No changes -- Patch already applied.

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Chris Wilson

Quoting Chris Wilson (2020-05-20 10:30:48)

Quoted 10 lines

This assertion was removed in b412c63f1cba ("drm/i915/gt: Report context-is-closed prior to pinning"), but accidentally restored by a cherry-pick into drm-next and now has percolated back to drm-intel-next-queued.

Fixes 2e46a2a0b014 ("drm/i915: Use explicit flag to mark unreachable intel_context")
Fixes 2b703bbda271 ("Merge drm/drm-next into drm-intel-next-queued")
Cc Rodrigo Vivi <[email protected]>
Cc Joonas Lahtinen <[email protected]>

Regards, Joonas

Quoted 20 lines
---
 drivers/gpu/drm/i915/gt/intel_context.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/i915/gt/intel_context.c +0 -2
index 74ddb49b2941..e4aece20bc80 100644
@@ -97,8 +97,6 @@ int __intel_context_do_pin(struct intel_context *ce)
 {
        int err;
 
-       GEM_BUG_ON(intel_context_is_closed(ce));
-
        if (unlikely(!test_bit(CONTEXT_ALLOC_BIT, &ce->flags))) {
                err = intel_context_alloc_state(ce);
                if (err)
Signature · 1 line
2.27.0.rc0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx