[PATCH 5/6] spi: sun4i: introduce register set/unset helpers

2018-03-29 Thread Sergey Suloev
Two helper functions were added in order to update registers easily. Signed-off-by: Sergey Suloev --- drivers/spi/spi-sun4i.c | 40 +++- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/drivers/spi/spi-sun4i.c b/drivers/spi/spi-sun4i.c index 4f

[PATCH 6/6] spi: sun4i: add DMA transfers support

2018-03-29 Thread Sergey Suloev
DMA transfers are now available for sun4i-family SoCs. The DMA mode is used automatically as soon as requested transfer length is more than FIFO length. Signed-off-by: Sergey Suloev --- drivers/spi/spi-sun4i.c | 291 1 file changed, 271 insertion

[PATCH 1/6] spi: core: handle timeout error from transfer_one()

2018-03-29 Thread Sergey Suloev
As long as sun4i/sun6i SPI drivers have overriden the default "wait for completion" procedure then we need to properly handle -ETIMEDOUT error from transfer_one(). Signed-off-by: Sergey Suloev --- drivers/spi/spi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers

Re: [PATCH v7 07/14] fs, dax: use page->mapping to warn if truncate collides with a busy page

2018-03-29 Thread Dan Williams
On Thu, Mar 29, 2018 at 9:02 AM, Jan Kara wrote: > On Wed 21-03-18 15:57:48, Dan Williams wrote: >> Catch cases where extent unmap operations encounter pages that are >> pinned / busy. Typically this is pinned pages that are under active dma. >> This warning is a canary for potential data corrupti

[PATCH] powerpc: kexec_file: Fix error code when trying to load kdump kernel

2018-03-29 Thread Thiago Jung Bauermann
kexec_file_load() on powerpc doesn't support kdump kernels yet, so it returns -ENOTSUPP in that case. I've recently learned that this errno is internal to the kernel and isn't supposed to be exposed to userspace. Therefore, change to -EOPNOTSUPP which is defined in an uapi header. This does indee

Re: [PATCH] time: export nsec_to_clock_t

2018-03-29 Thread Thomas Gleixner
On Thu, 29 Mar 2018, Zhang Rui wrote: > On 三, 2018-03-28 at 16:11 +0200, Arnd Bergmann wrote: > > nsec_to_clock_t was traditionally used only in the core kernel, now > > we > > have a sysfs file that needs it from a loadable module, causing a > > link-time error: > > > > ERROR: "nsec_to_clock_t" [

[PATCH] OPTIONAL: cpufreq/intel_pstate: fix debugfs_simple_attr.cocci warnings

2018-03-29 Thread Julia Lawall
Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE for debugfs files. Semantic patch information: Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() imposes some significant overhead as compared to DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe(). Generated by: s

[PATCH v7 4/4] Bluetooth: hci_qca: Add serdev support

2018-03-29 Thread Thierry Escande
Add support for Qualcomm serial slave devices. Probe the serial device, retrieve its maximum speed and register a new hci uart device. Signed-off-by: Thierry Escande Reviewed-by: Andy Shevchenko --- v7: no change v6: - Fix gpio name in error message v5: - Use gpio new name 'enable' v4: - Ren

[PATCH v7 2/4] arm64: dts: apq8096-db820c: enable bluetooth node

2018-03-29 Thread Thierry Escande
Add a new serial node for the Qualcomm BT controller QCA6174. This allows automatic probing and hci registration through the serdev framework instead of relying on the userspace helpers. Signed-off-by: Thierry Escande --- v7: - Remove bt-en-active node declared in previous patch v6 - Move gpio

[PATCH v7 0/4] Bluetooth: hci_qca: Add serdev support

2018-03-29 Thread Thierry Escande
Hi, This patchset enables the Qualcomm BT controller QCA6174 node in the device tree of the db820c board. This allows the bluetooth chipset to be probed and registered against the hci layer by using the serdev framework. This patchset also contains the documentation for the compatible string "qco

[PATCH v7 3/4] dt-bindings: net: bluetooth: Add qualcomm-bluetooth

2018-03-29 Thread Thierry Escande
Add binding document for serial bluetooth chips using Qualcomm protocol. Signed-off-by: Thierry Escande Reviewed-by: Rob Herring --- v7: no change v6: - Remove chip specific pinctrl conf - Move gpio and clocks into optional props section v5: - Rename 'bt-disable-n' gpio as 'enable' v4: - Mov

Re: [PATCH 4.4 00/20] 4.4.126-stable review

2018-03-29 Thread Nathan Chancellor
On Thu, Mar 29, 2018 at 08:00:36PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.126 release. > There are 20 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [RFC PATCH v2 3/4] mm/rmqueue_bulk: alloc without touching individual page structure

2018-03-29 Thread Daniel Jordan
On 03/21/2018 11:01 AM, Aaron Lu wrote: I'm sorry, but I feel the added complexity here is simply too large to justify the change. Especially if the motivation seems to be just the microbenchmark. It would be better if this was motivated by a real workload where zone lock contention was identifie

[PATCH v7 1/4] arm64: dts: apq8096-db820c: Enable wlan and bt en pins

2018-03-29 Thread Thierry Escande
From: Srinivas Kandagatla This patch enables regulators and gpios for the Qualcomm QCA6174 BT/WLAN combo controller. Signed-off-by: Srinivas Kandagatla Signed-off-by: Thierry Escande --- v7: - New patch in this patchset .../boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi| 22 +++

[GIT PULL] Please pull RDMA subsystem changes

2018-03-29 Thread Jason Gunthorpe
Hi Linus, Fifth pull request for -rc. It has been fairly silent lately on our -rc front. Big queue of patches on the mailing list going to for-next though. The following changes since commit e8980d67d6017c8eee8f9c35f782c4bd68e004c9: RDMA/ucma: Ensure that CM_ID exists prior to access it (2018

Re: [PATCH] media: i2c: tvp5150: fix color burst lock instability on some hardware

2018-03-29 Thread Mauro Carvalho Chehab
Em Thu, 29 Mar 2018 22:37:57 +0430 Nasser escreveu: > On Thu, Mar 29, 2018 at 12:02:40PM -0300, Mauro Carvalho Chehab wrote: > > Em Thu, 29 Mar 2018 19:04:35 +0430 > > Nasser escreveu: > > > > > On Tue, Mar 27, 2018 at 02:59:21AM +0430, Nasser wrote: > > > Hi Mauro, > > > > > > Thank you for

Re: [PATCH] qedr: ix spelling mistake: "hanlde" -> "handle"

2018-03-29 Thread Jason Gunthorpe
On Thu, Mar 29, 2018 at 01:11:07PM +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in DP_ERR message text > > Signed-off-by: Colin Ian King > Reviewed-by: Shamir Rabinovitch > --- > drivers/infiniband/hw/qedr/main.c | 4 ++-- > 1 file changed, 2 insertions(

Re: [RFC PATCH v2 0/4] Eliminate zone->lock contention for will-it-scale/page_fault1 and parallel free

2018-03-29 Thread Daniel Jordan
On 03/20/2018 04:54 AM, Aaron Lu wrote: This series is meant to improve zone->lock scalability for order 0 pages. With will-it-scale/page_fault1 workload, on a 2 sockets Intel Skylake server with 112 CPUs, CPU spend 80% of its time spinning on zone->lock. Perf profile shows the most time consumin

Re: [PATCH] OPTIONAL: cpufreq/intel_pstate: fix debugfs_simple_attr.cocci warnings

2018-03-29 Thread Francisco Jerez
Looks okay to me, I'll squash this into the original patch. Julia Lawall writes: > Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE > for debugfs files. > > Semantic patch information: > Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() > imposes some significant ove

Re: [PATCH] drivers: gpio: pca953x: add compatibility for pcal6524 and pcal9555a

2018-03-29 Thread H. Nikolaus Schaller
Hi, > Am 28.03.2018 um 18:50 schrieb H. Nikolaus Schaller : > > Hi Linus, > >> Am 27.03.2018 um 15:02 schrieb Linus Walleij : >> >> On Sat, Mar 10, 2018 at 12:00 PM, H. Nikolaus Schaller >> wrote: >> >>> The Pyra-Handheld originally used the tca6424 but recently we have >>> replaced it by the

Re: [kbuild-all] [PATCH] OPTIONAL: cpufreq/intel_pstate: fix debugfs_simple_attr.cocci warnings

2018-03-29 Thread Fabio Estevam
Hi Julia, On Thu, Mar 29, 2018 at 4:12 PM, Julia Lawall wrote: > Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE > for debugfs files. > > Semantic patch information: > Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() > imposes some significant overhead as compared t

Re: [RFC][PATCH] ipc: Remove IPCMNI

2018-03-29 Thread Matthew Wilcox
On Thu, Mar 29, 2018 at 08:07:44PM +0200, Manfred Spraul wrote: > Hello Mathew, > > On 03/29/2018 12:56 PM, Matthew Wilcox wrote: > > On Thu, Mar 29, 2018 at 10:47:45AM +0200, Manfred Spraul wrote: > > > > > > > > This can be implemented trivially with the current code > > > > > > > > using idr_al

Re: [kbuild-all] [PATCH] OPTIONAL: cpufreq/intel_pstate: fix debugfs_simple_attr.cocci warnings

2018-03-29 Thread Francisco Jerez
Fabio Estevam writes: > Hi Julia, > > On Thu, Mar 29, 2018 at 4:12 PM, Julia Lawall wrote: >> Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE >> for debugfs files. >> >> Semantic patch information: >> Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() >> imposes some

Re: [PATCH v4 4/7] dt-bindings: phy-qcom-qmp: Update bindings for sdm845

2018-03-29 Thread Doug Anderson
Hi, On Thu, Mar 29, 2018 at 4:04 AM, Manu Gautam wrote: > Update compatible strings for USB3 PHYs on SDM845. > One is QMPv3 DisplayPort-USB combo PHY and other one > is USB UNI PHY which is single lane USB3 PHY without > DP capability. While at it also remove "qcom,qmp-v3-usb3-phy" > compatible s

Re: [PATCHv4] phy: mapphone-mdm6600: Add USB PHY driver for MDM6600 on Droid 4

2018-03-29 Thread Pavel Machek
Hi! > > Does ofonod work for you? I could not get that one to work... > > Because it's looking for a Gobi modem but the MDM6600 isn't one and > doesn't expose that layout (and doesn't really need to anyway). I > don't think ofono has a generic QMI driver, so you'd either need to for > ce it to u

Re: [kbuild-all] [PATCH] OPTIONAL: cpufreq/intel_pstate: fix debugfs_simple_attr.cocci warnings

2018-03-29 Thread Julia Lawall
On Thu, 29 Mar 2018, Fabio Estevam wrote: > Hi Julia, > > On Thu, Mar 29, 2018 at 4:12 PM, Julia Lawall wrote: > > Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE > > for debugfs files. > > > > Semantic patch information: > > Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_crea

Re: [0/9] UML vector network driver: Adjustments for three function implementations

2018-03-29 Thread SF Markus Elfring
> Date: Sun, 11 Mar 2018 16:06:16 +0100 > > Some update suggestions were taken into account > from static source code analysis. … > Delete unnecessary code in user_init_raw_fds() > Less checks in user_init_raw_fds() after error detection > Adjust an error message in user_init_socket_fds() >

Re: [net-next PATCH v2 08/10] net: netcp: ethss: use of_get_phy_mode() to support different RGMII modes

2018-03-29 Thread Murali Karicheri
On 03/27/2018 01:35 PM, Andrew Lunn wrote: >> +} else if (slave->link_interface == RGMII_LINK_MAC_PHY) { >> +has_phy = true; >> +phy_mode = of_get_phy_mode(slave->node); >> +/* if phy-mode is not present, default to >> + * PHY_INTERFACE_MODE_RGMII

Re: [RFC][PATCH] ipc: Remove IPCMNI

2018-03-29 Thread Eric W. Biederman
Manfred Spraul writes: > On 03/14/2018 08:49 PM, Eric W. Biederman wrote: >> To make it possible to keep checkpoint/restore working I have renamed >> the sysctls from xxx_next_id to xxx_nextid.  That is enough change that >> a smart CRIU implementation can see that what is exporte

Re: INFO: task hung in stop_sync_thread (2)

2018-03-29 Thread Julian Anastasov
Hello, On Thu, 29 Mar 2018, syzbot wrote: > syzbot hit the following crash on net-next commit > 5d22d47b9ed96eddb35821dc2cc4f629f45827f7 (Tue Mar 27 17:33:21 2018 +) > Merge branch 'sfc-filter-locking' > syzbot dashboard link: > https://syzkaller.appspot.com/bug?extid=5fe074c01b2032c

Re: [PATCH] MAINTAINERS: update maintainers for MTD and SPI NOR subsystems

2018-03-29 Thread Boris Brezillon
On Wed, 21 Mar 2018 22:33:26 +0100 Marek Vasut wrote: > On 03/18/2018 06:14 PM, Cyrille Pitchen wrote: > > Hi Marek, > > Hi, > > > Le 18/03/2018 à 00:41, Marek Vasut a écrit : > >> On 03/15/2018 08:04 PM, Cyrille Pitchen wrote: > >>> remove myself as MTD and SPI NOR maintainer. > >>> > >>

Re: [PATCH net] vhost: validate log when IOTLB is enabled

2018-03-29 Thread David Miller
From: "Michael S. Tsirkin" Date: Thu, 29 Mar 2018 15:48:22 +0300 > On Thu, Mar 29, 2018 at 04:00:04PM +0800, Jason Wang wrote: >> Vq log_base is the userspace address of bitmap which has nothing to do >> with IOTLB. So it needs to be validated unconditionally otherwise we >> may try use 0 as log_

Re: pull-request: wireless-drivers-next 2018-03-29

2018-03-29 Thread David Miller
From: Kalle Valo Date: Thu, 29 Mar 2018 16:21:44 +0300 > here's a pull request to net-next for 4.17. If the merge window starts > on Sunday this will be the last pull request. Do note that I pulled > wireless-drivers into wireless-drivers-next as iwlwifi needed some > patches. > > Please let me

Re: [PATCH] mtd: Use DIV_ROUND_UP()

2018-03-29 Thread Boris Brezillon
On Sun, 25 Mar 2018 21:07:43 +0530 Arushi Singhal wrote: > The kernel.h macro DIV_ROUND_UP performs the computation > (((n) + (d) - 1) / (d)) but is perhaps more readable. > > Signed-off-by: Arushi Singhal Applied. Thanks, Boris > --- > drivers/mtd/ftl.c | 4 ++-- > 1 file changed, 2 inser

Re: [RFC PATCH v21 0/6] mm: security: ro protection for dynamic data

2018-03-29 Thread Igor Stoppa
On 27/03/18 20:55, Jonathan Corbet wrote: On Tue, 27 Mar 2018 18:37:36 +0300 Igor Stoppa wrote: This patch-set introduces the possibility of protecting memory that has been allocated dynamically. One thing that jumps out at me as I look at the patch set is: you do not include any users of th

aio poll and a new in-kernel poll API V8

2018-03-29 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 04/30] fs: add new vfs_poll and file_can_poll helpers

2018-03-29 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 16/30] net/atm: convert to ->poll_mask

2018-03-29 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 26/30] crypto: af_alg: convert to ->poll_mask

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

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

2018-03-29 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/30] eventfd: switch to ->poll_mask

2018-03-29 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 20/30] net/bluetooth: convert to ->poll_mask

2018-03-29 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 30/30] random: convert to ->poll_mask

2018-03-29 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 29/30] timerfd: convert to ->poll_mask

2018-03-29 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/30] pipe: convert to ->poll_mask

2018-03-29 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 25/30] net/rxrpc: convert to ->poll_mask

2018-03-29 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 23/30] net/phonet: convert to ->poll_mask

2018-03-29 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 22/30] net/nfc: convert to ->poll_mask

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

Re: [PATCH v1 0/1] arm: dts: modify Nuvoton NPCM750 device tree

2018-03-29 Thread Arnd Bergmann
On Mon, Mar 26, 2018 at 12:11 PM, Tomer Maimon wrote: > The NPCM7xx are a family of BMC's that include several chips as: > NPCM750, NPCM730 etc. > > All of the NPCM7xx BMC's have the common modules like Cortex-A9, > WDT, timers, etc, and there are a optional modules that can be added. > > NPCM750

Re: [PATCH v4 7/7] phy: qcom-qusb2: Add QUSB2 PHYs support for sdm845

2018-03-29 Thread Doug Anderson
Hi, On Thu, Mar 29, 2018 at 4:04 AM, Manu Gautam wrote: > There are two QUSB2 PHYs present on sdm845. In order > to improve eye diagram for both the PHYs some parameters > need to be changed. Provide device tree properties to > override these from board specific device tree files. > > Signed-off-

[PATCH 21/30] net/caif: convert to ->poll_mask

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

Re: [PATCH v4 6/7] dt-bindings: phy-qcom-usb2: Add support to override tuning values

2018-03-29 Thread Doug Anderson
Hi, On Thu, Mar 29, 2018 at 4:04 AM, Manu Gautam wrote: > To improve eye diagram for PHYs on different boards of same SOC, > some parameters may need to be changed. Provide device tree > properties to override these from board specific device tree > files. While at it, replace "qcom,qusb2-v2-phy"

[PATCH 0/6] spi: Add support for DMA transfers in sun4i SPI driver

2018-03-29 Thread Sergey Suloev
The following patchset provides corrections for PIO-mode and support for DMA transfers in sun4i SPI driver. Sergey Suloev (6): spi: core: handle timeout error from transfer_one() spi: sun4i: restrict transfer length in PIO-mode spi: sun4i: coding style/readability improvements spi: sun4i:

Re: [PATCH 1/6] fpga: region: don't use drvdata in common fpga code

2018-03-29 Thread Alan Tull
On Thu, Mar 29, 2018 at 12:01 PM, Greg KH wrote: Hi Greg, > On Thu, Mar 29, 2018 at 08:36:53AM -0700, Moritz Fischer wrote: >> From: Alan Tull >> >> Part of patchset that changes the following fpga_*_register >> functions to not set drvdata: >> * fpga_region_register. >> * fpga_mgr_register >>

[PATCH 19/30] net/sctp: convert to ->poll_mask

2018-03-29 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 18/30] net/tipc: convert to ->poll_mask

2018-03-29 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 7dfa9fc99ec3..e9c6f185db74 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -695,10 +695,9 @@ static int t

[PATCH 17/30] net/vmw_vsock: convert to ->poll_mask

2018-03-29 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 15/30] net/dccp: convert to ->poll_mask

2018-03-29 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 14/30] net: convert datagram_poll users tp ->poll_mask

2018-03-29 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 +- drivers/staging/irda/net/af_irda.c | 6 +++--- include/linux/skbuff.h | 3 +-- in

[PATCH 4/6] spi: sun4i: use completion provided by SPI core driver

2018-03-29 Thread Sergey Suloev
As long as the completion already provided by the SPI core then there is no need to waste extra-memory on this. Also a waiting function was added to avoid code duplication. Signed-off-by: Sergey Suloev --- drivers/spi/spi-sun4i.c | 62 - 1 file ch

[PATCH 13/30] net/unix: convert to ->poll_mask

2018-03-29 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 11/30] net: remove sock_no_poll

2018-03-29 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 0/1] fix regression in hugetlbfs overflow checking

2018-03-29 Thread Mike Kravetz
On 03/28/2018 09:16 PM, Mike Kravetz wrote: > Commit 63489f8e8211 ("hugetlbfs: check for pgoff value overflow") > introduced a regression in 32 bit kernels. When creating the mask > to check vm_pgoff, it incorrectly specified that the size of a loff_t > was the size of a long. This prevents mappi

[PATCH 10/30] net: add support for ->poll_mask in proto_ops

2018-03-29 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 12/30] net/tcp: convert to ->poll_mask

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

Re: [PATCH 4/6] fpga: region: change fpga_region_register to have one param

2018-03-29 Thread Alan Tull
On Thu, Mar 29, 2018 at 12:06 PM, Greg KH wrote: Hi Greg, >> -int fpga_region_register(struct device *dev, struct fpga_region *region) >> +int fpga_region_register(struct fpga_region *region) >> { >> + struct device *dev = region->parent; >> int id, ret = 0; >> >> + if (!dev) { >>

Re: [PATCH] selftests/livepatch: introduce tests

2018-03-29 Thread kbuild test robot
Hi Joe, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.16-rc7 next-20180329] [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

[PATCH 09/30] net: refactor socket_poll

2018-03-29 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 08/30] aio: implement IOCB_CMD_POLL

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

2018-03-29 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 06/30] aio: simplify cancellation

2018-03-29 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 07/30] aio: add delayed cancel support

2018-03-29 Thread Christoph Hellwig
The upcoming aio poll support would like to be able to complete the iocb inline from the cancellation context, but that would cause a double lock of ctx_lock with the current locking scheme. Move the cancelation outside the context lock to avoid this reversal, which suits the existing usb gadgets

[PATCH] um: Fix return value of start_idle_thread

2018-03-29 Thread Richard Weinberger
While the function will never returns, gcc will warns. Add a return statement to make gcc happy. Before f44f1e7da7c8 we never noticed because gcc knows that longjmp does not return. arch/um/os-Linux/skas/process.c: In function ‘start_idle_thread’: arch/um/os-Linux/skas/process.c:613:1: warning: co

[PATCH 02/30] fs: cleanup do_pollfd

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

[PATCH 01/30] fs: unexport poll_schedule_timeout

2018-03-29 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 b6c36254028a.

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

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

Re: [RFC PATCH v21 0/6] mm: security: ro protection for dynamic data

2018-03-29 Thread Jonathan Corbet
On Fri, 30 Mar 2018 00:25:22 +0400 Igor Stoppa wrote: > On 27/03/18 20:55, Jonathan Corbet wrote: > > On Tue, 27 Mar 2018 18:37:36 +0300 > > Igor Stoppa wrote: > > > >> This patch-set introduces the possibility of protecting memory that has > >> been allocated dynamically. > > > > One thin

Re: [PATCH v4 2/7] phy: qcom-qmp: Enable pipe_clk before PHY initialization

2018-03-29 Thread Doug Anderson
Hi, On Thu, Mar 29, 2018 at 11:44 AM, Doug Anderson wrote: > Hi, > > On Thu, Mar 29, 2018 at 4:04 AM, Manu Gautam wrote: >> QMP PHY for USB/PCIE requires pipe_clk for locking of >> retime buffers at the pipe interface. Driver checks for >> PHY_STATUS without enabling pipe_clk due to which >> phy

Re: [PATCH v4 1/7] clk: msm8996-gcc: change halt check for USB/PCIE pipe_clk

2018-03-29 Thread Doug Anderson
Hi, On Thu, Mar 29, 2018 at 4:04 AM, Manu Gautam wrote: > The USB and PCIE pipe clocks are sourced from external clocks > inside the QMP USB/PCIE PHYs. Enabling or disabling of PIPE RCG > clocks is dependent on PHY initialization sequence hence > update halt_check to BRANCH_HALT_DELAY for these c

Re: `do_IRQ: 1.55 No irq handler for vector` on ASRock E350M1

2018-03-29 Thread Morton, Eric
+Frank G. Eric By reading this e-mail, you are consenting to agree with the opinions disclosed within. On 3/29/18, 3:29 AM, "Paul Menzel" wrote: Dear Yazen, Eric, Tom, On 02/26/18 17:42, Tom Lendacky wrote: > On 2/26/2018 10:37 AM, Morton, Eric wrote: >> Yazen

Question regarding container affecting the host system mounts

2018-03-29 Thread Ronak Desai
I came across a problem where if the containers are running then it affects the unmount process of the system's mount points. I am not using these mount points as shared mounts with container. For example, I am using SD card and NAND as external storage device and mounting it to a mount point in t

possible deadlock in perf_event_detach_bpf_prog

2018-03-29 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 3eb2ce825ea1ad89d20f7a3b5780df850e4be274 (Sun Mar 25 22:44:30 2018 +) Linux 4.16-rc7 syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=dc5ca0e4c9bfafaf2bae Unfortunately, I don't have any reproducer for this crash yet.

[GIT PULL] KVM fixes for Linux 4.16-rc8

2018-03-29 Thread Radim Krčmář
Linus, The following changes since commit daaf216c06fba4ee4dc3f62715667da929d68774: KVM: x86: Fix device passthrough when SME is active (2018-03-16 14:32:23 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm tags/for-linus for you to fetch changes up

Re: [PATCHv3 4/7] dt-bindings: fpga: add Stratix10 SoC FPGA manager binding

2018-03-29 Thread Alan Tull
On Tue, Mar 27, 2018 at 3:20 PM, wrote: > From: Alan Tull > > Add a Device Tree binding for the Intel Stratix10 SoC FPGA manager. > > Signed-off-by: Alan Tull > --- > v2: this patch is added in patch set version 2 > v3: change to put fpga_mgr node under firmware/svc node > --- > .../bindings/f

[PATCH v3 0/1] Safe LSM (un)loading, and immutable hooks

2018-03-29 Thread Sargun Dhillon
The biggest security benefit of this patchset is the introduction of read-only hooks. Currently, if you have any LSMs with mutable hooks it will render all heads, and list nodes mutable. This is a prime place to attack, because being able to manipulate those hooks is a way to bypass all LSMs easily

[PATCH v3 1/1] security: Add mechanism to safely (un)load LSMs after boot time

2018-03-29 Thread Sargun Dhillon
This patch introduces a mechanism to add mutable hooks and immutable hooks to the callback chain. It adds an intermediary item to the chain which separates mutable and immutable hooks. Immutable hooks are then marked as read-only, as well as the hook heads. This does not preclude some hooks being a

Re: possible deadlock in perf_event_detach_bpf_prog

2018-03-29 Thread Daniel Borkmann
On 03/29/2018 11:04 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > 3eb2ce825ea1ad89d20f7a3b5780df850e4be274 (Sun Mar 25 22:44:30 2018 +) > Linux 4.16-rc7 > syzbot dashboard link: > https://syzkaller.appspot.com/bug?extid=dc5ca0e4c9bfafaf2bae > > Unfortunat

Re: [PATCH 4.4 033/134] tcp: sysctl: Fix a race to avoid unexpected 0 window from space

2018-03-29 Thread Ben Hutchings
On Mon, 2018-03-19 at 19:05 +0100, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Gao Feng > > > [ Upstream commit c48367427a39ea0b85c7cf018fe4256627abfd9e ] > > Because sysctl_tcp_adv_win_scale could be

[PATCH v4 00/14] CPU scaling support for msm8996

2018-03-29 Thread Ilia Lin
[v4] * Adressed comments from Stephen * Added CPU regulator support * Added qcom-cpufreq-kryo driver [v3] * Rebased on top of the latest PLL driver changes * Addressed comment from Rob Herring for bindings [v2] * Addressed comments from Rob Herring for bindings * Addressed comments from Ma

[PATCH v4 02/14] clk: qcom: Make clk_alpha_pll_configure available to modules

2018-03-29 Thread Ilia Lin
From: Rajendra Nayak Allow clk_alpha_pll_configure to be called from loadable kernel modules. Signed-off-by: Rajendra Nayak Signed-off-by: Ilia Lin --- drivers/clk/qcom/clk-alpha-pll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-

[PATCH v4 08/14] dt: qcom: Add opp and thermal to the msm8996

2018-03-29 Thread Ilia Lin
Signed-off-by: Ilia Lin --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 275 +- 1 file changed, 267 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 410ae78..a0792bd 100644 --- a/arch/arm64

[PATCH v4 05/14] clk: qcom: cpu-8996: Add support to switch to alternate PLL

2018-03-29 Thread Ilia Lin
From: Rajendra Nayak Each of the CPU clusters on msm8996 are powered via a primary PLL and a secondary PLL. The primary PLL is what drives the CPU clk, except for times when we are reprogramming the PLL itself, when we temporarily switch to an alternate PLL. Use clock rate change notifiers to sup

[PATCH v4 03/14] clk: qcom: Add CPU clock driver for msm8996

2018-03-29 Thread Ilia Lin
From: Rajendra Nayak Each of the CPU clusters (Power and Perf) on msm8996 are clocked via 2 PLLs, a primary and alternate. There are also 2 Mux'es, a primary and secondary all connected together as shown below +---+ XO | |

[PATCH v4 04/14] clk: qcom: Add DT bindings for CPU clock driver for msm8996

2018-03-29 Thread Ilia Lin
Signed-off-by: Ilia Lin --- Documentation/devicetree/bindings/clock/qcom,kryocc.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,kryocc.txt diff --git a/Documentation/devicetree/bindings/clock/qcom,kryocc.txt b/Documen

[PATCH v4 10/14] dt-bindings: Add support for SAW documentation

2018-03-29 Thread Ilia Lin
Add support for SAW controlled regulators in 8x96. Document it. Signed-off-by: Ilia Lin --- .../bindings/regulator/qcom,spmi-regulator.txt | 45 ++ 1 file changed, 45 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.txt b/Docum

[PATCH v4 14/14] dt: qcom: Add qcom-cpufreq-kryo driver configuration

2018-03-29 Thread Ilia Lin
Signed-off-by: Ilia Lin --- arch/arm64/boot/dts/qcom/apq8096-db820c.dts | 2 +- arch/arm64/boot/dts/qcom/msm8996.dtsi | 310 +++- 2 files changed, 309 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dts b/arch/arm64/boot/dts/qco

[PATCH v4 09/14] regulator: qcom_spmi: Add support for SAW

2018-03-29 Thread Ilia Lin
Add support for SAW controlled regulators. The regulators defined as SAW controlled in the device tree will be controlled through special CPU registers instead of direct SPMI accesses. This is required especially for CPU supply regulators to synchronize with clock scaling and for Automatic Voltage

[PATCH v4 13/14] dt-bindings: cpufreq: Document operating-points-v2-kryo-cpu

2018-03-29 Thread Ilia Lin
In Certain Qualcomm Technologies, Inc. SoCs like apq8096 and msm8996 that have KRYO processors, the CPU ferequencies subset and voltage value of each OPP varies based on the silicon variant in use. Qualcomm Technologies, Inc. Process Voltage Scaling Tables defines the voltage and frequency value ba

[PATCH v4 11/14] dt: qcom: Add SAW regulator for 8x96 CPUs

2018-03-29 Thread Ilia Lin
1. Add syscon node for the SAW CPU registers 2. Add SAW regulators gang definition for s8-s11 3. Add voltages to the OPP tables 4. Add the s11 SAW regulator as CPU regulator Signed-off-by: Ilia Lin --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 77 +++ 1 file changed

[PATCH v4 12/14] cpufreq: Add Kryo CPU scaling driver

2018-03-29 Thread Ilia Lin
In Certain QCOM SoCs like apq8096 and msm8996 that have KRYO processors, the CPU ferequencies subset and voltage value of each OPP varies based on the silicon variant in use. Qualcomm Process Voltage Scaling Tables defines the voltage and frequency value based on the msm-id in SMEM and speedbin blo

<    4   5   6   7   8   9   10   11   >