drm/amdgpu/mes: add mes kiq callback
authorJack Xiao <Jack.Xiao@amd.com>
Mon, 11 Apr 2022 20:32:58 +0000 (16:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 14:43:50 +0000 (10:43 -0400)
Needed to properly initialize mes kiq.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h

index 111c2cf..35a6bb2 100644 (file)
@@ -110,6 +110,9 @@ struct amdgpu_mes {
        uint64_t                        query_status_fence_gpu_addr;
        uint64_t                        *query_status_fence_ptr;
 
+       /* initialize kiq pipe */
+       int                             (*kiq_hw_init)(struct amdgpu_device *adev);
+
        /* ip specific functions */
        const struct amdgpu_mes_funcs   *funcs;
 };
@@ -205,4 +208,6 @@ struct amdgpu_mes_funcs {
                           struct mes_resume_gang_input *input);
 };
 
+#define amdgpu_mes_kiq_hw_init(adev) (adev)->mes.kiq_hw_init((adev))
+
 #endif /* __AMDGPU_MES_H__ */