]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix and cleanup shadow handling
authorChristian König <christian.koenig@amd.com>
Fri, 18 Aug 2017 13:50:17 +0000 (15:50 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Aug 2017 19:27:40 +0000 (15:27 -0400)
commitf972960817805b9ed240174d6e282552737a8cc5
tree1cff68f7bef6c0c112137954dafd259aff323764
parentefb6b47eebefcebd303b07a3927a2c32d172608e
drm/amdgpu: fix and cleanup shadow handling

Set the shadow flag on the shadow and not the parent, always bind shadow BOs
during allocation instead of manually, use the reservation_object wrappers
to grab the lock.

This fixes a couple of issues with binding the shadow BOs as well as correctly
evicting them when memory becomes tight.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c