Commit 9270eb1b authored by Dave Airlie's avatar Dave Airlie
Browse files

drm/radeon/kms: only evict to GTT if CP is ready

Testing GTT ready might be more correct but cp.ready
works fine and has been tested on irc by 2-3 ppl.

fixes bug 15035 and fd.o 25733

Signed-off-by: default avatarDave Airlie <>
parent 11f3b59e
......@@ -215,7 +215,10 @@ static void radeon_evict_flags(struct ttm_buffer_object *bo,
rbo = container_of(bo, struct radeon_bo, tbo);
switch (bo->mem.mem_type) {
radeon_ttm_placement_from_domain(rbo, RADEON_GEM_DOMAIN_GTT);
if (rbo->rdev->cp.ready == false)
radeon_ttm_placement_from_domain(rbo, RADEON_GEM_DOMAIN_CPU);
radeon_ttm_placement_from_domain(rbo, RADEON_GEM_DOMAIN_GTT);
case TTM_PL_TT:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment