Hi Adrian, On Thu, Oct 25, 2018 at 12:06:31PM +0200, Anisse Astier wrote: > On Tue, Oct 23, 2018 at 04:47:05PM +0300, Adrian Hunter wrote: > > Here are a couple of patches to get a bit more information. Also, if you > > config sdhci as built-in (y instead of m) then we should see a debug message > > from the interrupt handler. > > Please find the new log here: > https://anisse.astier.eu/static/dmesg-4.19.nocqe-builtin-regdump.txt.xz > > CQHCI is still disabled, sdhci is built-in, and it has your register > dump patches applied. Here is the register dump after the first (and > only) timeout: > > [ 16.312690] mmc0: Timeout waiting for hardware interrupt. > [ 16.312702] mmc0: sdhci: ============ SDHCI REGISTER DUMP =========== > [ 16.312711] mmc0: sdhci: Sys addr: 0x00000008 | Version: 0x00001002 > [ 16.312718] mmc0: sdhci: Blk size: 0x00007200 | Blk cnt: 0x00000008 > [ 16.312726] mmc0: sdhci: Argument: 0x00cf3f80 | Trn mode: 0x0000003b > [ 16.312733] mmc0: sdhci: Present: 0x1fff0206 | Host ctl: 0x0000003d > [ 16.312740] mmc0: sdhci: Power: 0x0000000b | Blk gap: 0x00000080 > [ 16.312747] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00000007 > [ 16.312753] mmc0: sdhci: Timeout: 0x00000006 | Int stat: 0x00000000 > [ 16.312760] mmc0: sdhci: Int enab: 0x02ff000b | Sig enab: 0x02ff000b > [ 16.312767] mmc0: sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000 > [ 16.312774] mmc0: sdhci: Caps: 0x546ec881 | Caps_1: 0x80000807 > [ 16.312780] mmc0: sdhci: Cmd: 0x0000123a | Max curr: 0x00000000 > [ 16.312786] mmc0: sdhci: Resp[0]: 0x00000800 | Resp[1]: 0x00000000 > [ 16.312793] mmc0: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000900 > [ 16.312799] mmc0: sdhci: Host ctl2: 0x0000000d > [ 16.312807] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x000000016ab6d200 > [ 16.312814] mmc0: sdhci: 0x804: 0x00000800 > [ 16.312821] mmc0: sdhci: 0x808: 0x00000800 > [ 16.312827] mmc0: sdhci: 0x810: 0x0000005a > [ 16.312833] mmc0: sdhci: 0x814: 0x3050eb1e > [ 16.312839] mmc0: sdhci: 0x818: 0x040040c8 > [ 16.312845] mmc0: sdhci: 0x81c: 0x00000008 > [ 16.312851] mmc0: sdhci: 0x820: 0x00000502 > [ 16.312858] mmc0: sdhci: 0x824: 0x00000811 > [ 16.312864] mmc0: sdhci: 0x828: 0x1c2a2927 > [ 16.312870] mmc0: sdhci: 0x82c: 0x000d162f > [ 16.312876] mmc0: sdhci: 0x830: 0x00000a0a > [ 16.312882] mmc0: sdhci: 0x834: 0x0001003b > [ 16.312889] mmc0: sdhci: 0x838: 0x00800001 > [ 16.312895] mmc0: sdhci: 0x83c: 0x00000000 > [ 16.312901] mmc0: sdhci: 0x840: 0x00000000 > [ 16.312904] mmc0: sdhci: ============================================ Is this of any help to understand what's wrong ? Regards, Anisse