[PATCH net-next 9/9] net: hns3: Changes required in PF mailbox to support VF reset

2018-03-22 Thread Salil Mehta
the 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

[PATCH net-next 7/9] net: hns3: Changes to support ARQ(Asynchronous Receive Queue)

2018-03-22 Thread Salil Mehta
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 <salil

[PATCH net-next 8/9] net: hns3: Add *Asserting Reset* mailbox message & handling in VF

2018-03-22 Thread Salil Mehta
the hardware to complete the reset and then further resets/tears its own stack. Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h | 1 + drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c | 12 2 files chang

[PATCH net-next 4/9] net: hns3: Add support to request VF Reset to PF

2018-03-22 Thread Salil Mehta
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 <salil.me...@huawei.com> --- .../net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.

[PATCH net-next 7/9] net: hns3: Changes to support ARQ(Asynchronous Receive Queue)

2018-03-22 Thread Salil Mehta
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

[PATCH net-next 8/9] net: hns3: Add *Asserting Reset* mailbox message & handling in VF

2018-03-22 Thread Salil Mehta
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

[PATCH net-next 4/9] net: hns3: Add support to request VF Reset to PF

2018-03-22 Thread Salil Mehta
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

[PATCH net-next 5/9] net: hns3: Add support to reset the enet/ring mgmt layer

2018-03-22 Thread Salil Mehta
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 <salil.me...@huawei.

[PATCH net-next 5/9] net: hns3: Add support to reset the enet/ring mgmt layer

2018-03-22 Thread Salil Mehta
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

[PATCH net-next 0/9] Add support of VF Reset to HNS3 VF driver

2018-03-22 Thread Salil Mehta
"[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

[PATCH net-next 0/9] Add support of VF Reset to HNS3 VF driver

2018-03-22 Thread Salil Mehta
"[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

[PATCH net-next] net: hns3: converting spaces into tabs to avoid checkpatch.pl warning

2018-01-19 Thread Salil Mehta
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 <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 4 +

[PATCH net-next] net: hns3: converting spaces into tabs to avoid checkpatch.pl warning

2018-01-19 Thread Salil Mehta
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 v4 net-next 1/8] net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

2017-12-14 Thread Salil Mehta
and acknowledgements. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- Patch V4: Addressed comment from Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/12/1194 Patch V3: Addressed comment from Philippe Ombredanne Link: https://lkml.org/lk

[PATCH v4 net-next 1/8] net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

2017-12-14 Thread Salil Mehta
and acknowledgements. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V4: Addressed comment from Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/12/1194 Patch V3: Addressed comment from Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/8/874 Patch V2: Reworked comments by David

[PATCH v4 net-next 3/8] net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

2017-12-14 Thread Salil Mehta
, queries the statistics from the hardware etc. This layer can directly interact with hardware through the IMP(Integrated Mangement Processor) interface or can use mailbox to interact with the PF driver. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@h

[PATCH v4 net-next 3/8] net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

2017-12-14 Thread Salil Mehta
, queries the statistics from the hardware etc. This layer can directly interact with hardware through the IMP(Integrated Mangement Processor) interface or can use mailbox to interact with the PF driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V4: Addressed comment from

[PATCH v4 net-next 6/8] net: hns3: Add mailbox support to PF driver

2017-12-14 Thread Salil Mehta
privileged operations. This patch adds the support of a message handler for handling such various command requests from VF. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- Patch V4: Addressed comment from Philippe Ombredanne Link: https://l

[PATCH v4 net-next 6/8] net: hns3: Add mailbox support to PF driver

2017-12-14 Thread Salil Mehta
privileged operations. This patch adds the support of a message handler for handling such various command requests from VF. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V4: Addressed comment from Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/12/1194 Patch V3: Addressed SPDX

[PATCH v4 net-next 8/8] net: hns3: Add mailbox interrupt handling to PF driver

2017-12-14 Thread Salil Mehta
All PF mailbox events are conveyed through a common interrupt (vector 0). This interrupt vector is shared by reset and mailbox. This patch adds the handling of mailbox interrupt event and its deferred processing in context to a separate mailbox task. Signed-off-by: Salil Mehta <salil

[PATCH v4 net-next 8/8] net: hns3: Add mailbox interrupt handling to PF driver

2017-12-14 Thread Salil Mehta
All PF mailbox events are conveyed through a common interrupt (vector 0). This interrupt vector is shared by reset and mailbox. This patch adds the handling of mailbox interrupt event and its deferred processing in context to a separate mailbox task. Signed-off-by: Salil Mehta Signed-off

[PATCH v4 net-next 7/8] net: hns3: Change PF to add ring-vect binding & resetQ to mailbox

2017-12-14 Thread Salil Mehta
This patch is required to support ring-vector binding and reset of TQPs requested by the VF driver to the PF driver. Mailbox handler is added with corresponding VF commands/messages to handle the request. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng &

[PATCH v4 net-next 7/8] net: hns3: Change PF to add ring-vect binding & resetQ to mailbox

2017-12-14 Thread Salil Mehta
This patch is required to support ring-vector binding and reset of TQPs requested by the VF driver to the PF driver. Mailbox handler is added with corresponding VF commands/messages to handle the request. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- .../ethernet/hisilicon/hns3/hns3pf

[PATCH v4 net-next 4/8] net: hns3: Add HNS3 VF driver to kernel build framework

2017-12-14 Thread Salil Mehta
This patch introduces the new Makefiles and updates existing Makefiles required to build the HNS3 Virtual Function driver. This also updates the Kconfig for introduction of new menuconfig entries related to VF driver. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by:

[PATCH v4 net-next 5/8] net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC

2017-12-14 Thread Salil Mehta
tion. This will help in reduction of redundancy and better management of code. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/Makefile | 5 + drivers/net/ethernet/hisilicon/hns3/hna

[PATCH v4 net-next 4/8] net: hns3: Add HNS3 VF driver to kernel build framework

2017-12-14 Thread Salil Mehta
This patch introduces the new Makefiles and updates existing Makefiles required to build the HNS3 Virtual Function driver. This also updates the Kconfig for introduction of new menuconfig entries related to VF driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- drivers/net/ethernet

[PATCH v4 net-next 5/8] net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC

2017-12-14 Thread Salil Mehta
tion. This will help in reduction of redundancy and better management of code. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- drivers/net/ethernet/hisilicon/hns3/Makefile | 5 + drivers/net/ethernet/hisilicon/hns3/hnae3.c| 14 -- drivers/net/ethernet/hisilicon/

[PATCH v4 net-next 0/8] Hisilicon Network Subsystem 3 VF Ethernet Driver

2017-12-14 Thread Salil Mehta
: Addressed SPDX related comment by Philippe Ombredanne Patch V3: Addressed SPDX change requested by Philippe Ombredanne Patch V2: 1. Addressed some comments by David Miller. 2. Addressed some internal comments on various patches Patch V1: Initial Submit Salil Mehta (8): net: hns3: Add

[PATCH v4 net-next 0/8] Hisilicon Network Subsystem 3 VF Ethernet Driver

2017-12-14 Thread Salil Mehta
: Addressed SPDX related comment by Philippe Ombredanne Patch V3: Addressed SPDX change requested by Philippe Ombredanne Patch V2: 1. Addressed some comments by David Miller. 2. Addressed some internal comments on various patches Patch V1: Initial Submit Salil Mehta (8): net: hns3: Add

[PATCH v4 net-next 2/8] net: hns3: Add mailbox support to VF driver

2017-12-14 Thread Salil Mehta
driver. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- Patch V4: Addressed comment from Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/12/1194 Patch V3: Addressed SPDX change requested by Philippe Ombredanne Link: https://l

[PATCH v4 net-next 2/8] net: hns3: Add mailbox support to VF driver

2017-12-14 Thread Salil Mehta
driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V4: Addressed comment from Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/12/1194 Patch V3: Addressed SPDX change requested by Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/8/874 Patch V2: Addressed some

RE: [PATCH V3 net-next 3/8] net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

2017-12-13 Thread Salil Mehta
Hi Philippe, > -Original Message- > From: Philippe Ombredanne [mailto:pombreda...@nexb.com] > Sent: Wednesday, December 13, 2017 12:54 PM > To: Salil Mehta <salil.me...@huawei.com> > Cc: David S. Miller <da...@davemloft.net>; Zhuangyuzeng (Yisen) > <yi

RE: [PATCH V3 net-next 3/8] net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

2017-12-13 Thread Salil Mehta
Hi Philippe, > -Original Message- > From: Philippe Ombredanne [mailto:pombreda...@nexb.com] > Sent: Wednesday, December 13, 2017 12:54 PM > To: Salil Mehta > Cc: David S. Miller ; Zhuangyuzeng (Yisen) > ; lipeng (Y) ; Salil > Mehta ; net...@vger.kernel.org; LKML k

RE: [PATCH V3 net-next 3/8] net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

2017-12-13 Thread Salil Mehta
Hi Philippe, > -Original Message- > From: Philippe Ombredanne [mailto:pombreda...@nexb.com] > Sent: Tuesday, December 12, 2017 10:41 PM > To: Salil Mehta <salil.me...@huawei.com> > Cc: David S. Miller <da...@davemloft.net>; Zhuangyuzeng (Yisen) > <yi

RE: [PATCH V3 net-next 3/8] net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

2017-12-13 Thread Salil Mehta
Hi Philippe, > -Original Message- > From: Philippe Ombredanne [mailto:pombreda...@nexb.com] > Sent: Tuesday, December 12, 2017 10:41 PM > To: Salil Mehta > Cc: David S. Miller ; Zhuangyuzeng (Yisen) > ; lipeng (Y) ; Salil > Mehta ; net...@vger.kernel.org; LKML k

[PATCH V3 net-next 0/8] Hisilicon Network Subsystem 3 VF Ethernet Driver

2017-12-12 Thread Salil Mehta
: Addressed SPDX change requested by Philippe Ombredanne Patch V2: 1. Addressed some comments by David Miller. 2. Addressed some internal comments on various patches Patch V1: Initial Submit Salil Mehta (8): net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface net

[PATCH V3 net-next 0/8] Hisilicon Network Subsystem 3 VF Ethernet Driver

2017-12-12 Thread Salil Mehta
: Addressed SPDX change requested by Philippe Ombredanne Patch V2: 1. Addressed some comments by David Miller. 2. Addressed some internal comments on various patches Patch V1: Initial Submit Salil Mehta (8): net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface net

[PATCH V3 net-next 6/8] net: hns3: Add mailbox support to PF driver

2017-12-12 Thread Salil Mehta
privileged operations. This patch adds the support of a message handler for handling such various command requests from VF. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- Patch V3: Addressed SPDX change requested by Philippe Ombredanne

[PATCH V3 net-next 6/8] net: hns3: Add mailbox support to PF driver

2017-12-12 Thread Salil Mehta
privileged operations. This patch adds the support of a message handler for handling such various command requests from VF. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V3: Addressed SPDX change requested by Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/8/874 Patch V2: No Change

[PATCH V3 net-next 4/8] net: hns3: Add HNS3 VF driver to kernel build framework

2017-12-12 Thread Salil Mehta
This patch introduces the new Makefiles and updates existing Makefiles required to build the HNS3 Virtual Function driver. This also updates the Kconfig for introduction of new menuconfig entries related to VF driver. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by:

[PATCH V3 net-next 4/8] net: hns3: Add HNS3 VF driver to kernel build framework

2017-12-12 Thread Salil Mehta
This patch introduces the new Makefiles and updates existing Makefiles required to build the HNS3 Virtual Function driver. This also updates the Kconfig for introduction of new menuconfig entries related to VF driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V3: Addressed SPDX

[PATCH V3 net-next 1/8] net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

2017-12-12 Thread Salil Mehta
and acknowledgements. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- Patch V3: Addressed comment from Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/8/874 Patch V2: Reworked comments by David Miller(except one comment on the ud

[PATCH V3 net-next 1/8] net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

2017-12-12 Thread Salil Mehta
and acknowledgements. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V3: Addressed comment from Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/8/874 Patch V2: Reworked comments by David Miller(except one comment on the udelay() while holding locks. Needs further discussion

[PATCH V3 net-next 3/8] net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

2017-12-12 Thread Salil Mehta
, queries the statistics from the hardware etc. This layer can directly interact with hardware through the IMP(Integrated Mangement Processor) interface or can use mailbox to interact with the PF driver. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@h

[PATCH V3 net-next 3/8] net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

2017-12-12 Thread Salil Mehta
, queries the statistics from the hardware etc. This layer can directly interact with hardware through the IMP(Integrated Mangement Processor) interface or can use mailbox to interact with the PF driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V3: Addressed SPDX change

[PATCH V3 net-next 5/8] net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC

2017-12-12 Thread Salil Mehta
tion. This will help in reduction of redundancy and better management of code. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/Makefile | 5 + drivers/net/ethernet/hisilicon/hns3/hna

[PATCH V3 net-next 5/8] net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC

2017-12-12 Thread Salil Mehta
tion. This will help in reduction of redundancy and better management of code. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- drivers/net/ethernet/hisilicon/hns3/Makefile | 5 + drivers/net/ethernet/hisilicon/hns3/hnae3.c| 14 -- drivers/net/ethernet/hisilicon/

[PATCH V3 net-next 7/8] net: hns3: Change PF to add ring-vect binding & resetQ to mailbox

2017-12-12 Thread Salil Mehta
This patch is required to support ring-vector binding and reset of TQPs requested by the VF driver to the PF driver. Mailbox handler is added with corresponding VF commands/messages to handle the request. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng &

[PATCH V3 net-next 8/8] net: hns3: Add mailbox interrupt handling to PF driver

2017-12-12 Thread Salil Mehta
All PF mailbox events are conveyed through a common interrupt (vector 0). This interrupt vector is shared by reset and mailbox. This patch adds the handling of mailbox interrupt event and its deferred processing in context to a separate mailbox task. Signed-off-by: Salil Mehta <salil

[PATCH V3 net-next 7/8] net: hns3: Change PF to add ring-vect binding & resetQ to mailbox

2017-12-12 Thread Salil Mehta
This patch is required to support ring-vector binding and reset of TQPs requested by the VF driver to the PF driver. Mailbox handler is added with corresponding VF commands/messages to handle the request. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- .../ethernet/hisilicon/hns3/hns3pf

[PATCH V3 net-next 8/8] net: hns3: Add mailbox interrupt handling to PF driver

2017-12-12 Thread Salil Mehta
All PF mailbox events are conveyed through a common interrupt (vector 0). This interrupt vector is shared by reset and mailbox. This patch adds the handling of mailbox interrupt event and its deferred processing in context to a separate mailbox task. Signed-off-by: Salil Mehta Signed-off

[PATCH V3 net-next 2/8] net: hns3: Add mailbox support to VF driver

2017-12-12 Thread Salil Mehta
driver. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- Patch V3: Addressed SPDX change requested by Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/8/874 Patch V2: Addressed some internal comments Patch V1: Initial Submit ---

[PATCH V3 net-next 2/8] net: hns3: Add mailbox support to VF driver

2017-12-12 Thread Salil Mehta
driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V3: Addressed SPDX change requested by Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/8/874 Patch V2: Addressed some internal comments Patch V1: Initial Submit --- drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h| 88

RE: [PATCH V2 net-next 2/8] net: hns3: Add mailbox support to VF driver

2017-12-11 Thread Salil Mehta
Hi Philippe, > -Original Message- > From: Philippe Ombredanne [mailto:pombreda...@nexb.com] > Sent: Saturday, December 09, 2017 12:17 AM > To: Salil Mehta <salil.me...@huawei.com> > Cc: David S. Miller <da...@davemloft.net>; Zhuangyuzeng (Yisen) > <yi

RE: [PATCH V2 net-next 2/8] net: hns3: Add mailbox support to VF driver

2017-12-11 Thread Salil Mehta
Hi Philippe, > -Original Message- > From: Philippe Ombredanne [mailto:pombreda...@nexb.com] > Sent: Saturday, December 09, 2017 12:17 AM > To: Salil Mehta > Cc: David S. Miller ; Zhuangyuzeng (Yisen) > ; lipeng (Y) ; > mehta.salil@gmail.com; net...@vger.

[PATCH V2 net-next 3/8] net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

2017-12-08 Thread Salil Mehta
, queries the statistics from the hardware etc. This layer can directly interact with hardware through the IMP(Integrated Mangement Processor) interface or can use mailbox to interact with the PF driver. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@h

[PATCH V2 net-next 3/8] net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

2017-12-08 Thread Salil Mehta
, queries the statistics from the hardware etc. This layer can directly interact with hardware through the IMP(Integrated Mangement Processor) interface or can use mailbox to interact with the PF driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V2: Addressed some internal

[PATCH V2 net-next 0/8] Hisilicon Network Subsystem 3 VF Ethernet Driver

2017-12-08 Thread Salil Mehta
V2: 1. Addressed some comments by David Miller. 2. Addressed some internal comments on various patches Patch V1: Initial Submit NOTE: This patch depends upon https://lkml.org/lkml/2017/11/30/1079 Salil Mehta (8): net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface net

[PATCH V2 net-next 0/8] Hisilicon Network Subsystem 3 VF Ethernet Driver

2017-12-08 Thread Salil Mehta
V2: 1. Addressed some comments by David Miller. 2. Addressed some internal comments on various patches Patch V1: Initial Submit NOTE: This patch depends upon https://lkml.org/lkml/2017/11/30/1079 Salil Mehta (8): net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface net

[PATCH V2 net-next 5/8] net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC

2017-12-08 Thread Salil Mehta
tion. This will help in reduction of redundancy and better management of code. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/Makefile | 6 +- drivers/net/ethernet/hisilicon/hns3/hna

[PATCH V2 net-next 5/8] net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC

2017-12-08 Thread Salil Mehta
tion. This will help in reduction of redundancy and better management of code. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- drivers/net/ethernet/hisilicon/hns3/Makefile | 6 +- drivers/net/ethernet/hisilicon/hns3/hnae3.c| 14 -- drivers/net/ethernet/hisilicon/

[PATCH V2 net-next 4/8] net: hns3: Add HNS3 VF driver to kernel build framework

2017-12-08 Thread Salil Mehta
This patch introduces the new Makefiles and updates existing Makefiles required to build the HNS3 Virtual Function driver. This also updates the Kconfig for introduction of new menuconfig entries related to VF driver. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by:

[PATCH V2 net-next 4/8] net: hns3: Add HNS3 VF driver to kernel build framework

2017-12-08 Thread Salil Mehta
This patch introduces the new Makefiles and updates existing Makefiles required to build the HNS3 Virtual Function driver. This also updates the Kconfig for introduction of new menuconfig entries related to VF driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- drivers/net/ethernet

[PATCH V2 net-next 7/8] net: hns3: Change PF to add ring-vect binding & resetQ to mailbox

2017-12-08 Thread Salil Mehta
This patch is required to support ring-vector binding and reset of TQPs requested by the VF driver to the PF driver. Mailbox handler is added with corresponding VF commands/messages to handle the request. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng &

[PATCH V2 net-next 7/8] net: hns3: Change PF to add ring-vect binding & resetQ to mailbox

2017-12-08 Thread Salil Mehta
This patch is required to support ring-vector binding and reset of TQPs requested by the VF driver to the PF driver. Mailbox handler is added with corresponding VF commands/messages to handle the request. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V2: Addressed some internal

[PATCH V2 net-next 1/8] net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

2017-12-08 Thread Salil Mehta
and acknowledgements. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- Patch V2: Reworked comments by David Miller(except one comment on the udelay() while holding locks. Needs further discussion) Link: https://lkml.org/lkml/2017/12/5/

[PATCH V2 net-next 1/8] net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

2017-12-08 Thread Salil Mehta
and acknowledgements. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V2: Reworked comments by David Miller(except one comment on the udelay() while holding locks. Needs further discussion) Link: https://lkml.org/lkml/2017/12/5/639 Patch V1: Initial Submit --- .../ethernet/hisilicon/hns3

[PATCH V2 net-next 6/8] net: hns3: Add mailbox support to PF driver

2017-12-08 Thread Salil Mehta
privileged operations. This patch adds the support of a message handler for handling such various command requests from VF. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- .../net/ethernet/hisilicon/hns3/hns3pf/Makefile| 2 +-

[PATCH V2 net-next 6/8] net: hns3: Add mailbox support to PF driver

2017-12-08 Thread Salil Mehta
privileged operations. This patch adds the support of a message handler for handling such various command requests from VF. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- .../net/ethernet/hisilicon/hns3/hns3pf/Makefile| 2 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 1

[PATCH V2 net-next 8/8] net: hns3: Add mailbox interrupt handling to PF driver

2017-12-08 Thread Salil Mehta
All PF mailbox events are conveyed through a common interrupt (vector 0). This interrupt vector is shared by reset and mailbox. This patch adds the handling of mailbox interrupt event and its deferred processing in context to a separate mailbox task. Signed-off-by: Salil Mehta <salil

[PATCH V2 net-next 8/8] net: hns3: Add mailbox interrupt handling to PF driver

2017-12-08 Thread Salil Mehta
All PF mailbox events are conveyed through a common interrupt (vector 0). This interrupt vector is shared by reset and mailbox. This patch adds the handling of mailbox interrupt event and its deferred processing in context to a separate mailbox task. Signed-off-by: Salil Mehta Signed-off

[PATCH V2 net-next 2/8] net: hns3: Add mailbox support to VF driver

2017-12-08 Thread Salil Mehta
driver. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- Patch V2: Addressed some internal commnets Patch V1: Initial Submit --- drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h| 94 +++ .../ethernet/hisilicon/hns3/hns3vf/h

[PATCH V2 net-next 2/8] net: hns3: Add mailbox support to VF driver

2017-12-08 Thread Salil Mehta
driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V2: Addressed some internal commnets Patch V1: Initial Submit --- drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h| 94 +++ .../ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c | 188 + 2 files changed

RE: [PATCH net-next 1/8] net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

2017-12-05 Thread Salil Mehta
Hi Dave, > -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, December 05, 2017 4:38 PM > To: Salil Mehta <salil.me...@huawei.com> > Cc: Zhuangyuzeng (Yisen) <yisen.zhu...@huawei.com>; lipeng (Y) > <lipeng...@huawei.com&g

RE: [PATCH net-next 1/8] net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

2017-12-05 Thread Salil Mehta
Hi Dave, > -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, December 05, 2017 4:38 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen) ; lipeng (Y) > ; mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.k

RE: [PATCH V2 net-next 0/3] net: hns3: Refactors "reset" handling code in HCLGE layer of HNS3 driver

2017-12-05 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, December 05, 2017 4:49 PM > To: Salil Mehta <salil.me...@huawei.com> > Cc: Zhuangyuzeng (Yisen) <yisen.zhu...@huawei.com>; lipeng (Y) > <lipeng...@huawei.com&g

RE: [PATCH V2 net-next 0/3] net: hns3: Refactors "reset" handling code in HCLGE layer of HNS3 driver

2017-12-05 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, December 05, 2017 4:49 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen) ; lipeng (Y) > ; mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; linux- &

