drm/ttm: add ttm_bo_pin()/ttm_bo_unpin() v2
authorChristian König <christian.koenig@amd.com>
Mon, 21 Sep 2020 11:05:54 +0000 (13:05 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 24 Sep 2020 14:16:49 +0000 (16:16 +0200)
commitdeb0814b43f370a448a498409d949e38c9d8f02e
tree1951279e830715acf9e6644024e0ddea3ace76e8
parent8e3784dfef8a03143b13e7e4011f276a954f1bc6
drm/ttm: add ttm_bo_pin()/ttm_bo_unpin() v2

As an alternative to the placement flag add a
pin count to the ttm buffer object.

v2: add dma_resv_assert_help() calls

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Link: https://patchwork.freedesktop.org/patch/391596/?series=81973&rev=1
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_util.c
include/drm/ttm/ttm_bo_api.h