Re: [PATCH 01/14] orangefs: don't return errno values from ->fault

2018-05-16 Thread Matthew Wilcox
On Wed, May 16, 2018 at 07:43:35AM +0200, Christoph Hellwig wrote: > + rc = orangefs_inode_getattr(file->f_mapping->host, 0, 1, STATX_SIZE); > if (rc) { > gossip_err("%s: orangefs_inode_getattr failed, " > "rc:%d:.\n", __func__, rc); > - return

[PATCH net-next] net: ethoc: Remove useless test before clk_disable_unprepare

2018-05-16 Thread YueHaibing
clk_disable_unprepare() already checks that the clock pointer is valid. No need to test it before calling it. Signed-off-by: YueHaibing --- drivers/net/ethernet/ethoc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/e

Re: vm_fault_t conversion, for real

2018-05-16 Thread Matthew Wilcox
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 context. Yes, why should we have small tasks that newcomers can do when

Re: linux-next: Signed-off-by missing for commit in the pinctrl tree

2018-05-16 Thread Linus Walleij
On Wed, May 16, 2018 at 9:16 AM, Geert Uytterhoeven wrote: > On Tue, May 15, 2018 at 11:27 PM, Stephen Rothwell > wrote: >> Commit >> >> f18fab4bcb4f ("pinctrl: sh-pfc: Add r8a77470 PFC support") >> >> is missing a Signed-off-by from its comitter. > > Sorry, I forgot to add it. > > Linus, as t

Re: [PATCH net-next v3 0/7] Microsemi Ocelot Ethernet switch support

2018-05-16 Thread Alexandre Belloni
On 14/05/2018 22:47:35+0100, James Hogan wrote: > On Mon, May 14, 2018 at 10:58:44PM +0200, Andrew Lunn wrote: > > Hi Alexandre > > > > > > The ocelot dts changes are here for reference and should probably go > > > through the MIPS tree once the bindings are accepted. > > > > For your next versio

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

2018-05-16 Thread Matthew Wilcox
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 type checking, as well as finding more intricate problems with > sparse

[PATCH] selftests: cgroup: memcontrol: add basic test for socket accounting

2018-05-16 Thread Mike Rapoport
The test verifies that with active TCP traffic memory.current and memory.stat.sock have similar values. Signed-off-by: Mike Rapoport --- tools/testing/selftests/cgroup/test_memcontrol.c | 184 +++ 1 file changed, 184 insertions(+) diff --git a/tools/testing/selftests/cgroup/

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: linux-next: Signed-off-by missing for commit in the pinctrl tree

2018-05-16 Thread Geert Uytterhoeven
Hi Linus, On Wed, May 16, 2018 at 1:24 PM, Linus Walleij wrote: > On Wed, May 16, 2018 at 9:16 AM, Geert Uytterhoeven > wrote: >> On Tue, May 15, 2018 at 11:27 PM, Stephen Rothwell >> wrote: >>> Commit >>> >>> f18fab4bcb4f ("pinctrl: sh-pfc: Add r8a77470 PFC support") >>> >>> is missing a Si

Re: linux-next: Signed-off-by missing for commit in the pinctrl tree

2018-05-16 Thread Linus Walleij
On Wed, May 16, 2018 at 1:29 PM, Geert Uytterhoeven wrote: > On Wed, May 16, 2018 at 1:24 PM, Linus Walleij > wrote: >> On Wed, May 16, 2018 at 9:16 AM, Geert Uytterhoeven >> wrote: >>> On Tue, May 15, 2018 at 11:27 PM, Stephen Rothwell >>> wrote: Commit f18fab4bcb4f ("pinctr

Re: [PATCH V1 10/19] perf tools: Create maps for x86 PTI entry trampolines

2018-05-16 Thread Adrian Hunter
On 16/05/18 14:06, Jiri Olsa wrote: > On Tue, May 15, 2018 at 03:43:24PM +0300, Adrian Hunter wrote: > > SNIP > >> +int machine__create_extra_kernel_map(struct machine *machine, >> + struct dso *kernel, >> + struct extra_kernel_map *

[PATCH 5/7] slimbus: messaging: remove multiple calls to pm_runtime_mark_last_busy

2018-05-16 Thread Srinivas Kandagatla
There seems to be a multiple calls to pm_runtime_mark_last_busy(), which looks like a typo. Fix this by properly adding pm_runtime_put_autosuspend to put controller in auto suspend state. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/messaging.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 7/7] slimbus: messaging: initialize completion correctly

2018-05-16 Thread Srinivas Kandagatla
slim_val_inf can contain random value from stack, make sure the completion is initialized to NULL while filling the msg. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/messaging.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/slimbus/messaging.c b/drivers/slimbus/messaging.

[PATCH 0/7] slimbus: fixes and some helpers

2018-05-16 Thread Srinivas Kandagatla
Hi Greg, Here is set of patches for slimbus, there are 5 fixes and two helper functions. Most of these issues were found while testing QCOM NGD SLIMBus controller with WCD9335 codec. thanks, Srini Srinivas Kandagatla (7): slimbus: core: add of_slim_device_get() helper slimbus: core: rearrang

[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

[PATCH 2/7] slimbus: core: rearrange slim_eaddr structure

2018-05-16 Thread Srinivas Kandagatla
Rearrange struct slim_eaddr so that the structure is packed correctly to be able to send in SLIMBus messages. Signed-off-by: Srinivas Kandagatla --- include/linux/slimbus.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/slimbus.h b/include/linux/sl

[PATCH 3/7] slimbus: core: add need_tid flag to slim_msg_txn

2018-05-16 Thread Srinivas Kandagatla
Add need_tid flag to txn, this flag can be set before start of transcation. Having this flag would avoid calling slim_tid_txn() multiple times on the same txn. Also it is handy for controller drivers too. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/slimbus.h | 1 + 1 file changed, 1 i

[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

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

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: [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

[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 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

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 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: [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 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 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 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 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

[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 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 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

[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

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 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: [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

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 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

[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(+)

[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 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 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

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] 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 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

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: 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

[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.

[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

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

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 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: [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 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 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 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 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: [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 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: [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

[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 ++---

[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 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 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 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 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 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

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

[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 ++-

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

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. *

[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: [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

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 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

[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 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

[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

[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 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 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

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

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

[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] 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

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

[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 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 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

<    1   2   3   4   5   6   7   8   9   10   >