The issues on "mmc0: cqhci: timeout for tag 0"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The issues on "mmc0: cqhci: timeout for tag 0"

11,756 Views
jack-cap
Contributor III

Hi NXP teams

 Recently We have a rather troublesome problem.

After we flash the image of android Android P9.0.0_2.1.1_AUTO done,then  system boot up.

Execute adb shell command,in the shell cmd,execute the "su" command.it will wait for long time and shows as below:

[ 83.014933] mmc0: cqhci: timeout for tag 0
[ 83.019053] mmc0: cqhci: ============ CQHCI REGISTER DUMP ===========
[ 83.025498] mmc0: cqhci: Caps: 0x0000310a | Version: 0x00000510
[ 83.031944] mmc0: cqhci: Config: 0x00001001 | Control: 0x00000000
[ 83.038391] mmc0: cqhci: Int stat: 0x00000000 | Int enab: 0x00000006
[ 83.044834] mmc0: cqhci: Int sig: 0x00000006 | Int Coal: 0x00000000
[ 83.051283] mmc0: cqhci: TDL base: 0xffffc000 | TDL up32: 0x00000000
[ 83.057729] mmc0: cqhci: Doorbell: 0xffb1ffff | TCN: 0x00000000
[ 83.064175] mmc0: cqhci: Dev queue: 0x00000000 | Dev Pend: 0x00400000
[ 83.070619] mmc0: cqhci: Task clr: 0x00000000 | SSC1: 0x00011000
[ 83.077067] mmc0: cqhci: SSC2: 0x00000001 | DCMD rsp: 0x00000800
[ 83.083511] mmc0: cqhci: RED mask: 0xfdf9a080 | TERRI: 0x00000000
[ 83.089959] mmc0: cqhci: Resp idx: 0x0000000d | Resp arg: 0x00000000
[ 83.096405] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 83.102853] mmc0: sdhci: Sys addr: 0xff4e0000 | Version: 0x00000002
[ 83.109295] mmc0: sdhci: Blk size: 0x00000200 | Blk cnt: 0x00000008
[ 83.115745] mmc0: sdhci: Argument: 0x00018000 | Trn mode: 0x00000033
[ 83.122188] mmc0: sdhci: Present: 0x01fd8008 | Host ctl: 0x00000030
[ 83.128634] mmc0: sdhci: Power: 0x00000002 | Blk gap: 0x00000080
[ 83.135080] mmc0: sdhci: Wake-up: 0x00000008 | Clock: 0x0000000f
[ 83.141527] mmc0: sdhci: Timeout: 0x0000008f | Int stat: 0x00000000
[ 83.147972] mmc0: sdhci: Int enab: 0x107f4000 | Sig enab: 0x107f4000
[ 83.154418] mmc0: sdhci: AC12 err: 0x00000000 | Slot int: 0x00000502
[ 83.160867] mmc0: sdhci: Caps: 0x07eb0000 | Caps_1: 0x8000b407
[ 83.167311] mmc0: sdhci: Cmd: 0x00000d1a | Max curr: 0x00ffffff
[ 83.173759] mmc0: sdhci: Resp[0]: 0x00000000 | Resp[1]: 0xffc003ff
[ 83.180203] mmc0: sdhci: Resp[2]: 0x328f5903 | Resp[3]: 0x00d07f01
[ 83.186648] mmc0: sdhci: Host ctl2: 0x00000088
[ 83.191098] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0xffff5408
[ 83.197542] mmc0: sdhci: ============================================
[ 83.205431] mmc0: running CQE recovery

Sometimes,when open the camera app,it also met this issues.Do you have any good suggestions?

Hope for your reply

Additional information:

Soft platform:             Android P9.0.0_2.1.1_AUTO (4.14.98 kernel) 

Hardware platform:  i.MX 8QuadMax for PMIC 1.7v

BRs

thanks

Tags (1)
23 Replies

4,369 Views
philippe_schenk
Contributor IV

Thanks for this answer, we will try it again on the new L5.4.24 release and if it is not working there come back.

Best Regards,
Philippe

3,538 Views
edcloudcycle
Contributor III

Hi @philippe_schenk,

We have the same problem with Verdin IMX8MM. Did you manage to resolve the problem?

Thanks


Ed

0 Kudos

3,116 Views
philippe_schenk
Contributor IV

Since NXP is not reacting on any of us asking about this issue we disabled it completely in the driver:

--- a/drivers/mmc/host/sdhci-esdhc-imx.c
+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
@@ -246,7 +246,7 @@ struct esdhc_soc_data {
        .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING
                        | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200
                        | ESDHC_FLAG_HS400 | ESDHC_FLAG_HS400_ES
-                       | ESDHC_FLAG_CQHCI
+               //      | ESDHC_FLAG_CQHCI
                        | ESDHC_FLAG_STATE_LOST_IN_LPMODE
                        | ESDHC_FLAG_CLK_RATE_LOST_IN_PM_RUNTIME,
 };