[PATCH 4.14 050/167] Revert "x86/speculation: Simplify indirect_branch_prediction_barrier()"

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: David Woodhouse commit f208820a321f9b23d77d7eed89945d862d62a3ed upstream. This reverts commit 64e16720ea0879f8ab4547e3b9758936d483909b. We cannot call C functions like that, without marking a

[PATCH 4.14 046/167] powerpc/mm/radix: Split linear mapping on hot-unplug

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Balbir Singh commit 4dd5f8a99e791a8c6500e3592f3ce81ae7edcde1 upstream. This patch splits the linear mapping if the hot-unplug range is smaller than the mapping size. The code detects if the ma

[PATCH 4.14 047/167] x86/mm/pti: Fix PTI comment in entry_SYSCALL_64()

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Nadav Amit commit 14b1fcc62043729d12e8ae00f8297ab2ffe9fa91 upstream. The comment is confusing since the path is taken when CONFIG_PAGE_TABLE_ISOLATION=y is disabled (while the comment says it

[PATCH 4.14 044/167] crypto: sun4i_ss_prng - fix return value of sun4i_ss_prng_generate

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Artem Savkov commit dd78c832ffaf86eb6434e56de4bc3bc31f03f771 upstream. According to crypto/rng.h generate function should return 0 on success and < 0 on error. Fixes: b8ae5c7387ad ("crypto: s

[PATCH 4.14 041/167] x86/entry/64/compat: Clear registers for compat syscalls, to reduce speculation attack surface

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit 6b8cf5cc9965673951f1ab3f0e3cf23d06e3e2ee upstream. At entry userspace may have populated registers with values that could otherwise be useful in a speculative execution att

[PATCH 4.14 000/167] 4.14.21-stable review

2018-02-21 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.21 release. There are 167 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Fri Feb 23 12:44:42 UTC 2018. Anything recei

Re: [PATCH v2 01/21] lib/vsprintf: Print time and date in human readable format via %pt

2018-02-21 Thread Geert Uytterhoeven
On Wed, Feb 21, 2018 at 2:23 PM, Andy Shevchenko wrote: > On Wed, 2018-02-21 at 08:38 +0100, Rasmus Villemoes wrote: >> On 2018-02-21 00:55, Joe Perches wrote: >> > On Tue, 2018-02-20 at 23:43 +0200, Andy Shevchenko wrote: >> > > There are users which print time and date represented by content >>

[PATCH 4.14 008/167] IB/core: Avoid a potential OOPs for an unused optional parameter

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Michael J. Ruhl commit 2ff124d597c2df8696169ce0006fc974c49a4569 upstream. The ev_file is an optional parameter for CQ creation. If the parameter is not passed, the ev_file pointer will be NULL

[PATCH 4.14 006/167] IB/core: Fix two kernel warnings triggered by rxe registration

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 02ee9da347873699603d9ce0112a80b5dd69dea1 upstream. Eliminate the WARN_ONs that create following two warnings when registering an rxe device: WARNING: CPU: 2 PID: 1005 a

[PATCH 4.14 030/167] arm: dts: mt7623: fix card detection issue on bananapi-r2

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Sean Wang commit b96a696fb2a8dd1ee4e6cfee48dcac270fc53287 upstream. Fix that bananapi-r2 booting from SD-card would fail since incorrect polarity is applied to the previous setup with GPIO_ACT

[PATCH 4.14 029/167] ARM: dts: nomadik: add interrupt-parent for clcd

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit e8bfa0422469cdfc86be3f525f621b1d44d2481b upstream. The clcd device is lacking an interrupt-parent property, which makes the interrupt unusable and shows up as a warning wi

[PATCH 4.14 027/167] ARM: lpc3250: fix uda1380 gpio numbers

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit ca32e0c4bf9ca4b87089c5a5ce945e5f2ec890da upstream. dtc warns about obviously incorrect GPIO numbers for the audio codec on both lpc32xx boards: arch/arm/boot/dts/lpc3250-

[PATCH 4.14 026/167] arm64: dts: msm8916: Correct ipc references for smsm

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Andersson commit 566bd8902e7fa20bd412ed753e09e89c1c96939c upstream. SMSM is not symmetrical, the incoming bits from WCNSS are available at index 6, but the outgoing host id for WCNSS is

[PATCH 4.14 020/167] powerpc/numa: Invalidate numa_cpu_lookup_table on cpu remove

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Nathan Fontenot commit 1d9a090783bef19fe8cdec878620d22f05191316 upstream. When DLPAR removing a CPU, the unmapping of the cpu from a node in unmap_cpu_from_node() should also invalidate the CP

[PATCH 4.14 019/167] powerpc/radix: Remove trace_tlbie call from radix__flush_tlb_all

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Mahesh Salgaonkar commit 8d81296cfcce89013a714feb8d25004a156f8181 upstream. radix__flush_tlb_all() is called only in kexec path in real mode and any tracepoints at this stage will make kexec t

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2018-02-21 Thread Boris Brezillon
Hi Greg, On Tue, 19 Dec 2017 10:36:43 +0100 Greg Kroah-Hartman wrote: > On Tue, Dec 19, 2017 at 10:28:58AM +0100, Boris Brezillon wrote: > > On Tue, 19 Dec 2017 10:21:19 +0100 > > Greg Kroah-Hartman wrote: > > > > > On Tue, Dec 19, 2017 at 10:13:36AM +0100, Boris Brezillon wrote: > > > > O

[PATCH 4.14 017/167] mwifiex: resolve reset vs. remove()/shutdown() deadlocks

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Brian Norris commit a64e7a79dd6030479caad603c8d78e6c9c14904f upstream. Commit b014e96d1abb ("PCI: Protect pci_error_handlers->reset_notify() usage with device_lock()") resolves races between d

[PATCH 4.14 013/167] RDMA/rxe: Fix rxe_qp_cleanup()

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit bb3ffb7ad48a21e98a5c64eb21103a74fd9f03f6 upstream. rxe_qp_cleanup() can sleep so it must be run in thread context and not in atomic context. This patch avoids that the f

[PATCH 4.14 011/167] RDMA/rxe: Fix a race condition related to the QP error state

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 6f301e06de4cf9ab7303f5acd43e64fcd4aa04be upstream. The following sequence: * Change queue pair state into IB_QPS_ERR. * Post a work request on the queue pair. Triggers

[PATCH 4.14 012/167] RDMA/rxe: Fix a race condition in rxe_requester()

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 65567e41219888feec72fee1de98ccf1efbbc16d upstream. The rxe driver works as follows: * The send queue, receive queue and completion queues are implemented as circular b

[PATCH 4.14 010/167] kselftest: fix OOM in memory compaction test

2018-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 4c1baad223906943b595a887305f2e8124821dad upstream. Running the compaction_test sometimes results in out-of-memory failures. When I debugged this, it turned out that the co

[PATCH 4.9 44/77] ARM: lpc3250: fix uda1380 gpio numbers

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit ca32e0c4bf9ca4b87089c5a5ce945e5f2ec890da upstream. dtc warns about obviously incorrect GPIO numbers for the audio codec on both lpc32xx boards: arch/arm/boot/dts/lpc3250-p

[PATCH 4.9 52/77] x86/speculation: Update Speculation Control microcode blacklist

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: David Woodhouse commit 1751342095f0d2b36fa8114d8e12c5688c455ac4 upstream. Intel have retroactively blessed the 0xc2 microcode on Skylake mobile and desktop parts, and the Gemini Lake 0x22 micro

[PATCH 4.9 49/77] arm: spear13xx: Fix spics gpio controllers warning

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Viresh Kumar commit f8975cb1b8a36d0839b6365235778dd9df1d04ca upstream. This fixes the following warning by also sending the flags argument for gpio controllers: Property 'cs-gpios', cell 6 is

[PATCH 4.9 51/77] compiler-gcc.h: Introduce __optimize function attribute

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit df5d45aa08f848b79caf395211b222790534ccc7 upstream. Create a new function attribute __optimize, which allows to specify an optimization level on a per-function basis.

[PATCH 4.9 50/77] x86/entry/64/compat: Clear registers for compat syscalls, to reduce speculation attack surface

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit 6b8cf5cc9965673951f1ab3f0e3cf23d06e3e2ee upstream. At entry userspace may have populated registers with values that could otherwise be useful in a speculative execution atta

[PATCH 4.9 76/77] mmc: sdhci-of-esdhc: fix eMMC couldnt work after kexec

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: yinbo.zhu commit 97618aca1440b5addc5c3d78659d3e176be23b80 upstream. The bit eSDHC_TBCTL[TB_EN] couldn't be reset by eSDHC_SYSCTL[RSTA] which is used to reset for all. The driver should make sur

[PATCH 4.9 74/77] ARM: dts: Delete bogus reference to the charlcd

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Linus Walleij commit 586b2a4befad88cd87b372a1cea01e58c6811ea9 upstream. The EB MP board probably has a character LCD but the board manual does not really state which IRQ it has assigned to this

[PATCH 4.9 73/77] arm: dts: mt2701: Add reset-cells

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Matthias Brugger commit ae72e95b5e4ded145bfc6926ad9457b74e3af41a upstream. The hifsys and ethsys needs the definition of the reset-cells property. Fix this. Reviewed-by: Rob Herring Signed-of

Re: [PATCH v4 5/6] extcon: add possibility to get extcon device by OF node

2018-02-21 Thread Andy Shevchenko
On Wed, Feb 21, 2018 at 10:55 AM, Andrzej Hajda wrote: > Since extcon property is not allowed in DT, extcon subsystem requires > another way to get extcon device. Lets try the simplest approach - get > edev by of_node. > +/* > + * extcon_get_edev_by_of_node - Get the extcon device from devicetree

[PATCH 4.9 71/77] arm64: dts: msm8916: Add missing #phy-cells

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Andersson commit b0ab681285aa66064f2de5b74191c0cabba381ff upstream. Add a missing #phy-cells to the dsi-phy, to silence dtc warning. Cc: Archit Taneja Fixes: 305410ffd1b2 ("arm64: dts:

[PATCH 4.9 70/77] ARM: pxa/tosa-bt: add MODULE_LICENSE tag

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 3343647813fdf0f2409fbf5816ee3e0622168079 upstream. Without this tag, we get a build warning: WARNING: modpost: missing MODULE_LICENSE() in arch/arm/mach-pxa/tosa-bt.o For

[PATCH 4.9 69/77] ARM: dts: exynos: fix RTC interrupt for exynos5410

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 5628a8ca14149ba4226e3bdce3a04c3b688435ad upstream. According to the comment added to exynos_dt_pmu_match[] in commit 8b283c025443 ("ARM: exynos4/5: convert pmu wakeup to st

[PATCH 4.9 67/77] x86: fix build warnign with 32-bit PAE

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- I ran into a 4.9 build warning in randconfig testing, starting with the KAISER patches: arch/x86/kernel/ldt.c: In function 'alloc_ldt_struct': arch/x86/include/asm/pgtable_types.h:208:24: error: large

[PATCH 4.9 46/77] ARM: dts: nomadik: add interrupt-parent for clcd

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit e8bfa0422469cdfc86be3f525f621b1d44d2481b upstream. The clcd device is lacking an interrupt-parent property, which makes the interrupt unusable and shows up as a warning wit

[PATCH 4.9 64/77] x86/cpu: Rename cpu_data.x86_mask to cpu_data.x86_stepping

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jia Zhang commit b399151cb48db30ad1e0e93dd40d68c6d007b637 upstream. x86_mask is a confusing name which is hard to associate with the processor's stepping. Additionally, correct an indent issue

[PATCH 4.9 63/77] selftests/x86/mpx: Fix incorrect bounds with old _sigfault

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Rui Wang commit 961888b1d76d84efc66a8f5604b06ac12ac2f978 upstream. For distributions with old userspace header files, the _sigfault structure is different. mpx-mini-test fails with the followin

[PATCH 4.9 61/77] nospec: Move array_index_nospec() parameter checking into separate macro

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit 8fa80c503b484ddc1abbd10c7cb2ab81f3824a50 upstream. For architectures providing their own implementation of array_index_mask_nospec() in asm/barrier.h, attempting to use WARN_

[PATCH] iio: light: add driver for bh1730fvc chips

2018-02-21 Thread Pierre Bourdon
Ambient light sensor that supports visible light and IR measurements and configurable gain/integration time. Signed-off-by: Pierre Bourdon --- .../devicetree/bindings/iio/light/bh1730.txt | 15 + drivers/iio/light/Kconfig | 10 + drivers/iio/light/Makefile

[PATCH 4.9 60/77] x86/speculation: Fix up array_index_nospec_mask() asm constraint

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit be3233fbfcb8f5acb6e3bcd0895c3ef9e100d470 upstream. Allow the compiler to handle @size as an immediate value or memory directly rather than allocating a register. Reported-b

[PATCH 4.9 58/77] selftests/x86: Do not rely on "int $0x80" in test_mremap_vdso.c

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dominik Brodowski commit 2cbc0d66de0480449c75636f55697c7ff3af61fc upstream. On 64-bit builds, we should not rely on "int $0x80" working (it only does if CONFIG_IA32_EMULATION=y is enabled). Wi

[PATCH 4.9 59/77] selftests/x86: Do not rely on "int $0x80" in single_step_syscall.c

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dominik Brodowski commit 4105c69703cdeba76f384b901712c9397b04e9c2 upstream. On 64-bit builds, we should not rely on "int $0x80" working (it only does if CONFIG_IA32_EMULATION=y is enabled). To

[PATCH 4.9 14/77] video: fbdev: atmel_lcdfb: fix display-timings lookup

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

[PATCH v2] rtc: m48t59: use generic nvmem

2018-02-21 Thread Alexandre Belloni
Instead of adding a binary sysfs attribute from the driver (which suffers from a race condition as the attribute appears after the device), use the core to register an nvmem device. Signed-off-by: Alexandre Belloni --- Changes in v2: - set nvmem_cfg.size once pdata->offset is defined drivers/

[PATCH v3] Handle vendor defined behavior in tcpci_init, tcpci_set_vconn and export tcpci_irq. More operations can be extended in tcpci_data if needed. According to TCPCI specification, 4.4.5.2 ROLE_C

2018-02-21 Thread ShuFanLee
From: ShuFanLee Signed-off-by: ShuFanLee --- drivers/staging/typec/tcpci.c | 128 +- drivers/staging/typec/tcpci.h | 13 + 2 files changed, 115 insertions(+), 26 deletions(-) patch changelogs between v1 & v2 - Remove unnecessary i2c_client in the

[PATCH 4.9 45/77] ARM: dts: STi: Add gpio polarity for "hdmi,hpd-gpio" property

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Patrice Chotard commit 7ac1f59c09a61e6af6622df6809e003b0af07f3d upstream. The GPIO polarity is missing in the hdmi,hpd-gpio property, this fixes the following DT warnings: arch/arm/boot/dts/st

Re: [PATCH 2/2] perf, tools, stat: Reset ids counter when retrying events

2018-02-21 Thread Jiri Olsa
On Thu, Oct 05, 2017 at 07:00:29PM -0700, Andi Kleen wrote: > From: Andi Kleen ouch, sry for overlooking this > > perf stat can retry opening events. After opening an file descriptor > it adds the ids to the ecsel. Each event keeps a running > count of ids. When we decide to close an evsel and

Re: [PATCH 20/20] lightnvm: pblk: implement 2.0 support

2018-02-21 Thread Javier González
BTW, there is a V3 for this patch at least, adding holes in the mapping bitmap to avoid the multiplications and divisions on the fast path, when the media format is not a power of two. I'll send it this week; just wanted to get this out for revision. Javier > On 21 Feb 2018, at 10.26, Javier Gonz

[PATCH 4.9 13/77] PCI: keystone: Fix interrupt-controller-node lookup

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit eac56aa3bc8af3d9b9850345d0f2da9d83529134 upstream. Fix child-node lookup during initialisation which was using the wrong OF-helper and ended up searching the whole device tr

Re: [PATCH v2 1/2] KVM: x86: Add a framework for supporting MSR-based features

2018-02-21 Thread Paolo Bonzini
On 21/02/2018 15:15, Tom Lendacky wrote: > On 2/21/2018 5:41 AM, Paolo Bonzini wrote: >> On 16/02/2018 00:12, Tom Lendacky wrote: >>> +static u32 msr_based_features[] = { >>> +}; >>> + >>> +static unsigned int num_msr_based_features = >>> ARRAY_SIZE(msr_based_features); >>> + >>> bool kvm_valid_e

Re: [PATCH 1/2] perf, tools, stat: Use xyarray dimensions to iterate fds

2018-02-21 Thread Jiri Olsa
On Thu, Oct 05, 2017 at 07:00:28PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Now that the xyarray stores the dimensions we can use those > to iterate over the FDs for a evsel. > > Signed-off-by: Andi Kleen Acked-by: Jiri Olsa thanks, jirka > --- > tools/perf/builtin-stat.c | 11 +

[PATCH 4.9 41/77] ocfs2: try a blocking lock before return AOP_TRUNCATED_PAGE

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Gang He commit ff26cc10aec128c3f86b5611fd5f59c71d49c0e3 upstream. If we can't get inode lock immediately in the function ocfs2_inode_lock_with_page() when reading a page, we should not return d

[PATCH 4.9 42/77] s390: fix handling of -1 in set{,fs}[gu]id16 syscalls

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eugene Syromiatnikov commit 6dd0d2d22aa363fec075cb2577ba273ac8462e94 upstream. For some reason, the implementation of some 16-bit ID system calls (namely, setuid16/setgid16 and setfsuid16/setfs

Re: [PATCH 2/2] perf, tools, stat: Reset ids counter when retrying events

2018-02-21 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 21, 2018 at 03:31:17PM +0100, Jiri Olsa escreveu: > On Thu, Oct 05, 2017 at 07:00:29PM -0700, Andi Kleen wrote: > > From: Andi Kleen > > ouch, sry for overlooking this > > > > > perf stat can retry opening events. After opening an file descriptor > > it adds the ids to the ecsel. Ea

[PATCH v2] x86: consider effective protection attributes in W+X check

2018-02-21 Thread Jan Beulich
Using just the leaf page table entry flags would cause a false warning in case _PAGE_RW is clear or _PAGE_NX is set in a higher level entry. Hand through both the current entry's flags as well as the accumulated effective value (the latter as pgprotval_t instead of pgprot_t, as it's not an actual e

[PATCH 4.9 39/77] cpufreq: powernv: Dont assume distinct pstate values for nominal and pmin

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Shilpasri G Bhat commit 3fa4680b860bf48b437d6a2c039789c4abe202ae upstream. Some OpenPOWER boxes can have same pstate values for nominal and pmin pstates. In these boxes the current code will no

[PATCH 4.9 35/77] IB/qib: Fix comparison error with qperf compare/swap test

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mike Marciniszyn commit 87b3524cb5058fdc7c2afdb92bdb2e079661ddc4 upstream. This failure exists with qib: ver_rc_compare_swap: mismatch, sequence 2, expected 123456789abcdef, got 0 The request

[PATCH 4.9 36/77] IB/mlx4: Fix incorrectly releasing steerable UD QPs when have only ETH ports

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jack Morgenstein commit 852f6927594d0d3e8632c889b2ab38cbc46476ad upstream. Allocating steerable UD QPs depends on having at least one IB port, while releasing those QPs does not. As a result,

[PATCH 4.9 34/77] powerpc: fix build errors in stable tree

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Piggin This is just the first chunk of commit 222f20f140623ef6033491d0103ee0875fe87d35 upstream. to fix a build error in the powerpc tree due to other backports happening (and this ful

[PATCH 4.9 33/77] dm: correctly handle chained bios in dec_pending()

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit 8dd601fa8317243be887458c49f6c29c2f3d719f upstream. dec_pending() is given an error status (possibly 0) to be recorded against a bio. It can be called several times on the one

[PATCH 4.9 28/77] ALSA: hda/realtek: PCI quirk for Fujitsu U7x7

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jan-Marek Glogowski commit fdcc968a3b290407bcba9d4c90e2fba6d8d928f1 upstream. These laptops have a combined jack to attach headsets, the U727 on the left, the U757 on the right, but a headsets

[PATCH] crypto: ccp: add check to get PSP master only when PSP is detected

2018-02-21 Thread Brijesh Singh
Paulian reported the below kernel crash on Ryzen 5 system: BUG: unable to handle kernel NULL pointer dereference at 0073 RIP: 0010:.LC0+0x41f/0xa00 RSP: 0018:a9968003bdd0 EFLAGS: 00010002 RAX: b113b130 RBX: RCX: 05a7 RDX: 00ff RSI: f

[PATCH 4.9 26/77] ALSA: usb-audio: Fix UAC2 get_ctl request with a RANGE attribute

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Kirill Marinushkin commit 447cae58cecd69392b74a4a42cd0ab9cabd816af upstream. The layout of the UAC2 Control request and response varies depending on the request type. With the current implement

Re: [PATCH 2/2] perf, tools, stat: Reset ids counter when retrying events

2018-02-21 Thread Jiri Olsa
On Wed, Feb 21, 2018 at 11:33:37AM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Feb 21, 2018 at 03:31:17PM +0100, Jiri Olsa escreveu: > > On Thu, Oct 05, 2017 at 07:00:29PM -0700, Andi Kleen wrote: > > > From: Andi Kleen > > > > ouch, sry for overlooking this > > > > > > > > perf stat can r

[PATCH 4.9 07/77] ext4: fix a race in the ext4 shutdown path

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Harshad Shirwadkar commit abbc3f9395c76d554a9ed27d4b1ebfb5d9b0e4ca upstream. This patch fixes a race between the shutdown path and bio completion handling. In the ext4 direct io path with async

[PATCH 1/4] drm/atomic: integrate modeset lock with private objects

2018-02-21 Thread Rob Clark
Follow the same pattern of locking as with other state objects. This avoids boilerplate in the driver. Signed-off-by: Rob Clark --- drivers/gpu/drm/drm_atomic.c | 9 - include/drm/drm_atomic.h | 5 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/

Re: [PATCH 1/2] perf, tools, stat: Use xyarray dimensions to iterate fds

2018-02-21 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 21, 2018 at 03:33:11PM +0100, Jiri Olsa escreveu: > On Thu, Oct 05, 2017 at 07:00:28PM -0700, Andi Kleen wrote: > > From: Andi Kleen > > > > Now that the xyarray stores the dimensions we can use those > > to iterate over the FDs for a evsel. > > > > Signed-off-by: Andi Kleen > > Ac

[PATCH 2/4] drm/msm/mdp5: Add global state as a private atomic object

2018-02-21 Thread Rob Clark
From: Archit Taneja Global shared resources (hwpipes, hwmixers and SMP) for MDP5 are implemented as a part of atomic state by subclassing drm_atomic_state. The preferred approach is to use the drm_private_obj infrastructure available in the atomic core. mdp5_global_state is introduced as a drm

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2018-02-21 Thread Greg Kroah-Hartman
On Wed, Feb 21, 2018 at 03:22:48PM +0100, Boris Brezillon wrote: > Hi Greg, > > On Tue, 19 Dec 2017 10:36:43 +0100 > Greg Kroah-Hartman wrote: > > > On Tue, Dec 19, 2017 at 10:28:58AM +0100, Boris Brezillon wrote: > > > On Tue, 19 Dec 2017 10:21:19 +0100 > > > Greg Kroah-Hartman wrote: > > >

[PATCH 3/4] drm/msm/mdp5: Use the new private_obj state

2018-02-21 Thread Rob Clark
From: Archit Taneja This replaces the usage of the subclassed atomic state (mdp5_state) with a private_obj state embedded within drm_atomic_state. The latter method is the preferred approach, since it's simpler to implement and less prone to errors. The new API replaces the older and equivalent

[PATCH 4/4] drm/msm: Don't subclass drm_atomic_state anymore

2018-02-21 Thread Rob Clark
From: Archit Taneja With the addition of "private_objs" in drm_atomic_state, we no longer need to subclass drm_atomic_state to store state of share resources that don't perfectly fit within planes/crtc/connector state information. We can now save this state within drm_atomic_state itself using th

Re: [PATCH v3] Handle vendor defined behavior in tcpci_init, tcpci_set_vconn and export tcpci_irq. More operations can be extended in tcpci_data if needed. According to TCPCI specification, 4.4.5.2 RO

2018-02-21 Thread Greg KH
On Wed, Feb 21, 2018 at 10:30:34PM +0800, ShuFanLee wrote: > From: ShuFanLee > > Signed-off-by: ShuFanLee Something went really wrong with your subject line :( Please fix and try again. thanks, greg k-h

Re: [PATCH 2/2] perf, tools, stat: Reset ids counter when retrying events

2018-02-21 Thread Jiri Olsa
On Wed, Feb 21, 2018 at 11:00:02AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Oct 05, 2017 at 07:00:29PM -0700, Andi Kleen escreveu: > > From: Andi Kleen > > > > perf stat can retry opening events. After opening an file descriptor > > it adds the ids to the ecsel. Each event keeps a running

Re: [PATCH] arm64: cpufeature: Trim feature reporting and include PAN emulation

2018-02-21 Thread Mark Rutland
On Wed, Feb 21, 2018 at 11:18:27AM +, Dave Martin wrote: > On Tue, Feb 20, 2018 at 02:46:24PM -0800, Kees Cook wrote: > > The PAN emulation notification was only happening for non-boot CPUs > > if CPU capabilities had already been configured. This seems to be the > > wrong place, as it's system

[PATCH 4.9 22/77] Btrfs: fix unexpected -EEXIST when creating new inode

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Liu Bo commit 900c9981680067573671ecc5cbfa7c5770be3a40 upstream. The highest objectid, which is assigned to new inode, is decided at the time of initializing fs roots. However, in cases where

[PATCH 4.9 17/77] target/iscsi: avoid NULL dereference in CHAP auth error path

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: David Disseldorp commit ce512d79d0466a604793addb6b769d12ee326822 upstream. If chap_server_compute_md5() fails early, e.g. via CHAP_N mismatch, then crypto_free_shash() is called with a NULL poi

[PATCH 4.9 16/77] rtlwifi: rtl8821ae: Fix connection lost problem correctly

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Larry Finger commit c713fb071edc0efc01a955f65a006b0e1795d2eb upstream. There has been a coding error in rtl8821ae since it was first introduced, namely that an 8-bit register was read using a 1

[PATCH 4.9 18/77] Btrfs: fix deadlock in run_delalloc_nocow

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Liu Bo commit e89166990f11c3f21e1649d760dd35f9e410321c upstream. @cur_offset is not set back to what it should be (@cow_start) if btrfs_next_leaf() returns something wrong, and the range [cow_s

[PATCH 4.9 19/77] Btrfs: fix crash due to not cleaning up tree log blocks dirty bits

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Liu Bo commit 1846430c24d66e85cc58286b3319c82cd54debb2 upstream. In cases that the whole fs flips into readonly status due to failures in critical sections, then log tree's blocks are still dir

[PATCH v2] crypto: ccp: add check to get PSP master only when PSP is detected

2018-02-21 Thread Brijesh Singh
Paulian reported the below kernel crash on Ryzen 5 system: BUG: unable to handle kernel NULL pointer dereference at 0073 RIP: 0010:.LC0+0x41f/0xa00 RSP: 0018:a9968003bdd0 EFLAGS: 00010002 RAX: b113b130 RBX: RCX: 05a7 RDX: 00ff RSI: f

[PATCH 4.9 06/77] jbd2: fix sphinx kernel-doc build warnings

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Tobin C. Harding commit f69120ce6c024aa634a8fc25787205e42f0ccbe6 upstream. Sphinx emits various (26) warnings when building make target 'htmldocs'. Currently struct definitions contain duplicat

Re: [PATCH 0/6] DISCONTIGMEM support for PPC32

2018-02-21 Thread Jonathan Neuschäfer
Hi, On Wed, Feb 21, 2018 at 08:06:10AM +0100, Christophe LEROY wrote: > > > Le 20/02/2018 à 17:14, Jonathan Neuschäfer a écrit : > > This patchset adds support for DISCONTIGMEM on 32-bit PowerPC. This is > > required to properly support the Nintendo Wii's memory layout, in which > > there are tw

Re: mainline build: 15 warnings 0 failures (mainline/v4.16-rc2-64-gaf3e79d)

2018-02-21 Thread Kishon Vijay Abraham I
On Wednesday 21 February 2018 06:12 PM, Arnd Bergmann wrote: > On Tue, Feb 20, 2018 at 7:34 PM, Olof's autobuilder wrote: >> Here are the build results from automated periodic testing. >> >> The tree being built was mainline, found at: >> >> URL: git://git.kernel.org/pub/scm/linux/kernel/git/tor

Re: [tip:x86/pti] objtool, retpolines: Integrate objtool with retpoline support more closely

2018-02-21 Thread Peter Zijlstra
On Wed, Feb 21, 2018 at 10:59:14AM +, David Woodhouse wrote: > On Wed, 2018-02-21 at 02:34 -0800, tip-bot for Peter Zijlstra wrote: > > > > --- a/Makefile > > +++ b/Makefile > > @@ -489,6 +489,11 @@ KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) > >  KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_

Re: [PATCH 1/6] powerpc/mm/32: Use pfn_valid to check if pointer is in RAM

2018-02-21 Thread Jonathan Neuschäfer
On Wed, Feb 21, 2018 at 02:51:19PM +0100, Jonathan Neuschäfer wrote: [...] > While looking through arch/powerpc/mm, I noticed that there's a > page_is_ram function, which simply uses the memblocks directly, on > PPC32. Oops, I misread the code here. memblock is used on PPC64. > It seems like a go

Re: [PATCH] RDMA/core: reduce IB_POLL_BATCH constant

2018-02-21 Thread Max Gurtovoy
On 2/21/2018 3:44 PM, Sagi Grimberg wrote: On Tue, 2018-02-20 at 21:59 +0100, Arnd Bergmann wrote: /* # of WCs to poll for with a single call to ib_poll_cq */ -#define IB_POLL_BATCH    16 +#define IB_POLL_BATCH    8 The purpose of batch polling is to minimize contention on

Re: [PATCH 4.4 00/33] 4.4.117-stable review

2018-02-21 Thread Nathan Chancellor
On Wed, Feb 21, 2018 at 01:44:43PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.117 release. > There are 33 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer

2018-02-21 Thread Guenter Roeck
On 02/20/2018 11:15 PM, Mikko Perttunen wrote: AIUI, the PWM framework already exposes a sysfs node with period information. We should just use that instead of adding a new driver for this. I am kind of lost. Please explain. Are you saying that we should drop the pwm-fan driver as well (whic

Re: [PATCH v2 1/2] KVM: x86: Add a framework for supporting MSR-based features

2018-02-21 Thread Tom Lendacky
On 2/21/2018 8:32 AM, Paolo Bonzini wrote: > On 21/02/2018 15:15, Tom Lendacky wrote: >> On 2/21/2018 5:41 AM, Paolo Bonzini wrote: >>> On 16/02/2018 00:12, Tom Lendacky wrote: +static u32 msr_based_features[] = { +}; + +static unsigned int num_msr_based_features = ARRAY_S

Re: [PATCH 0/2] Stackleak for arm64

2018-02-21 Thread Alexander Popov
On 21.02.2018 04:13, Laura Abbott wrote: > This is the arm64 version of the STACKLEAK plugin originall from > grsecurity. See > https://marc.info/?l=kernel-hardening&m=151880470609808 for the > full x86 version. This is based on top of Kees' branch for stackleak > and has been cleaned up to use a f

Re: [PATCH v2 05/10] drm/sun4i: Add Allwinner A31 MIPI-DSI controller support

2018-02-21 Thread kbuild test robot
Hi Maxime, I love your patch! Perhaps something to improve: [auto build test WARNING on ] url: https://github.com/0day-ci/linux/commits/Maxime-Ripard/drm-sun4i-Allwinner-MIPI-DSI-support/20180221-203150 base: config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi-gcc

[PATCH 0/3] platform/chrome: cros_ec debugfs and sysfs updates

2018-02-21 Thread Enric Balletbo i Serra
Hi, This patchset is another recopilation of some patches that were send before but never merged. First patch was already sent [1] but did not receive feedback so I am resending it. Needs to go throught platform/chrome tree and can be picked without dependencies. The second patch is new, like th

[PATCH 2/3] platform/chrome: cros_ec_debugfs: Add PD port info to debugfs

2018-02-21 Thread Enric Balletbo i Serra
From: Shawn Nematbakhsh Add info useful for debugging USB-PD port state. Signed-off-by: Shawn Nematbakhsh Signed-off-by: Enric Balletbo i Serra --- drivers/platform/chrome/cros_ec_debugfs.c | 86 +-- 1 file changed, 82 insertions(+), 4 deletions(-) diff --git a/dr

Re: [PATCH 1/4] drm/atomic: integrate modeset lock with private objects

2018-02-21 Thread Ville Syrjälä
On Wed, Feb 21, 2018 at 09:37:21AM -0500, Rob Clark wrote: > Follow the same pattern of locking as with other state objects. This > avoids boilerplate in the driver. I'm not sure we really want to do this. What if the driver wants a custom locking scheme for this state? > > Signed-off-by: Rob C

[PATCH 1/3] platform/chrome: cros_ec_sysfs: Modify error handling

2018-02-21 Thread Enric Balletbo i Serra
From: Gwendal Grignou When accessing a sysfs attribute, if the EC command fails, -EPROTO is now returned instead of an error message as it is unlikely an app is parsing the error message to do something meaningful. Also, this patch makes use of cros_ec_cmd_xfer_status() instead of cros_ec_cmd_xfe

Re: [RESEND PATCH v2 2/2] ASoC: topology: Add missing clock gating parameter when parsing hw_configs

2018-02-21 Thread Andy Shevchenko
On Tue, Feb 20, 2018 at 7:44 PM, Kirill Marinushkin wrote: > Clock gating parameter is a part of `dai_fmt`. It is supported by > `alsa-lib` when creating a topology binary file, but ignored by kernel > when loading this topology file. > + /* clock gating */ > + if (hw_

[PATCH 3/3] platform/chrome: mfd/cros_ec_dev: Add sysfs entry to set keyboard wake lid angle

2018-02-21 Thread Enric Balletbo i Serra
From: Gwendal Grignou This adds a sysfs attribute (/sys/class/chromeos/cros_ec/kb_wake_angle) used to set and get the keyboard wake lid angle. This attribute is present only if 2 accelerometers are controlled by the EC. This patch also moves the cros_ec features check before the device is added

Re: [PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer

2018-02-21 Thread Guenter Roeck
On 02/20/2018 10:58 PM, Rajkumar Rampelli wrote: Add generic PWM based tachometer driver via HWMON interface to report the RPM of motor. This drivers get the period/duty cycle from PWM IP which captures the motor PWM output. This driver implements a simple interface for monitoring the speed of a

Re: [PATCH v2 1/2] KVM: x86: Add a framework for supporting MSR-based features

2018-02-21 Thread Tom Lendacky
On 2/21/2018 8:47 AM, Tom Lendacky wrote: > On 2/21/2018 8:32 AM, Paolo Bonzini wrote: >> On 21/02/2018 15:15, Tom Lendacky wrote: >>> On 2/21/2018 5:41 AM, Paolo Bonzini wrote: On 16/02/2018 00:12, Tom Lendacky wrote: > +static u32 msr_based_features[] = { > +}; > + > +static

Re: net: hang in unregister_netdevice: waiting for lo to become free

2018-02-21 Thread Tommi Rantala
On 20.02.2018 18:26, Neil Horman wrote: On Tue, Feb 20, 2018 at 09:14:41AM +0100, Dmitry Vyukov wrote: On Tue, Feb 20, 2018 at 8:56 AM, Tommi Rantala wrote: On 19.02.2018 20:59, Dmitry Vyukov wrote: Is this meant to be fixed already? I am still seeing this on the latest upstream tree. Thes

<    3   4   5   6   7   8   9   10   11   12   >