Re: [PATCH V1] mmc: sdhci: Update the software timeout value for sdhc
From: Konrad Dybcio
Date: Wed Jun 16 2021 - 08:16:27 EST
Hi,
I am not sure which SoC is this change supposed to address, but it does not fix the longstanding issue of a similar kind on msm8996:
[ 25.448575] mmc0: Timeout waiting for hardware interrupt.
[ 25.464270] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 25.479768] mmc0: sdhci: Sys addr: 0x00000008 | Version: 0x00004902
[ 25.495361] mmc0: sdhci: Blk size: 0x00004200 | Blk cnt: 0x00000006
[ 25.510963] mmc0: sdhci: Argument: 0x01cd9f80 | Trn mode: 0x0000003b
[ 25.526517] mmc0: sdhci: Present: 0x03f80206 | Host ctl: 0x0000001f
[ 25.542178] mmc0: sdhci: Power: 0x0000000d | Blk gap: 0x00000000
[ 25.557767] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
[ 25.573427] mmc0: sdhci: Timeout: 0x0000000a | Int stat: 0x00000000
[ 25.588983] mmc0: sdhci: Int enab: 0x03ff900b | Sig enab: 0x03ff100b
[ 25.604645] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[ 25.620273] mmc0: sdhci: Caps: 0x322dc8b2 | Caps_1: 0x00008007
[ 25.635752] mmc0: sdhci: Cmd: 0x0000123a | Max curr: 0x00000000
[ 25.651351] mmc0: sdhci: Resp[0]: 0x00000900 | Resp[1]: 0x5b590000
[ 25.666879] mmc0: sdhci: Resp[2]: 0x73677f80 | Resp[3]: 0x00000900
[ 25.682496] mmc0: sdhci: Host ctl2: 0x0000000c
[ 25.697991] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000101cd2200
[ 25.713751] mmc0: sdhci_msm: ----------- VENDOR REGISTER DUMP -----------
[ 25.729510] mmc0: sdhci_msm: DLL sts: 0x00000000 | DLL cfg: 0x6008642c | DLL cfg2: 0x0020a000
[ 25.745564] mmc0: sdhci_msm: DLL cfg3: 0x00000008 | DLL usr ctl: 0x00000008 | DDR cfg: 0x80040873
[ 25.761759] mmc0: sdhci_msm: Vndr func: 0x00018a9c | Vndr func2 : 0xfa8018a8 Vndr func3: 0x00024040
[ 25.778080] mmc0: sdhci: ============================================
[ 25.894360] mmc0: Reset 0x4 never completed.
[ 25.910719] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 25.927143] mmc0: sdhci: Sys addr: 0x00000008 | Version: 0x00004902
[ 25.943717] mmc0: sdhci: Blk size: 0x00004200 | Blk cnt: 0x00000006
[ 25.960225] mmc0: sdhci: Argument: 0x01cd9f80 | Trn mode: 0x0000003b
[ 25.976845] mmc0: sdhci: Present: 0x03f80206 | Host ctl: 0x0000001f
[ 25.993490] mmc0: sdhci: Power: 0x0000000d | Blk gap: 0x00000000
[ 26.010019] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
[ 26.026693] mmc0: sdhci: Timeout: 0x0000000a | Int stat: 0x00000000
[ 26.043262] mmc0: sdhci: Int enab: 0x03ff900b | Sig enab: 0x03ff100b
[ 26.059955] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[ 26.076546] mmc0: sdhci: Caps: 0x322dc8b2 | Caps_1: 0x00008007
[ 26.093229] mmc0: sdhci: Cmd: 0x0000123a | Max curr: 0x00000000
[ 26.109783] mmc0: sdhci: Resp[0]: 0x00000000 | Resp[1]: 0x00000000
[ 26.126074] mmc0: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000
[ 26.142271] mmc0: sdhci: Host ctl2: 0x0000000c
[ 26.158161] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000101cd2200
[ 26.174287] mmc0: sdhci_msm: ----------- VENDOR REGISTER DUMP -----------
[ 26.190295] mmc0: sdhci_msm: DLL sts: 0x00000000 | DLL cfg: 0x6008642c | DLL cfg2: 0x0020a000
[ 26.206518] mmc0: sdhci_msm: DLL cfg3: 0x00000008 | DLL usr ctl: 0x00000008 | DDR cfg: 0x80040873
[ 26.222916] mmc0: sdhci_msm: Vndr func: 0x00018a9c | Vndr func2 : 0xfa8018a8 Vndr func3: 0x00024040
[ 26.239484] mmc0: sdhci: ============================================
Konrad