[PATCH] hwmon: (lm75) Fix trailing semicolon

2018-01-17 Thread Luis de Bethencourt
The trailing semicolon is an empty statement that does no operation. Removing it since it doesn't do anything. Signed-off-by: Luis de Bethencourt --- Hi, After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches suggested I fix it treewide [0]. Best regards Luis [0] http://dri

Re: [PATCH 3/5] powerpc/ftw: Implement a simple FTW driver

2018-01-17 Thread Randy Dunlap
On 01/16/18 18:50, Sukadev Bhattiprolu wrote: > The Fast Thread Wake-up (FTW) driver provides user space applications an > interface to the low latency Core-to-Core wakeup functionality in POWER9. > > This mechanism allows a thread on one core to efficiently send a message > to a "waiting thread"

[PATCH] pci: Do not read INTx PIN and LINE registers for virtual functions

2018-01-17 Thread KarimAllah Ahmed
... since INTx is not supported by-spec for virtual functions. Cc: Bjorn Helgaas Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: KarimAllah Ahmed Signed-off-by: Jan H. Schönherr --- drivers/pci/probe.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/dri

Re: [PATCH v2] arm64: Branch predictor hardening for Cavium ThunderX2

2018-01-17 Thread Jon Masters
On 01/16/2018 06:45 PM, Jayachandran C wrote: > On Tue, Jan 16, 2018 at 04:52:53PM -0500, Jon Masters wrote: >> On 01/09/2018 07:47 AM, Jayachandran C wrote: >> >>> Use PSCI based mitigation for speculative execution attacks targeting >>> the branch predictor. The approach is similar to the one use

Re: [PATCH v2 05/31] net: Allow pernet_operations to be executed in parallel

2018-01-17 Thread Andrei Vagin
On Mon, Nov 20, 2017 at 09:32:55PM +0300, Kirill Tkhai wrote: > This adds new pernet_operations::async flag to indicate operations, > which ->init(), ->exit() and ->exit_batch() methods are allowed > to be executed in parallel with the methods of any other pernet_operations. > > When there are onl

Re: [PATCH v2 1/3] Revert "do_SAK: Don't recursively take the tasklist_lock"

2018-01-17 Thread Eric W. Biederman
Oleg Nesterov writes: > On 01/17, Eric W. Biederman wrote: >> >> Oleg Nesterov writes: >> >> > On 01/17, Eric W. Biederman wrote: >> > >> >> Kirill Tkhai writes: >> >> >> >> > This reverts commit 20ac94378de5. >> >> > >> >> > send_sig() does not take tasklist_lock for a long time, >> >> > so th

[PATCH] iommu/arm-smmu-v3: suppress MSI allocation failure message

2018-01-17 Thread Nate Watterson
From: Sinan Kaya Even though QDF2400 supports MSI interrupts with SMMUv3, it is not enabled in ACPI FW to preserve compatibility with older kernel versions. Code is emitting warning message during boot. This is causing some test tools to record a false warning and is causing support issues. Bet

Re: [PATCH v5 0/2] printk: Console owner and waiter logic cleanup

2018-01-17 Thread Steven Rostedt
On Wed, 17 Jan 2018 12:12:51 -0500 Steven Rostedt wrote: > @@ -2393,15 +2451,20 @@ void console_unlock(void) >* waiter waiting to take over. >*/ > console_lock_spinning_enable(); > + offload = recursion_check_start(); > > s

Re: Hi (Assigning NULL to variable after freeing it).

2018-01-17 Thread Randy Dunlap
On 01/17/18 02:44, Jose Bale wrote: > Hi All, > > I have just started to contribute to linux kernel. I was thinking of > giving a patch where a variable is made null after free if not already > done. > > Some thing like this: > Original code: > kfree(x); > ...some other code..

[PATCH] ASoC: Intel: remove select on non-existing SND_SOC_INTEL_COMMON

2018-01-17 Thread Corentin Labbe
SND_SST_ATOM_HIFI2_PLATFORM_PCI select SND_SOC_INTEL_COMMON which do not exists anymore. So remove this select. Fixes: c6059879be29 ("ASoC: Intel: Fix Kconfig with top-level selector") Signed-off-by: Corentin Labbe --- sound/soc/intel/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/so

Re: [PATCH] pci: Do not read INTx PIN and LINE registers for virtual functions

2018-01-17 Thread Alex Williamson
On Wed, 17 Jan 2018 19:30:29 +0100 KarimAllah Ahmed wrote: > ... since INTx is not supported by-spec for virtual functions. But the spec also states that VFs must implement the interrupt pin register as read-only zero, so either this is redundant or it's a workaround for VFs that aren't quite co

Re: [PATCH v6 02/12] drivers: base: cacheinfo: setup DT cache properties early

2018-01-17 Thread Jeremy Linton
Hi, On 01/17/2018 12:20 PM, Sudeep Holla wrote: On 16/01/18 21:07, Jeremy Linton wrote: Hi, On 01/15/2018 06:33 AM, Sudeep Holla wrote: On Fri, Jan 12, 2018 at 06:59:10PM -0600, Jeremy Linton wrote: The original intent in cacheinfo was that an architecture specific populate_cache_leaves()

[PATCH] drm: amd: Fix trailing semicolons

2018-01-17 Thread Luis de Bethencourt
The trailing semicolon is an empty statement that does no operation. Removing the two instances of them since they don't do anything. Signed-off-by: Luis de Bethencourt --- Hi, After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches suggested I fix it treewide [0]. Best regards

Re: [PATCH v3 8/9] x86: use __uaccess_begin_nospec and ASM_IFENCE in get_user paths

2018-01-17 Thread Al Viro
On Wed, Jan 17, 2018 at 02:17:26PM +, Alan Cox wrote: > On Tue, 2018-01-16 at 14:41 -0800, Linus Torvalds wrote: > > > > > > On Jan 16, 2018 14:23, "Dan Williams" > > wrote: > > > That said, for get_user specifically, can we do something even > > > cheaper. Dave H. reminds me that any valid

[PATCH] crypto: artpec6 - remove select on non-existing CRYPTO_SHA384

2018-01-17 Thread Corentin Labbe
Since CRYPTO_SHA384 does not exists, Kconfig should not select it. Anyway, all SHA384 stuff is in CRYPTO_SHA512 which is already selected. Fixes: a21eb94fc4d3i ("crypto: axis - add ARTPEC-6/7 crypto accelerator driver") Signed-off-by: Corentin Labbe --- drivers/crypto/Kconfig | 1 - 1 file chang

[PATCH] drm/nouveau/mmu: Fix trailing semicolon

2018-01-17 Thread Luis de Bethencourt
The trailing semicolon is an empty statement that does no operation. Removing it since it doesn't do anything. Signed-off-by: Luis de Bethencourt --- Hi, After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches suggested I fix it treewide [0]. Best regards Luis [0] http://dri

Re: [PATCH] iommu/arm-smmu-v3: suppress MSI allocation failure message

2018-01-17 Thread Robin Murphy
[ +Marc just in case ] On 17/01/18 18:39, Nate Watterson wrote: From: Sinan Kaya Even though QDF2400 supports MSI interrupts with SMMUv3, it is not enabled in ACPI FW to preserve compatibility with older kernel versions. Code is emitting warning message during boot. This is causing some test

[PATCH] drm/msm/mdp5: Fix trailing semicolon

2018-01-17 Thread Luis de Bethencourt
The trailing semicolon is an empty statement that does no operation. Removing it since it doesn't do anything. Signed-off-by: Luis de Bethencourt --- Hi, After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches suggested I fix it treewide [0]. Best regards Luis [0] http://dri

Re: [PATCH 08/11] fuse: Support fuse filesystems outside of init_user_ns

2018-01-17 Thread Alban Crequy
On Wed, Jan 17, 2018 at 3:29 PM, Seth Forshee wrote: > On Wed, Jan 17, 2018 at 11:59:06AM +0100, Alban Crequy wrote: >> [Adding Tejun, David, Tom for question about cuse] >> >> On Fri, Dec 22, 2017 at 3:32 PM, Dongsu Park wrote: >> > From: Seth Forshee >> > >> > In order to support mounts from n

[PATCH] MIPS: fix typo BIG_ENDIAN to CPU_BIG_ENDIAN

2018-01-17 Thread Corentin Labbe
MIPS_GENERIC select some options with condition on BIG_ENDIAN which do not exists. Replace BIG_ENDIAN by CPU_BIG_ENDIAN which is the correct kconfig name. Note that BMIP_GENERIC do the same which confirm that this patch is needed. Fixes: eed0eabd12ef0 ("MIPS: generic: Introduce generic DT-based bo

Re: [PATCH] pci: Do not read INTx PIN and LINE registers for virtual functions

2018-01-17 Thread KarimAllah Ahmed
On 01/17/2018 07:49 PM, Alex Williamson wrote: On Wed, 17 Jan 2018 19:30:29 +0100 KarimAllah Ahmed wrote: ... since INTx is not supported by-spec for virtual functions. But the spec also states that VFs must implement the interrupt pin register as read-only zero, so either this is redundant

Re: [net-next: PATCH v3 0/7] Armada 7k/8k PP2 ACPI support

2018-01-17 Thread Marcin Wojtas
Hi Andrew, 2018-01-17 19:11 GMT+01:00 Andrew Lunn : > On Wed, Jan 17, 2018 at 05:55:39PM +0100, Marcin Wojtas wrote: >> Hi, >> >> This is a third version of the patchset introducing mvpp2 driver ability >> to operate with ACPI. Until follow-up generic MDIO is introduced >> it can using the link in

[PATCH] usbip: prevent bind loops on devices attached to vhci_hcd

2018-01-17 Thread Shuah Khan
usbip host binds to devices attached to vhci_hcd on the same server when user does attach over localhost or specifies the server as the remote. usbip attach -r localhost -b busid or usbip attach -r servername (or server IP) Unbind followed by bind works, however device is left in a bad state with

[PATCH v4] input: pxrc: new driver for PhoenixRC Flight Controller Adapter

2018-01-17 Thread Marcus Folkesson
This driver let you plug in your RC controller to the adapter and use it as input device in various RC simulators. Signed-off-by: Marcus Folkesson --- v4: - Add call to usb_mark_last_busy() in irq - Move code from pxrc_resume() to pxrc_reset_resume() v3: - Use RUDDER and

[PATCH] usbip: list: don't list devices attached to vhci_hcd

2018-01-17 Thread Shuah Khan
usbip host lists devices attached to vhci_hcd on the same server when user does attach over localhost or specifies the server as the remote. usbip attach -r localhost -b busid or usbip attach -r servername (or server IP) Fix it to check and not list devices that are attached to vhci_hcd. Cc: sta

Re: [PATCH v5 12/44] clk: davinci: Add platform information for TI DA850 PSC

2018-01-17 Thread David Lechner
On 01/17/2018 05:57 AM, Sekhar Nori wrote: On Tuesday 16 January 2018 10:51 PM, David Lechner wrote: On 01/16/2018 08:00 AM, Sekhar Nori wrote: On Monday 08 January 2018 07:47 AM, David Lechner wrote: +void __init da850_psc_clk_init(void __iomem *psc0, void __iomem *psc1) +{ +    struct clk_on

Re: [PATCH] iommu/arm-smmu-v3: suppress MSI allocation failure message

2018-01-17 Thread Marc Zyngier
On 17/01/18 18:54, Robin Murphy wrote: > [ +Marc just in case ] > > On 17/01/18 18:39, Nate Watterson wrote: >> From: Sinan Kaya >> >> Even though QDF2400 supports MSI interrupts with SMMUv3, it is not enabled >> in ACPI FW to preserve compatibility with older kernel versions. Code is >> emitting

Re: [PATCH] pci: Do not read INTx PIN and LINE registers for virtual functions

2018-01-17 Thread Alex Williamson
On Wed, 17 Jan 2018 20:02:44 +0100 KarimAllah Ahmed wrote: > On 01/17/2018 07:49 PM, Alex Williamson wrote: > > On Wed, 17 Jan 2018 19:30:29 +0100 > > KarimAllah Ahmed wrote: > > > >> ... since INTx is not supported by-spec for virtual functions. > > But the spec also states that VFs must im

[PATCH] lib: Remove select of inexistant GENERIC_IO

2018-01-17 Thread Corentin Labbe
config option GENERIC_IO was removed but still selected by lib/kconfig This patch finish the cleaning. Fixes: 9de8da47742b ("kconfig: kill off GENERIC_IO option") Signed-off-by: Corentin Labbe --- lib/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index e960

Re: [PATCH v4] input: pxrc: new driver for PhoenixRC Flight Controller Adapter

2018-01-17 Thread Randy Dunlap
On 01/17/2018 11:07 AM, Marcus Folkesson wrote: > This driver let you plug in your RC controller to the adapter and > use it as input device in various RC simulators. > > Signed-off-by: Marcus Folkesson > --- > diff --git a/drivers/input/joystick/Kconfig b/drivers/input/joystick/Kconfig > index

Re: [alsa-devel] [PATCH] ASoC: Intel: remove select on non-existing SND_SOC_INTEL_COMMON

2018-01-17 Thread Pierre-Louis Bossart
On 1/17/18 12:43 PM, Corentin Labbe wrote: SND_SST_ATOM_HIFI2_PLATFORM_PCI select SND_SOC_INTEL_COMMON which do not exists anymore. So remove this select. Fixes: c6059879be29 ("ASoC: Intel: Fix Kconfig with top-level selector") Signed-off-by: Corentin Labbe Yes indeed, it's the only place thi

Re: [PATCH v5 1/2] printk: Add console owner and waiter logic to load balance console writes

2018-01-17 Thread Rasmus Villemoes
On 2018-01-12 18:11, Steven Rostedt wrote: > On Fri, 12 Jan 2018 11:54:54 -0500 > Steven Rostedt wrote: > >> #include >> #include >> #include >> #include >> #include >> #include >> >> > > >> >> Hmm, how does one have git commit not remove the C preprocessor at the >> start of the module?

Re: [patch v17 1/4] drivers: jtag: Add JTAG core driver

2018-01-17 Thread Julia Cartwright
Hello Oleksandr- On Tue, Jan 16, 2018 at 09:18:56AM +0200, Oleksandr Shamray wrote: [..] > v16->v17 > Comments pointed by Julia Cartwright More review feedback below: [..] > +++ b/drivers/jtag/jtag.c [..] > +static long jtag_ioctl(struct file *file, unsigned int cmd, unsigned long > arg) > +{

Re: [PATCH v3 8/9] x86: use __uaccess_begin_nospec and ASM_IFENCE in get_user paths

2018-01-17 Thread Linus Torvalds
On Tue, Jan 16, 2018 at 8:30 PM, Dan Williams wrote: > > I think the access_ok() conversion to return a speculation sanitized > pointer or NULL is the way to go unless I'm missing something simpler. No, that's way too big of a conversion. Just make get_user() and friends (that currently use ASM_

Back from my parental leave

2018-01-17 Thread Joerg Roedel
Hi, as some of you already noticed I am back from my leave and am now taking back the responsibility for the iommu code in the kernel. Actually I am already back since January 2nd, but I got immediatly thrown into the Meltdown mitigation work. So I couldn't catch up with IOMMU things as fast as I

Re: AIO operation and CMSG

2018-01-17 Thread Christoph Hellwig
On Sun, Jan 14, 2018 at 09:01:00AM +0100, Stephan Müller wrote: > The syscall io_submit sends data to the kernel and invokes the respective > handler function in the kernel such as the recvmsg handler. What I am > wondering is whether there is a way to send CMSG data along with the > io_submit

Re: [PATCH] iommu/arm-smmu-v3: suppress MSI allocation failure message

2018-01-17 Thread Joerg Roedel
On Wed, Jan 17, 2018 at 07:08:39PM +, Marc Zyngier wrote: > On 17/01/18 18:54, Robin Murphy wrote: > Indeed. How about checking dev->msi_domain first, which should tell you > whether it is even possible to allocate MSIs, and fallback to wired IRQs > instead. That way, we keep the warning on ge

Re: [PATCH v3 8/9] x86: use __uaccess_begin_nospec and ASM_IFENCE in get_user paths

2018-01-17 Thread Linus Torvalds
On Wed, Jan 17, 2018 at 6:17 AM, Alan Cox wrote: > > Can we kill off the remaining users of set_fs() ? I would love to, but it's not going to happen short-term. If ever. Some could be removed today: the code in arch/x86/net/bpf_jit_comp.c seems to be literally the ramblings of a diseased mind. T

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

2018-01-17 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

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

2018-01-17 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

[PATCH 05/36] aio: simplify cancellation

2018-01-17 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 01/36] aio: don't print the page size at boot time

2018-01-17 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-01-17 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 18/36] net/tcp: convert to ->poll_mask

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

[PATCH 13/36] fs: introduce new ->get_poll_head and ->poll_mask methods

2018-01-17 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 10/36] fs: cleanup do_pollfd

2018-01-17 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 4e1dcca

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

2018-01-17 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 15/36] net: refactor socket_poll

2018-01-17 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 21/36] net/dccp: convert to ->poll_mask

2018-01-17 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 19/36] net/unix: convert to ->poll_mask

2018-01-17 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 6b7678df41e5..f426a6f68355 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -638,9

[PATCH 23/36] net/vmw_vsock: convert to ->poll_mask

2018-01-17 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 bbd97d3bd8fb..664c6346c0d6 100644 --- a/net/vmw_vsock/af_vsock.c +++ b/net/vmw_vsock/af_

[PATCH 27/36] net/caif: convert to ->poll_mask

2018-01-17 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 64048cec41e0..3e47cafbe3e7 100644 --- a/net/caif/caif_socket.c +++ b/net/caif/caif_socket.c @@ -934,15

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

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

2018-01-17 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 985909f105eb..1ee9f35084b1 100644 --- a/net/nfc/llcp_sock.c +++ b/net/nfc/llcp_sock.c @@ -549,16 +549,13 @@ static

[PATCH 33/36] pipe: convert to ->poll_mask

2018-01-17 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 a449ca0ec0c6..33a32d13b83d 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -514,19 +514,22 @@ static long pipe_ioctl(struct file *filp,

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

2018-01-17 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/36] net/rxrpc: convert to ->poll_mask

2018-01-17 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 21ad6a3a465c..46d393ef99e0 100644 --- a/net/rxrpc/af_rxrpc.c +++ b/net/rxrpc/af_rxrpc.c @@ -729,15 +729,11 @@

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

2018-01-17 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 6318a9b57e53..2bbbf13cb816 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -114,14 +114,20 @@ static int eventfd_release(struct

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

2018-01-17 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 0510717f3a53..ee36bb5b2698 100644 --- a/fs/timerfd.c +++ b/fs/timerfd.c @@ -226,21 +226,20 @@ static int timerfd_release

Re: ipv6 redefinition build issue with 4.15-rc8

2018-01-17 Thread Neil MacLeod
All Further to my previous reply (reproduced below having been bounced by linux-kernel) I have successfully built LibreELEC when using the ConnMan patch from Jonas - there were no other failures. I have also built a number of network related packages (iftop, iperf, ngrp, nmap, sshfs, tcpdump, udp

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

2018-01-17 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 592797ec

Re: [PATCH 08/11] fuse: Support fuse filesystems outside of init_user_ns

2018-01-17 Thread Seth Forshee
On Wed, Jan 17, 2018 at 07:56:59PM +0100, Alban Crequy wrote: > On Wed, Jan 17, 2018 at 3:29 PM, Seth Forshee > wrote: > > On Wed, Jan 17, 2018 at 11:59:06AM +0100, Alban Crequy wrote: > >> [Adding Tejun, David, Tom for question about cuse] > >> > >> On Fri, Dec 22, 2017 at 3:32 PM, Dongsu Park w

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

2018-01-17 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 7563b0ac8386..c18c906c025f 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-01-17 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 25/36] net/sctp: convert to ->poll_mask

2018-01-17 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 608d123ef2

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

2018-01-17 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 fcbd6489a8b5..527d113c38b0 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -693,10 +693,9 @@ static int t

Re: [PATCH v5 1/2] printk: Add console owner and waiter logic to load balance console writes

2018-01-17 Thread Steven Rostedt
On Wed, 17 Jan 2018 20:13:28 +0100 Rasmus Villemoes wrote: > If you use at least git 2.0.0 [1], set commit.cleanup to "scissors". > Something like > > git config commit.cleanup scissors > > should do the trick. Instead of stripping all lines starting with #, > that will only strip stuff below

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

2018-01-17 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 8f12f1c6fa14..07223ef2a220 100644 --- a/n

[PATCH 17/36] net: remove sock_no_poll

2018-01-17 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 -

[PATCH 20/36] net: convert datagram_poll users tp ->poll_mask

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

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

2018-01-17 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 14/36] aio: implement IOCB_CMD_POLL

2018-01-17 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 11/36] fs: update documentation for __poll_t

2018-01-17 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 --

Re: [PATCH v5 00/17] ASoC: fsl_ssi: Clean up - program flow level

2018-01-17 Thread Maciej S. Szmigiero
On 17.01.2018 07:51, Nicolin Chen wrote: > [ Maciej, could you please send your Tested-by/Reviewed-by for AC97 > once you confirm this series? > > And Caleb, this version does not need a test for non-AC97 cases. > > Thanks both! ] > > ==Change log== > v5 > * Reworked the series by takin

[PATCH 09/36] fs: unexport poll_schedule_timeout

2018-01-17 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 ec14171dd78a..4e1dccac2702 100644 --- a/fs/select.c +++ b/fs/select.c @@ -23

[PATCH 08/36] aio: implement io_pgetevents

2018-01-17 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] Kbuild: suppress packed-not-aligned warning for default setting only

2018-01-17 Thread Arnd Bergmann
On Wed, Jan 17, 2018 at 5:12 PM, Masahiro Yamada wrote: > 2018-01-11 18:22 GMT+09:00 Xiongfeng Wang : >> From: Xiongfeng Wang >> >> gcc-8 reports many -Wpacked-not-aligned warnings. The below are some >> examples. >> >> ./include/linux/ceph/msgr.h:67:1: warning: alignment 1 of 'struct >> ceph_ent

[PATCH 04/36] aio: sanitize ki_list handling

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

2018-01-17 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

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

2018-01-17 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

Re: kexec reboot fails with extra wbinvd introduced for AME SME

2018-01-17 Thread Linus Torvalds
On Tue, Jan 16, 2018 at 11:22 PM, Dave Young wrote: > > For the kexec reboot hang, if I remove the wbinvd in stop_this_cpu() > then kexec works fine. like this: Honestly, I think we should apply that patch regardless. Using 'wbinvd' should not be some "just because of random reasons". There are

Re: [PATCH] [RESEND] drm: i915: remove timeval users

2018-01-17 Thread Arnd Bergmann
On Wed, Jan 17, 2018 at 7:02 PM, Chris Wilson wrote: > Quoting Arnd Bergmann (2018-01-17 15:48:53) >> struct timeval is deprecated because it cannot represent times >> past 2038. In this driver, the only use of this structure is >> to capture debug information. This is easily changed to ktime_t, >

Re: [PATCH] lib: Remove select of inexistant GENERIC_IO

2018-01-17 Thread Rob Herring
+Richard On Wed, Jan 17, 2018 at 1:10 PM, Corentin Labbe wrote: > config option GENERIC_IO was removed but still selected by lib/kconfig > This patch finish the cleaning. > > Fixes: 9de8da47742b ("kconfig: kill off GENERIC_IO option") > Signed-off-by: Corentin Labbe > --- > lib/Kconfig | 1 - >

Re: [PATCH] [RESEND] drm/gma500: initialize gma_clock_t structures

2018-01-17 Thread Arnd Bergmann
On Wed, Jan 17, 2018 at 3:55 PM, Daniel Vetter wrote: > On Wed, Jan 17, 2018 at 3:36 PM, Arnd Bergmann wrote: >> On Wed, Jan 17, 2018 at 9:27 AM, Daniel Vetter wrote: >>> On Tue, Jan 16, 2018 at 03:57:10PM +0100, Arnd Bergmann wrote: The two functions pass a partially initialized structure

Re: [PATCH v4] input: pxrc: new driver for PhoenixRC Flight Controller Adapter

2018-01-17 Thread Marcus Folkesson
Hi Randy! On Wed, Jan 17, 2018 at 11:13:43AM -0800, Randy Dunlap wrote: > On 01/17/2018 11:07 AM, Marcus Folkesson wrote: > > This driver let you plug in your RC controller to the adapter and > > use it as input device in various RC simulators. > > > > Signed-off-by: Marcus Folkesson > > --- >

[PATCH] aio: resurrect IOCB_CMD_FSYNC and IOCB_CMD_FDSYNC support

2018-01-17 Thread Christoph Hellwig
These and the ->aio_fsync method had been merged together with the initial aio support, but no ->aio_fsync method had ever been implemented in mainline, so it got removed a while ago. This patch wires up the iocb commands to a simple workqueue based offload that already shows great performance. I

aio fsync revisited

2018-01-17 Thread Christoph Hellwig
Hi all, this patch adds workqueue based fsync offload. Version of this patch have been floating around for a couple years, but we now have a user with seastar used by ScyllaDB (who sponsored this work) that really wants this in addition to the aio poll support. More details are in the patch itsel

Re: [PATCH v3 8/9] x86: use __uaccess_begin_nospec and ASM_IFENCE in get_user paths

2018-01-17 Thread Dan Williams
On Wed, Jan 17, 2018 at 10:52 AM, Al Viro wrote: > On Wed, Jan 17, 2018 at 02:17:26PM +, Alan Cox wrote: [..] > Incidentally, what about copy_to_iter() and friends? They > check iov_iter flavour and go either into the "copy to kernel buffer" > or "copy to userland" paths. Do we need

Re: [PATCH] MIPS: fix typo BIG_ENDIAN to CPU_BIG_ENDIAN

2018-01-17 Thread James Hogan
On Wed, Jan 17, 2018 at 07:56:38PM +0100, Corentin Labbe wrote: > MIPS_GENERIC select some options with condition on BIG_ENDIAN which do > not exists. > Replace BIG_ENDIAN by CPU_BIG_ENDIAN which is the correct kconfig name. > Note that BMIP_GENERIC do the same which confirm that this patch is > ne

Re: kexec reboot fails with extra wbinvd introduced for AME SME

2018-01-17 Thread Tom Lendacky
On 1/17/2018 1:42 PM, Linus Torvalds wrote: > On Tue, Jan 16, 2018 at 11:22 PM, Dave Young wrote: >> >> For the kexec reboot hang, if I remove the wbinvd in stop_this_cpu() >> then kexec works fine. like this: > > Honestly, I think we should apply that patch regardless. > > Using 'wbinvd' should

Re: [PATCH v3 8/9] x86: use __uaccess_begin_nospec and ASM_IFENCE in get_user paths

2018-01-17 Thread Eric Dumazet
On Wed, Jan 17, 2018 at 11:26 AM, Linus Torvalds wrote: > On Wed, Jan 17, 2018 at 6:17 AM, Alan Cox wrote: >> >> Can we kill off the remaining users of set_fs() ? > > I would love to, but it's not going to happen short-term. If ever. > > Some could be removed today: the code in arch/x86/net/bpf_j

Re: [PATCH v5 00/17] ASoC: fsl_ssi: Clean up - program flow level

2018-01-17 Thread Nicolin Chen
On Wed, Jan 17, 2018 at 08:38:48PM +0100, Maciej S. Szmigiero wrote: > However, I have a small nitpick regarding a comment newly added in > this version of patch 16: > + /* > + * Do not set SSI dev as the parent of AC97 CODEC device since > + * it does not hav

Re: [PATCH v3 00/10] perf tools: Add support for CoreSight trace decoding

2018-01-17 Thread Arnaldo Carvalho de Melo
Em Wed, Jan 17, 2018 at 10:52:09AM -0700, Mathieu Poirier escreveu: > Hi Arnaldo, > > This patchset adds support for per-thread CoreSight trace decoding from the > "perf report" interface. It is largely modelled on what has been done for > intelPT traces and currently targets the ETMv4 architectu

Re: [PATCH v2 03/31] net: Introduce net_sem for protection of pernet_list

2018-01-17 Thread Andrei Vagin
On Mon, Nov 20, 2017 at 09:32:34PM +0300, Kirill Tkhai wrote: > Curently mutex is used to protect pernet operations list. It makes > cleanup_net() to execute ->exit methods of the same operations set, > which was used on the time of ->init, even after net namespace is > unlinked from net_namespace_

Re: [PATCH v3 8/9] x86: use __uaccess_begin_nospec and ASM_IFENCE in get_user paths

2018-01-17 Thread Al Viro
On Wed, Jan 17, 2018 at 11:54:12AM -0800, Dan Williams wrote: > On Wed, Jan 17, 2018 at 10:52 AM, Al Viro wrote: > > On Wed, Jan 17, 2018 at 02:17:26PM +, Alan Cox wrote: > [..] > > Incidentally, what about copy_to_iter() and friends? They > > check iov_iter flavour and go either into

Re: [PATCH v5 0/2] printk: Console owner and waiter logic cleanup

2018-01-17 Thread Tejun Heo
Hello, Steven. On Wed, Jan 17, 2018 at 12:12:51PM -0500, Steven Rostedt wrote: > From what I gathered, you said an OOM would trigger, and then the > network console would not be able to allocate memory and it would > trigger a printk too, and cause an infinite amount of printks. Yeah, it falls in

Re: [PATCH] IIO: ADC: stm32-dfsdm: remove unused variable

2018-01-17 Thread Arnd Bergmann
On Wed, Jan 17, 2018 at 4:27 PM, Arnaud Pouliquen wrote: > Hi Arnd, > > On 01/17/2018 03:46 PM, Arnd Bergmann wrote: >> A cleanup left one variable behind that is no longer needed and >> can be removed, as shown by the gcc warning: >> >> drivers/iio/adc/stm32-dfsdm-core.c: In function 'stm32_dfsdm

Re: kexec reboot fails with extra wbinvd introduced for AME SME

2018-01-17 Thread Linus Torvalds
On Wed, Jan 17, 2018 at 11:42 AM, Linus Torvalds wrote: > > [ .. ]Some of the errata > around SME have been about machine check exceptions or something. That should be "some of the errata around wbinvd". I have no idea if there have been SME issues. That said, the really bad old wbinvd

Re: [PATCH v4] input: pxrc: new driver for PhoenixRC Flight Controller Adapter

2018-01-17 Thread Randy Dunlap
On 01/17/2018 11:45 AM, Marcus Folkesson wrote: > Hi Randy! > > On Wed, Jan 17, 2018 at 11:13:43AM -0800, Randy Dunlap wrote: >> On 01/17/2018 11:07 AM, Marcus Folkesson wrote: >>> This driver let you plug in your RC controller to the adapter and >>> use it as input device in various RC simulators

Re: [PATCH v3 8/9] x86: use __uaccess_begin_nospec and ASM_IFENCE in get_user paths

2018-01-17 Thread Dan Williams
On Wed, Jan 17, 2018 at 12:05 PM, Al Viro wrote: > On Wed, Jan 17, 2018 at 11:54:12AM -0800, Dan Williams wrote: >> On Wed, Jan 17, 2018 at 10:52 AM, Al Viro wrote: >> > On Wed, Jan 17, 2018 at 02:17:26PM +, Alan Cox wrote: >> [..] >> > Incidentally, what about copy_to_iter() and frie

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