diff mbox

[0/30] ACPI / hotplug / PCI: Major rework + Thunderbolt workarounds

Message ID 6958813.eThhpoh5QO@vostro.rjw.lan (mailing list archive)
State New, archived
Delegated to: Bjorn Helgaas
Headers show

Commit Message

Rafael Wysocki July 24, 2013, 12:58 p.m. UTC
On Tuesday, July 23, 2013 07:20:53 PM Yinghai Lu wrote:
> On Tue, Jul 23, 2013 at 2:39 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:

[...]

> [  102.631369] pci_host_bridge pci0000:00: freeing pci_host_bridge info

By the way this looks fishy:

> [  102.633091] ACPI: Device does not support D3cold
> [  102.633915] ACPI: Device does not support D3cold
> [  102.635221] ACPI: Device does not support D3cold
> [  102.636103] ACPI: Device does not support D3cold
> [  102.636902] ACPI: Device does not support D3cold
> [  102.637685] ACPI: Device does not support D3cold
> [  102.638467] ACPI: Device does not support D3cold
> [  102.639631] ACPI: Device does not support D3cold
> [  102.640472] ACPI: Device does not support D3cold
> [  102.641310] ACPI: Device does not support D3cold
> [  102.642105] ACPI: Device does not support D3cold
> [  102.642928] ACPI: Device does not support D3cold
> [  102.643725] ACPI: Device does not support D3cold
> [  102.644544] ACPI: Device does not support D3cold
> [  102.645344] ACPI: Device does not support D3cold
> [  102.646126] ACPI: Device does not support D3cold
> [  102.646902] ACPI: Device does not support D3cold
> [  102.647677] ACPI: Device does not support D3cold
> [  102.648485] ACPI: Device does not support D3cold
> [  102.649269] ACPI: Device does not support D3cold
> [  102.650065] ACPI: Device does not support D3cold
> [  102.650822] ACPI: Device does not support D3cold
> [  102.652483] ACPI: Device does not support D3cold
> [  102.654157] ACPI: Device does not support D3cold
> [  102.655803] ACPI: Device does not support D3cold
> [  102.657419] ACPI: Device does not support D3cold
> [  102.658528] ACPI: Device does not support D3cold
> [  102.659255] ACPI: Device does not support D3cold
> [  102.659973] ACPI: Device does not support D3cold
> [  102.661807] ACPI: Device does not support D3cold
> [  102.661925] ACPI: Device does not support D3cold
> [  102.662047] ACPI: Device does not support D3cold
> [  102.662148] ACPI: Device does not support D3cold
> [  102.662258] ACPI: Device does not support D3cold
> [  102.662374] ACPI: Device does not support D3cold
> [  102.662486] ACPI: Device does not support D3cold
> [  102.662597] ACPI: Device does not support D3cold
> [  102.662711] ACPI: Device does not support D3cold
> [  102.662814] ACPI: Device does not support D3cold
> [  102.662918] ACPI: Device does not support D3cold
> [  102.663019] ACPI: Device does not support D3cold

Can you please check if it goes away with the patch below applied?

> [  102.663039] ACPI: \_SB_.PCI0: No _EJ0 support for device


---
 drivers/acpi/device_pm.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Bjorn Helgaas July 24, 2013, 4:06 p.m. UTC | #1
On Wed, Jul 24, 2013 at 6:58 AM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> On Tuesday, July 23, 2013 07:20:53 PM Yinghai Lu wrote:
>> On Tue, Jul 23, 2013 at 2:39 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
>
> [...]
>
>> [  102.631369] pci_host_bridge pci0000:00: freeing pci_host_bridge info
>
> By the way this looks fishy:
>
>> [  102.633091] ACPI: Device does not support D3cold

