[PATCH] platform/chrome: cros_ec_trace: update generating script

2019-07-23 Thread Tzung-Bi Shih
To remove ", \" from the last line. Signed-off-by: Tzung-Bi Shih --- drivers/platform/chrome/cros_ec_trace.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/platform/chrome/cros_ec_trace.c b/drivers/platform/chrome/cros_ec_trace.c index

Re: [PATCH v3] sched/topology: Improve load balancing on AMD EPYC

2019-07-23 Thread Peter Zijlstra
On Tue, Jul 23, 2019 at 12:42:48PM +0100, Mel Gorman wrote: > On Tue, Jul 23, 2019 at 11:48:30AM +0100, Matt Fleming wrote: > > SD_BALANCE_{FORK,EXEC} and SD_WAKE_AFFINE are stripped in sd_init() > > for any sched domains with a NUMA distance greater than 2 hops > > (RECLAIM_DISTANCE). The idea

Re: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool

2019-07-23 Thread Jon Hunter
On 23/07/2019 11:49, Jose Abreu wrote: > From: Jon Hunter > Date: Jul/23/2019, 11:38:33 (UTC+00:00) > >> >> On 23/07/2019 11:07, Jose Abreu wrote: >>> From: Jon Hunter >>> Date: Jul/23/2019, 11:01:24 (UTC+00:00) >>> This appears to be a winner and by disabling the SMMU for the ethernet

[PATCH] Input: Apple SPI keyboard needs CRC16

2019-07-23 Thread Arnd Bergmann
In some rare randconfig builds, CRC16 is disabled, which leads to a link error: drivers/input/keyboard/applespi.o: In function `applespi_send_cmd_msg': applespi.c:(.text+0x449f): undefined reference to `crc16' drivers/input/keyboard/applespi.o: In function `applespi_verify_crc':

[PATCH RFC] mm/page_idle: simple idle page tracking for virtual memory

2019-07-23 Thread Konstantin Khlebnikov
The page_idle tracking feature currently requires looking up the pagemap for a process followed by interacting with /sys/kernel/mm/page_idle. This is quite cumbersome and can be error-prone too. If between accessing the per-PID pagemap and the global page_idle bitmap, if something changes with the

Re: get_maintainers.pl subsystem output

2019-07-23 Thread Joe Perches
On Tue, 2019-07-23 at 09:29 +0200, Duda, Sebastian wrote: > Hi Joe, > > when analyzing the patch > `<20150128012747.824898...@linuxfoundation.org>` [1] with https://lore.kernel.org/lkml/220150128012747.824898...@linuxfoundation.org > `get_maintainers.pl --subsystem --status --separator ,

[PATCH] serial: 8250_omap: Fix idling for unloaded serdev drivers

2019-07-23 Thread Tony Lindgren
For many years omap variants have been setting the runtime PM autosuspend delay to -1 to prevent unsafe policy with lossy first character on wake-up. The user must specifically enable the timeout for UARTs if desired. We must not enable the workaround for serdev devices though. It leads into

[PATCH] memstick: r592: Use dev_get_drvdata

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- drivers/memstick/host/r592.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/memstick/host/r592.c b/drivers/memstick/host/r592.c index

[PATCH] mfd: timberdale: Use dev_get_drvdata

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- drivers/mfd/timberdale.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/timberdale.c b/drivers/mfd/timberdale.c index

[PATCH] media: pci: Use dev_get_drvdata where possible

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 3 +-- drivers/media/pci/pt1/pt1.c | 6 ++ drivers/media/pci/pt3/pt3.c | 6 ++ 3 files changed, 5

[PATCH] ide: Use dev_get_drvdata where possible

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- drivers/ide/siimage.c | 3 +-- drivers/ide/via82cxxx.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/ide/siimage.c b/drivers/ide/siimage.c

[PATCH] IB/usnic: Use dev_get_drvdata

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/usnic/usnic_ib_verbs.c

Re: [PATCH 0/6] ARM: psci: cpuidle: PSCI CPUidle rework

2019-07-23 Thread Ulf Hansson
On Mon, 22 Jul 2019 at 17:37, Lorenzo Pieralisi wrote: > > Current PSCI CPUidle driver is built on top of the generic ARM > CPUidle infrastructure that relies on the architectural back-end > idle operations to initialize and enter idle states. > > On ARM64 systems, PSCI is the only interface the

[tip:x86/cleanups] x86/bitops: Use __builtin_constant_p() directly instead of IS_IMMEDIATE()

2019-07-23 Thread tip-bot for Masahiro Yamada
Commit-ID: bdd50d7421b2f8fd99f953e1f747e0cb3f3bed64 Gitweb: https://git.kernel.org/tip/bdd50d7421b2f8fd99f953e1f747e0cb3f3bed64 Author: Masahiro Yamada AuthorDate: Tue, 23 Jul 2019 16:44:15 +0900 Committer: Thomas Gleixner CommitDate: Tue, 23 Jul 2019 13:44:18 +0200 x86/bitops: Use

