]> git.baikalelectronics.ru Git - 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)
committerRob Clark <robdclark@chromium.org>
Mon, 22 Nov 2021 18:45:55 +0000 (10:45 -0800)
commita8e7866f7ae7863755f5d6b8e8cad5fe3599b14c
tree834fa815961d42e39c3339cb6fe6eb2771e06963
parent415e12f5b20bb7fa0ef081d08c83a301a1c97e26
drm/msm: Do hw_init() before capturing GPU state

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: fadfd3b4f5cb ("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>
drivers/gpu/drm/msm/msm_debugfs.c