mbox series

[v3,0/3] drm/vmwgfx: Add support for userspace managed surfaces.

Message ID 20241210032149.2084068-1-maaz.mombasawala@broadcom.com (mailing list archive)
Headers show
Series drm/vmwgfx: Add support for userspace managed surfaces. | expand

Message

Maaz Mombasawala Dec. 10, 2024, 3:21 a.m. UTC
This series introduces basic support for userspace managed surfaces. The
lifetime and id's of these surfaces is managed by userspace submitted
commands instead of relying on the kernel to manage them.

v2: Add flag for userspace to check userspace surface support.

v3:
- Unref surface resource properly if there is error in creating surface object.
- Check that guest backed objects are supported when reporting DRM_VMW_PARAM_USER_SRF.
- Bind hw_destroy function when command buffer gets commited.

Maaz Mombasawala (3):
  drm/vmwgfx: Introduce userspace managed surfaces
  drm/vmwgfx: Support hw_destroy for userspace managed surfaces
  drm/vmwgfx: Add support for older define commands for userspace
    surfaces

 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h     |  24 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 331 ++++++++++++++++++++++--
 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c   |   3 +
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c | 198 +++++++++++++-
 include/uapi/drm/vmwgfx_drm.h           |   4 +
 5 files changed, 527 insertions(+), 33 deletions(-)


Maaz Mombasawala (3):
  drm/vmwgfx: Introduce userspace managed surfaces
  drm/vmwgfx: Support hw_destroy for userspace managed surfaces
  drm/vmwgfx: Add support for older define commands for userspace
    surfaces

 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h     |  23 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 326 ++++++++++++++++++++++--
 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c   |   3 +
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c | 203 ++++++++++++++-
 include/uapi/drm/vmwgfx_drm.h           |   4 +
 5 files changed, 526 insertions(+), 33 deletions(-)