summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
diff options
context:
space:
mode:
authorJack Xiao <Jack.Xiao@amd.com>2022-04-11 23:32:58 +0300
committerAlex Deucher <alexander.deucher@amd.com>2022-05-04 17:43:50 +0300
commitcf064b458976e13288400927d8de2f875f2f89cc (patch)
tree885bfc8a3bee9bedc72ed3fb8dd8a77c1a982fde /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
parentc1248e11247bb16a630e139d5f55bea69c1fc1ee (diff)
downloadlinux-cf064b458976e13288400927d8de2f875f2f89cc.tar.xz
drm/amdgpu/mes: add mes kiq callback
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
index 111c2cfb2da0..35a6bb2b4be8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
@@ -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__ */