summaryrefslogtreecommitdiff
path: root/vmwgfx_drv.h
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2017-05-24 00:41:36 -0700
committerThomas Hellstrom <thellstrom@vmware.com>2017-05-29 01:15:35 -0700
commit90e924b70f038ab19197fd039c6b967e57785c9f (patch)
treebecc46eb47341963297e97eaa2807f5051f0d2d1 /vmwgfx_drv.h
parentd0b6e8ba9d841ee9f6a91117bd5aa1be98405277 (diff)
vmwgfx: Restart command buffers after errors
Previously we skipped the command buffer and added an extra fence to avoid hangs due to skipped fence commands. Now we instead restart the command buffer after the failing command, if there are any commands left. In addition we print out some information about the failing command and its location in the command buffer. Testing Done: ran glxgears using mesa modified to send the NOP_ERROR command before each 10th clear and verified that we detected the device error properly and that there were no other device errors caused by incorrectly ordered command buffers. Also ran the piglit "quick" test suite which generates a couple of device errors and verified that they were handled as intended. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'vmwgfx_drv.h')
-rw-r--r--vmwgfx_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vmwgfx_drv.h b/vmwgfx_drv.h
index 3a88b53..ea8817e 100644
--- a/vmwgfx_drv.h
+++ b/vmwgfx_drv.h
@@ -844,7 +844,7 @@ extern int vmw_validate_single_buffer(struct vmw_private *dev_priv,
struct ttm_buffer_object *bo,
bool interruptible,
bool validate_as_mob);
-
+bool vmw_cmd_describe(const void *buf, u32 *size, char const **cmd);
/**
* IRQs and wating - vmwgfx_irq.c