From owner-freebsd-bugs@freebsd.org Tue Sep 12 12:51:41 2017 Return-Path: Delivered-To: freebsd-bugs@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 622FFE07FAF for ; Tue, 12 Sep 2017 12:51:41 +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 50B0F7029B for ; Tue, 12 Sep 2017 12:51:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v8CCpfOd017743 for ; Tue, 12 Sep 2017 12:51:41 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 222256] RPI random number generator underruns when BCM2835_RNG_USE_CALLOUT is set Date: Tue, 12 Sep 2017 12:51:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: sylvain@sylvaingarrigues.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@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-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Sep 2017 12:51:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222256 Bug ID: 222256 Summary: RPI random number generator underruns when BCM2835_RNG_USE_CALLOUT is set Product: Base System Version: CURRENT Hardware: arm OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: sylvain@sylvaingarrigues.com When used on a Raspberry Pi 3 with BCM2835_RNG_USE_CALLOUT defined, the boot lok includes a lot of: bcmrng0: Too many underruns, resetting bcmrng0: RNG stalled, disabling device -- Relevant part of boot log: bcmrng0: mem 0x7e104000-0x7e10400f on simplebus0 bcmrng0: RNG_CTRL (00000001) RNG_COMBLK2_OSC (00) Oscillator 1 enabled Oscillator 2 enabled Oscillator 3 enabled Oscillator 4 enabled Oscillator 5 enabled Oscillator 6 enabled RNG_COMBLK1_OSC (00) Oscillator 1 enabled Oscillator 2 enabled Oscillator 3 enabled Oscillator 4 enabled Oscillator 5 enabled Oscillator 6 enabled RNG_JCLK_BYP_DIV_CNT (00) APB clock frequency / 2 RNG_JCLK_BYP_SRC: Use RNG clock (APB clock) RNG_JCLK_BYP_SEL: Use internal jitter clock RNG_RBGEN_BIT: RBG enabled RNG_CTRL (04040058) RND_VAL: 04 RND_WARM_CNT: 40058 RNG_FF_THRES: 00002 RNG_INT_MASK: interrupt enabledmbox0: mem 0x7e00b880-0x7e00b8bf irq 17 on simplebus0 gpio0: mem 0x7e200000-0x7e2000b3 irq 18,19 on simplebus0 gpiobus0: on gpio0 gpioc0: on gpio0 uart0: mem 0x7e201000-0x7e201fff irq 20 on simpleb= us0 uart0: console (115200,n,8,1) spi0: mem 0x7e204000-0x7e204fff irq 21 on simplebus0 spibus0: on spi0 spigen0: at cs 0 mode 0 on spibus0 spibus0: at cs 0 mode 0 spibus0: at cs 1 mode 0 iichb0: mem 0x7e804000-0x7e804fff irq 32 on simplebus0 iicbus0: on iichb0 iic0: on iicbus0 bcm283x_dwcotg0: mem 0x7e980000-0x7e98ffff,0x7e006000-0x7e006fff irq 38,39 on simplebus0 usbus0 on bcm283x_dwcotg0 sdhci_bcm0: mem 0x7e300000-0x7e3000ff irq = 42 on simplebus0 mmc0: on sdhci_bcm0 vchiq0: mem 0x7e00b840-0x7e00b84e irq 45 on simplebus0 vchiq: local ver 8 (min 3), remote ver 8. pcm0: on vchiq0 pmu0: irq 46 on simplebus0 gpioled0: on ofwbus0 gpioled0: failed to map pin cpulist0: on ofwbus0 cpu0: on cpulist0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 cryptosoft0: Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 bcmrng0: Too many underruns, resetting bcmrng0: RNG stalled, disabling device bcmrng0: Too many underruns, resetting bcmrng0: RNG stalled, disabling device bcmrng0: Too many underruns, resetting bcmrng0: RNG stalled, disabling device --=20 You are receiving this mail because: You are the assignee for the bug.=