1. 11 11月, 2015 1 次提交
    • J
      MIPS: Make MIPS_CMDLINE_DTB default · 2bcef9b4
      Jonas Gorski 提交于
      Seval of-enabled machines (bmips, lantiq, xlp, pistachio, ralink) copied
      the arguments from dtb to arcs_command_line to prevent the kernel from
      overwriting them.
      
      Since there is now an option to keep the dtb arguments, default to the
      new option remove the "backup" to arcs_command_line in case of USE_OF is
      enabled, except for those platforms that still take the bootloader
      arguments or do not use any at all.
      Signed-off-by: NJonas Gorski <jogo@openwrt.org>
      Cc: linux-mips@linux-mips.org
      Cc: Kevin Cernekee <cernekee@gmail.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: John Crispin <blogic@openwrt.org>
      Cc: Ganesan Ramalingam <ganesanr@broadcom.com>
      Cc: Jayachandran C <jchandra@broadcom.com>
      Cc: Andrew Bresticker <abrestic@chromium.org>
      Cc: James Hartley <james.hartley@imgtec.com>
      Patchwork: https://patchwork.linux-mips.org/patch/11285/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      2bcef9b4
  2. 16 9月, 2015 1 次提交
    • T
      genirq: Remove irq argument from irq flow handlers · bd0b9ac4
      Thomas Gleixner 提交于
      Most interrupt flow handlers do not use the irq argument. Those few
      which use it can retrieve the irq number from the irq descriptor.
      
      Remove the argument.
      
      Search and replace was done with coccinelle and some extra helper
      scripts around it. Thanks to Julia for her help!
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Jiang Liu <jiang.liu@linux.intel.com>
      bd0b9ac4
  3. 11 9月, 2015 1 次提交
    • C
      dma-mapping: consolidate dma_{alloc,free}_{attrs,coherent} · 6894258e
      Christoph Hellwig 提交于
      Since 2009 we have a nice asm-generic header implementing lots of DMA API
      functions for architectures using struct dma_map_ops, but unfortunately
      it's still missing a lot of APIs that all architectures still have to
      duplicate.
      
      This series consolidates the remaining functions, although we still need
      arch opt outs for two of them as a few architectures have very
      non-standard implementations.
      
      This patch (of 5):
      
      The coherent DMA allocator works the same over all architectures supporting
      dma_map operations.
      
      This patch consolidates them and converges the minor differences:
      
       - the debug_dma helpers are now called from all architectures, including
         those that were previously missing them
       - dma_alloc_from_coherent and dma_release_from_coherent are now always
         called from the generic alloc/free routines instead of the ops
         dma-mapping-common.h always includes dma-coherent.h to get the defintions
         for them, or the stubs if the architecture doesn't support this feature
       - checks for ->alloc / ->free presence are removed.  There is only one
         magic instead of dma_map_ops without them (mic_dma_ops) and that one
         is x86 only anyway.
      
      Besides that only x86 needs special treatment to replace a default devices
      if none is passed and tweak the gfp_flags.  An optional arch hook is provided
      for that.
      
      [linux@roeck-us.net: fix build]
      [jcmvbkbc@gmail.com: fix xtensa]
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Chris Metcalf <cmetcalf@ezchip.com>
      Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6894258e
  4. 03 9月, 2015 3 次提交
  5. 26 8月, 2015 1 次提交
  6. 03 8月, 2015 1 次提交
    • A
      MIPS: SMP: Don't increment irq_count multiple times for call function IPIs · 4ace6139
      Alex Smith 提交于
      The majority of SMP platforms handle their IPIs through do_IRQ()
      which calls irq_{enter/exit}(). When a call function IPI is received,
      smp_call_function_interrupt() is called which also calls
      irq_{enter,exit}(), meaning irq_count is raised twice.
      
      When tick broadcasting is used (which is implemented via a call
      function IPI), this incorrectly causes all CPU idle time on the core
      receiving broadcast ticks to be accounted as time spent servicing
      IRQs, as account_process_tick() will account as such if irq_count is
      greater than 1. This results in 100% CPU usage being reported on a
      core which receives its ticks via broadcast.
      
      This patch removes the SMP smp_call_function_interrupt() wrapper which
      calls irq_{enter,exit}(). Platforms which handle their IPIs through
      do_IRQ() now call generic_smp_call_function_interrupt() directly to
      avoid incrementing irq_count a second time. Platforms which don't
      (loongson, sgi-ip27, sibyte) call generic_smp_call_function_interrupt()
      wrapped in irq_{enter,exit}().
      Signed-off-by: NAlex Smith <alex.smith@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/10770/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      4ace6139
  7. 22 6月, 2015 1 次提交
  8. 10 4月, 2015 1 次提交
  9. 08 4月, 2015 1 次提交
  10. 01 4月, 2015 13 次提交
  11. 14 2月, 2015 1 次提交
  12. 24 11月, 2014 2 次提交
    • F
      MIPS: Netlogic: handle modular AHCI builds · 3964917c
      Florian Fainelli 提交于
      Commits a9514409 ("MIPS: Netlogic: Support for XLP3XX on-chip SATA")
      and fedfcb11 ("MIPS: Netlogic: XLP9XX on-chip SATA support") added
      ahci-init and ahci-init-xlp2 as objects to build when CONFIG_SATA_AHCI
      is enabled.
      
      If CONFIG_SATA_AHCI is made modular, these two files will also get built
      as modules (obj-m), which will result in the following linking failure:
      
      ERROR: "nlm_set_pic_extra_ack" [arch/mips/netlogic/xlp/ahci-init.ko]
      undefined!
      ERROR: "nlm_io_base" [arch/mips/netlogic/xlp/ahci-init.ko] undefined!
      ERROR: "nlm_nodes" [arch/mips/netlogic/xlp/ahci-init-xlp2.ko] undefined!
      ERROR: "nlm_set_pic_extra_ack"
      [arch/mips/netlogic/xlp/ahci-init-xlp2.ko] undefined!
      ERROR: "xlp_socdev_to_node" [arch/mips/netlogic/xlp/ahci-init-xlp2.ko]
      undefined!
      ERROR: "nlm_io_base" [arch/mips/netlogic/xlp/ahci-init-xlp2.ko]
      undefined!
      
      Just check whether CONFIG_SATA_AHCI is defined for this build, and if
      that is the case, add these objects to the list of built-in object
      files.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Cc: linux-mips@linux-mips.org
      Cc: ganesanr@broadcom.com
      Cc: jchandra@broadcom.com
      Patchwork: https://patchwork.linux-mips.org/patch/7855/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      3964917c
    • F
      MIPS: Netlogic: handle modular USB case · 717ce646
      Florian Fainelli 提交于
      Commit 1004165f ("MIPS: Netlogic: USB support for XLP") and then
      commit 9eac3591 ("MIPS: Netlogic: Add support for USB on XLP2xx")
      added usb-init and usb-init-xlp2 as objects to build when CONFIG_USB is
      enabled.
      
      If CONFIG_USB is made modular, these two files will also get built as
      modules (obj-m), which will result in the following linking failure:
      
      ERROR: "nlm_io_base" [arch/mips/netlogic/xlp/usb-init.ko] undefined!
      ERROR: "nlm_nodes" [arch/mips/netlogic/xlp/usb-init-xlp2.ko] undefined!
      ERROR: "nlm_set_pic_extra_ack" [arch/mips/netlogic/xlp/usb-init-xlp2.ko]
      undefined!
      ERROR: "xlp_socdev_to_node" [arch/mips/netlogic/xlp/usb-init-xlp2.ko]
      undefined!
      ERROR: "nlm_io_base" [arch/mips/netlogic/xlp/usb-init-xlp2.ko]
      undefined!
      
      Just check whether CONFIG_USB is defined for this build, and if that is
      the case, add these objects to the list of built-in object files.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Cc: linux-mips@linux-mips.org
      Cc: ganesanr@broadcom.com
      Cc: jchandra@broadcom.com
      Patchwork: https://patchwork.linux-mips.org/patch/7854/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      717ce646
  13. 22 9月, 2014 1 次提交
    • A
      MIPS: Netlogic: Move device-trees to arch/mips/boot/dts/ · 36094619
      Andrew Bresticker 提交于
      Move the Netlogic XLP device-trees to arch/mips/boot/dts/ and update the
      Makefiles accordingly.  A built-in device-tree is optional, so select
      BUILTIN_DTB when it is requested.
      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/7560/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      36094619
  14. 30 5月, 2014 12 次提交