[PATCH V2 net-next 1/3] net: hns3: Refactor of the reset interrupt handling logic

2017-12-03 Thread Salil Mehta
be deferred or if the interrupt event was due to mailbox(which shall be supported for VF soon), it could delay the reset handling. This patch reorganizes the reset interrupt handling logic and makes it more fair to other events. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Sign

[PATCH V2 net-next 3/3] net: hns3: Refactors the requested reset & pending reset handling code

2017-12-03 Thread Salil Mehta
and hardware has acknowledged back to driver that it is processing the hardware reset through interrupt) Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 100 +

[PATCH V2 net-next 1/3] net: hns3: Refactor of the reset interrupt handling logic

2017-12-03 Thread Salil Mehta
be deferred or if the interrupt event was due to mailbox(which shall be supported for VF soon), it could delay the reset handling. This patch reorganizes the reset interrupt handling logic and makes it more fair to other events. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- .../ethernet

[PATCH V2 net-next 3/3] net: hns3: Refactors the requested reset & pending reset handling code

2017-12-03 Thread Salil Mehta
and hardware has acknowledged back to driver that it is processing the hardware reset through interrupt) Signed-off-by: Salil Mehta Signed-off-by: lipeng --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 100 + .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h| 1 - 2 files

[PATCH V2 net-next 0/3] net: hns3: Refactors "reset" handling code in HCLGE layer of HNS3 driver

2017-12-03 Thread Salil Mehta
to timeout and serving the pending reset request(to reset the driver and associated clients). Change Log: Patch V2: Addressed comment by Andrew Lunn Link: https://lkml.org/lkml/2017/12/1/366 Patch V1: Initial Submit Salil Mehta (3): net: hns3: Refactor of the reset interrupt handling logic

[PATCH V2 net-next 0/3] net: hns3: Refactors "reset" handling code in HCLGE layer of HNS3 driver

2017-12-03 Thread Salil Mehta
to timeout and serving the pending reset request(to reset the driver and associated clients). Change Log: Patch V2: Addressed comment by Andrew Lunn Link: https://lkml.org/lkml/2017/12/1/366 Patch V1: Initial Submit Salil Mehta (3): net: hns3: Refactor of the reset interrupt handling logic

[PATCH V2 net-next 2/3] net: hns3: Add reset service task for handling reset requests

2017-12-03 Thread Salil Mehta
interrupt. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 41 -- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h| 4 +++ 2 files changed, 34 inser

[PATCH V2 net-next 2/3] net: hns3: Add reset service task for handling reset requests

2017-12-03 Thread Salil Mehta
interrupt. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 41 -- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h| 4 +++ 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/drivers/net/ethernet

[PATCH net-next 1/8] net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

