]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ttm: use ttm_resource_unevictable() to replace pin_count and swapped
authorZhaoyu Liu <liuzhaoyu.zackary@bytedance.com>
Sun, 26 Jan 2025 09:32:56 +0000 (17:32 +0800)
committerChristian König <christian.koenig@amd.com>
Mon, 10 Feb 2025 12:39:03 +0000 (13:39 +0100)
commit0678c15b942770223ec339ed58c79303d1b991ec
treecf7d6ce9dfa53e2246d235c17147ba68ecdeeaa2
parent011529fe81121e2d343522ecbb149e9b2d1e5931
drm/ttm: use ttm_resource_unevictable() to replace pin_count and swapped

TTM always uses pin_count and ttm_resource_is_swapped() together to
determine whether a BO is unevictable.
Now use ttm_resource_unevictable() to replace them.

Signed-off-by: Zhaoyu Liu <liuzhaoyu.zackary@bytedance.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250126093256.GA688734@bytedance
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/ttm/ttm_resource.c