]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/amdgpu: invalidate parent bo when shadow bo was invalidated
authorChunming Zhou <david1.zhou@amd.com>
Tue, 24 Apr 2018 05:54:10 +0000 (13:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:44:20 +0000 (13:44 -0500)
commit4bebcceededa794a26827d40ab52555c2ec37deb
tree9b2c7d47ded266daaa68f1eef98a7e62a3eacc65
parent3f4299bee6eda852489ce4fd307dd709a09f5d8f
drm/amdgpu: invalidate parent bo when shadow bo was invalidated

Shadow BO is located on GTT and its parent (PT and PD) BO could located on VRAM.
In some case, the BO on GTT could be evicted but the parent did not. This may
cause the shadow BO not be put in the evict list and could not be invalidate
correctly.
v2: suggested by Christian

Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reported-by: Shaoyun Liu <Shaoyun.Liu@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@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