From owner-freebsd-arm@freebsd.org Tue Feb 9 20:56:40 2016 Return-Path: Delivered-To: freebsd-arm@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 9BB86AA263D; Tue, 9 Feb 2016 20:56:40 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DF11418F8; Tue, 9 Feb 2016 20:56:38 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 6deecc54; Tue, 9 Feb 2016 21:56:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h= mime-version:content-type:content-transfer-encoding:date:from:to :cc:subject:in-reply-to:references:message-id; s=mail; bh=urf9KM jf0MOEzea1tZ5vAv5ZT14=; b=fLQJocbd60WOklKsXNLImt/8PhA7uQ+f7QLRwY sfKbOne3J57Cj27VZV5o73GHwdC/a9CCjGDpa1yif7YJYuigzN2Jef9DZxCTTtX5 png+fXs94Zov+tsQvdK5creP731HlNGo5pFdJVDcXV9Qb+JAh9pgyRynC/qStTGn suedE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h= mime-version:content-type:content-transfer-encoding:date:from:to :cc:subject:in-reply-to:references:message-id; q=dns; s=mail; b= EfClOv8jOYL4GqNCHaefySzDyiEQhWKlfnX5NOKVKZujz7Fbo5+zIo3RHZR1yY/U QMuH0sn33uZIlZd1MpPy2m2Hx2Wmi2gyHiHY2BUDMduiiMs6XkQiF7a9AwSs0a6u 45MmqfrDpU1l6SA0g1hYRIfB9TH/QKA+VENnfZvvG6s= Received: from webmail.megadrive.org (www1.blih.net [212.83.177.180]) by mail.blih.net (OpenSMTPD) with ESMTP id 71665982; Tue, 9 Feb 2016 21:56:29 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 09 Feb 2016 21:56:29 +0100 From: Emmanuel Vadot To: sig6247 Cc: freebsd-arm@freebsd.org, owner-freebsd-arm@freebsd.org Subject: Re: BananaPi hangs with ARM_INTRNG Organization: Bidouilliste In-Reply-To: <20160209171146.47F0A2AC618A@mail2.openmailbox.org> References: <20160207143346.172DF7CBD04@mail2.openmailbox.org> <20160209171146.47F0A2AC618A@mail2.openmailbox.org> Message-ID: <262fb88021ac6915004d6b697af75ddd@megadrive.org> X-Sender: manu@bidouilliste.com User-Agent: Roundcube Webmail/1.1.1 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2016 20:56:40 -0000 Ok that's what I thought, our current A20 dts doesn't have all the info for the gic with ARM_INTRNG. This was commited because I split a review in half and I didn't realise that it would cause a problem. The rest of the review (https://reviews.freebsd.org/D4792) have been accepted so just wait a bit till it's commited or just patch locally your source tree. Sorry for breaking bananapi. On 2016-02-09 18:11, sig6247 wrote: > On Mon, 08 Feb 2016 06:52:38 +0100, Emmanuel Vadot > wrote: > >> Hi, >> >> Could you do a boot -v at ubldr stage and post the full boot log >> please >> ? > > Sure. Here's the boot log of a kernel with ARM_INTRNG > it just hangs at the line "ahcich0: AHCI reset: device ready after > 0ms". > > /boot/dtb/bananapi.dtb size=0xf56 > Loaded DTB from file 'bananapi.dtb'. > Kernel entry at 0x42200100... > Kernel args: -v > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2016 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 11.0-CURRENT #0 r295368: Tue Feb 9 10:20:05 UTC 2016 > root@bpi.localhost:/usr/obj/usr/src/sys/A20 arm > FreeBSD clang version 3.7.1 (tags/RELEASE_371/final 255217) 20151225 > WARNING: WITNESS option enabled, expect reduced performance. > Preloaded elf kernel "/boot/kernel/kernel" at 0xc0941000. > Preloaded dtb "/boot/dtb/bananapi.dtb" at 0xc0941704. > CPU: Cortex A7 rev 4 (Cortex-A core) > Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext > WB enabled LABT branch prediction disabled > LoUU:2 LoC:3 LoUIS:2 > 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: > 256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc > real memory = 1073741824 (1024 MB) > avail memory = 1037066240 (989 MB) > Physical memory chunk(s): > 0x40000000 - 0x7fffffff, 1024 MB ( 262144 pages) > Excluded memory regions: > 0x42200000 - 0x42a53fff, 8 MB ( 2132 pages) NoAlloc > Static device mappings: > 0x01c00000 - 0x01ffffff mapped at VA 0xffb00000 > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > ULE: setup cpu 0 > ULE: setup cpu 1 > random: entropy device external interface > null: > openfirm: > mem: > nfslock: pseudo-device > crypto: > random: harvesting attach, 8 bytes (4 bits) from nexus0 > ofwbus0: > simplebus0: on ofwbus0 > random: harvesting attach, 8 bytes (4 bits) from simplebus0 > random: harvesting attach, 8 bytes (4 bits) from ofwbus0 > gic0: mem > 0x1c81000-0x1c81fff,0x1c82000-0x1c820ff on simplebus0 > simplebus0: no default resources for rid = 0, type = 1 > gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b irqs 160 > random: harvesting attach, 8 bytes (4 bits) from gic0 > a10_sramc0: mem 0x1c00000-0x1c00fff on > simplebus0 > random: harvesting attach, 8 bytes (4 bits) from a10_sramc0 > a20_cpu_cfg0: mem 0x1c25c00-0x1c25fff > on simplebus0 > random: harvesting attach, 8 bytes (4 bits) from a20_cpu_cfg0 > a10_ccm0: mem 0x1c20000-0x1c203ff on > simplebus0 > random: harvesting attach, 8 bytes (4 bits) from a10_ccm0 > a10_timer0: mem 0x1c20c00-0x1c20c8f irq 0 on > simplebus0 > Event timer "a10_timer Eventtimer" frequency 24000000 Hz quality 1000 > Timecounter "a10_timer timer0" frequency 24000000 Hz quality 1000 > a10_timer0: clock: hz=100 stathz = 0 > a10_timer0: event timer clock frequency 24000000 > a10_timer0: timecounter clock frequency 24000000 > random: harvesting attach, 8 bytes (4 bits) from a10_timer0 > a10wd0: mem 0x1c20c90-0x1c20c9f on simplebus0 > random: harvesting attach, 8 bytes (4 bits) from a10wd0 > gpio0: mem 0x1c20800-0x1c20bff irq 1 on > simplebus0 > gpiobus0: on gpio0 > gpioled0: at pin 248 on gpiobus0 > random: harvesting attach, 8 bytes (4 bits) from gpioled0 > random: harvesting attach, 8 bytes (4 bits) from gpiobus0 > gpioc0: on gpio0 > random: harvesting attach, 8 bytes (4 bits) from gpioc0 > random: harvesting attach, 8 bytes (4 bits) from gpio0 > ehci0: mem > 0x1c14000-0x1c14fff irq 2 on simplebus0 > usbus0: EHCI version 1.0 > usbus0 on ehci0 > ehci0: usbpf: Attached > random: harvesting attach, 8 bytes (4 bits) from usbus0 > random: harvesting attach, 8 bytes (4 bits) from ehci0 > ehci1: mem > 0x1c1c000-0x1c1cfff irq 3 on simplebus0 > usbus1: EHCI version 1.0 > usbus1 on ehci1 > ehci1: usbpf: Attached > random: harvesting attach, 8 bytes (4 bits) from usbus1 > random: harvesting attach, 8 bytes (4 bits) from ehci1 > a10_mmc0: mem > 0x1c0f000-0x1c0ffff irq 4 on simplebus0 > a10_mmc0: DMA status: enabled > mmc0: on a10_mmc0 > random: harvesting attach, 8 bytes (4 bits) from mmc0 > random: harvesting attach, 8 bytes (4 bits) from a10_mmc0 > ahci0: mem 0x1c18000-0x1c18fff > irq 5 on simplebus0 > ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported > ahci0: quirks=0x2 > ahci0: Caps: NCQ SNTF SS ALP AL CLO 3Gbps PMD SSC PSC 32cmd CCC 1ports > ahcich0: at channel 0 on ahci0 > ahcich0: Caps: > random: harvesting attach, 8 bytes (4 bits) from ahcich0 > random: harvesting attach, 8 bytes (4 bits) from ahci0 > uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 6 on > simplebus0 > uart0: console (115200,n,8,1) > uart0: fast interrupt > uart0: PPS capture mode: DCDinvalid > random: harvesting attach, 8 bytes (4 bits) from uart0 > simplebus0: mem 0x1c0b000-0x1c0bfff irq 7 disabled > compat allwinner,sun4i-emac (no driver attached) > dwc0: mem 0x1c50000-0x1c5ffff irq 8 > on simplebus0 > miibus0: on dwc0 > rgephy0: PHY 0 on > miibus0 > rgephy0: OUI 0x00e04c, model 0x0011, rev. 5 > rgephy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto > random: harvesting attach, 8 bytes (4 bits) from rgephy0 > rgephy1: PHY 1 on > miibus0 > rgephy1: OUI 0x00e04c, model 0x0011, rev. 5 > rgephy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto > random: harvesting attach, 8 bytes (4 bits) from rgephy1 > random: harvesting attach, 8 bytes (4 bits) from miibus0 > dwc0: bpf attached > dwc0: Ethernet address: 02:86:0b:02:2d:7a > random: harvesting attach, 8 bytes (4 bits) from dwc0 > ofwbus0: compat gpio-leds (no driver attached) > cryptosoft0: > crypto: assign cryptosoft0 driver id 0, flags 100663296 > crypto: cryptosoft0 registers alg 1 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 2 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 3 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 4 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 5 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 16 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 6 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 7 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 18 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 19 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 20 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 8 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 15 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 9 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 10 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 13 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 14 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 11 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 22 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 23 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 25 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 24 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 26 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 27 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 28 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 21 flags 0 maxoplen 0 > crypto: cryptosoft0 registers alg 17 flags 0 maxoplen 0 > random: harvesting attach, 8 bytes (4 bits) from cryptosoft0 > procfs registered > Timecounters tick every 10.000 msec > tcp_init: net.inet.tcp.tcbhashsize auto tuned to 8192 > IPsec: Initialized Security Association Processing. > lo0: bpf attached > mmc0: Probing bus > usbus0: 480Mbps High Speed USB v2.0 > usbus1: 480Mbps High Speed USB v2.0 > ahcich0: AHCI reset... > ahcich0: SATA connect time=100us status=00000123 > ahcich0: AHCI reset: device found > ahcich0: AHCI reset: device ready after 0ms > > Thanks, > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" -- Emmanuel Vadot