]> 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)
commit041d70c03c40871ed27761991fc12ab11626a825
tree1fc6230f33b1a2fdc5772a925f0e04615e735204
parentf6dfedcc3a8755c1830126191f8acb5ce4b744c1
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