Re: [PATCH] implement constant-folding in __builtin_bswap*()

2016-11-17 Thread Christopher Li
On Thu, Aug 11, 2016 at 6:39 PM, Johannes Berg wrote: > Since gcc does this, it's apparently valid to write > > switch (x) { > case __builtin_bswap16(12): >break; > } > > but sparse will flag it as an error today. > > The constant folding used to be done in the

[PATCH] doc: Document the new inline struct member kernel-doc style

2016-11-17 Thread Daniel Vetter
We don't just need better doc toolchains, we also need better docs for our doc toolchain! Cc: Daniel Vetter Cc: Jani Nikula Cc: Jonathan Corbet Cc: linux-...@vger.kernel.org Signed-off-by: Daniel Vetter ---

Re: [PATCH v10 01/11] remoteproc: st_slim_rproc: add a slimcore rproc driver

2016-11-17 Thread Vinod Koul
On Wed, Nov 16, 2016 at 10:36:46PM -0800, Bjorn Andersson wrote: > On Sun 13 Nov 21:18 PST 2016, Vinod Koul wrote: > > > On Mon, Nov 07, 2016 at 01:57:35PM +, Peter Griffin wrote: > > > > > > > > As you now make changes to the entire remoteproc Kconfig file, rather > > > > than simply add a

[i.MX6 DRM IPUv3] Regression 4.9-rc5: greenish screen with YUV420 video

2016-11-17 Thread Krzysztof Hałasa
Hi, The following GStreamer pipeline causes screen to become green with v4.9-rc4+: gst-launch-1.0 udpsrc uri=udp://239.1.2.2:5100 reuse=true caps="application/x-rtp,media=(string)video,clock-rate=(int)9,encoding-name=(string)H264" ! rtph264depay ! h264parse ! v4l2video1dec

Re: [f2fs-dev] [PATCH] f2fs: fix to account total free nid correctly

2016-11-17 Thread heyunlei
On 2016/11/15 4:45, Jaegeuk Kim wrote: On Mon, Nov 14, 2016 at 07:24:56PM +0800, Chao Yu wrote: Thread AThread BThread C - f2fs_create - f2fs_new_inode - f2fs_lock_op - alloc_nid alloc last nid - f2fs_unlock_op - f2fs_create

Re: perf: fuzzer KASAN unwind_get_return_address

2016-11-17 Thread Dmitry Vyukov
On Thu, Nov 17, 2016 at 10:30 AM, Peter Zijlstra wrote: >> > > Peter or Vince, can you try to recreate with this patch? It dumps the >> > > raw stack contents during a stack dump. Hopefully that would give a >> > > clue about what's going wrong. >> > >> > >> > Here goes...

Re: [PATCH v16 00/15] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-11-17 Thread Daniel Lezcano
On Wed, Nov 16, 2016 at 09:48:53PM +0800, fu@linaro.org wrote: > From: Fu Wei > > This patchset: > (1)Preparation for adding GTDT support in arm_arch_timer: > 1. Move some enums and marcos to header file; > 2. Add a new enum for spi type; > 3.

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2016-11-17 Thread Boqun Feng
On Thu, Nov 17, 2016 at 10:28:00AM +0100, Peter Zijlstra wrote: > On Tue, Nov 15, 2016 at 10:19:09PM +0800, Boqun Feng wrote: > > On Tue, Nov 15, 2016 at 02:01:54PM +0100, Peter Zijlstra wrote: > > > On Tue, Nov 15, 2016 at 08:33:37PM +0800, Boqun Feng wrote: > > > > Hi Peter, > > > > > > > > On

Re: [PATCH] doc: Document the new inline struct member kernel-doc style

2016-11-17 Thread Jani Nikula
On Thu, 17 Nov 2016, Jani Nikula wrote: > On Thu, 17 Nov 2016, Daniel Vetter wrote: >> We don't just need better doc toolchains, we also need better docs for >> our doc toolchain! > > Mea culpa. Thanks, LGTM. Oh, the example struct now has too

[PATCH] doc: Document the new inline struct member kernel-doc style

2016-11-17 Thread Daniel Vetter
We don't just need better doc toolchains, we also need better docs for our doc toolchain! v2: Make sure we don't have foo twice (Jani). Cc: Daniel Vetter Cc: Jani Nikula Cc: Jonathan Corbet Cc: linux-...@vger.kernel.org Signed-off-by:

[PATCH 4.4 14/38] staging: nvec: remove managed resource from PS2 driver

