From owner-freebsd-ppc@freebsd.org Mon Dec 10 09:48:16 2018 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 B99F7131865F for ; Mon, 10 Dec 2018 09:48:16 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-20.consmr.mail.gq1.yahoo.com (sonic310-20.consmr.mail.gq1.yahoo.com [98.137.69.146]) (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 C765B70A66 for ; Mon, 10 Dec 2018 09:48:15 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: TJizat4VM1kLgkI6KOu_BJ1NPlf4vSOROOM_AlEjPbJ5Rjaj71ze.fMbVh2RW0R TgBJovZms6wrDMoaOxvI0odQ5kkMa8dvKpF_OYU0dJsuRYqe6KDs2DnlDelJ1zrpHXA_IK6x7vZi RyKJQV2UEWk1J.LEDWRpEa0cjQhM_S4jGV87okXZonupQwTZU1gkKRDfq1pWn.IJZBx_Lzthdh1V 7s1wKFsdXCCKje2jzWrX1ECWs0vyaRghPprjPTQdNqmqfcRNu6OA86W9eiQ3pon7fATdiXUqAQJW mdSm6E69vooLQkJTDF6rlUH9tYE84cFzVt.EyEBQzRl8UQde...ljO5EoAI_AzD5Xxkax_upOlYE Nr.K8enmeD35U6DvKLe_ouQd9pvEkewnerNqy9SsQzT1MEjgCtCOwagr1br5WdTgjpdAIIsuSiIk ZtAthlRkD9oi6B2mEaMUCwLdIdwZfPoBGvCXTfnvXbX1hXQ_ouGx8ZKpYmL2_jOk.NZer4Uwwzet SfaOgCnp1XoHUVEeI643vp5ytlvTawIr7phZeZPvSIKrlwuyuMg6MRw1ua_7rYcvUw5weyXalt0S PVC35GwuXbhrYh0DQ3CY8p9HsQLT2MqORwZwSTh887o5d8pJTgrpY7tq9oeU.hUqSUEOCjxTm6H5 vwQ.v4L_VaoMpo1fJiA0fLisQzHKj86ZST84c9knxoy2VquVI3eg04PkK_WCwZBJQ7GK4RcLgt38 P.O0F1yhjteoMGqR3wDgdUJ6RBsmvY91xUJKaRLfhOT..FVNUXSM52G.j2zEW3T3sBqBDqDf3KwP J4fyLx1IGQA0mCBb5eN.rPcSMxWn5NRwlO8ym3tlDpEvHmUSUToCmkHYorJPA4Ot1_IiSWBTL8uF G7krIM43AJcWbK7Yci3PvyjYsstOYrfBKBaMWKKI.vYLFjhbjYnb2n0VbDN3UpnN5KdBwgq.DcF_ gmzPEqMwgJz_.UiXq5FcpfEe1fX5KtqHpfkMkaw4hE7GW.DHmTJfLGG768cBksqZG9FFHeC0OeGf IiDadmy4UTjpPpdJWpDNzfH5KDdK0TAokBInewTZVccbx0J8PugtMYQU- Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Mon, 10 Dec 2018 09:48:13 +0000 Received: from c-67-170-167-181.hsd1.or.comcast.net (EHLO [192.168.1.109]) ([67.170.167.181]) by smtp402.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID ca26177c4e4909c80798105c17ba3b38; Mon, 10 Dec 2018 09:48:09 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: head -r333897 (usefdt and old PowerMac) questions From: Mark Millard In-Reply-To: <41a47de2-76a8-c7d3-35fb-1f958d40af5b@blastwave.org> Date: Mon, 10 Dec 2018 01:48:09 -0800 Cc: freebsd-ppc@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <45471716-70BE-462B-A1BF-778311F083CE@yahoo.com> References: <9390ba5a-aa1c-c3be-3c2b-aa2e4e6f0643@freebsd.org> <749E008B-8E4A-4252-A3C9-D03972B963B7@yahoo.com> <1a922d91-aad5-a88c-0bd9-5f59d6b48b37@blastwave.org> <41a47de2-76a8-c7d3-35fb-1f958d40af5b@blastwave.org> To: Dennis Clarke X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: C765B70A66 X-Spamd-Result: default: False [0.90 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_FROM(0.00)[yahoo.com]; NEURAL_HAM_LONG(-0.70)[-0.702,0]; NEURAL_SPAM_MEDIUM(0.72)[0.722,0]; NEURAL_SPAM_SHORT(0.51)[0.508,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; RCVD_IN_DNSWL_NONE(0.00)[146.69.137.98.list.dnswl.org : 127.0.5.0]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(0.88)[ip: (3.26), ipnet: 98.137.64.0/21(0.68), asn: 36647(0.55), country: US(-0.09)]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org 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: Mon, 10 Dec 2018 09:48:17 -0000 On 2018-Dec-10, at 00:52, Dennis Clarke = wrote: > On 12/10/18 3:33 AM, Mark Millard wrote: >> On 2018-Dec-9, at 22:07, Dennis Clarke = wrote: >>> On 12/10/18 12:35 AM, Mark Millard via freebsd-ppc wrote: >>>> On 2018-May-19, at 21:27, Mark Millard wrote: >>>>> On 2018-May-19, at 9:14 PM, Nathan Whitehorn wrote: >>>>>> You need to wait for one more patch. With that, usefdt=3D1 is = confirmed working on PowerMac 11,2 (like the quad core). You must use = vt, not sc, but everything should work out of the box once that patch is = in. The only caveat is that bge0 and bge1 may swap numbers. >>>>>> -Nathan >>>>>=20 >>>>> Good to know. Thanks. >>>>>=20 >>>>> "You must use vt, not sc": does this mean changing to not >>>>> include sc in the kernel at all? Or will /boot/loader.conf >>>>> having: >>>>>=20 >>>>> kern.vty=3Dvt >>> I feel a bit out of the loop here. I don't know what that = "kern.vty=3Dsc" >>> is for at all. Perhaps kernel video tty =3D sugar coated? Just a = guess. >> See: https://wiki.freebsd.org/Newcons >>=20 >=20 > Will do. >=20 >>>=20 >>> I can tell you that 341705 requires kern.smp.disabled=3D1 and = usefdt=3D1 in >>> order to boot without a strange freeze or panic. I will check out = 341781 >>> now and see what new stability has arrived but 341705 requires hand >>> holding and small prayers at boot time. >> You are working with builds based on >> /usr/src/sys/powerpc/include/vmparam.h having been updated. I am not. >> The contexts are not the same and mine is a variation on the official >> version, not the official version. >=20 > I don't know what you mean by 'official'. I merely checkout head and > build from there. I used an odd mix of -r341766 and an older vmparam.h by content. The combination likely has never been built by an official FreeBSD build machine for public access, not even potentially for the continuous integration builds. Another difference may sometimes be that I normally build with kernel=20 debugging disabled for things like witness (but symbols not stripped). This is not the default for head/ based builds. There are other source differences as well: # svnlite status /usr/src/ | sort ? /usr/src/sys/amd64/conf/GENERIC-DBG ? /usr/src/sys/amd64/conf/GENERIC-NODBG ? /usr/src/sys/arm/conf/GENERIC-DBG ? /usr/src/sys/arm/conf/GENERIC-NODBG ? /usr/src/sys/arm64/conf/GENERIC-DBG ? /usr/src/sys/arm64/conf/GENERIC-NODBG ? /usr/src/sys/powerpc/conf/GENERIC64vtsc-DBG ? /usr/src/sys/powerpc/conf/GENERIC64vtsc-NODBG ? /usr/src/sys/powerpc/conf/GENERICvtsc-DBG ? /usr/src/sys/powerpc/conf/GENERICvtsc-NODBG M /usr/src/Makefile.inc1 M /usr/src/Makefile.libcompat M /usr/src/contrib/gcc/unwind-dw2.c M /usr/src/contrib/gcc/unwind-dw2.h M /usr/src/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp M /usr/src/contrib/llvm/tools/lld/ELF/Arch/PPC64.cpp M /usr/src/crypto/openssl/crypto/armcap.c M /usr/src/lib/libkvm/kvm_powerpc.c M /usr/src/lib/libkvm/kvm_private.c M /usr/src/release/Makefile.vm M /usr/src/release/scripts/mk-vmimage.sh M /usr/src/release/tools/vmimage.subr M /usr/src/secure/lib/libcrypto/Makefile M /usr/src/stand/defs.mk M /usr/src/stand/powerpc/boot1.chrp/Makefile M /usr/src/stand/powerpc/kboot/Makefile M /usr/src/sys/arm/allwinner/aw_mmc.c M /usr/src/sys/arm64/arm64/identcpu.c M /usr/src/sys/conf/kmod.mk M /usr/src/sys/conf/ldscript.powerpc M /usr/src/sys/ddb/db_main.c M /usr/src/sys/ddb/db_script.c M /usr/src/sys/dev/mmc/mmc.c M /usr/src/sys/dev/mmc/mmcreg.h M /usr/src/sys/dev/mmc/mmcsd.c M /usr/src/sys/gnu/dts/arm/sun8i-h3-orangepi-pc.dts M /usr/src/sys/kern/subr_pcpu.c M /usr/src/sys/powerpc/aim/mmu_oea64.c M /usr/src/sys/powerpc/include/vmparam.h M /usr/src/sys/powerpc/ofw/ofw_machdep.c M /usr/src/sys/powerpc/powerpc/interrupt.c M /usr/src/sys/powerpc/powerpc/mp_machdep.c M /usr/src/sys/powerpc/powerpc/trap.c M /usr/src/sys/sys/buf.h M /usr/src/sys/vm/swap_pager.c M /usr/src/sys/vm/vm_page.c M /usr/src/sys/vm/vm_pageout.c M /usr/src/usr.bin/top/machine.c But most of this that applies to powerpc has been in place in my context well before /usr/src/sys/powerpc/include/vmparam.h was updated for the macro in question, i.e., before I needed to do the revert of the vmparam.h content. Some of the above is from trying to get evidence for some past problems that I ran into instead of being intended functional changes. My GENERIC*'s include the official one and then make changes. To avoid problems for clang-based kernel builds, I do build-in a coupe of things that would normally be dynamically loaded. There are a few of the above that I only use for self-hosted builds on powerpc64. The rest I use the same source for all the TARGET_ARCH's that I build for (cross and self hosted). Of course some files only contribute for a specific range of TARGET_ARCH's. >> I'm not sure when I will next do anything remotely interesting with = the >> G5. There might not be much to follow for a while. >=20 > Minor note here is that 341781 boots just fine without any smp issues = : Was that via just usefdt=3D1 ? Both ways of booting? > dclarke@eris$ uname -aU > FreeBSD eris 13.0-CURRENT FreeBSD 13.0-CURRENT r341781 GENERIC = powerpc 1200086 >=20 > . . . >=20 > Built from https://svn.freebsd.org/base/head/ which should be = 'official'. >=20 I'm the one more likely to be doing builds based on odd vintage mixes and other source modifications if I understand right. I was expecting your builds to be (closer to) matching an official build on an official server. I count continuous integration builds seen via ci.freebsd.org as official and publicly accessible. Since the continuous integration builds take as long as they do, some check-ins to not get a build without later check-ins also being involved. This ends up with more of an as-if comparison for judging "close to official" status. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)