[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-09-01 Thread Kai-Heng Feng
** Changed in: linux (Ubuntu)
   Status: Incomplete => Confirmed

** Changed in: linux (Ubuntu)
 Assignee: Kai-Heng Feng (kaihengfeng) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-19 Thread Kai-Heng Feng
Did anyone already file a report at bugzilla.kernel.org, or escalate
this issue on mailing list?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-14 Thread Kai-Heng Feng
That's unfortunate.

I found that sd_change_phase() and sd_set_timing() in rtsx_usb_sdmmc.c
do not have rtsx_usb_get_rsp(), which can be found in rts5139 as
rts51x_get_rsp().

That's all I got.

Here's the diff I use:

diff --git a/drivers/mmc/host/rtsx_usb_sdmmc.c 
b/drivers/mmc/host/rtsx_usb_sdmmc.c 
   
index 12d2fbe9c520..30cb98272158 100644
--- a/drivers/mmc/host/rtsx_usb_sdmmc.c
+++ b/drivers/mmc/host/rtsx_usb_sdmmc.c
@@ -616,7 +616,7 @@ static int sd_change_phase(struct rtsx_usb_sdmmc *host, u8 
sample_point, int tx)  
if (err)   
return err;
   
-   return 0;  
+   return rtsx_usb_get_rsp(ucr, 1, 500);  
 } 
   
 static inline u32 get_phase_point(u32 phase_map, unsigned int idx)
@@ -1126,8 +1126,10 @@ static int sd_set_timing(struct rtsx_usb_sdmmc *host,   
}  
   
err = rtsx_usb_send_cmd(ucr, MODE_C, 100); 
+   if (err)   
+   return err;
   
-   return err;
+   return rtsx_usb_get_rsp(ucr, 6, 1000); 
 } 
   
 static void sdmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-14 Thread Oleg
install this kernel:
oleg@oleg-Lenovo-G580:~/Завантаження/1$ sudo dpkg -i *.deb
[sudo] пароль до oleg: 
(Читання бази даних ... на дану мить встановлено 315002 файли та каталоги.)
Приготування до розпакування linux-headers-4.13.0-5_4.13.0-5.6_all.deb ...
Розпакування linux-headers-4.13.0-5 (4.13.0-5.6) над (4.13.0-5.6)...
Приготування до розпакування 
linux-headers-4.13.0-5-generic_4.13.0-5.6_amd64.deb ...
Розпакування linux-headers-4.13.0-5-generic (4.13.0-5.6) над (4.13.0-5.6)...
Приготування до розпакування linux-image-4.13.0-5-generic_4.13.0-5.6_amd64.deb 
...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.13.0-5-generic 
/boot/vmlinuz-4.13.0-5-generic
Done.
Розпакування linux-image-4.13.0-5-generic (4.13.0-5.6) над (4.13.0-5.6)...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-5-generic 
/boot/vmlinuz-4.13.0-5-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-5-generic 
/boot/vmlinuz-4.13.0-5-generic
Приготування до розпакування 
linux-image-extra-4.13.0-5-generic_4.13.0-5.6_amd64.deb ...
Розпакування linux-image-extra-4.13.0-5-generic (4.13.0-5.6) над (4.13.0-5.6)...
Налаштовування linux-headers-4.13.0-5 (4.13.0-5.6) ...
Налаштовування linux-headers-4.13.0-5-generic (4.13.0-5.6) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.13.0-5-generic 
/boot/vmlinuz-4.13.0-5-generic
ERROR (dkms apport): kernel package linux-headers-4.13.0-5-generic is not 
supported
Error! Bad return status for module build on kernel: 4.13.0-5-generic (x86_64)
Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more 
information.
ERROR (dkms apport): kernel package linux-headers-4.13.0-5-generic is not 
supported
Error! Bad return status for module build on kernel: 4.13.0-5-generic (x86_64)
Consult /var/lib/dkms/virtualbox/5.0.40/build/make.log for more information.
Налаштовування linux-image-4.13.0-5-generic (4.13.0-5.6) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Not updating initrd symbolic links since we are being updated/reinstalled   


