mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* rk3288: mmcblk0: error -110 sending status command, retrying
@ 2017-08-02 11:09 Jagan Teki
  2017-08-03  8:18 ` Shawn Lin
  0 siblings, 1 reply; 3+ messages in thread
From: Jagan Teki @ 2017-08-02 11:09 UTC (permalink / raw)
  To: Jaehoon Chung, Ulf Hansson, Heiko Stuebner
  Cc: linux-mmc, linux-arm-kernel, linux-rockchip, linux-kernel

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 | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rk3288: mmcblk0: error -110 sending status command, retrying
  2017-08-02 11:09 rk3288: mmcblk0: error -110 sending status command, retrying Jagan Teki
@ 2017-08-03  8:18 ` Shawn Lin
  2017-08-03  9:35   ` Jagan Teki
  0 siblings, 1 reply; 3+ messages in thread
From: Shawn Lin @ 2017-08-03  8:18 UTC (permalink / raw)
  To: Jagan Teki, Heiko Stuebner
  Cc: Jaehoon Chung, Ulf Hansson, shawn.lin, linux-mmc,
	linux-arm-kernel, linux-rockchip, linux-kernel


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!
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rk3288: mmcblk0: error -110 sending status command, retrying
  2017-08-03  8:18 ` Shawn Lin
@ 2017-08-03  9:35   ` Jagan Teki
  0 siblings, 0 replies; 3+ messages in thread
From: Jagan Teki @ 2017-08-03  9:35 UTC (permalink / raw)
  To: Shawn Lin
  Cc: Heiko Stuebner, Jaehoon Chung, Ulf Hansson, linux-mmc,
	linux-arm-kernel, linux-rockchip, linux-kernel

On Thu, Aug 3, 2017 at 1:48 PM, Shawn Lin <shawn.lin@rock-chips.com> 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 | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-03  9:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-02 11:09 rk3288: mmcblk0: error -110 sending status command, retrying Jagan Teki
2017-08-03  8:18 ` Shawn Lin
2017-08-03  9:35   ` Jagan Teki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®