SD card does not work on linux, but window (O2Micro)

Bug #1901401 reported by DarkTrick on 2020-10-25
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Undecided
Unassigned

Bug Description

I try to use a micro SD card (256GB, connected via microSD-to-SD adapter) on my laptop.

I could not ...
 - ...mount my (micro) SD card
 - ...format with gparted
 - ...format with "disks"

disks error:
---------------
Error wiping device: failed to probe the device "/dev/mmcblk0" (udisks error-quark,0)

gparted error:
---------------
"Input/output error during read on /dev/mmcblk0"

`lspci -nn` shows:
-------------------
SD Host controller [0805]: O2 Micro, Inc. SD/MMC Card Reader Controller [1217:8520] (rev 01)

Output of `journalctl -f` when inserting
-----------------------------------------
10月 25 20:21:08 myuser kernel: mmc0: new ultra high speed SDR104 SDXC card at address 59b4
10月 25 20:21:08 myuser kernel: mmcblk0: mmc0:59b4 EE4S5 239 GiB
10月 25 20:21:08 myuser kernel: blk_update_request: I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
10月 25 20:21:08 myuser kernel: Buffer I/O error on dev mmcblk0, logical block 0, async page read
10月 25 20:21:09 myuser kernel: blk_update_request: I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
10月 25 20:21:09 myuser kernel: Buffer I/O error on dev mmcblk0, logical block 0, async page read
10月 25 20:21:09 myuser kernel: blk_update_request: I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
10月 25 20:21:09 myuser kernel: Buffer I/O error on dev mmcblk0, logical block 0, async page read
10月 25 20:21:09 myuser kernel: ldm_validate_partition_table(): Disk read failed.
10月 25 20:21:09 myuser kernel: blk_update_request: I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
10月 25 20:21:09 myuser kernel: Buffer I/O error on dev mmcblk0, logical block 0, async page read
10月 25 20:21:10 myuser kernel: blk_update_request: I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
10月 25 20:21:10 myuser kernel: Buffer I/O error on dev mmcblk0, logical block 0, async page read
10月 25 20:21:10 myuser kernel: blk_update_request: I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
10月 25 20:21:10 myuser kernel: Buffer I/O error on dev mmcblk0, logical block 0, async page read
10月 25 20:21:10 myuser kernel: blk_update_request: I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
10月 25 20:21:10 myuser kernel: Buffer I/O error on dev mmcblk0, logical block 0, async page read
10月 25 20:21:10 myuser kernel: Dev mmcblk0: unable to read RDB block 0
10月 25 20:21:11 myuser kernel: blk_update_request: I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
10月 25 20:21:11 myuser kernel: Buffer I/O error on dev mmcblk0, logical block 0, async page read
10月 25 20:21:11 myuser kernel: blk_update_request: I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
10月 25 20:21:11 myuser kernel: Buffer I/O error on dev mmcblk0, logical block 0, async page read
10月 25 20:21:11 myuser kernel: blk_update_request: I/O error, dev mmcblk0, sector 24 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
10月 25 20:21:11 myuser kernel: Buffer I/O error on dev mmcblk0, logical block 3, async page read
10月 25 20:21:12 myuser kernel: mmcblk0: unable to read partition table
10月 25 20:21:13 myuser fwupd[19538]: 11:21:13:0166 FuEngine failed to add udev device /sys/devices/pci0000:00/0000:00:1d.0/0000:03:00.0/mmc_host/mmc0/mmc0:59b4/block/mmcblk0: failed get ffu_capable for (null)

I tried:
---------
- Another micoSD-SD adapter: No change
- Rebooting: No change

I can do:
-----------
- Use the card under Win 10: Same reader, same adapter, same card
- Use other SD/microSD cards with the same reader under Linux

lsb_release -rd
------------------
Description: Ubuntu 20.04
Release: 20.04

and

Description: Ubuntu 20.10
Release: 20.10

digging in `journalctl -b 0`
-------------------------------
xhci_hcd 0000:00:14.0: xHCI Host Controller
xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
xhci_hcd 0000:00:14.0: Host supports USB 3.0 SuperSpeed
usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.08
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: xHCI Host Controller
usb usb2: Manufacturer: Linux 5.8.0-25-generic xhci-hcd
usb usb2: SerialNumber: 0000:00:14.0
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 6 ports detected
sdhci-pci 0000:03:00.0: SDHCI controller found [1217:8520] (rev 1)
mmc0: SDHCI controller on PCI [0000:03:00.0] using ADMA
i2c i2c-1: 2/2 memory slots populated (from DMI)
intel-lpss 0000:00:15.3: enabling device (0000 -> 0002)
idma64 idma64.2: Found Intel integrated DMA 64-bit
e1000e 0000:00:1f.6 0000:00:1f.6 (uninitialized): registered PHC clock
e1000e 0000:00:1f.6 eth0: (PCI Express:2.5GT/s:Width x1) a0:66:10:00:ae:e0
e1000e 0000:00:1f.6 eth0: Intel(R) PRO/1000 Network Connection
mmc0: new ultra high speed SDR104 SDXC card at address 59b4
e1000e 0000:00:1f.6 eth0: MAC: 12, PHY: 12, PBA No: FFFFFF-0FF
e1000e 0000:00:1f.6 enp0s31f6: renamed from eth0
mmcblk0: mmc0:59b4 EE4S5 239 GiB
sdhci-pci 0000:03:00.0: error -84 requesting status
sdhci-pci 0000:03:00.0: error -84 requesting status
mmcblk0: recovery failed!
print_req_error: 6 callbacks suppressed
blk_update_request: I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
buffer_io_error: 4 callbacks suppressed
Buffer I/O error on dev mmcblk0, logical block 0, async page read
sdhci-pci 0000:03:00.0: error -84 requesting status

