NetBSD Problem Report #55957

From martin@aprisoft.de  Mon Jan 25 17:12:06 2021
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 9D3C81A923B
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 25 Jan 2021 17:12:06 +0000 (UTC)
Message-Id: <20210125171157.17FD65CC7B9@emmas.aprisoft.de>
Date: Mon, 25 Jan 2021 18:11:57 +0100 (CET)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: Odroid C2 can not access eMMC card
X-Send-Pr-Version: 3.95

>Number:         55957
>Category:       port-arm
>Synopsis:       Odroid C2 can not access eMMC card
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 25 17:15:00 +0000 2021
>Closed-Date:    Thu Jan 28 14:24:44 +0000 2021
>Last-Modified:  Thu Jan 28 14:24:44 +0000 2021
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.78
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD h-pulse.aprisoft.de 9.99.78 NetBSD 9.99.78 (GENERIC64) #173: Sun Jan 24 13:44:36 CET 2021 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbarm/compile/GENERIC64 evbarm
Architecture: aarch64
Machine: evbarm
>Description:

For all (two) spare eMMC cards I have, -current does not work on Odroid C2.

Before the clock speed setting for sdmmc was fixed, I used to boot from an
64MB emmc card that came with the device (probably with very slow
speed), but ever since then it fails.

dmesg below.

