diff options
| author | Dave Airlie <airlied@redhat.com> | 2014-09-15 21:28:52 -0400 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2014-09-15 21:38:04 -0400 |
| commit | b2efb3f0a1db62aff5e824125785ec6731143b6d (patch) | |
| tree | 67510cec69e18e55d82bed803428b2a5027d92bb /drivers/gpu/drm/vmwgfx | |
| parent | 4ac073640a528662a7c072a30e92e70ce00ded33 (diff) | |
| parent | 9e82bf014195d6f0054982c463575cdce24292be (diff) | |
drm: backmerge tag 'v3.17-rc5' into drm-next
This is requested to get the fixes for intel and radeon into the
same tree for future development work.
i915_display.c: fix missing dev_priv conflict.
Diffstat (limited to 'drivers/gpu/drm/vmwgfx')
| -rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 11 | ||||
| -rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c | 3 |
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c index b4de3b2a7cc5..596cd6dafd33 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | |||
| @@ -448,11 +448,11 @@ static int vmw_cmd_res_reloc_add(struct vmw_private *dev_priv, | |||
| 448 | res, | 448 | res, |
| 449 | id_loc - sw_context->buf_start); | 449 | id_loc - sw_context->buf_start); |
| 450 | if (unlikely(ret != 0)) | 450 | if (unlikely(ret != 0)) |
| 451 | goto out_err; | 451 | return ret; |
| 452 | 452 | ||
| 453 | ret = vmw_resource_val_add(sw_context, res, &node); | 453 | ret = vmw_resource_val_add(sw_context, res, &node); |
| 454 | if (unlikely(ret != 0)) | 454 | if (unlikely(ret != 0)) |
| 455 | goto out_err; | 455 | return ret; |
| 456 | 456 | ||
| 457 | if (res_type == vmw_res_context && dev_priv->has_mob && | 457 | if (res_type == vmw_res_context && dev_priv->has_mob && |
| 458 | node->first_usage) { | 458 | node->first_usage) { |
| @@ -466,13 +466,13 @@ static int vmw_cmd_res_reloc_add(struct vmw_private *dev_priv, | |||
| 466 | 466 | ||
| 467 | ret = vmw_resource_context_res_add(dev_priv, sw_context, res); | 467 | ret = vmw_resource_context_res_add(dev_priv, sw_context, res); |
| 468 | if (unlikely(ret != 0)) | 468 | if (unlikely(ret != 0)) |
| 469 | goto out_err; | 469 | return ret; |
| 470 | node->staged_bindings = | 470 | node->staged_bindings = |
| 471 | kzalloc(sizeof(*node->staged_bindings), GFP_KERNEL); | 471 | kzalloc(sizeof(*node->staged_bindings), GFP_KERNEL); |
| 472 | if (node->staged_bindings == NULL) { | 472 | if (node->staged_bindings == NULL) { |
| 473 | DRM_ERROR("Failed to allocate context binding " | 473 | DRM_ERROR("Failed to allocate context binding " |
| 474 | "information.\n"); | 474 | "information.\n"); |
| 475 | goto out_err; | 475 | return -ENOMEM; |
| 476 | } | 476 | } |
| 477 | INIT_LIST_HEAD(&node->staged_bindings->list); | 477 | INIT_LIST_HEAD(&node->staged_bindings->list); |
| 478 | } | 478 | } |
| @@ -480,8 +480,7 @@ static int vmw_cmd_res_reloc_add(struct vmw_private *dev_priv, | |||
| 480 | if (p_val) | 480 | if (p_val) |
| 481 | *p_val = node; | 481 | *p_val = node; |
| 482 | 482 | ||
| 483 | out_err: | 483 | return 0; |
| 484 | return ret; | ||
| 485 | } | 484 | } |
| 486 | 485 | ||
| 487 | 486 | ||
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c index d9b4e6959750..09e10aefcd8e 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c | |||
| @@ -185,8 +185,9 @@ void vmw_fifo_release(struct vmw_private *dev_priv, struct vmw_fifo_state *fifo) | |||
| 185 | 185 | ||
| 186 | mutex_lock(&dev_priv->hw_mutex); | 186 | mutex_lock(&dev_priv->hw_mutex); |
| 187 | 187 | ||
| 188 | vmw_write(dev_priv, SVGA_REG_SYNC, SVGA_SYNC_GENERIC); | ||
| 188 | while (vmw_read(dev_priv, SVGA_REG_BUSY) != 0) | 189 | while (vmw_read(dev_priv, SVGA_REG_BUSY) != 0) |
| 189 | vmw_write(dev_priv, SVGA_REG_SYNC, SVGA_SYNC_GENERIC); | 190 | ; |
| 190 | 191 | ||
| 191 | dev_priv->last_read_seqno = ioread32(fifo_mem + SVGA_FIFO_FENCE); | 192 | dev_priv->last_read_seqno = ioread32(fifo_mem + SVGA_FIFO_FENCE); |
| 192 | 193 | ||
