"e100_probe: Error clearing wake event" when booting 2.6.27-rc1
Subsystems (3)
[please cc me on replies]
I'm getting this error message when booting my laptop.
The commit that causes this is:
commit eb9d0fe40e313c0a74115ef456a2e43a6c8da72f
Author: Rafael J. Wysocki <[email protected]> Date: Mon Jul 7 03:34:48 2008 +0200
PCI ACPI: Rework PCI handling of wake-up
[very long commit message snipped]
Should I ignore that?
Quoted 7 lines · Alessandro Guido
[please cc me on replies]
I'm getting this error message when booting my laptop.
The commit that causes this is:
commit
eb9d0fe40e313c0a74115ef456a2e43a6c8da72f
Quoted 8 lines
Author: Rafael J. Wysocki <[email protected]> Date: Mon Jul 7 03:34:48 2008 +0200PCI ACPI: Rework PCI handling of wake-up
[very long commit message snipped]
Should I ignore that?
The message is harmless, but it exposes the problem that e100_probe() should not use pci_enable_wake() for this purpose.
The appended patch makes it use pci_pme_active() instead.
Thanks,
Rafael
---
PCI PM: Export pci_pme_active to drivers
Export pci_pme_active() to drivers, so that they can clear the PME_status bit and disable PME# for the device without involving ACPI.
Modify the e100 driver to use pci_pme_active() for this purpose.
--- drivers/net/e100.c | 4 +--- drivers/pci/pci.c | 3 ++- include/linux/pci.h | 1 + 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/pci/pci.c +2 -1
@@ -1060,7 +1060,7 @@ bool pci_pme_capable(struct pci_dev *dev* The caller must verify that the device is capable of generating PME# before * calling this function with @enable equal to 'true'. */ -static void pci_pme_active (struct pci_dev *dev,bool enable) +void pci_pme_active (struct pci_dev *dev,bool enable) {u16 pmcsr;
@@ -1945,6 +1945,7 @@ EXPORT_SYMBOL(pci_set_power_state);EXPORT_SYMBOL (pci_save_state);EXPORT_SYMBOL (pci_restore_state);EXPORT_SYMBOL (pci_pme_capable); +EXPORT_SYMBOL (pci_pme_active);EXPORT_SYMBOL (pci_enable_wake);EXPORT_SYMBOL (pci_target_state);EXPORT_SYMBOL (pci_prepare_to_sleep);
include/linux/pci.h +1 -0
@@ -648,6 +648,7 @@ int pci_restore_state(struct pci_dev *deint pci_set_power_state (struct pci_dev *dev,pci_power_t state);pci_power_t pci_choose_state (struct pci_dev *dev,pm_message_t state);bool pci_pme_capable (struct pci_dev *dev,pci_power_t state); +void pci_pme_active (struct pci_dev *dev,bool enable);int pci_enable_wake (struct pci_dev *dev,pci_power_t state,int enable);pci_power_t pci_target_state (struct pci_dev *dev);int pci_prepare_to_sleep (struct pci_dev *dev);
drivers/net/e100.c +1 -3
@@ -2738,9 +2738,7 @@ static int __devinit e100_probe(struct p nic->flags |= wol_magic;/* ack any pending wake events, disable PME */ - err =pci_enable_wake (pdev,0 ,0 ); -if (err) -DPRINTK (PROBE ,ERR ,"Error clearing wake event\n" ); +pci_pme_active (pdev, false);strcpy (netdev->name,"eth%d" );if ((err =register_netdev (netdev))) {
Quoted 7 lines · Alessandro Guido
[please cc me on replies]
I'm getting this error message when booting my laptop.
The commit that causes this is:
commit
eb9d0fe40e313c0a74115ef456a2e43a6c8da72f
Quoted 8 lines
Author: Rafael J. Wysocki <[email protected]> Date: Mon Jul 7 03:34:48 2008 +0200PCI ACPI: Rework PCI handling of wake-up
[very long commit message snipped]
Should I ignore that?
The message is harmless, but it exposes the problem that e100_probe() should not use pci_enable_wake() for this purpose.
The appended patch makes it use pci_pme_active() instead.
Thanks,
Rafael
---
PCI PM: Export pci_pme_active to drivers
Export pci_pme_active() to drivers, so that they can clear the PME_status bit and disable PME# for the device without involving ACPI.
Modify the e100 driver to use pci_pme_active() for this purpose.
--- drivers/net/e100.c | 4 +--- drivers/pci/pci.c | 3 ++- include/linux/pci.h | 1 + 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/pci/pci.c +2 -1
@@ -1060,7 +1060,7 @@ bool pci_pme_capable(struct pci_dev *dev* The caller must verify that the device is capable of generating PME# before * calling this function with @enable equal to 'true'. */ -static void pci_pme_active (struct pci_dev *dev,bool enable) +void pci_pme_active (struct pci_dev *dev,bool enable) {u16 pmcsr;
@@ -1945,6 +1945,7 @@ EXPORT_SYMBOL(pci_set_power_state);EXPORT_SYMBOL (pci_save_state);EXPORT_SYMBOL (pci_restore_state);EXPORT_SYMBOL (pci_pme_capable); +EXPORT_SYMBOL (pci_pme_active);EXPORT_SYMBOL (pci_enable_wake);EXPORT_SYMBOL (pci_target_state);EXPORT_SYMBOL (pci_prepare_to_sleep);
include/linux/pci.h +1 -0
@@ -648,6 +648,7 @@ int pci_restore_state(struct pci_dev *deint pci_set_power_state (struct pci_dev *dev,pci_power_t state);pci_power_t pci_choose_state (struct pci_dev *dev,pm_message_t state);bool pci_pme_capable (struct pci_dev *dev,pci_power_t state); +void pci_pme_active (struct pci_dev *dev,bool enable);int pci_enable_wake (struct pci_dev *dev,pci_power_t state,int enable);pci_power_t pci_target_state (struct pci_dev *dev);int pci_prepare_to_sleep (struct pci_dev *dev);
drivers/net/e100.c +1 -3
@@ -2738,9 +2738,7 @@ static int __devinit e100_probe(struct p nic->flags |= wol_magic;/* ack any pending wake events, disable PME */ - err =pci_enable_wake (pdev,0 ,0 ); -if (err) -DPRINTK (PROBE ,ERR ,"Error clearing wake event\n" ); +pci_pme_active (pdev, false);strcpy (netdev->name,"eth%d" );if ((err =register_netdev (netdev))) {
Quoted 13 lines · Rafael J. Wysocki
Quoted 12 lines · Alessandro Guido
[please cc me on replies]
I'm getting this error message when booting my laptop.
The commit that causes this is:
commit
eb9d0fe40e313c0a74115ef456a2e43a6c8da72fAuthor: Rafael J. Wysocki <[email protected]> Date: Mon Jul 7 03:34:48 2008 +0200PCI ACPI: Rework PCI handling of wake-up
Quoted 8 lines
Quoted 3 lines
[very long commit message snipped]
Should I ignore that?
The message is harmless, but it exposes the problem that
e100_probe()should not usepci_enable_wake()for this purpose.The appended patch makes it use
pci_pme_active()instead.
I can take the pci_pme_active bits, but the e100 stuff should go in through Jeff probably. Care to respin?
Thanks,
Jesse
Quoted 13 lines · Rafael J. Wysocki
Quoted 12 lines · Alessandro Guido
[please cc me on replies]
I'm getting this error message when booting my laptop.
The commit that causes this is:
commit
eb9d0fe40e313c0a74115ef456a2e43a6c8da72fAuthor: Rafael J. Wysocki <[email protected]> Date: Mon Jul 7 03:34:48 2008 +0200PCI ACPI: Rework PCI handling of wake-up
Quoted 8 lines
Quoted 3 lines
[very long commit message snipped]
Should I ignore that?
The message is harmless, but it exposes the problem that
e100_probe()should not usepci_enable_wake()for this purpose.The appended patch makes it use
pci_pme_active()instead.
I can take the pci_pme_active bits, but the e100 stuff should go in through Jeff probably. Care to respin?
Thanks,
Jesse
Quoted 18 lines · Jesse Barnes
Quoted 17 lines · Rafael J. Wysocki
Quoted 15 lines · Alessandro Guido
[please cc me on replies]
I'm getting this error message when booting my laptop.
The commit that causes this is:
commit
eb9d0fe40e313c0a74115ef456a2e43a6c8da72fAuthor: Rafael J. Wysocki <[email protected]> Date: Mon Jul 7 03:34:48 2008 +0200PCI ACPI: Rework PCI handling of wake-up
[very long commit message snipped]
Should I ignore that?
Quoted 7 lines
Quoted 4 lines
The message is harmless, but it exposes the problem that
e100_probe()should not usepci_enable_wake()for this purpose.The appended patch makes it use
pci_pme_active()instead.I can take the
pci_pme_activebits, but the e100 stuff should go in through Jeff probably. Care to respin?
Sure, in replies to this message.
Thanks,
Rafael
Quoted 18 lines · Jesse Barnes
Quoted 17 lines · Rafael J. Wysocki
Quoted 15 lines · Alessandro Guido
[please cc me on replies]
I'm getting this error message when booting my laptop.
The commit that causes this is:
commit
eb9d0fe40e313c0a74115ef456a2e43a6c8da72fAuthor: Rafael J. Wysocki <[email protected]> Date: Mon Jul 7 03:34:48 2008 +0200PCI ACPI: Rework PCI handling of wake-up
[very long commit message snipped]
Should I ignore that?
Quoted 7 lines
Quoted 4 lines
The message is harmless, but it exposes the problem that
e100_probe()should not usepci_enable_wake()for this purpose.The appended patch makes it use
pci_pme_active()instead.I can take the
pci_pme_activebits, but the e100 stuff should go in through Jeff probably. Care to respin?
Sure, in replies to this message.
Thanks,
Rafael
PATCH 1/1 PCI PM: Export pci_pme_active to drivers
In reply to Rafael J. WysockiPCI PM: Export pci_pme_active to drivers
Export pci_pme_active() to drivers, so that they can clear the PME_status bit and disable PME# for their devices without involving ACPI.
--- drivers/pci/pci.c | 3 ++- include/linux/pci.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/pci/pci.c +2 -1
@@ -1060,7 +1060,7 @@ bool pci_pme_capable(struct pci_dev *dev* The caller must verify that the device is capable of generating PME# before * calling this function with @enable equal to 'true'. */ -static void pci_pme_active (struct pci_dev *dev,bool enable) +void pci_pme_active (struct pci_dev *dev,bool enable) {u16 pmcsr;
@@ -1941,6 +1941,7 @@ EXPORT_SYMBOL(pci_set_power_state);EXPORT_SYMBOL (pci_save_state);EXPORT_SYMBOL (pci_restore_state);EXPORT_SYMBOL (pci_pme_capable); +EXPORT_SYMBOL (pci_pme_active);EXPORT_SYMBOL (pci_enable_wake);EXPORT_SYMBOL (pci_target_state);EXPORT_SYMBOL (pci_prepare_to_sleep);
include/linux/pci.h +1 -0
@@ -641,6 +641,7 @@ int pci_restore_state(struct pci_dev *deint pci_set_power_state (struct pci_dev *dev,pci_power_t state);pci_power_t pci_choose_state (struct pci_dev *dev,pm_message_t state);bool pci_pme_capable (struct pci_dev *dev,pci_power_t state); +void pci_pme_active (struct pci_dev *dev,bool enable);int pci_enable_wake (struct pci_dev *dev,pci_power_t state,int enable);pci_power_t pci_target_state (struct pci_dev *dev);int pci_prepare_to_sleep (struct pci_dev *dev);
PATCH 1/1 PCI PM: Export pci_pme_active to drivers
In reply to Rafael J. WysockiPCI PM: Export pci_pme_active to drivers
Export pci_pme_active() to drivers, so that they can clear the PME_status bit and disable PME# for their devices without involving ACPI.
--- drivers/pci/pci.c | 3 ++- include/linux/pci.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/pci/pci.c +2 -1
@@ -1060,7 +1060,7 @@ bool pci_pme_capable(struct pci_dev *dev* The caller must verify that the device is capable of generating PME# before * calling this function with @enable equal to 'true'. */ -static void pci_pme_active (struct pci_dev *dev,bool enable) +void pci_pme_active (struct pci_dev *dev,bool enable) {u16 pmcsr;
@@ -1941,6 +1941,7 @@ EXPORT_SYMBOL(pci_set_power_state);EXPORT_SYMBOL (pci_save_state);EXPORT_SYMBOL (pci_restore_state);EXPORT_SYMBOL (pci_pme_capable); +EXPORT_SYMBOL (pci_pme_active);EXPORT_SYMBOL (pci_enable_wake);EXPORT_SYMBOL (pci_target_state);EXPORT_SYMBOL (pci_prepare_to_sleep);
include/linux/pci.h +1 -0
@@ -641,6 +641,7 @@ int pci_restore_state(struct pci_dev *deint pci_set_power_state (struct pci_dev *dev,pci_power_t state);pci_power_t pci_choose_state (struct pci_dev *dev,pm_message_t state);bool pci_pme_capable (struct pci_dev *dev,pci_power_t state); +void pci_pme_active (struct pci_dev *dev,bool enable);int pci_enable_wake (struct pci_dev *dev,pci_power_t state,int enable);pci_power_t pci_target_state (struct pci_dev *dev);int pci_prepare_to_sleep (struct pci_dev *dev);
PATCH 1/1 e100: Use pci_pme_active to clear PME_Status and disable PME#
In reply to Rafael J. Wysockie100: Use pci_pme_active to clear PME_Status and disable PME#
--- drivers/net/e100.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/e100.c +1 -3
@@ -2738,9 +2738,7 @@ static int __devinit e100_probe(struct p nic->flags |= wol_magic;/* ack any pending wake events, disable PME */ - err =pci_enable_wake (pdev,0 ,0 ); -if (err) -DPRINTK (PROBE ,ERR ,"Error clearing wake event\n" ); +pci_pme_active (pdev, false);strcpy (netdev->name,"eth%d" );if ((err =register_netdev (netdev))) {
PATCH 1/1 e100: Use pci_pme_active to clear PME_Status and disable PME#
In reply to Rafael J. Wysockie100: Use pci_pme_active to clear PME_Status and disable PME#
--- drivers/net/e100.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/e100.c +1 -3
@@ -2738,9 +2738,7 @@ static int __devinit e100_probe(struct p nic->flags |= wol_magic;/* ack any pending wake events, disable PME */ - err =pci_enable_wake (pdev,0 ,0 ); -if (err) -DPRINTK (PROBE ,ERR ,"Error clearing wake event\n" ); +pci_pme_active (pdev, false);strcpy (netdev->name,"eth%d" );if ((err =register_netdev (netdev))) {
Re: [PATCH] PCI PM: Export pci_pme_active to drivers
In reply to Rafael J. WysockiQuoted 5 lines · Rafael J. Wysocki
PCI PM: Export
pci_pme_activeto driversExport
pci_pme_active()to drivers, so that they can clear thePME_statusbit and disable PME# for their devices without involving ACPI.
Cool, applied. Thanks Rafael.
Jesse
Re: [PATCH] PCI PM: Export pci_pme_active to drivers
In reply to Rafael J. WysockiQuoted 5 lines · Rafael J. Wysocki
PCI PM: Export
pci_pme_activeto driversExport
pci_pme_active()to drivers, so that they can clear thePME_statusbit and disable PME# for their devices without involving ACPI.
Cool, applied. Thanks Rafael.
Jesse
Re: [PATCH] e100: Use pci_pme_active to clear PME_Status and disable PME#
In reply to Rafael J. WysockiQuoted 13 lines · Rafael J. Wysocki
e100: Use
pci_pme_activeto clearPME_Statusand disable PME#Signed-off-by Rafael J. Wysocki <[email protected]>--- drivers/net/e100.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)Index:
linux-2.6/drivers/net/e100.c
===================================================================
drivers/net/e100.c static int __devinit e100_probe(struct p · line 2741
Quoted 7 lines
drivers/net/e100.c +1
-3@@ -2738,9 +2738,7 @@ static int __devinit e100_probe(struct p nic->flags |= wol_magic;/* ack any pending wake events, disable PME */ - err =pci_enable_wake (pdev,0 ,0 ); -if (err) -DPRINTK (PROBE ,ERR ,"Error clearing wake event\n" ); +pci_pme_active (pdev, false);
Since I am rusty on my PCI... why is this needed?
Re: [PATCH] e100: Use pci_pme_active to clear PME_Status and disable PME#
In reply to Rafael J. WysockiQuoted 13 lines · Rafael J. Wysocki
e100: Use
pci_pme_activeto clearPME_Statusand disable PME#Signed-off-by Rafael J. Wysocki <[email protected]>--- drivers/net/e100.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)Index:
linux-2.6/drivers/net/e100.c
===================================================================
drivers/net/e100.c static int __devinit e100_probe(struct p · line 2741
Quoted 7 lines
drivers/net/e100.c +1
-3@@ -2738,9 +2738,7 @@ static int __devinit e100_probe(struct p nic->flags |= wol_magic;/* ack any pending wake events, disable PME */ - err =pci_enable_wake (pdev,0 ,0 ); -if (err) -DPRINTK (PROBE ,ERR ,"Error clearing wake event\n" ); +pci_pme_active (pdev, false);
Since I am rusty on my PCI... why is this needed?
Re: [PATCH] e100: Use pci_pme_active to clear PME_Status and disable PME#
Quoted 16 lines · Jeff Garzik
Quoted 15 lines · Rafael J. Wysocki
e100: Use
pci_pme_activeto clearPME_Statusand disable PME#Signed-off-by Rafael J. Wysocki <[email protected]>--- drivers/net/e100.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)Index:
linux-2.6/drivers/net/e100.c
===================================================================drivers/net/e100.c +0
-0@@ -2738,9 +2738,7 @@ static int __devinit e100_probe(struct p nic->flags |= wol_magic;
Quoted 7 lines
drivers/net/e100.c static int __devinit e100_probe(struct p · line 2741
Quoted 5 lines
drivers/net/e100.c +1
-3/* ack any pending wake events, disable PME */ - err =pci_enable_wake (pdev,0 ,0 ); -if (err) -DPRINTK (PROBE ,ERR ,"Error clearing wake event\n" ); +pci_pme_active (pdev, false);Since I am rusty on my PCI... why is this needed?
Because we just want to clear PME_Status and disable PME#, but pci_enable_wake() involves an ACPI call and generally depends on the dev->power.can_wakeup and dev->power.should_wakeup flags being set.
The patch I sent here http://marc.info/?l=linux-kernel&m=122096638020191&w=4
has a better changelog.
Thanks,
Rafael
Re: [PATCH] e100: Use pci_pme_active to clear PME_Status and disable PME#
In reply to Jeff GarzikQuoted 16 lines · Jeff Garzik
Quoted 15 lines · Rafael J. Wysocki
e100: Use
pci_pme_activeto clearPME_Statusand disable PME#Signed-off-by Rafael J. Wysocki <[email protected]>--- drivers/net/e100.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)Index:
linux-2.6/drivers/net/e100.c
===================================================================drivers/net/e100.c +0
-0@@ -2738,9 +2738,7 @@ static int __devinit e100_probe(struct p nic->flags |= wol_magic;
Quoted 7 lines
drivers/net/e100.c static int __devinit e100_probe(struct p · line 2741
Quoted 5 lines
drivers/net/e100.c +1
-3/* ack any pending wake events, disable PME */ - err =pci_enable_wake (pdev,0 ,0 ); -if (err) -DPRINTK (PROBE ,ERR ,"Error clearing wake event\n" ); +pci_pme_active (pdev, false);Since I am rusty on my PCI... why is this needed?
Because we just want to clear PME_Status and disable PME#, but pci_enable_wake() involves an ACPI call and generally depends on the dev->power.can_wakeup and dev->power.should_wakeup flags being set.
The patch I sent here http://marc.info/?l=linux-kernel&m=122096638020191&w=4
has a better changelog.
Thanks,
Rafael