Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933490AbcCNGuU (ORCPT ); Mon, 14 Mar 2016 02:50:20 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:42009 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751159AbcCNGuO (ORCPT ); Mon, 14 Mar 2016 02:50:14 -0400 Subject: Re: [PATCH 3/4] infiniband: hns: add Hisilicon RoCE support(driver code) To: Parav Pandit , "Wei Hu(Xavier)" References: CC: Doug Ledford , "Hefty, Sean" , , , , , Or Gerlitz , , , , , , , , , , , , From: oulijun Message-ID: <56E65EFC.3030109@huawei.com> Date: Mon, 14 Mar 2016 14:49:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.61.25.147] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020205.56E65F0C.00C1,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 5fc687ca0aa0c626ad70d1f20189a9a4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2437 Lines: 59 Hi Parav Pandit, thanks your reviewing. On 2016/3/4 17:37, Parav Pandit wrote: > On Fri, Mar 4, 2016 at 2:11 PM, Wei Hu(Xavier) wrote: >> + >> +int hns_roce_register_device(struct hns_roce_dev *hr_dev) >> +{ >> + int ret; >> + struct hns_roce_ib_iboe *iboe = NULL; >> + struct ib_device *ib_dev = NULL; >> + struct device *dev = &hr_dev->pdev->dev; >> + >> + iboe = &hr_dev->iboe; >> + >> + ib_dev = &hr_dev->ib_dev; >> + strlcpy(ib_dev->name, "hisi_%d", IB_DEVICE_NAME_MAX); >> + >> + ib_dev->owner = THIS_MODULE; >> + ib_dev->node_type = RDMA_NODE_IB_CA; >> + ib_dev->dma_device = dev; >> + >> + ib_dev->phys_port_cnt = hr_dev->caps.num_ports; >> + ib_dev->local_dma_lkey = hr_dev->caps.reserved_lkey; >> + ib_dev->num_comp_vectors = hr_dev->caps.num_comp_vectors; >> + ib_dev->uverbs_abi_ver = 1; >> + ib_dev->uverbs_cmd_mask = >> + (1ULL << IB_USER_VERBS_CMD_GET_CONTEXT) | >> + (1ULL << IB_USER_VERBS_CMD_QUERY_DEVICE) | >> + (1ULL << IB_USER_VERBS_CMD_QUERY_PORT) | >> + (1ULL << IB_USER_VERBS_CMD_ALLOC_PD) | >> + (1ULL << IB_USER_VERBS_CMD_DEALLOC_PD) | >> + (1ULL << IB_USER_VERBS_CMD_REG_MR) | >> + (1ULL << IB_USER_VERBS_CMD_DEREG_MR) | >> + (1ULL << IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL) | >> + (1ULL << IB_USER_VERBS_CMD_CREATE_CQ) | >> + (1ULL << IB_USER_VERBS_CMD_DESTROY_CQ) | >> + (1ULL << IB_USER_VERBS_CMD_CREATE_QP) | >> + (1ULL << IB_USER_VERBS_CMD_MODIFY_QP) | >> + (1ULL << IB_USER_VERBS_CMD_QUERY_QP) | >> + (1ULL << IB_USER_VERBS_CMD_DESTROY_QP); >> + > > Since SRQ is not supported in this driver version, can you keep > remaining code base also to not bother about SRQ specifically > poll_cq_one, modify_qp, destroy_qp etc? > SRQ support can come as complete additional patch along with cmd_mask, > callbacks and rest of the code. > > . Sorry, I see your review in time. Sure, SRQ is not supported in current roce driver. I have verified the function for RDMA. It is not influence. For your question, we need to analyse it scientific. after that, i will reply your doubt, is that ok? thanks Lijun Ou >