#830303 sdhci_pci: SD card reader gives error "mmc0: error -110 whilst initialising SD card"

#830303#5
Date:
2016-07-08 01:22:02 UTC
From:
To:
I have a Zotac ZBox Nano CI320 (Intel N2930), which has a built-in SD card reader. However, it doesn't seem to be working.

I get the following dmesg errors when I insert a card:

Jul 07 17:21:06.417263 hostname kernel: mmc0: error -110 whilst initialising SD card
Jul 07 17:21:06.521245 hostname kernel: mmc0: error -110 whilst initialising SD card
Jul 07 17:21:06.658049 hostname kernel: mmc0: error -110 whilst initialising SD card
Jul 07 17:21:06.805167 hostname kernel: mmc0: error -110 whilst initialising SD card



Multiple known-good cards tested, all working in other systems.

This is what lspci says about the reader device:

00:12.0 SD Host controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SDIO Controller (rev 0e) (prog-if 01)
        Subsystem: ZOTAC International (MCO) Ltd. Atom Processor Z36xxx/Z37xxx Series SDIO ControllerDisINTx-
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 18bit, non-prefetchable) [size=4K]
        Region 0: Memory at d0817000 (32-bit, non-prefetchable) [size=4K]
        Region 1: Memory at d0816000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [80] Power Management version 3t=0mA PME(D0+,D1-,D2-,D3hot+,D3cold-)
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold-)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Kernel driver in use: sdhci-pci
        Kernel modules: sdhci_pci




I googled around and found a very large number of similar bugs on similar hardware (mostly laptops). I suspect this is a driver problem.

#830303#10
Date:
2016-08-09 08:18:32 UTC
From:
To:
Same here on a MacMini Mid 2011 model. This is on a brand new Samsung Evo 16GB
( http://www.samsung.com/us/computing/memory-storage/memory-cards/microsdhc-
16gb-evo-memory-card-with-adapter-mb-mp16da-am/ )

dmesg output below:

[  295.113992] sdhci: Timeout waiting for Buffer Read Ready interrupt during
tuning procedure, falling back to fixed sampling clock
[  295.114029] mmc0: new ultra high speed DDR50 SDHC card at address 59b4
[  295.114415] mmcblk0: mmc0:59b4 00000 14.9 GiB
[  295.124627] mmc0: Controller never released inhibit bit(s).
[  305.141901] mmc0: Timeout waiting for hardware interrupt.
[  305.142151] mmcblk0: error -110 sending status command, retrying
[  305.193940] sdhci: Timeout waiting for Buffer Read Ready interrupt during
tuning procedure, falling back to fixed sampling clock
[  315.221708] mmc0: Timeout waiting for hardware interrupt.
[  315.221903] mmcblk0: error -110 sending status command, retrying
[  315.273790] sdhci: Timeout waiting for Buffer Read Ready interrupt during
tuning procedure, falling back to fixed sampling clock
[  325.301602] mmc0: Timeout waiting for hardware interrupt.
[  325.301796] mmcblk0: error -110 sending status command, aborting
[  337.185452] sdhci: Timeout waiting for Buffer Read Ready interrupt during
tuning procedure, falling back to fixed sampling clock
[  337.185471] mmc0: tried to reset card
[  337.195437] mmc0: Controller never released inhibit bit(s).
[  347.221199] mmc0: Timeout waiting for hardware interrupt.
[  347.221504] mmcblk0: error -110 sending status command, retrying
[  347.273201] sdhci: Timeout waiting for Buffer Read Ready interrupt during
tuning procedure, falling back to fixed sampling clock
[  357.301043] mmc0: Timeout waiting for hardware interrupt.
[  357.301115] mmcblk0: error -110 sending status command, retrying
[  357.353031] sdhci: Timeout waiting for Buffer Read Ready interrupt during
tuning procedure, falling back to fixed sampling clock

#830303#15
Date:
2016-08-09 08:29:09 UTC
From:
To:
SD card works fine in OSX though. Most probably a linux driver issue.
#830303#20
Date:
2018-01-05 10:58:50 UTC
From:
To:
Same here, using a MacBookPro10,1. I cannot get the driver to work
when SDHC Samsung Evo 16GB is placed in card reader (bug is totally
reproducible). If I remove the card and place it in a USB reader
(USB-HUB reader) then everything is fine. I even tested using f3probe:

https://packages.qa.debian.org/f/f3.html

The card only work when placed in USB-HUB reader.

For reference:

