Subject: kern/35127: fwohci(4): acpi resume failed
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 11/26/2006 14:45:00
>Number:         35127
>Category:       kern
>Synopsis:       fwohci(4): acpi resume failed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 26 14:45:00 +0000 2006
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 4.99.4
>Organization:
>Environment:
System: NetBSD firefly.localdomain 4.99.4 NetBSD 4.99.4 (X32) #154: Sun Nov 26 14:12:56 JST 2006 root@firefly.localdomain:/obj/usr/src/sys/arch/i386/compile/X32 i386
Architecture: i386
Machine: i386
>Description:
	When resuming from acpi sleep, the kernel is paniced with fwohci(4).

	dmesg:

fwohci0 at pci2 dev 0 function 2: Ricoh 5C552 PCI-CardBus bridge/Firewire (rev. 0x02)
fwohci0: interrupting at irq 11
fwohci0: OHCI version 1.0 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:06:1b:03:29:05:ea:21
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
ieee1394if0: bus manager 0 (me)

	Output of resume:

acpi0: good morning!
pckbd0: resuming...
uhci0: cannot start
uhci1: cannot start
uhci2: cannot start
ehci0: config timeout
ehci0: BIOS has given up ownership
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
uvm_fault(0xcbc8bd20, 0, 1) -> 0xe
kernel: supervisor trap page fault, code=0
Stopped in pid 21.1 (sysctl) at netbsd:fwohci_rw_enable+0x149:  imull  0x4(%ecx),%eax
db> bt
fwohci_rx_enable(c237401c,2,c2374000,800,f064a022) at netbsd:fwohci_rx_enable+0x149
fwohci_reset(c2374000,c2374000,c,1f,0) at netbsd:fwohci_reset+0x4e2
fwohci_resume(c2374000,c2374000,8002f800,c236de60,0) at netbsd:fwohci_resume+0x14
fwohci_power(0,c2374000,0,3,3) at netbsd:fwohci_power+0x5c
dopowerhooks(0,cc84fa8f,cc84fa8e,0,bfbfe7b4) at netbsd:dopowerhooks+0x5a
acpi_enter_sleep_state(c225f400,3,60,ffffffff,0) at netbsd:acpi_enter_sleep_state+0xbf
sysctl_hw_acpi_sleepstate(cc84fbe4,0,bfbfe7b0,cc84fc0c,bfbfe7b4) at netbsd:sysctl_hw_acpi_sleepstate+0x67
sysctl_dispatch(cc84fbdc,2,bfbfe7b0,cc84fc0c,bfbfe7b4) at netbsd:sysctl_dispatch+0x8d
sys___sysctl(cbc8e378,cc84fc48,cc84fc68,0,bbb34000) at netbsd:sys___sysctl+0xb3
syscall_plain() at netbsd:syscall_plain+0x155
--- syscall (number 202) ---
0xbbbc777:
db>

>How-To-Repeat:
	[enable acpi and fwohci(4)]
	# sysctl -w machdep.sleep_state=3
	[resume]

>Fix:
	Sorry, I don't know.