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

2018-08-22 Thread Alice Ferrazzi
commit: 517a45fb3e1f8dfc3e9881a2b3818b06261d4e25
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Wed Aug 22 09:56:22 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Wed Aug 22 09:56:27 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=517a45fb

linux kernel 4.17.18

 _README  |4 +
 1017_linux-4.17.18.patch | 1470 ++
 2 files changed, 1474 insertions(+)

diff --git a/_README b/_README
index e0ea866..1887187 100644
--- a/_README
+++ b/_README
@@ -111,6 +111,10 @@ Patch:  1016_linux-4.17.17.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.17.17
 
+Patch:  1017_linux-4.17.18.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.17.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-4.17.18.patch b/1017_linux-4.17.18.patch
new file mode 100644
index 000..efddc43
--- /dev/null
+++ b/1017_linux-4.17.18.patch
@@ -0,0 +1,1470 @@
+diff --git a/Makefile b/Makefile
+index 5ff2040cf3ee..429a1fe0b40b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 17
+-SUBLEVEL = 17
++SUBLEVEL = 18
+ EXTRAVERSION =
+ NAME = Merciless Moray
+ 
+diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
+index 974e58457697..af54d7bbb173 100644
+--- a/drivers/acpi/sleep.c
 b/drivers/acpi/sleep.c
+@@ -338,6 +338,14 @@ static const struct dmi_system_id acpisleep_dmi_table[] 
__initconst = {
+   DMI_MATCH(DMI_PRODUCT_NAME, "K54HR"),
+   },
+   },
++  {
++  .callback = init_nvs_save_s3,
++  .ident = "Asus 1025C",
++  .matches = {
++  DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
++  DMI_MATCH(DMI_PRODUCT_NAME, "1025C"),
++  },
++  },
+   /*
+* https://bugzilla.kernel.org/show_bug.cgi?id=189431
+* Lenovo G50-45 is a platform later than 2012, but needs nvs memory
+diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c
+index 7c6f3f5d9d9a..66ac7fa6e034 100644
+--- a/drivers/isdn/i4l/isdn_common.c
 b/drivers/isdn/i4l/isdn_common.c
+@@ -1640,13 +1640,7 @@ isdn_ioctl(struct file *file, uint cmd, ulong arg)
+   } else
+   return -EINVAL;
+   case IIOCDBGVAR:
+-  if (arg) {
+-  if (copy_to_user(argp, , sizeof(ulong)))
+-  return -EFAULT;
+-  return 0;
+-  } else
+-  return -EINVAL;
+-  break;
++  return -EINVAL;
+   default:
+   if ((cmd & IIOCDRVCTL) == IIOCDRVCTL)
+   cmd = ((cmd >> _IOC_NRSHIFT) & _IOC_NRMASK) & 
ISDN_DRVIOCTL_MASK;
+diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c
+index fc0415771c00..4dd0d868ff88 100644
+--- a/drivers/misc/sram.c
 b/drivers/misc/sram.c
+@@ -407,13 +407,20 @@ static int sram_probe(struct platform_device *pdev)
+   if (init_func) {
+   ret = init_func();
+   if (ret)
+-  return ret;
++  goto err_disable_clk;
+   }
+ 
+   dev_dbg(sram->dev, "SRAM pool: %zu KiB @ 0x%p\n",
+   gen_pool_size(sram->pool) / 1024, sram->virt_base);
+ 
+   return 0;
++
++err_disable_clk:
++  if (sram->clk)
++  clk_disable_unprepare(sram->clk);
++  sram_free_partitions(sram);
++
++  return ret;
+ }
+ 
+ static int sram_remove(struct platform_device *pdev)
+diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 
b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
+index 956860a69797..3bdab972420b 100644
+--- a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
 b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
+@@ -762,7 +762,7 @@ static int hw_atl_b0_hw_packet_filter_set(struct aq_hw_s 
*self,
+ 
+   hw_atl_rpfl2promiscuous_mode_en_set(self, 
IS_FILTER_ENABLED(IFF_PROMISC));
+   hw_atl_rpfl2multicast_flr_en_set(self,
+-   IS_FILTER_ENABLED(IFF_MULTICAST), 0);
++   IS_FILTER_ENABLED(IFF_ALLMULTI), 0);
+ 
+   hw_atl_rpfl2_accept_all_mc_packets_set(self,
+  IS_FILTER_ENABLED(IFF_ALLMULTI));
+diff --git a/drivers/net/ethernet/marvell/mvneta.c 
b/drivers/net/ethernet/marvell/mvneta.c
+index 0ad2f3f7da85..82ac1d10f239 100644
+--- a/drivers/net/ethernet/marvell/mvneta.c
 b/drivers/net/ethernet/marvell/mvneta.c
+@@ -1901,10 +1901,10 @@ static void mvneta_rxq_drop_pkts(struct mvneta_port 
*pp,
+ }
+ 
+ /* Main rx processing when using software buffer management */

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

2018-08-18 Thread Mike Pagano
commit: bb094983a895bf834a2e28e3001333227f669392
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Aug 18 18:09:59 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Aug 18 18:09:59 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=bb094983

Linux patch 4.17.17

 _README  |  4 
 1016_linux-4.17.17.patch | 37 +
 2 files changed, 41 insertions(+)

diff --git a/_README b/_README
index 377ddec..e0ea866 100644
--- a/_README
+++ b/_README
@@ -107,6 +107,10 @@ Patch:  1015_linux-4.17.16.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.17.16
 
+Patch:  1016_linux-4.17.17.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.17.17
+
 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/1016_linux-4.17.17.patch b/1016_linux-4.17.17.patch
new file mode 100644
index 000..d43dfd4
--- /dev/null
+++ b/1016_linux-4.17.17.patch
@@ -0,0 +1,37 @@
+diff --git a/Makefile b/Makefile
+index 8ca595f045c4..5ff2040cf3ee 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 17
+-SUBLEVEL = 16
++SUBLEVEL = 17
+ EXTRAVERSION =
+ NAME = Merciless Moray
+ 
+diff --git a/arch/x86/include/asm/pgtable-invert.h 
b/arch/x86/include/asm/pgtable-invert.h
+index 44b1203ece12..a0c1525f1b6f 100644
+--- a/arch/x86/include/asm/pgtable-invert.h
 b/arch/x86/include/asm/pgtable-invert.h
+@@ -4,9 +4,18 @@
+ 
+ #ifndef __ASSEMBLY__
+ 
++/*
++ * A clear pte value is special, and doesn't get inverted.
++ *
++ * Note that even users that only pass a pgprot_t (rather
++ * than a full pte) won't trigger the special zero case,
++ * because even PAGE_NONE has _PAGE_PROTNONE | _PAGE_ACCESSED
++ * set. So the all zero case really is limited to just the
++ * cleared page table entry case.
++ */
+ static inline bool __pte_needs_invert(u64 val)
+ {
+-  return !(val & _PAGE_PRESENT);
++  return val && !(val & _PAGE_PRESENT);
+ }
+ 
+ /* Get a mask to xor with the page table entry to get the correct pfn. */



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

2018-08-17 Thread Mike Pagano
commit: 319bd276ebc00102a846d13de238ce8fec14ae9c
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Aug 17 19:40:19 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Aug 17 19:40:19 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=319bd276

Removal of redundant patch:

x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled

 _README|  4 ---
 1700_x86-l1tf-config-kvm-build-error-fix.patch | 40 --
 2 files changed, 44 deletions(-)

diff --git a/_README b/_README
index 83fccd5..377ddec 100644
--- a/_README
+++ b/_README
@@ -115,10 +115,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-l1tf-config-kvm-build-error-fix.patch
-From:   http://www.kernel.org
-Desc:   x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
-
 Patch:  2300_enable-poweroff-on-Mac-Pro-11.patch
 From:   
http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/patch/drivers/pci/quirks.c?id=5080ff61a438f3dd80b88b423e1a20791d8a774c
 Desc:   Workaround to enable poweroff on Mac Pro 11. See bug #601964.

diff --git a/1700_x86-l1tf-config-kvm-build-error-fix.patch 
b/1700_x86-l1tf-config-kvm-build-error-fix.patch
deleted file mode 100644
index 88c2ec6..000
--- a/1700_x86-l1tf-config-kvm-build-error-fix.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 Mon Sep 17 00:00:00 2001
-From: Guenter Roeck 
-Date: Wed, 15 Aug 2018 08:38:33 -0700
-Subject: x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
-
-From: Guenter Roeck 
-
-commit 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 upstream.
-
-allmodconfig+CONFIG_INTEL_KVM=n results in the following build error.
-
-  ERROR: "l1tf_vmx_mitigation" [arch/x86/kvm/kvm.ko] undefined!
-
-Fixes: 5b76a3cff011 ("KVM: VMX: Tell the nested hypervisor to skip L1D flush 
on vmentry")
-Reported-by: Meelis Roos 
-Cc: Meelis Roos 
-Cc: Paolo Bonzini 
-Cc: Thomas Gleixner 
-Signed-off-by: Guenter Roeck 
-Signed-off-by: Linus Torvalds 
-Signed-off-by: Greg Kroah-Hartman 
-

- arch/x86/kernel/cpu/bugs.c |3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
 a/arch/x86/kernel/cpu/bugs.c
-+++ b/arch/x86/kernel/cpu/bugs.c
-@@ -648,10 +648,9 @@ void x86_spec_ctrl_setup_ap(void)
- enum l1tf_mitigations l1tf_mitigation __ro_after_init = L1TF_MITIGATION_FLUSH;
- #if IS_ENABLED(CONFIG_KVM_INTEL)
- EXPORT_SYMBOL_GPL(l1tf_mitigation);
--
-+#endif
- enum vmx_l1d_flush_state l1tf_vmx_mitigation = VMENTER_L1D_FLUSH_AUTO;
- EXPORT_SYMBOL_GPL(l1tf_vmx_mitigation);
--#endif
- 
- static void __init l1tf_select_mitigation(void)
- {



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

2018-08-17 Thread Mike Pagano
commit: 2c2807aea9a2fb02322e1f70bedc5d2836585229
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Aug 17 19:27:36 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Aug 17 19:27:36 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=2c2807ae

Linux patch 4.17.16

 _README  |4 +
 1015_linux-4.17.16.patch | 1663 ++
 2 files changed, 1667 insertions(+)

diff --git a/_README b/_README
index a489588..83fccd5 100644
--- a/_README
+++ b/_README
@@ -103,6 +103,10 @@ Patch:  1014_linux-4.17.15.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.17.15
 
+Patch:  1015_linux-4.17.16.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.17.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-4.17.16.patch b/1015_linux-4.17.16.patch
new file mode 100644
index 000..edbea4b
--- /dev/null
+++ b/1015_linux-4.17.16.patch
@@ -0,0 +1,1663 @@
+diff --git a/Documentation/process/changes.rst 
b/Documentation/process/changes.rst
+index ddc029734b25..005d8842a503 100644
+--- a/Documentation/process/changes.rst
 b/Documentation/process/changes.rst
+@@ -35,7 +35,7 @@ binutils   2.20 ld -v
+ flex   2.5.35   flex --version
+ bison  2.0  bison --version
+ util-linux 2.10ofdformat --version
+-module-init-tools  0.9.10   depmod -V
++kmod   13   depmod -V
+ e2fsprogs  1.41.4   e2fsck -V
+ jfsutils   1.1.3fsck.jfs -V
+ reiserfsprogs  3.6.3reiserfsck -V
+@@ -156,12 +156,6 @@ is not build with ``CONFIG_KALLSYMS`` and you have no way 
to rebuild and
+ reproduce the Oops with that option, then you can still decode that Oops
+ with ksymoops.
+ 
+-Module-Init-Tools
+--
+-
+-A new module loader is now in the kernel that requires ``module-init-tools``
+-to use.  It is backward compatible with the 2.4.x series kernels.
+-
+ Mkinitrd
+ 
+ 
+@@ -371,16 +365,17 @@ Util-linux
+ 
+ - 
+ 
++Kmod
++
++
++- 
++- 
++
+ Ksymoops
+ 
+ 
+ - 
+ 
+-Module-Init-Tools
+--
+-
+-- 
+-
+ Mkinitrd
+ 
+ 
+diff --git a/Makefile b/Makefile
+index e8cbf2dd3069..8ca595f045c4 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 17
+-SUBLEVEL = 15
++SUBLEVEL = 16
+ EXTRAVERSION =
+ NAME = Merciless Moray
+ 
+diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
+index 493ff75670ff..8ae5d7ae4af3 100644
+--- a/arch/arm64/mm/mmu.c
 b/arch/arm64/mm/mmu.c
+@@ -977,12 +977,12 @@ int pmd_clear_huge(pmd_t *pmdp)
+   return 1;
+ }
+ 
+-int pud_free_pmd_page(pud_t *pud)
++int pud_free_pmd_page(pud_t *pud, unsigned long addr)
+ {
+   return pud_none(*pud);
+ }
+ 
+-int pmd_free_pte_page(pmd_t *pmd)
++int pmd_free_pte_page(pmd_t *pmd, unsigned long addr)
+ {
+   return pmd_none(*pmd);
+ }
+diff --git a/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S 
b/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S
+index 16c4ccb1f154..d2364c55bbde 100644
+--- a/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S
 b/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S
+@@ -265,7 +265,7 @@ ENTRY(sha256_mb_mgr_get_comp_job_avx2)
+   vpinsrd $1, _args_digest+1*32(state, idx, 4), %xmm0, %xmm0
+   vpinsrd $2, _args_digest+2*32(state, idx, 4), %xmm0, %xmm0
+   vpinsrd $3, _args_digest+3*32(state, idx, 4), %xmm0, %xmm0
+-  vmovd   _args_digest(state , idx, 4) , %xmm0
++  vmovd   _args_digest+4*32(state, idx, 4), %xmm1
+   vpinsrd $1, _args_digest+5*32(state, idx, 4), %xmm1, %xmm1
+   vpinsrd $2, _args_digest+6*32(state, idx, 4), %xmm1, %xmm1
+   vpinsrd $3, _args_digest+7*32(state, idx, 4), %xmm1, %xmm1
+diff --git a/arch/x86/include/asm/i8259.h b/arch/x86/include/asm/i8259.h
+index 5cdcdbd4d892..89789e8c80f6 100644
+--- a/arch/x86/include/asm/i8259.h
 b/arch/x86/include/asm/i8259.h
+@@ -3,6 +3,7 @@
+ #define _ASM_X86_I8259_H
+ 
+ #include 
++#include 
+ 
+ extern unsigned int cached_irq_mask;
+ 
+diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c 
b/arch/x86/kernel/apic/x2apic_uv_x.c
+index d492752f79e1..391f358ebb4c 100644
+--- a/arch/x86/kernel/apic/x2apic_uv_x.c
 b/arch/x86/kernel/apic/x2apic_uv_x.c
+@@ -394,10 +394,10 @@ extern int uv_hub_info_version(void)
+ EXPORT_SYMBOL(uv_hub_info_version);
+ 
+ /* Default UV memory block size is 2GB */
+-static unsigned 

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

2018-08-16 Thread Mike Pagano
commit: 5a8ea77e6169b9a966c3d3c73133410b3e2c6947
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Aug 16 11:47:22 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Aug 16 11:47:22 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5a8ea77e

x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled

 _README|  4 +++
 1700_x86-l1tf-config-kvm-build-error-fix.patch | 40 ++
 2 files changed, 44 insertions(+)

diff --git a/_README b/_README
index ae45bfe..a489588 100644
--- a/_README
+++ b/_README
@@ -111,6 +111,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-l1tf-config-kvm-build-error-fix.patch
+From:   http://www.kernel.org
+Desc:   x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
+
 Patch:  2300_enable-poweroff-on-Mac-Pro-11.patch
 From:   
http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/patch/drivers/pci/quirks.c?id=5080ff61a438f3dd80b88b423e1a20791d8a774c
 Desc:   Workaround to enable poweroff on Mac Pro 11. See bug #601964.

diff --git a/1700_x86-l1tf-config-kvm-build-error-fix.patch 
b/1700_x86-l1tf-config-kvm-build-error-fix.patch
new file mode 100644
index 000..88c2ec6
--- /dev/null
+++ b/1700_x86-l1tf-config-kvm-build-error-fix.patch
@@ -0,0 +1,40 @@
+From 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 Mon Sep 17 00:00:00 2001
+From: Guenter Roeck 
+Date: Wed, 15 Aug 2018 08:38:33 -0700
+Subject: x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
+
+From: Guenter Roeck 
+
+commit 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 upstream.
+
+allmodconfig+CONFIG_INTEL_KVM=n results in the following build error.
+
+  ERROR: "l1tf_vmx_mitigation" [arch/x86/kvm/kvm.ko] undefined!
+
+Fixes: 5b76a3cff011 ("KVM: VMX: Tell the nested hypervisor to skip L1D flush 
on vmentry")
+Reported-by: Meelis Roos 
+Cc: Meelis Roos 
+Cc: Paolo Bonzini 
+Cc: Thomas Gleixner 
+Signed-off-by: Guenter Roeck 
+Signed-off-by: Linus Torvalds 
+Signed-off-by: Greg Kroah-Hartman 
+
+---
+ arch/x86/kernel/cpu/bugs.c |3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+--- a/arch/x86/kernel/cpu/bugs.c
 b/arch/x86/kernel/cpu/bugs.c
+@@ -648,10 +648,9 @@ void x86_spec_ctrl_setup_ap(void)
+ enum l1tf_mitigations l1tf_mitigation __ro_after_init = L1TF_MITIGATION_FLUSH;
+ #if IS_ENABLED(CONFIG_KVM_INTEL)
+ EXPORT_SYMBOL_GPL(l1tf_mitigation);
+-
++#endif
+ enum vmx_l1d_flush_state l1tf_vmx_mitigation = VMENTER_L1D_FLUSH_AUTO;
+ EXPORT_SYMBOL_GPL(l1tf_vmx_mitigation);
+-#endif
+ 
+ static void __init l1tf_select_mitigation(void)
+ {



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

2018-08-09 Thread Mike Pagano
commit: 8901714e54f8d9f28b0236baafa53fea8ace890b
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Aug  9 10:55:40 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Aug  9 10:55:40 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=8901714e

Linux patch 4.17.14

 _README  |   4 +
 1013_linux-4.17.14.patch | 692 +++
 2 files changed, 696 insertions(+)

diff --git a/_README b/_README
index ba82da5..102b8df 100644
--- a/_README
+++ b/_README
@@ -95,6 +95,10 @@ Patch:  1012_linux-4.17.13.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.17.13
 
+Patch:  1013_linux-4.17.14.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.17.14
+
 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/1013_linux-4.17.14.patch b/1013_linux-4.17.14.patch
new file mode 100644
index 000..1e63651
--- /dev/null
+++ b/1013_linux-4.17.14.patch
@@ -0,0 +1,692 @@
+diff --git a/Makefile b/Makefile
+index 2534e51de1db..ce4248f558d1 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 17
+-SUBLEVEL = 13
++SUBLEVEL = 14
+ EXTRAVERSION =
+ NAME = Merciless Moray
+ 
+diff --git a/arch/x86/events/intel/uncore.h b/arch/x86/events/intel/uncore.h
+index 414dc7e7c950..041b77692bfa 100644
+--- a/arch/x86/events/intel/uncore.h
 b/arch/x86/events/intel/uncore.h
+@@ -23,7 +23,7 @@
+ #define UNCORE_PCI_DEV_TYPE(data) ((data >> 8) & 0xff)
+ #define UNCORE_PCI_DEV_IDX(data)  (data & 0xff)
+ #define UNCORE_EXTRA_PCI_DEV  0xff
+-#define UNCORE_EXTRA_PCI_DEV_MAX  3
++#define UNCORE_EXTRA_PCI_DEV_MAX  4
+ 
+ #define UNCORE_EVENT_CONSTRAINT(c, n) EVENT_CONSTRAINT(c, n, 0xff)
+ 
+diff --git a/arch/x86/events/intel/uncore_snbep.c 
b/arch/x86/events/intel/uncore_snbep.c
+index 77076a102e34..df2d69cb136a 100644
+--- a/arch/x86/events/intel/uncore_snbep.c
 b/arch/x86/events/intel/uncore_snbep.c
+@@ -1029,6 +1029,7 @@ void snbep_uncore_cpu_init(void)
+ enum {
+   SNBEP_PCI_QPI_PORT0_FILTER,
+   SNBEP_PCI_QPI_PORT1_FILTER,
++  BDX_PCI_QPI_PORT2_FILTER,
+   HSWEP_PCI_PCU_3,
+ };
+ 
+@@ -3286,15 +3287,18 @@ static const struct pci_device_id bdx_uncore_pci_ids[] 
= {
+   },
+   { /* QPI Port 0 filter  */
+   PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x6f86),
+-  .driver_data = UNCORE_PCI_DEV_DATA(UNCORE_EXTRA_PCI_DEV, 0),
++  .driver_data = UNCORE_PCI_DEV_DATA(UNCORE_EXTRA_PCI_DEV,
++ SNBEP_PCI_QPI_PORT0_FILTER),
+   },
+   { /* QPI Port 1 filter  */
+   PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x6f96),
+-  .driver_data = UNCORE_PCI_DEV_DATA(UNCORE_EXTRA_PCI_DEV, 1),
++  .driver_data = UNCORE_PCI_DEV_DATA(UNCORE_EXTRA_PCI_DEV,
++ SNBEP_PCI_QPI_PORT1_FILTER),
+   },
+   { /* QPI Port 2 filter  */
+   PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x6f46),
+-  .driver_data = UNCORE_PCI_DEV_DATA(UNCORE_EXTRA_PCI_DEV, 2),
++  .driver_data = UNCORE_PCI_DEV_DATA(UNCORE_EXTRA_PCI_DEV,
++ BDX_PCI_QPI_PORT2_FILTER),
+   },
+   { /* PCU.3 (for Capability registers) */
+   PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x6fc0),
+diff --git a/block/blk-core.c b/block/blk-core.c
+index 47ab2d9d02d9..77938b512a71 100644
+--- a/block/blk-core.c
 b/block/blk-core.c
+@@ -2174,11 +2174,12 @@ static inline bool bio_check_ro(struct bio *bio, 
struct hd_struct *part)
+   if (part->policy && op_is_write(bio_op(bio))) {
+   char b[BDEVNAME_SIZE];
+ 
+-  printk(KERN_ERR
++  WARN_ONCE(1,
+  "generic_make_request: Trying to write "
+   "to read-only block-device %s (partno %d)\n",
+   bio_devname(bio, b), part->partno);
+-  return true;
++  /* Older lvm-tools actually trigger this */
++  return false;
+   }
+ 
+   return false;
+diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
+index d7267dd9c7bf..6fca5e64cffb 100644
+--- a/drivers/i2c/busses/i2c-imx.c
 b/drivers/i2c/busses/i2c-imx.c
+@@ -377,6 +377,7 @@ static int i2c_imx_dma_xfer(struct imx_i2c_struct *i2c_imx,
+   goto err_desc;
+   }
+ 
++  reinit_completion(>cmd_complete);
+   txdesc->callback = i2c_imx_dma_callback;
+   txdesc->callback_param = i2c_imx;
+   if (dma_submit_error(dmaengine_submit(txdesc))) {
+@@ -631,7 +632,6 @@ static int i2c_imx_dma_write(struct imx_i2c_struct 
*i2c_imx,
+* The first byte must be transmitted by the CPU.
+*/
+   imx_i2c_write_reg(msgs->addr << 1, i2c_imx, IMX_I2C_I2DR);
+-  

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

2018-08-07 Thread Mike Pagano
commit: 88db9e5fa6f772f48e71e0ed79fd01a8e4e4c66a
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Aug  7 18:10:08 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Aug  7 18:10:08 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=88db9e5f

Linux patch 4.17.13

 _README  |4 +
 1012_linux-4.17.13.patch | 1052 ++
 2 files changed, 1056 insertions(+)

diff --git a/_README b/_README
index 6e0bb48..ba82da5 100644
--- a/_README
+++ b/_README
@@ -91,6 +91,10 @@ Patch:  1011_linux-4.17.12.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.17.12
 
+Patch:  1012_linux-4.17.13.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.17.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-4.17.13.patch b/1012_linux-4.17.13.patch
new file mode 100644
index 000..d684e3c
--- /dev/null
+++ b/1012_linux-4.17.13.patch
@@ -0,0 +1,1052 @@
+diff --git a/Makefile b/Makefile
+index 790e8faf0ddc..2534e51de1db 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 17
+-SUBLEVEL = 12
++SUBLEVEL = 13
+ EXTRAVERSION =
+ NAME = Merciless Moray
+ 
+diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S
+index 3166b9674429..b9699e63ceda 100644
+--- a/arch/x86/entry/entry_64.S
 b/arch/x86/entry/entry_64.S
+@@ -981,7 +981,7 @@ ENTRY(\sym)
+ 
+   call\do_sym
+ 
+-  jmp error_exit  /* %ebx: no swapgs flag */
++  jmp error_exit
+   .endif
+ END(\sym)
+ .endm
+@@ -1222,7 +1222,6 @@ END(paranoid_exit)
+ 
+ /*
+  * Save all registers in pt_regs, and switch GS if needed.
+- * Return: EBX=0: came from user mode; EBX=1: otherwise
+  */
+ ENTRY(error_entry)
+   UNWIND_HINT_FUNC
+@@ -1269,7 +1268,6 @@ ENTRY(error_entry)
+* for these here too.
+*/
+ .Lerror_kernelspace:
+-  incl%ebx
+   leaqnative_irq_return_iret(%rip), %rcx
+   cmpq%rcx, RIP+8(%rsp)
+   je  .Lerror_bad_iret
+@@ -1303,28 +1301,20 @@ ENTRY(error_entry)
+ 
+   /*
+* Pretend that the exception came from user mode: set up pt_regs
+-   * as if we faulted immediately after IRET and clear EBX so that
+-   * error_exit knows that we will be returning to user mode.
++   * as if we faulted immediately after IRET.
+*/
+   mov %rsp, %rdi
+   callfixup_bad_iret
+   mov %rax, %rsp
+-  decl%ebx
+   jmp .Lerror_entry_from_usermode_after_swapgs
+ END(error_entry)
+ 
+-
+-/*
+- * On entry, EBX is a "return to kernel mode" flag:
+- *   1: already in kernel mode, don't need SWAPGS
+- *   0: user gsbase is loaded, we need SWAPGS and standard preparation for 
return to usermode
+- */
+ ENTRY(error_exit)
+   UNWIND_HINT_REGS
+   DISABLE_INTERRUPTS(CLBR_ANY)
+   TRACE_IRQS_OFF
+-  testl   %ebx, %ebx
+-  jnz retint_kernel
++  testb   $3, CS(%rsp)
++  jz  retint_kernel
+   jmp retint_user
+ END(error_exit)
+ 
+diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
+index 2aabd4cb0e3f..adbda5847b14 100644
+--- a/arch/x86/kernel/apic/apic.c
 b/arch/x86/kernel/apic/apic.c
+@@ -573,6 +573,9 @@ static u32 skx_deadline_rev(void)
+   case 0x04: return 0x0214;
+   }
+ 
++  if (boot_cpu_data.x86_stepping > 4)
++  return 0;
++
+   return ~0U;
+ }
+ 
+diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
+index a3bbac8ef4d0..7a28959f1985 100644
+--- a/arch/x86/kvm/vmx.c
 b/arch/x86/kvm/vmx.c
+@@ -7660,6 +7660,8 @@ static int enter_vmx_operation(struct kvm_vcpu *vcpu)
+HRTIMER_MODE_REL_PINNED);
+   vmx->nested.preemption_timer.function = vmx_preemption_timer_fn;
+ 
++  vmx->nested.vpid02 = allocate_vpid();
++
+   vmx->nested.vmxon = true;
+   return 0;
+ 
+@@ -10108,11 +10110,9 @@ static struct kvm_vcpu *vmx_create_vcpu(struct kvm 
*kvm, unsigned int id)
+   goto free_vmcs;
+   }
+ 
+-  if (nested) {
++  if (nested)
+   nested_vmx_setup_ctls_msrs(>nested.msrs,
+  kvm_vcpu_apicv_active(>vcpu));
+-  vmx->nested.vpid02 = allocate_vpid();
+-  }
+ 
+   vmx->nested.posted_intr_nv = -1;
+   vmx->nested.current_vmptr = -1ull;
+@@ -10129,7 +10129,6 @@ static struct kvm_vcpu *vmx_create_vcpu(struct kvm 
*kvm, unsigned int id)
+   return >vcpu;
+ 
+ free_vmcs:
+-  free_vpid(vmx->nested.vpid02);
+   free_loaded_vmcs(vmx->loaded_vmcs);
+ free_msrs:
+   kfree(vmx->guest_msrs);
+diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c
+index 84fbfaba8404..d320954072cb 100644
+--- a/arch/x86/platform/efi/efi_64.c
 b/arch/x86/platform/efi/efi_64.c
+@@ 

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

2018-07-28 Thread Mike Pagano
commit: 4465d65275166037e241c0f92c3d23d28c03bbe5
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Jul 28 10:41:00 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Jul 28 10:41:00 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4465d652

Linux patch 4.17.11

 _README  |4 +
 1010_linux-4.17.11.patch | 3321 ++
 2 files changed, 3325 insertions(+)

diff --git a/_README b/_README
index f2abee1..a0836f2 100644
--- a/_README
+++ b/_README
@@ -83,6 +83,10 @@ Patch:  1009_linux-4.17.10.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.17.10
 
+Patch:  1010_linux-4.17.11.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.17.11
+
 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/1010_linux-4.17.11.patch b/1010_linux-4.17.11.patch
new file mode 100644
index 000..a9e2e1a
--- /dev/null
+++ b/1010_linux-4.17.11.patch
@@ -0,0 +1,3321 @@
+diff --git a/Makefile b/Makefile
+index 0ab689c38e82..e2664c641109 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 17
+-SUBLEVEL = 10
++SUBLEVEL = 11
+ EXTRAVERSION =
+ NAME = Merciless Moray
+ 
+diff --git a/arch/mips/ath79/common.c b/arch/mips/ath79/common.c
+index 10a405d593df..c782b10ddf50 100644
+--- a/arch/mips/ath79/common.c
 b/arch/mips/ath79/common.c
+@@ -58,7 +58,7 @@ EXPORT_SYMBOL_GPL(ath79_ddr_ctrl_init);
+ 
+ void ath79_ddr_wb_flush(u32 reg)
+ {
+-  void __iomem *flush_reg = ath79_ddr_wb_flush_base + reg;
++  void __iomem *flush_reg = ath79_ddr_wb_flush_base + (reg * 4);
+ 
+   /* Flush the DDR write buffer. */
+   __raw_writel(0x1, flush_reg);
+diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c
+index 9632436d74d7..c2e94cf5ecda 100644
+--- a/arch/mips/pci/pci.c
 b/arch/mips/pci/pci.c
+@@ -54,5 +54,5 @@ void pci_resource_to_user(const struct pci_dev *dev, int bar,
+   phys_addr_t size = resource_size(rsrc);
+ 
+   *start = fixup_bigphys_addr(rsrc->start, size);
+-  *end = rsrc->start + size;
++  *end = rsrc->start + size - 1;
+ }
+diff --git a/arch/powerpc/include/asm/mmu_context.h 
b/arch/powerpc/include/asm/mmu_context.h
+index 1835ca1505d6..7472ffa76fd0 100644
+--- a/arch/powerpc/include/asm/mmu_context.h
 b/arch/powerpc/include/asm/mmu_context.h
+@@ -35,9 +35,9 @@ extern struct mm_iommu_table_group_mem_t *mm_iommu_lookup_rm(
+ extern struct mm_iommu_table_group_mem_t *mm_iommu_find(struct mm_struct *mm,
+   unsigned long ua, unsigned long entries);
+ extern long mm_iommu_ua_to_hpa(struct mm_iommu_table_group_mem_t *mem,
+-  unsigned long ua, unsigned long *hpa);
++  unsigned long ua, unsigned int pageshift, unsigned long *hpa);
+ extern long mm_iommu_ua_to_hpa_rm(struct mm_iommu_table_group_mem_t *mem,
+-  unsigned long ua, unsigned long *hpa);
++  unsigned long ua, unsigned int pageshift, unsigned long *hpa);
+ extern long mm_iommu_mapped_inc(struct mm_iommu_table_group_mem_t *mem);
+ extern void mm_iommu_mapped_dec(struct mm_iommu_table_group_mem_t *mem);
+ #endif
+diff --git a/arch/powerpc/kvm/book3s_64_vio.c 
b/arch/powerpc/kvm/book3s_64_vio.c
+index 4dffa611376d..e14cec6bc339 100644
+--- a/arch/powerpc/kvm/book3s_64_vio.c
 b/arch/powerpc/kvm/book3s_64_vio.c
