On Friday, May 6, 2016 8:50:14 AM PDT Chris Wilson wrote: > From: Kenneth Graunke > > 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 > Reviewed-by: Chris Wilson # v1 > Signed-off-by: Chris Wilson > --- > drivers/gpu/drm/i915/i915_cmd_parser.c | 17 +++++++++++++++-- > 1 file changed, 15 insertions(+), 2 deletions(-) Oh, probably a good call to disallow OACONTROL. Looks good to me. Thanks for fixing this up, Chris :)