Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thomas Hellstrom and committed by
Sinclair Yeh
1f1a36cc 5f55be5f

+1
+1
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
··· 563 563 entry->cmd += new_start_offset; 564 564 cb_hdr->length -= new_start_offset; 565 565 cb_hdr->errorOffset = 0; 566 + cb_hdr->offset = 0; 566 567 list_add_tail(&entry->list, &restart_head[entry->cb_context]); 567 568 man->ctx[entry->cb_context].block_submission = true; 568 569 }