]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Always wake the device to flush the GTT
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Aug 2017 19:25:46 +0000 (20:25 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 30 Aug 2017 08:10:35 +0000 (09:10 +0100)
commit9909df3bc510b977cbaa67d4a3babd58a199f4e7
treec5acdb4df7959a251ae8e3a7cc654f0f42337bf9
parent0074f3b8f64a73b6c8a8eb2c75f22378a6ff4bde
drm/i915: Always wake the device to flush the GTT

Since we hold the device wakeref when writing through the GTT (otherwise
the writes would fail), we presumed that before the device sleeps those
writes would naturally be flushed and that we wouldn't need our mmio
read trick. However, that presumption seems false and a sleepy bxt seems
to require us to always manually flush the GTT writes prior to direct
access.

Fixes: fa5579c57cee ("drm/i915: Check we have an wake device before flushing GTT writes")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170829192546.1087-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c