]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfc0dc1f2aaeb6b3532df0a3d794dfa84691f3ed1
treeb6b462a3adb15ca6f9530d4ed146af76211651f8
parentd089ded7b7a977130daff0bbd912db2877abdd2e
drm/amdkfd: Add sync after creating vram bo

[ Upstream commit 76be8d10b5da69965baf8071a1159e562976564f ]

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