[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[   1.0000000]     2018, 2019, 2020, 2021 The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights reserved.

[   1.0000000] NetBSD 9.99.78 (GENERIC64) #173: Sun Jan 24 13:44:36 CET 2021
[   1.0000000] 	martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbarm/compile/GENERIC64
[   1.0000000] total memory = 2012 MB
[   1.0000000] avail memory = 1949 MB
[   1.0000000] armfdt0 (root)
[   1.0000000] simplebus0 at armfdt0: Hardkernel ODROID-C2
[   1.0000000] simplebus1 at simplebus0
[   1.0000000] cpus0 at simplebus0
[   1.0000000] simplebus2 at simplebus0
[   1.0000000] psci0 at simplebus0: PSCI 0.2
[   1.0000000] cpu0 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x0
[   1.0000000] cpu1 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x1
[   1.0000000] cpu2 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x2
[   1.0000000] cpu3 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x3
[   1.0000000] simplebus3 at simplebus1
[   1.0000000] simplebus4 at simplebus1
[   1.0000000] simplebus5 at simplebus1
[   1.0000000] simplebus6 at simplebus1
[   1.0000000] simplebus7 at simplebus1
[   1.0000000] simplebus8 at simplebus1
[   1.0000000] gic0 at simplebus1: GIC
[   1.0000000] armgic0 at gic0: Generic Interrupt Controller, 256 sources (238 valid)
[   1.0000000] armgic0: 16 Priorities, 224 SPIs, 6 PPIs, 8 SGIs
[   1.0000000] syscon0 at simplebus3: System Controller Registers
[   1.0000000] syscon1 at simplebus4: System Controller Registers
[   1.0000000] fclock0 at simplebus0: 24000000 Hz fixed clock (xtal)
[   1.0000000] syscon2 at simplebus3: System Controller Registers
[   1.0000000] gtmr0 at simplebus0: Generic Timer
[   1.0000000] gtmr0: interrupting on GIC irq 27
[   1.0000000] armgtmr0 at gtmr0: Generic Timer (24000 kHz, virtual)
[   1.0000030] gxbbclkc0 at syscon1: Meson GXBB clock controller
[   1.0000030] mesonpinctrl0 at simplebus5: Meson GXBB periphs GPIO
[   1.0000030] gpio0 at mesonpinctrl0: 119 pins
[   1.0000030] mesonresets0 at simplebus6
[   1.0000030] gxbbaoclkc0 at syscon0: Meson GX AO clock controller
[   1.0000030] mesonpinctrl1 at simplebus3: Meson GXBB AO GPIO
[   1.0000030] mesonpinctrl1: usb-hub-reset GPIOAO_4 set to output (high)
[   1.0000030] gpio1 at mesonpinctrl1: 14 pins
[   1.0000030] fregulator0 at simplebus0: VCC1V8
[   1.0000030] fregulator1 at simplebus0: TFLASH_VDD
[   1.0000030] gregulator0 at simplebus0: TF_IO
[   1.0000030] fregulator2 at simplebus0: VCC3V3
[   1.0000030] fregulator3 at simplebus0: HDMI_P5V0
[   1.0000030] fregulator4 at simplebus0: USB_OTG_PWR
[   1.0000030] fregulator5 at simplebus0: P5V0
[   1.0000030] fregulator6 at simplebus0: VDDIO_AO3V3
[   1.0000030] mesonuart0 at simplebus3: console
[   1.0000030] mesonuart0: interrupting on GIC irq 225
[   1.0000030] fregulator7 at simplebus0: VDDIO_AO1V8
[   1.0000030] fregulator8 at simplebus0: DDR3_1V5
[   1.0000030] mmcpwrseq0 at simplebus0: eMMC hardware reset provider
[   1.0000030] mesonusbphy0 at simplebus1: USB2 PHY (host)
[   1.0000030] /soc/bus@c8100000/sys-ctrl@0/power-controller-vpu at syscon0 not configured
[   1.0000030] /scpi at simplebus0 not configured
[   1.0000030] /soc/bus@c883c000/mailbox@404 at simplebus4 not configured
[   1.0000030] /soc/sram@c8000000 at simplebus1 not configured
[   1.0000030] /soc/hdmi-tx@c883a000 at simplebus1 not configured
[   1.0000030] /soc/bus@c8838000/video-lut@48 at simplebus7 not configured
[   1.0000030] awge0 at simplebus1: Gigabit Ethernet Controller
[   1.0000030] awge0: interrupting on GIC irq 40
[   1.0000030] awge0: Core version: 00001137
[   1.0000030] awge0: Ethernet address 00:1e:06:33:12:a6
[   1.0000030] awge0: HW feature mask: 100d4f37
[   1.0000030] rgephy0 at awge0 phy 0: RTL8211F 1000BASE-T media interface
[   1.0000030] rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
[   1.0000030] /soc/bus@c1100000/interrupt-controller@9880 at simplebus6 not configured
[   1.0000030] /soc/vpu@d0100000 at simplebus1 not configured
[   1.0000030] dispcon0 at simplebus0: HDMI connector
[   1.0000030] /efuse at simplebus0 not configured
[   1.0000030] /soc/bus@c1100000/i2c@8500 at simplebus6 not configured
[   1.0000030] /soc/bus@c1100000/adc@8680 at simplebus6 not configured
[   1.0000030] /soc/bus@c8100000/cec@100 at simplebus3 not configured
[   1.0000030] /soc/bus@c8100000/ir@580 at simplebus3 not configured
[   1.0000030] /soc/video-codec@c8820000 at simplebus1 not configured
[   1.0000030] mesonrng0 at simplebus5: Hardware RNG
[   1.0000030] entropy: ready
[   1.0000030] mesongxmmc0 at simplebus8: eMMC/SD/SDIO controller
[   1.0000030] mesongxmmc0: interrupting on GIC irq 249
[   1.0000030] mesongxmmc1 at simplebus8: eMMC/SD/SDIO controller
[   1.0000030] mesongxmmc1: interrupting on GIC irq 250
[   1.0000030] /soc/apb@d0000000/gpu@c0000 at simplebus8 not configured
[   1.0000030] dwctwo0 at simplebus1: DesignWare USB2 OTG
[   1.0000030] dwctwo0: interrupting on GIC irq 63
[   1.0000030] armpmu0 at simplebus0: Performance Monitor Unit
[   1.0000030] gpioleds0 at simplebus0: c2:blue:alive
[   1.0000030] /soc/bus@c1100000/clock-measure@8758 at simplebus6 not configured
[   1.0000030] /soc/bus@c1100000/watchdog@98d0 at simplebus6 not configured
[   1.0000030] cpu0 has 1 core siblings: cpu0
[   1.0000030] cpu0 has 4 pkg siblings: cpu1 cpu2 cpu3 cpu0
[   1.0000030] cpu0 has 1 1st siblings: cpu0
[   1.0000030] cpu0 first in package: cpu0
[   1.0000030] cpu1 has 1 core siblings: cpu1
[   1.0000030] cpu1 has 4 pkg siblings: cpu2 cpu3 cpu0 cpu1
[   1.0000030] cpu1 has 1 1st siblings: cpu0
[   1.0000030] cpu1 first in package: cpu0
[   1.0000030] cpu2 has 1 core siblings: cpu2
[   1.0000030] cpu2 has 4 pkg siblings: cpu3 cpu0 cpu1 cpu2
[   1.0000030] cpu2 has 1 1st siblings: cpu0
[   1.0000030] cpu2 first in package: cpu0
[   1.0000030] cpu3 has 1 core siblings: cpu3
[   1.0000030] cpu3 has 4 pkg siblings: cpu0 cpu1 cpu2 cpu3
[   1.0000030] cpu3 has 1 1st siblings: cpu0
[   1.0000030] cpu3 first in package: cpu0
[   1.6602022] sdmmc0 at mesongxmmc0
[   1.6602022] sdmmc1 at mesongxmmc1
[   1.6602022] usb0 at dwctwo0: USB revision 2.0
[   1.6602022] armpmu0: interrupting on GIC irq 169
[   1.6734979] armpmu0: interrupting on GIC irq 170
[   1.6734979] armpmu0: interrupting on GIC irq 185
[   1.6827692] armpmu0: interrupting on GIC irq 186
[   1.6827692] uhub0 at usb0: NetBSD (0x0000) DWC2 root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
[   1.7827669] sdmmc1: can't re-read EXT_CSD
[   1.7827669] sdmmc1: mem init failed
[   1.7827669] sdmmc1: init failed
[   3.5228003] uhub1 at uhub0 port 1: vendor 05e3 (0x05e3) USB2.0 Hub (0x0610), class 9/0, rev 2.00/32.98, addr 2
[   3.5228003] uhub1: multiple transaction translators
[   3.8728092] uhub0: illegal enable change, port 1
[   3.8728092] WARNING: 4 errors while detecting hardware; check system log.
[   3.8728092] boot device: <unknown>
[   3.8828088] root device: 


>How-To-Repeat:
No idea, might depend on the eMMC card

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-arm/55957: Odroid C2 can not access eMMC card
Date: Tue, 26 Jan 2021 12:55:02 +0100

 I forced a lower "max-frequency" for mmc1, and also disabled setting of:

 #if 0
         if (of_getprop_bool(sc->sc_phandle, "mmc-hs200-1_8v")) {
                 saa.saa_caps |= SMC_CAPS_MMC_HS200;
                 sc->sc_host_ocr |= MMC_OCR_1_65V_1_95V;
         }
 #endif   

 (though the latter is probably already set for DDR52). I also enabled
 MESONGX_MMC_DEBUG.

 But (contrary to what I expected from earlier experiments some months ago)
 this did not help.

 Martin

 [   1.0000030] mesonrng0 at simplebus5: Hardware RNG
 [   1.0000030] entropy: ready
 [   1.0000030] mesongxmmc0 at simplebus8: eMMC/SD/SDIO controller
 [   1.0000030] max-frequency: 100000000
 [   1.0000030] mesongxmmc0: interrupting on GIC irq 249
 [   1.0000030] mesongxmmc1 at simplebus8: eMMC/SD/SDIO controller
 [   1.0000030] max-frequency: 200000000
 [   1.0000030] forcing max-frequency 52000000
 [   1.0000030] mesongxmmc1: interrupting on GIC irq 250
 [   1.0000030] /soc/apb@d0000000/gpu@c0000 at simplebus8 not configured
 [   1.0000030] dwctwo0 at simplebus1: DesignWare USB2 OTG
 [   1.0000030] dwctwo0: interrupting on GIC irq 63
 [   1.0000030] armpmu0 at simplebus0: Performance Monitor Unit
 [   1.0000030] gpioleds0 at simplebus0: c2:blue:alive
 [   1.0000030] /soc/bus@c1100000/clock-measure@8758 at simplebus6 not configured
 [   1.0000030] /soc/bus@c1100000/watchdog@98d0 at simplebus6 not configured
 [   1.0000030] cpu0 has 1 core siblings: cpu0
 [   1.0000030] cpu0 has 4 pkg siblings: cpu1 cpu2 cpu3 cpu0
 [   1.0000030] cpu0 has 1 1st siblings: cpu0
 [   1.0000030] cpu0 first in package: cpu0
 [   1.0000030] cpu1 has 1 core siblings: cpu1
 [   1.0000030] cpu1 has 4 pkg siblings: cpu2 cpu3 cpu0 cpu1
 [   1.0000030] cpu1 has 1 1st siblings: cpu0
 [   1.0000030] cpu1 first in package: cpu0
 [   1.0000030] cpu2 has 1 core siblings: cpu2
 [   1.0000030] cpu2 has 4 pkg siblings: cpu3 cpu0 cpu1 cpu2
 [   1.0000030] cpu2 has 1 1st siblings: cpu0
 [   1.0000030] cpu2 first in package: cpu0
 [   1.0000030] cpu3 has 1 core siblings: cpu3
 [   1.0000030] cpu3 has 4 pkg siblings: cpu0 cpu1 cpu2 cpu3
 [   1.0000030] cpu3 has 1 1st siblings: cpu0
 [   1.0000030] cpu3 first in package: cpu0
 [   1.6642103] sdmmc0 at mesongxmmc0
 [   1.6642103] sdmmc1 at mesongxmmc1
 [   1.6642103] usb0 at dwctwo0: USB revision 2.0
 [   1.6642103] armpmu0: interrupting on GIC irq 169
 [   1.6742163] armpmu0: interrupting on GIC irq 170
 [   1.6742163] armpmu0: interrupting on GIC irq 185
 [   1.6842135] armpmu0: interrupting on GIC irq 186
 [   1.6842135] uhub0 at usb0: NetBSD (0x0000) DWC2 root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
 [   1.7642095] mesongxmmc1:       00: 01000b3c 00000000 00000000 00000000
 [   1.7642095] mesongxmmc1:       10: 00000000 00000000 00000000 00000000
 [   1.7742116] mesongxmmc1:       20: 00000000 00000000 00000000 00000000
 [   1.7742116] mesongxmmc1:       30: 00000000 00000000 00000000 00000000
 [   1.7842097] mesongxmmc1:       40: 00000000 00844890 01ff0000 00000000
 [   1.7942100] mesongxmmc1:       50: 00000000 00000000 00000000 00000000
 [   1.7942100] mesongxmmc1:       60: 00000000 00000000 00000000 00000000
 [   1.8042102] mesongxmmc1:       70: 00000000 00000000 00000000 00000000
 [   1.8142102] mesongxmmc1:       80: 00000000 00000000 00000000 00000000
 [   1.8142102] mesongxmmc1:       90: 00000000 00000000 00000000 00000000
 [   1.8242108] mesongxmmc1:       a0: 00000000 00000000 00000000 00000000
 [   1.8342106] mesongxmmc1:       b0: 00000000 00000000 00000000 00000000
 [   1.8342106] mesongxmmc1:       c0: 00000000 00000000 00000000 00000000
 [   1.8442109] mesongxmmc1:       d0: 00000000 00000000 00000000 00000000
 [   1.8442109] mesongxmmc1:       e0: 00000000 00000000 00000000 00000000
 [   1.8542110] mesongxmmc1:       f0: 00000000 00000000 00000000 00000000
 [   1.8642113] mesongxmmc1:       00: 01000b3c 00000000 00000000 00000000
 [   1.8642113] mesongxmmc1:       10: 00000000 00000000 00000000 00000000
 [   1.8742132] mesongxmmc1:       20: 00000000 00000000 00000000 00000000
 [   1.8842117] mesongxmmc1:       30: 00000000 00000000 00000000 00000000
 [   1.8842117] mesongxmmc1:       40: 00000000 00844890 01ff0000 00000000
 [   1.8942117] mesongxmmc1:       50: 00000000 00000000 00000000 00000000
 [   1.9042122] mesongxmmc1:       60: 00000000 00000000 00000000 00000000
 [   1.9042122] mesongxmmc1:       70: 00000000 00000000 00000000 00000000
 [   1.9142122] mesongxmmc1:       80: 00000000 00000000 00000000 00000000
 [   1.9242125] mesongxmmc1:       90: 00000000 00000000 00000000 00000000
 [   1.9242125] mesongxmmc1:       a0: 00000000 00000000 00000000 00000000
 [   1.9342126] mesongxmmc1:       b0: 00000000 00000000 00000000 00000000
 [   1.9442130] mesongxmmc1:       c0: 00000000 00000000 00000000 00000000
 [   1.9442130] mesongxmmc1:       d0: 00000000 00000000 00000000 00000000
 [   1.9542132] mesongxmmc1:       e0: 00000000 00000000 00000000 00000000
 [   1.9642133] mesongxmmc1:       f0: 00000000 00000000 00000000 00000000
 [   1.9642133] mesongxmmc1:       00: 01000b3c 00000000 00000000 00000000
 [   1.9742158] mesongxmmc1:       10: 00000000 00000000 00000000 00000000
 [   1.9842139] mesongxmmc1:       20: 00000000 00000000 00000000 00000000
 [   1.9842139] mesongxmmc1:       30: 00000000 00000000 00000000 00000000
 [   1.9942138] mesongxmmc1:       40: 00000000 00844890 01ff0000 00000000
 [   2.0042142] mesongxmmc1:       50: 00000000 00000000 00000000 00000000
 [   2.0042142] mesongxmmc1:       60: 00000000 00000000 00000000 00000000
 [   2.0142141] mesongxmmc1:       70: 00000000 00000000 00000000 00000000
 [   2.0242145] mesongxmmc1:       80: 00000000 00000000 00000000 00000000
 [   2.0242145] mesongxmmc1:       90: 00000000 00000000 00000000 00000000
 [   2.0342155] mesongxmmc1:       a0: 00000000 00000000 00000000 00000000
 [   2.0442150] mesongxmmc1:       b0: 00000000 00000000 00000000 00000000
 [   2.0442150] mesongxmmc1:       c0: 00000000 00000000 00000000 00000000
 [   2.0542150] mesongxmmc1:       d0: 00000000 00000000 00000000 00000000
 [   2.0542150] mesongxmmc1:       e0: 00000000 00000000 00000000 00000000
 [   2.0642153] mesongxmmc1:       f0: 00000000 00000000 00000000 00000000
 [   2.0942158] mesongxmmc1:       00: 01000b3c 00000000 00000000 00000000
 [   2.0942158] mesongxmmc1:       10: 00000000 00000000 00000000 00000000
 [   2.1042162] mesongxmmc1:       20: 00000000 00000000 00000000 00000000
 [   2.1042162] mesongxmmc1:       30: 00000000 00000000 00000000 00000000
 [   2.1142163] mesongxmmc1:       40: 00000000 00844890 01ff0000 00000000
 [   2.1242164] mesongxmmc1:       50: 00000000 00000000 00000000 00000000
 [   2.1242164] mesongxmmc1:       60: 00000000 00000000 00000000 00000000
 [   2.1342166] mesongxmmc1:       70: 00000000 00000000 00000000 00000000
 [   2.1442168] mesongxmmc1:       80: 00000000 00000000 00000000 00000000
 [   2.1442168] mesongxmmc1:       90: 00000000 00000000 00000000 00000000
 [   2.1542170] mesongxmmc1:       a0: 00000000 00000000 00000000 00000000
 [   2.1642172] mesongxmmc1:       b0: 00000000 00000000 00000000 00000000
 [   2.1642172] mesongxmmc1:       c0: 00000000 00000000 00000000 00000000
 [   2.1742192] mesongxmmc1:       d0: 00000000 00000000 00000000 00000000
 [   2.1842177] mesongxmmc1:       e0: 00000000 00000000 00000000 00000000
 [   2.1842177] mesongxmmc1:       f0: 00000000 00000000 00000000 00000000
 [   2.2042181] mesongxmmc1:       00: 01000b68 00000000 00000000 00000000
 [   2.2042181] mesongxmmc1:       10: 00000000 00000000 00000000 00000000
 [   2.2042181] mesongxmmc1:       20: 00000000 00000000 00000000 00000000
 [   2.2142183] mesongxmmc1:       30: 00000000 00000000 00000000 00000000
 [   2.2242184] mesongxmmc1:       40: 00000000 00844890 01ff0000 00000000
 [   2.2242184] mesongxmmc1:       50: 40000000 00000000 00000000 00000000
 [   2.2342187] mesongxmmc1:       60: 00000000 00000000 00000000 00000000
 [   2.2442187] mesongxmmc1:       70: 00000000 00000000 00000000 00000000
 [   2.2442187] mesongxmmc1:       80: 00000000 00000000 00000000 00000000
 [   2.2542190] mesongxmmc1:       90: 00000000 00000000 00000000 00000000
 [   2.2642191] mesongxmmc1:       a0: 00000000 00000000 00000000 00000000
 [   2.2642191] mesongxmmc1:       b0: 00000000 00000000 00000000 00000000
 [   2.2742212] mesongxmmc1:       c0: 00000000 00000000 00000000 00000000
 [   2.2842196] mesongxmmc1:       d0: 00000000 00000000 00000000 00000000
 [   2.2842196] mesongxmmc1:       e0: 00000000 00000000 00000000 00000000
 [   2.2942200] mesongxmmc1:       f0: 00000000 00000000 00000000 00000000
 [   2.3042200] sdmmc1: can't read EXT_CSD (error=5)
 [   2.3042200] sdmmc1: mem 

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-arm/55957: Odroid C2 can not access eMMC card
Date: Tue, 26 Jan 2021 13:10:19 +0100

 Here is a log with no changes to mesongx_mmc.c (besides enabling the
 DEBUG there) and additional SDMMC_DEBUG enabled.

 Martin

 [   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 [   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
 [   1.0000000]     2018, 2019, 2020, 2021 The NetBSD Foundation, Inc.  All rights reserved.
 [   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
 [   1.0000000]     The Regents of the University of California.  All rights reserved.

 [   1.0000000] NetBSD 9.99.79 (GENERIC64) #179: Tue Jan 26 13:02:24 CET 2021
 [   1.0000000] 	martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbarm/compile/GENERIC64
 [   1.0000000] total memory = 2012 MB
 [   1.0000000] avail memory = 1949 MB
 [   1.0000000] armfdt0 (root)
 [   1.0000000] simplebus0 at armfdt0: Hardkernel ODROID-C2
 [   1.0000000] simplebus1 at simplebus0
 [   1.0000000] cpus0 at simplebus0
 [   1.0000000] simplebus2 at simplebus0
 [   1.0000000] psci0 at simplebus0: PSCI 0.2
 [   1.0000000] cpu0 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x0
 [   1.0000000] cpu1 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x1
 [   1.0000000] cpu2 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x2
 [   1.0000000] cpu3 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x3
 [   1.0000000] simplebus3 at simplebus1
 [   1.0000000] simplebus4 at simplebus1
 [   1.0000000] simplebus5 at simplebus1
 [   1.0000000] simplebus6 at simplebus1
 [   1.0000000] simplebus7 at simplebus1
 [   1.0000000] simplebus8 at simplebus1
 [   1.0000000] gic0 at simplebus1: GIC
 [   1.0000000] armgic0 at gic0: Generic Interrupt Controller, 256 sources (238 valid)
 [   1.0000000] armgic0: 16 Priorities, 224 SPIs, 6 PPIs, 8 SGIs
 [   1.0000000] syscon0 at simplebus3: System Controller Registers
 [   1.0000000] syscon1 at simplebus4: System Controller Registers
 [   1.0000000] fclock0 at simplebus0: 24000000 Hz fixed clock (xtal)
 [   1.0000000] syscon2 at simplebus3: System Controller Registers
 [   1.0000000] gtmr0 at simplebus0: Generic Timer
 [   1.0000000] gtmr0: interrupting on GIC irq 27
 [   1.0000000] armgtmr0 at gtmr0: Generic Timer (24000 kHz, virtual)
 [   1.0000030] gxbbclkc0 at syscon1: Meson GXBB clock controller
 [   1.0000030] mesonpinctrl0 at simplebus5: Meson GXBB periphs GPIO
 [   1.0000030] gpio0 at mesonpinctrl0: 119 pins
 [   1.0000030] mesonresets0 at simplebus6
 [   1.0000030] gxbbaoclkc0 at syscon0: Meson GX AO clock controller
 [   1.0000030] mesonpinctrl1 at simplebus3: Meson GXBB AO GPIO
 [   1.0000030] mesonpinctrl1: usb-hub-reset GPIOAO_4 set to output (high)
 [   1.0000030] gpio1 at mesonpinctrl1: 14 pins
 [   1.0000030] fregulator0 at simplebus0: VCC1V8
 [   1.0000030] fregulator1 at simplebus0: TFLASH_VDD
 [   1.0000030] gregulator0 at simplebus0: TF_IO
 [   1.0000030] fregulator2 at simplebus0: VCC3V3
 [   1.0000030] fregulator3 at simplebus0: HDMI_P5V0
 [   1.0000030] fregulator4 at simplebus0: USB_OTG_PWR
 [   1.0000030] fregulator5 at simplebus0: P5V0
 [   1.0000030] fregulator6 at simplebus0: VDDIO_AO3V3
 [   1.0000030] mesonuart0 at simplebus3: console
 [   1.0000030] mesonuart0: interrupting on GIC irq 225
 [   1.0000030] fregulator7 at simplebus0: VDDIO_AO1V8
 [   1.0000030] fregulator8 at simplebus0: DDR3_1V5
 [   1.0000030] mmcpwrseq0 at simplebus0: eMMC hardware reset provider
 [   1.0000030] mesonusbphy0 at simplebus1: USB2 PHY (host)
 [   1.0000030] /soc/bus@c8100000/sys-ctrl@0/power-controller-vpu at syscon0 not configured
 [   1.0000030] /scpi at simplebus0 not configured
 [   1.0000030] /soc/bus@c883c000/mailbox@404 at simplebus4 not configured
 [   1.0000030] /soc/sram@c8000000 at simplebus1 not configured
 [   1.0000030] /soc/hdmi-tx@c883a000 at simplebus1 not configured
 [   1.0000030] /soc/bus@c8838000/video-lut@48 at simplebus7 not configured
 [   1.0000030] awge0 at simplebus1: Gigabit Ethernet Controller
 [   1.0000030] awge0: interrupting on GIC irq 40
 [   1.0000030] awge0: Core version: 00001137
 [   1.0000030] awge0: Ethernet address 00:1e:06:33:12:a6
 [   1.0000030] awge0: HW feature mask: 100d4f37
 [   1.0000030] rgephy0 at awge0 phy 0: RTL8211F 1000BASE-T media interface
 [   1.0000030] rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
 [   1.0000030] /soc/bus@c1100000/interrupt-controller@9880 at simplebus6 not configured
 [   1.0000030] /soc/vpu@d0100000 at simplebus1 not configured
 [   1.0000030] dispcon0 at simplebus0: HDMI connector
 [   1.0000030] /efuse at simplebus0 not configured
 [   1.0000030] /soc/bus@c1100000/i2c@8500 at simplebus6 not configured
 [   1.0000030] /soc/bus@c1100000/adc@8680 at simplebus6 not configured
 [   1.0000030] /soc/bus@c8100000/cec@100 at simplebus3 not configured
 [   1.0000030] /soc/bus@c8100000/ir@580 at simplebus3 not configured
 [   1.0000030] /soc/video-codec@c8820000 at simplebus1 not configured
 [   1.0000030] mesonrng0 at simplebus5: Hardware RNG
 [   1.0000030] entropy: ready
 [   1.0000030] mesongxmmc0 at simplebus8: eMMC/SD/SDIO controller
 [   1.0000030] mesongxmmc0: interrupting on GIC irq 249
 [   1.0000030] mesongxmmc1 at simplebus8: eMMC/SD/SDIO controller
 [   1.0000030] mesongxmmc1: interrupting on GIC irq 250
 [   1.0000030] /soc/apb@d0000000/gpu@c0000 at simplebus8 not configured
 [   1.0000030] dwctwo0 at simplebus1: DesignWare USB2 OTG
 [   1.0000030] dwctwo0: interrupting on GIC irq 63
 [   1.0000030] armpmu0 at simplebus0: Performance Monitor Unit
 [   1.0000030] gpioleds0 at simplebus0: c2:blue:alive
 [   1.0000030] /soc/bus@c1100000/clock-measure@8758 at simplebus6 not configured
 [   1.0000030] /soc/bus@c1100000/watchdog@98d0 at simplebus6 not configured
 [   1.0000030] cpu0 has 1 core siblings: cpu0
 [   1.0000030] cpu0 has 4 pkg siblings: cpu1 cpu2 cpu3 cpu0
 [   1.0000030] cpu0 has 1 1st siblings: cpu0
 [   1.0000030] cpu0 first in package: cpu0
 [   1.0000030] cpu1 has 1 core siblings: cpu1
 [   1.0000030] cpu1 has 4 pkg siblings: cpu2 cpu3 cpu0 cpu1
 [   1.0000030] cpu1 has 1 1st siblings: cpu0
 [   1.0000030] cpu1 first in package: cpu0
 [   1.0000030] cpu2 has 1 core siblings: cpu2
 [   1.0000030] cpu2 has 4 pkg siblings: cpu3 cpu0 cpu1 cpu2
 [   1.0000030] cpu2 has 1 1st siblings: cpu0
 [   1.0000030] cpu2 first in package: cpu0
 [   1.0000030] cpu3 has 1 core siblings: cpu3
 [   1.0000030] cpu3 has 4 pkg siblings: cpu0 cpu1 cpu2 cpu3
 [   1.0000030] cpu3 has 1 1st siblings: cpu0
 [   1.0000030] cpu3 first in package: cpu0
 [   1.6570696] sdmmc0 at mesongxmmc0
 [   1.6570696] sdmmc1 at mesongxmmc1
 [   1.6570696] usb0 at dwctwo0: USB revision 2.0
 [   1.6570696] armpmu0: interrupting on GIC irq 169
 [   1.6670787] armpmu0: interrupting on GIC irq 170
 [   1.6670787] armpmu0: interrupting on GIC irq 185
 [   1.6770711] armpmu0: interrupting on GIC irq 186
 [   1.6770711] uhub0 at usb0: NetBSD (0x0000) DWC2 root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
 [   1.7570690] mesongxmmc1:       00: 01000b3c 00000000 00000000 00000000
 [   1.7570690] mesongxmmc1:       10: 00000000 00000000 00000000 00000000
 [   1.7670716] mesongxmmc1:       20: 00000000 00000000 00000000 00000000
 [   1.7670716] mesongxmmc1:       30: 00000000 00000000 00000000 00000000
 [   1.7770693] mesongxmmc1:       40: 00000000 00844890 01ff0000 00000000
 [   1.7870697] mesongxmmc1:       50: 00000000 00000000 00000000 00000000
 [   1.7870697] mesongxmmc1:       60: 00000000 00000000 00000000 00000000
 [   1.7970697] mesongxmmc1:       70: 00000000 00000000 00000000 00000000
 [   1.8070700] mesongxmmc1:       80: 00000000 00000000 00000000 00000000
 [   1.8070700] mesongxmmc1:       90: 00000000 00000000 00000000 00000000
 [   1.8170703] mesongxmmc1:       a0: 00000000 00000000 00000000 00000000
 [   1.8270704] mesongxmmc1:       b0: 00000000 00000000 00000000 00000000
 [   1.8270704] mesongxmmc1:       c0: 00000000 00000000 00000000 00000000
 [   1.8370704] mesongxmmc1:       d0: 00000000 00000000 00000000 00000000
 [   1.8370704] mesongxmmc1:       e0: 00000000 00000000 00000000 00000000
 [   1.8470708] mesongxmmc1:       f0: 00000000 00000000 00000000 00000000
 [   1.8570707] sdmmc_io_send_op_cond: ocr = 0
 [   1.8570707] mesongxmmc1:       00: 01000b3c 00000000 00000000 00000000
 [   1.8670730] mesongxmmc1:       10: 00000000 00000000 00000000 00000000
 [   1.8770712] mesongxmmc1:       20: 00000000 00000000 00000000 00000000
 [   1.8770712] mesongxmmc1:       30: 00000000 00000000 00000000 00000000
 [   1.8870715] mesongxmmc1:       40: 00000000 00844890 01ff0000 00000000
 [   1.8870715] mesongxmmc1:       50: 00000000 00000000 00000000 00000000
 [   1.8970715] mesongxmmc1:       60: 00000000 00000000 00000000 00000000
 [   1.9070719] mesongxmmc1:       70: 00000000 00000000 00000000 00000000
 [   1.9070719] mesongxmmc1:       80: 00000000 00000000 00000000 00000000
 [   1.9170718] mesongxmmc1:       90: 00000000 00000000 00000000 00000000
 [   1.9270722] mesongxmmc1:       a0: 00000000 00000000 00000000 00000000
 [   1.9270722] mesongxmmc1:       b0: 00000000 00000000 00000000 00000000
 [   1.9370723] mesongxmmc1:       c0: 00000000 00000000 00000000 00000000
 [   1.9470728] mesongxmmc1:       d0: 00000000 00000000 00000000 00000000
 [   1.9470728] mesongxmmc1:       e0: 00000000 00000000 00000000 00000000
 [   1.9570727] mesongxmmc1:       f0: 00000000 00000000 00000000 00000000
 [   1.9670747] sdmmc_io_send_op_cond: error = 60
 [   1.9670747] sdmmc1: sdmmc_mem_send_op_cond: ocr=0
 [   1.9770733] mesongxmmc1:       00: 01000b3c 00000000 00000000 00000000
 [   1.9770733] mesongxmmc1:       10: 00000000 00000000 00000000 00000000
 [   1.9870736] mesongxmmc1:       20: 00000000 00000000 00000000 00000000
 [   1.9970735] mesongxmmc1:       30: 00000000 00000000 00000000 00000000
 [   1.9970735] mesongxmmc1:       40: 00000000 00844890 01ff0000 00000000
 [   2.0070739] mesongxmmc1:       50: 00000000 00000000 00000000 00000000
 [   2.0170739] mesongxmmc1:       60: 00000000 00000000 00000000 00000000
 [   2.0170739] mesongxmmc1:       70: 00000000 00000000 00000000 00000000
 [   2.0270751] mesongxmmc1:       80: 00000000 00000000 00000000 00000000
 [   2.0370743] mesongxmmc1:       90: 00000000 00000000 00000000 00000000
 [   2.0370743] mesongxmmc1:       a0: 00000000 00000000 00000000 00000000
 [   2.0470747] mesongxmmc1:       b0: 00000000 00000000 00000000 00000000
 [   2.0470747] mesongxmmc1:       c0: 00000000 00000000 00000000 00000000
 [   2.0570747] mesongxmmc1:       d0: 00000000 00000000 00000000 00000000
 [   2.0670768] mesongxmmc1:       e0: 00000000 00000000 00000000 00000000
 [   2.0670768] mesongxmmc1:       f0: 00000000 00000000 00000000 00000000
 [   2.0770752] sdmmc1: sdmmc_mem_send_op_cond: error=60, ocr=0
 [   2.0870755] sdmmc1: switch to MMC mode
 [   2.0870755] sdmmc1: sdmmc_mem_send_op_cond: ocr=0
 [   2.0970756] sdmmc1: sdmmc_mem_send_op_cond: error=0, ocr=0x40ff8080
 [   2.0970756] sdmmc1: host_ocr 0x00300080
 [   2.1070758] sdmmc1: card_ocr 0x40ff8080
 [   2.1070758] sdmmc1: sdmmc_mem_send_op_cond: ocr=0x40300080
 [   2.1270762] sdmmc1: sdmmc_mem_send_op_cond: error=0, ocr=0xc0ff8080
 [   2.1270762] sdmmc_dump_data: CID
 [   2.1370765] --------+--------------------------------------------------+------------------+
 [   2.1370765] offset  | +0 +1 +2 +3 +4 +5 +6 +7  +8 +9 +a +b +c +d +e +f | data             |
 [   2.1470766] --------+--------------------------------------------------+------------------+
 [   2.1570767] 00000000| a3 60 47 64 0c 43 20 64  72 61 43 4e 03 01 88 00 | .`Gd.C draCN.... |
 [   2.1670788] --------+--------------------------------------------------+------------------+
 [   2.1770772] mesongxmmc1:       00: 01000b3c 00000000 00000000 00000000
 [   2.1770772] mesongxmmc1:       10: 00000000 00000000 00000000 00000000
 [   2.1870775] mesongxmmc1:       20: 00000000 00000000 00000000 00000000
 [   2.1970775] mesongxmmc1:       30: 00000000 00000000 00000000 00000000
 [   2.1970775] mesongxmmc1:       40: 00000000 00844890 01ff0000 00000000
 [   2.2070780] mesongxmmc1:       50: 00000000 00000000 00000000 00000000
 [   2.2170778] mesongxmmc1:       60: 00000000 00000000 00000000 00000000
 [   2.2170778] mesongxmmc1:       70: 00000000 00000000 00000000 00000000
 [   2.2270783] mesongxmmc1:       80: 00000000 00000000 00000000 00000000
 [   2.2370783] mesongxmmc1:       90: 00000000 00000000 00000000 00000000
 [   2.2370783] mesongxmmc1:       a0: 00000000 00000000 00000000 00000000
 [   2.2470787] mesongxmmc1:       b0: 00000000 00000000 00000000 00000000
 [   2.2570787] mesongxmmc1:       c0: 00000000 00000000 00000000 00000000
 [   2.2570787] mesongxmmc1:       d0: 00000000 00000000 00000000 00000000
 [   2.2670809] mesongxmmc1:       e0: 00000000 00000000 00000000 00000000
 [   2.2770791] mesongxmmc1:       f0: 00000000 00000000 00000000 00000000
 [   2.2770791] sdmmc_dump_data: CSD
 [   2.2870796] --------+--------------------------------------------------+------------------+
 [   2.2870796] offset  | +0 +1 +2 +3 +4 +5 +6 +7  +8 +9 +a +b +c +d +e +f | data             |
 [   2.2970795] --------+--------------------------------------------------+------------------+
 [   2.3070798] 00000000| 00 40 96 e7 ff ff ff ff  03 59 0f 32 ff ff d0 00 | .@.......Y.2.... |
 [   2.3170799] --------+--------------------------------------------------+------------------+
 [   2.3270803] sdmmc1: CID: mid=0x88 oid=0x0103 pnm="NCard " rev=0x00 psn=0x0c644760 mdt=000
 [   2.3370803] sdmmc1: sdmmc_mem_set_blocklen: read_bl_len=512 sector_size=512
 [   2.3470808] mesongxmmc1:       00: 01000b68 00000000 00000000 00000000
 [   2.3470808] mesongxmmc1:       10: 00000000 00000000 00000000 00000000
 [   2.3570808] mesongxmmc1:       20: 00000000 00000000 00000000 00000000
 [   2.3570808] mesongxmmc1:       30: 00000000 00000000 00000000 00000000
 [   2.3670831] mesongxmmc1:       40: 00000000 00844890 01ff0000 00000000
 [   2.3770813] mesongxmmc1:       50: 40000000 00000000 00000000 00000000
 [   2.3770813] mesongxmmc1:       60: 00000000 00000000 00000000 00000000
 [   2.3870815] mesongxmmc1:       70: 00000000 00000000 00000000 00000000
 [   2.3970816] mesongxmmc1:       80: 00000000 00000000 00000000 00000000
 [   2.3970816] mesongxmmc1:       90: 00000000 00000000 00000000 00000000
 [   2.4070820] mesongxmmc1:       a0: 00000000 00000000 00000000 00000000
 [   2.4170820] mesongxmmc1:       b0: 00000000 00000000 00000000 00000000
 [   2.4170820] mesongxmmc1:       c0: 00000000 00000000 00000000 00000000
 [   2.4270823] mesongxmmc1:       d0: 00000000 00000000 00000000 00000000
 [   2.4370823] mesongxmmc1:       e0: 00000000 00000000 00000000 00000000
 [   2.4370823] mesongxmmc1:       f0: 00000000 00000000 00000000 00000000
 [   2.4470827] sdmmc1: can't read EXT_CSD (error=5)
 [   2.4470827] sdmmc1: mem init failed
 [   2.4570827] sdmmc1: init failed
 [   3.5871048] uhub1 at uhub0 port 1: vendor 05e3 (0x05e3) USB2.0 Hub (0x0610), class 9/0, rev 2.00/32.98, addr 2
 [   3.5871048] uhub1: multiple transaction translators
 [   3.9371117] uhub0: illegal enable change, port 1
 [   3.9371117] WARNING: 4 errors while detecting hardware; check system log.
 [   3.9371117] boot device: <unknown>
 [   3.9471136] root device: 

State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Thu, 28 Jan 2021 14:24:44 +0000
State-Changed-Why:
Fixed by jared with r1.14 of sys/arch/arm/amlogic/mesongx_mmc.c


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.