From owner-freebsd-arm@freebsd.org Wed Jun 6 05:00:30 2018 Return-Path: Delivered-To: freebsd-arm@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 01F2EFE156B for ; Wed, 6 Jun 2018 05:00:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A32183581 for ; Wed, 6 Jun 2018 05:00: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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id A18A022154 for ; Wed, 6 Jun 2018 05:00:28 +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 w5650SDo041154 for ; Wed, 6 Jun 2018 05:00:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w5650SUR041150 for freebsd-arm@FreeBSD.org; Wed, 6 Jun 2018 05:00: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-arm@FreeBSD.org Subject: [Bug 228773] hang on boot before mounting / when 'verbose boot' not selected Date: Wed, 06 Jun 2018 05:00:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bobf@mrp3.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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-arm@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2018 05:00:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228773 Bug ID: 228773 Summary: hang on boot before mounting / when 'verbose boot' not selected Product: Base System Version: CURRENT Hardware: arm OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: bobf@mrp3.com using rev 334665 on an RPi 2 using the older bcm2836 CPU. I have been able to consistently demonstrate this problem more than half of= the time when I boot up from a power up, or a 'reboot', or by pressing a key in= the serial console after 'poweroff'. The hang appears to happen immediately after the following text displays on= the console Releasing APs Consistently, whenever I enable verbose output as a boot option in the 'beastie' menu, the reboot takes place normally, i.e. without hanging. uname output: FreeBSD pi2c 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r334665M: Tue Jun 5 21:1= 7:17 PDT 2018=20=20=20=20 bobf@hack.SFT.local:/e-drive/obj.current/e-drive/src.current/arm.armv7/sys/= RPI2 arm The problem first appeared when I obtained source yesterday and built a fre= sh version. Prior to this I had been using code that was around 3 or 4 weeks = old. This problem was reproduced several times with unmodified code and no additional overlays or kernel modules being loaded. Typical console output demonstrating problem: /boot/dtb/bcm2836-rpi-2-b.dtb size=3D0x4c49 Loaded DTB from file 'bcm2836-rpi-2-b.dtb'. Kernel entry at 0x1200100... Kernel args: (null) KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2018 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 #2 r334665M: Tue Jun 5 21:17:17 PDT 2018 =20=20=20 bobf@hack.SFT.local:/e-drive/obj.current/e-drive/src.current/arm.armv7/sys/= RPI2 arm FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. CPU: ARM Cortex-A7 r0p5 (ECO: 0x00000000) CPU Features:=20 Multiprocessing, Thumb2, Security, Virtualization, Generic Timer, VMSAv7, PXN, LPAE, Coherent Walk Optional instructions:=20 SDIV/UDIV, UMULL, SMULL, SIMD(ext) LoUU:2 LoC:3 LoUIS:2=20 Cache level 1: 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc 32KB/32B 2-way instruction cache Read-Alloc Cache level 2: 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc real memory =3D 0 (0 MB) avail memory =3D 1008672768 (961 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: unblocking device. random: entropy device external interface kbd0 at kbdmux0 ofwbus0: simplebus0: on ofwbus0 local_intc0: mem 0x40000000-0x400000ff on simplebus0 intc0: mem 0x7e00b200-0x7e00b3ff irq 25 on simplebus0 gpio0: mem 0x7e200000-0x7e2000b3 irq 27,28,2= 9,30 on simplebus0 gpio0: read-only pins: 46-53. gpio0: reserved pins: 48-53. gpiobus0: on gpio0 generic_timer0: irq 1,2,3,4 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 19200000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 19200000 Hz quality 1000 bcm_dma0: mem 0x7e007000-0x7e007eff irq 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24 on simplebus0 bcmwd0: mem 0x7e100000-0x7e100027 on simplebus0 bcmrng0: mem 0x7e104000-0x7e10400f on simplebus0 mbox0: mem 0x7e00b880-0x7e00b8bf irq 26 on simplebus0 gpioc0: on gpio0 uart0: mem 0x7e201000-0x7e201fff irq 31 on simpleb= us0 uart0: console (115200,n,8,1) spi0: mem 0x7e204000-0x7e204fff irq 33 on simplebus0 spibus0: on spi0 iichb0: mem 0x7e205000-0x7e205fff irq 34 on simplebus0 sdhci_bcm0: mem 0x7e300000-0x7e3000ff irq = 41 on simplebus0 mmc0: on sdhci_bcm0 iichb1: mem 0x7e804000-0x7e804fff irq 44 on simplebus0 iichb2: mem 0x7e805000-0x7e805fff irq 45 on simplebus0 bcm283x_dwcotg0: mem 0x7e980000-0x7e98ffff irq 50 on simplebus0 usbus0 on bcm283x_dwcotg0 vchiq0: mem 0x7e00b840-0x7e00b84e irq 52 on simplebus0 vchiq: local ver 8 (min 3), remote ver 8. pcm0: on vchiq0 fb0: on simplebus0 fbd0 on fb0 VT: initialize with new VT driver "fb". fb0: 656x416(656x416@0,0) 24bpp fb0: fbswap: 0, pitch 1968, base 0x3ef34000, screen_size 818688 cpulist0: on ofwbus0 cpu0: on cpulist0 bcm2835_cpufreq0: on cpu0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 gpioled0: on ofwbus0 cryptosoft0: Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 iicbus0: on iichb0 iic0: on iicbus0 ugen0.1: at usbus0 uhub0: on usbus0 mmcsd0: 4GB at mmc0 50.0MHz/4bit/65535-block iicbus1: on iichb1 iic1: on iicbus1 iicbus2: on iichb2 iic2: on iicbus2 bcm2835_cpufreq0: ARM 600MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF Release APs (this is where the hang takes place; no response to keyboard input on the serial console at this point. power cycle is only option) --=20 You are receiving this mail because: You are the assignee for the bug.=