Re: [PATCH v4 1/2] fork: extend clone3() to support CLONE_SET_TID

2019-08-09 Thread Adrian Reber
On Sat, Aug 10, 2019 at 03:10:34AM +0200, Christian Brauner wrote: > On Thu, Aug 08, 2019 at 11:22:21PM +0200, Adrian Reber wrote: > > The main motivation to add set_tid to clone3() is CRIU. > > > > To restore a process with the same PID/TID CRIU currently uses > > /proc/sys/kernel/ns_last_pid.

Re: [RFC PATCH v4 9/9] printk: use a new ringbuffer implementation

2019-08-09 Thread Thomas Gleixner
On Fri, 9 Aug 2019, Linus Torvalds wrote: > On Thu, Aug 8, 2019 at 11:14 PM Peter Zijlstra wrote: > > Note that you can hook this into printk as a fake early serial device; > > just have the serial device write to the DRAM buffer. > > No, you really really can't. ... > Even the "early console"

[PATCH v5 13/18] thermal: sun8i: add thermal driver for A64

2019-08-09 Thread Yangtao Li
From: Vasily Khoruzhick Thermal sensor controller in A64 is similar to H3, but it has 3 sensors. Extend H3 functions to add support for multiple sensors. Signed-off-by: Vasily Khoruzhick --- drivers/thermal/sun8i_thermal.c | 12 1 file changed, 12 insertions(+) diff --git

[PATCH v5 18/18] thermal: sun8i: add support for Allwinner R40 thermal sensor

2019-08-09 Thread Yangtao Li
From: Icenowy Zheng The thermal sensor in Allwinner R40 SoC is quite similar to the one in Allwinner A64 SoC, with only slightly different temperature calculation formula. Signed-off-by: Icenowy Zheng --- drivers/thermal/sun8i_thermal.c | 12 1 file changed, 12 insertions(+)

[PATCH v5 17/18] dt-bindings: thermal: add binding document for r40 thermal controller

2019-08-09 Thread Yangtao Li
This patch adds binding document for allwinner r40 thermal controller. Signed-off-by: Yangtao Li --- Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml

[PATCH v5 16/18] thermal: sun8i: add support for Allwinner H5 thermal sensor

2019-08-09 Thread Yangtao Li
From: Icenowy Zheng The thermal sensor in Allwinner H5 has 2 sensors, and they have a special segmented temperature calculation formula. Add support for this thermal sensor. Signed-off-by: Icenowy Zheng --- drivers/thermal/sun8i_thermal.c | 21 + 1 file changed, 21

[PATCH v5 03/18] thermal: fix indentation in makefile

2019-08-09 Thread Yangtao Li
To unify code style. Signed-off-by: Yangtao Li --- drivers/thermal/Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile index fa6f8b206281..d7eafb5ef8ef 100644 --- a/drivers/thermal/Makefile +++

[PATCH v5 12/18] dt-bindings: thermal: add binding document for a64 thermal controller

2019-08-09 Thread Yangtao Li
This patch adds binding document for allwinner a64 thermal controller. Signed-off-by: Yangtao Li --- Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml

[PATCH v5 08/18] thermal: sun8i: support mod clocks

2019-08-09 Thread Yangtao Li
H3 has extra clock, so introduce something in ths_thermal_chip/ths_device and adds the process of the clock. This is pre-work for supprt it. Signed-off-by: Yangtao Li --- drivers/thermal/sun8i_thermal.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git

[PATCH v5 09/18] thermal: sun8i: rework for ths calibrate func

2019-08-09 Thread Yangtao Li
Here, we do something to prepare for the subsequent support of multiple platforms. 1) rename sun50i_ths_calibrate to sun8i_ths_calibrate, because this function should be suitable for all platforms now. 2) introduce calibrate callback to mask calibration method differences. Signed-off-by:

[PATCH v5 10/18] dt-bindings: thermal: add binding document for h3 thermal controller

2019-08-09 Thread Yangtao Li
This patch adds binding document for allwinner h3 thermal controller. Signed-off-by: Yangtao Li --- .../bindings/thermal/sun8i-thermal.yaml | 81 ++- 1 file changed, 78 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml

[PATCH v5 06/18] thermal: sun8i: get ths init func from device compatible

2019-08-09 Thread Yangtao Li
There are some differences in register initialization for different socs. So we get different initialization functions from device compatible. Signed-off-by: Yangtao Li --- drivers/thermal/sun8i_thermal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v5 15/18] thermal: sun8i: allow to use custom temperature calculation function

2019-08-09 Thread Yangtao Li
From: Icenowy Zheng The H5 temperature calculation function is strange. Firstly, it's segmented. Secondly, the formula of two sensors are different in the second segment. Allow to use a custom temperature calculation function, in case of the function is complex. Signed-off-by: Icenowy Zheng

[PATCH v5 04/18] thermal: sun8i: get ths sensor number from device compatible

2019-08-09 Thread Yangtao Li
For different socs, the number of ths sensors is different. So we need to do some work in order to support more soc. Signed-off-by: Yangtao Li --- drivers/thermal/sun8i_thermal.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git

[PATCH v5 14/18] dt-bindings: thermal: add binding document for h5 thermal controller

