drm/amdgpu: miss PRT case when bo update
authorYintian Tao <yttao@amd.com>
Mon, 16 Mar 2020 07:45:58 +0000 (15:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Mar 2020 04:03:04 +0000 (00:03 -0400)
commit31d0271d450f307f862d47d459f3ddf5b9c9e876
treeaf01a075323750a39ec09899e95c10a2e1fed85d
parent7287a6757825de78799731480ecccbc7c85cf45b
drm/amdgpu: miss PRT case when bo update

Originally, only the PTE valid is taken in consider.
The PRT case is missied when bo update which raise problem.
We need add condition for PRT case.

v2: add PRT condition for amdgpu_vm_bo_update_mapping, too
v3: fix one typo error

Signed-off-by: Yintian Tao <yttao@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