Re: [E1000-devel] [REGRESSION 3.8-r1] broken pci irq/pm state for e1000e device

2013-01-05 Thread Konstantin Khlebnikov
Konstantin Khlebnikov wrote: > Konstantin Khlebnikov wrote: >> Seems like it's unrelated to e1000e driver itself, because I tried to >> revert all it's changes down to 3.6 one by one and it does not help. Ouch, 3.6 also affected, seems like I was more lucky at that tim

[E1000-devel] [PATCH 4/5] PCI: don't touch enable_cnt in pci_device_shutdown()

2013-01-18 Thread Konstantin Khlebnikov
Bus Muster unconditionally and doesn't changes enable_cnt. Signed-off-by: Konstantin Khlebnikov Cc: linux-...@vger.kernel.org Cc: Bjorn Helgaas Cc: Khalid Aziz --- drivers/pci/pci-driver.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci-driver.c b/

[E1000-devel] [PATCH 0/5] pci/e1000e: return runtime-pm back to work

2013-01-18 Thread Konstantin Khlebnikov
--- Konstantin Khlebnikov (5): e1000e: fix resuming from runtime-suspend e1000e: fix pci device enable counter balance PCI: revert preparing for wakeup in runtime-suspend finalization PCI: don't touch enable_cnt in pci_device_shutdown() PCI: catch enable-co

[E1000-devel] [PATCH 3/5] PCI: revert preparing for wakeup in runtime-suspend finalization

2013-01-18 Thread Konstantin Khlebnikov
so let's handle it as an exception. Its driver should set device state to D3cold and the rest code will handle it properly. Signed-off-by: Konstantin Khlebnikov Cc: linux-...@vger.kernel.org Cc: Bjorn Helgaas Cc: Dave Airlie --- drivers/pci/pci-driver.c |5 +++-- 1 file changed

[E1000-devel] [PATCH 5/5] PCI: catch enable-counter underflows

2013-01-18 Thread Konstantin Khlebnikov
This patch adds single WARN_ONCE() check for catching 'enable_cnt' imbalances. Signed-off-by: Konstantin Khlebnikov Cc: linux-...@vger.kernel.org Cc: Bjorn Helgaas --- drivers/pci/pci.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/pci.c b/drivers/pci/p

[E1000-devel] [PATCH 1/5] e1000e: fix resuming from runtime-suspend

2013-01-18 Thread Konstantin Khlebnikov
Bug was introduced in commit 23606cf5d1192c2b17912cb2ef6e62f9b11de133 ("e1000e / PCI / PM: Add basic runtime PM support (rev. 4)") in v2.6.35 Signed-off-by: Konstantin Khlebnikov Cc: e1000-devel@lists.sourceforge.net Cc: Jeff Kirsher Cc: Bruce Allan --- drivers/net/ethernet/in

[E1000-devel] [PATCH 2/5] e1000e: fix pci device enable counter balance

2013-01-18 Thread Konstantin Khlebnikov
in v2.6.35 Signed-off-by: Konstantin Khlebnikov Cc: e1000-devel@lists.sourceforge.net Cc: Jeff Kirsher Cc: Bruce Allan --- drivers/net/ethernet/intel/e1000e/netdev.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/in

Re: [E1000-devel] [PATCH 1/5] e1000e: fix resuming from runtime-suspend

2013-01-28 Thread Konstantin Khlebnikov
Rafael J. Wysocki wrote: > On Monday, January 28, 2013 04:05:33 PM Bjorn Helgaas wrote: >> [+cc Rafael, author of patch you cited] >> >> On Fri, Jan 18, 2013 at 4:42 AM, Konstantin Khlebnikov >> wrote: >>> Bug was introduced in commit 23606cf5d1192c2b17912cb

Re: [E1000-devel] [PATCH 2/5] e1000e: fix pci device enable counter balance

2013-01-28 Thread Konstantin Khlebnikov
Bjorn Helgaas wrote: > [+cc Rafael @sisk.pl] > > On Mon, Jan 28, 2013 at 4:09 PM, Bjorn Helgaas wrote: >> [+cc Rafael] >> >> On Fri, Jan 18, 2013 at 4:42 AM, Konstantin Khlebnikov >> wrote: >>> __e1000_shutdown() calls pci_disable_device() at the end,

