drm/vmwgfx: Support the NOP_ERROR command
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 24 Aug 2017 06:06:30 +0000 (08:06 +0200)
committerSinclair Yeh <syeh@vmware.com>
Mon, 28 Aug 2017 15:40:49 +0000 (17:40 +0200)
commit5f55be5f306a619e0cdc58104f06a564f5bb30d5
tree95164d4946df77af1f16e7e8f2fc41f647e844e2
parent65b97a2bec2fc75e9137e8a17954cb66809215bf
drm/vmwgfx: Support the NOP_ERROR command

Can be used by user-space applications to test and verify the kernel
command buffer error recovery functionality.

Malicious user-space apps could potentially use this command to slow down
graphics processing somewhat, but they could also accomplish the same thing
using a random malformed command so this should be considered safe.
At least as safe as it gets.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c