Re: [PATCH 6/6] PSCI: cpuidle: Refactor CPU suspend power_state parameter handling

2019-07-23 Thread Ulf Hansson
On Mon, 22 Jul 2019 at 17:38, Lorenzo Pieralisi wrote: > > Current PSCI code handles idle state entry through the > psci_cpu_suspend_enter() API, that takes an idle state index as a > parameter and convert the index into a previously initialized > power_state parameter before calling the

Re: [PATCH 4/6] ARM: psci: cpuidle: Introduce PSCI CPUidle driver

2019-07-23 Thread Ulf Hansson
[...] > +++ b/drivers/cpuidle/cpuidle-psci.c > @@ -0,0 +1,150 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * PSCI CPU idle driver. > + * > + * Copyright (C) 2019 ARM Ltd. > + * Author: Lorenzo Pieralisi > + */ > + > +#define pr_fmt(fmt) "CPUidle PSCI: " fmt > + > +#include >

[tip:x86/build] x86/build: Remove unneeded uapi asm-generic wrappers

2019-07-23 Thread tip-bot for Masahiro Yamada
Commit-ID: 701010532164eaacd415ec5683717da03f4b822d Gitweb: https://git.kernel.org/tip/701010532164eaacd415ec5683717da03f4b822d Author: Masahiro Yamada AuthorDate: Tue, 23 Jul 2019 20:26:45 +0900 Committer: Thomas Gleixner CommitDate: Tue, 23 Jul 2019 13:42:14 +0200 x86/build: Remove

Re: [PATCH v3] sched/topology: Improve load balancing on AMD EPYC

2019-07-23 Thread Mel Gorman
On Tue, Jul 23, 2019 at 11:48:30AM +0100, Matt Fleming wrote: > SD_BALANCE_{FORK,EXEC} and SD_WAKE_AFFINE are stripped in sd_init() > for any sched domains with a NUMA distance greater than 2 hops > (RECLAIM_DISTANCE). The idea being that it's expensive to balance > across domains that far apart.

[PATCH] ia64: remove unneeded uapi asm-generic wrappers

2019-07-23 Thread Masahiro Yamada
These are listed in include/uapi/asm-generic/Kbuild, so Kbuild will automatically generate them. Signed-off-by: Masahiro Yamada --- arch/ia64/include/uapi/asm/errno.h | 2 -- arch/ia64/include/uapi/asm/ioctl.h | 2 -- arch/ia64/include/uapi/asm/ioctls.h | 7 --- 3 files changed, 11

[PATCH] sparc: remove unneeded uapi/asm/statfs.h

2019-07-23 Thread Masahiro Yamada
statfs.h is listed in include/uapi/asm-generic/Kbuild, so Kbuild will automatically generate it. Signed-off-by: Masahiro Yamada --- arch/sparc/include/uapi/asm/statfs.h | 7 --- 1 file changed, 7 deletions(-) delete mode 100644 arch/sparc/include/uapi/asm/statfs.h diff --git

[PATCH] sh: remove unneeded uapi asm-generic wrappers

2019-07-23 Thread Masahiro Yamada
These are listed in include/uapi/asm-generic/Kbuild, so Kbuild will automatically generate them. Signed-off-by: Masahiro Yamada --- arch/sh/include/uapi/asm/setup.h | 2 -- arch/sh/include/uapi/asm/types.h | 2 -- 2 files changed, 4 deletions(-) delete mode 100644

[PATCH] arm64: remove unneeded uapi/asm/stat.h

2019-07-23 Thread Masahiro Yamada
stat.h is listed in include/uapi/asm-generic/Kbuild, so Kbuild will automatically generate it. Signed-off-by: Masahiro Yamada --- arch/arm64/include/uapi/asm/stat.h | 17 - 1 file changed, 17 deletions(-) delete mode 100644 arch/arm64/include/uapi/asm/stat.h diff --git

Applied "ASoC: rt5665: Fix a typo in the name of a function" to the asoc tree

2019-07-23 Thread Mark Brown
The patch ASoC: rt5665: Fix a typo in the name of a function has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "regulator: stm32-booster: Remove .min_uV and .list_voltage for fixed regulator" to the regulator tree

2019-07-23 Thread Mark Brown
The patch regulator: stm32-booster: Remove .min_uV and .list_voltage for fixed regulator has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.4 All being well this means that it will be integrated into the linux-next tree

Re: [PATCH v3 2/2] Input: soc_button_array - Add support for newer surface devices

2019-07-23 Thread Maximilian Luz
On 7/22/19 10:00 AM, Enrico Weigelt, metux IT consult wrote: On 20.07.19 17:05, Maximilian Luz wrote: Power and volume button support for 5th and 6th generation Microsoft Surface devices via soc_button_array. Note that these devices use the same MSHW0040 device as on the Surface Pro 4, however

Applied "ASoC: pcm3168a: Fix a typo in the name of a constant" to the asoc tree

2019-07-23 Thread Mark Brown
The patch ASoC: pcm3168a: Fix a typo in the name of a constant has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "ASoC: fsl_esai: recover the channel swap after xrun" to the asoc tree

