Skip to contentSkip to conversation

SD card timeout problems on Nokia N900 (omap_hsmmc on OMAP3)

DISCUSSION Sebastian Reichel 5 participants 5 messages Feb 25, 2014 – Feb 26, 2014 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

Hi,

I have problems with the SD-card initialization on my Nokia N900 using a 3.14-rc1 based kernel in DT boot mode. The bug is can be circumvented by changing the kernel slightly (e.g. remove some DT nodes or mark them as disabled). So the SD card's timeout problems seem to derive from kernel timing problems. I'm pretty sure, that the problems are not originating from a broken SD card, since

1. The SD card worked quite good before and still does depending on unrelated DTS changes (=> loading less drivers).
2. The SD card works flawlessly on my notebook using a USB adapter
3. Another SD card showed the same problem

I tried to git bisect the problem, but I just get shown some unrelated driver additions.

Anyways, this is the error I get during boot:

[    3.896820] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
...
[    5.956237] mmc0: error -110 whilst initialising SD card

I added some debug prints to trace the error:

* mmc_sd_init_card()
* mmc_sd_get_cid()
* mmc_send_app_op_cond()

Can you give me any hints how to find & fix the problem's source?

-- Sebastian

#1 lore raw

Hi Sebastian

Quoted 14 lines · Sebastian Reichel

Hi,

I have problems with the SD-card initialization on my Nokia N900 using a 3.14-rc1 based kernel in DT boot mode. The bug is can be circumvented by changing the kernel slightly (e.g. remove some DT nodes or mark them as disabled). So the SD card's timeout problems seem to derive from kernel timing problems. I'm pretty sure, that the problems are not originating from a broken SD card, since

1. The SD card worked quite good before and still does depending on unrelated DTS changes (=> loading less drivers).
2. The SD card works flawlessly on my notebook using a USB adapter
3. Another SD card showed the same problem

Quoted 9 lines

I tried to git bisect the problem, but I just get shown some unrelated driver additions.

Anyways, this is the error I get during boot:

[    3.896820] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
...
[    5.956237] mmc0: error -110 whilst initialising SD card

Are you sure that some subsystem that you deactivate don't change pin muxing setting? Can you check in the broken system if the pins of the sdcard are correctly muxed? Does it happen even if you change the sdcard?

Michael

Quoted 9 lines

I added some debug prints to trace the error:

* mmc_sd_init_card()
* mmc_sd_get_cid()
* mmc_send_app_op_cond()

Can you give me any hints how to find & fix the problem's source?

-- Sebastian

#2 lore raw

Hi Sebastian,

Quoted 22 lines · Michael Trimarchi

Hi Sebastian

Quoted 19 lines · Sebastian Reichel

Hi,

I have problems with the SD-card initialization on my Nokia N900 using a 3.14-rc1 based kernel in DT boot mode. The bug is can be circumvented by changing the kernel slightly (e.g. remove some DT nodes or mark them as disabled). So the SD card's timeout problems seem to derive from kernel timing problems. I'm pretty sure, that the problems are not originating from a broken SD card, since

1. The SD card worked quite good before and still does depending on unrelated DTS changes (=> loading less drivers).
2. The SD card works flawlessly on my notebook using a USB adapter
3. Another SD card showed the same problem

I tried to git bisect the problem, but I just get shown some unrelated driver additions.

Anyways, this is the error I get during boot:

Quoted 8 lines
Quoted 4 lines
[    3.896820] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
...
[    5.956237] mmc0: error -110 whilst initialising SD card

Are you sure that some subsystem that you deactivate don't change pin muxing setting? Can you check in the broken system if the pins of the sdcard are correctly muxed? Does it happen even if you change the sdcard?

Did you try to add this patch series:

http://www.spinics.net/lists/linux-omap/msg103264.html

Without it I'm also having problems with MMC detection on some OMAP3 based boards.

Balaji, what is the status of this patch series? Are there any chances that it will be included in v3.14?

