Re: [EXT] [PATCH V4] bnx2x: Prevent ptp_task to be rescheduled indefinitely

2019-06-28 Thread Guilherme G. Piccoli
On 28/06/2019 02:22, Sudarsana Reddy Kalluru wrote: > [...] > Thanks for the changes. > > Acked-by: Sudarsana Reddy Kalluru > Thanks a lot Sudarsana! David, do you think it's still possible to get this merged as a fix in 5.2 cycle, or it's gonna go in 5.3? Thanks, Guilherme

[PATCH V4] bnx2x: Prevent ptp_task to be rescheduled indefinitely

2019-06-27 Thread Guilherme G. Piccoli
skipped TX timestamp packets and it reduces the priority of timestamping error messages to prevent log flooding. The code was tested using both linuxptp and chrony. Reported-and-tested-by: Przemyslaw Hausman Suggested-by: Sudarsana Reddy Kalluru Signed-off-by: Guilherme G. Piccoli --- Thanks a

Re: [EXT] [PATCH V3] bnx2x: Prevent ptp_task to be rescheduled indefinitely

2019-06-27 Thread Guilherme G. Piccoli
Thanks again Sudarsana for the good review and advice. I'll send V4 soon. Discussions about your points are in-line below: On 27/06/2019 07:09, Sudarsana Reddy Kalluru wrote: > >> [...] >> if (unlikely(skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP)) { >> if (!(bp->flags & TX_TIME

[PATCH V3] bnx2x: Prevent ptp_task to be rescheduled indefinitely

2019-06-26 Thread Guilherme G. Piccoli
skipped TX timestamp packets and it reduces the priority of timestamping error messages to prevent log flooding. The code was tested using both linuxptp and chrony. Reported-and-tested-by: Przemyslaw Hausman Suggested-by: Sudarsana Reddy Kalluru Signed-off-by: Guilherme G. Piccoli --- Sudarsa

[PATCH V2] bnx2x: Prevent ptp_task to be rescheduled indefinitely

2019-06-24 Thread Guilherme G. Piccoli
skipped TX timestamp packets and it reduces the priority of timestamping error messages to prevent log flooding. The code was tested using both linuxptp and chrony. Reported-and-tested-by: Przemyslaw Hausman Suggested-by: Sudarsana Reddy Kalluru Signed-off-by: Guilherme G. Piccoli --- Sudar

[PATCH] bnx2x: Prevent ptp_task to be rescheduled indefinitely

2019-06-21 Thread Guilherme G. Piccoli
he error path for TX timestamping. It was tested using both linuxptp and chrony. Reported-and-tested-by: Przemyslaw Hausman Signed-off-by: Guilherme G. Piccoli --- drivers/net/ethernet/broadcom/bnx2x/bnx2x.h| 1 + .../net/ethernet/broadcom/bnx2x/bnx2x_cmn.c| 1 + .../net/ethernet/broadco

[PATCH net] bnx2x: Improve reliability in case of nested PCI errors

2017-12-22 Thread Guilherme G. Piccoli
multiple PCI errors in a row are not expected to lead to a functional adapter anyway), and by, * preventing access to adapter FW when MCP is failed (we mark it as failed when shmem cannot get initialized properly). Reported-by: Abdul Haleem Signed-off-by: Guilherme G. Piccoli --- drivers/net

[PATCH net] cxgb4: fix BUG() on interrupt deallocating path of ULD

2017-07-10 Thread Guilherme G. Piccoli
h of ULD on cxgb4 driver, by properly freeing and disabling interrupts on PCI remove handler too. Fixes: 0fbc81b3ad51 ("Allocate resources dynamically for all cxgb4 ULD's") Reported-by: Harsha Thyagaraja Signed-off-by: Guilherme G. Piccoli --- It might be important to add

[PATCH net] cxgb4: avoid crash on PCI error recovery path

2017-05-28 Thread Guilherme G. Piccoli
the recovery steps is a mistake that could prevent the recovery path to complete successfully. Reported-by: Harsha Thyagaraja Signed-off-by: Guilherme G. Piccoli --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 21 + drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 9

Re: i40e: driver can't probe device (capabilities discovery error)

2017-02-08 Thread Guilherme G. Piccoli
I forgot to attach a perhaps important file, the output of lspci. Here it goes. Thanks, Guilherme 0002:01:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller X710/X557-AT 10GBASE-T [8086:1589] (rev 02) Subsystem: Super Micro Computer Inc Device [15d9:] Con

i40e: driver can't probe device (capabilities discovery error)

2017-02-08 Thread Guilherme G. Piccoli
Guilherme >From 1a49e453816dbab747788b87f9d03edc978cb50b Mon Sep 17 00:00:00 2001 From: "Guilherme G. Piccoli" Date: Tue, 7 Feb 2017 17:38:04 -0200 Subject: [PATCH] i40: force global reset on adapter probe Device might experience a bad state on probe time, making impossible to

Re: [PATCH net v2] igb: re-assign hw address pointer on reset after PCI error

2016-12-02 Thread Guilherme G. Piccoli
On 11/10/2016 04:46 PM, Guilherme G. Piccoli wrote: > Whenever the igb driver detects the result of a read operation returns > a value composed only by F's (like 0x), it will detach the > net_device, clear the hw_addr pointer and warn to the user that adapter's > link

[PATCH net v2] igb: re-assign hw address pointer on reset after PCI error

2016-11-10 Thread Guilherme G. Piccoli
Thyagaraja Signed-off-by: Guilherme G. Piccoli --- drivers/net/ethernet/intel/igb/igb_main.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index edc9a6a..136ee9e 100644 --- a/drivers/net/ethernet/i

Re: [Intel-wired-lan] [PATCH net] igb: re-assign hw address pointer on reset after PCI error

2016-11-10 Thread Guilherme G. Piccoli
On 11/09/2016 03:12 PM, Alexander Duyck wrote: > On Mon, Oct 31, 2016 at 1:12 PM, Guilherme G. Piccoli > wrote: >> Whenever the igb driver detects the result of a read operation returns >> a value composed only by F's (like 0x), it will detach the >> net_devi

[PATCH net] ehea: fix operation state report

2016-11-03 Thread Guilherme G. Piccoli
a call to netif_carrier_off() on ehea's net device open callback. Reported-by: Xiong Zhou Reference-ID: IBM bz #137702, Red Hat bz #1089134 Signed-off-by: Guilherme G. Piccoli --- drivers/net/ethernet/ibm/ehea/ehea_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/et

[PATCH net] igb: re-assign hw address pointer on reset after PCI error

2016-10-31 Thread Guilherme G. Piccoli
h that path. Reported-by: Anthony H. Thai Reported-by: Harsha Thyagaraja Signed-off-by: Guilherme G. Piccoli --- drivers/net/ethernet/intel/igb/igb_main.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb

[PATCH net v2] tg3: Avoid NULL pointer dereference in tg3_io_error_detected()

2016-09-29 Thread Guilherme G. Piccoli
ed by Michael Chan]. Fixes: 0486a063b1ff ("tg3: prevent ifup/ifdown during PCI error recovery") Fixes: dfc8f370316b ("net/tg3: Release IRQs on permanent error") Tested-by: Guilherme G. Piccoli Signed-off-by: Milton Miller Signed-off-by: Guilherme G. Piccoli --- * v2 cha

Re: [PATCH RFC net-next] bnx2x: avoid printing unnecessary messages during register dump

2016-09-29 Thread Guilherme G. Piccoli
On 09/27/2016 11:43 PM, David Miller wrote: > From: "Guilherme G. Piccoli" > Date: Tue, 27 Sep 2016 15:33:54 -0300 > >> The bnx2x driver prints multiple error messages during register dump, >> with "ethtool -d" for example. The driver even warn that

Re: [Intel-wired-lan] [PATCH net] i40e: avoid NULL pointer dereference and recursive errors on early PCI error

2016-09-27 Thread Guilherme G. Piccoli
On 09/27/2016 07:41 PM, Keller, Jacob E wrote: > On Tue, 2016-09-27 at 18:14 -0300, Guilherme G. Piccoli wrote: >> Although rare, it's possible to hit PCI error early on device >> probe, meaning possibly some structs are not entirely initialized, >> and some might even b

Re: [PATCH net] tg3: Avoid NULL pointer dereference in tg3_io_error_detected()

2016-09-27 Thread Guilherme G. Piccoli
On 09/27/2016 05:58 PM, Michael Chan wrote: On Tue, Sep 27, 2016 at 1:05 PM, Guilherme G. Piccoli wrote: From: Milton Miller While the driver is probing the adapter, an error may occur before the netdev structure is allocated and attached to pci_dev. In this case, not only netdev isn&#

[PATCH net] i40e: avoid NULL pointer dereference and recursive errors on early PCI error

2016-09-27 Thread Guilherme G. Piccoli
e. Also, driver started to flood console with those ARQ event messages. This patch will prevent these issues by allowing error recovery mechanism to remove the failed device from the system instead of trying to recover from early PCI errors during device probe. Signed-off-by: Guilherme G. Pi

[PATCH net] tg3: Avoid NULL pointer dereference in tg3_io_error_detected()

2016-09-27 Thread Guilherme G. Piccoli
r recovery") Fixes: dfc8f370316b ("net/tg3: Release IRQs on permanent error") Tested-by: Guilherme G. Piccoli Signed-off-by: Milton Miller Signed-off-by: Guilherme G. Piccoli --- drivers/net/ethernet/broadcom/tg3.c | 8 1 file changed, 4 insertions(+), 4 deletions(-)

[PATCH RFC net-next] bnx2x: avoid printing unnecessary messages during register dump

2016-09-27 Thread Guilherme G. Piccoli
e messages were supressed - in our tests we saw 78 more "LATCHED attention" and "GRC time-out" messages, supressed here. This patch avoid these messages to be printed on register dump instead of just warn they are harmless. Signed-off-by: Guilherme G. Piccoli --- * Thi

[PATCH net] i40e: disable MSI-X interrupts if we cannot reserve enough vectors

