aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2017-08-24 02:06:31 -0400
committerSinclair Yeh <syeh@vmware.com>2017-08-28 11:40:51 -0400
commit1f1a36cc4d4986a800018f1d3eed94a4e92a576f (patch)
tree79d2bad22fa9b77d0cbd0cb5f45b71c08227a4df
parent5f55be5f306a619e0cdc58104f06a564f5bb30d5 (diff)
drm/vmwgfx: Fix incorrect command header offset at restart
Sometimes it appears like the device modifies the command header offset member. So explicitly clear it when restarting after an error. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com>
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
index 847490bbb2e2..c706ad30411b 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
@@ -563,6 +563,7 @@ static void vmw_cmdbuf_work_func(struct work_struct *work)
563 entry->cmd += new_start_offset; 563 entry->cmd += new_start_offset;
564 cb_hdr->length -= new_start_offset; 564 cb_hdr->length -= new_start_offset;
565 cb_hdr->errorOffset = 0; 565 cb_hdr->errorOffset = 0;
566 cb_hdr->offset = 0;
566 list_add_tail(&entry->list, &restart_head[entry->cb_context]); 567 list_add_tail(&entry->list, &restart_head[entry->cb_context]);
567 man->ctx[entry->cb_context].block_submission = true; 568 man->ctx[entry->cb_context].block_submission = true;
568 } 569 }