Skip to content

vmwgfx device update

Thomas Hellstrom dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest33 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/33drm/vmwgfx: Fix the driver for large dma addressesdrivers/gpu/drm/vmwgfx/vmwgfx_drv.c drivers/gpu/drm/vmwgfx/vmwgfx_drv.h drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c+39 -1690 replies
2/33drm/vmwgfx: Update the svga3d register header file for new device versiondrivers/gpu/drm/vmwgfx/svga3d_reg.h+650 -141 reply
3/33drm/vmwgfx: Update the driver user-space interface for guest-backed objectsinclude/uapi/drm/vmwgfx_drm.h+199 -00 replies
4/33drm/vmwgfx: Update the surface defines header for new hardware formatsdrivers/gpu/drm/vmwgfx/svga3d_surfacedefs.h+16 -00 replies
5/33drm/vmwgfx: Replace vram_size with prim_bb_mem for calculation of max resolutiondrivers/gpu/drm/vmwgfx/vmwgfx_drv.c drivers/gpu/drm/vmwgfx/vmwgfx_drv.h drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c +1 more+7 -20 replies
6/33drm/vmwgfx: Update the svga register definitiondrivers/gpu/drm/vmwgfx/svga_reg.h drivers/gpu/drm/vmwgfx/vmwgfx_drv.c+14 -20 replies
7/33drm/vmwgfx: Adapt capability reporting to new hardware versiondrivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c+34 -30 replies
8/33drm/vmwgfx: Add MOB managementdrivers/gpu/drm/vmwgfx/Makefile drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +2 more+632 -10 replies
9/33drm/vmwgfx: Hook up MOBs to TTM as a separate memory typedrivers/gpu/drm/vmwgfx/vmwgfx_buffer.c drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +2 more+136 -130 replies
10/33drm/vmwgfx: Read bounding box memory from the appropriate registerdrivers/gpu/drm/vmwgfx/vmwgfx_drv.c+7 -20 replies
11/33drm/vmwgfx: Add the possibility to validate a buffer as a MOBdrivers/gpu/drm/vmwgfx/vmwgfx_drv.h drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c drivers/gpu/drm/vmwgfx/vmwgfx_resource.c+23 -70 replies
12/33drm/vmwgfx: Hook up guest-backed queriesdrivers/gpu/drm/vmwgfx/vmwgfx_drv.h drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c+292 -140 replies
13/33drm/vmwgfx: Detach backing store from its resources when it is evicteddrivers/gpu/drm/vmwgfx/vmwgfx_resource.c+44 -10 replies
14/33drm/vmwgfx: Hook up guest-backed contextsdrivers/gpu/drm/vmwgfx/vmwgfx_context.c drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c+227 -00 replies
15/33drm/vmwgfx: Hook up guest-backed surfacesdrivers/gpu/drm/vmwgfx/vmwgfx_drv.c drivers/gpu/drm/vmwgfx/vmwgfx_drv.h drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +2 more+708 -40 replies
16/33drm/vmwgfx: Add guest-backed shadersdrivers/gpu/drm/vmwgfx/Makefile drivers/gpu/drm/vmwgfx/vmwgfx_drv.c drivers/gpu/drm/vmwgfx/vmwgfx_drv.h +2 more+496 -10 replies
17/33drm/vmwgfx: Validate guest-backed shader const commandsdrivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c+35 -00 replies
18/33drm/vmwgfx: Add new unused (by user-space) commands to the verifierdrivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c+26 -00 replies
19/33drm/vmwgfx: Enable 3D for new hardware versiondrivers/gpu/drm/vmwgfx/vmwgfx_fifo.c+17 -00 replies
20/33drm/vmwgfx: Fix up the vmwgfx_drv.h header for new filesdrivers/gpu/drm/vmwgfx/vmwgfx_drv.h+42 -280 replies
21/33drm/vmwgfx: Extend the command verifier to handle guest-backed on / offdrivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c+208 -1070 replies
22/33drm/vmwgfx: Make sure that the multisampling is offdrivers/gpu/drm/vmwgfx/vmwgfx_surface.c include/uapi/drm/vmwgfx_drm.h+2 -20 replies
23/33drm/vmwgfx: Implement a buffer object synccpu ioctl.drivers/gpu/drm/vmwgfx/vmwgfx_drv.c drivers/gpu/drm/vmwgfx/vmwgfx_drv.h drivers/gpu/drm/vmwgfx/vmwgfx_resource.c +1 more+211 -20 replies
24/33drm/vmwgfx: Add a parameter to get max MOB memory sizedrivers/gpu/drm/vmwgfx/vmwgfx_drv.h drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c include/uapi/drm/vmwgfx_drm.h+6 -20 replies
25/33drm/vmwgfx: Block the BIND_SHADERCONSTS commanddrivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c+2 -340 replies
26/33drm/vmwgfx: Track context bindings and scrub them upon exiting execbufdrivers/gpu/drm/vmwgfx/vmwgfx_context.c drivers/gpu/drm/vmwgfx/vmwgfx_drv.h drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c+365 -110 replies
27/33drm/vmwgfx: Persistent tracking of context bindingsdrivers/gpu/drm/vmwgfx/vmwgfx_context.c drivers/gpu/drm/vmwgfx/vmwgfx_drv.c drivers/gpu/drm/vmwgfx/vmwgfx_drv.h +4 more+143 -100 replies
28/33drm/vmwgfx: Ditch the vmw_dummy_query_bo_prepare functiondrivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c drivers/gpu/drm/vmwgfx/vmwgfx_drv.c+37 -490 replies
29/33drm/vmwgfx: Use the linux DMA api also for MOBsdrivers/gpu/drm/vmwgfx/vmwgfx_buffer.c drivers/gpu/drm/vmwgfx/vmwgfx_drv.h drivers/gpu/drm/vmwgfx/vmwgfx_mob.c+142 -410 replies
30/33drm/vmwgfx: Update otable definitionsdrivers/gpu/drm/vmwgfx/svga3d_reg.h drivers/gpu/drm/vmwgfx/vmwgfx_drv.h drivers/gpu/drm/vmwgfx/vmwgfx_mob.c+27 -110 replies
31/33drm/vmwgfx: Fix surface framebuffer check for guest-backed surfacesdrivers/gpu/drm/vmwgfx/vmwgfx_kms.c+3 -30 replies
32/33drm/vmwgfx: Implement 64-bit Otable- and MOB binding v2drivers/gpu/drm/vmwgfx/svga3d_reg.h drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c drivers/gpu/drm/vmwgfx/vmwgfx_mob.c+101 -250 replies
33/33drm/vmwgfx: Silence the device command verifierdrivers/gpu/drm/vmwgfx/svga3d_reg.h+23 -70 replies