[  220.210842] mmc0: Tuning timeout, falling back to fixed sampling clock
[  220.210934] mmc0: new ultra high speed DDR50 SDHC card at address 59b4
[  220.219075] mmcblk0: mmc0:59b4 00000 14.9 GiB
[  230.362858] mmc0: Timeout waiting for hardware interrupt.
[  230.362868] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  230.362918] mmc0: sdhci: Sys addr:  0x000000c8 | Version:  0x00001502
[  230.362927] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000008
[  230.362937] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x0000003b
[  230.362946] mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
[  230.362955] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  230.362964] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  230.362974] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  230.362982] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  230.362992] mmc0: sdhci: AC12 err:  0x00000010 | Slot int: 0x00000000
[  230.363001] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  230.363011] mmc0: sdhci: Cmd:       0x0000123a | Max curr: 0x00000000
[  230.363020] mmc0: sdhci: Resp[0]:   0x00001201 | Resp[1]:  0x00000000
[  230.363029] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
[  230.363035] mmc0: sdhci: Host ctl2: 0x0000804c
[  230.363047] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  230.363049] mmc0: sdhci: ============================================
[  230.363119] mmc0: Unexpected interrupt 0x04000000.
[  230.363128] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  230.363157] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001502
[  230.363166] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000008
[  230.363174] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x00000033
[  230.363184] mmc0: sdhci: Present:   0x1fff0001 | Host ctl: 0x0000001f
[  230.363193] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  230.363203] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  230.363214] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  230.363225] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  230.363234] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
[  230.363244] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  230.363253] mmc0: sdhci: Cmd:       0x00000c1a | Max curr: 0x00000000
[  230.363263] mmc0: sdhci: Resp[0]:   0x00001201 | Resp[1]:  0x00000000
[  230.363272] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
[  230.363278] mmc0: sdhci: Host ctl2: 0x0000800c
[  230.363292] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  230.363294] mmc0: sdhci: ============================================
[  230.363509] mmcblk0: error -110 sending stop command, original cmd
response 0x0, card status 0x400900
[  230.418897] mmc0: Tuning timeout, falling back to fixed sampling clock
[  240.602915] mmc0: Timeout waiting for hardware interrupt.
[  240.602924] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  240.602971] mmc0: sdhci: Sys addr:  0x000000c8 | Version:  0x00001502
[  240.602981] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000008
[  240.602989] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x0000003b
[  240.602999] mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
[  240.603008] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  240.603018] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  240.603027] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  240.603036] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  240.603045] mmc0: sdhci: AC12 err:  0x00000010 | Slot int: 0x00000000
[  240.603054] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  240.603063] mmc0: sdhci: Cmd:       0x0000123a | Max curr: 0x00000000
[  240.603073] mmc0: sdhci: Resp[0]:   0x00001201 | Resp[1]:  0x00000000
[  240.603082] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00001000
[  240.603088] mmc0: sdhci: Host ctl2: 0x0000804c
[  240.603100] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  240.603102] mmc0: sdhci: ============================================
[  240.603162] mmc0: Unexpected interrupt 0x04000000.
[  240.603164] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  240.603172] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001502
[  240.603182] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000008
[  240.603192] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x00000033
[  240.603201] mmc0: sdhci: Present:   0x1fff0001 | Host ctl: 0x0000001f
[  240.603211] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  240.603221] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  240.603230] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  240.603246] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  240.603256] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
[  240.603266] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  240.603275] mmc0: sdhci: Cmd:       0x00000c1a | Max curr: 0x00000000
[  240.603285] mmc0: sdhci: Resp[0]:   0x00001201 | Resp[1]:  0x00000000
[  240.603294] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00001000
[  240.603300] mmc0: sdhci: Host ctl2: 0x0000800c
[  240.603314] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  240.603316] mmc0: sdhci: ============================================
[  240.603768] mmcblk0: error -110 sending stop command, original cmd
response 0x0, card status 0x400900
[  240.603774] mmcblk0: error -110 transferring data, sector 0, nr 8,
cmd response 0x0, card status 0x0
[  244.818960] mmc0: Tuning timeout, falling back to fixed sampling clock
[  254.938957] mmc0: Timeout waiting for hardware interrupt.
[  254.938966] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  254.939017] mmc0: sdhci: Sys addr:  0x00000040 | Version:  0x00001502
[  254.939028] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000008
[  254.939037] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x0000003b
[  254.939047] mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
[  254.939056] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  254.939066] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  254.939134] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  254.939148] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  254.939159] mmc0: sdhci: AC12 err:  0x00000010 | Slot int: 0x00000000
[  254.939174] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  254.939189] mmc0: sdhci: Cmd:       0x0000123a | Max curr: 0x00000000
[  254.939204] mmc0: sdhci: Resp[0]:   0x00000201 | Resp[1]:  0x00000000
[  254.939219] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00001200
[  254.939226] mmc0: sdhci: Host ctl2: 0x0000804c
[  254.939249] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  254.939250] mmc0: sdhci: ============================================
[  254.939321] mmc0: Unexpected interrupt 0x04000000.
[  254.939334] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  254.939358] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001502
[  254.939370] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000008
[  254.939390] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x00000033
[  254.939414] mmc0: sdhci: Present:   0x1fff0001 | Host ctl: 0x0000001f
[  254.939429] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  254.939463] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  254.939473] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  254.939484] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  254.939497] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
[  254.939506] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  254.939516] mmc0: sdhci: Cmd:       0x00000c1a | Max curr: 0x00000000
[  254.939525] mmc0: sdhci: Resp[0]:   0x00000201 | Resp[1]:  0x00000000
[  254.939538] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00001200
[  254.939544] mmc0: sdhci: Host ctl2: 0x0000800c
[  254.939558] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  254.939560] mmc0: sdhci: ============================================
[  254.940047] mmcblk0: error -110 sending stop command, original cmd
response 0x0, card status 0x400900
[  254.940051] mmcblk0: error -110 transferring data, sector 0, nr 8,
cmd response 0x0, card status 0x0
[  254.940057] mmcblk0: retrying using single block read
[  254.994990] mmc0: Tuning timeout, falling back to fixed sampling clock
[  265.179189] mmc0: Timeout waiting for hardware cmd interrupt.
[  265.179193] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  265.179240] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001502
[  265.179249] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000001
[  265.179257] mmc0: sdhci: Argument:  0x59b40000 | Trn mode: 0x00000013
[  265.179264] mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
[  265.179272] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  265.179280] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  265.179288] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  265.179294] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  265.179301] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
[  265.179309] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  265.179317] mmc0: sdhci: Cmd:       0x00000d1a | Max curr: 0x00000000
[  265.179324] mmc0: sdhci: Resp[0]:   0x00001300 | Resp[1]:  0x00001200
[  265.179331] mmc0: sdhci: Resp[2]:   0x00001201 | Resp[3]:  0x00000000
[  265.179335] mmc0: sdhci: Host ctl2: 0x0000804c
[  265.179347] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  265.179347] mmc0: sdhci: ============================================
[  265.179497] mmcblk0: error -110 sending status command, retrying
[  265.235001] mmc0: Tuning timeout, falling back to fixed sampling clock
[  275.418978] mmc0: Timeout waiting for hardware cmd interrupt.
[  275.418991] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  275.419046] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001502
[  275.419056] mmc0: sdhci: Blk size:  0x00007040 | Blk cnt:  0x00000001
[  275.419065] mmc0: sdhci: Argument:  0x59b40000 | Trn mode: 0x00000010
[  275.419075] mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
[  275.419084] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  275.419093] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  275.419103] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  275.419112] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  275.419121] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
[  275.419131] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  275.419140] mmc0: sdhci: Cmd:       0x00000d1a | Max curr: 0x00000000
[  275.419150] mmc0: sdhci: Resp[0]:   0x00001200 | Resp[1]:  0x00001201
[  275.419159] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
[  275.419165] mmc0: sdhci: Host ctl2: 0x0000804c
[  275.419178] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  275.419180] mmc0: sdhci: ============================================
[  275.419410] mmcblk0: error -110 sending status command, retrying
[  275.475014] mmc0: Tuning timeout, falling back to fixed sampling clock
[  285.658993] mmc0: Timeout waiting for hardware cmd interrupt.
[  285.659002] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  285.659052] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001502
[  285.659062] mmc0: sdhci: Blk size:  0x00007040 | Blk cnt:  0x00000001
[  285.659072] mmc0: sdhci: Argument:  0x59b40000 | Trn mode: 0x00000010
[  285.659082] mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
[  285.659090] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  285.659099] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  285.659108] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  285.659118] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  285.659127] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
[  285.659137] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  285.659146] mmc0: sdhci: Cmd:       0x00000d1a | Max curr: 0x00000000
[  285.659156] mmc0: sdhci: Resp[0]:   0x00001100 | Resp[1]:  0x00001a01
[  285.659166] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
[  285.659172] mmc0: sdhci: Host ctl2: 0x0000804c
[  285.659185] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  285.659187] mmc0: sdhci: ============================================
[  285.659428] mmcblk0: error -110 sending status command, aborting
[  285.659442] print_req_error: I/O error, dev mmcblk0, sector 0
[  285.659451] Buffer I/O error on dev mmcblk0, logical block 0, async page read
[  285.715040] mmc0: Tuning timeout, falling back to fixed sampling clock
[  295.899493] mmc0: Timeout waiting for hardware interrupt.
[  295.899501] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  295.899550] mmc0: sdhci: Sys addr:  0x00000040 | Version:  0x00001502
[  295.899560] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000008
[  295.899570] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x0000003b
[  295.899579] mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
[  295.899589] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  295.899598] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  295.899607] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  295.899615] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  295.899624] mmc0: sdhci: AC12 err:  0x00000010 | Slot int: 0x00000000
[  295.899634] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  295.899643] mmc0: sdhci: Cmd:       0x0000123a | Max curr: 0x00000000
[  295.899652] mmc0: sdhci: Resp[0]:   0x00001201 | Resp[1]:  0x00000000
[  295.899662] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00001000
[  295.899667] mmc0: sdhci: Host ctl2: 0x0000804c
[  295.899680] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  295.899682] mmc0: sdhci: ============================================
[  295.899728] mmc0: Unexpected interrupt 0x04000000.
[  295.899731] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  295.899742] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001502
[  295.899752] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000008
[  295.899766] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x00000033
[  295.899784] mmc0: sdhci: Present:   0x1fff0001 | Host ctl: 0x0000001f
[  295.899802] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  295.899813] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  295.899823] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  295.899834] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  295.899845] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
[  295.899855] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  295.899866] mmc0: sdhci: Cmd:       0x00000c1a | Max curr: 0x00000000
[  295.899878] mmc0: sdhci: Resp[0]:   0x00001201 | Resp[1]:  0x00000000
[  295.899889] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00001000
[  295.899904] mmc0: sdhci: Host ctl2: 0x0000800c
[  295.899917] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  295.899920] mmc0: sdhci: ============================================
[  295.900237] mmcblk0: error -110 sending stop command, original cmd
response 0x0, card status 0x400900
[  295.955214] mmc0: Tuning timeout, falling back to fixed sampling clock
[  306.139878] mmc0: Timeout waiting for hardware interrupt.
[  306.139886] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  306.139933] mmc0: sdhci: Sys addr:  0x00000040 | Version:  0x00001502
[  306.139942] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000008
[  306.139951] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x0000003b
[  306.139960] mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
[  306.139969] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  306.139978] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  306.139987] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  306.139996] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  306.140005] mmc0: sdhci: AC12 err:  0x00000010 | Slot int: 0x00000000
[  306.140014] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  306.140023] mmc0: sdhci: Cmd:       0x0000123a | Max curr: 0x00000000
[  306.140032] mmc0: sdhci: Resp[0]:   0x00001a01 | Resp[1]:  0x00000000
[  306.140041] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00001a00
[  306.140046] mmc0: sdhci: Host ctl2: 0x0000804c
[  306.140059] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  306.140060] mmc0: sdhci: ============================================
[  306.140117] mmc0: Unexpected interrupt 0x04000000.
[  306.140121] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  306.140136] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001502
[  306.140146] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000008
[  306.140156] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x00000033
[  306.140167] mmc0: sdhci: Present:   0x1fff0001 | Host ctl: 0x0000001f
[  306.140181] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  306.140192] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  306.140202] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  306.140213] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  306.140223] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
[  306.140233] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  306.140243] mmc0: sdhci: Cmd:       0x00000c1a | Max curr: 0x00000000
[  306.140253] mmc0: sdhci: Resp[0]:   0x00001a01 | Resp[1]:  0x00000000
[  306.140264] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00001a00
[  306.140270] mmc0: sdhci: Host ctl2: 0x0000800c
[  306.140284] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  306.140287] mmc0: sdhci: ============================================
[  306.140685] mmcblk0: error -110 sending stop command, original cmd
response 0x0, card status 0x400900
[  306.140688] mmcblk0: error -110 transferring data, sector 0, nr 8,
cmd response 0x0, card status 0x0
[  306.140692] mmcblk0: retrying using single block read
[  306.195555] mmc0: Tuning timeout, falling back to fixed sampling clock
[  316.379754] mmc0: Timeout waiting for hardware cmd interrupt.
[  316.379766] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  316.379819] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001502
[  316.379831] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000001
[  316.379843] mmc0: sdhci: Argument:  0x59b40000 | Trn mode: 0x00000013
[  316.379854] mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
[  316.379867] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  316.379878] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  316.379890] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  316.379903] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  316.379983] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
[  316.379998] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  316.380013] mmc0: sdhci: Cmd:       0x00000d1a | Max curr: 0x00000000
[  316.380028] mmc0: sdhci: Resp[0]:   0x00000000 | Resp[1]:  0x00001200
[  316.380043] mmc0: sdhci: Resp[2]:   0x00001201 | Resp[3]:  0x00000000
[  316.380050] mmc0: sdhci: Host ctl2: 0x0000804c
[  316.380073] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  316.380075] mmc0: sdhci: ============================================
[  316.380484] mmcblk0: error -110 sending status command, retrying
[  316.435811] mmc0: Tuning timeout, falling back to fixed sampling clock
[  326.620015] mmc0: Timeout waiting for hardware cmd interrupt.
[  326.620024] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  326.620074] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001502
[  326.620083] mmc0: sdhci: Blk size:  0x00007040 | Blk cnt:  0x00000001
[  326.620093] mmc0: sdhci: Argument:  0x59b40000 | Trn mode: 0x00000010
[  326.620102] mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
[  326.620112] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  326.620121] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  326.620131] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  326.620140] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  326.620149] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
[  326.620158] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  326.620168] mmc0: sdhci: Cmd:       0x00000d1a | Max curr: 0x00000000
[  326.620176] mmc0: sdhci: Resp[0]:   0x00001800 | Resp[1]:  0x00001001
[  326.620185] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
[  326.620191] mmc0: sdhci: Host ctl2: 0x0000804c
[  326.620204] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  326.620206] mmc0: sdhci: ============================================
[  326.620465] mmcblk0: error -110 sending status command, retrying
[  326.676062] mmc0: Tuning timeout, falling back to fixed sampling clock
[  336.860231] mmc0: Timeout waiting for hardware cmd interrupt.
[  336.860240] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  336.860310] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001502
[  336.860319] mmc0: sdhci: Blk size:  0x00007040 | Blk cnt:  0x00000001
[  336.860328] mmc0: sdhci: Argument:  0x59b40000 | Trn mode: 0x00000010
[  336.860338] mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
[  336.860347] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  336.860356] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  336.860366] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  336.860375] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  336.860384] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
[  336.860393] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  336.860403] mmc0: sdhci: Cmd:       0x00000d1a | Max curr: 0x00000000
[  336.860412] mmc0: sdhci: Resp[0]:   0x00001000 | Resp[1]:  0x00000200
[  336.860420] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
[  336.860426] mmc0: sdhci: Host ctl2: 0x0000804c
[  336.860439] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  336.860441] mmc0: sdhci: ============================================
[  336.860710] mmcblk0: error -110 sending status command, aborting
[  336.860726] print_req_error: I/O error, dev mmcblk0, sector 0
[  336.860736] Buffer I/O error on dev mmcblk0, logical block 0, async page read
[  336.916279] mmc0: Tuning timeout, falling back to fixed sampling clock
[  347.100430] mmc0: Timeout waiting for hardware interrupt.
[  347.100440] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  347.100490] mmc0: sdhci: Sys addr:  0x00000040 | Version:  0x00001502
[  347.100563] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000008
[  347.100577] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x0000003b
[  347.100591] mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
[  347.100606] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  347.100621] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  347.100636] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  347.100651] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  347.100666] mmc0: sdhci: AC12 err:  0x00000010 | Slot int: 0x00000000
[  347.100681] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  347.100696] mmc0: sdhci: Cmd:       0x0000123a | Max curr: 0x00000000
[  347.100711] mmc0: sdhci: Resp[0]:   0x00001201 | Resp[1]:  0x00000000
[  347.100726] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00001000
[  347.100733] mmc0: sdhci: Host ctl2: 0x0000804c
[  347.100755] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  347.100757] mmc0: sdhci: ============================================
[  347.100841] mmc0: Unexpected interrupt 0x04000000.
[  347.100853] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  347.100893] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001502
[  347.100905] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000008
[  347.100918] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x00000033
[  347.100934] mmc0: sdhci: Present:   0x1fff0001 | Host ctl: 0x0000001f
[  347.100946] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  347.100962] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  347.100973] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  347.100983] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  347.100994] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
[  347.101004] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  347.101014] mmc0: sdhci: Cmd:       0x00000c1a | Max curr: 0x00000000
[  347.101025] mmc0: sdhci: Resp[0]:   0x00001201 | Resp[1]:  0x00000000
[  347.101036] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00001000
[  347.101043] mmc0: sdhci: Host ctl2: 0x0000800c
[  347.101058] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  347.101061] mmc0: sdhci: ============================================
[  347.101322] mmcblk0: error -110 sending stop command, original cmd
response 0x0, card status 0x400900
[  347.156470] mmc0: Tuning timeout, falling back to fixed sampling clock
[  357.340559] mmc0: Timeout waiting for hardware interrupt.
[  357.340578] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  357.340649] mmc0: sdhci: Sys addr:  0x00000040 | Version:  0x00001502
[  357.340664] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000008
[  357.340679] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x0000003b
[  357.340694] mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
[  357.340708] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  357.340723] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  357.340737] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  357.340752] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  357.340767] mmc0: sdhci: AC12 err:  0x00000010 | Slot int: 0x00000000
[  357.340782] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  357.340797] mmc0: sdhci: Cmd:       0x0000123a | Max curr: 0x00000000
[  357.340812] mmc0: sdhci: Resp[0]:   0x00001201 | Resp[1]:  0x00000000
[  357.340827] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00001200
[  357.340834] mmc0: sdhci: Host ctl2: 0x0000804c
[  357.340857] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  357.340859] mmc0: sdhci: ============================================
[  357.340913] mmc0: Unexpected interrupt 0x04000000.
[  357.340921] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  357.340942] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001502
[  357.340957] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000008
[  357.340991] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x00000033
[  357.341001] mmc0: sdhci: Present:   0x1fff0001 | Host ctl: 0x0000001f
[  357.341010] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  357.341020] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  357.341030] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  357.341041] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  357.341051] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
[  357.341061] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  357.341071] mmc0: sdhci: Cmd:       0x00000c1a | Max curr: 0x00000000
[  357.341081] mmc0: sdhci: Resp[0]:   0x00001201 | Resp[1]:  0x00000000
[  357.341092] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00001200
[  357.341099] mmc0: sdhci: Host ctl2: 0x0000800c
[  357.341112] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  357.341114] mmc0: sdhci: ============================================
[  357.341306] mmcblk0: error -110 sending stop command, original cmd
response 0x0, card status 0x400900
[  357.341309] mmcblk0: error -110 transferring data, sector 0, nr 8,
cmd response 0x0, card status 0x0
[  357.341314] mmcblk0: retrying using single block read
[  357.396638] mmc0: Tuning timeout, falling back to fixed sampling clock
[  367.581163] mmc0: Timeout waiting for hardware cmd interrupt.
[  367.581172] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  367.581219] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001502
[  367.581229] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000001
[  367.581238] mmc0: sdhci: Argument:  0x59b40000 | Trn mode: 0x00000013
[  367.581247] mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
[  367.581256] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[  367.581266] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
[  367.581275] mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
[  367.581283] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  367.581293] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
[  367.581302] mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
[  367.581312] mmc0: sdhci: Cmd:       0x00000d1a | Max curr: 0x00000000
[  367.581321] mmc0: sdhci: Resp[0]:   0x00000000 | Resp[1]:  0x00001200
[  367.581330] mmc0: sdhci: Resp[2]:   0x00000201 | Resp[3]:  0x00000000
[  367.581336] mmc0: sdhci: Host ctl2: 0x0000804c
[  367.581349] mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000457940204
[  367.581351] mmc0: sdhci: ============================================
[  367.581633] mmcblk0: error -110 sending status command, retrying
[  367.636779] mmc0: Tuning timeout, falling back to fixed sampling clock

