Re: Memory hotplug softlock issue

2018-11-21 Thread Hugh Dickins
On Wed, 21 Nov 2018, Michal Hocko wrote: > On Mon 19-11-18 21:44:41, Hugh Dickins wrote: > [...] > > [PATCH] mm: put_and_wait_on_page_locked() while page is migrated > > > > We have all assumed that it is essential to hold a page reference while > > waiting on a page lock: partly to guarantee

Re: Memory hotplug softlock issue

2018-11-21 Thread Hugh Dickins
On Wed, 21 Nov 2018, Michal Hocko wrote: > On Mon 19-11-18 21:44:41, Hugh Dickins wrote: > [...] > > [PATCH] mm: put_and_wait_on_page_locked() while page is migrated > > > > We have all assumed that it is essential to hold a page reference while > > waiting on a page lock: partly to guarantee

Re: perf tools: remove option --tail-synthesize ?

2018-11-21 Thread Wangnan (F)
On 2018/11/21 21:11, Arnaldo Carvalho de Melo wrote: > Em Wed, Nov 21, 2018 at 07:45:28AM +, Song Liu escreveu: >> Hi, >> >> I found perf-record --tail-synthesize without --overwrite breaks symbols >> for perf-script, perf-report, etc. For example: >> >> [root@]# ~/perf record -ag

Re: perf tools: remove option --tail-synthesize ?

2018-11-21 Thread Wangnan (F)
On 2018/11/21 21:11, Arnaldo Carvalho de Melo wrote: > Em Wed, Nov 21, 2018 at 07:45:28AM +, Song Liu escreveu: >> Hi, >> >> I found perf-record --tail-synthesize without --overwrite breaks symbols >> for perf-script, perf-report, etc. For example: >> >> [root@]# ~/perf record -ag

RE: [PATCH] clocksource/drivers/timer-imx-tpm: convert the driver to timer-of

2018-11-21 Thread Anson Huang
Gentle Ping... Best Regards! Anson Huang > -Original Message- > From: Anson Huang > Sent: 2018年11月6日 13:16 > To: daniel.lezc...@linaro.org; t...@linutronix.de; > linux-kernel@vger.kernel.org > Cc: dl-linux-imx > Subject: [PATCH] clocksource/drivers/timer-imx-tpm: convert the driver to >

RE: [PATCH] clocksource/drivers/timer-imx-tpm: convert the driver to timer-of

2018-11-21 Thread Anson Huang
Gentle Ping... Best Regards! Anson Huang > -Original Message- > From: Anson Huang > Sent: 2018年11月6日 13:16 > To: daniel.lezc...@linaro.org; t...@linutronix.de; > linux-kernel@vger.kernel.org > Cc: dl-linux-imx > Subject: [PATCH] clocksource/drivers/timer-imx-tpm: convert the driver to >

Re: [PATCH] RISC-V: Build flat and compressed kernel images

2018-11-21 Thread Bin Meng
Hi Palmer, On Thu, Nov 22, 2018 at 12:28 AM Palmer Dabbelt wrote: > > On Tue, 20 Nov 2018 21:06:18 PST (-0800), bmeng...@gmail.com wrote: > > On Mon, Nov 12, 2018 at 1:55 PM Anup Patel wrote: > >> > >> This patch extends Linux RISC-V build system to build and install: > >> Image - Flat

Re: [PATCH] RISC-V: Build flat and compressed kernel images

2018-11-21 Thread Bin Meng
Hi Palmer, On Thu, Nov 22, 2018 at 12:28 AM Palmer Dabbelt wrote: > > On Tue, 20 Nov 2018 21:06:18 PST (-0800), bmeng...@gmail.com wrote: > > On Mon, Nov 12, 2018 at 1:55 PM Anup Patel wrote: > >> > >> This patch extends Linux RISC-V build system to build and install: > >> Image - Flat

Re: [PATCH v3 2/2] proc: add /proc//arch_state

2018-11-21 Thread Li, Aubrey
On 2018/11/21 17:53, Peter Zijlstra wrote: > On Wed, Nov 21, 2018 at 09:19:36AM +0100, Peter Zijlstra wrote: >> On Wed, Nov 21, 2018 at 09:39:00AM +0800, Li, Aubrey wrote: Also; you were going to shop around with the other architectures to see what they want/need for this interface. I

Re: [PATCH v3 2/2] proc: add /proc//arch_state

2018-11-21 Thread Li, Aubrey
On 2018/11/21 17:53, Peter Zijlstra wrote: > On Wed, Nov 21, 2018 at 09:19:36AM +0100, Peter Zijlstra wrote: >> On Wed, Nov 21, 2018 at 09:39:00AM +0800, Li, Aubrey wrote: Also; you were going to shop around with the other architectures to see what they want/need for this interface. I

Re: [patch 17/24] x86/speculation: Move IBPB control out of switch_mm()

2018-11-21 Thread Tim Chen
On 11/21/2018 12:14 PM, Thomas Gleixner wrote: > + * is immediately scheduled back and the thread inbetween s/inbetween/in between Tim

Re: [patch 17/24] x86/speculation: Move IBPB control out of switch_mm()

2018-11-21 Thread Tim Chen
On 11/21/2018 12:14 PM, Thomas Gleixner wrote: > + * is immediately scheduled back and the thread inbetween s/inbetween/in between Tim

Re: [PATCH v5] kernel/signal: Signal-based pre-coredump notification

2018-11-21 Thread Andrew Morton
On Wed, 21 Nov 2018 17:09:50 -0800 Enke Chen wrote: > Hi, Andrew: > > On 11/21/18 4:37 PM, Andrew Morton wrote: > > On Tue, 30 Oct 2018 17:46:29 +0100 Oleg Nesterov wrote: > > > >> On 10/29, Enke Chen wrote: > >>> > >>> Reviewed-by: Oleg Nesterov > >> > >> Hmm. I didn't say this ;) > >> > >>

Re: [PATCH v5] kernel/signal: Signal-based pre-coredump notification

2018-11-21 Thread Andrew Morton
On Wed, 21 Nov 2018 17:09:50 -0800 Enke Chen wrote: > Hi, Andrew: > > On 11/21/18 4:37 PM, Andrew Morton wrote: > > On Tue, 30 Oct 2018 17:46:29 +0100 Oleg Nesterov wrote: > > > >> On 10/29, Enke Chen wrote: > >>> > >>> Reviewed-by: Oleg Nesterov > >> > >> Hmm. I didn't say this ;) > >> > >>

Re: [PATCH] dt-bindings: sifive: describe sifive-blocks versioning

2018-11-21 Thread Atish Patra
On 11/21/18 5:07 PM, Paul Walmsley wrote: For IP blocks that are generated from the public, open-source sifive-blocks repository, describe the version numbering policy that its maintainers intend to use, upon request from Rob Herring . Cc: Rob Herring Cc: Palmer Dabbelt Cc: Megan Wachs Cc:

Re: [PATCH] dt-bindings: sifive: describe sifive-blocks versioning

2018-11-21 Thread Atish Patra
On 11/21/18 5:07 PM, Paul Walmsley wrote: For IP blocks that are generated from the public, open-source sifive-blocks repository, describe the version numbering policy that its maintainers intend to use, upon request from Rob Herring . Cc: Rob Herring Cc: Palmer Dabbelt Cc: Megan Wachs Cc:

[RFC][PATCH 03/14] arm64: function_graph: Remove use of FTRACE_NOTRACE_DEPTH

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The curr_ret_stack is no longer set to -1 when not tracing a function. It is now done differently, and the FTRACE_NOTRACE_DEPTH value is no longer used. Remove the reference to it. Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org

[RFC][PATCH 03/14] arm64: function_graph: Remove use of FTRACE_NOTRACE_DEPTH

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The curr_ret_stack is no longer set to -1 when not tracing a function. It is now done differently, and the FTRACE_NOTRACE_DEPTH value is no longer used. Remove the reference to it. Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org

Re: [PATCH v2] Add /proc/pid_gen

2018-11-21 Thread Andrew Morton
On Wed, 21 Nov 2018 17:08:08 -0800 Daniel Colascione wrote: > Have you done much > retrospective long trace analysis? No. Have you? Of course you have, which is why I and others are dependent upon you to explain why this change is worth adding to Linux. If this thing solves a problem which

[RFC][PATCH 09/14] function_graph: Move ftrace_graph_get_addr() to fgraph.c

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Move the function function_graph_get_addr() to fgraph.c, as the management of the curr_ret_stack is going to change, and all the accesses to ret_stack needs to be done in fgraph.c. Signed-off-by: Steven Rostedt (VMware) --- kernel/trace/fgraph.c

Re: [PATCH v2] Add /proc/pid_gen

2018-11-21 Thread Andrew Morton
On Wed, 21 Nov 2018 17:08:08 -0800 Daniel Colascione wrote: > Have you done much > retrospective long trace analysis? No. Have you? Of course you have, which is why I and others are dependent upon you to explain why this change is worth adding to Linux. If this thing solves a problem which

