You are not logged in.

#1 2021-03-30 21:04:29

Quackdoc
Member
Registered: 2021-03-30
Posts: 4

SD card reader 8086:2296, does not bind to SDHCI-PCI since kernel 4.9

I recently dusted off my Lenovo N22. it is a Celeron N3050 that uses intels SD card reader [8086:2296]

I tested Kernels  4.9lts which worked, and kernel 4.19lts which did not.

LSPCI of the old kernel (4.9) shows BOTH

Kernel driver in use: sdhci-pci
Kernel Modules: sdhci_pci

where as kernels 4.19+ show just
Kernel Modules: sdhci_pci

Also he hex dump of the config space is different on 4.9  vs 5.11 though I am not sure of the relevance of it.

lsmod | grep -i sdhci of 4.9

sdhci_pci              65536  0
cqhci                  32768  1 sdhci_pci
sdhci_acpi             28672  0
sdhci                  81920  2 sdhci_acpi,sdhci_pci
mmc_core              204800  5 sdhci,cqhci,mmc_block,sdhci_acpi,sdhci_pc

lsmod | grep -i sdhci of 5.11

sdhci_pci              28672  0
sdhci_acpi             16384  0
sdhci                  40960  2 sdhci_pci,sdhci_acpi
led_class              16384  3 iwlmvm,sdhci,input_leds
mmc_core              131072  4 sdhci,sdhci_pci,mmc_block,sdhci_acpi

Dmesg shows sdhci-pci "finding" the device about 37 times on linux 5.11 where as it shows it only one time before continuing on and mounting an sdcard when inserted to mmc2

The interrupts on 5.11 look like

18:          2          0   IO-APIC   18-fasteoi   i801_smbus

Interrupts on 4.11

18:        172        184   IO-APIC   18-fasteoi   mmc2, i801_smbus

Both lspci do properly say pin is mapped to IRQ 18

I wont bother posting the device tree as they resemble any other unbound device, on linux 5.11, or bound device on 4.9

Trying to manually echo the device into sdhci-pci's bind results in

echo: write error: no such device

Even when done as root. Im not sure what could be causing this, are there any other debugging steps I should take?

EDIT 1: Narrowed down the regression to between kernel 4.9lts and 4.14lts

Last edited by Quackdoc (2021-03-31 23:54:40)

Offline

#2 2021-03-31 19:08:35

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 570

Re: SD card reader 8086:2296, does not bind to SDHCI-PCI since kernel 4.9

It's not the same card, but maybe related due to kernel changes - https://bbs.archlinux.org/viewtopic.php?id=264063
That was solved by using rts_bpp-dkms-git from the AUR: maybe there is an alternative for you card?

Offline

#3 2021-03-31 21:39:40

Quackdoc
Member
Registered: 2021-03-30
Posts: 4

Re: SD card reader 8086:2296, does not bind to SDHCI-PCI since kernel 4.9

paulkerry wrote:

It's not the same card, but maybe related due to kernel changes - https://bbs.archlinux.org/viewtopic.php?id=264063
That was solved by using rts_bpp-dkms-git from the AUR: maybe there is an alternative for you card?

Unfortunately I could not find one. Even Gallium OS doesn't work so Im thinking im SOL here. no distro's I have tested seem to work sadly

Offline

#4 2021-03-31 22:18:52

loqs
Member
Registered: 2014-03-06
Posts: 13,179

Re: SD card reader 8086:2296, does not bind to SDHCI-PCI since kernel 4.9

Have you tried narrowing down which kernel introduced the regression?  You can obtain old kernel packages from the ALA.  Note kernels older than 5.9 will be affected by moving-to-zstandard-images-by-default-on-mkinitcpio.

Offline

#5 2021-03-31 23:54:02

Quackdoc
Member
Registered: 2021-03-30
Posts: 4

Re: SD card reader 8086:2296, does not bind to SDHCI-PCI since kernel 4.9

loqs wrote:

Have you tried narrowing down which kernel introduced the regression?  You can obtain old kernel packages from the ALA.  Note kernels older than 5.9 will be affected by moving-to-zstandard-images-by-default-on-mkinitcpio.

The oldest in packages is 4.20 which is after the regression happened, I know the regression took place between 4.9 and 4.14 lts (I forgot about this ones existence lol). and quite frankly while I do want to solve my issue, I the N22 is my only operational device atm and its not exactly fast to compile a kernel. unless I can find the kernels between that period its not really feasible for me to do so at the moment.

Offline

#6 2021-04-01 00:05:39

loqs
Member
Registered: 2014-03-06
Posts: 13,179

Re: SD card reader 8086:2296, does not bind to SDHCI-PCI since kernel 4.9

Offline

#7 2021-04-01 19:56:39

Quackdoc
Member
Registered: 2021-03-30
Posts: 4

Re: SD card reader 8086:2296, does not bind to SDHCI-PCI since kernel 4.9

Thank you very much, I can confirm that the regression happened with linux 4.10 as all the other are affected by it. Looking into it more, it does seem to be an issue not isolated to me. I guess at this point I should probably submit a bug report? though I have to admit, I have no idea what im doing in regards to filing bug reports.

Last edited by Quackdoc (2021-04-01 20:00:25)

Offline

#8 2021-04-06 07:07:22

loqs
Member
Registered: 2014-03-06
Posts: 13,179

Re: SD card reader 8086:2296, does not bind to SDHCI-PCI since kernel 4.9

What version of 4.9 are you currently using?
I have been able to compile 4.9 in a chroot using packages from March 2017.

Offline

Board footer

Powered by FluxBB