From owner-freebsd-ppc@freebsd.org Sun May 20 04:37:33 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 72D8EEF31BE for ; Sun, 20 May 2018 04:37:33 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic310-22.consmr.mail.gq1.yahoo.com (sonic310-22.consmr.mail.gq1.yahoo.com [98.137.69.148]) (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 F1F926ED7F for ; Sun, 20 May 2018 04:37:32 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: hVSP4dMVM1nJXymnddUn_R3Mn.94qfIlgbSOTAW5xwBPM_jek93RmJz34lNN8ge 1rjd3CKc4SjfOCqkX5QfUO1xlJTudP9v7zGTFj41_0ioAC_UsAXxuzl1zmqbez5CpIAYCktEdOlx PosBEkPszKibtnPWp09yx3aLI4dixpg8ACRi7WZE7u2t3hu0SgDoLFs9DpTHJPLj60S9V8yXOlfy Kx6_z8xZ.61ayqGnHmfvqWXUZQIo71EiW1QVkFyaP3MUBoBv4wuBk7UtCWckdVpBl.wCt2MDZVMM SwxEPXLealcBze1r2Wji5z6BCxaolF6I_O4SwVJXzlU7oAvpYXMDOK8l66mk0ZprYuNTtu0YuqL7 sqJbofvwl82FcWWGXEGNiIkJsoxFDBmsnJvbggDU95gNhIjrfnU6I09PhKzRhqqYOsP5HlHJj8fN 3th0nMzX.VjhVJ.7gkcBnG.Lfds3927kT4MMhJjX1NdXvgm5ByvBCVgC6pcfrqGwXURNxzs7wXOk _lUngpDoTuiVXAW1_2vBeqKlIE6gpmsPYiuiX9UAn46eDbxxVbJuuVTgrBxTo0wUmuJ76kE9Ks1g Dc8ZeadwW03lYc82SHpaiTWlCUzaFiUrIDHgYe6Aehf54RbcnJ8v4DLjy32rOwomo1yLHrMshPHT zp3MCe9rh Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Sun, 20 May 2018 04:37:30 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp402.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 80cee92e103d3c361e39307e88adfba4; Sun, 20 May 2018 04:27:19 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: head -r333897 (usefdt and old PowerMac) questions From: Mark Millard In-Reply-To: <9390ba5a-aa1c-c3be-3c2b-aa2e4e6f0643@freebsd.org> Date: Sat, 19 May 2018 21:27:18 -0700 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: References: <9390ba5a-aa1c-c3be-3c2b-aa2e4e6f0643@freebsd.org> To: Nathan Whitehorn X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2018 04:37:33 -0000 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 Good to know. Thanks. "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: kern.vty=3Dvt be enough despite sc also being present? I will also note that I'll lose access to the old PowerMacs for weeks or months starting in about a week. So any testing will be limited. > On 05/19/18 21:09, Mark Millard wrote: >> Long ago you had me try usefdt=3D1 on an old PowerMac G5 so-called >> "Quad Core" and it failed to boot. >>=20 >> Does -r333897 mean that I should retest if I get a chance? >>=20 >> Also, the code path: >>=20 >> head/sys/dev/vt/hw/ofwfb/ofwfb.c >>=20 >> suggests to me a vt specific change, not spanning >> sc. If I test, do I need to be specific about which >> context I test? >>=20 >> I build with PS3 disabled and sc included. (You >> suggested such long ago when vt was having a problem >> and it was expected sc would work --which it did. >> I've continued to have vt and sc around since then.) >>=20 >>=20 >> # more /usr/src/sys/powerpc/conf/GENERIC64vtsc-NODBG >> # >> # GENERIC -- Custom configuration for the powerpc/powerpc64 >> # >>=20 >> include "GENERIC64" >>=20 >> ident GENERIC64vtsc-NODBG >>=20 >> makeoptions DEBUG=3D-g # Build kernel with gdb(1) = debug symbols >>=20 >> nooptions PS3 # Sony Playstation 3 = HACK!!! to allow sc >>=20 >> options KDB # Enable kernel debugger = support >>=20 >> options ALT_BREAK_TO_DEBUGGER >> options BREAK_TO_DEBUGGER >>=20 >> # For minimum debugger support (stable branch) use: >> options KDB_TRACE # Print a stack trace for a = panic >> options DDB # Enable the kernel debugger >> options GDB # HACK!!! ... >>=20 >> # Extra stuff: >> #options VERBOSE_SYSINIT # Enable verbose sysinit = messages >> #options BOOTVERBOSE=3D1 >> #options BOOTHOWTO=3DRB_VERBOSE >> #options KTR >> #options KTR_MASK=3DKTR_TRAP >> ##options KTR_CPUMASK=3D0xF >> #options KTR_VERBOSE >>=20 >> # HACK!!! to allow sc for 2560x1440 display on Radeon X1950 that vt = historically mishandled during booting >> device sc >> #device kbdmux # HACK: already listed by vt >> options SC_OFWFB # OFW frame buffer >> options SC_DFLT_FONT # compile font in >> makeoptions SC_DFLT_FONT=3Dcp437 >>=20 >>=20 >> # Disable any extra checking for. . . >> nooptions DEADLKRES # Enable the deadlock = resolver >> nooptions INVARIANTS # Enable calls of extra = sanity checking >> nooptions INVARIANT_SUPPORT # Extra sanity checks of = internal structures, required by INVARIANTS >> nooptions WITNESS # Enable checks to detect = deadlocks and cycles >> nooptions WITNESS_SKIPSPIN # Don't run witness on = spinlocks for speed >> nooptions DIAGNOSTIC >> nooptions MALLOC_DEBUG_MAXZONES # Separate malloc(9) zones >>=20 >> device filemon >> device geom_label >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)