From owner-freebsd-ppc@freebsd.org Sun May 20 04:14:52 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 9E1B7EF20DF for ; Sun, 20 May 2018 04:14:52 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from d.mail.sonic.net (d.mail.sonic.net [64.142.111.50]) (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 20A306DF87 for ; Sun, 20 May 2018 04:14:51 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from comporellon.tachypleus.net (cpe-75-82-218-62.socal.res.rr.com [75.82.218.62]) (authenticated bits=0) by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id w4K4Egq8015512 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 19 May 2018 21:14:43 -0700 Subject: Re: head -r333897 (usefdt and old PowerMac) questions To: Mark Millard , FreeBSD PowerPC ML References: From: Nathan Whitehorn Message-ID: <9390ba5a-aa1c-c3be-3c2b-aa2e4e6f0643@freebsd.org> Date: Sat, 19 May 2018 21:14:42 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Sonic-CAuth: UmFuZG9tSVaaDbP0ez81OelB64ZUZAb6aRLxdEV9IZOcS80BtRFgoAcFznn6E0bKT3ATxUdEkXHVpcVn5A6t06ffreCFJlo8t72je5wyzOc= X-Sonic-ID: C;4tNUUuRb6BGw6cURjESG/g== M;6hnUUuRb6BGw6cURjESG/g== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd 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:14:52 -0000 You need to wait for one more patch. With that, usefdt=1 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 On 05/19/18 21:09, Mark Millard wrote: > Long ago you had me try usefdt=1 on an old PowerMac G5 so-called > "Quad Core" and it failed to boot. > > Does -r333897 mean that I should retest if I get a chance? > > Also, the code path: > > head/sys/dev/vt/hw/ofwfb/ofwfb.c > > suggests to me a vt specific change, not spanning > sc. If I test, do I need to be specific about which > context I test? > > 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.) > > > # more /usr/src/sys/powerpc/conf/GENERIC64vtsc-NODBG > # > # GENERIC -- Custom configuration for the powerpc/powerpc64 > # > > include "GENERIC64" > > ident GENERIC64vtsc-NODBG > > makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols > > nooptions PS3 # Sony Playstation 3 HACK!!! to allow sc > > options KDB # Enable kernel debugger support > > options ALT_BREAK_TO_DEBUGGER > options BREAK_TO_DEBUGGER > > # 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!!! ... > > # Extra stuff: > #options VERBOSE_SYSINIT # Enable verbose sysinit messages > #options BOOTVERBOSE=1 > #options BOOTHOWTO=RB_VERBOSE > #options KTR > #options KTR_MASK=KTR_TRAP > ##options KTR_CPUMASK=0xF > #options KTR_VERBOSE > > # 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=cp437 > > > # 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 > > device filemon > device geom_label > > === > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) > >