[PATCH for-next 10/11] IB/hns: Implement the add_gid/del_gid and optimize the GIDs management

2016-11-04 Thread Salil Mehta
u...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_device.h |2 - drivers/infiniband/hw/hns/hns_roce_main.c | 270 +-- 2 files changed, 48 insertions(+), 224 deletions(-) diff --git a/d

[PATCH for-next 09/11] IB/hns: Change qpn allocation to round-robin mode.

2016-11-04 Thread Salil Mehta
g bitmap. We use round-robin mode for qp number and non round-robing mode for other resources like cq number, pd number etc. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_alloc.c

[PATCH for-next 10/11] IB/hns: Implement the add_gid/del_gid and optimize the GIDs management

2016-11-04 Thread Salil Mehta
/del_gid to set the GIDs in the RoCE driver, remove the redundant calculation and management of GIDs in the notifier call of the net device and the inet, and update the query_gid. Signed-off-by: Shaobo Xu Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns

[PATCH for-next 09/11] IB/hns: Change qpn allocation to round-robin mode.

2016-11-04 Thread Salil Mehta
ode for qp number and non round-robing mode for other resources like cq number, pd number etc. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_alloc.c | 11 +++ drivers/infiniband/hw/hns/hns_roce_cq.c |4 ++-- drivers/infinib

[PATCH for-next 06/11] IB/hns: Fix the bug for qp state in hns_roce_v1_m_qp()

2016-11-04 Thread Salil Mehta
huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c index 8ca36a7..2d48406 100

[PATCH for-next 04/11] IB/hns: add self loopback for CM

2016-11-04 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> This patch mainly adds self loopback support for CM. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Peter Chen <luck.c...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta

[PATCH for-next 08/11] IB/hns: Modify query info named port_num when querying RC QP

2016-11-04 Thread Salil Mehta
From: "Wei Hu (Xavier)" <xavier.hu...@huawei.com> This patch modified the output query info qp_attr->port_num to fix bug in hip06. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband

[PATCH for-next 08/11] IB/hns: Modify query info named port_num when querying RC QP

2016-11-04 Thread Salil Mehta
From: "Wei Hu (Xavier)" This patch modified the output query info qp_attr->port_num to fix bug in hip06. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --

[PATCH for-next 06/11] IB/hns: Fix the bug for qp state in hns_roce_v1_m_qp()

2016-11-04 Thread Salil Mehta
From: Lijun Ou In old code, the value of qp state from qpc was assigned for attr->qp_state. The value may be an error while attr_mask & IB_QP_STATE is zero. Signed-off-by: Lijun Ou Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c

[PATCH for-next 04/11] IB/hns: add self loopback for CM

2016-11-04 Thread Salil Mehta
From: Lijun Ou This patch mainly adds self loopback support for CM. Signed-off-by: Lijun Ou Signed-off-by: Peter Chen Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 11 +++ drivers/infiniband/hw/hns/hns_roce_hw_v1.h

[PATCH for-next 05/11] IB/hns: Modify the condition of notifying hardware loopback

2016-11-04 Thread Salil Mehta
e dmac in the QP context equals the smac of the local port N or the loop_idc is 1, we should set loopback bit in QP context to notify hardware. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@hua

[PATCH for-next 03/11] IB/hns: Optimize the logic of allocating memory using APIs

2016-11-04 Thread Salil Mehta
vier) <xavier.hu...@huawei.com> Signed-off-by: Ping Zhang <zhangpi...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_mr.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/infiniba

[PATCH for-next 05/11] IB/hns: Modify the condition of notifying hardware loopback

2016-11-04 Thread Salil Mehta
the smac of the local port N or the loop_idc is 1, we should set loopback bit in QP context to notify hardware. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 24 +++- 1 file changed, 7

[PATCH for-next 03/11] IB/hns: Optimize the logic of allocating memory using APIs

2016-11-04 Thread Salil Mehta
Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_mr.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_mr.c b/drivers/infiniband/hw/hns/hns_roce_mr.c index fb87883..d3dfb5f 100644 --- a/drivers/infinib

[PATCH for-next 01/11] IB/hns: Add the interface for querying QP1

2016-11-04 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> In old code, It only added the interface for querying non-specific QP. This patch mainly adds an interface for querying QP1. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-o

[PATCH for-next 01/11] IB/hns: Add the interface for querying QP1

2016-11-04 Thread Salil Mehta
From: Lijun Ou In old code, It only added the interface for querying non-specific QP. This patch mainly adds an interface for querying QP1. Signed-off-by: Lijun Ou Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 87

RE: [PATCH V2 for-next 0/8] Bug Fixes and Code Improvement in HNS driver

2016-10-13 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Friday, September 30, 2016 6:34 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Zhuangyuzeng (Yisen); Huwei (Xavier); oulijun; > mehta.salil@gmail.com; linux-r...@vger.kernel.org; > n

RE: [PATCH V2 for-next 0/8] Bug Fixes and Code Improvement in HNS driver

2016-10-13 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Friday, September 30, 2016 6:34 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Zhuangyuzeng (Yisen); Huwei (Xavier); oulijun; > mehta.salil@gmail.com; linux-r...@vger.kernel.org; > n

RE: [PATCH for-next 0/8] Bug Fixes and Code Improvement in HNS driver

2016-09-29 Thread Salil Mehta
> Hi Salil, > > I've chatted with Dave Miller about this series. Here's where we > stand. > > First, the review feedback from Dave: > > --- > > In patch #7, their comments are mis-formatted and these > hns guys do this a lot. > > /*fix hardware broadcast/multicast packets queue

RE: [PATCH for-next 0/8] Bug Fixes and Code Improvement in HNS driver

2016-09-29 Thread Salil Mehta
> Hi Salil, > > I've chatted with Dave Miller about this series. Here's where we > stand. > > First, the review feedback from Dave: > > --- > > In patch #7, their comments are mis-formatted and these > hns guys do this a lot. > > /*fix hardware broadcast/multicast packets queue

[PATCH V2 for-next 4/8] net: hns: delete repeat read fbd num after while

2016-09-29 Thread Salil Mehta
licon.com> Reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/h

[PATCH V2 for-next 6/8] net: hns: fix the bug of forwarding table

2016-09-29 Thread Salil Mehta
ueue 0 of each port. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- PATCH V2: Addressed comments by David Miller Link: https://lkml.org/lkml/2016/9/28/390

[PATCH V2 for-next 7/8] net: hns: bug fix about broadcast/multicast packets

2016-09-29 Thread Salil Mehta
packet will be loopback. So this patch select queue 0 to send broadcast and multicast packets. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- PATCH v2: Addressed

[PATCH V2 for-next 4/8] net: hns: delete repeat read fbd num after while

2016-09-29 Thread Salil Mehta
From: Daode Huang Because we handle the received packets after napi, so delete the checking before submitting. It delete the code of read the fbd number register, which reduces the cpu usages while receiving packets Signed-off-by: Daode Huang Reviewed-by: Yisen Zhuang Signed-off-by: Salil

[PATCH V2 for-next 6/8] net: hns: fix the bug of forwarding table

2016-09-29 Thread Salil Mehta
-by: Daode Huang Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- PATCH V2: Addressed comments by David Miller Link: https://lkml.org/lkml/2016/9/28/390 PATCH V1: Initial Submit --- drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c |8 ++-- drivers/net/ethernet/hisilicon

[PATCH V2 for-next 7/8] net: hns: bug fix about broadcast/multicast packets

2016-09-29 Thread Salil Mehta
select queue 0 to send broadcast and multicast packets. Signed-off-by: Daode Huang Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- PATCH v2: Addressed comments by David Miller Link: https://lkml.org/lkml/2016/9/28/390 PATCH V1: Initial Submit --- drivers/net/ethernet/hisilicon

