Bug 135206 - machine reboots when inserted USB device
Summary: machine reboots when inserted USB device
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-03 12:10 UTC by TOGAWA Satoshi
Modified: 2018-02-18 07:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TOGAWA Satoshi 2009-06-03 12:10:00 UTC
When I insert USB device on DELL Inspiron mini 9, machine hangs up and reboot.
I can see this with USB reader/writer of microSD and modem card.

dmesg is here (after reboot with USB memory):
----
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-CURRENT #22: Sun May 31 23:11:59 JST 2009
    togawa@nayuki.vegalta.org:/usr/obj/usr/src/sys/NAYUKI
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Atom(TM) CPU N270   @ 1.60GHz (1596.02-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x106c2  Stepping = 2
  Features=0xbfe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x40c39d<SSE3,DTES64,MON,DS_CPL,EST,TM2,SSSE3,xTPR,PDCM,<b22>>
  AMD Features=0x100000<NX>
  AMD Features2=0x1<LAHF>
  TSC: P-state invariant
real memory  = 2147483648 (2048 MB)
avail memory = 2076233728 (1980 MB)
ACPI APIC Table: <INTEL  CALISTGA>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 1 core(s) x 2 HTT threads
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP/HT): APIC ID:  1
This module (opensolaris) contains code covered by the
Common Development and Distribution License (CDDL)
see http://opensolaris.org/os/licensing/opensolaris_license/
ioapic0: Changing APIC ID to 1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <PTLTD    XSDT> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x19> port 0x62,0x66 on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0x1800-0x1807 mem 0xf0000000-0xf007ffff,0xd0000000-0xdfffffff,0xf0300000-0xf033ffff irq 16 at device 2.0 on pci0
agp0: <Intel 945GME SVGA controller> on vgapci0
agp0: detected 7932k stolen memory
agp0: aperture size is 256M
vgapci1: <VGA-compatible display> mem 0xf0080000-0xf00fffff at device 2.1 on pci0
hdac0: <Intel 82801G High Definition Audio Controller> mem 0xf0540000-0xf0543fff irq 22 at device 27.0 on pci0
hdac0: HDA Driver Revision: 20090401_0132
hdac0: [ITHREAD]
pcib1: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0
pci2: <ACPI PCI bus> on pcib1
pci2: <base peripheral> at device 0.0 (no driver attached)
sdhci0: <JMicron JMB38X SD> mem 0xf0100400-0xf01004ff irq 16 at device 0.2 on pci2
sdhci0: 1 slot(s) allocated
sdhci0: [ITHREAD]
mmc0: <MMC/SD bus> on sdhci0
pci2: <base peripheral> at device 0.3 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.1 on pci0
pci3: <ACPI PCI bus> on pcib2
iwn0: <Intel(R) PRO/Wireless 4965BGN> mem 0xf0200000-0xf0201fff irq 17 at device 0.0 on pci3
iwn0: Reg Domain: JPN, address 00:1f:3b:66:15:dd
iwn0: [ITHREAD]
iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
iwn0: 11na MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps
iwn0: 11ng MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps
pcib3: <ACPI PCI-PCI bridge> irq 18 at device 28.2 on pci0
pci4: <ACPI PCI bus> on pcib3
re0: <RealTek 8101E/8102E/8102EL PCIe 10/100baseTX> port 0x2000-0x20ff mem 0xf0610000-0xf0610fff,0xf0600000-0xf060ffff irq 18 at device 0.0 on pci4
re0: Using 1 MSI messages
re0: Chip rev. 0x24800000
re0: MAC rev. 0x00000000
miibus0: <MII bus> on re0
rlphy0: <RTL8201L 10/100 media interface> PHY 1 on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
re0: Ethernet address: 00:21:70:d5:9e:9d
re0: [FILTER]
uhci0: <UHCI (generic) USB controller> port 0x1820-0x183f irq 23 at device 29.0 on pci0
uhci0: [ITHREAD]
uhci0: LegSup = 0x003b
usbus0: <UHCI (generic) USB controller> on uhci0
uhci1: <UHCI (generic) USB controller> port 0x1840-0x185f irq 19 at device 29.1 on pci0
uhci1: [ITHREAD]
uhci1: LegSup = 0x0010
usbus1: <UHCI (generic) USB controller> on uhci1
uhci2: <UHCI (generic) USB controller> port 0x1860-0x187f irq 18 at device 29.2 on pci0
uhci2: [ITHREAD]
uhci2: LegSup = 0x0010
usbus2: <UHCI (generic) USB controller> on uhci2
uhci3: <UHCI (generic) USB controller> port 0x1880-0x189f irq 16 at device 29.3 on pci0
uhci3: [ITHREAD]
uhci3: LegSup = 0x0010
usbus3: <UHCI (generic) USB controller> on uhci3
ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem 0xf0544000-0xf05443ff irq 23 at device 29.7 on pci0
ehci0: [ITHREAD]
usbus4: EHCI version 1.0
usbus4: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci5: <ACPI PCI bus> on pcib4
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH7 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1810-0x181f at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
acpi_acad0: <AC Adapter> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x77 irq 8 on acpi0
atrtc0: Warning: Couldn't map I/O.
battery0: <ACPI Control Method Battery> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model Generic PS/2 mouse, device ID 0
cpu0: <ACPI CPU> on acpi0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
cpu1: <ACPI CPU> on acpi0
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xcf000-0xcffff,0xe0000-0xe17ff pnpid ORM0000 on isa0
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
ppc0: parallel port not found.
WARNING: ZFS is considered to be an experimental feature in FreeBSD.
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: 480Mbps High Speed USB v2.0
ZFS filesystem version 13
ZFS storage pool version 13
ad0: FAILURE - SETFEATURES ENABLE RCACHE status=51<READY,DSC,ERROR> error=1<ILLugen0.1: <Intel> at usbus0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <Intel> at usbus2
uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
ugen3.1: <Intel> at usbus3
uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ugen4.1: <Intel> at usbus4
uhub4: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus4
EGAL_LENGTH>
ad0: 29389MB <STEC PATA 32GB D5221-10> at ata0-master UDMA100
hdac0: HDA Codec #0: Realtek ALC268
pcm0: <HDA Realtek ALC268 PCM #0 Analog> at cad 0 nid 1 on hdac0
pcm1: <HDA Realtek ALC268 PCM #1 Analog> at cad 0 nid 1 on hdac0
GEOM_LABEL: Label for provider ad0s1a is ufsid/496440b894f6de1c.
mmcsd0: 3781MB <SDHC Memory Card> at mmc0 25MHz/4bit
SMP: AP CPU #1 Launched!
GEOM: mmcsd0: partition 1 does not start on a track boundary.
GEOM: mmcsd0: partition 1 does not end on a track boundary.
GEOM_LABEL: Label for provider mmcsd0s1 is msdosfs/\M^C{\M^C\M^J\M^C\M^E\M^A[\M^C\M^@.
Root mount waiting for: usbus4 usbus3 usbus2 usbus1 usbus0
uhub1: 2 ports with 2 removable, self powered
uhub0: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
uhub3: 2 ports with 2 removable, self powered
Root mount waiting for: usbus4
Root mount waiting for: usbus4
Root mount waiting for: usbus4
uhub4: 8 ports with 8 removable, self powered
Root mount waiting for: usbus4
ugen4.2: <Genesys> at usbus4
umass0: <Genesys USB Reader, class 0/0, rev 2.00/94.04, addr 2> on usbus4
umass0:  SCSI over Bulk-Only; quirks = 0x0000
Root mount waiting for: usbus4
ugen3.2: <Broadcom Corp> at usbus3
ubt0: <Broadcom Corp BCM92045NMD, class 224/1, rev 2.00/1.00, addr 2> on usbus3
umass0:0:0:-1: Attached to scbus0
Trying to mount root from zfs:tank/root
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
(probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
(probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Generic STORAGE DEVICE 9404> Removable Direct Access SCSI-0 device 
da0: 40.000MB/s transfers
da0: 1947MB (3987456 512 byte sectors: 255H 63S/T 248C)
GEOM: da0: partition 1 does not start on a track boundary.
GEOM: da0: partition 1 does not end on a track boundary.
GEOM_LABEL: Label for provider da0s1 is msdosfs/WX340K.
GEOM_LABEL: Label ufsid/496440b894f6de1c removed.
GEOM_LABEL: Label for provider ad0s1a is ufsid/496440b894f6de1c.
GEOM_LABEL: Label ufsid/496440b894f6de1c removed.
wlan0: Ethernet address: 00:1f:3b:66:15:dd
WARNING: attempt to net_add_domain(bluetooth) after domainfinalize()
WARNING: attempt to net_add_domain(netgraph) after domainfinalize()
GEOM_LABEL: Label for provider md0 is ufsid/4a265751b1244b1f.
GEOM_LABEL: Label ufsid/4a265751b1244b1f removed.
link_elf: symbol kern_socketpair undefined
fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8
link_elf: symbol kern_socketpair undefined
KLD linprocfs.ko: depends on linux - not available
drm0: <Intel i945GME> on vgapci0
vgapci0: child drm0 requested pci_enable_busmaster
info: [drm] AGP at 0xd0000000 256MB
info: [drm] Initialized i915 1.6.0 20080730
drm0: [ITHREAD]

How-To-Repeat: Inserting USB device.
Comment 1 Hans Petter Selasky 2009-06-03 12:27:52 UTC
On Wednesday 03 June 2009, Satoshi Togawa wrote:
> >Number:         135206
> >Category:       usb
> >Synopsis:       machine reboots when inserted USB device
> >Confidential:   no
> >Severity:       non-critical
> >Priority:       low
> >Responsible:    freebsd-usb
> >State:          open
> >Quarter:
> >Keywords:
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Wed Jun 03 11:10:00 UTC 2009
> >Closed-Date:
> >Last-Modified:
> >Originator:     Satoshi Togawa
> >Release:        8-current
> >Organization:
> >Environment:
>
> FreeBSD nayuki.vegalta.org 8.0-CURRENT FreeBSD 8.0-CURRENT #22: Sun May 31
> 23:11:59 JST 2009     togawa@nayuki.vegalta.org:/usr/obj/usr/src/sys/NAYUKI
>  i386
>
> >Description:
>
> When I insert USB device on DELL Inspiron mini 9, machine hangs up and
> reboot. I can see this with USB reader/writer of microSD and modem card.
>

Do you have any old modules in /boot/modules ?

--HPS
Comment 2 TOGAWA Satoshi 2009-06-03 12:33:28 UTC
On Wed, 3 Jun 2009 13:27:52 +0200
Hans Petter Selasky <hselasky@c2i.net> wrote:

> On Wednesday 03 June 2009, Satoshi Togawa wrote:
> > >Number:         135206
> > >Category:       usb
> > >Synopsis:       machine reboots when inserted USB device
> > >Confidential:   no
> > >Severity:       non-critical
> > >Priority:       low
> > >Responsible:    freebsd-usb
> > >State:          open
> > >Quarter:
> > >Keywords:
> > >Date-Required:
> > >Class:          sw-bug
> > >Submitter-Id:   current-users
> > >Arrival-Date:   Wed Jun 03 11:10:00 UTC 2009
> > >Closed-Date:
> > >Last-Modified:
> > >Originator:     Satoshi Togawa
> > >Release:        8-current
> > >Organization:
> > >Environment:
> >
> > FreeBSD nayuki.vegalta.org 8.0-CURRENT FreeBSD 8.0-CURRENT #22: Sun May 31
> > 23:11:59 JST 2009     togawa@nayuki.vegalta.org:/usr/obj/usr/src/sys/NAYUKI
> >  i386
> >
> > >Description:
> >
> > When I insert USB device on DELL Inspiron mini 9, machine hangs up and
> > reboot. I can see this with USB reader/writer of microSD and modem card.
> >
> 
> Do you have any old modules in /boot/modules ?
> 
> --HPS
> 
> 

My /boot/modules is empty and there isn't directory /boot/kernel.old .

-- 
toga@puyo.org
Comment 3 Volker 2009-06-04 19:46:45 UTC
On 12/23/-58 20:59, TOGAWA Satoshi wrote:
> On Wed, 3 Jun 2009 13:27:52 +0200
> Hans Petter Selasky <hselasky@c2i.net> wrote:
> 
>> On Wednesday 03 June 2009, Satoshi Togawa wrote:
>>>> Number:         135206
>>>> Category:       usb
>>>> Synopsis:       machine reboots when inserted USB device
>>>> Confidential:   no
>>>> Severity:       non-critical
>>>> Priority:       low
>>>> Responsible:    freebsd-usb
>>>> State:          open
>>>> Quarter:
>>>> Keywords:
>>>> Date-Required:
>>>> Class:          sw-bug
>>>> Submitter-Id:   current-users
>>>> Arrival-Date:   Wed Jun 03 11:10:00 UTC 2009
>>>> Closed-Date:
>>>> Last-Modified:
>>>> Originator:     Satoshi Togawa
>>>> Release:        8-current
>>>> Organization:
>>>> Environment:
>>> FreeBSD nayuki.vegalta.org 8.0-CURRENT FreeBSD 8.0-CURRENT #22: Sun May 31
>>> 23:11:59 JST 2009     togawa@nayuki.vegalta.org:/usr/obj/usr/src/sys/NAYUKI
>>>  i386
>>>
>>>> Description:
>>> When I insert USB device on DELL Inspiron mini 9, machine hangs up and
>>> reboot. I can see this with USB reader/writer of microSD and modem card.
>>>
>> Do you have any old modules in /boot/modules ?
>>
>> --HPS
>>
>>
> 
> My /boot/modules is empty and there isn't directory /boot/kernel.old .
> 

Togawa,

at first, it may eventually make sense to see a kernel panic backtrace -
without that, it's guesswork (tm). Can you show us your kernel config?
But please try to sync your binaries (kernel + kld's + world) first.

Not related to your problem, you should fix your thumb drive / sdhc
module slices and fix filesystem labels.

Volker
Comment 4 chris 2011-01-30 21:22:13 UTC
For whats it's worth my Vostro 420MT is useless on FreeBSD, I can only 
use it 45 mins at a time until it freezes, I have determined that it is 
due to ACPI trickery.

Could be why your PC reboots when inserting a USB device.
Comment 5 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:16 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped