1. 12 Apr, 2016 36 commits
  2. 14 Mar, 2016 1 commit
  3. 13 Mar, 2016 3 commits
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · a2655549
      Linus Torvalds authored
      Pull MIPS fixes from Ralf Baechle:
       "Another round of MIPS fixes for 4.5:
      
         - Fix JZ4780 build with DEBUG_ZBOOT and MACH_JZ4780
         - Fix build with DEBUG_ZBOOT and MACH_JZ4780
         - Fix issue with uninitialised temp_foreign_map
         - Fix awk regex compile failure with certain versions of awk.  At
           this time, the sole user, ld-ifversion, is only used on MIPS"
      
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
        MIPS: smp.c: Fix uninitialised temp_foreign_map
        MIPS: Fix build error when SMP is used without GIC
        ld-version: Fix awk regex compile failure
        MIPS: Fix build with DEBUG_ZBOOT and MACH_JZ4780
      a2655549
    • James Hogan's avatar
      MIPS: smp.c: Fix uninitialised temp_foreign_map · d825c06b
      James Hogan authored
      When calculate_cpu_foreign_map() recalculates the cpu_foreign_map
      cpumask it uses the local variable temp_foreign_map without initialising
      it to zero. Since the calculation only ever sets bits in this cpumask
      any existing bits at that memory location will remain set and find their
      way into cpu_foreign_map too. This could potentially lead to cache
      operations suboptimally doing smp calls to multiple VPEs in the same
      core, even though the VPEs share primary caches.
      
      Therefore initialise temp_foreign_map using cpumask_clear() before use.
      
      Fixes: cccf34e9 ("MIPS: c-r4k: Fix cache flushing for MT cores")
      Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
      Cc: Paul Burton <paul.burton@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/12759/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      d825c06b
    • Hauke Mehrtens's avatar
      MIPS: Fix build error when SMP is used without GIC · 7a50e468
      Hauke Mehrtens authored
      The MIPS_GIC_IPI should only be selected when MIPS_GIC is also
      selected, otherwise it results in a compile error. smp-gic.c uses some
      functions from include/linux/irqchip/mips-gic.h like
      plat_ipi_call_int_xlate() which are only added to the header file when
      MIPS_GIC is set. The Lantiq SoC does not use the GIC, but supports SMP.
      The calls top the functions from smp-gic.c are already protected by
      some #ifdefs
      
      The first part of this was introduced in commit 72e20142 ("MIPS:
      Move GIC IPI functions out of smp-cmp.c")
      Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
      Cc: Paul Burton <paul.burton@imgtec.com>
      Cc: stable@vger.kernel.org # v3.15+
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/12774/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      7a50e468