]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: add VM update fences back to the root PD v2
authorChristian König <christian.koenig@amd.com>
Wed, 19 Feb 2020 14:15:22 +0000 (15:15 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Feb 2020 19:17:33 +0000 (14:17 -0500)
commita598cd2e775cd583584a10f51f004d91457cc29d
treea16ce5a8cdfbe1373d3d5c7e83494c222b9a9428
parentf118f921f4020c879c44d7a2f77a233efe19bcff
drm/amdgpu: add VM update fences back to the root PD v2

Add update fences to the root PD while mapping BOs.

Otherwise PDs freed during the mapping won't wait for
updates to finish and can cause corruptions.

v2: rebased on drm-misc-next

Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: 459ca02cfe43e drm/amdgpu: stop adding VM updates fences to the resv obj
Reviewed-by: xinhui pan <xinhui.pan@amd.com>
Tested-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c