]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/a6xx: Zap counters across context switch
authorRob Clark <robdclark@chromium.org>
Fri, 4 Mar 2022 00:52:17 +0000 (16:52 -0800)
committerRob Clark <robdclark@chromium.org>
Fri, 4 Mar 2022 19:59:31 +0000 (11:59 -0800)
commitdf46d160ec122ebb41b5fdf4238222e7d469a631
tree299f41e772b7f30b5b3ace8293ee8e5fa25edaf7
parent401c856ff2012def50b25d4d53376ca7601b7a23
drm/msm/a6xx: Zap counters across context switch

Any app controlled perfcntr collection (GL_AMD_performance_monitor, etc)
does not require counters to maintain state across context switches.  So
clear them if systemwide profiling is not active.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20220304005317.776110-5-robdclark@gmail.com
drivers/gpu/drm/msm/adreno/a6xx_gpu.c