drm/radeon: initial suspend/resume fix.

This enables the evict code and also sets radeon up
to allow evict from VRAM to LOCAL
This commit is contained in:
Dave Airlie 2008-10-16 10:49:58 +10:00
parent e4fa03f7dd
commit fc33686ef0
2 changed files with 2 additions and 2 deletions

View file

@ -2126,7 +2126,7 @@ void drm_bo_evict_mm(struct drm_device *dev, int mem_type, int no_wait)
drm_bo_usage_deref_unlocked(&entry);
mutex_lock(&dev->struct_mutex);
} while(0);
} while(1);
mutex_unlock(&dev->struct_mutex);

View file

@ -436,6 +436,6 @@ uint64_t radeon_evict_flags(struct drm_buffer_object *bo)
case DRM_BO_MEM_TT:
return DRM_BO_FLAG_MEM_LOCAL;
default:
return DRM_BO_FLAG_MEM_TT;
return DRM_BO_FLAG_MEM_TT | DRM_BO_FLAG_MEM_LOCAL;
}
}