Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Feb 2012 11:01:14 +0200
From:      Markiyan Kushnir <markiyan.kushnir@gmail.com>
To:        stable@freebsd.org
Subject:   RELENG_8 panic caused by urtw?
Message-ID:  <4F3B745A.4010509@gmail.com>

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

[First seen on RELENG_9,] then (trying to get back to 8) on RELENG_8, 
both csup'ed around Feb. 10.

Now worked around by turning the RTL8187L off in the BIOS.

%uname -a
FreeBSD mkushnir.zapto.org 8.2-STABLE FreeBSD 8.2-STABLE #0: Sat Feb 11 
19:39:29 EET 2012 
root@mkushnir.zapto.org:/usr/obj/usr/RELENG_8/src/sys/MAREK  amd64


Below are the panic info and the full dmesg preceding the panic. Please 
let me know if there is anything more I could provide.

[From my quick source code analysis, it looks like the driver fails to 
recognize the device in if_urtw.c, urtw_get_rfchip(), although later 
proceeds with the attach, which seems not quite logical... Correct 
behavior would probably be to not attach at all.]


crash info:
-----------

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x28
fault code              = supervisor read data, page not present
instruction pointer     = 0x20:0xffffffff803eff25
stack pointer           = 0x28:0xffffff807df08950
frame pointer           = 0x28:0xffffff807df08980
code segment            = base 0x0, limit 0xfffff, type 0x1b
                         = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 14 (usbus3)
trap number             = 12
panic: page fault
cpuid = 0
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
kdb_backtrace() at kdb_backtrace+0x37
panic() at panic+0x187
trap_fatal() at trap_fatal+0x290
trap_pfault() at trap_pfault+0x201
trap() at trap+0x3df
calltrap() at calltrap+0x8
--- trap 0xc, rip = 0xffffffff803eff25, rsp = 0xffffff807df08950, rbp = 
0xffffff807df08980 ---
ifindex_alloc_locked() at ifindex_alloc_locked+0x25
if_alloc() at if_alloc+0x71
urtw_attach() at urtw_attach+0x63e
device_attach() at device_attach+0x69
usb_probe_and_attach() at usb_probe_and_attach+0x1f9
uhub_explore() at uhub_explore+0x4a1
usb_bus_explore() at usb_bus_explore+0xdc
usb_process() at usb_process+0xd5
fork_exit() at fork_exit+0x11f
fork_trampoline() at fork_trampoline+0xe
--- trap 0, rip = 0, rsp = 0xffffff807df08d00, rbp = 0 ---
Uptime: 9s
Dumping 441 out of 8179 MB:..4%..11%..22%..33%..44%..51%..62%..73%..84%..91%





dmesg:
------

Copyright (c) 1992-2012 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.2-STABLE #0: Fri Feb 10 21:45:38 EET 2012
     root@:/usr/obj/usr/src/sys/MAREK amd64
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 Duo CPU     E7500  @ 2.93GHz (2940.01-MHz 
K8-class CPU)
   Origin = "GenuineIntel"  Id = 0x1067a  Family = 6  Model = 17 
Stepping = 10

Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>

Features2=0x408e3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE>
   AMD Features=0x20100800<SYSCALL,NX,LM>
   AMD Features2=0x1<LAHF>
   TSC: P-state invariant
real memory  = 8589934592 (8192 MB)
avail memory = 8261365760 (7878 MB)
ACPI APIC Table: <A_M_I_ OEMAPIC >
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
WARNING: VIMAGE (virtualized network stack) is a highly experimental 
feature.
ioapic0 <Version 2.0> irqs 0-23 on motherboard
ichwd module loaded
kbd1 at kbdmux0
smbios0: <System Management BIOS> at iomem 0xfc360-0xfc37e on motherboard
smbios0: Version: 2.4, BCD Revision: 2.4
acpi0: <A_M_I_ OEMRSDT> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of e0000, 20000 (3) failed
acpi0: reservation of 100000, cff00000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
ACPI Warning: Incorrect checksum in table [OEMB] - 0x7E, should be 0x75 
(20101013/tbutils-354)
cpu1: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0xcc00-0xcc7f mem 
0xfd000000-0xfdffffff,0xd0000000-0xdfffffff,0xfa000000-0xfbffffff irq 16 
at device 0.0 on pci1
uhci0: <Intel 82801I (ICH9) USB controller> port 0xb800-0xb81f irq 16 at 
device 26.0 on pci0
uhci0: [ITHREAD]
uhci0: LegSup = 0x2f00
usbus0: <Intel 82801I (ICH9) USB controller> on uhci0
uhci1: <Intel 82801I (ICH9) USB controller> port 0xb880-0xb89f irq 21 at 
device 26.1 on pci0
uhci1: [ITHREAD]
uhci1: LegSup = 0x2f00
usbus1: <Intel 82801I (ICH9) USB controller> on uhci1
uhci2: <Intel 82801I (ICH9) USB controller> port 0xbc00-0xbc1f irq 18 at 
device 26.2 on pci0
uhci2: [ITHREAD]
uhci2: LegSup = 0x2f00
usbus2: <Intel 82801I (ICH9) USB controller> on uhci2
ehci0: <Intel 82801I (ICH9) USB 2.0 controller> mem 
0xf9fffc00-0xf9ffffff irq 18 at device 26.7 on pci0
ehci0: [ITHREAD]
usbus3: EHCI version 1.0
usbus3: <Intel 82801I (ICH9) USB 2.0 controller> on ehci0
hdac0: <Intel 82801I High Definition Audio Controller> mem 
0xf9ff8000-0xf9ffbfff irq 22 at device 27.0 on pci0
hdac0: HDA Driver Revision: 20100226_0142
hdac0: [ITHREAD]
pcib2: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0
pci3: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 16 at device 28.5 on pci0
pci2: <ACPI PCI bus> on pcib3
mskc0: <Marvell Yukon 88E8056 Gigabit Ethernet> port 0xd800-0xd8ff mem 
0xfeafc000-0xfeafffff irq 17 at device 0.0 on pci2
msk0: <Marvell Technology Group Ltd. Yukon EC Ultra Id 0xb4 Rev 0x03> on 
mskc0
msk0: Ethernet address: 00:1b:fc:6a:d1:42
miibus0: <MII bus> on msk0
e1000phy0: <Marvell 88E1149 Gigabit PHY> PHY 0 on miibus0
e1000phy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 
1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, 
auto-flow
mskc0: [ITHREAD]
uhci3: <Intel 82801I (ICH9) USB controller> port 0xb080-0xb09f irq 23 at 
device 29.0 on pci0
uhci3: [ITHREAD]
uhci3: LegSup = 0x2f00
usbus4: <Intel 82801I (ICH9) USB controller> on uhci3
uhci4: <Intel 82801I (ICH9) USB controller> port 0xb400-0xb41f irq 19 at 
device 29.1 on pci0
uhci4: [ITHREAD]
uhci4: LegSup = 0x2f00
usbus5: <Intel 82801I (ICH9) USB controller> on uhci4
uhci5: <Intel 82801I (ICH9) USB controller> port 0xb480-0xb49f irq 18 at 
device 29.2 on pci0
uhci5: [ITHREAD]
uhci5: LegSup = 0x2f00
usbus6: <Intel 82801I (ICH9) USB controller> on uhci5
ehci1: <Intel 82801I (ICH9) USB 2.0 controller> mem 
0xf9fff800-0xf9fffbff irq 23 at device 29.7 on pci0
ehci1: [ITHREAD]
usbus7: EHCI version 1.0
usbus7: <Intel 82801I (ICH9) USB 2.0 controller> on ehci1
pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci4: <ACPI PCI bus> on pcib4
fwohci0: <VIA Fire II (VT6306)> port 0xec00-0xec7f mem 
0xfebff800-0xfebfffff irq 18 at device 2.0 on pci4
fwohci0: [ITHREAD]
fwohci0: OHCI version 1.10 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:11:06:66:45:55:7c:a3
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
dcons_crom0: <dcons configuration ROM> on firewire0
dcons_crom0: bus_addr 0x155c000
fwohci0: Initiate bus reset
fwohci0: fwohci_intr_core: BUS reset
fwohci0: fwohci_intr_core: node_id=0x00000000, SelfID Count=1, 
CYCLEMASTER mode
fwohci1: <Lucent FW322/323> mem 0xfebfe000-0xfebfefff irq 19 at device 
3.0 on pci4
fwohci1: [ITHREAD]
fwohci1: OHCI version 1.0 (ROM=1)
fwohci1: No. of Isochronous channels is 8.
fwohci1: EUI64 00:11:d8:00:01:4f:cd:f6
fwohci1: Phy 1394a available S400, 2 ports.
fwohci1: Link S400, max_rec 2048 bytes.
firewire1: <IEEE1394(FireWire) bus> on fwohci1
dcons_crom1: <dcons configuration ROM> on firewire1
dcons_crom1: bus_addr 0x155c000
dcons_crom1: dcons_paddr is already set
fwohci1: Initiate bus reset
fwohci1: fwohci_intr_core: BUS reset
fwohci1: fwohci_intr_core: node_id=0x00000000, SelfID Count=1, 
CYCLEMASTER mode
re0: <RealTek 8169SC/8110SC Single-chip Gigabit Ethernet> port 
0xe800-0xe8ff mem 0xfebff400-0xfebff4ff irq 16 at device 4.0 on pci4
re0: Chip rev. 0x18000000
re0: MAC rev. 0x00000000
miibus1: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus1
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
re0: Ethernet address: 00:1b:fc:6a:c5:84
re0: [FILTER]
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
ahci0: <Intel ICH9 AHCI SATA controller> port 
0xac00-0xac07,0xa880-0xa883,0xa800-0xa807,0xa480-0xa483,0xa400-0xa41f 
mem 0xf9ffe800-0xf9ffefff irq 22 at device 31.2 on pci0
ahci0: [ITHREAD]
ahci0: AHCI v1.20 with 6 3Gbps ports, Port Multiplier supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich0: [ITHREAD]
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich1: [ITHREAD]
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich2: [ITHREAD]
ahcich3: <AHCI channel> at channel 3 on ahci0
ahcich3: [ITHREAD]
ahcich4: <AHCI channel> at channel 4 on ahci0
ahcich4: [ITHREAD]
ahcich5: <AHCI channel> at channel 5 on ahci0
ahcich5: [ITHREAD]
ichsmb0: <Intel 82801I (ICH9) SMBus controller> port 0x400-0x41f mem 
0xf9fff400-0xf9fff4ff irq 18 at device 31.3 on pci0
ichsmb0: [ITHREAD]
smbus0: <System Management Bus> on ichsmb0
smb0: <SMBus generic I/O> on smbus0
acpi_button0: <Power Button> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 
on acpi0
fdc0: [FILTER]
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on 
acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: [FILTER]
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]
ichwd0: <Intel ICH9R watchdog timer> on isa0
ichwd0: Intel ICH9R watchdog timer (ICH9 or equivalent)
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: cannot reserve I/O port range
coretemp0: <CPU On-Die Thermal Sensors> on cpu0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
coretemp1: <CPU On-Die Thermal Sensors> on cpu1
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
ZFS filesystem version 5
ZFS storage pool version 28
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert enabled, nat loadable, rule-based 
forwarding disabled, default to deny, logging firewire0: 1 nodes, maxhop 
<= 0 cable IRM irm(0)  (me)
firewire0: bus manager 0
firewire1: 1 nodes, maxhop <= 0 cable IRM irm(0)  (me)
firewire1: bus manager 0
disabled
hdac0: HDA Codec #0: Analog Devices AD1988B
pcm1: <HDA Analog Devices AD1988B PCM #1 Analog> at cad 0 nid 1 on hdac0
pcm2: <HDA Analog Devices AD1988B PCM #2 Digital> at cad 0 nid 1 on hdac0
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 480Mbps High Speed USB v2.0
usbus4: 12Mbps Full Speed USB v1.0
usbus5: 12Mbps Full Speed USB v1.0
usbus6: 12Mbps Full Speed USB v1.0
usbus7: 480Mbps High Speed USB v2.0
ugen0.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 EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
ugen4.1: <Intel> at usbus4
uhub4: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
ugen5.1: <Intel> at usbus5
uhub5: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5
ugen6.1: <Intel> at usbus6
uhub6: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus6
ugen7.1: <Intel> at usbus7
uhub7: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus7
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <ST3250620AS 3.AAC> ATA-7 SATA 1.x device
ada0: 150.000MB/s transfers (SATA 1.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 238475MB (488397168 512 byte sectors: 16H 63S/T 16383C)
ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
ada1: <WDC WD1002FAEX-00Z3A0 05.01D05> ATA-8 SATA 3.x device
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)
cd0 at ahcich4 bus 0 scbus4 target 0 lun 0
cd0: <ASUS DRW-24B3ST 1.00> Removable CD-ROM SCSI-0 device
cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present 
- tray closedSMP: AP CPU #1 Launched!

GEOM: ada0s3: geometry does not match label (255h,63s != 16h,63s).
uhub0: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
uhub6: 2 ports with 2 removable, self powered
uhub4: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub5: 2 ports with 2 removable, self powered
Root mount waiting for: usbus7 usbus3
Root mount waiting for: usbus7 usbus3
uhub3: 6 ports with 6 removable, self powered
uhub7: 6 ports with 6 removable, self powered
Root mount waiting for: usbus7 usbus3
ugen3.2: <vendor 0x0bda> at usbus3
Trying to mount root from ufs:/dev/ada1s1a
Setting hostuuid: a0900011-d800-014f-cdf6-001bfc6ac584.
Setting hostid: 0x86be90f6.
Entropy harvesting:
  interrupts
  ethernet
  point_to_point
  kickstart
.
Starting file system checks:
/dev/ada1s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ada1s1a: clean, 221185 free (1137 frags, 27506 blocks, 0.2% 
fragmentation)
/dev/ada1s1e: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ada1s1e: clean, 491565 free (53 frags, 61439 blocks, 0.0% 
fragmentation)
/dev/ada1s1d: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ada1s1d: clean, 2305691 free (931 frags, 288095 blocks, 0.0% 
fragmentation)
/dev/ada1s1f: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ada1s1f: clean, 306575787 free (215947 frags, 38294980 blocks, 0.0% 
fragmentation)
/dev/ada0s3a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ada0s3a: clean, 11006 free (502 frags, 1313 blocks, 0.2% fragmentation)
/dev/ada0s3f: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ada0s3f: clean, 56793648 free (256080 frags, 7067196 blocks, 0.3% 
fragmentation)
Mounting local file systems:
.
ugen6.2: <vendor 0x04d9> at usbus6
ums0: <vendor 0x04d9 product 0x0499, class 0/0, rev 1.10/2.90, addr 2> 
on usbus6
ums0: 3 buttons and [XYZ] coordinates ID=0
Setting hostname: mkushnir.zapto.org
.
Starting Network: lo0 re0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
         options=3<RXCSUM,TXCSUM>
         inet6 fe80::1%lo0 prefixlen 64 scopeid 0xc
         inet6 ::1 prefixlen 128
         inet 127.0.0.1 netmask 0xff000000
         nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500

options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
         ether 00:1b:fc:6a:c5:84
         inet 10.1.1.10 netmask 0xffffff00 broadcast 10.1.1.255
         media: Ethernet autoselect (none)
         status: no carrier
Starting PPP profile:
  ukrtelecom
.
Additional routing options:
  IP gateway=YES
.
Starting devd.
WARNING: attempt to domain_add(netgraph) after domainfinalize()
urtw0: <vendor 0x0bda product 0x8187, class 0/0, rev 2.00/1.00, addr 2> 
on usbus3
urtw0: unknown RTL8187L type: 0x8000000
Starting ums0 moused
.
Generating host.conf.
Warning: kernel has firewall functionality, but  firewall rules are not 
enabled.
            All ip services are disabled.
Creating and/or trimming log files
.
Starting syslogd.
savecore: reboot after panic: page fault
Feb 10 22:33:21 mkushnir savecore: reboot after panic: page fault
savecore: writing core to vmcore.7
urtw0: rtl8187l rf rtl8225u hwrev none
re0: link state changed to UP


Thanks,

--
Markiyan





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