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

Bug#910090: SD card reader does not work any more



Marc Haber - 01.11.18, 09:30:
> On Tue, Oct 02, 2018 at 10:23:41PM +0200, Martin Steigerwald wrote:
> > Marc Haber - 02.10.18, 18:34:
> > > Package: src:linux
> > > Version: 4.18.8-1
> > > Severity: minor
> > 
> > […]
> > 
> > > since a few kernel versions (sorry, I don't know which one), SD
> > > cards
> > > put into the built-in reader of the ThinkPad T520 don't work any
> > > more. There is nothing happening in the kernel log when the card
> > > is inserted.
> > 
> > Strange.
> > 
> > The one in this ThinkPad T520 still works. With self-compiled
> > 4.18.7.
> > 
> > Configuration attached.
> 
> Can you paste the output of lsmod with an SD card inserted and
> mounted?

Kernel is newer already, but I bet it would be the same with self-
compiled 4.18 kernel. Configuration of this new kernel attached anyway.

% cat /proc/version                
Linux version 4.19.0-tp520 (martin@merkaba) (gcc version 8.2.0 (Debian 
8.2.0-8)) #65 SMP PREEMPT Mon Oct 22 14:18:36 CEST 2018

% LANG=en df -hT /media/martin/CHDK   
Filesystem     Type  Size  Used Avail Use% Mounted on
/dev/mmcblk0p1 vfat  2.0G   30M  2.0G   2% /media/martin/CHDK

I think the important ones are these:

lsmod | grep -i mmc
mmc_block              40960  2
mmc_core              135168  4 sdhci,cqhci,mmc_block,sdhci_pci

Complete list:

% lsmod                               
Module                  Size  Used by
nls_ascii              16384  1
nls_cp437              20480  1
vfat                   20480  1
fat                    73728  1 vfat
mmc_block              40960  2
fuse                  114688  3
nft_chain_route_ipv4    16384  1
xt_CHECKSUM            16384  0
nft_chain_nat_ipv4     16384  4
ipt_MASQUERADE         16384  0
nf_nat_ipv4            16384  2 ipt_MASQUERADE,nft_chain_nat_ipv4
nf_nat                 32768  1 nf_nat_ipv4
xt_conntrack           16384  0
nf_conntrack          118784  4 
xt_conntrack,nf_nat,ipt_MASQUERADE,nf_nat_ipv4
nf_defrag_ipv6         20480  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
ipt_REJECT             16384  0
nf_reject_ipv4         16384  1 ipt_REJECT
nft_counter            16384  0
xt_tcpudp              16384  0
nft_compat             20480  0
tun                    45056  0
bridge                180224  0
stp                    16384  1 bridge
llc                    16384  2 bridge,stp
acpi_call              16384  0
devlink                69632  0
ebtable_filter         16384  0
ebtables               36864  1 ebtable_filter
nf_tables             131072  4 
nft_chain_route_ipv4,nft_compat,nft_chain_nat_ipv4,nft_counter
snd_usb_audio         208896  2
nfnetlink              16384  2 nft_compat,nf_tables
snd_usbmidi_lib        28672  1 snd_usb_audio
snd_rawmidi            32768  1 snd_usbmidi_lib
snd_seq_device         16384  1 snd_rawmidi
binfmt_misc            20480  1
xfs                  1384448  2
snd_hda_codec_hdmi     57344  2
snd_hda_codec_conexant    24576  1
snd_hda_codec_generic    77824  1 snd_hda_codec_conexant
msr                    16384  0
pktcdvd                40960  1
intel_rapl             24576  0
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
kvm_intel             192512  0
kvm                   630784  1 kvm_intel
irqbypass              16384  1 kvm
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
pcbc                   16384  0
arc4                   16384  2
iwldvm                147456  0
mac80211              671744  1 iwldvm
aesni_intel           200704  0
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
iwlwifi               217088  1 iwldvm
cryptd                 24576  3 
crypto_simd,ghash_clmulni_intel,aesni_intel
glue_helper            16384  1 aesni_intel
intel_cstate           16384  0
i915                 1585152  55
intel_rapl_perf        16384  0
input_leds             16384  0
pcspkr                 16384  0
drm_kms_helper        159744  1 i915
snd_hda_intel          36864  3
snd_hda_codec         122880  4 
snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel
drm                   405504  23 drm_kms_helper,i915
snd_hda_core           69632  5 
snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
thinkpad_acpi          90112  1
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
i2c_algo_bit           16384  1 i915
sg                     36864  0
snd_pcm                98304  6 
snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
nvram                  16384  1 thinkpad_acpi
fb_sys_fops            16384  1 drm_kms_helper
snd_timer              32768  1 snd_pcm
syscopyarea            16384  1 drm_kms_helper
cfg80211              643072  3 iwldvm,iwlwifi,mac80211
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
snd                    81920  22 
snd_hda_codec_generic,snd_hda_codec_conexant,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_timer,thinkpad_acpi,snd_pcm,snd_rawmidi
soundcore              16384  1 snd
rfkill                 24576  4 thinkpad_acpi,cfg80211
tpm_tis                16384  0
battery                24576  1 thinkpad_acpi
tpm_tis_core           20480  1 tpm_tis
tpm                    61440  2 tpm_tis,tpm_tis_core
ac                     16384  0
rng_core               16384  1 tpm
video                  40960  2 thinkpad_acpi,i915
evdev                  20480  19
button                 16384  0
sbs                    16384  0
sbshc                  16384  1 sbs
coretemp               16384  0
bfq                    65536  2
hdaps                  16384  0
tp_smapi               28672  0
thinkpad_ec            16384  2 hdaps,tp_smapi
loop                   32768  0
ecryptfs               94208  0
cbc                    16384  0
sunrpc                315392  1
mcryptd                16384  0
sha256_ssse3           32768  1
sha256_generic         20480  1 sha256_ssse3
encrypted_keys         20480  1 ecryptfs
ip_tables              24576  0
x_tables               36864  8 
ebtables,xt_conntrack,nft_compat,xt_tcpudp,ipt_MASQUERADE,xt_CHECKSUM,ipt_REJECT,ip_tables
autofs4                36864  2
dm_mod                135168  18
btrfs                1249280  3
xor                    24576  1 btrfs
zlib_deflate           28672  1 btrfs
raid6_pq              118784  1 btrfs
libcrc32c              16384  4 nf_conntrack,nf_nat,btrfs,xfs
crc32c_generic         16384  0
sr_mod                 28672  1
sd_mod                 53248  6
cdrom                  40960  2 pktcdvd,sr_mod
hid_lenovo             20480  0
hid_generic            16384  0
usbhid                 49152  0
hid                   122880  3 usbhid,hid_generic,hid_lenovo
ahci                   40960  5
crc32c_intel           24576  1
libahci                36864  1 ahci
psmouse                90112  0
ehci_pci               16384  0
libata                233472  2 libahci,ahci
ehci_hcd               57344  1 ehci_pci
sdhci_pci              36864  0
scsi_mod              208896  4 sd_mod,libata,sg,sr_mod
cqhci                  24576  1 sdhci_pci
i2c_i801               28672  0
lpc_ich                28672  0
sdhci                  45056  1 sdhci_pci
i2c_core               61440  6 
drm_kms_helper,i2c_algo_bit,i2c_i801,i915,psmouse,drm
mfd_core               16384  1 lpc_ich
mmc_core              135168  4 sdhci,cqhci,mmc_block,sdhci_pci
usbcore               221184  5 
ehci_pci,snd_usb_audio,usbhid,snd_usbmidi_lib,ehci_hcd
e1000e                208896  0
usb_common             16384  1 usbcore
thermal                20480  0

% dmesg | tail -3
[12793.278985] mmc0: new high speed SDHC card at address e624
[12793.298288] mmcblk0: mmc0:[…] 29.7 GiB (ro)
[12793.308829]  mmcblk0: p1 p2

> > I did not test with Debian kernel.
> 
> For the means of this bug report, it would be helpful if you tried
> with the Debian kernel as well.

Please tell me when above is not sufficient to see why the card reader 
it is not working for you. I feel lazy about testing with Debian kernel, 
I had more than enough of testing regarding issues in different areas 
for a while to come. I'd upload my self-compiled kernel somewhere in 
case you'd like to test it and compare yourself. As long as your T520 
does not use NVidia graphics it should work out of the box for you. In 
case all that is not enough for you to find the cause of the issue I'd 
test with a Debian kernel.

Thanks,
-- 
Martin

Attachment: config-4.19.0-tp520.xz
Description: application/xz


Reply to: