1. 23 Dec, 2016 3 commits
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma · 29691591
      Linus Torvalds authored
      Pull rdma fixes from Doug Ledford:
       "First round of -rc fixes for 4.10 kernel:
      
         - a series of qedr fixes
         - a series of rxe fixes
         - one i40iw fix
         - one cma fix
         - one cxgb4 fix"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma:
        IB/rxe: Don't check for null ptr in send()
        IB/rxe: Drop future atomic/read packets rather than retrying
        IB/rxe: Use BTH_PSN_MASK when ACKing duplicate sends
        qedr: Always notify the verb consumer of flushed CQEs
        qedr: clear the vendor error field in the work completion
        qedr: post_send/recv according to QP state
        qedr: ignore inline flag in read verbs
        qedr: modify QP state to error when destroying it
        qedr: return correct value on modify qp
        qedr: return error if destroy CQ failed
        qedr: configure the number of CQEs on CQ creation
        i40iw: Set 128B as the only supported RQ WQE size
        IB/cma: Fix a race condition in iboe_addr_get_sgid()
        IB/rxe: Fix a memory leak in rxe_qp_cleanup()
        iw_cxgb4: set correct FetchBurstMax for QPs
      29691591
    • Linus Torvalds's avatar
      Merge tag 'scsi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · f290cbac
      Linus Torvalds authored
      Pull late SCSI updates from James Bottomley:
       "This is mostly stuff which missed the initial pull.
      
        There's a new driver: qedi, and some ufs, ibmvscsis and ncr5380
        updates plus some assorted driver fixes and also a fix for the bug
        where if a device goes into a blocked state between configuration and
        sysfs device add (which can be a long time under async probing) it
        would become permanently blocked"
      
      * tag 'scsi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (30 commits)
        scsi: avoid a permanent stop of the scsi device's request queue
        scsi: mpt3sas: Recognize and act on iopriority info
        scsi: qla2xxx: Fix Target mode handling with Multiqueue changes.
        scsi: qla2xxx: Add Block Multi Queue functionality.
        scsi: qla2xxx: Add multiple queue pair functionality.
        scsi: qla2xxx: Utilize pci_alloc_irq_vectors/pci_free_irq_vectors calls.
        scsi: qla2xxx: Only allow operational MBX to proceed during RESET.
        scsi: hpsa: remove memory allocate failure message
        scsi: Update 3ware driver email addresses
        scsi: zfcp: fix rport unblock race with LUN recovery
        scsi: zfcp: do not trace pure benign residual HBA responses at default level
        scsi: zfcp: fix use-after-"free" in FC ingress path after TMF
        scsi: libcxgbi: return error if interface is not up
        scsi: cxgb4i: libcxgbi: add missing module_put()
        scsi: cxgb4i: libcxgbi: cxgb4: add T6 iSCSI completion feature
        scsi: cxgb4i: libcxgbi: add active open cmd for T6 adapters
        scsi: cxgb4i: use cxgb4_tp_smt_idx() to get smt_idx
        scsi: qedi: Add QLogic FastLinQ offload iSCSI driver framework.
        scsi: aacraid: remove wildcard for series 9 controllers
        scsi: ibmvscsi: add write memory barrier to CRQ processing
        ...
      f290cbac
    • Linus Torvalds's avatar
      Merge tag 'arc-4.10-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc · 42e0372c
      Linus Torvalds authored
      Pull more ARC updates from Vineet Gupta:
      
       - Fix for aliasing VIPT dcache in old ARC700 cores
      
       - micro-optimization in ARC700 ProtV handler
      
       - Enable SG_CHAIN  [Vladimir]
      
       - ARC HS38 core intc default to prio 1
      
      * tag 'arc-4.10-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
        ARC: mm: arc700: Don't assume 2 colours for aliasing VIPT dcache
        ARC: mm: No need to save cache version in @cpuinfo
        ARC: enable SG chaining
        ARCv2: intc: default all interrupts to priority 1
        ARCv2: entry: document intr disable in hard isr
        ARC: ARCompact entry: elide re-reading ECR in ProtV handler
      42e0372c
  2. 22 Dec, 2016 24 commits
  3. 21 Dec, 2016 13 commits
    • Gertjan van Wingerde's avatar
      CREDITS: Remove outdated address information · f79f7b1b
      Gertjan van Wingerde authored
      This address hasn't been accurate for several years now.
      
      Simply remove it.
      Signed-off-by: default avatarGertjan van Wingerde <gwingerde@gmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f79f7b1b
    • Linus Torvalds's avatar
      splice: reinstate SIGPIPE/EPIPE handling · 52bce911
      Linus Torvalds authored
      Commit 8924feff ("splice: lift pipe_lock out of splice_to_pipe()")
      caused a regression when there were no more readers left on a pipe that
      was being spliced into: rather than the expected SIGPIPE and -EPIPE
      return value, the writer would end up waiting forever for space to free
      up (which obviously was not going to happen with no readers around).
      
      Fixes: 8924feff ("splice: lift pipe_lock out of splice_to_pipe()")
      Reported-and-tested-by: default avatarAndreas Schwab <schwab@linux-m68k.org>
      Debugged-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Cc: stable@kernel.org   # v4.9
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      52bce911
    • Linus Torvalds's avatar
      Merge branch 'parisc-4.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 0c961c55
      Linus Torvalds authored
      Pull parisc updates from Helge Deller:
      
       - add Kernel address space layout randomization support
      
       - re-enable interrupts earlier now that we have a working IRQ stack
      
       - optimize the timer interrupt function to better cope with missed
         timer irqs
      
       - fix error return code in parisc perf code (by Dan Carpenter)
      
       - fix PAT debug code
      
      * 'parisc-4.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: Optimize timer interrupt function
        parisc: perf: return -EFAULT on error
        parisc: Enhance CPU detection code on PAT machines
        parisc: Re-enable interrupts early
        parisc: Enable KASLR
      0c961c55
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-4.10-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · bc1ecd62
      Linus Torvalds authored
      Pull more NFS client updates from Trond Myklebust:
       "Highlights include:
      
         - further attribute cache improvements to make revalidation more fine
           grained
      
         - NFSv4 locking improvements
      
        Bugfixes:
      
         - nfs4_fl_prepare_ds must be careful about reporting success in files
           layout
      
         - pNFS/flexfiles: Instead of marking a device inactive, remove it
           from the cache"
      
      * tag 'nfs-for-4.10-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
        NFSv4: Retry the DELEGRETURN if the embedded GETATTR is rejected with EACCES
        NFS: Retry the CLOSE if the embedded GETATTR is rejected with EACCES
        NFSv4: Place the GETATTR operation before the CLOSE
        NFSv4: Also ask for attributes when downgrading to a READ-only state
        NFS: Don't abuse NFS_INO_REVAL_FORCED in nfs_post_op_update_inode_locked()
        pNFS: Return RW layouts on OPEN_DOWNGRADE
        NFSv4: Add encode/decode of the layoutreturn op in OPEN_DOWNGRADE
        NFS: Don't disconnect open-owner on NFS4ERR_BAD_SEQID
        NFSv4: ensure __nfs4_find_lock_state returns consistent result.
        NFSv4.1: nfs4_fl_prepare_ds must be careful about reporting success.
        pNFS/flexfiles: delete deviceid, don't mark inactive
        NFS: Clean up nfs_attribute_timeout()
        NFS: Remove unused function nfs_revalidate_inode_rcu()
        NFS: Fix and clean up the access cache validity checking
        NFS: Only look at the change attribute cache state in nfs_weak_revalidate()
        NFS: Clean up cache validity checking
        NFS: Don't revalidate the file on close if we hold a delegation
        NFSv4: Don't discard the attributes returned by asynchronous DELEGRETURN
        NFSv4: Update the attribute cache info in update_changeattr
      bc1ecd62
    • Linus Torvalds's avatar
      Merge branch 'scsi-target-for-v4.10' of... · d5db84a8
      Linus Torvalds authored
      Merge branch 'scsi-target-for-v4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/bvanassche/linux
      
      Pull scsi target cleanups from Bart Van Assche:
       "The changes here are:
      
         - a few small bug fixes for the iSCSI and user space target drivers.
      
         - minimize the target build time by about 30% by rearranging #include
           directives
      
         - fix the second argument passed to percpu_ida_alloc()
      
         - reduce the number of false positive warnings reported by sparse
      
        These patches pass Wu Fengguang's build bot tests and also the
        linux-next tests"
      
      * 'scsi-target-for-v4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/bvanassche/linux:
        iscsi-target: Return error if unable to add network portal
        target: Fix spelling mistake and unwrap multi-line text
        target/iscsi: Fix double free in lio_target_tiqn_addtpg()
        target/user: Fix use-after-free of tcmu_cmds if they are expired
        target: Minimize #include directives
        target/user: Add an #include directive
        cxgbit: Add an #include directive
        ibmvscsi_tgt: Add two #include directives
        sbp-target: Add an #include directive
        qla2xxx: Add an #include directive
        configfs: Minimize #include directives
        usb: gadget: Fix second argument of percpu_ida_alloc()
        sbp-target: Fix second argument of percpu_ida_alloc()
        target/user: Fix a data type in tcmu_queue_cmd()
        target: Use NULL instead of 0 to represent a pointer
      d5db84a8
    • Takashi Iwai's avatar
      Revert "ALSA: usb-audio: Fix race at stopping the stream" · f8114f85
      Takashi Iwai authored
      This reverts commit 16200948.
      
      The commit was intended to cover the race condition, but it introduced
      yet another regression for devices with the implicit feedback, leading
      to a kernel panic due to NULL-dereference in an irq context.
      
      As the race condition that was addressed by the commit is very rare
      and the regression is much worse, let's revert the commit for rc1, and
      fix the issue properly in a later patch.
      
      Fixes: 16200948 ("ALSA: usb-audio: Fix race at stopping the stream")
      Reported-by: default avatarIoan-Adrian Ratiu <adi@adirat.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f8114f85
    • Paul Moore's avatar
      selinux: use the kernel headers when building scripts/selinux · bfc5e3a6
      Paul Moore authored
      Commit 3322d0d6 ("selinux: keep SELinux in sync with new capability
      definitions") added a check on the defined capabilities without
      explicitly including the capability header file which caused problems
      when building genheaders for users of clang/llvm.  Resolve this by
      using the kernel headers when building genheaders, which is arguably
      the right thing to do regardless, and explicitly including the
      kernel's capability.h header file in classmap.h.  We also update the
      mdp build, even though it wasn't causing an error we really should
      be using the headers from the kernel we are building.
      Reported-by: default avatarNicolas Iooss <nicolas.iooss@m4x.org>
      Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
      bfc5e3a6
    • Paul Burton's avatar
      mmc: sd: Meet alignment requirements for raw_ssr DMA · e85baa88
      Paul Burton authored
      The mmc_read_ssr() function results in DMA to the raw_ssr member of
      struct mmc_card, which is not guaranteed to be cache line aligned & thus
      might not meet the requirements set out in Documentation/DMA-API.txt:
      
        Warnings:  Memory coherency operates at a granularity called the cache
        line width.  In order for memory mapped by this API to operate
        correctly, the mapped region must begin exactly on a cache line
        boundary and end exactly on one (to prevent two separately mapped
        regions from sharing a single cache line).  Since the cache line size
        may not be known at compile time, the API will not enforce this
        requirement.  Therefore, it is recommended that driver writers who
        don't take special care to determine the cache line size at run time
        only map virtual regions that begin and end on page boundaries (which
        are guaranteed also to be cache line boundaries).
      
      On some systems where DMA is non-coherent this can lead to us losing
      data that shares cache lines with the raw_ssr array.
      
      Fix this by kmalloc'ing a temporary buffer to perform DMA into. kmalloc
      will ensure the buffer is suitably aligned, allowing the DMA to be
      performed without any loss of data.
      Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
      Fixes: 5275a652 ("mmc: sd: Export SD Status via “ssr” device attribute")
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      e85baa88
    • Arnd Bergmann's avatar
      cpufreq: s3c64xx: remove incorrect __init annotation · adec57c6
      Arnd Bergmann authored
      s3c64xx_cpufreq_config_regulator is incorrectly annotated
      as __init, since the caller is also not init:
      
      WARNING: vmlinux.o(.text+0x92fe1c): Section mismatch in reference from the function s3c64xx_cpufreq_driver_init() to the function .init.text:s3c64xx_cpufreq_config_regulator()
      
      With modern gcc versions, the function gets inline, so we don't
      see the warning, this only happens with gcc-4.6 and older.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      adec57c6
    • Boris Ostrovsky's avatar
      cpufreq: Remove CPU hotplug callbacks only if they were initialized · 2a8fa123
      Boris Ostrovsky authored
      Since CPU hotplug callbacks are requested for CPUHP_AP_ONLINE_DYN state,
      successful callback initialization will result in cpuhp_setup_state()
      returning a positive value. Therefore acpi_cpufreq_online being zero
      indicates that callbacks have not been installed.
      
      This means that acpi_cpufreq_boost_exit() should only remove them if
      acpi_cpufreq_online is positive. Trying to call
      cpuhp_remove_state_nocalls(0) will cause a BUG().
      Signed-off-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
      Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      2a8fa123
    • Boris Ostrovsky's avatar
      CPU/hotplug: Clarify description of __cpuhp_setup_state() return value · 1358e038
      Boris Ostrovsky authored
      When ivoked with CPUHP_AP_ONLINE_DYN state __cpuhp_setup_state()
      is expected to return positive value which is the hotplug state that
      the routine assigns.
      Signed-off-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      1358e038
    • Lv Zheng's avatar
      ACPI / osl: Remove deprecated acpi_get_table_with_size()/early_acpi_os_unmap_memory() · 8d3523fb
      Lv Zheng authored
      Since all users are cleaned up, remove the 2 deprecated APIs due to no
      users.
      As a Linux variable rather than an ACPICA variable, acpi_gbl_permanent_mmap
      is renamed to acpi_permanent_mmap to have a consistent coding style across
      entire Linux ACPI subsystem.
      Signed-off-by: default avatarLv Zheng <lv.zheng@intel.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      8d3523fb
    • Lv Zheng's avatar
      ACPI / osl: Remove acpi_get_table_with_size()/early_acpi_os_unmap_memory() users · 6b11d1d6
      Lv Zheng authored
      This patch removes the users of the deprectated APIs:
       acpi_get_table_with_size()
       early_acpi_os_unmap_memory()
      The following APIs should be used instead of:
       acpi_get_table()
       acpi_put_table()
      
      The deprecated APIs are invented to be a replacement of acpi_get_table()
      during the early stage so that the early mapped pointer will not be stored
      in ACPICA core and thus the late stage acpi_get_table() won't return a
      wrong pointer. The mapping size is returned just because it is required by
      early_acpi_os_unmap_memory() to unmap the pointer during early stage.
      
      But as the mapping size equals to the acpi_table_header.length
      (see acpi_tb_init_table_descriptor() and acpi_tb_validate_table()), when
      such a convenient result is returned, driver code will start to use it
      instead of accessing acpi_table_header to obtain the length.
      
      Thus this patch cleans up the drivers by replacing returned table size with
      acpi_table_header.length, and should be a no-op.
      Reported-by: default avatarDan Williams <dan.j.williams@intel.com>
      Signed-off-by: default avatarLv Zheng <lv.zheng@intel.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      6b11d1d6