This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VMXEVM: eMMC HS400 and HS200 problem

Part Number: TDA4VMXEVM

Hi,

In TDA4 TRM, chapter 12.3.6.1.2, says that MMCSD0 host controller does not support HS400 DDR mode.

But the SDHCI driver in SDK 6.2 do switch to HS400, and we encountered some compatable issues on eMMC scaning and eMMC reading&writing.

We make SDHCI work at DDR52, the issues are all gone, but we still want to try HS200, but I got no luck, Linux kernel boot fails.

Could you please give me some guidance about how to make eMMC HS200 work? Or is eMMC HS200 not supported neither?

My dts modification:

diff --git a/ti-processor-sdk-linux-automotive-j7-evm-06_02_00/board-support/linux-4.19.94+gitAUTOINC+5a23bc00e0-g5a23bc00e0/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi b/ti-processor-sdk-linux-automotive-j7-evm-06_02_00/board-support/linux-4.19.94+gitAUTOINC+5a23bc00e0-g5a23bc00e0/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi
index 4e04d5b14..6d5498c51 100644
--- a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi
@@ -1944,8 +1941,9 @@
                assigned-clocks = <&k3_clks 91 1>;
                assigned-clock-parents = <&k3_clks 91 2>;
                bus-width = <8>;
-               mmc-hs400-1_8v;
-               mmc-ddr-1_8v;
+               mmc-hs200-1_8v;
+               // mmc-hs400-1_8v;
+               // mmc-ddr-1_8v;
                ti,otap-del-sel-legacy = <0x0>;
                ti,otap-del-sel-mmc-hs = <0x0>;
                ti,otap-del-sel-ddr52 = <0x5>;

boot log:

U-Boot SPL 2019.01-g350f3927b8 (Feb 17 2020 - 09:46:23 +0000)
SYSFW ABI: 2.9 (firmware rev 0x0013 '19.12.1-v2019.12a (Terrific Lla')
Trying to boot from MMC2
Loading Environment from MMC... *** Warning - No MMC card found, using default environment

Remoteproc 2 started successfully
Starting ATF on ARM64 core...

NOTICE: BL31: v2.2(release):ti2019.05-rc1
NOTICE: BL31: Built : 09:32:00, Feb 17 2020
I/TC:
I/TC: OP-TEE version: ti2019.05-rc1-dev (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.3
6))) #1 Mon Feb 17 09:40:16 UTC 2020 aarch64
I/TC: Initialized

U-Boot SPL 2019.01-g350f3927b8 (Feb 17 2020 - 09:48:06 +0000)
Detected: J7X-BASE-CPB rev E3
Detected: J7X-GESI-EXP rev E3
Detected: J7X-VSC8514-ETH rev E2
Trying to boot from MMC2


U-Boot 2019.01-g350f3927b8 (Feb 17 2020 - 09:48:06 +0000)