digging in dmesg:
-------------------
( I tried to find the earliest entries in dmesg)
[ 5.981553] sdhci-pci 0000:03:00.0: error -84 requesting status
[ 5.982870] mmcblk0: recovery failed!
[ 6.098751] sdhci-pci 0000:03:00.0: error -84 requesting status
[ 6.100138] mmcblk0: recovery failed!
[ 57.379419] mmcblk0: mmc0:59b4 EE4S5 239 GiB
[ 57.443304] sdhci-pci 0000:03:00.0: error -84 requesting status
[ 57.751837] sdhci-pci 0000:03:00.0: error -84 requesting status
[ 57.751842] mmcblk0: recovery failed!
[ 57.751853] print_req_error: 6 callbacks suppressed
[ 57.751856] blk_update_request: I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 57.751859] buffer_io_error: 4 callbacks suppressed
[ 57.751860] Buffer I/O error on dev mmcblk0, logical block 0, async page read
[ 57.865376] sdhci-pci 0000:03:00.0: error -84 requesting status
[ 57.865380] mmcblk0: recovery failed!
....
[ 57.978968] ldm_validate_partition_table(): Disk read failed.
...
[ 239.175416] print_req_error: 4 callbacks suppressed
[ 239.175426] blk_update_request: I/O error, dev mmcblk0, sector 500694912 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[ 239.295409] sdhci-pci 0000:03:00.0: error -84 requesting status
[ 239.295424] mmcblk0: recovery failed!
[ 239.295469] blk_update_request: I/O error, dev mmcblk0, sector 500694912 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 239.295482] buffer_io_error: 3 callbacks suppressed
[ 239.295488] Buffer I/O error on dev mmcblk0, logical block 62586864, async page read
[ 239.511759] sdhci-pci 0000:03:00.0: error -84 requesting status
[ 239.511774] mmcblk0: recovery failed!

ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: linux-image-5.8.0-25-generic 5.8.0-25.26
ProcVersionSignature: Ubuntu 5.8.0-25.26-generic 5.8.14
Uname: Linux 5.8.0-25-generic x86_64
ApportVersion: 2.20.11-0ubuntu50
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: nimono 1542 F.... pulseaudio
 /dev/snd/pcmC0D3p: nimono 1542 F...m pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: XFCE
Date: Sun Oct 25 20:30:03 2020
HotplugNewDevices:

HotplugNewMounts:

MachineType: FUJITSU FMVWB3U27
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.8.0-25-generic root=UUID=fe637d00-125b-4a54-adce-3711830d450b ro acpi_osi=! "acpi_osi=Windows 2015" resume=UUID=8fa6d40f-c23d-497e-9846-f6f26536690d
RelatedPackageVersions:
 linux-restricted-modules-5.8.0-25-generic N/A
 linux-backports-modules-5.8.0-25-generic N/A
 linux-firmware 1.190
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux
Symptom: storage
UpgradeStatus: Upgraded to groovy on 2020-10-24 (1 days ago)
dmi.bios.date: 01/23/2018
dmi.bios.release: 1.7
dmi.bios.vendor: FUJITSU // Insyde Software Corp.
dmi.bios.version: Version 1.07
dmi.board.name: FJNB2BB
dmi.board.vendor: FUJITSU
dmi.board.version: A2
dmi.chassis.type: 10
dmi.chassis.vendor: FUJITSU
dmi.modalias: dmi:bvnFUJITSU//InsydeSoftwareCorp.:bvrVersion1.07:bd01/23/2018:br1.7:svnFUJITSU:pnFMVWB3U27:pvr:rvnFUJITSU:rnFJNB2BB:rvrA2:cvnFUJITSU:ct10:cvr:
dmi.product.family: LIFEBOOK-JR
dmi.product.name: FMVWB3U27
dmi.sys.vendor: FUJITSU

DarkTrick (darktrick1337) wrote :

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
tags: added: focal
DarkTrick (darktrick1337) wrote :
DarkTrick (darktrick1337) wrote :
DarkTrick (darktrick1337) wrote :
DarkTrick (darktrick1337) wrote :
TJ (tj) wrote :

May be fixed by upstream commits:

7b7d897e8898 2020-07-24 12:34:42 +0200 N shirley her mmc: sdhci-pci-o2micro: Add HW tuning for SDR104 mode
cdd2b769789a 2020-07-24 12:30:36 +0200 N shirley her mmc: sdhci-pci-o2micro: Bug fix for O2 host controller Seabird1

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers