[Galaxy Note II Q&A, Help & Troubleshooting] gub:
After 9-10 months, I get a random freeze/crash about every few hours. It started to happen overnight.

I am using perseus-alpha-36, a supposedly safe kernel. No UV, OC or ABB tweaks enabled.

Here is the part of /proc/last_kmsg that made me suspect the SDS bug, it is even mentioned explicitely.

And yes, I checked and my chip is insane.

<3>[ 9506.894406] c0 mmc0: Got data interrupt 0x00001000 from MINT even though no data operation was in progress.
<7>[ 9506.894606] c0 mshci: ============== REGISTER DUMP ==============
<7>[ 9506.894724] c0 mshci: MSHCI_CTRL: 0x00000010
<7>[ 9506.894811] c0 mshci: MSHCI_PWREN: 0x00000001
<7>[ 9506.894904] c0 mshci: MSHCI_CLKDIV: 0x00000001
<7>[ 9506.894988] c0 mshci: MSHCI_CLKSRC: 0x00000000
<7>[ 9506.895074] c0 mshci: MSHCI_CLKENA: 0x00000000
<7>[ 9506.895167] c0 mshci: MSHCI_TMOUT: 0xffffffff
<7>[ 9506.895252] c0 mshci: MSHCI_CTYPE: 0x00010000
<7>[ 9506.895337] c0 mshci: MSHCI_BLKSIZ: 0x00000200
<7>[ 9506.895424] c0 mshci: MSHCI_BYTCNT: 0x00001000
<7>[ 9506.895522] c0 mshci: MSHCI_INTMSK: 0x0000bfce
<7>[ 9506.895608] c0 mshci: MSHCI_CMDARG: 0x00010000
<7>[ 9506.895693] c0 mshci: MSHCI_CMD: 0x80202000
<7>[ 9506.895788] c0 mshci: MSHCI_MINTSTS: 0x00000000
<7>[ 9506.895872] c0 mshci: MSHCI_RINTSTS: 0x00000030
<7>[ 9506.895954] c0 mshci: MSHCI_STATUS: 0x01fa6b01
<7>[ 9506.896035] c0 mshci: MSHCI_FIFOTH: 0x503f0040
<7>[ 9506.896118] c0 mshci: MSHCI_CDETECT: 0x00000001
<7>[ 9506.896207] c0 mshci: MSHCI_WRTPRT: 0x00000001
<7>[ 9506.896290] c0 mshci: MSHCI_GPIO: 0x00000000
<7>[ 9506.896382] c0 mshci: MSHCI_TCBCNT: 0x00000800
<7>[ 9506.896465] c0 mshci: MSHCI_TBBCNT: 0x0000100c
<7>[ 9506.896550] c0 mshci: MSHCI_DEBNCE: 0x000fffff
<7>[ 9506.896642] c0 mshci: MSHCI_USRID: 0xffffffff
<7>[ 9506.896725] c0 mshci: MSHCI_VERID: 0x5342240a
<7>[ 9506.896809] c0 mshci: MSHCI_HCON: 0x00e424c1
<7>[ 9506.896893] c0 mshci: MSHCI_UHS_REG: 0x00010000
<7>[ 9506.896983] c0 mshci: MSHCI_BMOD: 0x00000582
<7>[ 9506.897067] c0 mshci: MSHCI_PLDMND: 0x00000000
<7>[ 9506.897149] c0 mshci: MSHCI_DBADDR: 0x6b624000
<7>[ 9506.897238] c0 mshci: MSHCI_IDSTS: 0x00000000
<7>[ 9506.897323] c0 mshci: MSHCI_IDINTEN: 0x00000000
<7>[ 9506.897408] c0 mshci: MSHCI_DSCADDR: 0x6b624000
<7>[ 9506.897491] c0 mshci: MSHCI_BUFADDR: 0x00000000
<7>[ 9506.897581] c0 mshci: MSHCI_WAKEUPCON: 0x00000000
<7>[ 9506.897665] c0 mshci: MSHCI_CLOCKCON: 0x00000000
<7>[ 9506.897749] c0 mshci: MSHCI_FIFODAT: 0x51fddef6
<7>[ 9506.897837] c0 mshci: ===========================================
<6>[ 9507.601714] c0 battery_get_cable: main(3), sub(4), pwr(0)
<6>[ 9507.608722] c0 max17047_get_soc: SOC(100, 9842 / 9646)
<6>[ 9507.612165] c0 max77693_set_input_current: now in soft regulation loop: 260
<6>[ 9507.613817] c0 max17047_set_property: charger full state!
<6>[ 9507.614869] c0 battery_interval_calulation: v diff(14000), weight(120)
<6>[ 9507.615024] c0 battery_interval_calulation: weight(120)
<6>[ 9507.615156] c0 battery_monitor_interval: apply weight(120), 30 -> 36
<6>[ 9507.615343] c0 [298] bat: s(100, 0), v(4285, -14), t(29.6), cs(1, 1), cb(3), cr(466, 260), t(7032)
<3>[ 9512.115687] c0 [HOTPLUG OUT] check_down 200000<=200000 && 6<175
<3>[ 9512.115903] c0 CPU_DOWN 3
<5>[ 9512.119124] c0 CPU3: shutdown
<3>[ 9516.920530] c0 mmc0: Timeout waiting for hardware interrupt.
<7>[ 9516.920669] c0 mshci: ============== REGISTER DUMP ==============
<7>[ 9516.920811] c0 mshci: MSHCI_CTRL: 0x00000010
<7>[ 9516.920920] c0 mshci: MSHCI_PWREN: 0x00000001
<7>[ 9516.921028] c0 mshci: MSHCI_CLKDIV: 0x00000001
<7>[ 9516.921140] c0 mshci: MSHCI_CLKSRC: 0x00000000
<7>[ 9516.921247] c0 mshci: MSHCI_CLKENA: 0x00000000
<7>[ 9516.921358] c0 mshci: MSHCI_TMOUT: 0xffffffff
<7>[ 9516.921472] c0 mshci: MSHCI_CTYPE: 0x00010000
<7>[ 9516.921579] c0 mshci: MSHCI_BLKSIZ: 0x00000200
<7>[ 9516.921690] c0 mshci: MSHCI_BYTCNT: 0x00001000
<7>[ 9516.921797] c0 mshci: MSHCI_INTMSK: 0x0000bfce
<7>[ 9516.921903] c0 mshci: MSHCI_CMDARG: 0x00010000
<7>[ 9516.922014] c0 mshci: MSHCI_CMD: 0x80202000
<7>[ 9516.922120] c0 mshci: MSHCI_MINTSTS: 0x00000000
<7>[ 9516.922227] c0 mshci: MSHCI_RINTSTS: 0x00000030
<7>[ 9516.922340] c0 mshci: MSHCI_STATUS: 0x01f86b01
<7>[ 9516.922448] c0 mshci: MSHCI_FIFOTH: 0x503f0040
<7>[ 9516.922554] c0 mshci: MSHCI_CDETECT: 0x00000001
<7>[ 9516.922666] c0 mshci: MSHCI_WRTPRT: 0x00000001
<7>[ 9516.922774] c0 mshci: MSHCI_GPIO: 0x00000000
<7>[ 9516.922885] c0 mshci: MSHCI_TCBCNT: 0x00000800
<7>[ 9516.922993] c0 mshci: MSHCI_TBBCNT: 0x00001010
<7>[ 9516.923099] c0 mshci: MSHCI_DEBNCE: 0x000fffff
<7>[ 9516.923211] c0 mshci: MSHCI_USRID: 0xffffffff
<7>[ 9516.923318] c0 mshci: MSHCI_VERID: 0x5342240a
<7>[ 9516.923426] c0 mshci: MSHCI_HCON: 0x00e424c1
<7>[ 9516.923538] c0 mshci: MSHCI_UHS_REG: 0x00010000
<7>[ 9516.923645] c0 mshci: MSHCI_BMOD: 0x00000582
<7>[ 9516.923752] c0 mshci: MSHCI_PLDMND: 0x00000000
<7>[ 9516.923863] c0 mshci: MSHCI_DBADDR: 0x6b624000
<7>[ 9516.923971] c0 mshci: MSHCI_IDSTS: 0x00000000
<7>[ 9516.924076] c0 mshci: MSHCI_IDINTEN: 0x00000000
<7>[ 9516.924189] c0 mshci: MSHCI_DSCADDR: 0x6b624000
<7>[ 9516.924298] c0 mshci: MSHCI_BUFADDR: 0x00000000
<7>[ 9516.924407] c0 mshci: MSHCI_WAKEUPCON: 0x00000000
<7>[ 9516.924514] c0 mshci: MSHCI_CLOCKCON: 0x00000000
<7>[ 9516.924619] c0 mshci: MSHCI_FIFODAT: 0x51f83c84
<7>[ 9516.924731] c0 mshci: ===========================================
<3>[ 9516.924963] c0 error -110 requesting status 0x0
<3>[ 9516.925105] c0 end_request: I/O error, dev mmcblk0, sector 19580952
<4>[ 9525.561418] c0 !@Sync 315
<3>[ 9526.935650] c0 mmc0: Controller never released data0.
<7>[ 9526.935756] c0 mshci: ============== REGISTER DUMP ==============
<7>[ 9526.935868] c0 mshci: MSHCI_CTRL: 0x00000010
<7>[ 9526.935958] c0 mshci: MSHCI_PWREN: 0x00000001
<7>[ 9526.936043] c0 mshci: MSHCI_CLKDIV: 0x00000001
<7>[ 9526.936129] c0 mshci: MSHCI_CLKSRC: 0x00000000
<7>[ 9526.936222] c0 mshci: MSHCI_CLKENA: 0x00000000
<7>[ 9526.936307] c0 mshci: MSHCI_TMOUT: 0xffffffff
<7>[ 9526.936391] c0 mshci: MSHCI_CTYPE: 0x00010000
<7>[ 9526.936480] c0 mshci: MSHCI_BLKSIZ: 0x00000200
<7>[ 9526.936569] c0 mshci: MSHCI_BYTCNT: 0x00001000
<7>[ 9526.936652] c0 mshci: MSHCI_INTMSK: 0x0000bfce
<7>[ 9526.936736] c0 mshci: MSHCI_CMDARG: 0x00010000
<7>[ 9526.936830] c0 mshci: MSHCI_CMD: 0x80202000
<7>[ 9526.936914] c0 mshci: MSHCI_MINTSTS: 0x00000000
<7>[ 9526.937002] c0 mshci: MSHCI_RINTSTS: 0x00000030
<7>[ 9526.937091] c0 mshci: MSHCI_STATUS: 0x00006b06
<7>[ 9526.937178] c0 mshci: MSHCI_FIFOTH: 0x503f0040
<7>[ 9526.937262] c0 mshci: MSHCI_CDETECT: 0x00000001
<7>[ 9526.937346] c0 mshci: MSHCI_WRTPRT: 0x00000001
<7>[ 9526.937438] c0 mshci: MSHCI_GPIO: 0x00000000
<7>[ 9526.937524] c0 mshci: MSHCI_TCBCNT: 0x00000800
<7>[ 9526.937609] c0 mshci: MSHCI_TBBCNT: 0x00001014
<7>[ 9526.937701] c0 mshci: MSHCI_DEBNCE: 0x000fffff
<7>[ 9526.937788] c0 mshci: MSHCI_USRID: 0xffffffff
<7>[ 9526.937873] c0 mshci: MSHCI_VERID: 0x5342240a
<7>[ 9526.937957] c0 mshci: MSHCI_HCON: 0x00e424c1
<7>[ 9526.938048] c0 mshci: MSHCI_UHS_REG: 0x00010000
<7>[ 9526.938133] c0 mshci: MSHCI_BMOD: 0x00000582
<7>[ 9526.938218] c0 mshci: MSHCI_PLDMND: 0x00000000
<7>[ 9526.938310] c0 mshci: MSHCI_DBADDR: 0x6b624000
<7>[ 9526.938394] c0 mshci: MSHCI_IDSTS: 0x00000000
<7>[ 9526.938481] c0 mshci: MSHCI_IDINTEN: 0x00000000
<7>[ 9526.938566] c0 mshci: MSHCI_DSCADDR: 0x6b624000
<7>[ 9526.938657] c0 mshci: MSHCI_BUFADDR: 0x00000000
<7>[ 9526.938741] c0 mshci: MSHCI_WAKEUPCON: 0x00000000
<7>[ 9526.938826] c0 mshci: MSHCI_CLOCKCON: 0x00000000
<7>[ 9526.938921] c0 mshci: MSHCI_FIFODAT: 0x51fddef6
<7>[ 9526.939004] c0 mshci: ===========================================
<3>[ 9526.939445] c0 mmc0: it occurs a critical error on eMMC it'll try to recover eMMC to normal state
<6>[ 9527.294034] c0 mmc0: Fixing MoviNAND SDS bug.
<6>[ 9527.336719] c0 mmc0: Verifying SDS patch.
<6>[ 9527.378337] c0 mmc0: recovering eMMC has been done
<3>[ 9527.378403] c0 mmcblk0: unknown error -131 sending read/write command, card status 0x900
<3>[ 9527.378543] c0 end_request: I/O error, dev mmcblk0, sector 13223968
<2>[ 9527.920788] c0 EXT4-fs error (device mmcblk0p16): ext4_find_entry:934: inode #147457: comm ActivityManager: reading directory lblock 0
<3>[ 9527.926315] c0 Aborting journal on device mmcblk0p16-8.
<0>[ 9527.934266] c0 Kernel panic - not syncing: EXT4-fs (device mmcblk0p16): panic forced after error
<0>[ 9527.934417] c0
<4>[ 9527.934499] c0 Backtrace:
<4>[ 9527.934625] c0 [<c0049f98>] (dump_backtrace+0x0/0x10c) from [<c062d5d8>] (dump_stack+0x18/0x1c)
<4>[ 9527.934784] c0 r6:d9921670 r5:c08eca90 r4:c0b97220 r3:00000002
<4>[ 9527.934928] c0 [<c062d5c0>] (dump_stack+0x0/0x1c) from [<c062d984>] (panic+0x7c/0x1bc)
<4>[ 9527.935099] c0 [<c062d908>] (panic+0x0/0x1bc) from [<c0183434>] (ext4_handle_error+0x70/0xac)
<4>[ 9527.935243] c0 r3:cd830840 r2:00000000 r1:eb404f84 r0:c08eca90
<4>[ 9527.935360] c0 r7:c08ec300
<4>[ 9527.935435] c0 [<c01833c4>] (ext4_handle_error+0x0/0xac) from [<c018374c>] (ext4_error_inode+0xac/0xd4)
<4>[ 9527.935665] c0 r4:00000000 r3:00000002
<4>[ 9527.935768] c0 [<c01836a0>] (ext4_error_inode+0x0/0xd4) from [<c017d3e0>] (ext4_find_entry+0x33c/0x664)
<4>[ 9527.935943] c0 [<c017d0a4>] (ext4_find_entry+0x0/0x664) from [<c017f528>] (ext4_lookup+0x3c/0x15c)
<4>[ 9527.936123] c0 [<c017f4ec>] (ext4_lookup+0x0/0x15c) from [<c0119a44>] (d_alloc_and_lookup+0x44/0x74)
<4>[ 9527.936286] c0 r7:00000000 r6:d5427ec8 r5:d9913088 r4:d9921670
<4>[ 9527.936425] c0 [<c0119a00>] (d_alloc_and_lookup+0x0/0x74) from [<c011a208>] (do_lookup+0x2ac/0x320)
<4>[ 9527.936584] c0 r6:00000001 r5:d5427e60 r4:d5427e68 r3:d9921694
<4>[ 9527.936723] c0 [<c0119f5c>] (do_lookup+0x0/0x320) from [<c011bc20>] (path_lookupat+0x11c/0x6c0)
<4>[ 9527.936888] c0 [<c011bb04>] (path_lookupat+0x0/0x6c0) from [<c011c76c>] (do_path_lookup+0x24/0x64)
<4>[ 9527.937055] c0 [<c011c748>] (do_path_lookup+0x0/0x64) from [<c011d914>] (user_path_at_empty+0x5c/0x9c)
<4>[ 9527.937218] c0 r7:d5427f68 r6:d5427ec8 r5:00000001 r4:eac2e000
<4>[ 9527.937351] c0 [<c011d8b8>] (user_path_at_empty+0x0/0x9c) from [<c011d970>] (user_path_at+0x1c/0x24)
<4>[ 9527.937517] c0 r8:eb50f380 r7:ffffff9c r6:5c51a648 r5:00000000 r4:d829d100
<4>[ 9527.937684] c0 [<c011d954>] (user_path_at+0x0/0x24) from [<c010eab8>] (sys_faccessat+0x98/0x18c)
<4>[ 9527.937853] c0 [<c010ea20>] (sys_faccessat+0x0/0x18c) from [<c010ebc8>] (sys_access+0x1c/0x20)
<4>[ 9527.938002] c0 r8:c0046a04 r7:00000021 r6:5c51a648 r5:00000000 r4:5847efe8
<4>[ 9527.938180] c0 [<c010ebac>] (sys_access+0x0/0x20) from [<c0046880>] (ret_fast_syscall+0x0/0x30)
<6>[ 9527.938434] c0 notifier_call_chain : NOTIFY BAD sec_debug_panic_handler
<0>[ 9527.938557] c0 Rebooting in 1 seconds..
<0>[ 9528.939215] c0 sec_reboot (104, emergency)

I think I need to get it repaired.

If SDS is indeed the problem, is there a way to make it work under waranty. I can reset the flash counter, wipe and flash a 100% stock ROM but is there a way to make sure they don't just send it back to me unchanged with a "safe" 3.1.2.

NOTE : AFAIK, "safe" kernels are just like circuit breakers : detecting the condition and shutting the system down before damage is done. It is obviously a good thing but nothing is actually fixed.

Thank you