2003-11-17 21:05:58

by Karol Kozimor

[permalink] [raw]
Subject: [USB] uhci-hcd.c: b400: host controller halted after ACPI S3

Hi,
In brief: After resuming from S3 (Suspend-To-RAM), my USB hosts go very
bad.

Less short:
drivers/usb/host/uhci-hcd.c: b400: host system error, PCI problems?
drivers/usb/host/uhci-hcd.c: b400: host controller halted. very bad
drivers/usb/host/uhci-hcd.c: b400: host controller halted. very bad

Those messages appear in the logs after a successful S3 resume. The USB
mouse goes off and the HCDs work no more. Below is the lspci -v, attached
it the dmesg output. I'll be happy to provide more info.

--
Karol 'sziwan' Kozimor
[email protected]

cat /proc/interrupts:
CPU0
0: 208978 XT-PIC timer
1: 7477 XT-PIC keyboard
2: 0 XT-PIC cascade
5: 142003 XT-PIC Ricoh Co Ltd RL5c476 II, usb-uhci, radeon@PCI:1:0:0
8: 2 XT-PIC rtc
9: 129 XT-PIC acpi, eth0, usb-uhci, ohci1394
11: 140676 XT-PIC Ricoh Co Ltd RL5c476 II (#2), PCTel, Intel 82801CA-ICH3
12: 2605 XT-PIC PS/2 Mouse
14: 9394 XT-PIC ide0
15: 8 XT-PIC ide1
NMI: 0
ERR: 0

lspci -v:
00:00.0 Host bridge: Intel Corp. 82845 845 (Brookdale) Chipset Host Bridge (rev 04)
Subsystem: Asustek Computer, Inc.: Unknown device 1626
Flags: bus master, fast devsel, latency 0
Memory at e0000000 (32-bit, prefetchable) [size=256M]
Capabilities: [e4] #09 [d104]
Capabilities: [a0] AGP version 2.0

00:01.0 PCI bridge: Intel Corp. 82845 845 (Brookdale) Chipset AGP Bridge (rev 04) (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: d7000000-d7efffff
Prefetchable memory behind bridge: d7f00000-dfffffff

00:1d.0 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #1) (rev 02) (prog-if 00 [UHCI])
Subsystem: Asustek Computer, Inc.: Unknown device 1628
Flags: bus master, medium devsel, latency 0, IRQ 5
I/O ports at b800 [size=32]

00:1d.1 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #2) (rev 02) (prog-if 00 [UHCI])
Subsystem: Asustek Computer, Inc.: Unknown device 1628
Flags: bus master, medium devsel, latency 0, IRQ 9
I/O ports at b400 [size=32]

00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev 42) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=32
I/O behind bridge: 0000a000-0000afff
Memory behind bridge: d6000000-d6ffffff

00:1f.0 ISA bridge: Intel Corp. 82801CAM ISA Bridge (LPC) (rev 02)
Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corp. 82801CAM IDE U100 (rev 02) (prog-if 8a [Master SecP PriP])
Subsystem: Asustek Computer, Inc.: Unknown device 1628
Flags: bus master, medium devsel, latency 0, IRQ 9
I/O ports at <ignored>
I/O ports at <ignored>
I/O ports at <ignored>
I/O ports at <ignored>
I/O ports at 8400 [size=16]
Memory at d5800000 (32-bit, non-prefetchable) [size=1K]

00:1f.5 Multimedia audio controller: Intel Corp. 82801CA/CAM AC'97 Audio (rev 02)
Subsystem: Asustek Computer, Inc.: Unknown device 1583
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at e000 [size=256]
I/O ports at e100 [size=64]

00:1f.6 Modem: Intel Corp. 82801CA/CAM AC'97 Modem (rev 02) (prog-if 00 [Generic])
Subsystem: Asustek Computer, Inc.: Unknown device 1496
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at e200 [size=256]
I/O ports at e300 [size=128]

01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500] (prog-if 00 [VGA])
Subsystem: Asustek Computer, Inc.: Unknown device 1622
Flags: bus master, stepping, 66Mhz, medium devsel, latency 64, IRQ 5
Memory at d8000000 (32-bit, prefetchable) [size=128M]
I/O ports at d800 [size=256]
Memory at d7000000 (32-bit, non-prefetchable) [size=64K]
Expansion ROM at d7fe0000 [disabled] [size=128K]
Capabilities: [58] AGP version 2.0
Capabilities: [50] Power Management version 2

02:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Asustek Computer, Inc.: Unknown device 1045
Flags: bus master, medium devsel, latency 32, IRQ 9
I/O ports at a800 [size=256]
Memory at d6800000 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2

02:07.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev a8)
Subsystem: Asustek Computer, Inc.: Unknown device 1624
Flags: bus master, medium devsel, latency 168, IRQ 5
Memory at 10000000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=02, secondary=02, subordinate=03, sec-latency=176
I/O window 0: 00000000-00000003
I/O window 1: 00000000-00000003
16-bit legacy interface ports at 0001

02:07.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev a8)
Subsystem: Asustek Computer, Inc.: Unknown device 1624
Flags: bus master, medium devsel, latency 168, IRQ 11
Memory at 10001000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=02, secondary=04, subordinate=07, sec-latency=176
I/O window 0: 00000000-00000003
I/O window 1: 00000000-00000003
16-bit legacy interface ports at 0001

02:07.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (prog-if 10 [OHCI])
Subsystem: Asustek Computer, Inc.: Unknown device 1627
Flags: bus master, medium devsel, latency 32, IRQ 9
Memory at d6000000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [dc] Power Management version 2


Attachments:
(No filename) (5.84 kB)
dmesg.serio (11.08 kB)
Download all attachments

2003-11-17 23:07:35

by Felipe Alfaro Solana

[permalink] [raw]
Subject: Re: [USB] uhci-hcd.c: b400: host controller halted after ACPI S3

On Mon, 2003-11-17 at 22:05, Karol Kozimor wrote:
> Hi,
> In brief: After resuming from S3 (Suspend-To-RAM), my USB hosts go very
> bad.
>
> Less short:
> drivers/usb/host/uhci-hcd.c: b400: host system error, PCI problems?
> drivers/usb/host/uhci-hcd.c: b400: host controller halted. very bad
> drivers/usb/host/uhci-hcd.c: b400: host controller halted. very bad
>
> Those messages appear in the logs after a successful S3 resume. The USB
> mouse goes off and the HCDs work no more. Below is the lspci -v, attached
> it the dmesg output. I'll be happy to provide more info.

Try unloading uhci-hcd before suspending to S3. Then, load it again
after the system has been woken up from S3. At least, it works for me
:-)

2003-11-17 23:25:12

by Karol Kozimor

[permalink] [raw]
Subject: Re: [USB] uhci-hcd.c: b400: host controller halted after ACPI S3

Thus wrote Felipe Alfaro Solana:
> > In brief: After resuming from S3 (Suspend-To-RAM), my USB hosts go very
> > bad.
> >
> > Less short:
> > drivers/usb/host/uhci-hcd.c: b400: host system error, PCI problems?
> > drivers/usb/host/uhci-hcd.c: b400: host controller halted. very bad
> > drivers/usb/host/uhci-hcd.c: b400: host controller halted. very bad
> >
> > Those messages appear in the logs after a successful S3 resume. The USB
> > mouse goes off and the HCDs work no more. Below is the lspci -v, attached
> > it the dmesg output. I'll be happy to provide more info.
> Try unloading uhci-hcd before suspending to S3. Then, load it again
> after the system has been woken up from S3. At least, it works for me

Oh, yeah, I know it does, I'm just trying to get the problem fixed
properly.
Best regards,

--
Karol 'sziwan' Kozimor
[email protected]

2003-11-18 08:14:45

by Felipe Alfaro Solana

[permalink] [raw]
Subject: Re: [USB] uhci-hcd.c: b400: host controller halted after ACPI S3

On Tue, 2003-11-18 at 00:25, Karol Kozimor wrote:
> > Try unloading uhci-hcd before suspending to S3. Then, load it again
> > after the system has been woken up from S3. At least, it works for me
>
> Oh, yeah, I know it does, I'm just trying to get the problem fixed
> properly.

Oh! Good! I'm also trying to get this fixed, but I haven't seen any
progress on this issue (if my memory serves me well, Greg hadn't access
to a system with UHCI-HCD host controller to test).

2003-11-19 21:27:00

by John Mock

[permalink] [raw]
Subject: Re: [USB] uhci-hcd.c: b400: host controller halted after ACPI S3

It also does this after suspend-to-disk (either flavor), which is reported
in Bugzilla:

http://bugzilla.kernel.org/show_bug.cgi?id=1373

It's probably worthwhile adding that it fails similarly with ACPI S3 (in
addition to S4 as already reported).

Oh! Good! I'm also trying to get this fixed, but I haven't seen any
progress on this issue (if my memory serves me well, Greg hadn't access
to a system with UHCI-HCD host controller to test).

Please, PLEASE, if you think you have a patch and you would like a report
on, send it to me and i'll at least try running it [after Friday], perhaps
even try to debug it. Thank you for your efforts!

-- JM

2003-11-20 00:02:00

by Greg KH

[permalink] [raw]
Subject: Re: [USB] uhci-hcd.c: b400: host controller halted after ACPI S3

On Wed, Nov 19, 2003 at 01:27:12PM -0800, John Mock wrote:
> Oh! Good! I'm also trying to get this fixed, but I haven't seen any
> progress on this issue (if my memory serves me well, Greg hadn't access
> to a system with UHCI-HCD host controller to test).

I have access to UHCI controllers, just haven't tested sleep on them,
that's all. Hopefully in a few weeks I'll have the time to.

greg k-h