]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Be paranoid and post the writes to stop the rings
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Feb 2018 07:28:00 +0000 (07:28 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Feb 2018 13:43:14 +0000 (13:43 +0000)
commitee29e2176ba738b11c2dd00540f366138fd0a1e0
treee9756a536bba72c68bffb8b8fb4d51faa8f72802
parent3bd17cf778116eb62da24f3dd416fd2d6c21e0ee
drm/i915: Be paranoid and post the writes to stop the rings

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 <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180208072800.595-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
drivers/gpu/drm/i915/intel_uncore.c