]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: use the parent resv for ghost objects v3
authorChristian König <christian.koenig@amd.com>
Tue, 16 Apr 2019 18:19:07 +0000 (20:19 +0200)
committerChristian König <christian.koenig@amd.com>
Fri, 25 Oct 2019 09:40:51 +0000 (11:40 +0200)
commit54e2a004ebf31ea7b196b5bb41f3bf1f3908e620
tree1db230917255b3baff5c667d1245b5460e405645
parent4f9b7a11d5545be6742488a0394a31673bc440c2
drm/ttm: use the parent resv for ghost objects v3

This way the TTM is destroyed with the correct dma_resv object
locked and we can even pipeline imported BO evictions.

v2: Limit this to only cases when the parent object uses a separate
    reservation object as well. This fixes another OOM problem.
v3: fix init and try_lock on the wrong object

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Link: https://patchwork.freedesktop.org/patch/337499/
drivers/gpu/drm/ttm/ttm_bo_util.c