[Folio 100 Android Development] m32:
just after reboot

bash:~$ adb shell "cat /proc/kmsg"

.... lots of messages

<6>[ 176.078304] Tegra cpufreq suspend: setting frequency to 456000 kHz

In this moment adb connection to folio goes down, but i'v added somepatches to kernel and now screen goes up but freezes after while.

Fortunalty adb works for few seconds :)

bash:~$ adb shell "cat /proc/kmsg"

<4>[ 176.105655] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.

<6>[ 176.136059] vi vi: suspend status: 0

<6>[ 176.136382] isp isp: suspend status: 0

<6>[ 176.136571] gr2d gr2d: suspend status: 0

<6>[ 176.136752] dsi dsi: suspend status: 0

<6>[ 176.138623] gr3d gr3d01: suspend status: 0

<6>[ 176.138814] mpe mpe01: suspend status: 0

<6>[ 176.140465] tegra_avp_suspend()+

<6>[ 176.141063] Wake5 for irq=192

<6>[ 176.141233] Enabling wake5

<6>[ 176.141392] gpio bank wake found: wake5 for irq=64

<6>[ 176.141677] Enabling wake5

<6>[ 176.186225] utmi_phy_irq: usb device plugged-in

<6>[ 176.247585] utmi_phy_irq: usb device plugged-in

<6>[ 176.445965] tegra-otg tegra-otg: PERIPHERAL --> SUSPEND

<6>[ 176.446253] android_work: sent uevent USB_STATE=DISCONNECTED

<6>[ 176.485114] tegradc tegradc.1: suspend

<6>[ 176.485314] tegradc tegradc.0: suspend

<4>[ 176.485514] tegra_pwm tegra_pwm.0: pwm_disable called on disabled PWM

<3>[ 176.486034] nvec nvec.0: tried to send a command while NVEC is suspended!

<3>[ 176.486228] nvec-power nvec-power.1: unable to get Battery remaining capacity

<6>[ 176.486264] host1x host1x: suspend status: 0

<6>[ 176.486435] PM: suspend of devices complete after 360.553 msecs

<3>[ 176.486959] nvec nvec.0: tried to send a command while NVEC is suspended!

<6>[ 176.487210] PM: late suspend of devices complete after 0.753 msecs

<4>[ 176.487226] Disabling non-boot CPUs ...

<3>[ 176.487570] nvec-power nvec-power.1: unable to get Battery status

<3>[ 176.487868] nvec nvec.0: tried to send a command while NVEC is suspended!

<3>[ 176.488182] nvec-power nvec-power.1: unable to get Battery voltage

<3>[ 176.488365] nvec nvec.0: tried to send a command while NVEC is suspended!

<3>[ 176.488673] nvec-power nvec-power.1: unable to get Battery current

<3>[ 176.488851] nvec nvec.0: tried to send a command while NVEC is suspended!

<3>[ 176.489159] nvec-power nvec-power.1: unable to get AC line status

<3>[ 176.489331] nvec nvec.0: tried to send a command while NVEC is suspended!

<3>[ 176.489645] nvec-power nvec-power.1: unable to get Battery average current

<3>[ 176.489955] nvec nvec.0: tried to send a command while NVEC is suspended!

<3>[ 176.490136] nvec-power nvec-power.1: unable to get Battery temperature

<3>[ 176.490444] nvec nvec.0: tried to send a command while NVEC is suspended!

<3>[ 176.490624] nvec-power nvec-power.1: unable to get Battery remaining time

<5>[ 176.499467] CPU1: shutdown

<7>[ 176.500594] vfp_pm_suspend: saving vfp state

<6>[ 176.511898] Wake[31-0] level=0x800010

<6>[ 176.512077] Wake[31-0] enable=0x1840020

<6>[ 176.512243] Entering suspend state LP0

<6>[ 176.512555] tegra_suspend_enter mode=3

<6>[ 176.512555] tegra_suspend_enter save clock mode=3

<6>[ 176.512555] tegra_suspend_enter dram mode=3

<4>[ 176.512555] partition 3d0 is left on before suspend

<4>[ 176.512555] partition ve is left on before suspend

<4>[ 176.512555] partition vde is left on before suspend

<4>[ 176.512555] partition mpe is left on before suspend

<6>[ 176.512625] Exited suspend state LP0

<6>[ 176.512940] legacy wake status=0x20

<6>[ 176.513107] Resume caused by WAKE5, KEY_POWER

<6>[ 176.519800] Suspended for 187.760 seconds

<6>[ 176.520205] wakeup wake lock: alarm

<6>[ 176.520492] Enabling non-boot CPUs ...

<4>[ 176.541521] CPU1: Booted secondary processor

<6>[ 176.542897] CPU1 is up

<6>[ 176.543586] Switched to NOHz mode on CPU #1

<6>[ 176.550760] PM: early resume of devices complete after 7.676 msecs

<6>[ 176.551688] host1x host1x: resuming

<4>[ 176.551956] tegra_pwm tegra_pwm.0: pwm_disable called on disabled PWM

<6>[ 176.552350] tegradc tegradc.0: resume

<6>[ 176.552602] tegradc tegradc.1: resume

<4>[ 176.565071] betelgeuse_wakeup_key : status 32

<6>[ 176.565377] Wake5 for irq=192

<6>[ 176.565541] Disabling wake5

<6>[ 176.565703] gpio bank wake found: wake5 for irq=64

<6>[ 176.566001] Disabling wake5

<6>[ 176.570096] nvec-kbd nvec-kbd.1: Got event type: 0x00

<6>[ 176.575361] nvec-kbd nvec-kbd.1: Got event type: 0x00

<6>[ 176.625030] utmi_phy_irq: usb device plugged-in

<4>[ 176.626239] mmc0: switch to bus width 1 ddr 0 failed

<4>[ 176.626549] mmc0: error -110 during resume (card was removed?)

<4>[ 176.724374] mmc2: error -110 during resume (card was removed?)

<6>[ 176.724706] tegra_avp_resume()+

<6>[ 176.725955] mpe mpe01: resuming

<6>[ 176.726145] gr3d gr3d01: resuming

<6>[ 176.726451] dsi dsi: resuming

<6>[ 176.726625] gr2d gr2d: resuming

<6>[ 176.726800] isp isp: resuming

<6>[ 176.726968] vi vi: resuming

<6>[ 176.783648] usb 1-1: reset high speed USB device number 2 using tegra-ehci

<3>[ 176.903637] usb 1-1: device descriptor read/64, error -71

<3>[ 177.133785] usb 1-1: device descriptor read/64, error -71

<6>[ 177.363635] usb 1-1: reset high speed USB device number 2 using tegra-ehci

<3>[ 177.483629] usb 1-1: device descriptor read/64, error -71

<3>[ 177.713631] usb 1-1: device descriptor read/64, error -71

<6>[ 177.943633] usb 1-1: reset high speed USB device number 2 using tegra-ehci

<3>[ 178.363620] usb 1-1: device not accepting address 2, error -71

<6>[ 178.483636] usb 1-1: reset high speed USB device number 2 using tegra-ehci

<3>[ 178.903621] usb 1-1: device not accepting address 2, error -71

<6>[ 178.904360] PM: resume of devices complete after 2353.012 msecs

<6>[ 178.904873] tegra-otg tegra-otg: SUSPEND --> PERIPHERAL

<4>[ 178.910308] Restarting tasks ...

<6>[ 178.911015] usb 1-1: USB disconnect, device number 2

<6>[ 178.914942] adb_release

<6>[ 178.916460] adb_open(adbd)

<4>[ 178.920231] done.

<6>[ 178.920434] Wake24 for irq=362

<6>[ 178.920761] Disabling wake24

<6>[ 178.921009] Tegra cpufreq resume: restoring frequency to 216000 kHz

<6>[ 178.930289] suspend: exit suspend, ret = 0 (2014-01-24 11:13:23.744007599 UTC)

<6>[ 179.011918] android_work: did not send uevent (0 0 (null))

<6>[ 179.123968] android_work: sent uevent USB_STATE=CONNECTED

<6>[ 179.128392] android_work: sent uevent USB_STATE=DISCONNECTED

<6>[ 179.243647] usb 1-1: new high speed USB device number 3 using tegra-ehci

<6>[ 179.256007] android_work: sent uevent USB_STATE=CONNECTED

<6>[ 179.264949] android_usb gadget: high speed config #1: android

<6>[ 179.265550] android_work: sent uevent USB_STATE=CONFIGURED

<6>[ 179.336443] mtp_open

<3>[ 179.363614] usb 1-1: device descriptor read/64, error -71

<3>[ 179.593653] usb 1-1: device descriptor read/64, error -71

<6>[ 179.823640] usb 1-1: new high speed USB device number 4 using tegra-ehci

<3>[ 179.943825] usb 1-1: device descriptor read/64, error -71

<3>[ 180.173628] usb 1-1: device descriptor read/64, error -71

<6>[ 180.313363] nvec-kbd nvec-kbd.1: Got event type: 0x00

<6>[ 180.316510] request_suspend_state: wakeup (3->0) at 180292930580 (2014-01-24 11:13:25.130222579 UTC)

<6>[ 180.403641] usb 1-1: new high speed USB device number 5 using tegra-ehci

<4>[ 180.519727] tegra_pwm tegra_pwm.0: pwm_disable called on disabled PWM

<6>[ 180.519977] Wake24 for irq=362

<6>[ 180.520093] Enabling wake24

<4>[ 180.520554] foliocap_kdb: foliocap_late_resume

<4>[ 180.522502] tegra_dock_late_resume

<6>[ 180.566517] nvec-kbd nvec-kbd.1: Got event type: 0x00

<3>[ 180.823611] usb 1-1: device not accepting address 5, error -71

<6>[ 180.943639] usb 1-1: new high speed USB device number 6 using tegra-ehci

<3>[ 181.363605] usb 1-1: device not accepting address 6, error -71

<3>[ 181.363796] hub 1-0:1.0: unable to enumerate USB device on port 1

<6>[ 181.683621] usb 1-1: new high speed USB device number 7 using tegra-ehci

<3>[ 181.803638] usb 1-1: device descriptor read/64, error -71

<3>[ 182.033637] usb 1-1: device descriptor read/64, error -71

<3>[ 182.127196] mmcblk0: error -84 transferring data, sector 583648, nr 40, cmd response 0x900, card status 0xb00

<4>[ 182.127407] mmcblk0: retrying using single block read

<3>[ 182.128340] mmcblk0: error -84 transferring data, sector 583648, nr 40, cmd response 0x900, card status 0x0

<3>[ 182.128525] end_request: I/O error, dev mmcblk0, sector 583648

<3>[ 182.156483] mmc0: ADMA error

<4>[ 182.156606] ------------[ cut here ]------------

<4>[ 182.156712] WARNING: at /home/sources/00-build/android/cm-10.1-betelgeuse/source/kernel/toshiba/betelgeuse/drivers/mmc/host/sdhci.c:937 sdhci_send_command+0x28/0xc28()

<4>[ 182.156941] Modules linked in:

<4>[ 182.157113] [<c0013618>] (unwind_backtrace+0x0/0xe0) from [<c004c1dc>] (warn_slowpath_common+0x4c/0x64)

<4>[ 182.157286] [<c004c1dc>] (warn_slowpath_common+0x4c/0x64) from [<c004c20c>] (warn_slowpath_null+0x18/0x1c)

<4>[ 182.157450] [<c004c20c>] (warn_slowpath_null+0x18/0x1c) from [<c0301cbc>] (sdhci_send_command+0x28/0xc28)

<4>[ 182.157553] [<c0301cbc>] (sdhci_send_command+0x28/0xc28) from [<c03040bc>] (sdhci_irq+0x72c/0x87c)

<4>[ 182.157719] [<c03040bc>] (sdhci_irq+0x72c/0x87c) from [<c0085f64>] (handle_irq_event_percpu+0x30/0x154)

<4>[ 182.157882] [<c0085f64>] (handle_irq_event_percpu+0x30/0x154) from [<c00860c4>] (handle_irq_event+0x3c/0x5c)

<4>[ 182.158046] [<c00860c4>] (handle_irq_event+0x3c/0x5c) from [<c0088364>] (handle_fasteoi_irq+0xd4/0x10c)

<4>[ 182.158207] [<c0088364>] (handle_fasteoi_irq+0xd4/0x10c) from [<c0085928>] (generic_handle_irq+0x2c/0x40)

<4>[ 182.158375] [<c0085928>] (generic_handle_irq+0x2c/0x40) from [<c000e114>] (handle_IRQ+0x78/0xb8)

<4>[ 182.158475] [<c000e114>] (handle_IRQ+0x78/0xb8) from [<c000d418>] (__irq_svc+0x38/0xd0)

<4>[ 182.158636] [<c000d418>] (__irq_svc+0x38/0xd0) from [<c0495bb0>] (_raw_spin_unlock_irq+0x18/0x40)

<4>[ 182.158798] [<c0495bb0>] (_raw_spin_unlock_irq+0x18/0x40) from [<c02ff6fc>] (mmc_blk_issue_rw_rq+0xe0/0x2bc)

<4>[ 182.158959] [<c02ff6fc>] (mmc_blk_issue_rw_rq+0xe0/0x2bc) from [<c02ffbb0>] (mmc_blk_issue_rq+0x2d8/0x2f8)

<4>[ 182.159124] [<c02ffbb0>] (mmc_blk_issue_rq+0x2d8/0x2f8) from [<c03007cc>] (mmc_queue_thread+0xa0/0x130)

<4>[ 182.159295] [<c03007cc>] (mmc_queue_thread+0xa0/0x130) from [<c0064228>] (kthread+0x7c/0x84)

<4>[ 182.159396] [<c0064228>] (kthread+0x7c/0x84) from [<c000e2f0>] (kernel_thread_exit+0x0/0x8)

<4>[ 182.159551] ---[ end trace fc3fe0d7aa3329f6 ]---

<3>[ 182.159675] mmcblk0: error -110 sending status command, retrying

<3>[ 182.159852] mmcblk0: error -110 sending status command, retrying

<3>[ 182.159958] mmcblk0: error -110 sending status command, aborting

<3>[ 182.160114] end_request: I/O error, dev mmcblk0, sector 581728

and folio hangs :(