1. 14 Dec, 2016 1 commit
  2. 29 Nov, 2016 2 commits
  3. 23 Nov, 2016 1 commit
    • Russell King's avatar
      Revert "arm: move exports to definitions" · 8478132a
      Russell King authored
      This reverts commit 4dd1837d.
      
      Moving the exports for assembly code into the assembly files breaks
      KSYM trimming, but also breaks modversions.
      
      While fixing the KSYM trimming is trivial, fixing modversions brings
      us to a technically worse position that we had prior to the above
      change:
      
      - We end up with the prototype definitions divorsed from everything
        else, which means that adding or removing assembly level ksyms
        become more fragile:
        * if adding a new assembly ksyms export, a missed prototype in
          asm-prototypes.h results in a successful build if no module in
          the selected configuration makes use of the symbol.
        * when removing a ksyms export, asm-prototypes.h will get forgotten,
          with armksyms.c, you'll get a build error if you forget to touch
          the file.
      
      - We end up with the same amount of include files and prototypes,
        they're just in a header file instead of a .c file with their
        exports.
      
      As for lines of code, we don't get much of a size reduction:
       (original commit)
       47 files changed, 131 insertions(+), 208 deletions(-)
       (fix for ksyms trimming)
       7 files changed, 18 insertions(+), 5 deletions(-)
       (two fixes for modversions)
       1 file changed, 34 insertions(+)
       3 files changed, 7 insertions(+), 2 deletions(-)
      which results in a net total of only 25 lines deleted.
      
      As there does not seem to be much benefit from this change of approach,
      revert the change.
      Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
      8478132a
  4. 22 Nov, 2016 4 commits
  5. 16 Nov, 2016 1 commit
    • Russell King's avatar
      ARM: Fix XIP kernels · 2a381106
      Russell King authored
      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: default avatarAndrea Merello <andrea.merello@gmail.com>
      Tested-by: Andrea Merello <andrea.merello@gmail.com> [ XIP stm32 ]
      Tested-by: default avatarAlexandre Torgue <alexandre.torgue@st.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
      2a381106
  6. 15 Nov, 2016 4 commits
    • Masahiro Yamada's avatar
      ARM: 8623/1: mm: add ARM_L1_CACHE_SHIFT_7 for UniPhier outer cache · 01bf9278
      Masahiro Yamada authored
      The UniPhier outer cache (arch/arm/mm/cache-uniphier.c) has 128 byte
      line length and its tags are also managed per 128 byte line.  This
      is very unfortunate, but the current 64 byte alignment for kmalloc()
      causes sharing problems on DMA if used with this outer cache.
      
      This commit adds ARM_L1_CACHE_SHIFT_7 to increase the DMA minimum
      alignment to 128 byte if CACHE_UNIPHIER is enabled.  There are
      several drivers that assume aligning to L1_CACHE_BYTES will be DMA
      safe, so this commit also changes the L1_CACHE_BYTES for safety.
      
      Having said that, I hesitate to align all the other SoCs in Multi
      platform to the UniPhier's requirement.  So, I am disabling the
      CONFIG_CACHE_UNIPHIER by default, so that multi_v7_defconfig will
      still stay with CONFIG_ARM_L1_CACHE_SHIFT=6.  With this commit,
      UniPhier SoCs will become slower, but it is much better than system
      crash.  If desired, the outer-cache can be enabled by merge_config
      or something.
      
      Note:
      The UniPhier PH1-Pro5 SoC is equipped also with L3 cache with 256
      byte line size but its tags are managed per 128 byte sub-line.
      So, ARM_L1_CACHE_SHIFT_7 should be fine for all the UniPhier SoCs.
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      01bf9278
    • Marek Szyprowski's avatar
      ARM: 8628/1: dma-mapping: preallocate DMA-debug hash tables in core_initcall · 256ff1cf
      Marek Szyprowski authored
      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: default avatarSeung-Woo Kim <sw0312.kim@samsung.com>
      Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      256ff1cf
    • Nicolas Pitre's avatar
      ARM: 8624/1: proc-v7m.S: fix init section name · 544457fa
      Nicolas Pitre authored
      There is no .text.init sections.
      Signed-off-by: default avatarNicolas Pitre <nico@linaro.org>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      544457fa
    • Russell King's avatar
      ARM: fix backtrace · 24c66dfd
      Russell King authored
      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: default avatarRussell King <rmk+kernel@armlinux.org.uk>
      24c66dfd
  7. 30 Oct, 2016 1 commit
    • Russell King's avatar
      ARM: Update mach-types · ffa5d3ee
      Russell King authored
      It's been a while since the mach-types file was updated, as we have
      moved away to DT for platform stuff.  Updating it has the advantage of
      retiring lots of entries which have not been made use of, resulting in
      rougly halving the size of the file.
      Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
      ffa5d3ee
  8. 19 Oct, 2016 4 commits
    • Russell King's avatar
      ARM: sa1100: remove SA-1101 header file · e642873d
      Russell King authored
      Remove the completely unused SA-1101 header file.
      Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
      e642873d
    • Nicolas Pitre's avatar
      ARM: 8619/1: udelay: document the various constants · 207b1150
      Nicolas Pitre authored
      Explain where the value for UDELAY_MULT and UDELAY_SHIFT come from.
      Also fix/clarify some comments pertaining to their usage in the
      assembly code.
      Signed-off-by: default avatarNicolas Pitre <nico@linaro.org>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      207b1150
    • Russell King's avatar
      ARM: wire up new pkey syscalls · 6127d124
      Russell King authored
      Wire up the new pkey syscalls for ARM.
      Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
      6127d124
    • Russell King's avatar
      ARM: fix oops when using older ARMv4T CPUs · 04946fb6
      Russell King authored
      Alexander Shiyan reports that CLPS711x fails at boot time in the data
      exception handler due to a NULL pointer dereference.  This is caused by
      the late-v4t abort handler overwriting R9 (which becomes zero).  Fix
      this by making the abort handler save and restore R9.
      
      Unable to handle kernel NULL pointer dereference at virtual address 00000008
      pgd = c3b58000
      [00000008] *pgd=800000000, *pte=00000000, *ppte=feff4140
      Internal error: Oops: 63c11817 [#1] PREEMPT ARM
      CPU: 0 PID: 448 Comm: ash Not tainted 4.8.1+ #1
      Hardware name: Cirrus Logic CLPS711X (Device Tree Support)
      task: c39e03a0 ti: c3b4e000 task.ti: c3b4e000
      PC is at __dabt_svc+0x4c/0x60
      LR is at do_page_fault+0x144/0x2ac
      pc : [<c000d3ac>]    lr : [<c000fcec>]    psr: 60000093
      sp : c3b4fe6c  ip : 00000001  fp : b6f1bf88
      r10: c387a5a0  r9 : 00000000  r8 : e4e0e001
      r7 : bee3ef83  r6 : 00100000  r5 : 80000013  r4 : c022fcf8
      r3 : 00000000  r2 : 00000008  r1 : bf000000  r0 : 00000000
      Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
      Control: 0000217f  Table: c3b58055  DAC: 00000055
      Process ash (pid: 448, stack limit = 0xc3b4e190)
      Stack: (0xc3b4fe6c to 0xc3b50000)
      fe60:                            bee3ef83 c05168d1 ffffffff 00000000 c3adfe80
      fe80: c3a03300 00000000 c3b4fed0 c3a03400 bee3ef83 c387a5a0 b6f1bf88 00000001
      fea0: c3b4febc 00000076 c022fcf8 80000013 ffffffff 0000003f bf000000 bee3ef83
      fec0: 00000004 00000000 c3adfe80 c00e432c 00000812 00000005 00000001 00000006
      fee0: b6f1b000 00000000 00010000 0003c944 0004d000 0004d439 00010000 b6f1b000
      ff00: 00000005 00000000 00015ecc c3b4fed0 0000000a 00000000 00000000 c00a1dc0
      ff20: befff000 c3a03300 c3b4e000 c0507cd8 c0508024 fffffff8 c3a03300 00000000
      ff40: c0516a58 c00a35bc c39e03a0 000001c0 bea84ce8 0004e008 c3b3a000 c00a3ac0
      ff60: c3b40374 c3b3a000 bea84d11 00000000 c0500188 bea84d11 bea84ce8 00000001
      ff80: 0000000b c000a304 c3b4e000 00000000 bea84ce4 c00a3cd0 00000000 bea84d11
      ffa0: bea84ce8 c000a160 bea84d11 bea84ce8 bea84d11 bea84ce8 0004e008 0004d450
      ffc0: bea84d11 bea84ce8 00000001 0000000b b6f45ee4 00000000 b6f5ff70 bea84ce4
      ffe0: b6f2f130 bea84cb0 b6f2f194 b6ef29f4 a0000010 bea84d11 02c7cffa 02c7cffd
      [<c000d3ac>] (__dabt_svc) from [<c022fcf8>] (__copy_to_user_std+0xf8/0x330)
      [<c022fcf8>] (__copy_to_user_std) from [<c00e432c>]
      +(load_elf_binary+0x920/0x107c)
      [<c00e432c>] (load_elf_binary) from [<c00a35bc>]
      +(search_binary_handler+0x80/0x16c)
      [<c00a35bc>] (search_binary_handler) from [<c00a3ac0>]
      +(do_execveat_common+0x418/0x600)
      [<c00a3ac0>] (do_execveat_common) from [<c00a3cd0>] (do_execve+0x28/0x30)
      [<c00a3cd0>] (do_execve) from [<c000a160>] (ret_fast_syscall+0x0/0x30)
      Code: e1a0200d eb00136b e321f093 e59d104c (e5891008)
      ---[ end trace 4b4f8086ebef98c5 ]---
      
      Fixes: e6978e4b ("ARM: save and reset the address limit when entering an exception")
      Reported-by: default avatarAlexander Shiyan <shc_work@mail.ru>
      Tested-by: default avatarAlexander Shiyan <shc_work@mail.ru>
      Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
      04946fb6
  9. 15 Oct, 2016 15 commits
    • Linus Torvalds's avatar
      Linux 4.9-rc1 · 1001354c
      Linus Torvalds authored
      1001354c
    • Linus Torvalds's avatar
      Merge tag 'befs-v4.9-rc1' of git://github.com/luisbg/linux-befs · df34d04a
      Linus Torvalds authored
      Pull befs fixes from Luis de Bethencourt:
       "I recently took maintainership of the befs file system [0]. This is
        the first time I send you a git pull request, so please let me know if
        all the below is OK.
      
        Salah Triki and myself have been cleaning the code and fixing a few
        small bugs.
      
        Sorry I couldn't send this sooner in the merge window, I was waiting
        to have my GPG key signed by kernel members at ELCE in Berlin a few
        days ago."
      
      [0] https://lkml.org/lkml/2016/7/27/502
      
      * tag 'befs-v4.9-rc1' of git://github.com/luisbg/linux-befs: (39 commits)
        befs: befs: fix style issues in datastream.c
        befs: improve documentation in datastream.c
        befs: fix typos in datastream.c
        befs: fix typos in btree.c
        befs: fix style issues in super.c
        befs: fix comment style
        befs: add check for ag_shift in superblock
        befs: dump inode_size superblock information
        befs: remove unnecessary initialization
        befs: fix typo in befs_sb_info
        befs: add flags field to validate superblock state
        befs: fix typo in befs_find_key
        befs: remove unused BEFS_BT_PARMATCH
        fs: befs: remove ret variable
        fs: befs: remove in vain variable assignment
        fs: befs: remove unnecessary *befs_sb variable
        fs: befs: remove useless initialization to zero
        fs: befs: remove in vain variable assignment
        fs: befs: Insert NULL inode to dentry
        fs: befs: Remove useless calls to brelse in befs_find_brun_dblindirect
        ...
      df34d04a
    • Linus Torvalds's avatar
      Merge tag 'gcc-plugins-v4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · 9ffc6694
      Linus Torvalds authored
      Pull gcc plugins update from Kees Cook:
       "This adds a new gcc plugin named "latent_entropy". It is designed to
        extract as much possible uncertainty from a running system at boot
        time as possible, hoping to capitalize on any possible variation in
        CPU operation (due to runtime data differences, hardware differences,
        SMP ordering, thermal timing variation, cache behavior, etc).
      
        At the very least, this plugin is a much more comprehensive example
        for how to manipulate kernel code using the gcc plugin internals"
      
      * tag 'gcc-plugins-v4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
        latent_entropy: Mark functions with __latent_entropy
        gcc-plugins: Add latent_entropy plugin
      9ffc6694
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · 133d970e
      Linus Torvalds authored
      Pull MIPS updates from Ralf Baechle:
       "This is the main MIPS pull request for 4.9:
      
        MIPS core arch code:
         - traps: 64bit kernels should read CP0_EBase 64bit
         - traps: Convert ebase to KSEG0
         - c-r4k: Drop bc_wback_inv() from icache flush
         - c-r4k: Split user/kernel flush_icache_range()
         - cacheflush: Use __flush_icache_user_range()
         - uprobes: Flush icache via kernel address
         - KVM: Use __local_flush_icache_user_range()
         - c-r4k: Fix flush_icache_range() for EVA
         - Fix -mabi=64 build of vdso.lds
         - VDSO: Drop duplicated -I*/-E* aflags
         - tracing: move insn_has_delay_slot to a shared header
         - tracing: disable uprobe/kprobe on compact branch instructions
         - ptrace: Fix regs_return_value for kernel context
         - Squash lines for simple wrapper functions
         - Move identification of VP(E) into proc.c from smp-mt.c
         - Add definitions of SYNC barrierstype values
         - traps: Ensure full EBase is written
         - tlb-r4k: If there are wired entries, don't use TLBINVF
         - Sanitise coherentio semantics
         - dma-default: Don't check hw_coherentio if device is non-coherent
         - Support per-device DMA coherence
         - Adjust MIPS64 CAC_BASE to reflect Config.K0
         - Support generating Flattened Image Trees (.itb)
         - generic: Introduce generic DT-based board support
         - generic: Convert SEAD-3 to a generic board
         - Enable hardened usercopy
         - Don't specify STACKPROTECTOR in defconfigs
      
        Octeon:
         - Delete dead code and files across the platform.
         - Change to use all memory into use by default.
         - Rename upper case variables in setup code to lowercase.
         - Delete legacy hack for broken bootloaders.
         - Leave maintaining the link state to the actual ethernet/PHY drivers.
         - Add DTS for D-Link DSR-500N.
         - Fix PCI interrupt routing on D-Link DSR-500N.
      
        Pistachio:
         - Remove ANDROID_TIMED_OUTPUT from defconfig
      
        TX39xx:
         - Move GPIO setup from .mem_setup() to .arch_init()
         - Convert to Common Clock Framework
      
        TX49xx:
         - Move GPIO setup from .mem_setup() to .arch_init()
         - Convert to Common Clock Framework
      
        txx9wdt:
         - Add missing clock (un)prepare calls for CCF
      
        BMIPS:
         - Add PW, GPIO SDHCI and NAND device node names
         - Support APPENDED_DTB
         - Add missing bcm97435svmb to DT_NONE
         - Rename bcm96358nb4ser to bcm6358-neufbox4-sercom
         - Add DT examples for BCM63268, BCM3368 and BCM6362
         - Add support for BCM3368 and BCM6362
      
        PCI
         - Reduce stack frame usage
         - Use struct list_head lists
         - Support for CONFIG_PCI_DOMAINS_GENERIC
         - Make pcibios_set_cache_line_size an initcall
         - Inline pcibios_assign_all_busses
         - Split pci.c into pci.c & pci-legacy.c
         - Introduce CONFIG_PCI_DRIVERS_LEGACY
         - Support generic drivers
      
        CPC
         - Convert bare 'unsigned' to 'unsigned int'
         - Avoid lock when MIPS CM >= 3 is present
      
        GIC:
         - Delete unused file smp-gic.c
      
        mt7620:
         - Delete unnecessary assignment for the field "owner" from PCI
      
        BCM63xx:
         - Let clk_disable() return immediately if clk is NULL
      
        pm-cps:
         - Change FSB workaround to CPU blacklist
         - Update comments on barrier instructions
         - Use MIPS standard lightweight ordering barrier
         - Use MIPS standard completion barrier
         - Remove selection of sync types
         - Add MIPSr6 CPU support
         - Support CM3 changes to Coherence Enable Register
      
        SMP:
         - Wrap call to mips_cpc_lock_other in mips_cm_lock_other
         - Introduce mechanism for freeing and allocating IPIs
      
        cpuidle:
         - cpuidle-cps: Enable use with MIPSr6 CPUs.
      
        SEAD3:
         - Rewrite to use DT and generic kernel feature.
      
        USB:
         - host: ehci-sead3: Remove SEAD-3 EHCI code
      
        FBDEV:
         - cobalt_lcdfb: Drop SEAD3 support
      
        dt-bindings:
         -  Document a binding for simple ASCII LCDs
      
        auxdisplay:
         - img-ascii-lcd: driver for simple ASCII LCD displays
      
        irqchip i8259:
         - i8259: Add domain before mapping parent irq
         - i8259: Allow platforms to override poll function
         - i8259: Remove unused i8259A_irq_pending
      
        Malta:
         - Rewrite to use DT
      
        of/platform:
         - Probe "isa" busses by default
      
        CM:
         - Print CM error reports upon bus errors
      
        Module:
         - Migrate exception table users off module.h and onto extable.h
         - Make various drivers explicitly non-modular:
         - Audit and remove any unnecessary uses of module.h
      
        mailmap:
         - Canonicalize to Qais' current email address.
      
        Documentation:
         - MIPS supports HAVE_REGS_AND_STACK_ACCESS_API
      
        Loongson1C:
         - Add CPU support for Loongson1C
         - Add board support
         - Add defconfig
         - Add RTC support for Loongson1C board
      
        All this except one Documentation fix has sat in linux-next and has
        survived Imagination's automated build test system"
      
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (127 commits)
        Documentation: MIPS supports HAVE_REGS_AND_STACK_ACCESS_API
        MIPS: ptrace: Fix regs_return_value for kernel context
        MIPS: VDSO: Drop duplicated -I*/-E* aflags
        MIPS: Fix -mabi=64 build of vdso.lds
        MIPS: Enable hardened usercopy
        MIPS: generic: Convert SEAD-3 to a generic board
        MIPS: generic: Introduce generic DT-based board support
        MIPS: Support generating Flattened Image Trees (.itb)
        MIPS: Adjust MIPS64 CAC_BASE to reflect Config.K0
        MIPS: Print CM error reports upon bus errors
        MIPS: Support per-device DMA coherence
        MIPS: dma-default: Don't check hw_coherentio if device is non-coherent
        MIPS: Sanitise coherentio semantics
        MIPS: PCI: Support generic drivers
        MIPS: PCI: Introduce CONFIG_PCI_DRIVERS_LEGACY
        MIPS: PCI: Split pci.c into pci.c & pci-legacy.c
        MIPS: PCI: Inline pcibios_assign_all_busses
        MIPS: PCI: Make pcibios_set_cache_line_size an initcall
        MIPS: PCI: Support for CONFIG_PCI_DOMAINS_GENERIC
        MIPS: PCI: Use struct list_head lists
        ...
      133d970e
    • Linus Torvalds's avatar
      Merge tag 'sound-fix-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 050aaeab
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "Just a few trivial small fixes"
      
      * tag 'sound-fix-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: line6: fix a crash in line6_hwdep_write()
        ALSA: seq: fix passing wrong pointer in function call of compatibility layer
        ALSA: hda - Fix a failure of micmute led when having multi adcs
        ALSA: line6: Fix POD X3 Live audio input
      050aaeab
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · b26b5ef5
      Linus Torvalds authored
      Pull more misc uaccess and vfs updates from Al Viro:
       "The rest of the stuff from -next (more uaccess work) + assorted fixes"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        score: traps: Add missing include file to fix build error
        fs/super.c: don't fool lockdep in freeze_super() and thaw_super() paths
        fs/super.c: fix race between freeze_super() and thaw_super()
        overlayfs: Fix setting IOP_XATTR flag
        iov_iter: kernel-doc import_iovec() and rw_copy_check_uvector()
        blackfin: no access_ok() for __copy_{to,from}_user()
        arm64: don't zero in __copy_from_user{,_inatomic}
        arm: don't zero in __copy_from_user_inatomic()/__copy_from_user()
        arc: don't leak bits of kernel stack into coredump
        alpha: get rid of tail-zeroing in __copy_user()
      b26b5ef5
    • Linus Torvalds's avatar
      Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6 · 87dbe42a
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Including:
      
         - nine bug fixes for stable. Some of these we found at the recent two
           weeks of SMB3 test events/plugfests.
      
         - significant improvements in reconnection (e.g. if server or network
           crashes) especially when mounted with "persistenthandles" or to
           server which advertises Continuous Availability on the share.
      
         - a new mount option "idsfromsid" which improves POSIX compatibility
           in some cases (when winbind not configured e.g.) by better (and
           faster) fetching uid/gid from acl (when "cifsacl" mount option is
           enabled). NB: we are almost complete work on "cifsacl" (querying
           mode/uid/gid from ACL) for SMB3, but SMB3 support for cifsacl is
           not included in this set.
      
         - improved handling for SMB3 "credits" (even if server is buggy)
      
        Still working on two sets of changes:
      
         - cifsacl enablement for SMB3
      
         - cleanup of RFC1001 length calculation (so we can handle encryption
           and multichannel and RDMA)
      
        And a couple of new bugs were reported recently (unrelated to above)
        so will probably have another merge request next week"
      
      * 'for-next' of git://git.samba.org/sfrench/cifs-2.6: (21 commits)
        CIFS: Retrieve uid and gid from special sid if enabled
        CIFS: Add new mount option to set owner uid and gid from special sids in acl
        CIFS: Reset read oplock to NONE if we have mandatory locks after reopen
        CIFS: Fix persistent handles re-opening on reconnect
        SMB2: Separate RawNTLMSSP authentication from SMB2_sess_setup
        SMB2: Separate Kerberos authentication from SMB2_sess_setup
        Expose cifs module parameters in sysfs
        Cleanup missing frees on some ioctls
        Enable previous version support
        Do not send SMB3 SET_INFO request if nothing is changing
        SMB3: Add mount parameter to allow user to override max credits
        fs/cifs: reopen persistent handles on reconnect
        Clarify locking of cifs file and tcon structures and make more granular
        Fix regression which breaks DFS mounting
        fs/cifs: keep guid when assigning fid to fileinfo
        SMB3: GUIDs should be constructed as random but valid uuids
        Set previous session id correctly on SMB3 reconnect
        cifs: Limit the overall credit acquired
        Display number of credits available
        Add way to query creation time of file via cifs xattr
        ...
      87dbe42a
    • Linus Torvalds's avatar
      Merge branch 'for-linus-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs · d3304cad
      Linus Torvalds authored
      Pull btrfs fixes from Chris Mason:
       "Some fixes from Omar and Dave Sterba for our new free space tree.
      
        This isn't heavily used yet, but as we move toward making it the new
        default we wanted to nail down an endian bug"
      
      * 'for-linus-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs:
        btrfs: tests: uninline member definitions in free_space_extent
        btrfs: tests: constify free space extent specs
        Btrfs: expand free space tree sanity tests to catch endianness bug
        Btrfs: fix extent buffer bitmap tests on big-endian systems
        Btrfs: catch invalid free space trees
        Btrfs: fix mount -o clear_cache,space_cache=v2
        Btrfs: fix free space tree bitmaps on big-endian systems
      d3304cad
    • Al Viro's avatar
      Merge branch 'work.uaccess' into for-linus · 2692a71b
      Al Viro authored
      2692a71b
    • Guenter Roeck's avatar
      score: traps: Add missing include file to fix build error · 7041c577
      Guenter Roeck authored
      score images fail to build as follows.
      
      arch/score/kernel/traps.c: In function 'show_stack':
      arch/score/kernel/traps.c:55:3: error:
      	implicit declaration of function '__get_user'
      
      __get_user() is declared in asm/uaccess.h, which was previously included
      through asm/module.h.
      
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Fixes: 88dd4a74 ("score: separate extable.h, switch module.h to it")
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      7041c577
    • Oleg Nesterov's avatar
      fs/super.c: don't fool lockdep in freeze_super() and thaw_super() paths · f1a96220
      Oleg Nesterov authored
      sb_wait_write()->percpu_rwsem_release() fools lockdep to avoid the
      false-positives. Now that xfs was fixed by Dave's commit dbad7c99
      ("xfs: stop holding ILOCK over filldir callbacks") we can remove it and
      change freeze_super() and thaw_super() to run with s_writers.rw_sem locks
      held; we add two trivial helpers for that, lockdep_sb_freeze_release()
      and lockdep_sb_freeze_acquire().
      
      xfstests-dev/check `grep -il freeze tests/*/???` does not trigger any
      warning from lockdep.
      Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      f1a96220
    • Linus Torvalds's avatar
      Merge branch 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs · 1a892b48
      Linus Torvalds authored
      Pull overlayfs updates from Miklos Szeredi:
       "This update contains fixes to the "use mounter's permission to access
        underlying layers" area, and miscellaneous other fixes and cleanups.
      
        No new features this time"
      
      * 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
        ovl: use vfs_get_link()
        vfs: add vfs_get_link() helper
        ovl: use generic_readlink
        ovl: explain error values when removing acl from workdir
        ovl: Fix info leak in ovl_lookup_temp()
        ovl: during copy up, switch to mounter's creds early
        ovl: lookup: do getxattr with mounter's permission
        ovl: copy_up_xattr(): use strnlen
      1a892b48
    • Oleg Nesterov's avatar
      fs/super.c: fix race between freeze_super() and thaw_super() · 89f39af1
      Oleg Nesterov authored
      Change thaw_super() to check frozen != SB_FREEZE_COMPLETE rather than
      frozen == SB_UNFROZEN, otherwise it can race with freeze_super() which
      drops sb->s_umount after SB_FREEZE_WRITE to preserve the lock ordering.
      
      In this case thaw_super() will wrongly call s_op->unfreeze_fs() before
      it was actually frozen, and call sb_freeze_unlock() which leads to the
      unbalanced percpu_up_write(). Unfortunately lockdep can't detect this,
      so this triggers misc BUG_ON()'s in kernel/rcu/sync.c.
      Reported-and-tested-by: default avatarNikolay Borisov <kernel@kyup.com>
      Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      89f39af1
    • Vivek Goyal's avatar
      overlayfs: Fix setting IOP_XATTR flag · 655042cc
      Vivek Goyal authored
      ovl_fill_super calls ovl_new_inode to create a root inode for the new
      superblock before initializing sb->s_xattr.  This wrongly causes
      IOP_XATTR to be cleared in i_opflags of the new inode, causing SELinux
      to log the following message:
      
        SELinux: (dev overlay, type overlay) has no xattr support
      
      Fix this by initializing sb->s_xattr and similar fields before calling
      ovl_new_inode.
      Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      655042cc
    • Vegard Nossum's avatar
      iov_iter: kernel-doc import_iovec() and rw_copy_check_uvector() · ffecee4f
      Vegard Nossum authored
      Both import_iovec() and rw_copy_check_uvector() take an array
      (typically small and on-stack) which is used to hold an iovec array copy
      from userspace. This is to avoid an expensive memory allocation in the
      fast path (i.e. few iovec elements).
      
      The caller may have to check whether these functions actually used
      the provided buffer or allocated a new one -- but this differs between
      the too. Let's just add a kernel doc to clarify what the semantics are
      for each function.
      Signed-off-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      ffecee4f
  10. 14 Oct, 2016 7 commits
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-4.9-rc1-update' of... · 5d89d9f5
      Linus Torvalds authored
      Merge tag 'linux-kselftest-4.9-rc1-update' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull kselftest updates from Shuah Khan:
       "This update consists of:
      
         - Fixes and improvements to existing tests
      
         - Moving code from Documentation to selftests, samples, and tools:
      
           * Moves dnotify_test, prctl, ptp, vDSO, ia64, watchdog, and
             networking tests from Documentation to selftests.
      
           * Moves mic/mpssd, misc-devices/mei, timers, watchdog, auxdisplay,
             and blackfin examples from Documentation to samples.
      
           * Moves accounting, laptops/dslm, and pcmcia/crc32hash tools from
             Documentation to tools.
      
           * Deletes BUILD_DOCSRC and its dependencies"
      
      * tag 'linux-kselftest-4.9-rc1-update' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (21 commits)
        selftests/futex: Check ANSI terminal color support
        Doc: update 00-INDEX files to reflect the runnable code move
        samples: move blackfin gptimers-example from Documentation
        tools: move pcmcia crc32hash tool from Documentation
        tools: move laptops dslm tool from Documentation
        tools: move accounting tool from Documentation
        samples: move auxdisplay example code from Documentation
        samples: move watchdog example code from Documentation
        samples: move timers example code from Documentation
        samples: move misc-devices/mei example code from Documentation
        samples: move mic/mpssd example code from Documentation
        selftests: Move networking/timestamping from Documentation
        selftests: move watchdog tests from Documentation/watchdog
        selftests: move ia64 tests from Documentation/ia64
        selftests: move vDSO tests from Documentation/vDSO
        selftests: move ptp tests from Documentation/ptp
        selftests: move prctl tests from Documentation/prctl
        selftests: move dnotify_test from Documentation/filesystems
        selftests/timers: Add missing error code assignment before test
        selftests/zram: replace ZRAM_LZ4_COMPRESS
        ...
      5d89d9f5
    • Linus Torvalds's avatar
      Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild · 50cff898
      Linus Torvalds authored
      Pull misc kbuild changes from Michal Marek:
       "Just a few patches on the kbuild.git#misc branch this time:
      
         - New Coccinelle patch by Nicholas Mc Guire
         - Existing patch fixes by Julia Lawall
         - Minor comment fix by Markus Elfring"
      
      * 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
        Coccinelle: flag conditions with no effect
        scripts/coccicheck: Update reference for the corresponding documentation
        Coccinelle: pm_runtime: ensure relevance of pm_runtime reports
        Coccinelle: limit memdup_user transformation to GFP_KERNEL case
      50cff898
    • Linus Torvalds's avatar
      Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild · 84d69848
      Linus Torvalds authored
      Pull kbuild updates from Michal Marek:
      
       - EXPORT_SYMBOL for asm source by Al Viro.
      
         This does bring a regression, because genksyms no longer generates
         checksums for these symbols (CONFIG_MODVERSIONS). Nick Piggin is
         working on a patch to fix this.
      
         Plus, we are talking about functions like strcpy(), which rarely
         change prototypes.
      
       - Fixes for PPC fallout of the above by Stephen Rothwell and Nick
         Piggin
      
       - fixdep speedup by Alexey Dobriyan.
      
       - preparatory work by Nick Piggin to allow architectures to build with
         -ffunction-sections, -fdata-sections and --gc-sections
      
       - CONFIG_THIN_ARCHIVES support by Stephen Rothwell
      
       - fix for filenames with colons in the initramfs source by me.
      
      * 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild: (22 commits)
        initramfs: Escape colons in depfile
        ppc: there is no clear_pages to export
        powerpc/64: whitelist unresolved modversions CRCs
        kbuild: -ffunction-sections fix for archs with conflicting sections
        kbuild: add arch specific post-link Makefile
        kbuild: allow archs to select link dead code/data elimination
        kbuild: allow architectures to use thin archives instead of ld -r
        kbuild: Regenerate genksyms lexer
        kbuild: genksyms fix for typeof handling
        fixdep: faster CONFIG_ search
        ia64: move exports to definitions
        sparc32: debride memcpy.S a bit
        [sparc] unify 32bit and 64bit string.h
        sparc: move exports to definitions
        ppc: move exports to definitions
        arm: move exports to definitions
        s390: move exports to definitions
        m68k: move exports to definitions
        alpha: move exports to actual definitions
        x86: move exports to actual definitions
        ...
      84d69848
    • Linus Torvalds's avatar
      Merge tag 'docs-4.9-2' of git://git.lwn.net/linux · d4d24d2d
      Linus Torvalds authored
      Pull one more documentation update from Jonathan Corbet:
       "A single commit converting the mac80211 DocBook template over to
        Sphinx.  Only 32 more to go..."
      
      * tag 'docs-4.9-2' of git://git.lwn.net/linux:
        docs-rst: sphinxify 802.11 documentation
      d4d24d2d
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma · ac9ef8cd
      Linus Torvalds authored
      Pull rdma qedr RoCE driver from Doug Ledford:
       "Early on in the merge window I mentioned I had a backlog of new
        drivers waiting to be reviewed and that, in addition to the hns-roce
        driver, I wanted to get possible a couple more reviewed. I ended up
        only having the time to complete one of the additional drivers.
      
        During Dave Miller's pull request this go around, there were a series
        of 9 patches to the QLogic qed net driver that add basic support for a
        paired RoCE driver. That support is currently not functional because
        it is missing the matching RoCE driver in the RDMA subsystem. I
        managed to finish that review. However, because it goes against part
        of Dave's net pull, and a part that was accepted a day or two after
        the merge window opened, to apply cleanly it has to be applied to
        either the tip of Dave's net branch, or as I did in this case, I just
        applied it to your master after you had taken Dave's pull request."
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma:
        qedr: Add events support and register IB device
        qedr: Add GSI support
        qedr: Add LL2 RoCE interface
        qedr: Add support for data path
        qedr: Add support for memory registeration verbs
        qedr: Add support for QP verbs
        qedr: Add support for PD,PKEY and CQ verbs
        qedr: Add support for user context verbs
        qedr: Add support for RoCE HW init
        qedr: Add RoCE driver framework
      ac9ef8cd
    • Linus Torvalds's avatar
      Merge tag 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma · b292fb80
      Linus Torvalds authored
      Pull more rdma updates from Doug Ledford:
       "This merge window was the first where Huawei had to try and coordinate
        their patches between their net driver and their new roce driver
        (similar to mlx4 and mlx5).
      
        They didn't do horribly, but there were some issues (and we knew that
        because they simply didn't know what to do in the beginning). As a
        result, I had a set of patches that depended on some patches that
        normally would have come to you via Dave's tree. Those patches have
        been on netdev@ for a while, so I got Dave to give me his approval to
        send them to you. As such, the other 29 patches I had behind them are
        also now ready to go.
      
        This catches the hns and hns-roce drivers up to current, and for
        future patches we are working with them to get them up to speed on how
        to do joint driver development so that they don't have these sorts of
        cross tree dependency issues again. BTW, Dave gave me permission to
        add his Acked-by: to the patches against the net tree, but I've had
        this branch through 0day (but not linux-next since it was off by
        itself) and I didn't want to rebase the series just to add Dave's ack
        for the 8 patches in the net area.
      
        Updates to the hns drivers:
      
         - Small patch set for hns net driver that the roce patches depend on
      
         - Various fixes to the hns-roce driver
      
         - Add connection manager support to the hns-roce driver"
      
      * tag 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma: (36 commits)
        IB/hns: Fix for removal of redundant code
        IB/hns: Delete the redundant lines in hns_roce_v1_m_qp()
        IB/hns: Fix the bug when platform_get_resource() exec fail
        IB/hns: Update the rq head when modify qp state
        IB/hns: Cq has not been freed
        IB/hns: Validate mtu when modified qp
        IB/hns: Some items of qpc need to take user param
        IB/hns: The Ack timeout need a lower limit value
        IB/hns: Return bad wr while post send failed
        IB/hns: Fix bug of memory leakage for registering user mr
        IB/hns: Modify the init of iboe lock
        IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn
        IB/hns: Delete the sqp_start from the structure hns_roce_caps
        IB/hns: Fix bug of clear hem
        IB/hns: Remove unused parameter named qp_type
        IB/hns: Simplify function of pd alloc and qp alloc
        IB/hns: Fix bug of using uninit refcount and free
        IB/hns: Remove parameters of resize cq
        IB/hns: Remove unused parameters in some functions
        IB/hns: Add node_guid definition to the bindings document
        ...
      b292fb80
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 689f891c
      Linus Torvalds authored
      Pull some more input subsystem updates from Dmitry Torokhov:
       "An update to the ALPS driver to support the V8 protocol with
        touchstick, a change for i8042 to skip selftest on many Asus laptops
        which helps to keep their touchpads working after resume, and a couple
        other driver fixes"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: i8042 - skip selftest on ASUS laptops
        Input: melfas_mip4 - add ic_name sysfs attribute
        Input: melfas_mip4 - add maintainer information
        Input: melfas_mip4 - add devicetree binding documentations
        Input: elantech - add Fujitsu Lifebook E556 to force crc_enabled
        Input: synaptics-rmi4 - fix error handling in I2C transport driver
        Input: synaptics-rmi4 - fix error handling in SPI transport driver
        Input: ALPS - add V8 protocol documentation
        Input: ALPS - set DualPoint flag for 74 03 28 devices
        Input: ALPS - allow touchsticks to report pressure
        Input: ALPS - handle 0-pressure 1F events
        Input: ALPS - add touchstick support for SS5 hardware
        Input: elantech - force needed quirks on Fujitsu H760
        Input: elantech - fix Lenovo version typo
      689f891c