Reviews trailers per patch

30 of 33 patches have a Reviewed-by or Acked-by.

PatchJakob BornecrantzBrian PaulZack RusinThomas Hellstrom
1/33R-b
2/33R-b Reivewed-by
3/33R-b R-b
4/33R-b R-b
5/33R-b R-b
6/33R-b R-b
7/33R-b R-b
8/33R-b R-b
9/33R-b
10/33R-b R-b
11/33R-b R-b
12/33R-b R-b
13/33R-b R-b
14/33R-b R-b
15/33R-b R-b
16/33R-b R-b
17/33R-b R-b
18/33R-b R-b
19/33R-b R-b
20/33R-b R-b
21/33R-b R-b
22/33R-b R-b
23/33R-b
24/33R-b
25/33R-b
26/33R-b
27/33R-b
28/33R-b
29/33
30/33
31/33R-b R-b
32/33R-b
33/33

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 00/33] vmwgfx device update

The upcoming vmware svga2 hardware version 11 will introduce the concept of "guest backed objects" or -resources. The device will in principle get all of its memory from the guest, which has big advantages from the device point of view.

This means that vmwgfx contexts, shaders and surfaces need to be backed by guest memory in the form of buffer objects called MOBs, presumably short for MemoryOBjects, which are bound to the device in a special way.

This patch series introduces guest backed object support. Some new IOCTLs are added to allocate these new guest backed object, and to optionally provide them with a backing MOB.

There is an update to the gallium driver that comes with this update, and it will be pushed in the near timeframe presumably to a separate mesa branch before merged to master.

All but the last patch have been reviewed internally. Please let me know whether there are any concerns before i generate a pull request.

Thanks,
Thomas