]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: use ORIGIN_CPU for frontbuffer invalidation on WC mmaps
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Jun 2016 17:46:39 +0000 (14:46 -0300)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Mon, 20 Jun 2016 20:47:36 +0000 (17:47 -0300)
commitaeecc9696aa04a82d629e7276134bd54b2afc9e2
treefd2282c63c2f0b011f505a84a509d01c94e89969
parent80788a0fbbdfbb125e3fd45a640cddb582160bc7
drm/i915: use ORIGIN_CPU for frontbuffer invalidation on WC mmaps

... instead of the previous ORIGIN_GTT. This should actually
invalidate FBC once something is written on the frontbuffer using WC
mmaps. The problem with ORIGIN_GTT is that the automatic hardware
tracking is not able to detect the WC writes as it can detect the GTT
writes.

This should help fix the SKL bug where nothing happens when you type
your username/password on lightdm.

This patch was originally pasted on an email by Chris and converted to
an actual git patch by Paulo.

v2 (from Paulo):
 - Make it a full variable instead of a bit-field (Daniel)
 - Use WRITE_ONCE (Chris)
v3 (from Paulo):
 - Remove huge comment since now we have WRITE_ONCE (Chris)
 - Remove uneeded new line (Chris)
 - Add Chris' Signed-off-by, authorized via IRC

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1466185599-26401-1-git-send-email-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c