2019-08-09 Thread Yangtao Li
This patch adds binding document for allwinner h5 thermal controller. Signed-off-by: Yangtao Li --- Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml

[PATCH v5 13/18] thermal: sun8i: add thermal driver for A64

2019-08-09 Thread Yangtao Li
From: Vasily Khoruzhick Thermal sensor controller in A64 is similar to H3, but it has 3 sensors. Extend H3 functions to add support for multiple sensors. Signed-off-by: Vasily Khoruzhick --- drivers/thermal/sun8i_thermal.c | 12 1 file changed, 12 insertions(+) diff --git

[PATCH v5 11/18] thermal: sun8i: add thermal driver for h3

2019-08-09 Thread Yangtao Li
This patch adds the support for allwinner h3 thermal sensor. Signed-off-by: Yangtao Li --- drivers/thermal/sun8i_thermal.c | 91 + 1 file changed, 91 insertions(+) diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_thermal.c index

[PATCH v5 07/18] thermal: sun8i: rework for ths irq handler func

2019-08-09 Thread Yangtao Li
Here, we do something to prepare for the subsequent support of multiple platforms. 1) rename sun50i_h6_irq_thread to sun8i_irq_thread, because this function should be suitable for all platforms. 2) introduce irq_ack callback to mask interrupt register differences. Signed-off-by: Yangtao

[PATCH v5 05/18] thermal: sun8i: rework for sun8i_ths_get_temp()

2019-08-09 Thread Yangtao Li
For different socs, the way they get and calculate the temperature is roughly the same. So get the difference from device compatible. Difference point: 1) temperature calculation formula parameters 2) ths data register start address Signed-off-by: Yangtao Li ---

[PATCH v5 00/18] add thermal driver for h6

2019-08-09 Thread Yangtao Li
This patchset add support for A64, H3, H5, H6 and R40 thermal sensor. Thx to Icenowy and Vasily. BTY, do a cleanup in thermal makfile. Icenowy Zheng (3): thermal: sun8i: allow to use custom temperature calculation function thermal: sun8i: add support for Allwinner H5 thermal sensor

[PATCH v5 02/18] dt-bindings: thermal: add binding document for h6 thermal controller

2019-08-09 Thread Yangtao Li
This patch adds binding document for allwinner h6 thermal controller. Signed-off-by: Yangtao Li --- .../bindings/thermal/sun8i-thermal.yaml | 79 +++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml diff

[PATCH v5 01/18] thermal: sun8i: add thermal driver for h6

2019-08-09 Thread Yangtao Li
This patch adds the support for allwinner thermal sensor, within allwinner SoC. It will register sensors for thermal framework and use device tree to bind cooling device. Signed-off-by: Yangtao Li --- MAINTAINERS | 7 + drivers/thermal/Kconfig | 14 ++

Re: [PATCH] RISC-V: Issue a local tlb flush if possible.

2019-08-09 Thread Atish Patra
On 8/9/19, 8:30 PM, "Anup Patel" wrote: On Sat, Aug 10, 2019 at 7:13 AM Atish Patra wrote: > > In RISC-V, tlb flush happens via SBI which is expensive. > If the target cpumask contains a local hartid, some cost > can be saved by issuing a local tlb flush as we do that

Re: [PATCH] x86/umwait: Fix error handling in umwait_init()

2019-08-09 Thread Thomas Gleixner
On Fri, 9 Aug 2019, Fenghua Yu wrote: > +/* > + * The CPU hotplug callback sets the control MSR to the original control > + * value. > + */ > +static int umwait_cpu_offline(unsigned int cpu) > +{ > + /* > + * This code is protected by the CPU hotplug already and > + *

[PATCH v2] sh: kernel: disassemble: Mark expected switch fall-throughs

2019-08-09 Thread Gustavo A. R. Silva
Remove logically dead code and mark switch cases where we are expecting to fall through. Fix the following warnings (Building: defconfig sh): arch/sh/kernel/disassemble.c:478:8: warning: this statement may fall through [-Wimplicit-fallthrough=] arch/sh/kernel/disassemble.c:487:8: warning: this

Re: [PATCH v9 0/7] Solve postboot supplier cleanup and optimize probe ordering

2019-08-09 Thread Frank Rowand
On 8/9/19 10:00 PM, Saravana Kannan wrote: > On Fri, Aug 9, 2019 at 7:57 PM Frank Rowand wrote: >> >> Hi Saravana, >> >> On 7/31/19 3:17 PM, Saravana Kannan wrote: >>> Add device-links to track functional dependencies between devices >>> after they are created (but before they are probed) by

Re: [PATCH] sh: kernel: disassemble: Mark expected switch fall-throughs

2019-08-09 Thread Gustavo A. R. Silva
On 8/10/19 12:08 AM, Joe Perches wrote: > On Sat, 2019-08-10 at 00:01 -0500, Gustavo A. R. Silva wrote: >> Mark switch cases where we are expecting to fall through. >> >> Fix the following warnings (Building: defconfig sh): > [] >> diff --git a/arch/sh/kernel/disassemble.c

Re: [PATCH] sh: kernel: disassemble: Mark expected switch fall-throughs

2019-08-09 Thread Joe Perches
On Sat, 2019-08-10 at 00:01 -0500, Gustavo A. R. Silva wrote: > Mark switch cases where we are expecting to fall through. > > Fix the following warnings (Building: defconfig sh): [] > diff --git a/arch/sh/kernel/disassemble.c b/arch/sh/kernel/disassemble.c [] > @@ -477,6 +477,7 @@ static void

Re: [PATCH v9 0/7] Solve postboot supplier cleanup and optimize probe ordering

2019-08-09 Thread Saravana Kannan
On Fri, Aug 9, 2019 at 7:57 PM Frank Rowand wrote: > > Hi Saravana, > > On 7/31/19 3:17 PM, Saravana Kannan wrote: > > Add device-links to track functional dependencies between devices > > after they are created (but before they are probed) by looking at > > their common DT bindings like clocks,

[PATCH] sh: kernel: disassemble: Mark expected switch fall-throughs

2019-08-09 Thread Gustavo A. R. Silva
Mark switch cases where we are expecting to fall through. Fix the following warnings (Building: defconfig sh): arch/sh/kernel/disassemble.c:478:8: warning: this statement may fall through [-Wimplicit-fallthrough=] arch/sh/kernel/disassemble.c:487:8: warning: this statement may fall through

[PATCH] sh: kernel: hw_breakpoint: Fix missing break in switch statement

2019-08-09 Thread Gustavo A. R. Silva
Add missing break statement in order to prevent the code from erroneously falling through to case SH_BREAKPOINT_WRITE. Fixes: 09a072947791 ("sh: hw-breakpoints: Add preliminary support for SH-4A UBC.") Cc: sta...@vger.kernel.org Signed-off-by: Gustavo A. R. Silva --- If no one cares, I'll

Re: [PATCH 4.9 00/32] 4.9.189-stable review

2019-08-09 Thread kernelci.org bot
stable-rc/linux-4.9.y boot: 102 boots: 0 failed, 90 passed with 12 offline (v4.9.188-33-g260869840af4) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.9.y/kernel/v4.9.188-33-g260869840af4/ Full Build Summary:

[PATCH] firmware: arm_scmi: Eliminate local db variable in SCMI_PERF_FC_RING_DB

2019-08-09 Thread Nathan Chancellor
clang warns four times: drivers/firmware/arm_scmi/perf.c:320:24: warning: variable 'db' is uninitialized when used within its own initialization [-Wuninitialized] SCMI_PERF_FC_RING_DB(db, 64); ~^~~ drivers/firmware/arm_scmi/perf.c:300:31:

Re: [PATCH] sh: Drop -Werror from kernel Makefile

2019-08-09 Thread Gustavo A. R. Silva

Re: [PATCH] sh: Drop -Werror from kernel Makefile

2019-08-09 Thread Gustavo A. R. Silva
On 8/9/19 11:20 PM, Joe Perches wrote: > On Fri, 2019-08-09 at 21:47 -0500, Gustavo A. R. Silva wrote: >> On 8/9/19 4:56 PM, Guenter Roeck wrote: >>> On Fri, Aug 09, 2019 at 04:36:01PM -0500, Gustavo A. R. Silva wrote: On 8/9/19 2:56 PM, Guenter Roeck wrote: > On Sun, Aug 04, 2019 at

[PATCH] ALSA: hda - Fix a memory leak bug

2019-08-09 Thread Wenwen Wang
In snd_hda_parse_generic_codec(), 'spec' is allocated through kzalloc(). Then, the pin widgets in 'codec' are parsed. However, if the parsing process fails, 'spec' is not deallocated, leading to a memory leak. To fix the above issue, free 'spec' before returning the error. Signed-off-by: Wenwen

Re: [PATCH] sh: Drop -Werror from kernel Makefile

2019-08-09 Thread Joe Perches
On Fri, 2019-08-09 at 21:47 -0500, Gustavo A. R. Silva wrote: > On 8/9/19 4:56 PM, Guenter Roeck wrote: > > On Fri, Aug 09, 2019 at 04:36:01PM -0500, Gustavo A. R. Silva wrote: > > > On 8/9/19 2:56 PM, Guenter Roeck wrote: > > > > On Sun, Aug 04, 2019 at 11:24:41PM -0400, Rich Felker wrote: > > >

Re: [PATCH RFC v1 1/2] rcu/tree: Add basic support for kfree_rcu batching

2019-08-09 Thread Joel Fernandes
On Fri, Aug 09, 2019 at 08:38:14PM -0700, Paul E. McKenney wrote: > On Fri, Aug 09, 2019 at 10:42:32PM -0400, Joel Fernandes wrote: > > On Wed, Aug 07, 2019 at 10:52:15AM -0700, Paul E. McKenney wrote: > > [snip] > > > > > > @@ -3459,6 +3645,8 @@ void __init rcu_init(void) > > > > > > { > > > >

[GIT PULL] Wimplicit-fallthrough patches for 5.3-rc4

2019-08-09 Thread Gustavo A. R. Silva
The following changes since commit 609488bc979f99f805f34e9a32c1e3b71179d10b: Linux 5.3-rc2 (2019-07-28 12:47:02 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git tags/Wimplicit-fallthrough-5.3-rc4 for you to fetch changes up

Re: [PATCH 4.4 00/21] 4.4.189-stable review

2019-08-09 Thread kernelci.org bot
stable-rc/linux-4.4.y boot: 94 boots: 2 failed, 82 passed with 9 offline, 1 conflict (v4.4.188-22-gab9a14a0618d) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.4.y/kernel/v4.4.188-22-gab9a14a0618d/ Full Build Summary:

Re: [PATCH 2/3] media: vimc: Collapse component structure into a single monolithic driver

2019-08-09 Thread Helen Koike
Hi Shuah, Thanks for the patch, just some small comments. On 8/9/19 6:45 PM, Shuah Khan wrote: > vimc uses Component API to split the driver into functional components. > The real hardware resembles a monolith structure than component and > component structure added a level of complexity making

Re: [PATCH 0/3] Collapse vimc into single monolithic driver

2019-08-09 Thread Helen Koike
Hi Andre, Thanks for testing this. On 8/9/19 9:24 PM, André Almeida wrote: > On 8/9/19 9:17 PM, Shuah Khan wrote: >> Hi Andre, >> >> On 8/9/19 5:52 PM, André Almeida wrote: >>> Hello Shuah, >>> >>> Thanks for the patch, I did some comments below. >>> >>> On 8/9/19 6:45 PM, Shuah Khan wrote:

Re: [PATCH RFC v1 1/2] rcu/tree: Add basic support for kfree_rcu batching

2019-08-09 Thread Joel Fernandes
On Fri, Aug 09, 2019 at 08:40:27PM -0700, Paul E. McKenney wrote: [snip] > > > In contrast, a heavy duty userspace-driven workload would transition to > > > and from userspace for each kfree_rcu(), and that would increment the > > > dyntick-idle count on each transition to and from userspace.

Re: [PATCH RFC v1 1/2] rcu/tree: Add basic support for kfree_rcu batching

2019-08-09 Thread Paul E. McKenney
On Fri, Aug 09, 2019 at 05:36:43PM -0400, Joel Fernandes wrote: > On Fri, Aug 09, 2019 at 01:42:17PM -0700, Paul E. McKenney wrote: > > > Also, I can go back to 500M if I just keep KFREE_DRAIN_JIFFIES at HZ/50. > > > So I > > > am quite happy about that. I think I can declare that the "let list

Re: [PATCH RFC v1 1/2] rcu/tree: Add basic support for kfree_rcu batching

2019-08-09 Thread Paul E. McKenney
On Fri, Aug 09, 2019 at 10:42:32PM -0400, Joel Fernandes wrote: > On Wed, Aug 07, 2019 at 10:52:15AM -0700, Paul E. McKenney wrote: > [snip] > > > > > @@ -3459,6 +3645,8 @@ void __init rcu_init(void) > > > > > { > > > > > int cpu; > > > > > > > > > > + kfree_rcu_batch_init(); > > > >

Re: [PATCH RFC v1 1/2] rcu/tree: Add basic support for kfree_rcu batching

2019-08-09 Thread Paul E. McKenney
On Fri, Aug 09, 2019 at 05:25:12PM -0400, Joel Fernandes wrote: > On Fri, Aug 09, 2019 at 04:26:45PM -0400, Joel Fernandes wrote: > > On Fri, Aug 09, 2019 at 04:22:26PM -0400, Joel Fernandes wrote: > > > On Fri, Aug 09, 2019 at 09:33:46AM -0700, Paul E. McKenney wrote: > > > > On Fri, Aug 09, 2019

Re: [GIT PULL] Kbuild fixes for v5.3-rc4

2019-08-09 Thread pr-tracker-bot
The pull request you sent on Sat, 10 Aug 2019 11:10:22 +0900: > git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git > tags/kbuild-fixes-v5.3-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/451577f3e3a9bf1861218641dbbf98e214e77851 Thank you! --

Re: [PATCH] RISC-V: Issue a local tlb flush if possible.

2019-08-09 Thread Anup Patel
On Sat, Aug 10, 2019 at 7:13 AM Atish Patra wrote: > > In RISC-V, tlb flush happens via SBI which is expensive. > If the target cpumask contains a local hartid, some cost > can be saved by issuing a local tlb flush as we do that > in OpenSBI anyways. > > Signed-off-by: Atish Patra > --- >

Re: [PATCH 1/3] media: vimc: move private defines to a common header

2019-08-09 Thread Helen Koike
Hi Shuah, Thanks for the patch. On 8/9/19 6:45 PM, Shuah Khan wrote: > In preparation for collapsing the component driver structure into > a monolith, move private device structure defines to a new common > header file. > > Signed-off-by: Shuah Khan > --- >

Re: [PATCH v9 0/7] Solve postboot supplier cleanup and optimize probe ordering

2019-08-09 Thread Frank Rowand
Hi Saravana, On 7/31/19 3:17 PM, Saravana Kannan wrote: > Add device-links to track functional dependencies between devices > after they are created (but before they are probed) by looking at > their common DT bindings like clocks, interconnects, etc. > > Having functional dependencies

Re: [PATCH] sh: Drop -Werror from kernel Makefile

2019-08-09 Thread Gustavo A. R. Silva
Guenter, On 8/9/19 4:56 PM, Guenter Roeck wrote: > On Fri, Aug 09, 2019 at 04:36:01PM -0500, Gustavo A. R. Silva wrote: >> Hi Guenter, >> >> On 8/9/19 2:56 PM, Guenter Roeck wrote: >>> On Sun, Aug 04, 2019 at 11:24:41PM -0400, Rich Felker wrote: On Sun, Aug 04, 2019 at 07:14:23PM -0700,

Re: [PATCH RFC v1 1/2] rcu/tree: Add basic support for kfree_rcu batching

2019-08-09 Thread Joel Fernandes
On Wed, Aug 07, 2019 at 10:52:15AM -0700, Paul E. McKenney wrote: [snip] > > > > @@ -3459,6 +3645,8 @@ void __init rcu_init(void) > > > > { > > > > int cpu; > > > > > > > > + kfree_rcu_batch_init(); > > > > > > What happens if someone does a kfree_rcu() before this point? It

[GIT PULL] Kbuild fixes for v5.3-rc4

2019-08-09 Thread Masahiro YAMADA
Hi Linus, Please pull more Kbuild fixes. Thanks! The following changes since commit e21a712a9685488f5ce80495b37b9fdbe96c230d: Linux 5.3-rc3 (2019-08-04 18:40:12 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git

[PATCH] x86/umwait: Fix error handling in umwait_init()

2019-08-09 Thread Fenghua Yu
Currently, failure of cpuhp_setup_state() is ignored and the syscore ops and the control interfaces can still be added even after the failure. But, this error handling will cause a few issues: 1. The CPUs may have different values in the IA32_UMWAIT_CONTROL MSR because there is no way to roll

Re: [PATCH] regulator: core: Add devres versions of regulator_enable/disable

2019-08-09 Thread Chuhong Yuan
On Fri, Aug 9, 2019 at 11:11 PM Mark Brown wrote: > > On Fri, Aug 09, 2019 at 11:03:52AM +0800, Chuhong Yuan wrote: > > I wrote a coccinelle script to detect possible chances > > of utilizing devm_() APIs to simplify the driver. > > The script found 147 drivers in total and 22 of them > > have be

[PATCH] RISC-V: Issue a local tlb flush if possible.

2019-08-09 Thread Atish Patra
In RISC-V, tlb flush happens via SBI which is expensive. If the target cpumask contains a local hartid, some cost can be saved by issuing a local tlb flush as we do that in OpenSBI anyways. Signed-off-by: Atish Patra --- arch/riscv/include/asm/tlbflush.h | 33 +++ 1

Re: [PATCH] powerpc/mm: Use refcount_t for refcount

2019-08-09 Thread Chuhong Yuan
On Fri, Aug 9, 2019 at 8:36 PM Michael Ellerman wrote: > > Chuhong Yuan writes: > > Reference counters are preferred to use refcount_t instead of > > atomic_t. > > This is because the implementation of refcount_t can prevent > > overflows and detect possible use-after-free. > > So convert

[PATCH] syscalls: Update the syscall #defines to match uapi

2019-08-09 Thread Alistair Francis
Update the #defines around sys_fstat64() and sys_fstatat64() to match the #defines around the __NR3264_fstatat and __NR3264_fstat definitions in include/uapi/asm-generic/unistd.h. This avoids compiler failures if one is defined. Signed-off-by: Alistair Francis --- include/linux/syscalls.h | 2

Re: [PATCH v4 1/2] fork: extend clone3() to support CLONE_SET_TID

2019-08-09 Thread Christian Brauner
On Thu, Aug 08, 2019 at 11:22:21PM +0200, Adrian Reber wrote: > The main motivation to add set_tid to clone3() is CRIU. > > To restore a process with the same PID/TID CRIU currently uses > /proc/sys/kernel/ns_last_pid. It writes the desired (PID - 1) to > ns_last_pid and then (quickly) does a

[PATCH 2/2] leds: triggers: Don't remove trigger if LED_KEEP_TRIGGER flag is set

2019-08-09 Thread Guru Das Srinagesh
From: Fenglin Wu The LED_KEEP_TRIGGER flag prevents the trigger being removed while turning off the LEDs. Extend the flag usage to prevent the trigger being removed even while "none" trigger is set. Signed-off-by: Fenglin Wu Signed-off-by: Guru Das Srinagesh --- drivers/leds/led-triggers.c |

[PATCH 1/2] leds: Add flag to keep trigger always

2019-08-09 Thread Guru Das Srinagesh
From: Subbaraman Narayanamurthy Commit 0013b23d66a2768f5babbb0ea9f03ab067a990d8 ("leds: disable triggers on brightness set") removes the trigger on an LED class device when brightness is set to 0. However, there are some LED class devices which need the trigger not to be removed. In a use case

Re: [PATCH 0/3] Collapse vimc into single monolithic driver

2019-08-09 Thread Shuah Khan
On 8/9/19 6:24 PM, André Almeida wrote: On 8/9/19 9:17 PM, Shuah Khan wrote: Hi Andre, On 8/9/19 5:52 PM, André Almeida wrote: Hello Shuah, Thanks for the patch, I did some comments below. On 8/9/19 6:45 PM, Shuah Khan wrote: vimc uses Component API to split the driver into functional

Re: Resend [PATCH] kernel/resource.c: invalidate parent when freed resource has childs

2019-08-09 Thread Wei Yang
On Fri, Aug 09, 2019 at 03:45:59PM -0700, Linus Torvalds wrote: >On Fri, Aug 9, 2019 at 3:38 PM Wei Yang wrote: >> >> In theory, child may have siblings. Would it be possible to have several >> devices under xhci-hcd? > >I'm less interested in the xhci-hcd case - which I certainly *hope* is

Re: [RFC PATCH v2 12/19] mm/gup: Prep put_user_pages() to take an vaddr_pin struct

2019-08-09 Thread John Hubbard
On 8/9/19 3:58 PM, ira.we...@intel.com wrote: > From: Ira Weiny > > Once callers start to use vaddr_pin the put_user_pages calls will need > to have access to this data coming in. Prep put_user_pages() for this > data. > > Signed-off-by: Ira Weiny > --- > include/linux/mm.h | 20 +--- >

Re: [PATCH 0/3] Collapse vimc into single monolithic driver

2019-08-09 Thread André Almeida
On 8/9/19 9:17 PM, Shuah Khan wrote: > Hi Andre, > > On 8/9/19 5:52 PM, André Almeida wrote: >> Hello Shuah, >> >> Thanks for the patch, I did some comments below. >> >> On 8/9/19 6:45 PM, Shuah Khan wrote: >>> vimc uses Component API to split the driver into functional components. >>> The real

[PATCH 00/11] Face lift for bu21013_ts driver

2019-08-09 Thread Dmitry Torokhov
Hi Linus, So your patch has prompted me to take a look at the driver and try to clean it up. I am sure I screwed up somewhere, but you said you have the device, so please take a look at the series and see if you can salvage them Thanks! Dmitry Torokhov (10): ARM: ux500: improve BU21013

[PATCH 11/11] Input: bu21013_ts - switch to using standard touchscreen properties

2019-08-09 Thread Dmitry Torokhov
This switches the driver over to the standard touchscreen properties for coordinate transformation, while keeping old bindings working as well. Signed-off-by: Dmitry Torokhov --- .../bindings/input/touchscreen/bu21013.txt| 16 -- drivers/input/touchscreen/bu21013_ts.c| 54

[PATCH 07/11] Input: bu21013_ts - remove support for platform data

2019-08-09 Thread Dmitry Torokhov
There are no current users of the platform data in the tree, and any new users should either use device tree, or static device properties to describe the device. This change drop the platform data definition and handling and moves the driver over to generic device properties API. We also drop

[PATCH 02/11] Input: bu21013_ts - convert to use GPIO descriptors

2019-08-09 Thread Dmitry Torokhov
From: Linus Walleij This driver can use GPIO descriptors rather than GPIO numbers without any problems, convert it. Name the field variables after the actual pins on the chip rather than the "reset" and "touch" names from the devicetree bindings that are vaguely inaccurate. No in-tree users

[PATCH 04/11] Input: bu21013_ts - annotate supend/resume methods as __maybe_unused

2019-08-09 Thread Dmitry Torokhov
Instead if #ifdef-ing out suspend and resume methods, let's mark them as __maybe_unused to get better compile time coverage. Signed-off-by: Dmitry Torokhov --- drivers/input/touchscreen/bu21013_ts.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git

[PATCH 01/11] ARM: ux500: improve BU21013 touchpad bindings

2019-08-09 Thread Dmitry Torokhov
In preparation to update to bu21013_tp driver properly annotate GPIOs property (the INT GPIOs are active low, not open drain), and also define interrupt lines so we do not have to have special conversion in the driver. Signed-off-by: Dmitry Torokhov ---

[PATCH 03/11] Input: bu21013_ts - rename some variables

2019-08-09 Thread Dmitry Torokhov
"bu21013_data" and "struct bu21013_ts_data" are a tad long, let's call them "ts" and "struct bu21013_ts". Also rename retval to error in bu21013_init_chip() and adjust formatting; i2c_smbus_write_byte_data() returns negative on error and 0 on success, so we simply test if whether erro is 0 or

[PATCH 08/11] Input: bu21013_ts - use interrupt from I2C client

2019-08-09 Thread Dmitry Torokhov
Instead of trying to map INT GPIO to interrupt, let's use one supplied by I2C client. If there is none - bail. This will also allow us to treat INT GPIO as optional, as per the binding. Signed-off-by: Dmitry Torokhov --- .../bindings/input/touchscreen/bu21013.txt| 6 +++-

[PATCH 05/11] Input: bu21013_ts - remove useless comments

2019-08-09 Thread Dmitry Torokhov
The comments for individual functions in the driver do not provide any additional information beyond what function names indicate. Signed-off-by: Dmitry Torokhov --- drivers/input/touchscreen/bu21013_ts.c | 61 +- 1 file changed, 2 insertions(+), 59 deletions(-) diff

[PATCH 10/11] Input: bu21013_ts - switch to using MT-B (slotted) protocol

2019-08-09 Thread Dmitry Torokhov
MT-B protocol is more efficient and everyone expects it. We use in-kernel tracking to identify contacts. Signed-off-by: Dmitry Torokhov --- drivers/input/touchscreen/bu21013_ts.c | 80 ++ 1 file changed, 43 insertions(+), 37 deletions(-) diff --git

[PATCH 09/11] Input: bu21013_ts - fix suspend when wake source

2019-08-09 Thread Dmitry Torokhov
If the touchscreen is configured as wakeup source we should not be cutting off power to it. Also, now that the driver relies on I2C client to supply IRQ, we do not need to explicitly enable and disable IRQ for wakeup: if device is created as wakeup source, I2C core will mark interrupt as wakeup

[PATCH 06/11] Input: bu21013_ts - convert to using managed resources

2019-08-09 Thread Dmitry Torokhov
This allows trimming error unwinding and device removal handling. Signed-off-by: Dmitry Torokhov --- drivers/input/touchscreen/bu21013_ts.c | 182 - 1 file changed, 84 insertions(+), 98 deletions(-) diff --git a/drivers/input/touchscreen/bu21013_ts.c

Re: [RFC PATCH v2 11/19] mm/gup: Pass follow_page_context further down the call stack

2019-08-09 Thread John Hubbard
On 8/9/19 3:58 PM, ira.we...@intel.com wrote: > From: Ira Weiny > > In preparation for passing more information (vaddr_pin) into > follow_page_pte(), follow_devmap_pud(), and follow_devmap_pmd(). > > Signed-off-by: Ira Weiny > --- > include/linux/huge_mm.h | 17 - > mm/gup.c

Re: [PATCH 0/3] Collapse vimc into single monolithic driver

2019-08-09 Thread Shuah Khan
Hi Andre, On 8/9/19 5:52 PM, André Almeida wrote: Hello Shuah, Thanks for the patch, I did some comments below. On 8/9/19 6:45 PM, Shuah Khan wrote: vimc uses Component API to split the driver into functional components. The real hardware resembles a monolith structure than component and

Re: [PATCH v3 0/6] Add support of New Amlogic temperature sensor for G12 SoCs

2019-08-09 Thread Kevin Hilman
Guillaume La Roque writes: > This patchs series add support of New Amlogic temperature sensor and minimal > thermal zone for SEI510 and ODROID-N2 boards. > > First implementation was doing on IIO[1] but after comments i move on thermal > framework. > Formulas and calibration values come from

Re: [RFC PATCH v2 15/19] mm/gup: Introduce vaddr_pin_pages()

2019-08-09 Thread John Hubbard
On 8/9/19 3:58 PM, ira.we...@intel.com wrote: > From: Ira Weiny > > The addition of FOLL_LONGTERM has taken on additional meaning for CMA > pages. > > In addition subsystems such as RDMA require new information to be passed > to the GUP interface to track file owning information. As such a

Re: [RFC PATCH v2 10/19] mm/gup: Pass a NULL vaddr_pin through GUP fast

2019-08-09 Thread John Hubbard
On 8/9/19 3:58 PM, ira.we...@intel.com wrote: > From: Ira Weiny > > Internally GUP fast needs to know that fast users will not support file > pins. Pass NULL for vaddr_pin through the fast call stack so that the > pin code can return an error if it encounters file backed memory within > the

Re: [RFC PATCH v2 09/19] mm/gup: Introduce vaddr_pin structure

2019-08-09 Thread John Hubbard
On 8/9/19 3:58 PM, ira.we...@intel.com wrote: > From: Ira Weiny > > Some subsystems need to pass owning file information to GUP calls to > allow for GUP to associate the "owning file" to any files being pinned > within the GUP call. > > Introduce an object to specify this information and pass

Re: [RESEND PATCH 1/2 -mm] mm: account lazy free pages separately

2019-08-09 Thread Yang Shi
On 8/9/19 11:26 AM, Yang Shi wrote: On 8/9/19 11:02 AM, Michal Hocko wrote: On Fri 09-08-19 09:19:13, Yang Shi wrote: On 8/9/19 1:32 AM, Michal Hocko wrote: On Fri 09-08-19 07:57:44, Yang Shi wrote: When doing partial unmap to THP, the pages in the affected range would be considered

Re: [RFC PATCH v2 01/19] fs/locks: Export F_LAYOUT lease to user space

2019-08-09 Thread Dave Chinner
On Fri, Aug 09, 2019 at 03:58:15PM -0700, ira.we...@intel.com wrote: > From: Ira Weiny > > In order to support an opt-in policy for users to allow long term pins > of FS DAX pages we need to export the LAYOUT lease to user space. > > This is the first of 2 new lease flags which must be used to

Re: [PATCH 0/3] Collapse vimc into single monolithic driver

2019-08-09 Thread André Almeida
Hello Shuah, Thanks for the patch, I did some comments below. On 8/9/19 6:45 PM, Shuah Khan wrote: > vimc uses Component API to split the driver into functional components. > The real hardware resembles a monolith structure than component and > component structure added a level of complexity

Re: [RFC PATCH v2 07/19] fs/xfs: Teach xfs to use new dax_layout_busy_page()

2019-08-09 Thread Dave Chinner
On Fri, Aug 09, 2019 at 03:58:21PM -0700, ira.we...@intel.com wrote: > From: Ira Weiny > > dax_layout_busy_page() can now operate on a sub-range of the > address_space provided. > > Have xfs specify the sub range to dax_layout_busy_page() Hmmm. I've got patches that change all these XFS

[PATCH v3] perf diff: Report noisy for cycles diff

2019-08-09 Thread Jin Yao
This patch prints the stddev and hist for the cycles diff of program block. It can help us to understand if the cycles diff is noisy or not. This patch is inspired by Andi Kleen's patch https://lwn.net/Articles/600471/ We create new option '-n or --noisy'. Example: perf record -b ./div perf

Re: [RFC PATCH v2 08/19] fs/xfs: Fail truncate if page lease can't be broken

2019-08-09 Thread Dave Chinner
On Fri, Aug 09, 2019 at 03:58:22PM -0700, ira.we...@intel.com wrote: > From: Ira Weiny > > If pages are under a lease fail the truncate operation. We change the order > of > lease breaks to directly fail the operation if the lease exists. > > Select EXPORT_BLOCK_OPS for FS_DAX to ensure that

Re: checkpatch.pl should suggest __section

2019-08-09 Thread Joe Perches
On Fri, 2019-08-09 at 16:04 -0700, Nick Desaulniers wrote: > > how about: > > --- > > scripts/checkpatch.pl | 9 + > > 1 file changed, 9 insertions(+) > > > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > > index 1cdacb4fd207..8e6693ca772c 100755 > > ---

Re: [PATCH 1/2] genirq/affinity: improve __irq_build_affinity_masks()

2019-08-09 Thread Ming Lei
On Fri, Aug 9, 2019 at 10:44 PM Keith Busch wrote: > > On Fri, Aug 09, 2019 at 06:23:09PM +0800, Ming Lei wrote: > > One invariant of __irq_build_affinity_masks() is that all CPUs in the > > specified masks( cpu_mask AND node_to_cpumask for each node) should be > > covered during the spread. Even

[rcu:dev.2019.08.01b 66/72] ERROR: "rcu_momentary_dyntick_idle" [kernel/rcu/rcutorture.ko] undefined!

2019-08-09 Thread kbuild test robot
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2019.08.01b head: 6c92be8b1b81158f48ab0cb00d34d451dae1fa3c commit: 5f4264e33ca4e7cee035cee5bfa62f6d1bbf2cda [66/72] rcutorture: Emulate dyntick aspect of userspace nohz_full sojourn config:

Re: checkpatch.pl should suggest __section

2019-08-09 Thread Nick Desaulniers
On Fri, Aug 9, 2019 at 3:58 PM Joe Perches wrote: > > On Fri, 2019-08-09 at 15:21 -0700, Nick Desaulniers wrote: > > Hi Joe, > > While debugging: > > https://github.com/ClangBuiltLinux/linux/issues/619 > > we found a bunch of places where __section is not used but could be, > > and uses a string

[RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ;-)

2019-08-09 Thread ira . weiny
From: Ira Weiny Pre-requisites == Based on mmotm tree. Based on the feedback from LSFmm, the LWN article, the RFC series since then, and a ton of scenarios I've worked in my mind and/or tested...[1] Solution summary The real issue is that there is no use

[RFC PATCH v2 05/19] fs/ext4: Teach ext4 to break layout leases

2019-08-09 Thread ira . weiny
From: Ira Weiny ext4 must attempt to break a layout lease if it is held to know if the layout can be modified. Split out the logic to determine if a mapping is DAX, export it, and then break layout leases if a mapping is DAX. Signed-off-by: Ira Weiny --- Changes from RFC v1: Based

[RFC PATCH v2 03/19] mm/gup: Pass flags down to __gup_device_huge* calls

2019-08-09 Thread ira . weiny
From: Ira Weiny In order to support checking for a layout lease on a FS DAX inode these calls need to know if FOLL_LONGTERM was specified. Signed-off-by: Ira Weiny --- mm/gup.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/mm/gup.c b/mm/gup.c

[RFC PATCH v2 02/19] fs/locks: Add Exclusive flag to user Layout lease

2019-08-09 Thread ira . weiny
From: Ira Weiny Add an exclusive lease flag which indicates that the layout mechanism can not be broken. Exclusive layout leases allow the file system to know that pages may be GUP pined and that attempts to change the layout, ie truncate, should be failed. A process which attempts to break

Re: checkpatch.pl should suggest __section

2019-08-09 Thread Joe Perches
On Fri, 2019-08-09 at 15:21 -0700, Nick Desaulniers wrote: > Hi Joe, > While debugging: > https://github.com/ClangBuiltLinux/linux/issues/619 > we found a bunch of places where __section is not used but could be, > and uses a string literal when it probably should not be. > > Just a thought that

[RFC PATCH v2 06/19] fs/ext4: Teach dax_layout_busy_page() to operate on a sub-range

2019-08-09 Thread ira . weiny
From: Ira Weiny Callers of dax_layout_busy_page() are only rarely operating on the entire file of concern. Teach dax_layout_busy_page() to operate on a sub-range of the address_space provided. Specifying 0 - ULONG_MAX however, will continue to operate on the "entire file" and XFS is split out

[RFC PATCH v2 18/19] {mm,procfs}: Add display file_pins proc

2019-08-09 Thread ira . weiny
From: Ira Weiny Now that we have the file pins information stored add a new procfs entry to display them to the user. NOTE output will be dependant on where the file pin is tied to. Some processes may have the pin associated with a file descriptor in which case that file is reported as well.

  1   2   3   4   5   6   7   8   9   10   >