<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c, branch standardize-docs</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=standardize-docs</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=standardize-docs'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2016-10-10T18:15:05+00:00</updated>
<entry>
<title>drm/vmwgfx: Avoid validating views on view destruction</title>
<updated>2016-10-10T18:15:05+00:00</updated>
<author>
<name>Thomas Hellstrom</name>
<email>thellstrom@vmware.com</email>
</author>
<published>2016-10-10T18:06:45+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=a19440304db2d97aed5cee9bfa5017c98d2348bf'/>
<id>urn:sha1:a19440304db2d97aed5cee9bfa5017c98d2348bf</id>
<content type='text'>
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 &lt;brianp@vmware.com&gt;
Signed-off-by: Thomas Hellstrom &lt;thellstrom@vmware.com&gt;
Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
Reviewed-by: Sinclair Yeh &lt;syeh@vmware.com&gt;
Signed-off-by: Sinclair Yeh &lt;syeh@vmware.com&gt;
Cc: stable@vger.kernel.org
</content>
</entry>
<entry>
<title>drm/vmwgfx: Limit the user-space command buffer size</title>
<updated>2016-10-10T18:15:04+00:00</updated>
<author>
<name>Thomas Hellstrom</name>
<email>thellstrom@vmware.com</email>
</author>
<published>2016-10-10T17:51:24+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=51ab70bed997f64f091a639dbe22b629725a7faf'/>
<id>urn:sha1:51ab70bed997f64f091a639dbe22b629725a7faf</id>
<content type='text'>
With older hardware versions, the user could specify arbitrarily large
command buffer sizes, causing a vmalloc / vmap space exhaustion.

Signed-off-by: Thomas Hellstrom &lt;thellstrom@vmware.com&gt;
Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
Reviewed-by: Sinclair Yeh &lt;syeh@vmware.com&gt;
Signed-off-by: Sinclair Yeh &lt;syeh@vmware.com&gt;
Cc: stable@vger.kernel.org
</content>
</entry>
<entry>
<title>drm/vmwgfx: Remove a leftover debug printout</title>
<updated>2016-10-10T18:15:03+00:00</updated>
<author>
<name>Thomas Hellstrom</name>
<email>thellstrom@vmware.com</email>
</author>
<published>2016-10-10T17:45:55+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=728c3b53995f71e4b175d5939b8ba3211b6bc34d'/>
<id>urn:sha1:728c3b53995f71e4b175d5939b8ba3211b6bc34d</id>
<content type='text'>
Remove a leftover debug printout

Signed-off-by: Thomas Hellstrom &lt;thellstrom@vmware.com&gt;
Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
Reviewed-by: Sinclair Yeh &lt;syeh@vmware.com&gt;
Signed-off-by: Sinclair Yeh &lt;syeh@vmware.com&gt;
</content>
</entry>
<entry>
<title>drm/vmwgfx: Allow resource relocations on byte boundaries</title>
<updated>2016-10-10T18:15:02+00:00</updated>
<author>
<name>Thomas Hellstrom</name>
<email>thellstrom@vmware.com</email>
</author>
<published>2016-10-10T17:44:00+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=e7a45284ba1abcea591f7c01b05227b6698b596c'/>
<id>urn:sha1:e7a45284ba1abcea591f7c01b05227b6698b596c</id>
<content type='text'>
So far, resource allocations have only been allowed on 4-byte boundaries.
As commands get packed tighter, allow them on byte boundaries.

Signed-off-by: Thomas Hellstrom &lt;thellstrom@vmware.com&gt;
Reviewed-by: Sinclair Yeh &lt;syeh@vmware.com&gt;
Signed-off-by: Sinclair Yeh &lt;syeh@vmware.com&gt;
</content>
</entry>
<entry>
<title>drm/vmwgfx: Enable SVGA_3D_CMD_DX_TRANSFER_FROM_BUFFER command</title>
<updated>2016-10-10T18:15:01+00:00</updated>
<author>
<name>Charmaine Lee</name>
<email>charmainel@vmware.com</email>
</author>
<published>2016-10-10T17:37:03+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=1f982e4e390b31d6c44fb8bf03e3462ab33b8244'/>
<id>urn:sha1:1f982e4e390b31d6c44fb8bf03e3462ab33b8244</id>
<content type='text'>
And bump VMWGFX_DRIVER_MINOR to 11

