Skip to content
Snippets Groups Projects
  1. Feb 17, 2015
  2. Nov 24, 2014
    • Paul Burton's avatar
      MIPS: Support for hybrid FPRs · 4227a2d4
      Paul Burton authored
      
      Hybrid FPRs is a scheme where scalar FP registers are 64b wide, but
      accesses to odd indexed single registers use bits 63:32 of the
      preceeding even indexed 64b register. In this mode all FP code
      except that built for the plain FP64 ABI can execute correctly. Most
      notably a combination of FP64A & FP32 code can execute correctly,
      allowing for existing FP32 binaries to be linked with new FP64A binaries
      that can make use of 64 bit FP & MSA.
      
      Hybrid FPRs are implemented by setting both the FR & FRE bits, trapping
      & emulating single precision FP instructions (via Reserved Instruction
      exceptions) whilst allowing others to execute natively. It therefore has
      a penalty in terms of execution speed, and should only be used when no
      fully native mode can be. As more binaries are recompiled to use either
      the FPXX or FP64(A) ABIs, the need for hybrid FPRs should diminish.
      However in the short to mid term it allows for a gradual transition
      towards that world, rather than a complete ABI break which is not
      feasible for some users & not desirable for many.
      
      A task will be executed using the hybrid FPR scheme when its
      TIF_HYBRID_FPREGS flag is set & TIF_32BIT_FPREGS is clear. A further
      patch will set the flags as necessary, this patch simply adds the
      infrastructure necessary for the hybrid FPR mode to work.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Cc: linux-fsdevel@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/7683/
      
      
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      4227a2d4
  3. Nov 07, 2014
    • Manuel Lauss's avatar
      MIPS: Fix build with binutils 2.24.51+ · 842dfc11
      Manuel Lauss authored
      
      Starting with version 2.24.51.20140728 MIPS binutils complain loudly
      about mixing soft-float and hard-float object files, leading to this
      build failure since GCC is invoked with "-msoft-float" on MIPS:
      
      {standard input}: Warning: .gnu_attribute 4,3 requires `softfloat'
        LD      arch/mips/alchemy/common/built-in.o
      mipsel-softfloat-linux-gnu-ld: Warning: arch/mips/alchemy/common/built-in.o
       uses -msoft-float (set by arch/mips/alchemy/common/prom.o),
       arch/mips/alchemy/common/sleeper.o uses -mhard-float
      
      To fix this, we detect if GAS is new enough to support "-msoft-float" command
      option, and if it does, we can let GCC pass it to GAS;  but then we also need
      to sprinkle the files which make use of floating point registers with the
      necessary ".set hardfloat" directives.
      
      Signed-off-by: default avatarManuel Lauss <manuel.lauss@gmail.com>
      Cc: Linux-MIPS <linux-mips@linux-mips.org>
      Cc: Matthew Fortune <Matthew.Fortune@imgtec.com>
      Cc: Markos Chandras <Markos.Chandras@imgtec.com>
      Cc: Maciej W. Rozycki <macro@linux-mips.org>
      Patchwork: https://patchwork.linux-mips.org/patch/8355/
      
      
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      842dfc11
  4. Aug 01, 2014
  5. May 23, 2014
  6. Mar 26, 2014
  7. Mar 14, 2014
  8. Feb 06, 2014
  9. Jan 13, 2014
    • Paul Burton's avatar
      MIPS: Support for 64-bit FP with O32 binaries · 597ce172
      Paul Burton authored
      
      CPUs implementing MIPS32 R2 may include a 64-bit FPU, just as MIPS64 CPUs
      do. In order to preserve backwards compatibility a 64-bit FPU will act
      like a 32-bit FPU (by accessing doubles from the least significant 32
      bits of an even-odd pair of FP registers) when the Status.FR bit is
      zero, again just like a mips64 CPU. The standard O32 ABI is defined
      expecting a 32-bit FPU, however recent toolchains support use of a
      64-bit FPU from an O32 MIPS32 executable. When an ELF executable is
      built to use a 64-bit FPU a new flag (EF_MIPS_FP64) is set in the ELF
      header.
      
      With this patch the kernel will check the EF_MIPS_FP64 flag when
      executing an O32 binary, and set Status.FR accordingly. The addition
      of O32 64-bit FP support lessens the opportunity for optimisation in
      the FPU emulator, so a CONFIG_MIPS_O32_FP64_SUPPORT Kconfig option is
      introduced to allow this support to be disabled for those that don't
      require it.
      
      Inspired by an earlier patch by Leonid Yegoshin, but implemented more
      cleanly & correctly.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Cc: Paul Burton <paul.burton@imgtec.com>
      Patchwork: https://patchwork.linux-mips.org/patch/6154/
      
      
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      597ce172
    • Paul Burton's avatar
      MIPS: Remove unused {en,dis}able_fpu macros · 56a22d21
      Paul Burton authored
      
      These macros are not used anywhere in the kernel. Remove them.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/6111/
      
      
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      56a22d21
  10. Feb 01, 2013
  11. Dec 17, 2009
  12. Oct 11, 2008
  13. Jul 20, 2008
    • Dmitri Vorobiev's avatar
      [MIPS] Fix missing prototypes in asm/fpu.h · f028b860
      Dmitri Vorobiev authored
      
      While building the Malta defconfig, sparse spat the following
      warnings:
      
      >>>>>>>>>>>>>>>>>>
      arch/mips/math-emu/kernel_linkage.c:31:6: warning: symbol
      'fpu_emulator_init_fpu' was not declared. Should it be static?
      
      arch/mips/math-emu/kernel_linkage.c:54:5: warning: symbol
      'fpu_emulator_save_context' was not declared. Should it be
      static?
      
      arch/mips/math-emu/kernel_linkage.c:68:5: warning: symbol
      'fpu_emulator_restore_context' was not declared. Should it be
      static?
      >>>>>>>>>>>>>>>>>>
      
      This patch fixes these errors by adding the proper prototypes
      to the include/asm-mips/fpu.h header, and actually using this
      header in the sparse-spotted source file.
      
      Build-tested with Malta defconfig.
      
      Signed-off-by: default avatarDmitri Vorobiev <dmitri.vorobiev@movial.fi>
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      f028b860
  14. Oct 19, 2007
  15. May 11, 2007
  16. Apr 20, 2007
  17. Mar 17, 2007
  18. Oct 09, 2006
  19. Jun 19, 2006
  20. Apr 26, 2006
  21. Apr 19, 2006
  22. Oct 29, 2005
  23. Sep 05, 2005
  24. Apr 16, 2005
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      v2.6.12-rc2
      1da177e4
Loading