From owner-freebsd-alpha@FreeBSD.ORG Sun Dec 25 21:40:59 2005 Return-Path: X-Original-To: alpha@freebsd.org Delivered-To: freebsd-alpha@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDD1116A422; Sun, 25 Dec 2005 21:40:59 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B55E43D6B; Sun, 25 Dec 2005 21:40:53 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.4/8.13.4) with ESMTP id jBPLeoah010302; Sun, 25 Dec 2005 16:40:50 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.3/8.13.3) with ESMTP id jBPLeoaX016306; Sun, 25 Dec 2005 16:40:50 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id D66B57302F; Sun, 25 Dec 2005 16:40:49 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20051225214049.D66B57302F@freebsd-current.sentex.ca> Date: Sun, 25 Dec 2005 16:40:49 -0500 (EST) X-Virus-Scanned: ClamAV version 0.85.1, clamav-milter version 0.85 on clamscanner4 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.51 on 64.7.153.18 Cc: Subject: [releng_6 tinderbox] failure on alpha/alpha X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2005 21:41:00 -0000 TB --- 2005-12-25 20:36:18 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-12-25 20:36:18 - starting RELENG_6 tinderbox run for alpha/alpha TB --- 2005-12-25 20:36:18 - cleaning the object tree TB --- 2005-12-25 20:36:49 - checking out the source tree TB --- 2005-12-25 20:36:49 - cd /tinderbox/RELENG_6/alpha/alpha TB --- 2005-12-25 20:36:49 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -rRELENG_6 src TB --- 2005-12-25 20:45:43 - building world (CFLAGS=-O -pipe) TB --- 2005-12-25 20:45:43 - cd /src TB --- 2005-12-25 20:45:43 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything TB --- 2005-12-25 21:33:58 - generating LINT kernel config TB --- 2005-12-25 21:33:58 - cd /src/sys/alpha/conf TB --- 2005-12-25 21:33:58 - /usr/bin/make -B LINT TB --- 2005-12-25 21:33:58 - building LINT kernel (COPTFLAGS=-O -pipe) TB --- 2005-12-25 21:33:58 - cd /src TB --- 2005-12-25 21:33:58 - /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Sun Dec 25 21:33:59 UTC 2005 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -O -pipe -mcpu=ev4 -mtune=ev5 -mieee -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ipfilter -I/src/sys/contrib/pf -I/src/sys/contrib/dev/ath -I/src/sys/contrib/dev/ath/freebsd -I/src/sys/contrib/ngatm -I/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mno-fp-regs -ffixed-8 -Wa,-mev6 -ffreestanding -Werror /src/sys/netinet/if_atm.c cc -c -O -pipe -mcpu=ev4 -mtune=ev5 -mieee -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ipfilter -I/src/sys/contrib/pf -I/src/sys/contrib/dev/ath -I/src/sys/contrib/dev/ath/freebsd -I/src/sys/contrib/ngatm -I/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mno-fp-regs -ffixed-8 -Wa,-mev6 -ffreestanding -Werror /src/sys/netinet/if_ether.c cc -c -O -pipe -mcpu=ev4 -mtune=ev5 -mieee -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ipfilter -I/src/sys/contrib/pf -I/src/sys/contrib/dev/ath -I/src/sys/contrib/dev/ath/freebsd -I/src/sys/contrib/ngatm -I/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mno-fp-regs -ffixed-8 -Wa,-mev6 -ffreestanding -Werror /src/sys/netinet/igmp.c cc -c -O -pipe -mcpu=ev4 -mtune=ev5 -mieee -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ipfilter -I/src/sys/contrib/pf -I/src/sys/contrib/dev/ath -I/src/sys/contrib/dev/ath/freebsd -I/src/sys/contrib/ngatm -I/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mno-fp-regs -ffixed-8 -Wa,-mev6 -ffreestanding -Werror /src/sys/netinet/in.c cc -c -O -pipe -mcpu=ev4 -mtune=ev5 -mieee -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ipfilter -I/src/sys/contrib/pf -I/src/sys/contrib/dev/ath -I/src/sys/contrib/dev/ath/freebsd -I/src/sys/contrib/ngatm -I/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mno-fp-regs -ffixed-8 -Wa,-mev6 -ffreestanding -Werror /src/sys/netinet/ip_carp.c /src/sys/netinet/ip_carp.c: In function `carp_set_addr6': /src/sys/netinet/ip_carp.c:1600: error: too few arguments to function `in6_joingroup' /src/sys/netinet/ip_carp.c:1613: error: too few arguments to function `in6_joingroup' *** Error code 1 Stop in /obj/alpha/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2005-12-25 21:40:49 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-12-25 21:40:49 - ERROR: failed to build lint kernel TB --- 2005-12-25 21:40:49 - tinderbox aborted TB --- 1.05 user 4.73 system 3871.06 real From owner-freebsd-alpha@FreeBSD.ORG Mon Dec 26 11:02:07 2005 Return-Path: X-Original-To: freebsd-alpha@freebsd.org Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F146516A420 for ; Mon, 26 Dec 2005 11:02:07 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B19A43D49 for ; Mon, 26 Dec 2005 11:02:07 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id jBQB27JU017985 for ; Mon, 26 Dec 2005 11:02:07 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id jBQB25ql017979 for freebsd-alpha@freebsd.org; Mon, 26 Dec 2005 11:02:06 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 26 Dec 2005 11:02:06 GMT Message-Id: <200512261102.jBQB25ql017979@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-alpha@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2005 11:02:08 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/12/20] alpha/75317 alpha [ata] [busdma] ATA DMA broken on PCalpha 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/02/05] alpha/47952 alpha DEFPA causes machine check with V5.0-rele o [2003/11/10] alpha/59116 alpha [ntfs] mount_ntfs of a Windows 2000-forma o [2004/01/26] alpha/61940 alpha Can't disklabel new disk from FreeBSD/alp o [2004/01/27] alpha/61973 alpha Machine Check on boot-up of AlphaServer 2 s [2004/06/06] alpha/67626 alpha X crashes an alpha machine, resulting reb o [2005/08/27] alpha/85346 alpha PREEMPTION causes unstability in Alpha400 6 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/02/22] alpha/25284 alpha PC164 won't reboot with graphics console o [2002/05/13] alpha/38031 alpha osf1.ko not loaded during boot-time of li o [2003/02/25] alpha/48676 alpha Changing the baud rate of serial consoles o [2003/04/12] alpha/50868 alpha fd0 floppy device is not mapped into /dev o [2004/05/10] alpha/66478 alpha unexpected machine check: panic for 4.9, o [2004/06/13] alpha/67903 alpha hw.chipset.memory: 1099511627776 - thats 6 problems total. From owner-freebsd-alpha@FreeBSD.ORG Wed Dec 28 08:00:28 2005 Return-Path: X-Original-To: freebsd-alpha@freebsd.org Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F13616A420 for ; Wed, 28 Dec 2005 08:00:28 +0000 (GMT) (envelope-from sten@blinkenlights.nl) Received: from ford.blinkenlights.nl (ford.blinkenlights.nl [213.204.211.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA06043D46 for ; Wed, 28 Dec 2005 08:00:27 +0000 (GMT) (envelope-from sten@blinkenlights.nl) Received: from tea.blinkenlights.nl (tea.blinkenlights.nl [192.168.1.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ford.blinkenlights.nl (Postfix) with ESMTP id BC3C3BDFA; Wed, 28 Dec 2005 09:00:25 +0100 (CET) Received: by tea.blinkenlights.nl (Postfix, from userid 101) id 5AF4117B; Wed, 28 Dec 2005 09:00:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by tea.blinkenlights.nl (Postfix) with ESMTP id 414EC2E; Wed, 28 Dec 2005 09:00:25 +0100 (CET) Date: Wed, 28 Dec 2005 09:00:25 +0100 (CET) From: Sten Spans To: Adam Feigin In-Reply-To: <20051224141123.85721.qmail@web32907.mail.mud.yahoo.com> Message-ID: References: <20051224141123.85721.qmail@web32907.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-alpha@freebsd.org Subject: Re: Problems installing 6.0 on Miata (PWS500au) X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 08:00:28 -0000 On Sat, 24 Dec 2005, Adam Feigin wrote: > Hello. I've been trying to install 6.0 from CD on my > Miata, without any luck. At first, I got reports that > the qlogic driver was a bit flakey, so I should > install on an IDE drive. Alas, recabling the machine > is not really what I had in mind. > > So, I figured that I'd swap the qlogic for a symbios > (875) card, and try that; if its the isp driver thats > flakey, then perhaps it would work. > > Well, the mighty casey has struck out. The booting > with the sym card gets to the same point (looks like > SCSI probe), and then halts. Here's the boot -v > output: Symbios cards work, my ds10 boots hapily from an 895. It might be a dead scsi disk or bad cables. Have you tried booting netbsd/openbsd to double check if the hardware is ok ? -- Sten Spans "There is a crack in everything, that's how the light gets in." Leonard Cohen - Anthem From owner-freebsd-alpha@FreeBSD.ORG Wed Dec 28 16:36:11 2005 Return-Path: X-Original-To: alpha@freebsd.org Delivered-To: freebsd-alpha@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D530616A41F for ; Wed, 28 Dec 2005 16:36:11 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from ant.bwct.de (ant.bwct.de [85.159.14.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD91543D46 for ; Wed, 28 Dec 2005 16:36:05 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by ant.bwct.de (8.12.11/8.12.11) with ESMTP id jBSGa25W009622 for ; Wed, 28 Dec 2005 17:36:02 +0100 (CET) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id jBSGZwpd099809 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 28 Dec 2005 17:35:59 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id jBSGZwXS002195; Wed, 28 Dec 2005 17:35:58 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id jBSGZwx8002194; Wed, 28 Dec 2005 17:35:58 +0100 (CET) (envelope-from ticso) Date: Wed, 28 Dec 2005 17:35:58 +0100 From: Bernd Walter To: alpha@freebsd.org Message-ID: <20051228163557.GE563@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 X-Spam-Report: * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on cicely12.cicely.de Cc: Bernd Walter Subject: re(4) unaligned panic on -current X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 16:36:12 -0000 The same card works fine on an AS4100 running 5.4-STABLE. Booting [/boot/kernel/kernel]... Entering /boot/kernel/kernel at 0xfffffc000033bf00... KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2005 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 7.0-CURRENT #1: Wed Dec 28 17:01:33 CET 2005 ticso@cicely4.cicely.de:/var/d21/builder/c4-2005-12-20/src/sys/alpha/compile/CICELY4 AlphaStation 500 or 600 (KN20AA) Digital AlphaStation 600 5/266, 266MHz 8192 byte page size, 1 processor. CPU: EV5 (21164) major=5 minor=0 OSF PAL rev: 0x1000000020116 real memory = 668778496 (637 MB) avail memory = 648355840 (618 MB) cia0: <2117x Core Logic chipset> cia0: ALCOR/ALCOR2, pass 2 pcib0: <2117x PCI host bus adapter> on cia0 pci0: on pcib0 pcib1: at device 8.0 on pci0 pci1: on pcib1 de0: mem 0x80222000-0x8022207f irq 16 at device 0.0 on pci1 de0: DEC 21040 [10Mb/s] pass 2.3 de0: Ethernet address: 08:00:2b:e7:a1:d6 de0: interrupting at CIA irq 16 isp0: mem 0x80221000-0x80221fff irq 17 at device 1.0 on pci1 isp0: interrupting at CIA irq 17 isp0: [GIANT-LOCKED] isp1: port 0x10000-0x100ff mem 0x80220000-0x80220fff irq 18 at device 2.0 on pci1 isp1: interrupting at CIA irq 18 isp1: [GIANT-LOCKED] fxp0: port 0x11100-0x1111f mem 0x90000000-0x90000fff,0x80100000-0x801fffff irq 12 at device 9.0 on pci0 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:08:c7:db:f5:3a fxp0: interrupting at CIA irq 12 eisab0: at device 10.0 on pci0 eisa0: on eisab0 mainboard0: at slot 0 on eisa0 isa0: on eisab0 re0: port 0x11000-0x110ff mem 0x80320000-0x803200ff irq 0 at device 11.0 on pci0 miibus1: on re0 rgephy0: on miibus1 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto re0: Ethernet address: 00:40:f4:d0:8d:eb fatal kernel trap: trap entry = 0x4 (unaligned access fault) cpuid = 0 faulting va = 0xfffffc00008a472b opcode = 0x28 register = 0x12 pc = 0xfffffc00003b0608 ra = 0xfffffc00003b05cc sp = 0xfffffc00007339d0 usp = 0x0 curthread = 0xfffffc000068b008 pid = 0, comm = swapper [thread pid 0 tid 0 ] Stopped at re_init_locked+0xd8: jsr ra,(pv),re_init_locked+0xdc db> bt Tracing pid 0 tid 0 td 0xfffffc000068b008 re_init_locked() at re_init_locked+0xd8 re_diag() at re_diag+0x178 re_attach() at re_attach+0x704 device_attach() at device_attach+0x88 device_probe_and_attach() at device_probe_and_attach+0x13c bus_generic_attach() at bus_generic_attach+0x28 pci_attach() at pci_attach+0xdc device_attach() at device_attach+0x88 device_probe_and_attach() at device_probe_and_attach+0x13c bus_generic_attach() at bus_generic_attach+0x28 device_attach() at device_attach+0x88 device_probe_and_attach() at device_probe_and_attach+0x13c bus_generic_attach() at bus_generic_attach+0x28 cia_attach() at cia_attach+0x190 device_attach() at device_attach+0x88 device_probe_and_attach() at device_probe_and_attach+0x13c root_bus_configure() at root_bus_configure+0x38 configure() at configure+0x18 mi_startup() at mi_startup+0x144 locorestart() at locorestart+0x64 --- root of call graph --- db> -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-alpha@FreeBSD.ORG Thu Dec 29 04:02:38 2005 Return-Path: X-Original-To: alpha@FreeBSD.org Delivered-To: freebsd-alpha@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4702F16A41F; Thu, 29 Dec 2005 04:02:38 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 606CF43D5D; Thu, 29 Dec 2005 04:02:37 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 4769165 for multiple; Wed, 28 Dec 2005 23:00:35 -0500 Received: from [192.168.0.15] (osx.baldwin.cx [192.168.0.15]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id jBT42ZK4036894; Wed, 28 Dec 2005 23:02:35 -0500 (EST) (envelope-from jhb@FreeBSD.org) In-Reply-To: <20051228163557.GE563@cicely12.cicely.de> References: <20051228163557.GE563@cicely12.cicely.de> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: John Baldwin Date: Wed, 28 Dec 2005 23:01:47 -0500 To: ticso@cicely.de X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: ClamAV 0.87.1/1219/Wed Dec 28 17:57:59 2005 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Bernd Walter , Ruslan Ermilov , alpha@FreeBSD.org Subject: Re: re(4) unaligned panic on -current X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 04:02:38 -0000 On Dec 28, 2005, at 11:35 AM, Bernd Walter wrote: > The same card works fine on an AS4100 running 5.4-STABLE. > > Booting [/boot/kernel/kernel]... > Entering /boot/kernel/kernel at 0xfffffc000033bf00... > ... > re0: port > 0x11000-0x110ff mem 0x80320000-0x803200ff irq 0 at device 11.0 on pci0 > miibus1: on re0 > rgephy0: on miibus1 > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > 1000baseTX, 1000baseTX-FDX, auto > re0: Ethernet address: 00:40:f4:d0:8d:eb > > fatal kernel trap: > > trap entry = 0x4 (unaligned access fault) > cpuid = 0 > faulting va = 0xfffffc00008a472b > opcode = 0x28 > register = 0x12 > pc = 0xfffffc00003b0608 > ra = 0xfffffc00003b05cc > sp = 0xfffffc00007339d0 > usp = 0x0 > curthread = 0xfffffc000068b008 > pid = 0, comm = swapper > > [thread pid 0 tid 0 ] > Stopped at re_init_locked+0xd8: jsr ra, > (pv),re_init_locked+0xdc > > db> bt > Tracing pid 0 tid 0 td 0xfffffc000068b008 > re_init_locked() at re_init_locked+0xd8 > re_diag() at re_diag+0x178 My first guess would be Ruslan's IF_LLADDR changes. If so, you can try doing a bcopy to a char array as a workaround similar to the recent changes to de(4) and dc(4) to fix similar panics on Alpha. It might be something else though. If you could pull up gdb on your kernel.debug and do 'l *re_init_locked+0xd8' to see what file/line that corresponds to that would be helpful. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Thu Dec 29 04:49:18 2005 Return-Path: X-Original-To: alpha@FreeBSD.org Delivered-To: freebsd-alpha@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9AE016A41F; Thu, 29 Dec 2005 04:49:18 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from ant.bwct.de (ant.bwct.de [85.159.14.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id F093B43D58; Thu, 29 Dec 2005 04:49:17 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by ant.bwct.de (8.12.11/8.12.11) with ESMTP id jBT4nFHR024221; Thu, 29 Dec 2005 05:49:16 +0100 (CET) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id jBT4nARF005590 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Dec 2005 05:49:11 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id jBT4nAQ1004579; Thu, 29 Dec 2005 05:49:10 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id jBT4nA5k004578; Thu, 29 Dec 2005 05:49:10 +0100 (CET) (envelope-from ticso) Date: Thu, 29 Dec 2005 05:49:10 +0100 From: Bernd Walter To: John Baldwin Message-ID: <20051229044909.GG563@cicely12.cicely.de> References: <20051228163557.GE563@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 X-Spam-Report: * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on cicely12.cicely.de Cc: Bernd Walter , Ruslan Ermilov , alpha@FreeBSD.org, ticso@cicely.de Subject: Re: re(4) unaligned panic on -current X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 04:49:19 -0000 On Wed, Dec 28, 2005 at 11:01:47PM -0500, John Baldwin wrote: > > On Dec 28, 2005, at 11:35 AM, Bernd Walter wrote: > > >The same card works fine on an AS4100 running 5.4-STABLE. > > > >Booting [/boot/kernel/kernel]... > >Entering /boot/kernel/kernel at 0xfffffc000033bf00... > > ... > >re0: port > >0x11000-0x110ff mem 0x80320000-0x803200ff irq 0 at device 11.0 on pci0 > >miibus1: on re0 > >rgephy0: on miibus1 > >rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > >1000baseTX, 1000baseTX-FDX, auto > >re0: Ethernet address: 00:40:f4:d0:8d:eb > > > >fatal kernel trap: > > > > trap entry = 0x4 (unaligned access fault) > > cpuid = 0 > > faulting va = 0xfffffc00008a472b > > opcode = 0x28 > > register = 0x12 > > pc = 0xfffffc00003b0608 > > ra = 0xfffffc00003b05cc > > sp = 0xfffffc00007339d0 > > usp = 0x0 > > curthread = 0xfffffc000068b008 > > pid = 0, comm = swapper > > > >[thread pid 0 tid 0 ] > >Stopped at re_init_locked+0xd8: jsr ra, > >(pv),re_init_locked+0xdc > > > >db> bt > >Tracing pid 0 tid 0 td 0xfffffc000068b008 > >re_init_locked() at re_init_locked+0xd8 > >re_diag() at re_diag+0x178 > > My first guess would be Ruslan's IF_LLADDR changes. If so, you can > try doing a bcopy to a char array as a workaround similar to the > recent changes to de(4) and dc(4) to fix similar panics on Alpha. It > might be something else though. If you could pull up gdb on your > kernel.debug and do 'l *re_init_locked+0xd8' to see what file/line > that corresponds to that would be helpful. Your guess looks right - will try your bcopy suggestion. [54]cicely12# gdb kernel.debug GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "alpha-marcel-freebsd"... (gdb) l *re_init_locked+0xd8 0xfffffc00003b0608 is in re_init_locked (../../../dev/re/if_re.c:2127). 2122 * Init our MAC address. Even though the chipset 2123 * documentation doesn't mention it, we need to enter "Config 2124 * register write enable" mode to modify the ID registers. 2125 */ 2126 CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_WRITECFG); 2127 CSR_WRITE_STREAM_4(sc, RL_IDR0, 2128 *(u_int32_t *)(&IF_LLADDR(sc->rl_ifp)[0])); 2129 CSR_WRITE_STREAM_4(sc, RL_IDR4, 2130 *(u_int32_t *)(&IF_LLADDR(sc->rl_ifp)[4])); 2131 CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF); (gdb) -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-alpha@FreeBSD.ORG Thu Dec 29 08:37:21 2005 Return-Path: X-Original-To: freebsd-alpha@freebsd.org Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54F2416A41F for ; Thu, 29 Dec 2005 08:37:21 +0000 (GMT) (envelope-from noemail4535@yahoo.com) Received: from web30415.mail.mud.yahoo.com (web30415.mail.mud.yahoo.com [68.142.201.238]) by mx1.FreeBSD.org (Postfix) with SMTP id CC1B643D45 for ; Thu, 29 Dec 2005 08:37:20 +0000 (GMT) (envelope-from noemail4535@yahoo.com) Received: (qmail 92813 invoked by uid 60001); 29 Dec 2005 08:37:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Ln8xp0pXaF9l137p1e+fHOh0Rl3V+X0aKEKUJQheRaHPoNUzuX0YLG3C/dnJiYHicGrRdYQbjlcLKhtxhYl3nDH0vG9pVkxTBmkrPgDpTACm0G1WyorCN9aESPID48zWTCpUpTSSQbLfXV/ZDwLO5VtmkzJ5fqEZTySZguXnz/A= ; Message-ID: <20051229083720.92811.qmail@web30415.mail.mud.yahoo.com> Received: from [69.209.236.68] by web30415.mail.mud.yahoo.com via HTTP; Thu, 29 Dec 2005 00:37:20 PST Date: Thu, 29 Dec 2005 00:37:20 -0800 (PST) From: Joe Smit To: freebsd-alpha@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: alignment fault in vx driver on 5.4 X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 08:37:21 -0000 Hello, I've put together an alpha PC164 500mhz system with a 3Com 3C590 etherlink 3, running Freebsd 5.4. I use the vx driver for the 3c590, but this results in a unaligned panic on the first ifconfig. The driver is attempting to write from an unaligned character array, 32 bits at a time. So here's a simple patch that only writes 1 byte at a time. This driver doesn't seem to do dma and is very inefficient as a result - about 30% cpu overhead for 10 mbits/s. I don't think the original code using write_multi_4 was any faster. I guess I'll have to get a newer nic. --- if_vx.c.original Thu Dec 1 01:21:31 2005 +++ if_vx.c Sat Dec 24 13:33:50 2005 @@ -454,13 +454,8 @@ CSR_WRITE_4(sc, VX_W1_TX_PIO_WR_1, len | TX_INDICATE); while (m) { - if (m->m_len > 3) - bus_space_write_multi_4(sc->bst, sc->bsh, - VX_W1_TX_PIO_WR_1, (u_int32_t *)mtod(m, caddr_t), m->m_len / 4); - if (m->m_len & 3) - bus_space_write_multi_1(sc->bst, sc->bsh, - VX_W1_TX_PIO_WR_1, - mtod(m, caddr_t) + (m->m_len & ~3) , m->m_len & 3); + bus_space_write_multi_1(sc->bst, sc->bsh, VX_W1_TX_PIO_WR_1, + mtod(m, caddr_t), m->m_len); m = m_free(m); } while (pad--) __________________________________________ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com From owner-freebsd-alpha@FreeBSD.ORG Thu Dec 29 16:39:42 2005 Return-Path: X-Original-To: freebsd-alpha@freebsd.org Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56EBE16A41F; Thu, 29 Dec 2005 16:39:42 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05CB643D55; Thu, 29 Dec 2005 16:39:40 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 4808905 for multiple; Thu, 29 Dec 2005 11:37:37 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id jBTGdax8041521; Thu, 29 Dec 2005 11:39:36 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-alpha@freebsd.org, ticso@cicely.de Date: Thu, 29 Dec 2005 11:40:17 -0500 User-Agent: KMail/1.8.2 References: <20051228163557.GE563@cicely12.cicely.de> <20051229044909.GG563@cicely12.cicely.de> In-Reply-To: <20051229044909.GG563@cicely12.cicely.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512291140.19610.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1219/Wed Dec 28 17:57:59 2005 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Bernd Walter , alpha@freebsd.org Subject: Re: re(4) unaligned panic on -current X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 16:39:42 -0000 On Wednesday 28 December 2005 11:49 pm, Bernd Walter wrote: > On Wed, Dec 28, 2005 at 11:01:47PM -0500, John Baldwin wrote: > > On Dec 28, 2005, at 11:35 AM, Bernd Walter wrote: > > >The same card works fine on an AS4100 running 5.4-STABLE. > > > > > >Booting [/boot/kernel/kernel]... > > >Entering /boot/kernel/kernel at 0xfffffc000033bf00... > > > ... > > >re0: port > > >0x11000-0x110ff mem 0x80320000-0x803200ff irq 0 at device 11.0 on pci0 > > >miibus1: on re0 > > >rgephy0: on miibus1 > > >rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > > >1000baseTX, 1000baseTX-FDX, auto > > >re0: Ethernet address: 00:40:f4:d0:8d:eb > > > > > >fatal kernel trap: > > > > > > trap entry = 0x4 (unaligned access fault) > > > cpuid = 0 > > > faulting va = 0xfffffc00008a472b > > > opcode = 0x28 > > > register = 0x12 > > > pc = 0xfffffc00003b0608 > > > ra = 0xfffffc00003b05cc > > > sp = 0xfffffc00007339d0 > > > usp = 0x0 > > > curthread = 0xfffffc000068b008 > > > pid = 0, comm = swapper > > > > > >[thread pid 0 tid 0 ] > > >Stopped at re_init_locked+0xd8: jsr ra, > > >(pv),re_init_locked+0xdc > > > > > >db> bt > > >Tracing pid 0 tid 0 td 0xfffffc000068b008 > > >re_init_locked() at re_init_locked+0xd8 > > >re_diag() at re_diag+0x178 > > > > My first guess would be Ruslan's IF_LLADDR changes. If so, you can > > try doing a bcopy to a char array as a workaround similar to the > > recent changes to de(4) and dc(4) to fix similar panics on Alpha. It > > might be something else though. If you could pull up gdb on your > > kernel.debug and do 'l *re_init_locked+0xd8' to see what file/line > > that corresponds to that would be helpful. > > Your guess looks right - will try your bcopy suggestion. > > [54]cicely12# gdb kernel.debug > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are welcome to change it and/or distribute copies of it under certain > conditions. Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "alpha-marcel-freebsd"... > (gdb) l *re_init_locked+0xd8 > 0xfffffc00003b0608 is in re_init_locked (../../../dev/re/if_re.c:2127). > 2122 * Init our MAC address. Even though the chipset > 2123 * documentation doesn't mention it, we need to enter > "Config 2124 * register write enable" mode to modify the ID > registers. 2125 */ > 2126 CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_WRITECFG); > 2127 CSR_WRITE_STREAM_4(sc, RL_IDR0, > 2128 *(u_int32_t *)(&IF_LLADDR(sc->rl_ifp)[0])); > 2129 CSR_WRITE_STREAM_4(sc, RL_IDR4, > 2130 *(u_int32_t *)(&IF_LLADDR(sc->rl_ifp)[4])); > 2131 CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF); > (gdb) Hmm, even worse is that IF_LLADDR() might not be valid yet since from the trace it looked like re_diag() was being called from re_attach() and thus likely before ether_ifattach(). You'll have to somehow get the copy of the MAC address via the softc if this function is called too early like I did for de(4). Try the bcopy first though. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Thu Dec 29 16:39:42 2005 Return-Path: X-Original-To: alpha@freebsd.org Delivered-To: freebsd-alpha@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56EBE16A41F; Thu, 29 Dec 2005 16:39:42 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05CB643D55; Thu, 29 Dec 2005 16:39:40 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 4808905 for multiple; Thu, 29 Dec 2005 11:37:37 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id jBTGdax8041521; Thu, 29 Dec 2005 11:39:36 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-alpha@freebsd.org, ticso@cicely.de Date: Thu, 29 Dec 2005 11:40:17 -0500 User-Agent: KMail/1.8.2 References: <20051228163557.GE563@cicely12.cicely.de> <20051229044909.GG563@cicely12.cicely.de> In-Reply-To: <20051229044909.GG563@cicely12.cicely.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512291140.19610.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1219/Wed Dec 28 17:57:59 2005 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Bernd Walter , alpha@freebsd.org Subject: Re: re(4) unaligned panic on -current X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 16:39:42 -0000 On Wednesday 28 December 2005 11:49 pm, Bernd Walter wrote: > On Wed, Dec 28, 2005 at 11:01:47PM -0500, John Baldwin wrote: > > On Dec 28, 2005, at 11:35 AM, Bernd Walter wrote: > > >The same card works fine on an AS4100 running 5.4-STABLE. > > > > > >Booting [/boot/kernel/kernel]... > > >Entering /boot/kernel/kernel at 0xfffffc000033bf00... > > > ... > > >re0: port > > >0x11000-0x110ff mem 0x80320000-0x803200ff irq 0 at device 11.0 on pci0 > > >miibus1: on re0 > > >rgephy0: on miibus1 > > >rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > > >1000baseTX, 1000baseTX-FDX, auto > > >re0: Ethernet address: 00:40:f4:d0:8d:eb > > > > > >fatal kernel trap: > > > > > > trap entry = 0x4 (unaligned access fault) > > > cpuid = 0 > > > faulting va = 0xfffffc00008a472b > > > opcode = 0x28 > > > register = 0x12 > > > pc = 0xfffffc00003b0608 > > > ra = 0xfffffc00003b05cc > > > sp = 0xfffffc00007339d0 > > > usp = 0x0 > > > curthread = 0xfffffc000068b008 > > > pid = 0, comm = swapper > > > > > >[thread pid 0 tid 0 ] > > >Stopped at re_init_locked+0xd8: jsr ra, > > >(pv),re_init_locked+0xdc > > > > > >db> bt > > >Tracing pid 0 tid 0 td 0xfffffc000068b008 > > >re_init_locked() at re_init_locked+0xd8 > > >re_diag() at re_diag+0x178 > > > > My first guess would be Ruslan's IF_LLADDR changes. If so, you can > > try doing a bcopy to a char array as a workaround similar to the > > recent changes to de(4) and dc(4) to fix similar panics on Alpha. It > > might be something else though. If you could pull up gdb on your > > kernel.debug and do 'l *re_init_locked+0xd8' to see what file/line > > that corresponds to that would be helpful. > > Your guess looks right - will try your bcopy suggestion. > > [54]cicely12# gdb kernel.debug > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are welcome to change it and/or distribute copies of it under certain > conditions. Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "alpha-marcel-freebsd"... > (gdb) l *re_init_locked+0xd8 > 0xfffffc00003b0608 is in re_init_locked (../../../dev/re/if_re.c:2127). > 2122 * Init our MAC address. Even though the chipset > 2123 * documentation doesn't mention it, we need to enter > "Config 2124 * register write enable" mode to modify the ID > registers. 2125 */ > 2126 CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_WRITECFG); > 2127 CSR_WRITE_STREAM_4(sc, RL_IDR0, > 2128 *(u_int32_t *)(&IF_LLADDR(sc->rl_ifp)[0])); > 2129 CSR_WRITE_STREAM_4(sc, RL_IDR4, > 2130 *(u_int32_t *)(&IF_LLADDR(sc->rl_ifp)[4])); > 2131 CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF); > (gdb) Hmm, even worse is that IF_LLADDR() might not be valid yet since from the trace it looked like re_diag() was being called from re_attach() and thus likely before ether_ifattach(). You'll have to somehow get the copy of the MAC address via the softc if this function is called too early like I did for de(4). Try the bcopy first though. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Fri Dec 30 06:14:58 2005 Return-Path: X-Original-To: alpha@freebsd.org Delivered-To: freebsd-alpha@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FDB116A41F; Fri, 30 Dec 2005 06:14:58 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D9AF43D62; Fri, 30 Dec 2005 06:14:57 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2.sentex.ca [199.212.134.9]) by smarthost2.sentex.ca (8.13.4/8.13.4) with ESMTP id jBU6Etij082796; Fri, 30 Dec 2005 01:14:55 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.3/8.13.3) with ESMTP id jBU6EuOM076376; Fri, 30 Dec 2005 01:14:56 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id E14F47302F; Fri, 30 Dec 2005 01:14:55 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20051230061455.E14F47302F@freebsd-current.sentex.ca> Date: Fri, 30 Dec 2005 01:14:55 -0500 (EST) X-Virus-Scanned: ClamAV version 0.85.1, clamav-milter version 0.85 on clamscanner1 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.51 on 205.211.164.50 Cc: Subject: [head tinderbox] failure on alpha/alpha X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 06:14:58 -0000 TB --- 2005-12-30 04:43:39 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-12-30 04:43:39 - starting HEAD tinderbox run for alpha/alpha TB --- 2005-12-30 04:43:39 - cleaning the object tree TB --- 2005-12-30 04:44:07 - checking out the source tree TB --- 2005-12-30 04:44:07 - cd /tinderbox/HEAD/alpha/alpha TB --- 2005-12-30 04:44:07 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-12-30 04:50:06 - building world (CFLAGS=-O2 -pipe) TB --- 2005-12-30 04:50:06 - cd /src TB --- 2005-12-30 04:50:06 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything TB --- 2005-12-30 06:09:12 - generating LINT kernel config TB --- 2005-12-30 06:09:12 - cd /src/sys/alpha/conf TB --- 2005-12-30 06:09:12 - /usr/bin/make -B LINT TB --- 2005-12-30 06:09:12 - building LINT kernel (COPTFLAGS=-O2 -pipe) TB --- 2005-12-30 06:09:12 - cd /src TB --- 2005-12-30 06:09:12 - /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Fri Dec 30 06:09:13 UTC 2005 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] /src/sys/dev/cardbus/cardbus.c:187: warning: redundant redeclaration of 'BARBIT' /src/sys/dev/cardbus/cardbus.c:187: warning: previous implicit declaration of 'BARBIT' was here /src/sys/dev/cardbus/cardbus.c:263: warning: nested extern declaration of `BARBIT' /src/sys/dev/cardbus/cardbus.c:187: warning: redundant redeclaration of 'BARBIT' /src/sys/dev/cardbus/cardbus.c:187: warning: previous implicit declaration of 'BARBIT' was here /src/sys/dev/cardbus/cardbus.c:299: warning: nested extern declaration of `BARBIT' /src/sys/dev/cardbus/cardbus.c:187: warning: redundant redeclaration of 'BARBIT' /src/sys/dev/cardbus/cardbus.c:187: warning: previous implicit declaration of 'BARBIT' was here *** Error code 1 Stop in /obj/alpha/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2005-12-30 06:14:55 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-12-30 06:14:55 - ERROR: failed to build lint kernel TB --- 2005-12-30 06:14:55 - tinderbox aborted TB --- 0.92 user 5.00 system 5475.53 real From owner-freebsd-alpha@FreeBSD.ORG Fri Dec 30 10:02:59 2005 Return-Path: X-Original-To: freebsd-alpha@freebsd.org Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65D4716A41F; Fri, 30 Dec 2005 10:02:59 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EAA443D4C; Fri, 30 Dec 2005 10:02:58 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jBUA2s3N005815; Fri, 30 Dec 2005 12:02:54 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 10639-08; Fri, 30 Dec 2005 12:02:52 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jBUA06xO005753 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 30 Dec 2005 12:00:06 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id jBUA0I0f040885; Fri, 30 Dec 2005 12:00:18 +0200 (EET) (envelope-from ru) Date: Fri, 30 Dec 2005 12:00:18 +0200 From: Ruslan Ermilov To: John Baldwin Message-ID: <20051230100018.GH52756@ip.net.ua> References: <20051228163557.GE563@cicely12.cicely.de> <20051229044909.GG563@cicely12.cicely.de> <200512291140.19610.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="10jrOL3x2xqLmOsH" Content-Disposition: inline In-Reply-To: <200512291140.19610.jhb@freebsd.org> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: Bernd Walter , alpha@freebsd.org, ticso@cicely.de, freebsd-alpha@freebsd.org Subject: Re: re(4) unaligned panic on -current X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 10:02:59 -0000 --10jrOL3x2xqLmOsH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 29, 2005 at 11:40:17AM -0500, John Baldwin wrote: > On Wednesday 28 December 2005 11:49 pm, Bernd Walter wrote: > > On Wed, Dec 28, 2005 at 11:01:47PM -0500, John Baldwin wrote: > > > On Dec 28, 2005, at 11:35 AM, Bernd Walter wrote: > > > >The same card works fine on an AS4100 running 5.4-STABLE. > > > > > > > >Booting [/boot/kernel/kernel]... > > > >Entering /boot/kernel/kernel at 0xfffffc000033bf00... > > > > ... > > > >re0: port > > > >0x11000-0x110ff mem 0x80320000-0x803200ff irq 0 at device 11.0 on pc= i0 > > > >miibus1: on re0 > > > >rgephy0: on miibus1 > > > >rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > > > >1000baseTX, 1000baseTX-FDX, auto > > > >re0: Ethernet address: 00:40:f4:d0:8d:eb > > > > > > > >fatal kernel trap: > > > > > > > > trap entry =3D 0x4 (unaligned access fault) > > > > cpuid =3D 0 > > > > faulting va =3D 0xfffffc00008a472b > > > > opcode =3D 0x28 > > > > register =3D 0x12 > > > > pc =3D 0xfffffc00003b0608 > > > > ra =3D 0xfffffc00003b05cc > > > > sp =3D 0xfffffc00007339d0 > > > > usp =3D 0x0 > > > > curthread =3D 0xfffffc000068b008 > > > > pid =3D 0, comm =3D swapper > > > > > > > >[thread pid 0 tid 0 ] > > > >Stopped at re_init_locked+0xd8: jsr ra, > > > >(pv),re_init_locked+0xdc > > > > > > > >db> bt > > > >Tracing pid 0 tid 0 td 0xfffffc000068b008 > > > >re_init_locked() at re_init_locked+0xd8 > > > >re_diag() at re_diag+0x178 > > > > > > My first guess would be Ruslan's IF_LLADDR changes. If so, you can > > > try doing a bcopy to a char array as a workaround similar to the > > > recent changes to de(4) and dc(4) to fix similar panics on Alpha. It > > > might be something else though. If you could pull up gdb on your > > > kernel.debug and do 'l *re_init_locked+0xd8' to see what file/line > > > that corresponds to that would be helpful. > > > > Your guess looks right - will try your bcopy suggestion. > > > > [54]cicely12# gdb kernel.debug > > GNU gdb 6.1.1 [FreeBSD] > > Copyright 2004 Free Software Foundation, Inc. > > GDB is free software, covered by the GNU General Public License, and you > > are welcome to change it and/or distribute copies of it under certain > > conditions. Type "show copying" to see the conditions. > > There is absolutely no warranty for GDB. Type "show warranty" for deta= ils. > > This GDB was configured as "alpha-marcel-freebsd"... > > (gdb) l *re_init_locked+0xd8 > > 0xfffffc00003b0608 is in re_init_locked (../../../dev/re/if_re.c:2127). > > 2122 * Init our MAC address. Even though the chipset > > 2123 * documentation doesn't mention it, we need to enter > > "Config 2124 * register write enable" mode to modify the ID > > registers. 2125 */ > > 2126 CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_WRITECFG); > > 2127 CSR_WRITE_STREAM_4(sc, RL_IDR0, > > 2128 *(u_int32_t *)(&IF_LLADDR(sc->rl_ifp)[0])); > > 2129 CSR_WRITE_STREAM_4(sc, RL_IDR4, > > 2130 *(u_int32_t *)(&IF_LLADDR(sc->rl_ifp)[4])); > > 2131 CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF); > > (gdb) >=20 > Hmm, even worse is that IF_LLADDR() might not be valid yet since from the= =20 > trace it looked like re_diag() was being called from re_attach() and thus= =20 > likely before ether_ifattach(). You'll have to somehow get the copy of t= he=20 > MAC address via the softc if this function is called too early like I did= for=20 > de(4). Try the bcopy first though. >=20 What do you mean? 1236 /* 1237 * Call MI attach routine. 1238 */ 1239 ether_ifattach(ifp, eaddr); 1240=20 1241 /* Perform hardware diagnostic. */ 1242 error =3D re_diag(sc); --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --10jrOL3x2xqLmOsH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDtQUyqRfpzJluFF4RAo2hAJ4nULUKQ2AoPLkbfEpYlyDVFfRzwwCdF5PK WegSfimrWxi3vssPwMHXLJA= =9mqd -----END PGP SIGNATURE----- --10jrOL3x2xqLmOsH-- From owner-freebsd-alpha@FreeBSD.ORG Fri Dec 30 10:02:59 2005 Return-Path: X-Original-To: alpha@freebsd.org Delivered-To: freebsd-alpha@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65D4716A41F; Fri, 30 Dec 2005 10:02:59 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EAA443D4C; Fri, 30 Dec 2005 10:02:58 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jBUA2s3N005815; Fri, 30 Dec 2005 12:02:54 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 10639-08; Fri, 30 Dec 2005 12:02:52 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jBUA06xO005753 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 30 Dec 2005 12:00:06 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id jBUA0I0f040885; Fri, 30 Dec 2005 12:00:18 +0200 (EET) (envelope-from ru) Date: Fri, 30 Dec 2005 12:00:18 +0200 From: Ruslan Ermilov To: John Baldwin Message-ID: <20051230100018.GH52756@ip.net.ua> References: <20051228163557.GE563@cicely12.cicely.de> <20051229044909.GG563@cicely12.cicely.de> <200512291140.19610.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="10jrOL3x2xqLmOsH" Content-Disposition: inline In-Reply-To: <200512291140.19610.jhb@freebsd.org> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: Bernd Walter , alpha@freebsd.org, ticso@cicely.de, freebsd-alpha@freebsd.org Subject: Re: re(4) unaligned panic on -current X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 10:02:59 -0000 --10jrOL3x2xqLmOsH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 29, 2005 at 11:40:17AM -0500, John Baldwin wrote: > On Wednesday 28 December 2005 11:49 pm, Bernd Walter wrote: > > On Wed, Dec 28, 2005 at 11:01:47PM -0500, John Baldwin wrote: > > > On Dec 28, 2005, at 11:35 AM, Bernd Walter wrote: > > > >The same card works fine on an AS4100 running 5.4-STABLE. > > > > > > > >Booting [/boot/kernel/kernel]... > > > >Entering /boot/kernel/kernel at 0xfffffc000033bf00... > > > > ... > > > >re0: port > > > >0x11000-0x110ff mem 0x80320000-0x803200ff irq 0 at device 11.0 on pc= i0 > > > >miibus1: on re0 > > > >rgephy0: on miibus1 > > > >rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > > > >1000baseTX, 1000baseTX-FDX, auto > > > >re0: Ethernet address: 00:40:f4:d0:8d:eb > > > > > > > >fatal kernel trap: > > > > > > > > trap entry =3D 0x4 (unaligned access fault) > > > > cpuid =3D 0 > > > > faulting va =3D 0xfffffc00008a472b > > > > opcode =3D 0x28 > > > > register =3D 0x12 > > > > pc =3D 0xfffffc00003b0608 > > > > ra =3D 0xfffffc00003b05cc > > > > sp =3D 0xfffffc00007339d0 > > > > usp =3D 0x0 > > > > curthread =3D 0xfffffc000068b008 > > > > pid =3D 0, comm =3D swapper > > > > > > > >[thread pid 0 tid 0 ] > > > >Stopped at re_init_locked+0xd8: jsr ra, > > > >(pv),re_init_locked+0xdc > > > > > > > >db> bt > > > >Tracing pid 0 tid 0 td 0xfffffc000068b008 > > > >re_init_locked() at re_init_locked+0xd8 > > > >re_diag() at re_diag+0x178 > > > > > > My first guess would be Ruslan's IF_LLADDR changes. If so, you can > > > try doing a bcopy to a char array as a workaround similar to the > > > recent changes to de(4) and dc(4) to fix similar panics on Alpha. It > > > might be something else though. If you could pull up gdb on your > > > kernel.debug and do 'l *re_init_locked+0xd8' to see what file/line > > > that corresponds to that would be helpful. > > > > Your guess looks right - will try your bcopy suggestion. > > > > [54]cicely12# gdb kernel.debug > > GNU gdb 6.1.1 [FreeBSD] > > Copyright 2004 Free Software Foundation, Inc. > > GDB is free software, covered by the GNU General Public License, and you > > are welcome to change it and/or distribute copies of it under certain > > conditions. Type "show copying" to see the conditions. > > There is absolutely no warranty for GDB. Type "show warranty" for deta= ils. > > This GDB was configured as "alpha-marcel-freebsd"... > > (gdb) l *re_init_locked+0xd8 > > 0xfffffc00003b0608 is in re_init_locked (../../../dev/re/if_re.c:2127). > > 2122 * Init our MAC address. Even though the chipset > > 2123 * documentation doesn't mention it, we need to enter > > "Config 2124 * register write enable" mode to modify the ID > > registers. 2125 */ > > 2126 CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_WRITECFG); > > 2127 CSR_WRITE_STREAM_4(sc, RL_IDR0, > > 2128 *(u_int32_t *)(&IF_LLADDR(sc->rl_ifp)[0])); > > 2129 CSR_WRITE_STREAM_4(sc, RL_IDR4, > > 2130 *(u_int32_t *)(&IF_LLADDR(sc->rl_ifp)[4])); > > 2131 CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF); > > (gdb) >=20 > Hmm, even worse is that IF_LLADDR() might not be valid yet since from the= =20 > trace it looked like re_diag() was being called from re_attach() and thus= =20 > likely before ether_ifattach(). You'll have to somehow get the copy of t= he=20 > MAC address via the softc if this function is called too early like I did= for=20 > de(4). Try the bcopy first though. >=20 What do you mean? 1236 /* 1237 * Call MI attach routine. 1238 */ 1239 ether_ifattach(ifp, eaddr); 1240=20 1241 /* Perform hardware diagnostic. */ 1242 error =3D re_diag(sc); --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --10jrOL3x2xqLmOsH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDtQUyqRfpzJluFF4RAo2hAJ4nULUKQ2AoPLkbfEpYlyDVFfRzwwCdF5PK WegSfimrWxi3vssPwMHXLJA= =9mqd -----END PGP SIGNATURE----- --10jrOL3x2xqLmOsH-- From owner-freebsd-alpha@FreeBSD.ORG Fri Dec 30 13:36:29 2005 Return-Path: X-Original-To: freebsd-alpha@freebsd.org Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 694B016A41F; Fri, 30 Dec 2005 13:36:29 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AA4043D49; Fri, 30 Dec 2005 13:36:28 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 4871340 for multiple; Fri, 30 Dec 2005 08:34:29 -0500 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id jBUDaPsF048806; Fri, 30 Dec 2005 08:36:27 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Ruslan Ermilov Date: Fri, 30 Dec 2005 08:36:24 -0500 User-Agent: KMail/1.8.3 References: <20051228163557.GE563@cicely12.cicely.de> <200512291140.19610.jhb@freebsd.org> <20051230100018.GH52756@ip.net.ua> In-Reply-To: <20051230100018.GH52756@ip.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200512300836.25701.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1219/Wed Dec 28 17:57:59 2005 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Bernd Walter , ticso@cicely.de, freebsd-alpha@freebsd.org Subject: Re: re(4) unaligned panic on -current X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 13:36:29 -0000 On Friday 30 December 2005 05:00 am, Ruslan Ermilov wrote: > On Thu, Dec 29, 2005 at 11:40:17AM -0500, John Baldwin wrote: > > On Wednesday 28 December 2005 11:49 pm, Bernd Walter wrote: > > > On Wed, Dec 28, 2005 at 11:01:47PM -0500, John Baldwin wrote: > > > > On Dec 28, 2005, at 11:35 AM, Bernd Walter wrote: > > > > >The same card works fine on an AS4100 running 5.4-STABLE. > > > > > > > > > >Booting [/boot/kernel/kernel]... > > > > >Entering /boot/kernel/kernel at 0xfffffc000033bf00... > > > > > ... > > > > >re0: port > > > > >0x11000-0x110ff mem 0x80320000-0x803200ff irq 0 at device 11.0 on > > > > > pci0 miibus1: on re0 > > > > >rgephy0: on miibus1 > > > > >rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > > > > >1000baseTX, 1000baseTX-FDX, auto > > > > >re0: Ethernet address: 00:40:f4:d0:8d:eb > > > > > > > > > >fatal kernel trap: > > > > > > > > > > trap entry =3D 0x4 (unaligned access fault) > > > > > cpuid =3D 0 > > > > > faulting va =3D 0xfffffc00008a472b > > > > > opcode =3D 0x28 > > > > > register =3D 0x12 > > > > > pc =3D 0xfffffc00003b0608 > > > > > ra =3D 0xfffffc00003b05cc > > > > > sp =3D 0xfffffc00007339d0 > > > > > usp =3D 0x0 > > > > > curthread =3D 0xfffffc000068b008 > > > > > pid =3D 0, comm =3D swapper > > > > > > > > > >[thread pid 0 tid 0 ] > > > > >Stopped at re_init_locked+0xd8: jsr ra, > > > > >(pv),re_init_locked+0xdc > > > > > > > > > >db> bt > > > > >Tracing pid 0 tid 0 td 0xfffffc000068b008 > > > > >re_init_locked() at re_init_locked+0xd8 > > > > >re_diag() at re_diag+0x178 > > > > > > > > My first guess would be Ruslan's IF_LLADDR changes. If so, you can > > > > try doing a bcopy to a char array as a workaround similar to the > > > > recent changes to de(4) and dc(4) to fix similar panics on Alpha. = It > > > > might be something else though. If you could pull up gdb on your > > > > kernel.debug and do 'l *re_init_locked+0xd8' to see what file/line > > > > that corresponds to that would be helpful. > > > > > > Your guess looks right - will try your bcopy suggestion. > > > > > > [54]cicely12# gdb kernel.debug > > > GNU gdb 6.1.1 [FreeBSD] > > > Copyright 2004 Free Software Foundation, Inc. > > > GDB is free software, covered by the GNU General Public License, and > > > you are welcome to change it and/or distribute copies of it under > > > certain conditions. Type "show copying" to see the conditions. > > > There is absolutely no warranty for GDB. Type "show warranty" for > > > details. This GDB was configured as "alpha-marcel-freebsd"... > > > (gdb) l *re_init_locked+0xd8 > > > 0xfffffc00003b0608 is in re_init_locked (../../../dev/re/if_re.c:2127= ). > > > 2122 * Init our MAC address. Even though the chipset > > > 2123 * documentation doesn't mention it, we need to enter > > > "Config 2124 * register write enable" mode to modify the = ID > > > registers. 2125 */ > > > 2126 CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_WRITECFG); > > > 2127 CSR_WRITE_STREAM_4(sc, RL_IDR0, > > > 2128 *(u_int32_t *)(&IF_LLADDR(sc->rl_ifp)[0])); > > > 2129 CSR_WRITE_STREAM_4(sc, RL_IDR4, > > > 2130 *(u_int32_t *)(&IF_LLADDR(sc->rl_ifp)[4])); > > > 2131 CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF); > > > (gdb) > > > > Hmm, even worse is that IF_LLADDR() might not be valid yet since from t= he > > trace it looked like re_diag() was being called from re_attach() and th= us > > likely before ether_ifattach(). You'll have to somehow get the copy of > > the MAC address via the softc if this function is called too early like= I > > did for de(4). Try the bcopy first though. > > What do you mean? > > 1236 /* > 1237 * Call MI attach routine. > 1238 */ > 1239 ether_ifattach(ifp, eaddr); > 1240 > 1241 /* Perform hardware diagnostic. */ > 1242 error =3D re_diag(sc); Ah, most drivers call ether_ifattach() last since otherwise you open yourse= lf=20 up to race conditions since, e.g. a user thread could have done an ifconfig= =20 up before this thread returns from ether_ifattach() to call re_diag(). =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Sat Dec 31 03:02:18 2005 Return-Path: X-Original-To: alpha@freebsd.org Delivered-To: freebsd-alpha@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8040016A41F; Sat, 31 Dec 2005 03:02:18 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C74D943D5F; Sat, 31 Dec 2005 03:02:17 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2.sentex.ca [199.212.134.9]) by smarthost2.sentex.ca (8.13.4/8.13.4) with ESMTP id jBV32GxL051422; Fri, 30 Dec 2005 22:02:16 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.3/8.13.3) with ESMTP id jBV32Gte015786; Fri, 30 Dec 2005 22:02:16 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 90C787302F; Fri, 30 Dec 2005 22:02:16 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20051231030216.90C787302F@freebsd-current.sentex.ca> Date: Fri, 30 Dec 2005 22:02:16 -0500 (EST) X-Virus-Scanned: ClamAV version 0.85.1, clamav-milter version 0.85 on clamscanner4 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.51 on 205.211.164.50 Cc: Subject: [head tinderbox] failure on alpha/alpha X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 03:02:18 -0000 TB --- 2005-12-31 01:49:25 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-12-31 01:49:25 - starting HEAD tinderbox run for alpha/alpha TB --- 2005-12-31 01:49:25 - cleaning the object tree TB --- 2005-12-31 01:49:48 - checking out the source tree TB --- 2005-12-31 01:49:48 - cd /tinderbox/HEAD/alpha/alpha TB --- 2005-12-31 01:49:48 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-12-31 01:55:44 - building world (CFLAGS=-O2 -pipe) TB --- 2005-12-31 01:55:44 - cd /src TB --- 2005-12-31 01:55:44 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything TB --- 2005-12-31 03:00:40 - generating LINT kernel config TB --- 2005-12-31 03:00:40 - cd /src/sys/alpha/conf TB --- 2005-12-31 03:00:40 - /usr/bin/make -B LINT TB --- 2005-12-31 03:00:41 - building LINT kernel (COPTFLAGS=-O2 -pipe) TB --- 2005-12-31 03:00:41 - cd /src TB --- 2005-12-31 03:00:41 - /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Sat Dec 31 03:00:41 UTC 2005 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies [...] awk -f /src/sys/tools/makeobjops.awk /src/sys/libkern/iconv_converter_if.m -h awk -f /src/sys/tools/makeobjops.awk /src/sys/alpha/alpha/clock_if.m -h awk -f /src/sys/tools/makeobjops.awk /src/sys/alpha/pci/alphapci_if.m -h awk -f /src/sys/tools/makeobjops.awk /src/sys/dev/dec/mcclock_if.m -h rm -f .newdep /usr/bin/make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | MKDEP_CPP="cc -E" CC="cc" xargs mkdep -a -f .newdep -O2 -pipe -fno-strict-aliasing -mcpu=ev4 -mtune=ev5 -mieee -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ipfilter -I/src/sys/contrib/pf -I/src/sys/contrib/dev/ath/freebsd -I/src/sys/contrib/ngatm -I/src/sys/dev/twa -I/src/sys/gnu/fs/xfs/FreeBSD -I/src/sys/gnu/fs/xfs/FreeBSD/support -I/src/sys/gnu/fs/xfs -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mno-fp-regs -ffixed-8 -Wa,-mev6 -ffreestanding /src/sys/dev/cardbus/cardbus_cis.c:698:2: unterminated argument list invoking macro "DEVPRINTF" mkdep: compile failed *** Error code 1 Stop in /obj/alpha/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2005-12-31 03:02:16 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-12-31 03:02:16 - ERROR: failed to build lint kernel TB --- 2005-12-31 03:02:16 - tinderbox aborted TB --- 0.75 user 3.84 system 4370.56 real From owner-freebsd-alpha@FreeBSD.ORG Sat Dec 31 11:55:31 2005 Return-Path: X-Original-To: freebsd-alpha@freebsd.org Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C0C716A41F; Sat, 31 Dec 2005 11:55:31 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from ant.bwct.de (ant.bwct.de [85.159.14.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id D481B43D4C; Sat, 31 Dec 2005 11:55:29 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by ant.bwct.de (8.12.11/8.12.11) with ESMTP id jBVBtQGq025595; Sat, 31 Dec 2005 12:55:27 +0100 (CET) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id jBVBtKPL033911 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 31 Dec 2005 12:55:21 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id jBVBtK6M027388; Sat, 31 Dec 2005 12:55:20 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id jBVBtKpf027387; Sat, 31 Dec 2005 12:55:20 +0100 (CET) (envelope-from ticso) Date: Sat, 31 Dec 2005 12:55:19 +0100 From: Bernd Walter To: John Baldwin Message-ID: <20051231115518.GA15282@cicely12.cicely.de> References: <20051228163557.GE563@cicely12.cicely.de> <200512291140.19610.jhb@freebsd.org> <20051230100018.GH52756@ip.net.ua> <200512300836.25701.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512300836.25701.jhb@freebsd.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 X-Spam-Report: * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on cicely12.cicely.de Cc: Bernd Walter , ticso@cicely.de, freebsd-alpha@freebsd.org Subject: Re: re(4) unaligned panic on -current X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 11:55:31 -0000 On Fri, Dec 30, 2005 at 08:36:24AM -0500, John Baldwin wrote: > On Friday 30 December 2005 05:00 am, Ruslan Ermilov wrote: > > On Thu, Dec 29, 2005 at 11:40:17AM -0500, John Baldwin wrote: > > > On Wednesday 28 December 2005 11:49 pm, Bernd Walter wrote: > > > > On Wed, Dec 28, 2005 at 11:01:47PM -0500, John Baldwin wrote: > > > > > On Dec 28, 2005, at 11:35 AM, Bernd Walter wrote: > > > > Your guess looks right - will try your bcopy suggestion. [52]cicely4# cvs diff cvs diff: Diffing . Index: if_re.c =================================================================== RCS file: /home/ncvs/src/sys/dev/re/if_re.c,v retrieving revision 1.62 diff -u -r1.62 if_re.c --- if_re.c 18 Dec 2005 18:24:26 -0000 1.62 +++ if_re.c 31 Dec 2005 11:36:13 -0000 @@ -2097,6 +2097,10 @@ struct ifnet *ifp = sc->rl_ifp; struct mii_data *mii; u_int32_t rxcfg = 0; + union { + uint32_t align_dummy; + u_char eaddr[ETHER_ADDR_LEN]; + } eaddr; RL_LOCK_ASSERT(sc); @@ -2123,11 +2127,13 @@ * documentation doesn't mention it, we need to enter "Config * register write enable" mode to modify the ID registers. */ + /* Copy MAC address on stack to align. */ + bcopy(IF_LLADDR(ifp), eaddr.eaddr, ETHER_ADDR_LEN); CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_WRITECFG); CSR_WRITE_STREAM_4(sc, RL_IDR0, - *(u_int32_t *)(&IF_LLADDR(sc->rl_ifp)[0])); + *(u_int32_t *)(&eaddr.eaddr[0])); CSR_WRITE_STREAM_4(sc, RL_IDR4, - *(u_int32_t *)(&IF_LLADDR(sc->rl_ifp)[4])); + *(u_int32_t *)(&eaddr.eaddr[4])); CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF); /* It works: [54]cicely4# ifconfig re0 re0: flags=8843 mtu 1500 options=18 inet 10.1.1.6 netmask 0xffffff00 broadcast 10.1.1.255 ether 00:40:f4:d0:8d:eb media: Ethernet autoselect (1000baseTX ) status: active -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de