[PATCH] drm/ttm: Remove unnecessary drm_mm_clean

Zeng Heng zengheng4 at huawei.com
Wed Oct 12 13:09:34 UTC 2022


On 2022/10/12 20:56, Christian König wrote:
> Am 12.10.22 um 14:47 schrieb Zeng Heng:
>> Remove unnecessary `drm_mm_clean` calling in
>> `ttm_range_man_fini_nocheck`, due to effective
>> check is already included in the following
>> `drm_mm_takedown`.
>>
>> Signed-off-by: Zeng Heng <zengheng4 at huawei.com>
>
> Reviewed-by: Christian König <christian.koenig at amd.com>
>
> Can you push it to drm-misc-next or should I do that?

This patch applied to drm next is OK for me, if it is at your convenience.

B.R.,

Zeng Heng

>
> Thanks,
> Christian.
>
>> ---
>>   drivers/gpu/drm/ttm/ttm_range_manager.c | 1 -
>>   1 file changed, 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/ttm/ttm_range_manager.c 
>> b/drivers/gpu/drm/ttm/ttm_range_manager.c
>> index 4cfef2b3514d..f7c16c46cfbc 100644
>> --- a/drivers/gpu/drm/ttm/ttm_range_manager.c
>> +++ b/drivers/gpu/drm/ttm/ttm_range_manager.c
>> @@ -229,7 +229,6 @@ int ttm_range_man_fini_nocheck(struct ttm_device 
>> *bdev,
>>           return ret;
>>         spin_lock(&rman->lock);
>> -    drm_mm_clean(mm);
>>       drm_mm_takedown(mm);
>>       spin_unlock(&rman->lock);
>


More information about the dri-devel mailing list