]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit57c0bd517c06b088106b0236ed604056c8e06da5
tree39670486dcc2a75dd558af85f753a902605232cd
parent32d3e0feccfe2d07e73aaa322766ab04b3c9d594
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