1. 28 3月, 2017 1 次提交
    • J
      MIPS: Add defs & probing of UFR · 4e87580e
      James Hogan 提交于
      Add definitions and probing of the UFR bit in Config5. This bit allows
      user mode control of the FR bit (floating point register mode). It is
      present if the UFRP bit is set in the floating point implementation
      register.
      
      This is a capability KVM may want to expose to guest kernels, even
      though Linux is unlikely to ever use it due to the implications for
      multi-threaded programs.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Acked-by: NRalf Baechle <ralf@linux-mips.org>
      Cc: Paul Burton <paul.burton@imgtec.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: "Radim Krčmář" <rkrcmar@redhat.com>
      Cc: linux-mips@linux-mips.org
      Cc: kvm@vger.kernel.org
      4e87580e
  2. 04 10月, 2016 1 次提交
  3. 13 5月, 2016 16 次提交
  4. 20 1月, 2016 1 次提交
  5. 23 9月, 2015 1 次提交
  6. 03 9月, 2015 1 次提交
  7. 26 8月, 2015 1 次提交
  8. 22 6月, 2015 2 次提交
    • J
      MIPS: R12000: Enable branch prediction global history · 8d5ded16
      Joshua Kinard 提交于
      The R12000 added a new feature to enhance branch prediction called
      "global history".  Per the Vr10000 Series User Manual (U10278EJ4V0UM),
      Coprocessor 0, Diagnostic Register (22):
      
      """
      If bit 26 is set, branch prediction uses all eight bits of the global
      history register.  If bit 26 is not set, then bits 25:23 specify a count
      of the number of bits of global history to be used. Thus if bits 26:23
      are all zero, global history is disabled.
      
      The global history contains a record of the taken/not-taken status of
      recently executed branches, and when used is XOR'ed with the PC of a
      branch being predicted to produce a hashed value for indexing the BPT.
      Some programs with small "working set of conditional branches" benefit
      significantly from the use of such hashing, some see slight performance
      degradation.
      """
      
      This patch enables global history on R12000 CPUs and up by setting bit
      26 in the branch prediction diagnostic register (CP0 $22) to '1'.  Bits
      25:23 are left alone so that all eight bits of the global history
      register are available for branch prediction.
      Signed-off-by: NJoshua Kinard <kumba@gentoo.org>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      8d5ded16
    • P
      MIPS: ingenic: Add newer vendor IDs · 252617a4
      Paul Burton 提交于
      Ingenic have actually varied the vendor/company ID of the XBurst cores
      across their range of SoCs, whilst keeping the product ID & revision
      constant... Add definitions for vendor IDs known to be used in some of
      Ingenic's newer SoCs, and handle them in the same way as the existing
      Ingenic vendor ID from the JZ4740.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Co-authored-by: NPaul Cercueil <paul@crapouillou.net>
      Cc: Lars-Peter Clausen <lars@metafoo.de>
      Cc: linux-mips@linux-mips.org
      Cc: Steven J. Hill <Steven.Hill@imgtec.com>
      Cc: Joshua Kinard <kumba@gentoo.org>
      Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
      Cc: Maciej W. Rozycki <macro@linux-mips.org>
      Cc: linux-kernel@vger.kernel.org
      Cc: Huacai Chen <chenhc@lemote.com>
      Cc: Markos Chandras <markos.chandras@imgtec.com>
      Patchwork: https://patchwork.linux-mips.org/patch/10128/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      252617a4
  9. 01 4月, 2015 1 次提交
  10. 31 3月, 2015 1 次提交
  11. 20 3月, 2015 1 次提交
  12. 17 2月, 2015 2 次提交
  13. 16 2月, 2015 1 次提交
  14. 24 11月, 2014 2 次提交
  15. 02 8月, 2014 4 次提交
  16. 31 7月, 2014 1 次提交
    • H
      MIPS: Add Loongson-3B support · e7841be5
      Huacai Chen 提交于
      Loongson-3B is a 8-cores processor. In general it looks like there are
      two Loongson-3A integrated in one chip: 8 cores are separated into two
      groups (two NUMA node), each node has its own local memory.
      
      Of course there are some differences between one Loongson-3B and two
      Loongson-3A. E.g., the base addresses of IPI registers of each node are
      not the same; Loongson-3A use ChipConfig register to enable/disable
      clock, but Loongson-3B use FreqControl register instead.
      
      There are two revision of Loongson-3B, the first revision is called as
      Loongson-3B1000, whose frequency is 1GHz and has a PRid 0x6306, the
      second revision is called as Loongson-3B1500, whose frequency is 1.5GHz
      and has a PRid 0x6307. Both revisions has a bug that clock cannot be
      disabled at runtime, but this will be fixed in future.
      Signed-off-by: NHuacai Chen <chenhc@lemote.com>
      Cc: John Crispin <john@phrozen.org>
      Cc: Steven J. Hill <Steven.Hill@imgtec.com>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: linux-mips@linux-mips.org
      Cc: Fuxin Zhang <zhangfx@lemote.com>
      Cc: Zhangjin Wu <wuzhangjin@gmail.com>
      Patchwork: https://patchwork.linux-mips.org/patch/7188/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      e7841be5
  17. 30 5月, 2014 1 次提交
  18. 23 5月, 2014 1 次提交
  19. 01 4月, 2014 1 次提交
    • H
      MIPS: Loongson: Add basic Loongson-3 definition · 152ebb44
      Huacai Chen 提交于
      Loongson-3 is a multi-core MIPS family CPU, it support MIPS64R2 fully.
      Loongson-3 has the same IMP field (0x6300) as Loongson-2.
      
      Loongson-3 has a hardware-maintained cache, system software doesn't
      need to maintain coherency.
      
      Loongson-3A is the first revision of Loongson-3, and it is the quad-
      core version of Loongson-2G. Loongson-3A has a simplified version named
      Loongson-2Gq, the main difference between Loongson-3A/2Gq is 3A has two
      HyperTransport controller but 2Gq has only one. HT0 is used for cross-
      chip interconnection and HT1 is used to link PCI bus. Therefore, 2Gq
      cannot support NUMA but 3A can. For software, Loongson-2Gq is simply
      identified as Loongson-3A.
      
      Exsisting Loongson family CPUs:
      Loongson-1: Loongson-1A, Loongson-1B, they are 32-bit MIPS CPUs.
      Loongson-2: Loongson-2E, Loongson-2F, Loongson-2G, they are 64-bit
                  single-core MIPS CPUs.
      Loongson-3: Loongson-3A(including so-called Loongson-2Gq), they are
                  64-bit multi-core MIPS CPUs.
      Signed-off-by: NHuacai Chen <chenhc@lemote.com>
      Signed-off-by: NHongliang Tao <taohl@lemote.com>
      Signed-off-by: NHua Yan <yanh@lemote.com>
      Tested-by: NAlex Smith <alex.smith@imgtec.com>
      Reviewed-by: NAlex Smith <alex.smith@imgtec.com>
      Cc: John Crispin <john@phrozen.org>
      Cc: Steven J. Hill <Steven.Hill@imgtec.com>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: linux-mips@linux-mips.org
      Cc: Fuxin Zhang <zhangfx@lemote.com>
      Cc: Zhangjin Wu <wuzhangjin@gmail.com>
      Patchwork: https://patchwork.linux-mips.org/patch/6629/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      152ebb44