[RFC][PATCH 09/14] function_graph: Move ftrace_graph_get_addr() to fgraph.c

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Move the function function_graph_get_addr() to fgraph.c, as the management of the curr_ret_stack is going to change, and all the accesses to ret_stack needs to be done in fgraph.c. Signed-off-by: Steven Rostedt (VMware) --- kernel/trace/fgraph.c

[RFC][PATCH 05/14] ftrace: Create new ftrace-internal.h header

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" In order to move function graph infrastructure into its own file (fgraph.h) it needs to access various functions and variables in ftrace.c that are currently static. Create a new file called ftrace-internal.h that holds the function prototypes and the extern

[RFC][PATCH 10/14] function_graph: Have profiler use new helper ftrace_graph_get_ret_stack()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The ret_stack processing is going to change, and that is going to break anything that is accessing the ret_stack directly. One user is the function graph profiler. By using the ftrace_graph_get_ret_stack() helper function, the profiler can access the ret_stack

[RFC][PATCH 05/14] ftrace: Create new ftrace-internal.h header

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" In order to move function graph infrastructure into its own file (fgraph.h) it needs to access various functions and variables in ftrace.c that are currently static. Create a new file called ftrace-internal.h that holds the function prototypes and the extern

[RFC][PATCH 10/14] function_graph: Have profiler use new helper ftrace_graph_get_ret_stack()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The ret_stack processing is going to change, and that is going to break anything that is accessing the ret_stack directly. One user is the function graph profiler. By using the ftrace_graph_get_ret_stack() helper function, the profiler can access the ret_stack

[RFC][PATCH 02/14] fgraph: Have set_graph_notrace only affect function_graph tracer

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" In order to make the function graph infrastructure more generic, there can not be code specific for the function_graph tracer in the generic code. This includes the set_graph_notrace logic, that stops all graph calls when a function in the set_graph_notrace is

[RFC][PATCH 02/14] fgraph: Have set_graph_notrace only affect function_graph tracer

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" In order to make the function graph infrastructure more generic, there can not be code specific for the function_graph tracer in the generic code. This includes the set_graph_notrace logic, that stops all graph calls when a function in the set_graph_notrace is

[RFC][PATCH 04/14] function_graph: Remove the use of FTRACE_NOTRACE_DEPTH

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The curr_ret_stack is no longer set to a negative value when a function is not to be traced by the function graph tracer. Remove the usage of FTRACE_NOTRACE_DEPTH, as it is no longer needed. Signed-off-by: Steven Rostedt (VMware) --- include/linux/ftrace.h

[RFC][PATCH 13/14] function_graph: Allow multiple users to attach to function graph

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Allow for multiple users to attach to function graph tracer at the same time. Only 16 simultaneous users can attach to the tracer. This is because there's an array that stores the pointers to the attached fgraph_ops. When a a function being traced is entered, each

[RFC][PATCH 04/14] function_graph: Remove the use of FTRACE_NOTRACE_DEPTH

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The curr_ret_stack is no longer set to a negative value when a function is not to be traced by the function graph tracer. Remove the usage of FTRACE_NOTRACE_DEPTH, as it is no longer needed. Signed-off-by: Steven Rostedt (VMware) --- include/linux/ftrace.h

[RFC][PATCH 13/14] function_graph: Allow multiple users to attach to function graph

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Allow for multiple users to attach to function graph tracer at the same time. Only 16 simultaneous users can attach to the tracer. This is because there's an array that stores the pointers to the attached fgraph_ops. When a a function being traced is entered, each

[RFC][PATCH 08/14] function_graph: Remove unused task_curr_ret_stack()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The static inline function task_curr_ret_stack() is unused, remove it. Signed-off-by: Steven Rostedt (VMware) --- include/linux/ftrace.h | 10 -- 1 file changed, 10 deletions(-) diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index

[RFC][PATCH 06/14] fgraph: Move function graph specific code into fgraph.c

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" To make the function graph infrastructure more managable, the code needs to be in its own file (fgraph.c). Move the code that is specific for managing the function graph infrastructure out of ftrace.c and into fgraph.c Signed-off-by: Steven Rostedt (VMware) ---

[RFC][PATCH 11/14] function_graph: Convert ret_stack to a series of longs

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" In order to make it possible to have multiple callbacks registered with the function_graph tracer, the retstack needs to be converted from an array of ftrace_ret_stack structures to an array of longs. This will allow to store the list of callbacks on the stack for

[RFC][PATCH 01/14] fgraph: Create a fgraph.c file to store function graph infrastructure

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" As the function graph infrastructure can be used by thing other than tracing, moving the code to its own file out of the trace_functions_graph.c code makes more sense. The fgraph.c file will only contain the infrastructure required to hook into functions and

[RFC][PATCH 14/14] function_graph: Allow for more than one callback to be registered

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Signed-off-by: Steven Rostedt (VMware) --- kernel/trace/fgraph.c | 50 +++ 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/kernel/trace/fgraph.c b/kernel/trace/fgraph.c index 6e5efe1663b9..8a99eaa46b43

[RFC][PATCH 11/14] function_graph: Convert ret_stack to a series of longs

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" In order to make it possible to have multiple callbacks registered with the function_graph tracer, the retstack needs to be converted from an array of ftrace_ret_stack structures to an array of longs. This will allow to store the list of callbacks on the stack for

[RFC][PATCH 01/14] fgraph: Create a fgraph.c file to store function graph infrastructure

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" As the function graph infrastructure can be used by thing other than tracing, moving the code to its own file out of the trace_functions_graph.c code makes more sense. The fgraph.c file will only contain the infrastructure required to hook into functions and

[RFC][PATCH 14/14] function_graph: Allow for more than one callback to be registered

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Signed-off-by: Steven Rostedt (VMware) --- kernel/trace/fgraph.c | 50 +++ 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/kernel/trace/fgraph.c b/kernel/trace/fgraph.c index 6e5efe1663b9..8a99eaa46b43

[RFC][PATCH 08/14] function_graph: Remove unused task_curr_ret_stack()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The static inline function task_curr_ret_stack() is unused, remove it. Signed-off-by: Steven Rostedt (VMware) --- include/linux/ftrace.h | 10 -- 1 file changed, 10 deletions(-) diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index

[RFC][PATCH 06/14] fgraph: Move function graph specific code into fgraph.c

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" To make the function graph infrastructure more managable, the code needs to be in its own file (fgraph.c). Move the code that is specific for managing the function graph infrastructure out of ftrace.c and into fgraph.c Signed-off-by: Steven Rostedt (VMware) ---

[RFC][PATCH 00/14] function_graph: Rewrite to allow multiple users

2018-11-21 Thread Steven Rostedt
I talked with many of you at Plumbers about rewriting the function graph tracer. Well, this is it. I was originally going to produce just a proof of concept, but when I found that I had to fix a design flaw and that covered all the arch code anyway, I decided to do more of a RFC patch set. I

[RFC][PATCH 00/14] function_graph: Rewrite to allow multiple users

2018-11-21 Thread Steven Rostedt
I talked with many of you at Plumbers about rewriting the function graph tracer. Well, this is it. I was originally going to produce just a proof of concept, but when I found that I had to fix a design flaw and that covered all the arch code anyway, I decided to do more of a RFC patch set. I

[RFC][PATCH 07/14] fgraph: Add new fgraph_ops structure to enable function graph hooks

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Currently the registering of function graph is to pass in a entry and return function. We need to have a way to associate those functions together where the entry can determine to run the return hook. Having a structure that contains both functions will facilitate

[RFC][PATCH 07/14] fgraph: Add new fgraph_ops structure to enable function graph hooks

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Currently the registering of function graph is to pass in a entry and return function. We need to have a way to associate those functions together where the entry can determine to run the return hook. Having a structure that contains both functions will facilitate

[RFC][PATCH 12/14] function_graph: Add an array structure that will allow multiple callbacks

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Add an array structure that will eventually allow the function graph tracer to have up to 16 simultaneous callbacks attached. It's an array of 16 fgraph_ops pointers, that is assigned when one is registered. On entry of a function the entry of the first item in

RE: [PATCH V4 1/1] can: flexcan: add self wakeup support

2018-11-21 Thread Joakim Zhang
Hi AIsheng, > -Original Message- > From: Aisheng DONG > Sent: 2018年11月21日 21:02 > To: Joakim Zhang ; linux-...@vger.kernel.org; > m...@pengutronix.de > Cc: w...@grandegger.com; linux-kernel@vger.kernel.org; dl-linux-imx > > Subject: RE: [PATCH V4 1/1] can: flexcan: add self wakeup

[RFC][PATCH 12/14] function_graph: Add an array structure that will allow multiple callbacks

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Add an array structure that will eventually allow the function graph tracer to have up to 16 simultaneous callbacks attached. It's an array of 16 fgraph_ops pointers, that is assigned when one is registered. On entry of a function the entry of the first item in

RE: [PATCH V4 1/1] can: flexcan: add self wakeup support

2018-11-21 Thread Joakim Zhang
Hi AIsheng, > -Original Message- > From: Aisheng DONG > Sent: 2018年11月21日 21:02 > To: Joakim Zhang ; linux-...@vger.kernel.org; > m...@pengutronix.de > Cc: w...@grandegger.com; linux-kernel@vger.kernel.org; dl-linux-imx > > Subject: RE: [PATCH V4 1/1] can: flexcan: add self wakeup

Re: [patch 18/24] x86/speculation: Avoid __switch_to_xtra() calls

2018-11-21 Thread Tim Chen
On 11/21/2018 12:14 PM, Thomas Gleixner wrote: > + * Avoid __switch_to_xtra() invocation when conditional stpib is s/stpib/stibp Tim

Re: [patch 18/24] x86/speculation: Avoid __switch_to_xtra() calls

2018-11-21 Thread Tim Chen
On 11/21/2018 12:14 PM, Thomas Gleixner wrote: > + * Avoid __switch_to_xtra() invocation when conditional stpib is s/stpib/stibp Tim

RE: [PATCH V4 1/1] can: flexcan: add self wakeup support

2018-11-21 Thread Joakim Zhang
Hi Aisheng, > -Original Message- > From: Aisheng DONG > Sent: 2018年11月21日 21:00 > To: Joakim Zhang ; linux-...@vger.kernel.org; > m...@pengutronix.de > Cc: w...@grandegger.com; linux-kernel@vger.kernel.org; dl-linux-imx > > Subject: RE: [PATCH V4 1/1] can: flexcan: add self wakeup

RE: [PATCH V4 1/1] can: flexcan: add self wakeup support

2018-11-21 Thread Joakim Zhang
Hi Aisheng, > -Original Message- > From: Aisheng DONG > Sent: 2018年11月21日 21:00 > To: Joakim Zhang ; linux-...@vger.kernel.org; > m...@pengutronix.de > Cc: w...@grandegger.com; linux-kernel@vger.kernel.org; dl-linux-imx > > Subject: RE: [PATCH V4 1/1] can: flexcan: add self wakeup

Re: [PATCH v5] kernel/signal: Signal-based pre-coredump notification

2018-11-21 Thread Enke Chen
Hi, Andrew: On 11/21/18 5:09 PM, Enke Chen wrote: > Hi, Andrew: > > On 11/21/18 4:37 PM, Andrew Morton wrote: >> Do we have other linux-specific signal extensions which could piggyback onto >> that? > > No. There are enough existing signals that an application can choose for this > purpose,

Re: [PATCH v5] kernel/signal: Signal-based pre-coredump notification

2018-11-21 Thread Enke Chen
Hi, Andrew: On 11/21/18 5:09 PM, Enke Chen wrote: > Hi, Andrew: > > On 11/21/18 4:37 PM, Andrew Morton wrote: >> Do we have other linux-specific signal extensions which could piggyback onto >> that? > > No. There are enough existing signals that an application can choose for this > purpose,

Re: [PATCH v5] kernel/signal: Signal-based pre-coredump notification

2018-11-21 Thread Enke Chen
Hi, Andrew: On 11/21/18 4:37 PM, Andrew Morton wrote: > On Tue, 30 Oct 2018 17:46:29 +0100 Oleg Nesterov wrote: > >> On 10/29, Enke Chen wrote: >>> >>> Reviewed-by: Oleg Nesterov >> >> Hmm. I didn't say this ;) >> >> But OK, feel free to keep this tag. >> >> I do not like this feauture. > >

Re: [PATCH V11 02/19] block: introduce multi-page bvec helpers

2018-11-21 Thread Ming Lei
On Wed, Nov 21, 2018 at 05:08:11PM +0100, Christoph Hellwig wrote: > On Wed, Nov 21, 2018 at 11:06:11PM +0800, Ming Lei wrote: > > bvec_iter_* is used for single-page bvec in current linus tree, and there > > are > > lots of users now: > > > > [linux]$ git grep -n "bvec_iter_*" ./ | wc > >

Re: [PATCH v5] kernel/signal: Signal-based pre-coredump notification

2018-11-21 Thread Enke Chen
Hi, Andrew: On 11/21/18 4:37 PM, Andrew Morton wrote: > On Tue, 30 Oct 2018 17:46:29 +0100 Oleg Nesterov wrote: > >> On 10/29, Enke Chen wrote: >>> >>> Reviewed-by: Oleg Nesterov >> >> Hmm. I didn't say this ;) >> >> But OK, feel free to keep this tag. >> >> I do not like this feauture. > >

Re: [PATCH V11 02/19] block: introduce multi-page bvec helpers

2018-11-21 Thread Ming Lei
On Wed, Nov 21, 2018 at 05:08:11PM +0100, Christoph Hellwig wrote: > On Wed, Nov 21, 2018 at 11:06:11PM +0800, Ming Lei wrote: > > bvec_iter_* is used for single-page bvec in current linus tree, and there > > are > > lots of users now: > > > > [linux]$ git grep -n "bvec_iter_*" ./ | wc > >

[PATCH] dt-bindings: sifive: describe sifive-blocks versioning

2018-11-21 Thread Paul Walmsley
For IP blocks that are generated from the public, open-source sifive-blocks repository, describe the version numbering policy that its maintainers intend to use, upon request from Rob Herring . Cc: Rob Herring Cc: Palmer Dabbelt Cc: Megan Wachs Cc: Wesley Terpstra Cc: Mark Rutland Cc:

[PATCH] dt-bindings: sifive: describe sifive-blocks versioning

2018-11-21 Thread Paul Walmsley
For IP blocks that are generated from the public, open-source sifive-blocks repository, describe the version numbering policy that its maintainers intend to use, upon request from Rob Herring . Cc: Rob Herring Cc: Palmer Dabbelt Cc: Megan Wachs Cc: Wesley Terpstra Cc: Mark Rutland Cc:

RE: [PATCHv2 4/4] PCI: dwc: add prefetchable memory range support

2018-11-21 Thread Z.q. Hou
Hi Gustavo, Thanks a lot for your testing and ACK! Regards, Zhiqiang > -Original Message- > From: Gustavo Pimentel > Sent: 2018年11月22日 1:37 > To: Z.q. Hou ; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; bhelg...@google.com; > lorenzo.pieral...@arm.com;

RE: [PATCHv2 4/4] PCI: dwc: add prefetchable memory range support

2018-11-21 Thread Z.q. Hou
Hi Gustavo, Thanks a lot for your testing and ACK! Regards, Zhiqiang > -Original Message- > From: Gustavo Pimentel > Sent: 2018年11月22日 1:37 > To: Z.q. Hou ; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; bhelg...@google.com; > lorenzo.pieral...@arm.com;

Re: [PATCH] soc: bcm: brcmstb: add of_node_put()

2018-11-21 Thread Frank Lee
On Thu, Nov 22, 2018 at 3:23 AM Florian Fainelli wrote: > > > > On 11/21/2018 4:43 AM, Yangtao Li wrote: > > of_find_node_by_path() acquires a reference to the node returned > > by it and that reference needs to be dropped by its caller. > > bl_idle_init() doesn't do that, so fix it. > > You

Re: [PATCH] soc: bcm: brcmstb: add of_node_put()

2018-11-21 Thread Frank Lee
On Thu, Nov 22, 2018 at 3:23 AM Florian Fainelli wrote: > > > > On 11/21/2018 4:43 AM, Yangtao Li wrote: > > of_find_node_by_path() acquires a reference to the node returned > > by it and that reference needs to be dropped by its caller. > > bl_idle_init() doesn't do that, so fix it. > > You

[PATCH] HID: intel-ish-hid: fixes incorrect error handling

2018-11-21 Thread Pan Bian
The memory chunk allocated by hid_allocate_device() should be released by hid_destroy_device(), not kfree(). Fixes: 0b28cb4bcb1("HID: intel-ish-hid: ISH HID client driver") Signed-off-by: Pan Bian --- drivers/hid/intel-ish-hid/ishtp-hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] HID: intel-ish-hid: fixes incorrect error handling

2018-11-21 Thread Pan Bian
The memory chunk allocated by hid_allocate_device() should be released by hid_destroy_device(), not kfree(). Fixes: 0b28cb4bcb1("HID: intel-ish-hid: ISH HID client driver") Signed-off-by: Pan Bian --- drivers/hid/intel-ish-hid/ishtp-hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH v5] kernel/signal: Signal-based pre-coredump notification

2018-11-21 Thread Andrew Morton
On Tue, 30 Oct 2018 17:46:29 +0100 Oleg Nesterov wrote: > On 10/29, Enke Chen wrote: > > > > Reviewed-by: Oleg Nesterov > > Hmm. I didn't say this ;) > > But OK, feel free to keep this tag. > > I do not like this feauture. Why is that? > But I see no technical problems in this version >

Re: [PATCH v3] mm: use swp_offset as key in shmem_replace_page()

2018-11-21 Thread Hugh Dickins
On Wed, 21 Nov 2018, Yu Zhao wrote: > We changed key of swap cache tree from swp_entry_t.val to > swp_offset. Need to do so in shmem_replace_page() as well. > > Fixes: f6ab1f7f6b2d ("mm, swap: use offset of swap entry as key of swap > cache") > Cc: sta...@vger.kernel.org # v4.9+ >

Re: [PATCH v5] kernel/signal: Signal-based pre-coredump notification

2018-11-21 Thread Andrew Morton
On Tue, 30 Oct 2018 17:46:29 +0100 Oleg Nesterov wrote: > On 10/29, Enke Chen wrote: > > > > Reviewed-by: Oleg Nesterov > > Hmm. I didn't say this ;) > > But OK, feel free to keep this tag. > > I do not like this feauture. Why is that? > But I see no technical problems in this version >

Re: [PATCH v3] mm: use swp_offset as key in shmem_replace_page()

2018-11-21 Thread Hugh Dickins
On Wed, 21 Nov 2018, Yu Zhao wrote: > We changed key of swap cache tree from swp_entry_t.val to > swp_offset. Need to do so in shmem_replace_page() as well. > > Fixes: f6ab1f7f6b2d ("mm, swap: use offset of swap entry as key of swap > cache") > Cc: sta...@vger.kernel.org # v4.9+ >

Re: [PATCH] mm: use this_cpu_cmpxchg_double in put_cpu_partial

2018-11-21 Thread Wei Yang
On Tue, Nov 20, 2018 at 07:18:13PM -0800, Wengang Wang wrote: >Hi Wei, > >I think you will receive my reply to Zhong, But I am copying my comments for >that patch here (again): > >Copy starts ==> > >I am not sure if the patch you mentioned intended to fix the problem here. >With that patch the

Re: [PATCH] mm: use this_cpu_cmpxchg_double in put_cpu_partial

2018-11-21 Thread Wei Yang
On Tue, Nov 20, 2018 at 07:18:13PM -0800, Wengang Wang wrote: >Hi Wei, > >I think you will receive my reply to Zhong, But I am copying my comments for >that patch here (again): > >Copy starts ==> > >I am not sure if the patch you mentioned intended to fix the problem here. >With that patch the

[for-next][PATCH 12/18] sh/function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function_graph_entry() function does the work of calling the function graph hook function and the management of the shadow stack, simplifying the work done in the architecture dependent prepare_ftrace_return(). Have superh use the new code, and remove the

[for-next][PATCH 01/18] function_graph: Create function_graph_enter() to consolidate architecture code

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Currently all the architectures do basically the same thing in preparing the function graph tracer on entry to a function. This code can be pulled into a generic location and then this will allow the function graph tracer to be fixed, as well as extended. Create

[for-next][PATCH 02/18] x86/function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function_graph_entry() function does the work of calling the function graph hook function and the management of the shadow stack, simplifying the work done in the architecture dependent prepare_ftrace_return(). Have x86 use the new code, and remove the shadow

[for-next][PATCH 14/18] function_graph: Make ftrace_push_return_trace() static

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" As all architectures now call function_graph_enter() to do the entry work, no architecture should ever call ftrace_push_return_trace(). Make it static. This is needed to prepare for a fix of a design bug on how the curr_ret_stack is used. Cc: sta...@kernel.org

[for-next][PATCH 11/18] s390/function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function_graph_entry() function does the work of calling the function graph hook function and the management of the shadow stack, simplifying the work done in the architecture dependent prepare_ftrace_return(). Have s390 use the new code, and remove the

[for-next][PATCH 12/18] sh/function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function_graph_entry() function does the work of calling the function graph hook function and the management of the shadow stack, simplifying the work done in the architecture dependent prepare_ftrace_return(). Have superh use the new code, and remove the

[for-next][PATCH 01/18] function_graph: Create function_graph_enter() to consolidate architecture code

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Currently all the architectures do basically the same thing in preparing the function graph tracer on entry to a function. This code can be pulled into a generic location and then this will allow the function graph tracer to be fixed, as well as extended. Create

[for-next][PATCH 02/18] x86/function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function_graph_entry() function does the work of calling the function graph hook function and the management of the shadow stack, simplifying the work done in the architecture dependent prepare_ftrace_return(). Have x86 use the new code, and remove the shadow

[for-next][PATCH 14/18] function_graph: Make ftrace_push_return_trace() static

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" As all architectures now call function_graph_enter() to do the entry work, no architecture should ever call ftrace_push_return_trace(). Make it static. This is needed to prepare for a fix of a design bug on how the curr_ret_stack is used. Cc: sta...@kernel.org

[for-next][PATCH 11/18] s390/function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function_graph_entry() function does the work of calling the function graph hook function and the management of the shadow stack, simplifying the work done in the architecture dependent prepare_ftrace_return(). Have s390 use the new code, and remove the

[for-next][PATCH 13/18] sparc/function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function_graph_entry() function does the work of calling the function graph hook function and the management of the shadow stack, simplifying the work done in the architecture dependent prepare_ftrace_return(). Have sparc use the new code, and remove the

[for-next][PATCH 05/18] microblaze: function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function_graph_entry() function does the work of calling the function graph hook function and the management of the shadow stack, simplifying the work done in the architecture dependent prepare_ftrace_return(). Have microblaze use the new code, and remove the

[for-next][PATCH 13/18] sparc/function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function_graph_entry() function does the work of calling the function graph hook function and the management of the shadow stack, simplifying the work done in the architecture dependent prepare_ftrace_return(). Have sparc use the new code, and remove the

[for-next][PATCH 05/18] microblaze: function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function_graph_entry() function does the work of calling the function graph hook function and the management of the shadow stack, simplifying the work done in the architecture dependent prepare_ftrace_return(). Have microblaze use the new code, and remove the

[for-next][PATCH 18/18] function_graph: Have profiler use curr_ret_stack and not depth

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The profiler uses trace->depth to find its entry on the ret_stack, but the depth may not match the actual location of where its entry is (if an interrupt were to preempt the processing of the profiler for another function, the depth and the curr_ret_stack will be

[for-next][PATCH 18/18] function_graph: Have profiler use curr_ret_stack and not depth

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The profiler uses trace->depth to find its entry on the ret_stack, but the depth may not match the actual location of where its entry is (if an interrupt were to preempt the processing of the profiler for another function, the depth and the curr_ret_stack will be

[for-next][PATCH 06/18] MIPS: function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function_graph_entry() function does the work of calling the function graph hook function and the management of the shadow stack, simplifying the work done in the architecture dependent prepare_ftrace_return(). Have MIPS use the new code, and remove the

[for-next][PATCH 06/18] MIPS: function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function_graph_entry() function does the work of calling the function graph hook function and the management of the shadow stack, simplifying the work done in the architecture dependent prepare_ftrace_return(). Have MIPS use the new code, and remove the

[for-next][PATCH 17/18] function_graph: Reverse the order of pushing the ret_stack and the callback

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function graph profiler uses the ret_stack to store the "subtime" and reuse it by nested functions and also on the return. But the current logic has the profiler callback called before the ret_stack is updated, and it is just modifying the ret_stack that will

[for-next][PATCH 15/18] function_graph: Use new curr_ret_depth to manage depth instead of curr_ret_stack

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Currently, the depth of the ret_stack is determined by curr_ret_stack index. The issue is that there's a race between setting of the curr_ret_stack and calling of the callback attached to the return of the function. Commit 03274a3ffb44 ("tracing/fgraph: Adjust

[for-next][PATCH 17/18] function_graph: Reverse the order of pushing the ret_stack and the callback

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function graph profiler uses the ret_stack to store the "subtime" and reuse it by nested functions and also on the return. But the current logic has the profiler callback called before the ret_stack is updated, and it is just modifying the ret_stack that will

[for-next][PATCH 15/18] function_graph: Use new curr_ret_depth to manage depth instead of curr_ret_stack

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Currently, the depth of the ret_stack is determined by curr_ret_stack index. The issue is that there's a race between setting of the curr_ret_stack and calling of the callback attached to the return of the function. Commit 03274a3ffb44 ("tracing/fgraph: Adjust

[for-next][PATCH 16/18] function_graph: Move return callback before update of curr_ret_stack

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" In the past, curr_ret_stack had two functions. One was to denote the depth of the call graph, the other is to keep track of where on the ret_stack the data is used. Although they may be slightly related, there are two cases where they need to be used differently.

[for-next][PATCH 16/18] function_graph: Move return callback before update of curr_ret_stack

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" In the past, curr_ret_stack had two functions. One was to denote the depth of the call graph, the other is to keep track of where on the ret_stack the data is used. Although they may be slightly related, there are two cases where they need to be used differently.

[for-next][PATCH 08/18] parisc: function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function_graph_entry() function does the work of calling the function graph hook function and the management of the shadow stack, simplifying the work done in the architecture dependent prepare_ftrace_return(). Have parisc use the new code, and remove the

[for-next][PATCH 03/18] ARM: function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function_graph_entry() function does the work of calling the function graph hook function and the management of the shadow stack, simplifying the work done in the architecture dependent prepare_ftrace_return(). Have ARM use the new code, and remove the shadow

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