From owner-freebsd-ppc@freebsd.org Sun Sep 6 06:10:40 2015 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B245C9CBFBB for ; Sun, 6 Sep 2015 06:10:40 +0000 (UTC) (envelope-from jau789@gmail.com) Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4EA7D1C6C for ; Sun, 6 Sep 2015 06:10:40 +0000 (UTC) (envelope-from jau789@gmail.com) Received: by wicfx3 with SMTP id fx3so57438985wic.1 for ; Sat, 05 Sep 2015 23:10:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=K4r2ErYJhv1PePVhJf6P5eZHNyl63YkOKlQ93d3PEzg=; b=E7Ewn8B0dBeiry0bBTiQO4NIOvST8bv4MZpPuVLMaglI72EVVHkN5qlUO93cXRAtx1 F9etmtZPowA9swECPeGHoOLFUCHWp1qJwbN3LP9G3KO/2WpnhF1iOX+WyBpCllzNUzh2 8P7t+iVMO3jppXBYC9UZPwFwGXF+uibaiFPO+KRwk/JrDZIeSvtZxqCMIGNUzlge81v8 PuoRuhZhvQRNF7lvLgYjxsXu8XDKK8b6gA6DslS13xCjbhTiaNi/cndu3a6JmbRc77qF FgAOgulSlfC7KqUXBTG+13lL0uZx+5eZwOEhThqSSwCZkTRyXm4lntl6TQ7qO9BhtXjU KcEg== X-Received: by 10.194.179.137 with SMTP id dg9mr23757951wjc.55.1441519837918; Sat, 05 Sep 2015 23:10:37 -0700 (PDT) Received: from [192.168.1.131] (xdsl-205-163.nblnetworks.fi. [83.145.205.163]) by smtp.googlemail.com with ESMTPSA id xs1sm13217011wjc.7.2015.09.05.23.10.37 for (version=TLSv1/SSLv3 cipher=OTHER); Sat, 05 Sep 2015 23:10:37 -0700 (PDT) To: freebsd-ppc@FreeBSD.org From: Jukka Ukkonen Subject: Getting Open Firmware on PowerMac G5 to boot from the CD X-Enigmail-Draft-Status: N1110 Message-ID: <55EBD8DC.80700@gmail.com> Date: Sun, 6 Sep 2015 09:10:36 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2015 06:10:40 -0000 Hello all, Does anyone remember how one is supposed to tell Open Firmware on a PowerMac G5 to boot FreeBSD from the CD? I got an old PowerMac G5 a few days ago. Now I have it waiting at the "ok" prompt, but I just can't remember the magic spell I gave to my G4 to make it boot from the CD, and to be quite honest I don't have the foggiest idea whether the same magic should work for a G5. --jau From owner-freebsd-ppc@freebsd.org Sun Sep 6 06:42:22 2015 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72B709CB12E for ; Sun, 6 Sep 2015 06:42:22 +0000 (UTC) (envelope-from jau789@gmail.com) Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D50DB57 for ; Sun, 6 Sep 2015 06:42:22 +0000 (UTC) (envelope-from jau789@gmail.com) Received: by wiclk2 with SMTP id lk2so53331320wic.1 for ; Sat, 05 Sep 2015 23:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=W9H1402c6xJfAx9NWwJ+p1p6zuvEDa5dBrHwT4y/3zs=; b=eZiLr9kr4xOsd5rcSbqM1X3AMXySbdTuKDL+79x6GgkTu4kg4k6kLBoOeA4jUcSdS3 rmbZc8OaiaEbgqaCeU9R3sg1cquUGE0/yG0mnxH5AlHnMDYoeeLIIfClIljOZfZlyZnx WSS//kPuWXFCr6BWIZ9YeQp0Y/yClC945gbRTt7dSFXIKEkz5mqj056g1j6Uy/2Ha/eL rBC63n/axvkcx2X9DuB8m/m+1s8o4kmW4vXMCaHja9F1F77ktRCTGh+CqiVH0uAGKpws Sfx0jZVKZmXsp5+p4Tuxb1KLTiBboxojKOWiUw8y2SzLyOSEuB5OEJDB7U/19BsbwsRE F1bg== X-Received: by 10.194.175.99 with SMTP id bz3mr24831165wjc.48.1441521740295; Sat, 05 Sep 2015 23:42:20 -0700 (PDT) Received: from [192.168.1.131] (xdsl-205-163.nblnetworks.fi. [83.145.205.163]) by smtp.googlemail.com with ESMTPSA id bu19sm13292060wjb.45.2015.09.05.23.42.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Sep 2015 23:42:19 -0700 (PDT) Subject: Re: Getting Open Firmware on PowerMac G5 to boot from the CD To: freebsd-ppc@FreeBSD.org References: <55EBD8DC.80700@gmail.com> From: Jukka Ukkonen Message-ID: <55EBE04A.1040900@gmail.com> Date: Sun, 6 Sep 2015 09:42:18 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55EBD8DC.80700@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2015 06:42:22 -0000 On 09/06/15 09:10, Jukka Ukkonen wrote: > > Does anyone remember how one is supposed to tell Open Firmware on > a PowerMac G5 to boot FreeBSD from the CD? > > I got an old PowerMac G5 a few days ago. Now I have it waiting at the > "ok" prompt, but I just can't remember the magic spell I gave to my > G4 to make it boot from the CD, and to be quite honest I don't have > the foggiest idea whether the same magic should work for a G5. I found the answer only minutes after I had asked this. So, I here it is in case anyone else needs the same info... boot cd:,\\:tbxi --jau From owner-freebsd-ppc@freebsd.org Sun Sep 6 07:20:30 2015 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 64EE49CB156 for ; Sun, 6 Sep 2015 07:20:30 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 56A9D189B; Sun, 6 Sep 2015 07:20:30 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id 55F94117C; Sun, 6 Sep 2015 07:20:30 +0000 (UTC) Date: Sun, 6 Sep 2015 07:20:30 +0000 From: Alexey Dokuchaev To: Justin Hibbits Cc: "Herminio Hernandez, Jr." , FreeBSD PowerPC ML Subject: 64-bit atomic ops on 32-bit CPU (again) Message-ID: <20150906072030.GA96996@FreeBSD.org> References: <20150805185841.GA61013@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2015 07:20:30 -0000 On Wed, Aug 05, 2015 at 03:16:58PM -0700, Justin Hibbits wrote: > I *think* all that's needed is atomic64 emulation. I had written a > patch implementing them, [...] Hmm, perhaps you can help me here for a slightly different problem? I need to do __sync_fetch_and_add() on int64_t argument (in userspace), but linking fails due to undefined reference to `__sync_fetch_and_add_8' (this is on 32-bit G4). I've googled a bit on how to implement a lock-free atomic 64-bit addition on a 32-bit ppc (e.g. [1], [2]), it looks certainly doable (albeit would require good understanding of CPU and cache details, and a manual ;-). What's my best bet here: implement local __sync_fetch_and_add_64() with inline asm(), or teach gcc how to avoid __sync_fetch_and_add_8() linking problem somehow? ./danfe [1] http://lists.apple.com/archives/perfoptimization-dev/2008/Nov/msg00012.html [2] https://lists.freebsd.org/pipermail/freebsd-ppc/2008-September/003129.html From owner-freebsd-ppc@freebsd.org Sun Sep 6 19:45:36 2015 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C93349CB1F3 for ; Sun, 6 Sep 2015 19:45:36 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B2FD91DFA for ; Sun, 6 Sep 2015 19:45:36 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from zeppelin.tachypleus.net (75-101-50-44.static.sonic.net [75.101.50.44]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id t86JjSJl028059 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sun, 6 Sep 2015 12:45:28 -0700 Subject: Re: 10.2 Unable 2 install on Power8 through IBM KVM To: freebsd-ppc@freebsd.org References: <3n4WQN48XVz1cXL2@baobab.bilink.it> <3n6whq4gSZzRRrt@baobab.bilink.it> <201509051649.t85GncPD025586@j.mx.sonic.net> From: Nathan Whitehorn Message-ID: <55EC97D8.9080800@freebsd.org> Date: Sun, 6 Sep 2015 12:45:28 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <201509051649.t85GncPD025586@j.mx.sonic.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVb6JDc2/sQcG22O8H1Hx3XSdFQ/WojP0k/d7Rs5ICM3F1FzGbBI6YWl838hO2+lpkSx0ig0z4vhcCv4y30h4/abWTJHJ+qSnXQ= X-Sonic-ID: C;lvg8089U5RGgIL0U9jFv0A== M;BHqY089U5RGgIL0U9jFv0A== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2015 19:45:36 -0000 Video consoles don't work reliably in PowerKVM at the moment. Could you try disabling it (-nographic -vga none) to QEMU and using the serial console instead? -Nathan On 09/05/15 01:39, Luciano Mannucci (by way of Luciano Mannucci ) wrote: > On Fri, 4 Sep 2015 10:24:27 -0700 > Adrian Chadd wrote: > >> FreeBSD-HEAD. ie, freebsd-11. I think there are powerpc64 snapshots of >> freebsd-head that you can try booting as a guest VM. > Yes there are some. > I've tried 20150818, 20150826 and 20150903. > All of them gave me moreless the same result that can be seen at URL > http://www.vespaperitivo.it/Try-one.png (I havent figured out how to > grab the text from qemu guest coonsole) > > Do you think it's woth have a go with all the previous snapshots? > > Many thanks again, > > Luciano. From owner-freebsd-ppc@freebsd.org Thu Sep 10 16:22:35 2015 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 558DCA01300 for ; Thu, 10 Sep 2015 16:22:35 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 211FD1CC2; Thu, 10 Sep 2015 16:22:35 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by igxx6 with SMTP id x6so19373807igx.1; Thu, 10 Sep 2015 09:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=njN2AQGFZdpWpdcZVSvaqLNcWq66IbdPn8H0AVoRtko=; b=UJI3noi4U4bocP9D765tpMlC4Xi16zIWwqQSxJ7Ev8b8wMX3YxDUylzSXUFu97EV2x +Wqavzw+QCNUzcmfGZPGrOHmmKxJ6cYzHt5JXu6VSvwlkpAMIlFQtOExOdYlnKNGnKX+ gg73xlTWXCmuweXWJzLXe8VcZT+Nhbh7LjCvh2LgDz7KyzZ8Cs9hrVYtx87exwX2rbyL /wBhSxti3cahN0GmVaki9jQfDvqsnvmOSiJEx5/G9Kv24zoZs9827TRuyB77MoDlrQX+ M36QBrVCLiO0lWcpAotzian6KLlbt8YGPrxHuksLLn4HIbS76hCcX1tiOwFddPHCYC34 g2rA== MIME-Version: 1.0 X-Received: by 10.50.142.1 with SMTP id rs1mr7784221igb.17.1441902154642; Thu, 10 Sep 2015 09:22:34 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.36.58.83 with HTTP; Thu, 10 Sep 2015 09:22:34 -0700 (PDT) In-Reply-To: <20150906072030.GA96996@FreeBSD.org> References: <20150805185841.GA61013@FreeBSD.org> <20150906072030.GA96996@FreeBSD.org> Date: Thu, 10 Sep 2015 09:22:34 -0700 X-Google-Sender-Auth: U3UB5NIGCeqWAa8PtRK4Lc-F0-s Message-ID: Subject: Re: 64-bit atomic ops on 32-bit CPU (again) From: Justin Hibbits To: Alexey Dokuchaev Cc: "Herminio Hernandez, Jr." , FreeBSD PowerPC ML Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2015 16:22:35 -0000 On Sun, Sep 6, 2015 at 12:20 AM, Alexey Dokuchaev wrote: > On Wed, Aug 05, 2015 at 03:16:58PM -0700, Justin Hibbits wrote: >> I *think* all that's needed is atomic64 emulation. I had written a >> patch implementing them, [...] > > Hmm, perhaps you can help me here for a slightly different problem? I > need to do __sync_fetch_and_add() on int64_t argument (in userspace), > but linking fails due to undefined reference to `__sync_fetch_and_add_8' > (this is on 32-bit G4). > > I've googled a bit on how to implement a lock-free atomic 64-bit addition > on a 32-bit ppc (e.g. [1], [2]), it looks certainly doable (albeit would > require good understanding of CPU and cache details, and a manual ;-). > > What's my best bet here: implement local __sync_fetch_and_add_64() with > inline asm(), or teach gcc how to avoid __sync_fetch_and_add_8() linking > problem somehow? > > ./danfe > > [1] http://lists.apple.com/archives/perfoptimization-dev/2008/Nov/msg00012.html > [2] https://lists.freebsd.org/pipermail/freebsd-ppc/2008-September/003129.html Hmm, looking at it again, you could feasibly just augment sys/dev/drm2/drm_atomic.h to use different atomic64 primitives, rather than adding 64-bit atomic(9) support. As for the user space, I would add __sync_*_8() methods into contrib/compiler-rt/lib/builtins/ppc, a'la .../arm/sync*.S . - Justin