Re: [E1000-devel] [PATCH 3/5] PCI: revert preparing for wakeup in runtime-suspend finalization

2013-01-28 Thread Konstantin Khlebnikov
Rafael J. Wysocki wrote: > On Monday, January 28, 2013 04:17:42 PM Bjorn Helgaas wrote: >> [+cc Rafael] >> >> On Fri, Jan 18, 2013 at 4:42 AM, Konstantin Khlebnikov >> wrote: >>> This patch effectively reverts commit >>> 42eca2302146fed51335b95128e9

Re: [E1000-devel] [PATCH 1/5] e1000e: fix resuming from runtime-suspend

2013-01-30 Thread Konstantin Khlebnikov
Rafael J. Wysocki wrote: > On Tuesday, January 29, 2013 10:32:14 AM Konstantin Khlebnikov wrote: >> Rafael J. Wysocki wrote: >>> On Monday, January 28, 2013 04:05:33 PM Bjorn Helgaas wrote: >>>> [+cc Rafael, author of patch you cited] >>>> >&g

Re: [E1000-devel] [PATCH 3/5] PCI: revert preparing for wakeup in runtime-suspend finalization

2013-02-02 Thread Konstantin Khlebnikov
Rafael J. Wysocki wrote: > On Tuesday, January 29, 2013 12:55:15 PM Rafael J. Wysocki wrote: >> On Tuesday, January 29, 2013 11:04:57 AM Konstantin Khlebnikov wrote: >>> Rafael J. Wysocki wrote: >>>> On Monday, January 28, 2013 04:17:42 PM Bjorn Helgaas wrote: >>

Re: [E1000-devel] [PATCH 3/5] PCI: revert preparing for wakeup in runtime-suspend finalization

2013-02-03 Thread Konstantin Khlebnikov
Rafael J. Wysocki wrote: > On Saturday, February 02, 2013 09:58:45 PM Rafael J. Wysocki wrote: >> On Saturday, February 02, 2013 04:12:03 PM Konstantin Khlebnikov wrote: >>> Rafael J. Wysocki wrote: >>>> On Tuesday, January 29, 2013 12:55:15 PM Rafael J. Wysocki wrote

[E1000-devel] [PATCH v2 2/7] PCI: don't touch enable_cnt in pci_device_shutdown()

2013-02-04 Thread Konstantin Khlebnikov
em. Probably we should leave here only warning and disable bus-mastering for each driver individually in ->shutdown() callback. Link: https://lkml.org/lkml/2012/6/6/278 Signed-off-by: Konstantin Khlebnikov Cc: Rafael J. Wysocki Cc: Bjorn Helgaas Cc: Khalid Aziz Cc: linux-...@vger.kernel.org C

[E1000-devel] [PATCH v2 0/7] pci/e1000e: return runtime-pm back to work

2013-02-04 Thread Konstantin Khlebnikov
/147 --- Konstantin Khlebnikov (6): e1000e: fix pci-device enable-counter balance PCI: don't touch enable_cnt in pci_device_shutdown() PCI: catch enable-counter underflows e1000e: fix runtime power management transitions PCI/PM: warn about incomplete actio

[E1000-devel] [PATCH v2 1/7] e1000e: fix pci-device enable-counter balance

2013-02-04 Thread Konstantin Khlebnikov
me PM support (rev. 4)") in v2.6.35 Signed-off-by: Konstantin Khlebnikov Cc: Rafael J. Wysocki Cc: e1000-devel@lists.sourceforge.net Cc: Jeff Kirsher Cc: Bruce Allan --- drivers/net/ethernet/intel/e1000e/netdev.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ne

[E1000-devel] [PATCH v2 6/7] PCI/PM: warn about incomplete actions in ->runtime_suspend() callback

2013-02-04 Thread Konstantin Khlebnikov
n saved by ->runtime_suspend() that means device alredy prepared for wakeup and probably no longer accessible. Thus driver must either do all actions or leave all these tasks to PCI subsystem. Signed-off-by: Konstantin Khlebnikov Cc: Rafael J. Wysocki Cc: Bjorn Helgaas Cc: linux-...@vger.

