[Kernel-packages] [Bug 1422338] Re: I/O errors on mmc partitions

2015-07-04 Thread Jérôme Pouiller
There are multiple cause to this bug.

However, patch in attachement may for bug described by Dan Parslow.

It is result of a bisect between a working kernel 3.14 and a non working
kernel 3.17.

** Patch added: 
"0001-Revert-mmc-sdhci-add-DDR50-1.8V-mode-support-for-Bay.patch"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1422338/+attachment/4424378/+files/0001-Revert-mmc-sdhci-add-DDR50-1.8V-mode-support-for-Bay.patch

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1422338

Title:
  I/O errors on mmc partitions

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Running live USB of the latest Vivid daily build on Lenovo Thinkpad 10
  with Samsung eMMC MDGAGC 116 GiB:

  Ubuntu 15.04 (vivid-desktop-amd64.iso 2015-02-16 8:05)
  Linux 3.18.0-13-generic
  systemd 218-10ubuntu1

  Extract of dmesg (full log in attachment):

  [ 12.337332] mmc0: BKOPS_EN bit is not set
  [ 12.348788] mmc0: new HS200 MMC card at address 0001
  ...
  [ 12.369112] mmcblk0: mmc0:0001 MDGAGC 116 GiB
  [ 12.369786] mmcblk0boot0: mmc0:0001 MDGAGC partition 1 4.00 MiB
  [ 12.370414] mmcblk0boot1: mmc0:0001 MDGAGC partition 2 4.00 MiB
  [ 12.370976] mmcblk0rpmb: mmc0:0001 MDGAGC partition 3 4.00 MiB
  [ 12.376682] mmcblk0: p1 p2 p3 p4

  I get multiple errors when trying to access to mmc partitions:

  [ 21.950514] sdhci: Timeout waiting for Buffer Read Ready interrupt during 
tuning procedure, falling back to fixed sampling clock
  [ 21.950537] mmc0: Got data interrupt 0x0060 even though no data 
operation was in progress.
  [ 21.952904] mmc0: Got data interrupt 0x0002 even though no data 
operation was in progress.
  [ 21.955002] mmcblk0: error -110 sending stop command, original cmd response 
0x900, card status 0x400900
  [ 21.955007] mmcblk0: error -84 transferring data, sector 244277120, nr 8, 
cmd response 0x900, card status 0x0
  [ 21.955011] mmcblk0: retrying using single block read
  ...
  [ 22.197516] mmcblk0boot0: error -84 transferring data, sector 8071, nr 1, 
cmd response 0x900, card status 0x0
  [ 22.199814] mmc0: Got data interrupt 0x0002 even though no data 
operation was in progress.
  [ 22.201911] mmcblk0boot1: error -110 sending stop command, original cmd 
response 0x900, card status 0x400900
  [ 22.201914] mmcblk0boot1: error -84 transferring data, sector 8064, nr 8, 
cmd response 0x900, card status 0x0
  [ 22.201917] mmcblk0boot1: retrying using single block read
  ...
  [ 22.241280] Buffer I/O error on dev mmcblk0boot0, logical block 1008, async 
page read
  [ 22.244301] mmc0: Got data interrupt 0x0002 even though no data 
operation was in progress.
  [ 22.246331] mmcblk0boot1: error -110 sending stop command, original cmd 
response 0x900, card status 0x400900
  [ 22.246335] mmcblk0boot1: error -84 transferring data, sector 8064, nr 8, 
cmd response 0x900, card status 0x0
  [ 22.246337] mmcblk0boot1: retrying using single block read
  [ 22.248553] mmcblk0boot1: error -84 transferring data, sector 8064, nr 8, 
cmd response 0x900, card status 0x0
  ...
  [ 22.265044] Buffer I/O error on dev mmcblk0boot1, logical block 1008, async 
page read

  Ubiquity reports "Input/output errors" consequently, I'm unable to
  install Ubuntu on mmcblk0 device.

  Content of /sys/block/mmcblk0:

  alignment_offset
  bdi
  capability
  dev
  device
  discard_alignment
  ext_range
  force_ro
  holders
  inflight
  mmcblk0boot0
  mmcblk0boot1
  mmcblk0p1
  mmcblk0p2
  mmcblk0p3
  mmcblk0p4
  mmcblk0rpmb
  power
  queue
  range
  removable
  ro
  size
  slaves
  stat
  subsystem
  trace
  uevent

  I don't know if it's related, but I also get a warning from libparted:

  sudo parted -l
  Warning: The driver descriptor says the physical block size is 2048 bytes, but
  Linux says it is 512 bytes.
  Ignore/Cancel? i  

  Error: /dev/mmcblk0rpmb: unrecognised disk label
  Model: Generic SD/MMC Storage Card (sd/mmc)   
  Disk /dev/mmcblk0rpmb: 4194kB
  Sector size (logical/physical): 512B/512B
  Partition Table: unknown
  Disk Flags: 

  Error: /dev/mmcblk0boot0: unrecognised disk label
  Model: Generic SD/MMC Storage Card (sd/mmc)   
  Disk /dev/mmcblk0boot0: 4194kB
  Sector size (logical/physical): 512B/512B
  Partition Table: unknown
  Disk Flags: 

  Error: /dev/mmcblk0boot1: unrecognised disk label
  Model: Generic SD/MMC Storage Card (sd/mmc)   
  Disk /dev/mmcblk0boot1: 4194kB
  Sector size (logical/physical): 512B/512B
  Partition Table: unknown
  Disk Flags: 

  Model: MMC MDGAGC (sd/mmc)
  Disk /dev/mmcblk0: 125GB
  Sector size (logical/physical): 512B/512B
  Partition Table: gpt
  Disk Flags: 

  Number  Start   EndSizeFile system  Name  
Flags
   1  1049kB  274MB  273MB   fat32EFI system partition  

[Kernel-packages] [Bug 1422338] Re: I/O errors on mmc partitions

2015-05-04 Thread Jérôme Pouiller
I made some investigations:
 
In some cases system work correctly until it reboot. Applying this patch 
http://permalink.gmane.org/gmane.linux.kernel.mmc/28281 help in this case.

I also find that opening eMMC ith O_SYNC (or mounting partition with "sync" 
flag) improve results.
  
Finally, I noticed this problem depends on eMMC chip. Samsung eMMC works while 
ones from Kingstom don't.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1422338

Title:
  I/O errors on mmc partitions

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Running live USB of the latest Vivid daily build on Lenovo Thinkpad 10
  with Samsung eMMC MDGAGC 116 GiB:

  Ubuntu 15.04 (vivid-desktop-amd64.iso 2015-02-16 8:05)
  Linux 3.18.0-13-generic
  systemd 218-10ubuntu1

  Extract of dmesg (full log in attachment):

  [ 12.337332] mmc0: BKOPS_EN bit is not set
  [ 12.348788] mmc0: new HS200 MMC card at address 0001
  ...
  [ 12.369112] mmcblk0: mmc0:0001 MDGAGC 116 GiB
  [ 12.369786] mmcblk0boot0: mmc0:0001 MDGAGC partition 1 4.00 MiB
  [ 12.370414] mmcblk0boot1: mmc0:0001 MDGAGC partition 2 4.00 MiB
  [ 12.370976] mmcblk0rpmb: mmc0:0001 MDGAGC partition 3 4.00 MiB
  [ 12.376682] mmcblk0: p1 p2 p3 p4

  I get multiple errors when trying to access to mmc partitions:

  [ 21.950514] sdhci: Timeout waiting for Buffer Read Ready interrupt during 
tuning procedure, falling back to fixed sampling clock
  [ 21.950537] mmc0: Got data interrupt 0x0060 even though no data 
operation was in progress.
  [ 21.952904] mmc0: Got data interrupt 0x0002 even though no data 
operation was in progress.
  [ 21.955002] mmcblk0: error -110 sending stop command, original cmd response 
0x900, card status 0x400900
  [ 21.955007] mmcblk0: error -84 transferring data, sector 244277120, nr 8, 
cmd response 0x900, card status 0x0
  [ 21.955011] mmcblk0: retrying using single block read
  ...
  [ 22.197516] mmcblk0boot0: error -84 transferring data, sector 8071, nr 1, 
cmd response 0x900, card status 0x0
  [ 22.199814] mmc0: Got data interrupt 0x0002 even though no data 
operation was in progress.
  [ 22.201911] mmcblk0boot1: error -110 sending stop command, original cmd 
response 0x900, card status 0x400900
  [ 22.201914] mmcblk0boot1: error -84 transferring data, sector 8064, nr 8, 
cmd response 0x900, card status 0x0
  [ 22.201917] mmcblk0boot1: retrying using single block read
  ...
  [ 22.241280] Buffer I/O error on dev mmcblk0boot0, logical block 1008, async 
page read
  [ 22.244301] mmc0: Got data interrupt 0x0002 even though no data 
operation was in progress.
  [ 22.246331] mmcblk0boot1: error -110 sending stop command, original cmd 
response 0x900, card status 0x400900
  [ 22.246335] mmcblk0boot1: error -84 transferring data, sector 8064, nr 8, 
cmd response 0x900, card status 0x0
  [ 22.246337] mmcblk0boot1: retrying using single block read
  [ 22.248553] mmcblk0boot1: error -84 transferring data, sector 8064, nr 8, 
cmd response 0x900, card status 0x0
  ...
  [ 22.265044] Buffer I/O error on dev mmcblk0boot1, logical block 1008, async 
page read

  Ubiquity reports "Input/output errors" consequently, I'm unable to
  install Ubuntu on mmcblk0 device.

  Content of /sys/block/mmcblk0:

  alignment_offset
  bdi
  capability
  dev
  device
  discard_alignment
  ext_range
  force_ro
  holders
  inflight
  mmcblk0boot0
  mmcblk0boot1
  mmcblk0p1
  mmcblk0p2
  mmcblk0p3
  mmcblk0p4
  mmcblk0rpmb
  power
  queue
  range
  removable
  ro
  size
  slaves
  stat
  subsystem
  trace
  uevent

  I don't know if it's related, but I also get a warning from libparted:

  sudo parted -l
  Warning: The driver descriptor says the physical block size is 2048 bytes, but
  Linux says it is 512 bytes.
  Ignore/Cancel? i  

  Error: /dev/mmcblk0rpmb: unrecognised disk label
  Model: Generic SD/MMC Storage Card (sd/mmc)   
  Disk /dev/mmcblk0rpmb: 4194kB
  Sector size (logical/physical): 512B/512B
  Partition Table: unknown
  Disk Flags: 

  Error: /dev/mmcblk0boot0: unrecognised disk label
  Model: Generic SD/MMC Storage Card (sd/mmc)   
  Disk /dev/mmcblk0boot0: 4194kB
  Sector size (logical/physical): 512B/512B
  Partition Table: unknown
  Disk Flags: 

  Error: /dev/mmcblk0boot1: unrecognised disk label
  Model: Generic SD/MMC Storage Card (sd/mmc)   
  Disk /dev/mmcblk0boot1: 4194kB
  Sector size (logical/physical): 512B/512B
  Partition Table: unknown
  Disk Flags: 

  Model: MMC MDGAGC (sd/mmc)
  Disk /dev/mmcblk0: 125GB
  Sector size (logical/physical): 512B/512B
  Partition Table: gpt
  Disk Flags: 

  Number  Start   EndSizeFile system  Name  
Flags
   1  1049kB  274MB  273MB   fat32EFI system partition  
boot, esp
   2  274MB   408MB  1

[Kernel-packages] [Bug 1422338] Re: I/O errors on mmc partitions

2015-04-01 Thread Jérôme Pouiller
For information, I have an Atom E3845 and I observe same problem.

This issue may be related to erratas:

  - For Z36xx and Z37xx, errata VLT7 described here: 

http://www.intel.fr/content/dam/www/public/us/en/documents/specification-updates/atom-Z36xxx-Z37xxx-spec-update.pdf

  - For E38xx, errata VLI6 described here: 

http://www.intel.fr/content/dam/www/public/us/en/documents/specification-updates/atom-e3800-family-spec-update.pdf

** This bug is no longer a duplicate of bug 1333140
   Fix udev rules to consider mmc rpmb partitions

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1422338

Title:
  I/O errors on mmc partitions

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Running live USB of the latest Vivid daily build on Lenovo Thinkpad 10
  with Samsung eMMC MDGAGC 116 GiB:

  Ubuntu 15.04 (vivid-desktop-amd64.iso 2015-02-16 8:05)
  Linux 3.18.0-13-generic
  systemd 218-10ubuntu1

  Extract of dmesg (full log in attachment):

  [ 12.337332] mmc0: BKOPS_EN bit is not set
  [ 12.348788] mmc0: new HS200 MMC card at address 0001
  ...
  [ 12.369112] mmcblk0: mmc0:0001 MDGAGC 116 GiB
  [ 12.369786] mmcblk0boot0: mmc0:0001 MDGAGC partition 1 4.00 MiB
  [ 12.370414] mmcblk0boot1: mmc0:0001 MDGAGC partition 2 4.00 MiB
  [ 12.370976] mmcblk0rpmb: mmc0:0001 MDGAGC partition 3 4.00 MiB
  [ 12.376682] mmcblk0: p1 p2 p3 p4

  I get multiple errors when trying to access to mmc partitions:

  [ 21.950514] sdhci: Timeout waiting for Buffer Read Ready interrupt during 
