]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: drop ttm two ended allocation
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Apr 2015 18:00:49 +0000 (14:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2015 01:03:20 +0000 (21:03 -0400)
commit31e678c02d2e37fdb5209a82a91692b37d91baae
tree6285a7aad56ed451685e2a6af19a6a0e9cd7df1e
parentd68abd08718b4c807991338b04268aa687876e8b
drm/amdgpu: drop ttm two ended allocation

amdgpu_bo_create() calls amdgpu_ttm_placement_from_domain()
before ttm_bo_init() is called.  amdgpu_ttm_placement_from_domain()
uses the ttm bo size to determine when to select top down
allocation but since the ttm bo is not initialized yet the
check is always false.  It only took affect when buffers
were validated later.  It also seemed to regress suspend
and resume on some systems possibly due to it not
taking affect in amdgpu_bo_create().

amdgpu_bo_create() and amdgpu_ttm_placement_from_domain()
need to be reworked substantially for this to be optimally
effective.  Re-enable it at that point.

Ported from radeon commit:
f925dfe390569e87e03037f0ccc0943c33ecda96

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c