drm/amdgpu: stop using addr to check for BO move v3
authorChristian König <christian.koenig@amd.com>
Thu, 30 Jul 2015 09:53:42 +0000 (11:53 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:50:49 +0000 (16:50 -0400)
commit7fc11959018f8ba2d92025679a72339da18a74ad
treef9c4f07e2bcd901175d2fb3c7538f02d7138f82f
parent7f06c236b964db3d8d086c5a0087b2eb4de3bf7a
drm/amdgpu: stop using addr to check for BO move v3

It is theoretically possible that a swapped out BO gets the
same GTT address, but different backing pages while being swapped in.

Instead just use another VA state to note updated areas.
Ported from not upstream yet radeon commit with the same name.

v2: fix some bugs in the original implementation found in the radeon code.
v3: squash in VCE/UVD fix

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
This page took 0.0267 seconds and 5 git commands to generate.