2022-10-23 02:20:53

by Slade Watkins

[permalink] [raw]
Subject: Re: mmc: sdhci-pci-core: Disable ES for ASUS BIOS on Jasper Lake

On Sat, Oct 22, 2022 at 8:36 PM Andrea Baldoni <[email protected]> wrote:
>
> Hello.
> I am not subscribed to the list so please CC to my address.
>
> I recently bought a new ASUS Laptop E210KA-GJ059WS with
>
> 00:1a.0 SD Host controller: Intel Corporation Device 4dc4 (rev 01) (prog-if 01)
> Subsystem: ASUSTeK Computer Inc. Device 1842
> Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 7
> Memory at 6001129000 (64-bit, non-prefetchable) [size=4K]
> Capabilities: [80] Power Management version 3
> Capabilities: [90] Vendor Specific Information: Len=14 <?>
> Kernel driver in use: sdhci-pci
>
> I tried to install Linux (vanilla kernel 5.19.4) and found that the internal
> 128GB eMMC SSD was unuseable, unable to make a filesystem on it, dmesg shown
>
> mmc0: running CQE recovery
> and
> mmc0: cqhci: timeout for tag 0
> followed by register dump
>
> (unfortunately I don't have the exact log now).
>
> I found the patch to drivers/mmc/host/sdhci-pci-core.c posted by
> Patrick Thompson date Thu, 13 Oct 2022 17:00:17 -0400, and applied it,
> but the only way to make the eMMC work was to disable
> CQE in its entirety by commenting

This one I assume?[1]

>
> slot->host->mmc->caps2 |= MMC_CAP2_CQE;
> and
> slot->host->mmc->caps2 |= MMC_CAP2_CQE_DCMD;
>
> If someone would like me to do any targeted test to be able to solve the
> issue better, I will be happy to do it.
>
> At the moment I am also searching how to get the touchpad to work, I would
> appreciate any hint and/or a contact with someone who has experience on
> this.
>
> I think the relevant device should be this one, but it doesn't show in
> /proc/bus/input/devices.
>
> P: /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:6c/ASUE1409:00
> E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:6c/ASUE1409:00
> E: ID_VENDOR_FROM_DATABASE=Asuscom Network Inc
> E: MODALIAS=acpi:ASUE1409:PNP0C50:
> E: SUBSYSTEM=acpi
> E: USEC_INITIALIZED=10378637
>
> Thank you.
>
> Best regards,
> Andrea Baldoni

Also looping in +acpi and mmc lists, +Patrick Thompson here.

[1] https://lore.kernel.org/linux-mmc/[email protected]/

Best,
-srw


2022-10-28 14:23:40

by Patrick Thompson

[permalink] [raw]
Subject: Re: mmc: sdhci-pci-core: Disable ES for ASUS BIOS on Jasper Lake

Hello,

Thank you Slade for sharing the v3 link with Andrea. The v1 patch had
a mistake in it, hopefully the v3 works for you, let me know if you
run into any issues.

Best,
Patrick

On Sat, Oct 22, 2022 at 10:09 PM Slade Watkins <[email protected]> wrote:
>
> On Sat, Oct 22, 2022 at 8:36 PM Andrea Baldoni <[email protected]> wrote:
> >
> > Hello.
> > I am not subscribed to the list so please CC to my address.
> >
> > I recently bought a new ASUS Laptop E210KA-GJ059WS with
> >
> > 00:1a.0 SD Host controller: Intel Corporation Device 4dc4 (rev 01) (prog-if 01)
> > Subsystem: ASUSTeK Computer Inc. Device 1842
> > Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 7
> > Memory at 6001129000 (64-bit, non-prefetchable) [size=4K]
> > Capabilities: [80] Power Management version 3
> > Capabilities: [90] Vendor Specific Information: Len=14 <?>
> > Kernel driver in use: sdhci-pci
> >
> > I tried to install Linux (vanilla kernel 5.19.4) and found that the internal
> > 128GB eMMC SSD was unuseable, unable to make a filesystem on it, dmesg shown
> >
> > mmc0: running CQE recovery
> > and
> > mmc0: cqhci: timeout for tag 0
> > followed by register dump
> >
> > (unfortunately I don't have the exact log now).
> >
> > I found the patch to drivers/mmc/host/sdhci-pci-core.c posted by
> > Patrick Thompson date Thu, 13 Oct 2022 17:00:17 -0400, and applied it,
> > but the only way to make the eMMC work was to disable
> > CQE in its entirety by commenting
>
> This one I assume?[1]
>
> >
> > slot->host->mmc->caps2 |= MMC_CAP2_CQE;
> > and
> > slot->host->mmc->caps2 |= MMC_CAP2_CQE_DCMD;
> >
> > If someone would like me to do any targeted test to be able to solve the
> > issue better, I will be happy to do it.
> >
> > At the moment I am also searching how to get the touchpad to work, I would
> > appreciate any hint and/or a contact with someone who has experience on
> > this.
> >
> > I think the relevant device should be this one, but it doesn't show in
> > /proc/bus/input/devices.
> >
> > P: /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:6c/ASUE1409:00
> > E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:6c/ASUE1409:00
> > E: ID_VENDOR_FROM_DATABASE=Asuscom Network Inc
> > E: MODALIAS=acpi:ASUE1409:PNP0C50:
> > E: SUBSYSTEM=acpi
> > E: USEC_INITIALIZED=10378637
> >
> > Thank you.
> >
> > Best regards,
> > Andrea Baldoni
>
> Also looping in +acpi and mmc lists, +Patrick Thompson here.
>
> [1] https://lore.kernel.org/linux-mmc/[email protected]/
>
> Best,
> -srw