]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/vmwgfx: Avoid validating views on view destruction
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 10 Oct 2016 18:06:45 +0000 (11:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Oct 2016 11:02:12 +0000 (05:02 -0600)
commitf5ed7c00278a33d323ddbf5684bb69e7709ede14
treeda11441abb2f9e4ade13652e4c53b72fa200629a
parentae1d0b6ec8ec9564ff80b63c73d167fc87e8fb28
drm/vmwgfx: Avoid validating views on view destruction

commit a19440304db2d97aed5cee9bfa5017c98d2348bf upstream.

When a view destruction command was present in the command stream, the
view was validated to avoid a device error. That caused excessive and
unnecessary validations of views, surfaces and mobs on view destruction.

Replace this with a new relocation type that patches the view
destruction command to a NOP if the view is not present in the device
after the execbuf validation sequence.

Also add checks for the member size of the vmw_res_relocation struct.

Fixes sporadic command submission errors on google-earth exit.

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