Re: [REGRESSION] v4.17-rc4: xgalaga fails to start in fullscreen (default) mode

2018-05-23 Thread Vito Caputo
On Wed, May 23, 2018 at 09:20:37PM +0300, Ville Syrjälä wrote: > On Wed, May 23, 2018 at 11:06:00AM -0700, Vito Caputo wrote: > > On Wed, May 23, 2018 at 04:18:05PM +0300, Ville Syrjälä wrote: > > > On Wed, May 23, 2018 at 02:49:19AM -0700, Vito Caputo wrote: > > > > On Mon, May 21, 2018 at 02:57:1

Re: Suggestion: „spectre_v2=off“ and „nopti“ per default in "Intel Atom N270" case?

2018-05-23 Thread Christian Krüger
Am 23.05.2018 um 19:07 schrieb Johannes Hirte: On 2018 Mai 23, Pavel Machek wrote: On Sat 2018-05-19 21:53:02, Christian Krüger wrote: Hi, Since the old "in-order-execution" Intel CPUs like the Intel Atom N270 (known for being installed in many Netbooks and Nettops) are not sensitive for "Melt

Re: [PATCH net-next v2 0/3] net: sfp: small improvements

2018-05-23 Thread Florian Fainelli
On 05/22/2018 03:17 AM, Antoine Tenart wrote: > Hi Russell, David, > > A small series of patches improving the SFP support by adding a warning > when no Tx disable pin is available, and making the i2c-bus property > mandatory. > > Thanks! > Antoine Antoine, can you please do CC the people who wo

[PATCHv2] arm64: Make sure permission updates happen for pmd/pud

2018-05-23 Thread Laura Abbott
Commit 15122ee2c515 ("arm64: Enforce BBM for huge IO/VMAP mappings") disallowed block mappings for ioremap since that code does not honor break-before-make. The same APIs are also used for permission updating though and the extra checks prevent the permission updates from happening, even though thi

Re: pull-request: wireless-drivers 2018-05-22

2018-05-23 Thread David Miller
From: Kalle Valo Date: Tue, 22 May 2018 17:28:11 +0300 > here's a pull request to net tree for 4.17. Please let me know if you > have any problems. Pulled, thanks Kalle.

Re: semantics of rhashtable and sysvipc

2018-05-23 Thread Davidlohr Bueso
On Wed, 23 May 2018, Linus Torvalds wrote: So I'm perfectly fine with getting rid of 'tables_initialized'. But no, not with a BUG_ON(). If you cannot guarantee that the allocation works (using __GFP_NOFAIL is ok, for example - but it only works with small allocations), then you need to handle t

Re: [PATCH RFC 1/3] scsi: ufs: set the device reference clock setting

2018-05-23 Thread Rob Herring
On Tue, May 22, 2018 at 09:51:38AM +0530, Sayali Lokhande wrote: > From: Subhash Jadavani > > UFS host supplies the reference clock to UFS device and UFS device > specification allows host to provide one of the 4 frequencies (19.2 MHz, > 26 MHz, 38.4 MHz, 52 MHz) for reference clock. Host should

Re: [PATCH] bdi: Move cgroup bdi_writeback to a dedicated low concurrency workqueue

2018-05-23 Thread Paul E. McKenney
On Wed, May 23, 2018 at 10:56:32AM -0700, Tejun Heo wrote: > >From 0aa2e9b921d6db71150633ff290199554f0842a8 Mon Sep 17 00:00:00 2001 > From: Tejun Heo > Date: Wed, 23 May 2018 10:29:00 -0700 > > cgwb_release() punts the actual release to cgwb_release_workfn() on > system_wq. Depending on the num

Re: [RFC V2] virtio: Add platform specific DMA API translation for virito devices

2018-05-23 Thread Michael S. Tsirkin
subj: s/virito/virtio/ On Tue, May 22, 2018 at 12:03:17PM +0530, Anshuman Khandual wrote: > This adds a hook which a platform can define in order to allow it to > force the use of the DMA API for all virtio devices even if they don't > have the VIRTIO_F_IOMMU_PLATFORM flag set. We want to use thi

Re: [PATCH][V2] net: vxge: fix spelling mistake in macro VXGE_HW_ERR_PRIVILAGED_OPEARATION

2018-05-23 Thread David Miller
From: Colin King Date: Tue, 22 May 2018 17:18:09 +0100 > From: Colin Ian King > > Rename VXGE_HW_ERR_PRIVILAGED_OPEARATION to VXGE_HW_ERR_PRIVILEGED_OPERATION > to fix spelling mistake. > > Signed-off-by: Colin Ian King > --- > V2: PRIVILAGED -> PRIVILEGED, thanks to Edward Cree for spotting

[PATCH REPOST] mm: memcg: allow lowering memory.swap.max below the current usage

2018-05-23 Thread Tejun Heo
Currently an attempt to set swap.max into a value lower than the actual swap usage fails, which causes configuration problems as there's no way of lowering the configuration below the current usage short of turning off swap entirely. This makes swap.max difficult to use and allows delegatees to lo

Re: [PATCH] bdi: Move cgroup bdi_writeback to a dedicated low concurrency workqueue

2018-05-23 Thread Tejun Heo
On Wed, May 23, 2018 at 11:39:07AM -0700, Paul E. McKenney wrote: > > While this resolves the problem at hand, it might be a good idea to > > isolate rcu_exp_work to its own workqueue too as it can be used from > > various paths and is prone to this sort of indirect A-A deadlocks. > > Commit ad7c9

Re: semantics of rhashtable and sysvipc

2018-05-23 Thread Linus Torvalds
On Wed, May 23, 2018 at 11:47 AM Davidlohr Bueso wrote: > Note that even if the allocation was guaranteed, there are still param validations > and rhashtable_init() can return -EINVAL. So? It's not going to happen, because you're not going to give garbage parameters. Why would you add a BUG_ON

Re: [PATCH 3/6] ASoC: ams_delta: use GPIO lookup table

2018-05-23 Thread Tony Lindgren
* Mark Brown [180521 10:07]: > On Fri, May 18, 2018 at 11:09:51PM +0200, Janusz Krzysztofik wrote: > > Now as the Amstrad Delta board provides GPIO lookup tables, switch from > > GPIO numbers to GPIO descriptors and use the table to locate required > > GPIO pins. > > Acked-by: Mark Brown Thanks

[PATCH] gpu: drm: ttm: Adding new return type vm_fault_t

2018-05-23 Thread Souptick Joarder
Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Ref-> commit 1c8f422059ae ("mm: change return type to vm_fault_t") Previou

Re: [PATCH] Revert "mm/cma: manage the memory of the CMA area by using the ZONE_MOVABLE"

2018-05-23 Thread Laura Abbott
On 05/22/2018 06:18 PM, js1...@gmail.com wrote: From: Joonsoo Kim This reverts the following commits that change CMA design in MM. Revert "ARM: CMA: avoid double mapping to the CMA area if CONFIG_HIGHMEM=y" This reverts commit 3d2054ad8c2d5100b68b0c0405f89fd90bf4107b. Revert "mm/cma: remove A

Re: B53 DSA switch problem on Banana Pi-R1 on Fedora 26

2018-05-23 Thread Florian Fainelli
On 05/23/2018 11:27 AM, Gerhard Wiesinger wrote: > On 23.05.2018 19:55, Florian Fainelli wrote: >> On 05/23/2018 10:35 AM, Gerhard Wiesinger wrote: >>> On 23.05.2018 17:28, Florian Fainelli wrote: > And in the future (time plan)? If you don't care about multicast then you can use those pat

Re: [PATCH] arm64: kvm: use -fno-jump-tables with clang

2018-05-23 Thread Andrey Konovalov
On Wed, May 23, 2018 at 7:47 PM, Nick Desaulniers wrote: > On Wed, May 23, 2018 at 4:54 AM Andrey Konovalov > wrote: >> On Tue, May 22, 2018 at 8:28 PM, Nick Desaulniers >> wrote: >> > On Fri, May 18, 2018 at 11:13 AM Marc Zyngier > wrote: >> >> > - you have checked that with a released version

Re: [PATCH net-next] hv_netvsc: Add handlers for ethtool get/set msg level

