[PATCH 3/3] drm/vmwgfx: use ttm_bo_is_reserved

2012-10-25 Thread Thomas Hellstrom
On 10/12/2012 04:59 PM, Maarten Lankhorst wrote:
> Signed-off-by: Maarten Lankhorst 
> ---
>   drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c |2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c 
> b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
> index 3ce68a2..bd78257 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
> @@ -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(>reserved));
> + BUG_ON(!ttm_bo_is_reserved(bo));
>   BUG_ON(old_mem_type != TTM_PL_VRAM &&
>  old_mem_type != VMW_PL_FLAG_GMR);
>   
>
> ___
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by: Thomas Hellstrom 





Re: [PATCH 3/3] drm/vmwgfx: use ttm_bo_is_reserved

2012-10-25 Thread Thomas Hellstrom

On 10/12/2012 04:59 PM, Maarten Lankhorst wrote:

Signed-off-by: Maarten Lankhorst maarten.lankho...@canonical.com
---
  drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c |2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c 
b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
index 3ce68a2..bd78257 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
@@ -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);
  


___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by: Thomas Hellstrom thellst...@vmware.com



___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH 3/3] drm/vmwgfx: use ttm_bo_is_reserved

2012-10-12 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst 
---
 drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c 
b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
index 3ce68a2..bd78257 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
@@ -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(>reserved));
+   BUG_ON(!ttm_bo_is_reserved(bo));
BUG_ON(old_mem_type != TTM_PL_VRAM &&
   old_mem_type != VMW_PL_FLAG_GMR);




[PATCH 3/3] drm/vmwgfx: use ttm_bo_is_reserved

2012-10-12 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst maarten.lankho...@canonical.com
---
 drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c 
b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
index 3ce68a2..bd78257 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
@@ -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);
 

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel