We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eafc2aa commit 8ea6bb8Copy full SHA for 8ea6bb8
drivers/gpu/drm/i915/gt/intel_timeline.c
@@ -192,11 +192,15 @@ static void cacheline_release(struct intel_timeline_cacheline *cl)
192
193
static void cacheline_free(struct intel_timeline_cacheline *cl)
194
{
195
+ if (!i915_active_acquire_if_busy(&cl->active)) {
196
+ __idle_cacheline_free(cl);
197
+ return;
198
+ }
199
+
200
GEM_BUG_ON(ptr_test_bit(cl->vaddr, CACHELINE_FREE));
201
cl->vaddr = ptr_set_bit(cl->vaddr, CACHELINE_FREE);
202
- if (i915_active_is_idle(&cl->active))
- __idle_cacheline_free(cl);
203
+ i915_active_release(&cl->active);
204
}
205
206
int intel_timeline_init(struct intel_timeline *timeline,
0 commit comments