drm/radeon: initial suspend/resume fix.
authorDave Airlie <airlied@redhat.com>
Thu, 16 Oct 2008 00:49:58 +0000 (10:49 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 16 Oct 2008 00:49:58 +0000 (10:49 +1000)
This enables the evict code and also sets radeon up
to allow evict from VRAM to LOCAL

linux-core/drm_bo.c
linux-core/radeon_buffer.c

index ecf65c2..94a8155 100644 (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);
 
index fe2aa6f..c375100 100644 (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;
        }
 }