diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2017-08-24 08:06:31 +0200 |
---|---|---|
committer | Sinclair Yeh <syeh@vmware.com> | 2017-08-28 17:40:51 +0200 |
commit | 1f1a36cc4d4986a800018f1d3eed94a4e92a576f (patch) | |
tree | 79d2bad22fa9b77d0cbd0cb5f45b71c08227a4df /drivers/gpu/drm/vmwgfx | |
parent | 5f55be5f306a619e0cdc58104f06a564f5bb30d5 (diff) | |
download | blackbird-op-linux-1f1a36cc4d4986a800018f1d3eed94a4e92a576f.tar.gz blackbird-op-linux-1f1a36cc4d4986a800018f1d3eed94a4e92a576f.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c | 1 |
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) entry->cmd += new_start_offset; cb_hdr->length -= new_start_offset; cb_hdr->errorOffset = 0; + cb_hdr->offset = 0; list_add_tail(&entry->list, &restart_head[entry->cb_context]); man->ctx[entry->cb_context].block_submission = true; } |