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.

Linux/AM5716: SDR104 card fails at 192MHz

Part Number: AM5716
Other Parts Discussed in Thread: AM5718, TMP102, PMP

Tool/software: Linux

Dear Team,

We have a custom board based on AM5716 CPU. We have Mux(TS3A27518EPWR) & a Booster (NVT4857UKAZ) between MMC1 & UHS card. ATP uSD card is capable of SDR104, verified on EVM/IDK.

Mux supports upto 240MHz & Booster upto 208MHz.

on Custom board we have verified UHS mode, it is working fine only at 96MHz.

With 128MHz & 196MHz of clock, MMC1 is failing with the following error. Kernel log

[    2.275768] 1.8V
[    2.277614] MMC0: Switch enabled - 1
[    2.293224] MMC0 Clkdiv = 480
[    2.304256] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.312907] MMC0 Clkdiv = 480
[    2.316877] MMC0 Clkdiv = 480
[    2.319897] MMC0 Clkdiv = 1
[    2.389831] mmc0: new ultra high speed SDR104 SDXC card at address 59b4
[    2.406972] mmcblk0: mmc0:59b4 AF SD 56.3 GiB
[    2.412600]  mmcblk0: p1 p2
[    2.456876] mmc1: MAN_BKOPS_EN bit is not set
[    2.464619] mmc1: new DDR MMC card at address 0001
[    2.479903] mmcblk1: mmc1:0001 Q2J54A 3.64 GiB
[    2.494740] mmcblk1boot0: mmc1:0001 Q2J54A partition 1 2.00 MiB
[    2.510939] mmcblk1boot1: mmc1:0001 Q2J54A partition 2 2.00 MiB
[    2.517920]  mmcblk1: p1 p2
[    2.657106] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.665300] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.675095] devtmpfs: mounted
[    2.678281] Freeing unused kernel memory: 336K (c08d6000 - c092a000)
[    2.684680] This architecture does not have kernel memory protection.
[    2.696957] omap_hsmmc 4809c000.mmc: ADMA err: ST_TFR, desc at 0xbe460098 follows the erroneous one
[    2.733340] mmcblk0: retrying because a re-tune was needed
[    2.775851] omap_hsmmc 4809c000.mmc: ADMA err: ST_TFR, desc at 0xbe460098 follows the erroneous one
[    2.784999] mmcblk0: error -84 transferring data, sector 42993944, nr 240, cmd response 0x900, card status 0xb00
[    2.795249] MMC0 Clkdiv = 0
[    2.800911] MMC0 Clkdiv = 0
[    2.803961] 3.3 or 3V
[    2.806243] MMC0: Switch enabled - 0
[    2.823228] MMC0 Clkdiv = 480
[    2.843224] MMC0 Clkdiv = 480
[    2.848378] MMC0 Clkdiv = 480
[    2.876880] MMC0 Clkdiv = 480
[    2.879875] MMC0 Clkdiv = 4
[    2.882724] MMC0 Clkdiv = 4
[    2.885543] mmc0: tried to reset card
[    3.137757] systemd[1]: System time before build time, advancing clock.

CPU <-> MUX <-> Booster <-> UHS Card

Attached the clock captured at different stages and for different frequencies. in Case of 96MHz there is exact 180 phase shift, in other case there is difference.

I understand there is tuning done by omap_hsmmc driver, still this is failing, what could be the possible reason, waiting for your inputs.

Thanks,

Vamshi G.

  • I'll have to check with a hardware apps person to see if this could be hardware related. I verified what you said, SDR104 works on the GP EVM.

    Steve K.

  • 0001-mmc-omap_hsmmc-debug-print-controller-regs-and-card-.patch.gzCan you confirm your mmc driver has accounted for the issue described in Advisory i929 and implemented the new tuning procedure defined in TI literature number SPRACA9.  Also can you apply the attached patch which dumps some registers? It is not a gzipped file so just rename without the .gz.

    Steve K.

  • Hi Steve,

    Thanks for your inputs & response.

    I understand omap_hsmmc.c driver has the tuning algorithm implemented. I have applied the patch provided. Please find the kernel log

    Also tried setting the phase_delay in steps of 1, instead of 4 in iteration to find the windows, still no luck.

    Please let me know what further can be done to resolve this issue. Waiting for your inputs

    mmc1_192MHz_tunning_phdelay+4_log1.txt

  • Hi,

    Can you tell me which SDK you are using?

    Steve K.

  • Hi,
    The reason I am asking about which SDK you are using is because the correct tuning algorithm is in the latest SDK 4.3. Earlier versions of the SDK do not implement the algorithm in SPRACA9A correctly.

    Steve K.
  • Hi Steve,

    I am using 3_03 version of SDK, I have downloaded the latest SDK 4.3, and integrated the only changes related to omap_hsmmc.c driver which is now using thermal zone information in the tuning procedure, it did not help me. any suggestions please.

  • Can you attach your omap_hsmmc.c driver so I could take a look at it? Thank you.

    Steve K.
  • I was just told by the software team you really should use the latest SDK or the 2017.06 tag at git.ti.com. By cherry-picking the changes you might miss one or two.

    Steve K.
  • Hi Steve,

    I have migrated my board changes to latest SDK you suggested, where we believed tuning algorithm is better.

    Below is the block diagram, components used supports SDR104 @ 204MHz

    As per my board & application requirement, SD/MMC controller ios are always maintained at 1.8V where as at the card voltages are at 3.3V (We have Booster in picture)

    Kernel boots from eMMC, and identify MMC1 in HS  mode only. (Fix we used in kernel)

    I will switch to UHS mode @128MHz after boot to shell. I have added extra piece of code into mmc subsystem to do this.

    Here I am trying to verify UHS mode @ 128MHz on MMC1. I am seeing data CRC errors during reads UHS mode after switching to 128MHz.

    Please refer to by kernel log below

    Starting kernel ...

    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.9.69+ (vamshig@vamshig) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #19 SMP PREEMPT Wed Jun 27 17:43:00 IST 2018
    [    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
    [    0.000000] CPU: div instructions available: patching division code
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [    0.000000] OF: fdt:Machine model: TI AM5718 IDK
    [    0.000000] Reserved memory: created CMA memory pool at 0x0000000095800000, size 56 MiB
    [    0.000000] OF: reserved mem: initialized node ipu2_cma@95800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 64 MiB
    [    0.000000] OF: reserved mem: initialized node dsp1_cma@99000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x000000009d000000, size 32 MiB
    [    0.000000] OF: reserved mem: initialized node ipu1_cma@9d000000, compatible id shared-dma-pool
    [    0.000000] cma: Reserved 24 MiB at 0x00000000be400000
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] OMAP4: Map 0x00000000bfd00000 to fe600000 for dram barrier
    [    0.000000] DRA722 ES2.0
    [    0.000000] percpu: Embedded 13 pages/cpu @ef648000 s21964 r8192 d23092 u53248
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 210496
    [    0.000000] Kernel command line: console=ttyO2,115200n8 root=PARTUUID=43c0b3ee-02 rw rootfstype=ext4 rootwait
    [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 644552K/848896K available (8192K kernel code, 360K rwdata, 2484K rodata, 2048K init, 295K bss, 24120K reserved, 180224K cma-reserved, 234496K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0a00000   (10208 kB)
    [    0.000000]       .init : 0xc0e00000 - 0xc1000000   (2048 kB)
    [    0.000000]       .data : 0xc1000000 - 0xc105a0c8   ( 361 kB)
    [    0.000000]        .bss : 0xc105c000 - 0xc10a5de8   ( 296 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]     Build-time adjustment of leaf fanout to 32.
    [    0.000000]     RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
    [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] OMAP clockevent source: timer1 at 32786 Hz
    [    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 6.14MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
    [    0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
    [    0.000016] Switching to timer-based delay loop, resolution 162ns
    [    0.000322] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [    0.000330] OMAP clocksource: 32k_counter at 32768 Hz
    [    0.000718] Console: colour dummy device 80x30
    [    0.000734] WARNING: Your 'console=ttyO2' has been replaced by 'ttyS2'
    [    0.000740] This ensures that you still see kernel messages. Please
    [    0.000746] update your kernel commandline.
    [    0.000761] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
    [    0.000773] pid_max: default: 32768 minimum: 301
    [    0.000876] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000886] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001503] CPU: Testing write buffer coherency: ok
    [    0.001717] /cpus/cpu@0 missing clock-frequency property
    [    0.001729] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.001744] Setting up static identity map for 0x80200000 - 0x80200060
    [    0.099935] Brought up 1 CPUs
    [    0.099945] SMP: Total of 1 processors activated (12.29 BogoMIPS).
    [    0.099952] CPU: All CPU(s) started in HYP mode.
    [    0.099958] CPU: Virtualization extensions available.
    [    0.100348] devtmpfs: initialized
    [    0.130090] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [    0.130334] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.130351] futex hash table entries: 256 (order: 2, 16384 bytes)
    [    0.133641] pinctrl core: initialized pinctrl subsystem
    [    0.134478] NET: Registered protocol family 16
    [    0.135363] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.136356] omap_hwmod: l3_main_2 using broken dt data from ocp
    [    0.269375] omap_hwmod: gpu: _wait_target_ready failed: -16
    [    0.269389] omap_hwmod: gpu: cannot be enabled for reset (3)
    [    0.360291] cpuidle: using governor ladder
    [    0.390313] cpuidle: using governor menu
    [    0.400115] OMAP GPIO hardware version 0.1
    [    0.415493] irq: no irq domain found for /ocp/l4@4a000000/scm@2000/pinmux@1400 !
    [    0.438251] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.438263] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.438645] omap4_sram_init:Unable to allocate sram needed to handle errata I688
    [    0.438655] omap4_sram_init:Unable to get sram pool needed to handle errata I688
    [    0.439209] OMAP DMA hardware revision 0.0
    [    0.520960] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
    [    0.522080] edma 43300000.edma: memcpy is disabled
    [    0.526780] edma 43300000.edma: TI EDMA DMA engine driver
    [    0.530463] omap-iommu 40d01000.mmu: 40d01000.mmu registered
    [    0.530706] omap-iommu 40d02000.mmu: 40d02000.mmu registered
    [    0.530872] omap-iommu 58882000.mmu: 58882000.mmu registered
    [    0.531029] omap-iommu 55082000.mmu: 55082000.mmu registered
    [    0.533598] palmas 0-0058: Irq flag is 0x00000004
    [    0.562400] palmas 0-0058: Muxing GPIO 2f, PWM 0, LED 0
    [    0.565529] SMPS3: supplied by VMAIN
    [    0.568748] SMPS6: supplied by VMAIN
    [    0.570444] SMPS7: supplied by VMAIN
    [    0.572303] SMPS8: supplied by VMAIN
    [    0.573605] SMPS9: supplied by VMAIN
    [    0.574520] V3_3D: supplied by smps9
    [    0.574747] vtt_fixed: supplied by V3_3D
    [    0.574856] LDO1: supplied by VMAIN
    [    0.581467] LDO2: supplied by VMAIN
    [    0.581518] random: fast init done
    [    0.591338] LDO3: supplied by VMAIN
    [    0.601355] LDO4: supplied by VMAIN
    [    0.613426] LDO9: supplied by VMAIN
    [    0.621743] LDOLN: supplied by VMAIN
    [    0.631457] LDOUSB: supplied by VMAIN
    [    0.644502] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
    [    0.644682] media: Linux media interface: v0.10
    [    0.644730] Linux video capture interface: v2.00
    [    0.644766] pps_core: LinuxPPS API ver. 1 registered
    [    0.644774] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.644793] PTP clock support registered
    [    0.644824] EDAC MC: Ver: 3.0.0
    [    0.651385] omap-mailbox 4883c000.mailbox: omap mailbox rev 0x400
    [    0.651694] omap-mailbox 4883e000.mailbox: omap mailbox rev 0x400
    [    0.651983] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
    [    0.652181] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
    [    0.652503] Advanced Linux Sound Architecture Driver Initialized.
    [    0.660978] clocksource: Switched to clocksource arch_sys_counter
    [    0.670717] NET: Registered protocol family 2
    [    0.671297] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.671361] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.671486] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.671538] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    0.671569] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    0.671697] NET: Registered protocol family 1
    [    0.692119] RPC: Registered named UNIX socket transport module.
    [    0.692128] RPC: Registered udp transport module.
    [    0.692135] RPC: Registered tcp transport module.
    [    0.692142] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.693081] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [    0.705753] workingset: timestamp_bits=14 max_order=18 bucket_order=4
    [    0.713332] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.724066] NFS: Registering the id_resolver key type
    [    0.724097] Key type id_resolver registered
    [    0.724105] Key type id_legacy registered
    [    0.724145] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.726331] bounce: pool size: 64 pages
    [    0.726492] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
    [    0.726502] io scheduler noop registered
    [    0.726510] io scheduler deadline registered
    [    0.726637] io scheduler cfq registered (default)
    [    0.732062] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
    [    0.732132] pinctrl-single 4a002e8c.pinmux: please update dts to use #pinctrl-cells = <1>
    [    0.732211] pinctrl-single 4a002e8c.pinmux: initialized with no interrupts
    [    0.732223] pinctrl-single 4a002e8c.pinmux: 1 pins at pa fc002e8c size 4
    [    0.790565] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.793933] 4806c000.serial: ttyS1 at MMIO 0x4806c000 (irq = 299, base_baud = 3000000) is a 8250
    [    0.794930] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 300, base_baud = 3000000) is a 8250
    [    1.677804] console [ttyS2] enabled
    [    1.682239] 48066000.serial: ttyS4 at MMIO 0x48066000 (irq = 301, base_baud = 3000000) is a 8250
    [    1.691990] 48068000.serial: ttyS5 at MMIO 0x48068000 (irq = 302, base_baud = 3000000) is a 8250
    [    1.701925] [drm] Initialized
    [    1.791805] loop: module loaded
    [    1.795370] Inside ricp_ctrl_probe
    [    1.803268] libphy: Fixed MDIO Bus: probed
    [    1.861016] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
    [    1.867141] davinci_mdio 48485000.mdio: detected phy mask fffffffe
    [    1.885676] libphy: 48485000.mdio: probed
    [    1.889708] davinci_mdio 48485000.mdio: phy[0]: device 48485000.mdio:00, driver Micrel KSZ9031 Gigabit PHY
    [    1.900116] cpsw 48484000.ethernet: Detected MACID = 98:5d:ad:98:5e:be
    [    1.906789] cpsw 48484000.ethernet: device node lookup for pps timer failed
    [    1.913877] cpsw 48484000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.922104] cpsw 48484000.ethernet: cpsw: Detected MACID = 98:5d:ad:98:5e:bf
    [    1.930621] mousedev: PS/2 mouse device common for all mice
    [    1.936580] i2c /dev entries driver
    [    1.942050] tmp102 0-0048: initialized
    [    1.950782] 51: MMC-0
    [    1.953146] 51: Gpio set to out-low
    [    1.956736] MMC0: Voltage select set
    [    1.960362] MMC0: F_MAX = 128000000
    [    1.965631] MMC0 Clkdiv = 0
    [    1.968439] Forcing MMC0 ios voltage to 1.8
    [    2.000996] MMC0 Clkdiv = 320
    [    2.041011] 51: MMC0 f_max = 128000000
    [    2.045202] 51: MMC-1
    [    2.047516] MMC1: F_MAX = 96000000
    [    2.061087] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr25 mode
    [    2.067470] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr12 mode
    [    2.141014] 51: MMC1 f_max = 96000000
    [    2.145028] 51: MMC-2
    [    2.147340] MMC2: F_MAX = 64000000
    [    2.161244] Forcing MMC2 ios voltage to 1.8
    [    2.221017] 51: MMC2 f_max = 64000000
    [    2.230992] ledtrig-cpu: registered to indicate activity on CPUs
    [    2.242510] NET: Registered protocol family 10
    [    2.271581] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    2.278108] NET: Registered protocol family 17
    [    2.301196] Key type dns_resolver registered
    [    2.305604] omap_voltage_late_init: Voltage driver support not added
    [    2.321093] Power Management for TI OMAP4+ devices.
    [    2.326233] Registering SWP/SWPB emulation handler
    [    2.362163] dmm 4e000000.dmm: workaround for errata i878 in use
    [    2.370314] MMC0 Clkdiv = 320
    [    2.376568] dmm 4e000000.dmm: initialized all PAT entries
    [    2.383224] MMC0 Clkdiv = 320
    [    2.391538] MMC0 Clkdiv = 320
    [    2.397555] MMC0 Clkdiv = 320
    [    2.402153] hctosys: unable to open rtc device (rtc0)
    [    2.408189] ALSA device list:
    [    2.411259]   No soundcards found.
    [    2.416529] Waiting for root device PARTUUID=43c0b3ee-02...
    [    2.439134] mmc1: new DDR MMC card at address 0001
    [    2.454555] mmcblk1: mmc1:0001 Q2J54A 3.64 GiB
    [    2.469384] mmcblk1boot0: mmc1:0001 Q2J54A partition 1 2.00 MiB
    [    2.485625] mmcblk1boot1: mmc1:0001 Q2J54A partition 2 2.00 MiB
    [    2.492696]  mmcblk1: p1 p2
    [    2.706030] EXT4-fs (mmcblk1p2): recovery complete
    [    2.710855] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
    [    2.719051] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    2.725900] devtmpfs: mounted
    [    2.730171] Freeing unused kernel memory: 2048K
    [    2.831250] systemd[1]: System time before build time, advancing clock.
    [    2.850374] systemd[1]: systemd 232 running in system mode. (-PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
    [    2.868929] systemd[1]: Detected architecture arm.

    Welcome to Buildroot 2017.02.8!

    [    2.901423] systemd[1]: Set hostname to <ricp-master>.
    [    2.969549] systemd-fstab-generator[68]: Ignoring "noauto" for root device
    [    3.028073] mmc0: host does not support reading read-only switch, assuming write-enable
    [    3.038185] MMC0 Clkdiv = 320
    [    3.043258] MMC0 Clkdiv = 320
    [    3.046767] MMC0 Clkdiv = 3
    [    3.050303] mmc0: new ultra high speed SDR25 SDXC card at address 59b4
    [    3.068801] mmcblk0: mmc0:59b4 AF SD 121 GiB
    [    3.076535]  mmcblk0: p1 p2
    [    3.120528] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    3.168655] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [    3.211335] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    3.251269] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    3.281128] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    3.311186] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    3.341216] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [  OK  ] Created slice System Slice.
             Starting Remount Root and Kernel File Systems...
             Mounting POSIX Message Queue File System...
    [    3.439240] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
    [  OK  ] Created slice system-serial\x2dgetty.slice.
             Starting Create Static Device Nodes in /dev...
             Starting Apply Kernel Variables...
    [  OK  ] Reached target Slices.
    [  OK  ] Reached target Swap.
             Mounting Debug File System...
             Starting Journal Service...
    [    3.667667] systemd-journald[89]: File /var/log/journal/5848852db55340c1bc45e11c9fd31106/system.journal corrupted or uncleanly shut down, renaming and replacing.
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Reached target Paths.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Debug File System.
    [  OK  ] Started Journal Service.
    [  OK  ] Started Remount Root and Kernel File Systems.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [  OK  ] Started Apply Kernel Variables.
             Starting udev Kernel Device Manager...
             Starting udev Coldplug all Devices...
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /tmp...
             Starting Flush Journal to Persistent Storage...
    [  OK  ] Mounted /tmp.
    [  OK  ] Started udev Kernel Device Manager.
    [    4.191909] systemd-journald[89]: Received request to flush runtime journal from PID 1
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Update UTMP about System Boot/Shutdown...
             Starting Network Time Synchronization...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [    4.557342] systemd-journald[89]: Failed to create new system journal: No such file or directory
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Synchronized.
    [    4.927490] omap-rproc 58820000.ipu: assigned reserved memory node ipu1_cma@9d000000
    [    4.981875] remoteproc remoteproc0: 58820000.ipu is available
    [  OK  ] Found device /dev/ttyS2.
    [    5.054542] omap-rproc 55020000.ipu: assigned reserved memory node ipu2_cma@95800000
    [    5.077708] remoteproc remoteproc0: powering up 58820000.ipu
    [    5.077720] remoteproc remoteproc0: Booting fw image dra7-ipu1-fw.xem4, size 4890352
    [    5.077826] omap-iommu 58882000.mmu: 58882000.mmu: version 2.1
    [    5.107410] remoteproc remoteproc0: registered virtio0 (type 7)
    [    5.107416] remoteproc remoteproc0: remote processor 58820000.ipu is now up
    [    5.191849] palmas-rtc 48070000.i2c:tps659038@58:tps659038_rtc: rtc core: registered 48070000.i2c:tps659 as rtc0
    [  OK  ] Started udev Coldplug all Devices.
    [    5.415796] remoteproc remoteproc1: 55020000.ipu is available
    [    5.472765] omap_rng 48090000.rng: OMAP Random Number Generator ver. 20
    [    5.487690] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
    [    5.516017] omap-des 480a5000.des: will run requests pump with realtime priority
    [  OK  ] Reached target System Initialization.
    [    5.547041] remoteproc remoteproc1: powering up 55020000.ipu
    [    5.561979] remoteproc remoteproc1: Booting fw image dra7-ipu2-fw.xem4, size 3743116
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [    5.588696] omap_rtc 48838000.rtc: rtc core: registered 48838000.rtc as rtc1
    [  OK  ] Listening on D-Bus System Message Bus Socket.[    5.605417] omap-iommu 55082000.mmu: 55082000.mmu: version 2.1

    [  OK  ] Reached target Sockets.
    [    5.623542] vip 48970000.vip: loading firmware vpdma-1b8.bin
    [    5.629787] vpe 489d0000.vpe: loading firmware vpdma-1b8.bin
    [  OK  ] Reached target Basic System.
    [    5.647840] omap-rproc 40800000.dsp: assigned reserved memory node dsp1_cma@99000000
    [  OK  ] Reached target Containers.
    [    5.684810] remoteproc remoteproc2: 40800000.dsp is available
    [  OK  ] Started Serial Getty on ttyS2.
    [  OK  ] Started D-Bus System Message Bus.
    [    5.820779] SCSI subsystem initialized
    [    5.861087] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    5.873855] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
    [    5.881872] omap-aes 4b500000.aes: will run requests pump with realtime priority
             Starting Network Service...
    [  OK  ] Started Daily Cleanup of Temporary Directorie[    6.056777] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
    s.
    [  OK  ] Reached target Timers.
    [    6.105394] omap-aes 4b700000.aes: will run requests pump with realtime priority
    [    6.160033] remoteproc remoteproc1: registered virtio1 (type 7)
    [    6.160040] remoteproc remoteproc1: remote processor 55020000.ipu is now up
    [    6.221247] vip 48970000.vip: VPDMA firmware loaded
    [    6.221328] vpe 489d0000.vpe: Device registered as /dev/video0
    [    6.300318] net eth0: initializing cpsw version 1.15 (0)
    [    6.300327] cpsw 48484000.ethernet: initialized cpsw ale version 1.4
    [    6.300332] cpsw 48484000.ethernet: ALE Table size 1024
    [  OK  ] Started Network Service.
    [    6.467228] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3
    [    6.532706] Micrel KSZ9031 Gigabit PHY 48485000.mdio:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:00, irq=-1)
    [    6.567526] cpts ptp bc clkid 0
    [    6.586257] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [    6.608962] remoteproc remoteproc2: powering up 40800000.dsp
    [    6.608976] remoteproc remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 21914156
    [    6.616223] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
    [    6.616265] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
    [    6.616378] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
    [    6.727911] remoteproc remoteproc2: registered virtio2 (type 7)
    [    6.727918] remoteproc remoteproc2: remote processor 40800000.dsp is now up
    [    6.819395] virtio_rpmsg_bus virtio0: rpmsg host is online
    [    6.820760] virtio_rpmsg_bus virtio0: creating channel rpmsg-client-sample addr 0x32
    [    6.820930] virtio_rpmsg_bus virtio0: creating channel rpmsg-client-sample addr 0x33
    [    6.821251] virtio_rpmsg_bus virtio0: creating channel rpmsg-omx addr 0x3c
    [    6.821408] virtio_rpmsg_bus virtio0: creating channel rpmsg-rpc addr 0x65
    [    6.828426] virtio_rpmsg_bus virtio1: rpmsg host is online
    [    6.829803] virtio_rpmsg_bus virtio2: rpmsg host is online
    [    6.829882] virtio_rpmsg_bus virtio2: creating channel rpmsg-proto addr 0x3d
    [    6.831835] virtio_rpmsg_bus virtio1: creating channel rpmsg-rpc addr 0x65
    [    6.832546] virtio_rpmsg_bus virtio1: creating channel rpmsg-rpc addr 0x66
    [    7.166961] NET: Registered protocol family 43
    [    7.172210] rpmsg_rpc virtio0.rpmsg-rpc.-1.101: probing service rpc_example_2 with src 1024 dst 101
    [    7.172484] rpmsg_rpc virtio1.rpmsg-rpc.-1.101: probing service dce-callback with src 1024 dst 101
    [    7.172835] rpmsg_rpc virtio1.rpmsg-rpc.-1.102: probing service rpmsg-dce with src 1025 dst 102
    [    7.172981] rpmsg_rpc virtio0.rpmsg-rpc.-1.101: published functions = 8
    [    7.173253] rpmsg_rpc virtio1.rpmsg-rpc.-1.101: published functions = 4
    [    7.173559] rpmsg_rpc virtio1.rpmsg-rpc.-1.102: published functions = 9
    [    7.208375] usbcore: registered new interface driver usbfs
    [    7.208972] usbcore: registered new interface driver hub
    [    7.209579] usbcore: registered new device driver usb
    [    7.243737] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [    7.243763] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    [    7.244808] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x02010010
    [    7.244863] xhci-hcd xhci-hcd.0.auto: irq 434, io mem 0x48890000
    [    7.246238] hub 1-0:1.0: USB hub found
    [    7.246274] hub 1-0:1.0: 1 port detected
    [    7.246660] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [    7.246674] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    [    7.246758] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [    7.256837] hub 2-0:1.0: USB hub found
    [    7.256878] hub 2-0:1.0: 1 port detected
    [  OK  ] Reached target Network.
             Starting Dropbear SSH daemon...
             Starting Network Name Resolution...
    [  OK  ] Started Dropbear SSH daemon.
    [    7.523717] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled
    [    7.530478] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    [    7.559207] ahci 4a140000.sata: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part ccc apst
    [    7.611045] usb 1-1: new high-speed USB device number 2 using xhci-hcd
    [  OK  ] Started Network Name Resolution.
    [    7.628862] scsi host0: ahci
    [    7.632628] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 344
    [    7.791162] hub 1-1:1.0: USB hub found
    [    7.802151] hub 1-1:1.0: 4 ports detected
    [    7.921521] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
    [    7.967020] hub 2-1:1.0: USB hub found
    [    7.975982] hub 2-1:1.0: 4 ports detected
    [    7.986183] ata1: SATA link down (SStatus 0 SControl 300)
    [    9.689614] cpsw 48484000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [    9.697723] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

    Welcome to RICPTester-Master
    ricp-master login: root
    Password:
    # cat /sys/kernel/debug/mmc*/ios | grep "clock" (Initially it is in HS mode)
    clock:        50000000 Hz
    clock:        52000000 Hz
    clock:        0 Hz
    # echo 0 > /sys/devices/platform/44000000.ocp/4809c000.mmc/omap_sw/init_uhs (Switching to UHS mode)
    [   24.051533] MMC0 Clkdiv = 320
    [   24.057528] Inside ricp_early_init
    [   24.061963] MMC0: Resp-0 = 0x1aa
    [   24.721639] MMC0: OCR = 0xc1ff8000
    [   24.725376] MMC0: Voltage switch accepted, clk = 400000
    [   24.732696] omap_hsmmc 4809c000.mmc: card busy
    [   24.737165] MMC0 Clkdiv = 0
    [   24.745207] Changing MMC0 Booster voltage to 1.8
    [   24.780992] MMC0 Clkdiv = 320
    [   24.786043] omap_hsmmc 4809c000.mmc: card busy
    [   24.791715] MMC0: CID = 0x9415041 0x46205344 0x2003338 0x910126f5
    [   24.798149] MMC0: New RCA = 0x59b4 Old RCA = 0x59b4
    [   24.821526] MMC0 Clkdiv = 1
    [   24.824333] MMC0 calling mmc_execute_tuning
    [   24.837813] MMC0: start_win = 0x44 max_win = 0x44 phase_delay = 0x64

    # cat /sys/kernel/debug/mmc0/ios
    clock:        128000000 Hz ( I have probed and verified the clock)
    vdd:        21 (3.3 ~ 3.4 V)
    bus mode:    2 (push-pull)
    chip select:    0 (don't care)
    power mode:    2 (on)
    bus width:    2 (4 bits)
    timing spec:    6 (sd uhs SDR104)
    signal voltage:    1 (1.80 V)
    driver type:    0 (driver type B)

    # dd if=/dev/zero of=/dev/mmcblk0 bs=64M count=1 (Writes are okay)
    1+0 records in
    1+0 records out
    67108864 bytes (64.0MB) copied, 3.625952 seconds, 17.7MB/s


    # dd if=/dev/mmcblk0 of=/dev/null bs=64M count=1 (Error in read)
    [  212.929547] omap_hsmmc 4809c000.mmc: ADMA err: ST_TFR, desc at 0xbe440008 follows the erroneous one
    [  212.976034] MMC0: start_win = 0x44 max_win = 0x44 phase_delay = 0x60
    [  212.983259] omap_hsmmc 4809c000.mmc: ADMA err: ST_TFR, desc at 0xbe440008 follows the erroneous one
    [  212.993270] mmcblk0: error -84 transferring data, sector 4096, nr 256, cmd response 0x900, card status 0xb0

    How can we resolve the Data CRC errors in case of reads, awaiting for your response

    Thanks,

    Vamshi G.

  • Can you add the patch posted earlier that added more debug?

    Steve K.
  • Hi Steve,

    Below is the log with patch applied

    # cat /sys/kernel/debug/mmc*/ios | grep "clock" (in HS mode initially)
    clock:        50000000 Hz
    clock:        52000000 Hz
    clock:        0 Hz
    # echo 0 > /sys/devices/platform/44000000.ocp/4809c000.mmc/omap_sw/init_uhs (Switching to UHS @128Mhz)
    [   25.355501] MMC0 Clkdiv = 320
    [   25.358512] MMC0 Clkdiv = 320
    [   25.362028] Inside ricp_early_init
    [   25.365918] MMC0: Resp-0 = 0x1aa
    [   25.751599] MMC0: OCR = 0xc1ff8000
    [   25.755334] MMC0: Voltage switch accepted, clk = 400000
    [   25.762654] omap_hsmmc 4809c000.mmc: card busy
    [   25.767124] MMC0 Clkdiv = 0
    [   25.769930] Forcing MMC0 ios voltage to 1.8
    [   25.775101] Changing MMC0 Booster voltage to 1.8
    [   25.779738] MMC0 1.8V
    [   25.782389] MMC0: Switch enabled - 1
    [   25.810990] MMC0 Clkdiv = 320
    [   25.816041] omap_hsmmc 4809c000.mmc: card busy
    [   25.821712] MMC0: CID = 0x9415041 0x46205344 0x2003338 0x9801267f
    [   25.828143] MMC0: New RCA = 0x59b4 Old RCA = 0x59b4
    [   25.833729] MMC0 scr.bus_wd = 5
    [   25.836883] MMC0 sd3.bus_mode = 3
    [   25.840816] MMC0 Clkdiv = 320
    [   25.844302] MMC0 timing = 6
    [   25.848130] MMC0 Clkdiv = 320
    [   25.851561] MMC0 Clkdiv = 1
    [   25.854368] MMC0 calling mmc_execute_tuning
    [   25.858936] Card status in response 900
    [   25.863328] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   25.870493] STAT:        0x00000000
    [   25.874259] CON:        0x00110600
    [   25.877151] HCTL:        0x00000b12
    [   25.880129] SYSCTL:        0x000c0047
    [   25.883821] IE:        0x00000000
    [   25.886626] ISE:        0x00000000
    [   25.889517] CAPA:        0x25e90080
    [   25.893027] DLL:        0x00101001
    [   25.895919] AC12:        0x008b0000
    [   25.898896] PSTATE:        0x00000000
    [   25.902595] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   25.908615] Card status in response 900
    [   25.913210] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   25.920377] STAT:        0x00000000
    [   25.924085] CON:        0x00110600
    [   25.926978] HCTL:        0x00000b12
    [   25.929955] SYSCTL:        0x000c0047
    [   25.933639] IE:        0x00000000
    [   25.936444] ISE:        0x00000000
    [   25.942134] CAPA:        0x25e90080
    [   25.945117] DLL:        0x00109001
    [   25.948007] AC12:        0x008b0000
    [   25.951521] PSTATE:        0x00000000
    [   25.954678] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   25.960591] Card status in response 900
    [   25.965455] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   25.973226] STAT:        0x00000000
    [   25.976206] CON:        0x00110600
    [   25.979097] HCTL:        0x00000b12
    [   25.982609] SYSCTL:        0x000c0047
    [   25.985762] IE:        0x00000000
    [   25.988564] ISE:        0x00000000
    [   25.991990] CAPA:        0x25e90080
    [   25.994970] DLL:        0x00111001
    [   25.997860] AC12:        0x008b0000
    [   26.000836] PSTATE:        0x00000000
    [   26.004667] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.010574] Card status in response 900
    [   26.015227] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.022992] STAT:        0x00000000
    [   26.025972] CON:        0x00110600
    [   26.028862] HCTL:        0x00000b12
    [   26.032371] SYSCTL:        0x000c0047
    [   26.035525] IE:        0x00000000
    [   26.038327] ISE:        0x00000000
    [   26.041748] CAPA:        0x25e90080
    [   26.044727] DLL:        0x00119001
    [   26.047617] AC12:        0x008b0000
    [   26.050594] PSTATE:        0x00000000
    [   26.054425] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.060331] Card status in response 900
    [   26.064933] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.072681] STAT:        0x00000000
    [   26.075660] CON:        0x00110600
    [   26.078552] HCTL:        0x00000b12
    [   26.082117] SYSCTL:        0x000c0047
    [   26.085272] IE:        0x00000000
    [   26.088075] ISE:        0x00000000
    [   26.091500] CAPA:        0x25e90080
    [   26.094480] DLL:        0x00121001
    [   26.097370] AC12:        0x008b0000
    [   26.100346] PSTATE:        0x00000000
    [   26.104193] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.110099] Card status in response 900
    [   26.114691] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.122436] STAT:        0x00000000
    [   26.125416] CON:        0x00110600
    [   26.128306] HCTL:        0x00000b12
    [   26.131820] SYSCTL:        0x000c0047
    [   26.134973] IE:        0x00000000
    [   26.137775] ISE:        0x00000000
    [   26.140666] CAPA:        0x25e90080
    [   26.144327] DLL:        0x00129001
    [   26.147220] AC12:        0x008b0000
    [   26.150197] PSTATE:        0x00000000
    [   26.153908] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.159812] Card status in response 900
    [   26.164486] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.172255] STAT:        0x00000000
    [   26.175234] CON:        0x00110600
    [   26.178125] HCTL:        0x00000b12
    [   26.181635] SYSCTL:        0x000c0047
    [   26.184789] IE:        0x00000000
    [   26.187593] ISE:        0x00000000
    [   26.190483] CAPA:        0x25e90080
    [   26.194151] DLL:        0x00131001
    [   26.197042] AC12:        0x008b0000
    [   26.200020] PSTATE:        0x00000000
    [   26.203710] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.209616] Card status in response 900
    [   26.214201] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.221946] STAT:        0x00000000
    [   26.224926] CON:        0x00110600
    [   26.227816] HCTL:        0x00000b12
    [   26.230792] SYSCTL:        0x000c0047
    [   26.234619] IE:        0x00000000
    [   26.237423] ISE:        0x00000000
    [   26.240313] CAPA:        0x25e90080
    [   26.244963] DLL:        0x00139001
    [   26.247854] AC12:        0x008b0000
    [   26.250832] PSTATE:        0x00000000
    [   26.254524] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.260544] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.268770] STAT:        0x00000000
    [   26.272003] CON:        0x00110600
    [   26.274894] HCTL:        0x00000b12
    [   26.277872] SYSCTL:        0x000c0047
    [   26.281558] IE:        0x00000000
    [   26.284363] ISE:        0x00000000
    [   26.287253] CAPA:        0x25e90080
    [   26.290229] DLL:        0x00141001
    [   26.293791] AC12:        0x008b0000
    [   26.296770] PSTATE:        0x00000000
    [   26.299924] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.306727] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.314498] STAT:        0x00000000
    [   26.317477] CON:        0x00110600
    [   26.320367] HCTL:        0x00000b12
    [   26.323874] SYSCTL:        0x000c0047
    [   26.327028] IE:        0x00000000
    [   26.329832] ISE:        0x00000000
    [   26.333249] CAPA:        0x25e90080
    [   26.336228] DLL:        0x00149001
    [   26.339118] AC12:        0x008b0000
    [   26.342626] PSTATE:        0x00000000
    [   26.345781] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.352410] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.359577] STAT:        0x00000000
    [   26.363301] CON:        0x00110600
    [   26.366193] HCTL:        0x00000b12
    [   26.369170] SYSCTL:        0x000c0047
    [   26.372852] IE:        0x00000000
    [   26.375657] ISE:        0x00000000
    [   26.378546] CAPA:        0x25e90080
    [   26.382052] DLL:        0x00151001
    [   26.384944] AC12:        0x008b0000
    [   26.387921] PSTATE:        0x00000000
    [   26.391604] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.397508] Card status in response 900
    [   26.402083] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.409249] STAT:        0x00000000
    [   26.412969] CON:        0x00110600
    [   26.415862] HCTL:        0x00000b12
    [   26.418840] SYSCTL:        0x000c0047
    [   26.422525] IE:        0x00000000
    [   26.425330] ISE:        0x00000000
    [   26.428220] CAPA:        0x25e90080
    [   26.431724] DLL:        0x00159001
    [   26.434616] AC12:        0x008b0000
    [   26.437593] PSTATE:        0x00000000
    [   26.440747] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.447664] Card status in response 900
    [   26.451786] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.458952] STAT:        0x00000000
    [   26.462622] CON:        0x00110600
    [   26.465514] HCTL:        0x00000b12
    [   26.468491] SYSCTL:        0x000c0047
    [   26.472140] IE:        0x00000000
    [   26.474944] ISE:        0x00000000
    [   26.477834] CAPA:        0x25e90080
    [   26.480811] DLL:        0x00161001
    [   26.484397] AC12:        0x008b0000
    [   26.487376] PSTATE:        0x00000000
    [   26.490530] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.497302] Card status in response 900
    [   26.501417] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.508583] STAT:        0x00000000
    [   26.512259] CON:        0x00110600
    [   26.515151] HCTL:        0x00000b12
    [   26.518129] SYSCTL:        0x000c0047
    [   26.521787] IE:        0x00000000
    [   26.524592] ISE:        0x00000000
    [   26.527482] CAPA:        0x25e90080
    [   26.530459] DLL:        0x00169001
    [   26.534069] AC12:        0x008b0000
    [   26.537049] PSTATE:        0x00000000
    [   26.540203] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.547020] Card status in response 900
    [   26.550876] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.558779] STAT:        0x00000000
    [   26.562005] CON:        0x00110600
    [   26.564896] HCTL:        0x00000b12
    [   26.567875] SYSCTL:        0x000c0047
    [   26.571579] IE:        0x00000000
    [   26.574384] ISE:        0x00000000
    [   26.577274] CAPA:        0x25e90080
    [   26.580251] DLL:        0x00171001
    [   26.583800] AC12:        0x008b0000
    [   26.586779] PSTATE:        0x00000000
    [   26.589934] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.596864] Card status in response 900
    [   26.600719] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.608624] STAT:        0x00000000
    [   26.611853] CON:        0x00110600
    [   26.614745] HCTL:        0x00000b12
    [   26.617723] SYSCTL:        0x000c0047
    [   26.620874] IE:        0x00000000
    [   26.624324] ISE:        0x00000000
    [   26.627216] CAPA:        0x25e90080
    [   26.630194] DLL:        0x00179001
    [   26.633583] AC12:        0x008b0000
    [   26.636563] PSTATE:        0x00000000
    [   26.639717] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.646522] Card status in response 900
    [   26.650378] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.658276] STAT:        0x00000000
    [   26.661502] CON:        0x00110600
    [   26.664479] HCTL:        0x00000b12
    [   26.667459] SYSCTL:        0x000c0047
    [   26.670611] IE:        0x00000000
    [   26.674067] ISE:        0x00000000
    [   26.676959] CAPA:        0x25e90080
    [   26.679935] DLL:        0x00181001
    [   26.683339] AC12:        0x008b0000
    [   26.686318] PSTATE:        0x00000000
    [   26.689473] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.696269] Card status in response 900
    [   26.700125] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.708031] STAT:        0x00000000
    [   26.711260] CON:        0x00110600
    [   26.714151] HCTL:        0x00000b12
    [   26.717129] SYSCTL:        0x000c0047
    [   26.720279] IE:        0x00000000
    [   26.731006] ISE:        0x00000000
    [   26.733899] CAPA:        0x25e90080
    [   26.736876] DLL:        0x00189001
    [   26.739765] AC12:        0x008b0000
    [   26.743424] PSTATE:        0x00000000
    [   26.746582] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.754373] Card status in response 900
    [   26.758230] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.766137] STAT:        0x00000000
    [   26.769116] CON:        0x00110600
    [   26.772404] HCTL:        0x00000b12
    [   26.775383] SYSCTL:        0x000c0047
    [   26.778535] IE:        0x00000000
    [   26.781880] ISE:        0x00000000
    [   26.784773] CAPA:        0x25e90080
    [   26.787750] DLL:        0x00191001
    [   26.790639] AC12:        0x008b0000
    [   26.794300] PSTATE:        0x00000000
    [   26.797457] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.804099] Card status in response 900
    [   26.807956] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.815889] STAT:        0x00000000
    [   26.818869] CON:        0x00110600
    [   26.822183] HCTL:        0x00000b12
    [   26.825162] SYSCTL:        0x000c0047
    [   26.828314] IE:        0x00000000
    [   26.831651] ISE:        0x00000000
    [   26.834543] CAPA:        0x25e90080
    [   26.837521] DLL:        0x00199001
    [   26.840410] AC12:        0x008b0000
    [   26.844082] PSTATE:        0x00000000
    [   26.847238] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.854273] Card status in response 900
    [   26.858129] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.866044] STAT:        0x00000000
    [   26.869023] CON:        0x00110600
    [   26.872309] HCTL:        0x00000b12
    [   26.875288] SYSCTL:        0x000c0047
    [   26.878439] IE:        0x00000000
    [   26.881768] ISE:        0x00000000
    [   26.884661] CAPA:        0x25e90080
    [   26.887638] DLL:        0x001a1001
    [   26.890527] AC12:        0x008b0000
    [   26.894187] PSTATE:        0x00000000
    [   26.897342] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.903973] Card status in response 900
    [   26.907830] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.915730] STAT:        0x00000000
    [   26.918710] CON:        0x00110600
    [   26.921995] HCTL:        0x00000b12
    [   26.924973] SYSCTL:        0x000c0047
    [   26.928124] IE:        0x00000000
    [   26.930925] ISE:        0x00000000
    [   26.934488] CAPA:        0x25e90080
    [   26.937466] DLL:        0x001a9001
    [   26.940356] AC12:        0x008b0000
    [   26.943874] PSTATE:        0x00000000
    [   26.947030] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   26.953655] Card status in response 900
    [   26.957510] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   26.965422] STAT:        0x00000000
    [   26.968400] CON:        0x00110600
    [   26.971683] HCTL:        0x00000b12
    [   26.974663] SYSCTL:        0x000c0047
    [   26.977814] IE:        0x00000000
    [   26.980616] ISE:        0x00000000
    [   26.984180] CAPA:        0x25e90080
    [   26.987158] DLL:        0x001b1001
    [   26.990049] AC12:        0x008b0000
    [   26.993565] PSTATE:        0x00000000
    [   26.996721] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   27.003350] Card status in response 900
    [   27.007206] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   27.015113] STAT:        0x00000000
    [   27.018092] CON:        0x00110600
    [   27.021375] HCTL:        0x00000b12
    [   27.024354] SYSCTL:        0x000c0047
    [   27.027506] IE:        0x00000000
    [   27.030308] ISE:        0x00000000
    [   27.033873] CAPA:        0x25e90080
    [   27.036851] DLL:        0x001b9001
    [   27.039742] AC12:        0x008b0000
    [   27.043267] PSTATE:        0x00000000
    [   27.046423] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   27.053054] Card status in response 900
    [   27.056911] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   27.064819] STAT:        0x00000000
    [   27.067799] CON:        0x00110600
    [   27.070690] HCTL:        0x00000b12
    [   27.074243] SYSCTL:        0x000c0047
    [   27.077398] IE:        0x00000000
    [   27.080201] ISE:        0x00000000
    [   27.083640] CAPA:        0x25e90080
    [   27.086620] DLL:        0x001c1001
    [   27.089510] AC12:        0x008b0000
    [   27.093025] PSTATE:        0x00000000
    [   27.096182] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   27.102821] Card status in response 900
    [   27.106677] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   27.114568] STAT:        0x00000000
    [   27.117547] CON:        0x00110600
    [   27.120438] HCTL:        0x00000b12
    [   27.123986] SYSCTL:        0x000c0047
    [   27.127140] IE:        0x00000000
    [   27.129943] ISE:        0x00000000
    [   27.133365] CAPA:        0x25e90080
    [   27.136344] DLL:        0x001c9001
    [   27.139234] AC12:        0x008b0000
    [   27.142744] PSTATE:        0x00000000
    [   27.145899] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   27.152540] Card status in response 900
    [   27.156396] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   27.164381] STAT:        0x00000000
    [   27.167360] CON:        0x00110600
    [   27.170251] HCTL:        0x00000b12
    [   27.173772] SYSCTL:        0x000c0047
    [   27.176926] IE:        0x00000000
    [   27.179728] ISE:        0x00000000
    [   27.183151] CAPA:        0x25e90080
    [   27.186129] DLL:        0x001d1001
    [   27.189019] AC12:        0x008b0000
    [   27.192530] PSTATE:        0x00000000
    [   27.195687] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   27.202332] Card status in response 900
    [   27.206188] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   27.214081] STAT:        0x00000000
    [   27.217060] CON:        0x00110600
    [   27.219950] HCTL:        0x00000b12
    [   27.223468] SYSCTL:        0x000c0047
    [   27.226621] IE:        0x00000000
    [   27.229424] ISE:        0x00000000
    [   27.232847] CAPA:        0x25e90080
    [   27.235826] DLL:        0x001d9001
    [   27.238715] AC12:        0x008b0000
    [   27.242228] PSTATE:        0x00000000
    [   27.245385] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   27.252137] Card status in response 900
    [   27.255994] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   27.265004] STAT:        0x00000000
    [   27.267983] CON:        0x00110600
    [   27.270873] HCTL:        0x00000b12
    [   27.274393] SYSCTL:        0x000c0047
    [   27.277546] IE:        0x00000000
    [   27.280349] ISE:        0x00000000
    [   27.283770] CAPA:        0x25e90080
    [   27.286750] DLL:        0x001e1001
    [   27.289641] AC12:        0x008b0000
    [   27.293165] PSTATE:        0x00000000
    [   27.296322] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   27.302950] Card status in response 900
    [   27.306805] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   27.314698] STAT:        0x00000000
    [   27.317678] CON:        0x00110600
    [   27.320568] HCTL:        0x00000b12
    [   27.324083] SYSCTL:        0x000c0047
    [   27.327237] IE:        0x00000000
    [   27.330039] ISE:        0x00000000
    [   27.333493] CAPA:        0x25e90080
    [   27.336473] DLL:        0x001e9001
    [   27.339362] AC12:        0x008b0000
    [   27.342904] PSTATE:        0x00000000
    [   27.346060] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   27.352695] Card status in response 900
    [   27.356551] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   27.364444] STAT:        0x00000000
    [   27.367423] CON:        0x00110600
    [   27.370315] HCTL:        0x00000b12
    [   27.373852] SYSCTL:        0x000c0047
    [   27.377006] IE:        0x00000000
    [   27.379810] ISE:        0x00000000
    [   27.383251] CAPA:        0x25e90080
    [   27.386231] DLL:        0x001f1001
    [   27.389121] AC12:        0x008b0000
    [   27.392634] PSTATE:        0x00000000
    [   27.395791] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   27.402417] Card status in response 900
    [   27.406272] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   27.414166] STAT:        0x00000000
    [   27.417146] CON:        0x00110600
    [   27.420037] HCTL:        0x00000b12
    [   27.423566] SYSCTL:        0x000c0047
    [   27.426720] IE:        0x00000000
    [   27.429522] ISE:        0x00000000
    [   27.432944] CAPA:        0x25e90080
    [   27.435923] DLL:        0x001f9001
    [   27.438813] AC12:        0x008b0000
    [   27.442323] PSTATE:        0x00000000
    [   27.445480] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   27.452107] Card status in response 900
    [   27.456090] Card status in response 900
    [   27.460072] Card status in response 900
    [   27.464588] Card status in response 900
    [   27.468572] Card status in response 900
    [   27.472957] Card status in response 900
    [   27.476940] Card status in response 900
    [   27.480921] Card status in response 900
    [   27.485425] Card status in response 900
    [   27.489454] Card status in response 900
    [   27.493838] Card status in response 900
    [   27.497820] Card status in response 900
    [   27.502193] Card status in response 900
    [   27.506176] Card status in response 900
    [   27.510156] Card status in response 900
    [   27.514662] Card status in response 900
    [   27.518644] Card status in response 900
    [   27.523026] Card status in response 900
    [   27.527008] Card status in response 900
    [   27.531346] Card status in response 900
    [   27.535332] Card status in response 900
    [   27.539186] MMC0: start_win = 0x40 max_win = 0x40 phase_delay = 0x5c

    # cat /sys/kernel/debug/mmc*/ios | grep "clock"
    clock:        128000000 Hz (Switched to UHS after tunning)
    clock:        52000000 Hz
    clock:        0 Hz
    # ls -l /dev/mmcblk
    mmcblk0       mmcblk0p2     mmcblk1boot0  mmcblk1p1
    mmcblk0p1     mmcblk1       mmcblk1boot1  mmcblk1p2
    # ls -l /dev/mmcblk
    mmcblk0       mmcblk0p2     mmcblk1boot0  mmcblk1p1
    mmcblk0p1     mmcblk1       mmcblk1boot1  mmcblk1p2
    # mount /dev/mmcblk0p2 /mnt/ (Trying to mount the device)
    [   53.516976] omap_hsmmc 4809c000.mmc: ADMA err: ST_TFR, desc at 0xbe440008 follows the erroneous one (Data CRC error), hence started re-tuning
    [   53.527249] Card status in response 900
    [   53.531228] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   53.538396] STAT:        0x00000000
    [   53.542271] CON:        0x00110600
    [   53.545165] HCTL:        0x00000b12
    [   53.548143] SYSCTL:        0x000c0047
    [   53.551839] IE:        0x00000000
    [   53.554644] ISE:        0x00000000
    [   53.557535] CAPA:        0x25e90080
    [   53.560511] DLL:        0x00101001
    [   53.564065] AC12:        0x008b0000
    [   53.567046] PSTATE:        0x00000000
    [   53.570201] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   53.577043] Card status in response 900
    [   53.580900] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   53.588816] STAT:        0x00000000
    [   53.592047] CON:        0x00110600
    [   53.594939] HCTL:        0x00000b12
    [   53.597918] SYSCTL:        0x000c0047
    [   53.601601] IE:        0x00000000
    [   53.604406] ISE:        0x00000000
    [   53.607297] CAPA:        0x25e90080
    [   53.610274] DLL:        0x00109001
    [   53.613852] AC12:        0x008b0000
    [   53.616832] PSTATE:        0x00000000
    [   53.619987] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   53.626803] Card status in response 900
    [   53.630659] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   53.638569] STAT:        0x00000000
    [   53.641804] CON:        0x00110600
    [   53.644696] HCTL:        0x00000b12
    [   53.647674] SYSCTL:        0x000c0047
    [   53.650825] IE:        0x00000000
    [   53.654297] ISE:        0x00000000
    [   53.657189] CAPA:        0x25e90080
    [   53.660167] DLL:        0x00111001
    [   53.663654] AC12:        0x008b0000
    [   53.666633] PSTATE:        0x00000000
    [   53.669787] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   53.676737] Card status in response 900
    [   53.680594] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   53.688508] STAT:        0x00000000
    [   53.691739] CON:        0x00110600
    [   53.694631] HCTL:        0x00000b12
    [   53.697608] SYSCTL:        0x000c0047
    [   53.700759] IE:        0x00000000
    [   53.704230] ISE:        0x00000000
    [   53.707123] CAPA:        0x25e90080
    [   53.710100] DLL:        0x00119001
    [   53.713493] AC12:        0x008b0000
    [   53.716472] PSTATE:        0x00000000
    [   53.719627] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   53.726425] Card status in response 900
    [   53.730281] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   53.738181] STAT:        0x00000000
    [   53.741412] CON:        0x00110600
    [   53.744304] HCTL:        0x00000b12
    [   53.747282] SYSCTL:        0x000c0047
    [   53.750433] IE:        0x00000000
    [   53.753900] ISE:        0x00000000
    [   53.756792] CAPA:        0x25e90080
    [   53.759770] DLL:        0x00121001
    [   53.770759] AC12:        0x008b0000
    [   53.774009] PSTATE:        0x00000000
    [   53.777166] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   53.784936] Card status in response 900
    [   53.788792] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   53.796692] STAT:        0x00000000
    [   53.799672] CON:        0x00110600
    [   53.802981] HCTL:        0x00000b12
    [   53.805959] SYSCTL:        0x000c0047
    [   53.809111] IE:        0x00000000
    [   53.812448] ISE:        0x00000000
    [   53.815340] CAPA:        0x25e90080
    [   53.818318] DLL:        0x00129001
    [   53.821762] AC12:        0x008b0000
    [   53.824741] PSTATE:        0x00000000
    [   53.827895] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   53.834675] Card status in response 900
    [   53.838530] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   53.846429] STAT:        0x00000000
    [   53.849408] CON:        0x00110600
    [   53.852696] HCTL:        0x00000b12
    [   53.855674] SYSCTL:        0x000c0047
    [   53.858826] IE:        0x00000000
    [   53.862162] ISE:        0x00000000
    [   53.865055] CAPA:        0x25e90080
    [   53.868032] DLL:        0x00131001
    [   53.870921] AC12:        0x008b0000
    [   53.874802] PSTATE:        0x00000000
    [   53.877958] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   53.884593] Card status in response 900
    [   53.888448] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   53.896346] STAT:        0x00000000
    [   53.899326] CON:        0x00110600
    [   53.902622] HCTL:        0x00000b12
    [   53.905602] SYSCTL:        0x000c0047
    [   53.908754] IE:        0x00000000
    [   53.912179] ISE:        0x00000000
    [   53.915071] CAPA:        0x25e90080
    [   53.918048] DLL:        0x00139001
    [   53.920938] AC12:        0x008b0000
    [   53.924644] PSTATE:        0x00000000
    [   53.927801] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   53.934465] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   53.942234] STAT:        0x00000000
    [   53.945247] CON:        0x00110600
    [   53.948139] HCTL:        0x00000b12
    [   53.951665] SYSCTL:        0x000c0047
    [   53.954819] IE:        0x00000000
    [   53.957621] ISE:        0x00000000
    [   53.960510] CAPA:        0x25e90080
    [   53.964177] DLL:        0x00141001
    [   53.967068] AC12:        0x008b0000
    [   53.970045] PSTATE:        0x00000000
    [   53.973743] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   53.979652] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   53.987903] STAT:        0x00000000
    [   53.990882] CON:        0x00110600
    [   53.994180] HCTL:        0x00000b12
    [   53.997159] SYSCTL:        0x000c0047
    [   54.000310] IE:        0x00000000
    [   54.003647] ISE:        0x00000000
    [   54.006539] CAPA:        0x25e90080
    [   54.009515] DLL:        0x00149001
    [   54.012949] AC12:        0x008b0000
    [   54.015928] PSTATE:        0x00000000
    [   54.019084] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.025978] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.033738] STAT:        0x00000000
    [   54.036718] CON:        0x00110600
    [   54.039608] HCTL:        0x00000b12
    [   54.043126] SYSCTL:        0x000c0047
    [   54.046279] IE:        0x00000000
    [   54.049082] ISE:        0x00000000
    [   54.052550] CAPA:        0x25e90080
    [   54.055529] DLL:        0x00151001
    [   54.058420] AC12:        0x008b0000
    [   54.061956] PSTATE:        0x00000000
    [   54.065113] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.071706] Card status in response 900
    [   54.075562] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.083504] STAT:        0x00000000
    [   54.086484] CON:        0x00110600
    [   54.089373] HCTL:        0x00000b12
    [   54.092898] SYSCTL:        0x000c0047
    [   54.096052] IE:        0x00000000
    [   54.098855] ISE:        0x00000000
    [   54.102283] CAPA:        0x25e90080
    [   54.105262] DLL:        0x00159001
    [   54.108151] AC12:        0x008b0000
    [   54.111669] PSTATE:        0x00000000
    [   54.114825] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.120727] Card status in response 900
    [   54.125473] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.133225] STAT:        0x00000000
    [   54.136204] CON:        0x00110600
    [   54.139094] HCTL:        0x00000b12
    [   54.142608] SYSCTL:        0x000c0047
    [   54.145763] IE:        0x00000000
    [   54.148565] ISE:        0x00000000
    [   54.151993] CAPA:        0x25e90080
    [   54.154973] DLL:        0x00161001
    [   54.157862] AC12:        0x008b0000
    [   54.160839] PSTATE:        0x00000000
    [   54.164759] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.170665] Card status in response 900
    [   54.175281] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.183034] STAT:        0x00000000
    [   54.186013] CON:        0x00110600
    [   54.188904] HCTL:        0x00000b12
    [   54.192422] SYSCTL:        0x000c0047
    [   54.195576] IE:        0x00000000
    [   54.198378] ISE:        0x00000000
    [   54.201808] CAPA:        0x25e90080
    [   54.204787] DLL:        0x00169001
    [   54.207677] AC12:        0x008b0000
    [   54.210653] PSTATE:        0x00000000
    [   54.214491] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.220396] Card status in response 900
    [   54.225000] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.232748] STAT:        0x00000000
    [   54.235728] CON:        0x00110600
    [   54.238620] HCTL:        0x00000b12
    [   54.242136] SYSCTL:        0x000c0047
    [   54.245289] IE:        0x00000000
    [   54.248092] ISE:        0x00000000
    [   54.251522] CAPA:        0x25e90080
    [   54.254501] DLL:        0x00171001
    [   54.257391] AC12:        0x008b0000
    [   54.260368] PSTATE:        0x00000000
    [   54.264204] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.270109] Card status in response 900
    [   54.274715] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.282462] STAT:        0x00000000
    [   54.285442] CON:        0x00110600
    [   54.288332] HCTL:        0x00000b12
    [   54.292967] SYSCTL:        0x000c0047
    [   54.296120] IE:        0x00000000
    [   54.298922] ISE:        0x00000000
    [   54.302352] CAPA:        0x25e90080
    [   54.305331] DLL:        0x00179001
    [   54.308221] AC12:        0x008b0000
    [   54.311770] PSTATE:        0x00000000
    [   54.314927] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.320830] Card status in response 900
    [   54.325588] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.333345] STAT:        0x00000000
    [   54.336325] CON:        0x00110600
    [   54.339215] HCTL:        0x00000b12
    [   54.342733] SYSCTL:        0x000c0047
    [   54.345887] IE:        0x00000000
    [   54.348690] ISE:        0x00000000
    [   54.352121] CAPA:        0x25e90080
    [   54.355100] DLL:        0x00181001
    [   54.357990] AC12:        0x008b0000
    [   54.361511] PSTATE:        0x00000000
    [   54.364666] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.370717] Card status in response 900
    [   54.375474] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.383234] STAT:        0x00000000
    [   54.386212] CON:        0x00110600
    [   54.389102] HCTL:        0x00000b12
    [   54.392618] SYSCTL:        0x000c0047
    [   54.395772] IE:        0x00000000
    [   54.398574] ISE:        0x00000000
    [   54.402001] CAPA:        0x25e90080
    [   54.404981] DLL:        0x00189001
    [   54.407870] AC12:        0x008b0000
    [   54.410848] PSTATE:        0x00000000
    [   54.414695] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.420600] Card status in response 900
    [   54.425188] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.432936] STAT:        0x00000000
    [   54.435915] CON:        0x00110600
    [   54.438805] HCTL:        0x00000b12
    [   54.442324] SYSCTL:        0x000c0047
    [   54.445478] IE:        0x00000000
    [   54.448282] ISE:        0x00000000
    [   54.451712] CAPA:        0x25e90080
    [   54.454690] DLL:        0x00191001
    [   54.457580] AC12:        0x008b0000
    [   54.460556] PSTATE:        0x00000000
    [   54.464410] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.470315] Card status in response 900
    [   54.474910] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.482658] STAT:        0x00000000
    [   54.485637] CON:        0x00110600
    [   54.488526] HCTL:        0x00000b12
    [   54.492041] SYSCTL:        0x000c0047
    [   54.495194] IE:        0x00000000
    [   54.497997] ISE:        0x00000000
    [   54.500886] CAPA:        0x25e90080
    [   54.504546] DLL:        0x00199001
    [   54.507439] AC12:        0x008b0000
    [   54.510417] PSTATE:        0x00000000
    [   54.514127] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.520032] Card status in response 900
    [   54.524618] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.532360] STAT:        0x00000000
    [   54.535339] CON:        0x00110600
    [   54.538230] HCTL:        0x00000b12
    [   54.541746] SYSCTL:        0x000c0047
    [   54.544901] IE:        0x00000000
    [   54.547704] ISE:        0x00000000
    [   54.550593] CAPA:        0x25e90080
    [   54.554256] DLL:        0x001a1001
    [   54.557148] AC12:        0x008b0000
    [   54.560124] PSTATE:        0x00000000
    [   54.563837] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.569741] Card status in response 900
    [   54.574319] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.582097] STAT:        0x00000000
    [   54.585077] CON:        0x00110600
    [   54.587968] HCTL:        0x00000b12
    [   54.590945] SYSCTL:        0x000c0047
    [   54.594795] IE:        0x00000000
    [   54.597599] ISE:        0x00000000
    [   54.600489] CAPA:        0x25e90080
    [   54.604009] DLL:        0x001a9001
    [   54.606901] AC12:        0x008b0000
    [   54.609876] PSTATE:        0x00000000
    [   54.613587] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.619492] Card status in response 900
    [   54.624084] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.631828] STAT:        0x00000000
    [   54.634809] CON:        0x00110600
    [   54.637699] HCTL:        0x00000b12
    [   54.640675] SYSCTL:        0x000c0047
    [   54.644510] IE:        0x00000000
    [   54.647314] ISE:        0x00000000
    [   54.650205] CAPA:        0x25e90080
    [   54.653722] DLL:        0x001b1001
    [   54.656614] AC12:        0x008b0000
    [   54.659591] PSTATE:        0x00000000
    [   54.663375] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.669281] Card status in response 900
    [   54.673881] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.681628] STAT:        0x00000000
    [   54.684607] CON:        0x00110600
    [   54.687497] HCTL:        0x00000b12
    [   54.690474] SYSCTL:        0x000c0047
    [   54.694310] IE:        0x00000000
    [   54.697115] ISE:        0x00000000
    [   54.700006] CAPA:        0x25e90080
    [   54.703526] DLL:        0x001b9001
    [   54.706419] AC12:        0x008b0000
    [   54.709396] PSTATE:        0x00000000
    [   54.713104] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.719125] Card status in response 900
    [   54.723716] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.730882] STAT:        0x00000000
    [   54.734588] CON:        0x00110600
    [   54.737480] HCTL:        0x00000b12
    [   54.740458] SYSCTL:        0x000c0047
    [   54.744150] IE:        0x00000000
    [   54.746955] ISE:        0x00000000
    [   54.749845] CAPA:        0x25e90080
    [   54.753360] DLL:        0x001c1001
    [   54.756252] AC12:        0x008b0000
    [   54.759230] PSTATE:        0x00000000
    [   54.762938] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.768843] Card status in response 900
    [   54.773422] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.780589] STAT:        0x00000000
    [   54.784318] CON:        0x00110600
    [   54.787210] HCTL:        0x00000b12
    [   54.790187] SYSCTL:        0x000c0047
    [   54.793882] IE:        0x00000000
    [   54.796687] ISE:        0x00000000
    [   54.799577] CAPA:        0x25e90080
    [   54.811030] DLL:        0x001c9001
    [   54.813923] AC12:        0x008b0000
    [   54.816900] PSTATE:        0x00000000
    [   54.820054] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.827798] Card status in response 900
    [   54.831916] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.839082] STAT:        0x00000000
    [   54.842764] CON:        0x00110600
    [   54.845655] HCTL:        0x00000b12
    [   54.848632] SYSCTL:        0x000c0047
    [   54.852325] IE:        0x00000000
    [   54.855130] ISE:        0x00000000
    [   54.858020] CAPA:        0x25e90080
    [   54.861568] DLL:        0x001d1001
    [   54.864461] AC12:        0x008b0000
    [   54.867439] PSTATE:        0x00000000
    [   54.870593] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.877544] Card status in response 900
    [   54.881665] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.888831] STAT:        0x00000000
    [   54.892508] CON:        0x00110600
    [   54.895400] HCTL:        0x00000b12
    [   54.898378] SYSCTL:        0x000c0047
    [   54.902038] IE:        0x00000000
    [   54.904843] ISE:        0x00000000
    [   54.907731] CAPA:        0x25e90080
    [   54.910708] DLL:        0x001d9001
    [   54.914719] AC12:        0x008b0000
    [   54.917698] PSTATE:        0x00000000
    [   54.920853] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.927647] Card status in response 900
    [   54.931753] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.938919] STAT:        0x00000000
    [   54.942590] CON:        0x00110600
    [   54.945482] HCTL:        0x00000b12
    [   54.948460] SYSCTL:        0x000c0047
    [   54.952116] IE:        0x00000000
    [   54.954920] ISE:        0x00000000
    [   54.957810] CAPA:        0x25e90080
    [   54.960788] DLL:        0x001e1001
    [   54.964398] AC12:        0x008b0000
    [   54.967377] PSTATE:        0x00000000
    [   54.970532] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   54.977318] Card status in response 900
    [   54.981426] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   54.988632] STAT:        0x00000000
    [   54.992323] CON:        0x00110600
    [   54.995214] HCTL:        0x00000b12
    [   54.998192] SYSCTL:        0x000c0047
    [   55.001850] IE:        0x00000000
    [   55.004655] ISE:        0x00000000
    [   55.007545] CAPA:        0x25e90080
    [   55.010522] DLL:        0x001e9001
    [   55.014127] AC12:        0x008b0000
    [   55.017106] PSTATE:        0x00000000
    [   55.020261] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   55.027164] Card status in response 900
    [   55.031273] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   55.038470] STAT:        0x00000000
    [   55.042157] CON:        0x00110600
    [   55.045050] HCTL:        0x00000b12
    [   55.048027] SYSCTL:        0x000c0047
    [   55.051686] IE:        0x00000000
    [   55.054490] ISE:        0x00000000
    [   55.057381] CAPA:        0x25e90080
    [   55.060357] DLL:        0x001f1001
    [   55.063970] AC12:        0x008b0000
    [   55.066949] PSTATE:        0x00000000
    [   55.070105] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   55.076888] Card status in response 900
    [   55.080745] omap_hsmmc 4809c000.mmc:     ********* printing MMC registers ******
    [   55.088649] STAT:        0x00000000
    [   55.091879] CON:        0x00110600
    [   55.094771] HCTL:        0x00000b12
    [   55.097750] SYSCTL:        0x000c0047
    [   55.100901] IE:        0x00000000
    [   55.104354] ISE:        0x00000000
    [   55.107247] CAPA:        0x25e90080
    [   55.110224] DLL:        0x001f9001
    [   55.113669] AC12:        0x008b0000
    [   55.116649] PSTATE:        0x00000000
    [   55.119804] omap_hsmmc 4809c000.mmc:     *********** Done ******
    [   55.126649] Card status in response 900
    [   55.130634] Card status in response 900
    [   55.135018] Card status in response 900
    [   55.139001] Card status in response 900
    [   55.143371] Card status in response 900
    [   55.147354] Card status in response 900
    [   55.151724] Card status in response 900
    [   55.155707] Card status in response 900
    [   55.159689] Card status in response 900
    [   55.164290] Card status in response 900
    [   55.168275] Card status in response 900
    [   55.172661] Card status in response 900
    [   55.176644] Card status in response 900
    [   55.180625] Card status in response 900
    [   55.185139] Card status in response 900
    [   55.189122] Card status in response 900
    [   55.193494] Card status in response 900
    [   55.197476] Card status in response 900
    [   55.201844] Card status in response 900
    [   55.205828] Card status in response 900
    [   55.209809] Card status in response 900
    [   55.214208] MMC0: start_win = 0x40 max_win = 0x40 phase_delay = 0x5c
    [   55.248691] omap_hsmmc 4809c000.mmc: ADMA err: ST_TFR, desc at 0xbe440008 follows the erroneous one
    [   55.258382] mmcblk0: error -84 transferring data, sector 1050632, nr 8, cmd response 0x900, card status 0xb00
    [   55.268394] MMC0 Clkdiv = 0
    [   55.274579] MMC0 Clkdiv = 0
    [   55.277387] Forcing MMC0 ios voltage to 1.8
    [   55.311250] MMC0 Clkdiv = 320
    [   55.341006] MMC0 Clkdiv = 320
    [   55.346157] MMC0 Clkdiv = 320
    [   55.384705] MMC0 Clkdiv = 320
    [   55.387702] MMC0 Clkdiv = 3
    [   55.390549] MMC0 Clkdiv = 3
    [   56.657486] EXT4-fs (mmcblk0p2): 4 orphan inodes deleted
    [   56.662985] EXT4-fs (mmcblk0p2): recovery complete
    [   56.730053] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    # cat /sys/kernel/debug/mmc*/ios | grep "clock" (Fall back to HS mode)
    clock:        50000000 Hz
    clock:        52000000 Hz
    clock:        0 Hz
    #

    Please give your inputs

  • In an earlier post you said

    As per my board & application requirement, SD/MMC controller ios are always maintained at 1.8V where as at the card voltages are at 3.3V (We have Booster in picture)

    I was talking with co-workers that asked

    SDK by default assumes the I/Os will power up in 3.3 V, so SW will execute a handshake sequence and then send commands to transition voltage level from 3.3 V to 1.8 V.  If voltage level is inconsistent from expectation, that may cause some errors.  Has customer modified the SW to skip this step?

    Steve K.

  • Hi Steve,

    1) Yes, kernel assumes the I/Os are power up in 3.3V,
    I have a hack in omap_hsmmc.c driver to always set the controller I/Os at 1.8V even at the initial stage of card initialization (this is Booster i/p requirement to have 1.8V i/p voltage limit) and at the card side I am maintaining 3.3V, using Booster SEL pin. This should not be a problem.

    During the handshake sequence, MMC1 controller sends CMD-11, for which it is getting response from the card accepting voltage switch request, then I am changing the card voltage to 1.8V. Initial the card and send the tuning command.

    2) I am doing the same way for MMC1 UHS mode @96MHz, working fine with no issues.


    3) I am seeing these Data CRC-Erorrs on read-path when working on 128/192MHz, is there a way to compensate the delay from the Booster in MMC1 controller.

    Please help me.

  • Hi Steve,

    I am checking the iodelay values in SDR104 mode, please see the below values, do they look okay

    # cat /sys/kernel/debug/mmc0/ios
    clock:        128000000 Hz
    vdd:        21 (3.3 ~ 3.4 V)
    bus mode:    2 (push-pull)
    chip select:    0 (don't care)
    power mode:    2 (on)
    bus width:    2 (4 bits)
    timing spec:    6 (sd uhs SDR104)
    signal voltage:    1 (1.80 V)
    driver type:    0 (driver type B)
    # cat /sys/kernel/debug/mmc0/regs
    mmc0:
    sdio irq mode    polling
    ctx_loss:    1

    regs:
    CON:        0x00110600
    PSTATE:        0x00000000
    HCTL:        0x00000b12
    SYSCTL:        0x000c0047
    IE:        0x00000000
    ISE:        0x00000000
    CAPA:        0x25e90080
    SYSCON:        0x0000301d
         IO-DELAY regs     
    0xfa44a618:        0x00000026
    0xfa44a61c:        0x00000000
    0xfa44a620:        0x00000026
    0xfa44a624:        0x00000000
    0xfa44a628:        0x00000001
    0xfa44a62c:        0x00000000
    0xfa44a630:        0x00000000
    0xfa44a634:        0x00000000
    0xfa44a638:        0x00000001
    0xfa44a63c:        0x00000000
    0xfa44a640:        0x0000000b
    0xfa44a644:        0x00000002
    0xfa44a648:        0x00000000
    0xfa44a64c:        0x00000006
    0xfa44a650:        0x00000002
    0xfa44a654:        0x00000000
    0xfa44a658:        0x00000008
    0xfa44a65c:        0x00000003
    #
    I am looking is there any mean by configuring these values to compensate delay caused by Booster, please giver your thoughts.

    Thanks,

    Vamshi G.

  • Dear Steve,

    any help on this?

  • Everything looks good.

    Steve K.