From owner-freebsd-bugs@freebsd.org Tue Sep 13 17:15:00 2016 Return-Path: Delivered-To: freebsd-bugs@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 D3083BD9B90 for ; Tue, 13 Sep 2016 17:15:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A989FB83 for ; Tue, 13 Sep 2016 17:15:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8DHF0iR002223 for ; Tue, 13 Sep 2016 17:15:00 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [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) Date: Tue, 13 Sep 2016 17:15:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2016 17:15:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205458 --- Comment #6 from Mark Millard --- (In reply to Mark Millard from comment #5) Jukka A. Ukkonen has reported Nathan Whithorns patch to have failed to work= but my hack to have worked: In https://lists.freebsd.org/pipermail/freebsd-ppc/2016-September/008416.ht= ml he reports the failure of Nathan's patch. . . I just tried the patch on a PowerMac G5 early 2005 model ... cpu0: IBM PowerPC 970 revision 2.2, 2000.19 MHz cpu0: Features dc000000 cpu0: HID0 511081 which I think is a PowerMac7,3. It still panics right after it has reported VT(ofwfb). --jau But we had an E-mail exchange about him manually applying a simple edit to = get my patch and he reports in the end. . . I rebooted the box only a few minutes ago, and this time it booted just fine. Well, the tmpfs has started failing as follows... # mount /tmp mount: tmpfs: Operation not supported by device but supposedly this is an unrelated issue. At least I hope so. ;-) Now the function reads as shown below, and I guess this is exactly what you had in mind. static __inline void ofw_sprg_prepare(void) { if (ofw_real_mode) return; /* * Assume that interrupt are disabled at this point, or * SPRG1-3 could be trashed */ __asm __volatile("mfsprg0 %0\n\t" "mtsprg1 %1\n\t" "mtsprg2 %2\n\t" "mtsprg3 %3\n\t" : "=3D&r"(ofw_sprg0_save) : "r"(ofmsr[2]), "r"(ofmsr[3]), "r"(ofmsr[4])); } So, from my point of view the PowerMac7,3 seems to be back to relative health with this change. I hope it works for all the other G5s as well. --jau --=20 You are receiving this mail because: You are the assignee for the bug.=