1. 23 5月, 2014 1 次提交
  2. 22 5月, 2014 2 次提交
  3. 20 5月, 2014 4 次提交
  4. 17 5月, 2014 3 次提交
    • T
      ARM: OMAP2+: Fix DMA hang after off-idle · 9ce2482f
      Tony Lindgren 提交于
      Commit 6ddeb6d8 (dmaengine: omap-dma: move IRQ handling to omap-dma)
      added support for handling interrupts in the omap dmaengine driver
      instead of the legacy driver. Because of different handling for
      interrupts this however caused omap3 to hang eventually after hitting
      off-idle.
      
      Any of the virtual 32 DMA channels can be assigned to any of the
      four DMA interrupts. So commit 6ddeb6d8 made the omap dmaengine
      driver to use the second DMA interrupt while keeping the legacy code
      still using the first DMA interrupt.
      
      This means we need to save and restore both IRQENABLE_L1 in addition
      to IRQENABLE_L0. As there is a chance that the DSP might be using
      IRQENABLE_L2 or IRQENABLE_L3 lines, let's not touch those until
      this has been confirmed. Let's just add a comment to the code for
      now.
      
      Fixes: 6ddeb6d8 (dmaengine: omap-dma: move IRQ handling to omap-dma)
      Cc: Russell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      9ce2482f
    • R
      ARM: OMAP2+: nand: Fix NAND on OMAP2 and OMAP3 boards · 5005e0b7
      Roger Quadros 提交于
      Commit c66d0391 broke NAND for non-DT boot on all OMAP2 and OMAP3
      boards using board_nand_init(). Following error is seen at boot
      
      [    0.154998]  (null): Unsupported NAND ECC scheme selected
      
      For OMAP2 and OMAP3 platforms, the ecc_opt parameter in platform data
      must be set to OMAP_ECC_HAM1_CODE_HW to work properly.
      
      Tested on omap3-beagle c4.
      
      Fixes: c66d0391 (mtd: nand: omap: combine different flavours of 1-bit hamming ecc schemes)
      Cc: stable@vger.kernel.org # v3.12+
      Signed-off-by: NRoger Quadros <rogerq@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      5005e0b7
    • M
      arm64: fix pud_huge() for 2-level pagetables · 4797ec2d
      Mark Salter 提交于
      The following happens when trying to run a kvm guest on a kernel
      configured for 64k pages. This doesn't happen with 4k pages:
      
        BUG: failure at include/linux/mm.h:297/put_page_testzero()!
        Kernel panic - not syncing: BUG!
        CPU: 2 PID: 4228 Comm: qemu-system-aar Tainted: GF            3.13.0-0.rc7.31.sa2.k32v1.aarch64.debug #1
        Call trace:
        [<fffffe0000096034>] dump_backtrace+0x0/0x16c
        [<fffffe00000961b4>] show_stack+0x14/0x1c
        [<fffffe000066e648>] dump_stack+0x84/0xb0
        [<fffffe0000668678>] panic+0xf4/0x220
        [<fffffe000018ec78>] free_reserved_area+0x0/0x110
        [<fffffe000018edd8>] free_pages+0x50/0x88
        [<fffffe00000a759c>] kvm_free_stage2_pgd+0x30/0x40
        [<fffffe00000a5354>] kvm_arch_destroy_vm+0x18/0x44
        [<fffffe00000a1854>] kvm_put_kvm+0xf0/0x184
        [<fffffe00000a1938>] kvm_vm_release+0x10/0x1c
        [<fffffe00001edc1c>] __fput+0xb0/0x288
        [<fffffe00001ede4c>] ____fput+0xc/0x14
        [<fffffe00000d5a2c>] task_work_run+0xa8/0x11c
        [<fffffe0000095c14>] do_notify_resume+0x54/0x58
      
      In arch/arm/kvm/mmu.c:unmap_range(), we end up doing an extra put_page()
      on the stage2 pgd which leads to the BUG in put_page_testzero(). This
      happens because a pud_huge() test in unmap_range() returns true when it
      should always be false with 2-level pages tables used by 64k pages.
      This patch removes support for huge puds if 2-level pagetables are
      being used.
      Signed-off-by: NMark Salter <msalter@redhat.com>
      [catalin.marinas@arm.com: removed #ifndef around PUD_SIZE check]
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      Cc: <stable@vger.kernel.org> # v3.11+
      4797ec2d
  5. 16 5月, 2014 4 次提交
    • L
      mips: dts: Fix missing device_type="memory" property in memory nodes · dfc44f80
      Leif Lindholm 提交于
      A few platforms lack a 'device_type = "memory"' for their memory
      nodes, relying on an old ppc quirk in order to discover its memory.
      Add the missing data so that all parsing code can find memory nodes
      correctly.
      Signed-off-by: NLeif Lindholm <leif.lindholm@linaro.org>
      Cc: linux-mips@linux-mips.org
      Cc: devicetree@vger.kernel.org
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: <stable@vger.kernel.org>
      Acked-by: NJohn Crispin <blogic@openwrt.org>
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      dfc44f80
    • L
      arm: dts: Fix missing device_type="memory" for ste-ccu8540 · bfaed5ab
      Leif Lindholm 提交于
      The current .dts for ste-ccu8540 lacks a 'device_type = "memory"' for
      its memory node, relying on an old ppc quirk in order to discover its
      memory. Fix the data so that all parsing code can handle it correctly.
      Signed-off-by: NLeif Lindholm <leif.lindholm@linaro.org>
      Acked-by: NLee Jones <lee.jones@linaro.org>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: devicetree@vger.kernel.org
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      bfaed5ab
    • J
      parisc: Improve LWS-CAS performance · c776cd89
      John David Anglin 提交于
      The attached change significantly improves the performance of the LWS-CAS code
      in syscall.S.
      This allows a number of packages to build (e.g., zeromq3, gtest and libxs)
      that previously failed because slow LWS-CAS performance under contention. In
      particular, interrupts taken while the lock was taken degraded performance
      significantly.
      
      The change does the following:
      
      1) Disables interrupts around the CAS operation, and
      2) Changes the loads and stores to use the ordered completer, "o", on
      PA 2.0. "o" and "ma" with a zero offset are equivalent. The latter is
      accepted on both PA 1.X and 2.0.
      
      The use of ordered loads and stores probably makes no difference on all
      existing hardware, but it seemed pedantically correct. In particular, the CAS
      operation must complete before LDCW lock is released. As written before, a
      processor could reorder the operations.
      
      I don't believe the period interrupts are disabled is long enough to
      significantly increase interrupt latency. For example, the TLB insert code is
      longer. Worst case is a memory fault in the CAS operation.
      Signed-off-by: NJohn David Anglin <dave.anglin@bell.net>
      Cc: stable@vger.kernel.org # 3.13+
      Signed-off-by: NHelge Deller <deller@gmx.de>
      c776cd89
    • H
      parisc: ratelimit userspace segfault printing · fef47e2a
      Helge Deller 提交于
      Ratelimit printing of userspace segfaults and make it runtime
      configurable via the /proc/sys/debug/exception-trace variable. This
      should resolve syslog from growing way too fast and thus prevents
      possible system service attacks.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Cc: stable@vger.kernel.org # 3.13+
      fef47e2a
  6. 15 5月, 2014 12 次提交
  7. 14 5月, 2014 2 次提交
  8. 13 5月, 2014 12 次提交