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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:32 +0000 (08:34 +0100)
commit92af2d3b57a1afdfdcafb1c6a07ffd89cf3e98fb
treeb6b462a3adb15ca6f9530d4ed146af76211651f8
parentdf675d4cf0e3d2afdfa4ca7e5c4fe682014ed2d9
drm/amdkfd: Add sync after creating vram bo

[ Upstream commit ba029e9991d9be90a28b6a0ceb25e9a6fb348829 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c