Skip to content

Commit e4840d5

Browse files
committed
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: 4f776f4 ("drm/msm/gpu: Convert the GPU show function to use the GPU state") Signed-off-by: Rob Clark <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Clark <[email protected]>
1 parent d03fcc1 commit e4840d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/msm/msm_debugfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ static int msm_gpu_open(struct inode *inode, struct file *file)
7777
goto free_priv;
7878

7979
pm_runtime_get_sync(&gpu->pdev->dev);
80+
msm_gpu_hw_init(gpu);
8081
show_priv->state = gpu->funcs->gpu_state_get(gpu);
8182
pm_runtime_put_sync(&gpu->pdev->dev);
8283

0 commit comments

Comments
 (0)