[E1000-devel] [PATCH v2 5/7] e1000e: fix runtime power management transitions

2013-02-04 Thread Konstantin Khlebnikov
like custom 'enable_wakeup' sign. Signed-off-by: Konstantin Khlebnikov Cc: Rafael J. Wysocki Cc: e1000-devel@lists.sourceforge.net Cc: Jeff Kirsher Cc: Bruce Allan --- drivers/net/ethernet/intel/e1000e/netdev.c | 78 ++-- 1 file changed, 18 insertions(+), 60

[E1000-devel] [PATCH v2 7/7] e1000e: fix accessing to suspended device

2013-02-04 Thread Konstantin Khlebnikov
This patch fixes some annoying messages like 'Error reading PHY register' and 'Hardware Erorr' and saves several seconds on reboot. Signed-off-by: Konstantin Khlebnikov Cc: Rafael J. Wysocki Cc: e1000-devel@lists.sourceforge.net Cc: Jeff Kirsher Cc: Bruce Allan --- driver

[E1000-devel] [PATCH v2 3/7] PCI: catch enable-counter underflows

2013-02-04 Thread Konstantin Khlebnikov
This patch adds single WARN_ONCE() check for catching 'enable_cnt' imbalances. Signed-off-by: Konstantin Khlebnikov Cc: linux-...@vger.kernel.org Cc: Bjorn Helgaas Cc: Rafael J. Wysocki --- drivers/pci/pci.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/pci.c

[E1000-devel] [PATCH v2 4/7] PCI/PM: clear state_saved during suspend

2013-02-04 Thread Konstantin Khlebnikov
. Signed-off-by: Konstantin Khlebnikov # add comment Cc: linux-...@vger.kernel.org Cc: Bjorn Helgaas Cc: Rafael J. Wysocki --- drivers/pci/pci-driver.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index dc5bdce..f9aa311 100

Re: [E1000-devel] [PATCH v2 6/7] PCI/PM: warn about incomplete actions in ->runtime_suspend() callback

2013-02-04 Thread Konstantin Khlebnikov
Rafael J. Wysocki wrote: > On Monday, February 04, 2013 03:56:12 PM Konstantin Khlebnikov wrote: >> Documentation/power/pci.txt says: >> | It is expected that the device driver's pm->runtime_suspend() callback will >> | not attempt to prepare the device for signali

[E1000-devel] [PATCH RESEND 3/3] e1000e: fix accessing to suspended device

2013-02-24 Thread Konstantin Khlebnikov
This patch fixes some annoying messages like 'Error reading PHY register' and 'Hardware Erorr' and saves several seconds on reboot. Signed-off-by: Konstantin Khlebnikov Acked-by: Rafael J. Wysocki Cc: e1000-devel@lists.sourceforge.net Cc: Jeff Kirsher Cc: Bruce Allan ---

[E1000-devel] [PATCH RESEND 2/3] e1000e: fix runtime power management transitions

2013-02-24 Thread Konstantin Khlebnikov
like custom 'enable_wakeup' sign. Signed-off-by: Konstantin Khlebnikov Acked-by: Rafael J. Wysocki Cc: e1000-devel@lists.sourceforge.net Cc: Jeff Kirsher Cc: Bruce Allan --- drivers/net/ethernet/intel/e1000e/netdev.c | 78 ++-- 1 file changed, 18 inserti

[E1000-devel] [PATCH RESEND 1/3] e1000e: fix pci-device enable-counter balance

2013-02-24 Thread Konstantin Khlebnikov
me PM support (rev. 4)") in v2.6.35 Signed-off-by: Konstantin Khlebnikov Acked-by: Rafael J. Wysocki Cc: e1000-devel@lists.sourceforge.net Cc: Jeff Kirsher Cc: Bruce Allan --- drivers/net/ethernet/intel/e1000e/netdev.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

Re: [E1000-devel] [PATCH RESEND 3/3] e1000e: fix accessing to suspended device

