drm/ttm: individualize BO reservation obj when they are freed
authorChristian König <christian.koenig@amd.com>
Thu, 20 Jul 2017 18:55:06 +0000 (20:55 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Aug 2017 19:45:56 +0000 (15:45 -0400)
commit841e763b40764a7699ae07f4cb1921af62d6316d
treef001d62d2e6a1ef5516918750358f6724c0ba7fd
parent1a33860d630c9cb4687ad01bda5651e96bad3694
drm/ttm: individualize BO reservation obj when they are freed

Use the BOs reservation object when it is put on the ddelete list. This way we
avoid delaying freeing up the BO because of new fences on the reservation object.

This is used by dma-buf and amdgpu's VM page tables.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c