OSDN Git Service

drm/amdkfd: Add sync after creating vram bo
authorEric Huang <jinhuieric.huang@amd.com>
Mon, 9 Jan 2023 19:16:42 +0000 (14:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jan 2023 23:09:53 +0000 (18:09 -0500)
commitba029e9991d9be90a28b6a0ceb25e9a6fb348829
tree33f76b8078e09bd4ef064bf8d10e9070839a4fe9
parent99f1a36c90a7524972be5a028424c57fa17753ee
drm/amdkfd: Add sync after creating vram bo

There will be data corruption on vram allocated by svm
if the initialization is not complete and application is
writting on the memory. Adding sync to wait for the
initialization completion is to resolve this issue.

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c