From: Jan Kiszka <jan.kiszka@web.de>
To: u-boot@lists.denx.de
Subject: am654_sdhci: mmc fail to send stop cmd
Date: Thu, 13 Aug 2020 11:09:35 +0200 [thread overview]
Message-ID: <14607234-d102-3e50-258c-079da7c017ee@web.de> (raw)
In-Reply-To: <31e0ef3b-49d5-801c-70ce-2093d6d94eba@ti.com>
On 23.07.20 06:14, Faiz Abbas wrote:
> Jan,
>
> On 23/07/20 8:55 am, Faiz Abbas wrote:
>> Jan,
>>
>> On 21/07/20 10:52 pm, Jan Kiszka wrote:
>>> On 21.07.20 19:03, Faiz Abbas wrote:
>>>> Jan,
>>>>
>>>> On 21/07/20 12:06 pm, Jan Kiszka wrote:
>>>>> On 21.07.20 01:23, Jaehoon Chung wrote:
>>>>>> On 7/20/20 10:21 AM, Peng Fan wrote:
>>>>>>> Hi Jan,
>>>>>>>
>>>>>>>> Subject: am654_sdhci: mmc fail to send stop cmd
>>>>>>>>
>>>>>>>> Hi all,
>>>>>>>>
>>>>>>>> on one device with one specific SD-card (possibly an aging one), I'm seeing
>>>>>>>> frequent "mmc fail to send stop cmd" messages, followed by read errors
>>>>>>>> when loading kernel and dtb. -ETIMEDOUT is returned by mmd_send_cmd.
>>>>>>>> However, I can always resolve this by simply retrying the stop command like
>>>>>>>> this:
>>>>>>>>
> ...
>>>>>
>>>>
>>>> Its a command timeout for which we cannot program a higher timeout.
>>>>
>>>> Can you send a full failure log?
>>>>
>>>
>>> [unrelated fsbl, spl stuff]
>>>
>>> U-Boot 2020.07-00883-g4d6da10ce6-dirty (Jul 20 2020 - 06:30:08 +0200)
>>>
>>> Model: Siemens IOT2050 Advanced Base Board
>>> DRAM: 2 GiB
>>> MMC: sdhci at 4f80000: 1, sdhci at 04FA0000: 0
>>> Loading Environment from SPI Flash... SF: Detected w25q128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
>>> OK
>>> In: serial
>>> Out: serial
>>> Err: serial
>>> Hit any key to stop autoboot: 0
>>> stat: 18000
>>> stat: 18000
>>> stat: 208000
>>> switch to partitions #0, OK
>>> mmc1(part 0) is current device
>>> ** No partition table - mmc 1 **
>>> switch to partitions #0, OK
>>> mmc0 is current device
>>> Scanning mmc 0:1...
>>> Found U-Boot script /boot/boot.scr
>>> 784 bytes read in 2 ms (382.8 KiB/s)
>>> ## Executing script at 83000000
>>> 65329 bytes read in 11 ms (5.7 MiB/s)
>>> stat: 18000
>>> mmc fail to send stop cmd, -110
>>> retrying...
>>> 17113096 bytes read in 1409 ms (11.6 MiB/s)
>>> Moving Image from 0x80080000 to 0x80200000, end=812c0000
>>> ## Flattened Device Tree blob at 82000000
>>> Booting using the fdt blob at 0x82000000
>>> Loading Device Tree to 00000000fdf0f000, end 00000000fdf21f30 ... OK
>>>
>>> [kernel boot]
>>>
>>> The diff I'm carrying on top of [1] is below.
>>>
>>>> Also, does the same card + board combination work in kernel? That should help us point to hardware vs U-boot.
>>>>
>>>
>>> The same card on the same board works without complaints with the kernel
>>> driver (5.8-rc5 at the moment). Even more strange, the same card a
>>> different board (IOT2050 Basic, some SoC series, slightly different
>>> type) does not throw those errors with the same U-Boot.
>>
>> Was this card working with an older U-boot version and only failing in mainline?
>>
>>>
>>> Note that we are still carrying those clock swapping changes in [2].
>>> I've also tried to remove it, but it has no impact on this issue.
>>>
>>
>> One more thing to try is to reduce the speed mode to default as we are already gating frequency
>> to 25 MHz. Can you modify the sdhci-caps-mask to the following for sdhci1?
>>
>> sdhci-caps-mask = <0x7 0x200000>;
>>
>
> You'll need to apply this fix for this mask to work:
>
> https://patchwork.ozlabs.org/project/uboot/patch/20200723041219.2438-1-faiz_abbas at ti.com/
>
BTW, could this be queued for upstream? We depend on it now.
Thanks,
Jan
PS: Subject has a typo ("correspnding").
next prev parent reply other threads:[~2020-08-13 9:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-18 14:47 am654_sdhci: mmc fail to send stop cmd Jan Kiszka
2020-07-20 1:21 ` Peng Fan
2020-07-20 4:39 ` Jan Kiszka
2020-07-20 23:23 ` Jaehoon Chung
2020-07-21 6:36 ` Jan Kiszka
2020-07-21 17:03 ` Faiz Abbas
2020-07-21 17:22 ` Jan Kiszka
2020-07-23 3:25 ` Faiz Abbas
2020-07-23 4:14 ` Faiz Abbas
2020-08-13 9:09 ` Jan Kiszka [this message]
2020-07-23 5:25 ` Jan Kiszka
2020-07-23 5:48 ` Jan Kiszka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14607234-d102-3e50-258c-079da7c017ee@web.de \
--to=jan.kiszka@web.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox