]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbf833e27dce93f4b2ec30ff04ff0786ad154f573
treef9c4f07e2bcd901175d2fb3c7538f02d7138f82f
parent270159768bd4f950c551687a8acf003adba80ad7
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