]> 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)
commita639b0c15065df930467695b76ef38d5edaed049
tree7e1119c6b71e44e0e2b32ff286ce1d502a82377f
parent500f9ac3025107a84e0c00d960a6c852efde83cc
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: 00a7f0d7155c ("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