diff options
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c')
| -rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c index ba658fa9cf6c..d782b49c7236 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c @@ -63,6 +63,7 @@ struct vmw_cotable {   * @min_initial_entries: Min number of initial intries at cotable allocation   * for this cotable type.   * @size: Size of each entry. + * @unbind_func: Unbind call-back function.   */  struct vmw_cotable_info {  	u32 min_initial_entries; @@ -297,7 +298,7 @@ int vmw_cotable_scrub(struct vmw_resource *res, bool readback)   *   * @res: Pointer to the cotable resource.   * @readback: Whether to read back cotable data to the backup buffer. - * val_buf: Pointer to a struct ttm_validate_buffer prepared by the caller + * @val_buf: Pointer to a struct ttm_validate_buffer prepared by the caller   * for convenience / fencing.   *   * Unbinds the cotable from the device and fences the backup buffer. @@ -481,11 +482,15 @@ static int vmw_cotable_resize(struct vmw_resource *res, size_t new_size)  	vmw_bo_unreference(&old_buf);  	res->id = vcotbl->type; +	/* Release the pin acquired in vmw_bo_init */ +	ttm_bo_unpin(bo); +  	return 0;  out_map_new:  	ttm_bo_kunmap(&old_map);  out_wait: +	ttm_bo_unpin(bo);  	ttm_bo_unreserve(bo);  	vmw_bo_unreference(&buf); | 
