* SD card reader problems on Cherry-Trail @ 2017-10-04 15:00 Carlo Caione 2017-10-05 7:52 ` Ulf Hansson 0 siblings, 1 reply; 11+ messages in thread From: Carlo Caione @ 2017-10-04 15:00 UTC (permalink / raw) To: linux-mmc; +Cc: Ulf Hansson Haye, I'm working on a Cherry-Trail laptop shipping an SDHCI controller on ACPI [80860F14:03]. The problem is that on this hardware the controller seems to be particularly picky about the type of SD cards it likes. In particular: - With ultra high speed DDR50 SDHC cards I see no problems - With ultra high speed SDR104 SDHC cards as soon as the card is inserted I get: mmc2: Tuning timeout, falling back to fixed sampling clock mmc2: new ultra high speed SDR104 SDHC card at address 59b4 mmcblk2: mmc2:59b4 USD00 15.0 GiB mmc2: Timeout waiting for hardware interrupt. mmc2: sdhci: ============ SDHCI REGISTER DUMP =========== mmc2: sdhci: Sys addr: 0x00000008 | Version: 0x00001002 mmc2: sdhci: Blk size: 0x00007200 | Blk cnt: 0x00000008 mmc2: sdhci: Argument: 0x00000000 | Trn mode: 0x0000003b mmc2: sdhci: Present: 0x01ff0001 | Host ctl: 0x00000017 mmc2: sdhci: Power: 0x0000000f | Blk gap: 0x00000080 mmc2: sdhci: Wake-up: 0x00000000 | Clock: 0x00000007 mmc2: sdhci: Timeout: 0x0000000a | Int stat: 0x00000000 mmc2: sdhci: Int enab: 0x02ff008b | Sig enab: 0x02ff008b mmc2: sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000 mmc2: sdhci: Caps: 0x0568c8b2 | Caps_1: 0x00000807 mmc2: sdhci: Cmd: 0x0000123a | Max curr: 0x00000000 mmc2: sdhci: Resp[0]: 0x00000000 | Resp[1]: 0x0077dd7f mmc2: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00000000 mmc2: sdhci: Host ctl2: 0x0000800b mmc2: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x335c9200 mmc2: sdhci: ============================================ mmcblk2: error -110 sending status command, retrying mmcblk2: error -110 sending status command, retrying mmcblk2: error -110 sending status command, aborting reading and writing is painfully slow. - With high speed SDHC cards I get a weird behavior where apparently there is no problem but it's impossible to format the card. mkfs.ext4 gets stuck at: Discarding device blocks: 4096/3778299 Have you ever seen something like this or any hint how to debug this mess? Cheers, -- Carlo Caione | +39.340.80.30.096 | Endless ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: SD card reader problems on Cherry-Trail 2017-10-04 15:00 SD card reader problems on Cherry-Trail Carlo Caione @ 2017-10-05 7:52 ` Ulf Hansson 2017-10-05 7:59 ` Carlo Caione 0 siblings, 1 reply; 11+ messages in thread From: Ulf Hansson @ 2017-10-05 7:52 UTC (permalink / raw) To: Carlo Caione; +Cc: linux-mmc, Adrian Hunter + Adrian On 4 October 2017 at 17:00, Carlo Caione <carlo@endlessm.com> wrote: > Haye, > I'm working on a Cherry-Trail laptop shipping an SDHCI controller on > ACPI [80860F14:03]. > The problem is that on this hardware the controller seems to be > particularly picky about the type of SD cards it likes. In particular: > > - With ultra high speed DDR50 SDHC cards I see no problems > - With ultra high speed SDR104 SDHC cards as soon as the card is inserted I get: > > mmc2: Tuning timeout, falling back to fixed sampling clock > mmc2: new ultra high speed SDR104 SDHC card at address 59b4 > mmcblk2: mmc2:59b4 USD00 15.0 GiB > mmc2: Timeout waiting for hardware interrupt. > mmc2: sdhci: ============ SDHCI REGISTER DUMP =========== > mmc2: sdhci: Sys addr: 0x00000008 | Version: 0x00001002 > mmc2: sdhci: Blk size: 0x00007200 | Blk cnt: 0x00000008 > mmc2: sdhci: Argument: 0x00000000 | Trn mode: 0x0000003b > mmc2: sdhci: Present: 0x01ff0001 | Host ctl: 0x00000017 > mmc2: sdhci: Power: 0x0000000f | Blk gap: 0x00000080 > mmc2: sdhci: Wake-up: 0x00000000 | Clock: 0x00000007 > mmc2: sdhci: Timeout: 0x0000000a | Int stat: 0x00000000 > mmc2: sdhci: Int enab: 0x02ff008b | Sig enab: 0x02ff008b > mmc2: sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000 > mmc2: sdhci: Caps: 0x0568c8b2 | Caps_1: 0x00000807 > mmc2: sdhci: Cmd: 0x0000123a | Max curr: 0x00000000 > mmc2: sdhci: Resp[0]: 0x00000000 | Resp[1]: 0x0077dd7f > mmc2: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00000000 > mmc2: sdhci: Host ctl2: 0x0000800b > mmc2: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x335c9200 > mmc2: sdhci: ============================================ > mmcblk2: error -110 sending status command, retrying > mmcblk2: error -110 sending status command, retrying > mmcblk2: error -110 sending status command, aborting > > reading and writing is painfully slow. > > - With high speed SDHC cards I get a weird behavior where apparently > there is no problem but it's impossible to format the card. mkfs.ext4 > gets stuck at: > > Discarding device blocks: 4096/3778299 > > Have you ever seen something like this or any hint how to debug this mess? Looping in Adrian, as he maintains sdhci. I guess some more useful information would also be about what commit you are running and whether this is a regression or not. Kind regards Uffe ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: SD card reader problems on Cherry-Trail 2017-10-05 7:52 ` Ulf Hansson @ 2017-10-05 7:59 ` Carlo Caione 2017-10-05 8:10 ` Adrian Hunter 0 siblings, 1 reply; 11+ messages in thread From: Carlo Caione @ 2017-10-05 7:59 UTC (permalink / raw) To: Ulf Hansson; +Cc: linux-mmc, Adrian Hunter On Thu, Oct 5, 2017 at 9:52 AM, Ulf Hansson <ulf.hansson@linaro.org> wrote: > + Adrian /cut >> - With high speed SDHC cards I get a weird behavior where apparently >> there is no problem but it's impossible to format the card. mkfs.ext4 >> gets stuck at: >> >> Discarding device blocks: 4096/3778299 Just discovered that this is just reeeeeally slow, not stuck. Still something is fishy about this. /cut > Looping in Adrian, as he maintains sdhci. > > I guess some more useful information would also be about what commit > you are running and whether this is a regression or not. Yeah, some more info: - Reproduced with the latest master on linus repo (4.14.0-rc3) - No idea if this is a regression or not. This is a new hardware we are trying to enable and I have never seen it working fine (I should blindly try some old kernel) - Windows is working fine so not an HW issue - CPU is x5-Z8350 Thanks, -- Carlo Caione | +39.340.80.30.096 | Endless ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: SD card reader problems on Cherry-Trail 2017-10-05 7:59 ` Carlo Caione @ 2017-10-05 8:10 ` Adrian Hunter 2017-10-05 8:26 ` Carlo Caione 0 siblings, 1 reply; 11+ messages in thread From: Adrian Hunter @ 2017-10-05 8:10 UTC (permalink / raw) To: Carlo Caione, Ulf Hansson; +Cc: linux-mmc On 05/10/17 10:59, Carlo Caione wrote: > On Thu, Oct 5, 2017 at 9:52 AM, Ulf Hansson <ulf.hansson@linaro.org> wrote: >> + Adrian > > /cut >>> - With high speed SDHC cards I get a weird behavior where apparently >>> there is no problem but it's impossible to format the card. mkfs.ext4 >>> gets stuck at: >>> >>> Discarding device blocks: 4096/3778299 > > Just discovered that this is just reeeeeally slow, not stuck. Still > something is fishy about this. > > /cut >> Looping in Adrian, as he maintains sdhci. >> >> I guess some more useful information would also be about what commit >> you are running and whether this is a regression or not. > > Yeah, some more info: > > - Reproduced with the latest master on linus repo (4.14.0-rc3) > - No idea if this is a regression or not. This is a new hardware we > are trying to enable and I have never seen it working fine (I should > blindly try some old kernel) > - Windows is working fine so not an HW issue > - CPU is x5-Z8350 Can you provide an acpidump? ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: SD card reader problems on Cherry-Trail 2017-10-05 8:10 ` Adrian Hunter @ 2017-10-05 8:26 ` Carlo Caione 2017-10-10 9:22 ` Carlo Caione 0 siblings, 1 reply; 11+ messages in thread From: Carlo Caione @ 2017-10-05 8:26 UTC (permalink / raw) To: Adrian Hunter; +Cc: Ulf Hansson, linux-mmc On Thu, Oct 5, 2017 at 10:10 AM, Adrian Hunter <adrian.hunter@intel.com> wrote: > On 05/10/17 10:59, Carlo Caione wrote: >> On Thu, Oct 5, 2017 at 9:52 AM, Ulf Hansson <ulf.hansson@linaro.org> wrote: >>> + Adrian >> >> /cut >>>> - With high speed SDHC cards I get a weird behavior where apparently >>>> there is no problem but it's impossible to format the card. mkfs.ext4 >>>> gets stuck at: >>>> >>>> Discarding device blocks: 4096/3778299 >> >> Just discovered that this is just reeeeeally slow, not stuck. Still >> something is fishy about this. >> >> /cut >>> Looping in Adrian, as he maintains sdhci. >>> >>> I guess some more useful information would also be about what commit >>> you are running and whether this is a regression or not. >> >> Yeah, some more info: >> >> - Reproduced with the latest master on linus repo (4.14.0-rc3) >> - No idea if this is a regression or not. This is a new hardware we >> are trying to enable and I have never seen it working fine (I should >> blindly try some old kernel) >> - Windows is working fine so not an HW issue >> - CPU is x5-Z8350 > > Can you provide an acpidump? DSDT https://paste.fedoraproject.org/paste/DXlkVidxM7U9LS2OpqvLGQ/raw -- Carlo Caione | +39.340.80.30.096 | Endless ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: SD card reader problems on Cherry-Trail 2017-10-05 8:26 ` Carlo Caione @ 2017-10-10 9:22 ` Carlo Caione 2017-10-10 9:22 ` Adrian Hunter 0 siblings, 1 reply; 11+ messages in thread From: Carlo Caione @ 2017-10-10 9:22 UTC (permalink / raw) To: Adrian Hunter; +Cc: Ulf Hansson, linux-mmc On Thu, Oct 5, 2017 at 10:26 AM, Carlo Caione <carlo@endlessm.com> wrote: /cut >>> - Reproduced with the latest master on linus repo (4.14.0-rc3) >>> - No idea if this is a regression or not. This is a new hardware we >>> are trying to enable and I have never seen it working fine (I should >>> blindly try some old kernel) >>> - Windows is working fine so not an HW issue >>> - CPU is x5-Z8350 >> >> Can you provide an acpidump? > > DSDT https://paste.fedoraproject.org/paste/DXlkVidxM7U9LS2OpqvLGQ/raw Hey Adrian, any idea about this issue? Cheers, -- Carlo Caione | +39.340.80.30.096 | Endless ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: SD card reader problems on Cherry-Trail 2017-10-10 9:22 ` Carlo Caione @ 2017-10-10 9:22 ` Adrian Hunter 2017-10-10 9:31 ` Carlo Caione 0 siblings, 1 reply; 11+ messages in thread From: Adrian Hunter @ 2017-10-10 9:22 UTC (permalink / raw) To: Carlo Caione; +Cc: Ulf Hansson, linux-mmc On 10/10/17 12:22, Carlo Caione wrote: > On Thu, Oct 5, 2017 at 10:26 AM, Carlo Caione <carlo@endlessm.com> wrote: > > /cut >>>> - Reproduced with the latest master on linus repo (4.14.0-rc3) >>>> - No idea if this is a regression or not. This is a new hardware we >>>> are trying to enable and I have never seen it working fine (I should >>>> blindly try some old kernel) >>>> - Windows is working fine so not an HW issue >>>> - CPU is x5-Z8350 >>> >>> Can you provide an acpidump? >> >> DSDT https://paste.fedoraproject.org/paste/DXlkVidxM7U9LS2OpqvLGQ/raw > > Hey Adrian, > any idea about this issue? Yes, but it is complicated so I don't have a patch ready just yet. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: SD card reader problems on Cherry-Trail 2017-10-10 9:22 ` Adrian Hunter @ 2017-10-10 9:31 ` Carlo Caione 2017-10-19 11:19 ` Carlo Caione 0 siblings, 1 reply; 11+ messages in thread From: Carlo Caione @ 2017-10-10 9:31 UTC (permalink / raw) To: Adrian Hunter; +Cc: Ulf Hansson, linux-mmc On Tue, Oct 10, 2017 at 11:22 AM, Adrian Hunter <adrian.hunter@intel.com> wrote: > On 10/10/17 12:22, Carlo Caione wrote: >> On Thu, Oct 5, 2017 at 10:26 AM, Carlo Caione <carlo@endlessm.com> wrote: >> >> /cut >>>>> - Reproduced with the latest master on linus repo (4.14.0-rc3) >>>>> - No idea if this is a regression or not. This is a new hardware we >>>>> are trying to enable and I have never seen it working fine (I should >>>>> blindly try some old kernel) >>>>> - Windows is working fine so not an HW issue >>>>> - CPU is x5-Z8350 >>>> >>>> Can you provide an acpidump? >>> >>> DSDT https://paste.fedoraproject.org/paste/DXlkVidxM7U9LS2OpqvLGQ/raw >> >> Hey Adrian, >> any idea about this issue? > > Yes, but it is complicated so I don't have a patch ready just yet. Alright, can you explain a bit what's the problem? Thank you for looking into this, -- Carlo Caione | +39.340.80.30.096 | Endless ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: SD card reader problems on Cherry-Trail 2017-10-10 9:31 ` Carlo Caione @ 2017-10-19 11:19 ` Carlo Caione 2017-10-19 11:27 ` Adrian Hunter 0 siblings, 1 reply; 11+ messages in thread From: Carlo Caione @ 2017-10-19 11:19 UTC (permalink / raw) To: Adrian Hunter; +Cc: Ulf Hansson, linux-mmc, Linux Upstreaming Team On Tue, Oct 10, 2017 at 10:31 AM, Carlo Caione <carlo@endlessm.com> wrote: > On Tue, Oct 10, 2017 at 11:22 AM, Adrian Hunter <adrian.hunter@intel.com> wrote: >> On 10/10/17 12:22, Carlo Caione wrote: /cut >> Yes, but it is complicated so I don't have a patch ready just yet. > > Alright, can you explain a bit what's the problem? > > Thank you for looking into this, Hey Adrian, any news (or just some more information) about this issue? Cheers, -- Carlo Caione | +39.340.80.30.096 | Endless ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: SD card reader problems on Cherry-Trail 2017-10-19 11:19 ` Carlo Caione @ 2017-10-19 11:27 ` Adrian Hunter 2017-11-01 2:38 ` Carlo Caione 0 siblings, 1 reply; 11+ messages in thread From: Adrian Hunter @ 2017-10-19 11:27 UTC (permalink / raw) To: Carlo Caione; +Cc: Ulf Hansson, linux-mmc, Linux Upstreaming Team On 19/10/17 14:19, Carlo Caione wrote: > On Tue, Oct 10, 2017 at 10:31 AM, Carlo Caione <carlo@endlessm.com> wrote: >> On Tue, Oct 10, 2017 at 11:22 AM, Adrian Hunter <adrian.hunter@intel.com> wrote: >>> On 10/10/17 12:22, Carlo Caione wrote: > > /cut >>> Yes, but it is complicated so I don't have a patch ready just yet. >> >> Alright, can you explain a bit what's the problem? >> >> Thank you for looking into this, > > Hey Adrian, > any news (or just some more information) about this issue? The patches I just sent should help a bit: https://marc.info/?l=linux-mmc&m=150841011918586 There is also a dependency on the I2C adapter, so you need CONFIGF_I2C_DESIGNWARE_BAYTRAIL=y but sdhci-acpi still needs to be taught to wait for the I2C adapter to initialize. I am still working on that. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: SD card reader problems on Cherry-Trail 2017-10-19 11:27 ` Adrian Hunter @ 2017-11-01 2:38 ` Carlo Caione 0 siblings, 0 replies; 11+ messages in thread From: Carlo Caione @ 2017-11-01 2:38 UTC (permalink / raw) To: Adrian Hunter; +Cc: Ulf Hansson, linux-mmc, Linux Upstreaming Team On Thu, Oct 19, 2017 at 12:27 PM, Adrian Hunter <adrian.hunter@intel.com> wrote: > On 19/10/17 14:19, Carlo Caione wrote: >> On Tue, Oct 10, 2017 at 10:31 AM, Carlo Caione <carlo@endlessm.com> wrote: >>> On Tue, Oct 10, 2017 at 11:22 AM, Adrian Hunter <adrian.hunter@intel.com> wrote: >>>> On 10/10/17 12:22, Carlo Caione wrote: >> >> /cut >>>> Yes, but it is complicated so I don't have a patch ready just yet. >>> >>> Alright, can you explain a bit what's the problem? >>> >>> Thank you for looking into this, >> >> Hey Adrian, >> any news (or just some more information) about this issue? > > The patches I just sent should help a bit: > > https://marc.info/?l=linux-mmc&m=150841011918586 > > There is also a dependency on the I2C adapter, so you need > CONFIGF_I2C_DESIGNWARE_BAYTRAIL=y but sdhci-acpi still needs to be taught to > wait for the I2C adapter to initialize. I am still working on that. Sorry for the late reply. I tried those patches but they didn't help much, still having problems with some SD cards. What's the status of this issue? (currently not subscribed to linux-mmc, sorry. BTW, could you please put me on CC if the discussion / patch submission is still going on about this problem?) Thank you very much, -- Carlo Caione | +39.340.80.30.096 | Endless ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2017-11-01 2:38 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-10-04 15:00 SD card reader problems on Cherry-Trail Carlo Caione 2017-10-05 7:52 ` Ulf Hansson 2017-10-05 7:59 ` Carlo Caione 2017-10-05 8:10 ` Adrian Hunter 2017-10-05 8:26 ` Carlo Caione 2017-10-10 9:22 ` Carlo Caione 2017-10-10 9:22 ` Adrian Hunter 2017-10-10 9:31 ` Carlo Caione 2017-10-19 11:19 ` Carlo Caione 2017-10-19 11:27 ` Adrian Hunter 2017-11-01 2:38 ` Carlo Caione
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.