From owner-freebsd-ppc@FreeBSD.ORG Mon Aug 28 11:09:57 2006 Return-Path: X-Original-To: freebsd-ppc@FreeBSD.org Delivered-To: freebsd-ppc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F395116A523 for ; Mon, 28 Aug 2006 11:09:56 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E98E43E19 for ; Mon, 28 Aug 2006 11:08:33 +0000 (GMT) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7SB8GTg071610 for ; Mon, 28 Aug 2006 11:08:16 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7SB8FEC071606 for freebsd-ppc@FreeBSD.org; Mon, 28 Aug 2006 11:08:15 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 28 Aug 2006 11:08:15 GMT Message-Id: <200608281108.k7SB8FEC071606@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ppc@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 11:09:57 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o power/93203 ppc FreeBSD PPC Can't Write to Partitions. 1 problem total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o power/95367 ppc docs for ppc release. 1 problem total. From owner-freebsd-ppc@FreeBSD.ORG Mon Aug 28 19:02:45 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63F9E16A4E2 for ; Mon, 28 Aug 2006 19:02:45 +0000 (UTC) (envelope-from itinerant@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9F8A43D5D for ; Mon, 28 Aug 2006 19:02:44 +0000 (GMT) (envelope-from itinerant@mac.com) Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (Xserve/8.12.11/smtpout05/MantshX 4.0) with ESMTP id k7SJ2iA5002446 for ; Mon, 28 Aug 2006 12:02:44 -0700 (PDT) Received: from [192.168.1.10] (80-235-141-201.cable.ubr13.newt.blueyonder.co.uk [80.235.141.201]) (authenticated bits=0) by mac.com (Xserve/smtpin07/MantshX 4.0) with ESMTP id k7SJ2YxQ008842 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 28 Aug 2006 12:02:39 -0700 (PDT) Message-ID: <44F33DCC.9080402@mac.com> Date: Mon, 28 Aug 2006 20:02:36 +0100 From: Pete Carss User-Agent: Thunderbird 1.5.0.5 (X11/20060823) MIME-Version: 1.0 To: freebsd-ppc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAA+k= X-Language-Identified: TRUE Subject: Trying to unsubscribe X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 19:02:45 -0000 Not that I've got anything against this list, but I've been trying to unsubscribe for a few months now, with no joy. If any admins are listening could you please unsubscribe me... Cheers From owner-freebsd-ppc@FreeBSD.ORG Mon Aug 28 20:04:02 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C70316A4DA for ; Mon, 28 Aug 2006 20:04:02 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6D0543D66 for ; Mon, 28 Aug 2006 20:03:54 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (dlpd95x6uq0the8j@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id k7SK3sOk012964; Mon, 28 Aug 2006 13:03:54 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id k7SK3rW9012963; Mon, 28 Aug 2006 13:03:53 -0700 (PDT) (envelope-from jmg) Date: Mon, 28 Aug 2006 13:03:53 -0700 From: John-Mark Gurney To: Pete Carss Message-ID: <20060828200353.GH37035@funkthat.com> Mail-Followup-To: Pete Carss , freebsd-ppc@freebsd.org References: <44F33DCC.9080402@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44F33DCC.9080402@mac.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 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 Cc: freebsd-ppc@freebsd.org Subject: Re: Trying to unsubscribe X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 20:04:02 -0000 Pete Carss wrote this message on Mon, Aug 28, 2006 at 20:02 +0100: > Not that I've got anything against this list, but I've been trying to > unsubscribe for a few months now, with no joy. If any admins are > listening could you please unsubscribe me... > > Cheers > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" You may be sending email as a different user than the one that is being delivered too... Check the Delivered-To or X-Original-To header lines and input that email address into the last field on: http://lists.freebsd.org/mailman/listinfo/freebsd-ppc I have also forwarded your request to postmaster, though w/o the delivery email address, it might not be possible.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-ppc@FreeBSD.ORG Tue Aug 29 09:09:07 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9C2616A4DE for ; Tue, 29 Aug 2006 09:09:07 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DB1E43D72 for ; Tue, 29 Aug 2006 09:09:07 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J4R00IS85F6MAC0@osl1smout1.broadpark.no> for freebsd-ppc@freebsd.org; Tue, 29 Aug 2006 11:09:06 +0200 (CEST) Received: from kg-work.kg4.no ([80.203.92.117]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0J4R007L85F60911@osl1sminn1.broadpark.no> for freebsd-ppc@freebsd.org; Tue, 29 Aug 2006 11:09:06 +0200 (CEST) Date: Tue, 29 Aug 2006 11:09:05 +0200 From: Torfinn Ingolfsen X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH To: freebsd-ppc@freebsd.org Message-id: <20060829110905.5443d020.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.20; i386-portbld-freebsd5.5) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: hw.model is empty? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 09:09:08 -0000 Hello, Just for fun, I installed the bsdstats (sysutils/bsdstats) port on my G4. It worked (hardly surprising), but when I checked http://www.bsdstats.org/ afterwards, there were no powerpc cpu's to be found. The bsdstats script uses 'sysctl -n hw.model' to get cpu information, but on my machine this reports an empty string. Here is the whole of sysctl hw: tingo@kg-g4$ sysctl hw hw.machine: powerpc hw.model: hw.ncpu: 1 hw.byteorder: 4321 hw.physmem: 528015360 hw.usermem: 475525120 hw.pagesize: 4096 hw.machine_arch: powerpc hw.realmem: 528015360 hw.ata.ata_dma: 1 hw.ata.atapi_dma: 1 hw.ata.wc: 1 hw.firewire.try_bmr: 1 hw.firewire.hold_count: 3 hw.firewire.fwmem.eui64_hi: 0 hw.firewire.fwmem.eui64_lo: 0 hw.firewire.fwmem.speed: 2 hw.firewire.fwe.stream_ch: 1 hw.firewire.fwe.tx_speed: 2 hw.firewire.fwe.rx_queue_len: 128 hw.firewire.sbp.auto_login: 1 hw.firewire.sbp.max_speed: 2 hw.firewire.sbp.exclusive_login: 1 hw.firewire.sbp.login_delay: 1000 hw.firewire.sbp.scan_delay: 500 hw.firewire.sbp.use_doorbell: 0 hw.firewire.sbp.tags: 0 hw.pci.enable_io_modes: 1 hw.pci.do_power_nodriver: 0 hw.pci.do_power_resume: 1 hw.intr_storm_threshold: 500 hw.availpages: 128910 hw.bus.devctl_disable: 0 hw.kbd.keymap_restrict_change: 0 hw.syscons.saver.keybonly: 1 hw.syscons.bell: 1 hw.uma_mdpages: 9035 hw.ofwfb.relax_mmap: 0 The machine is running: tingo@kg-g4$ uname -a FreeBSD kg-g4.kg4.no 7.0-20051105-SNAP FreeBSD 7.0-20051105-SNAP #0: Sat Nov 5 04:33:52 UTC 2005 root@macmini.ptree32.com.au:/usr/obj/usr/src/sys/GENERIC powerpc -- Regards, Torfinn Ingolfsen, Norway From owner-freebsd-ppc@FreeBSD.ORG Tue Aug 29 11:57:33 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9AF8516A4DA for ; Tue, 29 Aug 2006 11:57:33 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F9C643DC2 for ; Tue, 29 Aug 2006 11:57:07 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J4R00LFTD6ZX650@osl1smout1.broadpark.no> for freebsd-ppc@freebsd.org; Tue, 29 Aug 2006 13:56:59 +0200 (CEST) Received: from kg-work.kg4.no ([80.203.92.117]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0J4R00ADYD6YFYH0@osl1sminn1.broadpark.no> for freebsd-ppc@freebsd.org; Tue, 29 Aug 2006 13:56:58 +0200 (CEST) Date: Tue, 29 Aug 2006 13:56:58 +0200 From: Torfinn Ingolfsen X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH In-reply-to: <44CFC160.7000808@freebsd.org> To: freebsd-ppc@freebsd.org Message-id: <20060829135658.4a98057a.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.20; i386-portbld-freebsd5.5) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <44CFC160.7000808@freebsd.org> Subject: Re: August 7.0 snapshot available X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 11:57:33 -0000 On Tue, 01 Aug 2006 14:02:24 -0700 Peter Grehan wrote: > Thanks to the efforts of Marcel Moolenar, the first snapshot > available for any architecture in August turns out to be PPC ! > > ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/200608/ But no md5 or sha256 checksums for the PPC images? Or am I mistaken? -- Regards, Torfinn Ingolfsen From owner-freebsd-ppc@FreeBSD.ORG Tue Aug 29 22:17:29 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC6BC16A4DD for ; Tue, 29 Aug 2006 22:17:29 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F88B43D45 for ; Tue, 29 Aug 2006 22:17:29 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J4S008DC5X31380@osl1smout1.broadpark.no> for freebsd-ppc@freebsd.org; Wed, 30 Aug 2006 00:17:27 +0200 (CEST) Received: from kg-work.kg4.no ([80.203.92.117]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0J4S00H0N5X3LQ01@osl1sminn1.broadpark.no> for freebsd-ppc@freebsd.org; Wed, 30 Aug 2006 00:17:27 +0200 (CEST) Date: Wed, 30 Aug 2006 00:17:26 +0200 From: Torfinn Ingolfsen X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH In-reply-to: <44D5EAC3.2060708@gmx.de> To: freebsd-ppc@freebsd.org Message-id: <20060830001726.e51462d2.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.20; i386-portbld-freebsd5.5) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <44CFC160.7000808@freebsd.org> <44D5DFF0.3030400@t-online.de> <44D5EAC3.2060708@gmx.de> Subject: Re: August 7.0 snapshot available X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 22:17:29 -0000 On Sun, 06 Aug 2006 15:12:35 +0200 "Philip S. Schulz" wrote: > No. Can't mount it, either :( The boot-only image works, though. I can confirm this. OSX (10.3.9) will not mount the -disc1 CD (I can mount it in FreeBSD), but the -bootonly mounts in OSX and can be booted. -- Torfinn From owner-freebsd-ppc@FreeBSD.ORG Tue Aug 29 22:22:34 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8439216A4DA for ; Tue, 29 Aug 2006 22:22:34 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CCE243D5F for ; Tue, 29 Aug 2006 22:22:34 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J4S008N065L1380@osl1smout1.broadpark.no> for freebsd-ppc@freebsd.org; Wed, 30 Aug 2006 00:22:33 +0200 (CEST) Received: from kg-work.kg4.no ([80.203.92.117]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0J4S00HTZ65LLX21@osl1sminn1.broadpark.no> for freebsd-ppc@freebsd.org; Wed, 30 Aug 2006 00:22:33 +0200 (CEST) Date: Wed, 30 Aug 2006 00:22:32 +0200 From: Torfinn Ingolfsen X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH To: freebsd-ppc@freebsd.org Message-id: <20060830002232.01cda8ac.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.20; i386-portbld-freebsd5.5) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: 7.0-CURRENT-200608 on a G4 - panic X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 22:22:34 -0000 Hello, I just tried booting 7.0-CURRENT-200608-powerpc-bootonly.iso on a G4 (the disc1 image, as reported earlier, doesn't work). It boots allright, loads the kernel and then panics. Here's the panic, transcribed from the console screen: KDB: debugger backends: ddb KDB: current backend: ddb panic: mutex kobj named at /usr/src/sys/kern/subr_kobj.c: 178 [thread pid -1 tid 0 ] stopped at 0: illegal instruction 0 and everything, including the keyboard is dead (ok, not everything, I can eject the cd). -- Regards, Torfinn Ingolfsen, Norway From owner-freebsd-ppc@FreeBSD.ORG Wed Aug 30 01:30:28 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B345C16A4DA for ; Wed, 30 Aug 2006 01:30:28 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EF5E43D46 for ; Wed, 30 Aug 2006 01:30:27 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id CBP54929 (AUTH peterg@ptree32.com.au); Wed, 30 Aug 2006 11:30:18 +1000 (EST) Message-ID: <44F4EA3F.8020706@freebsd.org> Date: Tue, 29 Aug 2006 18:30:39 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: Torfinn Ingolfsen References: <20060829110905.5443d020.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20060829110905.5443d020.torfinn.ingolfsen@broadpark.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: hw.model is empty? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 01:30:28 -0000 > The bsdstats script uses 'sysctl -n hw.model' to get cpu information, > but on my machine this reports an empty string. Definitely a bug. The info is there - it can be seen in the dmesg - just needs to be propagated to the sysctl. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Wed Aug 30 03:55:57 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A96216A4DE for ; Wed, 30 Aug 2006 03:55:57 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBEA843D46 for ; Wed, 30 Aug 2006 03:55:56 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id CBP76726 (AUTH peterg@ptree32.com.au); Wed, 30 Aug 2006 13:55:48 +1000 (EST) Message-ID: <44F50C55.5040803@freebsd.org> Date: Tue, 29 Aug 2006 20:56:05 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: Torfinn Ingolfsen References: <20060830002232.01cda8ac.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20060830002232.01cda8ac.torfinn.ingolfsen@broadpark.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: 7.0-CURRENT-200608 on a G4 - panic X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 03:55:57 -0000 Hi Torfinn, > I just tried booting 7.0-CURRENT-200608-powerpc-bootonly.iso on a G4 > (the disc1 image, as reported earlier, doesn't work). > It boots allright, loads the kernel and then panics. > Here's the panic, transcribed from the console screen: > KDB: debugger backends: ddb > KDB: current backend: ddb > panic: mutex kobj named at /usr/src/sys/kern/subr_kobj.c: 178 > [thread pid -1 tid 0 ] > stopped at 0: illegal instruction 0 Was this with a boot by holding down the 'C' key at power up ? If so, it might be possible to try a manual load. Break into Open Firmware and 0 > boot cd:,\boot\loader cd:0 The problem you see has been intermittently happening in releases for a long time now. I've never worked out exactly what's going on. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Wed Aug 30 06:14:50 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4024516A4DD for ; Wed, 30 Aug 2006 06:14:50 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id A64A743D58 for ; Wed, 30 Aug 2006 06:14:49 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J4S00EU9S0O5670@osl1smout1.broadpark.no> for freebsd-ppc@freebsd.org; Wed, 30 Aug 2006 08:14:48 +0200 (CEST) Received: from kg-work.kg4.no ([80.203.92.117]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0J4S00BCIS0OEIE0@osl1sminn1.broadpark.no> for freebsd-ppc@freebsd.org; Wed, 30 Aug 2006 08:14:48 +0200 (CEST) Date: Wed, 30 Aug 2006 08:14:48 +0200 From: Torfinn Ingolfsen X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH In-reply-to: <44F50C55.5040803@freebsd.org> To: freebsd-ppc@freebsd.org Message-id: <20060830081448.df213bee.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.20; i386-portbld-freebsd5.5) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <20060830002232.01cda8ac.torfinn.ingolfsen@broadpark.no> <44F50C55.5040803@freebsd.org> Subject: Re: 7.0-CURRENT-200608 on a G4 - panic X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 06:14:50 -0000 On Tue, 29 Aug 2006 20:56:05 -0700 Peter Grehan wrote: > Was this with a boot by holding down the 'C' key at power up ? Yes, it was. > If so, it might be possible to try a manual load. Break into Open > Firmware and > > 0 > boot cd:,\boot\loader cd:0 Silly me, I should have thought of that. My only excuse is that it has been too long since I did this :-) Ok, so I got the -bootonly cd to boot, and start the installation. However, there aren't any snapshot releases on FfreeBSD ftp servers out there, only snapshot iso's. And the -disc1 iso wouldn't boot. Suddnenly, I got the idea that I could just swap CD's. And it worked - I could swap the cd, change installation media, and continue the installation. The upgrade installation completed without problems. But when I tried to boot into my FreeBSD installation afterwards, it complained that it could not load the kernel. The reason was easy too see - the whole /boot/kernel directory was missing. Thankfully, we have /boot/kernel.prev Booting from /boot/kernel.prev/kernel worked. Now, what is the correct way to install the missing /boot/kernel directory from the cd? can I just copy the /cdrom/boot/kernel directory to /boot? Or is there another way? -- Regards, Torfinn From owner-freebsd-ppc@FreeBSD.ORG Wed Aug 30 06:49:25 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5958816A4E0 for ; Wed, 30 Aug 2006 06:49:25 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AD4043D4C for ; Wed, 30 Aug 2006 06:49:24 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J4S00EZ9TMB55D0@osl1smout1.broadpark.no> for freebsd-ppc@freebsd.org; Wed, 30 Aug 2006 08:49:23 +0200 (CEST) Received: from kg-work.kg4.no ([80.203.92.117]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0J4S00CDITMBBI90@osl1sminn1.broadpark.no> for freebsd-ppc@freebsd.org; Wed, 30 Aug 2006 08:49:23 +0200 (CEST) Date: Wed, 30 Aug 2006 08:49:23 +0200 From: Torfinn Ingolfsen X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH In-reply-to: <20060830081448.df213bee.torfinn.ingolfsen@broadpark.no> To: freebsd-ppc@freebsd.org Message-id: <20060830084923.575e1163.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.20; i386-portbld-freebsd5.5) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <20060830002232.01cda8ac.torfinn.ingolfsen@broadpark.no> <44F50C55.5040803@freebsd.org> <20060830081448.df213bee.torfinn.ingolfsen@broadpark.no> Subject: Re: 7.0-CURRENT-200608 on a G4 - panic X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 06:49:25 -0000 On Wed, 30 Aug 2006 08:14:48 +0200 Torfinn Ingolfsen wrote: > The reason was easy too see - the whole /boot/kernel directory was I found out why the kernel(s) distribution wouldn't install - on my copy of the disc1 iso, all files in /cdrom/7*/kernels are corrupt. Ie, when I run 'file' on them, file reports 'data', even for install.sh Does anyone have md5 or sha256 sums for the iso's so I can check if i have a bad image? -- Torfinn From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 1 07:11:08 2006 Return-Path: X-Original-To: ppc@FreeBSD.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D656216A4DF; Fri, 1 Sep 2006 07:11:08 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C56443D45; Fri, 1 Sep 2006 07:11:08 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 5650746CD9; Fri, 1 Sep 2006 03:11:07 -0400 (EDT) Date: Fri, 1 Sep 2006 08:11:07 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: ppc@FreeBSD.org, ia64@FreeBSD.org Message-ID: <20060901080402.W97485@fledge.watson.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: marcel@FreeBSD.org Subject: IA64, PPC system call path audit patches X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 07:11:08 -0000 (This is a resend of a previously sent patch to ppc@, FYI) Attached is a patch that adds the audit event points in the system call paths for ia64, the ia32 emulation in ia64, and the system call path for ppc. I'd like to get these committed in the next few days, but am not set up to test them. A head nod from ia64/ppc maintainers would be good regardless of whether audit itself has specifically been tested, and it also wouldn't hurt to compile boot it :-). (I'm set up to test/run audit on i386 and amd64, but not other platforms.) Thanks, Robert N M Watson Computer Laboratory University of Cambridge --- //depot/projects/trustedbsd/base/sys/ia64/ia32/ia32_trap.c 2006/08/05 14:21:26 +++ //depot/projects/trustedbsd/audit3/sys/ia64/ia32/ia32_trap.c 2006/08/06 13:19:15 @@ -46,6 +46,8 @@ #include #include +#include + extern char *syscallnames[]; static void @@ -122,7 +124,9 @@ PTRACESTOP_SC(p, td, S_PT_SCE); + AUDIT_SYSCALL_ENTER(code, td); error = (*callp->sy_call)(td, args64); + AUDIT_SYSCALL_EXIT(error, td); } switch (error) { --- //depot/projects/trustedbsd/base/sys/ia64/ia64/trap.c 2006/08/05 14:21:26 +++ //depot/projects/trustedbsd/audit3/sys/ia64/ia64/trap.c 2006/08/06 13:21:12 @@ -72,6 +72,8 @@ #include #endif +#include + #include static int print_usertrap = 0; @@ -1016,7 +1018,9 @@ PTRACESTOP_SC(p, td, S_PT_SCE); + AUDIT_SYSCALL_ENTER(code, td); error = (*callp->sy_call)(td, args); + AUDIT_SYSCALL_EXIT(error, td); if (error != EJUSTRETURN) { /* --- //depot/projects/trustedbsd/base/sys/powerpc/powerpc/trap.c 2006/08/05 14:21:26 +++ //depot/projects/trustedbsd/audit3/sys/powerpc/powerpc/trap.c 2006/08/06 13:22:21 @@ -55,6 +55,8 @@ #endif #include +#include + #include #include #include @@ -418,7 +420,9 @@ PTRACESTOP_SC(p, td, S_PT_SCE); + AUDIT_SYSCALL_ENTER(code, td); error = (*callp->sy_call)(td, params); + AUDIT_SYSCALL_EXIT(error, td); CTR3(KTR_SYSC, "syscall: p=%s %s ret=%x", p->p_comm, syscallnames[code], td->td_retval[0]); From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 1 08:25:24 2006 Return-Path: X-Original-To: ppc@FreeBSD.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5632D16A4DE; Fri, 1 Sep 2006 08:25:24 +0000 (UTC) (envelope-from peterc@chubb.wattle.id.au) Received: from mx.chubb.wattle.id.au (mx.chubb.wattle.id.au [66.29.2.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id D616143D45; Fri, 1 Sep 2006 08:25:23 +0000 (GMT) (envelope-from peterc@chubb.wattle.id.au) Received: from c220-237-8-57.randw1.nsw.optusnet.com.au ([220.237.8.57] helo=quokka.chubb.wattle.id.au) by mx.chubb.wattle.id.au with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1GJ4L9-0006KV-Np; Fri, 01 Sep 2006 18:25:29 +1000 Received: from localhost ([127.0.0.1] helo=quokka.chubb.wattle.id.au) by quokka with esmtp (Exim 4.63) (envelope-from ) id 1GJ4Kf-0001T9-Rr; Fri, 01 Sep 2006 18:24:57 +1000 Date: Fri, 01 Sep 2006 18:24:57 +1000 Message-ID: <87irk8at9i.wl%peterc@quokka.chubb.wattle.id.au> From: Peter Chubb To: Robert Watson In-Reply-To: <20060901080402.W97485@fledge.watson.org> References: <20060901080402.W97485@fledge.watson.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-1?Q?Shij=F2?=) APEL/10.6 XEmacs/21.4 (patch 19) (Constant Variable) (i386-debian-linux) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") X-SA-Exim-Connect-IP: 220.237.8.57 X-SA-Exim-Rcpt-To: rwatson@FreeBSD.org, ppc@FreeBSD.org, ia64@FreeBSD.org, marcel@FreeBSD.org X-SA-Exim-Mail-From: peterc@chubb.wattle.id.au X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-26) on mx.chubb.wattle.id.au X-Spam-Level: X-Spam-Status: No, score=-100.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_RFC_ABUSE,NO_DNS_FOR_FROM,SPF_SOFTFAIL,USER_IN_WHITELIST autolearn=no version=3.1.4 Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Version: 4.2.1 (built Mon, 27 Mar 2006 13:42:28 +0200) X-SA-Exim-Scanned: Yes (on mx.chubb.wattle.id.au) Cc: marcel@FreeBSD.org, ppc@FreeBSD.org, ia64@FreeBSD.org Subject: Re: IA64, PPC system call path audit patches X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 08:25:24 -0000 You've only caught the IA64 slow path system call entries. The fast path is highly optimised assembly language inside arch/ia64/kernel/fsys.S, that avoids doing a trap at all. With a modern libc, syscall_via_break is only called for a very few system calls. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au http://www.ertos.nicta.com.au ERTOS within National ICT Australia From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 1 08:29:01 2006 Return-Path: X-Original-To: ppc@FreeBSD.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47D2616A4DA; Fri, 1 Sep 2006 08:29:01 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id F342A43D45; Fri, 1 Sep 2006 08:29:00 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 8968246CEB; Fri, 1 Sep 2006 04:29:00 -0400 (EDT) Date: Fri, 1 Sep 2006 09:29:00 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Peter Chubb In-Reply-To: <87irk8at9i.wl%peterc@quokka.chubb.wattle.id.au> Message-ID: <20060901092636.E4921@fledge.watson.org> References: <20060901080402.W97485@fledge.watson.org> <87irk8at9i.wl%peterc@quokka.chubb.wattle.id.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: marcel@FreeBSD.org, ppc@FreeBSD.org, ia64@FreeBSD.org Subject: Re: IA64, PPC system call path audit patches X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 08:29:01 -0000 On Fri, 1 Sep 2006, Peter Chubb wrote: > You've only caught the IA64 slow path system call entries. The fast path is > highly optimised assembly language inside arch/ia64/kernel/fsys.S, that > avoids doing a trap at all. > > With a modern libc, syscall_via_break is only called for a very few system > calls. Hmm. I'm confused by the above comment -- I'm catching system calls on the kernel side of the system call invocation around the system call, not on the libc side. I only see two system call demux points in the src/sys/ia64 tree: ./ia32/ia32_trap.c: error = (*callp->sy_call)(td, args64); ./ia64/trap.c: error = (*callp->sy_call)(td, args); Both of which are covered in the patch I attached. I'm under the impression that the different mechanisms to enter the kernel system call path converge prior to the system call table evaluation, in the kernel trap code. Do I misunderstand? Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 1 08:40:06 2006 Return-Path: X-Original-To: ppc@FreeBSD.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EE9616A4DD; Fri, 1 Sep 2006 08:40:05 +0000 (UTC) (envelope-from peterc@chubb.wattle.id.au) Received: from mx.chubb.wattle.id.au (mx.chubb.wattle.id.au [66.29.2.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6152D43D45; Fri, 1 Sep 2006 08:40:05 +0000 (GMT) (envelope-from peterc@chubb.wattle.id.au) Received: from c220-237-8-57.randw1.nsw.optusnet.com.au ([220.237.8.57] helo=quokka.chubb.wattle.id.au) by mx.chubb.wattle.id.au with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1GJ4ZN-0006M6-9d; Fri, 01 Sep 2006 18:40:11 +1000 Received: from localhost ([127.0.0.1] helo=quokka.chubb.wattle.id.au) by quokka with esmtp (Exim 4.63) (envelope-from ) id 1GJ4Yo-0001VV-Cc; Fri, 01 Sep 2006 18:39:34 +1000 Date: Fri, 01 Sep 2006 18:39:34 +1000 Message-ID: <87hczsasl5.wl%peterc@quokka.chubb.wattle.id.au> From: Peter Chubb To: Robert Watson In-Reply-To: <20060901092636.E4921@fledge.watson.org> References: <20060901080402.W97485@fledge.watson.org> <87irk8at9i.wl%peterc@quokka.chubb.wattle.id.au> <20060901092636.E4921@fledge.watson.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijò) APEL/10.6 XEmacs/21.4 (patch 19) (Constant Variable) (i386-debian-linux) X-SA-Exim-Connect-IP: 220.237.8.57 X-SA-Exim-Rcpt-To: peterc@gelato.unsw.edu.au, rwatson@FreeBSD.org, ppc@FreeBSD.org, ia64@FreeBSD.org, marcel@FreeBSD.org X-SA-Exim-Mail-From: peterc@chubb.wattle.id.au X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-26) on mx.chubb.wattle.id.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_RFC_ABUSE,GREYLIST_ISWHITE,NO_DNS_FOR_FROM,SPF_SOFTFAIL autolearn=no version=3.1.4 X-SA-Exim-Version: 4.2.1 (built Mon, 27 Mar 2006 13:42:28 +0200) X-SA-Exim-Scanned: Yes (on mx.chubb.wattle.id.au) Cc: marcel@FreeBSD.org, ia64@FreeBSD.org, Peter Chubb , ppc@FreeBSD.org Subject: Re: IA64, PPC system call path audit patches X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 08:40:06 -0000 >>>>> "Robert" == Robert Watson writes: Robert> On Fri, 1 Sep 2006, Peter Chubb wrote: >> You've only caught the IA64 slow path system call entries. The >> fast path is highly optimised assembly language inside >> arch/ia64/kernel/fsys.S, that avoids doing a trap at all. >> >> With a modern libc, syscall_via_break is only called for a very few >> system calls. Robert> Hmm. I'm confused by the above comment -- I'm catching system Robert> calls on the kernel side of the system call invocation around Robert> the system call, not on the libc side. I only see two system Robert> call demux points in the src/sys/ia64 tree: Sure. Original libcs call the system call using break 0x10000, which ends up in the code you saw. Recent libcs call via a gate page with an epc (execute privileged code) instruction that vectors direcgtly to the syscall implementation. Robert> ./ia32/ia32_trap.c: error = (*callp->sy_call)(td, args64); Robert> ./ia64/trap.c: error = (*callp->sy_call)(td, args); Take a look in gate.S, symbol _kernel_syscall_via_epc There's assembly language there that loads the function descriptor from the table and branches to it. THere are two kinds of system call implementations: fast (implemented directly in assembly language in fsys.S) and slow (the code in fsys.S `bubbles down' into kernel space and then invokes the syscall directly. Robert> Both of which are covered in the patch I attached. I'm under Robert> the impression that the different mechanisms to enter the Robert> kernel system call path converge prior to the system call Robert> table evaluation, in the kernel trap code. Do I Robert> misunderstand? Robert> Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 1 09:03:06 2006 Return-Path: X-Original-To: ppc@FreeBSD.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B61C416A4DD; Fri, 1 Sep 2006 09:03:06 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6153643D46; Fri, 1 Sep 2006 09:03:06 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id DC4BC46D9B; Fri, 1 Sep 2006 05:03:05 -0400 (EDT) Date: Fri, 1 Sep 2006 10:03:05 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Peter Chubb In-Reply-To: <87hczsasl5.wl%peterc@quokka.chubb.wattle.id.au> Message-ID: <20060901095744.Q4921@fledge.watson.org> References: <20060901080402.W97485@fledge.watson.org> <87irk8at9i.wl%peterc@quokka.chubb.wattle.id.au> <20060901092636.E4921@fledge.watson.org> <87hczsasl5.wl%peterc@quokka.chubb.wattle.id.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: marcel@FreeBSD.org, ia64@FreeBSD.org, Peter Chubb , ppc@FreeBSD.org Subject: Re: IA64, PPC system call path audit patches X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 09:03:06 -0000 On Fri, 1 Sep 2006, Peter Chubb wrote: >>>>>> "Robert" == Robert Watson writes: > > Robert> On Fri, 1 Sep 2006, Peter Chubb wrote: > >>> You've only caught the IA64 slow path system call entries. The >>> fast path is highly optimised assembly language inside >>> arch/ia64/kernel/fsys.S, that avoids doing a trap at all. >>> >>> With a modern libc, syscall_via_break is only called for a very few >>> system calls. > > Robert> Hmm. I'm confused by the above comment -- I'm catching system > Robert> calls on the kernel side of the system call invocation around > Robert> the system call, not on the libc side. I only see two system > Robert> call demux points in the src/sys/ia64 tree: > > Sure. Original libcs call the system call using break 0x10000, which ends > up in the code you saw. Recent libcs call via a gate page with an epc > (execute privileged code) instruction that vectors direcgtly to the syscall > implementation. > > Robert> ./ia32/ia32_trap.c: error = (*callp->sy_call)(td, args64); > Robert> ./ia64/trap.c: error = (*callp->sy_call)(td, args); > > Take a look in gate.S, symbol _kernel_syscall_via_epc > > There's assembly language there that loads the function descriptor from the > table and branches to it. THere are two kinds of system call > implementations: fast (implemented directly in assembly language in fsys.S) > and slow (the code in fsys.S `bubbles down' into kernel space and then > invokes the syscall directly. As I read the epc_syscall code, it still passes through the kernel syscall() function, which is instrumented in the patch. Are you sure that the code does what you describe? My ia64 assembly reading skills are weak to non-existent, but the final branch in epc_syscall does seem to be to the C language syscall path. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 1 10:02:56 2006 Return-Path: X-Original-To: ppc@FreeBSD.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3713416A4DD; Fri, 1 Sep 2006 10:02:56 +0000 (UTC) (envelope-from peterc@chubb.wattle.id.au) Received: from mx.chubb.wattle.id.au (mx.chubb.wattle.id.au [66.29.2.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80E6743D58; Fri, 1 Sep 2006 10:02:54 +0000 (GMT) (envelope-from peterc@chubb.wattle.id.au) Received: from c220-237-8-57.randw1.nsw.optusnet.com.au ([220.237.8.57] helo=quokka.chubb.wattle.id.au) by mx.chubb.wattle.id.au with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1GJ5rP-0006RS-6y; Fri, 01 Sep 2006 20:02:53 +1000 Received: from localhost ([127.0.0.1] helo=quokka.chubb.wattle.id.au) by quokka with esmtp (Exim 4.63) (envelope-from ) id 1GJ5qv-0001gI-KY; Fri, 01 Sep 2006 20:02:21 +1000 Date: Fri, 01 Sep 2006 20:02:21 +1000 Message-ID: <87fyfbc3bm.wl%peterc@quokka.chubb.wattle.id.au> From: Peter Chubb To: Robert Watson In-Reply-To: <20060901095744.Q4921@fledge.watson.org> References: <20060901080402.W97485@fledge.watson.org> <87irk8at9i.wl%peterc@quokka.chubb.wattle.id.au> <20060901092636.E4921@fledge.watson.org> <87hczsasl5.wl%peterc@quokka.chubb.wattle.id.au> <20060901095744.Q4921@fledge.watson.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijò) APEL/10.6 XEmacs/21.4 (patch 19) (Constant Variable) (i386-debian-linux) X-SA-Exim-Connect-IP: 220.237.8.57 X-SA-Exim-Rcpt-To: peterc@gelato.unsw.edu.au, rwatson@FreeBSD.org, ppc@FreeBSD.org, ia64@FreeBSD.org, marcel@FreeBSD.org X-SA-Exim-Mail-From: peterc@chubb.wattle.id.au X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-26) on mx.chubb.wattle.id.au X-Spam-Level: X-Spam-Status: No, score=-102.1 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_RFC_ABUSE,GREYLIST_ISWHITE,NO_DNS_FOR_FROM,SPF_SOFTFAIL, USER_IN_WHITELIST autolearn=no version=3.1.4 X-SA-Exim-Version: 4.2.1 (built Mon, 27 Mar 2006 13:42:28 +0200) X-SA-Exim-Scanned: Yes (on mx.chubb.wattle.id.au) Cc: marcel@FreeBSD.org, ia64@FreeBSD.org, Peter Chubb , ppc@FreeBSD.org Subject: Re: IA64, PPC system call path audit patches X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 10:02:56 -0000 >>>>> "Robert" == Robert Watson writes: Robert> On Fri, 1 Sep 2006, Peter Chubb wrote: >>>>>>> "Robert" == Robert Watson writes: >> Robert> On Fri, 1 Sep 2006, Peter Chubb wrote: >> >>>> You've only caught the IA64 slow path system call entries. The >>>> fast path is highly optimised assembly language inside >>>> arch/ia64/kernel/fsys.S, that avoids doing a trap at all. >>>> >>>> With a modern libc, syscall_via_break is only called for a very >>>> few system calls. >> Robert> Hmm. I'm confused by the above comment -- I'm catching system Robert> calls on the kernel side of the system call invocation around Robert> the system call, not on the libc side. I only see two system Robert> call demux points in the src/sys/ia64 tree: >> Sure. Original libcs call the system call using break 0x10000, >> which ends up in the code you saw. Recent libcs call via a gate >> page with an epc (execute privileged code) instruction that vectors >> direcgtly to the syscall implementation. >> Robert> ./ia32/ia32_trap.c: error = (*callp->sy_call)(td, args64); Robert> ./ia64/trap.c: error = (*callp->sy_call)(td, args); >> Take a look in gate.S, symbol _kernel_syscall_via_epc >> >> There's assembly language there that loads the function descriptor >> from the table and branches to it. THere are two kinds of system >> call implementations: fast (implemented directly in assembly >> language in fsys.S) and slow (the code in fsys.S `bubbles down' >> into kernel space and then invokes the syscall directly. Robert> As I read the epc_syscall code, it still passes through the Robert> kernel syscall() function, which is instrumented in the patch. Robert> Are you sure that the code does what you describe? My ia64 Robert> assembly reading skills are weak to non-existent, but the Robert> final branch in epc_syscall does seem to be to the C language Robert> syscall path. AAArrrrgg. Sorry, I'm looking at Linux source (where the syscall path is a *lot* more streamlined than the FreeBSD source). My bad, I'll go away and hide in a corner. Peter C From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 1 16:44:02 2006 Return-Path: X-Original-To: ppc@freebsd.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E702416A4DA; Fri, 1 Sep 2006 16:44:02 +0000 (UTC) (envelope-from rick.jones2@hp.com) Received: from palrel12.hp.com (palrel12.hp.com [156.153.255.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADB6A43DAB; Fri, 1 Sep 2006 16:43:37 +0000 (GMT) (envelope-from rick.jones2@hp.com) Received: from tardy.cup.hp.com (tardy.cup.hp.com [15.244.56.217]) by palrel12.hp.com (Postfix) with ESMTP id 23AD8346F3; Fri, 1 Sep 2006 09:43:37 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by tardy.cup.hp.com (8.9.3 (PHNE_28810)/8.9.3 SMKit7.02) with ESMTP id JAA02339; Fri, 1 Sep 2006 09:43:36 -0700 (PDT) Message-ID: <44F86338.8080109@hp.com> Date: Fri, 01 Sep 2006 09:43:36 -0700 From: Rick Jones User-Agent: Mozilla/5.0 (X11; U; HP-UX 9000/785; en-US; rv:1.7.13) Gecko/20060601 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Watson References: <20060901080402.W97485@fledge.watson.org> In-Reply-To: <20060901080402.W97485@fledge.watson.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: marcel@freebsd.org, ppc@freebsd.org, ia64@freebsd.org Subject: Re: IA64, PPC system call path audit patches X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 16:44:03 -0000 Robert Watson wrote: > > (This is a resend of a previously sent patch to ppc@, FYI) > > Attached is a patch that adds the audit event points in the system call > paths for ia64, the ia32 emulation in ia64, and the system call path for > ppc. I'd like to get these committed in the next few days, but am not > set up to test them. A head nod from ia64/ppc maintainers would be good > regardless of whether audit itself has specifically been tested, and it > also wouldn't hurt to compile boot it :-). > > (I'm set up to test/run audit on i386 and amd64, but not other platforms.) On those platforms, what is the effect on say a loopback netperf TCP_RR test when the hooks are in place, and then both in place and enabled? rick jones http://www.netperf.org/ From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 1 18:17:10 2006 Return-Path: X-Original-To: ppc@FreeBSD.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B247A16A4E6 for ; Fri, 1 Sep 2006 18:17:10 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6750C43D55 for ; Fri, 1 Sep 2006 18:17:09 +0000 (GMT) (envelope-from xcllnt@mac.com) Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (Xserve/8.12.11/smtpout12/MantshX 4.0) with ESMTP id k81IH97u005362 for ; Fri, 1 Sep 2006 11:17:09 -0700 (PDT) Received: from [192.168.1.5] (c-67-164-11-148.hsd1.ca.comcast.net [67.164.11.148]) (authenticated bits=0) by mac.com (Xserve/smtpin07/MantshX 4.0) with ESMTP id k81IH7Ea003096 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Fri, 1 Sep 2006 11:17:08 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: <933C0437-DDF8-4A61-83BA-F4920D9E6E96@mac.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: ppc@FreeBSD.org From: Marcel Moolenaar Date: Fri, 1 Sep 2006 11:16:30 -0700 X-Mailer: Apple Mail (2.752.2) Cc: Subject: Status of threading and TLS X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 18:17:10 -0000 All, I've been working on TLS for both ia64 and powerpc and all is well... except for one nasty bugger on powerpc. Here's the status on powerpc: TLS for non-threaded statically linked applications: working TLS for non-threaded dynamically linked applications: working TLS for statically linked 1:1 (libthr): working TLS for dynamically linked 1:1 (libthr): working TLS for statically linked M:N (libpthread): bugger! TLS for dynamically linked M:N (libpthread: bugger! The bugger for libpthread is that register r2 (the TLS pointer) is off by 8 bytes. I have no idea where that happens and I've been going over the code a hundred times. It's obvious that I either developed a blind spot, or I'm not looking in the right place. I need your help before I can have malloc(3) use TLS safely! To demon strate the problem, assume the following program: \begin{verbatim} #include #include int __thread i = -1; static void * thread(void *arg) { int j; j = (int)arg; return (arg); } int main(int argc, char *argv[]) { pthread_t pt; int err; err = pthread_create(&pt, NULL, thread, i); pthread_join(pt, NULL); return (0); } \end{verbatim} If I link it with libthr, run it in the debugger with breakpoints on main() and thread(), I can inspect register r2: : : (gdb) run Starting program: /nfs/home/marcel/t Breakpoint 1, main (argc=1, argv=0x7fffdc04) at t.c:21 21 err = pthread_create(&pt, NULL, thread, i); (gdb) p $r2 $1 = 27308344 (gdb) p ((int *)($r2 - 0x7008))[0] $2 = 27279680 (gdb) p ((int *)($r2 - 0x7008))[2] $3 = -1 The magic above means the following: r2 holds the address of the thread pointer of the main thread $2 holds the address of the DTV. The DTV is at TLS[0] $3 holds the value of the thread local variable i. It is -1. Now, to see how this pans out for the first thread: (gdb) c Continuing. Breakpoint 2, thread (arg=0xffffffff) at t.c:11 11 j = (int)arg; (gdb) p $r2 $4 = 27308376 (gdb) p ((int *)($r2 - 0x7008))[0] $5 = 27279712 (gdb) p ((int *)($r2 - 0x7008))[2] $6 = -1 Expected results. Now, if I link against libpthread I get the following: : : (gdb) run Starting program: /nfs/home/marcel/t Breakpoint 1, main (argc=1, argv=0x7fffdc04) at t.c:21 21 err = pthread_create(&pt, NULL, thread, i); (gdb) p $r2 $1 = 27493528 (gdb) p ((int *)($r2 - 0x7008))[0] $2 = 0 (gdb) p ((int *)($r2 - 0x7008))[2] $3 = 27279680 This is wrong. But... (gdb) p ((int *)($r2 - 0x7008))[4] $4 = -1 It appears that register r2 is off by 8 bytes. Let me double check. DTV entry 2 should point to the thread local variable i (lucky us): (gdb) p /x ((int *)$3)[2] $5 = 0x1a314a0 (gdb) p &((int *)($r2 - 0x7008))[4] $6 = (int *) 0x1a314a0 Yup. Now how this happens, I don't know. If anyone has any suggestions why for libpthread we end up with r2 off by 8 bytes, I'm happy to hear it... -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 1 18:40:06 2006 Return-Path: X-Original-To: ppc@FreeBSD.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E43DE16A4DA for ; Fri, 1 Sep 2006 18:40:06 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48EFD43D46 for ; Fri, 1 Sep 2006 18:40:06 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id CBU92098 (AUTH peterg@ptree32.com.au); Sat, 2 Sep 2006 04:39:55 +1000 (EST) Message-ID: <44F87E8C.9000705@freebsd.org> Date: Fri, 01 Sep 2006 11:40:12 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: Marcel Moolenaar References: <933C0437-DDF8-4A61-83BA-F4920D9E6E96@mac.com> In-Reply-To: <933C0437-DDF8-4A61-83BA-F4920D9E6E96@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ppc@FreeBSD.org Subject: Re: Status of threading and TLS X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 18:40:07 -0000 Hi Marcel, > If anyone has any suggestions why for libpthread we end up > with r2 off by 8 bytes, I'm happy to hear it... I don't have access to a PPC machine at the moment, but would it have anything to do with: struct ppc32_tp { void *tp_dtv; /* dynamic thread vector */ uint32_t _reserved_; double tp_tls[0]; /* static TLS */ }; I think the last element was put in for alignment, but would that possibly have an effect somewhere else, in that it's forcing an 8-byte pad somewhere ? If the last element is removed, does it make a difference ? I saw that the libthr code doesn't have a member. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 1 18:45:36 2006 Return-Path: X-Original-To: ppc@freebsd.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BD9A16A4DE; Fri, 1 Sep 2006 18:45:36 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6D6B43D55; Fri, 1 Sep 2006 18:45:35 +0000 (GMT) (envelope-from xcllnt@mac.com) Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (Xserve/8.12.11/smtpout05/MantshX 4.0) with ESMTP id k81IjZO1008992; Fri, 1 Sep 2006 11:45:35 -0700 (PDT) Received: from [192.168.1.5] (c-67-164-11-148.hsd1.ca.comcast.net [67.164.11.148]) (authenticated bits=0) by mac.com (Xserve/smtpin07/MantshX 4.0) with ESMTP id k81IjQPH014976 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Fri, 1 Sep 2006 11:45:33 -0700 (PDT) In-Reply-To: <44F87E8C.9000705@freebsd.org> References: <933C0437-DDF8-4A61-83BA-F4920D9E6E96@mac.com> <44F87E8C.9000705@freebsd.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <49A44B45-780B-462D-AB1E-547E87460208@mac.com> Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Fri, 1 Sep 2006 11:44:49 -0700 To: Peter Grehan X-Mailer: Apple Mail (2.752.2) Cc: ppc@freebsd.org Subject: Re: Status of threading and TLS X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 18:45:36 -0000 On Sep 1, 2006, at 11:40 AM, Peter Grehan wrote: > Hi Marcel, > >> If anyone has any suggestions why for libpthread we end up >> with r2 off by 8 bytes, I'm happy to hear it... > > I don't have access to a PPC machine at the moment, but would it > have anything to do with: > > struct ppc32_tp { > void *tp_dtv; /* dynamic thread vector */ > uint32_t _reserved_; > double tp_tls[0]; /* static TLS */ > }; > > I think the last element was put in for alignment, but would that > possibly have an effect somewhere else, in that it's forcing an 8- > byte pad somewhere ? I've been thinking about that too. I played with the following definition to see if it made a difference: union ppc32_tp { void *tp_ptr[2]; double _align_; }; It didn't make a difference :-/ Note that I use the same on ia64, except that on ia64 we need it aligned on a 16-byte boundary. Hence, the definition is: struct ia64_tp { void *tp_dtv; uint64_t _reserved_; long double tp_tls[0]; } It doesn't cause problems on ia64... -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 1 19:11:39 2006 Return-Path: X-Original-To: ppc@freebsd.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE95B16A4DD; Fri, 1 Sep 2006 19:11:39 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B7EF43D64; Fri, 1 Sep 2006 19:11:35 +0000 (GMT) (envelope-from xcllnt@mac.com) Received: from mac.com (smtpin02-en2 [10.13.10.147]) by smtpout.mac.com (Xserve/8.12.11/smtpout15/MantshX 4.0) with ESMTP id k81JBYpc011463; Fri, 1 Sep 2006 12:11:34 -0700 (PDT) Received: from [192.168.1.5] (c-67-164-11-148.hsd1.ca.comcast.net [67.164.11.148]) (authenticated bits=0) by mac.com (Xserve/smtpin02/MantshX 4.0) with ESMTP id k81JBVfH024364 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Fri, 1 Sep 2006 12:11:33 -0700 (PDT) In-Reply-To: <49A44B45-780B-462D-AB1E-547E87460208@mac.com> References: <933C0437-DDF8-4A61-83BA-F4920D9E6E96@mac.com> <44F87E8C.9000705@freebsd.org> <49A44B45-780B-462D-AB1E-547E87460208@mac.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <769A17D5-FD72-417F-8F0C-C371148296D9@mac.com> Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Fri, 1 Sep 2006 12:10:54 -0700 To: Marcel Moolenaar X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAgNsLY8DbC8F X-SpamScan: Suspected Spam Cc: ppc@freebsd.org, Peter Grehan Subject: Re: Status of threading and TLS X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 19:11:40 -0000 On Sep 1, 2006, at 11:44 AM, Marcel Moolenaar wrote: > On Sep 1, 2006, at 11:40 AM, Peter Grehan wrote: > >>> If anyone has any suggestions why for libpthread we end up >>> with r2 off by 8 bytes, I'm happy to hear it... >> >> I don't have access to a PPC machine at the moment, but would it >> have anything to do with: >> >> struct ppc32_tp { >> void *tp_dtv; /* dynamic thread vector */ >> uint32_t _reserved_; >> double tp_tls[0]; /* static TLS */ >> }; >> >> I think the last element was put in for alignment, but would that >> possibly have an effect somewhere else, in that it's forcing an 8- >> byte pad somewhere ? > > I've been thinking about that too. I played with the following > definition > to see if it made a difference: > > union ppc32_tp { > void *tp_ptr[2]; > double _align_; > }; > > It didn't make a difference :-/ I found it! The ucontext on powerpc is 16-bytes aligned. This means that struct tcb is a multiple of 16-bytes. It so happened that there were 8 bytes of padding after struct ppc32_tp. So, we need to force 16-byte alignment for struct ppc32_tp or add internal padding before struct tcb so as to eliminate padding after it. I opted for the latter... All is well! -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 1 19:18:08 2006 Return-Path: X-Original-To: ppc@freebsd.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7199A16A4F8 for ; Fri, 1 Sep 2006 19:18:08 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16A0D43D8F for ; Fri, 1 Sep 2006 19:17:40 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id CBU95685 (AUTH peterg@ptree32.com.au); Sat, 2 Sep 2006 05:17:25 +1000 (EST) Message-ID: <44F88758.9030402@freebsd.org> Date: Fri, 01 Sep 2006 12:17:44 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: Marcel Moolenaar References: <933C0437-DDF8-4A61-83BA-F4920D9E6E96@mac.com> <44F87E8C.9000705@freebsd.org> <49A44B45-780B-462D-AB1E-547E87460208@mac.com> <769A17D5-FD72-417F-8F0C-C371148296D9@mac.com> In-Reply-To: <769A17D5-FD72-417F-8F0C-C371148296D9@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ppc@freebsd.org Subject: Re: Status of threading and TLS X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 19:18:08 -0000 > The ucontext on powerpc is 16-bytes aligned That's for Altivec if/when it gets done. > All is well! Great! Thanks for you work on this Marcel. later, Peter.