drm/i915/gtt: Trust the uncached store to flush wcb
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Tue, 8 May 2018 12:41:54 +0000 (15:41 +0300)
committerMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 11 May 2018 12:52:21 +0000 (15:52 +0300)
commitca6acc25250a1dc101c5a541b4f58bcc1dd65de5
tree5ea00e7451e98bc76727396ac843610d33d1d6b0
parent429204f1059909245d8f73b66aa729c6c2807cae
drm/i915/gtt: Trust the uncached store to flush wcb

Not all architectures guarantee that uncached read will
flush the write combining buffer. So marking it explicitly
is recommended [1].

However we know the architecture we are operating on
and can avoid wmb as the UC store will flush the wcb [2].

Omit the wmb() before invalidate as redudant.

v2: squash combining and removal (Chris)
v3: remove obsolete comments about posting reads (Chris)

References: http://yarchive.net/comp/linux/write_combining.html [1]
References: http://download.intel.com/design/PentiumII/applnots/24442201.pdf [2]
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180508124154.14586-1-mika.kuoppala@linux.intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c