drm/msm/a6xx: Ensure clean GMU state in a6xx_gmu_fw_start
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Tue, 20 Jun 2023 11:10:39 +0000 (13:10 +0200)
committerRob Clark <robdclark@chromium.org>
Mon, 7 Aug 2023 21:32:10 +0000 (14:32 -0700)
commit5e46ad83db102ce36ec4d47a62e115b7ac812311
tree5b98b4ae0184da743fdaa82c8b131aaae37a5612
parent29af7605453797b9b58c3369314bd5710f5ea2ba
drm/msm/a6xx: Ensure clean GMU state in a6xx_gmu_fw_start

While it's not very well understood, there is some sort of a fault
handler implemented in the GMU firmware which triggers when a certain
bit is set, resulting in the M3 core not booting up the way we expect
it to.

Write a magic value to a magic register to hopefully prevent that
from happening.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/543335/
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a6xx_gmu.c