[PATCH net-next] net: hns: Add reset function support for RoCE driver

2016-08-18 Thread Lijun Ou
x the conflict, please refer to this link: https://www.spinics.net/lists/linux-rdma/msg39114.html Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Sheng Li Reviewed-by: Yisen Zhuang --- This PATCH: Fix the merge conflict between the PATCH v12 and

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

2016-07-02 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11/v10/v9/v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The initial patch which was

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

2016-07-02 Thread Lijun Ou
This patch was for implementing of address handle operations. It includes three verbs that create ah, query ah and destroy ah. They is completed independently by RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: Remove the non-essential

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

2016-07-02 Thread Lijun Ou
This patch mainly registered some relative verbs for the kernel. These operation functions will be called by user. For example: 1. modify device 2. query device 3. query_port 4. modify_port and so on. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou

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

2016-07-02 Thread Lijun Ou
This patch registered IB device when loaded, and unregistered IB device when removed. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: Remove hns_roce_profile_init function for one line of code which will be called once only according to Leon

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

2016-07-02 Thread Lijun Ou
igned-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Sheng Li --- PATCH v11: This fixes the comments given by Leon Romanovsky over the PATCH v10: Link: https://lkml.org/lkml/2016/6/24/277 PATCH v10/v9/v8/v7: - No change over PATCH v6 PATCH v6: This fixes the comments given by

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

2016-07-02 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta --- PATCH v11/v10/v9/v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The

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

2016-07-02 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: This fixes the comments given by Leon Romanovsky over the PATCH v10: Link: https

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

2016-07-02 Thread Lijun Ou
Work Completion indicates that a Work Request for a Work Queue associated with the CQ is done. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta --- PATCH v11: Remove the non-essential headers according to the Leon Romanovsky'

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

2016-07-02 Thread Lijun Ou
This patch added DTS binding document for HiSilicon RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Lijun Ou --- PATCH v11/v10/v9/v8/v7/v6/v5/v4/v3: - No change over the PATCH v2 PATCH v2: This fixes the comments given by Sergei Shtylyov over PATCH v1: Link: https://lkml.org/lkml/2016/3/11

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

2016-07-02 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: - No change over the PATCH v10 PATCH v10: This fixes the same questions with the comments

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

2016-07-02 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: This fixes comments given by Leon Romanovsky over the PATCH v10: Link: https://lkml.org

[PATCH v11 00/22] Add HiSilicon RoCE driver

2016-07-02 Thread Lijun Ou
ining 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 devicetree: bindings: IB: Add binding document for HiSilicon RoCE IB/hns: Add initial main frame driver and get cfg in

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

2016-07-02 Thread Lijun Ou
This patch added event queue support for RoCE driver. It is used for RoCE interrupt. RoCE includes 32 synchronous event irqs, 1 asynchronous event irq and 1 common overflow irq. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: This fixes the comments

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

2016-07-02 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: This fixes the comments given by Leon Romanovsky over the PATCH v11: Link: https

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

2016-07-02 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: - No change over the PATCH v10 PATCH v10: This fixes the

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

2016-07-02 Thread Lijun Ou
This patch mainly setup hca for RoCE. It will do a series of initial works, as follows: 1. init uar table, allocate uar resource 2. init pd table 3. init cq table 4. init mr table 5. init qp table Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou

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

2016-07-02 Thread Lijun Ou
This patch mainly initialized the RoCE engine. It is absolutely necessary to run RoCE. It mainly includes that configure DMAE user, initialize doorbell and raq operations, enable port. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: This fixes

[PATCH v11 08/22] IB/hns: Add hem support

2016-07-02 Thread Lijun Ou
Signed-off-by: Lijun Ou --- PATCH v11: This fixes the comments given by Leon Romanovsky over the PATCH v10: Link: https://lkml.org/lkml/2016/6/20/50 Remove the non-essential headers according to the Leon Romanovsky's the same comments over the [PATCH v10 3/22]: Link: https://lkml.org

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

2016-07-02 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: This fixes the comments given by Leon Romanovsky over the PATCH v10: Link: https

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

2016-07-02 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta --- PATCH v11: Deletes the explicit values for enums according to the Leon Romanovsky&#

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

2016-07-02 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 Signed-off-by: Lijun Ou --- PATCH v11/v10/v9: - No change over the PATCH v8 PATCH v8: - The

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

2016-07-02 Thread Lijun Ou
This patch added Kconfig and Makefile for building RoCE module. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: hns_roce_icm.o -> hns_roce_hem.o PATCH v10/v9/v8/v7/v6/v5: - No change over the PATCH v4 PATCH v4: This fixes the comments given

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

2016-07-02 Thread Lijun Ou
This patch added maintainers for RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Lijun Ou --- PATCH v11/v10/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/lkml/2016/5/25/396 PATCH v7/v6/v5/v4: - No change

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

2016-06-16 Thread Lijun Ou
This patch was for implementing of address handle operations. It includes three verbs that create ah, query ah and destroy ah. They is completed independently by RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9/v8/v7/v6: - No change over the

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9: This fixes the comments given by Leon Romanovsky over the PATCH v8: Link: https://lkml.org/lkml/2016/6/9/53 PATCH v8

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9/v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The initial patch which was redesigned

