[PATCH 4.7 112/141] SUNRPC: Silence WARN_ON when NFSv4.1 over RDMA is in use

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Chuck Lever commit 16590a228109e2f318d2cc6466221134cfab723a upstream. Using NFSv4.1 on RDMA should be safe, so broaden the new checks in rpc_create(). WARN_ON_ONCE is used, matching most other

[PATCH 0/3] ringtest: performance optimization

2016-10-06 Thread Paolo Bonzini
In order to provide more reliable results, use link-time optimization to inline the ring implementation in the guest/host threads. The second and third patch then are a reimplementation of https://marc.info/?l=kvm&m=147428514903134&w=2 for all ring structures, saving on code size by removing separ

[PATCH 33/54] md/raid5: Replace printk() calls by the usage of higher level interfaces

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 13:40:03 +0200 1. Add a definition for the macros "MY_LOG_PREFIX" and "pr_fmt" so that their information can be used for consistent message output. 2. Prefer usage of some higher level macros over calling "printk" directly in this software module.

[PATCH 2/3] ringtest: commonize implementation of poll_avail/poll_used

2016-10-06 Thread Paolo Bonzini
Provide new primitives used_empty/avail_empty and build poll_avail/poll_used on top of it. Signed-off-by: Paolo Bonzini --- tools/virtio/ringtest/main.c| 12 +++ tools/virtio/ringtest/main.h| 4 +-- tools/virtio/ringtest/noring.c | 6 ++-- tools/virtio/ring

[PATCH v13 06/15] irqchip/gic-v2m: Register the MSI doorbell

2016-10-06 Thread Eric Auger
Register the GIC V2M global doorbell. The registered information are used to set up the KVM passthrough use case. Signed-off-by: Eric Auger --- v12 -> v13: - use new msi doorbell registration prototype - remove iommu protection attributes - add unregistration in teardown v11 -> v12: - use irq_g

[PATCH v13 04/15] genirq/msi: Introduce the MSI doorbell API

2016-10-06 Thread Eric Auger
We introduce a new msi-doorbell API that allows msi controllers to allocate and register their doorbells. This is useful when those doorbells are likely to be iommu mapped (typically on ARM). The VFIO layer will need to gather information about those doorbells: whether they are safe (ie. they imple

[PATCH 3/3] ringtest: poll for new buffers once before updating event index

2016-10-06 Thread Paolo Bonzini
Updating the event index has a memory barrier and causes more work on the other side to actually signal the event. It is unnecessary if a new buffer has already appeared on the ring, so poll once before doing the update. The effect of this on the 0.9 ring implementation is pretty much invisible,

[PATCH 4.7 118/141] IB/ipoib: Fix memory corruption in ipoib cm mode connect flow

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Erez Shitrit commit 546481c2816ea3c061ee9d5658eb48070f69212e upstream. When a new CM connection is being requested, ipoib driver copies data from the path pointer in the CM/tx object, the path

[PATCH 34/54] md/raid5: Delete indentation for two jump labels

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 13:45:18 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: labels should not be indented Thus fix the affected source code places. Signed-off-by: Markus Elfring --- drivers/md/raid5.c | 4 ++-- 1 file changed, 2 i

[PATCH 4.7 086/141] mailbox: mailbox-test: set tdev->signal to NULL after freeing

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Sudeep Holla commit 9ef3c5112139cc5c5666ee096e05bc1e00e94015 upstream. tdev->signal is not set NULL after it's freed. This will cause random exceptions when the stale pointer is accessed after

[PATCH 4.7 114/141] lib/test_hash.c: fix warning in preprocessor symbol evaluation

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit e6173ba42bbdba05fd4f3021c0beda0506271507 upstream. Some versions of gcc don't like tests for the value of an undefined preprocessor symbol, even in the #else branch of

[PATCH 4.7 117/141] ceph: do not modify fi->frag in need_reset_readdir()

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Nicolas Iooss commit 0f5aa88a7bb28b73253fb42b3df8202142769f39 upstream. Commit f3c4ebe65ea1 ("ceph: using hash value to compose dentry offset") modified "if (fpos_frag(new_pos) != fi->frag)" to

[PATCH 29/54] md/raid5: Return directly after a failed kcalloc() in alloc_thread_groups()

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 08:54:40 +0200 The kfree() function was called in up to two cases by the alloc_thread_groups() function during error handling even if the passed variable contained a null pointer. * Return directly after a call of the kcalloc() function failed at the

Re: [PATCH v9 17/19] drm/virtio: kconfig: Fix recursive dependency issue.

2016-10-06 Thread Peter Griffin
Hi Jani, Sorry for the delay, I've been travelling last week. On Tue, 20 Sep 2016, Jani Nikula wrote: > On Tue, 20 Sep 2016, Peter Griffin wrote: > > Hi Emil, > > > > On Tue, 20 Sep 2016, Emil Velikov wrote: > > > >> On 5 September 2016 at 14:16, Peter Griffin > >> wrote: > >> > ST_SLIM_REMOT

[PATCH 4.7 119/141] ath10k: fix get rx_status from htt context

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Ashok Raj Nagarajan commit 237e15dfd5d651868726111c3a9d828bec700490 upstream. On handling amsdu on rx path, get the rx_status from htt context. Without this fix, we are seeing warnings when run

[PATCH v13 11/15] vfio/type1: Handle unmap/unpin and replay for VFIO_IOVA_RESERVED slots

2016-10-06 Thread Eric Auger
Before allowing the end-user to create VFIO_IOVA_RESERVED dma slots, let's implement the expected behavior for removal and replay. As opposed to user dma slots, reserved IOVAs are not systematically bound to PAs and PAs are not pinned. VFIO just initializes the IOVA "aperture". IOVAs are allocated

[PATCH 35/54] md/raid5: Adjust 13 checks for null pointers

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 14:07:49 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script "checkpatch.pl" pointed information out like the following. Comparison to NULL could be written !… Thus fix the affected source code pla

[PATCH 28/54] md/raid5: Rename a jump label in setup_conf()

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 08:18:38 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/md/raid5.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/md/r

[PATCH 4.7 140/141] ALSA: hda - Fix headset mic detection problem for several Dell laptops

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Hui Wang commit 3f640970a41429f0a076c01270bbd014c9eae61c upstream. One of the laptops has the codec ALC256 on it, applying the ALC255_FIXUP_DELL1_MIC_NO_PRESENCE can fix the problem, the rest o

[PATCH 4.7 120/141] IB/core: Fix use after free in send_leave function

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Erez Shitrit commit 68c6bcdd8bd00394c234b915ab9b97c74104130c upstream. The function send_leave sets the member: group->query_id (group->query_id = ret) after calling the sa_query, but leave_han

[PATCH v13 13/15] vfio/type1: Check doorbell safety

2016-10-06 Thread Eric Auger
On x86 IRQ remapping is abstracted by the IOMMU. On ARM this is abstracted by the msi controller. Since we currently have no way to detect whether the MSI controller is upstream or downstream to the IOMMU we rely on the MSI doorbell information registered by the interrupt controllers. In case at l

[PATCH v13 00/15] KVM PCIe/MSI passthrough on ARM/ARM64

2016-10-06 Thread Eric Auger
Following Robin's series [1], addressing MSI IOMMU mapping for devices attached to a DMA ops domain, quite a lot of changes (and simplifications) were induced with respect to the v12 iteration: - msi-iommu API role now is handled at dma-iommu level - MSI doorbell registration API still is used for

[PATCH 39/54] md/raid5: Add some spaces for better code readability

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 16:00:32 +0200 Use space characters at some source code places according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/md/raid5.c | 165 +++-- 1 file changed, 83 inserti

[PATCH 4.7 113/141] pNFS/flexfiles: Fix layoutstat periodic reporting

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit 1c8d477a77e2d1d3504419e7f2e02e6422becf9a upstream. Putting the periodicity timer in the mirror instances is causing non-scalable reporting behaviour and missed reporting

Re: [PATCH 24/54] md/raid1: Improve another size determination in setup_conf()

2016-10-06 Thread Richard Weinberger
On Thu, Oct 6, 2016 at 11:22 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 4 Oct 2016 21:46:18 +0200 > > Replace the specification of a data structure by a pointer dereference > as the parameter for the operator "sizeof" to make the corresponding size > determination a bit safe

[PATCH 1/3] ringtest: use link-time optimization

2016-10-06 Thread Paolo Bonzini
By using -flto and -fwhole-program, all functions from the ring implementation can be treated as static and possibly inlined. Force this to happen through the GCC flatten attribute. Signed-off-by: Paolo Bonzini --- tools/virtio/ringtest/Makefile | 4 ++-- tools/virtio/ringtest/main.c | 4 ++--

[PATCH 31/54] md/raid5: Adjust two function calls together with a variable assignment

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 10:00:07 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code places. Signed-off-by: Markus Elfring --- drivers/md/raid5.c | 9 - 1 file c

[PATCH v13 07/15] irqchip/gicv3-its: Register the MSI doorbell

2016-10-06 Thread Eric Auger
This patch registers the ITS global doorbell. Registered information are needed to set up the KVM passthrough use case. Signed-off-by: Eric Auger --- v12 -> v13: - use new doorbell registration prototype v11 -> v12: - use new irq_get_msi_doorbell_info name - simplify error handling v10 -> v11:

[PATCH 40/54] md/raid10: Use kcalloc() in two functions

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 16:45:05 +0200 * Multiplications for the size determination of memory allocations indicated that array data structures should be processed. Thus use the corresponding function "kcalloc". This issue was detected by using the Coccinelle software. *

[RFC] PCI: Fix kernel panic of root-port-less PCIe enum due to ASPM

2016-10-06 Thread Serge Semin
Hello linux folks, Sometime ago I discovered a kernel panic popping up when PCI subsystem was trying to enumerate PCI express bus with ASPM service enabled. Here it is: [5.089667] CPU 0 Unable to handle kernel paging request at virtual address 0060, epc == 80317004, ra == 80316ac8 [

[PATCH 32/54] md/raid5: Move a brace for three designated initialisers

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 10:20:05 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: that open brace { should be on the previous line Signed-off-by: Markus Elfring --- drivers/md/raid5.c | 10 +++--- 1 file changed, 3 insertions(+), 7 del

[PATCH 37/54] md/raid5: Replace a seq_printf() call by seq_puts() in raid5_status()

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 14:40:27 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: Prefer seq_puts to seq_printf Signed-off-by: Markus Elfring --- drivers/md/raid5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

[PATCH 38/54] md/raid5: Move four asterisks

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 15:00:23 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: "foo* bar" should be "foo *bar" Signed-off-by: Markus Elfring --- drivers/md/raid5.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --gi

[PATCH 4.7 091/141] tracing: Have HIST_TRIGGERS select TRACING

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Tom Zanussi commit 7ad8fb61c4abf589596f0a4da34d987471481569 upstream. The kbuild test robot reported a compile error if HIST_TRIGGERS was enabled but nothing else that selected TRACING was conf

[PATCH 4.7 058/141] Bluetooth: split sk_filter in l2cap_sock_recv_cb

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann commit dbb50887c8f619fc5c3489783ebc3122bc134a31 upstream. During an audit for sk_filter(), we found that rx_busy_skb handling in l2cap_sock_recv_cb() and l2cap_sock_recvmsg() lo

Re: [PATCH 5/7] arm64/kvm: hyp: tlb: use __tlbi() helper

2016-10-06 Thread Punit Agrawal
Matthias Brugger writes: > On 13/09/16 12:16, Punit Agrawal wrote: >> From: Mark Rutland >> >> Now that we have a __tlbi() helper, make use of this in the arm64 KVM hyp >> code to get rid of asm() boilerplate. At the same time, we simplify >> __tlb_flush_vm_context by using __flush_icache_all(),

[PATCH 46/54] md/raid10: Less function calls in setup_conf() after error detection

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 18:32:30 +0200 Resource release functions were called in up to three cases by the setup_conf() function during error handling even if the passed data structure members contained a null pointer. Adjust jump targets according to the Linux coding style con

[PATCH 4.7 044/141] i40iw: Add missing NULL check for MPA private data

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Shiraz Saleem commit 5dfd5e5e3bc68ab3912acc712c8180942094fc69 upstream. Add NULL check for pdata and pdata->addr before the memcpy in i40iw_form_cm_frame(). This fixes a NULL pointer de-referen

Re: [Nbd] [PATCH][V3] nbd: add multi-connection support

2016-10-06 Thread Alex Bligh
Wouter, > On 6 Oct 2016, at 10:04, Wouter Verhelst wrote: > > Hi Alex, > > On Tue, Oct 04, 2016 at 10:35:03AM +0100, Alex Bligh wrote: >> Wouter, >>> I see now that it should be closer >>> to the former; a more useful definition is probably something along the >>> following lines: >>> >>> Al

amdgpu crash

2016-10-06 Thread Peter Maloney
Hi, I seem to have a crash in amdgpu. It results in a black screen with monitors in power save mode, but sysrq still works to reboot. (is this the right place to report it...?) It never failed this way with kernel 4.5.7, and fails every day when idle for a long time in kernel 4.7.6. > Oct 4 19:

[PATCH 47/54] md/raid10: Improve another size determination in raid10_start_reshape()

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 18:48:17 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer. Signed-off-by: Markus Elfring --- drivers/md/raid10.c | 2 +- 1

[PATCH 4.7 036/141] gpio: sa1100: fix irq probing for ucb1x00

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Russell King commit 56beac95cb88c188d2a885825a5da131edb41fe3 upstream. ucb1x00 has used IRQ probing since it's dawn to find the GPIO interrupt that it's connected to. However, commit 23393d49f

[PATCH 51/54] md/raid10: Adjust 22 checks for null pointers

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 21:36:43 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script "checkpatch.pl" pointed information out like the following. Comparison to NULL could be written … Thus fix the affected source code plac

[PATCH 45/54] md/raid10: Move assignments for the variable "err" in setup_conf()

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 18:26:45 +0200 One local variable was set to an error code before a concrete error situation was detected. Thus move the corresponding assignments into if branches to indicate a memory allocation failure there. Signed-off-by: Markus Elfring --- driver

[PATCH 4.7 056/141] MIPS: uprobes: fix use of uninitialised variable

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Marcin Nowakowski commit ca86c9ef2b322ebf24772009fdea037688cbdac1 upstream. arch_uprobe_pre_xol needs to emulate a branch if a branch instruction has been replaced with a breakpoint, but in fac

[PATCH 4.7 094/141] NFS/pnfs: Do not clobber existing pgio_done_cb in nfs4_proc_read_setup

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit ca857cc1d4cf17aba4bbb3b95d35454ad96924b3 upstream. If a pNFS client sets hdr->pgio_done_cb, then we should not overwrite that in nfs4_proc_read_setup() Fixes: 75bf47ebf6

[PATCH 44/54] md/raid10: Return directly after a failed kzalloc() in setup_conf()

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 17:46:02 +0200 * Return directly after a call of the function "kzalloc" failed at the beginning. * Delete a repeated check for the local variable "conf" which became unnecessary with this refactoring. * Reorder calls for the functions "kfree" and "

[PATCH 4.7 105/141] brcmsmac: Initialize power in brcms_c_stf_ss_algo_channel_get()

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli commit f823a2aa8f4674c095a5413b9e3ba12d82df06f2 upstream. wlc_phy_txpower_get_current() does a logical OR of power->flags, which presumes that power.flags was initiliazed earli

[PATCH 4.7 038/141] i40iw: Protect req_resource_num update

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Mustafa Ismail commit 44856be3e95c87f03e850ef4fdf8c0503c2dde18 upstream. In i40iw_alloc_resource(), ensure that the update to req_resource_num is protected by the lock. Fixes: 8e06af711bf2 ("i

[PATCH 4.7 014/141] mwifiex: illegal assignment

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Heinrich Schuchardt commit 3fdbda446fbcd7fb750179c01338e81cf04e46c7 upstream. Variable adapter is incorrectly initialized. Fixes: bf00dc22bc7a ("mwifiex: AMSDU Rx frame handling in AP mode") S

[PATCH 43/54] md/raid10: Return directly after detection of unsupported settings in setup_conf()

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 17:32:49 +0200 * Return directly after unsupported system settings were detected at the beginning. * Delete the explicit initialisation for the local variables "conf" and "err" which became unnecessary with this refactoring. Signed-off-by: Markus E

[PATCH 54/54] md/raid10: Add some spaces for better code readability

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 22:22:14 +0200 Use space characters at some source code places according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/md/raid10.c | 71 +++-- 1 file changed, 36 inserti

Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains

2016-10-06 Thread Rajendra Nayak
On 10/06/2016 01:55 PM, Jon Hunter wrote: > Hi Rajendra, > > On 06/10/16 07:04, Rajendra Nayak wrote: >> >> On 09/20/2016 03:58 PM, Jon Hunter wrote: >>> The Tegra124/210 XUSB subsystem (that consists of both host and device >>> controllers) is partitioned across 3 PM domains which are: >>> - XUS

[PATCH 41/54] md/raid10: Improve another size determination in setup_conf()

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 16:51:52 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer. Signed-off-by: Markus Elfring --- drivers/md/raid10.c | 2 +- 1

[PATCH 4.7 077/141] pstore: drop file opened reference count

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Geliang Tang commit 52d210d961a62a9662e27f14d6505d6741b2fb02 upstream. In ee1d267423a1 ("pstore: add pstore unregister") I added: .owner = THIS_MODULE, in both pstore_fs_type and pstore

[PATCH 49/54] md/raid10: Replace printk() calls by the usage of higher level interfaces

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 21:00:05 +0200 1. Add a definition for the macros "MY_LOG_PREFIX" and "pr_fmt" so that their information can be used for consistent message output. 2. Prefer usage of some higher level macros over calling "printk" directly in this software module.

[PATCH 4.7 031/141] iwlwifi: pcie: fix access to scratch buffer

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Sara Sharon commit d5d0689aefc59c6a5352ca25d7e6d47d03f543ce upstream. This fixes a pretty ancient bug that hasn't manifested itself until now. The scratchbuf for command queue is allocated only

[PATCH 50/54] md/raid10: Delete indentation for one jump label

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 21:07:35 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: labels should not be indented Thus fix the affected source code place. Signed-off-by: Markus Elfring --- drivers/md/raid10.c | 2 +- 1 file changed, 1 ins

[PATCH 4.7 055/141] MIPS: Malta: Fix IOCU disable switch read for MIPS64

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Paul Burton commit 305723ab439e14debc1d339aa04e835d488b8253 upstream. Malta boards used with CPU emulators feature a switch to disable use of an IOCU. Software has to check this switch & ignore

[PATCH 52/54] md/raid10: Replace a seq_printf() call by seq_puts() in raid10_status()

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 21:41:09 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: Prefer seq_puts to seq_printf Signed-off-by: Markus Elfring --- drivers/md/raid10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri

RE: [PATCH] bluetooth.h: __ variants of u8 and friends are not neccessary inside kernel

2016-10-06 Thread David Laight
From: Of Joe Perches ... > No worries, and bool is the same size as u8. That is not guaranteed at all. One of the ARM ABI defined bool to be the size of int. David

[PATCH 53/54] md/raid10: Delete two unwanted spaces behind asterisks

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 22:02:18 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Markus Elfring --- drivers/md/raid10.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 42/54] md/raid10: Delete an error message for a failed memory allocation

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 16:57:19 +0200 Omit an extra message for a memory allocation failure (and another corresponding condition check) in this function. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signed-off-by: Marku

[PATCH 48/54] md/raid10: Move a brace for a designated initialiser

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 5 Oct 2016 20:03:32 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: that open brace { should be on the previous line Signed-off-by: Markus Elfring --- drivers/md/raid10.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-

[PATCH 4.7 108/141] sysctl: handle error writing UINT_MAX to u32 fields

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Subash Abhinov Kasiviswanathan commit e7d316a02f683864a12389f8808570e37fb90aa3 upstream. We have scripts which write to certain fields on 3.18 kernels but this seems to be failing on 4.4 kernel

[PATCH net 01/13] rxrpc: Accesses of rxrpc_local::service need to be RCU managed

2016-10-06 Thread David Howells
struct rxrpc_local->service is marked __rcu - this means that accesses of it need to be managed using RCU wrappers. There are two such places in rxrpc_release_sock() where the value is checked and cleared. Fix this by using the appropriate wrappers. Signed-off-by: David Howells --- net/rxrpc/

Re: [PATCH 2/2] Revert "staging: wilc1000: Replace kthread with workqueue for host interface"

2016-10-06 Thread Aditya Shankar
On Fri, 30 Sep 2016 15:22:15 +0200 Greg KH wrote: > On Fri, Sep 30, 2016 at 03:43:18PM +0530, Aditya Shankar wrote: > > This reverts commit 2518ac59eb27 ("staging: wilc1000: Replace kthread > > with workqueue for host interface") > > > > This commit breaks wilc1000 driver init. A crash was seen

[PATCH net-next 00/13] rxrpc: Fixes

2016-10-06 Thread David Howells
This set of patches contains a bunch of fixes: (1) Fix an oops on incoming call to a local endpoint without a bound service. (2) Only ping for a lost reply in a client call (this is inapplicable to service calls). (3) Fix maybe uninitialised variable warnings in the ACK/ABORT sendi

[PATCH net 06/13] rxrpc: Fix loss of PING RESPONSE ACK production due to PING ACKs

2016-10-06 Thread David Howells
Separate the output of PING ACKs from the output of other sorts of ACK so that if we receive a PING ACK and schedule transmission of a PING RESPONSE ACK, the response doesn't get cancelled by a PING ACK we happen to be scheduling transmission of at the same time. If a PING RESPONSE gets lost, the

[PATCH 4.7 002/141] cgroup: fix invalid controller enable rejections with cgroup namespace

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Tejun Heo commit 9157056da8f8c4a6305f15619e269f164b63a6de upstream. On the v2 hierarchy, "cgroup.subtree_control" rejects controller enables if the cgroup has processes in it. The enforcement

[PATCH net 03/13] rxrpc: Fix oops on incoming call to serviceless endpoint

2016-10-06 Thread David Howells
If an call comes in to a local endpoint that isn't listening for any incoming calls at the moment, an oops will happen. We need to check that the local endpoint's service pointer isn't NULL before we dereference it. Signed-off-by: David Howells --- net/rxrpc/call_accept.c |2 +- 1 file cha

[PATCH net 07/13] rxrpc: Partially handle OpenAFS's improper termination of calls

2016-10-06 Thread David Howells
OpenAFS doesn't always correctly terminate client calls that it makes - this includes calls the OpenAFS servers make to the cache manager service. It should end the client call with either: (1) An ACK that has firstPacket set to one greater than the seq number of the reply DATA packet with t

[PATCH 4.7 005/141] mm,ksm: fix endless looping in allocating memory when ksm enable

2016-10-06 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: zhong jiang commit 5b398e416e880159fe55eefd93c6588fa072cd66 upstream. I hit the following hung task when runing a OOM LTP test case with 4.1 kernel. Call trace: [] __switch_to+0x74/0x8c [] __s

Re: [PATCH] arm64: mm: Fix memmap to be initialized for the entire section

2016-10-06 Thread Ard Biesheuvel
Hi Robert, Apologies for only responding now. I did not quite manage to get my head around your original email yet, but I don't think this patch is the correct solution. On 6 October 2016 at 10:52, Robert Richter wrote: > There is a memory setup problem on ThunderX systems with certain > memory

[PATCH net 02/13] rxrpc: Fix duplicate const

2016-10-06 Thread David Howells
Remove a duplicate const keyword. Signed-off-by: David Howells --- net/rxrpc/ar-internal.h |2 +- net/rxrpc/misc.c|2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/rxrpc/ar-internal.h b/net/rxrpc/ar-internal.h index d38dffd78085..4954e6e25819 100644 --- a

[PATCH net 05/13] rxrpc: Fix warning by splitting rxrpc_send_call_packet()

2016-10-06 Thread David Howells
Split rxrpc_send_data_packet() to separate ACK generation (which is more complicated) from ABORT generation. This simplifies the code a bit and fixes the following warning: In file included from ../net/rxrpc/output.c:20:0: net/rxrpc/output.c: In function 'rxrpc_send_call_packet': net/rxrpc/ar-int

[PATCH v6] net: ip, diag -- Add diag interface for raw sockets

2016-10-06 Thread Cyrill Gorcunov
In criu we are actively using diag interface to collect sockets present in the system when dumping applications. And while for unix, tcp, udp[lite], packet, netlink it works as expected, the raw sockets do not have. Thus add it. v2: - add missing sock_put calls in raw_diag_dump_one (by eric.dumaz

[PATCH net 13/13] rxrpc: Don't request an ACK on the last DATA packet of a call's Tx phase

2016-10-06 Thread David Howells
Don't request an ACK on the last DATA packet of a call's Tx phase as for a client there will be a reply packet or some sort of ACK to shift phase. If the ACK is requested, OpenAFS sends a REQUESTED-ACK ACK with soft-ACKs in it and doesn't follow up with a hard-ACK. If we don't set the flag, OpenA

[PATCH net 09/13] rxrpc: Add missing notification

2016-10-06 Thread David Howells
The call's background processor work item needs to notify the socket when it completes a call so that recvmsg() or the AFS fs can deal with it. Without this, call expiry isn't handled. Signed-off-by: David Howells --- net/rxrpc/call_event.c |1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH net 12/13] rxrpc: Need to produce an ACK for service op if op takes a long time

2016-10-06 Thread David Howells
We need to generate a DELAY ACK from the service end of an operation if we start doing the actual operation work and it takes longer than expected. This will hard-ACK the request data and allow the client to release its resources. To make this work: (1) We have to set the ack timer and propose a

[PATCH net 04/13] rxrpc: Only ping for lost reply in client call

2016-10-06 Thread David Howells
When a reply is deemed lost, we send a ping to find out the other end received all the request data packets we sent. This should be limited to client calls and we shouldn't do this on service calls. Signed-off-by: David Howells --- net/rxrpc/input.c |3 ++- 1 file changed, 2 insertions(+),

Re: MD-RAID: Fine-tuning for several function implementations

2016-10-06 Thread SF Markus Elfring
> This is not fine tuning but a waste of everyones time. Does any of the published 54 update steps contain changes which you might find also worthwhile for the affected source files so that the shown software situation can be improved further? Regards, Markus

Re: v4.8: working bluetooth support

2016-10-06 Thread Pali Rohár
On Thursday 06 October 2016 12:03:00 Pavel Machek wrote: > Hi! > > I got bluetooth to work in useful configuration (on n900). Perhaps it > is useful for Sebastian? > > Best regards, > Pavel > Hi! Is still bluetooth driver bas

Re: [PATCH] spmi: regmap: enable userspace writes

2016-10-06 Thread kgunda
On 2016-10-04 02:33, Stephen Boyd wrote: On 09/30, kgu...@codeaurora.org wrote: On 2016-09-29 23:30, Mark Brown wrote: >On Thu, Sep 29, 2016 at 05:06:26PM +0530, Kiran Gunda wrote: > >>-#undef REGMAP_ALLOW_WRITE_DEBUGFS >>+#define REGMAP_ALLOW_WRITE_DEBUGFS > >This is completely inappropriate fo

Re: [PATCH v9 17/19] drm/virtio: kconfig: Fix recursive dependency issue.

2016-10-06 Thread Emil Velikov
Hi Bjorn, On 27 September 2016 at 18:01, Bjorn Andersson wrote: > On Wed 21 Sep 05:09 PDT 2016, Emil Velikov wrote: > >> On 20 September 2016 at 09:32, Peter Griffin >> wrote: >> > Hi Emil, >> > >> > On Tue, 20 Sep 2016, Emil Velikov wrote: >> > >> >> On 5 September 2016 at 14:16, Peter Griffin

[PATCH net 08/13] rxrpc: Queue the call on expiry

2016-10-06 Thread David Howells
When a call expires, it must be queued for the background processor to deal with otherwise a service call that is improperly terminated will just sit there awaiting an ACK and won't expire. Signed-off-by: David Howells --- net/rxrpc/call_event.c | 10 ++ 1 file changed, 6 insertions(+

[PATCH net 10/13] rxrpc: Return negative error code to kernel service

2016-10-06 Thread David Howells
In rxrpc_kernel_recv_data(), when we return the error number incurred by a failed call, we must negate it before returning it as it's stored as positive (that's what we have to pass back to userspace). Signed-off-by: David Howells --- net/rxrpc/recvmsg.c |2 +- 1 file changed, 1 insertion(+

[PATCH net 11/13] afs: Check for fatal error when in waiting for ack state

2016-10-06 Thread David Howells
When it's in the waiting-for-ACK state, the AFS filesystem needs to check the result of rxrpc_kernel_recv_data() any time it is notified to see if it is indicating a fatal error. If this is the case, it needs to mark the call completed otherwise the call just sits there and never goes away. Signe

Re: [PATCH 2/9] mtd: spi-nor: add an alternative method to support memory >16MiB

2016-10-06 Thread Vignesh R
On Wednesday 05 October 2016 06:23 PM, Cyrille Pitchen wrote: > Hi Vignesh, > > Le 05/10/2016 à 14:12, Vignesh R a écrit : >> Hi, >> >> >> On Tuesday 04 October 2016 10:07 PM, Cyrille Pitchen wrote: >> [...] >>> static struct seq_rw_config stfsm_s25fl_write4_configs[] = { >>> diff --git a/drive

Re: [PATCH v2 6/8] blk-mq: Rework blk_mq_realloc_hw_ctxs()

2016-10-06 Thread Sagi Grimberg
On 06/10/16 11:25, Alexander Gordeev wrote: On Thu, Oct 06, 2016 at 12:47:26AM +0300, Sagi Grimberg wrote: @@ -1908,33 +1909,36 @@ static void blk_mq_realloc_hw_ctxs(struct blk_mq_tag_set *set, if (node == NUMA_NO_NODE) node = set->numa_node; -

Re: [PATCH v2 2/6] pwm: core: make the PWM_POLARITY flag in DTB optional

2016-10-06 Thread Lukasz Majewski
Hi Bhuvanchandra, > From: Lothar Wassmann > > Change the pwm chip driver registration, so that a chip driver that > supports polarity inversion can still be used with DTBs that don't > provide the 'PWM_POLARITY' flag. > > This is done to provide polarity inversion support for the pwm-imx > driv

Re: [Nbd] [PATCH][V3] nbd: add multi-connection support

2016-10-06 Thread Wouter Verhelst
On Thu, Oct 06, 2016 at 10:41:36AM +0100, Alex Bligh wrote: > Wouter, [...] > > Given that, given the issue in the previous > > paragraph, and given the uncertainty introduced with multiple > > connections, I think it is reasonable to say that a client should just > > not assume a flush touches any

Re: [PATCH] spi: dw: Enable Slave Select with GPIO Chip Select.

2016-10-06 Thread Mark Brown
On Wed, Oct 05, 2016 at 04:38:58PM -0500, ttha...@opensource.altera.com wrote: > This patch adds the Slave Select locally so that the transfer will > start and complete. The GPIO CS is taken care of earlier in the SPI > framework (spi_set_cs). This seems like something that other devices might ne

RE: [PATCH v2] scsi: ufshcd: fix possible unclocked register access

2016-10-06 Thread Kiwoong Kim
Hi, Subhash. Some UFS host controllers may need to call the vendor specific callback before and after controlling by clock control framework, regardless of whether available clocks are turned on or off. Is there any special reason to limit to invoke the callback only when the clocks are turned on

Re: [RFC][PATCH 4/4] futex: Rewrite FUTEX_UNLOCK_PI

2016-10-06 Thread Peter Zijlstra
On Mon, Oct 03, 2016 at 11:12:38AM +0200, Peter Zijlstra wrote: > There's a number of 'interesting' problems with FUTEX_UNLOCK_PI, all > caused by holding hb->lock while doing the rt_mutex_unlock() > equivalient. > > This patch doesn't attempt to fix any of the actual problems, but > instead rewor

Re: [Nbd] [PATCH][V3] nbd: add multi-connection support

2016-10-06 Thread Christoph Hellwig
On Thu, Oct 06, 2016 at 11:04:15AM +0200, Wouter Verhelst wrote: > In the current situation, a client could opportunistically send a number > of write requests immediately followed by a flush and hope for the best. > However, in that case there is no guarantee that for the write requests > that the

Re: [PATCH 2/2] Revert "staging: wilc1000: Replace kthread with workqueue for host interface"

2016-10-06 Thread Greg KH
On Thu, Oct 06, 2016 at 03:26:59PM +0530, Aditya Shankar wrote: > On Fri, 30 Sep 2016 15:22:15 +0200 > Greg KH wrote: > > > On Fri, Sep 30, 2016 at 03:43:18PM +0530, Aditya Shankar wrote: > > > This reverts commit 2518ac59eb27 ("staging: wilc1000: Replace kthread > > > with workqueue for host int

[PATCH 4.4 27/93] ceph: fix race during filling readdir cache

2016-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Yan, Zheng commit af5e5eb574776cdf1b756a27cc437bff257e22fe upstream. Readdir cache uses page cache to save dentry pointers. When adding dentry pointers to middle of a page, we need to make sure

Re: Kildall

2016-10-06 Thread Ove Bjørn Karlsen
Den 10/3/2016 17:10, skrev Ove Bjørn Karlsen: Den 10/3/2016 14:29, skrev Ove Bjørn Karlsen: I tried Linux in 2010, with the peak of the Ubuntu distribution, Karmic Koala. And soon compiled my own kernel for it. But little recognition of my later low-jitter work it would seem. (That actually r

Re: [Intel-gfx] [PATCH 4/6] drm/i915/gen9: Make skl_wm_level per-plane

2016-10-06 Thread Maarten Lankhorst
Op 05-10-16 om 22:33 schreef Paulo Zanoni: > Em Qua, 2016-10-05 às 11:33 -0400, Lyude escreveu: >> Having skl_wm_level contain all of the watermarks for each plane is >> annoying since it prevents us from having any sort of object to >> represent a single watermark level, something we take advantag

<    1   2   3   4   5   6   7   8   9   >