[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-10-29 Thread Mike Pagano
commit: bb34eaadc95f27973636b3035add7cb29eacddfc
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Oct 29 11:18:33 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Oct 29 11:18:33 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=bb34eaad

Linux patch 4.19.153

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1152_linux-4.19.153.patch | 4259 +
 2 files changed, 4263 insertions(+)

diff --git a/_README b/_README
index ddccc76..f3a1010 100644
--- a/_README
+++ b/_README
@@ -647,6 +647,10 @@ Patch:  1151_linux-4.19.152.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.152
 
+Patch:  1152_linux-4.19.153.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.153
+
 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/1152_linux-4.19.153.patch b/1152_linux-4.19.153.patch
new file mode 100644
index 000..f5fa716
--- /dev/null
+++ b/1152_linux-4.19.153.patch
@@ -0,0 +1,4259 @@
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index 30752db575870..fb129272240c9 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -558,7 +558,7 @@
+   loops can be debugged more effectively on production
+   systems.
+ 
+-  clearcpuid=BITNUM [X86]
++  clearcpuid=BITNUM[,BITNUM...] [X86]
+   Disable CPUID feature X for the kernel. See
+   arch/x86/include/asm/cpufeatures.h for the valid bit
+   numbers. Note the Linux specific bits are not 
necessarily
+diff --git a/Documentation/networking/ip-sysctl.txt 
b/Documentation/networking/ip-sysctl.txt
+index 7eb9366422f54..3c617d620b6f8 100644
+--- a/Documentation/networking/ip-sysctl.txt
 b/Documentation/networking/ip-sysctl.txt
+@@ -934,12 +934,14 @@ icmp_ratelimit - INTEGER
+ icmp_msgs_per_sec - INTEGER
+   Limit maximal number of ICMP packets sent per second from this host.
+   Only messages whose type matches icmp_ratemask (see below) are
+-  controlled by this limit.
++  controlled by this limit. For security reasons, the precise count
++  of messages per second is randomized.
+   Default: 1000
+ 
+ icmp_msgs_burst - INTEGER
+   icmp_msgs_per_sec controls number of ICMP packets sent per second,
+   while icmp_msgs_burst controls the burst size of these packets.
++  For security reasons, the precise burst size is randomized.
+   Default: 50
+ 
+ icmp_ratemask - INTEGER
+diff --git a/Makefile b/Makefile
+index aa79ce7bfdc73..d5e93bf207998 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 152
++SUBLEVEL = 153
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arc/plat-hsdk/Kconfig b/arch/arc/plat-hsdk/Kconfig
+index c285a83cbf08f..df35ea1912e8b 100644
+--- a/arch/arc/plat-hsdk/Kconfig
 b/arch/arc/plat-hsdk/Kconfig
+@@ -11,5 +11,6 @@ menuconfig ARC_SOC_HSDK
+   select ARC_HAS_ACCL_REGS
+   select ARC_IRQ_NO_AUTOSAVE
+   select CLK_HSDK
++  select RESET_CONTROLLER
+   select RESET_HSDK
+   select MIGHT_HAVE_PCI
+diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c
+index 808efbb89b88c..02f613def40dc 100644
+--- a/arch/arm/mm/cache-l2x0.c
 b/arch/arm/mm/cache-l2x0.c
+@@ -1261,20 +1261,28 @@ static void __init l2c310_of_parse(const struct 
device_node *np,
+ 
+   ret = of_property_read_u32(np, "prefetch-data", );
+   if (ret == 0) {
+-  if (val)
++  if (val) {
+   prefetch |= L310_PREFETCH_CTRL_DATA_PREFETCH;
+-  else
++  *aux_val |= L310_PREFETCH_CTRL_DATA_PREFETCH;
++  } else {
+   prefetch &= ~L310_PREFETCH_CTRL_DATA_PREFETCH;
++  *aux_val &= ~L310_PREFETCH_CTRL_DATA_PREFETCH;
++  }
++  *aux_mask &= ~L310_PREFETCH_CTRL_DATA_PREFETCH;
+   } else if (ret != -EINVAL) {
+   pr_err("L2C-310 OF prefetch-data property value is missing\n");
+   }
+ 
+   ret = of_property_read_u32(np, "prefetch-instr", );
+   if (ret == 0) {
+-  if (val)
++  if (val) {
+   prefetch |= L310_PREFETCH_CTRL_INSTR_PREFETCH;
+-  else
++  *aux_val |= L310_PREFETCH_CTRL_INSTR_PREFETCH;
++  } else {
+   prefetch &= ~L310_PREFETCH_CTRL_INSTR_PREFETCH;
++  *aux_val &= ~L310_PREFETCH_CTRL_INSTR_PREFETCH;
++  }
++  *aux_mask &= ~L310_PREFETCH_CTRL_INSTR_PREFETCH;
+   } else if (ret != -EINVAL) {
+  

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-10-17 Thread Mike Pagano
commit: fe459960788d36773dd2c0b329ceee5a0f8dc400
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Oct 17 10:17:34 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Oct 17 10:17:34 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=fe459960

Linux patch 4.19.152

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |   4 +
 1151_linux-4.19.152.patch | 739 ++
 2 files changed, 743 insertions(+)

diff --git a/_README b/_README
index 7427668..ddccc76 100644
--- a/_README
+++ b/_README
@@ -643,6 +643,10 @@ Patch:  1150_linux-4.19.151.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.151
 
+Patch:  1151_linux-4.19.152.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.152
+
 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/1151_linux-4.19.152.patch b/1151_linux-4.19.152.patch
new file mode 100644
index 000..2735545
--- /dev/null
+++ b/1151_linux-4.19.152.patch
@@ -0,0 +1,739 @@
+diff --git a/Makefile b/Makefile
+index f2c9db9b4015a..aa79ce7bfdc73 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 151
++SUBLEVEL = 152
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/compressed/Makefile 
b/arch/arm/boot/compressed/Makefile
+index 1f5a5ffe7fcf8..c762004572eff 100644
+--- a/arch/arm/boot/compressed/Makefile
 b/arch/arm/boot/compressed/Makefile
+@@ -120,7 +120,7 @@ ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) 
-fno-builtin -I$(obj)
+ asflags-y := -DZIMAGE
+ 
+ # Supply kernel BSS size to the decompressor via a linker symbol.
+-KBSS_SZ = $(shell echo $$(($$($(CROSS_COMPILE)nm $(obj)/../../../../vmlinux | 
\
++KBSS_SZ = $(shell echo $$(($$($(NM) $(obj)/../../../../vmlinux | \
+   sed -n -e 's/^\([^ ]*\) [AB] __bss_start$$/-0x\1/p' \
+  -e 's/^\([^ ]*\) [AB] __bss_stop$$/+0x\1/p') )) )
+ LDFLAGS_vmlinux = --defsym _kernel_bss_size=$(KBSS_SZ)
+@@ -166,7 +166,7 @@ $(obj)/bswapsdi2.S: 
$(srctree)/arch/$(SRCARCH)/lib/bswapsdi2.S
+ # The .data section is already discarded by the linker script so no need
+ # to bother about it here.
+ check_for_bad_syms = \
+-bad_syms=$$($(CROSS_COMPILE)nm $@ | sed -n 's/^.\{8\} [bc] \(.*\)/\1/p') && \
++bad_syms=$$($(NM) $@ | sed -n 's/^.\{8\} [bc] \(.*\)/\1/p') && \
+ [ -z "$$bad_syms" ] || \
+   ( echo "following symbols must have non local/private scope:" >&2; \
+ echo "$$bad_syms" >&2; rm -f $@; false )
+diff --git a/arch/arm/vdso/Makefile b/arch/arm/vdso/Makefile
+index f4efff9d3afbb..1f5ec9741e6d4 100644
+--- a/arch/arm/vdso/Makefile
 b/arch/arm/vdso/Makefile
+@@ -10,12 +10,13 @@ obj-vdso := $(addprefix $(obj)/, $(obj-vdso))
+ ccflags-y := -fPIC -fno-common -fno-builtin -fno-stack-protector
+ ccflags-y += -DDISABLE_BRANCH_PROFILING
+ 
+-VDSO_LDFLAGS := -Wl,-Bsymbolic -Wl,--no-undefined -Wl,-soname=linux-vdso.so.1
+-VDSO_LDFLAGS += -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096
+-VDSO_LDFLAGS += -nostdlib -shared
+-VDSO_LDFLAGS += $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
+-VDSO_LDFLAGS += $(call cc-ldoption, -Wl$(comma)--build-id)
+-VDSO_LDFLAGS += $(call cc-ldoption, -fuse-ld=bfd)
++ldflags-$(CONFIG_CPU_ENDIAN_BE8) := --be8
++ldflags-y := -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \
++  -z max-page-size=4096 -z common-page-size=4096 \
++  -nostdlib -shared $(ldflags-y) \
++  $(call ld-option, --hash-style=sysv) \
++  $(call ld-option, --build-id) \
++  -T
+ 
+ obj-$(CONFIG_VDSO) += vdso.o
+ extra-$(CONFIG_VDSO) += vdso.lds
+@@ -37,8 +38,8 @@ KCOV_INSTRUMENT := n
+ $(obj)/vdso.o : $(obj)/vdso.so
+ 
+ # Link rule for the .so file
+-$(obj)/vdso.so.raw: $(src)/vdso.lds $(obj-vdso) FORCE
+-  $(call if_changed,vdsold)
++$(obj)/vdso.so.raw: $(obj)/vdso.lds $(obj-vdso) FORCE
++  $(call if_changed,ld)
+ 
+ $(obj)/vdso.so.dbg: $(obj)/vdso.so.raw $(obj)/vdsomunge FORCE
+   $(call if_changed,vdsomunge)
+@@ -48,11 +49,6 @@ $(obj)/%.so: OBJCOPYFLAGS := -S
+ $(obj)/%.so: $(obj)/%.so.dbg FORCE
+   $(call if_changed,objcopy)
+ 
+-# Actual build commands
+-quiet_cmd_vdsold = VDSO$@
+-  cmd_vdsold = $(CC) $(c_flags) $(VDSO_LDFLAGS) \
+-   -Wl,-T $(filter %.lds,$^) $(filter %.o,$^) -o $@
+-
+ quiet_cmd_vdsomunge = MUNGE   $@
+   cmd_vdsomunge = $(objtree)/$(obj)/vdsomunge $< $@
+ 
+diff --git a/drivers/crypto/bcm/cipher.c b/drivers/crypto/bcm/cipher.c
+index 0b1fc5664b1d8..c2736274ad634 100644
+--- a/drivers/crypto/bcm/cipher.c
 b/drivers/crypto/bcm/cipher.c
+@@ -2980,7 +2980,6 @@ static int aead_gcm_ccm_setkey(struct crypto_aead 
*cipher,
+ 
+   ctx->enckeylen = keylen;
+   ctx->authkeylen = 0;
+-  memcpy(ctx->enckey, key, ctx->enckeylen);
+ 
+   switch 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-10-14 Thread Mike Pagano
commit: 40ca78d22ec084b5932a3d76164833e23ef1fc36
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Oct 14 20:36:30 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Oct 14 20:36:30 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=40ca78d2

Linux patch 4.19.151

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1150_linux-4.19.151.patch | 1688 +
 2 files changed, 1692 insertions(+)

diff --git a/_README b/_README
index 47aa030..7427668 100644
--- a/_README
+++ b/_README
@@ -639,6 +639,10 @@ Patch:  1149_linux-4.19.150.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.150
 
+Patch:  1150_linux-4.19.151.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.151
+
 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/1150_linux-4.19.151.patch b/1150_linux-4.19.151.patch
new file mode 100644
index 000..e5af897
--- /dev/null
+++ b/1150_linux-4.19.151.patch
@@ -0,0 +1,1688 @@
+diff --git a/Makefile b/Makefile
+index 65485185bec29..f2c9db9b4015a 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 150
++SUBLEVEL = 151
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts 
b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts
+index faa017d4cd56b..636bab51de38d 100644
+--- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts
 b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts
+@@ -151,6 +151,7 @@
+ };
+ 
+  {
++  status = "okay";
+   flash@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+diff --git a/drivers/base/dd.c b/drivers/base/dd.c
+index 0047bbdd43c0f..b3c569412f4e2 100644
+--- a/drivers/base/dd.c
 b/drivers/base/dd.c
+@@ -472,7 +472,8 @@ static int really_probe(struct device *dev, struct 
device_driver *drv)
+drv->bus->name, __func__, drv->name, dev_name(dev));
+   if (!list_empty(>devres_head)) {
+   dev_crit(dev, "Resources present before probing\n");
+-  return -EBUSY;
++  ret = -EBUSY;
++  goto done;
+   }
+ 
+ re_probe:
+@@ -579,7 +580,7 @@ pinctrl_bind_failed:
+   ret = 0;
+ done:
+   atomic_dec(_count);
+-  wake_up(_waitqueue);
++  wake_up_all(_waitqueue);
+   return ret;
+ }
+ 
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+index fcf421263fd96..abad7460084f2 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
 b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+@@ -954,6 +954,7 @@ static int amdgpu_ttm_tt_pin_userptr(struct ttm_tt *ttm)
+ 
+ release_sg:
+   kfree(ttm->sg);
++  ttm->sg = NULL;
+   return r;
+ }
+ 
+diff --git a/drivers/gpu/drm/nouveau/nouveau_mem.c 
b/drivers/gpu/drm/nouveau/nouveau_mem.c
+index c002f89685073..9682f30ab6f68 100644
+--- a/drivers/gpu/drm/nouveau/nouveau_mem.c
 b/drivers/gpu/drm/nouveau/nouveau_mem.c
+@@ -176,6 +176,8 @@ void
+ nouveau_mem_del(struct ttm_mem_reg *reg)
+ {
+   struct nouveau_mem *mem = nouveau_mem(reg);
++  if (!mem)
++  return;
+   nouveau_mem_fini(mem);
+   kfree(reg->mm_node);
+   reg->mm_node = NULL;
+diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
+index 58fc17e46694d..3ac3b26cc9317 100644
+--- a/drivers/i2c/busses/i2c-i801.c
 b/drivers/i2c/busses/i2c-i801.c
+@@ -1698,6 +1698,7 @@ static int i801_probe(struct pci_dev *dev, const struct 
pci_device_id *id)
+ 
+   pci_set_drvdata(dev, priv);
+ 
++  dev_pm_set_driver_flags(>dev, DPM_FLAG_NEVER_SKIP);
+   pm_runtime_set_autosuspend_delay(>dev, 1000);
+   pm_runtime_use_autosuspend(>dev);
+   pm_runtime_put_autosuspend(>dev);
+diff --git a/drivers/i2c/busses/i2c-meson.c b/drivers/i2c/busses/i2c-meson.c
+index 90f5d0407d732..f48e637f1a3e8 100644
+--- a/drivers/i2c/busses/i2c-meson.c
 b/drivers/i2c/busses/i2c-meson.c
+@@ -8,6 +8,7 @@
+  * published by the Free Software Foundation.
+  */
+ 
++#include 
+ #include 
+ #include 
+ #include 
+@@ -35,12 +36,17 @@
+ #define REG_CTRL_ACK_IGNORE   BIT(1)
+ #define REG_CTRL_STATUS   BIT(2)
+ #define REG_CTRL_ERRORBIT(3)
+-#define REG_CTRL_CLKDIV_SHIFT 12
+-#define REG_CTRL_CLKDIV_MASK  GENMASK(21, 12)
+-#define REG_CTRL_CLKDIVEXT_SHIFT 28
+-#define REG_CTRL_CLKDIVEXT_MASK   GENMASK(29, 28)
++#define REG_CTRL_CLKDIV   GENMASK(21, 12)
++#define REG_CTRL_CLKDIVEXTGENMASK(29, 28)
++
++#define REG_SLV_ADDR  GENMASK(7, 0)
++#define REG_SLV_SDA_FILTERGENMASK(10, 8)
++#define REG_SLV_SCL_FILTERGENMASK(13, 11)
++#define REG_SLV_SCL_LOW   GENMASK(27, 16)
++#define REG_SLV_SCL_LOW_ENBIT(28)
+ 
+ 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-10-07 Thread Mike Pagano
commit: acb7e192c86b3b4470f10c8245b744d7947a1982
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Oct  7 12:50:11 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Oct  7 12:50:11 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=acb7e192

Linux patch 4.19.150

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1149_linux-4.19.150.patch | 1698 +
 2 files changed, 1702 insertions(+)

diff --git a/_README b/_README
index e7a8587..47aa030 100644
--- a/_README
+++ b/_README
@@ -635,6 +635,10 @@ Patch:  1148_linux-4.19.149.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.149
 
+Patch:  1149_linux-4.19.150.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.150
+
 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/1149_linux-4.19.150.patch b/1149_linux-4.19.150.patch
new file mode 100644
index 000..adccde0
--- /dev/null
+++ b/1149_linux-4.19.150.patch
@@ -0,0 +1,1698 @@
+diff --git a/Makefile b/Makefile
+index 3ff5cf33ef55c..65485185bec29 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 149
++SUBLEVEL = 150
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c
+index 79e5cc70f1fdd..561e2573bd34c 100644
+--- a/arch/ia64/mm/init.c
 b/arch/ia64/mm/init.c
+@@ -499,7 +499,7 @@ virtual_memmap_init(u64 start, u64 end, void *arg)
+   if (map_start < map_end)
+   memmap_init_zone((unsigned long)(map_end - map_start),
+args->nid, args->zone, page_to_pfn(map_start),
+-   MEMMAP_EARLY, NULL);
++   MEMINIT_EARLY, NULL);
+   return 0;
+ }
+ 
+@@ -508,8 +508,8 @@ memmap_init (unsigned long size, int nid, unsigned long 
zone,
+unsigned long start_pfn)
+ {
+   if (!vmem_map) {
+-  memmap_init_zone(size, nid, zone, start_pfn, MEMMAP_EARLY,
+-  NULL);
++  memmap_init_zone(size, nid, zone, start_pfn,
++   MEMINIT_EARLY, NULL);
+   } else {
+   struct page *start;
+   struct memmap_init_callback_data args;
+diff --git a/drivers/base/node.c b/drivers/base/node.c
+index f3565c2dbc527..503e2f90e58ef 100644
+--- a/drivers/base/node.c
 b/drivers/base/node.c
+@@ -403,10 +403,32 @@ static int __ref get_nid_for_pfn(unsigned long pfn)
+   return pfn_to_nid(pfn);
+ }
+ 
++static int do_register_memory_block_under_node(int nid,
++ struct memory_block *mem_blk)
++{
++  int ret;
++
++  /*
++   * If this memory block spans multiple nodes, we only indicate
++   * the last processed node.
++   */
++  mem_blk->nid = nid;
++
++  ret = sysfs_create_link_nowarn(_devices[nid]->dev.kobj,
++ _blk->dev.kobj,
++ kobject_name(_blk->dev.kobj));
++  if (ret)
++  return ret;
++
++  return sysfs_create_link_nowarn(_blk->dev.kobj,
++  _devices[nid]->dev.kobj,
++  kobject_name(_devices[nid]->dev.kobj));
++}
++
+ /* register memory section under specified node if it spans that node */
+-int register_mem_sect_under_node(struct memory_block *mem_blk, void *arg)
++int register_mem_block_under_node_early(struct memory_block *mem_blk, void 
*arg)
+ {
+-  int ret, nid = *(int *)arg;
++  int nid = *(int *)arg;
+   unsigned long pfn, sect_start_pfn, sect_end_pfn;
+ 
+   sect_start_pfn = section_nr_to_pfn(mem_blk->start_section_nr);
+@@ -426,38 +448,33 @@ int register_mem_sect_under_node(struct memory_block 
*mem_blk, void *arg)
+   }
+ 
+   /*
+-   * We need to check if page belongs to nid only for the boot
+-   * case, during hotplug we know that all pages in the memory
+-   * block belong to the same node.
+-   */
+-  if (system_state == SYSTEM_BOOTING) {
+-  page_nid = get_nid_for_pfn(pfn);
+-  if (page_nid < 0)
+-  continue;
+-  if (page_nid != nid)
+-  continue;
+-  }
+-
+-  /*
+-   * If this memory block spans multiple nodes, we only indicate
+-   * the last processed node.
++   * We need to check if page belongs to nid only at the boot
++   * case because node's ranges can be interleaved.
+*/
+-  mem_blk->nid = nid;
+-
+-  ret = sysfs_create_link_nowarn(_devices[nid]->dev.kobj,
+- 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-09-26 Thread Mike Pagano
commit: 21a9e44cc1f2393d129a2b558b1379a84e3dbfa3
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Sep 26 22:06:54 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Sep 26 22:06:54 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=21a9e44c

Fix gentoo Kconfig patch

Signed-off-by: Mike Pagano  gentoo.org>

 4567_distro-Gentoo-Kconfig.patch | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch
index e754a3e..fe71b18 100644
--- a/4567_distro-Gentoo-Kconfig.patch
+++ b/4567_distro-Gentoo-Kconfig.patch
@@ -1,9 +1,9 @@
 a/Kconfig  2020-04-15 11:05:30.202413863 -0400
-+++ b/Kconfig  2020-04-15 10:37:45.683952949 -0400
-@@ -32,3 +32,5 @@ source "lib/Kconfig"
- source "lib/Kconfig.debug"
+--- a/Kconfig  2020-09-26 18:03:43.918963345 -0400
 b/Kconfig  2020-09-26 18:04:12.439182521 -0400
+@@ -30,3 +30,5 @@ source "crypto/Kconfig"
+ source "lib/Kconfig"
  
- source "Documentation/Kconfig"
+ source "lib/Kconfig.debug"
 +
 +source "distro/Kconfig"
 --- /dev/null  2020-09-24 03:06:47.59000 -0400



[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-09-26 Thread Mike Pagano
commit: de1ca00a7d2ca5589f537b73addb0c569d7821e5
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Sep 26 22:00:27 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Sep 26 22:00:27 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=de1ca00a

Linux patch 4.19.148

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1147_linux-4.19.148.patch | 1529 +
 2 files changed, 1533 insertions(+)

diff --git a/_README b/_README
index 4996714..9707ae7 100644
--- a/_README
+++ b/_README
@@ -627,6 +627,10 @@ Patch:  1146_linux-4.19.147.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.147
 
+Patch:  1147_linux-4.19.148.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.148
+
 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/1147_linux-4.19.148.patch b/1147_linux-4.19.148.patch
new file mode 100644
index 000..30160d9
--- /dev/null
+++ b/1147_linux-4.19.148.patch
@@ -0,0 +1,1529 @@
+diff --git a/Documentation/kbuild/llvm.rst b/Documentation/kbuild/llvm.rst
+new file mode 100644
+index 0..c776b6eee969f
+--- /dev/null
 b/Documentation/kbuild/llvm.rst
+@@ -0,0 +1,87 @@
++==
++Building Linux with Clang/LLVM
++==
++
++This document covers how to build the Linux kernel with Clang and LLVM
++utilities.
++
++About
++-
++
++The Linux kernel has always traditionally been compiled with GNU toolchains
++such as GCC and binutils. Ongoing work has allowed for `Clang
++`_ and `LLVM `_ utilities to be
++used as viable substitutes. Distributions such as `Android
++`_, `ChromeOS
++`_, and `OpenMandriva
++`_ use Clang built kernels.  `LLVM is a
++collection of toolchain components implemented in terms of C++ objects
++`_. Clang is a front-end to LLVM that
++supports C and the GNU C extensions required by the kernel, and is pronounced
++"klang," not "see-lang."
++
++Clang
++-
++
++The compiler used can be swapped out via `CC=` command line argument to 
`make`.
++`CC=` should be set when selecting a config and during a build.
++
++  make CC=clang defconfig
++
++  make CC=clang
++
++Cross Compiling
++---
++
++A single Clang compiler binary will typically contain all supported backends,
++which can help simplify cross compiling.
++
++  ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make CC=clang
++
++`CROSS_COMPILE` is not used to prefix the Clang compiler binary, instead
++`CROSS_COMPILE` is used to set a command line flag: `--target `. For
++example:
++
++  clang --target aarch64-linux-gnu foo.c
++
++LLVM Utilities
++--
++
++LLVM has substitutes for GNU binutils utilities. Kbuild supports `LLVM=1`
++to enable them.
++
++  make LLVM=1
++
++They can be enabled individually. The full list of the parameters:
++
++  make CC=clang LD=ld.lld AR=llvm-ar NM=llvm-nm STRIP=llvm-strip \\
++OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump OBJSIZE=llvm-size \\
++READELF=llvm-readelf HOSTCC=clang HOSTCXX=clang++ HOSTAR=llvm-ar \\
++HOSTLD=ld.lld
++
++Currently, the integrated assembler is disabled by default. You can pass
++`LLVM_IAS=1` to enable it.
++
++Getting Help
++
++
++- `Website `_
++- `Mailing List 
`_: 

++- `Issue Tracker `_
++- IRC: #clangbuiltlinux on chat.freenode.net
++- `Telegram `_: @ClangBuiltLinux
++- `Wiki `_
++- `Beginner Bugs 
`_
++
++Getting LLVM
++-
++
++- http://releases.llvm.org/download.html
++- https://github.com/llvm/llvm-project
++- https://llvm.org/docs/GettingStarted.html
++- https://llvm.org/docs/CMake.html
++- https://apt.llvm.org/
++- https://www.archlinux.org/packages/extra/x86_64/llvm/
++- https://github.com/ClangBuiltLinux/tc-build
++- https://github.com/ClangBuiltLinux/linux/wiki/Building-Clang-from-source
++- https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/
+diff --git a/MAINTAINERS b/MAINTAINERS
+index b9f9da0b886f5..1061db6fbc326 100644
+--- a/MAINTAINERS
 b/MAINTAINERS
+@@ -3613,6 +3613,15 @@ M:  Miguel Ojeda 
+ S:Maintained
+ F:.clang-format
+ 
++CLANG/LLVM BUILD SUPPORT
++L:clang-built-li...@googlegroups.com
++W:https://clangbuiltlinux.github.io/
++B:https://github.com/ClangBuiltLinux/linux/issues
++C:

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-09-24 Thread Mike Pagano
commit: b393fe8ec24508bd7ae2f91cf3603dc7db2a74b1
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Sep 24 15:58:28 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Sep 24 15:58:28 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b393fe8e

Add CONFIG_USER_NS to GENTOO_LINUX_INIT_SYSTEMD

Signed-off-by: Mike Pagano  gentoo.org>

 4567_distro-Gentoo-Kconfig.patch | 17 +
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch
index 10c164e..e754a3e 100644
--- a/4567_distro-Gentoo-Kconfig.patch
+++ b/4567_distro-Gentoo-Kconfig.patch
@@ -1,14 +1,14 @@
 a/Kconfig  2018-09-28 08:08:05.058882080 -0400
-+++ b/Kconfig  2018-09-28 08:09:17.869573745 -0400
-@@ -30,3 +30,5 @@ source "crypto/Kconfig"
- source "lib/Kconfig"
- 
+--- a/Kconfig  2020-04-15 11:05:30.202413863 -0400
 b/Kconfig  2020-04-15 10:37:45.683952949 -0400
+@@ -32,3 +32,5 @@ source "lib/Kconfig"
  source "lib/Kconfig.debug"
+ 
+ source "Documentation/Kconfig"
 +
 +source "distro/Kconfig"
 /dev/null  2020-05-13 03:13:57.920193259 -0400
-+++ b/distro/Kconfig   2020-05-13 08:21:40.704254967 -0400
-@@ -0,0 +1,157 @@
+--- /dev/null  2020-09-24 03:06:47.59000 -0400
 b/distro/Kconfig   2020-09-24 11:31:29.403150624 -0400
+@@ -0,0 +1,158 @@
 +menu "Gentoo Linux"
 +
 +config GENTOO_LINUX
@@ -145,6 +145,7 @@
 +  select TIMERFD
 +  select TMPFS_POSIX_ACL
 +  select TMPFS_XATTR
++  select USER_NS
 +
 +  select ANON_INODES
 +  select BLOCK



[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-09-23 Thread Mike Pagano
commit: f9b71e81f1e521cd7b9c44697540ef76275bfbcb
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Sep 23 12:07:30 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Sep 23 12:07:30 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=f9b71e81

Linux patch 4.19.147

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1146_linux-4.19.147.patch | 1758 +
 2 files changed, 1762 insertions(+)

diff --git a/_README b/_README
index 5d9a94a..4996714 100644
--- a/_README
+++ b/_README
@@ -623,6 +623,10 @@ Patch:  1145_linux-4.19.146.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.146
 
+Patch:  1146_linux-4.19.147.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.147
+
 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/1146_linux-4.19.147.patch b/1146_linux-4.19.147.patch
new file mode 100644
index 000..11c1e98
--- /dev/null
+++ b/1146_linux-4.19.147.patch
@@ -0,0 +1,1758 @@
+diff --git a/Makefile b/Makefile
+index aaeb3f3dbcea8..ee648a902ce31 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 146
++SUBLEVEL = 147
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
+index a830a9701e501..cc8c8d22afaf5 100644
+--- a/arch/mips/Kconfig
 b/arch/mips/Kconfig
+@@ -852,6 +852,7 @@ config SNI_RM
+   select I8253
+   select I8259
+   select ISA
++  select MIPS_L1_CACHE_SHIFT_6
+   select SWAP_IO_SPACE if CPU_BIG_ENDIAN
+   select SYS_HAS_CPU_R4X00
+   select SYS_HAS_CPU_R5000
+diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c
+index e7f5ef6bed0fe..79485790f7b56 100644
+--- a/arch/mips/kvm/mips.c
 b/arch/mips/kvm/mips.c
+@@ -131,6 +131,8 @@ void kvm_arch_check_processor_compat(void *rtn)
+ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)
+ {
+   switch (type) {
++  case KVM_VM_MIPS_AUTO:
++  break;
+ #ifdef CONFIG_KVM_MIPS_VZ
+   case KVM_VM_MIPS_VZ:
+ #else
+diff --git a/arch/mips/sni/a20r.c b/arch/mips/sni/a20r.c
+index f9407e1704762..c6af7047eb0d2 100644
+--- a/arch/mips/sni/a20r.c
 b/arch/mips/sni/a20r.c
+@@ -143,7 +143,10 @@ static struct platform_device sc26xx_pdev = {
+   },
+ };
+ 
+-static u32 a20r_ack_hwint(void)
++/*
++ * Trigger chipset to update CPU's CAUSE IP field
++ */
++static u32 a20r_update_cause_ip(void)
+ {
+   u32 status = read_c0_status();
+ 
+@@ -205,12 +208,14 @@ static void a20r_hwint(void)
+   int irq;
+ 
+   clear_c0_status(IE_IRQ0);
+-  status = a20r_ack_hwint();
++  status = a20r_update_cause_ip();
+   cause = read_c0_cause();
+ 
+   irq = ffs(((cause & status) >> 8) & 0xf8);
+   if (likely(irq > 0))
+   do_IRQ(SNI_A20R_IRQ_BASE + irq - 1);
++
++  a20r_update_cause_ip();
+   set_c0_status(IE_IRQ0);
+ }
+ 
+diff --git a/arch/openrisc/mm/cache.c b/arch/openrisc/mm/cache.c
+index b747bf1fc1b63..4272d9123f9ed 100644
+--- a/arch/openrisc/mm/cache.c
 b/arch/openrisc/mm/cache.c
+@@ -20,7 +20,7 @@
+ #include 
+ #include 
+ 
+-static void cache_loop(struct page *page, const unsigned int reg)
++static __always_inline void cache_loop(struct page *page, const unsigned int 
reg)
+ {
+   unsigned long paddr = page_to_pfn(page) << PAGE_SHIFT;
+   unsigned long line = paddr & ~(L1_CACHE_BYTES - 1);
+diff --git a/arch/powerpc/kernel/dma-iommu.c b/arch/powerpc/kernel/dma-iommu.c
+index f9fe2080ceb90..eed3543aeca46 100644
+--- a/arch/powerpc/kernel/dma-iommu.c
 b/arch/powerpc/kernel/dma-iommu.c
+@@ -100,7 +100,8 @@ static u64 dma_iommu_get_required_mask(struct device *dev)
+   if (!tbl)
+   return 0;
+ 
+-  mask = 1ULL < (fls_long(tbl->it_offset + tbl->it_size) - 1);
++  mask = 1ULL << (fls_long(tbl->it_offset + tbl->it_size) +
++  tbl->it_page_shift - 1);
+   mask += mask - 1;
+ 
+   return mask;
+diff --git a/arch/x86/boot/compressed/Makefile 
b/arch/x86/boot/compressed/Makefile
+index 466f66c8a7f8d..b337a0cd58ba4 100644
+--- a/arch/x86/boot/compressed/Makefile
 b/arch/x86/boot/compressed/Makefile
+@@ -38,6 +38,8 @@ KBUILD_CFLAGS += $(call cc-option,-fno-stack-protector)
+ KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
+ KBUILD_CFLAGS += $(call cc-disable-warning, gnu)
+ KBUILD_CFLAGS += -Wno-pointer-sign
++# Disable relocation relaxation in case the link is not PIE.
++KBUILD_CFLAGS += $(call as-option,-Wa$(comma)-mrelax-relocations=no)
+ 
+ KBUILD_AFLAGS  := $(KBUILD_CFLAGS) -D__ASSEMBLY__
+ GCOV_PROFILE := n
+diff --git a/arch/x86/configs/i386_defconfig b/arch/x86/configs/i386_defconfig
+index 5a23a4ccd7556..9218cb1286611 100644
+--- a/arch/x86/configs/i386_defconfig
 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-09-17 Thread Mike Pagano
commit: e4110c1227bc615bec77a318ea7dbde5b740404f
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Sep 17 15:00:38 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Sep 17 15:00:38 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e4110c12

Removal of unsupported fbcondecor patch

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 -
 4200_fbcondecor.patch | 2095 -
 2 files changed, 2099 deletions(-)

diff --git a/_README b/_README
index 4416605..5d9a94a 100644
--- a/_README
+++ b/_README
@@ -639,10 +639,6 @@ Patch:  2600_enable-key-swapping-for-apple-mac.patch
 From:   https://github.com/free5lot/hid-apple-patched
 Desc:   This hid-apple patch enables swapping of the FN and left Control keys 
and some additional on some apple keyboards. See bug #622902
 
-Patch:  4200_fbcondecor.patch
-From:   http://www.mepiscommunity.org/fbcondecor
-Desc:   Bootsplash ported by Conrad Kostecki. (Bug #637434)
-
 Patch:  4400_alpha-sysctl-uac.patch
 From:   Tobias Klausmann (klaus...@gentoo.org) and 
http://bugs.gentoo.org/show_bug.cgi?id=217323
 Desc:   Enable control of the unaligned access control policy from sysctl

diff --git a/4200_fbcondecor.patch b/4200_fbcondecor.patch
deleted file mode 100644
index 7151d0f..000
--- a/4200_fbcondecor.patch
+++ /dev/null
@@ -1,2095 +0,0 @@
-diff --git a/Documentation/fb/00-INDEX b/Documentation/fb/00-INDEX
-index fe85e7c5907a..22309308ba56 100644
 a/Documentation/fb/00-INDEX
-+++ b/Documentation/fb/00-INDEX
-@@ -23,6 +23,8 @@ ep93xx-fb.txt
-   - info on the driver for EP93xx LCD controller.
- fbcon.txt
-   - intro to and usage guide for the framebuffer console (fbcon).
-+fbcondecor.txt
-+  - info on the Framebuffer Console Decoration
- framebuffer.txt
-   - introduction to frame buffer devices.
- gxfb.txt
-diff --git a/Documentation/fb/fbcondecor.txt b/Documentation/fb/fbcondecor.txt
-new file mode 100644
-index ..637209e11ccd
 /dev/null
-+++ b/Documentation/fb/fbcondecor.txt
-@@ -0,0 +1,207 @@
-+What is it?
-+---
-+
-+The framebuffer decorations are a kernel feature which allows displaying a
-+background picture on selected consoles.
-+
-+What do I need to get it to work?
-+-
-+
-+To get fbcondecor up-and-running you will have to:
-+ 1) get a copy of splashutils [1] or a similar program
-+ 2) get some fbcondecor themes
-+ 3) build the kernel helper program
-+ 4) build your kernel with the FB_CON_DECOR option enabled.
-+
-+To get fbcondecor operational right after fbcon initialization is finished, 
you
-+will have to include a theme and the kernel helper into your initramfs image.
-+Please refer to splashutils documentation for instructions on how to do that.
-+
-+[1] The splashutils package can be downloaded from:
-+http://github.com/alanhaggai/fbsplash
-+
-+The userspace helper
-+
-+
-+The userspace fbcondecor helper (by default: /sbin/fbcondecor_helper) is 
called by the
-+kernel whenever an important event occurs and the kernel needs some kind of
-+job to be carried out. Important events include console switches and video
-+mode switches (the kernel requests background images and configuration
-+parameters for the current console). The fbcondecor helper must be accessible 
at
-+all times. If it's not, fbcondecor will be switched off automatically.
-+
-+It's possible to set path to the fbcondecor helper by writing it to
-+/proc/sys/kernel/fbcondecor.
-+
-+*
-+
-+The information below is mostly technical stuff. There's probably no need to
-+read it unless you plan to develop a userspace helper.
-+
-+The fbcondecor protocol
-+---
-+
-+The fbcondecor protocol defines a communication interface between the kernel 
and
-+the userspace fbcondecor helper.
-+
-+The kernel side is responsible for:
-+
-+ * rendering console text, using an image as a background (instead of a
-+   standard solid color fbcon uses),
-+ * accepting commands from the user via ioctls on the fbcondecor device,
-+ * calling the userspace helper to set things up as soon as the fb subsystem
-+   is initialized.
-+
-+The userspace helper is responsible for everything else, including parsing
-+configuration files, decompressing the image files whenever the kernel needs
-+it, and communicating with the kernel if necessary.
-+
-+The fbcondecor protocol specifies how communication is done in both ways:
-+kernel->userspace and userspace->helper.
-+
-+Kernel -> Userspace
-+---
-+
-+The kernel communicates with the userspace helper by calling it and specifying
-+the task to be done in a series of arguments.
-+
-+The arguments follow the pattern:
-+  
-+
-+All commands defined in fbcondecor protocol v2 have the following parameters:
-+ virtual console
-+ framebuffer number
-+ 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-09-17 Thread Mike Pagano
commit: f0692fef2ebc8ccdee5117b2b793b72a24c01158
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Sep 17 14:55:20 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Sep 17 14:55:20 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=f0692fef

Linux patch 4.19.146

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1145_linux-4.19.146.patch | 3221 +
 2 files changed, 3225 insertions(+)

diff --git a/_README b/_README
index 7d78220..4416605 100644
--- a/_README
+++ b/_README
@@ -619,6 +619,10 @@ Patch:  1144_linux-4.19.145.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.145
 
+Patch:  1145_linux-4.19.146.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.146
+
 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/1145_linux-4.19.146.patch b/1145_linux-4.19.146.patch
new file mode 100644
index 000..6b815f5
--- /dev/null
+++ b/1145_linux-4.19.146.patch
@@ -0,0 +1,3221 @@
+diff --git a/Makefile b/Makefile
+index 6bf851efcabe9..aaeb3f3dbcea8 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 145
++SUBLEVEL = 146
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
+index d131c54acd3ec..f6b6e3c9ca8aa 100644
+--- a/arch/arc/boot/dts/hsdk.dts
 b/arch/arc/boot/dts/hsdk.dts
+@@ -83,6 +83,8 @@
+ 
+   arcpct: pct {
+   compatible = "snps,archs-pct";
++  interrupt-parent = <_intc>;
++  interrupts = <20>;
+   };
+ 
+   /* TIMER0 with interrupt for clockevent */
+@@ -173,7 +175,7 @@
+   reg = <0x8000 0x2000>;
+   interrupts = <10>;
+   interrupt-names = "macirq";
+-  phy-mode = "rgmii";
++  phy-mode = "rgmii-id";
+   snps,pbl = <32>;
+   snps,multicast-filter-bins = <256>;
+   clocks = <>;
+@@ -191,7 +193,7 @@
+   #address-cells = <1>;
+   #size-cells = <0>;
+   compatible = "snps,dwmac-mdio";
+-  phy0: ethernet-phy@0 {
++  phy0: ethernet-phy@0 { /* Micrel KSZ9031 */
+   reg = <0>;
+   ti,rx-internal-delay = 
;
+   ti,tx-internal-delay = 
;
+diff --git a/arch/arc/plat-eznps/include/plat/ctop.h 
b/arch/arc/plat-eznps/include/plat/ctop.h
+index 4f6a1673b3a6e..ddfca2c3357a0 100644
+--- a/arch/arc/plat-eznps/include/plat/ctop.h
 b/arch/arc/plat-eznps/include/plat/ctop.h
+@@ -43,7 +43,6 @@
+ #define CTOP_AUX_DPC  (CTOP_AUX_BASE + 0x02C)
+ #define CTOP_AUX_LPC  (CTOP_AUX_BASE + 0x030)
+ #define CTOP_AUX_EFLAGS   (CTOP_AUX_BASE + 0x080)
+-#define CTOP_AUX_IACK (CTOP_AUX_BASE + 0x088)
+ #define CTOP_AUX_GPA1 (CTOP_AUX_BASE + 0x08C)
+ #define CTOP_AUX_UDMC (CTOP_AUX_BASE + 0x300)
+ 
+diff --git a/arch/arm/boot/dts/bcm-hr2.dtsi b/arch/arm/boot/dts/bcm-hr2.dtsi
+index e35398cc60a06..dd71ab08136be 100644
+--- a/arch/arm/boot/dts/bcm-hr2.dtsi
 b/arch/arm/boot/dts/bcm-hr2.dtsi
+@@ -217,7 +217,7 @@
+   };
+ 
+   qspi: spi@27200 {
+-  compatible = "brcm,spi-bcm-qspi", "brcm,spi-nsp-qspi";
++  compatible = "brcm,spi-nsp-qspi", "brcm,spi-bcm-qspi";
+   reg = <0x027200 0x184>,
+ <0x027000 0x124>,
+ <0x11c408 0x004>,
+diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi
+index 273a316045798..b395cb195db21 100644
+--- a/arch/arm/boot/dts/bcm-nsp.dtsi
 b/arch/arm/boot/dts/bcm-nsp.dtsi
+@@ -274,7 +274,7 @@
+   };
+ 
+   qspi: spi@27200 {
+-  compatible = "brcm,spi-bcm-qspi", "brcm,spi-nsp-qspi";
++  compatible = "brcm,spi-nsp-qspi", "brcm,spi-bcm-qspi";
+   reg = <0x027200 0x184>,
+ <0x027000 0x124>,
+ <0x11c408 0x004>,
+diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi
+index a678fb7c9e3b2..c91716d5980c3 100644
+--- a/arch/arm/boot/dts/bcm5301x.dtsi
 b/arch/arm/boot/dts/bcm5301x.dtsi
+@@ -445,7 +445,7 @@
+   };
+ 
+   spi@18029200 {
+-  compatible = "brcm,spi-bcm-qspi", "brcm,spi-nsp-qspi";
++  compatible = "brcm,spi-nsp-qspi", "brcm,spi-bcm-qspi";
+  

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-09-12 Thread Mike Pagano
commit: 446d5cdf7326d9bbed834b46506efb00344b685a
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Sep 12 17:59:32 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Sep 12 17:59:32 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=446d5cdf

Linux patch 4.19.145

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |   4 +
 1144_linux-4.19.145.patch | 322 ++
 2 files changed, 326 insertions(+)

diff --git a/_README b/_README
index be0a5e0..7d78220 100644
--- a/_README
+++ b/_README
@@ -615,6 +615,10 @@ Patch:  1143_linux-4.19.144.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.144
 
+Patch:  1144_linux-4.19.145.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.145
+
 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/1144_linux-4.19.145.patch b/1144_linux-4.19.145.patch
new file mode 100644
index 000..561a2f0
--- /dev/null
+++ b/1144_linux-4.19.145.patch
@@ -0,0 +1,322 @@
+diff --git a/Makefile b/Makefile
+index ba9d0b4476e11..6bf851efcabe9 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 144
++SUBLEVEL = 145
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/block/blk-core.c b/block/blk-core.c
+index ea33d6abdcfc9..ce3710404544c 100644
+--- a/block/blk-core.c
 b/block/blk-core.c
+@@ -1036,6 +1036,8 @@ struct request_queue *blk_alloc_queue_node(gfp_t 
gfp_mask, int node_id,
+ 
+   q->backing_dev_info->ra_pages =
+   (VM_MAX_READAHEAD * 1024) / PAGE_SIZE;
++  q->backing_dev_info->io_pages =
++  (VM_MAX_READAHEAD * 1024) / PAGE_SIZE;
+   q->backing_dev_info->capabilities = BDI_CAP_CGROUP_WRITEBACK;
+   q->backing_dev_info->name = "block";
+   q->node = node_id;
+diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c 
b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
+index 701624a63d2f4..1ab40d622ae1e 100644
+--- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
 b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
+@@ -198,7 +198,7 @@ int mlx5e_attr_get(struct net_device *dev, struct 
switchdev_attr *attr)
+   struct mlx5_eswitch_rep *rep = rpriv->rep;
+   struct mlx5_eswitch *esw = priv->mdev->priv.eswitch;
+ 
+-  if (esw->mode == SRIOV_NONE)
++  if (esw->mode != SRIOV_OFFLOADS)
+   return -EOPNOTSUPP;
+ 
+   switch (attr->id) {
+diff --git a/drivers/net/usb/dm9601.c b/drivers/net/usb/dm9601.c
+index b91f92e4e5f22..915ac75b55fc7 100644
+--- a/drivers/net/usb/dm9601.c
 b/drivers/net/usb/dm9601.c
+@@ -625,6 +625,10 @@ static const struct usb_device_id products[] = {
+USB_DEVICE(0x0a46, 0x1269),/* DM9621A USB to Fast Ethernet Adapter 
*/
+.driver_info = (unsigned long)_info,
+   },
++  {
++   USB_DEVICE(0x0586, 0x3427),/* ZyXEL Keenetic Plus DSL xDSL modem */
++   .driver_info = (unsigned long)_info,
++  },
+   {}, // END
+ };
+ 
+diff --git a/net/core/dev.c b/net/core/dev.c
+index 42ba150fa18d5..c77d12a35f923 100644
+--- a/net/core/dev.c
 b/net/core/dev.c
+@@ -6196,12 +6196,13 @@ void netif_napi_add(struct net_device *dev, struct 
napi_struct *napi,
+   pr_err_once("netif_napi_add() called with weight %d on device 
%s\n",
+   weight, dev->name);
+   napi->weight = weight;
+-  list_add(>dev_list, >napi_list);
+   napi->dev = dev;
+ #ifdef CONFIG_NETPOLL
+   napi->poll_owner = -1;
+ #endif
+   set_bit(NAPI_STATE_SCHED, >state);
++  set_bit(NAPI_STATE_NPSVC, >state);
++  list_add_rcu(>dev_list, >napi_list);
+   napi_hash_add(napi);
+ }
+ EXPORT_SYMBOL(netif_napi_add);
+diff --git a/net/core/netpoll.c b/net/core/netpoll.c
+index a581cf101cd9c..023ce0fbb496d 100644
+--- a/net/core/netpoll.c
 b/net/core/netpoll.c
+@@ -161,7 +161,7 @@ static void poll_napi(struct net_device *dev)
+   struct napi_struct *napi;
+   int cpu = smp_processor_id();
+ 
+-  list_for_each_entry(napi, >napi_list, dev_list) {
++  list_for_each_entry_rcu(napi, >napi_list, dev_list) {
+   if (cmpxchg(>poll_owner, -1, cpu) == -1) {
+   poll_one_napi(napi);
+   smp_store_release(>poll_owner, -1);
+diff --git a/net/netlabel/netlabel_domainhash.c 
b/net/netlabel/netlabel_domainhash.c
+index 41d0e95d171e1..b1a1718495f34 100644
+--- a/net/netlabel/netlabel_domainhash.c
 b/net/netlabel/netlabel_domainhash.c
+@@ -99,6 +99,7 @@ static void netlbl_domhsh_free_entry(struct rcu_head *entry)
+   kfree(netlbl_domhsh_addr6_entry(iter6));
+   }
+ #endif /* IPv6 */
++  kfree(ptr->def.addrsel);
+   }
+   kfree(ptr->domain);
+   

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-09-09 Thread Mike Pagano
commit: da15fdc8f254f2da7da6a4e9dfa62b88ed14034e
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Sep  9 17:59:26 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Sep  9 17:59:26 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=da15fdc8

Linux patch 4.19.144

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1143_linux-4.19.144.patch | 3925 +
 2 files changed, 3929 insertions(+)

diff --git a/_README b/_README
index f31a3e5..be0a5e0 100644
--- a/_README
+++ b/_README
@@ -611,6 +611,10 @@ Patch:  1142_linux-4.19.143.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.143
 
+Patch:  1143_linux-4.19.144.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.144
+
 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/1143_linux-4.19.144.patch b/1143_linux-4.19.144.patch
new file mode 100644
index 000..f86fb4f
--- /dev/null
+++ b/1143_linux-4.19.144.patch
@@ -0,0 +1,3925 @@
+diff --git a/Documentation/filesystems/affs.txt 
b/Documentation/filesystems/affs.txt
+index 71b63c2b98410..a8f1a58e36922 100644
+--- a/Documentation/filesystems/affs.txt
 b/Documentation/filesystems/affs.txt
+@@ -93,13 +93,15 @@ The Amiga protection flags RWEDRWEDHSPARWED are handled as 
follows:
+ 
+   - R maps to r for user, group and others. On directories, R implies x.
+ 
+-  - If both W and D are allowed, w will be set.
++  - W maps to w.
+ 
+   - E maps to x.
+ 
+-  - H and P are always retained and ignored under Linux.
++  - D is ignored.
+ 
+-  - A is always reset when a file is written to.
++  - H, S and P are always retained and ignored under Linux.
++
++  - A is cleared when a file is written to.
+ 
+ User id and group id will be used unless set[gu]id are given as mount
+ options. Since most of the Amiga file systems are single user systems
+@@ -111,11 +113,13 @@ Linux -> Amiga:
+ 
+ The Linux rwxrwxrwx file mode is handled as follows:
+ 
+-  - r permission will set R for user, group and others.
++  - r permission will allow R for user, group and others.
++
++  - w permission will allow W for user, group and others.
+ 
+-  - w permission will set W and D for user, group and others.
++  - x permission of the user will allow E for plain files.
+ 
+-  - x permission of the user will set E for plain files.
++  - D will be allowed for user, group and others.
+ 
+   - All other flags (suid, sgid, ...) are ignored and will
+ not be retained.
+diff --git a/Makefile b/Makefile
+index 6fa3278df77c9..ba9d0b4476e11 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 143
++SUBLEVEL = 144
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm64/include/asm/kvm_arm.h 
b/arch/arm64/include/asm/kvm_arm.h
+index 8b284cbf8162f..a3b6f58d188c9 100644
+--- a/arch/arm64/include/asm/kvm_arm.h
 b/arch/arm64/include/asm/kvm_arm.h
+@@ -83,11 +83,12 @@
+  * IMO:   Override CPSR.I and enable signaling with VI
+  * FMO:   Override CPSR.F and enable signaling with VF
+  * SWIO:  Turn set/way invalidates into set/way clean+invalidate
++ * PTW:   Take a stage2 fault if a stage1 walk steps in device 
memory
+  */
+ #define HCR_GUEST_FLAGS (HCR_TSC | HCR_TSW | HCR_TWE | HCR_TWI | HCR_VM | \
+HCR_TVM | HCR_BSU_IS | HCR_FB | HCR_TAC | \
+HCR_AMO | HCR_SWIO | HCR_TIDCP | HCR_RW | HCR_TLOR | \
+-   HCR_FMO | HCR_IMO)
++   HCR_FMO | HCR_IMO | HCR_PTW )
+ #define HCR_VIRT_EXCP_MASK (HCR_VSE | HCR_VI | HCR_VF)
+ #define HCR_HOST_NVHE_FLAGS (HCR_RW | HCR_API | HCR_APK)
+ #define HCR_HOST_VHE_FLAGS (HCR_RW | HCR_TGE | HCR_E2H)
+diff --git a/arch/arm64/include/asm/kvm_asm.h 
b/arch/arm64/include/asm/kvm_asm.h
+index 102b5a5c47b6c..e3c0dba5bddea 100644
+--- a/arch/arm64/include/asm/kvm_asm.h
 b/arch/arm64/include/asm/kvm_asm.h
+@@ -87,6 +87,34 @@ extern u32 __init_stage2_translation(void);
+   *__hyp_this_cpu_ptr(sym);   \
+})
+ 
++#define __KVM_EXTABLE(from, to)   
\
++  "   .pushsection__kvm_ex_table, \"a\"\n"\
++  "   .align  3\n"\
++  "   .long   (" #from " - .), (" #to " - .)\n"   \
++  "   .popsection\n"
++
++
++#define __kvm_at(at_op, addr) \
++( {   \
++  int __kvm_at_err = 0;   \
++  u64 spsr, elr;  \
++  asm volatile(   

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-08-26 Thread Mike Pagano
commit: 286936af5f7b3c95f620e434ebb58ba5f7d7095d
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Aug 26 11:15:26 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Aug 26 11:15:26 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=286936af

Linux patch 4.19.142

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1141_linux-4.19.142.patch | 2088 +
 2 files changed, 2092 insertions(+)

diff --git a/_README b/_README
index 1680f0b..4adb8c6 100644
--- a/_README
+++ b/_README
@@ -603,6 +603,10 @@ Patch:  1140_linux-4.19.141.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.141
 
+Patch:  1141_linux-4.19.142.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.142
+
 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/1141_linux-4.19.142.patch b/1141_linux-4.19.142.patch
new file mode 100644
index 000..84d26b3
--- /dev/null
+++ b/1141_linux-4.19.142.patch
@@ -0,0 +1,2088 @@
+diff --git a/Makefile b/Makefile
+index 5b64e11419846..e5e46aecf357f 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 141
++SUBLEVEL = 142
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/alpha/include/asm/io.h b/arch/alpha/include/asm/io.h
+index eb09d5aee9106..0bba9e991189d 100644
+--- a/arch/alpha/include/asm/io.h
 b/arch/alpha/include/asm/io.h
+@@ -507,10 +507,10 @@ extern inline void writeq(u64 b, volatile void __iomem 
*addr)
+ }
+ #endif
+ 
+-#define ioread16be(p) be16_to_cpu(ioread16(p))
+-#define ioread32be(p) be32_to_cpu(ioread32(p))
+-#define iowrite16be(v,p) iowrite16(cpu_to_be16(v), (p))
+-#define iowrite32be(v,p) iowrite32(cpu_to_be32(v), (p))
++#define ioread16be(p) swab16(ioread16(p))
++#define ioread32be(p) swab32(ioread32(p))
++#define iowrite16be(v,p) iowrite16(swab16(v), (p))
++#define iowrite32be(v,p) iowrite32(swab32(v), (p))
+ 
+ #define inb_p inb
+ #define inw_p inw
+diff --git a/arch/arm/include/asm/kvm_host.h b/arch/arm/include/asm/kvm_host.h
+index c9128bb187f9a..471859cbfe0bb 100644
+--- a/arch/arm/include/asm/kvm_host.h
 b/arch/arm/include/asm/kvm_host.h
+@@ -234,7 +234,7 @@ int __kvm_arm_vcpu_set_events(struct kvm_vcpu *vcpu,
+ 
+ #define KVM_ARCH_WANT_MMU_NOTIFIER
+ int kvm_unmap_hva_range(struct kvm *kvm,
+-  unsigned long start, unsigned long end);
++  unsigned long start, unsigned long end, bool blockable);
+ void kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte);
+ 
+ unsigned long kvm_arm_num_regs(struct kvm_vcpu *vcpu);
+diff --git a/arch/arm64/include/asm/kvm_host.h 
b/arch/arm64/include/asm/kvm_host.h
+index e9afdfcb8403c..5e720742d6479 100644
+--- a/arch/arm64/include/asm/kvm_host.h
 b/arch/arm64/include/asm/kvm_host.h
+@@ -370,7 +370,7 @@ int __kvm_arm_vcpu_set_events(struct kvm_vcpu *vcpu,
+ 
+ #define KVM_ARCH_WANT_MMU_NOTIFIER
+ int kvm_unmap_hva_range(struct kvm *kvm,
+-  unsigned long start, unsigned long end);
++  unsigned long start, unsigned long end, bool blockable);
+ void kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte);
+ int kvm_age_hva(struct kvm *kvm, unsigned long start, unsigned long end);
+ int kvm_test_age_hva(struct kvm *kvm, unsigned long hva);
+diff --git a/arch/m68k/include/asm/m53xxacr.h 
b/arch/m68k/include/asm/m53xxacr.h
+index 9138a624c5c81..692f90e7fecc1 100644
+--- a/arch/m68k/include/asm/m53xxacr.h
 b/arch/m68k/include/asm/m53xxacr.h
+@@ -89,9 +89,9 @@
+  * coherency though in all cases. And for copyback caches we will need
+  * to push cached data as well.
+  */
+-#define CACHE_INIT  CACR_CINVA
+-#define CACHE_INVALIDATE  CACR_CINVA
+-#define CACHE_INVALIDATED CACR_CINVA
++#define CACHE_INIT(CACHE_MODE + CACR_CINVA - CACR_EC)
++#define CACHE_INVALIDATE  (CACHE_MODE + CACR_CINVA)
++#define CACHE_INVALIDATED (CACHE_MODE + CACR_CINVA)
+ 
+ #define ACR0_MODE ((CONFIG_RAMBASE & 0xff00) + \
+(0x000f) + \
+diff --git a/arch/mips/include/asm/kvm_host.h 
b/arch/mips/include/asm/kvm_host.h
+index 2b3fdfc9e0e77..c254761cb8ad9 100644
+--- a/arch/mips/include/asm/kvm_host.h
 b/arch/mips/include/asm/kvm_host.h
+@@ -936,7 +936,7 @@ enum kvm_mips_fault_result kvm_trap_emul_gva_fault(struct 
kvm_vcpu *vcpu,
+ 
+ #define KVM_ARCH_WANT_MMU_NOTIFIER
+ int kvm_unmap_hva_range(struct kvm *kvm,
+-  unsigned long start, unsigned long end);
++  unsigned long start, unsigned long end, bool blockable);
+ void kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte);
+ int kvm_age_hva(struct kvm *kvm, unsigned long start, unsigned long end);
+ int kvm_test_age_hva(struct kvm *kvm, unsigned long 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-08-21 Thread Alice Ferrazzi
commit: 57661b28b79ea7e6812d625ee65e71cc
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Fri Aug 21 10:48:18 2020 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Fri Aug 21 10:49:01 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=57661b28

Linux patch 4.19.141

Signed-off-by: Alice Ferrazzi  gentoo.org>

 _README   |4 +
 1140_linux-4.19.141.patch | 2957 +
 2 files changed, 2961 insertions(+)

diff --git a/_README b/_README
index 1b514b0..1680f0b 100644
--- a/_README
+++ b/_README
@@ -599,6 +599,10 @@ Patch:  1139_linux-4.19.140.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.140
 
+Patch:  1140_linux-4.19.141.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.141
+
 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/1140_linux-4.19.141.patch b/1140_linux-4.19.141.patch
new file mode 100644
index 000..f4b0b6a
--- /dev/null
+++ b/1140_linux-4.19.141.patch
@@ -0,0 +1,2957 @@
+diff --git 
a/Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.txt 
b/Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.txt
+index c82794002595f..89647d7143879 100644
+--- a/Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.txt
 b/Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.txt
+@@ -21,7 +21,7 @@ controller state. The mux controller state is described in
+ 
+ Example:
+   mux: mux-controller {
+-  compatible = "mux-gpio";
++  compatible = "gpio-mux";
+   #mux-control-cells = <0>;
+ 
+   mux-gpios = < 0 GPIO_ACTIVE_HIGH>,
+diff --git a/Makefile b/Makefile
+index c5ee1c10a39c8..5b64e11419846 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 140
++SUBLEVEL = 141
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts 
b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
+index 3ab25ad402b90..6cbdd66921aab 100644
+--- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
 b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
+@@ -19,6 +19,12 @@
+   model = "Globalscale Marvell ESPRESSOBin Board";
+   compatible = "globalscale,espressobin", "marvell,armada3720", 
"marvell,armada3710";
+ 
++  aliases {
++  ethernet0 = 
++  serial0 = 
++  serial1 = 
++  };
++
+   chosen {
+   stdout-path = "serial0:115200n8";
+   };
+diff --git a/arch/mips/kernel/topology.c b/arch/mips/kernel/topology.c
+index cd3e1f82e1a5d..08ad6371fbe08 100644
+--- a/arch/mips/kernel/topology.c
 b/arch/mips/kernel/topology.c
+@@ -20,7 +20,7 @@ static int __init topology_init(void)
+   for_each_present_cpu(i) {
+   struct cpu *c = _cpu(cpu_devices, i);
+ 
+-  c->hotpluggable = 1;
++  c->hotpluggable = !!i;
+   ret = register_cpu(c, i);
+   if (ret)
+   printk(KERN_WARNING "topology_init: register_cpu %d "
+diff --git a/arch/openrisc/kernel/stacktrace.c 
b/arch/openrisc/kernel/stacktrace.c
+index 43f140a28bc72..54d38809e22cb 100644
+--- a/arch/openrisc/kernel/stacktrace.c
 b/arch/openrisc/kernel/stacktrace.c
+@@ -13,6 +13,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #include 
+ 
+ #include 
+@@ -68,12 +69,25 @@ void save_stack_trace_tsk(struct task_struct *tsk, struct 
stack_trace *trace)
+ {
+   unsigned long *sp = NULL;
+ 
++  if (!try_get_task_stack(tsk))
++  return;
++
+   if (tsk == current)
+   sp = (unsigned long *) 
+-  else
+-  sp = (unsigned long *) KSTK_ESP(tsk);
++  else {
++  unsigned long ksp;
++
++  /* Locate stack from kernel context */
++  ksp = task_thread_info(tsk)->ksp;
++  ksp += STACK_FRAME_OVERHEAD;/* redzone */
++  ksp += sizeof(struct pt_regs);
++
++  sp = (unsigned long *) ksp;
++  }
+ 
+   unwind_stack(trace, sp, save_stack_address_nosched);
++
++  put_task_stack(tsk);
+ }
+ EXPORT_SYMBOL_GPL(save_stack_trace_tsk);
+ 
+diff --git a/arch/powerpc/include/asm/percpu.h 
b/arch/powerpc/include/asm/percpu.h
+index dce863a7635cd..8e5b7d0b851c6 100644
+--- a/arch/powerpc/include/asm/percpu.h
 b/arch/powerpc/include/asm/percpu.h
+@@ -10,8 +10,6 @@
+ 
+ #ifdef CONFIG_SMP
+ 
+-#include 
+-
+ #define __my_cpu_offset local_paca->data_offset
+ 
+ #endif /* CONFIG_SMP */
+@@ -19,4 +17,6 @@
+ 
+ #include 
+ 
++#include 
++
+ #endif /* _ASM_POWERPC_PERCPU_H_ */
+diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c
+index 6e0ff8b600ced..eb5252177b662 100644
+--- a/arch/powerpc/mm/fault.c
 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-08-12 Thread Alice Ferrazzi
commit: 77d4994b057e94128881c4219ff9431f8b22ff8a
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Wed Aug 12 23:36:35 2020 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Wed Aug 12 23:36:44 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=77d4994b

Linux patch 4.19.139

Signed-off-by: Alice Ferrazzi  gentoo.org>

 _README   |4 +
 1138_linux-4.19.139.patch | 1713 +
 2 files changed, 1717 insertions(+)

diff --git a/_README b/_README
index c72d2c2..b90eb63 100644
--- a/_README
+++ b/_README
@@ -591,6 +591,10 @@ Patch:  1137_linux-4.19.138.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.138
 
+Patch:  1138_linux-4.19.139.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.139
+
 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/1138_linux-4.19.139.patch b/1138_linux-4.19.139.patch
new file mode 100644
index 000..7235e09
--- /dev/null
+++ b/1138_linux-4.19.139.patch
@@ -0,0 +1,1713 @@
+diff --git a/Makefile b/Makefile
+index daaa8ab2f550..f6012170995e 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 138
++SUBLEVEL = 139
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/drivers/android/binder.c b/drivers/android/binder.c
+index cf4367135a00..112b5b50ad3c 100644
+--- a/drivers/android/binder.c
 b/drivers/android/binder.c
+@@ -2862,6 +2862,12 @@ static void binder_transaction(struct binder_proc *proc,
+   goto err_dead_binder;
+   }
+   e->to_node = target_node->debug_id;
++  if (WARN_ON(proc == target_proc)) {
++  return_error = BR_FAILED_REPLY;
++  return_error_param = -EINVAL;
++  return_error_line = __LINE__;
++  goto err_invalid_target_handle;
++  }
+   if (security_binder_transaction(proc->tsk,
+   target_proc->tsk) < 0) {
+   return_error = BR_FAILED_REPLY;
+@@ -3366,10 +3372,17 @@ static int binder_thread_write(struct binder_proc 
*proc,
+   struct binder_node *ctx_mgr_node;
+   mutex_lock(>context_mgr_node_lock);
+   ctx_mgr_node = context->binder_context_mgr_node;
+-  if (ctx_mgr_node)
++  if (ctx_mgr_node) {
++  if (ctx_mgr_node->proc == proc) {
++  binder_user_error("%d:%d 
context manager tried to acquire desc 0\n",
++proc->pid, 
thread->pid);
++  
mutex_unlock(>context_mgr_node_lock);
++  return -EINVAL;
++  }
+   ret = binder_inc_ref_for_node(
+   proc, ctx_mgr_node,
+   strong, NULL, );
++  }
+   mutex_unlock(>context_mgr_node_lock);
+   }
+   if (ret)
+diff --git a/drivers/atm/atmtcp.c b/drivers/atm/atmtcp.c
+index afebeb1c3e1e..723bad1201cc 100644
+--- a/drivers/atm/atmtcp.c
 b/drivers/atm/atmtcp.c
+@@ -432,9 +432,15 @@ static int atmtcp_remove_persistent(int itf)
+   return -EMEDIUMTYPE;
+   }
+   dev_data = PRIV(dev);
+-  if (!dev_data->persist) return 0;
++  if (!dev_data->persist) {
++  atm_dev_put(dev);
++  return 0;
++  }
+   dev_data->persist = 0;
+-  if (PRIV(dev)->vcc) return 0;
++  if (PRIV(dev)->vcc) {
++  atm_dev_put(dev);
++  return 0;
++  }
+   kfree(dev_data);
+   atm_dev_put(dev);
+   atm_dev_deregister(dev);
+diff --git a/drivers/firmware/qemu_fw_cfg.c b/drivers/firmware/qemu_fw_cfg.c
+index 039e0f91dba8..6945c3c96637 100644
+--- a/drivers/firmware/qemu_fw_cfg.c
 b/drivers/firmware/qemu_fw_cfg.c
+@@ -605,8 +605,10 @@ static int fw_cfg_register_file(const struct fw_cfg_file 
*f)
+   /* register entry under "/sys/firmware/qemu_fw_cfg/by_key/" */
+   err = kobject_init_and_add(>kobj, _cfg_sysfs_entry_ktype,
+  fw_cfg_sel_ko, "%d", entry->select);
+-  if (err)
+-  goto err_register;
++  if (err) {
++  kobject_put(>kobj);
++  return err;
++  }
+ 
+   /* add raw binary content access */
+   err = sysfs_create_bin_file(>kobj, _cfg_sysfs_attr_raw);
+@@ -622,7 +624,6 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-08-07 Thread Mike Pagano
commit: db2e8ae94cabc877b43000900c80c31552838371
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Aug  7 19:15:49 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Aug  7 19:15:49 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=db2e8ae9

Linux patch 4.19.138

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |   4 +
 1137_linux-4.19.138.patch | 258 ++
 2 files changed, 262 insertions(+)

diff --git a/_README b/_README
index d6fa27c..c72d2c2 100644
--- a/_README
+++ b/_README
@@ -587,6 +587,10 @@ Patch:  1136_linux-4.19.137.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.137
 
+Patch:  1137_linux-4.19.138.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.138
+
 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/1137_linux-4.19.138.patch b/1137_linux-4.19.138.patch
new file mode 100644
index 000..cad026c
--- /dev/null
+++ b/1137_linux-4.19.138.patch
@@ -0,0 +1,258 @@
+diff --git a/Makefile b/Makefile
+index edf1799c08d2..daaa8ab2f550 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 137
++SUBLEVEL = 138
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/include/asm/percpu.h b/arch/arm/include/asm/percpu.h
+index a89b4076cde4..72821b4721ad 100644
+--- a/arch/arm/include/asm/percpu.h
 b/arch/arm/include/asm/percpu.h
+@@ -16,6 +16,8 @@
+ #ifndef _ASM_ARM_PERCPU_H_
+ #define _ASM_ARM_PERCPU_H_
+ 
++#include 
++
+ /*
+  * Same as asm-generic/percpu.h, except that we store the per cpu offset
+  * in the TPIDRPRW. TPIDRPRW only exists on V6K and V7
+diff --git a/drivers/char/random.c b/drivers/char/random.c
+index d5f970d039bb..6a5d4dfafc47 100644
+--- a/drivers/char/random.c
 b/drivers/char/random.c
+@@ -1257,6 +1257,7 @@ void add_interrupt_randomness(int irq, int irq_flags)
+ 
+   fast_mix(fast_pool);
+   add_interrupt_bench(cycles);
++  this_cpu_add(net_rand_state.s1, fast_pool->pool[cycles & 3]);
+ 
+   if (unlikely(crng_init == 0)) {
+   if ((fast_pool->count >= 64) &&
+diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
+index 3b1a7597af15..cd833f4e64ef 100644
+--- a/fs/ext4/inode.c
 b/fs/ext4/inode.c
+@@ -3848,6 +3848,11 @@ static ssize_t ext4_direct_IO_read(struct kiocb *iocb, 
struct iov_iter *iter)
+   struct inode *inode = mapping->host;
+   size_t count = iov_iter_count(iter);
+   ssize_t ret;
++  loff_t offset = iocb->ki_pos;
++  loff_t size = i_size_read(inode);
++
++  if (offset >= size)
++  return 0;
+ 
+   /*
+* Shared inode_lock is enough for us - it protects against concurrent
+diff --git a/include/linux/prandom.h b/include/linux/prandom.h
+new file mode 100644
+index ..aa16e6468f91
+--- /dev/null
 b/include/linux/prandom.h
+@@ -0,0 +1,78 @@
++/* SPDX-License-Identifier: GPL-2.0 */
++/*
++ * include/linux/prandom.h
++ *
++ * Include file for the fast pseudo-random 32-bit
++ * generation.
++ */
++#ifndef _LINUX_PRANDOM_H
++#define _LINUX_PRANDOM_H
++
++#include 
++#include 
++
++u32 prandom_u32(void);
++void prandom_bytes(void *buf, size_t nbytes);
++void prandom_seed(u32 seed);
++void prandom_reseed_late(void);
++
++struct rnd_state {
++  __u32 s1, s2, s3, s4;
++};
++
++DECLARE_PER_CPU(struct rnd_state, net_rand_state);
++
++u32 prandom_u32_state(struct rnd_state *state);
++void prandom_bytes_state(struct rnd_state *state, void *buf, size_t nbytes);
++void prandom_seed_full_state(struct rnd_state __percpu *pcpu_state);
++
++#define prandom_init_once(pcpu_state) \
++  DO_ONCE(prandom_seed_full_state, (pcpu_state))
++
++/**
++ * prandom_u32_max - returns a pseudo-random number in interval [0, ep_ro)
++ * @ep_ro: right open interval endpoint
++ *
++ * Returns a pseudo-random number that is in interval [0, ep_ro). Note
++ * that the result depends on PRNG being well distributed in [0, ~0U]
++ * u32 space. Here we use maximally equidistributed combined Tausworthe
++ * generator, that is, prandom_u32(). This is useful when requesting a
++ * random index of an array containing ep_ro elements, for example.
++ *
++ * Returns: pseudo-random number in interval [0, ep_ro)
++ */
++static inline u32 prandom_u32_max(u32 ep_ro)
++{
++  return (u32)(((u64) prandom_u32() * ep_ro) >> 32);
++}
++
++/*
++ * Handle minimum values for seeds
++ */
++static inline u32 __seed(u32 x, u32 m)
++{
++  return (x < m) ? x + m : x;
++}
++
++/**
++ * prandom_seed_state - set seed for prandom_u32_state().
++ * @state: pointer to state structure to receive the seed.
++ * @seed: arbitrary 64-bit value to use as a seed.
++ */
++static inline void prandom_seed_state(struct rnd_state *state, u64 seed)
++{
++  u32 i = (seed >> 32) ^ 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-08-05 Thread Thomas Deutschmann
commit: 0d53102c63ad653cc05e1f84cfa532b49dc52ac3
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Wed Aug  5 14:51:33 2020 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Wed Aug  5 14:51:33 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0d53102c

Linux patch 4.19.137

Signed-off-by: Thomas Deutschmann  gentoo.org>

 _README   |4 +
 1136_linux-4.19.137.patch | 1486 +
 2 files changed, 1490 insertions(+)

diff --git a/_README b/_README
index b50ea6d..d6fa27c 100644
--- a/_README
+++ b/_README
@@ -583,6 +583,10 @@ Patch:  1135_linux-4.19.136.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.136
 
+Patch:  1136_linux-4.19.137.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.137
+
 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/1136_linux-4.19.137.patch b/1136_linux-4.19.137.patch
new file mode 100644
index 000..6f2e949
--- /dev/null
+++ b/1136_linux-4.19.137.patch
@@ -0,0 +1,1486 @@
+diff --git a/Makefile b/Makefile
+index a76c159bb605..edf1799c08d2 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 136
++SUBLEVEL = 137
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/kernel/hw_breakpoint.c b/arch/arm/kernel/hw_breakpoint.c
+index 1d5fbf1d1c67..8a8470d36c65 100644
+--- a/arch/arm/kernel/hw_breakpoint.c
 b/arch/arm/kernel/hw_breakpoint.c
+@@ -688,6 +688,12 @@ static void disable_single_step(struct perf_event *bp)
+   arch_install_hw_breakpoint(bp);
+ }
+ 
++static int watchpoint_fault_on_uaccess(struct pt_regs *regs,
++ struct arch_hw_breakpoint *info)
++{
++  return !user_mode(regs) && info->ctrl.privilege == ARM_BREAKPOINT_USER;
++}
++
+ static void watchpoint_handler(unsigned long addr, unsigned int fsr,
+  struct pt_regs *regs)
+ {
+@@ -747,16 +753,27 @@ static void watchpoint_handler(unsigned long addr, 
unsigned int fsr,
+   }
+ 
+   pr_debug("watchpoint fired: address = 0x%x\n", info->trigger);
++
++  /*
++   * If we triggered a user watchpoint from a uaccess routine,
++   * then handle the stepping ourselves since userspace really
++   * can't help us with this.
++   */
++  if (watchpoint_fault_on_uaccess(regs, info))
++  goto step;
++
+   perf_bp_event(wp, regs);
+ 
+   /*
+-   * If no overflow handler is present, insert a temporary
+-   * mismatch breakpoint so we can single-step over the
+-   * watchpoint trigger.
++   * Defer stepping to the overflow handler if one is installed.
++   * Otherwise, insert a temporary mismatch breakpoint so that
++   * we can single-step over the watchpoint trigger.
+*/
+-  if (is_default_overflow_handler(wp))
+-  enable_single_step(wp, instruction_pointer(regs));
++  if (!is_default_overflow_handler(wp))
++  goto unlock;
+ 
++step:
++  enable_single_step(wp, instruction_pointer(regs));
+ unlock:
+   rcu_read_unlock();
+   }
+diff --git a/arch/arm64/include/asm/alternative.h 
b/arch/arm64/include/asm/alternative.h
+index 849d891c60a8..844f05b23115 100644
+--- a/arch/arm64/include/asm/alternative.h
 b/arch/arm64/include/asm/alternative.h
+@@ -77,9 +77,9 @@ static inline void apply_alternatives_module(void *start, 
size_t length) { }
+   "663:\n\t"  \
+   newinstr "\n"   \
+   "664:\n\t"  \
+-  ".previous\n\t" \
+   ".org   . - (664b-663b) + (662b-661b)\n\t"  \
+-  ".org   . - (662b-661b) + (664b-663b)\n"\
++  ".org   . - (662b-661b) + (664b-663b)\n\t"  \
++  ".previous\n"   \
+   ".endif\n"
+ 
+ #define __ALTERNATIVE_CFG_CB(oldinstr, feature, cfg_enabled, cb)  \
+diff --git a/arch/arm64/include/asm/checksum.h 
b/arch/arm64/include/asm/checksum.h
+index 0b6f5a7d4027..fd11e0d70e44 100644
+--- a/arch/arm64/include/asm/checksum.h
 b/arch/arm64/include/asm/checksum.h
+@@ -30,16 +30,17 @@ static inline __sum16 ip_fast_csum(const void *iph, 
unsigned int ihl)
+ {
+   __uint128_t tmp;
+   u64 sum;
++  int n = ihl; /* we want it signed */
+ 
+   tmp = *(const __uint128_t *)iph;
+   iph += 16;
+-  ihl -= 4;
++  n -= 4;
+   tmp += 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-07-31 Thread Mike Pagano
commit: 4be1d21e5760af6acabcd96eb6f872b1e6ceb10e
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Jul 31 18:00:16 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Jul 31 18:00:16 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4be1d21e

Linux patch 4.19.136

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |   4 +
 1135_linux-4.19.136.patch | 507 ++
 2 files changed, 511 insertions(+)

diff --git a/_README b/_README
index ea4b4c9..b50ea6d 100644
--- a/_README
+++ b/_README
@@ -579,6 +579,10 @@ Patch:  1134_linux-4.19.135.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.135
 
+Patch:  1135_linux-4.19.136.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.136
+
 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/1135_linux-4.19.136.patch b/1135_linux-4.19.136.patch
new file mode 100644
index 000..3e3d251
--- /dev/null
+++ b/1135_linux-4.19.136.patch
@@ -0,0 +1,507 @@
+diff --git a/Makefile b/Makefile
+index 1253143f3f6f..a76c159bb605 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 135
++SUBLEVEL = 136
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/drivers/base/regmap/regmap-debugfs.c 
b/drivers/base/regmap/regmap-debugfs.c
+index 056e34ce1edd..182b1908edec 100644
+--- a/drivers/base/regmap/regmap-debugfs.c
 b/drivers/base/regmap/regmap-debugfs.c
+@@ -209,6 +209,9 @@ static ssize_t regmap_read_debugfs(struct regmap *map, 
unsigned int from,
+   if (*ppos < 0 || !count)
+   return -EINVAL;
+ 
++  if (count > (PAGE_SIZE << (MAX_ORDER - 1)))
++  count = PAGE_SIZE << (MAX_ORDER - 1);
++
+   buf = kmalloc(count, GFP_KERNEL);
+   if (!buf)
+   return -ENOMEM;
+@@ -357,6 +360,9 @@ static ssize_t regmap_reg_ranges_read_file(struct file 
*file,
+   if (*ppos < 0 || !count)
+   return -EINVAL;
+ 
++  if (count > (PAGE_SIZE << (MAX_ORDER - 1)))
++  count = PAGE_SIZE << (MAX_ORDER - 1);
++
+   buf = kmalloc(count, GFP_KERNEL);
+   if (!buf)
+   return -ENOMEM;
+diff --git a/drivers/net/wan/x25_asy.c b/drivers/net/wan/x25_asy.c
+index 4f25c2d8fff0..6fe9695a5f18 100644
+--- a/drivers/net/wan/x25_asy.c
 b/drivers/net/wan/x25_asy.c
+@@ -183,7 +183,7 @@ static inline void x25_asy_unlock(struct x25_asy *sl)
+   netif_wake_queue(sl->dev);
+ }
+ 
+-/* Send one completely decapsulated IP datagram to the IP layer. */
++/* Send an LAPB frame to the LAPB module to process. */
+ 
+ static void x25_asy_bump(struct x25_asy *sl)
+ {
+@@ -195,13 +195,12 @@ static void x25_asy_bump(struct x25_asy *sl)
+   count = sl->rcount;
+   dev->stats.rx_bytes += count;
+ 
+-  skb = dev_alloc_skb(count+1);
++  skb = dev_alloc_skb(count);
+   if (skb == NULL) {
+   netdev_warn(sl->dev, "memory squeeze, dropping packet\n");
+   dev->stats.rx_dropped++;
+   return;
+   }
+-  skb_push(skb, 1);   /* LAPB internal control */
+   skb_put_data(skb, sl->rbuff, count);
+   skb->protocol = x25_type_trans(skb, sl->dev);
+   err = lapb_data_received(skb->dev, skb);
+@@ -209,7 +208,6 @@ static void x25_asy_bump(struct x25_asy *sl)
+   kfree_skb(skb);
+   printk(KERN_DEBUG "x25_asy: data received err - %d\n", err);
+   } else {
+-  netif_rx(skb);
+   dev->stats.rx_packets++;
+   }
+ }
+@@ -356,12 +354,21 @@ static netdev_tx_t x25_asy_xmit(struct sk_buff *skb,
+  */
+ 
+ /*
+- *Called when I frame data arrives. We did the work above - throw it
+- *at the net layer.
++ *Called when I frame data arrive. We add a pseudo header for upper
++ *layers and pass it to upper layers.
+  */
+ 
+ static int x25_asy_data_indication(struct net_device *dev, struct sk_buff 
*skb)
+ {
++  if (skb_cow(skb, 1)) {
++  kfree_skb(skb);
++  return NET_RX_DROP;
++  }
++  skb_push(skb, 1);
++  skb->data[0] = X25_IFACE_DATA;
++
++  skb->protocol = x25_type_trans(skb, dev);
++
+   return netif_rx(skb);
+ }
+ 
+@@ -657,7 +664,7 @@ static void x25_asy_unesc(struct x25_asy *sl, unsigned 
char s)
+   switch (s) {
+   case X25_END:
+   if (!test_and_clear_bit(SLF_ERROR, >flags) &&
+-  sl->rcount > 2)
++  sl->rcount >= 2)
+   x25_asy_bump(sl);
+   clear_bit(SLF_ESCAPE, >flags);
+   sl->rcount = 0;
+diff --git a/include/linux/tcp.h b/include/linux/tcp.h
+index 4374196b98ea..1192f1e76015 100644
+--- a/include/linux/tcp.h
 b/include/linux/tcp.h
+@@ -225,6 +225,8 @@ struct tcp_sock {
+   } rack;
+   u16 advmss; 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-07-29 Thread Mike Pagano
commit: 3331206aec5172babd799da4bcdba9dce0414836
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jul 29 12:32:52 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jul 29 12:32:52 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3331206a

Linux patch 4.19.135

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1134_linux-4.19.135.patch | 2787 +
 2 files changed, 2791 insertions(+)

diff --git a/_README b/_README
index ceb4a9f..ea4b4c9 100644
--- a/_README
+++ b/_README
@@ -575,6 +575,10 @@ Patch:  1133_linux-4.19.134.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.134
 
+Patch:  1134_linux-4.19.135.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.135
+
 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/1134_linux-4.19.135.patch b/1134_linux-4.19.135.patch
new file mode 100644
index 000..6a3f927
--- /dev/null
+++ b/1134_linux-4.19.135.patch
@@ -0,0 +1,2787 @@
+diff --git a/Makefile b/Makefile
+index 1e195471eb91..1253143f3f6f 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 134
++SUBLEVEL = 135
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+@@ -485,7 +485,7 @@ ifeq ($(cc-name),clang)
+ ifneq ($(CROSS_COMPILE),)
+ CLANG_FLAGS   += --target=$(notdir $(CROSS_COMPILE:%-=%))
+ GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)elfedit))
+-CLANG_FLAGS   += --prefix=$(GCC_TOOLCHAIN_DIR)
++CLANG_FLAGS   += --prefix=$(GCC_TOOLCHAIN_DIR)$(notdir $(CROSS_COMPILE))
+ GCC_TOOLCHAIN := $(realpath $(GCC_TOOLCHAIN_DIR)/..)
+ endif
+ ifneq ($(GCC_TOOLCHAIN),)
+diff --git a/arch/arm64/kernel/debug-monitors.c 
b/arch/arm64/kernel/debug-monitors.c
+index 93ee34dee9f2..501e835c6500 100644
+--- a/arch/arm64/kernel/debug-monitors.c
 b/arch/arm64/kernel/debug-monitors.c
+@@ -392,14 +392,14 @@ void user_rewind_single_step(struct task_struct *task)
+* If single step is active for this thread, then set SPSR.SS
+* to 1 to avoid returning to the active-pending state.
+*/
+-  if (test_ti_thread_flag(task_thread_info(task), TIF_SINGLESTEP))
++  if (test_tsk_thread_flag(task, TIF_SINGLESTEP))
+   set_regs_spsr_ss(task_pt_regs(task));
+ }
+ NOKPROBE_SYMBOL(user_rewind_single_step);
+ 
+ void user_fastforward_single_step(struct task_struct *task)
+ {
+-  if (test_ti_thread_flag(task_thread_info(task), TIF_SINGLESTEP))
++  if (test_tsk_thread_flag(task, TIF_SINGLESTEP))
+   clear_regs_spsr_ss(task_pt_regs(task));
+ }
+ 
+diff --git a/arch/parisc/include/asm/atomic.h 
b/arch/parisc/include/asm/atomic.h
+index 118953d41763..6dd4171c9530 100644
+--- a/arch/parisc/include/asm/atomic.h
 b/arch/parisc/include/asm/atomic.h
+@@ -212,6 +212,8 @@ atomic64_set(atomic64_t *v, s64 i)
+   _atomic_spin_unlock_irqrestore(v, flags);
+ }
+ 
++#define atomic64_set_release(v, i)atomic64_set((v), (i))
++
+ static __inline__ s64
+ atomic64_read(const atomic64_t *v)
+ {
+diff --git a/arch/riscv/include/asm/barrier.h 
b/arch/riscv/include/asm/barrier.h
+index d4628e4b3a5e..f4c92c91aa04 100644
+--- a/arch/riscv/include/asm/barrier.h
 b/arch/riscv/include/asm/barrier.h
+@@ -69,8 +69,16 @@ do {
\
+  * The AQ/RL pair provides a RCpc critical section, but there's not really any
+  * way we can take advantage of that here because the ordering is only 
enforced
+  * on that one lock.  Thus, we're just doing a full fence.
++ *
++ * Since we allow writeX to be called from preemptive regions we need at least
++ * an "o" in the predecessor set to ensure device writes are visible before 
the
++ * task is marked as available for scheduling on a new hart.  While I don't 
see
++ * any concrete reason we need a full IO fence, it seems safer to just upgrade
++ * this in order to avoid any IO crossing a scheduling boundary.  In both
++ * instances the scheduler pairs this with an mb(), so nothing is necessary on
++ * the new hart.
+  */
+-#define smp_mb__after_spinlock()  RISCV_FENCE(rw,rw)
++#define smp_mb__after_spinlock()  RISCV_FENCE(iorw,iorw)
+ 
+ #include 
+ 
+diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
+index fa3b85b222e3..08e2f3a5f124 100644
+--- a/arch/x86/kernel/apic/io_apic.c
 b/arch/x86/kernel/apic/io_apic.c
+@@ -2323,12 +2323,12 @@ static int mp_irqdomain_create(int ioapic)
+   ip->irqdomain = irq_domain_create_linear(fn, hwirqs, cfg->ops,
+(void *)(long)ioapic);
+ 
+-  /* Release fw handle if it was allocated above */
+-  if (!cfg->dev)
+-  irq_domain_free_fwnode(fn);
+-
+-  if (!ip->irqdomain)
++  if (!ip->irqdomain) {
++ 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-07-16 Thread Mike Pagano
commit: f34853528f4ca6bac49dc07963829415f5345ea5
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Jul 16 11:17:09 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Jul 16 11:17:09 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=f3485352

Linux patch 4.19.133

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1132_linux-4.19.133.patch | 2229 +
 2 files changed, 2233 insertions(+)

diff --git a/_README b/_README
index 32e6309..ab738e3 100644
--- a/_README
+++ b/_README
@@ -567,6 +567,10 @@ Patch:  1131_linux-4.19.132.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.132
 
+Patch:  1132_linux-4.19.133.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.133
+
 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/1132_linux-4.19.133.patch b/1132_linux-4.19.133.patch
new file mode 100644
index 000..fe44653
--- /dev/null
+++ b/1132_linux-4.19.133.patch
@@ -0,0 +1,2229 @@
+diff --git a/Makefile b/Makefile
+index c46ce2ef8b57..a17c413ee5d6 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 132
++SUBLEVEL = 133
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arc/include/asm/elf.h b/arch/arc/include/asm/elf.h
+index aa2d6da9d187..12c74e826530 100644
+--- a/arch/arc/include/asm/elf.h
 b/arch/arc/include/asm/elf.h
+@@ -26,7 +26,7 @@
+ #define  R_ARC_32_PCREL   0x31
+ 
+ /*to set parameters in the core dumps */
+-#define ELF_ARCH  EM_ARCOMPACT
++#define ELF_ARCH  EM_ARC_INUSE
+ #define ELF_CLASS ELFCLASS32
+ 
+ #ifdef CONFIG_CPU_BIG_ENDIAN
+diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S
+index 85d9ea4a0acc..705a68208423 100644
+--- a/arch/arc/kernel/entry.S
 b/arch/arc/kernel/entry.S
+@@ -156,7 +156,6 @@ END(EV_Extension)
+ tracesys:
+   ; save EFA in case tracer wants the PC of traced task
+   ; using ERET won't work since next-PC has already committed
+-  lr  r12, [efa]
+   GET_CURR_TASK_FIELD_PTR   TASK_THREAD, r11
+   st  r12, [r11, THREAD_FAULT_ADDR]   ; thread.fault_address
+ 
+@@ -199,15 +198,9 @@ tracesys_exit:
+ ; Breakpoint TRAP
+ ; -
+ trap_with_param:
+-
+-  ; stop_pc info by gdb needs this info
+-  lr  r0, [efa]
++  mov r0, r12 ; EFA in case ptracer/gdb wants stop_pc
+   mov r1, sp
+ 
+-  ; Now that we have read EFA, it is safe to do "fake" rtie
+-  ;   and get out of CPU exception mode
+-  FAKE_RET_FROM_EXCPN
+-
+   ; Save callee regs in case gdb wants to have a look
+   ; SP will grow up by size of CALLEE Reg-File
+   ; NOTE: clobbers r12
+@@ -234,6 +227,10 @@ ENTRY(EV_Trap)
+ 
+   EXCEPTION_PROLOGUE
+ 
++  lr  r12, [efa]
++
++  FAKE_RET_FROM_EXCPN
++
+   ; TRAP 1   :breakpoints
+   ; Check ECR for trap with arg (PROLOGUE ensures r9 has ECR)
+   bmsk.f 0, r9, 7
+@@ -241,9 +238,6 @@ ENTRY(EV_Trap)
+ 
+   ; TRAP  (no param): syscall top level
+ 
+-  ; First return from Exception to pure K mode (Exception/IRQs renabled)
+-  FAKE_RET_FROM_EXCPN
+-
+   ; If syscall tracing ongoing, invoke pre-post-hooks
+   GET_CURR_THR_INFO_FLAGS   r10
+   btst r10, TIF_SYSCALL_TRACE
+diff --git a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi 
b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
+index f57acf8f66b9..75de8134b1d1 100644
+--- a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
 b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
+@@ -16,8 +16,10 @@
+   #interrupt-cells = <2>;
+   #address-cells = <1>;
+   #size-cells = <0>;
+-  spi-max-frequency = <300>;
++  spi-max-frequency = <960>;
+   spi-cs-high;
++  spi-cpol;
++  spi-cpha;
+ 
+   cpcap_adc: adc {
+   compatible = "motorola,mapphone-cpcap-adc";
+diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c
+index 529f4b5bbd3a..4bfefbec971a 100644
+--- a/arch/arm/mach-imx/pm-imx6.c
 b/arch/arm/mach-imx/pm-imx6.c
+@@ -497,14 +497,14 @@ static int __init imx6q_suspend_init(const struct 
imx6_pm_socdata *socdata)
+   if (!ocram_pool) {
+   pr_warn("%s: ocram pool unavailable!\n", __func__);
+   ret = -ENODEV;
+-  goto put_node;
++  goto put_device;
+   }
+ 
+   ocram_base = gen_pool_alloc(ocram_pool, MX6Q_SUSPEND_OCRAM_SIZE);
+   if (!ocram_base) {
+   pr_warn("%s: unable to alloc ocram!\n", __func__);
+   ret = -ENOMEM;
+-  goto put_node;
++  goto put_device;
+   }
+ 
+   

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-07-09 Thread Mike Pagano
commit: 510b56b3fdede5aece9a97da8fe7c80519691285
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Jul  9 12:11:58 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Jul  9 12:11:58 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=510b56b3

Linux patch 4.19.132

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1131_linux-4.19.132.patch | 1293 +
 2 files changed, 1297 insertions(+)

diff --git a/_README b/_README
index 6975213..32e6309 100644
--- a/_README
+++ b/_README
@@ -563,6 +563,10 @@ Patch:  1130_linux-4.19.131.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.131
 
+Patch:  1131_linux-4.19.132.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.132
+
 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/1131_linux-4.19.132.patch b/1131_linux-4.19.132.patch
new file mode 100644
index 000..f07851f
--- /dev/null
+++ b/1131_linux-4.19.132.patch
@@ -0,0 +1,1293 @@
+diff --git a/Makefile b/Makefile
+index 605a6a2e03dc..c46ce2ef8b57 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 131
++SUBLEVEL = 132
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
+index 9dab0ed1b227..b9da2cefb564 100644
+--- a/arch/mips/kernel/traps.c
 b/arch/mips/kernel/traps.c
+@@ -2096,6 +2096,7 @@ static void configure_status(void)
+ 
+   
change_c0_status(ST0_CU|ST0_MX|ST0_RE|ST0_FR|ST0_BEV|ST0_TS|ST0_KX|ST0_SX|ST0_UX,
+status_set);
++  back_to_back_c0_hazard();
+ }
+ 
+ unsigned int hwrena;
+diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c
+index d374f9b218b4..04bbf7e97fea 100644
+--- a/arch/s390/kernel/debug.c
 b/arch/s390/kernel/debug.c
+@@ -198,9 +198,10 @@ static debug_entry_t ***debug_areas_alloc(int 
pages_per_area, int nr_areas)
+   if (!areas)
+   goto fail_malloc_areas;
+   for (i = 0; i < nr_areas; i++) {
++  /* GFP_NOWARN to avoid user triggerable WARN, we handle fails */
+   areas[i] = kmalloc_array(pages_per_area,
+sizeof(debug_entry_t *),
+-   GFP_KERNEL);
++   GFP_KERNEL | __GFP_NOWARN);
+   if (!areas[i])
+   goto fail_malloc_areas2;
+   for (j = 0; j < pages_per_area; j++) {
+diff --git a/crypto/af_alg.c b/crypto/af_alg.c
+index 4fc8e6a7abb2..272879d7b0d1 100644
+--- a/crypto/af_alg.c
 b/crypto/af_alg.c
+@@ -133,21 +133,15 @@ EXPORT_SYMBOL_GPL(af_alg_release);
+ void af_alg_release_parent(struct sock *sk)
+ {
+   struct alg_sock *ask = alg_sk(sk);
+-  unsigned int nokey = ask->nokey_refcnt;
+-  bool last = nokey && !ask->refcnt;
++  unsigned int nokey = atomic_read(>nokey_refcnt);
+ 
+   sk = ask->parent;
+   ask = alg_sk(sk);
+ 
+-  local_bh_disable();
+-  bh_lock_sock(sk);
+-  ask->nokey_refcnt -= nokey;
+-  if (!last)
+-  last = !--ask->refcnt;
+-  bh_unlock_sock(sk);
+-  local_bh_enable();
++  if (nokey)
++  atomic_dec(>nokey_refcnt);
+ 
+-  if (last)
++  if (atomic_dec_and_test(>refcnt))
+   sock_put(sk);
+ }
+ EXPORT_SYMBOL_GPL(af_alg_release_parent);
+@@ -192,7 +186,7 @@ static int alg_bind(struct socket *sock, struct sockaddr 
*uaddr, int addr_len)
+ 
+   err = -EBUSY;
+   lock_sock(sk);
+-  if (ask->refcnt | ask->nokey_refcnt)
++  if (atomic_read(>refcnt))
+   goto unlock;
+ 
+   swap(ask->type, type);
+@@ -241,7 +235,7 @@ static int alg_setsockopt(struct socket *sock, int level, 
int optname,
+   int err = -EBUSY;
+ 
+   lock_sock(sk);
+-  if (ask->refcnt)
++  if (atomic_read(>refcnt) != atomic_read(>nokey_refcnt))
+   goto unlock;
+ 
+   type = ask->type;
+@@ -308,12 +302,14 @@ int af_alg_accept(struct sock *sk, struct socket 
*newsock, bool kern)
+ 
+   sk2->sk_family = PF_ALG;
+ 
+-  if (nokey || !ask->refcnt++)
++  if (atomic_inc_return_relaxed(>refcnt) == 1)
+   sock_hold(sk);
+-  ask->nokey_refcnt += nokey;
++  if (nokey) {
++  atomic_inc(>nokey_refcnt);
++  atomic_set(_sk(sk2)->nokey_refcnt, 1);
++  }
+   alg_sk(sk2)->parent = sk;
+   alg_sk(sk2)->type = type;
+-  alg_sk(sk2)->nokey_refcnt = nokey;
+ 
+   newsock->ops = type->ops;
+   newsock->state = SS_CONNECTED;
+diff --git a/crypto/algif_aead.c b/crypto/algif_aead.c
+index c40a8c7ee8ae..b4f16202ab7a 100644
+--- a/crypto/algif_aead.c
 b/crypto/algif_aead.c
+@@ -388,7 +388,7 @@ static int aead_check_key(struct socket *sock)
+   

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-07-01 Thread Mike Pagano
commit: 106ad7a70dd251d2984bf8cc3ce3600b3bd224a4
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jul  1 12:14:31 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jul  1 12:14:31 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=106ad7a7

Linux patch 4.19.131

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1130_linux-4.19.131.patch | 3602 +
 2 files changed, 3606 insertions(+)

diff --git a/_README b/_README
index d1af7f9..6975213 100644
--- a/_README
+++ b/_README
@@ -559,6 +559,10 @@ Patch:  1129_linux-4.19.130.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.130
 
+Patch:  1130_linux-4.19.131.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.131
+
 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/1130_linux-4.19.131.patch b/1130_linux-4.19.131.patch
new file mode 100644
index 000..7356bd1
--- /dev/null
+++ b/1130_linux-4.19.131.patch
@@ -0,0 +1,3602 @@
+diff --git a/Makefile b/Makefile
+index 6443cbd51f70..605a6a2e03dc 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 130
++SUBLEVEL = 131
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi
+index 2b219addeb44..273a31604579 100644
+--- a/arch/arm/boot/dts/bcm-nsp.dtsi
 b/arch/arm/boot/dts/bcm-nsp.dtsi
+@@ -249,10 +249,10 @@
+   status = "disabled";
+   };
+ 
+-  mailbox: mailbox@25000 {
++  mailbox: mailbox@25c00 {
+   compatible = "brcm,iproc-fa2-mbox";
+-  reg = <0x25000 0x445>;
+-  interrupts = ;
++  reg = <0x25c00 0x400>;
++  interrupts = ;
+   #mbox-cells = <1>;
+   brcm,rx-status-len = <32>;
+   brcm,use-bcm-hdr;
+diff --git a/arch/arm/boot/dts/omap4-duovero-parlor.dts 
b/arch/arm/boot/dts/omap4-duovero-parlor.dts
+index cfcac0d73851..93d6fb6db578 100644
+--- a/arch/arm/boot/dts/omap4-duovero-parlor.dts
 b/arch/arm/boot/dts/omap4-duovero-parlor.dts
+@@ -142,7 +142,7 @@
+   ethernet@gpmc {
+   reg = <5 0 0xff>;
+   interrupt-parent = <>;
+-  interrupts = <12 IRQ_TYPE_EDGE_FALLING>;/* gpio_44 */
++  interrupts = <12 IRQ_TYPE_LEVEL_LOW>;   /* gpio_44 */
+ 
+   phy-mode = "mii";
+ 
+diff --git a/arch/arm/mach-imx/pm-imx5.c b/arch/arm/mach-imx/pm-imx5.c
+index 868781fd460c..14c630c899c5 100644
+--- a/arch/arm/mach-imx/pm-imx5.c
 b/arch/arm/mach-imx/pm-imx5.c
+@@ -301,14 +301,14 @@ static int __init imx_suspend_alloc_ocram(
+   if (!ocram_pool) {
+   pr_warn("%s: ocram pool unavailable!\n", __func__);
+   ret = -ENODEV;
+-  goto put_node;
++  goto put_device;
+   }
+ 
+   ocram_base = gen_pool_alloc(ocram_pool, size);
+   if (!ocram_base) {
+   pr_warn("%s: unable to alloc ocram!\n", __func__);
+   ret = -ENOMEM;
+-  goto put_node;
++  goto put_device;
+   }
+ 
+   phys = gen_pool_virt_to_phys(ocram_pool, ocram_base);
+@@ -318,6 +318,8 @@ static int __init imx_suspend_alloc_ocram(
+   if (virt_out)
+   *virt_out = virt;
+ 
++put_device:
++  put_device(>dev);
+ put_node:
+   of_node_put(node);
+ 
+diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c
+index 14fdbaa6ee3a..19c87b52c001 100644
+--- a/arch/arm64/kernel/fpsimd.c
 b/arch/arm64/kernel/fpsimd.c
+@@ -304,7 +304,7 @@ static unsigned int find_supported_vector_length(unsigned 
int vl)
+   return sve_vl_from_vq(bit_to_vq(bit));
+ }
+ 
+-#ifdef CONFIG_SYSCTL
++#if defined(CONFIG_ARM64_SVE) && defined(CONFIG_SYSCTL)
+ 
+ static int sve_proc_do_default_vl(struct ctl_table *table, int write,
+ void __user *buffer, size_t *lenp,
+@@ -350,9 +350,9 @@ static int __init sve_sysctl_init(void)
+   return 0;
+ }
+ 
+-#else /* ! CONFIG_SYSCTL */
++#else /* ! (CONFIG_ARM64_SVE && CONFIG_SYSCTL) */
+ static int __init sve_sysctl_init(void) { return 0; }
+-#endif /* ! CONFIG_SYSCTL */
++#endif /* ! (CONFIG_ARM64_SVE && CONFIG_SYSCTL) */
+ 
+ #define ZREG(sve_state, vq, n) ((char *)(sve_state) + \
+   (SVE_SIG_ZREG_OFFSET(vq, n) - SVE_SIG_REGS_OFFSET))
+diff --git a/arch/arm64/kernel/perf_regs.c b/arch/arm64/kernel/perf_regs.c
+index 0bbac612146e..666b225aeb3a 100644
+--- a/arch/arm64/kernel/perf_regs.c
 b/arch/arm64/kernel/perf_regs.c
+@@ -15,15 +15,34 @@ u64 perf_reg_value(struct pt_regs *regs, int idx)
+   return 0;
+ 
+   /*
+-   * Compat (i.e. 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-06-29 Thread Mike Pagano
commit: 915801955493b731f4996c28a247c177da85b6dc
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Jun 29 17:41:23 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Jun 29 17:41:23 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=91580195

Kernel patch enables gcc = v10.1+ optimizations for additional CPUs.

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |   4 +
 5013_enable-cpu-optimizations-for-gcc10.patch | 671 ++
 2 files changed, 675 insertions(+)

diff --git a/_README b/_README
index 3fde3ae..d1af7f9 100644
--- a/_README
+++ b/_README
@@ -598,3 +598,7 @@ Desc:   Kernel patch for >= gccv8 enables kernel >= v4.13 
optimizations for addi
 Patch:  5012_enable-cpu-optimizations-for-gcc91.patch
 From:   https://github.com/graysky2/kernel_gcc_patch/
 Desc:   Kernel patch enables gcc >= v9.1 optimizations for additional CPUs.
+
+Patch:  5013_enable-cpu-optimizations-for-gcc10.patch
+From:   https://github.com/graysky2/kernel_gcc_patch/
+Desc:   Kernel patch enables gcc = v10.1+ optimizations for additional CPUs.

diff --git a/5013_enable-cpu-optimizations-for-gcc10.patch 
b/5013_enable-cpu-optimizations-for-gcc10.patch
new file mode 100644
index 000..2a1e27d
--- /dev/null
+++ b/5013_enable-cpu-optimizations-for-gcc10.patch
@@ -0,0 +1,671 @@
+WARNING
+This patch works with gcc versions 10.1+ and with kernel versions 4.19-5.4 and 
should
+NOT be applied when compiling on older versions of gcc due to key name changes
+of the march flags introduced with the version 4.9 release of gcc.[1]
+
+Use the older version of this patch hosted on the same github for older
+versions of gcc.
+
+FEATURES
+This patch adds additional CPU options to the Linux kernel accessible under:
+ Processor type and features  --->
+  Processor family --->
+
+The expanded microarchitectures include:
+* AMD Improved K8-family
+* AMD K10-family
+* AMD Family 10h (Barcelona)
+* AMD Family 14h (Bobcat)
+* AMD Family 16h (Jaguar)
+* AMD Family 15h (Bulldozer)
+* AMD Family 15h (Piledriver)
+* AMD Family 15h (Steamroller)
+* AMD Family 15h (Excavator)
+* AMD Family 17h (Zen)
+* AMD Family 17h (Zen 2)
+* Intel Silvermont low-power processors
+* Intel Goldmont low-power processors (Apollo Lake and Denverton)
+* Intel Goldmont Plus low-power processors (Gemini Lake)
+* 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)
+* Intel 5th Gen Core i3/i5/i7 (Broadwell)
+* Intel 6th Gen Core i3/i5/i7 (Skylake)
+* Intel 6th Gen Core i7/i9 (Skylake X)
+* Intel 8th Gen Core i3/i5/i7 (Cannon Lake)
+* Intel 10th Gen Core i7/i9 (Ice Lake)
+* Intel Xeon (Cascade Lake)
+* Intel Xeon (Cooper Lake)
+* Intel 3rd Gen 10nm++  i3/i5/i7/i9-family (Tiger Lake)
+
+It also offers to compile passing the 'native' option which, "selects the CPU
+to generate code for at compilation time by determining the processor type of
+the compiling machine. Using -march=native enables all instruction subsets
+supported by the local machine and will produce code optimized for the local
+machine under the constraints of the selected instruction set."[2]
+
+Do NOT try using the 'native' option on AMD Piledriver, Steamroller, or
+Excavator CPUs (-march=bdver{2,3,4} flag). The build will error out due the
+kernel's objtool issue with these.[3a,b]
+
+MINOR NOTES
+This patch also changes 'atom' to 'bonnell' in accordance with the gcc v4.9
+changes. Note that upstream is using the deprecated 'match=atom' flags when I
+believe it should use the newer 'march=bonnell' flag for atom processors.[4]
+
+It is not recommended to compile on Atom-CPUs with the 'native' option.[5] The
+recommendation is to use the 'atom' option instead.
+
+BENEFITS
+Small but real speed increases are measurable using a make endpoint comparing
+a generic kernel to one built with one of the respective microarchs.
+
+See the following experimental evidence supporting this statement:
+https://github.com/graysky2/kernel_gcc_patch
+
+REQUIREMENTS
+linux version 4.19-lts and 5.4-lts
+gcc version >=10.1
+
+ACKNOWLEDGMENTS
+This patch builds on the seminal work by Jeroen.[6]
+
+REFERENCES
+1.  https://gcc.gnu.org/gcc-4.9/changes.html
+2.  https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html
+3a. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95671#c11
+3b. https://github.com/graysky2/kernel_gcc_patch/issues/55
+4.  https://bugzilla.kernel.org/show_bug.cgi?id=77461
+5.  https://github.com/graysky2/kernel_gcc_patch/issues/15
+6.  http://www.linuxforge.net/docs/linux/linux-gcc.php
+
+--- a/arch/x86/include/asm/module.h2020-06-10 15:35:02.0 -0400
 b/arch/x86/include/asm/module.h2020-06-15 10:31:48.627486708 -0400
+@@ -25,6 +25,40 @@ struct mod_arch_specific {
+ #define MODULE_PROC_FAMILY "586MMX "
+ #elif defined CONFIG_MCORE2

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-06-10 Thread Mike Pagano
commit: 069298453b1b7c35b1eefed4761dcd07e2b48c5d
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jun 10 21:27:28 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jun 10 21:27:28 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=06929845

Linux patch 4.19.128

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1127_linux-4.19.128.patch | 1255 +
 2 files changed, 1259 insertions(+)

diff --git a/_README b/_README
index 730cc1c..123365d 100644
--- a/_README
+++ b/_README
@@ -547,6 +547,10 @@ Patch:  1126_linux-4.19.127.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.127
 
+Patch:  1127_linux-4.19.128.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.128
+
 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/1127_linux-4.19.128.patch b/1127_linux-4.19.128.patch
new file mode 100644
index 000..f2b9711
--- /dev/null
+++ b/1127_linux-4.19.128.patch
@@ -0,0 +1,1255 @@
+diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu 
b/Documentation/ABI/testing/sysfs-devices-system-cpu
+index b492fb6057c9..b9c14c11efc5 100644
+--- a/Documentation/ABI/testing/sysfs-devices-system-cpu
 b/Documentation/ABI/testing/sysfs-devices-system-cpu
+@@ -478,6 +478,7 @@ What:  /sys/devices/system/cpu/vulnerabilities
+   /sys/devices/system/cpu/vulnerabilities/spec_store_bypass
+   /sys/devices/system/cpu/vulnerabilities/l1tf
+   /sys/devices/system/cpu/vulnerabilities/mds
++  /sys/devices/system/cpu/vulnerabilities/srbds
+   /sys/devices/system/cpu/vulnerabilities/tsx_async_abort
+   /sys/devices/system/cpu/vulnerabilities/itlb_multihit
+ Date: January 2018
+diff --git a/Documentation/admin-guide/hw-vuln/index.rst 
b/Documentation/admin-guide/hw-vuln/index.rst
+index 0795e3c2643f..ca4dbdd9016d 100644
+--- a/Documentation/admin-guide/hw-vuln/index.rst
 b/Documentation/admin-guide/hw-vuln/index.rst
+@@ -14,3 +14,4 @@ are configurable at compile, boot or run time.
+mds
+tsx_async_abort
+multihit.rst
++   special-register-buffer-data-sampling.rst
+diff --git 
a/Documentation/admin-guide/hw-vuln/special-register-buffer-data-sampling.rst 
b/Documentation/admin-guide/hw-vuln/special-register-buffer-data-sampling.rst
+new file mode 100644
+index ..47b1b3afac99
+--- /dev/null
 
b/Documentation/admin-guide/hw-vuln/special-register-buffer-data-sampling.rst
+@@ -0,0 +1,149 @@
++.. SPDX-License-Identifier: GPL-2.0
++
++SRBDS - Special Register Buffer Data Sampling
++=
++
++SRBDS is a hardware vulnerability that allows MDS :doc:`mds` techniques to
++infer values returned from special register accesses.  Special register
++accesses are accesses to off core registers.  According to Intel's evaluation,
++the special register reads that have a security expectation of privacy are
++RDRAND, RDSEED and SGX EGETKEY.
++
++When RDRAND, RDSEED and EGETKEY instructions are used, the data is moved
++to the core through the special register mechanism that is susceptible
++to MDS attacks.
++
++Affected processors
++
++Core models (desktop, mobile, Xeon-E3) that implement RDRAND and/or RDSEED may
++be affected.
++
++A processor is affected by SRBDS if its Family_Model and stepping is
++in the following list, with the exception of the listed processors
++exporting MDS_NO while Intel TSX is available yet not enabled. The
++latter class of processors are only affected when Intel TSX is enabled
++by software using TSX_CTRL_MSR otherwise they are not affected.
++
++  =    
++  common nameFamily_Model  Stepping
++  =    
++  IvyBridge  06_3AHAll
++
++  Haswell06_3CHAll
++  Haswell_L  06_45HAll
++  Haswell_G  06_46HAll
++
++  Broadwell_G06_47HAll
++  Broadwell  06_3DHAll
++
++  Skylake_L  06_4EHAll
++  Skylake06_5EHAll
++
++  Kabylake_L 06_8EH<= 0xC
++  Kabylake   06_9EH<= 0xD
++  =    
++
++Related CVEs
++
++
++The following CVE entry is related to this SRBDS issue:
++
++==  =  =
++CVE-2020-0543   SRBDS  Special Register Buffer Data Sampling
++==  =  =
++
++Attack scenarios
++
++An unprivileged user can extract values returned from RDRAND and RDSEED
++executed on another core or sibling thread using MDS techniques.
++
++
++Mitigation mechanism
++---
++Intel will release microcode updates that modify the RDRAND, RDSEED, and

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-06-07 Thread Mike Pagano
commit: 87ab5b81783b4aefcc76370436fd8dbf7f3794c2
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Jun  7 21:52:00 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Jun  7 21:52:31 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=87ab5b81

Linux patch 4.19.127

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |   4 +
 1126_linux-4.19.127.patch | 880 ++
 2 files changed, 884 insertions(+)

diff --git a/_README b/_README
index 4d5b261..730cc1c 100644
--- a/_README
+++ b/_README
@@ -543,6 +543,10 @@ Patch:  1125_linux-4.19.126.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.126
 
+Patch:  1126_linux-4.19.127.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.127
+
 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/1126_linux-4.19.127.patch b/1126_linux-4.19.127.patch
new file mode 100644
index 000..24f200b
--- /dev/null
+++ b/1126_linux-4.19.127.patch
@@ -0,0 +1,880 @@
+diff --git a/Makefile b/Makefile
+index f8da10c40271..a93e38cdd61b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 126
++SUBLEVEL = 127
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c
+index 89c97dcfa360..c10994daee39 100644
+--- a/arch/arc/kernel/setup.c
 b/arch/arc/kernel/setup.c
+@@ -15,6 +15,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 
+@@ -406,12 +407,12 @@ static void arc_chk_core_config(void)
+   if ((unsigned int)__arc_dccm_base != cpu->dccm.base_addr)
+   panic("Linux built with incorrect DCCM Base address\n");
+ 
+-  if (CONFIG_ARC_DCCM_SZ != cpu->dccm.sz)
++  if (CONFIG_ARC_DCCM_SZ * SZ_1K != cpu->dccm.sz)
+   panic("Linux built with incorrect DCCM Size\n");
+ #endif
+ 
+ #ifdef CONFIG_ARC_HAS_ICCM
+-  if (CONFIG_ARC_ICCM_SZ != cpu->iccm.sz)
++  if (CONFIG_ARC_ICCM_SZ * SZ_1K != cpu->iccm.sz)
+   panic("Linux built with incorrect ICCM Size\n");
+ #endif
+ 
+diff --git a/arch/arc/plat-eznps/Kconfig b/arch/arc/plat-eznps/Kconfig
+index ce908e2c5282..71378bfec8d0 100644
+--- a/arch/arc/plat-eznps/Kconfig
 b/arch/arc/plat-eznps/Kconfig
+@@ -6,6 +6,7 @@
+ 
+ menuconfig ARC_PLAT_EZNPS
+   bool "\"EZchip\" ARC dev platform"
++  depends on ISA_ARCOMPACT
+   select CPU_BIG_ENDIAN
+   select CLKSRC_NPS if !PHYS_ADDR_T_64BIT
+   select EZNPS_GIC
+diff --git a/arch/powerpc/platforms/powernv/opal-imc.c 
b/arch/powerpc/platforms/powernv/opal-imc.c
+index 649fb268f446..5399682797d0 100644
+--- a/arch/powerpc/platforms/powernv/opal-imc.c
 b/arch/powerpc/platforms/powernv/opal-imc.c
+@@ -63,10 +63,6 @@ static void export_imc_mode_and_cmd(struct device_node 
*node,
+ 
+   imc_debugfs_parent = debugfs_create_dir("imc", powerpc_debugfs_root);
+ 
+-  /*
+-   * Return here, either because 'imc' directory already exists,
+-   * Or failed to create a new one.
+-   */
+   if (!imc_debugfs_parent)
+   return;
+ 
+@@ -139,7 +135,6 @@ static int imc_get_mem_addr_nest(struct device_node *node,
+   }
+ 
+   pmu_ptr->imc_counter_mmaped = true;
+-  export_imc_mode_and_cmd(node, pmu_ptr);
+   kfree(base_addr_arr);
+   kfree(chipid_arr);
+   return 0;
+@@ -155,7 +150,7 @@ error:
+  *and domain as the inputs.
+  * Allocates memory for the struct imc_pmu, sets up its domain, size and 
offsets
+  */
+-static int imc_pmu_create(struct device_node *parent, int pmu_index, int 
domain)
++static struct imc_pmu *imc_pmu_create(struct device_node *parent, int 
pmu_index, int domain)
+ {
+   int ret = 0;
+   struct imc_pmu *pmu_ptr;
+@@ -163,27 +158,23 @@ static int imc_pmu_create(struct device_node *parent, 
int pmu_index, int domain)
+ 
+   /* Return for unknown domain */
+   if (domain < 0)
+-  return -EINVAL;
++  return NULL;
+ 
+   /* memory for pmu */
+   pmu_ptr = kzalloc(sizeof(*pmu_ptr), GFP_KERNEL);
+   if (!pmu_ptr)
+-  return -ENOMEM;
++  return NULL;
+ 
+   /* Set the domain */
+   pmu_ptr->domain = domain;
+ 
+   ret = of_property_read_u32(parent, "size", _ptr->counter_mem_size);
+-  if (ret) {
+-  ret = -EINVAL;
++  if (ret)
+   goto free_pmu;
+-  }
+ 
+   if (!of_property_read_u32(parent, "offset", )) {
+-  if (imc_get_mem_addr_nest(parent, pmu_ptr, offset)) {
+-  ret = -EINVAL;
++  if (imc_get_mem_addr_nest(parent, pmu_ptr, offset))
+   goto free_pmu;
+-  }
+   }
+ 
+   /* Function to register IMC pmu */
+@@ -194,14 +185,14 @@ static int 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-06-03 Thread Mike Pagano
commit: dfe0c2ff7fdae9e0680e678931049d7b1df3d35d
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jun  3 11:41:00 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jun  3 11:41:00 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=dfe0c2ff

Linux patch 4.19.126

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1125_linux-4.19.126.patch | 3160 +
 2 files changed, 3164 insertions(+)

diff --git a/_README b/_README
index a36c8a4..4d5b261 100644
--- a/_README
+++ b/_README
@@ -539,6 +539,10 @@ Patch:  1124_linux-4.19.125.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.125
 
+Patch:  1125_linux-4.19.126.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.126
+
 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/1125_linux-4.19.126.patch b/1125_linux-4.19.126.patch
new file mode 100644
index 000..6cd993d
--- /dev/null
+++ b/1125_linux-4.19.126.patch
@@ -0,0 +1,3160 @@
+diff --git a/Makefile b/Makefile
+index 93c63bda7115..f8da10c40271 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 125
++SUBLEVEL = 126
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/compressed/vmlinux.lds.S 
b/arch/arm/boot/compressed/vmlinux.lds.S
+index 2b963d8e76dd..89a8f7588c78 100644
+--- a/arch/arm/boot/compressed/vmlinux.lds.S
 b/arch/arm/boot/compressed/vmlinux.lds.S
+@@ -46,7 +46,7 @@ SECTIONS
+   }
+   .table : ALIGN(4) {
+ _table_start = .;
+-LONG(ZIMAGE_MAGIC(2))
++LONG(ZIMAGE_MAGIC(4))
+ LONG(ZIMAGE_MAGIC(0x5a534c4b))
+ LONG(ZIMAGE_MAGIC(__piggy_size_addr - _start))
+ LONG(ZIMAGE_MAGIC(_kernel_bss_size))
+diff --git a/arch/arm/boot/dts/bcm-hr2.dtsi b/arch/arm/boot/dts/bcm-hr2.dtsi
+index e4d49731287f..e35398cc60a0 100644
+--- a/arch/arm/boot/dts/bcm-hr2.dtsi
 b/arch/arm/boot/dts/bcm-hr2.dtsi
+@@ -75,7 +75,7 @@
+   timer@20200 {
+   compatible = "arm,cortex-a9-global-timer";
+   reg = <0x20200 0x100>;
+-  interrupts = ;
++  interrupts = ;
+   clocks = <_clk>;
+   };
+ 
+@@ -83,7 +83,7 @@
+   compatible = "arm,cortex-a9-twd-timer";
+   reg = <0x20600 0x20>;
+   interrupts = ;
++IRQ_TYPE_EDGE_RISING)>;
+   clocks = <_clk>;
+   };
+ 
+@@ -91,7 +91,7 @@
+   compatible = "arm,cortex-a9-twd-wdt";
+   reg = <0x20620 0x20>;
+   interrupts = ;
++IRQ_TYPE_EDGE_RISING)>;
+   clocks = <_clk>;
+   };
+ 
+diff --git a/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts 
b/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts
+index 5fcadb9cf992..9f7145b1cc5e 100644
+--- a/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts
 b/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts
+@@ -25,7 +25,7 @@
+ 
+   leds {
+   act {
+-  gpios = < 47 GPIO_ACTIVE_HIGH>;
++  gpios = < 47 GPIO_ACTIVE_LOW>;
+   };
+   };
+ 
+diff --git a/arch/arm/boot/dts/imx6q-b450v3.dts 
b/arch/arm/boot/dts/imx6q-b450v3.dts
+index 3ec58500e9c2..25bf45659737 100644
+--- a/arch/arm/boot/dts/imx6q-b450v3.dts
 b/arch/arm/boot/dts/imx6q-b450v3.dts
+@@ -65,13 +65,6 @@
+   };
+ };
+ 
+- {
+-  assigned-clocks = < IMX6QDL_CLK_LDB_DI0_SEL>,
+-< IMX6QDL_CLK_LDB_DI1_SEL>;
+-  assigned-clock-parents = < IMX6QDL_CLK_PLL3_USB_OTG>,
+-   < IMX6QDL_CLK_PLL3_USB_OTG>;
+-};
+-
+  {
+   status = "okay";
+ 
+diff --git a/arch/arm/boot/dts/imx6q-b650v3.dts 
b/arch/arm/boot/dts/imx6q-b650v3.dts
+index 5650a9b11091..0326711a8700 100644
+--- a/arch/arm/boot/dts/imx6q-b650v3.dts
 b/arch/arm/boot/dts/imx6q-b650v3.dts
+@@ -65,13 +65,6 @@
+   };
+ };
+ 
+- {
+-  assigned-clocks = < IMX6QDL_CLK_LDB_DI0_SEL>,
+-< IMX6QDL_CLK_LDB_DI1_SEL>;
+-  assigned-clock-parents = < IMX6QDL_CLK_PLL3_USB_OTG>,
+-   < IMX6QDL_CLK_PLL3_USB_OTG>;
+-};
+-
+  {
+   status = "okay";
+ 
+diff --git a/arch/arm/boot/dts/imx6q-b850v3.dts 
b/arch/arm/boot/dts/imx6q-b850v3.dts
+index 044a5bebe1c5..612f782ddaaa 100644
+--- a/arch/arm/boot/dts/imx6q-b850v3.dts
 b/arch/arm/boot/dts/imx6q-b850v3.dts
+@@ -53,17 +53,6 @@
+   };
+ };
+ 
+- {
+-  assigned-clocks = < IMX6QDL_CLK_LDB_DI0_SEL>,
+-< IMX6QDL_CLK_LDB_DI1_SEL>,
+-< IMX6QDL_CLK_IPU1_DI0_PRE_SEL>,
+-< 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-05-27 Thread Mike Pagano
commit: 1169eada98fc086c3d9e56cfa8212f7ee5f73dc7
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May 27 16:24:47 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May 27 16:24:47 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=1169eada

Linux patch 4.19.125

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1124_linux-4.19.125.patch | 2436 +
 2 files changed, 2440 insertions(+)

diff --git a/_README b/_README
index 63f9a11..a36c8a4 100644
--- a/_README
+++ b/_README
@@ -535,6 +535,10 @@ Patch:  1123_linux-4.19.124.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.124
 
+Patch:  1124_linux-4.19.125.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.125
+
 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/1124_linux-4.19.125.patch b/1124_linux-4.19.125.patch
new file mode 100644
index 000..d340902
--- /dev/null
+++ b/1124_linux-4.19.125.patch
@@ -0,0 +1,2436 @@
+diff --git a/Makefile b/Makefile
+index 292c92c8369d..93c63bda7115 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 124
++SUBLEVEL = 125
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/include/asm/futex.h b/arch/arm/include/asm/futex.h
+index ffebe7b7a5b7..91ca80035fc4 100644
+--- a/arch/arm/include/asm/futex.h
 b/arch/arm/include/asm/futex.h
+@@ -163,8 +163,13 @@ arch_futex_atomic_op_inuser(int op, int oparg, int *oval, 
u32 __user *uaddr)
+   preempt_enable();
+ #endif
+ 
+-  if (!ret)
+-  *oval = oldval;
++  /*
++   * Store unconditionally. If ret != 0 the extra store is the least
++   * of the worries but GCC cannot figure out that __futex_atomic_op()
++   * is either setting ret to -EFAULT or storing the old value in
++   * oldval which results in a uninitialized warning at the call site.
++   */
++  *oval = oldval;
+ 
+   return ret;
+ }
+diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
+index 6f475dc5829b..f38d153d2586 100644
+--- a/arch/powerpc/Kconfig
 b/arch/powerpc/Kconfig
+@@ -139,7 +139,7 @@ config PPC
+   select ARCH_HAS_MEMBARRIER_CALLBACKS
+   select ARCH_HAS_SCALED_CPUTIME  if VIRT_CPU_ACCOUNTING_NATIVE
+   select ARCH_HAS_SG_CHAIN
+-  select ARCH_HAS_STRICT_KERNEL_RWX   if ((PPC_BOOK3S_64 || PPC32) && 
!RELOCATABLE && !HIBERNATION)
++  select ARCH_HAS_STRICT_KERNEL_RWX   if (PPC32 && !HIBERNATION)
+   select ARCH_HAS_TICK_BROADCAST  if GENERIC_CLOCKEVENTS_BROADCAST
+   select ARCH_HAS_UACCESS_FLUSHCACHE  if PPC64
+   select ARCH_HAS_UBSAN_SANITIZE_ALL
+diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c
+index 9713d4e8c22b..6558617bd2ce 100644
+--- a/arch/riscv/kernel/setup.c
 b/arch/riscv/kernel/setup.c
+@@ -19,6 +19,7 @@
+  * to the Free Software Foundation, Inc.,
+  */
+ 
++#include 
+ #include 
+ #include 
+ #include 
+@@ -187,6 +188,7 @@ static void __init setup_bootmem(void)
+ 
+   set_max_mapnr(PFN_DOWN(mem_size));
+   max_low_pfn = PFN_DOWN(memblock_end_of_DRAM());
++  max_pfn = max_low_pfn;
+ 
+ #ifdef CONFIG_BLK_DEV_INITRD
+   setup_initrd();
+diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
+index 1ca76ca944ba..53dc8492f02f 100644
+--- a/arch/x86/kernel/apic/apic.c
 b/arch/x86/kernel/apic/apic.c
+@@ -345,8 +345,6 @@ static void __setup_APIC_LVTT(unsigned int clocks, int 
oneshot, int irqen)
+* According to Intel, MFENCE can do the serialization here.
+*/
+   asm volatile("mfence" : : : "memory");
+-
+-  printk_once(KERN_DEBUG "TSC deadline timer enabled\n");
+   return;
+   }
+ 
+@@ -545,7 +543,7 @@ static DEFINE_PER_CPU(struct clock_event_device, 
lapic_events);
+ #define DEADLINE_MODEL_MATCH_REV(model, rev)  \
+   { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, (unsigned long)rev }
+ 
+-static u32 hsx_deadline_rev(void)
++static __init u32 hsx_deadline_rev(void)
+ {
+   switch (boot_cpu_data.x86_stepping) {
+   case 0x02: return 0x3a; /* EP */
+@@ -555,7 +553,7 @@ static u32 hsx_deadline_rev(void)
+   return ~0U;
+ }
+ 
+-static u32 bdx_deadline_rev(void)
++static __init u32 bdx_deadline_rev(void)
+ {
+   switch (boot_cpu_data.x86_stepping) {
+   case 0x02: return 0x0011;
+@@ -567,7 +565,7 @@ static u32 bdx_deadline_rev(void)
+   return ~0U;
+ }
+ 
+-static u32 skx_deadline_rev(void)
++static __init u32 skx_deadline_rev(void)
+ {
+   switch (boot_cpu_data.x86_stepping) {
+   case 0x03: return 0x01000136;
+@@ -580,7 +578,7 @@ static u32 skx_deadline_rev(void)
+   return ~0U;
+ }
+ 
+-static const struct x86_cpu_id deadline_match[] = {
++static 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-05-20 Thread Mike Pagano
commit: f342d08590afb25979bde4bf6cde10542a9f27e7
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May 20 11:29:45 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May 20 11:29:45 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=f342d085

Remove redundant patch: x86: Fix early boot crash on gcc-10

Signed-off-by: Mike Pagano  gentoo.org>

 _README|   4 -
 1700_x86-gcc-10-early-boot-crash-fix.patch | 131 -
 2 files changed, 135 deletions(-)

diff --git a/_README b/_README
index 4cf06a4..63f9a11 100644
--- a/_README
+++ b/_README
@@ -543,10 +543,6 @@ 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:  1700_x86-gcc-10-early-boot-crash-fix.patch
-From:   
https://https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/patch/?id=f670269a42bfdd2c83a1118cc3d1b475547eac22
-Desc:   x86: Fix early boot crash on gcc-10
-
 Patch:  2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
 From:   
https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-mar...@holtmann.org/raw
 Desc:   Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. 
See bug #686758

diff --git a/1700_x86-gcc-10-early-boot-crash-fix.patch 
b/1700_x86-gcc-10-early-boot-crash-fix.patch
deleted file mode 100644
index 8cdf651..000
--- a/1700_x86-gcc-10-early-boot-crash-fix.patch
+++ /dev/null
@@ -1,131 +0,0 @@
-From f670269a42bfdd2c83a1118cc3d1b475547eac22 Mon Sep 17 00:00:00 2001
-From: Borislav Petkov 
-Date: Wed, 22 Apr 2020 18:11:30 +0200
-Subject: x86: Fix early boot crash on gcc-10, next try
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-... or the odyssey of trying to disable the stack protector for the
-function which generates the stack canary value.
-
-The whole story started with Sergei reporting a boot crash with a kernel
-built with gcc-10:
-
-  Kernel panic — not syncing: stack-protector: Kernel stack is corrupted in: 
start_secondary
-  CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.6.0-rc5—00235—gfffb08b37df9 #139
-  Hardware name: Gigabyte Technology Co., Ltd. To be filled by 
O.E.M./H77M—D3H, BIOS F12 11/14/2013
-  Call Trace:
-dump_stack
-panic
-? start_secondary
-__stack_chk_fail
-start_secondary
-secondary_startup_64
-  -—-[ end Kernel panic — not syncing: stack—protector: Kernel stack is 
corrupted in: start_secondary
-
-This happens because gcc-10 tail-call optimizes the last function call
-in start_secondary() - cpu_startup_entry() - and thus emits a stack
-canary check which fails because the canary value changes after the
-boot_init_stack_canary() call.
-
-To fix that, the initial attempt was to mark the one function which
-generates the stack canary with:
-
-  __attribute__((optimize("-fno-stack-protector"))) ... start_secondary(void 
*unused)
-
-however, using the optimize attribute doesn't work cumulatively
-as the attribute does not add to but rather replaces previously
-supplied optimization options - roughly all -fxxx options.
-
-The key one among them being -fno-omit-frame-pointer and thus leading to
-not present frame pointer - frame pointer which the kernel needs.
-
-The next attempt to prevent compilers from tail-call optimizing
-the last function call cpu_startup_entry(), shy of carving out
-start_secondary() into a separate compilation unit and building it with
--fno-stack-protector, is this one.
-
-The current solution is short and sweet, and reportedly, is supported by
-both compilers so let's see how far we'll get this time.
-
-Reported-by: Sergei Trofimovich 
-Signed-off-by: Borislav Petkov 
-Reviewed-by: Nick Desaulniers 
-Reviewed-by: Kees Cook 
-Link: https://lkml.kernel.org/r/20200314164451.346497-1-sly...@gentoo.org

- arch/x86/include/asm/stackprotector.h | 7 ++-
- arch/x86/kernel/smpboot.c | 8 
- arch/x86/xen/smp_pv.c | 1 +
- include/linux/compiler.h  | 6 ++
- 4 files changed, 21 insertions(+), 1 deletion(-)
-
-diff --git a/arch/x86/include/asm/stackprotector.h 
b/arch/x86/include/asm/stackprotector.h
-index 91e29b6a86a5..9804a7957f4e 100644
 a/arch/x86/include/asm/stackprotector.h
-+++ b/arch/x86/include/asm/stackprotector.h
-@@ -55,8 +55,13 @@
- /*
-  * Initialize the stackprotector canary value.
-  *
-- * NOTE: this must only be called from functions that never return,
-+ * NOTE: this must only be called from functions that never return
-  * and it must always be inlined.
-+ *
-+ * In addition, it should be called from a compilation unit for which
-+ * stack protector is disabled. Alternatively, the caller should not end
-+ * with a function call which gets tail-call 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-05-20 Thread Mike Pagano
commit: 221eb616a00bf5d759ee8d7c604ad57cb24e890a
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May 20 11:27:34 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May 20 11:27:34 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=221eb616

Linux patch 4.19.124

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1123_linux-4.19.124.patch | 2125 +
 2 files changed, 2129 insertions(+)

diff --git a/_README b/_README
index 18ae34a..4cf06a4 100644
--- a/_README
+++ b/_README
@@ -531,6 +531,10 @@ Patch:  1122_linux-4.19.123.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.123
 
+Patch:  1123_linux-4.19.124.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.124
+
 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/1123_linux-4.19.124.patch b/1123_linux-4.19.124.patch
new file mode 100644
index 000..38dc1e7
--- /dev/null
+++ b/1123_linux-4.19.124.patch
@@ -0,0 +1,2125 @@
+diff --git a/Makefile b/Makefile
+index 68fa15edd662..292c92c8369d 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 123
++SUBLEVEL = 124
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+@@ -657,20 +657,14 @@ KBUILD_CFLAGS+= $(call cc-disable-warning, 
int-in-bool-context)
+ KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
+ 
+ ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
+-KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
+-else
+-ifdef CONFIG_PROFILE_ALL_BRANCHES
+-KBUILD_CFLAGS += -O2 $(call cc-disable-warning,maybe-uninitialized,)
++KBUILD_CFLAGS   += -Os
+ else
+ KBUILD_CFLAGS   += -O2
+ endif
+-endif
+-
+-KBUILD_CFLAGS += $(call cc-ifversion, -lt, 0409, \
+-  $(call cc-disable-warning,maybe-uninitialized,))
+ 
+ # Tell gcc to never replace conditional load with a non-conditional one
+ KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0)
++KBUILD_CFLAGS += $(call cc-option,-fno-allow-store-data-races)
+ 
+ include scripts/Makefile.kcov
+ include scripts/Makefile.gcc-plugins
+@@ -799,6 +793,17 @@ KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign)
+ # disable stringop warnings in gcc 8+
+ KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)
+ 
++# We'll want to enable this eventually, but it's not going away for 5.7 at 
least
++KBUILD_CFLAGS += $(call cc-disable-warning, zero-length-bounds)
++KBUILD_CFLAGS += $(call cc-disable-warning, array-bounds)
++KBUILD_CFLAGS += $(call cc-disable-warning, stringop-overflow)
++
++# Another good warning that we'll want to enable eventually
++KBUILD_CFLAGS += $(call cc-disable-warning, restrict)
++
++# Enabled with W=2, disabled by default as noisy
++KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized)
++
+ # disable invalid "can't wrap" optimizations for signed / pointers
+ KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)
+ 
+diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
+index e97ef16ce68a..0c0781a37c5a 100644
+--- a/arch/arm/boot/dts/dra7.dtsi
 b/arch/arm/boot/dts/dra7.dtsi
+@@ -312,6 +312,7 @@
+   #address-cells = <1>;
+   ranges = <0x5100 0x5100 0x3000
+ 0x00x2000 0x1000>;
++  dma-ranges;
+   /**
+* To enable PCI endpoint mode, disable the pcie1_rc
+* node and enable pcie1_ep mode.
+@@ -325,7 +326,6 @@
+   device_type = "pci";
+   ranges = <0x8100 0 0  0x03000 0 
0x0001
+ 0x8200 0 0x20013000 0x13000 0 
0xffed000>;
+-  dma-ranges = <0x0200 0x0 0x 
0x 0x1 0x>;
+   bus-range = <0x00 0xff>;
+   #interrupt-cells = <1>;
+   num-lanes = <1>;
+@@ -368,6 +368,7 @@
+   #address-cells = <1>;
+   ranges = <0x5180 0x5180 0x3000
+ 0x00x3000 0x1000>;
++  dma-ranges;
+   status = "disabled";
+   pcie2_rc: pcie@5180 {
+   reg = <0x5180 0x2000>, <0x51802000 0x14c>, 
<0x1000 0x2000>;
+@@ -378,7 +379,6 @@
+   device_type = "pci";
+   ranges = <0x8100 0 0  0x03000 0 
0x0001
+ 0x8200 0 0x30013000 0x13000 0 
0xffed000>;
+-  dma-ranges = <0x0200 0x0 0x 
0x 0x1 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-05-14 Thread Mike Pagano
commit: 3ba8a94069c6064059af744ab1d794fd5145f8b9
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu May 14 11:29:47 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu May 14 11:29:47 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3ba8a940

Linux patch 4.19.123

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1122_linux-4.19.123.patch | 1475 +
 2 files changed, 1479 insertions(+)

diff --git a/_README b/_README
index 1a8557c..18ae34a 100644
--- a/_README
+++ b/_README
@@ -527,6 +527,10 @@ Patch:  1121_linux-4.19.122.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.122
 
+Patch:  1122_linux-4.19.123.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.123
+
 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/1122_linux-4.19.123.patch b/1122_linux-4.19.123.patch
new file mode 100644
index 000..8b532c1
--- /dev/null
+++ b/1122_linux-4.19.123.patch
@@ -0,0 +1,1475 @@
+diff --git a/Makefile b/Makefile
+index 2a4ee629f011..68fa15edd662 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 122
++SUBLEVEL = 123
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm64/kvm/guest.c b/arch/arm64/kvm/guest.c
+index a6c9fbaeaefc..870e594f95ed 100644
+--- a/arch/arm64/kvm/guest.c
 b/arch/arm64/kvm/guest.c
+@@ -179,6 +179,13 @@ static int set_core_reg(struct kvm_vcpu *vcpu, const 
struct kvm_one_reg *reg)
+   }
+ 
+   memcpy((u32 *)regs + off, valp, KVM_REG_SIZE(reg->id));
++
++  if (*vcpu_cpsr(vcpu) & PSR_MODE32_BIT) {
++  int i;
++
++  for (i = 0; i < 16; i++)
++  *vcpu_reg32(vcpu, i) = (u32)*vcpu_reg32(vcpu, i);
++  }
+ out:
+   return err;
+ }
+diff --git a/arch/arm64/mm/hugetlbpage.c b/arch/arm64/mm/hugetlbpage.c
+index f58ea503ad01..1d7656761316 100644
+--- a/arch/arm64/mm/hugetlbpage.c
 b/arch/arm64/mm/hugetlbpage.c
+@@ -218,6 +218,8 @@ pte_t *huge_pte_alloc(struct mm_struct *mm,
+   ptep = (pte_t *)pudp;
+   } else if (sz == (PAGE_SIZE * CONT_PTES)) {
+   pmdp = pmd_alloc(mm, pudp, addr);
++  if (!pmdp)
++  return NULL;
+ 
+   WARN_ON(addr & (sz - 1));
+   /*
+diff --git a/arch/x86/entry/calling.h b/arch/x86/entry/calling.h
+index 31fbb4a7d9f6..993dd06c8923 100644
+--- a/arch/x86/entry/calling.h
 b/arch/x86/entry/calling.h
+@@ -98,13 +98,6 @@ For 32-bit we have the following conventions - kernel is 
built with
+ #define SIZEOF_PTREGS 21*8
+ 
+ .macro PUSH_AND_CLEAR_REGS rdx=%rdx rax=%rax save_ret=0
+-  /*
+-   * Push registers and sanitize registers of values that a
+-   * speculation attack might otherwise want to exploit. The
+-   * lower registers are likely clobbered well before they
+-   * could be put to use in a speculative execution gadget.
+-   * Interleave XOR with PUSH for better uop scheduling:
+-   */
+   .if \save_ret
+   pushq   %rsi/* pt_regs->si */
+   movq8(%rsp), %rsi   /* temporarily store the return address in %rsi 
*/
+@@ -114,34 +107,43 @@ For 32-bit we have the following conventions - kernel is 
built with
+   pushq   %rsi/* pt_regs->si */
+   .endif
+   pushq   \rdx/* pt_regs->dx */
+-  xorl%edx, %edx  /* nospec   dx */
+   pushq   %rcx/* pt_regs->cx */
+-  xorl%ecx, %ecx  /* nospec   cx */
+   pushq   \rax/* pt_regs->ax */
+   pushq   %r8 /* pt_regs->r8 */
+-  xorl%r8d, %r8d  /* nospec   r8 */
+   pushq   %r9 /* pt_regs->r9 */
+-  xorl%r9d, %r9d  /* nospec   r9 */
+   pushq   %r10/* pt_regs->r10 */
+-  xorl%r10d, %r10d/* nospec   r10 */
+   pushq   %r11/* pt_regs->r11 */
+-  xorl%r11d, %r11d/* nospec   r11*/
+   pushq   %rbx/* pt_regs->rbx */
+-  xorl%ebx, %ebx  /* nospec   rbx*/
+   pushq   %rbp/* pt_regs->rbp */
+-  xorl%ebp, %ebp  /* nospec   rbp*/
+   pushq   %r12/* pt_regs->r12 */
+-  xorl%r12d, %r12d/* nospec   r12*/
+   pushq   %r13/* pt_regs->r13 */
+-  xorl%r13d, %r13d/* nospec   r13*/
+   pushq   %r14/* pt_regs->r14 */
+-  xorl%r14d, %r14d/* nospec   r14*/
+   pushq   %r15/* pt_regs->r15 */
+-  xorl%r15d, %r15d/* nospec   r15*/
+   UNWIND_HINT_REGS
++
+   .if \save_ret
+   pushq   %rsi/* return address on top of stack */
+   .endif
++
++  /*
++   * Sanitize registers of values that a speculation attack 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-05-13 Thread Mike Pagano
commit: 9e83199d8117b7c9e58469c96d8ca3ef90f05f4c
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May 13 12:32:46 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May 13 12:32:46 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9e83199d

Add UTS_NS to GENTOO_LINUX_PORTAGE as required by portage since 2.3.99

Bug: https://bugs.gentoo.org/722772

Signed-off-by: Mike Pagano  gentoo.org>

 4567_distro-Gentoo-Kconfig.patch | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch
index b5174db..10c164e 100644
--- a/4567_distro-Gentoo-Kconfig.patch
+++ b/4567_distro-Gentoo-Kconfig.patch
@@ -6,9 +6,9 @@
  source "lib/Kconfig.debug"
 +
 +source "distro/Kconfig"
 /dev/null  2020-04-15 02:49:37.900191585 -0400
-+++ b/distro/Kconfig   2020-04-15 11:07:10.952929540 -0400
-@@ -0,0 +1,156 @@
+--- /dev/null  2020-05-13 03:13:57.920193259 -0400
 b/distro/Kconfig   2020-05-13 08:21:40.704254967 -0400
+@@ -0,0 +1,157 @@
 +menu "Gentoo Linux"
 +
 +config GENTOO_LINUX
@@ -65,6 +65,7 @@
 +  select NET_NS
 +  select PID_NS
 +  select SYSVIPC
++  select UTS_NS
 +
 +  help
 +  This enables options required by various Portage FEATURES.



[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-05-11 Thread Mike Pagano
commit: 658b60846c40c965b05ab664549c1eb1e4f0b213
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon May 11 22:50:23 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon May 11 22:50:23 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=658b6084

Linux patch 4.19.122

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |   4 +
 1121_linux-4.19.122.patch | 939 ++
 2 files changed, 943 insertions(+)

diff --git a/_README b/_README
index fc9a335..1a8557c 100644
--- a/_README
+++ b/_README
@@ -523,6 +523,10 @@ Patch:  1120_linux-4.19.121.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.121
 
+Patch:  1121_linux-4.19.122.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.122
+
 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/1121_linux-4.19.122.patch b/1121_linux-4.19.122.patch
new file mode 100644
index 000..de5ed49
--- /dev/null
+++ b/1121_linux-4.19.122.patch
@@ -0,0 +1,939 @@
+diff --git a/Makefile b/Makefile
+index f7406a6f8330..2a4ee629f011 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 121
++SUBLEVEL = 122
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/hexagon/include/asm/io.h b/arch/hexagon/include/asm/io.h
+index e17262ad125e..bd429d6a3163 100644
+--- a/arch/hexagon/include/asm/io.h
 b/arch/hexagon/include/asm/io.h
+@@ -186,16 +186,10 @@ static inline void writel(u32 data, volatile void 
__iomem *addr)
+ 
+ #define mmiowb()
+ 
+-/*
+- * Need an mtype somewhere in here, for cache type deals?
+- * This is probably too long for an inline.
+- */
+-void __iomem *ioremap_nocache(unsigned long phys_addr, unsigned long size);
++void __iomem *ioremap(unsigned long phys_addr, unsigned long size);
++#define ioremap_nocache ioremap
++#define ioremap_uc(X, Y) ioremap((X), (Y))
+ 
+-static inline void __iomem *ioremap(unsigned long phys_addr, unsigned long 
size)
+-{
+-  return ioremap_nocache(phys_addr, size);
+-}
+ 
+ static inline void iounmap(volatile void __iomem *addr)
+ {
+diff --git a/arch/hexagon/kernel/hexagon_ksyms.c 
b/arch/hexagon/kernel/hexagon_ksyms.c
+index aa248f595431..d13d4a06ee38 100644
+--- a/arch/hexagon/kernel/hexagon_ksyms.c
 b/arch/hexagon/kernel/hexagon_ksyms.c
+@@ -33,7 +33,7 @@ EXPORT_SYMBOL(__vmgetie);
+ EXPORT_SYMBOL(__vmsetie);
+ EXPORT_SYMBOL(__vmyield);
+ EXPORT_SYMBOL(empty_zero_page);
+-EXPORT_SYMBOL(ioremap_nocache);
++EXPORT_SYMBOL(ioremap);
+ EXPORT_SYMBOL(memcpy);
+ EXPORT_SYMBOL(memset);
+ 
+diff --git a/arch/hexagon/mm/ioremap.c b/arch/hexagon/mm/ioremap.c
+index d27d67224046..370ade265e58 100644
+--- a/arch/hexagon/mm/ioremap.c
 b/arch/hexagon/mm/ioremap.c
+@@ -22,7 +22,7 @@
+ #include 
+ #include 
+ 
+-void __iomem *ioremap_nocache(unsigned long phys_addr, unsigned long size)
++void __iomem *ioremap(unsigned long phys_addr, unsigned long size)
+ {
+   unsigned long last_addr, addr;
+   unsigned long offset = phys_addr & ~PAGE_MASK;
+diff --git a/arch/powerpc/kernel/pci_of_scan.c 
b/arch/powerpc/kernel/pci_of_scan.c
+index c101b321dece..7765837ba203 100644
+--- a/arch/powerpc/kernel/pci_of_scan.c
 b/arch/powerpc/kernel/pci_of_scan.c
+@@ -82,10 +82,16 @@ static void of_pci_parse_addrs(struct device_node *node, 
struct pci_dev *dev)
+   const __be32 *addrs;
+   u32 i;
+   int proplen;
++  bool mark_unset = false;
+ 
+   addrs = of_get_property(node, "assigned-addresses", );
+-  if (!addrs)
+-  return;
++  if (!addrs || !proplen) {
++  addrs = of_get_property(node, "reg", );
++  if (!addrs || !proplen)
++  return;
++  mark_unset = true;
++  }
++
+   pr_debug("parse addresses (%d bytes) @ %p\n", proplen, addrs);
+   for (; proplen >= 20; proplen -= 20, addrs += 5) {
+   flags = pci_parse_of_flags(of_read_number(addrs, 1), 0);
+@@ -110,6 +116,8 @@ static void of_pci_parse_addrs(struct device_node *node, 
struct pci_dev *dev)
+   continue;
+   }
+   res->flags = flags;
++  if (mark_unset)
++  res->flags |= IORESOURCE_UNSET;
+   res->name = pci_name(dev);
+   region.start = base;
+   region.end = base + size - 1;
+diff --git a/arch/s390/kernel/diag.c b/arch/s390/kernel/diag.c
+index 35c842aa8705..4c7cf8787a84 100644
+--- a/arch/s390/kernel/diag.c
 b/arch/s390/kernel/diag.c
+@@ -128,7 +128,7 @@ void diag_stat_inc(enum diag_stat_enum nr)
+ }
+ EXPORT_SYMBOL(diag_stat_inc);
+ 
+-void diag_stat_inc_norecursion(enum diag_stat_enum nr)
++void notrace diag_stat_inc_norecursion(enum diag_stat_enum nr)
+ {
+   this_cpu_inc(diag_stat.counter[nr]);
+   

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-05-09 Thread Mike Pagano
commit: bfcd8160b6ac76fd60a4427690bb5c3115d96888
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat May  9 22:19:41 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat May  9 22:19:41 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=bfcd8160

x86: Fix early boot crash on gcc-10

Bug: https://bugs.gentoo.org/721734

Signed-off-by: Mike Pagano  gentoo.org>

 _README|   4 +
 1700_x86-gcc-10-early-boot-crash-fix.patch | 131 +
 2 files changed, 135 insertions(+)

diff --git a/_README b/_README
index bc85fe6..fc9a335 100644
--- a/_README
+++ b/_README
@@ -531,6 +531,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:  1700_x86-gcc-10-early-boot-crash-fix.patch
+From:   
https://https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/patch/?id=f670269a42bfdd2c83a1118cc3d1b475547eac22
+Desc:   x86: Fix early boot crash on gcc-10
+
 Patch:  2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
 From:   
https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-mar...@holtmann.org/raw
 Desc:   Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. 
See bug #686758

diff --git a/1700_x86-gcc-10-early-boot-crash-fix.patch 
b/1700_x86-gcc-10-early-boot-crash-fix.patch
new file mode 100644
index 000..8cdf651
--- /dev/null
+++ b/1700_x86-gcc-10-early-boot-crash-fix.patch
@@ -0,0 +1,131 @@
+From f670269a42bfdd2c83a1118cc3d1b475547eac22 Mon Sep 17 00:00:00 2001
+From: Borislav Petkov 
+Date: Wed, 22 Apr 2020 18:11:30 +0200
+Subject: x86: Fix early boot crash on gcc-10, next try
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+... or the odyssey of trying to disable the stack protector for the
+function which generates the stack canary value.
+
+The whole story started with Sergei reporting a boot crash with a kernel
+built with gcc-10:
+
+  Kernel panic — not syncing: stack-protector: Kernel stack is corrupted in: 
start_secondary
+  CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.6.0-rc5—00235—gfffb08b37df9 #139
+  Hardware name: Gigabyte Technology Co., Ltd. To be filled by 
O.E.M./H77M—D3H, BIOS F12 11/14/2013
+  Call Trace:
+dump_stack
+panic
+? start_secondary
+__stack_chk_fail
+start_secondary
+secondary_startup_64
+  -—-[ end Kernel panic — not syncing: stack—protector: Kernel stack is 
corrupted in: start_secondary
+
+This happens because gcc-10 tail-call optimizes the last function call
+in start_secondary() - cpu_startup_entry() - and thus emits a stack
+canary check which fails because the canary value changes after the
+boot_init_stack_canary() call.
+
+To fix that, the initial attempt was to mark the one function which
+generates the stack canary with:
+
+  __attribute__((optimize("-fno-stack-protector"))) ... start_secondary(void 
*unused)
+
+however, using the optimize attribute doesn't work cumulatively
+as the attribute does not add to but rather replaces previously
+supplied optimization options - roughly all -fxxx options.
+
+The key one among them being -fno-omit-frame-pointer and thus leading to
+not present frame pointer - frame pointer which the kernel needs.
+
+The next attempt to prevent compilers from tail-call optimizing
+the last function call cpu_startup_entry(), shy of carving out
+start_secondary() into a separate compilation unit and building it with
+-fno-stack-protector, is this one.
+
+The current solution is short and sweet, and reportedly, is supported by
+both compilers so let's see how far we'll get this time.
+
+Reported-by: Sergei Trofimovich 
+Signed-off-by: Borislav Petkov 
+Reviewed-by: Nick Desaulniers 
+Reviewed-by: Kees Cook 
+Link: https://lkml.kernel.org/r/20200314164451.346497-1-sly...@gentoo.org
+---
+ arch/x86/include/asm/stackprotector.h | 7 ++-
+ arch/x86/kernel/smpboot.c | 8 
+ arch/x86/xen/smp_pv.c | 1 +
+ include/linux/compiler.h  | 6 ++
+ 4 files changed, 21 insertions(+), 1 deletion(-)
+
+diff --git a/arch/x86/include/asm/stackprotector.h 
b/arch/x86/include/asm/stackprotector.h
+index 91e29b6a86a5..9804a7957f4e 100644
+--- a/arch/x86/include/asm/stackprotector.h
 b/arch/x86/include/asm/stackprotector.h
+@@ -55,8 +55,13 @@
+ /*
+  * Initialize the stackprotector canary value.
+  *
+- * NOTE: this must only be called from functions that never return,
++ * NOTE: this must only be called from functions that never return
+  * and it must always be inlined.
++ *
++ * In addition, it should be called from a compilation unit for which
++ * stack protector is disabled. Alternatively, the caller should not end
++ * with a function call which gets 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-05-06 Thread Mike Pagano
commit: 2e017bc50a517d56fd00d782673e75d6309b5746
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May  6 11:46:07 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May  6 11:46:07 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=2e017bc5

Linux patch 4.19.121

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1120_linux-4.19.121.patch | 1136 +
 2 files changed, 1140 insertions(+)

diff --git a/_README b/_README
index 8850298..bc85fe6 100644
--- a/_README
+++ b/_README
@@ -519,6 +519,10 @@ Patch:  1119_linux-4.19.120.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.120
 
+Patch:  1120_linux-4.19.121.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.121
+
 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/1120_linux-4.19.121.patch b/1120_linux-4.19.121.patch
new file mode 100644
index 000..c8ea7c7
--- /dev/null
+++ b/1120_linux-4.19.121.patch
@@ -0,0 +1,1136 @@
+diff --git a/Makefile b/Makefile
+index 74b60bf2ff79..f7406a6f8330 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 120
++SUBLEVEL = 121
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c
+index 54b6547d32b2..3837cad94f35 100644
+--- a/drivers/acpi/device_pm.c
 b/drivers/acpi/device_pm.c
+@@ -227,13 +227,13 @@ int acpi_device_set_power(struct acpi_device *device, 
int state)
+  end:
+   if (result) {
+   dev_warn(>dev, "Failed to change power state to %s\n",
+-   acpi_power_state_string(state));
++   acpi_power_state_string(target_state));
+   } else {
+   device->power.state = target_state;
+   ACPI_DEBUG_PRINT((ACPI_DB_INFO,
+ "Device [%s] transitioned to %s\n",
+ device->pnp.bus_id,
+-acpi_power_state_string(state)));
++acpi_power_state_string(target_state)));
+   }
+ 
+   return result;
+diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c
+index 7b7fba0c9253..e38a653dd208 100644
+--- a/drivers/dma/dmatest.c
 b/drivers/dma/dmatest.c
+@@ -567,8 +567,8 @@ static int dmatest_func(void *data)
+   flags = DMA_CTRL_ACK | DMA_PREP_INTERRUPT;
+ 
+   ktime = ktime_get();
+-  while (!kthread_should_stop()
+- && !(params->iterations && total_tests >= params->iterations)) {
++  while (!(kthread_should_stop() ||
++ (params->iterations && total_tests >= params->iterations))) {
+   struct dma_async_tx_descriptor *tx = NULL;
+   struct dmaengine_unmap_data *um;
+   dma_addr_t *dsts;
+diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
+index f5926bf5dabd..d5dcee7f1fc8 100644
+--- a/drivers/gpu/drm/drm_edid.c
 b/drivers/gpu/drm/drm_edid.c
+@@ -4706,7 +4706,7 @@ static struct drm_display_mode 
*drm_mode_displayid_detailed(struct drm_device *d
+   struct drm_display_mode *mode;
+   unsigned pixel_clock = (timings->pixel_clock[0] |
+   (timings->pixel_clock[1] << 8) |
+-  (timings->pixel_clock[2] << 16));
++  (timings->pixel_clock[2] << 16)) + 1;
+   unsigned hactive = (timings->hactive[0] | timings->hactive[1] << 8) + 1;
+   unsigned hblank = (timings->hblank[0] | timings->hblank[1] << 8) + 1;
+   unsigned hsync = (timings->hsync[0] | (timings->hsync[1] & 0x7f) << 8) 
+ 1;
+diff --git a/drivers/gpu/drm/qxl/qxl_cmd.c b/drivers/gpu/drm/qxl/qxl_cmd.c
+index 208af9f37914..5177e37d81e6 100644
+--- a/drivers/gpu/drm/qxl/qxl_cmd.c
 b/drivers/gpu/drm/qxl/qxl_cmd.c
+@@ -472,9 +472,10 @@ int qxl_hw_surface_alloc(struct qxl_device *qdev,
+   return ret;
+ 
+   ret = qxl_release_reserve_list(release, true);
+-  if (ret)
++  if (ret) {
++  qxl_release_free(qdev, release);
+   return ret;
+-
++  }
+   cmd = (struct qxl_surface_cmd *)qxl_release_map(qdev, release);
+   cmd->type = QXL_SURFACE_CMD_CREATE;
+   cmd->flags = QXL_SURF_FLAG_KEEP_DATA;
+@@ -500,8 +501,8 @@ int qxl_hw_surface_alloc(struct qxl_device *qdev,
+   /* no need to add a release to the fence for this surface bo,
+  since it is only released when we ask to destroy the surface
+  and it would never signal otherwise */
+-  qxl_push_command_ring_release(qdev, release, QXL_CMD_SURFACE, false);
+   qxl_release_fence_buffer_objects(release);
++  qxl_push_command_ring_release(qdev, release, QXL_CMD_SURFACE, false);
+ 
+   surf->hw_surf_alloc = true;
+   

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-05-02 Thread Mike Pagano
commit: d2975282a07e1079c8befdd23086852956fe4493
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat May  2 19:23:44 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat May  2 19:23:44 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=d2975282

Linux patch 4.19.120

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1119_linux-4.19.120.patch | 1834 +
 2 files changed, 1838 insertions(+)

diff --git a/_README b/_README
index 36e1c22..8850298 100644
--- a/_README
+++ b/_README
@@ -515,6 +515,10 @@ Patch:  1118_linux-4.19.119.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.119
 
+Patch:  1119_linux-4.19.120.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.120
+
 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/1119_linux-4.19.120.patch b/1119_linux-4.19.120.patch
new file mode 100644
index 000..6f1d761
--- /dev/null
+++ b/1119_linux-4.19.120.patch
@@ -0,0 +1,1834 @@
+diff --git a/Makefile b/Makefile
+index 69c95fe6fba5..74b60bf2ff79 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 119
++SUBLEVEL = 120
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
+index c9322a56300d..f9add515301f 100644
+--- a/arch/arm/boot/dts/bcm283x.dtsi
 b/arch/arm/boot/dts/bcm283x.dtsi
+@@ -476,6 +476,7 @@
+"dsi0_ddr2",
+"dsi0_ddr";
+ 
++  status = "disabled";
+   };
+ 
+   thermal: thermal@7e212000 {
+diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h
+index 3091ae5975a3..ed99d941c462 100644
+--- a/arch/arm64/include/asm/sysreg.h
 b/arch/arm64/include/asm/sysreg.h
+@@ -60,7 +60,9 @@
+ #ifndef CONFIG_BROKEN_GAS_INST
+ 
+ #ifdef __ASSEMBLY__
+-#define __emit_inst(x).inst (x)
++// The space separator is omitted so that __emit_inst(x) can be parsed as
++// either an assembler directive or an assembler macro argument.
++#define __emit_inst(x).inst(x)
+ #else
+ #define __emit_inst(x)".inst " __stringify((x)) "\n\t"
+ #endif
+diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c
+index fc93ae325515..f8b0fa2dbe37 100644
+--- a/arch/x86/kernel/cpu/mshyperv.c
 b/arch/x86/kernel/cpu/mshyperv.c
+@@ -214,8 +214,8 @@ static void __init ms_hyperv_init_platform(void)
+   ms_hyperv.misc_features = cpuid_edx(HYPERV_CPUID_FEATURES);
+   ms_hyperv.hints= cpuid_eax(HYPERV_CPUID_ENLIGHTMENT_INFO);
+ 
+-  pr_info("Hyper-V: features 0x%x, hints 0x%x\n",
+-  ms_hyperv.features, ms_hyperv.hints);
++  pr_info("Hyper-V: features 0x%x, hints 0x%x, misc 0x%x\n",
++  ms_hyperv.features, ms_hyperv.hints, ms_hyperv.misc_features);
+ 
+   ms_hyperv.max_vp_index = cpuid_eax(HYPERV_CPUID_IMPLEMENT_LIMITS);
+   ms_hyperv.max_lp_index = cpuid_ebx(HYPERV_CPUID_IMPLEMENT_LIMITS);
+diff --git a/arch/x86/net/bpf_jit_comp.c b/arch/x86/net/bpf_jit_comp.c
+index a32fc3d99407..46ab92831251 100644
+--- a/arch/x86/net/bpf_jit_comp.c
 b/arch/x86/net/bpf_jit_comp.c
+@@ -142,6 +142,19 @@ static bool is_ereg(u32 reg)
+BIT(BPF_REG_AX));
+ }
+ 
++/*
++ * is_ereg_8l() == true if BPF register 'reg' is mapped to access x86-64
++ * lower 8-bit registers dil,sil,bpl,spl,r8b..r15b, which need extra byte
++ * of encoding. al,cl,dl,bl have simpler encoding.
++ */
++static bool is_ereg_8l(u32 reg)
++{
++  return is_ereg(reg) ||
++  (1 << reg) & (BIT(BPF_REG_1) |
++BIT(BPF_REG_2) |
++BIT(BPF_REG_FP));
++}
++
+ static bool is_axreg(u32 reg)
+ {
+   return reg == BPF_REG_0;
+@@ -751,9 +764,8 @@ st:if (is_imm8(insn->off))
+   /* STX: *(u8*)(dst_reg + off) = src_reg */
+   case BPF_STX | BPF_MEM | BPF_B:
+   /* Emit 'mov byte ptr [rax + off], al' */
+-  if (is_ereg(dst_reg) || is_ereg(src_reg) ||
+-  /* We have to add extra byte for x86 SIL, DIL regs 
*/
+-  src_reg == BPF_REG_1 || src_reg == BPF_REG_2)
++  if (is_ereg(dst_reg) || is_ereg_8l(src_reg))
++  /* Add extra byte for eregs or SIL,DIL,BPL in 
src_reg */
+   EMIT2(add_2mod(0x40, dst_reg, src_reg), 0x88);
+   else
+   EMIT1(0x88);
+diff --git a/arch/x86/net/bpf_jit_comp32.c b/arch/x86/net/bpf_jit_comp32.c
+index 24d573bc550d..2eaf1900ba67 100644

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-04-23 Thread Mike Pagano
commit: 4904bc11bea920e7d4562f916355fd44ed6fa1b3
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Apr 23 11:43:55 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Apr 23 11:43:55 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4904bc11

Linux patch 4.19.118

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1117_linux-4.19.118.patch | 2272 +
 2 files changed, 2276 insertions(+)

diff --git a/_README b/_README
index 8db7823..5c6dcb8 100644
--- a/_README
+++ b/_README
@@ -507,6 +507,10 @@ Patch:  1116_linux-4.19.117.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.117
 
+Patch:  1117_linux-4.19.118.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.118
+
 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/1117_linux-4.19.118.patch b/1117_linux-4.19.118.patch
new file mode 100644
index 000..53446f1
--- /dev/null
+++ b/1117_linux-4.19.118.patch
@@ -0,0 +1,2272 @@
+diff --git a/Makefile b/Makefile
+index 555dbaab7bad..72ae7e879077 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 117
++SUBLEVEL = 118
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
+index 00d44a60972f..e64ff80c83c5 100644
+--- a/arch/arm/boot/dts/imx6qdl.dtsi
 b/arch/arm/boot/dts/imx6qdl.dtsi
+@@ -1013,9 +1013,8 @@
+   compatible = "fsl,imx6q-fec";
+   reg = <0x02188000 0x4000>;
+   interrupt-names = "int0", "pps";
+-  interrupts-extended =
+-  < 0 118 IRQ_TYPE_LEVEL_HIGH>,
+-  < 0 119 IRQ_TYPE_LEVEL_HIGH>;
++  interrupts = <0 118 IRQ_TYPE_LEVEL_HIGH>,
++   <0 119 IRQ_TYPE_LEVEL_HIGH>;
+   clocks = < IMX6QDL_CLK_ENET>,
+< IMX6QDL_CLK_ENET>,
+< IMX6QDL_CLK_ENET_REF>;
+diff --git a/arch/arm/boot/dts/imx6qp.dtsi b/arch/arm/boot/dts/imx6qp.dtsi
+index 5f51f8e5c1fa..d91f92f944c5 100644
+--- a/arch/arm/boot/dts/imx6qp.dtsi
 b/arch/arm/boot/dts/imx6qp.dtsi
+@@ -77,7 +77,6 @@
+ };
+ 
+  {
+-  /delete-property/interrupts-extended;
+   interrupts = <0 118 IRQ_TYPE_LEVEL_HIGH>,
+<0 119 IRQ_TYPE_LEVEL_HIGH>;
+ };
+diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_jit_32.c
+index 25b3ee85066e..328ced7bfaf2 100644
+--- a/arch/arm/net/bpf_jit_32.c
 b/arch/arm/net/bpf_jit_32.c
+@@ -930,7 +930,11 @@ static inline void emit_a32_rsh_i64(const s8 dst[],
+   rd = arm_bpf_get_reg64(dst, tmp, ctx);
+ 
+   /* Do LSR operation */
+-  if (val < 32) {
++  if (val == 0) {
++  /* An immediate value of 0 encodes a shift amount of 32
++   * for LSR. To shift by 0, don't do anything.
++   */
++  } else if (val < 32) {
+   emit(ARM_MOV_SI(tmp2[1], rd[1], SRTYPE_LSR, val), ctx);
+   emit(ARM_ORR_SI(rd[1], tmp2[1], rd[0], SRTYPE_ASL, 32 - val), 
ctx);
+   emit(ARM_MOV_SI(rd[0], rd[0], SRTYPE_LSR, val), ctx);
+@@ -956,7 +960,11 @@ static inline void emit_a32_arsh_i64(const s8 dst[],
+   rd = arm_bpf_get_reg64(dst, tmp, ctx);
+ 
+   /* Do ARSH operation */
+-  if (val < 32) {
++  if (val == 0) {
++  /* An immediate value of 0 encodes a shift amount of 32
++   * for ASR. To shift by 0, don't do anything.
++   */
++  } else if (val < 32) {
+   emit(ARM_MOV_SI(tmp2[1], rd[1], SRTYPE_LSR, val), ctx);
+   emit(ARM_ORR_SI(rd[1], tmp2[1], rd[0], SRTYPE_ASL, 32 - val), 
ctx);
+   emit(ARM_MOV_SI(rd[0], rd[0], SRTYPE_ASR, val), ctx);
+@@ -993,21 +1001,35 @@ static inline void emit_a32_mul_r64(const s8 dst[], 
const s8 src[],
+   arm_bpf_put_reg32(dst_hi, rd[0], ctx);
+ }
+ 
++static bool is_ldst_imm(s16 off, const u8 size)
++{
++  s16 off_max = 0;
++
++  switch (size) {
++  case BPF_B:
++  case BPF_W:
++  off_max = 0xfff;
++  break;
++  case BPF_H:
++  off_max = 0xff;
++  break;
++  case BPF_DW:
++  /* Need to make sure off+4 does not overflow. */
++  off_max = 0xfff - 4;
++  break;
++  }
++  return -off_max <= off && off <= off_max;
++}
++
+ /* *(size *)(dst + off) = src */
+ static inline void emit_str_r(const s8 dst, const s8 src[],
+-s32 off, struct jit_ctx *ctx, const u8 sz){
++s16 off, struct 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-04-21 Thread Mike Pagano
commit: b6cdb44c09d28dc9845d5502832c6eb6dca6b803
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Apr 21 11:15:07 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Apr 21 11:15:07 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b6cdb44c

Linux patch 4.19.117

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1116_linux-4.19.117.patch | 1368 +
 2 files changed, 1372 insertions(+)

diff --git a/_README b/_README
index d15813b..8db7823 100644
--- a/_README
+++ b/_README
@@ -503,6 +503,10 @@ Patch:  1115_linux-4.19.116.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.116
 
+Patch:  1116_linux-4.19.117.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.117
+
 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/1116_linux-4.19.117.patch b/1116_linux-4.19.117.patch
new file mode 100644
index 000..c3a7077
--- /dev/null
+++ b/1116_linux-4.19.117.patch
@@ -0,0 +1,1368 @@
+diff --git a/Makefile b/Makefile
+index d85ff698f5b9..555dbaab7bad 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 116
++SUBLEVEL = 117
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/x86/include/asm/microcode_amd.h 
b/arch/x86/include/asm/microcode_amd.h
+index 209492849566..5c524d4f71cd 100644
+--- a/arch/x86/include/asm/microcode_amd.h
 b/arch/x86/include/asm/microcode_amd.h
+@@ -41,7 +41,7 @@ struct microcode_amd {
+   unsigned intmpb[0];
+ };
+ 
+-#define PATCH_MAX_SIZE PAGE_SIZE
++#define PATCH_MAX_SIZE (3 * PAGE_SIZE)
+ 
+ #ifdef CONFIG_MICROCODE_AMD
+ extern void __init load_ucode_amd_bsp(unsigned int family);
+diff --git a/arch/x86/kernel/cpu/intel_rdt.c b/arch/x86/kernel/cpu/intel_rdt.c
+index 1c92cd08c3b4..b32fa6bcf811 100644
+--- a/arch/x86/kernel/cpu/intel_rdt.c
 b/arch/x86/kernel/cpu/intel_rdt.c
+@@ -555,6 +555,8 @@ static void domain_add_cpu(int cpu, struct rdt_resource *r)
+   d->id = id;
+   cpumask_set_cpu(cpu, >cpu_mask);
+ 
++  rdt_domain_reconfigure_cdp(r);
++
+   if (r->alloc_capable && domain_setup_ctrlval(r, d)) {
+   kfree(d);
+   return;
+diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu/intel_rdt.h
+index 3736f6dc9545..2b483b739cf1 100644
+--- a/arch/x86/kernel/cpu/intel_rdt.h
 b/arch/x86/kernel/cpu/intel_rdt.h
+@@ -567,5 +567,6 @@ void cqm_setup_limbo_handler(struct rdt_domain *dom, 
unsigned long delay_ms);
+ void cqm_handle_limbo(struct work_struct *work);
+ bool has_busy_rmid(struct rdt_resource *r, struct rdt_domain *d);
+ void __check_limbo(struct rdt_domain *d, bool force_free);
++void rdt_domain_reconfigure_cdp(struct rdt_resource *r);
+ 
+ #endif /* _ASM_X86_INTEL_RDT_H */
+diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c 
b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
+index 11c5accfa4db..cea7e01a346d 100644
+--- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
 b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
+@@ -1777,6 +1777,19 @@ static int set_cache_qos_cfg(int level, bool enable)
+   return 0;
+ }
+ 
++/* Restore the qos cfg state when a domain comes online */
++void rdt_domain_reconfigure_cdp(struct rdt_resource *r)
++{
++  if (!r->alloc_capable)
++  return;
++
++  if (r == _resources_all[RDT_RESOURCE_L2DATA])
++  l2_qos_cfg_update(>alloc_enabled);
++
++  if (r == _resources_all[RDT_RESOURCE_L3DATA])
++  l3_qos_cfg_update(>alloc_enabled);
++}
++
+ /*
+  * Enable or disable the MBA software controller
+  * which helps user specify bandwidth in MBps.
+@@ -2910,7 +2923,8 @@ static int rdtgroup_rmdir(struct kernfs_node *kn)
+* If the rdtgroup is a mon group and parent directory
+* is a valid "mon_groups" directory, remove the mon group.
+*/
+-  if (rdtgrp->type == RDTCTRL_GROUP && parent_kn == rdtgroup_default.kn) {
++  if (rdtgrp->type == RDTCTRL_GROUP && parent_kn == rdtgroup_default.kn &&
++  rdtgrp != _default) {
+   if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP ||
+   rdtgrp->mode == RDT_MODE_PSEUDO_LOCKED) {
+   ret = rdtgroup_ctrl_remove(kn, rdtgrp);
+diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
+index 48c24d0e9e75..1fe9ccabc082 100644
+--- a/arch/x86/kvm/cpuid.c
 b/arch/x86/kvm/cpuid.c
+@@ -509,7 +509,8 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 
*entry, u32 function,
+   entry->edx |= F(SPEC_CTRL);
+   if (boot_cpu_has(X86_FEATURE_STIBP))
+   entry->edx |= F(INTEL_STIBP);
+-  if (boot_cpu_has(X86_FEATURE_SSBD))
++  if 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-04-15 Thread Mike Pagano
commit: 7cd0460613075882512bbc048bd79b9262146239
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Apr 15 17:09:28 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Apr 15 17:09:28 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7cd04606

Update config defaults in Gentoo distro kernel patch

Signed-off-by: Mike Pagano  gentoo.org>

 4567_distro-Gentoo-Kconfig.patch | 13 ++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch
index 25f36df..b5174db 100644
--- a/4567_distro-Gentoo-Kconfig.patch
+++ b/4567_distro-Gentoo-Kconfig.patch
@@ -6,9 +6,9 @@
  source "lib/Kconfig.debug"
 +
 +source "distro/Kconfig"
 /dev/null  2019-09-19 03:42:24.71048 -0400
-+++ b/distro/Kconfig   2019-09-19 08:22:31.146930385 -0400
-@@ -0,0 +1,149 @@
+--- /dev/null  2020-04-15 02:49:37.900191585 -0400
 b/distro/Kconfig   2020-04-15 11:07:10.952929540 -0400
+@@ -0,0 +1,156 @@
 +menu "Gentoo Linux"
 +
 +config GENTOO_LINUX
@@ -91,7 +91,12 @@
 +  depends on GENTOO_LINUX
 +
 +  select BINFMT_SCRIPT
++  select CGROUPS
++  select EPOLL
 +  select FILE_LOCKING
++  select INOTIFY_USER
++  select SIGNALFD
++  select TIMERFD
 +
 +  help
 +  The init system is the first thing that loads after the kernel 
booted.
@@ -114,6 +119,8 @@
 +
 +  select AUTOFS4_FS
 +  select BLK_DEV_BSG
++  select BPF_SYSCALL
++  select CGROUP_BPF
 +  select CGROUPS
 +  select CHECKPOINT_RESTORE
 +  select CRYPTO_HMAC 



[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-04-13 Thread Mike Pagano
commit: 94c77d39cd0775e11378a7308bbabc6e6f834254
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Apr 13 11:34:18 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Apr 13 11:34:18 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=94c77d39

Linux patch 4.19.115

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1114_linux-4.19.115.patch | 1883 +
 2 files changed, 1887 insertions(+)

diff --git a/_README b/_README
index 99fb8b5..65d1a80 100644
--- a/_README
+++ b/_README
@@ -495,6 +495,10 @@ Patch:  1113_linux-4.19.114.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.114
 
+Patch:  1114_linux-4.19.115.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.115
+
 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/1114_linux-4.19.115.patch b/1114_linux-4.19.115.patch
new file mode 100644
index 000..d2bb9d9
--- /dev/null
+++ b/1114_linux-4.19.115.patch
@@ -0,0 +1,1883 @@
+diff --git a/Makefile b/Makefile
+index 6f849dafbfec..9830a71e9192 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 114
++SUBLEVEL = 115
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S
+index 06058fba5f86..d22ab8d9edc9 100644
+--- a/arch/arm64/kernel/head.S
 b/arch/arm64/kernel/head.S
+@@ -667,7 +667,7 @@ ENTRY(__boot_cpu_mode)
+  * with MMU turned off.
+  */
+ ENTRY(__early_cpu_boot_status)
+-  .long   0
++  .quad   0
+ 
+   .popsection
+ 
+diff --git a/drivers/char/hw_random/imx-rngc.c 
b/drivers/char/hw_random/imx-rngc.c
+index 14730be54edf..dc9b8f377907 100644
+--- a/drivers/char/hw_random/imx-rngc.c
 b/drivers/char/hw_random/imx-rngc.c
+@@ -111,8 +111,10 @@ static int imx_rngc_self_test(struct imx_rngc *rngc)
+   return -ETIMEDOUT;
+   }
+ 
+-  if (rngc->err_reg != 0)
++  if (rngc->err_reg != 0) {
++  imx_rngc_irq_mask_clear(rngc);
+   return -EIO;
++  }
+ 
+   return 0;
+ }
+diff --git a/drivers/char/random.c b/drivers/char/random.c
+index 53e822793d46..d5f970d039bb 100644
+--- a/drivers/char/random.c
 b/drivers/char/random.c
+@@ -2280,11 +2280,11 @@ struct batched_entropy {
+ 
+ /*
+  * Get a random word for internal kernel use only. The quality of the random
+- * number is either as good as RDRAND or as good as /dev/urandom, with the
+- * goal of being quite fast and not depleting entropy. In order to ensure
++ * number is good as /dev/urandom, but there is no backtrack protection, with
++ * the goal of being quite fast and not depleting entropy. In order to ensure
+  * that the randomness provided by this function is okay, the function
+- * wait_for_random_bytes() should be called and return 0 at least once
+- * at any point prior.
++ * wait_for_random_bytes() should be called and return 0 at least once at any
++ * point prior.
+  */
+ static DEFINE_PER_CPU(struct batched_entropy, batched_entropy_u64) = {
+   .batch_lock = __SPIN_LOCK_UNLOCKED(batched_entropy_u64.lock),
+@@ -2297,15 +2297,6 @@ u64 get_random_u64(void)
+   struct batched_entropy *batch;
+   static void *previous;
+ 
+-#if BITS_PER_LONG == 64
+-  if (arch_get_random_long((unsigned long *)))
+-  return ret;
+-#else
+-  if (arch_get_random_long((unsigned long *)) &&
+-  arch_get_random_long((unsigned long *) + 1))
+-  return ret;
+-#endif
+-
+   warn_unseeded_randomness();
+ 
+   batch = raw_cpu_ptr(_entropy_u64);
+@@ -2330,9 +2321,6 @@ u32 get_random_u32(void)
+   struct batched_entropy *batch;
+   static void *previous;
+ 
+-  if (arch_get_random_int())
+-  return ret;
+-
+   warn_unseeded_randomness();
+ 
+   batch = raw_cpu_ptr(_entropy_u32);
+diff --git a/drivers/clk/qcom/clk-rcg2.c b/drivers/clk/qcom/clk-rcg2.c
+index ee693e15d9eb..f420f0c96877 100644
+--- a/drivers/clk/qcom/clk-rcg2.c
 b/drivers/clk/qcom/clk-rcg2.c
+@@ -105,7 +105,7 @@ static int update_config(struct clk_rcg2 *rcg)
+   }
+ 
+   WARN(1, "%s: rcg didn't update its configuration.", name);
+-  return 0;
++  return -EBUSY;
+ }
+ 
+ static int clk_rcg2_set_parent(struct clk_hw *hw, u8 index)
+diff --git a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c
+index a983708b77a6..363b403bdb51 100644
+--- a/drivers/extcon/extcon-axp288.c
 b/drivers/extcon/extcon-axp288.c
+@@ -428,9 +428,40 @@ static int axp288_extcon_probe(struct platform_device 
*pdev)
+   /* Start charger cable type detection */
+   axp288_extcon_enable(info);
+ 
++  device_init_wakeup(dev, true);
++  platform_set_drvdata(pdev, info);
++
++  return 0;
++}
++
++static int __maybe_unused 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-04-02 Thread Mike Pagano
commit: fd5746a92ae302dc305683a6ef9fd4802b08a829
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Apr  2 15:24:34 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Apr  2 15:24:34 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=fd5746a9

Linux patch 4.19.114

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1113_linux-4.19.114.patch | 3587 +
 2 files changed, 3591 insertions(+)

diff --git a/_README b/_README
index a53677c..99fb8b5 100644
--- a/_README
+++ b/_README
@@ -491,6 +491,10 @@ Patch:  1112_linux-4.19.113.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.113
 
+Patch:  1113_linux-4.19.114.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.114
+
 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/1113_linux-4.19.114.patch b/1113_linux-4.19.114.patch
new file mode 100644
index 000..7ea62ad
--- /dev/null
+++ b/1113_linux-4.19.114.patch
@@ -0,0 +1,3587 @@
+diff --git a/Documentation/devicetree/bindings/net/fsl-fman.txt 
b/Documentation/devicetree/bindings/net/fsl-fman.txt
+index 299c0dcd67db..1316f0aec0cf 100644
+--- a/Documentation/devicetree/bindings/net/fsl-fman.txt
 b/Documentation/devicetree/bindings/net/fsl-fman.txt
+@@ -110,6 +110,13 @@ PROPERTIES
+   Usage: required
+   Definition: See soc/fsl/qman.txt and soc/fsl/bman.txt
+ 
++- fsl,erratum-a050385
++  Usage: optional
++  Value type: boolean
++  Definition: A boolean property. Indicates the presence of the
++  erratum A050385 which indicates that DMA transactions that are
++  split can result in a FMan lock.
++
+ =
+ FMan MURAM Node
+ 
+diff --git a/Makefile b/Makefile
+index 61bfe5519a16..6f849dafbfec 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 113
++SUBLEVEL = 114
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts 
b/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts
+index b7f79f1c431a..5fcadb9cf992 100644
+--- a/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts
 b/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts
+@@ -118,6 +118,7 @@
+  {
+   #address-cells = <1>;
+   #size-cells = <0>;
++  pinctrl-names = "default";
+   pinctrl-0 = <_gpio34 _gpio43>;
+   mmc-pwrseq = <_pwrseq>;
+   non-removable;
+diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
+index c1ef3201950a..e97ef16ce68a 100644
+--- a/arch/arm/boot/dts/dra7.dtsi
 b/arch/arm/boot/dts/dra7.dtsi
+@@ -150,6 +150,7 @@
+   #address-cells = <1>;
+   #size-cells = <1>;
+   ranges = <0x0 0x0 0x0 0xc000>;
++  dma-ranges = <0x8000 0x0 0x8000 0x8000>;
+   ti,hwmods = "l3_main_1", "l3_main_2";
+   reg = <0x0 0x4400 0x0 0x100>,
+ <0x0 0x4500 0x0 0x1000>;
+diff --git a/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi 
b/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi
+index 881cea0b61ba..31fa37d2fe47 100644
+--- a/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi
 b/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi
+@@ -107,14 +107,14 @@
+   regulators {
+   vdd_arm: buck1 {
+   regulator-name = "vdd_arm";
+-  regulator-min-microvolt = <73>;
++  regulator-min-microvolt = <925000>;
+   regulator-max-microvolt = <138>;
+   regulator-always-on;
+   };
+ 
+   vdd_soc: buck2 {
+   regulator-name = "vdd_soc";
+-  regulator-min-microvolt = <73>;
++  regulator-min-microvolt = <115>;
+   regulator-max-microvolt = <138>;
+   regulator-always-on;
+   };
+diff --git a/arch/arm/boot/dts/omap3-n900.dts 
b/arch/arm/boot/dts/omap3-n900.dts
+index 37785e7d1238..00b2eb8c3195 100644
+--- a/arch/arm/boot/dts/omap3-n900.dts
 b/arch/arm/boot/dts/omap3-n900.dts
+@@ -852,34 +852,46 @@
+   compatible = "ti,omap2-onenand";
+   reg = <0 0 0x2>;/* CS0, offset 0, IO size 128K */
+ 
++  /*
++   * These timings are based on CONFIG_OMAP_GPMC_DEBUG=y reported
++   * bootloader set values when booted with v5.1
++   * (OneNAND Manufacturer: Samsung):
++   *
++   *   cs0 GPMC_CS_CONFIG1: 0xfb001202
++   * 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-03-25 Thread Mike Pagano
commit: f6eb349022334dfb4c800d30c6230ced648b53b4
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Mar 25 14:58:12 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Mar 25 14:58:12 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=f6eb3490

Linux patch 4.19.113

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1112_linux-4.19.113.patch | 1980 +
 2 files changed, 1984 insertions(+)

diff --git a/_README b/_README
index e470ab2..a53677c 100644
--- a/_README
+++ b/_README
@@ -487,6 +487,10 @@ Patch:  _linux-4.19.112.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.112
 
+Patch:  1112_linux-4.19.113.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.113
+
 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/1112_linux-4.19.113.patch b/1112_linux-4.19.113.patch
new file mode 100644
index 000..2022fa5
--- /dev/null
+++ b/1112_linux-4.19.113.patch
@@ -0,0 +1,1980 @@
+diff --git a/Makefile b/Makefile
+index bd57e085188d..61bfe5519a16 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 112
++SUBLEVEL = 113
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
+index 7ce24b282d42..c1ef3201950a 100644
+--- a/arch/arm/boot/dts/dra7.dtsi
 b/arch/arm/boot/dts/dra7.dtsi
+@@ -324,6 +324,7 @@
+   device_type = "pci";
+   ranges = <0x8100 0 0  0x03000 0 
0x0001
+ 0x8200 0 0x20013000 0x13000 0 
0xffed000>;
++  dma-ranges = <0x0200 0x0 0x 
0x 0x1 0x>;
+   bus-range = <0x00 0xff>;
+   #interrupt-cells = <1>;
+   num-lanes = <1>;
+@@ -376,6 +377,7 @@
+   device_type = "pci";
+   ranges = <0x8100 0 0  0x03000 0 
0x0001
+ 0x8200 0 0x30013000 0x13000 0 
0xffed000>;
++  dma-ranges = <0x0200 0x0 0x 
0x 0x1 0x>;
+   bus-range = <0x00 0xff>;
+   #interrupt-cells = <1>;
+   num-lanes = <1>;
+diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c
+index 52aa51f6310b..716810a08f24 100644
+--- a/arch/arm64/kernel/smp.c
 b/arch/arm64/kernel/smp.c
+@@ -936,11 +936,22 @@ void tick_broadcast(const struct cpumask *mask)
+ }
+ #endif
+ 
++/*
++ * The number of CPUs online, not counting this CPU (which may not be
++ * fully online and so not counted in num_online_cpus()).
++ */
++static inline unsigned int num_other_online_cpus(void)
++{
++  unsigned int this_cpu_online = cpu_online(smp_processor_id());
++
++  return num_online_cpus() - this_cpu_online;
++}
++
+ void smp_send_stop(void)
+ {
+   unsigned long timeout;
+ 
+-  if (num_online_cpus() > 1) {
++  if (num_other_online_cpus()) {
+   cpumask_t mask;
+ 
+   cpumask_copy(, cpu_online_mask);
+@@ -953,10 +964,10 @@ void smp_send_stop(void)
+ 
+   /* Wait up to one second for other CPUs to stop */
+   timeout = USEC_PER_SEC;
+-  while (num_online_cpus() > 1 && timeout--)
++  while (num_other_online_cpus() && timeout--)
+   udelay(1);
+ 
+-  if (num_online_cpus() > 1)
++  if (num_other_online_cpus())
+   pr_warning("SMP: failed to stop secondary CPUs %*pbl\n",
+  cpumask_pr_args(cpu_online_mask));
+ 
+@@ -979,7 +990,11 @@ void crash_smp_send_stop(void)
+ 
+   cpus_stopped = 1;
+ 
+-  if (num_online_cpus() == 1) {
++  /*
++   * If this cpu is the only one alive at this point in time, online or
++   * not, there are no stop messages to be sent around, so just back out.
++   */
++  if (num_other_online_cpus() == 0) {
+   sdei_mask_local_cpu();
+   return;
+   }
+@@ -987,7 +1002,7 @@ void crash_smp_send_stop(void)
+   cpumask_copy(, cpu_online_mask);
+   cpumask_clear_cpu(smp_processor_id(), );
+ 
+-  atomic_set(_for_crash_ipi, num_online_cpus() - 1);
++  atomic_set(_for_crash_ipi, num_other_online_cpus());
+ 
+   pr_crit("SMP: stopping secondary CPUs\n");
+   smp_cross_call(, IPI_CPU_CRASH_STOP);
+diff --git a/arch/powerpc/kernel/vmlinux.lds.S 
b/arch/powerpc/kernel/vmlinux.lds.S
+index fd35eddf3266..d081d726ca8e 100644
+--- a/arch/powerpc/kernel/vmlinux.lds.S
 b/arch/powerpc/kernel/vmlinux.lds.S
+@@ -322,6 +322,12 @@ SECTIONS
+   *(.branch_lt)
+   

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-03-20 Thread Mike Pagano
commit: d763e643caecaf529b1a9a2cfa9981ed82043b40
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Mar 20 11:57:16 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Mar 20 11:57:16 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=d763e643

Linux patch 4.19.112

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 _linux-4.19.112.patch | 1986 +
 2 files changed, 1990 insertions(+)

diff --git a/_README b/_README
index 7eab5d8..e470ab2 100644
--- a/_README
+++ b/_README
@@ -483,6 +483,10 @@ Patch:  1110_linux-4.19.111.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.111
 
+Patch:  _linux-4.19.112.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.112
+
 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/_linux-4.19.112.patch b/_linux-4.19.112.patch
new file mode 100644
index 000..47b3ac8
--- /dev/null
+++ b/_linux-4.19.112.patch
@@ -0,0 +1,1986 @@
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index 8bf0c0532046..1a5101b7e853 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -136,6 +136,10 @@
+   dynamic table installation which will install SSDT
+   tables to /sys/firmware/acpi/tables/dynamic.
+ 
++  acpi_no_watchdog[HW,ACPI,WDT]
++  Ignore the ACPI-based watchdog interface (WDAT) and let
++  a native driver control the watchdog device instead.
++
+   acpi_rsdp=  [ACPI,EFI,KEXEC]
+   Pass the RSDP address to the kernel, mostly used
+   on machines running EFI runtime service to boot the
+diff --git a/Documentation/driver-api/device_link.rst 
b/Documentation/driver-api/device_link.rst
+index d6763272e747..e8b0a8fd1ae0 100644
+--- a/Documentation/driver-api/device_link.rst
 b/Documentation/driver-api/device_link.rst
+@@ -25,8 +25,8 @@ suspend/resume and shutdown ordering.
+ 
+ Device links allow representation of such dependencies in the driver core.
+ 
+-In its standard form, a device link combines *both* dependency types:
+-It guarantees correct suspend/resume and shutdown ordering between a
++In its standard or *managed* form, a device link combines *both* dependency
++types:  It guarantees correct suspend/resume and shutdown ordering between a
+ "supplier" device and its "consumer" devices, and it guarantees driver
+ presence on the supplier.  The consumer devices are not probed before the
+ supplier is bound to a driver, and they're unbound before the supplier
+@@ -59,18 +59,24 @@ device ``->probe`` callback or a boot-time PCI quirk.
+ 
+ Another example for an inconsistent state would be a device link that
+ represents a driver presence dependency, yet is added from the consumer's
+-``->probe`` callback while the supplier hasn't probed yet:  Had the driver
+-core known about the device link earlier, it wouldn't have probed the
++``->probe`` callback while the supplier hasn't started to probe yet:  Had the
++driver core known about the device link earlier, it wouldn't have probed the
+ consumer in the first place.  The onus is thus on the consumer to check
+ presence of the supplier after adding the link, and defer probing on
+-non-presence.
+-
+-If a device link is added in the ``->probe`` callback of the supplier or
+-consumer driver, it is typically deleted in its ``->remove`` callback for
+-symmetry.  That way, if the driver is compiled as a module, the device
+-link is added on module load and orderly deleted on unload.  The same
+-restrictions that apply to device link addition (e.g. exclusion of a
+-parallel suspend/resume transition) apply equally to deletion.
++non-presence.  [Note that it is valid to create a link from the consumer's
++``->probe`` callback while the supplier is still probing, but the consumer 
must
++know that the supplier is functional already at the link creation time (that 
is
++the case, for instance, if the consumer has just acquired some resources that
++would not have been available had the supplier not been functional then).]
++
++If a device link with ``DL_FLAG_STATELESS`` set (i.e. a stateless device link)
++is added in the ``->probe`` callback of the supplier or consumer driver, it is
++typically deleted in its ``->remove`` callback for symmetry.  That way, if the
++driver is compiled as a module, the device link is added on module load and
++orderly deleted on unload.  The same restrictions that apply to device link
++addition (e.g. exclusion of a parallel suspend/resume transition) apply 
equally
++to deletion.  Device links managed by the driver core are deleted 
automatically
++by it.
+ 
+ Several 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-03-18 Thread Mike Pagano
commit: 0c71034458005ca3ca7c140cd80cafd8e68e314a
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Mar 18 14:20:50 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Mar 18 14:20:50 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0c710344

Linux patch 4.19.111

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1110_linux-4.19.111.patch | 2538 +
 2 files changed, 2542 insertions(+)

diff --git a/_README b/_README
index 8e31d5f..7eab5d8 100644
--- a/_README
+++ b/_README
@@ -479,6 +479,10 @@ Patch:  1109_linux-4.19.110.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.110
 
+Patch:  1110_linux-4.19.111.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.111
+
 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/1110_linux-4.19.111.patch b/1110_linux-4.19.111.patch
new file mode 100644
index 000..d0588c2
--- /dev/null
+++ b/1110_linux-4.19.111.patch
@@ -0,0 +1,2538 @@
+diff --git a/Documentation/filesystems/porting 
b/Documentation/filesystems/porting
+index 32b5186be412..041b0ded8b44 100644
+--- a/Documentation/filesystems/porting
 b/Documentation/filesystems/porting
+@@ -627,3 +627,10 @@ in your dentry operations instead.
+   DCACHE_RCUACCESS is gone; having an RCU delay on dentry freeing is the
+   default.  DCACHE_NORCU opts out, and only d_alloc_pseudo() has any
+   business doing so.
++--
++[mandatory]
++
++  [should've been added in 2016] stale comment in finish_open()
++  nonwithstanding, failure exits in ->atomic_open() instances should
++  *NOT* fput() the file, no matter what.  Everything is handled by the
++  caller.
+diff --git a/Makefile b/Makefile
+index ada958d1bc2b..fed04bdef0a3 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 110
++SUBLEVEL = 111
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arc/include/asm/linkage.h b/arch/arc/include/asm/linkage.h
+index b29f1a9fd6f7..07c8e1a6c56e 100644
+--- a/arch/arc/include/asm/linkage.h
 b/arch/arc/include/asm/linkage.h
+@@ -14,6 +14,8 @@
+ #ifdef __ASSEMBLY__
+ 
+ #define ASM_NL `  /* use '`' to mark new line in macro */
++#define __ALIGN   .align 4
++#define __ALIGN_STR   __stringify(__ALIGN)
+ 
+ /* annotation for data we want in DCCM - if enabled in .config */
+ .macro ARCFP_DATA nm
+diff --git a/arch/x86/kernel/cpu/mcheck/mce_intel.c 
b/arch/x86/kernel/cpu/mcheck/mce_intel.c
+index d05be307d081..1d87b85150db 100644
+--- a/arch/x86/kernel/cpu/mcheck/mce_intel.c
 b/arch/x86/kernel/cpu/mcheck/mce_intel.c
+@@ -489,17 +489,18 @@ static void intel_ppin_init(struct cpuinfo_x86 *c)
+   return;
+ 
+   if ((val & 3UL) == 1UL) {
+-  /* PPIN available but disabled: */
++  /* PPIN locked in disabled mode */
+   return;
+   }
+ 
+-  /* If PPIN is disabled, but not locked, try to enable: */
+-  if (!(val & 3UL)) {
++  /* If PPIN is disabled, try to enable */
++  if (!(val & 2UL)) {
+   wrmsrl_safe(MSR_PPIN_CTL,  val | 2UL);
+   rdmsrl_safe(MSR_PPIN_CTL, );
+   }
+ 
+-  if ((val & 3UL) == 2UL)
++  /* Is the enable bit set? */
++  if (val & 2UL)
+   set_cpu_cap(c, X86_FEATURE_INTEL_PPIN);
+   }
+ }
+diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
+index c91431bc476e..210eabd71ab2 100644
+--- a/arch/x86/kvm/emulate.c
 b/arch/x86/kvm/emulate.c
+@@ -5112,6 +5112,7 @@ int x86_decode_insn(struct x86_emulate_ctxt *ctxt, void 
*insn, int insn_len)
+   ctxt->fetch.ptr = ctxt->fetch.data;
+   ctxt->fetch.end = ctxt->fetch.data + insn_len;
+   ctxt->opcode_len = 1;
++  ctxt->intercept = x86_intercept_none;
+   if (insn_len > 0)
+   memcpy(ctxt->fetch.data, insn, insn_len);
+   else {
+diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
+index dd64f586679e..728c9a9609f0 100644
+--- a/drivers/block/virtio_blk.c
 b/drivers/block/virtio_blk.c
+@@ -271,10 +271,12 @@ static blk_status_t virtio_queue_rq(struct blk_mq_hw_ctx 
*hctx,
+   err = virtblk_add_req(vblk->vqs[qid].vq, vbr, vbr->sg, num);
+   if (err) {
+   virtqueue_kick(vblk->vqs[qid].vq);
+-  blk_mq_stop_hw_queue(hctx);
++  /* Don't stop the queue if -ENOMEM: we may have failed to
++   * bounce the buffer due to global resource outage.
++   */
++  if (err == -ENOSPC)
++  blk_mq_stop_hw_queue(hctx);
+   

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-03-16 Thread Mike Pagano
commit: a66c75a90a0ff3fd27e2fe18daa09dce21c12202
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Mar 16 12:23:25 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Mar 16 12:23:25 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a66c75a9

Linux patch 4.19.110

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |  4 
 1109_linux-4.19.110.patch | 26 ++
 2 files changed, 30 insertions(+)

diff --git a/_README b/_README
index f28ed71..8e31d5f 100644
--- a/_README
+++ b/_README
@@ -475,6 +475,10 @@ Patch:  1108_linux-4.19.109.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.109
 
+Patch:  1109_linux-4.19.110.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.110
+
 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/1109_linux-4.19.110.patch b/1109_linux-4.19.110.patch
new file mode 100644
index 000..955b326
--- /dev/null
+++ b/1109_linux-4.19.110.patch
@@ -0,0 +1,26 @@
+diff --git a/Makefile b/Makefile
+index 059c5e0aac15..ada958d1bc2b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 109
++SUBLEVEL = 110
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
+index 3f0565e1a7a8..cc8f3b41a1b2 100644
+--- a/arch/x86/kvm/svm.c
 b/arch/x86/kvm/svm.c
+@@ -1336,7 +1336,7 @@ static __init void svm_adjust_mmio_mask(void)
+*/
+   mask = (mask_bit < 52) ? rsvd_bits(mask_bit, 51) | PT_PRESENT_MASK : 0;
+ 
+-  kvm_mmu_set_mmio_spte_mask(mask, PT_WRITABLE_MASK | PT_USER_MASK);
++  kvm_mmu_set_mmio_spte_mask(mask, mask);
+ }
+ 
+ static __init int svm_hardware_setup(void)



[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-03-11 Thread Mike Pagano
commit: a7a2d5b8301b005322e03bf60e509e3f9c6775ab
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Mar 11 17:19:48 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Mar 11 17:19:48 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a7a2d5b8

Linux patch 4.19.109

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1108_linux-4.19.109.patch | 2869 +
 2 files changed, 2873 insertions(+)

diff --git a/_README b/_README
index 65259b7..f28ed71 100644
--- a/_README
+++ b/_README
@@ -471,6 +471,10 @@ Patch:  1107_linux-4.19.108.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.108
 
+Patch:  1108_linux-4.19.109.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.109
+
 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/1108_linux-4.19.109.patch b/1108_linux-4.19.109.patch
new file mode 100644
index 000..ed6fc38
--- /dev/null
+++ b/1108_linux-4.19.109.patch
@@ -0,0 +1,2869 @@
+diff --git a/Makefile b/Makefile
+index 313f0c8dd66f..059c5e0aac15 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 108
++SUBLEVEL = 109
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/am437x-idk-evm.dts 
b/arch/arm/boot/dts/am437x-idk-evm.dts
+index 20132477a871..80603af33cab 100644
+--- a/arch/arm/boot/dts/am437x-idk-evm.dts
 b/arch/arm/boot/dts/am437x-idk-evm.dts
+@@ -525,11 +525,11 @@
+* Supply voltage supervisor on board will not allow opp50 so
+* disable it and set opp100 as suspend OPP.
+*/
+-  opp50@3 {
++  opp50-3 {
+   status = "disabled";
+   };
+ 
+-  opp100@6 {
++  opp100-6 {
+   opp-suspend;
+   };
+ };
+diff --git a/arch/arm/boot/dts/dra76x.dtsi b/arch/arm/boot/dts/dra76x.dtsi
+index 613e4dc0ed3e..216e1d1a69c7 100644
+--- a/arch/arm/boot/dts/dra76x.dtsi
 b/arch/arm/boot/dts/dra76x.dtsi
+@@ -81,3 +81,8 @@
+   reg = <0x3fc>;
+   };
+ };
++
++ {
++  /* dra76x is not affected by i887 */
++  max-frequency = <9600>;
++};
+diff --git a/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi 
b/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi
+index 6486df3e2942..881cea0b61ba 100644
+--- a/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi
 b/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi
+@@ -183,7 +183,6 @@
+   pinctrl-0 = <_usdhc4>;
+   bus-width = <8>;
+   non-removable;
+-  vmmc-supply = <_emmc_1p8>;
+   status = "disabled";
+ };
+ 
+diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi 
b/arch/arm/boot/dts/imx7-colibri.dtsi
+index c1ed83131b49..37aeba999be3 100644
+--- a/arch/arm/boot/dts/imx7-colibri.dtsi
 b/arch/arm/boot/dts/imx7-colibri.dtsi
+@@ -319,7 +319,6 @@
+   assigned-clock-rates = <4>;
+   bus-width = <8>;
+   fsl,tuning-step = <2>;
+-  max-frequency = <1>;
+   vmmc-supply = <_module_3v3>;
+   vqmmc-supply = <_DCDC3>;
+   non-removable;
+diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi
+index 7e22309bccac..074b4ec520c6 100644
+--- a/arch/arm/boot/dts/ls1021a.dtsi
 b/arch/arm/boot/dts/ls1021a.dtsi
+@@ -584,7 +584,7 @@
+   };
+ 
+   mdio0: mdio@2d24000 {
+-  compatible = "fsl,etsec2-mdio";
++  compatible = "gianfar";
+   device_type = "mdio";
+   #address-cells = <1>;
+   #size-cells = <0>;
+@@ -593,7 +593,7 @@
+   };
+ 
+   mdio1: mdio@2d64000 {
+-  compatible = "fsl,etsec2-mdio";
++  compatible = "gianfar";
+   device_type = "mdio";
+   #address-cells = <1>;
+   #size-cells = <0>;
+diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile
+index bae179af21f6..e9cfe8e86f33 100644
+--- a/arch/arm/mach-imx/Makefile
 b/arch/arm/mach-imx/Makefile
+@@ -89,6 +89,8 @@ AFLAGS_suspend-imx6.o :=-Wa,-march=armv7-a
+ obj-$(CONFIG_SOC_IMX6) += suspend-imx6.o
+ obj-$(CONFIG_SOC_IMX53) += suspend-imx53.o
+ endif
++AFLAGS_resume-imx6.o :=-Wa,-march=armv7-a
++obj-$(CONFIG_SOC_IMX6) += resume-imx6.o
+ obj-$(CONFIG_SOC_IMX6) += pm-imx6.o
+ 
+ obj-$(CONFIG_SOC_IMX1) += mach-imx1.o
+diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h
+index 423dd76bb6b8..9728e39cd182 100644
+--- a/arch/arm/mach-imx/common.h
 b/arch/arm/mach-imx/common.h
+@@ -103,17 +103,17 @@ void imx_cpu_die(unsigned int cpu);
+ int imx_cpu_kill(unsigned int cpu);
+ 
+ #ifdef CONFIG_SUSPEND
+-void v7_cpu_resume(void);
+ void imx53_suspend(void __iomem *ocram_vbase);
+ extern const 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-03-05 Thread Mike Pagano
commit: 836621b120225f053a815f0660ead626b1a5ebb4
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Mar  5 16:23:07 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Mar  5 16:23:07 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=836621b1

Linux patch 4.19.108

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1107_linux-4.19.108.patch | 2999 +
 2 files changed, 3003 insertions(+)

diff --git a/_README b/_README
index 7d48aad..65259b7 100644
--- a/_README
+++ b/_README
@@ -467,6 +467,10 @@ Patch:  1106_linux-4.19.107.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.107
 
+Patch:  1107_linux-4.19.108.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.108
+
 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/1107_linux-4.19.108.patch b/1107_linux-4.19.108.patch
new file mode 100644
index 000..f4ed81e
--- /dev/null
+++ b/1107_linux-4.19.108.patch
@@ -0,0 +1,2999 @@
+diff --git a/Documentation/networking/nf_flowtable.txt 
b/Documentation/networking/nf_flowtable.txt
+index 54128c50d508..b01c91893481 100644
+--- a/Documentation/networking/nf_flowtable.txt
 b/Documentation/networking/nf_flowtable.txt
+@@ -76,7 +76,7 @@ flowtable and add one rule to your forward chain.
+ 
+ table inet x {
+   flowtable f {
+-  hook ingress priority 0 devices = { eth0, eth1 };
++  hook ingress priority 0; devices = { eth0, eth1 };
+   }
+ chain y {
+ type filter hook forward priority 0; policy accept;
+diff --git a/Makefile b/Makefile
+index 69e2527a6968..313f0c8dd66f 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 107
++SUBLEVEL = 108
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/stihxxx-b2120.dtsi 
b/arch/arm/boot/dts/stihxxx-b2120.dtsi
+index 4dedfcb0fcb3..ac42d3c6bda0 100644
+--- a/arch/arm/boot/dts/stihxxx-b2120.dtsi
 b/arch/arm/boot/dts/stihxxx-b2120.dtsi
+@@ -45,7 +45,7 @@
+   /* DAC */
+   format = "i2s";
+   mclk-fs = <256>;
+-  frame-inversion = <1>;
++  frame-inversion;
+   cpu {
+   sound-dai = <_uni_player2>;
+   };
+diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c
+index 0bef238d2c0c..0d5f9c8f5bda 100644
+--- a/arch/mips/kernel/vpe.c
 b/arch/mips/kernel/vpe.c
+@@ -134,7 +134,7 @@ void release_vpe(struct vpe *v)
+ {
+   list_del(>list);
+   if (v->load_addr)
+-  release_progmem(v);
++  release_progmem(v->load_addr);
+   kfree(v);
+ }
+ 
+diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
+index 0219693bf08e..3f0565e1a7a8 100644
+--- a/arch/x86/kvm/svm.c
 b/arch/x86/kvm/svm.c
+@@ -1298,6 +1298,47 @@ static void shrink_ple_window(struct kvm_vcpu *vcpu)
+   control->pause_filter_count, old);
+ }
+ 
++/*
++ * The default MMIO mask is a single bit (excluding the present bit),
++ * which could conflict with the memory encryption bit. Check for
++ * memory encryption support and override the default MMIO mask if
++ * memory encryption is enabled.
++ */
++static __init void svm_adjust_mmio_mask(void)
++{
++  unsigned int enc_bit, mask_bit;
++  u64 msr, mask;
++
++  /* If there is no memory encryption support, use existing mask */
++  if (cpuid_eax(0x8000) < 0x801f)
++  return;
++
++  /* If memory encryption is not enabled, use existing mask */
++  rdmsrl(MSR_K8_SYSCFG, msr);
++  if (!(msr & MSR_K8_SYSCFG_MEM_ENCRYPT))
++  return;
++
++  enc_bit = cpuid_ebx(0x801f) & 0x3f;
++  mask_bit = boot_cpu_data.x86_phys_bits;
++
++  /* Increment the mask bit if it is the same as the encryption bit */
++  if (enc_bit == mask_bit)
++  mask_bit++;
++
++  /*
++   * If the mask bit location is below 52, then some bits above the
++   * physical addressing limit will always be reserved, so use the
++   * rsvd_bits() function to generate the mask. This mask, along with
++   * the present bit, will be used to generate a page fault with
++   * PFER.RSV = 1.
++   *
++   * If the mask bit location is 52 (or above), then clear the mask.
++   */
++  mask = (mask_bit < 52) ? rsvd_bits(mask_bit, 51) | PT_PRESENT_MASK : 0;
++
++  kvm_mmu_set_mmio_spte_mask(mask, PT_WRITABLE_MASK | PT_USER_MASK);
++}
++
+ static __init int svm_hardware_setup(void)
+ {
+   int cpu;
+@@ -1352,6 +1393,8 @@ static __init int svm_hardware_setup(void)
+   }
+   }
+ 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-02-19 Thread Mike Pagano
commit: 0e48f80db777845a4ff23c262674ad2515652533
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Feb 19 23:44:50 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Feb 19 23:44:50 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0e48f80d

Linux patch 4.19.105

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1104_linux-4.19.105.patch | 1521 +
 2 files changed, 1525 insertions(+)

diff --git a/_README b/_README
index 6839197..f83fdcc 100644
--- a/_README
+++ b/_README
@@ -455,6 +455,10 @@ Patch:  1103_linux-4.19.104.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.104
 
+Patch:  1104_linux-4.19.105.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.105
+
 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/1104_linux-4.19.105.patch b/1104_linux-4.19.105.patch
new file mode 100644
index 000..183f892
--- /dev/null
+++ b/1104_linux-4.19.105.patch
@@ -0,0 +1,1521 @@
+diff --git a/Makefile b/Makefile
+index 004d964cca50..eef7de60cd94 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 104
++SUBLEVEL = 105
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/mach-npcm/Kconfig b/arch/arm/mach-npcm/Kconfig
+index 684c9c9a32bd..1d17515deb4e 100644
+--- a/arch/arm/mach-npcm/Kconfig
 b/arch/arm/mach-npcm/Kconfig
+@@ -10,7 +10,7 @@ config ARCH_NPCM7XX
+   depends on ARCH_MULTI_V7
+   select PINCTRL_NPCM7XX
+   select NPCM7XX_TIMER
+-  select ARCH_REQUIRE_GPIOLIB
++  select GPIOLIB
+   select CACHE_L2X0
+   select ARM_GIC
+   select HAVE_ARM_TWD if SMP
+diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
+index 1375307fbe4d..ac3126aba036 100644
+--- a/arch/arm64/kernel/cpufeature.c
 b/arch/arm64/kernel/cpufeature.c
+@@ -42,9 +42,7 @@ EXPORT_SYMBOL_GPL(elf_hwcap);
+ #define COMPAT_ELF_HWCAP_DEFAULT  \
+   (COMPAT_HWCAP_HALF|COMPAT_HWCAP_THUMB|\
+COMPAT_HWCAP_FAST_MULT|COMPAT_HWCAP_EDSP|\
+-   COMPAT_HWCAP_TLS|COMPAT_HWCAP_VFP|\
+-   COMPAT_HWCAP_VFPv3|COMPAT_HWCAP_VFPv4|\
+-   COMPAT_HWCAP_NEON|COMPAT_HWCAP_IDIV|\
++   COMPAT_HWCAP_TLS|COMPAT_HWCAP_IDIV|\
+COMPAT_HWCAP_LPAE)
+ unsigned int compat_elf_hwcap __read_mostly = COMPAT_ELF_HWCAP_DEFAULT;
+ unsigned int compat_elf_hwcap2 __read_mostly;
+@@ -1341,17 +1339,30 @@ static const struct arm64_cpu_capabilities 
arm64_features[] = {
+   {},
+ };
+ 
+-#define HWCAP_CAP(reg, field, s, min_value, cap_type, cap)\
+-  {   \
+-  .desc = #cap,   \
+-  .type = ARM64_CPUCAP_SYSTEM_FEATURE,\
++
++#define HWCAP_CPUID_MATCH(reg, field, s, min_value)   \
+   .matches = has_cpuid_feature,   \
+   .sys_reg = reg, \
+   .field_pos = field, \
+   .sign = s,  \
+   .min_field_value = min_value,   \
++
++#define __HWCAP_CAP(name, cap_type, cap)  \
++  .desc = name,   \
++  .type = ARM64_CPUCAP_SYSTEM_FEATURE,\
+   .hwcap_type = cap_type, \
+   .hwcap = cap,   \
++
++#define HWCAP_CAP(reg, field, s, min_value, cap_type, cap)\
++  {   \
++  __HWCAP_CAP(#cap, cap_type, cap)\
++  HWCAP_CPUID_MATCH(reg, field, s, min_value) \
++  }
++
++#define HWCAP_CAP_MATCH(match, cap_type, cap) \
++  {   \
++  __HWCAP_CAP(#cap, cap_type, cap)\
++  .matches = match,   \
+   }
+ 
+ static const struct arm64_cpu_capabilities arm64_elf_hwcaps[] = {
+@@ -1387,8 +1398,35 @@ static const struct arm64_cpu_capabilities 
arm64_elf_hwcaps[] = {
+   {},
+ };
+ 
++#ifdef CONFIG_COMPAT
++static bool compat_has_neon(const struct arm64_cpu_capabilities *cap, int 
scope)
++{
++  /*
++   * Check that all of MVFR1_EL1.{SIMDSP, SIMDInt, SIMDLS} are available,
++   * in line with that of arm32 as in vfp_init(). We make sure that the
++   * check is future proof, by making sure value is non-zero.
++   */
++  u32 mvfr1;
++
++  

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-02-14 Thread Mike Pagano
commit: 08c1c813a743bc4ae2802b0f97128f56bb902fce
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Feb 14 23:52:14 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Feb 14 23:52:14 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=08c1c813

Linux patch 4.19.104

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1103_linux-4.19.104.patch |  +
 2 files changed, 2226 insertions(+)

diff --git a/_README b/_README
index 8ac0cbe..6839197 100644
--- a/_README
+++ b/_README
@@ -451,6 +451,10 @@ Patch:  1102_linux-4.19.103.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.103
 
+Patch:  1103_linux-4.19.104.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.104
+
 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/1103_linux-4.19.104.patch b/1103_linux-4.19.104.patch
new file mode 100644
index 000..04bc7eb
--- /dev/null
+++ b/1103_linux-4.19.104.patch
@@ -0,0 +1, @@
+diff --git a/Makefile b/Makefile
+index 37f58becf5c2..004d964cca50 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 103
++SUBLEVEL = 104
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arc/boot/dts/axs10x_mb.dtsi 
b/arch/arc/boot/dts/axs10x_mb.dtsi
+index 37bafd44e36d..da10a569adf7 100644
+--- a/arch/arc/boot/dts/axs10x_mb.dtsi
 b/arch/arc/boot/dts/axs10x_mb.dtsi
+@@ -80,6 +80,7 @@
+   interrupt-names = "macirq";
+   phy-mode = "rgmii";
+   snps,pbl = < 32 >;
++  snps,multicast-filter-bins = <256>;
+   clocks = <>;
+   clock-names = "stmmaceth";
+   max-speed = <100>;
+diff --git a/arch/arm/boot/dts/am43xx-clocks.dtsi 
b/arch/arm/boot/dts/am43xx-clocks.dtsi
+index a7037a4b4fd4..ce3c4196f173 100644
+--- a/arch/arm/boot/dts/am43xx-clocks.dtsi
 b/arch/arm/boot/dts/am43xx-clocks.dtsi
+@@ -707,6 +707,60 @@
+   ti,bit-shift = <8>;
+   reg = <0x2a48>;
+   };
++
++  clkout1_osc_div_ck: clkout1-osc-div-ck {
++  #clock-cells = <0>;
++  compatible = "ti,divider-clock";
++  clocks = <_clkin_ck>;
++  ti,bit-shift = <20>;
++  ti,max-div = <4>;
++  reg = <0x4100>;
++  };
++
++  clkout1_src2_mux_ck: clkout1-src2-mux-ck {
++  #clock-cells = <0>;
++  compatible = "ti,mux-clock";
++  clocks = <_rc32k_ck>, <_div>, <_ddr_m2_ck>,
++   <_per_m2_ck>, <_disp_m2_ck>,
++   <_mpu_m2_ck>;
++  reg = <0x4100>;
++  };
++
++  clkout1_src2_pre_div_ck: clkout1-src2-pre-div-ck {
++  #clock-cells = <0>;
++  compatible = "ti,divider-clock";
++  clocks = <_src2_mux_ck>;
++  ti,bit-shift = <4>;
++  ti,max-div = <8>;
++  reg = <0x4100>;
++  };
++
++  clkout1_src2_post_div_ck: clkout1-src2-post-div-ck {
++  #clock-cells = <0>;
++  compatible = "ti,divider-clock";
++  clocks = <_src2_pre_div_ck>;
++  ti,bit-shift = <8>;
++  ti,max-div = <32>;
++  ti,index-power-of-two;
++  reg = <0x4100>;
++  };
++
++  clkout1_mux_ck: clkout1-mux-ck {
++  #clock-cells = <0>;
++  compatible = "ti,mux-clock";
++  clocks = <_osc_div_ck>, <_rc32k_ck>,
++   <_src2_post_div_ck>, <_extdev_m2_ck>;
++  ti,bit-shift = <16>;
++  reg = <0x4100>;
++  };
++
++  clkout1_ck: clkout1-ck {
++  #clock-cells = <0>;
++  compatible = "ti,gate-clock";
++  clocks = <_mux_ck>;
++  ti,bit-shift = <23>;
++  reg = <0x4100>;
++  };
+ };
+ 
+  {
+diff --git a/arch/arm/boot/dts/at91sam9260.dtsi 
b/arch/arm/boot/dts/at91sam9260.dtsi
+index 9118e29b6d6a..3fa6b9fbb822 100644
+--- a/arch/arm/boot/dts/at91sam9260.dtsi
 b/arch/arm/boot/dts/at91sam9260.dtsi
+@@ -434,7 +434,7 @@
+   usart0 {
+   pinctrl_usart0: usart0-0 {
+   atmel,pins =
+-  ;
+   };
+ 
+@@ -468,7 +468,7 @@
+   usart1 {
+   pinctrl_usart1: usart1-0 {
+   atmel,pins =
+-  ;
+   };
+ 
+@@ -486,7 +486,7 @@
+   usart2 {
+ 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-02-05 Thread Mike Pagano
commit: c4181dc6ce2cfbd67ab78a5e9e23474e0a2e5c71
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Feb  5 17:05:05 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Feb  5 17:05:05 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c4181dc6

Linuxpatch 4.19.102

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1101_linux-4.19.102.patch | 2428 +
 2 files changed, 2432 insertions(+)

diff --git a/_README b/_README
index 2399ee7..0d9cae4 100644
--- a/_README
+++ b/_README
@@ -443,6 +443,10 @@ Patch:  1100_linux-4.19.101.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.101
 
+Patch:  1101_linux-4.19.102.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.102
+
 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/1101_linux-4.19.102.patch b/1101_linux-4.19.102.patch
new file mode 100644
index 000..ade97ea
--- /dev/null
+++ b/1101_linux-4.19.102.patch
@@ -0,0 +1,2428 @@
+diff --git a/Documentation/ABI/testing/sysfs-class-devfreq 
b/Documentation/ABI/testing/sysfs-class-devfreq
+index ee39acacf6f8..335595a79866 100644
+--- a/Documentation/ABI/testing/sysfs-class-devfreq
 b/Documentation/ABI/testing/sysfs-class-devfreq
+@@ -7,6 +7,13 @@ Description:
+   The name of devfreq object denoted as ... is same as the
+   name of device using devfreq.
+ 
++What: /sys/class/devfreq/.../name
++Date: November 2019
++Contact:  Chanwoo Choi 
++Description:
++  The /sys/class/devfreq/.../name shows the name of device
++  of the corresponding devfreq object.
++
+ What: /sys/class/devfreq/.../governor
+ Date: September 2011
+ Contact:  MyungJoo Ham 
+diff --git a/Makefile b/Makefile
+index ca186bcc02ba..597a14e2127b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 101
++SUBLEVEL = 102
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/am335x-boneblack-common.dtsi 
b/arch/arm/boot/dts/am335x-boneblack-common.dtsi
+index 21bc1173fa6b..cb4267edde63 100644
+--- a/arch/arm/boot/dts/am335x-boneblack-common.dtsi
 b/arch/arm/boot/dts/am335x-boneblack-common.dtsi
+@@ -131,6 +131,11 @@
+ };
+ 
+ / {
++  memory@8000 {
++  device_type = "memory";
++  reg = <0x8000 0x2000>; /* 512 MB */
++  };
++
+   clk_mcasp0_fixed: clk_mcasp0_fixed {
+   #clock-cells = <0>;
+   compatible = "fixed-clock";
+diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts 
b/arch/arm/boot/dts/am43x-epos-evm.dts
+index 12735cf9674b..b6950eee550b 100644
+--- a/arch/arm/boot/dts/am43x-epos-evm.dts
 b/arch/arm/boot/dts/am43x-epos-evm.dts
+@@ -839,6 +839,7 @@
+   pinctrl-names = "default", "sleep";
+   pinctrl-0 = <_pins_default>;
+   pinctrl-1 = <_pins_sleep>;
++  ti,pindir-d0-out-d1-in = <1>;
+ };
+ 
+  {
+@@ -846,6 +847,7 @@
+   pinctrl-names = "default", "sleep";
+   pinctrl-0 = <_pins_default>;
+   pinctrl-1 = <_pins_sleep>;
++  ti,pindir-d0-out-d1-in = <1>;
+ };
+ 
+ _phy1 {
+diff --git a/arch/arm/boot/dts/am571x-idk.dts 
b/arch/arm/boot/dts/am571x-idk.dts
+index bf4163eb6b2a..510f61d20b6d 100644
+--- a/arch/arm/boot/dts/am571x-idk.dts
 b/arch/arm/boot/dts/am571x-idk.dts
+@@ -93,10 +93,6 @@
+   gpios = < 18 GPIO_ACTIVE_HIGH>;
+ };
+ 
+-_ep {
+-  gpios = < 23 GPIO_ACTIVE_HIGH>;
+-};
+-
+  {
+   pinctrl-names = "default", "hs";
+   pinctrl-0 = <_pins_default_no_clk_pu>;
+diff --git a/arch/arm/boot/dts/am572x-idk-common.dtsi 
b/arch/arm/boot/dts/am572x-idk-common.dtsi
+index 784639ddf451..8a7d34c8ae11 100644
+--- a/arch/arm/boot/dts/am572x-idk-common.dtsi
 b/arch/arm/boot/dts/am572x-idk-common.dtsi
+@@ -71,10 +71,6 @@
+   gpios = < 23 GPIO_ACTIVE_HIGH>;
+ };
+ 
+-_ep {
+-  gpios = < 23 GPIO_ACTIVE_HIGH>;
+-};
+-
+  {
+   status = "okay";
+   mbox_ipu1_ipc3x: mbox_ipu1_ipc3x {
+diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi 
b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
+index d53532b47947..0051b2e05c2d 100644
+--- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
 b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
+@@ -32,6 +32,27 @@
+   reg = <0x0 0x8000 0x0 0x8000>;
+   };
+ 
++  main_12v0: fixedregulator-main_12v0 {
++  /* main supply */
++  compatible = "regulator-fixed";
++  regulator-name = "main_12v0";
++  regulator-min-microvolt = <1200>;
++  regulator-max-microvolt = <1200>;
++  regulator-always-on;
++  regulator-boot-on;
++  };
++
++  evm_5v0: fixedregulator-evm_5v0 {
++  /* Output of 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-02-01 Thread Mike Pagano
commit: b18a46ffd48d9685f90c4ff4441e079b8b9e0692
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Feb  1 10:37:23 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Feb  1 10:37:23 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b18a46ff

Removal of redundant patch

Removed
2500_usb-storage-Disable-UAS-on-JMicron-SATA-enclosure.patch

Signed-off-by: Mike Pagano  gentoo.org>

 _README|  4 ---
 ...age-Disable-UAS-on-JMicron-SATA-enclosure.patch | 40 --
 2 files changed, 44 deletions(-)

diff --git a/_README b/_README
index fcf3d5e..2399ee7 100644
--- a/_README
+++ b/_README
@@ -455,10 +455,6 @@ Patch:  
2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
 From:   
https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-mar...@holtmann.org/raw
 Desc:   Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. 
See bug #686758
 
-Patch:  2500_usb-storage-Disable-UAS-on-JMicron-SATA-enclosure.patch
-From:   https://bugzilla.redhat.com/show_bug.cgi?id=1260207#c5
-Desc:   Add UAS disable quirk. See bug #640082.
-
 Patch:  2600_enable-key-swapping-for-apple-mac.patch
 From:   https://github.com/free5lot/hid-apple-patched
 Desc:   This hid-apple patch enables swapping of the FN and left Control keys 
and some additional on some apple keyboards. See bug #622902

diff --git a/2500_usb-storage-Disable-UAS-on-JMicron-SATA-enclosure.patch 
b/2500_usb-storage-Disable-UAS-on-JMicron-SATA-enclosure.patch
deleted file mode 100644
index 0dd93ef..000
--- a/2500_usb-storage-Disable-UAS-on-JMicron-SATA-enclosure.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From d02a55182307c01136b599fd048b4679f259a84e Mon Sep 17 00:00:00 2001
-From: Laura Abbott 
-Date: Tue, 8 Sep 2015 09:53:38 -0700
-Subject: [PATCH] usb-storage: Disable UAS on JMicron SATA enclosure
-
-Steve Ellis reported incorrect block sizes and alignement
-offsets with a SATA enclosure. Adding a quirk to disable
-UAS fixes the problems.
-
-Reported-by: Steven Ellis 
-Signed-off-by: Laura Abbott 

- drivers/usb/storage/unusual_uas.h | 7 +--
- 1 file changed, 5 insertions(+), 2 deletions(-)
-
-diff --git a/drivers/usb/storage/unusual_uas.h 
b/drivers/usb/storage/unusual_uas.h
-index c85ea53..216d93d 100644
 a/drivers/usb/storage/unusual_uas.h
-+++ b/drivers/usb/storage/unusual_uas.h
-@@ -141,12 +141,15 @@ UNUSUAL_DEV(0x2109, 0x0711, 0x, 0x,
-   USB_SC_DEVICE, USB_PR_DEVICE, NULL,
-   US_FL_NO_ATA_1X),
- 
--/* Reported-by: Takeo Nakayama  */
-+/*
-+ * Initially Reported-by: Takeo Nakayama 
-+ * UAS Ignore Reported by Steven Ellis 
-+ */
- UNUSUAL_DEV(0x357d, 0x7788, 0x, 0x,
-   "JMicron",
-   "JMS566",
-   USB_SC_DEVICE, USB_PR_DEVICE, NULL,
--  US_FL_NO_REPORT_OPCODES),
-+  US_FL_NO_REPORT_OPCODES | US_FL_IGNORE_UAS),
- 
- /* Reported-by: Hans de Goede  */
- UNUSUAL_DEV(0x4971, 0x1012, 0x, 0x,
--- 
-2.4.3
-



[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-02-01 Thread Mike Pagano
commit: 2fcaa12fcd6f3449eaa828d2a68d3c0d7f9202d4
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Feb  1 10:30:22 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Feb  1 10:30:22 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=2fcaa12f

Linux patch 4.19.101

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1100_linux-4.19.101.patch | 2206 +
 2 files changed, 2210 insertions(+)

diff --git a/_README b/_README
index 7c99cc6..fcf3d5e 100644
--- a/_README
+++ b/_README
@@ -439,6 +439,10 @@ Patch:  1099_linux-4.19.100.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.100
 
+Patch:  1100_linux-4.19.101.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.101
+
 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/1100_linux-4.19.101.patch b/1100_linux-4.19.101.patch
new file mode 100644
index 000..8304fb2
--- /dev/null
+++ b/1100_linux-4.19.101.patch
@@ -0,0 +1,2206 @@
+diff --git a/Makefile b/Makefile
+index f1e428271abf..ca186bcc02ba 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 100
++SUBLEVEL = 101
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arc/plat-eznps/Kconfig b/arch/arc/plat-eznps/Kconfig
+index 8eff057efcae..ce908e2c5282 100644
+--- a/arch/arc/plat-eznps/Kconfig
 b/arch/arc/plat-eznps/Kconfig
+@@ -7,7 +7,7 @@
+ menuconfig ARC_PLAT_EZNPS
+   bool "\"EZchip\" ARC dev platform"
+   select CPU_BIG_ENDIAN
+-  select CLKSRC_NPS
++  select CLKSRC_NPS if !PHYS_ADDR_T_64BIT
+   select EZNPS_GIC
+   select EZCHIP_NPS_MANAGEMENT_ENET if ETHERNET
+   help
+diff --git a/arch/arm64/kvm/debug.c b/arch/arm64/kvm/debug.c
+index 00d422336a45..4e722d73a3c3 100644
+--- a/arch/arm64/kvm/debug.c
 b/arch/arm64/kvm/debug.c
+@@ -112,7 +112,7 @@ void kvm_arm_reset_debug_ptr(struct kvm_vcpu *vcpu)
+ void kvm_arm_setup_debug(struct kvm_vcpu *vcpu)
+ {
+   bool trap_debug = !(vcpu->arch.flags & KVM_ARM64_DEBUG_DIRTY);
+-  unsigned long mdscr;
++  unsigned long mdscr, orig_mdcr_el2 = vcpu->arch.mdcr_el2;
+ 
+   trace_kvm_arm_setup_debug(vcpu, vcpu->guest_debug);
+ 
+@@ -208,6 +208,10 @@ void kvm_arm_setup_debug(struct kvm_vcpu *vcpu)
+   if (vcpu_read_sys_reg(vcpu, MDSCR_EL1) & (DBG_MDSCR_KDE | 
DBG_MDSCR_MDE))
+   vcpu->arch.flags |= KVM_ARM64_DEBUG_DIRTY;
+ 
++  /* Write mdcr_el2 changes since vcpu_load on VHE systems */
++  if (has_vhe() && orig_mdcr_el2 != vcpu->arch.mdcr_el2)
++  write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2);
++
+   trace_kvm_arm_set_dreg32("MDCR_EL2", vcpu->arch.mdcr_el2);
+   trace_kvm_arm_set_dreg32("MDSCR_EL1", vcpu_read_sys_reg(vcpu, 
MDSCR_EL1));
+ }
+diff --git a/block/blk-lib.c b/block/blk-lib.c
+index 1f196cf0aa5d..0dbc9e2ab9a3 100644
+--- a/block/blk-lib.c
 b/block/blk-lib.c
+@@ -52,15 +52,14 @@ int __blkdev_issue_discard(struct block_device *bdev, 
sector_t sector,
+   if ((sector | nr_sects) & bs_mask)
+   return -EINVAL;
+ 
+-  while (nr_sects) {
+-  unsigned int req_sects = nr_sects;
+-  sector_t end_sect;
++  if (!nr_sects)
++  return -EINVAL;
+ 
+-  if (!req_sects)
+-  goto fail;
+-  req_sects = min(req_sects, bio_allowed_max_sectors(q));
++  while (nr_sects) {
++  sector_t req_sects = min_t(sector_t, nr_sects,
++  bio_allowed_max_sectors(q));
+ 
+-  end_sect = sector + req_sects;
++  WARN_ON_ONCE((req_sects << 9) > UINT_MAX);
+ 
+   bio = next_bio(bio, 0, gfp_mask);
+   bio->bi_iter.bi_sector = sector;
+@@ -68,8 +67,8 @@ int __blkdev_issue_discard(struct block_device *bdev, 
sector_t sector,
+   bio_set_op_attrs(bio, op, 0);
+ 
+   bio->bi_iter.bi_size = req_sects << 9;
++  sector += req_sects;
+   nr_sects -= req_sects;
+-  sector = end_sect;
+ 
+   /*
+* We can loop for a long time in here, if someone does
+@@ -82,14 +81,6 @@ int __blkdev_issue_discard(struct block_device *bdev, 
sector_t sector,
+ 
+   *biop = bio;
+   return 0;
+-
+-fail:
+-  if (bio) {
+-  submit_bio_wait(bio);
+-  bio_put(bio);
+-  }
+-  *biop = NULL;
+-  return -EOPNOTSUPP;
+ }
+ EXPORT_SYMBOL(__blkdev_issue_discard);
+ 
+diff --git a/crypto/af_alg.c b/crypto/af_alg.c
+index ed643ce12278..4fc8e6a7abb2 100644
+--- a/crypto/af_alg.c
 b/crypto/af_alg.c
+@@ -139,11 +139,13 @@ void af_alg_release_parent(struct sock *sk)
+   sk = ask->parent;
+   ask = alg_sk(sk);
+ 
+-  lock_sock(sk);
++  

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-01-29 Thread Mike Pagano
commit: a237553df3d9872194b04bb1688fb0ec658cf944
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jan 29 16:15:47 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jan 29 16:15:47 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a237553d

Linux patch 4.19.100

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |4 +
 1099_linux-4.19.100.patch | 4278 +
 2 files changed, 4282 insertions(+)

diff --git a/_README b/_README
index cae3438..7c99cc6 100644
--- a/_README
+++ b/_README
@@ -435,6 +435,10 @@ Patch:  1098_linux-4.19.99.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.99
 
+Patch:  1099_linux-4.19.100.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.100
+
 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/1099_linux-4.19.100.patch b/1099_linux-4.19.100.patch
new file mode 100644
index 000..1e9d910
--- /dev/null
+++ b/1099_linux-4.19.100.patch
@@ -0,0 +1,4278 @@
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index e6b6ec974eeb..8bf0c0532046 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -1946,6 +1946,12 @@
+   Built with CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=y,
+   the default is off.
+ 
++  kpti=   [ARM64] Control page table isolation of user
++  and kernel address spaces.
++  Default: enabled on cores which need mitigation.
++  0: force disabled
++  1: force enabled
++
+   kvm.ignore_msrs=[KVM] Ignore guest accesses to unhandled MSRs.
+   Default is 0 (don't ignore, but inject #GP)
+ 
+diff --git a/Makefile b/Makefile
+index a2be0c79eeb8..f1e428271abf 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 99
++SUBLEVEL = 100
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c
+index 3b85c3ecac38..79e5cc70f1fd 100644
+--- a/arch/ia64/mm/init.c
 b/arch/ia64/mm/init.c
+@@ -661,21 +661,12 @@ int arch_add_memory(int nid, u64 start, u64 size, struct 
vmem_altmap *altmap,
+   return ret;
+ }
+ 
+-#ifdef CONFIG_MEMORY_HOTREMOVE
+-int arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap)
++void arch_remove_memory(int nid, u64 start, u64 size,
++  struct vmem_altmap *altmap)
+ {
+   unsigned long start_pfn = start >> PAGE_SHIFT;
+   unsigned long nr_pages = size >> PAGE_SHIFT;
+-  struct zone *zone;
+-  int ret;
+-
+-  zone = page_zone(pfn_to_page(start_pfn));
+-  ret = __remove_pages(zone, start_pfn, nr_pages, altmap);
+-  if (ret)
+-  pr_warn("%s: Problem encountered in __remove_pages() as"
+-  " ret=%d\n", __func__,  ret);
+ 
+-  return ret;
++  __remove_pages(start_pfn, nr_pages, altmap);
+ }
+ #endif
+-#endif
+diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
+index 9a6afd9f3f9b..84a012e42a7e 100644
+--- a/arch/powerpc/mm/mem.c
 b/arch/powerpc/mm/mem.c
+@@ -118,8 +118,8 @@ int __weak remove_section_mapping(unsigned long start, 
unsigned long end)
+   return -ENODEV;
+ }
+ 
+-int __meminit arch_add_memory(int nid, u64 start, u64 size, struct 
vmem_altmap *altmap,
+-  bool want_memblock)
++int __ref arch_add_memory(int nid, u64 start, u64 size, struct vmem_altmap 
*altmap,
++bool want_memblock)
+ {
+   unsigned long start_pfn = start >> PAGE_SHIFT;
+   unsigned long nr_pages = size >> PAGE_SHIFT;
+@@ -139,30 +139,20 @@ int __meminit arch_add_memory(int nid, u64 start, u64 
size, struct vmem_altmap *
+   return __add_pages(nid, start_pfn, nr_pages, altmap, want_memblock);
+ }
+ 
+-#ifdef CONFIG_MEMORY_HOTREMOVE
+-int __meminit arch_remove_memory(u64 start, u64 size, struct vmem_altmap 
*altmap)
++void __ref arch_remove_memory(int nid, u64 start, u64 size,
++   struct vmem_altmap *altmap)
+ {
+   unsigned long start_pfn = start >> PAGE_SHIFT;
+   unsigned long nr_pages = size >> PAGE_SHIFT;
+-  struct page *page;
+   int ret;
+ 
+-  /*
+-   * If we have an altmap then we need to skip over any reserved PFNs
+-   * when querying the zone.
+-   */
+-  page = pfn_to_page(start_pfn);
+-  if (altmap)
+-  page += vmem_altmap_offset(altmap);
+-
+-  ret = __remove_pages(page_zone(page), start_pfn, nr_pages, altmap);
+-  if (ret)
+-  return ret;
++  __remove_pages(start_pfn, nr_pages, altmap);
+ 
+   /* Remove htab bolted mappings for this section of memory */
+

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-01-23 Thread Mike Pagano
commit: 4929a7928d984c928d59e11572961f7736acd0bd
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Jan 23 11:07:22 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Jan 23 11:07:22 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4929a792

Linux patch 4.19.98

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1097_linux-4.19.98.patch | 3748 ++
 2 files changed, 3752 insertions(+)

diff --git a/_README b/_README
index af58b77..b2dcc20 100644
--- a/_README
+++ b/_README
@@ -427,6 +427,10 @@ Patch:  1096_linux-4.19.97.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.97
 
+Patch:  1097_linux-4.19.98.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.98
+
 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/1097_linux-4.19.98.patch b/1097_linux-4.19.98.patch
new file mode 100644
index 000..223579d
--- /dev/null
+++ b/1097_linux-4.19.98.patch
@@ -0,0 +1,3748 @@
+diff --git a/Makefile b/Makefile
+index 3499df8936a1..48dbafb790ff 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 97
++SUBLEVEL = 98
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/am571x-idk.dts 
b/arch/arm/boot/dts/am571x-idk.dts
+index 6bebedfc0f35..bf4163eb6b2a 100644
+--- a/arch/arm/boot/dts/am571x-idk.dts
 b/arch/arm/boot/dts/am571x-idk.dts
+@@ -90,7 +90,7 @@
+ 
+ _rc {
+   status = "okay";
+-  gpios = < 23 GPIO_ACTIVE_HIGH>;
++  gpios = < 18 GPIO_ACTIVE_HIGH>;
+ };
+ 
+ _ep {
+diff --git a/arch/arm/boot/dts/imx6dl-icore-mipi.dts 
b/arch/arm/boot/dts/imx6dl-icore-mipi.dts
+index bf53f0552aa1..f88ad5e993ed 100644
+--- a/arch/arm/boot/dts/imx6dl-icore-mipi.dts
 b/arch/arm/boot/dts/imx6dl-icore-mipi.dts
+@@ -8,7 +8,7 @@
+ /dts-v1/;
+ 
+ #include "imx6dl.dtsi"
+-#include "imx6qdl-icore.dtsi"
++#include "imx6qdl-icore-1.5.dtsi"
+ 
+ / {
+   model = "Engicam i.CoreM6 DualLite/Solo MIPI Starter Kit";
+diff --git a/arch/arm/boot/dts/imx6q-dhcom-pdk2.dts 
b/arch/arm/boot/dts/imx6q-dhcom-pdk2.dts
+index 9c61e3be2d9a..1c46df6827f5 100644
+--- a/arch/arm/boot/dts/imx6q-dhcom-pdk2.dts
 b/arch/arm/boot/dts/imx6q-dhcom-pdk2.dts
+@@ -55,7 +55,7 @@
+   #sound-dai-cells = <0>;
+   clocks = <_ext_audio_codec>;
+   VDDA-supply = <_3p3v>;
+-  VDDIO-supply = <_3p3v>;
++  VDDIO-supply = <_reg>;
+   };
+ };
+ 
+diff --git a/arch/arm/boot/dts/imx6q-dhcom-som.dtsi 
b/arch/arm/boot/dts/imx6q-dhcom-som.dtsi
+index bbba0671f0f4..5b4d78999f80 100644
+--- a/arch/arm/boot/dts/imx6q-dhcom-som.dtsi
 b/arch/arm/boot/dts/imx6q-dhcom-som.dtsi
+@@ -205,7 +205,7 @@
+   };
+ 
+   rtc@56 {
+-  compatible = "rv3029c2";
++  compatible = "microcrystal,rv3029";
+   pinctrl-names = "default";
+   pinctrl-0 = <_rtc_hw300>;
+   reg = <0x56>;
+diff --git a/arch/arm/boot/dts/imx6qdl-icore-1.5.dtsi 
b/arch/arm/boot/dts/imx6qdl-icore-1.5.dtsi
+new file mode 100644
+index ..d91d46b5898f
+--- /dev/null
 b/arch/arm/boot/dts/imx6qdl-icore-1.5.dtsi
+@@ -0,0 +1,34 @@
++// SPDX-License-Identifier: GPL-2.0+
++/*
++ * Copyright (C) 2018 Jacopo Mondi 
++ */
++
++#include "imx6qdl-icore.dtsi"
++
++ {
++  pinctrl_enet: enetgrp {
++  fsl,pins = <
++  MX6QDL_PAD_ENET_CRS_DV__ENET_RX_EN  0x1b0b0
++  MX6QDL_PAD_GPIO_16__ENET_REF_CLK0x4001b0b0
++  MX6QDL_PAD_ENET_TX_EN__ENET_TX_EN   0x1b0b0
++  MX6QDL_PAD_ENET_RXD1__ENET_RX_DATA1 0x1b0b0
++  MX6QDL_PAD_ENET_RXD0__ENET_RX_DATA0 0x1b0b0
++  MX6QDL_PAD_ENET_TXD1__ENET_TX_DATA1 0x1b0b0
++  MX6QDL_PAD_ENET_TXD0__ENET_TX_DATA0 0x1b0b0
++  MX6QDL_PAD_ENET_MDC__ENET_MDC   0x1b0b0
++  MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
++  MX6QDL_PAD_GPIO_17__GPIO7_IO12  0x1b0b0
++  >;
++  };
++};
++
++ {
++  pinctrl-names = "default";
++  pinctrl-0 = <_enet>;
++  phy-reset-gpios = < 12 GPIO_ACTIVE_LOW>;
++  clocks = < IMX6QDL_CLK_ENET>,
++   < IMX6QDL_CLK_ENET>,
++   < IMX6QDL_CLK_ENET_REF>;
++  phy-mode = "rmii";
++  status = "okay";
++};
+diff --git a/arch/arm/boot/dts/imx7s-colibri.dtsi 
b/arch/arm/boot/dts/imx7s-colibri.dtsi
+index 1fb1ec5d3d70..6d16e32aed89 100644
+--- a/arch/arm/boot/dts/imx7s-colibri.dtsi
 b/arch/arm/boot/dts/imx7s-colibri.dtsi
+@@ -49,3 +49,7 @@
+   reg = <0x8000 0x1000>;
+   };
+ };
++
++ {
++  status = "okay";
++};
+diff --git 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-01-17 Thread Mike Pagano
commit: 6297eafc599697a6a71fc3383dff04ee594cb8b8
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Jan 17 19:55:45 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Jan 17 19:55:45 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=6297eafc

Linux patch 4.19.97

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1096_linux-4.19.97.patch | 2435 ++
 2 files changed, 2439 insertions(+)

diff --git a/_README b/_README
index b06ab83..af58b77 100644
--- a/_README
+++ b/_README
@@ -423,6 +423,10 @@ Patch:  1095_linux-4.19.96.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.96
 
+Patch:  1096_linux-4.19.97.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.97
+
 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/1096_linux-4.19.97.patch b/1096_linux-4.19.97.patch
new file mode 100644
index 000..607c977
--- /dev/null
+++ b/1096_linux-4.19.97.patch
@@ -0,0 +1,2435 @@
+diff --git a/Documentation/ABI/testing/sysfs-bus-mei 
b/Documentation/ABI/testing/sysfs-bus-mei
+index 6bd45346ac7e..3f8701e8fa24 100644
+--- a/Documentation/ABI/testing/sysfs-bus-mei
 b/Documentation/ABI/testing/sysfs-bus-mei
+@@ -4,7 +4,7 @@ KernelVersion: 3.10
+ Contact:  Samuel Ortiz 
+   linux-...@linux.intel.com
+ Description:  Stores the same MODALIAS value emitted by uevent
+-  Format: mei:::
++  Format: mei:::
+ 
+ What: /sys/bus/mei/devices/.../name
+ Date: May 2015
+diff --git a/Makefile b/Makefile
+index 3b836cc8b22d..3499df8936a1 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 96
++SUBLEVEL = 97
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi 
b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
+index 0ef90c6554a9..9b41d77aa39b 100644
+--- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
 b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
+@@ -580,6 +580,8 @@
+   l21 {
+   regulator-min-microvolt = <295>;
+   regulator-max-microvolt = <295>;
++  regulator-allow-set-load;
++  regulator-system-load = <20>;
+   };
+   l22 {
+   regulator-min-microvolt = <330>;
+diff --git a/arch/hexagon/include/asm/atomic.h 
b/arch/hexagon/include/asm/atomic.h
+index 311b9894ccc8..15cca7f1fded 100644
+--- a/arch/hexagon/include/asm/atomic.h
 b/arch/hexagon/include/asm/atomic.h
+@@ -105,7 +105,7 @@ static inline void atomic_##op(int i, atomic_t *v) 
\
+   "1: %0 = memw_locked(%1);\n"\
+   "   %0 = "#op "(%0,%2);\n"  \
+   "   memw_locked(%1,P3)=%0;\n"   \
+-  "   if !P3 jump 1b;\n"  \
++  "   if (!P3) jump 1b;\n"\
+   : "=" (output)\
+   : "r" (>counter), "r" (i)\
+   : "memory", "p3"\
+@@ -121,7 +121,7 @@ static inline int atomic_##op##_return(int i, atomic_t *v) 
\
+   "1: %0 = memw_locked(%1);\n"\
+   "   %0 = "#op "(%0,%2);\n"  \
+   "   memw_locked(%1,P3)=%0;\n"   \
+-  "   if !P3 jump 1b;\n"  \
++  "   if (!P3) jump 1b;\n"\
+   : "=" (output)\
+   : "r" (>counter), "r" (i)\
+   : "memory", "p3"\
+@@ -138,7 +138,7 @@ static inline int atomic_fetch_##op(int i, atomic_t *v)
\
+   "1: %0 = memw_locked(%2);\n"\
+   "   %1 = "#op "(%0,%3);\n"  \
+   "   memw_locked(%2,P3)=%1;\n"   \
+-  "   if !P3 jump 1b;\n"  \
++  "   if (!P3) jump 1b;\n"\
+   : "=" (output), "=" (val)   \
+   : "r" (>counter), "r" (i)\
+   : "memory", "p3"\
+@@ -187,7 +187,7 @@ static inline int 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-01-14 Thread Mike Pagano
commit: 77e9fc831971cce0cf2803f374eec3b66e2a9d8c
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Jan 14 22:30:40 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Jan 14 22:30:40 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=77e9fc83

Linux patch 4.19.96

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1095_linux-4.19.96.patch | 1484 ++
 2 files changed, 1488 insertions(+)

diff --git a/_README b/_README
index ca89dab..b06ab83 100644
--- a/_README
+++ b/_README
@@ -419,6 +419,10 @@ Patch:  1094_linux-4.19.95.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.95
 
+Patch:  1095_linux-4.19.96.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.96
+
 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/1095_linux-4.19.96.patch b/1095_linux-4.19.96.patch
new file mode 100644
index 000..5ffd663
--- /dev/null
+++ b/1095_linux-4.19.96.patch
@@ -0,0 +1,1484 @@
+diff --git a/Makefile b/Makefile
+index 386ab98e2f58..3b836cc8b22d 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 95
++SUBLEVEL = 96
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
+index 8edbb3f0c101..d872dc82725e 100644
+--- a/drivers/gpio/gpiolib-acpi.c
 b/drivers/gpio/gpiolib-acpi.c
+@@ -24,11 +24,19 @@
+ 
+ #include "gpiolib.h"
+ 
++#define QUIRK_NO_EDGE_EVENTS_ON_BOOT  0x01l
++#define QUIRK_NO_WAKEUP   0x02l
++
+ static int run_edge_events_on_boot = -1;
+ module_param(run_edge_events_on_boot, int, 0444);
+ MODULE_PARM_DESC(run_edge_events_on_boot,
+"Run edge _AEI event-handlers at boot: 0=no, 1=yes, -1=auto");
+ 
++static int honor_wakeup = -1;
++module_param(honor_wakeup, int, 0444);
++MODULE_PARM_DESC(honor_wakeup,
++   "Honor the ACPI wake-capable flag: 0=no, 1=yes, -1=auto");
++
+ /**
+  * struct acpi_gpio_event - ACPI GPIO event handler data
+  *
+@@ -278,7 +286,7 @@ static acpi_status acpi_gpiochip_alloc_event(struct 
acpi_resource *ares,
+   event->handle = evt_handle;
+   event->handler = handler;
+   event->irq = irq;
+-  event->irq_is_wake = agpio->wake_capable == ACPI_WAKE_CAPABLE;
++  event->irq_is_wake = honor_wakeup && agpio->wake_capable == 
ACPI_WAKE_CAPABLE;
+   event->pin = pin;
+   event->desc = desc;
+ 
+@@ -1263,7 +1271,7 @@ static int acpi_gpio_handle_deferred_request_irqs(void)
+ /* We must use _sync so that this runs after the first deferred_probe run */
+ late_initcall_sync(acpi_gpio_handle_deferred_request_irqs);
+ 
+-static const struct dmi_system_id run_edge_events_on_boot_blacklist[] = {
++static const struct dmi_system_id gpiolib_acpi_quirks[] = {
+   {
+   /*
+* The Minix Neo Z83-4 has a micro-USB-B id-pin handler for
+@@ -1273,7 +1281,8 @@ static const struct dmi_system_id 
run_edge_events_on_boot_blacklist[] = {
+   .matches = {
+   DMI_MATCH(DMI_SYS_VENDOR, "MINIX"),
+   DMI_MATCH(DMI_PRODUCT_NAME, "Z83-4"),
+-  }
++  },
++  .driver_data = (void *)QUIRK_NO_EDGE_EVENTS_ON_BOOT,
+   },
+   {
+   /*
+@@ -1285,20 +1294,52 @@ static const struct dmi_system_id 
run_edge_events_on_boot_blacklist[] = {
+   .matches = {
+   DMI_MATCH(DMI_SYS_VENDOR, "Wortmann_AG"),
+   DMI_MATCH(DMI_PRODUCT_NAME, "TERRA_PAD_1061"),
+-  }
++  },
++  .driver_data = (void *)QUIRK_NO_EDGE_EVENTS_ON_BOOT,
++  },
++  {
++  /*
++   * Various HP X2 10 Cherry Trail models use an external
++   * embedded-controller connected via I2C + an ACPI GPIO
++   * event handler. The embedded controller generates various
++   * spurious wakeup events when suspended. So disable wakeup
++   * for its handler (it uses the only ACPI GPIO event handler).
++   * This breaks wakeup when opening the lid, the user needs
++   * to press the power-button to wakeup the system. The
++   * alternative is suspend simply not working, which is worse.
++   */
++  .matches = {
++  DMI_MATCH(DMI_SYS_VENDOR, "HP"),
++  DMI_MATCH(DMI_PRODUCT_NAME, "HP x2 Detachable 10-p0XX"),
++  },
++  .driver_data = (void *)QUIRK_NO_WAKEUP,
+   },
+   {} /* Terminating entry */
+ };
+ 
+ static int acpi_gpio_setup_params(void)
+ {
++  const struct dmi_system_id *id;
++  long quirks = 0;
++
++  id = dmi_first_match(gpiolib_acpi_quirks);

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-01-12 Thread Mike Pagano
commit: cab08459b025d6855858e1f44b879ffc446a00e9
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Jan 12 15:00:01 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Jan 12 15:00:01 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=cab08459

Linux patch 4.19.95

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1094_linux-4.19.95.patch | 2671 ++
 2 files changed, 2675 insertions(+)

diff --git a/_README b/_README
index a11cb8a..ca89dab 100644
--- a/_README
+++ b/_README
@@ -415,6 +415,10 @@ Patch:  1093_linux-4.19.94.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.94
 
+Patch:  1094_linux-4.19.95.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.95
+
 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/1094_linux-4.19.95.patch b/1094_linux-4.19.95.patch
new file mode 100644
index 000..2b45c5e
--- /dev/null
+++ b/1094_linux-4.19.95.patch
@@ -0,0 +1,2671 @@
+diff --git a/Makefile b/Makefile
+index 3c892a77194f..386ab98e2f58 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 94
++SUBLEVEL = 95
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts 
b/arch/arm/boot/dts/am437x-gp-evm.dts
+index 5b97c20c5ed4..8a17eca2bc97 100644
+--- a/arch/arm/boot/dts/am437x-gp-evm.dts
 b/arch/arm/boot/dts/am437x-gp-evm.dts
+@@ -83,7 +83,7 @@
+   };
+ 
+   lcd0: display {
+-  compatible = "osddisplays,osd057T0559-34ts", "panel-dpi";
++  compatible = "osddisplays,osd070t1718-19ts", "panel-dpi";
+   label = "lcd";
+ 
+   backlight = <_bl>;
+diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts 
b/arch/arm/boot/dts/am43x-epos-evm.dts
+index 6502d3397653..12735cf9674b 100644
+--- a/arch/arm/boot/dts/am43x-epos-evm.dts
 b/arch/arm/boot/dts/am43x-epos-evm.dts
+@@ -45,7 +45,7 @@
+   };
+ 
+   lcd0: display {
+-  compatible = "osddisplays,osd057T0559-34ts", "panel-dpi";
++  compatible = "osddisplays,osd070t1718-19ts", "panel-dpi";
+   label = "lcd";
+ 
+   backlight = <_bl>;
+diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi 
b/arch/arm/boot/dts/bcm-cygnus.dtsi
+index 253df7170a4e..887a60c317e9 100644
+--- a/arch/arm/boot/dts/bcm-cygnus.dtsi
 b/arch/arm/boot/dts/bcm-cygnus.dtsi
+@@ -169,8 +169,8 @@
+   mdio: mdio@18002000 {
+   compatible = "brcm,iproc-mdio";
+   reg = <0x18002000 0x8>;
+-  #size-cells = <1>;
+-  #address-cells = <0>;
++  #size-cells = <0>;
++  #address-cells = <1>;
+   status = "disabled";
+ 
+   gphy0: ethernet-phy@0 {
+diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
+index 31b29646b14c..c9322a56300d 100644
+--- a/arch/arm/boot/dts/bcm283x.dtsi
 b/arch/arm/boot/dts/bcm283x.dtsi
+@@ -39,7 +39,7 @@
+ 
+   trips {
+   cpu-crit {
+-  temperature = <8>;
++  temperature = <9>;
+   hysteresis  = <0>;
+   type= "critical";
+   };
+diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi
+index bc607d11eef8..a678fb7c9e3b 100644
+--- a/arch/arm/boot/dts/bcm5301x.dtsi
 b/arch/arm/boot/dts/bcm5301x.dtsi
+@@ -350,8 +350,8 @@
+   mdio: mdio@18003000 {
+   compatible = "brcm,iproc-mdio";
+   reg = <0x18003000 0x8>;
+-  #size-cells = <1>;
+-  #address-cells = <0>;
++  #size-cells = <0>;
++  #address-cells = <1>;
+   };
+ 
+   mdio-bus-mux {
+diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi 
b/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi
+index 818021126559..695303435003 100644
+--- a/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi
 b/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi
+@@ -175,7 +175,7 @@
+   flash0: n25q256a@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+-  compatible = "micron,n25q256a";
++  compatible = "micron,n25q256a", "jedec,spi-nor";
+   spi-max-frequency = <2900>;
+   reg = <0>;
+   };
+diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi
+index 50834a43e5fb..adecd6e08468 100644
+--- a/arch/arm/boot/dts/imx6ul.dtsi
 b/arch/arm/boot/dts/imx6ul.dtsi
+@@ -87,6 +87,8 @@
+ "pll1_sys";
+  

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2020-01-04 Thread Mike Pagano
commit: 5881359b6134a81ccf0e7b0fd4ad9387926c6f5f
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Jan  4 19:50:36 2020 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Jan  4 19:50:36 2020 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5881359b

Linux patch 4.19.93

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1092_linux-4.19.93.patch | 4103 ++
 2 files changed, 4107 insertions(+)

diff --git a/_README b/_README
index af10ce2..bedb928 100644
--- a/_README
+++ b/_README
@@ -407,6 +407,10 @@ Patch:  1091_linux-4.19.92.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.92
 
+Patch:  1092_linux-4.19.93.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.93
+
 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/1092_linux-4.19.93.patch b/1092_linux-4.19.93.patch
new file mode 100644
index 000..c512142
--- /dev/null
+++ b/1092_linux-4.19.93.patch
@@ -0,0 +1,4103 @@
+diff --git a/Makefile b/Makefile
+index 080232ef6716..b3b166c93125 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 92
++SUBLEVEL = 93
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/compressed/libfdt_env.h 
b/arch/arm/boot/compressed/libfdt_env.h
+index b36c0289a308..6a0f1f524466 100644
+--- a/arch/arm/boot/compressed/libfdt_env.h
 b/arch/arm/boot/compressed/libfdt_env.h
+@@ -2,11 +2,13 @@
+ #ifndef _ARM_LIBFDT_ENV_H
+ #define _ARM_LIBFDT_ENV_H
+ 
++#include 
+ #include 
+ #include 
+ #include 
+ 
+-#define INT_MAX   ((int)(~0U>>1))
++#define INT32_MAX S32_MAX
++#define UINT32_MAXU32_MAX
+ 
+ typedef __be16 fdt16_t;
+ typedef __be32 fdt32_t;
+diff --git a/arch/arm/mm/proc-v7-bugs.c b/arch/arm/mm/proc-v7-bugs.c
+index 9a07916af8dd..a6554fdb56c5 100644
+--- a/arch/arm/mm/proc-v7-bugs.c
 b/arch/arm/mm/proc-v7-bugs.c
+@@ -65,6 +65,9 @@ static void cpu_v7_spectre_init(void)
+   break;
+ 
+ #ifdef CONFIG_ARM_PSCI
++  case ARM_CPU_PART_BRAHMA_B53:
++  /* Requires no workaround */
++  break;
+   default:
+   /* Other ARM CPUs require no workaround */
+   if (read_cpuid_implementor() == ARM_CPU_IMP_ARM)
+diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
+index dfcb698ec8f3..e43321f46a3b 100644
+--- a/arch/powerpc/Makefile
 b/arch/powerpc/Makefile
+@@ -90,11 +90,13 @@ MULTIPLEWORD   := -mmultiple
+ endif
+ 
+ ifdef CONFIG_PPC64
++ifndef CONFIG_CC_IS_CLANG
+ cflags-$(CONFIG_CPU_BIG_ENDIAN)   += $(call cc-option,-mabi=elfv1)
+ cflags-$(CONFIG_CPU_BIG_ENDIAN)   += $(call 
cc-option,-mcall-aixdesc)
+ aflags-$(CONFIG_CPU_BIG_ENDIAN)   += $(call cc-option,-mabi=elfv1)
+ aflags-$(CONFIG_CPU_LITTLE_ENDIAN)+= -mabi=elfv2
+ endif
++endif
+ 
+ ifneq ($(cc-name),clang)
+   cflags-$(CONFIG_CPU_LITTLE_ENDIAN)  += -mno-strict-align
+@@ -134,6 +136,7 @@ endif
+ endif
+ 
+ CFLAGS-$(CONFIG_PPC64):= $(call cc-option,-mtraceback=no)
++ifndef CONFIG_CC_IS_CLANG
+ ifdef CONFIG_CPU_LITTLE_ENDIAN
+ CFLAGS-$(CONFIG_PPC64)+= $(call cc-option,-mabi=elfv2,$(call 
cc-option,-mcall-aixdesc))
+ AFLAGS-$(CONFIG_PPC64)+= $(call cc-option,-mabi=elfv2)
+@@ -142,6 +145,7 @@ CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1)
+ CFLAGS-$(CONFIG_PPC64)+= $(call cc-option,-mcall-aixdesc)
+ AFLAGS-$(CONFIG_PPC64)+= $(call cc-option,-mabi=elfv1)
+ endif
++endif
+ CFLAGS-$(CONFIG_PPC64)+= $(call cc-option,-mcmodel=medium,$(call 
cc-option,-mminimal-toc))
+ CFLAGS-$(CONFIG_PPC64)+= $(call 
cc-option,-mno-pointers-to-nested-functions)
+ 
+diff --git a/arch/powerpc/boot/libfdt_env.h b/arch/powerpc/boot/libfdt_env.h
+index 2abc8e83b95e..9757d4f6331e 100644
+--- a/arch/powerpc/boot/libfdt_env.h
 b/arch/powerpc/boot/libfdt_env.h
+@@ -6,6 +6,8 @@
+ #include 
+ 
+ #define INT_MAX   ((int)(~0U>>1))
++#define UINT32_MAX((u32)~0U)
++#define INT32_MAX ((s32)(UINT32_MAX >> 1))
+ 
+ #include "of.h"
+ 
+diff --git a/arch/powerpc/include/asm/spinlock.h 
b/arch/powerpc/include/asm/spinlock.h
+index bfaf175db54d..685c72310f5d 100644
+--- a/arch/powerpc/include/asm/spinlock.h
 b/arch/powerpc/include/asm/spinlock.h
+@@ -53,12 +53,10 @@
+ #endif
+ 
+ #ifdef CONFIG_PPC_PSERIES
+-DECLARE_STATIC_KEY_FALSE(shared_processor);
+-
+ #define vcpu_is_preempted vcpu_is_preempted
+ static inline bool vcpu_is_preempted(int cpu)
+ {
+-  if (!static_branch_unlikely(_processor))
++  if (!firmware_has_feature(FW_FEATURE_SPLPAR))
+   return false;
+   return !!(be32_to_cpu(lppaca_of(cpu).yield_count) & 1);
+ }
+diff --git a/arch/powerpc/kernel/security.c 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-12-21 Thread Mike Pagano
commit: 96ffa6fb8e2e9fb0a95fec61d517ba8eb1ba9d2a
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Dec 21 15:03:02 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Dec 21 15:03:02 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=96ffa6fb

Linux patch 4.19.91

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1090_linux-4.19.91.patch | 1527 ++
 2 files changed, 1531 insertions(+)

diff --git a/_README b/_README
index aecec9f..304b54d 100644
--- a/_README
+++ b/_README
@@ -399,6 +399,10 @@ Patch:  1089_linux-4.19.90.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.90
 
+Patch:  1090_linux-4.19.91.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.91
+
 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/1090_linux-4.19.91.patch b/1090_linux-4.19.91.patch
new file mode 100644
index 000..4880cbe
--- /dev/null
+++ b/1090_linux-4.19.91.patch
@@ -0,0 +1,1527 @@
+diff --git a/Makefile b/Makefile
+index 39bdbafae517..4e07d786bec2 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 90
++SUBLEVEL = 91
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/s3c6410-mini6410.dts 
b/arch/arm/boot/dts/s3c6410-mini6410.dts
+index 0e159c884f97..1aeac33b0d34 100644
+--- a/arch/arm/boot/dts/s3c6410-mini6410.dts
 b/arch/arm/boot/dts/s3c6410-mini6410.dts
+@@ -165,6 +165,10 @@
+   };
+ };
+ 
++ {
++  clocks = <_pll>;
++};
++
+  {
+   pinctrl-names = "default";
+   pinctrl-0 = <_clk>, <_cmd>, <_cd>, <_bus4>;
+diff --git a/arch/arm/boot/dts/s3c6410-smdk6410.dts 
b/arch/arm/boot/dts/s3c6410-smdk6410.dts
+index a9a5689dc462..3bf6c450a26e 100644
+--- a/arch/arm/boot/dts/s3c6410-smdk6410.dts
 b/arch/arm/boot/dts/s3c6410-smdk6410.dts
+@@ -69,6 +69,10 @@
+   };
+ };
+ 
++ {
++  clocks = <_pll>;
++};
++
+  {
+   pinctrl-names = "default";
+   pinctrl-0 = <_clk>, <_cmd>, <_cd>, <_bus4>;
+diff --git a/arch/arm/mach-tegra/reset-handler.S 
b/arch/arm/mach-tegra/reset-handler.S
+index 805f306fa6f7..e31f167a8199 100644
+--- a/arch/arm/mach-tegra/reset-handler.S
 b/arch/arm/mach-tegra/reset-handler.S
+@@ -56,16 +56,16 @@ ENTRY(tegra_resume)
+   cmp r6, #TEGRA20
+   beq 1f  @ Yes
+   /* Clear the flow controller flags for this CPU. */
+-  cpu_to_csr_reg r1, r0
++  cpu_to_csr_reg r3, r0
+   mov32   r2, TEGRA_FLOW_CTRL_BASE
+-  ldr r1, [r2, r1]
++  ldr r1, [r2, r3]
+   /* Clear event & intr flag */
+   orr r1, r1, \
+   #FLOW_CTRL_CSR_INTR_FLAG | FLOW_CTRL_CSR_EVENT_FLAG
+   movwr0, #0x3FFD @ enable, cluster_switch, immed, bitmaps
+   @ & ext flags for CPU power mgnt
+   bic r1, r1, r0
+-  str r1, [r2]
++  str r1, [r2, r3]
+ 1:
+ 
+   mov32   r9, 0xc09
+diff --git a/arch/arm64/include/asm/assembler.h 
b/arch/arm64/include/asm/assembler.h
+index 0c100506a29a..5a97ac853168 100644
+--- a/arch/arm64/include/asm/assembler.h
 b/arch/arm64/include/asm/assembler.h
+@@ -683,9 +683,11 @@ USER(\label, ic   ivau, \tmp2)// 
invalidate I line PoU
+   .macro  if_will_cond_yield_neon
+ #ifdef CONFIG_PREEMPT
+   get_thread_info x0
+-  ldr x0, [x0, #TSK_TI_PREEMPT]
+-  sub x0, x0, #PREEMPT_DISABLE_OFFSET
+-  cbz x0, .Lyield_\@
++  ldr w1, [x0, #TSK_TI_PREEMPT]
++  ldr x0, [x0, #TSK_TI_FLAGS]
++  cmp w1, #PREEMPT_DISABLE_OFFSET
++  cselx0, x0, xzr, eq
++  tbnzx0, #TIF_NEED_RESCHED, .Lyield_\@   // needs 
rescheduling?
+   /* fall through to endif_yield_neon */
+   .subsection 1
+ .Lyield_\@ :
+diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S
+index bb6832353045..5f800384cb9a 100644
+--- a/arch/arm64/kernel/entry.S
 b/arch/arm64/kernel/entry.S
+@@ -622,8 +622,10 @@ el1_irq:
+   irq_handler
+ 
+ #ifdef CONFIG_PREEMPT
+-  ldr x24, [tsk, #TSK_TI_PREEMPT] // get preempt count
+-  cbnzx24, 1f // preempt count != 0
++  ldr w24, [tsk, #TSK_TI_PREEMPT] // get preempt count
++  cbnzw24, 1f // preempt count != 0
++  ldr x0, [tsk, #TSK_TI_FLAGS]// get flags
++  tbz x0, #TIF_NEED_RESCHED, 1f   // needs rescheduling?
+   bl  el1_preempt
+ 1:
+ #endif
+diff --git a/arch/xtensa/mm/tlb.c b/arch/xtensa/mm/tlb.c
+index 59153d0aa890..b43f03620843 100644
+--- a/arch/xtensa/mm/tlb.c
 b/arch/xtensa/mm/tlb.c
+@@ -216,6 +216,8 @@ static int check_tlb_entry(unsigned w, unsigned 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-11-10 Thread Mike Pagano
commit: b8aafdcd425c5d7d9ae6dfddacd215b4c1084bbe
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Nov 10 16:20:21 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Nov 10 16:20:21 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b8aafdcd

Linux patch 4.19.83

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1082_linux-4.19.83.patch | 4183 ++
 2 files changed, 4187 insertions(+)

diff --git a/_README b/_README
index 3a289a8..4a7a926 100644
--- a/_README
+++ b/_README
@@ -367,6 +367,10 @@ Patch:  1081_linux-4.19.82.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.82
 
+Patch:  1082_linux-4.19.83.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.83
+
 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/1082_linux-4.19.83.patch b/1082_linux-4.19.83.patch
new file mode 100644
index 000..9df0797
--- /dev/null
+++ b/1082_linux-4.19.83.patch
@@ -0,0 +1,4183 @@
+diff --git a/Makefile b/Makefile
+index 6af1c13d8753..c2c0cf2b1bd7 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 82
++SUBLEVEL = 83
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+@@ -835,6 +835,12 @@ KBUILD_CFLAGS   += $(call 
cc-option,-Werror=designated-init)
+ # change __FILE__ to the relative path from the srctree
+ KBUILD_CFLAGS += $(call cc-option,-fmacro-prefix-map=$(srctree)/=)
+ 
++# ensure -fcf-protection is disabled when using retpoline as it is
++# incompatible with -mindirect-branch=thunk-extern
++ifdef CONFIG_RETPOLINE
++KBUILD_CFLAGS += $(call cc-option,-fcf-protection=none)
++endif
++
+ # use the deterministic mode of AR if available
+ KBUILD_ARFLAGS := $(call ar-option,D)
+ 
+diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi
+index a7f697b0290f..90f5bdfa9b3c 100644
+--- a/arch/arm/boot/dts/imx7s.dtsi
 b/arch/arm/boot/dts/imx7s.dtsi
+@@ -443,7 +443,7 @@
+   compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
+   reg = <0x302d 0x1>;
+   interrupts = ;
+-  clocks = < IMX7D_CLK_DUMMY>,
++  clocks = < IMX7D_GPT1_ROOT_CLK>,
+< IMX7D_GPT1_ROOT_CLK>;
+   clock-names = "ipg", "per";
+   };
+@@ -452,7 +452,7 @@
+   compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
+   reg = <0x302e 0x1>;
+   interrupts = ;
+-  clocks = < IMX7D_CLK_DUMMY>,
++  clocks = < IMX7D_GPT2_ROOT_CLK>,
+< IMX7D_GPT2_ROOT_CLK>;
+   clock-names = "ipg", "per";
+   status = "disabled";
+@@ -462,7 +462,7 @@
+   compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
+   reg = <0x302f 0x1>;
+   interrupts = ;
+-  clocks = < IMX7D_CLK_DUMMY>,
++  clocks = < IMX7D_GPT3_ROOT_CLK>,
+< IMX7D_GPT3_ROOT_CLK>;
+   clock-names = "ipg", "per";
+   status = "disabled";
+@@ -472,7 +472,7 @@
+   compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
+   reg = <0x3030 0x1>;
+   interrupts = ;
+-  clocks = < IMX7D_CLK_DUMMY>,
++  clocks = < IMX7D_GPT4_ROOT_CLK>,
+< IMX7D_GPT4_ROOT_CLK>;
+   clock-names = "ipg", "per";
+   status = "disabled";
+diff --git a/arch/arm/boot/dts/logicpd-torpedo-som.dtsi 
b/arch/arm/boot/dts/logicpd-torpedo-som.dtsi
+index 7d2302e8706c..9354da4efe09 100644
+--- a/arch/arm/boot/dts/logicpd-torpedo-som.dtsi
 b/arch/arm/boot/dts/logicpd-torpedo-som.dtsi
+@@ -196,3 +196,7 @@
+ _gpio {
+   ti,use-leds;
+ };
++
++_keypad {
++  status = "disabled";
++};
+diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c
+index 42665914166a..83ca89a35300 100644
+--- a/arch/arm/mach-davinci/dm365.c
 b/arch/arm/mach-davinci/dm365.c
+@@ -458,8 +458,8 @@ static s8 dm365_queue_priority_mapping[][2] = {
+ };
+ 
+ static const struct dma_slave_map dm365_edma_map[] = {
+-  { "davinci-mcbsp.0", "tx", EDMA_FILTER_PARAM(0, 2) },
+-  { "davinci-mcbsp.0", "rx", EDMA_FILTER_PARAM(0, 3) },
++  { "davinci-mcbsp", "tx", EDMA_FILTER_PARAM(0, 2) 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-10-29 Thread Mike Pagano
commit: 3af0f636399a165ea0a180550c66d5a5515a9c60
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Oct 29 12:04:29 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Oct 29 12:04:29 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3af0f636

Linux patch 4.19.81

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1080_linux-4.19.81.patch | 2700 ++
 2 files changed, 2704 insertions(+)

diff --git a/_README b/_README
index 4a75724..3811a86 100644
--- a/_README
+++ b/_README
@@ -359,6 +359,10 @@ Patch:  1079_linux-4.19.80.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.80
 
+Patch:  1080_linux-4.19.81.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.81
+
 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/1080_linux-4.19.81.patch b/1080_linux-4.19.81.patch
new file mode 100644
index 000..55ea23d
--- /dev/null
+++ b/1080_linux-4.19.81.patch
@@ -0,0 +1,2700 @@
+diff --git a/Makefile b/Makefile
+index ced4a9fd9754..3c146e8d93dc 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 80
++SUBLEVEL = 81
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
+index d4b7c59eec68..cf1e4f747242 100644
+--- a/arch/arm/boot/dts/am4372.dtsi
 b/arch/arm/boot/dts/am4372.dtsi
+@@ -1142,6 +1142,8 @@
+   ti,hwmods = "dss_dispc";
+   clocks = <_clk>;
+   clock-names = "fck";
++
++  max-memory-bandwidth = <23000>;
+   };
+ 
+   rfbi: rfbi@4832a800 {
+diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c 
b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
+index 9ded7bf972e7..3b8fe014a3e9 100644
+--- a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
 b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
+@@ -946,7 +946,8 @@ static struct omap_hwmod_class_sysconfig am33xx_timer_sysc 
= {
+   .rev_offs   = 0x,
+   .sysc_offs  = 0x0010,
+   .syss_offs  = 0x0014,
+-  .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
++  .sysc_flags = SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
++SYSC_HAS_RESET_STATUS,
+   .idlemodes  = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
+ SIDLE_SMART_WKUP),
+   .sysc_fields= _hwmod_sysc_type2,
+diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
+index ca03af8fe43f..ddf96adf65ab 100644
+--- a/arch/arm/mach-omap2/pm.c
 b/arch/arm/mach-omap2/pm.c
+@@ -77,83 +77,6 @@ int omap_pm_clkdms_setup(struct clockdomain *clkdm, void 
*unused)
+   return 0;
+ }
+ 
+-/*
+- * This API is to be called during init to set the various voltage
+- * domains to the voltage as per the opp table. Typically we boot up
+- * at the nominal voltage. So this function finds out the rate of
+- * the clock associated with the voltage domain, finds out the correct
+- * opp entry and sets the voltage domain to the voltage specified
+- * in the opp entry
+- */
+-static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name,
+-   const char *oh_name)
+-{
+-  struct voltagedomain *voltdm;
+-  struct clk *clk;
+-  struct dev_pm_opp *opp;
+-  unsigned long freq, bootup_volt;
+-  struct device *dev;
+-
+-  if (!vdd_name || !clk_name || !oh_name) {
+-  pr_err("%s: invalid parameters\n", __func__);
+-  goto exit;
+-  }
+-
+-  if (!strncmp(oh_name, "mpu", 3))
+-  /* 
+-   * All current OMAPs share voltage rail and clock
+-   * source, so CPU0 is used to represent the MPU-SS.
+-   */
+-  dev = get_cpu_device(0);
+-  else
+-  dev = omap_device_get_by_hwmod_name(oh_name);
+-
+-  if (IS_ERR(dev)) {
+-  pr_err("%s: Unable to get dev pointer for hwmod %s\n",
+-  __func__, oh_name);
+-  goto exit;
+-  }
+-
+-  voltdm = voltdm_lookup(vdd_name);
+-  if (!voltdm) {
+-  pr_err("%s: unable to get vdd pointer for vdd_%s\n",
+-  __func__, vdd_name);
+-  goto exit;
+-  }
+-
+-  clk =  clk_get(NULL, clk_name);
+-  if (IS_ERR(clk)) {
+-  pr_err("%s: unable to get clk %s\n", __func__, clk_name);
+-  goto exit;
+-  }
+-
+-  freq = clk_get_rate(clk);
+-  clk_put(clk);
+-
+-  opp = dev_pm_opp_find_freq_ceil(dev, );
+-  if (IS_ERR(opp)) {
+-  pr_err("%s: unable to find boot up OPP for 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-10-11 Thread Mike Pagano
commit: 18c77bab22d8887efd5b3439655f1b258b7aafce
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Oct 11 17:04:36 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Oct 11 17:04:36 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=18c77bab

Linux patch 4.19.79

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1078_linux-4.19.79.patch | 4369 ++
 2 files changed, 4373 insertions(+)

diff --git a/_README b/_README
index 021985c..e1f1ada 100644
--- a/_README
+++ b/_README
@@ -351,6 +351,10 @@ Patch:  1077_linux-4.19.78.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.78
 
+Patch:  1078_linux-4.19.79.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.79
+
 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/1078_linux-4.19.79.patch b/1078_linux-4.19.79.patch
new file mode 100644
index 000..46d1d23
--- /dev/null
+++ b/1078_linux-4.19.79.patch
@@ -0,0 +1,4369 @@
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index e8ddf0ef232e..16607b178b47 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -2503,8 +2503,8 @@
+   http://repo.or.cz/w/linux-2.6/mini2440.git
+ 
+   mitigations=
+-  [X86,PPC,S390] Control optional mitigations for CPU
+-  vulnerabilities.  This is a set of curated,
++  [X86,PPC,S390,ARM64] Control optional mitigations for
++  CPU vulnerabilities.  This is a set of curated,
+   arch-independent options, each of which is an
+   aggregation of existing arch-specific options.
+ 
+@@ -2513,12 +2513,14 @@
+   improves system performance, but it may also
+   expose users to several CPU vulnerabilities.
+   Equivalent to: nopti [X86,PPC]
++ kpti=0 [ARM64]
+  nospectre_v1 [PPC]
+  nobp=0 [S390]
+  nospectre_v1 [X86]
+- nospectre_v2 [X86,PPC,S390]
++ nospectre_v2 [X86,PPC,S390,ARM64]
+  spectre_v2_user=off [X86]
+  spec_store_bypass_disable=off 
[X86,PPC]
++ ssbd=force-off [ARM64]
+  l1tf=off [X86]
+  mds=off [X86]
+ 
+@@ -2866,10 +2868,10 @@
+   (bounds check bypass). With this option data leaks
+   are possible in the system.
+ 
+-  nospectre_v2[X86,PPC_FSL_BOOK3E] Disable all mitigations for the 
Spectre variant 2
+-  (indirect branch prediction) vulnerability. System may
+-  allow data leaks with this option, which is equivalent
+-  to spectre_v2=off.
++  nospectre_v2[X86,PPC_FSL_BOOK3E,ARM64] Disable all mitigations for
++  the Spectre variant 2 (indirect branch prediction)
++  vulnerability. System may allow data leaks with this
++  option.
+ 
+   nospec_store_bypass_disable
+   [HW] Disable all mitigations for the Speculative Store 
Bypass vulnerability
+diff --git a/Documentation/arm64/elf_hwcaps.txt 
b/Documentation/arm64/elf_hwcaps.txt
+index d6aff2c5e9e2..6feaffe90e22 100644
+--- a/Documentation/arm64/elf_hwcaps.txt
 b/Documentation/arm64/elf_hwcaps.txt
+@@ -178,3 +178,7 @@ HWCAP_ILRCPC
+ HWCAP_FLAGM
+ 
+ Functionality implied by ID_AA64ISAR0_EL1.TS == 0b0001.
++
++HWCAP_SSBS
++
++Functionality implied by ID_AA64PFR1_EL1.SSBS == 0b0010.
+diff --git a/Makefile b/Makefile
+index 440c5b5c4f4b..4d29c7370b46 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 78
++SUBLEVEL = 79
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
+index e3ebece79617..51fe21f5d078 100644
+--- a/arch/arm64/Kconfig
 b/arch/arm64/Kconfig
+@@ -84,6 +84,7 @@ config ARM64
+   select GENERIC_CLOCKEVENTS
+   select GENERIC_CLOCKEVENTS_BROADCAST
+   select GENERIC_CPU_AUTOPROBE
++  select GENERIC_CPU_VULNERABILITIES
+   select GENERIC_EARLY_IOREMAP
+   select GENERIC_IDLE_POLL_SETUP
+   select GENERIC_IRQ_MULTI_HANDLER
+diff --git 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-10-07 Thread Mike Pagano
commit: ed27c176cde87113b8051d0c822a5cfbabff4bfe
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Oct  7 17:41:37 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Oct  7 17:41:37 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=ed27c176

Linux patch 4.19.78

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1077_linux-4.19.78.patch | 4003 ++
 2 files changed, 4007 insertions(+)

diff --git a/_README b/_README
index a687ae2..021985c 100644
--- a/_README
+++ b/_README
@@ -347,6 +347,10 @@ Patch:  1076_linux-4.19.77.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.77
 
+Patch:  1077_linux-4.19.78.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.78
+
 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/1077_linux-4.19.78.patch b/1077_linux-4.19.78.patch
new file mode 100644
index 000..4035e59
--- /dev/null
+++ b/1077_linux-4.19.78.patch
@@ -0,0 +1,4003 @@
+diff --git a/Makefile b/Makefile
+index aeabc6459acc..440c5b5c4f4b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 77
++SUBLEVEL = 78
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
+index 51794c7fa6d5..185e552f1461 100644
+--- a/arch/arm/Kconfig
 b/arch/arm/Kconfig
+@@ -1586,8 +1586,9 @@ config ARM_PATCH_IDIV
+ code to do integer division.
+ 
+ config AEABI
+-  bool "Use the ARM EABI to compile the kernel" if !CPU_V7 && !CPU_V7M && 
!CPU_V6 && !CPU_V6K
+-  default CPU_V7 || CPU_V7M || CPU_V6 || CPU_V6K
++  bool "Use the ARM EABI to compile the kernel" if !CPU_V7 && \
++  !CPU_V7M && !CPU_V6 && !CPU_V6K && !CC_IS_CLANG
++  default CPU_V7 || CPU_V7M || CPU_V6 || CPU_V6K || CC_IS_CLANG
+   help
+ This option allows for the kernel to be compiled using the latest
+ ARM ABI (aka EABI).  This is only useful if you are using a user
+diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c
+index 3232afb6fdc0..a9ee0d9dc740 100644
+--- a/arch/arm/mm/fault.c
 b/arch/arm/mm/fault.c
+@@ -216,7 +216,7 @@ static inline bool access_error(unsigned int fsr, struct 
vm_area_struct *vma)
+ {
+   unsigned int mask = VM_READ | VM_WRITE | VM_EXEC;
+ 
+-  if (fsr & FSR_WRITE)
++  if ((fsr & FSR_WRITE) && !(fsr & FSR_CM))
+   mask = VM_WRITE;
+   if (fsr & FSR_LNX_PF)
+   mask = VM_EXEC;
+@@ -287,7 +287,7 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct 
pt_regs *regs)
+ 
+   if (user_mode(regs))
+   flags |= FAULT_FLAG_USER;
+-  if (fsr & FSR_WRITE)
++  if ((fsr & FSR_WRITE) && !(fsr & FSR_CM))
+   flags |= FAULT_FLAG_WRITE;
+ 
+   /*
+diff --git a/arch/arm/mm/fault.h b/arch/arm/mm/fault.h
+index c063708fa503..9ecc2097a87a 100644
+--- a/arch/arm/mm/fault.h
 b/arch/arm/mm/fault.h
+@@ -6,6 +6,7 @@
+  * Fault status register encodings.  We steal bit 31 for our own purposes.
+  */
+ #define FSR_LNX_PF(1 << 31)
++#define FSR_CM(1 << 13)
+ #define FSR_WRITE (1 << 11)
+ #define FSR_FS4   (1 << 10)
+ #define FSR_FS3_0 (15)
+diff --git a/arch/arm/mm/mmap.c b/arch/arm/mm/mmap.c
+index f866870db749..0b94b674aa91 100644
+--- a/arch/arm/mm/mmap.c
 b/arch/arm/mm/mmap.c
+@@ -18,8 +18,9 @@
+(((pgoff)<> (PAGE_SHIFT - 12))
+ 
+ static int mmap_is_legacy(struct rlimit *rlim_stack)
+ {
+@@ -35,13 +36,22 @@ static int mmap_is_legacy(struct rlimit *rlim_stack)
+ static unsigned long mmap_base(unsigned long rnd, struct rlimit *rlim_stack)
+ {
+   unsigned long gap = rlim_stack->rlim_cur;
++  unsigned long pad = stack_guard_gap;
++
++  /* Account for stack randomization if necessary */
++  if (current->flags & PF_RANDOMIZE)
++  pad += (STACK_RND_MASK << PAGE_SHIFT);
++
++  /* Values close to RLIM_INFINITY can overflow. */
++  if (gap + pad > gap)
++  gap += pad;
+ 
+   if (gap < MIN_GAP)
+   gap = MIN_GAP;
+   else if (gap > MAX_GAP)
+   gap = MAX_GAP;
+ 
+-  return PAGE_ALIGN(TASK_SIZE - gap - rnd);
++  return PAGE_ALIGN(STACK_TOP - gap - rnd);
+ }
+ 
+ /*
+diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
+index e46a6a446cdd..70e560cf8ca0 100644
+--- a/arch/arm/mm/mmu.c
 b/arch/arm/mm/mmu.c
+@@ -1175,6 +1175,22 @@ void __init adjust_lowmem_bounds(void)
+*/
+   vmalloc_limit = (u64)(uintptr_t)vmalloc_min - PAGE_OFFSET + PHYS_OFFSET;
+ 
++  /*
++   * The first usable region must be PMD aligned. Mark its start
++   * as MEMBLOCK_NOMAP if it isn't
++   */
++  for_each_memblock(memory, reg) {
++  if 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-10-01 Thread Mike Pagano
commit: 393593668bea9feb99e59b8b931d8bd663b5ef29
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Oct  1 10:10:20 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Oct  1 10:10:20 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=39359366

Linux patch 4.19.76

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1075_linux-4.19.76.patch | 2525 ++
 2 files changed, 2529 insertions(+)

diff --git a/_README b/_README
index 050c323..871922b 100644
--- a/_README
+++ b/_README
@@ -339,6 +339,10 @@ Patch:  1074_linux-4.19.75.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.75
 
+Patch:  1075_linux-4.19.76.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.76
+
 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/1075_linux-4.19.76.patch b/1075_linux-4.19.76.patch
new file mode 100644
index 000..5f0f12f
--- /dev/null
+++ b/1075_linux-4.19.76.patch
@@ -0,0 +1,2525 @@
+diff --git a/Makefile b/Makefile
+index 4bf6f24916bf..9cb471a75a1b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 75
++SUBLEVEL = 76
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/powerpc/include/asm/opal.h b/arch/powerpc/include/asm/opal.h
+index ff3866473afe..d8d886dee54e 100644
+--- a/arch/powerpc/include/asm/opal.h
 b/arch/powerpc/include/asm/opal.h
+@@ -275,7 +275,7 @@ int64_t opal_xive_get_vp_info(uint64_t vp,
+ int64_t opal_xive_set_vp_info(uint64_t vp,
+ uint64_t flags,
+ uint64_t report_cl_pair);
+-int64_t opal_xive_allocate_irq(uint32_t chip_id);
++int64_t opal_xive_allocate_irq_raw(uint32_t chip_id);
+ int64_t opal_xive_free_irq(uint32_t girq);
+ int64_t opal_xive_sync(uint32_t type, uint32_t id);
+ int64_t opal_xive_dump(uint32_t type, uint32_t id);
+diff --git a/arch/powerpc/platforms/powernv/opal-wrappers.S 
b/arch/powerpc/platforms/powernv/opal-wrappers.S
+index f4875fe3f8ff..74215ebda142 100644
+--- a/arch/powerpc/platforms/powernv/opal-wrappers.S
 b/arch/powerpc/platforms/powernv/opal-wrappers.S
+@@ -303,7 +303,7 @@ OPAL_CALL(opal_xive_set_queue_info,
OPAL_XIVE_SET_QUEUE_INFO);
+ OPAL_CALL(opal_xive_donate_page,  OPAL_XIVE_DONATE_PAGE);
+ OPAL_CALL(opal_xive_alloc_vp_block,   OPAL_XIVE_ALLOCATE_VP_BLOCK);
+ OPAL_CALL(opal_xive_free_vp_block,OPAL_XIVE_FREE_VP_BLOCK);
+-OPAL_CALL(opal_xive_allocate_irq, OPAL_XIVE_ALLOCATE_IRQ);
++OPAL_CALL(opal_xive_allocate_irq_raw, OPAL_XIVE_ALLOCATE_IRQ);
+ OPAL_CALL(opal_xive_free_irq, OPAL_XIVE_FREE_IRQ);
+ OPAL_CALL(opal_xive_get_vp_info,  OPAL_XIVE_GET_VP_INFO);
+ OPAL_CALL(opal_xive_set_vp_info,  OPAL_XIVE_SET_VP_INFO);
+diff --git a/arch/powerpc/sysdev/xive/native.c 
b/arch/powerpc/sysdev/xive/native.c
+index 5b20a678d755..6d5b28022452 100644
+--- a/arch/powerpc/sysdev/xive/native.c
 b/arch/powerpc/sysdev/xive/native.c
+@@ -235,6 +235,17 @@ static bool xive_native_match(struct device_node *node)
+   return of_device_is_compatible(node, "ibm,opal-xive-vc");
+ }
+ 
++static s64 opal_xive_allocate_irq(u32 chip_id)
++{
++  s64 irq = opal_xive_allocate_irq_raw(chip_id);
++
++  /*
++   * Old versions of skiboot can incorrectly return 0x to
++   * indicate no space, fix it up here.
++   */
++  return irq == 0x ? OPAL_RESOURCE : irq;
++}
++
+ #ifdef CONFIG_SMP
+ static int xive_native_get_ipi(unsigned int cpu, struct xive_cpu *xc)
+ {
+diff --git a/block/blk-core.c b/block/blk-core.c
+index af635f878f96..074ae9376189 100644
+--- a/block/blk-core.c
 b/block/blk-core.c
+@@ -1165,7 +1165,7 @@ int blk_init_allocated_queue(struct request_queue *q)
+ {
+   WARN_ON_ONCE(q->mq_ops);
+ 
+-  q->fq = blk_alloc_flush_queue(q, NUMA_NO_NODE, q->cmd_size);
++  q->fq = blk_alloc_flush_queue(q, NUMA_NO_NODE, q->cmd_size, GFP_KERNEL);
+   if (!q->fq)
+   return -ENOMEM;
+ 
+diff --git a/block/blk-flush.c b/block/blk-flush.c
+index 76487948a27f..87fc49daa2b4 100644
+--- a/block/blk-flush.c
 b/block/blk-flush.c
+@@ -566,12 +566,12 @@ int blkdev_issue_flush(struct block_device *bdev, gfp_t 
gfp_mask,
+ EXPORT_SYMBOL(blkdev_issue_flush);
+ 
+ struct blk_flush_queue *blk_alloc_flush_queue(struct request_queue *q,
+-  int node, int cmd_size)
++  int node, int cmd_size, gfp_t flags)
+ {
+   struct blk_flush_queue *fq;
+   int rq_sz = sizeof(struct request);
+ 
+-  fq = kzalloc_node(sizeof(*fq), GFP_KERNEL, node);
++  fq = kzalloc_node(sizeof(*fq), flags, node);
+   if (!fq)
+   goto fail;
+ 
+@@ -579,7 +579,7 @@ struct blk_flush_queue 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-09-21 Thread Mike Pagano
commit: 66eff6029f38be9ed1d7319d914910c1c07101a0
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Sep 21 17:11:29 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Sep 21 17:11:29 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=66eff602

Linux patch 4.19.75

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1074_linux-4.19.75.patch | 2496 ++
 2 files changed, 2500 insertions(+)

diff --git a/_README b/_README
index 7734d78..050c323 100644
--- a/_README
+++ b/_README
@@ -335,6 +335,10 @@ Patch:  1073_linux-4.19.74.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.74
 
+Patch:  1074_linux-4.19.75.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.75
+
 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/1074_linux-4.19.75.patch b/1074_linux-4.19.75.patch
new file mode 100644
index 000..e01e663
--- /dev/null
+++ b/1074_linux-4.19.75.patch
@@ -0,0 +1,2496 @@
+diff --git a/Documentation/filesystems/overlayfs.txt 
b/Documentation/filesystems/overlayfs.txt
+index eef7d9d259e8..d7dc9c818b83 100644
+--- a/Documentation/filesystems/overlayfs.txt
 b/Documentation/filesystems/overlayfs.txt
+@@ -302,7 +302,7 @@ beneath or above the path of another overlay lower layer 
path.
+ 
+ Using an upper layer path and/or a workdir path that are already used by
+ another overlay mount is not allowed and may fail with EBUSY.  Using
+-partially overlapping paths is not allowed but will not fail with EBUSY.
++partially overlapping paths is not allowed and may fail with EBUSY.
+ If files are accessed from two overlayfs mounts which share or overlap the
+ upper layer and/or workdir path the behavior of the overlay is undefined,
+ though it will not result in a crash or deadlock.
+diff --git a/Makefile b/Makefile
+index 3509e0c6e5ae..4bf6f24916bf 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 74
++SUBLEVEL = 75
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/am571x-idk.dts 
b/arch/arm/boot/dts/am571x-idk.dts
+index d9a2049a1ea8..6bebedfc0f35 100644
+--- a/arch/arm/boot/dts/am571x-idk.dts
 b/arch/arm/boot/dts/am571x-idk.dts
+@@ -98,14 +98,9 @@
+ };
+ 
+  {
+-  pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50", "ddr50", 
"sdr104";
++  pinctrl-names = "default", "hs";
+   pinctrl-0 = <_pins_default_no_clk_pu>;
+   pinctrl-1 = <_pins_hs>;
+-  pinctrl-2 = <_pins_sdr12>;
+-  pinctrl-3 = <_pins_sdr25>;
+-  pinctrl-4 = <_pins_sdr50>;
+-  pinctrl-5 = <_pins_ddr50_rev20 _iodelay_ddr50_conf>;
+-  pinctrl-6 = <_pins_sdr104 _iodelay_sdr104_rev20_conf>;
+ };
+ 
+  {
+diff --git a/arch/arm/boot/dts/am572x-idk.dts 
b/arch/arm/boot/dts/am572x-idk.dts
+index 3ef9111d0e8b..9235173edbd3 100644
+--- a/arch/arm/boot/dts/am572x-idk.dts
 b/arch/arm/boot/dts/am572x-idk.dts
+@@ -20,14 +20,9 @@
+ };
+ 
+  {
+-  pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50", "ddr50", 
"sdr104";
++  pinctrl-names = "default", "hs";
+   pinctrl-0 = <_pins_default_no_clk_pu>;
+   pinctrl-1 = <_pins_hs>;
+-  pinctrl-2 = <_pins_sdr12>;
+-  pinctrl-3 = <_pins_sdr25>;
+-  pinctrl-4 = <_pins_sdr50>;
+-  pinctrl-5 = <_pins_ddr50 _iodelay_ddr_rev20_conf>;
+-  pinctrl-6 = <_pins_sdr104 _iodelay_sdr104_rev20_conf>;
+ };
+ 
+  {
+diff --git a/arch/arm/boot/dts/am574x-idk.dts 
b/arch/arm/boot/dts/am574x-idk.dts
+index 378dfa780ac1..ae43de3297f4 100644
+--- a/arch/arm/boot/dts/am574x-idk.dts
 b/arch/arm/boot/dts/am574x-idk.dts
+@@ -24,14 +24,9 @@
+ };
+ 
+  {
+-  pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50", "ddr50", 
"sdr104";
++  pinctrl-names = "default", "hs";
+   pinctrl-0 = <_pins_default_no_clk_pu>;
+   pinctrl-1 = <_pins_hs>;
+-  pinctrl-2 = <_pins_default>;
+-  pinctrl-3 = <_pins_hs>;
+-  pinctrl-4 = <_pins_sdr50>;
+-  pinctrl-5 = <_pins_ddr50 _iodelay_ddr_conf>;
+-  pinctrl-6 = <_pins_ddr50 _iodelay_sdr104_conf>;
+ };
+ 
+  {
+diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi 
b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
+index ad953113cefb..d53532b47947 100644
+--- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
 b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
+@@ -433,6 +433,7 @@
+ 
+   bus-width = <4>;
+   cd-gpios = < 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
++  no-1-8-v;
+ };
+ 
+  {
+diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts 
b/arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts
+index 5a77b334923d..34c69965821b 100644
+--- a/arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts
 b/arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts
+@@ -19,14 +19,9 @@
+ };
+ 
+  {
+-  pinctrl-names = "default", 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-09-19 Thread Mike Pagano
commit: 54426b255db58e42cf9bbd99f31867c27b1b599c
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Sep 19 12:34:12 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Sep 19 12:34:12 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=54426b25

Add FILE_LOCKING to GENTOO_LINUX config. See bug #694688.

Thanks to Marius Stoica for reporting.

Signed-off-by: Mike Pagano  gentoo.org>

 4567_distro-Gentoo-Kconfig.patch | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch
index d6e791a..25f36df 100644
--- a/4567_distro-Gentoo-Kconfig.patch
+++ b/4567_distro-Gentoo-Kconfig.patch
@@ -6,9 +6,9 @@
  source "lib/Kconfig.debug"
 +
 +source "distro/Kconfig"
 /dev/null  2018-12-28 10:40:34.08934 -0500
-+++ b/distro/Kconfig   2018-12-28 18:54:40.467970759 -0500
-@@ -0,0 +1,147 @@
+--- /dev/null  2019-09-19 03:42:24.71048 -0400
 b/distro/Kconfig   2019-09-19 08:22:31.146930385 -0400
+@@ -0,0 +1,149 @@
 +menu "Gentoo Linux"
 +
 +config GENTOO_LINUX
@@ -91,6 +91,7 @@
 +  depends on GENTOO_LINUX
 +
 +  select BINFMT_SCRIPT
++  select FILE_LOCKING
 +
 +  help
 +  The init system is the first thing that loads after the kernel 
booted.
@@ -123,6 +124,7 @@
 +  select EPOLL
 +  select FANOTIFY
 +  select FHANDLE
++  select FILE_LOCKING
 +  select INOTIFY_USER
 +  select IPV6
 +  select NET



[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-09-19 Thread Mike Pagano
commit: b28b4e9d1e4258389e49dd53e4243018cdb7493a
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Sep 19 10:04:29 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Sep 19 10:04:29 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b28b4e9d

Linux patch 4.19.74

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1073_linux-4.19.74.patch | 1433 ++
 2 files changed, 1437 insertions(+)

diff --git a/_README b/_README
index d5d2e47..7734d78 100644
--- a/_README
+++ b/_README
@@ -331,6 +331,10 @@ Patch:  1072_linux-4.19.73.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.73
 
+Patch:  1073_linux-4.19.74.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.74
+
 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/1073_linux-4.19.74.patch b/1073_linux-4.19.74.patch
new file mode 100644
index 000..2a11d7d
--- /dev/null
+++ b/1073_linux-4.19.74.patch
@@ -0,0 +1,1433 @@
+diff --git a/Makefile b/Makefile
+index 9748fa3704bc..3509e0c6e5ae 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 73
++SUBLEVEL = 74
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/powerpc/include/asm/uaccess.h 
b/arch/powerpc/include/asm/uaccess.h
+index 23bea99bf8d5..1ca9e37f7cc9 100644
+--- a/arch/powerpc/include/asm/uaccess.h
 b/arch/powerpc/include/asm/uaccess.h
+@@ -306,6 +306,7 @@ extern unsigned long __copy_tofrom_user(void __user *to,
+ static inline unsigned long
+ raw_copy_in_user(void __user *to, const void __user *from, unsigned long n)
+ {
++  barrier_nospec();
+   return __copy_tofrom_user(to, from, n);
+ }
+ #endif /* __powerpc64__ */
+diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c
+index fcb55b02990e..05ea466b9e40 100644
+--- a/arch/s390/kvm/interrupt.c
 b/arch/s390/kvm/interrupt.c
+@@ -1879,6 +1879,16 @@ int s390int_to_s390irq(struct kvm_s390_interrupt 
*s390int,
+   case KVM_S390_MCHK:
+   irq->u.mchk.mcic = s390int->parm64;
+   break;
++  case KVM_S390_INT_PFAULT_INIT:
++  irq->u.ext.ext_params = s390int->parm;
++  irq->u.ext.ext_params2 = s390int->parm64;
++  break;
++  case KVM_S390_RESTART:
++  case KVM_S390_INT_CLOCK_COMP:
++  case KVM_S390_INT_CPU_TIMER:
++  break;
++  default:
++  return -EINVAL;
+   }
+   return 0;
+ }
+diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
+index fc7de27960e7..e0551c948c59 100644
+--- a/arch/s390/kvm/kvm-s390.c
 b/arch/s390/kvm/kvm-s390.c
+@@ -928,6 +928,8 @@ static int kvm_s390_vm_start_migration(struct kvm *kvm)
+   /* mark all the pages in active slots as dirty */
+   for (slotnr = 0; slotnr < slots->used_slots; slotnr++) {
+   ms = slots->memslots + slotnr;
++  if (!ms->dirty_bitmap)
++  return -EINVAL;
+   /*
+* The second half of the bitmap is only used on x86,
+* and would be wasted otherwise, so we put it to good
+@@ -3956,7 +3958,7 @@ long kvm_arch_vcpu_async_ioctl(struct file *filp,
+   }
+   case KVM_S390_INTERRUPT: {
+   struct kvm_s390_interrupt s390int;
+-  struct kvm_s390_irq s390irq;
++  struct kvm_s390_irq s390irq = {};
+ 
+   if (copy_from_user(, argp, sizeof(s390int)))
+   return -EFAULT;
+diff --git a/arch/x86/Makefile b/arch/x86/Makefile
+index ce0d0424a53d..4833dd7e2cc0 100644
+--- a/arch/x86/Makefile
 b/arch/x86/Makefile
+@@ -38,6 +38,7 @@ REALMODE_CFLAGS  := $(M16_CFLAGS) -g -Os 
-DDISABLE_BRANCH_PROFILING \
+ 
+ REALMODE_CFLAGS += $(call __cc-option, $(CC), $(REALMODE_CFLAGS), 
-ffreestanding)
+ REALMODE_CFLAGS += $(call __cc-option, $(CC), $(REALMODE_CFLAGS), 
-fno-stack-protector)
++REALMODE_CFLAGS += $(call __cc-option, $(CC), $(REALMODE_CFLAGS), 
-Wno-address-of-packed-member)
+ REALMODE_CFLAGS += $(call __cc-option, $(CC), $(REALMODE_CFLAGS), 
$(cc_stack_align4))
+ export REALMODE_CFLAGS
+ 
+diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
+index 2938b4bcc968..e83f4f6bfdac 100644
+--- a/arch/x86/kvm/vmx.c
 b/arch/x86/kvm/vmx.c
+@@ -8757,6 +8757,7 @@ static int handle_vmread(struct kvm_vcpu *vcpu)
+   u32 vmx_instruction_info = vmcs_read32(VMX_INSTRUCTION_INFO);
+   gva_t gva = 0;
+   struct vmcs12 *vmcs12;
++  struct x86_exception e;
+ 
+   if (!nested_vmx_check_permission(vcpu))
+   return 1;
+@@ -8798,8 +8799,10 @@ static int handle_vmread(struct kvm_vcpu *vcpu)
+   vmx_instruction_info, true, ))
+   return 1;
+   /* _system ok, 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-09-10 Thread Mike Pagano
commit: c0678b2b22ff8412e43d12fbd0c2b879023c728c
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Sep 10 11:12:34 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Sep 10 11:12:34 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c0678b2b

Linux patch 4.19.72

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1071_linux-4.19.72.patch | 2096 ++
 2 files changed, 2100 insertions(+)

diff --git a/_README b/_README
index 807b793..5a202ee 100644
--- a/_README
+++ b/_README
@@ -323,6 +323,10 @@ Patch:  1070_linux-4.19.70.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.70
 
+Patch:  1071_linux-4.19.71.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.71
+
 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/1071_linux-4.19.72.patch b/1071_linux-4.19.72.patch
new file mode 100644
index 000..3d76e8b
--- /dev/null
+++ b/1071_linux-4.19.72.patch
@@ -0,0 +1,2096 @@
+diff --git a/Makefile b/Makefile
+index f6c9d5757470..ef80b1dfb753 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 71
++SUBLEVEL = 72
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/x86/boot/compressed/pgtable_64.c 
b/arch/x86/boot/compressed/pgtable_64.c
+index f8debf7aeb4c..76e1edf5bf12 100644
+--- a/arch/x86/boot/compressed/pgtable_64.c
 b/arch/x86/boot/compressed/pgtable_64.c
+@@ -73,6 +73,8 @@ static unsigned long find_trampoline_placement(void)
+ 
+   /* Find the first usable memory region under bios_start. */
+   for (i = boot_params->e820_entries - 1; i >= 0; i--) {
++  unsigned long new = bios_start;
++
+   entry = _params->e820_table[i];
+ 
+   /* Skip all entries above bios_start. */
+@@ -85,15 +87,20 @@ static unsigned long find_trampoline_placement(void)
+ 
+   /* Adjust bios_start to the end of the entry if needed. */
+   if (bios_start > entry->addr + entry->size)
+-  bios_start = entry->addr + entry->size;
++  new = entry->addr + entry->size;
+ 
+   /* Keep bios_start page-aligned. */
+-  bios_start = round_down(bios_start, PAGE_SIZE);
++  new = round_down(new, PAGE_SIZE);
+ 
+   /* Skip the entry if it's too small. */
+-  if (bios_start - TRAMPOLINE_32BIT_SIZE < entry->addr)
++  if (new - TRAMPOLINE_32BIT_SIZE < entry->addr)
+   continue;
+ 
++  /* Protect against underflow. */
++  if (new - TRAMPOLINE_32BIT_SIZE > bios_start)
++  break;
++
++  bios_start = new;
+   break;
+   }
+ 
+diff --git a/arch/x86/include/asm/bootparam_utils.h 
b/arch/x86/include/asm/bootparam_utils.h
+index d3983fdf1012..8fa49cf1211d 100644
+--- a/arch/x86/include/asm/bootparam_utils.h
 b/arch/x86/include/asm/bootparam_utils.h
+@@ -71,6 +71,7 @@ static void sanitize_boot_params(struct boot_params 
*boot_params)
+   BOOT_PARAM_PRESERVE(eddbuf_entries),
+   BOOT_PARAM_PRESERVE(edd_mbr_sig_buf_entries),
+   BOOT_PARAM_PRESERVE(edd_mbr_sig_buffer),
++  BOOT_PARAM_PRESERVE(secure_boot),
+   BOOT_PARAM_PRESERVE(hdr),
+   BOOT_PARAM_PRESERVE(e820_table),
+   BOOT_PARAM_PRESERVE(eddbuf),
+diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
+index 90be3a1506d3..b316bd61a6ac 100644
+--- a/arch/x86/kernel/apic/apic.c
 b/arch/x86/kernel/apic/apic.c
+@@ -1140,10 +1140,6 @@ void clear_local_APIC(void)
+   apic_write(APIC_LVT0, v | APIC_LVT_MASKED);
+   v = apic_read(APIC_LVT1);
+   apic_write(APIC_LVT1, v | APIC_LVT_MASKED);
+-  if (!x2apic_enabled()) {
+-  v = apic_read(APIC_LDR) & ~APIC_LDR_MASK;
+-  apic_write(APIC_LDR, v);
+-  }
+   if (maxlvt >= 4) {
+   v = apic_read(APIC_LVTPC);
+   apic_write(APIC_LVTPC, v | APIC_LVT_MASKED);
+diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c
+index ec9e03a6b778..9e70f7c7e565 100644
+--- a/drivers/bluetooth/btqca.c
 b/drivers/bluetooth/btqca.c
+@@ -363,6 +363,9 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
+   return err;
+   }
+ 
++  /* Give the controller some time to get ready to receive the NVM */
++  msleep(10);
++
+   /* Download NVM configuration */
+   config.type = TLV_TYPE_NVM;
+   if (soc_type == QCA_WCN3990)
+diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c 
b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
+index fd83046d8376..f6389479fccb 100644
+--- 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-09-06 Thread Mike Pagano
commit: eaf6eee7a1521f25a2bcd2b1479df9fb2357c96e
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Sep  6 17:24:41 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Sep  6 17:24:41 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=eaf6eee7

Linux patch 4.19.70 and 4.19.71

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1069_linux-4.19.70.patch | 2977 ++
 1070_linux-4.19.71.patch |   92 ++
 3 files changed, 3073 insertions(+)

diff --git a/_README b/_README
index c203203..807b793 100644
--- a/_README
+++ b/_README
@@ -319,6 +319,10 @@ Patch:  1068_linux-4.19.69.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.69
 
+Patch:  1070_linux-4.19.70.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.70
+
 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/1069_linux-4.19.70.patch b/1069_linux-4.19.70.patch
new file mode 100644
index 000..739863e
--- /dev/null
+++ b/1069_linux-4.19.70.patch
@@ -0,0 +1,2977 @@
+diff --git a/Makefile b/Makefile
+index 677341239449..ecf8806cb71f 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 69
++SUBLEVEL = 70
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
+index bce06083685d..94babc3d0ec2 100644
+--- a/arch/arm64/kernel/cpufeature.c
 b/arch/arm64/kernel/cpufeature.c
+@@ -165,9 +165,17 @@ static const struct arm64_ftr_bits ftr_id_aa64pfr0[] = {
+ };
+ 
+ static const struct arm64_ftr_bits ftr_id_aa64mmfr0[] = {
+-  S_ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, 
ID_AA64MMFR0_TGRAN4_SHIFT, 4, ID_AA64MMFR0_TGRAN4_NI),
+-  S_ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, 
ID_AA64MMFR0_TGRAN64_SHIFT, 4, ID_AA64MMFR0_TGRAN64_NI),
+-  ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, 
ID_AA64MMFR0_TGRAN16_SHIFT, 4, ID_AA64MMFR0_TGRAN16_NI),
++  /*
++   * We already refuse to boot CPUs that don't support our configured
++   * page size, so we can only detect mismatches for a page size other
++   * than the one we're currently using. Unfortunately, SoCs like this
++   * exist in the wild so, even though we don't like it, we'll have to go
++   * along with it and treat them as non-strict.
++   */
++  S_ARM64_FTR_BITS(FTR_HIDDEN, FTR_NONSTRICT, FTR_LOWER_SAFE, 
ID_AA64MMFR0_TGRAN4_SHIFT, 4, ID_AA64MMFR0_TGRAN4_NI),
++  S_ARM64_FTR_BITS(FTR_HIDDEN, FTR_NONSTRICT, FTR_LOWER_SAFE, 
ID_AA64MMFR0_TGRAN64_SHIFT, 4, ID_AA64MMFR0_TGRAN64_NI),
++  ARM64_FTR_BITS(FTR_HIDDEN, FTR_NONSTRICT, FTR_LOWER_SAFE, 
ID_AA64MMFR0_TGRAN16_SHIFT, 4, ID_AA64MMFR0_TGRAN16_NI),
++
+   ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, 
ID_AA64MMFR0_BIGENDEL0_SHIFT, 4, 0),
+   /* Linux shouldn't care about secure memory */
+   ARM64_FTR_BITS(FTR_HIDDEN, FTR_NONSTRICT, FTR_LOWER_SAFE, 
ID_AA64MMFR0_SNSMEM_SHIFT, 4, 0),
+diff --git a/arch/powerpc/kvm/book3s_64_vio.c 
b/arch/powerpc/kvm/book3s_64_vio.c
+index 9a3f2646ecc7..07a8004c3c23 100644
+--- a/arch/powerpc/kvm/book3s_64_vio.c
 b/arch/powerpc/kvm/book3s_64_vio.c
+@@ -602,8 +602,10 @@ long kvmppc_h_put_tce_indirect(struct kvm_vcpu *vcpu,
+ 
+   if (kvmppc_gpa_to_ua(vcpu->kvm,
+   tce & ~(TCE_PCI_READ | TCE_PCI_WRITE),
+-  , NULL))
+-  return H_PARAMETER;
++  , NULL)) {
++  ret = H_PARAMETER;
++  goto unlock_exit;
++  }
+ 
+   list_for_each_entry_lockless(stit, >iommu_tables, next) {
+   ret = kvmppc_tce_iommu_map(vcpu->kvm, stt,
+diff --git a/arch/powerpc/kvm/book3s_64_vio_hv.c 
b/arch/powerpc/kvm/book3s_64_vio_hv.c
+index 6821ead4b4eb..eb8b11515a7f 100644
+--- a/arch/powerpc/kvm/book3s_64_vio_hv.c
 b/arch/powerpc/kvm/book3s_64_vio_hv.c
+@@ -528,8 +528,10 @@ long kvmppc_rm_h_put_tce_indirect(struct kvm_vcpu *vcpu,
+   ua = 0;
+   if (kvmppc_gpa_to_ua(vcpu->kvm,
+   tce & ~(TCE_PCI_READ | TCE_PCI_WRITE),
+-  , NULL))
+-  return H_PARAMETER;
++  , NULL)) {
++  ret = H_PARAMETER;
++  goto unlock_exit;
++  }
+ 
+   list_for_each_entry_lockless(stit, >iommu_tables, next) {
+   ret = kvmppc_rm_tce_iommu_map(vcpu->kvm, stt,
+diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
+index b316bd61a6ac..90be3a1506d3 100644
+--- a/arch/x86/kernel/apic/apic.c
 b/arch/x86/kernel/apic/apic.c
+@@ -1140,6 +1140,10 @@ void 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-08-29 Thread Mike Pagano
commit: e82b3f7e057ed2b8500c8faacd875f3dc7d43572
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Aug 29 14:15:04 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Aug 29 14:15:04 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e82b3f7e

Linux patch 4.19.69

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1068_linux-4.19.69.patch | 4438 ++
 2 files changed, 4442 insertions(+)

diff --git a/_README b/_README
index dd97210..c203203 100644
--- a/_README
+++ b/_README
@@ -315,6 +315,10 @@ Patch:  1067_linux-4.19.68.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.68
 
+Patch:  1068_linux-4.19.69.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.69
+
 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/1068_linux-4.19.69.patch b/1068_linux-4.19.69.patch
new file mode 100644
index 000..c959f94
--- /dev/null
+++ b/1068_linux-4.19.69.patch
@@ -0,0 +1,4438 @@
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index c96a8e9ad5c2..e8ddf0ef232e 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -3948,6 +3948,13 @@
+   Run specified binary instead of /init from the ramdisk,
+   used for early userspace startup. See initrd.
+ 
++  rdrand= [X86]
++  force - Override the decision by the kernel to hide the
++  advertisement of RDRAND support (this affects
++  certain AMD processors because of buggy BIOS
++  support, specifically around the suspend/resume
++  path).
++
+   rdt=[HW,X86,RDT]
+   Turn on/off individual RDT features. List is:
+   cmt, mbmtotal, mbmlocal, l3cat, l3cdp, l2cat, l2cdp,
+diff --git a/Makefile b/Makefile
+index 6f164b04d953..677341239449 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 68
++SUBLEVEL = 69
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/kvm/coproc.c b/arch/arm/kvm/coproc.c
+index fd6cde23bb5d..871fa50a09f1 100644
+--- a/arch/arm/kvm/coproc.c
 b/arch/arm/kvm/coproc.c
+@@ -658,13 +658,22 @@ int kvm_handle_cp14_64(struct kvm_vcpu *vcpu, struct 
kvm_run *run)
+ }
+ 
+ static void reset_coproc_regs(struct kvm_vcpu *vcpu,
+-const struct coproc_reg *table, size_t num)
++const struct coproc_reg *table, size_t num,
++unsigned long *bmap)
+ {
+   unsigned long i;
+ 
+   for (i = 0; i < num; i++)
+-  if (table[i].reset)
++  if (table[i].reset) {
++  int reg = table[i].reg;
++
+   table[i].reset(vcpu, [i]);
++  if (reg > 0 && reg < NR_CP15_REGS) {
++  set_bit(reg, bmap);
++  if (table[i].is_64bit)
++  set_bit(reg + 1, bmap);
++  }
++  }
+ }
+ 
+ static struct coproc_params decode_32bit_hsr(struct kvm_vcpu *vcpu)
+@@ -1439,17 +1448,15 @@ void kvm_reset_coprocs(struct kvm_vcpu *vcpu)
+ {
+   size_t num;
+   const struct coproc_reg *table;
+-
+-  /* Catch someone adding a register without putting in reset entry. */
+-  memset(vcpu->arch.ctxt.cp15, 0x42, sizeof(vcpu->arch.ctxt.cp15));
++  DECLARE_BITMAP(bmap, NR_CP15_REGS) = { 0, };
+ 
+   /* Generic chip reset first (so target could override). */
+-  reset_coproc_regs(vcpu, cp15_regs, ARRAY_SIZE(cp15_regs));
++  reset_coproc_regs(vcpu, cp15_regs, ARRAY_SIZE(cp15_regs), bmap);
+ 
+   table = get_target_table(vcpu->arch.target, );
+-  reset_coproc_regs(vcpu, table, num);
++  reset_coproc_regs(vcpu, table, num, bmap);
+ 
+   for (num = 1; num < NR_CP15_REGS; num++)
+-  WARN(vcpu_cp15(vcpu, num) == 0x42424242,
++  WARN(!test_bit(num, bmap),
+"Didn't reset vcpu_cp15(vcpu, %zi)", num);
+ }
+diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c
+index d112af75680b..6da2bbdb9648 100644
+--- a/arch/arm64/kvm/sys_regs.c
 b/arch/arm64/kvm/sys_regs.c
+@@ -626,7 +626,7 @@ static void reset_pmcr(struct kvm_vcpu *vcpu, const struct 
sys_reg_desc *r)
+*/
+   val = ((pmcr & ~ARMV8_PMU_PMCR_MASK)
+  | (ARMV8_PMU_PMCR_MASK & 0xdecafbad)) & (~ARMV8_PMU_PMCR_E);
+-  __vcpu_sys_reg(vcpu, PMCR_EL0) = val;
++  __vcpu_sys_reg(vcpu, r->reg) = val;
+ }
+ 
+ static bool 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-08-25 Thread Mike Pagano
commit: b62a0b001e2e98264ba2cbe01a779da0ea1a1a35
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Aug 25 17:36:50 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Aug 25 17:36:50 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b62a0b00

Linux patch 4.19.68

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1067_linux-4.19.68.patch | 2580 ++
 2 files changed, 2584 insertions(+)

diff --git a/_README b/_README
index 75aee25..dd97210 100644
--- a/_README
+++ b/_README
@@ -311,6 +311,10 @@ Patch:  1066_linux-4.19.67.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.67
 
+Patch:  1067_linux-4.19.68.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.68
+
 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/1067_linux-4.19.68.patch b/1067_linux-4.19.68.patch
new file mode 100644
index 000..a4515f2
--- /dev/null
+++ b/1067_linux-4.19.68.patch
@@ -0,0 +1,2580 @@
+diff --git a/Makefile b/Makefile
+index b6aa6e8d4411..6f164b04d953 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 67
++SUBLEVEL = 68
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm64/include/asm/efi.h b/arch/arm64/include/asm/efi.h
+index 7ed320895d1f..f52a2968a3b6 100644
+--- a/arch/arm64/include/asm/efi.h
 b/arch/arm64/include/asm/efi.h
+@@ -94,7 +94,11 @@ static inline unsigned long 
efi_get_max_initrd_addr(unsigned long dram_base,
+   ((protocol##_t *)instance)->f(instance, ##__VA_ARGS__)
+ 
+ #define alloc_screen_info(x...)   _info
+-#define free_screen_info(x...)
++
++static inline void free_screen_info(efi_system_table_t *sys_table_arg,
++  struct screen_info *si)
++{
++}
+ 
+ /* redeclare as 'hidden' so the compiler will generate relative references */
+ extern struct screen_info screen_info 
__attribute__((__visibility__("hidden")));
+diff --git a/arch/arm64/include/asm/pgtable.h 
b/arch/arm64/include/asm/pgtable.h
+index ea423db39364..2214a403f39b 100644
+--- a/arch/arm64/include/asm/pgtable.h
 b/arch/arm64/include/asm/pgtable.h
+@@ -419,8 +419,8 @@ extern pgprot_t phys_mem_access_prot(struct file *file, 
unsigned long pfn,
+PMD_TYPE_SECT)
+ 
+ #if defined(CONFIG_ARM64_64K_PAGES) || CONFIG_PGTABLE_LEVELS < 3
+-#define pud_sect(pud) (0)
+-#define pud_table(pud)(1)
++static inline bool pud_sect(pud_t pud) { return false; }
++static inline bool pud_table(pud_t pud) { return true; }
+ #else
+ #define pud_sect(pud) ((pud_val(pud) & PUD_TYPE_MASK) == \
+PUD_TYPE_SECT)
+diff --git a/arch/arm64/kernel/ftrace.c b/arch/arm64/kernel/ftrace.c
+index 57e962290df3..7eff8afa035f 100644
+--- a/arch/arm64/kernel/ftrace.c
 b/arch/arm64/kernel/ftrace.c
+@@ -76,7 +76,7 @@ int ftrace_make_call(struct dyn_ftrace *rec, unsigned long 
addr)
+ 
+   if (offset < -SZ_128M || offset >= SZ_128M) {
+ #ifdef CONFIG_ARM64_MODULE_PLTS
+-  struct plt_entry trampoline;
++  struct plt_entry trampoline, *dst;
+   struct module *mod;
+ 
+   /*
+@@ -104,24 +104,27 @@ int ftrace_make_call(struct dyn_ftrace *rec, unsigned 
long addr)
+* is added in the future, but for now, the pr_err() below
+* deals with a theoretical issue only.
+*/
++  dst = mod->arch.ftrace_trampoline;
+   trampoline = get_plt_entry(addr);
+-  if (!plt_entries_equal(mod->arch.ftrace_trampoline,
+- )) {
+-  if (!plt_entries_equal(mod->arch.ftrace_trampoline,
+- &(struct plt_entry){})) {
++  if (!plt_entries_equal(dst, )) {
++  if (!plt_entries_equal(dst, &(struct plt_entry){})) {
+   pr_err("ftrace: far branches to multiple entry 
points unsupported inside a single module\n");
+   return -EINVAL;
+   }
+ 
+   /* point the trampoline to our ftrace entry point */
+   module_disable_ro(mod);
+-  *mod->arch.ftrace_trampoline = trampoline;
++  *dst = trampoline;
+   module_enable_ro(mod, true);
+ 
+-  /* update trampoline before patching in the branch */
+-  smp_wmb();
++  /*
++   * Ensure updated trampoline is visible to instruction
++   * fetch before we patch in the branch.
++   */
++  

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-08-23 Thread Mike Pagano
commit: 9c7bcd4f585a2f17e664e071197a840c600dd56f
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Aug 23 22:17:22 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Aug 23 22:17:22 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9c7bcd4f

Add support for gcc 9.1 CPU optimization patch

Signed-off-by: Mike Pagano  gentoo.org>

 _README   |   4 +
 5012_enable-cpu-optimizations-for-gcc91.patch | 632 ++
 2 files changed, 636 insertions(+)

diff --git a/_README b/_README
index 3ef7886..75aee25 100644
--- a/_README
+++ b/_README
@@ -350,3 +350,7 @@ Desc:   Kernel patch enables gcc >= v4.13 optimizations for 
additional CPUs.
 Patch:  5011_enable-cpu-optimizations-for-gcc8.patch
 From:   https://github.com/graysky2/kernel_gcc_patch/
 Desc:   Kernel patch for >= gccv8 enables kernel >= v4.13 optimizations for 
additional CPUs.
+
+Patch:  5012_enable-cpu-optimizations-for-gcc91.patch
+From:   https://github.com/graysky2/kernel_gcc_patch/
+Desc:   Kernel patch enables gcc >= v9.1 optimizations for additional CPUs.

diff --git a/5012_enable-cpu-optimizations-for-gcc91.patch 
b/5012_enable-cpu-optimizations-for-gcc91.patch
new file mode 100644
index 000..dffd36d
--- /dev/null
+++ b/5012_enable-cpu-optimizations-for-gcc91.patch
@@ -0,0 +1,632 @@
+WARNING
+This patch works with gcc versions 9.1+ and with kernel version 4.13+ and 
should
+NOT be applied when compiling on older versions of gcc due to key name changes
+of the march flags introduced with the version 4.9 release of gcc.[1]
+
+Use the older version of this patch hosted on the same github for older
+versions of gcc.
+
+FEATURES
+This patch adds additional CPU options to the Linux kernel accessible under:
+ Processor type and features  --->
+  Processor family --->
+
+The expanded microarchitectures include:
+* AMD Improved K8-family
+* AMD K10-family
+* AMD Family 10h (Barcelona)
+* AMD Family 14h (Bobcat)
+* AMD Family 16h (Jaguar)
+* AMD Family 15h (Bulldozer)
+* AMD Family 15h (Piledriver)
+* AMD Family 15h (Steamroller)
+* AMD Family 15h (Excavator)
+* AMD Family 17h (Zen)
+* AMD Family 17h (Zen 2)
+* Intel Silvermont low-power processors
+* Intel Goldmont low-power processors (Apollo Lake and Denverton)
+* Intel Goldmont Plus low-power processors (Gemini Lake)
+* 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)
+* Intel 5th Gen Core i3/i5/i7 (Broadwell)
+* Intel 6th Gen Core i3/i5/i7 (Skylake)
+* Intel 6th Gen Core i7/i9 (Skylake X)
+* Intel 8th Gen Core i3/i5/i7 (Cannon Lake)
+* Intel 10th Gen Core i7/i9 (Ice Lake)
+* Intel Xeon (Cascade Lake)
+
+It also offers to compile passing the 'native' option which, "selects the CPU
+to generate code for at compilation time by determining the processor type of
+the compiling machine. Using -march=native enables all instruction subsets
+supported by the local machine and will produce code optimized for the local
+machine under the constraints of the selected instruction set."[3]
+
+MINOR NOTES
+This patch also changes 'atom' to 'bonnell' in accordance with the gcc v4.9
+changes. Note that upstream is using the deprecated 'match=atom' flags when I
+believe it should use the newer 'march=bonnell' flag for atom processors.[2]
+
+It is not recommended to compile on Atom-CPUs with the 'native' option.[4] The
+recommendation is to use the 'atom' option instead.
+
+BENEFITS
+Small but real speed increases are measurable using a make endpoint comparing
+a generic kernel to one built with one of the respective microarchs.
+
+See the following experimental evidence supporting this statement:
+https://github.com/graysky2/kernel_gcc_patch
+
+REQUIREMENTS
+linux version >=4.13
+gcc version >=9.1
+
+ACKNOWLEDGMENTS
+This patch builds on the seminal work by Jeroen.[5]
+
+REFERENCES
+1. https://gcc.gnu.org/gcc-4.9/changes.html
+2. https://bugzilla.kernel.org/show_bug.cgi?id=77461
+3. https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html
+4. https://github.com/graysky2/kernel_gcc_patch/issues/15
+5. http://www.linuxforge.net/docs/linux/linux-gcc.php
+
+--- a/arch/x86/include/asm/module.h2019-08-16 04:11:12.0 -0400
 b/arch/x86/include/asm/module.h2019-08-22 15:56:23.988050322 -0400
+@@ -25,6 +25,36 @@ struct mod_arch_specific {
+ #define MODULE_PROC_FAMILY "586MMX "
+ #elif defined CONFIG_MCORE2
+ #define MODULE_PROC_FAMILY "CORE2 "
++#elif defined CONFIG_MNATIVE
++#define MODULE_PROC_FAMILY "NATIVE "
++#elif defined CONFIG_MNEHALEM
++#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_MGOLDMONT
++#define MODULE_PROC_FAMILY "GOLDMONT "
++#elif defined 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-08-16 Thread Mike Pagano
commit: 80f421e5d9b1bc12165608319f3b2dd4e977a3a0
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Aug 16 12:26:09 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Aug 16 12:26:09 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=80f421e5

Removed redundant patch (vmalloc)

1800_vmalloc-sync-unmappings-fix.patch
mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()

Signed-off-by: Mike Pagano  gentoo.org>

 _README|  4 ---
 1800_vmalloc-sync-unmappings-fix.patch | 58 --
 2 files changed, 62 deletions(-)

diff --git a/_README b/_README
index 142096b..3ef7886 100644
--- a/_README
+++ b/_README
@@ -319,10 +319,6 @@ 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:  1800_vmalloc-sync-unmappings-fix.patch
-From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=3f8fd02b1bf1d7ba964485a56f2f4b53ae88c167
-Desc:   mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()
-
 Patch:  2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
 From:   
https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-mar...@holtmann.org/raw
 Desc:   Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. 
See bug #686758

diff --git a/1800_vmalloc-sync-unmappings-fix.patch 
b/1800_vmalloc-sync-unmappings-fix.patch
deleted file mode 100644
index 7e56e51..000
--- a/1800_vmalloc-sync-unmappings-fix.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-From 3f8fd02b1bf1d7ba964485a56f2f4b53ae88c167 Mon Sep 17 00:00:00 2001
-From: Joerg Roedel 
-Date: Fri, 19 Jul 2019 20:46:52 +0200
-Subject: mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()
-
-On x86-32 with PTI enabled, parts of the kernel page-tables are not shared
-between processes. This can cause mappings in the vmalloc/ioremap area to
-persist in some page-tables after the region is unmapped and released.
-
-When the region is re-used the processes with the old mappings do not fault
-in the new mappings but still access the old ones.
-
-This causes undefined behavior, in reality often data corruption, kernel
-oopses and panics and even spontaneous reboots.
-
-Fix this problem by activly syncing unmaps in the vmalloc/ioremap area to
-all page-tables in the system before the regions can be re-used.
-
-References: https://bugzilla.suse.com/show_bug.cgi?id=1118689
-Fixes: 5d72b4fba40ef ('x86, mm: support huge I/O mapping capability I/F')
-Signed-off-by: Joerg Roedel 
-Signed-off-by: Thomas Gleixner 
-Reviewed-by: Dave Hansen 
-Link: https://lkml.kernel.org/r/20190719184652.11391-4-j...@8bytes.org

- mm/vmalloc.c | 9 +
- 1 file changed, 9 insertions(+)
-
-diff --git a/mm/vmalloc.c b/mm/vmalloc.c
-index 4fa8d84599b0..e0fc963acc41 100644
 a/mm/vmalloc.c
-+++ b/mm/vmalloc.c
-@@ -1258,6 +1258,12 @@ static bool __purge_vmap_area_lazy(unsigned long start, 
unsigned long end)
-   if (unlikely(valist == NULL))
-   return false;
- 
-+  /*
-+   * First make sure the mappings are removed from all page-tables
-+   * before they are freed.
-+   */
-+  vmalloc_sync_all();
-+
-   /*
-* TODO: to calculate a flush range without looping.
-* The list can be up to lazy_max_pages() elements.
-@@ -3038,6 +3044,9 @@ EXPORT_SYMBOL(remap_vmalloc_range);
- /*
-  * Implement a stub for vmalloc_sync_all() if the architecture chose not to
-  * have one.
-+ *
-+ * The purpose of this function is to make sure the vmalloc area
-+ * mappings are identical in all page-tables in the system.
-  */
- void __weak vmalloc_sync_all(void)
- {
--- 
-cgit 1.2-0.3.lf.el7
-



[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-08-16 Thread Mike Pagano
commit: f739056a9cd88ac7ae209434eb265b1a1dcb903e
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Aug 16 12:12:47 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Aug 16 12:12:47 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=f739056a

Linux patch 4.19.67

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1066_linux-4.19.67.patch | 2715 ++
 2 files changed, 2719 insertions(+)

diff --git a/_README b/_README
index 6813edb..142096b 100644
--- a/_README
+++ b/_README
@@ -307,6 +307,10 @@ Patch:  1065_linux-4.19.66.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.66
 
+Patch:  1066_linux-4.19.67.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.67
+
 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/1066_linux-4.19.67.patch b/1066_linux-4.19.67.patch
new file mode 100644
index 000..9ac1ae3
--- /dev/null
+++ b/1066_linux-4.19.67.patch
@@ -0,0 +1,2715 @@
+diff --git a/Makefile b/Makefile
+index 065e5b34dc02..b6aa6e8d4411 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 66
++SUBLEVEL = 67
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts 
b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
+index 36efe410dcd7..9e33c41f5411 100644
+--- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
 b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
+@@ -125,6 +125,9 @@
+   };
+ 
+   mdio-bus-mux {
++  #address-cells = <1>;
++  #size-cells = <0>;
++
+   /* BIT(9) = 1 => external mdio */
+   mdio_ext: mdio@200 {
+   reg = <0x200>;
+diff --git a/arch/arm/mach-davinci/sleep.S b/arch/arm/mach-davinci/sleep.S
+index cd350dee4df3..efcd400b2abb 100644
+--- a/arch/arm/mach-davinci/sleep.S
 b/arch/arm/mach-davinci/sleep.S
+@@ -37,6 +37,7 @@
+ #define DEEPSLEEP_SLEEPENABLE_BIT BIT(31)
+ 
+   .text
++  .arch   armv5te
+ /*
+  * Move DaVinci into deep sleep state
+  *
+diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
+index 578174a33d22..51cd66dc1bb0 100644
+--- a/arch/powerpc/kvm/powerpc.c
 b/arch/powerpc/kvm/powerpc.c
+@@ -61,6 +61,11 @@ int kvm_arch_vcpu_runnable(struct kvm_vcpu *v)
+   return !!(v->arch.pending_exceptions) || kvm_request_pending(v);
+ }
+ 
++bool kvm_arch_dy_runnable(struct kvm_vcpu *vcpu)
++{
++  return kvm_arch_vcpu_runnable(vcpu);
++}
++
+ bool kvm_arch_vcpu_in_kernel(struct kvm_vcpu *vcpu)
+ {
+   return false;
+diff --git a/arch/s390/include/asm/page.h b/arch/s390/include/asm/page.h
+index 41e3908b397f..0d753291c43c 100644
+--- a/arch/s390/include/asm/page.h
 b/arch/s390/include/asm/page.h
+@@ -176,6 +176,8 @@ static inline int devmem_is_allowed(unsigned long pfn)
+ #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | \
+VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
+ 
++#define ARCH_ZONE_DMA_BITS31
++
+ #include 
+ #include 
+ 
+diff --git a/arch/x86/boot/string.c b/arch/x86/boot/string.c
+index c4428a176973..2622c0742c92 100644
+--- a/arch/x86/boot/string.c
 b/arch/x86/boot/string.c
+@@ -34,6 +34,14 @@ int memcmp(const void *s1, const void *s2, size_t len)
+   return diff;
+ }
+ 
++/*
++ * Clang may lower `memcmp == 0` to `bcmp == 0`.
++ */
++int bcmp(const void *s1, const void *s2, size_t len)
++{
++  return memcmp(s1, s2, len);
++}
++
+ int strcmp(const char *str1, const char *str2)
+ {
+   const unsigned char *s1 = (const unsigned char *)str1;
+diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
+index 2877e1fbadd8..3245b95ad2d9 100644
+--- a/arch/x86/include/asm/kvm_host.h
 b/arch/x86/include/asm/kvm_host.h
+@@ -1113,6 +1113,7 @@ struct kvm_x86_ops {
+   int (*update_pi_irte)(struct kvm *kvm, unsigned int host_irq,
+ uint32_t guest_irq, bool set);
+   void (*apicv_post_state_restore)(struct kvm_vcpu *vcpu);
++  bool (*dy_apicv_has_pending_interrupt)(struct kvm_vcpu *vcpu);
+ 
+   int (*set_hv_timer)(struct kvm_vcpu *vcpu, u64 guest_deadline_tsc);
+   void (*cancel_hv_timer)(struct kvm_vcpu *vcpu);
+diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
+index ea454d3f7763..0f33f00aa4df 100644
+--- a/arch/x86/kvm/svm.c
 b/arch/x86/kvm/svm.c
+@@ -5146,6 +5146,11 @@ static void svm_deliver_avic_intr(struct kvm_vcpu 
*vcpu, int vec)
+   kvm_vcpu_wake_up(vcpu);
+ }
+ 
++static bool svm_dy_apicv_has_pending_interrupt(struct kvm_vcpu *vcpu)
++{
++  return false;
++}
++
+ static void svm_ir_list_del(struct vcpu_svm *svm, struct amd_iommu_pi_data 
*pi)
+ {
+   unsigned long flags;
+@@ -7203,6 +7208,7 @@ static struct 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-08-09 Thread Mike Pagano
commit: dbcb182ad192aecf33b5bc1c3893fe60e22b3b67
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Aug  9 17:45:37 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Aug  9 17:45:37 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=dbcb182a

Linux patch 4.19.66

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1065_linux-4.19.66.patch | 2321 ++
 2 files changed, 2325 insertions(+)

diff --git a/_README b/_README
index 2679f40..6813edb 100644
--- a/_README
+++ b/_README
@@ -303,6 +303,10 @@ Patch:  1064_linux-4.19.65.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.65
 
+Patch:  1065_linux-4.19.66.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.66
+
 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/1065_linux-4.19.66.patch b/1065_linux-4.19.66.patch
new file mode 100644
index 000..1b0d353
--- /dev/null
+++ b/1065_linux-4.19.66.patch
@@ -0,0 +1,2321 @@
+diff --git a/Makefile b/Makefile
+index 41a565770431..065e5b34dc02 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 65
++SUBLEVEL = 66
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c
+index 82532c299bb5..008905d4152a 100644
+--- a/drivers/atm/iphase.c
 b/drivers/atm/iphase.c
+@@ -63,6 +63,7 @@
+ #include   
+ #include 
+ #include 
++#include 
+ #include "iphase.h" 
+ #include "suni.h"   
+ #define swap_byte_order(x) (((x & 0xff) << 8) | ((x & 0xff00) >> 8))
+@@ -2760,8 +2761,11 @@ static int ia_ioctl(struct atm_dev *dev, unsigned int 
cmd, void __user *arg)
+}
+if (copy_from_user(_cmds, arg, sizeof ia_cmds)) return -EFAULT; 
+board = ia_cmds.status;
+-   if ((board < 0) || (board > iadev_count))
+- board = 0;
++
++  if ((board < 0) || (board > iadev_count))
++  board = 0;
++  board = array_index_nospec(board, iadev_count + 1);
++
+iadev = ia_dev[board];
+switch (ia_cmds.cmd) {
+case MEMDUMP:
+diff --git a/drivers/base/base.h b/drivers/base/base.h
+index 7a419a7a6235..559b047de9f7 100644
+--- a/drivers/base/base.h
 b/drivers/base/base.h
+@@ -66,6 +66,9 @@ struct driver_private {
+  *probed first.
+  * @device - pointer back to the struct device that this structure is
+  * associated with.
++ * @dead - This device is currently either in the process of or has been
++ *removed from the system. Any asynchronous events scheduled for this
++ *device should exit without taking any action.
+  *
+  * Nothing outside of the driver core should ever touch these fields.
+  */
+@@ -76,6 +79,7 @@ struct device_private {
+   struct klist_node knode_bus;
+   struct list_head deferred_probe;
+   struct device *device;
++  u8 dead:1;
+ };
+ #define to_device_private_parent(obj) \
+   container_of(obj, struct device_private, knode_parent)
+diff --git a/drivers/base/core.c b/drivers/base/core.c
+index 92e2c32c2227..e1a8d5c06f65 100644
+--- a/drivers/base/core.c
 b/drivers/base/core.c
+@@ -2031,6 +2031,24 @@ void put_device(struct device *dev)
+ }
+ EXPORT_SYMBOL_GPL(put_device);
+ 
++bool kill_device(struct device *dev)
++{
++  /*
++   * Require the device lock and set the "dead" flag to guarantee that
++   * the update behavior is consistent with the other bitfields near
++   * it and that we cannot have an asynchronous probe routine trying
++   * to run while we are tearing out the bus/class/sysfs from
++   * underneath the device.
++   */
++  lockdep_assert_held(>mutex);
++
++  if (dev->p->dead)
++  return false;
++  dev->p->dead = true;
++  return true;
++}
++EXPORT_SYMBOL_GPL(kill_device);
++
+ /**
+  * device_del - delete device from system.
+  * @dev: device.
+@@ -2050,6 +2068,10 @@ void device_del(struct device *dev)
+   struct kobject *glue_dir = NULL;
+   struct class_interface *class_intf;
+ 
++  device_lock(dev);
++  kill_device(dev);
++  device_unlock(dev);
++
+   /* Notify clients of device removal.  This call must come
+* before dpm_sysfs_remove().
+*/
+diff --git a/drivers/base/dd.c b/drivers/base/dd.c
+index d48b310c4760..11d24a552ee4 100644
+--- a/drivers/base/dd.c
 b/drivers/base/dd.c
+@@ -725,15 +725,6 @@ static int __device_attach_driver(struct device_driver 
*drv, void *_data)
+   bool async_allowed;
+   int ret;
+ 
+-  /*
+-   * Check if device has already been claimed. This may
+-   * happen with driver loading, device discovery/registration,
+-   * and deferred probe processing happens all at once with
+-   * multiple threads.
+-   */
+-  if (dev->driver)
+-  return -EBUSY;

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-08-06 Thread Mike Pagano
commit: 2e2555bafe4b4554306671d02ecf755f1702c612
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Aug  6 19:18:49 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Aug  6 19:18:49 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=2e2555ba

Linux patch 4.19.65

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1064_linux-4.19.65.patch | 2660 ++
 2 files changed, 2664 insertions(+)

diff --git a/_README b/_README
index 391cca5..2679f40 100644
--- a/_README
+++ b/_README
@@ -299,6 +299,10 @@ Patch:  1063_linux-4.19.64.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.64
 
+Patch:  1064_linux-4.19.65.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.65
+
 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/1064_linux-4.19.65.patch b/1064_linux-4.19.65.patch
new file mode 100644
index 000..fac8063
--- /dev/null
+++ b/1064_linux-4.19.65.patch
@@ -0,0 +1,2660 @@
+diff --git a/Documentation/admin-guide/hw-vuln/spectre.rst 
b/Documentation/admin-guide/hw-vuln/spectre.rst
+index 25f3b2532198..e05e581af5cf 100644
+--- a/Documentation/admin-guide/hw-vuln/spectre.rst
 b/Documentation/admin-guide/hw-vuln/spectre.rst
+@@ -41,10 +41,11 @@ Related CVEs
+ 
+ The following CVE entries describe Spectre variants:
+ 
+-   =   ===  =
++   =   ===  ==
+CVE-2017-5753   Bounds check bypass  Spectre variant 1
+CVE-2017-5715   Branch target injection  Spectre variant 2
+-   =   ===  =
++   CVE-2019-1125   Spectre v1 swapgsSpectre variant 1 (swapgs)
++   =   ===  ==
+ 
+ Problem
+ ---
+@@ -78,6 +79,13 @@ There are some extensions of Spectre variant 1 attacks for 
reading data
+ over the network, see :ref:`[12] `. However such attacks
+ are difficult, low bandwidth, fragile, and are considered low risk.
+ 
++Note that, despite "Bounds Check Bypass" name, Spectre variant 1 is not
++only about user-controlled array bounds checks.  It can affect any
++conditional checks.  The kernel entry code interrupt, exception, and NMI
++handlers all have conditional swapgs checks.  Those may be problematic
++in the context of Spectre v1, as kernel code can speculatively run with
++a user GS.
++
+ Spectre variant 2 (Branch Target Injection)
+ ---
+ 
+@@ -132,6 +140,9 @@ not cover all possible attack vectors.
+ 1. A user process attacking the kernel
+ ^^
+ 
++Spectre variant 1
++~
++
+The attacker passes a parameter to the kernel via a register or
+via a known address in memory during a syscall. Such parameter may
+be used later by the kernel as an index to an array or to derive
+@@ -144,7 +155,40 @@ not cover all possible attack vectors.
+potentially be influenced for Spectre attacks, new "nospec" accessor
+macros are used to prevent speculative loading of data.
+ 
+-   Spectre variant 2 attacker can :ref:`poison ` the branch
++Spectre variant 1 (swapgs)
++~~
++
++   An attacker can train the branch predictor to speculatively skip the
++   swapgs path for an interrupt or exception.  If they initialize
++   the GS register to a user-space value, if the swapgs is speculatively
++   skipped, subsequent GS-related percpu accesses in the speculation
++   window will be done with the attacker-controlled GS value.  This
++   could cause privileged memory to be accessed and leaked.
++
++   For example:
++
++   ::
++
++ if (coming from user space)
++ swapgs
++ mov %gs:, %reg
++ mov (%reg), %reg1
++
++   When coming from user space, the CPU can speculatively skip the
++   swapgs, and then do a speculative percpu load using the user GS
++   value.  So the user can speculatively force a read of any kernel
++   value.  If a gadget exists which uses the percpu value as an address
++   in another load/store, then the contents of the kernel value may
++   become visible via an L1 side channel attack.
++
++   A similar attack exists when coming from kernel space.  The CPU can
++   speculatively do the swapgs, causing the user GS to get used for the
++   rest of the speculative window.
++
++Spectre variant 2
++~
++
++   A spectre variant 2 attacker can :ref:`poison ` the branch
+target buffer (BTB) before issuing syscall to launch an attack.
+After entering the kernel, the kernel could use the poisoned branch
+target buffer on indirect jump and jump to gadget code in speculative
+@@ -280,11 +324,18 @@ The sysfs file showing Spectre variant 1 mitigation 
status is:
+ 
+ The possible values 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-08-04 Thread Mike Pagano
commit: e10ac3fedcb0f948cc28973fbe7b54429f65d498
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Aug  4 16:14:44 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Aug  4 16:14:44 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e10ac3fe

Linux patch 4.19.64

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1063_linux-4.19.64.patch | 2473 ++
 2 files changed, 2477 insertions(+)

diff --git a/_README b/_README
index 4639dff..391cca5 100644
--- a/_README
+++ b/_README
@@ -295,6 +295,10 @@ Patch:  1062_linux-4.19.63.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.63
 
+Patch:  1063_linux-4.19.64.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.64
+
 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/1063_linux-4.19.64.patch b/1063_linux-4.19.64.patch
new file mode 100644
index 000..7fb8fa6
--- /dev/null
+++ b/1063_linux-4.19.64.patch
@@ -0,0 +1,2473 @@
+diff --git a/Makefile b/Makefile
+index 8ad77a93de30..203d9e80a315 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 63
++SUBLEVEL = 64
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h
+index 1a037b94eba1..cee28a05ee98 100644
+--- a/arch/arm64/include/asm/compat.h
 b/arch/arm64/include/asm/compat.h
+@@ -159,6 +159,7 @@ static inline compat_uptr_t ptr_to_compat(void __user 
*uptr)
+ }
+ 
+ #define compat_user_stack_pointer() 
(user_stack_pointer(task_pt_regs(current)))
++#define COMPAT_MINSIGSTKSZ2048
+ 
+ static inline void __user *arch_compat_alloc_user_space(long len)
+ {
+diff --git a/arch/sh/boards/Kconfig b/arch/sh/boards/Kconfig
+index 6394b4f0a69b..f42feab25dcf 100644
+--- a/arch/sh/boards/Kconfig
 b/arch/sh/boards/Kconfig
+@@ -8,27 +8,19 @@ config SH_ALPHA_BOARD
+   bool
+ 
+ config SH_DEVICE_TREE
+-  bool "Board Described by Device Tree"
++  bool
+   select OF
+   select OF_EARLY_FLATTREE
+   select TIMER_OF
+   select COMMON_CLK
+   select GENERIC_CALIBRATE_DELAY
+-  help
+-Select Board Described by Device Tree to build a kernel that
+-does not hard-code any board-specific knowledge but instead uses
+-a device tree blob provided by the boot-loader. You must enable
+-drivers for any hardware you want to use separately. At this
+-time, only boards based on the open-hardware J-Core processors
+-have sufficient driver coverage to use this option; do not
+-select it if you are using original SuperH hardware.
+ 
+ config SH_JCORE_SOC
+   bool "J-Core SoC"
+-  depends on SH_DEVICE_TREE && (CPU_SH2 || CPU_J2)
++  select SH_DEVICE_TREE
+   select CLKSRC_JCORE_PIT
+   select JCORE_AIC
+-  default y if CPU_J2
++  depends on CPU_J2
+   help
+ Select this option to include drivers core components of the
+ J-Core SoC, including interrupt controllers and timers.
+diff --git a/block/blk-core.c b/block/blk-core.c
+index 9ca703bcfe3b..4a3e1f417880 100644
+--- a/block/blk-core.c
 b/block/blk-core.c
+@@ -421,24 +421,25 @@ void blk_sync_queue(struct request_queue *q)
+ EXPORT_SYMBOL(blk_sync_queue);
+ 
+ /**
+- * blk_set_preempt_only - set QUEUE_FLAG_PREEMPT_ONLY
++ * blk_set_pm_only - increment pm_only counter
+  * @q: request queue pointer
+- *
+- * Returns the previous value of the PREEMPT_ONLY flag - 0 if the flag was not
+- * set and 1 if the flag was already set.
+  */
+-int blk_set_preempt_only(struct request_queue *q)
++void blk_set_pm_only(struct request_queue *q)
+ {
+-  return blk_queue_flag_test_and_set(QUEUE_FLAG_PREEMPT_ONLY, q);
++  atomic_inc(>pm_only);
+ }
+-EXPORT_SYMBOL_GPL(blk_set_preempt_only);
++EXPORT_SYMBOL_GPL(blk_set_pm_only);
+ 
+-void blk_clear_preempt_only(struct request_queue *q)
++void blk_clear_pm_only(struct request_queue *q)
+ {
+-  blk_queue_flag_clear(QUEUE_FLAG_PREEMPT_ONLY, q);
+-  wake_up_all(>mq_freeze_wq);
++  int pm_only;
++
++  pm_only = atomic_dec_return(>pm_only);
++  WARN_ON_ONCE(pm_only < 0);
++  if (pm_only == 0)
++  wake_up_all(>mq_freeze_wq);
+ }
+-EXPORT_SYMBOL_GPL(blk_clear_preempt_only);
++EXPORT_SYMBOL_GPL(blk_clear_pm_only);
+ 
+ /**
+  * __blk_run_queue_uncond - run a queue whether or not it has been stopped
+@@ -916,7 +917,7 @@ EXPORT_SYMBOL(blk_alloc_queue);
+  */
+ int blk_queue_enter(struct request_queue *q, blk_mq_req_flags_t flags)
+ {
+-  const bool preempt = flags & BLK_MQ_REQ_PREEMPT;
++  const bool pm = flags & BLK_MQ_REQ_PREEMPT;
+ 
+   while (true) {
+   bool success = false;
+@@ -924,11 +925,11 @@ int blk_queue_enter(struct request_queue *q, 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-07-31 Thread Mike Pagano
commit: bdbdcab2154fa53eb7929d82ef85240d56a9c306
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jul 31 15:09:40 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jul 31 15:09:40 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=bdbdcab2

mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()

Signed-off-by: Mike Pagano  gentoo.org>

 _README|  4 +++
 1800_vmalloc-sync-unmappings-fix.patch | 58 ++
 2 files changed, 62 insertions(+)

diff --git a/_README b/_README
index 2e505ed..4639dff 100644
--- a/_README
+++ b/_README
@@ -303,6 +303,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:  1800_vmalloc-sync-unmappings-fix.patch
+From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=3f8fd02b1bf1d7ba964485a56f2f4b53ae88c167
+Desc:   mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()
+
 Patch:  2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
 From:   
https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-mar...@holtmann.org/raw
 Desc:   Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. 
See bug #686758

diff --git a/1800_vmalloc-sync-unmappings-fix.patch 
b/1800_vmalloc-sync-unmappings-fix.patch
new file mode 100644
index 000..7e56e51
--- /dev/null
+++ b/1800_vmalloc-sync-unmappings-fix.patch
@@ -0,0 +1,58 @@
+From 3f8fd02b1bf1d7ba964485a56f2f4b53ae88c167 Mon Sep 17 00:00:00 2001
+From: Joerg Roedel 
+Date: Fri, 19 Jul 2019 20:46:52 +0200
+Subject: mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()
+
+On x86-32 with PTI enabled, parts of the kernel page-tables are not shared
+between processes. This can cause mappings in the vmalloc/ioremap area to
+persist in some page-tables after the region is unmapped and released.
+
+When the region is re-used the processes with the old mappings do not fault
+in the new mappings but still access the old ones.
+
+This causes undefined behavior, in reality often data corruption, kernel
+oopses and panics and even spontaneous reboots.
+
+Fix this problem by activly syncing unmaps in the vmalloc/ioremap area to
+all page-tables in the system before the regions can be re-used.
+
+References: https://bugzilla.suse.com/show_bug.cgi?id=1118689
+Fixes: 5d72b4fba40ef ('x86, mm: support huge I/O mapping capability I/F')
+Signed-off-by: Joerg Roedel 
+Signed-off-by: Thomas Gleixner 
+Reviewed-by: Dave Hansen 
+Link: https://lkml.kernel.org/r/20190719184652.11391-4-j...@8bytes.org
+---
+ mm/vmalloc.c | 9 +
+ 1 file changed, 9 insertions(+)
+
+diff --git a/mm/vmalloc.c b/mm/vmalloc.c
+index 4fa8d84599b0..e0fc963acc41 100644
+--- a/mm/vmalloc.c
 b/mm/vmalloc.c
+@@ -1258,6 +1258,12 @@ static bool __purge_vmap_area_lazy(unsigned long start, 
unsigned long end)
+   if (unlikely(valist == NULL))
+   return false;
+ 
++  /*
++   * First make sure the mappings are removed from all page-tables
++   * before they are freed.
++   */
++  vmalloc_sync_all();
++
+   /*
+* TODO: to calculate a flush range without looping.
+* The list can be up to lazy_max_pages() elements.
+@@ -3038,6 +3044,9 @@ EXPORT_SYMBOL(remap_vmalloc_range);
+ /*
+  * Implement a stub for vmalloc_sync_all() if the architecture chose not to
+  * have one.
++ *
++ * The purpose of this function is to make sure the vmalloc area
++ * mappings are identical in all page-tables in the system.
+  */
+ void __weak vmalloc_sync_all(void)
+ {
+-- 
+cgit 1.2-0.3.lf.el7
+



[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-07-31 Thread Mike Pagano
commit: bba20b5be2b932524ed1365df0c4f25c29ac4a74
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jul 31 10:12:54 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jul 31 10:12:54 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=bba20b5b

Linux patch 4.19.63

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |8 +-
 1062_linux-4.19.63.patch | 3299 ++
 2 files changed, 3305 insertions(+), 2 deletions(-)

diff --git a/_README b/_README
index 6ff7ffd..2e505ed 100644
--- a/_README
+++ b/_README
@@ -283,14 +283,18 @@ Patch:  1059_linux-4.19.60.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.60
 
-Patch:  1060-4.19.61.patch
+Patch:  1060_linux-4.19.61.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.61
 
-Patch:  1061-4.19.62.patch
+Patch:  1061_linux-4.19.62.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.62
 
+Patch:  1062_linux-4.19.63.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.63
+
 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/1062_linux-4.19.63.patch b/1062_linux-4.19.63.patch
new file mode 100644
index 000..b523869
--- /dev/null
+++ b/1062_linux-4.19.63.patch
@@ -0,0 +1,3299 @@
+diff --git a/Makefile b/Makefile
+index a4463d880ae2..8ad77a93de30 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 62
++SUBLEVEL = 63
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+@@ -491,6 +491,7 @@ ifneq ($(GCC_TOOLCHAIN),)
+ CLANG_FLAGS   += --gcc-toolchain=$(GCC_TOOLCHAIN)
+ endif
+ CLANG_FLAGS   += -no-integrated-as
++CLANG_FLAGS   += -Werror=unknown-warning-option
+ KBUILD_CFLAGS += $(CLANG_FLAGS)
+ KBUILD_AFLAGS += $(CLANG_FLAGS)
+ export CLANG_FLAGS
+diff --git a/arch/arm64/include/asm/assembler.h 
b/arch/arm64/include/asm/assembler.h
+index f90f5d83b228..5a97ac853168 100644
+--- a/arch/arm64/include/asm/assembler.h
 b/arch/arm64/include/asm/assembler.h
+@@ -112,7 +112,11 @@
+  * RAS Error Synchronization barrier
+  */
+   .macro  esb
++#ifdef CONFIG_ARM64_RAS_EXTN
+   hint#16
++#else
++  nop
++#endif
+   .endm
+ 
+ /*
+diff --git a/arch/powerpc/boot/xz_config.h b/arch/powerpc/boot/xz_config.h
+index e22e5b3770dd..ebfadd39e192 100644
+--- a/arch/powerpc/boot/xz_config.h
 b/arch/powerpc/boot/xz_config.h
+@@ -20,10 +20,30 @@ static inline uint32_t swab32p(void *p)
+ 
+ #ifdef __LITTLE_ENDIAN__
+ #define get_le32(p) (*((uint32_t *) (p)))
++#define cpu_to_be32(x) swab32(x)
++static inline u32 be32_to_cpup(const u32 *p)
++{
++  return swab32p((u32 *)p);
++}
+ #else
+ #define get_le32(p) swab32p(p)
++#define cpu_to_be32(x) (x)
++static inline u32 be32_to_cpup(const u32 *p)
++{
++  return *p;
++}
+ #endif
+ 
++static inline uint32_t get_unaligned_be32(const void *p)
++{
++  return be32_to_cpup(p);
++}
++
++static inline void put_unaligned_be32(u32 val, void *p)
++{
++  *((u32 *)p) = cpu_to_be32(val);
++}
++
+ #define memeq(a, b, size) (memcmp(a, b, size) == 0)
+ #define memzero(buf, size) memset(buf, 0, size)
+ 
+diff --git a/arch/powerpc/include/asm/cacheflush.h 
b/arch/powerpc/include/asm/cacheflush.h
+index d5a8d7bf0759..b189f7aee222 100644
+--- a/arch/powerpc/include/asm/cacheflush.h
 b/arch/powerpc/include/asm/cacheflush.h
+@@ -32,9 +32,12 @@
+  * not expect this type of fault. flush_cache_vmap is not exactly the right
+  * place to put this, but it seems to work well enough.
+  */
+-#define flush_cache_vmap(start, end)  do { asm volatile("ptesync" ::: 
"memory"); } while (0)
++static inline void flush_cache_vmap(unsigned long start, unsigned long end)
++{
++  asm volatile("ptesync" ::: "memory");
++}
+ #else
+-#define flush_cache_vmap(start, end)  do { } while (0)
++static inline void flush_cache_vmap(unsigned long start, unsigned long end) { 
}
+ #endif
+ 
+ #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1
+diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c
+index c72767a5327a..fe3c6f3bd3b6 100644
+--- a/arch/powerpc/kernel/eeh.c
 b/arch/powerpc/kernel/eeh.c
+@@ -360,10 +360,19 @@ static inline unsigned long eeh_token_to_phys(unsigned 
long token)
+   ptep = find_init_mm_pte(token, _shift);
+   if (!ptep)
+   return token;
+-  WARN_ON(hugepage_shift);
+-  pa = pte_pfn(*ptep) << PAGE_SHIFT;
+ 
+-  return pa | (token & (PAGE_SIZE-1));
++  pa = pte_pfn(*ptep);
++
++  /* On radix we can do hugepage mappings for io, so handle that */
++  if (hugepage_shift) {
++  pa <<= hugepage_shift;
++  pa |= token & ((1ul << hugepage_shift) - 1);
++  } else {
++  pa <<= PAGE_SHIFT;
++  pa |= token & (PAGE_SIZE - 1);
++  }
++
++  return pa;
+ }
+ 
+ /*
+diff --git 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-07-28 Thread Mike Pagano
commit: cb9be97dad62162639ad341e50c3dcd6b5691545
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Jul 28 16:27:15 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Jul 28 16:27:15 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=cb9be97d

Linux patch 4.19.62

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1061_linux-4.19.62.patch | 2185 ++
 2 files changed, 2189 insertions(+)

diff --git a/_README b/_README
index 301b6bf..6ff7ffd 100644
--- a/_README
+++ b/_README
@@ -287,6 +287,10 @@ Patch:  1060-4.19.61.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.61
 
+Patch:  1061-4.19.62.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.62
+
 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/1061_linux-4.19.62.patch b/1061_linux-4.19.62.patch
new file mode 100644
index 000..b41f9ba
--- /dev/null
+++ b/1061_linux-4.19.62.patch
@@ -0,0 +1,2185 @@
+diff --git a/Makefile b/Makefile
+index b16485c580d7..a4463d880ae2 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 61
++SUBLEVEL = 62
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/mips/jz4740/board-qi_lb60.c 
b/arch/mips/jz4740/board-qi_lb60.c
+index 705593d40d12..05c60fa4fa06 100644
+--- a/arch/mips/jz4740/board-qi_lb60.c
 b/arch/mips/jz4740/board-qi_lb60.c
+@@ -471,27 +471,27 @@ static unsigned long pin_cfg_bias_disable[] = {
+ static struct pinctrl_map pin_map[] __initdata = {
+   /* NAND pin configuration */
+   PIN_MAP_MUX_GROUP_DEFAULT("jz4740-nand",
+-  "1001.jz4740-pinctrl", "nand", "nand-cs1"),
++  "1001.pin-controller", "nand-cs1", "nand"),
+ 
+   /* fbdev pin configuration */
+   PIN_MAP_MUX_GROUP("jz4740-fb", PINCTRL_STATE_DEFAULT,
+-  "1001.jz4740-pinctrl", "lcd", "lcd-8bit"),
++  "1001.pin-controller", "lcd-8bit", "lcd"),
+   PIN_MAP_MUX_GROUP("jz4740-fb", PINCTRL_STATE_SLEEP,
+-  "1001.jz4740-pinctrl", "lcd", "lcd-no-pins"),
++  "1001.pin-controller", "lcd-no-pins", "lcd"),
+ 
+   /* MMC pin configuration */
+   PIN_MAP_MUX_GROUP_DEFAULT("jz4740-mmc.0",
+-  "1001.jz4740-pinctrl", "mmc", "mmc-1bit"),
++  "1001.pin-controller", "mmc-1bit", "mmc"),
+   PIN_MAP_MUX_GROUP_DEFAULT("jz4740-mmc.0",
+-  "1001.jz4740-pinctrl", "mmc", "mmc-4bit"),
++  "1001.pin-controller", "mmc-4bit", "mmc"),
+   PIN_MAP_CONFIGS_PIN_DEFAULT("jz4740-mmc.0",
+-  "1001.jz4740-pinctrl", "PD0", pin_cfg_bias_disable),
++  "1001.pin-controller", "PD0", pin_cfg_bias_disable),
+   PIN_MAP_CONFIGS_PIN_DEFAULT("jz4740-mmc.0",
+-  "1001.jz4740-pinctrl", "PD2", pin_cfg_bias_disable),
++  "1001.pin-controller", "PD2", pin_cfg_bias_disable),
+ 
+   /* PWM pin configuration */
+   PIN_MAP_MUX_GROUP_DEFAULT("jz4740-pwm",
+-  "1001.jz4740-pinctrl", "pwm4", "pwm4"),
++  "1001.pin-controller", "pwm4", "pwm4"),
+ };
+ 
+ 
+diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
+index 73d6d585dd66..4cf16378dffe 100644
+--- a/arch/x86/kvm/vmx.c
 b/arch/x86/kvm/vmx.c
+@@ -8457,6 +8457,7 @@ static void vmx_disable_shadow_vmcs(struct vcpu_vmx *vmx)
+ {
+   vmcs_clear_bits(SECONDARY_VM_EXEC_CONTROL, SECONDARY_EXEC_SHADOW_VMCS);
+   vmcs_write64(VMCS_LINK_POINTER, -1ull);
++  vmx->nested.sync_shadow_vmcs = false;
+ }
+ 
+ static inline void nested_release_vmcs12(struct vcpu_vmx *vmx)
+@@ -8468,7 +8469,6 @@ static inline void nested_release_vmcs12(struct vcpu_vmx 
*vmx)
+   /* copy to memory all shadowed fields in case
+  they were modified */
+   copy_shadow_to_vmcs12(vmx);
+-  vmx->nested.sync_shadow_vmcs = false;
+   vmx_disable_shadow_vmcs(vmx);
+   }
+   vmx->nested.posted_intr_nv = -1;
+@@ -8490,6 +8490,8 @@ static void free_nested(struct vcpu_vmx *vmx)
+   if (!vmx->nested.vmxon && !vmx->nested.smm.vmxon)
+   return;
+ 
++  kvm_clear_request(KVM_REQ_GET_VMCS12_PAGES, >vcpu);
++
+   hrtimer_cancel(>nested.preemption_timer);
+   vmx->nested.vmxon = false;
+   vmx->nested.smm.vmxon = false;
+@@ -8668,6 +8670,9 @@ static void copy_shadow_to_vmcs12(struct vcpu_vmx *vmx)
+   u64 field_value;
+   struct vmcs *shadow_vmcs = vmx->vmcs01.shadow_vmcs;
+ 
++  if (WARN_ON(!shadow_vmcs))
++  return;
++
+   preempt_disable();
+ 
+   vmcs_load(shadow_vmcs);
+@@ 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-07-21 Thread Mike Pagano
commit: b287bab56fa2f6c19d0c239ab1b69de5ad38de2a
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Jul 21 14:41:20 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Jul 21 14:41:20 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b287bab5

Linux patch 4.19.60

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1059_linux-4.19.60.patch | 2122 ++
 2 files changed, 2126 insertions(+)

diff --git a/_README b/_README
index 8871e40..5333820 100644
--- a/_README
+++ b/_README
@@ -279,6 +279,10 @@ Patch:  1058_linux-4.19.59.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.59
 
+Patch:  1059_linux-4.19.60.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.60
+
 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/1059_linux-4.19.60.patch b/1059_linux-4.19.60.patch
new file mode 100644
index 000..b1791d5
--- /dev/null
+++ b/1059_linux-4.19.60.patch
@@ -0,0 +1,2122 @@
+diff --git a/Makefile b/Makefile
+index 38f2150457fd..5fb79d493012 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 59
++SUBLEVEL = 60
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arc/kernel/unwind.c b/arch/arc/kernel/unwind.c
+index 183391d4d33a..9cf2ee8b4349 100644
+--- a/arch/arc/kernel/unwind.c
 b/arch/arc/kernel/unwind.c
+@@ -185,11 +185,6 @@ static void *__init unw_hdr_alloc_early(unsigned long sz)
+  MAX_DMA_ADDRESS);
+ }
+ 
+-static void *unw_hdr_alloc(unsigned long sz)
+-{
+-  return kmalloc(sz, GFP_KERNEL);
+-}
+-
+ static void init_unwind_table(struct unwind_table *table, const char *name,
+ const void *core_start, unsigned long core_size,
+ const void *init_start, unsigned long init_size,
+@@ -370,6 +365,10 @@ ret_err:
+ }
+ 
+ #ifdef CONFIG_MODULES
++static void *unw_hdr_alloc(unsigned long sz)
++{
++  return kmalloc(sz, GFP_KERNEL);
++}
+ 
+ static struct unwind_table *last_table;
+ 
+diff --git a/arch/arm/boot/dts/gemini-dlink-dns-313.dts 
b/arch/arm/boot/dts/gemini-dlink-dns-313.dts
+index d1329322b968..361dccd6c7ee 100644
+--- a/arch/arm/boot/dts/gemini-dlink-dns-313.dts
 b/arch/arm/boot/dts/gemini-dlink-dns-313.dts
+@@ -11,7 +11,7 @@
+ 
+ / {
+   model = "D-Link DNS-313 1-Bay Network Storage Enclosure";
+-  compatible = "dlink,dir-313", "cortina,gemini";
++  compatible = "dlink,dns-313", "cortina,gemini";
+   #address-cells = <1>;
+   #size-cells = <1>;
+ 
+diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi
+index 2366f093cc76..336cdead3da5 100644
+--- a/arch/arm/boot/dts/imx6ul.dtsi
 b/arch/arm/boot/dts/imx6ul.dtsi
+@@ -359,7 +359,7 @@
+   pwm1: pwm@208 {
+   compatible = "fsl,imx6ul-pwm", "fsl,imx27-pwm";
+   reg = <0x0208 0x4000>;
+-  interrupts = ;
++  interrupts = ;
+   clocks = < IMX6UL_CLK_PWM1>,
+< IMX6UL_CLK_PWM1>;
+   clock-names = "ipg", "per";
+@@ -370,7 +370,7 @@
+   pwm2: pwm@2084000 {
+   compatible = "fsl,imx6ul-pwm", "fsl,imx27-pwm";
+   reg = <0x02084000 0x4000>;
+-  interrupts = ;
++  interrupts = ;
+   clocks = < IMX6UL_CLK_PWM2>,
+< IMX6UL_CLK_PWM2>;
+   clock-names = "ipg", "per";
+@@ -381,7 +381,7 @@
+   pwm3: pwm@2088000 {
+   compatible = "fsl,imx6ul-pwm", "fsl,imx27-pwm";
+   reg = <0x02088000 0x4000>;
+-  interrupts = ;
++  interrupts = ;
+   clocks = < IMX6UL_CLK_PWM3>,
+< IMX6UL_CLK_PWM3>;
+   clock-names = "ipg", "per";
+@@ -392,7 +392,7 @@
+   pwm4: pwm@208c000 {
+   compatible = "fsl,imx6ul-pwm", "fsl,imx27-pwm";
+   reg = <0x0208c000 0x4000>;
+-  interrupts = ;
++  interrupts = ;
+   clocks = < IMX6UL_CLK_PWM4>,
+< IMX6UL_CLK_PWM4>;
+   clock-names = "ipg", "per";
+diff --git a/arch/arm/mach-omap2/prm3xxx.c b/arch/arm/mach-omap2/prm3xxx.c
+index 05858f966f7d..dfa65fc2c82b 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-07-10 Thread Mike Pagano
commit: 25100e2d5df6fea87a66b939447171dd8e2206f0
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jul 10 11:05:37 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jul 10 11:05:37 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=25100e2d

Linux patch 4.19.58

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1057_linux-4.19.58.patch | 2341 ++
 2 files changed, 2345 insertions(+)

diff --git a/_README b/_README
index 82a9cde..9cbece9 100644
--- a/_README
+++ b/_README
@@ -271,6 +271,10 @@ Patch:  1056_linux-4.19.57.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.57
 
+Patch:  1057_linux-4.19.58.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.58
+
 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/1057_linux-4.19.58.patch b/1057_linux-4.19.58.patch
new file mode 100644
index 000..72f042d
--- /dev/null
+++ b/1057_linux-4.19.58.patch
@@ -0,0 +1,2341 @@
+diff --git a/Makefile b/Makefile
+index 5412d556b561..5dcd01cd1bf6 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 57
++SUBLEVEL = 58
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/armada-xp-98dx3236.dtsi 
b/arch/arm/boot/dts/armada-xp-98dx3236.dtsi
+index 8d708cc22495..3e7d093d7a9a 100644
+--- a/arch/arm/boot/dts/armada-xp-98dx3236.dtsi
 b/arch/arm/boot/dts/armada-xp-98dx3236.dtsi
+@@ -336,3 +336,11 @@
+   status = "disabled";
+ };
+ 
++ {
++  compatible = "marvell,armada-38x-uart";
++};
++
++ {
++  compatible = "marvell,armada-38x-uart";
++};
++
+diff --git a/arch/arm64/kernel/module.c b/arch/arm64/kernel/module.c
+index 0b368ceccee4..8644f154ea7a 100644
+--- a/arch/arm64/kernel/module.c
 b/arch/arm64/kernel/module.c
+@@ -32,6 +32,7 @@
+ 
+ void *module_alloc(unsigned long size)
+ {
++  u64 module_alloc_end = module_alloc_base + MODULES_VSIZE;
+   gfp_t gfp_mask = GFP_KERNEL;
+   void *p;
+ 
+@@ -39,9 +40,12 @@ void *module_alloc(unsigned long size)
+   if (IS_ENABLED(CONFIG_ARM64_MODULE_PLTS))
+   gfp_mask |= __GFP_NOWARN;
+ 
++  if (IS_ENABLED(CONFIG_KASAN))
++  /* don't exceed the static module region - see below */
++  module_alloc_end = MODULES_END;
++
+   p = __vmalloc_node_range(size, MODULE_ALIGN, module_alloc_base,
+-  module_alloc_base + MODULES_VSIZE,
+-  gfp_mask, PAGE_KERNEL_EXEC, 0,
++  module_alloc_end, gfp_mask, PAGE_KERNEL_EXEC, 0,
+   NUMA_NO_NODE, __builtin_return_address(0));
+ 
+   if (!p && IS_ENABLED(CONFIG_ARM64_MODULE_PLTS) &&
+diff --git a/arch/mips/Makefile b/arch/mips/Makefile
+index d74b3742fa5d..ad0a92f95af1 100644
+--- a/arch/mips/Makefile
 b/arch/mips/Makefile
+@@ -16,6 +16,7 @@ archscripts: scripts_basic
+   $(Q)$(MAKE) $(build)=arch/mips/boot/tools relocs
+ 
+ KBUILD_DEFCONFIG := 32r2el_defconfig
++KBUILD_DTBS  := dtbs
+ 
+ #
+ # Select the object file format to substitute into the linker script.
+@@ -385,7 +386,7 @@ quiet_cmd_64 = OBJCOPY $@
+ vmlinux.64: vmlinux
+   $(call cmd,64)
+ 
+-all:  $(all-y)
++all:  $(all-y) $(KBUILD_DTBS)
+ 
+ # boot
+ $(boot-y): $(vmlinux-32) FORCE
+diff --git a/arch/mips/mm/mmap.c b/arch/mips/mm/mmap.c
+index 7755a1fad05a..1b705fb2f10c 100644
+--- a/arch/mips/mm/mmap.c
 b/arch/mips/mm/mmap.c
+@@ -203,7 +203,7 @@ unsigned long arch_randomize_brk(struct mm_struct *mm)
+ 
+ int __virt_addr_valid(const volatile void *kaddr)
+ {
+-  unsigned long vaddr = (unsigned long)vaddr;
++  unsigned long vaddr = (unsigned long)kaddr;
+ 
+   if ((vaddr < PAGE_OFFSET) || (vaddr >= MAP_BASE))
+   return 0;
+diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c
+index 067714291643..8c4fda52b91d 100644
+--- a/arch/mips/mm/tlbex.c
 b/arch/mips/mm/tlbex.c
+@@ -391,6 +391,7 @@ static struct work_registers build_get_work_registers(u32 
**p)
+ static void build_restore_work_registers(u32 **p)
+ {
+   if (scratch_reg >= 0) {
++  uasm_i_ehb(p);
+   UASM_i_MFC0(p, 1, c0_kscratch(), scratch_reg);
+   return;
+   }
+@@ -667,10 +668,12 @@ static void build_restore_pagemask(u32 **p, struct 
uasm_reloc **r,
+   uasm_i_mtc0(p, 0, C0_PAGEMASK);
+   uasm_il_b(p, r, lid);
+   }
+-  if (scratch_reg >= 0)
++  if (scratch_reg >= 0) {
++  uasm_i_ehb(p);
+   UASM_i_MFC0(p, 1, c0_kscratch(), scratch_reg);
+-  else
++  } else {
+   UASM_i_LW(p, 1, scratchpad_offset(0), 0);
++  }
+   } else 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-07-03 Thread Mike Pagano
commit: e44e80b9d1be4c727178c01526c2117350e3f347
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jul  3 11:34:05 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jul  3 11:34:05 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e44e80b9

Linux patch 4.19.57

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1056_linux-4.19.57.patch | 4354 ++
 2 files changed, 4358 insertions(+)

diff --git a/_README b/_README
index 9ed63b1..82a9cde 100644
--- a/_README
+++ b/_README
@@ -267,6 +267,10 @@ Patch:  1055_linux-4.19.56.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.56
 
+Patch:  1056_linux-4.19.57.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.57
+
 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/1056_linux-4.19.57.patch b/1056_linux-4.19.57.patch
new file mode 100644
index 000..f0cee7d
--- /dev/null
+++ b/1056_linux-4.19.57.patch
@@ -0,0 +1,4354 @@
+diff --git a/Documentation/robust-futexes.txt 
b/Documentation/robust-futexes.txt
+index 6c42c75103eb..6361fb01c9c1 100644
+--- a/Documentation/robust-futexes.txt
 b/Documentation/robust-futexes.txt
+@@ -218,5 +218,4 @@ All other architectures should build just fine too - but 
they won't have
+ the new syscalls yet.
+ 
+ Architectures need to implement the new futex_atomic_cmpxchg_inatomic()
+-inline function before writing up the syscalls (that function returns
+--ENOSYS right now).
++inline function before writing up the syscalls.
+diff --git a/Makefile b/Makefile
+index a76c61f77bcd..5412d556b561 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 56
++SUBLEVEL = 57
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
+index c12ff63265a9..5d8787f0ca5f 100644
+--- a/arch/arm64/Makefile
 b/arch/arm64/Makefile
+@@ -51,7 +51,7 @@ endif
+ 
+ KBUILD_CFLAGS += -mgeneral-regs-only $(lseinstr) $(brokengasinst)
+ KBUILD_CFLAGS += -fno-asynchronous-unwind-tables
+-KBUILD_CFLAGS += -Wno-psabi
++KBUILD_CFLAGS += $(call cc-disable-warning, psabi)
+ KBUILD_AFLAGS += $(lseinstr) $(brokengasinst)
+ 
+ KBUILD_CFLAGS += $(call cc-option,-mabi=lp64)
+diff --git a/arch/arm64/include/asm/futex.h b/arch/arm64/include/asm/futex.h
+index c7e30a6ed56e..232917e9c1d9 100644
+--- a/arch/arm64/include/asm/futex.h
 b/arch/arm64/include/asm/futex.h
+@@ -134,7 +134,9 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user 
*_uaddr,
+   : "memory");
+   uaccess_disable();
+ 
+-  *uval = val;
++  if (!ret)
++  *uval = val;
++
+   return ret;
+ }
+ 
+diff --git a/arch/arm64/include/asm/insn.h b/arch/arm64/include/asm/insn.h
+index c6802dea6cab..310e47d54d81 100644
+--- a/arch/arm64/include/asm/insn.h
 b/arch/arm64/include/asm/insn.h
+@@ -272,6 +272,7 @@ __AARCH64_INSN_FUNCS(adrp, 0x9F00, 0x9000)
+ __AARCH64_INSN_FUNCS(prfm,0x3FC0, 0x3980)
+ __AARCH64_INSN_FUNCS(prfm_lit,0xFF00, 0xD800)
+ __AARCH64_INSN_FUNCS(str_reg, 0x3FE0EC00, 0x38206800)
++__AARCH64_INSN_FUNCS(ldadd,   0x3F20FC00, 0x3820)
+ __AARCH64_INSN_FUNCS(ldr_reg, 0x3FE0EC00, 0x38606800)
+ __AARCH64_INSN_FUNCS(ldr_lit, 0xBF00, 0x1800)
+ __AARCH64_INSN_FUNCS(ldrsw_lit,   0xFF00, 0x9800)
+@@ -389,6 +390,13 @@ u32 aarch64_insn_gen_load_store_ex(enum 
aarch64_insn_register reg,
+  enum aarch64_insn_register state,
+  enum aarch64_insn_size_type size,
+  enum aarch64_insn_ldst_type type);
++u32 aarch64_insn_gen_ldadd(enum aarch64_insn_register result,
++ enum aarch64_insn_register address,
++ enum aarch64_insn_register value,
++ enum aarch64_insn_size_type size);
++u32 aarch64_insn_gen_stadd(enum aarch64_insn_register address,
++ enum aarch64_insn_register value,
++ enum aarch64_insn_size_type size);
+ u32 aarch64_insn_gen_add_sub_imm(enum aarch64_insn_register dst,
+enum aarch64_insn_register src,
+int imm, enum aarch64_insn_variant variant,
+diff --git a/arch/arm64/kernel/insn.c b/arch/arm64/kernel/insn.c
+index 2b3413549734..3e6229e30109 100644
+--- a/arch/arm64/kernel/insn.c
 b/arch/arm64/kernel/insn.c
+@@ -734,6 +734,46 @@ u32 aarch64_insn_gen_load_store_ex(enum 
aarch64_insn_register reg,
+   state);
+ }
+ 
++u32 aarch64_insn_gen_ldadd(enum aarch64_insn_register result,
++ enum aarch64_insn_register address,
++ enum aarch64_insn_register value,
++

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-06-25 Thread Mike Pagano
commit: f23442a5eb74f5ba43653768abc231a8070ddaee
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Jun 25 10:52:58 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Jun 25 10:52:58 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=f23442a5

Linux patch 4.19.56

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1055_linux-4.19.56.patch | 3375 ++
 2 files changed, 3379 insertions(+)

diff --git a/_README b/_README
index 545a5dd..9ed63b1 100644
--- a/_README
+++ b/_README
@@ -263,6 +263,10 @@ Patch:  1054_linux-4.19.55.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.55
 
+Patch:  1055_linux-4.19.56.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.56
+
 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/1055_linux-4.19.56.patch b/1055_linux-4.19.56.patch
new file mode 100644
index 000..fbc387c
--- /dev/null
+++ b/1055_linux-4.19.56.patch
@@ -0,0 +1,3375 @@
+diff --git a/Makefile b/Makefile
+index 3addd4c286fa..a76c61f77bcd 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 55
++SUBLEVEL = 56
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+@@ -652,6 +652,7 @@ KBUILD_CFLAGS  += $(call 
cc-disable-warning,frame-address,)
+ KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation)
+ KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow)
+ KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context)
++KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
+ 
+ ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
+ KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
+@@ -696,7 +697,6 @@ ifeq ($(cc-name),clang)
+ KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,)
+ KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier)
+ KBUILD_CFLAGS += $(call cc-disable-warning, gnu)
+-KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
+ # Quiet clang warning: comparison of unsigned expression < 0 is always false
+ KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare)
+ # CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the
+diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
+index ef149f59929a..d131c54acd3e 100644
+--- a/arch/arc/boot/dts/hsdk.dts
 b/arch/arc/boot/dts/hsdk.dts
+@@ -175,6 +175,7 @@
+   interrupt-names = "macirq";
+   phy-mode = "rgmii";
+   snps,pbl = <32>;
++  snps,multicast-filter-bins = <256>;
+   clocks = <>;
+   clock-names = "stmmaceth";
+   phy-handle = <>;
+@@ -183,6 +184,9 @@
+   mac-address = [00 00 00 00 00 00]; /* Filled in by 
U-Boot */
+   dma-coherent;
+ 
++  tx-fifo-depth = <4096>;
++  rx-fifo-depth = <4096>;
++
+   mdio {
+   #address-cells = <1>;
+   #size-cells = <0>;
+diff --git a/arch/arc/include/asm/cmpxchg.h b/arch/arc/include/asm/cmpxchg.h
+index d819de1c5d10..3ea4112c8302 100644
+--- a/arch/arc/include/asm/cmpxchg.h
 b/arch/arc/include/asm/cmpxchg.h
+@@ -92,8 +92,11 @@ __cmpxchg(volatile void *ptr, unsigned long expected, 
unsigned long new)
+ 
+ #endif /* CONFIG_ARC_HAS_LLSC */
+ 
+-#define cmpxchg(ptr, o, n) ((typeof(*(ptr)))__cmpxchg((ptr), \
+-  (unsigned long)(o), (unsigned long)(n)))
++#define cmpxchg(ptr, o, n) ({ \
++  (typeof(*(ptr)))__cmpxchg((ptr),\
++(unsigned long)(o),   \
++(unsigned long)(n));  \
++})
+ 
+ /*
+  * atomic_cmpxchg is same as cmpxchg
+@@ -198,8 +201,11 @@ static inline unsigned long __xchg(unsigned long val, 
volatile void *ptr,
+   return __xchg_bad_pointer();
+ }
+ 
+-#define xchg(ptr, with) ((typeof(*(ptr)))__xchg((unsigned long)(with), (ptr), 
\
+-   sizeof(*(ptr
++#define xchg(ptr, with) ({\
++  (typeof(*(ptr)))__xchg((unsigned long)(with),   \
++ (ptr),   \
++ sizeof(*(ptr))); \
++})
+ 
+ #endif /* CONFIG_ARC_PLAT_EZNPS */
+ 
+diff --git a/arch/arc/mm/tlb.c b/arch/arc/mm/tlb.c
+index 4097764fea23..fa18c00b0cfd 100644
+--- a/arch/arc/mm/tlb.c
 b/arch/arc/mm/tlb.c
+@@ -911,9 +911,11 @@ void do_tlb_overlap_fault(unsigned long cause, unsigned 
long address,
+ struct pt_regs *regs)
+ {
+   struct cpuinfo_arc_mmu *mmu = _arc700[smp_processor_id()].mmu;
+-  

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-06-22 Thread Mike Pagano
commit: 62a38b9ab69d2607601ef3a8fcdfaec29c1a5053
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Jun 22 19:06:28 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Jun 22 19:06:28 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=62a38b9a

Linux patches 4.19.54 and 4.19.55

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |8 +
 1053_linux-4.19.54.patch | 1700 ++
 1054_linux-4.19.55.patch |   27 +
 3 files changed, 1735 insertions(+)

diff --git a/_README b/_README
index 76bab6e..545a5dd 100644
--- a/_README
+++ b/_README
@@ -255,6 +255,14 @@ Patch:  1052_linux-4.19.53.patch
 From:   https://www.kernel.org
 Desc:   Linux 4.19.53
 
+Patch:  1053_linux-4.19.54.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.54
+
+Patch:  1054_linux-4.19.55.patch
+From:   https://www.kernel.org
+Desc:   Linux 4.19.55
+
 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/1053_linux-4.19.54.patch b/1053_linux-4.19.54.patch
new file mode 100644
index 000..e75cc51
--- /dev/null
+++ b/1053_linux-4.19.54.patch
@@ -0,0 +1,1700 @@
+diff --git a/Makefile b/Makefile
+index bedcb121dc3d..b234837e4d07 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 53
++SUBLEVEL = 54
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm64/include/asm/syscall.h 
b/arch/arm64/include/asm/syscall.h
+index ad8be16a39c9..58102652bf9e 100644
+--- a/arch/arm64/include/asm/syscall.h
 b/arch/arm64/include/asm/syscall.h
+@@ -20,7 +20,7 @@
+ #include 
+ #include 
+ 
+-typedef long (*syscall_fn_t)(struct pt_regs *regs);
++typedef long (*syscall_fn_t)(const struct pt_regs *regs);
+ 
+ extern const syscall_fn_t sys_call_table[];
+ 
+diff --git a/arch/arm64/include/asm/syscall_wrapper.h 
b/arch/arm64/include/asm/syscall_wrapper.h
+index a4477e515b79..507d0ee6bc69 100644
+--- a/arch/arm64/include/asm/syscall_wrapper.h
 b/arch/arm64/include/asm/syscall_wrapper.h
+@@ -30,10 +30,10 @@
+   }   
\
+   static inline long __do_compat_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
+ 
+-#define COMPAT_SYSCALL_DEFINE0(sname) \
+-  asmlinkage long __arm64_compat_sys_##sname(void);   \
+-  ALLOW_ERROR_INJECTION(__arm64_compat_sys_##sname, ERRNO);   \
+-  asmlinkage long __arm64_compat_sys_##sname(void)
++#define COMPAT_SYSCALL_DEFINE0(sname) 
\
++  asmlinkage long __arm64_compat_sys_##sname(const struct pt_regs 
*__unused); \
++  ALLOW_ERROR_INJECTION(__arm64_compat_sys_##sname, ERRNO);   
\
++  asmlinkage long __arm64_compat_sys_##sname(const struct pt_regs 
*__unused)
+ 
+ #define COND_SYSCALL_COMPAT(name) \
+   cond_syscall(__arm64_compat_sys_##name);
+@@ -62,11 +62,11 @@
+   static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
+ 
+ #ifndef SYSCALL_DEFINE0
+-#define SYSCALL_DEFINE0(sname)\
+-  SYSCALL_METADATA(_##sname, 0);  \
+-  asmlinkage long __arm64_sys_##sname(void);  \
+-  ALLOW_ERROR_INJECTION(__arm64_sys_##sname, ERRNO);  \
+-  asmlinkage long __arm64_sys_##sname(void)
++#define SYSCALL_DEFINE0(sname)
\
++  SYSCALL_METADATA(_##sname, 0);  
\
++  asmlinkage long __arm64_sys_##sname(const struct pt_regs *__unused);
\
++  ALLOW_ERROR_INJECTION(__arm64_sys_##sname, ERRNO);  
\
++  asmlinkage long __arm64_sys_##sname(const struct pt_regs *__unused)
+ #endif
+ 
+ #ifndef COND_SYSCALL
+diff --git a/arch/arm64/kernel/sys.c b/arch/arm64/kernel/sys.c
+index 162a95ed0881..fe20c461582a 100644
+--- a/arch/arm64/kernel/sys.c
 b/arch/arm64/kernel/sys.c
+@@ -47,22 +47,26 @@ SYSCALL_DEFINE1(arm64_personality, unsigned int, 
personality)
+   return ksys_personality(personality);
+ }
+ 
++asmlinkage long sys_ni_syscall(void);
++
++asmlinkage long __arm64_sys_ni_syscall(const struct pt_regs *__unused)
++{
++  return sys_ni_syscall();
++}
++
+ /*
+  * Wrappers to pass the pt_regs argument.
+  */
+ #define __arm64_sys_personality   __arm64_sys_arm64_personality
+ 
+-asmlinkage long sys_ni_syscall(const struct pt_regs *);
+-#define __arm64_sys_ni_syscallsys_ni_syscall
+-
+ #undef __SYSCALL
+ #define __SYSCALL(nr, sym)asmlinkage long __arm64_##sym(const struct 
pt_regs *);
+ #include 
+ 
+ #undef __SYSCALL
+-#define __SYSCALL(nr, sym)[nr] = (syscall_fn_t)__arm64_##sym,
++#define __SYSCALL(nr, sym)[nr] = 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-06-19 Thread Thomas Deutschmann
commit: 09d431ec38d30ec1e633879ef570e9e4bbe75aa5
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Wed Jun 19 17:16:55 2019 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Wed Jun 19 17:16:55 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=09d431ec

Linux patch 4.19.53

Signed-off-by: Thomas Deutschmann  gentoo.org>

 _README  |  108 +-
 1052_linux-4.19.53.patch | 3116 ++
 2 files changed, 3172 insertions(+), 52 deletions(-)

diff --git a/_README b/_README
index 9c779f7..76bab6e 100644
--- a/_README
+++ b/_README
@@ -44,213 +44,217 @@ Individual Patch Descriptions:
 --
 
 Patch:  1000_linux-4.19.1.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.1
 
 Patch:  1001_linux-4.19.2.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.2
 
 Patch:  1002_linux-4.19.3.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.3
 
 Patch:  1003_linux-4.19.4.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.4
 
 Patch:  1004_linux-4.19.5.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.5
 
 Patch:  1005_linux-4.19.6.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.6
 
 Patch:  1006_linux-4.19.7.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.7
 
 Patch:  1007_linux-4.19.8.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.8
 
 Patch:  1008_linux-4.19.9.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.9
 
 Patch:  1009_linux-4.19.10.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.10
 
 Patch:  1010_linux-4.19.11.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.11
 
 Patch:  1011_linux-4.19.12.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.12
 
 Patch:  1012_linux-4.19.13.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.13
 
 Patch:  1013_linux-4.19.14.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.14
 
 Patch:  1014_linux-4.19.15.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.15
 
 Patch:  1015_linux-4.19.16.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.16
 
 Patch:  1016_linux-4.19.17.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.17
 
 Patch:  1017_linux-4.19.18.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.18
 
 Patch:  1018_linux-4.19.19.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.19
 
 Patch:  1019_linux-4.19.20.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.20
 
 Patch:  1020_linux-4.19.21.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.21
 
 Patch:  1021_linux-4.19.22.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.22
 
 Patch:  1022_linux-4.19.23.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.23
 
 Patch:  1023_linux-4.19.24.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.24
 
 Patch:  1024_linux-4.19.25.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.25
 
 Patch:  1025_linux-4.19.26.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.26
 
 Patch:  1026_linux-4.19.27.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.27
 
 Patch:  1027_linux-4.19.28.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.28
 
 Patch:  1028_linux-4.19.29.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.29
 
 Patch:  1029_linux-4.19.30.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.30
 
 Patch:  1030_linux-4.19.31.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.31
 
 Patch:  1031_linux-4.19.32.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.32
 
 Patch:  1032_linux-4.19.33.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.33
 
 Patch:  1033_linux-4.19.34.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 4.19.34
 
 Patch:  1034_linux-4.19.35.patch
-From:   http://www.kernel.org
+From:   

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-06-17 Thread Mike Pagano
commit: 9db3a118db892aac5c24e1f13dbc2b74eaa998bb
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Jun 17 19:21:58 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Jun 17 19:21:58 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9db3a118

Linux patch 4.19.52

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |   4 +
 1051_linux-4.19.52.patch | 253 +++
 2 files changed, 257 insertions(+)

diff --git a/_README b/_README
index 5b58ca2..9c779f7 100644
--- a/_README
+++ b/_README
@@ -247,6 +247,10 @@ Patch:  1050_linux-4.19.51.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.19.51
 
+Patch:  1051_linux-4.19.52.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.19.52
+
 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/1051_linux-4.19.52.patch b/1051_linux-4.19.52.patch
new file mode 100644
index 000..06d34b6
--- /dev/null
+++ b/1051_linux-4.19.52.patch
@@ -0,0 +1,253 @@
+diff --git a/Documentation/networking/ip-sysctl.txt 
b/Documentation/networking/ip-sysctl.txt
+index 2c31208528d5..7eb9366422f5 100644
+--- a/Documentation/networking/ip-sysctl.txt
 b/Documentation/networking/ip-sysctl.txt
+@@ -250,6 +250,14 @@ tcp_base_mss - INTEGER
+   Path MTU discovery (MTU probing).  If MTU probing is enabled,
+   this is the initial MSS used by the connection.
+ 
++tcp_min_snd_mss - INTEGER
++  TCP SYN and SYNACK messages usually advertise an ADVMSS option,
++  as described in RFC 1122 and RFC 6691.
++  If this ADVMSS option is smaller than tcp_min_snd_mss,
++  it is silently capped to tcp_min_snd_mss.
++
++  Default : 48 (at least 8 bytes of payload per segment)
++
+ tcp_congestion_control - STRING
+   Set the congestion control algorithm to be used for new
+   connections. The algorithm "reno" is always available, but
+diff --git a/Makefile b/Makefile
+index dd4be2f32b88..c82ee02ad9be 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 51
++SUBLEVEL = 52
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/include/linux/tcp.h b/include/linux/tcp.h
+index d2c8f280e48f..4374196b98ea 100644
+--- a/include/linux/tcp.h
 b/include/linux/tcp.h
+@@ -485,4 +485,8 @@ static inline u16 tcp_mss_clamp(const struct tcp_sock *tp, 
u16 mss)
+ 
+   return (user_mss && user_mss < mss) ? user_mss : mss;
+ }
++
++int tcp_skb_shift(struct sk_buff *to, struct sk_buff *from, int pcount,
++int shiftlen);
++
+ #endif/* _LINUX_TCP_H */
+diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h
+index 622db6bc2f02..366e2a60010e 100644
+--- a/include/net/netns/ipv4.h
 b/include/net/netns/ipv4.h
+@@ -114,6 +114,7 @@ struct netns_ipv4 {
+ #endif
+   int sysctl_tcp_mtu_probing;
+   int sysctl_tcp_base_mss;
++  int sysctl_tcp_min_snd_mss;
+   int sysctl_tcp_probe_threshold;
+   u32 sysctl_tcp_probe_interval;
+ 
+diff --git a/include/net/tcp.h b/include/net/tcp.h
+index 770917d0caa7..e75661f92daa 100644
+--- a/include/net/tcp.h
 b/include/net/tcp.h
+@@ -55,6 +55,8 @@ void tcp_time_wait(struct sock *sk, int state, int timeo);
+ 
+ #define MAX_TCP_HEADER(128 + MAX_HEADER)
+ #define MAX_TCP_OPTION_SPACE 40
++#define TCP_MIN_SND_MSS   48
++#define TCP_MIN_GSO_SIZE  (TCP_MIN_SND_MSS - MAX_TCP_OPTION_SPACE)
+ 
+ /*
+  * Never offer a window over 32767 without using window scaling. Some
+diff --git a/include/uapi/linux/snmp.h b/include/uapi/linux/snmp.h
+index f80135e5feaa..abae27c3001c 100644
+--- a/include/uapi/linux/snmp.h
 b/include/uapi/linux/snmp.h
+@@ -282,6 +282,7 @@ enum
+   LINUX_MIB_TCPACKCOMPRESSED, /* TCPAckCompressed */
+   LINUX_MIB_TCPZEROWINDOWDROP,/* TCPZeroWindowDrop */
+   LINUX_MIB_TCPRCVQDROP,  /* TCPRcvQDrop */
++  LINUX_MIB_TCPWQUEUETOOBIG,  /* TCPWqueueTooBig */
+   __LINUX_MIB_MAX
+ };
+ 
+diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c
+index 70289682a670..eab5c02da8ae 100644
+--- a/net/ipv4/proc.c
 b/net/ipv4/proc.c
+@@ -290,6 +290,7 @@ static const struct snmp_mib snmp4_net_list[] = {
+   SNMP_MIB_ITEM("TCPAckCompressed", LINUX_MIB_TCPACKCOMPRESSED),
+   SNMP_MIB_ITEM("TCPZeroWindowDrop", LINUX_MIB_TCPZEROWINDOWDROP),
+   SNMP_MIB_ITEM("TCPRcvQDrop", LINUX_MIB_TCPRCVQDROP),
++  SNMP_MIB_ITEM("TCPWqueueTooBig", LINUX_MIB_TCPWQUEUETOOBIG),
+   SNMP_MIB_SENTINEL
+ };
+ 
+diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c
+index ce64453d337d..ad132b6e8cfa 100644
+--- a/net/ipv4/sysctl_net_ipv4.c
 b/net/ipv4/sysctl_net_ipv4.c
+@@ -39,6 +39,8 @@ static int ip_local_port_range_min[] = { 1, 1 };
+ static int ip_local_port_range_max[] = { 65535, 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-06-15 Thread Mike Pagano
commit: 868863fa3b01b3d0e5bc4bd44d8bbf00ed6a5e95
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Jun 15 15:06:56 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Jun 15 15:06:56 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=868863fa

Linux patch 4.19.51

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1050_linux-4.19.51.patch | 3093 ++
 2 files changed, 3097 insertions(+)

diff --git a/_README b/_README
index 9cf9325..5b58ca2 100644
--- a/_README
+++ b/_README
@@ -243,6 +243,10 @@ Patch:  1049_linux-4.19.50.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.19.50
 
+Patch:  1050_linux-4.19.51.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.19.51
+
 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/1050_linux-4.19.51.patch b/1050_linux-4.19.51.patch
new file mode 100644
index 000..f589a82
--- /dev/null
+++ b/1050_linux-4.19.51.patch
@@ -0,0 +1,3093 @@
+diff --git a/Makefile b/Makefile
+index f7e7e365e2ff..dd4be2f32b88 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 50
++SUBLEVEL = 51
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/exynos5420-arndale-octa.dts 
b/arch/arm/boot/dts/exynos5420-arndale-octa.dts
+index cdda614e417e..a370857beac0 100644
+--- a/arch/arm/boot/dts/exynos5420-arndale-octa.dts
 b/arch/arm/boot/dts/exynos5420-arndale-octa.dts
+@@ -106,6 +106,7 @@
+   regulator-name = "PVDD_APIO_1V8";
+   regulator-min-microvolt = <180>;
+   regulator-max-microvolt = <180>;
++  regulator-always-on;
+   };
+ 
+   ldo3_reg: LDO3 {
+@@ -144,6 +145,7 @@
+   regulator-name = "PVDD_ABB_1V8";
+   regulator-min-microvolt = <180>;
+   regulator-max-microvolt = <180>;
++  regulator-always-on;
+   };
+ 
+   ldo9_reg: LDO9 {
+diff --git a/arch/arm/boot/dts/imx50.dtsi b/arch/arm/boot/dts/imx50.dtsi
+index 7fae2ffb76fe..ab522c2da6df 100644
+--- a/arch/arm/boot/dts/imx50.dtsi
 b/arch/arm/boot/dts/imx50.dtsi
+@@ -420,7 +420,7 @@
+   reg = <0x63fb 0x4000>;
+   interrupts = <6>;
+   clocks = < IMX5_CLK_SDMA_GATE>,
+-   < IMX5_CLK_SDMA_GATE>;
++   < IMX5_CLK_AHB>;
+   clock-names = "ipg", "ahb";
+   #dma-cells = <3>;
+   fsl,sdma-ram-script-name = 
"imx/sdma/sdma-imx50.bin";
+diff --git a/arch/arm/boot/dts/imx51.dtsi b/arch/arm/boot/dts/imx51.dtsi
+index 5c4ba91e43ba..ef2abc097843 100644
+--- a/arch/arm/boot/dts/imx51.dtsi
 b/arch/arm/boot/dts/imx51.dtsi
+@@ -481,7 +481,7 @@
+   reg = <0x83fb 0x4000>;
+   interrupts = <6>;
+   clocks = < IMX5_CLK_SDMA_GATE>,
+-   < IMX5_CLK_SDMA_GATE>;
++   < IMX5_CLK_AHB>;
+   clock-names = "ipg", "ahb";
+   #dma-cells = <3>;
+   fsl,sdma-ram-script-name = 
"imx/sdma/sdma-imx51.bin";
+diff --git a/arch/arm/boot/dts/imx53.dtsi b/arch/arm/boot/dts/imx53.dtsi
+index 6386185ae234..b6b0818343c4 100644
+--- a/arch/arm/boot/dts/imx53.dtsi
 b/arch/arm/boot/dts/imx53.dtsi
+@@ -701,7 +701,7 @@
+   reg = <0x63fb 0x4000>;
+   interrupts = <6>;
+   clocks = < IMX5_CLK_SDMA_GATE>,
+-   < IMX5_CLK_SDMA_GATE>;
++   < IMX5_CLK_AHB>;
+   clock-names = "ipg", "ahb";
+   #dma-cells = <3>;
+   fsl,sdma-ram-script-name = 
"imx/sdma/sdma-imx53.bin";
+diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
+index 61d2d26afbf4..00d44a60972f 100644
+--- a/arch/arm/boot/dts/imx6qdl.dtsi
 b/arch/arm/boot/dts/imx6qdl.dtsi
+@@ -905,7 +905,7 @@
+   compatible = "fsl,imx6q-sdma", "fsl,imx35-sdma";
+   reg = <0x020ec000 0x4000>;
+   interrupts = <0 2 IRQ_TYPE_LEVEL_HIGH>;
+-  clocks = < IMX6QDL_CLK_SDMA>,
++  clocks = < 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-06-11 Thread Mike Pagano
commit: 9ef5edec2b39b51cb07bbe8c1b877c8fafdf0f25
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Jun 11 12:41:47 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Jun 11 12:41:47 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9ef5edec

Linux patch 4.19.50

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1049_linux-4.19.50.patch | 2070 ++
 2 files changed, 2074 insertions(+)

diff --git a/_README b/_README
index 513d8bc..9cf9325 100644
--- a/_README
+++ b/_README
@@ -239,6 +239,10 @@ Patch:  1048_linux-4.19.49.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.19.49
 
+Patch:  1049_linux-4.19.50.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.19.50
+
 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/1049_linux-4.19.50.patch b/1049_linux-4.19.50.patch
new file mode 100644
index 000..b3b5343
--- /dev/null
+++ b/1049_linux-4.19.50.patch
@@ -0,0 +1,2070 @@
+diff --git a/Makefile b/Makefile
+index e84966c49117..f7e7e365e2ff 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 49
++SUBLEVEL = 50
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c
+index 7c0b2e6cdfbd..4c7a93f4039a 100644
+--- a/arch/mips/ath79/setup.c
 b/arch/mips/ath79/setup.c
+@@ -211,6 +211,12 @@ const char *get_system_type(void)
+   return ath79_sys_type;
+ }
+ 
++int get_c0_perfcount_int(void)
++{
++  return ATH79_MISC_IRQ(5);
++}
++EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
++
+ unsigned int get_c0_compare_int(void)
+ {
+   return CP0_LEGACY_COMPARE_IRQ;
+diff --git a/arch/mips/mm/mmap.c b/arch/mips/mm/mmap.c
+index 2f616ebeb7e0..7755a1fad05a 100644
+--- a/arch/mips/mm/mmap.c
 b/arch/mips/mm/mmap.c
+@@ -203,6 +203,11 @@ unsigned long arch_randomize_brk(struct mm_struct *mm)
+ 
+ int __virt_addr_valid(const volatile void *kaddr)
+ {
++  unsigned long vaddr = (unsigned long)vaddr;
++
++  if ((vaddr < PAGE_OFFSET) || (vaddr >= MAP_BASE))
++  return 0;
++
+   return pfn_valid(PFN_DOWN(virt_to_phys(kaddr)));
+ }
+ EXPORT_SYMBOL_GPL(__virt_addr_valid);
+diff --git a/arch/mips/pistachio/Platform b/arch/mips/pistachio/Platform
+index d80cd612df1f..c3592b374ad2 100644
+--- a/arch/mips/pistachio/Platform
 b/arch/mips/pistachio/Platform
+@@ -6,3 +6,4 @@ cflags-$(CONFIG_MACH_PISTACHIO)+=  
\
+   -I$(srctree)/arch/mips/include/asm/mach-pistachio
+ load-$(CONFIG_MACH_PISTACHIO) += 0x8040
+ zload-$(CONFIG_MACH_PISTACHIO)+= 0x8100
++all-$(CONFIG_MACH_PISTACHIO)  := uImage.gz
+diff --git a/arch/powerpc/kernel/nvram_64.c b/arch/powerpc/kernel/nvram_64.c
+index 22e9d281324d..e7d4ce6964ae 100644
+--- a/arch/powerpc/kernel/nvram_64.c
 b/arch/powerpc/kernel/nvram_64.c
+@@ -563,8 +563,6 @@ static int nvram_pstore_init(void)
+   nvram_pstore_info.buf = oops_data;
+   nvram_pstore_info.bufsize = oops_data_sz;
+ 
+-  spin_lock_init(_pstore_info.buf_lock);
+-
+   rc = pstore_register(_pstore_info);
+   if (rc && (rc != -EPERM))
+   /* Print error only when pstore.backend == nvram */
+diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c
+index 72af23bacbb5..a6e3c7022245 100644
+--- a/arch/s390/mm/fault.c
 b/arch/s390/mm/fault.c
+@@ -107,7 +107,6 @@ void bust_spinlocks(int yes)
+ 
+ /*
+  * Find out which address space caused the exception.
+- * Access register mode is impossible, ignore space == 3.
+  */
+ static inline enum fault_type get_fault_type(struct pt_regs *regs)
+ {
+@@ -132,6 +131,10 @@ static inline enum fault_type get_fault_type(struct 
pt_regs *regs)
+   }
+   return VDSO_FAULT;
+   }
++  if (trans_exc_code == 1) {
++  /* access register mode, not used in the kernel */
++  return USER_FAULT;
++  }
+   /* home space exception -> access via kernel ASCE */
+   return KERNEL_FAULT;
+ }
+diff --git a/arch/x86/lib/insn-eval.c b/arch/x86/lib/insn-eval.c
+index 9119d8e41f1f..87dcba101e56 100644
+--- a/arch/x86/lib/insn-eval.c
 b/arch/x86/lib/insn-eval.c
+@@ -555,7 +555,8 @@ static int get_reg_offset_16(struct insn *insn, struct 
pt_regs *regs,
+ }
+ 
+ /**
+- * get_desc() - Obtain pointer to a segment descriptor
++ * get_desc() - Obtain contents of a segment descriptor
++ * @out:  Segment descriptor contents on success
+  * @sel:  Segment selector
+  *
+  * Given a segment selector, obtain a pointer to the segment descriptor.
+@@ -563,18 +564,18 @@ static int get_reg_offset_16(struct insn *insn, struct 
pt_regs *regs,
+  *
+  * Returns:
+  *
+- * Pointer to segment descriptor 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-06-10 Thread Mike Pagano
commit: 7918237fb06dafdefd25924598ff1ea91f6dc34a
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Jun 10 19:41:47 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Jun 10 19:41:47 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7918237f

Bluetooth: Check key sizes only when Secure Simple Pairing is enabled.

See bug #686758.

Signed-off-by: Mike Pagano  gentoo.org>

 _README|  4 +++
 ...zes-only-if-Secure-Simple-Pairing-enabled.patch | 37 ++
 2 files changed, 41 insertions(+)

diff --git a/_README b/_README
index 3161071..513d8bc 100644
--- a/_README
+++ b/_README
@@ -247,6 +247,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:  2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
+From:   
https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-mar...@holtmann.org/raw
+Desc:   Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. 
See bug #686758
+
 Patch:  2500_usb-storage-Disable-UAS-on-JMicron-SATA-enclosure.patch
 From:   https://bugzilla.redhat.com/show_bug.cgi?id=1260207#c5
 Desc:   Add UAS disable quirk. See bug #640082.

diff --git 
a/2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch 
b/2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
new file mode 100644
index 000..394ad48
--- /dev/null
+++ b/2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
@@ -0,0 +1,37 @@
+The encryption is only mandatory to be enforced when both sides are using
+Secure Simple Pairing and this means the key size check makes only sense
+in that case.
+
+On legacy Bluetooth 2.0 and earlier devices like mice the encryption was
+optional and thus causing an issue if the key size check is not bound to
+using Secure Simple Pairing.
+
+Fixes: d5bb334a8e17 ("Bluetooth: Align minimum encryption key size for LE and 
BR/EDR connections")
+Signed-off-by: Marcel Holtmann 
+Cc: sta...@vger.kernel.org
+---
+ net/bluetooth/hci_conn.c | 9 +++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
+index 3cf0764d5793..7516cdde3373 100644
+--- a/net/bluetooth/hci_conn.c
 b/net/bluetooth/hci_conn.c
+@@ -1272,8 +1272,13 @@ int hci_conn_check_link_mode(struct hci_conn *conn)
+   return 0;
+   }
+ 
+-  if (hci_conn_ssp_enabled(conn) &&
+-  !test_bit(HCI_CONN_ENCRYPT, >flags))
++  /* If Secure Simple Pairing is not enabled, then legacy connection
++   * setup is used and no encryption or key sizes can be enforced.
++   */
++  if (!hci_conn_ssp_enabled(conn))
++  return 1;
++
++  if (!test_bit(HCI_CONN_ENCRYPT, >flags))
+   return 0;
+ 
+   /* The minimum encryption key size needs to be enforced by the
+-- 
+2.20.1



[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-06-09 Thread Mike Pagano
commit: 9d13fe3ac136f1b72c463528070917e55e241232
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Jun  9 16:18:41 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Jun  9 16:18:41 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9d13fe3a

Linux patch 4.19.49

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1048_linux-4.19.49.patch | 3152 ++
 2 files changed, 3156 insertions(+)

diff --git a/_README b/_README
index 7740baf..3161071 100644
--- a/_README
+++ b/_README
@@ -235,6 +235,10 @@ Patch:  1047_linux-4.19.48.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.19.48
 
+Patch:  1048_linux-4.19.49.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.19.49
+
 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/1048_linux-4.19.49.patch b/1048_linux-4.19.49.patch
new file mode 100644
index 000..9287f9d
--- /dev/null
+++ b/1048_linux-4.19.49.patch
@@ -0,0 +1,3152 @@
+diff --git a/Documentation/conf.py b/Documentation/conf.py
+index b691af4831fa..22c1a6d96f9e 100644
+--- a/Documentation/conf.py
 b/Documentation/conf.py
+@@ -37,7 +37,7 @@ needs_sphinx = '1.3'
+ extensions = ['kerneldoc', 'rstFlatTable', 'kernel_include', 'cdomain', 
'kfigure', 'sphinx.ext.ifconfig']
+ 
+ # The name of the math extension changed on Sphinx 1.4
+-if major == 1 and minor > 3:
++if (major == 1 and minor > 3) or (major > 1):
+ extensions.append("sphinx.ext.imgmath")
+ else:
+ extensions.append("sphinx.ext.pngmath")
+diff --git a/Documentation/sphinx/kerneldoc.py 
b/Documentation/sphinx/kerneldoc.py
+index 9d0a7f08f93b..1159405cb920 100644
+--- a/Documentation/sphinx/kerneldoc.py
 b/Documentation/sphinx/kerneldoc.py
+@@ -37,7 +37,19 @@ import glob
+ from docutils import nodes, statemachine
+ from docutils.statemachine import ViewList
+ from docutils.parsers.rst import directives, Directive
+-from sphinx.ext.autodoc import AutodocReporter
++
++#
++# AutodocReporter is only good up to Sphinx 1.7
++#
++import sphinx
++
++Use_SSI = sphinx.__version__[:3] >= '1.7'
++if Use_SSI:
++from sphinx.util.docutils import switch_source_input
++else:
++from sphinx.ext.autodoc import AutodocReporter
++
++import kernellog
+ 
+ __version__  = '1.0'
+ 
+@@ -90,7 +102,8 @@ class KernelDocDirective(Directive):
+ cmd += [filename]
+ 
+ try:
+-env.app.verbose('calling kernel-doc \'%s\'' % (" ".join(cmd)))
++kernellog.verbose(env.app,
++  'calling kernel-doc \'%s\'' % (" ".join(cmd)))
+ 
+ p = subprocess.Popen(cmd, stdout=subprocess.PIPE, 
stderr=subprocess.PIPE)
+ out, err = p.communicate()
+@@ -100,7 +113,8 @@ class KernelDocDirective(Directive):
+ if p.returncode != 0:
+ sys.stderr.write(err)
+ 
+-env.app.warn('kernel-doc \'%s\' failed with return code %d' % 
(" ".join(cmd), p.returncode))
++kernellog.warn(env.app,
++   'kernel-doc \'%s\' failed with return code %d' 
% (" ".join(cmd), p.returncode))
+ return [nodes.error(None, nodes.paragraph(text = "kernel-doc 
missing"))]
+ elif env.config.kerneldoc_verbosity > 0:
+ sys.stderr.write(err)
+@@ -121,20 +135,28 @@ class KernelDocDirective(Directive):
+ lineoffset += 1
+ 
+ node = nodes.section()
+-buf = self.state.memo.title_styles, 
self.state.memo.section_level, self.state.memo.reporter
++self.do_parse(result, node)
++
++return node.children
++
++except Exception as e:  # pylint: disable=W0703
++kernellog.warn(env.app, 'kernel-doc \'%s\' processing failed 
with: %s' %
++   (" ".join(cmd), str(e)))
++return [nodes.error(None, nodes.paragraph(text = "kernel-doc 
missing"))]
++
++def do_parse(self, result, node):
++if Use_SSI:
++with switch_source_input(self.state, result):
++self.state.nested_parse(result, 0, node, match_titles=1)
++else:
++save = self.state.memo.title_styles, 
self.state.memo.section_level, self.state.memo.reporter
+ self.state.memo.reporter = AutodocReporter(result, 
self.state.memo.reporter)
+ self.state.memo.title_styles, self.state.memo.section_level = [], 0
+ try:
+ self.state.nested_parse(result, 0, node, match_titles=1)
+ finally:
+-self.state.memo.title_styles, self.state.memo.section_level, 
self.state.memo.reporter = buf
++self.state.memo.title_styles, self.state.memo.section_level, 
self.state.memo.reporter = save
+ 
+-return node.children
+-
+-except Exception as e:  # pylint: 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-06-04 Thread Mike Pagano
commit: 1f5bd0eab3b265afe827baee5f0992f7acfb80a7
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Jun  4 11:11:36 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Jun  4 11:11:36 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=1f5bd0ea

Linux patch 4.19.48

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1047_linux-4.19.48.patch | 2086 ++
 2 files changed, 2090 insertions(+)

diff --git a/_README b/_README
index 0c0cd1a..7740baf 100644
--- a/_README
+++ b/_README
@@ -231,6 +231,10 @@ Patch:  1046_linux-4.19.47.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.19.47
 
+Patch:  1047_linux-4.19.48.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.19.48
+
 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/1047_linux-4.19.48.patch b/1047_linux-4.19.48.patch
new file mode 100644
index 000..ad12e2e
--- /dev/null
+++ b/1047_linux-4.19.48.patch
@@ -0,0 +1,2086 @@
+diff --git a/Makefile b/Makefile
+index b3ba28ff73d5..42529a87f3b4 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 47
++SUBLEVEL = 48
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+@@ -508,13 +508,6 @@ export RETPOLINE_VDSO_CFLAGS
+ KBUILD_CFLAGS += $(call cc-option,-fno-PIE)
+ KBUILD_AFLAGS += $(call cc-option,-fno-PIE)
+ 
+-# check for 'asm goto'
+-ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) 
$(KBUILD_CFLAGS)), y)
+-  CC_HAVE_ASM_GOTO := 1
+-  KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
+-  KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
+-endif
+-
+ # The expansion should be delayed until arch/$(SRCARCH)/Makefile is included.
+ # Some architectures define CROSS_COMPILE in arch/$(SRCARCH)/Makefile.
+ # CC_VERSION_TEXT is referenced from Kconfig (so it needs export),
+diff --git a/arch/Kconfig b/arch/Kconfig
+index 6801123932a5..a336548487e6 100644
+--- a/arch/Kconfig
 b/arch/Kconfig
+@@ -71,6 +71,7 @@ config KPROBES
+ config JUMP_LABEL
+bool "Optimize very unlikely/likely branches"
+depends on HAVE_ARCH_JUMP_LABEL
++   depends on CC_HAS_ASM_GOTO
+help
+  This option enables a transparent branch optimization that
+makes certain almost-always-true or almost-always-false branch
+diff --git a/arch/arm/kernel/jump_label.c b/arch/arm/kernel/jump_label.c
+index 90bce3d9928e..303b3ab87f7e 100644
+--- a/arch/arm/kernel/jump_label.c
 b/arch/arm/kernel/jump_label.c
+@@ -4,8 +4,6 @@
+ #include 
+ #include 
+ 
+-#ifdef HAVE_JUMP_LABEL
+-
+ static void __arch_jump_label_transform(struct jump_entry *entry,
+   enum jump_label_type type,
+   bool is_static)
+@@ -35,5 +33,3 @@ void arch_jump_label_transform_static(struct jump_entry 
*entry,
+ {
+   __arch_jump_label_transform(entry, type, true);
+ }
+-
+-#endif
+diff --git a/arch/arm64/kernel/jump_label.c b/arch/arm64/kernel/jump_label.c
+index e0756416e567..b90754aebd12 100644
+--- a/arch/arm64/kernel/jump_label.c
 b/arch/arm64/kernel/jump_label.c
+@@ -20,8 +20,6 @@
+ #include 
+ #include 
+ 
+-#ifdef HAVE_JUMP_LABEL
+-
+ void arch_jump_label_transform(struct jump_entry *entry,
+  enum jump_label_type type)
+ {
+@@ -49,5 +47,3 @@ void arch_jump_label_transform_static(struct jump_entry 
*entry,
+* NOP needs to be replaced by a branch.
+*/
+ }
+-
+-#endif/* HAVE_JUMP_LABEL */
+diff --git a/arch/mips/kernel/jump_label.c b/arch/mips/kernel/jump_label.c
+index 32e3168316cd..ab943927f97a 100644
+--- a/arch/mips/kernel/jump_label.c
 b/arch/mips/kernel/jump_label.c
+@@ -16,8 +16,6 @@
+ #include 
+ #include 
+ 
+-#ifdef HAVE_JUMP_LABEL
+-
+ /*
+  * Define parameters for the standard MIPS and the microMIPS jump
+  * instruction encoding respectively:
+@@ -70,5 +68,3 @@ void arch_jump_label_transform(struct jump_entry *e,
+ 
+   mutex_unlock(_mutex);
+ }
+-
+-#endif /* HAVE_JUMP_LABEL */
+diff --git a/arch/powerpc/include/asm/asm-prototypes.h 
b/arch/powerpc/include/asm/asm-prototypes.h
+index 1f4691ce4126..e398173ae67d 100644
+--- a/arch/powerpc/include/asm/asm-prototypes.h
 b/arch/powerpc/include/asm/asm-prototypes.h
+@@ -38,7 +38,7 @@ extern struct static_key hcall_tracepoint_key;
+ void __trace_hcall_entry(unsigned long opcode, unsigned long *args);
+ void __trace_hcall_exit(long opcode, long retval, unsigned long *retbuf);
+ /* OPAL tracing */
+-#ifdef HAVE_JUMP_LABEL
++#ifdef CONFIG_JUMP_LABEL
+ extern struct static_key opal_tracepoint_key;
+ #endif
+ 
+diff --git a/arch/powerpc/kernel/jump_label.c 
b/arch/powerpc/kernel/jump_label.c
+index 6472472093d0..0080c5fbd225 100644
+--- a/arch/powerpc/kernel/jump_label.c
 b/arch/powerpc/kernel/jump_label.c
+@@ -11,7 +11,6 @@
+ 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-05-26 Thread Mike Pagano
commit: 11fcf185af6a32a517ff7a82d5f19ac144ed85c5
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun May 26 17:09:43 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun May 26 17:09:43 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=11fcf185

Linux patch 4.19.46

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1045_linux-4.19.46.patch | 4313 ++
 2 files changed, 4317 insertions(+)

diff --git a/_README b/_README
index f87fede..87c4eaf 100644
--- a/_README
+++ b/_README
@@ -223,6 +223,10 @@ Patch:  1044_linux-4.19.45.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.19.45
 
+Patch:  1045_linux-4.19.46.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.19.46
+
 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/1045_linux-4.19.46.patch b/1045_linux-4.19.46.patch
new file mode 100644
index 000..12e081e
--- /dev/null
+++ b/1045_linux-4.19.46.patch
@@ -0,0 +1,4313 @@
+diff --git a/Documentation/filesystems/porting 
b/Documentation/filesystems/porting
+index 7b7b845c490a..32b5186be412 100644
+--- a/Documentation/filesystems/porting
 b/Documentation/filesystems/porting
+@@ -622,3 +622,8 @@ in your dentry operations instead.
+   alloc_file_clone(file, flags, ops) does not affect any caller's 
references.
+   On success you get a new struct file sharing the mount/dentry with the
+   original, on failure - ERR_PTR().
++--
++[mandatory]
++  DCACHE_RCUACCESS is gone; having an RCU delay on dentry freeing is the
++  default.  DCACHE_NORCU opts out, and only d_alloc_pseudo() has any
++  business doing so.
+diff --git a/Makefile b/Makefile
+index b21dd3866b63..5383dd317d59 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 45
++SUBLEVEL = 46
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/mips/kernel/perf_event_mipsxx.c 
b/arch/mips/kernel/perf_event_mipsxx.c
+index 413863508f6f..d67fb64e908c 100644
+--- a/arch/mips/kernel/perf_event_mipsxx.c
 b/arch/mips/kernel/perf_event_mipsxx.c
+@@ -64,17 +64,11 @@ struct mips_perf_event {
+   #define CNTR_EVEN   0x
+   #define CNTR_ODD0x
+   #define CNTR_ALL0x
+-#ifdef CONFIG_MIPS_MT_SMP
+   enum {
+   T  = 0,
+   V  = 1,
+   P  = 2,
+   } range;
+-#else
+-  #define T
+-  #define V
+-  #define P
+-#endif
+ };
+ 
+ static struct mips_perf_event raw_event;
+@@ -325,9 +319,7 @@ static void mipsxx_pmu_enable_event(struct hw_perf_event 
*evt, int idx)
+ {
+   struct perf_event *event = container_of(evt, struct perf_event, hw);
+   struct cpu_hw_events *cpuc = this_cpu_ptr(_hw_events);
+-#ifdef CONFIG_MIPS_MT_SMP
+   unsigned int range = evt->event_base >> 24;
+-#endif /* CONFIG_MIPS_MT_SMP */
+ 
+   WARN_ON(idx < 0 || idx >= mipspmu.num_counters);
+ 
+@@ -336,21 +328,15 @@ static void mipsxx_pmu_enable_event(struct hw_perf_event 
*evt, int idx)
+   /* Make sure interrupt enabled. */
+   MIPS_PERFCTRL_IE;
+ 
+-#ifdef CONFIG_CPU_BMIPS5000
+-  {
++  if (IS_ENABLED(CONFIG_CPU_BMIPS5000)) {
+   /* enable the counter for the calling thread */
+   cpuc->saved_ctrl[idx] |=
+   (1 << (12 + vpe_id())) | BRCM_PERFCTRL_TC;
+-  }
+-#else
+-#ifdef CONFIG_MIPS_MT_SMP
+-  if (range > V) {
++  } else if (IS_ENABLED(CONFIG_MIPS_MT_SMP) && range > V) {
+   /* The counter is processor wide. Set it up to count all TCs. */
+   pr_debug("Enabling perf counter for all TCs\n");
+   cpuc->saved_ctrl[idx] |= M_TC_EN_ALL;
+-  } else
+-#endif /* CONFIG_MIPS_MT_SMP */
+-  {
++  } else {
+   unsigned int cpu, ctrl;
+ 
+   /*
+@@ -365,7 +351,6 @@ static void mipsxx_pmu_enable_event(struct hw_perf_event 
*evt, int idx)
+   cpuc->saved_ctrl[idx] |= ctrl;
+   pr_debug("Enabling perf counter for CPU%d\n", cpu);
+   }
+-#endif /* CONFIG_CPU_BMIPS5000 */
+   /*
+* We do not actually let the counter run. Leave it until start().
+*/
+diff --git a/arch/parisc/boot/compressed/head.S 
b/arch/parisc/boot/compressed/head.S
+index 5aba20fa48aa..e8b798fd0cf0 100644
+--- a/arch/parisc/boot/compressed/head.S
 b/arch/parisc/boot/compressed/head.S
+@@ -22,7 +22,7 @@
+   __HEAD
+ 
+ ENTRY(startup)
+-   .level LEVEL
++   .level PA_ASM_LEVEL
+ 
+ #define PSW_W_SM  0x200
+ #define PSW_W_BIT   36
+@@ -63,7 +63,7 @@ $bss_loop:
+   load32  BOOTADDR(decompress_kernel),%r3
+ 
+ #ifdef CONFIG_64BIT
+-  .level LEVEL
++  .level PA_ASM_LEVEL
+   ssm PSW_W_SM, %r0   /* set W-bit 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-05-22 Thread Mike Pagano
commit: 83105289af6c14d9d1d9d80b3aa2bbdbf01edd7e
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May 22 11:02:15 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May 22 11:02:15 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=83105289

Linux patch 4.19.45

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1044_linux-4.19.45.patch | 4188 ++
 2 files changed, 4192 insertions(+)

diff --git a/_README b/_README
index f799222..f87fede 100644
--- a/_README
+++ b/_README
@@ -219,6 +219,10 @@ Patch:  1043_linux-4.19.44.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.19.44
 
+Patch:  1044_linux-4.19.45.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.19.45
+
 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/1044_linux-4.19.45.patch b/1044_linux-4.19.45.patch
new file mode 100644
index 000..f52ef78
--- /dev/null
+++ b/1044_linux-4.19.45.patch
@@ -0,0 +1,4188 @@
+diff --git a/Documentation/x86/mds.rst b/Documentation/x86/mds.rst
+index 534e9baa4e1d..5d4330be200f 100644
+--- a/Documentation/x86/mds.rst
 b/Documentation/x86/mds.rst
+@@ -142,45 +142,13 @@ Mitigation points
+mds_user_clear.
+ 
+The mitigation is invoked in prepare_exit_to_usermode() which covers
+-   most of the kernel to user space transitions. There are a few exceptions
+-   which are not invoking prepare_exit_to_usermode() on return to user
+-   space. These exceptions use the paranoid exit code.
++   all but one of the kernel to user space transitions.  The exception
++   is when we return from a Non Maskable Interrupt (NMI), which is
++   handled directly in do_nmi().
+ 
+-   - Non Maskable Interrupt (NMI):
+-
+- Access to sensible data like keys, credentials in the NMI context is
+- mostly theoretical: The CPU can do prefetching or execute a
+- misspeculated code path and thereby fetching data which might end up
+- leaking through a buffer.
+-
+- But for mounting other attacks the kernel stack address of the task is
+- already valuable information. So in full mitigation mode, the NMI is
+- mitigated on the return from do_nmi() to provide almost complete
+- coverage.
+-
+-   - Double fault (#DF):
+-
+- A double fault is usually fatal, but the ESPFIX workaround, which can
+- be triggered from user space through modify_ldt(2) is a recoverable
+- double fault. #DF uses the paranoid exit path, so explicit mitigation
+- in the double fault handler is required.
+-
+-   - Machine Check Exception (#MC):
+-
+- Another corner case is a #MC which hits between the CPU buffer clear
+- invocation and the actual return to user. As this still is in kernel
+- space it takes the paranoid exit path which does not clear the CPU
+- buffers. So the #MC handler repopulates the buffers to some
+- extent. Machine checks are not reliably controllable and the window is
+- extremly small so mitigation would just tick a checkbox that this
+- theoretical corner case is covered. To keep the amount of special
+- cases small, ignore #MC.
+-
+-   - Debug Exception (#DB):
+-
+- This takes the paranoid exit path only when the INT1 breakpoint is in
+- kernel space. #DB on a user space address takes the regular exit path,
+- so no extra mitigation required.
++   (The reason that NMI is special is that prepare_exit_to_usermode() can
++enable IRQs.  In NMI context, NMIs are blocked, and we don't want to
++enable IRQs with NMIs blocked.)
+ 
+ 
+ 2. C-State transition
+diff --git a/Makefile b/Makefile
+index dd11f5a83d2f..b21dd3866b63 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 44
++SUBLEVEL = 45
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+@@ -623,7 +623,7 @@ ifeq ($(may-sync-config),1)
+ # Read in dependencies to all Kconfig* files, make sure to run syncconfig if
+ # changes are detected. This should be included after arch/$(SRCARCH)/Makefile
+ # because some architectures define CROSS_COMPILE there.
+--include include/config/auto.conf.cmd
++include include/config/auto.conf.cmd
+ 
+ # To avoid any implicit rule to kick in, define an empty command
+ $(KCONFIG_CONFIG): ;
+diff --git a/arch/arm/boot/dts/exynos5260.dtsi 
b/arch/arm/boot/dts/exynos5260.dtsi
+index 55167850619c..33a085ffc447 100644
+--- a/arch/arm/boot/dts/exynos5260.dtsi
 b/arch/arm/boot/dts/exynos5260.dtsi
+@@ -223,7 +223,7 @@
+   wakeup-interrupt-controller {
+   compatible = "samsung,exynos4210-wakeup-eint";
+   interrupt-parent = <>;
+-  interrupts = ;
++  interrupts = ;
+   };
+   };

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-05-16 Thread Mike Pagano
commit: 3a75bc17ef5cdd8ac3cd3a694ffed2dcb8370e13
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu May 16 23:03:28 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu May 16 23:03:28 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3a75bc17

Linux patch 4.19.44

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1043_linux-4.19.44.patch | 3766 ++
 2 files changed, 3770 insertions(+)

diff --git a/_README b/_README
index 0fb9c26..f799222 100644
--- a/_README
+++ b/_README
@@ -215,6 +215,10 @@ Patch:  1042_linux-4.19.43.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.19.43
 
+Patch:  1043_linux-4.19.44.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.19.44
+
 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/1043_linux-4.19.44.patch b/1043_linux-4.19.44.patch
new file mode 100644
index 000..fbdd5f6
--- /dev/null
+++ b/1043_linux-4.19.44.patch
@@ -0,0 +1,3766 @@
+diff --git a/Makefile b/Makefile
+index be894b3a97d5..dd11f5a83d2f 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 43
++SUBLEVEL = 44
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/kernel/head-nommu.S b/arch/arm/kernel/head-nommu.S
+index ec29de250076..cab89479d15e 100644
+--- a/arch/arm/kernel/head-nommu.S
 b/arch/arm/kernel/head-nommu.S
+@@ -133,9 +133,9 @@ __secondary_data:
+  */
+   .text
+ __after_proc_init:
+-#ifdef CONFIG_ARM_MPU
+ M_CLASS(movw  r12, #:lower16:BASEADDR_V7M_SCB)
+ M_CLASS(movt  r12, #:upper16:BASEADDR_V7M_SCB)
++#ifdef CONFIG_ARM_MPU
+ M_CLASS(ldr   r3, [r12, 0x50])
+ AR_CLASS(mrc  p15, 0, r3, c0, c1, 4)  @ Read ID_MMFR0
+   and r3, r3, #(MMFR0_PMSA)   @ PMSA field
+diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c
+index 4c7a93f4039a..7c0b2e6cdfbd 100644
+--- a/arch/mips/ath79/setup.c
 b/arch/mips/ath79/setup.c
+@@ -211,12 +211,6 @@ const char *get_system_type(void)
+   return ath79_sys_type;
+ }
+ 
+-int get_c0_perfcount_int(void)
+-{
+-  return ATH79_MISC_IRQ(5);
+-}
+-EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
+-
+ unsigned int get_c0_compare_int(void)
+ {
+   return CP0_LEGACY_COMPARE_IRQ;
+diff --git a/arch/powerpc/include/asm/book3s/64/pgalloc.h 
b/arch/powerpc/include/asm/book3s/64/pgalloc.h
+index 391ed2c3b697..f9019b579903 100644
+--- a/arch/powerpc/include/asm/book3s/64/pgalloc.h
 b/arch/powerpc/include/asm/book3s/64/pgalloc.h
+@@ -83,6 +83,9 @@ static inline pgd_t *pgd_alloc(struct mm_struct *mm)
+ 
+   pgd = kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE),
+  pgtable_gfp_flags(mm, GFP_KERNEL));
++  if (unlikely(!pgd))
++  return pgd;
++
+   /*
+* Don't scan the PGD for pointers, it contains references to PUDs but
+* those references are not full pointers and so can't be recognised by
+diff --git a/arch/powerpc/include/asm/reg_booke.h 
b/arch/powerpc/include/asm/reg_booke.h
+index eb2a33d5df26..e382bd6ede84 100644
+--- a/arch/powerpc/include/asm/reg_booke.h
 b/arch/powerpc/include/asm/reg_booke.h
+@@ -41,7 +41,7 @@
+ #if defined(CONFIG_PPC_BOOK3E_64)
+ #define MSR_64BIT MSR_CM
+ 
+-#define MSR_  (MSR_ME | MSR_CE)
++#define MSR_  (MSR_ME | MSR_RI | MSR_CE)
+ #define MSR_KERNEL(MSR_ | MSR_64BIT)
+ #define MSR_USER32(MSR_ | MSR_PR | MSR_EE)
+ #define MSR_USER64(MSR_USER32 | MSR_64BIT)
+diff --git a/arch/powerpc/kernel/idle_book3s.S 
b/arch/powerpc/kernel/idle_book3s.S
+index 7f5ac2e8581b..36178000a2f2 100644
+--- a/arch/powerpc/kernel/idle_book3s.S
 b/arch/powerpc/kernel/idle_book3s.S
+@@ -170,6 +170,9 @@ core_idle_lock_held:
+   bne-core_idle_lock_held
+   blr
+ 
++/* Reuse an unused pt_regs slot for IAMR */
++#define PNV_POWERSAVE_IAMR_DAR
++
+ /*
+  * Pass requested state in r3:
+  *r3 - PNV_THREAD_NAP/SLEEP/WINKLE in POWER8
+@@ -200,6 +203,12 @@ pnv_powersave_common:
+   /* Continue saving state */
+   SAVE_GPR(2, r1)
+   SAVE_NVGPRS(r1)
++
++BEGIN_FTR_SECTION
++  mfspr   r5, SPRN_IAMR
++  std r5, PNV_POWERSAVE_IAMR(r1)
++END_FTR_SECTION_IFSET(CPU_FTR_ARCH_207S)
++
+   mfcrr5
+   std r5,_CCR(r1)
+   std r1,PACAR1(r13)
+@@ -924,6 +933,17 @@ BEGIN_FTR_SECTION
+ END_FTR_SECTION_IFSET(CPU_FTR_HVMODE)
+   REST_NVGPRS(r1)
+   REST_GPR(2, r1)
++
++BEGIN_FTR_SECTION
++  /* IAMR was saved in pnv_powersave_common() */
++  ld  r5, PNV_POWERSAVE_IAMR(r1)
++  mtspr   SPRN_IAMR, r5
++  /*
++   * We don't need an isync here because the upcoming mtmsrd is
++   * execution synchronizing.
++   */
++END_FTR_SECTION_IFSET(CPU_FTR_ARCH_207S)
++
+   ld  r4,PACAKMSR(r13)
+   ld  

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-05-14 Thread Mike Pagano
commit: e4f15aa89a4f85d797b8b3791b558ccd42bda503
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue May 14 21:00:26 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue May 14 21:00:26 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e4f15aa8

Linux patch 4.19.43

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1042_linux-4.19.43.patch | 3611 ++
 2 files changed, 3615 insertions(+)

diff --git a/_README b/_README
index 9a195d3..0fb9c26 100644
--- a/_README
+++ b/_README
@@ -211,6 +211,10 @@ Patch:  1041_linux-4.19.42.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.19.42
 
+Patch:  1042_linux-4.19.43.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.19.43
+
 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/1042_linux-4.19.43.patch b/1042_linux-4.19.43.patch
new file mode 100644
index 000..e914c0a
--- /dev/null
+++ b/1042_linux-4.19.43.patch
@@ -0,0 +1,3611 @@
+diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu 
b/Documentation/ABI/testing/sysfs-devices-system-cpu
+index 73318225a368..8718d4ad227b 100644
+--- a/Documentation/ABI/testing/sysfs-devices-system-cpu
 b/Documentation/ABI/testing/sysfs-devices-system-cpu
+@@ -477,6 +477,7 @@ What:  /sys/devices/system/cpu/vulnerabilities
+   /sys/devices/system/cpu/vulnerabilities/spectre_v2
+   /sys/devices/system/cpu/vulnerabilities/spec_store_bypass
+   /sys/devices/system/cpu/vulnerabilities/l1tf
++  /sys/devices/system/cpu/vulnerabilities/mds
+ Date: January 2018
+ Contact:  Linux kernel mailing list 
+ Description:  Information about CPU vulnerabilities
+@@ -489,8 +490,7 @@ Description:   Information about CPU vulnerabilities
+   "Vulnerable"  CPU is affected and no mitigation in effect
+   "Mitigation: $M"  CPU is affected and mitigation $M is in effect
+ 
+-  Details about the l1tf file can be found in
+-  Documentation/admin-guide/l1tf.rst
++  See also: Documentation/admin-guide/hw-vuln/index.rst
+ 
+ What: /sys/devices/system/cpu/smt
+   /sys/devices/system/cpu/smt/active
+diff --git a/Documentation/admin-guide/hw-vuln/index.rst 
b/Documentation/admin-guide/hw-vuln/index.rst
+new file mode 100644
+index ..ffc064c1ec68
+--- /dev/null
 b/Documentation/admin-guide/hw-vuln/index.rst
+@@ -0,0 +1,13 @@
++
++Hardware vulnerabilities
++
++
++This section describes CPU vulnerabilities and provides an overview of the
++possible mitigations along with guidance for selecting mitigations if they
++are configurable at compile, boot or run time.
++
++.. toctree::
++   :maxdepth: 1
++
++   l1tf
++   mds
+diff --git a/Documentation/admin-guide/hw-vuln/l1tf.rst 
b/Documentation/admin-guide/hw-vuln/l1tf.rst
+new file mode 100644
+index ..31653a9f0e1b
+--- /dev/null
 b/Documentation/admin-guide/hw-vuln/l1tf.rst
+@@ -0,0 +1,615 @@
++L1TF - L1 Terminal Fault
++
++
++L1 Terminal Fault is a hardware vulnerability which allows unprivileged
++speculative access to data which is available in the Level 1 Data Cache
++when the page table entry controlling the virtual address, which is used
++for the access, has the Present bit cleared or other reserved bits set.
++
++Affected processors
++---
++
++This vulnerability affects a wide range of Intel processors. The
++vulnerability is not present on:
++
++   - Processors from AMD, Centaur and other non Intel vendors
++
++   - Older processor models, where the CPU family is < 6
++
++   - A range of Intel ATOM processors (Cedarview, Cloverview, Lincroft,
++ Penwell, Pineview, Silvermont, Airmont, Merrifield)
++
++   - The Intel XEON PHI family
++
++   - Intel processors which have the ARCH_CAP_RDCL_NO bit set in the
++ IA32_ARCH_CAPABILITIES MSR. If the bit is set the CPU is not affected
++ by the Meltdown vulnerability either. These CPUs should become
++ available by end of 2018.
++
++Whether a processor is affected or not can be read out from the L1TF
++vulnerability file in sysfs. See :ref:`l1tf_sys_info`.
++
++Related CVEs
++
++
++The following CVE entries are related to the L1TF vulnerability:
++
++   =  =  ==
++   CVE-2018-3615  L1 Terminal Fault  SGX related aspects
++   CVE-2018-3620  L1 Terminal Fault  OS, SMM related aspects
++   CVE-2018-3646  L1 Terminal Fault  Virtualization related aspects
++   =  =  ==
++
++Problem
++---
++
++If an instruction accesses a virtual address for which the relevant page
++table entry (PTE) has the 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-05-08 Thread Mike Pagano
commit: af12f60dec7a14cd24cf8f9f064b310ac3a90b68
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May  8 10:06:00 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May  8 10:06:00 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=af12f60d

Linux patch 4.19.41

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1040_linux-4.19.41.patch | 3563 ++
 2 files changed, 3567 insertions(+)

diff --git a/_README b/_README
index 27107b1..ba19d17 100644
--- a/_README
+++ b/_README
@@ -203,6 +203,10 @@ Patch:  1039_linux-4.19.40.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.19.40
 
+Patch:  1040_linux-4.19.41.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.19.41
+
 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/1040_linux-4.19.41.patch b/1040_linux-4.19.41.patch
new file mode 100644
index 000..6dabf37
--- /dev/null
+++ b/1040_linux-4.19.41.patch
@@ -0,0 +1,3563 @@
+diff --git a/Documentation/driver-api/usb/power-management.rst 
b/Documentation/driver-api/usb/power-management.rst
+index 79beb807996b..4a74cf6f2797 100644
+--- a/Documentation/driver-api/usb/power-management.rst
 b/Documentation/driver-api/usb/power-management.rst
+@@ -370,11 +370,15 @@ autosuspend the interface's device.  When the usage 
counter is = 0
+ then the interface is considered to be idle, and the kernel may
+ autosuspend the device.
+ 
+-Drivers need not be concerned about balancing changes to the usage
+-counter; the USB core will undo any remaining "get"s when a driver
+-is unbound from its interface.  As a corollary, drivers must not call
+-any of the ``usb_autopm_*`` functions after their ``disconnect``
+-routine has returned.
++Drivers must be careful to balance their overall changes to the usage
++counter.  Unbalanced "get"s will remain in effect when a driver is
++unbound from its interface, preventing the device from going into
++runtime suspend should the interface be bound to a driver again.  On
++the other hand, drivers are allowed to achieve this balance by calling
++the ``usb_autopm_*`` functions even after their ``disconnect`` routine
++has returned -- say from within a work-queue routine -- provided they
++retain an active reference to the interface (via ``usb_get_intf`` and
++``usb_put_intf``).
+ 
+ Drivers using the async routines are responsible for their own
+ synchronization and mutual exclusion.
+diff --git a/Makefile b/Makefile
+index 3822720a8a1c..ba3b8504b689 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 40
++SUBLEVEL = 41
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
+index e6a36a792bae..c706adf4aed2 100644
+--- a/arch/arm/boot/dts/rk3288.dtsi
 b/arch/arm/boot/dts/rk3288.dtsi
+@@ -1261,27 +1261,27 @@
+   gpu_opp_table: gpu-opp-table {
+   compatible = "operating-points-v2";
+ 
+-  opp@1 {
++  opp-1 {
+   opp-hz = /bits/ 64 <1>;
+   opp-microvolt = <95>;
+   };
+-  opp@2 {
++  opp-2 {
+   opp-hz = /bits/ 64 <2>;
+   opp-microvolt = <95>;
+   };
+-  opp@3 {
++  opp-3 {
+   opp-hz = /bits/ 64 <3>;
+   opp-microvolt = <100>;
+   };
+-  opp@4 {
++  opp-4 {
+   opp-hz = /bits/ 64 <4>;
+   opp-microvolt = <110>;
+   };
+-  opp@5 {
++  opp-5 {
+   opp-hz = /bits/ 64 <5>;
+   opp-microvolt = <120>;
+   };
+-  opp@6 {
++  opp-6 {
+   opp-hz = /bits/ 64 <6>;
+   opp-microvolt = <125>;
+   };
+diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
+index 32fae4dbd63b..0921e2c10edf 100644
+--- a/arch/arm/mach-at91/pm.c
 b/arch/arm/mach-at91/pm.c
+@@ -594,13 +594,13 @@ static int __init at91_pm_backup_init(void)
+ 
+   np = of_find_compatible_node(NULL, NULL, "atmel,sama5d2-securam");
+   if (!np)
+-  goto securam_fail;
++  goto securam_fail_no_ref_dev;
+ 
+   pdev = of_find_device_by_node(np);
+   of_node_put(np);
+   if (!pdev) {
+   pr_warn("%s: failed to find securam device!\n", __func__);
+-  goto securam_fail;
++  goto securam_fail_no_ref_dev;
+   }
+ 
+   

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-05-05 Thread Mike Pagano
commit: b058d6c4cd938dce578766f72dd910dabf3db4ab
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun May  5 13:41:52 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun May  5 13:41:52 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b058d6c4

Linux patch 4.19.40

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1039_linux-4.19.40.patch | 1032 ++
 2 files changed, 1036 insertions(+)

diff --git a/_README b/_README
index be92968..27107b1 100644
--- a/_README
+++ b/_README
@@ -199,6 +199,10 @@ Patch:  1038_linux-4.19.39.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.19.39
 
+Patch:  1039_linux-4.19.40.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.19.40
+
 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/1039_linux-4.19.40.patch b/1039_linux-4.19.40.patch
new file mode 100644
index 000..6263b35
--- /dev/null
+++ b/1039_linux-4.19.40.patch
@@ -0,0 +1,1032 @@
+diff --git a/Makefile b/Makefile
+index be1bd297bca9..3822720a8a1c 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 39
++SUBLEVEL = 40
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/x86/include/uapi/asm/kvm.h b/arch/x86/include/uapi/asm/kvm.h
+index fd23d5778ea1..f1645578d9d0 100644
+--- a/arch/x86/include/uapi/asm/kvm.h
 b/arch/x86/include/uapi/asm/kvm.h
+@@ -378,6 +378,7 @@ struct kvm_sync_regs {
+ #define KVM_X86_QUIRK_LINT0_REENABLED (1 << 0)
+ #define KVM_X86_QUIRK_CD_NW_CLEARED   (1 << 1)
+ #define KVM_X86_QUIRK_LAPIC_MMIO_HOLE (1 << 2)
++#define KVM_X86_QUIRK_OUT_7E_INC_RIP  (1 << 3)
+ 
+ #define KVM_STATE_NESTED_GUEST_MODE   0x0001
+ #define KVM_STATE_NESTED_RUN_PENDING  0x0002
+diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
+index 3380a312d186..215339c7d161 100644
+--- a/arch/x86/kvm/vmx.c
 b/arch/x86/kvm/vmx.c
+@@ -14236,7 +14236,7 @@ static int vmx_set_nested_state(struct kvm_vcpu *vcpu,
+   return ret;
+ 
+   /* Empty 'VMXON' state is permitted */
+-  if (kvm_state->size < sizeof(kvm_state) + sizeof(*vmcs12))
++  if (kvm_state->size < sizeof(*kvm_state) + sizeof(*vmcs12))
+   return 0;
+ 
+   if (kvm_state->vmx.vmcs_pa == kvm_state->vmx.vmxon_pa ||
+@@ -14269,7 +14269,7 @@ static int vmx_set_nested_state(struct kvm_vcpu *vcpu,
+   if (nested_cpu_has_shadow_vmcs(vmcs12) &&
+   vmcs12->vmcs_link_pointer != -1ull) {
+   struct vmcs12 *shadow_vmcs12 = get_shadow_vmcs12(vcpu);
+-  if (kvm_state->size < sizeof(kvm_state) + 2 * sizeof(*vmcs12))
++  if (kvm_state->size < sizeof(*kvm_state) + 2 * sizeof(*vmcs12))
+   return -EINVAL;
+ 
+   if (copy_from_user(shadow_vmcs12,
+diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
+index 4a61e1609c97..f3337adaf9b3 100644
+--- a/arch/x86/kvm/x86.c
 b/arch/x86/kvm/x86.c
+@@ -6328,6 +6328,12 @@ int kvm_emulate_instruction_from_buffer(struct kvm_vcpu 
*vcpu,
+ }
+ EXPORT_SYMBOL_GPL(kvm_emulate_instruction_from_buffer);
+ 
++static int complete_fast_pio_out_port_0x7e(struct kvm_vcpu *vcpu)
++{
++  vcpu->arch.pio.count = 0;
++  return 1;
++}
++
+ static int complete_fast_pio_out(struct kvm_vcpu *vcpu)
+ {
+   vcpu->arch.pio.count = 0;
+@@ -6344,12 +6350,23 @@ static int kvm_fast_pio_out(struct kvm_vcpu *vcpu, int 
size,
+   unsigned long val = kvm_register_read(vcpu, VCPU_REGS_RAX);
+   int ret = emulator_pio_out_emulated(>arch.emulate_ctxt,
+   size, port, , 1);
++  if (ret)
++  return ret;
+ 
+-  if (!ret) {
++  /*
++   * Workaround userspace that relies on old KVM behavior of %rip being
++   * incremented prior to exiting to userspace to handle "OUT 0x7e".
++   */
++  if (port == 0x7e &&
++  kvm_check_has_quirk(vcpu->kvm, KVM_X86_QUIRK_OUT_7E_INC_RIP)) {
++  vcpu->arch.complete_userspace_io =
++  complete_fast_pio_out_port_0x7e;
++  kvm_skip_emulated_instruction(vcpu);
++  } else {
+   vcpu->arch.pio.linear_rip = kvm_get_linear_rip(vcpu);
+   vcpu->arch.complete_userspace_io = complete_fast_pio_out;
+   }
+-  return ret;
++  return 0;
+ }
+ 
+ static int complete_fast_pio_in(struct kvm_vcpu *vcpu)
+diff --git a/drivers/net/dsa/bcm_sf2_cfp.c b/drivers/net/dsa/bcm_sf2_cfp.c
+index 47c5f272a084..21db1804e85d 100644
+--- a/drivers/net/dsa/bcm_sf2_cfp.c
 b/drivers/net/dsa/bcm_sf2_cfp.c
+@@ -742,6 +742,9 @@ static int bcm_sf2_cfp_rule_set(struct dsa_switch *ds, int 
port,
+fs->m_ext.data[1]))
+   return -EINVAL;
+ 
++  if (fs->location != RX_CLS_LOC_ANY && fs->location >= 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-05-04 Thread Mike Pagano
commit: c517b4f40cdffe3448eec0d4930009ae0d6b416f
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat May  4 18:28:20 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat May  4 18:28:20 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c517b4f4

Linux patch 4.19.39

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1038_linux-4.19.39.patch | 2295 ++
 2 files changed, 2299 insertions(+)

diff --git a/_README b/_README
index ad3e29c..be92968 100644
--- a/_README
+++ b/_README
@@ -195,6 +195,10 @@ Patch:  1037_linux-4.19.38.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.19.38
 
+Patch:  1038_linux-4.19.39.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.19.39
+
 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/1038_linux-4.19.39.patch b/1038_linux-4.19.39.patch
new file mode 100644
index 000..489af44
--- /dev/null
+++ b/1038_linux-4.19.39.patch
@@ -0,0 +1,2295 @@
+diff --git a/Documentation/i2c/busses/i2c-i801 
b/Documentation/i2c/busses/i2c-i801
+index d1ee484a787d..ee9984f35868 100644
+--- a/Documentation/i2c/busses/i2c-i801
 b/Documentation/i2c/busses/i2c-i801
+@@ -36,6 +36,7 @@ Supported adapters:
+   * Intel Cannon Lake (PCH)
+   * Intel Cedar Fork (PCH)
+   * Intel Ice Lake (PCH)
++  * Intel Comet Lake (PCH)
+Datasheets: Publicly available at the Intel website
+ 
+ On Intel Patsburg and later chipsets, both the normal host SMBus controller
+diff --git a/Makefile b/Makefile
+index 14d4aeb48907..be1bd297bca9 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 38
++SUBLEVEL = 39
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
+index cd4c74daf71e..51794c7fa6d5 100644
+--- a/arch/arm/Kconfig
 b/arch/arm/Kconfig
+@@ -612,6 +612,7 @@ config ARCH_DAVINCI
+   select HAVE_IDE
+   select PM_GENERIC_DOMAINS if PM
+   select PM_GENERIC_DOMAINS_OF if PM && OF
++  select REGMAP_MMIO
+   select RESET_CONTROLLER
+   select USE_OF
+   select ZONE_DMA
+diff --git a/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts 
b/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts
+index 5641d162dfdb..28e7513ce617 100644
+--- a/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts
 b/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts
+@@ -93,7 +93,7 @@
+ };
+ 
+  {
+-  hpd-gpios = < 46 GPIO_ACTIVE_LOW>;
++  hpd-gpios = < 46 GPIO_ACTIVE_HIGH>;
+ };
+ 
+  {
+diff --git a/arch/arm/boot/dts/imx6qdl-icore-rqs.dtsi 
b/arch/arm/boot/dts/imx6qdl-icore-rqs.dtsi
+index acc3b11fba2a..cde3025d9603 100644
+--- a/arch/arm/boot/dts/imx6qdl-icore-rqs.dtsi
 b/arch/arm/boot/dts/imx6qdl-icore-rqs.dtsi
+@@ -298,7 +298,7 @@
+   pinctrl-2 = <_usdhc3_200mhz>;
+   vmcc-supply = <_sd3_vmmc>;
+   cd-gpios = < 1 GPIO_ACTIVE_LOW>;
+-  bus-witdh = <4>;
++  bus-width = <4>;
+   no-1-8-v;
+   status = "okay";
+ };
+@@ -309,7 +309,7 @@
+   pinctrl-1 = <_usdhc4_100mhz>;
+   pinctrl-2 = <_usdhc4_200mhz>;
+   vmcc-supply = <_sd4_vmmc>;
+-  bus-witdh = <8>;
++  bus-width = <8>;
+   no-1-8-v;
+   non-removable;
+   status = "okay";
+diff --git a/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi 
b/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi
+index ed1aafd56973..fe4e89d773f5 100644
+--- a/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi
 b/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi
+@@ -89,6 +89,7 @@
+   pinctrl-names = "default";
+   pinctrl-0 = <_enet>;
+   phy-mode = "rgmii";
++  phy-reset-duration = <10>; /* in msecs */
+   phy-reset-gpios = < 23 GPIO_ACTIVE_LOW>;
+   phy-supply = <_eth_io_reg>;
+   status = "disabled";
+diff --git a/arch/arm/include/asm/kvm_mmu.h b/arch/arm/include/asm/kvm_mmu.h
+index 265ea9cf7df7..523c499e42db 100644
+--- a/arch/arm/include/asm/kvm_mmu.h
 b/arch/arm/include/asm/kvm_mmu.h
+@@ -317,6 +317,17 @@ static inline int kvm_read_guest_lock(struct kvm *kvm,
+   return ret;
+ }
+ 
++static inline int kvm_write_guest_lock(struct kvm *kvm, gpa_t gpa,
++ const void *data, unsigned long len)
++{
++  int srcu_idx = srcu_read_lock(>srcu);
++  int ret = kvm_write_guest(kvm, gpa, data, len);
++
++  srcu_read_unlock(>srcu, srcu_idx);
++
++  return ret;
++}
++
+ static inline void *kvm_get_hyp_vector(void)
+ {
+   switch(read_cpuid_part()) {
+diff --git a/arch/arm/mach-imx/mach-imx51.c b/arch/arm/mach-imx/mach-imx51.c
+index c7169c2f94c4..08c7892866c2 100644
+--- a/arch/arm/mach-imx/mach-imx51.c
 b/arch/arm/mach-imx/mach-imx51.c
+@@ -59,6 +59,7 @@ static void __init imx51_m4if_setup(void)
+   return;
+ 
+   m4if_base = of_iomap(np, 0);
++  of_node_put(np);
+   if 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-05-02 Thread Mike Pagano
commit: 52f0bee9c888fcd51ddadcf3fa91689ea0a2da70
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu May  2 10:13:36 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu May  2 10:13:36 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=52f0bee9

Linux patch 4.19.38

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1037_linux-4.19.38.patch | 4023 ++
 2 files changed, 4027 insertions(+)

diff --git a/_README b/_README
index 2acba8b..ad3e29c 100644
--- a/_README
+++ b/_README
@@ -191,6 +191,10 @@ Patch:  1036_linux-4.19.37.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.19.37
 
+Patch:  1037_linux-4.19.38.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.19.38
+
 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/1037_linux-4.19.38.patch b/1037_linux-4.19.38.patch
new file mode 100644
index 000..71a6d7d
--- /dev/null
+++ b/1037_linux-4.19.38.patch
@@ -0,0 +1,4023 @@
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index f5acf35c712f..8b6567f7cb9b 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -2805,7 +2805,7 @@
+   check bypass). With this option data leaks are possible
+   in the system.
+ 
+-  nospectre_v2[X86] Disable all mitigations for the Spectre variant 2
++  nospectre_v2[X86,PPC_FSL_BOOK3E] Disable all mitigations for the 
Spectre variant 2
+   (indirect branch prediction) vulnerability. System may
+   allow data leaks with this option, which is equivalent
+   to spectre_v2=off.
+diff --git a/Documentation/networking/ip-sysctl.txt 
b/Documentation/networking/ip-sysctl.txt
+index 960de8fe3f40..2c31208528d5 100644
+--- a/Documentation/networking/ip-sysctl.txt
 b/Documentation/networking/ip-sysctl.txt
+@@ -410,6 +410,7 @@ tcp_min_rtt_wlen - INTEGER
+   minimum RTT when it is moved to a longer path (e.g., due to traffic
+   engineering). A longer window makes the filter more resistant to RTT
+   inflations such as transient congestion. The unit is seconds.
++  Possible values: 0 - 86400 (1 day)
+   Default: 300
+ 
+ tcp_moderate_rcvbuf - BOOLEAN
+diff --git a/Makefile b/Makefile
+index 7b495cad8c2e..14d4aeb48907 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 37
++SUBLEVEL = 38
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S
+index 517e0e18f0b8..e205bbbe2794 100644
+--- a/arch/arm/boot/compressed/head.S
 b/arch/arm/boot/compressed/head.S
+@@ -1395,7 +1395,21 @@ ENTRY(efi_stub_entry)
+ 
+   @ Preserve return value of efi_entry() in r4
+   mov r4, r0
+-  bl  cache_clean_flush
++
++  @ our cache maintenance code relies on CP15 barrier instructions
++  @ but since we arrived here with the MMU and caches configured
++  @ by UEFI, we must check that the CP15BEN bit is set in SCTLR.
++  @ Note that this bit is RAO/WI on v6 and earlier, so the ISB in
++  @ the enable path will be executed on v7+ only.
++  mrc p15, 0, r1, c1, c0, 0   @ read SCTLR
++  tst r1, #(1 << 5)   @ CP15BEN bit set?
++  bne 0f
++  orr r1, r1, #(1 << 5)   @ CP15 barrier instructions
++  mcr p15, 0, r1, c1, c0, 0   @ write SCTLR
++ ARM( .inst   0xf57ff06f  @ v7+ isb   )
++ THUMB(   isb )
++
++0:bl  cache_clean_flush
+   bl  cache_off
+ 
+   @ Set parameters for booting zImage according to boot protocol
+diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S
+index 73913f072e39..579608342ac6 100644
+--- a/arch/mips/kernel/scall64-o32.S
 b/arch/mips/kernel/scall64-o32.S
+@@ -125,7 +125,7 @@ trace_a_syscall:
+   subut1, v0,  __NR_O32_Linux
+   movea1, v0
+   bnezt1, 1f /* __NR_syscall at offset 0 */
+-  lw  a1, PT_R4(sp) /* Arg1 for __NR_syscall case */
++  ld  a1, PT_R4(sp) /* Arg1 for __NR_syscall case */
+   .setpop
+ 
+ 1:jal syscall_trace_enter
+diff --git a/arch/powerpc/configs/skiroot_defconfig 
b/arch/powerpc/configs/skiroot_defconfig
+index 6bd5e7261335..ffeaed63675b 100644
+--- a/arch/powerpc/configs/skiroot_defconfig
 b/arch/powerpc/configs/skiroot_defconfig
+@@ -195,6 +195,7 @@ CONFIG_UDF_FS=m
+ CONFIG_MSDOS_FS=m
+ CONFIG_VFAT_FS=m
+ 

[gentoo-commits] proj/linux-patches:4.19 commit in: /

2019-04-20 Thread Mike Pagano
commit: 0f24bbd911eccbda14a4813938f48fd974f5bdb2
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Apr 19 19:51:13 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Apr 19 19:51:13 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0f24bbd9

Linux patch 4.19.35

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1034_linux-4.19.35.patch | 3735 ++
 2 files changed, 3739 insertions(+)

diff --git a/_README b/_README
index e752acc..fbfea55 100644
--- a/_README
+++ b/_README
@@ -179,6 +179,10 @@ Patch:  1033_linux-4.19.34.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.19.34
 
+Patch:  1034_linux-4.19.35.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.19.35
+
 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/1034_linux-4.19.35.patch b/1034_linux-4.19.35.patch
new file mode 100644
index 000..4caf535
--- /dev/null
+++ b/1034_linux-4.19.35.patch
@@ -0,0 +1,3735 @@
+diff --git a/Makefile b/Makefile
+index 8fdfe0af5862..f4229975b48c 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 19
+-SUBLEVEL = 34
++SUBLEVEL = 35
+ EXTRAVERSION =
+ NAME = "People's Front"
+ 
+@@ -483,7 +483,7 @@ endif
+ ifeq ($(cc-name),clang)
+ ifneq ($(CROSS_COMPILE),)
+ CLANG_FLAGS   := --target=$(notdir $(CROSS_COMPILE:%-=%))
+-GCC_TOOLCHAIN_DIR := $(dir $(shell which $(LD)))
++GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)elfedit))
+ CLANG_FLAGS   += --prefix=$(GCC_TOOLCHAIN_DIR)
+ GCC_TOOLCHAIN := $(realpath $(GCC_TOOLCHAIN_DIR)/..)
+ endif
+diff --git a/arch/arm/boot/dts/am335x-evm.dts 
b/arch/arm/boot/dts/am335x-evm.dts
+index c87d01297a01..20bbb899b3b7 100644
+--- a/arch/arm/boot/dts/am335x-evm.dts
 b/arch/arm/boot/dts/am335x-evm.dts
+@@ -57,6 +57,24 @@
+   enable-active-high;
+   };
+ 
++  /* TPS79501 */
++  v1_8d_reg: fixedregulator-v1_8d {
++  compatible = "regulator-fixed";
++  regulator-name = "v1_8d";
++  vin-supply = <>;
++  regulator-min-microvolt = <180>;
++  regulator-max-microvolt = <180>;
++  };
++
++  /* TPS79501 */
++  v3_3d_reg: fixedregulator-v3_3d {
++  compatible = "regulator-fixed";
++  regulator-name = "v3_3d";
++  vin-supply = <>;
++  regulator-min-microvolt = <330>;
++  regulator-max-microvolt = <330>;
++  };
++
+   matrix_keypad: matrix_keypad0 {
+   compatible = "gpio-matrix-keypad";
+   debounce-delay-ms = <5>;
+@@ -499,10 +517,10 @@
+   status = "okay";
+ 
+   /* Regulators */
+-  AVDD-supply = <_reg>;
+-  IOVDD-supply = <_reg>;
+-  DRVDD-supply = <_reg>;
+-  DVDD-supply = <>;
++  AVDD-supply = <_3d_reg>;
++  IOVDD-supply = <_3d_reg>;
++  DRVDD-supply = <_3d_reg>;
++  DVDD-supply = <_8d_reg>;
+   };
+ };
+ 
+diff --git a/arch/arm/boot/dts/am335x-evmsk.dts 
b/arch/arm/boot/dts/am335x-evmsk.dts
+index bf1a40e45c97..ba589bc41a57 100644
+--- a/arch/arm/boot/dts/am335x-evmsk.dts
 b/arch/arm/boot/dts/am335x-evmsk.dts
+@@ -73,6 +73,24 @@
+   enable-active-high;
+   };
+ 
++  /* TPS79518 */
++  v1_8d_reg: fixedregulator-v1_8d {
++  compatible = "regulator-fixed";
++  regulator-name = "v1_8d";
++  vin-supply = <>;
++  regulator-min-microvolt = <180>;
++  regulator-max-microvolt = <180>;
++  };
++
++  /* TPS78633 */
++  v3_3d_reg: fixedregulator-v3_3d {
++  compatible = "regulator-fixed";
++  regulator-name = "v3_3d";
++  vin-supply = <>;
++  regulator-min-microvolt = <330>;
++  regulator-max-microvolt = <330>;
++  };
++
+   leds {
+   pinctrl-names = "default";
+   pinctrl-0 = <_leds_s0>;
+@@ -501,10 +519,10 @@
+   status = "okay";
+ 
+   /* Regulators */
+-  AVDD-supply = <_reg>;
+-  IOVDD-supply = <_reg>;
+-  DRVDD-supply = <_reg>;
+-  DVDD-supply = <>;
++  AVDD-supply = <_3d_reg>;
++  IOVDD-supply = <_3d_reg>;
++  DRVDD-supply = <_3d_reg>;
++  DVDD-supply = <_8d_reg>;
+   };
+ };
+ 
+diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
+index 0840ffb3205c..e6a36a792bae 100644
+--- a/arch/arm/boot/dts/rk3288.dtsi
 b/arch/arm/boot/dts/rk3288.dtsi
+@@ -70,7 +70,7 @@
+   compatible = "arm,cortex-a12";
+   reg = <0x501>;
+   resets = < 

  1   2   >