Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Apr 2020 00:36:17 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        =?utf-8?Q?S=C3=B8ren_Schmidt?= <soren.schmidt@gmail.com>, freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: RPI4 mmc device fails without WITNESS option ?
Message-ID:  <2EBD6DB4-6DEA-4BEF-8289-2BB47DA8B786@yahoo.com>
References:  <2EBD6DB4-6DEA-4BEF-8289-2BB47DA8B786.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
S=C3=B8ren Schmidt soren.schmidt at gmail.com wrote on
Fri Apr 24 09:58:09 UTC 2020 :

> Just wanted to check perf on a 4G RPI=E2=82=AC here, and without =
WITNESS in the kernel config it hangs:
> CPU  1: ARM Cortex-A72 r0p3 affinity:  1
> CPU  2: ARM Cortex-A72 r0p3 affinity:  2
> CPU  3: ARM Cortex-A72 r0p3 affinity:  3
> regulator: shutting down unused regulators
> sdhci_bcm0-slot0: Controller timeout
> sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER =
DUMP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> sdhci_bcm0-slot0: Sys addr: 0x000000c8 | Version:  0x00001002
> sdhci_bcm0-slot0: Blk size: 0x00000200 | Blk cnt:  0x00000004
> sdhci_bcm0-slot0: Argument: 0x01cf7fc1 | Trn mode: 0x00000036
> sdhci_bcm0-slot0: Present:  0x1fff0a06 | Host ctl: 0x00000007
> sdhci_bcm0-slot0: Power:    0x0000000f | Blk gap:  0x00000080
> sdhci_bcm0-slot0: Wake-up:  0x00000000 | Clock:    0x00000107
> sdhci_bcm0-slot0: Timeout:  0x00000003 | Int stat: 0x00000000
> sdhci_bcm0-slot0: Int enab: 0x01ff003b | Sig enab: 0x01ff0009
> sdhci_bcm0-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
> sdhci_bcm0-slot0: Caps:     0x45ee6432 | Caps2:    0x0000a525
> sdhci_bcm0-slot0: Max curr: 0x00080008 | ADMA err: 0x00000000
> sdhci_bcm0-slot0: ADMA addr:0x00000000 | Slot int: 0x00000000
> sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

> mmcsd0: Error indicated: 1 Timeout
> mmcsd0: Error indicated: 1 Timeout
> mmcsd0: Error indicated: 1 Timeout
> mmcsd0: Error indicated: 1 Timeout
> mmcsd0: Error indicated: 1 Timeout
> mountroot: waiting for device /dev/mmcsd0s2a...
> Mounting from ufs:/dev/mmcsd0s2a failed with error 19.
>=20
> With WITNESS enabled it just chuck along and boots..

After updating from head -r359427 to -r360311 (non-debug
kernel), including u-boot.bin and FreeBSD loader.efi updates,
I fairly frequently see such controller-timeout based
mountroot failures.

So far I've found that using boot -v seems to make booting
more reliable. But sometimes it boots without doing anything
special. It may be that even just stopping it to manually
type boot is more reliable. (Seems to be a timing-relationships
based problem? It will probably take a lot more use to
conclude if there really is an improvement.)

I've not tried a debug kernel.

Side note: So far the EtherNet seems to be working when it
does boot.

=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2EBD6DB4-6DEA-4BEF-8289-2BB47DA8B786>