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)
commit6761d0a184efe5a735dfcd9c9f7ac08b2d44d657
tree1fc6230f33b1a2fdc5772a925f0e04615e735204
parent2a55135c67e8eedea232f2c595698235a9ff92d4
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