]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Reserve fence slots on buffer objects in cotables
authorZack Rusin <zackr@vmware.com>
Fri, 22 Apr 2022 16:13:42 +0000 (12:13 -0400)
committerZack Rusin <zackr@vmware.com>
Sat, 23 Apr 2022 01:41:14 +0000 (21:41 -0400)
commitc536260515a4db3c56ec293401b1ef3a5aafe0ea
tree97fcf83e3dd40fc78964860b5847397b20e42b9c
parent6a85cfba2feda3fe81326ae97864addfcda9436c
drm/vmwgfx: Reserve fence slots on buffer objects in cotables

The buffer objects created by cotables were missing fence reservations.
They are created from vmw_validation_res_validate which makes them miss
the ttm_eu_reserve_buffers which is called from vmw_validation_bo_reserve.

Cotables are the only resources which create a buffer object in the
create callback so make sure the code also reserves the slots.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Co-developed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Fixes: 6f3996ca4dfb ("dma-buf/drivers: make reserving a shared slot mandatory v4")
Link: https://patchwork.freedesktop.org/patch/msgid/20220422161342.1142584-1-zack@kde.org
drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c