]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/perf: Allow non-privileged access when OA buffer is not sampled
authorUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Fri, 6 Dec 2019 19:43:38 +0000 (11:43 -0800)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 9 Dec 2019 13:38:16 +0000 (15:38 +0200)
commit654a52c4c768edbb07eb54fa905d7533d4c26b65
tree05065a8727d55df65c74572eb33097a86a8426e8
parent8004c60ad557920218aac77b5304f9d19f7157ae
drm/i915/perf: Allow non-privileged access when OA buffer is not sampled

SAMPLE_OA_REPORT enables sampling of OA reports from the OA buffer.
Since reports from OA buffer had system wide visibility, collecting
samples from the OA buffer was a privileged operation on previous
platforms. Prior to TGL, it was also necessary to sample the OA buffer
to normalize reports from MI REPORT PERF COUNT.

TGL has a dedicated OAR unit to sample perf reports for a specific
render context. This removes the necessity to sample OA buffer.

- If not sampling the OA buffer, allow non-privileged access. An earlier
  patch allows the non-privilege access:
  https://patchwork.freedesktop.org/patch/337716/?series=68582&rev=1
- Clear up the path for non-privileged access in this patch

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Fixes: c9202ec0380d ("drm/i915/tgl: Add perf support on TGL")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191206194339.31356-1-umesh.nerlige.ramappa@intel.com
drivers/gpu/drm/i915/i915_perf.c