[PATCH v10 00/22] Add HiSilicon RoCE driver

2016-06-16 Thread Lijun Ou
v1 -> 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

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9/v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The initial patch which was redesigned

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9: This fixes comments given by Leon Romanovsky over the PATCH v8: Link: https://lkml.org

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9/v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The

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

2016-06-16 Thread Lijun Ou
igned-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Sheng Li --- PATCH v9/v8/v7: - No change over PATCH v6 PATCH v6: This fixes the comments given by Leon Romanovsky over the PATCH v5: Link: https://lkml.org/lkml/2016/5/3/733 PATCH v5/v4/v3: - No change over PATCH v2 PATCH v2:

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

2016-06-16 Thread Lijun Ou
This patch mainly added icm support for RoCE. It initializes icm which managers the relative memory blocks for RoCE. The data structures of RoCE will be located in it. For example, CQ table, QP table and MTPT table so on. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9: This fixes the comments given by Leon Romanovsky over the PATCH v8: Link: https

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

2016-06-16 Thread Lijun Ou
Work Completion indicates that a Work Request for a Work Queue associated with the CQ is done. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta --- PATCH v9/v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The initial patch which

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta --- PATCH v9/v8: - No change over the PATCH v7 PATCH v7: This fixes the moments given by

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

2016-06-16 Thread Lijun Ou
This patch mainly setup hca for RoCE. It will do a series of initial works, as follows: 1. init uar table, allocate uar resource 2. init pd table 3. init cq table 4. init mr table 5. init qp table Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9/v8: - No change over the PATCH v7 PATCH v7: This fixes the comments given by Leon

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

2016-06-16 Thread Lijun Ou
This patch added event queue support for RoCE driver. It is used for RoCE interrupt. RoCE includes 32 synchronous event irqs, 1 asynchronous event irq and 1 common overflow irq. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9/v8: - No change over the

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

2016-06-16 Thread Lijun Ou
This patch mainly initialized the RoCE engine. It is absolutely necessary to run RoCE. It mainly includes that configure DMAE user, initialize doorbell and raq operations, enable port. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9: - No change over the

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

2016-06-16 Thread Lijun Ou
This patch mainly registered some relative verbs for the kernel. These operation functions will be called by user. For example: 1. modify device 2. query device 3. query_port 4. modify_port and so on. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou

[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 Signed-off-by: Lijun Ou --- 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/lkml/2016/5/25/396 PATCH v7/v6/v5/v4: - No change over the

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9/v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The initial patch which was redesigned

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9/v8/v7/v6/v5: - No change over the PATCH v4 PATCH v4: This fixes the comments given by Christoph Hellwig over the PATCH v3: Link: https

[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 Signed-off-by: Lijun Ou --- PATCH v9/v8/v7/v6/v5/v4/v3: - No change over the PATCH v2 PATCH v2: This fixes the comments given by Sergei Shtylyov over PATCH v1: Link: https://lkml.org/lkml/2016/3/11/304

[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 Signed-off-by: Lijun Ou --- PATCH v9: - No change over the PATCH v8 PATCH v8: - The initial patch

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta --- PATCH v9/v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The initial

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

2016-06-07 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_device.h | 72 ++ drivers/infiniband/hw/hns

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

2016-06-07 Thread Lijun Ou
This patch added event queue support for RoCE driver. It is used for RoCE interrupt. RoCE includes 32 synchronous event irqs, 1 asynchronous event irq and 1 common overflow irq. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns

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

2016-06-07 Thread Lijun Ou
This patch was for implementing of address handle operations. It includes three verbs that create ah, query ah and destroy ah. They is completed independently by RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_ah.c

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

2016-06-07 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_common.h | 49 +++ drivers

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

2016-06-07 Thread Lijun Ou
This patch mainly added icm support for RoCE. It initializes icm which managers the relative memory blocks for RoCE. The data structures of RoCE will be located in it. For example, CQ table, QP table and MTPT table so on. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun

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

2016-06-07 Thread Lijun Ou
This patch registered IB device when loaded, and unregistered IB device when removed. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_main.c | 46 +++ 1 file changed, 46 insertions(+) diff --git a

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

2016-06-07 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_cmd.c| 117 drivers/infiniband

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

2016-06-07 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_device.h | 17 drivers/infiniband/hw/hns/hns_roce_main.c

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

2016-06-07 Thread Lijun Ou
This patch mainly setup hca for RoCE. It will do a series of initial works, as follows: 1. init uar table, allocate uar resource 2. init pd table 3. init cq table 4. init mr table 5. init qp table Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou

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

2016-06-07 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_device.h | 3 + drivers

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

2016-06-07 Thread Lijun Ou
igned-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Sheng Li --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 84 ++ drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h | 32 - drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c

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

2016-06-07 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-07 Thread Lijun Ou
This patch mainly initialized the RoCE engine. It is absolutely necessary to run RoCE. It mainly includes that configure DMAE user, initialize doorbell and raq operations, enable port. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns

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

2016-06-07 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_device.h | 7 +++ drivers/infiniband/hw/hns/hns_roce_hw_v1.c

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

2016-06-07 Thread Lijun Ou
Work Completion indicates that a Work Request for a Work Queue associated with the CQ is done. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_cq.c | 357

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

2016-06-07 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_alloc.c | 134 +++ drivers/infiniband/hw/hns

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

2016-06-07 Thread Lijun Ou
This patch mainly registered some relative verbs for the kernel. These operation functions will be called by user. For example: 1. modify device 2. query device 3. query_port 4. modify_port and so on. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou

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

2016-06-07 Thread Lijun Ou
This patch added maintainers for RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Lijun Ou --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7304d2e..3de2ef0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10280,6 +10280,14 @@ W

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

2016-06-07 Thread Lijun Ou
This patch added DTS binding document for HiSilicon RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Lijun Ou --- .../bindings/infiniband/hisilicon-hns-roce.txt | 107 + 1 file changed, 107 insertions(+) create mode 100644 Documentation/devicetree/bindings/infiniband

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

2016-06-07 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 Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_main.c | 22

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

2016-06-07 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_common.h | 16 drivers/infiniband/hw/hns/hns_roce_device.h

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

2016-06-07 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_cmd.h| 9 + drivers/infiniband/hw

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

2016-06-07 Thread Lijun Ou
This patch added Kconfig and Makefile for building RoCE module. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/Kconfig | 1 + drivers/infiniband/hw/Makefile | 1 + drivers/infiniband/hw/hns/Kconfig | 10 ++ drivers

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

2016-06-01 Thread Lijun Ou
This patch mainly registered some relative verbs for the kernel. These operation functions will be called by user. For example: 1. modify device 2. query device 3. query_port 4. modify_port and so on. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_main.c | 46 +++ 1 file changed, 46 insertions(+) diff --git a

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

2016-06-01 Thread Lijun Ou
This patch mainly initialized the RoCE engine. It is absolutely necessary to run RoCE. It mainly includes that configure DMAE user, initialize doorbell and raq operations, enable port. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns

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

2016-06-01 Thread Lijun Ou
igned-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Sheng Li --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 84 ++ drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h | 32 - drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_device.h | 7 +++ drivers/infiniband/hw/hns/hns_roce_hw_v1.c

[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 Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_main.c | 22

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

2016-06-01 Thread Lijun Ou
This patch was for implementing of address handle operations. It includes three verbs that create ah, query ah and destroy ah. They is completed independently by RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_ah.c

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

2016-06-01 Thread Lijun Ou
This patch added event queue support for RoCE driver. It is used for RoCE interrupt. RoCE includes 32 synchronous event irqs, 1 asynchronous event irq and 1 common overflow irq. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_alloc.c | 134 +++ drivers/infiniband/hw/hns

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

2016-06-01 Thread Lijun Ou
This patch mainly added icm support for RoCE. It initializes icm which managers the relative memory blocks for RoCE. The data structures of RoCE will be located in it. For example, CQ table, QP table and MTPT table so on. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_device.h | 72 ++ drivers/infiniband/hw/hns

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_device.h | 17 drivers/infiniband/hw/hns/hns_roce_main.c

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_common.h | 16 drivers/infiniband/hw/hns/hns_roce_device.h

[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 Signed-off-by: Lijun Ou --- .../bindings/infiniband/hisilicon-hns-roce.txt | 107 + 1 file changed, 107 insertions(+) create mode 100644 Documentation/devicetree/bindings/infiniband

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_common.h | 49 +++ drivers

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_cmd.h| 9 + drivers/infiniband/hw

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

2016-06-01 Thread Lijun Ou
This patch mainly setup hca for RoCE. It will do a series of initial works, as follows: 1. init uar table, allocate uar resource 2. init pd table 3. init cq table 4. init mr table 5. init qp table Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_device.h | 3 + drivers

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

2016-06-01 Thread Lijun Ou
Work Completion indicates that a Work Request for a Work Queue associated with the CQ is done. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_cq.c | 357

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/Kconfig | 1 + drivers/infiniband/hw/Makefile | 1 + drivers/infiniband/hw/hns/Kconfig | 10 ++ 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 Signed-off-by: Lijun Ou --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7304d2e..3de2ef0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10280,6 +10280,14 @@ W

[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 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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_cmd.c| 117 drivers/infiniband

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_cmd.h| 9 + drivers/infiniband/hw

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

2016-05-25 Thread Lijun Ou
This patch mainly initialized the RoCE engine. It is absolutely necessary to run RoCE. It mainly includes that configure DMAE user, initialize doorbell and raq operations, enable port. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns

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

2016-05-25 Thread Lijun Ou
igned-off-by: Nenglong Zhao Signed-off-by: Lijun Ou Signed-off-by: Sheng Li --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 90 +- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h | 32 +++- drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_device.h | 72 ++ drivers/infiniband/hw/hns

[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 Signed-off-by: Lijun Ou --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5f83015..ba23a81 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10121,6 +10121,14 @@ W

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_main.c | 47 +++ 1 file changed, 47 insertions(+) diff --git a

[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 Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_common.h | 47 + drivers

  1   2   3   >