From owner-freebsd-sparc64@FreeBSD.ORG Sun Mar 15 00:08:29 2009 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8769A106564A; Sun, 15 Mar 2009 00:08:29 +0000 (UTC) (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 5DA908FC1B; Sun, 15 Mar 2009 00:08:29 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id n2F08Onl074955; Sat, 14 Mar 2009 20:08:24 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.3/8.14.3) with ESMTP id n2F08O7h034452; Sat, 14 Mar 2009 20:08:24 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 986907302F; Sat, 14 Mar 2009 19:08:24 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090315000824.986907302F@freebsd-current.sentex.ca> Date: Sat, 14 Mar 2009 19:08:24 -0500 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on clamscanner3 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: Subject: [head tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Mar 2009 00:08:30 -0000 TB --- 2009-03-14 23:13:32 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-03-14 23:13:32 - starting HEAD tinderbox run for sparc64/sparc64 TB --- 2009-03-14 23:13:32 - cleaning the object tree TB --- 2009-03-14 23:13:51 - cvsupping the source tree TB --- 2009-03-14 23:13:51 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/sparc64/sparc64/supfile TB --- 2009-03-14 23:13:59 - building world TB --- 2009-03-14 23:13:59 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-14 23:13:59 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-14 23:13:59 - TARGET=sparc64 TB --- 2009-03-14 23:13:59 - TARGET_ARCH=sparc64 TB --- 2009-03-14 23:13:59 - TZ=UTC TB --- 2009-03-14 23:13:59 - __MAKE_CONF=/dev/null TB --- 2009-03-14 23:13:59 - cd /src TB --- 2009-03-14 23:13:59 - /usr/bin/make -B buildworld >>> World build started on Sat Mar 14 23:14:01 UTC 2009 >>> 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 [...] cc -O2 -pipe -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/obj/sparc64/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/include -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libcpp/include -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libdecnumber -std=gnu99 -fstack-protector -c /src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/struct-equiv.c cc -O2 -pipe -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/obj/sparc64/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/include -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libcpp/include -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libdecnumber -std=gnu99 -fstack-protector -c /src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/targhooks.c cc -O2 -pipe -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/obj/sparc64/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/include -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libcpp/include -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libdecnumber -std=gnu99 -fstack-protector -c /src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/timevar.c cc -O2 -pipe -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/obj/sparc64/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/include -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libcpp/include -I/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libdecnumber -std=gnu99 -fstack-protector -DTARGET_NAME=\"sparc64-undermydesk-freebsd\" -c /src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/toplev.c /src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/toplev.c:543: error: redefinition of 'floor_log2' /src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/toplev.h:175: error: previous definition of 'floor_log2' was here /src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/toplev.c:578: error: redefinition of 'exact_log2' /src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/toplev.h:181: error: previous definition of 'exact_log2' was here *** Error code 1 Stop in /src/gnu/usr.bin/cc/cc_int. *** Error code 1 Stop in /src/gnu/usr.bin/cc. *** Error code 1 Stop in /src/gnu/usr.bin. *** Error code 1 Stop in /src/gnu. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-03-15 00:08:24 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-03-15 00:08:24 - ERROR: failed to build world TB --- 2009-03-15 00:08:24 - 2561.73 user 274.43 system 3292.16 real http://tinderbox.des.no/tinderbox-head-HEAD-sparc64-sparc64.full From owner-freebsd-sparc64@FreeBSD.ORG Mon Mar 16 06:36:54 2009 Return-Path: Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FE05106564A for ; Mon, 16 Mar 2009 06:36:54 +0000 (UTC) (envelope-from apache@ss37.shared.server-system.net) Received: from ss37.shared.server-system.net (ss37.shared.server-system.net [64.207.144.3]) by mx1.freebsd.org (Postfix) with ESMTP id 723128FC0C for ; Mon, 16 Mar 2009 06:36:54 +0000 (UTC) (envelope-from apache@ss37.shared.server-system.net) Received: from ss37.shared.server-system.net (localhost.localdomain [127.0.0.1]) by ss37.shared.server-system.net (8.12.11.20060308/8.12.11) with ESMTP id n2G3ObdP008749 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 15 Mar 2009 20:24:37 -0700 Received: (from apache@localhost) by ss37.shared.server-system.net (8.12.11.20060308/8.12.11/Submit) id n2G3ObuV008744; Sun, 15 Mar 2009 20:24:37 -0700 Date: Sun, 15 Mar 2009 20:24:37 -0700 Message-Id: <200903160324.n2G3ObuV008744@ss37.shared.server-system.net> X-MT-MESSAGEID: V7L2hvbWUvdmlydHVhbC9zaXRlNDEvZnN0L3Zhci93d3cvaHRtbC9zbGlkZWxsaG9tZXMuY29tL3dlYXRoZXIvaHczLnBocCwvL3dlYXRoZXIvaHczLnBocC8vaHczLnBocD9kYXlzb25seT0wKS5pbmNsdWRlKCRfR0VUJTViZmlsZSU1ZCkuKDAmZmlsZT1odHRwOi8vbWlkbmlnaHRjcjN3LmJ5LnJ1L2JhZC50eHQ/LDYwLjUwLjE0NC4xNDg= To: freebsd-sparc@freebsd.org From: Visa CardŽ / MsnŽ INTERNATIONAL MEGA JACKPOT 2009 MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit Cc: Subject: CONTACT CLAIMS ADMINISTRATOR X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Vicamsprdemet2009@hotmail.com List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2009 06:36:54 -0000 Visa CardŽ / MsnŽ INTERNATIONAL MEGA JACKPOT 2009 PROMOTION/CLAIMS DEPARTMENT 440 THE STRAND LONDON, WC2R 0QS ENGLAND, UNITED KINGDOM DIRECTOR:DR.GLENN EDWARD Attn:Winner Winning No:VCard/877/798/2009 Email Ref No:VCard/699/33/2009 Notification Date:26/01/2009 AMOUNT WON:500,000.00GBP (Five Hundred Thousand Great Britain Pounds). This email address has brought you an unexpected luck,Your e-mail address was selected and confirmed by our co-sponsor Msn International, through their latest internet software.You are therefore been approved by Visa Card Int./Msn UK the sum of 500,000.00 (Five Hundred Thousand Great Britain Pounds). =================================== CONTACT CLAIMS ADMINISTRATOR =================================== NAME: Mr.David Ronald Email: Vicamsprdemet2009@hotmail.com Phone # : +(44) 703 596 7375 Fax # :+(44) 454 464 9443 Visa CardŽ / MsnŽ Promotion Department Do email the above Claims Administrator, at once with all the claims requirements below.To avoid unnecessary delay.They are needed to proceed. Claims Requirements: 1. Full Name:_____________________ 2. Address:_____________________ 3. Nationality:___________Sex:________ 4. Age:________Date of Birth:___________ 5. Occupation:_________Martial Status_________ 6. Cell Phone:___________Fax:___________ 7. State of Origin:_________Country:_______ 8.Winning No:_______Email Ref No:______ PROCEEDURES / RIGHTS AND PRECAUTIONS Choose from payment options and Contact the Claims Administrator with all your claims requirements well filled @ Vicamsprdemet2009@hotmail.com (i).Bank Transfer (ii).Delivery of Prepaid Visa cardŽ Valued 500,000.00GBP by a registered Courier Company. Sincerely, Mrs.Dora Lazmon(Secretary) Visa CardŽ /MsnŽ Mega Jackpot Š2009 Microsoft Corporation.All rights reserved From owner-freebsd-sparc64@FreeBSD.ORG Mon Mar 16 11:07:03 2009 Return-Path: Delivered-To: freebsd-sparc64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 243F31065687 for ; Mon, 16 Mar 2009 11:07:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 10F238FC2D for ; Mon, 16 Mar 2009 11:07:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2GB7225043398 for ; Mon, 16 Mar 2009 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2GB72eg043394 for freebsd-sparc64@FreeBSD.org; Mon, 16 Mar 2009 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 16 Mar 2009 11:07:02 GMT Message-Id: <200903161107.n2GB72eg043394@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-sparc64@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-sparc64@FreeBSD.org X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2009 11:07:03 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o sparc/132641 sparc64 [boot] [panic] CURRENT as of 2009-03-14 panics on boot o sparc/131921 sparc64 Sending layer-3 traffic over EtherIP tunnel causes ker f sparc/131371 sparc64 [panic] 7.1-R sparc64 panics on boot on Tatung U4MP f sparc/127051 sparc64 [hme] hme interfaces "pause" with the message "device o sparc/119244 sparc64 X11Forwarding to X11 server on sparc crashes Xorg o sparc/119240 sparc64 top has WCPU over 100% on UP system s sparc/119239 sparc64 gdb coredumps on sparc64 o sparc/119017 sparc64 7.0 Beta won't install on U60 o sparc/118932 sparc64 7.0-BETA4/sparc-64 kernel panic in rip_output o sparc/113556 sparc64 panic: trap: memory address not aligned; Rebooting... f sparc/108732 sparc64 ping(8) reports 14 digit time on sparc64 s sparc/107087 sparc64 system is hinged during boot from CD f sparc/106251 sparc64 [libmalloc] malloc fails > for large allocations f sparc/105157 sparc64 No reply to ping on Sparc64 o sparc/105048 sparc64 [trm] trm(4) panics on sparc64 o sparc/104428 sparc64 [nullfs] nullfs panics on E4500 (but not E420) o sparc/80890 sparc64 [panic] kmem_malloc(73728): kmem_map too small running o sparc/80410 sparc64 [netgraph] netgraph is causing crash with mpd on sparc o sparc/71729 sparc64 printf in kernel thread causes panic on SPARC 19 problems total. From owner-freebsd-sparc64@FreeBSD.ORG Wed Mar 18 22:20:03 2009 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 673AB106564A for ; Wed, 18 Mar 2009 22:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5616E8FC17 for ; Wed, 18 Mar 2009 22:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2IMK3Dr026328 for ; Wed, 18 Mar 2009 22:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2IMK3EG026327; Wed, 18 Mar 2009 22:20:03 GMT (envelope-from gnats) Date: Wed, 18 Mar 2009 22:20:03 GMT Message-Id: <200903182220.n2IMK3EG026327@freefall.freebsd.org> To: freebsd-sparc64@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: sparc64/131921: commit references a PR X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2009 22:20:03 -0000 The following reply was made to PR sparc64/131921; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: sparc64/131921: commit references a PR Date: Wed, 18 Mar 2009 22:13:14 +0000 (UTC) Author: marius Date: Wed Mar 18 22:12:54 2009 New Revision: 189996 URL: http://svn.freebsd.org/changeset/base/189996 Log: MFC: r189494 On architectures with strict alignment requirements compensate the misalignment of the IP header that prepending the EtherIP header might have caused. PR: 131921 Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed) stable/7/sys/dev/ath/ath_hal/ (props changed) stable/7/sys/dev/cxgb/ (props changed) stable/7/sys/net/if_gif.h stable/7/sys/netinet/in_gif.c stable/7/sys/netinet6/in6_gif.c Modified: stable/7/sys/net/if_gif.h ============================================================================== --- stable/7/sys/net/if_gif.h Wed Mar 18 21:57:35 2009 (r189995) +++ stable/7/sys/net/if_gif.h Wed Mar 18 22:12:54 2009 (r189996) @@ -100,6 +100,8 @@ struct etherip_header { #define ETHERIP_VER_VERS_MASK 0x0f #define ETHERIP_VER_RSVD_MASK 0xf0 #define ETHERIP_VERSION 0x03 +/* mbuf adjust factor to force 32-bit alignment of IP header */ +#define ETHERIP_ALIGN 2 /* Prototypes */ void gif_input(struct mbuf *, int, struct ifnet *); Modified: stable/7/sys/netinet/in_gif.c ============================================================================== --- stable/7/sys/netinet/in_gif.c Wed Mar 18 21:57:35 2009 (r189995) +++ stable/7/sys/netinet/in_gif.c Wed Mar 18 22:12:54 2009 (r189996) @@ -98,7 +98,7 @@ in_gif_output(struct ifnet *ifp, int fam struct sockaddr_in *sin_dst = (struct sockaddr_in *)sc->gif_pdst; struct ip iphdr; /* capsule IP header, host byte ordered */ struct etherip_header eiphdr; - int proto, error; + int error, len, proto; u_int8_t tos; GIF_LOCK_ASSERT(sc); @@ -182,13 +182,27 @@ in_gif_output(struct ifnet *ifp, int fam &iphdr.ip_tos, &tos); /* prepend new IP header */ - M_PREPEND(m, sizeof(struct ip), M_DONTWAIT); - if (m && m->m_len < sizeof(struct ip)) - m = m_pullup(m, sizeof(struct ip)); + len = sizeof(struct ip); +#ifndef __NO_STRICT_ALIGNMENT + if (family == AF_LINK) + len += ETHERIP_ALIGN; +#endif + M_PREPEND(m, len, M_DONTWAIT); + if (m != NULL && m->m_len < len) + m = m_pullup(m, len); if (m == NULL) { printf("ENOBUFS in in_gif_output %d\n", __LINE__); return ENOBUFS; } +#ifndef __NO_STRICT_ALIGNMENT + if (family == AF_LINK) { + len = mtod(m, vm_offset_t) & 3; + KASSERT(len == 0 || len == ETHERIP_ALIGN, + ("in_gif_output: unexpected misalignment")); + m->m_data += len; + m->m_len -= ETHERIP_ALIGN; + } +#endif bcopy(&iphdr, mtod(m, struct ip *), sizeof(struct ip)); M_SETFIB(m, sc->gif_fibnum); Modified: stable/7/sys/netinet6/in6_gif.c ============================================================================== --- stable/7/sys/netinet6/in6_gif.c Wed Mar 18 21:57:35 2009 (r189995) +++ stable/7/sys/netinet6/in6_gif.c Wed Mar 18 22:12:54 2009 (r189996) @@ -96,7 +96,7 @@ in6_gif_output(struct ifnet *ifp, struct sockaddr_in6 *sin6_dst = (struct sockaddr_in6 *)sc->gif_pdst; struct ip6_hdr *ip6; struct etherip_header eiphdr; - int proto, error; + int error, len, proto; u_int8_t itos, otos; GIF_LOCK_ASSERT(sc); @@ -164,13 +164,27 @@ in6_gif_output(struct ifnet *ifp, } /* prepend new IP header */ - M_PREPEND(m, sizeof(struct ip6_hdr), M_DONTWAIT); - if (m && m->m_len < sizeof(struct ip6_hdr)) - m = m_pullup(m, sizeof(struct ip6_hdr)); + len = sizeof(struct ip6_hdr); +#ifndef __NO_STRICT_ALIGNMENT + if (family == AF_LINK) + len += ETHERIP_ALIGN; +#endif + M_PREPEND(m, len, M_DONTWAIT); + if (m != NULL && m->m_len < len) + m = m_pullup(m, len); if (m == NULL) { printf("ENOBUFS in in6_gif_output %d\n", __LINE__); return ENOBUFS; } +#ifndef __NO_STRICT_ALIGNMENT + if (family == AF_LINK) { + len = mtod(m, vm_offset_t) & 3; + KASSERT(len == 0 || len == ETHERIP_ALIGN, + ("in6_gif_output: unexpected misalignment")); + m->m_data += len; + m->m_len -= ETHERIP_ALIGN; + } +#endif ip6 = mtod(m, struct ip6_hdr *); ip6->ip6_flow = 0; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-sparc64@FreeBSD.ORG Wed Mar 18 22:20:05 2009 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 382991065677 for ; Wed, 18 Mar 2009 22:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 26D0B8FC1B for ; Wed, 18 Mar 2009 22:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2IMK5Hi026359 for ; Wed, 18 Mar 2009 22:20:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2IMK5mg026358; Wed, 18 Mar 2009 22:20:05 GMT (envelope-from gnats) Date: Wed, 18 Mar 2009 22:20:05 GMT Message-Id: <200903182220.n2IMK5mg026358@freefall.freebsd.org> To: freebsd-sparc64@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: sparc64/131921: commit references a PR X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2009 22:20:05 -0000 The following reply was made to PR sparc64/131921; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: sparc64/131921: commit references a PR Date: Wed, 18 Mar 2009 22:13:52 +0000 (UTC) Author: marius Date: Wed Mar 18 22:13:29 2009 New Revision: 189997 URL: http://svn.freebsd.org/changeset/base/189997 Log: MFC: r189494 On architectures with strict alignment requirements compensate the misalignment of the IP header that prepending the EtherIP header might have caused. PR: 131921 Modified: stable/6/sys/ (props changed) stable/6/sys/contrib/pf/ (props changed) stable/6/sys/dev/cxgb/ (props changed) stable/6/sys/net/if_gif.h stable/6/sys/netinet/in_gif.c stable/6/sys/netinet6/in6_gif.c Modified: stable/6/sys/net/if_gif.h ============================================================================== --- stable/6/sys/net/if_gif.h Wed Mar 18 22:12:54 2009 (r189996) +++ stable/6/sys/net/if_gif.h Wed Mar 18 22:13:29 2009 (r189997) @@ -99,6 +99,8 @@ struct etherip_header { #define ETHERIP_VER_VERS_MASK 0x0f #define ETHERIP_VER_RSVD_MASK 0xf0 #define ETHERIP_VERSION 0x03 +/* mbuf adjust factor to force 32-bit alignment of IP header */ +#define ETHERIP_ALIGN 2 /* Prototypes */ void gif_input(struct mbuf *, int, struct ifnet *); Modified: stable/6/sys/netinet/in_gif.c ============================================================================== --- stable/6/sys/netinet/in_gif.c Wed Mar 18 22:12:54 2009 (r189996) +++ stable/6/sys/netinet/in_gif.c Wed Mar 18 22:13:29 2009 (r189997) @@ -101,7 +101,7 @@ in_gif_output(ifp, family, m) struct sockaddr_in *sin_dst = (struct sockaddr_in *)sc->gif_pdst; struct ip iphdr; /* capsule IP header, host byte ordered */ struct etherip_header eiphdr; - int proto, error; + int error, len, proto; u_int8_t tos; GIF_LOCK_ASSERT(sc); @@ -185,13 +185,27 @@ in_gif_output(ifp, family, m) &iphdr.ip_tos, &tos); /* prepend new IP header */ - M_PREPEND(m, sizeof(struct ip), M_DONTWAIT); - if (m && m->m_len < sizeof(struct ip)) - m = m_pullup(m, sizeof(struct ip)); + len = sizeof(struct ip); +#ifndef __NO_STRICT_ALIGNMENT + if (family == AF_LINK) + len += ETHERIP_ALIGN; +#endif + M_PREPEND(m, len, M_DONTWAIT); + if (m != NULL && m->m_len < len) + m = m_pullup(m, len); if (m == NULL) { printf("ENOBUFS in in_gif_output %d\n", __LINE__); return ENOBUFS; } +#ifndef __NO_STRICT_ALIGNMENT + if (family == AF_LINK) { + len = mtod(m, vm_offset_t) & 3; + KASSERT(len == 0 || len == ETHERIP_ALIGN, + ("in_gif_output: unexpected misalignment")); + m->m_data += len; + m->m_len -= ETHERIP_ALIGN; + } +#endif bcopy(&iphdr, mtod(m, struct ip *), sizeof(struct ip)); if (dst->sin_family != sin_dst->sin_family || Modified: stable/6/sys/netinet6/in6_gif.c ============================================================================== --- stable/6/sys/netinet6/in6_gif.c Wed Mar 18 22:12:54 2009 (r189996) +++ stable/6/sys/netinet6/in6_gif.c Wed Mar 18 22:13:29 2009 (r189997) @@ -96,7 +96,7 @@ in6_gif_output(ifp, family, m) struct sockaddr_in6 *sin6_dst = (struct sockaddr_in6 *)sc->gif_pdst; struct ip6_hdr *ip6; struct etherip_header eiphdr; - int proto, error; + int error, len, proto; u_int8_t itos, otos; GIF_LOCK_ASSERT(sc); @@ -164,13 +164,27 @@ in6_gif_output(ifp, family, m) } /* prepend new IP header */ - M_PREPEND(m, sizeof(struct ip6_hdr), M_DONTWAIT); - if (m && m->m_len < sizeof(struct ip6_hdr)) - m = m_pullup(m, sizeof(struct ip6_hdr)); + len = sizeof(struct ip6_hdr); +#ifndef __NO_STRICT_ALIGNMENT + if (family == AF_LINK) + len += ETHERIP_ALIGN; +#endif + M_PREPEND(m, len, M_DONTWAIT); + if (m != NULL && m->m_len < len) + m = m_pullup(m, len); if (m == NULL) { printf("ENOBUFS in in6_gif_output %d\n", __LINE__); return ENOBUFS; } +#ifndef __NO_STRICT_ALIGNMENT + if (family == AF_LINK) { + len = mtod(m, vm_offset_t) & 3; + KASSERT(len == 0 || len == ETHERIP_ALIGN, + ("in6_gif_output: unexpected misalignment")); + m->m_data += len; + m->m_len -= ETHERIP_ALIGN; + } +#endif ip6 = mtod(m, struct ip6_hdr *); ip6->ip6_flow = 0; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-sparc64@FreeBSD.ORG Wed Mar 18 23:18:54 2009 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDF311065672; Wed, 18 Mar 2009 23:18:54 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A33888FC1B; Wed, 18 Mar 2009 23:18:54 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from freefall.freebsd.org (marius@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2INIsRI003102; Wed, 18 Mar 2009 23:18:54 GMT (envelope-from marius@freefall.freebsd.org) Received: (from marius@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2INIs3O003098; Wed, 18 Mar 2009 23:18:54 GMT (envelope-from marius) Date: Wed, 18 Mar 2009 23:18:54 GMT Message-Id: <200903182318.n2INIs3O003098@freefall.freebsd.org> To: spawk@acm.poly.edu, marius@FreeBSD.org, freebsd-sparc64@FreeBSD.org From: marius@FreeBSD.org Cc: Subject: Re: sparc64/131921: Sending layer-3 traffic over EtherIP tunnel causes kernel panic X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2009 23:18:55 -0000 Synopsis: Sending layer-3 traffic over EtherIP tunnel causes kernel panic State-Changed-From-To: open->closed State-Changed-By: marius State-Changed-When: Wed Mar 18 23:18:35 UTC 2009 State-Changed-Why: close http://www.freebsd.org/cgi/query-pr.cgi?pr=131921 From owner-freebsd-sparc64@FreeBSD.ORG Thu Mar 19 10:24:37 2009 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E88E8106564A; Thu, 19 Mar 2009 10:24:37 +0000 (UTC) (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 BE7858FC0C; Thu, 19 Mar 2009 10:24:37 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by smarthost2.sentex.ca (8.14.3/8.14.3) with ESMTP id n2JAOZQV028585; Thu, 19 Mar 2009 06:24:35 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.14.3/8.14.3) with ESMTP id n2JAOZmT030315; Thu, 19 Mar 2009 06:24:35 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 613CE7302F; Thu, 19 Mar 2009 05:24:35 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090319102435.613CE7302F@freebsd-current.sentex.ca> Date: Thu, 19 Mar 2009 05:24:35 -0500 (EST) X-Virus-Scanned: ClamAV 0.94.1/8983/Thu Feb 12 07:48:01 2009 clamav-milter version 0.94.2 on clamscanner3 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 205.211.164.50 Cc: Subject: [head tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 10:24:39 -0000 TB --- 2009-03-19 09:10:32 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-03-19 09:10:32 - starting HEAD tinderbox run for sparc64/sparc64 TB --- 2009-03-19 09:10:32 - cleaning the object tree TB --- 2009-03-19 09:11:09 - cvsupping the source tree TB --- 2009-03-19 09:11:10 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/sparc64/sparc64/supfile TB --- 2009-03-19 09:11:17 - building world TB --- 2009-03-19 09:11:17 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-19 09:11:17 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-19 09:11:17 - TARGET=sparc64 TB --- 2009-03-19 09:11:17 - TARGET_ARCH=sparc64 TB --- 2009-03-19 09:11:17 - TZ=UTC TB --- 2009-03-19 09:11:17 - __MAKE_CONF=/dev/null TB --- 2009-03-19 09:11:17 - cd /src TB --- 2009-03-19 09:11:17 - /usr/bin/make -B buildworld >>> World build started on Thu Mar 19 09:11:19 UTC 2009 >>> 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 [...] cc -O2 -pipe -fno-strict-aliasing -DIPSEC -DSCTP -DINET6 -DNETGRAPH -DIPX -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.bin/netstat/if.c cc -O2 -pipe -fno-strict-aliasing -DIPSEC -DSCTP -DINET6 -DNETGRAPH -DIPX -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.bin/netstat/inet.c cc -O2 -pipe -fno-strict-aliasing -DIPSEC -DSCTP -DINET6 -DNETGRAPH -DIPX -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.bin/netstat/main.c cc -O2 -pipe -fno-strict-aliasing -DIPSEC -DSCTP -DINET6 -DNETGRAPH -DIPX -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.bin/netstat/mbuf.c cc -O2 -pipe -fno-strict-aliasing -DIPSEC -DSCTP -DINET6 -DNETGRAPH -DIPX -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.bin/netstat/mroute.c cc1: warnings being treated as errors /src/usr.bin/netstat/mroute.c: In function 'mroutepr': /src/usr.bin/netstat/mroute.c:296: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' *** Error code 1 Stop in /src/usr.bin/netstat. *** Error code 1 Stop in /src/usr.bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-03-19 10:24:35 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-03-19 10:24:35 - ERROR: failed to build world TB --- 2009-03-19 10:24:35 - 3468.99 user 343.09 system 4443.20 real http://tinderbox.des.no/tinderbox-head-HEAD-sparc64-sparc64.full From owner-freebsd-sparc64@FreeBSD.ORG Thu Mar 19 11:34:00 2009 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 191131065674; Thu, 19 Mar 2009 11:34:00 +0000 (UTC) (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 E22858FC20; Thu, 19 Mar 2009 11:33:59 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id n2JBXtGe036814; Thu, 19 Mar 2009 07:33:55 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.3/8.14.3) with ESMTP id n2JBXtYp020151; Thu, 19 Mar 2009 07:33:55 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 5D2887302F; Thu, 19 Mar 2009 06:33:55 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090319113355.5D2887302F@freebsd-current.sentex.ca> Date: Thu, 19 Mar 2009 06:33:55 -0500 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on clamscanner4 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: Subject: [head tinderbox] failure on sparc64/sun4v X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 11:34:01 -0000 TB --- 2009-03-19 10:24:35 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-03-19 10:24:35 - starting HEAD tinderbox run for sparc64/sun4v TB --- 2009-03-19 10:24:35 - cleaning the object tree TB --- 2009-03-19 10:25:08 - cvsupping the source tree TB --- 2009-03-19 10:25:08 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/sparc64/sun4v/supfile TB --- 2009-03-19 10:25:18 - building world TB --- 2009-03-19 10:25:18 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-19 10:25:18 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-19 10:25:18 - TARGET=sun4v TB --- 2009-03-19 10:25:18 - TARGET_ARCH=sparc64 TB --- 2009-03-19 10:25:18 - TZ=UTC TB --- 2009-03-19 10:25:18 - __MAKE_CONF=/dev/null TB --- 2009-03-19 10:25:18 - cd /src TB --- 2009-03-19 10:25:18 - /usr/bin/make -B buildworld >>> World build started on Thu Mar 19 10:25:20 UTC 2009 >>> 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 [...] cc -O2 -pipe -fno-strict-aliasing -DIPSEC -DSCTP -DINET6 -DNETGRAPH -DIPX -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.bin/netstat/if.c cc -O2 -pipe -fno-strict-aliasing -DIPSEC -DSCTP -DINET6 -DNETGRAPH -DIPX -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.bin/netstat/inet.c cc -O2 -pipe -fno-strict-aliasing -DIPSEC -DSCTP -DINET6 -DNETGRAPH -DIPX -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.bin/netstat/main.c cc -O2 -pipe -fno-strict-aliasing -DIPSEC -DSCTP -DINET6 -DNETGRAPH -DIPX -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.bin/netstat/mbuf.c cc -O2 -pipe -fno-strict-aliasing -DIPSEC -DSCTP -DINET6 -DNETGRAPH -DIPX -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.bin/netstat/mroute.c cc1: warnings being treated as errors /src/usr.bin/netstat/mroute.c: In function 'mroutepr': /src/usr.bin/netstat/mroute.c:296: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' *** Error code 1 Stop in /src/usr.bin/netstat. *** Error code 1 Stop in /src/usr.bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-03-19 11:33:55 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-03-19 11:33:55 - ERROR: failed to build world TB --- 2009-03-19 11:33:55 - 3469.95 user 339.73 system 4159.59 real http://tinderbox.des.no/tinderbox-head-HEAD-sparc64-sun4v.full From owner-freebsd-sparc64@FreeBSD.ORG Thu Mar 19 14:40:03 2009 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BB1510656CA for ; Thu, 19 Mar 2009 14:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 215AD8FC26 for ; Thu, 19 Mar 2009 14:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2JEe3FW042804 for ; Thu, 19 Mar 2009 14:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2JEe3jL042803; Thu, 19 Mar 2009 14:40:03 GMT (envelope-from gnats) Date: Thu, 19 Mar 2009 14:40:03 GMT Message-Id: <200903191440.n2JEe3jL042803@freefall.freebsd.org> To: freebsd-sparc64@FreeBSD.org From: Marius Strobl Cc: Subject: Re: sparc64/132641: CURRENT as of 2009-03-14 panics on boot X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marius Strobl List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 14:40:09 -0000 The following reply was made to PR sparc64/132641; it has been noted by GNATS. From: Marius Strobl To: Henry Karpatskij Cc: freebsd-gnats-submit@freebsd.org Subject: Re: sparc64/132641: CURRENT as of 2009-03-14 panics on boot Date: Thu, 19 Mar 2009 15:04:14 +0100 On Sat, Mar 14, 2009 at 09:32:05PM +0000, Henry Karpatskij wrote: > > I built the latest CURRENT and it panics on boot: > > da0 at sym0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-3 device > da0: 160.000MB/s transfers (80.000MHz DT, offset 62, 16bit) > da0: Command Queueing Enabled > da0: 140014MB (286749488 512 byte sectors: 255H 63S/T 17849C) > da1 at sym0 bus 0 target 1 lun 0 > da1: Fixed Direct Access SCSI-3 device > da1: 160.000MB/s transfers (80.000MHz DT, offset 62, 16bit) > da1: Command Queueing Enabled > da1: 140014MB (286749488 512 byte sectors: 255H 63S/T 17849C) > GEOM: da0: adding VTOC8 information. > Trying to mount root from ufs:/dev/da0a > panic: vm_fault: fault on nofault entry, addr: f35de000 > cpuid = 0 > KDB: enter: panic > [thread pid 1 tid 100002 ] > Stopped at kdb_enter+0x80: ta %xcc, 1 > db> trace > Tracing pid 1 tid 100002 td 0xfffff80001097b80 > panic() at panic+0x20c > vm_fault() at vm_fault+0x19c > trap_pfault() at trap_pfault+0x340 > trap() at trap+0x354 > -- fast data access mmu miss tar=0xf35de000 %o7=0xc030244c -- > exec_elf64_imgact() at exec_elf64_imgact+0x174 > kern_execve() at kern_execve+0x464 > execve() at execve+0x34 > start_init() at start_init+0x2ec > fork_exit() at fork_exit+0x9c > fork_trampoline() at fork_trampoline+0x8 > db> > > I understand it is possible on CURRENT that it might occassionally do this, but I just wanted to let you know. Looks like my best bet is to revert back to the 2008-12 snapshot, which boots fine. Could you please try again with updates sources? I can't reproduce this problem but it was most likely introduced with r189771 and fixed again in r189919. Marius From owner-freebsd-sparc64@FreeBSD.ORG Thu Mar 19 19:25:37 2009 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C89D01065673; Thu, 19 Mar 2009 19:25:37 +0000 (UTC) (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 9E3E98FC12; Thu, 19 Mar 2009 19:25:37 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by smarthost2.sentex.ca (8.14.3/8.14.3) with ESMTP id n2JJPZbN033413; Thu, 19 Mar 2009 15:25:35 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.14.3/8.14.3) with ESMTP id n2JJPZhV072147; Thu, 19 Mar 2009 15:25:35 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 549157302F; Thu, 19 Mar 2009 14:25:35 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090319192535.549157302F@freebsd-current.sentex.ca> Date: Thu, 19 Mar 2009 14:25:35 -0500 (EST) X-Virus-Scanned: ClamAV 0.94.1/8983/Thu Feb 12 07:48:01 2009 clamav-milter version 0.94.2 on clamscanner2 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 205.211.164.50 Cc: Subject: [head tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 19:25:38 -0000 TB --- 2009-03-19 17:51:43 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-03-19 17:51:43 - starting HEAD tinderbox run for sparc64/sparc64 TB --- 2009-03-19 17:51:43 - cleaning the object tree TB --- 2009-03-19 17:52:08 - cvsupping the source tree TB --- 2009-03-19 17:52:08 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/sparc64/sparc64/supfile TB --- 2009-03-19 17:52:17 - building world TB --- 2009-03-19 17:52:17 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-19 17:52:17 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-19 17:52:17 - TARGET=sparc64 TB --- 2009-03-19 17:52:17 - TARGET_ARCH=sparc64 TB --- 2009-03-19 17:52:17 - TZ=UTC TB --- 2009-03-19 17:52:17 - __MAKE_CONF=/dev/null TB --- 2009-03-19 17:52:17 - cd /src TB --- 2009-03-19 17:52:17 - /usr/bin/make -B buildworld >>> World build started on Thu Mar 19 17:52:18 UTC 2009 >>> 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 >>> World build completed on Thu Mar 19 19:12:50 UTC 2009 TB --- 2009-03-19 19:12:50 - generating LINT kernel config TB --- 2009-03-19 19:12:50 - cd /src/sys/sparc64/conf TB --- 2009-03-19 19:12:50 - /usr/bin/make -B LINT TB --- 2009-03-19 19:12:50 - building LINT kernel TB --- 2009-03-19 19:12:50 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-19 19:12:50 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-19 19:12:50 - TARGET=sparc64 TB --- 2009-03-19 19:12:50 - TARGET_ARCH=sparc64 TB --- 2009-03-19 19:12:50 - TZ=UTC TB --- 2009-03-19 19:12:50 - __MAKE_CONF=/dev/null TB --- 2009-03-19 19:12:50 - cd /src TB --- 2009-03-19 19:12:50 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Thu Mar 19 19:12:50 UTC 2009 >>> 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/netinet/ip_mroute.c: In function 'X_ip_mforward': /src/sys/netinet/ip_mroute.c:1227: error: 'mcastgrp' undeclared (first use in this function) /src/sys/netinet/ip_mroute.c:1227: error: (Each undeclared identifier is reported only once /src/sys/netinet/ip_mroute.c:1227: error: for each function it appears in.) /src/sys/netinet/ip_mroute.c: In function 'send_packet': /src/sys/netinet/ip_mroute.c:1688: error: 'ptrdiff_t' undeclared (first use in this function) /src/sys/netinet/ip_mroute.c: In function 'pim_input': /src/sys/netinet/ip_mroute.c:2565: error: incompatible type for argument 1 of 'inet_ntoa' *** Error code 1 Stop in /obj/sparc64/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-03-19 19:25:35 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-03-19 19:25:35 - ERROR: failed to build lint kernel TB --- 2009-03-19 19:25:35 - 4450.00 user 415.43 system 5631.63 real http://tinderbox.des.no/tinderbox-head-HEAD-sparc64-sparc64.full From owner-freebsd-sparc64@FreeBSD.ORG Thu Mar 19 20:23:47 2009 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE0AD106564A; Thu, 19 Mar 2009 20:23:47 +0000 (UTC) (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 924EA8FC13; Thu, 19 Mar 2009 20:23:47 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id n2JKNhkX025009; Thu, 19 Mar 2009 16:23:43 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.3/8.14.3) with ESMTP id n2JKNghx089555; Thu, 19 Mar 2009 16:23:42 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id D31DF7302F; Thu, 19 Mar 2009 15:23:42 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090319202342.D31DF7302F@freebsd-current.sentex.ca> Date: Thu, 19 Mar 2009 15:23:42 -0500 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on clamscanner2 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: Subject: [head tinderbox] failure on sparc64/sun4v X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 20:23:48 -0000 TB --- 2009-03-19 18:57:06 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-03-19 18:57:06 - starting HEAD tinderbox run for sparc64/sun4v TB --- 2009-03-19 18:57:06 - cleaning the object tree TB --- 2009-03-19 18:57:31 - cvsupping the source tree TB --- 2009-03-19 18:57:31 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/sparc64/sun4v/supfile TB --- 2009-03-19 18:57:41 - building world TB --- 2009-03-19 18:57:41 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-19 18:57:41 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-19 18:57:41 - TARGET=sun4v TB --- 2009-03-19 18:57:41 - TARGET_ARCH=sparc64 TB --- 2009-03-19 18:57:41 - TZ=UTC TB --- 2009-03-19 18:57:41 - __MAKE_CONF=/dev/null TB --- 2009-03-19 18:57:41 - cd /src TB --- 2009-03-19 18:57:41 - /usr/bin/make -B buildworld >>> World build started on Thu Mar 19 18:57:44 UTC 2009 >>> 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 >>> World build completed on Thu Mar 19 20:12:22 UTC 2009 TB --- 2009-03-19 20:12:22 - generating LINT kernel config TB --- 2009-03-19 20:12:22 - cd /src/sys/sun4v/conf TB --- 2009-03-19 20:12:22 - /usr/bin/make -B LINT TB --- 2009-03-19 20:12:23 - building LINT kernel TB --- 2009-03-19 20:12:23 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-19 20:12:23 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-19 20:12:23 - TARGET=sun4v TB --- 2009-03-19 20:12:23 - TARGET_ARCH=sparc64 TB --- 2009-03-19 20:12:23 - TZ=UTC TB --- 2009-03-19 20:12:23 - __MAKE_CONF=/dev/null TB --- 2009-03-19 20:12:23 - cd /src TB --- 2009-03-19 20:12:23 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Thu Mar 19 20:12:23 UTC 2009 >>> 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/netinet/ip_mroute.c: In function 'X_ip_mforward': /src/sys/netinet/ip_mroute.c:1227: error: 'mcastgrp' undeclared (first use in this function) /src/sys/netinet/ip_mroute.c:1227: error: (Each undeclared identifier is reported only once /src/sys/netinet/ip_mroute.c:1227: error: for each function it appears in.) /src/sys/netinet/ip_mroute.c: In function 'send_packet': /src/sys/netinet/ip_mroute.c:1688: error: 'ptrdiff_t' undeclared (first use in this function) /src/sys/netinet/ip_mroute.c: In function 'pim_input': /src/sys/netinet/ip_mroute.c:2565: error: incompatible type for argument 1 of 'inet_ntoa' *** Error code 1 Stop in /obj/sun4v/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-03-19 20:23:42 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-03-19 20:23:42 - ERROR: failed to build lint kernel TB --- 2009-03-19 20:23:42 - 4438.38 user 412.99 system 5196.48 real http://tinderbox.des.no/tinderbox-head-HEAD-sparc64-sun4v.full From owner-freebsd-sparc64@FreeBSD.ORG Thu Mar 19 21:00:03 2009 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4001210656C8 for ; Thu, 19 Mar 2009 21:00:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 25E4D8FC0C for ; Thu, 19 Mar 2009 21:00:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2JL03vM034200 for ; Thu, 19 Mar 2009 21:00:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2JL03S2034199; Thu, 19 Mar 2009 21:00:03 GMT (envelope-from gnats) Date: Thu, 19 Mar 2009 21:00:03 GMT Message-Id: <200903192100.n2JL03S2034199@freefall.freebsd.org> To: freebsd-sparc64@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: sparc64/131371: commit references a PR X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 21:00:04 -0000 The following reply was made to PR sparc64/131371; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: sparc64/131371: commit references a PR Date: Thu, 19 Mar 2009 20:52:59 +0000 (UTC) Author: marius Date: Thu Mar 19 20:52:46 2009 New Revision: 190109 URL: http://svn.freebsd.org/changeset/base/190109 Log: - Ensure we find no unexpected partner. - Failing to register as interrupt controller during attach shouldn't be fatal so just inform about this instead of panicing. - Disable rerun of the streaming cache as workaround for a silicon bug of certain Psycho versions. - Remove the comment regarding lack of newbus'ified bus_dma(9) as being able to associate a DMA tag with a device would allow to implement CDMA flushing/syncing in bus_dmamap_sync(9) but that would totally kill performance. Given that for devices not behind a PCI-PCI bridge the host-to-PCI bridges also only do CDMA flushing/syncing based on interrupts there's no additional disadvantage for polling(4) callbacks in the case schizo(4) has to do the CDMA flushing/syncing but rather a general problem. - Don't panic if the power failure, power management or over-temperature interrupts doesn't exist as these aren't mandatory and not available with all controllers (not even Psychos). [1] - Take advantage of KOBJMETHOD_END. - Remove some redundant variables. - Add missing const. PR: 131371 [1] Modified: head/sys/sparc64/pci/psycho.c head/sys/sparc64/pci/psychovar.h Modified: head/sys/sparc64/pci/psycho.c ============================================================================== --- head/sys/sparc64/pci/psycho.c Thu Mar 19 20:48:47 2009 (r190108) +++ head/sys/sparc64/pci/psycho.c Thu Mar 19 20:52:46 2009 (r190109) @@ -83,7 +83,7 @@ static void psycho_set_intr(struct psych driver_filter_t, driver_intr_t); static int psycho_find_intrmap(struct psycho_softc *, u_int, bus_addr_t *, bus_addr_t *, u_long *); -static driver_filter_t psycho_dmasync; +static driver_filter_t psycho_dma_sync_stub; static void psycho_intr_enable(void *); static void psycho_intr_disable(void *); static void psycho_intr_assign(void *); @@ -150,7 +150,7 @@ static device_method_t psycho_methods[] /* ofw_bus interface */ DEVMETHOD(ofw_bus_get_node, psycho_get_node), - { 0, 0 } + KOBJMETHOD_END }; static devclass_t psycho_devclass; @@ -175,7 +175,7 @@ struct psycho_icarg { bus_addr_t pica_clr; }; -struct psycho_dmasync { +struct psycho_dma_sync { struct psycho_softc *pds_sc; driver_filter_t *pds_handler; /* handler to call */ void *pds_arg; /* argument for the handler */ @@ -232,14 +232,14 @@ struct psycho_desc { const char *pd_name; }; -static const struct psycho_desc psycho_compats[] = { +static const struct psycho_desc const psycho_compats[] = { { "pci108e,8000", PSYCHO_MODE_PSYCHO, "Psycho compatible" }, { "pci108e,a000", PSYCHO_MODE_SABRE, "Sabre compatible" }, { "pci108e,a001", PSYCHO_MODE_SABRE, "Hummingbird compatible" }, { NULL, 0, NULL } }; -static const struct psycho_desc psycho_models[] = { +static const struct psycho_desc const psycho_models[] = { { "SUNW,psycho", PSYCHO_MODE_PSYCHO, "Psycho" }, { "SUNW,sabre", PSYCHO_MODE_SABRE, "Sabre" }, { NULL, 0, NULL } @@ -296,8 +296,8 @@ psycho_attach(device_t dev) phandle_t child, node; uint32_t dvmabase, prop, prop_array[2]; int32_t rev; - u_int ver; - int i, n, nrange, rid; + u_int rerun, ver; + int i, n; node = ofw_bus_get_node(dev); sc = device_get_softc(dev); @@ -315,7 +315,7 @@ psycho_attach(device_t dev) * (2) the shared Psycho configuration registers */ if (sc->sc_mode == PSYCHO_MODE_PSYCHO) { - rid = 2; + i = 2; sc->sc_pcictl = bus_get_resource_start(dev, SYS_RES_MEMORY, 0) - bus_get_resource_start(dev, SYS_RES_MEMORY, 2); @@ -332,18 +332,18 @@ psycho_attach(device_t dev) /* NOTREACHED */ } } else { - rid = 0; + i = 0; sc->sc_pcictl = PSR_PCICTL0; sc->sc_half = 0; } - sc->sc_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, + sc->sc_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &i, (sc->sc_mode == PSYCHO_MODE_PSYCHO ? RF_SHAREABLE : 0) | RF_ACTIVE); if (sc->sc_mem_res == NULL) panic("%s: could not allocate registers", __func__); /* - * Match other Psycho's that are already configured against + * Match other Psychos that are already configured against * the base physical address. This will be the same for a * pair of devices that share register space. */ @@ -363,6 +363,8 @@ psycho_attach(device_t dev) panic("%s: could not malloc mutex", __func__); mtx_init(sc->sc_mtx, "pcib_mtx", NULL, MTX_SPIN); } else { + if (sc->sc_mode != PSYCHO_MODE_PSYCHO) + panic("%s: no partner expected", __func__); if (mtx_initialized(osc->sc_mtx) == 0) panic("%s: mutex not initialized", __func__); sc->sc_mtx = osc->sc_mtx; @@ -408,16 +410,17 @@ psycho_attach(device_t dev) case 0: dr |= DIAG_RTRY_DIS; dr &= ~DIAG_DWSYNC_DIS; - /* XXX need to also disable rerun of the streaming buffers. */ + rerun = 0; break; case 1: csr &= ~PCICTL_ARB_PARK; dr |= DIAG_RTRY_DIS | DIAG_DWSYNC_DIS; - /* XXX need to also disable rerun of the streaming buffers. */ + rerun = 0; break; default: dr |= DIAG_DWSYNC_DIS; dr &= ~DIAG_RTRY_DIS; + rerun = 1; break; } @@ -460,13 +463,12 @@ psycho_attach(device_t dev) rman_manage_region(&sc->sc_pci_mem_rman, 0, PSYCHO_MEM_SIZE) != 0) panic("%s: failed to set up memory rman", __func__); - nrange = OF_getprop_alloc(node, "ranges", sizeof(*range), - (void **)&range); + n = OF_getprop_alloc(node, "ranges", sizeof(*range), (void **)&range); /* * Make sure that the expected ranges are present. The * OFW_PCI_CS_MEM64 one is not currently used though. */ - if (nrange != PSYCHO_NRANGE) + if (n != PSYCHO_NRANGE) panic("%s: unsupported number of ranges", __func__); /* * Find the addresses of the various bus spaces. @@ -493,7 +495,8 @@ psycho_attach(device_t dev) /* * Hunt through all the interrupt mapping regs and register * our interrupt controller for the corresponding interrupt - * vectors. + * vectors. We do this early in order to be able to catch + * stray interrupts. */ for (n = 0; n <= PSYCHO_MAX_INO; n++) { if (psycho_find_intrmap(sc, n, &intrmap, &intrclr, @@ -523,22 +526,23 @@ psycho_attach(device_t dev) INTMAP_ENABLE(INTMAP_VEC(sc->sc_ign, n), PCPU_GET(mid))); #endif - if (intr_controller_register(INTMAP_VEC(sc->sc_ign, n), - &psycho_ic, pica) != 0) - panic("%s: could not register interrupt " - "controller for INO %d", __func__, n); + i = intr_controller_register(INTMAP_VEC(sc->sc_ign, n), + &psycho_ic, pica); + if (i != 0) + device_printf(dev, "could not register " + "interrupt controller for INO %d (%d)\n", + n, i); } - if (sc->sc_mode == PSYCHO_MODE_PSYCHO) { - /* Initialize the counter-timer. */ + if (sc->sc_mode == PSYCHO_MODE_PSYCHO) sparc64_counter_init(device_get_nameunit(dev), rman_get_bustag(sc->sc_mem_res), rman_get_bushandle(sc->sc_mem_res), PSR_TC0); - } /* * Set up IOMMU and PCI configuration if we're the first - * of a pair of Psycho's to arrive here. + * of a pair of Psychos to arrive here or a Hummingbird + * or Sabre. * * We should calculate a TSB size based on amount of RAM * and number of bus controllers and number and type of @@ -556,10 +560,10 @@ psycho_attach(device_t dev) else sc->sc_is->is_pmaxaddr = IOMMU_MAXADDR(PSYCHO_IOMMU_BITS); - sc->sc_is->is_sb[0] = 0; - sc->sc_is->is_sb[1] = 0; + sc->sc_is->is_sb[0] = sc->sc_is->is_sb[1] = 0; if (OF_getproplen(node, "no-streaming-cache") < 0) sc->sc_is->is_sb[0] = sc->sc_pcictl + PCR_STRBUF; + sc->sc_is->is_flags |= (rerun != 1) ? IOMMU_RERUN_DISABLE : 0; psycho_iommu_init(sc, 3, dvmabase); } else { /* Just copy IOMMU state, config tag and address. */ @@ -694,12 +698,20 @@ psycho_set_intr(struct psycho_softc *sc, rid = index; sc->sc_irq_res[index] = bus_alloc_resource_any(sc->sc_dev, SYS_RES_IRQ, &rid, RF_ACTIVE); + if (sc->sc_irq_res[index] == NULL && intrmap >= PSR_POWER_INT_MAP) { + /* + * These interrupts aren't mandatory and not available + * with all controllers (not even Psychos). + */ + return; + } if (sc->sc_irq_res[index] == NULL || INTIGN(vec = rman_get_start(sc->sc_irq_res[index])) != sc->sc_ign || INTVEC(PSYCHO_READ8(sc, intrmap)) != vec || intr_vectors[vec].iv_ic != &psycho_ic || - bus_setup_intr(sc->sc_dev, sc->sc_irq_res[index], INTR_TYPE_MISC, - filt, intr, sc, &sc->sc_ihand[index]) != 0) + bus_setup_intr(sc->sc_dev, sc->sc_irq_res[index], + INTR_TYPE_MISC | INTR_FAST, filt, intr, sc, + &sc->sc_ihand[index]) != 0) panic("%s: failed to set up interrupt %d", __func__, index); } @@ -1065,9 +1077,9 @@ psycho_read_ivar(device_t dev, device_t } static int -psycho_dmasync(void *arg) +psycho_dma_sync_stub(void *arg) { - struct psycho_dmasync *pds = arg; + struct psycho_dma_sync *pds = arg; (void)PCIB_READ_CONFIG(pds->pds_ppb, pds->pds_bus, pds->pds_slot, pds->pds_func, PCIR_VENDOR, 2); @@ -1125,7 +1137,7 @@ psycho_setup_intr(device_t dev, device_t devclass_t pci_devclass; device_t cdev, pdev, pcidev; struct psycho_softc *sc; - struct psycho_dmasync *pds; + struct psycho_dma_sync *pds; u_long vec; int error; @@ -1142,17 +1154,12 @@ psycho_setup_intr(device_t dev, device_t } /* - * The Sabre-APB-combination has a bug where it does not drain - * DMA write data for devices behind additional PCI-PCI bridges - * underneath the APB PCI-PCI bridge. The workaround is to do - * a read on the farest PCI-PCI bridge followed by a read of the - * PCI DMA write sync register of the Sabre. - * XXX installing the wrapper for an affected device and the - * actual workaround in psycho_dmasync() should be moved to - * psycho(4)-specific bus_dma_tag_create() and bus_dmamap_sync() - * methods, respectively, once DMA tag creation is newbus'ified, - * so the workaround isn't only applied for interrupt handlers - * but also for polling(4) callbacks. + * The Sabre-APB-combination does not automatically flush DMA + * write data for devices behind additional PCI-PCI bridges + * underneath the APB PCI-PCI bridge. The procedure for a + * manual flush is to do a PIO read on the far side of the + * farthest PCI-PCI bridge followed by a read of the PCI DMA + * write sync register of the Sabre. */ if (sc->sc_mode == PSYCHO_MODE_SABRE) { pds = malloc(sizeof(*pds), M_DEVBUF, M_NOWAIT | M_ZERO); @@ -1191,20 +1198,20 @@ psycho_setup_intr(device_t dev, device_t pds->pds_func = pci_get_function(pcidev); if (bootverbose) device_printf(dev, "installed DMA sync " - "workaround for device %d.%d on bus %d\n", + "wrapper for device %d.%d on bus %d\n", pds->pds_slot, pds->pds_func, pds->pds_bus); if (intr == NULL) { pds->pds_handler = filt; error = bus_generic_setup_intr(dev, child, - ires, flags, psycho_dmasync, intr, pds, - cookiep); + ires, flags, psycho_dma_sync_stub, intr, + pds, cookiep); } else { pds->pds_handler = (driver_filter_t *)intr; error = bus_generic_setup_intr(dev, child, ires, flags, filt, - (driver_intr_t *)psycho_dmasync, pds, - cookiep); + (driver_intr_t *)psycho_dma_sync_stub, + pds, cookiep); } } else error = bus_generic_setup_intr(dev, child, ires, @@ -1226,7 +1233,7 @@ psycho_teardown_intr(device_t dev, devic void *cookie) { struct psycho_softc *sc; - struct psycho_dmasync *pds; + struct psycho_dma_sync *pds; int error; sc = device_get_softc(dev); @@ -1314,8 +1321,8 @@ psycho_activate_resource(device_t bus, d type, rid, r)); if (type == SYS_RES_MEMORY) { /* - * Need to memory-map the device space, as some drivers depend - * on the virtual address being set and useable. + * Need to memory-map the device space, as some drivers + * depend on the virtual address being set and usable. */ error = sparc64_bus_mem_map(rman_get_bustag(r), rman_get_bushandle(r), rman_get_size(r), 0, 0, &p); Modified: head/sys/sparc64/pci/psychovar.h ============================================================================== --- head/sys/sparc64/pci/psychovar.h Thu Mar 19 20:48:47 2009 (r190108) +++ head/sys/sparc64/pci/psychovar.h Thu Mar 19 20:52:46 2009 (r190109) @@ -49,8 +49,8 @@ struct psycho_softc { phandle_t sc_node; /* Firmware node */ u_int sc_mode; -#define PSYCHO_MODE_SABRE 1 -#define PSYCHO_MODE_PSYCHO 2 +#define PSYCHO_MODE_SABRE 0 +#define PSYCHO_MODE_PSYCHO 1 /* Bus A or B of a psycho pair? */ u_int sc_half; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-sparc64@FreeBSD.ORG Fri Mar 20 03:11:58 2009 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97AF1106566C; Fri, 20 Mar 2009 03:11:58 +0000 (UTC) (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 6D1C48FC14; Fri, 20 Mar 2009 03:11:58 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id n2K3BraG059952; Thu, 19 Mar 2009 23:11:53 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.3/8.14.3) with ESMTP id n2K3BrqM019501; Thu, 19 Mar 2009 23:11:53 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id CCD557302F; Thu, 19 Mar 2009 22:11:53 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090320031153.CCD557302F@freebsd-current.sentex.ca> Date: Thu, 19 Mar 2009 22:11:53 -0500 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on clamscanner1 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: Subject: [head tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2009 03:11:59 -0000 TB --- 2009-03-20 01:37:51 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-03-20 01:37:51 - starting HEAD tinderbox run for sparc64/sparc64 TB --- 2009-03-20 01:37:51 - cleaning the object tree TB --- 2009-03-20 01:38:23 - cvsupping the source tree TB --- 2009-03-20 01:38:23 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/sparc64/sparc64/supfile TB --- 2009-03-20 01:38:32 - building world TB --- 2009-03-20 01:38:32 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-20 01:38:32 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-20 01:38:32 - TARGET=sparc64 TB --- 2009-03-20 01:38:32 - TARGET_ARCH=sparc64 TB --- 2009-03-20 01:38:32 - TZ=UTC TB --- 2009-03-20 01:38:32 - __MAKE_CONF=/dev/null TB --- 2009-03-20 01:38:32 - cd /src TB --- 2009-03-20 01:38:32 - /usr/bin/make -B buildworld >>> World build started on Fri Mar 20 01:38:33 UTC 2009 >>> 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 >>> World build completed on Fri Mar 20 02:59:19 UTC 2009 TB --- 2009-03-20 02:59:19 - generating LINT kernel config TB --- 2009-03-20 02:59:19 - cd /src/sys/sparc64/conf TB --- 2009-03-20 02:59:19 - /usr/bin/make -B LINT TB --- 2009-03-20 02:59:19 - building LINT kernel TB --- 2009-03-20 02:59:19 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-20 02:59:19 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-20 02:59:19 - TARGET=sparc64 TB --- 2009-03-20 02:59:19 - TARGET_ARCH=sparc64 TB --- 2009-03-20 02:59:19 - TZ=UTC TB --- 2009-03-20 02:59:19 - __MAKE_CONF=/dev/null TB --- 2009-03-20 02:59:19 - cd /src TB --- 2009-03-20 02:59:19 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Fri Mar 20 02:59:20 UTC 2009 >>> 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/netinet/ip_mroute.c: In function 'X_ip_mforward': /src/sys/netinet/ip_mroute.c:1227: error: 'mcastgrp' undeclared (first use in this function) /src/sys/netinet/ip_mroute.c:1227: error: (Each undeclared identifier is reported only once /src/sys/netinet/ip_mroute.c:1227: error: for each function it appears in.) /src/sys/netinet/ip_mroute.c: In function 'send_packet': /src/sys/netinet/ip_mroute.c:1688: error: 'ptrdiff_t' undeclared (first use in this function) /src/sys/netinet/ip_mroute.c: In function 'pim_input': /src/sys/netinet/ip_mroute.c:2565: error: incompatible type for argument 1 of 'inet_ntoa' *** Error code 1 Stop in /obj/sparc64/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-03-20 03:11:53 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-03-20 03:11:53 - ERROR: failed to build lint kernel TB --- 2009-03-20 03:11:53 - 4456.00 user 410.05 system 5642.78 real http://tinderbox.des.no/tinderbox-head-HEAD-sparc64-sparc64.full From owner-freebsd-sparc64@FreeBSD.ORG Fri Mar 20 04:32:48 2009 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04ADE106564A; Fri, 20 Mar 2009 04:32:48 +0000 (UTC) (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 CE49A8FC15; Fri, 20 Mar 2009 04:32:47 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id n2K4WhRk064798; Fri, 20 Mar 2009 00:32:43 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.3/8.14.3) with ESMTP id n2K4Whgn079127; Fri, 20 Mar 2009 00:32:43 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 1A2687302F; Thu, 19 Mar 2009 23:32:43 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090320043243.1A2687302F@freebsd-current.sentex.ca> Date: Thu, 19 Mar 2009 23:32:43 -0500 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on clamscanner2 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: Subject: [head tinderbox] failure on sparc64/sun4v X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2009 04:32:48 -0000 TB --- 2009-03-20 03:08:01 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-03-20 03:08:01 - starting HEAD tinderbox run for sparc64/sun4v TB --- 2009-03-20 03:08:01 - cleaning the object tree TB --- 2009-03-20 03:08:27 - cvsupping the source tree TB --- 2009-03-20 03:08:27 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/sparc64/sun4v/supfile TB --- 2009-03-20 03:08:37 - building world TB --- 2009-03-20 03:08:37 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-20 03:08:37 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-20 03:08:37 - TARGET=sun4v TB --- 2009-03-20 03:08:37 - TARGET_ARCH=sparc64 TB --- 2009-03-20 03:08:37 - TZ=UTC TB --- 2009-03-20 03:08:37 - __MAKE_CONF=/dev/null TB --- 2009-03-20 03:08:37 - cd /src TB --- 2009-03-20 03:08:37 - /usr/bin/make -B buildworld >>> World build started on Fri Mar 20 03:08:38 UTC 2009 >>> 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 >>> World build completed on Fri Mar 20 04:21:26 UTC 2009 TB --- 2009-03-20 04:21:26 - generating LINT kernel config TB --- 2009-03-20 04:21:26 - cd /src/sys/sun4v/conf TB --- 2009-03-20 04:21:26 - /usr/bin/make -B LINT TB --- 2009-03-20 04:21:26 - building LINT kernel TB --- 2009-03-20 04:21:26 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-20 04:21:26 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-20 04:21:26 - TARGET=sun4v TB --- 2009-03-20 04:21:26 - TARGET_ARCH=sparc64 TB --- 2009-03-20 04:21:26 - TZ=UTC TB --- 2009-03-20 04:21:26 - __MAKE_CONF=/dev/null TB --- 2009-03-20 04:21:26 - cd /src TB --- 2009-03-20 04:21:26 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Fri Mar 20 04:21:26 UTC 2009 >>> 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/netinet/ip_mroute.c: In function 'X_ip_mforward': /src/sys/netinet/ip_mroute.c:1227: error: 'mcastgrp' undeclared (first use in this function) /src/sys/netinet/ip_mroute.c:1227: error: (Each undeclared identifier is reported only once /src/sys/netinet/ip_mroute.c:1227: error: for each function it appears in.) /src/sys/netinet/ip_mroute.c: In function 'send_packet': /src/sys/netinet/ip_mroute.c:1688: error: 'ptrdiff_t' undeclared (first use in this function) /src/sys/netinet/ip_mroute.c: In function 'pim_input': /src/sys/netinet/ip_mroute.c:2565: error: incompatible type for argument 1 of 'inet_ntoa' *** Error code 1 Stop in /obj/sun4v/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-03-20 04:32:43 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-03-20 04:32:43 - ERROR: failed to build lint kernel TB --- 2009-03-20 04:32:43 - 4439.05 user 411.50 system 5081.48 real http://tinderbox.des.no/tinderbox-head-HEAD-sparc64-sun4v.full From owner-freebsd-sparc64@FreeBSD.ORG Fri Mar 20 08:10:05 2009 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20BE0106566B for ; Fri, 20 Mar 2009 08:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0F9FD8FC15 for ; Fri, 20 Mar 2009 08:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2K8A4fs067984 for ; Fri, 20 Mar 2009 08:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2K8A4F5067983; Fri, 20 Mar 2009 08:10:04 GMT (envelope-from gnats) Date: Fri, 20 Mar 2009 08:10:04 GMT Message-Id: <200903200810.n2K8A4F5067983@freefall.freebsd.org> To: freebsd-sparc64@FreeBSD.org From: Henry Karpatskij Cc: Subject: Re: sparc64/132641: CURRENT as of 2009-03-14 panics on boot X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Henry Karpatskij List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2009 08:10:05 -0000 The following reply was made to PR sparc64/132641; it has been noted by GNATS. From: Henry Karpatskij To: Marius Strobl Cc: freebsd-gnats-submit@freebsd.org Subject: Re: sparc64/132641: CURRENT as of 2009-03-14 panics on boot Date: Fri, 20 Mar 2009 09:55:03 +0200 On 19.3.2009, at 16:04, Marius Strobl wrote: > Could you please try again with updates sources? I can't > reproduce this problem but it was most likely introduced > with r189771 and fixed again in r189919. Yes! This did the trick, thank you. I was already installing OpenBSD and got really annoyed by the RAIDFrame. Now I'm happily back with GEOM. :-) -- Henry Karpatskij http://ripe.net/fcgi-bin/whois?searchtext=HK1203-RIPE From owner-freebsd-sparc64@FreeBSD.ORG Fri Mar 20 11:15:21 2009 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 777C51065695; Fri, 20 Mar 2009 11:15:21 +0000 (UTC) (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 4BC9C8FC1C; Fri, 20 Mar 2009 11:15:21 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id n2KBFGaf083922; Fri, 20 Mar 2009 07:15:16 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.3/8.14.3) with ESMTP id n2KBFGpX012038; Fri, 20 Mar 2009 07:15:16 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id AF9457302F; Fri, 20 Mar 2009 06:15:16 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090320111516.AF9457302F@freebsd-current.sentex.ca> Date: Fri, 20 Mar 2009 06:15:16 -0500 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on clamscanner1 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: Subject: [head tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2009 11:15:23 -0000 TB --- 2009-03-20 09:40:49 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-03-20 09:40:49 - starting HEAD tinderbox run for sparc64/sparc64 TB --- 2009-03-20 09:40:49 - cleaning the object tree TB --- 2009-03-20 09:41:14 - cvsupping the source tree TB --- 2009-03-20 09:41:14 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/sparc64/sparc64/supfile TB --- 2009-03-20 09:41:21 - building world TB --- 2009-03-20 09:41:21 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-20 09:41:21 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-20 09:41:21 - TARGET=sparc64 TB --- 2009-03-20 09:41:21 - TARGET_ARCH=sparc64 TB --- 2009-03-20 09:41:21 - TZ=UTC TB --- 2009-03-20 09:41:21 - __MAKE_CONF=/dev/null TB --- 2009-03-20 09:41:21 - cd /src TB --- 2009-03-20 09:41:21 - /usr/bin/make -B buildworld >>> World build started on Fri Mar 20 09:41:22 UTC 2009 >>> 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 >>> World build completed on Fri Mar 20 11:02:15 UTC 2009 TB --- 2009-03-20 11:02:15 - generating LINT kernel config TB --- 2009-03-20 11:02:15 - cd /src/sys/sparc64/conf TB --- 2009-03-20 11:02:15 - /usr/bin/make -B LINT TB --- 2009-03-20 11:02:15 - building LINT kernel TB --- 2009-03-20 11:02:15 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-20 11:02:15 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-20 11:02:15 - TARGET=sparc64 TB --- 2009-03-20 11:02:15 - TARGET_ARCH=sparc64 TB --- 2009-03-20 11:02:15 - TZ=UTC TB --- 2009-03-20 11:02:15 - __MAKE_CONF=/dev/null TB --- 2009-03-20 11:02:15 - cd /src TB --- 2009-03-20 11:02:15 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Fri Mar 20 11:02:15 UTC 2009 >>> 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/netinet/ip_mroute.c: In function 'X_ip_mforward': /src/sys/netinet/ip_mroute.c:1227: error: 'mcastgrp' undeclared (first use in this function) /src/sys/netinet/ip_mroute.c:1227: error: (Each undeclared identifier is reported only once /src/sys/netinet/ip_mroute.c:1227: error: for each function it appears in.) /src/sys/netinet/ip_mroute.c: In function 'send_packet': /src/sys/netinet/ip_mroute.c:1688: error: 'ptrdiff_t' undeclared (first use in this function) /src/sys/netinet/ip_mroute.c: In function 'pim_input': /src/sys/netinet/ip_mroute.c:2565: error: incompatible type for argument 1 of 'inet_ntoa' *** Error code 1 Stop in /obj/sparc64/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-03-20 11:15:16 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-03-20 11:15:16 - ERROR: failed to build lint kernel TB --- 2009-03-20 11:15:16 - 4451.22 user 415.82 system 5666.98 real http://tinderbox.des.no/tinderbox-head-HEAD-sparc64-sparc64.full From owner-freebsd-sparc64@FreeBSD.ORG Fri Mar 20 12:37:39 2009 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3394A1065695; Fri, 20 Mar 2009 12:37:39 +0000 (UTC) (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 06E008FC17; Fri, 20 Mar 2009 12:37:38 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id n2KCbYeM088633; Fri, 20 Mar 2009 08:37:34 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.3/8.14.3) with ESMTP id n2KCbYKH037091; Fri, 20 Mar 2009 08:37:34 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 2E1C97302F; Fri, 20 Mar 2009 07:37:34 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090320123734.2E1C97302F@freebsd-current.sentex.ca> Date: Fri, 20 Mar 2009 07:37:34 -0500 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on clamscanner3 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: Subject: [head tinderbox] failure on sparc64/sun4v X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2009 12:37:40 -0000 TB --- 2009-03-20 11:13:16 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-03-20 11:13:16 - starting HEAD tinderbox run for sparc64/sun4v TB --- 2009-03-20 11:13:16 - cleaning the object tree TB --- 2009-03-20 11:13:41 - cvsupping the source tree TB --- 2009-03-20 11:13:41 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/sparc64/sun4v/supfile TB --- 2009-03-20 11:13:49 - building world TB --- 2009-03-20 11:13:49 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-20 11:13:49 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-20 11:13:49 - TARGET=sun4v TB --- 2009-03-20 11:13:49 - TARGET_ARCH=sparc64 TB --- 2009-03-20 11:13:49 - TZ=UTC TB --- 2009-03-20 11:13:49 - __MAKE_CONF=/dev/null TB --- 2009-03-20 11:13:49 - cd /src TB --- 2009-03-20 11:13:49 - /usr/bin/make -B buildworld >>> World build started on Fri Mar 20 11:13:51 UTC 2009 >>> 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 >>> World build completed on Fri Mar 20 12:26:16 UTC 2009 TB --- 2009-03-20 12:26:16 - generating LINT kernel config TB --- 2009-03-20 12:26:16 - cd /src/sys/sun4v/conf TB --- 2009-03-20 12:26:16 - /usr/bin/make -B LINT TB --- 2009-03-20 12:26:16 - building LINT kernel TB --- 2009-03-20 12:26:16 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-20 12:26:16 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-20 12:26:16 - TARGET=sun4v TB --- 2009-03-20 12:26:16 - TARGET_ARCH=sparc64 TB --- 2009-03-20 12:26:16 - TZ=UTC TB --- 2009-03-20 12:26:16 - __MAKE_CONF=/dev/null TB --- 2009-03-20 12:26:16 - cd /src TB --- 2009-03-20 12:26:16 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Fri Mar 20 12:26:16 UTC 2009 >>> 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/netinet/ip_mroute.c: In function 'X_ip_mforward': /src/sys/netinet/ip_mroute.c:1227: error: 'mcastgrp' undeclared (first use in this function) /src/sys/netinet/ip_mroute.c:1227: error: (Each undeclared identifier is reported only once /src/sys/netinet/ip_mroute.c:1227: error: for each function it appears in.) /src/sys/netinet/ip_mroute.c: In function 'send_packet': /src/sys/netinet/ip_mroute.c:1688: error: 'ptrdiff_t' undeclared (first use in this function) /src/sys/netinet/ip_mroute.c: In function 'pim_input': /src/sys/netinet/ip_mroute.c:2565: error: incompatible type for argument 1 of 'inet_ntoa' *** Error code 1 Stop in /obj/sun4v/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-03-20 12:37:34 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-03-20 12:37:34 - ERROR: failed to build lint kernel TB --- 2009-03-20 12:37:34 - 4436.07 user 413.06 system 5057.55 real http://tinderbox.des.no/tinderbox-head-HEAD-sparc64-sun4v.full From owner-freebsd-sparc64@FreeBSD.ORG Fri Mar 20 13:48:14 2009 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24C2B1065705; Fri, 20 Mar 2009 13:48:14 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id ED3428FC1A; Fri, 20 Mar 2009 13:48:13 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from freefall.freebsd.org (marius@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2KDmDJS009470; Fri, 20 Mar 2009 13:48:13 GMT (envelope-from marius@freefall.freebsd.org) Received: (from marius@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2KDmDUB009466; Fri, 20 Mar 2009 13:48:13 GMT (envelope-from marius) Date: Fri, 20 Mar 2009 13:48:13 GMT Message-Id: <200903201348.n2KDmDUB009466@freefall.freebsd.org> To: henkka@spheroid.fi, marius@FreeBSD.org, freebsd-sparc64@FreeBSD.org From: marius@FreeBSD.org Cc: Subject: Re: sparc64/132641: [boot] [panic] CURRENT as of 2009-03-14 panics on boot X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2009 13:48:14 -0000 Synopsis: [boot] [panic] CURRENT as of 2009-03-14 panics on boot State-Changed-From-To: open->closed State-Changed-By: marius State-Changed-When: Fri Mar 20 13:45:02 UTC 2009 State-Changed-Why: Close; submitter confirms that the problem no longer exists with the backtrace indicating that it was caused by the bug fixed in r189919. http://www.freebsd.org/cgi/query-pr.cgi?pr=132641 From owner-freebsd-sparc64@FreeBSD.ORG Fri Mar 20 21:43:54 2009 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E29FF1065678; Fri, 20 Mar 2009 21:43:54 +0000 (UTC) (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 B08578FC2E; Fri, 20 Mar 2009 21:43:54 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id n2KLhoHr059552; Fri, 20 Mar 2009 17:43:50 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.3/8.14.3) with ESMTP id n2KLhoJ8014421; Fri, 20 Mar 2009 17:43:50 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 0A5B07302F; Fri, 20 Mar 2009 16:43:49 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090320214350.0A5B07302F@freebsd-current.sentex.ca> Date: Fri, 20 Mar 2009 16:43:49 -0500 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on clamscanner3 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: Subject: [head tinderbox] failure on sparc64/sun4v X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2009 21:44:10 -0000 TB --- 2009-03-20 20:16:37 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-03-20 20:16:37 - starting HEAD tinderbox run for sparc64/sun4v TB --- 2009-03-20 20:16:37 - cleaning the object tree TB --- 2009-03-20 20:17:07 - cvsupping the source tree TB --- 2009-03-20 20:17:07 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/sparc64/sun4v/supfile TB --- 2009-03-20 20:17:20 - building world TB --- 2009-03-20 20:17:20 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-20 20:17:20 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-20 20:17:20 - TARGET=sun4v TB --- 2009-03-20 20:17:20 - TARGET_ARCH=sparc64 TB --- 2009-03-20 20:17:20 - TZ=UTC TB --- 2009-03-20 20:17:20 - __MAKE_CONF=/dev/null TB --- 2009-03-20 20:17:20 - cd /src TB --- 2009-03-20 20:17:20 - /usr/bin/make -B buildworld >>> World build started on Fri Mar 20 20:17:23 UTC 2009 >>> 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 >>> World build completed on Fri Mar 20 21:36:13 UTC 2009 TB --- 2009-03-20 21:36:13 - generating LINT kernel config TB --- 2009-03-20 21:36:13 - cd /src/sys/sun4v/conf TB --- 2009-03-20 21:36:13 - /usr/bin/make -B LINT TB --- 2009-03-20 21:36:13 - building LINT kernel TB --- 2009-03-20 21:36:13 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-20 21:36:13 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-20 21:36:13 - TARGET=sun4v TB --- 2009-03-20 21:36:13 - TARGET_ARCH=sparc64 TB --- 2009-03-20 21:36:13 - TZ=UTC TB --- 2009-03-20 21:36:13 - __MAKE_CONF=/dev/null TB --- 2009-03-20 21:36:13 - cd /src TB --- 2009-03-20 21:36:13 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Fri Mar 20 21:36:13 UTC 2009 >>> 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 [...] In file included from /src/sys/dev/usb/controller/ehci.c:67: /src/sys/dev/usb/controller/ehci.h:463: error: 'USB_MAX_DEVICES' undeclared here (not in a function) /src/sys/dev/usb/controller/ehci.c: In function 'ehci_xfer_setup': /src/sys/dev/usb/controller/ehci.c:3587: error: 'USB_FS_BYTES_PER_HS_UFRAME' undeclared (first use in this function) /src/sys/dev/usb/controller/ehci.c:3587: error: (Each undeclared identifier is reported only once /src/sys/dev/usb/controller/ehci.c:3587: error: for each function it appears in.) /src/sys/dev/usb/controller/ehci.c: In function 'ehci_pipe_init': /src/sys/dev/usb/controller/ehci.c:3775: error: 'USB_CONTROL_ENDPOINT' undeclared (first use in this function) *** Error code 1 Stop in /obj/sun4v/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-03-20 21:43:49 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-03-20 21:43:49 - ERROR: failed to build lint kernel TB --- 2009-03-20 21:43:49 - 4217.68 user 401.13 system 5232.26 real http://tinderbox.des.no/tinderbox-head-HEAD-sparc64-sun4v.full From owner-freebsd-sparc64@FreeBSD.ORG Sat Mar 21 05:43:34 2009 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CAED6106564A; Sat, 21 Mar 2009 05:43:34 +0000 (UTC) (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 9B3FA8FC12; Sat, 21 Mar 2009 05:43:34 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id n2L5hUoa079658; Sat, 21 Mar 2009 01:43:30 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.14.3/8.14.3) with ESMTP id n2L5hUak053688; Sat, 21 Mar 2009 01:43:30 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 146317302F; Sat, 21 Mar 2009 00:43:30 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090321054330.146317302F@freebsd-current.sentex.ca> Date: Sat, 21 Mar 2009 00:43:30 -0500 (EST) X-Virus-Scanned: ClamAV 0.94.1/8983/Thu Feb 12 07:48:01 2009 clamav-milter version 0.94.2 on clamscanner2 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: Subject: [head tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Mar 2009 05:43:36 -0000 TB --- 2009-03-21 03:57:49 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-03-21 03:57:49 - starting HEAD tinderbox run for sparc64/sparc64 TB --- 2009-03-21 03:57:49 - cleaning the object tree TB --- 2009-03-21 03:58:21 - cvsupping the source tree TB --- 2009-03-21 03:58:21 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/sparc64/sparc64/supfile TB --- 2009-03-21 03:58:33 - building world TB --- 2009-03-21 03:58:33 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-21 03:58:33 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-21 03:58:33 - TARGET=sparc64 TB --- 2009-03-21 03:58:33 - TARGET_ARCH=sparc64 TB --- 2009-03-21 03:58:33 - TZ=UTC TB --- 2009-03-21 03:58:33 - __MAKE_CONF=/dev/null TB --- 2009-03-21 03:58:33 - cd /src TB --- 2009-03-21 03:58:33 - /usr/bin/make -B buildworld >>> World build started on Sat Mar 21 03:58:34 UTC 2009 >>> 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 >>> World build completed on Sat Mar 21 05:18:28 UTC 2009 TB --- 2009-03-21 05:18:28 - generating LINT kernel config TB --- 2009-03-21 05:18:28 - cd /src/sys/sparc64/conf TB --- 2009-03-21 05:18:28 - /usr/bin/make -B LINT TB --- 2009-03-21 05:18:28 - building LINT kernel TB --- 2009-03-21 05:18:28 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-21 05:18:28 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-21 05:18:28 - TARGET=sparc64 TB --- 2009-03-21 05:18:28 - TARGET_ARCH=sparc64 TB --- 2009-03-21 05:18:28 - TZ=UTC TB --- 2009-03-21 05:18:28 - __MAKE_CONF=/dev/null TB --- 2009-03-21 05:18:28 - cd /src TB --- 2009-03-21 05:18:28 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Sat Mar 21 05:18:28 UTC 2009 >>> 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 [...] cc1: warnings being treated as errors /src/sys/modules/usb/usfs/../../../dev/usb/storage/ustorage_fs.c: In function 'ustorage_fs_do_cmd': /src/sys/modules/usb/usfs/../../../dev/usb/storage/ustorage_fs.c:1689: warning: large integer implicitly truncated to unsigned type /src/sys/modules/usb/usfs/../../../dev/usb/storage/ustorage_fs.c:1705: warning: large integer implicitly truncated to unsigned type /src/sys/modules/usb/usfs/../../../dev/usb/storage/ustorage_fs.c:1727: warning: large integer implicitly truncated to unsigned type /src/sys/modules/usb/usfs/../../../dev/usb/storage/ustorage_fs.c:1841: warning: large integer implicitly truncated to unsigned type /src/sys/modules/usb/usfs/../../../dev/usb/storage/ustorage_fs.c:1857: warning: large integer implicitly truncated to unsigned type /src/sys/modules/usb/usfs/../../../dev/usb/storage/ustorage_fs.c:1879: warning: large integer implicitly truncated to unsigned type *** Error code 1 Stop in /src/sys/modules/usb/usfs. *** Error code 1 Stop in /src/sys/modules/usb. *** Error code 1 Stop in /src/sys/modules. *** Error code 1 Stop in /obj/sparc64/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-03-21 05:43:29 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-03-21 05:43:29 - ERROR: failed to build lint kernel TB --- 2009-03-21 05:43:29 - 5117.59 user 443.11 system 6340.02 real http://tinderbox.des.no/tinderbox-head-HEAD-sparc64-sparc64.full From owner-freebsd-sparc64@FreeBSD.ORG Sat Mar 21 07:09:54 2009 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C73041065670; Sat, 21 Mar 2009 07:09:54 +0000 (UTC) (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 752128FC08; Sat, 21 Mar 2009 07:09:54 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id n2L79oeC083791; Sat, 21 Mar 2009 03:09:50 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.3/8.14.3) with ESMTP id n2L79nO7017966; Sat, 21 Mar 2009 03:09:49 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id C5A277302F; Sat, 21 Mar 2009 02:09:49 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090321070949.C5A277302F@freebsd-current.sentex.ca> Date: Sat, 21 Mar 2009 02:09:49 -0500 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on clamscanner1 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: Subject: [head tinderbox] failure on sparc64/sun4v X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Mar 2009 07:09:55 -0000 TB --- 2009-03-21 05:33:12 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-03-21 05:33:12 - starting HEAD tinderbox run for sparc64/sun4v TB --- 2009-03-21 05:33:12 - cleaning the object tree TB --- 2009-03-21 05:33:32 - cvsupping the source tree TB --- 2009-03-21 05:33:32 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/sparc64/sun4v/supfile TB --- 2009-03-21 05:33:43 - building world TB --- 2009-03-21 05:33:43 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-21 05:33:43 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-21 05:33:43 - TARGET=sun4v TB --- 2009-03-21 05:33:43 - TARGET_ARCH=sparc64 TB --- 2009-03-21 05:33:43 - TZ=UTC TB --- 2009-03-21 05:33:43 - __MAKE_CONF=/dev/null TB --- 2009-03-21 05:33:43 - cd /src TB --- 2009-03-21 05:33:43 - /usr/bin/make -B buildworld >>> World build started on Sat Mar 21 05:33:45 UTC 2009 >>> 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 >>> World build completed on Sat Mar 21 06:46:57 UTC 2009 TB --- 2009-03-21 06:46:58 - generating LINT kernel config TB --- 2009-03-21 06:46:58 - cd /src/sys/sun4v/conf TB --- 2009-03-21 06:46:58 - /usr/bin/make -B LINT TB --- 2009-03-21 06:46:58 - building LINT kernel TB --- 2009-03-21 06:46:58 - MAKEOBJDIRPREFIX=/obj TB --- 2009-03-21 06:46:58 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-03-21 06:46:58 - TARGET=sun4v TB --- 2009-03-21 06:46:58 - TARGET_ARCH=sparc64 TB --- 2009-03-21 06:46:58 - TZ=UTC TB --- 2009-03-21 06:46:58 - __MAKE_CONF=/dev/null TB --- 2009-03-21 06:46:58 - cd /src TB --- 2009-03-21 06:46:58 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Sat Mar 21 06:46:58 UTC 2009 >>> 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 [...] cc1: warnings being treated as errors /src/sys/modules/usb/usfs/../../../dev/usb/storage/ustorage_fs.c: In function 'ustorage_fs_do_cmd': /src/sys/modules/usb/usfs/../../../dev/usb/storage/ustorage_fs.c:1689: warning: large integer implicitly truncated to unsigned type /src/sys/modules/usb/usfs/../../../dev/usb/storage/ustorage_fs.c:1705: warning: large integer implicitly truncated to unsigned type /src/sys/modules/usb/usfs/../../../dev/usb/storage/ustorage_fs.c:1727: warning: large integer implicitly truncated to unsigned type /src/sys/modules/usb/usfs/../../../dev/usb/storage/ustorage_fs.c:1841: warning: large integer implicitly truncated to unsigned type /src/sys/modules/usb/usfs/../../../dev/usb/storage/ustorage_fs.c:1857: warning: large integer implicitly truncated to unsigned type /src/sys/modules/usb/usfs/../../../dev/usb/storage/ustorage_fs.c:1879: warning: large integer implicitly truncated to unsigned type *** Error code 1 Stop in /src/sys/modules/usb/usfs. *** Error code 1 Stop in /src/sys/modules/usb. *** Error code 1 Stop in /src/sys/modules. *** Error code 1 Stop in /obj/sun4v/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-03-21 07:09:49 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-03-21 07:09:49 - ERROR: failed to build lint kernel TB --- 2009-03-21 07:09:49 - 5091.05 user 445.03 system 5797.17 real http://tinderbox.des.no/tinderbox-head-HEAD-sparc64-sun4v.full From owner-freebsd-sparc64@FreeBSD.ORG Sat Mar 21 22:18:23 2009 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7477A1065675 for ; Sat, 21 Mar 2009 22:18:23 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id E0C068FC13 for ; Sat, 21 Mar 2009 22:18:22 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from wolfram.andreas.nets ([91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id n2LLeDxQ065744; Sat, 21 Mar 2009 22:40:14 +0100 (CET) (envelope-from andreast-list@fgznet.ch) Message-ID: <49C55EBC.1070602@fgznet.ch> Date: Sat, 21 Mar 2009 22:40:12 +0100 From: Andreas Tobler User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: freebsd-sparc64@freebsd.org, freebsd-current Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Cc: Subject: kdb enter when upgrading from 7.1 to current. X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Mar 2009 22:18:24 -0000 Hi, I get this stacktrace when I try to boot from a Kernel as of today (svn: 190217). My setup is a 7.1 install where I'd like to upgrade to current. The kernel is built cross, amd64 -> sparc64: make -j4 buildkernel TARGET_ARCH=sparc64 KERNCONF=GENERIC The target machine itself is a u60, details below. Does anyone have a pointer to help me, would be great! TIA, Andreas Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... jumping to kernel entry at 0xc0080000. GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #2 r190217M: Sat Mar 21 22:27:46 CET 2009 andreast@deuterium_fbsd.andreas.nets:/export/devel/obj/sparc64/export/devel/ fbsd_svn/src/sys/GENERIC WARNING: WITNESS option enabled, expect reduced performance. real memory = 1610612736 (1536 MB) avail memory = 1554710528 (1482 MB) cpu0: Sun Microsystems UltraSparc-II Processor (449.99 MHz CPU) ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware ispfw: registered firmware kbd0 at kbdmux0 nexus0: pcib0: mem 0x1fe00004000-0x1fe00005fff,0x1fe01000000-0x1fe0 10000ff,0x1fe00000000-0x1fe0000cfff irq 2033,2030,2031,2021,2024,2034 on nexus0 pcib0: Psycho, impl 0, version 4, IGN 0x1f, bus B, 33MHz initializing counter-timer Timecounter "pcib0" frequency 1000000 Hz quality 100 pcib0: DVMA map: 0xfc000000 to 0xffffffff, streaming buffer pcib0: [FILTER] pcib0: [FILTER] pcib0: [GIANT-LOCKED] pcib0: [ITHREAD] pcib0: [GIANT-LOCKED] pcib0: [ITHREAD] pcib0: [FILTER] pci0: on pcib0 ebus0: mem 0x70000000-0x70ffffff,0x71000000-0x717fffff at dev ice 1.0 on pci0 auxio0: addr 0x1400726000-0x1400726003,0x1400728000-0x140072 8003,0x140072a000-0x140072a003,0x140072c000-0x140072c003,0x140072f000-0x140072f0 03 on ebus0 ebus0: addr 0x1400724000-0x1400724003 (no driver attached) ebus0: addr 0x1400504000-0x1400504002 (no driver attached) ebus0: addr 0x1400500000-0x1400500007 (no driver attached) scc0: addr 0x1400400000-0x140040007f irq 43 on ebus0 scc0: [FILTER] uart0: on scc0 uart0: [FILTER] uart0: CTS oflow uart0: console (9600,n,8,1) uart1: on scc0 uart1: [FILTER] uart1: CTS oflow uart2: <16550 or compatible> addr 0x14003083f8-0x14003083ff irq 41 on ebus0 uart2: [FILTER] uart2: keyboard (1200,n,8,1) uart2: keyboard not present uart3: <16550 or compatible> addr 0x14003062f8-0x14003062ff irq 42 on ebus0 uart3: [FILTER] ebus0: addr 0x14003043bc-0x14003043cb,0x1400300398-0x1400300399,0x1400700 000-0x140070000f irq 34 (no driver attached) ebus0: addr 0x14003023f0-0x14003023f7,0x1400706000-0x140070600f,0x1400 720000-0x1400720003 irq 39 (no driver attached) eeprom0: addr 0x1400000000-0x1400001fff on ebus0 eeprom0: model mk48t59 ebus0: addr 0x1000000000-0x10000fffff (no driver attached) ebus0: addr 0x1400200000-0x14002000ff,0x1400702000-0x140070200f,0x 1400704000-0x140070400f,0x1400722000-0x1400722003 irq 35,36 (no driver attached) hme0: mem 0x100000-0x107fff at device 1.1 on pci0 miibus0: on hme0 qsphy0: PHY 1 on miibus0 qsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto hme0: Ethernet address: 08:00:20:a3:71:69 hme0: [ITHREAD] sym0: <875> port 0x1000-0x10ff mem 0x108000-0x1080ff,0x10a000-0x10afff at device 3.0 on pci0 sym0: No NVRAM, ID 7, Fast-20, SE, parity checking sym0: [ITHREAD] sym1: <875> port 0x1400-0x14ff mem 0x10c000-0x10c0ff,0x10e000-0x10efff at device 3.1 on pci0 sym1: No NVRAM, ID 7, Fast-20, SE, parity checking sym1: [ITHREAD] pcib1: mem 0x1fe00002000-0x1fe00003fff,0x1fe01800000-0x1fe0 18000ff,0x1fe00000000-0x1fe0000cfff irq 2032,2030,2031,2021,2024,2034 on nexus0 pcib1: Psycho, impl 0, version 4, IGN 0x1f, bus A, 66MHz pcib1: [FILTER] pci1: on pcib1 pci1: at device 1.0 (no driver attached) creator0: mem 0x1fc00000000-0x1fc000003ff,0x1fc00400000-0x1fc005ffff f,0x1fc00600000-0x1fc007fffff,0x1fc01000000-0x1fc013fffff,0x1fc01400000-0x1fc017 fffff,0x1fc01800000-0x1fc01bfffff,0x1fc01c00000-0x1fc01ffffff,0x1fc02000000-0x1f c02ffffff,0x1fc03000000-0x1fc03ffffff,0x1fc04000000-0x1fc043fffff,0x1fc04400000- 0x1fc047fffff,0x1fc04800000-0x1fc04bfffff,0x1fc04c00000-0x1fc04ffffff,0x1fc05000 000-0x1fc05ffffff,0x1fc06000000-0x1fc07ffffff,0x1fc09000000-0x1fc097fffff,0x1fc0 9800000-0x1fc09ffffff,0x1fc0a000000-0x1fc0affffff,0x1fc0b000000-0x1fc0b7fffff,0x 1fc0b800000-0x1fc0bffffff,0x1fc0c000000-0x1fc0c3fffff,0x1fc0c800000-0x1fc0cfffff f,0x1fc0d000000-0x1fc0d7fffff,0x1fc0d800000-0x1fc0dffffff irq 1925 on nexus0 creator0: resolution 1152x900 syscons0: on nexus0 syscons0: Unknown <16 virtual consoles, flags=0x100> Timecounter "tick" frequency 449992390 Hz quality 1000 Timecounters tick every 1.000 msec Waiting 5 seconds for SCSI devices to settle (probe6:sym0:0:6:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe6:sym0:0:6:0): CAM Status: SCSI Status Error (probe6:sym0:0:6:0): SCSI Status: Check Condition (probe6:sym0:0:6:0): NOT READY asc:3a,0 (probe6:sym0:0:6:0): Medium not present (probe6:sym0:0:6:0): Unretryable error da1 at sym0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-2 device da1: 40.000MB/s transfers (20.000MHz, offset 15, 16bit) da1: Command Queueing Enabled da1: 8637MB (17689267 512 byte sectors: 255H 63S/T 1101C) da0 at sym0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit) da0: Command Queueing Enabled da0: 8637MB (17689267 512 byte sectors: 255H 63S/T 1101C) cd0 at sym0 bus 0 target 6 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 16) cd0: Attempt to query device size failed: NOT READY, Medium not present WARNING: WITNESS option enabled, expect reduced performance. GEOM: da0: adding VTOC8 information. GEOM: da1: adding VTOC8 information. Trying to mount root from ufs:/dev/da0a Loading configuration files. kernel dumps on /dev/da0b Entropy harvesting: interrupts ethernet point_to_pointpanic: trap: memory addres s not aligned cpuid = 0 KDB: enter: panic [thread pid 41 tid 100042 ] Stopped at kdb_enter+0x80: ta %xcc, 1 db> db> bt Tracing pid 41 tid 100042 td 0xfffff800213dc370 panic() at panic+0x20c trap() at trap+0x570 -- memory address not aligned sfar=0xf2fe2877 sfsr=0x40029 %o7=0xc06654b8 -- stack_capture() at stack_capture+0x114 stack_save_td() at stack_save_td+0x60 sysctl_kern_proc_kstack() at sysctl_kern_proc_kstack+0x36c sysctl_root() at sysctl_root+0x1ec userland_sysctl() at userland_sysctl+0x174 __sysctl() at __sysctl+0x70 syscall() at syscall+0x2f0 -- syscall (202, FreeBSD ELF64, __sysctl) %o7=0x101628 -- userland() at 0x40445788 user trace: trap %o7=0x101628 pc 0x40445788, sp 0x7fdffffd031 pc 0x101ef8, sp 0x7fdffffd971 pc 0x102ac4, sp 0x7fdffffdaf1 pc 0x100ef0, sp 0x7fdffffe451 pc 0x40208094, sp 0x7fdffffe511 done From owner-freebsd-sparc64@FreeBSD.ORG Sat Mar 21 23:21:07 2009 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12B45106566C for ; Sat, 21 Mar 2009 23:21:07 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 80AC28FC1F for ; Sat, 21 Mar 2009 23:21:05 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.3/8.14.3/ALCHEMY.FRANKEN.DE) with ESMTP id n2LNKUcI072088; Sun, 22 Mar 2009 00:20:53 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.3/8.14.3/Submit) id n2LNKUjQ072087; Sun, 22 Mar 2009 00:20:30 +0100 (CET) (envelope-from marius) Date: Sun, 22 Mar 2009 00:20:30 +0100 From: Marius Strobl To: Andreas Tobler Message-ID: <20090321232030.GA70685@alchemy.franken.de> References: <49C55EBC.1070602@fgznet.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49C55EBC.1070602@fgznet.ch> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current , freebsd-sparc64@freebsd.org Subject: Re: kdb enter when upgrading from 7.1 to current. X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Mar 2009 23:21:07 -0000 On Sat, Mar 21, 2009 at 10:40:12PM +0100, Andreas Tobler wrote: > Hi, > > I get this stacktrace when I try to boot from a Kernel as of today (svn: > 190217). > > My setup is a 7.1 install where I'd like to upgrade to current. > The kernel is built cross, amd64 -> sparc64: > make -j4 buildkernel TARGET_ARCH=sparc64 KERNCONF=GENERIC > > The target machine itself is a u60, details below. > > Does anyone have a pointer to help me, would be great! > > TIA, > Andreas > > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel]... > jumping to kernel entry at 0xc0080000. > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2009 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 8.0-CURRENT #2 r190217M: Sat Mar 21 22:27:46 CET 2009 > > andreast@deuterium_fbsd.andreas.nets:/export/devel/obj/sparc64/export/devel/ > fbsd_svn/src/sys/GENERIC > WARNING: WITNESS option enabled, expect reduced performance. > real memory = 1610612736 (1536 MB) > avail memory = 1554710528 (1482 MB) > cpu0: Sun Microsystems UltraSparc-II Processor (449.99 MHz CPU) > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > kbd0 at kbdmux0 > nexus0: > pcib0: mem > 0x1fe00004000-0x1fe00005fff,0x1fe01000000-0x1fe0 > 10000ff,0x1fe00000000-0x1fe0000cfff irq 2033,2030,2031,2021,2024,2034 on > nexus0 > pcib0: Psycho, impl 0, version 4, IGN 0x1f, bus B, 33MHz > initializing counter-timer > Timecounter "pcib0" frequency 1000000 Hz quality 100 > pcib0: DVMA map: 0xfc000000 to 0xffffffff, streaming buffer > pcib0: [FILTER] > pcib0: [FILTER] > pcib0: [GIANT-LOCKED] > pcib0: [ITHREAD] > pcib0: [GIANT-LOCKED] > pcib0: [ITHREAD] > pcib0: [FILTER] > pci0: on pcib0 > ebus0: mem > 0x70000000-0x70ffffff,0x71000000-0x717fffff at dev > ice 1.0 on pci0 > auxio0: addr > 0x1400726000-0x1400726003,0x1400728000-0x140072 > 8003,0x140072a000-0x140072a003,0x140072c000-0x140072c003,0x140072f000-0x140072f0 > 03 on ebus0 > ebus0: addr 0x1400724000-0x1400724003 (no driver attached) > ebus0: addr 0x1400504000-0x1400504002 (no driver attached) > ebus0: addr 0x1400500000-0x1400500007 (no driver attached) > scc0: addr > 0x1400400000-0x140040007f irq 43 > on ebus0 > scc0: [FILTER] > uart0: on scc0 > uart0: [FILTER] > uart0: CTS oflow > uart0: console (9600,n,8,1) > uart1: on scc0 > uart1: [FILTER] > uart1: CTS oflow > uart2: <16550 or compatible> addr 0x14003083f8-0x14003083ff irq 41 on ebus0 > uart2: [FILTER] > uart2: keyboard (1200,n,8,1) > uart2: keyboard not present > uart3: <16550 or compatible> addr 0x14003062f8-0x14003062ff irq 42 on ebus0 > uart3: [FILTER] > ebus0: addr > 0x14003043bc-0x14003043cb,0x1400300398-0x1400300399,0x1400700 > 000-0x140070000f irq 34 (no driver attached) > ebus0: addr > 0x14003023f0-0x14003023f7,0x1400706000-0x140070600f,0x1400 > 720000-0x1400720003 irq 39 (no driver attached) > eeprom0: addr 0x1400000000-0x1400001fff on ebus0 > eeprom0: model mk48t59 > ebus0: addr 0x1000000000-0x10000fffff (no driver attached) > ebus0: addr > 0x1400200000-0x14002000ff,0x1400702000-0x140070200f,0x > 1400704000-0x140070400f,0x1400722000-0x1400722003 irq 35,36 (no driver > attached) > hme0: mem 0x100000-0x107fff at device 1.1 on pci0 > miibus0: on hme0 > qsphy0: PHY 1 on miibus0 > qsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > hme0: Ethernet address: 08:00:20:a3:71:69 > hme0: [ITHREAD] > sym0: <875> port 0x1000-0x10ff mem 0x108000-0x1080ff,0x10a000-0x10afff > at device > 3.0 on pci0 > sym0: No NVRAM, ID 7, Fast-20, SE, parity checking > sym0: [ITHREAD] > sym1: <875> port 0x1400-0x14ff mem 0x10c000-0x10c0ff,0x10e000-0x10efff > at device > 3.1 on pci0 > sym1: No NVRAM, ID 7, Fast-20, SE, parity checking > sym1: [ITHREAD] > pcib1: mem > 0x1fe00002000-0x1fe00003fff,0x1fe01800000-0x1fe0 > 18000ff,0x1fe00000000-0x1fe0000cfff irq 2032,2030,2031,2021,2024,2034 on > nexus0 > pcib1: Psycho, impl 0, version 4, IGN 0x1f, bus A, 66MHz > pcib1: [FILTER] > pci1: on pcib1 > pci1: at device 1.0 (no driver attached) > creator0: mem > 0x1fc00000000-0x1fc000003ff,0x1fc00400000-0x1fc005ffff > f,0x1fc00600000-0x1fc007fffff,0x1fc01000000-0x1fc013fffff,0x1fc01400000-0x1fc017 > fffff,0x1fc01800000-0x1fc01bfffff,0x1fc01c00000-0x1fc01ffffff,0x1fc02000000-0x1f > c02ffffff,0x1fc03000000-0x1fc03ffffff,0x1fc04000000-0x1fc043fffff,0x1fc04400000- > 0x1fc047fffff,0x1fc04800000-0x1fc04bfffff,0x1fc04c00000-0x1fc04ffffff,0x1fc05000 > 000-0x1fc05ffffff,0x1fc06000000-0x1fc07ffffff,0x1fc09000000-0x1fc097fffff,0x1fc0 > 9800000-0x1fc09ffffff,0x1fc0a000000-0x1fc0affffff,0x1fc0b000000-0x1fc0b7fffff,0x > 1fc0b800000-0x1fc0bffffff,0x1fc0c000000-0x1fc0c3fffff,0x1fc0c800000-0x1fc0cfffff > f,0x1fc0d000000-0x1fc0d7fffff,0x1fc0d800000-0x1fc0dffffff irq 1925 on nexus0 > creator0: resolution 1152x900 > syscons0: on nexus0 > syscons0: Unknown <16 virtual consoles, flags=0x100> > Timecounter "tick" frequency 449992390 Hz quality 1000 > Timecounters tick every 1.000 msec > Waiting 5 seconds for SCSI devices to settle > (probe6:sym0:0:6:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 > (probe6:sym0:0:6:0): CAM Status: SCSI Status Error > (probe6:sym0:0:6:0): SCSI Status: Check Condition > (probe6:sym0:0:6:0): NOT READY asc:3a,0 > (probe6:sym0:0:6:0): Medium not present > (probe6:sym0:0:6:0): Unretryable error > da1 at sym0 bus 0 target 1 lun 0 > da1: Fixed Direct Access SCSI-2 device > da1: 40.000MB/s transfers (20.000MHz, offset 15, 16bit) > da1: Command Queueing Enabled > da1: 8637MB (17689267 512 byte sectors: 255H 63S/T 1101C) > da0 at sym0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-2 device > da0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit) > da0: Command Queueing Enabled > da0: 8637MB (17689267 512 byte sectors: 255H 63S/T 1101C) > cd0 at sym0 bus 0 target 6 lun 0 > cd0: Removable CD-ROM SCSI-2 device > cd0: 10.000MB/s transfers (10.000MHz, offset 16) > cd0: Attempt to query device size failed: NOT READY, Medium not present > WARNING: WITNESS option enabled, expect reduced performance. > GEOM: da0: adding VTOC8 information. > GEOM: da1: adding VTOC8 information. > Trying to mount root from ufs:/dev/da0a > Loading configuration files. > kernel dumps on /dev/da0b > Entropy harvesting: interrupts ethernet point_to_pointpanic: trap: > memory addres > s not aligned > cpuid = 0 > KDB: enter: panic > [thread pid 41 tid 100042 ] > Stopped at kdb_enter+0x80: ta %xcc, 1 > db> > db> bt > Tracing pid 41 tid 100042 td 0xfffff800213dc370 > panic() at panic+0x20c > trap() at trap+0x570 > -- memory address not aligned sfar=0xf2fe2877 sfsr=0x40029 %o7=0xc06654b8 -- > stack_capture() at stack_capture+0x114 > stack_save_td() at stack_save_td+0x60 > sysctl_kern_proc_kstack() at sysctl_kern_proc_kstack+0x36c > sysctl_root() at sysctl_root+0x1ec > userland_sysctl() at userland_sysctl+0x174 > __sysctl() at __sysctl+0x70 > syscall() at syscall+0x2f0 > -- syscall (202, FreeBSD ELF64, __sysctl) %o7=0x101628 -- > userland() at 0x40445788 > user trace: trap %o7=0x101628 > pc 0x40445788, sp 0x7fdffffd031 > pc 0x101ef8, sp 0x7fdffffd971 > pc 0x102ac4, sp 0x7fdffffdaf1 > pc 0x100ef0, sp 0x7fdffffe451 > pc 0x40208094, sp 0x7fdffffe511 > done Hrm, this looks like the problem solved with r184376. Do you cross-compile with a GCC older than 4.2 maybe? Marius