2016-11-17 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Marc Dietrich commit 68fae2f3df455f53d0dfe33483a49020b3b758f3 upstream. This basicly reverts commit e534f3e9 (staging:nvec: Introduce the use of the managed version of

[PATCH 4.4 30/38] mei: bus: fix received data size check in NFC fixup

2016-11-17 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Usyskin commit 582ab27a063a506ccb55fc48afcc325342a2deba upstream. NFC version reply size checked against only header size, not against full message size.

[PATCH 4.8 68/92] rtc: pcf2123: Add missing error code assignment before test

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Christophe JAILLET commit 83ab7dad06b74e390c2ce0e7b5136daf286e1f5e upstream. It is likely that checking the result of 'pcf2123_write_reg' is expected here. Also

[PATCH 4.8 75/92] ACPI/PCI/IRQ: assign ISA IRQ directly during early boot stages

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Sinan Kaya commit eeaed4bb5a35591470b545590bb2f26dbe7653a2 upstream. We do not want to store the SCI penalty in the acpi_isa_irq_penalty[] table because

[PATCH 4.4 37/38] btrfs: qgroup: Prevent qgroup->reserved from going subzero

2016-11-17 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Goldwyn Rodrigues commit 0b34c261e235a5c74dcf78bd305845bd15fe2b42 upstream. While free'ing qgroup->reserved resources, we much check if the page has not been invalidated by

[PATCH 4.4 26/38] dmaengine: at_xdmac: fix spurious flag status for mem2mem transfers

2016-11-17 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ludovic Desroches commit 95da0c19d164f6df0b71a5187950f47d4b746e91 upstream. When setting the channel configuration register, the perid field is not set to 0 since

[PATCH 4.4 32/38] hwrng: core - Dont use a stack buffer in add_early_randomness()

2016-11-17 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Andrew Lutomirski commit 6d4952d9d9d4dc2bb9c0255d95a09405a1e958f7 upstream. hw_random carefully avoids using a stack buffer except in add_early_randomness(). This causes a

[PATCH 4.4 12/38] drivers: staging: nvec: remove bogus reset command for PS/2 interface

2016-11-17 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Paul Fertser commit d8f8a74d5fece355d2234e1731231d1aebc66b38 upstream. This command was sent behind serio's back and the answer to it was confusing atkbd probe function

[PATCH 4.4 08/38] ARC: timer: rtc: implement read loop in "C" vs. inline asm

2016-11-17 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Vineet Gupta commit 922cc171998ac3dbe74d57011ef7ed57e9b0d7df upstream. The current code doesn't even compile as somehow the inline assembly can't see the register names

[PATCH 05/11] virtio_pci: use shared interrupts for virtqueues

2016-11-17 Thread Christoph Hellwig
This lets IRQ layer handle dispatching IRQs to separate handlers for the case where we don't have per-VQ MSI-X vectors, and allows us to greatly simplify the code based on the assumption that we always have interrupt vector 0 (legacy INTx or config interrupt for MSI-X) available, and any other

[PATCH 10/11] blk-mq: provide a default queue mapping for virtio device

2016-11-17 Thread Christoph Hellwig
Similar to the PCI version, just calling into virtio instead. Signed-off-by: Christoph Hellwig --- block/Kconfig | 5 block/Makefile| 1 + block/blk-mq-virtio.c | 55 +++

[PATCH 11/11] virtio_blk: use virtio IRQ affinity

2016-11-17 Thread Christoph Hellwig
Use automatic IRQ affinity assignment in the virtio layer if available, and build the blk-mq queues based on it. Signed-off-by: Christoph Hellwig --- drivers/block/virtio_blk.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git

[PATCH 04/11] virtio_pci: split vp_try_to_find_vqs into INTx and MSI-X variants

2016-11-17 Thread Christoph Hellwig
There is basically no shared logic between the INTx and MSI-X case in vp_try_to_find_vqs, so split the function into two and clean them up a little bit. Also remove the fairly pointless vp_request_intx wrapper while we're at it. Signed-off-by: Christoph Hellwig ---

[PATCH 06/11] virtio_pci: use msix_enable flag in struct pci_dev

2016-11-17 Thread Christoph Hellwig
Instead of duplicating it. Signed-off-by: Christoph Hellwig --- drivers/virtio/virtio_pci_common.c | 7 ++- drivers/virtio/virtio_pci_common.h | 2 -- drivers/virtio/virtio_pci_legacy.c | 2 +- drivers/virtio/virtio_pci_modern.c | 2 +- include/uapi/linux/virtio_pci.h| 2 +-

[PATCH 02/11] virtio_pci: remove the call to vp_free_vectors in vp_request_msix_vectors

2016-11-17 Thread Christoph Hellwig
vp_request_msix_vectors is only called by vp_try_to_find_vqs, which already calls vp_free_vectors through vp_del_vqs in the failure case. Signed-off-by: Christoph Hellwig --- drivers/virtio/virtio_pci_common.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 07/11] virtio_pci: simplify MSI-X setup