2018-05-23 Thread David Miller
From: Haiyang Zhang Date: Tue, 22 May 2018 11:29:34 -0700 > From: Haiyang Zhang > > The handlers for ethtool get/set msg level are missing from netvsc. > This patch adds them. > > Signed-off-by: Haiyang Zhang Applied.

Re: [PATCH 1/5] Documentation: DT: Add optional 'timeout-sec' property for sp805

2018-05-23 Thread Rob Herring
On Wed, May 23, 2018 at 09:25:49AM -0700, Ray Jui wrote: > > > On 5/23/2018 3:57 AM, Robin Murphy wrote: > > On 22/05/18 19:47, Ray Jui wrote: > > > Update the SP805 binding document to add optional 'timeout-sec' > > > devicetree property > > > > > > Signed-off-by: Ray Jui > > > Reviewed-by: Sc

Re: [PATCH] dma-buf: simplified calling conventions for dma_buf_fd()

2018-05-23 Thread Laura Abbott
On 05/22/2018 01:09 AM, Jens Wiklander wrote: From: Al Viro Make dma_buf_fd() drop the file reference on failure, folding dma_buf_put() into it. Users of dma_buf_fd() (drm, videobuf2, ion and tee) are updated to take the new calling convention into account. For the Ion portion, Acked-by: L

Re: semantics of rhashtable and sysvipc

2018-05-23 Thread Davidlohr Bueso
On Wed, 23 May 2018, Linus Torvalds wrote: On Wed, May 23, 2018 at 11:47 AM Davidlohr Bueso wrote: Note that even if the allocation was guaranteed, there are still param validations and rhashtable_init() can return -EINVAL. So? It's not going to happen, because you're not going to give g

Re: [PATCH 0/2] x86/boot/KASLR: Skip specified number of 1GB huge pages when do physical randomization

2018-05-23 Thread Luiz Capitulino
On Fri, 18 May 2018 19:28:36 +0800 Baoquan He wrote: > > Note that it's not KASLR specific: if we had some other kernel feature that > > tried > > to allocate a piece of memory from what appears to be perfectly usable > > generic RAM > > we'd have the same problems! > > Hmm, this may not b

Re: [REGRESSION] v4.17-rc4: xgalaga fails to start in fullscreen (default) mode

2018-05-23 Thread Ville Syrjälä
On Wed, May 23, 2018 at 11:39:00AM -0700, Vito Caputo wrote: > On Wed, May 23, 2018 at 09:20:37PM +0300, Ville Syrjälä wrote: > > On Wed, May 23, 2018 at 11:06:00AM -0700, Vito Caputo wrote: > > > On Wed, May 23, 2018 at 04:18:05PM +0300, Ville Syrjälä wrote: > > > > On Wed, May 23, 2018 at 02:49:1

Re: INFO: task hung in lock_mount

2018-05-23 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:a048a07d7f45 powerpc/64s: Add support for a store forwardi.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1084cc2780 kernel config: https://syzkaller.appspot.com/x/.config?x=982e2d

Re: [PATCH 1/4] rcu: Speed up calling of RCU tasks callbacks

2018-05-23 Thread Steven Rostedt
On Wed, 23 May 2018 10:03:03 -0700 "Paul E. McKenney" wrote: > > > > diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c > > > > index 5783bdf86e5a..a28698e44b08 100644 > > > > --- a/kernel/rcu/update.c > > > > +++ b/kernel/rcu/update.c > > > > @@ -743,6 +743,12 @@ static int __noreturn rcu_ta

[PATCH 1/5] regulator: pfuze100: Switch to SPDX identifier

2018-05-23 Thread Fabio Estevam
From: Fabio Estevam Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Fabio Estevam --- drivers/regulator/pfuze100-regulator.c | 21 - 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/drivers/regulator/pfuze100-reg

[PATCH 4/5] regulator: mc13892: Switch to SPDX identifier

2018-05-23 Thread Fabio Estevam
From: Fabio Estevam Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Fabio Estevam --- drivers/regulator/mc13892-regulator.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers/regulator/mc13892-regulato

[PATCH 3/5] regulator: mc13783: Switch to SPDX identifier

2018-05-23 Thread Fabio Estevam
From: Fabio Estevam Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Fabio Estevam --- drivers/regulator/mc13783-regulator.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers/regulator/mc13783-regulato

[PATCH 2/5] regulator: anatop: Switch to SPDX identifier

2018-05-23 Thread Fabio Estevam
From: Fabio Estevam Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Fabio Estevam --- drivers/regulator/anatop-regulator.c | 22 +++--- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/drivers/regulator/anatop-regula

[PATCH 5/5] regulator: mc13xxx-core: Switch to SPDX identifier

2018-05-23 Thread Fabio Estevam
From: Fabio Estevam Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Fabio Estevam --- drivers/regulator/mc13xxx-regulator-core.c | 28 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/drivers/regulator/

Re: [PATCH net] net: phy: broadcom: Fix auxiliary control register reads

2018-05-23 Thread David Miller
From: Florian Fainelli Date: Tue, 22 May 2018 16:22:26 -0700 > We are currently doing auxiliary control register reads with the shadow > register value 0b111 (0x7) which incidentally is also the selector value > that should be present in bits [2:0]. Fix this by using the appropriate > selector ma

[PATCH 02/33] uapi: turn __poll_t sparse checkin on by default

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/uapi/linux/types.h | 4 1 file changed, 4 deletions(-) diff --git a/include/uapi/linux/types.h b/include/uapi/linux/types.h index cd4f0b897a48..2fce8b6876e9 100644 --- a/include/uapi/linux/types.h +++ b/include/uapi/linux/types.h @@ -49,11 +49,7

Re: [PATCH] bdi: Move cgroup bdi_writeback to a dedicated low concurrency workqueue

2018-05-23 Thread Paul E. McKenney
On Wed, May 23, 2018 at 11:51:43AM -0700, Tejun Heo wrote: > On Wed, May 23, 2018 at 11:39:07AM -0700, Paul E. McKenney wrote: > > > While this resolves the problem at hand, it might be a good idea to > > > isolate rcu_exp_work to its own workqueue too as it can be used from > > > various paths and

[PATCH 05/33] fs: update documentation to mention __poll_t and match the code

2018-05-23 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 17/33] net: convert datagram_poll users tp ->poll_mask

2018-05-23 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 11/33] aio: try to complete poll iocbs without context switch

2018-05-23 Thread Christoph Hellwig
If we can acquire ctx_lock without spinning we can just remove our iocb from the active_reqs list, and thus complete the iocbs from the wakeup context. Signed-off-by: Christoph Hellwig --- fs/aio.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/fs/aio.c

[PATCH 18/33] net/dccp: convert to ->poll_mask

2018-05-23 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 08/33] aio: simplify KIOCB_KEY handling

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

[PATCH 14/33] net: remove sock_no_poll

2018-05-23 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 21/33] net/tipc: convert to ->poll_mask

2018-05-23 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 6be21575503a..3bb45042e833 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -692,10 +692,9 @@ static int t

[PATCH 24/33] net/caif: convert to ->poll_mask

2018-05-23 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 29/33] crypto: af_alg: convert to ->poll_mask

2018-05-23 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 32/33] timerfd: convert to ->poll_mask

2018-05-23 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 27/33] net/iucv: convert to ->poll_mask

2018-05-23 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 33/33] random: convert to ->poll_mask

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

Re: [PATCH 3/8] md: raid5: use refcount_t for reference counting instead atomic_t

2018-05-23 Thread Shaohua Li
On Wed, May 23, 2018 at 07:49:04PM +0200, Peter Zijlstra wrote: > On Wed, May 23, 2018 at 06:21:19AM -0700, Matthew Wilcox wrote: > > On Wed, May 09, 2018 at 09:36:40PM +0200, Sebastian Andrzej Siewior wrote: > > > refcount_t type and corresponding API should be used instead of atomic_t > > > when

[PATCH 31/33] eventfd: switch to ->poll_mask

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

2018-05-23 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 28/33] net/rxrpc: convert to ->poll_mask

2018-05-23 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 2b463047dd7b..3b1ac93efee2 100644 --- a/net/rxrpc/af_rxrpc.c +++ b/net/rxrpc/af_rxrpc.c @@ -734,15 +734,11 @@

Re: [PATCH] selftests: uevent filtering

2018-05-23 Thread David Miller
From: Christian Brauner Date: Tue, 22 May 2018 21:34:21 +0200 > Recent discussions around uevent filtering (cf. net-next commit [1], [2], > and [3] and discussions in [4], [5], and [6]) have shown that the semantics > around uevent filtering where not well understood. > Now that we have settled -

[PATCH 26/33] net/phonet: convert to ->poll_mask

2018-05-23 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 59f5b5dc5308..c295c4e20f01 100644 --- a/net/phonet/socket.c +++ b/net/phonet/socket.c @@ -340,15 +340,12 @@ static in

[PATCH 25/33] net/nfc: convert to ->poll_mask

2018-05-23 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 23/33] net/bluetooth: convert to ->poll_mask

2018-05-23 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 22/33] net/sctp: convert to ->poll_mask

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

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

[GIT PULL] pinctrl: samsung: Stuff for v4.18 (second version)

2018-05-23 Thread Krzysztof Kozlowski
Hi Linus, This is updated pull request with one additional patch from Marek. I saw you did not pull my previous pull request for v4.18 so I hope this update should not be a problem. Anyway it is on top of previous request (no rebase) so it can be also applied incrementally. Best regards, Krzysz

Re: [PATCH net] net: phy: broadcom: Fix bcm_write_exp()

2018-05-23 Thread David Miller
From: Florian Fainelli Date: Tue, 22 May 2018 17:04:49 -0700 > On newer PHYs, we need to select the expansion register to write with > setting bits [11:8] to 0xf. This was done correctly by bcm7xxx.c prior > to being migrated to generic code under bcm-phy-lib.c which > unfortunately used the olde

[PATCH 19/33] net/atm: convert to ->poll_mask

2018-05-23 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/33] net/unix: convert to ->poll_mask

2018-05-23 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 e5473c03d667..95b02a71fd47 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -638,9

[PATCH 15/33] net/tcp: convert to ->poll_mask

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

Re: [PATCH 1/2] slimbus: ngd: dt-bindings: Add slim ngd dt bindings

2018-05-23 Thread Rob Herring
On Wed, May 23, 2018 at 1:11 PM, Srinivas Kandagatla wrote: > > > On 23/05/18 17:40, Rob Herring wrote: >>> >>> + >>> +- qcom,ngd-id >>> + Usage: required >>> + Value type: >>> + Definition: ngd instance id in the controller >> >> Why do you need this? >> > Please ignore my comm

[PATCH] sound: Use octal not symbolic permissions

2018-05-23 Thread Joe Perches
Convert the S_ symbolic permissions to their octal equivalents as using octal and not symbolic permissions is preferred by many as more readable. see: https://lkml.org/lkml/2016/8/2/1945 Done with automated conversion via: $ ./scripts/checkpatch.pl -f --types=SYMBOLIC_PERMS --fix-inplace Miscel

Re: [PATCH 1/5] Documentation: DT: Add optional 'timeout-sec' property for sp805

2018-05-23 Thread Ray Jui
On 5/23/2018 11:59 AM, Rob Herring wrote: On Wed, May 23, 2018 at 09:25:49AM -0700, Ray Jui wrote: On 5/23/2018 3:57 AM, Robin Murphy wrote: On 22/05/18 19:47, Ray Jui wrote: Update the SP805 binding document to add optional 'timeout-sec' devicetree property Signed-off-by: Ray Jui Review

[PATCH 10/33] aio: implement IOCB_CMD_POLL

2018-05-23 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/33] net: add support for ->poll_mask in proto_ops

2018-05-23 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 | 1 + net/socket.c| 48 - 2 files changed, 44 insertions(+), 5 deletions(-) diff --git a/includ

[PATCH 12/33] net: refactor socket_poll

2018-05-23 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 09/33] aio: simplify cancellation

2018-05-23 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 06/33] fs: add new vfs_poll and file_can_poll helpers

2018-05-23 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 07/33] fs: introduce new ->get_poll_head and ->poll_mask methods

2018-05-23 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 04/33] fs: cleanup do_pollfd

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

aio poll and a new in-kernel poll API V13

2018-05-23 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 3/4] rcu: Use better variable names in funnel locking loop

2018-05-23 Thread Paul E. McKenney
On Wed, May 23, 2018 at 09:06:17AM -0700, Paul E. McKenney wrote: > On Tue, May 22, 2018 at 11:38:14PM -0700, Joel Fernandes wrote: > > From: "Joel Fernandes (Google)" > > > > The funnel locking loop in rcu_start_this_gp uses rcu_root as a > > temporary variable while walking the combining tree.

Re: [v4 07/11] dt-bindings: hwmon: Add documents for PECI hwmon client drivers

2018-05-23 Thread Rob Herring
On Wed, May 23, 2018 at 11:37 AM, Jae Hyun Yoo wrote: > On 5/23/2018 8:11 AM, Rob Herring wrote: >> >> On Tue, May 22, 2018 at 12:18 PM, Jae Hyun Yoo >> wrote: >>> >>> On 5/22/2018 9:42 AM, Rob Herring wrote: On Mon, May 21, 2018 at 12:59:05PM -0700, Jae Hyun Yoo wrote: > >

[PATCH 03/33] fs: unexport poll_schedule_timeout

2018-05-23 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.

Re: [PATCH 3/5] watchdog: sp805: set WDOG_HW_RUNNING when appropriate

2018-05-23 Thread Ray Jui
Hi Guenter/Robin, On 5/23/2018 11:09 AM, Guenter Roeck wrote: On Wed, May 23, 2018 at 06:15:14PM +0100, Robin Murphy wrote: On 23/05/18 17:29, Ray Jui wrote: Hi Robin, On 5/23/2018 4:48 AM, Robin Murphy wrote: On 23/05/18 08:52, Scott Branden wrote: On 18-05-22 04:24 PM, Ray Jui wrote: H

[PATCH 01/33] fix io_destroy()/aio_complete() race

2018-05-23 Thread Christoph Hellwig
From: Al Viro If io_destroy() gets to cancelling everything that can be cancelled and gets to kiocb_cancel() calling the function driver has left in ->ki_cancel, it becomes vulnerable to a race with IO completion. At that point req is already taken off the list and aio_complete() does *NOT* spin

Re: [PATCH V3 00/17] perf tools and x86 PTI entry trampolines

2018-05-23 Thread Arnaldo Carvalho de Melo
Em Tue, May 22, 2018 at 01:54:28PM +0300, Adrian Hunter escreveu: > Original Cover email: > > Perf tools do not know about x86 PTI entry trampolines - see example > below. These patches add a workaround, namely "perf tools: Workaround > missing maps for x86 PTI entry trampolines", which has the l

[PATCH 4/5] pci/hotplug/pnv-php: add missing of_node_put

2018-05-23 Thread Julia Lawall
The device node iterators perform an of_node_get on each iteration, so a jump out of the loop requires an of_node_put. The semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ expression root,e; local idexpression child; iterator name for_each_child_of_node; @@

[PATCH 3/5] soc: ti: knav_dma: add missing of_node_put

2018-05-23 Thread Julia Lawall
The device node iterators perform an of_node_get on each iteration, so a jump out of the loop requires an of_node_put. The semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ expression root,e; local idexpression child; iterator name for_each_child_of_node; @@

[PATCH 0/5] add missing of_node_put

2018-05-23 Thread Julia Lawall
The device node iterators perform an of_node_get on each iteration, so a jump out of the loop requires an of_node_put. --- drivers/gpu/drm/rockchip/rockchip_lvds.c |4 +++- drivers/pci/hotplug/pnv_php.c |8 ++-- drivers/phy/hisilicon/phy-hisi-inno-usb2.c |9 +++

[PATCH 5/5] drm/rockchip: lvds: add missing of_node_put

2018-05-23 Thread Julia Lawall
The device node iterators perform an of_node_get on each iteration, so a jump out of the loop requires an of_node_put. The semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ expression root,e; local idexpression child; iterator name for_each_child_of_node; @@

