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

2015-05-11 Thread Mike Pagano
commit: ae029c4cde3493b928e501e846e93cc067b4a845
Author: Mike Pagano mpagano AT gentoo DOT org
AuthorDate: Mon May 11 19:15:25 2015 +
Commit: Mike Pagano mpagano AT gentoo DOT org
CommitDate: Mon May 11 19:15:25 2015 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=ae029c4c

Linux patch 3.19.8

 _README |   4 +
 1007_linux-3.19.8.patch | 211 
 2 files changed, 215 insertions(+)

diff --git a/_README b/_README
index 7728485..36753e4 100644
--- a/_README
+++ b/_README
@@ -71,6 +71,10 @@ Patch:  1006_linux-3.19.7.patch
 From:   http://www.kernel.org
 Desc:   Linux 3.19.7
 
+Patch:  1007_linux-3.19.8.patch
+From:   http://www.kernel.org
+Desc:   Linux 3.19.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-3.19.8.patch b/1007_linux-3.19.8.patch
new file mode 100644
index 000..a053bf4
--- /dev/null
+++ b/1007_linux-3.19.8.patch
@@ -0,0 +1,211 @@
+diff --git a/Makefile b/Makefile
+index 69952c1404b2..110782bba50d 100644
+--- a/Makefile
 b/Makefile
+@@ -1,6 +1,6 @@
+ VERSION = 3
+ PATCHLEVEL = 19
+-SUBLEVEL = 7
++SUBLEVEL = 8
+ EXTRAVERSION =
+ NAME = Diseased Newt
+ 
+diff --git a/drivers/clk/at91/clk-usb.c b/drivers/clk/at91/clk-usb.c
+index 0b7c3e8840ba..0283a5713d6c 100644
+--- a/drivers/clk/at91/clk-usb.c
 b/drivers/clk/at91/clk-usb.c
+@@ -58,8 +58,6 @@ static unsigned long at91sam9x5_clk_usb_recalc_rate(struct 
clk_hw *hw,
+ 
+ static long at91sam9x5_clk_usb_determine_rate(struct clk_hw *hw,
+ unsigned long rate,
+-unsigned long min_rate,
+-unsigned long max_rate,
+ unsigned long *best_parent_rate,
+ struct clk_hw **best_parent_hw)
+ {
+diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 
b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
+index c132d9030729..0589a849d2a5 100644
+--- a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
 b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
+@@ -489,7 +489,7 @@ int t4_memory_rw(struct adapter *adap, int win, int mtype, 
u32 addr,
+   memoffset = (mtype * (edc_size * 1024 * 1024));
+   else {
+   mc_size = EXT_MEM0_SIZE_G(t4_read_reg(adap,
+-MA_EXT_MEMORY1_BAR_A));
++MA_EXT_MEMORY0_BAR_A));
+   memoffset = (MEM_MC0 * edc_size + mc_size) * 1024 * 1024;
+   }
+ 
+diff --git a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c 
b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
+index 2617c9d68d9b..c998c4d8c7e9 100644
+--- a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
 b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
+@@ -1467,6 +1467,7 @@ static void mlx4_en_service_task(struct work_struct 
*work)
+   if (mdev-dev-caps.flags2  MLX4_DEV_CAP_FLAG2_TS)
+   mlx4_en_ptp_overflow_check(mdev);
+ 
++  mlx4_en_recover_from_oom(priv);
+   queue_delayed_work(mdev-workqueue, priv-service_task,
+  SERVICE_TASK_DELAY);
+   }
+diff --git a/drivers/net/ethernet/mellanox/mlx4/en_rx.c 
b/drivers/net/ethernet/mellanox/mlx4/en_rx.c
+index a0474eb94aa3..10d353356b88 100644
+--- a/drivers/net/ethernet/mellanox/mlx4/en_rx.c
 b/drivers/net/ethernet/mellanox/mlx4/en_rx.c
+@@ -240,6 +240,12 @@ static int mlx4_en_prepare_rx_desc(struct mlx4_en_priv 
*priv,
+   return mlx4_en_alloc_frags(priv, rx_desc, frags, ring-page_alloc, gfp);
+ }
+ 
++static inline bool mlx4_en_is_ring_empty(struct mlx4_en_rx_ring *ring)
++{
++  BUG_ON((u32)(ring-prod - ring-cons)  ring-actual_size);
++  return ring-prod == ring-cons;
++}
++
+ static inline void mlx4_en_update_rx_prod_db(struct mlx4_en_rx_ring *ring)
+ {
+   *ring-wqres.db.db = cpu_to_be32(ring-prod  0x);
+@@ -311,8 +317,7 @@ static void mlx4_en_free_rx_buf(struct mlx4_en_priv *priv,
+  ring-cons, ring-prod);
+ 
+   /* Unmap and free Rx buffers */
+-  BUG_ON((u32) (ring-prod - ring-cons)  ring-actual_size);
+-  while (ring-cons != ring-prod) {
++  while (!mlx4_en_is_ring_empty(ring)) {
+   index = ring-cons  ring-size_mask;
+   en_dbg(DRV, priv, Processing descriptor:%d\n, index);
+   mlx4_en_free_rx_desc(priv, ring, index);
+@@ -487,6 +492,23 @@ err_allocator:
+   return err;
+ }
+ 
++/* We recover from out of memory by scheduling our napi poll
++ * function (mlx4_en_process_cq), which tries to allocate
++ * all missing RX buffers (call to mlx4_en_refill_rx_buffers).
++ */
++void mlx4_en_recover_from_oom(struct mlx4_en_priv *priv)
++{
++  int ring;
++
++  

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

2015-04-29 Thread Mike Pagano
commit: 44705e257afae352ada6c5bd078b9d9eafc0243b
Author: Mike Pagano mpagano AT gentoo DOT org
AuthorDate: Wed Apr 29 14:26:24 2015 +
Commit: Mike Pagano mpagano AT gentoo DOT org
CommitDate: Wed Apr 29 14:26:24 2015 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=44705e25

Linux patch 3.19.6

 _README |4 +
 1005_linux-3.19.6.patch | 1674 +++
 2 files changed, 1678 insertions(+)

diff --git a/_README b/_README
index 89efc26..25bc90f 100644
--- a/_README
+++ b/_README
@@ -63,6 +63,10 @@ Patch:  1004_linux-3.19.5.patch
 From:   http://www.kernel.org
 Desc:   Linux 3.19.5
 
+Patch:  1005_linux-3.19.6.patch
+From:   http://www.kernel.org
+Desc:   Linux 3.19.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-3.19.6.patch b/1005_linux-3.19.6.patch
new file mode 100644
index 000..e702f01
--- /dev/null
+++ b/1005_linux-3.19.6.patch
@@ -0,0 +1,1674 @@
+diff --git a/Makefile b/Makefile
+index 633b5f0f11a0..65c7c8756803 100644
+--- a/Makefile
 b/Makefile
+@@ -1,6 +1,6 @@
+ VERSION = 3
+ PATCHLEVEL = 19
+-SUBLEVEL = 5
++SUBLEVEL = 6
+ EXTRAVERSION =
+ NAME = Diseased Newt
+ 
+diff --git a/arch/arm/mm/hugetlbpage.c b/arch/arm/mm/hugetlbpage.c
+index 66781bf34077..c72412415093 100644
+--- a/arch/arm/mm/hugetlbpage.c
 b/arch/arm/mm/hugetlbpage.c
+@@ -36,12 +36,6 @@
+  * of type casting from pmd_t * to pte_t *.
+  */
+ 
+-struct page *follow_huge_addr(struct mm_struct *mm, unsigned long address,
+-int write)
+-{
+-  return ERR_PTR(-EINVAL);
+-}
+-
+ int pud_huge(pud_t pud)
+ {
+   return 0;
+diff --git a/arch/arm64/mm/hugetlbpage.c b/arch/arm64/mm/hugetlbpage.c
+index 023747bf4dd7..2de9d2e59d96 100644
+--- a/arch/arm64/mm/hugetlbpage.c
 b/arch/arm64/mm/hugetlbpage.c
+@@ -38,12 +38,6 @@ int huge_pmd_unshare(struct mm_struct *mm, unsigned long 
*addr, pte_t *ptep)
+ }
+ #endif
+ 
+-struct page *follow_huge_addr(struct mm_struct *mm, unsigned long address,
+-int write)
+-{
+-  return ERR_PTR(-EINVAL);
+-}
+-
+ int pmd_huge(pmd_t pmd)
+ {
+   return !(pmd_val(pmd)  PMD_TABLE_BIT);
+diff --git a/arch/ia64/mm/hugetlbpage.c b/arch/ia64/mm/hugetlbpage.c
+index 76069c18ee42..52b7604b5215 100644
+--- a/arch/ia64/mm/hugetlbpage.c
 b/arch/ia64/mm/hugetlbpage.c
+@@ -114,12 +114,6 @@ int pud_huge(pud_t pud)
+   return 0;
+ }
+ 
+-struct page *
+-follow_huge_pmd(struct mm_struct *mm, unsigned long address, pmd_t *pmd, int 
write)
+-{
+-  return NULL;
+-}
+-
+ void hugetlb_free_pgd_range(struct mmu_gather *tlb,
+   unsigned long addr, unsigned long end,
+   unsigned long floor, unsigned long ceiling)
+diff --git a/arch/metag/mm/hugetlbpage.c b/arch/metag/mm/hugetlbpage.c
+index 3c32075d2945..7ca80ac42ed5 100644
+--- a/arch/metag/mm/hugetlbpage.c
 b/arch/metag/mm/hugetlbpage.c
+@@ -94,12 +94,6 @@ int huge_pmd_unshare(struct mm_struct *mm, unsigned long 
*addr, pte_t *ptep)
+   return 0;
+ }
+ 
+-struct page *follow_huge_addr(struct mm_struct *mm,
+-unsigned long address, int write)
+-{
+-  return ERR_PTR(-EINVAL);
+-}
+-
+ int pmd_huge(pmd_t pmd)
+ {
+   return pmd_page_shift(pmd)  PAGE_SHIFT;
+diff --git a/arch/mips/mm/hugetlbpage.c b/arch/mips/mm/hugetlbpage.c
+index 4ec8ee10d371..06e0f421b41b 100644
+--- a/arch/mips/mm/hugetlbpage.c
 b/arch/mips/mm/hugetlbpage.c
+@@ -68,12 +68,6 @@ int is_aligned_hugepage_range(unsigned long addr, unsigned 
long len)
+   return 0;
+ }
+ 
+-struct page *
+-follow_huge_addr(struct mm_struct *mm, unsigned long address, int write)
+-{
+-  return ERR_PTR(-EINVAL);
+-}
+-
+ int pmd_huge(pmd_t pmd)
+ {
+   return (pmd_val(pmd)  _PAGE_HUGE) != 0;
+@@ -83,15 +77,3 @@ int pud_huge(pud_t pud)
+ {
+   return (pud_val(pud)  _PAGE_HUGE) != 0;
+ }
+-
+-struct page *
+-follow_huge_pmd(struct mm_struct *mm, unsigned long address,
+-  pmd_t *pmd, int write)
+-{
+-  struct page *page;
+-
+-  page = pte_page(*(pte_t *)pmd);
+-  if (page)
+-  page += ((address  ~HPAGE_MASK)  PAGE_SHIFT);
+-  return page;
+-}
+diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c
+index 620d0ec93e6f..7e408bfc7948 100644
+--- a/arch/powerpc/mm/hugetlbpage.c
 b/arch/powerpc/mm/hugetlbpage.c
+@@ -714,6 +714,14 @@ follow_huge_pmd(struct mm_struct *mm, unsigned long 
address,
+   return NULL;
+ }
+ 
++struct page *
++follow_huge_pud(struct mm_struct *mm, unsigned long address,
++  pud_t *pud, int write)
++{
++  BUG();
++  return NULL;
++}
++
+ static unsigned long hugepte_addr_end(unsigned long addr, unsigned long end,
+ unsigned long sz)
+ {
+diff --git 

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

2015-04-20 Thread Mike Pagano
commit: 9f9fd7b0f07a3c22b315dc3397fdc92ec25e1bd0
Author: Mike Pagano mpagano AT gentoo DOT org
AuthorDate: Mon Apr 20 12:24:22 2015 +
Commit: Mike Pagano mpagano AT gentoo DOT org
CommitDate: Mon Apr 20 12:24:22 2015 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9f9fd7b0

Linux patch 3.19.5

 _README |4 +
 1004_linux-3.19.5.patch | 3485 +++
 2 files changed, 3489 insertions(+)

diff --git a/_README b/_README
index 5c9a4bb..89efc26 100644
--- a/_README
+++ b/_README
@@ -59,6 +59,10 @@ Patch:  1003_linux-3.19.4.patch
 From:   http://www.kernel.org
 Desc:   Linux 3.19.4
 
+Patch:  1004_linux-3.19.5.patch
+From:   http://www.kernel.org
+Desc:   Linux 3.19.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-3.19.5.patch b/1004_linux-3.19.5.patch
new file mode 100644
index 000..dc69211
--- /dev/null
+++ b/1004_linux-3.19.5.patch
@@ -0,0 +1,3485 @@
+diff --git a/Makefile b/Makefile
+index 2ef20781ad25..633b5f0f11a0 100644
+--- a/Makefile
 b/Makefile
+@@ -1,6 +1,6 @@
+ VERSION = 3
+ PATCHLEVEL = 19
+-SUBLEVEL = 4
++SUBLEVEL = 5
+ EXTRAVERSION =
+ NAME = Diseased Newt
+ 
+diff --git a/arch/arc/kernel/signal.c b/arch/arc/kernel/signal.c
+index cb3142a2d40b..a86d567f6c70 100644
+--- a/arch/arc/kernel/signal.c
 b/arch/arc/kernel/signal.c
+@@ -67,7 +67,7 @@ stash_usr_regs(struct rt_sigframe __user *sf, struct pt_regs 
*regs,
+  sigset_t *set)
+ {
+   int err;
+-  err = __copy_to_user((sf-uc.uc_mcontext.regs), regs,
++  err = __copy_to_user((sf-uc.uc_mcontext.regs.scratch), regs,
+sizeof(sf-uc.uc_mcontext.regs.scratch));
+   err |= __copy_to_user(sf-uc.uc_sigmask, set, sizeof(sigset_t));
+ 
+@@ -83,7 +83,7 @@ static int restore_usr_regs(struct pt_regs *regs, struct 
rt_sigframe __user *sf)
+   if (!err)
+   set_current_blocked(set);
+ 
+-  err |= __copy_from_user(regs, (sf-uc.uc_mcontext.regs),
++  err |= __copy_from_user(regs, (sf-uc.uc_mcontext.regs.scratch),
+   sizeof(sf-uc.uc_mcontext.regs.scratch));
+ 
+   return err;
+@@ -131,6 +131,15 @@ SYSCALL_DEFINE0(rt_sigreturn)
+   /* Don't restart from sigreturn */
+   syscall_wont_restart(regs);
+ 
++  /*
++   * Ensure that sigreturn always returns to user mode (in case the
++   * regs saved on user stack got fudged between save and sigreturn)
++   * Otherwise it is easy to panic the kernel with a custom
++   * signal handler and/or restorer which clobberes the status32/ret
++   * to return to a bogus location in kernel mode.
++   */
++  regs-status32 |= STATUS_U_MASK;
++
+   return regs-r0;
+ 
+ badframe:
+@@ -229,8 +238,11 @@ setup_rt_frame(struct ksignal *ksig, sigset_t *set, 
struct pt_regs *regs)
+ 
+   /*
+* handler returns using sigreturn stub provided already by userpsace
++   * If not, nuke the process right away
+*/
+-  BUG_ON(!(ksig-ka.sa.sa_flags  SA_RESTORER));
++  if(!(ksig-ka.sa.sa_flags  SA_RESTORER))
++  return 1;
++
+   regs-blink = (unsigned long)ksig-ka.sa.sa_restorer;
+ 
+   /* User Stack for signal handler will be above the frame just carved */
+@@ -296,12 +308,12 @@ static void
+ handle_signal(struct ksignal *ksig, struct pt_regs *regs)
+ {
+   sigset_t *oldset = sigmask_to_save();
+-  int ret;
++  int failed;
+ 
+   /* Set up the stack frame */
+-  ret = setup_rt_frame(ksig, oldset, regs);
++  failed = setup_rt_frame(ksig, oldset, regs);
+ 
+-  signal_setup_done(ret, ksig, 0);
++  signal_setup_done(failed, ksig, 0);
+ }
+ 
+ void do_signal(struct pt_regs *regs)
+diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
+index a77604fbaf25..81502b90dd91 100644
+--- a/arch/arm/mach-sunxi/Kconfig
 b/arch/arm/mach-sunxi/Kconfig
+@@ -1,10 +1,12 @@
+ menuconfig ARCH_SUNXI
+   bool Allwinner SoCs if ARCH_MULTI_V7
+   select ARCH_REQUIRE_GPIOLIB
++  select ARCH_HAS_RESET_CONTROLLER
+   select CLKSRC_MMIO
+   select GENERIC_IRQ_CHIP
+   select PINCTRL
+   select SUN4I_TIMER
++  select RESET_CONTROLLER
+ 
+ if ARCH_SUNXI
+ 
+@@ -20,10 +22,8 @@ config MACH_SUN5I
+ config MACH_SUN6I
+   bool Allwinner A31 (sun6i) SoCs support
+   default ARCH_SUNXI
+-  select ARCH_HAS_RESET_CONTROLLER
+   select ARM_GIC
+   select MFD_SUN6I_PRCM
+-  select RESET_CONTROLLER
+   select SUN5I_HSTIMER
+ 
+ config MACH_SUN7I
+@@ -37,16 +37,12 @@ config MACH_SUN7I
+ config MACH_SUN8I
+   bool Allwinner A23 (sun8i) SoCs support
+   default ARCH_SUNXI
+-  select ARCH_HAS_RESET_CONTROLLER
+   select ARM_GIC
+   select MFD_SUN6I_PRCM
+-  select RESET_CONTROLLER
+ 
+ config MACH_SUN9I
+   

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

2015-04-13 Thread Mike Pagano
commit: 35b1a0bb1b39da74831209977922d6d07ce12213
Author: Mike Pagano mpagano AT gentoo DOT org
AuthorDate: Tue Apr 14 00:27:15 2015 +
Commit: Mike Pagano mpagano AT gentoo DOT org
CommitDate: Tue Apr 14 00:27:15 2015 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=35b1a0bb

Linux patch 3.19.4

 _README |4 +
 1003_linux-3.19.4.patch | 3185 +++
 2 files changed, 3189 insertions(+)

diff --git a/_README b/_README
index 513fccd..5c9a4bb 100644
--- a/_README
+++ b/_README
@@ -55,6 +55,10 @@ Patch:  1002_linux-3.19.3.patch
 From:   http://www.kernel.org
 Desc:   Linux 3.19.3
 
+Patch:  1003_linux-3.19.4.patch
+From:   http://www.kernel.org
+Desc:   Linux 3.19.4
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1003_linux-3.19.4.patch b/1003_linux-3.19.4.patch
new file mode 100644
index 000..288af92
--- /dev/null
+++ b/1003_linux-3.19.4.patch
@@ -0,0 +1,3185 @@
+diff --git a/Makefile b/Makefile
+index 713bf263952f..2ef20781ad25 100644
+--- a/Makefile
 b/Makefile
+@@ -1,6 +1,6 @@
+ VERSION = 3
+ PATCHLEVEL = 19
+-SUBLEVEL = 3
++SUBLEVEL = 4
+ EXTRAVERSION =
+ NAME = Diseased Newt
+ 
+diff --git a/arch/arm64/include/asm/cmpxchg.h 
b/arch/arm64/include/asm/cmpxchg.h
+index cb9593079f29..d8c25b7b18fb 100644
+--- a/arch/arm64/include/asm/cmpxchg.h
 b/arch/arm64/include/asm/cmpxchg.h
+@@ -246,14 +246,30 @@ static inline unsigned long __cmpxchg_mb(volatile void 
*ptr, unsigned long old,
+   __ret; \
+ })
+ 
+-#define this_cpu_cmpxchg_1(ptr, o, n) cmpxchg_local(raw_cpu_ptr((ptr)), o, n)
+-#define this_cpu_cmpxchg_2(ptr, o, n) cmpxchg_local(raw_cpu_ptr((ptr)), o, n)
+-#define this_cpu_cmpxchg_4(ptr, o, n) cmpxchg_local(raw_cpu_ptr((ptr)), o, n)
+-#define this_cpu_cmpxchg_8(ptr, o, n) cmpxchg_local(raw_cpu_ptr((ptr)), o, n)
+-
+-#define this_cpu_cmpxchg_double_8(ptr1, ptr2, o1, o2, n1, n2) \
+-  cmpxchg_double_local(raw_cpu_ptr((ptr1)), raw_cpu_ptr((ptr2)), \
+-  o1, o2, n1, n2)
++#define _protect_cmpxchg_local(pcp, o, n) \
++({\
++  typeof(*raw_cpu_ptr((pcp))) __ret; \
++  preempt_disable();  \
++  __ret = cmpxchg_local(raw_cpu_ptr((pcp)), o, n);   \
++  preempt_enable();   \
++  __ret;  \
++})
++
++#define this_cpu_cmpxchg_1(ptr, o, n) _protect_cmpxchg_local(ptr, o, n)
++#define this_cpu_cmpxchg_2(ptr, o, n) _protect_cmpxchg_local(ptr, o, n)
++#define this_cpu_cmpxchg_4(ptr, o, n) _protect_cmpxchg_local(ptr, o, n)
++#define this_cpu_cmpxchg_8(ptr, o, n) _protect_cmpxchg_local(ptr, o, n)
++
++#define this_cpu_cmpxchg_double_8(ptr1, ptr2, o1, o2, n1, n2) \
++({\
++  int __ret;  \
++  preempt_disable();  \
++  __ret = cmpxchg_double_local(   raw_cpu_ptr((ptr1)),   \
++  raw_cpu_ptr((ptr2)),   \
++  o1, o2, n1, n2);\
++  preempt_enable();   \
++  __ret;  \
++})
+ 
+ #define cmpxchg64(ptr,o,n)cmpxchg((ptr),(o),(n))
+ #define cmpxchg64_local(ptr,o,n)  cmpxchg_local((ptr),(o),(n))
+diff --git a/arch/arm64/include/asm/mmu_context.h 
b/arch/arm64/include/asm/mmu_context.h
+index a9eee33dfa62..101a42bde728 100644
+--- a/arch/arm64/include/asm/mmu_context.h
 b/arch/arm64/include/asm/mmu_context.h
+@@ -151,6 +151,15 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next,
+ {
+   unsigned int cpu = smp_processor_id();
+ 
++  /*
++   * init_mm.pgd does not contain any user mappings and it is always
++   * active for kernel addresses in TTBR1. Just set the reserved TTBR0.
++   */
++  if (next == init_mm) {
++  cpu_set_reserved_ttbr0();
++  return;
++  }
++
+   if (!cpumask_test_and_set_cpu(cpu, mm_cpumask(next)) || prev != next)
+   check_and_switch_context(next, tsk);
+ }
+diff --git a/arch/arm64/include/asm/percpu.h b/arch/arm64/include/asm/percpu.h
+index 09da25bc596f..4fde8c1df97f 100644
+--- a/arch/arm64/include/asm/percpu.h
 b/arch/arm64/include/asm/percpu.h
+@@ -204,25 +204,47 @@ static inline unsigned long __percpu_xchg(void *ptr, 
unsigned long val,
+   return ret;
+ }
+ 
++#define _percpu_read(pcp) \
++({\

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

2015-03-28 Thread Mike Pagano
commit: bb36852c647b9905eaff367fe8792a6a00d54838
Author: Mike Pagano mpagano AT gentoo DOT org
AuthorDate: Sat Mar 28 19:54:57 2015 +
Commit: Mike Pagano mpagano AT gentoo DOT org
CommitDate: Sat Mar 28 19:54:57 2015 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=bb36852c

Add check to saved_root_name for supported filesystem path naming.

 2900_dev-root-proc-mount-fix.patch | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/2900_dev-root-proc-mount-fix.patch 
b/2900_dev-root-proc-mount-fix.patch
index 6ea86e2..aa6fa19 100644
--- a/2900_dev-root-proc-mount-fix.patch
+++ b/2900_dev-root-proc-mount-fix.patch
@@ -1,6 +1,6 @@
 a/init/do_mounts.c 2014-08-26 08:03:30.13100 -0400
-+++ b/init/do_mounts.c 2014-08-26 08:11:19.720014712 -0400
-@@ -484,7 +484,10 @@ void __init change_floppy(char *fmt, ...
+--- a/init/do_mounts.c 2015-03-28 15:38:01.750855358 -0400
 b/init/do_mounts.c 2015-03-28 15:41:47.873853202 -0400
+@@ -485,7 +485,10 @@ void __init change_floppy(char *fmt, ...
va_start(args, fmt);
vsprintf(buf, fmt, args);
va_end(args);
@@ -12,13 +12,13 @@
if (fd = 0) {
sys_ioctl(fd, FDEJECT, 0);
sys_close(fd);
-@@ -527,8 +530,13 @@ void __init mount_root(void)
+@@ -528,8 +531,13 @@ void __init mount_root(void)
}
  #endif
  #ifdef CONFIG_BLOCK
 -  create_dev(/dev/root, ROOT_DEV);
 -  mount_block_root(/dev/root, root_mountflags);
-+  if (saved_root_name[0]) {
++  if (saved_root_name[0] == '/') {
 +  create_dev(saved_root_name, ROOT_DEV);
 +  mount_block_root(saved_root_name, root_mountflags);
 +  } else {



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

2015-03-26 Thread Mike Pagano
commit: f4b3f29666a9f4fa68d6e2495d12384fb070c26e
Author: Mike Pagano mpagano AT gentoo DOT org
AuthorDate: Thu Mar 26 21:07:51 2015 +
Commit: Mike Pagano mpagano AT gentoo DOT org
CommitDate: Thu Mar 26 21:07:51 2015 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=f4b3f296

Linux patch 3.19.3

 _README |4 +
 1002_linux-3.19.3.patch | 4081 +++
 2 files changed, 4085 insertions(+)

diff --git a/_README b/_README
index 48e21ed..513fccd 100644
--- a/_README
+++ b/_README
@@ -51,6 +51,10 @@ Patch:  1001_linux-3.19.2.patch
 From:   http://www.kernel.org
 Desc:   Linux 3.19.2
 
+Patch:  1002_linux-3.19.3.patch
+From:   http://www.kernel.org
+Desc:   Linux 3.19.3
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1002_linux-3.19.3.patch b/1002_linux-3.19.3.patch
new file mode 100644
index 000..42e848b
--- /dev/null
+++ b/1002_linux-3.19.3.patch
@@ -0,0 +1,4081 @@
+diff --git a/Makefile b/Makefile
+index e49665a2b5ac..713bf263952f 100644
+--- a/Makefile
 b/Makefile
+@@ -1,6 +1,6 @@
+ VERSION = 3
+ PATCHLEVEL = 19
+-SUBLEVEL = 2
++SUBLEVEL = 3
+ EXTRAVERSION =
+ NAME = Diseased Newt
+ 
+diff --git a/arch/arm/boot/dts/am33xx-clocks.dtsi 
b/arch/arm/boot/dts/am33xx-clocks.dtsi
+index 712edce7d6fb..071b56aa0c7e 100644
+--- a/arch/arm/boot/dts/am33xx-clocks.dtsi
 b/arch/arm/boot/dts/am33xx-clocks.dtsi
+@@ -99,7 +99,7 @@
+   ehrpwm0_tbclk: ehrpwm0_tbclk@44e10664 {
+   #clock-cells = 0;
+   compatible = ti,gate-clock;
+-  clocks = dpll_per_m2_ck;
++  clocks = l4ls_gclk;
+   ti,bit-shift = 0;
+   reg = 0x0664;
+   };
+@@ -107,7 +107,7 @@
+   ehrpwm1_tbclk: ehrpwm1_tbclk@44e10664 {
+   #clock-cells = 0;
+   compatible = ti,gate-clock;
+-  clocks = dpll_per_m2_ck;
++  clocks = l4ls_gclk;
+   ti,bit-shift = 1;
+   reg = 0x0664;
+   };
+@@ -115,7 +115,7 @@
+   ehrpwm2_tbclk: ehrpwm2_tbclk@44e10664 {
+   #clock-cells = 0;
+   compatible = ti,gate-clock;
+-  clocks = dpll_per_m2_ck;
++  clocks = l4ls_gclk;
+   ti,bit-shift = 2;
+   reg = 0x0664;
+   };
+diff --git a/arch/arm/boot/dts/am43xx-clocks.dtsi 
b/arch/arm/boot/dts/am43xx-clocks.dtsi
+index c7dc9dab93a4..cfb49686ab6a 100644
+--- a/arch/arm/boot/dts/am43xx-clocks.dtsi
 b/arch/arm/boot/dts/am43xx-clocks.dtsi
+@@ -107,7 +107,7 @@
+   ehrpwm0_tbclk: ehrpwm0_tbclk {
+   #clock-cells = 0;
+   compatible = ti,gate-clock;
+-  clocks = dpll_per_m2_ck;
++  clocks = l4ls_gclk;
+   ti,bit-shift = 0;
+   reg = 0x0664;
+   };
+@@ -115,7 +115,7 @@
+   ehrpwm1_tbclk: ehrpwm1_tbclk {
+   #clock-cells = 0;
+   compatible = ti,gate-clock;
+-  clocks = dpll_per_m2_ck;
++  clocks = l4ls_gclk;
+   ti,bit-shift = 1;
+   reg = 0x0664;
+   };
+@@ -123,7 +123,7 @@
+   ehrpwm2_tbclk: ehrpwm2_tbclk {
+   #clock-cells = 0;
+   compatible = ti,gate-clock;
+-  clocks = dpll_per_m2_ck;
++  clocks = l4ls_gclk;
+   ti,bit-shift = 2;
+   reg = 0x0664;
+   };
+@@ -131,7 +131,7 @@
+   ehrpwm3_tbclk: ehrpwm3_tbclk {
+   #clock-cells = 0;
+   compatible = ti,gate-clock;
+-  clocks = dpll_per_m2_ck;
++  clocks = l4ls_gclk;
+   ti,bit-shift = 4;
+   reg = 0x0664;
+   };
+@@ -139,7 +139,7 @@
+   ehrpwm4_tbclk: ehrpwm4_tbclk {
+   #clock-cells = 0;
+   compatible = ti,gate-clock;
+-  clocks = dpll_per_m2_ck;
++  clocks = l4ls_gclk;
+   ti,bit-shift = 5;
+   reg = 0x0664;
+   };
+@@ -147,7 +147,7 @@
+   ehrpwm5_tbclk: ehrpwm5_tbclk {
+   #clock-cells = 0;
+   compatible = ti,gate-clock;
+-  clocks = dpll_per_m2_ck;
++  clocks = l4ls_gclk;
+   ti,bit-shift = 6;
+   reg = 0x0664;
+   };
+diff --git a/arch/arm/boot/dts/dra7xx-clocks.dtsi 
b/arch/arm/boot/dts/dra7xx-clocks.dtsi
+index 4bdcbd61ce47..99b09a44e269 100644
+--- a/arch/arm/boot/dts/dra7xx-clocks.dtsi
 b/arch/arm/boot/dts/dra7xx-clocks.dtsi
+@@ -243,10 +243,18 @@
+   ti,invert-autoidle-bit;
+   };
+ 
++  dpll_core_byp_mux: dpll_core_byp_mux {
++  #clock-cells = 0;
++  compatible = ti,mux-clock;
++  clocks = sys_clkin1, dpll_abe_m3x2_ck;
++  ti,bit-shift = 23;
++  reg = 0x012c;
++  };
++
+   dpll_core_ck: 

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

2015-03-21 Thread Mike Pagano
commit: 8629a8873e8eb7f6032c575ed4b4646c023ce8f7
Author: Mike Pagano mpagano AT gentoo DOT org
AuthorDate: Sat Mar 21 20:01:20 2015 +
Commit: Mike Pagano mpagano AT gentoo DOT org
CommitDate: Sat Mar 21 20:01:20 2015 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=8629a887

Update gcc = 4.9 optimization patch. See bug #544028.

 ...-additional-cpu-optimizations-for-gcc-4.9.patch | 67 +-
 1 file changed, 41 insertions(+), 26 deletions(-)

diff --git a/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch 
b/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch
index f931f75..c4efd06 100644
--- a/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch
+++ b/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch
@@ -18,13 +18,14 @@ should use the newer 'march=bonnell' flag for atom 
processors.
 I have made that change to this patch set as well.  See the following kernel
 bug report to see if I'm right: 
https://bugzilla.kernel.org/show_bug.cgi?id=77461
 
-This patch will expand the number of microarchitectures to include new
+This patch will expand the number of microarchitectures to include newer
 processors including: AMD K10-family, AMD Family 10h (Barcelona), AMD Family
 14h (Bobcat), AMD Family 15h (Bulldozer), AMD Family 15h (Piledriver), AMD
 Family 16h (Jaguar), Intel 1st Gen Core i3/i5/i7 (Nehalem), Intel 1.5 Gen Core
 i3/i5/i7 (Westmere), Intel 2nd Gen Core i3/i5/i7 (Sandybridge), Intel 3rd Gen
-Core i3/i5/i7 (Ivybridge), Intel 4th Gen Core i3/i5/i7 (Haswell), and Intel 5th
-Gen Core i3/i5/i7 (Broadwell). It also offers the compiler the 'native' flag.
+Core i3/i5/i7 (Ivybridge), Intel 4th Gen Core i3/i5/i7 (Haswell), Intel 5th
+Gen Core i3/i5/i7 (Broadwell), and the low power Silvermont series of Atom
+processors (Silvermont). It also offers the compiler the 'native' flag.
 
 Small but real speed increases are measurable using a make endpoint comparing
 a generic kernel to one built with one of the respective microarchs.
@@ -36,9 +37,9 @@ REQUIREMENTS
 linux version =3.15
 gcc version =4.9
 
 a/arch/x86/include/asm/module.h2014-08-03 18:25:02.0 -0400
-+++ b/arch/x86/include/asm/module.h2014-09-13 09:37:16.721385247 -0400
-@@ -15,6 +15,20 @@
+--- a/arch/x86/include/asm/module.h2014-06-16 16:44:27.0 -0400
 b/arch/x86/include/asm/module.h2015-03-07 03:27:32.556672424 -0500
+@@ -15,6 +15,22 @@
  #define MODULE_PROC_FAMILY 586MMX 
  #elif defined CONFIG_MCORE2
  #define MODULE_PROC_FAMILY CORE2 
@@ -48,6 +49,8 @@ gcc version =4.9
 +#define MODULE_PROC_FAMILY NEHALEM 
 +#elif defined CONFIG_MWESTMERE
 +#define MODULE_PROC_FAMILY WESTMERE 
++#elif defined CONFIG_MSILVERMONT
++#define MODULE_PROC_FAMILY SILVERMONT 
 +#elif defined CONFIG_MSANDYBRIDGE
 +#define MODULE_PROC_FAMILY SANDYBRIDGE 
 +#elif defined CONFIG_MIVYBRIDGE
@@ -59,7 +62,7 @@ gcc version =4.9
  #elif defined CONFIG_MATOM
  #define MODULE_PROC_FAMILY ATOM 
  #elif defined CONFIG_M686
-@@ -33,6 +47,20 @@
+@@ -33,6 +49,20 @@
  #define MODULE_PROC_FAMILY K7 
  #elif defined CONFIG_MK8
  #define MODULE_PROC_FAMILY K8 
@@ -80,8 +83,8 @@ gcc version =4.9
  #elif defined CONFIG_MELAN
  #define MODULE_PROC_FAMILY ELAN 
  #elif defined CONFIG_MCRUSOE
 a/arch/x86/Kconfig.cpu 2014-08-03 18:25:02.0 -0400
-+++ b/arch/x86/Kconfig.cpu 2014-09-13 09:37:16.721385247 -0400
+--- a/arch/x86/Kconfig.cpu 2014-06-16 16:44:27.0 -0400
 b/arch/x86/Kconfig.cpu 2015-03-07 03:32:14.337713226 -0500
 @@ -137,9 +137,8 @@ config MPENTIUM4
-Paxville
-Dempsey
@@ -185,7 +188,7 @@ gcc version =4.9
---help---
  
  Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and
-@@ -260,14 +318,55 @@ config MCORE2
+@@ -260,14 +318,63 @@ config MCORE2
  family in /proc/cpuinfo. Newer ones have 6 and older ones 15
  (not a typo)
  
@@ -213,6 +216,14 @@ gcc version =4.9
 +
 +Enables -march=westmere
 +
++config MSILVERMONT
++  bool Intel Silvermont
++  ---help---
++
++Select this for the Intel Silvermont platform.
++
++Enables -march=silvermont
++
 +config MSANDYBRIDGE
 +  bool Intel Sandy Bridge
 +  ---help---
@@ -247,7 +258,7 @@ gcc version =4.9
  
  config GENERIC_CPU
bool Generic-x86-64
-@@ -276,6 +375,19 @@ config GENERIC_CPU
+@@ -276,6 +383,19 @@ config GENERIC_CPU
  Generic x86-64 CPU.
  Run equally well on all x86-64 CPUs.
  
@@ -267,53 +278,53 @@ gcc version =4.9
  endchoice
  
  config X86_GENERIC
-@@ -300,7 +412,7 @@ config X86_INTERNODE_CACHE_SHIFT
+@@ -300,7 +420,7 @@ config X86_INTERNODE_CACHE_SHIFT
  config X86_L1_CACHE_SHIFT
int
default 7 if MPENTIUM4 || MPSC
 -  default 6 if MK7 || MK8 || MPENTIUMM || MCORE2 || MATOM || MVIAC7 || 
X86_GENERIC || GENERIC_CPU
-+  default 6 if MK7 || MK8 || MK8SSE3 || MK10 || MBARCELONA || MBOBCAT 
|| MBULLDOZER || 

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

2015-03-15 Thread Mike Pagano
commit: 4fe9a0402cb9c9366ec6570ebc12569ac414ca6a
Author: Mike Pagano mpagano AT gentoo DOT org
AuthorDate: Sun Mar 15 18:05:20 2015 +
Commit: Mike Pagano mpagano AT gentoo DOT org
CommitDate: Sun Mar 15 18:05:20 2015 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4fe9a040

Patch to add an option to the Gentoo menu that enables CGROUPS for cgroup, 
IPC_NS for ipc-sandbox, and NET_NS for network-sandbox.

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

diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch
index 690454a..c7af596 100644
--- a/4567_distro-Gentoo-Kconfig.patch
+++ b/4567_distro-Gentoo-Kconfig.patch
@@ -1,5 +1,5 @@
 a/Kconfig  2014-04-02 09:45:05.389224541 -0400
-+++ b/Kconfig  2014-04-02 09:45:39.269224273 -0400
+--- a/Kconfig
 b/Kconfig
 @@ -8,4 +8,6 @@ config SRCARCH
string
option env=SRCARCH
@@ -7,9 +7,9 @@
 +source distro/Kconfig
 +
  source arch/$SRCARCH/Kconfig
 a/distro/Kconfig   1969-12-31 19:00:00.0 -0500
-+++ b/distro/Kconfig   2015-01-02 13:54:45.589830665 -0500
-@@ -0,0 +1,109 @@
+--- /dev/null
 b/distro/Kconfig
+@@ -0,0 +1,131 @@
 +menu Gentoo Linux
 +
 +config GENTOO_LINUX
@@ -30,7 +30,7 @@
 +
 +  depends on GENTOO_LINUX
 +  default y if GENTOO_LINUX
-+  
++
 +  select DEVTMPFS
 +  select TMPFS
 +
@@ -51,7 +51,29 @@
 +  boot process; if not available, it causes sysfs and udev to 
malfunction.
 +
 +  To ensure Gentoo Linux boots, it is best to leave this setting 
enabled;
-+  if you run a custom setup, you could consider whether to 
disable this. 
++  if you run a custom setup, you could consider whether to 
disable this.
++
++config GENTOO_LINUX_PORTAGE
++  bool Select options required by Portage features
++
++  depends on GENTOO_LINUX
++  default y if GENTOO_LINUX
++
++  select CGROUPS
++  select NAMESPACES
++  select IPC_NS
++  select NET_NS
++
++  help
++  This enables options required by various Portage FEATURES.
++  Currently this selects:
++
++  CGROUPS (required for FEATURES=cgroup)
++  IPC_NS  (required for FEATURES=ipc-sandbox)
++  NET_NS  (required for FEATURES=network-sandbox)
++
++  It is highly recommended that you leave this enabled as these 
FEATURES
++  are, or will soon be, enabled by default.
 +
 +menu Support for init systems, system and service managers
 +  visible if GENTOO_LINUX
@@ -93,7 +115,7 @@
 +  select FHANDLE
 +  select INOTIFY_USER
 +  select NET
-+  select NET_NS 
++  select NET_NS
 +  select PROC_FS
 +  select SIGNALFD
 +  select SYSFS



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

2015-02-12 Thread Mike Pagano
commit: d40b86c655e52a66f63863f89fccffdfea33d381
Author: Mike Pagano mpagano AT gentoo DOT org
AuthorDate: Fri Feb 13 01:32:53 2015 +
Commit: Mike Pagano mpagano AT gentoo DOT org
CommitDate: Fri Feb 13 01:32:53 2015 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=d40b86c6

Add optimization patch for gcc verison =  4.9

---
 _README|   6 +-
 ...-additional-cpu-optimizations-for-gcc-4.9.patch | 387 +
 2 files changed, 392 insertions(+), 1 deletion(-)

diff --git a/_README b/_README
index 3e1d0ab..f8e5c36 100644
--- a/_README
+++ b/_README
@@ -65,4 +65,8 @@ Desc:   Add Gentoo Linux support config settings and defaults.
 
 Patch:  5000_enable-additional-cpu-optimizations-for-gcc.patch
 From:   https://github.com/graysky2/kernel_gcc_patch/
-Desc:   Kernel patch enables gcc optimizations for additional CPUs.
+Desc:   Kernel patch enables gcc  v4.9 optimizations for additional CPUs.
+
+Patch:  5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch
+From:   https://github.com/graysky2/kernel_gcc_patch/
+Desc:   Kernel patch enables gcc = v4.9 optimizations for additional CPUs.

diff --git a/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch 
b/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch
new file mode 100644
index 000..f931f75
--- /dev/null
+++ b/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch
@@ -0,0 +1,387 @@
+WARNING - this version of the patch works with version 4.9+ of gcc and with
+kernel version 3.15.x+ and should NOT be applied when compiling on older
+versions due to name changes of the flags with the 4.9 release of gcc.
+Use the older version of this patch hosted on the same github for older
+versions of gcc. For example:
+
+corei7 -- nehalem
+corei7-avx -- sandybridge
+core-avx-i -- ivybridge
+core-avx2 -- haswell
+
+For more, see: https://gcc.gnu.org/gcc-4.9/changes.html
+
+It also changes 'atom' to 'bonnell' in accordance with the gcc v4.9 changes.
+Note that upstream is using the deprecated 'match=atom' flags when I believe it
+should use the newer 'march=bonnell' flag for atom processors.
+
+I have made that change to this patch set as well.  See the following kernel
+bug report to see if I'm right: 
https://bugzilla.kernel.org/show_bug.cgi?id=77461
+
+This patch will expand the number of microarchitectures to include new
+processors including: AMD K10-family, AMD Family 10h (Barcelona), AMD Family
+14h (Bobcat), AMD Family 15h (Bulldozer), AMD Family 15h (Piledriver), AMD
+Family 16h (Jaguar), Intel 1st Gen Core i3/i5/i7 (Nehalem), Intel 1.5 Gen Core
+i3/i5/i7 (Westmere), Intel 2nd Gen Core i3/i5/i7 (Sandybridge), Intel 3rd Gen
+Core i3/i5/i7 (Ivybridge), Intel 4th Gen Core i3/i5/i7 (Haswell), and Intel 5th
+Gen Core i3/i5/i7 (Broadwell). It also offers the compiler the 'native' flag.
+
+Small but real speed increases are measurable using a make endpoint comparing
+a generic kernel to one built with one of the respective microarchs.
+
+See the following experimental evidence supporting this statement:
+https://github.com/graysky2/kernel_gcc_patch
+
+REQUIREMENTS
+linux version =3.15
+gcc version =4.9
+
+--- a/arch/x86/include/asm/module.h2014-08-03 18:25:02.0 -0400
 b/arch/x86/include/asm/module.h2014-09-13 09:37:16.721385247 -0400
+@@ -15,6 +15,20 @@
+ #define MODULE_PROC_FAMILY 586MMX 
+ #elif defined CONFIG_MCORE2
+ #define MODULE_PROC_FAMILY CORE2 
++#elif defined CONFIG_MNATIVE
++#define MODULE_PROC_FAMILY NATIVE 
++#elif defined CONFIG_MNEHALEM
++#define MODULE_PROC_FAMILY NEHALEM 
++#elif defined CONFIG_MWESTMERE
++#define MODULE_PROC_FAMILY WESTMERE 
++#elif defined CONFIG_MSANDYBRIDGE
++#define MODULE_PROC_FAMILY SANDYBRIDGE 
++#elif defined CONFIG_MIVYBRIDGE
++#define MODULE_PROC_FAMILY IVYBRIDGE 
++#elif defined CONFIG_MHASWELL
++#define MODULE_PROC_FAMILY HASWELL 
++#elif defined CONFIG_MBROADWELL
++#define MODULE_PROC_FAMILY BROADWELL 
+ #elif defined CONFIG_MATOM
+ #define MODULE_PROC_FAMILY ATOM 
+ #elif defined CONFIG_M686
+@@ -33,6 +47,20 @@
+ #define MODULE_PROC_FAMILY K7 
+ #elif defined CONFIG_MK8
+ #define MODULE_PROC_FAMILY K8 
++#elif defined CONFIG_MK8SSE3
++#define MODULE_PROC_FAMILY K8SSE3 
++#elif defined CONFIG_MK10
++#define MODULE_PROC_FAMILY K10 
++#elif defined CONFIG_MBARCELONA
++#define MODULE_PROC_FAMILY BARCELONA 
++#elif defined CONFIG_MBOBCAT
++#define MODULE_PROC_FAMILY BOBCAT 
++#elif defined CONFIG_MBULLDOZER
++#define MODULE_PROC_FAMILY BULLDOZER 
++#elif defined CONFIG_MPILEDRIVER
++#define MODULE_PROC_FAMILY PILEDRIVER 
++#elif defined CONFIG_MJAGUAR
++#define MODULE_PROC_FAMILY JAGUAR 
+ #elif defined CONFIG_MELAN
+ #define MODULE_PROC_FAMILY ELAN 
+ #elif defined CONFIG_MCRUSOE
+--- a/arch/x86/Kconfig.cpu 2014-08-03 18:25:02.0 -0400
 b/arch/x86/Kconfig.cpu 2014-09-13 09:37:16.721385247 -0400
+@@ -137,9 +137,8 @@ config MPENTIUM4
+

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

2015-02-12 Thread Mike Pagano
commit: 323c782c4e1726ca1aa855cccd5e7d8730d62ba8
Author: Mike Pagano mpagano AT gentoo DOT org
AuthorDate: Fri Feb 13 01:47:53 2015 +
Commit: Mike Pagano mpagano AT gentoo DOT org
CommitDate: Fri Feb 13 01:47:53 2015 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=323c782c

Bootsplash ported by Marco. (Bug #539616)

---
 _README|4 +
 4200_fbcondecor-3.19.patch | 2119 
 2 files changed, 2123 insertions(+)

diff --git a/_README b/_README
index f8e5c36..3fa77db 100644
--- a/_README
+++ b/_README
@@ -59,6 +59,10 @@ Patch:  2905_s2disk-resume-image-fix.patch
 From:   Al Viro viro at ZenIV.linux.org.uk
 Desc:   Do not lock when UMH is waiting on current thread spawned by linuxrc. 
(bug #481344)
 
+Patch:  4200_fbcondecor-3.19.patch
+From:   http://www.mepiscommunity.org/fbcondecor
+Desc:   Bootsplash ported by Marco. (Bug #539616)
+
 Patch:  4567_distro-Gentoo-Kconfig.patch
 From:   Tom Wijsman tom...@gentoo.org
 Desc:   Add Gentoo Linux support config settings and defaults.

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

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

2015-02-09 Thread Mike Pagano
commit: 660f7e02c537cb3413d947fd8aa57970acf707eb
Author: Mike Pagano mpagano AT gentoo DOT org
AuthorDate: Mon Feb  9 11:12:45 2015 +
Commit: Mike Pagano mpagano AT gentoo DOT org
CommitDate: Mon Feb  9 11:12:45 2015 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=660f7e02

Remove broken patch for fbcondecor

---
 4200_fbcondecor-3.16.patch | 2119 
 1 file changed, 2119 deletions(-)

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

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

2015-02-09 Thread Mike Pagano
commit: 7016604fd038de37963c5bcd01d41004a1375915
Author: Mike Pagano mpagano AT gentoo DOT org
AuthorDate: Mon Feb  9 11:54:26 2015 +
Commit: Mike Pagano mpagano AT gentoo DOT org
CommitDate: Mon Feb  9 11:54:26 2015 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=7016604f

Remove reference to fbcondecor

---
 _README | 4 
 1 file changed, 4 deletions(-)

diff --git a/_README b/_README
index 7a25c41..3e1d0ab 100644
--- a/_README
+++ b/_README
@@ -59,10 +59,6 @@ Patch:  2905_s2disk-resume-image-fix.patch
 From:   Al Viro viro at ZenIV.linux.org.uk
 Desc:   Do not lock when UMH is waiting on current thread spawned by linuxrc. 
(bug #481344)
 
-Patch:  4200_fbcondecor-3.16.patch
-From:   http://www.mepiscommunity.org/fbcondecor
-Desc:   Bootsplash ported by Uladzimir Bely (bug #513334)
-
 Patch:  4567_distro-Gentoo-Kconfig.patch
 From:   Tom Wijsman tom...@gentoo.org
 Desc:   Add Gentoo Linux support config settings and defaults.



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

2015-01-02 Thread Mike Pagano
commit: b1dbfed9f92d5977f58ffa78c44e7024f6b2a14b
Author: Mike Pagano mpagano AT gentoo DOT org
AuthorDate: Fri Jan  2 19:08:35 2015 +
Commit: Mike Pagano mpagano AT gentoo DOT org
CommitDate: Fri Jan  2 19:08:35 2015 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=b1dbfed9

Add DEVPTS_MULTIPLE_INSTANCES when GENTOO_LINUX_INIT_SYSTEMD is selected. See 
bug #534216

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

diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch
index 652e2a7..690454a 100644
--- a/4567_distro-Gentoo-Kconfig.patch
+++ b/4567_distro-Gentoo-Kconfig.patch
@@ -7,9 +7,9 @@
 +source distro/Kconfig
 +
  source arch/$SRCARCH/Kconfig
1969-12-31 19:00:00.0 -0500
-+++ b/distro/Kconfig   2014-04-02 09:57:03.539218861 -0400
-@@ -0,0 +1,108 @@
+--- a/distro/Kconfig   1969-12-31 19:00:00.0 -0500
 b/distro/Kconfig   2015-01-02 13:54:45.589830665 -0500
+@@ -0,0 +1,109 @@
 +menu Gentoo Linux
 +
 +config GENTOO_LINUX
@@ -87,6 +87,7 @@
 +  select AUTOFS4_FS
 +  select BLK_DEV_BSG
 +  select CGROUPS
++  select DEVPTS_MULTIPLE_INSTANCES
 +  select EPOLL
 +  select FANOTIFY
 +  select FHANDLE



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

2014-12-23 Thread Mike Pagano
commit: 514ae3e4b0d105f8eee62133c0fedded9002638d
Author: Mike Pagano mpagano AT gentoo DOT org
AuthorDate: Tue Dec 23 17:32:18 2014 +
Commit: Mike Pagano mpagano AT gentoo DOT org
CommitDate: Tue Dec 23 17:32:18 2014 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=514ae3e4

ACPI: Disable Windows 8 compatibility for some Lenovo ThinkPads. Patch to 
ensure that /dev/root doesn't appear in /proc/mounts when bootint without an 
initramfs. Patch to not lock when UMH is waiting on current thread spawned by 
linuxrc. (bug #481344). Bootsplash ported by Uladzimir Bely (bug #513334). 
Kernel patch enables gcc optimizations for additional CPUs.

---
 _README|   20 +
 2700_ThinkPad-30-brightness-control-fix.patch  |   67 +
 2900_dev-root-proc-mount-fix.patch |   30 +
 2905_2disk-resume-image-fix.patch  |   24 +
 4200_fbcondecor-3.16.patch | 2119 
 ...able-additional-cpu-optimizations-for-gcc.patch |  327 +++
 6 files changed, 2587 insertions(+)

diff --git a/_README b/_README
index 36c2b96..7a25c41 100644
--- a/_README
+++ b/_README
@@ -47,6 +47,26 @@ 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:  2700_ThinkPad-30-brightness-control-fix.patch
+From:   Seth Forshee seth.fors...@canonical.com
+Desc:   ACPI: Disable Windows 8 compatibility for some Lenovo ThinkPads.
+
+Patch:  2900_dev-root-proc-mount-fix.patch
+From:   https://bugs.gentoo.org/show_bug.cgi?id=438380
+Desc:   Ensure that /dev/root doesn't appear in /proc/mounts when bootint 
without an initramfs.
+
+Patch:  2905_s2disk-resume-image-fix.patch
+From:   Al Viro viro at ZenIV.linux.org.uk
+Desc:   Do not lock when UMH is waiting on current thread spawned by linuxrc. 
(bug #481344)
+
+Patch:  4200_fbcondecor-3.16.patch
+From:   http://www.mepiscommunity.org/fbcondecor
+Desc:   Bootsplash ported by Uladzimir Bely (bug #513334)
+
 Patch:  4567_distro-Gentoo-Kconfig.patch
 From:   Tom Wijsman tom...@gentoo.org
 Desc:   Add Gentoo Linux support config settings and defaults.
+
+Patch:  5000_enable-additional-cpu-optimizations-for-gcc.patch
+From:   https://github.com/graysky2/kernel_gcc_patch/
+Desc:   Kernel patch enables gcc optimizations for additional CPUs.

diff --git a/2700_ThinkPad-30-brightness-control-fix.patch 
b/2700_ThinkPad-30-brightness-control-fix.patch
new file mode 100644
index 000..b548c6d
--- /dev/null
+++ b/2700_ThinkPad-30-brightness-control-fix.patch
@@ -0,0 +1,67 @@
+diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
+index cb96296..6c242ed 100644
+--- a/drivers/acpi/blacklist.c
 b/drivers/acpi/blacklist.c
+@@ -269,6 +276,61 @@  static struct dmi_system_id acpi_osi_dmi_table[] 
__initdata = {
+   },
+ 
+   /*
++   * The following Lenovo models have a broken workaround in the
++   * acpi_video backlight implementation to meet the Windows 8
++   * requirement of 101 backlight levels. Reverting to pre-Win8
++   * behavior fixes the problem.
++   */
++  {
++  .callback = dmi_disable_osi_win8,
++  .ident = Lenovo ThinkPad L430,
++  .matches = {
++   DMI_MATCH(DMI_SYS_VENDOR, LENOVO),
++   DMI_MATCH(DMI_PRODUCT_VERSION, ThinkPad L430),
++  },
++  },
++  {
++  .callback = dmi_disable_osi_win8,
++  .ident = Lenovo ThinkPad T430s,
++  .matches = {
++   DMI_MATCH(DMI_SYS_VENDOR, LENOVO),
++   DMI_MATCH(DMI_PRODUCT_VERSION, ThinkPad T430s),
++  },
++  },
++  {
++  .callback = dmi_disable_osi_win8,
++  .ident = Lenovo ThinkPad T530,
++  .matches = {
++   DMI_MATCH(DMI_SYS_VENDOR, LENOVO),
++   DMI_MATCH(DMI_PRODUCT_VERSION, ThinkPad T530),
++  },
++  },
++  {
++  .callback = dmi_disable_osi_win8,
++  .ident = Lenovo ThinkPad W530,
++  .matches = {
++   DMI_MATCH(DMI_SYS_VENDOR, LENOVO),
++   DMI_MATCH(DMI_PRODUCT_VERSION, ThinkPad W530),
++  },
++  },
++  {
++  .callback = dmi_disable_osi_win8,
++  .ident = Lenovo ThinkPad X1 Carbon,
++  .matches = {
++   DMI_MATCH(DMI_SYS_VENDOR, LENOVO),
++   DMI_MATCH(DMI_PRODUCT_VERSION, ThinkPad X1 Carbon),
++  },
++  },
++  {
++  .callback = dmi_disable_osi_win8,
++  .ident = Lenovo ThinkPad X230,
++  .matches = {
++   DMI_MATCH(DMI_SYS_VENDOR, LENOVO),
++   DMI_MATCH(DMI_PRODUCT_VERSION, ThinkPad X230),
++  },
++  },
++
++  /*
+* BIOS invocation of _OSI(Linux) is almost always a BIOS bug.
+* Linux ignores it, except for the machines enumerated below.
+*/
+