Linux 5.1 not booting on banana Pi

150 views
Skip to first unread message

Marc Haber

unread,
May 8, 2019, 4:23:43 PM5/8/19
to linux-sunxi
Hi,

when I try booting Linux 5.1 on the Banana Pi, it stops with locked up
CPUs:

[ OK ] Started udev Coldplug all Devices.
[ OK ] Started Create Volatile Files and Directories.
[ OK ] Reached target System Time Synchronized.
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started udev Kernel Device Manager.
[ 34.271840] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[ 34.277793] rcu: 1-...!: (1 GPs behind) idle=fde/1/0x40000000 softirq=1817/1820 fqs=23
[ 34.285872] rcu: (detected by 0, t=5252 jiffies, g=1857, q=817)
[ 44.294216] rcu: rcu_sched kthread starved for 5206 jiffies! g1857 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
[ 44.304202] rcu: RCU grace-period kthread stack dump:
[ 68.019833] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [systemd-udevd:260]
[ 96.019831] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [systemd-udevd:260]
[ 97.291832] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[ 97.297760] rcu: 1-...!: (1 GPs behind) idle=fde/1/0x40000000 softirq=1817/1820 fqs=23
[ 97.305838] rcu: (detected by 0, t=21007 jiffies, g=1857, q=817)
[ 107.314261] rcu: rcu_sched kthread starved for 20961 jiffies! g1857 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
[ 107.324333] rcu: RCU grace-period kthread stack dump:
[ 132.019830] watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [systemd-udevd:260]
[ 160.019832] watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [systemd-udevd:260]
[ 160.311830] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[ 160.317758] rcu: 1-...!: (1 GPs behind) idle=fde/1/0x40000000 softirq=1817/1820 fqs=23
[ 160.325836] rcu: (detected by 0, t=36762 jiffies, g=1857, q=817)
[ 170.334257] rcu: rcu_sched kthread starved for 36716 jiffies! g1857 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
[ 170.344330] rcu: RCU grace-period kthread stack dump:

Any ideas what the problem could be, and how it could be solved?

Greetings
Marc

--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421

Marc Haber

unread,
May 10, 2019, 5:38:07 AM5/10/19
to linux-sunxi, ebig...@google.com, her...@gondor.apana.org.au
Bisecting the kernel identified 4e7babba30d820c4195b1d58cf51dce3c22ecf2b
which is unfortunately too complex to validly roll back (adding Eric and
Herbert, Authors and Off-Signers to Cc).

As a short-term workaround, setting CONFIG_CRYPTO_MANAGER_DISABLE_TESTS
seems to help.

Greetings
Marc


On Wed, May 08, 2019 at 10:23:40PM +0200, Marc Haber wrote:
> From: Marc Haber <mh+linu...@zugschlus.de>
> Subject: Linux 5.1 not booting on banana Pi
> To: linux-sunxi <linux...@googlegroups.com>
> Date: Wed, 8 May 2019 22:23:40 +0200
> User-Agent: Mutt/1.10.1 (2018-07-13)

Corentin Labbe

unread,
May 10, 2019, 5:45:16 AM5/10/19
to Marc Haber, linux-sunxi, ebig...@google.com, her...@gondor.apana.org.au
On Fri, May 10, 2019 at 11:38:04AM +0200, Marc Haber wrote:
> Bisecting the kernel identified 4e7babba30d820c4195b1d58cf51dce3c22ecf2b
> which is unfortunately too complex to validly roll back (adding Eric and
> Herbert, Authors and Off-Signers to Cc).
>
> As a short-term workaround, setting CONFIG_CRYPTO_MANAGER_DISABLE_TESTS
> seems to help.
>
> Greetings
> Marc
>

Hello

Probably related to sun4i-ss.
I have sent some fixes for it which could resolve that.

Regards
> --
> You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190510093804.GH26031%40torres.zugschlus.de.
> For more options, visit https://groups.google.com/d/optout.

Herbert Xu

unread,
May 13, 2019, 2:33:06 AM5/13/19
to Marc Haber, linux-sunxi, ebig...@google.com
On Fri, May 10, 2019 at 11:38:04AM +0200, Marc Haber wrote:
> Bisecting the kernel identified 4e7babba30d820c4195b1d58cf51dce3c22ecf2b
> which is unfortunately too complex to validly roll back (adding Eric and
> Herbert, Authors and Off-Signers to Cc).
>
> As a short-term workaround, setting CONFIG_CRYPTO_MANAGER_DISABLE_TESTS
> seems to help.

You can disable the new tests using CONFIG_CRYPTO_MANAGER_EXTRA_TESTS.

Please also give the latest kernel a try as it has a number of fixes
to the sun4i driver.

Cheers,
--
Email: Herbert Xu <her...@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Marc Haber

unread,
May 13, 2019, 3:06:46 AM5/13/19
to Herbert Xu, linux-sunxi, ebig...@google.com
On Mon, May 13, 2019 at 02:32:55PM +0800, Herbert Xu wrote:
> On Fri, May 10, 2019 at 11:38:04AM +0200, Marc Haber wrote:
> > Bisecting the kernel identified 4e7babba30d820c4195b1d58cf51dce3c22ecf2b
> > which is unfortunately too complex to validly roll back (adding Eric and
> > Herbert, Authors and Off-Signers to Cc).
> >
> > As a short-term workaround, setting CONFIG_CRYPTO_MANAGER_DISABLE_TESTS
> > seems to help.
>
> You can disable the new tests using CONFIG_CRYPTO_MANAGER_EXTRA_TESTS.

Hang also happens with Linux 5.1.1 with
CONFIG_CRYPTO_MANAGER_EXTRA_TESTS disabled.

> Please also give the latest kernel a try as it has a number of fixes
> to the sun4i driver.

What would the "latest kernel" be? 5.1.1?

Marc Haber

unread,
May 14, 2019, 6:56:27 AM5/14/19
to Eric Biggers, Corentin Labbe, Herbert Xu, linux-sunxi
Hi Eric,

On Mon, May 13, 2019 at 10:51:41AM -0700, Eric Biggers wrote:
> crypto: sun4i-ss - Handle better absence/presence of IV

82b3ad7445968ba70edc42d97ba3510c4623679a

> crypto: sun4i-ss - remove ivsize from ECB

179930a62f3182eb384ae1e4d1ad47e97f6f5e90

> crypto: sun4i-ss - Fix invalid calculation of hash end

f87391558acf816b48f325a493d81d45dec40da0

> crypto: sun4i-ss - fallback when length is not multiple of blocksize

0ae1f46c55f87e864c14fc46bd6cf0496fd391d7

> Corentin, if these actually fix this problem, I suggest sending a request to
> sta...@vger.kernel.org to get these fixes picked up for 5.1.y.

I can confirm that applying those four patches to a 5.1.1 tree results
in a bootable and working kernel on the Banana Pi even with the extra
crypto tests enabled.

Thanks for helping!
Reply all
Reply to author
Forward
0 new messages