]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: drop ttm two ended allocation
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2015 15:53:33 +0000 (11:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Mar 2015 13:53:40 +0000 (09:53 -0400)
commitf925dfe390569e87e03037f0ccc0943c33ecda96
tree5b1a4f3a397ca03651b144bc70ba8c4a0f57d795
parentb2db4f295a4c92b4f99d6f48e70c65e9661d581a
drm/radeon: drop ttm two ended allocation

radeon_bo_create() calls radeon_ttm_placement_from_domain()
before ttm_bo_init() is called.  radeon_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 effect when buffers
were validated later.  It also seemed to regress suspend
and resume on some systems possibly due to it not
taking effect in radeon_bo_create().

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

Noticed-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_object.c