[PATCH 1/3] drm/ttm: move swapout logic around v2

Christian König ckoenig.leichtzumerken at gmail.com
Thu Mar 18 15:26:10 UTC 2021


Am 18.03.21 um 15:43 schrieb Nirmoy:
> Hi Christian,
>
> On 3/18/21 1:47 PM, Christian König wrote:
> <snip>
>>   /**
>>    * ttm_bo_uses_embedded_gem_object - check if the given bo uses the
>> diff --git a/include/drm/ttm/ttm_device.h b/include/drm/ttm/ttm_device.h
>> index 035bbc044a3b..6a0b267d4fe6 100644
>> --- a/include/drm/ttm/ttm_device.h
>> +++ b/include/drm/ttm/ttm_device.h
>> @@ -297,6 +297,8 @@ struct ttm_device {
>>       struct delayed_work wq;
>>   };
>>   +long ttm_global_swapout(struct ttm_operation_ctx *ctx, gfp_t 
>> gfp_flags);
>
>
> There is a typo here, long -> int.

Ah, yes. I missed to add the change to the header file.

Thanks for pointing that out,
Christian.

>
>
> Thanks,
>
> Nirmoy
>
>
>> +
>>   static inline struct ttm_resource_manager *
>>   ttm_manager_type(struct ttm_device *bdev, int mem_type)
>>   {



More information about the dri-devel mailing list