Re: [PATCH net-next] rhashtable: further improve stability of rhashtable_walk

2018-12-12 Thread Herbert Xu
On Wed, Dec 12, 2018 at 05:41:29PM +1100, NeilBrown wrote: > > So you would substantially slow down the rhashtable_walk_start() step. This whole thing is meant for uses such as /proc and netlink enumeration. Speed is definitely not a prerogative of these iterators. For that matter, if speed was

Re: [RESEND PATCH v3 3/3] regulator: mcp16502: add regulator driver for MCP16502

2018-12-12 Thread Andrei.Stefanescu
Hi Mark, Thank you for the review. > SPDX headers need to be C++ comments - please make the entire comment > block a C++ one so it looks more intentional. I sent a new patch (v4) with the modified comment. >> +#ifdef CONFIG_SUSPEND >> +static int mcp16502_suspend(struct device *dev) >> +{ >> +

Re: [RFC PATCH v3 2/2] pwm: imx: Configure output to GPIO in disabled state

2018-12-12 Thread Uwe Kleine-König
Hello, On Thu, Dec 06, 2018 at 01:41:31PM +, Vokáč Michal wrote: > Normally the PWM output is held LOW when PWM is disabled. This can cause > problems when inverted PWM signal polarity is needed. With this behavior > the connected circuit is fed by 100% duty cycle instead of being shut-off. >

Re: [PATCH v13 1/6] x86/boot: Introduce kstrtoull() to boot directory instead of simple_strtoull()

2018-12-12 Thread Baoquan He
On 12/12/18 at 12:12pm, Chao Fan wrote: > On Wed, Dec 12, 2018 at 11:10:48AM +0800, Chao Fan wrote: > >Introduce kstrtoull() from lib/kstrtox.c to boot directory so that code > >in boot/ can use kstrtoull() and the old simple_strtoull() can be > >replaced. > > > > Hi all, > > Thanks for Boris,

Re: [PATCH] scatterlist: Update size type to support greater then 4GB size.

2018-12-12 Thread Christoph Hellwig
scatterlist elements longer than 4GB sound odd. Please submit it in a series with your actual user so that we can help figuring out if it really makes sense or if there is a better way to solve your problem. As is this patch will massively increase the memory usage for all users of struct

Re: [PATCH 10/10] perf/doc: update design.txt for exclude_{host|guest} flags

2018-12-12 Thread Christoffer Dall
On Tue, Dec 11, 2018 at 01:59:03PM +, Andrew Murray wrote: > On Tue, Dec 11, 2018 at 10:06:53PM +1100, Michael Ellerman wrote: > > [ Reviving old thread. ] > > > > Andrew Murray writes: > > > On Tue, Nov 20, 2018 at 10:31:36PM +1100, Michael Ellerman wrote: > > >> Andrew Murray writes: > >

Re: 4.14 backport request for dbdda842fe96f: "printk: Add console owner and waiter logic to load balance console writes"

2018-12-12 Thread Sergey Senozhatsky
On (12/12/18 01:48), Sasha Levin wrote: > > > > I guess we still don't have a really clear understanding of what exactly > > > is going in your system > > > > > > I would also like to get to the bottom of it. Unfortunately I haven't > > > got the expertise in this area nor the time to do it yet.

Re: [PATCH v13 1/6] x86/boot: Introduce kstrtoull() to boot directory instead of simple_strtoull()

2018-12-12 Thread Chao Fan
On Wed, Dec 12, 2018 at 03:46:15PM +0800, Baoquan He wrote: >On 12/12/18 at 11:10am, Chao Fan wrote: >> Introduce kstrtoull() from lib/kstrtox.c to boot directory so that code > >It's not introducing kstrtoull(), just copying kstrtoull() from >lib/kstrtox.c to boot. Oops, maybe I misunderstand

RE: [PATCH] PCI: controller: dwc: Make PCI_IMX6 depend on PCIEPORTBUS

2018-12-12 Thread Richard Zhu
> -Original Message- > From: Andrey Smirnov [mailto:andrew.smir...@gmail.com] > Sent: 2018年12月8日 7:57 > To: niklas.cas...@linaro.org > Cc: Lucas Stach ; linux-...@vger.kernel.org; Bjorn > Helgaas ; Chris Healy ; > Leonard Crestez ; Aisheng Dong > ; Richard Zhu ; > dl-linux-imx ;

Re: [LINUX PATCH v12 3/3] mtd: rawnand: arasan: Add support for Arasan NAND Flash Controller

2018-12-12 Thread Miquel Raynal
Hi Naga, Naga Sureshkumar Relli wrote on Wed, 12 Dec 2018 05:27:03 +: > Hi Boris & Miquel, > > An update to my comments on thread https://lkml.org/lkml/2018/11/15/656. > In this I said, will take a default error count value as 16 and during page > read, will check the error count >

RE: [PATCH v5 3/5] arm64: dts: lx2160a: add FlexSPI node property

2018-12-12 Thread Pankaj Bansal
> -Original Message- > From: devicetree-ow...@vger.kernel.org [mailto:devicetree- > ow...@vger.kernel.org] On Behalf Of Yogesh Narayan Gaur > Sent: Friday, November 16, 2018 4:44 PM > To: linux-...@lists.infradead.org; boris.brezil...@bootlin.com; > marek.va...@gmail.com;

Re: [PATCH] treewide: replace RETPOLINE with CONFIG_RETPOLINE

2018-12-12 Thread Zhenzhong Duan
On 2018/12/11 0:37, WANG Chao wrote: Since commit 4cd24de3a098 ("x86/retpoline: Make CONFIG_RETPOLINE depend on compiler support"), RETPOLINE has been replaced by CONFIG_RETPOLINE. Fixes: 4cd24de3a098 ("x86/retpoline: Make CONFIG_RETPOLINE depend on compiler support") Signed-off-by: WANG

[PATCH] x86/kdump: directly find a candidate region when crashkernel=X

2018-12-12 Thread Pingfan Liu
I encounter a case where crashkernel=384M, and kaslr is enabled. During the test, sometimes, the system may fail to reserve region for crash kernel, although there is much free space above 896MB. It is caused by the truncation of the candidate region by kaslr kernel. It raises confusion to the end

Re: [PATCH 1/3] dt-bindings: mfd: syscon: Add optional clock support

2018-12-12 Thread Fabrice Gasnier
On 12/11/18 11:16 PM, Rob Herring wrote: > On Tue, Nov 27, 2018 at 05:48:15PM +0100, Fabrice Gasnier wrote: >> Some system control registers need to be clocked, so the registers can >> be accessed. Add an optional clock. >> >> Signed-off-by: Fabrice Gasnier >> --- >>

Re: [PATCH 02/11] staging: iio: adt7316: invert the logic of the check for an ldac pin

2018-12-12 Thread Dan Carpenter
On Tue, Dec 11, 2018 at 05:54:54PM -0700, Jeremy Fertic wrote: > ADT7316_DA_EN_VIA_DAC_LDCA is set when the dac and ldac registers are being > used to update the dacs instead of the ldac pin. ADT7516_SEL_AIN3 is an adc > input that shares the ldac pin. Only set these bits if an ldac pin is not >

Re: [RFC v2 14/20] iommu: introduce device fault data

2018-12-12 Thread Auger Eric
Hi Jacob, On 9/21/18 12:06 AM, Jacob Pan wrote: > On Tue, 18 Sep 2018 16:24:51 +0200 > Eric Auger wrote: > >> From: Jacob Pan >> >> Device faults detected by IOMMU can be reported outside IOMMU >> subsystem for further processing. This patch intends to provide >> a generic device fault data

Re: [PATCH net] net: mvneta: fix operation for 64K PAGE_SIZE

2018-12-12 Thread Marcin Wojtas
Hi Jisheng, śr., 12 gru 2018 o 03:48 Jisheng Zhang napisał(a): > > Hi, > > On Tue, 11 Dec 2018 13:56:49 +0100 Marcin Wojtas wrote: > > > Recent changes in the mvneta driver reworked allocation > > and handling of the ingress buffers to use entire pages. > > Apart from that in SW BM scenario the

Re: [PATCH 04/11] staging: iio: adt7316: fix handling of dac high resolution option

2018-12-12 Thread Dan Carpenter
On Tue, Dec 11, 2018 at 05:54:56PM -0700, Jeremy Fertic wrote: > @@ -651,10 +649,12 @@ static ssize_t adt7316_store_da_high_resolution(struct > device *dev, > u8 config3; > int ret; > > + if (chip->id == ID_ADT7318 || chip->id == ID_ADT7519) > + return -EPERM;

[PATCH] pstore: fix crypto dependencies of 842/zstd compression

2018-12-12 Thread liaoweixiong
Reference to commit 58eb5b670747 ("pstore: fix crypto dependencies"), which fixed crypto dependencies of deflate, lzo, lz4 and lz4hc compression, but omitted 842 and newer compression zstd from commit 1021bcf44d0e ("pstore: add zstd compression support") Signed-off-by: liaoweixiong ---

Re: [GIT PULL] PHY: for 4.21

2018-12-12 Thread Greg Kroah-Hartman
On Wed, Dec 12, 2018 at 10:38:36AM +0530, Kishon Vijay Abraham I wrote: > Hi Greg, > > Please find the pull request for 4.21 merge window below. > > The major changes are, the set_mode ops now takes 2 arguments (mode and > submode) instead of just 'mode'. The value in 'submode' will be specific

Re: [PATCH 20/27] microblaze: surround string default in Kconfig with double quotes

2018-12-12 Thread Michal Simek
On 11. 12. 18 12:01, Masahiro Yamada wrote: > I guess this is a constant value instead of a symbol. > > Signed-off-by: Masahiro Yamada > --- > > I will apply this to my Kbuild tree > because it is necessary for Kconfig clean-ups. > > > arch/microblaze/Kconfig.platform | 2 +- > 1 file

Re: linux-next: manual merge of the net-next tree with the char-misc.current tree

2018-12-12 Thread Greg KH
On Wed, Dec 12, 2018 at 12:02:52PM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > MAINTAINERS > > between commit: > > cb4f131e1f2c ("MAINTAINERS: Patch monkey for the Hyper-V code") > > from the char-misc.current tree and

Re: [PATCH] mm/alloc: fallback to first node if the wanted node offline

2018-12-12 Thread Pingfan Liu
On Mon, Dec 10, 2018 at 8:37 PM Michal Hocko wrote: > [...] > > In other words. Does the following work? I am sorry to wildguess this > way but I am not able to recreate your setups to play with this myself. > > diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c > index

Re: [PATCH 10/11] staging: iio: adt7316: change interpretation of write to dac update mode

2018-12-12 Thread Dan Carpenter
On Tue, Dec 11, 2018 at 05:55:02PM -0700, Jeremy Fertic wrote: > Based on the output of adt7316_show_all_DAC_update_modes() and > adt7316_show_DAC_update_mode(), adt7316_store_DAC_update_mode() should > expect the user to enter an integer input from 0 to 3. The user input is > currently expected

[PATCH] Cover letter for (PCI/AER: only insert one element into kfifo)

2018-12-12 Thread Yanjiang Jin
Without this patch, if we have multi PCIe devices, and one of them has AER error, aer_recover_work_func() -> kfifo_get() will traverse the whole kfifo which has wrong element number(16). If one null element's uninitialized memory matches another PCIe device(:01:00.0), we may get the below call

[RFC PATCH v1 2/5] fs: Add a MAY_EXECMOUNT flag to infer the noexec mount propertie

2018-12-12 Thread Mickaël Salaün
An LSM doesn't get path information related to an access request to open an inode. This new (internal) MAY_EXECMOUNT flag enables an LSM to check if the underlying mount point of an inode is marked as executable. This is useful to implement a security policy taking advantage of the noexec mount

[PATCH] PCI/AER: only insert one element into kfifo

2018-12-12 Thread Yanjiang Jin
'commit ecae65e133f2 ("PCI/AER: Use kfifo_in_spinlocked() to insert locked elements")' replace kfifo_put() with kfifo_in_spinlocked(). But as "kfifo_in(fifo, buf, n)" describes: " * @n: number of elements to be added". We want to insert only one element into kfifo, not "sizeof(entry) = 16".

[RFC PATCH v1 5/5] doc: Add documentation for Yama's open_mayexec_enforce

2018-12-12 Thread Mickaël Salaün
Signed-off-by: Mickaël Salaün Reviewed-by: Philippe Trébuchet Reviewed-by: Thibaut Sautereau Cc: Jonathan Corbet Cc: Kees Cook Cc: Mickaël Salaün --- Documentation/admin-guide/LSM/Yama.rst | 41 ++ 1 file changed, 41 insertions(+) diff --git

Re: [PATCH] mm/alloc: fallback to first node if the wanted node offline

2018-12-12 Thread Pingfan Liu
On Tue, Dec 11, 2018 at 5:44 PM Michal Hocko wrote: > > On Tue 11-12-18 16:05:58, Pingfan Liu wrote: > > On Mon, Dec 10, 2018 at 8:37 PM Michal Hocko wrote: > > > > > > On Fri 07-12-18 16:56:27, Michal Hocko wrote: > > > > On Fri 07-12-18 22:27:13, Pingfan Liu wrote: > > > > [...] > > > > > diff

PROPOSAL

2018-12-12 Thread Mr. Dorso Sandwidi
Hello, I am Mr. Dorso Sandwidi from Burkina Faso in West African region. I work with the bank of Africa here in the nation. I am writing you from my office that which will be of an immense benefit to both of us. In my department, being the account manager I discovered an abandoned sum of $18

[RFC PATCH v1 0/5] Add support for O_MAYEXEC

2018-12-12 Thread Mickaël Salaün
Hi, The goal of this patch series is to control script interpretation. A new O_MAYEXEC flag used by sys_open() is added to enable userland script interpreter to delegate to the kernel (and thus the system security policy) the permission to interpret scripts or other files containing what can be

[RFC PATCH v1 1/5] fs: Add support for an O_MAYEXEC flag on sys_open()

2018-12-12 Thread Mickaël Salaün
When the O_MAYEXEC flag is passed, sys_open() may be subject to additional restrictions depending on a security policy implemented by an LSM through the inode_permission hook. The underlying idea is to be able to restrict scripts interpretation according to a policy defined by the system

[RFC PATCH v1 3/5] Yama: Enforces noexec mounts or file executability through O_MAYEXEC

2018-12-12 Thread Mickaël Salaün
Enable to either propagate the mount options from the underlying VFS mount to prevent execution, or to propagate the file execute permission. This may allow a script interpreter to check execution permissions before reading commands from a file. The main goal is to be able to protect the kernel

RE: [PATCH v1 2/2] usb:cdns3 Add Cadence USB3 DRD Driver

2018-12-12 Thread Felipe Balbi
Peter Chen writes: >> >> >> +irqreturn_t ret = IRQ_NONE; >> >> >> +unsigned long flags; >> >> >> +u32 reg; >> >> >> + >> >> >> +priv_dev = cdns->gadget_dev; >> >> >> +spin_lock_irqsave(_dev->lock, flags); >> >> > >> >> >you're already running in hardirq context. Why do you

[RFC PATCH v1 4/5] selftest/yama: Add tests for O_MAYEXEC enforcing

2018-12-12 Thread Mickaël Salaün
Test propagation of noexec mount points or file executability through files open with or without O_MAYEXEC. Signed-off-by: Mickaël Salaün Cc: Kees Cook Cc: Mickaël Salaün Cc: Shuah Khan --- MAINTAINERS | 1 + tools/testing/selftests/Makefile |

Re: Configure video PAL decoder into media pipeline

2018-12-12 Thread jacopo mondi
Hi Michael, On Tue, Dec 11, 2018 at 02:53:24PM +0100, Michael Nazzareno Trimarchi wrote: > Hi Jacopo > > On Tue, Dec 11, 2018 at 12:39 PM jacopo mondi wrote: > > > > Hi Michael, > > > > On Mon, Dec 10, 2018 at 10:45:02PM +0100, Michael Nazzareno Trimarchi wrote: > > > Hi Jacopo > > > > > > Let's

Re: [PATCH v2 4/5] dt-bindings: leds: Add pattern initialization from Device Tree

2018-12-12 Thread Krzysztof Kozlowski
On Tue, 11 Dec 2018 at 18:23, Rob Herring wrote: > > On Mon, Dec 10, 2018 at 3:30 AM Krzysztof Kozlowski wrote: > > > > Document new linux,trigger-pattern property for initialization of LED > > pattern trigger. > > > > Signed-off-by: Krzysztof Kozlowski > > --- > >

Re: Configure video PAL decoder into media pipeline

2018-12-12 Thread Michael Nazzareno Trimarchi
Hi On Wed, Dec 12, 2018 at 9:39 AM jacopo mondi wrote: > > Hi Michael, > > On Tue, Dec 11, 2018 at 02:53:24PM +0100, Michael Nazzareno Trimarchi wrote: > > Hi Jacopo > > > > On Tue, Dec 11, 2018 at 12:39 PM jacopo mondi wrote: > > > > > > Hi Michael, > > > > > > On Mon, Dec 10, 2018 at

[PATCH v2 0/3] mfd: syscon: Add optional clock support needed on stm32

2018-12-12 Thread Fabrice Gasnier
STM32 syscfg registers are accessed using syscon. It needs syscfg clock to be enabled while accessing registers. This adds support for optional clock on syscon, and the relevant clock in stm32mp157 device tree. Changes in v2: - move clocks to specific bindings using syscon as per Rob's comment

[PATCH v2 3/3] ARM: dts: stm32: Add clock on stm32mp157c syscfg

2018-12-12 Thread Fabrice Gasnier
STM32 syscfg needs a clock to access registers. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp157c.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index 8bf1c17..61b2a70 100644 ---

[PATCH v2 2/3] mfd: syscon: Add optional clock support

2018-12-12 Thread Fabrice Gasnier
Some system control registers need to be clocked, so the registers can be accessed. Add an optional clock and attach it to regmap. Signed-off-by: Fabrice Gasnier --- drivers/mfd/syscon.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/mfd/syscon.c

Re: [PATCH net-next] rhashtable: further improve stability of rhashtable_walk

2018-12-12 Thread NeilBrown
On Wed, Dec 12 2018, Herbert Xu wrote: > On Wed, Dec 12, 2018 at 05:41:29PM +1100, NeilBrown wrote: >> >> So you would substantially slow down the rhashtable_walk_start() step. > > This whole thing is meant for uses such as /proc and netlink > enumeration. Speed is definitely not a prerogative

[PATCH v2 1/3] dt-bindings: stm32: syscon: add clock support

2018-12-12 Thread Fabrice Gasnier
STM32 system configuration controller registers needs to be clocked. Document clock support on stm32-syscon. Signed-off-by: Fabrice Gasnier --- Changes in v2: - move clocks to specific bindings using syscon as per Rob's comment --- Documentation/devicetree/bindings/arm/stm32/stm32-syscon.txt |

Re: [PATCH 2/5 v8] regulator: fixed/gpio: Pull inversion/OD into gpiolib

2018-12-12 Thread Linus Walleij
On Tue, Dec 11, 2018 at 11:12 PM Geert Uytterhoeven wrote: > CC Jacopo, who has an Ecovec24 Thanks Geert, Ecovec24 has the biggest boardfile (setup.c) of all the Super-H boards, so I suppose it is simply the best supported board, meaning if stuff works on Ecovec24 it is more likely to work with

Re: [PATCH] xen: xen-pciback: Reset MSI-X state when exposing a device

2018-12-12 Thread Jan Beulich
>>> On 12.12.18 at 08:06, wrote: > On Wed, Dec 05, 2018 at 09:01:33AM -0500, Boris Ostrovsky wrote: >>On 12/5/18 4:32 AM, Roger Pau Monné wrote: >>> On Wed, Dec 05, 2018 at 10:19:17AM +0800, Chao Gao wrote: I find some pass-thru devices don't work any more across guest reboot. Assigning

Re: Configure video PAL decoder into media pipeline

2018-12-12 Thread jacopo mondi
On Wed, Dec 12, 2018 at 09:43:23AM +0100, Michael Nazzareno Trimarchi wrote: > Hi > > On Wed, Dec 12, 2018 at 9:39 AM jacopo mondi wrote: > > > > Hi Michael, > > > > On Tue, Dec 11, 2018 at 02:53:24PM +0100, Michael Nazzareno Trimarchi wrote: > > > Hi Jacopo > > > > > > On Tue, Dec 11, 2018 at

Re: [PATCH v5 13/25] m68k: add asm/syscall.h

2018-12-12 Thread Dmitry V. Levin
On Mon, Dec 10, 2018 at 04:30:25PM +0300, Dmitry V. Levin wrote: > On Mon, Dec 10, 2018 at 02:06:28PM +0100, Geert Uytterhoeven wrote: > > On Mon, Dec 10, 2018 at 1:41 PM Dmitry V. Levin wrote: > > > On Mon, Dec 10, 2018 at 09:45:42AM +0100, Geert Uytterhoeven wrote: > > > > On Mon, Dec 10, 2018

RE: RESEND: About VBUS glitch happen on DWC3 host mode enabling process.

2018-12-12 Thread Ran Wang
Hi Felipe & Mathias, It seems that my below reply mail failed to be shown on lkml.org. So I have to resend it. Like to have your comment/suggestion before I begin the solution implement work. Thanks Ran Wang wrote: > > Hello Felipe, > > Felipe Balbi wrote: > > > > Hi Ran, > > > > Ran

Re: [PATCH v5 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-12-12 Thread Tomasz Figa
Hi Christoph, On Sat, Dec 8, 2018 at 12:25 AM Christoph Hellwig wrote: > > Folks, can you take a look at this tree and see if this is useful > for USB: > > http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/dma-noncoherent-allocator > > The idea is that you use dma_alloc_attrs with

Re: [PATCH] x86/kdump: directly find a candidate region when crashkernel=X

2018-12-12 Thread Baoquan He
Hi Pingfan, Thanks for fixing this. On 12/12/18 at 04:19pm, Pingfan Liu wrote: > I encounter a case where crashkernel=384M, and kaslr is enabled. During the > test, sometimes, the system may fail to reserve region for crash kernel, > although there is much free space above 896MB. It is caused by

Re: [PATCH v5 13/25] m68k: add asm/syscall.h

2018-12-12 Thread Geert Uytterhoeven
Hi Dmitry, On Wed, Dec 12, 2018 at 9:55 AM Dmitry V. Levin wrote: > On Mon, Dec 10, 2018 at 04:30:25PM +0300, Dmitry V. Levin wrote: > > On Mon, Dec 10, 2018 at 02:06:28PM +0100, Geert Uytterhoeven wrote: > > > On Mon, Dec 10, 2018 at 1:41 PM Dmitry V. Levin wrote: > > > > On Mon, Dec 10, 2018

RE: [LINUX PATCH v12 3/3] mtd: rawnand: arasan: Add support for Arasan NAND Flash Controller

2018-12-12 Thread Naga Sureshkumar Relli
Hi Miquel, > -Original Message- > From: Miquel Raynal [mailto:miquel.ray...@bootlin.com] > Sent: Wednesday, December 12, 2018 1:42 PM > To: Naga Sureshkumar Relli > Cc: Boris Brezillon ; r...@kernel.org; > rich...@nod.at; linux- > ker...@vger.kernel.org; marek.va...@gmail.com;

Re: [patch] futex: Cure exit race

2018-12-12 Thread Peter Zijlstra
On Mon, Dec 10, 2018 at 06:43:51PM +0100, Thomas Gleixner wrote: > On Mon, 10 Dec 2018, Peter Zijlstra wrote: > > On Mon, Dec 10, 2018 at 04:23:06PM +0100, Thomas Gleixner wrote: > > There is another callers of futex_lock_pi_atomic(), > > futex_proxy_trylock_atomic(), which is part of

Re: Can we drop upstream Linux x32 support?

2018-12-12 Thread Arnd Bergmann
On Wed, Dec 12, 2018 at 3:38 AM Thorsten Glaser wrote: > > Andy Lutomirski dixit: > > >That’s the thing, though: the whole generic kernel compat > >infrastructure assumes there are at most two ABIs: native and, if > >enabled and relevant, compat. x32 breaks this entirely. > > MIPS had o32, n32,

Re: [LKP] [tty] c96cf923a9: WARNING:possible_circular_locking_dependency_detected

2018-12-12 Thread Peter Zijlstra
On Wed, Dec 12, 2018 at 12:42:52PM +0900, Sergey Senozhatsky wrote: > Something like this (not tested): > > --- > > drivers/tty/serial/serial_core.c | 14 -- > 1 file changed, 8 insertions(+), 6 deletions(-) > > diff --git a/drivers/tty/serial/serial_core.c >

Re: RFC [PATCH 1/1] locking/lockdep: Fix nest lock warning on unlock

2018-12-12 Thread Peter Zijlstra
On Tue, Dec 11, 2018 at 06:25:06PM -0800, Derek Basehore wrote: > The function __lock_acquire checks that the nest lock is held passed > in as an argument. The issue with this is that __lock_acquire is used > for internal bookkeeping on lock_release. This produces a false > positive lockdep

Re: [PATCH v5 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-12-12 Thread Christoph Hellwig
On Wed, Dec 12, 2018 at 05:57:02PM +0900, Tomasz Figa wrote: > How about dma_sync_sg_*()? I'd expect some drivers to export/import > such memory via sg, since that's the typical way of describing memory > in DMA-buf. The way it is implemented dma_sync_sg_* would just work, however there really

Re: [LINUX PATCH v12 3/3] mtd: rawnand: arasan: Add support for Arasan NAND Flash Controller

2018-12-12 Thread Miquel Raynal
Hi Naga, Naga Sureshkumar Relli wrote on Wed, 12 Dec 2018 09:04:16 +: > Hi Miquel, > > > -Original Message- > > From: Miquel Raynal [mailto:miquel.ray...@bootlin.com] > > Sent: Wednesday, December 12, 2018 1:42 PM > > To: Naga Sureshkumar Relli > > Cc: Boris Brezillon ;

Re: Configure video PAL decoder into media pipeline

2018-12-12 Thread Michael Nazzareno Trimarchi
Hi On Wed, Dec 12, 2018 at 9:55 AM jacopo mondi wrote: > > On Wed, Dec 12, 2018 at 09:43:23AM +0100, Michael Nazzareno Trimarchi wrote: > > Hi > > > > On Wed, Dec 12, 2018 at 9:39 AM jacopo mondi wrote: > > > > > > Hi Michael, > > > > > > On Tue, Dec 11, 2018 at 02:53:24PM +0100, Michael

[PATCHv3 01/10] tools lib traceevent: Use LDFLAGS in the build commands

2018-12-12 Thread Jiri Olsa
On Wed, Nov 28, 2018 at 10:56:41AM -0300, Arnaldo Carvalho de Melo wrote: SNIP > LD /tmp/build/perf/libtraceevent-in.o > MKDIR/tmp/build/perf/util/ > LINK /tmp/build/perf/libtraceevent.a > CC /tmp/build/perf/util/block-range.o > MKDIR/tmp/build/perf/arch/ >

Re: [PATCH v2 5/5] regulator: add documentation for regulator modes and suspend states

2018-12-12 Thread Claudiu.Beznea
On 12.12.2018 00:13, Rob Herring wrote: > On Tue, Nov 27, 2018 at 11:57:25AM +, claudiu.bez...@microchip.com wrote: >> From: Claudiu Beznea >> >> Add documentation for regulator modes and suspend states. >> >> Signed-off-by: Claudiu Beznea >> --- >>

Re: [PATCH v2 01/12] fs-verity: add a documentation file

2018-12-12 Thread Christoph Hellwig
As this apparently got merged despite no proper reviews from VFS level persons: NAK - the ioctl format that expects the verifycation hash in the file data data with padding after the real data is simply not acceptable, we can't just transform the data in the file itself based on a magic calls

Re: Can we drop upstream Linux x32 support?

2018-12-12 Thread Steven Newbury
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 First off I'd like to request: Please don't break my userspace! I have a number of systems running with x32-abi as native. They work well, I've no want or desire to upgrade their memory or CPUs to make keep them working as well as they do now.

Re: [PATCH 4.19 000/118] 4.19.9-stable review

2018-12-12 Thread Greg Kroah-Hartman
On Wed, Dec 12, 2018 at 11:47:42AM +0530, Naresh Kamboju wrote: > On Tue, 11 Dec 2018 at 21:25, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 4.19.9 release. > > There are 118 patches in this series, all will be posted as a response > > to this one. If

Re: [PATCH v2 1/2] dt-bindings: sdhci-omap: Add note for cpu_thermal

2018-12-12 Thread Ulf Hansson
On Tue, 11 Dec 2018 at 15:20, Faiz Abbas wrote: > > The driver fetches a thermal zone using the string "cpu_thermal" for > tuning operation. Add a note for the same. > > Signed-off-by: Faiz Abbas Applied for next, thanks! Kind regards Uffe > --- >

Re: [PATCH v2 2/2] mmc: sdhci-omap: Workaround errata regarding SDR104/HS200 tuning failures (i929)

2018-12-12 Thread Ulf Hansson
+ Thermal maintainers On Tue, 11 Dec 2018 at 15:20, Faiz Abbas wrote: > > Errata i929 in certain OMAP5/DRA7XX/AM57XX silicon revisions > (SPRZ426D - November 2014 - Revised February 2018 [1]) mentions > unexpected tuning pattern errors. A small failure band may be present > in the tuning range

[PATCH net-next] can: flexcan: fix 'passing zero to ERR_PTR()' warning

2018-12-12 Thread YueHaibing
Fix a static code checker warning: drivers/net/can/flexcan.c:1435 flexcan_setup_stop_mode() warn: passing zero to 'PTR_ERR' Fixes: de3578c198c6 ("can: flexcan: add self wakeup support") Signed-off-by: YueHaibing --- drivers/net/can/flexcan.c | 2 +- 1 file changed, 1 insertion(+), 1

RE: [PATCH v1 2/2] usb:cdns3 Add Cadence USB3 DRD Driver

2018-12-12 Thread Peter Chen
> > > > Interrupt handler (hardirq context) at CPU0, and process at CPU1, eg > > role switch, unload module, etc. > > the process at CPU1 would need to disable interrupts (spin_lock_irq() or > spin_lock_irqsave()), not the hardirq on CPU0 as that already runs with > interrrupts > disabled. >

[PATCH v7 03/10] soc: qcom: rpmpd: Add a Power domain driver to model corners

2018-12-12 Thread Rajendra Nayak
The Power domains for corners just pass the performance state set by the consumers to the RPM (Remote Power manager) which then takes care of setting the appropriate voltage on the corresponding rails to meet the performance needs. We add all power domain data needed on msm8996 here. This driver

[PATCH v7 04/10] soc: qcom: rpmpd: Add support for get/set performance state

2018-12-12 Thread Rajendra Nayak
Add support for the .set_performace_state() and .opp_to_performance_state() callbacks in the rpmpd driver. Signed-off-by: Rajendra Nayak Signed-off-by: Viresh Kumar Reviewed-by: Ulf Hansson --- drivers/soc/qcom/rpmpd.c | 44 1 file changed, 44

Re: [PATCH v4 5/5] powerpc: generate uapi header and system call table files

2018-12-12 Thread kbuild test robot
Hi Firoz, Thank you for the patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v4.20-rc6] [cannot apply to next-20181211] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH net] net: mvneta: fix operation for 64K PAGE_SIZE

2018-12-12 Thread Jisheng Zhang
Hi Marcin, On Wed, 12 Dec 2018 09:22:57 +0100 Marcin Wojtas wrote: > Hi Jisheng, > > śr., 12 gru 2018 o 03:48 Jisheng Zhang > napisał(a): > > > > Hi, > > > > On Tue, 11 Dec 2018 13:56:49 +0100 Marcin Wojtas wrote: > > > > > Recent changes in the mvneta driver reworked allocation > > > and

[PATCH v7 02/10] dt-bindings: power: Add qcom rpm power domain driver bindings

2018-12-12 Thread Rajendra Nayak
Add DT bindings to describe the rpm/rpmh power domains found on Qualcomm Technologies, Inc. SoCs. These power domains communicate a performance state to RPM/RPMh, which then translates it into corresponding voltage on a PMIC rail. Signed-off-by: Rajendra Nayak Signed-off-by: Viresh Kumar

[PATCH v7 01/10] dt-bindings: opp: Introduce qcom-opp bindings

2018-12-12 Thread Rajendra Nayak
On Qualcomm Technologies, Inc. platforms, an OPP node needs to describe an additional level/corner value that is then communicated to a remote microprocessor by the CPU, which then takes some actions (like adjusting voltage values across various rails) based on the value passed. Describe these

[PATCH v7 05/10] arm64: dts: msm8996: Add rpmpd device node

2018-12-12 Thread Rajendra Nayak
Add rpmpd device node and its OPP table Signed-off-by: Rajendra Nayak Signed-off-by: Viresh Kumar Reviewed-by: Ulf Hansson Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 34 +++ 1 file changed, 34 insertions(+) diff --git

[PATCH v7 06/10] soc: qcom: rpmhpd: Add RPMh power domain driver

2018-12-12 Thread Rajendra Nayak
The RPMh power domain driver aggregates the corner votes from various consumers for the ARC resources and communicates it to RPMh. With RPMh we use 2 different numbering space for corners, one used by the clients to express their performance needs, and another used to communicate to RPMh

[PATCH v7 10/10] soc: qcom: rpmhpd: Mark mx as a parent for cx

2018-12-12 Thread Rajendra Nayak
Specify the active + sleep and active-only MX power domains as the parents of the corresponding CX power domains. This will ensure that performance state requests on CX automatically generate equivalent requests on MX power domains. This is used to enforce a requirement that exists for various

[PATCH v7 08/10] PM / Domains: Add a simple_opp_to_performance_state() helper

2018-12-12 Thread Rajendra Nayak
Now that we have atleast 2 genpd providers, both using a simple routine to read a performance state value from device tree and return it, in order to implement the .opp_to_performance_state callback, add a simple_opp_to_performance_state() helper to do it, so it can be resued across all such genpd

[PATCH v7 07/10] arm64: dts: sdm845: Add rpmh powercontroller node

2018-12-12 Thread Rajendra Nayak
Add the DT node for the rpmhpd powercontroller. Signed-off-by: Rajendra Nayak Acked-by: Viresh Kumar Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 51 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi

Re: [PATCH v5 5/5] ACPI / OSL: Remove PCI bits from ACPICA when CONFIG_PCI is unset

2018-12-12 Thread Rafael J. Wysocki
On Wed, Dec 12, 2018 at 6:29 AM Sinan Kaya wrote: > > Now that we allow CONFIG_PCI to be unset, remove useless code from ACPICA > too. > > Signed-off-by: Sinan Kaya > --- > drivers/acpi/acpica/Makefile | 2 +- > drivers/acpi/osl.c | 9 + > 2 files changed, 10 insertions(+), 1

[PATCH v7 09/10] soc: qcom: rpmpd: Use simple_opp_to_performance_state() helper

2018-12-12 Thread Rajendra Nayak
Get rid of the duplicate code across rpmpd and rpmhpd to read the performance state value from Device tree and use the simple_opp_to_performance_state() helper instead. Suggested-by: Stephen Boyd Signed-off-by: Rajendra Nayak Reviewed-by: Stephen Boyd --- drivers/soc/qcom/rpmhpd.c | 11

[PATCH v7 00/10] Add power domain driver for corners on msm8996/sdm845

2018-12-12 Thread Rajendra Nayak
Changes in v7: * Rebased on Andy's for-next, and used the updated cmd_db_read_aux_data() * Other minor fixes, all in 'PATCH 06/10' as suggested by Stephen Changes in v6: * OPP binding updates for qcom,level reviewed by Rob * DT bindings for rpmpd and rpmhpd updated to specify the OPP tables as

Re: [PATCH v5 13/25] m68k: add asm/syscall.h

2018-12-12 Thread Dmitry V. Levin
On Wed, Dec 12, 2018 at 10:01:29AM +0100, Geert Uytterhoeven wrote: > Hi Dmitry, > > On Wed, Dec 12, 2018 at 9:55 AM Dmitry V. Levin wrote: > > On Mon, Dec 10, 2018 at 04:30:25PM +0300, Dmitry V. Levin wrote: > > > On Mon, Dec 10, 2018 at 02:06:28PM +0100, Geert Uytterhoeven wrote: > > > > On

Re: [PATCH v5 24/25] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-12-12 Thread kbuild test robot
Hi Elvira, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.20-rc6] [cannot apply to next-20181211] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH net] net: mvpp2: 10G modes aren't supported on all ports

2018-12-12 Thread Antoine Tenart
Hi Russell, Baruch, On Tue, Dec 11, 2018 at 06:51:56PM +, Russell King - ARM Linux wrote: > On Tue, Dec 11, 2018 at 07:53:42PM +0200, Baruch Siach wrote: > > That is, something like this, right? > > > > diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > >

Re: [PATCH v5 2/5] ACPI / OSL: Stub out acpi_os_read_pci_configuration when CONFIG_PCI is unset

2018-12-12 Thread Rafael J. Wysocki
On Wed, Dec 12, 2018 at 6:29 AM Sinan Kaya wrote: > > Getting ready to allow PCI to be disabled with ACPI enabled. Stub out > acpi_os_read_pci_configuration function that depend on PCI. > > Signed-off-by: Sinan Kaya > --- > drivers/acpi/osl.c | 4 > 1 file changed, 4 insertions(+) > > diff

Re: [PATCH net] net: mvpp2: 10G modes aren't supported on all ports

2018-12-12 Thread Antoine Tenart
Hi Stefan, On Tue, Dec 11, 2018 at 09:11:31PM +, Stefan Chulski wrote: > > > > > Are these modes supported on anything except port 0? If not, you should be > > rejecting these, rather than just treating them as RGMII. > > In CP115(which has PPv2) PHY_INTERFACE_MODE_10GKR supported on

[GIT PULL] fuse fixes for 4.20-rc7

2018-12-12 Thread Miklos Szeredi
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git tags/fuse-fixes-4.20-rc7 There's one patch fixing a minor but long lived bug, the others are fixing regressions introduced in this cycle. Thanks, Miklos

[v6, PATCH 0/2] add Ethernet driver support for mt2712

2018-12-12 Thread Biao Huang
Changes in v6: modifications according to comments from Rob/Andrew/Sean: 1. use delay_ps instead of delay stage. 2. add comments in driver to avoid confusion. 2. rewrite set_delay function. 3. modify binding document for properties: tx-delay-ps/rx-delay-ps/pericfg etc. Biao Huang (2):

[v6, PATCH 1/2] net:stmmac: dwmac-mediatek: add support for mt2712

2018-12-12 Thread Biao Huang
Add Ethernet support for MediaTek SoCs from the mt2712 family Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/Kconfig|8 + drivers/net/ethernet/stmicro/stmmac/Makefile |1 + .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 408 3

[v6, PATCH 2/2] dt-binding: mediatek-dwmac: add binding document for MediaTek MT2712 DWMAC

2018-12-12 Thread Biao Huang
The commit adds the device tree binding documentation for the MediaTek DWMAC found on MediaTek MT2712. Signed-off-by: Biao Huang --- .../devicetree/bindings/net/mediatek-dwmac.txt | 87 1 file changed, 87 insertions(+) create mode 100644

[PATCH] VSOCK: Send reset control packet when socket is partially bound

2018-12-12 Thread Jorgen Hansen
If a server side socket is bound to an address, but not in the listening state yet, incoming connection requests should receive a reset control packet in response. However, the function used to send the reset silently drops the reset packet if the sending socket isn't bound to a remote address (as

Re: [PATCH v5 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-12-12 Thread Tomasz Figa
On Wed, Dec 12, 2018 at 6:09 PM Christoph Hellwig wrote: > > On Wed, Dec 12, 2018 at 05:57:02PM +0900, Tomasz Figa wrote: > > How about dma_sync_sg_*()? I'd expect some drivers to export/import > > such memory via sg, since that's the typical way of describing memory > > in DMA-buf. > > The way

Re: [PATCH] mm, memcg: fix reclaim deadlock with writeback

2018-12-12 Thread Kirill A. Shutemov
On Tue, Dec 11, 2018 at 02:26:45PM +0100, Michal Hocko wrote: > From: Michal Hocko > > Liu Bo has experienced a deadlock between memcg (legacy) reclaim and the > ext4 writeback > task1: > [] wait_on_page_bit+0x82/0xa0 > [] shrink_page_list+0x907/0x960 > [] shrink_inactive_list+0x2c7/0x680 > []

Re: [PATCH v5 13/25] m68k: add asm/syscall.h

2018-12-12 Thread Geert Uytterhoeven
Hi Dmitry, On Wed, Dec 12, 2018 at 10:27 AM Dmitry V. Levin wrote: > On Wed, Dec 12, 2018 at 10:01:29AM +0100, Geert Uytterhoeven wrote: > > On Wed, Dec 12, 2018 at 9:55 AM Dmitry V. Levin wrote: > > > On Mon, Dec 10, 2018 at 04:30:25PM +0300, Dmitry V. Levin wrote: > > > > On Mon, Dec 10, 2018

[GIT PULL] overlayfs fixes for 4.20-rc7

2018-12-12 Thread Miklos Szeredi
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git tags/ovl-fixes-4.20-rc7 Needed to revert a patch, because it possibly introduces a security hole. Since the patch is basically a conceptual cleanup, not a bug fix, it's safe to revert. I'm not giving

KASAN: use-after-free Read in handle_userfault (2)

2018-12-12 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:14cf8c1d5b90 Add linux-next specific files for 20181210 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=133296db40 kernel config: https://syzkaller.appspot.com/x/.config?x=c9133d0a4284c012

Re: [PATCH v2] cpuidle: Add 'above' and 'below' idle state metrics

2018-12-12 Thread Peter Zijlstra
On Tue, Dec 11, 2018 at 10:51:48AM +0100, Rafael J. Wysocki wrote: > On Mon, Dec 10, 2018 at 11:51 PM Peter Zijlstra wrote: > > Dunno; it could be cold cachelines, at which point it can be fairly > > expensive. Also, being stuck with API is fairly horrible if you want to > > 'fix' it. > > All

Re: [PATCH v4 1/2] dt-bindings: arm-smmu: Add binding doc for Qcom smmu-500

2018-12-12 Thread Vivek Gautam
Hi Will, On Fri, Oct 12, 2018 at 11:37 AM Vivek Gautam wrote: > > > > On 10/12/2018 3:46 AM, Rob Herring wrote: > > On Thu, 11 Oct 2018 15:19:29 +0530, Vivek Gautam wrote: > >> Qcom's implementation of arm,mmu-500 works well with current > >> arm-smmu driver implementation. Adding a soc specific

Re: [PATCH 1/2] dt-bindings: gpu: mali-midgard: Add resets property

2018-12-12 Thread Neil Armstrong
On 11/12/2018 17:58, Rob Herring wrote: > On Mon, Dec 10, 2018 at 7:22 AM Neil Armstrong > wrote: >> >> The Amlogic ARM Mali Midgard requires reset controls to power on and >> software reset the GPU, adds these as optional in the bindings. >> >> Signed-off-by: Neil Armstrong >> --- >>

  1   2   3   4   5   6   7   8   9   10   >