[PATCH v6 2/2] USB / PM: Allow USB devices to remain runtime-suspended when sleeping

2015-09-29 Thread Tomeu Vizoso
Have dev_pm_ops.prepare return 1 for USB devices and ports so that USB devices can remain runtime-suspended when the system goes to a sleep state, if their wakeup state is correct and they have runtime PM enabled. Signed-off-by: Tomeu Vizoso --- drivers/usb/core/port.c | 6 ++ drivers/usb

[PATCH 3.14 52/84] net: Clone skb before setting peeked flag

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Herbert Xu [ Upstream commit 738ac1ebb96d02e0d23bc320302a6ea94c612dec ] Shared skbs must not be modified and this is crucial for broadcast and/or multicast paths where we use it as an optimisa

[PATCH] ver_linux: uniform output across various linux distros

2015-09-29 Thread Alexander Kapshuk
On Mon, Sep 28, 2015 at 10:42 PM, Alexander Kapshuk wrote: > On Mon, Sep 28, 2015 at 5:09 PM, Greg KH wrote: >> On Mon, Sep 28, 2015 at 07:50:37AM +0300, Alexander Kapshuk wrote: >>> Hello, >> >> Hi! >> >> First off, your Subject: is a bit odd, you might want to fix up your >> email client :) >>

[PATCH v6 0/2] Allow USB devices to remain runtime-suspended when sleeping

2015-09-29 Thread Tomeu Vizoso
Hi, this is v6 of an attempt to make it easier for devices to remain in runtime PM when the system goes to sleep, mainly to reduce the time spent resuming devices. For this, we interpret the absence of all PM callback implementations as it being safe to do direct_complete, so their ancestors aren

[PATCH 3.14 56/84] isdn/gigaset: reset tty->receive_room when attaching ser_gigaset

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Tilman Schmidt [ Upstream commit fd98e9419d8d622a4de91f76b306af6aa627aa9c ] Commit 79901317ce80 ("n_tty: Don't flush buffer when closing ldisc"), first merged in kernel release 3.10, caused th

[PATCH 3.14 32/84] md/raid10: always set reshape_safe when initializing reshape_position.

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit 299b0685e31c9f3dcc2d58ee3beca761a40b44b3 upstream. 'reshape_position' tracks where in the reshape we have reached. 'reshape_safe' tracks where in the reshape we have safely re

[PATCH 3.14 50/84] net: do not process device backlog during unregistration

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Julian Anastasov [ Upstream commit e9e4dd3267d0c5234c5c0f47440456b10875dec9 ] commit 381c759d9916 ("ipv4: Avoid crashing in ip_error") fixes a problem where processed packet comes from device

[PATCH v6 1/2] PM / sleep: Go direct_complete if driver has no callbacks

2015-09-29 Thread Tomeu Vizoso
If a suitable prepare callback cannot be found for a given device and its driver has no PM callbacks at all, assume that it can go direct to complete when the system goes to sleep. The reason for this is that there's lots of devices in a system that do no PM at all and there's no reason for them t

Re: [PATCH v6 3/6] x86, efi, kasan: #undef memset/memcpy/memmove per arch.

2015-09-29 Thread Andrey Ryabinin
2015-09-29 11:38 GMT+03:00 Ingo Molnar : > > * Andrey Ryabinin wrote: > >> In not-instrumented code KASAN replaces instrumented >> memset/memcpy/memmove with not-instrumented analogues >> __memset/__memcpy/__memove. >> However, on x86 the EFI stub is not linked with the kernel. >> It uses not-inst

[PATCH 3.14 47/84] net/tipc: initialize security state for new connection socket

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Stephen Smalley [ Upstream commit fdd75ea8df370f206a8163786e7470c1277a5064 ] Calling connect() with an AF_TIPC socket would trigger a series of error messages from SELinux along the lines of:

[PATCH 3.14 30/84] fs: if a coredump already exists, unlink and recreate with O_EXCL

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Jann Horn commit fbb1816942c04429e85dbf4c1a080accc534299e upstream. It was possible for an attacking user to trick root (or another user) into writing his coredumps into an attacker-readable,

[PATCH 3.14 31/84] mmc: core: fix race condition in mmc_wait_data_done

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Jialing Fu commit 71f8a4b81d040b3d094424197ca2f1bf811b1245 upstream. The following panic is captured in ker3.14, but the issue still exists in latest kernel. --

[PATCH 3.14 40/84] stmmac: fix check for phydev being open

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Alexey Brodkin commit dfc50fcaad574e5c8c85cbc83eca1426b2413fa4 upstream. Current check of phydev with IS_ERR(phydev) may make not much sense because of_phy_connect() returns NULL on failure in

[PATCH 3.14 66/84] net/ipv6: Correct PIM6 mrt_lock handling

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Richard Laing [ Upstream commit 25b4a44c19c83d98e8c0807a7ede07c1f28eab8b ] In the IPv6 multicast routing code the mrt_lock was not being released correctly in the MFC iterator, as a result add

[PATCH 3.14 06/84] arm64: kconfig: Move LIST_POISON to a safe value

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Jeff Vander Stoep commit bf0c4e04732479f650ff59d1ee82de761c0071f0 upstream. Move the poison pointer offset to 0xdead, a recognized value that is not mappable by user-space exploits

[PATCH 3.14 45/84] rtnetlink: verify IFLA_VF_INFO attributes before passing them to driver

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ Upstream commit 4f7d2cdfdde71ffe962399b7020c674050329423 ] Jason Gunthorpe reported that since commit c02db8c6290b ("rtnetlink: make SR-IOV VF interface symmetric"), we don't

Re: [RFC][PATCH 06/11] sched: Fix trace_sched_switch()

2015-09-29 Thread Steven Rostedt
On Tue, 29 Sep 2015 11:28:31 +0200 Peter Zijlstra wrote: > __trace_sched_switch_state() is the last remaining PREEMPT_ACTIVE > user, move trace_sched_switch() from prepare_task_switch() to > __schedule() and propagate the @preempt argument. > > Signed-off-by: Peter Zijlstra (Intel) > --- > inc

[PATCH 3.14 49/84] net: pktgen: fix race between pktgen_thread_worker() and kthread_stop()

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Oleg Nesterov [ Upstream commit fecdf8be2d91e04b0a9a4f79ff06499a36f5d14f ] pktgen_thread_worker() is obviously racy, kthread_stop() can come between the kthread_should_stop() check and set_cur

[PATCH 3.14 42/84] hfs,hfsplus: cache pages correctly between bnode_create and bnode_free

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Hin-Tak Leung commit 7cb74be6fd827e314f81df3c5889b87e4c87c569 upstream. Pages looked up by __hfs_bnode_create() (called by hfs_bnode_create() and hfs_bnode_find() for finding or creating pages

[PATCH 3.14 41/84] stmmac: troubleshoot unexpected bits in des0 & des1

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Alexey Brodkin commit f1590670ce069eefeb93916391a67643e6ad1630 upstream. Current implementation of descriptor init procedure only takes care about setting/clearing ownership flag in "des0"/"de

[PATCH 3.14 51/84] net: call rcu_read_lock early in process_backlog

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Julian Anastasov [ Upstream commit 2c17d27c36dcce2b6bf689f41a46b9e909877c21 ] Incoming packet should be either in backlog queue or in RCU read-side section. Otherwise, the final sequence of fl

Re: [PATCH v3 2/2] regmap: Add iBT register access over HCI support

2015-09-29 Thread Mark Brown
On Tue, Sep 29, 2015 at 03:05:45PM +0200, Loic Poulain wrote: > Add support for Intel Bluetooth silicon register access over HCI. > Intel BT/FM combo chip allows to read/write some registers (e.g. FM > registers) via its HCI interface. If this is specific to some devices it should go into the dri

Re: [RFC][PATCH 05/11] sched: Add preempt argument to __schedule()

2015-09-29 Thread Peter Zijlstra
On Tue, Sep 29, 2015 at 11:30:26AM -0400, Steven Rostedt wrote: > On Tue, 29 Sep 2015 11:28:39 -0400 > Steven Rostedt wrote: > > > On Tue, 29 Sep 2015 11:28:30 +0200 > > Peter Zijlstra wrote: > > > > > There is only a single PREEMPT_ACTIVE use in the regular __schedule() > > > path and that is

Re: PCIe bus (re-)numbering

2015-09-29 Thread Yinghai Lu
On Tue, Sep 29, 2015 at 7:04 AM, Ruud wrote: > > (for illustration, lspci -tv from a 3.2 kernel, hand edited as the > original picture has already discovered the subordinate busses) > +-02.0-[04-17]00.0-[05-17]--+-04.0-[06-16]00.0-[07-16]--- > |

[PATCH 3.14 28/84] parisc: Filter out spurious interrupts in PA-RISC irq handler

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Helge Deller commit b1b4e435e4ef7de77f07bf2a42c8380b960c2d44 upstream. When detecting a serial port on newer PA-RISC machines (with iosapic) we have a long way to go to find the right IRQ line

[PATCH 3.14 44/84] net: graceful exit from netif_alloc_netdev_queues()

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit d339727c2b1a10f25e6636670ab6e1841170e328 ] User space can crash kernel with ip link add ifb10 numtxqueues 10 type ifb We must replace a BUG_ON() by proper

[PATCH 3.14 39/84] IB/mlx4: Use correct SL on AH query under RoCE

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Noa Osherovich commit 5e99b139f1b68acd65e36515ca347b03856dfb5a upstream. The mlx4 IB driver implementation for ib_query_ah used a wrong offset (28 instead of 29) when link type is Ethernet. Fi

[PATCH 3.14 17/84] CIFS: fix type confusion in copy offload ioctl

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Jann Horn commit 4c17a6d56bb0cad3066a714e94f7185a24b40f49 upstream. This might lead to local privilege escalation (code execution as kernel) for systems where the following conditions are met:

Re: [PATCH] CHROMIUM: drm: bridge/dw_hdmi: Eliminate unused cable_plugin

2015-09-29 Thread Russell King - ARM Linux
On Tue, Sep 29, 2015 at 01:07:25PM +0200, Thierry Reding wrote: > On Fri, Sep 25, 2015 at 10:29:51AM +0200, Philipp Zabel wrote: > > Am Montag, den 21.09.2015, 15:15 +0100 schrieb Russell King - ARM Linux: > > > On Mon, Sep 21, 2015 at 11:51:06AM +0200, Thierry Reding wrote: > > > > On Wed, Sep 16,

[PATCH 3.14 38/84] IB/mlx4: Forbid using sysfs to change RoCE pkeys

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Jack Morgenstein commit 2b135db3e81301d0452e6aa107349abe67b097d6 upstream. The pkey mapping for RoCE must remain the default mapping: VFs: virtual index 0 = mapped to real index 0 (0x)

Re: [RFC][PATCH 07/11] sched: Stop setting PREEMPT_ACTIVE

2015-09-29 Thread Steven Rostedt
On Tue, 29 Sep 2015 11:28:32 +0200 Peter Zijlstra wrote: > Now that nothing tests for PREEMPT_ACTIVE anymore, stop setting it. > > Signed-off-by: Peter Zijlstra (Intel) > @@ -3243,13 +3243,7 @@ asmlinkage __visible void __sched notrac > return; > > do { > - /

[PATCH 3.14 20/84] x86/mm: Initialize pmd_idx in page_table_range_init_count()

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Minfei Huang commit 9962eea9e55f797f05f20ba6448929cab2a9f018 upstream. The variable pmd_idx is not initialized for the first iteration of the for loop. Assign the proper value which indexes t

Re: [RFC][PATCH 10/11] sched: Kill PREEMPT_ACTIVE

2015-09-29 Thread Steven Rostedt
On Tue, 29 Sep 2015 11:28:35 +0200 Peter Zijlstra wrote: > Its unused, kill the definition. > > Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Steven Rostedt -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.ke

Re: [RFC][PATCH 08/11] sched: Simplify preempt_count tests

2015-09-29 Thread Steven Rostedt
On Tue, 29 Sep 2015 11:28:33 +0200 Peter Zijlstra wrote: > Since we stopped setting PREEMPT_ACTIVE, there is no need to mask it > out of preempt_count() tests. > > Signed-off-by: Peter Zijlstra (Intel) > --- Reviewed-by: Steven Rostedt -- Steve > include/linux/preempt.h |3 +-- > kerne

[PATCH 3.14 23/84] Btrfs: check if previous transaction aborted to avoid fs corruption

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Filipe Manana commit 1f9b8c8fbc9a4d029760b16f477b9d15500e3a34 upstream. While we are committing a transaction, it's possible the previous one is still finishing its commit and therefore we wai

[PATCH 3.14 22/84] [media] v4l: omap3isp: Fix sub-device power management code

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Sakari Ailus commit 9d39f05490115bf145e5ea03c0b7ec9d3d015b01 upstream. Commit 813f5c0ac5cc ("media: Change media device link_notify behaviour") modified the media controller link setup notific

[PATCH 3.14 24/84] NFSv4: dont set SETATTR for O_RDONLY|O_EXCL

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit efcbc04e16dfa95fef76309f89710dd1d99a5453 upstream. It is unusual to combine the open flags O_RDONLY and O_EXCL, but it appears that libre-office does just that. [pid 3250] s

[PATCH 3.14 10/84] arm64: KVM: Disable virtual timer even if the guest is not using it

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Marc Zyngier commit c4cbba9fa078f55d9f6d081dbb4aec7cf969e7c7 upstream. When running a guest with the architected timer disabled (with QEMU and the kernel_irqchip=off option, for example), it i

[PATCH 3.14 04/84] tg3: Fix temperature reporting

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Jean Delvare commit d3d11fe08ccc9bff174fc958722b5661f0932486 upstream. The temperature registers appear to report values in degrees Celsius while the hwmon API mandates values to be exposed in

[PATCH 3.14 19/84] mm: check if section present during memory block registering

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Yinghai Lu commit 04697858d89e4bf2650364f8d6956e2554e8ef88 upstream. Tony Luck found on his setup, if memory block size 512M will cause crash during booting. BUG: unable to handle kernel pa

[PATCH 3.14 25/84] NFS: Fix a NULL pointer dereference of migration recovery ops for v4.2 client

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Kinglong Mee commit 18e3b739fdc826481c6a1335ce0c5b19b3d415da upstream. ---Steps to Reproduce-- # cat /etc/exports /nfs/referal *(rw,insecure,no_subtree_check,no_root_squash,crossmnt) /nfs/ol

[PATCH v3 1/4] ASoC: Add SOC_DOUBLE_R_EXT

2015-09-29 Thread Adam Thomson
_EXT version of SOC_DOUBLE_R required to allow for custom handlers. Signed-off-by: Adam Thomson --- include/sound/soc.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/sound/soc.h b/include/sound/soc.h index 884e728..2d79cb5 100644 --- a/include/sound/soc.h +++ b/include/sound

[PATCH 3.14 26/84] NFS: nfs_set_pgio_error sometimes misses errors

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit e9ae58aeee8842a50f7e199d602a5ccb2e41a95f upstream. We should ensure that we always set the pgio_header's error field if a READ or WRITE RPC call returns an error. The cu

[PATCH 3.14 18/84] Add radeon suspend/resume quirk for HP Compaq dc5750.

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Jeffery Miller commit 09bfda10e6efd7b65bcc29237bee1765ed779657 upstream. With the radeon driver loaded the HP Compaq dc5750 Small Form Factor machine fails to resume from suspend. Adding a qui

Re: [RFC][PATCH 09/11] sched, x86: Kill saved_preempt_count

2015-09-29 Thread Steven Rostedt
On Tue, 29 Sep 2015 11:28:34 +0200 Peter Zijlstra wrote: > With the introduction of the context switch preempt_count invariant, > and the demise of PREEMPT_ACTIVE, its pointless to save/restore the > per-cpu preemption count, it must always be 2. > > Signed-off-by: Peter Zijlstra (Intel) Shoul

[PATCH 3.14 16/84] powerpc/mm: Recompute hash value after a failed update

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: "Aneesh Kumar K.V" commit 36b35d5d807b7e57aff7d08e63de8b17731ee211 upstream. If we had secondary hash flag set, we ended up modifying hash value in the updatepp code path. Hence with a failed

[PATCH 3.14 09/84] arm64: errata: add module build workaround for erratum #843419

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit df057cc7b4fa59e9b55f07ffdb6c62bf02e99a00 upstream. Cortex-A53 processors <= r0p4 are affected by erratum #843419 which can lead to a memory access using an incorrect address

Re: [RFC][PATCH 06/11] sched: Fix trace_sched_switch()

2015-09-29 Thread Peter Zijlstra
On Tue, Sep 29, 2015 at 11:38:12AM -0400, Steven Rostedt wrote: > On Tue, 29 Sep 2015 11:28:31 +0200 > Peter Zijlstra wrote: > > > +static inline long __trace_sched_switch_state(bool preempt, struct > > task_struct *p) > > { > > + return preempt ? TASK_RUNNING | TASK_STATE_MAX : p->state; > >

Re: [RFC][PATCH 09/11] sched, x86: Kill saved_preempt_count

2015-09-29 Thread Peter Zijlstra
On Tue, Sep 29, 2015 at 11:44:04AM -0400, Steven Rostedt wrote: > On Tue, 29 Sep 2015 11:28:34 +0200 > Peter Zijlstra wrote: > > > With the introduction of the context switch preempt_count invariant, > > and the demise of PREEMPT_ACTIVE, its pointless to save/restore the > > per-cpu preemption co

[PATCH v3 0/4] ASoC: Add support for DA7219 audio codec

2015-09-29 Thread Adam Thomson
This patch set adds support for the DA7219 audio codec with built-in advanced accessory detection functionality. Patch set includes codec driver, associated DT bindings documentation and MAINTAINERS file updates to cover new bindings. This patch set is baselined against the v4.3-rc3 kernel version

[PATCH 3.14 11/84] Input: evdev - do not report errors form flush()

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit eb38f3a4f6e86f8bb10a3217ebd85ecc5d763aae upstream. We've got bug reports showing the old systemd-logind (at least system-210) aborting unexpectedly, and this turned out to

Re: [RFC][PATCH 11/11] sched: More notrace

2015-09-29 Thread Steven Rostedt
On Tue, 29 Sep 2015 11:28:36 +0200 Peter Zijlstra wrote: > preempt_schedule_common() is marked notrace, but it does not use > _notrace() preempt_count functions and __schedule() is also not marked > notrace, which means that its perfectly possible to end up in the > tracer from preempt_schedule_c

Re: [PATCH net-next 4/6] net: switchdev: pass callback to dump operation

2015-09-29 Thread kbuild test robot
Hi Vivien, [auto build test results on next-20150929 -- if it's inappropriate base, please ignore] config: i386-randconfig-s1-201539 (attached as .config) reproduce: git checkout b215cce51157820c4fb92ecfdc72f281a4286676 # save the attached .config to linux build tree make ARCH=i386

[PATCH v3 3/4] ASoC: da7219: Add bindings documentation for DA7219 audio codec

2015-09-29 Thread Adam Thomson
Signed-off-by: Adam Thomson --- Documentation/devicetree/bindings/sound/da7219.txt | 106 + 1 file changed, 106 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/da7219.txt diff --git a/Documentation/devicetree/bindings/sound/da7219.txt b/Documentatio

Re: [PATCH v3 3/5] mfd: tps65912: Add driver for the TPS65912 PMIC

2015-09-29 Thread Andrew F. Davis
On 09/29/2015 02:19 AM, Lee Jones wrote: On Mon, 28 Sep 2015, Andrew F. Davis wrote: On 09/25/2015 04:24 PM, Lee Jones wrote: On Fri, 25 Sep 2015, Andrew F. Davis wrote: On 09/25/2015 11:50 AM, Lee Jones wrote: On Thu, 24 Sep 2015, Andrew F. Davis wrote: This patch adds support for TPS659

Re: [PATCH] sched/fair: Skip wake_affine() for core siblings

2015-09-29 Thread Kirill Tkhai
On 29.09.2015 17:55, Mike Galbraith wrote: > On Mon, 2015-09-28 at 18:36 +0300, Kirill Tkhai wrote: > >> --- >> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c >> index 4df37a4..dfbe06b 100644 >> --- a/kernel/sched/fair.c >> +++ b/kernel/sched/fair.c >> @@ -4930,8 +4930,13 @@ select_task_

[PATCH 0/2] coredump: make SIGNAL_GROUP_COREDUMP more friendly to oom-killer

2015-09-29 Thread Oleg Nesterov
Just in case, this doesn't depend on the previous series I sent. Tetsuo, iirc we already discussed the change in 1/2 some time ago, could you review? Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majord

[PATCH 1/2] coredump: ensure all coredumping tasks have

2015-09-29 Thread Oleg Nesterov
task_will_free_mem() is wrong in many ways, and in particular the SIGNAL_GROUP_COREDUMP check is not reliable: a task can participate in the coredumping without SIGNAL_GROUP_COREDUMP bit set. change zap_threads() paths to always set SIGNAL_GROUP_COREDUMP even if other CLONE_VM processes can't reac

Re: [PATCH 3/3] Thermal: do thermal zone update after a cooling device registered

2015-09-29 Thread Javi Merino
Hi Yu, On Mon, Sep 28, 2015 at 06:52:00PM +0100, Chen, Yu C wrote: > Hi, Javi, > > > -Original Message- > > From: Javi Merino [mailto:javi.mer...@arm.com] > > Sent: Monday, September 28, 2015 10:29 PM > > To: Chen, Yu C > > Cc: linux...@vger.kernel.org; edubez...@gmail.com; Zhang, Rui; li

Re: [PATCH 15/25] perf report: Make max_stack value allow for synthesized callchains

2015-09-29 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 29, 2015 at 11:52:37AM +0300, Adrian Hunter escreveu: > On 28/09/15 23:03, Arnaldo Carvalho de Melo wrote: > > Em Fri, Sep 25, 2015 at 04:15:46PM +0300, Adrian Hunter escreveu: > >> perf report has an option (--max-stack) to set the maximum stack depth > >> when processing callchains.

[PATCH 2/2] coredump: change zap_threads() and zap_process() to use

2015-09-29 Thread Oleg Nesterov
Change zap_threads() paths to use for_each_thread() rather than while_each_thread(). While at it, change zap_threads() to avoid the nested if's to make the code more readable and lessen the indentation. Signed-off-by: Oleg Nesterov --- fs/coredump.c | 27 +-- 1 file chan

Re: [PATCH] sched/fair: Skip wake_affine() for core siblings

2015-09-29 Thread Kirill Tkhai
On 29.09.2015 19:00, Kirill Tkhai wrote: > > > On 29.09.2015 17:55, Mike Galbraith wrote: >> On Mon, 2015-09-28 at 18:36 +0300, Kirill Tkhai wrote: >> >>> --- >>> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c >>> index 4df37a4..dfbe06b 100644 >>> --- a/kernel/sched/fair.c >>> +++ b/ker

[PATCH v3 2/4] ASoC: codecs: Add da7219 codec driver

2015-09-29 Thread Adam Thomson
This adds support for the DA7219 audio codec with built-in advanced accessory detect features. Signed-off-by: Adam Thomson --- include/sound/da7219-aad.h| 99 +++ include/sound/da7219.h| 55 ++ sound/soc/codecs/Kconfig |4 + sound/soc/codecs/Makefile |2 + sound/

Re: [RFC PATCH] PCI/pci-host-generic: Add support for Cavium Thunder fixed BARs.

2015-09-29 Thread David Daney
On 09/29/2015 12:42 AM, Arnd Bergmann wrote: On Monday 28 September 2015 17:56:24 David Daney wrote: From: David Daney Early versions of the Cavium Thunder CN88XX processor are missing Enhanced Allocation (EA) capabilities for the fixed BAR addresses used by the on-SoC hardware blocks. Add co

[PATCH 3.14 05/84] mac80211: enable assoc check for mesh interfaces

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Bob Copeland commit 3633ebebab2bbe88124388b7620442315c968e8f upstream. We already set a station to be associated when peering completes, both in user space and in the kernel. Thus we should a

[PATCH 3.14 15/84] powerpc/rtas: Introduce rtas_get_sensor_fast() for IRQ handlers

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Huth commit 1c2cb594441d02815d304cccec9742ff5c707495 upstream. The EPOW interrupt handler uses rtas_get_sensor(), which in turn uses rtas_busy_delay() to wait for RTAS becoming ready in

Re: [PATCH 05/17] fs/exofs: remove unnecessary new_valid_dev check

2015-09-29 Thread Yaowei Bai
On Tue, Sep 29, 2015 at 04:47:30PM +0300, Boaz Harrosh wrote: > On 09/28/2015 04:43 PM, Yaowei Bai wrote: > > As new_valid_dev always returns 1, so !new_valid_dev check is not > > needed, remove it. > > > > Signed-off-by: Yaowei Bai > > ACK-by: Boaz Harrosh Thanks. > > Please submit this thr

[PATCH v3 4/4] MAINTAINERS: da7219: Add entry to cover DA7219 bindings document

2015-09-29 Thread Adam Thomson
This adds an entry to indicate the DA7219 bindings document (and other Dialog codecs bindings documents) are supported. Signed-off-by: Adam Thomson --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9f6685f..2a14a19 100644 --- a/MAINTAINERS +++ b/

Re: [Xen-devel] [PATCHv3 00/10] mm, xen/balloon: memory hotplug improvements

2015-09-29 Thread David Vrabel
On 30/07/15 18:03, David Vrabel wrote: > The series improves the use of hotplug memory in the Xen balloon > driver. > > - Reliably find a non-conflicting location for the hotplugged memory > (this fixes memory hotplug in a number of cases, particularly in > dom0). > > - Use hotplugged memory

[PATCH] misc/genwqe: get rid of atomic allocations

2015-09-29 Thread Sebastian Ott
Hi, we received reports of failed allocations in genwqe code: [ 733.550955] genwqe_gzip: page allocation failure: order:1, mode:0x20 [ 733.550964] CPU: 2 PID: 1846 Comm: genwqe_gzip Not tainted 4.3.0-rc3-00042-g3225031 #78 [ 733.550968]2782b830 2782b8c0 000

Trivial clocksource driver

2015-09-29 Thread Mason
Hello everyone, I am trying to submit a new ARM port, and Arnd pointed out that the clocksource code could not live in arch/arm/$PLATFORM, but had to move to drivers/clocksource (and it had to support DT). Did I understand correctly? Is this the right place to submit code as provided below? Rega

[PATCH] x86: include: asm: Fix build warning

2015-09-29 Thread Ksenija Stanojevic
Fix build warnings: error: implicit declaration of function ‘olpc_board_at_least’ [-Werror=implicit-function-declaration] error: implicit declaration of function ‘olpc_board’ [-Werror=implicit-function-declaration] in files: drivers/power/olpc_battery.c drivers/input/mouse/hgpk.c drivers/stagin

Re: [Xen-devel] [PATCH v4 00/20] xen/arm64: Add support for 64KB page in Linux

2015-09-29 Thread David Vrabel
On 07/09/15 16:33, Julien Grall wrote: > > A branch based on the latest xentip/for-linus-4.3 can be found here: > > git://xenbits.xen.org/people/julieng/linux-arm.git branch xen-64k-v4 This has too many conflicts with the git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.4 br

Re: [RFC][PATCH 07/11] sched: Stop setting PREEMPT_ACTIVE

2015-09-29 Thread Peter Zijlstra
On Tue, Sep 29, 2015 at 11:41:02AM -0400, Steven Rostedt wrote: > On Tue, 29 Sep 2015 11:28:32 +0200 > Peter Zijlstra wrote: > > > Now that nothing tests for PREEMPT_ACTIVE anymore, stop setting it. > > > > Signed-off-by: Peter Zijlstra (Intel) > > > > @@ -3243,13 +3243,7 @@ asmlinkage __visi

[v4.3.0-rc2->3] Regression: BIG networking performance loss

2015-09-29 Thread Jörg Otte
With kernels vmlinuz-4.3.0-rc2-00228-gd4a748a and earlier it is no problem for me to stream HD-videos (700-800 Kbyte/s) from YouTube. With the same video material and kernels vmlinuz-4.3.0-rc2-00438-gd8cc397 and later I only reach 70-80 KByte/s. That's a one-tenth than before. The merges between

Re: [PATCH v4 1/2] ARM: irqchip: mxs: prepare driver for HW with different offsets

2015-09-29 Thread Thomas Gleixner
On Wed, 23 Sep 2015, Oleksij Rempel wrote: Subject: irqchip/mxs: . Please > +struct icoll_priv { > + void __iomem *vector; > + void __iomem *levelack; > + void __iomem *ctrl; > + void __iomem *stat; > + void __iomem *intr; > + /* number of interrupts per register */ >

[PATCH v2 net-next 0/6] net: switchdev: use specific switchdev_obj_*

2015-09-29 Thread Vivien Didelot
This patchset changes switchdev add, del, dump operations from this: int (*switchdev_port_obj_add)(struct net_device *dev, struct switchdev_obj *obj, struct switchdev_trans *trans); int (*switchdev_port_obj

[PATCH v2 net-next 3/6] net: switchdev: remove dev from switchdev_obj cb

2015-09-29 Thread Vivien Didelot
The net_device associated to a dump operation does not have to be passed to the callback. switchdev stores it in a superset struct, if needed. Also some drivers (such as DSA drivers) may not have easy access to it. This will simplify pushing the callback function down to the drivers. Signed-off-

Re: [PATCH 09/10] iommu/amd: Clear the iommu pre enabled setting

2015-09-29 Thread Joerg Roedel
On Thu, Sep 24, 2015 at 02:37:35PM +0800, Baoquan He wrote: > @@ -2469,6 +2469,8 @@ static dma_addr_t __map_single(struct device *dev, > unsigned long align_mask = 0; > int i; > > + if (translation_pre_enabled()) > + clear_translation_pre_enabled(); There is probably

[PATCH 2/4] Input: turbografx - use parallel port device model

2015-09-29 Thread Sudip Mukherjee
Modify turbografx driver to use the new Parallel Port device model. Signed-off-by: Sudip Mukherjee --- drivers/input/joystick/turbografx.c | 100 ++-- 1 file changed, 51 insertions(+), 49 deletions(-) diff --git a/drivers/input/joystick/turbografx.c b/drivers/in

[PATCH] hsi: fix double kfree

2015-09-29 Thread Geliang Tang
Already 'kfree' in hsi_client_release(), no need to 'kfree' in err3. Signed-off-by: Geliang Tang --- drivers/hsi/hsi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hsi/hsi.c b/drivers/hsi/hsi.c index fe93712..35d631e 100644 --- a/drivers/hsi/hsi.c +++ b/drivers/hsi/hsi.c @@ -300,7

backport "Revert 'block: remove artifical max_hw_sectors cap'"

2015-09-29 Thread Mikulas Patocka
Hi I saw your patch 30e2bc08b2bb7c069246feee78f7ed4006e130fe (Revert "block: remove artifical max_hw_sectors cap"). I think you should backport it to stable kernels as there are still unresolved errors caused by the original patch 34b48db66e08ca1c1bc07cf305d672ac940268dc that increases maximum

[PATCH 3/4] Input: serio - use parallel port device model

2015-09-29 Thread Sudip Mukherjee
Modify parkbd driver to use the new Parallel Port device model. Signed-off-by: Sudip Mukherjee --- drivers/input/serio/parkbd.c | 55 +--- 1 file changed, 37 insertions(+), 18 deletions(-) diff --git a/drivers/input/serio/parkbd.c b/drivers/input/serio/pa

Re: [PATCH 06/10] iommu/amd: Add functions copy_command_buffer/copy_event_buffer

2015-09-29 Thread Joerg Roedel
On Thu, Sep 24, 2015 at 02:37:32PM +0800, Baoquan He wrote: > Copy command buffer and event buffer from the old to kdump kernel. > > Still there are 2 problems: > 1) Not very sure if this is necessary. If do not copy the old command > buffer, and > only set the newly allocated command buffer, i

[PATCH 4/4] Input: walkera0701 - use parallel port device model

2015-09-29 Thread Sudip Mukherjee
Modify walkera0701 driver to use the new Parallel Port device model. Signed-off-by: Sudip Mukherjee --- drivers/input/joystick/walkera0701.c | 64 +--- 1 file changed, 37 insertions(+), 27 deletions(-) diff --git a/drivers/input/joystick/walkera0701.c b/drivers/

Re: [PATCH 4/6] irq: add a new generic IPI handling code to irq core

2015-09-29 Thread Thomas Gleixner
On Thu, 24 Sep 2015, Qais Yousef wrote: > The CPUs we want to send the IPI to are not Linux CPUs only. My use case is > about sending IPI to audio coprocessor. > So "dest" doesn't have to be part of Linux online CPUs, hence we need to > specify it so that the underlying controller will know how to

[PATCH v2 net-next 4/6] net: switchdev: pass callback to dump operation

2015-09-29 Thread Vivien Didelot
Similar to the notifier_call callback of a notifier_block, change the function signature of switchdev dump operation to: int switchdev_port_obj_dump(struct net_device *dev, enum switchdev_obj_id id, void *obj, int (*cb)(void *obj)

[PATCH v2 net-next 6/6] net: switchdev: extract struct switchdev_obj_*

2015-09-29 Thread Vivien Didelot
Now that switchdev and its drivers directly use specific switchdev_obj_* structures, move them out of the switchdev_obj union and get rif of this outer structure. Signed-off-by: Vivien Didelot --- include/net/switchdev.h | 53 - 1 file changed, 26

[PATCH v2 net-next 5/6] net: switchdev: abstract object in add/del ops

2015-09-29 Thread Vivien Didelot
Similar to the notifier_call callback of a notifier_block, change the function signature of switchdev add and del operations to: int switchdev_port_obj_add/del(struct net_device *dev, enum switchdev_obj_id id, void *obj); This allows the caller to pass a spe

Re: [PATCH] thermal: cpu_cooling: Remove usage of devm functions

2015-09-29 Thread Javi Merino
Hi Eduardo, Rui, On Thu, Aug 27, 2015 at 02:57:08AM +0100, Viresh Kumar wrote: > On Wed, Aug 19, 2015 at 11:52 AM, Vaishali Thakkar > wrote: > > In the function cpufreq_get_requested_power, the memory allocated > > for load_cpu is live within the function only. And after the > > allocation it is

[PATCH net-next] net: dsa: fix preparation of a port STP update

2015-09-29 Thread Vivien Didelot
Because of the default 0 value of ret in dsa_slave_port_attr_set, a driver may return -EOPNOTSUPP from the commit phase of a STP state, which triggers a WARN() from switchdev. This happened on a 6185 switch which does not support hardware bridging. Reported-by: Andrew Lunn Signed-off-by: Vivien

[PATCH v2 net-next 1/6] net: switchdev: remove dev in port_vlan_dump_put

2015-09-29 Thread Vivien Didelot
The static switchdev_port_vlan_dump_put function does not need the net_device parameter, so remove it. Signed-off-by: Vivien Didelot --- net/switchdev/switchdev.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c

Re: [PATCH 07/10] iommu/amd: copy old dev tables and do not touch dev tables

2015-09-29 Thread Joerg Roedel
On Thu, Sep 24, 2015 at 02:37:33PM +0800, Baoquan He wrote: > + if ( !translation_pre_enabled() ) { > + iommu_disable(iommu); > + iommu_init_flags(iommu); > + iommu_set_device_table(iommu); > + iommu_enable

Re: [PATCH 10/10] iommu/amd: Copy the old ir table

2015-09-29 Thread Joerg Roedel
On Thu, Sep 24, 2015 at 02:37:36PM +0800, Baoquan He wrote: > Signed-off-by: Baoquan He > --- > drivers/iommu/amd_iommu.c | 25 +++-- > 1 file changed, 19 insertions(+), 6 deletions(-) > > diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c > index 1e86f4c..f4f

[PATCH v2 net-next 2/6] net: switchdev: move dev in switchdev_fdb_dump

2015-09-29 Thread Vivien Didelot
The FDB dump callback requires the related net_device so move it to the struct switchdev_fdb_dump superset instead of using a callback param. With this done, it'll be simpler to change the dump function signature. Signed-off-by: Vivien Didelot --- net/switchdev/switchdev.c | 4 +++- 1 file chan

Re: [RFC][PATCH] sched: Fix TASK_DEAD race in finish_task_switch()

2015-09-29 Thread Linus Torvalds
On Tue, Sep 29, 2015 at 8:45 AM, Peter Zijlstra wrote: > > +* > +* Pairs with the control dependency and rmb in try_to_wake_up(). > */ So this comment makes me nervous. A control dependency doesn't actually do anything on powerpc and ARM (or alpha, or MIPS, or any number

[PATCH] x86: fix build failure

2015-09-29 Thread Andrey Ryabinin
With KMEMCHECK=y, KASAN=n: arch/x86/platform/efi/efi.c:673:3: error: implicit declaration of function ‘memcpy’ [-Werror=implicit-function-declaration] arch/x86/platform/efi/efi_64.c:139:2: error: implicit declaration of function ‘memcpy’ [-Werror=implicit-function-declaration] arch/x86/include/a

Re: [PATCH] ver_linux: uniform output across various linux distros

2015-09-29 Thread Greg KH
On Tue, Sep 29, 2015 at 06:36:12PM +0300, Alexander Kapshuk wrote: > I've reread 'Documentation/SubmittingPatches', and opted for method 1 > to create the patch. > > When you mentioned about the patch changing the formatting, were you > referring to the formatting of the actual script, or the outp

[PATCH] Input: Add support for FocalTech FT6236 touchscreen controller

2015-09-29 Thread Noralf Trønnes
This adds support for the FT6x06 and the FT6x36 family of capacitive touch panel controllers, in particular the FT6236. Signed-off-by: Noralf Trønnes --- The driver is based on: https://github.com/adafruit/adafruit-raspberrypi-linux/blob/rpi-3.18.y/drivers/input/touchscreen/ft6x06_ts.c .../inp

Re: [RFC PATCH 0/3] iommu: Add range flush operation

2015-09-29 Thread Robin Murphy
On 29/09/15 15:32, Russell King - ARM Linux wrote: On Tue, Sep 29, 2015 at 03:20:38PM +0100, Robin Murphy wrote: A single callback doesn't really generalise well enough: If we wanted to implement this in the ARM SMMU drivers to optimise the unmap() case [ask Will how long he spends waiting for a

<    1   2   3   4   5   6   7   8   9   10   >