[PATCH V2 for-next 8/8] net: hns: delete redundant broadcast packet filter process

2016-09-29 Thread Salil Mehta
From: Daode Huang <huangda...@hisilicon.com> The broadcast packets is filtered in the hardware now, so this process is no need in the driver, just delete it. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-o

[PATCH V2 for-next 8/8] net: hns: delete redundant broadcast packet filter process

2016-09-29 Thread Salil Mehta
From: Daode Huang The broadcast packets is filtered in the hardware now, so this process is no need in the driver, just delete it. Signed-off-by: Daode Huang Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 10 -- 1 file

[PATCH V2 for-next 2/8] net: hns: bug fix about setting coalsecs-usecs to 0

2016-09-29 Thread Salil Mehta
t to 1 in other case. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c | 16 drivers/ne

[PATCH V2 for-next 0/8] Bug Fixes and Code Improvement in HNS driver

2016-09-29 Thread Salil Mehta
This patch-set introduces fix to some Bugs, potential problems and code improvements identified during internal review and testing of Hisilicon Network Subsystem driver. Submit Change V1->V2: This addresses the feedbacks provided by David Miller and Doug Ledford Daode Huang (6): net:

[PATCH V2 for-next 2/8] net: hns: bug fix about setting coalsecs-usecs to 0

2016-09-29 Thread Salil Mehta
-off-by: Daode Huang Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c | 16 drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h |4 2 files changed, 20 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns

[PATCH V2 for-next 0/8] Bug Fixes and Code Improvement in HNS driver

2016-09-29 Thread Salil Mehta
This patch-set introduces fix to some Bugs, potential problems and code improvements identified during internal review and testing of Hisilicon Network Subsystem driver. Submit Change V1->V2: This addresses the feedbacks provided by David Miller and Doug Ledford Daode Huang (6): net:

[PATCH V2 for-next 3/8] net: hns: add fini_process for v2 napi process

2016-09-29 Thread Salil Mehta
Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 45 + 1 file changed, 38 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c

[PATCH V2 for-next 5/8] net: hns: fix port not available after testing loopback

2016-09-29 Thread Salil Mehta
s register needs to be removed and using promisc mode to let the packet looped back pass by dsaf mode. Reported-by: Jun He <hjat2...@huawei.com> Signed-off-by: Kejian Yan <yankej...@huawei.com> Reviewed-by: Yisen Zhaung <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@

[PATCH V2 for-next 1/8] net: hns: fix port unavailable after hnae_reserve_buffer_map fail

2016-09-29 Thread Salil Mehta
com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c b/drivers/net/ethernet/hisilicon/hns/

[PATCH V2 for-next 3/8] net: hns: add fini_process for v2 napi process

2016-09-29 Thread Salil Mehta
From: Daode Huang This patch adds fini_process for v2, it handles the packets recevied by the hardware in the napi porcess. With this patch, the hardware irq numbers will drop 50% per sec. Signed-off-by: Daode Huang Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net

[PATCH V2 for-next 5/8] net: hns: fix port not available after testing loopback

2016-09-29 Thread Salil Mehta
ng promisc mode to let the packet looped back pass by dsaf mode. Reported-by: Jun He Signed-off-by: Kejian Yan Reviewed-by: Yisen Zhaung Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c |3 --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_mai

[PATCH V2 for-next 1/8] net: hns: fix port unavailable after hnae_reserve_buffer_map fail

2016-09-29 Thread Salil Mehta
From: lipeng When hnae_reserve_buffer_map fail, it will break cycle and some buffer description has no available memory, therefore the port will be unavailable. Signed-off-by: Peng Li Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_enet.c

RE: [PATCH for-next 0/8] Bug Fixes and Code Improvement in HNS driver