(4.13.0-5.6 was configured last, according to dpkg) 


Not updating image symbolic links since we are being updated/reinstalled


(4.13.0-5.6 was configured last, according to dpkg) 


Examining /etc/kernel/postinst.d.   


run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-5-generic 
/boot/vmlinuz-4.13.0-5-generic  
  
run-parts: executing /etc/kernel/postinst.d/dkms 4.13.0-5-generic 
/boot/vmlinuz-4.13.0-5-generic  
  
ERROR (dkms apport): kernel package linux-headers-4.13.0-5-generic is not 
supported   
  
Error! Bad return status for module build on kernel: 4.13.0-5-generic (x86_64)  


Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more 
information.
 
ERROR (dkms apport): kernel package linux-headers-4.13.0-5-generic is not 
supported   
  
Error! Bad return status for module build on kernel: 4.13.0-5-generic (x86_64)  


Consult /var/lib/dkms/virtualbox/5.0.40/build/make.log for more information.


run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-5-generic 
/boot/vmlinuz-4.13.0-5-generic  
   
update-initramfs: Generating /boot/initrd.img-4.13.0-5-generic  

   

[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-13 Thread Kai-Heng Feng
Please try kernel in http://people.canonical.com/~khfeng/lp1579748/

svasiljev, can you also try it? Hopefully it didn't bring any regression
to the "new" RTS5129.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-11 Thread Oleg
returm to kernel driver and change in drivers/mmc/host/rtsx_usb_sdmmc.c
As advised in https://lkml.org/lkml/2015/10/21/318 comment caps:

static void rtsx_usb_init_host(struct rtsx_usb_sdmmc *host)
{
struct mmc_host *mmc = host->mmc;

mmc->f_min = 25;
mmc->f_max = 20800;
mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195;
mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SD_HIGHSPEED |
//  MMC_CAP_MMC_HIGHSPEED | MMC_CAP_BUS_WIDTH_TEST |
//  MMC_CAP_UHS_SDR12 | MMC_CAP_UHS_SDR25 | MMC_CAP_UHS_SDR50 |
MMC_CAP_NEEDS_POLL;
mmc->caps2 = MMC_CAP2_NO_PRESCAN_POWERUP | MMC_CAP2_FULL_PWR_CYCLE;

mmc->max_current_330 = 400;
mmc->max_current_180 = 800;
mmc->ops = _usb_sdmmc_ops;
mmc->max_segs = 256;
mmc->max_seg_size = 65536;
mmc->max_blk_size = 512;
mmc->max_blk_count = 65535;
mmc->max_req_size = 524288;

host->power_mode = MMC_POWER_OFF;
}

reload new module and block rts5139

# lsmod | grep rts
rtsx_usb_sdmmc 28672  0
rtsx_usb_ms20480  0
memstick   16384  1 rtsx_usb_ms
rtsx_usb   20480  2 rtsx_usb_sdmmc,rtsx_usb_ms

It does not work anyway, as before the changes:
[10270.437734] mmc0: error -110 whilst initialising SD card
[10273.125682] mmc0: error -110 whilst initialising SD card
[10276.837684] mmc0: error -110 whilst initialising SD card
[10279.493425] mmc0: error -110 whilst initialising SD card
[10304.740718] mmc0: error -110 whilst initialising SD card
[10307.428683] mmc0: error -110 whilst initialising SD card

If you have any ideas I can check them on my kernel

Linux oleg-Lenovo-G580 4.10.0-30-generic #34~16.04.1-Ubuntu SMP Wed Aug
2 02:13:56 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-10 Thread Kai-Heng Feng
Can you guys try the suggestions in comment #32?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-10 Thread Oleg
compile https://github.com/asymingt/rts5139

Linux oleg-Lenovo-G580 4.10.0-30-generic #34~16.04.1-Ubuntu SMP Wed Aug
2 02:13:56 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

[10366.363560] sd 6:0:0:0: [sdb] 7954432 512-byte logical blocks: (4.07 GB/3.79 
GiB)
[10376.625609] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE
[10376.625618] sd 6:0:0:0: [sdb] tag#0 Sense Key : Medium Error [current] 
[10376.625623] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Unrecovered read error
[10376.625630] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 
00
[10376.625634] blk_update_request: critical medium error, dev sdb, sector 0
[10376.625646] Buffer I/O error on dev sdb, logical block 0, async page read
[10386.866325] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE
[10386.866333] sd 6:0:0:0: [sdb] tag#0 Sense Key : Medium Error [current] 
[10386.866338] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Unrecovered read error
[10386.866345] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 
00
[10386.866350] blk_update_request: critical medium error, dev sdb, sector 0
[10386.866360] Buffer I/O error on dev sdb, logical block 0, async page read
[10397.107027] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE
[10397.107031] sd 6:0:0:0: [sdb] tag#0 Sense Key : Medium Error [current] 
[10397.107033] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Unrecovered read error
[10397.107036] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 
00
[10397.107038] blk_update_request: critical medium error, dev sdb, sector 0
[10397.107043] Buffer I/O error on dev sdb, logical block 0, async page read
[10397.107056] ldm_validate_partition_table(): Disk read failed.

# lsmod
Module  Size  Used by
hid_generic16384  0
usbhid 53248  0
hid   118784  2 hid_generic,usbhid
rfcomm 77824  12
pci_stub   16384  1
vboxpci24576  0
vboxnetadp 28672  0
vboxnetflt 28672  0
vboxdrv   458752  3 vboxnetadp,vboxnetflt,vboxpci
zram   24576  4
bnep   20480  2
rts5139   315392  0
uvcvideo   90112  0
videobuf2_vmalloc  16384  1 uvcvideo
videobuf2_memops   16384  1 videobuf2_vmalloc
videobuf2_v4l2 24576  1 uvcvideo
videobuf2_core 40960  2 uvcvideo,videobuf2_v4l2
videodev  172032  3 uvcvideo,videobuf2_core,videobuf2_v4l2
media  40960  2 uvcvideo,videodev
btusb  45056  0
btrtl  16384  1 btusb
btbcm  16384  1 btusb
btintel16384  1 btusb
bluetooth 557056  39 btrtl,btintel,bnep,btbcm,rfcomm,btusb
wl   6447104  0
intel_rapl 20480  0
x86_pkg_temp_thermal16384  0
intel_powerclamp   16384  0
kvm_intel 200704  0
kvm   593920  1 kvm_intel
irqbypass  16384  1 kvm
crct10dif_pclmul   16384  0
crc32_pclmul   16384  0
ghash_clmulni_intel16384  0
cryptd 24576  1 ghash_clmulni_intel
intel_cstate   20480  0
intel_rapl_perf16384  0
joydev 20480  0
input_leds 16384  0
serio_raw  16384  0
snd_hda_codec_hdmi 49152  1
snd_hda_codec_conexant24576  1
snd_hda_codec_generic73728  1 snd_hda_codec_conexant
snd_hda_intel  36864  3
snd_hda_codec 126976  4 
snd_hda_intel,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_codec_generic
snd_hda_core   81920  5 
snd_hda_intel,snd_hda_codec_conexant,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic
snd_hwdep  16384  1 snd_hda_codec
snd_pcm   102400  4 
snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd_seq_midi   16384  0
snd_seq_midi_event 16384  1 snd_seq_midi
snd_rawmidi32768  1 snd_seq_midi
snd_seq65536  2 snd_seq_midi_event,snd_seq_midi
snd_seq_device 16384  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer  32768  2 snd_seq,snd_pcm
ideapad_laptop 24576  0
lpc_ich24576  0
mei_me 40960  0
snd77824  17 
snd_hda_intel,snd_hwdep,snd_hda_codec_conexant,snd_seq,snd_hda_codec,snd_timer,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_seq_device,snd_pcm
cfg80211  602112  1 wl
sparse_keymap  16384  1 ideapad_laptop
wmi16384  1 ideapad_laptop
mei   102400  1 mei_me
shpchp 36864  0
soundcore  16384  1 snd
mac_hid16384  0
coretemp   16384  0
bbswitch   16384  0
parport_pc 32768  0
ppdev  20480  0
lp 20480  0
parport49152  3 lp,parport_pc,ppdev
autofs440960  2
btrfs

[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-10 Thread Oleg
Lenovo g580 
The bug is present on the last hwe kernel 4.10.0-30-generic
I'll try to test the solution 
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/comments/24

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-10 Thread svasiljev
Check these Marcus Overhagen reports from 2015:
https://lkml.org/lkml/2015/9/28/593
https://lkml.org/lkml/2015/10/20/590

Here is Marcus response:
"Ulf Hansson suggested to experiment with changing MMC_CAPS, but I ran
into trouble when trying to install custom kernel image because my
/boot partition was too small.

I didn't get any futher response from other developers. Apart from
Ulf, nobody seemed to be bothered by the corruption."

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-10 Thread svasiljev
Thanks for your help and feedback, guys.
Can't reproduce this issue on a newer hardware - Acer Aspire v15 Nitro, 2016 
(with the same RTS5129,  live-usb and Transcend 32Gb SDHC card).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-10 Thread Kai-Heng Feng
Ok, first we need to make sure the various changes in mmc/core fixed the
issue or not.

If the issue still happen, add "mmc_core.dyndbg=+p
rtsx_usb_sdmmc.dyndbg=+p" to your kernel parameter and attach dmesg.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-10 Thread Akos Mate
It does not have this problem, with all the cards. For me it has this
problem with a Transcend 32GB UHS-I microSD card. It might be a timing
or ordering problem, which only appears if the card responds quickly.
The same card reads at 20 MB/s without corruption, on the same machine,
if I boot to windows.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-10 Thread Kai-Heng Feng
I managed to find a machine with RTS5129, which does not have this
issue.

Originally I think it's a good idea to bring rts5139 module back, but I
can't reproduce the issue on the RTS5129 I have.

Can you try 4.13-rc4? There are several fixes landed in mmc/core.

** Changed in: linux (Ubuntu)
   Status: In Progress => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-10 Thread Kai-Heng Feng
Actually it uses rts5139. We just need to solve the dma issue.

** Changed in: linux (Ubuntu)
 Assignee: (unassigned) => Kai-Heng Feng (kaihengfeng)

** Changed in: linux (Ubuntu)
   Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-09 Thread Akos Mate
No luck so far, the drive does not show up at all.

** Attachment added: "dmesg.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+attachment/4929642/+files/dmesg.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-09 Thread Kai-Heng Feng
I'll build deb package if other Ubuntu users want to test it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-09 Thread Kai-Heng Feng
Akos, since you use Gentoo instead of Ubuntu, please try this kernel
tree:

https://code.launchpad.net/~kaihengfeng/+git/rts5139

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-07 Thread Akos Mate
Yes, I can.
It's now with 4.9.34 kernel, but it's the same problem.

** Attachment added: "dmesg.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+attachment/4928460/+files/dmesg.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-06 Thread Kai-Heng Feng
Akos,

Can you attach dmesg?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-08-06 Thread Akos Mate
Still there in 4.9.16.
Did anybody forward this bug report to the appropriate people?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2017-06-18 Thread Jan Drogi
It seems that solution described here fix the issue:
https://github.com/asymingt/rts5139

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-11-02 Thread Christopher M. Penalver
** Changed in: linux (Ubuntu)
   Status: Confirmed => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-10-31 Thread Akos Mate
Same errors, on 4.8.1-gentoo.

** Changed in: linux (Ubuntu)
   Status: Triaged => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-07-16 Thread Christopher M. Penalver
svasiljev, the issue you are reporting is an upstream one. Could you
please report this problem following the instructions verbatim at
https://wiki.ubuntu.com/Bugs/Upstream/kernel to the appropriate mailing
list (TO Roger Tseng and Ulf Hansson CC linux-mmc)?

Please provide a direct URL to your post to the mailing list when it
becomes available so that it may be tracked.

Thank you for your help.

** Tags removed: needs-bisect

** Changed in: linux (Ubuntu)
   Status: Confirmed => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-07-16 Thread svasiljev
Ah, retested on latest 4.7.0-040700rc7-generic #201607110032 - same issues. 
Another new error pattern:
FAT-fs (mmcblk0p1): error, invalid access to FAT (entry 0x0b730a96)
FAT-fs (mmcblk0p1): Filesystem has been set read-only
attempt to access beyond end of device
mmcblk0p1: rw=0, want=12293694784, limit=61855744

** Changed in: linux (Ubuntu)
   Status: Incomplete => Confirmed

** Tags removed: kernel-bug-exists-upstream-4.7-rc5
** Tags added: kernel-bug-exists-upstream-4.7-rc7

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-07-16 Thread Christopher M. Penalver
svasiljev, was your most recent test on the latest mainline kernel
(4.7-rc7)?

** Tags added: latest-bios-a17

** Changed in: linux (Ubuntu)
   Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-07-16 Thread svasiljev
Ok, dmidecode output after BIOS update:
A17
05/19/2015

Read test produces same errors after BIOS update. Some new error patterns:
mmcblk0: error -110 sending status command, retrying
mmcblk0: error -32 sending stop command, original cmd response 0x900, card 
status 0xb00
FAT-fs (mmcblk0p1): error, fat_get_cluster: invalid cluster chain (i_pos 262148)



** Tags removed: bios-outdated-a17

** 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/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-07-02 Thread Christopher M. Penalver
svasiljev, as per http://www.dell.com/support/home/us/en/19/product-
support/product/inspiron-17r-se-7720/drivers?os=biosa an update to your
computer's buggy, insecure, and outdated BIOS is available (A17). When
you update to this following
https://help.ubuntu.com/community/BIOSUpdate how does this improve the
situation?

For more on BIOS updates and linux, please see
https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette
.

Please note your current BIOS is already in the Bug Description, so
posting this on the old BIOS would not be helpful.

Also, you don't have to create a new bug report.

Once the BIOS is updated, if the problem is still reproducible:
1) Please provide the output of the following terminal command (not perform an 
apport-collect):
sudo dmidecode -s bios-version && sudo dmidecode -s bios-release-date
2) Please make a comment specifically advising on if there was an improvement 
or not.
3) Please mark this report Status Confirmed.

If it's not reproducible, please mark this as Invalid.

Thank you for your help.

** Changed in: linux (Ubuntu)
   Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-06-29 Thread svasiljev
Christopher, sure.?field.comment=Christopher, sure.

** Attachment added: "usb-devices output"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+attachment/4692413/+files/UsbDevices.txt

** Changed in: linux (Ubuntu)
   Status: Incomplete => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-06-29 Thread Christopher M. Penalver
svasiljev, could you please post the results of the following terminal command:
usb-devices

** Tags removed: kernel-bug-exists-upstream-4.6-rc7
** Tags added: kernel-bug-exists-upstream-4.7-rc5 needs-bisect

** Changed in: linux (Ubuntu)
   Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-06-27 Thread svasiljev
Christopher, done. Issue exists on the latest 4.7.0-040700rc5-generic
#201606262232 SMP Mon Jun 27 02:34:07 UTC 2016 x86_64


** Changed in: linux (Ubuntu)
   Status: Incomplete => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-06-26 Thread Christopher M. Penalver
svasiljev, to keep this relevant to upstream, could you please test the
latest mainline kernel (4.7-rc4) and advise to the results?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-06-23 Thread Christopher M. Penalver
** Tags added: regression-release

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-06-18 Thread svasiljev
Christopher, done. badblocks test completes without errors on Ubuntu
12.04 (3.5.0-48).

