10 Nov, 2015

3 commits

  • Add explicit filtering for DAX mappings to FDPIC ELF coredump. This is
    useful because DAX mappings have the potential to be very large.

    This patch has only been compile tested.

    Signed-off-by: Ross Zwisler
    Acked-by: Jeff Moyer
    Signed-off-by: Dan Williams

    Ross Zwisler
     
  • Add two new flags to the existing coredump mechanism for ELF files to
    allow us to explicitly filter DAX mappings. This is desirable because
    DAX mappings, like hugetlb mappings, have the potential to be very
    large.

    Update the coredump_filter documentation in
    Documentation/filesystems/proc.txt so that it addresses the new DAX
    coredump flags. Also update the documented default value of
    coredump_filter to be consistent with the core(5) man page. The
    documentation being updated talks about bit 4, Dump ELF headers, which
    is enabled if CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is turned on in the
    kernel config. This kernel config option defaults to "y" if both ELF
    binaries and coredump are enabled.

    Signed-off-by: Ross Zwisler
    Acked-by: Jeff Moyer
    Signed-off-by: Dan Williams

    Ross Zwisler
     
  • Dan Williams
     

03 Nov, 2015

2 commits

  • Add a .notify callback to the acpi_nfit_driver that gets called on a
    hotplug event. From this, evaluate the _FIT ACPI method which returns
    the updated NFIT with handles for the hot-plugged NVDIMM.

    Iterate over the new NFIT, and add any new tables found, and
    register/enable the corresponding regions.

    In the nfit test framework, after normal initialization, update the NFIT
    with a new hot-plugged NVDIMM, and directly call into the driver to
    update its view of the available regions.

    Cc: Dan Williams
    Cc: Rafael J. Wysocki
    Cc: Toshi Kani
    Cc: Elliott, Robert
    Cc: Jeff Moyer
    Cc:
    Cc:
    Signed-off-by: Vishal Verma
    Signed-off-by: Dan Williams

    Vishal Verma
     
  • If acpi_nfit_init is called (such as from nfit_test), with an nfit table
    that has more memory allocated than it needs (and a similarly large
    'size' field, add_tables would happily keep adding null SPA Range tables
    filling up all available memory.

    Make it friendlier by breaking out if a 0-length header is found in any
    of the tables.

    Cc: Dan Williams
    Cc: Rafael J. Wysocki
    Cc:
    Cc:
    Signed-off-by: Vishal Verma
    Signed-off-by: Dan Williams

    Vishal Verma
     

19 Oct, 2015

2 commits

  • Linus Torvalds
     
  • Pull i2c fixes from Wolfram Sang:
    "Here are some bugfixes for the I2C subsystem.

    Kieran found a flaw in the recently renewed wake irq handling. Mika
    handled a user bug report where the ACPI info turned out to be
    unusable. I updated MAINTAINERS so that such bug reports will sooner
    get to the right people. Geert pointed me to a problem of some i2c
    drivers regarding PM which I fixed"

    * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
    i2c: designware: Do not use parameters from ACPI on Dell Inspiron 7348
    MAINTAINERS: add maintainers for Synopsis Designware I2C drivers
    i2c: designware-platdrv: enable RuntimePM before registering to the core
    i2c: s3c2410: enable RuntimePM before registering to the core
    i2c: rcar: enable RuntimePM before registering to the core
    i2c: return probe deferred status on dev_pm_domain_attach

    Linus Torvalds
     

18 Oct, 2015

1 commit

  • ACPI SSCN/FMCN methods were originally added because then the platform can
    provide the most accurate HCNT/LCNT values to the driver. However, this
    seems not to be true for Dell Inspiron 7348 where using these causes the
    touchpad to fail in boot:

    i2c_hid i2c-DLL0675:00: failed to retrieve report from device.
    i2c_designware INT3433:00: i2c_dw_handle_tx_abort: lost arbitration
    i2c_hid i2c-DLL0675:00: failed to retrieve report from device.
    i2c_designware INT3433:00: controller timed out

    The values received from ACPI are (in fast mode):

    HCNT: 72
    LCNT: 160

    this translates to following timings (input clock is 100MHz on Broadwell):

    tHIGH: 720 ns (spec min 600 ns)
    tLOW: 1600 ns (spec min 1300 ns)
    Bus period: 2920 ns (assuming 300 ns tf and tr)
    Bus speed: 342.5 kHz

    Both tHIGH and tLOW are within the I2C specification.

    The calculated values when ACPI parameters are not used are (in fast mode):

    HCNT: 87
    LCNT: 159

    which translates to:

    tHIGH: 870 ns (spec min 600 ns)
    tLOW: 1590 ns (spec min 1300 ns)
    Bus period 3060 ns (assuming 300 ns tf and tr)
    Bus speed 326.8 kHz

    These values are also within the I2C specification.

    Since both ACPI and calculated values meet the I2C specification timing
    requirements it is hard to say why the touchpad does not function properly
    with the ACPI values except that the bus speed is higher in this case (but
    still well below the max 400kHz).

    Solve this by adding DMI quirk to the driver that disables using ACPI
    parameters on this particulare machine.

    Reported-by: Pavel Roskin
    Signed-off-by: Mika Westerberg
    Tested-by: Pavel Roskin
    Signed-off-by: Wolfram Sang
    Cc: stable@kernel.org

    Mika Westerberg
     

17 Oct, 2015

16 commits

  • ….kernel.org/pub/scm/linux/kernel/git/tip/tip

    Pull irq/timer fixes from Thomas Gleixner:
    "irq: a fix for the new hierarchical MSI interrupt handling which
    unbreaks PCI=n configurations.

    timers: a fix for the new hrtimer clock offset update mechanism to
    ensure that the boot time offset is respected"

    * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    genirq/msi: Do not use pci_msi_[un]mask_irq as default methods

    * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    timekeeping: Increment clock_was_set_seq in timekeeping_init()

    Linus Torvalds
     
  • Pull input fixes from Dmitry Torokhov:
    "Just two small fixups to ads7846 touchscreen controller driver and
    Cypress touchpad driver"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: cyapa - fix the copy paste error on electrodes_rx value
    Input: ads7846 - correct the value got from SPI

    Linus Torvalds
     
  • Pull clk fix from Stephen Boyd:
    "Just one revert for Armada XP devices: the conversion to
    of_clk_get_parent_name() wasn't a direct translation, so we
    revert back to of_clk_get() + __clk_get_name().

    We could make of_clk_get_parent_name() more robust, but that
    may have unintended side-effects, so we'll do that in the
    next version"

    * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
    Partially revert "clk: mvebu: Convert to clk_hw based provider APIs"

    Linus Torvalds
     
  • Pull device mapper fixes from Mike Snitzer:
    "Two DM target error path cleanup fixes (one for stable in DM thinp and
    one for a v4.3-rc5 thinko in DM snapshot)"

    * tag 'dm-4.3-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
    dm thin: fix missing pool reference count decrement in pool_ctr error path
    dm snapshot persistent: fix missing cleanup in persistent_ctr error path

    Linus Torvalds
     
  • Pull btrfs fixes from Chris Mason:
    "I have two more bug fixes for btrfs.

    My commit fixes a bug we hit last week at FB, a combination of lots of
    hard links and an admin command to resolve inode numbers.

    Dave is adding checks to make sure balance on current kernels ignores
    filters it doesn't understand. The penalty for being wrong is just
    doing more work (not crashing etc), but it's a good fix"

    * 'for-linus-4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs:
    btrfs: fix use after free iterating extrefs
    btrfs: check unsupported filters in balance arguments

    Linus Torvalds
     
  • Pull Ceph fixes from Sage Weil:
    "Just two small items from Ilya:

    The first patch fixes the RBD readahead to grab full objects. The
    second fixes the write ops to prevent undue promotion when a cache
    tier is configured on the server side"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client:
    rbd: use writefull op for object size writes
    rbd: set max_sectors explicitly

    Linus Torvalds
     
  • Pull power management and ACPI fixes from Rafael Wysocki:
    "These fix two recent regressions (ACPICA, the generic power domains
    framework) and one crash that may happen on specific hardware
    supported since 4.1 (intel_pstate).

    Specifics:

    - Fix a regression introduced by a recent ACPICA cleanup that
    uncovered a latent bug (Lv Zheng).

    - Fix a recent regression in the generic power domains framework that
    may cause it to violate PM QoS latency constraints in some cases
    (Ulf Hansson).

    - Fix an intel_pstate driver crash on the Knights Landing chips that
    do not update the MPERF counter as often as expected by the driver
    which may result in a divide by 0 (Srinivas Pandruvada)"

    * tag 'pm+acpi-4.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    cpufreq: intel_pstate: Fix divide by zero on Knights Landing (KNL)
    ACPICA: Tables: Fix FADT dependency regression
    PM / Domains: Fix validation of latency constraints in genpd governor

    Linus Torvalds
     
  • Pull drm fixes from Dave Airlie:
    "Nothing too crazy or exciting:

    - two MAINTAINERS entries that I didn't see the point in delaying.
    - one drm mst fix to stop sending uninitialised data to monitors
    - two amdgpu fixes
    - one radeon mst tiling fix
    - one vmwgfx regression fix
    - one virtio warning fix.

    I have found one locking problem that needs a bit of reorg to fix, but
    I'm not sure it's worth putting in -fixes as I don't think we've seen
    it hit in the real world ever, I just found it using the virtio-gpu
    driver when working on it. I'll possibly send it next week once I've
    time to discuss with Daniel"

    * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
    drm/virtio: use %llu format string form atomic64_t
    MAINTAINERS: Add myself as maintainer for the gma500 driver
    MAINTAINERS: add a maintainer for the atmel-hlcdc DRM driver
    drm/amdgpu: Keep the pflip interrupts always enabled v7
    drm/amdgpu: adjust default dispclk (v2)
    drm/dp/mst: make mst i2c transfer code more robust.
    drm/radeon: attach tile property to mst connector
    drm/vmwgfx: Fix kernel NULL pointer dereference on older hardware

    Linus Torvalds
     
  • Pull powerpc fixes from Michael Ellerman:
    - Re-enable CONFIG_SCSI_DH in our defconfigs
    - Remove unused os_area_db_id_video_mode
    - cxl: fix leak of IRQ names in cxl_free_afu_irqs() from Andrew
    - cxl: fix leak of ctx->irq_bitmap when releasing context via kernel API from Andrew
    - cxl: fix leak of ctx->mapping when releasing kernel API contexts from Andrew
    - cxl: Workaround malformed pcie packets on some cards from Philippe
    - cxl: Fix number of allocated pages in SPA from Christophe Lombard
    - Fix checkstop in native_hpte_clear() with lockdep from Cyril
    - Panic on unhandled Machine Check on powernv from Daniel
    - selftests/powerpc: Fix build failure of load_unaligned_zeropad test

    * tag 'powerpc-4.3-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
    selftests/powerpc: Fix build failure of load_unaligned_zeropad test
    powerpc/powernv: Panic on unhandled Machine Check
    powerpc: Fix checkstop in native_hpte_clear() with lockdep
    cxl: Fix number of allocated pages in SPA
    cxl: Workaround malformed pcie packets on some cards
    cxl: fix leak of ctx->mapping when releasing kernel API contexts
    cxl: fix leak of ctx->irq_bitmap when releasing context via kernel API
    cxl: fix leak of IRQ names in cxl_free_afu_irqs()
    powerpc/ps3: Remove unused os_area_db_id_video_mode
    powerpc/configs: Re-enable CONFIG_SCSI_DH

    Linus Torvalds
     
  • Merge misc fixes from Andrew Morton:
    "6 fixes"

    * emailed patches from Andrew Morton :
    sh: add copy_user_page() alias for __copy_user()
    lib/Kconfig: ZLIB_DEFLATE must select BITREVERSE
    mm, dax: fix DAX deadlocks
    memcg: convert threshold to bytes
    builddeb: remove debian/files before build
    mm, fs: obey gfp_mapping for add_to_page_cache()

    Linus Torvalds
     
  • copy_user_page() is needed by DAX. Without this we get a compile error
    for DAX on SH:

    fs/dax.c:280:2: error: implicit declaration of function `copy_user_page' [-Werror=implicit-function-declaration]
    copy_user_page(vto, (void __force *)vfrom, vaddr, to);
    ^

    This was done with a random config that happened to include DAX support.

    This patch has only been compile tested.

    Signed-off-by: Ross Zwisler
    Reported-by: Geert Uytterhoeven
    Cc: Andy Shevchenko
    Cc: Matthew Wilcox
    Cc: Matt Fleming
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ross Zwisler
     
  • lib/built-in.o: In function `__bitrev32':
    deftree.c:(.text+0x1e799): undefined reference to `byte_rev_table'
    deftree.c:(.text+0x1e7a0): undefined reference to `byte_rev_table'
    deftree.c:(.text+0x1e7b4): undefined reference to `byte_rev_table'
    deftree.c:(.text+0x1e7c1): undefined reference to `byte_rev_table'

    Anything which uses bitrevX() has to select BITREVERSE, to grab
    lib/bitrev.o.

    Reported-by: Jim Davis
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • The following two locking commits in the DAX code:

    commit 843172978bb9 ("dax: fix race between simultaneous faults")
    commit 46c043ede471 ("mm: take i_mmap_lock in unmap_mapping_range() for DAX")

    introduced a number of deadlocks and other issues which need to be fixed
    for the v4.3 kernel. The list of issues in DAX after these commits
    (some newly introduced by the commits, some preexisting) can be found
    here:

    https://lkml.org/lkml/2015/9/25/602 (Subject: "Re: [PATCH] dax: fix deadlock in __dax_fault").

    This undoes most of the changes introduced by those two commits,
    essentially returning us to the DAX locking scheme that was used in
    v4.2.

    Signed-off-by: Ross Zwisler
    Cc: Alexander Viro
    Cc: Dan Williams
    Tested-by: Dave Chinner
    Cc: Jan Kara
    Cc: "Kirill A. Shutemov"
    Cc: Matthew Wilcox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ross Zwisler
     
  • page_counter_memparse() returns pages for the threshold, while
    mem_cgroup_usage() returns bytes for memory usage. Convert the
    threshold to bytes.

    Fixes: 3e32cb2e0a12b6915 ("memcg: rename cgroup_event to mem_cgroup_event").
    Signed-off-by: Shaohua Li
    Cc: Johannes Weiner
    Acked-by: Michal Hocko
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Shaohua Li
     
  • Commit 3716001bcb7f ("deb-pkg: add source package") added the ability to
    create a debian changelog file. This exposed that previously the
    builddeb script hasn't cleared debian/files between builds.

    As debian/files keeps accumulating entries, the changes file will end up
    growing indefinelty. With outdated entries in debian/files, builddeb
    script will exit with failure. This regression impacts those who use
    "make deb-pkg" target to build kernel into a .deb package and never use
    "make mrproper" or other means to clean kernel tree from generated
    directories.

    To fix the regression, remove debian/files before starting build and in
    the generated clean rule.

    Fixes: 3716001bcb7f ("deb-pkg: add source package")
    Signed-off-by: Riku Voipio
    Reported-by: Doug Smythies
    Tested-by: Doug Smythies
    Tested-by: Kalle Valo
    Acked-by: Ben Hutchings
    Cc: Michal Marek
    Cc: maximilian attems
    Cc: Chris J Arges
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Riku Voipio
     
  • Commit 6afdb859b710 ("mm: do not ignore mapping_gfp_mask in page cache
    allocation paths") has caught some users of hardcoded GFP_KERNEL used in
    the page cache allocation paths. This, however, wasn't complete and
    there were others which went unnoticed.

    Dave Chinner has reported the following deadlock for xfs on loop device:
    : With the recent merge of the loop device changes, I'm now seeing
    : XFS deadlock on my single CPU, 1GB RAM VM running xfs/073.
    :
    : The deadlocked is as follows:
    :
    : kloopd1: loop_queue_read_work
    : xfs_file_iter_read
    : lock XFS inode XFS_IOLOCK_SHARED (on image file)
    : page cache read (GFP_KERNEL)
    : radix tree alloc
    : memory reclaim
    : reclaim XFS inodes
    : log force to unpin inodes
    :
    :
    : xfs-cil/loop1:
    : xlog_cil_push
    : xlog_write
    :
    : xlog_state_get_iclog_space()
    :
    :
    :
    : kloopd1: loop_queue_write_work
    : xfs_file_write_iter
    : lock XFS inode XFS_IOLOCK_EXCL (on image file)
    :
    :
    : i.e. the kloopd, with it's split read and write work queues, has
    : introduced a dependency through memory reclaim. i.e. that writes
    : need to be able to progress for reads make progress.
    :
    : The problem, fundamentally, is that mpage_readpages() does a
    : GFP_KERNEL allocation, rather than paying attention to the inode's
    : mapping gfp mask, which is set to GFP_NOFS.
    :
    : The didn't used to happen, because the loop device used to issue
    : reads through the splice path and that does:
    :
    : error = add_to_page_cache_lru(page, mapping, index,
    : GFP_KERNEL & mapping_gfp_mask(mapping));

    This has changed by commit aa4d86163e4 ("block: loop: switch to VFS
    ITER_BVEC").

    This patch changes mpage_readpage{s} to follow gfp mask set for the
    mapping. There are, however, other places which are doing basically the
    same.

    lustre:ll_dir_filler is doing GFP_KERNEL from the function which
    apparently uses GFP_NOFS for other allocations so let's make this
    consistent.

    cifs:readpages_get_pages is called from cifs_readpages and
    __cifs_readpages_from_fscache called from the same path obeys mapping
    gfp.

    ramfs_nommu_expand_for_mapping is hardcoding GFP_KERNEL as well
    regardless it uses mapping_gfp_mask for the page allocation.

    ext4_mpage_readpages is the called from the page cache allocation path
    same as read_pages and read_cache_pages

    As I've noticed in my previous post I cannot say I would be happy about
    sprinkling mapping_gfp_mask all over the place and it sounds like we
    should drop gfp_mask argument altogether and use it internally in
    __add_to_page_cache_locked that would require all the filesystems to use
    mapping gfp consistently which I am not sure is the case here. From a
    quick glance it seems that some file system use it all the time while
    others are selective.

    Signed-off-by: Michal Hocko
    Reported-by: Dave Chinner
    Cc: "Theodore Ts'o"
    Cc: Ming Lei
    Cc: Andreas Dilger
    Cc: Oleg Drokin
    Cc: Al Viro
    Cc: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michal Hocko
     

16 Oct, 2015

16 commits

  • This covers only the simplest case - an object size sized write, but
    it's still useful in tiering setups when EC is used for the base tier
    as writefull op can be proxied, saving an object promotion.

    Even though updating ceph_osdc_new_request() to allow writefull should
    just be a matter of fixing an assert, I didn't do it because its only
    user is cephfs. All other sites were updated.

    Reflects ceph.git commit 7bfb7f9025a8ee0d2305f49bf0336d2424da5b5b.

    Signed-off-by: Ilya Dryomov
    Reviewed-by: Alex Elder

    Ilya Dryomov
     
  • Commit 30e2bc08b2bb ("Revert "block: remove artifical max_hw_sectors
    cap"") restored a clamp on max_sectors. It's now 2560 sectors instead
    of 1024, but it's not good enough: we set max_hw_sectors to rbd object
    size because we don't want object sized I/Os to be split, and the
    default object size is 4M.

    So, set max_sectors to max_hw_sectors in rbd at queue init time.

    Signed-off-by: Ilya Dryomov
    Reviewed-by: Alex Elder

    Ilya Dryomov
     
  • timekeeping_init() can set the wall time offset, so we need to
    increment the clock_was_set_seq counter. That way hrtimers will pick
    up the early offset immediately. Otherwise on a machine which does not
    set wall time later in the boot process the hrtimer offset is stale at
    0 and wall time timers are going to expire with a delay of 45 years.

    Fixes: 868a3e915f7f "hrtimer: Make offset update smarter"
    Reported-and-tested-by: Heiko Carstens
    Signed-off-by: Thomas Gleixner
    Cc: Stefan Liebler
    Cc: Peter Zijlstra
    Cc: John Stultz

    Thomas Gleixner
     
  • * acpica:
    ACPICA: Tables: Fix FADT dependency regression

    * pm-domains:
    PM / Domains: Fix validation of latency constraints in genpd governor

    * pm-cpufreq:
    cpufreq: intel_pstate: Fix divide by zero on Knights Landing (KNL)

    Rafael J. Wysocki
     
  • When we create a generic MSI domain, that MSI_FLAG_USE_DEF_CHIP_OPS
    is set, and that any of .mask or .unmask are NULL in the irq_chip
    structure, we set them to pci_msi_[un]mask_irq.

    This is a bad idea for at least two reasons:
    - PCI_MSI might not be selected, kernel fails to build (yes, this is
    legitimate, at least on arm64!)
    - This may not be a PCI/MSI domain at all (platform MSI, for example)

    Either way, this looks wrong. Move the overriding of mask/unmask to
    the PCI counterpart, and panic is any of these two methods is not
    set in the core code (they really should be present).

    Signed-off-by: Marc Zyngier
    Cc: Jiang Liu
    Cc: Bjorn Helgaas
    Link: http://lkml.kernel.org/r/1444760085-27857-1-git-send-email-marc.zyngier@arm.com
    Signed-off-by: Thomas Gleixner

    Marc Zyngier
     
  • The virtgpu driver prints the last_seq variable using the %ld or
    %lu format string, which does not work correctly on all architectures
    and causes this compiler warning on ARM:

    drivers/gpu/drm/virtio/virtgpu_fence.c: In function 'virtio_timeline_value_str':
    drivers/gpu/drm/virtio/virtgpu_fence.c:64:22: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'long long int' [-Wformat=]
    snprintf(str, size, "%lu", atomic64_read(&fence->drv->last_seq));
    ^
    drivers/gpu/drm/virtio/virtgpu_debugfs.c: In function 'virtio_gpu_debugfs_irq_info':
    drivers/gpu/drm/virtio/virtgpu_debugfs.c:37:16: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat=]
    seq_printf(m, "fence %ld %lld\n",
    ^

    In order to avoid the warnings, this changes the format strings to %llu
    and adds a cast to u64, which makes it work the same way everywhere.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Dave Airlie

    Arnd Bergmann
     
  • Signed-off-by: Patrik Jakobsson
    Signed-off-by: Dave Airlie

    Patrik Jakobsson
     
  • Add myself as the maintainer of the atmel-hlcdc DRM driver.

    Signed-off-by: Boris Brezillon
    Acked-by: Nicolas Ferre
    Signed-off-by: Dave Airlie

    Boris BREZILLON
     
  • Just two fixes for amdgpu:
    - fix pageflip interrupt issue
    - fix display clock handling on certain fiji boards

    * 'drm-fixes-4.3' of git://people.freedesktop.org/~agd5f/linux:
    drm/amdgpu: Keep the pflip interrupts always enabled v7
    drm/amdgpu: adjust default dispclk (v2)

    Dave Airlie
     
  • Pull request of 2015-10-14

    * tag 'vmwgfx-fixes-4.3-151014' of git://people.freedesktop.org/~thomash/linux:
    drm/vmwgfx: Fix kernel NULL pointer dereference on older hardware

    Dave Airlie
     
  • Pull arm64 fixes from Will Deacon:
    "Here are a few more arm64 fixes for 4.3. Again, nothing too
    significant, but worth having nonetheless. The MINSIGSTKSZ update is
    a bit grotty, but the value we currently have is wrong (too small), so
    anybody using that will have issues already. It has Arnd's ack for
    the asm-generic change.

    Summary:

    - Fix module CFLAGS setting in workaround for erratum #843419
    - Update MINSIGSTKSZ and SIGSTKSZ to match glibc
    - Wire up some new compat syscalls"

    * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
    arm64: compat: wire up new syscalls
    arm64: Fix MINSIGSTKSZ and SIGSTKSZ
    arm64: errata: use KBUILD_CFLAGS_MODULE for erratum #843419

    Linus Torvalds
     
  • Pull pinctrl fixes from Linus Walleij:
    "Here are some overdue (what can I say, I was on a short vacation)
    driver fixes for the pin control subsystem:

    - Allwinner sun5i A10s had a faulty mapping

    - Freescale i.MX25 had some bad arithmetics

    - Uniphier PH1-sLD8 missed some input enable settings"

    * tag 'pinctrl-v4.3-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
    pinctrl: uniphier: fix input enable settings for PH1-sLD8
    pinctrl: imx25: ensure that a pin with id i is at position i in the info array
    pinctrl: sun5i: Fix a10s pwm1 pinctrl mapping

    Linus Torvalds
     
  • This is a workaround for KNL platform, where in some cases MPERF counter
    will not have updated value before next read of MSR_IA32_MPERF. In this
    case divide by zero will occur. This change ignores current sample for
    busy calculation in this case.

    Fixes: b34ef932d79a (intel_pstate: Knights Landing support)
    Signed-off-by: Srinivas Pandruvada
    Acked-by: Kristen Carlson Accardi
    Cc: 4.1+ # 4.1+
    Signed-off-by: Rafael J. Wysocki

    Srinivas Pandruvada
     
  • Pull rdma updates from Doug Ledford:
    "We have four batched up patches for the current rc kernel.

    Two of them are small fixes that are obvious.

    One of them is larger than I would like for a late stage rc pull, but
    we found an issue in the namespace lookup code related to RoCE and
    this works around the issue for now (we allow a lookup with a
    namespace to succeed on RoCE since RoCE namespaces aren't implemented
    yet). This will go away in 4.4 when we put in support for namespaces
    in RoCE devices.

    The last one is large in terms of lines, but is all legal and no
    functional changes. Cisco needed to update their files to be more
    specific about their license. They had intended the files to be dual
    licensed as GPL/BSD all along, and specified that in their module
    license tag, but their file headers were not up to par. They
    contacted all of the contributors to get agreement and then submitted
    a patch to update the license headers in the files.

    Summary:

    - Work around connection namespace lookup bug related to RoCE

    - Change usnic license to Dual GPL/BSD (was intended to be that way
    all along, but wasn't clear, permission from contributors was
    chased down)

    - Fix an issue between NFSoRDMA and mlx5 that could cause an oops

    - Fix leak of sendonly multicast groups"

    * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma:
    IB/ipoib: For sendonly join free the multicast group on leave
    IB/cma: Accept connection without a valid netdev on RoCE
    xprtrdma: Don't require LOCAL_DMA_LKEY support for fastreg
    usnic: add missing clauses to BSD license

    Linus Torvalds
     
  • Pull ext4 Kconfig description fixup from Jan Kara:
    "A small fixup in description of EXT4_USE_FOR_EXT2 config option"

    * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
    ext4: Update EXT4_USE_FOR_EXT2 description

    Linus Torvalds
     
  • The vmstat code uses "schedule_delayed_work_on()" to do the initial
    startup of the delayed work on the right CPU, but then once it was
    started it would use the non-cpu-specific "schedule_delayed_work()" to
    re-schedule it on that CPU.

    That just happened to schedule it on the same CPU historically (well, in
    almost all situations), but the code _requires_ this work to be per-cpu,
    and should say so explicitly rather than depend on the non-cpu-specific
    scheduling to schedule on the current CPU.

    The timer code is being changed to not be as single-minded in always
    running things on the calling CPU.

    See also commit 874bbfe600a6 ("workqueue: make sure delayed work run in
    local cpu") that for now maintains the local CPU guarantees just in case
    there are other broken users that depended on the accidental behavior.

    Cc: Christoph Lameter
    Cc: Tejun Heo
    Signed-off-by: Linus Torvalds

    Linus Torvalds