OSDN Git Service

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)
commitef38321897cff9466c9dac45d7c1db5f6f19a2cf
tree1db230917255b3baff5c667d1245b5460e405645
parent97588b5b9a6b330dc2e3fbf3dea987e37d30194e
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