2019-07-23 Thread Mark Brown
The patch ASoC: fsl_esai: recover the channel swap after xrun has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "regulator: act8865: Add support for act8600 charger" to the regulator tree

2019-07-23 Thread Mark Brown
The patch regulator: act8865: Add support for act8600 charger has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Re: [PATCH] [net-next] net/mlx5e: xsk: dynamically allocate mlx5e_channel_param

2019-07-23 Thread Arnd Bergmann
On Tue, Jul 23, 2019 at 1:21 PM Maxim Mikityanskiy wrote: > On 2019-07-08 18:16, Maxim Mikityanskiy wrote: > > On 2019-07-08 15:55, Arnd Bergmann wrote: > >> -mlx5e_build_xsk_cparam(priv, params, xsk, ); > >> +cparam = kzalloc(sizeof(*cparam), GFP_KERNEL); > > > > Similar code in

[PATCH 8/8] ARM: dts: Fix lcdc sysc flags for am3

2019-07-23 Thread Tony Lindgren
The LCDC controller on am335x has a sysconfig register without a SOFTRESET bit. Let's configure that by setting ti,sysc-mask = <0> as otherwise we get the following warning: ti-sysc 4830e000.target-module: idlemodes 0087 != 0007 And the legacy platform data has LCDC midle unconfigured so

[PATCH 7/8] ARM: dts: Fix incorrect dcan register mapping for am3, am4 and dra7

2019-07-23 Thread Tony Lindgren
We are currently using a wrong register for dcan revision. Although this is currently only used for detecting the dcan module, let's fix it to avoid confusion. Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/am33xx-l4.dtsi | 4 arch/arm/boot/dts/am437x-l4.dtsi | 4

[PATCH 6/8] ARM: dts: Fix flags for gpio7

2019-07-23 Thread Tony Lindgren
The ti,no-idle-on-init and ti,no-reset-on-init flags need to be at the interconnect target module level for the modules that have it defined. Otherwise we get the following warnings: dts flag should be at module level for ti,no-idle-on-init dts flag should be at module level for

[PATCH 0/8] ti-sysc related warning fixes for v5.3-rc cycle

2019-07-23 Thread Tony Lindgren
Hi all, I noticed that with recent ti-sysc driver changes some new warnings have crept in. Mostly they are caused by having different configuration in the dts compared to the legacy platform data. Let's fix these first before we continue dropping the legacy platform data. I also noticed we need

[PATCH 1/8] ARM: OMAP2+: Fix missing SYSC_HAS_RESET_STATUS for dra7 epwmss

2019-07-23 Thread Tony Lindgren
TRM says PWMSS_SYSCONFIG bit for SOFTRESET changes to zero when reset is completed. Let's configure it as otherwise we get warnings on boot when we check the data against dts provided data. Eventually the legacy platform data will be just dropped, but let's fix the warning first. Signed-off-by:

[PATCH 2/8] ARM: OMAP2+: Remove unconfigured midlemode for am3 lcdc

2019-07-23 Thread Tony Lindgren
We currently get a warning for lcdc because of a difference with dts provided configuration compared to the legacy platform data. This is because lcdc has SYSC_HAS_MIDLEMODE configured in the platform data without configuring the modes. Let's fix the warning by removing SYSC_HAS_MIDLEMODE. Note

[PATCH 4/8] bus: ti-sysc: Fix using configured sysc mask value

2019-07-23 Thread Tony Lindgren
We have cases where there are no softreset bits like with am335x lcdc. In that case ti,sysc-mask = <0> needs to be handled properly. Signed-off-by: Tony Lindgren --- drivers/bus/ti-sysc.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/bus/ti-sysc.c

[PATCH] x86/build: remove unneeded uapi asm-generic wrappers

2019-07-23 Thread Masahiro Yamada
These are listed in include/uapi/asm-generic/Kbuild, so Kbuild will automatically generate them. Signed-off-by: Masahiro Yamada --- arch/x86/include/uapi/asm/errno.h| 1 - arch/x86/include/uapi/asm/fcntl.h| 1 - arch/x86/include/uapi/asm/ioctl.h| 1 -

[PATCH 5/8] ARM: dts: Drop bogus ahclkr clocks for dra7 mcasp 3 to 8

2019-07-23 Thread Tony Lindgren
The ahclkr clkctrl clock bit 28 only exists for mcasp 1 and 2 on dra7. Otherwise we get the following warning on beagle-x15: ti-sysc 48468000.target-module: could not add child clock ahclkr: -19 Fixes: 5241ccbf2819 ("ARM: dts: Add missing ranges for dra7 mcasp l3 ports") Signed-off-by: Tony

[PATCH 3/8] bus: ti-sysc: Fix handling of forced idle

2019-07-23 Thread Tony Lindgren
For some devices we can get the following warning on boot: ti-sysc 48485200.target-module: sysc_disable_module: invalid midlemode Fix this by treating SYSC_IDLE_FORCE like we do for the other bits for idlemodes mask. Fixes: d59b60564cbf ("bus: ti-sysc: Add generic enable/disable functions") Cc:

