[PATCH 4.11 141/150] serial: sh-sci: Fix panic when serial console and DMA are enabled

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Takatoshi Akiyama commit 3c9101766b502a0163d1d437fada5801cf616be2 upstream. This patch fixes an issue that kernel panic happens when DMA is enabled and we press enter key while the kernel boot

[PATCH 4.11 147/150] audit: fix the RCU locking for the auditd_connection structure

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Paul Moore commit 48d0e023af9799cd7220335baf8e3ba61eeafbeb upstream. Cong Wang correctly pointed out that the RCU read locking of the auditd_connection struct was wrong, this patch correct thi

[PATCH 4.11 145/150] tracing: Use strlcpy() instead of strcpy() in __trace_find_cmdline()

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Amey Telawane commit e09e28671cda63e6308b31798b997639120e2a21 upstream. Strcpy is inherently not safe, and strlcpy() should be used instead. __trace_find_cmdline() uses strcpy() because the co

[PATCH 4.11 115/150] scsi: qla2xxx: Fix crash due to mismatch mumber of Q-pair creation for Multi queue

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Sawan Chandak commit b95b9452aacf80659ea67bf0948cbfa7e28e5e0b upstream. when driver is loaded with Multi Queue enabled, it was noticed that there was one less queue pair created. Following me

[PATCH 4.11 120/150] powerpc/sysdev/simple_gpio: Fix oops in gpio save_regs function

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Christophe Leroy commit 6f553912eedafae13ff20b322a65e471fe7f5236 upstream. of_mm_gpiochip_add_data() generates an oops for NULL pointer dereference. of_mm_gpiochip_add_data() calls mm_gc->sav

[PATCH 4.11 119/150] scsi: qla2xxx: Fix mailbox pointer error in fwdump capture

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Joe Carnuccio commit 74939a0bc772d642b1c12827966c4c3a3c90ea2c upstream. Signed-off-by: Joe Carnuccio Signed-off-by: Himanshu Madhani Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kr

[PATCH 4.11 137/150] cpu/hotplug: Drop the device lock on error

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior commit 40da1b11f01e43aad1aa6cea64681b6125e8a2a7 upstream. If a custom CPU target is specified and that one is not available _or_ can't be interrupted then the code re

[PATCH 4.11 130/150] drm/vmwgfx: limit the number of mip levels in vmw_gb_surface_define_ioctl()

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Vladis Dronov commit ee9c4e681ec4f58e42a83cb0c22a0289ade1aacf upstream. The 'req->mip_levels' parameter in vmw_gb_surface_define_ioctl() is a user-controlled 'uint32_t' value which is used as

[PATCH 4.11 126/150] perf/core: Drop kernel samples even though :u is specified

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Jin Yao commit cc1582c231ea041fbc68861dfaf957eaf902b829 upstream. When doing sampling, for example: perf record -e cycles:u ... On workloads that do a lot of kernel entry/exits we see kern

[PATCH 4.11 089/150] random: invalidate batched entropy after crng init

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Jason A. Donenfeld commit b169c13de473a85b3c859bb36216a4cb5f00a54a upstream. It's possible that get_random_{u32,u64} is used before the crng has initialized, in which case, its output might no

[PATCH 4.11 113/150] scsi: qla2xxx: dont disable a not previously enabled PCI device

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Thumshirn commit ddff7ed45edce4a4c92949d3c61cd25d229c4a14 upstream. When pci_enable_device() or pci_enable_device_mem() fail in qla2x00_probe_one() we bail out but do a call to pci_di

[PATCH 4.11 093/150] drm/msm/mdp5: use __drm_atomic_helper_plane_duplicate_state()

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Rob Clark commit 786813c343cb619d23cb0990e152e350b826d810 upstream. Somehow the helper was never retrofitted for mdp5. Which meant when plane_state->fence was added, it could get copied into

[PATCH 4.11 125/150] Revert "ata: sata_mv: Convert to devm_ioremap_resource()"

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Andrew Lunn commit 3e4240da0e3673637c1c995bdd14cfdbc8f4dc4c upstream. This reverts commit 368e5fbdfc60732643f34f538823ed4bc8829827. devm_ioremap_resource() enforces that there are no overlapp

[PATCH 4.11 132/150] x86/microcode/intel: Clear patch pointer before jettisoning the initrd

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Dominik Brodowski commit 5b0bc9ac2ce4881ee318a21f31140584ce4dbdad upstream. During early boot, load_ucode_intel_ap() uses __load_ucode_intel() to obtain a pointer to the relevant microcode pat

[PATCH 4.11 134/150] ALSA: timer: Fix race between read and ioctl

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit d11662f4f798b50d8c8743f433842c3e40fe3378 upstream. The read from ALSA timer device, the function snd_timer_user_tread(), may access to an uninitialized struct snd_timer_use

[PATCH 4.11 087/150] block: Avoid that blk_exit_rl() triggers a use-after-free

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit b425e50492583b10cceb388af36ef0bd3bdf842a upstream. Since the introduction of .init_rq_fn() and .exit_rq_fn() it is essential that the memory allocated for struct request

[PATCH 4.11 109/150] btrfs: fix memory leak in update_space_info failure path

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Jeff Mahoney commit 896533a7da929136d0432713f02a3edffece2826 upstream. If we fail to add the space_info kobject, we'll leak the memory for the percpu counter. Fixes: 6ab0a2029c (btrfs: publis

[PATCH 4.11 106/150] cxl: Fix error path on bad ioctl

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Frederic Barrat commit cec422c11caeeccae709e9942058b6b644ce434c upstream. Fix error path if we can't copy user structure on CXL_IOCTL_START_WORK ioctl. We shouldn't unlock the context status m

[PATCH 4.11 110/150] btrfs: fix race with relocation recovery and fs_root setup

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Jeff Mahoney commit a9b3311ef36b670909ea4443f306c8318082c8f0 upstream. If we have to recover relocation during mount, we'll ultimately have to evict the orphan inode. That goes through the re

[PATCH 4.11 099/150] ufs: restore proper tail allocation

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Al Viro commit 8785d84d002c2ce0f68fbcd6c2c86be859802c7e upstream. Signed-off-by: Al Viro Signed-off-by: Greg Kroah-Hartman --- fs/ufs/inode.c |2 +- 1 file changed, 1 insertion(+), 1 d

[PATCH 4.11 058/150] dmaengine: ep93xx: Dont drain the transfers in terminate_all()

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Sverdlin commit 98f9de366fccee7572c646af226b2d4b4841e3b5 upstream. Draining the transfers in terminate_all callback happens with IRQs disabled, therefore induces huge latency: irqs

[PATCH 4.11 097/150] Input: elantech - add Fujitsu Lifebook E546/E557 to force crc_enabled

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Ulrik De Bie commit 47eb0c8b4d9eb6368941c6a9bb443f00847a46d7 upstream. The Lifebook E546 and E557 touchpad were also not functioning and worked after running: echo "1" > /sys/devices/

[PATCH 4.11 094/150] ahci: Acer SA5-271 SSD Not Detected Fix

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Sui Chen commit 8bfd174312629866efa535193d9e563768ff4307 upstream. (Correction in this resend: fixed function name acer_sa5_271_workaround; fixed the always-true condition in the function; fi

[PATCH 4.11 062/150] dmaengine: mv_xor_v2: enable XOR engine after its configuration

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Hanna Hawa commit ab2c5f0a77fe49bdb6e307b397496373cb47d2c2 upstream. The engine was enabled prior to its configuration, which isn't correct. This patch relocates the activation of the XOR engi

[PATCH 4.11 083/150] iio: light: ltr501 Fix interchanged als/ps register field

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Franziska Naepelt commit 7cc3bff4efe6164a0c8163331c8aa55454799f42 upstream. The register mapping for the IIO driver for the Liteon Light and Proximity sensor LTR501 interrupt mode is interchan

[PATCH 4.11 081/150] staging/lustre/lov: remove set_fs() call from lov_getstripe()

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Oleg Drokin commit 0a33252e060e97ed3fbdcec9517672f1e91aaef3 upstream. lov_getstripe() calls set_fs(KERNEL_DS) so that it can handle a struct lov_user_md pointer from user- or kernel-space. Th

[PATCH 4.11 072/150] ext4: keep existing extra fields when inode expands

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Konstantin Khlebnikov commit 887a9730614727c4fff7cb756711b190593fc1df upstream. ext4_expand_extra_isize() should clear only space between old and new size. Fixes: 6dd4ee7cab7e # v2.6.23 Signe

[PATCH 4.11 060/150] dmaengine: mv_xor_v2: properly handle wrapping in the array of HW descriptors

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Petazzoni commit 2aab4e18152cd30cb5d2f4c27629fc8a04aed979 upstream. mv_xor_v2_tasklet() is looping over completed HW descriptors. Before the loop, it initializes 'next_pending_hw_desc'

[PATCH 4.11 059/150] dmaengine: mv_xor_v2: handle mv_xor_v2_prep_sw_desc() error properly

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Petazzoni commit eb8df543e92328f506adffc7dfe94111f1bd upstream. The mv_xor_v2_prep_sw_desc() is called from a few different places in the driver, but we never take into account the

[PATCH 4.11 040/150] KEYS: encrypted: avoid encrypting/decrypting stack buffers

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit e9ff56ac352446f55141aaef1553cee662b2e310 upstream. Since v4.9, the crypto API cannot (normally) be used to encrypt/decrypt stack buffers because the stack may be virtually

[PATCH 4.11 031/150] ftrace: Fix memory leak in ftrace_graph_release()

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Luis Henriques commit f9797c2f20c0160edd718aa467101f3301e57e59 upstream. ftrace_hash is being kfree'ed in ftrace_graph_release(), however the ->buckets field is not. This results in a memory

[PATCH 4.11 057/150] dmaengine: ep93xx: Always start from BASE0

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Sverdlin commit 0037ae47812b1f431cc602100d1d51f37d77b61e upstream. The current buffer is being reset to zero on device_free_chan_resources() but not on device_terminate_all(). It cou

[PATCH 4.11 056/150] dmaengine: usb-dmac: Fix DMAOR AE bit definition

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Hiroyuki Yokoyama commit 9a445bbb1607d9f14556a532453dd86d1b7e381e upstream. This patch fixes the register definition of AE (Address Error flag) bit. Fixes: 0c1c8ff32fa2 ("dmaengine: usb-dmac:

[PATCH 4.11 041/150] crypto: drbg - wait for crypto op not signal safe

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Gilad Ben-Yossef commit a5dfefb1c3f3db81662556393fd9283511e08430 upstream. drbg_kcapi_sym_ctr() was using wait_for_completion_interruptible() to wait for completion of async crypto op but if a

[PATCH 4.11 054/150] arm: KVM: Allow unaligned accesses at HYP

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Marc Zyngier commit 33b5c38852b29736f3b472dd095c9a18ec22746f upstream. We currently have the HSCTLR.A bit set, trapping unaligned accesses at HYP, but we're not really prepared to deal with it

[PATCH 4.11 049/150] efi/bgrt: Skip efi_bgrt_init() in case of non-EFI boot

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Dave Young commit 7425826f4f7ac60f2538b06a7f0a5d1006405159 upstream. Sabrina Dubroca reported an early panic: BUG: unable to handle kernel paging request at ff240001 IP: efi_bgrt_

[PATCH 4.11 043/150] ovl: fix creds leak in copy up error path

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Amir Goldstein commit 8137ae26d25303e7b5cfb418fd28b976461e5b6e upstream. Fixes: 42f269b92540 ("ovl: rearrange code in ovl_copy_up_locked()") Signed-off-by: Amir Goldstein Signed-off-by: Miklo

[PATCH 4.11 042/150] crypto: gcm - wait for crypto op not signal safe

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Gilad Ben-Yossef commit f3ad587070d6bd961ab942b3fd7a85d00dfc934b upstream. crypto_gcm_setkey() was using wait_for_completion_interruptible() to wait for completion of async crypto op but if a

[PATCH 4.11 008/150] vxlan: fix use-after-free on deletion

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Mark Bloch [ Upstream commit a53cb29b0af346af44e4abf13d7e59f807fba690 ] Adding a vxlan interface to a socket isn't symmetrical, while adding is done in vxlan_open() the deletion is done in vx

[PATCH 4.11 012/150] ipv6: Fix leak in ipv6_gso_segment().

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: "David S. Miller" [ Upstream commit e3e86b5119f81e5e2499bea7ea1ebe8ac6aab789 ] If ip6_find_1stfragopt() fails and we return an error we have to free up 'segs' because nobody else is going to.

[PATCH 4.11 007/150] tcp: disallow cwnd undo when switching congestion control

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Yuchung Cheng [ Upstream commit 44abafc4cc094214a99f860f778c48ecb23422fc ] When the sender switches its congestion control during loss recovery, if the recovery is spurious then it may incorr

[PATCH 4.11 025/150] sparc64: combine activate_mm and switch_mm

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Pavel Tatashin [ Upstream commit 14d0334c6748ff2aedb3f2f7fdc51ee90a9b54e7 ] The only difference between these two functions is that in activate_mm we unconditionally flush context. However, t

[PATCH 4.11 024/150] sparc64: reset mm cpumask after wrap

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Pavel Tatashin [ Upstream commit 588974857359861891f478a070b1dc7ae04a3880 ] After a wrap (getting a new context version) a process must get a new context id, which means that we would need to

[PATCH 4.11 001/150] bnx2x: Fix Multi-Cos

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: "Mintz, Yuval" [ Upstream commit 3968d38917eb9bd0cd391265f6c9c538d9b33ffa ] Apparently multi-cos isn't working for bnx2x quite some time - driver implements ndo_select_queue() to allow queue-

[PATCH 4.11 014/150] net: ping: do not abuse udp_poll()

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 77d4b1d36926a9b8387c6b53eeba42bcaaffcea3 ] Alexander reported various KASAN messages triggered in recent kernels The problem is that ping sockets should not us

[PATCH 4.11 004/150] net: systemport: Fix missing Wake-on-LAN interrupt for SYSTEMPORT Lite

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli [ Upstream commit d31353cd753c443ace5723d6878a39f393a0c136 ] On SYSTEMPORT Lite, since we have the main interrupt source in the first cell, the second cell is the Wake-on-LAN

[PATCH 4.11 019/150] net: stmmac: fix completely hung TX when using TSO

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Niklas Cassel [ Upstream commit 426849e6611f2092553f8d53372ae310818a6292 ] stmmac_tso_allocator can fail to set the Last Descriptor bit on a descriptor that actually was the last descriptor.

[PATCH 4.11 020/150] sparc64: Add __multi3 for gcc 7.x and later.

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: "David S. Miller" [ Upstream commit 1b4af13ff2cc6897557bb0b8d9e2fad4fa4d67aa ] Reported-by: Waldemar Brodkorb Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- arch/spa

[PATCH 4.11 018/150] net: ethoc: enable NAPI before poll may be scheduled

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Max Filippov [ Upstream commit d220b942a4b6a0640aee78841608f4aa5e8e185e ] ethoc_reset enables device interrupts, ethoc_interrupt may schedule a NAPI poll before NAPI is enabled in the ethoc_o

[PATCH 4.11 015/150] net/ipv6: Fix CALIPSO causing GPF with datagram support

2017-06-12 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Richard Haines [ Upstream commit e3ebdb20fddacded2740a333ff66781e0d28b05c ] When using CALIPSO with IPPROTO_UDP it is possible to trigger a GPF as the IP header may have moved. Also update t

Re: [PATCH 46/58] clocksource/drivers: Add a new driver for the Atmel ARM TC blocks

2017-06-12 Thread Nicolas Ferre
Le 12/06/2017 à 15:25, Daniel Lezcano a écrit : > On 12/06/2017 14:54, Nicolas Ferre wrote: > > [ ... ] > >>> I like the 'chosen' approach with the nodes you are proposing below. Thanks >>> for >>> the constructive suggestion. The binding description matches perfectly what >>> we >>> are trying

Re: [PATCH v2 3/4] irqchip: Add BCM2835 AUX interrupt controller

2017-06-12 Thread Phil Elwell
On 12/06/2017 15:59, Marc Zyngier wrote:> On 12/06/17 15:25, Phil Elwell wrote: >> Devices in the BCM2835 AUX block share a common interrupt line, with a >> register indicating which devices have active IRQs. Expose this as a >> nested interrupt controller to avoid IRQ sharing problems (easily >> o

Re: [RFC PATCH 4/4] hugetlb: add support for preferred node to alloc_huge_page_nodemask

2017-06-12 Thread Michal Hocko
JFTR, I am dropping this patch and will follow up with a series which will make the hugetlb allocation reflect node/zone ordering. It doesn't make much sense to wait for those with this series because it doesn't depend on it. I have some preliminary work but I would like to give it few days befor

[PATCH 1/3] PM: Constify returned PM event name

2017-06-12 Thread Krzysztof Kozlowski
The pm_verb() returns a pointer to string from .rodata so it should be marked as const. Signed-off-by: Krzysztof Kozlowski --- drivers/base/power/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index 9faee1c893e5..9

[PATCH 2/3] PM: Constify info string used in messages

2017-06-12 Thread Krzysztof Kozlowski
The 'info' string appearing in many places points to a .rodata string so it should be passes as pointer to const. Signed-off-by: Krzysztof Kozlowski --- drivers/base/power/main.c | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/drivers/base/power

[PATCH 3/3] PM / sysfs: Constify attribute groups

2017-06-12 Thread Krzysztof Kozlowski
Local instances of struct attribute_group are not modified so they can be made const to increase code safeness. Signed-off-by: Krzysztof Kozlowski --- drivers/base/power/sysfs.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/base/power/sysfs.c b/drivers/

Re: [RFC PATCH] fs: ext4: don't trap kswapd and allocating tasks on ext4 inode IO

2017-06-12 Thread Jan Kara
On Mon 12-06-17 10:37:27, Johannes Weiner wrote: > On Mon, Jun 12, 2017 at 10:09:57AM +0200, Jan Kara wrote: > > On Tue 16-05-17 18:03:37, Jan Kara wrote: > > > On Tue 16-05-17 11:41:05, Johannes Weiner wrote: > > > > On Tue, May 16, 2017 at 04:36:45PM +0200, Jan Kara wrote: > > > > > On Mon 15-05-

[RFT v2 2/8] PM / Domains: Handle safely genpd_syscore_switch() call on non-genpd device

2017-06-12 Thread Krzysztof Kozlowski
genpd_syscore_switch() had two problems: 1. It silently assumed that device, it is being called for, belongs to generic power domain and used container_of() on its power domain pointer. Such assumption might not be true always. 2. It iterated over list of generic power domains without holdi

[PATCH v2 7/8] PM / Domains: Fix missing default_power_down_ok comment

2017-06-12 Thread Krzysztof Kozlowski
Commit fc5cbf0c94b6 ("PM / Domains: Support for multiple states") split out some code out of default_power_down_ok() function so the documentation has to be moved to appropriate place. Signed-off-by: Krzysztof Kozlowski --- drivers/base/power/domain_governor.c | 12 ++-- 1 file changed,

[PATCH v2 4/8] PM / Domains: Fix unsafe iteration over modified list of device links

2017-06-12 Thread Krzysztof Kozlowski
pm_genpd_remove_subdomain() iterates over domain's master_links list and removes matching element thus it has to use safe version of list iteration. Fixes: f721889ff65a ("PM / Domains: Support for generic I/O PM domains (v8)") Cc: Signed-off-by: Krzysztof Kozlowski --- drivers/base/power/domain

[PATCH v2 6/8] PM / Domains: Fix unsafe iteration over modified list of domains

2017-06-12 Thread Krzysztof Kozlowski
of_genpd_remove_last() iterates over list of domains and removes matching element thus it has to use safe version of list iteration. Fixes: 17926551c98a ("PM / Domains: Add support for removing nested PM domains by provider") Cc: Signed-off-by: Krzysztof Kozlowski --- drivers/base/power/domain

[PATCH v2 5/8] PM / Domains: Fix unsafe iteration over modified list of domain providers

2017-06-12 Thread Krzysztof Kozlowski
of_genpd_del_provider() iterates over list of domain provides and removes matching element thus it has to use safe version of list iteration. Fixes: aa42240ab254 ("PM / Domains: Add generic OF-based PM domain look-up") Cc: Signed-off-by: Krzysztof Kozlowski --- drivers/base/power/domain.c | 4 +

[RFC v2 8/8] PM / Domains: Add asserts for PM domain locks

2017-06-12 Thread Krzysztof Kozlowski
Add lockdep checks for holding domain lock in few places where this is required. This might expose misuse even though only file-scope functions use it for now. Regular lockdep asserts can be entirely discarded by preprocessor, however domain code uses mixed type of lock: spinlock or mutex. This

[PATCH v2 1/8] PM / Domains: Constify genpd pointer

2017-06-12 Thread Krzysztof Kozlowski
Mark pointer to struct generic_pm_domain const (either passed in argument or used localy in a function), whenever it is not modifed by the function itself. Signed-off-by: Krzysztof Kozlowski --- drivers/base/power/domain.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-)

[PATCH v2 3/8] PM / Domains: Add lockdep asserts for domains list mutex

2017-06-12 Thread Krzysztof Kozlowski
Add lockdep checks for holding mutex protecting the list of domains. This might expose misuse even though only file-scope functions use it for now. Signed-off-by: Krzysztof Kozlowski --- drivers/base/power/domain.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/base/power/doma

[PATCH v2 0/8] PM / Domains: Bunch of small improvements and fixes

2017-06-12 Thread Krzysztof Kozlowski
Hi, Changes since v1: = 1. Patch 2/8: Follow Ulf's advice and use genpd_lookup_dev() which also solves risk of calling this for non-genpd (thus I added Ulf's Reported-by). Description: Except adding lockdep assert to domains list mutex (3/8), all patches are ind

[PATCH] regulator: core: Prioritise consumer mappings over regulator name

2017-06-12 Thread Charles Keepax
Currently, when looking up a regulator supply, the regulator name takes priority over the consumer mappings. As there are a lot of regulator names that are in fairly common use (VDD, MICVDD, etc.) this can easily lead to obtaining the wrong supply, when a system contains two regulators that share a

Re: [PATCH v2 3/4] irqchip: Add BCM2835 AUX interrupt controller

2017-06-12 Thread Marc Zyngier
On 12/06/17 15:25, Phil Elwell wrote: > Devices in the BCM2835 AUX block share a common interrupt line, with a > register indicating which devices have active IRQs. Expose this as a > nested interrupt controller to avoid IRQ sharing problems (easily > observed if UART1 and SPI1/2 are enabled simult

Re: [RFC] cpu/hotplug: Modify lock status before making cpu hotplug callbacks

2017-06-12 Thread Thomas Gleixner
On Wed, 7 Jun 2017, John Allen wrote: > A deadlock has been observed during a cpu hot add on powerpc machines. > > The situation is as follows: > First, in _cpu_up, we take the cpu_hotplug lock and towards the end of > _cpu_up, > we make the cpu hotplug callbacks, one of which is arch_update_cpu_

Re: [PATCH tip/core/rcu 07/13] rcu: Add smp_mb__after_atomic() to sync_exp_work_done()

2017-06-12 Thread Dmitry Vyukov
On Sat, Jun 10, 2017 at 12:56 AM, Paul E. McKenney wrote: >> > > > +/** >> > > > + * spin_is_locked - Conditionally interpose after prior critical >> > > > sections >> > > > + * @lock: the spinlock whose critical sections are to be interposed. >> > > > + * >> > > > + * Semantically this is equiva

Re: [RFC][PATCH]: documentation,atomic: Add a new atomic_t document

2017-06-12 Thread Peter Zijlstra
On Sun, Jun 11, 2017 at 09:56:32PM +0800, Boqun Feng wrote: > I think the term we use to refer this behavior is "fully-ordered"? Right, that is what we used to call it, and the term even occurs in memory-barriers.txt but isn't actually defined therein. > Could we give it a slight formal definiti

[PATCH 1/3] dt-bindings: iio: humidity: add bindings for HDC100x sensors

2017-06-12 Thread Michael Stecklein
Add the bindings for the family of HDC100x sensors. Signed-off-by: Michael Stecklein --- .../devicetree/bindings/iio/humidity/hdc100x.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/humidity/hdc100x.txt diff --git a/D

[PATCH 3/3] iio: humidity: hdc100x: add match table and device id's

2017-06-12 Thread Michael Stecklein
Add of_match_table and point it to a list of compatible device tree device id's. Signed-off-by: Michael Stecklein --- drivers/iio/humidity/hdc100x.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/iio/humidity/hdc100x.c b/drivers/iio/humidity/hdc100x.c index 0e5962f..659d

[PATCH 2/3] iio: humidity: hdc100x: document compatible HDC10xx devices

2017-06-12 Thread Michael Stecklein
Include datasheet links, add i2c_device_id entries, and update kconfig help for compatible HDC10xx devices: HDC1000, HDC1008, HDC1010, HDC1050, and HDC1080. Signed-off-by: Michael Stecklein --- drivers/iio/humidity/Kconfig | 3 ++- drivers/iio/humidity/hdc100x.c | 9 + 2 files changed,

Re: [PATCH] workqueue: Ensure that cpumask set for pools created after boot

2017-06-12 Thread Michael Bringmann
Hello: On 06/06/2017 01:09 PM, Tejun Heo wrote: > Hello, > > On Tue, Jun 06, 2017 at 11:18:36AM -0500, Michael Bringmann wrote: >> On 05/25/2017 10:30 AM, Michael Bringmann wrote: >>> I will try that patch shortly. I also updated my patch to be conditional >>> on whether the pool's cpumask attri

Re: [PATCH 1/6] drivers base/arch_topology: prepare cpufreq policy notifier for frequency-invariant load-tracking support

2017-06-12 Thread Vincent Guittot
On 8 June 2017 at 09:55, Dietmar Eggemann wrote: > This patch prepares the actual implementation of the frequency-invariant > load-tracking support provided in the next patch ("drivers > base/arch_topology: frequency-invariant load-tracking support"). > > The maximum supported frequency of a cpu (

[PATCH] DocBook: w1: Update W1 file locations and names in DocBook

2017-06-12 Thread Andrew F. Davis
Some of the files in the W1 subsystem have been moved or renamed, update the documentation for the same. Signed-off-by: Andrew F. Davis --- Documentation/DocBook/w1.tmpl | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Documentation/DocBook/w1.tmpl b/Documen

[next-20170609] WARNING: CPU: 3 PID: 71167 at lib/idr.c:157 idr_replace

2017-06-12 Thread Abdul Haleem
Hi, WARN_ON_ONCE is being called from idr_replace() function in file lib/idr.c at line 157 struct radix_tree_node *node; void __rcu **slot = NULL; void *entry; if (WARN_ON_ONCE(id < 0)) return ERR_PTR(-EINVAL); if (WARN_ON_ONCE(radix_tree_is_internal_node(ptr)))

[PATCH 07/12] coresight replicator: Expose replicator management registers

2017-06-12 Thread Suzuki K Poulose
Expose the idfilter* registers of the programmable replicator. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../hwtracing/coresight/coresight-replicator-qcom.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-replicator-

Re: [RFC PATCH] fs: ext4: don't trap kswapd and allocating tasks on ext4 inode IO

2017-06-12 Thread Johannes Weiner
Hi Jan, On Mon, Jun 12, 2017 at 10:09:57AM +0200, Jan Kara wrote: > On Tue 16-05-17 18:03:37, Jan Kara wrote: > > On Tue 16-05-17 11:41:05, Johannes Weiner wrote: > > > On Tue, May 16, 2017 at 04:36:45PM +0200, Jan Kara wrote: > > > > On Mon 15-05-17 11:46:34, Johannes Weiner wrote: > > > > > We h

[PATCH 05/12] coresight tmc: Add helpers for accessing 64bit registers

2017-06-12 Thread Suzuki K Poulose
Coresight TMC splits 64bit registers into a pair of 32bit registers (e.g DBA, RRP, RWP). Provide helpers to read/write to these registers. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-priv.h| 8 drivers/hwtracing/coresight/coresight

[PATCH 04/12] coresight: Add support for reading 64bit registers

2017-06-12 Thread Suzuki K Poulose
Add support for reading a lower and upper 32bits of a register as a single 64bit register. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-priv.h | 27 ++- drivers/hwtracing/coresight/coresight-tmc.c | 6 +++--- 2 files cha

[PATCH 10/12] coresight tmc: Support for save-restore in ETR

2017-06-12 Thread Suzuki K Poulose
The Coresight SoC 600 TMC ETR supports save-restore feature, where the values of the RRP/RWP and STS.Full are retained when it leaves the Disabled state. Hence, we must program the RRP/RWP and STS.Full to a proper value. For now, set the RRP/RWP to the base address of the buffer and clear the STS.F

[PATCH 08/12] coresight tmc: Handle configuration types properly

2017-06-12 Thread Suzuki K Poulose
Coresight SoC 600 defines a new configuration for TMC, Embedded Trace Streamer (ETS), indicated by 0x3 in MODE:CONFIG_TYPE. Make sure the driver handles the new type properly. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc.c | 14 +++---

[PATCH 09/12] coresight tmc: Add capability information

2017-06-12 Thread Suzuki K Poulose
This patch adds description of the capabilities of a given TMC. This will help us to handle different versions of the TMC in the same driver by checking the capabilities. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc.c | 10 +- drivers

[PATCH 12/12] coresight: Add support for Coresight SoC 600 components

2017-06-12 Thread Suzuki K Poulose
Add the peripheral ids for the Coresight SoC 600 TPIU, replicator and funnel. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-funnel.c | 5 + drivers/hwtracing/coresight/coresight-replicator-qcom.c | 6 ++ drivers/hwtracing/coresigh

[PATCH 11/12] coresight tmc: Add support for Coresight SoC 600 TMC

2017-06-12 Thread Suzuki K Poulose
The coresight SoC 600 supports ETR save-restore and also supports a new mode, SWFIFO2, which helps to streaming the trace data through a functional I/O (e.g, USB). Also, TMCs have different PIDs in different configurations (ETF, ETB & ETR), unlike the previous generation. Cc: Mathieu Poirier Sig

[PATCH 06/12] coresight tmc: Expose DBA and AXICTL

2017-06-12 Thread Suzuki K Poulose
Expose DBALO,DBAHI and AXICTL registers Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-tmc.c b/drivers/hwtracing/coresight/coresight-tmc.c index 70

[PATCH 03/12] coresight: Extend the PIDR mask to cover relevant bits in PIDR2

2017-06-12 Thread Suzuki K Poulose
As per coresight standards, PIDR2 register has the following format : [2-0] - JEP106_bits6to4 [3]- JEDEC, designer ID is specified by JEDEC. However some of the drivers only use mask of 0x3 for the PIDR2 leaving bits [3-2] unchecked, which could potentially match the component for a differ

[PATCH 00/12] coresight: Support for ARM Coresight SoC-600

2017-06-12 Thread Suzuki K Poulose
This series adds support for ARM Coresight SoC-600 IP, which implements Coresight V3 architecture. It also does some clean up of the replicator driver namings used in the driver to prevent confusions to the user. The SoC-600 comes with an improved TMC which supports new features, including Save-Re

[PATCH 02/12] arm64: dts: juno: Use the new coresight replicator string

2017-06-12 Thread Suzuki K Poulose
Use the new compatible for ATB programmable replicator in Juno. Cc: Sudeep Holla Cc: Mike Leach Cc: Mathieu Poirier Cc: Liviu Dudau Signed-off-by: Suzuki K Poulose --- arch/arm64/boot/dts/arm/juno-base.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/d

[PATCH 01/12] coresight replicator: Cleanup programmable replicator naming

2017-06-12 Thread Suzuki K Poulose
The Linux coresight drivers define the programmable ATB replicator as Qualcom replicator, while this is designed by ARM. This can cause confusion to a user selecting the driver. Cleanup all references to make it explicitly clear. This patch : 1) Adds a new compatible string for the same, retaini

[GIT PULL] s390 patches for 4.12-rc6

2017-06-12 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the following updates: * A fix for KVM to avoid kernel oopses in case of host protection faults due to runtime instrumentation * A fix for the AP bus

Re: [PATCH v4.1 4/8] mm, gup: Ensure real head page is ref-counted when using hugepages

2017-06-12 Thread Punit Agrawal
Punit Agrawal writes: > When speculatively taking references to a hugepage using > page_cache_add_speculative() in gup_huge_pmd(), it is assumed that the > page returned by pmd_page() is the head page. Although normally true, > this assumption doesn't hold when the hugepage comprises of successiv

Re: [PATCH 6/6] arm64: wire cpu-invariant accounting support up to the task scheduler

2017-06-12 Thread Vincent Guittot
On 8 June 2017 at 09:55, Dietmar Eggemann wrote: > Commit 8cd5601c5060 ("sched/fair: Convert arch_scale_cpu_capacity() from > weak function to #define") changed the wiring which now has to be done > by associating arch_scale_cpu_capacity with the actual implementation > provided by the architectur

[PATCH v3 2/4] f2fs: fix to document fault injection option and sysfs file

2017-06-12 Thread Chao Yu
From: Chao Yu Commit 73faec4d9935 ("f2fs: add mount option to select fault injection ratio") and Commit 087968974fcd ("f2fs: add fault injection to sysfs") forget to document mount option and sysfs file. This patch fixes to document them. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim ---

Re: [PATCH 5/6] arm64: wire frequency-invariant accounting support up to the task scheduler

2017-06-12 Thread Vincent Guittot
On 8 June 2017 at 09:55, Dietmar Eggemann wrote: > Commit dfbca41f3479 ("sched: Optimize freq invariant accounting") > changed the wiring which now has to be done by associating > arch_scale_freq_capacity with the actual implementation provided > by the architecture. > > Define arch_scale_freq_cap

Re: [PATCH 4/6] arm: wire cpu-invariant accounting support up to the task scheduler

2017-06-12 Thread Vincent Guittot
On 8 June 2017 at 09:55, Dietmar Eggemann wrote: > Commit 8cd5601c5060 ("sched/fair: Convert arch_scale_cpu_capacity() from > weak function to #define") changed the wiring which now has to be done > by associating arch_scale_cpu_capacity with the actual implementation > provided by the architectur

Re: [PATCH] gpio: lp87565: Add support for GPIO

2017-06-12 Thread Keerthy
On Monday 12 June 2017 07:34 PM, Linus Walleij wrote: > On Sun, Jun 11, 2017 at 6:27 AM, Keerthy wrote: >> On Friday 09 June 2017 02:06 PM, Linus Walleij wrote: > >>> If this IC has several function modes for the pins it should also >>> be a pin controller... I know it is a lot of upfront code,

Re: [PATCH 3/6] arm: wire frequency-invariant accounting support up to the task scheduler

2017-06-12 Thread Vincent Guittot
On 8 June 2017 at 09:55, Dietmar Eggemann wrote: > Commit dfbca41f3479 ("sched: Optimize freq invariant accounting") > changed the wiring which now has to be done by associating > arch_scale_freq_capacity with the actual implementation provided > by the architecture. > > Define arch_scale_freq_cap

<    5   6   7   8   9   10   11   12   13   >