From owner-freebsd-ppc@freebsd.org Tue Sep 13 17:11:36 2016 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 A08C2BD9A66 for ; Tue, 13 Sep 2016 17:11:36 +0000 (UTC) (envelope-from jau789@gmail.com) Received: from mail-lf0-x244.google.com (mail-lf0-x244.google.com [IPv6:2a00:1450:4010:c07::244]) (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 1F8A97A7 for ; Tue, 13 Sep 2016 17:11:36 +0000 (UTC) (envelope-from jau789@gmail.com) Received: by mail-lf0-x244.google.com with SMTP id k12so7393173lfb.1 for ; Tue, 13 Sep 2016 10:11:36 -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; bh=fHcuNrByxPPdaelgmetpEc9mCHXhnGrw9iGYXiI+y4o=; b=V6nCOZieouvjiADYwsYT6JqvZv86QgtKxEWIcXz66R7VMH8VPT7JBwSHKRjfIQjGBr LnnRO89Ju/9uhFHNinCiDdXGp+ireI7GDWBgsCtggGGbJANKXtwBdcy1jc6Jia+cXNxd a1viVGo7NH58qEpSscKKXWybbK9xNE5RFyVWJhE0YMYz0TTuknWBDD9AdbznNelWHTbA E9hR78f4Y5ktl3fTd693gncn6/fFBSD9YmqxGWJjtnxixioZEA4SkPDrmkiCI6JYGrqZ OH/8Bq0JW2yEHSlwOFwEj6Ng0j99cUFIKPPVvqjKTMFEZ3HniHG/hFC7xmjLx6zhszRb HGdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=fHcuNrByxPPdaelgmetpEc9mCHXhnGrw9iGYXiI+y4o=; b=I0vO9s+Hpv9JaRVy+C3fJZ5yrqhehEs/fhOd5ElPWkGvzOLlH5P2KJsnaNH47uMy1G o8eFdNfRTuF7tMTMXFWa4NwcRkJZVJHfBmc2rZQv4jpua+MOgPT1PdmDfWq1NB8P8oA9 tvq3BXXsJxCHnZnc4yzZrwIyyVGJK+wGYn5bFxuD9TyvssvS7ODi+AzAXEqiyCNCJU/b qYaworMeD5wOsXgxayDsSIplWU4qHcsdKw637unURJRAVQ/HvoOC7jUhMAgROJmoe2yS w6x5PPcSEPOj5r3z1G5nl4IHYQr41Gvlm98FFXEJLWfAsonciGZSHpD8BPHf3Z7R6arm y32w== X-Gm-Message-State: AE9vXwN53JQlSV5TbsxTNcd5m7FWHfLwhzIBw+XA3rzvLKYKY4zgUBpgZZozVsT6GttmKw== X-Received: by 10.46.0.93 with SMTP id 90mr7403140lja.39.1473786693188; Tue, 13 Sep 2016 10:11:33 -0700 (PDT) Received: from [192.168.1.131] (xdsl-205-1.nblnetworks.fi. [83.145.205.1]) by smtp.googlemail.com with ESMTPSA id c125sm4051889lfe.10.2016.09.13.10.11.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Sep 2016 10:11:32 -0700 (PDT) Subject: Re: [Bug 205458] 11.0-CURRENT/10-STABLE powerpc64: a PowerMac G5 specific sys/powerpc/ofw/ofw_machdep.c change for reliable PowerMac G5 booting (with lots of RAM) To: freebsd-ppc@freebsd.org References: From: "Jukka A. Ukkonen" Message-ID: <3c513eea-cd94-7065-87b8-5200490b97c3@gmail.com> Date: Tue, 13 Sep 2016 20:11:31 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------0F09F34F9C0F71223565B982" X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2016 17:11:36 -0000 This is a multi-part message in MIME format. --------------0F09F34F9C0F71223565B982 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit On 09/13/16 09:31, bugzilla-noreply@freebsd.org wrote: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205458 > > --- Comment #5 from Mark Millard --- > Nathan Whitehorn has put out a kernel patch that he is asking for help with > testing on PowerMac/iMac G5 variations. See: > > https://lists.freebsd.org/pipermail/freebsd-ppc/2016-September/008413.html > > The patch is not just using __powerpc64__ instead of POWERMAC_G5_SPECIFIC_BUILD > in my presentation of my hack. > > Nathan has already tested a PowerMac11,2. > > If anyone reading this has any other type(s) of Apple G5's and is willing/able > it would be good to get in some testing before the change is made to the > kernel. > > I expect that it does not mater much which version/variation of 10.x, 11.0, or > 12 is used if the original boot problems can sometimes be observed before the > change. Although I'm not sure of the patch automatically applies nicely to all > possible vintages of those. > > > As for me. . . > > It will be a few weeks before I'll again have access in order to test a > PowerMac7,2 (or to independently repeat PowerMac11,2 testing). I'll not have > access to other Apple G5's. So my range of testing will be rather limited and > will not be soon. > Following Mark's advice I tried an alternate change and now at least my PowerMac7,3 boots just fine through the autoconfigure phase. The first hiccup I see is with tmpfs mount to /tmp, but that, I hope, it is a completely unrelated issue. The patch I am now using on my PowerMac G5 is attached. The modification is Mark's, I just tested it. I don't have the foggiest idea where and how he figured out this change, but at least in my test on one system only it seems to work wonders. --jau PS. If someone knows why the tmpfs has started complaining mount: tmpfs: Operation not supported by device where it previously (last 11.0-BETA2) worked just fine, let me know. --------------0F09F34F9C0F71223565B982 Content-Type: text/x-patch; name="ppc64-ofw_machdep.c.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ppc64-ofw_machdep.c.patch" Index: sys/powerpc/ofw/ofw_machdep.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/powerpc/ofw/ofw_machdep.c (revision 305763) +++ sys/powerpc/ofw/ofw_machdep.c (working copy) @@ -112,12 +112,11 @@ * SPRG1-3 could be trashed */ __asm __volatile("mfsprg0 %0\n\t" - "mtsprg0 %1\n\t" - "mtsprg1 %2\n\t" - "mtsprg2 %3\n\t" - "mtsprg3 %4\n\t" + "mtsprg1 %1\n\t" + "mtsprg2 %2\n\t" + "mtsprg3 %3\n\t" : "=3D&r"(ofw_sprg0_save) - : "r"(ofmsr[1]), + :=20 "r"(ofmsr[2]), "r"(ofmsr[3]), "r"(ofmsr[4])); --------------0F09F34F9C0F71223565B982--