Date: Tue, 13 Sep 2016 17:15:00 +0000 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) Message-ID: <bug-205458-8-X3PZgfpk5f@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-205458-8@https.bugs.freebsd.org/bugzilla/> References: <bug-205458-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205458 --- Comment #6 from Mark Millard <markmi@dsl-only.net> --- (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<PPC32,PPC64,ALTIVEC,FPU,MMU> cpu0: HID0 511081<NAP,DPM,NHR,TBEN,ENATTN> 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205458-8-X3PZgfpk5f>