Re: [PATCH RFT] regulator: lp87565: Fix probe failure for "ti,lp87565"

2019-07-23 Thread Mark Brown
On Thu, Jul 11, 2019 at 07:35:17PM +0800, Axel Lin wrote: > The "ti,lp87565" compatible string is still in of_lp87565_match_table, > but current code will return -EINVAL because lp87565->dev_type is unknown. > This was working in earlier kernel versions, so fix it. This doesn't seem to apply

RE: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool

2019-07-23 Thread Jose Abreu
From: Robin Murphy Date: Jul/23/2019, 11:29:28 (UTC+00:00) > On 23/07/2019 11:07, Jose Abreu wrote: > > From: Jon Hunter > > Date: Jul/23/2019, 11:01:24 (UTC+00:00) > > > >> This appears to be a winner and by disabling the SMMU for the ethernet > >> controller and reverting commit

Re: [PATCH] [net-next] net/mlx5e: xsk: dynamically allocate mlx5e_channel_param

2019-07-23 Thread Maxim Mikityanskiy
On 2019-07-08 18:16, Maxim Mikityanskiy wrote: > On 2019-07-08 15:55, Arnd Bergmann wrote: >> -mlx5e_build_xsk_cparam(priv, params, xsk, ); >> +cparam = kzalloc(sizeof(*cparam), GFP_KERNEL); > > Similar code in mlx5e_open_channels (en_main.c) uses kvzalloc. Although > the struct is

Re: get_maintainers.pl subsystem output

2019-07-23 Thread Joe Perches
On Tue, 2019-07-23 at 10:42 +0200, Lukas Bulwahn wrote: > On Tue, Jul 23, 2019 at 9:30 AM Duda, Sebastian wrote: > > when analyzing the patch > > `<20150128012747.824898...@linuxfoundation.org>` [1] with > > `get_maintainers.pl --subsystem --status --separator , /tmp/patch`, > > there is the

Re: [PATCH 4.19] kconfig: fix missing choice values in auto.conf

2019-07-23 Thread Greg KH
On Tue, Jul 23, 2019 at 08:09:36PM +0900, Masahiro Yamada wrote: > commit 8e2442a5f86e1f77b86401fce274a7f622740bc4 upstream. Now queued up, thanks! greg k-h

[PATCH] i2c: busses: Use dev_get_drvdata where possible

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- drivers/i2c/busses/i2c-designware-pcidrv.c | 6 ++ drivers/i2c/busses/i2c-i801.c | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git

[PATCH] HID: intel-ish-hid: Use dev_get_drvdata where possible

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- drivers/hid/intel-ish-hid/ipc/pci-ish.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/hid/intel-ish-hid/ipc/pci-ish.c

[PATCH] drm/vmwgfx: Use dev_get_drvdata

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

[PATCH 4.19] kconfig: fix missing choice values in auto.conf

2019-07-23 Thread Masahiro Yamada
commit 8e2442a5f86e1f77b86401fce274a7f622740bc4 upstream. Since commit 00c864f8903d ("kconfig: allow all config targets to write auto.conf if missing"), Kconfig creates include/config/auto.conf in the defconfig stage when it is missing. Joonas Kylmälä reported incorrect auto.conf generation

Re: [PATCH] rcu: Make jiffies_till_sched_qs writable

2019-07-23 Thread Byungchul Park
On Fri, Jul 19, 2019 at 04:33:56PM -0400, Joel Fernandes wrote: > On Fri, Jul 19, 2019 at 3:57 PM Paul E. McKenney > wrote: > > > > On Fri, Jul 19, 2019 at 06:57:58PM +0900, Byungchul Park wrote: > > > On Fri, Jul 19, 2019 at 4:43 PM Paul E. McKenney > > > wrote: > > > > > > > > On Thu, Jul

Re: [PATCH] [v2] waitqueue: shut up clang -Wuninitialized warnings

2019-07-23 Thread Arnd Bergmann
On Tue, Jul 23, 2019 at 12:50 PM Peter Zijlstra wrote: > On Fri, Jul 19, 2019 at 01:36:00PM +0200, Arnd Bergmann wrote: > > --- a/include/linux/wait.h > > +++ b/include/linux/wait.h > > @@ -70,8 +70,17 @@ extern void __init_waitqueue_head(struct wait_queue_head > > *wq_head, const char *n > >

Re: [PATCH 11/11] firmware: arm_scmi: Use asynchronous CLOCK_RATE_SET when possible

2019-07-23 Thread Sudeep Holla
On Mon, Jul 22, 2019 at 02:29:53PM -0700, Stephen Boyd wrote: > Quoting Sudeep Holla (2019-07-08 08:47:30) > > CLOCK_PROTOCOL_ATTRIBUTES provides attributes to indicate the maximum > > number of pending asynchronous clock rate changes supported by the > > platform. If it's non-zero, then we should

Re: [PATCH V6 RESEND 0/3] arm64/mm: Enable memory hot remove

2019-07-23 Thread Mark Rutland
Hi Anshuman, On Mon, Jul 15, 2019 at 11:47:47AM +0530, Anshuman Khandual wrote: > This series enables memory hot remove on arm64 after fixing a memblock > removal ordering problem in generic try_remove_memory() and a possible > arm64 platform specific kernel page table race condition. This series

Re: [PATCH] regulator: act8865: support regulator-pull-down property

2019-07-23 Thread Mark Brown
On Mon, Jul 22, 2019 at 08:13:29PM +0200, Michał Mirosław wrote: > AC8865 has internal 1.5k pull-down resistor that can be enabled when LDO > is shut down. This changelog... > static const struct regulator_ops act8865_ldo_ops = { > + .list_voltage =

[PATCH] phy: marvell: phy-mvebu-cp110-comphy: Add of_node_put() before return

2019-07-23 Thread Nishka Dasgupta
Each iteration of for_each_available_child_of_node puts the previous node, but in the case of a return from the middle of the loop, there is no put, thus causing a memory leak. Hence add an of_node_put before the return in two places. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta

[PATCH] phy: marvell: phy-mvebu-a3700-comphy: Add of_node_put() before return

2019-07-23 Thread Nishka Dasgupta
Each iteration of for_each_available_child_of_node puts the previous node, but in the case of a return from the middle of the loop, there is no put, thus causing a memory leak. Hence add an of_node_put before the return in two places. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta

Re: [PATCH] [v2] waitqueue: shut up clang -Wuninitialized warnings

2019-07-23 Thread Peter Zijlstra
On Fri, Jul 19, 2019 at 01:36:00PM +0200, Arnd Bergmann wrote: > When CONFIG_LOCKDEP is set, every use of DECLARE_WAIT_QUEUE_HEAD_ONSTACK() > produces an bogus warning from clang, which is particularly annoying > for allmodconfig builds: > > fs/namei.c:1646:34: error: variable 'wq' is

RE: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool

2019-07-23 Thread Jose Abreu
From: Jon Hunter Date: Jul/23/2019, 11:38:33 (UTC+00:00) > > On 23/07/2019 11:07, Jose Abreu wrote: > > From: Jon Hunter > > Date: Jul/23/2019, 11:01:24 (UTC+00:00) > > > >> This appears to be a winner and by disabling the SMMU for the ethernet > >> controller and reverting commit

[PATCH] phy: marvell: phy-armada38x-comphy: Add of_node_put() before return

2019-07-23 Thread Nishka Dasgupta
Each iteration of for_each_available_child_of_node puts the previous node, but in the case of a return from the middle of the loop, there is no put, thus causing a memory leak. Hence add an of_node_put before the return. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta ---

[PATCH v3] sched/topology: Improve load balancing on AMD EPYC

2019-07-23 Thread Matt Fleming
SD_BALANCE_{FORK,EXEC} and SD_WAKE_AFFINE are stripped in sd_init() for any sched domains with a NUMA distance greater than 2 hops (RECLAIM_DISTANCE). The idea being that it's expensive to balance across domains that far apart. However, as is rather unfortunately explained in commit

[PATCH 9/9] irqchip/gic-v3: Add EPPI range support

2019-07-23 Thread Marc Zyngier
Expand the pre-existing PPI support to be able to deal with the Extended PPI range (EPPI). This includes obtaining the number of PPIs from each individual redistributor, and compute the minimum set (just in case someone builds something really clever...). Signed-off-by: Marc Zyngier ---

[PATCH 1/9] irqchip/gic: Rework gic_configure_irq to take the full ICFGR base

2019-07-23 Thread Marc Zyngier
gic_configure_irq is currently passed the (re)distributor address, to which it applies an a fixed offset to get to the configuration registers. This offset is constant across all GICs, or rather it was until to v3.1... An easy way out is for the individual drivers to pass the base address of the

[PATCH 8/9] dt-bindings: interrupt-controller: arm,gic-v3: Describe EPPI range support

2019-07-23 Thread Marc Zyngier
Update the GICv3 binding to allow interrupts in the EPPI range. Signed-off-by: Marc Zyngier --- .../devicetree/bindings/interrupt-controller/arm,gic-v3.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 7/9] irqchip/gic-v3: Dynamically allocate PPI partition descriptors

2019-07-23 Thread Marc Zyngier
Again, PPIs are becoming a variable set. Let's hack the PPI partition code to make the top-level array dynamically allocated. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git

[PATCH 6/9] irqchip/gic-v3: Dynamically allocate PPI NMI refcounts

2019-07-23 Thread Marc Zyngier
As we're about to have a variable number of PPIs, let's make the allocation of the NMI refcounts dynamic. Also apply some minor cleanups (moving things around). Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3.c | 47 ++-- 1 file changed, 34

[PATCH 5/9] irqchip/gic: Prepare for more than 16 PPIs

2019-07-23 Thread Marc Zyngier
GICv3.1 allows up to 80 PPIs (16 legaci PPIs and 64 Extended PPIs), meaning we can't just leave the old 16 hardcoded everywhere. We also need to add the infrastructure to discuver the number of PPIs on a per redistributor basis, although we still pretend there is only 16 of them for now. No

[PATCH 3/9] dt-bindings: interrupt-controller: arm,gic-v3: Describe ESPI range support

2019-07-23 Thread Marc Zyngier
GICv3.1 introduces support for new interrupt ranges, one of them being the Extended SPI range (ESPI). The DT binding is extended to deal with it as a new interrupt class. Signed-off-by: Marc Zyngier --- .../devicetree/bindings/interrupt-controller/arm,gic-v3.yaml | 5 +++-- 1 file changed, 3

[PATCH 4/9] irqchip/gic-v3: Add ESPI range support

2019-07-23 Thread Marc Zyngier
Add the required support for the ESPI range, which behave exactly like the SPIs of old, only with new funky INTIDs. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3.c | 85 -- include/linux/irqchip/arm-gic-v3.h | 17 +- 2 files changed, 85

[PATCH] net: dsa: sja1105: sja1105_main: Add of_node_put()

2019-07-23 Thread Nishka Dasgupta
Each iteration of for_each_child_of_node puts the previous node, but in the case of a return from the middle of the loop, there is no put, thus causing a memory leak. Hence add an of_node_put before the return. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta ---

[PATCH 2/9] irqchip/gic-v3: Add INTID range and convertion primitives

2019-07-23 Thread Marc Zyngier
In the beginning, life was simple. The GIC driver mostly cared about PPIs, SPIs and LPIs, all with nicely layed out ranges. We're about to change all that, with new ranges such as EPPI and ESPI interleaved in the middle of the no-irq-land between the "special IDs" and the LPI range. Boo. In

[PATCH 0/9] irqchip/gic-v3: Add support for GICv3.1 extended PPI/SPI ranges

2019-07-23 Thread Marc Zyngier
Apparently, having ~1000 wired interrupts is not enough, and some people need more. Fear not! The GIC Achitecture Department hereby grants you another 1024 SPIs, together with 64 PPIs, provided that you implement GICv3.1 (see [1] for the details) This series implements the required support, which

Re: WARNING in __mmdrop

2019-07-23 Thread Michael S. Tsirkin
On Tue, Jul 23, 2019 at 04:42:19PM +0800, Jason Wang wrote: > > So how about this: do exactly what you propose but as a 2 patch series: > > start with the slow safe patch, and add then return uaddr optimizations > > on top. We can then more easily reason about whether they are safe. > > > If you

[PATCH] irqchip: irq-mbigen: Add of_node_put() before return

2019-07-23 Thread Nishka Dasgupta
Each iteration of for_each_child_of_node puts the previous node, but in the case of a return from the middle of the loop, there is no put, thus causing a memory leak. Add an of_node_put before the return in three places. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta ---

[PATCH] drm/gma500: Use dev_get_drvdata where possible

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- drivers/gpu/drm/gma500/power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gma500/power.c b/drivers/gpu/drm/gma500/power.c index

Re: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool

2019-07-23 Thread Jon Hunter
On 23/07/2019 11:07, Jose Abreu wrote: > From: Jon Hunter > Date: Jul/23/2019, 11:01:24 (UTC+00:00) > >> This appears to be a winner and by disabling the SMMU for the ethernet >> controller and reverting commit 954a03be033c7cef80ddc232e7cbdb17df735663 >> this worked! So yes appears to be

Re: [PATCH v9 2/8] sched/core: Streamlining calls to task_rq_unlock()

2019-07-23 Thread Peter Zijlstra
On Mon, Jul 22, 2019 at 11:08:17AM +0200, Dietmar Eggemann wrote: > Not sure, there is another little issue on 3/8 since uclamp is in > v5.3-rc1 as well commit 69842cba9ace8 ("sched/uclamp: Add CPU's clamp > buckets refcounting"). Also, 8/8, but all conflicts are trivial and I've fixed them up.

Re: [PATCH v9 2/8] sched/core: Streamlining calls to task_rq_unlock()

2019-07-23 Thread Peter Zijlstra
On Mon, Jul 22, 2019 at 10:32:14AM +0200, Juri Lelli wrote: > Thanks for reporting. The set is based on cgroup/for-next (as of last > week), though. I can of course rebase on tip/sched/core or mainline if > needed. TJ; I would like to take these patches through the scheduler tree if you don't

Re: [PATCH] phy: qcom-qmp: Correct READY_STATUS poll break condition

2019-07-23 Thread Marc Gonzalez
On 19/07/2019 17:50, Marc Gonzalez wrote: > On 13/06/2019 11:10, Marc Gonzalez wrote: > >> Here are my observations for a 8998 board: >> >> 1) If I apply only the readl_poll_timeout() fix (not the mask_pcs_ready >> fixup) >> qcom_pcie_probe() fails with a timeout in phy_init. >> => this is in

