[RESEND PATCH v9 04/22] IB/hns: Add RoCE engine reset function

2016-06-08 Thread Lijun Ou
This patch mainly added reset flow of RoCE engine in RoCE driver. It is necessary when RoCE is loaded and removed. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers

[RESEND PATCH v9 18/22] IB/hns: Add CQ operations support

2016-06-08 Thread Lijun Ou
. A Work Completion indicates that a Work Request for a Work Queue associated with the CQ is done. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sal

[RESEND PATCH v9 00/22] Add HiSilicon RoCE driver

2016-06-08 Thread Lijun Ou
reviewing 2. modify the bindings file with roce dts. add the attribute named interrput-names. 3. modify the way of defining port mode in hns_dsaf_main.c 4. move the Kconfig file into the hns directory and send it with roce Lijun Ou (22): net: hns: Add reset function support for RoCE drive

[RESEND PATCH v9 10/22] IB/hns: Add process flow to init RoCE engine

2016-06-08 Thread Lijun Ou
m> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_common.h | 107 +++ drivers/infiniband/hw/hns/hns_roce_device.h | 10 + drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 443 drivers/infiniband/hw/hns/hns_roce_hw_v1.h |

[RESEND PATCH v9 22/22] MAINTAINERS: Add maintainers for HiSilicon RoCE driver

2016-06-08 Thread Lijun Ou
This patch added maintainers for RoCE driver. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7304d2e..3de2ef0 100644 --- a/MAINT

[RESEND PATCH v9 02/22] devicetree: bindings: IB: Add binding document for HiSilicon RoCE

2016-06-08 Thread Lijun Ou
This patch added DTS binding document for HiSilicon RoCE driver. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- .../bindings/infiniband/hisilicon-hns-roce.txt | 107 + 1 file changed, 107 insertions(+) create

[RESEND PATCH v9 20/22] IB/hns: Add operation for getting immutable port

2016-06-08 Thread Lijun Ou
This patch added a new verbs that is getting port immutable. It is added in the 4.5 kernel and latest. It is necessary to solve the fail questions for registering ib device. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infin

[RESEND PATCH v9 12/22] IB/hns: Set mtu and gid support

2016-06-08 Thread Lijun Ou
This patch mainly set mtu and gid resource. These resource will be used to set up network transmission in nodes. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers

[RESEND PATCH v9 19/22] IB/hns: Add memory region operations support

2016-06-08 Thread Lijun Ou
2. get MR in user mode 3. deregister MR And the locations of some functions was adjusted in some files. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sal

[RESEND PATCH v9 21/22] IB/hns: Kconfig and Makefile for RoCE module

2016-06-08 Thread Lijun Ou
This patch added Kconfig and Makefile for building RoCE module. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/Kconfig | 1 + drivers/infi

[RESEND PATCH v9 15/22] IB/hns: Add PD operations support

2016-06-08 Thread Lijun Ou
This patch added the verbs to operate PD. It mainly includes the functions of allocating PD and deallocating PD. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers

[RESEND PATCH v9 09/22] IB/hns: Add hca support

2016-06-08 Thread Lijun Ou
g Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_alloc.c | 128 + drivers/infiniband/hw/hns/hns_roce_cq.c | 22 +++ drivers/infiniband/hw/hns/hns_roce_device.h | 69 + drivers

[RESEND PATCH v9 13/22] IB/hns: Add interface of the protocol stack registration

2016-06-08 Thread Lijun Ou
of RoCE when ip address that registered protocol stack was changed. In addition that, it will free the relative resource when RoCE is removed. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <oul

[RESEND PATCH v9 07/22] IB/hns: Add event queue support

2016-06-08 Thread Lijun Ou
; Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_cmd.c| 22 + drivers/infiniband/hw/hns/hns_roce_common.h | 70 +++ drivers/infiniband/hw/hns/hns_roce_cq.c | 77 +++ drivers/infiniband/hw/hns/hns_roce_device.h | 136 + drivers/infiniband/hw

[RESEND PATCH v9 03/22] IB/hns: Add initial main frame driver and get cfg info

2016-06-08 Thread Lijun Ou
This patch mainly added the initial bare main driver. It could get the relative configure information of net node. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers

[RESEND PATCH v9 16/22] IB/hns: Add ah operations support

2016-06-08 Thread Lijun Ou
; Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_ah.c | 132 drivers/infiniband/hw/hns/hns_roce_device.h | 30 +++ drivers/infiniband/hw/hns/hns_roce_main.c | 5 ++ 3 files changed, 167 insertions(+) create mode 100644

[RESEND PATCH v9 05/22] IB/hns: Add initial profile resource

2016-06-08 Thread Lijun Ou
This patch mainly configured some profile resoure. For example, vendor_id, hardware version, and some data structure sizes so on. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.co

[RESEND PATCH v9 08/22] IB/hns: Add icm support

2016-06-08 Thread Lijun Ou
nglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_common.h | 19 ++ drivers/infiniband/hw/hns/hns_roce_device.h | 30 ++ drivers/infiniband/hw/hns/hns_roce_icm.c| 458 drivers

[RESEND PATCH v9 11/22] IB/hns: Add IB device registration

2016-06-08 Thread Lijun Ou
This patch registered IB device when loaded, and unregistered IB device when removed. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hn

[RESEND PATCH v9 06/22] IB/hns: Add initial cmd operation

2016-06-08 Thread Lijun Ou
This patch added the operation for cmd, and added some functions for initializing eq table and selecting cmd mode. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers

[RESEND PATCH v9 01/22] net: hns: Add reset function support for RoCE driver

2016-06-08 Thread Lijun Ou
.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sheng Li <lisheng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 84 ++ drivers/ne

[RESEND PATCH v9 17/22] IB/hns: Add QP operations support

2016-06-08 Thread Lijun Ou
. 6. post receive request. Builds one or more WQEs for the receive Queue in the specified QP. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sal

[RESEND PATCH v9 14/22] IB/hns: Add operations support for IB device and port

2016-06-08 Thread Lijun Ou
g Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_common.h | 4 + drivers/infiniband/hw/hns/hns_roce_device.h | 21 +++ drivers/infiniband/hw/hns/hns_roce_main.c | 228 drivers

[PATCH v8 09/22] IB/hns: Add hca support

2016-05-25 Thread Lijun Ou
g Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_alloc.c | 128 + drivers/infiniband/hw/hns/hns_roce_cq.c | 25 drivers/infiniband/hw/hns/hns_roce_device.h | 69 + drivers

[PATCH v8 07/22] IB/hns: Add event queue support

2016-05-25 Thread Lijun Ou
; Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_cmd.c| 22 + drivers/infiniband/hw/hns/hns_roce_common.h | 72 +++ drivers/infiniband/hw/hns/hns_roce_cq.c | 77 +++ drivers/infiniband/hw/hns/hns_roce_device.h | 142 + drivers/infiniband/hw

[PATCH v8 13/22] IB/hns: Add interface of the protocol stack registration

2016-05-25 Thread Lijun Ou
of RoCE when ip address that registered protocol stack was changed. In addition that, it will free the relative resource when RoCE is removed. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <oul

[PATCH v8 21/22] IB/hns: Kconfig and Makefile for RoCE module

2016-05-25 Thread Lijun Ou
This patch added Kconfig and Makefile for building RoCE module. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/Kconfig | 1 + drivers/infi

[PATCH v8 17/22] IB/hns: Add QP operations support

2016-05-25 Thread Lijun Ou
. 6. post receive request. Builds one or more WQEs for the receive Queue in the specified QP. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sal

[PATCH v8 02/22] devicetree: bindings: IB: Add binding document for HiSilicon RoCE

2016-05-25 Thread Lijun Ou
This patch added DTS binding document for HiSilicon RoCE driver. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- .../bindings/infiniband/hisilicon-hns-roce.txt | 107 + 1 file changed, 107 insertions(+) create

[PATCH v8 16/22] IB/hns: Add ah operations support

2016-05-25 Thread Lijun Ou
; Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_ah.c | 132 drivers/infiniband/hw/hns/hns_roce_device.h | 30 +++ drivers/infiniband/hw/hns/hns_roce_main.c | 5 ++ 3 files changed, 167 insertions(+) create mode 100644

[PATCH v8 20/22] IB/hns: Add operation for getting immutable port

2016-05-25 Thread Lijun Ou
This patch added a new verbs that is getting port immutable. It is added in the 4.5 kernel and latest. It is necessary to solve the fail questions for registering ib device. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infin

[PATCH v8 04/22] IB/hns: Add RoCE engine reset function

2016-05-25 Thread Lijun Ou
This patch mainly added reset flow of RoCE engine in RoCE driver. It is necessary when RoCE is loaded and removed. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers

[PATCH v8 08/22] IB/hns: Add icm support

2016-05-25 Thread Lijun Ou
nglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_common.h | 19 ++ drivers/infiniband/hw/hns/hns_roce_device.h | 30 ++ drivers/infiniband/hw/hns/hns_roce_icm.c| 462 drivers

[PATCH v8 14/22] IB/hns: Add operations support for IB device and port

2016-05-25 Thread Lijun Ou
g Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_common.h | 4 + drivers/infiniband/hw/hns/hns_roce_device.h | 21 +++ drivers/infiniband/hw/hns/hns_roce_main.c | 228 drivers

[PATCH v8 12/22] IB/hns: Set mtu and gid support

2016-05-25 Thread Lijun Ou
This patch mainly set mtu and gid resource. These resource will be used to set up network transmission in nodes. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers

[PATCH v8 18/22] IB/hns: Add CQ operations support

2016-05-25 Thread Lijun Ou
. A Work Completion indicates that a Work Request for a Work Queue associated with the CQ is done. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sal

[PATCH v8 05/22] IB/hns: Add initial profile resource

2016-05-25 Thread Lijun Ou
This patch mainly configured some profile resoure. For example, vendor_id, hardware version, and some data structure sizes so on. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.co

[PATCH v8 06/22] IB/hns: Add initial cmd operation

2016-05-25 Thread Lijun Ou
This patch added the operation for cmd, and added some functions for initializing eq table and selecting cmd mode. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers

[PATCH v8 00/22] Add HiSilicon RoCE driver

2016-05-25 Thread Lijun Ou
s reviewing 2. modify the bindings file with roce dts. add the attribute named interrput-names. 3. modify the way of defining port mode in hns_dsaf_main.c 4. move the Kconfig file into the hns directory and send it with roce Lijun Ou (22): net: hns: Add reset function support for RoCE driver devicetr

[PATCH v8 03/22] IB/hns: Add initial main frame driver and get cfg info

2016-05-25 Thread Lijun Ou
This patch mainly added the initial bare main driver. It could get the relative configure information of net node. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers

[PATCH v8 22/22] MAINTAINERS: Add maintainers for HiSilicon RoCE driver

2016-05-25 Thread Lijun Ou
This patch added maintainers for RoCE driver. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5f83015..ba23a81 100644 --- a/MAINT

[PATCH v8 01/22] net: hns: Add reset function support for RoCE driver

2016-05-25 Thread Lijun Ou
.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sheng Li <lisheng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 90 +- drivers/ne

[PATCH v8 10/22] IB/hns: Add process flow to init RoCE engine

2016-05-25 Thread Lijun Ou
m> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_common.h | 107 +++ drivers/infiniband/hw/hns/hns_roce_device.h | 15 + drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 477 drivers/infiniband/hw/hns/hns_roce_hw_v1.h |

[PATCH v8 19/22] IB/hns: Add memory region operations support

2016-05-25 Thread Lijun Ou
2. get MR in user mode 3. deregister MR And the locations of some functions was adjusted in some files. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sal

[PATCH v8 11/22] IB/hns: Add IB device registration

2016-05-25 Thread Lijun Ou
This patch registered IB device when loaded, and unregistered IB device when removed. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hn

[PATCH v9 13/22] IB/hns: Add interface of the protocol stack registration

