drm/msm/gpu: Move BO allocation out of hw_init
authorRob Clark <robdclark@chromium.org>
Mon, 20 Mar 2023 14:43:35 +0000 (07:43 -0700)
committerRob Clark <robdclark@chromium.org>
Sat, 25 Mar 2023 23:31:45 +0000 (16:31 -0700)
commit8ead9678316376ee1dd05ffddfa6a620047b1d4f
tree76e091b3f59128c6129219cf0888ebd77d4b3c0b
parent624831b3fa3b4f7bbcf526d1b8a125add432d04f
drm/msm/gpu: Move BO allocation out of hw_init

These allocations are only done the first (successful) time through
hw_init() so they won't actually happen in the job_run() path.  But
lockdep doesn't know this.  So dis-entangle them from the hw_init()
path.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/527852/
Link: https://lore.kernel.org/r/20230320144356.803762-14-robdclark@gmail.com
drivers/gpu/drm/msm/adreno/a5xx_gpu.c
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
drivers/gpu/drm/msm/adreno/adreno_device.c
drivers/gpu/drm/msm/msm_gpu.h