[PATCH v3 6/6] arm64: defconfig: enable support hi6421v530 PMIC

2017-06-02 Thread Guodong Xu
Enable configs for hi6421v530 mfd and regulator driver + CONFIG_MFD_HI6421_PMIC=y + CONFIG_REGULATOR_HI6421V530=y Signed-off-by: Guodong Xu --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index c

[PATCH v3 2/6] mfd: hi6421-pmic: add support for HiSilicon Hi6421v530

2017-06-02 Thread Guodong Xu
Add support for HiSilicon Hi6421v530 PMIC. Hi6421v530 communicates with main SoC via memory-mapped I/O. Hi6421v530 and Hi6421 are PMIC chips from the same vendor, HiSilicon, but at different revisions. They share the same memory-mapped I/O design. They differ in integrated devices, such as regulat

Re: [PATCH RFC 0/2] KVM: s390: avoid having to enable vm.alloc_pgste

2017-06-02 Thread Martin Schwidefsky
On Fri, 2 Jun 2017 12:19:19 +0200 Christian Borntraeger wrote: > On 06/02/2017 11:46 AM, Martin Schwidefsky wrote: > > On Fri, 2 Jun 2017 09:02:10 +0200 > > Heiko Carstens wrote: > > > >> On Thu, Jun 01, 2017 at 12:46:51PM +0200, Martin Schwidefsky wrote: > Unfortunately, converting al

Re: [PATCH RFC 0/2] KVM: s390: avoid having to enable vm.alloc_pgste

2017-06-02 Thread David Hildenbrand
On 02.06.2017 09:02, Heiko Carstens wrote: > On Thu, Jun 01, 2017 at 12:46:51PM +0200, Martin Schwidefsky wrote: >>> Unfortunately, converting all page tables to 4k pgste page tables is >>> not possible without provoking various race conditions. >> >> That is one approach we tried and was found to

[ANNOUNCE] util-linux v2.30

2017-06-02 Thread Karel Zak
The util-linux release v2.30 is available at http://www.kernel.org/pub/linux/utils/util-linux/v2.30 Feedback and bug reports, as always, are welcomed. Karel Util-linux 2.30 Release Notes = The libblkid library has been improved for hybrid CDROM/DVD media by ex

arm64: segfaults on next-20170602 with LTP tests

2017-06-02 Thread Yury Norov
: G S 4.12.0-rc3-next-20170602 #754 [ 1761.257324] Hardware name: linux,dummy-virt (DT) [ 1761.257434] task: 89036800 task.stack: 88fa4000 [ 1761.257542] PC is at 0xb7fb6f98 [ 1761.257613] LR is at 0xb7fb471c [ 1761.257678] pc : [<b7fb6

[PATCH] net: phy: marvell: make two functions static

2017-06-02 Thread Colin King
From: Colin Ian King functions m88e1510_get_temp_critical and m88e1510_get_temp_alarm can be made static as they not need to be in global scope. Cleans up sparse warnings: "symbol 'm88e1510_get_temp_alarm' was not declared. Should it be static?" "symbol 'm88e1510_get_temp_critical' was not dec

Re: [PATCH 04/12] fs: ceph: CURRENT_TIME with ktime_get_real_ts()

2017-06-02 Thread Yan, Zheng
On Fri, Jun 2, 2017 at 6:51 PM, Arnd Bergmann wrote: > On Fri, Jun 2, 2017 at 12:10 PM, Yan, Zheng wrote: >> On Fri, Jun 2, 2017 at 5:45 PM, Arnd Bergmann wrote: >>> On Fri, Jun 2, 2017 at 4:09 AM, Yan, Zheng wrote: On Fri, Jun 2, 2017 at 8:57 AM, Deepa Dinamani wrote: > On Thu,

Re: [PATCH 0/7] irqchip: constify irq_domain_ops

2017-06-02 Thread Tobias Klauser
On 2017-06-02 at 12:04:42 +0200, Marc Zyngier wrote: > On 02/06/17 09:20, Tobias Klauser wrote: > > Constify all remaining non-const instances of irq_domain_ops in the irqchip > > drivers. These can be made const as they are never modified. > > > > Tobias Klauser (7): > > irqchip/aspeed-vic: co

[PATCH] drm: remove writeq/readq function definitions

2017-06-02 Thread Corentin Labbe
Instead of rewriting write/readq, use linux/io-64-nonatomic-lo-hi.h which already have them. Signed-off-by: Corentin Labbe --- include/drm/drm_os_linux.h | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/include/drm/drm_os_linux.h b/include/drm/drm_os_linux.h ind

[PATCH] cpufreq: Find transition latency dynamically

