[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 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

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

[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

[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 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

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 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] 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

[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

[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

[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

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

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

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:

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

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 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 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 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

[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 -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

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 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] 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 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.

[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 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] 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 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

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 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 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] 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; \ >

[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

[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 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

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 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

[PATCH 0/3] Simple DVFS support for Allwinner A64 SoC

2017-09-22 Thread Icenowy Zheng
This patchset imports simple DVFS support for Allwinner A64 SoC. As the thermal sensor driver is not yet implemented and some boards have still no AXP PMIC support, now only two OPPs are present -- 648MHz@1.04V and 816MHz@1.1V to prevent overheat or undervoltage. PATCH 1 is a fix to the CCU drive

[PATCH 2/3] arm64: allwinner: a64: add CPU opp table

2017-09-22 Thread Icenowy Zheng
Add the operating table for the CPU (ARM cores) on Allwinner A64 SoC. OPPs higher to 816MHz is temporarily dropped, to prevent overheat on boards with AXP803 support and undervoltage on boards without AXP803 support. Signed-off-by: Icenowy Zheng --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi

Re: [PATCH v2 07/10] dmaengine: sun6i: Retrieve channel count/max request from devicetree

2017-09-22 Thread Brüns , Stefan
On Freitag, 22. September 2017 23:30:27 CEST Maxime Ripard wrote: > On Tue, Sep 19, 2017 at 04:17:59PM +, Brüns, Stefan wrote: > > On Dienstag, 19. September 2017 16:25:08 CEST Maxime Ripard wrote: > > > On Mon, Sep 18, 2017 at 02:09:43PM +, Brüns, Stefan wrote: > > > > On Montag, 18. Septe

Re: [PATCH] platform/x86: intel-hid: Power button suspend on Dell Latitude 7275

2017-09-22 Thread Darren Hart
On Mon, Sep 18, 2017 at 12:57:12AM +0200, Jérôme de Bretagne wrote: > From: Jérôme de Bretagne > > On Dell Latitude 7275 the 5-button array is not exposed in the > ACPI tables, but still notifies are sent to the Intel HID device > object (device ID INT33D5) in response to power button actions. >

Re: [PATCH v2 1/6] gpu: host1x: Enable Tegra186 syncpoint protection

2017-09-22 Thread Dmitry Osipenko
On 22.09.2017 17:02, Mikko Perttunen wrote: > On 09/05/2017 04:33 PM, Dmitry Osipenko wrote: >> On 05.09.2017 11:10, Mikko Perttunen wrote: >>> ... >> diff --git a/drivers/gpu/host1x/hw/channel_hw.c > b/drivers/gpu/host1x/hw/channel_hw.c >>> index 8447a56c41ca..0161da331702 100644 >>> --- a/driver

[GIT PULL] ACPI fixes for v4.14-rc2

2017-09-22 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.14-rc2 with top-most commit 672d0e4502a22364b298f9307f651c1b8313514b Merge branches 'acpi-pmic', 'acpi-bus', 'acpi-wdat' and 'acpi-properties' on top of commit 2bd6bf03f4c1c59381d62

Re: [PATCH] mm: madvise: add description for MADV_WIPEONFORK and MADV_KEEPONFORK

2017-09-22 Thread Rik van Riel
On Sat, 2017-09-23 at 05:55 +0800, Yang Shi wrote: > mm/madvise.c has the brief description about all MADV_ flags, added > the > description for the newly added MADV_WIPEONFORK and MADV_KEEPONFORK. > > Although man page has the similar information, but it'd better to > keep the > consistency with

[GIT PULL] Power management fixes for v4.14-rc2

2017-09-22 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.14-rc2 with top-most commit d84c97f8f77bc4124256e76864f125f45ad53744 Merge branches 'pm-cpufreq' and 'pm-cpuidle' on top of commit 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e Linux 4.1

[PATCH net-next v3 1/2] net: dsa: make slave close symmetrical to open

2017-09-22 Thread Vivien Didelot
The DSA slave open function configures the unicast MAC addresses on the master device, enable the switch port, change its STP state, then start the PHY device. Make the close function symmetric, by first stopping the PHY device, then changing the STP state, disabling the switch port and restore th

[PATCH net-next v3 2/2] net: dsa: add port enable and disable helpers

2017-09-22 Thread Vivien Didelot
Provide dsa_port_enable and dsa_port_disable helpers to respectively enable and disable a switch port. This makes the dsa_port_set_state_now helper static. Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli Reviewed-by: Andrew Lunn --- net/dsa/dsa_priv.h | 3 ++- net/dsa/port.c |

[PATCH 2/2] cpufreq: schedutil: consolidate capacity margin calculation

2017-09-22 Thread Leo Yan
Scheduler CFS class has variable 'capacity_margin' to calculate the capacity margin, and schedutil governor also needs to compensate the same margin for frequency tipping point. Below are formulas used in CFS class and schedutil governor separately: CFS: U` = U * capacity_margin / 1024 = U *

[PATCH net-next v3 0/2] net: dsa: port enabling

2017-09-22 Thread Vivien Didelot
This patchset makes slave open and close symmetrical and provides helpers for enabling or disabling a given DSA port. Changes in v3: - save the phy_device change for a future patchset Changes in v2: - do not remove the phy argument from port enable/disable Vivien Didelot (2): net: dsa: mak

[PATCH 1/2] sched/fair: make capacity_margin __read_mostly

2017-09-22 Thread Leo Yan
Variable 'capacity_margin' is used with read operation for most cases to calculate the capacity margin, put it into __read_mostly section. Cc: Dietmar Eggemann Cc: Morten Rasmussen Cc: Chris Redpath Cc: Joel Fernandes Cc: Vincent Guittot Signed-off-by: Leo Yan --- kernel/sched/fair.c | 2 +-

Re: [PATCH 1/7] drm/rockchip/dsi: correct Feedback divider setting

2017-09-22 Thread Matthias Kaehlcke
Hi Nickey, El Mon, Sep 18, 2017 at 05:05:33PM +0800 Nickey Yang ha dit: > This patch correct Feedback divider setting: > 1、Set Feedback divider [8:5] when HIGH_PROGRAM_EN > 2、Due to the use of a "by 2 pre-scaler," the range of the > feedback multiplication Feedback divider is limited to even > di

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 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 stack tracer itself, but with > the saving of the stack trace, which could

Re: [PATCH v4 12/13] xen/pvcalls: implement release command

2017-09-22 Thread Boris Ostrovsky
>> + */ >> +map->active.ring->in_error = -EBADF; >> +wake_up_interruptible(&map->active.inflight_conn_req); >> + >> +/* >> + * Wait until there are no more waiters on the mutexes. >> + * We know that no new waiters can be adde

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

2017-09-22 Thread Paul E. McKenney
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() and the is_kprobe_*insn_slot() > functions require the use of RCU. > > Onl

Re: [PATCH v4 12/13] xen/pvcalls: implement release command

2017-09-22 Thread Boris Ostrovsky
> > +static void pvcalls_front_free_map(struct pvcalls_bedata *bedata, > +struct sock_mapping *map) I just noticed: pvcalls_front_free_map() is referenced by patches 2 and 8. > +{ > + int i; > + > + unbind_from_irqhandler(map->active.irq, map); > + > +

[git pull] Input updates for v4.14-rc1

2017-09-22 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. You will get: - fixes for two long standing issues (lock up and a crash) in force feedback handling in uinput driver - tweak to firmware upda

Re: [PATCH] i2c: piix4: Fix SMBus port selection for AMD Family 17h chips

2017-09-22 Thread Guenter Roeck
On 08/12/2017 04:33 AM, Wolfram Sang wrote: On Sat, Jul 15, 2017 at 04:51:26PM -0700, Guenter Roeck wrote: AMD Family 17h uses the KERNCZ SMBus controller. While its documentation is not publicly available, it is documented in the BIOS and Kernel Developer’s Guide for AMD Family 15h Models 60h-6

Re: [PATCH 2/4] extable: Consolidate *kernel_text_address() functions

2017-09-22 Thread Paul E. McKenney
On Fri, Sep 22, 2017 at 06:15:45PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > The functionality between kernel_text_address() and _kernel_text_address() > is the same except that _kernel_text_address() does a little more (that > function needs a rename, but that can be don

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

2017-09-22 Thread Rafael J. Wysocki
On Friday, September 22, 2017 9:22:47 AM CEST Ulf Hansson wrote: > [...] > > >>> 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 ch

Re: Contribution to Linux Kernel.

2017-09-22 Thread Javier Romero
Hi Jon, Thank you very much for your suggestion. Best Regards, Javi El 22/09/17 a las 16:15, Jonathan Corbet escribió: On Thu, 21 Sep 2017 18:16:12 -0300 Javier Romero wrote: My name is Javier, live in Argentina, and work as a Linux Server admin in the Network Operations Center of an IS

[PATCH net-next] hv_netvsc: Fix the real number of queues of non-vRSS cases

2017-09-22 Thread Haiyang Zhang
From: Haiyang Zhang For older hosts without multi-channel (vRSS) support, and some error cases, we still need to set the real number of queues to one. This patch adds this missing setting. Fixes: 8195b1396ec8 ("hv_netvsc: fix deadlock on hotplug") Signed-off-by: Haiyang Zhang --- drivers/net/h

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

2017-09-22 Thread Josh Poimboeuf
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() and the is_kprobe_*insn_slot() > functions require the use of RCU. is_bpf_

Re: [PATCH v4 11/13] xen/pvcalls: implement poll command

2017-09-22 Thread Boris Ostrovsky
> > +static unsigned int pvcalls_front_poll_passive(struct file *file, > +struct pvcalls_bedata *bedata, > +struct sock_mapping *map, > +poll_table *wait) > +{ > +

[PATCH 0/4] RFC: TDA1997x HDMI video receiver

2017-09-22 Thread Tim Harvey
This is an RFC for a driver supporting the TDA1997x HDMI video receiver. I've tested this on a Gateworks GW54xx with an IMX6Q which uses the TDA19971 with 16bits connected to the IMX6 CSI. For this configuration I've tested both 16bit YUV422 and 8bit BT656 mode. While the driver should support the

[PATCH 2/4] media: dt-bindings: Add bindings for TDA1997X

2017-09-22 Thread Tim Harvey
Signed-off-by: Tim Harvey --- .../devicetree/bindings/media/i2c/tda1997x.txt | 159 + 1 file changed, 159 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/tda1997x.txt diff --git a/Documentation/devicetree/bindings/media/i2c/tda1997x.txt b/Do

[PATCH 3/4] media: i2c: Add TDA1997x HDMI receiver driver

2017-09-22 Thread Tim Harvey
Add support for the TDA1997x HDMI receivers. Signed-off-by: Tim Harvey --- drivers/media/i2c/Kconfig|9 + drivers/media/i2c/Makefile |1 + drivers/media/i2c/tda1997x.c | 3065 ++ include/dt-bindings/media/tda1997x.h | 78 +

[PATCH 4/4] ARM: DTS: imx: ventana: add TDA19971 HDMI Receiver to GW54xx

2017-09-22 Thread Tim Harvey
The GW54xx has a front-panel microHDMI connector routed to a TDA19971 which is connected the the IPU CSI when using IMX6Q. Signed-off-by: Tim Harvey --- arch/arm/boot/dts/imx6q-gw54xx.dts | 85 ++ 1 file changed, 85 insertions(+) diff --git a/arch/arm/boot/dt

[PATCH 1/4] MAINTAINERS: add entry for NXP TDA1997x driver

2017-09-22 Thread Tim Harvey
Signed-off-by: Tim Harvey --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2093060..de7124e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13019,6 +13019,14 @@ T: git git://linuxtv.org/mkrufky/tuners.git S: Maintained F: dri

[PATCH 0/4] rcu/tracing/extable: Fix stack dump when RCU is not watching

2017-09-22 Thread Steven Rostedt
I'm currently running this through my test suite, but wanted to get review or acks, so that I can send this right off to Linus before rc2. I need these to base my new work on. Basically if a stack trace happens (say from a WARN()) when RCU is not watching (like going to or coming from idle, or bri

Re: [Part2 PATCH v4 29/29] KVM: X86: Add CONFIG_KVM_AMD_SEV

2017-09-22 Thread kbuild test robot
Hi Brijesh, [auto build test ERROR on kvm/linux-next] [also build test ERROR on v4.14-rc1 next-20170922] [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/commits/Brijesh-Singh/x86-Secure-Encrypted

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

2017-09-22 Thread Steven Rostedt
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 stack tracer itself, but with the saving of the stack trace, which could happen from any WARN() as well. The problem was fixed within kernel_text_a

[PATCH 1/4] rcu: Allow for page faults in NMI handlers

2017-09-22 Thread Steven Rostedt
From: "Paul E. McKenney" A number of architecture invoke rcu_irq_enter() on exception entry in order to allow RCU read-side critical sections in the exception handler when the exception is from an idle or nohz_full CPU. This works, at least unless the exception happens in an NMI handler. In tha

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

2017-09-22 Thread Steven Rostedt
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() and the is_kprobe_*insn_slot() functions require the use of RCU. Only enable RCU if it is not currently watching before it calls is_module_text_ad

[PATCH 2/4] extable: Consolidate *kernel_text_address() functions

2017-09-22 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The functionality between kernel_text_address() and _kernel_text_address() is the same except that _kernel_text_address() does a little more (that function needs a rename, but that can be done another time). Instead of having duplicate code in both, simply have _ke

[PATCH RESEND] ASoC: codecs: msm8916-wcd-digital: fix RX2 MIX1 and RX3 MIX1

2017-09-22 Thread Jean-François Têtu
On Fri, Sep 22, 2017 at 17:45:25 -0400, Jean-François Têtu wrote: >The kcontrol for the third input (rxN_mix1_inp3) of both RX2 >and RX3 mixers are not using the correct control register. This simple >patch fixes this. > >Signed-off-by: Jean-François Têtu I'm sorry, I did not send this to the act

Re: [Part2 PATCH v4 16/29] KVM: SVM: Add support for SEV LAUNCH_START command

2017-09-22 Thread kbuild test robot
Hi Brijesh, [auto build test WARNING on kvm/linux-next] [also build test WARNING on v4.14-rc1 next-20170922] [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/commits/Brijesh-Singh/x86-Secure-Encrypted

[PATCH] KVM: SVM: fix eno.cocci warnings

2017-09-22 Thread kbuild test robot
arch/x86/kvm/svm.c:5728:5-11: ERROR: allocation function on line 5727 returns NULL not ERR_PTR on failure The various basic memory allocation functions don't return ERR_PTR Generated by: scripts/coccinelle/null/eno.cocci Fixes: 16e737dd7c3c ("KVM: SVM: Add support for SEV LAUNCH_START command"

Build failure of kernel v4.14-rc due to error in tools/perf

2017-09-22 Thread Akemi Yagi
Hi, The build of kernel v4.14-rc1 for i686 fails on RHEL 6 with the error in tools/perf: util/syscalltbl.c:157: error: expected ';', ',' or ')' before '__maybe_unused' mv: cannot stat `util/.syscalltbl.o.tmp': No such file or directory This is fixed by placing/moving #include outside of #ifd

Re: [PATCH v4 10/13] xen/pvcalls: implement recvmsg

2017-09-22 Thread Boris Ostrovsky
> > +static bool pvcalls_front_read_todo(struct sock_mapping *map) > +{ > + struct pvcalls_data_intf *intf = map->active.ring; > + RING_IDX cons, prod; > + int32_t error; > + > + cons = intf->in_cons; > + prod = intf->in_prod; > + error = intf->in_error; > + return (e

Re: [PATCH v4 09/13] xen/pvcalls: implement sendmsg

2017-09-22 Thread Boris Ostrovsky
> +static bool pvcalls_front_write_todo(struct sock_mapping *map) > +{ > + struct pvcalls_data_intf *intf = map->active.ring; > + RING_IDX cons, prod, size = XEN_FLEX_RING_SIZE(PVCALLS_RING_ORDER); > + int32_t error; > + > + cons = intf->out_cons; > + prod = intf->out_prod; > +

Re: [PATCH v3] drivers:platform/x86:Use ARRAY_SIZE() for the size calculation of the array.

2017-09-22 Thread Darren Hart
On Wed, Sep 13, 2017 at 04:29:31PM +0530, Allen Pais wrote: > Use ARRAY_SIZE() macro instead of TELEM_EVT_LEN(). > > v3: Replace TELEM_EVT_LEN() with ARRAY_SIZE(). > > Signed-off-by: Allen Pais Thanks Allen, queued for testing with minor changelog changes. > --- Note: in the future, the chan

[PATCH 4/5] Squashfs: implement .readpages()

2017-09-22 Thread Daniel Rosenberg
From: Adrien Schildknecht Squashfs does not implement .readpages(), so the kernel just repeatedly calls .readpage(). The readpages function tries to pack as much pages as possible in the same page actor so that only 1 read request is issued. Now that the read requests are asynchronous, the kern

[PATCH 3/5] Squashfs: replace buffer_head with BIO

2017-09-22 Thread Daniel Rosenberg
From: Adrien Schildknecht The 'll_rw_block' has been deprecated and BIO is now the basic container for block I/O within the kernel. Switching to BIO offers 2 advantages: 1/ It removes synchronous wait for the up-to-date buffers: SquashFS now deals with decompressions/copies asynchronously

[PATCH 5/5] Squashfs: optimize reading uncompressed data

2017-09-22 Thread Daniel Rosenberg
From: Adrien Schildknecht When dealing with uncompressed data, there is no need to read a whole block (default 128K) to get the desired page: the pages are independent from each others. This patch change the readpages logic so that reading uncompressed data only read the number of pages advised

[PATCH 0/5] Squashfs Whitelist and Compression Threshold

2017-09-22 Thread Daniel Rosenberg
These patches contain several optimizations to Squashfs. ll_rw_block is replaced with submit_bio. readpages is implemented to support asynchronous readahead. Uncompressed file reads are optimized, no longer requiring the entire block to be read if the block doesn't need to be decompressed, which gr

[PATCH 2/5] Squashfs: refactor page_actor

2017-09-22 Thread Daniel Rosenberg
From: Adrien Schildknecht This patch essentially does 3 things: 1/ Always use an array of page to store the data instead of a mix of buffers and pages. 2/ It is now possible to have 'holes' in a page actor, i.e. NULL pages in the array. When reading a block (default 128K), squa

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

2017-09-22 Thread Daniel Rosenberg
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 thing. Signed-off-by: Adrien Schildknecht Signed-off-by: Daniel Rosen

[PATCH] mm: madvise: add description for MADV_WIPEONFORK and MADV_KEEPONFORK

2017-09-22 Thread Yang Shi
mm/madvise.c has the brief description about all MADV_ flags, added the description for the newly added MADV_WIPEONFORK and MADV_KEEPONFORK. Although man page has the similar information, but it'd better to keep the consistency with other flags. Signed-off-by: Yang Shi --- mm/madvise.c | 7

Re: [PATCH] ARM: unaligned.h: Use an arch-specific version

2017-09-22 Thread Arnd Bergmann
On Fri, Sep 22, 2017 at 11:36 PM, Ard Biesheuvel wrote: > On 20 September 2017 at 13:35, Arnd Bergmann wrote: >> The architectures that do use include/asm-generic/unaligned.h and >> also set HAVE_EFFICIENT_UNALIGNED_ACCESS in some configurations >> are arm, arm64, metag, s390 and arc. >> >> This

Hello Dear

2017-09-22 Thread Peter Cheng
Good day I am Peter Cheng, from United States. I browsed through the internet and came across your mail. I would like us to be friends. Do you mind being my friend? Regards, Peter Cheng.

[PATCH] ASoC: codecs: msm8916-wcd-digital: fix RX2 MIX1 and RX3 MIX1

2017-09-22 Thread Jean-François Têtu
The kcontrol for the third input (rxN_mix1_inp3) of both RX2 and RX3 mixers are not using the correct control register. This simple patch fixes this. Signed-off-by: Jean-François Têtu --- sound/soc/codecs/msm8916-wcd-digital.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [RFC 00/11] KVM, EFI, arm64: EFI Runtime Services Sandboxing

2017-09-22 Thread Ard Biesheuvel
On 25 August 2017 at 01:31, Florent Revest wrote: > Hi, > > This series implements a mechanism to sandbox EFI Runtime Services on arm64. > It can be enabled with CONFIG_EFI_SANDBOX. At boot it spawns an internal KVM > virtual machine that is ran everytime an EFI Runtime Service is called. This > l

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

2017-09-22 Thread Colin Ian King
On 22/09/17 22:39, 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 >> textdata bss

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

2017-09-22 Thread Arnd Bergmann
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 > >>>textdata bss dec hex filename >>> 18220 176

[PATCH] MAINTAINERS: Add entry for Synopsys DesignWare APB GPIO driver

2017-09-22 Thread Hoan Tran
This patch adds maintainer for Synopsys DesignWare APB GPIO driver. Signed-off-by: Hoan Tran --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 36cf85d..7ee8957 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12929,6 +12929,12 @@ F: arch/

  1   2   3   4   5   6   7   8   >