]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/vmwgfx: Implement dma_fence_ops properly
authorIan Forbes <ian.forbes@broadcom.com>
Fri, 30 May 2025 18:35:09 +0000 (13:35 -0500)
committerZack Rusin <zack.rusin@broadcom.com>
Wed, 18 Jun 2025 02:49:33 +0000 (22:49 -0400)
commitdb6a94b263541af5678e520fb3959b03ec88ad2b
tree3437cb690f8ad6dd0183600269612feff54c4017
parentc82f55f4aa57bf5ba412d55856fe50514b47b971
drm/vmwgfx: Implement dma_fence_ops properly

vmwgfx's fencing predates dma_fence and as a result dma_fence_ops was never
properly implemented, especially with respect to enabling signaling.

Because of this dma_fence callbacks don't work properly. This change
implements enable_signaling properly so that dma_fence callbacks now
work as expected.

It also removes vmwgfx's custom implementation of fence callbacks
and removes vmwgfx's custom dma_fence_ops::wait function which is no
longer necessary now that enable_signaling works.

Signed-off-by: Ian Forbes <ian.forbes@broadcom.com>
Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://lore.kernel.org/r/20250530183510.733175-2-ian.forbes@broadcom.com
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
drivers/gpu/drm/vmwgfx/vmwgfx_fence.h
drivers/gpu/drm/vmwgfx/vmwgfx_irq.c