[HTC Desire X] Delold:
CM10 keeps rebooting: mmcblk0: error -110

My phone keeps restarting at random times (usually 1-3 times per hour). Thought that the cause was related somehow with the SD card & link2sd, but then I was able to reproduce the error with clean install of CM10 without SD card.

[ 669.054381] C0 mmc0: CMD5: Request timeout
[ 669.054844] C0 mmc0: SDCC PWR is ON
[ 669.055376] C0 mmc0: SDCC clks are ON, MCLK rate=144000
[ 669.056154] C0 mmc0: SDCC irq is enabled
[ 669.056593] C0 ===== SDCC-CORE: Register Dumps @phys_base=0xa0600000, @virt_base=0xcf824000 =====
[ 669.057403] C0 Reg=0x00: 0x00000001, 0x00009100, 0x00010000, 0x00000c45
[ 669.057846] C0 Reg=0x10: 0x00000005, 0x00001500, 0x0f5903ff, 0xffffffe7
[ 669.058633] C0 Reg=0x20: 0x8a4040e2, 0x039396a0, 0x00001000, 0x00022008
[ 669.059423] C0 Reg=0x30: 0x00000000, 0x00000400, 0x00000000, 0x008001ff
[ 669.059868] C0 Reg=0x40: 0x00000000, 0x00000000, 0x00000000, 0x00000000
[ 669.060664] C0 Reg=0x50: 0x00000000, 0x00000000, 0x00000000, 0x00000000
[ 669.061106] C0 Reg=0x60: 0x00000000, 0x00000000, 0x00000000, 0x00000000
[ 669.061893] C0 mmc0: got_dataend=0, prog_enable=1, wait_for_auto_prog_done=0, got_auto_prog_done=0, req_tout_ms=10000
[ 669.062703] C0 mmc0: RPM: runtime_status=0, usage_count=1, is_suspended=0, disable_depth=0, runtime_error=0, request_pending=0, request=0
[ 669.063704] C0 mmc0: Controller has been reinitialized
[ 670.272316] C0 mmc0: Deferred resume Fail
[ 670.274544] C0 mmc0: DMA channel flushed (0x80000004)
[ 670.275001] C0 Flush data: 0000c003 116a0000 00000000 00400040 003f003d 00008003
[ 670.275979] C0 mmc0: Controller has been reinitialized
[ 670.283609] C0 mmcblk0: error -110 sending status command, retrying
[ 670.291438] C0 mmcblk0: error -110 sending status command, retrying
[ 670.297969] C0 mmcblk0: error -110 sending status command, aborting
[ 670.298804] C0 end_request: I/O error, dev mmcblk0, sector 5252544
[ 670.299274] C0 Buffer I/O error on device mmcblk0p28, logical block 5304
[ 670.300139] C0 EXT4-fs warning (device mmcblk0p28): ext4_end_bio:258: I/O error writing to inode 16 (offset 753664 size 4096 starting block 656569)
[ 670.301081] C0 JBD2: Detected IO errors while flushing file data on mmcblk0p28-8
[ 670.302968] C0 mmc0: DMA channel flushed (0x80000004)
[ 670.303419] C0 Flush data: 0000c003 116a0000 00000000 00400040 003f003d 00008003
[ 670.304393] C0 mmc0: Controller has been reinitialized
[ 670.311989] C0 mmcblk0: error -110 sending status command, retrying
[ 670.318828] C0 mmcblk0: error -110 sending status command, retrying
[ 670.325706] C0 mmcblk0: error -110 sending status command, aborting
[ 670.326179] C0 end_request: I/O error, dev mmcblk0, sector 5214568
[ 670.327001] C0 end_request: I/O error, dev mmcblk0, sector 5214576
[ 670.327703] C0 Aborting journal on device mmcblk0p28-8.
[B][ 670.328726] C0 EXT4-fs error (device mmcblk0p28) in ext4_reserve_inode_write:5645: Journal has aborted[/B]
[ 670.330833] C0 mmc0: DMA channel flushed (0x80000004)
[ 670.331291] C0 Flush data: 0000c003 116a0000 00000000 00400040 003f003d 00008003
[ 670.332274] C0 mmc0: Controller has been reinitialized
[ 670.340383] C0 mmcblk0: error -110 sending status command, retrying
[ 670.347469] C0 mmcblk0: error -110 sending status command, retrying
[ 670.353916] C0 mmcblk0: error -110 sending status command, aborting
[ 670.354984] C0 end_request: I/O error, dev mmcblk0, sector 5210960
[ 670.355449] C0 Buffer I/O error on device mmcblk0p28, logical block 106
[ 670.356233] C0 lost page write due to I/O error on mmcblk0p28
[ 670.356769] C0 JBD2: I/O error detected when updating journal superblock for mmcblk0p28-8.
[ 670.358721] C0 mmc0: DMA channel flushed (0x80000004)
[ 670.359518] C0 Flush data: 0000c003 116a0000 00000000 00400040 003f003d 00008003
[ 670.360148] C0 mmc0: Controller has been reinitialized
[ 670.368251] C0 mmcblk0: error -110 sending status command, retrying
[ 670.374796] C0 mmcblk0: error -110 sending status command, retrying
[ 670.382766] C0 mmcblk0: error -110 sending status command, aborting
[ 670.382883] C0 end_request: I/O error, dev mmcblk0, sector 5210112
[ 670.383084] C0 Buffer I/O error on device mmcblk0p28, logical block 0
[ 670.383194] C0 lost page write due to I/O error on mmcblk0p28
[ 670.383419] C0 EXT4-fs (mmcblk0p28): Remounting filesystem read-only
[ 670.383613] C0 ext4_e2fsck
[ 670.390099] C0 ext4_reboot: reboot to run e2fsck
[ 670.390213] C0 Take CPU down - Begin
[ 670.390319] C0 Take CPU down - End
[ 670.391224] C0 [BATT][tps65200] TPS65200 shutdown
[ 670.392026] C0 Restarting system with command 'oem-22'.
[ 670.392233] C0 [K] msm_pm_restart: restart_reason 0x6f656d22, cmd oem-22
[ 670.392561] C0 [K] @@@@@@@@@@@ msm_proc_comm end
[ 670.392769] C0 [K] from msm_pm_restart
[ 675.484913] C0 [RMT] rmt_storage_event_write_iovec_cb: write iovec callback received
[ 675.485729] C0 [RMT] handle = 2
[ 675.486169] C0 [RMT] sec_addr = 0, data_addr = 300000, num_sec = 6143
[ 675.486958] C0 [RMT] sec_addr = 6143, data_addr = 5ffe00, num_sec = 1
[ 675.487413] C0 [RMT] iovec transfer count = 2
[ 675.484913] C0 [RMT] rmt_storage_event_write_iovec_cb: write iovec callback received
[ 675.485729] C0 [RMT] handle = 2
[ 675.486169] C0 [RMT] sec_addr = 0, data_addr = 300000, num_sec = 6143
[ 675.486958] C0 [RMT] sec_addr = 6143, data_addr = 5ffe00, num_sec = 1
[ 675.487413] C0 [RMT] iovec transfer count = 2
[ 675.487438] C0
[ 675.488653] C0 [RMT] rmt_storage_ioctl: ioctl cmd -2140093951 return value 0
[ 675.489361] C0 [RMT] rmt_storage_ioctl: wait for request ioctl
[ 675.497358] C0 [RMT] handle_rmt_storage_call: Sending result=0x0
[ 675.684068] C0 mmc0: DMA channel flushed (0x80000004)
[ 675.684278] C0 Flush data: 0000c003 116a0000 00000000 00400040 003f003d 00008003
[ 675.684463] C0 mmc0: Controller has been reinitialized
[ 675.691438] C0 mmcblk0: error -110 sending status command, retrying
[ 675.697623] C0 mmcblk0: error -110 sending status command, retrying
[ 675.703676] C0 mmcblk0: error -110 sending status command, aborting
[ 675.703896] C0 end_request: I/O error, dev mmcblk0, sector 139266
[ 675.704011] C0 Buffer I/O error on device mmcblk0p14, logical block 0
[ 675.704206] C0 lost page write due to I/O error on mmcblk0p14
[ 675.704368] C0 end_request: I/O error, dev mmcblk0, sector 139274
[ 675.704569] C0 Buffer I/O error on device mmcblk0p14, logical block 1
[ 675.704678] C0 lost page write due to I/O error on mmcblk0p14
[ 675.704893] C0 end_request: I/O error, dev mmcblk0, sector 139282
[ 675.705004] C0 Buffer I/O error on device mmcblk0p14, logical block 2
[ 675.705198] C0 lost page write due to I/O error on mmcblk0p14
[ 675.705321] C0 end_request: I/O error, dev mmcblk0, sector 139290
[ 675.705519] C0 Buffer I/O error on device mmcblk0p14, logical block 3
[ 675.705629] C0 lost page write due to I/O error on mmcblk0p14
[ 675.705848] C0 end_request: I/O error, dev mmcblk0, sector 139298
[ 675.706046] C0 Buffer I/O error on device mmcblk0p14, logical block 4
[ 675.706154] C0 lost page write due to I/O error on mmcblk0p14
[ 675.706366] C0 end_request: I/O error, dev mmcblk0, sector 139306
[ 675.706478] C0 Buffer I/O error on device mmcblk0p14, logical block 5
[ 675.706674] C0 lost page write due to I/O error on mmcblk0p14
[ 675.706798] C0 end_request: I/O error, dev mmcblk0, sector 139314
[ 675.706996] C0 Buffer I/O error on device mmcblk0p14, logical block 6
[ 675.707106] C0 lost page write due to I/O error on mmcblk0p14
[ 675.707314] C0 end_request: I/O error, dev mmcblk0, sector 139322
[ 675.707424] C0 Buffer I/O error on device mmcblk0p14, logical block 7
[ 675.707621] C0 lost page write due to I/O error on mmcblk0p14
[ 675.707744] C0 end_request: I/O error, dev mmcblk0, sector 139330
[ 675.707941] C0 Buffer I/O error on device mmcblk0p14, logical block 8
[ 675.708134] C0 lost page write due to I/O error on mmcblk0p14
[ 675.708258] C0 end_request: I/O error, dev mmcblk0, sector 139338
[ 675.708453] C0 Buffer I/O error on device mmcblk0p14, logical block 9
[ 675.708563] C0 lost page write due to I/O error on mmcblk0p14
[ 675.708773] C0 end_request: I/O error, dev mmcblk0, sector 139346
[ 675.708898] C0 end_request: I/O error, dev mmcblk0, sector 139354
[ 675.709109] C0 end_request: I/O error, dev mmcblk0, sector 139362
[ 675.709234] C0 end_request: I/O error, dev mmcblk0, sector 139370
[ 675.709446] C0 end_request: I/O error, dev mmcblk0, sector 139378
[ 675.709571] C0 end_request: I/O error, dev mmcblk0, sector 139386
[ 675.709781] C0 end_request: I/O error, dev mmcblk0, sector 139394
[ 675.709906] C0 end_request: I/O error, dev mmcblk0, sector 139402
[ 675.710118] C0 end_request: I/O error, dev mmcblk0, sector 139410
[ 675.710326] C0 end_request: I/O error, dev mmcblk0, sector 139418
[ 675.710451] C0 end_request: I/O error, dev mmcblk0, sector 139426
[ 675.710663] C0 end_request: I/O error, dev mmcblk0, sector 139434
[ 675.710788] C0 end_request: I/O error, dev mmcblk0, sector 139442
[ 675.710996] C0 end_request: I/O error, dev mmcblk0, sector 139450
[ 675.711121] C0 end_request: I/O error, dev mmcblk0, sector 139458

Running e2fsck in recovery returns this:

~ # ←[6ne2fsck -fDC0 /dev/block/mmcblk0p28
e2fsck -fDC0 /dev/block/mmcblk0p28
e2fsck 1.41.11 (14-Mar-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 3A: Optimizing directories
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/block/mmcblk0p28: ***** FILE SYSTEM WAS MODIFIED *****
/dev/block/mmcblk0p28: 127/1520 files (7.9% non-contiguous), 4546/6061 blocks

~ # ←[6ne2fsck -fDC0 /dev/block/mmcblk0p14
e2fsck -fDC0 /dev/block/mmcblk0p14
e2fsck 1.41.11 (14-Mar-2010)
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/block/mmcblk0p
14

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

Not sure if it's hardware related or software related, hope its software though.

The install itself is after doublewipe of everything except sdcard via recovery (dalvik, cache, data, system, emmc, android secure wiped). Only the rom was flashed with the kernel in the zip via flashboot, not even gapps installed.

It does seem though, that this happens, when the device is in sleep mode.

The whole logs (last_kmsg, dmesg, logcat after boot etc.): https://onedrive.live.com/redir?res...4562&authkey=!AJUvY61ySePFLac&ithint=file,zip