]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Sync with VM root BO when switching VM to CPU update mode
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 20 May 2020 01:02:45 +0000 (21:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 May 2020 17:42:13 +0000 (13:42 -0400)
commit635e249dd3978368a115510ce61d2bf8646794c9
tree4b8656076c92a7582722402169844de8e837d09e
parent8d8a33ba1a4e13a7fb57d748d84f6b9b77f57f92
drm/amdgpu: Sync with VM root BO when switching VM to CPU update mode

This fixes an intermittent bug where a root PD clear operation still in
progress could overwrite a PDE update done by the CPU, resulting in a
VM fault.

Fixes: d397ea96e736 ("drm/amd/amdgpu: Update VM function pointer")
Reported-by: Jay Cornwall <Jay.Cornwall@amd.com>
Tested-by: Jay Cornwall <Jay.Cornwall@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c