projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb56a07
)
drm/i915/gt: Clear the execlists timers upon reset
author
Chris Wilson
<chris@chris-wilson.co.uk>
Fri, 4 Dec 2020 15:12:34 +0000
(15:12 +0000)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Fri, 4 Dec 2020 15:41:33 +0000
(15:41 +0000)
Across a reset, we stop the engine but not the timers. This leaves a
window where the timers have inconsistent state with the engine, but
should only result in a spurious timeout. As we cancel the outstanding
events, also cancel their timers.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20201204151234.19729-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/gt/intel_lrc.c
b/drivers/gpu/drm/i915/gt/intel_lrc.c
index 7f25894e41d59f1c44f4bf93a901c743e2494cde..0c7f1e3dee5ca528ce94f2358a0bda94f1b4514e 100644
(file)
--- a/
drivers/gpu/drm/i915/gt/intel_lrc.c
+++ b/
drivers/gpu/drm/i915/gt/intel_lrc.c
@@
-2450,6
+2450,11
@@
cancel_port_requests(struct intel_engine_execlists * const execlists)
smp_wmb(); /* complete the seqlock for execlists_active() */
WRITE_ONCE(execlists->active, execlists->inflight);
+
+ /* Having cancelled all outstanding process_csb(), stop their timers */
+ GEM_BUG_ON(execlists->pending[0]);
+ cancel_timer(&execlists->timer);
+ cancel_timer(&execlists->preempt);
}
static inline void