RE: imx7d: Timeout waiting for hardware interrupt.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Fabio Estevam <festevam@xxxxxxxxx>
> Sent: 2022年5月24日 21:31
> To: Bough Chen <haibo.chen@xxxxxxx>
> Cc: linux-mmc <linux-mmc@xxxxxxxxxxxxxxx>; Adrian Hunter
> <adrian.hunter@xxxxxxxxx>; dl-linux-imx <linux-imx@xxxxxxx>; Sebastian
> Reichel <sebastian.reichel@xxxxxxxxxxxxx>; Martin Fuzzey
> <martin.fuzzey@flowbird.group>
> Subject: imx7d: Timeout waiting for hardware interrupt.
> 
> Hi,
> 
> On an imx7d board running 5.10.y the following mmc2 timeout is observed:
> 
> mmc2: Timeout waiting for hardware interrupt.
> mmc2: sdhci: ============ SDHCI REGISTER DUMP ===========
> mmc2: sdhci: Sys addr:  0x82f9425c | Version:  0x00000002
> mmc2: sdhci: Blk size:  0x0000002c | Blk cnt:  0x00000001
> mmc2: sdhci: Argument:  0x1410002c | Trn mode: 0x00000013
> mmc2: sdhci: Present:   0x01d88a0a | Host ctl: 0x00000013
> mmc2: sdhci: Power:     0x00000002 | Blk gap:  0x00000080
> mmc2: sdhci: Wake-up:   0x00000008 | Clock:    0x0000003f
> mmc2: sdhci: Timeout:   0x0000008f | Int stat: 0x00000000
> mmc2: sdhci: Int enab:  0x107f100b | Sig enab: 0x107f100b
> mmc2: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000302
> mmc2: sdhci: Caps:      0x07eb0000 | Caps_1:   0x0000b400
> mmc2: sdhci: Cmd:       0x0000353a | Max curr: 0x00ffffff
> mmc2: sdhci: Resp[0]:   0x00001000 | Resp[1]:  0x00000000
> mmc2: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
> mmc2: sdhci: Host ctl2: 0x00000000
> mmc2: sdhci: ADMA Err:  0x00000007 | ADMA Ptr: 0x9c042200
> mmc2: sdhci-esdhc-imx: ========= ESDHC IMX DEBUG STATUS DUMP
> =========
> mmc2: sdhci-esdhc-imx: cmd debug status:  0x2100
> mmc2: sdhci-esdhc-imx: data debug status:  0x2200
> mmc2: sdhci-esdhc-imx: trans debug status:  0x2300
> mmc2: sdhci-esdhc-imx: dma debug status:  0x2402
> mmc2: sdhci-esdhc-imx: adma debug status:  0x25b4
> mmc2: sdhci-esdhc-imx: fifo debug status:  0x2610
> mmc2: sdhci-esdhc-imx: async fifo debug status:  0x2751
> mmc2: sdhci: ============================================
> 
> The mmc2 interface is connected to an SDIO Wifi chip.
> 
> This irq timeout occurs very rarely.
> 
> Any suggestions on how to debug this?

Hi Fabio,

According to the log, ADMA Err:  0x00000007, seems meet ADMA length miss match issue, please double check whether the following patch is on your side:
commit e30be063d6dbcc0f18b1eb25fa709fdef89201fb mmc: sdhci-esdhc-imx: correct the fix of ERR004536

also please add the following patch for suspend/resume case
commit a26a4f1baca55a05aecd8d7181802979a93e3d46 mmc: sdhci-esdhci-imx: retune needed for Mega/Mix enabled SoCs

Best Regards
Haibo Chen

> 
> Thanks,
> 
> Fabio Estevam




[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux