RE: [Intel-wired-lan] [PATCH V2 net] ice: Re-organizes reqstd/avail {R, T}XQ check/code for efficiency+readability

2021-04-20 Thread Salil Mehta
> From: Brelinski, TonyX [mailto:tonyx.brelin...@intel.com] > Sent: Tuesday, April 20, 2021 9:26 PM > > > From: Intel-wired-lan On Behalf Of > > Salil Mehta > > Sent: Tuesday, April 13, 2021 3:45 PM > > To: da...@davemloft.net; k...@kernel.org >

[PATCH V2 net] ice: Re-organizes reqstd/avail {R,T}XQ check/code for efficiency+readability

2021-04-13 Thread Salil Mehta
t;ice: Implement ethtool ops for channels") Cc: intel-wired-...@lists.osuosl.org Cc: Jeff Kirsher Signed-off-by: Salil Mehta -- Change V1->V2 (*) Fixed the comments from Anthony Nguyen(Intel) Link: https://lkml.org/lkml/2021/4/12/1997 --- drivers/net/ethernet/intel/ice/ice_lib.c | 14

RE: [PATCH net] ice: Re-organizes reqstd/avail {R,T}XQ check/code for efficiency+readability

2021-04-13 Thread Salil Mehta
Hi Anthony, Thanks for reviewing! > From: Nguyen, Anthony L [mailto:anthony.l.ngu...@intel.com] > Sent: Monday, April 12, 2021 11:41 PM > To: da...@davemloft.net; k...@kernel.org; Salil Mehta > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; Brandeburg, Jesse > ; linux..

[PATCH net] ice: Re-organizes reqstd/avail {R,T}XQ check/code for efficiency+readability

2021-04-10 Thread Salil Mehta
ement ethtool ops for channels") Signed-off-by: Salil Mehta --- drivers/net/ethernet/intel/ice/ice_lib.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c index d13c7fc8fb0a..16

[PATCH net] net: hns3: Trivial spell fix in hns3 driver

2021-04-09 Thread Salil Mehta
Some trivial spelling mistakes which caught my eye during the review of the code. Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions

RE: [Linuxarm] Re: [PATCH net] net: hns3: Limiting the scope of vector_ring_chain variable

2021-04-06 Thread Salil Mehta
anks Salil > From: patchwork-bot+netdev...@kernel.org > [mailto:patchwork-bot+netdev...@kernel.org] > Sent: Monday, April 5, 2021 11:10 PM > To: Salil Mehta > Cc: da...@davemloft.net; k...@kernel.org; net...@vger.kernel.org; > linux-kernel@vger.kernel.org; Linuxarm ; > linux...

[PATCH net] net: hns3: Limiting the scope of vector_ring_chain variable

2021-04-05 Thread Salil Mehta
Limiting the scope of the variable vector_ring_chain to the block where it is used. Fixes: 424eb834a9be ("net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC") Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 3 ++- 1 file changed, 2 insert

[PATCH V2 net 2/2] net: hns3: Remove un-necessary 'else-if' in the hclge_reset_event()

2021-04-05 Thread Salil Mehta
Code to defer the reset(which caps the frequency of the reset) schedules the timer and returns. Hence, following 'else-if' looks un-necessary. Fixes: 9de0b86f6444 ("net: hns3: Prevent to request reset frequently") Signed-off-by: Salil Mehta --- drivers/net/ethernet/h

[PATCH V2 net 0/2] Misc. fixes for hns3 driver

2021-04-05 Thread Salil Mehta
Fixes for the miscellaneous problems found during the review of the code. Change Summary: Patch 1/2, Change V1->V2: [1] Fixed comments from Leon Romanovsky Link: https://lkml.org/lkml/2021/4/4/14 Patch 2/2, Change V1->V2: None Salil Mehta (2): net: hns3: Remove the lef

[PATCH V2 net 1/2] net: hns3: Remove the left over redundant check & assignment

2021-04-05 Thread Salil Mehta
This removes the left over check and assignment which is no longer used anywhere in the function and should have been removed as part of the below mentioned patch. Fixes: 012fcb52f67c ("net: hns3: activate reset timer when calling reset_event") Signed-off-by: Salil Mehta -- V1->

RE: [PATCH net 1/2] net: hns3: Remove the left over redundant check & assignment

2021-04-05 Thread Salil Mehta
> From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Monday, April 5, 2021 1:43 PM > To: Salil Mehta > Cc: da...@davemloft.net; k...@kernel.org; net...@vger.kernel.org; > linux-kernel@vger.kernel.org; Linuxarm ; > linux...@openeuler.org > Subject: Re: [PATCH net 1/2]

RE: [PATCH net 1/2] net: hns3: Remove the left over redundant check & assignment

2021-04-05 Thread Salil Mehta
Hi Leon, Thanks for the review. > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Sunday, April 4, 2021 7:26 AM > To: Salil Mehta > Cc: da...@davemloft.net; k...@kernel.org; net...@vger.kernel.org; > linux-kernel@vger.kernel.org; Linuxarm ; > linux...@openeuler.org >

[PATCH net 2/2] net: hns3: Remove un-necessary 'else-if' in the hclge_reset_event()

2021-04-02 Thread Salil Mehta
Code to defer the reset(which caps the frequency of the reset) schedules the timer and returns. Hence, following 'else-if' looks un-necessary. Fixes: 9de0b86f6444 ("net: hns3: Prevent to request reset frequently") Signed-off-by: Salil Mehta --- drivers/net/ethernet/h

[PATCH net 1/2] net: hns3: Remove the left over redundant check & assignment

2021-04-02 Thread Salil Mehta
This removes the left over check and assignment which is no longer used anywhere in the function and should have been removed as part of the below mentioned patch. Fixes: 012fcb52f67c ("net: hns3: activate reset timer when calling reset_event") Signed-off-by: Salil Mehta --- d

[PATCH net 0/2] Misc. fixes for hns3 driver

2021-04-02 Thread Salil Mehta
Fixes for the miscellaneous problems found during the review of the code. Salil Mehta (2): net: hns3: Remove the left over redundant check & assignment net: hns3: Remove un-necessary 'else-if' in the hclge_reset_event() drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

RE: [PATCH 5/6] dma-mapping/iommu: Add dma_set_max_opt_size()

2021-03-31 Thread Salil Mehta
(+) correction below, sorry for the typo in earlier post. > From: iommu [mailto:iommu-boun...@lists.linux-foundation.org] On Behalf Of > Robin Murphy > Sent: Friday, March 19, 2021 5:00 PM > To: John Garry ; j...@8bytes.org; w...@kernel.org; > j...@linux.ibm.com; martin.peter...@oracle.com; h...@l

RE: [PATCH 5/6] dma-mapping/iommu: Add dma_set_max_opt_size()

2021-03-31 Thread Salil Mehta
> From: iommu [mailto:iommu-boun...@lists.linux-foundation.org] On Behalf Of > Robin Murphy > Sent: Friday, March 19, 2021 5:00 PM > To: John Garry ; j...@8bytes.org; w...@kernel.org; > j...@linux.ibm.com; martin.peter...@oracle.com; h...@lst.de; > m.szyprow...@samsung.com > Cc: io...@lists.linux-f

RE: [REPORT] possible circular locking dependency when booting a VM on arm64 host

2020-07-16 Thread Salil Mehta
> From: Salil Mehta > Sent: Thursday, July 16, 2020 1:53 AM > To: 'Marc Zyngier' ; yuzenghui > > > From: Marc Zyngier [mailto:m...@kernel.org] > > Sent: Wednesday, July 15, 2020 5:09 PM > > To: yuzenghui > > > > Hi Zenghui, > &g

RE: [REPORT] possible circular locking dependency when booting a VM on arm64 host

2020-07-15 Thread Salil Mehta
> From: Marc Zyngier [mailto:m...@kernel.org] > Sent: Wednesday, July 15, 2020 5:09 PM > To: yuzenghui > > Hi Zenghui, > > On 2020-07-09 11:41, Zenghui Yu wrote: > > Hi All, > > > > I had seen the following lockdep splat when booting a guest on my > > Kunpeng 920 with GICv4 enabled. I can also t

RE: [REPORT] possible circular locking dependency when booting a VM on arm64 host

2020-07-09 Thread Salil Mehta
> From: yuzenghui > Sent: Thursday, July 9, 2020 12:50 PM > To: Salil Mehta > Cc: Marc Zyngier ; Thomas Gleixner ; > Linux > Kernel Mailing List ; > linux-arm-ker...@lists.infradead.org; Zhuangyuzeng (Yisen) > ; Wanghaibin (D) > Subject: Re: [REPORT] possible circu

RE: [REPORT] possible circular locking dependency when booting a VM on arm64 host

2020-07-09 Thread Salil Mehta
> linux-arm-ker...@lists.infradead.org > Cc: Zhuangyuzeng (Yisen) ; Salil Mehta > ; Wanghaibin (D) > Subject: [REPORT] possible circular locking dependency when booting a VM on > arm64 > host > > Hi All, > > I had seen the following lockdep splat when booting a guest

RE: [PATCH RFC 0/4] Changes to Support *Virtual* CPU Hotplug for ARM64

2020-07-08 Thread Salil Mehta
Hi James, Thanks for taking time to respond. Please find my replies inline Thanks > From: James Morse [mailto:james.mo...@arm.com] > Sent: Wednesday, July 8, 2020 1:30 PM > To: Salil Mehta > > Hi Salil, > > On 07/07/2020 10:52, Salil Mehta wrote: > >> From: Sali

RE: [PATCH RFC 0/4] Changes to Support *Virtual* CPU Hotplug for ARM64

2020-07-07 Thread Salil Mehta
Hello, A gentle reminder, any comments regarding this series will help us know your opinion and also confirm/correct our understanding about the topic and will be much appreciated. Thanks in anticipation! Best regards Salil > From: Salil Mehta > Sent: Thursday, June 25, 2020 2:38 PM >

[PATCH RFC 1/4] arm64: kernel: Handle disabled[(+)present] cpus in MADT/GICC during init

2020-06-25 Thread Salil Mehta
. Refactoring related to DT/OF is also done to align it with the init changes to support vcpu hotplug. Signed-off-by: Salil Mehta Signed-off-by: Xiongfeng Wang --- arch/arm64/kernel/smp.c | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/arch

[PATCH RFC 4/4] arm64: kernel: Arch specific ACPI hooks(like logical cpuid<->hwid etc.)

2020-06-25 Thread Salil Mehta
not unmap the association between the logical cpuid and hwid/mpidr. This remains persistent. Signed-off-by: Salil Mehta Signed-off-by: Xiongfeng Wang --- arch/arm64/kernel/smp.c | 80 + 1 file changed, 80 insertions(+) diff --git a/arch/arm64/kernel/smp.c

[PATCH RFC 0/4] Changes to Support *Virtual* CPU Hotplug for ARM64

2020-06-25 Thread Salil Mehta
patch-set also ensures that initialization of the cpus when virtual cpu hotplug is not supported remains un-affected. Repository: (*) Kernel changes are at, https://github.com/salil-mehta/linux.git virt-cpuhp-arm64/rfc-v1 (*) QEMU changes for vcpu hotplug could be cloned from below site

[PATCH RFC 3/4] arm64: kernel: Init cpu operations for all possible vcpus

2020-06-25 Thread Salil Mehta
-by: Salil Mehta Signed-off-by: Xiongfeng Wang --- arch/arm64/kernel/smp.c | 38 -- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index 864ccd3da419..63f31ea23e55 100644 --- a/arch/arm64/kernel

[PATCH RFC 2/4] arm64: kernel: Bound the total(present+disabled) cpus with nr_cpu_ids

2020-06-25 Thread Salil Mehta
Bound the total number of identified cpus(including disabled cpus) by maximum allowed limit by the kernel. Max value is either specified as part of the kernel parameters 'nr_cpus' or specified during compile time using CONFIG_NR_CPUS. Signed-off-by: Salil Mehta Signed-off-by: Xion

RE: [PATCH V2 net-next 0/2] net: hns3: adds two VLAN feature

2020-05-28 Thread Salil Mehta
Hi Jakub/David, > From: Jakub Kicinski [mailto:k...@kernel.org] > Sent: Wednesday, May 27, 2020 8:31 PM > To: tanhuazhong > Cc: David Miller ; net...@vger.kernel.org; > linux-kernel@vger.kernel.org; Salil Mehta ; > Zhuangyuzeng (Yisen) ; Linuxarm > Subject: Re: [PATCH V2 ne

RE: [PATCH net-next 08/11] net: hns3: add interrupt affinity support for misc interrupt

2019-07-29 Thread Salil Mehta
> From: tanhuazhong > Sent: Wednesday, July 24, 2019 4:19 AM > To: da...@davemloft.net > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; Salil Mehta > ; Zhuangyuzeng (Yisen) ; > Linuxarm ; linyunsheng ; lipeng > (Y) ; tanhuazhong > Subject: [PATCH net-ne

RE: [PATCH net-next 1/2] hinic: add rss support

2019-06-10 Thread Salil Mehta
> From: netdev-ow...@vger.kernel.org [mailto:netdev- > ow...@vger.kernel.org] On Behalf Of Xue Chaojing > Sent: Monday, June 10, 2019 4:35 AM > To: da...@davemloft.net > Cc: linux-kernel@vger.kernel.org; net...@vger.kernel.org; Luoshaokai > (luoshaokai) ; Wangxiaoyun (Cloud, Network Chip > Applicat

RE: [PATCH v2 net-next] net: link_watch: prevent starvation when processing linkwatch wq

2019-05-31 Thread Salil Mehta
> From: netdev-ow...@vger.kernel.org [mailto:netdev- > ow...@vger.kernel.org] On Behalf Of Yunsheng Lin > Sent: Friday, May 31, 2019 10:01 AM > To: da...@davemloft.net > Cc: hkallwe...@gmail.com; f.faine...@gmail.com; > step...@networkplumber.org; net...@vger.kernel.org; linux- > ker...@vger.kernel

RE: [PATCH v2 net-next] net: link_watch: prevent starvation when processing linkwatch wq

2019-05-31 Thread Salil Mehta
> From: netdev-ow...@vger.kernel.org On Behalf Of Yunsheng Lin > Sent: Friday, May 31, 2019 10:01 AM > To: da...@davemloft.net > Cc: hkallwe...@gmail.com; f.faine...@gmail.com; > step...@networkplumber.org; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; Linuxarm > Subject: [PATCH v2 net-

RE: [PATCH net-next] net: link_watch: prevent starvation when processing linkwatch wq

2019-05-29 Thread Salil Mehta
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On > Behalf Of Yunsheng Lin > Sent: Tuesday, May 28, 2019 2:04 AM > > On 2019/5/27 22:58, Stephen Hemminger wrote: > > On Mon, 27 May 2019 09:47:54 +0800 > > Yunsheng Lin wrote: > > > >> When user has configured a large n

RE: [PATCH] net: hns: Fix object reference leaks in hns_dsaf_roce_reset()

2019-02-18 Thread Salil Mehta
> From: John Garry > Sent: Friday, February 15, 2019 12:00 PM > > On 15/02/2019 11:25, Salil Mehta wrote: > >> From: John Garry > >> Sent: Friday, February 15, 2019 10:52 AM > >> > >> On 14/02/2019 06:41, Huang Zijiang wrote: > >>> The

[PATCH net] net: hns: Fixes the missing put_device in positive leg for roce reset

2019-02-18 Thread Salil Mehta
This patch fixes the missing device reference release-after-use in the positive leg of the roce reset API of the HNS DSAF. Fixes: c969c6e7ab8c ("net: hns: Fix object reference leaks in hns_dsaf_roce_reset()") Reported-by: John Garry Signed-off-by: Salil Mehta --- drivers/ne

RE: [PATCH] net: hns: Fix object reference leaks in hns_dsaf_roce_reset()

2019-02-15 Thread Salil Mehta
> From: John Garry > Sent: Friday, February 15, 2019 10:52 AM > > On 14/02/2019 06:41, Huang Zijiang wrote: > > The of_find_device_by_node() takes a reference to the underlying device > > structure, we should release that reference. > > of_find_device_by_node() is not called for every path, so is

RE: [PATCH net-next] net: hns3: Fix potential NULL dereference on allocation error

2019-01-28 Thread Salil Mehta
> From: yuehaibing > Sent: Friday, January 25, 2019 3:14 AM > To: da...@davemloft.net; Zhuangyuzeng (Yisen) ; > Salil Mehta ; lipeng (Y) > Cc: linux-kernel@vger.kernel.org; net...@vger.kernel.org; yuehaibing > > Subject: [PATCH net-next] net: hns3: Fix potential NULL derefe

RE: hns: question regarding ae_node device node refcounting

2019-01-11 Thread Salil Mehta
Hi Alexey, > From: Alexey Khoroshilov [mailto:khoroshi...@ispras.ru] > Sent: Saturday, December 22, 2018 9:55 PM > To: Zhuangyuzeng (Yisen) ; Salil Mehta > ; lipeng (Y) > Cc: Alexey Khoroshilov ; David S. Miller > ; net...@vger.kernel.org; linux- > ker...@vger

[PATCH V2 net-next 0/6] net: hns3: Add more commands to Debugfs in HNS3 driver

2018-12-15 Thread Salil Mehta
This patch-set adds few more debugfs commands to HNS3 Ethernet Driver. Support has been added to query info related to below items: 1. Packet buffer descriptor ("echo bd info [queue no] [bd index] > cmd") 2. Manager table("echo dump mng tbl > cmd") 3. Dfx status register("echo dump reg ssu [prt id]

[PATCH V2 net-next 1/6] net: hns3: Add "bd info" query function

2018-12-15 Thread Salil Mehta
off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 79 +- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c index 86d667a3730a..9a0265

[PATCH V2 net-next 2/6] net: hns3: Add "manager table" information query function

2018-12-15 Thread Salil Mehta
0 |0 01 |c2:f1:c5:82:68:17|0 |0|0 ||0 |00 |00 |0 root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 5 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 19 +++ .../ethernet/hisilicon/hns3/

[PATCH V2 net-next 6/6] net: hns3: Add "tm map" status information query function

2018-12-15 Thread Salil Mehta
From: liuzhongzhu This patch prints dcb register status information by module. debugfs command: root@(none)# echo dump tm map 100 > cmd queue_id | qset_id | pri_id | tc_id 0100 | 0065| 08 | 00 root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/

[PATCH V2 net-next 5/6] net: hns3: Add "queue map" information query function

2018-12-15 Thread Salil Mehta
47 784 root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h| 1 + drivers/net/ethernet/hisilicon/hns3/hnae3.h| 1 + drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 33 ++ .../et

[PATCH V2 net-next 4/6] net: hns3: Add "dcb register" status information query function

2018-12-15 Thread Salil Mehta
ned-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 7 ++ .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 9 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 102 + .../ethernet/hisilicon/hns3/hns

[PATCH V2 net-next 3/6] net: hns3: Add "status register" information query function

2018-12-15 Thread Salil Mehta
2: 0x2 DFX_MSIX_INFO_NIC_3: 0x2 DFX_MSIX_INFO_ROC_0: 0xc000 DFX_MSIX_INFO_ROC_1: 0x0 DFX_MSIX_INFO_ROC_2: 0x0 DFX_MSIX_INFO_ROC_3: 0x0 root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 15 + .../net/ethernet/hisilicon/hns3/

RE: [PATCH net-next 0/6] net: hns3: Add more commands to Debugfs in HNS3 driver

2018-12-15 Thread Salil Mehta
> From: David Miller [mailto:da...@davemloft.net] > Sent: Friday, December 14, 2018 10:37 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen) ; lipeng (Y) > ; mehta.sa...@opnsrc.net; net...@vger.kernel.org; > linux-kernel@vger.kernel.org; Linuxarm > Subject: Re: [PATCH net-nex

[PATCH net-next 0/6] net: hns3: Add more commands to Debugfs in HNS3 driver

2018-12-11 Thread Salil Mehta
This patch-set adds few more debugfs commands to HNS3 Ethernet Driver. Support has been added to query info related to below items: 1. Packet buffer descriptor ("echo bd info [queue no] [bd index] > cmd") 2. Manager table("echo dump mng tbl > cmd") 3. Dfx status register("echo dump reg ssu [prt id]

[PATCH net-next 5/6] net: hns3: Add "queue map" information query function

2018-12-11 Thread Salil Mehta
47 784 root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h| 1 + drivers/net/ethernet/hisilicon/hns3/hnae3.h| 1 + drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 33 ++ .../et

[PATCH net-next 2/6] net: hns3: Add "manager table" information query function

2018-12-11 Thread Salil Mehta
0 |0 01 |c2:f1:c5:82:68:17|0 |0|0 ||0 |00 |00 |0 root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 1 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 19 +++ .../ethernet/hisilicon/hns3/

[PATCH net-next 6/6] net: hns3: Add "tm map" status information query function

2018-12-11 Thread Salil Mehta
From: liuzhongzhu This patch prints dcb register status information by module. debugfs command: root@(none)# echo dump tm map 100 > cmd queue_id | qset_id | pri_id | tc_id 0100 | 0065| 08 | 00 root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/

[PATCH net-next 1/6] net: hns3: Add "bd info" query function

2018-12-11 Thread Salil Mehta
off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 79 +- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c index 86d667a..9a02655 100644

[PATCH net-next 4/6] net: hns3: Add "dcb register" status information query function

2018-12-11 Thread Salil Mehta
ned-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 7 ++ .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 9 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 102 + .../ethernet/hisilicon/hns3/hns

[PATCH net-next 3/6] net: hns3: Add "status register" information query function

2018-12-11 Thread Salil Mehta
2: 0x2 DFX_MSIX_INFO_NIC_3: 0x2 DFX_MSIX_INFO_ROC_0: 0xc000 DFX_MSIX_INFO_ROC_1: 0x0 DFX_MSIX_INFO_ROC_2: 0x0 DFX_MSIX_INFO_ROC_3: 0x0 root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 15 + .../net/ethernet/hisilicon/hns3/

[PATCH net-next 09/14] net: hns3: add handling of hw errors reported through MSIX

2018-12-07 Thread Salil Mehta
required. Hence, a new reset type UNKNOWN reset has been introduced which effectively defers the assertion of the reset till we get hold of kind of errors at later time. Signed-off-by: Salil Mehta Signed-off-by: Shiju Jose --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 1 + .../net

[PATCH net-next 08/14] net: hns3: deleted logging 1 bit errors

2018-12-07 Thread Salil Mehta
errors in the hw registers. Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 37 -- 1 file changed, 37 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c b/drivers/net/ethernet

[PATCH net-next 10/14] net: hns3: add handling of hw errors of MAC

2018-12-07 Thread Salil Mehta
From: Shiju Jose This patch adds enable and handling of hw errors of the MAC block. Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 1 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 48 ++ .../net

[PATCH net-next 02/14] net: hns3: rename enable error interrupt functions

2018-12-07 Thread Salil Mehta
From: Shiju Jose This patch - renames the enable error interrupt functions. The reason is that these functions are used for both enable and disable error interrupts. - removes redundant logs from the enable error interrupt functions. Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta

[PATCH net-next 12/14] net: hns3: handle hw errors of PPU(RCB)

2018-12-07 Thread Salil Mehta
From: Shiju Jose This patch enables and handles hw RAS and MSIx errors of PPU(RCB). Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 3 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 162 + .../net

[PATCH net-next 14/14] net: hns3: add handling of RDMA RAS errors

2018-12-07 Thread Salil Mehta
From: Shiju Jose This patch handles the RDMA RAS errors. 1. Enable RAS interrupt, print error detail info and clear error status. 2. Do CORE reset to recovery when these non-fatal errors happened. Signed-off-by: Xiaofei Tan Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta --- .../net

[PATCH net-next 03/14] net: hns3: re-enable error interrupts on hw reset

2018-12-07 Thread Salil Mehta
From: Shiju Jose This patch adds calling hclge_hw_error_set_state function to re-enable the error interrupts those will be disabled on the hw reset. Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 2 +- drivers/net/ethernet

[PATCH net-next 13/14] net: hns3: handle hw errors of SSU

2018-12-07 Thread Salil Mehta
From: Shiju Jose This patch enables and handles hw errors of the Storage Switch Unit(SSU). Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 2 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 187

[PATCH net-next 05/14] net: hns3: rename process_hw_error function

2018-12-07 Thread Salil Mehta
From: Shiju Jose This patch renames process_hw_error function to handle_hw_ras_error function to match the purpose of the function. This is because hw errors reported through ras and msix interrupts will be handled separately. Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta --- drivers

[PATCH net-next 11/14] net: hns3: handle hw errors of PPP PF

2018-12-07 Thread Salil Mehta
From: Shiju Jose This patch handles PF hw errors of PPP(Programmable Packet Processor). Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH net-next 07/14] net: hns3: add handling of hw ras errors using new set of commands

2018-12-07 Thread Salil Mehta
From: Shiju Jose 1. This patch adds handling of hw ras errors using new set of common commands. 2. Updated the error message tables to match the register's name and error status returned by the commands. Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta --- .../net/eth

[PATCH net-next 04/14] net: hns3: deletes unnecessary settings of the descriptor data

2018-12-07 Thread Salil Mehta
From: Shiju Jose This patch deletes unnecessary setting of the descriptor data to 0 for disabling error interrupts because it is already done by the hclge_cmd_setup_basic_desc function. Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3pf

[PATCH net-next 06/14] net: hns3: add optimization in the hclge_hw_error_set_state

2018-12-07 Thread Salil Mehta
From: Shiju Jose 1. This patch adds minor loop optimization in the hclge_hw_error_set_state function. 2. Adds logging module's name if it fails to configure the error interrupts. Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/h

[PATCH net-next 00/14] net: hns3: Additions/optimizations related to HNS3 H/W err handling

2018-12-07 Thread Salil Mehta
. Add handling for the HW RAS and MSIx errors in the modules MAC, PPP PF, MSIx SRAM, RCB and SSU. [PATCH 10-13] 6. Add handling of RoCEE RAS errors. [PATCH 14] Salil Mehta (1): net: hns3: add handling of hw errors reported through MSIX Shiju Jose (13): net: hns3: remove existing process

[PATCH net-next 01/14] net: hns3: remove existing process error functions and reorder hw_blk table

2018-12-07 Thread Salil Mehta
in this patch set. 2. Fixed order issue of the hw_blk table. Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 12 - .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 462 + .../net/ethernet/hisilicon/hns3

[PATCH net-next 2/8] net: hns3: Add "queue info" query function

2018-11-19 Thread Salil Mehta
d:00.0: TX(1) RING PKTNUM: 0 root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- .../ethernet/hisilicon/hns3/hns3_debugfs.c| 122 ++ 1 file changed, 122 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/ethernet/his

[RFC PATCH 10/10] net: hns3: Add "qos buffer" config info query function

2018-11-09 Thread Salil Mehta
d:00.0: rx_packet_buf_tc_7: 0x0 hns3 :7d:00.0: rx_share_buf: 0x1e0e root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 1 + .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 115 + 2 files change

[RFC PATCH 05/10] net: hns3: Add "tc config" info query function

2018-11-09 Thread Salil Mehta
e hns3 :7d:00.0: tc(3): no sp mode hns3 :7d:00.0: tc(4): no sp mode hns3 :7d:00.0: tc(5): no sp mode hns3 :7d:00.0: tc(6): no sp mode hns3 :7d:00.0: tc(7): no sp mode root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilico

[RFC PATCH 09/10] net: hns3: Add "qos prio map" info query function

2018-11-09 Thread Salil Mehta
d:00.0: pri_1_to_tc: 0x0 hns3 :7d:00.0: pri_2_to_tc: 0x0 hns3 :7d:00.0: pri_3_to_tc: 0x0 hns3 :7d:00.0: pri_4_to_tc: 0x0 hns3 :7d:00.0: pri_5_to_tc: 0x0 hns3 :7d:00.0: pri_6_to_tc: 0x0 hns3 :7d:00.0: pri_7_to_tc: 0x0 root@(none)# Signed-off-by: liuzhongzhu Signed-off-by:

[RFC PATCH 02/10] net: hns3: Add "queue info" query function

2018-11-09 Thread Salil Mehta
d:00.0: TX(1) RING PKTNUM: 0 root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 122 + 1 file changed, 122 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/et

[RFC PATCH 01/10] net: hns3: Add debugfs framework registration

2018-11-09 Thread Salil Mehta
From: liuzhongzhu Add the debugfs framework to the driver and create a debugfs command interface for each device. example command: "echo queue info > cmd" Query the packet forwarding queue information. Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ether

[PATCH net-next 3/7] net: hns3: Add support to enable and disable hw errors

2018-10-19 Thread Salil Mehta
From: Shiju Jose This patch adds functions to enable and disable hw errors. Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 22 ++ .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h | 2 ++ .../ethernet

[PATCH net-next 4/7] net: hns3: Add support for rule query of flow director

2018-10-01 Thread Salil Mehta
From: Jian Shen This patch adds support for querying rule number and rule details by ethtool commands. Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 6 + drivers/net/ethernet/hisilicon/hns3

[PATCH net-next 10/12] net: hns3: Clear client pointer when initialize client failed or unintialize finished

2018-09-19 Thread Salil Mehta
HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 25 ++-- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 33 -

RE: [PATCH net-next 5/9] net: hns3: Fix for vf vlan delete failed problem

2018-08-14 Thread Salil Mehta
Hi Dave, > -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Monday, August 13, 2018 4:57 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen) ; lipeng (Y) > ; mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger

[PATCH net-next 8/9] net: hns3: Fix for using wrong mask and shift in hclge_get_ring_chain_from_mbx

2018-07-16 Thread Salil Mehta
ng Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_m

[PATCH net-next 02/12] net: hns3: Add support for tx_accept_tag2 and tx_accept_untag2 config

2018-05-25 Thread Salil Mehta
From: Peng Li HNS3 Hardware can support up to two VLAN tags in transmit leg, the PPP module can handle the packets based on the tag1 and tag2 config. This patch adds support for tag2 config for vlan handling Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon

[PATCH net-next 04/12] net: hns3: Add support to enable TX/RX promisc mode for H/W rev(0x21)

2018-05-25 Thread Salil Mehta
From: Peng Li HCLGE_PROMISC_TX_EN_B and HCLGE_PROMISC_RX_EN_B are not supported on pdev revision(0x20), new revision(0x21) supports them. Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 2 ++ drivers/net/ethernet/hisilicon/hns3

[PATCH net-next 05/12] net: hns3: Fix for PF mailbox receving unknown message

2018-05-25 Thread Salil Mehta
Fixes: c1a81619d73a ("net: hns3: Add mailbox interrupt handling to PF driver") Signed-off-by: Xi Wang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 23 +++--- 1 file changed, 20 insertions(+), 3 deletions(-

[PATCH net-next 00/12] Misc. bug fixes & some minor additions to HNS3 driver

2018-05-25 Thread Salil Mehta
This patch-set provides some bug fixes figured out during testing and review. It also provides some additions due to running of the existing code on the new revision of the HNS3 hardware. Fuyun Liang (3): net: hns3: Fixes the init of the VALID BD info in the descriptor net: hns3: Removes unnec

[PATCH net-next 07/12] net: hns3: Fixes the init of the VALID BD info in the descriptor

2018-05-25 Thread Salil Mehta
this bit was not being (re-)initialized properly and hence was causing problems. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/h

[PATCH net-next 10/12] net: hns3: Remove unused led control code

2018-05-25 Thread Salil Mehta
, the dirver just needs to deal with locate command. So the codes for link led, traffic led and speed led are useless now. This patch removes these redundant codes. Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h

[PATCH net-next 06/12] net: hns3: Fixes the state to indicate client-type initialization

2018-05-25 Thread Salil Mehta
the initialization state. Fixes: 38caee9d3ee8 ("net: hns3: Add support of the HNAE3 framework") Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hnae3.c | 49 +++-- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 4 ++

[PATCH net-next 09/12] net: hns3: Clear TX/RX rings when stopping port & un-initializing client

2018-05-25 Thread Salil Mehta
ensure the buffer is clean when port is started. We should clear the rings when clients are being un-initialized as well. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --

[PATCH net-next 12/12] net: hns3: Fixes initalization of RoCE handle and makes it conditional

2018-05-25 Thread Salil Mehta
F HCL(Hardware Compatibility Layer) Support") Reported-by: Xinwei Kong Reported-by: Zhou Wang Signed-off-by: Lijun Ou Signed-off-by: Zhou Wang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-)

[PATCH net-next 11/12] net: hns3: Adds support for led locate command for copper port

2018-05-25 Thread Salil Mehta
between driver and firmware. Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 12 ++-- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 35 +++--- 2 files changed, 6 insertions(+), 41

[PATCH net-next 08/12] net: hns3: Removes unnecessary check when clearing TX/RX rings

2018-05-25 Thread Salil Mehta
ned-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index d1ef104..4c13

[PATCH net-next 01/12] net: hns3: Updates RX packet info fetch in case of multi BD

2018-05-25 Thread Salil Mehta
size from the first descriptor and information like VLAN should be fetched from last BD. Signed-off-by: Peng Li Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 36 - 1 file changed, 18 insertions(+), 18 deletions

[PATCH net-next 03/12] net: hns3: Add STRP_TAGP field support for hardware revision 0x21

2018-05-25 Thread Salil Mehta
bit, 0 indicates the tag is not stripped and 1 indicates the tag is stripped. This patch adds STRP_TAGP support for revision(0x21), and does not change the revision(0x20) action. Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 42

[PATCH net-next 3/9] net: hns3: cleanup of return values in hclge_init_client_instance()

2018-05-19 Thread Salil Mehta
From: Jian Shen Removes the goto and directly returns in case of errors as part of the cleanup. Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 14 ++ 1 file changed, 6 insertions(+), 8

[PATCH net-next 0/9] Misc. bug fixes and cleanup for HNS3 driver

2018-05-19 Thread Salil Mehta
hclge_is_special_opcode Jian Shen (1): net: hns3: cleanup of return values in hclge_init_client_instance() Peng Li (1): net: hns3: Fixes API to fetch ethernet header length with kernel default Salil Mehta (1): net: hns3: Fixes error reported by Kbuild and internal review Xi Wang (3

[PATCH net-next 2/9] net: hns3: Fixes API to fetch ethernet header length with kernel default

2018-05-19 Thread Salil Mehta
r the first Buffer Descriptor if the packet is spanning across multiple descriptors. Kernel default eth_get_headlen API does the job correctly. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Peng Li Reviewed-by: Yisen Zhuang Signed-off-

[PATCH net-next 9/9] net: hns3: Fix for CMDQ and Misc. interrupt init order problem

2018-05-19 Thread Salil Mehta
adjusting the location of some function. Fixes: e2cb1dec9779 ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support") Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c| 16 -

[PATCH net-next 5/9] net: hns3: Fix for hns3 module is loaded multiple times problem

2018-05-19 Thread Salil Mehta
x158/0x208 [ 23.729300] el0_svc_naked+0x30/0x34 This patch fixes it by adding module version info. Fixes: 38caee9d3ee8 ("net: hns3: Add support of the HNAE3 framework") Signed-off-by: Xi Wang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hnae3.c | 1 +

[PATCH net-next 7/9] net: hns3: Fix for netdev not running problem after calling net_stop and net_open

2018-05-19 Thread Salil Mehta
updating the link state in ae_stop function. Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 3 +++

[PATCH net-next 8/9] net: hns3: Fixes kernel panic issue during rmmod hns3 driver

2018-05-19 Thread Salil Mehta
ad of spin_lock_bh. Fixes: 68c0a5c70614 ("net: hns3: Add HNS3 IMP(Integrated Mgmt Proc) Cmd Interface Support") Signed-off-by: Xi Wang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 4 ++-- 1 file changed, 2 insertions(

  1   2   3   4   5   6   7   >