Re: [PATCH 2/6] statfs: use << to align with fs header

2018-04-13 Thread Randy Dunlap
On 04/13/2018 09:11 AM, Christian Brauner wrote: > Consistenly use << to define ST_* constants. This also aligns them with > their MS_* counterparts in fs.h > > Signed-off-by: Christian Brauner > --- > include/linux/statfs.h | 26 +- > 1 file changed, 13 insertions(+), 13

RE: [PATCH v3] gpio: dwapb: Add support for 1 interrupt per port A GPIO

2018-04-13 Thread Phil Edworthy
Hi Hoan, On 13 April 2018 17:37 Hoan Tran wrote: > On Fri, Apr 13, 2018 at 1:51 AM, Phil Edworthy wrote: > > The DesignWare GPIO IP can be configured for either 1 interrupt or 1 > > per GPIO in port A, but the driver currently only supports 1 interrupt. > > See the DesignWare DW_apb_gpio Databook

Re: [PATCH v1 3/7] platform/mellanox: mlxreg-hotplug: add extra cycle for hotplug work queue

2018-04-13 Thread Darren Hart
On Tue, Mar 27, 2018 at 10:02:03AM +, Vadim Pasternak wrote: > It adds missed logic for signal acknowledge, by adding an extra run for > work queue in case a signal is received, but no specific signal assertion > is detected. Such case theoretically can happen for example in case > several unit

Re: [PATCH 1/6] fs: use << for MS_* flags

2018-04-13 Thread Randy Dunlap
On 04/13/2018 09:11 AM, Christian Brauner wrote: > Consistenly use << to define MS_* constants. > > Signed-off-by: Christian Brauner > --- > include/uapi/linux/fs.h | 33 + > 1 file changed, 17 insertions(+), 16 deletions(-) > > diff --git a/include/uapi/linux/fs

[PATCH v2 3/3] Documentation/i2c: adopt kernel commenting style in examples

2018-04-13 Thread Sam Hansen
The example I2C code is rewritten to adopt the preferred kernel block commenting style. Signed-off-by: Sam Hansen --- Documentation/i2c/dev-interface | 57 + 1 file changed, 43 insertions(+), 14 deletions(-) diff --git a/Documentation/i2c/dev-interface b/Document

[PATCH v2 2/3] Documentation/i2c: sync docs with current state of i2c-tools

2018-04-13 Thread Sam Hansen
Currently, Documentation/i2c/dev-interface describes the use of i2c_smbus_* helper routines as static inlined functions provided by linux/i2c-dev.h. Work has been done to refactor the linux/i2c-dev.h file in the i2c-tools project out into its own library. As a result, these docs have become stale

[PATCH v2 1/3] Documentation/i2c: whitespace cleanup

2018-04-13 Thread Sam Hansen
This strips trailing whitespace in Documentation/i2c/dev-interface. Signed-off-by: Sam Hansen --- Documentation/i2c/dev-interface | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/i2c/dev-interface b/Documentation/i2c/dev-interface index d04e6e4964ee.

Re: [PATCH] base: dma-mapping: Postpone cpu addr translation on mmap()

2018-04-13 Thread Christoph Hellwig
Please send a v2.

Re: [RFC PATCH 3/4] acpi: apei: Do not panic() in NMI because of GHES messages

2018-04-13 Thread James Morse
Hi Alex, On 09/04/18 19:11, Alex G. wrote: > On 04/06/2018 01:24 PM, James Morse wrote: > Do you have any ETA on when your SEA patches are going to make it > upstream? There's not much point in updating my patchset if it's going > to conflict with your work. The SEA stuff went in with 7edda0886bc

Re: [PATCH 21/30] stack-protector: test compiler capability in Kconfig and drop AUTO mode

2018-04-13 Thread Kees Cook
On Thu, Apr 12, 2018 at 10:06 PM, Masahiro Yamada wrote: > +stackp-flags-$(CONFIG_CC_HAS_STACKPROTECTOR_NONE) := -fno-stack-protector > +stackp-flags-$(CONFIG_CC_STACKPROTECTOR) := -fstack-protector > +stackp-flags-$(CONFIG_CC_STACKPROTECTOR_STRONG) := -fstack-protector-strong > + > +KB

[PATCH v2 2/2] tracing/events: block: dev_t via driver core for plug and unplug events

2018-04-13 Thread Steffen Maier
Complements v2.6.31 commit 55782138e47d ("tracing/events: convert block trace points to TRACE_EVENT()") to be equivalent to traditional blktrace output. Also this allows event filtering to not always get all (un)plug events. NB: The NULL pointer check for q->kobj.parent is certainly racy and I don

Re: [PATCH v3 2/2] MIPS: io: add a barrier after register read in readX()

2018-04-13 Thread Sinan Kaya
On 4/13/2018 11:41 AM, David Laight wrote: > From: James Hogan >> Sent: 12 April 2018 22:52 >> On Tue, Apr 03, 2018 at 08:55:04AM -0400, Sinan Kaya wrote: >>> While a barrier is present in writeX() function before the register write, >>> a similar barrier is missing in the readX() function after th

Re: INFO: rcu detected stall in shrink_dcache_parent

2018-04-13 Thread syzbot
syzbot has found reproducer for the following crash on upstream commit 16e205cf42da1f497b10a4a24f563e6c0d574eec (Fri Apr 13 03:56:10 2018 +) Merge tag 'drm-fixes-for-v4.17-rc1' of git://people.freedesktop.org/~airlied/linux syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=8e4

[PATCH v2 14/14] staging: iio: Remove ad7746 from staging

2018-04-13 Thread Hernán Gonzalez
Signed-off-by: Hernán Gonzalez --- .../devicetree/bindings/staging/iio/cdc/ad7746.txt | 34 - drivers/staging/iio/cdc/Kconfig| 10 - drivers/staging/iio/cdc/Makefile | 1 - drivers/staging/iio/cdc/ad7746.c | 856 - dr

[PATCH v2 13/14] Move ad7746 out of staging

2018-04-13 Thread Hernán Gonzalez
Signed-off-by: Hernán Gonzalez --- .../devicetree/bindings/iio/cdc/ad7746.txt | 34 + drivers/iio/Kconfig| 1 + drivers/iio/Makefile | 1 + drivers/iio/cdc/Kconfig| 16 + drivers/iio/cdc/Makefi

[PATCH v2 12/14] staging: iio: ad7746: Add ABI documentation

2018-04-13 Thread Hernán Gonzalez
The use cases for this driver don't comply with the current ABI. The ad7746 and ad7152 need an external capacitance or voltage reference to automatically calibrate themselves which is not the normal use case of the calibscale and calibbias ABIs, a new ABI was needed. Signed-off-by: Hernán Gonzalez

[PATCH v2 11/14] staging: iio: ad7746: Add devicetree bindings documentation

2018-04-13 Thread Hernán Gonzalez
Cc: Rob Herring Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Hernán Gonzalez --- .../devicetree/bindings/staging/iio/cdc/ad7746.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/staging/iio/cdc/ad7746.txt d

[PATCH v2 09/14] staging: iio: ad7746: Add remove()

2018-04-13 Thread Hernán Gonzalez
This allows the driver to be probed and removed as a module powering it down on remove(). Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc

[PATCH v2 06/14] staging: iio: ad7746: Reorder variable declarations

2018-04-13 Thread Hernán Gonzalez
Reorder some variable declarations in an inverse-pyramid scheme. Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index 9ef476a..f53612

[PATCH v2 07/14] staging: iio: ad7746: Remove unused defines

2018-04-13 Thread Hernán Gonzalez
Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 7 --- drivers/staging/iio/cdc/ad7746.h | 5 - 2 files changed, 12 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index f53612a..d39ab34 100644 --- a/drivers/staging/iio/c

[PATCH v2 08/14] staging: iio: ad7746: Add dt-bindings

2018-04-13 Thread Hernán Gonzalez
This patch adds dt bindings by populating a pdata struct in order to modify as little as possible the existing code. It supports both platform_data and dt-bindings but uses only one depending on CONFIG_OF's value. Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 54 +

[PATCH v2 10/14] staging: iio: ad7746: Add comments

2018-04-13 Thread Hernán Gonzalez
Add comments to clarify some of the calculations made, specially when reading or writing values. Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 32 +++- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/drivers/staging/iio/cdc/ad774

[PATCH v2 04/14] staging: iio: ad7746: Fix multiple line dereference

2018-04-13 Thread Hernán Gonzalez
Clear checkpatch.pl WARNING about multiple line derefence but creates a new one of line over 80 characters. In my opinion, it improves readability. Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/st

[PATCH v2 01/14] staging: iio: ad7746: Automatically swap values in readings/writings

2018-04-13 Thread Hernán Gonzalez
Data to read or write was being handled with the swab16() macro instead of using i2c_smbus_{read,write}_swapped. Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746

[PATCH v2 02/14] staging: iio: ad7746: Adjust arguments to match open parenthesis

2018-04-13 Thread Hernán Gonzalez
Clear a couple more checkpatch.pl CHECKS. Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index 53e28ae..516aa93 100644 --- a/drivers/s

[PATCH v2 00/14] Move ad7746 driver out of staging

2018-04-13 Thread Hernán Gonzalez
Version 2 of the series trying to move ad7746 our of staging. Changes in v2: (v1-> https://lkml.org/lkml/2018/3/21/406) * Fix some issues pointed out by Jonathan * Power down device on remove * Add new ABI for the use case Hernán Gonzalez (14): staging: iio: ad7746: Automatically swap values in

[PATCH v2 05/14] staging: iio: ad7746: Reorder includes alphabetically

2018-04-13 Thread Hernán Gonzalez
Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index 82fac76..9ef476a 100644 --- a/drivers/staging/iio/cdc/ad7746.c +++ b/drivers

[PATCH v2 03/14] staging: iio: ad7746: Fix bound checkings

2018-04-13 Thread Hernán Gonzalez
Also remove unnecessary parenthesis Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index 516aa93..d793785 100644 --- a/drivers/staging/

Re: [RFC PATCH for 4.18 12/23] cpu_opv: Provide cpu_opv system call (v7)

2018-04-13 Thread Linus Torvalds
On Fri, Apr 13, 2018 at 5:16 AM, Mathieu Desnoyers wrote: > The vmalloc space needed by cpu_opv is bound by the number of pages > a cpu_opv call can touch. No it's not. You can have a thousand different processes doing cpu_opv at the same time. A *single* cpu_opv may me limited toi "only" a meg

[RFC v2] tracing/events: block: also try to get dev_t via driver core for some events

2018-04-13 Thread Steffen Maier
Complements v2.6.31 commit 55782138e47d ("tracing/events: convert block trace points to TRACE_EVENT()") for cases where rq->rq_disk == NULL: block_rq_requeue, block_rq_insert, block_rq_issue; and for cases where bio == NULL: block_getrq, block_sleeprq. NB: The NULL pointer check for q->kobj.pa

[PATCH v2 1/2] tracing/events: block: track and print if unplug was explicit or schedule

2018-04-13 Thread Steffen Maier
Just like blktrace distinguishes explicit and schedule by means of BLK_TA_UNPLUG_IO and BLK_TA_UNPLUG_TIMER, actually make use of the existing argument "explicit" to distinguish the two cases in the one common tracepoint block_unplug. Complements v2.6.39 commit 49cac01e1fa7 ("block: make unplug ti

Re: [[PATCH v2] 1/2] clk: qcom: clk-rpmh: Add QCOM RPMh clock driver

2018-04-13 Thread Rob Herring
On Sun, Apr 08, 2018 at 04:02:12PM +0530, Taniya Das wrote: > From: Amit Nischal > > Add the RPMh clock driver to control the RPMh managed clock resources on > some of the Qualcomm Technologies, Inc. SoCs. > > Signed-off-by: David Collins > Signed-off-by: Amit Nischal > Signed-off-by: Taniya D

[PATCH v2 0/2] tracing/events: block: bring more on a par with blktrace

2018-04-13 Thread Steffen Maier
I had the need to understand I/O request processing in detail. But I also had the need to enrich block traces with other trace events including my own dynamic kprobe events. So I preferred block trace events over blktrace to get everything nicely sorted into one ftrace output. However, I missed dev

Re: [PATCH v3] gpio: dwapb: Add support for 1 interrupt per port A GPIO

2018-04-13 Thread Hoan Tran
Hi Phil, On Fri, Apr 13, 2018 at 1:51 AM, Phil Edworthy wrote: > The DesignWare GPIO IP can be configured for either 1 interrupt or 1 > per GPIO in port A, but the driver currently only supports 1 interrupt. > See the DesignWare DW_apb_gpio Databook description of the > 'GPIO_INTR_IO' parameter.

Re: [PATCH v4 2/3] dt-bindings: power: supply: qcom_bms: Add bindings

2018-04-13 Thread Rob Herring
On Sat, Apr 07, 2018 at 06:57:45PM +0100, Craig Tatlor wrote: > Add bindings for the Qualcomm Battery Monitoring system. > > Signed-off-by: Craig Tatlor > --- > .../bindings/power/supply/qcom_bms.txt| 93 +++ > 1 file changed, 93 insertions(+) > create mode 100644 > Doc

Compliment of the day

2018-04-13 Thread Tracy William
-- Hi dear. It is wonderful to contact you, I want us to have correspondence. I wish you will have the desire so that we can get acquainted to each other. Life itself is a mystery, you never know where it might lead you. I'm Tracy.William, a French American . I will be pleased if you reply thro

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-13 Thread Linus Torvalds
On Fri, Apr 13, 2018 at 2:42 AM, Russell King - ARM Linux wrote: > > Yes, it does solve the problem at hand with strace - the exact patch I > tested against 4.16 is below. Ok, good. > However, FPE_FLTUNK is not defined in older kernels, so while we can > fix it this way for the current merge win

Re: [PATCH RFC 7/8] mm: allow to control onlining/offlining of memory by a driver

2018-04-13 Thread David Hildenbrand
On 13.04.2018 17:59, Michal Hocko wrote: > On Fri 13-04-18 15:33:28, David Hildenbrand wrote: >> Some devices (esp. paravirtualized) might want to control >> - when to online/offline a memory block >> - how to online memory (MOVABLE/NORMAL) >> - in which granularity to online/offline memory >> >> S

Re: [PATCH] base: dma-mapping: Postpone cpu addr translation on mmap()

2018-04-13 Thread jacopo mondi
Hello again, On Tue, Apr 10, 2018 at 09:57:52AM +0200, jacopo mondi wrote: > Hi Christoph, > > On Mon, Apr 09, 2018 at 10:52:51AM -0700, Christoph Hellwig wrote: > > On Mon, Apr 09, 2018 at 06:59:08PM +0200, Jacopo Mondi wrote: > > > I'm still a bit puzzled on what happens if dma_mmap_from_dev_coh

Re: [PATCH v8 2/2] drm: bridge: Add thc63lvd1024 LVDS decoder driver

2018-04-13 Thread jacopo mondi
Hello, small self review, as I've just noticed a trivial error. On Tue, Apr 10, 2018 at 12:53:10PM +0200, Jacopo Mondi wrote: > Add DRM bridge driver for Thine THC63LVD1024 LVDS to digital parallel > output converter. > > Signed-off-by: Jacopo Mondi > Reviewed-by: Andrzej Hajda > Reviewed-by:

Re: [PATCH v1 2/7] platform/mellanox: mlxreg-hotplug: Document fixes for hotplug private data

2018-04-13 Thread Darren Hart
On Tue, Mar 27, 2018 at 10:02:02AM +, Vadim Pasternak wrote: > Add missing description of dev, regmap, dwork_irq, after_probe in struct > mlxreg_hotplug_priv_data. > > Remove dwork field from the structure mlxreg_hotplug_priv_data itself and > for the descriptions, since it is not used. > A

Re: [PATCH v2 14/17] kvm: arm64: Switch to per VM IPA limit

2018-04-13 Thread Punit Agrawal
Hi Suzuki, I haven't had a chance to look at the code but noticed one issue below. Suzuki K Poulose writes: > Now that we can manage the stage2 page table per VM, switch the > configuration details to per VM instance. We keep track of the > IPA bits, number of page table levels and the VTCR bit

Re: [PATCH RESEND] backlight: pwm_bl: don't use GPIOF_* with gpiod_get_direction

2018-04-13 Thread Daniel Thompson
On Fri, Apr 13, 2018 at 06:08:24PM +0200, Daniel Vetter wrote: > On Wed, Apr 11, 2018 at 09:32:16AM +0200, Simon Horman wrote: > > On Tue, Apr 10, 2018 at 02:32:40PM +0200, Wolfram Sang wrote: > > > The documentation was wrong, gpiod_get_direction() returns 0/1 instead > > > of the GPIOF_* flags. T

Re: [RFC PATCH v3 1/3] ima: extend clone() with IMA namespace support

2018-04-13 Thread Mimi Zohar
[Cc'ing John Johansen] On Tue, 2018-03-27 at 18:01 -0500, Eric W. Biederman wrote: [...] > As such I expect the best way to create the ima namespace is by simply > writing to securityfs/imafs. Possibly before the user namespace is > even unshared. That would allow IMA to keep track of things fro

Re: [PATCH ipmi/kcs_bmc v1] ipmi: add an NPCM7xx KCS BMC driver

2018-04-13 Thread Wang, Haiyue
Thanks, Corey. BR, Haiyue On 2018-04-13 23:56, Corey Minyard wrote: On 03/22/2018 07:50 AM, Haiyue Wang wrote: This driver exposes the Keyboard Controller Style (KCS) interface on Novoton NPCM7xx SoCs as a character device. Such SOCs are commonly used as a BaseBoard Management Controller (BM

Re: [PATCH 2/3] dt-bindings: add binding for at91-usart in spi mode

2018-04-13 Thread Alexandre Belloni
On 13/04/2018 19:11:16+0300, Radu Pirea wrote: > These are bindings for at91-usart IP in spi spi mode. There is no support for > internal chip select. Only kind of chip selects available are gpio chip > selects. > > Signed-off-by: Radu Pirea > --- > .../bindings/spi/microchip,at91-usart-spi.txt

Re: [PATCH v1 1/7] platform_data/mlxreg: Document fixes for hotplug device

2018-04-13 Thread Darren Hart
On Tue, Mar 27, 2018 at 10:02:01AM +, Vadim Pasternak wrote: > Remove redunadant description of label in struct mlxreg_hotplug_device. ^ redundant Please configure a spell checker in your text editor. I take care of these for first time contributors, but as you become a regular contr

Re: [PATCH 17/17] perf annotate: Handle variables in 'sub', 'or' and many other instructions

2018-04-13 Thread Andi Kleen
On Fri, Apr 13, 2018 at 11:01:11AM -0300, Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > Just like is done for 'mov' and others that can have as source or > targets variables resolved by objdump, to make them more compact: > > - orb$0x4,0x224d71(%rip)

Re: [PATCH v1 0/7] platform/x86: Mellanox add fixes and new features

2018-04-13 Thread Darren Hart
On Tue, Mar 27, 2018 at 10:02:00AM +, Vadim Pasternak wrote: > This patcheset includes: > > Document fixes for mlxreg-hotplug driver and mlxreg header file. > > Fix for the race condition in mlxreg-hotplug driver. > > Adding support for ODM system types. > > Activation of Mellanox LED drive

Re: [PATCH] mmap.2: MAP_FIXED is okay if the address range has been reserved

2018-04-13 Thread Jann Horn
On Fri, Apr 13, 2018 at 6:05 PM, Jann Horn wrote: > On Fri, Apr 13, 2018 at 6:04 PM, Michal Hocko wrote: >> On Fri 13-04-18 17:04:09, Jann Horn wrote: >>> On Fri, Apr 13, 2018 at 8:49 AM, Michal Hocko wrote: >>> > On Fri 13-04-18 08:43:27, Michael Kerrisk wrote: >>> > [...] >>> >> So, you mean r

Re: [PATCH v5 01/10] drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs

2018-04-13 Thread Lina Iyer
On Tue, Apr 10 2018 at 17:40 -0600, Bjorn Andersson wrote: On Thu 05 Apr 09:18 PDT 2018, Lina Iyer wrote: [..] diff --git a/drivers/soc/qcom/rpmh-internal.h b/drivers/soc/qcom/rpmh-internal.h [..] +/** + * struct tcs_response: Response object for a request + * + * @drv: the controller + * @m

[PATCH] drm/amdgpu/acp: Fix slab-out-of-bounds in mfd_add_device in acp_hw_init

2018-04-13 Thread Daniel Kurtz
Commit 51f7415039d4 ("drm/amd/amdgpu: creating two I2S instances for stoney/cz") added support for the "BT_I2S" ACP i2s channel. As part of this change, one additional acp resource was added, but the "num_resource" count was accidentally incremented by 2. This incorrect count eventually causes mf

[PATCH 1/6] fs: use << for MS_* flags

2018-04-13 Thread Christian Brauner
Consistenly use << to define MS_* constants. Signed-off-by: Christian Brauner --- include/uapi/linux/fs.h | 33 + 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/include/uapi/linux/fs.h b/include/uapi/linux/fs.h index d2a8313fabd7..9662790a657c 100

[PATCH 3/6] statfs: add ST_UNBINDABLE

2018-04-13 Thread Christian Brauner
This lets userspace query whether a mountpoint was made MS_UNBINDABLE. Signed-off-by: Christian Brauner --- fs/statfs.c| 2 ++ include/linux/statfs.h | 1 + 2 files changed, 3 insertions(+) diff --git a/fs/statfs.c b/fs/statfs.c index 5b2a24f0f263..61b3063d3921 100644 --- a/fs/statf

[PATCH 0/6] statfs: handle mount propagation

2018-04-13 Thread Christian Brauner
Hey, This little series - unifies the definition of constants in statfs.h and fs.h - extends statfs to handle mount propagation. This will let userspace easily query a given mountpoint for MS_UNBINDABLE, MS_SHARED, MS_PRIVATE and MS_SLAVE without always having to do costly parsing of /proc//

[PATCH 6/6] statfs: add ST_SLAVE

2018-04-13 Thread Christian Brauner
This lets userspace query whether a mountpoint was made MS_SLAVE. Signed-off-by: Christian Brauner --- fs/statfs.c| 10 +- include/linux/statfs.h | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/fs/statfs.c b/fs/statfs.c index 26cda2586d7e..86e957d16a68

[PATCH 2/6] statfs: use << to align with fs header

2018-04-13 Thread Christian Brauner
Consistenly use << to define ST_* constants. This also aligns them with their MS_* counterparts in fs.h Signed-off-by: Christian Brauner --- include/linux/statfs.h | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/include/linux/statfs.h b/include/li

[PATCH 5/6] statfs: add ST_PRIVATE

2018-04-13 Thread Christian Brauner
This lets userspace query whether a mountpoint was made MS_PRIVATE. Signed-off-by: Christian Brauner --- fs/statfs.c| 2 ++ include/linux/statfs.h | 1 + 2 files changed, 3 insertions(+) diff --git a/fs/statfs.c b/fs/statfs.c index 2fc6f9c3793c..26cda2586d7e 100644 --- a/fs/statfs.c

[PATCH 4/6] statfs: add ST_SHARED

2018-04-13 Thread Christian Brauner
This lets userspace query whether a mountpoint was made MS_SHARED. Signed-off-by: Christian Brauner --- fs/statfs.c| 2 ++ include/linux/statfs.h | 1 + 2 files changed, 3 insertions(+) diff --git a/fs/statfs.c b/fs/statfs.c index 61b3063d3921..2fc6f9c3793c 100644 --- a/fs/statfs.c

[PATCH 0/3] Driver for AT91 USART in SPI mode

2018-04-13 Thread Radu Pirea
Hello, I wrote this driver for USART IP that is found in AT91 and SAMA5 SoCs. The IP has an internal chip select, but is not used because is deasserted and asserted after every byte sent over the wires. Gpio chip selects are used instead of internal one. The driver works with actual USART nodes fr

[PATCH 2/3] dt-bindings: add binding for at91-usart in spi mode

2018-04-13 Thread Radu Pirea
These are bindings for at91-usart IP in spi spi mode. There is no support for internal chip select. Only kind of chip selects available are gpio chip selects. Signed-off-by: Radu Pirea --- .../bindings/spi/microchip,at91-usart-spi.txt | 24 +++ 1 file changed, 24 insertions(+) c

[PATCH 1/3] MAINTAINERS: add usart spi driver

2018-04-13 Thread Radu Pirea
Add entry for at91 usart spi driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8e2a2fddbd19..8f80d0e30573 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9192,6 +9192,13 @@ S: Supported F: driver

[PATCH 3/3] spi: at91-usart: add driver for at91-usart as spi

2018-04-13 Thread Radu Pirea
This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea --- drivers/spi/Kconfig

Re: [PATCH v3 3/3] ALSA: hda: Disabled unused audio controller for Dell platforms with Switchable Graphics

2018-04-13 Thread Darren Hart
On Thu, Apr 12, 2018 at 10:15:41PM +0800, Kai-Heng Feng wrote: > at 6:59 PM, Pali Rohár wrote: > > > On Thursday 12 April 2018 12:50:02 Takashi Iwai wrote: > > > > +#if IS_ENABLED(CONFIG_DELL_LAPTOP) > > > > +static bool check_dell_switchable_gfx(struct pci_dev *pdev) > > > > +{ > > > > + b

Re: [PATCH RESEND] backlight: pwm_bl: don't use GPIOF_* with gpiod_get_direction

2018-04-13 Thread Daniel Vetter
On Wed, Apr 11, 2018 at 09:32:16AM +0200, Simon Horman wrote: > On Tue, Apr 10, 2018 at 02:32:40PM +0200, Wolfram Sang wrote: > > The documentation was wrong, gpiod_get_direction() returns 0/1 instead > > of the GPIOF_* flags. The docs were fixed with commit 94fc73094abe47 > > ("gpio: correct docs

RE: [RFC 02/10] PCI: cadence: Update cdns_pcie_ep_raise_irq function signature

2018-04-13 Thread Alan Douglas
On Tue, Apr 10 at 18.15, Gustavo Pimentel wrote: > From: Gustavo Pimentel [mailto:gustavo.pimen...@synopsys.com] > Changes the cdns_pcie_ep_raise_irq function signature, namely the > interrupt_num variable type from u8 to u16 to accommodate the MSI-X > maximum interrupts of 2048. > > Signed-off-by

Re: [PATCH] mmap.2: MAP_FIXED is okay if the address range has been reserved

2018-04-13 Thread Jann Horn
On Fri, Apr 13, 2018 at 6:04 PM, Michal Hocko wrote: > On Fri 13-04-18 17:04:09, Jann Horn wrote: >> On Fri, Apr 13, 2018 at 8:49 AM, Michal Hocko wrote: >> > On Fri 13-04-18 08:43:27, Michael Kerrisk wrote: >> > [...] >> >> So, you mean remove this entire paragraph: >> >> >> >> For

Re: [PATCH 1/2] X86/KVM: Properly update 'tsc_offset' to represent the running guest

2018-04-13 Thread Paolo Bonzini
On 13/04/2018 18:02, Jim Mattson wrote: > On Fri, Apr 13, 2018 at 4:23 AM, Paolo Bonzini wrote: >> From: KarimAllah Ahmed >> >> Update 'tsc_offset' on vmenty/vmexit of L2 guests to ensure that it always >> captures the TSC_OFFSET of the running guest whether it is the L1 or L2 >> guest. >> >> Cc:

Re: [PATCH] mmap.2: MAP_FIXED is okay if the address range has been reserved

2018-04-13 Thread Michal Hocko
On Fri 13-04-18 17:04:09, Jann Horn wrote: > On Fri, Apr 13, 2018 at 8:49 AM, Michal Hocko wrote: > > On Fri 13-04-18 08:43:27, Michael Kerrisk wrote: > > [...] > >> So, you mean remove this entire paragraph: > >> > >> For cases in which the specified memory region has not been > >>

Re: [PATCH 1/2] X86/KVM: Properly update 'tsc_offset' to represent the running guest

2018-04-13 Thread Jim Mattson
On Fri, Apr 13, 2018 at 4:23 AM, Paolo Bonzini wrote: > From: KarimAllah Ahmed > > Update 'tsc_offset' on vmenty/vmexit of L2 guests to ensure that it always > captures the TSC_OFFSET of the running guest whether it is the L1 or L2 > guest. > > Cc: Jim Mattson > Cc: Paolo Bonzini > Cc: Radim Kr

Re: [PATCH 8/8] drm/arm/malidp: Added the late system pm functions

2018-04-13 Thread Brian Starkey
Hi Daniel, On Fri, Apr 13, 2018 at 05:44:09PM +0200, Daniel Vetter wrote: On Mon, Apr 09, 2018 at 05:15:08PM +0100, Brian Starkey wrote: Hi Daniel, On Mon, Apr 09, 2018 at 10:23:37AM +0200, Daniel Vetter wrote: > On Fri, Apr 06, 2018 at 08:02:16PM +0100, Ayan Halder wrote: > > On Tue, Mar 27,

Re: [PATCH] Documentation/i2c: sync docs with current state of i2c-tools.

2018-04-13 Thread Sam Hansen
On Fri, Apr 13, 2018 at 5:13 AM, Jean Delvare wrote: > Hi Wolfram, Sam, > > On Fri, 13 Apr 2018 00:24:57 +0200, Wolfram Sang wrote: >> On Thu, Apr 12, 2018 at 02:33:42PM -0700, Sam Hansen wrote: >> > Currently, Documentation/i2c/dev-interface describes the use of i2c_smbus_* >> > helper routines a

Re: [PATCH RFC 7/8] mm: allow to control onlining/offlining of memory by a driver

2018-04-13 Thread Michal Hocko
On Fri 13-04-18 15:33:28, David Hildenbrand wrote: > Some devices (esp. paravirtualized) might want to control > - when to online/offline a memory block > - how to online memory (MOVABLE/NORMAL) > - in which granularity to online/offline memory > > So let's add a new flag "driver_managed" and disa

Re: [RFC PATCH 24/35] Revert "ovl: fix relatime for directories"

2018-04-13 Thread Vivek Goyal
On Thu, Apr 12, 2018 at 05:08:15PM +0200, Miklos Szeredi wrote: > This reverts commit cd91304e7190b4c4802f8e413ab2214b233e0260. > > Overlayfs no longer relies on the vfs correct atime handling. > > Signed-off-by: Miklos Szeredi > --- > fs/inode.c | 21 - > fs/ove

Re: [PATCH ipmi/kcs_bmc v1] ipmi: add an NPCM7xx KCS BMC driver

2018-04-13 Thread Corey Minyard
On 03/22/2018 07:50 AM, Haiyue Wang wrote: This driver exposes the Keyboard Controller Style (KCS) interface on Novoton NPCM7xx SoCs as a character device. Such SOCs are commonly used as a BaseBoard Management Controller (BMC) on a server board, and KCS interface is commonly used to perform the i

Re: net: hang in unregister_netdevice: waiting for lo to become free

2018-04-13 Thread Dmitry Vyukov
On Fri, Apr 13, 2018 at 2:43 PM, Dan Streetman wrote: > On Thu, Apr 12, 2018 at 8:15 AM, Dmitry Vyukov wrote: >> On Wed, Feb 21, 2018 at 3:53 PM, Tommi Rantala >> wrote: >>> On 20.02.2018 18:26, Neil Horman wrote: On Tue, Feb 20, 2018 at 09:14:41AM +0100, Dmitry Vyukov wrote: > >>>

[PATCH v7 5/5] crypto: add flag for unstable encoding

2018-04-13 Thread Benjamin Warnke
The data-format of zBeWalgo, and some other algorithms is unstable. To identify such unstable algorithms this patch adds a new flag to the crypto-api. Signed-off-by: Benjamin Warnke <4bwar...@informatik.uni-hamburg.de> --- crypto/zbewalgo.c | 2 +- include/linux/crypto.h | 6 ++ 2 files

[PATCH v7 2/5] crypto: add zBeWalgo to crypto-api

2018-04-13 Thread Benjamin Warnke
This patch adds zBeWalgo to the crypto api so that zBeWalgo can be used by zram. Signed-off-by: Benjamin Warnke <4bwar...@informatik.uni-hamburg.de> --- crypto/Kconfig | 12 crypto/Makefile| 1 + crypto/testmgr.c | 10 +++ crypto/testmgr.h | 13

[PATCH v7 4/5] crypto: configurable compression level

2018-04-13 Thread Benjamin Warnke
Most compression algorithms published by the crypto api are supporting multiple different compression levels. The crypto api currently just calls these algorithms with their default compression level. This patch enables the caller to specify the compression level. Signed-off-by: Benjamin Warnke <

[PATCH v7 3/5] crypto: add unsafe decompression to api

2018-04-13 Thread Benjamin Warnke
Up to Version 3 of this patch the decompressor of zbewalgo did not verify that there is no overflow in the output buffer. Now zbewalgo includes a safe decompressor which does check for buffer overflows and heap-error. ZBewalgo and other Algorithms like lz4 include an unsafe decompressor version, wh

[PATCH v7 1/5] add compression algorithm zBeWalgo

2018-04-13 Thread Benjamin Warnke
zBeWalgo is a completely new algorithm - Currently it is not published somewhere else right now, googleing it would not show up any results. The following section describes how the algorithm works. zBeWalgo itself is a container compression algorithm, which can execute multiple different compressi

[PATCH v7 0/5] add compression algorithm zBeWalgo

2018-04-13 Thread Benjamin Warnke
This patch series adds a new compression algorithm to the kernel and to the crypto api. Changes since v6: - Fixed git apply error due to other recently applied patches Changes since v5: - Fixed compile-error due to variable definitions inside #ifdef CONFIG_ZRAM_WRITEBACK Changes since v4: - Fix

Re: [PATCH 8/8] drm/arm/malidp: Added the late system pm functions

2018-04-13 Thread Daniel Vetter
On Mon, Apr 09, 2018 at 05:15:08PM +0100, Brian Starkey wrote: > Hi Daniel, > > On Mon, Apr 09, 2018 at 10:23:37AM +0200, Daniel Vetter wrote: > > On Fri, Apr 06, 2018 at 08:02:16PM +0100, Ayan Halder wrote: > > > On Tue, Mar 27, 2018 at 01:09:36PM +0200, Daniel Vetter wrote: > > > > On Tue, Mar 2

RE: [PATCH v3 2/2] MIPS: io: add a barrier after register read in readX()

2018-04-13 Thread David Laight
From: James Hogan > Sent: 12 April 2018 22:52 > On Tue, Apr 03, 2018 at 08:55:04AM -0400, Sinan Kaya wrote: > > While a barrier is present in writeX() function before the register write, > > a similar barrier is missing in the readX() function after the register > > read. This could allow memory ac

[GIT PULL] arch/sh updates for 4.17

2018-04-13 Thread Rich Felker
Hi Linus, Please pull these changes for arch/sh. Some of them have been pending (and in linux-next) for a long time and address longstanding issues. Rich The following changes since commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda: Linux 4.16 (2018-04-01 14:20:27 -0700) are available in th

Re: [PATCH v5 01/10] drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs

2018-04-13 Thread Lina Iyer
On Tue, Apr 10 2018 at 22:39 -0600, Stephen Boyd wrote: Quoting Lina Iyer (2018-04-05 09:18:25) Add controller driver for QCOM SoCs that have hardware based shared resource management. The hardware IP known as RSC (Resource State Coordinator) houses multiple Direct Resource Voter (DRV) for diffe

Re: [RfC PATCH] Add udmabuf misc device

2018-04-13 Thread Daniel Vetter
On Wed, Apr 11, 2018 at 08:59:32AM +0300, Oleksandr Andrushchenko wrote: > On 04/10/2018 08:26 PM, Dongwon Kim wrote: > > On Tue, Apr 10, 2018 at 09:37:53AM +0300, Oleksandr Andrushchenko wrote: > > > On 04/06/2018 09:57 PM, Dongwon Kim wrote: > > > > On Fri, Apr 06, 2018 at 03:36:03PM +0300, Oleks

Re: [PATCH 1/2] X86/KVM: Properly update 'tsc_offset' to represent the running guest

2018-04-13 Thread Paolo Bonzini
On 13/04/2018 14:40, Raslan, KarimAllah wrote: >> >> static void update_ia32_tsc_adjust_msr(struct kvm_vcpu *vcpu, s64 offset) >> { >> -u64 curr_offset = vcpu->arch.tsc_offset; >> +u64 curr_offset = kvm_x86_ops->read_l1_tsc_offset(vcpu); > I might be missing something but is this really

RE: [PATCH v5 05/14] PCI: Add pcie_print_link_status() to log link speed and whether it's limited

2018-04-13 Thread Keller, Jacob E
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Friday, April 13, 2018 7:07 AM > To: Jakub Kicinski > Cc: Tal Gilboa ; Tariq Toukan ; > Keller, Jacob E ; Ariel Elior > ; > Ganesh Goudar ; Kirsher, Jeffrey T > ; everest-linux...@cavium.com; intel-wired- > l

Re: [PATCHv2 1/3] dt-bindings: misc: achc: Make ezport distinguishable

2018-04-13 Thread Rob Herring
On Mon, Apr 9, 2018 at 4:13 PM, Sebastian Reichel wrote: > Hi, > > On Mon, Apr 09, 2018 at 01:57:27PM -0500, Rob Herring wrote: >> On Tue, Mar 27, 2018 at 03:52:57PM +0200, Sebastian Reichel wrote: >> > This updates the GE ACHC binding, so that different compatible >> > strings are used for the pr

Re: [PATCH] kasan: add no_sanitize attribute for clang builds

2018-04-13 Thread Andrey Ryabinin
On 04/12/2018 08:29 PM, Andrey Konovalov wrote: > KASAN uses the __no_sanitize_address macro to disable instrumentation > of particular functions. Right now it's defined only for GCC build, > which causes false positives when clang is used. > > This patch adds a definition for clang. > > Note,

[PATCH v2] drm/arm/malidp: Ensure that the crtcs are shutdown before removing any encoder/connector

2018-04-13 Thread Ayan Kumar Halder
One needs to ensure that the crtcs are shutdown so that the drm_crtc_state->connector_mask reflects that no connectors are currently active. Further, it reduces the reference count for each connector. This ensures that the connectors and encoders can be cleanly removed either when _unbind is called

Re: KASAN: slab-out-of-bounds Write in perf_callchain_user

2018-04-13 Thread Jiri Olsa
On Thu, Apr 12, 2018 at 03:02:01AM -0700, syzbot wrote: > Hello, > > syzbot hit the following crash on bpf-next commit > 17dec0a949153d9ac00760ba2f5b78cb583e995f (Wed Apr 4 02:15:32 2018 +) > Merge branch 'userns-linus' of > git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace

[PATCH] lockdown: fix coordination of kernel module signature verification

2018-04-13 Thread Mimi Zohar
If both IMA-appraisal and sig_enforce are enabled, then both signatures are currently required. If the IMA-appraisal signature verification fails, it could rely on the appended signature verification; but with the lockdown patch set, the appended signature verification assumes that if IMA-appraisa

Re: [PATCH net] virtio-net: add missing virtqueue kick when flushing packets

2018-04-13 Thread David Miller
From: Jason Wang Date: Fri, 13 Apr 2018 14:58:25 +0800 > We tends to batch submitting packets during XDP_TX. This requires to > kick virtqueue after a batch, we tried to do it through > xdp_do_flush_map() which only makes sense for devmap not XDP_TX. So > explicitly kick the virtqueue in this cas

Re: [RFC v2] virtio: support packed ring

2018-04-13 Thread Michael S. Tsirkin
On Sun, Apr 01, 2018 at 10:12:16PM +0800, Tiwei Bie wrote: > +static inline bool more_used(const struct vring_virtqueue *vq) > +{ > + return vq->packed ? more_used_packed(vq) : more_used_split(vq); > +} > + > +void *virtqueue_get_buf_ctx_split(struct virtqueue *_vq, unsigned int *len, > +

Re: [PATCH v3 4/4] DTS: Bindings: pca953x: add example how to use interrupt-controller and gpio-controller

2018-04-13 Thread Rob Herring
On Tue, Apr 10, 2018 at 11:07 AM, H. Nikolaus Schaller wrote: > It is not completely obvious that these are required and > how to use them. So we provide a tested example. > > Signed-off-by: H. Nikolaus Schaller > --- > .../devicetree/bindings/gpio/gpio-pca953x.txt | 33 > +

Re: [PATCH] soc: ti: knav_qmss: Use percpu instead atomic for stats counter

2018-04-13 Thread santosh.shilim...@oracle.com
On 4/11/18 3:28 PM, santosh.shilim...@oracle.com wrote: On 4/11/18 12:16 PM, Vasyl Gomonovych wrote: Hwqueue has collect statistics in heavy use queue_pop/queu_push functions for cache efficiency and make push/pop faster use percpu variables. For performance reasons, driver should keep descripto

[PATCH 1/3] USB: musb: dsps: drop duplicate phy initialisation

2018-04-13 Thread Johan Hovold
Since commit 39cee200c23e ("usb: musb: core: call init and shutdown for the usb phy") the musb USB phy is initialised by musb_core, but the original initialisation in the dsps-glue init callback was left in place resulting in two calls to phy init during probe (and similarly, two shutdowns on remov

[PATCH 0/3] USB: musb: dsps: phy fix and DT-topology support

2018-04-13 Thread Johan Hovold
I've been carrying a patch out-of-tree since my work on improving the USB device-tree support which is needed to be able to describe USB topologies for musb based controllers. This patch, which associates the platform controller device with the glue device device-tree node, did not play well with

<    1   2   3   4   5   6   7   >