]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Flush the PTEs after updating them before suspend
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 25 Sep 2014 09:13:12 +0000 (10:13 +0100)
committerJani Nikula <jani.nikula@intel.com>
Mon, 29 Sep 2014 13:41:17 +0000 (16:41 +0300)
commitc5798653d5002eb4f7be1bb2ab3f18d029a02163
tree5dd74120a1f85fbb9eb74e82bed0a409d1070209
parent6db42dbacd438e9b3f81bce794b95c097019e378
drm/i915: Flush the PTEs after updating them before suspend

As we use WC updates of the PTE, we are responsible for notifying the
hardware when to flush its TLBs. Do so after we zap all the PTEs before
suspend (and the BIOS tries to read our GTT).

Fixes a regression from

commit a23ce92cd2500a1ae0fc373c7a4841141d83c428
Author: Ben Widawsky <benjamin.widawsky@intel.com>
Date:   Wed Oct 16 09:21:30 2013 -0700

    drm/i915: Disable GGTT PTEs on GEN6+ suspend

that survived and continue to cause harm even after

commit db8204257111ee1e43d1a75a4dcfe40e39652c47
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Wed Mar 26 20:08:20 2014 +0100

    drm/i915: Undo gtt scratch pte unmapping again

v2: Trivial rebase.
v3: Fixes requires pointer dances.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82340
Tested-by: ming.yao@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@vger.kernel.org
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Todd Previte <tprevite@gmail.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_gem_gtt.c