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

2019-12-18 Thread Mike Pagano
commit: 82fedfef763a5862f977af8faf71de2441c67ab1
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Dec 18 19:31:13 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Dec 18 19:31:13 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=82fedfef

Linux patch 5.3.18

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

 _README |4 +
 1017_linux-5.3.18.patch | 1781 +++
 2 files changed, 1785 insertions(+)

diff --git a/_README b/_README
index e723ae5..5f9ec9a 100644
--- a/_README
+++ b/_README
@@ -111,6 +111,10 @@ Patch:  1016_linux-5.3.17.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.3.17
 
+Patch:  1017_linux-5.3.18.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.3.18
+
 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/1017_linux-5.3.18.patch b/1017_linux-5.3.18.patch
new file mode 100644
index 000..3f57093
--- /dev/null
+++ b/1017_linux-5.3.18.patch
@@ -0,0 +1,1781 @@
+diff --git a/Makefile b/Makefile
+index 9cce8d426cb8..a3fb24bb6dd5 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 3
+-SUBLEVEL = 17
++SUBLEVEL = 18
+ EXTRAVERSION =
+ NAME = Bobtail Squid
+ 
+diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c
+index bf539c34ccd3..fca5025d5a1a 100644
+--- a/drivers/infiniband/core/addr.c
 b/drivers/infiniband/core/addr.c
+@@ -421,16 +421,15 @@ static int addr6_resolve(struct sockaddr *src_sock,
+   (const struct sockaddr_in6 *)dst_sock;
+   struct flowi6 fl6;
+   struct dst_entry *dst;
+-  int ret;
+ 
+   memset(&fl6, 0, sizeof fl6);
+   fl6.daddr = dst_in->sin6_addr;
+   fl6.saddr = src_in->sin6_addr;
+   fl6.flowi6_oif = addr->bound_dev_if;
+ 
+-  ret = ipv6_stub->ipv6_dst_lookup(addr->net, NULL, &dst, &fl6);
+-  if (ret < 0)
+-  return ret;
++  dst = ipv6_stub->ipv6_dst_lookup_flow(addr->net, NULL, &fl6, NULL);
++  if (IS_ERR(dst))
++  return PTR_ERR(dst);
+ 
+   if (ipv6_addr_any(&src_in->sin6_addr))
+   src_in->sin6_addr = fl6.saddr;
+diff --git a/drivers/infiniband/sw/rxe/rxe_net.c 
b/drivers/infiniband/sw/rxe/rxe_net.c
+index 5a3474f9351b..312c2fc961c0 100644
+--- a/drivers/infiniband/sw/rxe/rxe_net.c
 b/drivers/infiniband/sw/rxe/rxe_net.c
+@@ -117,10 +117,12 @@ static struct dst_entry *rxe_find_route6(struct 
net_device *ndev,
+   memcpy(&fl6.daddr, daddr, sizeof(*daddr));
+   fl6.flowi6_proto = IPPROTO_UDP;
+ 
+-  if (unlikely(ipv6_stub->ipv6_dst_lookup(sock_net(recv_sockets.sk6->sk),
+-  recv_sockets.sk6->sk, &ndst, 
&fl6))) {
++  ndst = ipv6_stub->ipv6_dst_lookup_flow(sock_net(recv_sockets.sk6->sk),
++ recv_sockets.sk6->sk, &fl6,
++ NULL);
++  if (unlikely(IS_ERR(ndst))) {
+   pr_err_ratelimited("no route to %pI6\n", daddr);
+-  goto put;
++  return NULL;
+   }
+ 
+   if (unlikely(ndst->error)) {
+diff --git a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c 
b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
+index acb016834f04..6cc100e7d5c0 100644
+--- a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
 b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
+@@ -1115,7 +1115,7 @@ static int bgx_lmac_enable(struct bgx *bgx, u8 lmacid)
+  phy_interface_mode(lmac->lmac_type)))
+   return -ENODEV;
+ 
+-  phy_start_aneg(lmac->phydev);
++  phy_start(lmac->phydev);
+   return 0;
+   }
+ 
+diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h 
b/drivers/net/ethernet/mellanox/mlx5/core/en.h
+index 65bec19a438f..2120300aa70e 100644
+--- a/drivers/net/ethernet/mellanox/mlx5/core/en.h
 b/drivers/net/ethernet/mellanox/mlx5/core/en.h
+@@ -792,7 +792,7 @@ struct mlx5e_xsk {
+ struct mlx5e_priv {
+   /* priv data path fields - start */
+   struct mlx5e_txqsq *txq2sq[MLX5E_MAX_NUM_CHANNELS * MLX5E_MAX_NUM_TC];
+-  int channel_tc2txq[MLX5E_MAX_NUM_CHANNELS][MLX5E_MAX_NUM_TC];
++  int channel_tc2realtxq[MLX5E_MAX_NUM_CHANNELS][MLX5E_MAX_NUM_TC];
+ #ifdef CONFIG_MLX5_CORE_EN_DCB
+   struct mlx5e_dcbx_dp   dcbx_dp;
+ #endif
+diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c 
b/drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c
+index 633b117eb13e..99c7cdd0404a 100644
+--- a/drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c
 b/drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c
+@@ -155,8 +155,11 @@ static int update_xoff_threshold(struct mlx5e_port_buffer 
*port_buffer,
+   }
+ 
+   

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

2019-12-13 Thread Mike Pagano
commit: 0ed25f649e3464d2d4a156d1ec101d471e87f711
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Dec 13 12:36:47 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Dec 13 12:36:47 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0ed25f64

Linux patch 5.3.16 and add missing entries in README

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

 _README |   12 +
 1015_linux-5.3.16.patch | 3370 +++
 2 files changed, 3382 insertions(+)

diff --git a/_README b/_README
index 5f3156b..0825437 100644
--- a/_README
+++ b/_README
@@ -95,6 +95,18 @@ Patch:  1012_linux-5.3.13.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.3.13
 
+Patch:  1013_linux-5.3.14.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.3.14
+
+Patch:  1014_linux-5.3.15.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.3.15
+
+Patch:  1015_linux-5.3.16.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.3.16
+
 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/1015_linux-5.3.16.patch b/1015_linux-5.3.16.patch
new file mode 100644
index 000..ad0944a
--- /dev/null
+++ b/1015_linux-5.3.16.patch
@@ -0,0 +1,3370 @@
+diff --git a/Makefile b/Makefile
+index 5a88d67e9635..ced7342b61ff 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 3
+-SUBLEVEL = 15
++SUBLEVEL = 16
+ EXTRAVERSION =
+ NAME = Bobtail Squid
+ 
+diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi 
b/arch/arm64/boot/dts/exynos/exynos5433.dtsi
+index a76f620f7f35..a5f8752f607b 100644
+--- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi
 b/arch/arm64/boot/dts/exynos/exynos5433.dtsi
+@@ -18,8 +18,8 @@
+ 
+ / {
+   compatible = "samsung,exynos5433";
+-  #address-cells = <1>;
+-  #size-cells = <1>;
++  #address-cells = <2>;
++  #size-cells = <2>;
+ 
+   interrupt-parent = <&gic>;
+ 
+@@ -311,7 +311,7 @@
+   compatible = "simple-bus";
+   #address-cells = <1>;
+   #size-cells = <1>;
+-  ranges;
++  ranges = <0x0 0x0 0x0 0x1800>;
+ 
+   chipid@1000 {
+   compatible = "samsung,exynos4210-chipid";
+diff --git a/arch/arm64/boot/dts/exynos/exynos7.dtsi 
b/arch/arm64/boot/dts/exynos/exynos7.dtsi
+index bcb9d8cee267..0821489a874d 100644
+--- a/arch/arm64/boot/dts/exynos/exynos7.dtsi
 b/arch/arm64/boot/dts/exynos/exynos7.dtsi
+@@ -12,8 +12,8 @@
+ / {
+   compatible = "samsung,exynos7";
+   interrupt-parent = <&gic>;
+-  #address-cells = <1>;
+-  #size-cells = <1>;
++  #address-cells = <2>;
++  #size-cells = <2>;
+ 
+   aliases {
+   pinctrl0 = &pinctrl_alive;
+@@ -98,7 +98,7 @@
+   compatible = "simple-bus";
+   #address-cells = <1>;
+   #size-cells = <1>;
+-  ranges;
++  ranges = <0 0 0 0x1800>;
+ 
+   chipid@1000 {
+   compatible = "samsung,exynos4210-chipid";
+diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi 
b/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi
+index a7dc319214a4..b0095072bc28 100644
+--- a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi
 b/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi
+@@ -1612,7 +1612,7 @@
+   regulator-name = "VDD_HDMI_5V0";
+   regulator-min-microvolt = <500>;
+   regulator-max-microvolt = <500>;
+-  gpio = <&exp1 12 GPIO_ACTIVE_LOW>;
++  gpio = <&exp1 12 GPIO_ACTIVE_HIGH>;
+   enable-active-high;
+   vin-supply = <&vdd_5v0_sys>;
+   };
+diff --git a/arch/mips/sgi-ip27/Kconfig b/arch/mips/sgi-ip27/Kconfig
+index ef3847e7aee0..e5b6cadbec85 100644
+--- a/arch/mips/sgi-ip27/Kconfig
 b/arch/mips/sgi-ip27/Kconfig
+@@ -38,10 +38,3 @@ config REPLICATE_KTEXT
+ Say Y here to enable replicating the kernel text across multiple
+ nodes in a NUMA cluster.  This trades memory for speed.
+ 
+-config REPLICATE_EXHANDLERS
+-  bool "Exception handler replication support"
+-  depends on SGI_IP27
+-  help
+-Say Y here to enable replicating the kernel exception handlers
+-across multiple nodes in a NUMA cluster. This trades memory for
+-speed.
+diff --git a/arch/mips/sgi-ip27/ip27-init.c b/arch/mips/sgi-ip27/ip27-init.c
+index 066b33f50bcc..db58ebf02870 100644
+--- a/arch/mips/sgi-ip27/ip27-init.c
 b/arch/mips/sgi-ip27/ip27-init.c
+@@ -69,23 +69,14 @@ static void per_hub_init(cnodeid_t cnode)
+ 
+   hub_rtc_init(cnode);
+ 
+-#ifdef CONFIG_REPLICATE_EXHANDLERS
+-  /*
+-   * If this is not a headless node initialization,
+-   * copy over the caliased exception 

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

2019-11-30 Thread Thomas Deutschmann
commit: c26796850f00de4dbd6fa760c6bd4101e69f0393
Author: Thomas Deutschmann  whissi  de>
AuthorDate: Sat Nov 30 13:14:01 2019 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Sat Nov 30 13:14:01 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c2679685

Drop 2900_awk-regexp-warnings.patch

Signed-off-by: Thomas Deutschmann  whissi.de>

 2900_awk-regexp-warnings.patch | 89 --
 1 file changed, 89 deletions(-)

diff --git a/2900_awk-regexp-warnings.patch b/2900_awk-regexp-warnings.patch
deleted file mode 100644
index 5e62625..000
--- a/2900_awk-regexp-warnings.patch
+++ /dev/null
@@ -1,89 +0,0 @@
-From 700c1018b86d0d4b3f1f2d459708c0cdf42b521d Mon Sep 17 00:00:00 2001
-From: Alexander Kapshuk 
-Date: Tue, 24 Sep 2019 07:46:59 +0300
-Subject: x86/insn: Fix awk regexp warnings
-
-gawk 5.0.1 generates the following regexp warnings:
-
-  GEN  /home/sasha/torvalds/tools/objtool/arch/x86/lib/inat-tables.c
-  awk: ../arch/x86/tools/gen-insn-attr-x86.awk:260: warning: regexp escape 
sequence `\:' is not a known regexp operator
-  awk: ../arch/x86/tools/gen-insn-attr-x86.awk:350: 
(FILENAME=../arch/x86/lib/x86-opcode-map.txt FNR=41) warning: regexp escape 
sequence `\&' is  not a known regexp operator
-
-Ealier versions of gawk are not known to generate these warnings. The
-gawk manual referenced below does not list characters ':' and '&' as
-needing escaping, so 'unescape' them. See
-
-  https://www.gnu.org/software/gawk/manual/html_node/Escape-Sequences.html
-
-for more info.
-
-Running diff on the output generated by the script before and after
-applying the patch reported no differences.
-
- [ bp: Massage commit message. ]
-
-[ Caught the respective tools header discrepancy. ]
-Reported-by: kbuild test robot 
-Signed-off-by: Alexander Kapshuk 
-Signed-off-by: Borislav Petkov 
-Acked-by: Masami Hiramatsu 
-Cc: "H. Peter Anvin" 
-Cc: "Peter Zijlstra (Intel)" 
-Cc: Arnaldo Carvalho de Melo 
-Cc: Ingo Molnar 
-Cc: Josh Poimboeuf 
-Cc: Thomas Gleixner 
-Cc: x86-ml 
-Link: 
https://lkml.kernel.org/r/20190924044659.3785-1-alexander.kaps...@gmail.com

- arch/x86/tools/gen-insn-attr-x86.awk   | 4 ++--
- tools/arch/x86/tools/gen-insn-attr-x86.awk | 4 ++--
- 2 files changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/arch/x86/tools/gen-insn-attr-x86.awk 
b/arch/x86/tools/gen-insn-attr-x86.awk
-index b02a36b2c14f..a42015b305f4 100644
 a/arch/x86/tools/gen-insn-attr-x86.awk
-+++ b/arch/x86/tools/gen-insn-attr-x86.awk
-@@ -69,7 +69,7 @@ BEGIN {
- 
-   lprefix1_expr = "\\((66|!F3)\\)"
-   lprefix2_expr = "\\(F3\\)"
--  lprefix3_expr = "\\((F2|!F3|66\\&F2)\\)"
-+  lprefix3_expr = "\\((F2|!F3|66&F2)\\)"
-   lprefix_expr = "\\((66|F2|F3)\\)"
-   max_lprefix = 4
- 
-@@ -257,7 +257,7 @@ function convert_operands(count,opnd,   i,j,imm,mod)
-   return add_flags(imm, mod)
- }
- 
--/^[0-9a-f]+\:/ {
-+/^[0-9a-f]+:/ {
-   if (NR == 1)
-   next
-   # get index
-diff --git a/tools/arch/x86/tools/gen-insn-attr-x86.awk 
b/tools/arch/x86/tools/gen-insn-attr-x86.awk
-index b02a36b2c14f..a42015b305f4 100644
 a/tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk
-+++ b/tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk
-@@ -69,7 +69,7 @@ BEGIN {
- 
-   lprefix1_expr = "\\((66|!F3)\\)"
-   lprefix2_expr = "\\(F3\\)"
--  lprefix3_expr = "\\((F2|!F3|66\\&F2)\\)"
-+  lprefix3_expr = "\\((F2|!F3|66&F2)\\)"
-   lprefix_expr = "\\((66|F2|F3)\\)"
-   max_lprefix = 4
- 
-@@ -257,7 +257,7 @@ function convert_operands(count,opnd,   i,j,imm,mod)
-   return add_flags(imm, mod)
- }
- 
--/^[0-9a-f]+\:/ {
-+/^[0-9a-f]+:/ {
-   if (NR == 1)
-   next
-   # get index
--- 
-cgit 1.2-0.3.lf.el7
-



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

2019-11-29 Thread Thomas Deutschmann
commit: 57acb6027fa35bec9bb58c8f2fa8a716595c302b
Author: Thomas Deutschmann  whissi  de>
AuthorDate: Fri Nov 29 21:37:56 2019 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Fri Nov 29 21:37:56 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=57acb602

Linux patch 5.3.14

Signed-off-by: Thomas Deutschmann  whissi.de>

 1013_linux-5.3.14.patch | 4004 +++
 1 file changed, 4004 insertions(+)

diff --git a/1013_linux-5.3.14.patch b/1013_linux-5.3.14.patch
new file mode 100644
index 000..038253d
--- /dev/null
+++ b/1013_linux-5.3.14.patch
@@ -0,0 +1,4004 @@
+diff --git a/Documentation/admin-guide/hw-vuln/mds.rst 
b/Documentation/admin-guide/hw-vuln/mds.rst
+index e3a796c0d3a2..2d19c9f4c1fe 100644
+--- a/Documentation/admin-guide/hw-vuln/mds.rst
 b/Documentation/admin-guide/hw-vuln/mds.rst
+@@ -265,8 +265,11 @@ time with the option "mds=". The valid arguments for this 
option are:
+ 
+     =
+ 
+-Not specifying this option is equivalent to "mds=full".
+-
++Not specifying this option is equivalent to "mds=full". For processors
++that are affected by both TAA (TSX Asynchronous Abort) and MDS,
++specifying just "mds=off" without an accompanying "tsx_async_abort=off"
++will have no effect as the same mitigation is used for both
++vulnerabilities.
+ 
+ Mitigation selection guide
+ --
+diff --git a/Documentation/admin-guide/hw-vuln/tsx_async_abort.rst 
b/Documentation/admin-guide/hw-vuln/tsx_async_abort.rst
+index fddbd7579c53..af6865b822d2 100644
+--- a/Documentation/admin-guide/hw-vuln/tsx_async_abort.rst
 b/Documentation/admin-guide/hw-vuln/tsx_async_abort.rst
+@@ -174,7 +174,10 @@ the option "tsx_async_abort=". The valid arguments for 
this option are:
+ CPU is not vulnerable to cross-thread TAA attacks.
+     =
+ 
+-Not specifying this option is equivalent to "tsx_async_abort=full".
++Not specifying this option is equivalent to "tsx_async_abort=full". For
++processors that are affected by both TAA and MDS, specifying just
++"tsx_async_abort=off" without an accompanying "mds=off" will have no
++effect as the same mitigation is used for both vulnerabilities.
+ 
+ The kernel command line also allows to control the TSX feature using the
+ parameter "tsx=" on CPUs which support TSX control. MSR_IA32_TSX_CTRL is used
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index 49d1719177ea..c4894b716fbe 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -2449,6 +2449,12 @@
+SMT on vulnerable CPUs
+   off- Unconditionally disable MDS mitigation
+ 
++  On TAA-affected machines, mds=off can be prevented by
++  an active TAA mitigation as both vulnerabilities are
++  mitigated with the same mechanism so in order to disable
++  this mitigation, you need to specify tsx_async_abort=off
++  too.
++
+   Not specifying this option is equivalent to
+   mds=full.
+ 
+@@ -4896,6 +4902,11 @@
+vulnerable to cross-thread TAA attacks.
+   off- Unconditionally disable TAA mitigation
+ 
++  On MDS-affected machines, tsx_async_abort=off can be
++  prevented by an active MDS mitigation as both 
vulnerabilities
++  are mitigated with the same mechanism so in order to 
disable
++  this mitigation, you need to specify mds=off too.
++
+   Not specifying this option is equivalent to
+   tsx_async_abort=full.  On CPUs which are MDS affected
+   and deploy MDS mitigation, TAA mitigation is not
+diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt 
b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt
+index ae661e65354e..f9499b20d840 100644
+--- a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt
 b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt
+@@ -81,6 +81,12 @@ Optional properties:
+   Definition: Name of external front end module used. Some valid FEM names
+   for example: "microsemi-lx5586", "sky85703-11"
+   and "sky85803" etc.
++- qcom,snoc-host-cap-8bit-quirk:
++  Usage: Optional
++  Value type: 
++  Definition: Quirk specifying that the firmware expects the 8bit version
++  of the host capability QMI request
++
+ 
+ Example (to supply PCI based wifi block details):
+ 
+diff --git a/Makefile

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

2019-11-24 Thread Mike Pagano
commit: b46fdd9d1832e5019b9f4a733e8d56204f769b2d
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Nov 24 15:44:49 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Nov 24 15:44:49 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b46fdd9d

Linux patch 5.3.13

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

 _README |   4 +
 1012_linux-5.3.13.patch | 451 
 2 files changed, 455 insertions(+)

diff --git a/_README b/_README
index bb387d0..5f3156b 100644
--- a/_README
+++ b/_README
@@ -91,6 +91,10 @@ Patch:  1011_linux-5.3.12.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.3.12
 
+Patch:  1012_linux-5.3.13.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.3.13
+
 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/1012_linux-5.3.13.patch b/1012_linux-5.3.13.patch
new file mode 100644
index 000..8684d09
--- /dev/null
+++ b/1012_linux-5.3.13.patch
@@ -0,0 +1,451 @@
+diff --git a/Makefile b/Makefile
+index 2f0c428ed2b6..f9d3d58ae801 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 3
+-SUBLEVEL = 12
++SUBLEVEL = 13
+ EXTRAVERSION =
+ NAME = Bobtail Squid
+ 
+diff --git a/arch/arm64/lib/clear_user.S b/arch/arm64/lib/clear_user.S
+index 10415572e82f..322b55664cca 100644
+--- a/arch/arm64/lib/clear_user.S
 b/arch/arm64/lib/clear_user.S
+@@ -48,5 +48,6 @@ EXPORT_SYMBOL(__arch_clear_user)
+   .section .fixup,"ax"
+   .align  2
+ 9:mov x0, x2  // return the original size
++  uaccess_disable_not_uao x2, x3
+   ret
+   .previous
+diff --git a/arch/arm64/lib/copy_from_user.S b/arch/arm64/lib/copy_from_user.S
+index 680e74409ff9..8472dc7798b3 100644
+--- a/arch/arm64/lib/copy_from_user.S
 b/arch/arm64/lib/copy_from_user.S
+@@ -66,5 +66,6 @@ EXPORT_SYMBOL(__arch_copy_from_user)
+   .section .fixup,"ax"
+   .align  2
+ 9998: sub x0, end, dst// bytes not copied
++  uaccess_disable_not_uao x3, x4
+   ret
+   .previous
+diff --git a/arch/arm64/lib/copy_in_user.S b/arch/arm64/lib/copy_in_user.S
+index 0bedae3f3792..8e0355c1e318 100644
+--- a/arch/arm64/lib/copy_in_user.S
 b/arch/arm64/lib/copy_in_user.S
+@@ -68,5 +68,6 @@ EXPORT_SYMBOL(__arch_copy_in_user)
+   .section .fixup,"ax"
+   .align  2
+ 9998: sub x0, end, dst// bytes not copied
++  uaccess_disable_not_uao x3, x4
+   ret
+   .previous
+diff --git a/arch/arm64/lib/copy_to_user.S b/arch/arm64/lib/copy_to_user.S
+index 2d88c736e8f2..6085214654dc 100644
+--- a/arch/arm64/lib/copy_to_user.S
 b/arch/arm64/lib/copy_to_user.S
+@@ -65,5 +65,6 @@ EXPORT_SYMBOL(__arch_copy_to_user)
+   .section .fixup,"ax"
+   .align  2
+ 9998: sub x0, end, dst// bytes not copied
++  uaccess_disable_not_uao x3, x4
+   ret
+   .previous
+diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
+index 70bcbd02edcb..aabc8c1ab0cd 100644
+--- a/block/bfq-iosched.c
 b/block/bfq-iosched.c
+@@ -2699,6 +2699,28 @@ static void bfq_bfqq_save_state(struct bfq_queue *bfqq)
+   }
+ }
+ 
++
++static
++void bfq_release_process_ref(struct bfq_data *bfqd, struct bfq_queue *bfqq)
++{
++  /*
++   * To prevent bfqq's service guarantees from being violated,
++   * bfqq may be left busy, i.e., queued for service, even if
++   * empty (see comments in __bfq_bfqq_expire() for
++   * details). But, if no process will send requests to bfqq any
++   * longer, then there is no point in keeping bfqq queued for
++   * service. In addition, keeping bfqq queued for service, but
++   * with no process ref any longer, may have caused bfqq to be
++   * freed when dequeued from service. But this is assumed to
++   * never happen.
++   */
++  if (bfq_bfqq_busy(bfqq) && RB_EMPTY_ROOT(&bfqq->sort_list) &&
++  bfqq != bfqd->in_service_queue)
++  bfq_del_bfqq_busy(bfqd, bfqq, false);
++
++  bfq_put_queue(bfqq);
++}
++
+ static void
+ bfq_merge_bfqqs(struct bfq_data *bfqd, struct bfq_io_cq *bic,
+   struct bfq_queue *bfqq, struct bfq_queue *new_bfqq)
+@@ -2769,8 +2791,7 @@ bfq_merge_bfqqs(struct bfq_data *bfqd, struct bfq_io_cq 
*bic,
+*/
+   new_bfqq->pid = -1;
+   bfqq->bic = NULL;
+-  /* release process reference to bfqq */
+-  bfq_put_queue(bfqq);
++  bfq_release_process_ref(bfqd, bfqq);
+ }
+ 
+ static bool bfq_allow_bio_merge(struct request_queue *q, struct request *rq,
+@@ -4885,7 +4906,7 @@ static void bfq_exit_bfqq(struct bfq_data *bfqd, struct 
bfq_queue *bfqq)
+ 
+   bfq_put_cooperator(bfqq);
+ 
+-  bfq_put_queue(bfqq); /* release process reference */
++  bfq_release_process_ref(bfqd, bfqq);
+ }

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

2019-11-20 Thread Mike Pagano
commit: 5933a9239408065bb06ea1767b8294503c34ca86
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Nov 20 16:39:39 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 20 16:39:39 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5933a923

Linux patch 5.3.12

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

 _README |4 +
 1011_linux-5.3.12.patch | 1501 +++
 2 files changed, 1505 insertions(+)

diff --git a/_README b/_README
index 0d383a1..bb387d0 100644
--- a/_README
+++ b/_README
@@ -87,6 +87,10 @@ Patch:  1010_linux-5.3.11.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.3.11
 
+Patch:  1011_linux-5.3.12.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.3.12
+
 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/1011_linux-5.3.12.patch b/1011_linux-5.3.12.patch
new file mode 100644
index 000..1e831b7
--- /dev/null
+++ b/1011_linux-5.3.12.patch
@@ -0,0 +1,1501 @@
+diff --git a/Makefile b/Makefile
+index 40148c01ffe2..2f0c428ed2b6 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 3
+-SUBLEVEL = 11
++SUBLEVEL = 12
+ EXTRAVERSION =
+ NAME = Bobtail Squid
+ 
+diff --git a/arch/x86/kernel/early-quirks.c b/arch/x86/kernel/early-quirks.c
+index 6c4f01540833..43abebc2fc77 100644
+--- a/arch/x86/kernel/early-quirks.c
 b/arch/x86/kernel/early-quirks.c
+@@ -709,6 +709,8 @@ static struct chipset early_qrk[] __initdata = {
+*/
+   { PCI_VENDOR_ID_INTEL, 0x0f00,
+   PCI_CLASS_BRIDGE_HOST, PCI_ANY_ID, 0, force_disable_hpet},
++  { PCI_VENDOR_ID_INTEL, 0x3ec4,
++  PCI_CLASS_BRIDGE_HOST, PCI_ANY_ID, 0, force_disable_hpet},
+   { PCI_VENDOR_ID_BROADCOM, 0x4331,
+ PCI_CLASS_NETWORK_OTHER, PCI_ANY_ID, 0, apple_airport_reset},
+   {}
+diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
+index 32b1c6136c6a..2812e5c4ab7b 100644
+--- a/arch/x86/kvm/mmu.c
 b/arch/x86/kvm/mmu.c
+@@ -3352,7 +3352,7 @@ static void transparent_hugepage_adjust(struct kvm_vcpu 
*vcpu,
+* here.
+*/
+   if (!is_error_noslot_pfn(pfn) && !kvm_is_reserved_pfn(pfn) &&
+-  level == PT_PAGE_TABLE_LEVEL &&
++  !kvm_is_zone_device_pfn(pfn) && level == PT_PAGE_TABLE_LEVEL &&
+   PageTransCompoundMap(pfn_to_page(pfn)) &&
+   !mmu_gfn_lpage_is_disallowed(vcpu, gfn, PT_DIRECTORY_LEVEL)) {
+   unsigned long mask;
+@@ -5961,9 +5961,9 @@ restart:
+* the guest, and the guest page table is using 4K page size
+* mapping if the indirect sp has level = 1.
+*/
+-  if (sp->role.direct &&
+-  !kvm_is_reserved_pfn(pfn) &&
+-  PageTransCompoundMap(pfn_to_page(pfn))) {
++  if (sp->role.direct && !kvm_is_reserved_pfn(pfn) &&
++  !kvm_is_zone_device_pfn(pfn) &&
++  PageTransCompoundMap(pfn_to_page(pfn))) {
+   pte_list_remove(rmap_head, sptep);
+ 
+   if (kvm_available_flush_tlb_with_range())
+diff --git a/drivers/base/memory.c b/drivers/base/memory.c
+index 9b9abc4fcfb7..c6791a59bce7 100644
+--- a/drivers/base/memory.c
 b/drivers/base/memory.c
+@@ -884,3 +884,39 @@ int walk_memory_blocks(unsigned long start, unsigned long 
size,
+   }
+   return ret;
+ }
++
++struct for_each_memory_block_cb_data {
++  walk_memory_blocks_func_t func;
++  void *arg;
++};
++
++static int for_each_memory_block_cb(struct device *dev, void *data)
++{
++  struct memory_block *mem = to_memory_block(dev);
++  struct for_each_memory_block_cb_data *cb_data = data;
++
++  return cb_data->func(mem, cb_data->arg);
++}
++
++/**
++ * for_each_memory_block - walk through all present memory blocks
++ *
++ * @arg: argument passed to func
++ * @func: callback for each memory block walked
++ *
++ * This function walks through all present memory blocks, calling func on
++ * each memory block.
++ *
++ * In case func() returns an error, walking is aborted and the error is
++ * returned.
++ */
++int for_each_memory_block(void *arg, walk_memory_blocks_func_t func)
++{
++  struct for_each_memory_block_cb_data cb_data = {
++  .func = func,
++  .arg = arg,
++  };
++
++  return bus_for_each_dev(&memory_subsys, NULL, &cb_data,
++  for_each_memory_block_cb);
++}
+diff --git a/drivers/gpu/drm/i915/display/intel_display_power.c 
b/drivers/gpu/drm/i915/display/intel_display_power.c
+index 2d1939db108f..dd1a43a366f2 100644
+--- a/drivers/gpu/drm/i915/display/intel_display_power.c
 b/drivers/gpu/drm/i915/display/intel_display_power.c
+@@ -4345,6 +4345,9 @@ void intel_power_domains_init_hw(struct drm_i915_private 

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

2019-11-14 Thread Mike Pagano
commit: c2f22be66c4c66dfca8c9700e773ecf41429d30b
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Nov 14 23:07:49 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Nov 14 23:07:49 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c2f22be6

x86/insn: Fix awk regexp warnings. See bug #696846.

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

 _README|  4 ++
 2900_awk-regexp-warnings.patch | 89 ++
 2 files changed, 93 insertions(+)

diff --git a/_README b/_README
index 075d9be..0d383a1 100644
--- a/_README
+++ b/_README
@@ -107,6 +107,10 @@ 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:  2900_awk-regexp-warnings.patch
+From:   
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=700c1018b86d0d4b3f1f2d459708c0cdf42b521d
+Desc:   x86/insn: Fix awk regexp warnings. See bug #696846.
+
 Patch:  4567_distro-Gentoo-Kconfig.patch
 From:   Tom Wijsman 
 Desc:   Add Gentoo Linux support config settings and defaults.

diff --git a/2900_awk-regexp-warnings.patch b/2900_awk-regexp-warnings.patch
new file mode 100644
index 000..5e62625
--- /dev/null
+++ b/2900_awk-regexp-warnings.patch
@@ -0,0 +1,89 @@
+From 700c1018b86d0d4b3f1f2d459708c0cdf42b521d Mon Sep 17 00:00:00 2001
+From: Alexander Kapshuk 
+Date: Tue, 24 Sep 2019 07:46:59 +0300
+Subject: x86/insn: Fix awk regexp warnings
+
+gawk 5.0.1 generates the following regexp warnings:
+
+  GEN  /home/sasha/torvalds/tools/objtool/arch/x86/lib/inat-tables.c
+  awk: ../arch/x86/tools/gen-insn-attr-x86.awk:260: warning: regexp escape 
sequence `\:' is not a known regexp operator
+  awk: ../arch/x86/tools/gen-insn-attr-x86.awk:350: 
(FILENAME=../arch/x86/lib/x86-opcode-map.txt FNR=41) warning: regexp escape 
sequence `\&' is  not a known regexp operator
+
+Ealier versions of gawk are not known to generate these warnings. The
+gawk manual referenced below does not list characters ':' and '&' as
+needing escaping, so 'unescape' them. See
+
+  https://www.gnu.org/software/gawk/manual/html_node/Escape-Sequences.html
+
+for more info.
+
+Running diff on the output generated by the script before and after
+applying the patch reported no differences.
+
+ [ bp: Massage commit message. ]
+
+[ Caught the respective tools header discrepancy. ]
+Reported-by: kbuild test robot 
+Signed-off-by: Alexander Kapshuk 
+Signed-off-by: Borislav Petkov 
+Acked-by: Masami Hiramatsu 
+Cc: "H. Peter Anvin" 
+Cc: "Peter Zijlstra (Intel)" 
+Cc: Arnaldo Carvalho de Melo 
+Cc: Ingo Molnar 
+Cc: Josh Poimboeuf 
+Cc: Thomas Gleixner 
+Cc: x86-ml 
+Link: 
https://lkml.kernel.org/r/20190924044659.3785-1-alexander.kaps...@gmail.com
+---
+ arch/x86/tools/gen-insn-attr-x86.awk   | 4 ++--
+ tools/arch/x86/tools/gen-insn-attr-x86.awk | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/arch/x86/tools/gen-insn-attr-x86.awk 
b/arch/x86/tools/gen-insn-attr-x86.awk
+index b02a36b2c14f..a42015b305f4 100644
+--- a/arch/x86/tools/gen-insn-attr-x86.awk
 b/arch/x86/tools/gen-insn-attr-x86.awk
+@@ -69,7 +69,7 @@ BEGIN {
+ 
+   lprefix1_expr = "\\((66|!F3)\\)"
+   lprefix2_expr = "\\(F3\\)"
+-  lprefix3_expr = "\\((F2|!F3|66\\&F2)\\)"
++  lprefix3_expr = "\\((F2|!F3|66&F2)\\)"
+   lprefix_expr = "\\((66|F2|F3)\\)"
+   max_lprefix = 4
+ 
+@@ -257,7 +257,7 @@ function convert_operands(count,opnd,   i,j,imm,mod)
+   return add_flags(imm, mod)
+ }
+ 
+-/^[0-9a-f]+\:/ {
++/^[0-9a-f]+:/ {
+   if (NR == 1)
+   next
+   # get index
+diff --git a/tools/arch/x86/tools/gen-insn-attr-x86.awk 
b/tools/arch/x86/tools/gen-insn-attr-x86.awk
+index b02a36b2c14f..a42015b305f4 100644
+--- a/tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk
 b/tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk
+@@ -69,7 +69,7 @@ BEGIN {
+ 
+   lprefix1_expr = "\\((66|!F3)\\)"
+   lprefix2_expr = "\\(F3\\)"
+-  lprefix3_expr = "\\((F2|!F3|66\\&F2)\\)"
++  lprefix3_expr = "\\((F2|!F3|66&F2)\\)"
+   lprefix_expr = "\\((66|F2|F3)\\)"
+   max_lprefix = 4
+ 
+@@ -257,7 +257,7 @@ function convert_operands(count,opnd,   i,j,imm,mod)
+   return add_flags(imm, mod)
+ }
+ 
+-/^[0-9a-f]+\:/ {
++/^[0-9a-f]+:/ {
+   if (NR == 1)
+   next
+   # get index
+-- 
+cgit 1.2-0.3.lf.el7
+



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

2019-10-16 Thread Mike Pagano
commit: 8207d7631e9b199343cacb8aa1a86a599e7242d9
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Oct 16 18:20:44 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Oct 16 18:20:44 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=8207d763

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 6ac8208..ecff093 100644
--- a/4567_distro-Gentoo-Kconfig.patch
+++ b/4567_distro-Gentoo-Kconfig.patch
@@ -6,9 +6,9 @@
  source "Documentation/Kconfig"
 +
 +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-18 03:31:42.730171526 -0400
 b/distro/Kconfig   2019-09-18 13:28:03.170769896 -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:5.3 commit in: /

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

Linux patch 5.3.2

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

 _README|   4 +
 1001_linux-5.3.2.patch | 748 +
 2 files changed, 752 insertions(+)

diff --git a/_README b/_README
index f9d1f15..38a3537 100644
--- a/_README
+++ b/_README
@@ -47,6 +47,10 @@ Patch:  1000_linux-5.3.1.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.3.1
 
+Patch:  1001_linux-5.3.2.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.3.2
+
 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/1001_linux-5.3.2.patch b/1001_linux-5.3.2.patch
new file mode 100644
index 000..bd1d724
--- /dev/null
+++ b/1001_linux-5.3.2.patch
@@ -0,0 +1,748 @@
+diff --git a/Makefile b/Makefile
+index f32e8d2e09c3..13fa3a409ddd 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 3
+-SUBLEVEL = 1
++SUBLEVEL = 2
+ EXTRAVERSION =
+ NAME = Bobtail Squid
+ 
+diff --git a/arch/powerpc/include/asm/opal.h b/arch/powerpc/include/asm/opal.h
+index 57bd029c715e..d5a0807d21db 100644
+--- a/arch/powerpc/include/asm/opal.h
 b/arch/powerpc/include/asm/opal.h
+@@ -272,7 +272,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-call.c 
b/arch/powerpc/platforms/powernv/opal-call.c
+index 29ca523c1c79..dccdc9df5213 100644
+--- a/arch/powerpc/platforms/powernv/opal-call.c
 b/arch/powerpc/platforms/powernv/opal-call.c
+@@ -257,7 +257,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 2f26b74f6cfa..cf156aadefe9 100644
+--- a/arch/powerpc/sysdev/xive/native.c
 b/arch/powerpc/sysdev/xive/native.c
+@@ -231,6 +231,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/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c
+index 6b8e75df994d..6f46bcb1d643 100644
+--- a/drivers/clk/imx/clk-imx8mm.c
 b/drivers/clk/imx/clk-imx8mm.c
+@@ -55,8 +55,8 @@ static const struct imx_pll14xx_rate_table 
imx8mm_pll1416x_tbl[] = {
+ };
+ 
+ static const struct imx_pll14xx_rate_table imx8mm_audiopll_tbl[] = {
+-  PLL_1443X_RATE(786432000U, 655, 5, 2, 23593),
+-  PLL_1443X_RATE(722534400U, 301, 5, 1, 3670),
++  PLL_1443X_RATE(393216000U, 262, 2, 3, 9437),
++  PLL_1443X_RATE(361267200U, 361, 3, 3, 17511),
+ };
+ 
+ static const struct imx_pll14xx_rate_table imx8mm_videopll_tbl[] = {
+diff --git a/drivers/clocksource/timer-of.c b/drivers/clocksource/timer-of.c
+index 80542289fae7..d8c2bd4391d0 100644
+--- a/drivers/clocksource/timer-of.c
 b/drivers/clocksource/timer-of.c
+@@ -113,8 +113,10 @@ static __init int timer_of_clk_init(struct device_node 
*np,
+   of_clk->clk = of_clk->name ? of_clk_get_by_name(np, of_clk->name) :
+   of_clk_get(np, of_clk->index);
+   if (IS_ERR(of_clk->clk)) {
+-  pr_err("Failed to get clock for %pOF\n", np);
+-  return PTR_ERR(of_clk->clk);
++  ret = PTR_ERR(of_clk->clk);
++  i

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

2019-09-21 Thread Mike Pagano
commit: bdd00b553c1319822d9f07df86de47f812b2fbea
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Sep 21 15:53:16 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Sep 21 15:53:16 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=bdd00b55

Linux patch 5.3.1

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

 _README|4 +
 1000_linux-5.3.1.patch | 1081 
 2 files changed, 1085 insertions(+)

diff --git a/_README b/_README
index 4403e5a..f9d1f15 100644
--- a/_README
+++ b/_README
@@ -43,6 +43,10 @@ EXPERIMENTAL
 Individual Patch Descriptions:
 --
 
+Patch:  1000_linux-5.3.1.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.3.1
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1000_linux-5.3.1.patch b/1000_linux-5.3.1.patch
new file mode 100644
index 000..7d865ae
--- /dev/null
+++ b/1000_linux-5.3.1.patch
@@ -0,0 +1,1081 @@
+diff --git a/Documentation/filesystems/overlayfs.txt 
b/Documentation/filesystems/overlayfs.txt
+index 1da2f1668f08..845d689e0fd7 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/Documentation/sphinx/automarkup.py 
b/Documentation/sphinx/automarkup.py
+index 77e89c1956d7..a8798369e8f7 100644
+--- a/Documentation/sphinx/automarkup.py
 b/Documentation/sphinx/automarkup.py
+@@ -25,7 +25,7 @@ RE_function = re.compile(r'([\w_][\w\d_]+\(\))')
+ # to the creation of incorrect and confusing cross references.  So
+ # just don't even try with these names.
+ #
+-Skipfuncs = [ 'open', 'close', 'read', 'write', 'fcntl', 'mmap'
++Skipfuncs = [ 'open', 'close', 'read', 'write', 'fcntl', 'mmap',
+   'select', 'poll', 'fork', 'execve', 'clone', 'ioctl']
+ 
+ #
+diff --git a/Makefile b/Makefile
+index 6886f22902c9..f32e8d2e09c3 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 3
+-SUBLEVEL = 0
++SUBLEVEL = 1
+ EXTRAVERSION =
+ NAME = Bobtail Squid
+ 
+diff --git a/arch/arm64/include/asm/pgtable.h 
b/arch/arm64/include/asm/pgtable.h
+index e09760ece844..8eb5c0fbdee6 100644
+--- a/arch/arm64/include/asm/pgtable.h
 b/arch/arm64/include/asm/pgtable.h
+@@ -220,8 +220,10 @@ static inline void set_pte(pte_t *ptep, pte_t pte)
+* Only if the new pte is valid and kernel, otherwise TLB maintenance
+* or update_mmu_cache() have the necessary barriers.
+*/
+-  if (pte_valid_not_user(pte))
++  if (pte_valid_not_user(pte)) {
+   dsb(ishst);
++  isb();
++  }
+ }
+ 
+ extern void __sync_icache_dcache(pte_t pteval);
+@@ -484,8 +486,10 @@ static inline void set_pmd(pmd_t *pmdp, pmd_t pmd)
+ 
+   WRITE_ONCE(*pmdp, pmd);
+ 
+-  if (pmd_valid(pmd))
++  if (pmd_valid(pmd)) {
+   dsb(ishst);
++  isb();
++  }
+ }
+ 
+ static inline void pmd_clear(pmd_t *pmdp)
+@@ -543,8 +547,10 @@ static inline void set_pud(pud_t *pudp, pud_t pud)
+ 
+   WRITE_ONCE(*pudp, pud);
+ 
+-  if (pud_valid(pud))
++  if (pud_valid(pud)) {
+   dsb(ishst);
++  isb();
++  }
+ }
+ 
+ static inline void pud_clear(pud_t *pudp)
+diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
+index 0469aceaa230..485865fd0412 100644
+--- a/drivers/block/floppy.c
 b/drivers/block/floppy.c
+@@ -3780,7 +3780,7 @@ static int compat_getdrvprm(int drive,
+   v.native_format = UDP->native_format;
+   mutex_unlock(&floppy_mutex);
+ 
+-  if (copy_from_user(arg, &v, sizeof(struct compat_floppy_drive_params)))
++  if (copy_to_user(arg, &v, sizeof(struct compat_floppy_drive_params)))
+   return -EFAULT;
+   return 0;
+ }
+@@ -3816,7 +3816,7 @@ static int compat_getdrvstat(int drive, bool poll,
+   v.bufblocks = UDRS->bufblocks;
+   mutex_unlock(&floppy_mutex);
+ 
+-  if (copy_from_user(arg, &v, sizeof(struct compat_floppy_drive_struct)))
++  if (copy_to_user(arg, &v, sizeof(struct compat_floppy_drive_struct)))
+   return -EFAULT;
+   return 0;
+ Eintr:
+diff --git a/drivers/firmware/google/vpd.c b/drivers/firmware/google/vpd.c
+ind

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

2019-09-16 Thread Mike Pagano
commit: 325122d101a2a83f214527d3a0fc62a61e0966de
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Sep 16 11:54:30 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Sep 16 11:54:30 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=325122d1

Kernel patch enables gcc >= v9.1 optimizations for additional CPUs.

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 f86fe5e..4403e5a 100644
--- a/_README
+++ b/_README
@@ -74,3 +74,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 de