From owner-freebsd-bugs@FreeBSD.ORG Wed Mar 29 15:00:31 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA35F16A420 for ; Wed, 29 Mar 2006 15:00:31 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F4AB43D4C for ; Wed, 29 Mar 2006 15:00:31 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k2TF0VJK086882 for ; Wed, 29 Mar 2006 15:00:31 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k2TF0Vvj086879; Wed, 29 Mar 2006 15:00:31 GMT (envelope-from gnats) Resent-Date: Wed, 29 Mar 2006 15:00:31 GMT Resent-Message-Id: <200603291500.k2TF0Vvj086879@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gabor MICSKO Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25CFA16A422 for ; Wed, 29 Mar 2006 15:00:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBF4B43D45 for ; Wed, 29 Mar 2006 15:00:05 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k2TF05nU064761 for ; Wed, 29 Mar 2006 15:00:05 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k2TF05di064760; Wed, 29 Mar 2006 15:00:05 GMT (envelope-from nobody) Message-Id: <200603291500.k2TF05di064760@www.freebsd.org> Date: Wed, 29 Mar 2006 15:00:05 GMT From: Gabor MICSKO To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/95077: fatal trap 19 at fwohci_pci_init X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 15:00:32 -0000 >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@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 Features2=0xc1a9,> AMD Features=0x100000 Hyperthreading: 2 logical CPUs real memory = 526909440 (502 MB) avail memory = 506241024 (482 MB) ACPI APIC Table: ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: 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: 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: on acpi0 acpi_throttle0: on cpu0 battery0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_acad0: on acpi0 acpi_lid0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 2.0 (no driver attached) pci0: at device 2.1 (no driver attached) pci0: at device 27.0 (no driver attached) pcib1: irq 17 at device 28.0 on pci0 pci2: on pcib1 pcib2: irq 16 at device 28.1 on pci0 pci3: on pcib2 uhci0: port 0x1820-0x183f irq 23 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] usb0: 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: port 0x1840-0x185f irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] usb1: 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: port 0x1860-0x187f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] usb2: 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: port 0x1880-0x189f irq 16 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] usb3: 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: 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: 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: at device 30.0 on pci0 pci4: on pcib3 cbb0: at device 7.0 on pci4 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 pci4: at device 7.1 (no driver attached) pci4: at device 7.2 (no driver attached) pci4: at device 7.3 (no driver attached) re0: port 0x2000-0x20ff mem 0xd0005c00-0xd0005cff irq 17 at device 11.0 on pci4 miibus0: on re0 rgephy0: on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto re0: Ethernet address: 00:90:f5:4d:15:05 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1810-0x181f at device 31.1 on pci0 ata0: on atapci0 ata1: on atapci0 atapci1: port 0x18d0-0x18d7,0x18c4-0x18c7,0x18c8-0x18cf,0x18c0-0x18c3,0x18b0-0x18bf mem 0xd0444400-0xd04447ff irq 19 at device 31.2 on pci0 ata2: on atapci1 ata3: on atapci1 pci0: at device 31.3 (no driver attached) acpi_tz0: on acpi0 acpi_tz0: _CRT value is absurd, ignored (154.8C) atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 pmtimer0 on isa0 orm0: at iomem 0xce800-0xcf7ff,0xdc000-0xdffff,0xe0000-0xe17ff on isa0 ppc0: parallel port not found. sc0: 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: 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 at ata0-master UDMA33 ad4: 76319MB 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: 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: