Re: [RFC PATCH 1/2] crypto: caam - properly set IV after {en,de}crypt

2017-06-19 Thread Herbert Xu
On Mon, Jun 19, 2017 at 10:31:27AM +, Horia Geantă wrote: > > IIUC, IV update is required only in case of CBC. > Since this callback is used also for CTR, we should avoid the copy: > if ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == OP_ALG_AAI_CBC) ... No it is needed for CTR too. Cheers, -- Ema

Re: [PATCH v3 1/2] acpica: iort: Update SMMUv3 header for proximity domain mapping

2017-06-19 Thread Ganapatrao Kulkarni
On Mon, Jun 19, 2017 at 11:24 PM, Robin Murphy wrote: > On 08/06/17 05:44, Ganapatrao Kulkarni wrote: >> ARM IORT specification (rev. C) has added two new fields to define >> proximity domain for the SMMUv3 node in the IORT table. >> >> Proximity Domain Valid: >> Set to 1 if the value provid

Re: Linux 4.12-rc6

2017-06-19 Thread Linus Torvalds
On Tue, Jun 20, 2017 at 8:26 AM, Dave Jones wrote: > > Hugh Dickins (1): > > mm: larger stack guard gap, between vmas > > This seems to be buggered. > > 002331 0396712307 0 2 kernel BUG at mm/mmap.c:1963! > 002332 0396712414 0 4 invalid opcode: [#1] SMP DEBUG_PAGEALLOC > 00233

Re: [PATCH v2 2/9] kvm-vfio: Decouple only when we match a group

2017-06-19 Thread Alexey Kardashevskiy
On 20/06/17 03:14, Alex Williamson wrote: > Unset-KVM and decrement-assignment only when we find the group in our > list. Otherwise we can get out of sync if the user triggers this for > groups that aren't currently on our list. > > Signed-off-by: Alex Williamson > Cc: Paolo Bonzini > Cc: Eric

Re: [PATCH] usb: host: ehci: workaround PME bug on AMD EHCI controller

2017-06-19 Thread Kai-Heng Feng
On Tue, Jun 20, 2017 at 2:32 AM, Alan Stern wrote: > > It's possible that the test was invalid. Kai-Heng did not say whether > /sys/.../power/wakeup was set to "enabled" for both the EHCI controller > and the USB root hub beneath it, before the test was started. If > either of them was set to "d

Re: [PATCH v15 2/7] power: add power sequence library

2017-06-19 Thread Peter Chen
On Mon, Jun 19, 2017 at 11:48:05AM +0200, Ulf Hansson wrote: > [...] > > >> > > >> > Unlike the MMC design, there is no dts entry to indicate whether this > >> > device needs pwrseq or not at this design, it will only carry out power > >> > on sequence after matching. So, return -EPROBE_DEFER may

Re: [PATCH] PCI: Workaround AMD EHCI controller PME bug

2017-06-19 Thread Kai-Heng Feng
On Tue, Jun 20, 2017 at 2:01 AM, Bjorn Helgaas wrote: > > Applied (patch below) to pci/pm for v4.13, thanks! > > Note that I added parens because bitwise NOT is higher precedence than > bitwise shift right, and I think we want the shift before the NOT. Please > double-check. You are right. NOT s

Re: [PATCH v2 2/9] kvm-vfio: Decouple only when we match a group

2017-06-19 Thread Alex Williamson
On Tue, 20 Jun 2017 12:34:57 +1000 Alexey Kardashevskiy wrote: > On 20/06/17 03:14, Alex Williamson wrote: > > Unset-KVM and decrement-assignment only when we find the group in our > > list. Otherwise we can get out of sync if the user triggers this for > > groups that aren't currently on our li

Re: [PATCH v2 04/12] Input: wm97xx: split out touchscreen registering

2017-06-19 Thread Dmitry Torokhov
On Mon, Jun 19, 2017 at 09:27:01AM +0200, Robert Jarzmik wrote: > wm97xx-core does several things in it initialization : > - touchscreen input device setup > - battery device creation > > As the wm97xx is actually a multi-function device handling an audio > codec, a touchscreen, a gpio block and

Re: [PATCH v2 06/12] Input: wm97xx: add new AC97 bus support

2017-06-19 Thread Dmitry Torokhov
On Mon, Jun 19, 2017 at 09:27:03AM +0200, Robert Jarzmik wrote: > This adds support for the new AC97 bus code, which discovers the devices > rather than uses platform data. > > As part of this discovery, it enables a multi-function device wm97xx, > which supports touchscreen, battery, ADC and an a

RE: [systemd-devel] [WIP PATCH 0/4] Rework the unreliable LID switch exported by ACPI

2017-06-19 Thread Zheng, Lv
Hi, > From: Bastien Nocera [mailto:had...@hadess.net] > Subject: Re: [systemd-devel] [WIP PATCH 0/4] Rework the unreliable LID switch > exported by ACPI > > On Mon, 2017-06-19 at 01:43 +, Zheng, Lv wrote: > > > > > > > > If you implement it in such a way that GNOME settings daemon > > > beh

Re: [PATCHv2 3/3] mm: Use updated pmdp_invalidate() inteface to track dirty/accessed bits

2017-06-19 Thread Minchan Kim
Hello Kirill, On Mon, Jun 19, 2017 at 05:03:23PM +0300, Kirill A. Shutemov wrote: > On Fri, Jun 16, 2017 at 11:53:33PM +0900, Minchan Kim wrote: > > Hi Andrea, > > > > On Fri, Jun 16, 2017 at 04:27:20PM +0200, Andrea Arcangeli wrote: > > > Hello Minchan, > > > > > > On Fri, Jun 16, 2017 at 10:52

Re: [PATCH] mm/list_lru.c: use cond_resched_lock() for nlru->lock

2017-06-19 Thread Sahitya Tummala
Hello, On 6/17/2017 4:44 PM, Vladimir Davydov wrote: That said, I think it would be better to patch shrink_dcache_sb() or dentry_lru_isolate_shrink() instead of list_lru_walk() in order to fix this lockup. Thanks for the review. I will enhance the patch as per your suggestion. -- Qualcomm I

Re: [PATCH v5 0/4] tty/serial: meson_uart: add support for core clock handling

2017-06-19 Thread Greg KH
On Mon, Jun 19, 2017 at 10:43:05AM +0200, Neil Armstrong wrote: > On 06/14/2017 10:29 AM, Neil Armstrong wrote: > > This patchset is a re-spin of Helmut Klein's v3 patchset at [0] and the v4 > > patchset at [1]. > > > > Initially, the original patchset was made to enable usage on the non-AO > >

Re: Linux 4.12-rc6

2017-06-19 Thread Dave Jones
On Tue, Jun 20, 2017 at 10:32:00AM +0800, Linus Torvalds wrote: > On Tue, Jun 20, 2017 at 8:26 AM, Dave Jones wrote: > > > Hugh Dickins (1): > > > mm: larger stack guard gap, between vmas > > > > This seems to be buggered. > > > > 002331 0396712307 0 2 kernel BUG at mm/mmap.c:19

Re: [PATCH 3.10 060/268] xen/gntdev: Use VM_MIXEDMAP instead of VM_IO to avoid NUMA balancing

2017-06-19 Thread Hugh Dickins
On Mon, 19 Jun 2017, Willy Tarreau wrote: > From: Boris Ostrovsky > > commit 30faaafdfa0c754c91bac60f216c9f34a2bfdf7e upstream. > > Commit 9c17d96500f7 ("xen/gntdev: Grant maps should not be subject to > NUMA balancing") set VM_IO flag to prevent grant maps from being > subjected to NUMA balanc

[PATCH v2 1/3] fsi: Add fsi_master_rescan()

2017-06-19 Thread Jeremy Kerr
We'll want non-core fsi code to trigger a rescan, so introduce a non-static fsi_master_rescan() function. Use this for the existing unscan/scan behaviour too. Signed-off-by: Jeremy Kerr Reviewed-by: Joel Stanley Reviewed-by: Christopher Bostic --- v2: - Add EXPORT_SYMBOL_GPL(fsi_master_resca

Re: [PATCH] x86/mm: Don't reenter flush_tlb_func_common()

2017-06-19 Thread zhong jiang
On 2017/6/19 23:05, Andy Lutomirski wrote: > On Mon, Jun 19, 2017 at 6:33 AM, zhong jiang wrote: >> On 2017/6/19 12:48, Andy Lutomirski wrote: >>> It was historically possible to have two concurrent TLB flushes >>> targeting the same CPU: one initiated locally and one initiated >>> remotely. This

[PATCH] mm: Add SLUB free list pointer obfuscation

2017-06-19 Thread Kees Cook
This SLUB free list pointer obfuscation code is modified from Brad Spengler/PaX Team's code in the last public patch of grsecurity/PaX based on my understanding of the code. Changes or omissions from the original code are mine and don't reflect the original grsecurity/PaX code. This adds a per-cac

[PATCH v4] platform/x86: dell-laptop: Fix bogus keyboard backlight sysfs interface

2017-06-19 Thread Kai-Heng Feng
Dell Latitude 3160 does not have keyboard backlight, but there is a sysfs interface for it, which does nothing at all. KBD_LED_ON_TOKEN is the only token can be found. Since it doesn't have KBD_LED_OFF_TOKEN or KBD_LED_AUTO_*_TOKEN, it should be safe to assume at least two tokens should be present

Re: [GIT PULL] NTB bug fixes for v4.12

2017-06-19 Thread Linus Torvalds
On Tue, Jun 20, 2017 at 2:42 AM, Jon Mason wrote: > Hello Linus, > Here are a few NTB bug fixes for 4.12. So I pulled this, mainly because it removed more lines than it added due to the revert. But generally I absolutely *hate* pulling stuff that I can see was committed just hours ago. Why was t

Re: [PATCH NET] net/hns:bugfix of ethtool -t phy self_test

2017-06-19 Thread l00371289
hi, Florian On 2017/6/20 5:00, Florian Fainelli wrote: > On 06/16/2017 02:24 AM, Lin Yun Sheng wrote: >> This patch fixes the phy loopback self_test failed issue. when >> Marvell Phy Module is loaded, it will powerdown fiber when doing >> phy loopback self test, which cause phy loopback self_test

Re: [PATCH v6 09/12] Input: Add power key driver for Rockchip RK805 PMIC

2017-06-19 Thread Dmitry Torokhov
On Thu, Jun 08, 2017 at 03:30:27PM +0800, Jianhong Chen wrote: > From: chenjh > > This driver provides a input driver for the power > key on the Rockchip RK805 PMIC. > > Signed-off-by: chenjh > --- > drivers/input/misc/Kconfig| 6 +++ > drivers/input/misc/Makefile | 1 + > dr

Re: Linux 4.12-rc6

2017-06-19 Thread Hugh Dickins
On Tue, 20 Jun 2017, Linus Torvalds wrote: > On Tue, Jun 20, 2017 at 8:26 AM, Dave Jones wrote: > > > Hugh Dickins (1): > > > mm: larger stack guard gap, between vmas > > > > This seems to be buggered. > > > > 002331 0396712307 0 2 kernel BUG at mm/mmap.c:1963! > > 002332 039671241

Re: [PATCH NET] net/hns:bugfix of ethtool -t phy self_test

2017-06-19 Thread l00371289
Hi, Andrew On 2017/6/20 5:54, Andrew Lunn wrote: > On Mon, Jun 19, 2017 at 02:00:43PM -0700, Florian Fainelli wrote: >> On 06/16/2017 02:24 AM, Lin Yun Sheng wrote: >>> This patch fixes the phy loopback self_test failed issue. when >>> Marvell Phy Module is loaded, it will powerdown fiber when doi

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

2017-06-19 Thread Keerthy
On Thursday 15 June 2017 12:03 PM, Keerthy wrote: > Add driver for lp87565 PMIC family GPIOs. Three GPIOs are supported > and can be configured in Open-drain output or Push-pull output. > > Signed-off-by: Keerthy > --- > > Latest version of mfd patch: > > https://patchwork.kernel.org/patch/97

Re: [PATCH v2 1/2] selftests: lib: Skip tests on missing test modules

2017-06-19 Thread Sumit Semwal
Hi Kees, On 20 June 2017 at 00:21, Kees Cook wrote: > On Mon, Jun 19, 2017 at 6:44 AM, Sumit Semwal wrote: >> With older kernels, printf.sh and bitmap.sh fail because they can't find >> the respective test modules they are looking for. >> >> Add the skip portion on missing the respective test_XX

Re: [PATCH] crypto: crypto4xx - fix an error code

2017-06-19 Thread Herbert Xu
On Sat, Jun 10, 2017 at 02:54:33PM +0200, Christophe JAILLET wrote: > If 'kzalloc' fails, we return 0 which means success. > return -ENOMEM instead as already done a few lines above. > > Signed-off-by: Christophe JAILLET Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apa

[PATCH] regulator: lp87565: Fix the initial voltage range

2017-06-19 Thread Keerthy
The latest documentation reveals that initial voltage range that is supported is starting from 0.6V for all the PMICs belonging to lp87565 family. Fix the same. Signed-off-by: Keerthy Fixes: f0168a9bf ("regulator: lp87565: Add support for lp87565 PMIC regulators") --- drivers/regulator/lp87565-r

Re: WMI and Kernel:User interface

2017-06-19 Thread Darren Hart
On Mon, Jun 19, 2017 at 03:10:09PM -0700, Andy Lutomirski wrote: > On Tue, Jun 13, 2017 at 9:38 PM, Greg Kroah-Hartman > wrote: > > On Tue, Jun 13, 2017 at 10:07:19AM -0700, Darren Hart wrote: > >> On Tue, Jun 13, 2017 at 06:52:47PM +0200, Greg Kroah-Hartman wrote: > >> > > As a concrete example,

Re: [PATCH] rsa-pkcs1pad: use constant time memory comparison for MACs

2017-06-19 Thread Herbert Xu
On Sun, Jun 11, 2017 at 11:20:23PM +0200, Jason A. Donenfeld wrote: > Otherwise, we enable all sorts of forgeries via timing attack. > > Signed-off-by: Jason A. Donenfeld > Suggested-by: Stephan Müller > Cc: sta...@vger.kernel.org > Cc: Herbert Xu > Cc: linux-cry...@vger.kernel.org Patch appli

Re: [PATCH][crypto-next] crypto: omap-aes: fix spelling mistake "Encryptio" -> "Encryption"

2017-06-19 Thread Herbert Xu
On Tue, Jun 13, 2017 at 09:46:47AM +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in pr_err message > > Signed-off-by: Colin Ian King Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana

Re: [PATCH v2 0/3] add support of hardware random generator on MediaTek MT7622

2017-06-19 Thread Herbert Xu
On Mon, Jun 12, 2017 at 11:56:53PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > Changes since v1: > - update the bindings with the specific "mediatek,mt7622-rng" > instead of the generic one as "mediatek,generic-rng" > > The series add support of hardware RNG on MediaTek MT7622 a

Re: [PATCH][crypto-next] crypto: cavium: fix spelling mistake "Revsion" -> "Revision"

2017-06-19 Thread Herbert Xu
On Tue, Jun 13, 2017 at 09:52:54AM +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in seq_printf message > > Signed-off-by: Colin Ian King Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.a

Re: [PATCH] crypto: n2: make of_device_ids const

2017-06-19 Thread Herbert Xu
On Thu, Jun 15, 2017 at 05:28:10PM +0530, Arvind Yadav wrote: > of_device_ids are not supposed to change at runtime. All functions > working with of_device_ids provided by work with const > of_device_ids. So mark the non-const structs as const. > > File size before: >text data bs

Re: [PATCH] crypto: caam: make of_device_ids const.

2017-06-19 Thread Herbert Xu
On Fri, Jun 16, 2017 at 02:46:44PM +0530, Arvind Yadav wrote: > of_device_ids are not supposed to change at runtime. All functions > working with of_device_ids provided by work with const > of_device_ids. So mark the non-const structs as const. > > File size before: >text data bs

Re: Linux 4.12-rc6

2017-06-19 Thread Dave Jones
On Mon, Jun 19, 2017 at 08:12:12PM -0700, Hugh Dickins wrote: > for Dave perhaps to try - but probably he's shut down now, so I'll > then grab a trinity, and see what luck I have with it. Almost shutdown, but not quite. Coincidentally, coverity just finished the rc6 run, and barfed this up..

[PATCH 1/3] dt-bindings: Document the hi3660 thermal sensor bindings

2017-06-19 Thread Tao Wang
This adds documentation of device tree bindings for the thermal sensor controller of hi3660 SoC. Signed-off-by: Tao Wang --- .../devicetree/bindings/thermal/hi3660-thermal.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal

[PATCH 3/3] arm64: dts: register Hi3660's thermal sensor

2017-06-19 Thread Tao Wang
Bind thermal sensor driver for Hi3660. Signed-off-by: Tao Wang Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi |7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index 3983086.

[PATCH 2/3] thermal: hisilicon: add thermal sensor driver for Hi3660

2017-06-19 Thread Tao Wang
This patch adds the support for thermal sensor of Hi3660 SoC. this will register sensors for thermal framework and use device tree to bind cooling device. Signed-off-by: Tao Wang Signed-off-by: Leo Yan --- drivers/thermal/Kconfig | 10 ++ drivers/thermal/Makefile |1 + dr

Re: [PATCH 1/7] drm/bridge: Support hotplugging panel-bridge.

2017-06-19 Thread Archit Taneja
On 06/16/2017 08:13 PM, Eric Anholt wrote: Archit Taneja writes: On 06/16/2017 02:11 AM, Eric Anholt wrote: If the panel-bridge is being set up after the drm_mode_config_reset(), then the connector's state would never get initialized, and we'd dereference the NULL in the hotplug path. We a

Re: [PATCH v3 1/4] sparc64: Add 16GB hugepage support

2017-06-19 Thread David Miller
You need to provide a proper "[PATCH xxx 0/N] " header posting explaining what the series is doing at a high level, how it is doing it, and why it is doing it that way. A patch series is a collection of related patches attempting to achieve a specific high level end goal. If, instead, these are

linux-next: manual merge of the tty tree with the arm-soc tree

2017-06-19 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the tty tree got a conflict in: include/linux/platform_data/atmel.h between commit: 8a3d809373c6 ("ARM: at91: remove atmel_nand_data") from the arm-soc tree and commit: 92c8f7c0e109 ("tty/serial: atmel: make the driver DT only") from the tty tree.

Re: [PATCH v5 6/6] ARM: dts: imx6: RIoTboard provide standby on power off option

2017-06-19 Thread Oleksij Rempel
On 20.06.2017 02:19, Stephen Boyd wrote: On 06/19, Oleksij Rempel wrote: This board, as well as some other boards with i.MX6 and a PMIC, uses a "MPIC_STBY_REQ" line to notify the PMIC about a state change. PMIC_STBY_REQ? Ok, thanks.

Re: [PATCH v10 4/5] i2c: aspeed: added driver for Aspeed I2C

2017-06-19 Thread Brendan Higgins
I thought all of the comments made sense and will be addressed in my next revision, except the following: >> +static int aspeed_i2c_recover_bus(struct aspeed_i2c_bus *bus) >> +{ >> + unsigned long time_left, flags; >> + int ret = 0; >> + u32 command; >> + >> + spin_lock_irqsave(&bu

Re: [kernel-hardening] [PATCH 21/23] usercopy: Restrict non-usercopy caches to size 0

2017-06-19 Thread Eric Biggers
Hi David + Kees, On Mon, Jun 19, 2017 at 04:36:35PM -0700, Kees Cook wrote: > With all known usercopied cache whitelists now defined in the kernel, switch > the default usercopy region of kmem_cache_create() to size 0. Any new caches > with usercopy regions will now need to use kmem_cache_create_u

Re: [kernel-hardening] [PATCH 17/23] dcache: define usercopy region in dentry_cache slab cache

2017-06-19 Thread Eric Biggers
On Mon, Jun 19, 2017 at 04:36:31PM -0700, Kees Cook wrote: > From: David Windsor > > When a dentry name is short enough, it can be stored directly in > the dentry itself. These dentry short names, stored in struct > dentry.d_iname and therefore contained in the dentry_cache slab cache, > need to

Re: [kernel-hardening] [PATCH 23/23] mm: Allow slab_nomerge to be set at build time

2017-06-19 Thread Daniel Micay
On Mon, 2017-06-19 at 16:36 -0700, Kees Cook wrote: > Some hardened environments want to build kernels with slab_nomerge > already set (so that they do not depend on remembering to set the > kernel > command line option). This is desired to reduce the risk of kernel > heap > overflows being able to

Re: [patch 19/55] genirq: Provide irq_fixup_move_pending()

2017-06-19 Thread Dou Liyang
Hi Thomas, At 06/20/2017 07:37 AM, Thomas Gleixner wrote: [...] +/** + * irq_fixup_move_pending - Cleanup irq move pending from a dying CPU + * @desc: Interrupt descpriptor to clean up + * @force_clear: If set clear the move pending bit unconditionally. + *

Re: [kernel-hardening] [PATCH 22/23] usercopy: split user-controlled slabs to separate caches

2017-06-19 Thread Eric Biggers
On Mon, Jun 19, 2017 at 04:36:36PM -0700, Kees Cook wrote: > From: David Windsor > > Some userspace APIs (e.g. ipc, seq_file) provide precise control over > the size of kernel kmallocs, which provides a trivial way to perform > heap overflow attacks where the attacker must control neighboring > a

Re: [kernel-hardening] [PATCH 23/23] mm: Allow slab_nomerge to be set at build time

2017-06-19 Thread Eric Biggers
On Mon, Jun 19, 2017 at 04:36:37PM -0700, Kees Cook wrote: > Some hardened environments want to build kernels with slab_nomerge > already set (so that they do not depend on remembering to set the kernel > command line option). This is desired to reduce the risk of kernel heap > overflows being able

Re: [PATCH v2 2/4] drm/panel: Add support for s6e63j0x03 panel driver

2017-06-19 Thread Hoegeun Kwon
On 06/19/2017 06:14 PM, Andrzej Hajda wrote: On 15.06.2017 12:03, Hoegeun Kwon wrote: This patch adds MIPI-DSI based S6E63J0X03 AMOLED LCD panel driver which uses mipi_dsi bus to communicate with panel. The panel has 320×320 resolution in 1.63" physical panel. This panel is used in Samsung Gala

Re: Linux 4.12-rc6

2017-06-19 Thread Hugh Dickins
On Mon, 19 Jun 2017, Hugh Dickins wrote: > On Tue, 20 Jun 2017, Linus Torvalds wrote: > > On Tue, Jun 20, 2017 at 8:26 AM, Dave Jones wrote: > > > > Hugh Dickins (1): > > > > mm: larger stack guard gap, between vmas > > > > > > This seems to be buggered. ... > > > > So maybe that "goto fo

[PATCH v6 2/4] nvmem: add snvs_lpgpr driver

2017-06-19 Thread Oleksij Rempel
This is a driver for Low Power General Purpose Register (LPGPR) available on i.MX6 SoCs in Secure Non-Volatile Storage (SNVS) of this chip. It is a 32-bit read/write register located in the low power domain. Since LPGPR is located in the battery-backed power domain, LPGPR can be used by any applic

[PATCH v6 1/4] nvmem: dt: document SNVS LPGPR binding

2017-06-19 Thread Oleksij Rempel
Documentation bindings for the Low Power General Purpose Register available on i.MX6 SoCs in the Secure Non-Volatile Storage. Signed-off-by: Oleksij Rempel --- .../devicetree/bindings/nvmem/snvs-lpgpr.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Doc

[PATCH v6 4/4] ARM: imx6ul: add "fsl,imx6ul-snvs-lpgpr" node

2017-06-19 Thread Oleksij Rempel
snvs_lpgpr confirmed to work with imx6ul as well. Signed-off-by: Oleksij Rempel Tested-by: Guy Shapiro --- Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt | 3 ++- arch/arm/boot/dts/imx6ul.dtsi | 4 drivers/nvmem/snvs_lpgpr.c | 1

[PATCH v6 3/4] ARM: dts: imx6qdl.dtsi: add "fsl,imx6q-snvs-lpgpr" node

2017-06-19 Thread Oleksij Rempel
This node is for Low Power General Purpose Register which can be used as Non-Volatile Storage. Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/imx6qdl.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index e426faa9c2

[PATCH v6 0/4] nvmem: upstream snvs_lpgpr driver

2017-06-19 Thread Oleksij Rempel
changes v6: - check if device is writable by reading GPR_SL and GPR_HL bits - use regmap_bulk_* functions instead of while() { regmap_read/write } - add patch for imx6ul changes v5: - use dcfg->offset instead of priv->offset. changes v4: - change dependencies in Kconfig - remove unused incl

[PATCH] drm: sti: sti_dvo: make of_device_ids const.

2017-06-19 Thread Arvind Yadav
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. File size before: textdata bss dec hex filename 4222 664 048861316 drivers/gpu/d

Re: [kernel-hardening] [PATCH 22/23] usercopy: split user-controlled slabs to separate caches

2017-06-19 Thread Eric Biggers
On Mon, Jun 19, 2017 at 04:36:36PM -0700, Kees Cook wrote: > From: David Windsor > > Some userspace APIs (e.g. ipc, seq_file) provide precise control over > the size of kernel kmallocs, which provides a trivial way to perform > heap overflow attacks where the attacker must control neighboring > a

Re: [PATCH v2] refcount: Create unchecked atomic_t implementation

2017-06-19 Thread Kees Cook
On Wed, Jun 7, 2017 at 10:56 PM, Greg KH wrote: > On Wed, Jun 07, 2017 at 07:58:31PM -0700, Kees Cook wrote: >> Many subsystems will not use refcount_t unless there is a way to build the >> kernel so that there is no regression in speed compared to atomic_t. This >> adds CONFIG_REFCOUNT_FULL to en

[PATCH v3] selftests: lib: Skip tests on missing test modules

2017-06-19 Thread Sumit Semwal
With older kernels, printf.sh and bitmap.sh fail because they can't find the respective test modules they are looking for. Use modprobe dry run to check for missing test_XXX module. Error out with the same error code as prime_numbers.sh. v3: As pointed out by Kees, modules can be in-built too, so

Re: [PATCH] hwmon: (ibmpowernv) Add current(A) sensors

2017-06-19 Thread Shilpasri G Bhat
Hi Cedric, On 06/19/2017 06:22 PM, Cédric Le Goater wrote: > On 06/19/2017 11:25 AM, Shilpasri G Bhat wrote: >> This patch exports current(A) sensors in inband sensors copied to >> main memory by OCC. >> >> Signed-off-by: Shilpasri G Bhat >> --- >> drivers/hwmon/ibmpowernv.c | 4 +++- >> 1 file

Re: [PATCH v2] drm/exynos/dsi: Remove error handling for bridge_node DT parsing

2017-06-19 Thread Hoegeun Kwon
Hello Tobias, Sorry for late reply. On 06/14/2017 09:30 PM, Tobias Jakobi wrote: Hello Hoegeun, my last question (does this regress the case "node required, but absent") still stands. Hoegeun Kwon wrote: Remove the error handling of bridge_node because the bridge_node is required optionally

Re: [PATCH v5 2/6] ARM: imx6: register pm_power_off handler if "fsl,pmic-stby-poweroff" is set

2017-06-19 Thread Oleksij Rempel
Hi Leonard, On 19.06.2017 13:35, Leonard Crestez wrote: On Mon, 2017-06-19 at 07:02 +0200, Oleksij Rempel wrote: One of the Freescale recommended sequences for power off with external PMIC is the following: ... 3. SoC is programming PMIC for power off when standby is asserted. 4. In CCM STOP

[PATCH] drm: sti: sti_hqvdp: Fix compilation warning.

2017-06-19 Thread Arvind Yadav
Replace '%d' by '%zu' and '%lu' to fix the following compilation warning:- drivers/gpu/drm/sti/sti_hqvdp.c: In function ‘sti_hqvdp_start_xp70’: drivers/gpu/drm/sti/sti_hqvdp.c:925:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] DRM_ERROR("In

linux-next: build failure after merge of the kspp tree

2017-06-19 Thread Stephen Rothwell
Hi all, After merging the kspp tree, today's linux-next build (x86_64 allmodconfig) failed like this: security/apparmor/file.c: In function 'aa_path_link': security/apparmor/file.c:475:23: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=de

Re: [PATCH v5 3/6] kernel/reboot.c: export pm_power_off_prepare

2017-06-19 Thread Oleksij Rempel
On 19.06.2017 13:35, Leonard Crestez wrote: On Mon, 2017-06-19 at 07:02 +0200, Oleksij Rempel wrote: Export pm_power_off_prepare. It is needed to implement power off on Freescale/NXP iMX6 based boards with external power management integrated circuit (PMIC). Signed-off-by: Oleksij Rempel ---

Re: [PATCH v2 3/9] vfio: New external user group/file match

2017-06-19 Thread kbuild test robot
Hi Alex, [auto build test ERROR on vfio/next] [also build test ERROR on v4.12-rc6 next-20170619] [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/Alex-Williamson/vfio-Fix-release-ordering-races

[PATCH] drm: sti: sti_hqvdp: make of_device_ids const.

2017-06-19 Thread Arvind Yadav
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. File size before: textdata bss dec hex filename 15845 640 0 164854065 drivers/gpu/d

[PATCH V2 0/2] hwmon: (ibmpowernv) Add support for current(A) sensors

2017-06-19 Thread Shilpasri G Bhat
The first patch from Cedric in the patchset cleans up the driver to provide a neater way to define new sensor types. The second patch adds current sensor. Cédric Le Goater (1): hwmon: (ibmpowernv) introduce a legacy_compatibles array Shilpasri G Bhat (1): hwmon: (ibmpowernv) Add current(A) se

[PATCH V2 1/2] hwmon: (ibmpowernv) introduce a legacy_compatibles array

2017-06-19 Thread Shilpasri G Bhat
From: Cédric Le Goater Today, the type of a PowerNV sensor system is determined with the "compatible" property for legacy Firmwares and with the "sensor-type" for newer ones. The same array of strings is used for both to do the matching and this raises some issue to introduce new sensor types. L

[PATCH V2 2/2] hwmon: (ibmpowernv) Add current(A) sensor

2017-06-19 Thread Shilpasri G Bhat
This patch exports current(A) sensors in inband sensors copied to main memory by OCC. Signed-off-by: Shilpasri G Bhat --- Changes from V1: - Rebased on top of Cedric's patch to remove legay-compatible type for the current(A) sensor. drivers/hwmon/ibmpowernv.c | 4 +++- 1 file changed, 3 inser

[PATCH] ARM: dts: am437x-gp-evm: Add support for buzzer

2017-06-19 Thread Faiz Abbas
Add support for onboard gpio buzzer. It works using the gpio-beeper driver. Pinmux entries for GPIO controlling the buzzer are also added. Signed-off-by: Faiz Abbas --- arch/arm/boot/dts/am437x-gp-evm.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/am437

Re: [RFC v2 00/12] powerpc: Memory Protection Keys

2017-06-19 Thread Balbir Singh
On Fri, 2017-06-16 at 20:52 -0700, Ram Pai wrote: > Memory protection keys enable applications to protect its > address space from inadvertent access or corruption from > itself. I presume by itself you mean protection between threads? > > The overall idea: > > A process allocates a key and

Re: [PATCH 3.10 162/268] bcma: use (get|put)_device when probing/removing device driver

2017-06-19 Thread Kalle Valo
Willy Tarreau writes: > From: Rafał Miłecki > > commit a971df0b9d04674e325346c17de9a895425ca5e1 upstream. > > This allows tracking device state and e.g. makes devm work as expected. > > Signed-off-by: Rafał Miłecki > Signed-off-by: Kalle Valo > Signed-off-by: Willy Tarreau UTF-8 characte

[PATCH] drm: armada: make of_device_ids const.

2017-06-19 Thread Arvind Yadav
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. File size before: textdata bss dec hex filename 8836 744 09580256c drivers/gpu/d

linux-next: manual merge of the akpm-current tree with the kspp tree

2017-06-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/sem.h between commit: 1a12979f61e4 ("randstruct: Mark various structs for randomization") from the kspp tree and commit: 337e62a32a54 ("ipc/sem.c: remove sem_base, embed struct sem") from the akp

[git pull] ufs fixes

2017-06-19 Thread Al Viro
More UFS fixes, unfortunately including build regression fix for the 64bit s_dsize commit. Fixed in this pile: * trivial bug in signedness of 32bit timestamps on ufs1 * ESTALE instead of ufs_error() when doing open-by-fhandle on something deleted * build regression

linux-next: manual merge of the akpm-current tree with the kspp tree

2017-06-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/ipc.h between commit: 1a12979f61e4 ("randstruct: Mark various structs for randomization") from the kspp tree and commit: 893106d6be17 ("ipc: merge ipc_rcu and kern_ipc_perm") from the akpm-curren

[PATCH 01/11] Fix coding style of driver/staging/ccree/ssi_aead.c ERROR: space required after that

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag In this series patches, I fix all of the coding style error in driver/staging/ccree/ssi_aead.c from 54 errors to 0 error. The first patch fixed 'ERROR: space required after that'. Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 22 +++--

[PATCH 02/11] Fix ERROR: spaces required around that

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed 'ERROR: spaces required around that' Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index 5bc3a5

[PATCH 03/11] Fix ERROR: space required before the open brace

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed 'ERROR: space required before the open brace'. Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index 0f9

[PATCH 04/11] Fix ERROR: that open brace { should be on the previous line

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed 'ERROR: that open brace { should be on the previous line'. Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead

[PATCH 05/11] Fix ERROR: space prohibited after that open parenthesis '('

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed "ERROR: space prohibited after that open parenthesis '('". Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccr

[PATCH 06/11] Fix ERROR: space prohibited before that close parenthesis ')'

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed "ERROR: space prohibited before that close parenthesis ')'". Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/d

[PATCH 09/11] Fix ERROR: space prohibited before that ','

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed "ERROR: space prohibited before that ','". Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index 6d2c0

[PATCH 07/11] Fix ERROR: open brace '{' following function declarations go on the next line

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed "ERROR: open brace '{' following function declarations go on the next line". Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/sta

[PATCH 08/11] Fix ERROR: space prohibited before open square bracket '['

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixied "ERROR: space prohibited before open square bracket '['". Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c ind

[PATCH 11/11] Fix ERROR: "foo* bar" should be "foo *bar"

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed 'ERROR: "foo* bar" should be "foo *bar"'. Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index c148d81..c70e4

[PATCH 10/11] Fix ERROR: else should follow close brace '}'

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixied "ERROR: else should follow close brace '}'". Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index d697244.

Re: [RFC PATCH 2/2] mm, fs: daxfile, an interface for byte-addressable updates to pmem

2017-06-19 Thread Darrick J. Wong
[add linux-xfs to the fray] On Fri, Jun 16, 2017 at 06:15:35PM -0700, Dan Williams wrote: > To date, the full promise of byte-addressable access to persistent > memory has only been half realized via the filesystem-dax interface. The > current filesystem-dax mechanism allows an application to cons

[PATCH] staging: rtl8723bs: hal: Use (true/false) in assignment to bool

2017-06-19 Thread simran singhal
This patch assigns (true/false) to boolean EDCCA_State instead of (1/0). And, there is no need of comparing EDCCA_State explicitly with constant 1. Signed-off-by: simran singhal --- drivers/staging/rtl8723bs/hal/odm_DIG.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH] watchdog: cadence_wdt: make of_device_ids const.

2017-06-19 Thread Arvind Yadav
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. File size before: textdata bss dec hex filename 1962 612 42578 a12 drivers/watch

Re: [PATCH 3.10 060/268] xen/gntdev: Use VM_MIXEDMAP instead of VM_IO to avoid NUMA balancing

2017-06-19 Thread Willy Tarreau
On Mon, Jun 19, 2017 at 07:57:27PM -0700, Hugh Dickins wrote: > On Mon, 19 Jun 2017, Willy Tarreau wrote: > > > From: Boris Ostrovsky > > > > commit 30faaafdfa0c754c91bac60f216c9f34a2bfdf7e upstream. > > > > Commit 9c17d96500f7 ("xen/gntdev: Grant maps should not be subject to > > NUMA balancin

Re: linux-next: build failure after merge of the kspp tree

2017-06-19 Thread John Johansen
On 06/19/2017 09:56 PM, Stephen Rothwell wrote: > Hi all, > > After merging the kspp tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > security/apparmor/file.c: In function 'aa_path_link': > security/apparmor/file.c:475:23: error: positional initialization of field in

Re: linux-next: build failure after merge of the kspp tree

2017-06-19 Thread Kees Cook
On Mon, Jun 19, 2017 at 9:56 PM, Stephen Rothwell wrote: > Hi all, > > After merging the kspp tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > security/apparmor/file.c: In function 'aa_path_link': > security/apparmor/file.c:475:23: error: positional initialization of fi

Re: linux-next: build failure after merge of the kspp tree

2017-06-19 Thread John Johansen
On 06/19/2017 10:39 PM, Kees Cook wrote: > On Mon, Jun 19, 2017 at 9:56 PM, Stephen Rothwell > wrote: >> Hi all, >> >> After merging the kspp tree, today's linux-next build (x86_64 >> allmodconfig) failed like this: >> >> security/apparmor/file.c: In function 'aa_path_link': >> security/apparmor/

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-06-19 Thread Amir Goldstein
On Tue, Jun 20, 2017 at 12:34 AM, Eric W. Biederman wrote: > "Serge E. Hallyn" writes: > >> Quoting Stefan Berger (stef...@linux.vnet.ibm.com): >>> On 06/14/2017 11:05 PM, Serge E. Hallyn wrote: >>> >On Wed, Jun 14, 2017 at 08:27:40AM -0400, Stefan Berger wrote: >>> >>On 06/13/2017 07:55 PM, Serg

[PATCH v2] serial: 8250: 8250_omap: Fix race b/w dma completion and RX timeout

2017-06-19 Thread Vignesh R
DMA RX completion handler for UART is called from a tasklet and hence may be delayed depending on the system load. In meanwhile, there may be RX timeout interrupt which can get serviced first before DMA RX completion handler is executed for the completed transfer. omap_8250_rx_dma_flush() which is

  1   2   3   4   5   6   7   8   9   10   >