Skip to contentSkip to conversation

drm/vmwgfx: use ttm_bo_is_reserved

PATCH In review Maarten Lankhorst 2 participants 2 messages Oct 12, 2012 – Oct 25, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 drm/vmwgfx: use ttm_bo_is_reserved

---
 drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c +1 -1
index 3ce68a2..bd78257 100644
@@ -304,7 +304,7 @@ void vmw_bo_pin(struct ttm_buffer_object *bo, bool pin)
 	uint32_t old_mem_type = bo->mem.mem_type;
 	int ret;
 
-	BUG_ON(!atomic_read(&bo->reserved));
+	BUG_ON(!ttm_bo_is_reserved(bo));
 	BUG_ON(old_mem_type != TTM_PL_VRAM &&
 	       old_mem_type != VMW_PL_FLAG_GMR);
Reviewed-by on v1 3/3
#1 lore raw
Quoted 19 lines · Maarten Lankhorst
---
  drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c +1 -1
index 3ce68a2..bd78257 100644
@@ -304,7 +304,7 @@ void vmw_bo_pin(struct ttm_buffer_object *bo, bool pin)
  	uint32_t old_mem_type = bo->mem.mem_type;
  	int ret;
 
-	BUG_ON(!atomic_read(&bo->reserved));
+	BUG_ON(!ttm_bo_is_reserved(bo));
  	BUG_ON(old_mem_type != TTM_PL_VRAM &&
  	       old_mem_type != VMW_PL_FLAG_GMR);
 
Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel