Re: [PATCH v2 00/20] i.MX6, DesignWare PCI improvements

2019-02-19 Thread Lorenzo Pieralisi
On Thu, Feb 14, 2019 at 04:59:04PM -0800, Andrey Smirnov wrote: [...] > Lorenzo, can you apply the dwc specific patches that are already > reviewed by Gustavo Pimentel from this series, to keep things moving > while we are waiting on Lucas? I can also spin them out into a > separate series if tha

Re: [PATCH 1/3] dt-bindings: dmaengine: Add one new cell to present hardware slave id

2019-02-19 Thread Vinod Koul
On 19-02-19, 17:49, Baolin Wang wrote: > Hi Geert, > > On Tue, 19 Feb 2019 at 17:30, Geert Uytterhoeven wrote: > > > > Hi Baolin, > > > > On Tue, Feb 19, 2019 at 4:15 AM Baolin Wang wrote: > > > On Mon, 18 Feb 2019 at 20:23, Arnd Bergmann wrote: > > > > On Mon, Feb 18, 2019 at 11:52 AM Baolin W

Re: [LKP] [driver core] 570d020012: will-it-scale.per_thread_ops -12.2% regression

2019-02-19 Thread Greg Kroah-Hartman
On Tue, Feb 19, 2019 at 08:59:45AM +0800, Wei Yang wrote: > On Mon, Feb 18, 2019 at 03:54:42PM +0800, kernel test robot wrote: > >Greeting, > > > >FYI, we noticed a -12.2% regression of will-it-scale.per_thread_ops due to > >commit: > > > > > >commit: 570d0200123fb4f809aa2f6226e93a458d664d70 ("dri

[PATCH] hwrng: bcm2835 - fix probe as platform device

2019-02-19 Thread Jonas Gorski
BCM63XX (MIPS) does not use device tree, so there cannot be any of_device_id, causing the driver to fail on probe: [0.904564] bcm2835-rng: probe of bcm63xx-rng failed with error -22 Fix this by checking for match data only if we are probing from device tree. Fixes: 8705f24f7b57 ("hwrng: bcm2

Re: ext4 corruption on alpha with 4.20.0-09062-gd8372ba8ce28

2019-02-19 Thread Meelis Roos
The result of the bisection is [88dbcbb3a4847f5e6dfeae952d3105497700c128] blkdev: avoid migration stalls for blkdev pages Is that result relevant for the problem or should I continue bisecting between 4.20.0 and the so far first bad commit? Can you try reverting the commit and see if it makes

Re: [PATCH v10 1/3] dmaengine: 8250_mtk_dma: add MediaTek uart DMA support

2019-02-19 Thread Vinod Koul
On 14-02-19, 10:44, Long Cheng wrote: > On Mon, 2019-02-04 at 12:51 +0530, Vinod Koul wrote: > > > +static int mtk_uart_apdma_device_pause(struct dma_chan *chan) > > > +{ > > > + /* just for check caps pass */ > > > + return 0; > > > +} > > > > please remove, this is not a mandatory fn > > Can't

[PATCH] drm/imx: fix resource leak of struct drm_display_mode mode

2019-02-19 Thread Colin King
From: Colin Ian King Currently when the call to of_get_drm_display_mode fails the error return path does not free an earlier allocated struct drm_display_mode, causing a memory leak. Fix this by kfree'ing mode before returning. Fixes: 76ecd9c9fb24 ("drm/imx: parallel-display: check return code f

Re: [RFT/RFC][PATCH] driver core: Fix PM-runtime for links added during consumer probe

2019-02-19 Thread Ulf Hansson
On Mon, 18 Feb 2019 at 23:09, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > Commit 4c06c4e6cf63 ("driver core: Fix possible supplier PM-usage > counter imbalance") introduced a regression that causes suppliers > to be suspended prematurely for device links added during consumer > drive

overdue payment

2019-02-19 Thread First Commercial Bank London

Re: [PATCH] sched/x86: Save [ER]FLAGS on context switch

2019-02-19 Thread Peter Zijlstra
On Tue, Feb 19, 2019 at 12:38:42PM +0100, Thomas Gleixner wrote: > On Tue, 19 Feb 2019, Peter Zijlstra wrote: > > > On Tue, Feb 19, 2019 at 10:04:09AM +0100, Peter Zijlstra wrote: > > > > Does that make more sense? > > > > > > It appears to me you're going about it backwards. > > > > So how abou

[PATCH 1/2] platform/x86: intel_cht_int33fe: Provide fwnode for the USB connector

2019-02-19 Thread Heikki Krogerus
In ACPI, and now also in DT, the USB connectors usually have their own device nodes. In case of USB Type-C, those connector (port) nodes are child nodes of the controller or PHY device, in our case the fusb302. The software fwnodes allow us to create a similar child node for fusb302 that represents

Re: [PATCH -next] tpm: change the return type of calc_tpm2_event_size to size_t

2019-02-19 Thread YueHaibing
On 2019/2/19 18:35, Jarkko Sakkinen wrote: > On Tue, Feb 19, 2019 at 05:15:47PM +0800, YueHaibing wrote: >> On 2019/2/19 16:59, Jarkko Sakkinen wrote: >>> On Tue, Feb 19, 2019 at 03:26:18PM +0800, YueHaibing wrote: calc_tpm2_event_size return size of the event which type is size_t, If it

Re: [PATCH] crypto: s5p: update iv after AES op end

2019-02-19 Thread Krzysztof Kozlowski
On Mon, 18 Feb 2019 at 17:01, Kamil Konieczny wrote: > > Fix bug "s5p-sss crypto driver doesn't set next AES-CBC IV". This should > also fix AES-CTR mode. Tested on Odroid U3 with Eric Biggers branch > "iv-out-testing". > > Signed-off-by: Kamil Konieczny > --- > drivers/crypto/s5p-sss.c | 8

[PATCH] crypto: s5p-sss - Use AES_BLOCK_SIZE define instead of number

2019-02-19 Thread Krzysztof Kozlowski
Replace hard coded AES block size with define. Signed-off-by: Krzysztof Kozlowski --- drivers/crypto/s5p-sss.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c index 0064be0e3941..39fc6942364b 100644 --- a/drivers/crypt

Re: [PATCH] powerpc/64s: Fix possible corruption on big endian due to pgd/pud_present()

2019-02-19 Thread Balbir Singh
On Mon, Feb 18, 2019 at 11:49:18AM +1100, Michael Ellerman wrote: > Balbir Singh writes: > > On Sun, Feb 17, 2019 at 07:34:20PM +1100, Michael Ellerman wrote: > >> Balbir Singh writes: > >> > On Sat, Feb 16, 2019 at 08:22:12AM -0600, Segher Boessenkool wrote: > >> >> On Sat, Feb 16, 2019 at 09:55

[PATCH 0/2] platform/x86: intel_cht_int33fe: Start using software nodes

2019-02-19 Thread Heikki Krogerus
Hi guys, The software nodes support node hierarchy. By using them with fusb302 we can add a separate fwnode also for the USB connector as a child of fusb302. We can then use the "standard" USB connector device properties with the connector node, and stop using the deprecated fusb302 specific prope

[PATCH 2/2] platform/x86: intel_cht_int33fe: Create fwnode for max17047

2019-02-19 Thread Heikki Krogerus
Creating a software node for max17047 when ACPI tables don't have a device node for it. While here, moving max17047 handling to its own function. Signed-off-by: Heikki Krogerus --- drivers/platform/x86/intel_cht_int33fe.c | 86 +++- 1 file changed, 53 insertions(+), 33 delet

Re: [RFC PATCH net-next v3 00/21] ethtool netlink interface, part 1

2019-02-19 Thread Michal Kubecek
On Tue, Feb 19, 2019 at 11:35:08AM +0100, Jiri Pirko wrote: > >- some features provided by ethtool would rather belong to devlink (and > > some are already superseded by devlink); however, only few drivers > > provide devlink interface at the moment and as recent discussion on > > flashing revea

[RFC v9 1/5] pstore/blk: new support logger for block devices

2019-02-19 Thread liaoweixiong
pstore_blk is similar to pstore_ram, but dump log to block devices rather than persistent ram. Why should we need pstore_blk? 1. Most embedded intelligent equipment have no persistent ram, which increases costs. We perfer to cheaper solutions, like block devices. In fact, there is already a sample

[RFC v9 5/5] Documentation: pstore/blk: create document for pstore_blk

2019-02-19 Thread liaoweixiong
The document, at Documentation/admin-guide/pstore-block.rst, tells user how to use pstore_blk and the attentions about panic read/write Signed-off-by: liaoweixiong --- Documentation/admin-guide/pstore-block.rst | 233 + MAINTAINERS| 1

[RFC v9 4/5] pstore/blk: support pmsg for pstore block

2019-02-19 Thread liaoweixiong
To enable pmsg, just set pmsg_size when block device register blkzone. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 21 fs/pstore/blkoops.c| 11 ++ fs/pstore/blkzone.c| 254 + include/linux/pstore_blk.h | 1 + 4

[RFC v9 3/5] pstore/blk: add blkoops for pstore_blk

2019-02-19 Thread liaoweixiong
blkoops is a sample for pstore/blk. It can only record oops, excluding panics as no read/write apis for panic registered. It support settings on Kconfg/device tree/module parameters. It can record oops log even power failure if "PSTORE_BLKOOPS_BLKDEV" on Kconfig or "block-device" on dts or "blkdev"

[RFC v9 2/5] dt-bindings: pstore-block: new support for blkoops

2019-02-19 Thread liaoweixiong
Create DT binding document for blkoops. Signed-off-by: liaoweixiong --- .../devicetree/bindings/pstore/blkoops.txt | 53 ++ MAINTAINERS| 1 + 2 files changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindin

[RFC v9 0/5] pstore/block: new support logger for block devices

2019-02-19 Thread liaoweixiong
Why should we need pstore_block? 1. Most embedded intelligent equipment have no persistent ram, which increases costs. We perfer to cheaper solutions, like block devices. In fast, there is already a sample for block device logger in driver MTD (drivers/mtd/mtdoops.c). 2. Do not any equipment have b

Applied "regulator: stpmic1: Add active discharge support" to the regulator tree

2019-02-19 Thread Mark Brown
The patch regulator: stpmic1: Add active discharge support has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Applied "regulator: stpmic1: Use regulator mode definition from bindings" to the regulator tree

2019-02-19 Thread Mark Brown
The patch regulator: stpmic1: Use regulator mode definition from bindings has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Applied "dt-bindings: regulator: Add active discharge support for stpmic1" to the regulator tree

2019-02-19 Thread Mark Brown
The patch dt-bindings: regulator: Add active discharge support for stpmic1 has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in th

Applied "dt-bindings: regulator: remove interrupt-parent description on stpmic1" to the regulator tree

2019-02-19 Thread Mark Brown
The patch dt-bindings: regulator: remove interrupt-parent description on stpmic1 has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime

Applied "regulator: stpmic1: Simplify regulators registration" to the regulator tree

2019-02-19 Thread Mark Brown
The patch regulator: stpmic1: Simplify regulators registration has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 ho

Applied "regulator: stpmic1: Change buck1 voltage range" to the regulator tree

2019-02-19 Thread Mark Brown
The patch regulator: stpmic1: Change buck1 voltage range has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) a

Applied "SoC: imx-sgtl5000: add missing put_device()" to the asoc tree

2019-02-19 Thread Mark Brown
The patch SoC: imx-sgtl5000: add missing put_device() has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to L

Applied "dt-bindings: regulator: remove regulator pull-down support for stpmic1" to the regulator tree

2019-02-19 Thread Mark Brown
The patch dt-bindings: regulator: remove regulator pull-down support for stpmic1 has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime

Applied "regulator: stpmic1: Remove support for regulator pull down" to the regulator tree

2019-02-19 Thread Mark Brown
The patch regulator: stpmic1: Remove support for regulator pull down has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

Applied "regulator: core: Drop lockdep annotation in drms_uA_update()" to the regulator tree

2019-02-19 Thread Mark Brown
The patch regulator: core: Drop lockdep annotation in drms_uA_update() has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the ne

Re: [PATCH] perf/core: use strndup_user() instead of buggy open-coded version

2019-02-19 Thread Masami Hiramatsu
On Mon, 18 Feb 2019 23:07:23 +0100 Jann Horn wrote: > The first version of this method was missing the check for > `ret == PATH_MAX`; then such a check was added, but it didn't call kfree() > on error, so there was still a small memory leak in the error case. > Fix it by using strndup_user() inst

RE: [PATCH v4 3/3] scsi: ufs-bsg: Allow reading descriptors

2019-02-19 Thread Avri Altman
> Avri, > > > Is there any reason why this sires is not applied for 5.1? > > I haven't had time to review it yet. I'll get there... A kind reminder. Thanks, Avri > > -- > Martin K. PetersenOracle Linux Engineering

[PATCH][udf-next] udf: don't call mark_buffer_dirty on a null bh pointer

2019-02-19 Thread Colin King
From: Colin Ian King There is a null check on the pointer bh to avoid a null pointer dereference on bh->b_data however later bh is passed to mark_buffer_dirty that can also cause a null pointer dereference on bh. Avoid this potential null pointer dereference by moving the call to mark_buffer_dir

[PATCH 1/2] spi: sifive: Add DT documentation for SiFive SPI controller

2019-02-19 Thread Yash Shah
DT documentation for SPI controller added. Signed-off-by: Palmer Dabbelt Signed-off-by: Emil Renner Berthing Signed-off-by: Yash Shah --- .../devicetree/bindings/spi/spi-sifive.txt | 37 ++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetre

[PATCH 2/2] spi: sifive: Add driver for the SiFive SPI controller

2019-02-19 Thread Yash Shah
Add driver for the SiFive SPI controller on the HiFive Unleashed board. Signed-off-by: Palmer Dabbelt Signed-off-by: Emil Renner Berthing Signed-off-by: Yash Shah --- drivers/spi/Kconfig | 6 + drivers/spi/Makefile | 1 + drivers/spi/spi-sifive.c | 450

[PATCH 0/2] SPI support for HiFive Unleashed

2019-02-19 Thread Yash Shah
This patch series adds a SPI driver and DT documentation for HiFive Unleashed board. Yash Shah (2): spi: sifive: Add DT documentation for SiFive SPI controller spi: sifive: Add driver for the SiFive SPI controller .../devicetree/bindings/spi/spi-sifive.txt | 37 ++ drivers/spi/Kconf

Re: [PATCH] sched/x86: Save [ER]FLAGS on context switch

2019-02-19 Thread Thomas Gleixner
On Tue, 19 Feb 2019, Peter Zijlstra wrote: > On Tue, Feb 19, 2019 at 10:04:09AM +0100, Peter Zijlstra wrote: > > > Does that make more sense? > > > > It appears to me you're going about it backwards. > > So how about you do a GCC plugin that verifies limits on code-gen > between user_access_begi

Re: [RFC PATCH] docs/memory-barriers.txt: Rewrite "KERNEL I/O BARRIER EFFECTS" section

2019-02-19 Thread Will Deacon
On Tue, Feb 19, 2019 at 12:31:50PM +0100, Arnd Bergmann wrote: > On Tue, Feb 19, 2019 at 11:27 AM Thomas Petazzoni > wrote: > > On Mon, 18 Feb 2019 21:37:25 +0100 > > Arnd Bergmann wrote: > > > > > Ah, it seems we actually do that on 32-bit ARM, at least on one platform, > > > see 6a02734d420f ("

Re: [RFC PATCH net-next v3 12/21] ethtool: provide permanent hardware address in GET_INFO request

2019-02-19 Thread Michal Kubecek
On Tue, Feb 19, 2019 at 11:24:00AM +0100, Jiri Pirko wrote: > Mon, Feb 18, 2019 at 07:22:24PM CET, mkube...@suse.cz wrote: > >Add information about permanent hadware address of a device (as provided by > >ETHTOOL_GPERMADDR ioctl command) in GET_INFO reply if ETH_INFO_IM_PERMADDR > >flag is set in t

Re: [PATCH] arm64/neon: Disable -Wincompatible-pointer-types when building with Clang

2019-02-19 Thread Ard Biesheuvel
On Tue, 19 Feb 2019 at 12:19, Greg KH wrote: > > On Tue, Feb 19, 2019 at 11:35:12AM +0100, Ard Biesheuvel wrote: > > On Fri, 15 Feb 2019 at 20:45, Ard Biesheuvel > > wrote: > > > > > > On Fri, 15 Feb 2019 at 20:43, Nick Desaulniers > > > wrote: > > > > > > > > On Fri, Feb 15, 2019 at 11:28 AM

Re: [RFC PATCH] docs/memory-barriers.txt: Rewrite "KERNEL I/O BARRIER EFFECTS" section

2019-02-19 Thread Will Deacon
Hi Thomas, On Tue, Feb 19, 2019 at 11:27:47AM +0100, Thomas Petazzoni wrote: > On Mon, 18 Feb 2019 21:37:25 +0100 > Arnd Bergmann wrote: > > > > > I would say we should strengthen the behavior of outX() where possible. > > > > I don't know if arm64 actually has a way of doing that, my understand

Re: [RFC PATCH] docs/memory-barriers.txt: Rewrite "KERNEL I/O BARRIER EFFECTS" section

2019-02-19 Thread Arnd Bergmann
On Tue, Feb 19, 2019 at 11:27 AM Thomas Petazzoni wrote: > On Mon, 18 Feb 2019 21:37:25 +0100 > Arnd Bergmann wrote: > > > Ah, it seems we actually do that on 32-bit ARM, at least on one platform, > > see 6a02734d420f ("ARM: mvebu: map PCI I/O regions strongly ordered") > > and prior commits. > >

Re: [PATCH v2 00/10] Add support for usb on Hikey960

2019-02-19 Thread Valentin Schneider
On 19/02/2019 01:34, Chen Yu wrote: [...] > This patch set based on Heikki Krogerus's patches. > Have you applied https://do-db2.lkml.org/lkml/2019/2/13/106 first? > And these configs should be set to y: > CONFIG_TYPEC > CONFIG_TYPEC_TCPM > CONFIG_TYPEC_TCPCI > CONFIG_TYPEC_

Re: [PATCHv6 3/4] pci: layerscape: Add the EP mode support.

2019-02-19 Thread Lorenzo Pieralisi
On Tue, Jan 22, 2019 at 02:33:27PM +0800, Xiaowei Bao wrote: > Add the PCIe EP mode support for layerscape platform. > > Signed-off-by: Xiaowei Bao > Reviewed-by: Minghuan Lian > Reviewed-by: Zhiqiang Hou > Reviewed-by: Kishon Vijay Abraham I > --- > depends on: https://patchwork.kernel.org/pr

Re: [EXT] Re: [PATCH v2 3/8] net: thunderx: make CFG_DONE message to run through generic send-ack sequence

2019-02-19 Thread Vadim Lomovtsev
Hi David, On Mon, Feb 18, 2019 at 03:33:10PM -0800, David Miller wrote: > From: Vadim Lomovtsev > Date: Mon, 18 Feb 2019 09:52:14 + > > > @@ -169,6 +169,20 @@ static int nicvf_check_pf_ready(struct nicvf *nic) > > return 1; > > } > > > > +static int nicvf_send_cfg_done(struct nicvf *n

Re: [PATCH] arm64/neon: Disable -Wincompatible-pointer-types when building with Clang

2019-02-19 Thread Greg KH
On Tue, Feb 19, 2019 at 11:35:12AM +0100, Ard Biesheuvel wrote: > On Fri, 15 Feb 2019 at 20:45, Ard Biesheuvel > wrote: > > > > On Fri, 15 Feb 2019 at 20:43, Nick Desaulniers > > wrote: > > > > > > On Fri, Feb 15, 2019 at 11:28 AM Ard Biesheuvel > > > wrote: > > > > > > > > On Fri, 15 Feb 2019

Re: linux-next: build failure after merge of the asm-generic tree

2019-02-19 Thread Hugo Lefeuvre
> I'm not sending a pull request for this if it breaks any architectures, > so I think we need to fix them all, and I suppose we also have to > change all architectures in the same patch that changes the architecture > independent declaration, so it doesn't break intermittently. > > At this point,

Re: [PATCH] PCI: qcom: Don't deassert reset GPIO during probe

2019-02-19 Thread Lorenzo Pieralisi
On Mon, Feb 18, 2019 at 09:16:03PM -0800, Bjorn Andersson wrote: > On Wed 13 Feb 07:23 PST 2019, Lorenzo Pieralisi wrote: > > > On Fri, Jan 25, 2019 at 03:26:16PM -0800, Bjorn Andersson wrote: > > > Acquiring the reset GPIO low means that reset is being deasserted, this > > > is followed almost im

Re: MT76x2U crashes XHCI driver on AMD Ryzen system

2019-02-19 Thread Stanislaw Gruszka
On Mon, Feb 18, 2019 at 05:01:59PM +, Robin Murphy wrote: > On 18/02/2019 14:37, Stanislaw Gruszka wrote: > [...] > >Another issue is that dma_map_sg() & dma_map_page() may require some > >constraints. I'm not sure about that and I want to clarify that with > >CCed mm maintainers. I think DMA d

Re: [PATCH v6 9/9] vsprintf: Avoid confusion between invalid address and value

2019-02-19 Thread Andy Shevchenko
On Tue, Feb 19, 2019 at 5:07 AM Sergey Senozhatsky wrote: > Suppose, in my driver I want to sprintf() IPv4 address. The longest > possible address is 3 * 4 (%d%d%d) + 3 bytes (dots) + terminating NULL. > E.g. 111.111.111.111 > > So I can allocate a 16-bytes buffer (stack or slab) and accidentally

RE: [PATCH v4] irqchip: gicv3-its: Use NUMA aware memory allocation for ITS tables

2019-02-19 Thread Shameerali Kolothum Thodi
Hi Marc, A gentle reminder on this one... Thanks, Shameer > -Original Message- > From: Linuxarm [mailto:linuxarm-boun...@huawei.com] On Behalf Of Shameer > Kolothum > Sent: 14 January 2019 09:50 > To: marc.zyng...@arm.com; linux-kernel@vger.kernel.org > Cc: gkulka...@marvell.com; suzuki.

Re: [PATCH v2 14/20] mm: Make hibernate handle unmapped pages

2019-02-19 Thread Borislav Petkov
On Mon, Jan 28, 2019 at 04:34:16PM -0800, Rick Edgecombe wrote: > For architectures with CONFIG_ARCH_HAS_SET_ALIAS, pages can be unmapped > briefly on the directmap, even when CONFIG_DEBUG_PAGEALLOC is not > configured. So this changes kernel_map_pages and kernel_page_present to be s/this changes/

Re: [PATCH v6 8/9] vsprintf: Prevent crash when dereferencing invalid pointers

2019-02-19 Thread Andy Shevchenko
On Tue, Feb 19, 2019 at 5:35 AM Sergey Senozhatsky wrote: > On (02/08/19 16:23), Petr Mladek wrote: > Hmm... So the assumption here is that the target buffer always has > at least strlen("(efault)") bytes and, thus, we always can write the > error message to it. Same assumption as for pointers,

[RFC] pinctrl/amd: Clear interrupt enable bits on probe

2019-02-19 Thread Leonard Crestez
My Acer Nitro 5 AN515-42 laptop with a Ryzen 2700U hangs on boot because of spurious interrupts from pinctrl-amd. This seems to happen because the touchpad interrupt is enabled on boot in "level" mode and there is no way to clear it until a touchpad driver probes. Fix by disabling all gpio interr

Re: [PATCH 1/6] lib/string: Enable string selftesting

2019-02-19 Thread Andy Shevchenko
On Tue, Feb 19, 2019 at 4:44 AM Tobin C. Harding wrote: > > Currently we have a test module but it is not tied into the kselftest > infrastructure. In preparation for adding string manipulation functions > and testing we should enable kselftest to utilize the test module. > > Enable string testin

[PATCH] ARC: [plat-hsdk]: Enable AXI DW DMAC support

2019-02-19 Thread Eugeniy Paltsev
Signed-off-by: Eugeniy Paltsev --- NOTE: Even if this patch have no logical dependency with gpu-enabling-patch (http://patchwork.ozlabs.org/patch/1034722/) gpu-enabling-patch should be applied first to avoid rebasing. arch/arc/boot/dts/hsdk.dts | 27 +++ arch/a

[PATCH v2] cfi: fix deadloop in cfi_cmdset_0002.c do_write_buffer

2019-02-19 Thread Liu Jian
In function do_write_buffer(), in the for loop, there is a case chip_ready() returns 1 while chip_good() returns 0, so it never break the loop. To fix this, chip_good() is enough and it should timeout if it stay bad for a while. Fixes: dfeae1073583 ("mtd: cfi_cmdset_0002: Change write buffer to ch

Re: [PATCH] doc: cgroup: correct the wrong information about measure of memory pressure

2019-02-19 Thread 禹舟键
Hi TeJun I've built the 5.0.0-rc6 kernel with psi option, but I cannot find any cgroup.controllers when I mounted cgroup2. [root@bogon /]# uname -r [root@bogon /]# 5.0.0-rc6+ [root@bogon /]# mount -t cgroup2 none cgroup2/ [root@bogon /]# cat cgroup2/cgroup.controllers [root@bogon /] [root@bogon /]

Re: [RFC PATCH net-next v3 00/21] ethtool netlink interface, part 1

2019-02-19 Thread Jiri Pirko
Mon, Feb 18, 2019 at 07:21:24PM CET, mkube...@suse.cz wrote: >Note: this is marked as RFC because it's rather late in the cycle; the plan >is to make a regular submission (with changes based on review) once >net-next reopens after the 5.1 merge window. The full (work in progress) >series, together

[PATCH] MAINTAINERS: Remove deceptive "See below" from the "Odd Fixes" description

2019-02-19 Thread Thomas Huth
When reading the "See below" here, I'd expect to find some further description of "Odd Fixes" a little bit later in the file. However, as far as I can see, there is no further description available. Thus let's simply remove these deceptive two words. Signed-off-by: Thomas Huth --- Please double-

Re: [PATCH 6/8] regulator: stpmic1: Change buck1 voltage range

2019-02-19 Thread Mark Brown
On Tue, Feb 19, 2019 at 10:04:34AM +, Pascal PAILLET-LME wrote: > Change buck1 voltage range to be conform with the data-sheet. This is a bug fix so it should've gone at the start of the series to make it easier to apply and send to Linus as a fix. signature.asc Description: PGP signature

Re: [PATCH] arm64/neon: Disable -Wincompatible-pointer-types when building with Clang

2019-02-19 Thread Ard Biesheuvel
On Fri, 15 Feb 2019 at 20:45, Ard Biesheuvel wrote: > > On Fri, 15 Feb 2019 at 20:43, Nick Desaulniers > wrote: > > > > On Fri, Feb 15, 2019 at 11:28 AM Ard Biesheuvel > > wrote: > > > > > > On Fri, 15 Feb 2019 at 20:25, Nick Desaulniers > > > wrote: > > > > > > > > On Fri, Feb 15, 2019 at 11

Re: [PATCH -next] tpm: change the return type of calc_tpm2_event_size to size_t

2019-02-19 Thread Jarkko Sakkinen
On Tue, Feb 19, 2019 at 05:15:47PM +0800, YueHaibing wrote: > On 2019/2/19 16:59, Jarkko Sakkinen wrote: > > On Tue, Feb 19, 2019 at 03:26:18PM +0800, YueHaibing wrote: > >> calc_tpm2_event_size return size of the event which type is > >> size_t, If it is an invalid event, returns 0. And all the >

[PATCH v6 18/18] asm-generic/tlb: Remove tlb_table_flush()

2019-02-19 Thread Peter Zijlstra
There are no external users of this API (nor should there be); remove it. Acked-by: Will Deacon Signed-off-by: Peter Zijlstra (Intel) --- include/asm-generic/tlb.h |1 - mm/mmu_gather.c | 34 +- 2 files changed, 17 insertions(+), 18 deletions(-)

[PATCH v6 10/18] sh/tlb: Convert SH to generic mmu_gather

2019-02-19 Thread Peter Zijlstra
Generic mmu_gather provides everything SH needs (range tracking and cache coherency). Cc: Will Deacon Cc: "Aneesh Kumar K.V" Cc: Andrew Morton Cc: Nick Piggin Cc: Yoshinori Sato Cc: Rich Felker Signed-off-by: Peter Zijlstra (Intel) --- arch/sh/include/asm/pgalloc.h |7 ++ arch/sh/inclu

[PATCH v6 13/18] asm-generic/tlb: Introduce HAVE_MMU_GATHER_NO_GATHER

2019-02-19 Thread Peter Zijlstra
Add the Kconfig option HAVE_MMU_GATHER_NO_GATHER to the generic mmu_gather code. If the option is set the mmu_gather will not track individual pages for delayed page free anymore. A platform that enables the option needs to provide its own implementation of the __tlb_remove_page_size function to fr

[PATCH v6 04/18] asm-generic/tlb: Provide generic tlb_flush() based on flush_tlb_range()

2019-02-19 Thread Peter Zijlstra
Provide a generic tlb_flush() implementation that relies on flush_tlb_range(). This is a little awkward because flush_tlb_range() assumes a VMA for range invalidation, but we no longer have one. Audit of all flush_tlb_range() implementations shows only vma->vm_mm and vma->vm_flags are used, and of

[PATCH v6 11/18] um/tlb: Convert to generic mmu_gather

2019-02-19 Thread Peter Zijlstra
Generic mmu_gather provides the simple flush_tlb_range() based range tracking mmu_gather UM needs. Cc: Will Deacon Cc: "Aneesh Kumar K.V" Cc: Andrew Morton Cc: Nick Piggin Cc: Richard Weinberger Signed-off-by: Peter Zijlstra (Intel) --- arch/um/include/asm/tlb.h | 156 -

[PATCH v6 17/18] asm-generic/tlb: Remove tlb_flush_mmu_free()

2019-02-19 Thread Peter Zijlstra
As the comment notes; it is a potentially dangerous operation. Just use tlb_flush_mmu(), that will skip the (double) TLB invalidate if it really isn't needed anyway. Acked-by: Will Deacon Signed-off-by: Peter Zijlstra (Intel) --- include/asm-generic/tlb.h | 10 +++--- mm/memory.c

[PATCH v6 12/18] arch/tlb: Clean up simple architectures

2019-02-19 Thread Peter Zijlstra
For the architectures that do not implement their own tlb_flush() but do already use the generic mmu_gather, there are two options: 1) the platform has an efficient flush_tlb_range() and asm-generic/tlb.h doesn't need any overrides at all. 2) the platform lacks an efficient flush_tlb_range(

[PATCH v6 09/18] ia64/tlb: Conver to generic mmu_gather

2019-02-19 Thread Peter Zijlstra
Generic mmu_gather provides everything ia64 needs (range tracking). Cc: Will Deacon Cc: "Aneesh Kumar K.V" Cc: Andrew Morton Cc: Nick Piggin Cc: Tony Luck Signed-off-by: Peter Zijlstra (Intel) --- arch/ia64/include/asm/tlb.h | 256 --- arch/ia64/inc

[PATCH v6 01/18] asm-generic/tlb: Provide a comment

2019-02-19 Thread Peter Zijlstra
Write a comment explaining some of this.. Cc: Nick Piggin Cc: Andrew Morton Cc: "Aneesh Kumar K.V" Acked-by: Will Deacon Signed-off-by: Peter Zijlstra (Intel) --- include/asm-generic/tlb.h | 119 -- 1 file changed, 116 insertions(+), 3 deletions(-

[PATCH v6 15/18] asm-generic/tlb: Remove arch_tlb*_mmu()

2019-02-19 Thread Peter Zijlstra
Now that all architectures are converted to the generic code, remove the arch hooks. Acked-by: Will Deacon Signed-off-by: Peter Zijlstra (Intel) --- mm/mmu_gather.c | 93 +--- 1 file changed, 42 insertions(+), 51 deletions(-) --- a/mm/mmu_g

Re: [RFC PATCH net-next v3 12/21] ethtool: provide permanent hardware address in GET_INFO request

2019-02-19 Thread Jiri Pirko
Mon, Feb 18, 2019 at 07:22:24PM CET, mkube...@suse.cz wrote: >Add information about permanent hadware address of a device (as provided by >ETHTOOL_GPERMADDR ioctl command) in GET_INFO reply if ETH_INFO_IM_PERMADDR >flag is set in the request. > >There is no separate attribute for hardware address l

[PATCH v6 14/18] s390/tlb: convert to generic mmu_gather

2019-02-19 Thread Peter Zijlstra
Cc: heiko.carst...@de.ibm.com Cc: npig...@gmail.com Cc: a...@linux-foundation.org Cc: aneesh.ku...@linux.vnet.ibm.com Cc: will.dea...@arm.com Cc: Linus Torvalds Cc: li...@armlinux.org.uk Signed-off-by: Martin Schwidefsky Signed-off-by: Peter Zijlstra (Intel) Link: http://lkml.kernel.org/r/2018

[PATCH v6 05/18] asm-generic/tlb: Provide generic tlb_flush() based on flush_tlb_mm()

2019-02-19 Thread Peter Zijlstra
When an architecture does not have (an efficient) flush_tlb_range(), but instead always uses full TLB invalidates, the current generic tlb_flush() is sub-optimal, for it will generate extra flushes in order to keep the range small. But if we cannot do range flushes, that is a moot concern. Optiona

[PATCH v6 03/18] asm-generic/tlb: Provide generic VIPT cache flush

2019-02-19 Thread Peter Zijlstra
The one obvious thing SH and ARM want is a sensible default for tlb_start_vma(). (also: https://lkml.org/lkml/2004/1/15/6 ) Avoid all VIPT architectures providing their own tlb_start_vma() implementation and rely on architectures to provide a no-op flush_cache_range() when it is not relevant. The

[PATCH v6 00/18] generic mmu_gather patches

2019-02-19 Thread Peter Zijlstra
Hi all, Sorry I haven't posted these in a while, I sorta forgot about them for a little. Not much changed since last time; one change to the ARM patch as suggested by Will and a fresh Changelog for patch 12 as requested by Vineet. And some trivial rebasing of the s390 bits. They've sat in my que

[PATCH v6 16/18] asm-generic/tlb: Remove HAVE_GENERIC_MMU_GATHER

2019-02-19 Thread Peter Zijlstra
Since all architectures are now using it, it is redundant. Acked-by: Will Deacon Signed-off-by: Peter Zijlstra (Intel) --- include/asm-generic/tlb.h |1 - mm/mmu_gather.c |4 2 files changed, 5 deletions(-) --- a/include/asm-generic/tlb.h +++ b/include/asm-generic/tlb.h

[PATCH v6 07/18] asm-generic/tlb: Invert HAVE_RCU_TABLE_INVALIDATE

2019-02-19 Thread Peter Zijlstra
Make issuing a TLB invalidate for page-table pages the normal case. The reason is twofold: - too many invalidates is safer than too few, - most architectures use the linux page-tables natively and would thus require this. Make it an opt-out, instead of an opt-in. Acked-by: Will Deacon Sig

[PATCH v6 06/18] asm-generic/tlb: Conditionally provide tlb_migrate_finish()

2019-02-19 Thread Peter Zijlstra
Needed for ia64 -- alternatively we drop the entire hook. Cc: Will Deacon Cc: "Aneesh Kumar K.V" Cc: Andrew Morton Cc: Nick Piggin Signed-off-by: Peter Zijlstra (Intel) --- include/asm-generic/tlb.h |2 ++ 1 file changed, 2 insertions(+) --- a/include/asm-generic/tlb.h +++ b/include/asm

Re: [RFC PATCH] scsi: fix oops in scsi_uninit_cmd()

2019-02-19 Thread Steffen Maier
On 02/19/2019 08:27 AM, Jason Yan wrote: If we remove the scsi disk when running io with fio, oops occured with the following condition. [scsi_eh_0] [fio] scsi_end_request ->blk_update_request ->end_bio(io returned to userspace)

[PATCH v6 02/18] asm-generic/tlb: Provide HAVE_MMU_GATHER_PAGE_SIZE

2019-02-19 Thread Peter Zijlstra
Move the mmu_gather::page_size things into the generic code instead of powerpc specific bits. Cc: Nick Piggin Cc: "Aneesh Kumar K.V" Cc: Andrew Morton Acked-by: Will Deacon Signed-off-by: Peter Zijlstra (Intel) --- arch/Kconfig |3 +++ arch/arm/include/asm/tlb.h |

[PATCH v6 08/18] arm/tlb: Convert to generic mmu_gather

2019-02-19 Thread Peter Zijlstra
Generic mmu_gather provides everything that ARM needs: - range tracking - RCU table free - VM_EXEC tracking - VIPT cache flushing The one notable curiosity is the 'funny' range tracking for classical ARM in __pte_free_tlb(). Cc: Nick Piggin Cc: "Aneesh Kumar K.V" Cc: Andrew Morton Cc: Rus

From Michelle

2019-02-19 Thread Michelle
Hallo Schatz, ich hoffe, es ist alles gut mit dir und deine Familie? Ich habe eine wichtige Vereinbarung mit Ihnen zu besprechen Bitte antworten Sie mir umgehend. Danke dir Michelle

Re: [RFC PATCH] docs/memory-barriers.txt: Rewrite "KERNEL I/O BARRIER EFFECTS" section

2019-02-19 Thread Thomas Petazzoni
Hello, On Mon, 18 Feb 2019 21:37:25 +0100 Arnd Bergmann wrote: > > > I would say we should strengthen the behavior of outX() where possible. > > > I don't know if arm64 actually has a way of doing that, my understanding > > > earlier was that the AXI bus was already posted, so there is not much

Re: [PATCH V4 1/2] cpufreq: Allow light-weight tear down and bring up of CPUs

2019-02-19 Thread Rafael J. Wysocki
On Tuesday, February 12, 2019 12:06:04 PM CET Viresh Kumar wrote: > The cpufreq core doesn't remove the cpufreq policy anymore on CPU > offline operation, rather that happens when the CPU device gets > unregistered from the kernel. This allows faster recovery when the CPU > comes back online. This

Re: [PATCH v3] PM / suspend: measure the time of filesystem syncing

2019-02-19 Thread Rafael J. Wysocki
On Thursday, February 14, 2019 12:15:43 PM CET Harry Pan wrote: > This patch gives the reader an intuitive metric of the time cost by > the kernel issuing a filesystem sync during suspend; although developer > can guess by the timestamp of next log or enable the ftrace power event > for manual calc

Re: [RFT/RFC][PATCH] driver core: Fix PM-runtime for links added during consumer probe

2019-02-19 Thread Jon Hunter
On 18/02/2019 22:08, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Commit 4c06c4e6cf63 ("driver core: Fix possible supplier PM-usage > counter imbalance") introduced a regression that causes suppliers > to be suspended prematurely for device links added during consumer > driver probe i

Re: [PATCH] cpufreq: Replace double NOT (!!) with single NOT (!)

2019-02-19 Thread Rafael J. Wysocki
On Thursday, February 14, 2019 11:46:21 AM CET Viresh Kumar wrote: > Double NOT (!!) operation is normally done to convert a non-zero value > to 1 and keep zero as is, but that isn't the requirement in this case. > All we wanted was to make sure that only one of the two routines isn't > set, i.e. e

Re: [PATCH] cpufreq: scmi: fix use-after-free in scmi_cpufreq_exit()

2019-02-19 Thread Rafael J. Wysocki
On Monday, February 18, 2019 5:53:30 AM CET Viresh Kumar wrote: > On 16-02-19, 11:31, Yangtao Li wrote: > > This issue was detected with the help of Coccinelle. So > > change the order of function calls to fix it. > > > > Fixes: 1690d8bb91e37 (cpufreq: scpi/scmi: Fix freeing of dynamic OPPs) > >

huge fsync latencies for a small file on ext4

2019-02-19 Thread stummala
Hi, I am observing huge fsync latencies for a small file under the below test scenario - process A - Issue async write of 4GB using dd command (say large_file) on /data mounted with ext4: dd if=/dev/zero of=/data/testfile bs=1M count=4096 process B - In parallel another process wrote a smal

Re: [PATCH 1/2] PM / Domains: Mark "name" const in genpd_dev_pm_attach_by_name()

2019-02-19 Thread Rafael J. Wysocki
On Thursday, February 14, 2019 7:12:48 PM CET Douglas Anderson wrote: > The genpd_dev_pm_attach_by_name() simply takes the name and passes it > to of_property_match_string() where the argument is "const char *". > Adding a const here allows a later patch to add a const to > dev_pm_domain_attach_by_

Re: [PATCH v4] staging: nrf24: add new driver for 2.4GHz radio transceiver

2019-02-19 Thread Greg Kroah-Hartman
On Wed, Feb 13, 2019 at 08:40:35PM +0100, Marcin Ciupak wrote: > This patch adds driver for Nordic Semiconductor nRF24L01+ radio > transceiver. > > Signed-off-by: Marcin Ciupak > --- > Changes in v2: > - add terminating newlines to all logging formats > Changes in v3: > - patch subject > -

[PATCH v6 2/4] Input: goodix - Add regulators suppot

2019-02-19 Thread Jagan Teki
Goodix CTP controllers require AVDD28, VDDIO regulators for power-on sequence. The delay between these regualtor operations as per Power-on Timing from datasheet[1] is 0 (T1 >= 0 usec). So, enable and disable these regulators in proper order using normal regulator functions without any delay in b

[PATCH v6 3/4] dt-bindings: input: touchscreen: goodix: Add GT5663 compatible

2019-02-19 Thread Jagan Teki
GT5663 is capacitive touch controller with customized smart wakeup gestures, it support chipdata which is similar to existing GT1151 and require AVDD28 supply for some boards. Document the compatible for the same. Signed-off-by: Jagan Teki Reviewed-by: Rob Herring --- Documentation/devicetree/

<    4   5   6   7   8   9   10   11   >