]> git.baikalelectronics.ru Git - kernel.git/commit
drm: msm: a6xx: fix gpu failure after system resume
authorAkhil P Oommen <akhilpo@codeaurora.org>
Fri, 17 Jul 2020 14:34:18 +0000 (20:04 +0530)
committerRob Clark <robdclark@chromium.org>
Fri, 31 Jul 2020 13:46:15 +0000 (06:46 -0700)
commitcb32f6a28e6ef86d0c5a322942e56dc8eff84054
tree39670486dcc2a75dd558af85f753a902605232cd
parent5c0ae6b951b2177354140130163e15417d824f93
drm: msm: a6xx: fix gpu failure after system resume

On targets where GMU is available, GMU takes over the ownership of GX GDSC
during its initialization. So, move the refcount-get on GX PD before we
initialize the GMU. This ensures that nobody can collapse the GX GDSC
once GMU owns the GX GDSC. This patch fixes some GMU OOB errors seen
during GPU wake up during a system resume.

Reported-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Akhil P Oommen <akhilpo@codeaurora.org>
Tested-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a6xx_gmu.c