]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ttm: test private resv obj on release/destroy
authorChristian König <christian.koenig@amd.com>
Wed, 29 Jan 2025 15:28:48 +0000 (16:28 +0100)
committerChristian König <christian.koenig@amd.com>
Thu, 6 Mar 2025 15:50:13 +0000 (16:50 +0100)
commitfa0af721bd1f983c5c9c109815a154bd1cb29c75
tree26f7e917c89cf276d57b766882f5973e9a2deeae
parent2eeed61db4550171a32854e4d3fdf974b749c214
drm/ttm: test private resv obj on release/destroy

Test the fences in the private dma_resv object instead of the pointer to
a potentially shared dma_resv object.

This only matters for imported BOs with an SG table since those don't
get their dma_resv pointer replaced on release.

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Tested-by: James Zhu <James.Zhu@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250129152849.15777-1-christian.koenig@amd.com
drivers/gpu/drm/ttm/ttm_bo.c