Re: [PATCH v12 09/11] mm: Allow arch code to override copy_highpage()

2018-03-05 Thread Khalid Aziz
On 03/05/2018 12:24 PM, Dave Hansen wrote: On 02/21/2018 09:15 AM, Khalid Aziz wrote: +#ifndef __HAVE_ARCH_COPY_HIGHPAGE + static inline void copy_highpage(struct page *to, struct page *from) { char *vfrom, *vto; @@ -248,4 +250,6 @@ static inline void copy_highpage(struct page *to, s

Re: Would you help to tell why async printk solution was not taken to upstream kernel ?

2018-03-05 Thread Steven Rostedt
On Mon, 5 Mar 2018 11:14:16 +0900 Sergey Senozhatsky wrote: > It can print more than "one full buffer worth". In theory and on practice. How so? As soon as another process adds to the buffer, it will take over the printing. -- Steve

Re: Any known soft lockup issue with vfs_write()->fsnotify()?

2018-03-05 Thread Jan Kara
Hi! On Fri 02-03-18 22:28:50, Dexuan Cui wrote: > Recently people are getting a soft lock issue with vfs_write()->fsnotify(). > The detailed calltrace is available at: > https://github.com/coreos/bugs/issues/2356 > https://github.com/coreos/bugs/issues/2364 I didn't see them yet. > The kernel v

Re: [PATCH 07/34] x86/entry/32: Restore segments before int registers

2018-03-05 Thread Linus Torvalds
On Mon, Mar 5, 2018 at 12:38 PM, Brian Gerst wrote: > > There already is a test: single_step_syscall.c Ahh, good. So presumably Joerg actually did check it, just didn't even notice ;) Linus

Re: [PATCH v2 07/10] nvme-pci: Use PCI p2pmem subsystem to manage the CMB

2018-03-05 Thread Jason Gunthorpe
On Mon, Mar 05, 2018 at 01:42:12PM -0700, Keith Busch wrote: > On Mon, Mar 05, 2018 at 01:10:53PM -0700, Jason Gunthorpe wrote: > > So when reading the above mlx code, we see the first wmb() being used > > to ensure that CPU stores to cachable memory are visible to the DMA > > triggered by the door

Re: [PATCH 3/5] dt-bindings: soc: Add a binding for the Broadcom VCHI services.

2018-03-05 Thread Rob Herring
On Mon, Mar 5, 2018 at 2:28 PM, Eric Anholt wrote: > The VCHI communication channel can be provided by BCM283x and Capri VCHI or VCHIQ? > SoCs, to communicate with the VPU-side OS services. > > Signed-off-by: Eric Anholt > --- > .../devicetree/bindings/soc/bcm/brcm,bcm2835-vchiq.txt | 18 > ++

Re: [PATCH 1/7] perf mmap: Store mmap scope and type in struct perf_mmap

2018-03-05 Thread Liang, Kan
On 3/5/2018 3:20 PM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 05, 2018 at 02:10:53PM -0500, kan.li...@linux.intel.com escreveu: From: Kan Liang There are too many boilerplates for the perf_mmap__read*() interfaces. Some of the data (e.g. 'start', 'end', 'overwrite') should be stored in s

Re: [PATCH v12 09/11] mm: Allow arch code to override copy_highpage()

2018-03-05 Thread Dave Hansen
On 03/05/2018 12:42 PM, Khalid Aziz wrote: > On 03/05/2018 12:24 PM, Dave Hansen wrote: >> On 02/21/2018 09:15 AM, Khalid Aziz wrote: >>> +#ifndef __HAVE_ARCH_COPY_HIGHPAGE >>> + >>>   static inline void copy_highpage(struct page *to, struct page *from) >>>   { >>>   char *vfrom, *vto; >>> @@ -

Re: [PATCH] pci-iov: Add support for unmanaged SR-IOV

2018-03-05 Thread Don Dutile
On 03/01/2018 03:22 PM, Alex Williamson wrote: On Wed, 28 Feb 2018 16:36:38 -0800 Alexander Duyck wrote: On Wed, Feb 28, 2018 at 2:59 PM, Alex Williamson wrote: On Wed, 28 Feb 2018 09:49:21 -0800 Alexander Duyck wrote: On Tue, Feb 27, 2018 at 2:25 PM, Alexander Duyck wrote: On Tue, Fe

[PATCH v2] regmap: irq: fix ack-invert

2018-03-05 Thread Tim Harvey
When acking irqs we need to take into account the ack-invert case. Without this chips that require 0's to ACK interrupts will never clear the interrupt. By using regmap_irq_update_bits to ACK the interrupts we use the masked status bits so we take care not to affect any other bits then use ack_inv

Re: Would you help to tell why async printk solution was not taken to upstream kernel ?

2018-03-05 Thread Steven Rostedt
On Mon, 5 Mar 2018 11:14:16 +0900 Sergey Senozhatsky wrote: > But I still think that it makes sense to change that "print it all" approach. > With more clear/explicit watchdog-dependent limits - we do direct printk for > 1/2 (or 2/3) of a current watchdog threshold value and offload if there is >

[PATCH v2 0/2] check I2C device id for pca984x chips

2018-03-05 Thread Peter Rosin
Hi! This series tries to check the I2C device id, but instead of open coding the check in the pca954x driver, I have a new function in the core doing the work. Changes since v1: - Added Tested-by tag from Adrian - Added Reviewed-by tag from Wolfram - Replaced client->flags with a zero in the i2c_

[PATCH v2 2/2] i2c: mux: pca954x: verify the device id of the pca984x chips

2018-03-05 Thread Peter Rosin
Make sure to not disallow the chips on adapters that are not capable of reading the device id, but also make sure to check the device id before writing to the chip. Tested-by: Adrian Fiergolski Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca954x.c | 55 +

[PATCH v2 1/2] i2c: add i2c_get_device_id() to get the standard i2c device id

2018-03-05 Thread Peter Rosin
Can be used during probe to double check that the probed device is what is expected. Loosely based on code from Adrian Fiergolski . Tested-by: Adrian Fiergolski Reviewed-by: Wolfram Sang Signed-off-by: Peter Rosin --- drivers/i2c/i2c-core-base.c | 33 + include

Re: [PATCH RFC v9 4/7] x86/entry: Erase kernel stack in syscall_trace_enter()

2018-03-05 Thread Alexander Popov
Hello Linus, Thanks for your reply (despite some strong words). On 05.03.2018 23:15, Linus Torvalds wrote: > This is the first I see of any of this, it was apparently not actually > posted to lkml or anything like that. I described that below. > Honestly, what I see just makes me go "this is se

Re: [Outreachy kernel] Re: [PATCH] staging: irda: Replace printk() with appropriate net_*macro_ratelimited()

2018-03-05 Thread Julia Lawall
On Mon, 5 Mar 2018, Arushi Singhal wrote: > > > On Mon, Mar 5, 2018 at 3:33 PM, Dan Carpenter > wrote: > On Mon, Mar 05, 2018 at 04:02:06AM +0530, Arushi Singhal wrote: > > Replace printk having a log level with the appropriate > > net_*macro_ratelimited. > > It's bette

Re: [PATCH v12 02/11] mm, swap: Add infrastructure for saving page metadata on swap

2018-03-05 Thread Dave Hansen
On 03/05/2018 12:28 PM, Khalid Aziz wrote: >> Do you have a way to tell that data is not being thrown away?  Like if >> the ADI metadata is different for two different cachelines within a >> single page? > > Yes, since access to tagged data is made using pointers with ADI tag > embedded in the top

Re: [PATCH v2 2/2] dt-bindings: Document the Synopsys DW AXI DMA bindings

2018-03-05 Thread Rob Herring
On Mon, Mar 05, 2018 at 11:02:56AM +0530, Vinod Koul wrote: > On Fri, Mar 02, 2018 at 08:32:20AM +, Alexey Brodkin wrote: > > Hi Vinod, > > > > On Fri, 2018-03-02 at 13:44 +0530, Vinod Koul wrote: > > > On Mon, Feb 26, 2018 at 05:56:28PM +0300, Eugeniy Paltsev wrote: > > > > This patch adds do

Re: [PATCH] ARM: dts: rockchip: Add dp83867 CLK_OUT muxing

2018-03-05 Thread Heiko Stübner
Am Montag, 5. März 2018, 21:25:30 CET schrieb Heiko Stübner: > Am Montag, 5. März 2018, 13:45:11 CET schrieb Daniel Schultz: > > The CLK_O_SEL default is synchronous to XI input clock, which is 25 MHz. > > Set CLK_O_SEL to channel A transmit clock so we have 125 MHz on CLK_OUT. > > > > Signed-off-

Re: [PATCH] dt-bindings: irqchip: renesas-irqc: Document R-Car M3-N support

2018-03-05 Thread Rob Herring
On Mon, Feb 26, 2018 at 04:25:12PM +0100, Geert Uytterhoeven wrote: > Document support for the Interrupt Controller for Externel Devices > (INTC-EX) in the Renesas M3-N (r8a77965) SoC. > > No driver update is needed. > > Signed-off-by: Geert Uytterhoeven > --- > Documentation/devicetree/binding

Re: [PATCH 5/8] dt-bindings: iommu/ipmmu-vmsa: Add R-Car M3-N (R8A77965)

2018-03-05 Thread Rob Herring
On Mon, Feb 26, 2018 at 06:57:13PM +0100, Jacopo Mondi wrote: > Add Renesas R-Car M3-N (R8A77965) compat string to IPMMU DT bindings > documentation. > > Signed-off-by: Jacopo Mondi > --- > Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.txt | 1 + > 1 file changed, 1 insertion(+) Re

Re: [PATCH v4 2/2] dt-bindings: introduce Command DB for QCOM SoCs

2018-03-05 Thread Rob Herring
On Mon, Feb 26, 2018 at 10:58:02AM -0700, Lina Iyer wrote: > From: Mahesh Sivasubramanian > > Command DB provides information on shared resources like clocks, > regulators etc., probed at boot by the remote subsytem and made > available in shared memory. > > Cc: devicet...@vger.kernel.org > Sign

Re: [PATCH] thermal: of: Allow selection of thermal governor in DT

2018-03-05 Thread Daniel Lezcano
On 05/03/2018 19:36, Amit Kucheria wrote: > From: Ram Chandrasekar > > There is currently no way for the governor to be selected for each thermal > zone in devicetree. This results in the default governor being used for all > thermal zones even though no such restriction exists in the core code.

Re: [PATCH bpf-next 0/5] bpf, tracing: introduce bpf raw tracepoints

2018-03-05 Thread Steven Rostedt
On Mon, 5 Mar 2018 14:36:07 +0100 Daniel Borkmann wrote: > Ping, Peter/Steven. If you have a chance, please review the series. You're not off my radar, but I'm doing a lot of traveling for the next two weeks (started last week). I'll see if I can find some time to look at them. I scanned them ov

Re: [PATCH 1/6] tpm: sort objects in the Makefile

2018-03-05 Thread Jason Gunthorpe
On Mon, Mar 05, 2018 at 10:20:12PM +0200, Tomas Winkler wrote: > Make the tpm Makefile a bit more in order by putting > objects in one column and group together tpm2 modules > > Prefer tpm-objs += instead of tpm-y += notation. > > Signed-off-by: Tomas Winkler > drivers/char/tpm/Makefile | 14 ++

Re: [PATCH v2 1/1] HID: Logitech K290: Add driver for the Logitech K290 USB keyboard

2018-03-05 Thread kbuild test robot
Hi Florent, Thank you for the patch! Yet something to improve: [auto build test ERROR on hid/for-next] [also build test ERROR on v4.16-rc4 next-20180305] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH v12 02/11] mm, swap: Add infrastructure for saving page metadata on swap

2018-03-05 Thread Khalid Aziz
On 03/05/2018 02:04 PM, Dave Hansen wrote: On 03/05/2018 12:28 PM, Khalid Aziz wrote: Do you have a way to tell that data is not being thrown away?  Like if the ADI metadata is different for two different cachelines within a single page? Yes, since access to tagged data is made using pointers

Re: [PATCH RFC v9 2/7] x86/entry: Add STACKLEAK erasing the kernel stack at the end of syscalls

2018-03-05 Thread Alexander Popov
On 05.03.2018 23:25, Peter Zijlstra wrote: > On Mon, Mar 05, 2018 at 11:43:19AM -0800, Laura Abbott wrote: >> On 03/05/2018 08:41 AM, Dave Hansen wrote: >>> On 03/03/2018 12:00 PM, Alexander Popov wrote: Documentation/x86/x86_64/mm.txt | 2 + arch/Kconfig | 27 +

Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)

2018-03-05 Thread Khalid Aziz
On 03/05/2018 12:22 PM, Dave Hansen wrote: On 02/21/2018 09:15 AM, Khalid Aziz wrote: +#define arch_validate_prot(prot, addr) sparc_validate_prot(prot, addr) +static inline int sparc_validate_prot(unsigned long prot, unsigned long addr) +{ + if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC

RE: [PATCH 1/6] tpm: sort objects in the Makefile

2018-03-05 Thread Winkler, Tomas
> On Mon, Mar 05, 2018 at 10:20:12PM +0200, Tomas Winkler wrote: > > Make the tpm Makefile a bit more in order by putting objects in one > > column and group together tpm2 modules > > > > Prefer tpm-objs += instead of tpm-y += notation. > > > > Signed-off-by: Tomas Winkler > > drivers/char/tpm/Mak

Re: [PATCH 2/2] docs: add Co-Developed-by docs

2018-03-05 Thread Tobin C. Harding
On Mon, Mar 05, 2018 at 04:11:35AM -0800, Matthew Wilcox wrote: > On Mon, Mar 05, 2018 at 02:58:21PM +1100, Tobin C. Harding wrote: > > -12) When to use Acked-by: and Cc: > > -- > > +12) When to use Acked-by: and Cc:, and Co-Developed-by: > > +---

Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)

2018-03-05 Thread Dave Hansen
On 02/21/2018 09:15 AM, Khalid Aziz wrote: > +tag_storage_desc_t *alloc_tag_store(struct mm_struct *mm, > + struct vm_area_struct *vma, > + unsigned long addr) ... > + tags = kzalloc(size, GFP_NOWAIT|__GFP_NOWARN); > + if (tags

Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)

2018-03-05 Thread Dave Hansen
On 03/05/2018 01:14 PM, Khalid Aziz wrote: > On 03/05/2018 12:22 PM, Dave Hansen wrote: >> On 02/21/2018 09:15 AM, Khalid Aziz wrote: >>> +#define arch_validate_prot(prot, addr) sparc_validate_prot(prot, addr) >>> +static inline int sparc_validate_prot(unsigned long prot, unsigned >>> long addr) >>

[PATCH 11/36] fs: update documentation for __poll_t

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- Documentation/filesystems/Locking | 2 +- Documentation/filesystems/vfs.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/filesystems/Locking b/Documentation/filesystems/Locking index 75d2d57e2c44..220bba28f72b 100644 --

[PATCH 02/36] aio: remove an outdated comment in aio_complete

2018-03-05 Thread Christoph Hellwig
These days we don't treat sync iocbs special in the aio completion code as they never use it. Remove the old comment, and move the BUG_ON for a sync iocb to the top of the function. Signed-off-by: Christoph Hellwig Acked-by: Jeff Moyer --- fs/aio.c | 11 ++- 1 file changed, 2 insertion

[PATCH 25/36] net/sctp: convert to ->poll_mask

2018-03-05 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 f7ae6b0a21

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

2018-03-05 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 33/36] pipe: convert to ->poll_mask

2018-03-05 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 7b1954caf388..81937590ea0a 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -509,19 +509,22 @@ static long pipe_ioctl(struct file *filp,

[PATCH 34/36] eventfd: switch to ->poll_mask

2018-03-05 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 012f5bd46dfa..d70b4907f978 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -101,14 +101,20 @@ static int eventfd_release(struct

[PATCH 31/36] net/rxrpc: convert to ->poll_mask

2018-03-05 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 0c9c18aa7c77..d2440d5c3ce8 100644 --- a/net/rxrpc/af_rxrpc.c +++ b/net/rxrpc/af_rxrpc.c @@ -729,15 +729,11 @@

[PATCH 35/36] timerfd: convert to ->poll_mask

2018-03-05 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 32/36] crypto: af_alg: convert to ->poll_mask

2018-03-05 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 50d75de5

Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)

2018-03-05 Thread Dave Hansen
On 03/05/2018 01:14 PM, Khalid Aziz wrote: > Are you suggesting that vma returned by find_vma() could be split or > merged underneath me if I do not hold mmap_sem and thus make the flag > check invalid? If so, that is a good point. This part does make me think that this code hasn't been tested ver

Re: [BUG] Kernel crash on Allwinner H3 due to sound core changes

2018-03-05 Thread Jernej Škrabec
Hi, Dne petek, 02. marec 2018 ob 13:40:50 CET je Mark Brown napisal(a): > On Thu, Mar 01, 2018 at 11:23:57PM +0100, Jernej Škrabec wrote: > > I removed parts of the code from the sun4i codec driver and interestingly > > it doesn't crash if I remove following lines: > > > > ret = devm_snd_dmaengin

[PATCH 30/36] net/iucv: convert to ->poll_mask

2018-03-05 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_

[PATCH 29/36] net/phonet: convert to ->poll_mask

2018-03-05 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 28d981512f5f..70ac4539d5b7 100644 --- a/net/phonet/socket.c +++ b/net/phonet/socket.c @@ -341,15 +341,12 @@ static in

[PATCH 26/36] net/bluetooth: convert to ->poll_mask

2018-03-05 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 27/36] net/caif: convert to ->poll_mask

2018-03-05 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 28/36] net/nfc: convert to ->poll_mask

2018-03-05 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 376040092142..b6010750e634 100644 --- a/net/nfc/llcp_sock.c +++ b/net/nfc/llcp_sock.c @@ -549,16 +549,13 @@ static

[PATCH 24/36] net/tipc: convert to ->poll_mask

2018-03-05 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 b0323ec7971e..1ea1666e8e95 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -694,10 +694,9 @@ static int t

[PATCH 22/36] net/atm: convert to ->poll_mask

2018-03-05 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 23/36] net/vmw_vsock: convert to ->poll_mask

2018-03-05 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 e0fc84daed94..b9210329bda8 100644 --- a/net/vmw_vsock/af_vsock.c +++ b/net/vmw_vsock/af_

[PATCH 21/36] net/dccp: convert to ->poll_mask

2018-03-05 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/

[PATCH 17/36] net: remove sock_no_poll

2018-03-05 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 v9 2/7] x86/entry: Add STACKLEAK erasing the kernel stack at the end of syscalls

2018-03-05 Thread Kees Cook
On Mon, Mar 5, 2018 at 1:21 PM, Alexander Popov wrote: > On 05.03.2018 23:25, Peter Zijlstra wrote: >> On Mon, Mar 05, 2018 at 11:43:19AM -0800, Laura Abbott wrote: >>> On 03/05/2018 08:41 AM, Dave Hansen wrote: On 03/03/2018 12:00 PM, Alexander Popov wrote: > Documentation/x86/x86_64/m

Re: [PATCH 07/34] x86/entry/32: Restore segments before int registers

2018-03-05 Thread Joerg Roedel
On Mon, Mar 05, 2018 at 12:50:33PM -0800, Linus Torvalds wrote: > On Mon, Mar 5, 2018 at 12:38 PM, Brian Gerst wrote: > > > > There already is a test: single_step_syscall.c > > Ahh, good. So presumably Joerg actually did check it, just didn't even notice > ;) Yeah, sort of. I ran the test, but

[PATCH 18/36] net/tcp: convert to ->poll_mask

2018-03-05 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 e3

[PATCH 16/36] net: add support for ->poll_mask in proto_ops

2018-03-05 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

[PATCH 19/36] net/unix: convert to ->poll_mask

2018-03-05 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 2d465bdeccbc..619c6921dd46 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -638,9

[PATCH 14/36] aio: implement IOCB_CMD_POLL

2018-03-05 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 13/36] fs: introduce new ->get_poll_head and ->poll_mask methods

2018-03-05 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 20/36] net: convert datagram_poll users tp ->poll_mask

2018-03-05 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- drivers/isdn/mISDN/socket.c| 2 +- drivers/net/ppp/pppoe.c| 2 +- drivers/staging/ipx/af_ipx.c | 2 +- drivers/staging/irda/net/af_irda.c | 6 +++--- include/linux/skbuff.h | 3 +-- include/net/udp.h

[PATCH 15/36] net: refactor socket_poll

2018-03-05 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

Re: [PATCH v2 1/2] of: unittest: clean up changeset test

2018-03-05 Thread Rob Herring
On Mon, Feb 26, 2018 at 02:01:22PM -0800, frowand.l...@gmail.com wrote: > From: Frank Rowand > > In preparation for fixing __of_node_dup(), clean up the unittest > function that calls it. > > Devicetree nodes created from a flattened device tree have a name > property. Follow this convention fo

[PATCH 12/36] fs: add new vfs_poll and file_can_poll helpers

2018-03-05 Thread Christoph Hellwig
These abstract out calls to the poll method in preparation for changes in how we poll. Signed-off-by: Christoph Hellwig --- drivers/staging/comedi/drivers/serial2002.c | 4 ++-- drivers/vfio/virqfd.c | 2 +- drivers/vhost/vhost.c | 2 +- fs/eventpol

[PATCH 09/36] fs: unexport poll_schedule_timeout

2018-03-05 Thread Christoph Hellwig
No users outside of select.c. Signed-off-by: Christoph Hellwig --- 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 b6c36254028a..686de7b3a1db 100644 --- a/fs/select.c +++ b/fs/select.c @@ -23

