Re: [PATCH v2 for-next] RDMA/hns: Add FRMR support for hip08

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2018/10/16 14:27, Jason Gunthorpe wrote:
> On Fri, Oct 05, 2018 at 05:53:24PM +0800, Yixian Liu wrote:
>> This patch adds fast register physical memory region (FRMR)
>> support for hip08.
>>
>> Signed-off-by: Yixian Liu <liuyixian@xxxxxxxxxx>
>> ---
>> v1->v2:
>> 1. Remove device_cap_flags set for MEM_MGT_EXTENSIONS as hns
>>    doesn't support all the features of this flag.
>> ---
>>  drivers/infiniband/hw/hns/hns_roce_device.h | 10 +++
>>  drivers/infiniband/hw/hns/hns_roce_hw_v2.c  | 98 ++++++++++++++++++++++++++++-
>>  drivers/infiniband/hw/hns/hns_roce_hw_v2.h  | 22 +++++++
>>  drivers/infiniband/hw/hns/hns_roce_main.c   |  6 ++
>>  drivers/infiniband/hw/hns/hns_roce_mr.c     | 92 ++++++++++++++++++++++++---
>>  5 files changed, 218 insertions(+), 10 deletions(-)
> 
> Applied to for-next, thanks
> 
>> --- a/drivers/infiniband/hw/hns/hns_roce_main.c
>> +++ b/drivers/infiniband/hw/hns/hns_roce_main.c
>> @@ -535,6 +535,12 @@ static int hns_roce_register_device(struct hns_roce_dev *hr_dev)
>>  					(1ULL << IB_USER_VERBS_CMD_DEALLOC_MW);
>>  	}
>>  
>> +	/* FRMR */
>> +	if (hr_dev->caps.flags & HNS_ROCE_CAP_FLAG_FRMR) {
>> +		ib_dev->alloc_mr		= hns_roce_alloc_mr;
>> +		ib_dev->map_mr_sg		= hns_roce_map_mr_sg;
> 
> I removed this silly use of horizontal whitespace though
> 

Thanks a lot.^_^

> Jason
> 
> 




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux