diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2010-05-28 13:22:05 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-06-01 03:37:53 +0400 |
commit | 316ab13ae2ad603fd5e3a909524e68d98db1b1b6 (patch) | |
tree | a9a703faa698703959d2110ee908faf1ebf3fc39 /drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | |
parent | 792778e8e058471e1909b78d7c5e6ab94962ff8e (diff) | |
download | linux-316ab13ae2ad603fd5e3a909524e68d98db1b1b6.tar.xz |
drm/vmwgfx: Print warnings in kernel log about bo pinning that fails.
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_fb.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c index 06f431442e92..181f47222580 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c @@ -630,6 +630,10 @@ int vmw_dmabuf_to_start_of_vram(struct vmw_private *vmw_priv, goto err_unlock; ret = ttm_bo_validate(bo, &ne_placement, false, false, false); + + /* Could probably bug on */ + WARN_ON(bo->offset != 0); + ttm_bo_unreserve(bo); err_unlock: ttm_write_unlock(&vmw_priv->active_master->lock); |