tuning procedure, falling back to fixed sampling clock
  [ 21.950537] mmc0: Got data interrupt 0x0060 even though no data 
operation was in progress.
  [ 21.952904] mmc0: Got data interrupt 0x0002 even though no data 
operation was in progress.
  [ 21.955002] mmcblk0: error -110 sending stop command, original cmd response 
0x900, card status 0x400900
  [ 21.955007] mmcblk0: error -84 transferring data, sector 244277120, nr 8, 
cmd response 0x900, card status 0x0
  [ 21.955011] mmcblk0: retrying using single block read
  ...
  [ 22.197516] mmcblk0boot0: error -84 transferring data, sector 8071, nr 1, 
cmd response 0x900, card status 0x0
  [ 22.199814] mmc0: Got data interrupt 0x0002 even though no data 
operation was in progress.
  [ 22.201911] mmcblk0boot1: error -110 sending stop command, original cmd 
response 0x900, card status 0x400900
  [ 22.201914] mmcblk0boot1: error -84 transferring data, sector 8064, nr 8, 
cmd response 0x900, card status 0x0
  [ 22.201917] mmcblk0boot1: retrying using single block read
  ...
  [ 22.241280] Buffer I/O error on dev mmcblk0boot0, logical block 1008, async 
page read
  [ 22.244301] mmc0: Got data interrupt 0x0002 even though no data 
operation was in progress.
  [ 22.246331] mmcblk0boot1: error -110 sending stop command, original cmd 
response 0x900, card status 0x400900
  [ 22.246335] mmcblk0boot1: error -84 transferring data, sector 8064, nr 8, 
cmd response 0x900, card status 0x0
  [ 22.246337] mmcblk0boot1: retrying using single block read
  [ 22.248553] mmcblk0boot1: error -84 transferring data, sector 8064, nr 8, 
cmd response 0x900, card status 0x0
  ...
  [ 22.265044] Buffer I/O error on dev mmcblk0boot1, logical block 1008, async 
page read

  Ubiquity reports "Input/output errors" consequently, I'm unable to
  install Ubuntu on mmcblk0 device.

  Content of /sys/block/mmcblk0:

  alignment_offset
  bdi
  capability
  dev
  device
  discard_alignment
  ext_range
  force_ro
  holders
  inflight
  mmcblk0boot0
  mmcblk0boot1
  mmcblk0p1
  mmcblk0p2
  mmcblk0p3
  mmcblk0p4
  mmcblk0rpmb
  power
  queue
  range
  removable
  ro
  size
  slaves
  stat
  subsystem
  trace
  uevent

  I don't know if it's related, but I also get a warning from libparted:

  sudo parted -l
  Warning: The driver descriptor says the physical block size is 2048 bytes, but
  Linux says it is 512 bytes.
  Ignore/Cancel? i  

  Error: /dev/mmcblk0rpmb: unrecognised disk label
  Model: Generic SD/MMC Storage Card (sd/mmc)   
  Disk /dev/mmcblk0rpmb: 4194kB
  Sector size (logical/physical): 512B/512B
  Partition Table: unknown
  Disk Flags: 

  Error: /dev/mmcblk0boot0: unrecognised disk label
  Model: Generic SD/MMC Storage Card (sd/mmc)   
  Disk /dev/mmcblk0boot0: 4194kB
  Sector size (logical/physical): 512B/512B
  Partition Table: unknown
  Disk Flags: 

  Error: /dev/mmcblk0boot1: unrecognised disk label
  Model: Generic SD/MMC Storage Card (sd/mmc)   
  Disk /dev/mmcblk0boot1: 4194kB
  Sector size (logical/physical): 512B/512B
  Partition Table: unknown
  Disk Flags: 

  Model: MMC MDGAGC (sd/mmc)
  Disk /dev/mmcblk0: 125GB
  Sector size (logical/physical): 512B/512B
  Partition Table: gpt
  Disk Flags: 

  Number  Start   EndSizeFil