Hi Diederik,
This may not be the same bug. The one
you referenced was provoked when the SD card slot was empty and could be
suppressed by putting a card in the slot. Also that bug was fixed and
the work around was no longer necessary. The one I experienced could
happen with the SD card in place and at various times, the SD card would
be recognized or would not be recognized (when a card was in place and
the timeout was reported.) Let me clarify the situations I encountered
while testing. Again, I performed testing while booting from a USB
connected SSD.
* Normal boot, no timeout reported and SD card recognized.
* Timeout reported following boot and SD card recognized and working.
* Timeout reported and SD card not recognized.
Repeating
the boot process could result in any of the three conditions and it did
not seem to matter if a warm or cold boot was involved.
I have updated my test install to the 6.0 kernel, identified as
hbarta@boson:~$ uname -a
Linux boson 6.0.0-5-arm64 #1 SMP Debian 6.0.10-1 (2022-11-26) aarch64 GNU/Linux
hbarta@boson:~$
I rebooted and power cycled several times and was ready to declare this fixed, but the most recent reboot is den=monstrating the issue - e.g. MMC timeouts and no SD card in /dev. I inserted an SD card in the slot and the timeout messages are continuing after the card is initialized.
[ 274.788978] mmc1: new ultra high speed DDR50 SDHC card at address aaaa
[ 274.805432] mmcblk1: mmc1:aaaa SL16G 14.8 GiB
[ 274.837154] mmcblk1: p1 p2
[ 281.828861] mmc0: Timeout waiting for hardware cmd interrupt.
[ 281.836160] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 281.844122] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00009902
[ 281.852082] mmc0: sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000
[ 281.860026] mmc0: sdhci: Argument: 0x00000c00 | Trn mode: 0x00000000
[ 281.867973] mmc0: sdhci: Present: 0x01ff0001 | Host ctl: 0x00000001
[ 281.875905] mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 281.883839] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00007187
[ 281.891779] mmc0: sdhci: Timeout: 0x00000000 | Int stat: 0x00018000
[ 281.899716] mmc0: sdhci: Int enab: 0x00ff0003 | Sig enab: 0x00ff0003
[ 281.907658] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000001
[ 281.915602] mmc0: sdhci: Caps: 0x00000000 | Caps_1: 0x00000000
[ 281.923543] mmc0: sdhci: Cmd: 0x0000341a | Max curr: 0x00000001
[ 281.931481] mmc0: sdhci: Resp[0]: 0x00000000 | Resp[1]: 0x00000000
[ 281.939414] mmc0: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000
[ 281.947338] mmc0: sdhci: Host ctl2: 0x00000000
[ 281.953232] mmc0: sdhci: ============================================
I'm not sure if this matters, but when the timeouts are reported, orderly shutdown takes several minutes longer than normal but eventually completes.
best,