]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Allow MI_LOAD_REGISTER_REG between whitelisted registers.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 6 May 2016 07:50:14 +0000 (08:50 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 May 2016 07:30:48 +0000 (08:30 +0100)
commit29f0811fdd361a99dc10446da91b4111cc857d68
tree1fc6230f33b1a2fdc5772a925f0e04615e735204
parentd76ca5c5f33e861e17bddacccdd93804dc77c634
drm/i915: Allow MI_LOAD_REGISTER_REG between whitelisted registers.

Allowing register copies where the source and destination are both
whitelisted should be safe, and is useful.  For example, Mesa uses
this to load the command streamer math registers with data from the
pipeline statistics counters.

v2: Reject writes to OACONTROL (and reads as well :(

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> # v1
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1462521014-13595-1-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_cmd_parser.c