[PATCH 05/36] aio: simplify cancellation

2018-03-05 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 03/36] aio: refactor read/write iocb setup

2018-03-05 Thread Christoph Hellwig
Don't reference the kiocb structure from the common aio code, and move any use of it into helper specific to the read/write path. This is in preparation for aio_poll support that wants to use the space for different fields. Signed-off-by: Christoph Hellwig Acked-by: Jeff Moyer --- fs/aio.c | 1

Re: [PATCH] pci-iov: Add support for unmanaged SR-IOV

2018-03-05 Thread Alexander Duyck
On Mon, Mar 5, 2018 at 12:57 PM, Don Dutile wrote: > On 03/01/2018 03:22 PM, Alex Williamson wrote: >> >> On Wed, 28 Feb 2018 16:36:38 -0800 >> Alexander Duyck wrote: >> >>> On Wed, Feb 28, 2018 at 2:59 PM, Alex Williamson >>> wrote: On Wed, 28 Feb 2018 09:49:21 -0800 Alexander Du

[PATCH 10/36] fs: cleanup do_pollfd

2018-03-05 Thread Christoph Hellwig
Use straigline code with failure handling gotos instead of a lot of nested conditionals. Signed-off-by: Christoph Hellwig --- fs/select.c | 48 +++- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/fs/select.c b/fs/select.c index 686de7b

[PATCH 04/36] aio: sanitize ki_list handling

2018-03-05 Thread Christoph Hellwig
Instead of handcoded non-null checks always initialize ki_list to an empty list and use list_empty / list_empty_careful on it. While we're at it also error out on a double call to kiocb_set_cancel_fn instead of ignoring it. Signed-off-by: Christoph Hellwig Acked-by: Jeff Moyer --- fs/aio.c | 1

[PATCH 01/36] aio: don't print the page size at boot time

2018-03-05 Thread Christoph Hellwig
The page size is in no way related to the aio code, and printing it in the (debug) dmesg at every boot serves no purpose. Signed-off-by: Christoph Hellwig Acked-by: Jeff Moyer --- fs/aio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/aio.c b/fs/aio.c index a062d75109cb..03d59593912d

[PATCH 07/36] aio: add delayed cancel support

2018-03-05 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 lock order reversal. Add support for optionally moving the cancelation outside the context lock to avoid this reversal. Signed-off-by: Christoph Hellwig Acked-by:

[PATCH 08/36] aio: implement io_pgetevents

2018-03-05 Thread Christoph Hellwig
This is the io_getevents equivalent of ppoll/pselect and allows to properly mix signals and aio completions (especially with IOCB_CMD_POLL) and atomically executes the following sequence: sigset_t origmask; pthread_sigmask(SIG_SETMASK, &sigmask, &origmask); ret = io_geteve

Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)

2018-03-05 Thread Khalid Aziz
On 03/05/2018 02:26 PM, Dave Hansen wrote: On 02/21/2018 09:15 AM, Khalid Aziz wrote: +tag_storage_desc_t *alloc_tag_store(struct mm_struct *mm, + struct vm_area_struct *vma, + unsigned long addr) ... + tags = kzalloc(si

[PATCH 06/36] aio: delete iocbs from the active_reqs list in kiocb_cancel

2018-03-05 Thread Christoph Hellwig
One we cancel an iocb there is no reason to keep it on the active_reqs list, given that the list is only used to look for cancelation candidates. Signed-off-by: Christoph Hellwig Acked-by: Jeff Moyer --- fs/aio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/aio.c b

aio poll, io_pgetevents and a new in-kernel poll API V5

2018-03-05 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: [1/2] pps: client: use new parport device model

2018-03-05 Thread Sudip Mukherjee
On Sun, Jan 28, 2018 at 11:22:08PM +, Sudip Mukherjee wrote: > Modify pps client driver to use the new parallel port device model. > In that process, added an index to mention the device number when we > have more than one parallel port. > > Signed-off-by: Sudip Mukherjee > Acked-by: Rodolfo

Re: [PATCH v2 2/2] dt-bindings: Document the Synopsys DW AXI DMA bindings

2018-03-05 Thread Alexey Brodkin
Hi Rob, On Mon, 2018-03-05 at 15:07 -0600, Rob Herring wrote: > On Mon, Mar 05, 2018 at 11:02:56AM +0530, Vinod Koul wrote: > > On Fri, Mar 02, 2018 at 08:32:20AM +, Alexey Brodkin wrote: > > > Hi Vinod, > > > > > > On Fri, 2018-03-02 at 13:44 +0530, Vinod Koul wrote: > > > > On Mon, Feb 26,

[PATCH] xfrm_policy: use true and false for boolean values

2018-03-05 Thread Gustavo A. R. Silva
Assign true or false to boolean variables instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- net/xfrm/xfrm_policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_po

Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)

2018-03-05 Thread Dave Hansen
On 03/05/2018 01:37 PM, Khalid Aziz wrote: >> How big can this storage get, btw?  Superficially it seems like it might >> be able to be gigantic for a large, sparse VMA. >> > Tags are stored only for the pages being swapped out, not for the pages > in entire vma. Each tag storage page can hold tags

Re: [PATCH 08/36] aio: implement io_pgetevents

2018-03-05 Thread Jeff Moyer
Christoph Hellwig writes: > This is the io_getevents equivalent of ppoll/pselect and allows to > properly mix signals and aio completions (especially with IOCB_CMD_POLL) > and atomically executes the following sequence: > > sigset_t origmask; > > pthread_sigmask(SIG_SETMASK, &sigmask,

Re: [RFC V2 1/3] perf, tools: Support wildcards on pmu name in dynamic pmu events

2018-03-05 Thread Jiri Olsa
On Mon, Mar 05, 2018 at 03:10:43PM -0500, Agustin Vega-Frias wrote: > On 2018-03-05 14:09, Jiri Olsa wrote: > > On Mon, Mar 05, 2018 at 10:08:18AM -0500, Agustin Vega-Frias wrote: > > > On 2018-03-04 13:10, Jiri Olsa wrote: > > > > On Sun, Mar 04, 2018 at 09:12:45AM -0800, Andi Kleen wrote: > > > >

Re: [PATCH 14/36] aio: implement IOCB_CMD_POLL

2018-03-05 Thread Jeff Moyer
Christoph Hellwig writes: > 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

[PATCH] ipvs: use true and false for boolean values

2018-03-05 Thread Gustavo A. R. Silva
Assign true or false to boolean variables instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- net/netfilter/ipvs/ip_vs_lblc.c | 4 ++-- net/netfilter/ipvs/ip_vs_lblcr.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(

Re: [PATCH] PCI: Move declaration of of_irq_parse_and_map_pci under OF_IRQ

2018-03-05 Thread Rob Herring
On Mon, Feb 26, 2018 at 03:19:05PM -0800, Guenter Roeck wrote: > Since commit 4670d610d5923 ("PCI: Move OF-related PCI functions into > PCI core"), sparc:allmodconfig fails to build with the following error. > > pcie-cadence-host.c:(.text+0x4c4): > undefined reference to `of_irq_parse_and_ma

Re: [PATCH 07/34] x86/entry/32: Restore segments before int registers

2018-03-05 Thread Linus Torvalds
On Mon, Mar 5, 2018 at 1:35 PM, Joerg Roedel wrote: > On Mon, Mar 05, 2018 at 12:50:33PM -0800, Linus Torvalds wrote: >> >> Ahh, good. So presumably Joerg actually did check it, just didn't even >> notice ;) > > Yeah, sort of. I ran the test, but it didn't catch the failure case in > previous ver

Re: [PATCH v2] scsi: ufs-qcom: add number of lanes for Tx and Rx links

2018-03-05 Thread Rob Herring
On Tue, Feb 27, 2018 at 01:46:17PM +0800, Can Guo wrote: > From: Gilad Broner > > Different platforms may have different number of lanes for the UFS Tx/Rx > links. Add parameter to device tree specifying how many lanes should be > configured for the UFS Tx/Rx links. And don't print err message fo

Re: [PATCH v2] perf/core: Add support for PMUs that can be read from more than 1 CPU

2018-03-05 Thread Saravana Kannan
On 03/05/2018 04:21 AM, Mark Rutland wrote: On Mon, Mar 05, 2018 at 12:17:02PM +, Mark Rutland wrote: On Fri, Mar 02, 2018 at 05:14:53PM -0800, Saravana Kannan wrote: @@ -629,6 +629,7 @@ struct perf_event { int oncpu; int

[PATCH v2 4/4] input: misc: Add Gateworks System Controller support

2018-03-05 Thread Tim Harvey
Add support for dispatching Linux Input events for the various interrupts the Gateworks System Controller provides. Cc: Dmitry Torokhov Signed-off-by: Tim Harvey --- v2: - reword Kconfig - revise license comment block - remove unnecessary read of status register - remove unnecessary setting of i

[PATCH v2 3/4] hwmon: add Gateworks System Controller support

2018-03-05 Thread Tim Harvey
The Gateworks System Controller has a hwmon sub-component that exposes up to 16 ADC's, some of which are temperature sensors, others which are voltage inputs. The ADC configuration (register mapping and name) is configured via device-tree and varies board to board. Cc: Guenter Roeck Signed-off-by

[PATCH v2 2/4] mfd: add Gateworks System Controller core driver

2018-03-05 Thread Tim Harvey
The Gateworks System Controller (GSC) is an I2C slave controller implemented with an MSP430 micro-controller whose firmware embeds the following features: - I/O expander (16 GPIO's) using PCA955x protocol - Real Time Clock using DS1672 protocol - User EEPROM using AT24 protocol - HWMON using cu

[PATCH v2 1/4] dt-bindings: mfd: Add Gateworks System Controller bindings

2018-03-05 Thread Tim Harvey
This patch adds documentation of device-tree bindings for the Gateworks System Controller (GSC). Signed-off-by: Tim Harvey --- Documentation/devicetree/bindings/mfd/gsc.txt | 159 ++ 1 file changed, 159 insertions(+) create mode 100644 Documentation/devicetree/bindings/m

[PATCH v2 0/4] Add support for the Gateworks System Controller

2018-03-05 Thread Tim Harvey
This series adds support for the Gateworks System Controller used on Gateworks Laguna, Ventana, and Newport product families. The GSC is an MSP430 I2C slave controller whose firmware embeds the following features: - I/O expander (16 GPIO's emulating a PCA955x) - EEPROM (enumating AT24) - RTC (e

[PATCH] caif_dev: use true and false for boolean values

2018-03-05 Thread Gustavo A. R. Silva
Assign true or false to boolean variables instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- net/caif/caif_dev.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/caif/caif_dev.c b/net/caif/caif_

Re: [PATCH 07/34] x86/entry/32: Restore segments before int registers

2018-03-05 Thread H. Peter Anvin
On 03/05/18 13:58, Linus Torvalds wrote: > On Mon, Mar 5, 2018 at 1:35 PM, Joerg Roedel wrote: >> On Mon, Mar 05, 2018 at 12:50:33PM -0800, Linus Torvalds wrote: >>> >>> Ahh, good. So presumably Joerg actually did check it, just didn't even >>> notice ;) >> >> Yeah, sort of. I ran the test, but i

Re: [PATCH v2] perf/core: Add support for PMUs that can be read from more than 1 CPU

2018-03-05 Thread Saravana Kannan
On 03/05/2018 04:17 AM, Mark Rutland wrote: On Fri, Mar 02, 2018 at 05:14:53PM -0800, Saravana Kannan wrote: Some PMUs events can be read from more than the one CPU. So allow the PMU driver to mark events as such. For these events, we don't need to reject reads or make smp calls to the event's C

Re: [PATCH 4/7] x86/microcode: Do not upload microcode if CPUs are offline

2018-03-05 Thread Tom Lendacky
On 2/28/2018 4:28 AM, Borislav Petkov wrote: > From: Ashok Raj > > Avoid loading microcode if any of the CPUs are offline, and issue a > warning. Having different microcode revisions on the system at any time > is outright dangerous. > > Signed-off-by: Ashok Raj > Cc: x86-ml > Link: > http://

[PATCH net-next] dt-bindings: net: dsa: marvell: describe compatibility string

2018-03-05 Thread Brandon Streiff
There are two compatibility strings for mv88e6xxx, but it isn't clear from the documentation why only those two exist when the mv88e6xxx driver supports more than the 6085 and 6190. Briefly describe how the compatible property is used, and provide guidance on which to use. The model list comes fro

Re: [PATCH 1/6] tpm: sort objects in the Makefile

2018-03-05 Thread Jason Gunthorpe
On Mon, Mar 05, 2018 at 09:21:37PM +, Winkler, Tomas wrote: > > On Mon, Mar 05, 2018 at 10:20:12PM +0200, Tomas Winkler wrote: > > > Make the tpm Makefile a bit more in order by putting objects in one > > > column and group together tpm2 modules > > > > > > Prefer tpm-objs += instead of tpm-y +

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