Re: INFO: task hung in blk_queue_enter

2018-05-16 Thread Tetsuo Handa
Tetsuo Handa wrote: > I couldn't check whether freeze_depth in blk_freeze_queue_start() was 1, > but presumably q->mq_freeze_depth > 0 because syz-executor7(PID=5010) is > stuck at wait_event() in blk_queue_enter(). > > Since flags == 0, preempt == false. Since stuck at wait_event(), success == >

[PATCH] pci: cadence: Host and EP driver updates for PHY and power management

2018-05-16 Thread Alan Douglas
From: Alan Douglas This patch is based on next branch in Bjorn Helgaas' linux-pci git repository. Allow optional list of generic PHYs to be provided via DTS for cadence RP and EP drivers. Added power management ops which will enable/disable these PHYs. Corrected parameters for cdns_pcie_write

Re: [PATCH v16 8/9] PCI/DPC: Unify and plumb error handling into DPC

2018-05-16 Thread Bjorn Helgaas
On Wed, May 16, 2018 at 05:45:58PM +0530, p...@codeaurora.org wrote: > On 2018-05-16 16:22, Bjorn Helgaas wrote: > > On Wed, May 16, 2018 at 01:46:25PM +0530, p...@codeaurora.org wrote: > > > On 2018-05-16 05:26, Bjorn Helgaas wrote: > > > > On Fri, May 11, 2018 at 05:22:08PM +0530, p...@codeaurora

Re: [PATCH V1 06/19] perf tools: Fix kernel_start for PTI on x86

2018-05-16 Thread Arnaldo Carvalho de Melo
Em Tue, May 15, 2018 at 03:43:20PM +0300, Adrian Hunter escreveu: > On x86_64, PTI entry trampolines are less than the start of kernel text, > but still above 2^63. So leave kernel_start = 1ULL << 63 for x86_64. > > Signed-off-by: Adrian Hunter > --- > tools/perf/util/machine.c | 16

Re: [PATCH 14/14] mm: turn on vm_fault_t type checking

2018-05-16 Thread Christoph Hellwig
On Wed, May 16, 2018 at 04:28:13AM -0700, Matthew Wilcox wrote: > On Wed, May 16, 2018 at 07:43:48AM +0200, Christoph Hellwig wrote: > > Switch vm_fault_t to point to an unsigned int with __bіtwise annotations. > > This both catches any old ->fault or ->page_mkwrite instance with plain > > compiler

Re: vm_fault_t conversion, for real

2018-05-16 Thread Christoph Hellwig
On Wed, May 16, 2018 at 04:23:47AM -0700, Matthew Wilcox wrote: > On Wed, May 16, 2018 at 07:43:34AM +0200, Christoph Hellwig wrote: > > this series tries to actually turn vm_fault_t into a type that can be > > typechecked and checks the fallout instead of sprinkling random > > annotations without

Re: [PATCH v1 3/3] serial: 8250_port: Disable DMA operations for kernel console

2018-05-16 Thread Andy Shevchenko
On Wed, 2018-05-16 at 12:55 +0200, Sebastian Andrzej Siewior wrote: > On 2018-05-15 21:34:09 [+0300], Andy Shevchenko wrote: Thanks for review, my answers below. > > It will be too tricky and error prone to allow DMA operations on > > kernel > > console. > > Why is it tricky and error prone? I h

Re: [PATCH v5 05/13] s390: vfio-ap: register matrix device with VFIO mdev framework

2018-05-16 Thread Tony Krowiak
On 05/16/2018 06:42 AM, Cornelia Huck wrote: On Mon, 7 May 2018 11:11:44 -0400 Tony Krowiak wrote: Registers the matrix device created by the VFIO AP device driver with the VFIO mediated device framework. Registering the matrix device will create the sysfs structures needed to create mediated

Re: [RFC v4 4/5] virtio_ring: add event idx support in packed ring