2016-09-28 Thread Salil Mehta
> -Original Message- > From: Doug Ledford [mailto:dledf...@redhat.com] > Sent: Wednesday, September 28, 2016 3:57 PM > To: Salil Mehta > Cc: Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > mehta.salil@gmail.com; linux-r...@vger.kernel.org; linux- > ker...@vger

RE: [PATCH for-next 0/8] Bug Fixes and Code Improvement in HNS driver

2016-09-28 Thread Salil Mehta
> -Original Message- > From: Doug Ledford [mailto:dledf...@redhat.com] > Sent: Wednesday, September 28, 2016 3:57 PM > To: Salil Mehta > Cc: Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > mehta.salil@gmail.com; linux-r...@vger.kernel.org; linux- > ker...@vger

RE: [PATCH for-next 18/20] IB/hns: Update the rq head when modify qp state

2016-09-20 Thread Salil Mehta
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Leon Romanovsky > Sent: Tuesday, September 20, 2016 6:06 PM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (

RE: [PATCH for-next 18/20] IB/hns: Update the rq head when modify qp state

2016-09-20 Thread Salil Mehta
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Leon Romanovsky > Sent: Tuesday, September 20, 2016 6:06 PM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (

RE: [PATCH for-next 20/20] IB/hns: Delete the redundant lines in hns_roce_v1_m_qp()

2016-09-20 Thread Salil Mehta
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Leon Romanovsky > Sent: Thursday, September 15, 2016 11:15 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (

RE: [PATCH for-next 20/20] IB/hns: Delete the redundant lines in hns_roce_v1_m_qp()

2016-09-20 Thread Salil Mehta
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Leon Romanovsky > Sent: Thursday, September 15, 2016 11:15 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (

RE: [PATCH for-next 18/20] IB/hns: Update the rq head when modify qp state

2016-09-20 Thread Salil Mehta
> -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Thursday, September 15, 2016 11:13 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > xuwei (O); mehta.salil@gmail.com; linux-r...@vger.k

RE: [PATCH for-next 18/20] IB/hns: Update the rq head when modify qp state

2016-09-20 Thread Salil Mehta
> -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Thursday, September 15, 2016 11:13 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > xuwei (O); mehta.salil@gmail.com; linux-r...@vger.k

RE: [PATCH for-next 03/20] IB/hns: Add the check for pointer ctrl

2016-09-20 Thread Salil Mehta
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Leon Romanovsky > Sent: Thursday, September 15, 2016 11:08 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (

RE: [PATCH for-next 03/20] IB/hns: Add the check for pointer ctrl

2016-09-20 Thread Salil Mehta
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Leon Romanovsky > Sent: Thursday, September 15, 2016 11:08 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (

RE: [PATCH for-next 12/20] IB/hns: Return bad wr while post send failed

2016-09-20 Thread Salil Mehta
> -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Thursday, September 15, 2016 10:08 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > xuwei (O); mehta.salil@gmail.com; linux-r...@vger.k

RE: [PATCH for-next 12/20] IB/hns: Return bad wr while post send failed

2016-09-20 Thread Salil Mehta
> -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Thursday, September 15, 2016 10:08 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > xuwei (O); mehta.salil@gmail.com; linux-r...@vger.k

[PATCH V2 for-next 01/19] IB/hns: Remove unused parameters in some functions

2016-09-20 Thread Salil Mehta
u...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_cq.c | 7 +++ drivers/infiniband/hw/hns/hns_roce_device.h | 1 - drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 13 - drivers/infiniband/hw/hns/hns_roce_main.c |

[PATCH V2 for-next 01/19] IB/hns: Remove unused parameters in some functions

2016-09-20 Thread Salil Mehta
From: Lijun Ou The parameter named collapsed unused in hns_roce_cq_alloc. Also, parameter named doorbell_lock unsed in hns_roce_v1_cq_set_ci. This patch optimize these parameters. Signed-off-by: Lijun Ou Reviewed-by: Wei Hu Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns

[PATCH V2 for-next 02/19] IB/hns: Remove parameters of resize cq

2016-09-20 Thread Salil Mehta
vier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_cq.c | 3 --- drivers/infiniband/hw/hns/hns_roce_device.h | 9 - 2 files changed, 12 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_cq.c b/drivers/infinib

[PATCH V2 for-next 02/19] IB/hns: Remove parameters of resize cq

2016-09-20 Thread Salil Mehta
From: Lijun Ou In old version of RoCE, it doesn't support to resize cq. So, we remove parameters related to resize cq. Signed-off-by: Lijun Ou Signed-off-by: Dongdong Huang(Donald) Reviewed-by: Wei Hu Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_cq.c | 3

[PATCH V2 for-next 09/19] IB/hns: Modify the init of iboe lock

2016-09-20 Thread Salil Mehta
; Signed-off-by: Dongdong Huang(Donald) <hdd.hu...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- PATCH V2: Addressed Leon Romanovsky's comments Link: https://lkml.org/lkml/2016/9/13/51 PATCH V1: Initial

[PATCH V2 for-next 17/19] IB/hns: Fix the bug when platform_get_resource() exec fail

2016-09-20 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> This patch mainly fixes the bug with platform_get_resource(). It should return NULL when platform_get_resource() exec fail. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-o

[PATCH V2 for-next 19/19] IB/hns: Fix for removal of redundant code

2016-09-20 Thread Salil Mehta
This patch removes the redundant code lines present in the functions get_send_wqe() and get_recv_wqe(). This also fixes the error in calculating the SQ WQE. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Meh

[PATCH V2 for-next 12/19] IB/hns: The Ack timeout need a lower limit value

2016-09-20 Thread Salil Mehta
vier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/drivers/infiniband/hw/hns/hns_roce_

[PATCH V2 for-next 18/19] IB/hns: Delete the redundant lines in hns_roce_v1_m_qp()

2016-09-20 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> It doesn't need to assign for the filed of qp state in qpc separately when qp happen to migrate state which supported in RoCE engine v1. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Si

[PATCH V2 for-next 09/19] IB/hns: Modify the init of iboe lock

2016-09-20 Thread Salil Mehta
Hu (Xavier) Signed-off-by: Salil Mehta --- PATCH V2: Addressed Leon Romanovsky's comments Link: https://lkml.org/lkml/2016/9/13/51 PATCH V1: Initial patch --- drivers/infiniband/hw/hns/hns_roce_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers

[PATCH V2 for-next 17/19] IB/hns: Fix the bug when platform_get_resource() exec fail

2016-09-20 Thread Salil Mehta
From: Lijun Ou This patch mainly fixes the bug with platform_get_resource(). It should return NULL when platform_get_resource() exec fail. Signed-off-by: Lijun Ou Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_pd.c | 4 1 file changed, 4

[PATCH V2 for-next 19/19] IB/hns: Fix for removal of redundant code

2016-09-20 Thread Salil Mehta
This patch removes the redundant code lines present in the functions get_send_wqe() and get_recv_wqe(). This also fixes the error in calculating the SQ WQE. Signed-off-by: Lijun Ou Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- PATCH V1: This has been create to address the Leon

[PATCH V2 for-next 12/19] IB/hns: The Ack timeout need a lower limit value

2016-09-20 Thread Salil Mehta
From: Lijun Ou The Ack timeout of qpc need a lower limit value,otherwise the read performance will be very lower. Signed-off-by: Lijun Ou Signed-off-by: Dongdong Huang(Donald) Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 17

[PATCH V2 for-next 18/19] IB/hns: Delete the redundant lines in hns_roce_v1_m_qp()

2016-09-20 Thread Salil Mehta
From: Lijun Ou It doesn't need to assign for the filed of qp state in qpc separately when qp happen to migrate state which supported in RoCE engine v1. Signed-off-by: Lijun Ou Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- PATCH V2: Addressed comments provided by Leon

[PATCH V2 for-next 10/19] IB/hns: Fix bug of memory leakage for registering user mr

2016-09-20 Thread Salil Mehta
Huang(Donald) <hdd.hu...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_mr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/infiniband/hw/hns/hns_roce_mr.

[PATCH V2 for-next 15/19] IB/hns: Cq has not been freed

2016-09-20 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> Cq has not been freed when fail to ib_copy_to_udata, so need to free it. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Peter Chen <luck.c...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-b

[PATCH V2 for-next 16/19] IB/hns: Update the rq head when modify qp state

2016-09-20 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> The rq head in qpc was zero will miss the rq wqes which have be sent, so here we should take the real value. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <s

[PATCH V2 for-next 14/19] IB/hns: Validate mtu when modified qp

2016-09-20 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> The mtu should be validated when modify qp,so we check it. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Peter Chen <luck.c...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta

[PATCH V2 for-next 15/19] IB/hns: Cq has not been freed

2016-09-20 Thread Salil Mehta
From: Lijun Ou Cq has not been freed when fail to ib_copy_to_udata, so need to free it. Signed-off-by: Lijun Ou Signed-off-by: Peter Chen Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_cq.c | 5 - 1 file changed, 4 insertions(+), 1

[PATCH V2 for-next 16/19] IB/hns: Update the rq head when modify qp state

2016-09-20 Thread Salil Mehta
From: Lijun Ou The rq head in qpc was zero will miss the rq wqes which have be sent, so here we should take the real value. Signed-off-by: Lijun Ou Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 3 ++- 1 file changed, 2 insertions

[PATCH V2 for-next 14/19] IB/hns: Validate mtu when modified qp

2016-09-20 Thread Salil Mehta
From: Lijun Ou The mtu should be validated when modify qp,so we check it. Signed-off-by: Lijun Ou Signed-off-by: Peter Chen Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- PATCH V2: Addressed Leon Romanovsky's comments Link: https://lkml.org/lkml/2016/9/13/39 PATCH V1

[PATCH V2 for-next 10/19] IB/hns: Fix bug of memory leakage for registering user mr

2016-09-20 Thread Salil Mehta
-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_mr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/infiniband/hw/hns/hns_roce_mr.c b/drivers/infiniband/hw/hns/hns_roce_mr.c index 59f5e2b..fb87883 100644 --- a/drivers/infiniband/hw/hns/hns_roce_mr.c +++ b/drivers

[PATCH V2 for-next 13/19] IB/hns: Some items of qpc need to take user param

2016-09-20 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> Some items of qpc need to take user param when modified qp state. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Dongdong Huang(Donald) <hdd.hu...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Si

[PATCH V2 for-next 11/19] IB/hns: Return bad wr while post send failed

2016-09-20 Thread Salil Mehta
y: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- PATCH V2: Addressed commnets by Leon Romanovsky Link: https://lkml.org/lkml/2016/9/15/98 PATCH V1: Initial submit --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 11 +++ 1 fi

[PATCH V2 for-next 13/19] IB/hns: Some items of qpc need to take user param

2016-09-20 Thread Salil Mehta
From: Lijun Ou Some items of qpc need to take user param when modified qp state. Signed-off-by: Lijun Ou Signed-off-by: Dongdong Huang(Donald) Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 6 -- 1 file changed, 4 insertions

[PATCH V2 for-next 11/19] IB/hns: Return bad wr while post send failed

2016-09-20 Thread Salil Mehta
From: Lijun Ou While post failed, hns roce should return the wr failed to user. We omitted this while qp type is wrong and fixed it. Signed-off-by: Lijun Ou Signed-off-by: Dongdong Huang(Donald) Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- PATCH V2: Addressed commnets

[PATCH V2 for-next 05/19] IB/hns: Remove unused parameter named qp_type

2016-09-20 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> This patch removes the qp_type parameter in hns_roce_set_kernel_sq_size(). Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Ping Zhang <zhangpi...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-b

[PATCH V2 for-next 05/19] IB/hns: Remove unused parameter named qp_type

2016-09-20 Thread Salil Mehta
From: Lijun Ou This patch removes the qp_type parameter in hns_roce_set_kernel_sq_size(). Signed-off-by: Lijun Ou Signed-off-by: Ping Zhang Reviewed-by: Wei Hu Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_qp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions

[PATCH V2 for-next 00/19] IB/hns: Fixes for various misc. bugs

2016-09-20 Thread Salil Mehta
Fix the bug when platform_get_resource() exec fail IB/hns: Delete the redundant lines in hns_roce_v1_m_qp() Salil Mehta (1): IB/hns: Fix for removal of redundant code Wei Hu (Xavier) (3): IB/hns: Fix bug of clear hem IB/hns: Delete the sqp_start from the structure hns_roce_caps IB/hns: Opt

[PATCH V2 for-next 03/19] IB/hns: Fix bug of using uninit refcount and free

2016-09-20 Thread Salil Mehta
by: Dongdong Huang(Donald) <hdd.hu...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_cq.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/infiniband/hw/hns/hns_r

[PATCH V2 for-next 03/19] IB/hns: Fix bug of using uninit refcount and free

2016-09-20 Thread Salil Mehta
-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_cq.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/infiniband/hw/hns/hns_roce_cq.c b/drivers/infiniband/hw/hns/hns_roce_cq.c index a52306f..3095f06 100644 --- a/drivers/infiniband/hw/hns/hns_roce_cq.c +++ b/drivers

[PATCH V2 for-next 00/19] IB/hns: Fixes for various misc. bugs

2016-09-20 Thread Salil Mehta
Fix the bug when platform_get_resource() exec fail IB/hns: Delete the redundant lines in hns_roce_v1_m_qp() Salil Mehta (1): IB/hns: Fix for removal of redundant code Wei Hu (Xavier) (3): IB/hns: Fix bug of clear hem IB/hns: Delete the sqp_start from the structure hns_roce_caps IB/hns: Opt

[PATCH V2 for-next 04/19] IB/hns: Simplify function of pd alloc and qp alloc

2016-09-20 Thread Salil Mehta
eviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_pd.c | 14 +- drivers/infiniband/hw/hns/hns_roce_qp.c | 10 +- 2 files changed, 2 insertions(+), 22 deletions(-) diff --g

[PATCH V2 for-next 04/19] IB/hns: Simplify function of pd alloc and qp alloc

2016-09-20 Thread Salil Mehta
From: Lijun Ou Hns_roce_pd_alloc and hns_roce_reserve_range_qp use unnecessary transformation of parameters. This patch simplify these two functions. Signed-off-by: Lijun Ou Signed-off-by: Dongdong Huang(Donald) Reviewed-by: Wei Hu Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns

[PATCH V2 for-next 06/19] IB/hns: Fix bug of clear hem

2016-09-20 Thread Salil Mehta
vier) <xavier.hu...@huawei.com> Signed-off-by: Dongdong Huang(Donald) <hdd.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_device.h | 2 + drivers/infiniband/hw/hns/hns_roce_hem.c| 76 +-- drivers/infinib

[PATCH V2 for-next 07/19] IB/hns: Delete the sqp_start from the structure hns_roce_caps

2016-09-20 Thread Salil Mehta
From: "Wei Hu (Xavier)" <xavier.hu...@huawei.com> This patch deleted the sqp_start from the structure hns_roce_caps, and modified the calculation of the qp number. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com

[PATCH V2 for-next 08/19] IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn

2016-09-20 Thread Salil Mehta
sync event queue. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- PATCH V2: Addressed Leon Romanovsky's comment Link: https://lkml.org/lkml/2016/9/12/303 PATCH V1: Initial patch --- drivers/infiniban

[PATCH V2 for-next 07/19] IB/hns: Delete the sqp_start from the structure hns_roce_caps

2016-09-20 Thread Salil Mehta
From: "Wei Hu (Xavier)" This patch deleted the sqp_start from the structure hns_roce_caps, and modified the calculation of the qp number. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_device.h | 1 - drivers/infiniband/hw/hns/hns_

[PATCH V2 for-next 08/19] IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn

2016-09-20 Thread Salil Mehta
by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- PATCH V2: Addressed Leon Romanovsky's comment Link: https://lkml.org/lkml/2016/9/12/303 PATCH V1: Initial patch --- drivers/infiniband/hw/hns/hns_roce_eq.c | 146 drivers/infiniband/hw/hns/hns_roce_eq.h

[PATCH V2 for-next 06/19] IB/hns: Fix bug of clear hem

2016-09-20 Thread Salil Mehta
ang(Donald) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_device.h | 2 + drivers/infiniband/hw/hns/hns_roce_hem.c| 76 +-- drivers/infiniband/hw/hns/hns_roce_hem.h| 4 + drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 140 +++

[PATCH V3 for-next 6/9] IB/hns: Change the logic for allocating uar registers

2016-09-15 Thread Salil Mehta
cation Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_pd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband

[PATCH V3 for-next 4/9] IB/hns: Fix two possible bugs for rdma cm

2016-09-15 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> Fix the length of wqe that maybe lead to an error and write the end bytes of QP1C into the register. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@hua

[PATCH V3 for-next 5/9] IB/hns: Add phy_port for computing GSI/QPN

2016-09-15 Thread Salil Mehta
r-port. This also fixes a bug in base driver where iboe port was being used instead of phy_port at some places. This values might not be same always. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@hua

[PATCH V3 for-next 7/9] IB/hns: Fix the bug of rdma cm connecting on user mode

2016-09-15 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> Fix bug of modify qp from init to init on user mode. Otherwise, it will oops when rmda cm established. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@hua

[PATCH V3 for-next 3/9] IB/hns: Fix the value of device_cap_flags

2016-09-15 Thread Salil Mehta
Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c

[PATCH V3 for-next 9/9] IB/hns: Add node_guid definition to the bindings document

2016-09-15 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> This patch adds node_guid definition in bindings document. The value of node_guid will be used during RDMA connection. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <s

[PATCH V3 for-next 6/9] IB/hns: Change the logic for allocating uar registers

2016-09-15 Thread Salil Mehta
Ou Reviewed-by: Wei Hu Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_pd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_pd.c b/drivers/infiniband/hw/hns/hns_roce_pd.c index 16271b5..4109f74 100644 --- a/drivers

[PATCH V3 for-next 4/9] IB/hns: Fix two possible bugs for rdma cm

2016-09-15 Thread Salil Mehta
From: Lijun Ou Fix the length of wqe that maybe lead to an error and write the end bytes of QP1C into the register. Signed-off-by: Lijun Ou Reviewed-by: Wei Hu Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 10 -- 1 file changed, 4 insertions(+), 6

[PATCH V3 for-next 5/9] IB/hns: Add phy_port for computing GSI/QPN

2016-09-15 Thread Salil Mehta
in base driver where iboe port was being used instead of phy_port at some places. This values might not be same always. Signed-off-by: Lijun Ou Reviewed-by: Wei Hu Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_device.h | 1 + drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 30

[PATCH V3 for-next 7/9] IB/hns: Fix the bug of rdma cm connecting on user mode

2016-09-15 Thread Salil Mehta
From: Lijun Ou Fix bug of modify qp from init to init on user mode. Otherwise, it will oops when rmda cm established. Signed-off-by: Lijun Ou Reviewed-by: Wei Hu Signed-off-by: Salil Mehta --- PATCH V3: Fixed compilation break reported by kbuild Link: https://lkml.org/lkml/2016/9

<    5   6   7   8   9   10   11   12   13   >