My short test example:
badblocks -wsv -e 1 -t 255 /dev/mmcblk0 1 4000

* read-only tests doesn't detect any issues;
* write-test pattern 0xff (-t 255) is much more efficient then first two 
default patterns (0xaa and 0x55);
* small random block range used (4000-1) for quick tests.

Also, this card has been successfully tested on:
- RTS5139 Card Reader Controller (0bda:0139) (rtsx_usb on Lubuntu 16.04);
- ENE Technology Inc pci SD/MMC card reader controller (rtsx_usb on Xubuntu 
16.04);
- Nikon camera PTP USB device (gphoto2 on Ubuntu 16.04).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-06-05 Thread Christopher M. Penalver
svasiljev, to clarify your Bug Description, you noted badblocks showed
errors (indicating bad sectors). Hence, to confirm this isn't a hardware
issue, could you please boot into a pre-3.16 kernel, then run badblocks
again, and advise to the results?

My expectation if your Bug Description comments are correct, is that
badblocks would have no errors.

** Tags added: bios-outdated-a17 kernel-bug-exists-upstream-4.6-rc7

** Changed in: linux (Ubuntu)
   Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-05-24 Thread Denys Vitali
Same problem here, I'm currently using 4.5.0-rc4-mainline with the Realtek 
Semiconductor Corp. RTS5129 Card Reader Controller on Arch Linux.
The problem appears just on Linux, and I have fixed it a while ago, until I 
format my pc and installed Arch. Unfortunately I don't have the solution 
anymore (see 
http://unix.stackexchange.com/questions/257033/rts5129-card-reader-with-ubuntu-15-10)
 since the user who has commented actually deleted his account.

This happens when I put on a class 10 micro sd card with an sdcard
adapter in my Acer Aspire V17 Nitro

[  132.789797] sd 4:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 
driverbyte=0x08
[  132.789807] sd 4:0:0:0: [sdc] tag#0 Sense Key : 0x3 [current] 
[  132.789813] sd 4:0:0:0: [sdc] tag#0 ASC=0x11 ASCQ=0x0 
[  132.789818] sd 4:0:0:0: [sdc] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 
20 00
[  132.789823] blk_update_request: critical medium error, dev sdc, sector 0
[  132.790660] sd 4:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 
driverbyte=0x08
[  132.790666] sd 4:0:0:0: [sdc] tag#0 Sense Key : 0x3 [current] 
[  132.790670] sd 4:0:0:0: [sdc] tag#0 ASC=0x11 ASCQ=0x0 
[  132.790675] sd 4:0:0:0: [sdc] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 
08 00
[  132.790679] blk_update_request: critical medium error, dev sdc, sector 0
[  132.790684] Buffer I/O error on dev sdc, logical block 0, async page read
[  132.791535] sd 4:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 
driverbyte=0x08
[  132.791546] sd 4:0:0:0: [sdc] tag#0 Sense Key : 0x3 [current] 
[  132.791553] sd 4:0:0:0: [sdc] tag#0 ASC=0x11 ASCQ=0x0 
[  132.791561] sd 4:0:0:0: [sdc] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 
08 00
[  132.791567] blk_update_request: critical medium error, dev sdc, sector 0
[  132.791574] Buffer I/O error on dev sdc, logical block 0, async page read


lsmod:
Module  Size  Used by
fuse   94208  3
ctr16384  2
ccm20480  2
cmac   16384  2
ecb16384  1
rfcomm 61440  14
ipt_MASQUERADE 16384  1
nf_nat_masquerade_ipv416384  1 ipt_MASQUERADE
iptable_nat16384  1
nf_conntrack_ipv4  16384  2
nf_defrag_ipv4 16384  1 nf_conntrack_ipv4
nf_nat_ipv416384  1 iptable_nat
xt_addrtype16384  2
iptable_filter 16384  1
xt_conntrack   16384  1
nf_nat 20480  2 nf_nat_ipv4,nf_nat_masquerade_ipv4
nf_conntrack   90112  5 
nf_nat,nf_nat_ipv4,xt_conntrack,nf_nat_masquerade_ipv4,nf_conntrack_ipv4
br_netfilter   24576  0
bridge118784  1 br_netfilter
stp16384  1 bridge
llc16384  2 stp,bridge
dm_thin_pool   61440  1
dm_persistent_data 57344  1 dm_thin_pool
dm_bio_prison  16384  1 dm_thin_pool
dm_bufio   24576  1 dm_persistent_data
libcrc32c  16384  1 dm_persistent_data
crc32c_generic 16384  0
loop   28672  4
arc4   16384  2
snd_hda_codec_hdmi 53248  1
snd_hda_codec_realtek69632  1
snd_hda_codec_generic69632  1 snd_hda_codec_realtek
bnep   20480  2
nls_iso8859_1  16384  1
nls_cp437  20480  1
vfat   20480  1
fat65536  1 vfat
i915 1142784  22
mousedev   20480  0
hid_multitouch 20480  0
ath10k_pci 45056  0
ath10k_core   262144  1 ath10k_pci
ath28672  1 ath10k_core
mac80211  643072  1 ath10k_core
r8169  77824  0
btusb  40960  0
joydev 20480  0
btrtl  16384  1 btusb
uvcvideo   86016  0
i2c_designware_platform16384  0
mii16384  1 r8169
btbcm  16384  1 btusb
cfg80211  483328  3 ath,mac80211,ath10k_core
drm_kms_helper106496  1 i915
acer_wmi   20480  0
i2c_designware_core20480  1 i2c_designware_platform
btintel16384  1 btusb
sparse_keymap  16384  1 acer_wmi
drm   286720  9 i915,drm_kms_helper
intel_rapl 20480  0
bluetooth 454656  41 bnep,btbcm,btrtl,btusb,rfcomm,btintel
intel_gtt  20480  1 i915
videobuf2_vmalloc  16384  1 uvcvideo
x86_pkg_temp_thermal16384  0
syscopyarea16384  1 drm_kms_helper
sysfillrect16384  1 drm_kms_helper
videobuf2_memops   16384  1 videobuf2_vmalloc
sysimgblt  16384  1 drm_kms_helper
intel_powerclamp   16384  0
fb_sys_fops16384  1 drm_kms_helper
i2c_algo_bit   16384  1 i915
coretemp   16384  0
videobuf2_v4l2 20480  1 uvcvideo
rfkill 20480  9 cfg80211,acer_wmi,bluetooth
kvm_intel 180224  0
videobuf2_core 36864  2 uvcvideo,videobuf2_v4l2
videodev  147456  3 

[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-05-09 Thread svasiljev
Thanks, Joseph. Bug exists on mainline 4.6.0-040600rc7.201605081830.

In first test it completely failed to mount card, spaming with errors:
May  9 16:05:53 dev-laptop kernel: [  103.547966] mmc0: error -110 whilst 
initialising SD card
May  9 16:05:57 dev-laptop kernel: [  107.655738] mmc0: error -110 whilst 
initialising SD card
May  9 16:06:01 dev-laptop kernel: [  111.763336] mmc0: error -110 whilst 
initialising SD card 

Eject/re-insert was required to mount card and perform second test:
copy/md5sum test fails with "mmcblk0: error -110 sending stop command,
original cmd response 0x900, card status 0x900" errors and corrupted
data.

** Tags added: kernel-bug-exists-upstream

** 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/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579748] Re: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption

2016-05-09 Thread Joseph Salisbury
Would it be possible for you to test the latest upstream kernel? Refer
to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
v4.6 kernel[0].

If this bug is fixed in the mainline kernel, please add the following
tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag:
'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as
"Confirmed".


Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-rc7-wily/


** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu)
   Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579748

Title:
  rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader
  Controller: mmc errors and read data corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs