SD Card Detection

3 views
Skip to first unread message

jayasankar rv

unread,
Apr 16, 2024, 8:16:45 AM4/16/24
to inside...@googlegroups.com
Dear Team,

We're facing an intermittent issue with SD Card detection. The card will not get detected intermittently while power cycling. It will get detected if we re-insert the card or with hot swap

Is that due to the init / probe happening before the card (card detect or SD Voltages) is ready ? It would be great to have any insights on this. Below attaching the related log.


[    9.380770] Bluetooth: BNEP socket layer initialized
[   20.952161] mmc1: Data timeout error
[   20.955758] sdhci: =========== REGISTER DUMP (mmc1)===========
[   20.961602] sdhci: Sys addr: 0x00000000 | Version:  0x00000303
[   20.967443] sdhci: Blk size: 0x00007008 | Blk cnt:  0x00000001
[   20.973283] sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
[   20.979123] sdhci: Present:  0x01fb0000 | Host ctl: 0x00000011
[   20.984962] sdhci: Power:    0x00000001 | Blk gap:  0x00000000
[   20.990800] sdhci: Wake-up:  0x00000000 | Clock:    0x00000407
[   20.996637] sdhci: Timeout:  0x0000000e | Int stat: 0x00000000
[   21.002477] sdhci: Int enab: 0x02ff100b | Sig enab: 0x02fc100b
[   21.008314] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[   21.014153] sdhci: Caps:     0x376cd08c | Caps_1:   0x10006f77
[   21.019991] sdhci: Cmd:      0x0000333a | Max curr: 0x00000000
[   21.025826] sdhci: Host ctl2: 0x00003008
[   21.029761] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000ffefe410
[   21.036351] sdhci: ===========================================
[   21.042940] mmc1: error -110 whilst initialising SD card
<<REMOVED>>
[   33.303382] mmc1: card never left busy state
[   33.307692] mmc1: error -110 whilst initialising SD card
[   33.313419] sdhci-tegra sdhci-tegra.2: Tuning done, restoring the best tap value : 21
[   39.935716] mmc1: card never left busy state
[   39.940056] mmc1: error -110 whilst initialising SD card
[   39.945880] sdhci-tegra sdhci-tegra.2: Tuning done, restoring the best tap value : 21
[   47.067434] mmc1: card never left busy state
[   47.071737] mmc1: error -110 whilst initialising SD card
[   47.077147] sdhci-tegra sdhci-tegra.2: Tuning done, restoring the best tap value : 21
[   53.175885] mmc1: card never left busy state
[   53.180900] mmc1: error -110 whilst initialising SD card
[   53.186547] sdhci-tegra sdhci-tegra.2: Tuning done, restoring the best tap value : 21
[   59.283493] mmc1: card never left busy state
[   59.287820] mmc1: error -110 whilst initialising SD card
[   59.293249] sdhci-tegra sdhci-tegra.2: Tuning done, restoring the best tap value : 21
[   66.131869] mmc1: card never left busy state
[   66.136445] mmc1: error -110 whilst initialising SD card
[   66.142080] sdhci-tegra sdhci-tegra.2: Tuning done, restoring the best tap value : 21
[   73.228583] mmc1: card never left busy state
[   73.233200] mmc1: error -110 whilst initialising SD card
[   73.238801] sdhci-tegra sdhci-tegra.2: Tuning done, restoring the best tap value : 21
[   79.331610] mmc1: card never left busy state
[   79.336401] mmc1: error -110 whilst initialising SD card
[   79.342288] sdhci-tegra sdhci-tegra.2: Tuning done, restoring the best tap value : 21
[   85.452010] mmc1: card never left busy state
[   85.456833] mmc1: error -110 whilst initialising SD card
[   85.462950] sdhci-tegra sdhci-tegra.2: Tuning done, restoring the best tap value : 21
[   91.791408] mmc1: card never left busy state
[   91.795694] mmc1: error -110 whilst initialising SD card
[   91.801269] sdhci-tegra sdhci-tegra.2: Tuning done, restoring the best tap value : 21
[   98.924039] mmc1: card never left busy state
[   98.928837] mmc1: error -110 whilst initialising SD card

Thanks

Regards,
Jayasankar

Anil Kumar Pugalia

unread,
Apr 19, 2024, 9:46:24 AM4/19/24
to inside...@googlegroups.com

Is this w/ this card only? Or, w/ any card?

Regards
Anil
Passion: https://sysplay.in (Playing with Systems)
jayasankar rv wrote on 16/04/24 17:46:
--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/CAKCbV2LUDKXasHY0TE3dEV8MFGSNgCgua4-KM%3DaM8%3DvQYqfV%2Bg%40mail.gmail.com.

jayasankar rv

unread,
Apr 20, 2024, 3:15:57 AM4/20/24
to inside...@googlegroups.com
Dear Sir,

The behaviour is same with any card

We've tried with a bootdealy to isolate any hardware - driver race conditions but no luck

We got a response from Nvidia to update the DT with 'card detection' & 'power supply' entries. We are working on it and will update you with the results

sdhci@700b0400 {
status = “okay”;
/delete-property/ keep-power-in-suspend;
/delete-property/ non-removable;
mmc-ddr-1_8v;
mmc-ocr-mask = <3>;
uhs-mask = <0x0>;
tap-delay = <3>;
};

Regards,
Jayasankar

jayasankar rv

unread,
Apr 22, 2024, 9:37:59 PM4/22/24
to inside...@googlegroups.com
Dear Sir,

We've probed the GPIO for load switch enable and identified some glitches

Made DT configurations proper (earlier the load switch enable was from start-up script). Post this change the issue seems fixed

Regards,
Jayasankar
Reply all
Reply to author
Forward
0 new messages