Re: [PATCH] drm/ttm: use ttm_resource_unevictable() to replace pin_count and swapped

2025-02-09 Thread Zhaoyu Liu
On Tue, Feb 04, 2025 at 08:59:08AM +0100, Christian König wrote: > Am 26.01.25 um 10:32 schrieb Zhaoyu Liu: > > 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-

Re: [PATCH] drm/ttm: use ttm_resource_unevictable() to replace pin_count and swapped

2025-02-04 Thread 刘照玉
> From: "Zhaoyu Liu" > Date: Sun, Jan 26, 2025, 17:33 > Subject: [PATCH] drm/ttm: use ttm_resource_unevictable() to replace pin_count and swapped > To: , < ray.hu...@amd.com>, , , , , > Cc: < dri-devel@lists.freedesktop.org>, > TTM always uses pin_coun

Re: [PATCH] drm/ttm: use ttm_resource_unevictable() to replace pin_count and swapped

2025-02-03 Thread Christian König
Am 26.01.25 um 10:32 schrieb Zhaoyu Liu: 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 Reviewed-by: Christian König I will pick this up for drm-misc-nex

[PATCH] drm/ttm: use ttm_resource_unevictable() to replace pin_count and swapped

2025-01-26 Thread Zhaoyu Liu
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 --- drivers/gpu/drm/ttm/ttm_resource.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-)