Re: [PATCH v3 3/5] OPP: Improve require-opps linking

2019-07-23 Thread Viresh Kumar
$subject doesn't have correct property name. On 17-07-19, 15:23, Saravana Kannan wrote: > Currently, the linking of required-opps fails silently if the > destination OPP table hasn't been added before the source OPP table is > added. This puts an unnecessary requirement that the destination table

Re: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool

2019-07-23 Thread Robin Murphy
On 23/07/2019 11:07, Jose Abreu wrote: From: Jon Hunter Date: Jul/23/2019, 11:01:24 (UTC+00:00) This appears to be a winner and by disabling the SMMU for the ethernet controller and reverting commit 954a03be033c7cef80ddc232e7cbdb17df735663 this worked! So yes appears to be related to the SMMU

[PATCH] hexagon: remove asm/bitsperlong.h

2019-07-23 Thread Masahiro Yamada
Remove hexagon-specific bitsperlong.h so that it falls back to include/uapi/asm-generic/bitsperlong.h Kbuild will automatically create a wrapper of it. Signed-off-by: Masahiro Yamada --- arch/hexagon/include/uapi/asm/bitsperlong.h | 27 - 1 file changed, 27 deletions(-)

Re: WARNING in __mmdrop

2019-07-23 Thread Michael S. Tsirkin
On Tue, Jul 23, 2019 at 04:42:19PM +0800, Jason Wang wrote: > > On 2019/7/23 下午3:56, Michael S. Tsirkin wrote: > > On Tue, Jul 23, 2019 at 01:48:52PM +0800, Jason Wang wrote: > > > On 2019/7/23 下午1:02, Michael S. Tsirkin wrote: > > > > On Tue, Jul 23, 2019 at 11:55:28AM +0800, Jason Wang wrote: >

Re: [PATCH] cpufreq: schedutil: Don't skip freq update when limits change

2019-07-23 Thread Rafael J. Wysocki
On Tue, Jul 23, 2019 at 11:15 AM Viresh Kumar wrote: > > On 23-07-19, 00:10, Doug Smythies wrote: > > On 2019.07.21 23:52 Viresh Kumar wrote: > > > > > To avoid reducing the frequency of a CPU prematurely, we skip reducing > > > the frequency if the CPU had been busy recently. > > > > > > This

[PATCH 2/2] dt-bindings: IDU-intc: Add support for edge-triggered interrupts

2019-07-23 Thread Mischa Jonker
This updates the documentation for supporting a optional extra interrupt cell to specify edge vs level triggered. Signed-off-by: Mischa Jonker --- .../interrupt-controller/snps,archs-idu-intc.txt | 30 ++ 1 file changed, 20 insertions(+), 10 deletions(-) diff --git

[PATCH 1/2] ARCv2: IDU-intc: Add support for edge-triggered interrupts

2019-07-23 Thread Mischa Jonker
This adds support for an optional extra interrupt cell to specify edge vs level triggered. It is backward compatible with dts files with only one cell, and will default to level-triggered in such a case. Signed-off-by: Mischa Jonker --- arch/arc/kernel/mcip.c | 56

Re: [GIT PULL] pidfd fixes

2019-07-23 Thread Christian Brauner
On Tue, Jul 23, 2019 at 12:12:49PM +0200, Oleg Nesterov wrote: > On 07/22, Linus Torvalds wrote: > > > > So if we set EXIT_ZOMBIE early, then I think we should change the > > EXIT_DEAD case too. IOW, do something like this on top: > > > > --- a/kernel/exit.c > > +++ b/kernel/exit.c > > @@

[PATCH] selftests: kmod: Fix typo in kmod.sh

2019-07-23 Thread Masanari Iida
This patch fixes some spelling typos in kmod.sh Signed-off-by: Masanari Iida --- tools/testing/selftests/kmod/kmod.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/kmod/kmod.sh b/tools/testing/selftests/kmod/kmod.sh index

[PATCH] h8300: move definition of __kernel_size_t etc. to posix_types.h

2019-07-23 Thread Masahiro Yamada
These types should be defined in posix_types.h, not in bitsperlong.h . With these defines moved, h8300-specific bitsperlong.h is no longer needed since Kbuild will automatically create a wrapper of include/uapi/asm-generic/bitsperlong.h Signed-off-by: Masahiro Yamada ---

Re: [PATCH] RDMA/hns: Fix build error for hip08

2019-07-23 Thread Leon Romanovsky
On Tue, Jul 23, 2019 at 06:06:22PM +0800, Yuehaibing wrote: > > On 2019/7/23 15:43, Leon Romanovsky wrote: > > On Tue, Jul 23, 2019 at 10:49:08AM +0800, YueHaibing wrote: > >> If INFINIBAND_HNS_HIP08 is selected and HNS3 is m, > >> but INFINIBAND_HNS is y, building fails: > >> > >>

Re: [PATCH v9 00/21] Generic page walk and ptdump

2019-07-23 Thread Mark Rutland
On Mon, Jul 22, 2019 at 04:41:49PM +0100, Steven Price wrote: > This is a slight reworking and extension of my previous patch set > (Convert x86 & arm64 to use generic page walk), but I've continued the > version numbering as most of the changes are the same. In particular > this series ends with

Re: [PATCH v9 11/21] mm: pagewalk: Add p4d_entry() and pgd_entry()

2019-07-23 Thread Mark Rutland
On Mon, Jul 22, 2019 at 04:42:00PM +0100, Steven Price wrote: > pgd_entry() and pud_entry() were removed by commit 0b1fbfe50006c410 > ("mm/pagewalk: remove pgd_entry() and pud_entry()") because there were > no users. We're about to add users so reintroduce them, along with > p4d_entry() as we now

Re: [GIT PULL] pidfd fixes

2019-07-23 Thread Oleg Nesterov
On 07/22, Linus Torvalds wrote: > > So if we set EXIT_ZOMBIE early, then I think we should change the > EXIT_DEAD case too. IOW, do something like this on top: > > --- a/kernel/exit.c > +++ b/kernel/exit.c > @@ -734,9 +734,10 @@ static void exit_notify(struct task_struct > *tsk, int

RE: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool

2019-07-23 Thread Jose Abreu
From: Jon Hunter Date: Jul/23/2019, 11:01:24 (UTC+00:00) > This appears to be a winner and by disabling the SMMU for the ethernet > controller and reverting commit 954a03be033c7cef80ddc232e7cbdb17df735663 > this worked! So yes appears to be related to the SMMU being enabled. We > had to enable

Re: [PATCH] RDMA/hns: Fix build error for hip08

2019-07-23 Thread Yuehaibing
On 2019/7/23 15:43, Leon Romanovsky wrote: > On Tue, Jul 23, 2019 at 10:49:08AM +0800, YueHaibing wrote: >> If INFINIBAND_HNS_HIP08 is selected and HNS3 is m, >> but INFINIBAND_HNS is y, building fails: >> >> drivers/infiniband/hw/hns/hns_roce_hw_v2.o: In function >> `hns_roce_hw_v2_exit': >>

Re: [PATCH v3 5/5] PM / devfreq: Add required OPPs support to passive governor

2019-07-23 Thread Viresh Kumar
On 17-07-19, 15:23, Saravana Kannan wrote: > Look at the required OPPs of the "parent" device to determine the OPP that > is required from the slave device managed by the passive governor. This > allows having mappings between a parent device and a slave device even when > they don't have the same

Re: [PATCH] psi: get poll_work to run when calling poll syscall next time

2019-07-23 Thread Caspar Zhang
On Tue, Jul 23, 2019 at 02:45:39PM +0800, Jason Xing wrote: > Only when calling the poll syscall the first time can user > receive POLLPRI correctly. After that, user always fails to > acquire the event signal. > > Reproduce case: > 1. Get the monitor code in Documentation/accounting/psi.txt > 2.

Re: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool

2019-07-23 Thread Jon Hunter
On 23/07/2019 09:14, Jose Abreu wrote: > From: Jose Abreu > Date: Jul/22/2019, 15:04:49 (UTC+00:00) > >> From: Jon Hunter >> Date: Jul/22/2019, 13:05:38 (UTC+00:00) >> >>> >>> On 22/07/2019 12:39, Jose Abreu wrote: From: Lars Persson Date: Jul/22/2019, 12:11:50 (UTC+00:00)

[PATCH] security: smack: Fix possible null-pointer dereferences in smack_socket_sock_rcv_skb()

2019-07-23 Thread Jia-Ju Bai
In smack_socket_sock_rcv_skb(), there is an if statement on line 3920 to check whether skb is NULL: if (skb && skb->secmark != 0) This check indicates skb can be NULL in some cases. But on lines 3931 and 3932, skb is used: ad.a.u.net->netif = skb->skb_iif; ipv6_skb_to_auditdata(skb,

Re: [PATCH 0/4] Sleeping functions in invalid context bug fixes

2019-07-23 Thread Ilya Dryomov
On Fri, Jul 19, 2019 at 5:20 PM Jeff Layton wrote: > > On Fri, 2019-07-19 at 15:32 +0100, Luis Henriques wrote: > > Hi, > > > > I'm sending three "sleeping function called from invalid context" bug > > fixes that I had on my TODO for a while. All of them are ceph_buffer_put > > related, and all

Re: [PATCH v9 19/21] mm: Add generic ptdump

2019-07-23 Thread Mark Rutland
On Mon, Jul 22, 2019 at 04:42:08PM +0100, Steven Price wrote: > Add a generic version of page table dumping that architectures can > opt-in to > > Signed-off-by: Steven Price [...] > +#ifdef CONFIG_KASAN > +/* > + * This is an optimization for KASAN=y case. Since all kasan page tables > + *

Re: [PATCH v3 2/5] OPP: Add function to look up required OPP's for a given OPP

2019-07-23 Thread Viresh Kumar
On 17-07-19, 15:23, Saravana Kannan wrote: > Add a function that allows looking up required OPPs given a source OPP > table, destination OPP table and the source OPP. > > Signed-off-by: Saravana Kannan > --- > drivers/opp/core.c | 54 ++ >

<    2   3   4   5   6   7   8   9   >