All of lore.kernel.org
 help / color / mirror / Atom feed
* mmc: sdhci-pci-core: Disable ES for ASUS BIOS on Jasper Lake
@ 2022-10-22 13:39 Andrea Baldoni
  2022-10-23  2:08 ` Slade Watkins
  0 siblings, 1 reply; 3+ messages in thread
From: Andrea Baldoni @ 2022-10-22 13:39 UTC (permalink / raw)
  To: linux-kernel

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mmc: sdhci-pci-core: Disable ES for ASUS BIOS on Jasper Lake
  2022-10-22 13:39 mmc: sdhci-pci-core: Disable ES for ASUS BIOS on Jasper Lake Andrea Baldoni
@ 2022-10-23  2:08 ` Slade Watkins
  2022-10-28 14:11   ` Patrick Thompson
  0 siblings, 1 reply; 3+ messages in thread
From: Slade Watkins @ 2022-10-23  2:08 UTC (permalink / raw)
  To: Andrea Baldoni; +Cc: Patrick Thompson, linux-kernel, linux-acpi, linux-mmc

On Sat, Oct 22, 2022 at 8:36 PM Andrea Baldoni <erm25d019@ermione.com> 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/20221013210017.3751025-1-ptf@google.com/

Best,
-srw

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mmc: sdhci-pci-core: Disable ES for ASUS BIOS on Jasper Lake
  2022-10-23  2:08 ` Slade Watkins
@ 2022-10-28 14:11   ` Patrick Thompson
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick Thompson @ 2022-10-28 14:11 UTC (permalink / raw)
  To: Slade Watkins; +Cc: Andrea Baldoni, linux-kernel, linux-acpi, linux-mmc

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 <srw@sladewatkins.net> wrote:
>
> On Sat, Oct 22, 2022 at 8:36 PM Andrea Baldoni <erm25d019@ermione.com> 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/20221013210017.3751025-1-ptf@google.com/
>
> Best,
> -srw

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-28 14:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-22 13:39 mmc: sdhci-pci-core: Disable ES for ASUS BIOS on Jasper Lake Andrea Baldoni
2022-10-23  2:08 ` Slade Watkins
2022-10-28 14:11   ` Patrick Thompson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.