1. 22 Jan, 2020 5 commits
    • Alexander Lobakin's avatar
      MIPS: make CPU_HAS_LOAD_STORE_LR opt-out · 18d84e2e
      Alexander Lobakin authored
      CPU_HAS_LOAD_STORE_LR was introduced in 932afdee ("MIPS: Add Kconfig
      variable for CPUs with unaligned load/store instructions") to make code
      in kernel/unaligned.c and lib/mem{cpy,set}.S more intuitive and give a
      possibility to easily add new CPUs without these instruction sets in
      future.
      
      Hovewer, this variant is not optimal for mainly two reasons:
      * For now, we have 20+ CPUs with such instructions and only two (MIPS R6)
        without. It will obviously be more effective and straightforward to
        have an option for these two rather than for the rest.
      * You can easily miss the fact that you need to select this option when
        adding a new CPU, while all processors lacking these sets are
        well-known, so the probability of missing something is way much lower.
      
      We can address both points by turning CPU_HAS_LOAD_STORE_LR into opt-out
      CPU_NO_LOAD_STORE_LR. This also makes MIPS root Kconfig more clear and
      understandable.
      Signed-off-by: default avatarAlexander Lobakin <alobakin@dlink.ru>
      Signed-off-by: default avatarPaul Burton <paulburton@kernel.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
      Cc: Microchip Linux Driver Support <UNGLinuxDriver@microchip.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Cc: Allison Randal <allison@lohutok.net>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Eric W. Biederman <ebiederm@xmission.com>
      Cc: linux-mips@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      18d84e2e
    • Alexander Lobakin's avatar
      MIPS: generic: don't unconditionally select PINCTRL · 7de86604
      Alexander Lobakin authored
      CONFIG_PINCTRL was converted from hidden selectable to a visible option
      with commit d219b924 ("pinctrl: change Kconfig PINCTRL variable to
      a menuconfig"). Remove unconditional select and enable this symbol in
      Ocelot config, which currently is the only user among generic boards.
      Signed-off-by: default avatarAlexander Lobakin <alobakin@dlink.ru>
      Signed-off-by: default avatarPaul Burton <paulburton@kernel.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
      Cc: Microchip Linux Driver Support <UNGLinuxDriver@microchip.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Cc: Allison Randal <allison@lohutok.net>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Eric W. Biederman <ebiederm@xmission.com>
      Cc: linux-mips@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      7de86604
    • Alexander Lobakin's avatar
      MIPS: don't explicitly select LIBFDT in Kconfig · 7c8f1379
      Alexander Lobakin authored
      It gets selected anyway through USE_OF -> OF_EARLY_FLATTREE ->
      OF_FLATTREE -> LIBFDT, no need to double-check.
      Signed-off-by: default avatarAlexander Lobakin <alobakin@dlink.ru>
      Signed-off-by: default avatarPaul Burton <paulburton@kernel.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
      Cc: Microchip Linux Driver Support <UNGLinuxDriver@microchip.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Cc: Allison Randal <allison@lohutok.net>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Eric W. Biederman <ebiederm@xmission.com>
      Cc: linux-mips@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      7c8f1379
    • Sergey Korolev's avatar
      MIPS: sync-r4k: do slave counter synchronization with disabled HW interrupts · 0956be29
      Sergey Korolev authored
      synchronise_count_slave() called with an enabled in mips_clockevent_init()
      timer interrupt which may decrease synchronization precision.
      Signed-off-by: default avatarSergey Korolev <s.korolev@ndmsystems.com>
      Signed-off-by: default avatarPaul Burton <paulburton@kernel.org>
      Cc: linux-mips@vger.kernel.org
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: James Hogan <jhogan@kernel.org>
      Cc: linux-kernel@vger.kernel.org
      0956be29
    • Thomas Bogendoerfer's avatar
      MIPS: SGI-IP30: Check for valid pointer before using it · c0e79fd8
      Thomas Bogendoerfer authored
      Fix issue detected by Smatch:
      
          ./arch/mips/sgi-ip30/ip30-irq.c:236 heart_domain_free()
           warn: variable dereferenced before check 'irqd' (see line 235)
      
      Fixes: 7505576d ("MIPS: add support for SGI Octane (IP30)")
      Signed-off-by: default avatarThomas Bogendoerfer <tbogendoerfer@suse.de>
      Signed-off-by: default avatarPaul Burton <paulburton@kernel.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: James Hogan <jhogan@kernel.org>
      Cc: linux-mips@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: <stable@vger.kernel.org> # v5.5+
      c0e79fd8
  2. 20 Jan, 2020 3 commits
    • Alexander Lobakin's avatar
      MIPS: syscalls: fix indentation of the 'SYSNR' message · 4f29ad20
      Alexander Lobakin authored
      It also lacks a whitespace (copy'n'paste error?) and also messes up the
      output:
      
        SYSHDR  arch/mips/include/generated/uapi/asm/unistd_n32.h
        SYSHDR  arch/mips/include/generated/uapi/asm/unistd_n64.h
        SYSHDR  arch/mips/include/generated/uapi/asm/unistd_o32.h
        SYSNR  arch/mips/include/generated/uapi/asm/unistd_nr_n32.h
        SYSNR  arch/mips/include/generated/uapi/asm/unistd_nr_n64.h
        SYSNR  arch/mips/include/generated/uapi/asm/unistd_nr_o32.h
        WRAP    arch/mips/include/generated/uapi/asm/bpf_perf_event.h
        WRAP    arch/mips/include/generated/uapi/asm/ipcbuf.h
      
      After:
      
        SYSHDR  arch/mips/include/generated/uapi/asm/unistd_n32.h
        SYSHDR  arch/mips/include/generated/uapi/asm/unistd_n64.h
        SYSHDR  arch/mips/include/generated/uapi/asm/unistd_o32.h
        SYSNR   arch/mips/include/generated/uapi/asm/unistd_nr_n32.h
        SYSNR   arch/mips/include/generated/uapi/asm/unistd_nr_n64.h
        SYSNR   arch/mips/include/generated/uapi/asm/unistd_nr_o32.h
        WRAP    arch/mips/include/generated/uapi/asm/bpf_perf_event.h
        WRAP    arch/mips/include/generated/uapi/asm/ipcbuf.h
      
      Present since day 0 of syscall table generation introduction for MIPS.
      
      Fixes: 9bcbf97c ("mips: add system call table generation support")
      Cc: <stable@vger.kernel.org> # v5.0+
      Signed-off-by: default avatarAlexander Lobakin <alobakin@dlink.ru>
      Signed-off-by: default avatarPaul Burton <paulburton@kernel.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: James Hogan <jhogan@kernel.org>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: Rob Herring <robh@kernel.org>
      Cc: linux-mips@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      4f29ad20
    • Alexander Lobakin's avatar
      MIPS: boot: fix typo in 'vmlinux.lzma.its' target · 16202c09
      Alexander Lobakin authored
      Commit 92b34a97 ("MIPS: boot: add missing targets for vmlinux.*.its")
      fixed constant rebuild of *.its files on every make invocation, but due
      to typo ("lzmo") it made no sense for vmlinux.lzma.its.
      
      Fixes: 92b34a97 ("MIPS: boot: add missing targets for vmlinux.*.its")
      Cc: <stable@vger.kernel.org> # v4.19+
      Signed-off-by: default avatarAlexander Lobakin <alobakin@dlink.ru>
      [paulburton@kernel.org: s/invokation/invocation/]
      Signed-off-by: default avatarPaul Burton <paulburton@kernel.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: James Hogan <jhogan@kernel.org>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: Rob Herring <robh@kernel.org>
      Cc: linux-mips@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      16202c09
    • Alexander Lobakin's avatar
      MIPS: fix indentation of the 'RELOCS' message · a5399880
      Alexander Lobakin authored
      quiet_cmd_relocs lacks a whitespace which results in:
      
        LD      vmlinux
        SORTEX  vmlinux
        SYSMAP  System.map
        RELOCS vmlinux
        Building modules, stage 2.
        MODPOST 64 modules
      
      After this patch:
      
        LD      vmlinux
        SORTEX  vmlinux
        SYSMAP  System.map
        RELOCS  vmlinux
        Building modules, stage 2.
        MODPOST 64 modules
      
      Typo is present in kernel tree since the introduction of relocatable
      kernel support in commit e818fac5 ("MIPS: Generate relocation table
      when CONFIG_RELOCATABLE"), but the relocation scripts were moved to
      Makefile.postlink later with commit 44079d35 ("MIPS: Use
      Makefile.postlink to insert relocations into vmlinux").
      
      Fixes: 44079d35 ("MIPS: Use Makefile.postlink to insert relocations into vmlinux")
      Cc: <stable@vger.kernel.org> # v4.11+
      Signed-off-by: default avatarAlexander Lobakin <alobakin@dlink.ru>
      [paulburton@kernel.org: Fixup commit references in commit message.]
      Signed-off-by: default avatarPaul Burton <paulburton@kernel.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: James Hogan <jhogan@kernel.org>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: Rob Herring <robh@kernel.org>
      Cc: linux-mips@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      a5399880
  3. 15 Jan, 2020 7 commits
  4. 13 Jan, 2020 2 commits
  5. 10 Jan, 2020 4 commits
  6. 09 Jan, 2020 19 commits