[Nexus 7 Original Development] Lozzo:
Well, I tried some odds and sods, and I can still cause a SOD by leaving the wifi when it goes to sleep.

Stock ROM, just the kernel. I'm not getting any SODs with stock kernel, but I'm still not convinced that Francos kernel itself is to blame, as even with stock kernel I'm still getting some weird things waking up in the background which I don't think should be, which is causing these SODs

.

One thing I notice, is that even in sleep the wifi is almost constantly waking up to do *something* in the background. Also, I get far less battery drain with the wifi switched off, rather than just setting it to sleep.

I might try wiping and restoring everything from scratch and see how that goes, obviously if this was purely a kernel issue everyone would be seeing the same. As they're not, it has to be something lurking which is upsetting things. However, saying this, why not on stock kernel? Weird.

Anyway, one thing I have noticed is the last few entries in last_kmsg which appears to refer to something going wonky with wifi coming back out of sleep. Again, if I disable wifi from settings rather than just set to sleep or whatever, I don't get any SODs, but I can cause them on a regular basis by leaving wifi switched on, no matter what wifi sleep policy is set. I've attached the full last_kmsg log, but it's the last few entries that I've spotted. If you can be bothered going through the full log, you'll see loads similar entries regarding attemping to sleep, partial wakes, wakes, then sleep again, user space aborted kind of things, but this particular bit that I've copied and pasted below, appears to be the last thing it sees before it dies. In particular, those bits in bold

Not a massive issue, just remember to turn wifi off before I put it away, but still a curious problem.

Dongle Host Driver, version 5.90.195.104

Compiled in drivers/net/wireless/bcmdhd on Sep 19 2012 at 01:01:58

wl_android_wifi_on in

wifi_set_power = 1

Powering on wifi

[mmc]:mmc_read_ext_csd:285 ext_csd.sectors 0x1d80000 prod_name MMC16G BOOT_MULTI 0x10

mmc0: Deferred resume completed

suspend: enter suspend

PM: Syncing filesystems ... done.

PM: Preparing system for mem sleep

Tegra emc suspend: enabled bridge.emc

Tegra cpufreq suspend: setting frequency to 500000 kHz

Freezing user space processes ...

active wake lock wlan_wake

active wake lock PowerManagerService

Freezing of user space aborted

Restarting tasks ... done.

Tegra cpufreq resume: restoring frequency to 100000 kHz

Tegra emc resume: disabled bridge.emc

suspend: exit suspend, ret = -16 (2012-09-28 23:20:56.118959999 UTC)

=========== WLAN going back to live ========

sdio_reset_comm():

F1 signature read @0x18000000=0x16044330

DHD: dongle ram size is set to 294912(orig 294912)

dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.

dhdsdio_htclk: HT Avail timeout (1000000): clkctl 0x50

dhd_bus_init: clock state is wrong. state = 1

Wake32 for irq=340

Enabling wake32

gpio bank wake found: wake32 for irq=67

Enabling wake32

dhdsdio_htclk: HT Avail timeout (1000000): clkctl 0x50

dhdcdc_query_ioctl: dhdcdc_msg failed w/status -5

dhd_preinit_ioctls: can't get MAC address , error=-5

wl_android_wifi_off in

stop_machine_cpu_stop smp=0

stop_machine_cpu_stop smp=1

CPU1: shutdown