2018-05-16 Thread Tiwei Bie
On Wed, May 16, 2018 at 08:17:21PM +0800, Jason Wang wrote: > On 2018年05月16日 16:37, Tiwei Bie wrote: [...] > > @@ -1160,15 +1186,27 @@ static void virtqueue_disable_cb_packed(struct > > virtqueue *_vq) > > static unsigned virtqueue_enable_cb_prepare_packed(struct virtqueue *_vq) > > { > >

Re: [PATCH 10/14] vgem: separate errno from VM_FAULT_* values

2018-05-16 Thread Christoph Hellwig
On Wed, May 16, 2018 at 11:53:03AM +0200, Daniel Vetter wrote: > Reviewed-by: Daniel Vetter > > Want me to merge this through drm-misc or plan to pick it up yourself? For now I just want a honest discussion if people really actually want the vm_fault_t change with the whole picture in place.

Re: [PATCH V1 00/19] perf tools and x86 PTI entry trampolines

2018-05-16 Thread Jiri Olsa
On Tue, May 15, 2018 at 03:43:14PM +0300, Adrian Hunter wrote: SNIP > > # Overhead CommandShared Object Symbol > # . .. > # > 41.91% uname_x_n [kernel.vmlinux] [k] syscall_return_via_sysret > 24.70% unam

[PATCH V6 03/12] ARM: dts: ipq4019: Change the max opp frequency

2018-05-16 Thread Sricharan R
The max opp frequency is 716MHZ. So update that. Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi index 154

Re: [PATCH v2 12/14] ftrace/selftest: Fix reset_trigger() to handle triggers with filters

2018-05-16 Thread Masami Hiramatsu
On Mon, 14 May 2018 16:58:57 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > The reset_trigger() function breaks up the command by a space ' '. This is > useful to ignore the '[active]' word for triggers when removing them. But if > the trigger has a filter (ie. "if prio < 10"

[PATCH V6 05/12] ARM: dts: ipq4019: Add ipq4019-ap.dk04.1-c1 board file

2018-05-16 Thread Sricharan R
Reviewed-by: Abhishek Sahu Tested-by: Varadarajan Narayanan Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts | 19 +++ 2 files changed, 20 insertions(+) create mode 100644 arch/arm/boot/dts/qc

[PATCH V6 08/12] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c1 board file

2018-05-16 Thread Sricharan R
Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts | 64 + 2 files changed, 65 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts

[PATCH V6 07/12] ARM: dts: ipq4019: Add ipq4019-ap.dk07.1 common data

2018-05-16 Thread Sricharan R
Add the common data for all dk07 based boards. Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi diff --git

Re: [PATCH] pinctrl: mvebu: use correct MPP sel value for dev pins

2018-05-16 Thread Linus Walleij
On Mon, May 7, 2018 at 4:25 AM, Chris Packham wrote: > The "dev" function is selected with the value 0x4 not 0x01. > > Fixes: commit d7ae8f8dee7f ("pinctrl: mvebu: pinctrl driver for 98DX3236 SoC") > Signed-off-by: Chris Packham Patch applied. Does it need to go into fixes? Stable? Yours, Lin

Re: [PATCH v16 8/9] PCI/DPC: Unify and plumb error handling into DPC

2018-05-16 Thread poza
On 2018-05-16 16:22, Bjorn Helgaas wrote: On Wed, May 16, 2018 at 01:46:25PM +0530, p...@codeaurora.org wrote: On 2018-05-16 05:26, Bjorn Helgaas wrote: > On Fri, May 11, 2018 at 05:22:08PM +0530, p...@codeaurora.org wrote: > > On 2018-05-11 16:13, Oza Pawandeep wrote: > > > DPC driver implement

[PATCH V6 09/12] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c2 board file

2018-05-16 Thread Sricharan R
Reviewed-by: Abhishek Sahu Acked-by: Bjorn Andersson Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c2.dts | 25 + 2 files changed, 26 insertions(+) create mode 100644 arch/arm/boot/dts/qco

Re: [PATCH v2 11/14] ftrace/selftest: Have the reset_trigger code be a bit more careful

2018-05-16 Thread Masami Hiramatsu
On Mon, 14 May 2018 16:58:56 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > The trigger code is picky in how it can be disabled as there may be > dependencies between different events and synthetic events. Change the order > on how triggers are reset. > > 1) Reset triggers

RE: [RFC] platform: detach from PM domains on shutdown

2018-05-16 Thread Peng Fan
Hi Uffe, > -Original Message- > From: Ulf Hansson [mailto:ulf.hans...@linaro.org] > Sent: 2018年5月16日 17:53 > To: Peng Fan > Cc: Rafael J. Wysocki ; Fabio Estevam > ; Greg Kroah-Hartman > ; Linux Kernel Mailing List > ; Linux PM ; > dl-linux-imx > Subject: Re: [RFC] platform: detach from

[PATCH V6 11/12] ARM: dts: ipq8074: Add pcie nodes

2018-05-16 Thread Sricharan R
The driver/phy support for ipq8074 is available now. So enabling the nodes in DT. Reviewed-by: Abhishek Sahu Acked-by: Bjorn Andersson Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 157 +- 1 file changed, 156 insertions(+), 1 deletion(-)

Re: [RESEND PATCH] pinctrl: qcom: fix wrong pull status display for no_keeper SoC

2018-05-16 Thread Linus Walleij
On Sat, May 5, 2018 at 1:57 AM, Bjorn Andersson wrote: > From: Clément Péron > > DebugFS strings about pin pull status for no_keeper SoC are wrong > > Fix this by adding a different string array for no_keeper SoC > > Signed-off-by: Clément Péron > Signed-off-by: Bjorn Andersson > --- > > Hi Li

[PATCH V6 12/12] ARM: dts: ipq8074: Enable few peripherals for hk01 board

2018-05-16 Thread Sricharan R
Reviewed-by: Abhishek Sahu Acked-by: Bjorn Andersson Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 62 ++- 1 file changed, 52 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts b/arch/arm64/boot/dts/qc

Re: [RFC v4 3/5] virtio_ring: add packed ring support

2018-05-16 Thread Jason Wang
On 2018年05月16日 20:39, Tiwei Bie wrote: On Wed, May 16, 2018 at 07:50:16PM +0800, Jason Wang wrote: On 2018年05月16日 16:37, Tiwei Bie wrote: [...] struct vring_virtqueue { @@ -116,6 +117,9 @@ struct vring_virtqueue { /* Last written value to driver->flags in

Re: [PATCH] gpio: pca953x: Clear irq trigger type on irq shutdown

2018-05-16 Thread Linus Walleij
On Fri, May 4, 2018 at 6:53 PM, Grigoryev Denis wrote: > The driver stores the result of irq_set_type() in the internal variables > irq_trig_raise and irq_trig_fall, which later are used to determine > the GPIOs that must be re-configured as input. These variables retain their > value between gpi

[PATCH V6 10/12] ARM: dts: ipq8074: Add peripheral nodes

2018-05-16 Thread Sricharan R
Add serial, i2c, bam, spi, qpic peripheral nodes. While here, fix the PMU node's irq trigger to avoid the boot warnings from GIC. Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 156 +- 1 file changed, 155 insert

[PATCH V6 06/12] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk04.1-c3 board file

2018-05-16 Thread Sricharan R
Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dts | 9 + 2 files changed, 10 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dts diff --git a/arch

[PATCH V6 04/12] ARM: dts: ipq4019: Add ipq4019-ap.dk04.dtsi

2018-05-16 Thread Sricharan R
Add the common parts for the dk04 boards. Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi | 111 ++ arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- 2 files changed, 112 insertions(+), 1 deletion(-) create m

[PATCH V6 02/12] ARM: dts: ipq4019: Add a few peripheral nodes

2018-05-16 Thread Sricharan R
Now with the driver updates for some peripherals being there, add i2c, spi, pcie, bam, qpic-nand, scm nodes to enhance the available peripheral support. Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 2 +- arch/arm/boot/dts/qcom-ipq40

[PATCH V6 00/12] ARM: dts: ipq: updates to enable a few peripherals

2018-05-16 Thread Sricharan R
All the patches have been tested on ipq4019 dk01, 04, 07 and ipq8074 hk01 boards for spi, bam, qup, qpic, spi-nor, serial, pci. [V6] * Fixed Bjorn's comments, added his acks that he gave, added Varada's acks * Rebased on top of Andy's for-next branch. [v5] * Fixed a minor comment that

Re: [PATCH v5 05/13] s390: vfio-ap: register matrix device with VFIO mdev framework

2018-05-16 Thread Tony Krowiak
On 05/16/2018 06:42 AM, Cornelia Huck wrote: On Mon, 7 May 2018 11:11:44 -0400 Tony Krowiak wrote: Registers the matrix device created by the VFIO AP device driver with the VFIO mediated device framework. Registering the matrix device will create the sysfs structures needed to create mediated

[PATCH V6 01/12] ARM: dts: ipq4019: Add a default chosen node

2018-05-16 Thread Sricharan R
Add a 'chosen' node to select the serial console. This is needed when bootloaders do not pass the 'console=' bootargs. Acked-by: Bjorn Andersson Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 8 arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- 2 fil

[RFC PATCH] iscsit_wait_for_tag() can be static

2018-05-16 Thread kbuild test robot
Fixes: 5aff7a710f13 ("Convert target drivers to use sbitmap") Signed-off-by: Fengguang Wu --- iscsi_target_util.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/iscsi/iscsi_target_util.c b/drivers/target/iscsi/iscsi_target_util.c index 28bcffa..e147aef 100

Re: [PATCH 1/2] Convert target drivers to use sbitmap

2018-05-16 Thread kbuild test robot
Hi Matthew, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.17-rc5 next-20180516] [cannot apply to target/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url

Re: [PATCH v9 2/2] blk-mq: Rework blk-mq timeout handling again

2018-05-16 Thread Christoph Hellwig
I've been looking at this carefully, and I don't think we need cmpxchg64 at all, and we don't need anywhere near as many cmpxchg operations either. The only reason to include the deadline in the atomic operation is the blk_abort_request case, as the blk_mq_add_timer never modifies the deadline of

Re: [PATCH 12/14] net: sched: retry action check-insert on concurrent modification

2018-05-16 Thread Vlad Buslov
On Wed 16 May 2018 at 12:26, Jiri Pirko wrote: > Wed, May 16, 2018 at 01:55:06PM CEST, vla...@mellanox.com wrote: >> >>On Wed 16 May 2018 at 09:59, Jiri Pirko wrote: >>> Mon, May 14, 2018 at 04:27:13PM CEST, vla...@mellanox.com wrote: Retry check-insert sequence in action init functions if a

[PATCH net] tuntap: fix use after free during release

2018-05-16 Thread Jason Wang
After commit b196d88aba8a ("tun: fix use after free for ptr_ring") we need clean up tx ring during release(). But unfortunately, it tries to do the cleanup blindly after socket were destroyed which will lead another use-after-free. Fix this by doing the cleanup before dropping the last reference of

Re: [RFC v4 3/5] virtio_ring: add packed ring support

2018-05-16 Thread Tiwei Bie
On Wed, May 16, 2018 at 07:50:16PM +0800, Jason Wang wrote: > On 2018年05月16日 16:37, Tiwei Bie wrote: [...] > > struct vring_virtqueue { > > @@ -116,6 +117,9 @@ struct vring_virtqueue { > > /* Last written value to driver->flags in > > * guest byte order. *

Re: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-16 Thread Paul Menzel
Dear Heikki, On 05/16/18 13:58, Heikki Krogerus wrote: On Wed, May 16, 2018 at 10:02:26AM +0200, Greg KH wrote: On Tue, May 15, 2018 at 06:47:37PM +0200, Paul Menzel wrote: On 05/15/18 18:00, Greg KH wrote: On Tue, May 15, 2018 at 04:34:03PM +0200, Paul Menzel wrote: Linux 4.17-rc5 sho

[PATCH] PCI: Clean up resource allocation in devm_of_pci_get_host_bridge_resources()

2018-05-16 Thread Jan Kiszka
Instead of first allocating and then freeing memory for struct resource in case we cannot parse a PCI resource from the device tree, work against a local struct and kmemdup it when we decide to go with it. Suggested-by: Andy Shevchenko Signed-off-by: Jan Kiszka --- drivers/pci/of.c | 14 ++-

INTMS/INTMC not being used in NVME interrupt handling

2018-05-16 Thread Bharat Kumar Gogada
Hi, As per NVME specification: 7.5.1.1 Host Software Interrupt Handling It is recommended that host software utilize the Interrupt Mask Set and Interrupt Mask Clear (INTMS/INTMC) registers to efficiently handle interrupts when configured to use pin based or MSI messages. In kernel 4.14, drive

[RFC V4 PATCH 4/8] vhost_net: do not explicitly manipulate vhost_used_elem

2018-05-16 Thread Jason Wang
Two helpers of setting/getting used len were introduced to avoid explicitly manipulating vhost_used_elem in zerocopy code. This will be used to hide used_elem internals and simplify packed ring implementation. Signed-off-by: Jason Wang --- drivers/vhost/net.c | 11 +-- drivers/vhost/vh

[RFC V4 PATCH 6/8] virtio: introduce packed ring defines

2018-05-16 Thread Jason Wang
Signed-off-by: Jason Wang --- include/uapi/linux/virtio_config.h | 9 + include/uapi/linux/virtio_ring.h | 13 + 2 files changed, 22 insertions(+) diff --git a/include/uapi/linux/virtio_config.h b/include/uapi/linux/virtio_config.h index 308e209..5903d51 100644 --- a/incl

[RFC V4 PATCH 8/8] vhost: event suppression for packed ring

2018-05-16 Thread Jason Wang
This patch introduces basic support for event suppression aka driver and device area. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c| 168 --- drivers/vhost/vhost.h| 10 ++- include/uapi/linux/virtio_ring.h | 19 + 3 files ch

[RFC V4 PATCH 7/8] vhost: packed ring support

2018-05-16 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/vhost/net.c | 3 +- drivers/vhost/vhost.c | 539 ++ drivers/vhost/vhost.h | 8 +- 3 files changed, 513 insertions(+), 37 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 30273ad..

[RFC V4 PATCH 5/8] vhost: vhost_put_user() can accept metadata type

2018-05-16 Thread Jason Wang
We assumes used ring update is the only user for vhost_put_user() in the past. This may not be the case for the incoming packed ring which may update the descriptor ring for used. So introduce a new type parameter. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 14 +++--- 1 file c

[RFC V4 PATCH 3/8] vhost: do not use vring_used_elem

2018-05-16 Thread Jason Wang
Instead of depending on the exported vring_used_elem, this patch switches to use a new internal structure vhost_used_elem which embed vring_used_elem in itself. This could be used to let vhost to record extra metadata for the incoming packed ring layout. Signed-off-by: Jason Wang --- drivers/vho

[RFC V4 PATCH 2/8] vhost: hide used ring layout from device

2018-05-16 Thread Jason Wang
We used to return descriptor head by vhost_get_vq_desc() to device and pass it back to vhost_add_used() and its friends. This exposes the internal used ring layout to device which makes it hard to be extended for e.g packed ring layout. So this patch tries to hide the used ring layout by - lettin

[RFC V4 PATCH 0/8] Packed ring layout for vhost

2018-05-16 Thread Jason Wang
Hi all: This RFC implement packed ring layout. The code were tested with Tiwei's RFC V3 ahttps://lkml.org/lkml/2018/4/25/34. Some fixups and tweaks were needed on top of Tiwei's code to make it run for event index. Pktgen reports about 20% improvement on PPS (event index is off). More testing is

[RFC V4 PATCH 1/8] vhost: move get_rx_bufs to vhost.c

2018-05-16 Thread Jason Wang
Move get_rx_bufs() to vhost.c and rename it to vhost_get_bufs(). This helps to hide vring internal layout from specific device implementation. Packed ring implementation will benefit from this. Signed-off-by: Jason Wang --- drivers/vhost/net.c | 83 ++---

Re: [PATCH net-next v2 0/2] of: mdio: Fall back to mdiobus_register() with NULL device_node

2018-05-16 Thread Andrew Lunn
On Wed, May 16, 2018 at 10:54:12AM +0200, Geert Uytterhoeven wrote: > Hi Florian, > > Thanks for your series! > I like the effect on simplifying drivers. > > On Wed, May 16, 2018 at 1:56 AM, Florian Fainelli > wrote: > > This patch series updates of_mdiobus_register() such that when the > > de

Re: [PATCH 12/14] net: sched: retry action check-insert on concurrent modification

2018-05-16 Thread Jiri Pirko
Wed, May 16, 2018 at 01:55:06PM CEST, vla...@mellanox.com wrote: > >On Wed 16 May 2018 at 09:59, Jiri Pirko wrote: >> Mon, May 14, 2018 at 04:27:13PM CEST, vla...@mellanox.com wrote: >>>Retry check-insert sequence in action init functions if action with same >>>index was inserted concurrently. >>>

Re: [RFC v4 5/5] virtio_ring: enable packed ring

2018-05-16 Thread Tiwei Bie
On Wed, May 16, 2018 at 02:42:53PM +0300, Sergei Shtylyov wrote: > On 05/16/2018 01:21 PM, Tiwei Bie wrote: > > >>> Signed-off-by: Tiwei Bie > >>> --- > >>> drivers/virtio/virtio_ring.c | 2 ++ > >>> 1 file changed, 2 insertions(+) > >>> > >>> diff --git a/drivers/virtio/virtio_ring.c b/driver

Re: [PATCH v2] pinctrl: tegra20: Provide CDEV1/2 clock muxes

2018-05-16 Thread Linus Walleij
On Fri, May 4, 2018 at 12:55 AM, Dmitry Osipenko wrote: > Muxing of pins MCLK1/2 determine the muxing of the corresponding clocks. > Make pinctrl driver to provide clock muxes for the CDEV1/2 pingroups, so > that main clk-controller driver could get an actual parent clock for the > CDEV1/2 clocks

Re: [PATCH v5 02/13] KVM: s390: refactor crypto initialization

2018-05-16 Thread Cornelia Huck
On Wed, 16 May 2018 14:17:52 +0200 Pierre Morel wrote: > On 16/05/2018 13:14, Tony Krowiak wrote: > > On 05/16/2018 04:51 AM, Pierre Morel wrote: > >> On 07/05/2018 17:11, Tony Krowiak wrote: > >>> @@ -1896,19 +1917,17 @@ static u64 kvm_s390_get_initial_cpuid(void) > >>> > >>>   static void

Re: [PATCH 3/7] pinctrl: sunxi: add support for H6 R_PIO pin controller

2018-05-16 Thread Linus Walleij
On Thu, May 3, 2018 at 8:38 PM, Icenowy Zheng wrote: > Allwinner H6 SoC has a R_PIO pin controller like other Allwinner SoCs, > which controls the PL and PM pin banks. > > Add support for it. > > Signed-off-by: Icenowy Zheng Patch applied with the ACKs. Yours, Linus Walleij

Re: [PATCH v4 1/2] locking/rwsem: Add a new RWSEM_ANONYMOUSLY_OWNED flag

2018-05-16 Thread Matthew Wilcox
On Tue, May 15, 2018 at 05:49:50PM -0400, Waiman Long wrote: > @@ -357,11 +357,8 @@ static inline bool rwsem_can_spin_on_owner(struct > rw_semaphore *sem) > > rcu_read_lock(); > owner = READ_ONCE(sem->owner); > - if (!rwsem_owner_is_writer(owner)) { > - /* > -

Re: [PATCH V2] nvme-rdma: fix double free in nvme_rdma_free_queue

2018-05-16 Thread Max Gurtovoy
Hi Jianchao, On 5/10/2018 12:42 PM, Jianchao Wang wrote: BUG: KASAN: double-free or invalid-free in nvme_rdma_free_queue+0xf6/0x110 [nvme_rdma] Workqueue: nvme-reset-wq nvme_rdma_reset_ctrl_work [nvme_rdma] Call Trace: dump_stack+0x91/0xeb print_address_description+0x6b/0x290 kasan_report

Re: [PATCH v5 02/13] KVM: s390: refactor crypto initialization

2018-05-16 Thread Pierre Morel
On 16/05/2018 13:14, Tony Krowiak wrote: On 05/16/2018 04:51 AM, Pierre Morel wrote: On 07/05/2018 17:11, Tony Krowiak wrote: This patch refactors the code that initializes the crypto configuration for a guest. The crypto configuration is contained in a crypto control block (CRYCB) which is a s

Re: [RFC v4 4/5] virtio_ring: add event idx support in packed ring

2018-05-16 Thread Jason Wang
On 2018年05月16日 16:37, Tiwei Bie wrote: This commit introduces the event idx support in packed ring. Signed-off-by: Tiwei Bie --- drivers/virtio/virtio_ring.c | 75 +--- 1 file changed, 70 insertions(+), 5 deletions(-) diff --git a/drivers/virtio/virtio_ring

Re: [PATCH v16 8/9] PCI/DPC: Unify and plumb error handling into DPC

2018-05-16 Thread poza
On 2018-05-16 16:22, Bjorn Helgaas wrote: On Wed, May 16, 2018 at 01:46:25PM +0530, p...@codeaurora.org wrote: On 2018-05-16 05:26, Bjorn Helgaas wrote: > On Fri, May 11, 2018 at 05:22:08PM +0530, p...@codeaurora.org wrote: > > On 2018-05-11 16:13, Oza Pawandeep wrote: > > > DPC driver implement

[PATCH 0/2] ACPI / PM: Dispatch EC GPE early on s2idle resume if LPS0 _DSM is used

2018-05-16 Thread Rafael J. Wysocki
Hi All, The purpose of this series is to address a power button wakeup issue on some platforms where EC events aren't looked for early enough after wakeup from suspend-to-idle. The first patch modifies acpi_ev_detect_gpe() to compute a gpe_event_info if NULL is passed as its second argument and a

[PATCH 2/2] ACPI: EC: Dispatch the EC GPE directly on s2idle wake

2018-05-16 Thread Rafael J. Wysocki
From: Rafael J. Wysocki On platforms where the Low Power S0 Idle _DSM interface is used, on wakeup from suspend-to-idle, when it is known that the ACPI SCI has triggered while suspended, dispatch the EC GPE in order to catch all EC events that may have triggered the wakeup before carrying out the

[PATCH 1/2] ACPICA: Introduce acpi_dispatch_gpe()

2018-05-16 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Introduce acpi_dispatch_gpe() as a wrapper around acpi_ev_detect_gpe() for checking if the given GPE (as represented by a GPE device handle and a GPE number) is currently active and dispatching it (if that's the case) outside of interrupt context. Signed-off-by: Rafael J.

Re: INFO: rcu detected stall in sctp_packet_transmit

2018-05-16 Thread Dmitry Vyukov
On Wed, May 16, 2018 at 1:02 PM, Xin Long wrote: >>> wrote: Hello, syzbot found the following crash on: HEAD commit:961423f9fcbc Merge branch 'sctp-Introduce-sctp_flush_ctx' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=1

RE: [External] Re: [PATCH v1] include/linux/gfp.h: getting rid of GFP_ZONE_TABLE/BAD

2018-05-16 Thread Huaisheng HS1 Ye
> From: Matthew Wilcox [mailto:wi...@infradead.org] > Sent: Saturday, May 12, 2018 10:23 PM> > On Sat, May 12, 2018 at 11:35:00AM +, Huaisheng HS1 Ye wrote: > > > The point of this exercise is to actually encode the zone number in > > > the bottom bits of the GFP flags instead of something whi

Re: [PATCH v4 3/3] driver-core: print bus registration error value

2018-05-16 Thread Florian Schmaus
On 16.05.2018 14:05, Florian Schmaus wrote: > Signed-off-by: Florian Schmaus > --- > > Notes: > - Use correct member name 'bus_register_error' > - Only print out error code if it is non-zero > > drivers/base/bus.c| 4 +++- > drivers/base/driver.c | 13 ++--- > 2 files chang

[PATCH] Documentation: gpio: driver: Fix a typo and some odd grammar

2018-05-16 Thread Jonathan Neuschäfer
Signed-off-by: Jonathan Neuschäfer --- Documentation/driver-api/gpio/driver.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/driver-api/gpio/driver.rst b/Documentation/driver-api/gpio/driver.rst index 505ee906d7d9..cbe0242842d1 100644 --- a/Documentatio

Re: [PATCH V2] nvme-rdma: stop queue first before free it in config admin queue

2018-05-16 Thread Max Gurtovoy
On 5/10/2018 12:42 PM, Jianchao Wang wrote: When any of cases after nvme_rdma_start_queue in nvme_rdma_configure_admin_queue fails, the ctrl->queues[0] will be freed but the NVME_RDMA_Q_LIVE is still set. If nvme_rdma_stop_queue is invoked, we will incur use-after-free which will cause memory c

[PATCH v4 1/3] driver-core: return EINVAL error instead of BUG_ON()

2018-05-16 Thread Florian Schmaus
I triggerd the BUG_ON() in driver_register() when booting a domU Xen domain. Since there was no contextual information logged, I needed to attach kgdb to determine the culprit (the wmi-bmof driver in my case). The BUG_ON() was added in commit f48f3febb2cb ("driver-core: do not register a driver wit

[PATCH v4 0/3] return EINVAL error instead of BUG_ON()

2018-05-16 Thread Florian Schmaus
This patch series makes driver_register() emit an error message and return a failure code instead of triggering a BUG_ON(). The first patch will now print out the name of the faulty driver *and* the name of the involved bus. The second patch records the error code if bus_register() fails. The thir

[PATCH v4 2/3] driver-core: record error on bus registration

2018-05-16 Thread Florian Schmaus
If bus_register() fails on a driver then record the error code so that it can be inspected later on. Signed-off-by: Florian Schmaus --- Notes: - Also record ENOMEM error if initial alloc fails drivers/base/bus.c | 2 ++ include/linux/device.h | 1 + 2 files changed, 3 insertions(+) di

[PATCH v4 3/3] driver-core: print bus registration error value

2018-05-16 Thread Florian Schmaus
Signed-off-by: Florian Schmaus --- Notes: - Use correct member name 'bus_register_error' - Only print out error code if it is non-zero drivers/base/bus.c| 4 +++- drivers/base/driver.c | 13 ++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/base/

[PATCH] cpuidle/powernv : init all present cpus for deep states

2018-05-16 Thread Akshay Adiga
Init all present cpus for deep states instead of "all possible" cpus. Init fails if the possible cpu is gaurded. Resulting in making only non-deep states available for cpuidle/hotplug. Signed-off-by: Akshay Adiga --- arch/powerpc/platforms/powernv/idle.c | 4 ++-- 1 file changed, 2 insertions(+)

Re: [PATCH v7 3/3] pinctrl: bcm2835: Add support for output-low output-high properties

2018-05-16 Thread Linus Walleij
On Tue, May 1, 2018 at 2:42 AM, Matheus Castello wrote: > Properties to set initial value of pin output buffer. > This can be useful for configure hardware in overlay files, and in early > boot for checking it states in QA sanity tests. > > Signed-off-by: Matheus Castello > Reviewed-by: Eric Anh

Re: [PATCH v7 2/3] pinctrl: bcm2835: Add support for generic pinctrl binding

2018-05-16 Thread Linus Walleij
On Tue, May 1, 2018 at 2:42 AM, Matheus Castello wrote: > To keep driver up to date we add generic pinctrl binding support, which > covers the features used in this driver and has additional node properties > that this SoC has compatibility, so enabling future implementations of > these propertie

Re: [PATCH v4 1/2] locking/rwsem: Add a new RWSEM_ANONYMOUSLY_OWNED flag

2018-05-16 Thread Peter Zijlstra
On Wed, May 16, 2018 at 12:48:30PM +0200, Oleg Nesterov wrote: > > +static inline bool is_rwsem_owner_spinnable(struct task_struct *owner) > > { > > - return owner && owner != RWSEM_READER_OWNED; > > + return !((unsigned long)owner & RWSEM_ANONYMOUSLY_OWNED); > > } > > Perhaps you should add

[PATCH ghak81 V3 0/3] audit: group task params

2018-05-16 Thread Richard Guy Briggs
Group the audit parameters for each task into one structure. In particular, remove the loginuid and sessionid values and the audit context pointer from the task structure, replacing them with an audit task information structure to contain them. Use access functions to access audit values. Use dyn

Re: linux-next 20180515 - ACPI disabled..

2018-05-16 Thread Rafael J. Wysocki
On Wednesday, May 16, 2018 12:25:30 AM CEST valdis.kletni...@vt.edu wrote: > On Tue, 15 May 2018 15:49:15 -0600, Al Stone said: > > > Not off-hand. Could you please send me a copy of > > /sys/firmware/acpi/tables/APIC > > cat /sys/firmware/acpi/tables/APIC | od -x > 000 5041 4349 0072

Re: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-16 Thread Heikki Krogerus
Hi, On Wed, May 16, 2018 at 10:02:26AM +0200, Greg KH wrote: > On Tue, May 15, 2018 at 06:47:37PM +0200, Paul Menzel wrote: > > Dear Greg, > > > > > > As always, thank you for the prompt response. > > > > > > On 05/15/18 18:00, Greg KH wrote: > > > On Tue, May 15, 2018 at 04:34:03PM +0200, Pau

[PATCH ghak81 V3 2/3] audit: normalize loginuid read access

2018-05-16 Thread Richard Guy Briggs
Recognizing that the loginuid is an internal audit value, use an access function to retrieve the audit loginuid value for the task rather than reaching directly into the task struct to get it. Signed-off-by: Richard Guy Briggs --- kernel/auditsc.c | 24 +++- 1 file changed, 1

[PATCH ghak81 V3 3/3] audit: collect audit task parameters

2018-05-16 Thread Richard Guy Briggs
The audit-related parameters in struct task_struct should ideally be collected together and accessed through a standard audit API. Collect the existing loginuid, sessionid and audit_context together in a new struct audit_task_info called "audit" in struct task_struct. Use kmem_cache to manage thi

Re: [PATCH v5 0/7] pcal6524 extensions and fixes for pca953x driver

2018-05-16 Thread Linus Walleij
On Wed, May 16, 2018 at 1:53 PM, Linus Walleij wrote: > On Sat, Apr 28, 2018 at 6:31 PM, H. Nikolaus Schaller > wrote: > >> V5: >> * fix wrong split up between patches 1/7and 2/7. > > I applied patches 1, 2, 3 so we get some movement on the patch > set and not too much for you to rebase. > > It'

[PATCH ghak81 V3 1/3] audit: use new audit_context access funciton for seccomp_actions_logged

2018-05-16 Thread Richard Guy Briggs
On the rebase of the following commit on the new seccomp actions_logged function, one audit_context access was missed. commit cdfb6b341f0f2409aba24b84f3b4b2bba50be5c5 ("audit: use inline function to get audit context") Signed-off-by: Richard Guy Briggs --- kernel/auditsc.c | 2 +- 1 file change

Re: [PATCH v5 7/7] DTS: Bindings: pca953x: add example how to use interrupt-controller and gpio-controller

2018-05-16 Thread Linus Walleij
On Sat, Apr 28, 2018 at 6:31 PM, H. Nikolaus Schaller wrote: > It is not completely obvious that these are required and > how to use them. So we provide a tested example. > > Signed-off-by: H. Nikolaus Schaller > Reviewed-by: Rob Herring Patch applied. Yours, Linus Walleij

Re: [PATCH 12/14] net: sched: retry action check-insert on concurrent modification

2018-05-16 Thread Vlad Buslov
On Wed 16 May 2018 at 09:59, Jiri Pirko wrote: > Mon, May 14, 2018 at 04:27:13PM CEST, vla...@mellanox.com wrote: >>Retry check-insert sequence in action init functions if action with same >>index was inserted concurrently. >> >>Signed-off-by: Vlad Buslov >>--- >> net/sched/act_bpf.c| 8

Re: [PATCH v5 6/7] DTS: Bindings: pca953x add an optional vcc-supply property

2018-05-16 Thread Linus Walleij
On Sat, Apr 28, 2018 at 6:31 PM, H. Nikolaus Schaller wrote: > Hardware can have a switchable Vcc supply, so let's add it to > the bindings (the current Linux driver code already supports it). > > Signed-off-by: H. Nikolaus Schaller > Reviewed-by: Rob Herring Patch applied. Yours, Linus Wall

Re: [PATCH v5 0/7] pcal6524 extensions and fixes for pca953x driver

2018-05-16 Thread Linus Walleij
On Sat, Apr 28, 2018 at 6:31 PM, H. Nikolaus Schaller wrote: > V5: > * fix wrong split up between patches 1/7and 2/7. I applied patches 1, 2, 3 so we get some movement on the patch set and not too much for you to rebase. It's fine to just resend the rest next time. Yours, Linus Walleij

Re: [PATCH v5 3/7] gpio: pca953x: add more register definitions for pcal6524

2018-05-16 Thread Linus Walleij
On Sat, Apr 28, 2018 at 6:31 PM, H. Nikolaus Schaller wrote: > The pcal6524 has another set of registers to fine control > the interrupt handling. > > Signed-off-by: H. Nikolaus Schaller Patch applied with Andy's ACK. Yours, Linus Walleij

Re: [PATCH v5 2/7] gpio: pca953x: add more register definitions for pcal953x

2018-05-16 Thread Linus Walleij
On Sat, Apr 28, 2018 at 6:31 PM, H. Nikolaus Schaller wrote: > PCAL chips ("L" seems to stand for "latched") have additional > registers starting at address 0x40 to control the latches, > interrupt mask, pull-up and pull down etc. > > Signed-off-by: H. Nikolaus Schaller Patch applied with Andy

Re: [RFC v4 3/5] virtio_ring: add packed ring support

2018-05-16 Thread Jason Wang
On 2018年05月16日 16:37, Tiwei Bie wrote: This commit introduces the basic support (without EVENT_IDX) for packed ring. Signed-off-by: Tiwei Bie --- drivers/virtio/virtio_ring.c | 491 ++- 1 file changed, 481 insertions(+), 10 deletions(-) diff --git a/drivers

Re: [PATCH v5 1/7] gpio: pca953x: convert register constants to hex

2018-05-16 Thread Linus Walleij
On Sat, Apr 28, 2018 at 6:31 PM, H. Nikolaus Schaller wrote: > which makes it easier to match them with the data sheets. > > Signed-off-by: H. Nikolaus Schaller Patch applied with Andy's ACK. Yours, Linus Walleij

[PATCH 1/1] ARM:dts:sunxi: Add Olimex A20-SOM-EVB-eMMC board

2018-05-16 Thread Stefan Mavrodiev
With the new rev.E of A20-SOM-EVB, there is option for 16GB eMMC. Currently used card is KLMAG2GEND, wired to MMC2 slot. Signed-off-by: Stefan Mavrodiev --- arch/arm/boot/dts/Makefile | 1 + .../arm/boot/dts/sun7i-a20-olimex-som-evb-emmc.dts | 37 ++

Re: [PATCH v5 04/13] s390: vfio-ap: base implementation of VFIO AP device driver

2018-05-16 Thread Tony Krowiak
On 05/16/2018 04:21 AM, Pierre Morel wrote: On 07/05/2018 17:11, Tony Krowiak wrote: Introduces a new AP device driver. This device driver is built on the VFIO mediated device framework. The framework provides sysfs interfaces that facilitate passthrough access by guests to devices installed on

Re: [PATCH] clk: boston: fix memory leak of 'onecell' on error return paths

2018-05-16 Thread Dan Carpenter
On Tue, May 15, 2018 at 11:28:40AM -0700, Stephen Boyd wrote: > Quoting Dan Carpenter (2018-05-09 23:59:51) > > It would be nice to make things static check clean. One idea would be > > that the static checker could ignore resource leaks in __init functions. > > > > Typically if the stuff is so

Re: [RFC v4 5/5] virtio_ring: enable packed ring

2018-05-16 Thread Sergei Shtylyov
On 05/16/2018 01:21 PM, Tiwei Bie wrote: >>> Signed-off-by: Tiwei Bie >>> --- >>> drivers/virtio/virtio_ring.c | 2 ++ >>> 1 file changed, 2 insertions(+) >>> >>> diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c >>> index de3839f3621a..b158692263b0 100644 >>> --- a/driv

[PATCH 1/7] slimbus: core: add of_slim_device_get() helper

2018-05-16 Thread Srinivas Kandagatla
On SLIMBus controllers like Qcom NGD(non ported device), controller can request logical address once the remote side is powered, having a helper function like this to explicitly enumerate the bus is helpful. Also codec drivers which are taking to interface device would need such a helper too. Sign

[PATCH 6/7] slimbus: messaging: add slim_prepare_txn() helper function

2018-05-16 Thread Srinivas Kandagatla
This patch adds slim_prepare_txn() to allow controllers to prepare controller specific transaction. If not each controllers will duplicate the same code from core. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/messaging.c | 89 ++--- drivers/slimb

[PATCH 4/7] slimbus: messaging: pass correct wbuf

2018-05-16 Thread Srinivas Kandagatla
There seems to be a typo while filling msg for slim_write, wbuf is set to NULL instead of rbuf. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/messaging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/slimbus/messaging.c b/drivers/slimbus/messaging.c index 4

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