Re: Serious problems with empty port power management in linux-next

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> writes:
> On Mon, 23 Jul 2012, Bjørn Mork wrote:
>
>> Hello,
>> 
>> I have no idea where to start debugging this.  But USB hotplug does not
>> seem to work at all in linux-next if autosuspend is enabled.
>> 
>> I am running next-20120723 with this:
>> 
>> nemi:/tmp# grep . /sys/bus/usb/devices/usb*/power/control 
>> /sys/bus/usb/devices/usb1/power/control:auto
>> /sys/bus/usb/devices/usb2/power/control:auto
>> /sys/bus/usb/devices/usb3/power/control:auto
>> /sys/bus/usb/devices/usb4/power/control:auto
>> /sys/bus/usb/devices/usb5/power/control:auto
>> /sys/bus/usb/devices/usb6/power/control:auto
>> /sys/bus/usb/devices/usb7/power/control:auto
>> /sys/bus/usb/devices/usb8/power/control:auto
>> 
>> 
>> Connecting a device to any port, whether it is external or internal
>> (using rfkill to "connect") has no effect.  Nothing in the log.  No
>> uevent. 
>> 
>> Setting control to "on" on a port will reenable hotplug on that port.
>> Any device connected while in "auto" state will suddenly be discovered.
>
> This sounds like a bug in the host controller driver.  What HCDs are 
> you using?  Does the host controller also get suspended?

uhci_hcd + ehci_hcd.  Really standard intel based laptop from 2008/2009:

bjorn@nemi:~$ lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub [8086:2a40] (rev 07)
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a42] (rev 07)
00:02.1 Display controller [0380]: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a43] (rev 07)
00:03.0 Communication controller [0780]: Intel Corporation Mobile 4 Series Chipset MEI Controller [8086:2a44] (rev 07)
00:19.0 Ethernet controller [0200]: Intel Corporation 82567LM Gigabit Network Connection [8086:10f5] (rev 03)
00:1a.0 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 [8086:2937] (rev 03)
00:1a.1 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 [8086:2938] (rev 03)
00:1a.2 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 [8086:2939] (rev 03)
00:1a.7 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 [8086:293c] (rev 03)
00:1b.0 Audio device [0403]: Intel Corporation 82801I (ICH9 Family) HD Audio Controller [8086:293e] (rev 03)
00:1c.0 PCI bridge [0604]: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 [8086:2940] (rev 03)
00:1c.1 PCI bridge [0604]: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 [8086:2942] (rev 03)
00:1d.0 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 [8086:2934] (rev 03)
00:1d.1 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 [8086:2935] (rev 03)
00:1d.2 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 [8086:2936] (rev 03)
00:1d.7 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 [8086:293a] (rev 03)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev 93)
00:1f.0 ISA bridge [0601]: Intel Corporation ICH9M-E LPC Interface Controller [8086:2917] (rev 03)
00:1f.2 SATA controller [0106]: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode] [8086:2929] (rev 03)
00:1f.3 SMBus [0c05]: Intel Corporation 82801I (ICH9 Family) SMBus Controller [8086:2930] (rev 03)
03:00.0 Network controller [0280]: Intel Corporation Ultimate N WiFi Link 5300 [8086:4236]

Is this indicating  host controller suspend?  If so, then yes:

Jul 23 23:27:39 nemi kernel: [ 1334.680513] uhci_hcd 0000:00:1a.2: power state changed by ACPI to D3
Jul 23 23:27:39 nemi kernel: [ 1334.695357] uhci_hcd 0000:00:1d.0: power state changed by ACPI to D3
Jul 23 23:27:41 nemi kernel: [ 1336.824658] uhci_hcd 0000:00:1a.0: power state changed by ACPI to D3
Jul 23 23:27:42 nemi kernel: [ 1336.856298] ehci_hcd 0000:00:1d.7: power state changed by ACPI to D3
Jul 23 23:27:42 nemi kernel: [ 1336.856350] ehci_hcd 0000:00:1a.7: power state changed by ACPI to D3



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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux