All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ixgbe: Fixing EEH handler to handle more than one error
@ 2009-11-10 18:37 leitao
  2009-11-16  6:16 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: leitao @ 2009-11-10 18:37 UTC (permalink / raw)
  To: netdev; +Cc: peter.p.waskiewicz.jr, jeffrey.t.kirsher, Breno Leitao

After commmit 4b77b0a2ba27d64f58f16d8d4d48d8319dda36ff EEH breaks
after the second error, since it calls pci_restore_state()
but it returns 0, since pci->state_saved is false.

So, this patch just call pci_save_state() after pci_restore_state().

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
---
 drivers/net/ixgbe/ixgbe_main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 5bd9e6b..a5036f7 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -5994,6 +5994,7 @@ static pci_ers_result_t ixgbe_io_slot_reset(struct pci_dev *pdev)
 	} else {
 		pci_set_master(pdev);
 		pci_restore_state(pdev);
+		pci_save_state(pdev);
 
 		pci_wake_from_d3(pdev, false);
 
-- 
1.6.0.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ixgbe: Fixing EEH handler to handle more than one error
  2009-11-10 18:37 [PATCH] ixgbe: Fixing EEH handler to handle more than one error leitao
@ 2009-11-16  6:16 ` David Miller
  2009-11-16 19:01   ` Waskiewicz Jr, Peter P
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2009-11-16  6:16 UTC (permalink / raw)
  To: leitao; +Cc: netdev, peter.p.waskiewicz.jr, jeffrey.t.kirsher

From: leitao@linux.vnet.ibm.com
Date: Tue, 10 Nov 2009 13:37:47 -0500

> After commmit 4b77b0a2ba27d64f58f16d8d4d48d8319dda36ff EEH breaks
> after the second error, since it calls pci_restore_state()
> but it returns 0, since pci->state_saved is false.
> 
> So, this patch just call pci_save_state() after pci_restore_state().
> 
> Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>

Intel folks, are you integrating or looking at this patch?

Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ixgbe: Fixing EEH handler to handle more than one error
  2009-11-16  6:16 ` David Miller
@ 2009-11-16 19:01   ` Waskiewicz Jr, Peter P
  2009-11-17  7:52     ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Waskiewicz Jr, Peter P @ 2009-11-16 19:01 UTC (permalink / raw)
  To: David Miller; +Cc: leitao, netdev, Waskiewicz Jr, Peter P, Kirsher, Jeffrey T

On Sun, 15 Nov 2009, David Miller wrote:

> From: leitao@linux.vnet.ibm.com
> Date: Tue, 10 Nov 2009 13:37:47 -0500
> 
> > After commmit 4b77b0a2ba27d64f58f16d8d4d48d8319dda36ff EEH breaks
> > after the second error, since it calls pci_restore_state()
> > but it returns 0, since pci->state_saved is false.
> > 
> > So, this patch just call pci_save_state() after pci_restore_state().
> > 
> > Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
> 
> Intel folks, are you integrating or looking at this patch?

This patch looks correct and makes sense to me.  I'm going to ACK it now, 
but we'll still pull it in and test it.  If we see any issues, we'll 
report them with possible fixes.  But at this point, I think this patch is 
fine.

Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ixgbe: Fixing EEH handler to handle more than one error
  2009-11-16 19:01   ` Waskiewicz Jr, Peter P
@ 2009-11-17  7:52     ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2009-11-17  7:52 UTC (permalink / raw)
  To: peter.p.waskiewicz.jr; +Cc: leitao, netdev, jeffrey.t.kirsher

From: "Waskiewicz Jr, Peter P" <peter.p.waskiewicz.jr@intel.com>
Date: Mon, 16 Nov 2009 11:01:13 -0800 (Pacific Standard Time)

> On Sun, 15 Nov 2009, David Miller wrote:
> 
>> From: leitao@linux.vnet.ibm.com
>> Date: Tue, 10 Nov 2009 13:37:47 -0500
>> 
>> > After commmit 4b77b0a2ba27d64f58f16d8d4d48d8319dda36ff EEH breaks
>> > after the second error, since it calls pci_restore_state()
>> > but it returns 0, since pci->state_saved is false.
>> > 
>> > So, this patch just call pci_save_state() after pci_restore_state().
>> > 
>> > Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
>> 
>> Intel folks, are you integrating or looking at this patch?
> 
> This patch looks correct and makes sense to me.  I'm going to ACK it now, 
> but we'll still pull it in and test it.  If we see any issues, we'll 
> report them with possible fixes.  But at this point, I think this patch is 
> fine.
> 
> Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-17  7:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-10 18:37 [PATCH] ixgbe: Fixing EEH handler to handle more than one error leitao
2009-11-16  6:16 ` David Miller
2009-11-16 19:01   ` Waskiewicz Jr, Peter P
2009-11-17  7:52     ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.