]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 28 Mar 2015 13:33:13 +0000 (09:33 -0400)
commit7809f283e07340fa5b3dc01e2f23207c8521598e
treec7ea8516e50b62d84096fd43e436ef2eaa2b75b0
parent764725a6ee43f8151005de778dffe58f5f84b5c9
drm/radeon: drop ttm two ended allocation

[ Upstream commit a239118a24b3bf9089751068e431dfb63dc4168b ]

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
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/gpu/drm/radeon/radeon_object.c