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

Nirmoy nirmodas at amd.com
Thu Mar 18 19:46:43 UTC 2021


On 3/18/21 4:26 PM, Christian König wrote:
> 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.


I have tested the patch series on qxl and vmwgfx.

With that typo fixed, the series is Tested-by: Nirmoy Das 
<nirmoy.das at amd.com>


>
> 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