[PATCH] arm64: use generic free_initrd_mem()

2019-09-16 Thread Mike Rapoport
From: Mike Rapoport arm64 calls memblock_free() for the initrd area in its implementation of free_initrd_mem(), but this call has no actual effect that late in the boot process. By the time initrd is freed, all the reserved memory is managed by the page allocator and the memblock.reserved is

RE: [PATCH 0/2] nvme: Add kernel API for admin command

2019-09-16 Thread Baldyga, Robert
On Fri, Sep 13, 2019 at 04:37:09PM +0200, Christoph Hellwig wrote: > On Fri, Sep 13, 2019 at 01:16:08PM +0200, Robert Baldyga wrote: > > Hello, > > > > This patchset adds two functions providing kernel to kernel API > > for submiting NVMe admin commands. This is for use of NVMe-aware > > block

Re: [PATCH 1/1] MAINTAINERS: update FORCEDETH MAINTAINERS info

2019-09-16 Thread David Miller
From: rain.1986.08...@gmail.com Date: Fri, 13 Sep 2019 21:43:45 +0800 > From: Rain River > > Many FORCEDETH NICs are used in our hosts. Several bugs are fixed and > some features are developed for FORCEDETH NICs. And I have been > reviewing patches for FORCEDETH NIC for several months. Mark me

[PATCH] KVM: X86: Fix warning in handle_desc

2019-09-16 Thread Wanpeng Li
From: Wanpeng Li Reported by syzkaller: WARNING: CPU: 0 PID: 6544 at /home/kernel/data/kvm/arch/x86/kvm//vmx/vmx.c:4689 handle_desc+0x37/0x40 [kvm_intel] CPU: 0 PID: 6544 Comm: a.out Tainted: G OE 5.3.0-rc4+ #4 RIP: 0010:handle_desc+0x37/0x40 [kvm_intel]

Re: [Patch V9 6/8] arm64: tegra: Enable xudc on Jetson TX1

2019-09-16 Thread Chunfeng Yun
On Fri, 2019-09-13 at 11:37 +0530, Nagarjuna Kristam wrote: > Enable XUSB device mode driver for USB0 slot on Jetson TX1. > > Signed-off-by: Nagarjuna Kristam > Reviewed-by: JC Kuo > --- > arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 31 > +- > 1 file changed, 30

Re: [PATCH net] net: stmmac: Hold rtnl lock in suspend/resume callbacks

2019-09-16 Thread David Miller
From: Jose Abreu Date: Fri, 13 Sep 2019 11:50:32 +0200 > We need to hold rnl lock in suspend and resume callbacks because phylink > requires it. Otherwise we will get a WARN() in suspend and resume. > > Also, move phylink start and stop callbacks to inside device's internal > lock so that we

[PATCH v3 2/3] spi: introduce spi_delay struct as "value + unit" & spi_delay_exec()

2019-09-16 Thread Alexandru Ardelean
There are plenty of delays that have been introduced in SPI core. Most of them are in micro-seconds, some need to be in nano-seconds, and some in clock-cycles. For some of these delays (related to transfers & CS timing) it may make sense to have a `spi_delay` struct that abstracts these a bit.

Re: [Patch V9 3/8] phy: tegra: xusb: Add vbus override support on Tegra210

2019-09-16 Thread Chunfeng Yun
On Fri, 2019-09-13 at 11:37 +0530, Nagarjuna Kristam wrote: > Tegra XUSB device control driver needs to control vbus override > during its operations, add API for the support. > > Signed-off-by: Nagarjuna Kristam > Acked-by: Thierry Reding > --- > drivers/phy/tegra/xusb-tegra210.c | 57 >

[PATCH v3 0/3] spi: introduce `struct spi_delay` data-type

2019-09-16 Thread Alexandru Ardelean
Discussion reference: https://lore.kernel.org/lkml/20190913114550.956-1-alexandru.ardel...@analog.com/ This changeset introduces an `spi_delay` struct/data-type and makes the IIO ADIS driver library the first user of this. The patchset base is Jonathan's `iio/togreg` branch, but it also

[PATCH v3 3/3] spi: make `cs_change_delay` the first user of the `spi_delay` logic

2019-09-16 Thread Alexandru Ardelean
Since the logic for `spi_delay` struct + `spi_delay_exec()` has been copied from the `cs_change_delay` logic, it's natural to make this delay, the first user. The `cs_change_delay` logic requires that the default remain 10 uS, in case it is unspecified/unconfigured. So, there is some special

[PATCH v3 1/3] spi: move `cs_change_delay` backwards compat logic outside switch

2019-09-16 Thread Alexandru Ardelean
The `cs_change_delay` backwards compatibility value could be moved outside of the switch statement. The only reason to do it, is to make the next patches easier to diff. Signed-off-by: Alexandru Ardelean --- drivers/spi/spi.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-)

Re: [PATCH 01/13] nvdimm: Use more typical whitespace

2019-09-16 Thread Christoph Hellwig
On Thu, Sep 12, 2019 at 08:01:45AM -0700, Joe Perches wrote: > On Thu, 2019-09-12 at 05:17 -0700, Christoph Hellwig wrote: > > Instead of arguing what is better just stick to what the surrounding > > code does. > > That's not always feasible nor readable. > > Especially for the logic inversion

Re: [PATCH] qed: fix spelling mistake "fullill" -> "fulfill"

2019-09-16 Thread David Miller
From: Colin King Date: Fri, 13 Sep 2019 10:07:59 +0100 > From: Colin Ian King > > There is a spelling mistake in a DP_VERBOSE debug message. Fix it. > (Using American English spelling as this is the most common way > to spell this in the kernel). > > Signed-off-by: Colin Ian King Applied to

Re: [PATCH net-next] net: dsa: b53: Add support for port_egress_floods callback

2019-09-16 Thread David Miller
From: Florian Fainelli Date: Thu, 12 Sep 2019 20:28:39 -0700 > Add support for configuring the per-port egress flooding control for > both Unicast and Multicast traffic. > > Signed-off-by: Florian Fainelli Applied with comment typo fixed.

[PATCH v3] net: stmmac: socfpga: re-use the `interface` parameter from platform data

2019-09-16 Thread Alexandru Ardelean
The socfpga sub-driver defines an `interface` field in the `socfpga_dwmac` struct and parses it on init. The shared `stmmac_probe_config_dt()` function also parses this from the device-tree and makes it available on the returned `plat_data` (which is the same data available via `netdev_priv()`).

Re: [Ksummit-discuss] [PATCH v2 3/3] libnvdimm, MAINTAINERS: Maintainer Entry Profile

2019-09-16 Thread Dan Carpenter
On Fri, Sep 13, 2019 at 05:44:39PM -0400, Martin K. Petersen wrote: > One pet peeve I have is that people are pretty bad at indicating the > intended target tree. I often ask for it in private mail but the > practice doesn't seem to stick. I spend a ton of time guessing whether a > patch is a fix

Re: [PATCH v2] net: stmmac: socfpga: re-use the `interface` parameter from platform data

2019-09-16 Thread Ardelean, Alexandru
On Sun, 2019-09-15 at 19:51 +0100, David Miller wrote: > [External] > > From: Alexandru Ardelean > Date: Thu, 12 Sep 2019 16:28:50 +0300 > > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c > > b/drivers/net/ethernet/stmicro/stmmac/dwmac- > > socfpga.c > > index

Build regressions/improvements in v5.3

2019-09-16 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v5.3[1] compared to v5.2[2]. Summarized: - build errors: +6/-1 - build warnings: +122/-131 JFYI, when comparing v5.3[1] to v5.3-rc8[3], the summaries are: - build errors: +0/-0 - build warnings: +50/-50 Happy fixing!

Re: [PATCH v2 4/4] iio: imu: adis: convert cs_change_delay to spi_delay struct

2019-09-16 Thread Ardelean, Alexandru
On Sun, 2019-09-15 at 11:14 +0100, Jonathan Cameron wrote: > [External] > > On Fri, 13 Sep 2019 14:55:49 +0300 > Alexandru Ardelean wrote: > > > The ADIS library is one of the few users of the new `cs_change_delay` > > parameter for an spi_transfer. > > > > The introduction of the `spi_delay`

Re: [PATCH 2/2] nvme: add API for getting nsid by bdev

2019-09-16 Thread kbuild test robot
-Baldyga/nvme-Add-kernel-API-for-admin-command/20190916-134358 config: sparc64-allmodconfig (attached as .config) compiler: sparc64-linux-gcc (GCC) 7.4.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross

Re: [RFC PATCH 0/2] Add support for SBI version to 0.2

2019-09-16 Thread h...@infradead.org
On Fri, Sep 13, 2019 at 08:54:27AM -0700, Palmer Dabbelt wrote: > On Tue, Sep 3, 2019 at 12:38 AM h...@infradead.org wrote: > > > On Fri, Aug 30, 2019 at 11:13:25PM +, Atish Patra wrote: > > > If I understood you clearly, you want to call it legacy in the spec and > > > just say v0.1

[PATCH v2] sched: fix migration to invalid cpu in __set_cpus_allowed_ptr

2019-09-16 Thread KeMeng Shi
Oops occur when running qemu on arm64: Unable to handle kernel paging request at virtual address 08effe40 Internal error: Oops: 9607 [#1] SMP Process migration/0 (pid: 12, stack limit = 0x084e3736) pstate: 2085 (nzCv daIf -PAN -UAO) pc :

Re: [PATCH 2/2] dt-bindings: net: dwmac: document 'mac-mode' property

2019-09-16 Thread Ardelean, Alexandru
On Fri, 2019-09-13 at 15:36 +0100, Rob Herring wrote: > [External] > > On Fri, Sep 06, 2019 at 04:02:56PM +0300, Alexandru Ardelean wrote: > > This change documents the 'mac-mode' property that was introduced in the > > 'stmmac' driver to support passive mode converters that can sit in-between >

Re: [PATCH v4 2/2] net: phy: adin: implement Energy Detect Powerdown mode via phy-tunable

2019-09-16 Thread Ardelean, Alexandru
On Sun, 2019-09-15 at 08:11 -0700, Florian Fainelli wrote: > [External] > > > > On 9/14/2019 8:29 AM, Andrew Lunn wrote: > > On Thu, Sep 12, 2019 at 07:28:12PM +0300, Alexandru Ardelean wrote: > > > > > +static int adin_set_edpd(struct phy_device *phydev, u16 tx_interval) > > > +{ > > > + u16

[PATCH v2 2/2] powerpc/83xx: map IMMR with a BAT.

2019-09-16 Thread Christophe Leroy
On mpc83xx with a QE, IMMR is 2Mbytes and aligned on 2Mbytes boundarie. On mpc83xx without a QE, IMMR is 1Mbyte and 1Mbyte aligned. Each driver will map a part of it to access the registers it needs. Some drivers will map the same part of IMMR as other drivers. In order to reduce TLB misses, map

[PATCH v2 1/2] powerpc/32s: automatically allocate BAT in setbat()

2019-09-16 Thread Christophe Leroy
If no BAT is given to setbat(), select an available BAT. Signed-off-by: Christophe Leroy --- v2: no change --- arch/powerpc/mm/book3s32/mmu.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/mm/book3s32/mmu.c b/arch/powerpc/mm/book3s32/mmu.c index

Re: [PATCH] serial/sifive: select SERIAL_EARLYCON

2019-09-16 Thread Christoph Hellwig
On Fri, Sep 13, 2019 at 01:40:27PM -0700, Palmer Dabbelt wrote: > OpenEmbedded passes "earlycon=sbi", which I can find in the doumentation. > I can't find anything about just "earlycon". I've sent a patch adding sbi > to the list of earlycon arguments. earlycon without arguments is

Re: [PATCH] mm/hotplug: Reorder memblock_[free|remove]() calls in try_remove_memory()

2019-09-16 Thread Mike Rapoport
On Mon, Sep 16, 2019 at 11:17:37AM +0530, Anshuman Khandual wrote: > In add_memory_resource() the memory range to be hot added first gets into > the memblock via memblock_add() before arch_add_memory() is called on it. > Reverse sequence should be followed during memory hot removal which already >

Re: [PATCH 1/2] nvme: add API for sending admin commands by bdev

2019-09-16 Thread kbuild test robot
/Robert-Baldyga/nvme-Add-kernel-API-for-admin-command/20190916-134358 config: sparc64-allmodconfig (attached as .config) compiler: sparc64-linux-gcc (GCC) 7.4.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x

Re: [PATCH] media: v4l: cadence: Fix how unsued lanes are handled in 'csi2rx_start()'

2019-09-16 Thread Dan Carpenter
On Fri, Sep 13, 2019 at 09:57:09AM +0200, Maxime Ripard wrote: > Hi Christophe, > > On Thu, Sep 12, 2019 at 10:44:50PM +0200, Christophe JAILLET wrote: > > The 2nd parameter of 'find_first_zero_bit()' is a number of bits, not of > > bytes. So use 'BITS_PER_LONG' instead of 'sizeof(lanes_used)'. >

Re: Linux 5.3-rc8

2019-09-16 Thread Willy Tarreau
On Sun, Sep 15, 2019 at 10:02:02PM -0700, Linus Torvalds wrote: > On Sun, Sep 15, 2019 at 9:30 PM Willy Tarreau wrote: > > > > I'd be in favor of adding in the man page something like "this > > random source is only suitable for applications which will not be > > harmed by getting a predictable

[PATCH v2 2/2] mm: Add a bounds check in devm_memremap_pages()

2019-09-16 Thread Alastair D'Silva
From: Alastair D'Silva The call to check_hotplug_memory_addressable() validates that the memory is fully addressable. Without this call, it is possible that we may remap pages that is not physically addressable, resulting in bogus section numbers being returned from __section_nr().

[PATCH v5] gpio/mpc8xxx: change irq handler from chained to normal

2019-09-16 Thread Hui Song
From: Song Hui More than one gpio controllers can share one interrupt, change the driver to request shared irq. Signed-off-by: Laurentiu Tudor Signed-off-by: Alex Marginean Signed-off-by: Song Hui --- Changes in v5: - add traverse every bit function. Changes in v4: - convert

[PATCH v2 1/2] memory_hotplug: Add a bounds check to check_hotplug_memory_range()

2019-09-16 Thread Alastair D'Silva
From: Alastair D'Silva On PowerPC, the address ranges allocated to OpenCAPI LPC memory are allocated from firmware. These address ranges may be higher than what older kernels permit, as we increased the maximum permissable address in commit 4ffe713b7587 ("powerpc/mm: Increase the max addressable

Re: [PATCH 4.9 00/14] 4.9.193-stable review

2019-09-16 Thread Greg Kroah-Hartman
On Sun, Sep 15, 2019 at 09:09:24AM -0700, Guenter Roeck wrote: > On 9/15/19 5:58 AM, Greg Kroah-Hartman wrote: > > On Sat, Sep 14, 2019 at 05:49:32PM -0700, Guenter Roeck wrote: > > > Hi Greg, > > > > > > On 9/14/19 1:31 AM, Greg Kroah-Hartman wrote: > > > > On Sat, Sep 14, 2019 at 01:28:39AM

[PATCH v2 0/2] Add bounds check for Hotplugged memory

2019-09-16 Thread Alastair D'Silva
From: Alastair D'Silva This series adds bounds checks for hotplugged memory, ensuring that it is within the physically addressable range (for platforms that define MAX_(POSSIBLE_)PHYSMEM_BITS. This allows for early failure, rather than attempting to access bogus section numbers. Changelog:

<    4   5   6   7   8   9