Re: [PATCH 2/4] base/drivers/arch_topology: Replace mutex with READ_ONCE / WRITE_ONCE

2018-10-29 Thread Viresh Kumar
On Mon, Oct 29, 2018 at 9:54 PM Daniel Lezcano wrote: > > The mutex protects a per_cpu variable access. The potential race can > happen only when the cpufreq governor module is loaded and at the same > time the cpu capacity is changed in the sysfs. > > There is no real interest of using a mutex

Re: [PATCH 2/4] base/drivers/arch_topology: Replace mutex with READ_ONCE / WRITE_ONCE

2018-10-29 Thread Viresh Kumar
On Mon, Oct 29, 2018 at 9:54 PM Daniel Lezcano wrote: > > The mutex protects a per_cpu variable access. The potential race can > happen only when the cpufreq governor module is loaded and at the same > time the cpu capacity is changed in the sysfs. > > There is no real interest of using a mutex

Re: [PATCH v2] bit_spinlock: introduce smp_cond_load_relaxed

2018-10-29 Thread Gao Xiang
Hi, On 2018/10/30 14:04, Gao Xiang wrote: > It is better to use wrapped smp_cond_load_relaxed > instead of open-coded busy waiting for bit_spinlock. > > Signed-off-by: Gao Xiang > --- > > change log v2: > - fix the incorrect expression !(VAL >> (bitnum & (BITS_PER_LONG-1))) > - the test

Re: [PATCH v2] bit_spinlock: introduce smp_cond_load_relaxed

2018-10-29 Thread Gao Xiang
Hi, On 2018/10/30 14:04, Gao Xiang wrote: > It is better to use wrapped smp_cond_load_relaxed > instead of open-coded busy waiting for bit_spinlock. > > Signed-off-by: Gao Xiang > --- > > change log v2: > - fix the incorrect expression !(VAL >> (bitnum & (BITS_PER_LONG-1))) > - the test

[PATCH v2] bit_spinlock: introduce smp_cond_load_relaxed

2018-10-29 Thread Gao Xiang
It is better to use wrapped smp_cond_load_relaxed instead of open-coded busy waiting for bit_spinlock. Signed-off-by: Gao Xiang --- change log v2: - fix the incorrect expression !(VAL >> (bitnum & (BITS_PER_LONG-1))) - the test result is described in the following reply. Thanks, Gao Xiang

[PATCH v2] bit_spinlock: introduce smp_cond_load_relaxed

2018-10-29 Thread Gao Xiang
It is better to use wrapped smp_cond_load_relaxed instead of open-coded busy waiting for bit_spinlock. Signed-off-by: Gao Xiang --- change log v2: - fix the incorrect expression !(VAL >> (bitnum & (BITS_PER_LONG-1))) - the test result is described in the following reply. Thanks, Gao Xiang

Re: [PATCH 1/4] base/drivers/arch_topology: Remove useless check

2018-10-29 Thread Viresh Kumar
On Mon, Oct 29, 2018 at 9:56 PM Daniel Lezcano wrote: Would have been better if I was cc'd on all the patches since I was looking at this stuff actively this week :) > The function 'register_cpufreq_notifier' registers the > init_cpu_capacity_notifier() only if raw_capacity is not NULL. > >

Re: [PATCH 1/4] base/drivers/arch_topology: Remove useless check

2018-10-29 Thread Viresh Kumar
On Mon, Oct 29, 2018 at 9:56 PM Daniel Lezcano wrote: Would have been better if I was cc'd on all the patches since I was looking at this stuff actively this week :) > The function 'register_cpufreq_notifier' registers the > init_cpu_capacity_notifier() only if raw_capacity is not NULL. > >

[PATCH] arm64: dts: qcom: msm8998: Reserve gpio ranges on MTP

2018-10-29 Thread Bjorn Andersson
GPIOs 0 through 3 and 81 through 84 are configured to not be accessible from the application CPUs. Mark them as reserved to allow the MSM8998 MTP to boot after the introduction of 3edfb7bd76bd ("gpiolib: Show correct direction from the beginning"). Signed-off-by: Bjorn Andersson ---

[PATCH] arm64: dts: qcom: msm8998: Reserve gpio ranges on MTP

2018-10-29 Thread Bjorn Andersson
GPIOs 0 through 3 and 81 through 84 are configured to not be accessible from the application CPUs. Mark them as reserved to allow the MSM8998 MTP to boot after the introduction of 3edfb7bd76bd ("gpiolib: Show correct direction from the beginning"). Signed-off-by: Bjorn Andersson ---

[PATCH] doc: correct parameter in stallwarn

2018-10-29 Thread Joel Fernandes (Google)
The stallwarn document incorrectly mentions 'fps=' instead of 'fqs='. Correct that. Signed-off-by: Joel Fernandes (Google) --- Documentation/RCU/stallwarn.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/RCU/stallwarn.txt b/Documentation/RCU/stallwarn.txt

[PATCH] doc: correct parameter in stallwarn

2018-10-29 Thread Joel Fernandes (Google)
The stallwarn document incorrectly mentions 'fps=' instead of 'fqs='. Correct that. Signed-off-by: Joel Fernandes (Google) --- Documentation/RCU/stallwarn.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/RCU/stallwarn.txt b/Documentation/RCU/stallwarn.txt

linux-next: Tree for Oct 30

2018-10-29 Thread Stephen Rothwell
Hi all, Please do not add any v4.21/v5.1 code to your linux-next included trees until after the merge window closes. Changes since 20181029: My fixes tree contains this: "drivers: net: include linux/ip.h for iphdr" The compiler-attributes tree gained a conflict against the k

linux-next: Tree for Oct 30

2018-10-29 Thread Stephen Rothwell
Hi all, Please do not add any v4.21/v5.1 code to your linux-next included trees until after the merge window closes. Changes since 20181029: My fixes tree contains this: "drivers: net: include linux/ip.h for iphdr" The compiler-attributes tree gained a conflict against the k

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-29 Thread Aleksa Sarai
On 2018-10-29, Daniel Colascione wrote: > Add a simple proc-based kill interface. To use /proc/pid/kill, just > write the signal number in base-10 ASCII to the kill file of the > process to be killed: for example, 'echo 9 > /proc/$$/kill'. > > Semantically, /proc/pid/kill works like kill(2),

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-29 Thread Aleksa Sarai
On 2018-10-29, Daniel Colascione wrote: > Add a simple proc-based kill interface. To use /proc/pid/kill, just > write the signal number in base-10 ASCII to the kill file of the > process to be killed: for example, 'echo 9 > /proc/$$/kill'. > > Semantically, /proc/pid/kill works like kill(2),

Re: [RFC PATCH v2 3/3] mm, oom: hand over MMF_OOM_SKIP to exit path if it is guranteed to finish

