1. 22 9月, 2014 1 次提交
    • A
      MIPS: Create common infrastructure for building built-in device-trees · 7fafb068
      Andrew Bresticker 提交于
      In preparation for moving the device-trees to a common location,
      introduce the config option BUILTIN_DTB, which can be selected by
      platforms that use a device-tree built into the kernel image, and
      create a Makefile to build the device-trees in arch/mips/boot/dts/.
      Signed-off-by: NAndrew Bresticker <abrestic@chromium.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
      Cc: Kumar Gala <galak@codeaurora.org>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Paul Burton <paul.burton@imgtec.com>
      Cc: David Daney <david.daney@cavium.com>
      Cc: John Crispin <blogic@openwrt.org>
      Cc: Jayachandran C <jchandra@broadcom.com>
      Cc: Qais Yousef <qais.yousef@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/7564/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      7fafb068
  2. 17 9月, 2014 1 次提交
    • M
      MIPS: SmartMIPS: Disable assembler warnings · dab1b445
      Markos Chandras 提交于
      The kernel code overrides the default ISA as passed by the compiler
      in quite a few places. This has unfortunate side effects when smartmips
      is enabled leading to hundreds of warnings during build such as:
      
      {standard input}: Assembler messages:
      {standard input}:411: Warning: the `smartmips' extension requires MIPS32
      revision 1 or greater
      {standard input}: Assembler messages:
      {standard input}:43: Warning: the 64-bit MIPS architecture does not support the
      `smartmips' extension
      [...]
      
      Until the kernel code is fixed properly (if possible), disable all the
      assembler warning messages to make the build logs readable again.
      This has no runtime side effects but it makes it easier to spot
      more critical warnings and problems during build.
      Signed-off-by: NMarkos Chandras <markos.chandras@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/7356/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      dab1b445
  3. 30 7月, 2014 1 次提交
    • M
      MIPS: SB1: Check optional compilation flags one by one · b625cd4a
      Maciej W. Rozycki 提交于
      This fixes a regression caused by commit
      bb6c0bd3 [MIPS: SB1: Fix excessive kernel
      warnings.], that makes `-march=r5000' selected for compilation flags
      rather than supposed `-march=sb1' with compilers that do not support the
      ASE selection flags introduced with that change.
      
      For example GCC 4.1.2 supports `-mips3d'/`-mno-mips3d' (and obviously
      `-march=sb1'), however it does not support `-mdmx'/`-mno-mdmx'.  As a
      result the whole selection of flags fails and compilation resorts to using
      `-march=r5000', meant for really old compilers indeed only.
      
      It is always best to pick the flags individually unless we are absolutely
      sure a set of flags was introduced to the toolchain together (`-march=sb1'
      and `-mtune=sb1' would be a good example), and this change makes it happen
      for CONFIG_CPU_SB1.  Consequently the flags ultimately selected with GCC
      4.1.2 are `-march=sb1 -Wa,--trap -mno-mips3d'
      Signed-off-by: NMaciej W. Rozycki <macro@linux-mips.org>
      Cc: Richard Sandiford <rdsandiford@googlemail.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/7223/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      b625cd4a
  4. 04 6月, 2014 1 次提交
  5. 28 5月, 2014 1 次提交
    • R
      MIPS: SB1: Fix excessive kernel warnings. · bb6c0bd3
      Ralf Baechle 提交于
      A kernel build with binutils 2.24 is going to emit warnings like
      
        CC      kernel/sys.o
      {standard input}: Assembler messages:
      {standard input}:701: Warning: the 32-bit MIPS architecture does not support the `mdmx' extension
      {standard input}:701: Warning: the `mdmx' extension requires 64-bit FPRs
      {standard input}:701: Warning: the `mips3d' extension requires MIPS32 revision 2 or greater
      {standard input}:701: Warning: the `mips3d' extension requires 64-bit FPRs
      
      for almost every file.  This is caused by changes to gas' interpretation
      of .set semantics.  Fixed by explicitly disabling MIPS3D and MDMX for
      Sibyte builds.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      bb6c0bd3
  6. 23 5月, 2014 1 次提交
    • R
      MIPS: math-emu: Move various objects into an ar library. · 593d33fe
      Ralf Baechle 提交于
      ieee754d.o contains only debug code and dp_sqrt.o and sp_sqrt.o contain
      code which for MIPS I/II/III systems we don't want to link.  Again the
      savings can be considerable for some systems:
      
      $ mips-linux-size --totals ieee754d.o dp_sqrt.o sp_sqrt.o
         text	   data	    bss	    dec	    hex	filename
         1624	      0	      0	   1624	    658	ieee754d.o
         2016	      0	      0	   2016	    7e0	dp_sqrt.o
          736	      0	      0	    736	    2e0	sp_sqrt.o
         4376	      0	      0	   4376	   1118	(TOTALS)
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      593d33fe
  7. 27 3月, 2014 1 次提交
  8. 23 1月, 2014 1 次提交
  9. 20 12月, 2013 1 次提交
    • K
      stackprotector: Unify the HAVE_CC_STACKPROTECTOR logic between architectures · 19952a92
      Kees Cook 提交于
      Instead of duplicating the CC_STACKPROTECTOR Kconfig and
      Makefile logic in each architecture, switch to using
      HAVE_CC_STACKPROTECTOR and keep everything in one place. This
      retains the x86-specific bug verification scripts.
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Cc: Michal Marek <mmarek@suse.cz>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-mips@linux-mips.org
      Cc: linux-arch@vger.kernel.org
      Link: http://lkml.kernel.org/r/1387481759-14535-2-git-send-email-keescook@chromium.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      19952a92
  10. 30 10月, 2013 2 次提交
  11. 19 9月, 2013 1 次提交
  12. 04 9月, 2013 1 次提交
    • J
      MIPS: Add uImage build target · 4defe455
      James Hogan 提交于
      Add a uImage build target for MIPS, which builds uImage.gz (a U-Boot
      image of vmlinux.bin.gz), and then symlinks it to uImage. This allows
      for the use of other compression algorithms in future, and is how a few
      other architectures do it.
      
      It's enabled conditionally on load-y >= 0xffffffff80000000 which
      hopefully allows 64bit kernels to also work as long as the load and
      entry address can be represented by the 32bit addresses in the U-Boot
      image format.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/5795/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      4defe455
  13. 03 9月, 2013 2 次提交
  14. 01 7月, 2013 1 次提交
  15. 09 5月, 2013 1 次提交
  16. 01 2月, 2013 1 次提交
  17. 14 12月, 2012 3 次提交
  18. 03 10月, 2012 1 次提交
    • J
      kbuild: Fix gcc -x syntax · b1e0d8b7
      Jean Delvare 提交于
      The correct syntax for gcc -x is "gcc -x assembler", not
      "gcc -xassembler". Even though the latter happens to work, the former
      is what is documented in the manual page and thus what gcc wrappers
      such as icecream do expect.
      
      This isn't a cosmetic change. The missing space prevents icecream from
      recognizing compilation tasks it can't handle, leading to silent kernel
      miscompilations.
      
      Besides me, credits go to Michael Matz and Dirk Mueller for
      investigating the miscompilation issue and tracking it down to this
      incorrect -x parameter syntax.
      Signed-off-by: NJean Delvare <jdelvare@suse.de>
      Acked-by: NIngo Molnar <mingo@kernel.org>
      Cc: stable@vger.kernel.org
      Cc: Bernhard Walle <bernhard@bwalle.de>
      Cc: Michal Marek <mmarek@suse.cz>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      b1e0d8b7
  19. 16 5月, 2012 1 次提交
  20. 05 5月, 2012 1 次提交
  21. 08 12月, 2011 1 次提交
  22. 09 11月, 2011 1 次提交
  23. 20 10月, 2011 2 次提交
    • A
      MIPS: Fix build with C=1 · 08fa624f
      Aaro Koskinen 提交于
      When trying to compile the 3.1-rc10 kernel for my MIPS board with C=1
      (sparse checking), the build fails early with the error:
      
      	  CHK     include/linux/version.h
      	  UPD     include/linux/version.h
      	  CHK     include/generated/utsrelease.h
      	  UPD     include/generated/utsrelease.h
      	  Checking missing-syscalls for N32
      	  CALL    scripts/checksyscalls.sh
      	  Checking missing-syscalls for O32
      	  CALL    scripts/checksyscalls.sh
      	  CC      kernel/bounds.s
      	  GEN     include/generated/bounds.h
      	  CC      arch/mips/kernel/asm-offsets.s
      	  GEN     include/generated/asm-offsets.h
      	  CALL    scripts/checksyscalls.sh
      	  HOSTCC  scripts/genksyms/genksyms.o
      	  SHIPPED scripts/genksyms/lex.lex.c
      	  SHIPPED scripts/genksyms/keywords.hash.c
      	  SHIPPED scripts/genksyms/parse.tab.h
      	  HOSTCC  scripts/genksyms/lex.lex.o
      	  SHIPPED scripts/genksyms/parse.tab.c
      	  HOSTCC  scripts/genksyms/parse.tab.o
      	  HOSTLD  scripts/genksyms/genksyms
      	/bin/sh: Syntax error: "(" unexpected
      	make[3]: *** [scripts/mod/empty.o] Error 2
      	make[2]: *** [scripts/mod] Error 2
      	make[1]: *** [scripts] Error 2
      
      It seems the shell chokes because sparse is called with command line
      arguments such as:
      
      	-D__INT8_C(c)='c'
      
      Converting these to form:
      
      	-D'__INT8_C(c)'='c'
      
      seems to fix the problem.
      
      [ralf@linux-mips.org: This affects builds with gcc 4.5 and newer.]
      Signed-off-by: NAaro Koskinen <aaro.koskinen@iki.fi>
      Cc: linux-kernel@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/2827/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      08fa624f
    • R
  24. 21 7月, 2011 1 次提交
  25. 19 5月, 2011 1 次提交
  26. 31 3月, 2011 1 次提交
  27. 17 3月, 2011 1 次提交
  28. 30 10月, 2010 2 次提交
    • D
      MIPS: Octeon: Apply CN63XXP1 errata workarounds. · c9941158
      David Daney 提交于
      The CN63XXP1 needs a couple of workarounds to ensure memory is not written
      in unexpected ways.
      
      All PREF with hints in the range 0-4,6-24 are replaced with PREF 28.  We
      pass a flag to the assembler to cover compiler generated code, and patch
      uasm for the dynamically generated code.
      
      The write buffer threshold is reduced to 4.
      Signed-off-by: NDavid Daney <ddaney@caviumnetworks.com>
      Patchwork: http://patchwork.linux-mips.org/patch/1672/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      c9941158
    • R
      MIPS: Get rid of branches to .subsections. · 7837314d
      Ralf Baechle 提交于
      It was a nice optimization - on paper at least.  In practice it results in
      branches that may exceed the maximum legal range for a branch.  We can
      fight that problem with -ffunction-sections but -ffunction-sections again
      is incompatible with -pg used by the function tracer.
      
      By rewriting the loop around all simple LL/SC blocks to C we reduce the
      amount of inline assembler and at the same time allow GCC to often fill
      the branch delay slots with something sensible or whatever else clever
      optimization it may have up in its sleeve.
      
      With this optimization gone we also no longer need -ffunction-sections,
      so drop it.
      
      This optimization was originally introduced in 2.6.21, commit
      5999eca25c1fd4b9b9aca7833b04d10fe4bc877d (linux-mips.org) rsp.
      f65e4fa8 (kernel.org).
      
      Original fix for the issues which caused me to pull this optimization by
      Paul Gortmaker <paul.gortmaker@windriver.com>.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      7837314d
  29. 05 8月, 2010 6 次提交