2016-09-22 Thread Guilherme G. Piccoli
+0x88/0xc0 Also, we noticed that without this patch, if we modprobe the module without enough MSI-X interrupts (triggering the above warning), unload the module and re-load it again, we got a crash on the system. Signed-off-by: Guilherme G. Piccoli --- drivers/net/ethernet/intel/i40e/i40e_main.

[PATCH net v2] bnx2x: don't reset chip on cleanup if PCI function is offline

2016-08-31 Thread Guilherme G. Piccoli
ted-by: Harsha Thyagaraja Signed-off-by: Guilherme G. Piccoli --- v2: Removed the unlikely attribute on bnx2x_fw_dump_lvl() if block. drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/br

Re: [PATCH net] bnx2x: don't reset chip on cleanup if PCI function is offline

2016-08-16 Thread Guilherme G. Piccoli
On 08/10/2016 10:28 AM, Guilherme G. Piccoli wrote: On 08/10/2016 04:59 AM, Yuval Mintz wrote: Why would the published resume() from pci_error_handlers be called in this scenario? It isn't. That's why I specifically commented on commit message: "There are two cases though th

Re: [PATCH net] bnx2x: don't reset chip on cleanup if PCI function is offline

2016-08-10 Thread Guilherme G. Piccoli
On 08/10/2016 04:59 AM, Yuval Mintz wrote: Why would the published resume() from pci_error_handlers be called in this scenario? It isn't. That's why I specifically commented on commit message: "There are two cases though that another path is taken on the code". The code path reach bnx2x_chip_

Re: [PATCH net] bnx2x: don't reset chip on cleanup if PCI function is offline

2016-08-09 Thread Guilherme G. Piccoli
On 08/09/2016 09:14 AM, Yuval Mintz wrote: When PCI error is detected, in some architectures (like PowerPC) a slot reset is performed - the driver's error handlers are in charge of "disable" device before the reset, and re-enable it after a successful slot reset. There are two cases though that

[PATCH net] bnx2x: don't reset chip on cleanup if PCI function is offline

2016-08-08 Thread Guilherme G. Piccoli
eing removed because of a permanent failure, the HW chip reset is not expected to work fine neither is necessary. Also, we avoid the MCP information dump in case of non-recoverable PCI error (when adapter is about to be removed), since it will certainly fail. Reported-by: Harsha Thyagaraja Signed-off

[PATCH net] be2net: perform temperature query in adapter regardless of its interface state

2016-07-26 Thread Guilherme G. Piccoli
en if interface is down. No functional changes were introduced. Signed-off-by: Guilherme G. Piccoli --- drivers/net/ethernet/emulex/benet/be_main.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/

Re: [PATCH net-next 1/2] be2net: set temperature value for all adapter's functions

2016-07-26 Thread Guilherme G. Piccoli
On 07/26/2016 05:26 AM, Sathya Perla wrote: -Original Message- From: Guilherme G. Piccoli [mailto:gpicc...@linux.vnet.ibm.com] On 07/25/2016 07:48 AM, Sathya Perla wrote: -Original Message- From: Guilherme G. Piccoli [mailto:gpicc...@linux.vnet.ibm.com] Temperature values on

Re: [PATCH net-next 1/2] be2net: set temperature value for all adapter's functions

2016-07-25 Thread Guilherme G. Piccoli
On 07/25/2016 07:48 AM, Sathya Perla wrote: -Original Message- From: Guilherme G. Piccoli [mailto:gpicc...@linux.vnet.ibm.com] Temperature values on be2net driver are made available to userspace via hwmon abstraction, so tools like lm- sensors can present them to the user. The driver

[PATCH net-next 2/2] be2net: query temperature on probe and decrease its frequency on be_worker()

2016-07-22 Thread Guilherme G. Piccoli
e for temperature information. Signed-off-by: Guilherme G. Piccoli --- drivers/net/ethernet/emulex/benet/be_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 9f44a00..0e23ab2 1

[PATCH net-next 1/2] be2net: set temperature value for all adapter's functions

2016-07-22 Thread Guilherme G. Piccoli
ons of the adapter, instead of only setting the temperature of the function passed to be_worker(). Signed-off-by: Guilherme G. Piccoli --- drivers/net/ethernet/emulex/benet/be.h | 1 + drivers/net/ethernet/emulex/benet/be_cmds.c | 13 +++--- drivers/net/ethernet/emulex/benet/be_m

Re: [PATCH net] i40e: use valid online CPU on q_vector initialization

2016-07-11 Thread Guilherme G. Piccoli
On 06/27/2016 12:16 PM, Guilherme G. Piccoli wrote: Currently, the q_vector initialization routine sets the affinity_mask of a q_vector based on v_idx value. Meaning a loop iterates on v_idx, which is an incremental value, and the cpumask is created based on this value. This is a problem in

[PATCH net] i40e: use valid online CPU on q_vector initialization

2016-06-27 Thread Guilherme G. Piccoli
index from the cpu_online_mask instead of just using the v_idx incremental value. No functional changes were introduced. Signed-off-by: Guilherme G. Piccoli --- drivers/net/ethernet/intel/i40e/i40e_main.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/driver