[PATCH net-next v5 3/5] vsock/virtio: fix locking in virtio_transport_inc_tx_pkt()

2019-07-30 Thread Stefano Garzarella
fwd_cnt and last_fwd_cnt are protected by rx_lock, so we should use the same spinlock also if we are in the TX path. Move also buf_alloc under the same lock. Signed-off-by: Stefano Garzarella Reviewed-by: Stefan Hajnoczi Acked-by: Michael S. Tsirkin --- include/linux/virtio_vsock.h

[PATCH net-next v5 0/5] vsock/virtio: optimizations to increase the throughput

2019-07-30 Thread Stefano Garzarella
This series tries to increase the throughput of virtio-vsock with slight changes. While I was testing the v2 of this series I discovered an huge use of memory, so I added patch 1 to mitigate this issue. I put it in this series in order to better track the performance trends. v5: - rebased all patc

[PATCH net-next v5 2/5] vsock/virtio: reduce credit update messages

2019-07-30 Thread Stefano Garzarella
In order to reduce the number of credit update messages, we send them only when the space available seen by the transmitter is less than VIRTIO_VSOCK_MAX_PKT_BUF_SIZE. Signed-off-by: Stefano Garzarella Reviewed-by: Stefan Hajnoczi Acked-by: Michael S. Tsirkin --- include/linux/virtio_vsock.h

Re: [PATCH] dt-bindings: Fix generated example files getting added to schemas

2019-07-30 Thread Guido Günther
Hi, On Tue, Jul 30, 2019 at 08:59:35AM -0600, Rob Herring wrote: > Commit 837158b847a4 ("dt-bindings: Check the examples against the > schemas") started generating YAML encoded DT files to validate the > examples against the schema. When running 'make dt_binding_check' in > tree after the 1st time,

Re: [PATCH] kmemleak: Increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE default to 16K

2019-07-30 Thread Catalin Marinas
On Tue, Jul 30, 2019 at 11:40:27PM +0800, Nicolas Boichat wrote: > The current default value (400) is too low on many systems (e.g. > some ARM64 platform takes up 1000+ entries). > > syzbot uses 16000 as default value, and has proved to be enough > on beefy configurations, so let's pick that value

Re: [PATCH v1 3/3] clk: qcom: rcg: update the DFS macro for RCG

2019-07-30 Thread Stephen Boyd
Quoting Taniya Das (2019-07-30 03:51:07) > > > On 7/17/2019 4:52 AM, Stephen Boyd wrote: > > Quoting Taniya Das (2019-07-15 21:22:02) > >> Hello Stephen, > >> > >> Thanks for the review. > >> > >> On 7/16/2019 4:14 AM, Stephen Boyd wrote: > >>> Quoting Taniya Das (2019-05-12 20:44:46) > On 5

[PATCH] kmemleak: Increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE default to 16K

2019-07-30 Thread Nicolas Boichat
The current default value (400) is too low on many systems (e.g. some ARM64 platform takes up 1000+ entries). syzbot uses 16000 as default value, and has proved to be enough on beefy configurations, so let's pick that value. This consumes more RAM on boot (each entry is 160 bytes, so in total ~2.

Re: [PATCH] fs: afs: Fix a possible null-pointer dereference in afs_put_read()

2019-07-30 Thread David Howells
This is in my afs-fixes branch. David

[Linux-kernel-mentees][PATCH v4 1/1] sgi-gru: Remove *pte_lookup functions

2019-07-30 Thread Bharath Vedartham
The *pte_lookup functions can be removed and be easily replaced with get_user_pages_fast functions. In the case of atomic lookup, __get_user_pages_fast is used which does not fall back to slow get_user_pages. get_user_pages_fast on the other hand tries to use __get_user_pages_fast but fallbacks to

[Linux-kernel-mentees][PATCH v4 0/1] get_user_pages changes

2019-07-30 Thread Bharath Vedartham
In this 4th version of the patch series, I have compressed the patches of the v2 patch series into one patch. This was suggested by Christoph Hellwig. The suggestion was to remove the pte_lookup functions and use the get_user_pages* functions directly instead of the pte_lookup functions. There is

Re: [PATCH v4 0/5] vsock/virtio: optimizations to increase the throughput

2019-07-30 Thread Stefano Garzarella
On Tue, Jul 30, 2019 at 06:03:24PM +0800, Jason Wang wrote: > > On 2019/7/30 下午5:40, Stefano Garzarella wrote: > > On Mon, Jul 29, 2019 at 09:59:23AM -0400, Michael S. Tsirkin wrote: > > > On Wed, Jul 17, 2019 at 01:30:25PM +0200, Stefano Garzarella wrote: > > > > This series tries to increase the

Re: [PATCH v1 2/3] clk: qcom: rcg2: Add support for hardware control mode

2019-07-30 Thread Stephen Boyd
Quoting Taniya Das (2019-07-30 03:50:08) > Hello Stephen, > > On 7/17/2019 4:48 AM, Stephen Boyd wrote: > > Quoting Taniya Das (2019-07-15 21:19:02) > >> Hello Stephen, > >> > >> Thanks for your review. > >> > >> On 7/16/2019 4:22 AM, Stephen Boyd wrote: > >>> Quoting Taniya Das (2019-05-08 11:24:

Re: [PATCH v5 2/3] treewide: Remove dev_err() usage after platform_get_irq()

2019-07-30 Thread Stephen Boyd
Quoting Greg Kroah-Hartman (2019-07-29 23:49:17) > On Mon, Jul 29, 2019 at 10:38:44PM -0700, Stephen Boyd wrote: > > We don't need dev_err() messages when platform_get_irq() fails now that > > platform_get_irq() prints an error message itself when something goes > > wrong. Let's remove these prints

Re: [PATCH v3] nvme-pci: Support shared tags across queues for Apple 2018 controllers

2019-07-30 Thread Keith Busch
On Fri, Jul 19, 2019 at 03:31:02PM +1000, Benjamin Herrenschmidt wrote: > From 8dcba2ef5b1466b023b88b4eca463b30de78d9eb Mon Sep 17 00:00:00 2001 > From: Benjamin Herrenschmidt > Date: Fri, 19 Jul 2019 15:03:06 +1000 > Subject: > > Another issue with the Apple T2 based 2018 controllers seem to be

[PATCH v2] drm: mali-dp: Mark expected switch fall-through

2019-07-30 Thread Anders Roxell
Now that -Wimplicit-fallthrough is passed to GCC by default, the following warnings shows up: ../drivers/gpu/drm/arm/malidp_hw.c: In function ‘malidp_format_get_bpp’: ../drivers/gpu/drm/arm/malidp_hw.c:387:8: warning: this statement may fall through [-Wimplicit-fallthrough=] bpp = 30; ~~~

[PATCH v3] net/socket: fix GCC8+ Wpacked-not-aligned warnings

2019-07-30 Thread Qian Cai
There are a lot of those warnings with GCC8+ 64-bit, In file included from ./include/linux/sctp.h:42, from net/core/skbuff.c:47: ./include/uapi/linux/sctp.h:395:1: warning: alignment 4 of 'struct sctp_paddr_change' is less than 8 [-Wpacked-not-aligned] } __attribute__((packed, al

Re: [PATCH 1/4] csky: Fixup dma_rmb/wmb synchronization problem

2019-07-30 Thread Guo Ren
Thx Arnd, On Tue, Jul 30, 2019 at 9:29 PM Arnd Bergmann wrote: > > On Tue, Jul 30, 2019 at 2:15 PM wrote: > > > > From: Guo Ren > > > > If arch didn't define dma_r/wmb(), linux will use w/rmb instead. Csky > > use bar.xxx to implement mb() and that will cause problem when sync data > > with dma

RE: [PATCH] enetc: Fix build error without PHYLIB

2019-07-30 Thread Claudiu Manoil
>-Original Message- >From: YueHaibing >Sent: Tuesday, July 30, 2019 5:30 PM >To: Claudiu Manoil ; da...@davemloft.net >Cc: linux-kernel@vger.kernel.org; net...@vger.kernel.org; YueHaibing > >Subject: [PATCH] enetc: Fix build error without PHYLIB > >If PHYLIB is not set, build enetc will fa

Re: [alsa-devel] [PATCH v2 3/3] ASoC: TDA7802: Add turn-on diagnostic routine

2019-07-30 Thread Thomas Preston
On 30/07/2019 15:20, Mark Brown wrote: > On Tue, Jul 30, 2019 at 03:04:19PM +0100, Thomas Preston wrote: >> On 30/07/2019 13:41, Charles Keepax wrote: > >>> This could probably be removed using regmap_multi_reg_write. > >> The problem is that I want to retain the state of the other bits in those

Re: [PATCH 1/2] soc: qcom: Extend AOSS QMP driver to support resources that are used to wake up the SoC.

2019-07-30 Thread Thara Gopinath
Hi Amit, Thanks for the review. On 07/30/2019 08:43 AM, Amit Kucheria wrote: > On Mon, Jul 29, 2019 at 10:03 PM Thara Gopinath > wrote: >> >> The AOSS QMP driver is extended to communicate with the additional >> resources. These resources are then registered as cooling devices >> with the thermal

Re: [PATCH 2/4] counter: new TI eQEP driver

2019-07-30 Thread David Lechner
On 7/30/19 7:35 AM, Uwe Kleine-König wrote: On Mon, Jul 22, 2019 at 10:45:36AM -0500, David Lechner wrote: This adds a new counter driver for the Texas Instruments Enhanced Quadrature Encoder Pulse (eQEP) module. Only very basic functionality is currently implemented - only enough to be able to

Re: [alsa-devel] [PATCH v2 3/3] ASoC: TDA7802: Add turn-on diagnostic routine

2019-07-30 Thread Thomas Preston
On 30/07/2019 15:19, Mark Brown wrote: > On Tue, Jul 30, 2019 at 01:09:37PM +0100, Thomas Preston wrote: > >> +struct dentry *debugfs; >> +struct mutex diagnostic_mutex; >> +}; > > It is unclear what this mutex usefully protects, it only gets taken when > writing to the debugfs file to tr

[v6 2/2] gpio: aspeed: Add SGPIO driver

2019-07-30 Thread Hongwei Zhang
Add SGPIO driver support for Aspeed AST2500 SoC. Signed-off-by: Hongwei Zhang --- drivers/gpio/sgpio-aspeed.c | 521 1 file changed, 521 insertions(+) create mode 100644 drivers/gpio/sgpio-aspeed.c diff --git a/drivers/gpio/sgpio-aspeed.c b/drivers/

[v6 1/2] dt-bindings: gpio: aspeed: Add SGPIO support

2019-07-30 Thread Hongwei Zhang
Add bindings to support SGPIO on AST2400 or AST2500. Signed-off-by: Hongwei Zhang --- .../devicetree/bindings/gpio/sgpio-aspeed.txt | 55 ++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/sgpio-aspeed.txt diff --git a/Documen

[v6 0/2] gpio: aspeed: Add SGPIO driver

2019-07-30 Thread Hongwei Zhang
Hello, This short series introduce dt-binding document and a driver for the Aspeed AST2500 SGPIO controller. Please review. [v6]: Changes between v5 and v6: - fix a bug in aspeed_sgpio_dir_out() - v5 feedback updates, some comments cleanup The related SGPM pinmux dt-binding do

[Patch v2 0/2] Add support for AOSS resources that are used to warm up the SoC

2019-07-30 Thread Thara Gopinath
The Always On Sub System (AOSS) hosts certain resources that are used to warm up the soc if the temperature falls below certain threshold. These resources are added can be considered as thermal warming devices (opposite of thermal cooling devices). These resources are controlled via AOSS QMP proto

[Patch v2 1/2] soc: qcom: Extend AOSS QMP driver to support resources that are used to wake up the SoC.

2019-07-30 Thread Thara Gopinath
The AOSS QMP driver is extended to communicate with the additional resources. These resources are then registered as cooling devices with the thermal framework. Signed-off-by: Thara Gopinath --- v1->v2: Added back name variable in qmp_cooling_device to fix the compilation error.

[Patch v2 2/2] arm64: dts: qcom: Extend AOSS QMP node

2019-07-30 Thread Thara Gopinath
AOSS hosts resources that can be used to warm up the SoC. Add nodes for these resources. Signed-off-by: Thara Gopinath --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi

Re: RFC: remove Nuvoton w90x900/nuc900 platform?

2019-07-30 Thread Arnd Bergmann
On Tue, Jul 30, 2019 at 3:59 PM Avi Fishman wrote: > > Note that we we are going to add soon > drivers/net/ethernet/nuvoton/npcm7xx_emc.c > so maybe don't remove drivers/net/ethernet/nuvoton Ok, thanks for a taking a look. I can leave an empty Makefile/Kconfig pair there then. Arnd

Re: [PATCH] kmemleak: Increase maximum early log entries to 1000000

2019-07-30 Thread Nicolas Boichat
On Wed, Jul 24, 2019 at 2:01 AM Andrey Ryabinin wrote: > > > > On 7/23/19 11:13 AM, Nicolas Boichat wrote: > > On Tue, Jul 23, 2019 at 3:46 PM Dmitry Vyukov wrote: > >> > >> On Tue, Jul 23, 2019 at 9:26 AM Nicolas Boichat > >> wrote: > >>> > >>> When KASan is enabled, a lot of memory is allocat

Re: [PATCH 4/4] csky: Add dma_inv_range for DMA_FROM_DEVICE

2019-07-30 Thread Arnd Bergmann
On Tue, Jul 30, 2019 at 5:11 PM Guo Ren wrote: > > > diff --git a/arch/csky/mm/dma-mapping.c b/arch/csky/mm/dma-mapping.c > > > cache_op(paddr, size, dma_wb_range); > > > break; > > > case DMA_FROM_DEVICE: > > > + cache_op(paddr, size, dma_inv_

Re: [PATCH] arm_pmu: Mark expected switch fall-through

2019-07-30 Thread Anders Roxell
On Tue, 30 Jul 2019 at 14:43, Will Deacon wrote: > > On Tue, Jul 30, 2019 at 02:30:27PM +0200, Anders Roxell wrote: > > On Tue, 30 Jul 2019 at 13:28, Will Deacon wrote: > > > > > > On Tue, Jul 30, 2019 at 12:24:15PM +0100, Mark Rutland wrote: > > > > On Fri, Jul 26, 2019 at 04:18:25PM +0100, Lore

Re: [PATCH] ARM: DTS: vybrid: Update qspi node description for VF610 BK4 board

2019-07-30 Thread Fabio Estevam
Hi Lukasz, Subject line could be improved: ARM: dts: vf610-bk4: Fix qspi node description On Tue, Jul 30, 2019 at 12:06 PM Lukasz Majewski wrote: > > Before this change the device tree description of qspi node for > second memory on BK4 board was wrong (applicable to old, in-house > tunned fsl-

Re: [PATCH 1/4] csky: Fixup dma_rmb/wmb synchronization problem

2019-07-30 Thread Guo Ren
On Tue, Jul 30, 2019 at 9:29 PM Arnd Bergmann wrote: > > On Tue, Jul 30, 2019 at 2:15 PM wrote: > > > > From: Guo Ren > > > > If arch didn't define dma_r/wmb(), linux will use w/rmb instead. Csky > > use bar.xxx to implement mb() and that will cause problem when sync data > > with dma device, be

Re: [PATCH 4/4] clk: meson: g12a: expose CPUB clock ID for G12B

2019-07-30 Thread Neil Armstrong
On 29/07/2019 15:16, Neil Armstrong wrote: > Expose the CPUB clock id to add DVFS to the second CPU cluster of > the Amlogic G12B SoC. > > Reviewed-by: Martin Blumenstingl > Signed-off-by: Neil Armstrong > --- > include/dt-bindings/clock/g12a-clkc.h | 1 + > 1 file changed, 1 insertion(+) > >

Re: [PATCH 2/4] clk: meson: regmap: export regmap_div ops functions

2019-07-30 Thread Neil Armstrong
On 29/07/2019 15:16, Neil Armstrong wrote: > The G12A CPU Clock Postmux divider needs a custom div_set_rate() call. > > Export the clk_regmap_div_round_rate() and clk_regmap_div_recalc_rate() > to be able to override the default clk_regmap_div_set_rate() callback. Signoff missing will fix in

Re: [PATCH 3/4] clk: meson: g12a: add notifiers to handle cpu clock change

2019-07-30 Thread Neil Armstrong
On 30/07/2019 10:37, Jerome Brunet wrote: > On Mon 29 Jul 2019 at 15:16, Neil Armstrong wrote: > >> In order to implement clock switching for the CLKID_CPU_CLK and >> CLKID_CPUB_CLK, notifiers are added on specific points of the >> clock tree : >> >> cpu_clk / cpub_clk >> | \- cpu_clk_dyn >> |

BUG: soft lockup in inet6_sendmsg

2019-07-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:fde50b96 Add linux-next specific files for 20190726 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1587037860 kernel config: https://syzkaller.appspot.com/x/.config?x=4b58274564b354c1 dashboard

Re: [PATCH 4/4] csky: Add dma_inv_range for DMA_FROM_DEVICE

2019-07-30 Thread Guo Ren
Thx Arnd, On Tue, Jul 30, 2019 at 9:43 PM Arnd Bergmann wrote: > > On Tue, Jul 30, 2019 at 2:16 PM wrote: > > From: Guo Ren > > > diff --git a/arch/csky/mm/dma-mapping.c b/arch/csky/mm/dma-mapping.c > > index 3f1ff9d..d8f0f81 100644 > > --- a/arch/csky/mm/dma-mapping.c > > +++ b/arch/csky/mm/dm

[PATCH 08/22] ARM: dts: imx7-colibri: Add touch controllers

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker Add atmel mxt multitouch controller and TouchRevolution multitouch controller which are connected over an I2C bus. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 37 + 1 file changed, 37 insertions(+) diff --git

[PATCH 07/22] ARM: dts: imx7-colibri: fix 1.8V/UHS support

2019-07-30 Thread Philippe Schenker
From: Stefan Agner Add pinmuxing and do not specify voltage restrictions in the module level device tree. Signed-off-by: Stefan Agner Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx7-colibri.dtsi | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff -

[PATCH 03/22] ARM: dts: imx7-colibri: prepare module device tree for FlexCAN

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker Prepare FlexCAN use on SODIMM 55/63 178/188. Those SODIMM pins are compatible for CAN bus use with several modules from the Colibri family. Add Better drivestrength and also add flexcan2. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx7-colibri.dtsi | 35 +++

[PATCH 04/22] ARM: dts: imx7-colibri: Add sleep mode to ethernet

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker Add sleep pinmux to the fec so it can properly sleep. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx7-colibri.dtsi | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/d

Re: WARNING in __mmdrop

2019-07-30 Thread Michael S. Tsirkin
On Tue, Jul 30, 2019 at 03:44:47PM +0800, Jason Wang wrote: > > On 2019/7/29 下午10:44, Michael S. Tsirkin wrote: > > On Mon, Jul 29, 2019 at 10:24:43PM +0800, Jason Wang wrote: > > > On 2019/7/29 下午4:59, Michael S. Tsirkin wrote: > > > > On Mon, Jul 29, 2019 at 01:54:49PM +0800, Jason Wang wrote: >

memory leak in pty_common_install

2019-07-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:6789f873 Merge tag 'pm-5.3-rc2' of git://git.kernel.org/pu.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1696897c60 kernel config: https://syzkaller.appspot.com/x/.config?x=339b6a6b3640d115 da

[PATCH] ARM: DTS: vybrid: Update qspi node description for VF610 BK4 board

2019-07-30 Thread Lukasz Majewski
Before this change the device tree description of qspi node for second memory on BK4 board was wrong (applicable to old, in-house tunned fsl-quadspi.c driver). As a result this memory was not recognized correctly when used with the new spi-fsl-qspi.c driver. >From the dt-bindings: "Required SPI

[PATCH 06/22] ARM: dts: imx7-colibri: add GPIO wakeup key

2019-07-30 Thread Philippe Schenker
From: Stefan Agner Add wakeup GPIO key which is able to wake the system from sleep modes (e.g. Suspend-to-Memory). Signed-off-by: Stefan Agner Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 14 ++ arch/arm/boot/dts/imx7-colibri.dtsi |

Re: [PATCH v2 00/12] tracing/probe: Add multi-probes per event support

2019-07-30 Thread Steven Rostedt
On Tue, 30 Jul 2019 15:23:31 +0900 Masami Hiramatsu wrote: > Hi Steve, > > Have you already picked this series? > If not yet, should I update and resend this series? I started to, but then got distracted :-/ I'll work with the current series, no need to resend. Sorry for the delay. -- Steve

Re: [PATCH 5.3] mwifiex: fix 802.11n/WPA detection

2019-07-30 Thread Kalle Valo
Brian Norris wrote: > Commit 63d7ef36103d ("mwifiex: Don't abort on small, spec-compliant > vendor IEs") adjusted the ieee_types_vendor_header struct, which > inadvertently messed up the offsets used in > mwifiex_is_wpa_oui_present(). Add that offset back in, mirroring > mwifiex_is_rsn_oui_presen

[PATCH 02/22] ARM: dts: imx7-colibri: disable HS400

2019-07-30 Thread Philippe Schenker
From: Stefan Agner Force HS200 by masking bit 63 of the SDHCI capability register. The i.MX ESDHC driver uses SDHCI_QUIRK2_CAPS_BIT63_FOR_HS400. With that the stack checks bit 63 to descide whether HS400 is available. Using sdhci-caps-mask allows to mask bit 63. The stack then selects HS200 as op

[PATCH 00/22] This patchset holds some common changes that were never upstreamed.

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker With latest downstream kernel upgrade, I took the aproach to select mainline devicetrees and atomically add missing stuff for downstream. These patches I send here are separated out with changes that also have a benfit for mainline. Philippe Marcel Ziswiler (1): ARM:

Re: [Xen-devel] [PATCH v4 8/9] xen/gntdev.c: Convert to use vm_map_pages()

2019-07-30 Thread Marek Marczykowski-Górecki
On Tue, Jul 30, 2019 at 08:22:02PM +0530, Souptick Joarder wrote: > On Tue, Jul 30, 2019 at 7:52 PM Marek Marczykowski-Górecki > wrote: > > > > On Tue, Jul 30, 2019 at 10:05:42AM -0400, Boris Ostrovsky wrote: > > > On 7/30/19 2:03 AM, Souptick Joarder wrote: > > > > On Mon, Jul 29, 2019 at 7:06 PM

[PATCH -next] drm/rockchip: Make analogix_dp_atomic_check static

2019-07-30 Thread YueHaibing
Fix sparse warning: drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:1151:5: warning: symbol 'analogix_dp_atomic_check' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 4 ++-- 1 file changed, 2

Re: [PATCH 01/12] rdmacg: Replace strncmp with str_has_prefix

2019-07-30 Thread Steven Rostedt
On Tue, 30 Jul 2019 00:03:28 -0700 Joe Perches wrote: > I believe I'm still in favor of global conversion of > strstarts to str_has_prefix. > So am I. -- Steve

Re: [PATCH 2/2] uprobe: collapse THP pmd after removing all uprobes

2019-07-30 Thread Kirill A. Shutemov
On Sun, Jul 28, 2019 at 10:43:35PM -0700, Song Liu wrote: > After all uprobes are removed from the huge page (with PTE pgtable), it > is possible to collapse the pmd and benefit from THP again. This patch > does the collapse by calling khugepaged_add_pte_mapped_thp(). > > Signed-off-by: Song Liu

[PATCH 05/22] ARM: dts: add recovery for I2C for iMX7

2019-07-30 Thread Philippe Schenker
From: Oleksandr Suvorov - add recovery mode for applicable i2c buses for Colibri iMX7 module. Signed-off-by: Oleksandr Suvorov Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx7-colibri.dtsi | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --g

RE: [PATCH v2] hv: tools: fixed Python pep8/flake8 warnings for lsvmbus

2019-07-30 Thread Adrian Vladu
Hello, There were two patches you have queued for hyperv-fixes a while ago, but I don't see them anymore in the hyperv-fixes tree: https://lore.kernel.org/patchwork/patch/1070848/ https://lore.kernel.org/patchwork/patch/1070806/ I have checked them and they can still be applied successfully on t

Re: linux-next: Tree for Jul 30 (drivers/net/phy/mdio-octeon.c: i386)

2019-07-30 Thread Randy Dunlap
On 7/29/19 10:15 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20190729: > on i386: ../drivers/net/phy/mdio-octeon.c: In function ‘octeon_mdiobus_probe’: ../drivers/net/phy/mdio-octeon.c:48:3: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u64)dev

[PATCH] dt-bindings: Fix generated example files getting added to schemas

2019-07-30 Thread Rob Herring
Commit 837158b847a4 ("dt-bindings: Check the examples against the schemas") started generating YAML encoded DT files to validate the examples against the schema. When running 'make dt_binding_check' in tree after the 1st time, the generated example .dt.yaml files are mistakenly added to the list of

Re: [PATCH v2 2/3] ASoC: Add codec driver for ST TDA7802

2019-07-30 Thread Mark Brown
On Tue, Jul 30, 2019 at 01:09:36PM +0100, Thomas Preston wrote: > index ..0f82a88bc1a4 > --- /dev/null > +++ b/sound/soc/codecs/tda7802.c > @@ -0,0 +1,509 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * tda7802.c -- codec driver for ST TDA7802 Please make the entire comment a

Re: [PATCH 1/2] khugepaged: enable collapse pmd for pte-mapped THP

2019-07-30 Thread Kirill A. Shutemov
On Sun, Jul 28, 2019 at 10:43:34PM -0700, Song Liu wrote: > khugepaged needs exclusive mmap_sem to access page table. When it fails > to lock mmap_sem, the page will fault in as pte-mapped THP. As the page > is already a THP, khugepaged will not handle this pmd again. > > This patch enables the kh

RE: [PATCH v2] net/socket: fix GCC8+ Wpacked-not-aligned warnings

2019-07-30 Thread David Laight
From: Qian Cai > Sent: 30 July 2019 15:38 ... > Use an implicit alignment for "struct __kernel_sockaddr_storage" so it > can keep the same alignments as a member in both packed and un-packed > structures without breaking UAPI. > > Suggested-by: David Laight ... Although I suggested it needs a bi

[PATCH 09/22] ARM: dts: imx6qdl-colibri: add phy to fec

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker Add the phy-node and mdio bus to the fec-node, represented as is on hardware. This commit includes micrel,led-mode that is set to the default value, prepared for someone who wants to change this. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6qdl-colibri.dt

[PATCH 18/22] ARM: dts: imx6ull-colibri: Add watchdog

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker This patch adds the watchdog to the imx6ull-colibri devicetree Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6ull-colibri.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6ull-colibri.dtsi b/arch/arm/boot/dts/imx6

[PATCH 19/22] ARM: dts: imx6ull: improve can templates

2019-07-30 Thread Philippe Schenker
From: Max Krummenacher Add the pinmuxing and a inactive node for flexcan1 on SODIMM 55/63 and move the inactive flexcan nodes to imx6ull-colibri-eval-v3.dtsi where they belong. Note that this commit does not enable flexcan functionality, but rather eases the effort needed to do so. Signed-off-b

[PATCH 13/22] ARM: dts: colibri-imx6: Add missing pinmuxing to Toradex eval board

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker This patch adds some missing pinmuxing that is in the colibri standard to the dts. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts

[PATCH 20/22] ARM: dts: imx6ull-colibri: Add general wakeup key used on Colibri

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker This adds the possibility to wake the module with an external signal as defined in the Colibri standard Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot

[PATCH 11/22] ARM: dts: imx6: Add sleep state to can interfaces

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker This patch prepares the devicetree for the new Ixora V1.2 where we are able to turn off the supply of the can transceiver. This implies to use a sleep state on transmission pins in order to prevent backfeeding. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx

[PATCH 16/22] ARM: dts: imx6ull-colibri: Add sleep mode to fec

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker Do not change the clock as the power for this phy is switched with that clock. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6ull-colibri.dtsi | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6ull-c

[PATCH 17/22] ARM: dts: imx6ull-colibri: reduce v_batt current in power off

2019-07-30 Thread Philippe Schenker
From: Max Krummenacher Reduce the current drawn from VCC_BATT when the main power on the 3V3 pins to the module are switched off. This switches off SoC internal pull resistors which are provided on the module for TAMPER7 and TAMPER9 SoC pin and switches on a pull down instead of a pullup for the

[PATCH 14/22] ARM: dts: apalis-imx6: Add some example I2C devices

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker Those devices are used in conjunction with Toradex's evalboard. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6q-apalis-eval.dts | 95 + 1 file changed, 95 insertions(+) diff --git a/arch/arm/boot/dts/imx6q-apalis-eval.dts b/arch/a

[PATCH 12/22] ARM: dts: imx6: Add touchscreens used on Toradex eval boards

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker This commit adds the touchscreens from Toradex so one can enable it. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 44 +++ arch/arm/boot/dts/imx6q-apalis-eval.dts | 19 arch/arm/boot/dts/imx6q-apalis

Re: [PATCH 2/2] KVM: selftests: Enable dirty_log_test on s390x

2019-07-30 Thread Christian Borntraeger
On 30.07.19 12:01, Thomas Huth wrote: > To run the dirty_log_test on s390x, we have to make sure that we > access the dirty log bitmap with little endian byte ordering and > we have to properly align the memslot of the guest. > Also all dirty bits of a segment are set once on s390x when one > of

[PATCH 15/22] ARM: dts: apalis-imx6: Add some optional I2C devices

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker This commit adds the mipi_csi node to Toradex's evalboard as found on the mezzanine connector Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6q-apalis-eval.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/imx6q-apalis-eval.dt

Re: [PATCH 1/2] mm/filemap: don't initiate writeback if mapping has no dirty pages

2019-07-30 Thread Konstantin Khlebnikov
On 30.07.2019 17:14, Jan Kara wrote: On Tue 23-07-19 11:16:51, Konstantin Khlebnikov wrote: On 23.07.2019 3:52, Andrew Morton wrote: (cc linux-fsdevel and Jan) Thanks for CC Andrew. On Mon, 22 Jul 2019 12:36:08 +0300 Konstantin Khlebnikov wrote: Functions like filemap_write_and_wait_ra

[PATCH 01/22] ARM: dts: imx7-colibri: make sure module supplies are always on

2019-07-30 Thread Philippe Schenker
From: Marcel Ziswiler Prevent regulators from being switched off. Signed-off-by: Marcel Ziswiler Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx7-colibri.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibr

[PATCH net-next] rxrpc: Fix -Wframe-larger-than= warnings from on-stack crypto

2019-07-30 Thread David Howells
rxkad sometimes triggers a warning about oversized stack frames when building with clang for a 32-bit architecture: net/rxrpc/rxkad.c:243:12: error: stack frame size of 1088 bytes in function 'rxkad_secure_packet' [-Werror,-Wframe-larger-than=] net/rxrpc/rxkad.c:501:12: error: stack frame size of

Re: [PATCH] scsi: 3w-sas: Fix unterminated strncpy

2019-07-30 Thread James Bottomley
On Tue, 2019-07-30 at 16:40 +0800, Chuhong Yuan wrote: > strncpy(dest, src, strlen(src)) leads to unterminated > dest, which is dangerous. I don't buy that. The structure is only used for the TW_IOCTL_GET_COMPATIBILITY_INFO ioctl and all the fields for that are fixed width and are copied over as

[PATCH 21/22] ARM: dts: imx6/7-colibri: switch dr_mode to otg

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker In order for the otg ports, that these modules support, it is needed that dr_mode is on otg. Switch to use that feature. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 2 +- arch/arm/boot/dts/imx7-colibri.dtsi| 2 +- 2 files changed,

[PATCH 22/22] ARM: dts: imx6ull-colibri: Add touchscreens used with Eval Board

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker This adds the common touchscreens that are used with Toradex's Eval Boards. Signed-off-by: Philippe Schenker --- .../arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 37 +++ 1 file changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/imx6ull-colibri-ev

[PATCH 10/22] ARM: dts: imx6qdl-colibri: Add missing pin declaration in iomuxc

2019-07-30 Thread Philippe Schenker
From: Philippe Schenker This adds the muxing for the optional pins usb-oc (overcurrent) and usb-id. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/ar

Re: [Xen-devel] [PATCH v4 8/9] xen/gntdev.c: Convert to use vm_map_pages()

2019-07-30 Thread Souptick Joarder
On Tue, Jul 30, 2019 at 7:52 PM Marek Marczykowski-Górecki wrote: > > On Tue, Jul 30, 2019 at 10:05:42AM -0400, Boris Ostrovsky wrote: > > On 7/30/19 2:03 AM, Souptick Joarder wrote: > > > On Mon, Jul 29, 2019 at 7:06 PM Marek Marczykowski-Górecki > > > wrote: > > >> On Mon, Jul 29, 2019 at 02:02

[PATCH net 2/2] rxrpc: Fix the lack of notification when sendmsg() fails on a DATA packet

2019-07-30 Thread David Howells
Fix the fact that a notification isn't sent to the recvmsg side to indicate a call failed when sendmsg() fails to transmit a DATA packet with the error ENETUNREACH, EHOSTUNREACH or ECONNREFUSED. Without this notification, the afs client just sits there waiting for the call to complete in some mann

Re: [PATCH 1/2] drivers: base: swnode: link devices to software nodes

2019-07-30 Thread Rafael J. Wysocki
On 7/30/2019 1:52 PM, Heikki Krogerus wrote: On Mon, Jul 29, 2019 at 03:15:32PM +0200, Dmitry Torokhov wrote: On Mon, Jul 29, 2019 at 03:07:15PM +0300, Heikki Krogerus wrote: On Sat, Jul 13, 2019 at 12:52:58AM -0700, Dmitry Torokhov wrote: It is helpful to know what device, if any, a software

[PATCH net 1/2] rxrpc: Fix potential deadlock

2019-07-30 Thread David Howells
There is a potential deadlock in rxrpc_peer_keepalive_dispatch() whereby rxrpc_put_peer() is called with the peer_hash_lock held, but if it reduces the peer's refcount to 0, rxrpc_put_peer() calls __rxrpc_put_peer() - which the tries to take the already held lock. Fix this by providing a version o

[PATCH net 0/2] rxrpc: Fixes

2019-07-30 Thread David Howells
rxrpc-fixes-20190730 and can also be found on the following branch: http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=rxrpc-fixes David --- David Howells (2): rxrpc: Fix potential deadlock rxrpc: Fix the lack of notification when sendmsg() fails on a DATA

[PATCH] powerpc/kvm: Mark expected switch fall-through

2019-07-30 Thread Paul Menzel
Date: Tue, 30 Jul 2019 10:53:10 +0200 Fix the error below triggered by `-Wimplicit-fallthrough`, by tagging it as an expected fall-through. arch/powerpc/kvm/book3s_32_mmu.c: In function ‘kvmppc_mmu_book3s_32_xlate_pte’: arch/powerpc/kvm/book3s_32_mmu.c:241:21: error: this statement may f

Re: [PATCH v2] net/socket: fix GCC8+ Wpacked-not-aligned warnings

2019-07-30 Thread Marcelo Ricardo Leitner
On Tue, Jul 30, 2019 at 10:38:08AM -0400, Qian Cai wrote: > In file included from ./include/linux/sctp.h:42, > from net/core/skbuff.c:47: > ./include/uapi/linux/sctp.h:395:1: warning: alignment 4 of 'struct > sctp_paddr_change' is less than 8 [-Wpacked-not-aligned] > } __attribute

Re: [Regression] Commit "nvme/pci: Use host managed power state for suspend" has problems

2019-07-30 Thread Keith Busch
On Tue, Jul 30, 2019 at 03:45:31AM -0700, Rafael J. Wysocki wrote: > So I can reproduce this problem with plain 5.3-rc1 and the patch below fixes > it. > > Also Mario reports that the same patch needs to be applied for his 9380 to > reach > SLP_S0 after some additional changes under testing/revi

Re: [GIT PULL] Wimplicit-fallthrough patches for 5.3-rc2

2019-07-30 Thread Kalle Valo
Kalle Valo writes: > "Gustavo A. R. Silva" writes: > >> On 7/27/19 1:08 PM, Linus Torvalds wrote: >> >>> >>> Ok, I have tried re-pulling and if it passes my build tests cleanly >>> I'll push the result out. >>> >> >> Awesome. :) > > BTW, now when using ccache 3.2.4 (which I admit is an old rel

Re: [PATCH] drivers/macintosh/smu.c: Mark expected switch fall-through

2019-07-30 Thread Stephen Rothwell
Hi Michael, On Wed, 31 Jul 2019 00:28:55 +1000 Michael Ellerman wrote: > > Why do we think it's an expected fall through? I can't really convince > myself from the surrounding code that it's definitely intentional. Its been that way since this code was introduced by commit 0365ba7fb1fa ("[PAT

Re: [PATCH v2] fs: xfs: Fix possible null-pointer dereferences in xchk_da_btree_block_check_sibling()

2019-07-30 Thread Darrick J. Wong
On Tue, Jul 30, 2019 at 10:32:06AM +0800, Jia-Ju Bai wrote: > In xchk_da_btree_block_check_sibling(), there is an if statement on > line 274 to check whether ds->state->altpath.blk[level].bp is NULL: > if (ds->state->altpath.blk[level].bp) > > When ds->state->altpath.blk[level].bp is NULL, it

[PATCH v2] net/socket: fix GCC8+ Wpacked-not-aligned warnings

2019-07-30 Thread Qian Cai
In file included from ./include/linux/sctp.h:42, from net/core/skbuff.c:47: ./include/uapi/linux/sctp.h:395:1: warning: alignment 4 of 'struct sctp_paddr_change' is less than 8 [-Wpacked-not-aligned] } __attribute__((packed, aligned(4))); ^ ./include/uapi/linux/sctp.h:728:1: warn

