]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/perf: Invalidate OA TLB on when closing perf stream
authorUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Mon, 9 Mar 2020 21:10:57 +0000 (14:10 -0700)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 17 Mar 2020 22:30:52 +0000 (00:30 +0200)
commit858a99fa0fc9a97caf48ee5338f63a4887051ca2
tree7e1119c6b71e44e0e2b32ff286ce1d502a82377f
parent259f67dac798026aea383f5a1440e1f4aff64df7
drm/i915/perf: Invalidate OA TLB on when closing perf stream

On running several back to back perf capture sessions involving closing
and opening the perf stream, invalid OA reports are seen in the
beginning of the OA buffer in some sessions. Fix this by invalidating OA
TLB when the perf stream is closed or disabled on gen12.

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