1. 23 Jan, 2020 3 commits
  2. 22 Jan, 2020 9 commits
    • Jiaxun Yang's avatar
      MIPS: Loongson64: Select mac2008 only feature · c9444384
      Jiaxun Yang authored
      Some Loongson-64 processor didn't set MAC2008 bit in fcsr,
      but actually all Loongson64 processors are MAC2008 only.
      Signed-off-by: default avatarJiaxun Yang <jiaxun.yang@flygoat.com>
      Signed-off-by: default avatarPaul Burton <paulburton@kernel.org>
      Cc: linux-mips@vger.kernel.org
      Cc: chenhc@lemote.com
      Cc: paul.burton@mips.com
      Cc: linux-kernel@vger.kernel.org
      c9444384
    • Jiaxun Yang's avatar
      MIPS: Add MAC2008 Support · ece276de
      Jiaxun Yang authored
      MAC2008 means the processor implemented IEEE754 style Fused MADD
      instruction. It was introduced in Release3 but removed in Release5.
      
      The toolchain support of MAC2008 have never landed except for Loongson
      processors.
      
      This patch aimed to disabled the MAC2008 if it's optional. For
      MAC2008 only processors, we corrected math-emu behavior to align
      with actual hardware behavior.
      Signed-off-by: default avatarJiaxun Yang <jiaxun.yang@flygoat.com>
      [paulburton@kernel.org: Fixup MIPSr2-r5 check in cpu_set_fpu_2008.]
      Signed-off-by: default avatarPaul Burton <paulburton@kernel.org>
      Cc: linux-mips@vger.kernel.org
      Cc: chenhc@lemote.com
      Cc: paul.burton@mips.com
      Cc: linux-kernel@vger.kernel.org
      ece276de
    • Alexander Lobakin's avatar
      Revert "MIPS: Add custom serial.h with BASE_BAUD override for generic kernel" · 0a3d5b57
      Alexander Lobakin authored
      This reverts commit c8ec2041.
      
      There's no more need to set BASE_BAUD to 0 to make earlycon work
      properly on DTS-based boards since such cases were handled in commit
      182ead3e ("earlycon: Remove hardcoded port->uartclk initialization
      in of_setup_earlycon"). earlycon no longer initializes port->uartclk
      with a value of BASE_BAUD * 16 when starting from FDT/OF.
      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
      0a3d5b57
    • Alexander Lobakin's avatar
      MIPS: sort MIPS and MIPS_GENERIC Kconfig selects alphabetically (again) · 34c01e41
      Alexander Lobakin authored
      Cycles "sort selects alphabetically -> add new options at the end or at
      random place -> repeat" go on and on.
      Please double-check when adding new options and make sure that they
      don't break the existing order to prevent dumb commits like this one
      from appearing.
      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
      34c01e41
    • 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
  3. 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
  4. 15 Jan, 2020 7 commits
  5. 13 Jan, 2020 2 commits
  6. 10 Jan, 2020 4 commits
  7. 09 Jan, 2020 12 commits