17 Aug, 2016

6 commits

  • No one looks at it, only i915/gma500 lvds even bother to fill it
    out. I guess a very old plan was to use this for filtering modes,
    but that's already done within the edid parser.

    v2: Move misplaced hunk to this patch.

    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-18-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • - Shuffle docs from drm-kms.rst into the structure docs where it makes
    sense.
    - Put the remaining bits into a new overview section.

    One thing I've changed is around probing: Old docs says that you
    _must_ use the probe helpers, which isn't correct. Helpers are always
    optional.

    v2: Review from Sean.

    Cc: Sean Paul
    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-17-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • They're only used internally within the dp helpers. Also nuke the
    kerneldoc (we only document the driver interface in the drm shared
    functions). And move the header file from the public include/
    directory to the source files into drm_crtc_helper_internal.h, similar
    to how we already have drm_crtc_internal.h.

    While at it also move drm_fb_helper_modinit since that belongs in
    there, too.

    I noticed this all since I spotted kerneldoc which wasn't pulled into
    the rst templates.

    v2: Update Copyright date.

    Cc: Sean Paul
    Cc: Rafael Antognolli
    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-16-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • There's not much point in kerneldoc if it's not included:
    - It won't show up in the pretty html pages.
    - The comments itself won't get parsed, which means 0day won't pick up
    changes, resulting in stale docs fast.

    Also, uapi really should be core, not helpers, so move drm_blend.c to
    that. That also means that the zpos normilize function loses it's
    helper status (and we might as well call it always). For that,
    EXPORT_SYMBOL. Just spotted while integrating docs and noticing that
    one was missing.

    With sphinx there's really no excuse any more to not build the docs
    and make sure it's all nice!

    $ make DOCBOOKS="" htmldocs

    Cc: Marek Szyprowski
    Cc: Benjamin Gaignard
    Cc: Laurent Pinchart
    Cc: Ville Syrjälä
    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-15-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • Pulls in quite a lot of connector related structures (cmdline mode,
    force/status enums, display info), but I think that all makes perfect
    sense.

    Also had to move a few more core kms object stuff into drm_modeset.h.

    And as a first cleanup remove the kerneldoc for the 2 connector IOCTL
    - DRM core docs are aimed at drivers, no point documenting internal in
    excruciating detail.

    v2: And also pull in all the connector property code.

    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-14-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • It's really part of the core blob interface, and the drm_connector.c
    extraction needs it too.

    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-13-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     

16 Aug, 2016

17 commits

  • Describe the new parameter 'bus_flags' to of_get_drm_display_mode() in
    the kerneldoc comments and add kerneldoc comments to the new function
    drm_bus_flags_from_videomode().

    Signed-off-by: Lothar Waßmann
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471354477-25877-1-git-send-email-LW@KARO-electronics.de

    Lothar Waßmann
     
  • - Move the intro section into a DOC comment, and update it slightly.
    - kernel-doc for struct drm_framebuffer!

    v2:
    - Copypaste fail (Sean).
    - Explain the linear @offsets clearer (Ville).

    Cc: Sean Paul
    Cc: Ville Syrjälä
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-12-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • Also start with drm_modeset.h with the core bits, since we need
    to untangle this mess somehow. That allows us to move the drm_modes.h
    include to the right spot, except for the temporary connector status
    enum. That will get fixed as soon as drm_connector.h exists.

    v2: Rebase.

    v3: Move drm_crtc_force_disable_all back again, that wasn't meant to
    be moved (Sean).

    v4: Rebase.

    Cc: Sean Paul
    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter

    Daniel Vetter
     
  • Accidentally the wrong file. Oops.

    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-10-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • It was added way back together with the dirty_fb ioctl, but neither
    generic xfree86-modesetting nor the vmware driver use it. Everyone is
    supposed to just unconditionally call the dirtyfb when they do
    frontbuffer rendering.

    And since unused uabi is bad uabi (there's reasons we require open
    source userspace for everything) let's nuke this.

    For reference see

    commit 884840aa3ce3214259e69557be5b4ce0d781ffa4
    Author: Jakob Bornecrantz
    Date: Thu Dec 3 23:25:47 2009 +0000

    drm: Add dirty ioctl and property

    Cc: Jakob Bornecrantz
    Cc: Dave Airlie
    Cc: Sinclair Yeh
    Cc: Thomas Hellstrom
    Acked-by: Thomas Hellstrom
    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-9-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • Since the drm_event cleanup work (as prep for fence support) drivers
    don't need to bother themselves any more with this, the drm event core
    takes care of that.

    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-8-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • It's deprecated and only should be used by drivers which still use
    drm_platform_init, not by anyone else.

    And indeed it's entirely unused and can be nuked.

    This required a bit more fudging, but I guess kirin_dc_ops really
    wants to operate on the platform_device, not something else. Also
    bonus points for implementing abstraction, and then storing the vfunc
    in a global variable.

    Cc: Xinliang Liu
    Cc: Xinwei Kong
    Cc: Archit Taneja
    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-7-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • It's deprecated and only should be used by drivers which still use
    drm_platform_init, not by anyone else.

    And indeed it's entirely unused and can be nuked.

    Cc: Lucas Stach
    Cc: Russell King
    Cc: Christian Gmeiner
    Acked-by: Lucas Stach
    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-6-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • - Again adjust headings a bit, and don't mix up the initialization
    sections with other stuff.
    - Remove the doc for output polling, that vfunc is now properly
    documented in the vfunc reference sections.
    - Move the grab-bag with all the core stuff (i.e. drm_crtc.[hc]) to
    the front for a more prominent place.

    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-5-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • - Readjust headings - we lost one level through the extraction into a
    separate .rst file.
    - Merge helper reference sections with the helper documentation - that
    split was just an artifact of the docbook toolchain sucking at too
    deep nesting levels. No such problems with sphinx.
    - Move the cma helpers in with the gem documentation, since they're
    helpers to implement gem using CMA/dma memory as a backend.

    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-4-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • While reviewing docs I spotted that we have a few functions that
    really just don't fit into their containing helper library section.
    Extract them and shovel them all into a new library for random one-off
    aux stuff.

    v2: Remove wrongly added files for real.

    Cc: Sean Paul
    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-3-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • - Move the common vtable stuff to the top
    - Move "Tile Group" to a more appropriate heading level
    - Throw away the old intro for the crtc helpers (it's entirely stale,
    e.g. helpers have become modular years ago), and replace it with a
    general intro about the motivation behind helpers.
    - Reorder helpers to group them together a bit better, and explain
    that grouping in the intro.
    - Make sure the introductory DOC section is always first.

    v2:
    - Remove bogus files accidentally added (Sean).
    - Spelling fixes (Sean).

    Cc: Sean Paul
    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-2-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • These are the leftovers I could only track down using keep_warnings =
    True. For some of them we might want to update our style guide on how
    to reference structures and constants, not sure ...

    Cc: Markus Heiser
    Cc: Jonathan Corbet
    Cc: linux-doc@vger.kernel.org
    Reviewed-by: Sean Paul
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471034937-651-1-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • Since commit 4984979b9b90 ("drm/irq: simplify irq checks in
    drm_wait_vblank"), the drm driver feature flag DRIVER_HAVE_IRQ is only
    required for drivers that have an IRQ handler managed by the DRM core.
    Some drivers, armada, etnaviv, kirin and sti, set this flag without
    .irq_handler setup in drm_driver. These drivers manage IRQ handler
    by themselves and the flag DRIVER_HAVE_IRQ makes no sense there.

    Drop the flag for these drivers to avoid confusion.

    Signed-off-by: Shawn Guo
    Cc: Vincent Abriou
    Cc: Xinliang Liu
    Acked-by: Russell King (for armada and etnaviv)
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471331168-5601-1-git-send-email-shawnguo@kernel.org

    Shawn Guo
     
  • Signed-off-by: Eric Engestrom
    Reviewed-by: Jani Nikula
    Signed-off-by: Daniel Vetter

    Eric Engestrom
     
  • Fix to return error code -ENOMEM from the vmalloc() error handling
    case instead of 0, as done elsewhere in this function.

    Fixes: aec9e12953e7 ("drm/mgag200: Fix error handling paths in fbdev driver")
    Signed-off-by: Wei Yongjun
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1471273431-6753-1-git-send-email-weiyj.lk@gmail.com

    Wei Yongjun
     
  • Rendering operations to the dma-buf are tracked implicitly via the
    reservation_object (dmabuf->resv). This is used to allow poll() to
    wait upon outstanding rendering (or just query the current status of
    rendering). The dma-buf sync ioctl allows userspace to prepare the
    dma-buf for CPU access, which should include waiting upon rendering.
    (Some drivers may need to do more work to ensure that the dma-buf mmap
    is coherent as well as complete.)

    v2: Always wait upon the reservation object implicitly. We choose to do
    it after the native handler in case it can do so more efficiently.

    Testcase: igt/prime_vgem
    Testcase: igt/gem_concurrent_blit # *vgem*
    Signed-off-by: Chris Wilson
    Cc: Sumit Semwal
    Cc: Daniel Vetter
    Cc: Eric Anholt
    Cc: linux-media@vger.kernel.org
    Cc: dri-devel@lists.freedesktop.org
    Cc: linaro-mm-sig@lists.linaro.org
    Cc: linux-kernel@vger.kernel.org
    Reviewed-by: Daniel Vetter
    Signed-off-by: Sumit Semwal
    Link: http://patchwork.freedesktop.org/patch/msgid/1471275738-31994-1-git-send-email-chris@chris-wilson.co.uk

    Chris Wilson
     

15 Aug, 2016

9 commits

  • Signed-off-by: Eric Engestrom
    [danvet: Clarify that the returned pointer must be freed with
    kfree().]
    Signed-off-by: Daniel Vetter

    Eric Engestrom
     
  • - refactor ddi buffer programming a bit (Ville)
    - large-scale renaming to untangle naming in the gem code (Chris)
    - rework vma/active tracking for accurately reaping idle mappings of shared
    objects (Chris)
    - misc dp sst/mst probing corner case fixes (Ville)
    - tons of cleanup&tunings all around in gem
    - lockless (rcu-protected) request lookup, plus use it everywhere for
    non(b)locking waits (Chris)
    - pipe crc debugfs fixes (Rodrigo)
    - random fixes all over

    * tag 'drm-intel-next-2016-08-08' of git://anongit.freedesktop.org/drm-intel: (222 commits)
    drm/i915: Update DRIVER_DATE to 20160808
    drm/i915: fix aliasing_ppgtt leak
    drm/i915: Update comment before i915_spin_request
    drm/i915: Use drm official vblank_no_hw_counter callback.
    drm/i915: Fix copy_to_user usage for pipe_crc
    Revert "drm/i915: Track active streams also for DP SST"
    drm/i915: fix WaInsertDummyPushConstPs
    drm/i915: Assert that the request hasn't been retired
    drm/i915: Repack fence tiling mode and stride into a single integer
    drm/i915: Document and reject invalid tiling modes
    drm/i915: Remove locking for get_tiling
    drm/i915: Remove pinned check from madvise ioctl
    drm/i915: Reduce locking inside swfinish ioctl
    drm/i915: Remove (struct_mutex) locking for busy-ioctl
    drm/i915: Remove (struct_mutex) locking for wait-ioctl
    drm/i915: Do a nonblocking wait first in pread/pwrite
    drm/i915: Remove unused no-shrinker-steal
    drm/i915: Tidy generation of the GTT mmap offset
    drm/i915/shrinker: Wait before acquiring struct_mutex under oom
    drm/i915: Simplify do_idling() (Ironlake vt-d w/a)
    ...

    Dave Airlie
     
  • - more fence destaging and cleanup (Gustavo&Sumit)
    - DRIVER_LEGACY to untangle from DRIVER_MODESET
    - drm_mm refactor (Chris)
    - fbdev-less compile fies
    - clipped plane src/dst rects (Ville)
    - + a few mediatek patches that build on top of that (Bibby+Daniel)
    - small stuff all over really

    * tag 'topic/drm-misc-2016-08-12' of git://anongit.freedesktop.org/drm-intel: (43 commits)
    dma-buf/fence: kerneldoc: remove spurious section header
    dma-buf/fence: kerneldoc: remove unused struct members
    Revert "gpu: drm: omapdrm: dss-of: add missing of_node_put after calling of_parse_phandle"
    drm: Protect fb_defio in drivers with CONFIG_KMS_FBDEV_EMULATION
    drm/radeon|amgpu: Make fbdev emulation optional
    drm/vmwgfx: select CONFIG_FB
    drm: Remove superflous linux/fb.h includes
    drm/fb-helper: Add a dummy remove_conflicting_framebuffers
    dma-buf/sync_file: only enable fence signalling on poll()
    Documentation: add doc for sync_file_get_fence()
    dma-buf/sync_file: add sync_file_get_fence()
    dma-buf/sync_file: refactor fence storage in struct sync_file
    dma-buf/fence-array: add fence_is_array()
    drm/dp_helper: Rate limit timeout errors from drm_dp_i2c_do_msg()
    drm/dp_helper: Print first error received on failure in drm_dp_dpcd_access()
    drm: Add ratelimited versions of the DRM_DEBUG* macros
    drm: Make sure drm_vblank_no_hw_counter isn't abused
    drm/mediatek: Fix mtk_atomic_complete for runtime_pm
    drm/mediatek: plane: Use FB's format's cpp to compute x offset
    drm/mediatek: plane: Merge mtk_plane_enable into mtk_plane_atomic_update
    ...

    Dave Airlie
     
  • imx-drm updates and encoder atomic_mode_set helper callback

    - add pixel clock and DE polarity configuration from device tree
    using display timing bindings for parallel and LVDS output
    - cleanup/remove trivial functions
    - cleanup and fixes in preparation for capture support
    - add atomic_mode_set helper and use it in imx-ldb - this is an
    alternative to the encoder mode_set callback that passes the
    crtc and connector state instead of just the mode. It allows
    drivers to get information from the attached connector without
    having to iterate over all connectors
    - add drm_bridge support to imx-ldb, for bridges attached via LVDS

    * tag 'imx-drm-next-2016-08-12' of git://git.pengutronix.de/git/pza/linux:
    drm/imx-ldb: Add support to drm-bridge
    drm/imx: imx-ldb: use encoder atomic_mode_set callback
    drm/atomic-helper: Add atomic_mode_set helper callback
    drm/imx: Remove imx_drm_handle_vblank()
    gpu: ipu-v3: Add missing IDMAC channel names
    gpu: ipu-v3: rename CSI client device
    gpu: ipu-v3: Fix IRT usage
    gpu: ipu-v3: Fix CSI data format for 16-bit media bus formats
    gpu: ipu-v3: set correct full sensor frame for PAL/NTSC
    gpu: ipu-v3: Add VDI input IDMAC channels
    gpu: ipu-v3: Add ipu_get_num()
    gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize()
    gpu: ipu-cpmem: Add ipu_cpmem_set_uv_offset()
    drm/imx: Remove imx_drm_crtc_id()
    drm/imx: Remove imx_drm_crtc_vblank_get/_put()
    drm/imx: convey the pixelclk-active and de-active flags from DT to the ipu-di driver
    drm: add a helper function to extract 'de-active' and 'pixelclk-active' from DT

    Dave Airlie
     
  • mediatek-drm maintainers and gamma correction

    - add MAINTAINERS entry for mediatek-drm driver
    - add support for AAL and GAMMA engines
    - hook up gamma correction LUT
    - add support for temporal dithering to OD and GAMMA engines

    * tag 'mediatek-drm-next-2016-08-12' of git://git.pengutronix.de/git/pza/linux:
    drm/mediatek: set mt8173 dithering function
    drm/mediatek: Add gamma correction.
    drm/mediatek: Add GAMMA engine basic function
    drm/mediatek: Add AAL engine basic function
    drm: mediatek: add Maintainers entry for Mediatek DRM drivers

    Dave Airlie
     
  • Please pull tilcdc atomic modeset support and some non critical fixes.

    * 'drm-next-tilcdc-atomic' of https://github.com/jsarha/linux: (29 commits)
    drm/tilcdc: Change tilcdc_crtc_page_flip() to tilcdc_crtc_update_fb()
    drm/tilcdc: Remove unnecessary pm_runtime_get() and *_put() calls
    drm/tilcdc: Get rid of legacy dpms mechanism
    drm/tilcdc: Use drm_atomic_helper_resume/suspend()
    drm/tilcdc: Enable and disable interrupts in crtc start() and stop()
    drm/tilcdc: tfp410: Add atomic modeset helpers to connector funcs
    drm/tilcdc: tfp410: Set crtc panel info at init phase
    drm/tilcdc: panel: Add atomic modeset helpers to connector funcs
    drm/tilcdc: panel: Set crtc panel info at init phase
    drm/tilcdc: Remove tilcdc_verify_fb()
    drm/tilcdc: Remove obsolete crtc helper functions
    drm/tilcdc: Set DRIVER_ATOMIC and use atomic crtc helpers
    drm/tilcdc: Add drm_mode_config_reset() call to tilcdc_load()
    drm/tilcdc: Add atomic mode config funcs
    drm/tilcdc: Add tilcdc_crtc_atomic_check()
    drm/tilcdc: Add tilcdc_crtc_mode_set_nofb()
    drm/tilcdc: Initialize dummy primary plane from crtc init
    drm/tilcdc: Add dummy primary plane implementation
    drm/tilcdc: Make tilcdc_crtc_page_flip() work if crtc is not yet on
    drm/tilcdc: Make tilcdc_crtc_page_flip() public
    ...

    Dave Airlie
     
  • Linus Torvalds
     
  • Pull thermal updates from Zhang Rui:

    - Fix a race condition when updating cooling device, which may lead to
    a situation where a thermal governor never updates the cooling
    device. From Michele Di Giorgio.

    - Fix a zero division error when disabling the forced idle injection
    from the intel powerclamp. From Petr Mladek.

    - Add suspend/resume callback for intel_pch_thermal thermal driver.
    From Srinivas Pandruvada.

    - Another two fixes for clocking cooling driver and hwmon sysfs I/F.
    From Michele Di Giorgio and Kuninori Morimoto.

    [ Hmm. That suspend/resume callback for intel_pch_thermal doesn't look
    like a fix, but I'm letting it slide.. - Linus ]

    * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux:
    thermal: clock_cooling: Fix missing mutex_init()
    thermal: hwmon: EXPORT_SYMBOL_GPL for thermal hwmon sysfs
    thermal: fix race condition when updating cooling device
    thermal/powerclamp: Prevent division by zero when counting interval
    thermal: intel_pch_thermal: Add suspend/resume callback

    Linus Torvalds
     
  • Pull m68knommu fix from Greg Ungerer:
    "This contains only a single fix for a register corruption problem on
    certain types of m68k flat format binaries"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
    m68knommu: fix user a5 register being overwritten

    Linus Torvalds
     

14 Aug, 2016

4 commits

  • …/groeck/linux-staging

    Pull h8300 and unicore32 architecture fixes from Guenter Roeck:
    "Two patches to fix h8300 and unicore32 builds.

    unicore32 builds have been broken since v4.6. The fix has been
    available in -next since March of this year.

    h8300 builds have been broken since the last commit window. The fix
    has been available in -next since June of this year"

    * tag 'fixes-for-linus-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
    h8300: Add missing include file to asm/io.h
    unicore32: mm: Add missing parameter to arch_vma_access_permitted

    Linus Torvalds
     
  • Pull arm64 fixes from Catalin Marinas:

    - support for nr_cpus= command line argument (maxcpus was previously
    changed to allow secondary CPUs to be hot-plugged)

    - ARM PMU interrupt handling fix

    - fix potential TLB conflict in the hibernate code

    - improved handling of EL1 instruction aborts (better error reporting)

    - removal of useless jprobes code for stack saving/restoring

    - defconfig updates

    * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
    arm64: defconfig: enable CONFIG_LOCALVERSION_AUTO
    arm64: defconfig: add options for virtualization and containers
    arm64: hibernate: handle allocation failures
    arm64: hibernate: avoid potential TLB conflict
    arm64: Handle el1 synchronous instruction aborts cleanly
    arm64: Remove stack duplicating code from jprobes
    drivers/perf: arm-pmu: Fix handling of SPI lacking "interrupt-affinity" property
    drivers/perf: arm-pmu: convert arm_pmu_mutex to spinlock
    arm64: Support hard limit of cpu count by nr_cpus

    Linus Torvalds
     
  • Pull KVM fixes from Radim Krčmář:
    "KVM:
    - lock kvm_device list to prevent corruption on device creation.

    PPC:
    - split debugfs initialization from creation of the xics device to
    unlock the newly taken kvm lock earlier.

    s390:
    - prevent userspace from triggering two WARN_ON_ONCE.

    MIPS:
    - fix several issues in the management of TLB faults (Cc: stable)"

    * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
    MIPS: KVM: Propagate kseg0/mapped tlb fault errors
    MIPS: KVM: Fix gfn range check in kseg0 tlb faults
    MIPS: KVM: Add missing gfn range check
    MIPS: KVM: Fix mapped fault broken commpage handling
    KVM: Protect device ops->create and list_add with kvm->lock
    KVM: PPC: Move xics_debugfs_init out of create
    KVM: s390: reset KVM_REQ_MMU_RELOAD if mapping the prefix failed
    KVM: s390: set the prefix initially properly

    Linus Torvalds
     
  • Pull block fixes from Jens Axboe:

    - an NVMe fix from Gabriel, fixing a suspend/resume issue on some
    setups

    - addition of a few missing entries in the block queue sysfs
    documentation, from Joe

    - a fix for a sparse shadow warning for the bvec iterator, from
    Johannes

    - a writeback deadlock involving raid issuing barriers, and not
    flushing the plug when we wakeup the flusher threads. From
    Konstantin

    - a set of patches for the NVMe target/loop/rdma code, from Roland and
    Sagi

    * 'for-linus' of git://git.kernel.dk/linux-block:
    bvec: avoid variable shadowing warning
    doc: update block/queue-sysfs.txt entries
    nvme: Suspend all queues before deletion
    mm, writeback: flush plugged IO in wakeup_flusher_threads()
    nvme-rdma: Remove unused includes
    nvme-rdma: start async event handler after reconnecting to a controller
    nvmet: Fix controller serial number inconsistency
    nvmet-rdma: Don't use the inline buffer in order to avoid allocation for small reads
    nvmet-rdma: Correctly handle RDMA device hot removal
    nvme-rdma: Make sure to shutdown the controller if we can
    nvme-loop: Remove duplicate call to nvme_remove_namespaces
    nvme-rdma: Free the I/O tags when we delete the controller
    nvme-rdma: Remove duplicate call to nvme_remove_namespaces
    nvme-rdma: Fix device removal handling
    nvme-rdma: Queue ns scanning after a sucessful reconnection
    nvme-rdma: Don't leak uninitialized memory in connect request private data

    Linus Torvalds
     

13 Aug, 2016

4 commits

  • h8300 builds fail with

    arch/h8300/include/asm/io.h:9:15: error: unknown type name ‘u8’
    arch/h8300/include/asm/io.h:15:15: error: unknown type name ‘u16’
    arch/h8300/include/asm/io.h:21:15: error: unknown type name ‘u32’

    and many related errors.

    Fixes: 23c82d41bdf4 ("kexec-allow-architectures-to-override-boot-mapping-fix")
    Cc: Andrew Morton
    Signed-off-by: Guenter Roeck

    Guenter Roeck
     
  • unicore32 fails to compile with the following errors.

    mm/memory.c: In function ‘__handle_mm_fault’:
    mm/memory.c:3381: error:
    too many arguments to function ‘arch_vma_access_permitted’
    mm/gup.c: In function ‘check_vma_flags’:
    mm/gup.c:456: error:
    too many arguments to function ‘arch_vma_access_permitted’
    mm/gup.c: In function ‘vma_permits_fault’:
    mm/gup.c:640: error:
    too many arguments to function ‘arch_vma_access_permitted’

    Fixes: d61172b4b695b ("mm/core, x86/mm/pkeys: Differentiate instruction fetches")
    Cc: Dave Hansen
    Cc: Thomas Gleixner
    Cc: Ingo Molnar
    Signed-off-by: Guenter Roeck
    Acked-by: Guan Xuetao

    Guenter Roeck
     
  • Pull VFIO fix from Alex Williamson:
    "Fix oops when dereferencing empty data (Alex Williamson)"

    * tag 'vfio-v4.8-rc2' of git://github.com/awilliam/linux-vfio:
    vfio/pci: Fix NULL pointer oops in error interrupt setup handling

    Linus Torvalds
     
  • Pull nfsd fixes from Bruce Fields:
    "Fixes for the dentry refcounting leak I introduced in 4.8-rc1, and for
    races in the LOCK code which appear to go back to the big nfsd state
    lock removal from 3.17"

    * tag 'nfsd-4.8-1' of git://linux-nfs.org/~bfields/linux:
    nfsd: don't return an unhashed lock stateid after taking mutex
    nfsd: Fix race between FREE_STATEID and LOCK
    nfsd: fix dentry refcounting on create

    Linus Torvalds