This and other printks in that function don't give any clue what
device is involved, even though we have an acpi_device pointer.  It'd
be nice to fix that, too.
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Yinghai Lu July 25, 2013, 1:25 p.m. UTC | #2
On Wed, Jul 24, 2013 at 5:58 AM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> On Tuesday, July 23, 2013 07:20:53 PM Yinghai Lu wrote:
>> On Tue, Jul 23, 2013 at 2:39 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
>
> [...]
>
>> [  102.631369] pci_host_bridge pci0000:00: freeing pci_host_bridge info
>
> By the way this looks fishy:
>
>> [  102.633091] ACPI: Device does not support D3cold
>> [  102.633915] ACPI: Device does not support D3cold
>> [  102.635221] ACPI: Device does not support D3cold
>> [  102.636103] ACPI: Device does not support D3cold
>> [  102.636902] ACPI: Device does not support D3cold
>> [  102.637685] ACPI: Device does not support D3cold
>> [  102.638467] ACPI: Device does not support D3cold
>> [  102.639631] ACPI: Device does not support D3cold
>> [  102.640472] ACPI: Device does not support D3cold
>> [  102.641310] ACPI: Device does not support D3cold
>> [  102.642105] ACPI: Device does not support D3cold
>> [  102.642928] ACPI: Device does not support D3cold
>> [  102.643725] ACPI: Device does not support D3cold
>> [  102.644544] ACPI: Device does not support D3cold
>> [  102.645344] ACPI: Device does not support D3cold
>> [  102.646126] ACPI: Device does not support D3cold
>> [  102.646902] ACPI: Device does not support D3cold
>> [  102.647677] ACPI: Device does not support D3cold
>> [  102.648485] ACPI: Device does not support D3cold
>> [  102.649269] ACPI: Device does not support D3cold
>> [  102.650065] ACPI: Device does not support D3cold
>> [  102.650822] ACPI: Device does not support D3cold
>> [  102.652483] ACPI: Device does not support D3cold
>> [  102.654157] ACPI: Device does not support D3cold
>> [  102.655803] ACPI: Device does not support D3cold
>> [  102.657419] ACPI: Device does not support D3cold
>> [  102.658528] ACPI: Device does not support D3cold
>> [  102.659255] ACPI: Device does not support D3cold
>> [  102.659973] ACPI: Device does not support D3cold
>> [  102.661807] ACPI: Device does not support D3cold
>> [  102.661925] ACPI: Device does not support D3cold
>> [  102.662047] ACPI: Device does not support D3cold
>> [  102.662148] ACPI: Device does not support D3cold
>> [  102.662258] ACPI: Device does not support D3cold
>> [  102.662374] ACPI: Device does not support D3cold
>> [  102.662486] ACPI: Device does not support D3cold
>> [  102.662597] ACPI: Device does not support D3cold
>> [  102.662711] ACPI: Device does not support D3cold
>> [  102.662814] ACPI: Device does not support D3cold
>> [  102.662918] ACPI: Device does not support D3cold
>> [  102.663019] ACPI: Device does not support D3cold
>
> Can you please check if it goes away with the patch below applied?
>
>> [  102.663039] ACPI: \_SB_.PCI0: No _EJ0 support for device
>
>
> ---
>  drivers/acpi/device_pm.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> Index: linux-pm/drivers/acpi/device_pm.c
> ===================================================================
> --- linux-pm.orig/drivers/acpi/device_pm.c
> +++ linux-pm/drivers/acpi/device_pm.c
> @@ -159,7 +159,8 @@ int acpi_device_set_power(struct acpi_de
>         int result = 0;
>         bool cut_power = false;
>
> -       if (!device || (state < ACPI_STATE_D0) || (state > ACPI_STATE_D3_COLD))
> +       if (!device || !device->flags.power_manageable
> +           || (state < ACPI_STATE_D0) || (state > ACPI_STATE_D3_COLD))
>                 return -EINVAL;
>
>         /* Make sure this is a valid target state */
>

yes, with this change, those print out are gone.

Thanks

Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Rafael Wysocki July 25, 2013, 7:57 p.m. UTC | #3
On Thursday, July 25, 2013 06:25:06 AM Yinghai Lu wrote:
> On Wed, Jul 24, 2013 at 5:58 AM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> > On Tuesday, July 23, 2013 07:20:53 PM Yinghai Lu wrote:
> >> On Tue, Jul 23, 2013 at 2:39 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> >
> > [...]
> >
> >> [  102.631369] pci_host_bridge pci0000:00: freeing pci_host_bridge info
> >
> > By the way this looks fishy:
> >
> >> [  102.633091] ACPI: Device does not support D3cold
> >> [  102.633915] ACPI: Device does not support D3cold
> >> [  102.635221] ACPI: Device does not support D3cold
> >> [  102.636103] ACPI: Device does not support D3cold
> >> [  102.636902] ACPI: Device does not support D3cold
> >> [  102.637685] ACPI: Device does not support D3cold
> >> [  102.638467] ACPI: Device does not support D3cold
> >> [  102.639631] ACPI: Device does not support D3cold
> >> [  102.640472] ACPI: Device does not support D3cold
> >> [  102.641310] ACPI: Device does not support D3cold
> >> [  102.642105] ACPI: Device does not support D3cold
> >> [  102.642928] ACPI: Device does not support D3cold
> >> [  102.643725] ACPI: Device does not support D3cold
> >> [  102.644544] ACPI: Device does not support D3cold
> >> [  102.645344] ACPI: Device does not support D3cold
> >> [  102.646126] ACPI: Device does not support D3cold
> >> [  102.646902] ACPI: Device does not support D3cold
> >> [  102.647677] ACPI: Device does not support D3cold
> >> [  102.648485] ACPI: Device does not support D3cold
> >> [  102.649269] ACPI: Device does not support D3cold
> >> [  102.650065] ACPI: Device does not support D3cold
> >> [  102.650822] ACPI: Device does not support D3cold
> >> [  102.652483] ACPI: Device does not support D3cold
> >> [  102.654157] ACPI: Device does not support D3cold
> >> [  102.655803] ACPI: Device does not support D3cold
> >> [  102.657419] ACPI: Device does not support D3cold
> >> [  102.658528] ACPI: Device does not support D3cold
> >> [  102.659255] ACPI: Device does not support D3cold
> >> [  102.659973] ACPI: Device does not support D3cold
> >> [  102.661807] ACPI: Device does not support D3cold
> >> [  102.661925] ACPI: Device does not support D3cold
> >> [  102.662047] ACPI: Device does not support D3cold
> >> [  102.662148] ACPI: Device does not support D3cold
> >> [  102.662258] ACPI: Device does not support D3cold
> >> [  102.662374] ACPI: Device does not support D3cold
> >> [  102.662486] ACPI: Device does not support D3cold
> >> [  102.662597] ACPI: Device does not support D3cold
> >> [  102.662711] ACPI: Device does not support D3cold
> >> [  102.662814] ACPI: Device does not support D3cold
> >> [  102.662918] ACPI: Device does not support D3cold
> >> [  102.663019] ACPI: Device does not support D3cold
> >
> > Can you please check if it goes away with the patch below applied?
> >
> >> [  102.663039] ACPI: \_SB_.PCI0: No _EJ0 support for device
> >
> >
> > ---
> >  drivers/acpi/device_pm.c |    3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > Index: linux-pm/drivers/acpi/device_pm.c
> > ===================================================================
> > --- linux-pm.orig/drivers/acpi/device_pm.c
> > +++ linux-pm/drivers/acpi/device_pm.c
> > @@ -159,7 +159,8 @@ int acpi_device_set_power(struct acpi_de
> >         int result = 0;
> >         bool cut_power = false;
> >
> > -       if (!device || (state < ACPI_STATE_D0) || (state > ACPI_STATE_D3_COLD))
> > +       if (!device || !device->flags.power_manageable
> > +           || (state < ACPI_STATE_D0) || (state > ACPI_STATE_D3_COLD))
> >                 return -EINVAL;
> >
> >         /* Make sure this is a valid target state */
> >
> 
> yes, with this change, those print out are gone.

Cool, thanks!

Rafael

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

Index: linux-pm/drivers/acpi/device_pm.c
===================================================================
--- linux-pm.orig/drivers/acpi/device_pm.c
+++ linux-pm/drivers/acpi/device_pm.c
@@ -159,7 +159,8 @@  int acpi_device_set_power(struct acpi_de
 	int result = 0;
 	bool cut_power = false;
 
-	if (!device || (state < ACPI_STATE_D0) || (state > ACPI_STATE_D3_COLD))
+	if (!device || !device->flags.power_manageable
+	    || (state < ACPI_STATE_D0) || (state > ACPI_STATE_D3_COLD))
 		return -EINVAL;
 
 	/* Make sure this is a valid target state */