Thanks,
Stefan

#3 lore raw
Quoted 14 lines · Stefan Roese

Hi Sebastian,

Quoted 11 lines · Michael Trimarchi

Hi Sebastian

Quoted 8 lines · Sebastian Reichel

Hi,

I have problems with the SD-card initialization on my Nokia N900 using a 3.14-rc1 based kernel in DT boot mode. The bug is can be circumvented by changing the kernel slightly (e.g. remove some DT nodes or mark them as disabled). So the SD card's timeout problems seem to derive from kernel timing problems. I'm pretty sure, that the problems are not originating from a broken SD card, since

Can you provide removed/Disabled dt nodes, it might give some clue ?

Quoted 20 lines
Quoted 11 lines
Quoted 11 lines

1. The SD card worked quite good before and still does depending on unrelated DTS changes (=> loading less drivers).
2. The SD card works flawlessly on my notebook using a USB adapter
3. Another SD card showed the same problem

I tried to git bisect the problem, but I just get shown some unrelated driver additions.

Anyways, this is the error I get during boot:

Quoted 8 lines
Quoted 4 lines
[    3.896820] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
...
[    5.956237] mmc0: error -110 whilst initialising SD card

Are you sure that some subsystem that you deactivate don't change pin muxing setting? Can you check in the broken system if the pins of the sdcard are correctly muxed? Does it happen even if you change the sdcard?

Quoted 8 lines

Did you try to add this patch series:

http://www.spinics.net/lists/linux-omap/msg103264.html

Without it I'm also having problems with MMC detection on some OMAP3 based boards.

Balaji, what is the status of this patch series? Are there any chances that it will be included in v3.14?

Due to dependencies between regulator, mmc, omap def config, devicetree changes, I am hoping either Chris or Tony pick the whole series for 3.15

Couple of tested-by will surely help.

Thanks and Regards,
Balaji T K

#4 lore raw
Quoted 42 lines · Balaji T K
Quoted 14 lines · Stefan Roese

Hi Sebastian,

Quoted 11 lines · Michael Trimarchi

Hi Sebastian

Quoted 8 lines · Sebastian Reichel

Hi,

I have problems with the SD-card initialization on my Nokia N900 using a 3.14-rc1 based kernel in DT boot mode. The bug is can be circumvented by changing the kernel slightly (e.g. remove some DT nodes or mark them as disabled). So the SD card's timeout problems seem to derive from kernel timing problems. I'm pretty sure, that the problems are not originating from a broken SD card, since

Can you provide removed/Disabled dt nodes, it might give some clue ?

Quoted 24 lines
Quoted 11 lines
Quoted 11 lines

1. The SD card worked quite good before and still does depending on unrelated DTS changes (=> loading less drivers).
2. The SD card works flawlessly on my notebook using a USB adapter
3. Another SD card showed the same problem

I tried to git bisect the problem, but I just get shown some unrelated driver additions.

Anyways, this is the error I get during boot:

Quoted 8 lines
Quoted 4 lines
[    3.896820] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
...
[    5.956237] mmc0: error -110 whilst initialising SD card

Are you sure that some subsystem that you deactivate don't change pin muxing setting? Can you check in the broken system if the pins of the sdcard are correctly muxed? Does it happen even if you change the sdcard?

Did you try to add this patch series:

http://www.spinics.net/lists/linux-omap/msg103264.html

Quoted 7 lines
Quoted 4 lines

Without it I'm also having problems with MMC detection on some OMAP3 based boards.

Balaji, what is the status of this patch series? Are there any chances that it will be included in v3.14?

Due to dependencies between regulator, mmc, omap def config, devicetree changes, I am hoping either Chris or Tony pick the whole series for 3.15

Best that Chris takes it all, I just acked the only patch that did not have my ack yet.

Quoted 1 line

Couple of tested-by will surely help.

Yeah please ack in the thread above if you did not already.

Regards,

Tony