Re: [PATCH 0/2] MIPS: generic dma-coherence.h inclusion

2018-01-29 Thread Florian Fainelli
On 01/26/2018 12:31 AM, Steven J. Hill wrote: > On 01/23/2018 07:40 PM, Florian Fainelli wrote: > > [...] > >> >> Florian Fainelli (2): >> MIPS: Allow including mach-generic/dma-coherence.h >> MIPS: Update dma-coherence.h files >> > I have tested these on our Octeon III platforms with PCIe an

[PATCH 4.4 13/74] timers: Plug locking race vs. timer migration

2018-01-29 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit b831275a3553c32091222ac619cfddd73a5553fb upstream. Linus noticed that lock_timer_base() lacks a READ_ONCE() for accessing the timer flags. As a consequence the compiler i

[PATCH 3.18 11/52] Input: twl6040-vibra - fix child-node lookup

2018-01-29 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit dcaf12a8b0bbdbfcfa2be8dff2c4948d9844b4ad upstream. Fix child-node lookup during probe, which ended up searching the whole device tree depth-first starting at parent rather

[PATCH 4.14 26/71] ipv6: Fix getsockopt() for sockets with default IPV6_AUTOFLOWLABEL

2018-01-29 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings [ Upstream commit e9191ffb65d8e159680ce0ad2224e1acbde6985c ] Commit 513674b5a2c9 ("net: reevalulate autoflowlabel setting after sysctl setting") removed the initialisation of ip

[PATCH 3.18 51/52] ipv6: fix udpv6 sendmsg crash caused by too small MTU

2018-01-29 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Mike Maloney [ Upstream commit 749439bfac6e1a2932c582e2699f91d329658196 ] The logic in __ip6_append_data() assumes that the MTU is at least large enough for the headers. A device's MTU may b

Re: [PATCH 2/2] drm: adv7511: Add support for i2c_new_secondary_device

2018-01-29 Thread Rob Herring
On Mon, Jan 22, 2018 at 12:50:01PM +, Kieran Bingham wrote: > The ADV7511 has four 256-byte maps that can be accessed via the main I²C > ports. Each map has it own I²C address and acts as a standard slave > device on the I²C bus. > > Allow a device tree node to override the default addresses s

[PATCH 4.14 37/71] sctp: do not allow the v4 socket to bind a v4mapped v6 address

2018-01-29 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit c5006b8aa74599ce19104b31d322d2ea9ff887cc ] The check in sctp_sockaddr_af is not robust enough to forbid binding a v4mapped v6 addr on a v4 socket. The worse thing

[PATCH 4.14 55/71] tls: fix sw_ctx leak

2018-01-29 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Sabrina Dubroca [ Upstream commit cf6d43ef66f416282121f436ce1bee9a25199d52 ] During setsockopt(SOL_TCP, TLS_TX), if initialization of the software context fails in tls_set_sw_offload(), we le

[PATCH 4.4 56/74] x86/microcode/intel: Extend BDW late-loading further with LLC size check

2018-01-29 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jia Zhang commit 7e702d17ed138cf4ae7c00e8c00681ed464587c7 upstream. Commit b94b73733171 ("x86/microcode/intel: Extend BDW late-loading with a revision check") reduced the impact of erratum BDF9

[PATCH 4.4 67/74] r8169: fix memory corruption on retrieval of hardware statistics.

2018-01-29 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Francois Romieu [ Upstream commit a78e93661c5fd30b9e1dee464b2f62f966883ef7 ] Hardware statistics retrieval hurts in tight invocation loops. Avoid extraneous write and enforce strict ordering

[PATCH 4.14 52/71] nfp: use the correct index for link speed table

2018-01-29 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Jakub Kicinski [ Upstream commit 0d9c9f0f40ca262b67fc06a702b85f3976f5e1a1 ] sts variable is holding link speed as well as state. We should be using ls to index into ls_to_ethtool. Fixes: 26

[PATCH 4.4 34/74] netfilter: nfnetlink_queue: reject verdict request from different portid

2018-01-29 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Liping Zhang commit 00a3101f561816e58de054a470484996f78eb5eb upstream. Like NFQNL_MSG_VERDICT_BATCH do, we should also reject the verdict request when the portid is not same with the initial po

[PATCH 4.9 58/66] hrtimer: Reset hrtimer cpu base proper on CPU hotplug

2018-01-29 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit d5421ea43d30701e03cadc56a38854c36a8b4433 upstream. The hrtimer interrupt code contains a hang detection and mitigation mechanism, which prevents that a long delayed hrtim

[PATCH 3.18 04/52] ALSA: pcm: Remove yet superfluous WARN_ON()

2018-01-29 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 23b19b7b50fe1867da8d431eea9cd3e4b6328c2c upstream. muldiv32() contains a snd_BUG_ON() (which is morphed as WARN_ON() with debug option) for checking the case of 0 / 0. Thi

[PATCH 4.4 26/74] x86/ioapic: Fix incorrect pointers in ioapic_setup_resources()

2018-01-29 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Rui Wang commit 9d98bcec731756b8688b59ec998707924d716d7b upstream. On a 4-socket Brickland system, hot-removing one ioapic is fine. Hot-removing the 2nd one causes panic in mp_unregister_ioapic

[PATCH 4.14 43/71] be2net: restore properly promisc mode after queues reconfiguration

2018-01-29 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Ivan Vecera [ Upstream commit 52acf06451930eb4cefabd5ecea56e2d46c32f76 ] The commit 622190669403 ("be2net: Request RSS capability of Rx interface depending on number of Rx rings") modified be

[PATCH 4.9 04/66] usbip: prevent vhci_hcd driver from leaking a socket pointer address

2018-01-29 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Shuah Khan commit 2f2d0088eb93db5c649d2a5e34a3800a8a935fc5 upstream. When a client has a USB device attached over IP, the vhci_hcd driver is locally leaking a socket pointer address via the /s

[PATCH 3.18 31/52] netfilter: xt_osf: Add missing permission checks

2018-01-29 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Kevin Cernekee commit 916a27901de01446bcf57ecca4783f6cff493309 upstream. The capability check in nfnetlink_rcv() verifies that the caller has CAP_NET_ADMIN in the namespace that "owns" the net

[PATCH 4.14 71/71] cpufreq: governor: Ensure sufficiently large sampling intervals

2018-01-29 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Rafael J. Wysocki commit 56026645e2b6f11ede34a5e6ab69d3eb56f9c8fc upstream. After commit aa7519af450d (cpufreq: Use transition_delay_us for legacy governors as well) the sampling_rate field of

[PATCH 4.14 14/71] ARM: net: bpf: avoid bx instruction on non-Thumb capable CPUs

2018-01-29 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Russell King commit e9062481824384f00299971f923fecf6b3668001 upstream. Avoid the 'bx' instruction on CPUs that have no support for Thumb and thus do not implement this instruction by moving th

[PATCH 4.14 03/71] mm, page_alloc: fix potential false positive in __zone_watermark_ok

2018-01-29 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Vlastimil Babka commit b050e3769c6b4013bb937e879fc43bf1847ee819 upstream. Since commit 97a16fc82a7c ("mm, page_alloc: only enforce watermarks for order-0 allocations"), __zone_watermark_ok() c

[PATCH 3.18 50/52] net: Allow neigh contructor functions ability to modify the primary_key

2018-01-29 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jim Westfall [ Upstream commit 096b9854c04df86f03b38a97d40b6506e5730919 ] Use n->primary_key instead of pkey to account for the possibility that a neigh constructor function may have modified

[PATCH 4.9 12/66] drivers: base: cacheinfo: fix boot error message when acpi is enabled

2018-01-29 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sudeep Holla commit 55877ef45fbd7f975d078426866b7d1a2435dcc3 upstream. ARM64 enables both CONFIG_OF and CONFIG_ACPI and the firmware can pass both ACPI tables and the device tree. Based on the

[PATCH 4.9 26/66] Revert "module: Add retpoline tag to VERMAGIC"

2018-01-29 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman commit 5132ede0fe8092b043dae09a7cc32b8ae7272baa upstream. This reverts commit 6cfb521ac0d5b97470883ff9b7facae264b7ab12. Turns out distros do not want to make retpoline as pa

[PATCH 3.18 26/52] ipc: msg, make msgrcv work with LONG_MIN

2018-01-29 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jiri Slaby commit 999898355e08ae3b92dfd0a08db706e0c6703d30 upstream. When LONG_MIN is passed to msgrcv, one would expect to recieve any message. But convert_mode does *msgtyp = -*msgtyp and -

[PATCH 4.14 39/71] tipc: fix a memory leak in tipc_nl_node_get_link()

2018-01-29 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang [ Upstream commit 59b36613e85fb16ebf9feaf914570879cd5c2a21 ] When tipc_node_find_by_name() fails, the nlmsg is not freed. While on it, switch to a goto label to properly free it.

[PATCH 4.14 45/71] gso: validate gso_type in GSO handlers

2018-01-29 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Willem de Bruijn [ Upstream commit 121d57af308d0cf943f08f4738d24d3966c38cd9 ] Validate gso_type during segmentation as SKB_GSO_DODGY sources may pass packets where the gso_type does not match

[PATCH 3.18 39/52] um: Remove copy&paste code from init.h

2018-01-29 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Richard Weinberger commit 30b11ee9ae23d78de66b9ae315880af17a64ba83 upstream. As we got rid of the __KERNEL__ abuse, we can directly include linux/compiler.h now. This also allows gcc 5 to buil

[PATCH 4.4 51/74] usbip: fix stub_rx: harden CMD_SUBMIT path to handle malicious input

2018-01-29 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Shuah Khan commit c6688ef9f29762e65bce325ef4acd6c675806366 upstream. Harden CMD_SUBMIT path to handle malicious input that could trigger large memory allocations. Add checks to validate transfe

[PATCH 4.9 01/66] x86/asm/32: Make sync_core() handle missing CPUID on all 32-bit kernels

2018-01-29 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 1c52d859cb2d417e7216d3e56bb7fea88444cec9 upstream. We support various non-Intel CPUs that don't have the CPUID instruction, so the M486 test was wrong. For now, fix it w

