drm/ttm: add TTM_PL_FLAG_TEMPORARY flag v3
authorLang Yu <Lang.Yu@amd.com>
Tue, 22 Jun 2021 16:23:34 +0000 (12:23 -0400)
committerAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Wed, 23 Jun 2021 18:59:39 +0000 (14:59 -0400)
commitae1bef72c20f9231898e2f5595751a2635d49db8
tree8e7361ebdcce7284e69f78c993bc82594fb5fdcd
parent403797925768d9fa870f5b1ebcd20016b397083b
drm/ttm: add TTM_PL_FLAG_TEMPORARY flag v3

Sometimes drivers need to use bounce buffers to evict BOs. While those reside
in some domain they are not necessarily suitable for CS.

Add a flag so that drivers can note that a bounce buffers needs to be
reallocated during validation.

v2: add detailed comments
v3 (chk): merge commits and rework commit message

Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Acked-by: Nirmoy Das <nirmoy.das@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210622162339.761651-1-andrey.grodzovsky@amd.com
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_placement.h