drm/ttm: warn when resv objs are mixed in a bulk_move
authorChristian König <christian.koenig@amd.com>
Tue, 12 Mar 2024 10:37:58 +0000 (11:37 +0100)
committerChristian König <christian.koenig@amd.com>
Wed, 20 Mar 2024 10:18:10 +0000 (11:18 +0100)
commit5a95f39d9b214d59cbe742002767737e03d43844
tree873148ac9c97fc5d173b98550d7aa591551eeba2
parent172695f145fb4798ab605e8a73f6e87711930124
drm/ttm: warn when resv objs are mixed in a bulk_move

The BOs in a bulk move must share all the same reservation object
to make sure that we lock the whole bulk during eviction.

Actually document and enforce that with a warning.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240312105555.3065-1-christian.koenig@amd.com
drivers/gpu/drm/ttm/ttm_resource.c
include/drm/ttm/ttm_resource.h