[PATCH V2] ARM: dts: imx7d: correct cpu supply name for voltage scaling

2018-05-15 Thread Anson Huang
Correct CPU supply name to meet cpufreq-dt driver's requirement for voltage scaling. Signed-off-by: Anson Huang Reviewed-by: Fabio Estevam --- changes since V1: fix the "No newline at end of file" caused by vim editor. arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 2 +- arch/arm/boot/dts/im

Re: [RFC PATCH 00/10] Add persistent clock support

2018-05-15 Thread Baolin Wang
Hi Daniel, On 15 May 2018 at 18:27, Daniel Lezcano wrote: > On Mon, May 14, 2018 at 04:55:26PM +0800, Baolin Wang wrote: >> Hi, >> >> We will meet below issues when compensating the suspend time for the >> timekeeping. >> >> 1. We have too many different ways of dealing with persistent timekeepi

RE: [External] Re: [RFC PATCH v1 0/6] use mm to manage NVDIMM (pmem) zone

2018-05-15 Thread Huaisheng HS1 Ye
> From: Matthew Wilcox [mailto:wi...@infradead.org] > Sent: Wednesday, May 16, 2018 12:20 AM> > > > > > Then there's the problem of reconnecting the page cache (which is > > > > > pointed to by ephemeral data structures like inodes and dentries) to > > > > > the new inodes. > > > > Yes, it is not

RE: [PATCH net-next v2 2/2] drivers: net: Remove device_node checks with of_mdiobus_register()

2018-05-15 Thread Andy Duan
From: Florian Fainelli Sent: 2018年5月16日 7:56 > A number of drivers have the following pattern: > > if (np) > of_mdiobus_register() > else > mdiobus_register() > > which the implementation of of_mdiobus_register() now takes care of. > Remove that pattern in drivers that strictly adher

Re: linux-next: manual merge of the rockchip tree with the renesas tree

2018-05-15 Thread Stephen Rothwell
Hi all, On Thu, 3 May 2018 08:36:54 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the rockchip tree got a conflict in: > > arch/arm64/configs/defconfig > > between commits: > > 93f7bfd930c0 ("arm64: defconfig: makes SND_SIMPLE_CARD to module") > ddf3fa8b8a16 ("arm64: def

[PATCH v4] *** PCI: kirin: MSI patch discription ***

2018-05-15 Thread Xiaowei Song
From: Yao Chen Before Version Patches == patch v3 https://www.spinics.net/lists/linux-pci/msg72322.html patch v2 https://www.spinics.net/lists/kernel/msg2797610.html patch v1 https://www.spinics.net/lists/kernel/msg2796410.html Changes between V4 and V3 =

[PATCH v4] PCI: kirin: Add MSI support

2018-05-15 Thread Xiaowei Song
From: Yao Chen Add support for MSI. Signed-off-by: Yao Chen Cc: Xiaowei Song --- drivers/pci/dwc/pcie-kirin.c | 51 1 file changed, 51 insertions(+) diff --git a/drivers/pci/dwc/pcie-kirin.c b/drivers/pci/dwc/pcie-kirin.c index d2970a0..00ca4e5 10

RE: [PATCH net-next 2/3] net: ethernet: freescale: Allow FEC with COMPILE_TEST

2018-05-15 Thread Andy Duan
From: Florian Fainelli Sent: 2018年5月16日 7:48 > The Freescale FEC driver builds fine with COMPILE_TEST, so make that > possible. > > Signed-off-by: Florian Fainelli Acked-by: Fugang Duan > --- > drivers/net/ethernet/freescale/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [PATCH 2/3] KVM: X86: Allow userspace to disable ioport intercept

2018-05-15 Thread Wanpeng Li
2018-05-16 5:56 GMT+08:00 Jim Mattson : > I'd prefer to let the kvm module have the final say as to whether or > not to allow userspace to do this. I have an IRC discussion with Paolo, it seems that he didn't like the original idea of the patchset. Regards, Wanpeng Li > > On Fri, May 11, 2018 at

Re: [PATCH 4.4 125/190] [media] cx25840: fix unchecked return values

2018-05-15 Thread Ben Hutchings
On Wed, 2018-04-11 at 20:36 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Pan Bian > > > [ Upstream commit 35378ce143071c2a6bad4b59a000e9b9f8f6ea67 ] > > In functions cx25840_initialize(), cx231x

[PATCH] net: qcom/emac: Encapsulate sgmii ops under one structure

2018-05-15 Thread Hemanth Puranik
This patch introduces ops structure for sgmii, This by ensures that we do not need dummy functions in case of emulation platforms. Signed-off-by: Hemanth Puranik --- drivers/net/ethernet/qualcomm/emac/emac-mac.c | 5 +- drivers/net/ethernet/qualcomm/emac/emac-sgmii.c | 128 ++

Re: [PATCH 3/3] types: use fixed width types without double-underscore prefix

2018-05-15 Thread Masahiro Yamada
Hi Andrew, 2018-05-16 7:59 GMT+09:00 Andrew Morton : > On Tue, 15 May 2018 11:22:05 +0900 Masahiro Yamada > wrote: > >> This header file is not exported. It is safe to reference types >> without double-underscore prefix. >> > > It may be safe to do this, but why is it desirable? It is shorter

Re: [PATCH 10/12] platform/early: implement support for early platform drivers

2018-05-15 Thread Rob Herring
On Tue, May 15, 2018 at 9:06 AM, Bartosz Golaszewski wrote: > 2018-05-14 15:37 GMT+02:00 Rob Herring : >> On Fri, May 11, 2018 at 11:20 AM, Bartosz Golaszewski wrote: >>> From: Bartosz Golaszewski >>> >>> This introduces the core part of support for early platform drivers >>> and devices. >>> >>

Re: [PATCH v10 00/27] ARM: davinci: convert to common clock framework​

2018-05-15 Thread David Lechner
On 5/15/18 5:44 PM, Adam Ford wrote: On Tue, May 15, 2018 at 4:25 AM, Bartosz Golaszewski wrote: 2018-05-14 2:40 GMT+02:00 Adam Ford : On Wed, May 9, 2018 at 12:25 PM, David Lechner wrote: This series converts mach-davinci to use the common clock framework. The series works like this, the f

Re: [Intel-gfx] [PATCH 5/5] media: platform: Add Chrome OS EC CEC driver

2018-05-15 Thread kbuild test robot
Hi Neil, I love your patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.17-rc5 next-20180515] [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

Re: [PATCH 4.4 115/190] Fix serial console on SNI RM400 machines

2018-05-15 Thread Ben Hutchings
On Wed, 2018-04-11 at 20:36 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Thomas Bogendoerfer > > > [ Upstream commit e279e6d98e0cf2c2fe008b3c29042b92f0e17b1d ] > > sccnxp driver doesn't get the

[PATCH] scripts/tags.sh: don't rely on parsing `ls` for $ALLSOURCE_ARCHS generation

2018-05-15 Thread Joey Pabalinas
Parsing `ls` is fragile at best and _will_ fail when $tree contains spaces. Replace this with a glob-generated string and directly assign it to $ALLSOURCE_ARCHS; use a subshell so `cd` doesn't affect the current working directory. Signed-off-by: Joey Pabalinas 1 file changed, 1 insertion(+), 4

Re: [PATCH v2] {net, IB}/mlx5: Use 'kvfree()' for memory allocated by 'kvzalloc()'

2018-05-15 Thread Saeed Mahameed
On Tue, May 15, 2018 at 3:21 PM, Jason Gunthorpe wrote: > On Sun, May 13, 2018 at 09:00:41AM +0200, Christophe JAILLET wrote: >> When 'kvzalloc()' is used to allocate memory, 'kvfree()' must be used to >> free it. >> >> Signed-off-by: Christophe JAILLET >> --- >> v1 -> v2: More places to update h

Re: [PATCH v16 0/9] Address error and recovery for AER and DPC

2018-05-15 Thread Bjorn Helgaas
On Fri, May 11, 2018 at 06:43:19AM -0400, Oza Pawandeep wrote: > This patch set brings in error handling support for DPC > > The current implementation of AER and error message broadcasting to the > EP driver is tightly coupled and limited to AER service driver. > It is important to factor out bro

Re: [PATCH v16 5/9] PCI/AER: Factor out error reporting from AER

2018-05-15 Thread Bjorn Helgaas
On Fri, May 11, 2018 at 06:43:24AM -0400, Oza Pawandeep wrote: > This patch factors out error reporting callbacks, which are currently > tightly coupled with AER. > > DPC should be able to register callbacks and attempt recovery when DPC > trigger event occurs. > > Signed-off-by: Oza Pawandeep

Re: [PATCH net-next v2 2/2] drivers: net: Remove device_node checks with of_mdiobus_register()

2018-05-15 Thread Grygorii Strashko
On 05/15/2018 06:56 PM, Florian Fainelli wrote: A number of drivers have the following pattern: if (np) of_mdiobus_register() else mdiobus_register() which the implementation of of_mdiobus_register() now takes care of. Remove that pattern in drivers that strictly adhere to it.

Re: [PATCH v16 3/9] PCI/AER: Handle ERR_FATAL with removal and re-enumeration of devices

2018-05-15 Thread Bjorn Helgaas
On Fri, May 11, 2018 at 06:43:22AM -0400, Oza Pawandeep wrote: > This patch alters the behavior of handling of ERR_FATAL, where removal > of devices is initiated, followed by reset link, followed by > re-enumeration. > > So the errors are handled in a different way as follows: > ERR_NONFATAL => ca

[PATCH net-next v2 1/2] of: mdio: Fall back to mdiobus_register() with NULL device_node

2018-05-15 Thread Florian Fainelli
When the device_node specified is NULL, fall back to mdiobus_register(). We have a number of drivers having a similar pattern which is: if (np) of_mdiobus_register() else mdiobus_register() so incorporate that behavior within the core of_mdiobus_register() function. This is also c

[PATCH net-next v2 0/2] of: mdio: Fall back to mdiobus_register() with NULL device_node

2018-05-15 Thread Florian Fainelli
Hi all, This patch series updates of_mdiobus_register() such that when the device_node argument is NULL, it calls mdiobus_register() directly. This is consistent with the behavior of of_mdiobus_register() when CONFIG_OF=n. I only converted the most obvious drivers, there are others that have a mu

[PATCH] usbip: usbip_host: fix bad unlock balance during stub_probe()

2018-05-15 Thread Shuah Khan (Samsung OSG)
stub_probe() calls put_busid_priv() in an error path when device isn't found in the busid_table. Fix it by making put_busid_priv() safe to be called with null struct bus_id_priv pointer. This problem happens when "usbip bind" is run without loading usbip_host driver and then running modprobe. The

Re: [PATCH v7 2/6] srcu: Add notrace variants of srcu_read_{lock,unlock}

2018-05-15 Thread Joel Fernandes
Something is majorly messed up with my SMTP server. Only half of the patches in this series were sent out and the ones that did go out were random. I keeping getting this as replies for the one's that didn't go out: https://support.google.com/mail/answer/6596?visit_id=1-636620224226493206-28842143

[PATCH net-next v2 2/2] drivers: net: Remove device_node checks with of_mdiobus_register()

2018-05-15 Thread Florian Fainelli
A number of drivers have the following pattern: if (np) of_mdiobus_register() else mdiobus_register() which the implementation of of_mdiobus_register() now takes care of. Remove that pattern in drivers that strictly adhere to it. Signed-off-by: Florian Fainelli --- drivers/net/

Re: [PATCH v16 8/9] PCI/DPC: Unify and plumb error handling into DPC

2018-05-15 Thread Bjorn Helgaas
On Fri, May 11, 2018 at 05:22:08PM +0530, p...@codeaurora.org wrote: > On 2018-05-11 16:13, Oza Pawandeep wrote: > > DPC driver implements link_reset callback, and calls > > pci_do_fatal_recovery(). > > > > Which follows standard path of ERR_FATAL recovery. > > > > Signed-off-by: Oza Pawandeep >

[PATCH net-next 1/3] net: ethernet: ti: Allow most drivers with COMPILE_TEST

2018-05-15 Thread Florian Fainelli
Most of the TI drivers build just fine with COMPILE_TEST, cpmac (AR7) is the exception because it uses a header file from arch/mips/include/asm/mach-ar7/ar7.h. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/ti/Kconfig | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-)

[PATCH net-next 3/3] net: phy: Allow MDIO_MOXART and MDIO_SUN4I with COMPILE_TEST

2018-05-15 Thread Florian Fainelli
Those drivers build just fine with COMPILE_TEST, so make that possible. Signed-off-by: Florian Fainelli --- drivers/net/phy/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig index 0e2305ccc91f..343989f9f9d9 100644 --

[PATCH net-next 0/3] net: Allow more drivers with COMPILE_TEST

2018-05-15 Thread Florian Fainelli
Hi David, This patch series includes more drivers to be build tested with COMPILE_TEST enabled. This helps cover some of the issues I just ran into with missing a driver *sigh*. Florian Fainelli (3): net: ethernet: ti: Allow most drivers with COMPILE_TEST net: ethernet: freescale: Allow FEC w

[PATCH net-next 2/3] net: ethernet: freescale: Allow FEC with COMPILE_TEST

2018-05-15 Thread Florian Fainelli
The Freescale FEC driver builds fine with COMPILE_TEST, so make that possible. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/freescale/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/Kconfig b/drivers/net/ethernet/freescale/K

linux-next: manual merge of the btrfs-kdave tree with the btrfs-fixes tree

2018-05-15 Thread Stephen Rothwell
Hi David, Today's linux-next merge of the btrfs-kdave tree got a conflict in: fs/btrfs/props.c between commit: f764b4f4bb26 ("btrfs: property: Set incompat flag if lzo/zstd compression is set") from the btrfs-fixes tree and commit: e37739baf401 ("btrfs: allow setting zstd level") from

Re: [PATCH 2/2] x86/mm: Introduce 'no5lvl' kernel parameter

2018-05-15 Thread Thomas Gleixner
On Tue, 15 May 2018, Kirill A. Shutemov wrote: > On Sun, May 13, 2018 at 09:55:00PM +, Thomas Gleixner wrote: > > On Fri, 11 May 2018, Kirill A. Shutemov wrote: > > > --- a/arch/x86/kernel/cpu/common.c > > > +++ b/arch/x86/kernel/cpu/common.c > > > @@ -1008,6 +1008,12 @@ static void __init ear

Re

2018-05-15 Thread ''Maria-Elisabeth Schaeffler''
I am Maria-Elisabeth Schaeffler, a German citizen, wife of late George W.Schaeffler, 75 years old. You can see here: en.wikipedia.org/wiki/Maria-Elisabeth_Schaeffler I intend to give to you a portion of my Wealth as a free-will financial donation to you. Respond now to partake. Regards Maria-Elis

Re: [PATCH 7/7] clk: meson: axg: add the audio clock controller driver

2018-05-15 Thread Stephen Boyd
Quoting Neil Armstrong (2018-04-26 01:49:29) > On 25/04/2018 18:33, Jerome Brunet wrote: > > +#endif /*__AXG_AUDIO_CLKC_H */ > > > > Acked-by: Neil Armstrong Please trim replies.

[PATCH net-next v2] net: ethernet: ti: cpsw-phy-sel: check bus_find_device() ret value

2018-05-15 Thread Grygorii Strashko
This fixes klockworks warnings: Pointer 'dev' returned from call to function 'bus_find_device' at line 179 may be NULL and will be dereferenced at line 181. cpsw-phy-sel.c:179: 'dev' is assigned the return value from function 'bus_find_device'. bus.c:342: 'bus_find_device' explicitly retu

Re: [PATCH v2] x86/asm: Pad assembly functions with INT3 instructions

2018-05-15 Thread Linus Torvalds
On Tue, May 15, 2018 at 3:58 PM Alexey Dobriyan wrote: > jb resume_kernel # not returning to v8086 or userspace > - > -ENTRY(resume_userspace) I went back in history, and we used to have multiple "jmp resume_userspace" including even the vm86.c code (in a different

Re: [PATCH v7 1/6] softirq: reorder trace_softirqs_on to prevent lockdep splat

2018-05-15 Thread Joel Fernandes
This patch submission got completely screwed up, sorry, please ignore. I'll repost soon. There's something messed up with my SMTP server too. On Tue, May 15, 2018 at 03:45:54PM -0700, Joel Fernandes (Google) wrote: > I'm able to reproduce a lockdep splat with config options: > CONFIG_PROVE_LOCKING

[PATCH v5 1/3] random: Fix whitespace pre random-bytes work

2018-05-15 Thread Tobin C. Harding
There are a couple of whitespace issues around the function get_random_bytes_arch(). In preparation for patching this function let's clean them up. Signed-off-by: Tobin C. Harding Acked-by: Theodore Ts'o --- drivers/char/random.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --

linux-next: Signed-off-by missing for commits in the drm tree

2018-05-15 Thread Stephen Rothwell
Hi all, Commits f412e8307d0a ("drm/amd/display: Couple bug fixes in stats module") e09b6473c605 ("drm/amd/display: Rename encoder_info_packet to dc_info_packet") 87943159f409 ("drm/amd/display: Only program MSA_TIMING_PARAM if it changed") are missing a Signed-off-by from their author. --

[PATCH v5 2/3] random: Return nbytes filled from hw RNG

2018-05-15 Thread Tobin C. Harding
Currently the function get_random_bytes_arch() has return value 'void'. If the hw RNG fails we currently fall back to using get_random_bytes(). This defeats the purpose of requesting random material from the hw RNG in the first place. There are currently no intree users of get_random_bytes_arch().

[PATCH v5 3/3] vsprintf: Use hw RNG for ptr_key

2018-05-15 Thread Tobin C. Harding
Currently we must wait for enough entropy to become available before hashed pointers can be printed. We can remove this wait by using the hw RNG if available. Use hw RNG to get keying material. Suggested-by: Kees Cook Signed-off-by: Tobin C. Harding Reviewed-by: Steven Rostedt (VMware) --- l

[PATCH v5 0/3] enable early printing of hashed pointers

2018-05-15 Thread Tobin C. Harding
Currently if an attempt is made to print a pointer before there is enough entropy then '(ptrval)' is printed. This makes debugging stack traces during early boot difficult. One partial solution to this problem is to use the hw RNG if it is available. Patch 1 - Whitespace fixes. Patch 2 -

Re: [PATCH 4.4 099/190] arm64: futex: Fix undefined behaviour with FUTEX_OP_OPARG_SHIFT usage

2018-05-15 Thread Ben Hutchings
On Wed, 2018-04-11 at 20:35 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > > From: Will Deacon > > > [ Upstream commit 5f16a046f8e144c294ef98cd29d9458b5f8273e5 ] > > FUTEX_OP_OPARG_SHIFT instructs the f

Re: [PATCH v2] IB/umem: ib_ucontext already have tgid, remove pid from ib_umem structure

2018-05-15 Thread Jason Gunthorpe
On Tue, May 08, 2018 at 04:50:16PM +0800, Lidong Chen wrote: > The userspace may invoke ibv_reg_mr and ibv_dereg_mr by different threads. > If when ibv_dereg_mr invoke and the thread which invoked ibv_reg_mr has > exited, get_pid_task will return NULL, ib_umem_release does not decrease > mm->pinned

linux-next: manual merge of the mips-james tree with the mips-fixes tree

2018-05-15 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the mips-james tree got a conflict in: arch/mips/boot/dts/xilfpga/Makefile between commit: a5a92abbce56 ("MIPS: xilfpga: Stop generating useless dtb.o") from the mips-fixes tree and commit: fca3aa166422 ("MIPS: dts: Avoid unneeded built-in.a in DTS di

Re: [PATCH net-next] net: ethernet: ti: cpsw-phy-sel: check bus_find_device() ret value

2018-05-15 Thread Grygorii Strashko
On 05/15/2018 06:07 PM, Andy Shevchenko wrote: On Wed, May 16, 2018 at 2:01 AM, Grygorii Strashko wrote: This fixes klockworks warnings: Pointer 'dev' returned from call to function 'bus_find_device' at line 179 may be NULL and will be dereferenced at line 181. + dev_err(dev,

Re: [PATCH] vsprintf: Fix memory barriers of ptr_key to have_filed_random_ptr_key

2018-05-15 Thread Linus Torvalds
On Tue, May 15, 2018 at 4:00 PM Steven Rostedt wrote: > If it is that if statement you don't like. We can get rid of it. On > early boot, the code is called from preemptable context, it's only > later that it is not. So we know when we can call it directly and when > we need to have a work queue.

Re: [PATCH net-next] net: ethernet: ti: cpsw-phy-sel: check bus_find_device() ret value

2018-05-15 Thread Andy Shevchenko
On Wed, May 16, 2018 at 2:01 AM, Grygorii Strashko wrote: > This fixes klockworks warnings: Pointer 'dev' returned from call to > function 'bus_find_device' at line 179 may be NULL and will be dereferenced > at line 181. > + dev_err(dev, "unable to find platform device for %s\n", >

Re: [lkp-robot] [x86/asm] 51bad67ffb: int3:#[##]

2018-05-15 Thread Linus Torvalds
Side note: doing some grepping, I find some other sequences that are a bit scary, like this: arch/x86/kernel/acpi/wakeup_32.S-.data arch/x86/kernel/acpi/wakeup_32.S-ALIGN arch/x86/kernel/acpi/wakeup_32.S:ENTRY(saved_magic) .long 0 arch/x86/kernel/acpi/wakeup_32.S:ENTRY(saved_eip) .long

Re: [PATCH V4] clk: at91: PLL recalc_rate() now using cached MUL and DIV values

2018-05-15 Thread Stephen Boyd
Quoting Marcin Ziemianowicz (2018-05-08 21:32:05) > On Mon, Apr 30, 2018 at 07:58:47AM +0200, Boris Brezillon wrote: > > On Sun, 29 Apr 2018 15:01:11 -0400 > > Marcin Ziemianowicz wrote: > > > > > When a USB device is connected to the USB host port on the SAM9N12 then > > > you get "-62" error wh

Re: [PATCH RFC 6/8] rcu: Add back the Startedleaf tracepoint

2018-05-15 Thread Joel Fernandes
On Mon, May 14, 2018 at 08:46:03PM -0700, Paul E. McKenney wrote: > On Mon, May 14, 2018 at 05:57:09PM -0700, Joel Fernandes wrote: > > On Mon, May 14, 2018 at 11:38:23AM -0700, Paul E. McKenney wrote: > > > On Sun, May 13, 2018 at 08:15:39PM -0700, Joel Fernandes (Google) wrote: > > > > In recent

[PATCH net v2 2/3] net: dsa: bcm_sf2: Fix IPv6 rules and chain ID

2018-05-15 Thread Florian Fainelli
We had several issues that would make the programming of IPv6 rules both inconsistent and error prone: - the chain ID that we would be asking the hardware to put in the packet's Broadcom tag would be off by one, it would return one of the two indexes, but not the one user-space specified - wh

[PATCH net v2 1/3] net: dsa: bcm_sf2: Fix RX_CLS_LOC_ANY overwrite for last rule

2018-05-15 Thread Florian Fainelli
When we let the kernel pick up a rule location with RX_CLS_LOC_ANY, we would be able to overwrite the last rules because of a number of issues. The IPv4 code path would not be checking that rule_index is within bounds, and it would also only be allowed to pick up rules from range 0..126 instead of

[PATCH net v2 3/3] net: dsa: bcm_sf2: Fix IPv6 rule half deletion

2018-05-15 Thread Florian Fainelli
It was possible to delete only one half of an IPv6, which would leave the second half still programmed and possibly in use. Instead of checking for the unused bitmap, we need to check the unique bitmap, and refuse any deletion that does not match that criteria. We also need to move that check from

[PATCH net-next] net: ethernet: ti: cpsw-phy-sel: check bus_find_device() ret value

2018-05-15 Thread Grygorii Strashko
This fixes klockworks warnings: Pointer 'dev' returned from call to function 'bus_find_device' at line 179 may be NULL and will be dereferenced at line 181. cpsw-phy-sel.c:179: 'dev' is assigned the return value from function 'bus_find_device'. bus.c:342: 'bus_find_device' explicitly retu

[PATCH net v2 0/3] net: dsa: bcm_sf2: CFP fixes

2018-05-15 Thread Florian Fainelli
Hi David, This patch series fixes a number of usability issues with the SF2 Compact Field Processor code: - we would not be properly bound checking the location when we let the kernel automatically place rules with RX_CLS_LOC_ANY - when using IPv6 rules and user space specifies a location iden

Re: [PATCH net-next 2/2] drivers: net: Remove device_node checks with of_mdiobus_register()

2018-05-15 Thread Florian Fainelli
On 05/15/2018 03:57 PM, Grygorii Strashko wrote: > > > On 05/15/2018 04:59 PM, Florian Fainelli wrote: >> A number of drivers have the following pattern: >> >> if (np) >> of_mdiobus_register() >> else >> mdiobus_register() >> >> which the implementation of of_mdiobus_register() now takes

Re: [PATCH] vsprintf: Fix memory barriers of ptr_key to have_filed_random_ptr_key

2018-05-15 Thread Steven Rostedt
On Tue, 15 May 2018 18:41:17 -0400 Steven Rostedt wrote: > On Tue, 15 May 2018 15:31:37 -0700 > Linus Torvalds wrote: > > > > we could always do this: > > > > Ugh. I think I prefer the barriers. > If it is that if statement you don't like. We can get rid of it. On early boot, the code

Re: [PATCH 3/3] types: use fixed width types without double-underscore prefix

2018-05-15 Thread Andrew Morton
On Tue, 15 May 2018 11:22:05 +0900 Masahiro Yamada wrote: > This header file is not exported. It is safe to reference types > without double-underscore prefix. > It may be safe to do this, but why is it desirable? > index be15897..9834e90 100644 > --- a/include/linux/types.h > +++ b/include/

[PATCH v2] x86/asm: Pad assembly functions with INT3 instructions

2018-05-15 Thread Alexey Dobriyan
Use INT3 instead of NOP. All that padding between functions is an illegal area, no legitimate code should jump into it. I've checked x86_64 allyesconfig disassembly, all changes looks sane: INT3 is only used after RET or unconditional JMP. On i386: * promote ret_from_exception into ENTRY as it ha

Re: [PATCH net-next 2/2] drivers: net: Remove device_node checks with of_mdiobus_register()

2018-05-15 Thread Grygorii Strashko
On 05/15/2018 04:59 PM, Florian Fainelli wrote: A number of drivers have the following pattern: if (np) of_mdiobus_register() else mdiobus_register() which the implementation of of_mdiobus_register() now takes care of. Remove that pattern in drivers that strictly adhere to it.

Re: [PATCH] kernel: sys: fix potential Spectre v1

2018-05-15 Thread Dan Williams
On Tue, May 15, 2018 at 3:29 PM, Thomas Gleixner wrote: > On Tue, 15 May 2018, Andrew Morton wrote: >> On Mon, 14 May 2018 22:00:38 -0500 "Gustavo A. R. Silva" >> wrote: >> >> > resource can be controlled by user-space, hence leading to a >> > potential exploitation of the Spectre variant 1 vuln

Re: [PATCH RFC 1/8] rcu: Add comment documenting how rcu_seq_snap works

2018-05-15 Thread Joel Fernandes
On Tue, May 15, 2018 at 12:08:01PM -0700, Paul E. McKenney wrote: > On Tue, May 15, 2018 at 11:41:15AM -0700, Joel Fernandes wrote: > > On Tue, May 15, 2018 at 05:55:07AM -0700, Paul E. McKenney wrote: > > > On Tue, May 15, 2018 at 12:02:43AM -0700, Joel Fernandes wrote: > > > > Hi Paul, > > > > Go

Re: [lkp-robot] [x86/asm] 51bad67ffb: int3:#[##]

2018-05-15 Thread Linus Torvalds
On Tue, May 15, 2018 at 3:43 PM Josh Poimboeuf wrote: > Glancing through the 32-bit and 64-bit entry code, I didn't see any more > cases. At least it will fail loudly if any such cases do still exist. \Will it? Do we have objtool checks for it now? Because without static checks, there could be

[PATCH v10 1/2] arch/*: Add CONFIG_ARCH_HAVE_CMPXCHG64

2018-05-15 Thread Bart Van Assche
The next patch in this series introduces a call to cmpxchg64() in the block layer core for those architectures on which this functionality is available. Make it possible to test whether cmpxchg64() is available by introducing CONFIG_ARCH_HAVE_CMPXCHG64. Signed-off-by: Bart Van Assche Cc: Catalin

[PATCH v9 2/2] blk-mq: Rework blk-mq timeout handling again

2018-05-15 Thread Bart Van Assche
Recently the blk-mq timeout handling code was reworked. See also Tejun Heo, "[PATCHSET v4] blk-mq: reimplement timeout handling", 08 Jan 2018 (https://www.mail-archive.com/linux-block@vger.kernel.org/msg16985.html). This patch reworks the blk-mq timeout handling code again. The timeout handling cod

[PATCH v9 1/2] arch/*: Add CONFIG_ARCH_HAVE_CMPXCHG64

2018-05-15 Thread Bart Van Assche
The next patch in this series introduces a call to cmpxchg64() in the block layer core for those architectures on which this functionality is available. Make it possible to test whether cmpxchg64() is available by introducing CONFIG_ARCH_HAVE_CMPXCHG64. Signed-off-by: Bart Van Assche Cc: Catalin

[PATCH v10 2/2] blk-mq: Rework blk-mq timeout handling again

2018-05-15 Thread Bart Van Assche
Recently the blk-mq timeout handling code was reworked. See also Tejun Heo, "[PATCHSET v4] blk-mq: reimplement timeout handling", 08 Jan 2018 (https://www.mail-archive.com/linux-block@vger.kernel.org/msg16985.html). This patch reworks the blk-mq timeout handling code again. The timeout handling cod

[PATCH v9 0/2] blk-mq: Rework blk-mq timeout handling again

2018-05-15 Thread Bart Van Assche
Hello Jens, This is the ninth incarnation of the blk-mq timeout handling rework. All previously posted comments have been addressed. Please consider this patch series for inclusion in the upstream kernel. Bart. Changes compared to v8: - Split into two patches. - Moved the spin_lock_init() call f

[PATCH v10 0/2] blk-mq: Rework blk-mq timeout handling again

2018-05-15 Thread Bart Van Assche
Hello Jens, This is the tenth incarnation of the blk-mq timeout handling rework. All previously posted comments should have been addressed. Please consider this patch series for inclusion in the upstream kernel. Bart. Changes compared to v9: - Addressed multiple comments related to patch 1/2: ad

Re: [lkp-robot] [x86/asm] 51bad67ffb: int3:#[##]

2018-05-15 Thread Alexey Dobriyan
On Tue, May 15, 2018 at 03:27:34PM -0700, Linus Torvalds wrote: > On Tue, May 15, 2018 at 2:43 PM Alexey Dobriyan wrote: > > > It crashed into the middle of the padding. > > No, the beginning of the padding. "int3" will push the return address on > the stack, so when it points to the second 'int

[PATCH v7 2/6] srcu: Add notrace variants of srcu_read_{lock,unlock}

2018-05-15 Thread Joel Fernandes (Google)
From: Paul McKenney This is needed for a future tracepoint patch that uses srcu, and to make sure it doesn't call into lockdep. tracepoint code already calls notrace variants for rcu_read_lock_sched so this patch does the same for srcu which will be used in a later patch. Keeps it consistent wit

[PATCH v7 1/6] softirq: reorder trace_softirqs_on to prevent lockdep splat

2018-05-15 Thread Joel Fernandes (Google)
I'm able to reproduce a lockdep splat with config options: CONFIG_PROVE_LOCKING=y, CONFIG_DEBUG_LOCK_ALLOC=y and CONFIG_PREEMPTIRQ_EVENTS=y $ echo 1 > /d/tracing/events/preemptirq/preempt_enable/enable --- kernel/softirq.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/k

[PATCH v7 4/6] trace/irqsoff: Split reset into separate functions

2018-05-15 Thread Joel Fernandes (Google)
Split reset functions into seperate functions in preparation of future patches that need to do tracer specific reset. Cc: Steven Rostedt Cc: Peter Zilstra Cc: Ingo Molnar Cc: Mathieu Desnoyers Cc: Tom Zanussi Cc: Namhyung Kim Cc: Thomas Glexiner Cc: Boqun Feng Cc: Paul McKenney Cc: Freder

Re: [PATCH v10 00/27] ARM: davinci: convert to common clock framework​

2018-05-15 Thread Adam Ford
On Tue, May 15, 2018 at 4:25 AM, Bartosz Golaszewski wrote: > 2018-05-14 2:40 GMT+02:00 Adam Ford : >> On Wed, May 9, 2018 at 12:25 PM, David Lechner wrote: >>> This series converts mach-davinci to use the common clock framework. >>> >>> The series works like this, the first 3 patches fix some is

[PATCH 1/3] binfmt_elf: Respect error return from `regset->active'

2018-05-15 Thread Maciej W. Rozycki
The regset API documented in defines -ENODEV as the result of the `->active' handler to be used where the feature requested is not available on the hardware found. However code handling core file note generation in `fill_thread_core_info' interpretes any non-zero result from the `->active' ha

Re: [lkp-robot] [x86/asm] 51bad67ffb: int3:#[##]

2018-05-15 Thread Josh Poimboeuf
On Tue, May 15, 2018 at 03:28:19PM -0700, Linus Torvalds wrote: > On Tue, May 15, 2018 at 3:22 PM Josh Poimboeuf wrote: > > > The padding isn't needed there, and the resume_userspace symbol is never > > used, so wouldn't this fix it? > > This looks like the correct fix for this case, but are we

Re: [PATCH] vsprintf: Fix memory barriers of ptr_key to have_filed_random_ptr_key

2018-05-15 Thread Steven Rostedt
On Tue, 15 May 2018 15:31:37 -0700 Linus Torvalds wrote: > > we could always do this: > > Ugh. I think I prefer the barriers. But the ugliness is only at boot up, where the early printing is important. The benefit of this is here: @@ -1709,7 +1717,7 @@ static char *ptr_to_id(char *buf, char

[PATCH] MIPS: Add FP_MODE regset support

2018-05-15 Thread Maciej W. Rozycki
Define an NT_MIPS_FP_MODE core file note and implement a corresponding regset holding the state handled by PR_SET_FP_MODE and PR_GET_FP_MODE prctl(2) requests. This lets debug software correctly interpret the contents of floating-point general registers both in live debugging and in core files

Re: linux-next 20180515 - ACPI disabled..

2018-05-15 Thread Al Stone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 05/15/2018 04:25 PM, valdis.kletni...@vt.edu wrote: > On Tue, 15 May 2018 15:49:15 -0600, Al Stone said: > >> Not off-hand. Could you please send me a copy of >> /sys/firmware/acpi/tables/APIC > > cat /sys/firmware/acpi/tables/APIC | od -x 000

[GIT PULL] tracing/x86/xen: Remove zero data size trace events trace_xen_mmu_flush_tlb{_all}

2018-05-15 Thread Steven Rostedt
Linus, Some of the ftrace internal events use a zero for a data size of a field event. This is increasingly important for the histogram trigger work that is being extended. While auditing trace events, I found that a couple of the xen events were used as just marking that a function was called,

[PATCH 3/3] MIPS: Add DSP ASE regset support

2018-05-15 Thread Maciej W. Rozycki
Define an NT_MIPS_DSP core file note type and implement a corresponding regset holding the DSP ASE register context, following the layout of the `mips_dsp_state' structure, except for the DSPControl register stored as a 64-bit rather than 32-bit quantity in a 64-bit note. The lack of DSP ASE re

Re: [RFC 1/8] x86: objtool: use asm macro for better compiler decisions

2018-05-15 Thread Josh Triplett
On Tue, May 15, 2018 at 02:53:52PM -0700, Nadav Amit wrote: > Josh Triplett wrote: > > > On Tue, May 15, 2018 at 07:11:08AM -0700, Nadav Amit wrote: > >> GCC considers the number of statements in inlined assembly blocks, > >> according to new-lines and semicolons, as an indication to the cost of

[PATCH 2/3] MIPS: Correct the 64-bit DSP accumulator register size

2018-05-15 Thread Maciej W. Rozycki
Use the `unsigned long' rather than `__u32' type for DSP accumulator registers, like with the regular MIPS multiply/divide accumulator and general-purpose registers, as all are 64-bit in 64-bit implementations and using a 32-bit data type leads to contents truncation on context saving. Update

[PATCH 0/3] MIPS: DSP ASE regset support

2018-05-15 Thread Maciej W. Rozycki
Hi, For years, quite oddly, we have been missing DSP ASE register state from core files. These days regsets are used to define what goes into a core file, so here's a change adding one. As a side effect ptrace(2) can now also access this regset, however no complementing client implementatio

Re: [PATCH] vsprintf: Fix memory barriers of ptr_key to have_filed_random_ptr_key

2018-05-15 Thread Linus Torvalds
On Tue, May 15, 2018 at 1:10 PM Steven Rostedt wrote: > The work queue looks to run immediately. 2ms is definitely not "immediately". It's just "soon". The whole - and _only_ reason we're doing all these changes is that people wanted reliable object hashes from very early bootup tracing, so I th

Re: [lkp-robot] [x86/asm] 51bad67ffb: int3:#[##]

2018-05-15 Thread Andy Lutomirski
On Tue, May 15, 2018 at 3:25 PM Thomas Gleixner wrote: > On Wed, 16 May 2018, Alexey Dobriyan wrote: > --- a/arch/x86/entry/entry_32.S > +++ b/arch/x86/entry/entry_32.S > @@ -338,6 +338,11 @@ END(ret_from_fork) > cmpl$USER_RPL, %eax > jb resume_kernel

Re: [PATCH] kernel: sys: fix potential Spectre v1

2018-05-15 Thread Thomas Gleixner
On Tue, 15 May 2018, Andrew Morton wrote: > On Mon, 14 May 2018 22:00:38 -0500 "Gustavo A. R. Silva" > wrote: > > > resource can be controlled by user-space, hence leading to a > > potential exploitation of the Spectre variant 1 vulnerability. > > > > This issue was detected with the help of Sm

Re: [lkp-robot] [x86/asm] 51bad67ffb: int3:#[##]

2018-05-15 Thread Linus Torvalds
On Tue, May 15, 2018 at 3:22 PM Josh Poimboeuf wrote: > The padding isn't needed there, and the resume_userspace symbol is never > used, so wouldn't this fix it? This looks like the correct fix for this case, but are we sure there aren't other cases where we have this same "fall through to an EN

Re: [lkp-robot] [x86/asm] 51bad67ffb: int3:#[##]

2018-05-15 Thread Linus Torvalds
On Tue, May 15, 2018 at 2:43 PM Alexey Dobriyan wrote: > It crashed into the middle of the padding. No, the beginning of the padding. "int3" will push the return address on the stack, so when it points to the second 'int3' instruction, it's because the first one triggered. Linus

Re: [PATCH v6 2/2] leds: lm3601x: Introduce the lm3601x LED driver

2018-05-15 Thread Andy Shevchenko
On Wed, May 16, 2018 at 1:24 AM, Andy Shevchenko wrote: > On Wed, May 16, 2018 at 1:08 AM, Dan Murphy wrote: >> On 05/15/2018 04:56 PM, Andy Shevchenko wrote: +static const struct lm3601x_max_timeouts strobe_timeouts[] = { + { 4, 0x00 }, + { 8, 0x01 }, +

Re: [lkp-robot] [x86/asm] 51bad67ffb: int3:#[##]

2018-05-15 Thread Thomas Gleixner
On Tue, 15 May 2018, Josh Poimboeuf wrote: > On Wed, May 16, 2018 at 12:43:37AM +0300, Alexey Dobriyan wrote: > > On Tue, May 15, 2018 at 09:25:53PM +, Anvin, H Peter wrote: > > > Why is that a problem? > > > Code: 00 00 00 eb e6 cc cc cc cc cc cc cc cc cc cc cc cc cc fa 8d b6 00 > > > 00 00 0

Re: [lkp-robot] [x86/asm] 51bad67ffb: int3:#[##]

2018-05-15 Thread Thomas Gleixner
On Wed, 16 May 2018, Alexey Dobriyan wrote: > On Tue, May 15, 2018 at 09:25:53PM +, Anvin, H Peter wrote: > > Why is that a problem? > > Code: 00 00 00 eb e6 cc cc cc cc cc cc cc cc cc cc cc cc cc fa 8d b6 00 00 > > 00 00 e8 5d e8 8f ff 8b 44 24 34 83 e0 03 83 f8 03 72 28 cc cc > > cc c

Re: [PATCH v4 2/3] random: Return nbytes filled from hw RNG

2018-05-15 Thread Tobin C. Harding
On Tue, May 15, 2018 at 05:35:46PM -0400, Steven Rostedt wrote: > On Wed, 16 May 2018 07:17:06 +1000 > "Tobin C. Harding" wrote: > > > > > -void get_random_bytes_arch(void *buf, int nbytes) > > > > +int __must_check get_random_bytes_arch(void *buf, int nbytes) > > > > { > > > > char *p =

Re: linux-next 20180515 - ACPI disabled..

2018-05-15 Thread valdis . kletnieks
On Tue, 15 May 2018 15:49:15 -0600, Al Stone said: > Not off-hand. Could you please send me a copy of > /sys/firmware/acpi/tables/APIC cat /sys/firmware/acpi/tables/APIC | od -x 000 5041 4349 0072 3903 4544 4c4c 2020 020 4243 3358 2020 0020 2009 0107 4d41 2049 040 0013 0001 000

Re: [PATCH v6 2/2] leds: lm3601x: Introduce the lm3601x LED driver

2018-05-15 Thread Andy Shevchenko
On Wed, May 16, 2018 at 1:08 AM, Dan Murphy wrote: > On 05/15/2018 04:56 PM, Andy Shevchenko wrote: >> On Tue, May 15, 2018 at 6:43 PM, Dan Murphy wrote: >>> + depends on LEDS_CLASS && I2C && OF >> >> What is OF specific in this driver? > > as3645a_led_class_setup has a "of" dependency So

[PATCHv3] arm64: dts: stratix10: Add QSPI support for Stratix10

2018-05-15 Thread thor . thayer
From: Thor Thayer Add qspi_clock The qspi_clk frequency is updated by U-Boot before starting Linux. Add QSPI interface node. Add QSPI flash memory child node. Setup the QSPI memory in 2 partitions. Signed-off-by: Thor Thayer --- v2 s/_/-/ in qspi-clk rename flash node. use partit

Re: [PATCH v2 3/6] dt-bindings: clock: mediatek: add entry for Mali-450 node to refer

2018-05-15 Thread Stephen Boyd
Quoting sean.w...@mediatek.com (2018-04-27 01:14:44) > From: Sean Wang > > Just add binding for a required clock referenced by Mali-450 on MT7623 > or MT2701 SoC. > > Cc: devicet...@vger.kernel.org > Signed-off-by: Sean Wang > --- Applied to clk-next

<    1   2   3   4   5   6   7   8   9   10   >