]> 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)
commit55c9b19c642190f8ee83a34262a2ba09075c1d81
tree4b8656076c92a7582722402169844de8e837d09e
parentc753f23508c9f8c5b8b0428a6740ef25baa22e4c
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: b5e2b281c3e3 ("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