kern/95077: fatal trap 19 at fwohci_pci_init

Gabor MICSKO gmicsko at szintezis.hu
Wed Mar 29 15:00:32 UTC 2006


>Number:         95077
>Category:       kern
>Synopsis:       fatal trap 19 at fwohci_pci_init
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 29 15:00:30 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Gabor MICSKO
>Release:        FreeBSD 6.1 beta 4
>Organization:
Hungarian Unix Portal
>Environment:
Copyright (c) 1992-2006 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 6.1-BETA4 #1: Mon Mar 27 17:14:54 CEST 2006
    root at trey03.trey.hu:/usr/obj/usr/src/sys/COREDUO
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Genuine Intel(R) CPU           T2600  @ 2.16GHz (2161.27-MHz
686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6e8  Stepping = 8

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=0xc1a9<SSE3,MON,VMX,EST,TM2,<b14>,<b15>>
  AMD Features=0x100000<NX>
  Hyperthreading: 2 logical CPUs
real memory  = 526909440 (502 MB)
avail memory = 506241024 (482 MB)
ACPI APIC Table: <INTEL  CALISTGA>
ioapic0: Changing APIC ID to 1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <PTLTD Capell00> on motherboard
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi0: Power Button (fixed)
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_ec0: <Embedded Controller: GPE 0x17> port 0x62,0x66 on acpi0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
battery0: <ACPI Control Method Battery> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
acpi_acad0: <AC Adapter> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <display, VGA> at device 2.0 (no driver attached)
pci0: <display> at device 2.1 (no driver attached)
pci0: <multimedia> at device 27.0 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0
pci2: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.1 on pci0
pci3: <ACPI PCI bus> on pcib2
uhci0: <UHCI (generic) USB controller> port 0x1820-0x183f irq 23 at
device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <UHCI (generic) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <UHCI (generic) USB controller> port 0x1840-0x185f irq 19 at
device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <UHCI (generic) USB controller> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <UHCI (generic) USB controller> port 0x1860-0x187f irq 18 at
device 29.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <UHCI (generic) USB controller> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <UHCI (generic) USB controller> port 0x1880-0x189f irq 16 at
device 29.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <UHCI (generic) USB controller> on uhci3
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem
0xd0444000-0xd04443ff irq 23 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ugen0: vendor 0x0402 USB2.0 Camera, rev 2.00/1.00, addr 2
pcib3: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci4: <ACPI PCI bus> on pcib3
cbb0: <PCI-CardBus Bridge> at device 7.0 on pci4
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
pci4: <serial bus, FireWire> at device 7.1 (no driver attached)
pci4: <mass storage> at device 7.2 (no driver attached)
pci4: <base peripheral> at device 7.3 (no driver attached)
re0: <RealTek 8169SB Single-chip Gigabit Ethernet> port 0x2000-0x20ff
mem 0xd0005c00-0xd0005cff irq 17 at device 11.0 on pci4
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S media interface> on miibus0
rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX,
1000baseTX-FDX, auto
re0: Ethernet address: 00:90:f5:4d:15:05
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
ata1: <ATA channel 1> on atapci0
atapci1: <Intel ICH7 SATA300 controller> port
0x18d0-0x18d7,0x18c4-0x18c7,0x18c8-0x18cf,0x18c0-0x18c3,0x18b0-0x18bf
mem 0xd0444400-0xd04447ff irq 19 at device 31.2 on pci0
ata2: <ATA channel 0> on atapci1
ata3: <ATA channel 1> on atapci1
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
acpi_tz0: _CRT value is absurd, ignored (154.8C)
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem
0xce800-0xcf7ff,0xdc000-0xdffff,0xe0000-0xe17ff on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
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
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
Timecounter "TSC" frequency 2161269669 Hz quality 800
Timecounters tick every 1.000 msec
acpi_tz0: _CRT value is absurd, ignored (154.8C)
cpu0: Cx states changed
acd0: DVDR <PHILIPS DVD+/-RW SDVD8441/PV32> at ata0-master UDMA33
ad4: 76319MB <HTS541080G9SA00 MB4OC60D> at ata2-master SATA150
Trying to mount root from ufs:/dev/ad4s1a
cpu0: Cx states changed
cpu0: Cx states changed
re0: link state changed to UP
acpi_tz0: _CRT value is absurd, ignored (154.8C)
acpi_tz0: _CRT value is absurd, ignored (154.8C)
cpu0: Cx states changed
cpu0: Cx states changed
umass0: USB Solid state disk, rev 1.10/1.00, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <TwinMOS MOBILE DISK 1.11> Removable Direct Access SCSI-2 device 
da0: 1.000MB/s transfers
da0: 31MB (64512 512 byte sectors: 64H 32S/T 31C)
>Description:
The theory here is that the device may not be properly initializing its on-chip memory, leaving some of it in a parity errored state, and enabling parity check may result in the device blowing up.

Error message:
http://hup.hu/old/images/trey/work/clevo_core_duo/S3600052.JPG
>How-To-Repeat:
Boot with unpatched kernel. 
>Fix:
Relevant threads:

http://marc.theaimsgroup.com/?l=dragonfly-kernel&m=109967161431080&w=2

See this commit:

http://www.dragonflybsd.org/cvsweb/src/sys/bus/firewire/fwohci_pci.c?rev=1.16&content-type=text/x-cvsweb-markup

Or:

--- fwohci_pci.c.orig   Mon Mar 27 22:11:47 2006
+++ fwohci_pci.c        Mon Mar 27 22:36:47 2006
@@ -240,13 +240,23 @@
        int olatency, latency, ocache_line, cache_line;
        uint16_t cmd;

+       /*
+        * Clear PCIM_CMD_MWRICEN as per FreeBSD/1.20, but note that the
+        * problem may have been related to SERR and PERR being
+        * unconditionally enabled in that rev.
+        *
+        * Do not change the SERRESPEN or PERRESPEN bits.  Use the BIOS
+        * values (probably off).  This crashes some machines in
fwohci_init().
+        *
+        * The theory here is that the device may not be properly
initializing
+        * its on-chip memory, leaving some of it in a parity errored
state,
+        * and enabling parity check may result in the device blowing
up.
+        * It's also possible that some hardware is just plain broken.
OpenBSD
+        * does not turn on SERRESPEN or PERRESPEN so we won't either.
+        */
        cmd = pci_read_config(self, PCIR_COMMAND, 2);
-       cmd |= PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN | PCIM_CMD_MWRICEN
|
-               PCIM_CMD_SERRESPEN | PCIM_CMD_PERRESPEN;
-#if 1  /* for broken hardware */
+       cmd |= PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN;
        cmd &= ~PCIM_CMD_MWRICEN;
-       cmd &= ~(PCIM_CMD_SERRESPEN | PCIM_CMD_PERRESPEN);
-#endif
        pci_write_config(self, PCIR_COMMAND, cmd, 2);

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


More information about the freebsd-bugs mailing list