Re: [PATCH] bpf: decrease usercnt if bpf_map_new_fd() fails in bpf_map_get_fd_by_id()

2019-02-26 Thread Martin Lau
On Tue, Feb 26, 2019 at 10:15:37PM +0800, zerons wrote: > [ Upstream commit c91951f15978f1a0c6b65f063d30f7ea7bc6fb42 ] > > In bpf/syscall.c, bpf_map_get_fd_by_id() use bpf_map_inc_not_zero() to > increase > the refcount, both map->refcnt and map->usercnt. Then, if bpf_map_new_fd() > fails, > sho

Re: [PATCH v10 00/12] arm64: untag user pointers passed to the kernel

2019-02-26 Thread Dave Hansen
On 2/26/19 9:18 AM, Andrey Konovalov wrote: >> This seems like something >> where we would ideally add an __tagged annotation (or something) to the >> source tree and then have sparse rules that can look for missed untags. > This has been suggested before, search for __untagged here [1]. > However

Re: [PATCH 4.9 00/63] 4.9.161-stable review

2019-02-26 Thread Guenter Roeck
On Mon, Feb 25, 2019 at 10:11:00PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.161 release. > There are 63 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH] clk: qcom: gcc-sdm845: Define parent of PCIe PIPE clocks

2019-02-26 Thread Stephen Boyd
Quoting Bjorn Andersson (2019-02-25 23:02:21) > The PCIe PIPE clock in the GCC is fed by the PIPE clock coming from the > PHY, describe this relationship. > > Signed-off-by: Bjorn Andersson > --- Applied to clk-next

Re: [PATCH] watchdog: smsc37b787_wdt: Mark expected switch fall-through

2019-02-26 Thread Gustavo A. R. Silva
On 2/18/19 10:08 AM, Guenter Roeck wrote: > On 2/14/19 12:16 PM, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wimplicit-fallthrough, mark switch >> cases where we are expecting to fall through. >> >> This patch fixes the following warning: >> >> drivers/watchdog/smsc37b787_wdt.c: In

Re: [PATCH] soc: fsl: guts: make fsl_guts_get_svr() static

2019-02-26 Thread Li Yang
On Fri, Feb 22, 2019 at 2:09 AM Y.b. Lu wrote: > > > > > -Original Message- > > From: Horia Geantă > > Sent: Thursday, February 21, 2019 6:38 PM > > To: Leo Li > > Cc: Y.b. Lu ; linuxppc-...@lists.ozlabs.org; > > linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org > > Subj

Re: [PATCH] watchdog: smsc37b787_wdt: Mark expected switch fall-through

2019-02-26 Thread Guenter Roeck
On Tue, Feb 26, 2019 at 11:42:06AM -0600, Gustavo A. R. Silva wrote: > > > On 2/18/19 10:08 AM, Guenter Roeck wrote: > > On 2/14/19 12:16 PM, Gustavo A. R. Silva wrote: > >> In preparation to enabling -Wimplicit-fallthrough, mark switch > >> cases where we are expecting to fall through. > >> > >>

[PATCH] f2fs: give random value to i_generation

2019-02-26 Thread Jaegeuk Kim
This follows to give random number to i_generation along with commit 232530680290b ("ext4: improve smp scalability for inode generation") This can be used for DUN for UFS HW encryption. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 2 -- fs/f2fs/namei.c | 3 ++- fs/f2fs/super.c | 1 - 3 file

Re: [PATCH v4 00/12] Mediatek MT8183 clock and scpsys support

2019-02-26 Thread Stephen Boyd
Quoting Weiyi Lu (2019-02-25 20:00:50) > On Thu, 2019-02-21 at 23:48 -0800, Stephen Boyd wrote: > > Quoting Matthias Brugger (2019-02-21 00:36:24) > > > > > > > > > On 20/02/2019 20:18, Stephen Boyd wrote: > > > > > > > > What's the merge plan here? Do you want me to apply these patches to clk >

Re: [PATCH 4.14 00/71] 4.14.104-stable review

2019-02-26 Thread Guenter Roeck
On Mon, Feb 25, 2019 at 10:11:02PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.104 release. > There are 71 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

Re: [PATCH] watchdog: pc87413: Mark expected switch fall-through

2019-02-26 Thread Gustavo A. R. Silva
Hi all, Friendly ping: Who can take this? Thanks -- Gustavo On 2/18/19 11:50 AM, Gustavo A. R. Silva wrote: > > > On 2/18/19 10:09 AM, Guenter Roeck wrote: >> On 2/14/19 12:26 PM, Gustavo A. R. Silva wrote: >>> In preparation to enabling -Wimplicit-fallthrough, mark switch >>> cases where we

Re: [PATCH] Bluetooth: hci_bcm: fix double-free irq on removal

2019-02-26 Thread Andreas Kemnade
Hi Marcel, On Tue, 26 Feb 2019 09:53:27 +0100 Marcel Holtmann wrote: > Hi Andreas, > > > after rmmod hci_uart a warning about doubly freed > > interrupts appears, so do it only once. Instead disable it. > > It is already implicitely freed by the devm framework. > > > > [ 230.782948] -

Re: [PATCH 4.19 000/152] 4.19.26-stable review

2019-02-26 Thread Guenter Roeck
On Mon, Feb 25, 2019 at 10:09:52PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.26 release. > There are 152 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

Re: [PATCH] watchdog: sc1200: Mark expected switch fall-through

2019-02-26 Thread Gustavo A. R. Silva
On 2/18/19 10:08 AM, Guenter Roeck wrote: > On 2/14/19 12:20 PM, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wimplicit-fallthrough, mark switch >> cases where we are expecting to fall through. >> >> This patch fixes the following warning: >> >> drivers/watchdog/sc1200wdt.c: In func

Re: [PATCHv2 0/2] Independent SOCFPGA SDRAM EDAC config

2019-02-26 Thread Borislav Petkov
On Tue, Feb 26, 2019 at 08:59:43AM -0600, Dinh Nguyen wrote: > If you don't mind, I'll take the defconfig patch to avoid any conflicts. Ok, thanks. Applied the first one. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.

Re: [PATCH 4.20 000/183] 4.20.13-stable review

2019-02-26 Thread Guenter Roeck
On Mon, Feb 25, 2019 at 10:09:33PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.20.13 release. > There are 183 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

Re: [PATCH v7 21/23] block: Avoid that flushing triggers a lockdep complaint

2019-02-26 Thread Bart Van Assche
On Tue, 2019-02-26 at 18:24 +0100, Peter Zijlstra wrote: > On Thu, Feb 14, 2019 at 03:00:56PM -0800, Bart Van Assche wrote: > > @@ -472,7 +473,8 @@ struct blk_flush_queue *blk_alloc_flush_queue(struct > > request_queue *q, > > if (!fq) > > goto fail; > > > > - spin_lock_init(&f

Re: [PATCH v11 0/8] PM / Domains: Support hierarchical CPU arrangement (PSCI/ARM)

2019-02-26 Thread Rafael J. Wysocki
On Tue, Feb 26, 2019 at 3:55 PM Ulf Hansson wrote: > > Changes in v11: > - This version contains only the infrastructure changes that is needed for > deployment. The PSCI/ARM changes have also been updated and tested, but I will > post them separately. Still, to provide completeness, I have publi

Re: [PATCH v4 08/12] clk: mediatek: Add MT8183 clock support

2019-02-26 Thread Stephen Boyd
Quoting Weiyi Lu (2019-02-01 00:30:12) > diff --git a/drivers/clk/mediatek/clk-mt8183.c > b/drivers/clk/mediatek/clk-mt8183.c > new file mode 100644 > index ..e9de9fe774ca > --- /dev/null > +++ b/drivers/clk/mediatek/clk-mt8183.c > @@ -0,0 +1,1285 @@ > +// SPDX-License-Identifier: GPL-

Re: [PATCH v4 0/3] Mark clocks as critical for MT6797

2019-02-26 Thread Stephen Boyd
Quoting Matthias Brugger (2019-02-26 04:59:44) > > > On 14/02/2019 17:30, matthias@kernel.org wrote: > > From: Matthias Brugger > > > > Jasper send this series some month ago. As there was no reaction from > > his side, I'll do a friendly take-over. > > I tested the patches on my Helios X20

Re: [PATCH] mm/hotplug: fix an imbalance with DEBUG_PAGEALLOC

2019-02-26 Thread Qian Cai
On Tue, 2019-02-26 at 15:23 +0100, Michal Hocko wrote: > On Tue 26-02-19 09:16:30, Qian Cai wrote: > > > > > > On 2/26/19 7:35 AM, Michal Hocko wrote: > > > On Mon 25-02-19 14:17:10, Qian Cai wrote: > > > > When onlining memory pages, it calls kernel_unmap_linear_page(), > > > > However, it does

Re: [PATCH v4 1/3] clk: mediatek: Add MUX_FLAGS macro

2019-02-26 Thread Stephen Boyd
Quoting matthias@kernel.org (2019-02-14 08:32:18) > From: Jasper Mattsson > > This is required to mark outputs of certain MUXes as CLK_IS_CRITICAL. > > Signed-off-by: Jasper Mattsson > Acked-by: Mars Cheng > Signed-off-by: Matthias Brugger > --- Applied to clk-next

Re: [PATCH v4 2/3] clk: mediatek: Add flags to mtk_gate

2019-02-26 Thread Stephen Boyd
Quoting matthias@kernel.org (2019-02-14 08:32:30) > From: Jasper Mattsson > > This is required to mark gates as CLK_IS_CRITICAL. > > Signed-off-by: Jasper Mattsson > Acked-by: Mars Cheng > Signed-off-by: Matthias Brugger > --- Applied to clk-next

Re: [PATCH] watchdog: pc87413: Mark expected switch fall-through

2019-02-26 Thread Guenter Roeck
On Tue, Feb 26, 2019 at 11:46:09AM -0600, Gustavo A. R. Silva wrote: > Hi all, > > Friendly ping: > > Who can take this? > Wim, presumably. Guenter > Thanks > -- > Gustavo > > > On 2/18/19 11:50 AM, Gustavo A. R. Silva wrote: > > > > > > On 2/18/19 10:09 AM, Guenter Roeck wrote: > >> On 2/

Re: [PATCH v4 3/3] clk: mediatek: Mark bus and DRAM related clocks as critical

2019-02-26 Thread Stephen Boyd
Quoting matthias@kernel.org (2019-02-14 08:32:42) > From: Jasper Mattsson > > Currently, DRAM-related clocks are not marked with CLK_IS_CRITICAL > for MT6797. This causes memory corruption when the system is > booted without clk_ignore_unused. > This patch marks MUX ddrphycfg_sel as well as g

Re: [f2fs-dev] [PATCH] f2fs: don't clear CP_QUOTA_NEED_FSCK_FLAG

2019-02-26 Thread Jaegeuk Kim
On 02/22, Chao Yu wrote: > On 2019/2/22 10:40, Jaegeuk Kim wrote: > > On 02/20, Chao Yu wrote: > >> On 2019/2/20 15:25, Chao Yu wrote: > >>> On 2019/2/20 15:08, Jaegeuk Kim wrote: > On 02/18, Chao Yu wrote: > > On 2019/2/16 12:55, Jaegeuk Kim wrote: > >> On 02/13, Chao Yu wrote: >

Re: [PATCH 1/4] dt-bindings: nvmem: Add STM32 factory-programmed romem

2019-02-26 Thread Rob Herring
On Tue, Feb 26, 2019 at 3:14 AM Fabrice Gasnier wrote: > > On 2/25/19 5:53 PM, Rob Herring wrote: > > On Wed, Jan 30, 2019 at 05:38:53PM +0100, Fabrice Gasnier wrote: > >> Add documentation for STMicroelectronics STM32 Factory-programmed > >> read only memory area. > >> > >> Signed-off-by: Fabrice

[PATCH] watchdog: sbc60xxwdt: Mark expected switch fall-through

2019-02-26 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/watchdog/sbc60xxwdt.c: In function ‘fop_ioctl’: drivers/watchdog/sbc60xxwdt.c:272:3: warning: this statement may fall through [-Wimplicit-f

Re: [PATCH V2 1/2] clk: imx8mq: add GPIO clocks to clock tree

2019-02-26 Thread Stephen Boyd
Quoting Anson Huang (2019-02-22 19:19:03) > i.MX8MQ has clock gate for each GPIO bank, add them > into clock tree for GPIO driver to manage. > > Signed-off-by: Anson Huang > --- > No change since V1, just drop 1 patch from V1 patch series. This doesn't apply to clk-imx branch or clk-next. Please

[PATCH] watchdog: sc520_wdt: Mark expected switch fall-through

2019-02-26 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/watchdog/sc520_wdt.c: In function ‘fop_ioctl’: drivers/watchdog/sc520_wdt.c:326:3: warning: this statement may fall through [-Wimplicit-fal

Re: [PATCH 1/2] dt-bindings: usb-xhci: Add usb-phy-port-reset property

2019-02-26 Thread Rob Herring
On Mon, Feb 25, 2019 at 10:57 PM Srinath Mannam wrote: > > Hi Rob, > Thanks for the review, Please see my comments below in line. > > Regards, > Srinath. > On Tue, Feb 26, 2019 at 3:08 AM Rob Herring wrote: > > > > On Tue, Feb 05, 2019 at 11:48:53AM +0530, Srinath Mannam wrote: > > > Add usb-phy-

Re: [PATCH v6 0/6] Add ARMv8.3 pointer authentication for kvm guest

2019-02-26 Thread James Morse
Hi Amit, On 19/02/2019 09:24, Amit Daniel Kachhap wrote: > This patch series adds pointer authentication support for KVM guest and > is based on top of Linux 5.0-rc6. The basic patches in this series was > originally posted by Mark Rutland earlier[1,2] and contains some history > of this work. >

Re: [PATCH v7 21/23] block: Avoid that flushing triggers a lockdep complaint

2019-02-26 Thread Peter Zijlstra
On Fri, Feb 15, 2019 at 10:26:59AM +0800, Ming Lei wrote: > There might be lots of blk_flush_queue instance which is allocated > for each hctx, then lots of class key slot may be wasted. What is 'lots' ? for someone who doesn't really know all that much about the block layer.

Re: [PATCH V7 2/2] clk: imx: scu: add cpu frequency scaling support

2019-02-26 Thread Stephen Boyd
Quoting Anson Huang (2019-02-25 21:17:36) > On NXP's i.MX SoCs with system controller inside, CPU frequency > scaling can ONLY be done by system controller firmware, and it > can ONLY be requested from secure mode, so Linux kernel has to > call ARM SMC to trap to ARM-Trusted-Firmware to request sys

Re: [PATCH v2] clk: imx: Refactor entire sccg pll clk

2019-02-26 Thread Stephen Boyd
Quoting Abel Vesa (2019-02-22 09:07:32) > Make the entire combination of plls to be one single clock. The parents used > for bypasses are specified each as an index in the parents list. > The determine_rate does a lookup throughout all the possible combinations > for all the divs and returns the be

Re: [PATCH] watchdog: pc87413: Mark expected switch fall-through

2019-02-26 Thread Gustavo A. R. Silva
On 2/26/19 11:55 AM, Guenter Roeck wrote: > On Tue, Feb 26, 2019 at 11:46:09AM -0600, Gustavo A. R. Silva wrote: >> Hi all, >> >> Friendly ping: >> >> Who can take this? >> > Wim, presumably. > Oh OK. Hopefully, he'll notice this thread soon. Thanks -- Gustavo > Guenter > >> Thanks >> -- >

Re: [PATCH] bpf: decrease usercnt if bpf_map_new_fd() fails in bpf_map_get_fd_by_id()

2019-02-26 Thread Daniel Borkmann
On 02/26/2019 06:33 PM, Martin Lau wrote: > On Tue, Feb 26, 2019 at 10:15:37PM +0800, zerons wrote: >> [ Upstream commit c91951f15978f1a0c6b65f063d30f7ea7bc6fb42 ] >> >> In bpf/syscall.c, bpf_map_get_fd_by_id() use bpf_map_inc_not_zero() to >> increase >> the refcount, both map->refcnt and map->us

Re: [PATCH v2 0/3] Ensure inX() is ordered wrt delay() routines

2019-02-26 Thread Palmer Dabbelt
On Fri, 22 Feb 2019 10:04:51 PST (-0800), Will Deacon wrote: Hi all, This is version two of the patches I previously posted here: https://lore.kernel.org/lkml/20190211174544.4302-1-will.dea...@arm.com/T/#u Changes since v2 include: * Incorporate riscv changes from Palmer * Update macro

Re: [PATCH v4 3/7] s390: ap: associate a ap_vfio_queue and a matrix mdev

2019-02-26 Thread Tony Krowiak
On 2/22/19 10:29 AM, Pierre Morel wrote: We need to associate the ap_vfio_queue, which will hold the per queue information for interrupt with a matrix mediated device which hold the configuration and the way to the CRYCB. Let's do this when assigning a APID or a APQI to the mediated device and c

Re: [RFC PATCH 3/5] mtd: Add support for Hyperbus memory devices

2019-02-26 Thread Sergei Shtylyov
On 02/19/2019 09:36 AM, Vignesh R (by way of Boris Brezillon ) wrote: > Cypress HyperBus is Low Signal Count, High Performance Double Data Rate Bus > interface between a host system master and one or more slave interfaces. > HyperBus is used to connect microprocessor, microcontroller, or ASIC > d

Re: [PATCH] mm/hotplug: fix an imbalance with DEBUG_PAGEALLOC

2019-02-26 Thread Michal Hocko
On Tue 26-02-19 12:53:05, Qian Cai wrote: > On Tue, 2019-02-26 at 15:23 +0100, Michal Hocko wrote: > > On Tue 26-02-19 09:16:30, Qian Cai wrote: > > > > > > > > > On 2/26/19 7:35 AM, Michal Hocko wrote: > > > > On Mon 25-02-19 14:17:10, Qian Cai wrote: > > > > > When onlining memory pages, it cal

Re: [PATCH v2 2/2] clk: mediatek: correct cpu clock name for MT8173 SoC

2019-02-26 Thread Stephen Boyd
Quoting Seiya Wang (2019-02-24 22:51:12) > Correct cpu clock name from ca57 to ca72 since MT8173 does use cortex-a72. > > Signed-off-by: Seiya Wang > Reviewed-by: Matthias Brugger > Acked-by: Stephen Boyd > --- Applied to clk-next

Re: [PATCH v2 2/2] clk: mediatek: correct cpu clock name for MT8173 SoC

2019-02-26 Thread Stephen Boyd
Quoting Seiya Wang (2019-02-24 22:51:12) > diff --git a/include/dt-bindings/clock/mt8173-clk.h > b/include/dt-bindings/clock/mt8173-clk.h > index 8aea623dd518..76e4e5b65353 100644 > --- a/include/dt-bindings/clock/mt8173-clk.h > +++ b/include/dt-bindings/clock/mt8173-clk.h > @@ -194,7 +194,8 @@ >

Re: [PATCH 4.9 00/63] 4.9.161-stable review

2019-02-26 Thread Guenter Roeck
On Tue, Feb 26, 2019 at 09:41:09AM -0800, Guenter Roeck wrote: > On Mon, Feb 25, 2019 at 10:11:00PM +0100, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.161 release. > > There are 63 patches in this series, all will be posted as a response > > to this one.

[PATCH] powerpc/fsl: Fix the flush of branch predictor.

2019-02-26 Thread Christophe Leroy
The commit identified below adds MC_BTB_FLUSH macro only when CONFIG_PPC_FSL_BOOK3E is defined. This results in the following error on some configs (seen several times with kisskb randconfig_defconfig) arch/powerpc/kernel/exceptions-64e.S:576: Error: Unrecognized opcode: `mc_btb_flush' make[3]: *

Re: [PATCH] mm/hotplug: fix an imbalance with DEBUG_PAGEALLOC

2019-02-26 Thread Michal Hocko
On Tue 26-02-19 19:16:48, Michal Hocko wrote: > On Tue 26-02-19 12:53:05, Qian Cai wrote: > > On Tue, 2019-02-26 at 15:23 +0100, Michal Hocko wrote: > > > On Tue 26-02-19 09:16:30, Qian Cai wrote: > > > > > > > > > > > > On 2/26/19 7:35 AM, Michal Hocko wrote: > > > > > On Mon 25-02-19 14:17:10,

Re: [PATCH-tip v2 00/10] locking/rwsem: Rwsem rearchitecture part 1

2019-02-26 Thread Davidlohr Bueso
On Fri, 15 Feb 2019, Waiman Long wrote: v2: - Sync up to v4 of the part 0 patch. - Remove the rwsem.h->rwsem-xadd.h renaming patch & change patches to modify rwsem.h instead of rwsem-xadd.h. - Add a new patch to micro-optimize rwsem_try_read_lock_unqueued(). This is part 1 of a 3-part (0/

Re: [PATCH] x86, retpolines: raise limit for generating indirect calls from switch-case

2019-02-26 Thread Björn Töpel
On Fri, 22 Feb 2019 at 08:32, Jesper Dangaard Brouer wrote: > > On Thu, 21 Feb 2019 23:19:41 +0100 > Daniel Borkmann wrote: > > > Recent work on XDP from Björn and Magnus additionally found that > > manually transforming the XDP return code switch statement with > > more than 5 cases into if-else

Re: BUG: Bad page state (5)

2019-02-26 Thread Eric Biggers
On Wed, Feb 13, 2019 at 12:23:31PM -0800, Andrew Morton wrote: > On Wed, 13 Feb 2019 09:56:04 -0800 syzbot > wrote: > > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:c4f3ef3eb53f Add linux-next specific files for 20190213 > > git tree: linux-next > > conso

[PATCH v3] Documentation/process/howto: Update for 4.x -> 5.x versioning

2019-02-26 Thread Zenghui Yu
As linux-5.0 is coming up soon, the howto.rst document can be updated for the new kernel version. Instead of changing all 4.x references to 5.x, this time we git rid of all explicit version numbers and rework some kernel trees' name to keep the docs current and real. Signed-off-by: Zenghui Yu ---

Re: [PATCH v4 5/7] s390: ap: implement PAPQ AQIC interception in kernel

2019-02-26 Thread Tony Krowiak
On 2/22/19 10:29 AM, Pierre Morel wrote: We register the AP PQAP instruction hook during the open of the mediated device. And unregister it on release. In the AP PQAP instruction hook, if we receive a demand to enable IRQs, - we retrieve the vfio_ap_queue based on the APQN we receive in REG1,

Re: [RFC PATCH 01/20] asm-generic/mmiowb: Add generic implementation of mmiowb() tracking

2019-02-26 Thread Will Deacon
On Fri, Feb 22, 2019 at 01:55:20PM -0800, Linus Torvalds wrote: > On Fri, Feb 22, 2019 at 1:49 PM Linus Torvalds > wrote: > > > > The case we want to go fast is the spin-lock and unlock case, not the > > "set pending" case. > > > > And the way you implemented this, it's exactly the wrong way aroun

Re: [RFC PATCH 01/20] asm-generic/mmiowb: Add generic implementation of mmiowb() tracking

2019-02-26 Thread Will Deacon
Hi Linus, Thanks for having a look. On Fri, Feb 22, 2019 at 01:49:32PM -0800, Linus Torvalds wrote: > On Fri, Feb 22, 2019 at 10:50 AM Will Deacon wrote: > > > > +#ifndef mmiowb_set_pending > > +static inline void mmiowb_set_pending(void) > > +{ > > + __this_cpu_write(__mmiowb_state.mmiowb

Re: [PATCH v4 6/7] s390: ap: Cleanup on removing the AP device

2019-02-26 Thread Tony Krowiak
On 2/22/19 10:29 AM, Pierre Morel wrote: When the device is remove, we must make sure to clear the interruption and reset the AP device. We also need to clear the CRYCB of the guest. Signed-off-by: Pierre Morel --- drivers/s390/crypto/vfio_ap_drv.c | 35 ++

Re: [RFC PATCH 5/5] mtd: hyperbus: Add driver for TI's Hyperbus memory controller

2019-02-26 Thread Sergei Shtylyov
On 02/19/2019 09:36 AM, Vignesh R (by way of Boris Brezillon ) wrote: > Add driver for Hyperbus memory controller on TI's AM654 SoC. Programming > IP is pretty simple and provides direct memory mapped access to > connected Flash devices. > > Add basic support for the IP without DMA. Second ChipS

Re: [PATCH v6 3/6] arm64/kvm: context-switch ptrauth registers

2019-02-26 Thread James Morse
Hi Amit, On 19/02/2019 09:24, Amit Daniel Kachhap wrote: > From: Mark Rutland > > When pointer authentication is supported, a guest may wish to use it. > This patch adds the necessary KVM infrastructure for this to work, with > a semi-lazy context switch of the pointer auth state. > > Pointer a

Re: Regression: SUNRPC: Use poll() to fix up the socket requeue races

2019-02-26 Thread Tony Lindgren
Hi, * Trond Myklebust [700101 00:00]: > On Mon, 2019-02-25 at 22:27 +, Jon Hunter wrote: > > On 25/02/2019 21:03, Trond Myklebust wrote: > > This is nfsroot. I don't specify any particular NFS version from > > the kernel cmdline, but this is seen with ARM kernel configs > > tegra_defconfig a

Re: [PATCH v6 4/6] arm64/kvm: add a userspace option to enable pointer authentication

2019-02-26 Thread James Morse
Hi Amit, On 19/02/2019 09:24, Amit Daniel Kachhap wrote: > This feature will allow the KVM guest to allow the handling of > pointer authentication instructions or to treat them as undefined > if not set. It uses the existing vcpu API KVM_ARM_VCPU_INIT to > supply this parameter instead of creating

Re: [RFC PATCH 01/20] asm-generic/mmiowb: Add generic implementation of mmiowb() tracking

2019-02-26 Thread Peter Zijlstra
On Tue, Feb 26, 2019 at 06:26:24PM +, Will Deacon wrote: > On Fri, Feb 22, 2019 at 01:49:32PM -0800, Linus Torvalds wrote: > So I *am* using __this_cpu_xchg() here, which means the architecture can > get away with plain old loads and stores (which is what RISC-V does, for > example), but I see

Re: [PATCH v6 5/6] arm64/kvm: control accessibility of ptrauth key registers

2019-02-26 Thread James Morse
Hi Amit, On 19/02/2019 09:24, Amit Daniel Kachhap wrote: > According to userspace settings, ptrauth key registers are conditionally > present in guest system register list based on user specified flag > KVM_ARM_VCPU_PTRAUTH. > > Reset routines still sets these registers to default values but they

[PATCH v2] iov_iter: optimize page_copy_sane()

2019-02-26 Thread Eric Dumazet
Avoid cache line miss dereferencing struct page if we can. page_copy_sane() mostly deals with order-0 pages. Extra cache line miss is visible on TCP recvmsg() calls dealing with GRO packets (typically 45 page frags are attached to one skb). Bringing the 45 struct pages into cpu cache while copyi

[PATCH v5] arm64: Add workaround for Fujitsu A64FX erratum 010001

2019-02-26 Thread James Morse
From: Zhang Lei On the Fujitsu-A64FX cores ver(1.0, 1.1), memory access may cause an undefined fault (Data abort, DFSC=0b11). This fault occurs under a specific hardware condition when a load/store instruction performs an address translation. Any load/store instruction, except non-fault acces

Re: [Qemu-devel] [PATCH] fw_cfg: use __ATTR_RO_MODE to define rev sysfs

2019-02-26 Thread Philippe Mathieu-Daudé
Hi Wei, On 2/26/19 8:31 AM, Wei Yang wrote: > Leverage __ATTR_RO_MODE to define rev sysfs instead of using open code > to define the attribute. > > Signed-off-by: Wei Yang > --- > drivers/firmware/qemu_fw_cfg.c | 13 - > 1 file changed, 4 insertions(+), 9 deletions(-) > > diff --gi

[PATCH net-next 4/6] ethernet: eth: add default vid len for all ehternet kind devices

2019-02-26 Thread Ivan Khoronzhuk
IVDF - individual virtual device filtering. Allows to set per vlan l2 address filters on end real network device (for unicast and for multicast) and drop redundant not expected packet income. If CONFIG_VLAN_8021Q_IVDF is enabled the following changes are applied, and only for ethernet network devi

[PATCH net-next 6/6] net: ethernet: ti: cpsw: add macvlan and ucast/vlan filtering support

2019-02-26 Thread Ivan Khoronzhuk
The cpsw supports unicast filtering as for real as for vlan devices now, but has no flag set for that. As result, once macvlan or vlan adds new ucast address the cpsw is silently toggled to promiscuous mode. That's smth not expected, so patch fixes it. A unicast address for vlan has to be presente

[PATCH net-next 5/6] net: ethernet: ti: cpsw: update mc filtering to use IVDF

2019-02-26 Thread Ivan Khoronzhuk
The cpsw can filter multicast addresses only per vlan. Thus if mcast address is set for one of them or only for real device it must be added for every created vlan consuming ALE table w/o reason. In order to simplify dispatching vlan filters, the IVDF recently added is resused. In case IVDF is dis

[PATCH net-next 1/6] net: core: dev_addr_lists: add VID to device address

2019-02-26 Thread Ivan Khoronzhuk
Despite this is supposed to be used for Ethernet VLANs, not Ethernet addresses with space for VID also can reuse this, so VID is considered as virtual ID extension, not belonging strictly to Ethernet VLAN VIDs, and overall change can be named individual virtual device filtering (IVDF). This patch

[PATCH net-next 0/6] net: add individual virtual device filtering

2019-02-26 Thread Ivan Khoronzhuk
One of the reasons of this proposition is safety and performance - host should not receive traffic which is not designated for it. Some network devices can hold separate address tables for vlans and real device, but for some reason there is no possibility to apply it with generic net addressing sc

Re: [Qemu-devel] [PATCH] fw_cfg: use __ATTR_RO_MODE to define rev sysfs

2019-02-26 Thread Philippe Mathieu-Daudé
On 2/26/19 5:10 PM, Michael S. Tsirkin wrote: > On Tue, Feb 26, 2019 at 03:31:59PM +0800, Wei Yang wrote: >> Leverage __ATTR_RO_MODE to define rev sysfs instead of using open code >> to define the attribute. >> >> Signed-off-by: Wei Yang >> --- >> drivers/firmware/qemu_fw_cfg.c | 13 -

[PATCH net-next 2/6] net: 8021q: vlan_dev: add vid tag to addresses of uc and mc lists

2019-02-26 Thread Ivan Khoronzhuk
Update vlan mc and uc addresses with VID tag while propagating addresses to lower devices, do this only if address is not synced. It allows at end driver level to distinguish addresses belonging to vlan devices. Signed-off-by: Ivan Khoronzhuk --- include/linux/if_vlan.h | 1 + net/8021q/vlan.h

[PATCH net-next 3/6] net: 8021q: vlan_dev: add vid tag for vlan device own address

2019-02-26 Thread Ivan Khoronzhuk
The vlan device address is held separately from uc/mc lists and handled differently. The vlan dev address is bound with real device address only if it's inherited from init, in all other cases it's separate address entry in uc list. With vid set, the address becomes not inherited from real device a

Re: [Qemu-devel] [PATCH] fw_cfg: use __ATTR_RO_MODE to define rev sysfs

2019-02-26 Thread Michael S. Tsirkin
On Tue, Feb 26, 2019 at 07:47:35PM +0100, Philippe Mathieu-Daudé wrote: > On 2/26/19 5:10 PM, Michael S. Tsirkin wrote: > > On Tue, Feb 26, 2019 at 03:31:59PM +0800, Wei Yang wrote: > >> Leverage __ATTR_RO_MODE to define rev sysfs instead of using open code > >> to define the attribute. > >> > >> S

Re: [PATCH 0/14] v2 multi-die/package topology support

2019-02-26 Thread Peter Zijlstra
On Tue, Feb 26, 2019 at 01:19:58AM -0500, Len Brown wrote: > Restored sysfs core_siblings, core_siblings_list > > v1 proposed re-defining this existing attribute to > be the threads in a die, rather than in a package. > > For compatibility, decided rather to keep this > at

Re: [PATCH 0/14] v2 multi-die/package topology support

2019-02-26 Thread Peter Zijlstra
On Tue, Feb 26, 2019 at 01:19:58AM -0500, Len Brown wrote: > Added sysfs package_threads, package_threads_list > > Added this attribute to show threads siblings in a package. > Exactly same as "core_siblings above", a name now deprecated. > This attribute name and definition is i

Re: [RFC PATCH 01/20] asm-generic/mmiowb: Add generic implementation of mmiowb() tracking

2019-02-26 Thread Linus Torvalds
On Tue, Feb 26, 2019 at 10:33 AM Peter Zijlstra wrote: > > Arguably we could fix that for __this_cpu_xchg(), which isn't IRQ-safe. Yeah, I guess x86 _should_ really do __this_cpu_xchg() as just a read-write pair. In general, a read-write pair is probably always the right thing to do, and the onl

Re: [PATCH 0/3] soc: fsl: dpio: enable and configure cache stashing

2019-02-26 Thread Li Yang
On Mon, Feb 25, 2019 at 1:01 AM Ioana Ciornei wrote: > > > Subject: Re: [PATCH 0/3] soc: fsl: dpio: enable and configure cache stashing > > > > From: Ioana Ciornei > > Date: Sat, 23 Feb 2019 08:48:42 + > > > > > The first two patches enable cache stashing and configure the core > > > cluster

Re: [PATCH v2] iov_iter: optimize page_copy_sane()

2019-02-26 Thread Al Viro
On Tue, Feb 26, 2019 at 10:42:39AM -0800, Eric Dumazet wrote: > Avoid cache line miss dereferencing struct page if we can. > > page_copy_sane() mostly deals with order-0 pages. > > Extra cache line miss is visible on TCP recvmsg() calls dealing > with GRO packets (typically 45 page frags are atta

Re: [PATCH 0/14] v2 multi-die/package topology support

2019-02-26 Thread Peter Zijlstra
On Tue, Feb 26, 2019 at 01:19:58AM -0500, Len Brown wrote: > Documentation/cputopology.txt| 72 ++- > Documentation/x86/topology.txt | 6 +- > arch/x86/include/asm/processor.h | 5 +- > arch/x86/include/asm/smp.h |

Re: [PATCH 07/14] powercap/intel_rapl: Simplify rapl_find_package()

2019-02-26 Thread Peter Zijlstra
On Tue, Feb 26, 2019 at 01:20:05AM -0500, Len Brown wrote: > -static struct rapl_package *find_package_by_id(int id) > +static struct rapl_package *rapl_find_package(int cpu) > { > + int id = topology_physical_package_id(cpu); > struct rapl_package *rp; Which you'll change to topology_p

[PATCH] watchdog: w83877f_wdt: Mark expected switch fall-through

2019-02-26 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/watchdog/w83877f_wdt.c: In function ‘fop_ioctl’: drivers/watchdog/w83877f_wdt.c:294:3: warning: this statement may fall through [-Wimplicit

[PATCH] gdbstub: mark expected switch fall-throughs

2019-02-26 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warnings: kernel/debug/gdbstub.c: In function ‘gdb_serial_stub’: kernel/debug/gdbstub.c:1031:7: warning: this statement may fall through [-Wimplicit-fallthr

Re: SEV Command Privilege Separation

2019-02-26 Thread Singh, Brijesh
On 2/14/19 3:08 PM, Nathaniel McCallum wrote: > I've been working on wrapping various SEV kernel APIs for userspace > consumption. There does not appear to be any privilege separation for > these commands: you can run them all or none of them. This is less > than ideal because it means that a com

Re: general protection fault in __dentry_path

2019-02-26 Thread Eric Biggers
On Wed, Feb 20, 2019 at 08:14:03PM -0800, syzbot wrote: > syzbot has found a reproducer for the following crash on: > > HEAD commit:2137397c92ae Merge tag 'sound-5.0' of git://git.kernel.org.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1270bf78c0

Re: [PATCH] mm/hotplug: fix an imbalance with DEBUG_PAGEALLOC

2019-02-26 Thread Qian Cai
On Tue, 2019-02-26 at 19:20 +0100, Michal Hocko wrote: > Btw. what happens if the offlined pfn range is removed completely? Is > the range still mapped? What kind of consequences does this have? Well, the pages are still marked as reserved as well, so it is up to the physically memory hotplug hand

[PATCH] virt: vbox: Mark expected switch fall-through

2019-02-26 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/virt/vboxguest/vboxguest_core.c: In function ‘vbg_core_ioctl’: drivers/virt/vboxguest/vboxguest_core.c:1486:10: warning: this statement may

[PATCH] misc: mic/scif: mark expected switch fall-through

2019-02-26 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/misc/mic/scif/scif_rma.c: In function ‘scif_unregister_window’: drivers/misc/mic/scif/scif_rma.c:665:12: warning: this statement may fall t

Re: [PATCH v2 1/2] loop: Report EOPNOTSUPP properly

2019-02-26 Thread Evan Green
On Wed, Feb 13, 2019 at 6:32 PM Martin K. Petersen wrote: > > > Evan, > > > Properly plumb out EOPNOTSUPP from loop driver operations, which may > > get returned when for instance a discard operation is attempted but > > not supported by the underlying block device. Before this change, > > everyth

Re: [Drbd-dev] [PATCH] block: Mark expected switch fall-throughs

2019-02-26 Thread Gustavo A. R. Silva
On 1/29/19 3:42 AM, Roland Kammerer wrote: > On Wed, Jan 23, 2019 at 12:45:01AM -0600, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wimplicit-fallthrough, mark switch cases >> where we are expecting to fall through. >> >> Warning level 3 was used: -Wimplicit-fallthrough=3 >> >> This

Re: [PATCH 2/3] Bluetooth: hci_qca: Move boot delay to qca_send_power_pulse()

2019-02-26 Thread Matthias Kaehlcke
Hi Balakrishna, Thanks for the reviews! On Tue, Feb 26, 2019 at 05:54:24PM +0530, Balakrishna Godavarthi wrote: > hi Matthias, > > On 2019-02-26 17:48, Balakrishna Godavarthi wrote: > > On 2019-02-26 05:19, Matthias Kaehlcke wrote: > > > After sending a power on pulse the driver has a delay of 1

Re: [PATCH v3 1/8] KVM:VMX: Define CET VMCS fields and bits

2019-02-26 Thread Jim Mattson
On Mon, Feb 25, 2019 at 10:32 PM Yang Weijiang wrote: > > CET - Control-flow Enforcement Technology, it's used to > protect against return/jump oriented programming (ROP) > attacks. It provides the following capabilities to defend > against ROP/JOP style control-flow subversion attacks: > - Shadow

Re: [PATCH v4] mm/hugetlb: Fix unsigned overflow in __nr_hugepages_store_common()

2019-02-26 Thread Mike Kravetz
On 2/25/19 10:21 PM, David Rientjes wrote: > On Tue, 26 Feb 2019, Jing Xiangfeng wrote: >> On 2019/2/26 3:17, David Rientjes wrote: >>> On Mon, 25 Feb 2019, Mike Kravetz wrote: >>> Ok, what about just moving the calculation/check inside the lock as in the untested patch below? S

[PATCH 1/9] drm/bridge: tc358767: Simplify tc_poll_timeout()

2019-02-26 Thread Andrey Smirnov
Implementation of tc_poll_timeout() is almost a 100% copy-and-paste of the code for regmap_read_poll_timeout(). Replace copied code with a call to the original. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Chris Healy

[PATCH 0/9] tc358767 driver improvements

2019-02-26 Thread Andrey Smirnov
Everyone: This series contains various improvements (at least in my mind) that I made to tc358767 while working with the code of the driver. Hopefuly each patch is self explanatory. Feedback is welcome! Thanks, Andrey Smirnov Andrey Smirnov (9): drm/bridge: tc358767: Simplify tc_poll_timeout(

[PATCH 4/9] drm/bridge: tc358767: Simplify polling in tc_main_link_setup()

2019-02-26 Thread Andrey Smirnov
Replace explicit polling loop with equivalent call to regmap_read_poll_timeout() for simplicity. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Chris Healy Cc: Lucas Stach Cc: dri-de...@lists.freedesktop.org Cc: linux

[PATCH 5/9] drm/bridge: tc358767: Simplify polling in tc_link_training()

2019-02-26 Thread Andrey Smirnov
Replace explicit polling in tc_link_training() with equivalent call to regmap_read_poll_timeout() for simplicity. No functional change intended (not including slightly altered debug output). Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Chris Healy

[PATCH 9/9] drm/bridge: tc358767: Drop tc_read() macro

2019-02-26 Thread Andrey Smirnov
There's only one place where tc_read() is used, so it doesn't save us much. Drop it. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Chris Healy Cc: Lucas Stach Cc: dri-de...@lists.freedesktop.org Cc: linux-kernel@vger

[PATCH 8/9] drm/bridge: tc358767: Introduce tc_pllupdate_pllen()

2019-02-26 Thread Andrey Smirnov
Tc_wait_pll_lock() is always called as a follow-up for updating PLLUPDATE and PLLEN bit of a given PLL control register. To simplify things, merge the two operation into a single helper function tc_pllupdate_pllen() and convert the rest of the code to use it. No functional change intended. Signed-

[PATCH 6/9] drm/bridge: tc358767: Simplify error check in tc_aux_linx_setup()

2019-02-26 Thread Andrey Smirnov
Tc_poll_timeout() can only return -ETIMEDOUT, so checking for other errors is not necessary. Drop it. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Chris Healy Cc: Lucas Stach Cc: dri-de...@lists.freedesktop.org Cc:

[PATCH 7/9] drm/bridge: tc358767: Introduce tc_set_syspllparam()

2019-02-26 Thread Andrey Smirnov
Move common code converting clock rate to an appropriate constant and configuring SYS_PLLPARAM register into a separate routine and convert the rest of the code to use it. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc:

[PATCH 3/9] drm/bridge: tc358767: Simplify tc_set_video_mode()

2019-02-26 Thread Andrey Smirnov
Simplify tc_set_video_mode() by replacing repreated calls to tc_write()/regmap_write() with a single call regmap_multi_reg_write(). No functional change intended. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Chris Healy Cc: Lucas Stach Cc: dri-de

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