[PATCH 1/3] clk: sunxi-ng: add mux and pll notifiers for A64 CPU clock

2017-09-22 Thread Icenowy Zheng
The A64 PLL_CPU clock has the same instability if some factor changed without the PLL gated like other SoCs with sun6i-style CCU, e.g. A33, H3. Add the mux and pll notifiers for A64 CPU clock to workaround the problem. Fixes: c6a0637460c2 ("clk: sunxi-ng: Add A64 clocks") Signed-off-by: Icenowy Z

[PATCH 3/3] arm64: allwinner: a64: set CPU regulator for Pine64

2017-09-22 Thread Icenowy Zheng
The DCDC2 regulator of the AXP803 PMIC is used for the voltage scaling of the ARM cores on the A64 SoC. Add this definition to enable it on Pine64. Signed-off-by: Icenowy Zheng --- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/a

Re: [PATCH] Asus WMI : Add lightbar led support

2017-09-22 Thread Darren Hart
On Thu, Sep 21, 2017 at 01:20:01PM +0200, Maxime Bellengé wrote: > Some asus laptops (ROG series for example) are provided with a lightbar > behind the monitor. > This patch make posible to switch it on and off. This lightbar works exactly > as any other led. > Hi Maxime, The patch looks good

[PATCH 0/3] fix reuseaddr regression

2017-09-22 Thread Josef Bacik
I introduced a regression when reworking the fastreuse port stuff that allows bind conflicts to occur once a reuseaddr successfully opens on an existing tb. The root cause is I reversed an if statement which caused us to set the tb as if there were no owners on the socket if there were, which obvio

[PATCH 2/3] net: use inet6_rcv_saddr to compare sockets

2017-09-22 Thread Josef Bacik
From: Josef Bacik In ipv6_rcv_saddr_equal() we need to use inet6_rcv_saddr(sk) for the ipv6 compare with the fast socket information to make sure we're doing the proper comparisons. Fixes: 637bc8bbe6c0 ("inet: reset tb->fastreuseport when adding a reuseport sk") Reported-and-tested-by: Cole Robi

[PATCH 3/3] inet: fix improper empty comparison

2017-09-22 Thread Josef Bacik
From: Josef Bacik When doing my reuseport rework I screwed up and changed a if (hlist_empty(&tb->owners)) to if (!hlist_empty(&tb->owners)) This is obviously bad as all of the reuseport/reuse logic was reversed, which caused weird problems like allowing an ipv4 bind conflict if we opened an i

[PATCH 1/3] net: set tb->fast_sk_family

2017-09-22 Thread Josef Bacik
From: Josef Bacik We need to set the tb->fast_sk_family properly so we can use the proper comparison function for all subsequent reuseport bind requests. Fixes: 637bc8bbe6c0 ("inet: reset tb->fastreuseport when adding a reuseport sk") Reported-and-tested-by: Cole Robinson Signed-off-by: Josef B

Re: [PATCH] selftests: futex: Makefile: fix for lops in targets to run silently

2017-09-22 Thread Darren Hart
On Mon, Sep 18, 2017 at 06:59:15PM -0600, Shuah Khan wrote: > Fix for loops in targets to run silently to avoid cluttering the test > results. > > Suppresses the following from targets: > > for DIR in functional; do \ > BUILD_TARGET=./tools/testing/selftests/futex/$DIR; \ >

Re: [PATCH 0/3] fix reuseaddr regression

2017-09-22 Thread Josef Bacik
On Tue, Sep 19, 2017 at 01:50:56PM -0700, David Miller wrote: > From: jo...@toxicpanda.com > Date: Mon, 18 Sep 2017 12:28:54 -0400 > > > I introduced a regression when reworking the fastreuse port stuff that > > allows > > bind conflicts to occur once a reuseaddr socket successfully opens on an >

Re: [PATCH 10/11] selftests: futex: copy sub-dir test scripts for make O=dir run

2017-09-22 Thread Darren Hart
On Tue, Sep 12, 2017 at 05:53:03PM -0600, Shuah Khan wrote: > For make O=dir run_tests to work, test scripts from sub-directories > need to be copied over to the object directory. Running tests from the > object directory is necessary to avoid making the source tree dirty. > > Signed-off-by: Shuah

Re: [PATCH net-next 10/10] net: hns3: Add mqprio support when interacting with network stack

2017-09-22 Thread Yunsheng Lin
Hi, Jiri On 2017/9/23 0:03, Jiri Pirko wrote: > Fri, Sep 22, 2017 at 04:11:51PM CEST, linyunsh...@huawei.com wrote: >> Hi, Jiri >> - if (!tc) { + if (if_running) { + (void)hns3_nic_net_stop(netdev); + msleep(100); + } + + ret = (kinfo->dcb_ops && kinfo->dcb_ops->

Re: [PATCH 1/2] KVM: nVMX: Fix nested #PF intends to break L1's vmlauch/vmresume

2017-09-22 Thread Wanpeng Li
2017-09-15 19:26 GMT+08:00 Paolo Bonzini : > On 15/09/2017 05:48, Wanpeng Li wrote: >> 2017-09-14 5:45 GMT+08:00 Paolo Bonzini : >>> On 13/09/2017 13:03, Wanpeng Li wrote: From: Wanpeng Li [ cut here ] WARNING: CPU: 4 PID: 5280 at /home/kernel/linux/arc

[PATCH] nvme: use menu Kconfig interface

2017-09-22 Thread Randy Dunlap
From: Randy Dunlap Add a menu interface for NVME host and target support so that it is presented to users more like other Kconfig symbols. This makes the Device Driver menu less cluttered (easier to read) and keeps all of these symbols grouped together. Signed-off-by: Randy Dunlap Cc: Jay Stern

Re: [PATCH 3/4] extable: Enable RCU if it is not watching in kernel_text_address()

2017-09-22 Thread Steven Rostedt
On Fri, 22 Sep 2017 15:44:06 -0700 "Paul E. McKenney" wrote: > On Fri, Sep 22, 2017 at 06:15:46PM -0400, Steven Rostedt wrote: > > From: "Steven Rostedt (VMware)" > > > > If kernel_text_address() is called when RCU is not watching, it can cause an > > RCU bug because is_module_text_address() an

[PATCH 3/4 v2] extable: Enable RCU if it is not watching in kernel_text_address()

2017-09-22 Thread Steven Rostedt
>From 32b9a1b584549478af9e55e2008d50c58a98535f Mon Sep 17 00:00:00 2001 From: "Steven Rostedt (VMware)" Date: Fri, 22 Sep 2017 17:36:32 -0400 Subject: [PATCH] extable: Enable RCU if it is not watching in kernel_text_address() If kernel_text_address() is called when RCU is not watching, it can ca

Re: [PATCH net-next] virtio-net: correctly set xdp_xmit for mergeable buffer

2017-09-22 Thread David Miller
From: Jason Wang Date: Fri, 22 Sep 2017 14:38:58 +0800 > We should set xdp_xmit only when xdp_do_redirect() succeed. > > Cc: John Fastabend > Signed-off-by: Jason Wang Applied, thanks Jason.

Re: [PATCH] net: stmmac: Meet alignment requirements for DMA

2017-09-22 Thread David Miller
From: Matt Redfearn Date: Fri, 22 Sep 2017 12:13:53 +0100 > According to Documentation/DMA-API.txt: > Warnings: Memory coherency operates at a granularity called the cache > line width. In order for memory mapped by this API to operate > correctly, the mapped region must begin exactly on a c

Re: [PATCH 4/4] tracing: Remove RCU work arounds from stack tracer

2017-09-22 Thread Steven Rostedt
On Fri, 22 Sep 2017 15:54:55 -0700 "Paul E. McKenney" wrote: > On Fri, Sep 22, 2017 at 06:15:47PM -0400, Steven Rostedt wrote: > > From: "Steven Rostedt (VMware)" > > > > While debugging some RCU issues with the stack tracer, it was discovered > > that the problem was much more than with the st

Re: [PATCH] lib/lz4: make arrays static const, reduces object code size

2017-09-22 Thread Joe Perches
On Fri, 2017-09-22 at 23:39 +0200, Arnd Bergmann wrote: > On Fri, Sep 22, 2017 at 9:17 PM, Arnd Bergmann wrote: > > On Fri, Sep 22, 2017 at 7:21 PM, Joe Perches wrote: > > > On Fri, 2017-09-22 at 09:48 +0200, Arnd Bergmann wrote: > > > > On Fri, Sep 22, 2017 at 1:11 AM, Colin Ian King > > > >

Re: [PATCH] lib/lz4: make arrays static const, reduces object code size

2017-09-22 Thread Joe Perches
On Fri, 2017-09-22 at 21:17 +0200, Arnd Bergmann wrote: > On Fri, Sep 22, 2017 at 7:21 PM, Joe Perches wrote: > > On Fri, 2017-09-22 at 09:48 +0200, Arnd Bergmann wrote: > > > On Fri, Sep 22, 2017 at 1:11 AM, Colin Ian King > > >textdata bss dec hex filename > > > 18220 1

Re: [PATCH v2 -next] spi: fix spi-sprd-adi build errors when SPI_SPRD_ADI=y and HWSPINLOCK=m

2017-09-22 Thread Randy Dunlap
On 09/22/17 02:26, Mark Brown wrote: > On Thu, Sep 21, 2017 at 11:02:31AM -0700, Randy Dunlap wrote: > >> spi-sprd-adi.c:(.text+0x3ee): undefined reference to `__hwspin_unlock' >> >> v2: allow build with or without HWSPINLOCK, but restrict to =m >> if HWSPINLOCK=m. >> >> Signed-off-by: Randy Dunla

[PATCH v2] spi: fix spi-sprd-adi build errors when HWSPINLOCK=m and SPI_SPRD_ADI=y

2017-09-22 Thread Randy Dunlap
From: Randy Dunlap Fix build errors when CONFIG_HWSPINLOCK=m and SPI_SPRD_ADI=y. That combination is not allowed. This allows building with HWSPINLOCK and SPI_SPRD_ADI in any combinations except for HWSPINLOCK=m and SPI_SPRD_ADI=y. drivers/spi/spi-sprd-adi.o: In function `sprd_adi_remove': spi-

Re: [PATCH v2 03/12] ARM: dts: sunxi: h3/h5: Fix node with unit name and no reg property

2017-09-22 Thread Chen-Yu Tsai
On Sat, Sep 23, 2017 at 2:40 AM, Corentin Labbe wrote: > This patch fix the warning "xxx has a unit name, but no reg property" by > removing "@0" from such node. > > Signed-off-by: Corentin Labbe > Acked-by: Maxime Ripard > --- > arch/arm/boot/dts/sunxi-h3-h5.dtsi | 12 ++-- > 1 file ch

Re: [PATCH v2 03/22] fpga: bridge: remove OF dependency for fpga-bridge

2017-09-22 Thread Alan Tull
On Thu, Sep 21, 2017 at 9:15 PM, Wu Hao wrote: > On Thu, Sep 21, 2017 at 02:50:07PM -0500, Alan Tull wrote: >> On Thu, Sep 21, 2017 at 2:11 PM, Moritz Fischer wrote: >> >> Hi Moritz, >> >> > Hi, >> > >> > On Mon, Jun 26, 2017 at 09:51:59AM +0800, Wu Hao wrote: >> >> This patch removes OF dependen

Re: [PATCH 1/5] Squashfs: remove the FILE_CACHE option

2017-09-22 Thread Phillip Lougher
On Fri, Sep 22, 2017 at 10:55 PM, Daniel Rosenberg wrote: > From: Adrien Schildknecht > > FILE_DIRECT is working fine and offers faster results and lower memory > footprint. > > Removing FILE_CACHE makes our life easier because we don't have to > maintain 2 differents function that does the same

Re: [PATCH v2 11/12] arm64: allwinner: a64: Fix node with unit name and no reg property

2017-09-22 Thread Chen-Yu Tsai
On Sat, Sep 23, 2017 at 2:40 AM, Corentin Labbe wrote: > This patch fix the warning "xxx has a unit name, but no reg property" by > removing "@0" from such node > > Signed-off-by: Corentin Labbe > Acked-by: Maxime Ripard > --- > arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 4 ++-- > 1 file c

Re: [PATCH 0/3] fix reuseaddr regression

2017-09-22 Thread David Miller
From: Josef Bacik Date: Fri, 22 Sep 2017 20:20:05 -0400 > I introduced a regression when reworking the fastreuse port stuff that allows > bind conflicts to occur once a reuseaddr successfully opens on an existing tb. > The root cause is I reversed an if statement which caused us to set the tb as

drivers/staging//rtlwifi/phydm/phydm_dig.c:494:45: warning: array subscript is below array bounds

2017-09-22 Thread kbuild test robot
Hi Larry, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c0a3a64e723324ae6dda53214061a71de63808c3 commit: 5b5ab4cb5cda824ef59e0511ac5d585f35f1a1a6 staging: r8822be: Add Makefiles and Kconfig for new driver date:

drivers/scsi/pcmcia/aha152x_core.o: warning: objtool: is_complete()+0x83: unreachable instruction

2017-09-22 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c0a3a64e723324ae6dda53214061a71de63808c3 commit: 39358a033b2e4432052265c1fa0f36f572d8cfb5 objtool, x86: Add facility for asm code to provide unwind hints date: 10 weeks ago config: x86_64-randconfig-v0-092

Re: [PATCH] params: Align add_sysfs_param documentation with code

2017-09-22 Thread Rusty Russell
Jean Delvare writes: > This parameter is named kp, so the documentation should use that. > > Signed-off-by: Jean Delvare > Fixes: 9b473de87209 ("param: Fix duplicate module prefixes") > Cc: Rusty Russell Acked-by: Rusty Russell Thanks, Rusty. > --- > kernel/params.c |2 +- > 1 file cha

[PATCH] clk: Export clk_bulk_prepare()

2017-09-22 Thread Bjorn Andersson
Allow clk_bulk_prepare() to be referenced by kernel modules by adding the missing EXPORT_SYMBOL_GPL(). Fixes: 266e4e9d9150 ("clk: add clk_bulk_get accessories") Reported-by: Ulf Hansson Signed-off-by: Bjorn Andersson --- drivers/clk/clk-bulk.c | 1 + 1 file changed, 1 insertion(+) diff --git a

[GIT] Networking

2017-09-22 Thread David Miller
1) Fix NAPI poll list corruption in enic driver, from Christian Lamparter. 2) Fix route use after free, from Eric Dumazet. 3) Fix regression in reuseaddr handling, from Josef Bacik. 4) Assert the size of control messages in compat handling since we copy it in from userspace twice. From M

[GIT PULL] apparmor updates for v4.14-rc2

2017-09-22 Thread John Johansen
Hi, This is a direct apparmor pull request, similar to SELinux's for the v4.14 window, and the seccomp request that was sent today for v4.14-rc2; it's the same series that I was sent to James' security tree + one regression fix that was found after the series was sent to James and would have been

Re: [PATCH] mm/device-public-memory: Fix edge case in _vm_normal_page()

2017-09-22 Thread Balbir Singh
On Sat, Sep 23, 2017 at 12:56 AM, Reza Arbab wrote: > With device public pages at the end of my memory space, I'm getting > output from _vm_normal_page(): > > BUG: Bad page map in process migrate_pages pte:c0810d06 pmd:f95d3000 > addr:7fff8933 vm_flags:00100073 anon_vma:c000fa

[PATCH 0/3] iio: adc: twl4030: Fix some error handling issues in 'twl4030_madc_probe()'

2017-09-22 Thread Christophe JAILLET
These 3 patches are all related to error hangling in 'twl4030_madc_probe()'. They are also all related to commit 7cc97d77ee8a ("iio: adc: twl4030: Fix ADC[3:6] readings") The semantic of the patches behing slighly different: - direct return instead of going through the error handling path -

Re: [PATCH 4/4] tracing: Remove RCU work arounds from stack tracer

2017-09-22 Thread Paul E. McKenney
On Fri, Sep 22, 2017 at 09:27:39PM -0400, Steven Rostedt wrote: > On Fri, 22 Sep 2017 15:54:55 -0700 > "Paul E. McKenney" wrote: > > > On Fri, Sep 22, 2017 at 06:15:47PM -0400, Steven Rostedt wrote: > > > From: "Steven Rostedt (VMware)" > > > > > > While debugging some RCU issues with the stack

[PATCH 1/3] iio: adc: twl4030: Fix an error handling path in 'twl4030_madc_probe()'

2017-09-22 Thread Christophe JAILLET
If 'devm_regulator_get()' fails, we should go through the existing error handling path instead of returning directly, as done is all the other error handling paths in this function. Fixes: 7cc97d77ee8a ("iio: adc: twl4030: Fix ADC[3:6] readings") Signed-off-by: Christophe JAILLET --- drivers/iio

[PATCH 3/3] iio: adc: twl4030: Return an error if we can not enable the vusb3v1 regulator in 'twl4030_madc_probe()'

2017-09-22 Thread Christophe JAILLET
If we can not enable the regulator, go through the error handling path instead of silently continuing. Fixes: 7cc97d77ee8a ("iio: adc: twl4030: Fix ADC[3:6] readings") Signed-off-by: Christophe JAILLET --- This patch is highly speculative. I don't find logical to return an error if we don't find

[PATCH 2/3] iio: adc: twl4030: Disable the vusb3v1 rugulator in the error handling path of 'twl4030_madc_probe()'

2017-09-22 Thread Christophe JAILLET
Commit 7cc97d77ee8a has introduced a call to 'regulator_disable()' in the .remove function. So we should also have such a call in the .probe function in case of error after a successful 'regulator_enable()' call. Add a new label for that and use it. Fixes: 7cc97d77ee8a ("iio: adc: twl4030: Fix AD

Re: [PATCH v4 2/5] dt-bindings: input: Add document bindings for mtk-pmic-keys

2017-09-22 Thread Chen Zhong
On Wed, 2017-09-20 at 15:53 -0500, Rob Herring wrote: > On Sun, Sep 17, 2017 at 04:00:49PM +0800, Chen Zhong wrote: > > This patch adds the device tree binding documentation for the MediaTek > > pmic keys found on PMIC MT6397/MT6323. > > > > Signed-off-by: Chen Zhong > > --- > > .../devicetree/b

Re: [PATCH v4 2/5] dt-bindings: input: Add document bindings for mtk-pmic-keys

2017-09-22 Thread Chen Zhong
Sorry for the typo. On Sat, 2017-09-23 at 14:38 +0800, Chen Zhong wrote: > On Wed, 2017-09-20 at 15:53 -0500, Rob Herring wrote: > > On Sun, Sep 17, 2017 at 04:00:49PM +0800, Chen Zhong wrote: > > > This patch adds the device tree binding documentation for the MediaTek > > > pmic keys found on PMI

[PATCH] hwmon: (xgene) Fix up error handling path mixup in 'xgene_hwmon_probe()'

2017-09-22 Thread Christophe JAILLET
Commit 2ca492e22cb7 has moved the call to 'kfifo_alloc()' from after the main 'if' statement to before it. But it has not updated the error handling paths accordingly. Fix all that: - if 'kfifo_alloc()' fails we can return directly - direct returns after 'kfifo_alloc()' must now go to 'out_m

Re: [PATCH] android: binder: fix type mismatch warning

2017-09-22 Thread Martijn Coenen
On Wed, Sep 20, 2017 at 3:37 PM, Arnd Bergmann wrote: > I'm not really worried about shipping Android products, for those > there is no big problem using the compile-time option as they build > everything together. Ack. > The case that gets interesting is a any kind of user that wants to > run a

Re: [PATCH] dmaengine: ti-dma-crossbar: Fix possible race condition with dma_inuse

2017-09-22 Thread Peter Ujfalusi
Vinod, Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 2017-09-21 20:30, Vinod Koul wrote: > On Thu, Sep 21, 2017 at 02:35:32PM +0300, Peter Ujfalusi wrote: >> When looking for unused xbar_out lane we should also

Re: [PATCH net-next 2/2] net: dsa: lan9303: Add basic offloading of unicast traffic

2017-09-22 Thread Egil Hjelmeland
Den 21. sep. 2017 16:21, skrev Andrew Lunn: Hi Egil +static void lan9303_bridge_ports(struct lan9303 *chip) +{ + /* ports bridged: remove mirroring */ + lan9303_write_switch_reg(chip, LAN9303_SWE_PORT_MIRROR, 0); +} Could you replace the 0 with something symbolic which makes this

Re: linux-next: build failure after merge of the net-next tree

2017-09-22 Thread Paolo Abeni
On Thu, 2017-09-21 at 18:37 -0700, David Miller wrote: > From: Stephen Rothwell > Date: Fri, 22 Sep 2017 11:03:55 +1000 > > > After merging the net-next tree, today's linux-next build (arm > > multi_v7_defconfig) failed like this: > > > > net/ipv4/fib_frontend.c: In function 'fib_validate_source

Re: [PATCH v2] PM / OPP: Use snprintf to avoid kasprintf and kfree

2017-09-22 Thread Stephen Boyd
On 09/21, Arvind Yadav wrote: > Use snprintf to avoid unnecessary initializations, avoid calling kfree. > > Signed-off-by: Arvind Yadav > --- Reviewed-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH] i2c: designware: make const array supported_speeds static to shink object code size

2017-09-22 Thread Jarkko Nikula
On 09/22/2017 01:30 AM, Colin King wrote: From: Colin Ian King Don't populate const array supported_speeds on the stack, instead make it static. Makes the object code smaller by 150 bytes: Before: text data bss dec hex filename 8474 1440 09914

Re: [PATCH] PM: Document rules on using pm_runtime_resume() in system suspend callbacks

2017-09-22 Thread Ulf Hansson
[...] >>> Second, leaving devices in runtime suspend in the "suspend" phase of system >>> suspend is fishy even when their runtime PM is disabled, because that >>> doesn't >>> guarantee anything regarding their children or possible consumers. Runtime >>> PM may still be enabled for those devices

Re: [PATCH net-next 2/2] net: dsa: lan9303: Add basic offloading of unicast traffic

2017-09-22 Thread Egil Hjelmeland
Den 21. sep. 2017 16:26, skrev Vivien Didelot: Hi Egil, Egil Hjelmeland writes: When both user ports are joined to the same bridge, the normal HW MAC learning is enabled. This means that unicast traffic is forwarded in HW. If one of the user ports leave the bridge, the ports goes back to the

Re: [PATCH] wireless: iwlegacy: make const array static to shink object code size Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit

2017-09-22 Thread Julia Lawall
On Thu, 21 Sep 2017, Colin King wrote: > From: Colin Ian King > > Don't populate const array ac_to_fifo on the stack in an inlined > function, instead make it static. Makes the object code smaller > by over 800 bytes: > >text data bss dec hex filename > 159029

Re: [patch 2/3] KVM: x86: KVM_HC_RT_PRIO hypercall (host-side)

2017-09-22 Thread Paolo Bonzini
On 22/09/2017 03:08, Marcelo Tosatti wrote: > On Thu, Sep 21, 2017 at 03:49:33PM +0200, Paolo Bonzini wrote: >> On 21/09/2017 15:32, Konrad Rzeszutek Wilk wrote: >>> So the guest can change the scheduling decisions at the host level? >>> And the host HAS to follow it? There is no policy override fo

Re: [PATCH] dt-bindings: i2c: Add armada-38x i2c binding

2017-09-22 Thread Gregory CLEMENT
Hi Kalyan, On ven., sept. 22 2017, Kalyan Kinthada wrote: > All armada-38x variants(380, 385, 388) SoCs have an issue > in i2c controller which violates the i2c repeated start timing. Did you had an issue with one of the SoC ? If yes what was your setting ? On my side I never managed to hav

[RESEND PATCH v5 3/4] dt-bindings: stm32-dma: add a property to handle STM32 DMAMUX

2017-09-22 Thread Pierre-Yves MORDRET
STM32 DMA controller has to exposed its number of request line to be addressed via STM32 DMAMUX. Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET Acked-by: Rob Herring --- Version history: v5: v4: * get rid of st,dmamux property * number of DMA

[RESEND PATCH v5 0/4] Add STM32 DMAMUX support

2017-09-22 Thread Pierre-Yves MORDRET
This patchset adds support for the STM32 DMA multiplexer. It allows to map any peripheral DMA request to any channel of the product DMAs. This IP has been introduced with STM32H7 SoC. --- Version history: v5: * Set selected channel ID within a lock to avoid race condition. R

[RESEND PATCH v5 4/4] ARM: configs: stm32: Add DMAMUX support in STM32 defconfig

2017-09-22 Thread Pierre-Yves MORDRET
This patch adds DMAMUX support in STM32 defconfig file Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v5: v4: v3: v2: * None --- --- arch/arm/configs/stm32_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arc

[RESEND PATCH v5 2/4] dmaengine: Add STM32 DMAMUX driver

2017-09-22 Thread Pierre-Yves MORDRET
This patch implements the STM32 DMAMUX driver. The DMAMUX request multiplexer allows routing a DMA request line between the peripherals and the DMA controllers of the product. The routing function is ensured by a programmable multi-channel DMA request line multiplexer. Each channel selects a uniqu

[RESEND PATCH v5 1/4] dt-bindings: Document the STM32 DMAMUX bindings

2017-09-22 Thread Pierre-Yves MORDRET
This patch adds the documentation of device tree bindings for the STM32 DMAMUX. Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET Acked-by: Rob Herring --- Version history: v5: v4: * Add multi-master ability for STM32 DMAMUX * Get rid of st,dmam

Re: [PATCH v2 07/22] fpga: intel: pcie: parse feature list and create platform device for features.

2017-09-22 Thread Wu Hao
On Wed, Sep 20, 2017 at 04:24:10PM -0500, Alan Tull wrote: > a (wh., *()On Sun, Jun 25, 2017 at 8:52 PM, Wu Hao wrote: > > Hi Hao, > > I'm done with some board bringup so I have time to look at your patchset > again. Hi Alan Thanks for your time on the review. : ) > > Something I can't hel

[PATCH v2] staging: vc04_services: Remove typedef struct

2017-09-22 Thread Harsha Sharma
Remove typedef from struct as linux-kernel coding style tends to avoid using typedefs Done using following coccinelle semantic patch @r1@ type T; @@ typedef struct { ... } T; @script:python c1@ T2; T << r1.T; @@ if T[-2:] =="_t" or T[-2:] == "_T": coccinelle.T2 = T[:-2]; else: c

[PATCH v2] Input: add support for the Samsung S6SY761 touchscreen

2017-09-22 Thread Andi Shyti
The S6SY761 touchscreen is a capicitive multi-touch controller for mobile use. It's connected with i2c at the address 0x48. This commit provides a basic version of the driver which can handle only initialization, touch events and power states. The controller is controlled by a firmware which, in

Re: [PATCH v2 07/22] fpga: intel: pcie: parse feature list and create platform device for features.

2017-09-22 Thread Wu Hao
On Thu, Sep 21, 2017 at 02:58:57PM -0500, Alan Tull wrote: > )On Wed, Sep 20, 2017 at 4:24 PM, Alan Tull wrote: > > Hi Hao, > > A few more minor things below. Hi Alan Thanks for your comments, will fix them in the next version. Thanks Hao > > > a (wh., *()On Sun, Jun 25, 2017 at 8:52 PM, W

Re: usb/media/hdpvr: trying to register non-static key in hdpvr_probe

2017-09-22 Thread Arvind Yadav
Hi, I have a doubt. Why we are calling flush_work in hdpvr_probe for every failure. We are flushing work which is not defined yet. Here, hdpvr_register_videodev() is responsible for setup and register a video device. Also defining and initializing a worker. we are calling hdpvr_register_vide

[PATCH 2/2] pci/layerscape: change the default error response behavior

2017-09-22 Thread Zhiqiang Hou
From: Minghuan Lian By default, when the PCIe controller experiences an erroneous completion from an external completer for its outbound non-posted request, it always sends an OKAY response to the device's internal AXI slave system interface. However, such default system error response behavior c

[PATCH 0/2] PCI: layerscape: add fixes for layerscape-pcie errata

2017-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang The [1/2] is to fix layerscape PCIe MSI/MSI-X capability errata. The [2/2] is to change the default AXI system error response behavior for PCI Express outbound non-posted requests. Hou Zhiqiang (1): PCI: Disable MSI for Freescale PCIe RC mode Minghuan Lian (1): pci/layers

[PATCH 1/2] PCI: Disable MSI for Freescale PCIe RC mode

2017-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang The Freescale PCIe controller advertises the MSI/MSI-X capability in both RC and Endpoint mode, but in RC mode it doesn't support MSI/MSI-X by it self, it can only transfer MSI/MSI-X from downstream devices. So add this quirk to prevent use of MSI/MSI-X in RC mode. Signed-off-

[PATCH] arch: remove unused *_segments() macros/functions

2017-09-22 Thread Tobias Klauser
Some architectures define the no-op macros/functions copy_segments, release_segments and forget_segments. These are used nowhere in the tree, so removed them. Signed-off-by: Tobias Klauser --- arch/arc/include/asm/processor.h| 3 --- arch/c6x/include/asm/processor.h| 3 --- arc

Re: [Outreachy kernel] [PATCH v2] staging: vc04_services: Remove typedef struct

2017-09-22 Thread Julia Lawall
On Fri, 22 Sep 2017, Harsha Sharma wrote: > Remove typedef from struct as linux-kernel coding style tends to > avoid using typedefs > > Done using following coccinelle semantic patch > > @r1@ > type T; > @@ > > typedef struct { ... } T; > > @script:python c1@ > T2; > T << r1.T; > @@ > if T[-2:]

Re: [PATCH] lib/lz4: make arrays static const, reduces object code size

2017-09-22 Thread Arnd Bergmann
On Fri, Sep 22, 2017 at 1:11 AM, Colin Ian King wrote: > On 22/09/17 00:09, Christophe JAILLET wrote: >> Le 22/09/2017 à 00:19, Colin King a écrit : >>> From: Colin Ian King >>> >>> Don't populate the read-only arrays dec32table and dec64table on the >>> stack, instead make them both static const

Re: [PATCH 02/12] ARM: dts: sunxi: h3/h5: Fix i2c2 register address

2017-09-22 Thread Maxime Ripard
On Thu, Sep 21, 2017 at 05:21:41PM +, Corentin Labbe wrote: > The unit address and register address does not match. > This patch fix the register address with the good one. > > Signed-off-by: Corentin Labbe > --- > arch/arm/boot/dts/sunxi-h3-h5.dtsi | 4 ++-- > 1 file changed, 2 insertions(+

[PATCH] Input: stmfts - use devm_device_add_group

2017-09-22 Thread Andi Shyti
instead of sysfs_create_group. Signed-off-by: Andi Shyti --- drivers/input/touchscreen/stmfts.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/stmfts.c b/drivers/input/touchscreen/stmfts.c index 157fdb4bb2e8..2351199189a4 100644 --- a/drivers/in

Re: [PATCH v3 03/10] kexec_file: factor out arch_kexec_kernel_*() from x86, powerpc

2017-09-22 Thread AKASHI Takahiro
Hi Dave, On Thu, Sep 21, 2017 at 03:35:16PM +0800, Dave Young wrote: > Hi AKASHI, > On 09/15/17 at 07:59pm, AKASHI Takahiro wrote: > > arch_kexec_kernel_*() and arch_kimage_file_post_load_cleanup can now be > > duplicated among some architectures, so let's factor them out. > > > > Signed-off-by:

Re: [PATCH net-next] net: mvpp2: phylink support

2017-09-22 Thread Marcin Wojtas
Hi Antoine, You can add Tested-by: Marcin Wojtas Best regards, Marcin 2017-09-21 15:45 GMT+02:00 Antoine Tenart : > Convert the PPv2 driver to use phylink, which models the MAC to PHY > link. The phylink support is made such a way the GoP link IRQ can still > be used: the two modes are incompat

Re: [RFC PATCH 7/7] sound: core: Avoid using timespec for struct snd_timer_tread

2017-09-22 Thread Arnd Bergmann
On Fri, Sep 22, 2017 at 5:00 AM, Baolin Wang wrote: > On 21 September 2017 at 21:09, Arnd Bergmann wrote: >> On Thu, Sep 21, 2017 at 8:18 AM, Baolin Wang wrote: >> >>> +static int snd_timer_user_tread(void __user *argp, struct snd_timer_user >>> *tu, >>> + unsigned

Re: usb/storage/uas: slab-out-of-bounds in uas_probe

2017-09-22 Thread Greg Kroah-Hartman
On Thu, Sep 21, 2017 at 03:04:05PM -0400, Alan Stern wrote: > On Thu, 21 Sep 2017, Andrey Konovalov wrote: > > > On Thu, Sep 21, 2017 at 6:10 PM, Greg Kroah-Hartman > > wrote: > > > On Thu, Sep 21, 2017 at 05:39:05PM +0200, Andrey Konovalov wrote: > > >> Hi! > > >> > > >> I've got the following r

Re: [RFC][PATCH v2 0/7] printk/ia64/ppc64/parisc64: let's deprecate %pF/%pf printk specifiers

2017-09-22 Thread Sergey Senozhatsky
On (09/22/17 11:04), Santosh Sivaraj wrote: [..] > > *** A BIG NOTE *** > > I don't own ia64/ppc64/parisc64 hardware, so the patches are not > > tested. Sorry about that! > > Tested patch series on ppc64 sucessfully. > > You may add tested by to the series. > > Tested-by: Santosh

[PATCH net-next RFC 0/5] batched tx processing in vhost_net

2017-09-22 Thread Jason Wang
Hi: This series tries to implement basic tx batched processing. This is done by prefetching descriptor indices and update used ring in a batch. This intends to speed up used ring updating and improve the cache utilization. Test shows about ~22% improvement in tx pss. Please review. Jason Wang (5

Re: [PATCH 02/12] ARM: dts: sunxi: h3/h5: Fix i2c2 register address

2017-09-22 Thread Corentin Labbe
On Fri, Sep 22, 2017 at 09:49:45AM +0200, Maxime Ripard wrote: > On Thu, Sep 21, 2017 at 05:21:41PM +, Corentin Labbe wrote: > > The unit address and register address does not match. > > This patch fix the register address with the good one. > > > > Signed-off-by: Corentin Labbe > > --- > >

[PATCH net-next RFC 4/5] vhost_net: rename VHOST_RX_BATCH to VHOST_NET_BATCH

2017-09-22 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/vhost/net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 58585ec..c89640e 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -87,7 +87,7 @@ struct vhost_net_ubuf_ref {

[PATCH net-next RFC 5/5] vhost_net: basic tx virtqueue batched processing

2017-09-22 Thread Jason Wang
This patch implements basic batched processing of tx virtqueue by prefetching desc indices and updating used ring in a batch. For non-zerocopy case, vq->heads were used for storing the prefetched indices and updating used ring. It is also a requirement for doing more batching on top. For zerocopy c

[PATCH net-next RFC 2/5] vhost: introduce helper to prefetch desc index

2017-09-22 Thread Jason Wang
This patch introduces vhost_prefetch_desc_indices() which could batch descriptor indices fetching and used ring updating. This intends to reduce the cache misses of indices fetching and updating and reduce cache line bounce when virtqueue is almost full. copy_to_user() was used in order to benefit

[PATCH net-next RFC 3/5] vhost: introduce vhost_add_used_idx()

2017-09-22 Thread Jason Wang
This patch introduces a helper which just increase the used idx. This will be used in pair with vhost_prefetch_desc_indices() by batching code. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 33 + drivers/vhost/vhost.h | 1 + 2 files changed, 34 insertions

[PATCH net-next RFC 1/5] vhost: split out ring head fetching logic

2017-09-22 Thread Jason Wang
This patch splits out ring head fetching logic and leave the descriptor fetching and translation logic. This makes it is possible to batch fetching the descriptor indices. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 75 +-- drivers/vhost/

Re: [RESEND PATCH v2 2/5] mtd: spi-nor: cadence-quadspi: add a delay in write sequence

2017-09-22 Thread kbuild test robot
-support/20170922-152110 base: git://git.infradead.org/l2-mtd.git spi-nor/next config: sparc64-allmodconfig (attached as .config) compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin

Re: [PATCH] generic: Add nocheck shutdown stress test

2017-09-22 Thread Eryu Guan
On Thu, Sep 21, 2017 at 02:34:43PM -0700, Khazhismel Kumykov wrote: > Most shutdown tests only run on filesystems with metadata journaling, so > we lose coverage. Add a shutdown stress test that doesn't check for > consistency, so does not require journaling. > > Signed-off-by: Khazhismel Kumykov

Re: [PATCH 3/4] rtc: mediatek: enhance the description for MediaTek PMIC based RTC

2017-09-22 Thread Eddie Huang
Hi Sean, On Fri, 2017-09-22 at 11:33 +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > Give a better description for original MediaTek RTC driver as PMIC based > RTC in order to distinguish SoC based RTC. Also turning all words with > Mediatek to MediaTek here. > > Cc: Eddie Huang > S

[PATCH] mmc: rtsx: fix tuning fail on gen3 PCI-Express

2017-09-22 Thread rui_feng
From: rui_feng On gen3 PCI-Express we should send command one by one. If sending many commands in one packet will lead to a failure. Signed-off-by: rui_feng --- drivers/mmc/host/rtsx_pci_sdmmc.c | 38 ++ include/linux/mfd/rtsx_pci.h | 1 + 2 files chan

Re: usb/storage/uas: slab-out-of-bounds in uas_probe

2017-09-22 Thread Greg Kroah-Hartman
On Fri, Sep 22, 2017 at 09:58:15AM +0200, Greg Kroah-Hartman wrote: > On Thu, Sep 21, 2017 at 03:04:05PM -0400, Alan Stern wrote: > > On Thu, 21 Sep 2017, Andrey Konovalov wrote: > > > > > On Thu, Sep 21, 2017 at 6:10 PM, Greg Kroah-Hartman > > > wrote: > > > > On Thu, Sep 21, 2017 at 05:39:05PM

Re: [PATCH 0/4] iirqchip: Handle return value of kasprintf

2017-09-22 Thread Marc Zyngier
On Wed, Sep 20 2017 at 1:38:18 pm BST, Arvind Yadav wrote: > kasprintf() can fail here and we must check its return value. Or not. The use of these strings is purely cosmetic (they are only used to display various debug information), and printk is perfectly able to handle a NULL string. Refusi

Re: [RFC PATCH v3 1/2] membarrier: Provide register expedited private command

2017-09-22 Thread Peter Zijlstra
On Fri, Sep 22, 2017 at 11:22:06AM +0800, Boqun Feng wrote: > The idea is in membarrier_private_expedited(), we go through all ->curr > on each CPU and > > 1)If it's a userspace task and its ->mm is matched, we send an ipi > > 2)If it's a kernel task, we skip > > (Because there w

[PATCH 00/10] use setup_timer() helper function.

2017-09-22 Thread Allen Pais
This series uses setup_timer() helper function. The series addresses the files under drivers/tty/*. Allen Pais (10): drivers: tty: mux: use setup_timer() helper. drivers:tty: imx: use setup_timer() helper. drivers: tty: vcc: use setup_timer() helper. drivers: tty: max3100: use setup_timer(

[PATCH 02/10] drivers:tty: imx: use setup_timer() helper.

2017-09-22 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/tty/serial/imx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index dfeff39..64f57

[PATCH 08/10] drivers: tty: n_gsm: use setup_timer() helper.

2017-09-22 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/tty/n_gsm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index 0a3c966..33530d8 1006

[PATCH 10/10] drivers: tty: ifx6x60: use setup_timer() helper.

2017-09-22 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/tty/serial/ifx6x60.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/ifx6x60.c b/drivers/tty/serial/ifx6x60.

[PATCH 05/10] drivers: tty: pnx8xxx: use setup_timer() helper.

2017-09-22 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/tty/serial/pnx8xxx_uart.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/pnx8xxx_uart.c b/drivers/tty/serial/pnx8x

[PATCH 04/10] drivers: tty: max3100: use setup_timer() helper.

2017-09-22 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/tty/serial/max3100.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/max3100.c b/drivers/tty/serial/max3100.c index

[PATCH 09/10] drivers: tty: sn_console: use setup_timer() helper.

2017-09-22 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/tty/serial/sn_console.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/tty/serial/sn_console.c b/drivers/tty/serial/sn_c

[PATCH 07/10] drivers: tty: sa1100: use setup_timer() helper.

2017-09-22 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/tty/serial/sa1100.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/sa1100.c b/drivers/tty/serial/sa1100.c index fd3

[PATCH] ACPI / battery: add quirk for Asus GL502VSK and UX305LA

2017-09-22 Thread Kai-Heng Feng
On Asus GL502VSK and UX305LA, ACPI incorrectly reports discharging when battery is full and AC is plugged. However rate_now is correct under this circumstance, hence we can use "rate_now == 0" as a predicate to report battery full status correctly. BugLink: https://bugs.launchpad.net/bugs/1482390

Re: [GIT PULL 1/3] stm class: Fix a use-after-free

2017-09-22 Thread Greg KH
On Tue, Sep 19, 2017 at 06:47:40PM +0300, Alexander Shishkin wrote: > For reasons unknown, the stm_source removal path uses device_destroy() > to kill the underlying device object. Because device_destroy() uses > devt to look for the device to destroy and the fact that stm_source > devices don't ha

<    1   2   3   4   5   6   7   8   >