projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d73e7a
)
drm/i915: Be paranoid and post the writes to stop the rings
author
Chris Wilson
<
[email protected]
>
Thu, 8 Feb 2018 07:28:00 +0000
(07:28 +0000)
committer
Chris Wilson
<
[email protected]
>
Thu, 8 Feb 2018 13:43:14 +0000
(13:43 +0000)
Although the mmio are uncached and so should be flushed on every write,
be paranoid and do a mmio read after setting the ring head/tail to be
sure they have taken effect before moving on.
v2: post tail to be pleasing to the eye
Signed-off-by: Chris Wilson <
[email protected]
>
Cc: Mika Kuoppala <
[email protected]
>
Cc: Joonas Lahtinen <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Mika Kuoppala <
[email protected]
>
drivers/gpu/drm/i915/intel_uncore.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_uncore.c
b/drivers/gpu/drm/i915/intel_uncore.c
index 4075010ac088f98eefeeae4eae989380c4e3e614..db441bf3b9d571432c85d204bd60dfd7551b225c 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_uncore.c
+++ b/
drivers/gpu/drm/i915/intel_uncore.c
@@
-1522,9
+1522,11
@@
static void gen3_stop_engine(struct intel_engine_cs *engine)
engine->name);
I915_WRITE_FW(RING_HEAD(base), I915_READ_FW(RING_TAIL(base)));
+ POSTING_READ_FW(RING_HEAD(base)); /* paranoia */
I915_WRITE_FW(RING_HEAD(base), 0);
I915_WRITE_FW(RING_TAIL(base), 0);
+ POSTING_READ_FW(RING_TAIL(base));
/* The ring must be empty before it is disabled */
I915_WRITE_FW(RING_CTL(base), 0);