Re: [PATCH] stmmac: Add support for SIMATIC IOT2000 platform

2017-04-28 Thread David Miller
From: Jan Kiszka Date: Mon, 24 Apr 2017 21:27:15 +0200 > The IOT2000 is industrial controller platform, derived from the Intel > Galileo Gen2 board. The variant IOT2020 comes with one LAN port, the > IOT2040 has two of them. They can be told apart based on the board asset

[PATCH 6/7] crypto: aesni: make AVX2 AES-GCM work with all valid auth_tag_len

2017-04-28 Thread Sabrina Dubroca
Signed-off-by: Sabrina Dubroca --- arch/x86/crypto/aesni-intel_avx-x86_64.S | 31 --- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/arch/x86/crypto/aesni-intel_avx-x86_64.S b/arch/x86/crypto/aesni-intel_avx-x86_64.S index

Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg

2017-04-28 Thread Tejun Heo
Hello, Vincent. On Thu, Apr 27, 2017 at 10:28:01AM +0200, Vincent Guittot wrote: > On 27 April 2017 at 02:30, Tejun Heo wrote: > > Hello, Vincent. > > > > On Wed, Apr 26, 2017 at 12:21:52PM +0200, Vincent Guittot wrote: > >> > This is from the follow-up patch. I was confused.

[PATCH 2/7] crypto: aesni: make non-AVX AES-GCM work with all valid auth_tag_len

2017-04-28 Thread Sabrina Dubroca
Signed-off-by: Sabrina Dubroca --- arch/x86/crypto/aesni-intel_asm.S | 62 ++- 1 file changed, 48 insertions(+), 14 deletions(-) diff --git a/arch/x86/crypto/aesni-intel_asm.S b/arch/x86/crypto/aesni-intel_asm.S index

Re: [PATCH v1]] lib/btree.c: optimise the code by previously getpos function

2017-04-28 Thread Andy Shevchenko
On Tue, Apr 11, 2017 at 9:53 AM, Leno Hou wrote: > This patch optimized the code by previously getpos function call. > Therefore, It's takes the convenience to understand logic of code. Besides what Christoph told you (I agree with him, writing test suites / modules is quite

Re: linux-next: Tree for Apr 28 (of/unittest)

2017-04-28 Thread Randy Dunlap
On 04/28/17 00:11, Stephen Rothwell wrote: > Hi all, > > Changes since 20170427: > on i386: when CONFIG_OF_OVERLAY is not enabled: drivers/built-in.o: In function `unflatten_device_tree': (.init.text+0x1209f): undefined reference to `unittest_unflatten_overlay_base' -- ~Randy

Re: [PATCH] staging: ks7010: remove line continuations in quoted strings

2017-04-28 Thread Joe Perches
On Fri, 2017-04-28 at 17:26 +0300, Dan Carpenter wrote: > On Fri, Apr 28, 2017 at 04:19:28PM +0200, Ilia Sergachev wrote: > > Checkpatch emits WARNING: Avoid line continuations in quoted strings. > > > > Remove line continuations - split strings using quotes. > > > > Signed-off-by: Ilia

RE: [PATCH v5 01/10] pinctrl: generic: Add bi-directional and output-enable

2017-04-28 Thread Chris Brandt
On Friday, April 28, 2017, Andy Shevchenko wrote: > > We were using "input-enable" to signal when the pin function that we set > also needs to be forcible set to input by the software (once again, > because the HW is not smart enough to do it on its own), but is different > than the bi-directional

Re: [PATCH v2] sched/fair: update scale invariance of PELT

2017-04-28 Thread Dietmar Eggemann
On 28/04/17 16:52, Morten Rasmussen wrote: > Hi Vincent, [...] > As mentioned above, waiting time, i.e. !running && weight, is not > scaled, which causes trouble for load. I ran some rt-app-based tests on a system with frequency and cpu invariance. (1) Two periodic 20% tasks with 12ms period

Re: [PATCH 1/2] sched/fair: Fix how load gets propagated from cfs_rq to its sched_entity

2017-04-28 Thread Tejun Heo
Hello, Vincent. On Thu, Apr 27, 2017 at 10:59:12AM +0200, Vincent Guittot wrote: > > But the only difference there is that we lose accuracy in calculation; > > otherwise, the end results are the same, no? > > Yes the end result is the same, it was mainly to point out the range > difference and

Re: [PATCH 2/2] dt-bindings: phy: Add documentation for Mediatek PCIe PHY

2017-04-28 Thread Rob Herring
On Sun, Apr 23, 2017 at 04:17:33PM +0800, Ryder Lee wrote: > Add documentation for PCIe PHY available in MT7623 series SoCs. > > Signed-off-by: Ryder Lee > --- > .../devicetree/bindings/phy/phy-mt7623-pcie.txt| 67 > ++ > 1 file changed, 67

Re: [PATCH 1/2] iommu/s390: Fix IOMMU groups

2017-04-28 Thread kbuild test robot
Hi Joerg, [auto build test ERROR on s390/features] [also build test ERROR on v4.11-rc8 next-20170428] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Joerg-Roedel/iommu-s390-Fix-iommu-groups

Re: [PATCH v2 1/3] ARM: BCM: Enable thermal support for iProc SoCs

2017-04-28 Thread Jon Mason
On Thu, Apr 27, 2017 at 7:10 PM, Scott Branden wrote: > > > On 17-04-27 02:23 PM, Jon Mason wrote: >> >> Change the iProc Kconfig to select THERMAL and THERMAL_OF, which allows >> the ns-thermal driver to be selected via menuconfig. >> >> Signed-off-by: Jon Mason

Re: [PATCH v2 11/18] dt-bindings: pinctrl: Add bindings for Cirrus Logic Madera codecs

2017-04-28 Thread Rob Herring
On Mon, Apr 24, 2017 at 05:08:37PM +0100, Richard Fitzgerald wrote: > This is the binding description of the pinctrl driver for Cirru Logic > Madera codecs. The binding uses the generic pinctrl binding so the main > purpose here is to describe the device-specific names for groups and > functions.

Re: [PATCH v2 13/18] dt-bindings: gpio: Add bindings for GPIO on Cirrus Logic Madera codecs

2017-04-28 Thread Rob Herring
On Mon, Apr 24, 2017 at 05:08:39PM +0100, Richard Fitzgerald wrote: > The Cirrus Logic Madera codecs have a range of GPIO pins that can be > used as single-bit logic input or output. These are presented as a > standard GPIO binding. > > The second cell in a GPIO binding is currently reserved for

Re: [PATCH v7 1/5] irqchip/aspeed-i2c-ic: binding docs for Aspeed I2C Interrupt Controller

2017-04-28 Thread Rob Herring
On Mon, Apr 24, 2017 at 11:18:14AM -0700, Brendan Higgins wrote: > Added device tree binding documentation for Aspeed I2C Interrupt > Controller. > > Signed-off-by: Brendan Higgins > --- > Added in v6: > - Pulled "aspeed_i2c_controller" out into a interrupt

Re: [PATCH] checkpatch: don't encourage new code to use "networking" style comments

2017-04-28 Thread Joe Perches
On Fri, 2017-04-28 at 10:55 -0700, Brian Norris wrote: > Our glorious leader has made his opinion known [1]: the "networking" > comment style is not useful for new code. and yet nothing was done. I think _very_ few people concern themselves one way or another. I believe the only person that

[PATCH 5/7] crypto: aesni: make AVX2 AES-GCM work with any aadlen

2017-04-28 Thread Sabrina Dubroca
This is the first step to make the aesni AES-GCM implementation generic. The current code was written for rfc4106, so it handles only some specific sizes of associated data. Signed-off-by: Sabrina Dubroca --- arch/x86/crypto/aesni-intel_avx-x86_64.S | 85

[PATCH 7/7] crypto: aesni: add generic gcm(aes)

2017-04-28 Thread Sabrina Dubroca
Now that the asm side of things can support all the valid lengths of ICV and all lengths of associated data, provide the glue code to expose a generic gcm(aes) crypto algorithm. Signed-off-by: Sabrina Dubroca --- arch/x86/crypto/aesni-intel_glue.c | 208

[PATCH 3/7] crypto: aesni: make AVX AES-GCM work with any aadlen

2017-04-28 Thread Sabrina Dubroca
This is the first step to make the aesni AES-GCM implementation generic. The current code was written for rfc4106, so it handles only some specific sizes of associated data. Signed-off-by: Sabrina Dubroca --- arch/x86/crypto/aesni-intel_avx-x86_64.S | 122

[PATCH 0/7] crypto: aesni: provide generic gcm(aes)

2017-04-28 Thread Sabrina Dubroca
The current aesni AES-GCM implementation only offers support for rfc4106(gcm(aes)). This makes some things a little bit simpler (handling of associated data and authentication tag), but it means that non-IPsec users of gcm(aes) have to rely on gcm_base(ctr-aes-aesni,ghash-clmulni), which is much

Re: Boot regression caused by kauditd

2017-04-28 Thread Paul Moore
On Fri, Apr 28, 2017 at 12:11 PM, Cong Wang wrote: > On Fri, Apr 28, 2017 at 8:30 AM, Paul Moore wrote: >> On Thu, Apr 27, 2017 at 8:47 PM, Paul Moore wrote: >>> In that case please send a proper inline patch to the audit

Re: [PATCH 1/2] mtd: nand: add generic helpers to check, match, maximize ECC settings

2017-04-28 Thread Boris Brezillon
Hi Masahiro, Sorry for the delay, I was busy with non-NAND/MTD stuff lately. On Wed, 19 Apr 2017 16:06:57 +0900 Masahiro Yamada wrote: > Each driver has been responsible for: > - Check if ECC setting specified (mostly by DT) is valid > - Meet the chip's

Re: [PATCH v2] arm64: perf: Use only exclude_kernel attribute when kernel is running in HYP

2017-04-28 Thread Will Deacon
Hi guys, On Fri, Apr 28, 2017 at 01:46:24PM +, Jayachandran C wrote: > On Thu, Apr 27, 2017 at 06:37:59PM +0100, Will Deacon wrote: > > > If my understanding is correct, the sysfs suggestion above is going to > > > add API complexity without solving the issue. Ignoring the exclude_hv if > > >

Re: [PATCH 1/2] input: touchscreen: ar1021_i2c: enable touch mode during open

2017-04-28 Thread Dmitry Torokhov
On Thu, Apr 27, 2017 at 02:22:35PM +0200, Martin Kepplinger wrote: > The device could as well be in command mode, in which this driver cannot > handle the device. When opening the device, let's make sure the device > will be in the mode we expect it to be for this driver. > > Signed-off-by:

