From: Brad Volkin Date: Fri, 28 Mar 2014 17:21:50 +0000 (-0700) Subject: drm/i915: Track OACONTROL register enable/disable during parsing X-Git-Tag: omap-for-v3.16/fixes-against-rc1~44^2~63^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e66ea137ff5bd292ed734c53f569892068a7a70;p=pandora-kernel.git drm/i915: Track OACONTROL register enable/disable during parsing There is some thought that the data from the performance counters enabled via OACONTROL should only be available to the process that enabled counting. To limit snooping, require that any batch buffer which sets OACONTROL to a non-zero value also sets it back to 0 before the end of the batch. This requires limiting OACONTROL writes to happen via MI_LOAD_REGISTER_IMM so that we can access the value being written. This should be in line with the expected use case for writing OACONTROL. v2: Drop an unnecessary '? true : false' Cc: Kenneth Graunke Signed-off-by: Brad Volkin Reviewed-by: Kenneth Graunke Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed