Skip to content

Commit

Permalink
drm/vmwgfx: Fix incorrect command header offset at restart
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Sinclair Yeh <[email protected]>
  • Loading branch information
thomashvmw authored and Sinclair Yeh committed Aug 28, 2017
1 parent 5f55be5 commit 1f1a36c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1f1a36c

Please sign in to comment.