]> 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)
commit3651aaafd8677cd2851cf82d9946412e5060442c
tree7e1119c6b71e44e0e2b32ff286ce1d502a82377f
parent44d7c951481bf5187eedbca08b06768fef404bf3
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: 334012b3f6d7 ("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