From owner-freebsd-sparc64@FreeBSD.ORG Sun Aug 17 05:03:54 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E45AB37B401; Sun, 17 Aug 2003 05:03:53 -0700 (PDT) Received: from cueball.rtp.FreeBSD.org (cueball.rtp.FreeBSD.org [192.58.184.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17C9143F75; Sun, 17 Aug 2003 05:03:53 -0700 (PDT) (envelope-from des+tinderbox@freebsd.org) Received: from cueball.rtp.FreeBSD.org (localhost [127.0.0.1]) h7HC3q4r098939; Sun, 17 Aug 2003 08:03:52 -0400 (EDT) (envelope-from des+tinderbox@freebsd.org) Received: (from des@localhost) by cueball.rtp.FreeBSD.org (8.12.9/8.12.9/Submit) id h7HC3qsv098938; Sun, 17 Aug 2003 08:03:52 -0400 (EDT) Date: Sun, 17 Aug 2003 08:03:52 -0400 (EDT) Message-Id: <200308171203.h7HC3qsv098938@cueball.rtp.FreeBSD.org> X-Authentication-Warning: cueball.rtp.FreeBSD.org: des set sender to Tinderbox using -f Sender: Tinderbox From: Tinderbox To: current@freebsd.org, sparc64@freebsd.org Precedence: bulk Subject: [current tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Aug 2003 12:03:54 -0000 TB --- 2003-08-17 11:12:46 - starting CURRENT tinderbox run for sparc64/sparc64 TB --- 2003-08-17 11:12:46 - checking out the source tree TB --- cd /home/des/tinderbox/CURRENT/sparc64/sparc64 TB --- /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2003-08-17 11:14:47 - building world TB --- cd /home/des/tinderbox/CURRENT/sparc64/sparc64/src TB --- /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1: legacy release compatibility shims >>> stage 1: bootstrap tools >>> stage 2: cleaning up the object tree >>> stage 2: rebuilding the object tree >>> stage 2: build tools >>> stage 3: cross tools >>> stage 4: populating /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/include >>> stage 4: building libraries >>> stage 4: make dependencies >>> stage 4: building everything.. [...] cc -O -pipe -I/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure/libexec/sftp-server/../../../crypto/openssh -DNO_IDEA -o sftp-server sftp-common.o sftp-server.o -lssh -lcrypto /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/bin/ld: warning: libz.so.2, needed by /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so, not found (try using -rpath or -rpath-link) /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `deflate' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `inflate' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `inflateInit_' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `deflateInit_' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `inflateEnd' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `deflateEnd' *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure/libexec/sftp-server. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure/libexec. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src. TB --- 2003-08-17 12:03:51 - /usr/bin/make returned exit code 1 TB --- 2003-08-17 12:03:51 - ERROR: failed to build world TB --- 2003-08-17 12:03:51 - tinderbox aborted From owner-freebsd-sparc64@FreeBSD.ORG Sun Aug 17 15:45:41 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D658C37B401; Sun, 17 Aug 2003 15:45:41 -0700 (PDT) Received: from cueball.rtp.FreeBSD.org (cueball.rtp.FreeBSD.org [192.58.184.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09BC943F85; Sun, 17 Aug 2003 15:45:41 -0700 (PDT) (envelope-from des+tinderbox@freebsd.org) Received: from cueball.rtp.FreeBSD.org (localhost [127.0.0.1]) h7HMje4r078232; Sun, 17 Aug 2003 18:45:40 -0400 (EDT) (envelope-from des+tinderbox@freebsd.org) Received: (from des@localhost) by cueball.rtp.FreeBSD.org (8.12.9/8.12.9/Submit) id h7HMjeWp078231; Sun, 17 Aug 2003 18:45:40 -0400 (EDT) Date: Sun, 17 Aug 2003 18:45:40 -0400 (EDT) Message-Id: <200308172245.h7HMjeWp078231@cueball.rtp.FreeBSD.org> X-Authentication-Warning: cueball.rtp.FreeBSD.org: des set sender to Tinderbox using -f Sender: Tinderbox From: Tinderbox To: current@freebsd.org, sparc64@freebsd.org Precedence: bulk Subject: [current tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Aug 2003 22:45:42 -0000 TB --- 2003-08-17 21:53:57 - starting CURRENT tinderbox run for sparc64/sparc64 TB --- 2003-08-17 21:53:57 - checking out the source tree TB --- cd /home/des/tinderbox/CURRENT/sparc64/sparc64 TB --- /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2003-08-17 21:56:36 - building world TB --- cd /home/des/tinderbox/CURRENT/sparc64/sparc64/src TB --- /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1: legacy release compatibility shims >>> stage 1: bootstrap tools >>> stage 2: cleaning up the object tree >>> stage 2: rebuilding the object tree >>> stage 2: build tools >>> stage 3: cross tools >>> stage 4: populating /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/include >>> stage 4: building libraries >>> stage 4: make dependencies >>> stage 4: building everything.. [...] cc -O -pipe -I/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure/libexec/sftp-server/../../../crypto/openssh -DNO_IDEA -o sftp-server sftp-common.o sftp-server.o -lssh -lcrypto /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/bin/ld: warning: libz.so.2, needed by /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so, not found (try using -rpath or -rpath-link) /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `deflate' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `inflate' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `inflateInit_' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `deflateInit_' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `inflateEnd' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `deflateEnd' *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure/libexec/sftp-server. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure/libexec. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src. TB --- 2003-08-17 22:45:40 - /usr/bin/make returned exit code 1 TB --- 2003-08-17 22:45:40 - ERROR: failed to build world TB --- 2003-08-17 22:45:40 - tinderbox aborted From owner-freebsd-sparc64@FreeBSD.ORG Sun Aug 17 20:47:28 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEC1D37B401 for ; Sun, 17 Aug 2003 20:47:28 -0700 (PDT) Received: from mail.seekingfire.com (coyote.seekingfire.com [24.72.10.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0EC5243F85 for ; Sun, 17 Aug 2003 20:47:28 -0700 (PDT) (envelope-from tillman@seekingfire.com) Received: from blues.seekingfire.prv (blues.seekingfire.prv [192.168.23.211]) by mail.seekingfire.com (Postfix) with ESMTP id 07DD928D for ; Sun, 17 Aug 2003 21:47:27 -0600 (CST) Received: (from tillman@localhost) by blues.seekingfire.prv (8.11.6/8.11.6) id h7I3lQQ27949 for sparc64@freebsd.org; Sun, 17 Aug 2003 21:47:26 -0600 Date: Sun, 17 Aug 2003 21:47:26 -0600 From: Tillman To: sparc64@freebsd.org Message-ID: <20030817214726.G15005@seekingfire.com> References: <20030815121010.I97608@beagle.fokus.fraunhofer.de> <20030815135034.GA701@crow.dom2ip.de> <20030815080055.O22214@seekingfire.com> <20030815143404.GB701@crow.dom2ip.de> <20030815110221.T22214@seekingfire.com> <20030815223159.F22214@seekingfire.com> <20030816051419.GA32579@dhcp42.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030816051419.GA32579@dhcp42.pn.xcllnt.net>; from marcel@xcllnt.net on Fri, Aug 15, 2003 at 10:14:19PM -0700 X-Urban-Legend: There is lots of hidden information in headers Subject: Re: Sparc slowdown - problem identified... X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 03:47:29 -0000 On Fri, Aug 15, 2003 at 10:14:19PM -0700, Marcel Moolenaar wrote: > On Fri, Aug 15, 2003 at 10:31:59PM -0600, Tillman wrote: > > > > hme0: mem 0xe0000000-0xe0007fff at device 1.1 on pci1 > > hme0: Ethernet address: 08:00:20:c6:7f:c7 > > > > hme1: mem 0x2800000-0x2807fff at device 0.1 on pci3 > > hme1: Ethernet address: 08:00:20:c6:7f:c7 > > > > arp: 192.168.23.3 is on hme0 but got reply from 00:10:4b:69:2a:86 on hme1 > > arp: 192.168.23.3 is on hme0 but got reply from 00:10:4b:69:2a:86 on hme1 > > arp: 192.168.23.3 is on hme0 but got reply from 00:10:4b:69:2a:86 on hme1 > > > > Any ideas? > > Both hme0 and hme1 have the same MAC address. Suspicious... > > > Is it possible that the hme interfaces are numbered in a > > different order with the new kernel, similar to how the disk devices > > could have been renumbered (but that wasn't an issue for me)? > > Yes, definitely. When you enable OFW_NEWPCI, compare the old dmesg(8) > with the new one to see what has changed and correct your setup > accordingly. Results: Old buildkernel time: real 477m30.067s user 400m42.592s sys 24m45.618s New buildkernel time: real 151m42.832s user 125m20.230s sys 13m10.643s For folks attempting this, note that my 4-port ethernet card is now detected /after/ the onboard interface. Thus, I have hme0 & hme[1-4] instead of hme[0-3] & hme4. Rather than reconfigure, it was easier to just change cables around :-) -T -- Yield to temptation; it may not pass your way again. - Robert Heinlein From owner-freebsd-sparc64@FreeBSD.ORG Mon Aug 18 04:20:01 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9507A37B407; Mon, 18 Aug 2003 04:20:01 -0700 (PDT) Received: from cueball.rtp.FreeBSD.org (cueball.rtp.FreeBSD.org [192.58.184.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A18B440E2; Mon, 18 Aug 2003 03:53:14 -0700 (PDT) (envelope-from des+tinderbox@freebsd.org) Received: from cueball.rtp.FreeBSD.org (localhost [127.0.0.1]) h7IArD4r058099; Mon, 18 Aug 2003 06:53:13 -0400 (EDT) (envelope-from des+tinderbox@freebsd.org) Received: (from des@localhost) by cueball.rtp.FreeBSD.org (8.12.9/8.12.9/Submit) id h7IArD93058098; Mon, 18 Aug 2003 06:53:13 -0400 (EDT) Date: Mon, 18 Aug 2003 06:53:13 -0400 (EDT) Message-Id: <200308181053.h7IArD93058098@cueball.rtp.FreeBSD.org> X-Authentication-Warning: cueball.rtp.FreeBSD.org: des set sender to Tinderbox using -f Sender: Tinderbox From: Tinderbox To: current@freebsd.org, sparc64@freebsd.org Precedence: bulk Subject: [current tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 11:20:04 -0000 TB --- 2003-08-18 10:01:06 - starting CURRENT tinderbox run for sparc64/sparc64 TB --- 2003-08-18 10:01:06 - checking out the source tree TB --- cd /home/des/tinderbox/CURRENT/sparc64/sparc64 TB --- /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2003-08-18 10:04:10 - building world TB --- cd /home/des/tinderbox/CURRENT/sparc64/sparc64/src TB --- /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1: legacy release compatibility shims >>> stage 1: bootstrap tools >>> stage 2: cleaning up the object tree >>> stage 2: rebuilding the object tree >>> stage 2: build tools >>> stage 3: cross tools >>> stage 4: populating /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/include >>> stage 4: building libraries >>> stage 4: make dependencies >>> stage 4: building everything.. [...] cc -O -pipe -I/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure/libexec/sftp-server/../../../crypto/openssh -DNO_IDEA -o sftp-server sftp-common.o sftp-server.o -lssh -lcrypto /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/bin/ld: warning: libz.so.2, needed by /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so, not found (try using -rpath or -rpath-link) /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `deflate' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `inflate' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `inflateInit_' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `deflateInit_' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `inflateEnd' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `deflateEnd' *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure/libexec/sftp-server. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure/libexec. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src. TB --- 2003-08-18 10:53:13 - /usr/bin/make returned exit code 1 TB --- 2003-08-18 10:53:13 - ERROR: failed to build world TB --- 2003-08-18 10:53:13 - tinderbox aborted From owner-freebsd-sparc64@FreeBSD.ORG Mon Aug 18 11:02:11 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 076D937B405 for ; Mon, 18 Aug 2003 11:02:11 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CFBE43FDF for ; Mon, 18 Aug 2003 11:02:10 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7II2AUp068807 for ; Mon, 18 Aug 2003 11:02:10 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7II29BR068801 for freebsd-sparc64@freebsd.org; Mon, 18 Aug 2003 11:02:09 -0700 (PDT) Date: Mon, 18 Aug 2003 11:02:09 -0700 (PDT) Message-Id: <200308181802.h7II29BR068801@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-sparc64@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 18:02:11 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/06/24] sparc64/53670sparc64 pthreads implementation on 5.1-Release sp 1 problem total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/02/03] sparc64/47845sparc64 4 second daily clock drift 1 problem total. From owner-freebsd-sparc64@FreeBSD.ORG Mon Aug 18 11:29:17 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 666EB37B401 for ; Mon, 18 Aug 2003 11:29:13 -0700 (PDT) Received: from mail.seekingfire.com (coyote.seekingfire.com [24.72.10.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A82443FB1 for ; Mon, 18 Aug 2003 11:29:12 -0700 (PDT) (envelope-from tillman@seekingfire.com) Received: from blues.seekingfire.prv (blues.seekingfire.prv [192.168.23.211]) by mail.seekingfire.com (Postfix) with ESMTP id DA8E8C3 for ; Mon, 18 Aug 2003 12:29:11 -0600 (CST) Received: (from tillman@localhost) by blues.seekingfire.prv (8.11.6/8.11.6) id h7IITB729183 for sparc64@freebsd.org; Mon, 18 Aug 2003 12:29:11 -0600 Date: Mon, 18 Aug 2003 12:29:11 -0600 From: Tillman To: FreeBSD-Sparc64 Message-ID: <20030818122911.A29079@seekingfire.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-Urban-Legend: There is lots of hidden information in headers Subject: Serial boot console and kernel options (sio vs sab) X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 18:29:17 -0000 Howdy, I currently have a getty listening on COM1 to allow me to login to my Ultra 5 over a null modem cable. I'd like to expand this so that I can also access the boot process over the serial line (in addition to on the normal keyboard/monitor). Following the relevant chapter in the handbook (section 17.6), I find that they talk about the sio serial driver. I used the sab serial driver ... and it doesn't seem to have a man page. Are the same kernel options applicable to sab? For example, can I do something like this in my kernel config file: device sab0 at ebus0 port IO_COM2 flags 0x10 irq 43 ... ? Or is there some otehr process to enable the boot process on COM1 for sparc? My dmesg shows this, by the way: # dmesg | grep sab sab0: addr 0x1400400000-0x140040007f irq 43 on ebus0 sabtty0: on sab0 sabtty1: on sab0 Thanks for any help you can offer, -T -- Certainly the game is rigged. Don't let that stop you; if you don't bet, you can't win. - Robert Heinlein From owner-freebsd-sparc64@FreeBSD.ORG Mon Aug 18 14:54:33 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 140C037B401; Mon, 18 Aug 2003 14:54:33 -0700 (PDT) Received: from cueball.rtp.FreeBSD.org (cueball.rtp.FreeBSD.org [192.58.184.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C43743F3F; Mon, 18 Aug 2003 14:54:32 -0700 (PDT) (envelope-from des+tinderbox@freebsd.org) Received: from cueball.rtp.FreeBSD.org (localhost [127.0.0.1]) h7ILsV4r070437; Mon, 18 Aug 2003 17:54:31 -0400 (EDT) (envelope-from des+tinderbox@freebsd.org) Received: (from des@localhost) by cueball.rtp.FreeBSD.org (8.12.9/8.12.9/Submit) id h7ILsVhs070436; Mon, 18 Aug 2003 17:54:31 -0400 (EDT) Date: Mon, 18 Aug 2003 17:54:31 -0400 (EDT) Message-Id: <200308182154.h7ILsVhs070436@cueball.rtp.FreeBSD.org> X-Authentication-Warning: cueball.rtp.FreeBSD.org: des set sender to Tinderbox using -f Sender: Tinderbox From: Tinderbox To: current@freebsd.org, sparc64@freebsd.org Precedence: bulk Subject: [current tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 21:54:33 -0000 TB --- 2003-08-18 21:02:26 - starting CURRENT tinderbox run for sparc64/sparc64 TB --- 2003-08-18 21:02:26 - checking out the source tree TB --- cd /home/des/tinderbox/CURRENT/sparc64/sparc64 TB --- /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2003-08-18 21:05:27 - building world TB --- cd /home/des/tinderbox/CURRENT/sparc64/sparc64/src TB --- /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1: legacy release compatibility shims >>> stage 1: bootstrap tools >>> stage 2: cleaning up the object tree >>> stage 2: rebuilding the object tree >>> stage 2: build tools >>> stage 3: cross tools >>> stage 4: populating /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/include >>> stage 4: building libraries >>> stage 4: make dependencies >>> stage 4: building everything.. [...] cc -O -pipe -I/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure/libexec/sftp-server/../../../crypto/openssh -DNO_IDEA -o sftp-server sftp-common.o sftp-server.o -lssh -lcrypto /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/bin/ld: warning: libz.so.2, needed by /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so, not found (try using -rpath or -rpath-link) /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `deflate' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `inflate' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `inflateInit_' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `deflateInit_' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `inflateEnd' /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libssh.so: undefined reference to `deflateEnd' *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure/libexec/sftp-server. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure/libexec. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/secure. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src. TB --- 2003-08-18 21:54:31 - /usr/bin/make returned exit code 1 TB --- 2003-08-18 21:54:31 - ERROR: failed to build world TB --- 2003-08-18 21:54:31 - tinderbox aborted From owner-freebsd-sparc64@FreeBSD.ORG Mon Aug 18 20:38:06 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC7E237B401 for ; Mon, 18 Aug 2003 20:38:06 -0700 (PDT) Received: from mail.seekingfire.com (coyote.seekingfire.com [24.72.10.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 300B143FA3 for ; Mon, 18 Aug 2003 20:38:06 -0700 (PDT) (envelope-from tillman@seekingfire.com) Received: from blues.seekingfire.prv (blues.seekingfire.prv [192.168.23.211]) by mail.seekingfire.com (Postfix) with ESMTP id 652D292 for ; Mon, 18 Aug 2003 21:38:05 -0600 (CST) Received: (from tillman@localhost) by blues.seekingfire.prv (8.11.6/8.11.6) id h7J3c5x00605 for sparc64@freebsd.org; Mon, 18 Aug 2003 21:38:05 -0600 Date: Mon, 18 Aug 2003 21:38:04 -0600 From: Tillman To: FreeBSD-Sparc64 Message-ID: <20030818213804.J29079@seekingfire.com> References: <20030818122911.A29079@seekingfire.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030818122911.A29079@seekingfire.com>; from tillman@seekingfire.com on Mon, Aug 18, 2003 at 12:29:11PM -0600 X-Urban-Legend: There is lots of hidden information in headers Subject: Re: Serial boot console and kernel options (sio vs sab) X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2003 03:38:07 -0000 On Mon, Aug 18, 2003 at 12:29:11PM -0600, Tillman wrote: > I currently have a getty listening on COM1 to allow me to login to my > Ultra 5 over a null modem cable. I'd like to expand this so that I can > also access the boot process over the serial line (in addition to on the > normal keyboard/monitor). > > Following the relevant chapter in the handbook (section 17.6), I find > that they talk about the sio serial driver. I used the sab serial driver > ... and it doesn't seem to have a man page. Are the same kernel options > applicable to sab? For example, can I do something like this in my > kernel config file: Nevermind, Sparc-newbie mistake on my part. For the archives, folks interested in this should look at "setenv output-device" and "setenv input-device" in the Sparc forth BIOS. Or just pull the keyboard. Sigh. My apologies :-) -T -- Don't try to have the last word. You might get it. - Robert Heinlein From owner-freebsd-sparc64@FreeBSD.ORG Tue Aug 19 07:34:56 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DC8B16A4BF for ; Tue, 19 Aug 2003 07:34:56 -0700 (PDT) Received: from mail.seekingfire.com (coyote.seekingfire.com [24.72.10.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA14943F85 for ; Tue, 19 Aug 2003 07:34:55 -0700 (PDT) (envelope-from tillman@seekingfire.com) Received: from blues.seekingfire.prv (blues.seekingfire.prv [192.168.23.211]) by mail.seekingfire.com (Postfix) with ESMTP id B20C9D1 for ; Tue, 19 Aug 2003 08:34:54 -0600 (CST) Received: (from tillman@localhost) by blues.seekingfire.prv (8.11.6/8.11.6) id h7JEYsp02189 for sparc64@freebsd.org; Tue, 19 Aug 2003 08:34:54 -0600 Date: Tue, 19 Aug 2003 08:34:53 -0600 From: Tillman To: FreeBSD-Sparc64 Message-ID: <20030819083453.O29079@seekingfire.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-Urban-Legend: There is lots of hidden information in headers Subject: 38400 serial boot console through all stages of boot? X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2003 14:34:56 -0000 Howdy, Now that I have the serial boot console and a login getty working, I wanted to move them to 38400 from teh default 9600. The short story is that it works until it mounts root, then I get garbage like this: xx|xx@x|@x@xxx@@|xxxxx@x||x|x@xxx|x@x@|x|x||x|@x|x|xx|xx@x|@|x|x| (etc) Which I assume is do a serial speed mismatch. After a little bit of time, the computer finishes booting and I'm presented with a working serial login. Here's a rough synopsis of what happens: ... Timecounters tick every 0.976 msec IPsec: Initialized Security Association Processing. IP Filter: v3.4.31 initialized. Default = pass all, Logging = enabled ad0: 8223MB [16708/16/63] at ata2-master WDMA2 acd0: CDROM at ata3-master PIO4 Mounting root from ufs:/dev/ad0a |xx@x|x|x@x@x|@xx|x@xxxx|@@|@xx@|xpx@@xx|xx@ (etc) FreeBSD/sparc64 (caliban.rospa.ca) (ttyb) login: The parts that work at 38400: * Getting into the Sparc firmware via ~# in tip * Getting into the loader * The kernel messages regarding hardware * The getty to login To set this up, I've: * Set ttyb setenv'd as the input and output devices and the speed set to 38400 in the Sparc firmware * Set BOOT_COMCONSOLE_SPEED= 38400 in /etc/make.conf * Set options CONSPEED=38400 in my kernel config file * cd /usr/src && time make buildkernel && make installkernel * cd /usr/src/sys/boot && make all install clean * sunlabel -B ad0 Am I missing something? -T -- "As promised, 0.4.1 is now available, and hopefully I managed to conceal the bugs with great skill. However, I'm sure there are bugs that I've missed. Give it hell. Do wierd stuff with it. Make it bend and cry, while you whip it with prejudice and relish." - Gee Whiz change log entry (http://icculus.org/gwiz/index.html) From owner-freebsd-sparc64@FreeBSD.ORG Tue Aug 19 09:49:25 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E12E916A4C1 for ; Tue, 19 Aug 2003 09:49:25 -0700 (PDT) Received: from mail.seekingfire.com (coyote.seekingfire.com [24.72.10.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2164E43FA3 for ; Tue, 19 Aug 2003 09:49:25 -0700 (PDT) (envelope-from tillman@seekingfire.com) Received: from blues.seekingfire.prv (blues.seekingfire.prv [192.168.23.211]) by mail.seekingfire.com (Postfix) with ESMTP id 7731792 for ; Tue, 19 Aug 2003 10:49:24 -0600 (CST) Received: (from tillman@localhost) by blues.seekingfire.prv (8.11.6/8.11.6) id h7JGnOF02666 for sparc64@freebsd.org; Tue, 19 Aug 2003 10:49:24 -0600 Date: Tue, 19 Aug 2003 10:49:24 -0600 From: Tillman Hodgson To: sparc64@freebsd.org Message-ID: <20030819104924.A2526@seekingfire.com> References: <20030815121010.I97608@beagle.fokus.fraunhofer.de> <20030815135034.GA701@crow.dom2ip.de> <20030815080055.O22214@seekingfire.com> <20030815143404.GB701@crow.dom2ip.de> <20030815110221.T22214@seekingfire.com> <20030815223159.F22214@seekingfire.com> <20030816051419.GA32579@dhcp42.pn.xcllnt.net> <20030817214726.G15005@seekingfire.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030817214726.G15005@seekingfire.com>; from tillman@seekingfire.com on Sun, Aug 17, 2003 at 09:47:26PM -0600 X-Urban-Legend: There is lots of hidden information in headers Subject: Re: Sparc slowdown - problem identified... X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2003 16:49:26 -0000 On Sun, Aug 17, 2003 at 09:47:26PM -0600, Tillman wrote: > Results: > > Old buildkernel time: > > real 477m30.067s > user 400m42.592s > sys 24m45.618s > > New buildkernel time: > > real 151m42.832s > user 125m20.230s > sys 13m10.643s And, interestly enough, my disk I/O has also significantly improved. Old bonnie++: Version 1.93c ------Sequential Output------ --Sequential Input- --Random- Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP caliban 300M 8 92 1999 10 924 5 15 92 1887 6 72.4 21 Latency 2260ms 519ms 2964ms 1117ms 161ms 3688ms Version 1.93c ------Sequential Create------ --------Random Create-------- caliban -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 856 68 2968 89 2478 94 811 60 2817 84 2770 94 Latency 1589ms 250ms 3365us 1674ms 477ms 10394us New bonnie++: Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP caliban 300M 19 96 2003 6 943 3 37 96 1943 3 74.7 13 Latency 900ms 513ms 1025ms 401ms 255ms 6134ms Version 1.93c ------Sequential Create------ --------Random Create-------- caliban -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 1233 53 5889 93 5029 97 783 34 5587 91 4943 95 Latency 1530ms 75401us 3181us 3192ms 111ms 62428us -T -- When an ordinary man attains knowledge, he is a sage; when a sage attains understanding, he is an ordinary man. - Zen saying From owner-freebsd-sparc64@FreeBSD.ORG Wed Aug 20 02:42:18 2003 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23CEB16A4C1 for ; Wed, 20 Aug 2003 02:42:18 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43F8643F93 for ; Wed, 20 Aug 2003 02:41:53 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7K9fqUp090747 for ; Wed, 20 Aug 2003 02:41:52 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7K9fqFE090746; Wed, 20 Aug 2003 02:41:52 -0700 (PDT) Resent-Date: Wed, 20 Aug 2003 02:41:52 -0700 (PDT) Resent-Message-Id: <200308200941.h7K9fqFE090746@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-sparc64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mark Kettenis Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 08F2316A4C0 for ; Tue, 19 Aug 2003 14:24:50 -0700 (PDT) Received: from walton.kettenis.dyndns.org (e115144.upc-e.chello.nl [213.93.115.144]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DC6943FBF for ; Tue, 19 Aug 2003 14:24:48 -0700 (PDT) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2])h7JLOkko001324 for ; Tue, 19 Aug 2003 23:24:46 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) h7JLOkUJ002340 for ; Tue, 19 Aug 2003 23:24:46 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost)h7JLOknL002339; Tue, 19 Aug 2003 23:24:46 +0200 (CEST) Message-Id: <200308192124.h7JLOknL002339@elgar.kettenis.dyndns.org> Date: Tue, 19 Aug 2003 23:24:46 +0200 (CEST) From: Mark Kettenis To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: sparc64/55773: Conversion from long to long double is broken X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mark Kettenis List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 09:42:18 -0000 >Number: 55773 >Category: sparc64 >Synopsis: Conversion from long to long double is broken >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-sparc64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 20 02:41:50 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Mark Kettenis >Release: FreeBSD 5.1-CURRENT sparc64 >Organization: >Environment: System: FreeBSD panther.freebsd.org 5.1-CURRENT FreeBSD 5.1-CURRENT #166: Fri Aug 15 11:44:38 PDT 2003 root@panther.freebsd.org:/s/src/sys/sparc64/compile/PANTHER sparc64 >Description: Conversion of `long' and `unsigned long' to `long double' are broken on FreeBSD/sparc64. GCC generates the right code AFAICT, but the implementation of _Qp_xtoq() and _Qp_uxtoq() in /src/lib/libc/sparc64/fpu/fpu_qp.c seem to be broken. Every value that has bit 32 set will be negative when converted to a `long double'. >How-To-Repeat: The following test program exhibits the behaviour: #include unsigned long mant_long = 0x80000000; int main (void) { long double mant = mant_long; printf ("%lu\n", mant_long); printf ("%Lf\n", mant); return 0; } which should print 2147483648 2147483648.000000 but will print 2147483648 -2147483648.000000 >Fix: Looking at the code in /usr/src/lib/libc/sparc64/fpu/fpu_qp.c (I'm looking at revision 1.3), it seems that the _QP_TTOQ() macro only handles 32-bit signed integers since on line 63 of that file we have: fe.fe_f1.fp_sign = a[0] >> 31; I think that this line should be fe.fe_f1.fp_sign = a[0] >> 63; for `long' (_Qp_xtoq) and that the line should be completely absent for `unsigned' (_Qp_uitoq) and `unsigned long' (_Qp_uxtoq). Some not-too-thorough testing seems to indicate that's right. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-sparc64@FreeBSD.ORG Wed Aug 20 04:53:35 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDA5016A4BF; Wed, 20 Aug 2003 04:53:35 -0700 (PDT) Received: from cueball.rtp.FreeBSD.org (cueball.rtp.FreeBSD.org [192.58.184.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0373943FAF; Wed, 20 Aug 2003 04:53:35 -0700 (PDT) (envelope-from des+tinderbox@freebsd.org) Received: from cueball.rtp.FreeBSD.org (localhost [127.0.0.1]) h7KBrY4r098509; Wed, 20 Aug 2003 07:53:34 -0400 (EDT) (envelope-from des+tinderbox@freebsd.org) Received: (from des@localhost) by cueball.rtp.FreeBSD.org (8.12.9/8.12.9/Submit) id h7KBrYUW098508; Wed, 20 Aug 2003 07:53:34 -0400 (EDT) Date: Wed, 20 Aug 2003 07:53:34 -0400 (EDT) Message-Id: <200308201153.h7KBrYUW098508@cueball.rtp.FreeBSD.org> X-Authentication-Warning: cueball.rtp.FreeBSD.org: des set sender to Tinderbox using -f Sender: Tinderbox From: Tinderbox To: current@freebsd.org, sparc64@freebsd.org Precedence: bulk Subject: [current tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 11:53:36 -0000 TB --- 2003-08-20 10:41:50 - starting CURRENT tinderbox run for sparc64/sparc64 TB --- 2003-08-20 10:41:50 - checking out the source tree TB --- cd /home/des/tinderbox/CURRENT/sparc64/sparc64 TB --- /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2003-08-20 10:44:28 - building world TB --- cd /home/des/tinderbox/CURRENT/sparc64/sparc64/src TB --- /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1: legacy release compatibility shims >>> stage 1: bootstrap tools >>> stage 2: cleaning up the object tree >>> stage 2: rebuilding the object tree >>> stage 2: build tools >>> stage 3: cross tools >>> stage 4: populating /home/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/include >>> stage 4: building libraries >>> stage 4: make dependencies >>> stage 4: building everything.. TB --- 2003-08-20 11:40:43 - building generic kernel TB --- cd /home/des/tinderbox/CURRENT/sparc64/sparc64/src TB --- /usr/bin/make buildkernel KERNCONF=GENERIC >>> Kernel build for GENERIC started on Wed Aug 20 11:40:43 GMT 2003 >>> Kernel build for GENERIC completed on Wed Aug 20 11:49:38 GMT 2003 TB --- 2003-08-20 11:49:38 - generating LINT kernel config TB --- cd /home/des/tinderbox/CURRENT/sparc64/sparc64/src/sys/sparc64/conf TB --- /usr/bin/make -B LINT TB --- 2003-08-20 11:49:38 - building LINT kernel TB --- cd /home/des/tinderbox/CURRENT/sparc64/sparc64/src TB --- /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Wed Aug 20 11:49:38 GMT 2003 [...] /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/sys/dev/pccbb/pccbb.c:265: warning: `cbb_read_config' declared `static' but never defined /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/sys/dev/pccbb/pccbb.c:267: warning: `cbb_write_config' declared `static' but never defined /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/sys/dev/pccbb/pccbb.c:297: warning: `cbb_remove_res' defined but not used /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/sys/dev/pccbb/pccbb.c:311: warning: `cbb_find_res' defined but not used /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/sys/dev/pccbb/pccbb.c:323: warning: `cbb_insert_res' defined but not used /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/sys/dev/pccbb/pccbb.c:889: warning: `cbb_setup_intr' defined but not used /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/sys/dev/pccbb/pccbb.c:920: warning: `cbb_teardown_intr' defined but not used /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/sys/dev/pccbb/pccbb.c:1330: warning: `cbb_do_power' defined but not used *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/obj/sparc64/vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src/sys/LINT. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/sparc64/sparc64/src. TB --- 2003-08-20 11:53:33 - /usr/bin/make returned exit code 1 TB --- 2003-08-20 11:53:33 - ERROR: failed to build lint kernel TB --- 2003-08-20 11:53:33 - tinderbox aborted From owner-freebsd-sparc64@FreeBSD.ORG Wed Aug 20 06:22:06 2003 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39B7616A4BF; Wed, 20 Aug 2003 06:22:06 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C76A743FDF; Wed, 20 Aug 2003 06:22:05 -0700 (PDT) (envelope-from jake@FreeBSD.org) Received: from freefall.freebsd.org (jake@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7KDM5Up029014; Wed, 20 Aug 2003 06:22:05 -0700 (PDT) (envelope-from jake@freefall.freebsd.org) Received: (from jake@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7KDM5BG029010; Wed, 20 Aug 2003 06:22:05 -0700 (PDT) Date: Wed, 20 Aug 2003 06:22:05 -0700 (PDT) From: Jake Burkholder Message-Id: <200308201322.h7KDM5BG029010@freefall.freebsd.org> To: jake@FreeBSD.org, freebsd-sparc64@FreeBSD.org, jake@FreeBSD.org Subject: Re: sparc64/55773: Conversion from long to long double is broken X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 13:22:06 -0000 Synopsis: Conversion from long to long double is broken Responsible-Changed-From-To: freebsd-sparc64->jake Responsible-Changed-By: jake Responsible-Changed-When: Wed Aug 20 06:21:36 PDT 2003 Responsible-Changed-Why: I'll look into this. http://www.freebsd.org/cgi/query-pr.cgi?pr=55773 From owner-freebsd-sparc64@FreeBSD.ORG Wed Aug 20 09:50:02 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E761516A4D6; Wed, 20 Aug 2003 09:50:01 -0700 (PDT) Received: from cueball.rtp.FreeBSD.org (cueball.rtp.FreeBSD.org [192.58.184.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A89443FF9; Wed, 20 Aug 2003 09:49:59 -0700 (PDT) (envelope-from des+tinderbox@freebsd.org) Received: from cueball.rtp.FreeBSD.org (localhost [127.0.0.1]) h7KGnw4r083968; Wed, 20 Aug 2003 12:49:58 -0400 (EDT) (envelope-from des+tinderbox@freebsd.org) Received: (from des@localhost) by cueball.rtp.FreeBSD.org (8.12.9/8.12.9/Submit) id h7KGnwPT083967; Wed, 20 Aug 2003 12:49:58 -0400 (EDT) Date: Wed, 20 Aug 2003 12:49:58 -0400 (EDT) Message-Id: <200308201649.h7KGnwPT083967@cueball.rtp.FreeBSD.org> X-Authentication-Warning: cueball.rtp.FreeBSD.org: des set sender to Tinderbox using -f Sender: Tinderbox From: Tinderbox To: current@freebsd.org, sparc64@freebsd.org Precedence: bulk Subject: [current tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 16:50:03 -0000 TB --- mkdir /home/des/tinderbox/CURRENT/sparc64 TB --- mkdir /home/des/tinderbox/CURRENT/sparc64/sparc64 From owner-freebsd-sparc64@FreeBSD.ORG Wed Aug 20 21:00:05 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6EFD16A4C2; Wed, 20 Aug 2003 21:00:05 -0700 (PDT) Received: from cueball.rtp.FreeBSD.org (cueball.rtp.FreeBSD.org [192.58.184.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A2FA43FBD; Wed, 20 Aug 2003 21:00:04 -0700 (PDT) (envelope-from des+tinderbox@freebsd.org) Received: from cueball.rtp.FreeBSD.org (localhost [127.0.0.1]) h7L4034r018084; Thu, 21 Aug 2003 00:00:03 -0400 (EDT) (envelope-from des+tinderbox@freebsd.org) Received: (from des@localhost) by cueball.rtp.FreeBSD.org (8.12.9/8.12.9/Submit) id h7L4035v018083; Thu, 21 Aug 2003 00:00:03 -0400 (EDT) Date: Thu, 21 Aug 2003 00:00:03 -0400 (EDT) Message-Id: <200308210400.h7L4035v018083@cueball.rtp.FreeBSD.org> X-Authentication-Warning: cueball.rtp.FreeBSD.org: des set sender to Tinderbox using -f Sender: Tinderbox From: Tinderbox To: current@freebsd.org, sparc64@freebsd.org Precedence: bulk Subject: [current tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 04:00:06 -0000 From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 21 07:55:35 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAEA416A4BF for ; Thu, 21 Aug 2003 07:55:35 -0700 (PDT) Received: from netlx014.civ.utwente.nl (netlx014.civ.utwente.nl [130.89.1.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AB4C43FE3 for ; Thu, 21 Aug 2003 07:55:34 -0700 (PDT) (envelope-from r.s.a.vandomburg@student.utwente.nl) Received: from student.utwente.nl (gog.student.utwente.nl [130.89.165.107]) by netlx014.civ.utwente.nl (8.11.4/HKD) with ESMTP id h7LEtWY20788 for ; Thu, 21 Aug 2003 16:55:32 +0200 Message-ID: <3F44DD64.2000907@student.utwente.nl> Date: Thu, 21 Aug 2003 16:55:32 +0200 From: Roderick van Domburg Organization: University of Twente User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-sparc64@freebsd.org X-Enigmail-Version: 0.76.4.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-UTwente-MailScanner: Found to be clean Subject: Hard lockups on E250 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 14:55:36 -0000 Hello there, For about a month now I've been experiencing high instability on my E250 (UP): it just locks up hard. It does so after either a couple of hours or a day or so, depending on the system load. No messages given whatsoever, it just sits there at the console waiting for me to reset it. The system normally runs a fairly high-volume Apache2 webserver. When Apache is running, the system doesn't survive for much longer than an hour. When I shut everything down however, leaving the system bare-boned so to speak, it'll run for about a day. Like I said, it hasn't always done this at all. It's been like this for a month or so and recent cvsup'ing hasn't resolved it so far. Anyone else experiencing this? Any ideas? Regards, Roderick From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 21 15:47:18 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D58016A4BF for ; Thu, 21 Aug 2003 15:47:18 -0700 (PDT) Received: from radix.sorted.org (radix.sorted.org [194.70.217.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9ED2643FA3 for ; Thu, 21 Aug 2003 15:47:14 -0700 (PDT) (envelope-from pete@sorted.org) Received: from sorted.org (bubble.sorted.org [194.70.217.145]) by radix.sorted.org (Postfix) with ESMTP id D35E72E3B0 for ; Thu, 21 Aug 2003 23:47:08 +0100 (BST) Date: Thu, 21 Aug 2003 23:47:15 +0100 Content-Type: text/plain; delsp=yes; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Pete Bentley To: freebsd-sparc64@freebsd.org Content-Transfer-Encoding: 7bit In-Reply-To: <20030804164248.GG65432@elvis.mu.org> Message-Id: <6908317B-D429-11D7-A4E7-000A959F6E56@sorted.org> X-Mailer: Apple Mail (2.552) Subject: Re: Netra X1 - Status query and stupid question X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 22:47:18 -0000 On Monday, August 4, 2003, at 05:42 PM, Maxime Henrion wrote: >>> On Mon, Jul 28, 2003 at 12:51:34PM +0100, Pete Bentley wrote: >>>> Just wondering what the status is with regard to drivers for >>>> the X1's onboard Davicom ethernet? [...] >>> > Sorry for bringing bad news, but it probably won't work yet. First, it > seems integrated dc(4) cards in Netra X1's have their MAC address set > to > 00:00:00:00:00:00. This can probably be worked around by setting the > MAC via ``ifconfig ether''. Seems to work well enough to get the machine going as a self-hosted development system. As you say, the MAC addresses start off zeroed but I've bodged around that for now with a cheesey hack in rc.d/netif. > We need to get the MAC address from > OpenFirmware properties but I haven't had time to implement this > properly yet. I might have a look at this in odd moments... got any pointers to code in other drivers I can use as a learning aid? > Another problem that you might hit is PCI bus errors. It happened to > at > least one guy running FreeBSD/sparc64 with a dc(4) card. No panics yet, just some harmless seeming timeouts near the start of dc_setcfg(), see below. However I've not really stressed the interface yet - just a few 'cat termcap' over an ssh session kind of things. Pete. ------------------------------------------------------------------- Sun Netra X1 (UltraSPARC-IIe 400MHz), No Keyboard OpenBoot 4.0, 640 MB memory installed, Serial #50735782. Ethernet address 0:3:ba:6:2a:a6, Host ID: 83062aa6. Executing last command: boot /pci@1f,0/ide@d/disk@0,0:a Boot device: /pci@1f,0/ide@d/disk@0,0:a File and args: >> FreeBSD/sparc64 boot block Boot path: /pci@1f,0/ide@d/disk@0,0:a Boot loader: /boot/loader Console: OpenFirmware console FreeBSD/sparc64 bootstrap loader, Revision 1.0 (root@un.sorted.org, Thu Aug 21 01:11:59 BST 2003) bootpath="/pci@1f,0/ide@d/disk@0,0:a" Loading /boot/defaults/loader.conf /boot/kernel/kernel data=0x2c1d08+0x4f1a8 syms=[0x8+0x4da00+0x8+0x3e074] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... nothing to autoload yet. jumping to kernel entry at 0xc0040000. Copyright (c) 1992-2003 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 5.1-CURRENT #0: Thu Aug 21 10:56:07 BST 2003 root@un.sorted.org:/usr/obj/usr/src/sys/SPARKY Preloaded elf kernel "/boot/kernel/kernel" at 0xc03a0000. Timecounter "tick" frequency 400000000 Hz quality 0 real memory = 671088640 (640 MB) avail memory = 638337024 (608 MB) cpu0: Sun Microsystems UltraSparc-IIe Processor (400.00 MHz CPU) nexus0: pcib0: on nexus0 pcib0: Sabre, impl 0, version 0, ign 0x7c0, bus A DVMA map: 0x60000000 to 0x63ffffff pci0: on pcib0 isab0: at device 7.0 on pci0 isa0: on isab0 pci0: at device 3.0 (no driver attached) pci0: at device 3.0 (no driver attached) dc0: port 0x10000-0x100ff at device 12.0 on pci0 dc0: Ethernet address: 00:00:00:00:00:00 miibus0: on dc0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto dc1: port 0x10100-0x101ff mem 0x2000-0x20ff at device 5.0 on pci0 dc1: Ethernet address: 00:00:00:00:00:00 miibus1: on dc1 ukphy1: on miibus1 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: at device 10.0 (no driver attached) atapci0: port 0x10220-0x1022f,0x10208-0x1020b,0x10210-0x10217,0x10218- 0x1021b,0x10200-0x10207 at device 13.0 on pci0 ata2: at 0x10200 on atapci0 ata3: at 0x10210 on atapci0 Timecounters tick every 10.000 msec ad0: 19092MB [38792/16/63] at ata2-master UDMA66 Mounting root from ufs:/dev/ad0a warning: no time-of-day clock registered, system time will not be set accurately Loading configuration files. Entropy harvesting: interrupts ethernet point_to_point. swapon: adding /dev/ad0b as swap device Starting file system checks: /dev/ad0a: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad0a: clean, 462583 free (95 frags, 57811 blocks, 0.0% fragmentation) /dev/ad0h: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad0h: clean, 4907479 free (55 frags, 613428 blocks, 0.0% fragmentation) /dev/ad0g: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad0g: clean, 2539903 free (22175 frags, 314716 blocks, 0.6% fragmentation) Setting hostname: un.sorted.org. ## Sets MAC address here, but the 'failed to' lines below come when we ## do the 'ifconfig inet ' bit dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: flags=8843 mtu 1500 inet 194.70.217.180 netmask 0xffffff00 broadcast 194.70.217.255 inet6 fe80::203:baff:fe06:2aa6%dc0 prefixlen 64 tentative scopeid 0x1 ether 00:03:ba:06:2a:a6 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 add net default: gateway 194.70.217.190 Additional routing options:. hw.bus.devctl_disable: 0 -> 1 Mounting NFS file systems:. Starting syslogd. Aug 21 22:43:16 un syslogd: kernel boot file is /boot/kernel/kernel ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib Starting local daemons:. Updating motd. Starting sshd. Starting sendmail. Initial sparc64 initialization:. Additional ABI support:. Starting cron. Local package initialization:. Additional TCP options:. Starting background file system checks in 60 seconds. Thu Aug 21 22:43:21 BST 2003 FreeBSD/sparc64 (un.sorted.org) (ttya) login: From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 21 16:31:09 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C81E16A4BF for ; Thu, 21 Aug 2003 16:31:09 -0700 (PDT) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E02743FA3 for ; Thu, 21 Aug 2003 16:31:08 -0700 (PDT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) h7LNV6lc024655; Fri, 22 Aug 2003 01:31:06 +0200 (CEST) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.9/8.12.9/Submit) id h7LNV1xu024654; Fri, 22 Aug 2003 01:31:01 +0200 (CEST) (envelope-from marius) Date: Fri, 22 Aug 2003 01:31:01 +0200 From: Marius Strobl To: Pete Bentley Message-ID: <20030822013101.A24406@newtrinity.zeist.de> References: <20030804164248.GG65432@elvis.mu.org> <6908317B-D429-11D7-A4E7-000A959F6E56@sorted.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="+g7M9IMkV8truYOl" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <6908317B-D429-11D7-A4E7-000A959F6E56@sorted.org>; from pete@sorted.org on Thu, Aug 21, 2003 at 11:47:15PM +0100 cc: freebsd-sparc64@freebsd.org Subject: Re: Netra X1 - Status query and stupid question X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 23:31:09 -0000 --+g7M9IMkV8truYOl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Aug 21, 2003 at 11:47:15PM +0100, Pete Bentley wrote: > On Monday, August 4, 2003, at 05:42 PM, Maxime Henrion wrote: > >>> On Mon, Jul 28, 2003 at 12:51:34PM +0100, Pete Bentley wrote: > >>>> Just wondering what the status is with regard to drivers for > >>>> the X1's onboard Davicom ethernet? [...] > >>> > > Sorry for bringing bad news, but it probably won't work yet. First, it > > seems integrated dc(4) cards in Netra X1's have their MAC address set > > to > > 00:00:00:00:00:00. This can probably be worked around by setting the > > MAC via ``ifconfig ether''. > > Seems to work well enough to get the machine going as a self-hosted > development system. > > As you say, the MAC addresses start off zeroed but I've bodged around > that for now with a cheesey hack in rc.d/netif. > Just curious, could you please try the attached patch and check if the MAC addresses get set and then set local-mac-address in the OpenFirmware and check again if the dc interfaces get different MAC addresses? The patch should work (I'm just not sure about the different MAC addresses part), however Maxime doesn't want to have this in the device driver but at a higher level. Thanks. Marius --+g7M9IMkV8truYOl Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="sys_pci_if_dc.c.diff" --- if_dc.c.orig Wed Jul 9 13:54:05 2003 +++ if_dc.c Wed Jul 9 16:47:15 2003 @@ -124,6 +124,13 @@ #include #include +#ifdef __sparc64__ +#include "opt_ofw_pci.h" +#include +#include +#include +#endif + #define DC_USEIOSPACE #ifdef __alpha__ #define SRM_MEDIA @@ -1842,6 +1849,9 @@ int unit, error = 0, rid, mac_offset; int i; u_int8_t *mac; +#ifdef __sparc64__ + phandle_t node; +#endif sc = device_get_softc(dev); unit = device_get_unit(dev); @@ -2059,7 +2069,6 @@ case DC_TYPE_PNIC: dc_read_eeprom(sc, (caddr_t)&eaddr, 0, 3, 1); break; - case DC_TYPE_DM9102: case DC_TYPE_21143: case DC_TYPE_ASIX: dc_read_eeprom(sc, (caddr_t)&eaddr, DC_EE_NODEADDR, 3, 0); @@ -2073,6 +2082,23 @@ case DC_TYPE_CONEXANT: bcopy(sc->dc_srom + DC_CONEXANT_EE_NODEADDR, &eaddr, ETHER_ADDR_LEN); + break; + case DC_TYPE_DM9102: + dc_read_eeprom(sc, (caddr_t)&eaddr, DC_EE_NODEADDR, 3, 0); +#ifdef __sparc64__ + for (i = 0; i < ETHER_ADDR_LEN; i++) + if (eaddr[i] != 0x00) + goto done; +#ifdef OFW_NEWPCI + node = ofw_pci_get_node(dev); +#else + node = ofw_pci_node(dev); +#endif + if (OF_getprop(node, "local-mac-address", eaddr, + sizeof(eaddr)) == -1) + OF_getetheraddr(dev, eaddr); +done: +#endif break; case DC_TYPE_XIRCOM: /* The MAC comes from the CIS. */ --+g7M9IMkV8truYOl-- From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 21 16:50:10 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3881016A4BF for ; Thu, 21 Aug 2003 16:50:10 -0700 (PDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id F316843FDF for ; Thu, 21 Aug 2003 16:50:08 -0700 (PDT) (envelope-from tmoestl@gmx.net) Received: (qmail 15297 invoked by uid 65534); 21 Aug 2003 23:50:07 -0000 Received: from p508E5864.dip.t-dialin.net (EHLO galatea.local) (80.142.88.100) by mail.gmx.net (mp009) with SMTP; 22 Aug 2003 01:50:07 +0200 Received: from tmm by galatea.local with local (Exim 4.22 #1) id 19pzCM-0000rp-3y; Fri, 22 Aug 2003 01:50:34 +0200 Date: Fri, 22 Aug 2003 01:50:33 +0200 From: Thomas Moestl To: Andrew Belashov Message-ID: <20030821235033.GC680@crow.dom2ip.de> Mail-Followup-To: Andrew Belashov , freebsd-sparc64@freebsd.org References: <3F3A179C.3020104@orel.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F3A179C.3020104@orel.ru> User-Agent: Mutt/1.4.1i Sender: Thomas Moestl cc: freebsd-sparc64@freebsd.org Subject: Re: Kernel panic in cpu_ipi_send() X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 23:50:10 -0000 On Wed, 2003/08/13 at 14:49:00 +0400, Andrew Belashov wrote: > Any ideas about this panic: > > panic: ipi_send: couldn't send ipi > cpuid = 1; > Debugger("panic") > Stopped at Debugger+0x1c: ta %xcc, 1 > > db> trace > panic() at panic+0x134 > cpu_ipi_send() at cpu_ipi_send+0xb0 > cpu_ipi_selected() at cpu_ipi_selected+0x38 > tlb_page_demap() at tlb_page_demap+0x74 > pmap_zero_page_idle() at pmap_zero_page_idle+0xe4 > vm_page_zero_idle() at vm_page_zero_idle+0x74 > vm_pagezero() at vm_pagezero+0xb4 > fork_exit() at fork_exit+0x90 > fork_trampoline() at fork_trampoline+0x8 It should be possible to work around this by bumping IPI_RETRIES in sys/sparc64/include/smp.h, unless there's a more serious problem in the background. - Thomas -- Thomas Moestl http://www.tu-bs.de/~y0015675/ http://people.FreeBSD.org/~tmm/ PGP fingerprint: 1C97 A604 2BD0 E492 51D0 9C0F 1FE6 4F1D 419C 776C From owner-freebsd-sparc64@FreeBSD.ORG Fri Aug 22 03:23:50 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AC1C16A4C0 for ; Fri, 22 Aug 2003 03:23:50 -0700 (PDT) Received: from radix.sorted.org (radix.sorted.org [194.70.217.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D9D843FAF for ; Fri, 22 Aug 2003 03:23:48 -0700 (PDT) (envelope-from pete@sorted.org) Received: from sorted.org (bubble.sorted.org [194.70.217.145]) by radix.sorted.org (Postfix) with ESMTP id 772662B830 for ; Fri, 22 Aug 2003 11:23:47 +0100 (BST) Date: Fri, 22 Aug 2003 11:23:54 +0100 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Pete Bentley To: freebsd-sparc64@freebsd.org Content-Transfer-Encoding: 7bit In-Reply-To: <20030822013101.A24406@newtrinity.zeist.de> Message-Id: X-Mailer: Apple Mail (2.552) Subject: Re: Netra X1 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 10:23:50 -0000 On Friday, August 22, 2003, at 12:31 AM, Marius Strobl wrote: > Just curious, could you please try the attached patch and check if the > MAC addresses get set and then set local-mac-address in the > OpenFirmware > and check again if the dc interfaces get different MAC addresses? > The patch should work (I'm just not sure about the different MAC > addresses > part), I'll have a play with it - it looks helpful but not quite right. For example if dc_read_eeprom() ever gets a non-zero mac address it'll skip over the OF code. Also if local-mac-address? is true it looks like it'll leave a zeroed MAC address on the interface, but for local-mac-address? being false, it'll program the interface with the hosts's MAC address. That last case is handy for me and possibly others running X1's... > however Maxime doesn't want to have this in the device driver but > at a higher level. I'd agree with that - otherwise doesn't every ethernet driver on sparc64 need extra code to decide whether to respect the local-mac-address setting? Pete. From owner-freebsd-sparc64@FreeBSD.ORG Fri Aug 22 06:13:59 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D46AB16A4BF for ; Fri, 22 Aug 2003 06:13:59 -0700 (PDT) Received: from geddar.km.ua (geddar.km.ua [62.149.0.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBDF443F75 for ; Fri, 22 Aug 2003 06:13:56 -0700 (PDT) (envelope-from maxim@geddar.km.ua) Received: from geddar.km.ua (localhost [127.0.0.1]) by geddar.km.ua (8.12.9/8.12.9) with ESMTP id h7MDDoPR097605; Fri, 22 Aug 2003 16:13:50 +0300 (EEST) (envelope-from maxim@geddar.km.ua) Received: (from maxim@localhost) by geddar.km.ua (8.12.9/8.12.9/Submit) id h7MDDnKj097604; Fri, 22 Aug 2003 16:13:49 +0300 (EEST) Date: Fri, 22 Aug 2003 16:13:49 +0300 From: Maxim Mazurok To: Thomas Moestl Message-ID: <20030822131349.GD21392@km.ua> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030801170417.GC834@crow.dom2ip.de> User-Agent: Mutt/1.5.4i cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 13:14:00 -0000 On Fri, Aug 01, 2003 at 07:04:17PM +0200, Thomas Moestl wrote: >> I need to add 2 async serial port to my sparc. >> >> 5.1-RELEASE >> >> I add to kernel >> >> device puc >> options PUC_FASTINTR >> >> but i forgot add >> >> device sio >> >> after reboot i have in dmesg: >> >> puc0: port 0x1030-0x103f,0x1020-0x1027,0x1018-0x101f,0x1010-0x1017,0x1008-0x100f,0x1000-0x1007 irq 4 at device 3.0 on pci1 >> >> card detected, but no have ports (no sio driver in kernel). >> I rebuild kernel width sio driver and after reboot have kernel trap. >> sio(4) diver are ported to sparc? > >It works only for ISA sio(4)s currently, due to some ISA specific code >that happens to work with PCI on other platforms. I have attached a >quick hack to fix this which I use on one of my machines, which should >get you around the problems (it also cointains things like console >support). >The rework which marcel@ is doing in the perforce repository will >fix this the right way. i try to upgrade my 5.1-RELEASE to 5-CURRENT. in 5-CURRENT tree this patch not applied yet. i try to apply your patch and rebuild kernel, but have this: root@fang:/sys/sparc64/compile/FANG#make all cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I../../.. -I../../../dev -I../../../contrib/dev/acpica -I../../../contrib/ipfilter -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mcmodel=medlow -msoft-float -ffreestanding -Werror ../../../dev/sio/sio.c cc1: warnings being treated as errors ../../../dev/sio/sio.c: In function `siocnmap': ../../../dev/sio/sio.c:3448: warning: implicit declaration of function `sparc64_fake_bustag' *** Error code 1 Stop in /var/src/sys/sparc64/compile/FANG. can you help me? -- Maxim Mazurok (MMP2-RIPE) From owner-freebsd-sparc64@FreeBSD.ORG Fri Aug 22 07:59:30 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6FFE16A4BF for ; Fri, 22 Aug 2003 07:59:30 -0700 (PDT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 7F7EA43F93 for ; Fri, 22 Aug 2003 07:59:29 -0700 (PDT) (envelope-from tmoestl@gmx.net) Received: (qmail 30444 invoked by uid 65534); 22 Aug 2003 14:59:28 -0000 Received: from p508E59B3.dip.t-dialin.net (EHLO galatea.local) (80.142.89.179) by mail.gmx.net (mp013) with SMTP; 22 Aug 2003 16:59:28 +0200 Received: from tmm by galatea.local with local (Exim 4.22 #1) id 19qDOO-0003WT-Rv; Fri, 22 Aug 2003 16:59:56 +0200 Date: Fri, 22 Aug 2003 16:59:56 +0200 From: Thomas Moestl To: Maxim Mazurok Message-ID: <20030822145956.GA673@crow.dom2ip.de> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030822131349.GD21392@km.ua> User-Agent: Mutt/1.4.1i Sender: Thomas Moestl cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 14:59:31 -0000 On Fri, 2003/08/22 at 16:13:49 +0300, Maxim Mazurok wrote: > i try to upgrade my 5.1-RELEASE to 5-CURRENT. > in 5-CURRENT tree this patch not applied yet. > i try to apply your patch and rebuild kernel, but have this: > > root@fang:/sys/sparc64/compile/FANG#make all > cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I../../.. -I../../../dev -I../../../contrib/dev/acpica -I../../../contrib/ipfilter -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mcmodel=medlow -msoft-float -ffreestanding -Werror ../../../dev/sio/sio.c > cc1: warnings being treated as errors > ../../../dev/sio/sio.c: In function `siocnmap': > ../../../dev/sio/sio.c:3448: warning: implicit declaration of function `sparc64_fake_bustag' > *** Error code 1 > > Stop in /var/src/sys/sparc64/compile/FANG. > > can you help me? The declaration for this function was moved around, so you need an additional include; an updated patch is available at http://people.freebsd.org/~tmm/sio-s64-20030822.diff - Thomas -- Thomas Moestl http://www.tu-bs.de/~y0015675/ http://people.FreeBSD.org/~tmm/ PGP fingerprint: 1C97 A604 2BD0 E492 51D0 9C0F 1FE6 4F1D 419C 776C From owner-freebsd-sparc64@FreeBSD.ORG Fri Aug 22 11:25:08 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C87616A4BF for ; Fri, 22 Aug 2003 11:25:08 -0700 (PDT) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7337943FD7 for ; Fri, 22 Aug 2003 11:25:07 -0700 (PDT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) h7MIP6lc041973; Fri, 22 Aug 2003 20:25:06 +0200 (CEST) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.9/8.12.9/Submit) id h7MIP0nO041963; Fri, 22 Aug 2003 20:25:00 +0200 (CEST) (envelope-from marius) Date: Fri, 22 Aug 2003 20:25:00 +0200 From: Marius Strobl To: Pete Bentley Message-ID: <20030822202500.A41470@newtrinity.zeist.de> References: <20030822013101.A24406@newtrinity.zeist.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from pete@sorted.org on Fri, Aug 22, 2003 at 11:23:54AM +0100 cc: freebsd-sparc64@freebsd.org Subject: Re: Netra X1 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 18:25:08 -0000 On Fri, Aug 22, 2003 at 11:23:54AM +0100, Pete Bentley wrote: > On Friday, August 22, 2003, at 12:31 AM, Marius Strobl wrote: > > Just curious, could you please try the attached patch and check if the > > MAC addresses get set and then set local-mac-address in the > > OpenFirmware > > and check again if the dc interfaces get different MAC addresses? > > The patch should work (I'm just not sure about the different MAC > > addresses > > part), > > I'll have a play with it - it looks helpful but not quite right. > > For example if dc_read_eeprom() ever gets a non-zero mac address it'll > skip over the OF code. Also if local-mac-address? is true it looks like Which will be the case if someone puts a PCI card with a Davicom DM9102 into a SUN box. > it'll leave a zeroed MAC address on the interface, but for > local-mac-address? I couldn't test this but this part is actually code from Jake Burkholder so I'm confident that it'll work. > being false, it'll program the interface with the hosts's MAC address. > > That last case is handy for me and possibly others running X1's... > > > however Maxime doesn't want to have this in the device driver but > > at a higher level. > > I'd agree with that - otherwise doesn't every ethernet driver on sparc64 > need extra code to decide whether to respect the local-mac-address > setting? > For all drivers except hme(4) and gem(4) I wouldn't check it all. AFAIK local-mac-address is only an issue with hme(4) and gem(4) add-in cards, which ship with a ROM containing their own fcode including the MAC address. The onboard hme(4) and gem(4) NICs don't have seperate fcode, at least the boards with a single interface. I don't know what SUN did with the boards that have multiple ethernet interfaces onboard, like the Netra T1 200 with two gem(4) or Netra X1 with two dc(4). Therefor I asked you to test the patch, I guess others would also be interested to know if it's necessary to check local-mac-address for the onboard dc(4) interfaces on the Netra X1. Marius From owner-freebsd-sparc64@FreeBSD.ORG Fri Aug 22 12:00:00 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D124616A4C0 for ; Fri, 22 Aug 2003 12:00:00 -0700 (PDT) Received: from geddar.km.ua (geddar.km.ua [62.149.0.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D2E543FE0 for ; Fri, 22 Aug 2003 11:59:59 -0700 (PDT) (envelope-from maxim@geddar.km.ua) Received: from geddar.km.ua (localhost [127.0.0.1]) by geddar.km.ua (8.12.9/8.12.9) with ESMTP id h7MIxvPR024666; Fri, 22 Aug 2003 21:59:57 +0300 (EEST) (envelope-from maxim@geddar.km.ua) Received: (from maxim@localhost) by geddar.km.ua (8.12.9/8.12.9/Submit) id h7MIxuVp024665; Fri, 22 Aug 2003 21:59:56 +0300 (EEST) Date: Fri, 22 Aug 2003 21:59:56 +0300 From: Maxim Mazurok To: Thomas Moestl Message-ID: <20030822185956.GL21392@km.ua> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030822145956.GA673@crow.dom2ip.de> User-Agent: Mutt/1.5.4i cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 19:00:01 -0000 On Fri, Aug 22, 2003 at 04:59:56PM +0200, Thomas Moestl wrote: >> i try to upgrade my 5.1-RELEASE to 5-CURRENT. >> in 5-CURRENT tree this patch not applied yet. >> i try to apply your patch and rebuild kernel, but have this: >> >> root@fang:/sys/sparc64/compile/FANG#make all >> cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I../../.. -I../../../dev -I../../../contrib/dev/acpica -I../../../contrib/ipfilter -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mcmodel=medlow -msoft-float -ffreestanding -Werror ../../../dev/sio/sio.c >> cc1: warnings being treated as errors >> ../../../dev/sio/sio.c: In function `siocnmap': >> ../../../dev/sio/sio.c:3448: warning: implicit declaration of function `sparc64_fake_bustag' >> *** Error code 1 >> >> Stop in /var/src/sys/sparc64/compile/FANG. >> >> can you help me? > >The declaration for this function was moved around, so you need an >additional include; an updated patch is available at >http://people.freebsd.org/~tmm/sio-s64-20030822.diff tnx, it's worked. but i no reslolve next problem. in my Ultra AXi motherboard i have: 1. 4 rl cards 2. dual-port sio card 3. VGA+dual ethernet (hme) card on 5.1-RELEASE on all hme cards (one onboard and two on PCI card) i have same mac-address. Width any value OFW option "local-mac-address?". i rebuild kernel to 5-CURRENT width options OFW_NEWPCI, but i have same effect. width new problem: rl cards no worked. i have not any arp addresses from rl cards. -- Maxim Mazurok (MMP2-RIPE) From owner-freebsd-sparc64@FreeBSD.ORG Fri Aug 22 14:47:39 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56BC416A4BF for ; Fri, 22 Aug 2003 14:47:39 -0700 (PDT) Received: from geddar.km.ua (geddar.km.ua [62.149.0.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30F7D43FCB for ; Fri, 22 Aug 2003 14:47:38 -0700 (PDT) (envelope-from maxim@geddar.km.ua) Received: from geddar.km.ua (localhost [127.0.0.1]) by geddar.km.ua (8.12.9/8.12.9) with ESMTP id h7MLlaPR038026; Sat, 23 Aug 2003 00:47:36 +0300 (EEST) (envelope-from maxim@geddar.km.ua) Received: (from maxim@localhost) by geddar.km.ua (8.12.9/8.12.9/Submit) id h7MLlaH2038025; Sat, 23 Aug 2003 00:47:36 +0300 (EEST) Date: Sat, 23 Aug 2003 00:47:36 +0300 From: Maxim Mazurok To: Thomas Moestl Message-ID: <20030822214736.GN21392@km.ua> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> <20030822185956.GL21392@km.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030822185956.GL21392@km.ua> User-Agent: Mutt/1.5.4i cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 21:47:39 -0000 On Fri, Aug 22, 2003 at 09:59:56PM +0300, Maxim Mazurok wrote: >>> i try to upgrade my 5.1-RELEASE to 5-CURRENT. >>> in 5-CURRENT tree this patch not applied yet. >>> i try to apply your patch and rebuild kernel, but have this: >>> >>> root@fang:/sys/sparc64/compile/FANG#make all >>> cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I../../.. -I../../../dev -I../../../contrib/dev/acpica -I../../../contrib/ipfilter -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mcmodel=medlow -msoft-float -ffreestanding -Werror ../../../dev/sio/sio.c >>> cc1: warnings being treated as errors >>> ../../../dev/sio/sio.c: In function `siocnmap': >>> ../../../dev/sio/sio.c:3448: warning: implicit declaration of function `sparc64_fake_bustag' >>> *** Error code 1 >>> >>> Stop in /var/src/sys/sparc64/compile/FANG. >>> >>> can you help me? >> >>The declaration for this function was moved around, so you need an >>additional include; an updated patch is available at >>http://people.freebsd.org/~tmm/sio-s64-20030822.diff > >tnx, it's worked. >but i no reslolve next problem. >in my Ultra AXi motherboard i have: >1. 4 rl cards >2. dual-port sio card >3. VGA+dual ethernet (hme) card > >on 5.1-RELEASE on all hme cards (one onboard and two on PCI card) i have >same mac-address. Width any value OFW option "local-mac-address?". >i rebuild kernel to 5-CURRENT width options OFW_NEWPCI, but i have same >effect. width new problem: rl cards no worked. i have not any arp addresses >from rl cards. ohhh. i have big troubles. after experiments my any ethernet cards worked only in promiscuous mode. i not do buildworld and installworld. i only update src, buildkernel, installkernel. but after experiments my old kernel (5.1-RELEASE) not worked too. -- Maxim Mazurok (MMP2-RIPE) From owner-freebsd-sparc64@FreeBSD.ORG Sat Aug 23 10:59:45 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BB8516A4BF for ; Sat, 23 Aug 2003 10:59:45 -0700 (PDT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 77DD243FA3 for ; Sat, 23 Aug 2003 10:59:44 -0700 (PDT) (envelope-from tmoestl@gmx.net) Received: (qmail 14635 invoked by uid 65534); 23 Aug 2003 17:59:43 -0000 Received: from p508E6B3C.dip.t-dialin.net (EHLO galatea.local) (80.142.107.60) by mail.gmx.net (mp007) with SMTP; 23 Aug 2003 19:59:43 +0200 Received: from tmm by galatea.local with local (Exim 4.22 #1) id 19qcgP-000CAg-Ck; Sat, 23 Aug 2003 20:00:13 +0200 Date: Sat, 23 Aug 2003 20:00:13 +0200 From: Thomas Moestl To: Maxim Mazurok Message-ID: <20030823180012.GA668@crow.dom2ip.de> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> <20030822185956.GL21392@km.ua> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <20030822185956.GL21392@km.ua> User-Agent: Mutt/1.4.1i Sender: Thomas Moestl cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2003 17:59:45 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, 2003/08/22 at 21:59:56 +0300, Maxim Mazurok wrote: > but i no reslolve next problem. > in my Ultra AXi motherboard i have: > 1. 4 rl cards > 2. dual-port sio card > 3. VGA+dual ethernet (hme) card > > on 5.1-RELEASE on all hme cards (one onboard and two on PCI card) i have > same mac-address. Width any value OFW option "local-mac-address?". That should not be too hard to fix. Do you actually require different MAC addresses for some network setup? > i rebuild kernel to 5-CURRENT width options OFW_NEWPCI, but i have same > effect. width new problem: rl cards no worked. i have not any arp addresses > from rl cards. The attached patch might fix that, I haven't tested it because of lack of hardware, though. - Thomas -- Thomas Moestl http://www.tu-bs.de/~y0015675/ http://people.FreeBSD.org/~tmm/ PGP fingerprint: 1C97 A604 2BD0 E492 51D0 9C0F 1FE6 4F1D 419C 776C --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rl-enaddr.diff" Index: if_rl.c =================================================================== RCS file: /vol/ncvs/src/sys/pci/if_rl.c,v retrieving revision 1.113 diff -u -r1.113 if_rl.c --- if_rl.c 22 Aug 2003 07:13:21 -0000 1.113 +++ if_rl.c 23 Aug 2003 17:45:29 -0000 @@ -2673,8 +2673,9 @@ * register write enable" mode to modify the ID registers. */ CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_WRITECFG); - CSR_WRITE_4(sc, RL_IDR0, *(u_int32_t *)(&sc->arpcom.ac_enaddr[0])); - CSR_WRITE_4(sc, RL_IDR4, *(u_int32_t *)(&sc->arpcom.ac_enaddr[4])); + /* Init our MAC address */ + for (i = 0; i < ETHER_ADDR_LEN; i++) + CSR_WRITE_1(sc, RL_IDR0 + i, sc->arpcom.ac_enaddr[i]); CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF); /* --EVF5PPMfhYS0aIcm-- From owner-freebsd-sparc64@FreeBSD.ORG Sat Aug 23 23:26:42 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8750C16A4BF; Sat, 23 Aug 2003 23:26:42 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5662843FAF; Sat, 23 Aug 2003 23:26:41 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h7O774Rl005631; Sun, 24 Aug 2003 03:07:05 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h7O6QcKj029874; Sat, 23 Aug 2003 23:26:38 -0700 (PDT) (envelope-from jmg) Date: Sat, 23 Aug 2003 23:26:38 -0700 From: John-Mark Gurney To: "David O'Brien" , sparc64@freebsd.org Message-ID: <20030824062638.GT10898@funkthat.com> Mail-Followup-To: David O'Brien , sparc64@freebsd.org References: <20030815121010.I97608@beagle.fokus.fraunhofer.de> <20030815135034.GA701@crow.dom2ip.de> <20030815080055.O22214@seekingfire.com> <20030815143404.GB701@crow.dom2ip.de> <20030816212727.GA6164@dragon.nuxi.com> <20030816220920.GA674@crow.dom2ip.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030816220920.GA674@crow.dom2ip.de> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Subject: Re: Sparc slowdown - problem identified... X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Aug 2003 06:26:42 -0000 Thomas Moestl wrote this message on Sun, Aug 17, 2003 at 00:09 +0200: > I'll probably do that soon, but of course the bug which leaves the > caches disabled should also be fixed. Ok, I've commited a patch that jake provided to me to reenable the caches after a failed PCI peek. On just a kernel compile it goes from: 3771.66 real 3522.11 user 202.39 sys to: 1251.14 real 1133.63 user 103.13 sys definately can see t hat it's faster. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."