Adjustement to Friendly ARM PC T3, upstream patches for Udoo, disabling its default kernel for building
This commit is contained in:
parent
e7dabd6efb
commit
f3d0fce4bc
@ -5,6 +5,6 @@ BOOTCONFIG="udoo_defconfig"
|
||||
MODULES=""
|
||||
MODULES_NEXT=""
|
||||
#
|
||||
KERNEL_TARGET="default,next,dev"
|
||||
CLI_TARGET="xenial,stretch:next"
|
||||
DESKTOP_TARGET="xenial:next"
|
||||
KERNEL_TARGET="next,dev"
|
||||
CLI_TARGET="bionic,stretch:next"
|
||||
DESKTOP_TARGET=""
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#
|
||||
# Automatically generated file; DO NOT EDIT.
|
||||
# Linux/arm64 4.14.57 Kernel Configuration
|
||||
# Linux/arm64 4.14.65 Kernel Configuration
|
||||
#
|
||||
CONFIG_ARM64=y
|
||||
CONFIG_64BIT=y
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#
|
||||
# Automatically generated file; DO NOT EDIT.
|
||||
# Linux/arm 4.4.138 Kernel Configuration
|
||||
# Linux/arm 4.4.150 Kernel Configuration
|
||||
#
|
||||
CONFIG_ARM=y
|
||||
CONFIG_ARM_HAS_SG_CHAIN=y
|
||||
@ -1542,6 +1542,7 @@ CONFIG_DM_UEVENT=y
|
||||
# CONFIG_DM_LOG_WRITES is not set
|
||||
# CONFIG_TARGET_CORE is not set
|
||||
CONFIG_NETDEVICES=y
|
||||
CONFIG_MII=m
|
||||
CONFIG_NET_CORE=y
|
||||
CONFIG_BONDING=y
|
||||
CONFIG_DUMMY=y
|
||||
@ -4506,7 +4507,7 @@ CONFIG_CRYPTO_CCM=y
|
||||
CONFIG_CRYPTO_GCM=y
|
||||
# CONFIG_CRYPTO_CHACHA20POLY1305 is not set
|
||||
CONFIG_CRYPTO_SEQIV=y
|
||||
CONFIG_CRYPTO_ECHAINIV=m
|
||||
CONFIG_CRYPTO_ECHAINIV=y
|
||||
|
||||
#
|
||||
# Block modes
|
||||
|
||||
@ -1,54 +0,0 @@
|
||||
From 3364d0056328b93fb10ab929ae99933af9e304ad Mon Sep 17 00:00:00 2001
|
||||
From: MilhouseVH <milhouseVH.github@nmacleod.com>
|
||||
Date: Thu, 4 Jan 2018 19:56:05 +0000
|
||||
Subject: [PATCH] Revert "softirq: Let ksoftirqd do its job"
|
||||
|
||||
See: https://forum.libreelec.tv/thread/4235-dvb-issue-since-le-switched-to-kernel-4-9-x/?postID=75965#post75965
|
||||
---
|
||||
kernel/softirq.c | 16 +---------------
|
||||
1 file changed, 1 insertion(+), 15 deletions(-)
|
||||
|
||||
diff --git a/kernel/softirq.c b/kernel/softirq.c
|
||||
index 4e09821..58bb6f6 100644
|
||||
--- a/kernel/softirq.c
|
||||
+++ b/kernel/softirq.c
|
||||
@@ -77,17 +77,6 @@ static void wakeup_softirqd(void)
|
||||
wake_up_process(tsk);
|
||||
}
|
||||
|
||||
-/*
|
||||
- * If ksoftirqd is scheduled, we do not want to process pending softirqs
|
||||
- * right now. Let ksoftirqd handle this at its own rate, to get fairness.
|
||||
- */
|
||||
-static bool ksoftirqd_running(void)
|
||||
-{
|
||||
- struct task_struct *tsk = __this_cpu_read(ksoftirqd);
|
||||
-
|
||||
- return tsk && (tsk->state == TASK_RUNNING);
|
||||
-}
|
||||
-
|
||||
/*
|
||||
* preempt_count and SOFTIRQ_OFFSET usage:
|
||||
* - preempt_count is changed by SOFTIRQ_OFFSET on entering or leaving
|
||||
@@ -324,7 +313,7 @@ asmlinkage __visible void do_softirq(void)
|
||||
|
||||
pending = local_softirq_pending();
|
||||
|
||||
- if (pending && !ksoftirqd_running())
|
||||
+ if (pending)
|
||||
do_softirq_own_stack();
|
||||
|
||||
local_irq_restore(flags);
|
||||
@@ -351,9 +340,6 @@ void irq_enter(void)
|
||||
|
||||
static inline void invoke_softirq(void)
|
||||
{
|
||||
- if (ksoftirqd_running())
|
||||
- return;
|
||||
-
|
||||
if (!force_irqthreads) {
|
||||
#ifdef CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK
|
||||
/*
|
||||
--
|
||||
2.14.1
|
||||
|
||||
2867
patch/kernel/udoo-next/04-patch-4.4.138-139.patch
Normal file
2867
patch/kernel/udoo-next/04-patch-4.4.138-139.patch
Normal file
File diff suppressed because it is too large
Load Diff
1754
patch/kernel/udoo-next/04-patch-4.4.139-140.patch
Normal file
1754
patch/kernel/udoo-next/04-patch-4.4.139-140.patch
Normal file
File diff suppressed because it is too large
Load Diff
2838
patch/kernel/udoo-next/04-patch-4.4.140-141.patch
Normal file
2838
patch/kernel/udoo-next/04-patch-4.4.140-141.patch
Normal file
File diff suppressed because it is too large
Load Diff
186
patch/kernel/udoo-next/04-patch-4.4.141-142.patch
Normal file
186
patch/kernel/udoo-next/04-patch-4.4.141-142.patch
Normal file
@ -0,0 +1,186 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 3fc39e41dbde..75d6176c8786 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,6 +1,6 @@
|
||||
VERSION = 4
|
||||
PATCHLEVEL = 4
|
||||
-SUBLEVEL = 141
|
||||
+SUBLEVEL = 142
|
||||
EXTRAVERSION =
|
||||
NAME = Blurry Fish Butt
|
||||
|
||||
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
|
||||
index 814276d0eed1..736e2843139b 100644
|
||||
--- a/arch/x86/kernel/cpu/common.c
|
||||
+++ b/arch/x86/kernel/cpu/common.c
|
||||
@@ -686,13 +686,14 @@ void get_cpu_cap(struct cpuinfo_x86 *c)
|
||||
c->x86_capability[CPUID_1_EDX] = edx;
|
||||
}
|
||||
|
||||
+ /* Thermal and Power Management Leaf: level 0x00000006 (eax) */
|
||||
+ if (c->cpuid_level >= 0x00000006)
|
||||
+ c->x86_capability[CPUID_6_EAX] = cpuid_eax(0x00000006);
|
||||
+
|
||||
/* Additional Intel-defined flags: level 0x00000007 */
|
||||
if (c->cpuid_level >= 0x00000007) {
|
||||
cpuid_count(0x00000007, 0, &eax, &ebx, &ecx, &edx);
|
||||
-
|
||||
c->x86_capability[CPUID_7_0_EBX] = ebx;
|
||||
-
|
||||
- c->x86_capability[CPUID_6_EAX] = cpuid_eax(0x00000006);
|
||||
c->x86_capability[CPUID_7_ECX] = ecx;
|
||||
}
|
||||
|
||||
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
|
||||
index 1db6d73c8dd2..31a981d6229d 100644
|
||||
--- a/scripts/Kbuild.include
|
||||
+++ b/scripts/Kbuild.include
|
||||
@@ -7,6 +7,7 @@ quote := "
|
||||
squote := '
|
||||
empty :=
|
||||
space := $(empty) $(empty)
|
||||
+pound := \#
|
||||
|
||||
###
|
||||
# Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o
|
||||
@@ -236,11 +237,11 @@ endif
|
||||
|
||||
# Replace >$< with >$$< to preserve $ when reloading the .cmd file
|
||||
# (needed for make)
|
||||
-# Replace >#< with >\#< to avoid starting a comment in the .cmd file
|
||||
+# Replace >#< with >$(pound)< to avoid starting a comment in the .cmd file
|
||||
# (needed for make)
|
||||
# Replace >'< with >'\''< to be able to enclose the whole string in '...'
|
||||
# (needed for the shell)
|
||||
-make-cmd = $(call escsq,$(subst \#,\\\#,$(subst $$,$$$$,$(cmd_$(1)))))
|
||||
+make-cmd = $(call escsq,$(subst $(pound),$$(pound),$(subst $$,$$$$,$(cmd_$(1)))))
|
||||
|
||||
# Find any prerequisites that is newer than target or that does not exist.
|
||||
# PHONY targets skipped in both cases.
|
||||
diff --git a/tools/arch/x86/include/asm/unistd_32.h b/tools/arch/x86/include/asm/unistd_32.h
|
||||
new file mode 100644
|
||||
index 000000000000..cf33ab09273d
|
||||
--- /dev/null
|
||||
+++ b/tools/arch/x86/include/asm/unistd_32.h
|
||||
@@ -0,0 +1,9 @@
|
||||
+#ifndef __NR_perf_event_open
|
||||
+# define __NR_perf_event_open 336
|
||||
+#endif
|
||||
+#ifndef __NR_futex
|
||||
+# define __NR_futex 240
|
||||
+#endif
|
||||
+#ifndef __NR_gettid
|
||||
+# define __NR_gettid 224
|
||||
+#endif
|
||||
diff --git a/tools/arch/x86/include/asm/unistd_64.h b/tools/arch/x86/include/asm/unistd_64.h
|
||||
new file mode 100644
|
||||
index 000000000000..2c9835695b56
|
||||
--- /dev/null
|
||||
+++ b/tools/arch/x86/include/asm/unistd_64.h
|
||||
@@ -0,0 +1,9 @@
|
||||
+#ifndef __NR_perf_event_open
|
||||
+# define __NR_perf_event_open 298
|
||||
+#endif
|
||||
+#ifndef __NR_futex
|
||||
+# define __NR_futex 202
|
||||
+#endif
|
||||
+#ifndef __NR_gettid
|
||||
+# define __NR_gettid 186
|
||||
+#endif
|
||||
diff --git a/tools/build/Build.include b/tools/build/Build.include
|
||||
index 1c570528baf7..0340d8a51dab 100644
|
||||
--- a/tools/build/Build.include
|
||||
+++ b/tools/build/Build.include
|
||||
@@ -12,6 +12,7 @@
|
||||
# Convenient variables
|
||||
comma := ,
|
||||
squote := '
|
||||
+pound := \#
|
||||
|
||||
###
|
||||
# Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o
|
||||
@@ -43,11 +44,11 @@ echo-cmd = $(if $($(quiet)cmd_$(1)),\
|
||||
###
|
||||
# Replace >$< with >$$< to preserve $ when reloading the .cmd file
|
||||
# (needed for make)
|
||||
-# Replace >#< with >\#< to avoid starting a comment in the .cmd file
|
||||
+# Replace >#< with >$(pound)< to avoid starting a comment in the .cmd file
|
||||
# (needed for make)
|
||||
# Replace >'< with >'\''< to be able to enclose the whole string in '...'
|
||||
# (needed for the shell)
|
||||
-make-cmd = $(call escsq,$(subst \#,\\\#,$(subst $$,$$$$,$(cmd_$(1)))))
|
||||
+make-cmd = $(call escsq,$(subst $(pound),$$(pound),$(subst $$,$$$$,$(cmd_$(1)))))
|
||||
|
||||
###
|
||||
# Find any prerequisites that is newer than target or that does not exist.
|
||||
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
|
||||
index de89ec574361..b92c952b01ef 100644
|
||||
--- a/tools/perf/config/Makefile
|
||||
+++ b/tools/perf/config/Makefile
|
||||
@@ -200,6 +200,7 @@ CFLAGS += -I$(src-perf)/arch/$(ARCH)/include
|
||||
CFLAGS += -I$(srctree)/tools/include/
|
||||
CFLAGS += -I$(srctree)/arch/$(ARCH)/include/uapi
|
||||
CFLAGS += -I$(srctree)/arch/$(ARCH)/include
|
||||
+CFLAGS += -I$(srctree)/tools/arch/$(ARCH)/include
|
||||
CFLAGS += -I$(srctree)/include/uapi
|
||||
CFLAGS += -I$(srctree)/include
|
||||
|
||||
diff --git a/tools/perf/perf-sys.h b/tools/perf/perf-sys.h
|
||||
index 83a25cef82fd..5cee8a3d0455 100644
|
||||
--- a/tools/perf/perf-sys.h
|
||||
+++ b/tools/perf/perf-sys.h
|
||||
@@ -11,29 +11,11 @@
|
||||
#if defined(__i386__)
|
||||
#define cpu_relax() asm volatile("rep; nop" ::: "memory");
|
||||
#define CPUINFO_PROC {"model name"}
|
||||
-#ifndef __NR_perf_event_open
|
||||
-# define __NR_perf_event_open 336
|
||||
-#endif
|
||||
-#ifndef __NR_futex
|
||||
-# define __NR_futex 240
|
||||
-#endif
|
||||
-#ifndef __NR_gettid
|
||||
-# define __NR_gettid 224
|
||||
-#endif
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__)
|
||||
#define cpu_relax() asm volatile("rep; nop" ::: "memory");
|
||||
#define CPUINFO_PROC {"model name"}
|
||||
-#ifndef __NR_perf_event_open
|
||||
-# define __NR_perf_event_open 298
|
||||
-#endif
|
||||
-#ifndef __NR_futex
|
||||
-# define __NR_futex 202
|
||||
-#endif
|
||||
-#ifndef __NR_gettid
|
||||
-# define __NR_gettid 186
|
||||
-#endif
|
||||
#endif
|
||||
|
||||
#ifdef __powerpc__
|
||||
diff --git a/tools/perf/util/include/asm/unistd_32.h b/tools/perf/util/include/asm/unistd_32.h
|
||||
deleted file mode 100644
|
||||
index 8b137891791f..000000000000
|
||||
--- a/tools/perf/util/include/asm/unistd_32.h
|
||||
+++ /dev/null
|
||||
@@ -1 +0,0 @@
|
||||
-
|
||||
diff --git a/tools/perf/util/include/asm/unistd_64.h b/tools/perf/util/include/asm/unistd_64.h
|
||||
deleted file mode 100644
|
||||
index 8b137891791f..000000000000
|
||||
--- a/tools/perf/util/include/asm/unistd_64.h
|
||||
+++ /dev/null
|
||||
@@ -1 +0,0 @@
|
||||
-
|
||||
diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include
|
||||
index 19edc1a7a232..7ea4438b801d 100644
|
||||
--- a/tools/scripts/Makefile.include
|
||||
+++ b/tools/scripts/Makefile.include
|
||||
@@ -92,3 +92,5 @@ ifneq ($(silent),1)
|
||||
QUIET_INSTALL = @printf ' INSTALL %s\n' $1;
|
||||
endif
|
||||
endif
|
||||
+
|
||||
+pound := \#
|
||||
1006
patch/kernel/udoo-next/04-patch-4.4.142-143.patch
Normal file
1006
patch/kernel/udoo-next/04-patch-4.4.142-143.patch
Normal file
File diff suppressed because it is too large
Load Diff
4228
patch/kernel/udoo-next/04-patch-4.4.143-144.patch
Normal file
4228
patch/kernel/udoo-next/04-patch-4.4.143-144.patch
Normal file
File diff suppressed because it is too large
Load Diff
1006
patch/kernel/udoo-next/04-patch-4.4.144-145.patch
Normal file
1006
patch/kernel/udoo-next/04-patch-4.4.144-145.patch
Normal file
File diff suppressed because it is too large
Load Diff
2741
patch/kernel/udoo-next/04-patch-4.4.145-146.patch
Normal file
2741
patch/kernel/udoo-next/04-patch-4.4.145-146.patch
Normal file
File diff suppressed because it is too large
Load Diff
254
patch/kernel/udoo-next/04-patch-4.4.146-147.patch
Normal file
254
patch/kernel/udoo-next/04-patch-4.4.146-147.patch
Normal file
@ -0,0 +1,254 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 030f5af05f4e..ee92a12e3a4b 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,6 +1,6 @@
|
||||
VERSION = 4
|
||||
PATCHLEVEL = 4
|
||||
-SUBLEVEL = 146
|
||||
+SUBLEVEL = 147
|
||||
EXTRAVERSION =
|
||||
NAME = Blurry Fish Butt
|
||||
|
||||
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
|
||||
index d4d853680ae4..a4abf7dc9576 100644
|
||||
--- a/drivers/i2c/busses/i2c-imx.c
|
||||
+++ b/drivers/i2c/busses/i2c-imx.c
|
||||
@@ -382,6 +382,7 @@ static int i2c_imx_dma_xfer(struct imx_i2c_struct *i2c_imx,
|
||||
goto err_desc;
|
||||
}
|
||||
|
||||
+ reinit_completion(&dma->cmd_complete);
|
||||
txdesc->callback = i2c_imx_dma_callback;
|
||||
txdesc->callback_param = i2c_imx;
|
||||
if (dma_submit_error(dmaengine_submit(txdesc))) {
|
||||
@@ -631,7 +632,6 @@ static int i2c_imx_dma_write(struct imx_i2c_struct *i2c_imx,
|
||||
* The first byte must be transmitted by the CPU.
|
||||
*/
|
||||
imx_i2c_write_reg(msgs->addr << 1, i2c_imx, IMX_I2C_I2DR);
|
||||
- reinit_completion(&i2c_imx->dma->cmd_complete);
|
||||
time_left = wait_for_completion_timeout(
|
||||
&i2c_imx->dma->cmd_complete,
|
||||
msecs_to_jiffies(DMA_TIMEOUT));
|
||||
@@ -690,7 +690,6 @@ static int i2c_imx_dma_read(struct imx_i2c_struct *i2c_imx,
|
||||
if (result)
|
||||
return result;
|
||||
|
||||
- reinit_completion(&i2c_imx->dma->cmd_complete);
|
||||
time_left = wait_for_completion_timeout(
|
||||
&i2c_imx->dma->cmd_complete,
|
||||
msecs_to_jiffies(DMA_TIMEOUT));
|
||||
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c
|
||||
index a32ba753e413..afaf13474796 100644
|
||||
--- a/drivers/pci/pci-acpi.c
|
||||
+++ b/drivers/pci/pci-acpi.c
|
||||
@@ -543,7 +543,7 @@ void acpi_pci_add_bus(struct pci_bus *bus)
|
||||
union acpi_object *obj;
|
||||
struct pci_host_bridge *bridge;
|
||||
|
||||
- if (acpi_pci_disabled || !bus->bridge)
|
||||
+ if (acpi_pci_disabled || !bus->bridge || !ACPI_HANDLE(bus->bridge))
|
||||
return;
|
||||
|
||||
acpi_pci_slot_enumerate(bus);
|
||||
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
|
||||
index a9eb3cd453be..41a646696bab 100644
|
||||
--- a/drivers/scsi/qla2xxx/qla_init.c
|
||||
+++ b/drivers/scsi/qla2xxx/qla_init.c
|
||||
@@ -325,11 +325,10 @@ qla2x00_async_tm_cmd(fc_port_t *fcport, uint32_t flags, uint32_t lun,
|
||||
|
||||
wait_for_completion(&tm_iocb->u.tmf.comp);
|
||||
|
||||
- rval = tm_iocb->u.tmf.comp_status == CS_COMPLETE ?
|
||||
- QLA_SUCCESS : QLA_FUNCTION_FAILED;
|
||||
+ rval = tm_iocb->u.tmf.data;
|
||||
|
||||
- if ((rval != QLA_SUCCESS) || tm_iocb->u.tmf.data) {
|
||||
- ql_dbg(ql_dbg_taskm, vha, 0x8030,
|
||||
+ if (rval != QLA_SUCCESS) {
|
||||
+ ql_log(ql_log_warn, vha, 0x8030,
|
||||
"TM IOCB failed (%x).\n", rval);
|
||||
}
|
||||
|
||||
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
|
||||
index 5cbf20ab94aa..18b19744398a 100644
|
||||
--- a/drivers/scsi/qla2xxx/qla_os.c
|
||||
+++ b/drivers/scsi/qla2xxx/qla_os.c
|
||||
@@ -4938,8 +4938,9 @@ qla2x00_do_dpc(void *data)
|
||||
}
|
||||
}
|
||||
|
||||
- if (test_and_clear_bit(ISP_ABORT_NEEDED,
|
||||
- &base_vha->dpc_flags)) {
|
||||
+ if (test_and_clear_bit
|
||||
+ (ISP_ABORT_NEEDED, &base_vha->dpc_flags) &&
|
||||
+ !test_bit(UNLOADING, &base_vha->dpc_flags)) {
|
||||
|
||||
ql_dbg(ql_dbg_dpc, base_vha, 0x4007,
|
||||
"ISP abort scheduled.\n");
|
||||
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
|
||||
index 49af3c50b263..3e4d8ac1974e 100644
|
||||
--- a/fs/ext4/super.c
|
||||
+++ b/fs/ext4/super.c
|
||||
@@ -2102,7 +2102,7 @@ static int ext4_check_descriptors(struct super_block *sb,
|
||||
struct ext4_sb_info *sbi = EXT4_SB(sb);
|
||||
ext4_fsblk_t first_block = le32_to_cpu(sbi->s_es->s_first_data_block);
|
||||
ext4_fsblk_t last_block;
|
||||
- ext4_fsblk_t last_bg_block = sb_block + ext4_bg_num_gdb(sb, 0) + 1;
|
||||
+ ext4_fsblk_t last_bg_block = sb_block + ext4_bg_num_gdb(sb, 0);
|
||||
ext4_fsblk_t block_bitmap;
|
||||
ext4_fsblk_t inode_bitmap;
|
||||
ext4_fsblk_t inode_table;
|
||||
@@ -3777,13 +3777,13 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
|
||||
goto failed_mount2;
|
||||
}
|
||||
}
|
||||
+ sbi->s_gdb_count = db_count;
|
||||
if (!ext4_check_descriptors(sb, logical_sb_block, &first_not_zeroed)) {
|
||||
ext4_msg(sb, KERN_ERR, "group descriptors corrupted!");
|
||||
ret = -EFSCORRUPTED;
|
||||
goto failed_mount2;
|
||||
}
|
||||
|
||||
- sbi->s_gdb_count = db_count;
|
||||
get_random_bytes(&sbi->s_next_generation, sizeof(u32));
|
||||
spin_lock_init(&sbi->s_next_gen_lock);
|
||||
|
||||
diff --git a/fs/jfs/xattr.c b/fs/jfs/xattr.c
|
||||
index 48b15a6e5558..40a26a542341 100644
|
||||
--- a/fs/jfs/xattr.c
|
||||
+++ b/fs/jfs/xattr.c
|
||||
@@ -493,15 +493,17 @@ static int ea_get(struct inode *inode, struct ea_buffer *ea_buf, int min_size)
|
||||
if (size > PSIZE) {
|
||||
/*
|
||||
* To keep the rest of the code simple. Allocate a
|
||||
- * contiguous buffer to work with
|
||||
+ * contiguous buffer to work with. Make the buffer large
|
||||
+ * enough to make use of the whole extent.
|
||||
*/
|
||||
- ea_buf->xattr = kmalloc(size, GFP_KERNEL);
|
||||
+ ea_buf->max_size = (size + sb->s_blocksize - 1) &
|
||||
+ ~(sb->s_blocksize - 1);
|
||||
+
|
||||
+ ea_buf->xattr = kmalloc(ea_buf->max_size, GFP_KERNEL);
|
||||
if (ea_buf->xattr == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
ea_buf->flag = EA_MALLOC;
|
||||
- ea_buf->max_size = (size + sb->s_blocksize - 1) &
|
||||
- ~(sb->s_blocksize - 1);
|
||||
|
||||
if (ea_size == 0)
|
||||
return 0;
|
||||
diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h
|
||||
index 4acc552e9279..19d0778ec382 100644
|
||||
--- a/include/linux/ring_buffer.h
|
||||
+++ b/include/linux/ring_buffer.h
|
||||
@@ -162,6 +162,7 @@ void ring_buffer_record_enable(struct ring_buffer *buffer);
|
||||
void ring_buffer_record_off(struct ring_buffer *buffer);
|
||||
void ring_buffer_record_on(struct ring_buffer *buffer);
|
||||
int ring_buffer_record_is_on(struct ring_buffer *buffer);
|
||||
+int ring_buffer_record_is_set_on(struct ring_buffer *buffer);
|
||||
void ring_buffer_record_disable_cpu(struct ring_buffer *buffer, int cpu);
|
||||
void ring_buffer_record_enable_cpu(struct ring_buffer *buffer, int cpu);
|
||||
|
||||
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
|
||||
index 5f55a8bf5264..0df2b44dac7c 100644
|
||||
--- a/kernel/irq/manage.c
|
||||
+++ b/kernel/irq/manage.c
|
||||
@@ -1012,6 +1012,13 @@ static int irq_setup_forced_threading(struct irqaction *new)
|
||||
if (new->flags & (IRQF_NO_THREAD | IRQF_PERCPU | IRQF_ONESHOT))
|
||||
return 0;
|
||||
|
||||
+ /*
|
||||
+ * No further action required for interrupts which are requested as
|
||||
+ * threaded interrupts already
|
||||
+ */
|
||||
+ if (new->handler == irq_default_primary_handler)
|
||||
+ return 0;
|
||||
+
|
||||
new->flags |= IRQF_ONESHOT;
|
||||
|
||||
/*
|
||||
@@ -1019,7 +1026,7 @@ static int irq_setup_forced_threading(struct irqaction *new)
|
||||
* thread handler. We force thread them as well by creating a
|
||||
* secondary action.
|
||||
*/
|
||||
- if (new->handler != irq_default_primary_handler && new->thread_fn) {
|
||||
+ if (new->handler && new->thread_fn) {
|
||||
/* Allocate the secondary action */
|
||||
new->secondary = kzalloc(sizeof(struct irqaction), GFP_KERNEL);
|
||||
if (!new->secondary)
|
||||
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
|
||||
index e5d228f7224c..5ad2e852e9f6 100644
|
||||
--- a/kernel/time/tick-sched.c
|
||||
+++ b/kernel/time/tick-sched.c
|
||||
@@ -570,7 +570,7 @@ static void tick_nohz_restart(struct tick_sched *ts, ktime_t now)
|
||||
|
||||
static inline bool local_timer_softirq_pending(void)
|
||||
{
|
||||
- return local_softirq_pending() & TIMER_SOFTIRQ;
|
||||
+ return local_softirq_pending() & BIT(TIMER_SOFTIRQ);
|
||||
}
|
||||
|
||||
static ktime_t tick_nohz_stop_sched_tick(struct tick_sched *ts,
|
||||
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
|
||||
index d9cd6191760b..fdaa88f38aec 100644
|
||||
--- a/kernel/trace/ring_buffer.c
|
||||
+++ b/kernel/trace/ring_buffer.c
|
||||
@@ -3141,6 +3141,22 @@ int ring_buffer_record_is_on(struct ring_buffer *buffer)
|
||||
return !atomic_read(&buffer->record_disabled);
|
||||
}
|
||||
|
||||
+/**
|
||||
+ * ring_buffer_record_is_set_on - return true if the ring buffer is set writable
|
||||
+ * @buffer: The ring buffer to see if write is set enabled
|
||||
+ *
|
||||
+ * Returns true if the ring buffer is set writable by ring_buffer_record_on().
|
||||
+ * Note that this does NOT mean it is in a writable state.
|
||||
+ *
|
||||
+ * It may return true when the ring buffer has been disabled by
|
||||
+ * ring_buffer_record_disable(), as that is a temporary disabling of
|
||||
+ * the ring buffer.
|
||||
+ */
|
||||
+int ring_buffer_record_is_set_on(struct ring_buffer *buffer)
|
||||
+{
|
||||
+ return !(atomic_read(&buffer->record_disabled) & RB_BUFFER_OFF);
|
||||
+}
|
||||
+
|
||||
/**
|
||||
* ring_buffer_record_disable_cpu - stop all writes into the cpu_buffer
|
||||
* @buffer: The ring buffer to stop writes to.
|
||||
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
|
||||
index 8aef4e63ac57..1b980a8ef791 100644
|
||||
--- a/kernel/trace/trace.c
|
||||
+++ b/kernel/trace/trace.c
|
||||
@@ -1088,6 +1088,12 @@ update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu)
|
||||
|
||||
arch_spin_lock(&tr->max_lock);
|
||||
|
||||
+ /* Inherit the recordable setting from trace_buffer */
|
||||
+ if (ring_buffer_record_is_set_on(tr->trace_buffer.buffer))
|
||||
+ ring_buffer_record_on(tr->max_buffer.buffer);
|
||||
+ else
|
||||
+ ring_buffer_record_off(tr->max_buffer.buffer);
|
||||
+
|
||||
buf = tr->trace_buffer.buffer;
|
||||
tr->trace_buffer.buffer = tr->max_buffer.buffer;
|
||||
tr->max_buffer.buffer = buf;
|
||||
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
|
||||
index 9708fff318d5..bf292010760a 100644
|
||||
--- a/net/netlink/af_netlink.c
|
||||
+++ b/net/netlink/af_netlink.c
|
||||
@@ -986,6 +986,11 @@ static int netlink_bind(struct socket *sock, struct sockaddr *addr,
|
||||
return err;
|
||||
}
|
||||
|
||||
+ if (nlk->ngroups == 0)
|
||||
+ groups = 0;
|
||||
+ else if (nlk->ngroups < 8*sizeof(groups))
|
||||
+ groups &= (1UL << nlk->ngroups) - 1;
|
||||
+
|
||||
bound = nlk->bound;
|
||||
if (bound) {
|
||||
/* Ensure nlk->portid is up-to-date. */
|
||||
1873
patch/kernel/udoo-next/04-patch-4.4.147-148.patch
Normal file
1873
patch/kernel/udoo-next/04-patch-4.4.147-148.patch
Normal file
File diff suppressed because it is too large
Load Diff
1202
patch/kernel/udoo-next/04-patch-4.4.148-149.patch
Normal file
1202
patch/kernel/udoo-next/04-patch-4.4.148-149.patch
Normal file
File diff suppressed because it is too large
Load Diff
36
patch/kernel/udoo-next/04-patch-4.4.149-150.patch
Normal file
36
patch/kernel/udoo-next/04-patch-4.4.149-150.patch
Normal file
@ -0,0 +1,36 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index e7c46ece5f27..7789195c6a59 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,6 +1,6 @@
|
||||
VERSION = 4
|
||||
PATCHLEVEL = 4
|
||||
-SUBLEVEL = 149
|
||||
+SUBLEVEL = 150
|
||||
EXTRAVERSION =
|
||||
NAME = Blurry Fish Butt
|
||||
|
||||
diff --git a/arch/x86/include/asm/pgtable-invert.h b/arch/x86/include/asm/pgtable-invert.h
|
||||
index 44b1203ece12..a0c1525f1b6f 100644
|
||||
--- a/arch/x86/include/asm/pgtable-invert.h
|
||||
+++ b/arch/x86/include/asm/pgtable-invert.h
|
||||
@@ -4,9 +4,18 @@
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
+/*
|
||||
+ * A clear pte value is special, and doesn't get inverted.
|
||||
+ *
|
||||
+ * Note that even users that only pass a pgprot_t (rather
|
||||
+ * than a full pte) won't trigger the special zero case,
|
||||
+ * because even PAGE_NONE has _PAGE_PROTNONE | _PAGE_ACCESSED
|
||||
+ * set. So the all zero case really is limited to just the
|
||||
+ * cleared page table entry case.
|
||||
+ */
|
||||
static inline bool __pte_needs_invert(u64 val)
|
||||
{
|
||||
- return !(val & _PAGE_PRESENT);
|
||||
+ return val && !(val & _PAGE_PRESENT);
|
||||
}
|
||||
|
||||
/* Get a mask to xor with the page table entry to get the correct pfn. */
|
||||
Loading…
Reference in New Issue
Block a user