Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Sep 2009 21:33:08 +0200
From:      Dorian =?iso-8859-1?q?B=FCttner?= <dorian.buettner@gmx.de>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        Andriy Gapon <avg@icyb.net.ua>, freebsd-usb@freebsd.org
Subject:   Re: Asus M2A-VP, SB600 usb chip and keyboard attached during boot
Message-ID:  <200909082133.08714.dorian.buettner@gmx.de>
In-Reply-To: <200909071950.23865.hselasky@c2i.net>
References:  <200909062314.54270.dorian.buettner@gmx.de> <4AA53271.70907@icyb.net.ua> <200909071950.23865.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 07 September 2009 19:50:22 Hans Petter Selasky wrote:
> On Monday 07 September 2009 18:18:57 Andriy Gapon wrote:
> > BTW, the patch as present verbatim in the posted link
> > (http://marc.info/?l=openbsd-tech&m=124574838020563&w=2)
> 
> seems to be
> 
> > incorrect. Either the register should be 0x53 and should
> 
> be accessed via
> 
> > byte access. Or the bit should be 27.
> >
> > And, BTW, that bit of that register is not documented in
> 
> AMD SB700/710/750
> 
> > Register Reference Guide -- bits 24:27 of EHCI Misc
> 
> Control register are
> 
> > said to be reserved.
> >
> > It's interesting to understand what this bit actually
> 
> does, maybe someone
> 
> > has contacts at AMD.
> 
> Hi,
> 
> Can you try the following patch, and check that you get
> dmesg output according to the quirks.
> 
> http://perforce.freebsd.org/chv.cgi?CH=168288
> 
> --HPS
> 

Just finished compiling, dmesg following. It Doesn't seem to have any impact 
concerning my problem, propably some sb700 owners might want to test also.
Don't know in how far this will give any hint but in 7.2 I worked around the 
crash on boot by compiling the kernel w/o any usb support, then adviced 
/etc/rc to load the necessary modules. That way I had everything working 
without too much effort unplugging devices during boot.


Copyright (c) 1992-2009 The FreeBSD Project.                                    
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994        
        The Regents of the University of California. All rights reserved.       
FreeBSD is a registered trademark of The FreeBSD Foundation.                    
FreeBSD 8.0-BETA4 #12: Tue Sep  8 21:06:47 CEST 2009                            
    root@zock.doris.net:/usr/obj/usr/src/sys/GENERIC                            
WARNING: WITNESS option enabled, expect reduced performance.                    
Timecounter "i8254" frequency 1193182 Hz quality 0                              
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ (2999.91-MHz K8-class CPU)  
  Origin = "AuthenticAMD"  Id = 0x40f33  Stepping = 3                           
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>                                    
  Features2=0x2001<SSE3,CX16>                                                   
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>       
  AMD Features2=0x1f<LAHF,CMP,SVM,ExtAPIC,CR8>                                  
real memory  = 6442450944 (6144 MB)                                             
avail memory = 6178373632 (5892 MB)                                             
ACPI APIC Table: <ATI    ASUSACPI>                                              
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs                             
FreeBSD/SMP: 1 package(s) x 2 core(s)                                           
 cpu0 (BSP): APIC ID:  0                                                        
 cpu1 (AP): APIC ID:  1                                                         
ioapic0: Changing APIC ID to 4                                                  
ioapic0 <Version 2.1> irqs 0-23 on motherboard                                  
kbd1 at kbdmux0                                                                 
acpi0: <ATI ASUSACPI> on motherboard                                            
acpi0: [ITHREAD]                                                                
acpi0: Power Button (fixed)                                                     
acpi0: reservation of 0, a0000 (3) failed                                       
acpi0: reservation of 100000, cfde0000 (3) failed                               
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000                       
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0          
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0   
device_attach: acpi_hpet0 attach returned 12                                    
acpi_button0: <Power Button> on acpi0                                           
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0                         
pci0: <ACPI PCI bus> on pcib0                                                   
pcib1: <ACPI PCI-PCI bridge> at device 2.0 on pci0                              
pci1: <ACPI PCI bus> on pcib1                                                   
vgapci0: <VGA-compatible display> port 0xdf00-0xdf7f mem 
0xfa000000-0xfaffffff,0xd0000000-0xdfffffff,0xf8000000-0xf9ffffff irq 18 at 
device 0.0 on pci1         
pcib2: <ACPI PCI-PCI bridge> at device 7.0 on pci0                              
pci2: <ACPI PCI bus> on pcib2                                                   
re0: <RealTek 8168/8168B/8168C/8168CP/8168D/8168DP/8111B/8111C/8111CP/8111DP 
PCIe Gigabit Ethernet> port 0xee00-0xeeff mem 0xfddff000-0xfddfffff irq 19 at 
device 0.0 on pci2                                                                   
re0: Using 1 MSI messages                                                       
re0: Chip rev. 0x38000000                                                       
re0: MAC rev. 0x00000000                                                        
miibus0: <MII bus> on re0                                                       
rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus0                
rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto                                                                        
re0: Ethernet address: 00:1b:fc:73:9e:b8                                        
re0: [FILTER]                                                                   
atapci0: <ATI IXP600 SATA300 controller> port 
0xff00-0xff07,0xfe00-0xfe03,0xfd00-0xfd07,0xfc00-0xfc03,0xfb00-0xfb0f mem 
0xfe02f000-0xfe02f3ff irq 22 at device 18.0 on pci0                                                                     
atapci0: [ITHREAD]                                                              
atapci0: AHCI v1.10 controller with 4 3Gbps ports, PM supported                 
ata2: <ATA channel 0> on atapci0                                                
ata2: port is not ready (timeout 0ms) tfd = 000001d0                            
ata2: software reset clear timeout                                              
ata2: [ITHREAD]                                                                 
ata3: <ATA channel 1> on atapci0                                                
ata3: [ITHREAD]                                                                 
ata4: <ATA channel 2> on atapci0                                                
ata4: [ITHREAD]                                                                 
ata5: <ATA channel 3> on atapci0                                                
ata5: [ITHREAD]                                                                 
ohci0: <OHCI (generic) USB controller> mem 0xfe02e000-0xfe02efff irq 16 at 
device 19.0 on pci0                                                                  
ohci0: [ITHREAD]                                                                
usbus0: <OHCI (generic) USB controller> on ohci0                                
ohci1: <OHCI (generic) USB controller> mem 0xfe02d000-0xfe02dfff irq 17 at 
device 19.1 on pci0                                                                  
ohci1: [ITHREAD]                                                                
usbus1: <OHCI (generic) USB controller> on ohci1                                
ohci2: <OHCI (generic) USB controller> mem 0xfe02c000-0xfe02cfff irq 18 at 
device 19.2 on pci0                                                                  
ohci2: [ITHREAD]                                                                
usbus2: <OHCI (generic) USB controller> on ohci2                                
ohci3: <OHCI (generic) USB controller> mem 0xfe02b000-0xfe02bfff irq 17 at 
device 19.3 on pci0                                                                  
ohci3: [ITHREAD]                                                                
usbus3: <OHCI (generic) USB controller> on ohci3                                
ohci4: <OHCI (generic) USB controller> mem 0xfe02a000-0xfe02afff irq 18 at 
device 19.4 on pci0                                                                  
ohci4: [ITHREAD]                                                                
usbus4: <OHCI (generic) USB controller> on ohci4                                
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfe029000-0xfe0290ff irq 19 at 
device 19.5 on pci0                                                              
ehci0: [ITHREAD]                                                                
usbus5: EHCI version 1.0                                                        
usbus5: <EHCI (generic) USB 2.0 controller> on ehci0                            
pci0: <serial bus, SMBus> at device 20.0 (no driver attached)                   
atapci1: <ATI IXP600 UDMA133 controller> port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf900-0xf90f at device 20.1 on pci0                                          
ata0: <ATA channel 0> on atapci1                                                
ata0: [ITHREAD]                                                                 
isab0: <PCI-ISA bridge> at device 20.3 on pci0                                  
isa0: <ISA bus> on isab0                                                        
pcib3: <ACPI PCI-PCI bridge> at device 20.4 on pci0                             
pci3: <ACPI PCI bus> on pcib3                                                   
pcm0: <Creative EMU10K1> port 0xcf00-0xcf1f irq 21 at device 6.0 on pci3        
pcm0: <SigmaTel STAC9721/23 AC97 Codec>                                         
pcm0: [ITHREAD]                                                                 
acpi_tz0: <Thermal Zone> on acpi0                                               
ACPI Warning: \\_TZ_.THRM._PSL: Return Package type mismatch at index 0 - 
found [NULL Object Descriptor], expected Reference 20090521 nspredef-1058             
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0     
fdc0: [FILTER]                                                                  
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0         
uart0: [FILTER]                                                                 
ppc0: <Parallel port> port 0x378-0x37f irq 7 on acpi0                           
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode                           
ppc0: [ITHREAD]                                                                 
ppbus0: <Parallel port bus> on ppc0                                             
plip0: <PLIP network interface> on ppbus0                                       
plip0: [ITHREAD]                                                                
lpt0: <Printer> on ppbus0                                                       
lpt0: [ITHREAD]                                                                 
lpt0: Interrupt-driven port                                                     
ppi0: <Parallel I/O> on ppbus0                                                  
atrtc0: <AT realtime clock> port 0x70-0x73 on acpi0                             
cpu0: <ACPI CPU> on acpi0                                                       
powernow0: <PowerNow! K8> on cpu0                                               
cpu1: <ACPI CPU> on acpi0                                                       
powernow1: <PowerNow! K8> on cpu1                                               
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0   
device_attach: acpi_hpet0 attach returned 12                                    
sc0: <System console> at flags 0x100 on isa0                                    
sc0: VGA <16 virtual consoles, flags=0x300>                                     
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0       
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0                
atkbd0: <AT Keyboard> irq 1 on atkbdc0                                          
kbd0 at atkbd0                                                                  
atkbd0: [GIANT-LOCKED]                                                          
atkbd0: [ITHREAD]                                                               
Timecounters tick every 1.000 msec                                              
usbus0: 12Mbps Full Speed USB v1.0                                              
usbus1: 12Mbps Full Speed USB v1.0                                              
usbus2: 12Mbps Full Speed USB v1.0                                              
usbus3: 12Mbps Full Speed USB v1.0                                              
usbus4: 12Mbps Full Speed USB v1.0                                              
usbus5: 480Mbps High Speed USB v2.0                                             
ugen0.1: <ATI> at usbus0                                                        
uhub0: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0          
ugen1.1: <ATI> at usbus1                                                        
uhub1: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1          
ugen2.1: <ATI> at usbus2                                                        
uhub2: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2          
ugen3.1: <ATI> at usbus3                                                        
uhub3: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3          
ugen4.1: <ATI> at usbus4                                                        
uhub4: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4          
ugen5.1: <ATI> at usbus5                                                        
uhub5: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus5          
acd0: DVDR <DVDR PX-750A/1.03> at ata0-master UDMA66                            
ad4: 305245MB <SAMSUNG HD320KJ CP100-11> at ata2-master SATA300                 
SMP: AP CPU #1 Launched!                                                        
WARNING: WITNESS option enabled, expect reduced performance.                    
GEOM: ad4s2: geometry does not match label (255h,63s != 16h,63s).               
GEOM: ad4s3: geometry does not match label (255h,63s != 16h,63s).               
uhub0: 2 ports with 2 removable, self powered                                   
uhub1: 2 ports with 2 removable, self powered                                   
uhub2: 2 ports with 2 removable, self powered                                   
uhub3: 2 ports with 2 removable, self powered                                   
uhub4: 2 ports with 2 removable, self powered                                   
Root mount waiting for: usbus5                                                  
Root mount waiting for: usbus5                                                  
Root mount waiting for: usbus5                                                  
uhub5: 10 ports with 10 removable, self powered                                 
Root mount waiting for: usbus5                                                  
Trying to mount root from ufs:/dev/ad4s3a                                       
usb_alloc_device:1586: set address 2 failed (USB_ERR_TIMEOUT, ignored)          
usb_alloc_device:1624: getting device descriptor at addr 2 failed, 
USB_ERR_TIMEOUT!                                                                             
usbd_req_re_enumerate:1539: addr=2, set address failed! (USB_ERR_TIMEOUT, 
ignored)                                                                              
lock order reversal:                                                            
 1st 0xffffff0004305620 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2083           
 2nd 0xffffff807ba69850 bufwait (bufwait) @ 
/usr/src/sys/ufs/ffs/ffs_softdep.c:6177                                                                             
 3rd 0xffffff00044d8ba8 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2083           
KDB: stack backtrace:                                                           
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a                           
_witness_debugger() at _witness_debugger+0x2e                                   
witness_checkorder() at witness_checkorder+0x81e                                
__lockmgr_args() at __lockmgr_args+0xcf3                                        
ffs_lock() at ffs_lock+0x8c                                                     
VOP_LOCK1_APV() at VOP_LOCK1_APV+0x9b                                           
_vn_lock() at _vn_lock+0x47                                                     
vget() at vget+0x7b                                                             
vfs_hash_get() at vfs_hash_get+0xd5                                             
ffs_vgetf() at ffs_vgetf+0x48                                                   
softdep_sync_metadata() at softdep_sync_metadata+0x456                          
ffs_syncvnode() at ffs_syncvnode+0x210                                          
ffs_truncate() at ffs_truncate+0x4ab                                            
ufs_direnter() at ufs_direnter+0x6ae                                            
ufs_mkdir() at ufs_mkdir+0x623                                                  
VOP_MKDIR_APV() at VOP_MKDIR_APV+0x93                                           
kern_mkdirat() at kern_mkdirat+0x270                                            
syscall() at syscall+0x1af                                                      
Xfast_syscall() at Xfast_syscall+0xe1                                           
--- syscall (136, FreeBSD ELF64, mkdir), rip = 0x800729dcc, rsp = 
0x7fffffffec88, rbp = 0x7fffffffef66 ---                                                      
usbd_req_re_enumerate:1553: getting device descriptor at addr 2 failed, 
USB_ERR_TIMEOUT!                                                                        
usbd_req_re_enumerate:1539: addr=2, set address failed! (USB_ERR_TIMEOUT, 
ignored)                                                                              
usbd_req_re_enumerate:1553: getting device descriptor at addr 2 failed, 
USB_ERR_TIMEOUT!                                                                        
ugen0.2: <(null)> at usbus0 (disconnected)                                      
uhub_reattach_port:435: could not allocate new device!                          
re0: link state changed to UP                                                   
re0: link state changed to DOWN                                                 
re0: link state changed to UP                                                   
re0: link state changed to DOWN                                                 
re0: link state changed to UP                                                   
ugen1.2: <vendor 0x046d> at usbus1                                              
uhub6: <vendor 0x046d product 0xc223, class 9/0, rev 1.10/1.03, addr 2> on 
usbus1                                                                               
uhub6: 4 ports with 2 removable, bus powered                                    
ugen1.3: <vendor 0x046d> at usbus1                                              
ukbd0: <vendor 0x046d Gaming Keyboard, class 0/0, rev 2.00/1.90, addr 3> on 
usbus1                                                                              
kbd2 at ukbd0                                                                   
uhid0: <vendor 0x046d Gaming Keyboard, class 0/0, rev 2.00/1.90, addr 3> on 
usbus1                                                                              
ugen1.4: <USBest Technology> at usbus1                                          
umass0: <USBest Technology USB Mass Storage Device, class 0/0, rev 2.00/1.00, 
addr 4> on usbus1                                                                 
umass0:  SCSI over Bulk-Only; quirks = 0x0000                                   
umass0:0:0:-1: Attached to scbus0                                               
da0 at umass-sim0 bus 0 target 0 lun 0                                          
da0: <Ut163 USB2FlashStorage 0.00> Removable Direct Access SCSI-2 device        
da0: 1.000MB/s transfers                                                        
da0: 250MB (512000 512 byte sectors: 64H 32S/T 250C)                            
GEOM: da0: partition 1 does not start on a track boundary.                      
GEOM: da0: partition 1 does not end on a track boundary.                        
ugen1.5: <Razer> at usbus1                                                      
ums0: <Razer Razer Copperhead Laser Mouse, class 0/0, rev 1.10/21.00, addr 5> 
on usbus1                                                                         
ums0: 7 buttons and [XYZ] coordinates ID=0                                      
ukbd1: <Razer Razer Copperhead Laser Mouse, class 0/0, rev 1.10/21.00, addr 5> 
on usbus1                                                                        
kbd3 at ukbd1                                                                   
ukbd_set_leds_callback:696: error=USB_ERR_STALLED                               
ugen1.6: <vendor 0x046d> at usbus1                                              
hid_get_item:364: Number of items truncated to 255                              
hid_get_item:364: Number of items truncated to 255                              
hid_get_item:364: Number of items truncated to 255                              
uhid1: <vendor 0x046d product 0xc222, class 0/0, rev 2.00/1.03, addr 6> on 
usbus1                                                                               
hid_get_item:364: Number of items truncated to 255                              
hid_get_item:364: Number of items truncated to 255                              
hid_get_item:364: Number of items truncated to 255                              
ukbd_set_leds_callback:696: error=USB_ERR_STALLED                               
ukbd_set_leds_callback:696: error=USB_ERR_STALLED                               
ukbd_set_leds_callback:696: error=USB_ERR_STALLED                               
ukbd_set_leds_callback:696: error=USB_ERR_STALLED                               
ugen1.4: <USBest Technology> at usbus1 (disconnected)                           
umass0: at uhub6, port 2, addr 4 (disconnected)                                 
(da0:umass-sim0:0:0:0): lost device                                             
(da0:umass-sim0:0:0:0): removing device entry                                   
lock order reversal:                                                            
 1st 0xffffff807bad21c0 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2559    
 2nd 0xffffff00192fca00 dirhash (dirhash) @ 
/usr/src/sys/ufs/ufs/ufs_dirhash.c:285
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
_witness_debugger() at _witness_debugger+0x2e
witness_checkorder() at witness_checkorder+0x81e
_sx_xlock() at _sx_xlock+0x55
ufsdirhash_acquire() at ufsdirhash_acquire+0x33
ufsdirhash_add() at ufsdirhash_add+0x19
ufs_direnter() at ufs_direnter+0x88b
ufs_makeinode() at ufs_makeinode+0x2a7
VOP_CREATE_APV() at VOP_CREATE_APV+0x8d
vn_open_cred() at vn_open_cred+0x468
kern_openat() at kern_openat+0x179
syscall() at syscall+0x1af
Xfast_syscall() at Xfast_syscall+0xe1
--- syscall (5, FreeBSD ELF64, open), rip = 0x80336ee0c, rsp = 0x7fffffffc7c8, 
rbp = 0x8068021c0 ---
ukbd_set_leds_callback:696: error=USB_ERR_STALLED
ukbd_set_leds_callback:696: error=USB_ERR_STALLED
ukbd_set_leds_callback:696: error=USB_ERR_STALLED
ukbd_set_leds_callback:696: error=USB_ERR_STALLED
ukbd_set_leds_callback:696: error=USB_ERR_STALLED
ugen1.4: <USBest Technology> at usbus1
umass0: <USBest Technology USB Mass Storage Device, class 0/0, rev 2.00/1.00, 
addr 4> on usbus1
umass0:  SCSI over Bulk-Only; quirks = 0x0000
umass0:0:0:-1: Attached to scbus0
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Ut163 USB2FlashStorage 0.00> Removable Direct Access SCSI-2 device
da0: 1.000MB/s transfers
da0: 250MB (512000 512 byte sectors: 64H 32S/T 250C)
GEOM: da0: partition 1 does not start on a track boundary.
GEOM: da0: partition 1 does not end on a track boundary.
GEOM: da0: partition 1 does not start on a track boundary.
GEOM: da0: partition 1 does not end on a track boundary.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909082133.08714.dorian.buettner>