summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
diff options
context:
space:
mode:
authorJack Xiao <Jack.Xiao@amd.com>2022-02-25 17:46:25 +0800
committerAlex Deucher <alexander.deucher@amd.com>2022-05-04 10:43:53 -0400
commit7c18b40e220a6213f3e63e89b761ef3ba056815e (patch)
tree48811e10091adc6ce1ae2693d0665a60ef316dcf /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
parent2131733594946fc789e7b216b5aa6446d476a4f1 (diff)
downloadlinux-7c18b40e220a6213f3e63e89b761ef3ba056815e.tar.gz
linux-7c18b40e220a6213f3e63e89b761ef3ba056815e.tar.bz2
linux-7c18b40e220a6213f3e63e89b761ef3ba056815e.zip
drm/amdgpu/mes: fix vm csa update issue
Need reserve VM buffers before update VM csa. v2: rebase fixes 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
index ad593e32255e..781b57c30725 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
@@ -265,6 +265,9 @@ void amdgpu_mes_remove_ring(struct amdgpu_device *adev,
int amdgpu_mes_ctx_alloc_meta_data(struct amdgpu_device *adev,
struct amdgpu_mes_ctx_data *ctx_data);
void amdgpu_mes_ctx_free_meta_data(struct amdgpu_mes_ctx_data *ctx_data);
+int amdgpu_mes_ctx_map_meta_data(struct amdgpu_device *adev,
+ struct amdgpu_vm *vm,
+ struct amdgpu_mes_ctx_data *ctx_data);
int amdgpu_mes_self_test(struct amdgpu_device *adev);