[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: 5f1fcf42d2b9edd5baca2940182eb948753faf2a Author: Mike Pagano gentoo org> AuthorDate: Tue Sep 29 00:05:46 2015 + Commit: Mike Pagano gentoo org> CommitDate: Tue Sep 29 00:05:46 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5f1fcf42 dm crypt: constrain crypt device's max_segment_size to PAGE_SIZE. See bug #561558. Thanks to kipplasterjoe for reporting. _README| 4 ++ 1600_dm-crypt-limit-max-segment-size.patch | 84 ++ 2 files changed, 88 insertions(+) diff --git a/_README b/_README index 3ff77bb..142ec40 100644 --- a/_README +++ b/_README @@ -87,6 +87,10 @@ Patch: 1510_fs-enable-link-security-restrictions-by-default.patch From: http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/ Desc: Enable link security restrictions by default. +Patch: 1600_dm-crypt-limit-max-segment-size.patch +From: https://bugzilla.kernel.org/show_bug.cgi?id=104421 +Desc: dm crypt: constrain crypt device's max_segment_size to PAGE_SIZE. + Patch: 2600_select-REGMAP_IRQ-for-rt5033.patch From: http://git.kernel.org/ Desc: mfd: rt5033: MFD_RT5033 needs to select REGMAP_IRQ. See bug #546938. diff --git a/1600_dm-crypt-limit-max-segment-size.patch b/1600_dm-crypt-limit-max-segment-size.patch new file mode 100644 index 000..82aca44 --- /dev/null +++ b/1600_dm-crypt-limit-max-segment-size.patch @@ -0,0 +1,84 @@ +From 586b286b110e94eb31840ac5afc0c24e0881fe34 Mon Sep 17 00:00:00 2001 +From: Mike Snitzer+Date: Wed, 9 Sep 2015 21:34:51 -0400 +Subject: dm crypt: constrain crypt device's max_segment_size to PAGE_SIZE + +Setting the dm-crypt device's max_segment_size to PAGE_SIZE is an +unfortunate constraint that is required to avoid the potential for +exceeding dm-crypt's underlying device's max_segments limits -- due to +crypt_alloc_buffer() possibly allocating pages for the encryption bio +that are not as physically contiguous as the original bio. + +It is interesting to note that this problem was already fixed back in +2007 via commit 91e106259 ("dm crypt: use bio_add_page"). But Linux 4.0 +commit cf2f1abfb ("dm crypt: don't allocate pages for a partial +request") regressed dm-crypt back to _not_ using bio_add_page(). But +given dm-crypt's cpu parallelization changes all depend on commit +cf2f1abfb's abandoning of the more complex io fragments processing that +dm-crypt previously had we cannot easily go back to using +bio_add_page(). + +So all said the cleanest way to resolve this issue is to fix dm-crypt to +properly constrain the original bios entering dm-crypt so the encryption +bios that dm-crypt generates from the original bios are always +compatible with the underlying device's max_segments queue limits. + +It should be noted that technically Linux 4.3 does _not_ need this fix +because of the block core's new late bio-splitting capability. But, it +is reasoned, there is little to be gained by having the block core split +the encrypted bio that is composed of PAGE_SIZE segments. That said, in +the future we may revert this change. + +Fixes: cf2f1abfb ("dm crypt: don't allocate pages for a partial request") +Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=104421 +Suggested-by: Jeff Moyer +Signed-off-by: Mike Snitzer +Cc: sta...@vger.kernel.org # 4.0+ + +diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c +index d60c88d..4b3b6f8 100644 +--- a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c +@@ -968,7 +968,8 @@ static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone); + + /* + * Generate a new unfragmented bio with the given size +- * This should never violate the device limitations ++ * This should never violate the device limitations (but only because ++ * max_segment_size is being constrained to PAGE_SIZE). + * + * This function may be called concurrently. If we allocate from the mempool + * concurrently, there is a possibility of deadlock. For example, if we have +@@ -2045,9 +2046,20 @@ static int crypt_iterate_devices(struct dm_target *ti, + return fn(ti, cc->dev, cc->start, ti->len, data); + } + ++static void crypt_io_hints(struct dm_target *ti, struct queue_limits *limits) ++{ ++ /* ++ * Unfortunate constraint that is required to avoid the potential ++ * for exceeding underlying device's max_segments limits -- due to ++ * crypt_alloc_buffer() possibly allocating pages for the encryption ++ * bio that are not as physically contiguous as the original bio. ++ */ ++ limits->max_segment_size = PAGE_SIZE; ++} ++ + static struct target_type crypt_target = { + .name = "crypt", +- .version = {1, 14, 0}, ++ .version = {1, 14, 1}, + .module = THIS_MODULE, + .ctr= crypt_ctr, + .dtr= crypt_dtr, +@@
[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: 10847d7288e01eff75faa43573cdc6252e1a3987 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Wed Jul 22 10:11:24 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Wed Jul 22 10:11:24 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=10847d72 Linux patch 4.0.9 _README|4 + 1008_linux-4.0.9.patch | 3482 2 files changed, 3486 insertions(+) diff --git a/_README b/_README index 6a1359e..3ff77bb 100644 --- a/_README +++ b/_README @@ -75,6 +75,10 @@ Patch: 1007_linux-4.0.8.patch From: http://www.kernel.org Desc: Linux 4.0.8 +Patch: 1008_linux-4.0.9.patch +From: http://www.kernel.org +Desc: Linux 4.0.9 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1008_linux-4.0.9.patch b/1008_linux-4.0.9.patch new file mode 100644 index 000..c0777ca --- /dev/null +++ b/1008_linux-4.0.9.patch @@ -0,0 +1,3482 @@ +diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt +index 0f7afb2bb442..aef8cc5a677b 100644 +--- a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt +@@ -25,13 +25,18 @@ physical addresses. These are the addresses in /proc/iomem. The physical + address is not directly useful to a driver; it must use ioremap() to map + the space and produce a virtual address. + +-I/O devices use a third kind of address: a bus address or DMA address. +-If a device has registers at an MMIO address, or if it performs DMA to read +-or write system memory, the addresses used by the device are bus addresses. +-In some systems, bus addresses are identical to CPU physical addresses, but +-in general they are not. IOMMUs and host bridges can produce arbitrary ++I/O devices use a third kind of address: a bus address. If a device has ++registers at an MMIO address, or if it performs DMA to read or write system ++memory, the addresses used by the device are bus addresses. In some ++systems, bus addresses are identical to CPU physical addresses, but in ++general they are not. IOMMUs and host bridges can produce arbitrary + mappings between physical and bus addresses. + ++From a device's point of view, DMA uses the bus address space, but it may ++be restricted to a subset of that space. For example, even if a system ++supports 64-bit addresses for main memory and PCI BARs, it may use an IOMMU ++so devices only need to use 32-bit DMA addresses. ++ + Here's a picture and some examples: + +CPU CPU Bus +@@ -72,11 +77,11 @@ can use virtual address X to access the buffer, but the device itself + cannot because DMA doesn't go through the CPU virtual memory system. + + In some simple systems, the device can do DMA directly to physical address +-Y. But in many others, there is IOMMU hardware that translates bus ++Y. But in many others, there is IOMMU hardware that translates DMA + addresses to physical addresses, e.g., it translates Z to Y. This is part + of the reason for the DMA API: the driver can give a virtual address X to + an interface like dma_map_single(), which sets up any required IOMMU +-mapping and returns the bus address Z. The driver then tells the device to ++mapping and returns the DMA address Z. The driver then tells the device to + do DMA to Z, and the IOMMU maps it to the buffer at address Y in system + RAM. + +@@ -98,7 +103,7 @@ First of all, you should make sure + #include linux/dma-mapping.h + + is in your driver, which provides the definition of dma_addr_t. This type +-can hold any valid DMA or bus address for the platform and should be used ++can hold any valid DMA address for the platform and should be used + everywhere you hold a DMA address returned from the DMA mapping functions. + +What memory is DMA'able? +@@ -316,7 +321,7 @@ There are two types of DMA mappings: + Think of consistent as synchronous or coherent. + + The current default is to return consistent memory in the low 32 +- bits of the bus space. However, for future compatibility you should ++ bits of the DMA space. However, for future compatibility you should + set the consistent mask even if this default is fine for your + driver. + +@@ -403,7 +408,7 @@ dma_alloc_coherent() returns two values: the virtual address which you + can use to access it from the CPU and dma_handle which you pass to the + card. + +-The CPU virtual address and the DMA bus address are both ++The CPU virtual address and the DMA address are both + guaranteed to be aligned to the smallest PAGE_SIZE order which + is greater than or equal to the requested size. This invariant + exists (for example) to guarantee that if you allocate a chunk +@@ -645,8 +650,8 @@ PLEASE NOTE: The 'nents' argument to the dma_unmap_sg call must be +
[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: 3594f6ef73513ee5c6adefc2a074b8b310dc4de3 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Fri Jul 10 23:33:38 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Fri Jul 10 23:33:38 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3594f6ef Linux patch 4.0.8 _README|4 + 1007_linux-4.0.8.patch | 2139 2 files changed, 2143 insertions(+) diff --git a/_README b/_README index 32ebe25..6a1359e 100644 --- a/_README +++ b/_README @@ -71,6 +71,10 @@ Patch: 1006_linux-4.0.7.patch From: http://www.kernel.org Desc: Linux 4.0.7 +Patch: 1007_linux-4.0.8.patch +From: http://www.kernel.org +Desc: Linux 4.0.8 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1007_linux-4.0.8.patch b/1007_linux-4.0.8.patch new file mode 100644 index 000..88c73a0 --- /dev/null +++ b/1007_linux-4.0.8.patch @@ -0,0 +1,2139 @@ +diff --git a/Documentation/devicetree/bindings/net/marvell-armada-370-neta.txt b/Documentation/devicetree/bindings/net/marvell-armada-370-neta.txt +index 750d577e8083..f5a8ca29aff0 100644 +--- a/Documentation/devicetree/bindings/net/marvell-armada-370-neta.txt b/Documentation/devicetree/bindings/net/marvell-armada-370-neta.txt +@@ -1,7 +1,7 @@ + * Marvell Armada 370 / Armada XP Ethernet Controller (NETA) + + Required properties: +-- compatible: should be marvell,armada-370-neta. ++- compatible: marvell,armada-370-neta or marvell,armada-xp-neta. + - reg: address and length of the register set for the device. + - interrupts: interrupt for the device + - phy: See ethernet.txt file in the same directory. +diff --git a/Makefile b/Makefile +index bd76a8e94395..0e315d6e1a41 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 4 + PATCHLEVEL = 0 +-SUBLEVEL = 7 ++SUBLEVEL = 8 + EXTRAVERSION = + NAME = Hurr durr I'ma sheep + +diff --git a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi +index 8a322ad57e5f..a038c201ffba 100644 +--- a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi +@@ -265,7 +265,6 @@ + }; + + eth0: ethernet@7 { +- compatible = marvell,armada-370-neta; + reg = 0x7 0x4000; + interrupts = 8; + clocks = gateclk 4; +@@ -281,7 +280,6 @@ + }; + + eth1: ethernet@74000 { +- compatible = marvell,armada-370-neta; + reg = 0x74000 0x4000; + interrupts = 10; + clocks = gateclk 3; +diff --git a/arch/arm/boot/dts/armada-370.dtsi b/arch/arm/boot/dts/armada-370.dtsi +index 27397f151def..37730254e667 100644 +--- a/arch/arm/boot/dts/armada-370.dtsi b/arch/arm/boot/dts/armada-370.dtsi +@@ -306,6 +306,14 @@ + dmacap,memset; + }; + }; ++ ++ ethernet@7 { ++ compatible = marvell,armada-370-neta; ++ }; ++ ++ ethernet@74000 { ++ compatible = marvell,armada-370-neta; ++ }; + }; + }; + }; +diff --git a/arch/arm/boot/dts/armada-xp-mv78260.dtsi b/arch/arm/boot/dts/armada-xp-mv78260.dtsi +index 4a7cbed79b07..1676d30e9be2 100644 +--- a/arch/arm/boot/dts/armada-xp-mv78260.dtsi b/arch/arm/boot/dts/armada-xp-mv78260.dtsi +@@ -319,7 +319,7 @@ + }; + + eth3: ethernet@34000 { +- compatible = marvell,armada-370-neta; ++ compatible = marvell,armada-xp-neta; + reg = 0x34000 0x4000; + interrupts = 14; + clocks = gateclk 1; +diff --git a/arch/arm/boot/dts/armada-xp-mv78460.dtsi b/arch/arm/boot/dts/armada-xp-mv78460.dtsi +index 36ce63a96cc9..d41fe88ffea4 100644 +--- a/arch/arm/boot/dts/armada-xp-mv78460.dtsi b/arch/arm/boot/dts/armada-xp-mv78460.dtsi +@@ -357,7 +357,7 @@ + }; + + eth3: ethernet@34000 { +- compatible = marvell,armada-370-neta; ++ compatible = marvell,armada-xp-neta; + reg = 0x34000 0x4000; + interrupts = 14; + clocks = gateclk 1; +diff --git a/arch/arm/boot/dts/armada-xp.dtsi b/arch/arm/boot/dts/armada-xp.dtsi +index 82917236a2fb..9ce7d5fd8a34 100644 +---
[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: ac1cc90498ebd52ec27442424e08ace5bef33921 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Thu Jul 2 12:28:45 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Thu Jul 2 12:28:45 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=ac1cc904 Version bump for BFQ Schedular patchset. _README| 12 +- ...roups-kconfig-build-bits-for-BFQ-v7r8-4.0.patch | 6 +- ...introduce-the-BFQ-v7r8-I-O-sched-for-4.0.patch1 | 198 ++--- ...rly-Queue-Merge-EQM-to-BFQ-v7r8-for-4.0.0.patch | 96 +- 4 files changed, 148 insertions(+), 164 deletions(-) diff --git a/_README b/_README index 077a9de..32ebe25 100644 --- a/_README +++ b/_README @@ -111,17 +111,17 @@ Patch: 5000_enable-additional-cpu-optimizations-for-gcc.patch From: https://github.com/graysky2/kernel_gcc_patch/ Desc: Kernel patch enables gcc v4.9 optimizations for additional CPUs. -Patch: 5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r7-4.0.patch +Patch: 5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r8-4.0.patch From: http://algo.ing.unimo.it/people/paolo/disk_sched/ -Desc: BFQ v7r7 patch 1 for 4.0: Build, cgroups and kconfig bits +Desc: BFQ v7r8 patch 1 for 4.0: Build, cgroups and kconfig bits -Patch: 5002_block-introduce-the-BFQ-v7r7-I-O-sched-for-4.0.patch1 +Patch: 5002_block-introduce-the-BFQ-v7r8-I-O-sched-for-4.0.patch1 From: http://algo.ing.unimo.it/people/paolo/disk_sched/ -Desc: BFQ v7r7 patch 2 for 4.0: BFQ Scheduler +Desc: BFQ v7r8 patch 2 for 4.0: BFQ Scheduler -Patch: 5003_block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-v7r7-for-4.0.0.patch +Patch: 5003_block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-v7r8-for-4.0.0.patch From: http://algo.ing.unimo.it/people/paolo/disk_sched/ -Desc: BFQ v7r7 patch 3 for 4.0: Early Queue Merge (EQM) +Desc: BFQ v7r8 patch 3 for 4.0: Early Queue Merge (EQM) Patch: 5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch From: https://github.com/graysky2/kernel_gcc_patch/ diff --git a/5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r7-4.0.patch b/5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r8-4.0.patch similarity index 97% rename from 5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r7-4.0.patch rename to 5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r8-4.0.patch index 468d157..d0eebb8 100644 --- a/5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r7-4.0.patch +++ b/5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r8-4.0.patch @@ -1,7 +1,7 @@ -From 63e26848e2df36a3c29d2d38ce8b008539d64a5d Mon Sep 17 00:00:00 2001 +From 3da922f94aa64cb77ef8942a0bcb5ffbc29ff3ff Mon Sep 17 00:00:00 2001 From: Paolo Valente paolo.vale...@unimore.it Date: Tue, 7 Apr 2015 13:39:12 +0200 -Subject: [PATCH 1/3] block: cgroups, kconfig, build bits for BFQ-v7r7-4.0 +Subject: [PATCH 1/3] block: cgroups, kconfig, build bits for BFQ-v7r8-4.0 Update Kconfig.iosched and do the related Makefile changes to include kernel configuration options for BFQ. Also add the bfqio controller @@ -100,5 +100,5 @@ index e4a96fb..267d681 100644 SUBSYS(perf_event) #endif -- -2.1.0 +2.1.4 diff --git a/5002_block-introduce-the-BFQ-v7r7-I-O-sched-for-4.0.patch1 b/5002_block-introduce-the-BFQ-v7r8-I-O-sched-for-4.0.patch1 similarity index 98% rename from 5002_block-introduce-the-BFQ-v7r7-I-O-sched-for-4.0.patch1 rename to 5002_block-introduce-the-BFQ-v7r8-I-O-sched-for-4.0.patch1 index a6cfc58..f3c91ed 100644 --- a/5002_block-introduce-the-BFQ-v7r7-I-O-sched-for-4.0.patch1 +++ b/5002_block-introduce-the-BFQ-v7r8-I-O-sched-for-4.0.patch1 @@ -1,9 +1,9 @@ -From 8cdf2dae6ee87049c7bb086d34e2ce981b545813 Mon Sep 17 00:00:00 2001 +From 2a8eeb849e2fecc7d9d3c8317d43904aab585eab Mon Sep 17 00:00:00 2001 From: Paolo Valente paolo.vale...@unimore.it Date: Thu, 9 May 2013 19:10:02 +0200 -Subject: [PATCH 2/3] block: introduce the BFQ-v7r7 I/O sched for 4.0 +Subject: [PATCH 2/3] block: introduce the BFQ-v7r8 I/O sched for 4.0 -Add the BFQ-v7r7 I/O scheduler to 4.0. +Add the BFQ-v7r8 I/O scheduler to 4.0. The general structure is borrowed from CFQ, as much of the code for handling I/O contexts. Over time, several useful features have been ported from CFQ as well (details in the changelog in README.BFQ). A @@ -56,12 +56,12 @@ until it expires. Signed-off-by: Paolo Valente paolo.vale...@unimore.it Signed-off-by: Arianna Avanzini avanzini.aria...@gmail.com --- - block/bfq-cgroup.c | 936 + block/bfq-cgroup.c | 936 + block/bfq-ioc.c | 36 + - block/bfq-iosched.c | 3902 +++ - block/bfq-sched.c | 1214 - block/bfq.h | 775 ++ - 5 files changed, 6863 insertions(+) + block/bfq-iosched.c | 3898 +++ + block/bfq-sched.c | 1208 + block/bfq.h | 771 ++ + 5 files changed,
[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: ff006a9d7ad689c96ec4a56f89cab306dc08a6c2 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Tue Jun 30 14:58:28 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Tue Jun 30 14:58:28 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=ff006a9d Linux patch 4.0.7 _README| 4 + 1006_linux-4.0.7.patch | 707 + 2 files changed, 711 insertions(+) diff --git a/_README b/_README index 8761846..077a9de 100644 --- a/_README +++ b/_README @@ -67,6 +67,10 @@ Patch: 1005_linux-4.0.6.patch From: http://www.kernel.org Desc: Linux 4.0.6 +Patch: 1006_linux-4.0.7.patch +From: http://www.kernel.org +Desc: Linux 4.0.7 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1006_linux-4.0.7.patch b/1006_linux-4.0.7.patch new file mode 100644 index 000..ba486f4 --- /dev/null +++ b/1006_linux-4.0.7.patch @@ -0,0 +1,707 @@ +diff --git a/Makefile b/Makefile +index af6da040b952..bd76a8e94395 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 4 + PATCHLEVEL = 0 +-SUBLEVEL = 6 ++SUBLEVEL = 7 + EXTRAVERSION = + NAME = Hurr durr I'ma sheep + +diff --git a/arch/arm/mach-exynos/common.h b/arch/arm/mach-exynos/common.h +index f70eca7ee705..0ef8d4b47102 100644 +--- a/arch/arm/mach-exynos/common.h b/arch/arm/mach-exynos/common.h +@@ -153,6 +153,8 @@ extern void exynos_enter_aftr(void); + + extern struct cpuidle_exynos_data cpuidle_coupled_exynos_data; + ++extern void exynos_set_delayed_reset_assertion(bool enable); ++ + extern void s5p_init_cpu(void __iomem *cpuid_addr); + extern unsigned int samsung_rev(void); + extern void __iomem *cpu_boot_reg_base(void); +diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c +index 9e9dfdfad9d7..1081ff1f03c6 100644 +--- a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c +@@ -166,6 +166,33 @@ static void __init exynos_init_io(void) + exynos_map_io(); + } + ++/* ++ * Set or clear the USE_DELAYED_RESET_ASSERTION option. Used by smp code ++ * and suspend. ++ * ++ * This is necessary only on Exynos4 SoCs. When system is running ++ * USE_DELAYED_RESET_ASSERTION should be set so the ARM CLK clock down ++ * feature could properly detect global idle state when secondary CPU is ++ * powered down. ++ * ++ * However this should not be set when such system is going into suspend. ++ */ ++void exynos_set_delayed_reset_assertion(bool enable) ++{ ++ if (soc_is_exynos4()) { ++ unsigned int tmp, core_id; ++ ++ for (core_id = 0; core_id num_possible_cpus(); core_id++) { ++ tmp = pmu_raw_readl(EXYNOS_ARM_CORE_OPTION(core_id)); ++ if (enable) ++ tmp |= S5P_USE_DELAYED_RESET_ASSERTION; ++ else ++ tmp = ~(S5P_USE_DELAYED_RESET_ASSERTION); ++ pmu_raw_writel(tmp, EXYNOS_ARM_CORE_OPTION(core_id)); ++ } ++ } ++} ++ + static const struct of_device_id exynos_dt_pmu_match[] = { + { .compatible = samsung,exynos3250-pmu }, + { .compatible = samsung,exynos4210-pmu }, +diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c +index d2e9f12d12f1..d45e8cd23925 100644 +--- a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c +@@ -34,30 +34,6 @@ + + extern void exynos4_secondary_startup(void); + +-/* +- * Set or clear the USE_DELAYED_RESET_ASSERTION option, set on Exynos4 SoCs +- * during hot-(un)plugging CPUx. +- * +- * The feature can be cleared safely during first boot of secondary CPU. +- * +- * Exynos4 SoCs require setting USE_DELAYED_RESET_ASSERTION during powering +- * down a CPU so the CPU idle clock down feature could properly detect global +- * idle state when CPUx is off. +- */ +-static void exynos_set_delayed_reset_assertion(u32 core_id, bool enable) +-{ +- if (soc_is_exynos4()) { +- unsigned int tmp; +- +- tmp = pmu_raw_readl(EXYNOS_ARM_CORE_OPTION(core_id)); +- if (enable) +- tmp |= S5P_USE_DELAYED_RESET_ASSERTION; +- else +- tmp = ~(S5P_USE_DELAYED_RESET_ASSERTION); +- pmu_raw_writel(tmp, EXYNOS_ARM_CORE_OPTION(core_id)); +- } +-} +- + #ifdef CONFIG_HOTPLUG_CPU + static inline void cpu_leave_lowpower(u32 core_id) + { +@@ -73,8 +49,6 @@ static inline void cpu_leave_lowpower(u32 core_id) + : =r (v) + : Ir (CR_C), Ir (0x40) + : cc); +- +- exynos_set_delayed_reset_assertion(core_id, false); + } + + static inline void platform_do_lowpower(unsigned int cpu, int *spurious) +@@ -87,14 +61,6 @@ static inline void platform_do_lowpower(unsigned int cpu, int *spurious) + /* Turn the CPU
[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: bac443972d6de3c565d4d103ca34dda24d258876 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Tue Jun 23 13:52:30 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Tue Jun 23 13:52:30 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=bac44397 Linux patch 4.0.6 _README|4 + 1005_linux-4.0.6.patch | 3730 2 files changed, 3734 insertions(+) diff --git a/_README b/_README index 0f63559..8761846 100644 --- a/_README +++ b/_README @@ -63,6 +63,10 @@ Patch: 1004_linux-4.0.5.patch From: http://www.kernel.org Desc: Linux 4.0.5 +Patch: 1005_linux-4.0.6.patch +From: http://www.kernel.org +Desc: Linux 4.0.6 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1005_linux-4.0.6.patch b/1005_linux-4.0.6.patch new file mode 100644 index 000..15519e7 --- /dev/null +++ b/1005_linux-4.0.6.patch @@ -0,0 +1,3730 @@ +diff --git a/Makefile b/Makefile +index 1880cf77059b..af6da040b952 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 4 + PATCHLEVEL = 0 +-SUBLEVEL = 5 ++SUBLEVEL = 6 + EXTRAVERSION = + NAME = Hurr durr I'ma sheep + +diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi +index c3255e0c90aa..dbb3f4d2bf84 100644 +--- a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi +@@ -223,6 +223,25 @@ + /include/ tps65217.dtsi + + tps { ++ /* ++ * Configure pmic to enter OFF-state instead of SLEEP-state (RTC-only ++ * mode) at poweroff. Most BeagleBone versions do not support RTC-only ++ * mode and risk hardware damage if this mode is entered. ++ * ++ * For details, see linux-omap mailing list May 2015 thread ++ * [PATCH] ARM: dts: am335x-bone* enable pmic-shutdown-controller ++ * In particular, messages: ++ * http://www.spinics.net/lists/linux-omap/msg118585.html ++ * http://www.spinics.net/lists/linux-omap/msg118615.html ++ * ++ * You can override this later with ++ * tps { /delete-property/ ti,pmic-shutdown-controller; } ++ * if you want to use RTC-only mode and made sure you are not affected ++ * by the hardware problems. (Tip: double-check by performing a current ++ * measurement after shutdown: it should be less than 1 mA.) ++ */ ++ ti,pmic-shutdown-controller; ++ + regulators { + dcdc1_reg: regulator@0 { + regulator-name = vdds_dpr; +diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts +index 43d54017b779..d0ab012fa379 100644 +--- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts +@@ -16,7 +16,8 @@ + #include mt8173.dtsi + + / { +- model = mediatek,mt8173-evb; ++ model = MediaTek MT8173 evaluation board; ++ compatible = mediatek,mt8173-evb, mediatek,mt8173; + + aliases { + serial0 = uart0; +diff --git a/arch/mips/kernel/irq.c b/arch/mips/kernel/irq.c +index d2bfbc2e8995..be15e52a47a0 100644 +--- a/arch/mips/kernel/irq.c b/arch/mips/kernel/irq.c +@@ -109,7 +109,7 @@ void __init init_IRQ(void) + #endif + } + +-#ifdef DEBUG_STACKOVERFLOW ++#ifdef CONFIG_DEBUG_STACKOVERFLOW + static inline void check_stack_overflow(void) + { + unsigned long sp; +diff --git a/arch/mips/kvm/emulate.c b/arch/mips/kvm/emulate.c +index 838d3a6a5b7d..cea02968a908 100644 +--- a/arch/mips/kvm/emulate.c b/arch/mips/kvm/emulate.c +@@ -2101,7 +2101,7 @@ enum emulation_result kvm_mips_complete_mmio_load(struct kvm_vcpu *vcpu, + if (vcpu-mmio_needed == 2) + *gpr = *(int16_t *) run-mmio.data; + else +- *gpr = *(int16_t *) run-mmio.data; ++ *gpr = *(uint16_t *)run-mmio.data; + + break; + case 1: +diff --git a/arch/mips/ralink/ill_acc.c b/arch/mips/ralink/ill_acc.c +index e20b02e3ae28..e10d10b9e82a 100644 +--- a/arch/mips/ralink/ill_acc.c b/arch/mips/ralink/ill_acc.c +@@ -41,7 +41,7 @@ static irqreturn_t ill_acc_irq_handler(int irq, void *_priv) + addr, (type ILL_ACC_OFF_S) ILL_ACC_OFF_M, + type ILL_ACC_LEN_M); + +- rt_memc_w32(REG_ILL_ACC_TYPE, REG_ILL_ACC_TYPE); ++ rt_memc_w32(ILL_INT_STATUS, REG_ILL_ACC_TYPE); + + return IRQ_HANDLED; + } +diff --git a/arch/x86/include/asm/segment.h b/arch/x86/include/asm/segment.h +index db257a58571f..e657b7ba3292 100644 +--- a/arch/x86/include/asm/segment.h b/arch/x86/include/asm/segment.h +@@ -200,10 +200,21 @@ + #define TLS_SIZE (GDT_ENTRY_TLS_ENTRIES * 8) + + #ifdef __KERNEL__ ++ ++/* ++ * early_idt_handler_array is an array of entry
[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: 458b5d172d76e3876d6947ae949e06e000856922 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Tue Jun 23 16:32:28 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Tue Jun 23 16:37:47 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=458b5d17 Linux patch 4.0.6 _README|4 + 1005_linux-4.0.6.patch | 3730 2 files changed, 3734 insertions(+) diff --git a/_README b/_README index 0f63559..8761846 100644 --- a/_README +++ b/_README @@ -63,6 +63,10 @@ Patch: 1004_linux-4.0.5.patch From: http://www.kernel.org Desc: Linux 4.0.5 +Patch: 1005_linux-4.0.6.patch +From: http://www.kernel.org +Desc: Linux 4.0.6 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1005_linux-4.0.6.patch b/1005_linux-4.0.6.patch new file mode 100644 index 000..15519e7 --- /dev/null +++ b/1005_linux-4.0.6.patch @@ -0,0 +1,3730 @@ +diff --git a/Makefile b/Makefile +index 1880cf77059b..af6da040b952 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 4 + PATCHLEVEL = 0 +-SUBLEVEL = 5 ++SUBLEVEL = 6 + EXTRAVERSION = + NAME = Hurr durr I'ma sheep + +diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi +index c3255e0c90aa..dbb3f4d2bf84 100644 +--- a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi +@@ -223,6 +223,25 @@ + /include/ tps65217.dtsi + + tps { ++ /* ++ * Configure pmic to enter OFF-state instead of SLEEP-state (RTC-only ++ * mode) at poweroff. Most BeagleBone versions do not support RTC-only ++ * mode and risk hardware damage if this mode is entered. ++ * ++ * For details, see linux-omap mailing list May 2015 thread ++ * [PATCH] ARM: dts: am335x-bone* enable pmic-shutdown-controller ++ * In particular, messages: ++ * http://www.spinics.net/lists/linux-omap/msg118585.html ++ * http://www.spinics.net/lists/linux-omap/msg118615.html ++ * ++ * You can override this later with ++ * tps { /delete-property/ ti,pmic-shutdown-controller; } ++ * if you want to use RTC-only mode and made sure you are not affected ++ * by the hardware problems. (Tip: double-check by performing a current ++ * measurement after shutdown: it should be less than 1 mA.) ++ */ ++ ti,pmic-shutdown-controller; ++ + regulators { + dcdc1_reg: regulator@0 { + regulator-name = vdds_dpr; +diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts +index 43d54017b779..d0ab012fa379 100644 +--- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts +@@ -16,7 +16,8 @@ + #include mt8173.dtsi + + / { +- model = mediatek,mt8173-evb; ++ model = MediaTek MT8173 evaluation board; ++ compatible = mediatek,mt8173-evb, mediatek,mt8173; + + aliases { + serial0 = uart0; +diff --git a/arch/mips/kernel/irq.c b/arch/mips/kernel/irq.c +index d2bfbc2e8995..be15e52a47a0 100644 +--- a/arch/mips/kernel/irq.c b/arch/mips/kernel/irq.c +@@ -109,7 +109,7 @@ void __init init_IRQ(void) + #endif + } + +-#ifdef DEBUG_STACKOVERFLOW ++#ifdef CONFIG_DEBUG_STACKOVERFLOW + static inline void check_stack_overflow(void) + { + unsigned long sp; +diff --git a/arch/mips/kvm/emulate.c b/arch/mips/kvm/emulate.c +index 838d3a6a5b7d..cea02968a908 100644 +--- a/arch/mips/kvm/emulate.c b/arch/mips/kvm/emulate.c +@@ -2101,7 +2101,7 @@ enum emulation_result kvm_mips_complete_mmio_load(struct kvm_vcpu *vcpu, + if (vcpu-mmio_needed == 2) + *gpr = *(int16_t *) run-mmio.data; + else +- *gpr = *(int16_t *) run-mmio.data; ++ *gpr = *(uint16_t *)run-mmio.data; + + break; + case 1: +diff --git a/arch/mips/ralink/ill_acc.c b/arch/mips/ralink/ill_acc.c +index e20b02e3ae28..e10d10b9e82a 100644 +--- a/arch/mips/ralink/ill_acc.c b/arch/mips/ralink/ill_acc.c +@@ -41,7 +41,7 @@ static irqreturn_t ill_acc_irq_handler(int irq, void *_priv) + addr, (type ILL_ACC_OFF_S) ILL_ACC_OFF_M, + type ILL_ACC_LEN_M); + +- rt_memc_w32(REG_ILL_ACC_TYPE, REG_ILL_ACC_TYPE); ++ rt_memc_w32(ILL_INT_STATUS, REG_ILL_ACC_TYPE); + + return IRQ_HANDLED; + } +diff --git a/arch/x86/include/asm/segment.h b/arch/x86/include/asm/segment.h +index db257a58571f..e657b7ba3292 100644 +--- a/arch/x86/include/asm/segment.h b/arch/x86/include/asm/segment.h +@@ -200,10 +200,21 @@ + #define TLS_SIZE (GDT_ENTRY_TLS_ENTRIES * 8) + + #ifdef __KERNEL__ ++ ++/* ++ * early_idt_handler_array is an array of entry
[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: 9a98f7941dcc85687150d8fef5885931cc6f841a Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Sat Jun 20 17:35:59 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Sat Jun 20 17:35:59 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9a98f794 Add check to saved_root_name for supported filesystem path naming. 2900_dev-root-proc-mount-fix.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2900_dev-root-proc-mount-fix.patch b/2900_dev-root-proc-mount-fix.patch index 6ea86e2..4cd558e 100644 --- a/2900_dev-root-proc-mount-fix.patch +++ b/2900_dev-root-proc-mount-fix.patch @@ -18,7 +18,7 @@ #ifdef CONFIG_BLOCK - create_dev(/dev/root, ROOT_DEV); - mount_block_root(/dev/root, root_mountflags); -+ if (saved_root_name[0]) { ++ if (saved_root_name[0] == '/') { + create_dev(saved_root_name, ROOT_DEV); + mount_block_root(saved_root_name, root_mountflags); + } else {
[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: 58e7c3a053a0e6b0a9836db809f579db10b9f883 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Sun May 17 15:54:56 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Sun May 17 15:54:56 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=58e7c3a0 Linux patch 4.0.4 _README|4 + 1003_linux-4.0.4.patch | 2713 2 files changed, 2717 insertions(+) diff --git a/_README b/_README index b11f028..3bcb0f8 100644 --- a/_README +++ b/_README @@ -55,6 +55,10 @@ Patch: 1002_linux-4.0.3.patch From: http://www.kernel.org Desc: Linux 4.0.3 +Patch: 1003_linux-4.0.4.patch +From: http://www.kernel.org +Desc: Linux 4.0.4 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1003_linux-4.0.4.patch b/1003_linux-4.0.4.patch new file mode 100644 index 000..e5c793a --- /dev/null +++ b/1003_linux-4.0.4.patch @@ -0,0 +1,2713 @@ +diff --git a/Documentation/devicetree/bindings/dma/fsl-mxs-dma.txt b/Documentation/devicetree/bindings/dma/fsl-mxs-dma.txt +index a4873e5e3e36..e30e184f50c7 100644 +--- a/Documentation/devicetree/bindings/dma/fsl-mxs-dma.txt b/Documentation/devicetree/bindings/dma/fsl-mxs-dma.txt +@@ -38,7 +38,7 @@ dma_apbx: dma-apbx@80024000 { + 80 81 68 69 + 70 71 72 73 + 74 75 76 77; +- interrupt-names = auart4-rx, aurat4-tx, spdif-tx, empty, ++ interrupt-names = auart4-rx, auart4-tx, spdif-tx, empty, + saif0, saif1, i2c0, i2c1, + auart0-rx, auart0-tx, auart1-rx, auart1-tx, + auart2-rx, auart2-tx, auart3-rx, auart3-tx; +diff --git a/Makefile b/Makefile +index dc9f43a019d6..3d16bcc87585 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 4 + PATCHLEVEL = 0 +-SUBLEVEL = 3 ++SUBLEVEL = 4 + EXTRAVERSION = + NAME = Hurr durr I'ma sheep + +diff --git a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts +index 0c76d9f05fd0..f4838ebd918b 100644 +--- a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts +@@ -105,6 +105,10 @@ + }; + + internal-regs { ++ rtc@10300 { ++ /* No crystal connected to the internal RTC */ ++ status = disabled; ++ }; + serial@12000 { + status = okay; + }; +diff --git a/arch/arm/boot/dts/imx23-olinuxino.dts b/arch/arm/boot/dts/imx23-olinuxino.dts +index 7e6eef2488e8..82045398bf1f 100644 +--- a/arch/arm/boot/dts/imx23-olinuxino.dts b/arch/arm/boot/dts/imx23-olinuxino.dts +@@ -12,6 +12,7 @@ + */ + + /dts-v1/; ++#include dt-bindings/gpio/gpio.h + #include imx23.dtsi + + / { +@@ -93,6 +94,7 @@ + + ahb@8008 { + usb0: usb@8008 { ++ dr_mode = host; + vbus-supply = reg_usb0_vbus; + status = okay; + }; +@@ -122,7 +124,7 @@ + + user { + label = green; +- gpios = gpio2 1 1; ++ gpios = gpio2 1 GPIO_ACTIVE_HIGH; + }; + }; + }; +diff --git a/arch/arm/boot/dts/imx25.dtsi b/arch/arm/boot/dts/imx25.dtsi +index e4d3aecc4ed2..677f81d9dcd5 100644 +--- a/arch/arm/boot/dts/imx25.dtsi b/arch/arm/boot/dts/imx25.dtsi +@@ -428,6 +428,7 @@ + + pwm4: pwm@53fc8000 { + compatible = fsl,imx25-pwm, fsl,imx27-pwm; ++ #pwm-cells = 2; + reg = 0x53fc8000 0x4000; + clocks = clks 108, clks 52; + clock-names = ipg, per; +diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi +index 47f68ac868d4..5ed245a3f9ac 100644 +--- a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi +@@ -900,7 +900,7 @@ + 80 81 68 69 + 70 71 72 73 + 74 75 76 77; +- interrupt-names = auart4-rx, aurat4-tx, spdif-tx, empty, ++ interrupt-names = auart4-rx, auart4-tx, spdif-tx, empty, + saif0, saif1, i2c0, i2c1, + auart0-rx, auart0-tx, auart1-rx, auart1-tx, + auart2-rx, auart2-tx, auart3-rx, auart3-tx; +diff --git a/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi
[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: 3c00c4432f861528e758a67ed7421c676afdbe8e Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Thu May 14 12:22:54 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Thu May 14 12:22:54 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3c00c443 Linux patch 4.0.3 _README|4 + 1002_linux-4.0.3.patch | 2827 2 files changed, 2831 insertions(+) diff --git a/_README b/_README index 4fdafa3..b11f028 100644 --- a/_README +++ b/_README @@ -51,6 +51,10 @@ Patch: 1001_linux-4.0.2.patch From: http://www.kernel.org Desc: Linux 4.0.2 +Patch: 1002_linux-4.0.3.patch +From: http://www.kernel.org +Desc: Linux 4.0.3 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1002_linux-4.0.3.patch b/1002_linux-4.0.3.patch new file mode 100644 index 000..d137bf2 --- /dev/null +++ b/1002_linux-4.0.3.patch @@ -0,0 +1,2827 @@ +diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt +index bfcb1a62a7b4..4d68ec841304 100644 +--- a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt +@@ -3746,6 +3746,8 @@ bytes respectively. Such letter suffixes can also be entirely omitted. + READ_CAPACITY_16 command); + f = NO_REPORT_OPCODES (don't use report opcodes + command, uas only); ++ g = MAX_SECTORS_240 (don't transfer more than ++ 240 sectors at a time, uas only); + h = CAPACITY_HEURISTICS (decrease the + reported device capacity by one + sector if the number is odd); +diff --git a/Makefile b/Makefile +index 0649a6011a76..dc9f43a019d6 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 4 + PATCHLEVEL = 0 +-SUBLEVEL = 2 ++SUBLEVEL = 3 + EXTRAVERSION = + NAME = Hurr durr I'ma sheep + +diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c +index ef7d112f5ce0..b0bd4e5fd5cf 100644 +--- a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c +@@ -67,8 +67,7 @@ static void *__alloc_from_pool(size_t size, struct page **ret_page, gfp_t flags) + + *ret_page = phys_to_page(phys); + ptr = (void *)val; +- if (flags __GFP_ZERO) +- memset(ptr, 0, size); ++ memset(ptr, 0, size); + } + + return ptr; +@@ -105,7 +104,6 @@ static void *__dma_alloc_coherent(struct device *dev, size_t size, + struct page *page; + void *addr; + +- size = PAGE_ALIGN(size); + page = dma_alloc_from_contiguous(dev, size PAGE_SHIFT, + get_order(size)); + if (!page) +@@ -113,8 +111,7 @@ static void *__dma_alloc_coherent(struct device *dev, size_t size, + + *dma_handle = phys_to_dma(dev, page_to_phys(page)); + addr = page_address(page); +- if (flags __GFP_ZERO) +- memset(addr, 0, size); ++ memset(addr, 0, size); + return addr; + } else { + return swiotlb_alloc_coherent(dev, size, dma_handle, flags); +@@ -195,6 +192,8 @@ static void __dma_free(struct device *dev, size_t size, + { + void *swiotlb_addr = phys_to_virt(dma_to_phys(dev, dma_handle)); + ++ size = PAGE_ALIGN(size); ++ + if (!is_device_dma_coherent(dev)) { + if (__free_from_pool(vaddr, size)) + return; +diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig +index c7a16904cd03..1a313c468d65 100644 +--- a/arch/mips/Kconfig b/arch/mips/Kconfig +@@ -2072,7 +2072,7 @@ config MIPSR2_TO_R6_EMULATOR + help + Choose this option if you want to run non-R6 MIPS userland code. + Even if you say 'Y' here, the emulator will still be disabled by +-default. You can enable it using the 'mipsr2emul' kernel option. ++default. You can enable it using the 'mipsr2emu' kernel option. + The only reason this is a build-time option is to save ~14K from the + final kernel image. + comment MIPS R2-to-R6 emulator is only available for UP kernels +@@ -2142,7 +2142,7 @@ config MIPS_CMP + + config MIPS_CPS + bool MIPS Coherent Processing System support +- depends on SYS_SUPPORTS_MIPS_CPS ++ depends on SYS_SUPPORTS_MIPS_CPS !64BIT + select MIPS_CM + select MIPS_CPC + select MIPS_CPS_PM if HOTPLUG_CPU +diff --git a/arch/mips/Makefile b/arch/mips/Makefile +index 8f57fc72d62c..1b4dab1e6ab8 100644 +--- a/arch/mips/Makefile
[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: a7f93abca481c4afc0d6e0c515d41f2c4aef9e41 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Sun May 3 19:54:53 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Sun May 3 19:54:53 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a7f93abc Fix for lz4 compression. Thanks to Christian Xia. See bug #546422. _README| 4 2910_lz4-compression-fix.patch | 30 ++ 2 files changed, 34 insertions(+) diff --git a/_README b/_README index bcce967..f51d299 100644 --- a/_README +++ b/_README @@ -71,6 +71,10 @@ Patch: 2905_s2disk-resume-image-fix.patch From: Al Viro viro at ZenIV.linux.org.uk Desc: Do not lock when UMH is waiting on current thread spawned by linuxrc. (bug #481344) +Patch: 2910_lz4-compression-fix.patch +From: https://bugs.gentoo.org/show_bug.cgi?id=546422 +Desc: Fix for lz4 compression regression. Thanks to Christian Xia. See bug #546422. + Patch: 4200_fbcondecor-3.19.patch From: http://www.mepiscommunity.org/fbcondecor Desc: Bootsplash ported by Marco. (Bug #539616) diff --git a/2910_lz4-compression-fix.patch b/2910_lz4-compression-fix.patch new file mode 100644 index 000..1c55f32 --- /dev/null +++ b/2910_lz4-compression-fix.patch @@ -0,0 +1,30 @@ +--- a/lib/lz4/lz4_decompress.c 2015-04-13 16:20:04.896315560 +0800 b/lib/lz4/lz4_decompress.c 2015-04-13 16:27:08.929317053 +0800 +@@ -139,8 +139,12 @@ + /* Error: request to write beyond destination buffer */ + if (cpy oend) + goto _output_error; ++#if LZ4_ARCH64 ++ if ((ref + COPYLENGTH) oend) ++#else + if ((ref + COPYLENGTH) oend || + (op + COPYLENGTH) oend) ++#endif + goto _output_error; + LZ4_SECURECOPY(ref, op, (oend - COPYLENGTH)); + while (op cpy) +@@ -270,7 +274,13 @@ + if (cpy oend - COPYLENGTH) { + if (cpy oend) + goto _output_error; /* write outside of buf */ +- ++#if LZ4_ARCH64 ++ if ((ref + COPYLENGTH) oend) ++#else ++ if ((ref + COPYLENGTH) oend || ++ (op + COPYLENGTH) oend) ++#endif ++ goto _output_error; + LZ4_SECURECOPY(ref, op, (oend - COPYLENGTH)); + while (op cpy) + *op++ = *ref++;
[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: b5c2b5b2947190cece9bf6218aa9dca795670288 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Wed Apr 29 13:35:22 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Wed Apr 29 13:35:22 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b5c2b5b2 Linux patch 4.0.1 _README| 4 + 1000_linux-4.0.1.patch | 479 + 2 files changed, 483 insertions(+) diff --git a/_README b/_README index 0cdee6d..483ca42 100644 --- a/_README +++ b/_README @@ -43,6 +43,10 @@ EXPERIMENTAL Individual Patch Descriptions: -- +Patch: 1000_linux-4.0.1.patch +From: http://www.kernel.org +Desc: Linux 4.0.1 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1000_linux-4.0.1.patch b/1000_linux-4.0.1.patch new file mode 100644 index 000..ac58552 --- /dev/null +++ b/1000_linux-4.0.1.patch @@ -0,0 +1,479 @@ +diff --git a/Makefile b/Makefile +index fbd43bfe4445..f499cd2f5738 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 4 + PATCHLEVEL = 0 +-SUBLEVEL = 0 ++SUBLEVEL = 1 + EXTRAVERSION = + NAME = Hurr durr I'ma sheep + +diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +index 4085c4b31047..355d5fea5be9 100644 +--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +@@ -531,20 +531,8 @@ struct bnx2x_fastpath { + struct napi_struct napi; + + #ifdef CONFIG_NET_RX_BUSY_POLL +- unsigned int state; +-#define BNX2X_FP_STATE_IDLE 0 +-#define BNX2X_FP_STATE_NAPI (1 0)/* NAPI owns this FP */ +-#define BNX2X_FP_STATE_POLL (1 1)/* poll owns this FP */ +-#define BNX2X_FP_STATE_DISABLED (1 2) +-#define BNX2X_FP_STATE_NAPI_YIELD (1 3)/* NAPI yielded this FP */ +-#define BNX2X_FP_STATE_POLL_YIELD (1 4)/* poll yielded this FP */ +-#define BNX2X_FP_OWNED(BNX2X_FP_STATE_NAPI | BNX2X_FP_STATE_POLL) +-#define BNX2X_FP_YIELD(BNX2X_FP_STATE_NAPI_YIELD | BNX2X_FP_STATE_POLL_YIELD) +-#define BNX2X_FP_LOCKED (BNX2X_FP_OWNED | BNX2X_FP_STATE_DISABLED) +-#define BNX2X_FP_USER_PEND (BNX2X_FP_STATE_POLL | BNX2X_FP_STATE_POLL_YIELD) +- /* protect state */ +- spinlock_t lock; +-#endif /* CONFIG_NET_RX_BUSY_POLL */ ++ unsigned long busy_poll_state; ++#endif + + union host_hc_status_block status_blk; + /* chip independent shortcuts into sb structure */ +@@ -619,104 +607,83 @@ struct bnx2x_fastpath { + #define bnx2x_fp_qstats(bp, fp) (((bp)-fp_stats[(fp)-index].eth_q_stats)) + + #ifdef CONFIG_NET_RX_BUSY_POLL +-static inline void bnx2x_fp_init_lock(struct bnx2x_fastpath *fp) ++ ++enum bnx2x_fp_state { ++ BNX2X_STATE_FP_NAPI = BIT(0), /* NAPI handler owns the queue */ ++ ++ BNX2X_STATE_FP_NAPI_REQ_BIT = 1, /* NAPI would like to own the queue */ ++ BNX2X_STATE_FP_NAPI_REQ = BIT(1), ++ ++ BNX2X_STATE_FP_POLL_BIT = 2, ++ BNX2X_STATE_FP_POLL = BIT(2), /* busy_poll owns the queue */ ++ ++ BNX2X_STATE_FP_DISABLE_BIT = 3, /* queue is dismantled */ ++}; ++ ++static inline void bnx2x_fp_busy_poll_init(struct bnx2x_fastpath *fp) + { +- spin_lock_init(fp-lock); +- fp-state = BNX2X_FP_STATE_IDLE; ++ WRITE_ONCE(fp-busy_poll_state, 0); + } + + /* called from the device poll routine to get ownership of a FP */ + static inline bool bnx2x_fp_lock_napi(struct bnx2x_fastpath *fp) + { +- bool rc = true; +- +- spin_lock_bh(fp-lock); +- if (fp-state BNX2X_FP_LOCKED) { +- WARN_ON(fp-state BNX2X_FP_STATE_NAPI); +- fp-state |= BNX2X_FP_STATE_NAPI_YIELD; +- rc = false; +- } else { +- /* we don't care if someone yielded */ +- fp-state = BNX2X_FP_STATE_NAPI; ++ unsigned long prev, old = READ_ONCE(fp-busy_poll_state); ++ ++ while (1) { ++ switch (old) { ++ case BNX2X_STATE_FP_POLL: ++ /* make sure bnx2x_fp_lock_poll() wont starve us */ ++ set_bit(BNX2X_STATE_FP_NAPI_REQ_BIT, ++ fp-busy_poll_state); ++ /* fallthrough */ ++ case BNX2X_STATE_FP_POLL | BNX2X_STATE_FP_NAPI_REQ: ++ return false; ++ default: ++ break; ++ } ++ prev = cmpxchg(fp-busy_poll_state, old, BNX2X_STATE_FP_NAPI); ++ if (unlikely(prev != old)) { ++ old = prev; ++ continue; ++ } ++ return true; + } +- spin_unlock_bh(fp-lock); +- return rc; + } + +-/* returns
[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: f2dffc7244ec86ad41fde2ee164a4082c974ade5 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Mon Apr 27 17:56:11 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Mon Apr 27 17:56:11 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=f2dffc72 Patch to select REGMAP_IRQ for rt5033 mfd driver. See bug #546938. _README | 6 +- 2600_select-REGMAP_IRQ-for-rt5033.patch | 30 ++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/_README b/_README index ca06e06..0cdee6d 100644 --- a/_README +++ b/_README @@ -49,7 +49,11 @@ Desc: Support for namespace user.pax.* on tmpfs. Patch: 1510_fs-enable-link-security-restrictions-by-default.patch From: http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/ -Desc: Enable link security restrictions by default +Desc: Enable link security restrictions by default. + +Patch: 2600_select-REGMAP_IRQ-for-rt5033.patch +From: http://git.kernel.org/ +Desc: mfd: rt5033: MFD_RT5033 needs to select REGMAP_IRQ. See bug #546938. Patch: 2700_ThinkPad-30-brightness-control-fix.patch From: Seth Forshee seth.fors...@canonical.com diff --git a/2600_select-REGMAP_IRQ-for-rt5033.patch b/2600_select-REGMAP_IRQ-for-rt5033.patch new file mode 100644 index 000..92fb2e0 --- /dev/null +++ b/2600_select-REGMAP_IRQ-for-rt5033.patch @@ -0,0 +1,30 @@ +From 23a2a22a3f3f17de094f386a893f7047c10e44a0 Mon Sep 17 00:00:00 2001 +From: Artem Savkov asav...@redhat.com +Date: Thu, 5 Mar 2015 12:42:27 +0100 +Subject: mfd: rt5033: MFD_RT5033 needs to select REGMAP_IRQ + +Since commit 0b2712585(linux-next.git) this driver uses regmap_irq and so needs +to select REGMAP_IRQ. + +This fixes the following compilation errors: +ERROR: regmap_irq_get_domain [drivers/mfd/rt5033.ko] undefined! +ERROR: regmap_add_irq_chip [drivers/mfd/rt5033.ko] undefined! + +Signed-off-by: Artem Savkov asav...@redhat.com +Signed-off-by: Lee Jones lee.jo...@linaro.org + +diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig +index f8ef77d9a..f49f404 100644 +--- a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig +@@ -680,6 +680,7 @@ config MFD_RT5033 + depends on I2C=y + select MFD_CORE + select REGMAP_I2C ++ select REGMAP_IRQ + help + This driver provides for the Richtek RT5033 Power Management IC, + which includes the I2C driver and the Core APIs. This driver provides +-- +cgit v0.10.2 +
[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: 18f6a4706fd8339bf905e5a36d5fcff525915340 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Sat Mar 21 20:00:01 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Sat Mar 21 20:00:01 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=18f6a470 Update gcc = 4.9 optimization patch. See bug #544028. ...-additional-cpu-optimizations-for-gcc-4.9.patch | 67 +- 1 file changed, 41 insertions(+), 26 deletions(-) diff --git a/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch b/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch index f931f75..c4efd06 100644 --- a/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch +++ b/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch @@ -18,13 +18,14 @@ should use the newer 'march=bonnell' flag for atom processors. I have made that change to this patch set as well. See the following kernel bug report to see if I'm right: https://bugzilla.kernel.org/show_bug.cgi?id=77461 -This patch will expand the number of microarchitectures to include new +This patch will expand the number of microarchitectures to include newer processors including: AMD K10-family, AMD Family 10h (Barcelona), AMD Family 14h (Bobcat), AMD Family 15h (Bulldozer), AMD Family 15h (Piledriver), AMD Family 16h (Jaguar), Intel 1st Gen Core i3/i5/i7 (Nehalem), Intel 1.5 Gen Core i3/i5/i7 (Westmere), Intel 2nd Gen Core i3/i5/i7 (Sandybridge), Intel 3rd Gen -Core i3/i5/i7 (Ivybridge), Intel 4th Gen Core i3/i5/i7 (Haswell), and Intel 5th -Gen Core i3/i5/i7 (Broadwell). It also offers the compiler the 'native' flag. +Core i3/i5/i7 (Ivybridge), Intel 4th Gen Core i3/i5/i7 (Haswell), Intel 5th +Gen Core i3/i5/i7 (Broadwell), and the low power Silvermont series of Atom +processors (Silvermont). It also offers the compiler the 'native' flag. Small but real speed increases are measurable using a make endpoint comparing a generic kernel to one built with one of the respective microarchs. @@ -36,9 +37,9 @@ REQUIREMENTS linux version =3.15 gcc version =4.9 a/arch/x86/include/asm/module.h2014-08-03 18:25:02.0 -0400 -+++ b/arch/x86/include/asm/module.h2014-09-13 09:37:16.721385247 -0400 -@@ -15,6 +15,20 @@ +--- a/arch/x86/include/asm/module.h2014-06-16 16:44:27.0 -0400 b/arch/x86/include/asm/module.h2015-03-07 03:27:32.556672424 -0500 +@@ -15,6 +15,22 @@ #define MODULE_PROC_FAMILY 586MMX #elif defined CONFIG_MCORE2 #define MODULE_PROC_FAMILY CORE2 @@ -48,6 +49,8 @@ gcc version =4.9 +#define MODULE_PROC_FAMILY NEHALEM +#elif defined CONFIG_MWESTMERE +#define MODULE_PROC_FAMILY WESTMERE ++#elif defined CONFIG_MSILVERMONT ++#define MODULE_PROC_FAMILY SILVERMONT +#elif defined CONFIG_MSANDYBRIDGE +#define MODULE_PROC_FAMILY SANDYBRIDGE +#elif defined CONFIG_MIVYBRIDGE @@ -59,7 +62,7 @@ gcc version =4.9 #elif defined CONFIG_MATOM #define MODULE_PROC_FAMILY ATOM #elif defined CONFIG_M686 -@@ -33,6 +47,20 @@ +@@ -33,6 +49,20 @@ #define MODULE_PROC_FAMILY K7 #elif defined CONFIG_MK8 #define MODULE_PROC_FAMILY K8 @@ -80,8 +83,8 @@ gcc version =4.9 #elif defined CONFIG_MELAN #define MODULE_PROC_FAMILY ELAN #elif defined CONFIG_MCRUSOE a/arch/x86/Kconfig.cpu 2014-08-03 18:25:02.0 -0400 -+++ b/arch/x86/Kconfig.cpu 2014-09-13 09:37:16.721385247 -0400 +--- a/arch/x86/Kconfig.cpu 2014-06-16 16:44:27.0 -0400 b/arch/x86/Kconfig.cpu 2015-03-07 03:32:14.337713226 -0500 @@ -137,9 +137,8 @@ config MPENTIUM4 -Paxville -Dempsey @@ -185,7 +188,7 @@ gcc version =4.9 ---help--- Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and -@@ -260,14 +318,55 @@ config MCORE2 +@@ -260,14 +318,63 @@ config MCORE2 family in /proc/cpuinfo. Newer ones have 6 and older ones 15 (not a typo) @@ -213,6 +216,14 @@ gcc version =4.9 + +Enables -march=westmere + ++config MSILVERMONT ++ bool Intel Silvermont ++ ---help--- ++ ++Select this for the Intel Silvermont platform. ++ ++Enables -march=silvermont ++ +config MSANDYBRIDGE + bool Intel Sandy Bridge + ---help--- @@ -247,7 +258,7 @@ gcc version =4.9 config GENERIC_CPU bool Generic-x86-64 -@@ -276,6 +375,19 @@ config GENERIC_CPU +@@ -276,6 +383,19 @@ config GENERIC_CPU Generic x86-64 CPU. Run equally well on all x86-64 CPUs. @@ -267,53 +278,53 @@ gcc version =4.9 endchoice config X86_GENERIC -@@ -300,7 +412,7 @@ config X86_INTERNODE_CACHE_SHIFT +@@ -300,7 +420,7 @@ config X86_INTERNODE_CACHE_SHIFT config X86_L1_CACHE_SHIFT int default 7 if MPENTIUM4 || MPSC - default 6 if MK7 || MK8 || MPENTIUMM || MCORE2 || MATOM || MVIAC7 || X86_GENERIC || GENERIC_CPU -+ default 6 if MK7 || MK8 || MK8SSE3 || MK10 || MBARCELONA || MBOBCAT || MBULLDOZER ||
[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: 7940d2a9fd1c415d391b9878ef3e6e18294243c8 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Fri Mar 20 00:23:37 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Fri Mar 20 00:23:37 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7940d2a9 Update the distro kernel patch to add an option to the Gentoo menu that enables CGROUPS for cgroup, IPC_NS for ipc-sandbox, and NET_NS for network-sandbox. 4567_distro-Gentoo-Kconfig.patch | 39 +++ 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch index 652e2a7..c7af596 100644 --- a/4567_distro-Gentoo-Kconfig.patch +++ b/4567_distro-Gentoo-Kconfig.patch @@ -1,5 +1,5 @@ a/Kconfig 2014-04-02 09:45:05.389224541 -0400 -+++ b/Kconfig 2014-04-02 09:45:39.269224273 -0400 +--- a/Kconfig b/Kconfig @@ -8,4 +8,6 @@ config SRCARCH string option env=SRCARCH @@ -7,9 +7,9 @@ +source distro/Kconfig + source arch/$SRCARCH/Kconfig 1969-12-31 19:00:00.0 -0500 -+++ b/distro/Kconfig 2014-04-02 09:57:03.539218861 -0400 -@@ -0,0 +1,108 @@ +--- /dev/null b/distro/Kconfig +@@ -0,0 +1,131 @@ +menu Gentoo Linux + +config GENTOO_LINUX @@ -30,7 +30,7 @@ + + depends on GENTOO_LINUX + default y if GENTOO_LINUX -+ ++ + select DEVTMPFS + select TMPFS + @@ -51,7 +51,29 @@ + boot process; if not available, it causes sysfs and udev to malfunction. + + To ensure Gentoo Linux boots, it is best to leave this setting enabled; -+ if you run a custom setup, you could consider whether to disable this. ++ if you run a custom setup, you could consider whether to disable this. ++ ++config GENTOO_LINUX_PORTAGE ++ bool Select options required by Portage features ++ ++ depends on GENTOO_LINUX ++ default y if GENTOO_LINUX ++ ++ select CGROUPS ++ select NAMESPACES ++ select IPC_NS ++ select NET_NS ++ ++ help ++ This enables options required by various Portage FEATURES. ++ Currently this selects: ++ ++ CGROUPS (required for FEATURES=cgroup) ++ IPC_NS (required for FEATURES=ipc-sandbox) ++ NET_NS (required for FEATURES=network-sandbox) ++ ++ It is highly recommended that you leave this enabled as these FEATURES ++ are, or will soon be, enabled by default. + +menu Support for init systems, system and service managers + visible if GENTOO_LINUX @@ -87,12 +109,13 @@ + select AUTOFS4_FS + select BLK_DEV_BSG + select CGROUPS ++ select DEVPTS_MULTIPLE_INSTANCES + select EPOLL + select FANOTIFY + select FHANDLE + select INOTIFY_USER + select NET -+ select NET_NS ++ select NET_NS + select PROC_FS + select SIGNALFD + select SYSFS
[gentoo-commits] proj/linux-patches:4.0 commit in: /
commit: aca5f6281d96053a892f47fb707516f7df7d56a9 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Wed Mar 18 23:16:43 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Wed Mar 18 23:16:43 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=aca5f628 Patch to enable link security restrictions by default. Patch to disable Windows 8 compatibility for some Lenovo ThinkPads. Patch to ensure that /dev/root doesn't appear in /proc/mounts when bootint without an initramfs. Path to not not lock when UMH is waiting on current thread spawned by linuxrc. (bug #481344) fbcondecor bootsplash patch. Add Gentoo Linux support config settings and defaults. Kernel patch that enables gcc v4.9 optimizations for additional CPUs. Kernel patch enables gcc = v4.9 optimizations for additional CPUs. _README| 28 + ...ble-link-security-restrictions-by-default.patch | 22 + 2700_ThinkPad-30-brightness-control-fix.patch | 67 + 2900_dev-root-proc-mount-fix.patch | 30 + 2905_2disk-resume-image-fix.patch | 24 + 4200_fbcondecor-3.19.patch | 2119 ...able-additional-cpu-optimizations-for-gcc.patch | 327 +++ ...-additional-cpu-optimizations-for-gcc-4.9.patch | 387 8 files changed, 3004 insertions(+) diff --git a/_README b/_README index 36c2b96..ca06e06 100644 --- a/_README +++ b/_README @@ -47,6 +47,34 @@ Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. +Patch: 1510_fs-enable-link-security-restrictions-by-default.patch +From: http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/ +Desc: Enable link security restrictions by default + +Patch: 2700_ThinkPad-30-brightness-control-fix.patch +From: Seth Forshee seth.fors...@canonical.com +Desc: ACPI: Disable Windows 8 compatibility for some Lenovo ThinkPads. + +Patch: 2900_dev-root-proc-mount-fix.patch +From: https://bugs.gentoo.org/show_bug.cgi?id=438380 +Desc: Ensure that /dev/root doesn't appear in /proc/mounts when bootint without an initramfs. + +Patch: 2905_s2disk-resume-image-fix.patch +From: Al Viro viro at ZenIV.linux.org.uk +Desc: Do not lock when UMH is waiting on current thread spawned by linuxrc. (bug #481344) + +Patch: 4200_fbcondecor-3.19.patch +From: http://www.mepiscommunity.org/fbcondecor +Desc: Bootsplash ported by Marco. (Bug #539616) + Patch: 4567_distro-Gentoo-Kconfig.patch From: Tom Wijsman tom...@gentoo.org Desc: Add Gentoo Linux support config settings and defaults. + +Patch: 5000_enable-additional-cpu-optimizations-for-gcc.patch +From: https://github.com/graysky2/kernel_gcc_patch/ +Desc: Kernel patch enables gcc v4.9 optimizations for additional CPUs. + +Patch: 5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch +From: https://github.com/graysky2/kernel_gcc_patch/ +Desc: Kernel patch enables gcc = v4.9 optimizations for additional CPUs. diff --git a/1510_fs-enable-link-security-restrictions-by-default.patch b/1510_fs-enable-link-security-restrictions-by-default.patch new file mode 100644 index 000..639fb3c --- /dev/null +++ b/1510_fs-enable-link-security-restrictions-by-default.patch @@ -0,0 +1,22 @@ +From: Ben Hutchings b...@decadent.org.uk +Subject: fs: Enable link security restrictions by default +Date: Fri, 02 Nov 2012 05:32:06 + +Bug-Debian: https://bugs.debian.org/609455 +Forwarded: not-needed + +This reverts commit 561ec64ae67ef25cac8d72bb9c4bfc955edfd415 +('VFS: don't do protected {sym,hard}links by default'). + +--- a/fs/namei.c b/fs/namei.c +@@ -651,8 +651,8 @@ static inline void put_link(struct namei + path_put(link); + } + +-int sysctl_protected_symlinks __read_mostly = 0; +-int sysctl_protected_hardlinks __read_mostly = 0; ++int sysctl_protected_symlinks __read_mostly = 1; ++int sysctl_protected_hardlinks __read_mostly = 1; + + /** + * may_follow_link - Check symlink following for unsafe situations diff --git a/2700_ThinkPad-30-brightness-control-fix.patch b/2700_ThinkPad-30-brightness-control-fix.patch new file mode 100644 index 000..b548c6d --- /dev/null +++ b/2700_ThinkPad-30-brightness-control-fix.patch @@ -0,0 +1,67 @@ +diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c +index cb96296..6c242ed 100644 +--- a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c +@@ -269,6 +276,61 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = { + }, + + /* ++ * The following Lenovo models have a broken workaround in the ++ * acpi_video backlight implementation to meet the Windows 8 ++ * requirement of 101 backlight levels. Reverting to pre-Win8 ++ * behavior fixes the problem. ++ */ ++ { ++