]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Fix race of GPU init vs timestamp power management.
authorEric Anholt <eric@anholt.net>
Thu, 28 Jan 2021 21:03:30 +0000 (13:03 -0800)
committerRob Clark <robdclark@chromium.org>
Sun, 31 Jan 2021 19:34:36 +0000 (11:34 -0800)
commiteb31c8ea9a77239a0e853acada4dd5f66f81e705
tree9dd3e1b7758d83c0f6fefa13d9b8ccc7be7352fa
parentf5cfada0dda1b21b7e06d3e0cb1ba8f38d86f936
drm/msm: Fix race of GPU init vs timestamp power management.

We were using the same force-poweron bit in the two codepaths, so they
could race to have one of them lose GPU power early.

freedreno CI was seeing intermittent errors like:
[drm:_a6xx_gmu_set_oob] *ERROR* Timeout waiting for GMU OOB set GPU_SET: 0x0
and this issue could have contributed to it.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 7639a2c539ea ("drm/msm: Add A6XX device support")
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a6xx_gmu.c
drivers/gpu/drm/msm/adreno/a6xx_gmu.h
drivers/gpu/drm/msm/adreno/a6xx_gpu.c