2017-06-02 Thread Viresh Kumar
The transition_latency_ns represents the maximum time it can take for the hardware to switch from/to any frequency for a CPU. The transition_latency_ns is used currently for two purposes: o To check if the hardware latency is over the maximum allowed for a governor (only for ondemand and conser

[PATCH] pinctrl: sunxi: constify irq_domain_ops

2017-06-02 Thread Tobias Klauser
struct irq_domain_ops is not modified, so it can be made const. Suggested-by: Marc Zyngier Signed-off-by: Tobias Klauser --- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/p

Re: [PATCH 04/12] fs: ceph: CURRENT_TIME with ktime_get_real_ts()

2017-06-02 Thread Arnd Bergmann
On Fri, Jun 2, 2017 at 1:18 PM, Yan, Zheng wrote: > On Fri, Jun 2, 2017 at 6:51 PM, Arnd Bergmann wrote: >> On Fri, Jun 2, 2017 at 12:10 PM, Yan, Zheng wrote: >>> On Fri, Jun 2, 2017 at 5:45 PM, Arnd Bergmann wrote: On Fri, Jun 2, 2017 at 4:09 AM, Yan, Zheng wrote: > On Fri, Jun 2, 20

[PATCH] qla2xxx: remove writeq/readq function definitions

2017-06-02 Thread Corentin Labbe
Instead of rewriting write/readq, use linux/io-64-nonatomic-lo-hi.h which already have them. Signed-off-by: Corentin Labbe --- drivers/scsi/qla2xxx/qla_nx.h | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_nx.h b/drivers/scsi/qla2xxx

Re: [PATCH 4.4 075/103] [media] dvb-frontends/cxd2841er: define symbol_rate_min/max in T/C fe-ops

2017-06-02 Thread Ben Hutchings
On Tue, 2017-05-23 at 22:09 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Daniel Scheller > > commit 158f0328af86a99d64073851967a02694bff987d upstream. > > Fixes "w_scan -f c" complaining with >

Re: [PATCH 0/6] {sched_,}find_first{_zero}_bit optimizations

2017-06-02 Thread Yury Norov
Ping? On Tue, May 23, 2017 at 09:43:15PM +0300, Yury Norov wrote: > The series is the result of this discussion: > https://lkml.org/lkml/2017/5/12/665 > plus this patch: https://lkml.org/lkml/2017/5/13/137 > (I'd like to have it together with others.) > > Patch 1 remove useless GENERIC_FIND_FIRS

[PATCH] rpmsg: rpmsg_core: fix null-ptr dereference for devices without ops

2017-06-02 Thread Henri Roosen
A device might not have an ops structure registered. This patch fixes a null-prt dereference by checking ops before dereferencing it. Signed-off-by: Henri Roosen --- drivers/rpmsg/rpmsg_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rpmsg/rpmsg_core.c b/driver

[PATCH] rpmsg: cleanup incorrect function in dev_err message

2017-06-02 Thread Henri Roosen
Trivial cleanup for incorrect function in dev_err message Signed-off-by: Henri Roosen --- drivers/rpmsg/rpmsg_char.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c index 0ca2ccc..0b5d0d3 100644 --- a/drivers/rpmsg/r

[PATCH] rpmsg: virtio_rpmsg_bus: fix announce for devices without endpoint

2017-06-02 Thread Henri Roosen
A device might not have an endpoint assigned. This patch checks if rpdev->ept has a value before dereferencing or using it. Signed-off-by: Henri Roosen --- drivers/rpmsg/virtio_rpmsg_bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/

[PATCH] rpmsg: virtio_rpmsg_bus: cleanup multiple assignment to ops

2017-06-02 Thread Henri Roosen
Trivial cleanup: the .ops pointer is assigned twice. This patch removes the first assignment. Signed-off-by: Henri Roosen --- drivers/rpmsg/virtio_rpmsg_bus.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c index 3c582f2..

[PATCH] rpmsg: virtio_rpmsg_bus: fix nameservice address

2017-06-02 Thread Henri Roosen
Commit 2a48d7322dc8 ("rpmsg: rpmsg_send() operations takes rpmsg_endpoint") only changed the nameservice address for virtio_rpmsg_announce_create() but did not do the same change for virtio_rpmsg_announce_destroy(). Signed-off-by: Henri Roosen --- drivers/rpmsg/virtio_rpmsg_bus.c | 2 +- 1 file

[PATCH] netxen: remove writeq/readq function definitions

2017-06-02 Thread Corentin Labbe
Instead of rewriting write/readq, use linux/io-64-nonatomic-lo-hi.h which already have them. Signed-off-by: Corentin Labbe --- drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/net/ethernet/qlogic/netxen

Re: [PATCH 1/2] perf tests: Fix switch tracking test for P4

2017-06-02 Thread Adrian Hunter
On 01/06/17 16:11, Arnaldo Carvalho de Melo wrote: > Em Fri, May 26, 2017 at 02:31:40PM +0200, Jiri Olsa escreveu: >> The switch tracking test keeps failing on P4 cpu, >> when NMI watchdog is enabled. >> >> The reason is that P4 pmu uses substitute event for cycles >> when it's already taken (in ou

Re: [PATCH v4 2/3] usb: gadget: f_uac2: split out audio core

2017-06-02 Thread Jassi Brar
On Tue, May 30, 2017 at 5:13 AM, Ruslan Bilovol wrote: > On Mon, May 22, 2017 at 6:58 PM, Jassi Brar wrote: >> On Thu, May 18, 2017 at 4:07 AM, Ruslan Bilovol >> wrote: >>> Abstract the peripheral side ALSA sound card code from >>> the f_uac2 function into a component that can be called >>> by v

Re: [PATCH v6 2/3] phy:phy-bcm-ns2-usbdrd:Broadcom USB DRD Phy driver for Northstar2

2017-06-02 Thread Raviteja Garimella
Hi Kishon, On Fri, Jun 2, 2017 at 3:59 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Wednesday 31 May 2017 03:42 PM, Raviteja Garimella wrote: >> This is driver for USB DRD Phy used in Broadcom's Northstar2 >> SoC. The phy can be configured to be in Device mode or Host >> mode based on the type

Re: [PATCH v6 2/3] phy:phy-bcm-ns2-usbdrd:Broadcom USB DRD Phy driver for Northstar2

2017-06-02 Thread Raviteja Garimella
Hi, On Fri, Jun 2, 2017 at 5:18 PM, Raviteja Garimella wrote: > Hi Kishon, > > On Fri, Jun 2, 2017 at 3:59 PM, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Wednesday 31 May 2017 03:42 PM, Raviteja Garimella wrote: >>> This is driver for USB DRD Phy used in Broadcom's Northstar2 >>> SoC. The phy

Re: [RFC 07/55] KVM: arm/arm64: Add virtual EL2 state emulation framework

2017-06-02 Thread Christoffer Dall
On Thu, Jun 01, 2017 at 04:05:49PM -0400, Bandan Das wrote: > Jintack Lim writes: > ... > > +/** > > + * kvm_arm_setup_shadow_state -- prepare shadow state based on emulated > > mode > > + * @vcpu: The VCPU pointer > > + */ > > +void kvm_arm_setup_shadow_state(struct kvm_vcpu *vcpu) > > +{ > > +

[PATCH] agp: remove unused variable size in agp_generic_create_gatt_table

2017-06-02 Thread Corentin Labbe
This patch fix the following warning: drivers/char/agp/generic.c:853:6: attention : variable ‘size’ set but not used [-Wunused-but-set-variable] by removing the unused variable size in agp_generic_create_gatt_table Signed-off-by: Corentin Labbe --- drivers/char/agp/generic.c | 9 ++--- 1 fi

Re: [PATCH v6 2/3] phy:phy-bcm-ns2-usbdrd:Broadcom USB DRD Phy driver for Northstar2

2017-06-02 Thread Kishon Vijay Abraham I
Hi, On Friday 02 June 2017 05:21 PM, Raviteja Garimella wrote: > Hi, > > On Fri, Jun 2, 2017 at 5:18 PM, Raviteja Garimella > wrote: >> Hi Kishon, >> >> On Fri, Jun 2, 2017 at 3:59 PM, Kishon Vijay Abraham I wrote: >>> Hi, >>> >>> On Wednesday 31 May 2017 03:42 PM, Raviteja Garimella wrote: >>>

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

2017-06-02 Thread Benjamin Herrenschmidt
On Fri, 2017-06-02 at 01:46 -0700, Brendan Higgins wrote: > Added initial master support for Aspeed I2C controller. Supports > fourteen busses present in AST24XX and AST25XX BMC SoCs by Aspeed. > > Signed-off-by: Brendan Higgins Reviewed-by: Benjamin Herrenschmidt --- Just spotted a completely

Re: [PATCH v6 2/3] phy:phy-bcm-ns2-usbdrd:Broadcom USB DRD Phy driver for Northstar2

2017-06-02 Thread Raviteja Garimella
Hi, On Fri, Jun 2, 2017 at 5:26 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 02 June 2017 05:21 PM, Raviteja Garimella wrote: >> Hi, >> >> On Fri, Jun 2, 2017 at 5:18 PM, Raviteja Garimella >> wrote: >>> Hi Kishon, >>> >>> On Fri, Jun 2, 2017 at 3:59 PM, Kishon Vijay Abraham I >>> wro

Re: [PATCH] uapi/linux/a.out.h: don't use deprecated system-specific predefines.

2017-06-02 Thread Zack Weinberg
On 06/02/2017 03:10 AM, Christoph Hellwig wrote: > > Can we please fix these conditionals so that only those > relevant to Linux remain? I was going for the minimal change since this is dusty-deck code that I can't practically test, but I have no objection to your more thorough approach. I don't

[PATCH] kernel/module.c: fix warning about unused nowarn variable

2017-06-02 Thread Corentin Labbe
This patch fix the following warning: kernel/module.c: In function 'add_usage_links': kernel/module.c:1653:6: warning: variable 'nowarn' set but not used [-Wunused-but-set-variable] int nowarn; Signed-off-by: Corentin Labbe --- kernel/module.c | 13 + 1 file changed, 9 insertions(

Re: [PATCH] pinctrl: sunxi: constify irq_domain_ops

2017-06-02 Thread Maxime Ripard
On Fri, Jun 02, 2017 at 01:29:58PM +0200, Tobias Klauser wrote: > struct irq_domain_ops is not modified, so it can be made const. > > Suggested-by: Marc Zyngier > Signed-off-by: Tobias Klauser Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineer

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

2017-06-02 Thread Benjamin Herrenschmidt
On Fri, 2017-06-02 at 02:29 -0700, Brendan Higgins wrote: > > That way you avoid the above lock which is racy, slave activity could > > get in there and trigger an error interrupt clobbering cmd_err for > > example no ? Or am I missing something... > > The slave handler does not touch these fields

Re: [PATCH v9 5/5] i2c: aspeed: added slave support for Aspeed I2C driver

2017-06-02 Thread Benjamin Herrenschmidt
On Fri, 2017-06-02 at 01:46 -0700, Brendan Higgins wrote: > Added slave support for Aspeed I2C controller. Supports fourteen busses > present in AST24XX and AST25XX BMC SoCs by Aspeed. (Not an issue for merging) Have you looked at a "mode" by which you implement just enough of the slave support t

Re: [PATCH] HID: asus: Stop underlying hardware on remove

2017-06-02 Thread Jiri Kosina
On Tue, 30 May 2017, Carlo Caione wrote: > From: Carlo Caione > > We are missing a call to hid_hw_stop() on the remove hook. > Among other things this is causing an Oops when (re-)starting GNOME / > upowerd / ... after the module has been already rmmod-ed. > > Signed-off-by: Carlo Caione Appl

Re: [PATCH v2 0/2] Add usb nodes on rk322x SoCs and enable usb on rk3229 evb

2017-06-02 Thread Heiko Stuebner
Am Freitag, 2. Juni 2017, 15:04:23 CEST schrieb William Wu: > This series adds support for usb on rk322x SoCs. > > William Wu (2): > ARM: dts: rockchip: add usb nodes on rk322x > ARM: dts: rockchip: enable usb for rk3229 evb board > > Tested on rk3229 evb board, and depended on the following

Re: [PATCH] clk: sunxi-ng: select SUNXI_CCU_MULT for sun8i-a83t

2017-06-02 Thread Maxime Ripard
On Thu, Jun 01, 2017 at 11:07:46AM +0200, Arnd Bergmann wrote: > On Thu, Jun 1, 2017 at 9:17 AM, Stephen Boyd wrote: > > On 05/23, Arnd Bergmann wrote: > >> On Tue, May 23, 2017 at 9:19 AM, Chen-Yu Tsai wrote: > >> An alternative would be to remove all the dependencies as 'lib-y' > >> in the Make

Re: [PATCH 2/5] powerpc/mm: split store_updates_sp() in two parts in do_page_fault()

2017-06-02 Thread Benjamin Herrenschmidt
On Fri, 2017-06-02 at 11:39 +0200, Christophe LEROY wrote: > The difference between get_user() and __get_user() is that get_user() > performs an access_ok() in addition. > > Doesn't access_ok() only checks whether addr is below TASK_SIZE to > ensure it is a valid user address ? Do you have a me

Re: [PATCH 04/12] fs: ceph: CURRENT_TIME with ktime_get_real_ts()

2017-06-02 Thread Yan, Zheng
On Fri, Jun 2, 2017 at 7:33 PM, Arnd Bergmann wrote: > On Fri, Jun 2, 2017 at 1:18 PM, Yan, Zheng wrote: >> On Fri, Jun 2, 2017 at 6:51 PM, Arnd Bergmann wrote: >>> On Fri, Jun 2, 2017 at 12:10 PM, Yan, Zheng wrote: On Fri, Jun 2, 2017 at 5:45 PM, Arnd Bergmann wrote: > On Fri, Jun 2,

Re: arm64: segfaults on next-20170602 with LTP tests

2017-06-02 Thread Will Deacon
61.256620] pth_str01[8779]: unhandled level 2 translation fault (11) at > 0x0018, esr 0x9206 > [ 1761.256845] pgd = 8000180ba000 > [ 1761.256948] [0018] *pgd=7d2c9003, *pud=48eff003, > *pmd= > [ 1761.257146] CPU: 0 PID: 8779 Comm: pth_str0

[PATCH 3/5] rtc: pcf8563: avoid using rtc->name

2017-06-02 Thread Alexandre Belloni
pcf8563->rtc->name is a copy of pcf8563_driver.driver.name, use it instead Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf8563.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-pcf8563.c b/drivers/rtc/rtc-pcf8563.c index 1227ceab61ee..cea6ea4df970 100

[PATCH 5/5] rtc: remove rtc_device.name

2017-06-02 Thread Alexandre Belloni
rtc->name is only used in messages were it is superfluous. Remove it completely from the structure. Signed-off-by: Alexandre Belloni --- drivers/rtc/class.c | 7 +++ include/linux/rtc.h | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/rtc/class.c b/drivers/rtc/cl

[PATCH 2/5] rtc: dev: remove rtc->name from debug message

2017-06-02 Thread Alexandre Belloni
rtc->name is superfluous here because the rtc is already registered at that point and its name has already been printed. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-dev.c b/drivers/rtc/rtc-dev.c in

[PATCH 4/5] rtc: ds1307: avoid using rtc-name

2017-06-02 Thread Alexandre Belloni
ds1307->rtc->name is a copy of ds1307->client->name, use it instead. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1307.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index 77339b3d50a1..99e893ddd029 100644 --- a

[PATCH 1/5] rtc: sysfs: make name uniform

2017-06-02 Thread Alexandre Belloni
The name sysfs attribute is not useful in its current form because of all the drivers: - 3 are using the feature correctly - 2 are clearly misusing it - 60 are using driver.name, either directly or indirectly - 46 are using pdev->name - 8 are using client->name - 31 are using a variation of d

Re: Ftrace Data Export

2017-06-02 Thread Chunyan Zhang
On 2 June 2017 at 18:24, Felipe Balbi wrote: > > Hi, > > (sorry for the long delay, just back from vacations) > > Chunyan Zhang writes: >> Hi Felipe, >> >> On 17 May 2017 at 16:08, Felipe Balbi wrote: >>> >>> Hi Chunyan, >>> >>> When you wrote your patchset to provide ftrace exports, why did you

[GIT PULL] livepatching fix for 4.12

2017-06-02 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching.git for-linus to receive - Kconfig dependency fix for livepatching infrastructure from Miroslav Benes Miroslav Benes (1): livepat

[GIT PULL] HID fixes for 4.12

2017-06-02 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-linus to receive HID bugfixes for 4.12 = - corner-case oops fixes for Asus and Wacom drivers from Carlo Caione and Jason Gerecke - power management fix (reported on SIS0817 touchscreen) for i2c-hid

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

2017-06-02 Thread David Gstir
Certain cipher modes like CTS expect the IV (req->info) of ablkcipher_request (or equivalently req->iv of skcipher_request) to contain the last ciphertext block when the {en,de}crypt operation is done. This is currently not the case for the CAAM driver which in turn breaks e.g. cts(cbc(aes)) when t

[RFC PATCH 2/2] crypto: caam - fix k*alloc if called from own cipher callback

2017-06-02 Thread David Gstir
There are cases (e.g. the cts mode) where a cipher can be called again from its own callback. In our case this callback is executed from within a tasklet in the jobring, we must not sleep when allocating memory. This patch detects such cases by using in_interrupt() to properly set the k*alloc flag

[RFC PATCH 0/2] crypto: caam - fix cts(cbc(aes)) with CAAM driver

2017-06-02 Thread David Gstir
Hi! While testing fscrypt's filename encryption, I noticed that the implementation of cts(cbc(aes)) is broken when the CAAM hardware crypto driver is enabled. Some digging showed that the refactoring of crypto/cts.c in v4.8 (commit 0605c41cc53ca) exposed some problems with CAAM's aes-cbc implemen

Re: [PATCH v2 5/5] ACPI: Switch to use generic guid_t in acpi_evaluate_dsm()

2017-06-02 Thread Adrian Hunter
On 31/05/17 22:41, Andy Shevchenko wrote: > acpi_evaluate_dsm() and friends take a pointer to a raw buffer of 16 > bytes. Instead we convert them to use guid_t type. At the same time we > convert current users. > > acpi_str_to_uuid() becomes useless after the conversion and it's safe to > get rid

Re: [PATCH 2/5] powerpc/mm: split store_updates_sp() in two parts in do_page_fault()

2017-06-02 Thread Christophe LEROY
Le 02/06/2017 à 14:11, Benjamin Herrenschmidt a écrit : On Fri, 2017-06-02 at 11:39 +0200, Christophe LEROY wrote: The difference between get_user() and __get_user() is that get_user() performs an access_ok() in addition. Doesn't access_ok() only checks whether addr is below TASK_SIZE to ensu

Re: arm64: segfaults on next-20170602 with LTP tests

2017-06-02 Thread Yury Norov
On Fri, Jun 02, 2017 at 01:19:18PM +0100, Will Deacon wrote: > Hi Yury, > > [adding Steve and Punit] > > On Fri, Jun 02, 2017 at 02:11:51PM +0300, Yury Norov wrote: > > I see that latest and yesterday's linux-next segfaults with tests pth_str01, > > pth_str03, rwtest04. Rwtest04 hangs sometimes.

[PATCH v3 2/6] arm64: dts: lg1313: DT fix s/#interrupts-cells/#interrupt-cells/

2017-06-02 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven Acked-by: Chanho Min --- v3: - Add Acked-by, v2: - New. --- arch/arm64/boot/dts/lg/lg1313.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/lg/lg1313.dtsi b/arch/arm64/boot/dts/lg/lg1313.dtsi index e703e1149c75708

[PATCH v3 4/6] powerpc: dts: acadia: DT fix s/#interrupts-parent/#interrupt-parent/

2017-06-02 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven Acked-by: Rob Herring --- v3: - No changes, v2: - Add Acked-by. --- arch/powerpc/boot/dts/acadia.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/dts/acadia.dts b/arch/powerpc/boot/dts/acadia.dts index 57291f61ffe702

[PATCH v3 5/6] dt-bindings: display: amlogic: DT fix s/resets-names/reset-names/

2017-06-02 Thread Geert Uytterhoeven
Fixes: 8cceda5349377e30 ("dt-bindings: Add bindings for the Amlogic Meson dw-hdmi extension") Signed-off-by: Geert Uytterhoeven --- v3: - New. --- Documentation/devicetree/bindings/display/amlogic,meson-dw-hdmi.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentat

[PATCH v3 0/6] DT: Fix spelling of standard properties

2017-06-02 Thread Geert Uytterhoeven
Hi all, This patch series fixes misspellings of various standard DT properties in DT binding documentation, DTS files, and examples. While most of these are harmless, some of them may cause hard-to-debug failures. Changes compared to v3: - Drop patches that have been applied already,

[PATCH v3 3/6] dt: booting-without-of: DT fix s/#interrupt-cell/#interrupt-cells/

2017-06-02 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven Acked-by: Rob Herring --- v3: - No changes, v2: - Add Acked-by. --- Documentation/devicetree/booting-without-of.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/booting-without-of.txt b/Documentation/devicetr

[PATCH v3 6/6] dt-bindings: net: btusb: DT fix s/interrupt-name/interrupt-names/

2017-06-02 Thread Geert Uytterhoeven
Fixes: fd913ef7ce619467 ("Bluetooth: btusb: Add out-of-band wakeup support") Signed-off-by: Geert Uytterhoeven --- v3: - New. --- Documentation/devicetree/bindings/net/btusb.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/btusb.txt

[PATCH v3 1/6] arm64: dts: lg1312: DT fix s/#interrupts-cells/#interrupt-cells/

2017-06-02 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven Acked-by: Rob Herring Acked-by: Chanho Min --- v3: - Add Acked-by, v2: - Add Acked-by, - Rebased. --- arch/arm64/boot/dts/lg/lg1312.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/lg/lg1312.dtsi b/arch/arm64/

Re: [PATCH v2 27/28] ext4: xattr inode deduplication

2017-06-02 Thread Tahsin Erdogan
> Hmm... normally we'd supply sbi->s_csum_seed as the second argument so > that the metadata checksum value also has the fs uuid stamped into it. I have thought about using sbi->s_csum_seed and was a little hesitant because it involves adding more complexity to e2fsprogs to handle cases like chang

Re: [PATCH 42/58] ARM: dts: at91: vinco: use TCB2 as clocksource

2017-06-02 Thread Gregory CLEMENT
Hi Alexandre, On mar., mai 30 2017, Alexandre Belloni wrote: > As TCB2 doesn't have any output pins, use it as a clocksource. > In case you have not already applied it: Acked-by: Gregory CLEMENT Thanks, Gregory > Cc: Gregory CLEMENT > Signed-off-by: Alexandre Belloni > --- > arch/ar

[PATCH] tty: handle the case where we cannot restore a line discipline

2017-06-02 Thread Alan Cox
Historically the N_TTY driver could never fail but this has become broken over time. Rather than trying to rewrite half the ldisc layer to fix the breakage introduce a second level of fallback with an N_NULL ldisc which cannot fail, and thus restore the guarantees required by the ldisc layer. We s

[PATCH] kbuild: switch to thin archives

2017-06-02 Thread Nicholas Piggin
Switch from incremental build to thin archives for packaging built-in.o. binutils version must be bumped to 2.20. Proposed patch for 4.13. Signed-off-by: Nicholas Piggin --- Documentation/process/changes.rst | 9 - Makefile | 3 +++ arch/Kconfig

Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp

2017-06-02 Thread Bastien Nocera
On Fri, 2017-06-02 at 09:29 +0200, Benjamin Tissoires wrote: > > Bastien, is is possible to have a simple udev rule that tells upower > to > ignore the battery device if builtin_power_supply is there? > That way we can tell people running old upower to use this to be sure > to > ignore the kernel

[PATCH v7 1/3] dt-bindings:phy:Add DT bindings documentation for NS2 USB DRD phy

2017-06-02 Thread Raviteja Garimella
This patch adds documentation for NS2 DRD Phy driver DT bindings Signed-off-by: Raviteja Garimella Acked-by: Rob Herring --- .../devicetree/bindings/phy/brcm,ns2-drd-phy.txt | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy

[PATCH v7 2/3] phy:phy-bcm-ns2-usbdrd:Broadcom USB DRD Phy driver for Northstar2

2017-06-02 Thread Raviteja Garimella
This is driver for USB DRD Phy used in Broadcom's Northstar2 SoC. The phy can be configured to be in Device mode or Host mode based on the type of cable connected to the port. The driver registers to extcon framework to get appropriate connect events for Host/Device cables connect/disconnect state

[PATCH v7 0/3] Support for USB DRD Phy driver for NS2

2017-06-02 Thread Raviteja Garimella
Changes in v7: = Cleaned up unused variables in phy private data structure that's missed out in v6. Setting of phy mode to device/host is removed from phy power on. routine. Changes in v6: = Removed spin locks which are not required as the references to phy_ops in the same

[PATCH v7 3/3] arm64: dts: NS2: Add USB DRD PHY device tree node

2017-06-02 Thread Raviteja Garimella
This patch adds device tree node for USB Dual Role Device Phy for Broadcom's Northstar2 SoC. Signed-off-by: Raviteja Garimella --- arch/arm64/boot/dts/broadcom/ns2.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/ns2.dtsi b/arch/arm64/boot/dt

Re: hexagon: Use raw_copy_to_user

2017-06-02 Thread Guenter Roeck
ping On Tue, May 02, 2017 at 08:52:48PM -0700, Guenter Roeck wrote: > Commit ac4691fac8ad ("hexagon: switch to RAW_COPY_USER") replaced > __copy_to_user_hexagon() with raw_copy_to_user(), but did not catch > all callers, resulting in the following build error. > > arch/hexagon/mm/uaccess.c:

Support for RGB/YUV 10, 12 BPC(bits per color/component) image data formats in kernel

2017-06-02 Thread Ajay kumar
Hi all, I have tried searching for RGB/YUV 10, 12 BPC formats in videodev2.h, media-bus-format.h and drm_fourcc.h I could only find RGB 10BPC support in drm_fourcc.h. I guess not much support is present for formats with (BPC > 8) in the kernel. Are there any plans to add fourcc defines for such f

Re: [PATCH v2 linux-next 3/3] spi: imx: Add support for SPI Slave mode

2017-06-02 Thread Jiada Wang
Hi Sascha On 05/31/2017 05:10 AM, Sascha Hauer wrote: > On Wed, May 31, 2017 at 02:19:58AM -0700, jiada_w...@mentor.com wrote: >> From: Jiada Wang >> >> Previously i.MX SPI controller only works in Master mode. >> This patch adds support to i.MX51, i.MX53 and i.MX6 ECSPI >> controller to work als

[PATCH] regmap: make LZO cache optional

2017-06-02 Thread Jonas Gorski
Commit 2cbbb579bcbe3 ("regmap: Add the LZO cache support") added support for LZO compression in regcache, but there were never any users added afterwards. Since LZO support itself has its own size, it currently is rather a deoptimization. So make it optional by introducing a symbol that can be sel

Re: [PATCH] virtio_net: lower limit on buffer size

2017-06-02 Thread Mikulas Patocka
On Fri, 2 Jun 2017, Michael S. Tsirkin wrote: > commit d85b758f72b0 "virtio_net: fix support for small rings" > was supposed to increase the buffer size for small rings > but had an unintentional side effect of decreasing > it for large rings. This seems to break some setups - > it's not yet cle

Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with libpthread.a

2017-06-02 Thread Thomas Meyer
Am Freitag, den 02.06.2017, 10:30 +0200 schrieb Richard Weinberger: > Thomas, > > Am 02.06.2017 um 10:04 schrieb Thomas Meyer: > > Am Donnerstag, den 01.06.2017, 22:49 -0700 schrieb Florian > > Fainelli: > > I see this in the kernel log: > > > > [0.00] [ cut here ]

Re: [PATCH RFC 0/2] KVM: s390: avoid having to enable vm.alloc_pgste

2017-06-02 Thread Christian Borntraeger
On 06/02/2017 12:53 PM, Martin Schwidefsky wrote: > On Fri, 2 Jun 2017 12:19:19 +0200 > Christian Borntraeger wrote: > >> On 06/02/2017 11:46 AM, Martin Schwidefsky wrote: >>> On Fri, 2 Jun 2017 09:02:10 +0200 >>> Heiko Carstens wrote: >>> On Thu, Jun 01, 2017 at 12:46:51PM +0200, Martin

Re: hwmon: pwm-fan: switch to new atomic PWM API

2017-06-02 Thread Guenter Roeck
On Mon, Apr 24, 2017 at 03:13:17PM +0200, Bartlomiej Zolnierkiewicz wrote: > Switch pwm-fan driver to new atomic PWM API. > > Signed-off-by: Bartlomiej Zolnierkiewicz > --- > Depends on "[PATCH v2 0/3] pwm: pwm-samsung: fix suspend/resume support" > patchset (https://www.spinics.net/lists/kernel/

Re: [PATCH 08/10] KVM: arm/arm64: vgic: Handle unshared mapped interrupts

2017-06-02 Thread Christoffer Dall
On Wed, May 24, 2017 at 10:13:21PM +0200, Eric Auger wrote: > Virtual interrupts directly mapped to physical interrupts require > some special care. Their pending and active state must be observed > at distributor level and not in the list register. This is not entirely true. There's a dependency

Kernel 3.18.55 compilation fails (missing function declaration)

2017-06-02 Thread Emmanuel Florac
Hi, kernel 3.18.55 compilation fails with this error: kernel/fork.c: In function ‘dup_task_struct’: kernel/fork.c:341:2: error: implicit declaration of function ‘get_random_long’ [-Werror=implicit-function-declaration] tsk->stack_canary = get_random_long(); Corrected by adding the declaration to

Re: [PATCH v4 0/3] clk: rockchip: support clk controller for RK3128 SoC

2017-06-02 Thread Heiko Stuebner
Hi Elaine, Am Freitag, 2. Juni 2017, 09:47:22 CEST schrieb Elaine Zhang: > The driver and clk ID\SRST ID it's also applies to the RK3126 SoC. applied all 3 for 4.13 (taking Rob's Ack from v1 for the first 2 patches) Thanks Heiko

Re: [LTP] [lkp-robot] [KEYS] bdf7c0f8bf: ltp.add_key02.fail

2017-06-02 Thread David Howells
Eric Biggers wrote: > I'll plan to send a patch. Also, it looks like the testing that LTP does of > add_key() is very sparse, so I'll try to extend it a bit. There's more testing in the testsuite that's with the keyutils package. David

Re: [PATCH 0/3] staging:typec: Fix 3 defect of incorrect type

2017-06-02 Thread Guenter Roeck
On 06/01/2017 12:20 AM, ? ? wrote: From: Pan Li Pan Li (3): Fix one defect of incorrect type in argument. Fix one defect of incorrect type assignment. Fix one defect of incorrect type assignment. drivers/staging/typec/tcpci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

Re: [PATCH V2] ARM: cpuidle: Support asymmetric idle definition

2017-06-02 Thread Sudeep Holla
On 02/06/17 11:40, Daniel Lezcano wrote: > On 02/06/2017 12:14, Sudeep Holla wrote: >> >> >> On 02/06/17 11:06, Daniel Lezcano wrote: >>> On 02/06/2017 11:39, Sudeep Holla wrote: On 02/06/17 10:25, Daniel Lezcano wrote: > On 02/06/2017 11:20, Sudeep Holla wrote: >> >> >

Re: [PATCH v3 3/8] nvmet: implement namespace identify descriptor list

2017-06-02 Thread Sagi Grimberg
switch (type) { case NVME_NQN_NVME: diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h index cfc5c7fb0ab7..4c6cb5ea1186 100644 --- a/drivers/nvme/target/nvmet.h +++ b/drivers/nvme/target/nvmet.h @@ -46,6 +46,7 @@ struct nvmet_ns { u32

Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp

2017-06-02 Thread Benjamin Tissoires
On Jun 02 2017 or thereabouts, Bastien Nocera wrote: > On Fri, 2017-06-02 at 09:29 +0200, Benjamin Tissoires wrote: > > > > > Bastien, is is possible to have a simple udev rule that tells upower > > to > > ignore the battery device if builtin_power_supply is there? > > That way we can tell people

Re: [PATCH] ahci: qoriq: add ls1088a platforms support

2017-06-02 Thread Tejun Heo
On Fri, Jun 02, 2017 at 03:23:03PM +0800, Yuantian Tang wrote: > Ls1088a is new introduced arm-based soc with sata support with > following features: > > * Complies with the serial ATA 3.0 specification > and the AHCI 1.3.1 specification > * Contains a high-speed descriptor-based DMA controller

Re: [PATCH v2 0/7] Improve ap806 clk support on Marvell Armada 7K/8K

2017-06-02 Thread Gregory CLEMENT
Hi Michael, On jeu., juin 01 2017, Michael Turquette wrote: > Hi Gregory, > > Quoting Gregory CLEMENT (2017-05-31 23:07:21) >> Hi, >> >> This series modifies the device tree binding of the clock of the AP806 >> part that we find in the Marvell Armada 7K/8K SoCs. >> >> As for the previsous se

[GIT PULL] sound fixes for 4.12-rc4

2017-06-02 Thread Takashi Iwai
Linus, please pull sound fixes for v4.12-rc4 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.12-rc4 The topmost commit is d2c3b14e1f0dcebdb695617c0c1342a36b914a47 sound fixes for 4.12-rc4 This

Re: [PATCH net] net: dsa: Move dsa_switch_{suspend,resume} out of legacy.c

2017-06-02 Thread Andrew Lunn
On Thu, Jun 01, 2017 at 07:53:04PM -0700, Florian Fainelli wrote: > dsa_switch_suspend() and dsa_switch_resume() are functions that belong in > net/dsa/dsa.c and are not part of the legacy platform support code. > > Fixes: a6a71f19fe5e ("net: dsa: isolate legacy code") > Signed-off-by: Florian Fai

[PATCH 13/13] efi: arm: enable DMI/SMBIOS

2017-06-02 Thread Ard Biesheuvel
Wire up the existing arm64 support for SMBIOS tables (aka DMI) for ARM as well, by moving the arm64 init code to drivers/firmware/efi/arm-runtime.c (which is shared between ARM and arm64), and adding a asm/dmi.h header to ARM that defines the mapping routines for the firmware tables. This allows u

[PATCH 06/13] efi/capsule-loader: Use a cached copy of the capsule header

2017-06-02 Thread Ard Biesheuvel
Instead of kmapping the capsule data twice, copy the capsule header into the capsule info struct we keep locally. This is an improvement by itself, but will also enable handling of non-standard header formats more easily. Reviewed-by: Matt Fleming Signed-off-by: Ard Biesheuvel --- drivers/firmw

[PATCH 04/13] efi/capsule: Clean up pr_err/info messages

2017-06-02 Thread Ard Biesheuvel
From: Jan Kiszka Avoid __func__, improve the information provided by some of the messages. Signed-off-by: Jan Kiszka Reviewed-by: Matt Fleming Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/capsule-loader.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) d

[PATCH 08/13] efi/capsule-loader: Redirect calls to efi_capsule_setup_info via weak alias

2017-06-02 Thread Ard Biesheuvel
To allow platform specific code to hook into the capsule loading routines, indirect calls to efi_capsule_setup_info() via a weak alias of __efi_capsule_setup_info(), allowing platforms to redefine the former but still use the latter. Cc: Matt Fleming Tested-by: "Bryan O'Donoghue" Signed-off-by:

[PATCH 12/13] x86/efi: Add EFI_PGT_DUMP support for x86_32 and kexec

2017-06-02 Thread Ard Biesheuvel
From: Sai Praneeth EFI_PGT_DUMP, as the name suggests dumps efi page tables to dmesg during kernel boot. This feature is very useful while debugging page faults/null pointer dereferences to efi related addresses. Presently, this feature is limited only to x86_64, so let's extend it to other efi c

[PATCH 07/13] efi/capsule: Remove NULL test on kmap()

2017-06-02 Thread Ard Biesheuvel
From: Fabian Frederick kmap() can't fail. Signed-off-by: Fabian Frederick Cc: Ard Biesheuvel Cc: Kweh Hock Leong Signed-off-by: Matt Fleming Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/capsule-loader.c | 4 drivers/firmware/efi/capsule.c| 4 2 files changed, 8

[PATCH 11/13] efi/efi_test: Use memdup_user() helper

2017-06-02 Thread Ard Biesheuvel
From: Geliang Tang Use memdup_user() helper instead of open-coding to simplify the code. Signed-off-by: Geliang Tang Acked-by: Ivan Hu Cc: Ard Biesheuvel Signed-off-by: Matt Fleming Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/test/efi_test.c | 11 +++ 1 file changed, 3 i

Re: [PATCH v3 2/5] crypto : stm32 - Add STM32F4 CRC32 support

2017-06-02 Thread Cosar Dindar
Hi Fabien, Thanks for your review. On Mon, May 29, 2017 at 07:56:48AM +, Fabien DESSENNE wrote: > Hi Cosar, > > Thank you for the patch > > On 22/05/17 16:34, Cosar Dindar wrote: > > This patch adds CRC (CRC32 Crypto) support for STM32F4 series. > > > > As an hardware limitation polynomial

<    1   2   3   4   5   6   7   8   9   >