Bug 22096

Summary: Wrong module used for card reader RTS5129/RTS5139, rtsx_usb_sdmmc fails for those models
Product: Mageia Reporter: Asimov Solensan <tl16887>
Component: RPM PackagesAssignee: Kernel and Drivers maintainers <kernel>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: marja11, ouaurelien
Version: 6   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: kernel-4.9.56-1.mga6 CVE:
Status comment:

Description Asimov Solensan 2017-11-29 20:14:50 CET
Description of problem:

The problem is pretty well documented along all the web. If you try use a fast card in a card reader model RTS5129 or RTS5139 from realtek you get read/write errors all along trying to do any operation on the card (format, read, write, ...)

Errors appear in dmesg and there are many of them, one of most common ones just show:

[ 1471.792656] mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0xd00

The problem seem well known around the web.

This workaround suggests replacing rtsx_usb_sdmmc with older RTS5139 module.

https://github.com/asymingt/rts5139

Others seem to pass some options to rtsx_usb_sdmmc module.

https://forums.gentoo.org/viewtopic-t-1006246-start-0.html

Version-Release number of selected component (if applicable):
kernel-desktop-latest-4.9.56-1.mga6

How reproducible:
Simply inserting an SD card in the reader.

NOTE: seems that the problem only appears on fastest class cards. In my case a kingston UHS1 class from three years ago works allright. A newer kingston UHS1 256GB fails miserably. Other users reported similar behaviour.

Steps to Reproduce:
1. Make sure lsusb shows correct hardware
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller

2. Make sure problematic driver is loaded with lsmod
mmc_core              147456  4 rtsx_usb_sdmmc,sdhci,sdhci_pci,mmc_block

3.Just insert a card. The faster and newer possible.

4.Run dmesg and you will see messages like this ones.
[ 2441.256687] mmc1: new ultra high speed SDR50 SDXC card at address 0007
[ 2441.256989] mmcblk1: mmc1:0007 SD256 232 GiB 
[ 2441.258073]  mmcblk1: p1
[ 2441.334471] mmcblk1: r/w command failed, status = 0x80000900
[root@charcoal ~]# 

Any other operation will return newer errors. For instance writing a large file (few GB)

[ 2588.664566] mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0xd00
[ 2591.728545] mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0xd00
[ 2594.801632] mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0xd00
[ 2597.936943] mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0xd00
[ 2601.008562] mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0xd00
[ 2604.078708] mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0xd00
[ 2607.152688] mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0xd00
[ 2610.225147] mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0xd00
[ 2613.304438] mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0xd00
[ 2616.496626] mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0xd00
[ 2619.569337] mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0xd00
[ 2622.641417] mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0xd00
[ 2625.904400] mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0xd00
[ 2628.976563] mmcb
Marja Van Waes 2017-11-30 08:12:39 CET

Source RPM: kernel-desktop-latest-4.9.56-1.mga6 => kernel-4.9.56-1.mga6
Assignee: bugsquad => kernel
CC: (none) => marja11

Comment 1 Aurelien Oudelet 2020-08-06 16:53:29 CEST
This message is a reminder that Mageia 6 is end of life.

Mageia stopped maintaining and issuing updates for Mageia 6. At that time this bug will be closed as OLD (EOL).

Package Maintainer: If you wish for this bug to remain open because you plan to 
fix it in a currently maintained version, simply change the 'version' to a later 
Mageia version prior to Mageia 6's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that we cannot 
be able to fix it before Mageia 6 was end of life.
If you would still like to see this bug fixed and are able to reproduce it against a later version of Mageia, you are encouraged to click on "Version" and change it against that version of Mageia.

Although we aim to fix as many bugs as possible during every release's lifetime, 
sometimes those efforts are overtaken by events. Often a more recent Mageia 
release includes newer upstream software that fixes bugs or makes them obsolete.

--
Mageia Bugsquad

CC: (none) => ouaurelien
Status: NEW => RESOLVED
Resolution: (none) => OLD