[PATCH v3 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd

2018-05-11 Thread Radu Pirea
This patch modifies the place where resources and device tree properties are searched. Signed-off-by: Radu Pirea --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial/atmel_serial.c | 29 +++-- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/dr

[PATCH v3 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-05-11 Thread Radu Pirea
This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea --- drivers/spi/Kconfig

[PATCH v3 3/6] MAINTAINERS: add at91 usart spi driver

2018-05-11 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ca06c6f58299..9243b9007966 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9199,6 +9199,13 @@ S: Supported F: driv

Re: [PATCH] armpmu: broadcast overflow irq on multi-core system having one muxed SPI for PMU.

2018-05-11 Thread Mark Rutland
On Fri, May 11, 2018 at 08:20:49AM +0900, ��ȣ�� wrote: > Thank you for the reply. > > > -Original Message- > > From: Mark Rutland [mailto:mark.rutl...@arm.com] > > Sent: Thursday, May 10, 2018 7:21 PM > > To: Hoeun Ryu > > Cc: Will Deacon ; Hoeun Ryu ; > > linux-arm-ker...@lists.infradead

[PATCH v16 7/9] PCI/PORTDRV: Implement generic find device

2018-05-11 Thread Oza Pawandeep
This patch implements generic pcie_port_find_device() routine. Signed-off-by: Oza Pawandeep Reviewed-by: Keith Busch diff --git a/drivers/pci/pcie/portdrv.h b/drivers/pci/pcie/portdrv.h index ba6c963..896608a 100644 --- a/drivers/pci/pcie/portdrv.h +++ b/drivers/pci/pcie/portdrv.h @@ -114,4 +11

[PATCH v16 9/9] PCI/DPC: Disable ERR_NONFATAL and enable ERR_FATAL for DPC

2018-05-11 Thread Oza Pawandeep
This patch disables ERR_NONFATAL trigger for DPC, so now DPC handles only ERR_FATAL. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/dpc.c b/drivers/pci/pcie/dpc.c index 5680c13..358b4324 100644 --- a/drivers/pci/pcie/dpc.c +++ b/drivers/pci/pcie/dpc.c @@ -273,7 +273,7 @@ static int d

[PATCH v16 0/9] Address error and recovery for AER and DPC

2018-05-11 Thread Oza Pawandeep
This patch set brings in error handling support for DPC The current implementation of AER and error message broadcasting to the EP driver is tightly coupled and limited to AER service driver. It is important to factor out broadcasting and other link handling callbacks. So that not only when AER ge

[PATCH v16 2/9] pci-error-recovery: Add AER_FATAL handling

2018-05-11 Thread Oza Pawandeep
It adds description on AER_FATAL error handling. Signed-off-by: Oza Pawandeep diff --git a/Documentation/PCI/pci-error-recovery.txt b/Documentation/PCI/pci-error-recovery.txt index 0b6bb3e..688b691 100644 --- a/Documentation/PCI/pci-error-recovery.txt +++ b/Documentation/PCI/pci-error-recovery.

[PATCH v16 1/9] PCI: Unify wait for link active into generic PCI

2018-05-11 Thread Oza Pawandeep
Clients such as HP, DPC are using pcie_wait_link_active(), which waits till the link becomes active or inactive. Made generic function and moved it to drivers/pci/pci.c Signed-off-by: Oza Pawandeep Reviewed-by: Keith Busch diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pci

[PATCH v16 3/9] PCI/AER: Handle ERR_FATAL with removal and re-enumeration of devices

2018-05-11 Thread Oza Pawandeep
This patch alters the behavior of handling of ERR_FATAL, where removal of devices is initiated, followed by reset link, followed by re-enumeration. So the errors are handled in a different way as follows: ERR_NONFATAL => call driver recovery entry points ERR_FATAL=> remove and re-enumerate pl

[PATCH v16 5/9] PCI/AER: Factor out error reporting from AER

2018-05-11 Thread Oza Pawandeep
This patch factors out error reporting callbacks, which are currently tightly coupled with AER. DPC should be able to register callbacks and attempt recovery when DPC trigger event occurs. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/Makefile b/drivers/pci/pcie/Makefile index 800e

[PATCH v16 4/9] PCI/AER: Rename error recovery to generic PCI naming

2018-05-11 Thread Oza Pawandeep
This patch renames error recovery to generic name with pcie prefix Signed-off-by: Oza Pawandeep Reviewed-by: Keith Busch diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index cec9d8c..5e8857a 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -353,6 +353,10 @@ static inline resource_s

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

2018-05-11 Thread Oza Pawandeep
DPC driver implements link_reset callback, and calls pci_do_fatal_recovery(). Which follows standard path of ERR_FATAL recovery. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 5e8857a..6af7595 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -354,

[PATCH v16 6/9] PCI/PORTDRV: Implement generic find service

2018-05-11 Thread Oza Pawandeep
This patch implements generic pcie_port_find_service() routine. Signed-off-by: Oza Pawandeep Reviewed-by: Keith Busch diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index 4fa1ee4..fdfc474 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pc

Re: [rds-devel] KASAN: null-ptr-deref Read in rds_ib_get_mr

2018-05-11 Thread Sowmini Varadhan
On (05/11/18 15:48), Yanjun Zhu wrote: > diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c > index e678699..2228b50 100644 > --- a/net/rds/ib_rdma.c > +++ b/net/rds/ib_rdma.c > @@ -539,11 +539,17 @@ void rds_ib_flush_mrs(void) >void *rds_ib_get_mr(struct scatterlist *sg, unsigned long nents, >

Re: [RFC PATCH 1/3] arcnet: com20020: Add memory map of com20020

2018-05-11 Thread Andrea Greco
On 05/08/2018 06:16 PM, Rob Herring wrote: > On Sat, May 05, 2018 at 11:34:45PM +0200, Andrea Greco wrote: >> From: Andrea Greco >> >> Add support for com20022I/com20020, memory mapped chip version. >> Support bus: Intel 80xx and Motorola 68xx. >> Bus size: Only 8 bit bus size is supported. >> Add

Re: [PATCH IB/core 2/2] IB/cm: Send authentic pkey in REQ msg and check eligibility of the pkeys

2018-05-11 Thread Håkon Bugge
> On 10 May 2018, at 18:54, Hal Rosenstock wrote: > > On 5/10/2018 11:16 AM, Håkon Bugge wrote: >> >> >>> On 10 May 2018, at 16:01, Hal Rosenstock wrote: >>> >>> On 5/10/2018 5:16 AM, Håkon Bugge wrote: > On 9 May 2018, at 13:28, Hal Rosenstock wrote: > > On 5/9/20

[GIT PULL] xen: fix for 4.17-rc5

2018-05-11 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.17-rc5-tag xen: fix for 4.17-rc5 It contains one fix for the kernel running as a fully virtualized guest using PV drivers on old Xen hypervisor versions. Thanks. Juergen arch/x

Re: [PATCH] perf/ring_buffer: ensure atomicity and order of updates

2018-05-11 Thread Mark Rutland
On Thu, May 10, 2018 at 02:06:32PM +0100, Mark Rutland wrote: > - smp_wmb(); /* B, matches C */ > - rb->user_page->data_head = head; > + smp_store_release(&rb->user_page->data_head, head); /* B, matches C */ > - rb->user_page->aux_head = rb->aux_head; > + smp_store_release(&rb-

[PATCH] printk: fix possible reuse of va_list variable

2018-05-11 Thread Tetsuo Handa
>From 766cf72b5fdc00d1cf5a8ca2c6b23ebb75e2b4d4 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Fri, 11 May 2018 19:54:19 +0900 Subject: [PATCH] printk: fix possible reuse of va_list variable I noticed that there is a possibility that printk_safe_log_store() causes kernel oops because "args" par

Re: [PATCH v5 5/7] ocxl: Expose the thread_id needed for wait on POWER9

2018-05-11 Thread Frederic Barrat
Le 11/05/2018 à 12:06, Alastair D'Silva a écrit : -Original Message- From: Frederic Barrat Sent: Friday, 11 May 2018 7:25 PM To: Alastair D'Silva ; linuxppc-...@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; mi...@neuling.org; vaib...@linux.vnet.ibm.com

[PATCH 12/32] net: add support for ->poll_mask in proto_ops

2018-05-11 Thread Christoph Hellwig
The socket file operations still implement ->poll until all protocols are switched over. Signed-off-by: Christoph Hellwig --- include/linux/net.h | 3 +++ net/socket.c| 51 - 2 files changed, 49 insertions(+), 5 deletions(-) diff --git a/incl

[PATCH 09/32] aio: add delayed cancel support

2018-05-11 Thread Christoph Hellwig
The upcoming aio poll support would like to be able to complete the iocb inline from the cancellation context, but that would cause a double lock of ctx_lock as-is. Add a new delayed_cancel_reqs list of iocbs that should be cancelled from outside the ctx_lock by calling the (re-)added ki_cancel ca

[PATCH 14/32] net/tcp: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/net/tcp.h | 4 ++-- net/ipv4/af_inet.c | 3 ++- net/ipv4/tcp.c | 31 ++- net/ipv6/af_inet6.c | 3 ++- 4 files changed, 20 insertions(+), 21 deletions(-) diff --git a/include/net/tcp.h b/include/net/tcp.h index 9c

[PATCH 30/32] eventfd: switch to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/eventfd.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/fs/eventfd.c b/fs/eventfd.c index 08d3bd602f73..61c9514da5e9 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -101,14 +101,20 @@ static int eventfd_release(struct

[PATCH 22/32] net/bluetooth: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/net/bluetooth/bluetooth.h | 2 +- net/bluetooth/af_bluetooth.c | 7 ++- net/bluetooth/l2cap_sock.c| 2 +- net/bluetooth/rfcomm/sock.c | 2 +- net/bluetooth/sco.c | 2 +- 5 files changed, 6 insertions(+), 9 deletions

[PATCH 1/8] drivers: nvmem: Export nvmem_add_cells()

2018-05-11 Thread Srinivas Kandagatla
From: Andrew Lunn Not all platforms use device tree. It is useful to be able to add cells to a NVMEM device from code. Export nvmem_add_cells() so making this possible. This required changing the parameters a bit, so that just the cells and the number of cells are passed, not the whole nvmem con

[PATCH 24/32] net/nfc: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/nfc/llcp_sock.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/net/nfc/llcp_sock.c b/net/nfc/llcp_sock.c index ea0c0c6f1874..ab5bb14b49af 100644 --- a/net/nfc/llcp_sock.c +++ b/net/nfc/llcp_sock.c @@ -548,16 +548,13 @@ static

[PATCH 32/32] random: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
The big change is that random_read_wait and random_write_wait are merged into a single waitqueue that uses keyed wakeups. Because wait_event_* doesn't know about that this will lead to occassional spurious wakeups in _random_read and add_hwgenerator_randomness, but wait_event_* is designed to hand

[PATCH 31/32] timerfd: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/timerfd.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/fs/timerfd.c b/fs/timerfd.c index cdad49da3ff7..d84a2bee4f82 100644 --- a/fs/timerfd.c +++ b/fs/timerfd.c @@ -226,21 +226,20 @@ static int timerfd_release

[PATCH 8/8] nvmem: properly handle returned value nvmem_reg_read

2018-05-11 Thread Srinivas Kandagatla
From: Mathieu Malaterre Function nvmem_reg_read can return a non zero value indicating an error. This returned value must be read and error propagated to nvmem_cell_prepare_write_buffer. Silence the following gcc warning (W=1): drivers/nvmem/core.c:1093:9: warning: variable 'rc' set but not use

[PATCH 29/32] pipe: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/pipe.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/fs/pipe.c b/fs/pipe.c index 39d6f431da83..bb0840e234f3 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -509,19 +509,22 @@ static long pipe_ioctl(struct file *filp,

[PATCH 7/8] nvmem: core: describe add missing dev function parameter

2018-05-11 Thread Srinivas Kandagatla
Document dev parameter which not described in devm_nvmem_unregister and devm_nvmem_register functions. Fix below warnings when kernel is compiled with W=1 drivers/nvmem/core.c:579: warning: Function parameter or member 'dev' not described in 'devm_nvmem_register' nvmem/core.c:615: warning: Functi

[PATCH 27/32] net/rxrpc: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/rxrpc/af_rxrpc.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c index 9a2c8e7c000e..6b170f2e47f2 100644 --- a/net/rxrpc/af_rxrpc.c +++ b/net/rxrpc/af_rxrpc.c @@ -734,15 +734,11 @@

[PATCH 6/8] nvmem: meson-efuse: add write support

2018-05-11 Thread Srinivas Kandagatla
From: Jerome Brunet Add write support to the meson-gx efuse driver. Beware, this efuse is one time programmable ! Reviewed-by: Kevin Hilman Signed-off-by: Jerome Brunet Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/meson-efuse.c | 9 - 1 file changed, 8 insertions(+), 1 deleti

[PATCH 4/8] nvmem: meson-efuse: remove econfig global

2018-05-11 Thread Srinivas Kandagatla
From: Jerome Brunet Having a global structure holding a reference to the device structure is not very nice. Allocate the econfig instead and fill the nvmem information as before Reviewed-by: Kevin Hilman Signed-off-by: Jerome Brunet Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/meson-

[PATCH 5/8] nvmem: meson-efuse: simplify read callback

2018-05-11 Thread Srinivas Kandagatla
From: Jerome Brunet Most of the code and variables in the read callback is not necessary. Keep only what is required. Signed-off-by: Jerome Brunet Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/meson-efuse.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a

[PATCH 26/32] net/iucv: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/net/iucv/af_iucv.h | 2 -- net/iucv/af_iucv.c | 7 ++- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/include/net/iucv/af_iucv.h b/include/net/iucv/af_iucv.h index f4c21b5a1242..b0eaeb02d46d 100644 --- a/include/net/iucv/af_

Re: [RFC][PATCH] arm64: update iomem_resource.end

2018-05-11 Thread Robin Murphy
On 10/05/18 23:29, Nicolin Chen wrote: Thanks for the comments, Robin. On Thu, May 10, 2018 at 06:45:59PM +0100, Robin Murphy wrote: On 09/05/18 23:58, Nicolin Chen wrote: The iomem_resource.end is -1 by default and should be updated in arch-level code. ARM64 so far hasn't updated it while co

[PATCH 28/32] crypto: af_alg: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- crypto/af_alg.c | 13 +++-- crypto/algif_aead.c | 4 ++-- crypto/algif_skcipher.c | 4 ++-- include/crypto/if_alg.h | 3 +-- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/crypto/af_alg.c b/crypto/af_alg.c index 80838c1c

[PATCH 0/8] nvmem: patches for v4.18

2018-05-11 Thread Srinivas Kandagatla
Hi Greg, Here are some nvmem enhancements, fixes, write support to meson efuse and new RAVE SP eeprom driver. Can you queue them up for 4.18. Thanks, Srini Andrew Lunn (1): drivers: nvmem: Export nvmem_add_cells() Andrey Smirnov (2): dt-bindings: nvmem: Add binding for RAVE SP EEPROM drive

Re: [PATCH v1 7/9] iommu/tegra: gart: Provide single domain and group for all devices

2018-05-11 Thread Dmitry Osipenko
On 08.05.2018 21:16, Dmitry Osipenko wrote: > GART aperture is shared by all devices, hence there is a single IOMMU > domain and group shared by these devices. Allocation of a group per > device only wastes resources and allowance of having more than one domain > is simply wrong because IOMMU mappi

[PATCH 3/8] nvmem: Add RAVE SP EEPROM driver

2018-05-11 Thread Srinivas Kandagatla
From: Andrey Smirnov Add driver providing access to EEPROMs connected to RAVE SP devices Cc: Srinivas Kandagatla Cc: linux-kernel@vger.kernel.org Cc: Chris Healy Cc: Lucas Stach Cc: Aleksander Morgado Signed-off-by: Andrey Smirnov Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/Kconf

[PATCH 2/8] dt-bindings: nvmem: Add binding for RAVE SP EEPROM driver

2018-05-11 Thread Srinivas Kandagatla
From: Andrey Smirnov Add Device Tree bindings for RAVE SP EEPROM driver - an MFD cell of parent RAVE SP driver (documented in Documentation/devicetree/bindings/mfd/zii,rave-sp.txt). Cc: Srinivas Kandagatla Cc: linux-kernel@vger.kernel.org Cc: Chris Healy Cc: Lucas Stach Cc: Aleksander Morgado

[PATCH 25/32] net/phonet: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/phonet/socket.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/net/phonet/socket.c b/net/phonet/socket.c index 9ecf02def928..ea2bfc3aafb9 100644 --- a/net/phonet/socket.c +++ b/net/phonet/socket.c @@ -340,15 +340,12 @@ static in

[PATCH 21/32] net/sctp: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/net/sctp/sctp.h | 3 +-- net/sctp/ipv6.c | 2 +- net/sctp/protocol.c | 2 +- net/sctp/socket.c | 4 +--- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 28b996d634

[PATCH 23/32] net/caif: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/caif/caif_socket.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c index a6fb1b3bcad9..c7991867d622 100644 --- a/net/caif/caif_socket.c +++ b/net/caif/caif_socket.c @@ -934,15

[PATCH 20/32] net/tipc: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/tipc/socket.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 252a52ae0893..58549338582a 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -692,10 +692,9 @@ static int t

[PATCH] firmware: ti_sci: Correct the timeout type in ti_sci_do_xfer()

2018-05-11 Thread Peter Ujfalusi
It should be 'unsigned long', not int. Signed-off-by: Peter Ujfalusi --- drivers/firmware/ti_sci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index b74a533ef35b..398a6db4da88 100644 --- a/drivers/firmware/ti_sci.c +++

[PATCH 18/32] net/atm: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/atm/common.c | 11 +++ net/atm/common.h | 2 +- net/atm/pvc.c| 2 +- net/atm/svc.c| 2 +- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/net/atm/common.c b/net/atm/common.c index fc78a0508ae1..1f2af59935db 100644 --- a/n

[PATCH 16/32] net: convert datagram_poll users tp ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig Reviewed-by: Greg Kroah-Hartman --- drivers/isdn/mISDN/socket.c | 2 +- drivers/net/ppp/pppoe.c | 2 +- drivers/staging/ipx/af_ipx.c | 2 +- include/linux/skbuff.h | 3 +-- include/net/udp.h| 2 +- net/appletalk/ddp.c | 2 +-

[PATCH 19/32] net/vmw_vsock: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/vmw_vsock/af_vsock.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c index c1076c19b858..bb5d5fa68c35 100644 --- a/net/vmw_vsock/af_vsock.c +++ b/net/vmw_vsock/af_

[PATCH 17/32] net/dccp: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/dccp/dccp.h | 3 +-- net/dccp/ipv4.c | 2 +- net/dccp/ipv6.c | 2 +- net/dccp/proto.c | 13 ++--- 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index f91e3816806b..0ea2ee56ac1b 100644 --- a/

Re: [PATCH RFC 07/19] perf tools: Workaround missing maps for x86_64 KPTI entry trampolines

2018-05-11 Thread Adrian Hunter
On 10/05/18 23:15, Arnaldo Carvalho de Melo wrote: > Em Thu, May 10, 2018 at 07:08:37PM +, Hunter, Adrian escreveu: >>> -Original Message- >>> From: Arnaldo Carvalho de Melo [mailto:a...@kernel.org] >>> Sent: Wednesday, May 9, 2018 8:07 PM >>> To: Hunter, Adrian >>> Cc: Thomas Gleixner

[PATCH 1/2] powerpc: Detect the presence of big-core with interleaved threads

2018-05-11 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" A pair of IBM POWER9 SMT4 cores can be fused together to form a big-core with 8 SMT threads. This can be discovered via the "ibm,thread-groups" CPU property in the device tree which will indicate which group of threads that share the L1 cache, translation cache and instr

[PATCH 0/2] powerpc: Scheduler optimization for POWER9 bigcores

2018-05-11 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Hi, A pair of IBM POWER9 SMT4 cores can be fused together to form a big-core with 8 SMT threads. This can be discovered via the "ibm,thread-groups" CPU property in the device tree which will indicate which group of threads that share the L1 cache, translation cache and

[PATCH 2/2] powerpc: Enable ASYM_SMT on interleaved big-core systems

2018-05-11 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Each of the SMT4 cores forming a fused-core are more or less independent units. Thus when multiple tasks are scheduled to run on the fused core, we get the best performance when the tasks are spread across the pair of SMT4 cores. Since the threads in the pair of SMT4 co

[PATCH 15/32] net/unix: convert to ->poll_mask

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/unix/af_unix.c | 30 +++--- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 68bb70a62afe..1a9cdad4ab82 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -638,9

[PATCH 13/32] net: remove sock_no_poll

2018-05-11 Thread Christoph Hellwig
Now that sock_poll handles a NULL ->poll or ->poll_mask there is no need for a stub. Signed-off-by: Christoph Hellwig --- crypto/af_alg.c | 1 - crypto/algif_hash.c | 2 -- crypto/algif_rng.c | 1 - drivers/isdn/mISDN/socket.c | 1 - drivers/net/ppp/pptp.c | 1 -

Re: [PATCH RFC 07/19] perf tools: Workaround missing maps for x86_64 KPTI entry trampolines

2018-05-11 Thread Adrian Hunter
On 10/05/18 23:47, Arnaldo Carvalho de Melo wrote: > Em Thu, May 10, 2018 at 05:19:22PM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Thu, May 10, 2018 at 05:15:42PM -0300, Arnaldo Carvalho de Melo escreveu: >>> Em Thu, May 10, 2018 at 07:08:37PM +, Hunter, Adrian escreveu: Let me know i

[PATCH 11/32] net: refactor socket_poll

2018-05-11 Thread Christoph Hellwig
Factor out two busy poll related helpers for late reuse, and remove a command that isn't very helpful, especially with the __poll_t annotations in place. Signed-off-by: Christoph Hellwig --- include/net/busy_poll.h | 15 +++ net/socket.c| 21 - 2 files

[PATCH] slimbus: qcom: remove unused variable

2018-05-11 Thread Srinivas Kandagatla
This patch fixes below warning when driver is compiled with W=1 qcom-ctrl.c: In function 'qcom_slim_rxwq': qcom-ctrl.c:442:13: warning: variable 'len' set but not used [-Wunused-but-set-variable] len seems to be unused in this function, so remove it. Signed-off-by: Srinivas Kandagatla --- driv

[PATCH 10/32] aio: implement IOCB_CMD_POLL

2018-05-11 Thread Christoph Hellwig
Simple one-shot poll through the io_submit() interface. To poll for a file descriptor the application should submit an iocb of type IOCB_CMD_POLL. It will poll the fd for the events specified in the the first 32 bits of the aio_buf field of the iocb. Unlike poll or epoll without EPOLLONESHOT thi

[PATCH 07/32] aio: simplify cancellation

2018-05-11 Thread Christoph Hellwig
With the current aio code there is no need for the magic KIOCB_CANCELLED value, as a cancelation just kicks the driver to queue the completion ASAP, with all actual completion handling done in another thread. Given that both the completion path and cancelation take the context lock there is no need

[PATCH 08/32] aio: replace kiocb_set_cancel_fn with a cancel_kiocb file operation

2018-05-11 Thread Christoph Hellwig
The current kiocb_set_cancel_fn implementation assumes the kiocb is embedded into an aio_kiocb, which is fundamentally unsafe as it might have been submitted by non-aio callers. Instead add a cancel_kiocb file operation that replaced the ki_cancel function pointer set by kiocb_set_cancel_fn, and o

[PATCH 06/32] aio: simplify KIOCB_KEY handling

2018-05-11 Thread Christoph Hellwig
No need to pass the key field to lookup_iocb to compare it with KIOCB_KEY, as we can do that right after retrieving it from userspace. Also move the KIOCB_KEY definition to aio.c as it is an internal value not used by any other place in the kernel. Signed-off-by: Christoph Hellwig --- fs/aio.c

Re: [PATCH 1/3] dt-bindings: media: rcar-vin: Add R8A77995 support

2018-05-11 Thread Niklas Söderlund
Hi Jacopo, Thanks for your work. On 2018-05-11 12:00:00 +0200, Jacopo Mondi wrote: > Add compatible string for R-Car D3 R8A7795 to list of SoCs supported by > rcar-vin driver. > > Signed-off-by: Jacopo Mondi Acked-by: Niklas Söderlund > --- > Documentation/devicetree/bindings/media/rcar_vin

[PATCH 04/32] fs: add new vfs_poll and file_can_poll helpers

2018-05-11 Thread Christoph Hellwig
These abstract out calls to the poll method in preparation for changes in how we poll. Signed-off-by: Christoph Hellwig Reviewed-by: Greg Kroah-Hartman Reviewed-by: Darrick J. Wong --- drivers/staging/comedi/drivers/serial2002.c | 4 ++-- drivers/vfio/virqfd.c | 2 +- d

[PATCH 05/32] fs: introduce new ->get_poll_head and ->poll_mask methods

2018-05-11 Thread Christoph Hellwig
->get_poll_head returns the waitqueue that the poll operation is going to sleep on. Note that this means we can only use a single waitqueue for the poll, unlike some current drivers that use two waitqueues for different events. But now that we have keyed wakeups and heavily use those for poll the

[PATCH 03/32] fs: update documentation to mention __poll_t and match the code

2018-05-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Reviewed-by: Greg Kroah-Hartman --- Documentation/filesystems/Locking | 2 +- Documentation/filesystems/vfs.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/filesystems/Locking b/Documentation

[PATCH 02/32] fs: cleanup do_pollfd

2018-05-11 Thread Christoph Hellwig
Use straightline code with failure handling gotos instead of a lot of nested conditionals. Signed-off-by: Christoph Hellwig Reviewed-by: Greg Kroah-Hartman Reviewed-by: Darrick J. Wong --- fs/select.c | 48 +++- 1 file changed, 23 insertions(+), 25 d

Re: [PATCH v2 2/2] dmaengine: sprd: Add Spreadtrum DMA configuration

2018-05-11 Thread Vinod Koul
On 09-05-18, 19:12, Baolin Wang wrote: > +/* > + * struct sprd_dma_config - DMA configuration structure > + * @cfg: dma slave channel runtime config > + * @src_addr: the source physical address > + * @dst_addr: the destination physical address > + * @block_len: specify one block transfer length >

[PATCH 01/32] fs: unexport poll_schedule_timeout

2018-05-11 Thread Christoph Hellwig
No users outside of select.c. Signed-off-by: Christoph Hellwig Reviewed-by: Greg Kroah-Hartman Reviewed-by: Darrick J. Wong --- fs/select.c | 3 +-- include/linux/poll.h | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/select.c b/fs/select.c index ba879c51288f.

[PATCH] [stable 4.14] arm64: Add work around for Arm Cortex-A55 Erratum 1024718

2018-05-11 Thread Suzuki K Poulose
commit ece1397cbc89c51914fae1aec729539cfd8bd62b upstream Some variants of the Arm Cortex-55 cores (r0p0, r0p1, r1p0) suffer from an erratum 1024718, which causes incorrect updates when DBM/AP bits in a page table entry is modified without a break-before-make sequence. The work around is to disable

aio poll and a new in-kernel poll API V10

2018-05-11 Thread Christoph Hellwig
Hi all, this series adds support for the IOCB_CMD_POLL operation to poll for the readyness of file descriptors using the aio subsystem. The API is based on patches that existed in RHAS2.1 and RHEL3, which means it already is supported by libaio. To implement the poll support efficiently new meth

Re: [PATCH v2 2/2] soc: mediatek: reuse regmap_read_poll_timeout helpers

2018-05-11 Thread Matthias Brugger
Hi Sean, On 04/23/2018 08:42 AM, sean.w...@mediatek.com wrote: > From: Sean Wang > > Reuse the common helpers regmap_read_poll_timeout provided by Linux core > instead of an open-coded handling. > > v1 -> v2: > - use macro definitions MTK_POLL_DELAY_US and MTK_POLL_TIMEOUT for >arguments s

Re: [PATCH 2/3] arm64: dts: renesas: r8a77995: Add VIN4

2018-05-11 Thread Niklas Söderlund
Hi Jacopo, Thanks for your work. On 2018-05-11 12:00:01 +0200, Jacopo Mondi wrote: > Describe VIN4 interface for R-Car D3 R8A77995 SoC. > > Signed-off-by: Jacopo Mondi Acked-by: Niklas Söderlund > --- > arch/arm64/boot/dts/renesas/r8a77995.dtsi | 11 +++ > 1 file changed, 11 inserti

Re: [PATCH] printk: fix possible reuse of va_list variable

2018-05-11 Thread Sergey Senozhatsky
On (05/11/18 20:02), Tetsuo Handa wrote: > I noticed that there is a possibility that printk_safe_log_store() causes > kernel oops because "args" parameter is passed to vsnprintf() again when > atomic_cmpxchg() detected that we raced. Fix this by using va_copy(). > > Signed-off-by: Tetsuo Handa >

Re: [PATCH] soc: mediatek: remove unneeded semicolon

2018-05-11 Thread Matthias Brugger
On 05/10/2018 04:57 AM, sean.w...@mediatek.com wrote: > From: Sean Wang > > Fix up drivers/soc/mediatek/mtk-scpsys.c:255:2-3: Unneeded semicolon > accidently being added in commit f9e2f65dd561 ("soc: mediatek: add a > fixed wait for SRAM stable"). > > Fixes: f9e2f65dd561 ("soc: mediatek: add a

Re: [PATCH v1 6/9] iommu/tegra: gart: Ignore devices without IOMMU phandle in DT

2018-05-11 Thread Robin Murphy
Hi Dmitry, On 08/05/18 19:16, Dmitry Osipenko wrote: GART can't handle all devices, ignore devices that aren't related to GART. Device tree must explicitly assign GART IOMMU to the devices. Signed-off-by: Dmitry Osipenko --- drivers/iommu/tegra-gart.c | 33 -

Re: Delivery Status Notification (Failure)

2018-05-11 Thread Pintu Kumar
Hi, I need one help. I am using i.MX7 Sabre board with kernel version 4.1.15 Let's say I am interested in GPIO number: 21 I wanted to set CPU affinity for particular GPIO->IRQ number, so I tried the below steps: root@10:~# echo 21 > /sys/class/gpio/export root@10:~# echo "rising" > /sys/class/gpi

Re: net: hang in unregister_netdevice: waiting for lo to become free

2018-05-11 Thread Dan Streetman
On Fri, May 11, 2018 at 5:19 AM, Dmitry Vyukov wrote: > On Thu, May 10, 2018 at 12:23 PM, Dan Streetman wrote: wrote: > On 20.02.2018 18:26, Neil Horman wrote: >> >> On Tue, Feb 20, 2018 at 09:14:41AM +0100, Dmitry Vyukov wrote: >>> >>> On Tue, Fe

Re: [PATCH v2 2/2] dmaengine: sprd: Add Spreadtrum DMA configuration

2018-05-11 Thread Baolin Wang
Hi Vinod, On 11 May 2018 at 19:22, Vinod Koul wrote: > On 09-05-18, 19:12, Baolin Wang wrote: > >> +/* >> + * struct sprd_dma_config - DMA configuration structure >> + * @cfg: dma slave channel runtime config >> + * @src_addr: the source physical address >> + * @dst_addr: the destination physical

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

2018-05-11 Thread poza
On 2018-05-11 16:13, Oza Pawandeep wrote: DPC driver implements link_reset callback, and calls pci_do_fatal_recovery(). Which follows standard path of ERR_FATAL recovery. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 5e8857a..6af7595 100644 --- a/driver

Re: [PATCH v2 2/2] dmaengine: sprd: Add Spreadtrum DMA configuration

2018-05-11 Thread Vinod Koul
On 11-05-18, 19:44, Baolin Wang wrote: > Hi Vinod, > > On 11 May 2018 at 19:22, Vinod Koul wrote: > > On 09-05-18, 19:12, Baolin Wang wrote: > > > >> +/* > >> + * struct sprd_dma_config - DMA configuration structure > >> + * @cfg: dma slave channel runtime config > >> + * @src_addr: the source ph

Re: [PATCH V2] powercap/drivers/idle_injection: Add an idle injection framework

2018-05-11 Thread Daniel Lezcano
On Fri, May 11, 2018 at 03:02:21PM +0530, viresh kumar wrote: > On 10-05-18, 14:26, Daniel Lezcano wrote: > > Initially, the cpu_cooling device for ARM was changed by adding a new > > policy inserting idle cycles. The intel_powerclamp driver does a > > similar action. > > > > Instead of implementi

Re: [PATCH v5 2/2] leds: lm3601x: Introduce the lm3601x LED driver

2018-05-11 Thread Dan Murphy
Jacek Thanks for the review On 05/10/2018 03:48 PM, Jacek Anaszewski wrote: > Hi Dan, > > Thank you for the patch. > > On 05/10/2018 07:47 PM, Dan Murphy wrote: >> Introduce the family of LED devices that can >> drive a torch, strobe or IR LED. >> >> The LED driver can be configured with a stro

Re: [GIT PULL] arm64: updates for 4.17

2018-05-11 Thread Catalin Marinas
On Thu, May 10, 2018 at 11:03:18PM -0500, Yang Li wrote: > On Wed, Apr 4, 2018 at 9:32 AM, Will Deacon wrote: > > Please pull these arm64 updates for 4.17. Note that I've pulled in a > > stable branch from Eric Biederman here to fulfil some siginfo dependencies, > > so the diffstat strays slightly

Re: [PATCH v2 2/2] dmaengine: sprd: Add Spreadtrum DMA configuration

2018-05-11 Thread Baolin Wang
On 11 May 2018 at 19:53, Vinod Koul wrote: > On 11-05-18, 19:44, Baolin Wang wrote: >> Hi Vinod, >> >> On 11 May 2018 at 19:22, Vinod Koul wrote: >> > On 09-05-18, 19:12, Baolin Wang wrote: >> > >> >> +/* >> >> + * struct sprd_dma_config - DMA configuration structure >> >> + * @cfg: dma slave cha

[PATCH] printk: inject caller information into the body of message

2018-05-11 Thread Tetsuo Handa
>From b7b0e56e06db1107f781b4cb5178fbdc99240901 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Fri, 11 May 2018 20:45:31 +0900 Subject: [PATCH] printk: inject caller information into the body of message Since syzbot frequently makes printk() flooding (e.g. memory allocation fault injection), it

Re: [PATCH v2 2/2] dmaengine: sprd: Add Spreadtrum DMA configuration

2018-05-11 Thread Vinod Koul
On 11-05-18, 19:58, Baolin Wang wrote: > On 11 May 2018 at 19:53, Vinod Koul wrote: > >> > > >> >> +/* > >> >> + * struct sprd_dma_config - DMA configuration structure > >> >> + * @cfg: dma slave channel runtime config > >> >> + * @src_addr: the source physical address > >> >> + * @dst_addr: the d

Re: [PATCH V2 1/2] Revert "ssb: Prevent build of PCI host features in module"

2018-05-11 Thread Larry Finger
On 05/11/2018 05:13 AM, Kalle Valo wrote: Rafał Miłecki writes: On 11 May 2018 at 11:17, Rafał Miłecki wrote: From: Rafał Miłecki This reverts commit 882164a4a928bcaa53280940436ca476e6b1db8e. Above commit added "SSB = y" dependency to the wrong symbol SSB_DRIVER_PCICORE_POSSIBLE and preve

[PATCH 0/2] 5-level paging changes from v4.18

2018-05-11 Thread Kirill A. Shutemov
Couple of changes for v4.18. One fix for a non-critical bug and the new kernel command line option to disable 5-level paging. Kirill A. Shutemov (2): x86/boot/compressed/64: Fix trampoline page table address calculation x86/mm: Introduce 'no5lvl' kernel parameter Documentation/admin-guide/ke

[PATCH 1/2] x86/boot/compressed/64: Fix trampoline page table address calculation

2018-05-11 Thread Kirill A. Shutemov
Hugh noticied that I calculate address of trampoline page table wrong in cleanup_trampoline(). TRAMPOLINE_32BIT_PGTABLE_OFFSET has to be divided by sizeof(unsigned long) since trampoline_32bit is unsigned long pointer. TRAMPOLINE_32BIT_PGTABLE_OFFSET is zero so the bug doesn't have a visible effec

[PATCH 2/2] x86/mm: Introduce 'no5lvl' kernel parameter

2018-05-11 Thread Kirill A. Shutemov
The kernel parameter allows to force kernel to use 4-level paging even if hardware and kernel support 5-level paging. The option may be useful to workaround regressions related to 5-level paging. Signed-off-by: Kirill A. Shutemov --- Documentation/admin-guide/kernel-parameters.txt | 3 +++ arc

Re: [PATCH v5 1/2] dt: bindings: lm3601x: Introduce the lm3601x driver

2018-05-11 Thread Dan Murphy
Jacek Thanks for the review On 05/10/2018 03:17 PM, Jacek Anaszewski wrote: > Hi Dan, > > On 05/10/2018 09:10 PM, Dan Murphy wrote: >> On 05/10/2018 02:06 PM, Dan Murphy wrote: >>> Pavel >>> >>> On 05/10/2018 01:54 PM, Pavel Machek wrote: Hi! > Introduce the device tree bindings fo

Re: [PATCH v2 2/2] dmaengine: sprd: Add Spreadtrum DMA configuration

2018-05-11 Thread Baolin Wang
On 11 May 2018 at 20:04, Vinod Koul wrote: > On 11-05-18, 19:58, Baolin Wang wrote: >> On 11 May 2018 at 19:53, Vinod Koul wrote: >> >> > >> >> >> +/* >> >> >> + * struct sprd_dma_config - DMA configuration structure >> >> >> + * @cfg: dma slave channel runtime config >> >> >> + * @src_addr: the

Re: linux-next: build warning after merge of the mac80211-next tree

2018-05-11 Thread Kalle Valo
Stephen Rothwell writes: > After merging the mac80211-next tree, today's linux-next build (arm_multi > v7_defconfig) produced this warning: > > drivers/net/wireless/marvell/mwifiex/uap_event.c: In function > 'mwifiex_process_uap_event': > drivers/net/wireless/marvell/mwifiex/uap_event.c:333:1: w

Re: [PATCH 05/24] apparmor: Implement security hooks for the new mount API [ver #7]

2018-05-11 Thread David Howells
John Johansen wrote: > this looks good, and has pasted the testing that I have done so far. I > have started on the work that will allow us to reorder the match but > its not ready yet and shouldn't hold this up. Excellent, thanks! One thing to consider: Kent Overstreet mentioned the possibilit

Re: [PATCH v1 3/5] arm64: dts: rockchip: Add gpio-syscon10 to rk3328

2018-05-11 Thread Rob Herring
On Thu, May 10, 2018 at 4:16 AM, wrote: > From: Levin Du > > Adding a new gpio controller named "gpio-syscon10" to rk3328, providing > access to the pins defined in the syscon GRF_SOC_CON10. > > Boards using these special pins to control regulators or LEDs, can now > utilize existing drivers lik

  1   2   3   4   5   6   7   >