linux-next: Tree for Aug 2

2019-08-01 Thread Stephen Rothwell
Hi all, Changes since 20190801: My fixes tree is empty again The jc_docs tree gained a conflict against the cifs tree. The drm-misc tree lost its build failure. The tip tree lost its build failure. Non-merge commits (relative to Linus' tree): 3729 4234 files changed, 221424 insertions

Re: [PATCH] ALSA: hda: Add support of Zhaoxin controller

2019-08-01 Thread Takashi Iwai
On Fri, 02 Aug 2019 05:04:08 +0200, Tony W Wang-oc wrote: > > Add the new PCI ID 0x1d17 0x3288 Zhaoxin controller support > > Signed-off-by: Tony W Wang-oc Applied, thanks. Takashi

Re: [PATCH] ALSA: isa/wavefront: remove redundant assignment to pointer bptr

2019-08-01 Thread Takashi Iwai
On Thu, 01 Aug 2019 18:28:24 +0200, Colin King wrote: > > From: Colin Ian King > > The pointer bptr is being assigned a value that is never read > and it is being updated in the next statement with a new value. > The initialization is redundant and can be removed. > > Addresses-Coverity:

[PATCH V3 2/2] cpufreq: intel_pstate: Implement ->resolve_freq()

2019-08-01 Thread Viresh Kumar
Intel pstate driver exposes min_perf_pct and max_perf_pct sysfs files, which can be used to force a limit on the min/max P state of the driver. Though these files eventually control the min/max frequencies that the CPUs will run at, they don't make a change to policy->min/max values. When the

[PATCH V3 1/2] cpufreq: schedutil: Don't skip freq update when limits change

2019-08-01 Thread Viresh Kumar
To avoid reducing the frequency of a CPU prematurely, we skip reducing the frequency if the CPU had been busy recently. This should not be done when the limits of the policy are changed, for example due to thermal throttling. We should always get the frequency within the new limits as soon as

Overhead of ring buffer in Ftrace

2019-08-01 Thread Fang Zhou
Hi all, I’m currently using Ftrace with tracepoints to trace several events in kernel. But I found the tracing overhead is a little high. I found the major overhead comes from “local_dec(_buffer->committing);” in rb_end_commit() function. local_dec() will invoke atomic_long_dec(), which finally

Re: [PATCH v2] ARM: dts: aspeed: Add Facebook Wedge100 BMC

2019-08-01 Thread Tao Ren
On 8/1/19, 10:26 PM, "Joel Stanley" wrote: > I've applied both of these to the aspeed tree for 5.4. Thank you Joel. Cheers, Tao

Re: [PATCH v2] ARM: dts: aspeed: Add Facebook Wedge100 BMC

2019-08-01 Thread Joel Stanley
On Fri, 2 Aug 2019 at 05:20, Tao Ren wrote: > > On 8/1/19, 9:21 PM, "Joel Stanley" wrote: > > > On Fri, 2 Aug 2019 at 04:10, Tao Ren wrote: > >> > >> Add initial version of device tree for Facebook Wedge100 AST2400 BMC > >> platform. > >> > >> Signed-off-by: Tao Ren > >> Reviewed-by: Andrew

Re: [PATCH] perf tools: Fix a typo in Makefile

2019-08-01 Thread Mukesh Ojha
On 8/1/2019 8:58 AM, Masanari Iida wrote: This patch fix a spelling typo in Makefile. Signed-off-by: Masanari Iida Reviewed-by: Mukesh Ojha -Mukesh --- tools/perf/Documentation/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v2] arm64: zynqmp: Add ZynqMP SDHCI compatible string

2019-08-01 Thread Michal Simek
On 01. 07. 19 7:37, Manish Narani wrote: > Add the new compatible string for ZynqMP SD Host Controller for its use > in the Arasan SDHCI driver for some of the ZynqMP specific operations. > Add required properties for the same. > > Signed-off-by: Manish Narani > --- > This patch depends on the

Re: [PATCH v2] ARM: dts: aspeed: Add Facebook Wedge100 BMC

2019-08-01 Thread Tao Ren
On 8/1/19, 9:21 PM, "Joel Stanley" wrote: > On Fri, 2 Aug 2019 at 04:10, Tao Ren wrote: >> >> Add initial version of device tree for Facebook Wedge100 AST2400 BMC >> platform. >> >> Signed-off-by: Tao Ren >> Reviewed-by: Andrew Jeffery >> --- >> Changes in v2: >> - remove "debug" from

Re: [PATCH] powerpc: Remove inaccessible CMDLINE default

2019-08-01 Thread Christophe Leroy
Le 02/08/2019 à 07:02, Chris Packham a écrit : Since commit cbe46bd4f510 ("powerpc: remove CONFIG_CMDLINE #ifdef mess") CONFIG_CMDLINE has always had a value regardless of CONNIG_CMDLINE_BOOL. s/CONNIG/CONFIG/ For example: $ make ARCH=powerpc defconfig $ cat .config #

Re: [PATCH] mailbox: zynqmp-ipi-mailbox: Add of_node_put() before goto

2019-08-01 Thread Michal Simek
On 02. 08. 19 6:59, Nishka Dasgupta wrote: > On 31/07/19 7:51 PM, Michal Simek wrote: >> On 31. 07. 19 15:06, Nishka Dasgupta wrote: >>> On 31/07/19 2:01 PM, Michal Simek wrote: On 09. 07. 19 19:28, Nishka Dasgupta wrote: > Each iteration of for_each_available_child_of_node puts the

Re: Slowness forming TIPC cluster with explicit node addresses

2019-08-01 Thread Chris Packham
On Mon, 2019-07-29 at 09:04 +1200, Chris Packham wrote: > On Fri, 2019-07-26 at 13:31 +, Jon Maloy wrote: > > > > > > > > > > > > > -Original Message- > > > From: netdev-ow...@vger.kernel.org > > > On > > > Behalf Of Chris Packham > > > Sent: 25-Jul-19 19:37 > > > To:

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

2019-08-01 Thread Kees Cook
On Thu, Aug 01, 2019 at 08:22:48PM -0500, Gustavo A. R. Silva wrote: > Mark switch cases where we are expecting to fall through. > > This patch fixes the following warning (Building: allmodconfig i386): > > drivers/pci/hotplug/ibmphp_res.c: In function ‘update_bridge_ranges’: >

Re: [PATCH v4] watchdog: alim1535: Rewriting of alim1535 to use watchdog subsystem

2019-08-01 Thread Mark Balantzyan
Please see: https://lkml.org/lkml/2019/8/2/6 Thank you.

[PATCH] powerpc: Remove inaccessible CMDLINE default

2019-08-01 Thread Chris Packham
Since commit cbe46bd4f510 ("powerpc: remove CONFIG_CMDLINE #ifdef mess") CONFIG_CMDLINE has always had a value regardless of CONNIG_CMDLINE_BOOL. For example: $ make ARCH=powerpc defconfig $ cat .config # CONFIG_CMDLINE_BOOL is not set CONFIG_CMDLINE="" When enabling CONNIG_CMDLINE_BOOL

Re: [PATCH] mailbox: zynqmp-ipi-mailbox: Add of_node_put() before goto

2019-08-01 Thread Nishka Dasgupta
On 31/07/19 7:51 PM, Michal Simek wrote: On 31. 07. 19 15:06, Nishka Dasgupta wrote: On 31/07/19 2:01 PM, Michal Simek wrote: On 09. 07. 19 19:28, Nishka Dasgupta wrote: Each iteration of for_each_available_child_of_node puts the previous node, but in the case of a goto from the middle of the

Re: [RFC PATCH 1/2] mmc: sdhci: Manually check card status after reset

2019-08-01 Thread Adrian Hunter
On 1/08/19 6:16 PM, Raul Rangel wrote: > On Wed, Jun 19, 2019 at 08:56:25AM -0600, Raul Rangel wrote: >> Your patch looks good. I tried it out and got over 57k insertion/removal >> iterations. Do you want me to send out your patch, or do you want to do >> it? >> >> Just to recap, the patch you

Re: linux kernel sources: more misspellings/tyops of iton words

2019-08-01 Thread Joe Perches
On Thu, 2019-08-01 at 21:23 -0700, Joe Perches wrote: > If any feels like it, here are some more typos from: > > $ git grep -P '\b\w+itons?' | grep -ohP '\b\w+itons?' | sort | uniq -c | sort > -rn > 7 additon > 6 definitons > 5 Prediciton > 5 instruciton > 4

Re: linux-next: Tree for Jul 31 - s390 crypto build breakage

2019-08-01 Thread Stephen Rothwell
Hi Herbert, On Fri, 2 Aug 2019 13:14:14 +1000 Herbert Xu wrote: > > For now I'm going to back out those two specific patches as the > rest seem to be valid by themselves. I have applied the top commit from your tree to linux-next today just to help with building and testing over the weekend (I

Re: [PATCH v3] powerpc: Support CMDLINE_EXTEND

2019-08-01 Thread Christophe Leroy
Le 02/08/2019 à 00:50, Chris Packham a écrit : Bring powerpc in line with other architectures that support extending or overriding the bootloader provided command line. The current behaviour is most like CMDLINE_FROM_BOOTLOADER where the bootloader command line is preferred but the kernel

Re: [PATCH v2] powerpc: Support CMDLINE_EXTEND

2019-08-01 Thread Christophe Leroy
Le 02/08/2019 à 00:32, Chris Packham a écrit : On Thu, 2019-08-01 at 08:14 +0200, Christophe Leroy wrote: Le 01/08/2019 à 04:12, Chris Packham a écrit : Bring powerpc in line with other architectures that support extending or overriding the bootloader provided command line. The current

Re: [PATCH v3] mailbox: imx: add support for imx v1 mu

2019-08-01 Thread Oleksij Rempel
On Fri, Aug 02, 2019 at 06:54:27AM +0300, Daniel Baluta wrote: > One more thing. See below: > > On Wed, Jul 31, 2019 at 12:14 PM Richard Zhu wrote: > > > > > -/* Control Register */ > > -#define IMX_MU_xCR 0x24 > > /* General Purpose Interrupt Enable */ > > #define

linux kernel sources: more misspellings/tyops of iton words

2019-08-01 Thread Joe Perches
If any feels like it, here are some more typos from: $ git grep -P '\b\w+itons?' | grep -ohP '\b\w+itons?' | sort | uniq -c | sort -rn 7 additon 6 definitons 5 Prediciton 5 instruciton 4 conditon 3 partititon 3 notificaiton 3 implementaiton 3

Re: [PATCH v2] ARM: dts: aspeed: Add Facebook Wedge100 BMC

2019-08-01 Thread Joel Stanley
On Fri, 2 Aug 2019 at 04:10, Tao Ren wrote: > > Add initial version of device tree for Facebook Wedge100 AST2400 BMC > platform. > > Signed-off-by: Tao Ren > Reviewed-by: Andrew Jeffery > --- > Changes in v2: > - remove "debug" from bootargs. Thanks. I applied wedge40 and then this one fails

[PATCH v2 2/2] pinctrl: qcom: Add SC7180 pinctrl driver

2019-08-01 Thread Rajendra Nayak
From: Jitendra Sharma Add initial pinctrl driver to support pin configuration with pinctrl framework for SC7180 Signed-off-by: Jitendra Sharma Signed-off-by: Vivek Gautam [rnayak: modify to use upstream tile support sort and squash some functions] Signed-off-by: Rajendra Nayak

Re: [PATCH v4] watchdog: alim1535: Rewriting of alim1535 to use watchdog subsystem

2019-08-01 Thread Mark Balantzyan
There was some sort of filesystem error that cause the wrong file to be saved. Hence, yes, possibly there was no difference betwee the v2 and the 'v4' (which should have been the 'v3'). Since the last one, though unchanged from v2, was a changelog-less 'v3', THIS is an actual 'v4'. Thank you,

[PATCH v2 1/2] dt-bindings: pinctrl: qcom: Add SC7180 pinctrl binding

2019-08-01 Thread Rajendra Nayak
From: Jitendra Sharma Add the binding for the TLMM pinctrl block found in the SC7180 platform Signed-off-by: Jitendra Sharma Signed-off-by: Vivek Gautam [rnayak: Fix some copy-paste issues, sort and fix functions] Signed-off-by: Rajendra Nayak Reviewed-by: Bjorn Andersson ---

[PATCH v4] watchdog: alim1535: Rewriting of alim1535 driver to use watchdog subsystem

2019-08-01 Thread Mark Balantzyan
This patch rewrites the alim1535_wdt driver to use the watchdog subsystem. By virtue of this, it also fixes a (theoretical) race condition between the formerly arranged ali_timeout_bits and ali_settimer() interoperation. Signed-off-by: Mark Balantzyan --- drivers/watchdog/Kconfig| 1

[PATCH v2] ARM: dts: aspeed: Add Facebook Wedge100 BMC

2019-08-01 Thread Tao Ren
Add initial version of device tree for Facebook Wedge100 AST2400 BMC platform. Signed-off-by: Tao Ren Reviewed-by: Andrew Jeffery --- Changes in v2: - remove "debug" from bootargs. arch/arm/boot/dts/Makefile| 1 + .../boot/dts/aspeed-bmc-facebook-wedge100.dts | 149

[PATCH v2] ARM: dts: aspeed: Add Facebook Wedge40 BMC

2019-08-01 Thread Tao Ren
Add initial version of device tree for Facebook Wedge40 AST2400 BMC platform. Signed-off-by: Tao Ren Reviewed-by: Andrew Jeffery --- Changes in v2: - remove "debug" from bootargs. arch/arm/boot/dts/Makefile| 1 + .../boot/dts/aspeed-bmc-facebook-wedge40.dts | 141

Re: [PATCH v2] tracing: Function stack size and its name mismatch in arm64

2019-08-01 Thread Jiping Ma
On 2019年08月01日 17:41, Will Deacon wrote: On Thu, Aug 01, 2019 at 04:33:40PM +0800, Jiping Ma wrote: In arm64, the PC of the frame is matched to the last frame function, rather than the function of his frame. For the following example, the stack size of occupy_stack_init function should be

Re: [RFC PATCH 05/16] RISC-V: KVM: Implement VCPU interrupts and requests handling

2019-08-01 Thread Anup Patel
On Tue, Jul 30, 2019 at 7:38 PM Paolo Bonzini wrote: > > On 30/07/19 15:35, Anup Patel wrote: > > On Tue, Jul 30, 2019 at 6:48 PM Paolo Bonzini wrote: > >> > >> On 30/07/19 14:45, Anup Patel wrote: > >>> Here's some text from RISC-V spec regarding SIP CSR: > >>> "software interrupt-pending

Re: [PATCH] ARM: dts: aspeed: Add Facebook Wedge40 BMC

2019-08-01 Thread Tao Ren
On 8/1/19, 7:56 PM, "Andrew Jeffery" wrote: >On Fri, 2 Aug 2019, at 10:24, Tao Ren wrote: >> Add initial version of device tree for Facebook Wedge40 AST2400 BMC >> platform. >> >> Signed-off-by: Tao Ren > > Reviewed-by: Andrew Jeffery Thank you Andrew for the quick review (on both

Re: [PATCH] ARM: dts: aspeed: Add Facebook Wedge100 BMC

2019-08-01 Thread Tao Ren
On 8/1/19, 8:02 PM, "Joel Stanley" wrote: > On Fri, 2 Aug 2019 at 01:02, Tao Ren wrote: >> + >> + chosen { >> + stdout-path = >> + bootargs = "debug console=ttyS2,9600n8 root=/dev/ram rw"; > > Are you sure you want 'debug' in your boot arguments? > > The

Re: [PATCH v3] mailbox: imx: add support for imx v1 mu

2019-08-01 Thread Daniel Baluta
One more thing. See below: On Wed, Jul 31, 2019 at 12:14 PM Richard Zhu wrote: > -/* Control Register */ > -#define IMX_MU_xCR 0x24 > /* General Purpose Interrupt Enable */ > #define IMX_MU_xCR_GIEn(x) BIT(28 + (3 - (x))) > /* Receive Interrupt Enable */ > @@ -44,6 +36,13

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

2019-08-01 Thread Viresh Kumar
On 01-08-19, 10:57, Doug Smythies wrote: > On 2019.07.31 23:17 Viresh Kumar wrote: > > On 31-07-19, 17:20, Doug Smythies wrote: > >> Summary: > >> > >> The old way, using UINT_MAX had two purposes: first, > >> as a "need to do a frequency update" flag; but also second, to > >> force any

Re: [PATCH v7 11/20] cpufreq: tegra124: Add suspend and resume support

2019-08-01 Thread Viresh Kumar
On 31-07-19, 14:10, Sowjanya Komatineni wrote: > This patch adds suspend and resume pm ops for cpufreq driver. > > PLLP is the safe clock source for CPU during system suspend and > resume as PLLP rate is below the CPU Fmax at Vmin. > > CPUFreq driver suspend switches the CPU clock source to PLLP

Re: [PATCH v4] watchdog: alim1535: Rewriting of alim1535 to use watchdog subsystem

2019-08-01 Thread Mark Balantzyan
Take a second look. It is different. And I had to amend the title hence the second send to include the subsystem, as you so duly tend to remind me. It just so happened that I mistyped and skipped a version by...1. Mark On Thu, 1 Aug 2019, Guenter Roeck wrote: On 8/1/19 8:26 PM, Mark

Re: linux-next: Tree for Jul 31 - s390 crypto build breakage

2019-08-01 Thread Herbert Xu
Hi Stephen: On Fri, Aug 02, 2019 at 10:20:19AM +1000, Stephen Rothwell wrote: > > It might be time to revert all this series and try again. The > implementation seems to have not been well thought through from a kernel > building point of view. For a start the two commits > > 7cdc0ddbf74a

Re: [PATCH] mm/madvise: reduce code duplication in error handling paths

2019-08-01 Thread Anshuman Khandual
On 08/01/2019 11:58 AM, Mike Rapoport wrote: > The madvise_behavior() function converts -ENOMEM to -EAGAIN in several > places using identical code. > > Move that code to a common error handling path. > > No functional changes. > > Signed-off-by: Mike Rapoport Reviewed-by: Anshuman

Re: [PATCH v4] watchdog: alim1535: Rewriting of alim1535 to use watchdog subsystem

2019-08-01 Thread Guenter Roeck
On 8/1/19 8:26 PM, Mark Balantzyan wrote: This patch rewrites the alim1535_wdt driver to use the watchdog subsystem. By virtue of this, it also fixes a (theoretical) race condition between the formerly arranged ali_timeout_bits and ali_settimer() interoperation. Signed-off-by: Mark Balantzyan

[PATCH net-next] net: can: Fix compiling warning

2019-08-01 Thread Mao Wenan
There are two warings in net/can, fix them by setting bcm_sock_no_ioctlcmd and raw_sock_no_ioctlcmd as static. net/can/bcm.c:1683:5: warning: symbol 'bcm_sock_no_ioctlcmd' was not declared. Should it be static? net/can/raw.c:840:5: warning: symbol 'raw_sock_no_ioctlcmd' was not declared. Should

[PATCH v4] watchdog: alim1535: Rewriting of alim1535 to use watchdog subsystem

2019-08-01 Thread Mark Balantzyan
This patch rewrites the alim1535_wdt driver to use the watchdog subsystem. By virtue of this, it also fixes a (theoretical) race condition between the formerly arranged ali_timeout_bits and ali_settimer() interoperation. Signed-off-by: Mark Balantzyan --- drivers/watchdog/Kconfig| 1

Re: [PATCH] linux/bits.h: Add compile time sanity check of GENMASK inputs

2019-08-01 Thread Masahiro Yamada
On Fri, Aug 2, 2019 at 12:14 PM Joe Perches wrote: > > On Fri, 2019-08-02 at 10:40 +0900, Masahiro Yamada wrote: > > On Thu, Aug 1, 2019 at 4:27 AM Joe Perches wrote: > > > On Wed, 2019-07-31 at 21:03 +0200, Rikard Falkeborn wrote: > > > > GENMASK() and GENMASK_ULL() are supposed to be called

RE: [EXT] Re: [PATCH v3] mailbox: imx: add support for imx v1 mu

2019-08-01 Thread Richard Zhu
> -Original Message- > From: Daniel Baluta > Sent: 2019年8月1日 22:47 > To: Richard Zhu > Cc: jassisinghb...@gmail.com; Oleksij Rempel ; > Aisheng Dong ; Linux Kernel Mailing List > ; linux-arm-kernel > ; dl-linux-imx > Subject: [EXT] Re: [PATCH v3] mailbox: imx: add support for imx v1 mu

[PATCH] Rewriting of alim1535 to use watchdog subsystem

2019-08-01 Thread Mark Balantzyan
This patch rewrites the alim1535_wdt driver to use the watchdog subsystem. By virtue of this, it also fixes a (theoretical) race condition between the formerly arranged ali_timeout_bits and ali_settimer() interoperation. Signed-off-by: Mark Balantzyan --- drivers/watchdog/Kconfig| 1

linux-next: build warning after merge of the i2c tree

2019-08-01 Thread Stephen Rothwell
Hi all, After merging the i2c tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/i2c/busses/i2c-designware-master.c: In function 'i2c_dw_init_recovery_info': drivers/i2c/busses/i2c-designware-master.c:658:6: warning: unused variable 'r' [-Wunused-variable]

[PATCH] ALSA: hda: Add support of Zhaoxin controller

2019-08-01 Thread Tony W Wang-oc
Add the new PCI ID 0x1d17 0x3288 Zhaoxin controller support Signed-off-by: Tony W Wang-oc --- sound/pci/hda/hda_intel.c | 4 1 file changed, 4 insertions(+) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 324a4b2..d08da0e 100644 --- a/sound/pci/hda/hda_intel.c +++

Re: [PATCH] linux/bits.h: Add compile time sanity check of GENMASK inputs

2019-08-01 Thread Joe Perches
On Fri, 2019-08-02 at 10:40 +0900, Masahiro Yamada wrote: > On Thu, Aug 1, 2019 at 4:27 AM Joe Perches wrote: > > On Wed, 2019-07-31 at 21:03 +0200, Rikard Falkeborn wrote: > > > GENMASK() and GENMASK_ULL() are supposed to be called with the high bit > > > as the first argument and the low bit as

Re: [PATCH v2 06/10] printk: Replace strncmp with str_has_prefix

2019-08-01 Thread Joe Perches
On Fri, 2019-08-02 at 09:47 +0800, Chuhong Yuan wrote: > strncmp(str, const, len) is error-prone because len > is easy to have typo. > The example is the hard-coded len has counting error > or sizeof(const) forgets - 1. > So we prefer using newly introduced str_has_prefix > to substitute such

[PATCH] perf record: Support aarch64 random socket_id assignment

2019-08-01 Thread Tan Xiaojun
Same as the commit 01766229533f ("perf record: Support s390 random socket_id assignment"), aarch64 also have this problem. Without this fix: [root@localhost perf]# ./perf report --header -I -v ... socket_id number is too big.You may need to upgrade the perf tool. # # captured

Re: [PATCH v3] kasan: add memory corruption identification for software tag-based mode

2019-08-01 Thread Walter Wu
On Wed, 2019-07-31 at 20:04 +0300, Andrey Ryabinin wrote: > > On 7/26/19 4:19 PM, Walter Wu wrote: > > On Fri, 2019-07-26 at 15:52 +0300, Andrey Ryabinin wrote: > >> > >> On 7/26/19 3:28 PM, Walter Wu wrote: > >>> On Fri, 2019-07-26 at 15:00 +0300, Andrey Ryabinin wrote: > > >>> > > >

Re: [PATCH v3 3/3] ARM: dts: aspeed: Add Mihawk BMC platform

2019-08-01 Thread Andrew Jeffery
On Thu, 1 Aug 2019, at 19:48, Ben Pai wrote: > The Mihawk BMC is an ASPEED ast2500 based BMC that is part of an > OpenPower Power9 server. > > Signed-off-by: Ben Pai > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts | 902

Re: [PATCH] ARM: dts: aspeed: Add Facebook Wedge100 BMC

2019-08-01 Thread Joel Stanley
On Fri, 2 Aug 2019 at 01:02, Tao Ren wrote: > + > + chosen { > + stdout-path = > + bootargs = "debug console=ttyS2,9600n8 root=/dev/ram rw"; Are you sure you want 'debug' in your boot arguments? The rest lgtm. I can remove debug when applying, or leave it

Re: [PATCH] ARM: dts: aspeed: Add Facebook Wedge40 BMC

2019-08-01 Thread Andrew Jeffery
On Fri, 2 Aug 2019, at 10:24, Tao Ren wrote: > Add initial version of device tree for Facebook Wedge40 AST2400 BMC > platform. > > Signed-off-by: Tao Ren Reviewed-by: Andrew Jeffery > --- > arch/arm/boot/dts/Makefile| 1 + >

Re: [PATCH] ARM: dts: aspeed: Add Facebook Wedge100 BMC

2019-08-01 Thread Andrew Jeffery
On Fri, 2 Aug 2019, at 10:32, Tao Ren wrote: > Add initial version of device tree for Facebook Wedge100 AST2400 BMC > platform. > > Signed-off-by: Tao Ren Reviewed-by: Andrew Jeffery > --- > arch/arm/boot/dts/Makefile| 1 + >

memory leak in tipc_group_create_member

2019-08-01 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:a9815a4f Merge branch 'x86-urgent-for-linus' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12a6dbf060 kernel config: https://syzkaller.appspot.com/x/.config?x=37c48fb52e3789e6

Re: [PATCH 2/2] pinctrl: qcom: Add SC7180 pinctrl driver

2019-08-01 Thread Rajendra Nayak
On 8/1/2019 8:06 PM, Bjorn Andersson wrote: On Thu 01 Aug 03:07 PDT 2019, Rajendra Nayak wrote: [..] +static const struct msm_pingroup sc7180_groups[] = { + [0] = PINGROUP(0, SOUTH, qup01, cri_trng, _, phase_flag, _, _, _, _, _), + [1] = PINGROUP(1, SOUTH, qup01, cri_trng, _,

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

2019-08-01 Thread Michael Ellerman
On Tue, 2019-07-30 at 04:37:04 UTC, Stephen Rothwell wrote: > Mark switch cases where we are expecting to fall through. > > This patch fixes the following warning (Building: powerpc): > > drivers/macintosh/smu.c: In function 'smu_queue_i2c': > drivers/macintosh/smu.c:854:21: warning: this

Re: [PATCH] powerpc/kasan: fix early boot failure on PPC32

2019-08-01 Thread Michael Ellerman
On Wed, 2019-07-31 at 06:01:42 UTC, Christophe Leroy wrote: > Due to commit 4a6d8cf90017 ("powerpc/mm: don't use pte_alloc_kernel() > until slab is available on PPC32"), pte_alloc_kernel() cannot be used > during early KASAN init. > > Fix it by using memblock_alloc() instead. > > Reported-by:

[PATCH 00/34] put_user_pages(): miscellaneous call sites

2019-08-01 Thread john . hubbard
From: John Hubbard Hi, These are best characterized as miscellaneous conversions: many (not all) call sites that don't involve biovec or iov_iter, nor mm/. It also leaves out a few call sites that require some more work. These are mostly pretty simple ones. It's probably best to send all of

[PATCH 06/34] drm/i915: convert put_page() to put_user_page*()

2019-08-01 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[PATCH 10/34] genwqe: convert put_page() to put_user_page*()

2019-08-01 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[PATCH 12/34] vmci: convert put_page() to put_user_page*()

2019-08-01 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[PATCH 04/34] x86/kvm: convert put_page() to put_user_page*()

2019-08-01 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder versions"). Cc:

[PATCH 07/34] drm/radeon: convert put_page() to put_user_page*()

2019-08-01 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

Re: [PATCH 19/20] pstore: fs superblock limits

2019-08-01 Thread Deepa Dinamani
On Tue, Jul 30, 2019 at 12:36 AM Arnd Bergmann wrote: > > On Tue, Jul 30, 2019 at 6:31 AM Kees Cook wrote: > > > > On Mon, Jul 29, 2019 at 06:49:23PM -0700, Deepa Dinamani wrote: > > > Also update the gran since pstore has microsecond granularity. > > > > So, I'm fine with this, but technically

[PATCH 01/34] mm/gup: add make_dirty arg to put_user_pages_dirty_lock()

2019-08-01 Thread john . hubbard
From: John Hubbard Provide more capable variation of put_user_pages_dirty_lock(), and delete put_user_pages_dirty(). This is based on the following: 1. Lots of call sites become simpler if a bool is passed into put_user_page*(), instead of making the call site choose which put_user_page*()

[PATCH 02/34] net/rds: convert put_page() to put_user_page*()

2019-08-01 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

Re: [PATCH v2] watchdog: alim1535: Rewriting of alim1535 to use watchdog subsystem

2019-08-01 Thread Guenter Roeck
On Thu, Aug 01, 2019 at 01:58:34PM -0700, Mark Balantzyan wrote: > This patch rewrites the alim1535_wdt driver to use the watchdog subsystem. By > virtue of this, it also fixes a potential race condition between > ali_timeout_bits and ali_settimer(). > There is no such race condition, as I

Re: [PATCH 7/9] clk: sprd: Don't reference clk_init_data after registration

2019-08-01 Thread Chunyan Zhang
On Thu, 1 Aug 2019 at 03:35, Stephen Boyd wrote: > > A future patch is going to change semantics of clk_register() so that > clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid > referencing this member here so that we don't run into NULL pointer > exceptions. > > Cc: Chunyan

[PATCH 1/2] mm/zsmalloc.c: Migration can leave pages in ZS_EMPTY indefinitely

2019-08-01 Thread Henry Burns
In zs_page_migrate() we call putback_zspage() after we have finished migrating all pages in this zspage. However, the return value is ignored. If a zs_free() races in between zs_page_isolate() and zs_page_migrate(), freeing the last object in the zspage, putback_zspage() will leave the page in

[PATCH 2/2] mm/zsmalloc.c: Fix race condition in zs_destroy_pool

2019-08-01 Thread Henry Burns
In zs_destroy_pool() we call flush_work(>free_work). However, we have no guarantee that migration isn't happening in the background at that time. Since migration can't directly free pages, it relies on free_work being scheduled to free the pages. But there's nothing preventing an in-progress

[PATCH v2 10/10] watchdog: Replace strncmp with str_has_prefix

2019-08-01 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix to substitute such strncmp. Signed-off-by: Chuhong Yuan --- Changes in v2: - Revise

[PATCH v2 07/10] reboot: Replace strncmp with str_has_prefix

2019-08-01 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix to substitute such strncmp. Signed-off-by: Chuhong Yuan --- Changes in v2: - Revise

[PATCH v2 09/10] userns: Replace strncmp with str_has_prefix

2019-08-01 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix to substitute such strncmp. Signed-off-by: Chuhong Yuan --- Changes in v2: - Revise

[PATCH v2 03/10] locking/locktorture: Replace strncmp with str_has_prefix

2019-08-01 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix to substitute such strncmp. Signed-off-by: Chuhong Yuan --- Changes in v2: - Newly

[PATCH v2 05/10] PM / sleep: Replace strncmp with str_has_prefix

2019-08-01 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix to substitute such strncmp. Signed-off-by: Chuhong Yuan --- Changes in v2: - Revise

[PATCH v2 06/10] printk: Replace strncmp with str_has_prefix

2019-08-01 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix to substitute such strncmp. Signed-off-by: Chuhong Yuan --- Changes in v2: - Revise

[PATCH v2 08/10] sched: Replace strncmp with str_has_prefix

2019-08-01 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix to substitute such strncmp. Signed-off-by: Chuhong Yuan --- Changes in v2: - Revise

[PATCH v2 04/10] module: Replace strncmp with str_has_prefix

2019-08-01 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix to substitute such strncmp. Signed-off-by: Chuhong Yuan --- Changes in v2: - Revise

[PATCH v2 02/10] gcov: Replace strncmp with str_has_prefix

2019-08-01 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix to substitute such strncmp. Signed-off-by: Chuhong Yuan --- Changes in v2: - Revise

Re: [PATCH] ima: Allow to import the blacklisted cert signed by secondary CA cert

2019-08-01 Thread Jia Zhang
On 2019/8/2 上午6:57, Mimi Zohar wrote: > Hi Jia, > > On Thu, 2019-08-01 at 09:23 +0800, Jia Zhang wrote: >> Similar to .ima, the cert imported to .ima_blacklist is able to be >> authenticated by a secondary CA cert. >> >> Signed-off-by: Jia Zhang > > The IMA blacklist, which is defined as

Re: [PATCH] linux/bits.h: Add compile time sanity check of GENMASK inputs

2019-08-01 Thread Masahiro Yamada
On Thu, Aug 1, 2019 at 4:27 AM Joe Perches wrote: > > On Wed, 2019-07-31 at 21:03 +0200, Rikard Falkeborn wrote: > > GENMASK() and GENMASK_ULL() are supposed to be called with the high bit > > as the first argument and the low bit as the second argument. Mixing > > them will return a mask with

Re: [BUG] lseek on /proc/meminfo is broken in 4.19.59 maybe due to commit 1f4aace60b0e ("fs/seq_file.c: simplify seq_file iteration code and interface")

2019-08-01 Thread Sergei Turchanov
Hello! Yes, your patch fixed this bug. Thank you very much! With best regards, Sergei. On 01.08.2019 19:14, NeilBrown wrote: On Thu, Aug 01 2019, Sergei Turchanov wrote: Hello! [ As suggested in previous discussion this behavior may be caused by your commit 1f4aace60b0e

Re: [PATCH net-next 1/2] net: phy: broadcom: set features explicitly for BCM54616S

2019-08-01 Thread Tao Ren
On 7/31/19 10:20 PM, Tao Ren wrote: > On 7/30/19 11:00 PM, Tao Ren wrote: >> On 7/30/19 10:53 PM, Heiner Kallweit wrote: >>> On 31.07.2019 02:12, Tao Ren wrote: On 7/29/19 11:00 PM, Heiner Kallweit wrote: > On 30.07.2019 07:05, Tao Ren wrote: >> On 7/29/19 8:35 PM, Andrew Lunn wrote:

[PATCH -next] staging: fsl-dpaa2/ethsw: Remove useless set memory to zero use memset()

2019-08-01 Thread Wei Yongjun
The memory return by kzalloc() has already be set to zero, so remove useless memset(0). Signed-off-by: Wei Yongjun --- drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c

Re: [PATCH 2/2 v3] MIPS: Ingenic: Fix bugs when calculate bogomips/lpj.

2019-08-01 Thread Paul Cercueil
Hi Zhou, Le jeu. 1 août 2019 à 8:16, Zhou Yanjie a écrit : Enable BTB lookups for short loops to fix bugs when calculate bogomips and loops_per_jiffy. The commit description and the code comment below seem to say two different things. Are we enabling the BTB lookup optimization, or not?

[PATCH] PCI: Mark expected switch fall-through

2019-08-01 Thread Gustavo A. R. Silva
Mark switch cases where we are expecting to fall through. This patch fixes the following warning (Building: allmodconfig i386): drivers/pci/hotplug/ibmphp_res.c: In function ‘update_bridge_ranges’: drivers/pci/hotplug/ibmphp_res.c:1943:16: warning: this statement may fall through

Re: Possible mem cgroup bug in kernels between 4.18.0 and 5.3-rc1.

2019-08-01 Thread Masoud Sharbiani
> On Aug 1, 2019, at 11:19 AM, Greg KH wrote: > > On Thu, Aug 01, 2019 at 11:04:14AM -0700, Masoud Sharbiani wrote: >> Hey folks, >> I’ve come across an issue that affects most of 4.19, 4.20 and 5.2 >> linux-stable kernels that has only been fixed in 5.3-rc1. >> It was introduced by >> >>

[PATCH] fs/ceph: don't return a value from void function

2019-08-01 Thread john . hubbard
From: John Hubbard This fixes a build warning to that effect. Signed-off-by: John Hubbard --- Hi, I ran into this while working on unrelated changes, to convert ceph over to put_user_page(). This patch is against the latest linux.git. thanks, John Hubbard NVIDIA fs/ceph/debugfs.c | 1 -

[PATCH] ARM: dts: aspeed: Add Facebook Wedge100 BMC

2019-08-01 Thread Tao Ren
Add initial version of device tree for Facebook Wedge100 AST2400 BMC platform. Signed-off-by: Tao Ren --- arch/arm/boot/dts/Makefile| 1 + .../boot/dts/aspeed-bmc-facebook-wedge100.dts | 149 ++ 2 files changed, 150 insertions(+) create mode 100644

[PATCH] ARM: dts: aspeed: Add Facebook Wedge40 BMC

2019-08-01 Thread Tao Ren
Add initial version of device tree for Facebook Wedge40 AST2400 BMC platform. Signed-off-by: Tao Ren --- arch/arm/boot/dts/Makefile| 1 + .../boot/dts/aspeed-bmc-facebook-wedge40.dts | 141 ++ 2 files changed, 142 insertions(+) create mode 100644

Re: [PATCH] KVM: Disable wake-affine vCPU process to mitigate lock holder preemption

2019-08-01 Thread Wanpeng Li
On Thu, 1 Aug 2019 at 20:57, Dario Faggioli wrote: > > On Tue, 2019-07-30 at 17:33 +0800, Wanpeng Li wrote: > > However, in multiple VMs over-subscribe virtualization scenario, it > > increases > > the probability to incur vCPU stacking which means that the sibling > > vCPUs from > > the same VM

Re: [PATCH v3 00/10] implement KASLR for powerpc/fsl_booke/32

2019-08-01 Thread Jason Yan
On 2019/8/1 22:36, Diana Madalina Craciun wrote: Hi Jason, I have tested these series on a P4080 platform. Regards, Diana Diana, thank you so much. So can you take a look at the code of this version and give a Reviewed-by or Tested-by? Thanks, Jason

Re: [PATCH v3 1/3] KVM: Fix leak vCPU's VMCS value into other pCPU

2019-08-01 Thread Wanpeng Li
On Thu, 1 Aug 2019 at 21:31, Sasha Levin wrote: > > Hi, > > [This is an automated email] > > This commit has been processed because it contains a "Fixes:" tag, > fixing commit: 98f4a1467612 KVM: add kvm_arch_vcpu_runnable() test to > kvm_vcpu_on_spin() loop. > > The bot has tested the following

linux-next: manual merge of the jc_docs tree with the cifs tree

2019-08-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the jc_docs tree got a conflict in: Documentation/admin-guide/cifs/todo.rst between commit: 46c8a6b4c39e ("smb3: update TODO list of missing features") from the cifs tree and commit: f139291c7130 ("docs: fs: cifs: convert to ReST and add to

Re: [PATCH] pciehp: fix a race between pciehp and removing operations by sysfs

2019-08-01 Thread Bjorn Helgaas
On Mon, Feb 26, 2018 at 08:41:15PM +0800, Xiongfeng Wang wrote: > From: Xiongfeng Wang > > When I run a stress test about pcie hotplug and removing operations by > sysfs, I got a hange task, and the following call trace is printed. It's been so long that I'm embarrassed to even respond to this,

  1   2   3   4   5   6   7   8   9   10   >