#830303#29
Date:
2018-01-05 11:11:42 UTC
From:
To:
Also for reference:

$ sudo lspci -s 03:00.1 -vvx
03:00.1 SD Host controller: Broadcom Limited BCM57765/57785 SDXC/MMC
Card Reader (rev 10) (prog-if 01)
Subsystem: Broadcom Limited BCM57765/57785 SDXC/MMC Card Reader
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 256 bytes
Interrupt: pin B routed to IRQ 17
Region 0: Memory at c1820000 (64-bit, prefetchable) [size=64K]
Capabilities: [48] Power Management version 3
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=1 PME-
Capabilities: [58] MSI: Enable- Count=1/1 Maskable- 64bit+
Address: 0000000000000000  Data: 0000
Capabilities: [ac] Express (v2) Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <4us, L1 <64us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 10.000W
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr+ NoSnoop+
MaxPayload 128 bytes, MaxReadReq 4096 bytes
DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr+ TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency
L0s <1us, L1 <2us
ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp-
LnkCtl: ASPM L0s L1 Enabled; RCB 64 bytes Disabled- CommClk+
ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive-
BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Range ABCD, TimeoutDis+, LTR-, OBFF Not Supported
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete-,
EqualizationPhase1-
EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
Capabilities: [100 v1] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF-
MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF-
MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+
MalfTLP+ ECRC- UnsupReq- ACSViol-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
AERCap: First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
Capabilities: [150 v1] Power Budgeting <?>
Capabilities: [160 v1] Virtual Channel
Caps: LPEVC=0 RefClk=100ns PATEntryBits=1
Arb: Fixed- WRR32- WRR64- WRR128-
Ctrl: ArbSelect=Fixed
Status: InProgress-
VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
Status: NegoPending- InProgress-
Kernel driver in use: sdhci-pci
Kernel modules: sdhci_pci
00: e4 14 bc 16 06 00 10 00 10 01 05 08 40 00 80 00
10: 0c 00 82 c1 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 e4 14 bc 96
30: 00 00 00 00 48 00 00 00 00 00 00 00 0b 02 00 00

#830303#36
Date:
2018-01-11 09:55:23 UTC
From:
To:
For reference.
---------- Forwarded message ---------- Tuning error presumably because it used fixed sampling because tuning failed. Strange considering that interrupt is not enabled. If you can't get tuning to work, you may need to disable the transfer modes that require tuning.
#830303#41
Date:
2019-02-18 21:54:23 UTC
From:
To:
Hi,

For what it's worth, it seems on this specific hardware:

Broadcom Limited BCM57765/57785 SDXC/MMC Card Reader [14e4:16bc]

the problem can be resolved by passing:

debug_quirks2=0x4 to sdhci kernel module.

Note that there is also the debug_quirks param. I did set some values
for it but the working one is the default, namely 0

For more information have a look at
https://bugzilla.kernel.org/show_bug.cgi?id=73241#c55

I just tested it on a Macmini7,1Debian having Stretch with
4.19+101~bpo9+1 kernel. I 'll be using it for the next few days, I am
hoping everything will work out ok and I won't have to report more
stuff

#830303#46
Date:
2021-05-09 20:06:32 UTC
From:
To:
Contol: tags -1 + moreinfo

is the issue still reproducible with a recent kernel? If not we might
go ahead and close the bugreport.

Regards,
Salvatore

#830303#49
Date:
2021-05-09 20:06:32 UTC
From:
To:
Contol: tags -1 + moreinfo

is the issue still reproducible with a recent kernel? If not we might
go ahead and close the bugreport.

Regards,
Salvatore

#830303#54
Date:
2021-05-10 11:51:36 UTC
From:
To:
It is. I just tried on buster's 4.19.0-16-amd64 and the issue persists
for me. I 'll also try to reproduce with bullseye's 5.10.28-1 and
report results here.

#830303#57
Date:
2021-05-10 11:51:36 UTC
From:
To:
It is. I just tried on buster's 4.19.0-16-amd64 and the issue persists
for me. I 'll also try to reproduce with bullseye's 5.10.28-1 and
report results here.

#830303#62
Date:
2021-05-10 12:43:07 UTC
From:
To:
Reproduced on bullseye with 5.10.28-1 as well. The fix remains to have
in a file in /etc/modprobe.d (e.g. sdhci.conf) the following:

options sdhci debug_quirks2=0x4

Regards,

#830303#65
Date:
2021-05-10 12:43:07 UTC
From:
To:
Reproduced on bullseye with 5.10.28-1 as well. The fix remains to have
in a file in /etc/modprobe.d (e.g. sdhci.conf) the following:

options sdhci debug_quirks2=0x4

Regards,

#830303#72
Date:
2021-12-29 16:08:00 UTC
From:
To:
I tested multiple SD cards in my laptop (Acer Aspire V3-571G) card
reader (Broadcom Limited BCM57765/57785). My system uses mostly Debian
10 packages with a few packages from backports (mainly kernel image,
systemd, emacs and their dependencies):

kernel: Linux version 5.10.0-0.bpo.9-amd64
(debian-kernel@lists.debian.org) (gcc-8 (Debian 8.3.0-6) 8.3.0, GNU ld
(GNU Binutils for Debian) 2.31.1) #1 SMP Debian 5.10.70-1~bpo10+1
(2021-10-10)

The workaround mentioned above also works on my system. I created the
"/etc/modprobe.d/sdhci.conf" file containing "options sdhci
debug_quirks2=0x4" and had to regenerate initrd images using "sudo
update-initramfs -u -k all".

SAMSUNG EVO 64GB MICRO SDXC CARD (DOESN'T WORK WITHOUT THE WORKAROUND) -
SYSTEMD JOURNALD - Relevant messages:
kernel: mmc0: new ultra high speed SDR104 SDXC card at address 0001
kernel: mmcblk0: mmc0:0001 EC2QT 59.6 GiB
kernel: mmc0: Timeout waiting for hardware interrupt.
kernel: mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
kernel: mmc0: sdhci: Sys addr:  0x000010c8 | Version:  0x00001502
kernel: mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000000
kernel: mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x0000003b
kernel: mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
kernel: mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
kernel: mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
kernel: mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
kernel: mmc0: sdhci: Int enab:  0x03ff008b | Sig enab: 0x03ff008b
kernel: mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
kernel: mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
kernel: mmc0: sdhci: Cmd:       0x0000123a | Max curr: 0x00000000
kernel: mmc0: sdhci: Resp[0]:   0x00000900 | Resp[1]:  0x00000900
kernel: mmc0: sdhci: Resp[2]:   0x00000900 | Resp[3]:  0x00000900
kernel: mmc0: sdhci: Host ctl2: 0x0000804b
kernel: mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000120943204
kernel: mmc0: sdhci: ============================================
kernel: mmc0: Unexpected interrupt 0x04000000.
kernel: mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
kernel: mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001502
kernel: mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000000
kernel: mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x00000033
kernel: mmc0: sdhci: Present:   0x1fff0000 | Host ctl: 0x0000001f
kernel: mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
kernel: mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
kernel: mmc0: sdhci: Timeout:   0x0000000a | Int stat: 0x00000000
kernel: mmc0: sdhci: Int enab:  0x03ff008b | Sig enab: 0x03ff008b
kernel: mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
kernel: mmc0: sdhci: Caps:      0x176ec8b0 | Caps_1:   0x03002177
kernel: mmc0: sdhci: Cmd:       0x00000d1a | Max curr: 0x00000000
kernel: mmc0: sdhci: Resp[0]:   0x00400900 | Resp[1]:  0x00000000
kernel: mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
kernel: mmc0: sdhci: Host ctl2: 0x0000800b
kernel: mmc0: sdhci: ADMA Err:  0x00000001 | ADMA Ptr: 0x0000000120943204
kernel: mmc0: sdhci: ============================================

SAMSUNG EVO 64GB MICRO SDXC CARD (WORKS WITH THE WORKAROUND) - SYSTEMD
JOURNALD - Relevant messages:
kernel: mmc0: new high speed SDXC card at address 0001
kernel: mmcblk0: mmc0:0001 EC2QT 59.6 GiB
kernel:  mmcblk0: p1
udisksd[597]: Mounted /dev/mmcblk0p1 at /media/USERNAME/disk on behalf
of uid 1000
udisksd[597]: Cleaning up mount point /media/USERNAME/disk (device 179:1
is not mounted)
udisksd[597]: Unmounted /dev/mmcblk0p1 on behalf of uid 1000
kernel: mmc0: card 0001 removed

SANDISK ULTRA 16GB MICRO SDHC CARD (DOESN'T WORK WITHOUT THE WORKAROUND)
- SYSTEMD JOURNALD - Relevant messages:
kernel: mmc0: new ultra high speed DDR50 SDHC card at address aaaa
kernel: mmcblk0: mmc0:aaaa SL16G 14.8 GiB
AFTER 1 MINUTE:
systemd-udevd[459]: mmc0:aaaa: Worker [493] processing SEQNUM=2742 is
taking a long time
AFTER 2 MORE MINUTES I REMOVED THE CARD FROM THE READER:
kernel: mmc0: Card removed during transfer!
kernel: mmc0: Resetting controller.
kernel: ldm_validate_partition_table(): Disk read failed.
kernel: Dev mmcblk0: unable to read RDB block 0
kernel:  mmcblk0: unable to read partition table
kernel: mmc0: card aaaa removed

SANDISK ULTRA 16GB MICRO SDHC CARD (WORKS WITH THE WORKAROUND) - SYSTEMD
JOURNALD - Relevant messages:
kernel: mmc0: new high speed SDHC card at address aaaa
kernel: mmcblk0: mmc0:aaaa SL16G 14.8 GiB
kernel:  mmcblk0:
kernel: FAT-fs (mmcblk0): Volume was not properly unmounted. Some data
may be corrupt. Please run fsck.
udisksd[587]: Mounted /dev/mmcblk0 at /media/USERNAME/disk on behalf of
uid 1000
udisksd[587]: Cleaning up mount point /media/USERNAME/disk (device 179:0
is not mounted)
udisksd[587]: Unmounted /dev/mmcblk0 on behalf of uid 1000
kernel: mmc0: card aaaa removed

ADATA 16GB MICRO SDHC CARD (WORKS WITHOUT THE WORKAROUND) - SYSTEMD
JOURNALD - Relevant messages:
kernel: mmc0: new high speed SDHC card at address b368
kernel: mmcblk0: mmc0:b368 SD    15.4 GiB
kernel:  mmcblk0:
kernel: FAT-fs (mmcblk0): Volume was not properly unmounted. Some data
may be corrupt. Please run fsck.
udisksd[596]: Mounted /dev/mmcblk0 at /media/USERNAME/disk on behalf of
uid 1000
udisksd[596]: Cleaning up mount point /media/USERNAME/disk (device 179:0
is not mounted)
udisksd[596]: Unmounted /dev/mmcblk0 on behalf of uid 1000
kernel: mmc0: card b368 removed

ADATA 32GB SDHC CARD (WORKS WITHOUT THE WORKAROUND) - SYSTEMD JOURNALD -
Relevant messages:
kernel: mmc0: Skipping voltage switch
kernel: mmc0: new high speed SDHC card at address b368
kernel: mmcblk0: mmc0:b368 SD    30.2 GiB
kernel:  mmcblk0: p1
kernel: FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data
may be corrupt. Please run fsck.
udisksd[596]: Mounted /dev/mmcblk0p1 at /media/USERNAME/NIKON on behalf
of uid 1000
udisksd[596]: Cleaning up mount point /media/USERNAME/NIKON (device
179:1 is not mounted)
udisksd[596]: Unmounted /dev/mmcblk0p1 on behalf of uid 1000
kernel: mmc0: card b368 removed

All three MICRO SD cards were connected via ADATA and SAMSUNG MICRO SD
to SD adapters as the card reader slot only accepts SD cards. But it
seems that various SD cards or adapters brands do not make a difference,
instead the "ultra high speed" mode selected for more modern SD cards
seems to cause the buggy behavior (the workaround forces such SD cards
to use the slower "high speed" mode only).

Regards,
Bakhelit

#830303#77
Date:
2025-01-08 19:28:14 UTC
From:
To:
Here is attached some more info about using the workaround mentioned above on Acer Aspire V3-571G with Broadcom Limited BCM57765/57785 card reader.

Basically this card reader never really worked reliably for me on Debian even with the workaround. After attempting to write even relatively small amount of data to an SD card the reader usually quickly failed (reading was more usable, but sometimes failed too). Even with later kernels problems with the card reader were still there (probably even on Linux 6.1 from Debian 12, but I guess testing with current kernels could better confirm my vague memories:).

Anyway as can be deduced from timestamps in the attachments: I am no longer using the laptop for Debian and I only wanted to share the info collected in 2022 in case it helps with debugging (as I gave up on solving this problem back then and forgot to share my collected info).

Regards,
Jmkr

#830303#82
Date:
2025-01-17 16:48:40 UTC
From:
To:
Hello,

Thanks for your input. Given it's not relevant for you any more and it's
unknown if there are other affected users and this is still an issue in
2025, I close this bug. When the problem gets relevant again, please
reopen (or report a new bug).

Best regards
Uwe