1. 25 11月, 2016 1 次提交
  2. 21 11月, 2016 6 次提交
  3. 20 11月, 2016 5 次提交
  4. 19 11月, 2016 8 次提交
  5. 18 11月, 2016 6 次提交
  6. 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
  7. 16 11月, 2016 3 次提交
  8. 15 11月, 2016 9 次提交
    • 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
    • S
      sched/cputime: Simplify task_cputime() · 353c50eb
      Stanislaw Gruszka 提交于
      Now since fetch_task_cputime() has no other users than task_cputime(),
      its code could be used directly in task_cputime().
      
      Moreover since only 2 task_cputime() calls of 17 use a NULL argument,
      we can add dummy variables to those calls and remove NULL checks from
      task_cputimes().
      
      Also remove NULL checks from task_cputimes_scaled().
      Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Michael Neuling <mikey@neuling.org>
      Cc: Paul Mackerras <paulus@ozlabs.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: http://lkml.kernel.org/r/1479175612-14718-5-git-send-email-fweisbec@gmail.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      353c50eb
    • S
      sched/cputime, powerpc, s390: Make scaled cputime arch specific · 40565b5a
      Stanislaw Gruszka 提交于
      Only s390 and powerpc have hardware facilities allowing to measure
      cputimes scaled by frequency. On all other architectures
      utimescaled/stimescaled are equal to utime/stime (however they are
      accounted separately).
      
      Remove {u,s}timescaled accounting on all architectures except
      powerpc and s390, where those values are explicitly accounted
      in the proper places.
      Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Michael Neuling <mikey@neuling.org>
      Cc: Paul Mackerras <paulus@ozlabs.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: http://lkml.kernel.org/r/20161031162143.GB12646@redhat.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      40565b5a
    • S
      sched/cputime, powerpc: Remove cputime_to_scaled() · 981ee2d4
      Stanislaw Gruszka 提交于
      Currently cputime_to_scaled() just return it's argument on
      all implementations, we don't need to call this function.
      Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
      Reviewed-by: NPaul Mackerras <paulus@ozlabs.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Michael Neuling <mikey@neuling.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: http://lkml.kernel.org/r/1479175612-14718-3-git-send-email-fweisbec@gmail.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      981ee2d4
    • S
      sched/cputime, powerpc: Remove cputime_last_delta global variable · 7008eb99
      Stanislaw Gruszka 提交于
      Since commit:
      
        cf9efce0 ("powerpc: Account time using timebase rather than PURR")
      
      cputime_last_delta is not initialized to other value than 0, hence it's
      not used except zero check and cputime_to_scaled() just returns
      the argument.
      Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
      Acked-by: NPaul Mackerras <paulus@ozlabs.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Michael Neuling <mikey@neuling.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: http://lkml.kernel.org/r/1479175612-14718-2-git-send-email-fweisbec@gmail.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      7008eb99