1. 22 9月, 2014 4 次提交
    • Z
      MIPS: DMA: Add cma support · f4649382
      Zubair Lutfullah Kakakhel 提交于
      Adds cma support to the MIPS architecture.
      
      cma uses memblock. However, mips uses bootmem.
      bootmem is informed about any regions reserved by memblock
      
      dma api is modified to use cma reserved memory regions when available
      
      Tested using cma_test. cma_test is a simple driver that assigns blocks
      of memory from cma reserved sections.
      Signed-off-by: NZubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
      Acked-by: NMichal Nazarewicz <mina86@mina86.com>
      Cc: catalin.marinas@arm.com
      Cc: will.deacon@arm.com
      Cc: tglx@linutronix.de
      Cc: mingo@redhat.com
      Cc: hpa@zytor.com
      Cc: arnd@arndb.de
      Cc: gregkh@linuxfoundation.org
      Cc: m.szyprowski@samsung.com
      Cc: x86@kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-mips@linux-mips.org
      Cc: linux-arch@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/7360/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      f4649382
    • A
      MIPS: sead3: Move device-trees to arch/mips/boot/dts/ · f262b5f2
      Andrew Bresticker 提交于
      Move the SEAD-3 device-tree to arch/mips/boot/dts/ and update the
      Makefiles accordingly.  Since SEAD-3 requires the device-tree to be
      built into the kernel, select BUILTIN_DTB when building for SEAD-3.
      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/7555/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      f262b5f2
    • A
      MIPS: Octeon: Move device-trees to arch/mips/boot/dts/ · e326479f
      Andrew Bresticker 提交于
      Move the Octeon device-trees to arch/mips/boot/dts/ and update the
      Makefiles accordingly.  Since Octeon requires the device-tree to be
      built into the kernel, select BUILTIN_DTB as well.
      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/7556/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      e326479f
    • 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. 30 8月, 2014 1 次提交
  3. 26 8月, 2014 2 次提交
  4. 09 8月, 2014 1 次提交
    • V
      kexec: load and relocate purgatory at kernel load time · 12db5562
      Vivek Goyal 提交于
      Load purgatory code in RAM and relocate it based on the location.
      Relocation code has been inspired by module relocation code and purgatory
      relocation code in kexec-tools.
      
      Also compute the checksums of loaded kexec segments and store them in
      purgatory.
      
      Arch independent code provides this functionality so that arch dependent
      bootloaders can make use of it.
      
      Helper functions are provided to get/set symbol values in purgatory which
      are used by bootloaders later to set things like stack and entry point of
      second kernel etc.
      Signed-off-by: NVivek Goyal <vgoyal@redhat.com>
      Cc: Borislav Petkov <bp@suse.de>
      Cc: Michael Kerrisk <mtk.manpages@gmail.com>
      Cc: Yinghai Lu <yinghai@kernel.org>
      Cc: Eric Biederman <ebiederm@xmission.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Matthew Garrett <mjg59@srcf.ucam.org>
      Cc: Greg Kroah-Hartman <greg@kroah.com>
      Cc: Dave Young <dyoung@redhat.com>
      Cc: WANG Chao <chaowang@redhat.com>
      Cc: Baoquan He <bhe@redhat.com>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      12db5562
  5. 02 8月, 2014 2 次提交
  6. 31 7月, 2014 2 次提交
  7. 30 7月, 2014 2 次提交
    • J
      MIPS: BCM63xx: Sync MIPS counters during CPU bringup · fc264022
      Jonas Gorski 提交于
      We are using the mips counters as the clock source, so we need to ensure
      they are synced, else e.g. gettimeofday will return different values
      depending on which core it was run.
      
      Observed difference was about 8 seconds, causing ~8 seconds ping or time
      running backwards for some programs.
      Signed-off-by: NJonas Gorski <jogo@openwrt.org>
      Cc: linux-mips@linux-mips.org
      Cc: John Crispin <blogic@openwrt.org>
      Cc: Maxime Bizon <mbizon@freebox.fr>
      Cc: Florian Fainelli <florian@openwrt.org>
      Cc: Kevin Cernekee <cernekee@gmail.com>
      Patchwork: https://patchwork.linux-mips.org/patch/7265/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      fc264022
    • M
      MIPS: Alchemy: clock framework integration of onchip clocks · 47440229
      Manuel Lauss 提交于
      This patch introduces common clock framework integration for all
      configurable on-chip clocks on Alchemy chips:
      
      - 2 or 3 PLLs which generate integer multiples of the root rate 12MHz,
      - 6 dividers which take one of the 3 PLLs as input and divide their
        rate by either multiples of 2 or 1 (Au1300).
      - another bank of up to 6 muxes which take either one of the 6
        above dividers or one of the PLLs directly and divide their rate
        further by 1, 2, 3 or 4.
      - a few other sources which are used by onchip peripherals and are
        informational.
      
      This implementation will take the clock tree as it was set up
      by boot firmware: all in-kernel boards should continue to work
      without having to set up the clock tree in board code.
      
      CLK_IGNORE_DISABLED will be removed once all drivers have been
      converted.
      Signed-off-by: NManuel Lauss <manuel.lauss@gmail.com>
      Cc: Mike Turquette <mturquette@linaro.org>
      Cc: Linux-MIPS <linux-mips@linux-mips.org>
      Patchwork: https://patchwork.linux-mips.org/patch/7466/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      47440229
  8. 19 7月, 2014 1 次提交
  9. 26 6月, 2014 1 次提交
    • R
      MIPS: Lasat: Fix build error if CRC32 is not enabled. · 16f0bbbc
      Ralf Baechle 提交于
      Kconfig doesn't select CRC32 so it's possible to build a Lasat kernel
      without CONFIG_CRC32 resulting in a build error:
      
        LD      vmlinux
      arch/mips/built-in.o: In function `lasat_init_board_info':
      (.text+0x22c): undefined reference to `crc32_le'
      arch/mips/built-in.o: In function `lasat_write_eeprom_info':
      (.text+0x7fc): undefined reference to `crc32_le'
      make: *** [vmlinux] Error 1
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      16f0bbbc
  10. 02 6月, 2014 2 次提交
  11. 31 5月, 2014 3 次提交
  12. 30 5月, 2014 3 次提交
  13. 28 5月, 2014 4 次提交
    • P
      MIPS: include cpuidle Kconfig menu · c095ebaf
      Paul Burton 提交于
      This patch simply includes the cpuidle Kconfig entries in preparation
      for cpuidle drivers used on MIPS systems.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      c095ebaf
    • P
      MIPS: smp-cps: hotplug support · 1d8f1f5a
      Paul Burton 提交于
      This patch adds support for offlining CPUs via hotplug when using the
      CONFIG_MIPS_CPS SMP implementation. When a CPU is offlined one of 2
      things will happen:
      
        - If the CPU is part of a core which implements the MT ASE and there
          is at least one other VPE online within that core then the VPE will
          be halted by settings its TCHalt bit.
      
        - Otherwise if supported the core will be powered down via the CPC.
      
        - Otherwise the CPU will hang by executing an infinite loop.
      
      Bringing CPUs back online is then a process of either clearing the
      appropriate VPEs TCHalt bit or powering up the appropriate core via the
      CPC. Throughout the process the struct core_boot_config vpe_mask field
      must be maintained such that mips_cps_boot_vpes will start & stop the
      correct VPEs.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      1d8f1f5a
    • P
      MIPS: pm-cps: add PM state entry code for CPS systems · 3179d37e
      Paul Burton 提交于
      This patch adds code to generate entry & exit code for various low power
      states available on systems based around the MIPS Coherent Processing
      System architecture (ie. those with a Coherence Manager, Global
      Interrupt Controller & for >=CM2 a Cluster Power Controller). States
      supported are:
      
        - Non-coherent wait. This state first leaves the coherent domain and
          then executes a regular MIPS wait instruction. Power savings are
          found from the elimination of coherency interventions between the
          core and any other coherent requestors in the system.
      
        - Clock gated. This state leaves the coherent domain and then gates
          the clock input to the core. This removes all dynamic power from the
          core but leaves the core at the mercy of another to restart its
          clock. Register state is preserved, but the core can not service
          interrupts whilst its clock is gated.
      
        - Power gated. This deepest state removes all power input to the core.
          All register state is lost and the core will restart execution from
          its BEV when another core powers it back up. Because register state
          is lost this state requires cooperation with the CONFIG_MIPS_CPS SMP
          implementation in order for the core to exit the state successfully.
      
      The code will detect which states are available on the current system
      during boot & generate the entry/exit code for those states. This will
      be used by cpuidle & hotplug implementations.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      3179d37e
    • T
      MIPS: SNI: Remove USE_GENERIC_EARLY_PRINTK_8250 · 5ec79bf9
      Thomas Bogendoerfer 提交于
      SNI RM code has its own EARLY_PRINTK support no need for some generic 8250
      stuff.
      Signed-off-by: NThomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/6715/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      5ec79bf9
  14. 24 5月, 2014 2 次提交
  15. 23 5月, 2014 1 次提交
  16. 02 5月, 2014 1 次提交
  17. 24 4月, 2014 1 次提交
  18. 08 4月, 2014 1 次提交
  19. 01 4月, 2014 4 次提交
  20. 31 3月, 2014 1 次提交
  21. 27 3月, 2014 1 次提交