Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add lz4 support, 3.4.112 patch, HZ changed to 300 #3

Open
wants to merge 52 commits into
base: ik-touchwiz
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
bc58f9b
Try to build with gcc 5.3 toolchain from @dorimanx
Mar 30, 2016
8fbaf78
msm: kgsl: Fix direct references to HZ
Apr 15, 2016
9da1d3a
bacon: Set CONFIG_HZ to 300
May 6, 2016
7130d15
msm: Convert direct references to HZ
May 6, 2016
c1b2d6c
CONFIG: switch to HZ = 300
May 6, 2016
dc3e2f3
Build eur by default
May 6, 2016
0d2b342
Fix build error caused by HZ changes
May 6, 2016
f8f27f7
msm: kgsl: Fix idle timer sysfs after removing references to HZ
May 9, 2016
619b6be
UKSM: turn off uksm, it is not helping
May 9, 2016
62ac7d7
Linux 3.4.112
May 9, 2016
33d52a1
Fix Google services power drain
May 9, 2016
155fb96
UKSM: Correct default value of uksm/run
May 16, 2016
25ee890
LZ4: add lz4 api
May 22, 2016
d59ed16
crypto: add lz4 Cryptographic API
May 22, 2016
864eb74
crypto: lz4,lz4hc - fix decompression
May 22, 2016
9f3c4b7
crypto: prefix module autoloading with "crypto-"
May 22, 2016
1e13f81
CONFIG: Enable CRYPTO LZ4
May 22, 2016
a69d4e4
ZSWAP: Use lz4 for zswap if possible
May 22, 2016
66561ca
LZ4: add missed include file for lz4
May 22, 2016
8672bf8
Revert crypto: prefix module autoloading with "crypto-"
May 22, 2016
def3dc9
Fix CONFIG_HZ dependency in wifi driver.
Jun 7, 2016
ab8b83b
RAMDISK: disable init.carrier.rc
Jun 8, 2016
7c4affa
Tag as release version 7.2.0
Jun 8, 2016
e17e0af
SSP: shut up debug messages (reverted from commit f6c817aeb8cc6ad018f…
Jun 8, 2016
17248b1
SSP: Fix compile error when debug is off
Jun 11, 2016
081788b
RAMDISK: set swappiness to 50
Jun 11, 2016
713b1dc
clk: shut up debug logs
Jun 12, 2016
2730231
ZRAM: add zram support
Jun 17, 2016
f17dec2
mm: swap: don't delay swap free for fast swap devices
Jun 17, 2016
d6d7ff7
ZRAM: add zram support
Jun 19, 2016
a04038f
swap: make each swap partition have one address_space
Jun 19, 2016
fec6e39
backport: needed parts for zram & zsmalloc from 3.10
Jun 19, 2016
5164b30
mm: new shrinker API
Jun 19, 2016
30cc1da
backport: needed parts for zram & zsmalloc from 3.10
Jun 20, 2016
eb3b7a0
backport: needed parts for zram & zsmalloc from 3.10
Jun 20, 2016
cebe5b9
drivers: Add state notifier driver big thanks to @neobuddy89
Jun 20, 2016
31ee9d8
Config: Enable state notifier & zswap
Jun 20, 2016
4d13b96
RAMDISK: set swappiness to 100 (reverted from commit 081788bee62d0e25…
Jun 20, 2016
e96e045
staging: zcache: delete it
Jun 20, 2016
4d72c37
ZCACHE: add zcache
Jun 20, 2016
0330c07
ZCACHE: add zcache
Jun 20, 2016
10d5a49
rbtree: update to 3.10
Jun 20, 2016
bb7ccaf
rbtree: update to 3.10
Jun 20, 2016
c60c94e
radix-tree: update to 3.10
Jun 21, 2016
5ba273b
cleancache: adopt to old fs
Jun 21, 2016
f4cde30
BLOCK: Update BFQ I/O Sched gov from v7r7 to v7r8
Jun 21, 2016
dce21db
sched: Move sched.h sysctl bits into separate header
Jun 21, 2016
e24975e
Makefile: build with ccache
Jun 21, 2016
3da4335
async: introduce 'async_domain' type
Jun 21, 2016
65a1793
sched: Remove get_online_cpus() usage
neobuddy89 Mar 18, 2014
b613992
swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES
Jul 7, 2016
e6fe955
mm: add support for a filesystem to activate swap files and use direc…
Jul 7, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION = 3
PATCHLEVEL = 4
SUBLEVEL = 111
SUBLEVEL = 112
EXTRAVERSION =
NAME = Saber-toothed Squirrel

Expand Down Expand Up @@ -243,8 +243,8 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
else if [ -x /bin/bash ]; then echo /bin/bash; \
else echo sh; fi ; fi)

HOSTCC = gcc
HOSTCXX = g++
HOSTCC = ccache gcc
HOSTCXX = ccache g++
HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89
HOSTCXXFLAGS = -O2

Expand Down Expand Up @@ -330,7 +330,7 @@ include $(srctree)/scripts/Kbuild.include

AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
REAL_CC = $(CROSS_COMPILE)gcc
REAL_CC = ccache $(CROSS_COMPILE)gcc
CPP = $(CC) -E
AR = $(CROSS_COMPILE)ar
NM = $(CROSS_COMPILE)nm
Expand Down Expand Up @@ -377,6 +377,8 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common \
-Werror-implicit-function-declaration \
-Wno-format-security \
-Wno-discarded-array-qualifiers \
-Wno-switch-bool \
-mtune=cortex-a15 \
--param l1-cache-size=32 \
--param l2-cache-size=2048 \
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.0
7.2.0
4 changes: 1 addition & 3 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -816,9 +816,7 @@ config ARCH_NR_GPIO

source kernel/Kconfig.preempt

config HZ
int
default 100
source kernel/Kconfig.hz

config THUMB2_KERNEL
bool "Compile the kernel in Thumb-2 mode (EXPERIMENTAL)"
Expand Down
8 changes: 8 additions & 0 deletions arch/arm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ endif

comma = ,

#
# The Scalar Replacement of Aggregates (SRA) optimization pass in GCC 4.9 and
# later may result in code being generated that handles signed short and signed
# char struct members incorrectly. So disable it.
# (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932)
#
KBUILD_CFLAGS += $(call cc-option,-fno-ipa-sra)

arch-$(CONFIG_ARCH_MSM_KRAIT) :=-D__LINUX_ARM_ARCH__=7 $(call cc-option,-mcpu=cortex-a15,-march=armv7-a)

ifeq ($(CONFIG_AEABI),y)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/msm8974/msm8974-gpu.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

qcom,initial-pwrlevel = <1>;

qcom,idle-timeout = <8>; //<HZ/12>
qcom,idle-timeout = <80>; //msec
qcom,strtstp-sleepwake;
qcom,clk-map = <0x0000006>; //KGSL_CLK_CORE | KGSL_CLK_IFACE

Expand Down
24 changes: 21 additions & 3 deletions arch/arm/configs/ik_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ CONFIG_LOCALVERSION="-idleKernel-hlte-"
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
# CONFIG_KERNEL_LZMA is not set
CONFIG_KERNEL_XZ=y
# CONFIG_KERNEL_LZO is not set
Expand Down Expand Up @@ -574,7 +575,11 @@ CONFIG_ARCH_NR_GPIO=0
# CONFIG_PREEMPT_VOLUNTARY is not set
CONFIG_PREEMPT=y
CONFIG_PREEMPT_COUNT=y
CONFIG_HZ=100
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
CONFIG_HZ_300=y
# CONFIG_HZ_1000 is not set
CONFIG_HZ=300
# CONFIG_THUMB2_KERNEL is not set
CONFIG_AEABI=y
# CONFIG_OABI_COMPAT is not set
Expand Down Expand Up @@ -602,13 +607,16 @@ CONFIG_KSM=y
CONFIG_UKSM=y
# CONFIG_KSM_LEGACY is not set
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
# CONFIG_CLEANCACHE is not set
CONFIG_CLEANCACHE=y
CONFIG_FRONTSWAP=y
CONFIG_ZSMALLOC_NEW=y
CONFIG_PGTABLE_MAPPING=y
CONFIG_ZSWAP=y
# CONFIG_SWAP_ENABLE_READAHEAD is not set
# CONFIG_ZSWAP_ENABLE_WRITEBACK is not set
CONFIG_ZPOOL=y
CONFIG_ZBUD=y
CONFIG_ZCACHE=y
CONFIG_DIRECT_RECLAIM_FILE_PAGES_ONLY=y
CONFIG_INCREASE_MAXIMUM_SWAPPINESS=y
CONFIG_FIX_INACTIVE_RATIO=y
Expand Down Expand Up @@ -1244,6 +1252,8 @@ CONFIG_OF_BATTERYDATA=y
CONFIG_OF_SUBCMDLINE_PARSE=y
# CONFIG_PARPORT is not set
CONFIG_BLK_DEV=y
CONFIG_ZRAM=y
CONFIG_ZRAM_LZ4_COMPRESS=y
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
Expand Down Expand Up @@ -1718,6 +1728,7 @@ CONFIG_INPUT_WACOM=y
# CONFIG_TOUCHSCREEN_FTS is not set
# CONFIG_TOUCHSCREEN_FTS_S is not set
# CONFIG_TOUCHSCREEN_SYNAPTICS_I2C_RMI_JSGLTE is not set
CONFIG_STATE_NOTIFIER=y
CONFIG_INPUT_MISC=y
# CONFIG_INPUT_AD714X is not set
# CONFIG_INPUT_BMA150 is not set
Expand Down Expand Up @@ -3677,7 +3688,7 @@ CONFIG_SEC_FPGA=y
# CONFIG_SENSORS_SSP_STM is not set
CONFIG_SENSORS_SSP_STM_32F=y
# CONFIG_SENSORS_SSP_STM_HESTIA is not set
CONFIG_SENSORS_SSP_STM_LEGACY=y
# CONFIG_SENSORS_SSP_STM_LEGACY is not set
CONFIG_SENSORS_SYSFS=y
CONFIG_SENSORS_SSP=y
# CONFIG_SENSORS_SSP_AK8963C is not set
Expand Down Expand Up @@ -4189,6 +4200,9 @@ CONFIG_CRYPTO_TWOFISH_COMMON=y
CONFIG_CRYPTO_DEFLATE=y
# CONFIG_CRYPTO_ZLIB is not set
CONFIG_CRYPTO_LZO=y
CONFIG_CRYPTO_LZO=y
CONFIG_CRYPTO_LZ4=y
CONFIG_CRYPTO_LZ4HC=y

#
# Random Number Generation
Expand Down Expand Up @@ -4228,6 +4242,9 @@ CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_LZ4_COMPRESS=y
CONFIG_LZ4HC_COMPRESS=y
CONFIG_LZ4_DECOMPRESS=y
CONFIG_XZ_DEC=y
CONFIG_XZ_DEC_X86=y
CONFIG_XZ_DEC_POWERPC=y
Expand All @@ -4239,6 +4256,7 @@ CONFIG_XZ_DEC_BCJ=y
# CONFIG_XZ_DEC_TEST is not set
CONFIG_DECOMPRESS_GZIP=y
CONFIG_DECOMPRESS_XZ=y
CONFIG_DECOMPRESS_LZ4=y
CONFIG_GENERIC_ALLOCATOR=y
CONFIG_REED_SOLOMON=y
CONFIG_REED_SOLOMON_ENC8=y
Expand Down
15 changes: 10 additions & 5 deletions arch/arm/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,17 @@ setup_return(struct pt_regs *regs, struct k_sigaction *ka,
*/
thumb = handler & 1;

#if __LINUX_ARM_ARCH__ >= 7
#if __LINUX_ARM_ARCH__ >= 6
/*
* Clear the If-Then Thumb-2 execution state
* ARM spec requires this to be all 000s in ARM mode
* Snapdragon S4/Krait misbehaves on a Thumb=>ARM
* signal transition without this.
* Clear the If-Then Thumb-2 execution state. ARM spec
* requires this to be all 000s in ARM mode. Snapdragon
* S4/Krait misbehaves on a Thumb=>ARM signal transition
* without this.
*
* We must do this whenever we are running on a Thumb-2
* capable CPU, which includes ARMv6T2. However, we elect
* to do this whenever we're on an ARMv6 or later CPU for
* simplicity.
*/
cpsr &= ~PSR_IT_MASK;
#endif
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/bam_dmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,7 @@ static void ul_wakeup(void)
}
if (wait_for_dfab) {
ret = wait_for_completion_timeout(
&dfab_unvote_completion, HZ);
&dfab_unvote_completion, msecs_to_jiffies(1000));
BUG_ON(ret == 0);
}
if (likely(do_vote_dfab))
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/clock-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static LIST_HEAD(clk_list);
static DEFINE_SPINLOCK(clk_list_lock);