SoC: J721E PG 1.0
Model: Texas Instruments K3 J721E SoC
Board: J721EX-PM2-SOM rev E7
DRAM: 4 GiB
Flash: 0 Bytes
MMC: sdhci@4f80000: 0, sdhci@4fb0000: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In: serial@2800000
Out: serial@2800000
Err: serial@2800000
Detected: J7X-BASE-CPB rev E3
Detected: J7X-GESI-EXP rev E3
Detected: J7X-VSC8514-ETH rev E2
Net:
Warning: ethernet@046000000 using MAC address from ROM
eth0: ethernet@046000000
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
SD/MMC found on device 1
** Unable to read file boot.scr **
0 bytes read in 1 ms (0 Bytes/s)
Loaded env from uEnv.txt
Importing environment from mmc1 ...
13338632 bytes read in 281 ms (45.3 MiB/s)
99329 bytes read in 3 ms (31.6 MiB/s)
## Flattened Device Tree blob at 82000000
Booting using the fdt blob at 0x82000000
Loading Device Tree to 00000000fdda3000, end 00000000fdebefff ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
[ 0.000000] Linux version 4.19.94-g5a23bc00e0 (oe-user@oe-host) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architectu
re 8.3-2019.03 (arm-rel-8.36))) #1 SMP PREEMPT Mon Feb 17 09:01:06 UTC 2020
[ 0.000000] Machine model: Texas Instruments K3 J721E SoC
[ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
[ 0.000000] bootconsole [ns16550a0] enabled
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a2000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-memory@a2100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a3000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a3000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a3100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-memory@a3100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a4000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-memory@a4100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a5000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a5000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a5100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-memory@a5100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a6000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node c66-dma-memory@a6000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a6100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node c66-memory@a6100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a7000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node c66-dma-memory@a7000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a7100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node c66-memory@a7100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a8000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node c71-dma-memory@a8000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a8100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node c71-memory@a8100000, compatible id shared-dma-pool
[ 0.000000] cma: Reserved 512 MiB at 0x00000000c0000000
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] random: get_random_bytes called from start_kernel+0x94/0x3e4 with crng_init=0
[ 0.000000] percpu: Embedded 2 pages/cpu s48536 r8192 d74344 u131072
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for EL2 vector hardening
[ 0.000000] Speculative Store Bypass Disable mitigation not required
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 62339
[ 0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.
tiboot3),2m(ospi.tispl),4m(ospi.u-boot),128k(ospi.env),128k(ospi.env.backup),1m(ospi.sysfw),-@8m(ospi.rootfs);47034000.hyperbus:5
12k(hbmc.tiboot3),2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),1m(hbmc.sysfw),-@8m(hbmc.rootfs) root=PARTUUID=2d9fc220-02 rw roo
tfstype=ext4 rootwait
[ 0.000000] Dentry cache hash table entries: 524288 (order: 6, 4194304 bytes)
[ 0.000000] Inode-cache hash table entries: 262144 (order: 5, 2097152 bytes)
[ 0.000000] software IO TLB: mapped [mem 0xf9da0000-0xfdda0000] (64MB)
[ 0.000000] Memory: 3377664K/3993600K available (8510K kernel code, 738K rwdata, 3136K rodata, 576K init, 641K bss, 91648K res
erved, 524288K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=2.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: Distributor has no Range Selector support
[ 0.000000] GICv3: no VLPI support, no direct LPI support
[ 0.000000] ITS [mem 0x01820000-0x0182ffff]
[ 0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
[ 0.000000] ITS@0x0000000001820000: allocated 1048576 Devices @8c0800000 (flat, esz 8, psz 64K, shr 0)
[ 0.000000] ITS: using cache flushing for cmd queue
[ 0.000000] GIC: using LPI property table @0x00000008c00a0000
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
[ 0.000000] CPU0: using LPI pending table @0x00000008c00b0000
[ 0.000000] GIC: using cache flushing for LPI property table
[ 0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
[ 0.000001] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
[ 0.008359] Console: colour dummy device 80x25
[ 0.012914] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
[ 0.023583] pid_max: default: 32768 minimum: 301
[ 0.028324] Security Framework initialized
[ 0.032528] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes)
[ 0.039383] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes)
[ 0.070717] ASID allocator initialised with 32768 entries
[ 0.084243] rcu: Hierarchical SRCU implementation.
[ 0.097186] Platform MSI: gic-its@1820000 domain created
[ 0.102725] PCI/MSI: /interconnect@100000/interrupt-controller@1800000/gic-its@1820000 domain created
[ 0.120161] smp: Bringing up secondary CPUs ...
[ 0.157063] Detected PIPT I-cache on CPU1
[ 0.157079] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
[ 0.157108] CPU1: using LPI pending table @0x00000008c0310000
[ 0.157131] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
[ 0.157170] smp: Brought up 1 node, 2 CPUs
[ 0.185008] SMP: Total of 2 processors activated.
[ 0.189818] CPU features: detected: GIC system register CPU interface
[ 0.196400] CPU features: detected: 32-bit EL0 Support
[ 0.201877] CPU: All CPU(s) started at EL2
[ 0.206064] alternatives: patching kernel code
[ 0.211047] devtmpfs: initialized
[ 0.218747] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.228709] futex hash table entries: 512 (order: -1, 32768 bytes)
[ 0.235416] pinctrl core: initialized pinctrl subsystem
[ 0.241085] NET: Registered protocol family 16
[ 0.245966] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
[ 0.253529] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.262705] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.276098] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.282950] HugeTLB registered 512 MiB page size, pre-allocated 0 pages
[ 0.290349] cryptd: max_cpu_qlen set to 1000
[ 0.299143] vsys_3v3: supplied by evm_12v0
[ 0.303406] vsys_5v0: supplied by evm_12v0
[ 0.307950] SCSI subsystem initialized
[ 0.312010] media: Linux media interface: v0.10
[ 0.316651] videodev: Linux video capture interface: v2.00
[ 0.322266] pps_core: LinuxPPS API ver. 1 registered
[ 0.327338] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.336677] PTP clock support registered
[ 0.340690] EDAC MC: Ver: 3.0.0
[ 0.344511] Advanced Linux Sound Architecture Driver Initialized.
[ 0.351050] clocksource: Switched to clocksource arch_sys_counter
[ 0.357341] VFS: Disk quotas dquot_6.6.0
[ 0.361390] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes)
[ 0.370783] NET: Registered protocol family 2
[ 0.375486] tcp_listen_portaddr_hash hash table entries: 4096 (order: 0, 65536 bytes)
[ 0.383538] TCP established hash table entries: 32768 (order: 2, 262144 bytes)
[ 0.391023] TCP bind hash table entries: 32768 (order: 3, 524288 bytes)
[ 0.398089] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.404818] UDP hash table entries: 2048 (order: 0, 65536 bytes)
[ 0.410999] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes)
[ 0.417671] NET: Registered protocol family 1
[ 0.426348] RPC: Registered named UNIX socket transport module.
[ 0.432401] RPC: Registered udp transport module.
[ 0.437204] RPC: Registered tcp transport module.
[ 0.442007] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.448833] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 0.458503] Initialise system trusted keyrings
[ 0.463127] workingset: timestamp_bits=46 max_order=16 bucket_order=0
[ 0.471141] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.477293] NFS: Registering the id_resolver key type
[ 0.482462] Key type id_resolver registered
[ 0.486734] Key type id_legacy registered
[ 0.490831] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.497732] 9p: Installing v9fs 9p2000 file system support
[ 0.504832] Key type asymmetric registered
[ 0.509020] Asymmetric key parser 'x509' registered
[ 0.514022] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[ 0.521582] io scheduler noop registered
[ 0.525588] io scheduler deadline registered
[ 0.529985] io scheduler cfq registered (default)
[ 0.534792] io scheduler mq-deadline registered
[ 0.539417] io scheduler kyber registered
[ 0.544316] pinctrl-single 4301c000.pinmux: 94 pins, size 376
[ 0.550398] pinctrl-single 11c000.pinmux: 173 pins, size 692
[ 0.556540] pinctrl-single a40000.timesync_router: 512 pins, size 2048
[ 0.565514] ti-pat 31010000.pat: Found PAT Rev 1.0 with 16384 pages
[ 0.571933] ti-pat 31010000.pat: Failed to create 31010000.pat debugfs directory
[ 0.579603] ti-pat 31011000.pat: Found PAT Rev 1.0 with 16384 pages
[ 0.586016] ti-pat 31011000.pat: Failed to create 31011000.pat debugfs directory
[ 0.593662] ti-pat 31012000.pat: Found PAT Rev 1.0 with 16384 pages
[ 0.600076] ti-pat 31012000.pat: Failed to create 31012000.pat debugfs directory
[ 0.607718] ti-pat 31013000.pat: Found PAT Rev 1.0 with 2048 pages
[ 0.614040] ti-pat 31013000.pat: Failed to create 31013000.pat debugfs directory
[ 0.621681] ti-pat 31014000.pat: Found PAT Rev 1.0 with 2048 pages
[ 0.628002] ti-pat 31014000.pat: Failed to create 31014000.pat debugfs directory
[ 0.636908] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[ 0.648265] brd: module loaded
[ 0.654050] loop: module loaded
[ 0.658338] libphy: Fixed MDIO Bus: probed
[ 0.662675] tun: Universal TUN/TAP device driver, 1.6
[ 0.668077] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[ 0.676084] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 0.682150] sky2: driver version 1.30
[ 0.686443] VFIO - User Level meta-driver version: 0.3
[ 0.692048] i2c /dev entries driver
[ 0.696053] sdhci: Secure Digital Host Controller Interface driver
[ 0.702370] sdhci: Copyright(c) Pierre Ossman
[ 0.707006] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.713244] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.720069] optee: probing for conduit method from DT.
[ 0.725331] optee: revision 3.7 (5208e5c1)
[ 0.725479] optee: initialized driver
[ 0.734095] NET: Registered protocol family 17
[ 0.738696] 9pnet: Installing 9P2000 support
[ 0.743075] Key type dns_resolver registered
[ 0.747647] registered taskstats version 1
[ 0.751831] Loading compiled-in X.509 certificates
[ 0.761155] ti-sci 44083000.dmsc: ABI: 2.9 (firmware rev 0x0013 '19.12.1-v2019.12a (Terrific Lla')
[ 0.785997] random: fast init done
[ 0.828101] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz
[ 0.834022] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz
[ 0.839977] omap_i2c 42120000.i2c: bus 2 rev0.12 at 100 kHz
[ 0.845988] pca953x 3-0020: 3-0020 supply vcc not found, using dummy regulator
[ 0.853395] pca953x 3-0020: Linked as a consumer to regulator.0
[ 0.883587] pca953x 3-0022: 3-0022 supply vcc not found, using dummy regulator
[ 0.890985] pca953x 3-0022: Linked as a consumer to regulator.0
[ 0.897855] GPIO line 481 (MCASP/TRACE_MUX_S0) hogged as output/low
[ 0.904579] GPIO line 482 (MCASP/TRACE_MUX_S1) hogged as output/high
[ 0.911140] omap_i2c 2000000.i2c: bus 3 rev0.12 at 400 kHz
[ 0.917138] omap_i2c 2010000.i2c: bus 4 rev0.12 at 400 kHz
[ 0.923013] omap_i2c 2020000.i2c: bus 5 rev0.12 at 100 kHz
[ 0.928975] pca953x 6-0020: 6-0020 supply vcc not found, using dummy regulator
[ 0.936377] pca953x 6-0020: Linked as a consumer to regulator.0
[ 0.963714] GPIO line 464 (CODEC_RSTz) hogged as output/high
[ 0.969606] omap_i2c 2030000.i2c: bus 6 rev0.12 at 400 kHz
[ 0.975465] omap_i2c 2040000.i2c: bus 7 rev0.12 at 100 kHz
[ 0.981311] omap_i2c 2050000.i2c: bus 8 rev0.12 at 100 kHz
[ 0.987225] pca953x 9-0020: 9-0020 supply vcc not found, using dummy regulator
[ 0.994625] pca953x 9-0020: Linked as a consumer to regulator.0
[ 1.023474] omap_i2c 2060000.i2c: bus 9 rev0.12 at 400 kHz
[ 1.038376] cdns-torrent-phy 5050000.serdes: 4 lanes, max bit rate 5.400 Gbps
[ 1.047064] cdns-pcie-host d000000.pcie: missing "mem"
[ 1.052651] cdns-pcie-host d000000.pcie: Linked as a consumer to phy-5000000.serdes.0
[ 2.055085] cdns-pcie-host d000000.pcie: Phy link never came up
[ 2.061137] cdns-pcie-host d000000.pcie: host bridge /interconnect@100000/pcie@2900000/pcie@d000000 ranges:
[ 2.071108] cdns-pcie-host d000000.pcie: IO 0x10001000..0x10010fff -> 0x10001000
[ 2.078939] cdns-pcie-host d000000.pcie: MEM 0x4000000000..0x407fffffff -> 0x00000000
[ 2.087182] cdns-pcie-host d000000.pcie: PCI host bridge to bus 0000:00
[ 2.093944] pci_bus 0000:00: root bus resource [bus 00-0f]
[ 2.099549] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] (bus address [0x10001000-0x10010fff])
[ 2.109240] pci_bus 0000:00: root bus resource [mem 0x4000000000-0x407fffffff] (bus address [0x00000000-0x7fffffff])
[ 2.120021] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[ 2.129891] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[ 2.139784] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x92 may corrupt adjacent RW1C bits
[ 2.149745] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0xb2 may corrupt adjacent RW1C bits
[ 2.159735] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x84 may corrupt adjacent RW1C bits
[ 2.171413] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 2.179595] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
[ 2.189554] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
[ 2.199514] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
[ 2.209471] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x6 may corrupt adjacent RW1C bits
[ 2.220901] pci_bus 0000:00: 1-byte config write to 0000:00:00.0 offset 0x1a may corrupt adjacent RW1C bits
[ 2.230869] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 2.236323] cdns-pcie-host d800000.pcie: missing "mem"
[ 2.241978] cdns-pcie-host d800000.pcie: Linked as a consumer to phy-5010000.serdes.1
[ 3.251351] cdns-pcie-host d800000.pcie: Phy link never came up
[ 3.257404] cdns-pcie-host d800000.pcie: host bridge /interconnect@100000/pcie@2910000/pcie@d800000 ranges:
[ 3.267371] cdns-pcie-host d800000.pcie: IO 0x18001000..0x18010fff -> 0x18001000
[ 3.275201] cdns-pcie-host d800000.pcie: MEM 0x4100000000..0x417fffffff -> 0x00000000
[ 3.283433] cdns-pcie-host d800000.pcie: PCI host bridge to bus 0001:00
[ 3.290194] pci_bus 0001:00: root bus resource [bus 00-0f]
[ 3.295799] pci_bus 0001:00: root bus resource [io 0x10000-0x1ffff] (bus address [0x18001000-0x18010fff])
[ 3.305668] pci_bus 0001:00: root bus resource [mem 0x4100000000-0x417fffffff] (bus address [0x00000000-0x7fffffff])
[ 3.318127] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 3.327884] pci 0001:00:00.0: PCI bridge to [bus 01]
[ 3.333298] cdns-pcie-host e000000.pcie: missing "mem"
[ 3.338884] cdns-pcie-host e000000.pcie: Linked as a consumer to phy-5020000.serdes.2
[ 4.348256] cdns-pcie-host e000000.pcie: Phy link never came up
[ 4.354309] cdns-pcie-host e000000.pcie: host bridge /interconnect@100000/pcie@2920000/pcie@e000000 ranges:
[ 4.364276] cdns-pcie-host e000000.pcie: IO 0x4400001000..0x4400010fff -> 0x00001000
[ 4.372461] cdns-pcie-host e000000.pcie: MEM 0x4400011000..0x4407ffffff -> 0x00011000
[ 4.380693] cdns-pcie-host e000000.pcie: PCI host bridge to bus 0002:00
[ 4.387454] pci_bus 0002:00: root bus resource [bus 00-0f]
[ 4.393059] pci_bus 0002:00: root bus resource [io 0x20000-0x2ffff] (bus address [0x1000-0x10fff])
[ 4.402305] pci_bus 0002:00: root bus resource [mem 0x4400011000-0x4407ffffff] (bus address [0x00011000-0x07ffffff])
[ 4.414739] pci 0002:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 4.424495] pci 0002:00:00.0: PCI bridge to [bus 01]
[ 4.429957] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
[ 4.439832] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
[ 4.446591] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66346100, num_proxies:64
[ 4.454262] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[440,150] sci-dev-id:211
[ 4.464401] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
[ 4.471160] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66346100, num_proxies:64
[ 4.478773] omap8250 40a00000.serial: PM domain pd:149 will not be powered off
[ 4.486294] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 7, base_baud = 6000000) is a 8250
[ 4.495403] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 19, base_baud = 3000000) is a 8250
[ 4.504138] console [ttyS2] enabled
[ 4.504138] console [ttyS2] enabled
[ 4.511173] bootconsole [ns16550a0] disabled
[ 4.511173] bootconsole [ns16550a0] disabled
[ 4.520063] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 20, base_baud = 3000000) is a 8250
[ 4.528857] 2840000.serial: ttyS6 at MMIO 0x2840000 (irq = 21, base_baud = 3000000) is a 8250
[ 4.537576] arm-smmu-v3 36600000.smmu: ias 48-bit, oas 48-bit (features 0x00001faf)
[ 4.546307] arm-smmu-v3 36600000.smmu: msi_domain absent - falling back to wired irqs
[ 4.555962] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vdd-hba-supply regulator, assuming enabled
[ 4.566470] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vcc-supply regulator, assuming enabled
[ 4.576627] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq-supply regulator, assuming enabled
[ 4.586865] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq2-supply regulator, assuming enabled
[ 4.597669] scsi host0: ufshcd
[ 4.613598] cadence-qspi 47040000.spi: mt35xu512aba (65536 Kbytes)
[ 4.619776] 7 cmdlinepart partitions found on MTD device 47040000.spi.0
[ 4.626375] Creating 7 MTD partitions on "47040000.spi.0":
[ 4.628491] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[1, 1], lane[1, 1], pwr[SLOWAUTO_MODE, SLOWAUTO_MODE
], rate = 0
[ 4.631849] 0x000000000000-0x000000080000 : "ospi.tiboot3"
[ 4.649922] 0x000000080000-0x000000280000 : "ospi.tispl"
[ 4.655413] 0x000000280000-0x000000680000 : "ospi.u-boot"
[ 4.660982] 0x000000680000-0x0000006a0000 : "ospi.env"
[ 4.664455] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[3, 3], lane[2, 2], pwr[FAST MODE, FAST MODE], rate
= 2
[ 4.677779] cdns-ufshcd 4e84000.ufs: ufshcd_find_max_sup_active_icc_level: Regulator capability was not set, actvIccLevel=0
[ 4.688951] 0x0000006a0000-0x0000006c0000 : "ospi.env.backup"
[ 4.689021] scsi 0:0:0:49488: Well-known LUN TOSHIBA THGAF8G8T23BAILB 0300 PQ: 0 ANSI: 6
[ 4.694888] 0x0000006c0000-0x0000007c0000 : "ospi.sysfw"
[ 4.708537] scsi 0:0:0:49476: Well-known LUN TOSHIBA THGAF8G8T23BAILB 0300 PQ: 0 ANSI: 6
[ 4.711122] 0x000000800000-0x000004000000 : "ospi.rootfs"
[ 4.722460] cdns-ufshcd 4e84000.ufs: ufshcd_scsi_add_wlus: BOOT WLUN not found
[ 4.839127] cadence-qspi 47040000.spi: Cadence QSPI NOR probe failed -517
[ 4.846637] cadence-qspi 47050000.spi: n25q512a (65536 Kbytes)
[ 4.867130] cadence-qspi 47050000.spi: Cadence QSPI NOR probe failed -517
[ 4.874385] am65-cpsw-nuss 46000000.ethernet: rx-flow-id-base is not set -22
[ 4.881439] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2
[ 4.892875] UDMA has not been proped
[ 4.896447] am65-cpsw-nuss 46000000.ethernet: Failed to request tx dma channel -517
[ 4.904866] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0
[ 4.913349] mmc0: Unknown controller version (4). You may experience problems.
[ 4.920609] mmc0: CQHCI version 5.10
[ 4.954891] mmc0: SDHCI controller on 4f80000.sdhci [4f80000.sdhci] using ADMA 64-bit
[ 4.968687] vdd_mmc1: supplied by vsys_3v3
[ 4.973193] pca953x 4-0020: 4-0020 supply vcc not found, using dummy regulator
[ 4.980431] pca953x 4-0020: Linked as a consumer to regulator.0
[ 5.007705] GPIO line 448 (DP0_PWR_SW_EN) hogged as output/high
[ 5.014227] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100
[ 5.021148] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100
[ 5.028062] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100
[ 5.034945] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100
[ 5.041820] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100
[ 5.048742] mmc0: Command Queue Engine enabled
[ 5.053182] mmc0: new HS200 MMC card at address 0001
[ 5.059167] mmcblk0: mmc0:0001 S0J56X 14.8 GiB
[ 5.063930] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB
[ 5.070086] mmcblk0boot1: mmc0:0001 S0J56X partition 2 31.5 MiB
[ 5.076076] mmcblk0rpmb: mmc0:0001 S0J56X partition 3 4.00 MiB, chardev (242:0)
[ 5.364722] ti-udma 285c0000.udmap: Channels: 24 (tchan: 48, echan: 0, rchan: 48, rflow: 96)
[ 5.374333] ti-udma 31150000.udmap: Channels: 84 (tchan: 140, echan: 160, rchan: 140, rflow: 300)
[ 5.387157] cadence-qspi 47040000.spi: mt35xu512aba (65536 Kbytes)
[ 5.393328] 7 cmdlinepart partitions found on MTD device 47040000.spi.0
[ 5.399929] Creating 7 MTD partitions on "47040000.spi.0":
[ 5.405406] 0x000000000000-0x000000080000 : "ospi.tiboot3"
[ 5.411137] 0x000000080000-0x000000280000 : "ospi.tispl"
[ 5.416648] 0x000000280000-0x000000680000 : "ospi.u-boot"
[ 5.422223] 0x000000680000-0x0000006a0000 : "ospi.env"
[ 5.427531] 0x0000006a0000-0x0000006c0000 : "ospi.env.backup"
[ 5.433470] 0x0000006c0000-0x0000007c0000 : "ospi.sysfw"
[ 5.438960] 0x000000800000-0x000004000000 : "ospi.rootfs"
[ 5.446524] cadence-qspi 47050000.spi: n25q512a (65536 Kbytes)
[ 5.454290] am65-cpsw-nuss 46000000.ethernet: rx-flow-id-base is not set -22
[ 5.461346] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2
[ 5.479038] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
[ 5.489547] pps pps0: new PPS source ptp1
[ 5.493673] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:1
[ 5.502618] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 0.4
[ 5.509822] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
[ 5.555056] am65-cpsw-nuss 46000000.ethernet: davinci mdio revision 9.7, bus freq 1000000
[ 5.563217] libphy: 46000000.ethernet: probed
[ 5.568812] sdhci-am654 4fb0000.sdhci: Linked as a consumer to regulator.4
[ 5.575695] sdhci-am654 4fb0000.sdhci: Linked as a consumer to regulator.5
[ 5.582583] mmc1: Unknown controller version (4). You may experience problems.
[ 5.589829] mmc1: CQHCI version 5.10
[ 5.623612] mmc1: SDHCI controller on 4fb0000.sdhci [4fb0000.sdhci] using ADMA 64-bit
[ 5.641033] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 5.647947] hctosys: unable to open rtc device (rtc0)
[ 5.674742] ALSA device list:
[ 5.677704] No soundcards found.
[ 7.047878] mmc1: new ultra high speed DDR50 SDHC card at address aaaa
[ 7.054907] mmcblk1: mmc1:aaaa SC16G 14.8 GiB
[ 7.069194] mmcblk1: p1 p2
[ 66.611058] mmc0: cqhci: timeout for tag 5
[ 66.615141] mmc0: cqhci: ============ CQHCI REGISTER DUMP ===========
[ 66.621562] mmc0: cqhci: Caps: 0x000030c8 | Version: 0x00000510
[ 66.627982] mmc0: cqhci: Config: 0x00000101 | Control: 0x00000000
[ 66.634404] mmc0: cqhci: Int stat: 0x00000000 | Int enab: 0x00000006
[ 66.640825] mmc0: cqhci: Int sig: 0x00000006 | Int Coal: 0x00000000
[ 66.647246] mmc0: cqhci: TDL base: 0xc0130000 | TDL up32: 0x00000000
[ 66.653667] mmc0: cqhci: Doorbell: 0x00000020 | TCN: 0x00000000
[ 66.660087] mmc0: cqhci: Dev queue: 0x00000000 | Dev Pend: 0x00000000
[ 66.666508] mmc0: cqhci: Task clr: 0x00000000 | SSC1: 0x00011000
[ 66.672928] mmc0: cqhci: SSC2: 0x00000001 | DCMD rsp: 0x00000000
[ 66.679349] mmc0: cqhci: RED mask: 0xfdf9a080 | TERRI: 0x00000000
[ 66.685769] mmc0: cqhci: Resp idx: 0x00000000 | Resp arg: 0x00000000
[ 66.692190] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 66.698611] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00001004
[ 66.705032] mmc0: sdhci: Blk size: 0x00007080 | Blk cnt: 0x00000000
[ 66.711452] mmc0: sdhci: Argument: 0x00010000 | Trn mode: 0x00000010
[ 66.717873] mmc0: sdhci: Present: 0x01ff08f0 | Host ctl: 0x0000003c
[ 66.724295] mmc0: sdhci: Power: 0x0000000b | Blk gap: 0x00000080
[ 66.730715] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
[ 66.737135] mmc0: sdhci: Timeout: 0x0000000e | Int stat: 0x00000000
[ 66.743556] mmc0: sdhci: Int enab: 0x02ff4000 | Sig enab: 0x02ff4000
[ 66.749976] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[ 66.756397] mmc0: sdhci: Caps: 0x7cecc801 | Caps_1: 0x98000407
[ 66.762818] mmc0: sdhci: Cmd: 0x00000d1a | Max curr: 0x00000000
[ 66.769239] mmc0: sdhci: Resp[0]: 0x00000900 | Resp[1]: 0xffc003ff
[ 66.775660] mmc0: sdhci: Resp[2]: 0x328f5903 | Resp[3]: 0x00d07f01
[ 66.782080] mmc0: sdhci: Host ctl2: 0x0000008b
[ 66.786508] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000000000000
[ 66.793621] mmc0: sdhci: ============================================
[ 66.800055] mmc0: running CQE recovery
[ 128.051057] mmc0: cqhci: timeout for tag 5
[ 128.055137] mmc0: cqhci: ============ CQHCI REGISTER DUMP ===========
[ 128.061558] mmc0: cqhci: Caps: 0x000030c8 | Version: 0x00000510
[ 128.067978] mmc0: cqhci: Config: 0x00000101 | Control: 0x00000000
[ 128.074399] mmc0: cqhci: Int stat: 0x00000000 | Int enab: 0x00000006
[ 128.080820] mmc0: cqhci: Int sig: 0x00000006 | Int Coal: 0x00000000
[ 128.087239] mmc0: cqhci: TDL base: 0xc0130000 | TDL up32: 0x00000000
[ 128.093659] mmc0: cqhci: Doorbell: 0x00000020 | TCN: 0x00000000
[ 128.100080] mmc0: cqhci: Dev queue: 0x00000000 | Dev Pend: 0x00000000
[ 128.106500] mmc0: cqhci: Task clr: 0x00000000 | SSC1: 0x00011000
[ 128.112921] mmc0: cqhci: SSC2: 0x00000001 | DCMD rsp: 0x00000000
[ 128.119341] mmc0: cqhci: RED mask: 0xfdf9a080 | TERRI: 0x00000000
[ 128.125762] mmc0: cqhci: Resp idx: 0x0000002d | Resp arg: 0x00000900
[ 128.132182] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 128.138602] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00001004
[ 128.145022] mmc0: sdhci: Blk size: 0x00007080 | Blk cnt: 0x00000000
[ 128.151443] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000010
[ 128.157864] mmc0: sdhci: Present: 0x01ff08f0 | Host ctl: 0x0000003c
[ 128.164285] mmc0: sdhci: Power: 0x0000000b | Blk gap: 0x00000080
[ 128.170705] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
[ 128.177125] mmc0: sdhci: Timeout: 0x0000000e | Int stat: 0x00000000
[ 128.183545] mmc0: sdhci: Int enab: 0x02ff4000 | Sig enab: 0x02ff4000
[ 128.189965] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[ 128.196387] mmc0: sdhci: Caps: 0x7cecc801 | Caps_1: 0x98000407
[ 128.202808] mmc0: sdhci: Cmd: 0x0000153a | Max curr: 0x00000000
[ 128.209229] mmc0: sdhci: Resp[0]: 0x00000900 | Resp[1]: 0xffc003ff
[ 128.215651] mmc0: sdhci: Resp[2]: 0x328f5903 | Resp[3]: 0x00d07f01
[ 128.222070] mmc0: sdhci: Host ctl2: 0x0000008b
[ 128.226498] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000000000000
[ 128.233611] mmc0: sdhci: ============================================
[ 128.240043] mmc0: running CQE recovery
[ 189.491053] mmc0: cqhci: timeout for tag 5
[ 189.495133] mmc0: cqhci: ============ CQHCI REGISTER DUMP ===========
[ 189.501554] mmc0: cqhci: Caps: 0x000030c8 | Version: 0x00000510
[ 189.507974] mmc0: cqhci: Config: 0x00000101 | Control: 0x00000000
[ 189.514394] mmc0: cqhci: Int stat: 0x00000000 | Int enab: 0x00000006
[ 189.520814] mmc0: cqhci: Int sig: 0x00000006 | Int Coal: 0x00000000
[ 189.527235] mmc0: cqhci: TDL base: 0xc0130000 | TDL up32: 0x00000000
[ 189.533654] mmc0: cqhci: Doorbell: 0x00000020 | TCN: 0x00000000
[ 189.540075] mmc0: cqhci: Dev queue: 0x00000000 | Dev Pend: 0x00000000
[ 189.546497] mmc0: cqhci: Task clr: 0x00000000 | SSC1: 0x00011000
[ 189.552917] mmc0: cqhci: SSC2: 0x00000001 | DCMD rsp: 0x00000000
[ 189.559337] mmc0: cqhci: RED mask: 0xfdf9a080 | TERRI: 0x00000000
[ 189.565758] mmc0: cqhci: Resp idx: 0x0000002d | Resp arg: 0x00000900
[ 189.572178] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 189.578598] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00001004
[ 189.585019] mmc0: sdhci: Blk size: 0x00007080 | Blk cnt: 0x00000000
[ 189.591439] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000010
[ 189.597860] mmc0: sdhci: Present: 0x01ff08f0 | Host ctl: 0x0000003c
[ 189.604281] mmc0: sdhci: Power: 0x0000000b | Blk gap: 0x00000080
[ 189.610701] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
[ 189.617121] mmc0: sdhci: Timeout: 0x0000000e | Int stat: 0x00000000
[ 189.623541] mmc0: sdhci: Int enab: 0x02ff4000 | Sig enab: 0x02ff4000
[ 189.629961] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[ 189.636382] mmc0: sdhci: Caps: 0x7cecc801 | Caps_1: 0x98000407
[ 189.642803] mmc0: sdhci: Cmd: 0x0000153a | Max curr: 0x00000000
[ 189.649224] mmc0: sdhci: Resp[0]: 0x00000900 | Resp[1]: 0xffc003ff
[ 189.655645] mmc0: sdhci: Resp[2]: 0x328f5903 | Resp[3]: 0x00d07f01
[ 189.662066] mmc0: sdhci: Host ctl2: 0x0000008b
[ 189.666493] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000000000000
[ 189.673605] mmc0: sdhci: ============================================
[ 189.680038] mmc0: running CQE recovery
[ 189.701082] print_req_error: I/O error, dev mmcblk0, sector 0
[ 189.706817] Buffer I/O error on dev mmcblk0, logical block 0, async page read

  • Hi Felix,

    Are you trying this on TI EVM or custom board?

    SDHCI driver enables hs200 by default if SDR104 is supported (based on the capabilities register of MMC controller), you don't need the property to be added.

    Regards,
    Vishal

  • Yes, it is on TI EVM, and with SDK's default dts&driver, SDHCI driver switch to HS400. We are trying to force HS200 mode on TI EVM, after HS200 is ready, we will port these mod to custom board to test the compatable issues.

    Please help us to force HS200 mode on TI EVM.

    Thanks.

  • Can you try below change to main_sdhci0 dts node and test?

    1) Delete mmc-hs400-1_8v property
    2) Add sdhci-caps-mask = <0x80000000 0x0> property

  • Just tried what you suggest, TI EVM still hangs:

    [   66.611669] mmc0: cqhci: timeout for tag 1

  • Was this behavior with just the changes I mentioned?

  • Yes, same result with your latest suggestion:

    1) Delete mmc-hs400-1_8v property
    2) Add sdhci-caps-mask = <0x80000000 0x0> property

    [ 4.952438] mmc0: Command Queue Engine enabled
    [ 4.956883] mmc0: new HS200 MMC card at address 0001
    [ 4.962581] mmcblk0: mmc0:0001 S0J56X 14.8 GiB
    [ 4.967364] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB
    [ 4.973533] mmcblk0boot1: mmc0:0001 S0J56X partition 2 31.5 MiB
    [ 4.979523] mmcblk0rpmb: mmc0:0001 S0J56X partition 3 4.00 MiB, chardev (242:0)
    [ 5.269332] ti-udma 285c0000.udmap: Channels: 24 (tchan: 48, echan: 0, rchan: 48, rflow: 96)
    [ 5.278923] ti-udma 31150000.udmap: Channels: 84 (tchan: 140, echan: 160, rchan: 140, rflow: 300)
    [ 5.291730] cadence-qspi 47040000.spi: mt35xu512aba (65536 Kbytes)
    [ 5.300100] cadence-qspi 47050000.spi: n25q512a (65536 Kbytes)
    [ 5.307869] am65-cpsw-nuss 46000000.ethernet: rx-flow-id-base is not set -22
    [ 5.314922] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2
    [ 5.332612] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [ 5.343078] pps pps0: new PPS source ptp1
    [ 5.347204] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:1
    [ 5.356147] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 0.4
    [ 5.363352] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [ 5.407666] am65-cpsw-nuss 46000000.ethernet: davinci mdio revision 9.7, bus freq 1000000
    [ 5.415826] libphy: 46000000.ethernet: probed
    [ 5.421424] sdhci-am654 4fb0000.sdhci: Linked as a consumer to regulator.4
    [ 5.428308] sdhci-am654 4fb0000.sdhci: Linked as a consumer to regulator.5
    [ 5.435196] mmc1: Unknown controller version (4). You may experience problems.
    [ 5.442444] mmc1: CQHCI version 5.10
    [ 5.476220] mmc1: SDHCI controller on 4fb0000.sdhci [4fb0000.sdhci] using ADMA 64-bit
    [ 5.493681] input: gpio-keys as /devices/platform/gpio-keys/input/input0
    [ 5.500597] hctosys: unable to open rtc device (rtc0)
    [ 5.527380] ALSA device list:
    [ 5.530341] No soundcards found.
    [ 6.900467] mmc1: new ultra high speed DDR50 SDHC card at address aaaa
    [ 6.907487] mmcblk1: mmc1:aaaa SC16G 14.8 GiB
    [ 6.921791] mmcblk1: p1 p2
    [ 66.611669] mmc0: cqhci: timeout for tag 1
    [ 66.615751] mmc0: cqhci: ============ CQHCI REGISTER DUMP ===========
    [ 66.622172] mmc0: cqhci: Caps: 0x000030c8 | Version: 0x00000510
    [ 66.628592] mmc0: cqhci: Config: 0x00000101 | Control: 0x00000000
    [ 66.635013] mmc0: cqhci: Int stat: 0x00000000 | Int enab: 0x00000006

  • Hi,

    The log shows that emmc enumeration was attempted at HS200 mode

    [ 4.956883] mmc0: new HS200 MMC card at address 0001


    Let me get back to you about the timeouts.

    Regards,
    Vishal

  • Hi,

    Can you try a test with only hs400 property removed? Not adding anything else.

    Regards,
    Vishal

  • My test with only hs400 property removed, nothing else added:

    [ 4.830475] mmc0: Unknown controller version (4). You may experience problems.
    [ 4.837723] mmc0: CQHCI version 5.10
    [ 4.871993] mmc0: SDHCI controller on 4f80000.sdhci [4f80000.sdhci] using ADMA 64-bit
    [ 4.885801] vdd_mmc1: supplied by vsys_3v3
    [ 4.890308] pca953x 4-0020: 4-0020 supply vcc not found, using dummy regulator
    [ 4.897548] pca953x 4-0020: Linked as a consumer to regulator.0
    [ 4.924214] GPIO line 448 (DP0_PWR_SW_EN) hogged as output/high
    [ 4.930737] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100
    [ 4.937624] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100
    [ 4.944528] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100
    [ 4.951440] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100
    [ 4.958312] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100
    [ 4.965208] mmc0: Command Queue Engine enabled
    [ 4.969649] mmc0: new HS200 MMC card at address 0001
    [ 4.975662] mmcblk0: mmc0:0001 S0J56X 14.8 GiB
    [ 4.980436] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB
    [ 4.986598] mmcblk0boot1: mmc0:0001 S0J56X partition 2 31.5 MiB
    [ 4.992582] mmcblk0rpmb: mmc0:0001 S0J56X partition 3 4.00 MiB, chardev (242:0)
    [ 5.301229] ti-udma 285c0000.udmap: Channels: 24 (tchan: 48, echan: 0, rchan: 48, rflow: 96)
    [ 5.310817] ti-udma 31150000.udmap: Channels: 84 (tchan: 140, echan: 160, rchan: 140, rflow: 300)
    [ 5.323614] cadence-qspi 47040000.spi: mt35xu512aba (65536 Kbytes)
    [ 5.331988] cadence-qspi 47050000.spi: n25q512a (65536 Kbytes)
    [ 5.339772] am65-cpsw-nuss 46000000.ethernet: rx-flow-id-base is not set -22
    [ 5.346831] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2
    [ 5.364514] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [ 5.374983] pps pps0: new PPS source ptp1
    [ 5.379105] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:1
    [ 5.388049] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 0.4
    [ 5.395256] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [ 5.439557] am65-cpsw-nuss 46000000.ethernet: davinci mdio revision 9.7, bus freq 1000000
    [ 5.447716] libphy: 46000000.ethernet: probed
    [ 5.453299] sdhci-am654 4fb0000.sdhci: Linked as a consumer to regulator.4
    [ 5.460182] sdhci-am654 4fb0000.sdhci: Linked as a consumer to regulator.5
    [ 5.467070] mmc1: Unknown controller version (4). You may experience problems.
    [ 5.474314] mmc1: CQHCI version 5.10
    [ 5.508110] mmc1: SDHCI controller on 4fb0000.sdhci [4fb0000.sdhci] using ADMA 64-bit
    [ 5.525536] input: gpio-keys as /devices/platform/gpio-keys/input/input0
    [ 5.532455] hctosys: unable to open rtc device (rtc0)
    [ 5.559361] ALSA device list:
    [ 5.562324] No soundcards found.
    [ 6.932367] mmc1: new ultra high speed DDR50 SDHC card at address aaaa
    [ 6.939404] mmcblk1: mmc1:aaaa SC16G 14.8 GiB
    [ 6.953690] mmcblk1: p1 p2
    [ 66.611559] mmc0: cqhci: timeout for tag 8
    [ 66.615641] mmc0: cqhci: ============ CQHCI REGISTER DUMP ===========
    [ 66.622062] mmc0: cqhci: Caps: 0x000030c8 | Version: 0x00000510
    [ 66.628483] mmc0: cqhci: Config: 0x00000101 | Control: 0x00000000
    [ 66.634903] mmc0: cqhci: Int stat: 0x00000000 | Int enab: 0x00000006
    [ 66.641323] mmc0: cqhci: Int sig: 0x00000006 | Int Coal: 0x00000000
    [ 66.647744] mmc0: cqhci: TDL base: 0xc0130000 | TDL up32: 0x00000000
    [ 66.654164] mmc0: cqhci: Doorbell: 0x00000100 | TCN: 0x00000000
    [ 66.660585] mmc0: cqhci: Dev queue: 0x00000000 | Dev Pend: 0x00000000
    [ 66.667006] mmc0: cqhci: Task clr: 0x00000000 | SSC1: 0x00011000
    [ 66.673427] mmc0: cqhci: SSC2: 0x00000001 | DCMD rsp: 0x00000000
    [ 66.679847] mmc0: cqhci: RED mask: 0xfdf9a080 | TERRI: 0x00000000
    [ 66.686267] mmc0: cqhci: Resp idx: 0x00000000 | Resp arg: 0x00000000
    [ 66.692688] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
    [ 66.699110] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00001004
    [ 66.705530] mmc0: sdhci: Blk size: 0x00007080 | Blk cnt: 0x00000000
    [ 66.711950] mmc0: sdhci: Argument: 0x00010000 | Trn mode: 0x00000010
    [ 66.718371] mmc0: sdhci: Present: 0x01ff08f0 | Host ctl: 0x0000003c
    [ 66.724792] mmc0: sdhci: Power: 0x0000000b | Blk gap: 0x00000080
    [ 66.731213] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
    [ 66.737635] mmc0: sdhci: Timeout: 0x0000000e | Int stat: 0x00000000
    [ 66.744056] mmc0: sdhci: Int enab: 0x02ff4000 | Sig enab: 0x02ff4000
    [ 66.750476] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
    [ 66.756897] mmc0: sdhci: Caps: 0x7cecc801 | Caps_1: 0x98000407
    [ 66.763317] mmc0: sdhci: Cmd: 0x00000d1a | Max curr: 0x00000000
    [ 66.769737] mmc0: sdhci: Resp[0]: 0x00000900 | Resp[1]: 0xffc003ff
    [ 66.776157] mmc0: sdhci: Resp[2]: 0x328f5903 | Resp[3]: 0x00d07f01
    [ 66.782577] mmc0: sdhci: Host ctl2: 0x0000008b
    [ 66.787004] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000000000000
    [ 66.794117] mmc0: sdhci: ============================================
    [ 66.800549] mmc0: running CQE recovery

  • Hi,

    Could you try this patch and test?
    https://patchwork.kernel.org/patch/11323783/

    Regards,
    Vishal

  • After applied the patch, HS200 is working well now, thanks.