summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-07 13:09:25 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-07 13:10:16 +0000
commit68cef6cd281572fcfb76a341dc45b7c8e5baffe6 (patch)
tree2a0f03bd6b5310a123e03baf7a99a62c44babf5a
parentb796c33411218aeaf4daaeff41a1bc442b5f945f (diff)
sna/gen7: Request secure batches for Haswell vsync
Since commit 8ff8eb2b38dc705f5c86f524c1cd74a811a7b04c Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Mon Sep 9 16:23:04 2013 +0100 sna/hsw: Scanline waits require both DERRMR and forcewake we have been emitting LRI to enable vsync on the render ring. This requires a privileged batch buffer, and whilst we were checking for kernel support, we forgot to actually tell the kernel to submit the batch with the right privileges. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71328 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_display.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index eb30dfa7..889019c8 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -3692,6 +3692,7 @@ static bool sna_emit_wait_for_scanline_hsw(struct sna *sna,
b[15] = 0x44050; /* DERRMR */
b[16] = ~0;
+ sna->kgem.batch_flags |= I915_EXEC_SECURE;
return true;
}