static struct dentry *debugfs_base;
static u32 debug_suspend = 1;
static u32 debug_suspend = 0;

struct clk_table {
struct list_head node;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ static void msm_dmov_enqueue_cmd_ext_work(struct work_struct *work)
}
if (!dmov_conf[adm].channel_active) {
dmov_conf[adm].clk_ctl = CLK_TO_BE_DIS;
schedule_delayed_work(&dmov_conf[adm].work, (HZ/10));
schedule_delayed_work(&dmov_conf[adm].work, msecs_to_jiffies(100));
}
spin_unlock_irqrestore(&dmov_conf[adm].list_lock, flags);
error:
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-msm/ipc_router.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static LIST_HEAD(xprt_info_list);
static DECLARE_RWSEM(xprt_info_list_lock_lha5);

static DECLARE_COMPLETION(msm_ipc_local_router_up);
#define IPC_ROUTER_INIT_TIMEOUT (10 * HZ)
#define IPC_ROUTER_INIT_TIMEOUT 10000

static uint32_t next_port_id;
static DEFINE_MUTEX(next_port_id_lock_lha1);
Expand Down Expand Up @@ -3267,7 +3267,7 @@ void msm_ipc_router_xprt_notify(struct msm_ipc_router_xprt *xprt,

if (!msm_ipc_router_workqueue) {
ret = wait_for_completion_timeout(&msm_ipc_local_router_up,
IPC_ROUTER_INIT_TIMEOUT);
msecs_to_jiffies(IPC_ROUTER_INIT_TIMEOUT));
if (!ret || !msm_ipc_router_workqueue) {
pr_err("%s: IPC Router not initialized\n", __func__);
return;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ static int __cpuinit release_from_pen(unsigned int cpu)
*/
gic_raise_softirq(cpumask_of(cpu), 1);

timeout = jiffies + (1 * HZ);
timeout = jiffies + msecs_to_jiffies(1000);
while (time_before(jiffies, timeout)) {
smp_rmb();
if (pen_release == -1)
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-msm/qdsp6v2/apr.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@ int apr_wait_for_device_up(int dest_id)
if (dest_id == APR_DEST_MODEM)
rc = wait_event_interruptible_timeout(modem_wait,
(apr_get_modem_state() == APR_SUBSYS_UP),
(1 * HZ));
msecs_to_jiffies(1000));
else if (dest_id == APR_DEST_QDSP6)
rc = wait_event_interruptible_timeout(dsp_wait,
(apr_get_q6_state() == APR_SUBSYS_UP),
(1 * HZ));
msecs_to_jiffies(1000));
else
pr_err("%s: unknown dest_id %d\n", __func__, dest_id);
/* returns left time */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/qdsp6v2/apr_tal.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ struct apr_svc_ch_dev *apr_tal_open(uint32_t svc, uint32_t dest,
return NULL;
}
rc = wait_event_timeout(apr_svc_ch[dl][dest][svc].wait,
(apr_svc_ch[dl][dest][svc].smd_state == 1), 5 * HZ);
(apr_svc_ch[dl][dest][svc].smd_state == 1), msecs_to_jiffies(5000));
if (rc == 0) {
pr_err("apr_tal:TIMEOUT for OPEN event\n");
mutex_unlock(&apr_svc_ch[dl][dest][svc].m_lock);
Expand Down
12 changes: 6 additions & 6 deletions arch/arm/mach-msm/qdsp6v2/ultrasound/usf.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define USF_VERSION_ID 0x0171

/* Standard timeout in the asynchronous ops */
#define USF_TIMEOUT_JIFFIES (1*HZ) /* 1 sec */
#define USF_TIMEOUT_JIFFIES 1000 /* 1 sec */

/* Undefined USF device */
#define USF_UNDEF_DEV_ID 0xffff
Expand Down Expand Up @@ -886,9 +886,9 @@ static int usf_set_us_detection(struct usf_type *usf, unsigned long arg)
USF_ADSP_RESTART_STATE));
} else {
if (detect_info.detect_timeout == USF_DEFAULT_TIMEOUT)
timeout = USF_TIMEOUT_JIFFIES;
timeout = msecs_to_jiffies(USF_TIMEOUT_JIFFIES);
else
timeout = detect_info.detect_timeout * HZ;
timeout = detect_info.detect_timeout * msecs_to_jiffies(1000);
}
rc = wait_event_interruptible_timeout(usf_xx->wait,
(usf_xx->us_detect_type !=
Expand Down Expand Up @@ -1098,7 +1098,7 @@ static int usf_get_tx_update(struct usf_type *usf, unsigned long arg)
else {
prev_jiffies = jiffies;
if (upd_tx_info.timeout == USF_DEFAULT_TIMEOUT) {
timeout = USF_TIMEOUT_JIFFIES;
timeout = msecs_to_jiffies(USF_TIMEOUT_JIFFIES);
rc = wait_event_timeout(
usf_xx->wait,
(usf_xx->prev_region !=
Expand All @@ -1107,7 +1107,7 @@ static int usf_get_tx_update(struct usf_type *usf, unsigned long arg)
USF_WORK_STATE),
timeout);
} else {
timeout = upd_tx_info.timeout * HZ;
timeout = upd_tx_info.timeout * msecs_to_jiffies(1000);
rc = wait_event_interruptible_timeout(
usf_xx->wait,
(usf_xx->prev_region !=
Expand Down Expand Up @@ -1190,7 +1190,7 @@ static int usf_set_rx_update(struct usf_xx_type *usf_xx, unsigned long arg)
usf_xx->usc,
&upd_rx_info.free_region) ||
(usf_xx->usf_state == USF_IDLE_STATE),
USF_TIMEOUT_JIFFIES);
msecs_to_jiffies(USF_TIMEOUT_JIFFIES));

if (!rc) {
rc = -ETIME;
Expand Down
Loading