Mailing List Archive

www.netbsd.se

FreeBSD


Previous - List - Blog - Next


Subject: kern/140796: panic: privileged instruction fault (ath related)

From: Dalibor Gudzic <dalibor.gudzic (-!-) gmail.com>

Message-id: 200911222228.nAMMSFCT024282 (-!-) www.freebsd.org

Date: 2009-11-22 23:28:15


>Number:         140796
>Category:       kern
>Synopsis:       panic: privileged instruction fault (ath related)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 22 22:30:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Dalibor Gudzic
>Release:        7.2-RELEASE
>Organization:
None
>Environment:
FreeBSD fbsd.dot.org.dot 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #2: Sun Nov 22 \ 
22:42:38 CET 2009     <email removed>:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Upgrade from 7.1-RELEASE to 7.2-RELEASE prevents system from booting. It stops \ 
with message:

..
pcib5:  at device 19.1 on pci0
pci5:   on pcib5
ath0:   mem 0xc9000000-0xc900ffff irq 18 at device 1.0 on pci5
ath0:  [ITHREAD]


Fatal trap 1: privileged instruction fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer             = 0x20:0x3
stack pointer                   = 0x28:0xc1020694
frame pointer                   = 0x28:0xc10206ac
code segment                    = base 0x0, limit 0xfffff, type 0x16
                                = DPL 0, pres 1, def32 1, gran 1
processor eflags                = interupt enabled, resume, IOPL = 0
current process                 = 0 (swapper)
trap number                     = 1
panic: privileged instruction fault
cpuid = 0
Uptime: 1s
Automatic reboot in 15 seconds - press any key on the console to abort



Here is the pciconf -lv|grep -A4 ath

<email removed>:5:1:0: class=0x020000 card=0x2052168c chip=0x001a168c rev=0x01 hdr=0x00
    vendor     = 'Atheros Communications Inc.'
    device     = 'Atheros AR5005G Atheros AR5005G 802.11abg NIC Chipset / \ 
TP-Link (TL-WN551G)'
    class      = network
    subclass   = ethernet


And devinfo -v|grep ath

            ath0 pnpinfo vendor=0x168c device=0x001a subvendor=0x168c \ 
subdevice=0x2052 class=0x020000 at slot=1 function=0


Full dmesg (with ath and ath_hal disabled):

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 7.2-RELEASE-p4 #2: Sun Nov 22 22:42:38 CET 2009
    <email removed>:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Celeron(R) M CPU        430  @ 1.73GHz (1729.01-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6e8  Stepping = 8
  Features=0xafe9fbff
  Features2=0xc109
  AMD Features=0x100000
real memory  = 1541996544 (1470 MB)
avail memory = 1496993792 (1427 MB)
ACPI APIC Table: 
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0  irqs 0-23 on motherboard
ioapic1  irqs 24-47 on motherboard
kbd1 at kbdmux0
acpi0:  on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of f0013000, 1000 (3) failed
acpi0: reservation of 0, a0000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0:  port 0x4008-0x400b on acpi0
acpi_button0:  on acpi0
acpi_lid0:  on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
vgapci0:  mem 0xa0000000-0xbfffffff,0xc8000000-0xc8ffffff irq 16 at device 0.0 \ 
on pci1
pcib2:  irq 27 at device 2.0 on pci0
pci2:  on pcib2
pcib3:  irq 31 at device 3.0 on pci0
pci3:  on pcib3
atapci0:  port 0x60b8-0x60bf,0x60b0-0x60b3,0x6008-0x600f,0x6004-0x6007,0x6010-0x60
1f,0x6400-0x64ff irq 21 at device 15.0 on pci0
atapci0: [ITHREAD]
ata2:  on atapci0
ata2: [ITHREAD]
ata3:  on atapci0
ata3: [ITHREAD]
atapci1:  port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x60a0-0x60af at device 15.1 on
 pci0
ata0:  on atapci1
ata0: [ITHREAD]
ata1:  on atapci1
ata1: [ITHREAD]
uhci0:  port 0x6020-0x603f irq 20 at device 16.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0:  on uhci0
usb0: USB revision 1.0
uhub0:  on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1:  port 0x6040-0x605f irq 22 at device 16.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1:  on uhci1
usb1: USB revision 1.0
uhub1:  on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2:  port 0x6060-0x607f irq 21 at device 16.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2:  on uhci2
usb2: USB revision 1.0
uhub2:  on usb2
uhub2: 2 ports with 2 removable, self powered
uhci3:  port 0x6080-0x609f irq 23 at device 16.3 on pci0
uhci3: [GIANT-LOCKED]
uhci3: [ITHREAD]
usb3:  on uhci3
usb3: USB revision 1.0
uhub3:  on usb3
uhub3: 2 ports with 2 removable, self powered
ehci0:  mem 0xc9400000-0xc94000ff irq 21 at device 16.4 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb4: waiting for BIOS to give up control
usb4: timed out waiting for BIOS
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4:  on ehci0
usb4: USB revision 2.0
uhub4:  on usb4
uhub4: 8 ports with 8 removable, self powered
isab0:  at device 17.0 on pci0
isa0:  on isab0
vr0:  port 0x6800-0x68ff mem 0xc9400400-0xc94004ff irq 23 at device 18.0 on pc
i0
vr0: Quirks: 0x0
vr0: Revision: 0x7c
miibus0:  on vr0
ukphy0:  PHY 1 on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:14:0b:08:64:5b
vr0: [ITHREAD]
pcib4:  at device 19.0 on pci0
pci4:  on pcib4
pci4:  at device 1.0 (no driver attached)
pcib5:  at device 19.1 on pci0
pci5:  on pcib5
pci5:  at device 1.0 (no driver attached)
acpi_acad0:  on acpi0
battery0:  on acpi0
acpi_tz0:  on acpi0
atkbdc0:  port 0x60,0x64 irq 1 on acpi0
atkbd0:  irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0:  irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model GlidePoint, device ID 0
cpu0:  on acpi0
p4tcc0:  on cpu0
pmtimer0 on isa0
sc0:  at flags 0x100 on isa0
sc0: VGA 
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio0: [FILTER]
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0:  at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ums0:  on uhub0
ums0: 3 buttons and Z dir.
Timecounter "TSC" frequency 1729013975 Hz quality 800
Timecounters tick every 1.000 msec
acd0: DVDR  at ata1-master UDMA33
ad4: 57231MB  at ata2-master SATA150
GEOM_LABEL: Label for provider ad4s4 is ext2fs//.
GEOM_LABEL: Label for provider ad4s3a is ufsid/4983b0d90734c73c.
GEOM_LABEL: Label for provider ad4s3d is ufsid/4983b0d90c339716.
GEOM_LABEL: Label for provider ad4s3e is ufsid/4983b0d98e5b221a.
GEOM_LABEL: Label for provider ad4s3f is ufsid/4983b0d95f2235b6.
Trying to mount root from ufs:/dev/ad4s3a
GEOM_LABEL: Label ufsid/4983b0d90734c73c removed.
GEOM_LABEL: Label for provider ad4s3a is ufsid/4983b0d90734c73c.
GEOM_LABEL: Label ufsid/4983b0d95f2235b6 removed.
GEOM_LABEL: Label for provider ad4s3f is ufsid/4983b0d95f2235b6.
GEOM_LABEL: Label ufsid/4983b0d98e5b221a removed.
GEOM_LABEL: Label for provider ad4s3e is ufsid/4983b0d98e5b221a.
GEOM_LABEL: Label ufsid/4983b0d90c339716 removed.
GEOM_LABEL: Label for provider ad4s3d is ufsid/4983b0d90c339716.
GEOM_LABEL: Label ufsid/4983b0d90734c73c removed.
GEOM_LABEL: Label ufsid/4983b0d95f2235b6 removed.
GEOM_LABEL: Label ufsid/4983b0d98e5b221a removed.
GEOM_LABEL: Label ufsid/4983b0d90c339716 removed.
WARNING: attempt to net_add_domain(netgraph) after domainfinalize()
umass0:  on uhub4
da0 at umass-sim0 bus 0 target 0 lun 0
da0:  Removable Direct Access SCSI-2 device 
da0: 40.000MB/s transfers
da0: 984MB (2015232 512 byte sectors: 64H 32S/T 984C)
GEOM_LABEL: Label for provider da0s1 is msdosfs/NO_NAME.
GEOM_LABEL: Label msdosfs/NO_NAME removed.


I have submitted earlier a PR about the non-working ath (yeah, sorry for that \ 
garbage at the end):

http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/116444

Pls tell me if you need more output.
>How-To-Repeat:
Upgrade to 7.2-RELEASE and boot.
>Fix:
For the moment, disabling ath in GENERIC makes the system boot:

# grep ath /usr/src/sys/i386/conf/GENERIC

#device         ath             # Atheros pci/cardbus NIC's
#device         ath_hal         # Atheros HAL (Hardware Access Layer)
#device         ath_rate_sample # SampleRate tx rate control for ath


>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-<email removed> mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-<email removed>"