+@@ -433,7 +433,7 @@ long kvmppc_tce_iommu_map(struct kvm *kvm, struct 
iommu_table *tbl,
+   /* This only handles v2 IOMMU type, v1 is handled via ioctl() */
+   return H_TOO_HARD;
+ 
+-  if (WARN_ON_ONCE(mm_iommu_ua_to_hpa(mem, ua, )))
++  if (WARN_ON_ONCE(mm_iommu_ua_to_hpa(mem, ua, tbl->it_page_shift, )))
+   return H_HARDWARE;
+ 
+   if (mm_iommu_mapped_inc(mem))
+diff --git a/arch/powerpc/kvm/book3s_64_vio_hv.c 
b/arch/powerpc/kvm/book3s_64_vio_hv.c
+index 6651f736a0b1..eeb9e6651cc4 100644
+--- a/arch/powerpc/kvm/book3s_64_vio_hv.c
 b/arch/powerpc/kvm/book3s_64_vio_hv.c
+@@ -262,7 +262,8 @@ static long kvmppc_rm_tce_iommu_map(struct kvm *kvm, 
struct iommu_table *tbl,
+   if (!mem)
+   return H_TOO_HARD;
+ 
+-  if (WARN_ON_ONCE_RM(mm_iommu_ua_to_hpa_rm(mem, ua, )))
++  if (WARN_ON_ONCE_RM(mm_iommu_ua_to_hpa_rm(mem, ua, tbl->it_page_shift,
++  )))
+   return H_HARDWARE;
+ 
+   pua = (void *) vmalloc_to_phys(pua);
+@@ -431,7 +432,8 @@ long kvmppc_rm_h_put_tce_indirect(struct kvm_vcpu *vcpu,
+ 
+   mem = mm_iommu_lookup_rm(vcpu->kvm->mm, ua, IOMMU_PAGE_SIZE_4K);
+   if (mem)
+-  prereg = mm_iommu_ua_to_hpa_rm(mem, ua, ) == 0;
++  prereg = mm_iommu_ua_to_hpa_rm(mem, ua,
++  IOMMU_PAGE_SHIFT_4K, ) == 0;
+   }
+ 
+   if (!prereg) {
+diff --git 

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

2018-07-25 Thread Mike Pagano
commit: 860315db25abb93d3480d577b4b51876b52ed8cb
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jul 25 12:19:23 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jul 25 12:19:23 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=860315db

Removal of redundant patch: 
1700_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch

 _README|  4 --
 ...ne-pvclock-pvti-cpu0-va-setter-for-X86-32.patch | 55 --
 2 files changed, 59 deletions(-)

diff --git a/_README b/_README
index 148c985..f2abee1 100644
--- a/_README
+++ b/_README
@@ -91,10 +91,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_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch
-From:   https://marc.info/?l=kvm=152960320011592=2
-Desc:   kvmclock: Define pvclock_pvti_cpu0_va setter for X86_32. See bug 
#658544.
-
 Patch:  2300_enable-poweroff-on-Mac-Pro-11.patch
 From:   
http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/patch/drivers/pci/quirks.c?id=5080ff61a438f3dd80b88b423e1a20791d8a774c
 Desc:   Workaround to enable poweroff on Mac Pro 11. See bug #601964.

diff --git a/1700_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch 
b/1700_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch
deleted file mode 100644
index 0732c51..000
--- a/1700_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-pvti_cpu0_va is the address of shared kvmclock data structure.
-
-pvti_cpu0_va is currently kept unset (1) on 32 bit systems, (2) when
-kvmclock vsyscall is disabled, and (3) if kvmclock is not stable.
-This poses a problem, because kvm_ptp needs pvti_cpu0_va, but (1) can
-work on 32 bit, (2) has little relation to the vsyscall, and (3) does
-not need stable kvmclock (although kvmclock won't be used for system
-clock if it's not stable, so kvm_ptp is pointless in that case).
-
-Expose pvti_cpu0_va whenever kvmclock is enabled to allow all users to
-work with it.
-
-This fixes a regression found on Gentoo: https://bugs.gentoo.org/658544.
-
-Fixes: 9f08890ab906 ("x86/pvclock: add setter for pvclock_pvti_cpu0_va")
-Reported-by: Andreas Steinmetz 
-Signed-off-by: Radim Krčmář 

- arch/x86/kernel/kvmclock.c | 11 +--
- 1 file changed, 5 insertions(+), 6 deletions(-)
-
-diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c
-index bf8d1eb7fca3..46ffa8327563 100644
 a/arch/x86/kernel/kvmclock.c
-+++ b/arch/x86/kernel/kvmclock.c
-@@ -319,6 +319,8 @@ void __init kvmclock_init(void)
-   printk(KERN_INFO "kvm-clock: Using msrs %x and %x",
-   msr_kvm_system_time, msr_kvm_wall_clock);
- 
-+  pvclock_set_pvti_cpu0_va(hv_clock);
-+
-   if (kvm_para_has_feature(KVM_FEATURE_CLOCKSOURCE_STABLE_BIT))
-   pvclock_set_flags(PVCLOCK_TSC_STABLE_BIT);
- 
-@@ -366,14 +368,11 @@ int __init kvm_setup_vsyscall_timeinfo(void)
-   vcpu_time = _clock[cpu].pvti;
-   flags = pvclock_read_flags(vcpu_time);
- 
--  if (!(flags & PVCLOCK_TSC_STABLE_BIT)) {
--  put_cpu();
--  return 1;
--  }
--
--  pvclock_set_pvti_cpu0_va(hv_clock);
-   put_cpu();
- 
-+  if (!(flags & PVCLOCK_TSC_STABLE_BIT))
-+  return 1;
-+
-   kvm_clock.archdata.vclock_mode = VCLOCK_PVCLOCK;
- #endif
-   return 0;
--- 
-2.18.0.rc2
-



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

2018-07-25 Thread Mike Pagano
commit: 003f68bb0343eec1d19eec6a761fae1405ddad26
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jul 25 10:28:04 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jul 25 10:28:04 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=003f68bb

Linux patch 4.17.10

 _README  |4 +
 1009_linux-4.17.10.patch | 2457 ++
 2 files changed, 2461 insertions(+)

diff --git a/_README b/_README
index 378d9da..148c985 100644
--- a/_README
+++ b/_README
@@ -79,6 +79,10 @@ Patch:  1008_linux-4.17.9.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.17.9
 
+Patch:  1009_linux-4.17.10.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.17.10
+
 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/1009_linux-4.17.10.patch b/1009_linux-4.17.10.patch
new file mode 100644
index 000..dc09395
--- /dev/null
+++ b/1009_linux-4.17.10.patch
@@ -0,0 +1,2457 @@
+diff --git a/Makefile b/Makefile
+index 693fde3aa317..0ab689c38e82 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 17
+-SUBLEVEL = 9
++SUBLEVEL = 10
+ EXTRAVERSION =
+ NAME = Merciless Moray
+ 
+diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c
+index 89faa6f4de47..6a92843c0699 100644
+--- a/arch/alpha/kernel/osf_sys.c
 b/arch/alpha/kernel/osf_sys.c
+@@ -1183,13 +1183,10 @@ SYSCALL_DEFINE2(osf_getrusage, int, who, struct 
rusage32 __user *, ru)
+ SYSCALL_DEFINE4(osf_wait4, pid_t, pid, int __user *, ustatus, int, options,
+   struct rusage32 __user *, ur)
+ {
+-  unsigned int status = 0;
+   struct rusage r;
+-  long err = kernel_wait4(pid, , options, );
++  long err = kernel_wait4(pid, ustatus, options, );
+   if (err <= 0)
+   return err;
+-  if (put_user(status, ustatus))
+-  return -EFAULT;
+   if (!ur)
+   return err;
+   if (put_tv_to_tv32(>ru_utime, _utime))
+diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
+index d76bf4a83740..bc0bcf01ec98 100644
+--- a/arch/arc/Kconfig
 b/arch/arc/Kconfig
+@@ -408,7 +408,7 @@ config ARC_HAS_DIV_REM
+ 
+ config ARC_HAS_ACCL_REGS
+   bool "Reg Pair ACCL:ACCH (FPU and/or MPY > 6)"
+-  default n
++  default y
+   help
+ Depending on the configuration, CPU can contain accumulator reg-pair
+ (also referred to as r58:r59). These can also be used by gcc as GPR so
+diff --git a/arch/arc/configs/axs101_defconfig 
b/arch/arc/configs/axs101_defconfig
+index 09f85154c5a4..a635ea972304 100644
+--- a/arch/arc/configs/axs101_defconfig
 b/arch/arc/configs/axs101_defconfig
+@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
+ # CONFIG_UTS_NS is not set
+ # CONFIG_PID_NS is not set
+ CONFIG_BLK_DEV_INITRD=y
+-CONFIG_INITRAMFS_SOURCE="../arc_initramfs/"
+ CONFIG_EMBEDDED=y
+ CONFIG_PERF_EVENTS=y
+ # CONFIG_VM_EVENT_COUNTERS is not set
+diff --git a/arch/arc/configs/axs103_defconfig 
b/arch/arc/configs/axs103_defconfig
+index 09fed3ef22b6..aa507e423075 100644
+--- a/arch/arc/configs/axs103_defconfig
 b/arch/arc/configs/axs103_defconfig
+@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
+ # CONFIG_UTS_NS is not set
+ # CONFIG_PID_NS is not set
+ CONFIG_BLK_DEV_INITRD=y
+-CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
+ CONFIG_EMBEDDED=y
+ CONFIG_PERF_EVENTS=y
+ # CONFIG_VM_EVENT_COUNTERS is not set
+diff --git a/arch/arc/configs/axs103_smp_defconfig 
b/arch/arc/configs/axs103_smp_defconfig
+index ea2f6d817d1a..eba07f468654 100644
+--- a/arch/arc/configs/axs103_smp_defconfig
 b/arch/arc/configs/axs103_smp_defconfig
+@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
+ # CONFIG_UTS_NS is not set
+ # CONFIG_PID_NS is not set
+ CONFIG_BLK_DEV_INITRD=y
+-CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
+ CONFIG_EMBEDDED=y
+ CONFIG_PERF_EVENTS=y
+ # CONFIG_VM_EVENT_COUNTERS is not set
+diff --git a/arch/arc/configs/haps_hs_defconfig 
b/arch/arc/configs/haps_hs_defconfig
+index ab231c040efe..098b19fbaa51 100644
+--- a/arch/arc/configs/haps_hs_defconfig
 b/arch/arc/configs/haps_hs_defconfig
+@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
+ # CONFIG_UTS_NS is not set
+ # CONFIG_PID_NS is not set
+ CONFIG_BLK_DEV_INITRD=y
+-CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
+ CONFIG_EXPERT=y
+ CONFIG_PERF_EVENTS=y
+ # CONFIG_COMPAT_BRK is not set
+diff --git a/arch/arc/configs/haps_hs_smp_defconfig 
b/arch/arc/configs/haps_hs_smp_defconfig
+index cf449cbf440d..0104c404d897 100644
+--- a/arch/arc/configs/haps_hs_smp_defconfig
 b/arch/arc/configs/haps_hs_smp_defconfig
+@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
+ # CONFIG_UTS_NS is not set
+ # CONFIG_PID_NS is not set
+ CONFIG_BLK_DEV_INITRD=y
+-CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
+ CONFIG_EMBEDDED=y
+ CONFIG_PERF_EVENTS=y
+ # CONFIG_VM_EVENT_COUNTERS is not set
+diff --git 

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

2018-07-18 Thread Mike Pagano
commit: f918c66c6091276f7ffd7c8aae48471c08334cdb
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jul 18 11:18:25 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jul 18 11:18:25 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=f918c66c

Linux patch 4.17.8

 _README |  4 
 1007_linux-4.17.8.patch | 48 
 2 files changed, 52 insertions(+)

diff --git a/_README b/_README
index a165e9a..5c3b875 100644
--- a/_README
+++ b/_README
@@ -71,6 +71,10 @@ Patch:  1006_linux-4.17.7.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.17.7
 
+Patch:  1007_linux-4.17.8.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.17.8
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1007_linux-4.17.8.patch b/1007_linux-4.17.8.patch
new file mode 100644
index 000..bfe8221
--- /dev/null
+++ b/1007_linux-4.17.8.patch
@@ -0,0 +1,48 @@
+diff --git a/Makefile b/Makefile
+index 5c9f331f29c0..7cc36fe18dbb 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 17
+-SUBLEVEL = 7
++SUBLEVEL = 8
+ EXTRAVERSION =
+ NAME = Merciless Moray
+ 
+diff --git a/include/linux/mm.h b/include/linux/mm.h
+index 02a616e2f17d..d14261d6b213 100644
+--- a/include/linux/mm.h
 b/include/linux/mm.h
+@@ -2081,7 +2081,7 @@ extern int __meminit __early_pfn_to_nid(unsigned long 
pfn,
+   struct mminit_pfnnid_cache *state);
+ #endif
+ 
+-#ifdef CONFIG_HAVE_MEMBLOCK
++#if defined(CONFIG_HAVE_MEMBLOCK) && !defined(CONFIG_FLAT_NODE_MEM_MAP)
+ void zero_resv_unavail(void);
+ #else
+ static inline void zero_resv_unavail(void) {}
+diff --git a/mm/page_alloc.c b/mm/page_alloc.c
+index 322cb12a142f..7b841a764dd0 100644
+--- a/mm/page_alloc.c
 b/mm/page_alloc.c
+@@ -6377,7 +6377,7 @@ void __paginginit free_area_init_node(int nid, unsigned 
long *zones_size,
+   free_area_init_core(pgdat);
+ }
+ 
+-#ifdef CONFIG_HAVE_MEMBLOCK
++#if defined(CONFIG_HAVE_MEMBLOCK) && !defined(CONFIG_FLAT_NODE_MEM_MAP)
+ /*
+  * Only struct pages that are backed by physical memory are zeroed and
+  * initialized by going through __init_single_page(). But, there are some
+@@ -6415,7 +6415,7 @@ void __paginginit zero_resv_unavail(void)
+   if (pgcnt)
+   pr_info("Reserved but unavailable: %lld pages", pgcnt);
+ }
+-#endif /* CONFIG_HAVE_MEMBLOCK */
++#endif /* CONFIG_HAVE_MEMBLOCK && !CONFIG_FLAT_NODE_MEM_MAP */
+ 
+ #ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP
+ 



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

2018-07-17 Thread Mike Pagano
commit: c054eed8e07c74be300906a57710035d78899d71
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Jul 17 16:18:10 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Jul 17 16:18:10 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c054eed8

Linux patch 4.17.7

 _README |4 +
 1006_linux-4.17.7.patch | 4347 +++
 2 files changed, 4351 insertions(+)

diff --git a/_README b/_README
index b414442..a165e9a 100644
--- a/_README
+++ b/_README
@@ -67,6 +67,10 @@ Patch:  1005_linux-4.17.6.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.17.6
 
+Patch:  1006_linux-4.17.7.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.17.7
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1006_linux-4.17.7.patch b/1006_linux-4.17.7.patch
new file mode 100644
index 000..2f4965d
--- /dev/null
+++ b/1006_linux-4.17.7.patch
@@ -0,0 +1,4347 @@
+diff --git a/Documentation/kbuild/kbuild.txt b/Documentation/kbuild/kbuild.txt
+index 6c9c69ec3986..0fa16b461256 100644
+--- a/Documentation/kbuild/kbuild.txt
 b/Documentation/kbuild/kbuild.txt
+@@ -148,15 +148,6 @@ stripped after they are installed.  If INSTALL_MOD_STRIP 
is '1', then
+ the default option --strip-debug will be used.  Otherwise,
+ INSTALL_MOD_STRIP value will be used as the options to the strip command.
+ 
+-INSTALL_FW_PATH
+---
+-INSTALL_FW_PATH specifies where to install the firmware blobs.
+-The default value is:
+-
+-$(INSTALL_MOD_PATH)/lib/firmware
+-
+-The value can be overridden in which case the default value is ignored.
+-
+ INSTALL_HDR_PATH
+ --
+ INSTALL_HDR_PATH specifies where to install user space headers when
+diff --git a/Makefile b/Makefile
+index 1a885c8f82ef..5c9f331f29c0 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 17
+-SUBLEVEL = 6
++SUBLEVEL = 7
+ EXTRAVERSION =
+ NAME = Merciless Moray
+ 
+diff --git a/arch/arm/boot/dts/armada-38x.dtsi 
b/arch/arm/boot/dts/armada-38x.dtsi
+index 4cc09e43eea2..e8309ecc32b9 100644
+--- a/arch/arm/boot/dts/armada-38x.dtsi
 b/arch/arm/boot/dts/armada-38x.dtsi
+@@ -547,7 +547,7 @@
+ 
+   thermal: thermal@e8078 {
+   compatible = "marvell,armada380-thermal";
+-  reg = <0xe4078 0x4>, <0xe4074 0x4>;
++  reg = <0xe4078 0x4>, <0xe4070 0x8>;
+   status = "okay";
+   };
+ 
+diff --git a/arch/arm64/include/asm/simd.h b/arch/arm64/include/asm/simd.h
+index fa8b3fe932e6..6495cc51246f 100644
+--- a/arch/arm64/include/asm/simd.h
 b/arch/arm64/include/asm/simd.h
+@@ -29,20 +29,15 @@ DECLARE_PER_CPU(bool, kernel_neon_busy);
+ static __must_check inline bool may_use_simd(void)
+ {
+   /*
+-   * The raw_cpu_read() is racy if called with preemption enabled.
+-   * This is not a bug: kernel_neon_busy is only set when
+-   * preemption is disabled, so we cannot migrate to another CPU
+-   * while it is set, nor can we migrate to a CPU where it is set.
+-   * So, if we find it clear on some CPU then we're guaranteed to
+-   * find it clear on any CPU we could migrate to.
+-   *
+-   * If we are in between kernel_neon_begin()...kernel_neon_end(),
+-   * the flag will be set, but preemption is also disabled, so we
+-   * can't migrate to another CPU and spuriously see it become
+-   * false.
++   * kernel_neon_busy is only set while preemption is disabled,
++   * and is clear whenever preemption is enabled. Since
++   * this_cpu_read() is atomic w.r.t. preemption, kernel_neon_busy
++   * cannot change under our feet -- if it's set we cannot be
++   * migrated, and if it's clear we cannot be migrated to a CPU
++   * where it is set.
+*/
+   return !in_irq() && !irqs_disabled() && !in_nmi() &&
+-  !raw_cpu_read(kernel_neon_busy);
++  !this_cpu_read(kernel_neon_busy);
+ }
+ 
+ #else /* ! CONFIG_KERNEL_MODE_NEON */
+diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c
+index 3775a8d694fb..d4c59d9dca5b 100644
+--- a/arch/mips/kernel/process.c
 b/arch/mips/kernel/process.c
+@@ -29,6 +29,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #include 
+ #include 
+@@ -655,28 +656,42 @@ unsigned long arch_align_stack(unsigned long sp)
+   return sp & ALMASK;
+ }
+ 
+-static void arch_dump_stack(void *info)
++static DEFINE_PER_CPU(call_single_data_t, backtrace_csd);
++static struct cpumask backtrace_csd_busy;
++
++static void handle_backtrace(void *info)
+ {
+-  struct pt_regs *regs;
++  nmi_cpu_backtrace(get_irq_regs());
++ 

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

2018-07-12 Thread Alice Ferrazzi
commit: 8d4733995b6d3df95909b5a116fae17c658d9555
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Thu Jul 12 15:14:05 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Thu Jul 12 15:14:05 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=8d473399

Update to linux kernel 4.17.6

 _README |4 +
 1005_linux-4.17.6.patch | 2386 +++
 2 files changed, 2390 insertions(+)

diff --git a/_README b/_README
index 33f7bd8..b414442 100644
--- a/_README
+++ b/_README
@@ -63,6 +63,10 @@ Patch:  1004_linux-4.17.5.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.17.5
 
+Patch:  1005_linux-4.17.6.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.17.6
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1005_linux-4.17.6.patch b/1005_linux-4.17.6.patch
new file mode 100644
index 000..7f17226
--- /dev/null
+++ b/1005_linux-4.17.6.patch
@@ -0,0 +1,2386 @@
+diff --git a/Makefile b/Makefile
+index e4ddbad49636..1a885c8f82ef 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 17
+-SUBLEVEL = 5
++SUBLEVEL = 6
+ EXTRAVERSION =
+ NAME = Merciless Moray
+ 
+diff --git a/arch/arm/boot/dts/am3517.dtsi b/arch/arm/boot/dts/am3517.dtsi
+index ca294914bbb1..4b6062b631b1 100644
+--- a/arch/arm/boot/dts/am3517.dtsi
 b/arch/arm/boot/dts/am3517.dtsi
+@@ -39,6 +39,8 @@
+   ti,davinci-ctrl-ram-size = <0x2000>;
+   ti,davinci-rmii-en = /bits/ 8 <1>;
+   local-mac-address = [ 00 00 00 00 00 00 ];
++  clocks = <_ick>;
++  clock-names = "ick";
+   };
+ 
+   davinci_mdio: ethernet@5c03 {
+@@ -49,6 +51,8 @@
+   bus_freq = <100>;
+   #address-cells = <1>;
+   #size-cells = <0>;
++  clocks = <_fck>;
++  clock-names = "fck";
+   };
+ 
+   uart4: serial@4809e000 {
+diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
+index f4ddd86f2c77..9cace9f3dd15 100644
+--- a/arch/arm/boot/dts/dra7.dtsi
 b/arch/arm/boot/dts/dra7.dtsi
+@@ -1582,7 +1582,6 @@
+   dr_mode = "otg";
+   snps,dis_u3_susphy_quirk;
+   snps,dis_u2_susphy_quirk;
+-  snps,dis_metastability_quirk;
+   };
+   };
+ 
+@@ -1610,6 +1609,7 @@
+   dr_mode = "otg";
+   snps,dis_u3_susphy_quirk;
+   snps,dis_u2_susphy_quirk;
++  snps,dis_metastability_quirk;
+   };
+   };
+ 
+diff --git a/arch/arm/boot/dts/imx51-zii-rdu1.dts 
b/arch/arm/boot/dts/imx51-zii-rdu1.dts
+index 6464f2560e06..0662217751dc 100644
+--- a/arch/arm/boot/dts/imx51-zii-rdu1.dts
 b/arch/arm/boot/dts/imx51-zii-rdu1.dts
+@@ -768,7 +768,7 @@
+ 
+   pinctrl_ts: tsgrp {
+   fsl,pins = <
+-  MX51_PAD_CSI1_D8__GPIO3_12  0x85
++  MX51_PAD_CSI1_D8__GPIO3_12  0x04
+   MX51_PAD_CSI1_D9__GPIO3_13  0x85
+   >;
+   };
+diff --git a/arch/s390/kernel/entry.S b/arch/s390/kernel/entry.S
+index f03402efab4b..3891805bfcdd 100644
+--- a/arch/s390/kernel/entry.S
 b/arch/s390/kernel/entry.S
+@@ -1265,7 +1265,7 @@ cleanup_critical:
+   jl  0f
+   clg %r9,BASED(.Lcleanup_table+104)  # .Lload_fpu_regs_end
+   jl  .Lcleanup_load_fpu_regs
+-0:BR_EX   %r14
++0:BR_EX   %r14,%r11
+ 
+   .align  8
+ .Lcleanup_table:
+@@ -1301,7 +1301,7 @@ cleanup_critical:
+   ni  __SIE_PROG0C+3(%r9),0xfe# no longer in SIE
+   lctlg   %c1,%c1,__LC_USER_ASCE  # load primary asce
+   larl%r9,sie_exit# skip forward to sie_exit
+-  BR_EX   %r14
++  BR_EX   %r14,%r11
+ #endif
+ 
+ .Lcleanup_system_call:
+diff --git a/drivers/acpi/acpica/uterror.c b/drivers/acpi/acpica/uterror.c
+index 5a64ddaed8a3..e47430272692 100644
+--- a/drivers/acpi/acpica/uterror.c
 b/drivers/acpi/acpica/uterror.c
+@@ -182,19 +182,19 @@ acpi_ut_prefixed_namespace_error(const char *module_name,
+   switch (lookup_status) {
+   case AE_ALREADY_EXISTS:
+ 
+-  acpi_os_printf("\n" ACPI_MSG_BIOS_ERROR);
++  acpi_os_printf(ACPI_MSG_BIOS_ERROR);
+   message = "Failure creating";
+   break;
+ 
+   case AE_NOT_FOUND:
+ 
+-  acpi_os_printf("\n" ACPI_MSG_BIOS_ERROR);
++  acpi_os_printf(ACPI_MSG_BIOS_ERROR);
+   message 

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

2018-07-09 Thread Alice Ferrazzi
commit: 6ed4528b54ca6f6a9836bb1b132e41d96885579f
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Mon Jul  9 15:00:04 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Mon Jul  9 15:00:04 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=6ed4528b

linux kernel 4.17.5

 _README |4 +
 1004_linux-4.17.5.patch | 1735 +++
 2 files changed, 1739 insertions(+)

diff --git a/_README b/_README
index 76ef096..33f7bd8 100644
--- a/_README
+++ b/_README
@@ -59,6 +59,10 @@ Patch:  1003_linux-4.17.4.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.17.4
 
+Patch:  1004_linux-4.17.5.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.17.5
+
 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/1004_linux-4.17.5.patch b/1004_linux-4.17.5.patch
new file mode 100644
index 000..feb534b
--- /dev/null
+++ b/1004_linux-4.17.5.patch
@@ -0,0 +1,1735 @@
+diff --git a/Makefile b/Makefile
+index 1d740dbe676d..e4ddbad49636 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 17
+-SUBLEVEL = 4
++SUBLEVEL = 5
+ EXTRAVERSION =
+ NAME = Merciless Moray
+ 
+diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi
+index ae7b3f107893..5185300cc11f 100644
+--- a/arch/arm/boot/dts/imx6q.dtsi
 b/arch/arm/boot/dts/imx6q.dtsi
+@@ -96,7 +96,7 @@
+   clocks = < IMX6Q_CLK_ECSPI5>,
+< IMX6Q_CLK_ECSPI5>;
+   clock-names = "ipg", "per";
+-  dmas = < 11 7 1>, < 12 7 2>;
++  dmas = < 11 8 1>, < 12 8 2>;
+   dma-names = "rx", "tx";
+   status = "disabled";
+   };
+diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi 
b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
+index 0cfd701809de..a1b31013ab6e 100644
+--- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
 b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
+@@ -189,3 +189,10 @@
+  {
+   status = "okay";
+ };
++
++_phy0 {
++  /*
++   * HDMI_5V is also used as supply for the USB VBUS.
++   */
++  phy-supply = <_5v>;
++};
+diff --git a/arch/x86/include/asm/pgalloc.h b/arch/x86/include/asm/pgalloc.h
+index 263c142a6a6c..f65e9e1cea4c 100644
+--- a/arch/x86/include/asm/pgalloc.h
 b/arch/x86/include/asm/pgalloc.h
+@@ -184,6 +184,9 @@ static inline p4d_t *p4d_alloc_one(struct mm_struct *mm, 
unsigned long addr)
+ 
+ static inline void p4d_free(struct mm_struct *mm, p4d_t *p4d)
+ {
++  if (!pgtable_l5_enabled)
++  return;
++
+   BUG_ON((unsigned long)p4d & (PAGE_SIZE-1));
+   free_page((unsigned long)p4d);
+ }
+diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
+index 7ca41bf023c9..8df9abfa947b 100644
+--- a/drivers/acpi/osl.c
 b/drivers/acpi/osl.c
+@@ -45,6 +45,8 @@
+ #include 
+ #include 
+ 
++#include "acpica/accommon.h"
++#include "acpica/acnamesp.h"
+ #include "internal.h"
+ 
+ #define _COMPONENTACPI_OS_SERVICES
+@@ -1490,6 +1492,76 @@ int acpi_check_region(resource_size_t start, 
resource_size_t n,
+ }
+ EXPORT_SYMBOL(acpi_check_region);
+ 
++static acpi_status acpi_deactivate_mem_region(acpi_handle handle, u32 level,
++void *_res, void **return_value)
++{
++  struct acpi_mem_space_context **mem_ctx;
++  union acpi_operand_object *handler_obj;
++  union acpi_operand_object *region_obj2;
++  union acpi_operand_object *region_obj;
++  struct resource *res = _res;
++  acpi_status status;
++
++  region_obj = acpi_ns_get_attached_object(handle);
++  if (!region_obj)
++  return AE_OK;
++
++  handler_obj = region_obj->region.handler;
++  if (!handler_obj)
++  return AE_OK;
++
++  if (region_obj->region.space_id != ACPI_ADR_SPACE_SYSTEM_MEMORY)
++  return AE_OK;
++
++  if (!(region_obj->region.flags & AOPOBJ_SETUP_COMPLETE))
++  return AE_OK;
++
++  region_obj2 = acpi_ns_get_secondary_object(region_obj);
++  if (!region_obj2)
++  return AE_OK;
++
++  mem_ctx = (void *)_obj2->extra.region_context;
++
++  if (!(mem_ctx[0]->address >= res->start &&
++mem_ctx[0]->address < res->end))
++  return AE_OK;
++
++  status = handler_obj->address_space.setup(region_obj,
++ACPI_REGION_DEACTIVATE,
++NULL, (void **)mem_ctx);
++  if (ACPI_SUCCESS(status))
++  region_obj->region.flags &= 

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

2018-07-03 Thread Mike Pagano
commit: ebd54cc8a3c2fb541c454a7e6a288bf9b27fb03a
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Jul  3 13:35:39 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Jul  3 13:35:39 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=ebd54cc8

Removal of redundant patch:1800_iommu-amd-dma-direct-revert.patch

 _README|   4 -
 1800_iommu-amd-dma-direct-revert.patch | 164 -
 2 files changed, 168 deletions(-)

diff --git a/_README b/_README
index f45eebe..76ef096 100644
--- a/_README
+++ b/_README
@@ -59,10 +59,6 @@ Patch:  1003_linux-4.17.4.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.17.4
 
-Patch:  1800_iommu-amd-dma-direct-revert.patch
-From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=e16c4790de39dc861b749674c2a9319507f6f64f
-Desc:   Revert iommu/amd_iommu: Use CONFIG_DMA_DIRECT_OPS=y and 
dma_direct_{alloc,free}(). See bug #658538.
-
 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/1800_iommu-amd-dma-direct-revert.patch 
b/1800_iommu-amd-dma-direct-revert.patch
deleted file mode 100644
index a78fa02..000
--- a/1800_iommu-amd-dma-direct-revert.patch
+++ /dev/null
@@ -1,164 +0,0 @@
-From e16c4790de39dc861b749674c2a9319507f6f64f Mon Sep 17 00:00:00 2001
-From: Linus Torvalds 
-Date: Mon, 11 Jun 2018 12:22:12 -0700
-Subject: Revert "iommu/amd_iommu: Use CONFIG_DMA_DIRECT_OPS=y and
- dma_direct_{alloc,free}()"
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-This reverts commit b468620f2a1dfdcfddfd6fa54367b8bcc1b51248.
-
-It turns out that this broke drm on AMD platforms. Quoting Gabriel C:
- "I can confirm reverting b468620f2a1dfdcfddfd6fa54367b8bcc1b51248 fixes
-  that issue for me.
-
-  The GPU is working fine with SME enabled.
-
-  Now with working GPU :) I can also confirm performance is back to
-  normal without doing any other workarounds"
-
-Christan König analyzed it partially:
- "As far as I analyzed it we now get an -ENOMEM from dma_alloc_attrs()
-  in drivers/gpu/drm/ttm/ttm_page_alloc_dma.c when IOMMU is enabled"
-
-and Christoph Hellwig responded:
- "I think the prime issue is that dma_direct_alloc respects the dma
-  mask. Which we don't need if actually using the iommu. This would be
-  mostly harmless exept for the the SEV bit high in the address that
-  makes the checks fail.
-
-  For now I'd say revert this commit for 4.17/4.18-rc and I'll look into
-  addressing these issues properly"
-
-Reported-and-bisected-by: Gabriel C 
-Acked-by: Christoph Hellwig 
-Cc: Christian König 
-Cc: Michel Dänzer 
-Cc: Joerg Roedel 
-Cc: Tom Lendacky 
-Cc: Andrew Morton 
-Cc: sta...@kernel.org  # v4.17
-Signed-off-by: Linus Torvalds 

- drivers/iommu/Kconfig |  1 -
- drivers/iommu/amd_iommu.c | 68 ---
- 2 files changed, 47 insertions(+), 22 deletions(-)
-
-diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
-index 8ea77ef..e055d22 100644
 a/drivers/iommu/Kconfig
-+++ b/drivers/iommu/Kconfig
-@@ -107,7 +107,6 @@ config IOMMU_PGTABLES_L2
- # AMD IOMMU support
- config AMD_IOMMU
-   bool "AMD IOMMU support"
--  select DMA_DIRECT_OPS
-   select SWIOTLB
-   select PCI_MSI
-   select PCI_ATS
-diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
-index 0cea80be..596b95c 100644
 a/drivers/iommu/amd_iommu.c
-+++ b/drivers/iommu/amd_iommu.c
-@@ -2596,32 +2596,51 @@ static void *alloc_coherent(struct device *dev, size_t 
size,
-   unsigned long attrs)
- {
-   u64 dma_mask = dev->coherent_dma_mask;
--  struct protection_domain *domain = get_domain(dev);
--  bool is_direct = false;
--  void *virt_addr;
-+  struct protection_domain *domain;
-+  struct dma_ops_domain *dma_dom;
-+  struct page *page;
-+
-+  domain = get_domain(dev);
-+  if (PTR_ERR(domain) == -EINVAL) {
-+  page = alloc_pages(flag, get_order(size));
-+  *dma_addr = page_to_phys(page);
-+  return page_address(page);
-+  } else if (IS_ERR(domain))
-+  return NULL;
- 
--  if (IS_ERR(domain)) {
--  if (PTR_ERR(domain) != -EINVAL)
-+  dma_dom   = to_dma_ops_domain(domain);
-+  size  = PAGE_ALIGN(size);
-+  dma_mask  = dev->coherent_dma_mask;
-+  flag &= ~(__GFP_DMA | __GFP_HIGHMEM | __GFP_DMA32);
-+  flag |= __GFP_ZERO;
-+
-+  page = alloc_pages(flag | __GFP_NOWARN,  get_order(size));
-+  if (!page) {
-+  if (!gfpflags_allow_blocking(flag))
-   return NULL;
--  is_direct = true;
--  }
- 
--  virt_addr = dma_direct_alloc(dev, size, dma_addr, flag, attrs);
--  if (!virt_addr || is_direct)
-- 

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

2018-06-29 Thread Mike Pagano
commit: 28232bbdc29fe4ef9f7d2a5360d7cdd000b26304
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Jun 29 23:18:10 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Jun 29 23:18:10 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=28232bbd

kvmclock: Define pvclock_pvti_cpu0_va setter for X86_32. See bug #658544.

 _README|  4 ++
 ...ne-pvclock-pvti-cpu0-va-setter-for-X86-32.patch | 55 ++
 2 files changed, 59 insertions(+)

diff --git a/_README b/_README
index daa330b..af14401 100644
--- a/_README
+++ b/_README
@@ -67,6 +67,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_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch
+From:   https://marc.info/?l=kvm=152960320011592=2
+Desc:   kvmclock: Define pvclock_pvti_cpu0_va setter for X86_32. See bug 
#658544.
+
 Patch:  2300_enable-poweroff-on-Mac-Pro-11.patch
 From:   
http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/patch/drivers/pci/quirks.c?id=5080ff61a438f3dd80b88b423e1a20791d8a774c
 Desc:   Workaround to enable poweroff on Mac Pro 11. See bug #601964.

diff --git a/1700_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch 
b/1700_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch
new file mode 100644
index 000..0732c51
--- /dev/null
+++ b/1700_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch
@@ -0,0 +1,55 @@
+pvti_cpu0_va is the address of shared kvmclock data structure.
+
+pvti_cpu0_va is currently kept unset (1) on 32 bit systems, (2) when
+kvmclock vsyscall is disabled, and (3) if kvmclock is not stable.
+This poses a problem, because kvm_ptp needs pvti_cpu0_va, but (1) can
+work on 32 bit, (2) has little relation to the vsyscall, and (3) does
+not need stable kvmclock (although kvmclock won't be used for system
+clock if it's not stable, so kvm_ptp is pointless in that case).
+
+Expose pvti_cpu0_va whenever kvmclock is enabled to allow all users to
+work with it.
+
+This fixes a regression found on Gentoo: https://bugs.gentoo.org/658544.
+
+Fixes: 9f08890ab906 ("x86/pvclock: add setter for pvclock_pvti_cpu0_va")
+Reported-by: Andreas Steinmetz 
+Signed-off-by: Radim Krčmář 
+---
+ arch/x86/kernel/kvmclock.c | 11 +--
+ 1 file changed, 5 insertions(+), 6 deletions(-)
+
+diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c
+index bf8d1eb7fca3..46ffa8327563 100644
+--- a/arch/x86/kernel/kvmclock.c
 b/arch/x86/kernel/kvmclock.c
+@@ -319,6 +319,8 @@ void __init kvmclock_init(void)
+   printk(KERN_INFO "kvm-clock: Using msrs %x and %x",
+   msr_kvm_system_time, msr_kvm_wall_clock);
+ 
++  pvclock_set_pvti_cpu0_va(hv_clock);
++
+   if (kvm_para_has_feature(KVM_FEATURE_CLOCKSOURCE_STABLE_BIT))
+   pvclock_set_flags(PVCLOCK_TSC_STABLE_BIT);
+ 
+@@ -366,14 +368,11 @@ int __init kvm_setup_vsyscall_timeinfo(void)
+   vcpu_time = _clock[cpu].pvti;
+   flags = pvclock_read_flags(vcpu_time);
+ 
+-  if (!(flags & PVCLOCK_TSC_STABLE_BIT)) {
+-  put_cpu();
+-  return 1;
+-  }
+-
+-  pvclock_set_pvti_cpu0_va(hv_clock);
+   put_cpu();
+ 
++  if (!(flags & PVCLOCK_TSC_STABLE_BIT))
++  return 1;
++
+   kvm_clock.archdata.vclock_mode = VCLOCK_PVCLOCK;
+ #endif
+   return 0;
+-- 
+2.18.0.rc2
+



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

2018-06-26 Thread Alice Ferrazzi
commit: c429ed15c8c907dbe61005f1542b6f1c16e99543
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Tue Jun 26 16:24:12 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Tue Jun 26 16:24:12 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c429ed15

linux kernel 4.17.3

 _README |4 +
 1002_linux-4.17.3.patch | 2352 +++
 2 files changed, 2356 insertions(+)

diff --git a/_README b/_README
index a4cf389..daa330b 100644
--- a/_README
+++ b/_README
@@ -51,6 +51,10 @@ Patch:  1001_linux-4.17.2.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.17.2
 
+Patch:  1002_linux-4.17.3.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.17.3
+
 Patch:  1800_iommu-amd-dma-direct-revert.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=e16c4790de39dc861b749674c2a9319507f6f64f
 Desc:   Revert iommu/amd_iommu: Use CONFIG_DMA_DIRECT_OPS=y and 
dma_direct_{alloc,free}(). See bug #658538.

diff --git a/1002_linux-4.17.3.patch b/1002_linux-4.17.3.patch
new file mode 100644
index 000..9fdc2fc
--- /dev/null
+++ b/1002_linux-4.17.3.patch
@@ -0,0 +1,2352 @@
+diff --git a/Makefile b/Makefile
+index f43cd522b175..31dc3a08295a 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 17
+-SUBLEVEL = 2
++SUBLEVEL = 3
+ EXTRAVERSION =
+ NAME = Merciless Moray
+ 
+diff --git a/arch/um/drivers/vector_transports.c 
b/arch/um/drivers/vector_transports.c
+index 9065047f844b..77e4ebc206ae 100644
+--- a/arch/um/drivers/vector_transports.c
 b/arch/um/drivers/vector_transports.c
+@@ -120,7 +120,8 @@ static int raw_form_header(uint8_t *header,
+   skb,
+   vheader,
+   virtio_legacy_is_little_endian(),
+-  false
++  false,
++  0
+   );
+ 
+   return 0;
+diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h
+index 08acd954f00e..74a9e06b6cfd 100644
+--- a/arch/x86/include/asm/apic.h
 b/arch/x86/include/asm/apic.h
+@@ -436,6 +436,8 @@ static inline void apic_set_eoi_write(void 
(*eoi_write)(u32 reg, u32 v)) {}
+ 
+ #endif /* CONFIG_X86_LOCAL_APIC */
+ 
++extern void apic_ack_irq(struct irq_data *data);
++
+ static inline void ack_APIC_irq(void)
+ {
+   /*
+diff --git a/arch/x86/include/asm/trace/irq_vectors.h 
b/arch/x86/include/asm/trace/irq_vectors.h
+index 22647a642e98..0af81b590a0c 100644
+--- a/arch/x86/include/asm/trace/irq_vectors.h
 b/arch/x86/include/asm/trace/irq_vectors.h
+@@ -236,7 +236,7 @@ TRACE_EVENT(vector_alloc,
+   TP_PROTO(unsigned int irq, unsigned int vector, bool reserved,
+int ret),
+ 
+-  TP_ARGS(irq, vector, ret, reserved),
++  TP_ARGS(irq, vector, reserved, ret),
+ 
+   TP_STRUCT__entry(
+   __field(unsigned int,   irq )
+diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
+index 7553819c74c3..3982f79d2377 100644
+--- a/arch/x86/kernel/apic/io_apic.c
 b/arch/x86/kernel/apic/io_apic.c
+@@ -1851,7 +1851,7 @@ static void ioapic_ir_ack_level(struct irq_data 
*irq_data)
+* intr-remapping table entry. Hence for the io-apic
+* EOI we use the pin number.
+*/
+-  ack_APIC_irq();
++  apic_ack_irq(irq_data);
+   eoi_ioapic_pin(data->entry.vector, data);
+ }
+ 
+diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c
+index bb6f7a2148d7..b708f597eee3 100644
+--- a/arch/x86/kernel/apic/vector.c
 b/arch/x86/kernel/apic/vector.c
+@@ -235,6 +235,15 @@ static int allocate_vector(struct irq_data *irqd, const 
struct cpumask *dest)
+   if (vector && cpu_online(cpu) && cpumask_test_cpu(cpu, dest))
+   return 0;
+ 
++  /*
++   * Careful here. @apicd might either have move_in_progress set or
++   * be enqueued for cleanup. Assigning a new vector would either
++   * leave a stale vector on some CPU around or in case of a pending
++   * cleanup corrupt the hlist.
++   */
++  if (apicd->move_in_progress || !hlist_unhashed(>clist))
++  return -EBUSY;
++
+   vector = irq_matrix_alloc(vector_matrix, dest, resvd, );
+   if (vector > 0)
+   apic_update_vector(irqd, vector, cpu);
+@@ -800,13 +809,18 @@ static int apic_retrigger_irq(struct irq_data *irqd)
+   return 1;
+ }
+ 
+-void apic_ack_edge(struct irq_data *irqd)
++void apic_ack_irq(struct irq_data *irqd)
+ {
+-  irq_complete_move(irqd_cfg(irqd));
+   irq_move_irq(irqd);
+   ack_APIC_irq();
+ }
+ 
++void apic_ack_edge(struct irq_data *irqd)
++{
++  irq_complete_move(irqd_cfg(irqd));
++  apic_ack_irq(irqd);
++}
++
+ static struct irq_chip lapic_controller = {
+   .name   = "APIC",
+   .irq_ack= apic_ack_edge,
+diff --git a/arch/x86/kernel/cpu/intel_rdt.c 

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

2018-06-25 Thread Mike Pagano
commit: fe91b90c7d22a035be3e5732d0dd627fd1ce782b
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Jun 25 12:39:08 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Jun 25 12:39:08 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=fe91b90c

Removing kvm patch as upstream suggested patch was
significantly different.  Waiting on user to test
patch.  See bug #658544.

 _README|  4 ---
 ...ne-pvclock-pvti-cpu0-va-setter-for-X86-32.patch | 37 --
 2 files changed, 41 deletions(-)

diff --git a/_README b/_README
index 3487ae6..a4cf389 100644
--- a/_README
+++ b/_README
@@ -59,10 +59,6 @@ Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.
 
-Patch:  1700_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch
-From:   https://bugs.gentoo.org/show_bug.cgi?id=658544
-Desc:   kvmclock: Define pvclock_pvti_cpu0_va setter for X86_32
-
 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.

diff --git a/1700_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch 
b/1700_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch
deleted file mode 100644
index e52f3a2..000
--- a/1700_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 42d9186f9ef41d6b50458db13ca34d01595e1ecd Mon Sep 17 00:00:00 2001
-From: Mike Pagano 
-Date: Wed, 20 Jun 2018 12:31:18 -0400
-Subject: [PATCH] kvmclock: Define pvclock_pvti_cpu0_va setter for X86_32
-Cc: mpag...@gentoo.org
-
-setup_vsyscall_timeinfo() is only defined for x86_64, thus
-vclock_set_pvti_cpu0_va() does not get called resulting in
-the failure of ptp_kvm initialization for Linux X86_32 guests.
-The result of this being that the 32 bit guest userspace has
-no /dev/ptp0 device.
-
-See Gentoo bug 658544 located at the following link:
-https://bugs.gentoo.org/658544
-
-Signed-off-by: Mike Pagano 
-Signed-off-by: Andreas Steinmetz 

- arch/x86/kernel/kvmclock.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c
-index bf8d1eb7fca3..6aee5c6265b3 100644
 a/arch/x86/kernel/kvmclock.c
-+++ b/arch/x86/kernel/kvmclock.c
-@@ -350,7 +350,7 @@ void __init kvmclock_init(void)
- 
- int __init kvm_setup_vsyscall_timeinfo(void)
- {
--#ifdef CONFIG_X86_64
-+#ifdef CONFIG_X86_64 || defined(CONFIG_X86_32)
-   int cpu;
-   u8 flags;
-   struct pvclock_vcpu_time_info *vcpu_time;
--- 
-2.16.4
-



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

2018-06-20 Thread Mike Pagano
commit: 28dc1147d04eff810b527e8714a865cdc6cf6023
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jun 20 17:46:53 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jun 20 17:46:53 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=28dc1147

kvmclock: Define pvclock_pvti_cpu0_va setter for X86_32. See bug #658544.

 _README|  4 +++
 ...ne-pvclock-pvti-cpu0-va-setter-for-X86-32.patch | 37 ++
 2 files changed, 41 insertions(+)

diff --git a/_README b/_README
index a4cf389..3487ae6 100644
--- a/_README
+++ b/_README
@@ -59,6 +59,10 @@ Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.
 
+Patch:  1700_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch
+From:   https://bugs.gentoo.org/show_bug.cgi?id=658544
+Desc:   kvmclock: Define pvclock_pvti_cpu0_va setter for X86_32
+
 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.

diff --git a/1700_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch 
b/1700_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch
new file mode 100644
index 000..e52f3a2
--- /dev/null
+++ b/1700_define-pvclock-pvti-cpu0-va-setter-for-X86-32.patch
@@ -0,0 +1,37 @@
+From 42d9186f9ef41d6b50458db13ca34d01595e1ecd Mon Sep 17 00:00:00 2001
+From: Mike Pagano 
+Date: Wed, 20 Jun 2018 12:31:18 -0400
+Subject: [PATCH] kvmclock: Define pvclock_pvti_cpu0_va setter for X86_32
+Cc: mpag...@gentoo.org
+
+setup_vsyscall_timeinfo() is only defined for x86_64, thus
+vclock_set_pvti_cpu0_va() does not get called resulting in
+the failure of ptp_kvm initialization for Linux X86_32 guests.
+The result of this being that the 32 bit guest userspace has
+no /dev/ptp0 device.
+
+See Gentoo bug 658544 located at the following link:
+https://bugs.gentoo.org/658544
+
+Signed-off-by: Mike Pagano 
+Signed-off-by: Andreas Steinmetz 
+---
+ arch/x86/kernel/kvmclock.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c
+index bf8d1eb7fca3..6aee5c6265b3 100644
+--- a/arch/x86/kernel/kvmclock.c
 b/arch/x86/kernel/kvmclock.c
+@@ -350,7 +350,7 @@ void __init kvmclock_init(void)
+ 
+ int __init kvm_setup_vsyscall_timeinfo(void)
+ {
+-#ifdef CONFIG_X86_64
++#ifdef CONFIG_X86_64 || defined(CONFIG_X86_32)
+   int cpu;
+   u8 flags;
+   struct pvclock_vcpu_time_info *vcpu_time;
+-- 
+2.16.4
+



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

2018-06-19 Thread Mike Pagano
commit: 41b21d285ad76e01ad0c800e9c8589b2741c4213
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Jun 19 23:30:01 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Jun 19 23:30:01 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=41b21d28

Revert iommu patch. See bug #658538.

 _README|   4 +
 1800_iommu-amd-dma-direct-revert.patch | 164 +
 2 files changed, 168 insertions(+)

diff --git a/_README b/_README
index df97765..a4cf389 100644
--- a/_README
+++ b/_README
@@ -51,6 +51,10 @@ Patch:  1001_linux-4.17.2.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.17.2
 
+Patch:  1800_iommu-amd-dma-direct-revert.patch
+From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=e16c4790de39dc861b749674c2a9319507f6f64f
+Desc:   Revert iommu/amd_iommu: Use CONFIG_DMA_DIRECT_OPS=y and 
dma_direct_{alloc,free}(). See bug #658538.
+
 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/1800_iommu-amd-dma-direct-revert.patch 
b/1800_iommu-amd-dma-direct-revert.patch
new file mode 100644
index 000..a78fa02
--- /dev/null
+++ b/1800_iommu-amd-dma-direct-revert.patch
@@ -0,0 +1,164 @@
+From e16c4790de39dc861b749674c2a9319507f6f64f Mon Sep 17 00:00:00 2001
+From: Linus Torvalds 
+Date: Mon, 11 Jun 2018 12:22:12 -0700
+Subject: Revert "iommu/amd_iommu: Use CONFIG_DMA_DIRECT_OPS=y and
+ dma_direct_{alloc,free}()"
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This reverts commit b468620f2a1dfdcfddfd6fa54367b8bcc1b51248.
+
+It turns out that this broke drm on AMD platforms. Quoting Gabriel C:
+ "I can confirm reverting b468620f2a1dfdcfddfd6fa54367b8bcc1b51248 fixes
+  that issue for me.
+
+  The GPU is working fine with SME enabled.
+
+  Now with working GPU :) I can also confirm performance is back to
+  normal without doing any other workarounds"
+
+Christan König analyzed it partially:
+ "As far as I analyzed it we now get an -ENOMEM from dma_alloc_attrs()
+  in drivers/gpu/drm/ttm/ttm_page_alloc_dma.c when IOMMU is enabled"
+
+and Christoph Hellwig responded:
+ "I think the prime issue is that dma_direct_alloc respects the dma
+  mask. Which we don't need if actually using the iommu. This would be
+  mostly harmless exept for the the SEV bit high in the address that
+  makes the checks fail.
+
+  For now I'd say revert this commit for 4.17/4.18-rc and I'll look into
+  addressing these issues properly"
+
+Reported-and-bisected-by: Gabriel C 
+Acked-by: Christoph Hellwig 
+Cc: Christian König 
+Cc: Michel Dänzer 
+Cc: Joerg Roedel 
+Cc: Tom Lendacky 
+Cc: Andrew Morton 
+Cc: sta...@kernel.org  # v4.17
+Signed-off-by: Linus Torvalds 
+---
+ drivers/iommu/Kconfig |  1 -
+ drivers/iommu/amd_iommu.c | 68 ---
+ 2 files changed, 47 insertions(+), 22 deletions(-)
+
+diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
+index 8ea77ef..e055d22 100644
+--- a/drivers/iommu/Kconfig
 b/drivers/iommu/Kconfig
+@@ -107,7 +107,6 @@ config IOMMU_PGTABLES_L2
+ # AMD IOMMU support
+ config AMD_IOMMU
+   bool "AMD IOMMU support"
+-  select DMA_DIRECT_OPS
+   select SWIOTLB
+   select PCI_MSI
+   select PCI_ATS
+diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
+index 0cea80be..596b95c 100644
+--- a/drivers/iommu/amd_iommu.c
 b/drivers/iommu/amd_iommu.c
+@@ -2596,32 +2596,51 @@ static void *alloc_coherent(struct device *dev, size_t 
size,
+   unsigned long attrs)
+ {
+   u64 dma_mask = dev->coherent_dma_mask;
+-  struct protection_domain *domain = get_domain(dev);
+-  bool is_direct = false;
+-  void *virt_addr;
++  struct protection_domain *domain;
++  struct dma_ops_domain *dma_dom;
++  struct page *page;
++
++  domain = get_domain(dev);
++  if (PTR_ERR(domain) == -EINVAL) {
++  page = alloc_pages(flag, get_order(size));
++  *dma_addr = page_to_phys(page);
++  return page_address(page);
++  } else if (IS_ERR(domain))
++  return NULL;
+ 
+-  if (IS_ERR(domain)) {
+-  if (PTR_ERR(domain) != -EINVAL)
++  dma_dom   = to_dma_ops_domain(domain);
++  size  = PAGE_ALIGN(size);
++  dma_mask  = dev->coherent_dma_mask;
++  flag &= ~(__GFP_DMA | __GFP_HIGHMEM | __GFP_DMA32);
++  flag |= __GFP_ZERO;
++
++  page = alloc_pages(flag | __GFP_NOWARN,  get_order(size));
++  if (!page) {
++  if (!gfpflags_allow_blocking(flag))
+   return NULL;
+-  is_direct = true;
+-  }
+ 
+-  virt_addr = dma_direct_alloc(dev, size, dma_addr, flag, attrs);
+-  if (!virt_addr || is_direct)
+-  return virt_addr;
++   

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

2018-06-16 Thread Mike Pagano
commit: 70a60381716c31741c8126bf7c4589a781c3d23b
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Jun 16 15:46:12 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Jun 16 15:46:12 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=70a60381

Linux patch 4.17.2

 _README |4 +
 1001_linux-4.17.2.patch | 2863 +++
 2 files changed, 2867 insertions(+)

diff --git a/_README b/_README
index de4fd96..df97765 100644
--- a/_README
+++ b/_README
@@ -47,6 +47,10 @@ Patch:  1000_linux-4.17.1.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.17.1
 
+Patch:  1001_linux-4.17.2.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.17.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-4.17.2.patch b/1001_linux-4.17.2.patch
new file mode 100644
index 000..a2da995
--- /dev/null
+++ b/1001_linux-4.17.2.patch
@@ -0,0 +1,2863 @@
+diff --git a/Documentation/ABI/stable/sysfs-bus-vmbus 
b/Documentation/ABI/stable/sysfs-bus-vmbus
+index 0c9d9dcd2151..3eaffbb2d468 100644
+--- a/Documentation/ABI/stable/sysfs-bus-vmbus
 b/Documentation/ABI/stable/sysfs-bus-vmbus
+@@ -1,25 +1,25 @@
+-What: /sys/bus/vmbus/devices/vmbus_*/id
++What: /sys/bus/vmbus/devices//id
+ Date: Jul 2009
+ KernelVersion:2.6.31
+ Contact:  K. Y. Srinivasan 
+ Description:  The VMBus child_relid of the device's primary channel
+ Users:tools/hv/lsvmbus
+ 
+-What: /sys/bus/vmbus/devices/vmbus_*/class_id
++What: /sys/bus/vmbus/devices//class_id
+ Date: Jul 2009
+ KernelVersion:2.6.31
+ Contact:  K. Y. Srinivasan 
+ Description:  The VMBus interface type GUID of the device
+ Users:tools/hv/lsvmbus
+ 
+-What: /sys/bus/vmbus/devices/vmbus_*/device_id
++What: /sys/bus/vmbus/devices//device_id
+ Date: Jul 2009
+ KernelVersion:2.6.31
+ Contact:  K. Y. Srinivasan 
+ Description:  The VMBus interface instance GUID of the device
+ Users:tools/hv/lsvmbus
+ 
+-What: /sys/bus/vmbus/devices/vmbus_*/channel_vp_mapping
++What: /sys/bus/vmbus/devices//channel_vp_mapping
+ Date: Jul 2015
+ KernelVersion:4.2.0
+ Contact:  K. Y. Srinivasan 
+@@ -28,112 +28,112 @@ Description: The mapping of which primary/sub 
channels are bound to which
+   Format: 
+ Users:tools/hv/lsvmbus
+ 
+-What: /sys/bus/vmbus/devices/vmbus_*/device
++What: /sys/bus/vmbus/devices//device
+ Date: Dec. 2015
+ KernelVersion:4.5
+ Contact:  K. Y. Srinivasan 
+ Description:  The 16 bit device ID of the device
+ Users:tools/hv/lsvmbus and user level RDMA libraries
+ 
+-What: /sys/bus/vmbus/devices/vmbus_*/vendor
++What: /sys/bus/vmbus/devices//vendor
+ Date: Dec. 2015
+ KernelVersion:4.5
+ Contact:  K. Y. Srinivasan 
+ Description:  The 16 bit vendor ID of the device
+ Users:tools/hv/lsvmbus and user level RDMA libraries
+ 
+-What: /sys/bus/vmbus/devices/vmbus_*/channels/NN
++What: /sys/bus/vmbus/devices//channels/
+ Date: September. 2017
+ KernelVersion:4.14
+ Contact:  Stephen Hemminger 
+ Description:  Directory for per-channel information
+   NN is the VMBUS relid associtated with the channel.
+ 
+-What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/cpu
++What: /sys/bus/vmbus/devices//channels//cpu
+ Date: September. 2017
+ KernelVersion:4.14
+ Contact:  Stephen Hemminger 
+ Description:  VCPU (sub)channel is affinitized to
+ Users:tools/hv/lsvmbus and other debugging tools
+ 
+-What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/cpu
++What: /sys/bus/vmbus/devices//channels//cpu
+ Date: September. 2017
+ KernelVersion:4.14
+ Contact:  Stephen Hemminger 
+ Description:  VCPU (sub)channel is affinitized to
+ Users:tools/hv/lsvmbus and other debugging tools
+ 
+-What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/in_mask
++What: /sys/bus/vmbus/devices//channels//in_mask
+ Date: September. 2017
+ KernelVersion:4.14
+ Contact:  Stephen Hemminger 
+ Description:  Host to guest channel interrupt mask
+ Users:Debugging tools
+ 
+-What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/latency
++What: /sys/bus/vmbus/devices//channels//latency
+ Date: September. 2017
+ KernelVersion:4.14
+ Contact:  Stephen Hemminger 
+ Description:  Channel signaling latency
+ Users:Debugging tools
+ 
+-What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/out_mask
++What: 

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

2018-06-11 Thread Mike Pagano
commit: fa93352971e5dd4e0cda149358e6fb0af0a8218b
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Jun 11 21:50:11 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Jun 11 21:50:11 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=fa933529

Linux patch 4.17.1

 _README |   4 +
 1000_linux-4.17.1.patch | 602 
 2 files changed, 606 insertions(+)

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

diff --git a/1000_linux-4.17.1.patch b/1000_linux-4.17.1.patch
new file mode 100644
index 000..8c58c98
--- /dev/null
+++ b/1000_linux-4.17.1.patch
@@ -0,0 +1,602 @@
+diff --git a/Documentation/networking/netdev-FAQ.txt 
b/Documentation/networking/netdev-FAQ.txt
+index 2a3278d5cf35..fa951b820b25 100644
+--- a/Documentation/networking/netdev-FAQ.txt
 b/Documentation/networking/netdev-FAQ.txt
+@@ -179,6 +179,15 @@ A: No.  See above answer.  In short, if you think it 
really belongs in
+dash marker line as described in 
Documentation/process/submitting-patches.rst to
+temporarily embed that information into the patch that you send.
+ 
++Q: Are all networking bug fixes backported to all stable releases?
++
++A: Due to capacity, Dave could only take care of the backports for the last
++   2 stable releases. For earlier stable releases, each stable branch 
maintainer
++   is supposed to take care of them. If you find any patch is missing from an
++   earlier stable branch, please notify sta...@vger.kernel.org with either a
++   commit ID or a formal patch backported, and CC Dave and other relevant
++   networking developers.
++
+ Q: Someone said that the comment style and coding convention is different
+for the networking content.  Is this true?
+ 
+diff --git a/Makefile b/Makefile
+index 554dcaddbce4..e551c9af6a06 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 17
+-SUBLEVEL = 0
++SUBLEVEL = 1
+ EXTRAVERSION =
+ NAME = Merciless Moray
+ 
+diff --git a/drivers/net/dsa/b53/b53_common.c 
b/drivers/net/dsa/b53/b53_common.c
+index 3da5fca77cbd..bbc6cc609ec3 100644
+--- a/drivers/net/dsa/b53/b53_common.c
 b/drivers/net/dsa/b53/b53_common.c
+@@ -684,7 +684,8 @@ static int b53_switch_reset(struct b53_device *dev)
+* still use this driver as a library and need to perform the reset
+* earlier.
+*/
+-  if (dev->chip_id == BCM58XX_DEVICE_ID) {
++  if (dev->chip_id == BCM58XX_DEVICE_ID ||
++  dev->chip_id == BCM583XX_DEVICE_ID) {
+   b53_read8(dev, B53_CTRL_PAGE, B53_SOFTRESET, );
+   reg |= SW_RST | EN_SW_RST | EN_CH_RST;
+   b53_write8(dev, B53_CTRL_PAGE, B53_SOFTRESET, reg);
+@@ -1879,6 +1880,18 @@ static const struct b53_chip_data b53_switch_chips[] = {
+   .jumbo_pm_reg = B53_JUMBO_PORT_MASK,
+   .jumbo_size_reg = B53_JUMBO_MAX_SIZE,
+   },
++  {
++  .chip_id = BCM583XX_DEVICE_ID,
++  .dev_name = "BCM583xx/11360",
++  .vlans = 4096,
++  .enabled_ports = 0x103,
++  .arl_entries = 4,
++  .cpu_port = B53_CPU_PORT,
++  .vta_regs = B53_VTA_REGS,
++  .duplex_reg = B53_DUPLEX_STAT_GE,
++  .jumbo_pm_reg = B53_JUMBO_PORT_MASK,
++  .jumbo_size_reg = B53_JUMBO_MAX_SIZE,
++  },
+   {
+   .chip_id = BCM7445_DEVICE_ID,
+   .dev_name = "BCM7445",
+diff --git a/drivers/net/dsa/b53/b53_priv.h b/drivers/net/dsa/b53/b53_priv.h
+index 3b57f47d0e79..b232aaae20aa 100644
+--- a/drivers/net/dsa/b53/b53_priv.h
 b/drivers/net/dsa/b53/b53_priv.h
+@@ -62,6 +62,7 @@ enum {
+   BCM53018_DEVICE_ID = 0x53018,
+   BCM53019_DEVICE_ID = 0x53019,
+   BCM58XX_DEVICE_ID = 0x5800,
++  BCM583XX_DEVICE_ID = 0x58300,
+   BCM7445_DEVICE_ID = 0x7445,
+   BCM7278_DEVICE_ID = 0x7278,
+ };
+@@ -181,6 +182,7 @@ static inline int is5301x(struct b53_device *dev)
+ static inline int is58xx(struct b53_device *dev)
+ {
+   return dev->chip_id == BCM58XX_DEVICE_ID ||
++  dev->chip_id == BCM583XX_DEVICE_ID ||
+   dev->chip_id == BCM7445_DEVICE_ID ||
+   dev->chip_id == BCM7278_DEVICE_ID;
+ }
+diff --git a/drivers/net/dsa/b53/b53_srab.c b/drivers/net/dsa/b53/b53_srab.c
+index c37ffd1b6833..8247481eaa06 100644
+--- a/drivers/net/dsa/b53/b53_srab.c
 b/drivers/net/dsa/b53/b53_srab.c
+@@ -364,7 +364,7 @@ static const struct 

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

2018-06-08 Thread Mike Pagano
commit: 9f9ebec7eee0d85f359a44fe3dd2f484b01172ad
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Jun  8 23:11:01 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Jun  8 23:11:01 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9f9ebec7

Update cpu optimization patch

 _README|  2 +-
 ...able-additional-cpu-optimizations-for-gcc.patch | 67 +-
 2 files changed, 42 insertions(+), 27 deletions(-)

diff --git a/_README b/_README
index 94eb66a..86e4a15 100644
--- a/_README
+++ b/_README
@@ -77,4 +77,4 @@ Desc:   Add Gentoo Linux support config settings and defaults.
 
 Patch:  5010_enable-additional-cpu-optimizations-for-gcc.patch
 From:   https://github.com/graysky2/kernel_gcc_patch/
-Desc:   Kernel patch enables gcc >= v4.9 optimizations for additional CPUs.
+Desc:   Kernel patch enables gcc >= v4.13 optimizations for additional CPUs.

diff --git a/5010_enable-additional-cpu-optimizations-for-gcc.patch 
b/5010_enable-additional-cpu-optimizations-for-gcc.patch
index 1aba143..a8aa759 100644
--- a/5010_enable-additional-cpu-optimizations-for-gcc.patch
+++ b/5010_enable-additional-cpu-optimizations-for-gcc.patch
@@ -1,5 +1,5 @@
 WARNING
-This patch works with gcc versions 4.9+ and with kernel version 3.15+ and 
should
+This patch works with gcc versions 4.9+ 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]
 
@@ -29,7 +29,8 @@ The expanded microarchitectures include:
 * 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 i3/i5/i7 (Skylake)
+* Intel 6th Gen Core i7/i9 (Skylake X)
 
 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
@@ -53,7 +54,7 @@ See the following experimental evidence supporting this 
statement:
 https://github.com/graysky2/kernel_gcc_patch
 
 REQUIREMENTS
-linux version >=3.15
+linux version >=4.13
 gcc version >=4.9
 
 ACKNOWLEDGMENTS
@@ -66,9 +67,9 @@ REFERENCES
 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.h2018-02-25 21:50:41.0 -0500
-+++ b/arch/x86/include/asm/module.h2018-02-26 15:37:52.684596240 -0500
-@@ -25,6 +25,24 @@ struct mod_arch_specific {
+--- a/arch/x86/include/asm/module.h2018-01-28 16:20:33.0 -0500
 b/arch/x86/include/asm/module.h2018-03-10 06:42:38.688317317 -0500
+@@ -25,6 +25,26 @@ struct mod_arch_specific {
  #define MODULE_PROC_FAMILY "586MMX "
  #elif defined CONFIG_MCORE2
  #define MODULE_PROC_FAMILY "CORE2 "
@@ -90,10 +91,12 @@ REFERENCES
 +#define MODULE_PROC_FAMILY "BROADWELL "
 +#elif defined CONFIG_MSKYLAKE
 +#define MODULE_PROC_FAMILY "SKYLAKE "
++#elif defined CONFIG_MSKYLAKEX
++#define MODULE_PROC_FAMILY "SKYLAKEX "
  #elif defined CONFIG_MATOM
  #define MODULE_PROC_FAMILY "ATOM "
  #elif defined CONFIG_M686
-@@ -43,6 +61,26 @@ struct mod_arch_specific {
+@@ -43,6 +63,26 @@ struct mod_arch_specific {
  #define MODULE_PROC_FAMILY "K7 "
  #elif defined CONFIG_MK8
  #define MODULE_PROC_FAMILY "K8 "
@@ -120,8 +123,8 @@ REFERENCES
  #elif defined CONFIG_MELAN
  #define MODULE_PROC_FAMILY "ELAN "
  #elif defined CONFIG_MCRUSOE
 a/arch/x86/Kconfig.cpu 2018-02-25 21:50:41.0 -0500
-+++ b/arch/x86/Kconfig.cpu 2018-02-26 15:46:09.886742109 -0500
+--- a/arch/x86/Kconfig.cpu 2018-01-28 16:20:33.0 -0500
 b/arch/x86/Kconfig.cpu 2018-03-10 06:45:50.244371799 -0500
 @@ -116,6 +116,7 @@ config MPENTIUMM
  config MPENTIUM4
bool "Pentium-4/Celeron(P4-based)/Pentium-4 M/older Xeon"
@@ -264,7 +267,7 @@ REFERENCES
---help---
  
  Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and
-@@ -271,14 +354,79 @@ config MCORE2
+@@ -271,14 +354,88 @@ config MCORE2
  family in /proc/cpuinfo. Newer ones have 6 and older ones 15
  (not a typo)
  
@@ -347,10 +350,19 @@ REFERENCES
 +Select this for 6th Gen Core processors in the Skylake family.
 +
 +Enables -march=skylake
++
++config MSKYLAKEX
++  bool "Intel Skylake X"
++  select X86_P6_NOP
++  ---help---
++
++Select this for 6th Gen Core processors in the Skylake X family.
++
++Enables -march=skylake-avx512
  
  config GENERIC_CPU
bool "Generic-x86-64"
-@@ -287,6 +435,19 @@ config GENERIC_CPU
+@@ -287,6 +444,19 @@ config GENERIC_CPU
  Generic x86-64 CPU.
  Run equally well on all x86-64 CPUs.
  
@@ -370,26 +382,26 @@ REFERENCES
  endchoice
  
  config X86_GENERIC
-@@ -311,7 +472,7 @@ config X86_INTERNODE_CACHE_SHIFT
+@@ -311,7 

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

2018-06-03 Thread Mike Pagano
commit: 2dfff68d42f70e4083aec773bd715db182e9
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Jun  3 22:18:10 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Jun  3 22:18:10 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=2dfff68d

Remove 2900_dev-root-proc-mount-fix.patch for compilation errors.

Will take a look after this release.

 _README|  4 
 2900_dev-root-proc-mount-fix.patch | 38 --
 2 files changed, 42 deletions(-)

diff --git a/_README b/_README
index 6546583..94eb66a 100644
--- a/_README
+++ b/_README
@@ -63,10 +63,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:  2900_dev-root-proc-mount-fix.patch
-From:   https://bugs.gentoo.org/show_bug.cgi?id=438380
-Desc:   Ensure that /dev/root doesn't appear in /proc/mounts when bootint 
without an initramfs.
-
 Patch:  4200_fbcondecor.patch
 From:   http://www.mepiscommunity.org/fbcondecor
 Desc:   Bootsplash ported by Conrad Kostecki. (Bug #637434)

diff --git a/2900_dev-root-proc-mount-fix.patch 
b/2900_dev-root-proc-mount-fix.patch
deleted file mode 100644
index 83f96d2..000
--- a/2900_dev-root-proc-mount-fix.patch
+++ /dev/null
@@ -1,38 +0,0 @@
 a/init/do_mounts.c 2018-05-23 14:30:36.870899527 -0400
-+++ b/init/do_mounts.c 2018-05-23 14:35:54.398659105 -0400
-@@ -489,7 +489,11 @@ void __init change_floppy(char *fmt, ...
-   va_start(args, fmt);
-   vsprintf(buf, fmt, args);
-   va_end(args);
--  fd = ksys_open("/dev/root", O_RDWR | O_NDELAY, 0);
-+  if (saved_root_name[0])
-+  fd = sys_open(saved_root_name, O_RDWR | O_NDELAY, 0);
-+  else
-+  fd = sys_open("/dev/root", O_RDWR | O_NDELAY, 0);
-+
-   if (fd >= 0) {
-   ksys_ioctl(fd, FDEJECT, 0);
-   ksys_close(fd);
-@@ -533,11 +537,17 @@ void __init mount_root(void)
- #endif
- #ifdef CONFIG_BLOCK
-   {
--  int err = create_dev("/dev/root", ROOT_DEV);
--
--  if (err < 0)
--  pr_emerg("Failed to create /dev/root: %d\n", err);
--  mount_block_root("/dev/root", root_mountflags);
-+  if (saved_root_name[0] == '/') {
-+  int err = create_dev(saved_root_name, ROOT_DEV);
-+  if (err < 0)
-+  pr_emerg("Failed to create %s: %d\n", 
saved_root_name, err);
-+  mount_block_root(saved_root_name, root_mountflags);
-+  } else {
-+  int err = create_dev("/dev/root", ROOT_DEV);
-+  if (err < 0)
-+  pr_emerg("Failed to create /dev/root: %d\n", 
err);
-+  mount_block_root("/dev/root", root_mountflags);
-+  }
-   }
- #endif
- }



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

2018-05-23 Thread Mike Pagano
commit: c43aa0c629b617cb71ba2cfd9b0a6055c0dcd35e
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May 23 18:46:57 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May 23 18:46:57 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c43aa0c6

Patch to support for namespace user.pax.* on tmpfs.
Patch to enable link security restrictions by default.
Patch to enable poweroff on Mac Pro 11. See bug #601964.
Patch to add UAS disable quirk. See bug #640082.
Patch that enables swapping of the FN and left Control keys and some
additional on some apple keyboards. See bug #622902.
Patch to ennsure that /dev/root doesn't appear in /proc/mounts when
bootint without an initramfs. Bootsplash patch ported by Conrad
Kostecki.  (Bug #637434).
Patch to enable control of the unaligned access control policy from
sysctl
Patch that adds Gentoo Linux support config settings and defaults.
Patch that enables gcc >= v4.9 optimizations for additional CPUs.

 _README|   36 +
 1500_XATTR_USER_PREFIX.patch   |   69 +
 ...ble-link-security-restrictions-by-default.patch |   22 +
 2300_enable-poweroff-on-Mac-Pro-11.patch   |   76 +
 ...age-Disable-UAS-on-JMicron-SATA-enclosure.patch |   40 +
 2600_enable-key-swapping-for-apple-mac.patch   |  114 ++
 2900_dev-root-proc-mount-fix.patch |   38 +
 4200_fbcondecor.patch  | 2095 
 4400_alpha-sysctl-uac.patch|  142 ++
 ...able-additional-cpu-optimizations-for-gcc.patch |  530 +
 10 files changed, 3162 insertions(+)

diff --git a/_README b/_README
index 9018993..6546583 100644
--- a/_README
+++ b/_README
@@ -43,6 +43,42 @@ EXPERIMENTAL
 Individual Patch Descriptions:
 --
 
+Patch:  1500_XATTR_USER_PREFIX.patch
+From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
+Desc:   Support for namespace user.pax.* on tmpfs.
+
+Patch:  1510_fs-enable-link-security-restrictions-by-default.patch
+From:   
http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/
+Desc:   Enable link security restrictions by default.
+
+Patch:  2300_enable-poweroff-on-Mac-Pro-11.patch
+From:   
http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/patch/drivers/pci/quirks.c?id=5080ff61a438f3dd80b88b423e1a20791d8a774c
+Desc:   Workaround to enable poweroff on Mac Pro 11. See bug #601964.
+
+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
+
+Patch:  2900_dev-root-proc-mount-fix.patch
+From:   https://bugs.gentoo.org/show_bug.cgi?id=438380
+Desc:   Ensure that /dev/root doesn't appear in /proc/mounts when bootint 
without an initramfs.
+
+Patch:  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
+
 Patch:  4567_distro-Gentoo-Kconfig.patch
 From:   Tom Wijsman 
 Desc:   Add Gentoo Linux support config settings and defaults.
+
+Patch:  5010_enable-additional-cpu-optimizations-for-gcc.patch
+From:   https://github.com/graysky2/kernel_gcc_patch/
+Desc:   Kernel patch enables gcc >= v4.9 optimizations for additional CPUs.

diff --git a/1500_XATTR_USER_PREFIX.patch b/1500_XATTR_USER_PREFIX.patch
new file mode 100644
index 000..bacd032
--- /dev/null
+++ b/1500_XATTR_USER_PREFIX.patch
@@ -0,0 +1,69 @@
+From: Anthony G. Basile 
+
+This patch adds support for a restricted user-controlled namespace on
+tmpfs filesystem used to house PaX flags.  The namespace must be of the
+form user.pax.* and its value cannot exceed a size of 8 bytes.
+
+This is needed even on all Gentoo systems so that XATTR_PAX flags
+are preserved for users who might build packages using portage on
+a tmpfs system with a non-hardened kernel and then switch to a
+hardened kernel with XATTR_PAX enabled.
+
+The namespace is added to any user with Extended Attribute support
+enabled for tmpfs.  Users who do not enable xattrs will not have
+the XATTR_PAX flags preserved.
+
+diff --git a/include/uapi/linux/xattr.h b/include/uapi/linux/xattr.h
+index 1590c49..5eab462 100644
+--- a/include/uapi/linux/xattr.h
 b/include/uapi/linux/xattr.h
+@@ -73,5 +73,9 @@
+ #define