]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit90ca78deb004abe75b5024968a199acb96bb70f9
tree4b8656076c92a7582722402169844de8e837d09e
parentcdaae8371aa9d4ea1648a299b1a75946b9556944
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: 108b4d928c03 ("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