Re: [PATCH][V2] IB/rxe: fix typo: "algorithmi" -> "algorithm"

2017-04-28 Thread Colin Ian King
On 28/04/17 18:08, Doug Ledford wrote: > On Mon, 2017-04-24 at 10:44 -0700, Joe Perches wrote: >> On Mon, 2017-04-24 at 10:26 +0100, Colin King wrote: >>> >>> trivial fix to typo in pr_err message >> [] >>> >>> diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.c >>>

[PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference

2017-04-28 Thread Dan Williams
Kirill points out that the calls to {get,put}_dev_pagemap() can be removed from the mm fast path if we take a single get_dev_pagemap() reference to signify that the page is alive and use the final put of the page to drop that reference. This does require some care to make sure that any waits for

[PATCH] checkpatch: don't encourage new code to use "networking" style comments

2017-04-28 Thread Brian Norris
Our glorious leader has made his opinion known [1]: the "networking" comment style is not useful for new code. While the same rules as usual still apply -- e.g., don't unnecessarily churn existing code, and follow existing practice within files -- that doesn't mean that checkpatch should be

Re: [PATCH 1/5] KEYS: sanitize add_key() and keyctl() key payloads

2017-04-28 Thread Eric Biggers
Hey David, On Fri, Apr 21, 2017 at 01:30:33AM -0700, Eric Biggers wrote: > From: Eric Biggers > > Before returning from add_key() or one of the keyctl() commands that > takes in a key payload, zero the temporary buffer that was allocated to > hold the key payload copied

Re: [PATCH v2 03/18] dt-bindings: mfd: Add bindings for Cirrus Logic Madera codecs

2017-04-28 Thread Rob Herring
On Mon, Apr 24, 2017 at 05:08:29PM +0100, Richard Fitzgerald wrote: > Specification of the bindings for the parent MFD driver component > of the Cirrus Logic Madera codec drivers. > > Signed-off-by: Richard Fitzgerald > --- > Changes since V1: > - split out from

Re: [PATCH v2 07/18] regulator: arizona-micsupp: Add support for Cirrus Logic Madera codecs

2017-04-28 Thread Rob Herring
On Mon, Apr 24, 2017 at 05:08:33PM +0100, Richard Fitzgerald wrote: > This adds a new driver identity "madera-micsupp" and probe function > so that this driver can be used to control the micsupp regulator on > Cirrus Logic Madera codecs. > > Signed-off-by: Richard Fitzgerald

Re: [PATCH 3.18 00/47] 3.18.51-stable review

2017-04-28 Thread Guenter Roeck
On Fri, Apr 28, 2017 at 10:32:13AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.51 release. > There are 47 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

Re: [PATCH 4.4 00/17] 4.4.65-stable review

2017-04-28 Thread Guenter Roeck
On Fri, Apr 28, 2017 at 10:30:13AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.65 release. > There are 17 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

Re: [PATCH] staging: iio: isl29028: add isl29030 support

2017-04-28 Thread Brian Masney
On Fri, Apr 28, 2017 at 05:55:58PM +0200, Sebastian Reichel wrote: > isl29030 is basically the same chip. The only difference > is the chip's first pin. For isl29028 its named ADDR0 and > can be used to change the chip's i2c address. For isl29030 > on the other hand that pin is named Ials and is

Re: [PATCH] arm64: Print DT machine model in setup_machine_fdt()

2017-04-28 Thread Geert Uytterhoeven
Hi Will, On Fri, Apr 28, 2017 at 4:57 PM, Will Deacon wrote: > On Thu, Apr 27, 2017 at 02:33:05PM +0200, Geert Uytterhoeven wrote: >> On arm32, the machine model specified in the device tree is printed >> during boot-up, courtesy of of_flat_dt_match_machine(). >> >> On

Re: [PATCH v5 02/10] pinctrl: generic: Add macros to unpack properties

2017-04-28 Thread Andy Shevchenko
On Fri, Apr 28, 2017 at 11:16 AM, Linus Walleij wrote: > On Thu, Apr 27, 2017 at 10:19 AM, Jacopo Mondi > wrote: > But why. > > I have these two static inlines just below your new macros: +1. > We generally prefer static inlines over macros

Re: [PATCH 2/3] selinux: add checksum to policydb

2017-04-28 Thread Stephen Smalley
On Fri, 2017-04-28 at 18:08 +0200, Sebastien Buisson wrote: > 2017-04-28 17:50 GMT+02:00 Stephen Smalley : > > You seem to be conflating kernel policy with userspace policy. > > security_load_policy() is provided with the kernel policy image, > > which > > is the result of

Re: [PATCH] arm64: Print DT machine model in setup_machine_fdt()

2017-04-28 Thread Will Deacon
On Fri, Apr 28, 2017 at 06:16:46PM +0200, Geert Uytterhoeven wrote: > On Fri, Apr 28, 2017 at 4:57 PM, Will Deacon wrote: > > On Thu, Apr 27, 2017 at 02:33:05PM +0200, Geert Uytterhoeven wrote: > >> On arm32, the machine model specified in the device tree is printed > >>

Re: [PATCH 2/2] input: touchscreen: ar1021_i2c: replace magic number with definition

2017-04-28 Thread Dmitry Torokhov
On Thu, Apr 27, 2017 at 02:22:36PM +0200, Martin Kepplinger wrote: > We now have a few of this device's definitions. Let's avoid magic numbers > and use them. > > Signed-off-by: Martin Kepplinger > --- > drivers/input/touchscreen/ar1021_i2c.c | 2 +- > 1 file

Re: [PATCH] tpm: print tpm error code in hex for TPM2.0 devices

2017-04-28 Thread Jerry Snitselaar
On Fri Apr 28 17, Jarkko Sakkinen wrote: On Wed, Apr 26, 2017 at 03:39:54PM -0700, Jerry Snitselaar wrote: For easier decoding, output the error code returned from the tpm device in hex when the device is TPM2.0. Cc: Jarkko Sakkinen Cc: Peter Huewe

Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference

2017-04-28 Thread Jerome Glisse
> Kirill points out that the calls to {get,put}_dev_pagemap() can be > removed from the mm fast path if we take a single get_dev_pagemap() > reference to signify that the page is alive and use the final put of the > page to drop that reference. > > This does require some care to make sure that

Re: [RFC 1/3] dt-binding: soc: qcom: Add binding for RFSA

2017-04-28 Thread Rob Herring
On Sat, Apr 22, 2017 at 10:35:17AM -0700, Bjorn Andersson wrote: > This adds the binding for describing shared memory buffers for > implementing the remote filesystem protocol. > > Signed-off-by: Bjorn Andersson > --- > > My initial attempt was to mimic the ramoops

Re: [PATCH] clk: sunxi-ng: always select CCU_GATE

2017-04-28 Thread Stephen Boyd
On 04/28, Maxime Ripard wrote: > 1;4601;0c > On Thu, Apr 27, 2017 at 01:02:31PM +0200, Arnd Bergmann wrote: > > When the base driver is enabled but all SoC specific drivers are turned > > off, we now get a build error after code was added to always refer to the > > clk gates: > > > >

Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference

2017-04-28 Thread Jerome Glisse
> On Fri, Apr 28, 2017 at 10:34 AM, Jerome Glisse wrote: > >> Kirill points out that the calls to {get,put}_dev_pagemap() can be > >> removed from the mm fast path if we take a single get_dev_pagemap() > >> reference to signify that the page is alive and use the final put of

Re: [PATCH 1/3 v2] xen: Export xen_reboot

2017-04-28 Thread Juergen Gross
On 25/04/17 06:02, Juergen Gross wrote: > On 24/04/17 20:21, Boris Ostrovsky wrote: >> On 04/24/2017 01:58 PM, Julien Grall wrote: >>> The helper xen_reboot will be called by the EFI code in a later patch. >>> >>> Note that the ARM version does not yet exist and will be added in a >>> later patch

[git pull] Input updates for 4.11-rc7

2017-04-28 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. Yet another quirk to i8042 to get touchpad recognized on some laptops. Changelog: - Dmitry Torokhov (1): Input: i8042 - add

Re: [RFC PATCH 0/2] iommu/s390: Fix iommu-groups and add sysfs support

2017-04-28 Thread Gerald Schaefer
On Fri, 28 Apr 2017 16:55:13 +0200 Joerg Roedel wrote: > > I am however a bit confused now, about how we would have allowed group > > sharing with the current s390 IOMMU code, or IOW in which scenario would > > iommu_group_get() in the add_device callback find a shareable

Re: [PATCH v2 15/18] dt-bindings: sound: Add bindings for Cirrus Logic Madera codecs

2017-04-28 Thread Rob Herring
On Tue, Apr 25, 2017 at 04:52:57PM +0100, Mark Brown wrote: > On Mon, Apr 24, 2017 at 05:08:41PM +0100, Richard Fitzgerald wrote: > > The Cirrus Logic Madera codecs are a family of related codecs with > > extensive digital and analogue I/O, digital mixing and routing, > > signal processing and

Re: [PATCH v2 07/21] crypto: shash, caam: Make use of the new sg_map helper function

2017-04-28 Thread Herbert Xu
On Fri, Apr 28, 2017 at 10:53:45AM -0600, Logan Gunthorpe wrote: > > > On 28/04/17 12:30 AM, Herbert Xu wrote: > > You are right. Indeed the existing code looks buggy as they > > don't take sg->offset into account when doing the kmap. Could > > you send me some patches that fix these problems

Re: [PATCH] PM / Domains: Fix DT example

2017-04-28 Thread Rob Herring
On Tue, Apr 25, 2017 at 12:48:21PM +0530, Viresh Kumar wrote: > The power-domain provider's #power-domain-cells field is set to 0 and > yet the children is using an index to point the power domain. Fix it by > removing the index field. > > Fixes: 70bb510e4279 ("dt/bindings / PM/Domains: Update

Re: [PATCH 4/5] arm64: dts: Add ipq8074 SoC and MTP board support

2017-04-28 Thread Stephen Boyd
On 04/28, Varadarajan Narayanan wrote: > diff --git a/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts > b/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts > new file mode 100644 > index 000..c150bea > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts > @@ -0,0 +1,48 @@ > +/dts-v1/; > +/*

Re: arm64: next-20170428 hangs on boot

2017-04-28 Thread Yury Norov
> >> Hi, > >> > >> [adding Dave Miller, netdev, lkml] > > > > thanks > > > >>> On QEMU the next-20170428 hangs on boot for me due to kernel panic in > >>> rtnetlink_init(): > >>> > >>> void __init

Re: Boot regression caused by kauditd

2017-04-28 Thread Cong Wang
On Fri, Apr 28, 2017 at 8:30 AM, Paul Moore wrote: > On Thu, Apr 27, 2017 at 8:47 PM, Paul Moore wrote: >> In that case please send a proper inline patch to the audit mailing list >> and we'll review it. >> >> Thanks. > > Now that I'm back in front of a

Re: [PATCH v6 1/5] skbuff: return -EMSGSIZE in skb_to_sgvec to prevent overflow

2017-04-28 Thread Sabrina Dubroca
2017-04-25, 20:47:30 +0200, Jason A. Donenfeld wrote: > This is a defense-in-depth measure in response to bugs like > 4d6fa57b4dab ("macsec: avoid heap overflow in skb_to_sgvec"). While > we're at it, we also limit the amount of recursion this function is > allowed to do. Not actually providing a

Re: ipsec doesn't route TCP with 4.11 kernel

2017-04-28 Thread Eric Dumazet
On Fri, 2017-04-28 at 09:13 +0200, Steffen Klassert wrote: > encap type espinudp sport 4500 dport 4500 addr 0.0.0.0 > > Ok, this is espinudp. This information was important. > This is not a GRO issue as I thought, the TX side is already broken. > > Could you please try the patch below?

Re: [PATCH v2 07/21] crypto: shash, caam: Make use of the new sg_map helper function

2017-04-28 Thread Logan Gunthorpe
On 28/04/17 12:30 AM, Herbert Xu wrote: > You are right. Indeed the existing code looks buggy as they > don't take sg->offset into account when doing the kmap. Could > you send me some patches that fix these problems first so that > they can be easily backported? Ok, I think the only buggy

Re: [PATCH][V2] IB/rxe: fix typo: "algorithmi" -> "algorithm"

2017-04-28 Thread Doug Ledford
On Mon, 2017-04-24 at 10:44 -0700, Joe Perches wrote: > On Mon, 2017-04-24 at 10:26 +0100, Colin King wrote: > > > > trivial fix to typo in pr_err message > [] > > > > diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.c > > b/drivers/infiniband/sw/rxe/rxe_verbs.c > [] > > > > @@ -1324,7 +1324,7

Re: [PATCH 1/2] kvm: Fix mmu_notifier release race

2017-04-28 Thread Suzuki K Poulose
On 26/04/17 17:03, Suzuki K Poulose wrote: On 25/04/17 19:49, Radim Krčmář wrote: 2017-04-24 11:10+0100, Suzuki K Poulose: The KVM uses mmu_notifier (wherever available) to keep track of the changes to the mm of the guest. The guest shadow page tables are released when the VM exits via

Re: [PATCH 1/3] IB/i40iw: use setup_timer

2017-04-28 Thread Doug Ledford
On Sat, 2017-04-22 at 09:32 +0800, Geliang Tang wrote: > Use setup_timer() instead of init_timer() to simplify the code. > > Signed-off-by: Geliang Tang Thanks, series applied. -- Doug Ledford     GPG KeyID: B826A3330E572FDD     Key fingerprint =

[PATCH] md/raid5: make use of spin_lock_irq over local_irq_disable + spin_lock

2017-04-28 Thread Julia Cartwright
On mainline, there is no functional difference, just less code, and symmetric lock/unlock paths. On PREEMPT_RT builds, this fixes the following warning, seen by Alexander GQ Gerasiov, due to the sleeping nature of spinlocks. BUG: sleeping function called from invalid context at

Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference

2017-04-28 Thread Dan Williams
On Fri, Apr 28, 2017 at 10:34 AM, Jerome Glisse wrote: >> Kirill points out that the calls to {get,put}_dev_pagemap() can be >> removed from the mm fast path if we take a single get_dev_pagemap() >> reference to signify that the page is alive and use the final put of the >>

Re: [PATCH v5 01/11] dt-bindings: add binding for the Allwinner DE2 CCU

2017-04-28 Thread Rob Herring
On Sun, Apr 23, 2017 at 06:37:44PM +0800, Icenowy Zheng wrote: > Allwinner "Display Engine 2.0" contains some clock controls in it. > > In order to add them as clock drivers, we need a device tree binding. > Add the binding here. > > Also add the device tree binding headers. > > Signed-off-by:

Re: [PATCH 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-04-28 Thread Rob Herring
On Sun, Apr 23, 2017 at 05:20:44PM +0200, Paolo Pisati wrote: > Add dt binding documentation details for Lattice MachXO2 FPGA configuration > over Slave SPI interface. > > Signed-off-by: Paolo Pisati > --- > .../bindings/fpga/lattice-machxo2-spi.txt | 29 >

Re: arm64: next-20170428 hangs on boot

2017-04-28 Thread David Miller
From: Mark Rutland <mark.rutl...@arm.com> Date: Fri, 28 Apr 2017 15:52:34 +0100 > On Fri, Apr 28, 2017 at 04:24:29PM +0300, Yury Norov wrote: >> Hi all, > > Hi, > > [adding Dave Miller, netdev, lkml] > >> On QEMU the next-20170428 hangs on boot for me due t

Re: [REGRESSION] boot regression in next-20170428

2017-04-28 Thread David Miller
From: Niklas Cassel <niklas.cas...@axis.com> Date: Fri, 28 Apr 2017 17:08:17 +0200 > Hello > > > Since next-20170428 > the ARTPEC-6 SoC (MACH_ARTPEC6) does no longer boot. > > It works fine with next-20170427. > > > I've

Re: [PATCH v4 2/2] of: Add unit tests for applying overlays

2017-04-28 Thread Geert Uytterhoeven
Hi Frank, On Fri, Apr 28, 2017 at 5:24 PM, Frank Rowand wrote: > On 04/28/17 04:25, Geert Uytterhoeven wrote: >> On Wed, Apr 26, 2017 at 2:09 AM, wrote: >>> create mode 100644 drivers/of/unittest-data/overlay.dts >>> create mode 100644

Re: [PATCH] arm64: Print DT machine model in setup_machine_fdt()

2017-04-28 Thread Catalin Marinas
On Thu, Apr 27, 2017 at 02:33:05PM +0200, Geert Uytterhoeven wrote: > On arm32, the machine model specified in the device tree is printed > during boot-up, courtesy of of_flat_dt_match_machine(). > > On arm64, of_flat_dt_match_machine() is not called, and the machine > model information is not

[PATCH 4/7] crypto: aesni: make AVX AES-GCM work with all valid auth_tag_len

2017-04-28 Thread Sabrina Dubroca
Signed-off-by: Sabrina Dubroca --- arch/x86/crypto/aesni-intel_avx-x86_64.S | 31 --- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/arch/x86/crypto/aesni-intel_avx-x86_64.S b/arch/x86/crypto/aesni-intel_avx-x86_64.S index

Re: [PATCH] drivers: dma-mapping: Do not leave an invalid area->pages pointer in dma_common_contiguous_remap()

2017-04-28 Thread Greg Kroah-Hartman
On Tue, Apr 25, 2017 at 07:25:49PM +0100, Catalin Marinas wrote: > On Tue, Apr 25, 2017 at 07:22:23PM +0100, Catalin Marinas wrote: > > The dma_common_pages_remap() function allocates a vm_struct object and > > initialises the pages pointer to value passed as argument. However, when > > this

Re: RFC: i2c designware gpio recovery

2017-04-28 Thread Tim Sander
Hi After sending this mail i just found out how i could reset the i2c-1 controller manually with devmem 0xffd05014 32 0x2000 devmem 0xffd05014 32 0 So i took a look into the device tree file socfpga.dtsi and found that the reset lines where not defined (although available in the corresponding

Re: [PATCH v7 1/3] staging: typec: USB Type-C Port Manager (tcpm)

2017-04-28 Thread Guenter Roeck
On Fri, Apr 28, 2017 at 8:50 AM, Greg Kroah-Hartman wrote: > On Fri, Apr 28, 2017 at 06:14:44AM -0700, Guenter Roeck wrote: >> On 04/28/2017 12:28 AM, Greg Kroah-Hartman wrote: >> > On Thu, Apr 27, 2017 at 02:09:56PM -0700, Guenter Roeck wrote: >> > > --- /dev/null >>

Re: [PATCH v2 pci] PCI/MSI: pci-xgene-msi: Enable MSI support in ACPI boot for X-Gene v1

2017-04-28 Thread Jon Masters
On 04/28/2017 01:11 AM, Jon Masters wrote: > On 04/27/2017 08:54 PM, Khuong Dinh wrote: >> From: Khuong Dinh >> >> This patch makes pci-xgene-msi driver ACPI-aware and provides >> MSI capability for X-Gene v1 PCIe controllers in ACPI boot mode. >> >> Signed-off-by: Khuong Dinh

Re: [4/4] mwifiex: pcie: de-duplicate buffer allocation code

2017-04-28 Thread Brian Norris
On Tue, Mar 21, 2017 at 02:14:05PM +0200, Kalle Valo wrote: > What I could do is to wait for the patches 1-3 trickle down to w-d-next > and then apply this patch. It usually takes few weeks, but with bad luck > it might happen only after the merge window. Would that work? Is this going to get

Re: [PATCH 1/1] iw_cxgb4: check return value of alloc_skb

2017-04-28 Thread Doug Ledford
On Sun, 2017-04-23 at 17:09 +0800, Pan Bian wrote: > Function alloc_skb() will return a NULL pointer when there is no > enough > memory. However, the return value of alloc_skb() is directly used > without validation in function send_fw_pass_open_req(). This patches > checks the return value of

Re: [PATCH] streamline TLV320AIC23 drivers

2017-04-28 Thread Rob Herring
On Fri, Apr 21, 2017 at 09:22:02PM +0200, Jens Rottmann wrote: > The iMX-TLV320AIC23 driver isn't from Freescale, but from a company named > Eukrea Electromatique, originally for their own boards. From the code I get > the impression it is a bit older, its DT options use a differing naming >

Re: [PATCH] arm64: Print DT machine model in setup_machine_fdt()

2017-04-28 Thread Sudeep Holla
On 28/04/17 17:52, Will Deacon wrote: > On Fri, Apr 28, 2017 at 06:16:46PM +0200, Geert Uytterhoeven wrote: >> On Fri, Apr 28, 2017 at 4:57 PM, Will Deacon wrote: >>> On Thu, Apr 27, 2017 at 02:33:05PM +0200, Geert Uytterhoeven wrote: On arm32, the machine model

[PATCH] mwifiex: pcie: add card_reset() support

2017-04-28 Thread Brian Norris
Similar to the SDIO driver, we should implement this so that we will automatically reset the device whenever there's a command timeout or similar. Signed-off-by: Brian Norris --- I still haven't found the reset sequence to work 100% reliably, but it's definitely better

Re: [PATCH v2 16/16] fpga: region: move device tree support to of-fpga-region.c

2017-04-28 Thread Alan Tull
On Fri, Apr 28, 2017 at 1:38 AM, Wu Hao wrote: > On Thu, Apr 20, 2017 at 09:10:01AM -0500, Alan Tull wrote: >> Create of-fpga-region.c >> >> Move the following functions without modification from >> fpga-region.c to of-fpga-region.c: >> >> * of_fpga_region_find >> *

Re: [PATCH] xen: Revert commits da72ff5bfcb0 and 72a9b186292d

2017-04-28 Thread Juergen Gross
On 24/04/17 21:04, Boris Ostrovsky wrote: > Recent discussion (http://marc.info/?l=xen-devel=149192184523741) > established that commit 72a9b186292d ("xen: Remove event channel > notification through Xen PCI platform device") (and thus commit > da72ff5bfcb0 ("partially revert "xen: Remove event

Re: [PATCH] xen/x86: Call xen_smp_intr_init_pv() on BSP

2017-04-28 Thread Juergen Gross
On 26/04/17 15:42, Boris Ostrovsky wrote: > Recent code rework that split handling ov PV, HVM and PVH guests into > separate files missed calling xen_smp_intr_init_pv() on CPU0. > > Add this call. > > Signed-off-by: Boris Ostrovsky > Reported-by: Sander Eikelenboom

Re: [PATCH v7 3/5] i2c: aspeed: added documentation for Aspeed I2C driver

2017-04-28 Thread Rob Herring
On Mon, Apr 24, 2017 at 11:18:16AM -0700, Brendan Higgins wrote: > Added device tree binding documentation for Aspeed I2C busses. > > Signed-off-by: Brendan Higgins > --- > Changes for v2: > - None > Changes for v3: > - Removed reference to "bus" device tree param

Re: iov_iter_pipe warning.

2017-04-28 Thread Al Viro
On Fri, Apr 28, 2017 at 06:20:25PM +0100, Al Viro wrote: > On Fri, Apr 28, 2017 at 12:50:24PM -0400, Dave Jones wrote: > > currently running v4.11-rc8-75-gf83246089ca0 > > > > sunrpc bit is for the other unrelated problem I'm chasing. > > > > note also, I saw the backtrace without the

Re: [PATCH 1/2] clk: ti: divider: try to fix ti_clk_register_divider

2017-04-28 Thread Stephen Boyd
On 04/22, Arnd Bergmann wrote: > On Sat, Apr 22, 2017 at 3:58 AM, Stephen Boyd wrote: > > On 04/20, Tero Kristo wrote: > >> On 19/04/17 20:44, Arnd Bergmann wrote: > >> The failing piece of code is only executed for legacy boot mode > >> OMAP3 right now, which could be

Re: [PATCH 2/3] selinux: add checksum to policydb

2017-04-28 Thread Sebastien Buisson
2017-04-28 17:50 GMT+02:00 Stephen Smalley : > You seem to be conflating kernel policy with userspace policy. > security_load_policy() is provided with the kernel policy image, which > is the result of linking the kernel-relevant portions of all policy > modules together. A

[PATCH 1/7] crypto: aesni: make non-AVX AES-GCM work with any aadlen

2017-04-28 Thread Sabrina Dubroca
This is the first step to make the aesni AES-GCM implementation generic. The current code was written for rfc4106, so it handles only some specific sizes of associated data. Signed-off-by: Sabrina Dubroca --- arch/x86/crypto/aesni-intel_asm.S | 169

Re: iov_iter_pipe warning.

2017-04-28 Thread Al Viro
On Fri, Apr 28, 2017 at 11:29:55AM -0400, Dave Jones wrote: > On Fri, Apr 21, 2017 at 06:54:30PM +0100, Al Viro wrote: > > On Wed, Apr 12, 2017 at 03:03:18PM -0400, Dave Jones wrote: > > > > > Well it's been running an hour without incident, which looks promising. > > > I'll leave it run, but

Re: iov_iter_pipe warning.

2017-04-28 Thread Dave Jones
On Fri, Apr 28, 2017 at 05:43:13PM +0100, Al Viro wrote: > On Fri, Apr 28, 2017 at 11:29:55AM -0400, Dave Jones wrote: > > On Fri, Apr 21, 2017 at 06:54:30PM +0100, Al Viro wrote: > > > On Wed, Apr 12, 2017 at 03:03:18PM -0400, Dave Jones wrote: > > > > > > > Well it's been running an

Re: [PATCH v2] power: tps65217_charger: Add properties like voltage and current charge

2017-04-28 Thread Rob Herring
On Fri, Apr 21, 2017 at 05:50:32PM +0200, Enric Balletbo i Serra wrote: > Allow the possibility to configure the charge and the current voltage of > the charger and also the NTC type for battery temperature measurement. > > Signed-off-by: Enric Balletbo i Serra >

[PATCH] crypto: hifn_795x: Fix a handful of minor bugs spotted by eye

2017-04-28 Thread Logan Gunthorpe
* Cleaned up the formatting of ablkcipher_get arguments so it complies with kernel style * The offset in ablkcipher_get sould be added to the source, not the destination. We rename it to soffset for clarity. * dst++ should be dst=sg_next(dst) * We call kunmap_atomic earlier so we only have to

Re: [PATCH v2 3/5] mtd: gpmi: document current clock requirements

2017-04-28 Thread Rob Herring
On Fri, Apr 21, 2017 at 06:23:36PM -0700, Stefan Agner wrote: > The clock requirements are completely missing, add the clocks > currently required by the driver. > > Signed-off-by: Stefan Agner > --- > Documentation/devicetree/bindings/mtd/gpmi-nand.txt | 14 +- > 1

Re: iov_iter_pipe warning.

2017-04-28 Thread Al Viro
On Fri, Apr 28, 2017 at 12:50:24PM -0400, Dave Jones wrote: > currently running v4.11-rc8-75-gf83246089ca0 > > sunrpc bit is for the other unrelated problem I'm chasing. > > note also, I saw the backtrace without the fs/splice.c changes. Interesting... Could you add this and see if

Re: [PATCH v2 4/4] perf vendor events arm64: Add implementation defined pmu core events of ThunderX2

2017-04-28 Thread Will Deacon
On Fri, Apr 28, 2017 at 10:23:47AM +0530, Ganapatrao Kulkarni wrote: > This is not a full event list, but a short list of useful events. > > Signed-off-by: Ganapatrao Kulkarni > --- > tools/perf/pmu-events/arch/arm64/mapfile.csv | 14 + >

Re: [PATCH 1/2] Input: twl4030-pwrbutton: use correct device for irq request

2017-04-28 Thread Dmitry Torokhov
On Fri, Apr 28, 2017 at 02:28:54PM +0200, Sebastian Reichel wrote: > The interrupt should be requested for the platform device > and not for the input device. > > Fixes: 7f9ce649d267 ("Input: twl4030-pwrbutton - simplify driver using > devm_*") > Signed-off-by: Sebastian Reichel

Re: [PATCH 2/2] Input: twl4030-pwrbutton: Use input_set_capability() helper

2017-04-28 Thread Dmitry Torokhov
On Fri, Apr 28, 2017 at 02:28:55PM +0200, Sebastian Reichel wrote: > Cleanup driver slightly by using input_set_capability() instead > of manually setting the required bits. > > Signed-off-by: Sebastian Reichel Applied, thank you. > --- >

Re: 4.11-rc8 makes my Dell Inspiron 5558 crash

2017-04-28 Thread Diego Viola
On Thu, Apr 27, 2017 at 8:09 PM, Diego Viola wrote: > On Thu, Apr 27, 2017 at 7:56 PM, Diego Viola wrote: >> Hello, >> >> For some reason 4.11-rc8 makes my Dell Inspiron 5558 crash. The >> problem is very random and I don't know how to reproduce it.

Re: [PATCH] net: hso: register netdev later to avoid a race condition

2017-04-28 Thread Andreas Kemnade
On Thu, 27 Apr 2017 10:44:01 +0200 Johan Hovold wrote: > On Wed, Apr 26, 2017 at 07:26:40PM +0200, Andreas Kemnade wrote: > > If the netdev is accessed before the urbs are initialized, > > there will be NULL pointer dereferences. That is avoided by > > registering it when it is

Re: [PATCH 1/2] thermal: broadcom: Allow for NSP to use ns-thermal driver

2017-04-28 Thread Jon Mason
On Fri, Apr 28, 2017 at 9:07 AM, Eduardo Valentin wrote: > On Thu, Apr 27, 2017 at 01:42:25PM -0400, Jon Mason wrote: >> On Thu, Apr 27, 2017 at 12:37 PM, Eduardo Valentin >> wrote: >> > Hey Jason, >> >> It's Jon :) > > Apologies. I think I either read

Re: [PATCH v4] Input: psxpad-spi - Add PSX (Play Station 1/2) pad SPI driver

2017-04-28 Thread kbuild test robot
Hi Tomohiro, [auto build test WARNING on input/next] [also build test WARNING on v4.11-rc8 next-20170428] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Tomohiro-Yoshidomi/Input-psxpad-spi-Add

Re: [PATCH] acer-wmi: setup accelerometer when appropriate acpi device was found

2017-04-28 Thread Samuel Sieb
On 04/28/2017 01:23 AM, Lee, Chun-Yi wrote: Fixes: 98d610c3739a ("acer-wmi: setup accelerometer when machine has appropriate notify event") Reference: https://bugzilla.kernel.org/show_bug.cgi?id=193761 Reported-by: Samuel Sieb Signed-off-by: "Lee, Chun-Yi"

Re: [PATCH 1/3 v3] drm/vc4: Turn the V3D clock on at runtime.

2017-04-28 Thread Rob Herring
On Mon, Apr 24, 2017 at 01:12:09PM -0700, Eric Anholt wrote: > For the Raspberry Pi's bindings, the power domain also implicitly > turns on the clock and deasserts reset, but for the new Cygnus port we > start representing the clock in the devicetree. > > v2: Document the clock-names property,

  1   2   3   4   5   6   7   8   9   10   >