1. 21 Jun, 2013 11 commits
    • Steven J. Hill's avatar
      MIPS: malta: Remove software reset defines from generic header. · b72d9a4e
      Steven J. Hill authored
      Remove the software reset register and reset value definitions
      from the 'include/asm/mips-boards/generic.h' header file. Also
      clean up header and whitespace in platform file.
      Signed-off-by: default avatarSteven J. Hill <Steven.Hill@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/5456/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      b72d9a4e
    • Steven J. Hill's avatar
      MIPS: malta: Move defines of reset registers and values. · 36a29af4
      Steven J. Hill authored
      Remove usage of 'include/asm/mips-boards/generic.h' header file.
      Instead, move the defines for SOFTRES_REG and GORESET local to
      the platform file.
      Signed-off-by: default avatarSteven J. Hill <Steven.Hill@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/5455/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      36a29af4
    • Steven J. Hill's avatar
      MIPS: sead3: Fix ability to perform a soft reset. · 2ddbc4e2
      Steven J. Hill authored
      The soft reset register address and reset value to be written are
      incorrect for the SEAD-3 platform. This patch fixes them such that
      the SEAD-3 can actually perform a soft reset instead of causing an
      exception. Also remove usage of 'include/asm/mips-boards/generic.h'
      header file.
      Signed-off-by: default avatarSteven J. Hill <Steven.Hill@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/5454/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      2ddbc4e2
    • Aaro Koskinen's avatar
      MIPS: Loongson: Fix random early boot hang · 2f963bfb
      Aaro Koskinen authored
      Some Loongson boards (e.g. Lemote FuLoong mini-PC) use ISA/southbridge
      device (CS5536 general purpose timer) for the timer interrupt. It starts
      running early and is already enabled during the PCI configuration,
      during which there is a small window in pci_read_base() when the register
      access is temporarily disabled. If the timer interrupts at this point,
      the system will hang. Fix this by adding a fixup that keeps the register
      access always enabled.
      
      The hang the patch fixes usually looks like this:
      
      [    0.844000] pci 0000:00:0e.0: [1022:2090] type 00 class 0x060100
      [    0.848000] pci 0000:00:0e.0: reg 10: [io  0xb410-0xb417]
      [    0.852000] pci 0000:00:0e.0: reg 14: [io  0xb000-0xb0ff]
      [    0.856000] pci 0000:00:0e.0: reg 18: [io  0xb380-0xb3bf]
      [   28.140000] BUG: soft lockup - CPU#0 stuck for 23s! [swapper:1]
      [   28.140000] Modules linked in:
      [   28.140000] irq event stamp: 37965
      [   28.140000] hardirqs last  enabled at (37964): [<ffffffff80204c0c>] restore_partial+0x6c/0x13c
      [   28.140000] hardirqs last disabled at (37965): [<ffffffff80204f8c>] handle_int+0x144/0x15c
      [   28.140000] softirqs last  enabled at (24316): [<ffffffff802381f4>] __do_softirq+0x1cc/0x258
      [   28.140000] softirqs last disabled at (24327): [<ffffffff80238420>] do_softirq+0xc8/0xd0
      [   28.140000] Cpu 0
      [   28.140000] $ 0   : 0000000000000000 00000000140044e1 980000009f090000 0000000000000001
      [   28.140000] $ 4   : 980000009f090000 0000000000000000 0000000000000100 03b7fff87fbde011
      [   28.140000] $ 8   : ffffffff812b1928 000000000001e000 043ffff87fbde011 fffffff87fbde011
      [   28.140000] $12   : 000000000000000e ffffffff807a0000 0000000000000698 0000000000000000
      [   28.140000] $16   : 0000000000000002 ffffffff81055e20 ffffffff80786810 0000000000000000
      [   28.140000] $20   : 000000000000000a ffffffff807bc244 ffffffff807e6350 ffffffff80770000
      [   28.140000] $24   : 0000000000000d80 00000000fffedbe0
      [   28.140000] $28   : 980000009f07c000 980000009f07fa10 ffffffff81050000 ffffffff802380f8
      [   28.140000] Hi    : 0000000000d0fc00
      [   28.140000] Lo    : 0000000000f82b40
      [   28.140000] epc   : ffffffff8023810c __do_softirq+0xe4/0x258
      [   28.140000]     Not tainted
      [   28.140000] ra    : ffffffff802380f8 __do_softirq+0xd0/0x258
      [   28.140000] Status: 140044e3    KX SX UX KERNEL EXL IE
      [   28.140000] Cause : 10008400
      [   28.140000] PrId  : 00006303 (ICT Loongson-2)
      Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/4958/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      2f963bfb
    • Markos Chandras's avatar
      lib/Kconfig.debug: Restrict FRAME_POINTER for MIPS · 25c87eae
      Markos Chandras authored
      FAULT_INJECTION_STACKTRACE_FILTER selects FRAME_POINTER but
      that symbol is not available for MIPS.
      
      Fixes the following problem on a randconfig:
      warning: (LOCKDEP && FAULT_INJECTION_STACKTRACE_FILTER && LATENCYTOP &&
       KMEMCHECK) selects FRAME_POINTER which has unmet direct dependencies
      (DEBUG_KERNEL && (CRIS || M68K || FRV || UML || AVR32 || SUPERH || BLACKFIN ||
      MN10300 || METAG) || ARCH_WANT_FRAME_POINTERS)
      Signed-off-by: default avatarMarkos Chandras <markos.chandras@imgtec.com>
      Acked-by: default avatarSteven J. Hill <Steven.Hill@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/5441/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      25c87eae
    • David Daney's avatar
      MIPS: Octeon: Don't clobber bootloader data structures. · d949b4fe
      David Daney authored
      Commit abe77f90 (MIPS: Octeon: Add kexec and kdump support) added a
      bootmem region for the kernel image itself.  The problem is that this
      is rounded up to a 0x100000 boundary, which is memory that may not be
      owned by the kernel.  Depending on the kernel's configuration based
      size, this 'extra' memory may contain data passed from the bootloader
      to the kernel itself, which if clobbered makes the kernel crash in
      various ways.
      
      The fix: Quit rounding the size up, so that we only use memory
      assigned to the kernel.
      Signed-off-by: default avatarDavid Daney <david.daney@cavium.com>
      Cc: <stable@vger.kernel.org>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/5449/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      d949b4fe
    • Ralf Baechle's avatar
      MIPS: IP27: Fix build error if CONFIG_PCI=y and CONFIG_NUMA disabled. · 4f675e8a
      Ralf Baechle authored
      Then <asm-generic/topology.h> will define cpp macro as default definition
      for pcibus_to_node resulting in:
      
        CC      arch/mips/pci/pci-ip27.o
      arch/mips/pci/pci-ip27.c:220:7: error: expected identifier or ‘(’ before ‘void’
      arch/mips/pci/pci-ip27.c:220:12: error: expected ‘)’ before ‘(’ token
      make[1]: *** [arch/mips/pci/pci-ip27.o] Error 1
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      4f675e8a
    • Ralf Baechle's avatar
      MIPS: IP27: Fix build errors with CONFIG_PCI disabled. · 73ec78b0
      Ralf Baechle authored
        LD      init/built-in.o
      arch/mips/built-in.o: In function `xtalk_probe_node':
      (.cpuinit.text+0x67c): undefined reference to `bridge_probe'
      arch/mips/built-in.o: In function `xtalk_probe_node':
      (.cpuinit.text+0x7d8): undefined reference to `bridge_probe'
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      73ec78b0
    • Ralf Baechle's avatar
      MIPS: IP27: Fix build errors with CONFIG_PCI disabled. · 8ea2b8b6
      Ralf Baechle authored
        LD      init/built-in.o
      arch/mips/built-in.o: In function `startup_bridge_irq':
      ip27-irq.c:(.text+0x434): undefined reference to `irq_to_slot'
      ip27-irq.c:(.text+0x43c): undefined reference to `irq_to_slot'
      ip27-irq.c:(.text+0x460): undefined reference to `irq_to_bridge'
      ip27-irq.c:(.text+0x464): undefined reference to `irq_to_bridge'
      arch/mips/built-in.o: In function `shutdown_bridge_irq':
      ip27-irq.c:(.text+0x564): undefined reference to `irq_to_bridge'
      ip27-irq.c:(.text+0x56c): undefined reference to `irq_to_bridge'
      ip27-irq.c:(.text+0x5a0): undefined reference to `irq_to_slot'
      ip27-irq.c:(.text+0x5a4): undefined reference to `irq_to_slot'
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      8ea2b8b6
    • Ralf Baechle's avatar
      MIPS: IP27: Fix build error with CONFIG_MAPPED_KERNEL · 28963b1e
      Ralf Baechle authored
      Some of the TLB bit definitions in <asm/pgtable-bits.h> have become rather
      complex and are no longer usable from assembler resulting in an
      explosion like this:
      
        AS      arch/mips/kernel/head.o
      arch/mips/kernel/head.S: Assembler messages:
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: Illegal operands `li $12,(((1<<((cpu_has_rixi?(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1))))+1:(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))))+1))|(1<<(((cpu_has_rixi?(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1))))+1:(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))))+1)+1))|(5<<(((((cpu_has_rixi?(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1))))+1:(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))))+1)+1)+1)+1)))>>6)'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: missing ')'
      arch/mips/kernel/head.S:147: Error: Illegal operands `li $12,(((1<<((cpu_has_rixi?(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1))))+1:(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))))+1))|(1<<(((cpu_has_rixi?(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1))))+1:(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))))+1)+1))|(1<<((((cpu_has_rixi?(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1))))+1:(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))))+1)+1)+1))|(5<<(((((cpu_has_rixi?(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1))))+1:(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))))+1)+1)+1)+1)))>>6)'
      make[2]: *** [arch/mips/kernel/head.o] Error 1
      
      Since now MAPPED_KERNEL_SETUP_TLB is in platform-specific code it's safe
      to hardcode the TLB bits there.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      28963b1e
    • Ralf Baechle's avatar
      MIPS: Move gas macro MAPPED_KERNEL_SETUP_TLB to IP27-specific code. · 23946ef1
      Ralf Baechle authored
      It's IP27-specific and can only cause trouble in head.S.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      23946ef1
  2. 20 Jun, 2013 2 commits
  3. 18 Jun, 2013 6 commits
    • David Daney's avatar
      MIPS: Octeon: Fix build error if CONFIG_BUG=n · 368b0625
      David Daney authored
        CC      init/do_mounts.o
      In file included from /home/ralf/src/linux/linux-mips/arch/mips/include/asm/dma-mapping.h:10:0,
                       from include/linux/dma-mapping.h:76,
                       from include/linux/skbuff.h:33,
                       from include/linux/icmpv6.h:4,
                       from include/linux/ipv6.h:59,
                       from include/net/ipv6.h:16,
                       from include/linux/sunrpc/clnt.h:26,
                       from include/linux/nfs_fs.h:30,
                       from init/do_mounts.c:30:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h: In function ‘plat_map_dma_mem’:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h: In function ‘plat_map_dma_mem_page’:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h:30:1: warning: no return statement in function returning non-void [-Wreturn-type]
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h: In function ‘plat_dma_addr_to_phys’:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h:36:1: warning: no return statement in function returning non-void [-Wreturn-type]
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h: In function ‘plat_dma_supported’:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h:47:1: warning: no return statement in function returning non-void [-Wreturn-type]
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h: In function ‘plat_dma_mapping_error’:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h:63:1: warning: no return statement in function returning non-void [-Wreturn-type]
        LD      init/mounts.o
        CC      init/init_task.o
      In file included from /home/ralf/src/linux/linux-mips/arch/mips/include/asm/dma-mapping.h:10:0,
                       from include/linux/dma-mapping.h:76,
                       from include/linux/skbuff.h:33,
                       from include/linux/netfilter.h:5,
                       from include/net/netns/netfilter.h:5,
                       from include/net/net_namespace.h:20,
                       from include/linux/init_task.h:14,
                       from init/init_task.c:1:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h: In function ‘plat_map_dma_mem’:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h: In function ‘plat_map_dma_mem_page’:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h:30:1: warning: no return statement in function returning non-void [-Wreturn-type]
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h: In function ‘plat_dma_addr_to_phys’:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h:36:1: warning: no return statement in function returning non-void [-Wreturn-type]
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h: In function ‘plat_dma_supported’:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h:47:1: warning: no return statement in function returning non-void [-Wreturn-type]
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h: In function ‘plat_dma_mapping_error’:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h:63:1: warning: no return statement in function returning non-void [-Wreturn-type]
        LD      init/built-in.o
        CC      arch/mips/cavium-octeon/setup.o
      In file included from /home/ralf/src/linux/linux-mips/arch/mips/include/asm/dma-mapping.h:10:0,
                       from include/linux/dma-mapping.h:76,
                       from include/asm-generic/pci-dma-compat.h:7,
                       from /home/ralf/src/linux/linux-mips/arch/mips/include/asm/pci.h:129,
                       from include/linux/pci.h:1451,
                       from /home/ralf/src/linux/linux-mips/arch/mips/include/asm/octeon/pci-octeon.h:12,
                       from arch/mips/cavium-octeon/setup.c:41:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h: In function ‘plat_map_dma_mem’:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h:24:1: error: no return statement in function returning non-void [-Werror=return-type]
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h: In function ‘plat_map_dma_mem_page’:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h:30:1: error: no return statement in function returning non-void [-Werror=return-type]
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h: In function ‘plat_dma_addr_to_phys’:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h:36:1: error: no return statement in function returning non-void [-Werror=return-type]
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h: In function ‘plat_dma_supported’:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h:47:1: error: no return statement in function returning non-void [-Werror=return-type]
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h: In function ‘plat_dma_mapping_error’:
      /home/ralf/src/linux/linux-mips/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h:63:1: error: no return statement in function returning non-void [-Werror=return-type]
      cc1: all warnings being treated as errors
      make[2]: *** [arch/mips/cavium-octeon/setup.o] Error 1
      make[1]: *** [arch/mips/cavium-octeon] Error 2
      make: *** [arch/mips] Error 2
      
      [ralf@linux-mips.org: while at it, also include <linux/bug.h> directly.]
      Signed-off-by: default avatarDavid Daney <david.daney@cavium.com>
      Patchwork: https://patchwork.linux-mips.org/patch/5519/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      368b0625
    • Ralf Baechle's avatar
      MIPS: Oceton: Fix build error. · 39205750
      Ralf Baechle authored
      If CONFIG_CAVIUM_OCTEON_LOCK_L2_TLB, CONFIG_CAVIUM_OCTEON_LOCK_L2_EXCEPTION,
      CONFIG_CAVIUM_OCTEON_LOCK_L2_LOW_LEVEL_INTERRUPT and
      CONFIG_CAVIUM_OCTEON_LOCK_L2_INTERRUPT are all undefined:
      
      arch/mips/cavium-octeon/setup.c: In function ‘prom_init’:
      arch/mips/cavium-octeon/setup.c:715:12: error: unused variable ‘ebase’ [-Werror=unused-variable]
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      39205750
    • Ralf Baechle's avatar
    • Ralf Baechle's avatar
    • Ralf Baechle's avatar
    • Ralf Baechle's avatar
  4. 13 Jun, 2013 2 commits
  5. 10 Jun, 2013 3 commits
  6. 09 Jun, 2013 2 commits
    • Linus Torvalds's avatar
      Linux 3.10-rc5 · 317ddd25
      Linus Torvalds authored
      317ddd25
    • Mikulas Patocka's avatar
      hpfs: fix warnings when the filesystem fills up · bbd465df
      Mikulas Patocka authored
      This patch fixes warnings due to missing lock on write error path.
      
        WARNING: at fs/hpfs/hpfs_fn.h:353 hpfs_truncate+0x75/0x80 [hpfs]()
        Hardware name: empty
        Pid: 26563, comm: dd Tainted: P           O 3.9.4 #12
        Call Trace:
          hpfs_truncate+0x75/0x80 [hpfs]
          hpfs_write_begin+0x84/0x90 [hpfs]
          _hpfs_bmap+0x10/0x10 [hpfs]
          generic_file_buffered_write+0x121/0x2c0
          __generic_file_aio_write+0x1c7/0x3f0
          generic_file_aio_write+0x7c/0x100
          do_sync_write+0x98/0xd0
          hpfs_file_write+0xd/0x50 [hpfs]
          vfs_write+0xa2/0x160
          sys_write+0x51/0xa0
          page_fault+0x22/0x30
          system_call_fastpath+0x1a/0x1f
      Signed-off-by: default avatarMikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
      Cc: stable@kernel.org  # 2.6.39+
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      bbd465df
  7. 08 Jun, 2013 14 commits
    • Linus Torvalds's avatar
      Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 81db4dbf
      Linus Torvalds authored
      Pull timer fixes from Thomas Gleixner:
      
       - Trivial: unused variable removal
      
       - Posix-timers: Add the clock ID to the new proc interface to make it
         useful.  The interface is new and should be functional when we reach
         the final 3.10 release.
      
       - Cure a false positive warning in the tick code introduced by the
         overhaul in 3.10
      
       - Fix for a persistent clock detection regression introduced in this
         cycle
      
      * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        timekeeping: Correct run-time detection of persistent_clock.
        ntp: Remove unused variable flags in __hardpps
        posix-timers: Show clock ID in proc file
        tick: Cure broadcast false positive pending bit warning
      81db4dbf
    • Linus Torvalds's avatar
      Merge tag 'irqdomain-for-linus' of git://git.secretlab.ca/git/linux · c3e58a79
      Linus Torvalds authored
      Pull irqdomain bug fixes from Grant Likely:
       "This branch contains a set of straight forward bug fixes to the
        irqdomain code and to a couple of drivers that make use of it."
      
      * tag 'irqdomain-for-linus' of git://git.secretlab.ca/git/linux:
        irqchip: Return -EPERM for reserved IRQs
        irqdomain: document the simple domain first_irq
        kernel/irq/irqdomain.c: before use 'irq_data', need check it whether valid.
        irqdomain: export irq_domain_add_simple
      c3e58a79
    • Grant Likely's avatar
      irqchip: Return -EPERM for reserved IRQs · d94ea3f6
      Grant Likely authored
      The irqdomain core will report a log message for any attempted map call
      that fails unless the error code is -EPERM. This patch changes the
      Versatile irq controller drivers to use -EPERM because it is normal for
      a subset of the IRQ inputs to be marked as reserved on the various
      Versatile platforms.
      Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
      d94ea3f6
    • Linus Walleij's avatar
      irqdomain: document the simple domain first_irq · 94a63da0
      Linus Walleij authored
      The first_irq needs to be zero to get a linear domain and that
      comes with special semantics. We want to simplify this going
      forward but some documentation never hurts.
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
      94a63da0
    • Chen Gang's avatar
      kernel/irq/irqdomain.c: before use 'irq_data', need check it whether valid. · 275e31b1
      Chen Gang authored
      Since irq_data may be NULL, if so, we WARN_ON(), and continue, 'hwirq'
      which related with 'irq_data' has to initialize later, or it will cause
      issue.
      Signed-off-by: default avatarChen Gang <gang.chen@asianux.com>
      Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
      275e31b1
    • Arnd Bergmann's avatar
      irqdomain: export irq_domain_add_simple · 346dbb79
      Arnd Bergmann authored
      All other irq_domain_add_* functions are exported already, and apparently
      this one got left out by mistake, which causes build errors for ARM
      allmodconfig kernels:
      
      ERROR: "irq_domain_add_simple" [drivers/gpio/gpio-rcar.ko] undefined!
      ERROR: "irq_domain_add_simple" [drivers/gpio/gpio-em.ko] undefined!
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarSimon Horman <horms+renesas@verge.net.au>
      Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
      346dbb79
    • Linus Torvalds's avatar
      Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · 50b4b9c3
      Linus Torvalds authored
      Pull ARM SoC fixes from Olof Johansson:
       "Another week, another batch of fixes for arm-soc platforms.
      
        Nothing controversial here, a handful of fixes for regressions and/or
        serious problems across several of the platforms.  Things are slowing
        down nicely on fix rates for 3.10"
      
      * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
        ARM: exynos: add debug_ll_io_init() call in exynos_init_io()
        ARM: EXYNOS: uncompress - print debug messages if DEBUG_LL is defined
        ARM: shmobile: sh73a0: Update CMT clockevent rating to 80
        sh-pfc: r8a7779: Don't group USB OVC and PENC pins
        ARM: mxs: icoll: Fix interrupts gpio bank 0
        ARM: imx: clk-imx6q: AXI clock select index is incorrect
        ARM: bcm2835: override the HW UART periphid
        ARM: mvebu: Fix bug in coherency fabric low level init function
        ARM: Kirkwood: TS219: Fix crash by double PCIe instantiation
        ARM: ux500: Provide supplies for AUX1, AUX2 and AUX3
        ARM: ux500: Only configure wake-up reasons on ux500 based platforms
        ARM: dts: imx: fix clocks for cspi
        ARM i.MX6q: fix for ldb_di_sels
      50b4b9c3
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · 554e6e9f
      Linus Torvalds authored
      Pull MIPS fixes from Ralf Baechle:
       "MIPS fixes across the field.  The only area that's standing out is the
        exception handling which received it's dose of breakage as part of the
        microMIPS patchset"
      
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
        MIPS: ralink: add missing SZ_1M multiplier
        MIPS: Compat: Fix cputime_to_timeval() arguments in compat binfmt_elf.
        MIPS: OCTEON: Improve _machine_halt implementation.
        MIPS: rtlx: Fix implicit declaration of function set_vi_handler()
        MIPS: Trap exception handling fixes
        MIPS: Quit exposing Kconfig symbols in uapi headers.
        MIPS: Remove duplicate definition of check_for_high_segbits.
      554e6e9f
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu · 17d8dfcd
      Linus Torvalds authored
      Pull m68knommu fix from Greg Ungerer:
       "A single fix for compilation breakage to many of the ColdFire CPU
        targets"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
        m68k: only use local gpio_request_one if not using GPIOLIB
      17d8dfcd
    • Linus Torvalds's avatar
      Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux · 6ea31c56
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regression fixers for the big 3:
      
         - nouveau: hdmi audio, dac load detect, s/r regressions fixed
         - radeon: long standing system hang fixed, hdmi audio and rs780 fast
           fb fixes
         - intel: one old regression, a WARN removal, and a stop X dying fix
      
        Otherwise one mgag200 fix, a couple of arm build fixes, and a core use
        after free fix."
      
      * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
        drm/nv50/kms: use dac loadval from vbios, where it's available
        drm/nv50/disp: force dac power state during load detect
        drm/nv50-nv84/fifo: fix resume regression introduced by playlist race fix
        drm/nv84/disp: Fix HDMI audio regression
        drm/i915/sdvo: Use &intel_sdvo->ddc instead of intel_sdvo->i2c for DDC.
        drm/radeon: don't allow audio on DCE6
        drm/radeon: Use direct mapping for fast fb access on RS780/RS880 (v2)
        radeon: Fix system hang issue when using KMS with older cards
        drm/i915: no lvds quirk for hp t5740
        drm/i915: Quirk the pipe A quirk in the modeset state checker
        drm/i915: Fix spurious -EIO/SIGBUS on wedged gpus
        drm/mgag200: Add missing write to index before accessing data register
        drm/nouveau: use mdelay instead of large udelay constants
        drm/tilcd: select BACKLIGHT_LCD_SUPPORT
        drm: fix a use-after-free when GPU acceleration disabled
      6ea31c56
    • Linus Torvalds's avatar
      Merge branch 'fixes' of git://git.infradead.org/users/vkoul/slave-dma · d7a39e30
      Linus Torvalds authored
      Pull slave-dmaengine fixes from Vinod Koul:
       "Fix from Andy is for dmatest regression reported by Will and Rabin has
        fixed runtime ref counting for st_dma40"
      
      * 'fixes' of git://git.infradead.org/users/vkoul/slave-dma:
        dmatest: do not allow to interrupt ongoing tests
        dmaengine: ste_dma40: fix pm runtime ref counting
      d7a39e30
    • Linus Torvalds's avatar
      Merge tag 'trace-fixes-v3.10-rc3-v3' of... · 14d0ee05
      Linus Torvalds authored
      Merge tag 'trace-fixes-v3.10-rc3-v3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
      
      Pull tracing fixes from Steven Rostedt:
       "This contains 4 fixes.
      
        The first two fix the case where full RCU debugging is enabled,
        enabling function tracing causes a live lock of the system.  This is
        due to the added debug checks in rcu_dereference_raw() that is used by
        the function tracer.  These checks are also traced by the function
        tracer as well as cause enough overhead to the function tracer to slow
        down the system enough that the time to finish an interrupt can take
        longer than when the next interrupt is triggered, causing a live lock
        from the timer interrupt.
      
        Talking this over with Paul McKenney, we came up with a fix that adds
        a new rcu_dereference_raw_notrace() that does not perform these added
        checks, and let the function tracer use that.
      
        The third commit fixes a failed compile when branch tracing is
        enabled, due to the conversion of the trace_test_buffer() selftest
        that the branch trace wasn't converted for.
      
        The forth patch fixes a bug caught by the RCU lockdep code where a
        rcu_read_lock() is performed when rcu is disabled (either going to or
        from idle, or user space).  This happened on the irqsoff tracer as it
        calls task_uid().  The fix here was to use current_uid() when possible
        that doesn't use rcu locking.  Which luckily, is always used when
        irqsoff calls this code."
      
      * tag 'trace-fixes-v3.10-rc3-v3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing: Use current_uid() for critical time tracing
        tracing: Fix bad parameter passed in branch selftest
        ftrace: Use the rcu _notrace variants for rcu_dereference_raw() and friends
        rcu: Add _notrace variation of rcu_dereference_raw() and hlist_for_each_entry_rcu()
      14d0ee05
    • Rafael J. Wysocki's avatar
      Revert "ACPI / scan: do not match drivers against objects having scan handlers" · ea7f6656
      Rafael J. Wysocki authored
      Commit 9f29ab11 ("ACPI / scan: do not match drivers against objects
      having scan handlers") introduced a boot regression on Tony's ia64 HP
      rx2600.  Tony says:
      
        "It panics with the message:
      
         Kernel panic - not syncing: Unable to find SBA IOMMU: Try a generic or DIG kernel
      
         [...] my problem comes from arch/ia64/hp/common/sba_iommu.c
         where the code in sba_init() says:
      
              acpi_bus_register_driver(&acpi_sba_ioc_driver);
              if (!ioc_list) {
      
         but because of this change we never managed to call ioc_init()
         so ioc_list doesn't get set up, and we die."
      
      Revert it to avoid this breakage and we'll fix the problem it attempted
      to address later.
      Reported-by: default avatarTony Luck <tony.luck@gmail.com>
      Cc: 3.9+ <stable@vger.kernel.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ea7f6656
    • Olof Johansson's avatar
      Merge tag 'mxs-fixes-3.10' of git://git.linaro.org/people/shawnguo/linux-2.6 into fixes · 090878aa
      Olof Johansson authored
      From Shawn Guo, mxs fixes for 3.10:
      
      - Since the time we move to MULTI_IRQ_HANDLER, the 0x7f polling for no
        interrupt in icoll_handle_irq() becomes insane, because 0x7f is an
        valid interrupt number, the irq of gpio bank 0.  That unnecessary
        polling results in the driver not detecting when irq 0x7f is active
        which makes the machine effectively dead lock.  The fix removes the
        interrupt poll loop and allows usage of gpio0 interrupt without an
        infinite loop.
      
      * tag 'mxs-fixes-3.10' of git://git.linaro.org/people/shawnguo/linux-2.6:
        ARM: mxs: icoll: Fix interrupts gpio bank 0
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      090878aa