drm/ttm: Put BO in its memory manager's lru list
authorxinhui pan <xinhui.pan@amd.com>
Wed, 10 Nov 2021 04:31:48 +0000 (12:31 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 09:53:44 +0000 (10:53 +0100)
commited0b1fd3ec6e4a033c07b023153248ca1837ec79
tree2eab5a4aec8c0bbd4f821b2c5c46d07ecd383ffc
parent7b9fa915a58d441437f13724fabb51c605a49fbd
drm/ttm: Put BO in its memory manager's lru list

commit 781050b0a3164934857c300bb0bc291e38c26b6f upstream.

After we move BO to a new memory region, we should put it to
the new memory manager's lru list regardless we unlock the resv or not.

Cc: stable@vger.kernel.org
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211110043149.57554-1-xinhui.pan@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/ttm/ttm_bo.c