NetBSD Problem Report #58037
From martin@aprisoft.de Thu Mar 14 15:36:11 2024
Return-Path: <martin@aprisoft.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 1CE331A924A
for <gnats-bugs@gnats.NetBSD.org>; Thu, 14 Mar 2024 15:36:11 +0000 (UTC)
Message-Id: <20240314153601.83EF25CC795@emmas.aprisoft.de>
Date: Thu, 14 Mar 2024 16:36:01 +0100 (CET)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: faster SD cards not working on Hummingboard Pulse
X-Send-Pr-Version: 3.95
>Number: 58037
>Category: kern
>Synopsis: faster SD cards not working on Hummingboard Pulse
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 14 15:40:00 +0000 2024
>Last-Modified: Thu Mar 14 15:55:01 +0000 2024
>Originator: Martin Husemann
>Release: NetBSD 10.99.10
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD h-pulse.aprisoft.de 10.99.10 NetBSD 10.99.10 (GENERIC64) #427: Thu Mar 14 12:31:00 CET 2024 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbarm/compile/GENERIC64 evbarm
Architecture: aarch64
Machine: evbarm
>Description:
I needed more space on / for this device so tried moving to a bigger SD
card, but the only ones I had handy were all faster standards. I dimly
remember talking to Jared about unimplemented "training" for this controller
(but of course I forgot all details and apparently filed no PR to document
it back then).
A maximal C10 card works:
[ 2.1614261] sdmmc1: SD card status: 4-bit, C10
[ 2.1714268] ld1 at sdmmc1: <0xfe:0x3432:SD16G:0x20:0x0000ea76:0x153>
[ 2.1714268] ld1: 7680 MB, 3900 cyl, 64 head, 63 sec, 512 bytes/sect x 15728640 sectors
[ 2.1857443] ld1: 4-bit width, High-Speed/SDR25, 50.000 MHz
A faster card does not work:
[ 2.1818279] sdmmc1: SD card status: 4-bit, C10, U1
[ 2.1918277] ld1 at sdmmc1: <0x03:0x5344:SL16G:0x80:0x11b1259d:0x103>
[ 2.1918277] ld1: 15193 MB, 7717 cyl, 64 head, 63 sec, 512 bytes/sect x 31116288 sectors
[ 2.2118320] ld1: 15387648 trailing sectors not covered by disklabel
[ 2.2218330] ld1: 4-bit width, DDR50, 50.000 MHz
leads to:
[ 12.9580666] ld1a: error reading fsbn 5286912 of 5286912-5287039 (ld1 bn 5483520; cn 2677 tn 32 sn 0), retrying
[ 13.4680988] sdhc1: data crc error
[ 23.4687196] ld1a: error reading fsbn 10366848 of 10366848-10366975 (ld1 bn 10563456; cn 5157 tn 60 sn 0), retrying
[ 23.9787510] sdhc1: data crc error
...
same as:
[ 2.1715747] sdmmc1: SD card status: 4-bit, C10, U1, V10, A1
[ 2.1815755] ld1 at sdmmc1: <0x74:0x4a60:USDU1:0x20:0x290372be:0x0fc>
[ 2.1915755] ld1: 29007 MB, 7366 cyl, 128 head, 63 sec, 512 bytes/sect x 59406336 sectors
[ 2.1915755] ld1: 43677696 trailing sectors not covered by disklabel
[ 2.2062342] ld1: 4-bit width, DDR50, 50.000 MHz
>How-To-Repeat:
Try to boot a HummingBoard Pulse from a U1 or faster SD card.
>Fix:
n/a
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/58037: faster SD cards not working on Hummingboard Pulse
Date: Thu, 14 Mar 2024 16:50:59 +0100
Here is the dmesg for the device.
Martin
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
2024
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 10.99.10 (GENERIC64) #427: Thu Mar 14 12:31:00 CET 2024
martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbarm/compile/GENERIC64
total memory = 3052 MB
avail memory = 2941 MB
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
armfdt0 (root)
simplebus0 at armfdt0: SolidRun i.MX8MQ HummingBoard Pulse
simplebus1 at simplebus0
cpus0 at simplebus0
psci0 at simplebus0: PSCI 1.1
simplebus2 at simplebus0
cpu0 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x0
cpu0: package 0, core 0, smt 0
cpu0: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
cpu0: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
cpu0: Dcache line 64, Icache line 64, DIC=0, IDC=0, LoUU=1, LoC=2, LoUIS=1
cpu0: L1 32KB/64B 2-way (256 set) VIPT Instruction cache
cpu0: L1 32KB/64B 4-way (128 set) PIPT Data cache
cpu0: L2 1024KB/64B 16-way (1024 set) PIPT Unified cache
cpu0: revID=0x180, PMCv3, 4k table, 64k table, 16bit ASID
cpu0: auxID=0x11120, GICv3, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
cpufreqdt0 at cpu0
cpu1 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x1
cpu1: package 0, core 1, smt 0
cpu1: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
cpu1: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
cpu1: Dcache line 64, Icache line 64, DIC=0, IDC=0, LoUU=1, LoC=2, LoUIS=1
cpu1: L1 32KB/64B 2-way (256 set) VIPT Instruction cache
cpu1: L1 32KB/64B 4-way (128 set) PIPT Data cache
cpu1: L2 1024KB/64B 16-way (1024 set) PIPT Unified cache
cpu1: revID=0x180, PMCv3, 4k table, 64k table, 16bit ASID
cpu1: auxID=0x11120, GICv3, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
cpufreqdt1 at cpu1
cpu2 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x2
cpu2: package 0, core 2, smt 0
cpu2: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
cpu2: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
cpu2: Dcache line 64, Icache line 64, DIC=0, IDC=0, LoUU=1, LoC=2, LoUIS=1
cpu2: L1 32KB/64B 2-way (256 set) VIPT Instruction cache
cpu2: L1 32KB/64B 4-way (128 set) PIPT Data cache
cpu2: L2 1024KB/64B 16-way (1024 set) PIPT Unified cache
cpu2: revID=0x180, PMCv3, 4k table, 64k table, 16bit ASID
cpu2: auxID=0x11120, GICv3, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
cpufreqdt2 at cpu2
cpu3 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x3
cpu3: package 0, core 3, smt 0
cpu3: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
cpu3: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
cpu3: Dcache line 64, Icache line 64, DIC=0, IDC=0, LoUU=1, LoC=2, LoUIS=1
cpu3: L1 32KB/64B 2-way (256 set) VIPT Instruction cache
cpu3: L1 32KB/64B 4-way (128 set) PIPT Data cache
cpu3: L2 1024KB/64B 16-way (1024 set) PIPT Unified cache
cpu3: revID=0x180, PMCv3, 4k table, 64k table, 16bit ASID
cpu3: auxID=0x11120, GICv3, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
cpufreqdt3 at cpu3
simplebus3 at simplebus1
simplebus4 at simplebus1
simplebus5 at simplebus1
simplebus6 at simplebus1
syscon0 at simplebus3: System Controller Registers
gicvthree0 at simplebus1: GICv3
gicvthree0: iidr 0x0001143b, cpuif non-secure, dist non-secure, priority shift 4, pmr shift 4, quirks 0
syscon1 at simplebus3: System Controller Registers
fclock0 at simplebus0: 32768 Hz fixed clock (ckil)
fclock1 at simplebus0: 25000000 Hz fixed clock (osc_25m)
fclock2 at simplebus0: 27000000 Hz fixed clock (osc_27m)
fclock3 at simplebus0: 133000000 Hz fixed clock (clk_ext1)
fclock4 at simplebus0: 133000000 Hz fixed clock (clk_ext2)
fclock5 at simplebus0: 133000000 Hz fixed clock (clk_ext3)
fclock6 at simplebus0: 133000000 Hz fixed clock (clk_ext4)
syscon2 at simplebus3: System Controller Registers
syscon3 at simplebus3: System Controller Registers
syscon4 at simplebus3: System Controller Registers
imx7gpc0 at simplebus3: General Power Controller
imx8mqccm0 at simplebus3: Clock Control Module
imxiomux0 at simplebus3: IOMUX Controller
gtmr0 at simplebus0: Generic Timer
gtmr0: interrupting on GICv3 irq 27
armgtmr0 at gtmr0: Generic Timer (8333 kHz, virtual)
timecounter: Timecounter "armgtmr0" frequency 8333333 Hz quality 500
imxgpio0 at simplebus3: GPIO (gpio@30200000)
imxgpio0: interrupting on irq 96
imxgpio0: interrupting on irq 97
imxgpio0: interrupts 16384..16415
gpio0 at imxgpio0: 32 pins
imxgpio1 at simplebus3: GPIO (gpio@30210000)
imxgpio1: interrupting on irq 98
imxgpio1: interrupting on irq 99
imxgpio1: interrupts 16416..16447
gpio1 at imxgpio1: 32 pins
imxgpio2 at simplebus3: GPIO (gpio@30220000)
imxgpio2: interrupting on irq 100
imxgpio2: interrupting on irq 101
imxgpio2: interrupts 16448..16479
gpio2 at imxgpio2: 32 pins
imxgpio3 at simplebus3: GPIO (gpio@30230000)
imxgpio3: interrupting on irq 102
imxgpio3: interrupting on irq 103
imxgpio3: interrupts 16480..16511
gpio3 at imxgpio3: 32 pins
imxgpio4 at simplebus3: GPIO (gpio@30240000)
imxgpio4: interrupting on irq 104
imxgpio4: interrupting on irq 105
imxgpio4: interrupts 16512..16543
gpio4 at imxgpio4: 32 pins
imxi2c0 at simplebus4
iic0 at imxi2c0: I2C bus
pmic (fsl,pfuze100) at iic0 addr 0x08 not configured
seeprom0 at iic0 addr 0x50: eeprom
seeprom0: autoconfiguration error: invalid size specified; assuming 2KB (16Kb)
fregulator0 at simplebus0: VSD_3V3
imxi2c1 at simplebus4
iic1 at imxi2c1: I2C bus
seeprom1 at iic1 addr 0x50: usb-typec
seeprom1: autoconfiguration error: invalid size specified; assuming 2KB (16Kb)
imxuart0 at simplebus4, 25000000 Hz
imxuart0: interrupting on irq 58
imxuart0: console
imxuart1 at simplebus4, 25000000 Hz
imxuart1: interrupting on irq 60
imxuart2 at simplebus4, 25000000 Hz
imxuart2: interrupting on irq 59
imxi2c2 at simplebus4
iic2 at imxi2c2: I2C bus
seeprom2 at iic2 addr 0x57: eeprom: size 256
rtc (abracon,ab1805) at iic2 addr 0x69 not configured
imxuart3 at simplebus4, 25000000 Hz
imxuart3: interrupting on irq 61
fregulator1 at simplebus0: vdd_3v3
fregulator2 at simplebus0: v_5v0
imx8mqusbphy0 at simplebus1: USB PHY
imx8mqusbphy1 at simplebus1: USB PHY
/opp-table at simplebus0 not configured
/soc@0/bus@30000000/tmu@30260000 at simplebus3 not configured
/soc@0/gpu@38000000 at simplebus1 not configured
/soc@0/bus@30000000/sdma@302c0000 at simplebus3 not configured
/soc@0/bus@30800000/sdma@30bd0000 at simplebus4 not configured
/soc@0/interconnect@32700000 at simplebus1 not configured
/soc@0/bus@30000000/syscon@30340000/mux-controller at syscon2 not configured
xhci0 at simplebus1autoconfiguration error: : cannot switch 'otg' mode to host
enet0 at simplebus4: Gigabit Ethernet Controller
enet0: interrupting on irq 150
enet0: interrupting on irq 151
enet0: interrupting on irq 152
enet0: autoconfiguration error: couldn't find phy reset gpios
enet0: autoconfiguration error: cannot get mac address. set randomly
enet0: Ethernet address 00:00:41:a7:3a:f1
atphy0 at enet0 phy 4: Atheros AR8035 10/100/1000 PHY, rev. 4
atphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseSX-FDX, 1000baseT-FDX, auto
/soc@0/memory-controller@3d400000 at simplebus1 not configured
/soc@0/bus@30000000/watchdog@30280000 at simplebus3 not configured
/soc@0/bus@30000000/snvs@30370000/snvs-rtc-lp at syscon1 not configured
/soc@0/bus@30400000/timer@306a0000 at simplebus5 not configured
/soc@0/bus@30800000/crypto@30900000 at simplebus4 not configured
/soc@0/bus@30800000/mailbox@30aa0000 at simplebus4 not configured
sdhc0 at simplebus4: SDMMC (400000 kHz)
sdhc0: interrupting on irq 54
sdhc0: SDHC 3.0, rev 0, caps <07ffb407/00000005>, 32-bit ADMA2, 180000 kHz, HS SDR50 DDR50 1.8V 3.0V 3.3V, re-tuning mode 1, 4096 byte blocks
sdmmc0 at sdhc0 slot 0
sdhc1 at simplebus4: SDMMC (200000 kHz)
sdhc1: interrupting on irq 55
sdhc1: SDHC 3.0, rev 0, caps <07ffb407/00000005>, 32-bit ADMA2, 180000 kHz, HS SDR50 DDR50 1.8V 3.0V 3.3V, re-tuning mode 1, 4096 byte blocks
sdmmc1 at sdhc1 slot 0
/soc@0/bus@30800000/spi@30bb0000 at simplebus4 not configured
/soc@0/bus@32c00000/interrupt-controller@32e2d000 at simplebus6 not configured
xhci1 at simplebus1: DesignWare USB3 XHCI (rev. 3.10a)
xhci1: interrupting on irq 73
xhci1: xHCI version 1.10
usb0 at xhci1: USB revision 3.0
usb1 at xhci1: USB revision 2.0
/soc@0/video-codec@38300000 at simplebus1 not configured
armpmu0 at simplebus0: Performance Monitor Unit
/soc@0/ddr-pmu@3d800000 at simplebus1 not configured
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
cpufreqdt0: autoconfiguration error: couldn't acquire clock
cpufreqdt1: autoconfiguration error: couldn't acquire clock
cpufreqdt2: autoconfiguration error: couldn't acquire clock
cpufreqdt3: autoconfiguration error: couldn't acquire clock
uhub0 at usb0: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 3.00/1.00, addr 0
uhub0: 1 port with 1 removable, self powered
uhub1 at usb1: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 0
uhub1: 1 port with 1 removable, self powered
armpmu0: interrupting on GICv3 irq 23
WARNING: system needs entropy for security; see entropy(7)
IPsec: Initialized Security Association Processing.
sdmmc1: SD card status: 4-bit, C10
ld1 at sdmmc1: <0xfe:0x3432:SD16G:0x20:0x0000ea76:0x153>
ld1: 7680 MB, 3900 cyl, 64 head, 63 sec, 512 bytes/sect x 15728640 sectors
ld1: 4-bit width, High-Speed/SDR25, 50.000 MHz
uhub2 at uhub1 port 1: vendor 04b4 (0x04b4) product 6502 (0x6502), class 9/0, rev 2.10/50.10, addr 1
uhub2: multiple transaction translators
uhub3 at uhub0 port 1: vendor 04b4 (0x04b4) product 6500 (0x6500), class 9/0, rev 3.00/50.10, addr 2
uhub2: 4 ports with 4 removable, self powered
uhub3: 4 ports with 4 removable, self powered
swwdog0: software watchdog initialized
WARNING: 9 errors while detecting hardware; check system log.
boot device: ld1
root on ld1a dumps on ld1b
root file system type: ffs
kern.module.path=/stand/evbarm/10.99.10/modules
WARNING: no TOD clock present
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
entropy: ready
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.