]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/vmwgfx: Add new keep_resv BO param
authorIan Forbes <ian.forbes@broadcom.com>
Fri, 10 Jan 2025 18:53:35 +0000 (12:53 -0600)
committerZack Rusin <zack.rusin@broadcom.com>
Tue, 14 Jan 2025 18:01:43 +0000 (13:01 -0500)
commitb7d40627813799870e72729c6fc979a8a40d9ba6
treec94466cea6913ba25f203e62a81491fb2cda8c17
parent9cdebfa97d5844ac3a2ad815a87e60cec8f84795
drm/vmwgfx: Add new keep_resv BO param

Adds a new BO param that keeps the reservation locked after creation.
This removes the need to re-reserve the BO after creation which is a
waste of cycles.

This also fixes a bug in vmw_prime_import_sg_table where the imported
reservation is unlocked twice.

Signed-off-by: Ian Forbes <ian.forbes@broadcom.com>
Fixes: b32233acceff ("drm/vmwgfx: Fix prime import/export")
Reviewed-by: Zack Rusin <zack.rusin@broadcom.com>
Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250110185335.15301-1-ian.forbes@broadcom.com
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
drivers/gpu/drm/vmwgfx/vmwgfx_bo.h
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_gem.c
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c