From owner-freebsd-alpha@FreeBSD.ORG Sun Nov 20 01:11:55 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 3B8E916A41F; Sun, 20 Nov 2005 01:11:55 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id D175F43D45; Sun, 20 Nov 2005 01:11:54 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from [192.168.4.250] (dhcp50.pn.xcllnt.net [192.168.4.250]) by ns1.xcllnt.net (8.13.4/8.13.4) with ESMTP id jAK1BsJM025126; Sat, 19 Nov 2005 17:11:54 -0800 (PST) (envelope-from marcel@xcllnt.net) Mime-Version: 1.0 (Apple Message framework v746.2) To: current@freebsd.org Message-Id: <5D4CE421-AC74-40D6-AB53-836630BB8F19@xcllnt.net> Content-Type: multipart/mixed; boundary=Apple-Mail-3--476909085 From: Marcel Moolenaar Date: Sat, 19 Nov 2005 17:11:53 -0800 X-Mailer: Apple Mail (2.746.2) Cc: alpha@freebsd.org, sparc64@freebsd.org Subject: dc(4) related misalignment trap 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: Sun, 20 Nov 2005 01:11:55 -0000 --Apple-Mail-3--476909085 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed All, On alpha this time: : swapon: adding /dev/da0b as swap device Starting file system checks: /dev/da0a: 38800 files, 486252 used, 3308480 free (41816 frags, 408333 blocks, 1.1% fragmentation) Setting hostname: ds10.pn.xcllnt.net. fatal kernel trap: trap entry = 0x4 (unaligned access fault) faulting va = 0xfffffc000096b73b opcode = 0xc register = 0x1 pc = 0xfffffc0000389cd8 ra = 0xfffffc0000389c98 sp = 0xfffffe001a581800 usp = 0x11ffe4f8 curthread = 0xfffffc003eb1d340 pid = 165, comm = ifconfig [thread pid 165 tid 100034 ] Stopped at dc_setfilt_21143+0x368: stl t0,0x9c(s3) <0xfffffc000095879c> db> bt Tracing pid 165 tid 100034 td 0xfffffc003eb1d340 dc_setfilt_21143() at dc_setfilt_21143+0x368 dc_setfilt() at dc_setfilt+0x58 dc_init_locked() at dc_init_locked+0x9c8 dc_init() at dc_init+0x78 ether_ioctl() at ether_ioctl+0xd8 dc_ioctl() at dc_ioctl+0x370 in6_ifinit() at in6_ifinit+0x11c in6_update_ifa() at in6_update_ifa+0x604 in6_ifattach_linklocal() at in6_ifattach_linklocal+0x198 in6_ifattach() at in6_ifattach+0x110 in6_if_up() at in6_if_up+0xa8 if_route() at if_route+0xa4 if_up() at if_up+0x1c ifhwioctl() at ifhwioctl+0x3a8 ifioctl() at ifioctl+0x178 soo_ioctl() at soo_ioctl+0x6e4 ioctl() at ioctl+0x6e8 syscall() at syscall+0x458 XentSys() at XentSys+0x64 --- syscall (54, FreeBSD ELF64, ioctl) --- Note that the faulting instruction is really the instruction before the one shown. In kgdb: 0xfffffc0000389cd4 : ldwu t0,8(t0) 0xfffffc0000389cd8 : stl t0,156(s3) ldwu = load word unsigned. (kgdb) l *dc_setfilt_21143+0x368 0xfffffc0000389cd8 is in dc_setfilt_21143 (../../../dev/dc/if_dc.c: 1129). 1124 h = dc_mchash_le(sc, ifp->if_broadcastaddr); 1125 sp[h >> 4] |= htole32(1 << (h & 0xF)); 1126 } 1127 1128 /* Set our MAC address */ 1129 sp[39] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc- >dc_ifp))[0]); 1130 sp[40] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc- >dc_ifp))[1]); 1131 sp[41] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc- >dc_ifp))[2]); 1132 1133 sframe->dc_status = htole32(DC_TXSTAT_OWN); (kgdb) f 12 #12 0xfffffc0000389cd8 in dc_setfilt_21143 (sc=0xfffffc0000842000) at ../../../dev/dc/if_dc.c:1129 1129 sp[39] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc- >dc_ifp))[0]); (kgdb) p sp $2 = (u_int32_t *) 0xfffffc0000958700 (kgdb) p sc->dc_ifp->if_addr->ifa_addr $5 = (struct sockaddr *) 0xfffffc000096b730 (kgdb) p *(struct sockaddr_dl *)$5 $6 = {sdl_len = 56 '8', sdl_family = 18 '\022', sdl_index = 1, sdl_type = 6 '\006', sdl_nlen = 3 '\003', sdl_alen = 6 '\006', sdl_slen = 0 '\0', sdl_data = "dc0\b\000+\206\"J", '\0' } (kgdb) p $6.sdl_data + $6.sdl_nlen $7 = 0xfffffc000096b73b "\b" Register s3 holds the sp variable ($2 in kgdb) Register t0 holds the result the left-hand side of the statement, which is not properly aligned for a 16-bit load ($7 = register t0 + 8). Rough patch to fix the problem attached: --Apple-Mail-3--476909085 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0664; name="if_dc.diff" Content-Disposition: attachment; filename=if_dc.diff Index: if_dc.c =================================================================== RCS file: /home/ncvs/src/sys/dev/dc/if_dc.c,v retrieving revision 1.172 diff -u -r1.172 if_dc.c --- if_dc.c 11 Nov 2005 16:04:50 -0000 1.172 +++ if_dc.c 20 Nov 2005 01:08:09 -0000 @@ -1126,9 +1126,9 @@ } /* Set our MAC address */ - sp[39] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc->dc_ifp))[0]); - sp[40] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc->dc_ifp))[1]); - sp[41] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc->dc_ifp))[2]); + sp[39] = DC_SP_MAC((u_int16_t *)IF_LLADDR(sc->dc_ifp) + 0); + sp[40] = DC_SP_MAC((u_int16_t *)IF_LLADDR(sc->dc_ifp) + 1); + sp[41] = DC_SP_MAC((u_int16_t *)IF_LLADDR(sc->dc_ifp) + 2); sframe->dc_status = htole32(DC_TXSTAT_OWN); CSR_WRITE_4(sc, DC_TXSTART, 0xFFFFFFFF); @@ -1324,9 +1324,9 @@ } /* Set our MAC address */ - sp[0] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc->dc_ifp))[0]); - sp[1] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc->dc_ifp))[1]); - sp[2] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc->dc_ifp))[2]); + sp[0] = DC_SP_MAC((u_int16_t *)IF_LLADDR(sc->dc_ifp) + 0); + sp[1] = DC_SP_MAC((u_int16_t *)IF_LLADDR(sc->dc_ifp) + 1); + sp[2] = DC_SP_MAC((u_int16_t *)IF_LLADDR(sc->dc_ifp) + 2); DC_SETBIT(sc, DC_NETCFG, DC_NETCFG_TX_ON); DC_SETBIT(sc, DC_NETCFG, DC_NETCFG_RX_ON); Index: if_dcreg.h =================================================================== RCS file: /home/ncvs/src/sys/dev/dc/if_dcreg.h,v retrieving revision 1.45 diff -u -r1.45 if_dcreg.h --- if_dcreg.h 10 Aug 2005 20:33:46 -0000 1.45 +++ if_dcreg.h 20 Nov 2005 01:07:24 -0000 @@ -473,9 +473,9 @@ (uintptr_t)(sc->dc_ldata->dc_tx_list + i) - (uintptr_t)sc->dc_ldata) #if BYTE_ORDER == BIG_ENDIAN -#define DC_SP_MAC(x) ((x) << 16) +#define DC_SP_MAC(ptr) (be16dec(ptr) << 16) #else -#define DC_SP_MAC(x) (x) +#define DC_SP_MAC(ptr) (le16dec(ptr)) #endif struct dc_list_data { --Apple-Mail-3--476909085 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed FYI, -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net --Apple-Mail-3--476909085-- From owner-freebsd-alpha@FreeBSD.ORG Sun Nov 20 09:02:34 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 8142E16A41F; Sun, 20 Nov 2005 09:02:34 +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 2345843D46; Sun, 20 Nov 2005 09:02:34 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by smarthost2.sentex.ca (8.13.4/8.13.4) with ESMTP id jAK92WOl094101; Sun, 20 Nov 2005 04:02:32 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.3/8.13.3) with ESMTP id jAK92W51082914; Sun, 20 Nov 2005 04:02:32 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id B41657302F; Sun, 20 Nov 2005 04:02:32 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20051120090232.B41657302F@freebsd-current.sentex.ca> Date: Sun, 20 Nov 2005 04:02:32 -0500 (EST) X-Virus-Scanned: ClamAV version 0.86, clamav-milter version 0.86 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: Sun, 20 Nov 2005 09:02:34 -0000 TB --- 2005-11-20 07:30:48 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-11-20 07:30:48 - starting HEAD tinderbox run for alpha/alpha TB --- 2005-11-20 07:30:48 - cleaning the object tree TB --- 2005-11-20 07:31:48 - checking out the source tree TB --- 2005-11-20 07:31:48 - cd /tinderbox/HEAD/alpha/alpha TB --- 2005-11-20 07:31:48 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-11-20 07:38:15 - building world (CFLAGS=-O2 -pipe) TB --- 2005-11-20 07:38:15 - cd /src TB --- 2005-11-20 07:38:15 - /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-11-20 08:52:14 - generating LINT kernel config TB --- 2005-11-20 08:52:14 - cd /src/sys/alpha/conf TB --- 2005-11-20 08:52:14 - /usr/bin/make -B LINT TB --- 2005-11-20 08:52:14 - building LINT kernel (COPTFLAGS=-O2 -pipe) TB --- 2005-11-20 08:52:14 - cd /src TB --- 2005-11-20 08:52:14 - /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Sun Nov 20 08:52:14 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 -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 -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/netinet6/udp6_usrreq.c cc -c -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 -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/netipx/ipx.c cc -c -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 -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/netipx/ipx_cksum.c cc -c -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 -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/netipx/ipx_input.c cc -c -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 -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/netipx/ipx_ip.c /src/sys/netipx/ipx_ip.c: In function `ipxip_input': /src/sys/netipx/ipx_ip.c:198: warning: implicit declaration of function `ip_stripoptions' /src/sys/netipx/ipx_ip.c:198: warning: nested extern declaration of `ip_stripoptions' *** Error code 1 Stop in /obj/alpha/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2005-11-20 09:02:32 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-11-20 09:02:32 - ERROR: failed to build lint kernel TB --- 2005-11-20 09:02:32 - tinderbox aborted From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 21 11:02:27 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 1F07816A41F for ; Mon, 21 Nov 2005 11:02:27 +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 1626543D49 for ; Mon, 21 Nov 2005 11:02:26 +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.3/8.13.3) with ESMTP id jALB2PMf089962 for ; Mon, 21 Nov 2005 11:02:25 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jALB2PIW089956 for freebsd-alpha@freebsd.org; Mon, 21 Nov 2005 11:02:25 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 21 Nov 2005 11:02:25 GMT Message-Id: <200511211102.jALB2PIW089956@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, 21 Nov 2005 11:02:27 -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 Mon Nov 21 14:49: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 1BBBE16A41F; Mon, 21 Nov 2005 14:49:07 +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 4B1DB43D49; Mon, 21 Nov 2005 14:49:06 +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 2362940 for multiple; Mon, 21 Nov 2005 09:49:15 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jALEn1su069223; Mon, 21 Nov 2005 09:49:01 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-alpha@freebsd.org Date: Mon, 21 Nov 2005 09:49:10 -0500 User-Agent: KMail/1.8.2 References: <5D4CE421-AC74-40D6-AB53-836630BB8F19@xcllnt.net> In-Reply-To: <5D4CE421-AC74-40D6-AB53-836630BB8F19@xcllnt.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511210949.12455.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: sparc64@freebsd.org, alpha@freebsd.org, current@freebsd.org Subject: Re: dc(4) related misalignment trap 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, 21 Nov 2005 14:49:07 -0000 On Saturday 19 November 2005 08:11 pm, Marcel Moolenaar wrote: > All, > > On alpha this time: > > > swapon: adding /dev/da0b as swap device > Starting file system checks: > /dev/da0a: 38800 files, 486252 used, 3308480 free (41816 frags, > 408333 blocks, 1.1% fragmentation) > Setting hostname: ds10.pn.xcllnt.net. > > fatal kernel trap: > > trap entry = 0x4 (unaligned access fault) > faulting va = 0xfffffc000096b73b > opcode = 0xc > register = 0x1 > pc = 0xfffffc0000389cd8 > ra = 0xfffffc0000389c98 > sp = 0xfffffe001a581800 > usp = 0x11ffe4f8 > curthread = 0xfffffc003eb1d340 > pid = 165, comm = ifconfig > > [thread pid 165 tid 100034 ] > Stopped at dc_setfilt_21143+0x368: stl t0,0x9c(s3) > <0xfffffc000095879c> > > db> bt > Tracing pid 165 tid 100034 td 0xfffffc003eb1d340 > dc_setfilt_21143() at dc_setfilt_21143+0x368 > dc_setfilt() at dc_setfilt+0x58 > dc_init_locked() at dc_init_locked+0x9c8 > dc_init() at dc_init+0x78 > ether_ioctl() at ether_ioctl+0xd8 > dc_ioctl() at dc_ioctl+0x370 > in6_ifinit() at in6_ifinit+0x11c > in6_update_ifa() at in6_update_ifa+0x604 > in6_ifattach_linklocal() at in6_ifattach_linklocal+0x198 > in6_ifattach() at in6_ifattach+0x110 > in6_if_up() at in6_if_up+0xa8 > if_route() at if_route+0xa4 > if_up() at if_up+0x1c > ifhwioctl() at ifhwioctl+0x3a8 > ifioctl() at ifioctl+0x178 > soo_ioctl() at soo_ioctl+0x6e4 > ioctl() at ioctl+0x6e8 > syscall() at syscall+0x458 > XentSys() at XentSys+0x64 > --- syscall (54, FreeBSD ELF64, ioctl) --- > > > Note that the faulting instruction is really the instruction before > the one shown. In kgdb: > > 0xfffffc0000389cd4 : ldwu t0,8(t0) > 0xfffffc0000389cd8 : stl t0,156(s3) > > ldwu = load word unsigned. > > > (kgdb) l *dc_setfilt_21143+0x368 > 0xfffffc0000389cd8 is in dc_setfilt_21143 (../../../dev/dc/if_dc.c: > 1129). > 1124 h = dc_mchash_le(sc, ifp->if_broadcastaddr); > 1125 sp[h >> 4] |= htole32(1 << (h & 0xF)); > 1126 } > 1127 > 1128 /* Set our MAC address */ > 1129 sp[39] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc- > > >dc_ifp))[0]); > > 1130 sp[40] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc- > > >dc_ifp))[1]); > > 1131 sp[41] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc- > > >dc_ifp))[2]); > > 1132 > 1133 sframe->dc_status = htole32(DC_TXSTAT_OWN); > > (kgdb) f 12 > #12 0xfffffc0000389cd8 in dc_setfilt_21143 (sc=0xfffffc0000842000) > at ../../../dev/dc/if_dc.c:1129 > 1129 sp[39] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc- > > >dc_ifp))[0]); > > (kgdb) p sp > $2 = (u_int32_t *) 0xfffffc0000958700 > (kgdb) p sc->dc_ifp->if_addr->ifa_addr > $5 = (struct sockaddr *) 0xfffffc000096b730 > (kgdb) p *(struct sockaddr_dl *)$5 > $6 = {sdl_len = 56 '8', sdl_family = 18 '\022', sdl_index = 1, > sdl_type = 6 '\006', sdl_nlen = 3 '\003', sdl_alen = 6 '\006', > sdl_slen = 0 '\0', sdl_data = "dc0\b\000+\206\"J", '\0' times>} > (kgdb) p $6.sdl_data + $6.sdl_nlen > $7 = 0xfffffc000096b73b "\b" > > Register s3 holds the sp variable ($2 in kgdb) > Register t0 holds the result the left-hand side of the statement, which > is not properly aligned for a 16-bit load ($7 = register t0 + 8). > > Rough patch to fix the problem attached: I think de(4) would need the same fix as well at least. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 21 14:49:07 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 1BBBE16A41F; Mon, 21 Nov 2005 14:49:07 +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 4B1DB43D49; Mon, 21 Nov 2005 14:49:06 +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 2362940 for multiple; Mon, 21 Nov 2005 09:49:15 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jALEn1su069223; Mon, 21 Nov 2005 09:49:01 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-alpha@freebsd.org Date: Mon, 21 Nov 2005 09:49:10 -0500 User-Agent: KMail/1.8.2 References: <5D4CE421-AC74-40D6-AB53-836630BB8F19@xcllnt.net> In-Reply-To: <5D4CE421-AC74-40D6-AB53-836630BB8F19@xcllnt.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511210949.12455.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: sparc64@freebsd.org, alpha@freebsd.org, current@freebsd.org Subject: Re: dc(4) related misalignment trap 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, 21 Nov 2005 14:49:07 -0000 On Saturday 19 November 2005 08:11 pm, Marcel Moolenaar wrote: > All, > > On alpha this time: > > > swapon: adding /dev/da0b as swap device > Starting file system checks: > /dev/da0a: 38800 files, 486252 used, 3308480 free (41816 frags, > 408333 blocks, 1.1% fragmentation) > Setting hostname: ds10.pn.xcllnt.net. > > fatal kernel trap: > > trap entry = 0x4 (unaligned access fault) > faulting va = 0xfffffc000096b73b > opcode = 0xc > register = 0x1 > pc = 0xfffffc0000389cd8 > ra = 0xfffffc0000389c98 > sp = 0xfffffe001a581800 > usp = 0x11ffe4f8 > curthread = 0xfffffc003eb1d340 > pid = 165, comm = ifconfig > > [thread pid 165 tid 100034 ] > Stopped at dc_setfilt_21143+0x368: stl t0,0x9c(s3) > <0xfffffc000095879c> > > db> bt > Tracing pid 165 tid 100034 td 0xfffffc003eb1d340 > dc_setfilt_21143() at dc_setfilt_21143+0x368 > dc_setfilt() at dc_setfilt+0x58 > dc_init_locked() at dc_init_locked+0x9c8 > dc_init() at dc_init+0x78 > ether_ioctl() at ether_ioctl+0xd8 > dc_ioctl() at dc_ioctl+0x370 > in6_ifinit() at in6_ifinit+0x11c > in6_update_ifa() at in6_update_ifa+0x604 > in6_ifattach_linklocal() at in6_ifattach_linklocal+0x198 > in6_ifattach() at in6_ifattach+0x110 > in6_if_up() at in6_if_up+0xa8 > if_route() at if_route+0xa4 > if_up() at if_up+0x1c > ifhwioctl() at ifhwioctl+0x3a8 > ifioctl() at ifioctl+0x178 > soo_ioctl() at soo_ioctl+0x6e4 > ioctl() at ioctl+0x6e8 > syscall() at syscall+0x458 > XentSys() at XentSys+0x64 > --- syscall (54, FreeBSD ELF64, ioctl) --- > > > Note that the faulting instruction is really the instruction before > the one shown. In kgdb: > > 0xfffffc0000389cd4 : ldwu t0,8(t0) > 0xfffffc0000389cd8 : stl t0,156(s3) > > ldwu = load word unsigned. > > > (kgdb) l *dc_setfilt_21143+0x368 > 0xfffffc0000389cd8 is in dc_setfilt_21143 (../../../dev/dc/if_dc.c: > 1129). > 1124 h = dc_mchash_le(sc, ifp->if_broadcastaddr); > 1125 sp[h >> 4] |= htole32(1 << (h & 0xF)); > 1126 } > 1127 > 1128 /* Set our MAC address */ > 1129 sp[39] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc- > > >dc_ifp))[0]); > > 1130 sp[40] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc- > > >dc_ifp))[1]); > > 1131 sp[41] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc- > > >dc_ifp))[2]); > > 1132 > 1133 sframe->dc_status = htole32(DC_TXSTAT_OWN); > > (kgdb) f 12 > #12 0xfffffc0000389cd8 in dc_setfilt_21143 (sc=0xfffffc0000842000) > at ../../../dev/dc/if_dc.c:1129 > 1129 sp[39] = DC_SP_MAC(((u_int16_t *)IF_LLADDR(sc- > > >dc_ifp))[0]); > > (kgdb) p sp > $2 = (u_int32_t *) 0xfffffc0000958700 > (kgdb) p sc->dc_ifp->if_addr->ifa_addr > $5 = (struct sockaddr *) 0xfffffc000096b730 > (kgdb) p *(struct sockaddr_dl *)$5 > $6 = {sdl_len = 56 '8', sdl_family = 18 '\022', sdl_index = 1, > sdl_type = 6 '\006', sdl_nlen = 3 '\003', sdl_alen = 6 '\006', > sdl_slen = 0 '\0', sdl_data = "dc0\b\000+\206\"J", '\0' times>} > (kgdb) p $6.sdl_data + $6.sdl_nlen > $7 = 0xfffffc000096b73b "\b" > > Register s3 holds the sp variable ($2 in kgdb) > Register t0 holds the result the left-hand side of the statement, which > is not properly aligned for a 16-bit load ($7 = register t0 + 8). > > Rough patch to fix the problem attached: I think de(4) would need the same fix as well at least. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 21 21:15:05 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 DF80116A420; Mon, 21 Nov 2005 21:15:04 +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 39F3C43D53; Mon, 21 Nov 2005 21:14:21 +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 2381085 for multiple; Mon, 21 Nov 2005 16:14:22 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jALLE8Uh071582; Mon, 21 Nov 2005 16:14:08 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-sparc64@freebsd.org Date: Mon, 21 Nov 2005 16:14:14 -0500 User-Agent: KMail/1.8.2 References: <5D4CE421-AC74-40D6-AB53-836630BB8F19@xcllnt.net> <200511210949.12455.jhb@freebsd.org> In-Reply-To: <200511210949.12455.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511211614.16590.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: alpha@freebsd.org, current@freebsd.org, freebsd-alpha@freebsd.org, sparc64@freebsd.org Subject: Re: dc(4) related misalignment trap 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, 21 Nov 2005 21:15:05 -0000 On Monday 21 November 2005 09:49 am, John Baldwin wrote: > > Register s3 holds the sp variable ($2 in kgdb) > > Register t0 holds the result the left-hand side of the statement, which > > is not properly aligned for a 16-bit load ($7 = register t0 + 8). > > > > Rough patch to fix the problem attached: > > I think de(4) would need the same fix as well at least. Once I fixed another bug with de(4) due to ru@'s recent changes I wasn't able to reproduce an alignment trap with de(4) on my alpha, so although I have a patch for de(4) I can't test it. How are you triggering the alignment fault? Do you have something other than 'ifconfig_dc0="DHCP"' in /etc/rc.conf? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 21 21:15:05 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 DF80116A420; Mon, 21 Nov 2005 21:15:04 +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 39F3C43D53; Mon, 21 Nov 2005 21:14:21 +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 2381085 for multiple; Mon, 21 Nov 2005 16:14:22 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jALLE8Uh071582; Mon, 21 Nov 2005 16:14:08 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-sparc64@freebsd.org Date: Mon, 21 Nov 2005 16:14:14 -0500 User-Agent: KMail/1.8.2 References: <5D4CE421-AC74-40D6-AB53-836630BB8F19@xcllnt.net> <200511210949.12455.jhb@freebsd.org> In-Reply-To: <200511210949.12455.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511211614.16590.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: alpha@freebsd.org, current@freebsd.org, freebsd-alpha@freebsd.org, sparc64@freebsd.org Subject: Re: dc(4) related misalignment trap 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, 21 Nov 2005 21:15:05 -0000 On Monday 21 November 2005 09:49 am, John Baldwin wrote: > > Register s3 holds the sp variable ($2 in kgdb) > > Register t0 holds the result the left-hand side of the statement, which > > is not properly aligned for a 16-bit load ($7 = register t0 + 8). > > > > Rough patch to fix the problem attached: > > I think de(4) would need the same fix as well at least. Once I fixed another bug with de(4) due to ru@'s recent changes I wasn't able to reproduce an alignment trap with de(4) on my alpha, so although I have a patch for de(4) I can't test it. How are you triggering the alignment fault? Do you have something other than 'ifconfig_dc0="DHCP"' in /etc/rc.conf? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 21 21:26:28 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 D88F716A41F; Mon, 21 Nov 2005 21:26:28 +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 6B0F643E76; Mon, 21 Nov 2005 21:23:38 +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 2381563 for multiple; Mon, 21 Nov 2005 16:23:41 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jALLNRMM071658; Mon, 21 Nov 2005 16:23:27 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-sparc64@freebsd.org Date: Mon, 21 Nov 2005 16:23:33 -0500 User-Agent: KMail/1.8.2 References: <5D4CE421-AC74-40D6-AB53-836630BB8F19@xcllnt.net> <200511210949.12455.jhb@freebsd.org> <200511211614.16590.jhb@freebsd.org> In-Reply-To: <200511211614.16590.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511211623.35777.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: alpha@freebsd.org, current@freebsd.org, freebsd-alpha@freebsd.org, sparc64@freebsd.org Subject: Re: dc(4) related misalignment trap 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, 21 Nov 2005 21:26:29 -0000 On Monday 21 November 2005 04:14 pm, John Baldwin wrote: > On Monday 21 November 2005 09:49 am, John Baldwin wrote: > > > Register s3 holds the sp variable ($2 in kgdb) > > > Register t0 holds the result the left-hand side of the statement, which > > > is not properly aligned for a 16-bit load ($7 = register t0 + 8). > > > > > > Rough patch to fix the problem attached: > > > > I think de(4) would need the same fix as well at least. > > Once I fixed another bug with de(4) due to ru@'s recent changes I wasn't > able to reproduce an alignment trap with de(4) on my alpha, so although I > have a patch for de(4) I can't test it. How are you triggering the > alignment fault? Do you have something other than 'ifconfig_dc0="DHCP"' in > /etc/rc.conf? Check that, it would help to let the multiuser boot finish before firing off the e-mail. I did indeed get the alignment fault during dhcp, so I'll be testing that alignment patch in a minute or so. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 21 21:26: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 D88F716A41F; Mon, 21 Nov 2005 21:26:28 +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 6B0F643E76; Mon, 21 Nov 2005 21:23:38 +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 2381563 for multiple; Mon, 21 Nov 2005 16:23:41 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jALLNRMM071658; Mon, 21 Nov 2005 16:23:27 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-sparc64@freebsd.org Date: Mon, 21 Nov 2005 16:23:33 -0500 User-Agent: KMail/1.8.2 References: <5D4CE421-AC74-40D6-AB53-836630BB8F19@xcllnt.net> <200511210949.12455.jhb@freebsd.org> <200511211614.16590.jhb@freebsd.org> In-Reply-To: <200511211614.16590.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511211623.35777.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: alpha@freebsd.org, current@freebsd.org, freebsd-alpha@freebsd.org, sparc64@freebsd.org Subject: Re: dc(4) related misalignment trap 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, 21 Nov 2005 21:26:29 -0000 On Monday 21 November 2005 04:14 pm, John Baldwin wrote: > On Monday 21 November 2005 09:49 am, John Baldwin wrote: > > > Register s3 holds the sp variable ($2 in kgdb) > > > Register t0 holds the result the left-hand side of the statement, which > > > is not properly aligned for a 16-bit load ($7 = register t0 + 8). > > > > > > Rough patch to fix the problem attached: > > > > I think de(4) would need the same fix as well at least. > > Once I fixed another bug with de(4) due to ru@'s recent changes I wasn't > able to reproduce an alignment trap with de(4) on my alpha, so although I > have a patch for de(4) I can't test it. How are you triggering the > alignment fault? Do you have something other than 'ifconfig_dc0="DHCP"' in > /etc/rc.conf? Check that, it would help to let the multiuser boot finish before firing off the e-mail. I did indeed get the alignment fault during dhcp, so I'll be testing that alignment patch in a minute or so. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 21 21:51:41 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 C72F016A41F; Mon, 21 Nov 2005 21:51:41 +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 9341943D75; Mon, 21 Nov 2005 21:51:33 +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 2382819 for multiple; Mon, 21 Nov 2005 16:51:43 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jALLpTB3071836; Mon, 21 Nov 2005 16:51:29 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-sparc64@freebsd.org Date: Mon, 21 Nov 2005 16:51:35 -0500 User-Agent: KMail/1.8.2 References: <5D4CE421-AC74-40D6-AB53-836630BB8F19@xcllnt.net> <200511211614.16590.jhb@freebsd.org> <200511211623.35777.jhb@freebsd.org> In-Reply-To: <200511211623.35777.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511211651.36569.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: alpha@freebsd.org, current@freebsd.org Subject: Re: dc(4) related misalignment trap 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, 21 Nov 2005 21:51:41 -0000 On Monday 21 November 2005 04:23 pm, John Baldwin wrote: > On Monday 21 November 2005 04:14 pm, John Baldwin wrote: > > On Monday 21 November 2005 09:49 am, John Baldwin wrote: > > > > Register s3 holds the sp variable ($2 in kgdb) > > > > Register t0 holds the result the left-hand side of the statement, > > > > which is not properly aligned for a 16-bit load ($7 = register t0 + > > > > 8). > > > > > > > > Rough patch to fix the problem attached: > > > > > > I think de(4) would need the same fix as well at least. > > > > Once I fixed another bug with de(4) due to ru@'s recent changes I wasn't > > able to reproduce an alignment trap with de(4) on my alpha, so although I > > have a patch for de(4) I can't test it. How are you triggering the > > alignment fault? Do you have something other than 'ifconfig_dc0="DHCP"' > > in /etc/rc.conf? > > Check that, it would help to let the multiuser boot finish before firing > off the e-mail. I did indeed get the alignment fault during dhcp, so I'll > be testing that alignment patch in a minute or so. Ok, so the same change Marcel posted for dc(4) fixed de(4) as well, so Marcel, I think you should be good to go to commit your dc(4) patch. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Tue Nov 22 01:28:13 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 24E6216A41F; Tue, 22 Nov 2005 01:28:13 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 839B443D6A; Tue, 22 Nov 2005 01:27:50 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from [192.168.4.250] (dhcp50.pn.xcllnt.net [192.168.4.250]) by ns1.xcllnt.net (8.13.4/8.13.4) with ESMTP id jAM1RnDQ039215; Mon, 21 Nov 2005 17:27:49 -0800 (PST) (envelope-from marcel@xcllnt.net) In-Reply-To: <200511211651.36569.jhb@freebsd.org> References: <5D4CE421-AC74-40D6-AB53-836630BB8F19@xcllnt.net> <200511211614.16590.jhb@freebsd.org> <200511211623.35777.jhb@freebsd.org> <200511211651.36569.jhb@freebsd.org> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <5B81B657-00AF-46C7-A94E-1C330435328C@xcllnt.net> Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Mon, 21 Nov 2005 17:27:48 -0800 To: John Baldwin X-Mailer: Apple Mail (2.746.2) Cc: alpha@freebsd.org, freebsd-sparc64@freebsd.org, current@freebsd.org Subject: Re: dc(4) related misalignment trap 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: Tue, 22 Nov 2005 01:28:13 -0000 On Nov 21, 2005, at 1:51 PM, John Baldwin wrote: > On Monday 21 November 2005 04:23 pm, John Baldwin wrote: >> On Monday 21 November 2005 04:14 pm, John Baldwin wrote: >>> On Monday 21 November 2005 09:49 am, John Baldwin wrote: >>>>> Register s3 holds the sp variable ($2 in kgdb) >>>>> Register t0 holds the result the left-hand side of the statement, >>>>> which is not properly aligned for a 16-bit load ($7 = register >>>>> t0 + >>>>> 8). >>>>> >>>>> Rough patch to fix the problem attached: >>>> >>>> I think de(4) would need the same fix as well at least. >>> >>> Once I fixed another bug with de(4) due to ru@'s recent changes I >>> wasn't >>> able to reproduce an alignment trap with de(4) on my alpha, so >>> although I >>> have a patch for de(4) I can't test it. How are you triggering the >>> alignment fault? Do you have something other than >>> 'ifconfig_dc0="DHCP"' >>> in /etc/rc.conf? >> >> Check that, it would help to let the multiuser boot finish before >> firing >> off the e-mail. I did indeed get the alignment fault during dhcp, >> so I'll >> be testing that alignment patch in a minute or so. > > Ok, so the same change Marcel posted for dc(4) fixed de(4) as well, > so Marcel, > I think you should be good to go to commit your dc(4) patch. Will do. Thanks for taking care of de(4). -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net From owner-freebsd-alpha@FreeBSD.ORG Thu Nov 24 21:59: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 CDF3216A41F for ; Thu, 24 Nov 2005 21:59:31 +0000 (GMT) (envelope-from bloat@creativebusinesresources.com) Received: from netrun-32-209.cytanet.com.cy (netrun-32-209.cytanet.com.cy [83.168.32.209]) by mx1.FreeBSD.org (Postfix) with SMTP id D84E745C9A for ; Thu, 24 Nov 2005 21:59:30 +0000 (GMT) (envelope-from bloat@creativebusinesresources.com) Received: from unknown (HELO stenographer) (192.168.77.167) by netrun-32-209.cytanet.com.cy with SMTP; Thu, 24 Nov 2005 23:59:30 +0200 Content-Transfer-Encoding: 7bit Message-Id: <123083127778.3677368027@netrun-32-209.cytanet.com.cy> Content-Type: text/plain; charset=us-ascii To: freebsd-alpha@freebsd.org From: Clem Donahue Date: Thu, 24 Nov 2005 21:59:30 +0000 (GMT) Subject: Come on in and Select a Rolex for 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: Thu, 24 Nov 2005 21:59:31 -0000 Beautiful and Elegant Watches http://deliberations.xanaz.net/re/as/ Whenever people agree with me I always feel I must be wrong. Laughter is the shortest distance between two people. The computer is a moron. Leadership and learning are indispensable to each other. But did thee feel the earth move? Eagles may soar, but weasels don't get sucked into jet engines. How to Raise your I.Q. by Eating Gifted Children You have not converted a man because you have silenced him. Every law is an infraction of liberty.