2016-06-01 Thread Lijun Ou
of RoCE when ip address that registered protocol stack was changed. In addition that, it will free the relative resource when RoCE is removed. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <oul

[PATCH v9 18/22] IB/hns: Add CQ operations support

2016-06-01 Thread Lijun Ou
. A Work Completion indicates that a Work Request for a Work Queue associated with the CQ is done. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sal

[PATCH v9 21/22] IB/hns: Kconfig and Makefile for RoCE module

2016-06-01 Thread Lijun Ou
This patch added Kconfig and Makefile for building RoCE module. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/Kconfig | 1 + drivers/infi

[PATCH v9 09/22] IB/hns: Add hca support

2016-06-01 Thread Lijun Ou
g Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_alloc.c | 128 + drivers/infiniband/hw/hns/hns_roce_cq.c | 22 +++ drivers/infiniband/hw/hns/hns_roce_device.h | 69 + drivers

[PATCH v9 22/22] MAINTAINERS: Add maintainers for HiSilicon RoCE driver

2016-06-01 Thread Lijun Ou
This patch added maintainers for RoCE driver. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7304d2e..3de2ef0 100644 --- a/MAINT

[PATCH v9 06/22] IB/hns: Add initial cmd operation

2016-06-01 Thread Lijun Ou
This patch added the operation for cmd, and added some functions for initializing eq table and selecting cmd mode. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers

[PATCH v9 00/22] Add HiSilicon RoCE driver

2016-06-01 Thread Lijun Ou
ewing 2. modify the bindings file with roce dts. add the attribute named interrput-names. 3. modify the way of defining port mode in hns_dsaf_main.c 4. move the Kconfig file into the hns directory and send it with roce Lijun Ou (22): net: hns: Add reset function support for RoCE driver devi

[PATCH v9 19/22] IB/hns: Add memory region operations support

2016-06-01 Thread Lijun Ou
2. get MR in user mode 3. deregister MR And the locations of some functions was adjusted in some files. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sal

[PATCH v9 03/22] IB/hns: Add initial main frame driver and get cfg info

2016-06-01 Thread Lijun Ou
This patch mainly added the initial bare main driver. It could get the relative configure information of net node. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers

[PATCH v9 04/22] IB/hns: Add RoCE engine reset function

2016-06-01 Thread Lijun Ou
This patch mainly added reset flow of RoCE engine in RoCE driver. It is necessary when RoCE is loaded and removed. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers

[PATCH v9 20/22] IB/hns: Add operation for getting immutable port

2016-06-01 Thread Lijun Ou
This patch added a new verbs that is getting port immutable. It is added in the 4.5 kernel and latest. It is necessary to solve the fail questions for registering ib device. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infin

[PATCH v9 16/22] IB/hns: Add ah operations support

2016-06-01 Thread Lijun Ou
; Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_ah.c | 132 drivers/infiniband/hw/hns/hns_roce_device.h | 30 +++ drivers/infiniband/hw/hns/hns_roce_main.c | 5 ++ 3 files changed, 167 insertions(+) create mode 100644

[PATCH v9 07/22] IB/hns: Add event queue support

2016-06-01 Thread Lijun Ou
; Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_cmd.c| 22 + drivers/infiniband/hw/hns/hns_roce_common.h | 70 +++ drivers/infiniband/hw/hns/hns_roce_cq.c | 77 +++ drivers/infiniband/hw/hns/hns_roce_device.h | 136 + drivers/infiniband/hw

[PATCH v9 17/22] IB/hns: Add QP operations support

2016-06-01 Thread Lijun Ou
. 6. post receive request. Builds one or more WQEs for the receive Queue in the specified QP. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sal

[PATCH v9 05/22] IB/hns: Add initial profile resource

2016-06-01 Thread Lijun Ou
This patch mainly configured some profile resoure. For example, vendor_id, hardware version, and some data structure sizes so on. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.co

[PATCH v9 12/22] IB/hns: Set mtu and gid support

2016-06-01 Thread Lijun Ou
This patch mainly set mtu and gid resource. These resource will be used to set up network transmission in nodes. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers

[PATCH v9 02/22] devicetree: bindings: IB: Add binding document for HiSilicon RoCE

2016-06-01 Thread Lijun Ou
This patch added DTS binding document for HiSilicon RoCE driver. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- .../bindings/infiniband/hisilicon-hns-roce.txt | 107 + 1 file changed, 107 insertions(+) create

[PATCH v9 15/22] IB/hns: Add PD operations support

2016-06-01 Thread Lijun Ou
This patch added the verbs to operate PD. It mainly includes the functions of allocating PD and deallocating PD. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers

[PATCH v9 08/22] IB/hns: Add icm support

2016-06-01 Thread Lijun Ou
nglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_common.h | 19 ++ drivers/infiniband/hw/hns/hns_roce_device.h | 30 ++ drivers/infiniband/hw/hns/hns_roce_icm.c| 458 drivers

[PATCH v9 01/22] net: hns: Add reset function support for RoCE driver

2016-06-01 Thread Lijun Ou
.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sheng Li <lisheng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 84 ++ drivers/ne

[PATCH v9 10/22] IB/hns: Add process flow to init RoCE engine

2016-06-01 Thread Lijun Ou
m> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_common.h | 107 +++ drivers/infiniband/hw/hns/hns_roce_device.h | 10 + drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 443 drivers/infiniband/hw/hns/hns_roce_hw_v1.h |

[PATCH v9 14/22] IB/hns: Add operations support for IB device and port

2016-06-01 Thread Lijun Ou
g Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_common.h | 4 + drivers/infiniband/hw/hns/hns_roce_device.h | 21 +++ drivers/infiniband/hw/hns/hns_roce_main.c | 228 drivers

[PATCH v9 11/22] IB/hns: Add IB device registration

2016-06-01 Thread Lijun Ou
This patch registered IB device when loaded, and unregistered IB device when removed. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hn

[PATCH v10 07/22] IB/hns: Add event queue support

2016-06-16 Thread Lijun Ou
; Signed-off-by: Lijun Ou <ouli...@huawei.com> --- PATCH v9/v8: - No change over the PATCH v7 PATCH v7: This fixes the comments given by Doug Ledford over the PATCH v6: Link: https://lkml.org/lkml/2016/5/13/510 PATCH v6: - No change over the PATCH v5 PATCH v5: - The initial patch which wa

[PATCH v10 10/22] IB/hns: Add process flow to init RoCE engine

2016-06-16 Thread Lijun Ou
m> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- PATCH v9: - No change over the PATCH v8 PATCH v8: This fixes the comments given by Leon Romanovsky over the PATCH v7: Link: https://lkml.org/lkml/2016/5/25/562 PATCH v7/v6: - No change over the PATCH v5 PATCH v5: - The i

[PATCH v10 18/22] IB/hns: Add CQ operations support

2016-06-16 Thread Lijun Ou
. A Work Completion indicates that a Work Request for a Work Queue associated with the CQ is done. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sal

[PATCH v10 14/22] IB/hns: Add operations support for IB device and port

2016-06-16 Thread Lijun Ou
g Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- PATCH v9/v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The initial patch which was redesigned based on the second patch in PATCH v4 --- --- drivers/infiniband/hw/hns/hns_roce_common.h | 4 + dri

[PATCH v10 17/22] IB/hns: Add QP operations support

2016-06-16 Thread Lijun Ou
. 6. post receive request. Builds one or more WQEs for the receive Queue in the specified QP. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sal

[PATCH v10 09/22] IB/hns: Add hca support

2016-06-16 Thread Lijun Ou
g Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- PATCH v9: This fixes the comments given by Leon Romanovsky over the PATCH v8 Link: https://lkml.org/lkml/2016/6/9/67 PATCH v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The initial patch which wa

[PATCH v10 04/22] IB/hns: Add RoCE engine reset function

2016-06-16 Thread Lijun Ou
This patch mainly added reset flow of RoCE engine in RoCE driver. It is necessary when RoCE is loaded and removed. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- PATCH

[PATCH v10 15/22] IB/hns: Add PD operations support

2016-06-16 Thread Lijun Ou
This patch added the verbs to operate PD. It mainly includes the functions of allocating PD and deallocating PD. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> ---

[PATCH v10 22/22] MAINTAINERS: Add maintainers for HiSilicon RoCE driver

2016-06-16 Thread Lijun Ou
This patch added maintainers for RoCE driver. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- PATCH v9: - No change over the PATCH v8 PATCH v8: This fixes the comments given by Joe Perches over the PATCH v7: Link: https://lkml.org/lk

[PATCH v10 19/22] IB/hns: Add memory region operations support

2016-06-16 Thread Lijun Ou
2. get MR in user mode 3. deregister MR And the locations of some functions was adjusted in some files. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sal

[PATCH v10 21/22] IB/hns: Kconfig and Makefile for RoCE module

2016-06-16 Thread Lijun Ou
This patch added Kconfig and Makefile for building RoCE module. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- PATCH v9/v8/v7/v6/v5: - No change over the PATCH v4 PA

[PATCH v10 02/22] devicetree: bindings: IB: Add binding document for HiSilicon RoCE

2016-06-16 Thread Lijun Ou
This patch added DTS binding document for HiSilicon RoCE driver. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- PATCH v9/v8/v7/v6/v5/v4/v3: - No change over the PATCH v2 PATCH v2: This fixes the comments given by Sergei Shtylyov o

[PATCH v10 20/22] IB/hns: Add operation for getting immutable port

2016-06-16 Thread Lijun Ou
This patch added a new verbs that is getting port immutable. It is added in the 4.5 kernel and latest. It is necessary to solve the fail questions for registering ib device. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- PATCH v9: - No

[PATCH v10 12/22] IB/hns: Set mtu and gid support

2016-06-16 Thread Lijun Ou
This patch mainly set mtu and gid resource. These resource will be used to set up network transmission in nodes. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> ---

[PATCH v10 16/22] IB/hns: Add ah operations support

2016-06-16 Thread Lijun Ou
; Signed-off-by: Lijun Ou <ouli...@huawei.com> --- PATCH v9/v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The initial patch which was redesigned based on the second patch in PATCH v4 --- --- drivers/infiniband/hw/hns/hns_roce_ah.c | 132 drivers

[PATCH v10 11/22] IB/hns: Add IB device registration

2016-06-16 Thread Lijun Ou
This patch registered IB device when loaded, and unregistered IB device when removed. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- PATCH v9: This fixes the comm

[PATCH v10 06/22] IB/hns: Add initial cmd operation

2016-06-16 Thread Lijun Ou
This patch added the operation for cmd, and added some functions for initializing eq table and selecting cmd mode. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> ---

[PATCH v10 13/22] IB/hns: Add interface of the protocol stack registration

2016-06-16 Thread Lijun Ou
of RoCE when ip address that registered protocol stack was changed. In addition that, it will free the relative resource when RoCE is removed. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <oul

[PATCH v10 01/22] net: hns: Add reset function support for RoCE driver

2016-06-16 Thread Lijun Ou
.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Sheng Li <lisheng...@huawei.com> --- PATCH v9/v8/v7: - No change over PATCH v6 PATCH v6: This fixes the comments given by Leon Romanovsky o

[PATCH v10 08/22] IB/hns: Add icm support

2016-06-16 Thread Lijun Ou
nglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- PATCH v9/v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The initial patch which was redesigned based on the second patch in PATCH v4 --- --- drivers/infiniband/hw/hns/hns_roce_common.h

[PATCH v10 03/22] IB/hns: Add initial main frame driver and get cfg info

2016-06-16 Thread Lijun Ou
This patch mainly added the initial bare main driver. It could get the relative configure information of net node. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- PA

[PATCH v10 05/22] IB/hns: Add initial profile resource

2016-06-16 Thread Lijun Ou
This patch added the operation for cmd, and added some functions for initializing eq table and selecting cmd mode. Signed-off-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Nenglong Zhao <zhaonengl...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- PA

[PATCH 2/3] net: hns: add Hisilicon RoCE support

2016-03-11 Thread Lijun Ou
It added hns_dsaf_roce_reset routine for roce driver. RoCE is a feature of hns. In hip06 SOC, in roce reset process, it's needed to configure dsaf channel reset,port and sl map info. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu(Xavier) <xavier.hu...@huawei.com>

[PATCH 0/3] infiniband: IB/hns: Hisilicon RoCE support

2016-03-11 Thread Lijun Ou
it with roce driver code file together. Lijun Ou (3): infiniband: IB/hns: add Hisilicon RoCE support net: hns: add Hisilicon RoCE support infiniband: IB/hns: add Hisilicon RoCE support with bindings .../bindings/infiniband/hisilicon-hns-roce.txt | 68 + drivers/infin

[PATCH 3/3] infiniband: IB/hns: add Hisilicon RoCE support with bindings

2016-03-11 Thread Lijun Ou
This submit add binding file and dts file. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu(Xavier) <xavier.hu...@huawei.com> --- .../bindings/infiniband/hisilicon-hns-roce.txt | 68 ++ 1 file changed, 68 insertions(+) create mode 100644 D

[PATCH v3 1/3] net: hns: Add reset function support for RoCE driver

2016-03-19 Thread Lijun Ou
It added reset function for RoCE driver. RoCE is a feature of hns. In hip06 SoC, in RoCE reset process, it's needed to configure dsaf channel reset, port and sl map info. Reset function of RoCE is located in dsaf module, we only call it in RoCE driver when needed. Signed-off-by: Lijun Ou <o

[PATCH v3 3/3] IB/hns: Add binding document for HiSilicon RoCE driver

2016-03-19 Thread Lijun Ou
This patch adds related DTS binding document for HiSilicon RoCE driver. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu(Xavier) <xavier.hu...@huawei.com> --- .../bindings/infiniband/hisilicon-hns-roce.txt | 107 + 1 file changed, 10

[PATCH v3 0/3] IB/hns: Add HiSilicon RoCE driver

2016-03-19 Thread Lijun Ou
ify the bindings file with roce dts. add the attribute named interrput-names. 3. modify the way of defining port mode in hns_dsaf_main.c 4. move the Kconfig file into the hns directory and send it with roce Lijun Ou (3): net: hns: Add reset function support for RoCE driver IB/hns: Add HiSil

[PATCH v4 1/3] net: hns: Add reset function support for RoCE driver

2016-03-22 Thread Lijun Ou
It added reset function for RoCE driver. RoCE is a feature of hns. In hip06 SoC, in RoCE reset process, it's needed to configure dsaf channel reset, port and sl map info. Reset function of RoCE is located in dsaf module, we only call it in RoCE driver when needed. Signed-off-by: Lijun Ou <o

[PATCH v4 0/3] IB/hns: Add HiSilicon RoCE driver

2016-03-22 Thread Lijun Ou
-> v2: 1. modify the formats of roce driver code by the experts reviewing 2. modify the bindings file with roce dts. add the attribute named interrput-names. 3. modify the way of defining port mode in hns_dsaf_main.c 4. move the Kconfig file into the hns directory and send it with roce Lijun

[PATCH v4 3/3] IB/hns: Add binding document for HiSilicon RoCE driver

2016-03-22 Thread Lijun Ou
This patch adds related DTS binding document for HiSilicon RoCE driver. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu(Xavier) <xavier.hu...@huawei.com> --- .../bindings/infiniband/hisilicon-hns-roce.txt | 107 + 1 file changed, 10

[RESEND PATCH V4 3/3] IB/hns: Add binding document for HiSilicon RoCE driver

2016-04-01 Thread Lijun Ou
This patch adds related DTS binding document for HiSilicon RoCE driver. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu(Xavier) <xavier.hu...@huawei.com> --- .../bindings/infiniband/hisilicon-hns-roce.txt | 107 + 1 file changed, 10

  1   2   3   >