From owner-freebsd-ppc@freebsd.org Fri May 18 03:58:27 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 6A67AEE87D0 for ; Fri, 18 May 2018 03:58:27 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic305-22.consmr.mail.ne1.yahoo.com (sonic305-22.consmr.mail.ne1.yahoo.com [66.163.185.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 04E9A83FC1 for ; Fri, 18 May 2018 03:58:26 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: _LZG4qcVM1nviEqB.XDTu5sJdFKfFPxAcGLr3CrdB3IWRikW9jhCjUk_rf8LnAk LnqpS5GnTp0Cd4_9L97Ur6dw7duKzD5We.oHxtYwaTMeoUY7xWFqBdmuv94ggK_p9DKrIxOjmaoD fAh64iEaAMuZyvZW.bwHFLRWDcrGXSawp2nsR9Q.bKSwGCaAnQ1WpBHir_9dSP8ISZvmHvLDSZiQ sm4WAosRBl4Lnw2bCQkCedbprLt7PU5fBIQjRpoj9pIL1wKiuJgdiViMKif5rp_9d5tjP0TRyiYx yYdjd6HPp06SaZqBlsgQnaSxkO9IFl4EPI6t27CYR_oW1Z9SIfXgaC6h6rQdcQB_Nf_xADx8hYKj .o9Ul94bc5T5q_LJx4L3swCnm44svCdNRWltRF_nzi9jY4RtE4CPIUQH.nQOhf2nVnV3ns._zpk6 soA_eukawwGoCNYnNSrbj9gvMF0_ZZMYqd3aqJz47OSzzAKK415YLYRenoBxkucHz6OUtrXNg4Wa ymsuVvFbUaevC8g.86LLB6hXEe.3i4tT3qwHYUPrPZ6dRUp9uhJVVlVh7gwkbi0fzX7r7WPgBabE hZMF0WJSyeZTwCWSseldNG_vK_GiJCwF3tWGY78ntZEBOEebYAuIultmCPMCSOGzFlpjA5LHlgqq 3r2piH05L Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Fri, 18 May 2018 03:58:20 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp403.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 4f9c57344d3faaa3226565dc801e2d2c; Fri, 18 May 2018 03:58:18 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: enabling kernel dump options in GENERIC Message-Id: Date: Thu, 17 May 2018 20:58:16 -0700 To: Mark Johnston , freebsd-arch@freebsd.org, FreeBSD PowerPC ML 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: Fri, 18 May 2018 03:58:27 -0000 Mark Johnston markj at FreeBSD.org wrote on Thu May 17 17:24:19 UTC 2018 : > Over the past couple of years, a number of kernel dump features have > been added: encryption, compression and dumping to a remote host > (netdump). These features are currently all omitted from GENERIC. >=20 > . . . > Therefore, I'd like to propose enabling these features by default > on i386, amd64, arm64, powerpc(64) and sparc64 so that they're = available > out of the box in 12.0. > . . . Bugzilla 214598 (from late 2016) was about dump for TARGET_ARCH=3Dpowerpc64 builds getting failures like: KDB: enter: manual escape to debugger [ thread pid 12 tid 10018 ] Stopped at .kdb_enter+0x70: ori r0, r0, 0x0 db> dump Dumping 9 MB (3 chunks) chunk 0: 10MB (2510 pages) ... ok chunk 1: 1MB (24 pages) ... ok chunk 2: 1MB (2 pages)panic: vm_fault: fault on nofault entry, addr: = c000000000022000 (A 32-bit powerpc build on the same machine worked fine for dumping.) I just tried it with head -r333594 and I got something similar. (Old and new mention routines with _bus_dma_map_ in the names near the trap in the call stack. I've not done a detailed comparison.) So, at least for the old PowerMac G5 so-called "Quad Core" powerpc64 context that was in use, there may be problems putting the changes to use --or in any use of dump. As for config for the kernel configuration involved: # more /usr/src/sys/powerpc/conf/GENERIC64vtsc-NODBG # # GENERIC -- Custom configuration for the powerpc/powerpc64 # include "GENERIC64" ident GENERIC64vtsc-NODBG makeoptions DEBUG=3D-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=3D1 #options BOOTHOWTO=3DRB_VERBOSE #options KTR #options KTR_MASK=3DKTR_TRAP ##options KTR_CPUMASK=3D0xF #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=3Dcp437 # 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 =3D=3D=3D Mark Millard marklmi26-fbsd at yahoo.com ( dsl-only.net went away in early 2018-Mar)