From owner-freebsd-sparc64@FreeBSD.ORG Sat Mar 20 00:00:18 2010 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5C091065672 for ; Sat, 20 Mar 2010 00:00:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AA1FA8FC1C for ; Sat, 20 Mar 2010 00:00:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2K00HdB052054 for ; Sat, 20 Mar 2010 00:00:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2K00H6Q052053; Sat, 20 Mar 2010 00:00:17 GMT (envelope-from gnats) Date: Sat, 20 Mar 2010 00:00:17 GMT Message-Id: <201003200000.o2K00H6Q052053@freefall.freebsd.org> To: freebsd-sparc64@FreeBSD.org From: Rob Farmer Cc: Subject: Re: sparc64/144867: panic: trap: memory address not aligned booting Sunfire 280R X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rob Farmer List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2010 00:00:18 -0000 The following reply was made to PR sparc64/144867; it has been noted by GNATS. From: Rob Farmer To: Marius Strobl , bug-followup@freebsd.org Cc: Subject: Re: sparc64/144867: panic: trap: memory address not aligned booting Sunfire 280R Date: Fri, 19 Mar 2010 16:55:02 -0700 On Fri, Mar 19, 2010 at 3:06 PM, Marius Strobl wrote: > On Fri, Mar 19, 2010 at 02:51:52AM +0000, Rob Farmer wrote: >> db> bt >> Tracing pid 0 tid 100000 td 0xc0a40730 >> panic() at panic+0x20c >> trap() at trap+0x570 >> -- memory address not aligned sfar=3D0x7fe00200001 sfsr=3D0x1d007d %o7= =3D0xc0175864 -- >> cas_pci_attach() at cas_pci_attach+0xc80 > > Hrm, this doesn't make a whole lot of sense: > (gdb) l *0xc0175864 > 0xc0175864 is in cas_pci_attach (/usr/src/sys/dev/cas/if_cas.c:356). > 351 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 switch (sc->sc_variant) { > 352 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 default: > 353 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 sc->sc_phyad = =3D -1; > 354 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 break; > 355 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 } > 356 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 error =3D mii_phy_probe(sc->s= c_dev, &sc->sc_miibus, > 357 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 cas_mediachange, cas_= mediastatus); > 358 =A0 =A0 =A0 =A0 =A0 =A0 } > 359 > 360 =A0 =A0 =A0 =A0 =A0 =A0 /* > > Except maybe that this is triggered by the bus_space_write_4() above > that, which is cas_pci_attach+0xc80, and somehow delayed. Is this the > MMF (multimode fibre) model of the GigaSwift Ethernet 1.0 card perhaps? > Can you boot with that card removed? Hi, thanks for the quick response. Yes, its the MMF card. There are two of them, actually. I don't need them in my environment so I took them out and it booted from the cd. However, I did a standard install in sysinstall and now I get a new panic trying to boot from the hard drive: GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2010 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 9.0-CURRENT-201002 #0: Sat Feb 13 04:56:40 UTC 2010 root@heller.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC sparc64 WARNING: WITNESS option enabled, expect reduced performance. real memory =3D 8589934592 (8192 MB) avail memory =3D 8381644800 (7993 MB) cpu0: Sun Microsystems UltraSparc-III+ Processor (1200.00 MHz CPU) cpu1: Sun Microsystems UltraSparc-III+ Processor (1200.00 MHz CPU) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware kbd0 at kbdmux0 nexus0: nexus0: mem 0x40000400000-0x40000400047 type memory-controller (no driver attached) nexus0: mem 0x40000c00000-0x40000c00047 type memory-controller (no driver attached) pcib0: mem 0x40004700000-0x40004717fff,0x40004410000-0x4000441004f,0x7ffee000000-0x7ff= ee0000ff irq 563,560,561,564,550 on nexus0 pcib0: Schizo, version 7, IGN 0x8, bus B, 33MHz pcib0: DVMA map: 0xc0000000 to 0xffffffff 131072 entries, streaming buffer pcib0: [FILTER] pcib0: [FILTER] pcib0: [FILTER] pcib0: [FILTER] pcib0: [FILTER] pci0: on pcib0 ebus0: mem 0x7d000000-0x7dffffff,0x7e000000-0x7e7fffff at device 5.0 on pci0 ebus0: addr 0-0x1fffff (no driver attached) ebus0: addr 0x10000002e-0x10000002f,0x10000002d irq 35 (no driver attached) ebus0: addr 0x100000000-0x1000fffff (no driver attached) ebus0: addr 0x10030002e-0x10030002f,0x100300600-0x100300607 (no driver attached) ebus0: addr 0x100000030-0x100000031 irq 35 (no driver attached) ebus0: addr 0x100000032-0x100000037 (no driver attached) rtc0: addr 0x100300070-0x100300071 irq 36 on ebus0 ebus0: addr 0x100300600-0x100300607 (no driver attached) ebus0: addr 0x100300700-0x100300701 (no driver attached) ebus0: addr 0x100300278-0x100300287,0x10030002e-0x10030002f,0x100700000-0x10070000f irq 28 (no driver attached) uart0: <16550 or compatible> addr 0x1003062f8-0x1003062ff irq 46 on ebus0 uart0: [FILTER] uart1: <16550 or compatible> addr 0x1003083f8-0x1003083ff irq 45 on ebus0 uart1: [FILTER] scc0: addr 0x100400000-0x10040007f irq 34 on ebus0 scc0: [FILTER] uart2: on scc0 uart2: [FILTER] uart2: CTS oflow uart2: console (9600,n,8,1) uart3: on scc0 uart3: [FILTER] uart3: CTS oflow gem0: mem 0x100000-0x11ffff at device 5.1 on pci0 miibus0: on gem0 ukphy0: PHY 1 on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto gem0: 2kB RX FIFO, 2kB TX FIFO gem0: Ethernet address: 00:03:ba:3a:0f:f2 gem0: [ITHREAD] ohci0: mem 0x1000000-0x1007fff at device 5.3 on= pci0 ohci0: [ITHREAD] usbus0: on ohci0 sym0: <875> port 0x300-0x3ff mem 0x124000-0x1240ff,0x126000-0x126fff at device 6.0 on pci0 sym0: No NVRAM, ID 7, Fast-20, SE, parity checking sym0: [ITHREAD] sym1: <875> port 0x400-0x4ff mem 0x128000-0x1280ff,0x12a000-0x12afff at device 6.1 on pci0 sym1: No NVRAM, ID 7, Fast-20, SE, parity checking sym1: [ITHREAD] pcib1: mem 0x40004600000-0x40004617fff,0x40004410000-0x4000441004f,0x7ffec000000-0x7ff= ec0000ff irq 562,560,561,564 on nexus0 pcib1: Schizo, version 7, IGN 0x8, bus A, 66MHz Timecounter "pcib1" frequency 150000000 Hz quality 100 pcib1: DVMA map: 0xc0000000 to 0xffffffff 131072 entries, streaming buffer panic: pcib: PCI bus A error AFAR 0x1000c0 AFSR 0x320000000 PCI CSR 0x60002010f003f IOMMU 0x70003 STATUS 0x2a0 cpuid =3D 0 KDB: enter: panic [ thread pid 0 tid 100000 ] Stopped at kdb_enter+0x80: ta %xcc, 1 db> bt Tracing pid 0 tid 100000 td 0xc0a40730 panic() at panic+0x20c schizo_pci_bus() at schizo_pci_bus+0x1b8 intr_event_handle() at intr_event_handle+0x5c intr_execute_handlers() at intr_execute_handlers+0x8 intr_fast() at intr_fast+0x68 -- interrupt level=3D0xd pil=3D0 %o7=3D0xc041be8c -- strlen() at strlen vprintf() at vprintf+0x7c printf() at printf+0x20 device_print_prettyname() at device_print_prettyname+0x60 device_printf() at device_printf+0x14 bus_setup_intr() at bus_setup_intr+0x12c schizo_set_intr() at schizo_set_intr+0xd4 schizo_attach() at schizo_attach+0xff4 device_attach() at device_attach+0x4a4 device_probe_and_attach() at device_probe_and_attach+0x64 bus_generic_new_pass() at bus_generic_new_pass+0x11c bus_generic_new_pass() at bus_generic_new_pass+0x104 bus_set_pass() at bus_set_pass+0xf8 root_bus_configure() at root_bus_configure+0x8 configure() at configure+0x4 mi_startup() at mi_startup+0x18c btext() at btext+0x30 db> --=20 Rob Farmer > > Marius > >