2017-12-03 Thread Salil Mehta
and acknowledgements. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c | 341 + .../ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h | 262 2 files changed, 60

[PATCH net-next 1/8] net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

2017-12-03 Thread Salil Mehta
and acknowledgements. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c | 341 + .../ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h | 262 2 files changed, 603 insertions(+) create mode 100644 drivers/net/ethernet

[PATCH net-next 3/8] net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

2017-12-03 Thread Salil Mehta
, queries the statistics from the hardware etc. This layer can directly interact with hardware through the IMP(Integrated Mangement Processor) interface or can use mailbox to interact with the PF driver. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@h

[PATCH net-next 3/8] net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

2017-12-03 Thread Salil Mehta
, queries the statistics from the hardware etc. This layer can directly interact with hardware through the IMP(Integrated Mangement Processor) interface or can use mailbox to interact with the PF driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- .../ethernet/hisilicon/hns3/hns3vf

[PATCH net-next 8/8] net: hns3: Add mailbox interrupt handling to PF driver

2017-12-03 Thread Salil Mehta
All PF mailbox events are conveyed through a common interrupt (vector 0). This interrupt vector is shared by reset and mailbox. This patch adds the handling of mailbox interrupt event and its deferred processing in context to a separate mailbox task. Signed-off-by: Salil Mehta <salil

[PATCH net-next 8/8] net: hns3: Add mailbox interrupt handling to PF driver

2017-12-03 Thread Salil Mehta
All PF mailbox events are conveyed through a common interrupt (vector 0). This interrupt vector is shared by reset and mailbox. This patch adds the handling of mailbox interrupt event and its deferred processing in context to a separate mailbox task. Signed-off-by: Salil Mehta Signed-off

[PATCH net-next 4/8] net: hns3: Add HNS3 VF driver to kernel build framework

2017-12-03 Thread Salil Mehta
This patch introduces the new Makefiles and updates existing Makefiles required to build the HNS3 Virtual Function driver. This also updates the Kconfig for introduction of new menuconfig entries related to VF driver. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by:

[PATCH net-next 4/8] net: hns3: Add HNS3 VF driver to kernel build framework

2017-12-03 Thread Salil Mehta
This patch introduces the new Makefiles and updates existing Makefiles required to build the HNS3 Virtual Function driver. This also updates the Kconfig for introduction of new menuconfig entries related to VF driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- drivers/net/ethernet

[PATCH net-next 5/8] net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC

2017-12-03 Thread Salil Mehta
tion. This will help in reduction of redundancy and better management of code. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/Makefile | 6 +- drivers/net/ethernet/hisilicon/hns3/hna

[PATCH net-next 2/8] net: hns3: Add mailbox support to VF driver

2017-12-03 Thread Salil Mehta
driver. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h| 94 +++ .../ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c | 187 + 2 files changed, 281 insertion

[PATCH net-next 5/8] net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC

2017-12-03 Thread Salil Mehta
tion. This will help in reduction of redundancy and better management of code. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- drivers/net/ethernet/hisilicon/hns3/Makefile | 6 +- drivers/net/ethernet/hisilicon/hns3/hnae3.c| 14 -- drivers/net/ethernet/hisilicon/

[PATCH net-next 2/8] net: hns3: Add mailbox support to VF driver

2017-12-03 Thread Salil Mehta
driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h| 94 +++ .../ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c | 187 + 2 files changed, 281 insertions(+) create mode 100644 drivers/net/ethernet/hisilicon

[PATCH net-next 7/8] net: hns3: Change PF to add ring-vect binding & resetQ to mailbox

2017-12-03 Thread Salil Mehta
This patch is required to support ring-vector binding and reset of TQPs requested by the VF driver to the PF driver. Mailbox handler is added with corresponding VF commands/messages to handle the request. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng &

[PATCH net-next 6/8] net: hns3: Add mailbox support to PF driver

2017-12-03 Thread Salil Mehta
privileged operations. This patch adds the support of a message handler for handling such various command requests from VF. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- .../net/ethernet/hisilicon/hns3/hns3pf/Makefile| 2 +-

[PATCH net-next 7/8] net: hns3: Change PF to add ring-vect binding & resetQ to mailbox

2017-12-03 Thread Salil Mehta
This patch is required to support ring-vector binding and reset of TQPs requested by the VF driver to the PF driver. Mailbox handler is added with corresponding VF commands/messages to handle the request. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- .../ethernet/hisilicon/hns3/hns3pf

<    1   2   3   4   5   6   7   8   9   10   >