OSDN Git Service

drm/msm/a6xx: Skip crashdumper state if GPU needs_hw_init
authorRob Clark <robdclark@chromium.org>
Thu, 9 Dec 2021 19:31:13 +0000 (11:31 -0800)
committerRob Clark <robdclark@chromium.org>
Mon, 13 Dec 2021 21:46:18 +0000 (13:46 -0800)
commit08c4aa3ee26445ae0d027c1e1944e1202687b024
treefdf4a63c7a868c3481557e6a4c3a566a9747c774
parentf61550b3864b9578527c28cf9c465316ac1566e1
drm/msm/a6xx: Skip crashdumper state if GPU needs_hw_init

I am seeing some crash logs which imply that we are trying to use
crashdumper hw to read back GPU state when the GPU isn't initialized.
This doesn't go well (for example, GPU could be in 32b address mode
and ignoring the upper bits of buffer that it is trying to dump state
to).

I'm not *quite* sure how we get into this state in the first place,
but lets not make a bad situation worse by triggering iova fault
crashes.

While we're at it, also add the information about whether the GPU is
initialized to the devcore dump to make this easier to see in the
logs (which makes the WARN_ON() redundant and even harmful because
it fills up the small bit of dmesg we get with the crash report).

Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20211209193118.1163248-1-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c
drivers/gpu/drm/msm/adreno/adreno_gpu.c