diff options
author | Rob Clark <robdclark@chromium.org> | 2023-03-20 07:43:35 -0700 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2023-03-25 16:31:45 -0700 |
commit | 8ead9678316376ee1dd05ffddfa6a620047b1d4f (patch) | |
tree | 76e091b3f59128c6129219cf0888ebd77d4b3c0b /drivers/gpu/drm/msm/msm_gpu.h | |
parent | 624831b3fa3b4f7bbcf526d1b8a125add432d04f (diff) | |
download | lwn-8ead9678316376ee1dd05ffddfa6a620047b1d4f.tar.gz lwn-8ead9678316376ee1dd05ffddfa6a620047b1d4f.zip |
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
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gpu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.h b/drivers/gpu/drm/msm/msm_gpu.h index 84c616b1ebc0..7a4fa1b8655b 100644 --- a/drivers/gpu/drm/msm/msm_gpu.h +++ b/drivers/gpu/drm/msm/msm_gpu.h @@ -49,6 +49,12 @@ struct msm_gpu_funcs { int (*set_param)(struct msm_gpu *gpu, struct msm_file_private *ctx, uint32_t param, uint64_t value, uint32_t len); int (*hw_init)(struct msm_gpu *gpu); + + /** + * @ucode_load: Optional hook to upload fw to GEM objs + */ + int (*ucode_load)(struct msm_gpu *gpu); + int (*pm_suspend)(struct msm_gpu *gpu); int (*pm_resume)(struct msm_gpu *gpu); void (*submit)(struct msm_gpu *gpu, struct msm_gem_submit *submit); |