1. 28 11月, 2016 1 次提交
    • I
      x86/sched: Use #include <linux/mutex.h> instead of #include <asm/mutex.h> · a293b395
      Ingo Molnar 提交于
      asm/mutex.h is gone from the locking tree, which makes sched/core break the build.
      
      Use linux/mutex.h instead, which is the canonical method.
      
      Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
      Cc: Tim Chen <tim.c.chen@linux.intel.com>
      Cc: peterz@infradead.org
      Cc: jolsa@redhat.com
      Cc: rjw@rjwysocki.net
      Cc: bp@suse.de
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      a293b395
  2. 25 11月, 2016 4 次提交
  3. 21 11月, 2016 6 次提交
  4. 20 11月, 2016 5 次提交
  5. 19 11月, 2016 8 次提交
  6. 18 11月, 2016 6 次提交
  7. 17 11月, 2016 2 次提交
    • A
      x86/boot: Avoid warning for zero-filling .bss · 553bbc11
      Arnd Bergmann 提交于
      The latest binutils are warning about a .fill directive with an explicit
      value in a .bss section:
      
        arch/x86/kernel/head_32.S: Assembler messages:
        arch/x86/kernel/head_32.S:677: Warning: ignoring fill value in section `.bss..page_aligned'
        arch/x86/kernel/head_32.S:679: Warning: ignoring fill value in section `.bss..page_aligned'
      
      This comes from the 'ENTRY()' macro padding the space between the symbols
      with 'nop' via:
      
        .align 4,0x90
      
      Open-coding the .globl directive without the padding avoids that warning,
      as all the symbols are already page aligned.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Andy Lutomirski <luto@kernel.org>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Josh Poimboeuf <jpoimboe@redhat.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: http://lkml.kernel.org/r/20161116141726.2013389-1-arnd@arndb.deSigned-off-by: NIngo Molnar <mingo@kernel.org>
      553bbc11
    • R
      ARM: Fix XIP kernels · 2a381106
      Russell King 提交于
      Commit 7619751f ("ARM: 8595/2: apply more __ro_after_init") caused
      a regression with XIP kernels by moving the __ro_after_init data into
      the read-only section.  With XIP kernels, the read-only section is
      located in read-only memory from the very beginning.
      
      Work around this by moving the __ro_after_init data back into the .data
      section, which will be in RAM, and hence will be writable.
      
      It should be noted that in doing so, this remains writable after init.
      
      Fixes: 7619751f ("ARM: 8595/2: apply more __ro_after_init")
      Reported-by: NAndrea Merello <andrea.merello@gmail.com>
      Tested-by: Andrea Merello <andrea.merello@gmail.com> [ XIP stm32 ]
      Tested-by: NAlexandre Torgue <alexandre.torgue@st.com>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      2a381106
  8. 16 11月, 2016 3 次提交
  9. 15 11月, 2016 5 次提交
    • M
      ARM: 8628/1: dma-mapping: preallocate DMA-debug hash tables in core_initcall · 256ff1cf
      Marek Szyprowski 提交于
      fs_initcall is definitely too late to initialize DMA-debug hash tables,
      because some drivers might get probed and use DMA mapping framework
      already in core_initcall. Late initialization of DMA-debug results in
      false warning about accessing memory, that was not allocated, like this
      one:
      ------------[ cut here ]------------
      WARNING: CPU: 5 PID: 1 at lib/dma-debug.c:1104 check_unmap+0xa1c/0xe50
      exynos-sysmmu 10a60000.sysmmu: DMA-API: device driver tries to free DMA memory it has not allocated [device
      address=0x000000006ebd0000] [size=16384 bytes]
      Modules linked in:
      CPU: 5 PID: 1 Comm: swapper/0 Not tainted 4.9.0-rc5-00028-g39dde3d-dirty #44
      Hardware name: SAMSUNG EXYNOS (Flattened Device Tree)
      [<c0119dd4>] (unwind_backtrace) from [<c01122bc>] (show_stack+0x20/0x24)
      [<c01122bc>] (show_stack) from [<c062714c>] (dump_stack+0x84/0xa0)
      [<c062714c>] (dump_stack) from [<c0132560>] (__warn+0x14c/0x180)
      [<c0132560>] (__warn) from [<c01325dc>] (warn_slowpath_fmt+0x48/0x50)
      [<c01325dc>] (warn_slowpath_fmt) from [<c06814f8>] (check_unmap+0xa1c/0xe50)
      [<c06814f8>] (check_unmap) from [<c06819c4>] (debug_dma_unmap_page+0x98/0xc8)
      [<c06819c4>] (debug_dma_unmap_page) from [<c076c3e8>] (exynos_iommu_domain_free+0x158/0x380)
      [<c076c3e8>] (exynos_iommu_domain_free) from [<c0764a30>] (iommu_domain_free+0x34/0x60)
      [<c0764a30>] (iommu_domain_free) from [<c011f168>] (release_iommu_mapping+0x30/0xb8)
      [<c011f168>] (release_iommu_mapping) from [<c011f23c>] (arm_iommu_release_mapping+0x4c/0x50)
      [<c011f23c>] (arm_iommu_release_mapping) from [<c0b061ac>] (s5p_mfc_probe+0x640/0x80c)
      [<c0b061ac>] (s5p_mfc_probe) from [<c07e6750>] (platform_drv_probe+0x70/0x148)
      [<c07e6750>] (platform_drv_probe) from [<c07e25c0>] (driver_probe_device+0x12c/0x6b0)
      [<c07e25c0>] (driver_probe_device) from [<c07e2c6c>] (__driver_attach+0x128/0x17c)
      [<c07e2c6c>] (__driver_attach) from [<c07df74c>] (bus_for_each_dev+0x88/0xc8)
      [<c07df74c>] (bus_for_each_dev) from [<c07e1b6c>] (driver_attach+0x34/0x58)
      [<c07e1b6c>] (driver_attach) from [<c07e1350>] (bus_add_driver+0x18c/0x32c)
      [<c07e1350>] (bus_add_driver) from [<c07e4198>] (driver_register+0x98/0x148)
      [<c07e4198>] (driver_register) from [<c07e5cb0>] (__platform_driver_register+0x58/0x74)
      [<c07e5cb0>] (__platform_driver_register) from [<c174cb30>] (s5p_mfc_driver_init+0x1c/0x20)
      [<c174cb30>] (s5p_mfc_driver_init) from [<c0102690>] (do_one_initcall+0x64/0x258)
      [<c0102690>] (do_one_initcall) from [<c17014c0>] (kernel_init_freeable+0x3d0/0x4d0)
      [<c17014c0>] (kernel_init_freeable) from [<c116eeb4>] (kernel_init+0x18/0x134)
      [<c116eeb4>] (kernel_init) from [<c010bbd8>] (ret_from_fork+0x14/0x3c)
      ---[ end trace dc54c54bd3581296 ]---
      
      This patch moves initialization of DMA-debug to core_initcall. This is
      safe from the initialization perspective. dma_debug_do_init() internally calls
      debugfs functions and debugfs also gets initialised at core_initcall(), and
      that is earlier than arch code in the link order, so it will get initialized
      just before the DMA-debug.
      Reported-by: NSeung-Woo Kim <sw0312.kim@samsung.com>
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      256ff1cf
    • N
      ARM: 8624/1: proc-v7m.S: fix init section name · 544457fa
      Nicolas Pitre 提交于
      There is no .text.init sections.
      Signed-off-by: NNicolas Pitre <nico@linaro.org>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      544457fa
    • R
      ARM: fix backtrace · 24c66dfd
      Russell King 提交于
      Recent kernels have changed their behaviour to be more inconsistent
      when handling printk continuations.  With todays kernels, the output
      looks sane on the console, but dmesg splits individual printk()s which
      do not have the KERN_CONT prefix into separate lines.
      
      Since the assembly code is not trivial to add the KERN_CONT, and we
      ideally want to avoid using KERN_CONT (as multiple printk()s can race
      between different threads), convert the assembly dumping the register
      values to C code, and have the C code build the output a line at a
      time before dumping to the console.
      
      This avoids the KERN_CONT issue, and also avoids situations where the
      output is intermixed with other console activity.
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      24c66dfd
    • L
      ARM: dts: STiH410-b2260: Fix typo in spi0 chipselect definition · 5bf7b6e8
      Loic Pallardy 提交于
      Change cs-gpio to cs-gpios.
      Signed-off-by: NLoic Pallardy <loic.pallardy@st.com>
      Acked-by: NPatrice Chotard <patrice.chotard@st.com>
      5bf7b6e8
    • B
      powerpc/64: Fix setting of AIL in hypervisor mode · c0a36013
      Benjamin Herrenschmidt 提交于
      Commit d3cbff1b "powerpc: Put exception configuration in a common place"
      broke the setting of the AIL bit (which enables taking exceptions with
      the MMU still on) on all processors, moving it incorrectly to a function
      called only on the boot CPU. This was correct for the guest case but
      not when running in hypervisor mode.
      
      This fixes it by partially reverting that commit, putting the setting
      back in cpu_ready_for_interrupts()
      
      Fixes: d3cbff1b ("powerpc: Put exception configuration in a common place")
      Cc: stable@vger.kernel.org # v4.8+
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      c0a36013