Signed-off-by: Charmaine Lee &lt;charmainel@vmware.com&gt;
Reviewed-by: Sinclair Yeh &lt;syeh@vmware.com&gt;
Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
Signed-off-by: Sinclair Yeh &lt;syeh@vmware.com&gt;
</content>
</entry>
<entry>
<title>drm/vmwgfx: Delete an unnecessary check before the function call "vfree"</title>
<updated>2016-07-22T15:23:40+00:00</updated>
<author>
<name>Markus Elfring</name>
<email>elfring@users.sourceforge.net</email>
</author>
<published>2016-07-22T11:31:00+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=0bc329976bc178aacf78ca6e3de8084e8e7eb5e4'/>
<id>urn:sha1:0bc329976bc178aacf78ca6e3de8084e8e7eb5e4</id>
<content type='text'>
The vfree() function performs also input parameter validation.
Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/8060f2e9-5070-3c10-d55c-dc058e4ca20d@users.sourceforge.net
Link: http://patchwork.freedesktop.org/patch/msgid/f1a0fd83-4320-f3db-e1bb-3b9832a4429f@users.sourceforge.net
</content>
</entry>
<entry>
<title>drm/vmwgfx: use vmw_cmd_dx_cid_check for query commands.</title>
<updated>2016-04-28T18:07:23+00:00</updated>
<author>
<name>Charmaine Lee</name>
<email>charmainel@vmware.com</email>
</author>
<published>2016-04-12T15:19:08+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=e02e58843153ce80a9fe7588def89b2638d40e64'/>
<id>urn:sha1:e02e58843153ce80a9fe7588def89b2638d40e64</id>
<content type='text'>
Instead of calling vmw_cmd_ok, call vmw_cmd_dx_cid_check to
validate the context id for query commands.

Signed-off-by: Charmaine Lee &lt;charmainel@vmware.com&gt;
Reviewed-by: Sinclair Yeh &lt;syeh@vmware.com&gt;
</content>
</entry>
<entry>
<title>drm/vmwgfx: Enable SVGA_3D_CMD_DX_SET_PREDICATION</title>
<updated>2016-04-28T18:07:15+00:00</updated>
<author>
<name>Charmaine Lee</name>
<email>charmainel@vmware.com</email>
</author>
<published>2016-04-12T15:14:23+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=1883598d4201361a6d2ce785095695f58071ee11'/>
<id>urn:sha1:1883598d4201361a6d2ce785095695f58071ee11</id>
<content type='text'>
Fixes piglit tests nv_conditional_render-* crashes.

Signed-off-by: Charmaine Lee &lt;charmainel@vmware.com&gt;
Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
Reviewed-by: Sinclair Yeh &lt;syeh@vmware.com&gt;
</content>
</entry>
<entry>
<title>drm/vmwgfx: Add DXGenMips support</title>
<updated>2016-03-14T13:55:51+00:00</updated>
<author>
<name>Charmaine Lee</name>
<email>charmaiel@vmware.com</email>
</author>
<published>2016-02-12T07:11:56+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=f3b3355073ffc2ee717693df587e5d1855ab2d22'/>
<id>urn:sha1:f3b3355073ffc2ee717693df587e5d1855ab2d22</id>
<content type='text'>
Add support for DXGenMips command.

Signed-off-by: Charmaine Lee &lt;charmainel@vmware.com&gt;
Reviewed-by: Sinclair Yeh &lt;syeh@vmware.com&gt;
Reviewed-by: Thomas Hellstrom &lt;thellstrom@vmware.com&gt;
</content>
</entry>
<entry>
<title>drm/vmwgfx: Fix up user_dmabuf refcounting</title>
<updated>2015-09-14T08:13:11+00:00</updated>
<author>
<name>Thomas Hellstrom</name>
<email>thellstrom@vmware.com</email>
</author>
<published>2015-09-14T08:13:11+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=54c12bc374408faddbff75dbf1a6167c19af39c4'/>
<id>urn:sha1:54c12bc374408faddbff75dbf1a6167c19af39c4</id>
<content type='text'>
If user space calls unreference on a user_dmabuf it will typically
kill the struct ttm_base_object member which is responsible for the
user-space visibility. However the dmabuf part may still be alive and
refcounted. In some situations, like for shared guest-backed surface
referencing/opening, the driver may try to reference the
struct ttm_base_object member again, causing an immediate kernel warning
and a later kernel NULL pointer dereference.

Fix this by always maintaining a reference on the struct
ttm_base_object member, in situations where it might subsequently be
referenced.

Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Thomas Hellstrom &lt;thellstrom@vmware.com&gt;
Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
Reviewed-by: Sinclair Yeh &lt;syeh@vmware.com&gt;
</content>
</entry>
</feed>
