2017-08-02 11:09:54

by Jagan Teki

[permalink] [raw]
Subject: rk3288: mmcblk0: error -110 sending status command, retrying

Hi,

Did anyone observing error -110 and -84 during boot on rk3288 target?
full log here[1] and used dts node is[2].

Proper card detection is done, once we insert after console came-up
# [ 39.635614] mmc0: card 59b4 removed
[ 40.645537] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req
400000Hz, actual 400000HZ div = 0)
[ 41.004559] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot
req 50000000Hz, actual 50000000HZ div = 0)
[ 41.015553] mmc0: new high speed SDXC card at address 59b4
[ 41.022015] mmcblk0: mmc0:59b4 MS 59.1 GiB
[ 41.028458] mmcblk0: p1 p2

Any help?

[1] https://paste.ubuntu.com/25225486/
[2] https://paste.ubuntu.com/25225915/

thanks!
--
Jagan Teki
Free Software Engineer | http://www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.


2017-08-03 08:18:26

by Shawn Lin

[permalink] [raw]
Subject: Re: rk3288: mmcblk0: error -110 sending status command, retrying


On 2017/8/2 19:09, Jagan Teki wrote:
> Hi,
>
> Did anyone observing error -110 and -84 during boot on rk3288 target?
> full log here[1] and used dts node is[2].

-100 is -ETIMEDOUT and -84 is CRC error. So that seems much likely HW
relevant. Have you check the SI of SD slot?

You don't enable UHS mode so the tuning process won't help.
But rockchip platforms have a default setting for sample delay.
See rockchip,default-sample-phase and try add some sample delay.

FYI: Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.txt



>
> Proper card detection is done, once we insert after console came-up
> # [ 39.635614] mmc0: card 59b4 removed
> [ 40.645537] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req
> 400000Hz, actual 400000HZ div = 0)
> [ 41.004559] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot
> req 50000000Hz, actual 50000000HZ div = 0)
> [ 41.015553] mmc0: new high speed SDXC card at address 59b4
> [ 41.022015] mmcblk0: mmc0:59b4 MS 59.1 GiB
> [ 41.028458] mmcblk0: p1 p2
>
> Any help?
>
> [1] https://paste.ubuntu.com/25225486/
> [2] https://paste.ubuntu.com/25225915/
>
> thanks!
>

2017-08-03 09:35:59

by Jagan Teki

[permalink] [raw]
Subject: Re: rk3288: mmcblk0: error -110 sending status command, retrying

On Thu, Aug 3, 2017 at 1:48 PM, Shawn Lin <[email protected]> wrote:
>
> On 2017/8/2 19:09, Jagan Teki wrote:
>>
>> Hi,
>>
>> Did anyone observing error -110 and -84 during boot on rk3288 target?
>> full log here[1] and used dts node is[2].
>
>
> -100 is -ETIMEDOUT and -84 is CRC error. So that seems much likely HW
> relevant. Have you check the SI of SD slot?

Does it means Serial Interface of SD, if yes. I've been added sdio0
for the same.

&sdio0 {
bus-width = <4>;
disable-wp;
non-removable;
pinctrl-names = "default";
pinctrl-0 = <&sdio0_bus4>, <&sdio0_cmd>, <&sdio0_clk>;
vmmc-supply = <&vcc_wl>;
vqmmc-supply = <&vccio_wl>;
status = "okay";
};

>
> You don't enable UHS mode so the tuning process won't help.

For UHS switch I've added vqmmc-supply
vccio_sd: vccio-sd-regulator {
compatible = "regulator-fixed";
regulator-name = "vccio_sd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc_io>;
};

And the slot detecting still 50MHz and timeout still effecting.
# fdisk -l
[ 120.572927] mmcblk0: error -110 sending status command, retrying
[ 120.579880] mmcblk0: error -110 sending status command, retrying
[ 120.586707] mmcblk0: error -110 sending status command, aborting
[ 120.596373] mmc_host mmc0: Regulator set non-error 0 - 3.3 V
[ 120.627875] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req
400000Hz, actual 400000HZ div = 0)
[ 120.701757] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot
req 50000000Hz, actual 50000000HZ div = 0)
Disk /dev/mmcblk0: 59 GB, 63483936768 bytes, 123992064 sectors
1937376 cylinders, 4 heads, 16 sectors/track
Units: cylinders of 64 * 512 = 32768 bytes

thanks!
--
Jagan Teki
Free Software Engineer | http://www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.