]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: fix ttm_bo_swapout
authorChristian König <christian.koenig@amd.com>
Thu, 2 Dec 2021 10:29:08 +0000 (11:29 +0100)
committerChristian König <christian.koenig@amd.com>
Fri, 3 Dec 2021 13:01:46 +0000 (14:01 +0100)
commit1e3ec04cdf0db2f0f681a8e5df71c74a62bcaa05
tree296a70b7eeaaef49db2dc8211c8dcca9ada723f4
parent34afcd4dff978b2e529af69fbe7afceedaf22e64
drm/ttm: fix ttm_bo_swapout

Commit 5f1326718ade ("drm/ttm: Double check mem_type of BO while eviction")
made ttm_bo_evict_swapout_allowable() function actually check the
placement, but we always used a dummy placement in ttm_bo_swapout.

Fix this by using the real placement instead.

Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: 5f1326718ade ("drm/ttm: Double check mem_type of BO while eviction")
Reviewed-by: Pan, Xinhui <Xinhui.Pan@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211202103828.44573-1-christian.koenig@amd.com
drivers/gpu/drm/ttm/ttm_bo.c