Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2013 14:44:40 GMT
From:      Alexander Panyushkin <vsityz@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   usb/179109: After detach USB Flash a keyboard does not work.
Message-ID:  <201305301444.r4UEiexW031527@oldred.FreeBSD.org>
Resent-Message-ID: <201305301450.r4UEo0wX080735@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         179109
>Category:       usb
>Synopsis:       After detach USB Flash a keyboard does not work.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 30 14:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Panyushkin
>Release:        FreeBSD 10.0-CURRENT #0 r251129M
>Organization:
Home
>Environment:
FreeBSD scorpion.kiev.ua 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r251129M: Thu May 30 15:58:30 EEST 2013     /usr/obj/usr/src/sys/Kernel  amd64
>Description:
There is a problem.
After detach USB Flash drive a keyboard does not work.

in /var/lod/messages

May 30 17:05:37 scorpion kernel: ugen1.2: <Generic> at usbus1
May 30 17:05:37 scorpion kernel: umass0: <Generic USB2.0-CRW, class 0/0, rev 2.00/19.81, addr 2> on usbus1
May 30 17:05:37 scorpion kernel: da0 at umass-sim0 bus 0 scbus7 target 0 lun 0
May 30 17:05:37 scorpion kernel: da0: <Generic- SD/MMC 1.00> Removable Direct Access SCSI-0 device
May 30 17:05:37 scorpion kernel: da0: 40.000MB/s transfers
May 30 17:05:37 scorpion kernel: da0: 7600MB (15564800 512 byte sectors: 255H 63S/T 968C)
May 30 17:05:37 scorpion kernel: da0: quirks=0x2<NO_6_BYTE>
May 30 17:05:42 scorpion kernel: ugen1.2: <Generic> at usbus1 (disconnected)
May 30 17:05:42 scorpion kernel: umass0: at uhub0, port 2, addr 2 (disconnected)
May 30 17:05:42 scorpion kernel: (da0:umass-sim0:0:0:0): lost device - 0 outstanding, 2 refs


In console and in Xorg keyboard not work.
After attach and detach USB modem - keyboard is working.


pciconf -lv

none0@pci0:0:0:0:	class=0x050000 card=0x83a41043 chip=0x03e210de rev=0xa1 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP61 Host Bridge'
    class      = memory
    subclass   = RAM
isab0@pci0:0:1:0:	class=0x060100 card=0x83a41043 chip=0x03e110de rev=0xa2 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP61 LPC Bridge'
    class      = bridge
    subclass   = PCI-ISA
nfsmb0@pci0:0:1:1:	class=0x0c0500 card=0x83a41043 chip=0x03eb10de rev=0xa2 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP61 SMBus'
    class      = serial bus
    subclass   = SMBus
none1@pci0:0:1:2:	class=0x050000 card=0x83a41043 chip=0x03f510de rev=0xa2 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP61 Memory Controller'
    class      = memory
    subclass   = RAM
ohci0@pci0:0:2:0:	class=0x0c0310 card=0x83a41043 chip=0x03f110de rev=0xa3 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP61 USB 1.1 Controller'
    class      = serial bus
    subclass   = USB
ehci0@pci0:0:2:1:	class=0x0c0320 card=0x83a41043 chip=0x03f210de rev=0xa3 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP61 USB 2.0 Controller'
    class      = serial bus
    subclass   = USB
pcib1@pci0:0:4:0:	class=0x060401 card=0x83a41043 chip=0x03f310de rev=0xa1 hdr=0x01
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP61 PCI bridge'
    class      = bridge
    subclass   = PCI-PCI
hdac0@pci0:0:5:0:	class=0x040300 card=0x84151043 chip=0x03f010de rev=0xa2 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP61 High Definition Audio'
    class      = multimedia
    subclass   = HDA
atapci0@pci0:0:6:0:	class=0x01018a card=0x83a41043 chip=0x03ec10de rev=0xa2 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP61 IDE'
    class      = mass storage
    subclass   = ATA
nfe0@pci0:0:7:0:	class=0x068000 card=0x83a41043 chip=0x03ef10de rev=0xa2 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP61 Ethernet'
    class      = bridge
atapci1@pci0:0:8:0:	class=0x010185 card=0x83a41043 chip=0x03f610de rev=0xa2 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP61 SATA Controller'
    class      = mass storage
    subclass   = ATA
atapci2@pci0:0:8:1:	class=0x010185 card=0x83a41043 chip=0x03f610de rev=0xa2 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP61 SATA Controller'
    class      = mass storage
    subclass   = ATA
pcib2@pci0:0:9:0:	class=0x060400 card=0x000010de chip=0x03e810de rev=0xa2 hdr=0x01
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP61 PCI Express bridge'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:0:11:0:	class=0x060400 card=0x000010de chip=0x03e910de rev=0xa2 hdr=0x01
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP61 PCI Express bridge'
    class      = bridge
    subclass   = PCI-PCI
pcib4@pci0:0:12:0:	class=0x060400 card=0x000010de chip=0x03e910de rev=0xa2 hdr=0x01
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP61 PCI Express bridge'
    class      = bridge
    subclass   = PCI-PCI
vgapci0@pci0:0:13:0:	class=0x030000 card=0x83a41043 chip=0x03d610de rev=0xa2 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'C61 [GeForce 7025 / nForce 630a]'
    class      = display
    subclass   = VGA
hostb0@pci0:0:24:0:	class=0x060000 card=0x00000000 chip=0x12001022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Family 10h Processor HyperTransport Configuration'
    class      = bridge
    subclass   = HOST-PCI
hostb1@pci0:0:24:1:	class=0x060000 card=0x00000000 chip=0x12011022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Family 10h Processor Address Map'
    class      = bridge
    subclass   = HOST-PCI
hostb2@pci0:0:24:2:	class=0x060000 card=0x00000000 chip=0x12021022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Family 10h Processor DRAM Controller'
    class      = bridge
    subclass   = HOST-PCI
hostb3@pci0:0:24:3:	class=0x060000 card=0x00000000 chip=0x12031022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Family 10h Processor Miscellaneous Control'
    class      = bridge
    subclass   = HOST-PCI
hostb4@pci0:0:24:4:	class=0x060000 card=0x00000000 chip=0x12041022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Family 10h Processor Link Control'
    class      = bridge
    subclass   = HOST-PCI
none2@pci0:1:6:0:	class=0x048000 card=0x40710000 chip=0x71341131 rev=0x01 hdr=0x00
    vendor     = 'Philips Semiconductors'
    device     = 'SAA7134/SAA7135HL Video Broadcast Decoder'
    class      = multimedia


dmesg

Copyright (c) 1992-2013 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 10.0-CURRENT #0 r251129M: Thu May 30 15:58:30 EEST 2013
    root@scorpion.kiev.ua:/usr/obj/usr/src/sys/Kernel amd64
FreeBSD clang version 3.3 (trunk 178860) 20130405
CPU: AMD Phenom(tm) II X4 945 Processor (3212.24-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x100f42  Family = 0x10  Model = 0x4  Stepping = 2
  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=0x802009<SSE3,MON,CX16,POPCNT>
  AMD Features=0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x37ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT>
  TSC: P-state invariant
real memory  = 8589934592 (8192 MB)
avail memory = 7720079360 (7362 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <070511 APIC1920>
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP): APIC ID:  3
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
acpi0: <070511 XSDT1920> on motherboard
acpi0: Power Button (fixed)
acpi0: reservation of fec00000, fed40000 (3) failed
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, aff00000 (3) failed
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed00fff on acpi0
Timecounter "HPET" frequency 25000000 Hz quality 950
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x508-0x50b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <memory, RAM> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> port 0x900-0x9ff at device 1.0 on pci0
isa0: <ISA bus> on isab0
nfsmb0: <nForce2/3/4 MCP SMBus Controller> port 0xe00-0xe3f,0x600-0x63f,0x700-0x73f irq 20 at device 1.1 on pci0
smbus0: <System Management Bus> on nfsmb0
smb0: <SMBus generic I/O> on smbus0
nfsmb1: <nForce2/3/4 MCP SMBus Controller> on nfsmb0
smbus1: <System Management Bus> on nfsmb1
smb1: <SMBus generic I/O> on smbus1
pci0: <memory, RAM> at device 1.2 (no driver attached)
ohci0: <nVidia nForce MCP61 USB Controller> mem 0xdfefb000-0xdfefbfff irq 21 at device 2.0 on pci0
usbus0 on ohci0
ehci0: <NVIDIA nForce MCP61 USB 2.0 controller> mem 0xdfefac00-0xdfefacff irq 22 at device 2.1 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
pcib1: <ACPI PCI-PCI bridge> at device 4.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <multimedia> at device 6.0 (no driver attached)
hdac0: <NVIDIA MCP61 HDA Controller> mem 0xdfef4000-0xdfef7fff irq 23 at device 5.0 on pci0
atapci0: <nVidia nForce MCP61 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 6.0 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
nfe0: <NVIDIA nForce MCP61 Networking Adapter> port 0xe480-0xe487 mem 0xdfef9000-0xdfef9fff irq 20 at device 7.0 on pci0
miibus0: <MII bus> on nfe0
rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
nfe0: Ethernet address: bc:ae:c5:dc:36:a7
atapci1: <nVidia nForce MCP61 SATA300 controller> port 0xe400-0xe407,0xe080-0xe083,0xe000-0xe007,0xdc00-0xdc03,0xd880-0xd88f mem 0xdfef8000-0xdfef8fff irq 21 at device 8.0 on pci0
ata2: <ATA channel> at channel 0 on atapci1
ata3: <ATA channel> at channel 1 on atapci1
atapci2: <nVidia nForce MCP61 SATA300 controller> port 0xd800-0xd807,0xd480-0xd483,0xd400-0xd407,0xd080-0xd083,0xd000-0xd00f mem 0xdfeef000-0xdfeeffff irq 22 at device 8.1 on pci0
ata4: <ATA channel> at channel 0 on atapci2
ata5: <ATA channel> at channel 1 on atapci2
pcib2: <ACPI PCI-PCI bridge> at device 9.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 11.0 on pci0
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 12.0 on pci0
pci4: <ACPI PCI bus> on pcib4
vgapci0: <VGA-compatible display> mem 0xde000000-0xdeffffff,0xc0000000-0xcfffffff,0xdd000000-0xddffffff irq 23 at device 13.0 on pci0
nvidia0: <GeForce 7025 / nForce 630a> on vgapci0
vgapci0: child nvidia0 requested pci_enable_io
vgapci0: child nvidia0 requested pci_enable_io
amdtemp0: <AMD CPU On-Die Thermal Sensors> on hostb3
acpi_button0: <Power Button> on acpi0
ppc0: <Parallel port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 on acpi0
sc0: <System console> on isa0
sc0: VGA <11 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ctl: CAM Target Layer loaded
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
fuse-freebsd: version 0.4.4, FUSE ABI 7.8
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
Timecounters tick every 1.000 msec
vboxdrv: fAsync=0 offMin=0x261 offMax=0x3ad
hdacc0: <VIA VT1708S_0 HDA CODEC> at cad 0 on hdac0
hdaa0: <VIA VT1708S_0 Audio Function Group> at nid 1 on hdacc0
pcm0: <VIA VT1708S_0 (Analog 2.0+HP/2.0)> at nid 28,29 and 26,30,27 on hdaa0
pcm1: <VIA VT1708S_0 (Digital)> at nid 32 on hdaa0
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
ugen1.1: <nVidia> at usbus1
uhub0: <nVidia EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ugen0.1: <nVidia> at usbus0
uhub1: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ada0 at ata0 bus 0 scbus0 target 1 lun 0
ada0: <SAMSUNG SP2514N VF100-50> ATA-7 device
ada0: 100.000MB/s transfers (UDMA5, PIO 8192bytes)
ada0: 238475MB (488397168 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad1
ada1 at ata2 bus 0 scbus2 target 0 lun 0
ada1: <WDC WD2000JS-22NCB1 10.02E02> ATA-7 SATA 2.x device
ada1: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes)
ada1: 190782MB (390721968 512 byte sectors: 16H 63S/T 16383C)
ada1: Previously was known as ad4
ada2 at ata3 bus 0 scbus3 target 0 lun 0
ada2: <ST3250824AS 3.AAE> ATA-7 SATA 2.x device
ada2: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes)
ada2: 238474MB (488395055 512 byte sectors: 16H 63S/T 16383C)
ada2: Previously was known as ad6
ada3 at ata4 bus 0 scbus4 target 0 lun 0
ada3: <ST31000340NS SN06> ATA-8 SATA 2.x device
ada3: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes)
ada3: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)
ada3: Previously was known as ad8
ada4 at ata5 bus 0 scbus5 target 0 lun 0
ada4: <WDC WD5000AAKS-22TMA0 12.01C01> ATA-7 SATA 2.x device
ada4: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes)
ada4: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C)
ada4: Previously was known as ad10
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!
Timecounter "TSC-low" frequency 1606120771 Hz quality 800
cd0 at ata0 bus 0 scbus0 target 0 lun 0
cd0: <ASUS DRW-1612BL 1.10> Removable CD-ROM SCSI-0 device 
cd0: 66.700MB/s transfers (UDMA4, ATAPI 12bytes, PIO 65534bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
uhub1: 10 ports with 10 removable, self powered
Root mount waiting for: usbus1
Root mount waiting for: usbus1
Root mount waiting for: usbus1
Root mount waiting for: usbus1
uhub0: 10 ports with 10 removable, self powered
Root mount waiting for: usbus1
Trying to mount root from zfs:zroot []...
ugen0.2: <Logitech> at usbus0
ums0: <Logitech USB Optical Mouse, class 0/0, rev 2.00/43.01, addr 2> on usbus0
ums0: 3 buttons and [XYZ] coordinates ID=0
ugen0.3: <Unknown> at usbus0 (disconnected)
GEOM_ELI: Device gpt/swap0.eli created.
GEOM_ELI: Encryption: AES-XTS 256
GEOM_ELI:     Crypto: software
tun0: link state changed to UP

>How-To-Repeat:
Attach USB Flash drive and detach.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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