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_
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_
-off-by: Dongdong Huang(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 +++
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
-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
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
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: Optimiz
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
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 by
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
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
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
PAT
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/dr
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
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
-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
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
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
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
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
> -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
> -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 (
> -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
> -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 (
> -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 (
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
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
-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
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
)
Signed-off-by: Salil Mehta
---
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
b/drivers/infiniband/hw/hns/hns_roce_main.c
index 2704076..4721c0c 100644
--- a/drivers/infiniband/hw/hns
From: Lijun Ou
Some pointers have not be checked when they are null,
so we add check for them.
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 | 11 +++
1 file
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
---
drivers/infiniband/hw/hns
From: Lijun Ou
The pointer ctrl may be null, so we add check for it.
Signed-off-by: Lijun Ou
Reviewed-by: Wei Hu
Signed-off-by: Salil Mehta
---
drivers/infiniband/hw/hns/hns_roce_hw_v1.c |6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
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
---
drivers/infiniband/hw/hns/hns_roce_qp.c | 15 +++
1 file changed, 15 insertions(+)
diff
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
by: Wei Hu (Xavier)
Signed-off-by: Salil Mehta
---
drivers/infiniband/hw/hns/hns_roce_eq.c | 146 +++
drivers/infiniband/hw/hns/hns_roce_eq.h |4 +
2 files changed, 75 insertions(+), 75 deletions(-)
diff --git a/drivers/infiniband/hw/hns/hns_roce_eq.c
b/drivers/
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
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/infinib
-off-by: Dongdong Huang(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 ++
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
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
-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
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 |
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
---
drivers/infiniband/hw/hns/hns_roce_hw_v1.c |
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
This patch-set introduces fixes for various bugs and potential
problems found during internal review and testing phases of
the HNS RoCE driver.
NOTE: These fixes have been done over already floated CM
patch: https://lkml.org/lkml/2016/9/1/609
Fixes have been done & tested by Oulijun and Huwei.
> -Original Message-
> From: Leon Romanovsky [mailto:l...@kernel.org]
> Sent: Monday, September 12, 2016 1:40 PM
> To: Salil Mehta
> Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen);
> mehta.salil@gmail.com; linux-r...@vger.kernel
This patch-set adds the CM(Connection Manager) support to the
HNS RoCE driver. Changes done are primarily to add support of
APIs in IB device and some fixes over the base driver to
support RDMA Connection Manager. This patch-set also updates
the Device binding document as new parameter node-guid wa
: Wei Hu
Signed-off-by: Salil Mehta
---
drivers/infiniband/hw/hns/hns_roce_main.c | 20
1 file changed, 20 insertions(+)
diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c
b/drivers/infiniband/hw/hns/hns_roce_main.c
index f64f0dd..39e69c3 100644
--- a/drivers/infiniband
device. This value shall be used by
RDMA CM.
Signed-off-by: Lijun Ou
Reviewed-by: Wei Hu
Signed-off-by: Salil Mehta
---
PATCH V2: Addressed the comment by Leon Romanovsky
* Link: https://lkml.org/lkml/2016/9/12/309
PATCH V1: Initial Patch
---
drivers/infiniband/hw/hns
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
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
From: Lijun Ou
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
Reviewed-by: Wei Hu
Signed-off-by: Salil Mehta
---
Documentation/devicetree/bindings/infiniband/hisilicon-hns-roce.txt | 2 ++
1 file
d-off-by: Salil Mehta
---
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
b/drivers/infiniband/hw/hns/hns_roce_main.c
index f0700f4..a9960ba 100644
--- a/drivers/infiniband/hw/hns/hns_roc
From: Lijun Ou
This patch mainly modify the value of HNS_ROCE_SL_SHIFT
and delete the lines for assigning for the field of
local_enable_e2e_credit in QP1C.
Signed-off-by: Lijun Ou
Reviewed-by: Wei Hu
Signed-off-by: Salil Mehta
---
drivers/infiniband/hw/hns/hns_roce_device.h | 2 +-
drivers
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
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
---
drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 41 ++
1 file changed, 14
> -Original Message-
> From: Leon Romanovsky [mailto:l...@kernel.org]
> Sent: Tuesday, September 13, 2016 7:33 AM
> To: Salil Mehta
> Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen);
> xuwei (O); mehta.salil@gmail.com; linux-r...@vger.kernel.o
> -Original Message-
> From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma-
> ow...@vger.kernel.org] On Behalf Of Leon Romanovsky
> Sent: Tuesday, September 13, 2016 7:50 AM
> To: Salil Mehta
> Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (
> -Original Message-
> From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma-
> ow...@vger.kernel.org] On Behalf Of Leon Romanovsky
> Sent: Tuesday, September 13, 2016 8:00 AM
> To: Salil Mehta
> Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (
> -Original Message-
> From: Leon Romanovsky [mailto:l...@kernel.org]
> Sent: Wednesday, September 14, 2016 6:05 AM
> To: Salil Mehta
> Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen);
> xuwei (O); mehta.salil@gmail.com; linux-r...@vger.k
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
---
drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 41 ++--
1 file changed, 14
: Wei Hu
Signed-off-by: Salil Mehta
---
drivers/infiniband/hw/hns/hns_roce_main.c | 20
1 file changed, 20 insertions(+)
diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c
b/drivers/infiniband/hw/hns/hns_roce_main.c
index f64f0dd..39e69c3 100644
--- a/drivers
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
From: Lijun Ou
This patch adds support of add_gid() and del_gid() function in the
HNS RoCE driver for manipulation of the GID table associated with
port. This shall be used be used by CM when connection is
established.
Signed-off-by: Lijun Ou
Reviewed-by: Wei Hu
Signed-off-by: Salil Mehta
This patch-set adds the CM(Connection Manager) support to the
HNS RoCE driver. Changes done are primarily to add support of
APIs in IB device and some fixes over the base driver to
support RDMA Connection Manager. This patch-set also updates
the Device binding document as new parameter node-guid wa
d-off-by: Salil Mehta
---
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
b/drivers/infiniband/hw/hns/hns_roce_main.c
index ec27f0c..b54074d 100644
--- a/drivers/infiniband/hw/hns/hns_roc
device. This value shall be used by
RDMA CM.
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_main.c |7 +++
2 files changed, 8 insertions(+)
diff --git a/drivers
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
From: Lijun Ou
This patch mainly modify the value of HNS_ROCE_SL_SHIFT
and delete the lines for assigning for the field of
local_enable_e2e_credit in QP1C.
Signed-off-by: Lijun Ou
Reviewed-by: Wei Hu
Signed-off-by: Salil Mehta
---
drivers/infiniband/hw/hns/hns_roce_device.h |2
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
From: Lijun Ou
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
Reviewed-by: Wei Hu
Signed-off-by: Salil Mehta
---
.../bindings/infiniband/hisilicon-hns-roce.txt |2 ++
1 file changed, 2
DSDT table) part of the UEFI/BIOS. Again, this
change is NOT reflected in this patch-set.
Salil Mehta (2):
net: hns: Add support of ACPI to HNS driver RoCE Reset function
IB/hns: Add support of ACPI to the Hisilicon RoCE driver
drivers/infiniband/hw/hns/hns_roce_device.h|2 +
://github.com/dledford/linux/tree/hns-roce
Signed-off-by: Salil Mehta
---
Change Log
PATCH V1: Initial version to support ACPI in HNS RoCE driver.
---
drivers/infiniband/hw/hns/hns_roce_device.h |2 +-
drivers/infiniband/hw/hns/hns_roce_eq.c |2 +-
drivers/infiniband/hw/hns
e net-next:
https://www.mail-archive.com/netdev@vger.kernel.org/msg123867.html
Signed-off-by: Salil Mehta
Reviewed-by: Yisen Zhuang
---
Change Log
PATCH V1: Initial version to support ACPI in RoCE Reset
functionality of the HNS driver.
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac
> -Original Message-
> From: Leon Romanovsky [mailto:l...@kernel.org]
> Sent: Wednesday, August 24, 2016 2:59 PM
> To: Salil Mehta
> Cc: dledf...@redhat.com; da...@davemloft.net; Huwei (Xavier); oulijun;
> Zhuangyuzeng (Yisen); mehta.salil@gmail.com; linux-
> r...
> -Original Message-
> From: David Miller [mailto:da...@davemloft.net]
> Sent: Thursday, August 25, 2016 5:54 AM
> To: Salil Mehta
> Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen);
> mehta.salil@gmail.com; linux-r...@vger.kernel.org;
> n
> -Original Message-
> From: Doug Ledford [mailto:dledf...@redhat.com]
> Sent: Thursday, August 25, 2016 12:57 PM
> To: David Miller; Salil Mehta
> Cc: Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen);
> mehta.salil@gmail.com; linux-r...@vger.kernel.org;
> net...@v
> -Original Message-
> From: Doug Ledford [mailto:dledf...@redhat.com]
> Sent: Thursday, August 25, 2016 2:53 PM
> To: Salil Mehta; David Miller
> Cc: Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen);
> mehta.salil@gmail.com; linux-r...@vger.kernel.org;
> net...@v
> -Original Message-
> From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma-
> ow...@vger.kernel.org] On Behalf Of Doug Ledford
> Sent: Thursday, August 25, 2016 3:09 PM
> To: Salil Mehta; David Miller
> Cc: Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen);
> meht
> -Original Message-
> From: Doug Ledford [mailto:dledf...@redhat.com]
> Sent: Thursday, August 25, 2016 4:00 PM
> To: Salil Mehta; David Miller
> Cc: Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen);
> mehta.salil@gmail.com; linux-r...@vger.kernel.org;
> net...@v
This patch fixes the static check warning due to missing handling leg of
unsupported L3 protocol type in the hns3_get_l4_protocol() function.
Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for
hip08 SoC")
Reported-by: Dan Carpenter
Signed-off-by: Salil Mehta
--
This patch-set fixes various bugs reported by community.
Salil Mehta (3):
net: hns3: Fixes the missing u64_stats_fetch_begin_irq in 64-bit stats
fetch
net: hns3: Fixes the static checker error warning in
hns3_get_link_ksettings()
net: hns3: Fixes the static check warning due to
This patch fixes the static check error warning in hns3_get_link_ksettings()
function by re-arranging the code.
Fixes: 496d03e960ae ("net: hns3: Add Ethtool support to HNS3 Driver")
Reported-by: Dan Carpenter
Signed-off-by: Salil Mehta
---
.../ethernet/hisilicon/hns3/hns3pf/hns3
Hi David,
> -Original Message-
> From: David Miller [mailto:da...@davemloft.net]
> Sent: Monday, November 13, 2017 1:19 AM
> To: Salil Mehta
> Cc: h...@lst.de; Zhuangyuzeng (Yisen); lipeng (Y);
> mehta.salil@gmail.com; net...@vger.kernel.org; linux-
> ker...@vge
This patch migrates the HNS3 driver code from use of depricated PCI
MSI/MSI-X interrupt vector allocation/free APIs to new common APIs.
Signed-off-by: Salil Mehta
Suggested-by: Christoph Hellwig
---
PATCH V3: respin against latest net-next
PATCH V2: Yuval Shaia
Link -> https://lkml.org/l
> -Original Message-
> From: David Miller [mailto:da...@davemloft.net]
> Sent: Tuesday, November 14, 2017 12:46 PM
> To: Salil Mehta
> Cc: Zhuangyuzeng (Yisen); lipeng (Y); h...@lst.de;
> mehta.salil@gmail.com; net...@vger.kernel.org; linux-
> ker...@vge
Hi Andrew,
> -Original Message-
> From: Andrew Lunn [mailto:and...@lunn.ch]
> Sent: Friday, November 03, 2017 3:52 PM
> To: lipeng (Y)
> Cc: da...@davemloft.net; net...@vger.kernel.org; linux-
> ker...@vger.kernel.org; Linuxarm; Salil Mehta
> Subject: Re: [PATCH ne
Hi Dave,
> -Original Message-
> From: David Miller [mailto:da...@davemloft.net]
> Sent: Monday, August 13, 2018 4:57 PM
> To: Salil Mehta
> Cc: Zhuangyuzeng (Yisen) ; lipeng (Y)
> ; mehta.salil@gmail.com;
> net...@vger.kernel.org; linux-kernel@vger
Spaces were mistakenly used instead of tabs in some of the code related
to reset functionality, which caused checkpatch.pl errors. These were
missed earlier so fixing them now.
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 4 ++--
1 file changed, 2 insertions
"[PATCH net-next 00/11] fix some bugs for HNS3
driver"
Link: https://lkml.org/lkml/2018/3/21/72
Salil Mehta (9):
net: hns3: Changes to make enet watchdog timeout func common for PF/VF
net: hns3: Add VF Reset Service Task to support event handling
net: hns3: Add VF Reset de
After VF driver knows that hardware reset has been performed
successfully, it should proceed ahead and reset the enet layer.
This primarily consists of bringing down interface, clearing
TX/RX rings, disassociating vectors from ring etc.
Signed-off-by: Salil Mehta
---
.../ethernet/hisilicon/hns3
still gets processed
in context to mailbox interrupt.
ARQ is important as VF reset introduces some new async messages
like MBX_ASSERTING_RESET which adds up to the presssure on the
responses for synchronousmessages and they timeout even more
quickly.
Signed-off-by: Salil Mehta
---
drivers/net
the hardware to
complete the reset and then further resets/tears its own stack.
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h | 1 +
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c | 12
2 files changed, 13 insertions(+)
diff
VF driver depends upon PF to eventually reset the hardware. This
request is made using the mailbox command. This patch adds the
required function to acheive above.
Signed-off-by: Salil Mehta
---
.../net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 19 +++
1 file changed, 19
received VF message, inform
the VF of assertion and reset the VF using cmdq interface.
Signed-off-by: Salil Mehta
---
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 2 +-
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.h| 1 +
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 42
resetting the stack/enet layer, which
in turn means reinitializing the ring management/enet layer.
Note: we would be adding support of 3. later as a separate patch.
This decision should not affect VF reset as its event handling
is generic in nature.
Signed-off-by: Salil Mehta
---
drivers/net/eth
VF reset would involve handling of different reset related events
from the stack, physical function, mailbox etc. Reset service task
would be used in servicing such reset event requests and later
handling the hardware completions waits and initiating the stack
resets.
Signed-off-by: Salil Mehta
following:
1. Makes the existing watchdog timeout handler in enet layer generic
i.e. suitable for both VF and PF and
2. Introduces the new reset event handler for the VF code.
3. Changes existing reset event handler of PF code to initialize the
reset level
Signed-off-by: Salil Mehta
: Salil Mehta
---
.../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 106 ++---
.../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 14 +++
2 files changed, 106 insertions(+), 14 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
b/drivers/net
1 - 100 of 650 matches
Mail list logo