[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2020-09-28 Thread RussianNeuroMancer
Fixed since Linux 5.5rc3. ** Changed in: linux (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848883 Title: (Lenovo S130-11IGM) emmc not working

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-19 Thread Adrian Hunter
As per comment 25, the issue seems to affect other Lenovo systems. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848883 Title: (Lenovo S130-11IGM) emmc not working in 19.04 To manage

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-17 Thread Kai-Heng Feng
I think matching exact "Lenovo ideapad S130-11IGM" can avoid regress other Lenovo systems. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848883 Title: (Lenovo S130-11IGM) emmc not working in 19.04

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-17 Thread Adrian Hunter
I have submitted the patch for stable kernels: https://patchwork.kernel.org/patch/11297115/ Assuming it is accepted, it will probably turn up in Ubuntu kernels eventually. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-16 Thread Jim
Hi Adrian... that worked !! Is this just a temporary fix or something that would be in future releases ? Thanks -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848883 Title: (Lenovo S130-11IGM) emmc

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-16 Thread Adrian Hunter
That is a shame. Here is a new patch that disables command queuing which should avoid the problem. The old patch is then not needed. ** Patch added: "0001-mmc-sdhci-Workaround-broken-command-queuing-on-Intel.patch"

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-13 Thread Jim
mmc0: cqhci: Task clr: 0x | SSC1: 0x00010004 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848883 Title: (Lenovo S130-11IGM) emmc not working in 19.04 To manage notifications about this

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-13 Thread Adrian Hunter
I need to see if the value of the SSC1 register changed. It is shown in the CQHCI REGISTER DUMP looking like "mmc0: cqhci: Task clr: 0x | SSC1: 0x00010008" -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-13 Thread Jim
Hi Adrian, thanks for the pointers. I ran the following (I already set grub to default to 4.15.0-20 unlessI select an alternate); git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git -b linux-5.4.y cd linux/ wget

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-12 Thread Adrian Hunter
I would start with a working setup, presumably Ubuntu 18.04. Then get the latest stable kernel (note, it is possible -rc kernels are broken): git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux- stable.git -b linux-5.4.y Patch it, build and install. Amend /etc/defaults/grub to

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-12 Thread Jim
Hi Adrian, if booting from the kernel fails, it obviously hangs as there's no physical disk device to use. Is there a way to write or get the kernel messages to another device at this point? or is my only option to build on usb, then build a new patched kernel on the usb and boot from it ?

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-12 Thread Adrian Hunter
Err, here is the patch ** Patch added: "0001-mmc-sdhci-pci-Fix-premature-clock-gating-of-CQHCI-on.patch" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1848883/+attachment/5311922/+files/0001-mmc-sdhci-pci-Fix-premature-clock-gating-of-CQHCI-on.patch -- You received this bug

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-12 Thread Adrian Hunter
Here is an updated patch without the dependency on #include If it doesn't work, please provide kernel messages. ** Patch removed: "0001-mmc-sdhci-pci-Fix-premature-clock-gating-of-CQHCI-on.patch"

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-11 Thread Jim
Tried 4.18-rc1. Couldn't compile... drivers/mmc/host/sdhci-pci-core.c: In function ‘glk_cqe_enable’: drivers/mmc/host/sdhci-pci-core.c:758:7: error: implicit declaration of function ‘FIELD_GET’; did you mean ‘FOLL_GET’? [-Werror=implicit-function-declaration] if (FIELD_GET(mask, val) != 4) {

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-11 Thread Jim
First test with 5.5-rc1 failed with the same issue using these steps git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git cd linux/ git tag git checkout v5.5-rc1 wget

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-11 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848883 Title: (Lenovo S130-11IGM) emmc not working in 19.04 To manage notifications about this bug go to:

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-11 Thread Kai-Heng Feng
$ git am 0001-mmc-sdhci-pci-Fix-premature-clock-gating-of-CQHCI-on.patch Then compile the kernel as usual. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848883 Title: (Lenovo S130-11IGM) emmc not

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-11 Thread Adrian Hunter
Actually it should apply cleanly to any kernel from 4.17 onward (4.16 would require a little backporting) To apply the patch, in the linux git directory: git am 0001-mmc-sdhci-pci-Fix-premature-clock-gating-of-CQHCI-on.patch -- You received this bug notification because you are a member of

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-11 Thread Jim
Thanks Adrian, I'll test this as soon as I can. Could you confirm the steps.. I assume I need to apply this to 4.16-rc1. I think it is .. $ apt build-dep linux $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git $ cd linux $ wget

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-11 Thread Adrian Hunter
Is it possible to try this patch? ** Patch added: "0001-mmc-sdhci-pci-Fix-premature-clock-gating-of-CQHCI-on.patch" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1848883/+attachment/5311741/+files/0001-mmc-sdhci-pci-Fix-premature-clock-gating-of-CQHCI-on.patch -- You received this

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-10 Thread Adrian Hunter
I have some ideas that I am testing -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848883 Title: (Lenovo S130-11IGM) emmc not working in 19.04 To manage notifications about this bug go to:

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-12-06 Thread Jim
Hi Adrian, is there anything else that would be useful to provide for this bug ? Thanks -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848883 Title: (Lenovo S130-11IGM) emmc not working in 19.04

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-11-29 Thread Jim
** Attachment added: "binary acpidump. all in zip" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1848883/+attachment/5308679/+files/acpidump_binary.zip -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-11-22 Thread Adrian Hunter
No, acpidump should not show any difference running from a newer kernel? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848883 Title: (Lenovo S130-11IGM) emmc not working in 19.04 To manage

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-11-22 Thread Jim
** Attachment added: "acpidump_4.15.0-20-generic" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1848883/+attachment/5307033/+files/acpidump_4.15.0-20-generic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-11-22 Thread Jim
Attached dump from 4.15.0-20. Would acpidump show any difference running from a newer kernel ? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848883 Title: (Lenovo S130-11IGM) emmc not working in

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-11-18 Thread Adrian Hunter
Can someone please provide an acpidump? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848883 Title: (Lenovo S130-11IGM) emmc not working in 19.04 To manage notifications about this bug go to:

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-11-13 Thread Kai-Heng Feng
Subscribed Adrian Hunter to this bug. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848883 Title: (Lenovo S130-11IGM) emmc not working in 19.04 To manage notifications about this bug go to:

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-11-13 Thread Jim
Hi Kai-Heng... here is the bisect output. root@ubuntu:~/mainline/tmp/linux# git bisect bad 8ee82bda230fc972c7ee3bb15ce1260eefb4721c is the first bad commit commit 8ee82bda230fc972c7ee3bb15ce1260eefb4721c Author: Adrian Hunter Date: Wed Nov 29 15:41:06 2017 +0200 mmc: sdhci-pci: Add CQHCI

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-11-13 Thread Jim
Totally over my head :) https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v4.16-rc1=8ee82bda230fc972c7ee3bb15ce1260eefb4721c -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-11-12 Thread Jim
Hi Kai-Heng.. Please ignore #29/#30/#31. For some reason launchpad took text from firefox on each reboot! I am working through each bisect testing the kernels. Each one takes about 1 hour to build. Also quite surprised to see how many changes were made to sdhci-acpi in this -rc.

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-11-12 Thread Jim
Thanks Kai-Heng. I have identified the last working mainline is 4.15-rc9 and from 4.16-rc1 it fails. I will try and follow the bisect steps. I assume the "git bisect good" command should be "git bisect good 4.15-rc9. Looking at the bisect visualise I can see 2/3 commits made for emmc devices. --

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-11-12 Thread Jim
Thanks Kai-Heng. I have identified the last working mainline is 4.15-rc9 and from 4.16-rc1 it fails. I will try and follow the bisect steps. After running "git bisect start", what should be the complete "git bisect good" command based on the kernel versions I determined were good/bad ?? -- You

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-11-12 Thread Jim
Hi, thanks for this update. So I know all the 4.15.0 kernels work with this emmc hardware but the only others I have tried are part of 19.04 (so 4.18) onwards which fail. Does this mean I should start from 4.15-rc9 and then 4.18-rc1 until I find a broken kernel ? Then do the bisect ? -- You

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-11-11 Thread Kai-Heng Feng
Would it be possible for you to do a kernel bisection? First, find the last good -rc kernel and the first bad -rc kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/ Then, $ sudo apt build-dep linux $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git $ cd linux $

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-10-23 Thread Jim
Thanks Kai-Heng. Tested 5.4-rc4 but still the same issue. Cannot boot up using this kernel. Also tried on a 14inch version of the same laptop with the same error. There is some kind of timeout (shown in the dmesg attached) but I don't understand what is causing it. -- You received this bug

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-10-21 Thread Kai-Heng Feng
Please test latest mainline kernel: https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4-rc4/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848883 Title: (Lenovo S130-11IGM) emmc not working in

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-10-21 Thread Jim
Is this not the same issue as this affecting several Lenovo models ?? https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930815 Something seems to be broken since 4.18 ** Bug watch added: Debian Bug tracker #930815 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930815 -- You received this

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-10-20 Thread Jim
run apport-collect after booting from lubuntu 19.04 CD1 ** Changed in: linux (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848883 Title: (Lenovo

[Bug 1848883] Re: (Lenovo S130-11IGM) emmc not working in 19.04

2019-10-20 Thread Jim
apport information ** Tags added: apport-collected ** Description changed: Hi, I don't think this is the same issue as ; https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1818407 although I have read a lot of issues with emmc disks. Booting from lubuntu CD1 19.04 takes