2013-02-26 Thread Konstantin Khlebnikov
Waskiewicz Jr, Peter P wrote: > On 2/24/2013 9:19 PM, Konstantin Khlebnikov wrote: >> This patch fixes some annoying messages like 'Error reading PHY register' and >> 'Hardware Erorr' and saves several seconds on reboot. > > Any networking-related patches s

Re: [E1000-devel] [PATCH RESEND 3/3] e1000e: fix accessing to suspended device

2013-03-02 Thread Konstantin Khlebnikov
Ben Hutchings wrote: > On Tue, 2013-02-26 at 14:03 +0400, Konstantin Khlebnikov wrote: >> Waskiewicz Jr, Peter P wrote: >>> On 2/24/2013 9:19 PM, Konstantin Khlebnikov wrote: >>>> This patch fixes some annoying messages like 'Error reading PHY register'

Re: [E1000-devel] e1000e + suspend, 3.9-rc2

2013-03-19 Thread Konstantin Khlebnikov
Jiri Slaby wrote: > On 03/12/2013 06:17 PM, Borislav Petkov wrote: >> On Mon, Mar 11, 2013 at 09:25:37PM +0100, Borislav Petkov wrote: >>> Yeah, it is already upstream. And yeah, it did trigger with it. >>> >>> $ git describe >>> v3.9-rc2-112-g7c6baa304b84 >>> >>> But it somehow doesn't trigger wit

Re: [E1000-devel] e1000e + suspend, 3.9-rc2

2013-06-12 Thread Konstantin Khlebnikov
Jiri Slaby wrote: > On 04/15/2013 05:29 PM, Jiri Slaby wrote: >> On 03/29/2013 07:04 PM, Allan, Bruce W wrote: >>>> -Original Message- >>>> From: Jiri Slaby [mailto:jirisl...@gmail.com] On Behalf Of Jiri Slaby >>>> Sent: Tuesday, March 19

[E1000-devel] [PATCH] drivers/net: igb: release rtnl_lock on error path

2013-07-08 Thread Konstantin Khlebnikov
This adds missing rtnl_unlock() Signed-off-by: Konstantin Khlebnikov Cc: Jeff Kirsher Cc: e1000-devel@lists.sourceforge.net --- drivers/net/ethernet/intel/igb/igb_main.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet

Re: [E1000-devel] 3.10: disabling already-disabled device

2013-07-11 Thread Konstantin Khlebnikov
> Pid: 1363, comm: kworker/u:73 Not tainted 3.9.0-rc2+ #27 It's not 3.10 That pci_disable_device() was replaced with pci_clear_master() in 4e0855dff094b0d56d6b5b271e0ce7851cc1e063 3.9-rc3 and accidentially dropped in merge commit e5f2ef7ab4690d2e8faaf5fd203c5ecd70c3abaf in 3.10-rc1 see http://l

Re: [E1000-devel] [e1000e REGRESSION BISECTED] Detected Hardware Unit Hang with 5.0.7

2019-04-17 Thread Konstantin Khlebnikov
value in the kernel. I believe the patch you are talking about is: commit 0f9e980bf5ee1a97e2e401c846b2af989eb21c61 Author: Konstantin Khlebnikov Date: Mon Jan 14 16:29:30 2019 +0300 e1000e: fix cyclic resets at link up with active tx I'm seeing series of e1000e resets (sometimes endless) at syst

[E1000-devel] [PATCH 1/2] Revert "e1000e: fix cyclic resets at link up with active tx"

2019-04-17 Thread Konstantin Khlebnikov
us <40080080> PHY Status <7949> PHY 1000BASE-T Status <0> PHY Extended Status<3000> PCI Status <10> e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx Besides warning everything works fine. Original issue wil

[E1000-devel] [PATCH 2/2] e1000e: start network tx queue only when link is up

2019-04-17 Thread Konstantin Khlebnikov
only when NIC is ready to send packets. This is proper fix for problem addressed by commit 0f9e980bf5ee ("e1000e: fix cyclic resets at link up with active tx"). Signed-off-by: Konstantin Khlebnikov Suggested-by: Alexander Duyck --- drivers/net/ethernet/intel/e1000e/netdev.c |6