All of lore.kernel.org
 help / color / mirror / Atom feed
* OMAP35x MMC Host Controller compatibility with SDXC?
@ 2013-09-17 21:02 Kevyn-Alexandre Paré
  2013-09-19 14:31 ` Balaji T K
  0 siblings, 1 reply; 3+ messages in thread
From: Kevyn-Alexandre Paré @ 2013-09-17 21:02 UTC (permalink / raw)
  To: linux-mmc, linux-omap; +Cc: x0khasim, madhu.cr, mjalori

Hi,

My question is related to the drivers/mmc/host/omap_hsmmc.c host
controller compatibility with SDXC for the OMAP35x?

Reading the TRM for OMAP35x:
http://www.ti.com/lit/ug/spruf98x/spruf98x.pdf

It's said that:
- Full compliance with SD command/response sets as defined in the SD
Memory Card Specifications, v2.0 including high-capacity SDHC cards up
to 32GB.

- Full compliance with sets as defined in the SD Card Specification,
Part A2, SD Host Controller Standard Specification, v2.00

It doesn't mention the SDXC?
I'm trying to found my way through all the spec of sdcard.org.

I'm still wondering why using SDXC of 64GB is working and doesn't pop
a WARNING message and if it's safe??

My test shows that I'm having some timeout in some cases (v3.4.60):
omap_hsmmc omap_hsmmc.0: IRQ Status is 18000
omap_hsmmc omap_hsmmc.0: MMC IRQ 0x18000 : ERRI CTO
mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
mmc0: starting CMD52 arg 80000c08 flags 00000195

omap_hsmmc omap_hsmmc.0: mmc0: CMD5, argument 0x00000000
omap_hsmmc omap_hsmmc.0: IRQ Status is 18000
omap_hsmmc omap_hsmmc.0: MMC IRQ 0x18000 : ERRI CTO
mmc0: req failed (CMD5): -110, retrying...

mmc1: starting CMD8 arg 000001aa flags 000002f5
omap_hsmmc omap_hsmmc.1: mmc1: CMD8, argument 0x000001aa
mmc0: starting CMD18 arg 00020000 flags 000000b5
omap_hsmmc omap_hsmmc.1: IRQ Status is 18000
omap_hsmmc omap_hsmmc.1: MMC IRQ 0x18000 : ERRI CTO
mmc1: req done (CMD8): -110: 00000000 00000000 00000000 00000000

So CMD 52,5 and 8 gives me timeout...

Looking at the 3.11.1 there is 2 more validation for UHS that are not in 3.4.60:
omap_hsmmc_set_clock  // Enable High-Speed Support
omap_set_bus_width

Is it safe to use SDXC with OMAP35x or not? Should this pop a error message?

Best Regards,

-KA

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

* Re: OMAP35x MMC Host Controller compatibility with SDXC?
  2013-09-17 21:02 OMAP35x MMC Host Controller compatibility with SDXC? Kevyn-Alexandre Paré
@ 2013-09-19 14:31 ` Balaji T K
  2013-09-20 17:13   ` Kevyn-Alexandre Paré
  0 siblings, 1 reply; 3+ messages in thread
From: Balaji T K @ 2013-09-19 14:31 UTC (permalink / raw)
  To: Kevyn-Alexandre Paré; +Cc: linux-mmc, linux-omap

On Wednesday 18 September 2013 02:32 AM, Kevyn-Alexandre Paré wrote:
> Hi,
>
> My question is related to the drivers/mmc/host/omap_hsmmc.c host
> controller compatibility with SDXC for the OMAP35x?
>
> Reading the TRM for OMAP35x:
> http://www.ti.com/lit/ug/spruf98x/spruf98x.pdf
>
> It's said that:
> - Full compliance with SD command/response sets as defined in the SD
> Memory Card Specifications, v2.0 including high-capacity SDHC cards up
> to 32GB.
>
> - Full compliance with sets as defined in the SD Card Specification,
> Part A2, SD Host Controller Standard Specification, v2.00
>
> It doesn't mention the SDXC?
> I'm trying to found my way through all the spec of sdcard.org.
>
> I'm still wondering why using SDXC of 64GB is working and doesn't pop
> a WARNING message and if it's safe??
>
> My test shows that I'm having some timeout in some cases (v3.4.60):
> omap_hsmmc omap_hsmmc.0: IRQ Status is 18000
> omap_hsmmc omap_hsmmc.0: MMC IRQ 0x18000 : ERRI CTO
> mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
> mmc0: starting CMD52 arg 80000c08 flags 00000195
>
> omap_hsmmc omap_hsmmc.0: mmc0: CMD5, argument 0x00000000
> omap_hsmmc omap_hsmmc.0: IRQ Status is 18000
> omap_hsmmc omap_hsmmc.0: MMC IRQ 0x18000 : ERRI CTO
> mmc0: req failed (CMD5): -110, retrying...
>
> mmc1: starting CMD8 arg 000001aa flags 000002f5
> omap_hsmmc omap_hsmmc.1: mmc1: CMD8, argument 0x000001aa
> mmc0: starting CMD18 arg 00020000 flags 000000b5
> omap_hsmmc omap_hsmmc.1: IRQ Status is 18000
> omap_hsmmc omap_hsmmc.1: MMC IRQ 0x18000 : ERRI CTO
> mmc1: req done (CMD8): -110: 00000000 00000000 00000000 00000000
>
> So CMD 52,5 and 8 gives me timeout...

For SD cards, these cmd's are expected to timeout during card initialization.

>
> Looking at the 3.11.1 there is 2 more validation for UHS that are not in 3.4.60:
> omap_hsmmc_set_clock  // Enable High-Speed Support
> omap_set_bus_width
>

Those changes are not for SD3.0 speed modes

> Is it safe to use SDXC with OMAP35x or not? Should this pop a error message?

SDXC cards should work albeit at High Speed mode (as in SD2.0).
Refer to [1] for card size Vs speed mode/SD spec version.
Can you check if the filesystem type on SDXC card
is supported by the system software running on OMAP35x.

[1]
https://www.sdcard.org/consumers/speed/bus_speed/

>
> Best Regards,
>
> -KA
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


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

* Re: OMAP35x MMC Host Controller compatibility with SDXC?
  2013-09-19 14:31 ` Balaji T K
@ 2013-09-20 17:13   ` Kevyn-Alexandre Paré
  0 siblings, 0 replies; 3+ messages in thread
From: Kevyn-Alexandre Paré @ 2013-09-20 17:13 UTC (permalink / raw)
  To: Balaji T K; +Cc: linux-mmc, linux-omap

Hi Balaji,

>> My test shows that I'm having some timeout in some cases (v3.4.60):
>> omap_hsmmc omap_hsmmc.0: IRQ Status is 18000
>> omap_hsmmc omap_hsmmc.0: MMC IRQ 0x18000 : ERRI CTO
>> mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
>> mmc0: starting CMD52 arg 80000c08 flags 00000195
>>
>> omap_hsmmc omap_hsmmc.0: mmc0: CMD5, argument 0x00000000
>> omap_hsmmc omap_hsmmc.0: IRQ Status is 18000
>> omap_hsmmc omap_hsmmc.0: MMC IRQ 0x18000 : ERRI CTO
>> mmc0: req failed (CMD5): -110, retrying...
>>
>> mmc1: starting CMD8 arg 000001aa flags 000002f5
>> omap_hsmmc omap_hsmmc.1: mmc1: CMD8, argument 0x000001aa
>> mmc0: starting CMD18 arg 00020000 flags 000000b5
>> omap_hsmmc omap_hsmmc.1: IRQ Status is 18000
>> omap_hsmmc omap_hsmmc.1: MMC IRQ 0x18000 : ERRI CTO
>> mmc1: req done (CMD8): -110: 00000000 00000000 00000000 00000000
>>
>> So CMD 52,5 and 8 gives me timeout...
>
>
> For SD cards, these cmd's are expected to timeout during card
> initialization.

When you say that they are expected to timeout for SD are you
including for microSD also? So for what will it not timeout normally
(CMD 52,5 and 8)?

>> Looking at the 3.11.1 there is 2 more validation for UHS that are not in
>> 3.4.60:
>> omap_hsmmc_set_clock  // Enable High-Speed Support
>> omap_set_bus_width
>>
>
> Those changes are not for SD3.0 speed modes

thx for the confirmation.

>> Is it safe to use SDXC with OMAP35x or not? Should this pop a error
>> message?
>
>
> SDXC cards should work albeit at High Speed mode (as in SD2.0).
> Refer to [1] for card size Vs speed mode/SD spec version.

Your link clearly says that there should be no problem running SDXC
with Spec 2.0:

High Speed  SD, SDHC and SDXC ---  25MB/s 2.00

> Can you check if the filesystem type on SDXC card
> is supported by the system software running on OMAP35x.

By that you mean?

I'm using similar script as this one to partition my system:
http://git.sakoman.com/git/gitweb.cgi?p=meta-sakoman.git;a=blob;f=scripts/mksdcard.sh;h=a817935dba988f6f0f0c3dd534374797a661034e;hb=HEAD

Creating 2 partition boot (FAT32) and rootfs (EXT3):
mkfs.vfat -F 32 -n boot ${PART1}
mke2fs -j -L rootfs ${PART2}


Just to help you understand a bit more the reason of my question. I'm
having a MMC error only with (micro)SDXC 64GB ((micro)SDHC 32GB no
problem so far) and our system is not booting the rootfs.

card mmcblk0: error -110 sending status command, retrying
... (stuck there infinitely if tune2fs -e continue)
see my post:
http://marc.info/?l=linux-omap&m=137764004920777&w=3

Best Regards,

-KA

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

end of thread, other threads:[~2013-09-20 17:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-17 21:02 OMAP35x MMC Host Controller compatibility with SDXC? Kevyn-Alexandre Paré
2013-09-19 14:31 ` Balaji T K
2013-09-20 17:13   ` Kevyn-Alexandre Paré

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.