Re: [alsa-devel] [PATCH v2 1/3] dt-bindings: ASoC: Add TDA7802 amplifier

2019-07-30 Thread Mark Brown
On Tue, Jul 30, 2019 at 03:12:21PM +0100, Thomas Preston wrote: > On 30/07/2019 14:12, Marco Felsch wrote: > >>> +- compatible : "st,tda7802" > >>> +- reg : the I2C address of the device > >>> +- enable-supply : a regulator spec for the PLLen pin > > Shouldn't that be a pin called 'pllen-gpios'?

[PATCH][net-next] mac80211: add missing null return check from call to ieee80211_get_sband

2019-07-30 Thread Colin King
From: Colin Ian King The return from ieee80211_get_sband can potentially be a null pointer, so it seems prudent to add a null check to avoid a null pointer dereference on sband. Addresses-Coverity: ("Dereference null return") Fixes: 2ab45876756f ("mac80211: add support for the ADDBA extension el

Re: [PATCH v2 4/5] pinctrl: uniphier: Add Pro5 PCIe pin-mux settings

2019-07-30 Thread Masahiro Yamada
On Tue, Jul 30, 2019 at 2:44 PM Kunihiko Hayashi wrote: > > Pro5 PCIe interface uses the following pins: > XPERST, XPEWAKE, XPECLKRQ > > Signed-off-by: Kunihiko Hayashi > --- Acked-by: Masahiro Yamada -- Best Regards Masahiro Yamada

[PATCH] enetc: Fix build error without PHYLIB

2019-07-30 Thread YueHaibing
If PHYLIB is not set, build enetc will fails: drivers/net/ethernet/freescale/enetc/enetc.o: In function `enetc_open': enetc.c: undefined reference to `phy_disconnect' enetc.c: undefined reference to `phy_start' drivers/net/ethernet/freescale/enetc/enetc.o: In function `enetc_close': enetc.c: undef

[PATCH v2] rtl8192_init_priv_variable: null check is missing for kzalloc

2019-07-30 Thread Navid Emamdoost
Allocation for priv->pFirmware may fail, so a null check is necessary. priv->pFirmware is accessed later in rtl8192_adapter_start. I added the check and made appropriate changes to propagate the errno to the caller. Update: fixed style errors Signed-off-by: Navid Emamdoost --- drivers/staging/

Re: [PATCH] powerpc: workaround clang codegen bug in dcbz

2019-07-30 Thread Arnd Bergmann
On Tue, Jul 30, 2019 at 3:49 PM Segher Boessenkool wrote: > > On Tue, Jul 30, 2019 at 09:34:28AM +0200, Arnd Bergmann wrote: > > Upon a second look, I think the issue is that the "Z" is an input argument > > when it should be an output. clang decides that it can make a copy of the > > input and pa

Re: [PATCH v2 2/5] pinctrl: uniphier: Add another audio I/O pin-mux settings for LD20

2019-07-30 Thread Masahiro Yamada
On Tue, Jul 30, 2019 at 2:43 PM Kunihiko Hayashi wrote: > > This adds support for pinmux settings of aout1b group. This group includes > audio I/O signals derived from xirq pins, and it is equivalent to "aout1" > in functionality. > > Signed-off-by: Kunihiko Hayashi > --- Acked-by: Masahiro Yama

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