On Monday 11 April 2011 21:17:13 [email protected] wrote:
> >Number:         6588
> >Category:       kernel
> >Synopsis:       Kernel panics on sparc64, usb related
> >Confidential:   yes
> >Severity:       serious
> >Priority:       medium
> >Responsible:    bugs
> >State:          open
> >Quarter:
> >Keywords:
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   unknown
> >Arrival-Date:   Mon Apr 11 19:40:01 GMT 2011
> >Closed-Date:
> >Last-Modified:
> >Originator:
> >Release:
> >Organization:
> >Environment:
>
>       System      : OpenBSD 4.9
>       Details     : OpenBSD 4.9-current (GENERIC) #4: Sun Apr 10 21:15:38 MDT
> 2011 [email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC
>
>       Architecture: OpenBSD.sparc64
>       Machine     : sparc64
>
> >Description:
>
>       Kernel panics when keyboard and display are connected. Booting
>       with serial cable works fine. Also OpenBSD 4.2 works with display
>       and keyboard that was previously installed.
>
>       This happens right after uhub0 has attached.
>
>       Trace:
>
> panic: _bus_dmamem_map: size botch
> kdb breakpoint at 1463680
> Stopped at Debugger+0x4: nop
> _bus_dmamem_map(0, 400002b7e00, 400001c9380, 40006728000, 4000, 0) at
> _bus_dmamem_map+0xf0 usb_block_allocmem(400002b7e00, 3000, 10, 4000671b960,
> 8000, 3) at usb_block_allocmem+0x1d8 usb_allocmem(400004fc000, 2800, 10,
> 4000671b960, 0, 40000505640) at usb_allocmem+0x164
> ohci_alloc_std(400004fc000, 40000504000, 40000504020, 40000504000,
> 4000671bbb8, 1) at ohci_alloc_std+0x60 ohci_open(5, 40000504000, 0, 100, 0,
> 0) at ohci_open+0x64
> usbd_setup_pipe(5, 0, 40000504138, ffffffffffffffff, 40000504108, 0) at
> usbd_setup_pipe+0x74 usbd_new_device(5, 400004fc000, 40000504158, 1, 1,
> 40000505800) at usbd_new_device+0x1dc uhub_explore(0, 16306f8, 1630748,
> 1630778, 400002f49a4, 400002f4980) at uhub_explore+0x24c
> usb_explore(40000505d00, 20, 161b080, 0, 400026a2000, 1) at
> usb_explore+0x58 usb_task_thread(40002694a00, 40002694a00, 153c788,
> deadbeef, ffffffffffffffff, 18ccd40) at usb_task_thread+0x100
>
> >How-To-Repeat:
>
>       Boot with display and USB keyboard attached.
>
> >Fix:
>
>       Workaround currently is to boot without keyboard so the machine
>       uses serial line instead.
>
> dmesg:
> console is /pci@1f,0/isa@7/serial@0,3f8
> Copyright (c) 1982, 1986, 1989, 1991, 1993
>       The Regents of the University of California.  All rights reserved.
> Copyright (c) 1995-2011 OpenBSD. All rights reserved. 
> http://www.OpenBSD.org
>
> OpenBSD 4.9-current (GENERIC) #0: Mon Apr 11 20:39:45 EEST 2011
>     [email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC
> real mem = 134217728 (128MB)
> avail mem = 119398400 (113MB)
> mainbus0 at root: Sun Blade 100 (UltraSPARC-IIe)
> cpu0 at mainbus0: SUNW,UltraSPARC-IIe (rev 1.4) @ 502 MHz
> cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 256K external
> (64 b/l) psycho0 at mainbus0: pci108e,a001, impl 0, version 0, ign 7c0
> psycho0: bus range 0-1, PCI bus 0
> psycho0: dvma map c0000000-dfffffff
> pci0 at psycho0
> ebus0 at pci0 dev 12 function 0 "Sun RIO EBus" rev 0x01
> "flashprom" at ebus0 addr 0-fffff not configured
> clock1 at ebus0 addr 0-1fff: mk48t59
> ebus1 at pci0 dev 7 function 0 "Acer Labs M1533 ISA" rev 0x00
> "dma" at ebus1 addr 0-ffff ivec 0x2a not configured
> power0 at ebus1 addr 800-82f ivec 0x20
> com0 at ebus1 addr 3f8-3ff ivec 0x2b: ns16550a, 16 byte fifo
> com0: console
> com1 at ebus1 addr 2e8-2ef ivec 0x2b: ns16550a, 16 byte fifo
> gem0 at pci0 dev 12 function 1 "Sun ERI Ether" rev 0x01: ivec 0x7c6,
> address 00:03:ba:08:4c:68 ukphy0 at gem0 phy 1: Generic IEEE 802.3u media
> interface, rev. 1: OUI 0x0010dd, model 0x0002 "Sun FireWire" rev 0x01 at
> pci0 dev 12 function 2 not configured
> ohci0 at pci0 dev 12 function 3 "Sun USB" rev 0x01: ivec 0x7e4, version
> 1.0, legacy support alipm0 at pci0 dev 3 function 0 "Acer Labs M7101 Power"
> rev 0x00: 223KHz clock iic0 at alipm0
> "max1617" at alipm0 addr 0x18 skipped due to alipm0 bugs
> "scm001" at alipm0 addr 0x20 skipped due to alipm0 bugs
> spdmem0 at iic0 addr 0x50: 128MB SDRAM ECC PC100CL2
> autri0 at pci0 dev 8 function 0 "Acer Labs M5451 Audio" rev 0x01: ivec
> 0x7e3 ac97: codec id 0x41445348 (Analog Devices AD1881A)
> ac97: codec features headphone, Analog Devices Phat Stereo
> audio0 at autri0
> midi0 at autri0: <4DWAVE MIDI UART>
> pciide0 at pci0 dev 13 function 0 "Acer Labs M5229 UDMA IDE" rev 0xc3: DMA,
> channel 0 configured to native-PCI, channel 1 configured to native-PCI
> pciide0: using ivec 0x7cc for native-PCI interrupt
> wd0 at pciide0 channel 0 drive 0: <ST360015A>
> wd0: 16-sector PIO, LBA, 57241MB, 117231408 sectors
> atapiscsi0 at pciide0 channel 0 drive 1
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0: <PIONEER, 12X DVD-ROM, 1.14> ATAPI 5/cdrom
> removable wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
> cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
> pciide0: channel 1 disabled (no drives)
> ppb0 at pci0 dev 5 function 0 "DEC 21152 PCI-PCI" rev 0x03
> pci1 at ppb0 bus 1
> ifb0 at pci1 dev 1 function 0 "Intergraph Expert3D" rev 0x00
> ifb0: Expert3D-Lite (SUNW,375-0116), 1152x900
> wsdisplay0 at ifb0 mux 1
> wsdisplay0: screen 0 added (std, sun emulation)
> machfb0 at pci0 dev 19 function 0 "ATI Rage XL" rev 0x27
> machfb0: ATY,RageXL, 1152x900
> wsdisplay1 at machfb0 mux 1
> wsdisplay1: screen 0 added (std, sun emulation)
> usb0 at ohci0: USB revision 1.0
> uhub0 at usb0 "Sun OHCI root hub" rev 1.00/1.00 addr 1
> vscsi0 at root
> scsibus1 at vscsi0: 256 targets
> softraid0 at root
> bootpath: /pci@1f,0/ide@d,0/disk@0,0
> root on wd0a swap on wd0b dump on wd0b
> WARNING: / was not properly unmounted
>
> usbdevs:
> Controller /dev/usb0:
> addr 1: full speed, self powered, config 1, OHCI root hub(0x0000),
> Sun(0x108e), rev 1.00 port 1 powered
>  port 2 powered
>  port 3 powered
>  port 4 powered
>
> >Release-Note:
> >Audit-Trail:
> >Unformatted:

I tested different revisions and found the commit that breaks that:
http://marc.info/?l=openbsd-cvs&m=130186854105654&w=2
I double-checked to make sure it is correct. I checked out that version and it 
breaks. Then I checked out a tree one commit before that and it works.

-- 
Antti Harri

Reply via email to