From owner-freebsd-ppc@freebsd.org Wed Jan 3 21:59:29 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 321DFEB170F for ; Wed, 3 Jan 2018 21:59:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1B2E668709 for ; Wed, 3 Jan 2018 21:59:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w03LxSx3047906 for ; Wed, 3 Jan 2018 21:59:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w03LxSJm047905 for freebsd-ppc@FreeBSD.org; Wed, 3 Jan 2018 21:59:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-ppc@FreeBSD.org Subject: [Bug 224841] Power64 regression: Machine does not boot anymore Date: Wed, 03 Jan 2018 21:59:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gromero@br.ibm.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ppc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jan 2018 21:59:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224841 Gustavo Romero changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gromero@br.ibm.com --- Comment #9 from Gustavo Romero --- Hi,=20 Boot on POWER8 also got stuck after: "Trying to mount root from ufs:/dev/da0s2a [rw]..." Enabling rc.d debug option did not show anything more, so probably it got s= tuck on kernelspace. Reverting commit 9e4c7607a7c39325daea1d92ade15787adad72b2 ('Enhance the CHRP/pSeries platform layer') solves the issue and POWER8 boot works fine. Applying Breno's draft did not solved the issue. I'm wondering if mapping between new contiguous cpu ID's and '{pc,cr}_hwref' are correct since previously 'dev' was a very high number:=20 cpu0: dev=3D7e72a3a0 (BSP) cpu8: dev=3D7e72ac20 cpu16: dev=3D7e72b4a0 cpu24: dev=3D7e72bd20 cpu32: dev=3D7e72c5a0 cpu40: dev=3D7e72ce20 cpu48: dev=3D7e72d6a0 cpu56: dev=3D7e72df20 and now: cpu0: dev=3D0 (BSP) cpu1: dev=3D8 cpu2: dev=3D10 cpu3: dev=3D18 cpu4: dev=3D20 cpu5: dev=3D28 cpu6: dev=3D30 cpu7: dev=3D38 For the records, here is the full boot log that halts after "Trying to mount...": >> FreeBSD/powerpc Open Firmware boot block Boot path: /vdevice/v-scsi@2000/disk@8000000000000000 Boot loader: /boot/loader Boot volume: /vdevice/v-scsi@2000/disk@8000000000000000:2 Consoles: Open Firmware console=20=20 FreeBSD/powerpc64 Open Firmware loader, Revision 0.1 (Wed Jan 3 14:26:49 -02 2018 root@gromero31) Memory: 8388608KB Booted from: /vdevice/v-scsi@2000/disk@8000000000000000 Loading /boot/defaults/loader.conf /boot/kernel/kernel data=3D0xf1d038+0x4a6a08 syms=3D[0x8+0x155a78+0x8+0x154= aac] /boot/entropy size=3D0x1000 Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]...=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 Kernel entry at 0x102620 ... KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2017 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-CURRENT #3 9e4c7607a7c(HEAD): Wed Jan 3 17:21:09 -02 2018 root@gromero31:/usr/obj/root/git/freebsd/powerpc.powerpc64/sys/GENERIC64 powerpc gcc version 4.2.1 20070831 patched [FreeBSD] WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. cpu0: IBM POWER8E revision 2.1, 3425.00 MHz cpu0: Features dc005180 cpu0: Features2 ca000000 real memory =3D 8552837120 (8156 MB) avail memory =3D 8264536064 (7881 MB) FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs random: unblocking device. random: entropy device external interface kbd0 at kbdmux0 ofwbus0: on nexus0 xicp0: on ofwbus0 rtas0: on ofwbus0 rtas0: registered as a time-of-day clock, resolution 0.002000s cpulist0: on ofwbus0 pcib0: on ofwbus0 pci0: on pcib0 pcib1: mem 0x90100000-0x901000ff irq 4099 at device 1.= 0 on pci0 pci1: on pcib1 pci0: at device 2.0 (no driver attached) pci0: at device 4.0 (no driver attached) vdevice0: on ofwbus0 llan0: irq 16781320 on vdevice0 llan0: Ethernet address: 00:1f:36:04:00:00 vscsi0: irq 16781319 on vdevice0 vscsi0: Queue depth 22 commands uart0: irq 16781321 on vdevice0 Timecounter "timebase" frequency 512000000 Hz quality 0 Event timer "decrementer" frequency 512000000 Hz quality 1000 Timecounters tick every 1.000 msec llan0: link state changed to UP usb_needs_explore_all: no devclass cd0 at vscsi0 bus 0 scbus0 target 0 lun 1 cd0: Removable CD-ROM SPC-3 SCSI device cd0: 150.000MB/s transfers cd0: 878MB (449960 2048 byte sectors) da0 at vscsi0 bus 0 scbus0 target 0 lun 0 da0: Fixed Direct Access SPC-3 SCSI device da0: 150.000MB/s transfers da0: 153600MB (314572800 512 byte sectors) SMP: AP CPU #4 launched SMP: AP CPU #7 launched SMP: AP CPU #1 launched SMP: AP CPU #2 launched SMP: AP CPU #3 launched SMP: AP CPU #6 launched SMP: AP CPU #5 launched WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from ufs:/dev/da0s2a [rw]... --=20 You are receiving this mail because: You are the assignee for the bug.=