2018-10-29 Thread Tetsuo Handa
Michal Hocko wrote: > @@ -3156,6 +3166,13 @@ void exit_mmap(struct mm_struct *mm) > vma = remove_vma(vma); > } > vm_unacct_memory(nr_accounted); > + > + /* > +* Now that the full address space is torn down, make sure the > +* OOM killer skips

Re: [RFC PATCH v2 3/3] mm, oom: hand over MMF_OOM_SKIP to exit path if it is guranteed to finish

2018-10-29 Thread Tetsuo Handa
Michal Hocko wrote: > @@ -3156,6 +3166,13 @@ void exit_mmap(struct mm_struct *mm) > vma = remove_vma(vma); > } > vm_unacct_memory(nr_accounted); > + > + /* > +* Now that the full address space is torn down, make sure the > +* OOM killer skips

[PATCH] kbuild: consolidate single targets

2018-10-29 Thread Masahiro Yamada
Instead of specifying target/source pairs, let's list patterns that we want to handle as single targets. This slightly changes the behavior; the top Makefile previously checked the presence of a source file, now Kbuild will descend into a subdirectory anyway to find out what to do there.

[PATCH] kbuild: consolidate single targets

2018-10-29 Thread Masahiro Yamada
Instead of specifying target/source pairs, let's list patterns that we want to handle as single targets. This slightly changes the behavior; the top Makefile previously checked the presence of a source file, now Kbuild will descend into a subdirectory anyway to find out what to do there.

[PATCH 2/2] kbuild: remove cc-name variable

2018-10-29 Thread Masahiro Yamada
There is one more user of $(cc-name) in the top Makefile. It is supposed to detect Clang before invoking Kconfig, so it should still be there in the $(shell ...) form. All the other users of $(cc-name) have been replaced with $(CONFIG_CC_IS_CLANG). Hence, scripts/Kbuild.include does not need to

Re: [PATCH v2] pstore: Avoid duplicate call of persistent_ram_zap()

2018-10-29 Thread Joel Fernandes
On Mon, Oct 29, 2018 at 06:37:53AM +, Peng15 Wang 王鹏 wrote: > > > >From: Kees Cook > >Sent: Monday, October 29, 2018 0:03 > >To: Peng15 Wang 王鹏 > >Cc: an...@enomsg.org; ccr...@android.com; tony.l...@intel.com; > >linux-kernel@vger.kernel.org; Joel

[PATCH 2/2] kbuild: remove cc-name variable

2018-10-29 Thread Masahiro Yamada
There is one more user of $(cc-name) in the top Makefile. It is supposed to detect Clang before invoking Kconfig, so it should still be there in the $(shell ...) form. All the other users of $(cc-name) have been replaced with $(CONFIG_CC_IS_CLANG). Hence, scripts/Kbuild.include does not need to

Re: [PATCH v2] pstore: Avoid duplicate call of persistent_ram_zap()

2018-10-29 Thread Joel Fernandes
On Mon, Oct 29, 2018 at 06:37:53AM +, Peng15 Wang 王鹏 wrote: > > > >From: Kees Cook > >Sent: Monday, October 29, 2018 0:03 > >To: Peng15 Wang 王鹏 > >Cc: an...@enomsg.org; ccr...@android.com; tony.l...@intel.com; > >linux-kernel@vger.kernel.org; Joel

Re: [PATCH tip/core/rcu 02/19] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-10-29 Thread Joel Fernandes
On Mon, Oct 29, 2018 at 07:27:35AM -0700, Paul E. McKenney wrote: > On Mon, Oct 29, 2018 at 11:24:42AM +, Ran Rozenstein wrote: > > Hi Paul and all, > > > > > -Original Message- > > > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > > > ow...@vger.kernel.org] On Behalf

Re: [PATCH tip/core/rcu 02/19] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-10-29 Thread Joel Fernandes
On Mon, Oct 29, 2018 at 07:27:35AM -0700, Paul E. McKenney wrote: > On Mon, Oct 29, 2018 at 11:24:42AM +, Ran Rozenstein wrote: > > Hi Paul and all, > > > > > -Original Message- > > > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > > > ow...@vger.kernel.org] On Behalf

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-29 Thread Joel Fernandes
On Mon, Oct 29, 2018 at 3:11 PM Daniel Colascione wrote: > > Add a simple proc-based kill interface. To use /proc/pid/kill, just > write the signal number in base-10 ASCII to the kill file of the > process to be killed: for example, 'echo 9 > /proc/$$/kill'. > > Semantically, /proc/pid/kill works

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-29 Thread Joel Fernandes
On Mon, Oct 29, 2018 at 3:11 PM Daniel Colascione wrote: > > Add a simple proc-based kill interface. To use /proc/pid/kill, just > write the signal number in base-10 ASCII to the kill file of the > process to be killed: for example, 'echo 9 > /proc/$$/kill'. > > Semantically, /proc/pid/kill works

Re: [PATCH] kretprobe: produce sane stack traces

2018-10-29 Thread Aleksa Sarai
On 2018-10-30, Masami Hiramatsu wrote: > > Historically, kretprobe has always produced unusable stack traces > > (kretprobe_trampoline is the only entry in most cases, because of the > > funky stack pointer overwriting). This has caused quite a few annoyances > > when using tracing to debug

Re: [PATCH] kretprobe: produce sane stack traces

2018-10-29 Thread Aleksa Sarai
On 2018-10-30, Masami Hiramatsu wrote: > > Historically, kretprobe has always produced unusable stack traces > > (kretprobe_trampoline is the only entry in most cases, because of the > > funky stack pointer overwriting). This has caused quite a few annoyances > > when using tracing to debug

Re: [PATCH 2/2] gsmi: Log event for critical thermal thresholds

2018-10-29 Thread kbuild test robot
Hi Duncan, Thank you for the patch! Yet something to improve: [auto build test ERROR on soc-thermal/next] [also build test ERROR on v4.19] [cannot apply to next-20181029] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

Re: [PATCH 2/2] gsmi: Log event for critical thermal thresholds

2018-10-29 Thread kbuild test robot
Hi Duncan, Thank you for the patch! Yet something to improve: [auto build test ERROR on soc-thermal/next] [also build test ERROR on v4.19] [cannot apply to next-20181029] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

Re: memcg oops: memcg_kmem_charge_memcg()->try_charge()->page_counter_try_charge()->BOOM

2018-10-29 Thread Mike Galbraith
On Mon, 2018-10-29 at 21:49 +, Roman Gushchin wrote: > On Mon, Oct 29, 2018 at 09:46:54PM +0100, Mike Galbraith wrote: > > > Ah, I have cgroup_disable=memory on the command line, which turns out > > to be why your box doesn't explode, while mine does. > > Yeah, here it is. I'll send the fix

Re: memcg oops: memcg_kmem_charge_memcg()->try_charge()->page_counter_try_charge()->BOOM

2018-10-29 Thread Mike Galbraith
On Mon, 2018-10-29 at 21:49 +, Roman Gushchin wrote: > On Mon, Oct 29, 2018 at 09:46:54PM +0100, Mike Galbraith wrote: > > > Ah, I have cgroup_disable=memory on the command line, which turns out > > to be why your box doesn't explode, while mine does. > > Yeah, here it is. I'll send the fix

Re: [RFC PATCH] Minimal non-child process exit notification support

2018-10-29 Thread Joel Fernandes
On Mon, Oct 29, 2018 at 1:01 PM Daniel Colascione wrote: > > Thanks for taking a look. > > On Mon, Oct 29, 2018 at 7:45 PM, Joel Fernandes wrote: > > > > On Mon, Oct 29, 2018 at 10:53 AM Daniel Colascione > > wrote: > > > > > > This patch adds a new file under /proc/pid, /proc/pid/exithand. >

Re: [RFC PATCH] Minimal non-child process exit notification support

2018-10-29 Thread Joel Fernandes
On Mon, Oct 29, 2018 at 1:01 PM Daniel Colascione wrote: > > Thanks for taking a look. > > On Mon, Oct 29, 2018 at 7:45 PM, Joel Fernandes wrote: > > > > On Mon, Oct 29, 2018 at 10:53 AM Daniel Colascione > > wrote: > > > > > > This patch adds a new file under /proc/pid, /proc/pid/exithand. >

Re: [PATCH] arm64/numa: Add more vetting in numa_set_distance()

2018-10-29 Thread Anshuman Khandual
On 10/29/2018 08:18 PM, Will Deacon wrote: > On Mon, Oct 29, 2018 at 06:15:42PM +0530, Anshuman Khandual wrote: >> On 10/29/2018 06:02 PM, John Garry wrote: >>> On 29/10/2018 12:16, Will Deacon wrote: On Mon, Oct 29, 2018 at 12:14:09PM +, John Garry wrote: > On 29/10/2018 11:25,

Re: Can VFIO pin only a specific region of guest mem when use pass through devices?

2018-10-29 Thread Peter Xu
On Mon, Oct 29, 2018 at 12:29:22PM -0600, Alex Williamson wrote: > On Mon, 29 Oct 2018 17:14:46 +0800 > Jason Wang wrote: > > > On 2018/10/29 上午10:42, Simon Guo wrote: > > > Hi, > > > > > > I am using network device pass through mode with qemu x86(-device > > > vfio-pci,host=:xx:yy.z) > > >

Re: [PATCH] arm64/numa: Add more vetting in numa_set_distance()

2018-10-29 Thread Anshuman Khandual
On 10/29/2018 08:18 PM, Will Deacon wrote: > On Mon, Oct 29, 2018 at 06:15:42PM +0530, Anshuman Khandual wrote: >> On 10/29/2018 06:02 PM, John Garry wrote: >>> On 29/10/2018 12:16, Will Deacon wrote: On Mon, Oct 29, 2018 at 12:14:09PM +, John Garry wrote: > On 29/10/2018 11:25,

Re: Can VFIO pin only a specific region of guest mem when use pass through devices?

2018-10-29 Thread Peter Xu
On Mon, Oct 29, 2018 at 12:29:22PM -0600, Alex Williamson wrote: > On Mon, 29 Oct 2018 17:14:46 +0800 > Jason Wang wrote: > > > On 2018/10/29 上午10:42, Simon Guo wrote: > > > Hi, > > > > > > I am using network device pass through mode with qemu x86(-device > > > vfio-pci,host=:xx:yy.z) > > >

How to implement "#interrupt-cells = <2>" for a gpiochip?

2018-10-29 Thread Daniel Santos
Hello, I'm trying to use a GPIO as an interrupt on an mt7620 (using OpenWRT drivers) and I can't seem to figure out how to glue my two-celled interrupt description (including the trigger) to the device tree code.  This is the gpio driver I'm using: 

How to implement "#interrupt-cells = <2>" for a gpiochip?

2018-10-29 Thread Daniel Santos
Hello, I'm trying to use a GPIO as an interrupt on an mt7620 (using OpenWRT drivers) and I can't seem to figure out how to glue my two-celled interrupt description (including the trigger) to the device tree code.  This is the gpio driver I'm using: 

Re: [PATCH] arm64/numa: Add more vetting in numa_set_distance()

2018-10-29 Thread Anshuman Khandual
On 10/29/2018 08:14 PM, John Garry wrote: > >  I think we should either factor out the sanity check >> into a core helper or make the core code robust to these funny >> configurations. > > OK, so to me it would make sense to factor out a sanity check into a core >

Re: [PATCH] arm64/numa: Add more vetting in numa_set_distance()

2018-10-29 Thread Anshuman Khandual
On 10/29/2018 08:14 PM, John Garry wrote: > >  I think we should either factor out the sanity check >> into a core helper or make the core code robust to these funny >> configurations. > > OK, so to me it would make sense to factor out a sanity check into a core >

RE: [PATCH] binder: ipc namespace support for android binder

2018-10-29 Thread 周威
> > > It's not obvious from this patch where this dependency comes > > > from...why is SYSVIPC required? I'd like to not have to require > > > IPC_NS either for devices. > > > > Yes, the patch is not highly dependent on SYSVIPC, but it will be > > convenient if require it. I will update it to

RE: [PATCH] binder: ipc namespace support for android binder

2018-10-29 Thread 周威
> > > It's not obvious from this patch where this dependency comes > > > from...why is SYSVIPC required? I'd like to not have to require > > > IPC_NS either for devices. > > > > Yes, the patch is not highly dependent on SYSVIPC, but it will be > > convenient if require it. I will update it to

Re: [PATCH] mm: handle no memcg case in memcg_kmem_charge() properly

2018-10-29 Thread Shakeel Butt
On Mon, Oct 29, 2018 at 6:01 PM Rik van Riel wrote: > > On Mon, 2018-10-29 at 17:50 -0700, Shakeel Butt wrote: > > On Mon, Oct 29, 2018 at 2:52 PM Roman Gushchin wrote: > > > > > > Mike Galbraith reported a regression caused by the commit > > > 9b6f7e163cd0 > > > ("mm: rework memcg kernel stack

Re: [PATCH] mm: handle no memcg case in memcg_kmem_charge() properly

2018-10-29 Thread Shakeel Butt
On Mon, Oct 29, 2018 at 6:01 PM Rik van Riel wrote: > > On Mon, 2018-10-29 at 17:50 -0700, Shakeel Butt wrote: > > On Mon, Oct 29, 2018 at 2:52 PM Roman Gushchin wrote: > > > > > > Mike Galbraith reported a regression caused by the commit > > > 9b6f7e163cd0 > > > ("mm: rework memcg kernel stack

RE: [PATCH] binder: ipc namespace support for android binder

2018-10-29 Thread 周威
> > > It's not obvious from this patch where this dependency comes > > > from...why is SYSVIPC required? I'd like to not have to require > > > IPC_NS either for devices. > > > > Yes, the patch is not highly dependent on SYSVIPC, but it will be > > convenient if require it. I will update it to

RE: [PATCH] binder: ipc namespace support for android binder

2018-10-29 Thread 周威
> > > It's not obvious from this patch where this dependency comes > > > from...why is SYSVIPC required? I'd like to not have to require > > > IPC_NS either for devices. > > > > Yes, the patch is not highly dependent on SYSVIPC, but it will be > > convenient if require it. I will update it to

[PATCH -next] nds32: Remove duplicated include from pm.c

2018-10-29 Thread YueHaibing
Remove duplicated include. Signed-off-by: YueHaibing --- arch/nds32/kernel/pm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/nds32/kernel/pm.c b/arch/nds32/kernel/pm.c index 6989560..ffa8040 100644 --- a/arch/nds32/kernel/pm.c +++ b/arch/nds32/kernel/pm.c @@ -5,7 +5,6 @@ #include

[PATCH -next] nds32: Remove duplicated include from pm.c

2018-10-29 Thread YueHaibing
Remove duplicated include. Signed-off-by: YueHaibing --- arch/nds32/kernel/pm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/nds32/kernel/pm.c b/arch/nds32/kernel/pm.c index 6989560..ffa8040 100644 --- a/arch/nds32/kernel/pm.c +++ b/arch/nds32/kernel/pm.c @@ -5,7 +5,6 @@ #include

Re: [PATCH v8 2/2] samples: add an example of seccomp user trap

2018-10-29 Thread Tycho Andersen
On Mon, Oct 29, 2018 at 11:31:00PM +, Serge E. Hallyn wrote: > On Mon, Oct 29, 2018 at 04:40:31PM -0600, Tycho Andersen wrote: > > + if (req->data.nr != __NR_mount) { > > + fprintf(stderr, "huh? trapped something besides mknod? %d\n", > > req->data.nr); > > 'besides mount' ?

Re: [PATCH v8 2/2] samples: add an example of seccomp user trap

2018-10-29 Thread Tycho Andersen
On Mon, Oct 29, 2018 at 11:31:00PM +, Serge E. Hallyn wrote: > On Mon, Oct 29, 2018 at 04:40:31PM -0600, Tycho Andersen wrote: > > + if (req->data.nr != __NR_mount) { > > + fprintf(stderr, "huh? trapped something besides mknod? %d\n", > > req->data.nr); > > 'besides mount' ?

Re: [PATCH] V4 init/main.c Enable watchdog_thresh control from kernel line

2018-10-29 Thread kbuild test robot
Hi Laurence, Thank you for the patch! Yet something to improve: [auto build test ERROR on linux-sof-driver/master] [also build test ERROR on v4.19 next-20181029] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day

Re: [PATCH] V4 init/main.c Enable watchdog_thresh control from kernel line

2018-10-29 Thread kbuild test robot
Hi Laurence, Thank you for the patch! Yet something to improve: [auto build test ERROR on linux-sof-driver/master] [also build test ERROR on v4.19 next-20181029] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day

Re: [PATCHES/RFC] Re: A concern about overflow ring buffer mode

2018-10-29 Thread Liang, Kan
On 10/29/2018 6:42 PM, David Miller wrote: From: "Liang, Kan" Date: Mon, 29 Oct 2018 18:32:40 -0400 - struct annotation_options *annotation_options __maybe_unused) + struct annotation_options *annotation_options __maybe_unused, +

Re: [PATCHES/RFC] Re: A concern about overflow ring buffer mode

2018-10-29 Thread Liang, Kan
On 10/29/2018 6:42 PM, David Miller wrote: From: "Liang, Kan" Date: Mon, 29 Oct 2018 18:32:40 -0400 - struct annotation_options *annotation_options __maybe_unused) + struct annotation_options *annotation_options __maybe_unused, +

[RFC PATCH] perf top: Move the timeout warning from event processing thread to display thread

2018-10-29 Thread kan . liang
From: Kan Liang The main event processing thread may hang if the ring buffer event processing timeouts. Analysis from David Miller: "It hangs the event thread, because the ui call waits for a keypress but the display thread will eat them up and the event thread thus hangs in select()." The

[RFC PATCH] perf top: Move the timeout warning from event processing thread to display thread

2018-10-29 Thread kan . liang
From: Kan Liang The main event processing thread may hang if the ring buffer event processing timeouts. Analysis from David Miller: "It hangs the event thread, because the ui call waits for a keypress but the display thread will eat them up and the event thread thus hangs in select()." The

arch/x86/include/asm/rmwcc.h:23:17: error: jump into statement expression

2018-10-29 Thread kbuild test robot
Hi Peter, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4b42745211af552f170f38a1b97f4a112b5da6b2 commit: 7aa54be2976550f17c11a1c3e3630002dea39303 locking/qspinlock, x86: Provide liveness guarantee date: 13 days

Re: [PATCH v2 1/1] iommu/arm-smmu-v3: eliminate a potential memory corruption on Hi16xx soc

2018-10-29 Thread Leizhen (ThunderTown)
On 2018/10/30 1:59, Will Deacon wrote: > On Sat, Oct 20, 2018 at 03:36:54PM +0800, Zhen Lei wrote: >> The standard GITS_TRANSLATER register in ITS is only 4 bytes, but >> Hisilicon expands the next 4 bytes to carry some IMPDEF information. That >> means, total 8 bytes data will be written to

arch/x86/include/asm/rmwcc.h:23:17: error: jump into statement expression

2018-10-29 Thread kbuild test robot
Hi Peter, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4b42745211af552f170f38a1b97f4a112b5da6b2 commit: 7aa54be2976550f17c11a1c3e3630002dea39303 locking/qspinlock, x86: Provide liveness guarantee date: 13 days

Re: [PATCH v2 1/1] iommu/arm-smmu-v3: eliminate a potential memory corruption on Hi16xx soc

2018-10-29 Thread Leizhen (ThunderTown)
On 2018/10/30 1:59, Will Deacon wrote: > On Sat, Oct 20, 2018 at 03:36:54PM +0800, Zhen Lei wrote: >> The standard GITS_TRANSLATER register in ITS is only 4 bytes, but >> Hisilicon expands the next 4 bytes to carry some IMPDEF information. That >> means, total 8 bytes data will be written to

Re: [PATCH] ASoC: AMD: Fix race condition between register access

2018-10-29 Thread Daniel Kurtz
Hi Akshu, On Mon, Oct 29, 2018 at 1:39 AM Agrawal, Akshu wrote: > > During simultaneous running of playback and capture, we > got hit by incorrect value write on common register. This was due > to race condition between 2 streams. > Fixing this by locking the common register access. Nice

Re: [PATCH] ASoC: AMD: Fix race condition between register access

2018-10-29 Thread Daniel Kurtz
Hi Akshu, On Mon, Oct 29, 2018 at 1:39 AM Agrawal, Akshu wrote: > > During simultaneous running of playback and capture, we > got hit by incorrect value write on common register. This was due > to race condition between 2 streams. > Fixing this by locking the common register access. Nice

Re: [PATCH v3] mm/page_owner: use kvmalloc instead of kmalloc

2018-10-29 Thread Miles Chen
On Mon, 2018-10-29 at 09:17 +0100, Michal Hocko wrote: > On Mon 29-10-18 09:07:08, Michal Hocko wrote: > [...] > > Besides that, the following doesn't make much sense to me. It simply > > makes no sense to use vmalloc for sub page allocation regardless of > > HIGHMEM. > > OK, it is still early

Re: [PATCH v3] mm/page_owner: use kvmalloc instead of kmalloc

2018-10-29 Thread Miles Chen
On Mon, 2018-10-29 at 09:17 +0100, Michal Hocko wrote: > On Mon 29-10-18 09:07:08, Michal Hocko wrote: > [...] > > Besides that, the following doesn't make much sense to me. It simply > > makes no sense to use vmalloc for sub page allocation regardless of > > HIGHMEM. > > OK, it is still early

linux-next: manual merge of the vfs tree with Linus' tree

2018-10-29 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in: fs/compat_ioctl.c between commit: 77654350306a ("take compat TIOC[SG]SERIAL treatment into tty_compat_ioctl()") from Linus' tree and commit: 69374d063be0 ("compat_ioctl: remove pointless HCI... ioctls") from the vfs

linux-next: manual merge of the vfs tree with Linus' tree

2018-10-29 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in: fs/compat_ioctl.c between commit: 77654350306a ("take compat TIOC[SG]SERIAL treatment into tty_compat_ioctl()") from Linus' tree and commit: 69374d063be0 ("compat_ioctl: remove pointless HCI... ioctls") from the vfs

make[2]: *** No rule to make target 'arch/xtensa/boot/dts/csp.dtb', needed by '__build'.

2018-10-29 Thread kbuild test robot
Hi Rob, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4b42745211af552f170f38a1b97f4a112b5da6b2 commit: 37c8a5fafa3bb7dcdd51774be353be6cb2912b86 kbuild: consolidate Devicetree dtb build rules date: 4 weeks ago

make[2]: *** No rule to make target 'arch/xtensa/boot/dts/csp.dtb', needed by '__build'.

2018-10-29 Thread kbuild test robot
Hi Rob, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4b42745211af552f170f38a1b97f4a112b5da6b2 commit: 37c8a5fafa3bb7dcdd51774be353be6cb2912b86 kbuild: consolidate Devicetree dtb build rules date: 4 weeks ago

RTL8812au driver source code A little help please?

2018-10-29 Thread Nathaniel Russell
make[1]: Entering directory '/usr/src/linux-4.19' CC [M] /tmp/rtl8812AU_8821AU_linux/os_dep/linux/os_intfs.o /tmp/rtl8812AU_8821AU_linux/os_dep/linux/os_intfs.c:816:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *, u16 (*)(struct net_device *,

RTL8812au driver source code A little help please?

2018-10-29 Thread Nathaniel Russell
make[1]: Entering directory '/usr/src/linux-4.19' CC [M] /tmp/rtl8812AU_8821AU_linux/os_dep/linux/os_intfs.o /tmp/rtl8812AU_8821AU_linux/os_dep/linux/os_intfs.c:816:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *, u16 (*)(struct net_device *,

Re: [PATCH] kretprobe: produce sane stack traces

2018-10-29 Thread Masami Hiramatsu
Hi Aleksa, On Sat, 27 Oct 2018 00:22:10 +1100 Aleksa Sarai wrote: > Historically, kretprobe has always produced unusable stack traces > (kretprobe_trampoline is the only entry in most cases, because of the > funky stack pointer overwriting). This has caused quite a few annoyances > when using

Re: [PATCH] kretprobe: produce sane stack traces

2018-10-29 Thread Masami Hiramatsu
Hi Aleksa, On Sat, 27 Oct 2018 00:22:10 +1100 Aleksa Sarai wrote: > Historically, kretprobe has always produced unusable stack traces > (kretprobe_trampoline is the only entry in most cases, because of the > funky stack pointer overwriting). This has caused quite a few annoyances > when using

[PATCH v3] thermal: qoriq: add multiple sensors support

2018-10-29 Thread andy . tang
From: Yuantian Tang The QorIQ Layerscape SoC has several thermal sensors but the current driver only supports one. Massage the code to be sensor oriented and allow the support for multiple sensors. Signed-off-by: Yuantian Tang Reviewed-by: Daniel Lezcano --- v3: - add Reviewed-by v2: -

[PATCH v3] thermal: qoriq: add multiple sensors support

2018-10-29 Thread andy . tang
From: Yuantian Tang The QorIQ Layerscape SoC has several thermal sensors but the current driver only supports one. Massage the code to be sensor oriented and allow the support for multiple sensors. Signed-off-by: Yuantian Tang Reviewed-by: Daniel Lezcano --- v3: - add Reviewed-by v2: -

Re: [PATCH] mm: handle no memcg case in memcg_kmem_charge() properly

2018-10-29 Thread Rik van Riel
On Mon, 2018-10-29 at 17:50 -0700, Shakeel Butt wrote: > On Mon, Oct 29, 2018 at 2:52 PM Roman Gushchin wrote: > > > > Mike Galbraith reported a regression caused by the commit > > 9b6f7e163cd0 > > ("mm: rework memcg kernel stack accounting") on a system with > > "cgroup_disable=memory" boot

Re: [PATCH] mm: handle no memcg case in memcg_kmem_charge() properly

2018-10-29 Thread Rik van Riel
On Mon, 2018-10-29 at 17:50 -0700, Shakeel Butt wrote: > On Mon, Oct 29, 2018 at 2:52 PM Roman Gushchin wrote: > > > > Mike Galbraith reported a regression caused by the commit > > 9b6f7e163cd0 > > ("mm: rework memcg kernel stack accounting") on a system with > > "cgroup_disable=memory" boot

Re: [PATCH] fs/proc: introduce /proc/stat2 file

2018-10-29 Thread Vito Caputo
On Mon, Oct 29, 2018 at 11:04:45PM +, Daniel Colascione wrote: > On Mon, Oct 29, 2018 at 7:25 PM, Davidlohr Bueso wrote: > > This patch introduces a new /proc/stat2 file that is identical to the > > regular 'stat' except that it zeroes all hard irq statistics. The new > > file is a drop in

Re: [PATCH] fs/proc: introduce /proc/stat2 file

2018-10-29 Thread Vito Caputo
On Mon, Oct 29, 2018 at 11:04:45PM +, Daniel Colascione wrote: > On Mon, Oct 29, 2018 at 7:25 PM, Davidlohr Bueso wrote: > > This patch introduces a new /proc/stat2 file that is identical to the > > regular 'stat' except that it zeroes all hard irq statistics. The new > > file is a drop in

Re: [PATCH] mm: handle no memcg case in memcg_kmem_charge() properly

2018-10-29 Thread Shakeel Butt
On Mon, Oct 29, 2018 at 2:52 PM Roman Gushchin wrote: > > Mike Galbraith reported a regression caused by the commit 9b6f7e163cd0 > ("mm: rework memcg kernel stack accounting") on a system with > "cgroup_disable=memory" boot option: the system panics with the > following stack trace: > >

Re: [PATCH] mm: handle no memcg case in memcg_kmem_charge() properly

2018-10-29 Thread Shakeel Butt
On Mon, Oct 29, 2018 at 2:52 PM Roman Gushchin wrote: > > Mike Galbraith reported a regression caused by the commit 9b6f7e163cd0 > ("mm: rework memcg kernel stack accounting") on a system with > "cgroup_disable=memory" boot option: the system panics with the > following stack trace: > >

net/sunrpc/auth_gss/gss_krb5_seal.c:144:14: error: implicit declaration of function 'cmpxchg64'; did you mean 'cmpxchg'?

2018-10-29 Thread kbuild test robot
Hi Arnd, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4b42745211af552f170f38a1b97f4a112b5da6b2 commit: 21924765862a0871908a35cb0e53e2e1c169b888 SUNRPC: use cmpxchg64() in gss_seq_send64_fetch_and_inc() date: 3

net/sunrpc/auth_gss/gss_krb5_seal.c:144:14: error: implicit declaration of function 'cmpxchg64'; did you mean 'cmpxchg'?

2018-10-29 Thread kbuild test robot
Hi Arnd, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4b42745211af552f170f38a1b97f4a112b5da6b2 commit: 21924765862a0871908a35cb0e53e2e1c169b888 SUNRPC: use cmpxchg64() in gss_seq_send64_fetch_and_inc() date: 3

sound/pci/hda/patch_ca0132.c:7650:20: error: implicit declaration of function 'pci_iomap'; did you mean 'pcim_iomap'?

2018-10-29 Thread kbuild test robot
Hi Rakesh, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4b42745211af552f170f38a1b97f4a112b5da6b2 commit: 6bae5ea9498926440ffc883f3dbceb0adc65e492 ASoC: hdac_hda: add asoc extension for legacy HDA codec drivers

sound/pci/hda/patch_ca0132.c:7650:20: error: implicit declaration of function 'pci_iomap'; did you mean 'pcim_iomap'?

2018-10-29 Thread kbuild test robot
Hi Rakesh, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4b42745211af552f170f38a1b97f4a112b5da6b2 commit: 6bae5ea9498926440ffc883f3dbceb0adc65e492 ASoC: hdac_hda: add asoc extension for legacy HDA codec drivers

Re: [PATCH v2 3/5] Creates macro to avoid variable shadowing

2018-10-29 Thread Leonardo Bras
Thank you! On Sun, Oct 28, 2018 at 1:38 PM Masahiro Yamada wrote: > > On Tue, Oct 23, 2018 at 10:11 AM Leonardo Brás wrote: > > > > Creates DEF_FIELD_ADDR_VAR as a more generic version of the DEF_FIELD_ADD > > macro, allowing usage of a variable name other than the struct element name. > > Also,

Re: [PATCH v2 3/5] Creates macro to avoid variable shadowing

2018-10-29 Thread Leonardo Bras
Thank you! On Sun, Oct 28, 2018 at 1:38 PM Masahiro Yamada wrote: > > On Tue, Oct 23, 2018 at 10:11 AM Leonardo Brás wrote: > > > > Creates DEF_FIELD_ADDR_VAR as a more generic version of the DEF_FIELD_ADD > > macro, allowing usage of a variable name other than the struct element name. > > Also,

Re: [PATCH v3 2/5] kbuild: Removes unnecessary shadowed local variable.

2018-10-29 Thread Leonardo Bras
Sorry, I will take care next time. Thank you, Leonardo Bras On Sun, Oct 28, 2018 at 1:37 PM Masahiro Yamada wrote: > > On Wed, Oct 24, 2018 at 1:04 PM Leonardo Bras wrote: > > > > Removes an unnecessary shadowed local variable (start). > > It was used only once, with the same value it was

Re: [PATCH v3 2/5] kbuild: Removes unnecessary shadowed local variable.

2018-10-29 Thread Leonardo Bras
Sorry, I will take care next time. Thank you, Leonardo Bras On Sun, Oct 28, 2018 at 1:37 PM Masahiro Yamada wrote: > > On Wed, Oct 24, 2018 at 1:04 PM Leonardo Bras wrote: > > > > Removes an unnecessary shadowed local variable (start). > > It was used only once, with the same value it was

Re: [PATCH] binder: ipc namespace support for android binder

2018-10-29 Thread Todd Kjos
+christ...@brauner.io On Sun, Oct 28, 2018 at 7:29 PM chouryzhou(周威) wrote: ... > > > It's not obvious from this patch where this dependency comes > > from...why is SYSVIPC required? I'd like to not have to require IPC_NS > > either for devices. > > Yes, the patch is not highly dependent on

Re: [PATCH] binder: ipc namespace support for android binder

2018-10-29 Thread Todd Kjos
+christ...@brauner.io On Sun, Oct 28, 2018 at 7:29 PM chouryzhou(周威) wrote: ... > > > It's not obvious from this patch where this dependency comes > > from...why is SYSVIPC required? I'd like to not have to require IPC_NS > > either for devices. > > Yes, the patch is not highly dependent on

[ANNOUNCE] v4.19-rt1

2018-10-29 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v4.19-rt1 patch set. Changes since v4.18.16-rt9: - rebase to v4.19 Known issues - A warning triggered in "rcu_note_context_switch" originated from SyS_timer_gettime(). The issue was always there, it is now visible. Reported by

[ANNOUNCE] v4.19-rt1

2018-10-29 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v4.19-rt1 patch set. Changes since v4.18.16-rt9: - rebase to v4.19 Known issues - A warning triggered in "rcu_note_context_switch" originated from SyS_timer_gettime(). The issue was always there, it is now visible. Reported by

Re: [GIT PULL] rpmsg updates for v4.20

2018-10-29 Thread Linus Torvalds
On Mon, Oct 29, 2018 at 4:30 PM Bjorn Andersson wrote: > > rpmsg updates for v4.20 Pulled (along with the remoteproc branch), Linus

Re: [GIT PULL] rpmsg updates for v4.20

2018-10-29 Thread Linus Torvalds
On Mon, Oct 29, 2018 at 4:30 PM Bjorn Andersson wrote: > > rpmsg updates for v4.20 Pulled (along with the remoteproc branch), Linus

Re: Re: [PATCH] fs/proc: introduce /proc/stat2 file

2018-10-29 Thread Alexey Dobriyan
On Mon, Oct 29, 2018 at 11:40:47PM +, Daniel Colascione wrote: > On Mon, Oct 29, 2018 at 11:34 PM, Alexey Dobriyan wrote: > >> I'd much rather move to a model in which userspace *explicitly* tells > >> the kernel which fields it wants, with the kernel replying with just > >> those particular

Re: Re: [PATCH] fs/proc: introduce /proc/stat2 file

2018-10-29 Thread Alexey Dobriyan
On Mon, Oct 29, 2018 at 11:40:47PM +, Daniel Colascione wrote: > On Mon, Oct 29, 2018 at 11:34 PM, Alexey Dobriyan wrote: > >> I'd much rather move to a model in which userspace *explicitly* tells > >> the kernel which fields it wants, with the kernel replying with just > >> those particular

  1   2   3   4   5   6   7   8   9   10   >