2016-11-17 Thread Christoph Hellwig
Try to grab the MSI-X vectors early and fall back to the shared one before doing tons of allocations. Signed-off-by: Christoph Hellwig --- drivers/virtio/virtio_pci_common.c | 52 +++--- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git

automatic IRQ affinity for virtio

2016-11-17 Thread Christoph Hellwig
Hi Michael, this series contains a couple cleanups for the virtio_pci interrupt handling code, including a switch to the new pci_irq_alloc_vectors helper, and support for automatic affinity by the PCI layer if the consumers ask for it. It then converts over virtio_blk to use this functionality

[PATCH 4.4 36/38] mmc: mxs: Initialize the spinlock prior to using it

2016-11-17 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Fabio Estevam commit f91346e8b5f46aaf12f1df26e87140584ffd1b3f upstream. An interrupt may occur right after devm_request_irq() is called and prior to the spinlock

[PATCH 09/11] virtio: provide a method to get the IRQ affinity mask for a virtqueue

2016-11-17 Thread Christoph Hellwig
This basically passed up the pci_irq_get_affinity information through virtio through an optional get_vq_affinity method. It is only implemented by the PCI backend for now, and only when we use per-virtqueue IRQs. Signed-off-by: Christoph Hellwig ---

Re: perf: fuzzer KASAN unwind_get_return_address

2016-11-17 Thread Peter Zijlstra
On Thu, Nov 17, 2016 at 10:13:41AM +0100, Peter Zijlstra wrote: > On Thu, Nov 17, 2016 at 10:04:46AM +0100, Peter Zijlstra wrote: > > On Wed, Nov 16, 2016 at 10:48:28PM -0600, Josh Poimboeuf wrote: > > > Peter or Vince, can you try to recreate with this patch? It dumps the > > > raw stack

Re: [RFC PATCH] mfd: dt: Add Aspeed LPC binding

2016-11-17 Thread Linus Walleij
On Thu, Nov 17, 2016 at 7:06 AM, Andrew Jeffery wrote: > +* Device tree bindings for the Aspeed LPC Controller We are going overboard with the lingo sometimes, to the point that we do not understand how terse things become. LPC = Low Pin Count, right? Explain that right here:

Re: [PATCH v16 00/15] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-11-17 Thread Xiongfeng Wang
Sorry for not describing specifically in the last mail. I have applied all the patches of this patchset on Linux 4.9, and tested the per-cpu timer and sbsa watchdog part, which function well on D05 board. On 2016/11/17 11:34, Xiongfeng Wang wrote: > Tested-by: wangxiongfe...@huawei.com on D05

[PATCH v4 02/15] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-17 Thread Johannes Thumshirn
Don't use fc_bsg_job::request and fc_bsg_job::reply directly, but use helper variables bsg_request and bsg_reply. This will be helpfull when transitioning to bsg-lib. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke ---

[PATCH v4 13/15] block: add bsg_job_put() and bsg_job_get()

2016-11-17 Thread Johannes Thumshirn
Add bsg_job_put() and bsg_job_get() so don't need to export bsg_destroy_job() any more. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- block/bsg-lib.c | 17 ++--- drivers/scsi/scsi_transport_fc.c | 4 ++--

[PATCH v4 15/15] block: unexport bsg_softirq_done() again

2016-11-17 Thread Johannes Thumshirn
Unexport bsg_softirq_done() again, we don't need it outside of bsg-lib.c anymore now that scsi_transport_fc is a pure bsg-lib client. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- block/bsg-lib.c | 3 +-- include/linux/bsg-lib.h |

[PATCH v4 11/15] scsi: fc: use bsg_softirq_done

2016-11-17 Thread Johannes Thumshirn
bsg_softirq_done() and fc_bsg_softirq_done() are copies of each other, so ditch the fc specific one. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- block/bsg-lib.c | 3 ++- drivers/scsi/scsi_transport_fc.c | 15

[PATCH v4 14/15] scsi: fc: move FC transport's bsg code to bsg-lib

2016-11-17 Thread Johannes Thumshirn
Now that all conversions are done, move the FibreChannel bsg code over to the bsg library. This patch is derived from work done by Mike Christie in 2011 [1] but only the iscsi parts got merged back then. [1] http://marc.info/?l=linux-scsi=131149780921009=2 Signed-off-by: Johannes Thumshirn

[PATCH] ARM: dts: sunxi: Explicitly enable pull-ups for MMC pins

2016-11-17 Thread Chen-Yu Tsai
In the past, all the MMC pins had allwinner,pull = ; which was actually a no-op. We were relying on U-boot to set the bias pull up for us. These properties were removed as part of the fix up to actually support no bias on the pins. During the transition some boards experienced regular

[RFC] powerpc: xmon: Add address lookup for percpu symbols

2016-11-17 Thread Boqun Feng
Currently, in xmon, there is no obvious way to get an address for a percpu symbol for a particular cpu. Having such an ability would be good for debugging the system when percpu variables got involved. Therefore, this patch introduces a new xmon command "lp" to lookup the address for percpu

Re: [PATCH net 1/7] net: ethernet: ti: cpsw: fix bad register access in probe error path

2016-11-17 Thread Johan Hovold
On Wed, Nov 16, 2016 at 02:33:18PM -0600, Grygorii Strashko wrote: > On 11/16/2016 08:35 AM, Johan Hovold wrote: > > Make sure to resume the platform device to enable clocks before > > accessing the CPSW registers in the probe error path (e.g. for deferred > > probe). > > > > Unhandled fault:

Re: [PATCH v3 -next] Input: gpio_keys: set input direction explicitly for gpio keys

2016-11-17 Thread Sudeep Holla
On 17/11/16 01:18, Dmitry Torokhov wrote: On Wed, Nov 16, 2016 at 06:38:22PM +, Sudeep Holla wrote: Commit 700a38b27eef ("Input: gpio_keys - switch to using generic device properties") switched to use generic device properties for GPIO keys and commit 5feeca3c1e39 ("Input: gpio_keys - add

Re: cifs mount regression in 4.8 and 4.4 stable

2016-11-17 Thread Greg Kroah-Hartman
On Fri, Sep 23, 2016 at 07:01:45AM -0500, Seth Forshee wrote: > On Thu, Sep 22, 2016 at 10:27:56AM -0500, Seth Forshee wrote: > > On Thu, Sep 22, 2016 at 04:17:09PM +0100, Sachin Prabhu wrote: > > > On Thu, 2016-09-22 at 10:09 -0500, Seth Forshee wrote: > > > > We've received reports from users of

[PATCH -v1.1] x86/topology: Document cpu_llc_id

2016-11-17 Thread Borislav Petkov
It means different things on Intel and AMD so write it down so that there's no confusion. Signed-off-by: Borislav Petkov Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Yazen Ghannam --- Documentation/x86/topology.txt

Re: [PATCH 2/2] pci: Don't set RCB bit in LNKCTL if the upstream bridge hasn't

2016-11-17 Thread Johannes Thumshirn
On Wed, Nov 16, 2016 at 12:11:58PM -0600, Bjorn Helgaas wrote: > Hi Johannes, > > On Wed, Nov 02, 2016 at 04:35:52PM -0600, Johannes Thumshirn wrote: > > The Read Completion Boundary (RCB) bit must only be set on a device or > > endpoint if it is set on the root complex. > > I propose the

Re: [PATCH 4/9] KEYS: Allow unrestricted boot-time addition of keys to secondary keyring

2016-11-17 Thread David Howells
Petko Manolov wrote: > On 16-11-16 18:11:13, David Howells wrote: > > Allow keys to be added to the system secondary certificates keyring during > > kernel initialisation in an unrestricted fashion. Such keys are implicitly > > trusted and don't have their trust chains

Re: [RFC PATCH] mfd: dt: Add Aspeed LPC binding

2016-11-17 Thread Joel Stanley
On Thu, Nov 17, 2016 at 7:46 PM, Arnd Bergmann wrote: > On Thursday, November 17, 2016 4:36:33 PM CET Andrew Jeffery wrote: >> Signed-off-by: Andrew Jeffery >> --- >> >> I'd like to start a discussion about how to handle the LPC register space in >> the Aspeed

Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable options

2016-11-17 Thread Jerome Brunet
On Wed, 2016-11-16 at 22:36 +0530, Anand Moon wrote: >  Hi Jerome. > > On 15 November 2016 at 19:59, Jerome Brunet > wrote: > > > > On some platforms, energy efficient ethernet with rtl8211 devices > > is > > causing issue, like throughput drop or broken link. > > > >

Re: [PATCH] edac: mpc85xx: implement "remove" for mpc85xx_pci_err_driver

2016-11-17 Thread Borislav Petkov
On Thu, Nov 17, 2016 at 10:56:20AM +0800, yanjiang@windriver.com wrote: > From: Yanjiang Jin > > Tested on a T4240QDS board. > > If we execute the below steps without this patch: > > 1. modprobe mpc85xx_edac [The first insmod, everything is well.] > 2. modprobe

[PATCH 4.8 01/92] ALSA: info: Return error for invalid read/write

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 6809cd682b82dfff47943850d1a8c714f971b5ca upstream. Currently the ALSA proc handler allows read or write even if the proc file were write-only or read-only.

[PATCH 4.8 10/92] coredump: fix unfreezable coredumping task

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Andrey Ryabinin commit 70d78fe7c8b640b5acfad56ad341985b3810998a upstream. It could be not possible to freeze coredumping task when it waits for 'core_state->startup'

[PATCH 4.8 12/92] ARC: timer: rtc: implement read loop in "C" vs. inline asm

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Vineet Gupta commit 922cc171998ac3dbe74d57011ef7ed57e9b0d7df upstream. The current code doesn't even compile as somehow the inline assembly can't see the register names

[PATCH 4.8 14/92] arc: Implement arch-specific dma_map_ops.mmap

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Alexey Brodkin commit a79a812131b07254c09cf325ec68c0d05aaed0b5 upstream. We used to use generic implementation of dma_map_ops.mmap which is dma_common_mmap() but that

[PATCH 4.8 80/92] gpio/mvebu: Use irq_domain_add_linear

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Jason Gunthorpe commit 812d47889a8e418d7bea9bec383581a34c19183e upstream. This fixes the irq allocation in this driver to not print: irq: Cannot allocate

[PATCH 4.8 53/92] iommu/io-pgtable-arm: Check for v7s-incapable systems

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Robin Murphy commit 82db33dc5e49fb625262d81125625d07a0d6184e upstream. On machines with no 32-bit addressable RAM whatsoever, we shouldn't even touch the v7s format as

[PATCH 4.8 45/92] drm/i915/dp: Extend BDW DP audio workaround to GEN9 platforms

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Dhinakaran Pandiyan commit 61e0c5438866d0e737937fc35d752538960e1e9f upstream. According to BSpec, cdclk for BDW has to be not less than 432 MHz with DP audio

[PATCH 4.8 57/92] watchdog: core: Fix devres_alloc() allocation size

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Guenter Roeck commit 2e91838bf7ffdedabdb29e091207d6531d04ef4f upstream. Coverity reports: Passing argument 152UL /* sizeof (*wdd) */ to function __devres_alloc_node and

[PATCH 4.8 59/92] Input: synaptics-rmi4 - fix error handling in I2C transport driver

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Guenter Roeck commit 261d7794c49b9a3bb5115c5ffc452e00f969bf43 upstream. Instantiating the rmi4 I2C transport driver without interrupts assigned (for example using manual

[PATCH 4.8 30/92] drbd: Fix kernel_sendmsg() usage - potential NULL deref

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Richard Weinberger commit d8e9e5e80e882b4f90cba7edf1e6cb7376e52e54 upstream. Don't pass a size larger than iov_len to kernel_sendmsg(). Otherwise it will cause a NULL pointer

[PATCH 4.8 51/92] xprtrdma: use complete() instead complete_all()

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Wagner commit 5690a22d8612e1788b48b4ea53c59868589cd2db upstream. There is only one waiter for the completion, therefore there is no need to use

[PATCH 4.8 63/92] svcrdma: Tail iovec leaves an orphaned DMA mapping

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Chuck Lever commit cace564f8b6260e806f5e28d7f192fd0e0c603ed upstream. The ctxt's count field is overloaded to mean the number of pages in the ctxt->page array and the

[PATCH 4.8 55/92] iommu/vt-d: Fix dead-locks in disable_dmar_iommu() path

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Joerg Roedel commit bea64033dd7b5fb6296eda8266acab6364ce1554 upstream. It turns out that the disable_dmar_iommu() code-path tried to get the device_domain_lock recursivly,

[PATCH 4.8 28/92] USB: cdc-acm: fix TIOCMIWAIT

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 18266403f3fe507f0246faa1d5432333a2f139ca upstream. The TIOCMIWAIT implementation would return -EINVAL if any of the three supported signals were included

[PATCH 4.8 84/92] pinctrl: iproc: Fix iProc and NSP GPIO support

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Ray Jui commit 091c531b09c151c2d712a8f347009ca3698a2467 upstream. Since commit 44a7185c2ae6 ("of/platform: Add common method to populate default bus"), ARM64 platform

[PATCH 4.8 70/92] lib/genalloc.c: start search from start of chunk

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Mentz commit 62e931fac45b17c2a42549389879411572f75804 upstream. gen_pool_alloc_algo() iterates over the chunks of a pool trying to find a contiguous block of

[PATCH 4.8 67/92] clk: samsung: clk-exynos-audss: Fix module autoload

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Javier Martinez Canillas commit 34b89b2967f284937be6759936ef3dc4d3aff2d0 upstream. If the driver is built as a module, autoload won't work because the module alias

[PATCH 4.8 35/92] iio: orientation: hid-sensor-rotation: Add PM function (fix non working driver)

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Song Hongyan commit 8af644a7d6846f48d6b72be5d4a3c6eb16bd33c8 upstream. This fix makes newer ISH hubs work. Previous ones worked by lucky coincidence. Rotation sensor

[PATCH 4.8 86/92] memcg: prevent memcg caches to be both OFF_SLAB & OBJFREELIST_SLAB

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Greg Thelen commit f773e36de3d77c4000ca914c9d146f55f2fd51e8 upstream. While testing OBJFREELIST_SLAB integration with pagealloc, we found a bug where kmem_cache(sys) would

[PATCH 4.8 82/92] ASoC: Intel: Skylake: Always acquire runtime pm ref on unload

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Lukas Wunner commit 6d13f62d931ba638e54ba56f3a7dd3080ffb485a upstream. skl_probe() releases a runtime pm ref unconditionally wheras skl_remove() acquires one only if the

[PATCH 4.4 28/38] iommu/amd: Free domain id when free a domain of struct dma_ops_domain

2016-11-17 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Baoquan He commit c3db901c54466a9c135d1e6e95fec452e8a42666 upstream. The current code missed freeing domain id when free a domain of struct dma_ops_domain. Signed-off-by:

[PATCH] mpt3sas: Fix for SATA drive in blocked state, after diag reset while ATA Passthrough command is outstanding.

2016-11-17 Thread Suganath Prabu S
While issuing any ATA Pass-through command to Firmware, driver will block the device, it will unblock the device only if that IO completes through ISR path. But if in-between any host reset occurs then driver won't unblock the device and device will be in blocked state. Signed-off-by: Suganath

[PATCH 4.4 31/38] lib/genalloc.c: start search from start of chunk

2016-11-17 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Mentz commit 62e931fac45b17c2a42549389879411572f75804 upstream. gen_pool_alloc_algo() iterates over the chunks of a pool trying to find a contiguous block of

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2016-11-17 Thread Peter Zijlstra
On Thu, Nov 17, 2016 at 11:29:59AM +0100, Peter Zijlstra wrote: > On Thu, Nov 17, 2016 at 05:48:51PM +0800, Boqun Feng wrote: > > > > But as I said, we actually only need the pairing of orderings: > > > > > > > > 1) load part of cmpxchg -> free() > > > > 2) object accesses -> store part of

[PATCH 4.4 29/38] iommu/vt-d: Fix dead-locks in disable_dmar_iommu() path

2016-11-17 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Joerg Roedel commit bea64033dd7b5fb6296eda8266acab6364ce1554 upstream. It turns out that the disable_dmar_iommu() code-path tried to get the device_domain_lock recursivly,

[PATCHv11 3/3] usb: typec: add driver for Intel Whiskey Cove PMIC USB Type-C PHY

2016-11-17 Thread Heikki Krogerus
This adds driver for the USB Type-C PHY on Intel WhiskeyCove PMIC which is available on some of the Intel Broxton SoC based platforms. Signed-off-by: Heikki Krogerus --- drivers/usb/typec/Kconfig | 14 ++ drivers/usb/typec/Makefile | 1 +

[PATCH 4.8 77/92] ACPI/PCI: pci_link: Include PIRQ_PENALTY_PCI_USING for ISA IRQs

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Sinan Kaya commit 98756f5319c64c883caa910dce702d9edefe7810 upstream. Commit 103544d86976 ("ACPI,PCI,IRQ: reduce resource requirements") replaced the addition of

[PATCHv11 0/3] USB Type-C Connector class

2016-11-17 Thread Heikki Krogerus
The USB Type-C class is meant to provide unified interface to the userspace to present the USB Type-C ports in a system. Changes since v10: - Using ATTRIBUTE_GROUPS and DEVICE_ATTR marcos everywhere - Moved sysfs_match_string to lib/string.c - Rationalized uevents - Calling ida_destroy Changes

[PATCHv11 2/3] usb: USB Type-C connector class

2016-11-17 Thread Heikki Krogerus
The purpose of USB Type-C connector class is to provide unified interface for the user space to get the status and basic information about USB Type-C connectors on a system, control over data role swapping, and when the port supports USB Power Delivery, also control over power role swapping and

Re: [PATCH 4.8 78/92] batman-adv: fix splat on disabling an interface

2016-11-17 Thread Sven Eckelmann
On Donnerstag, 17. November 2016 11:32:51 CET Greg Kroah-Hartman wrote: > 4.8-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Linus Lüssing > > commit 9799c50372b23ed774791bdb87d700f1286ee8a9 upstream. > > As

Re: [PATCH v3 1/2] staging: slicoss: fix different address space warnings: 32 bits

2016-11-17 Thread Dan Carpenter
Hm... I seem to duplicate the Sparse warnings at all. That's weird. Anyway as far as I can tell the warnings are false positives... Can't you just remove the __iomem tag? Have you tested this change? regards, dan carpenter

[PATCH 4.8 76/92] ACPI/PCI: pci_link: penalize SCI correctly

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Sinan Kaya commit f1caa61df2a3dc4c58316295c5dc5edba4c68d85 upstream. Ondrej reported that IRQs stopped working in v4.7 on several platforms. A typical scenario, from

[PATCHv11 1/3] lib/string: add sysfs_match_string helper

2016-11-17 Thread Heikki Krogerus
Make a simple helper for matching strings with sysfs attribute files. In most parts the same as match_string(), except sysfs_match_string() uses sysfs_streq() instead of strcmp() for matching. This is more convenient when used with sysfs attributes. Signed-off-by: Heikki Krogerus

[PATCH 4.8 54/92] iommu/amd: Free domain id when free a domain of struct dma_ops_domain

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Baoquan He commit c3db901c54466a9c135d1e6e95fec452e8a42666 upstream. The current code missed freeing domain id when free a domain of struct dma_ops_domain. Signed-off-by:

[PATCH 4.8 52/92] xprtrdma: Fix DMAR failure in frwr_op_map() after reconnect

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Chuck Lever commit 62bdf94a2049822ef8c6d4b0e83cd9c3a1663ab4 upstream. When a LOCALINV WR is flushed, the frmr is marked STALE, then frwr_op_unmap_sync DMA-unmaps the

[PATCH 4.8 60/92] perf top: Fix refreshing hierarchy entries on TUI

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Namhyung Kim commit c611152373e84a7677cd7d496e849de4debdab66 upstream. Markus reported that 'perf top --hierarchy' cannot scroll down after refresh. This was because the

[PATCH 4.8 87/92] libceph: fix legacy layout decode with pool 0

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Yan, Zheng commit 3890dce1d3a8b9fe3bc36de99496792e468cd079 upstream. If your data pool was pool 0, ceph_file_layout_from_legacy() transform that to -1 unconditionally, which

Linux 4.8-stable - spidev_test fails to build with musl libc (fixed in 4.9)

2016-11-17 Thread Ralph Sennhauser
Hi Greg, For Linux 4.8 spidev_test.c fails to compile using musl libc, this was fixed in 4.9 by commit 8736f8022e532a3c1d8873aac78e1113c6ffc3b9 (spi: spidev_test: fix build with musl libc). Please consider cherry-picking the above commit for 4.8-stable. Thanks Ralph

[PATCH 4.8 58/92] Input: synaptics-rmi4 - fix error handling in SPI transport driver

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Guenter Roeck commit bbc2ceeb3220e54c7574f0b5e3a252fd9a62cf8a upstream. Instantiating the rmi4 SPI transport driver without an interrupt assigned caused the driver to fail

[PATCH 4.8 31/92] toshiba-wmi: Fix loading the driver on non Toshiba laptops

2016-11-17 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Azael Avalos commit 1c80e9603fe8341ed5bea696747d07083d5e0476 upstream. Bug 150611 uncovered that the WMI ID used by the toshiba-wmi driver is not Toshiba specific, and

[PATCH v12 0/4] New debugfs API for capturing CRC of frames

2016-11-17 Thread Tomeu Vizoso
Hi, here are the patches that remain to be merged in this series. They have been rebased and I have also addressed two smaller comments: - Move locking into drm_crtc_add_crc_entry (Daniel Vetter). - Define intel_crtc_set_crc_source as NULL if !CONFIG_DEBUG_FS (Jani Nikula). Thanks, Tomeu

[PATCH v12 1/4] drm/i915/debugfs: Move out pipe CRC code

