Re: [PATCH] mmc: sdhci-pci: disable intel voltage switch if unsupported

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

 



On Tue, Oct 23, 2018 at 04:47:05PM +0300, Adrian Hunter wrote:
> On 22/10/18 4:40 PM, Anisse Astier wrote:
> > On Mon, Oct 22, 2018 at 03:34:24PM +0300, Adrian Hunter wrote:
> >> On 22/10/18 12:14 PM, Anisse Astier wrote:
> > [snip]
> >>> [   16.823947] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
> >>> [   16.823956] mmc0: sdhci: Sys addr:  0x00000008 | Version:  0x00001002
> >>> [   16.823964] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000008
> >>> [   16.823971] mmc0: sdhci: Argument:  0x00cf3ff0 | Trn mode: 0x0000003b
> >>> [   16.823978] mmc0: sdhci: Present:   0x1fff0001 | Host ctl: 0x0000003d
> >>> [   16.823985] mmc0: sdhci: Power:     0x0000000b | Blk gap:  0x00000080
> >>> [   16.823992] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000007
> >>> [   16.823999] mmc0: sdhci: Timeout:   0x00000006 | Int stat: 0x00000000
> >>> [   16.824006] mmc0: sdhci: Int enab:  0x02ff000b | Sig enab: 0x02ff000b
> >>> [   16.824013] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
> >>> [   16.824020] mmc0: sdhci: Caps:      0x546ec881 | Caps_1:   0x80000807
> >>> [   16.824027] mmc0: sdhci: Cmd:       0x0000123a | Max curr: 0x00000000
> >>> [   16.824034] mmc0: sdhci: Resp[0]:   0x00000900 | Resp[1]:  0x00000000
> >>> [   16.824041] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000900
> >>> [   16.824047] mmc0: sdhci: Host ctl2: 0x0000000d
> >>> [   16.824055] mmc0: sdhci: ADMA Err:  0x00000000 | ADMA Ptr: 0x000000016bbf5200
> >>> [   16.824058] mmc0: sdhci: ============================================
> >>
> >> Could be a BIOS issue.  Do you have the most up to date BIOS?
> > 
> > What makes you think it could be ?
> 
> It seems like the host controller just stopped for no apparent reason.
> 
> > I have looked into the BIOS. This specific laptop model is a Clevo
> > N770GU. It does not have publicly-downloadable BIOS updates. Even it had
> > a BIOS fix, shouldn't we also have a best effort fix in Linux for all
> > those machines that are never updated ?
> 
> It may come to that.
> 
> 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: ============================================


Regards,

Anisse





[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