[PATCH 14/22] perf bpf: Use ERR_CAST instead of ERR_PTR(PTR_ERR())

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Wen Yang Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)). This makes it more readable and also fix this warning detected by err_cast.cocci: tools/perf/util/bpf-loader.c:1606:11-18: WARNING: ERR_CAST can be used with op Signed-off-by: Wen Yang Cc: Alexander Shishkin

[PATCH 21/22] perf beauty mmap_flags: Check if the arch has a mmap.h file

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo If not, then just use what is in asm-generic. This fixes the build for my sh4, m68k and riscv64 perf test build containers that were failing due to 80ee5668b8a7 ("perf beauty: Add a generator for MAP_ mmap's flag constants"), that were not covered in the cset

[PATCH 09/22] perf script: Use fallbacks for branch stacks

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Branch stacks do not necessarily have the same cpumode as the 'ip'. Use the fallback functions in those cases. This patch depends on patch "perf tools: Add fallback functions for cases where cpumode is insufficient". Signed-off-by: Adrian Hunter Cc: Andi Kleen Cc: David

[PATCH 13/22] tools include: Adopt ERR_CAST() from the kernel err.h header

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Add ERR_CAST(), so that tools can use it, just like the kernel. This addresses coccinelle checks that are being performed to tools/ in addition to kernel sources, so lets add this to cover that and to get tools code closer to kernel coding standards. This

[PATCH 17/22] tools build feature: Check if libaio is available

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov This will be used by 'perf record' to speed up reading the perf ring buffer. Committer testing: $ make -C tools/perf O=/tmp/build/perf make: Entering directory '/home/acme/git/perf/tools/perf' BUILD: Doing 'make -j8' parallel build Auto-detecting system

[PATCH 19/22] perf record: Enable asynchronous trace writing

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov The trace file offset is read once before mmaps iterating loop and written back after all performance data is enqueued for aio writing. The trace file offset is incremented linearly after every successful aio write operation. record__aio_sync() blocks till completion of

[PATCH 17/22] tools build feature: Check if libaio is available

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov This will be used by 'perf record' to speed up reading the perf ring buffer. Committer testing: $ make -C tools/perf O=/tmp/build/perf make: Entering directory '/home/acme/git/perf/tools/perf' BUILD: Doing 'make -j8' parallel build Auto-detecting system

[PATCH 19/22] perf record: Enable asynchronous trace writing

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov The trace file offset is read once before mmaps iterating loop and written back after all performance data is enqueued for aio writing. The trace file offset is incremented linearly after every successful aio write operation. record__aio_sync() blocks till completion of

[PATCH 18/22] perf mmap: Map data buffer for preserving collected data

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov The map->data buffer is used to preserve map->base profiling data for writing to disk. AIO map->cblock is used to queue corresponding map->data buffer for asynchronous writing. Signed-off-by: Alexey Budankov Reviewed-by: Jiri Olsa Acked-by: Namhyung Kim Cc: Alexander

[PATCH 20/22] perf record: Extend trace writing to multi AIO

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Multi AIO trace writing allows caching more kernel data into userspace memory postponing trace writing for the sake of overall profiling data thruput increase. It could be seen as kernel data buffer extension into userspace memory. With an --aio option value different from

[PATCH 18/22] perf mmap: Map data buffer for preserving collected data

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov The map->data buffer is used to preserve map->base profiling data for writing to disk. AIO map->cblock is used to queue corresponding map->data buffer for asynchronous writing. Signed-off-by: Alexey Budankov Reviewed-by: Jiri Olsa Acked-by: Namhyung Kim Cc: Alexander

[PATCH 20/22] perf record: Extend trace writing to multi AIO

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Multi AIO trace writing allows caching more kernel data into userspace memory postponing trace writing for the sake of overall profiling data thruput increase. It could be seen as kernel data buffer extension into userspace memory. With an --aio option value different from

[PATCH 16/22] perf intel-pt: Fix error with config term "pt=0"

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Users should never use 'pt=0', but if they do it may give a meaningless error: $ perf record -e intel_pt/pt=0/u uname Error: The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (intel_pt/pt=0/u). Fix that by

[PATCH 06/22] perf machine: Record if a arch has a single user/kernel address space

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Some architectures have a single address space for kernel and user addresses, which makes it possible to determine if an address is in kernel space or user space. Some don't, e.g.: sparc. Cache that info in perf_env so that, for instance, code needing to fallback failed

[PATCH 12/22] perf test: Fix perf_event_attr test failure

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Fix inconsistent use of tabs and spaces error: # perf test 16 -v 16: Setup struct perf_event_attr : --- start --- test child forked, pid 20224 File "/usr/libexec/perf-core/tests/attr.py", line 119 log.warning("expected %s=%s, got

[GIT PULL 00/22] perf/core improvements and fixes

2018-11-30 Thread Arnaldo Carvalho de Melo
/kernel/git/acme/linux into perf/urgent (2018-11-21 15:57:21 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.21-20181130 for you to fetch changes up to 09d3f015d1e1b4fee7e9bbdcf54201d239393391: uprobes

[GIT PULL 00/22] perf/core improvements and fixes

2018-11-30 Thread Arnaldo Carvalho de Melo
/kernel/git/acme/linux into perf/urgent (2018-11-21 15:57:21 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.21-20181130 for you to fetch changes up to 09d3f015d1e1b4fee7e9bbdcf54201d239393391: uprobes

[PATCH 16/22] perf intel-pt: Fix error with config term "pt=0"

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Users should never use 'pt=0', but if they do it may give a meaningless error: $ perf record -e intel_pt/pt=0/u uname Error: The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (intel_pt/pt=0/u). Fix that by

[PATCH 06/22] perf machine: Record if a arch has a single user/kernel address space

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Some architectures have a single address space for kernel and user addresses, which makes it possible to determine if an address is in kernel space or user space. Some don't, e.g.: sparc. Cache that info in perf_env so that, for instance, code needing to fallback failed

[PATCH 12/22] perf test: Fix perf_event_attr test failure

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Fix inconsistent use of tabs and spaces error: # perf test 16 -v 16: Setup struct perf_event_attr : --- start --- test child forked, pid 20224 File "/usr/libexec/perf-core/tests/attr.py", line 119 log.warning("expected %s=%s, got

[PATCH 01/22] perf build: Give better hint about devel package for libssl

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo In debian/ubuntu its libssl-dev, but for fedora/RHEL/Centos/etc its openssl-devel, fix it. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Stephane Eranian Cc: Wang Nan Fixes: 8ee4646038e4 ("perf build: Add libcrypto feature detection")

[PATCH 07/22] perf thread: Add fallback functions for cases where cpumode is insufficient

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter For branch stacks or branch samples, the sample cpumode might not be correct because it applies only to the sample 'ip' and not necessary to 'addr' or branch stack addresses. Add fallback functions that can be used to deal with those cases Signed-off-by: Adrian Hunter Cc:

[PATCH 15/22] perf top: Allow passing a kallsyms file

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo This basically replicates what was done for 'perf report' in: b226a5a72901 ("perf report: Allow user to specify path to kallsyms file") This should help with resolving eBPF symbols, that are in kallsyms but, of course, not in vmlinux. Reported-by: Ivan Babrou

[PATCH 11/22] perf tests record: Allow for 'sleep' being 'coreutils'

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter If the 'sleep' command is provided by coreutils, then the "PERF_RECORD_* events & perf_sample fields" test will fail because the MMAP name is 'coreutils' not 'sleep', and there is an extra COMM event. Fix the test to detect that case. Signed-off-by: Adrian Hunter Cc: Jiri

[PATCH 08/22] perf tools: Use fallback for sample_addr_correlates_sym() cases

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter thread__resolve() is used in the sample_addr_correlates_sym() cases where 'addr' is a destination of a branch which does not necessarily have the same cpumode as the 'ip'. Use the fallback function in that case. This patch depends on patch "perf tools: Add fallback functions

[PATCH 11/22] perf tests record: Allow for 'sleep' being 'coreutils'

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter If the 'sleep' command is provided by coreutils, then the "PERF_RECORD_* events & perf_sample fields" test will fail because the MMAP name is 'coreutils' not 'sleep', and there is an extra COMM event. Fix the test to detect that case. Signed-off-by: Adrian Hunter Cc: Jiri

[PATCH 08/22] perf tools: Use fallback for sample_addr_correlates_sym() cases

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter thread__resolve() is used in the sample_addr_correlates_sym() cases where 'addr' is a destination of a branch which does not necessarily have the same cpumode as the 'ip'. Use the fallback function in that case. This patch depends on patch "perf tools: Add fallback functions

[PATCH 01/22] perf build: Give better hint about devel package for libssl

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo In debian/ubuntu its libssl-dev, but for fedora/RHEL/Centos/etc its openssl-devel, fix it. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Stephane Eranian Cc: Wang Nan Fixes: 8ee4646038e4 ("perf build: Add libcrypto feature detection")

[PATCH 07/22] perf thread: Add fallback functions for cases where cpumode is insufficient

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter For branch stacks or branch samples, the sample cpumode might not be correct because it applies only to the sample 'ip' and not necessary to 'addr' or branch stack addresses. Add fallback functions that can be used to deal with those cases Signed-off-by: Adrian Hunter Cc:

[PATCH 15/22] perf top: Allow passing a kallsyms file

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo This basically replicates what was done for 'perf report' in: b226a5a72901 ("perf report: Allow user to specify path to kallsyms file") This should help with resolving eBPF symbols, that are in kallsyms but, of course, not in vmlinux. Reported-by: Ivan Babrou

[PATCH 04/22] perf map: Remove extra indirection from map__find()

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Eric Saint-Etienne A double pointer is used in map__find() where a single pointer is enough because the function doesn't affect the rbtree and the rbtree is locked. Signed-off-by: Eric Saint-Etienne Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Eric Saint-Etienne Cc: Namhyung Kim

[PATCH 04/22] perf map: Remove extra indirection from map__find()

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Eric Saint-Etienne A double pointer is used in map__find() where a single pointer is enough because the function doesn't affect the rbtree and the rbtree is locked. Signed-off-by: Eric Saint-Etienne Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Eric Saint-Etienne Cc: Namhyung Kim

[PATCH 03/22] perf stat: Fix CSV mode column output for non-cgroup events

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Stephane Eranian When using the -x option, perf stat prints CSV-style output with one event per line. For each event, it prints the count, the unit, the event name, the cgroup, and a bunch of other event specific fields (such as insn per cycles). When you use CSV-style mode, you expect a

[PATCH 05/22] perf env: Also consider env->arch == NULL as local operation

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We'll set a new machine field based on env->arch, which for live mode, like with 'perf top' means we need to use uname() to figure the name of the arch, fix perf_env__arch() to consider both (env == NULL) and (env->arch == NULL) as local operation. Cc: Adrian

[PATCH 02/22] perf stat: Fix shadow stats for clock events

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria Commit 0aa802a79469 ("perf stat: Get rid of extra clock display function") introduced scale and unit for clock events. Thus, perf_stat__update_shadow_stats() now saves scaled values of clock events in msecs, instead of original nsecs. But while calculating values of shadow

[PATCH 03/22] perf stat: Fix CSV mode column output for non-cgroup events

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Stephane Eranian When using the -x option, perf stat prints CSV-style output with one event per line. For each event, it prints the count, the unit, the event name, the cgroup, and a bunch of other event specific fields (such as insn per cycles). When you use CSV-style mode, you expect a

[PATCH 05/22] perf env: Also consider env->arch == NULL as local operation

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We'll set a new machine field based on env->arch, which for live mode, like with 'perf top' means we need to use uname() to figure the name of the arch, fix perf_env__arch() to consider both (env == NULL) and (env->arch == NULL) as local operation. Cc: Adrian

[PATCH 02/22] perf stat: Fix shadow stats for clock events

2018-11-30 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria Commit 0aa802a79469 ("perf stat: Get rid of extra clock display function") introduced scale and unit for clock events. Thus, perf_stat__update_shadow_stats() now saves scaled values of clock events in msecs, instead of original nsecs. But while calculating values of shadow

[PATCH v11 1/3] dt-bindings: clock: Update GCC bindings for protected-clocks

2018-11-30 Thread Taniya Das
Add protected-clocks list which could used to specify the clocks to be bypassed on certain devices. Reviewed-by: Rob Herring Signed-off-by: Taniya Das --- Documentation/devicetree/bindings/clock/qcom,gcc.txt | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH v11 1/3] dt-bindings: clock: Update GCC bindings for protected-clocks

2018-11-30 Thread Taniya Das
Add protected-clocks list which could used to specify the clocks to be bypassed on certain devices. Reviewed-by: Rob Herring Signed-off-by: Taniya Das --- Documentation/devicetree/bindings/clock/qcom,gcc.txt | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH v11 2/3] dt-bindings: clock: Introduce QCOM LPASS clock bindings

2018-11-30 Thread Taniya Das
Add device tree bindings for Low Power Audio subsystem clock controller for Qualcomm Technology Inc's SDM845 SoCs. Reviewed-by: Rob Herring Signed-off-by: Taniya Das --- .../devicetree/bindings/clock/qcom,gcc.txt | 4 +++- .../devicetree/bindings/clock/qcom,lpasscc.txt | 26

[PATCH v11 3/3] clk: qcom: Add lpass clock controller driver for SDM845

2018-11-30 Thread Taniya Das
Add support for the lpass clock controller found on SDM845 based devices. This would allow lpass peripheral loader drivers to control the clocks to bring the subsystem out of reset. LPASS clocks present on the global clock controller would be registered with the clock framework based on the

Re: [RFC v3 06/19] arch: um: enable running kunit from User Mode Linux

2018-11-30 Thread Luis Chamberlain
On Fri, Nov 30, 2018 at 08:05:34AM -0600, Rob Herring wrote: > On Thu, Nov 29, 2018 at 9:37 PM Luis Chamberlain wrote: > > > > On Wed, Nov 28, 2018 at 03:26:03PM -0600, Rob Herring wrote: > > > On Wed, Nov 28, 2018 at 1:37 PM Brendan Higgins > > > wrote: > > > > > > > > Make minimum number of

[PATCH v11 2/3] dt-bindings: clock: Introduce QCOM LPASS clock bindings

2018-11-30 Thread Taniya Das
Add device tree bindings for Low Power Audio subsystem clock controller for Qualcomm Technology Inc's SDM845 SoCs. Reviewed-by: Rob Herring Signed-off-by: Taniya Das --- .../devicetree/bindings/clock/qcom,gcc.txt | 4 +++- .../devicetree/bindings/clock/qcom,lpasscc.txt | 26

[PATCH v11 3/3] clk: qcom: Add lpass clock controller driver for SDM845

2018-11-30 Thread Taniya Das
Add support for the lpass clock controller found on SDM845 based devices. This would allow lpass peripheral loader drivers to control the clocks to bring the subsystem out of reset. LPASS clocks present on the global clock controller would be registered with the clock framework based on the

Re: [RFC v3 06/19] arch: um: enable running kunit from User Mode Linux

2018-11-30 Thread Luis Chamberlain
On Fri, Nov 30, 2018 at 08:05:34AM -0600, Rob Herring wrote: > On Thu, Nov 29, 2018 at 9:37 PM Luis Chamberlain wrote: > > > > On Wed, Nov 28, 2018 at 03:26:03PM -0600, Rob Herring wrote: > > > On Wed, Nov 28, 2018 at 1:37 PM Brendan Higgins > > > wrote: > > > > > > > > Make minimum number of

[PATCH v11 0/3] Add support for LPASS clock controller for SDM845

2018-11-30 Thread Taniya Das
[v11] * Add the GCC LPASS clocks only if LPASSCC config is present. * Update the comment in lpasscc driver. [v10] * Separate change to add protected-clocks list in GCC binding. * Remove the clock support 'LPASS_AUDIO_WRAPPER_AON_CLK' as it is always ON clock. * Add few comments for

[PATCH v11 0/3] Add support for LPASS clock controller for SDM845

2018-11-30 Thread Taniya Das
[v11] * Add the GCC LPASS clocks only if LPASSCC config is present. * Update the comment in lpasscc driver. [v10] * Separate change to add protected-clocks list in GCC binding. * Remove the clock support 'LPASS_AUDIO_WRAPPER_AON_CLK' as it is always ON clock. * Add few comments for

Re: [PATCH v2] kmemleak: Turn kmemleak_lock to raw spinlock on RT

2018-11-30 Thread Sebastian Andrzej Siewior
On 2018-11-24 22:26:46 [+0800], He Zhe wrote: > On latest v4.19.1-rt3, both of the call traces can be reproduced with kmemleak > enabied. And none can be reproduced with kmemleak disabled. okay. So it needs attention. > On latest mainline tree, none can be reproduced no matter kmemleak is enabled

Re: [PATCH v2] kmemleak: Turn kmemleak_lock to raw spinlock on RT

2018-11-30 Thread Sebastian Andrzej Siewior
On 2018-11-24 22:26:46 [+0800], He Zhe wrote: > On latest v4.19.1-rt3, both of the call traces can be reproduced with kmemleak > enabied. And none can be reproduced with kmemleak disabled. okay. So it needs attention. > On latest mainline tree, none can be reproduced no matter kmemleak is enabled

Re: [PATCH] fs: Make /proc/sys inodes be owned by global root.

2018-11-30 Thread Luis Chamberlain
On Fri, Nov 30, 2018 at 08:48:11AM -0600, Eric W. Biederman wrote: > Luis Chamberlain writes: > > > The logic seems sensible then, but are we implicating what a container > > does with its sysctl values onto the entire system? If so, sure, it > > seems you want this for networking purposes as

Re: [PATCH] fs: Make /proc/sys inodes be owned by global root.

2018-11-30 Thread Luis Chamberlain
On Fri, Nov 30, 2018 at 08:48:11AM -0600, Eric W. Biederman wrote: > Luis Chamberlain writes: > > > The logic seems sensible then, but are we implicating what a container > > does with its sysctl values onto the entire system? If so, sure, it > > seems you want this for networking purposes as

Re: [PATCH v10 3/3] clk: qcom: Add lpass clock controller driver for SDM845

2018-11-30 Thread Taniya Das
Hello Stephen, On 11/29/2018 2:40 AM, Stephen Boyd wrote: Quoting Taniya Das (2018-11-21 23:53:41) diff --git a/drivers/clk/qcom/gcc-sdm845.c b/drivers/clk/qcom/gcc-sdm845.c index f133b7f..ba8ff99 100644 --- a/drivers/clk/qcom/gcc-sdm845.c +++ b/drivers/clk/qcom/gcc-sdm845.c @@ -3153,6

Re: [PATCH v10 3/3] clk: qcom: Add lpass clock controller driver for SDM845

2018-11-30 Thread Taniya Das
Hello Stephen, On 11/29/2018 2:40 AM, Stephen Boyd wrote: Quoting Taniya Das (2018-11-21 23:53:41) diff --git a/drivers/clk/qcom/gcc-sdm845.c b/drivers/clk/qcom/gcc-sdm845.c index f133b7f..ba8ff99 100644 --- a/drivers/clk/qcom/gcc-sdm845.c +++ b/drivers/clk/qcom/gcc-sdm845.c @@ -3153,6

Re: [PATCH v10 3/3] clk: qcom: Add lpass clock controller driver for SDM845

2018-11-30 Thread Taniya Das
Hello Stephen, On 11/27/2018 2:44 PM, Stephen Boyd wrote: Quoting Taniya Das (2018-11-21 23:53:41) + +static struct clk_branch lpass_qdsp6ss_core_clk = { + .halt_reg = 0x20, + /* CLK_OFF would not toggle until LPASS is not out of reset */ Is this really "CLK_OFF won't toggle

Re: [PATCH v10 3/3] clk: qcom: Add lpass clock controller driver for SDM845

2018-11-30 Thread Taniya Das
Hello Stephen, On 11/27/2018 2:44 PM, Stephen Boyd wrote: Quoting Taniya Das (2018-11-21 23:53:41) + +static struct clk_branch lpass_qdsp6ss_core_clk = { + .halt_reg = 0x20, + /* CLK_OFF would not toggle until LPASS is not out of reset */ Is this really "CLK_OFF won't toggle

Re: [PATCH 0/2] [GIT PULL] tracing: More fixes for 4.20

2018-11-30 Thread Steven Rostedt
On Fri, 30 Nov 2018 09:41:00 -0800 Linus Torvalds wrote: > On Thu, Nov 29, 2018 at 7:19 PM Steven Rostedt wrote: > > > > Note, this is on top of a previous git pull that I have submitted: > > > > http://lkml.kernel.org/r/20181127224031.76681...@vmware.local.home > > Hmm. > > I had

Re: [PATCH 0/2] [GIT PULL] tracing: More fixes for 4.20

2018-11-30 Thread Steven Rostedt
On Fri, 30 Nov 2018 09:41:00 -0800 Linus Torvalds wrote: > On Thu, Nov 29, 2018 at 7:19 PM Steven Rostedt wrote: > > > > Note, this is on top of a previous git pull that I have submitted: > > > > http://lkml.kernel.org/r/20181127224031.76681...@vmware.local.home > > Hmm. > > I had

RE: [PATCH] [repost] Drivers: hv: vmbus: Offload the handling of channels to two workqueues

2018-11-30 Thread Dexuan Cui
> From: KY Srinivasan > Sent: Friday, November 30, 2018 9:31 AM > > From: Dexuan Cui > > Sent: Thursday, November 29, 2018 12:17 AM > > To: gre...@linuxfoundation.org > > Cc: KY Srinivasan ; Haiyang Zhang > > ; Stephen Hemminger > > ; linux-kernel@vger.kernel.org; > >

RE: [PATCH] [repost] Drivers: hv: vmbus: Offload the handling of channels to two workqueues

2018-11-30 Thread Dexuan Cui
> From: KY Srinivasan > Sent: Friday, November 30, 2018 9:31 AM > > From: Dexuan Cui > > Sent: Thursday, November 29, 2018 12:17 AM > > To: gre...@linuxfoundation.org > > Cc: KY Srinivasan ; Haiyang Zhang > > ; Stephen Hemminger > > ; linux-kernel@vger.kernel.org; > >

Re: [PATCH v6 04/24] arm/arm64: gic-v3: Add PMR and RPR accessors

2018-11-30 Thread Catalin Marinas
On Mon, Nov 12, 2018 at 11:56:55AM +, Julien Thierry wrote: > Add helper functions to access system registers related to interrupt > priorities: PMR and RPR. > > Signed-off-by: Julien Thierry > Cc: Russell King > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Marc Zyngier Acked-by: Catalin

Re: [PATCH v6 04/24] arm/arm64: gic-v3: Add PMR and RPR accessors

2018-11-30 Thread Catalin Marinas
On Mon, Nov 12, 2018 at 11:56:55AM +, Julien Thierry wrote: > Add helper functions to access system registers related to interrupt > priorities: PMR and RPR. > > Signed-off-by: Julien Thierry > Cc: Russell King > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Marc Zyngier Acked-by: Catalin

Re: BUG: corrupted list in freeary

2018-11-30 Thread Dmitry Vyukov
On Fri, Nov 30, 2018 at 5:58 PM, Dmitry Vyukov wrote: > On Thu, Nov 29, 2018 at 9:13 AM, Manfred Spraul > wrote: >> Hello together, >> >> On 11/27/18 4:52 PM, syzbot wrote: >> >> Hello, >> >> syzbot found the following crash on: >> >> HEAD commit:e195ca6cb6f2 Merge branch 'for-linus' of

Re: BUG: corrupted list in freeary

2018-11-30 Thread Dmitry Vyukov
On Fri, Nov 30, 2018 at 5:58 PM, Dmitry Vyukov wrote: > On Thu, Nov 29, 2018 at 9:13 AM, Manfred Spraul > wrote: >> Hello together, >> >> On 11/27/18 4:52 PM, syzbot wrote: >> >> Hello, >> >> syzbot found the following crash on: >> >> HEAD commit:e195ca6cb6f2 Merge branch 'for-linus' of

Re: [PATCH v6 03/24] arm64: cpufeature: Add cpufeature for IRQ priority masking

2018-11-30 Thread Catalin Marinas
On Mon, Nov 12, 2018 at 11:56:54AM +, Julien Thierry wrote: > Add a cpufeature indicating whether a cpu supports masking interrupts > by priority. > > The feature will be properly enabled in a later patch. > > Signed-off-by: Julien Thierry > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Marc

Re: [PATCH v6 03/24] arm64: cpufeature: Add cpufeature for IRQ priority masking

2018-11-30 Thread Catalin Marinas
On Mon, Nov 12, 2018 at 11:56:54AM +, Julien Thierry wrote: > Add a cpufeature indicating whether a cpu supports masking interrupts > by priority. > > The feature will be properly enabled in a later patch. > > Signed-off-by: Julien Thierry > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Marc

Re: [PATCH v6 02/24] arm64: cpufeature: Set SYSREG_GIC_CPUIF as a boot system feature

2018-11-30 Thread Catalin Marinas
On Mon, Nov 12, 2018 at 11:56:53AM +, Julien Thierry wrote: > It is not supported to have some CPUs using GICv3 sysreg CPU interface > while some others do not. > > Once ICC_SRE_EL1.SRE is set on a CPU, the bit cannot be cleared. Since > matching this feature require setting ICC_SRE_EL1.SRE,

Re: [PATCH v6 02/24] arm64: cpufeature: Set SYSREG_GIC_CPUIF as a boot system feature

2018-11-30 Thread Catalin Marinas
On Mon, Nov 12, 2018 at 11:56:53AM +, Julien Thierry wrote: > It is not supported to have some CPUs using GICv3 sysreg CPU interface > while some others do not. > > Once ICC_SRE_EL1.SRE is set on a CPU, the bit cannot be cleared. Since > matching this feature require setting ICC_SRE_EL1.SRE,

Re: [PATCH 0/4] x86/mm/cpa: Fix cpa-array TLB invalidation

2018-11-30 Thread Peter Zijlstra
On Fri, Nov 30, 2018 at 05:49:34PM +, StDenis, Tom wrote: > On 2018-11-30 12:48 p.m., Peter Zijlstra wrote: > > On Fri, Nov 30, 2018 at 04:19:46PM +, StDenis, Tom wrote: > >> On 2018-11-30 10:31 a.m., Peter Zijlstra wrote: > > > >>> I pushed them out to: > >>> > >>>

Re: [PATCH 0/4] x86/mm/cpa: Fix cpa-array TLB invalidation

2018-11-30 Thread Peter Zijlstra
On Fri, Nov 30, 2018 at 05:49:34PM +, StDenis, Tom wrote: > On 2018-11-30 12:48 p.m., Peter Zijlstra wrote: > > On Fri, Nov 30, 2018 at 04:19:46PM +, StDenis, Tom wrote: > >> On 2018-11-30 10:31 a.m., Peter Zijlstra wrote: > > > >>> I pushed them out to: > >>> > >>>

Re: [PATCH v4 4/6] coresight: Use PMU driver configuration for sink selection

2018-11-30 Thread Mathieu Poirier
On Fri, 30 Nov 2018 at 00:42, Greg KH wrote: > > On Thu, Nov 29, 2018 at 04:09:15PM -0700, Mathieu Poirier wrote: > > Hi Greg, > > > > On Thu, Nov 29, 2018 at 08:49:36AM +0100, Greg KH wrote: > > > On Wed, Nov 28, 2018 at 03:01:16PM -0700, Mathieu Poirier wrote: > > > > This patch uses the PMU

Re: [PATCH v4 4/6] coresight: Use PMU driver configuration for sink selection

2018-11-30 Thread Mathieu Poirier
On Fri, 30 Nov 2018 at 00:42, Greg KH wrote: > > On Thu, Nov 29, 2018 at 04:09:15PM -0700, Mathieu Poirier wrote: > > Hi Greg, > > > > On Thu, Nov 29, 2018 at 08:49:36AM +0100, Greg KH wrote: > > > On Wed, Nov 28, 2018 at 03:01:16PM -0700, Mathieu Poirier wrote: > > > > This patch uses the PMU

[PATCH] ARM: dts: s5pv210: Add s5p-jpeg codec node.

2018-11-30 Thread Paweł Chmiel
This commit adds node for s5p-jpeg codec, which is present in S5PV210 SOC. Signed-off-by: Paweł Chmiel --- arch/arm/boot/dts/s5pv210.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/s5pv210.dtsi b/arch/arm/boot/dts/s5pv210.dtsi index 75f454a210d6..12eac8930eac

[PATCH] ARM: dts: s5pv210: Add s5p-jpeg codec node.

2018-11-30 Thread Paweł Chmiel
This commit adds node for s5p-jpeg codec, which is present in S5PV210 SOC. Signed-off-by: Paweł Chmiel --- arch/arm/boot/dts/s5pv210.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/s5pv210.dtsi b/arch/arm/boot/dts/s5pv210.dtsi index 75f454a210d6..12eac8930eac

Re: [PATCH v6 01/24] arm64: Remove unused daif related functions/macros

2018-11-30 Thread Catalin Marinas
On Mon, Nov 12, 2018 at 11:56:52AM +, Julien Thierry wrote: > There are some helpers to modify PSR.[DAIF] bits that are not referenced > anywhere. The less these bits are available outside of local_irq_* > functions the better. > > Get rid of those unused helpers. > > Signed-off-by: Julien

Re: [PATCH v6 01/24] arm64: Remove unused daif related functions/macros

2018-11-30 Thread Catalin Marinas
On Mon, Nov 12, 2018 at 11:56:52AM +, Julien Thierry wrote: > There are some helpers to modify PSR.[DAIF] bits that are not referenced > anywhere. The less these bits are available outside of local_irq_* > functions the better. > > Get rid of those unused helpers. > > Signed-off-by: Julien

Re: BUG: corrupted list in freeary

2018-11-30 Thread Dmitry Vyukov
On Thu, Nov 29, 2018 at 9:13 AM, Manfred Spraul wrote: > Hello together, > > On 11/27/18 4:52 PM, syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:e195ca6cb6f2 Merge branch 'for-linus' of git://git.kernel... > git tree: upstream > console output:

Re: BUG: corrupted list in freeary

2018-11-30 Thread Dmitry Vyukov
On Thu, Nov 29, 2018 at 9:13 AM, Manfred Spraul wrote: > Hello together, > > On 11/27/18 4:52 PM, syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:e195ca6cb6f2 Merge branch 'for-linus' of git://git.kernel... > git tree: upstream > console output:

Re: [PATCH 2/2] arm64: dts: marvell: armada-37xx: Enable emmc on espressobin

2018-11-30 Thread Gregory CLEMENT
Hi Ding, On ven., oct. 26 2018, Ding Tao wrote: > The ESPRESSObin board has a emmc interface available on U11, let's > enable it. Applied on mvebu/dt64 for now, but what happen if U11 is not populated? Thanks, Gregory > > Signed-off-by: Ding Tao > --- >

Re: [PATCH 2/2] arm64: dts: marvell: armada-37xx: Enable emmc on espressobin

2018-11-30 Thread Gregory CLEMENT
Hi Ding, On ven., oct. 26 2018, Ding Tao wrote: > The ESPRESSObin board has a emmc interface available on U11, let's > enable it. Applied on mvebu/dt64 for now, but what happen if U11 is not populated? Thanks, Gregory > > Signed-off-by: Ding Tao > --- >

Re: [PATCH 0/4] x86/mm/cpa: Fix cpa-array TLB invalidation

2018-11-30 Thread Peter Zijlstra
On Fri, Nov 30, 2018 at 03:27:02PM +, StDenis, Tom wrote: > I can apply the patch you attached but the inline patches just don't > apply. Could be my imap client (thunderbird) mangled them but I've > applied patches this way before. could you attach them instead please? That's arguably a

Re: [PATCH 0/4] x86/mm/cpa: Fix cpa-array TLB invalidation

2018-11-30 Thread Peter Zijlstra
On Fri, Nov 30, 2018 at 03:27:02PM +, StDenis, Tom wrote: > I can apply the patch you attached but the inline patches just don't > apply. Could be my imap client (thunderbird) mangled them but I've > applied patches this way before. could you attach them instead please? That's arguably a

Re: [PATCH 0/4] x86/mm/cpa: Fix cpa-array TLB invalidation

2018-11-30 Thread StDenis, Tom
On 2018-11-30 12:48 p.m., Peter Zijlstra wrote: > On Fri, Nov 30, 2018 at 04:19:46PM +, StDenis, Tom wrote: >> On 2018-11-30 10:31 a.m., Peter Zijlstra wrote: > >>> I pushed them out to: >>> >>> git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/mm >>> >>> I hope that

Re: [PATCH 0/4] x86/mm/cpa: Fix cpa-array TLB invalidation

2018-11-30 Thread StDenis, Tom
On 2018-11-30 12:48 p.m., Peter Zijlstra wrote: > On Fri, Nov 30, 2018 at 04:19:46PM +, StDenis, Tom wrote: >> On 2018-11-30 10:31 a.m., Peter Zijlstra wrote: > >>> I pushed them out to: >>> >>> git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/mm >>> >>> I hope that

Re: [PATCH 0/4] x86/mm/cpa: Fix cpa-array TLB invalidation

2018-11-30 Thread Peter Zijlstra
On Fri, Nov 30, 2018 at 04:19:46PM +, StDenis, Tom wrote: > On 2018-11-30 10:31 a.m., Peter Zijlstra wrote: > > I pushed them out to: > > > >git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/mm > > > > I hope that works; I'm out for a few hours, but should check on

Re: [PATCH 0/4] x86/mm/cpa: Fix cpa-array TLB invalidation

2018-11-30 Thread Peter Zijlstra
On Fri, Nov 30, 2018 at 04:19:46PM +, StDenis, Tom wrote: > On 2018-11-30 10:31 a.m., Peter Zijlstra wrote: > > I pushed them out to: > > > >git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/mm > > > > I hope that works; I'm out for a few hours, but should check on

Re: [PATCH 2/4] x86/mm/cpa: Fix cpa_flush_array()

2018-11-30 Thread Dave Hansen
> +void __cpa_flush_array(void *data) > { > - unsigned int i, level; > + struct cpa_data *cpa = data; > + unsigned int i; > > - if (__cpa_flush_range(baddr, numpages, cache)) > + for (i = 0; i < cpa->numpages; i++) > + __flush_tlb_one_kernel(__cpa_addr(cpa, i));

Re: [PATCH 2/4] x86/mm/cpa: Fix cpa_flush_array()

2018-11-30 Thread Dave Hansen
> +void __cpa_flush_array(void *data) > { > - unsigned int i, level; > + struct cpa_data *cpa = data; > + unsigned int i; > > - if (__cpa_flush_range(baddr, numpages, cache)) > + for (i = 0; i < cpa->numpages; i++) > + __flush_tlb_one_kernel(__cpa_addr(cpa, i));

Re: [PATCH 0/2] [GIT PULL] tracing: More fixes for 4.20

2018-11-30 Thread Linus Torvalds
On Thu, Nov 29, 2018 at 7:19 PM Steven Rostedt wrote: > > Note, this is on top of a previous git pull that I have submitted: > > http://lkml.kernel.org/r/20181127224031.76681...@vmware.local.home Hmm. I had dismissed that, because the patch descriptors for that series had had "for-next" in

Re: [PATCH 0/2] [GIT PULL] tracing: More fixes for 4.20

2018-11-30 Thread Linus Torvalds
On Thu, Nov 29, 2018 at 7:19 PM Steven Rostedt wrote: > > Note, this is on top of a previous git pull that I have submitted: > > http://lkml.kernel.org/r/20181127224031.76681...@vmware.local.home Hmm. I had dismissed that, because the patch descriptors for that series had had "for-next" in

[PATCH 1/1] selftests: watchdog: Add gettimeleft command line arg

2018-11-30 Thread Jerry Hoemann
Add command line argument to call and display the results of ioctl WDIOC_GETTIMELEFT. Signed-off-by: Jerry Hoemann --- tools/testing/selftests/watchdog/watchdog-test.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git

[PATCH 1/1] selftests: watchdog: Add gettimeleft command line arg

2018-11-30 Thread Jerry Hoemann
Add command line argument to call and display the results of ioctl WDIOC_GETTIMELEFT. Signed-off-by: Jerry Hoemann --- tools/testing/selftests/watchdog/watchdog-test.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v12 1/5] x86/boot: Add get_acpi_rsdp() to parse RSDP in cmdline from KEXEC

2018-11-30 Thread Masayoshi Mizuma
On Fri, Nov 30, 2018 at 10:43:47AM +0800, Chao Fan wrote: ... > >]$ make arch/x86/boot/compressed/misc.o > > CALLscripts/checksyscalls.sh > > DESCEND objtool > > CC arch/x86/boot/compressed/misc.o > >ld: -r and -pie may not be used together > >make[1]: *** [scripts/Makefile.build:294:

Re: [PATCH v12 1/5] x86/boot: Add get_acpi_rsdp() to parse RSDP in cmdline from KEXEC

2018-11-30 Thread Masayoshi Mizuma
On Fri, Nov 30, 2018 at 10:43:47AM +0800, Chao Fan wrote: ... > >]$ make arch/x86/boot/compressed/misc.o > > CALLscripts/checksyscalls.sh > > DESCEND objtool > > CC arch/x86/boot/compressed/misc.o > >ld: -r and -pie may not be used together > >make[1]: *** [scripts/Makefile.build:294:

[PATCH v2 0/2] arm64: Only call into preempt_schedule() if need_resched()

2018-11-30 Thread Will Deacon
Hi all, This is version two of the patches I originally posted here: http://lkml.kernel.org/r/1543347902-21170-1-git-send-email-will.dea...@arm.com The only change since v1 is that __preempt_count_dec_and_test() now reloads the need_resched flag if it initially saw that it was set. This

[PATCH v2 1/2] preempt: Move PREEMPT_NEED_RESCHED definition into arch code

2018-11-30 Thread Will Deacon
PREEMPT_NEED_RESCHED is never used directly, so move it into the arch code where it can potentially be implemented using either a different bit in the preempt count or as an entirely separate entity. Cc: Robert Love Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Martin Schwidefsky Signed-off-by:

[PATCH v2 2/2] arm64: preempt: Provide our own implementation of asm/preempt.h

2018-11-30 Thread Will Deacon
The asm-generic/preempt.h implementation doesn't make use of the PREEMPT_NEED_RESCHED flag, since this can interact badly with load/store architectures which rely on the preempt_count word being unchanged across an interrupt. However, since we're a 64-bit architecture and the preempt count is

[PATCH v2 0/2] arm64: Only call into preempt_schedule() if need_resched()

2018-11-30 Thread Will Deacon
Hi all, This is version two of the patches I originally posted here: http://lkml.kernel.org/r/1543347902-21170-1-git-send-email-will.dea...@arm.com The only change since v1 is that __preempt_count_dec_and_test() now reloads the need_resched flag if it initially saw that it was set. This

[PATCH v2 1/2] preempt: Move PREEMPT_NEED_RESCHED definition into arch code

2018-11-30 Thread Will Deacon
PREEMPT_NEED_RESCHED is never used directly, so move it into the arch code where it can potentially be implemented using either a different bit in the preempt count or as an entirely separate entity. Cc: Robert Love Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Martin Schwidefsky Signed-off-by:

[PATCH v2 2/2] arm64: preempt: Provide our own implementation of asm/preempt.h

2018-11-30 Thread Will Deacon
The asm-generic/preempt.h implementation doesn't make use of the PREEMPT_NEED_RESCHED flag, since this can interact badly with load/store architectures which rely on the preempt_count word being unchanged across an interrupt. However, since we're a 64-bit architecture and the preempt count is

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