[PATCH 1/5] pinctrl: at91-pio4: add missing of_node_put

2018-05-23 Thread Julia Lawall
The device node iterators perform an of_node_get on each iteration, so a jump out of the loop requires an of_node_put. The semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ expression root,e; local idexpression child; iterator name for_each_child_of_node; @@

[PATCH 2/5] phy: add missing of_node_put

2018-05-23 Thread Julia Lawall
The device node iterators perform an of_node_get on each iteration, so a jump out of the loop requires an of_node_put. The semantic patch that fixes this problem in the break case is as follows (http://coccinelle.lip6.fr): // @@ expression root,e; local idexpression child; iterator name for_each

Re: [PATCH] tpm: fix race condition in tpm_common_write()

2018-05-23 Thread Jason Gunthorpe
On Wed, May 23, 2018 at 10:57:07AM -0700, Tadeusz Struk wrote: > On 05/23/2018 06:23 AM, Jarkko Sakkinen wrote: > > Ouch o_O Do you have a fixes tag for this one? > > > > This one is quite tricky. > The original bug was introduced by abce9ac292e13 (tpm: Propagate error from > tpm_transmit to fix

Re: [PATCH][V2] net/mlx4: fix spelling mistake: "Inrerface" -> "Interface" and rephrase message

2018-05-23 Thread David Miller
From: Colin King Date: Tue, 22 May 2018 16:42:51 +0100 > From: Colin Ian King > > Trivial fix to spelling mistake in mlx4_dbg debug message and also > change the phrasing of the message so that is is more readable > > Signed-off-by: Colin Ian King > > --- > V2: rephrase message, as helpfully

Re: [PATCH 0/2] mm->owner to mm->memcg fixes

2018-05-23 Thread Eric W. Biederman
Michal Hocko writes: > On Thu 10-05-18 14:14:18, Michal Hocko wrote: >> On Fri 04-05-18 12:26:03, Eric W. Biederman wrote: >> > >> > Andrew can you pick up these two fixes as well. >> > >> > These address the issues Michal Hocko and Oleg Nesterov noticed. >> >> I completely got lost in this th

Re: [PATCH net-next v3 0/7] Add support for QCA8334 switch

2018-05-23 Thread David Miller
From: "Michal Vokáč" Date: Wed, 23 May 2018 08:20:17 +0200 > This series basically adds support for a QCA8334 ethernet switch to the > qca8k driver. It is a four-port variant of the already supported seven > port QCA8337. Register map is the same for the whole familly and all chips > have the sam

Re: [PATCH v4 0/3] IR decoding using BPF

2018-05-23 Thread Sean Young
On Wed, May 23, 2018 at 02:21:27PM +0200, Daniel Borkmann wrote: > On 05/18/2018 04:07 PM, Sean Young wrote: > > The kernel IR decoders (drivers/media/rc/ir-*-decoder.c) support the most > > widely used IR protocols, but there are many protocols which are not > > supported[1]. For example, the lirc

Re: [PATCH] x86/speculation: Simplify the CPU bug detection logic

2018-05-23 Thread Thomas Gleixner
On Wed, 23 May 2018, Konrad Rzeszutek Wilk wrote: > > @@ -973,16 +965,16 @@ static void __init cpu_set_bug_bits(struct > > cpuinfo_x86 *c) > > if (cpu_has(c, X86_FEATURE_ARCH_CAPABILITIES)) > > rdmsrl(MSR_IA32_ARCH_CAPABILITIES, ia32_cap); > > Would it make sense to move that abov

Re: [PATCH 1/2] platform/chrome: chromeos_laptop - supply properties for ACPI devices

2018-05-23 Thread Benson Leung
Hi Dmitry, On Thu, May 03, 2018 at 05:41:34PM -0700, Dmitry Torokhov wrote: > BayTrail-based and newer Chromebooks describe their peripherals in ACPI; > unfortunately their description is not complete, and peripherals > drivers, such as driver for Atmel Touch controllers, has to resort to > DMI-ma

Re: [PATCH v1 10/10] mm/memory_hotplug: allow online/offline memory by a kernel module

2018-05-23 Thread Christoph Hellwig
On Wed, May 23, 2018 at 05:11:51PM +0200, David Hildenbrand wrote: > Kernel modules that want to control how/when memory is onlined/offlined > need a proper interface to these functions. Also, for adding memory > properly, memory_block_size_bytes is required. Which module? Please send it along wi

Re: [PATCH 1/6] coresight: remove CORESIGHT_LINKS_AND_SINKS dependencies and selections

2018-05-23 Thread Kim Phillips
On Tue, 22 May 2018 11:31:40 -0600 Mathieu Poirier wrote: > On Thu, May 17, 2018 at 08:20:19PM -0500, Kim Phillips wrote: > > A coresight topology doesn't need to include links, i.e., a source can > > be directly connected to a sink. As such, selecting and/or depending on > > LINKS_AND_SINKS is

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-23 Thread Rob Herring
On Wed, May 23, 2018 at 10:12 AM, Heiko Stübner wrote: > Hi Rob, Levin, > > sorry for being late to the party. > > Am Mittwoch, 23. Mai 2018, 16:43:07 CEST schrieb Rob Herring: >> On Tue, May 22, 2018 at 9:02 PM, Levin Du wrote: >> > On 2018-05-23 2:02 AM, Rob Herring wrote: >> >> On Fri, May 18,

[GIT PULL] IB chrome-platform/input for atmel_mxt_ts & chromeos_laptop for device properties

2018-05-23 Thread Benson Leung
Hi Dmitry, The following changes since commit 96a938aa214e965d5b4a2f10443b29cad14289b9: Input: atmel_mxt_ts - remove platform data support (2018-04-09 22:55:16 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/bleung/chrome-platform.git ib-chrome-

[PATCH] Fix a typo in RTC documentation for RTC_DRV_JZ4740

2018-05-23 Thread Mathieu Malaterre
Fix typo introduced for RTC_DRV_JZ4740 in commit 586655d278ba ("rtc: jz4740: make the driver buildable as a module again"). Signed-off-by: Mathieu Malaterre --- drivers/rtc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index

Re: [PATCH 1/2] slimbus: ngd: dt-bindings: Add slim ngd dt bindings

2018-05-23 Thread Srinivas Kandagatla
On 23/05/18 20:28, Rob Herring wrote: On Wed, May 23, 2018 at 1:11 PM, Srinivas Kandagatla wrote: On 23/05/18 17:40, Rob Herring wrote: + +- qcom,ngd-id + Usage: required + Value type: + Definition: ngd instance id in the controller Why do you need this? Please igno

Re: [v4 07/11] dt-bindings: hwmon: Add documents for PECI hwmon client drivers

2018-05-23 Thread Jae Hyun Yoo
On 5/23/2018 12:33 PM, Rob Herring wrote: On Wed, May 23, 2018 at 11:37 AM, Jae Hyun Yoo wrote: On 5/23/2018 8:11 AM, Rob Herring wrote: On Tue, May 22, 2018 at 12:18 PM, Jae Hyun Yoo wrote: On 5/22/2018 9:42 AM, Rob Herring wrote: On Mon, May 21, 2018 at 12:59:05PM -0700, Jae Hyun Yoo

Re: [PATCH 2/2] Input: atmel_mxt_ts - require device properties present when probing

2018-05-23 Thread Benson Leung
On Thu, May 03, 2018 at 05:41:35PM -0700, Dmitry Torokhov wrote: > The driver needs help determining whether it is dealing with a touchscreen > or a touchpad, and with button mapping. Previously we supported passing > this data via device properties, and also had DMI lists for Chromebooks > that sp

[PATCH] block drivers/block: Use octal not symbolic permissions

2018-05-23 Thread Joe Perches
Convert the S_ symbolic permissions to their octal equivalents as using octal and not symbolic permissions is preferred by many as more readable. see: https://lkml.org/lkml/2016/8/2/1945 Done with automated conversion via: $ ./scripts/checkpatch.pl -f --types=SYMBOLIC_PERMS --fix-inplace Miscel

<    3   4   5   6   7   8   9   10   11   >