Skip to content

Instantly share code, notes, and snippets.

@steven676
steven676 / define-CONFIG_PVR_SGX.patch
Created August 19, 2012 09:03
[PATCH] Define CONFIG_PVR_SGX
From b09dec78e705dd6eafecb39637a50e860e60691d Mon Sep 17 00:00:00 2001
From: Steven Luo <steven+android@steven676.net>
Date: Sun, 19 Aug 2012 00:46:27 -0700
Subject: [PATCH] Define CONFIG_PVR_SGX
Newer versions of the PVR driver enable this config option when any of
the drivers for the SGX cores (SGX530/540/54x) is enabled, and other
parts of the OMAP3 3.0 kernel expect this option, so define it in the
appropriate place in the Kconfig.
---
@steven676
steven676 / revert-to-pre-wlcore-split-wl12xx.patch
Created August 21, 2012 01:56
[PATCH] Revert to pre-wlcore-split wl12xx
From 3dee4ec2c52cc3b122c039ff34d4f063c96c658d Mon Sep 17 00:00:00 2001
From: Steven Luo <steven@steven676.net>
Date: Mon, 20 Aug 2012 14:59:58 -0700
Subject: [PATCH] Revert to pre-wlcore-split wl12xx
---
BoardConfig.mk | 9 ++++-----
init.encore.rc | 1 -
2 files changed, 4 insertions(+), 6 deletions(-)
@steven676
steven676 / gist:3414261
Created August 21, 2012 10:29
[BROKEN] attempt at preventing runtime PM suspend
diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c
index 577f4fd..aa3ce5e 100644
--- a/drivers/base/power/runtime.c
+++ b/drivers/base/power/runtime.c
@@ -11,6 +11,10 @@
#include <linux/pm_runtime.h>
#include "power.h"
+#ifdef CONFIG_MACH_ENCORE
+#define PM_RUNTIME_FORBIDDEN 1
@steven676
steven676 / gist:3495199
Created August 28, 2012 05:25
stack trace from encore kernel on resume
<4>WARNING: at arch/arm/mach-omap2/omap_l3_smx.c:162 omap3_l3_app_irq+0x108/0x150()
<4>In-band Error seen by MPU at address 0
<4>Modules linked in: wl12xx_sdio wl12xx mac80211 cfg80211 compat
<4>[<c0042fc4>] (unwind_backtrace+0x0/0xf0) from [<c0070c34>] (warn_slowpath_common+0x4c/0x64)
<4>[<c0070c34>] (warn_slowpath_common+0x4c/0x64) from [<c0070ccc>] (warn_slowpath_fmt+0x2c/0x3c)
<4>[<c0070ccc>] (warn_slowpath_fmt+0x2c/0x3c) from [<c0058408>] (omap3_l3_app_irq+0x108/0x150)
<4>[<c0058408>] (omap3_l3_app_irq+0x108/0x150) from [<c00b39a0>] (handle_irq_event_percpu+0x9c/0x268)
<4>[<c00b39a0>] (handle_irq_event_percpu+0x9c/0x268) from [<c00b3bc4>] (handle_irq_event+0x58/0x80)
<4>[<c00b3bc4>] (handle_irq_event+0x58/0x80) from [<c00b5dd4>] (handle_level_irq+0xd0/0x120)
<4>[<c00b5dd4>] (handle_level_irq+0xd0/0x120) from [<c00b35a4>] (generic_handle_irq+0x2c/0x40)
@steven676
steven676 / wl12xx_sdio-disable-runtime-PM-when-running-on-encor.patch
Created August 28, 2012 06:34
[PATCH] wl12xx_sdio: disable runtime PM when running on encore
From 4cafcd8602db734aa98b643d006280a40bb4a70f Mon Sep 17 00:00:00 2001
From: Steven Luo <steven@steven676.net>
Date: Mon, 20 Aug 2012 05:24:34 -0700
Subject: [PATCH] wl12xx_sdio: disable runtime PM when running on encore
encore systems fail to wake up from suspend when wifi is enabled and
runtime PM is enabled in the driver, so forcibly disable it.
---
.../drivers/net/wireless/wl12xx/sdio.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
@steven676
steven676 / gist:3734862
Created September 16, 2012 23:50
broken patch to fix screen flash on turn off (from keyodi)
From 64541b96ac0951aca4831390d7fa8d0e64268eaa Mon Sep 17 00:00:00 2001
From: Keyodi <zeusomighty@hotmail.com>
Date: Sun, 16 Sep 2012 01:45:20 -0700
Subject: [PATCH] boxer: fix display flash when screen is turned off
---
drivers/video/omap2/displays/panel-boxer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/video/omap2/displays/panel-boxer.c b/drivers/video/omap2/displays/panel-boxer.c
@steven676
steven676 / gist:3911219
Created October 18, 2012 11:33
script to store MAC address into wl1271-nvs.bin
#!/system/bin/sh
# store-mac-addr -- reads configured wifi MAC address and writes it into nvs
# file for use by the wl12xx driver
ROM_NVS=/system/etc/firmware/ti-connectivity/wl1271-nvs_127x.bin
ORIG_NVS=/data/misc/wifi/wl1271-nvs.bin.orig
NEW_NVS=/data/misc/wifi/wl1271-nvs.bin
umask 0022
From 9bf4b35e086506ca640902fd9b2cabd058aad516 Mon Sep 17 00:00:00 2001
From: Steven Luo <steven@steven676.net>
Date: Sun, 19 Aug 2012 18:35:46 -0700
Subject: [PATCH] Install PVR blobs in /vendor instead of /system
---
encore/encore-vendor-blobs.mk | 34 ++--
diff --git a/encore/encore-vendor-blobs.mk b/encore/encore-vendor-blobs.mk
index f609ab0..ac5100f 100644
@steven676
steven676 / increase-pvr-param-buffer-size.patch
Created October 22, 2012 01:34
[PATCH] Increase PVR parameter buffer size
From 446bd53bda2df0e6c667d319fd9f074a4e39fc6b Mon Sep 17 00:00:00 2001
From: Steven Luo <steven@steven676.net>
Date: Sun, 21 Oct 2012 06:14:53 -0700
Subject: [PATCH] Increase PVR parameter buffer size
The default of 2 MB is far too small for the complex OpenGL rendering
used in the Android UI in ICS and up. Instead, boost the param buffer
size to 12 MB, which improves performance.
XXX TODO: http://processors.wiki.ti.com/index.php/SGXDbg recommends 16