NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/54522: sdmmc fails to attach on pinebook



>Number:         54522
>Category:       kern
>Synopsis:       sdmmc fails to attach on pinebook
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 03 12:15:00 +0000 2019
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.10
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD painkiller.duskware.de 9.99.10 NetBSD 9.99.10 (GENERIC64) #62: Tue Aug 27 17:08:43 CEST 2019 martin%seven-days-to-the-wolves.aprisoft.de@localhost:/work/src/sys/arch/evbarm/compile/GENERIC64 evbarm
Architecture: aarch64
Machine: evbarm
>Description:

With a very -current kernel, sdmmc2 on this machine fails to attach:

sdmmc2: can't read EXT_CSD (error 60)
sdmmc2: mem init failed

and the machine won't find its root filesystem (on the internal eMMC).

dmesg from slighly older kernel:

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 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 9.99.10 (GENERIC64) #62: Tue Aug 27 17:08:43 CEST 2019
	martin%seven-days-to-the-wolves.aprisoft.de@localhost:/work/src/sys/arch/evbarm/compile/GENERIC64
total memory = 2030 MB
avail memory = 1957 MB
timecounter: Timecounters tick every 10.000 msec
armfdt0 (root)
simplebus0 at armfdt0: Pinebook
simplebus1 at simplebus0
cpus0 at simplebus0
simplebus2 at simplebus0
cpu0 at cpus0: Cortex-A53 r0p4 (Cortex V8-A core)
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
cpu0: L1 32KB/64B 2-way read-allocate VIPT Instruction cache
cpu0: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache
cpu0: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache
cpu0: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID
cpu0: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
cpufreqdt0 at cpu0
cpu1 at cpus0: Cortex-A53 r0p4 (Cortex V8-A core)
cpu1: package 0, core 1, smt 0
cpu2 at cpus0: Cortex-A53 r0p4 (Cortex V8-A core)
cpu2: package 0, core 2, smt 0
cpu3 at cpus0: Cortex-A53 r0p4 (Cortex V8-A core)
cpu3: package 0, core 3, smt 0
gic0 at simplebus1: GIC
armgic0 at gic0: Generic Interrupt Controller, 224 sources (215 valid)
armgic0: 16 Priorities, 192 SPIs, 7 PPIs, 16 SGIs
sunxisramc0 at simplebus1: SRAM Controller
sunxisramc0: area: SRAM C
fclock0 at simplebus0: 24000000 Hz fixed clock (osc24M)
fclock1 at simplebus0: 32768 Hz fixed clock (ext-osc32k)
gtmr0 at simplebus0: Generic Timer
gtmr0: interrupting on GIC irq 27
armgtmr0 at gtmr0: Generic Timer (24000 kHz, virtual)
timecounter: Timecounter "armgtmr0" frequency 24000000 Hz quality 500
sun50ia64ccu0 at simplebus1: A64 CCU
sun50ia64rccu0 at simplebus1: A64 PRCM CCU
sunxinmi0 at simplebus1: R_INTC
sunxigpio0 at simplebus1: PIO
gpio0 at sunxigpio0: 103 pins
sunxigpio0: interrupting on GIC irq 43
sunxigpio1 at simplebus1: PIO
gpio1 at sunxigpio1: 13 pins
sunxigpio1: interrupting on GIC irq 77
sunxipwm0 at simplebus1: PWM
sunxide2bus0 at simplebus1: DE2 Bus
sunxirsb0 at simplebus1: RSB
sunxirsb0: interrupting on GIC irq 71
iic0 at sunxirsb0: I2C bus
axppmic0 at iic0 addr 0x3a3: AXP803
axpreg0 at axppmic0: vcc-hdmi
axpreg1 at axppmic0: vcc-edp
axpreg2 at axppmic0: avdd-csi
axpreg3 at axppmic0: vcc-wifi
axpreg4 at axppmic0: cpvdd
axpreg5 at axppmic0: eldo2
axpreg6 at axppmic0: vdd-1v8-csi
axpreg7 at axppmic0: vcc-1v2-hsic
axpreg8 at axppmic0: vdd-cpus
axpreg9 at axppmic0: vcc-3v3
axpreg10 at axppmic0: vdd-cpux
axpreg11 at axppmic0: dcdc3
axpreg12 at axppmic0: dcdc4
axpreg13 at axppmic0: vcc-dram
axpreg14 at axppmic0: vdd-sys
axpreg15 at axppmic0: vcc-csi
axpreg16 at axppmic0: vcc-pl
axpreg17 at axppmic0: vcc-pll-avcc
sun6idma0 at simplebus1: DMA controller (8 channels)
sun6idma0: interrupting on GIC irq 82
fregulator0 at simplebus0: bl-3v3
sunxisid0 at simplebus1: Security ID EFUSE
com0 at simplebus1: ns16550a, working fifo
com0: console
com0: interrupting on GIC irq 32
com1 at simplebus1: ns16550a, working fifo
com1: interrupting on GIC irq 33
fregulator1 at simplebus0: vcc3v3
sunxide2ccu0 at sunxide2bus0: DE2 CCU
sunxidrm0 at simplebus0: Display Engine Pipeline
sunxiusbphy0 at simplebus1: USB PHY
sunxihdmiphy0 at simplebus1: HDMI PHY
sunximixer0 at sunxide2bus0: Display Engine Mixer
sunximixer1 at sunxide2bus0: Display Engine Mixer
ausoc0 at simplebus0: sun50i-a64-audio
a64acodec0 at simplebus1: A64 Audio Codec (analog part)
/audio-amplifier at simplebus0 not configured
sunxii2s0 at simplebus1: Audio Codec (digital part)
sun8icodec0 at simplebus1: Audio Codec
sun8icodec0: interrupting on GIC irq 60
sunxilcdc0 at simplebus1: TCON0
sunxilcdc0 port 0 endpoint 0 connected to sunximixer0 port 1 endpoint 0
sunxilcdc0: interrupting on GIC irq 118
sunxilcdc1 at simplebus1: TCON1
sunxilcdc1 port 0 endpoint 0 connected to sunximixer1 port 1 endpoint 0
sunxilcdc1: interrupting on GIC irq 119
sunxitwi0 at simplebus1: Marvell TWSI controller
sunxitwi0: interrupting on GIC irq 76
iic1 at sunxitwi0: I2C bus
anxedp0 at iic1 addr 0x38: eDP TX
anxedp0 port 0 endpoint 0 connected to sunxilcdc0 port 1 endpoint 0
mmcpwrseq0 at simplebus0: Simple MMC power sequence provider
/soc/rtc@1f00000 at simplebus1 not configured
sunximmc0 at simplebus1: SD/MMC controller
sunximmc0: interrupting on GIC irq 92
sunximmc1 at simplebus1: SD/MMC controller
sunximmc1: interrupting on GIC irq 93
sunximmc2 at simplebus1: SD/MMC controller
sunximmc2: interrupting on GIC irq 94
ehci0 at simplebus1: EHCI
ehci0: interrupting on GIC irq 104
ehci0: EHCI version 1.0
ehci0: 1 companion controller, 1 port
usb0 at ehci0: USB revision 2.0
ohci0 at simplebus1: OHCI
ohci0: interrupting on GIC irq 105
ohci0: OHCI version 1.0
usb1 at ohci0: USB revision 1.0
ehci1 at simplebus1: EHCI
ehci1: interrupting on GIC irq 106
ehci1: EHCI version 1.0
ehci1: 1 companion controller, 1 port
usb2 at ehci1: USB revision 2.0
ohci1 at simplebus1: OHCI
ohci1: interrupting on GIC irq 107
ohci1: OHCI version 1.0
usb3 at ohci1: USB revision 1.0
/soc/gpu@1c40000 at simplebus1 not configured
sunxiwdt0 at simplebus1: Watchdog
sunxiwdt0: default watchdog period is 16 seconds
sunxithermal0 at simplebus1: Thermal sensor controller
sunxithermal0: interrupting on GIC irq 63
sunxithermal0: cpu: alarm 85C hyst 58C shut 106C
sunxithermal0: gpu1: alarm 85C hyst 58C shut 106C
sunxithermal0: gpu2: alarm 85C hyst 58C shut 106C
pwmbacklight0 at simplebus0: PWM Backlight <0 5 10 15 20 30 40 55 70 85 100>
armpmu0 at simplebus0: Performance Monitor Unit
psci0 at simplebus0: PSCI 1.1
gpiokeys0 at simplebus0: Lid Switch
/soc/video-codec@1c0e000 at simplebus1 not configured
sunximixer0: activating port 1 endpoint 0 (direct)
sunxilcdc0: activating port 0 endpoint 0
anxedp0: activating port 0 endpoint 0
sunximixer1: activating port 1 endpoint 0 (direct)
sunxilcdc1: activating port 0 endpoint 0
sunxidrm0: autoconfiguration error: failed to activate endpoint: 19
sunxifb0 at sunxidrm0
sunxifb0: framebuffer at 0xffffffc043200000, size 1366x768, depth 32, stride 5464
sunxilcdc0: no CH0 PLL configured
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsdisplay0 at sunxifb0 kbdmux 1: console (default, vt100 emulation)
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 1-3 added (default, vt100 emulation)
kern info: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
kern info: [drm] No driver support for vblank timestamp query.
sunxidrm0: initialized sunxi 1.0.0 20190123 on minor 0
ausoc0: codec: sun8icodec0, cpu: sunxii2s0, aux: a64acodec0
audio0 at ausoc0: playback, capture, full duplex, independent
audio0: slinear_le:16 -> slinear_le:32 2ch 48000Hz, blk 40ms for playback
audio0: slinear_le:16 <- slinear_le:32 2ch 48000Hz, blk 40ms for recording
spkr0 at audio0: PC Speaker (synthesized)
wsbell at spkr0 not configured
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 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
cpu1: L1 32KB/64B 2-way read-allocate VIPT Instruction cache
cpu1: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache
cpu1: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache
cpu1: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID
cpu1: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
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
cpu3: L1 32KB/64B 2-way read-allocate VIPT Instruction cache
cpu3: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache
cpu3: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache
cpu3: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID
cpu3: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
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
cpu2: L1 32KB/64B 2-way read-allocate VIPT Instruction cache
cpu2: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache
cpu2: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache
cpu2: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID
cpu2: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
cpufreqdt0: 1152.000 MHz, 1300000 uV
cpufreqdt0: 1104.000 MHz, 1260000 uV
cpufreqdt0: 1008.000 MHz, 1200000 uV
cpufreqdt0: 816.000 MHz, 1080000 uV
cpufreqdt0: 648.000 MHz, 1040000 uV
cpufreqdt0: 408.000 MHz, 1000000 uV
sdmmc0 at sunximmc0
sdmmc1 at sunximmc1
sdmmc2 at sunximmc2
uhub0 at usb1: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub0: 1 port with 1 removable, self powered
uhub1 at usb0: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
uhub1: 1 port with 1 removable, self powered
uhub2 at usb2: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
uhub2: 1 port with 1 removable, self powered
uhub3 at usb3: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub3: 1 port with 1 removable, self powered
ld2 at sdmmc2: <0x88:0x0103:NCard :0x00:0x52a11a44:0x000>
(manufacturer 0x24c, product 0xb703, standard function interface code 0x7) at sdmmc1 function 1 not configured
Lid Switch: lid opened.
armpmu0: interrupting on GIC irq 184
armpmu0: interrupting on GIC irq 185
armpmu0: interrupting on GIC irq 186
armpmu0: interrupting on GIC irq 187
ld2: 59000 MB, 7521 cyl, 255 head, 63 sec, 512 bytes/sect x 120832000 sectors
ld2: 58310656 trailing sectors not covered by disklabel
ld2: 8-bit width, HS200, 64 MB cache, 200.000 MHz
IPsec: Initialized Security Association Processing.
ure0 at uhub1 port 1
ure0: Realtek (0xbda) USB 10/100 LAN (0x8152), rev 2.10/20.00, addr 2
ure0: RTL8152 ver 4c10
uhub4 at uhub2 port 1: vendor 05e3 (0x5e3) USB2.0 Hub (0x608), class 9/0, rev 2.00/88.32, addr 2
uhub4: single transaction translator
uhub4: 4 ports with 1 removable, self powered
rlphy0 at ure0 phy 0: RTL8201E 10/100 media interface, rev. 2
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ure0: Ethernet address a0:ce:c8:07:41:f0
uhidev0 at uhub4 port 1 configuration 1 interface 0
uhidev0: HAILUCK CO.,LTD (0x258a) USB KEYBOARD (0x0c), rev 1.10/1.00, addr 3, iclass 3/1
ukbd0 at uhidev0: 8 Variable keys, 6 Array codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub4 port 1 configuration 1 interface 1
uhidev1: HAILUCK CO.,LTD (0x258a) USB KEYBOARD (0x0c), rev 1.10/1.00, addr 3, iclass 3/0
uhidev1: 9 report ids
ums0 at uhidev1 reportid 1: 5 buttons, W and Z dirs
wsmouse0 at ums0 mux 0
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
uhid2 at uhidev1 reportid 5: input=0, output=0, feature=5
uhid3 at uhidev1 reportid 6: input=0, output=0, feature=1039
uhid4 at uhidev1 reportid 9: input=1, output=0, feature=0
uvideo0 at uhub4 port 3 configuration 1 interface 0: Image Processor (0x90c) USB 2.0 PC Cam (0x37c), rev 2.00/0.05, addr 4
video0 at uvideo0: Image Processor (0x90c) USB 2.0 PC Cam (0x37c), rev 2.00/0.05, addr 4
WARNING: 1 error while detecting hardware; check system log.
ld2: 58310656 trailing sectors not covered by disklabel
boot device: ld2
ld2: 58310656 trailing sectors not covered by disklabel
root on ld2a dumps on ld2b
ld2: 58310656 trailing sectors not covered by disklabel
root file system type: ffs
kern.module.path=/stand/evbarm/9.99.10/modules
WARNING: no TOD clock present
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
wsdisplay0: screen 4 added (default, vt100 emulation)


>How-To-Repeat:

Boot -current on a pinebook.

>Fix:
n/a



Home | Main Index | Thread Index | Old Index