2016-11-17 Thread Tomeu Vizoso
In preparation to using a generic API in the DRM core for continuous CRC generation, move the related code out of i915_debugfs.c into a new file. Eventually, only the Intel-specific code will remain in this new file. v2: Rebased. v6: Rebased. v7: Fix whitespace issue. v9: Have

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2016-11-17 Thread Peter Zijlstra
On Tue, Nov 15, 2016 at 10:19:09PM +0800, Boqun Feng wrote: > On Tue, Nov 15, 2016 at 02:01:54PM +0100, Peter Zijlstra wrote: > > On Tue, Nov 15, 2016 at 08:33:37PM +0800, Boqun Feng wrote: > > > Hi Peter, > > > > > > On Mon, Nov 14, 2016 at 06:39:53PM +0100, Peter Zijlstra wrote: > > > [...] > >

[PATCH v12 4/4] drm/i915: Put "cooked" vlank counters in frame CRC lines

2016-11-17 Thread Tomeu Vizoso
Use drm_accurate_vblank_count so we have the full 32 bit to represent the frame counter and userspace has a simpler way of knowing when the counter wraps around. Signed-off-by: Tomeu Vizoso Reviewed-by: Emil Velikov ---

[PATCH v4 07/15] scsi: fc: implement kref backed reference counting

2016-11-17 Thread Johannes Thumshirn
Implement kref backed reference counting instead of rolling our own. This elimnates the need of the following fields in 'struct fc_bsg_job': * ref_cnt * state_flags * job_lock bringing us close to unification of 'struct fc_bsg_job' and 'struct bsg_job'. Signed-off-by: Johannes Thumshirn

[PATCH v2] slab: Add POISON_POINTER_DELTA to ZERO_SIZE_PTR

2016-11-17 Thread Michael Ellerman
POISON_POINTER_DELTA is defined in poison.h, and is intended to be used to shift poison values so that they don't alias userspace. We should add it to ZERO_SIZE_PTR so that attackers can't use ZERO_SIZE_PTR as a way to get a non-NULL pointer to userspace. Currently ZERO_OR_NULL_PTR() uses a

Re: [PATCH] net: dsa: fix fixed-link-phy device leaks

2016-11-17 Thread Johan Hovold
On Wed, Nov 16, 2016 at 10:14:10AM -0800, Florian Fainelli wrote: > On 11/16/2016 09:11 AM, Johan Hovold wrote: > > On Wed, Nov 16, 2016 at 09:06:26AM -0800, Florian Fainelli wrote: > >> On 11/16/2016 06:47 AM, Johan Hovold wrote: > >>> Make sure to drop the reference taken by of_phy_find_device()

Re: [PATCH] doc: Document the new inline struct member kernel-doc style

2016-11-17 Thread Jani Nikula
On Thu, 17 Nov 2016, Daniel Vetter wrote: > We don't just need better doc toolchains, we also need better docs for > our doc toolchain! Mea culpa. Thanks, LGTM. BR, Jani. > Cc: Daniel Vetter > Cc: Jani Nikula > Cc: Jonathan

Re: [PATCH] edac: mpc85xx: implement "remove" for mpc85xx_pci_err_driver

2016-11-17 Thread Johannes Thumshirn
On Wed, Nov 16, 2016 at 02:26:14PM +0800, yanjiang@windriver.com wrote: > From: Yanjiang Jin > > Tested on a T4240QDS board. > > If we execute the below steps without this patch: > > 1. modprobe mpc85xx_edac [The first insmod, everything is well.] > 2. modprobe

Re: cifs mount regression in 4.8 and 4.4 stable

2016-11-17 Thread Sachin Prabhu
On Thu, 2016-11-17 at 10:47 +0100, Greg Kroah-Hartman wrote: > On Fri, Sep 23, 2016 at 07:01:45AM -0500, Seth Forshee wrote: > > > > On Thu, Sep 22, 2016 at 10:27:56AM -0500, Seth Forshee wrote: > > > > > > On Thu, Sep 22, 2016 at 04:17:09PM +0100, Sachin Prabhu wrote: > > > > > > > > On Thu,

Re: [RFC PATCH] mfd: dt: Add Aspeed LPC binding

2016-11-17 Thread Joel Stanley
Hey Linus, On Thu, Nov 17, 2016 at 8:00 PM, Linus Walleij wrote: > On Thu, Nov 17, 2016 at 7:06 AM, Andrew Jeffery wrote: > >> +* Device tree bindings for the Aspeed LPC Controller > > We are going overboard with the lingo sometimes, to the point that

Re: [PATCH] doc: Document the new inline struct member kernel-doc style

2016-11-17 Thread Jani Nikula
On Thu, 17 Nov 2016, Daniel Vetter wrote: > We don't just need better doc toolchains, we also need better docs for > our doc toolchain! > > v2: Make sure we don't have foo twice (Jani). Thanks, *now* LGTM. :) > > Cc: Daniel Vetter > Cc: Jani Nikula

  1   2   3   4   5   6   7   8   9   10   >