From owner-freebsd-ppc@freebsd.org Tue Jan 29 07:18:50 2019 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1E20C14AEF2C for ; Tue, 29 Jan 2019 07:18:50 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic305-2.consmr.mail.bf2.yahoo.com (sonic305-2.consmr.mail.bf2.yahoo.com [74.6.133.41]) (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 1707270034 for ; Tue, 29 Jan 2019 07:18:48 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: wPvVk4QVM1lrN4TVsgPRk_LqDu_LJaw3PGKeRITbnVtiLXpmAmZYF7unrBcZ0y9 XrLBonW7i5ZZh3k8IsT.hK9tLJzOhV7jxh001vP7YMYkwQ9RuV6wXmhJ0MA1.qws3jTRGHcoLmYU yl7gSTJBdlJcBckTA8zQJbF7KxfMpymDHuIUDsc1EDrTj.ePVaWVjawcIyxoN8KMXge5HPiRArc3 gOMA1.XsRlBTNJqJH3OrGCSXuR7zfu8IThAhu4TcIFjLPtagyjyQA20kc.K63WQx.ODeqxTqfQgN TfsLgc._jIQ1zYttvmnF._SI8YZzqukOS.ve9Hoau1.yyTcTZu1ZfmCyyjWNOYfGVf7gWs.YXGmk z.XPoRM7BSv.Ph0gJ.SXXFOVt5J48WVL14oRkLpx8le_q.DcV0.SHrUNh2gR16jnLIIzxhwg5Gna suGd4T_IxgcIST6ZLSWURFK__2LzfFZsg.u7_PflAYNSH2zQYHpOCoiAV.M0MtMZ2dhJkpym24nD yu6fiERguIeFylG_2iLGm4puQLvQfQOyYi1cvkh09fIemJBB5Q1ect4WJy0U44kKbRnycb2im0hX wVyxlZEu2xR5CadhDIXir2aNBVVmYX4JFOK4C2wt_jxpFUp9k.O_vt.Xws4ErNLk.jtjPNXgK9Ks Q4cmLCNsdnwTn7qytJqR1wONKBg8JShPVa1SigwuKLDIV2i1ZznLSxf7XovUI1HLvd2iwISCrpiD s2qOmpfcMRQpSPM.SWIo1DzsBIRTJ0LyI1fgfSTqew1wRDrgosaAHmj_MAq6I7vXNNE48nnM06pJ bFAVdd.bXh5BhyahagzwDq_fqf20FsmCUbcyWOc3bWF0K4QEyysp7OhtO_3YuQfhDTjfzrdIhWjt ZyGqQNxWPl4LjKf6H0IUyet_tQ12JpaX.4wPeiVVmL9CI3Y6.mbyNz9aAOW1CL5eem2JFgFJ9s9H ZwzL9lctJKwA4.G6Md6HKE.ZTGPYG9zNPVOx5DdhobpXKsj.xMsBls8xepQQ.QFDtRR.ht9rYYvM CKFpyvrozPQr31Pi9UKVTAXOC6OJfruvrBlIGFii6MkQu2K71lCNzOse4xjZ1z8okLbU4IlM- Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Tue, 29 Jan 2019 07:18:47 +0000 Received: from c-67-170-167-181.hsd1.or.comcast.net (EHLO [192.168.1.113]) ([67.170.167.181]) by smtp413.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID a1e479a5117f09f1764581207cea147b; Tue, 29 Jan 2019 07:18:45 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: PowerMac G5 4-core (system total): usefdt=1 style booting (by itself): Turns out it usually hangs up during booting from power off From: Mark Millard In-Reply-To: <14F0F9E2-53C8-4E0A-B0F6-4491A9EC6076@yahoo.com> Date: Mon, 28 Jan 2019 23:18:43 -0800 Cc: Curtis Hamilton Content-Transfer-Encoding: quoted-printable Message-Id: <3DB75B89-5384-4442-A022-C80BF858726C@yahoo.com> References: <47F8D1D3-11BC-4EC9-89AE-65566A6F9087@yahoo.com> <14F0F9E2-53C8-4E0A-B0F6-4491A9EC6076@yahoo.com> To: FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: 1707270034 X-Spamd-Bar: ++ X-Spamd-Result: default: False [2.98 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(1.34)[ip: (4.21), ipnet: 74.6.128.0/21(1.42), asn: 26101(1.13), country: US(-0.08)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:26101, ipnet:74.6.128.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.76)[0.758,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_MEDIUM(0.89)[0.887,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.50)[0.503,0]; RCVD_IN_DNSWL_NONE(0.00)[41.133.6.74.list.dnswl.org : 127.0.5.0]; FREEMAIL_CC(0.00)[gmail.com] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 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 Jan 2019 07:18:50 -0000 [This follows the progression of my intermittent testing. New information is towards the bottom. The initial good results have not held up.] On 2019-Jan-28, at 19:30, Mark Millard wrote: > [The bug*daemon time-outs during shutdown also happen without = fan-speed > issues happening first (or during shutdown).] >=20 > On 2019-Jan-28, at 18:16, Mark Millard wrote: >=20 >> Based on my: >>=20 >> # uname -apKU >> FreeBSD FBSDG5L 13.0-CURRENT FreeBSD 13.0-CURRENT #6 r341836M: Mon = Jan 28 14:42:29 PST 2019 = markmi@FBSDFSSD:/usr/obj/powerpc64vtsc_xtoolchain-gcc/powerpc.powerpc64/us= r/src/powerpc.powerpc64/sys/GENERIC64vtsc-NODBG powerpc powerpc64 = 1300005 1300005 >>=20 >> with: >>=20 >> # svnlite diff /usr/src/sys/powerpc/include/vmparam.h = = =20 >> # >>=20 >> (So no VM_MAX_KERNEL_ADDRESS workaround.) >> And: >>=20 >> # svnlite diff /usr/src/stand/common/metadata.c >> Index: /usr/src/stand/common/metadata.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 >> --- /usr/src/stand/common/metadata.c (revision 341836) >> +++ /usr/src/stand/common/metadata.c (working copy) >> @@ -322,15 +322,10 @@ >> #if defined(LOADER_FDT_SUPPORT) >> /* Copy out FDT */ >> fdtp =3D 0; >> -#if defined(__powerpc__) >> - if (getenv("usefdt") !=3D NULL) >> + size =3D fdt_copy(addr); >> + fdtp =3D addr; >> + addr =3D roundup(addr + size, PAGE_SIZE); >> #endif >> - { >> - size =3D fdt_copy(addr); >> - fdtp =3D addr; >> - addr =3D roundup(addr + size, PAGE_SIZE); >> - } >> -#endif >>=20 >> kernend =3D 0; >> kfp =3D file_findfile(NULL, kern64 ? "elf64 kernel" : "elf32 = kernel"); >>=20 >> (So the previous usefdt=3D1 behavior is automatic.) >>=20 >> Booting is then automatic, with smp working. >>=20 >> So I expect that when -r341614 (that made set usefdt=3D1 work) is = merged to >> stable/12 that the same will be true for the additional updates = there. >>=20 >>=20 >> I will note the following (adjusted from a previously reported >> experiment with manual usefdt=3D1 use): >>=20 >> 1. After a while the fans get louder. >>=20 >> 2. When shutting down the system once the fans are louder, >>=20 >> Waiting (max 60 seconds) for system thread `bufdaemon' to stop... >> Waiting (max 60 seconds) for system thread `bufspacedaemon-1' to = stop... >> Waiting (max 60 seconds) for system thread `bufspacedaemon-0' to = stop... >>=20 >> all time out. >>=20 >> So there seems to be some type of a problem. >=20 > Experiments with booting and then shutting down somewhat > later show that the bug*daemon time-outs during shutdown > also happen without the fan's becoming loud first. They > seem independent at this point. >=20 > I'll keep experimenting on occasion. >=20 > Oh: I did not mean to imply that only the -0 and the -1 of the > various bufspaceddaemon-* timeout. I just did not list them all. >=20 Contintued use has produced mostly hangups during booting when starting from power-off (instead of shutdown -r now). I've also seen that the buf*daemon at shutdown can be a mix of ones that hang up and others that reach Done normally. I've switched to a debug kernel build in order to see what it reports. (So far nothing interesting.) The boot-time hangs for "boot -v" show the last line(s) as "Waking up CPU" messages --but at least one is not displayed. This is the same as without the usefdt=3D1 type of context. It currently seems a rarity that it boots. It looks to me like usefdt=3D1 does little or no good for the problem exposed by the modern VM_MAX_KERNEL_ADDRESS value. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)