1. 21 11月, 2013 1 次提交
  2. 14 11月, 2013 2 次提交
  3. 29 10月, 2013 4 次提交
  4. 20 10月, 2013 1 次提交
    • B
      ARM: fix ARCH_IXP4xx usage of ARCH_SUPPORTS_BIG_ENDIAN · d10d2d48
      Ben Dooks 提交于
      The Kconfig for arch/arm/mach-ixp4xx has a local definition
      of ARCH_SUPPORTS_BIG_ENDIAN which could be used elsewhere.
      This means that if IXP4xx is selected and this symbol is
      selected eleswhere then an warning is produced.
      
      Clean the following error up by making the symbol be
      selected by the main ARCH_IXP4XX definition and have a
      common definition in arch/arm/mm/Kconfig
      
      warning: (ARCH_xxx) selects ARCH_SUPPORTS_BIG_ENDIAN which has unmet direct dependencies (ARCH_IXP4XX)
      warning: (ARCH_xxx) selects ARCH_SUPPORTS_BIG_ENDIAN which has unmet direct dependencies (ARCH_IXP4XX)
      Signed-off-by: NBen Dooks <ben.dooks@codethink.co.uk>
      d10d2d48
  5. 16 10月, 2013 1 次提交
  6. 08 10月, 2013 1 次提交
  7. 06 10月, 2013 2 次提交
  8. 01 10月, 2013 1 次提交
    • L
      ARM: gemini: delete <mach/gpio.h> · 85649711
      Linus Walleij 提交于
      The Gemini has no need of a <mach/gpio.h> header as this is only
      used by the machine-local gpio.c gpiochip driver, which is also
      only using the irq_to_gpio() macro. Delete the file, move the single
      macro into the driver and remove the NEED_MACH_GPIO_H flag.
      
      Cc: Hans Ulli Kroll <ulli.kroll@googlemail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      85649711
  9. 30 9月, 2013 2 次提交
  10. 27 9月, 2013 2 次提交
  11. 25 9月, 2013 1 次提交
    • P
      ARM: davinci: gpio: use gpiolib API instead of inline functions · f1a4c52f
      Philip Avinash 提交于
      Remove NEED_MACH_GPIO_H config select option for ARCH_DAVINCI
      to start using gpiolib interface for davinci platforms. This makes
      it easier to use the gpio driver on other platforms as it breaks
      dependency on mach-davinci.
      
      Latencies for gpio_get/set APIs will increase. On measurement,
      latency was found to have increased by 18 microsecond with
      gpiolib API as compared to inline APIs.
      
      Measurement was done on DA850 EVM for gpio_get_value() API by
      taking the printk timing across the call with interrupts disabled.
      
        inline gpio API with interrupt disabled
        [   29.734337] before gpio_get
        [   29.736847] after gpio_get
      
        Time difference 0.00251
      
        gpio library with interrupt disabled
        [  272.876763] before gpio_get
        [  272.879291] after gpio_get
      
        Time difference 0.002528
        Latency increased by (0.002528 -  0.00251) = 18 microsecond.
      
      While at it, remove GPIO_TYPE_DAVINCI enum definition as
      gpio-davinci.c is converted to Linux device driver model.
      Signed-off-by: NPhilip Avinash <avinashphilip@ti.com>
      Signed-off-by: NLad, Prabhakar <prabhakar.csengg@gmail.com>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      [nsekhar@ti.com: minor edits to commit message]
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      f1a4c52f
  12. 22 9月, 2013 1 次提交
    • R
      ARM: only allow kernel mode neon with AEABI · c4a30c3b
      Russell King 提交于
      This prevents the linker erroring with:
      
      arm-linux-ld: error: arch/arm/lib/xor-neon.o uses VFP instructions, whereas arch/arm/lib/built-in.o does not
      arm-linux-ld: failed to merge target specific data of file arch/arm/lib/xor-neon.o
      
      This is due to the non-neon files being marked as containing FPA data/
      instructions (even though they do not) being mixed with files which
      contain VFP, which is an incompatible floating point format.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      c4a30c3b
  13. 21 9月, 2013 2 次提交
  14. 17 9月, 2013 2 次提交
    • L
      ARM: delete mach-shark · 136dfa5e
      Linus Walleij 提交于
      The Shark machine sub-architecture (also known as DNARD, the
      DIGITAL Network Appliance Reference Design) lacks a maintainer
      able to apply and test patches to modernize the architecture.
      
      It is suspected that the current kernel, while it compiles,
      does not even boot on this machine. The listed maintainer has
      expressed that he will not be able to spend any time on the
      maintenance for the coming year.
      
      So let's delete it from the kernel for now. It can always be
      resurrected with git revert if maintenance is resumed.
      
      As the VIA82c505 PCI adapter was only used by this
      architecture, that gets deleted too.
      
      Cc: arm@kernel.org
      Cc: Alexander Schulz <alex@shark-linux.de>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      136dfa5e
    • T
      ARM: S3C64XX: Migrate clock handling to Common Clock Framework · b69f460d
      Tomasz Figa 提交于
      This patch migrates the s3c64xx platform to use the new clock driver
      using Common Clock Framework.
      Signed-off-by: NTomasz Figa <tomasz.figa@gmail.com>
      Signed-off-by: NKukjin Kim <kgene.kim@samsung.com>
      b69f460d
  15. 13 9月, 2013 2 次提交
  16. 11 9月, 2013 1 次提交
  17. 02 9月, 2013 1 次提交
  18. 24 8月, 2013 1 次提交
  19. 23 8月, 2013 1 次提交
  20. 20 8月, 2013 2 次提交
  21. 13 8月, 2013 1 次提交
  22. 12 8月, 2013 1 次提交
    • T
      PCI: remove ARCH_SUPPORTS_MSI kconfig option · ebd97be6
      Thomas Petazzoni 提交于
      Now that we have weak versions for each of the PCI MSI architecture
      functions, we can actually build the MSI support for all platforms,
      regardless of whether they provide or not architecture-specific
      versions of those functions. For this reason, the ARCH_SUPPORTS_MSI
      hidden kconfig boolean becomes useless, and this patch gets rid of it.
      Signed-off-by: NThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Acked-by: NBjorn Helgaas <bhelgaas@google.com>
      Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Tested-by: NDaniel Price <daniel.price@gmail.com>
      Tested-by: NThierry Reding <thierry.reding@gmail.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: linuxppc-dev@lists.ozlabs.org
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: linux390@de.ibm.com
      Cc: linux-s390@vger.kernel.org
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: x86@kernel.org
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: linux-ia64@vger.kernel.org
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: linux-mips@linux-mips.org
      Cc: David S. Miller <davem@davemloft.net>
      Cc: sparclinux@vger.kernel.org
      Cc: Chris Metcalf <cmetcalf@tilera.com>
      Signed-off-by: NJason Cooper <jason@lakedaemon.net>
      ebd97be6
  23. 07 8月, 2013 1 次提交
  24. 06 8月, 2013 2 次提交
  25. 05 8月, 2013 1 次提交
  26. 01 8月, 2013 1 次提交
    • R
      ARM: move vector stubs · 19accfd3
      Russell King 提交于
      Move the machine vector stubs into the page above the vector page,
      which we can prevent from being visible to userspace.  Also move
      the reset stub, and place the swi vector at a location that the
      'ldr' can get to it.
      
      This hides pointers into the kernel which could give valuable
      information to attackers, and reduces the number of exploitable
      instructions at a fixed address.
      
      Cc: <stable@vger.kernel.org>
      Acked-by: NNicolas Pitre <nico@linaro.org>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      19accfd3
  27. 31 7月, 2013 1 次提交
  28. 30 7月, 2013 1 次提交
    • N
      ARM: b.L: core switcher code · 1c33be57
      Nicolas Pitre 提交于
      This is the core code implementing big.LITTLE switcher functionality.
      Rationale for this code is available here:
      
      http://lwn.net/Articles/481055/
      
      The main entry point for a switch request is:
      
      void bL_switch_request(unsigned int cpu, unsigned int new_cluster_id)
      
      If the calling CPU is not the wanted one, this wrapper takes care of
      sending the request to the appropriate CPU with schedule_work_on().
      
      At the moment the core switch operation is handled by bL_switch_to()
      which must be called on the CPU for which a switch is requested.
      
      What this code does:
      
        * Return early if the current cluster is the wanted one.
      
        * Close the gate in the kernel entry vector for both the inbound
          and outbound CPUs.
      
        * Wake up the inbound CPU so it can perform its reset sequence in
          parallel up to the kernel entry vector gate.
      
        * Migrate all interrupts in the GIC targeting the outbound CPU
          interface to the inbound CPU interface, including SGIs. This is
          performed by gic_migrate_target() in drivers/irqchip/irq-gic.c.
      
        * Call cpu_pm_enter() which takes care of flushing the VFP state to
          RAM and save the CPU interface config from the GIC to RAM.
      
        * Modify the cpu_logical_map to refer to the inbound physical CPU.
      
        * Call cpu_suspend() which saves the CPU state (general purpose
          registers, page table address) onto the stack and store the
          resulting stack pointer in an array indexed by the updated
          cpu_logical_map, then call the provided shutdown function.
          This happens in arch/arm/kernel/sleep.S.
      
      At this point, the provided shutdown function executed by the outbound
      CPU ungates the inbound CPU. Therefore the inbound CPU:
      
        * Picks up the saved stack pointer in the array indexed by its MPIDR
          in arch/arm/kernel/sleep.S.
      
        * The MMU and caches are re-enabled using the saved state on the
          provided stack, just like if this was a resume operation from a
          suspended state.
      
        * Then cpu_suspend() returns, although this is on the inbound CPU
          rather than the outbound CPU which called it initially.
      
        * The function cpu_pm_exit() is called which effect is to restore the
          CPU interface state in the GIC using the state previously saved by
          the outbound CPU.
      
        * Exit of bL_switch_to() to resume normal kernel execution on the
          new CPU.
      
      However, the outbound CPU is potentially still running in parallel while
      the inbound CPU is resuming normal kernel execution, hence we need
      per CPU stack isolation to execute bL_do_switch().  After the outbound
      CPU has ungated the inbound CPU, it calls mcpm_cpu_power_down() to:
      
        * Clean its L1 cache.
      
        * If it is the last CPU still alive in its cluster (last man standing),
          it also cleans its L2 cache and disables cache snooping from the other
          cluster.
      
        * Power down the CPU (or whole cluster).
      
      Code called from bL_do_switch() might end up referencing 'current' for
      some reasons.  However, 'current' is derived from the stack pointer.
      With any arbitrary stack, the returned value for 'current' and any
      dereferenced values through it are just random garbage which may lead to
      segmentation faults.
      
      The active page table during the execution of bL_do_switch() is also a
      problem.  There is no guarantee that the inbound CPU won't destroy the
      corresponding task which would free the attached page table while the
      outbound CPU is still running and relying on it.
      
      To solve both issues, we borrow some of the task space belonging to
      the init/idle task which, by its nature, is lightly used and therefore
      is unlikely to clash with our usage.  The init task is also never going
      away.
      
      Right now the logical CPU number is assumed to be equivalent to the
      physical CPU number within each cluster. The kernel should also be
      booted with only one cluster active.  These limitations will be lifted
      eventually.
      Signed-off-by: NNicolas Pitre <nico@linaro.org>
      1c33be57