]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/msm: Do hw_init() before capturing GPU state
authorRob Clark <robdclark@chromium.org>
Mon, 8 Nov 2021 18:01:22 +0000 (10:01 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 3 Feb 2022 17:57:31 +0000 (18:57 +0100)
commit8cbec1df7ee51d6b3191daf2315c1c94b9ad9976
treea0e9d242c3f7e37c8ba0cc0ea14f97564d8d244a
parent1d498faf790f408b76d2b7592404b1dd417ba6c9
drm/msm: Do hw_init() before capturing GPU state

BugLink: https://bugs.launchpad.net/bugs/1956381
commit e4840d537c2c6b1189d4de16ee0f4820e069dcea upstream.

In particular, we need to ensure all the necessary blocks are switched
to 64b mode (a5xx+) otherwise the high bits of the address of the BO to
snapshot state into will be ignored, resulting in:

  *** gpu fault: ttbr0=0000000000000000 iova=0000000000012000 dir=READ type=TRANSLATION source=CP (0,0,0,0)
  platform 506a000.gmu: [drm:a6xx_gmu_set_oob] *ERROR* Timeout waiting for GMU OOB set BOOT_SLUMBER: 0x0

Fixes: 4f776f4511c7 ("drm/msm/gpu: Convert the GPU show function to use the GPU state")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20211108180122.487859-1-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/msm/msm_debugfs.c