[PATCH 4.4 61/74] ipv6: ip6_make_skb() needs to clear cork.base.dst

2018-01-29 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 95ef498d977bf44ac094778fd448b98af158a3e6 ] In my last patch, I missed fact that cork.base.dst was not initialized in ip6_make_skb() : If ip6_setup_cork() return

[PATCH 4.4 03/74] usbip: Fix implicit fallthrough warning

2018-01-29 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jonathan Dieter commit cfd6ed4537a9e938fa76facecd4b9cd65b6d1563 upstream. GCC 7 now warns when switch statements fall through implicitly, and with -Werror enabled in configure.ac, that makes th

[PATCH 4.14 54/71] net/tls: Only attach to sockets in ESTABLISHED state

2018-01-29 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Ilya Lesokhin [ Upstream commit d91c3e17f75f218022140dee18cf515292184a8f ] Calling accept on a TCP socket with a TLS ulp attached results in two sockets that share the same ulp context. The u

[PATCH 4.14 28/71] ipv6: ip6_make_skb() needs to clear cork.base.dst

2018-01-29 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 95ef498d977bf44ac094778fd448b98af158a3e6 ] In my last patch, I missed fact that cork.base.dst was not initialized in ip6_make_skb() : If ip6_setup_cork() retur

[PATCH 4.4 01/74] x86/asm/32: Make sync_core() handle missing CPUID on all 32-bit kernels

2018-01-29 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 1c52d859cb2d417e7216d3e56bb7fea88444cec9 upstream. We support various non-Intel CPUs that don't have the CPUID instruction, so the M486 test was wrong. For now, fix it w

[PATCH 4.4 64/74] tcp: __tcp_hdrlen() helper

2018-01-29 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Craig Gallek commit d9b3fca27385eafe61c3ca6feab6cb1e7dc77482 upstream. tcp_hdrlen is wasteful if you already have a pointer to struct tcphdr. This splits the size calculation into a helper func

[PATCH 4.9 20/66] netfilter: nfnetlink_cthelper: Add missing permission checks

2018-01-29 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Kevin Cernekee commit 4b380c42f7d00a395feede754f0bc2292eebe6e5 upstream. The capability check in nfnetlink_rcv() verifies that the caller has CAP_NET_ADMIN in the namespace that "owns" the netl

[PATCH 4.4 25/74] ipc: msg, make msgrcv work with LONG_MIN

2018-01-29 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jiri Slaby commit 999898355e08ae3b92dfd0a08db706e0c6703d30 upstream. When LONG_MIN is passed to msgrcv, one would expect to recieve any message. But convert_mode does *msgtyp = -*msgtyp and -L

[PATCH 4.9 35/66] ipv6: fix udpv6 sendmsg crash caused by too small MTU

2018-01-29 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mike Maloney [ Upstream commit 749439bfac6e1a2932c582e2699f91d329658196 ] The logic in __ip6_append_data() assumes that the MTU is at least large enough for the headers. A device's MTU may be

[PATCH 4.14 04/71] netfilter: nfnetlink_cthelper: Add missing permission checks

2018-01-29 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Kevin Cernekee commit 4b380c42f7d00a395feede754f0bc2292eebe6e5 upstream. The capability check in nfnetlink_rcv() verifies that the caller has CAP_NET_ADMIN in the namespace that "owns" the net

[PATCH 3.18 43/52] net: igmp: fix source address check for IGMPv3 reports

2018-01-29 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Felix Fietkau [ Upstream commit ad23b750933ea7bf962678972a286c78a8fa36aa ] Commit "net: igmp: Use correct source address on IGMPv3 reports" introduced a check to validate the source address o

[PATCH 4.9 44/66] sctp: return error if the asoc has been peeled off in sctp_wait_for_sndbuf

2018-01-29 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit a0ff660058b88d12625a783ce9e5c1371c87951f ] After commit cea0cc80a677 ("sctp: use the right sk after waking up from wait_buf sleep"), it may change to lock another sk

[PATCH 4.4 58/74] dccp: dont restart ccid2_hc_tx_rto_expire() if sk in closed state

2018-01-29 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alexey Kodanev [ Upstream commit dd5684ecae3bd8e44b644f50e2c12c7e57fdfef5 ] ccid2_hc_tx_rto_expire() timer callback always restarts the timer again and can run indefinitely (unless it is stopp

[PATCH 4.9 53/66] mlxsw: spectrum_router: Dont log an error on missing neighbor

2018-01-29 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Yuval Mintz [ Upstream commit 1ecdaea02ca6bfacf2ecda500dc1af51e9780c42 ] Driver periodically samples all neighbors configured in device in order to update the kernel regarding their state. Whe

[GIT PULL] siginfo cleanups for 4.16-rc1

2018-01-29 Thread Eric W. Biederman
Linus, Please pull the siginfo-linus branch from the git tree: git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git siginfo-linus HEAD: c0f4b82450a56c0da11866163b764aeb1a21 signal/memory-failure: Use force_sig_mceerr and send_sig_mceerr Long ago when 2.4 was ju

Re: [PATCH v6 17/41] dt-bindings: clock: Add bindings for DA8XX CFGCHIP clocks

2018-01-29 Thread Rob Herring
On Sat, Jan 20, 2018 at 11:13:56AM -0600, David Lechner wrote: > This adds a new binding for the clocks present in the CFGCHIP syscon > registers in TI DA8XX SoCs. > > Signed-off-by: David Lechner > --- > > v6 changes: > - combine "dt-bindings: clock: Add bindings for DA8XX CFGCHIP gate clocks",

Re: [PATCH] USB TYPEC: RT1711H Type-C Chip Driver

2018-01-29 Thread Guenter Roeck
On Mon, Jan 29, 2018 at 07:19:06AM +, shufan_lee(李書帆) wrote: > Hi Guenter, > > We try to use the TCPCI driver on RT1711H and here are some questions. > > Q1. Is current TCPCI driver written according to TypeC Port Controller > Interface Specification Revision 1.0 & Version 1.2? Revision

Re: [PATCH] nvme-pci: use NOWAIT flag for nvme_set_host_mem

2018-01-29 Thread Sagi Grimberg
Hey Keith, Thanks for the fix. It looks like we still have a problem, though. Commands submitted with the "shutdown_lock" held need to be able to make forward progress without relying on a completion, but this one could block indefinitely. Can you explain to me why is the shutdown_lock needed

Re: [PATCH v6 01/41] dt-bindings: clock: Add new bindings for TI Davinci PLL clocks

2018-01-29 Thread Rob Herring
On Sat, Jan 20, 2018 at 11:13:40AM -0600, David Lechner wrote: > This adds a new binding for the PLL IP blocks in the mach-davinci > family of processors. Currently, only da850 has device tree support > but these bindings can also work for other SoCs in this family just > by adding new compatible s

Re: [RFC PATCH 0/9] initial support for "suniv" Allwinner new ARM9 SoC

2018-01-29 Thread Rob Herring
On Thu, Jan 25, 2018 at 04:35:20PM +0100, Maxime Ripard wrote: > Hi, > > On Wed, Jan 24, 2018 at 09:10:34PM +0800, Icenowy Zheng wrote: > > 在 2018年1月22日星期一 CST 下午8:14:35,Maxime Ripard 写道: > > > On Sat, Jan 20, 2018 at 07:17:26AM +0800, Icenowy Zheng wrote: > > > > This is the RFC initial patchset

[PATCH] soc/fsl/qbman: Check if CPU is offline when initializing portals

2018-01-29 Thread Roy Pledge
If the affine portal for a specific CPU is offline at boot time affine its interrupt to CPU 0. If the CPU is later brought online the hotplug handler will correctly adjust the affinity. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/bman.c | 17 + drivers/soc/fsl/qbman/qman.

Re: [PATCH 7/8] Input: mms114 - add SPDX identifier

2018-01-29 Thread Dmitry Torokhov
On Mon, Jan 29, 2018 at 08:33:22PM +0900, Andi Shyti wrote: > Replace the original license statement with the SPDX identifier. > > Signed-off-by: Andi Shyti Applied, thank you. > --- > drivers/input/touchscreen/mms114.c | 13 + > 1 file changed, 5 insertions(+), 8 deletions(-) > >

Re: [PATCH 8/8] Input: mms114 - fix typo in definition

2018-01-29 Thread Dmitry Torokhov
On Mon, Jan 29, 2018 at 08:33:23PM +0900, Andi Shyti wrote: > It's 'MMS114_INFORMATION', not 'MMS114_INFOMATION' > > Signed-off-by: Andi Shyti Applied, thank you. > --- > drivers/input/touchscreen/mms114.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/in

Re: [PATCH 3/8] Input: mms114 - replace mdelay with msleep

2018-01-29 Thread Dmitry Torokhov
On Mon, Jan 29, 2018 at 08:33:18PM +0900, Andi Shyti wrote: > 200ms seconds is a very long time to keep the CPU busy looping. > Use msleep instead. > > Signed-off-by: Andi Shyti Applied, thank you. > --- > drivers/input/touchscreen/mms114.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(

Re: [PATCH 6/8] Input: mms114 - Use BIT() macro instead of explicit shifting

2018-01-29 Thread Dmitry Torokhov
On Mon, Jan 29, 2018 at 08:33:21PM +0900, Andi Shyti wrote: > Signed-off-by: Andi Shyti Applied, thank you. > --- > drivers/input/touchscreen/mms114.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/input/touchscreen/mms114.c > b/drivers/input/touchscreen/mms1

Re: [PATCH v6 5/6] iommu/arm-smmu: Add support for qcom,smmu-v2 variant

2018-01-29 Thread Rob Herring
On Fri, Jan 19, 2018 at 05:13:42PM +0530, Vivek Gautam wrote: > qcom,smmu-v2 is an arm,smmu-v2 implementation with specific > clock and power requirements. This smmu core is used with > multiple masters on msm8996, viz. mdss, video, etc. > Add bindings for the same. > > Signed-off-by: Vivek Gautam

Re: [PATCH v2 16/16] arm64: Add ARM_SMCCC_ARCH_WORKAROUND_1 BP hardening support

2018-01-29 Thread Ard Biesheuvel
On 29 January 2018 at 17:45, Marc Zyngier wrote: > Add the detection and runtime code for ARM_SMCCC_ARCH_WORKAROUND_1. > It is lovely. Really. > > Signed-off-by: Marc Zyngier > --- > arch/arm64/include/asm/kvm_psci.h | 63 > arch/arm64/kernel/bpi.S

RE: [PATCH 1/2 v2] tpm: cmd_ready command can be issued only after granting locality

2018-01-29 Thread Winkler, Tomas
> On Sun, Jan 28, 2018 at 09:17:53PM +, Winkler, Tomas wrote: > > > > I think if a driver can fail reliquish then it needs some kind of > > > strategy to recover. > > > Maybe some driver can and some not, but if it doesn't succeed it > > should return an error. > > But you can't just leave

Re: [PATCH] ide: remove duplicated assignment to 'cursg'

2018-01-29 Thread David Miller
From: Colin King Date: Tue, 16 Jan 2018 17:54:22 + > From: Colin Ian King > > Pointer cursg is initialized to cmd->cursg and again re-assigned the > same value a few lines later, hence the second assignment is redundant > and can be removed. > > Cleans up clang warning: > drivers/ide/ide-t

RE: [PATCH v7] Support intel-vbtn based tablet mode switch

2018-01-29 Thread Mario.Limonciello
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Monday, January 29, 2018 12:57 PM > To: Marco Martin > Cc: Platform Driver ; Limonciello, Mario > ; Andy Shevchenko ; Pali > Rohár ; Darren Hart ; Matthew > Garrett ; Linux Kernel Mailing List ker...@v

[PATCH] macintosh: Add module license to ans-lcd

2018-01-29 Thread Larry Finger
In kernel 4.15, the modprobe step on my PowerBook G5 started complaining that there was no module license for ans-lcd. Signed-off-by: Larry Finger --- drivers/macintosh/ans-lcd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/macintosh/ans-lcd.c b/drivers/macintosh/ans-lcd.c index 1

Re: [RFC PATCH 2/5] sched: Add NOHZ_STATS_KICK

2018-01-29 Thread Valentin Schneider
Hi Vincent, Peter, I've been running some tests on your patches (Peter's base + the 2 from Vincent). The results themselves are hosted at [1]. The base of those tests is the same: a task ("accumulator") is ran for 5 seconds (arbitrary value) to accumulate some load, then goes to sleep for .5 s

Re: [PATCH] x86: vmx: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-29 Thread Jim Mattson
On Mon, Jan 29, 2018 at 11:16 AM, Konrad Rzeszutek Wilk wrote: > On Mon, Jan 29, 2018 at 10:43:22AM -0800, Jim Mattson wrote: >> On Sun, Jan 28, 2018 at 11:29 AM, KarimAllah Ahmed >> wrote: >> > Add direct access to MSR_IA32_SPEC_CTRL for guests. This is needed for >> > guests >> > that will on

Re: [PATCH v3] net: macb: Handle HRESP error

2018-01-29 Thread David Miller
From: Date: Sat, 27 Jan 2018 12:09:01 +0530 > From: Harini Katakam > > Handle HRESP error by doing a SW reset of RX and TX and > re-initializing the descriptors, RX and TX queue pointers. > > Signed-off-by: Harini Katakam > Signed-off-by: Michal Simek Applied, thanks.

Re: [PATCH 03/24] x86/paravirt: Annotate indirect calls

2018-01-29 Thread Peter Zijlstra
On Mon, Jan 29, 2018 at 12:38:50PM -0600, Josh Poimboeuf wrote: > On Tue, Jan 23, 2018 at 04:25:42PM +0100, Peter Zijlstra wrote: > > Paravirt emits indirect calls which get flagged by objtool retpoline > > checks, annotate it away because all these indirect calls will be > > patched out before we

Re: [PATCH] x86: vmx: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-29 Thread Konrad Rzeszutek Wilk
On Mon, Jan 29, 2018 at 10:43:22AM -0800, Jim Mattson wrote: > On Sun, Jan 28, 2018 at 11:29 AM, KarimAllah Ahmed wrote: > > Add direct access to MSR_IA32_SPEC_CTRL for guests. This is needed for > > guests > > that will only mitigate Spectre V2 through IBRS+IBPB and will not be using a > > retpo

Re: [PATCH 08/11] membarrier: Provide core serializing command (v2)

2018-01-29 Thread Mathieu Desnoyers
- On Jan 29, 2018, at 2:09 PM, Peter Zijlstra pet...@infradead.org wrote: > On Mon, Jan 29, 2018 at 06:36:05PM +, Mathieu Desnoyers wrote: >> - On Jan 29, 2018, at 1:15 PM, Peter Zijlstra pet...@infradead.org wrote: > >> > Aaah, its the case where we do not pass through switch_mm(), t

Re: [PATCH v2 3/4] x86/kvm: Add IBPB support

2018-01-29 Thread Jim Mattson
On Sun, Jan 28, 2018 at 4:58 PM, KarimAllah Ahmed wrote: > From: Ashok Raj > > Add MSR passthrough for MSR_IA32_PRED_CMD and place branch predictor > barriers on switching between VMs to avoid inter VM Spectre-v2 attacks. > > [peterz: rebase and changelog rewrite] > [karahmed: - rebase >

Re: [PATCH v4.15-rc9] sched, cgroup: Don't reject lower cpu.max on ancestors

2018-01-29 Thread Tejun Heo
Hello, On Mon, Jan 22, 2018 at 11:26:18AM -0800, Tejun Heo wrote: > While adding cgroup2 interface for the cpu controller, 0d5936344f30 > ("sched: Implement interface for cgroup unified hierarchy") forgot to > update input validation and left it to reject cpu.max config if any > descendant has set

Re: [PATCH for 4.16 00/11] membarrier updates for 4.16

2018-01-29 Thread Peter Zijlstra
On Tue, Jan 23, 2018 at 10:57:22AM -0500, Mathieu Desnoyers wrote: > Hi Ingo, Peter, Thomas, > > Here is the updated membarrier patch series Aside from the horribly long symbols and the comment bike-shedding, I think its ok. Acked-by: Peter Zijlstra (Intel)

Re: [PATCH] kernfs: account kernfs_node_cache as reclaimable

2018-01-29 Thread Tejun Heo
On Fri, Jan 26, 2018 at 02:47:20PM -0800, Cong Wang wrote: > Similar to commit df206988e03e > ("fs: fuse: account fuse_inode slab memory as reclaimable"), these > kernfs nodes are currently included in the unreclaimable slab counts - > SUnreclaim in /proc/meminfo. And they are reclaimable too and c

Re: [patch -mm v2 2/3] mm, memcg: replace cgroup aware oom killer mount option with tunable

2018-01-29 Thread Tejun Heo
Hello, Michal. On Mon, Jan 29, 2018 at 11:46:57AM +0100, Michal Hocko wrote: > @@ -1292,7 +1292,11 @@ the memory controller considers only cgroups belonging > to the sub-tree > of the OOM'ing cgroup. > > The root cgroup is treated as a leaf memory cgroup, so it's compared > -with other leaf m

Re: [PATCH] x86: vmx: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-29 Thread KarimAllah Ahmed
On 01/29/2018 08:04 PM, Jim Mattson wrote: Can I assume you'll send out a new version with the fixes? Yes, I am currently doing some tests and once I am done I will send a new round. ... and the typo is already fixed in 'ibpb-wip' :) On Mon, Jan 29, 2018 at 11:01 AM, David Woodhouse wrot

Re: [PATCH 08/11] membarrier: Provide core serializing command (v2)

2018-01-29 Thread Peter Zijlstra
On Mon, Jan 29, 2018 at 06:36:05PM +, Mathieu Desnoyers wrote: > - On Jan 29, 2018, at 1:15 PM, Peter Zijlstra pet...@infradead.org wrote: > > Aaah, its the case where we do not pass through switch_mm(), the partial > > comment got to me. I only realized after reading the next patch. > >

Re: [PATCH v2 15/16] arm/arm64: smccc: Implement SMCCC v1.1 inline primitive

2018-01-29 Thread Robin Murphy
On 29/01/18 17:45, Marc Zyngier wrote: One of the major improvement of SMCCC v1.1 is that it only clobbers the first 4 registers, both on 32 and 64bit. This means that it becomes very easy to provide an inline version of the SMC call primitive, and avoid performing a function call to stash the re

Re: [PATCH 1/5] iommu/amd - Add debugfs support

2018-01-29 Thread Gary R Hook
On 01/26/2018 06:00 PM, Borislav Petkov wrote: On Fri, Jan 26, 2018 at 05:52:15PM -0600, Gary R Hook wrote: --- a/drivers/iommu/Kconfig +++ b/drivers/iommu/Kconfig @@ -135,6 +135,15 @@ config AMD_IOMMU_V2 hardware. Select this option if you want to use devices that support th

Re: [PATCH] x86: vmx: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-29 Thread Jim Mattson
Can I assume you'll send out a new version with the fixes? On Mon, Jan 29, 2018 at 11:01 AM, David Woodhouse wrote: > > (Top-posting; sorry.) > > Much of that is already fixed during our day, in > http://git.infradead.org/linux-retpoline.git/shortlog/refs/heads/ibpb > > I forgot to fix up the wro

Re: [PATCH v2 2/4] x86: vmx: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-29 Thread Jim Mattson
On Sun, Jan 28, 2018 at 4:58 PM, KarimAllah Ahmed wrote: > Add direct access to MSR_IA32_SPEC_CTRL for guests. This is needed for > guests that will only mitigate Spectre V2 through IBRS+IBPB and will not > be using a retpoline+IBPB based approach. > > To avoid the overhead of atomically saving an

Re: [PATCH] ACPI/PCI: pci_link: reduce verbosity when IRQ is enabled

2018-01-29 Thread Sinan Kaya
Rafael, On 1/16/2018 4:49 PM, Bjorn Helgaas wrote: > On Tue, Jan 16, 2018 at 01:53:00PM -0500, Sinan Kaya wrote: >> Correcting linux-pci email. >> >> On 1/16/2018 1:51 PM, Sinan Kaya wrote: >>> When ACPI Link object is enabled, the message is printed with a warning >>> prefix. Some test tools are

Re: [PATCH] pinctrl: at91-pio4: add support for drive-strength property

2018-01-29 Thread Rob Herring
On Mon, Jan 22, 2018 at 09:37:38AM +0100, Linus Walleij wrote: > On Thu, Jan 18, 2018 at 5:02 PM, Ludovic Desroches > wrote: > > > Add support for the drive-strength property. Usually its value is > > expressed in mA. Since the numeric value depends on VDDIOP voltage, > > the controller uses low,

Re: [PATCH] x86: vmx: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-29 Thread David Woodhouse
(Top-posting; sorry.) Much of that is already fixed during our day, in http://git.infradead.org/linux-retpoline.git/shortlog/refs/heads/ibpb I forgot to fix up the wrong-MSR typo though, and we do still need to address reset. On Mon, 2018-01-29 at 10:43 -0800, Jim Mattson wrote: > On Sun, Jan

Re: [PATCH 2/8] Input: mms114 - get read of custm i2c read/write functions

2018-01-29 Thread Dmitry Torokhov
On Mon, Jan 29, 2018 at 08:33:17PM +0900, Andi Shyti wrote: > The 'mms114_read_reg' and 'mms114_write_reg' are used when > reading or writing to the 'MMS114_MODE_CONTROL' register for > updating the 'cache_mode_control' variable. > > Update the 'cache_mode_control' variable in the calling > mms114

Re: [PATCH v2 1/4] x86: kvm: Update the reverse_cpuid list to include CPUID_7_EDX

2018-01-29 Thread Jim Mattson
On Sun, Jan 28, 2018 at 4:58 PM, KarimAllah Ahmed wrote: > Cc: Paolo Bonzini > Cc: Radim Krčmář > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: H. Peter Anvin > Cc: x...@kernel.org > Cc: k...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: KarimAllah Ahmed > --- > arch/x86

Re: [PATCH v2 4/4] x86: vmx: Allow direct access to MSR_IA32_ARCH_CAPABILITIES

2018-01-29 Thread KarimAllah Ahmed
On 01/29/2018 07:55 PM, Jim Mattson wrote: Why should this MSR be pass-through? I doubt that it would be accessed frequently. True. Will update it to be emulated and allow user-space to set the value exposed. On Sun, Jan 28, 2018 at 4:58 PM, KarimAllah Ahmed wrote: Add direct access to M

Re: [PATCH v7] Support intel-vbtn based tablet mode switch

2018-01-29 Thread Andy Shevchenko
On Sat, Jan 27, 2018 at 6:35 PM, Marco Martin wrote: > Some laptops such as Dell Inspiron 7000 series have the > tablet mode switch implemented in Intel ACPI, > the events to enter and exit the tablet mode are 0xCC and 0xCD > It doesn't apply :-( > CC: platform-driver-...@vger.kernel.org > CC: M

Re: [PATCH 2/2] clk: stm32: Add DSI clock for STM32F469 Board

2018-01-29 Thread Rob Herring
On Thu, Jan 18, 2018 at 03:49:40PM +0100, gabriel.fernan...@st.com wrote: > From: Gabriel Fernandez > > This patch adds DSI clock for STM32F469 board > > Signed-off-by: Gabriel Fernandez > --- > drivers/clk/clk-stm32f4.c | 11 ++- > include/dt-bindings/clock/stm32fx-clo

Re: [PATCH 5/8] Input: mms114 - use lower case for hexadecimal values

2018-01-29 Thread Dmitry Torokhov
On Mon, Jan 29, 2018 at 08:33:20PM +0900, Andi Shyti wrote: > Signed-off-by: Andi Shyti But why? > --- > drivers/input/touchscreen/mms114.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/input/touchscreen/mms114.c > b/drivers/input/touchscreen/mms1

Re: [PATCH v2 4/4] x86: vmx: Allow direct access to MSR_IA32_ARCH_CAPABILITIES

2018-01-29 Thread Jim Mattson
Why should this MSR be pass-through? I doubt that it would be accessed frequently. On Sun, Jan 28, 2018 at 4:58 PM, KarimAllah Ahmed wrote: > Add direct access to MSR_IA32_SPEC_CTRL for guests. Future intel processors > will use this MSR to indicate RDCL_NO (bit 0) and IBRS_ALL (bit 1). > > Cc: A

Re: [PATCH 1/2] clk: stm32: END_PRIMARY_CLK should be declare after CLK_SYSCLK

2018-01-29 Thread Rob Herring
On Thu, Jan 18, 2018 at 03:49:39PM +0100, gabriel.fernan...@st.com wrote: > From: Gabriel Fernandez > > Update of END_PRIMARY_CLK was missed, it should be after CLK_SYSCLK > hsi and sysclk are overwritten by gpioa and gpiob. > > Signed-off-by: Gabriel Fernandez > --- > include/dt-bindings/cloc

Re: [PATCH v3 1/1] mm: page_alloc: skip over regions of invalid pfns on UMA

2018-01-29 Thread Michal Hocko
On Wed 24-01-18 15:35:45, Eugeniu Rosca wrote: [...] > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 76c9688b6a0a..4a3d5936a9a0 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -5344,14 +5344,12 @@ void __meminit memmap_init_zone(unsigned long size, > int nid, unsigned long zon

Re: [PATCH 6/6] MAINTAINERS: Update ARM/QUALCOMM SUPPORT patterns

2018-01-29 Thread David Brown
On Sun, Jan 28, 2018 at 05:56:29AM -0800, Joe Perches wrote: commit 321737416c72d ("tty: serial: msm: Move header file into driver") removed the .h file, update the patterns. Signed-off-by: Joe Perches cc: Stephen Boyd cc: Andy Gross cc: David Brown --- MAINTAINERS | 1 - 1 file changed, 1 de

Re: [RFC PATCH 2/5] sched: Add NOHZ_STATS_KICK

2018-01-29 Thread Dietmar Eggemann
On 01/24/2018 09:25 AM, Vincent Guittot wrote: Hi, Le Thursday 18 Jan 2018 à 10:38:07 (+), Morten Rasmussen a écrit : On Mon, Jan 15, 2018 at 09:26:09AM +0100, Vincent Guittot wrote: Le Wednesday 03 Jan 2018 à 10:16:00 (+0100), Vincent Guittot a écrit : [...] Hi Peter, With the patch

Re: [PATCH] x86: vmx: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-29 Thread Jim Mattson
On Sun, Jan 28, 2018 at 11:29 AM, KarimAllah Ahmed wrote: > Add direct access to MSR_IA32_SPEC_CTRL for guests. This is needed for guests > that will only mitigate Spectre V2 through IBRS+IBPB and will not be using a > retpoline+IBPB based approach. > > To avoid the overhead of atomically saving a

Re: [PATCH] btrfs: fix err_cast.cocci warnings

2018-01-29 Thread David Sterba
On Mon, Jan 29, 2018 at 02:50:10AM +0800, kbuild test robot wrote: > From: Fengguang Wu > > fs/btrfs/volumes.c:742:10-17: WARNING: ERR_CAST can be used with fs_devices > > > Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)) > > Generated by: scripts/coccinelle/api/err_cast.cocci

Re: [PATCH 4/8] Input: mms114 - remove unused variable

2018-01-29 Thread Dmitry Torokhov
On Mon, Jan 29, 2018 at 08:33:19PM +0900, Andi Shyti wrote: > '__packed' is not used anywhere, remove it. Umm, this is not a variable, this is type annotation meaning that the structure is packed. Still not needed, as we are not using anything but u8 data elements, but justification is completely

Re: [PATCH v2 13/16] firmware/psci: Expose SMCCC version through psci_ops

2018-01-29 Thread Lorenzo Pieralisi
On Mon, Jan 29, 2018 at 05:45:56PM +, Marc Zyngier wrote: > Since PSCI 1.0 allows the SMCCC version to be (indirectly) probed, > let's do that at boot time, and expose the version of the calling > convention as part of the psci_ops structure. > > Signed-off-by: Marc Zyngier > --- > drivers/f

Re: [PATCH 03/24] x86/paravirt: Annotate indirect calls

2018-01-29 Thread Josh Poimboeuf
On Tue, Jan 23, 2018 at 04:25:42PM +0100, Peter Zijlstra wrote: > Paravirt emits indirect calls which get flagged by objtool retpoline > checks, annotate it away because all these indirect calls will be > patched out before we start userspace. There's one condition where this isn't true: the 'nore

[PULL 00/21] Xtensa improvements for v4.16

2018-01-29 Thread Max Filippov
-0800) are available in the git repository at: git://github.com/jcmvbkbc/linux-xtensa.git tags/xtensa-20180129 for you to fetch changes up to ca47480921587ae30417dd234a9f79af188e3666: xtensa: fix futex_atomic_cmpxchg_inatomic (2018-01-05 15:55:59

Re: [PATCH 08/11] membarrier: Provide core serializing command (v2)

2018-01-29 Thread Mathieu Desnoyers
- On Jan 29, 2018, at 1:15 PM, Peter Zijlstra pet...@infradead.org wrote: > On Mon, Jan 29, 2018 at 07:04:14PM +0100, Peter Zijlstra wrote: >> On Tue, Jan 23, 2018 at 10:57:30AM -0500, Mathieu Desnoyers wrote: >> > diff --git a/kernel/sched/core.c b/kernel/sched/core.c >> > index f38c4c7e256a.

Re: selftests/x86/fsgsbase_64 test problem

2018-01-29 Thread H. Peter Anvin
On 01/29/18 10:26, Andy Lutomirski wrote: >>> >>> That will utterly suck on non-UMIP machines that have >>> hypervisor-provided UMIP emulation. >> >> Is that a valid thing to optimize for, especially given that paranoid >> entries aren't the most common anyway? > > A bunch of people seem to care a

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