Re: [for-next][PATCH 13/29] tracing: No need to free iter->trace in fail path of tracing_open_pipe()

2019-02-20 Thread Steven Rostedt
On Wed, 20 Feb 2019 13:37:50 -0500 Steven Rostedt wrote: > From: "zhangyi (F)" > > Commit d716ff71dd12 ("tracing: Remove taking of trace_types_lock in > pipe files") use the current tracer instead of the copy in > tracing_open_pipe(), but it forget to remove the freeing sentence in > the error

Re: [RFC][PATCH 00/16] sched: Core scheduling

2019-02-20 Thread Subhra Mazumdar
On 2/20/19 1:42 AM, Peter Zijlstra wrote: A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? On Tue, Feb 19, 2019 at 02:07:01PM -0800, Greg Kerr wrote: Thanks for posting

Re: [PATCH v15 15/15] tracing: Add hist trigger action 'expected fail' test case

2019-02-20 Thread Tom Zanussi
On Wed, 2019-02-20 at 13:33 -0500, Steven Rostedt wrote: > On Wed, 20 Feb 2019 12:10:31 -0600 > Tom Zanussi wrote: > > > > > As far as I understand it (there's no other case of an xfail test > > in > > the testsuite, so nothing similar to compare it to), the test > > output is > > correct -

Re: [PATCH] kasan: turn off asan-stack for clang-8 and earlier

2019-02-20 Thread Mark Brown
On Wed, Feb 20, 2019 at 10:07:36AM -0800, Nick Desaulniers wrote: > I like Evgenii's idea: > https://bugs.llvm.org/show_bug.cgi?id=38809#c10 That's a suggestion to tune the inlining heuristics. > While I myself share Arnd's goal of driving compiler warnings to zero, > in general I'd prefer not

[for-next][PATCH 04/29] tracing: Add comment to predicate_parse() about "&&" or "||"

2019-02-20 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" As the predicat_parse() code is rather complex, commenting subtleties is important. The switch case statement should be commented to describe that it is only looking for two '&' or '|' together, which is why the fall through to an error is after the check.

[for-next][PATCH 01/29] function_graph: Support displaying relative timestamp

2019-02-20 Thread Steven Rostedt
From: Changbin Du When function_graph is used for latency tracers, relative timestamp is more straightforward than absolute timestamp as function trace does. This change adds relative timestamp support to function_graph and applies to latency tracers (wakeup and irqsoff). Instead of: #

Re: [PATCH] s390/jump_label: Correct asm contraint

2019-02-20 Thread Laura Abbott
On 2/20/19 12:58 AM, Heiko Carstens wrote: On Sat, Feb 09, 2019 at 12:34:20PM -0800, Laura Abbott wrote: On 2/5/19 12:43 PM, Heiko Carstens wrote: On Tue, Jan 29, 2019 at 08:25:58AM +0100, Laura Abbott wrote: On 1/23/19 5:24 AM, Heiko Carstens wrote: On Wed, Jan 23, 2019 at 01:55:13PM +0100,

[for-next][PATCH 00/29] tracing: Updates for 5.1

2019-02-20 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: 5308e9705d9a017f0e732610ac0a7cab52fb01f7 Changbin Du (6): function_graph: Support displaying relative timestamp tracing: Show more info for funcgraph wakeup tracers tracing: Put a

[for-next][PATCH 05/29] tracing: Show more info for funcgraph wakeup tracers

2019-02-20 Thread Steven Rostedt
From: Changbin Du Add these info fields to funcgraph wakeup tracers: o Show CPU info since the waker could be on a different CPU. o Show function duration and overhead. o Show IRQ markers. Link: http://lkml.kernel.org/r/20190101154614.8887-3-changbin...@gmail.com Signed-off-by: Changbin

[for-next][PATCH 12/29] uprobes: convert uprobe.ref to refcount_t

2019-02-20 Thread Steven Rostedt
From: Elena Reshetova atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed -

[for-next][PATCH 15/29] tracing: Make hist trigger Documentation better reflect actions/handlers

2019-02-20 Thread Steven Rostedt
From: Tom Zanussi The action/handler code refactoring didn't change the action/handler syntax, but did generalize it - the Documentation should reflect that. Link: http://lkml.kernel.org/r/c2fe4144678829c70cad67aaa847dca27d57cb83.1550100284.git.tom.zanu...@linux.intel.com Signed-off-by: Tom

[for-next][PATCH 02/29] tracing: Annotate implicit fall through in parse_probe_arg()

2019-02-20 Thread Steven Rostedt
From: Mathieu Malaterre There is a plan to build the kernel with -Wimplicit-fallthrough and this place in the code produced a warning (W=1). This commit remove the following warning: kernel/trace/trace_probe.c:302:6: warning: this statement may fall through [-Wimplicit-fallthrough=] Link:

[for-next][PATCH 07/29] tracing/doc: Add latency tracer funcgraph example

2019-02-20 Thread Steven Rostedt
From: Changbin Du This add an example about how to use funcgraph with latency tracers. Link: http://lkml.kernel.org/r/20190101154614.8887-6-changbin...@gmail.com Signed-off-by: Changbin Du Signed-off-by: Steven Rostedt (VMware) --- Documentation/trace/ftrace.rst | 51

[for-next][PATCH 06/29] tracing: Put a margin between flags and duration for wakeup tracers

2019-02-20 Thread Steven Rostedt
From: Changbin Du Don't mix context flags with function duration info. Instead of this: # tracer: wakeup_rt # # wakeup_rt latency trace v1.1.5 on 5.0.0-rc1-test+ # # latency: 177 us, #545/545, CPU#0 | (M:preempt VP:0,

[for-next][PATCH 08/29] tracing: Show stacktrace for wakeup tracers

2019-02-20 Thread Steven Rostedt
From: Changbin Du This align the behavior of wakeup tracers with irqsoff latency tracer that we record stacktrace at the beginning and end of waking up. The stacktrace shows us what is happening in the kernel. Link: http://lkml.kernel.org/r/20190116160249.7554-1-changbin...@gmail.com

[for-next][PATCH 20/29] tracing: Add hist trigger snapshot() action Documentation

2019-02-20 Thread Steven Rostedt
From: Tom Zanussi Add Documentation for the hist:handlerXXX($var).snapshot() action. Link: http://lkml.kernel.org/r/445861d7822cd4b6aeaea1cecfcdbda466502148.1550100284.git.tom.zanu...@linux.intel.com Signed-off-by: Tom Zanussi Signed-off-by: Steven Rostedt (VMware) ---

[for-next][PATCH 13/29] tracing: No need to free iter->trace in fail path of tracing_open_pipe()

2019-02-20 Thread Steven Rostedt
From: "zhangyi (F)" Commit d716ff71dd12 ("tracing: Remove taking of trace_types_lock in pipe files") use the current tracer instead of the copy in tracing_open_pipe(), but it forget to remove the freeing sentence in the error path. [ Note, this is harmless because kfree(NULL) is allowed and

[for-next][PATCH 18/29] tracing: Add conditional snapshot

2019-02-20 Thread Steven Rostedt
From: Tom Zanussi Currently, tracing snapshots are context-free - they capture the ring buffer contents at the time the tracing_snapshot() function was invoked, and nothing else. Additionally, they're always taken unconditionally - the calling code can decide whether or not to take a snapshot,

[for-next][PATCH 21/29] tracing: Add hist trigger onchange() handler

2019-02-20 Thread Steven Rostedt
From: Tom Zanussi Add support for a hist:onchange($var) handler, similar to the onmax() handler but triggering whenever there's any change in $var, not just a max. Link: http://lkml.kernel.org/r/dfbc7e4ada242603e9ec3f049b5ad076a07dfd03.1550100284.git.tom.zanu...@linux.intel.com Signed-off-by:

[for-next][PATCH 19/29] tracing: Add hist trigger snapshot() action

2019-02-20 Thread Steven Rostedt
From: Tom Zanussi Add support for hist:handlerXXX($var).snapshot(), which will take a snapshot of the current trace buffer whenever handlerXXX is hit. As a first user, this also adds snapshot() action support for the onmax() handler i.e. hist:onmax($var).snapshot(). Also, the hist trigger key

[for-next][PATCH 09/29] ring-buffer: Remove unused function ring_buffer_page_len()

2019-02-20 Thread Steven Rostedt
From: Miroslav Benes Commit 6b7e633fe9c2 ("tracing: Remove extra zeroing out of the ring buffer page") removed the only caller of ring_buffer_page_len(). The function is now unused and may be removed. Link: http://lkml.kernel.org/r/20181228133847.106177-1-mbe...@suse.cz Signed-off-by: Miroslav

[for-next][PATCH 26/29] tracing: Add hist trigger onchange() handler test case

2019-02-20 Thread Steven Rostedt
From: Tom Zanussi Add a test case verifying the basic functionality of the hist:onchange($var) handler. Link: http://lkml.kernel.org/r/bec87aa8ed7d81794510b3d465096a750c71fce7.1550100284.git.tom.zanu...@linux.intel.com Signed-off-by: Tom Zanussi Acked-by: Masami Hiramatsu Signed-off-by:

[for-next][PATCH 14/29] tracing: Refactor hist trigger action code

2019-02-20 Thread Steven Rostedt
From: Tom Zanussi The hist trigger action code currently implements two essentially hard-coded pairs of 'actions' - onmax(), which tracks a variable and saves some event fields when a max is hit, and onmatch(), which is hard-coded to generate a synthetic event. These hardcoded pairs (track

[for-next][PATCH 16/29] tracing: Split up onmatch action data

2019-02-20 Thread Steven Rostedt
From: Tom Zanussi Currently, the onmatch action data binds the onmatch action to data related to synthetic event generation. Since we want to allow the onmatch handler to potentially invoke a different action, and because we expect other handlers to generate synthetic events, we need to

[for-next][PATCH 17/29] tracing: Generalize hist trigger onmax and save action

2019-02-20 Thread Steven Rostedt
From: Tom Zanussi The action refactor code allowed actions and handlers to be separated, but the existing onmax handler and save action code is still not flexible enough to handle arbitrary coupling. This change generalizes them and in the process makes additional handlers and actions easier to

[for-next][PATCH 27/29] tracing: Add alternative synthetic event trace action test case

2019-02-20 Thread Steven Rostedt
From: Tom Zanussi Add a test case for the alternative trace(http://lkml.kernel.org/r/0616d18423ab1dfdbf333bce9c92ac4fa0779207.1550100284.git.tom.zanu...@linux.intel.com Acked-by: Masami Hiramatsu Signed-off-by: Tom Zanussi Signed-off-by: Steven Rostedt (VMware) ---

[for-next][PATCH 23/29] tracing: Add alternative synthetic event trace action syntax

2019-02-20 Thread Steven Rostedt
From: Tom Zanussi Add a 'trace(synthetic_event_name, params)' alternative to synthetic_event_name(params). Currently, the syntax used for generating synthetic events is to invoke synthetic_event_name(params) i.e. use the synthetic event name as a function call. Users requested a new form that

[for-next][PATCH 28/29] tracing: Add hist trigger action expected fail test case

2019-02-20 Thread Steven Rostedt
From: Tom Zanussi Add a test case verifying that basic action combinations fail as expected. Link: http://lkml.kernel.org/r/1790bf93e01dbdfa1b4af945f42147d92bd565aa.1550100284.git.tom.zanu...@linux.intel.com Acked-by: Masami Hiramatsu Signed-off-by: Tom Zanussi Signed-off-by: Steven Rostedt

[for-next][PATCH 29/29] tracing: Comment why cond_snapshot is checked outside of max_lock protection

2019-02-20 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Before setting tr->cond_snapshot, it must be NULL before it can be updated. It can go to NULL when a trace event hist trigger is created or removed, and can only be modified under the max_lock spin lock. But because it can only be set to something other than NULL

[for-next][PATCH 24/29] tracing: Add SPDX license GPL-2.0 license identifier to inter-event testcases

2019-02-20 Thread Steven Rostedt
From: Tom Zanussi Apparently this directory was missed in the license cleanup process - add the missing identifiers to the trigger/inter-event test cases. Link: http://lkml.kernel.org/r/6f9828c2cfb0b378ebd217a39a1b44f063fc17fb.1550100284.git.tom.zanu...@linux.intel.com Signed-off-by: Tom

[for-next][PATCH 25/29] tracing: Add hist trigger snapshot() action test case

2019-02-20 Thread Steven Rostedt
From: Tom Zanussi Add a test case verifying the basic functionality of the hist:snapshot() action. Link: http://lkml.kernel.org/r/c0555f462cbfe56dadfec6e63e531e109bd72930.1550100284.git.tom.zanu...@linux.intel.com Signed-off-by: Tom Zanussi Acked-by: Masami Hiramatsu Signed-off-by: Steven

[for-next][PATCH 22/29] tracing: Add hist trigger onchange() handler Documentation

2019-02-20 Thread Steven Rostedt
From: Tom Zanussi Add Documentation for the hist:onchange($var) handler. Link: http://lkml.kernel.org/r/ab54b7383b265609fda52648a8fbfbd2631a640f.1550100284.git.tom.zanu...@linux.intel.com Signed-off-by: Tom Zanussi Signed-off-by: Steven Rostedt (VMware) ---

[for-next][PATCH 10/29] tracing: Change the function format to display function names by perf

2019-02-20 Thread Steven Rostedt
From: Changbin Du Here is an example for this change. $ sudo perf record -e 'ftrace:function' --filter='ip==schedule' $ sudo perf report The output of perf before this patch: \# Samples: 100 of event 'ftrace:function' \# Event count (approx.): 100 \# \# Overhead Trace output \#

[for-next][PATCH 03/29] tracing: Annotate implicit fall through in predicate_parse()

2019-02-20 Thread Steven Rostedt
From: Mathieu Malaterre There is a plan to build the kernel with -Wimplicit-fallthrough and this place in the code produced a warning (W=1). This commit remove the following warning: kernel/trace/trace_events_filter.c:494:8: warning: this statement may fall through [-Wimplicit-fallthrough=]

[for-next][PATCH 11/29] ftrace: Allow enabling of filters via index of available_filter_functions

2019-02-20 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Enabling of large number of functions by echoing in a large subset of the functions in available_filter_functions can take a very long time. The process requires testing all functions registered by the function tracer (which is in the 10s of thousands), and doing

Re: [RFC PATCH net-next v3 13/21] ethtool: provide timestamping information in GET_INFO request

2019-02-20 Thread Jakub Kicinski
On Wed, 20 Feb 2019 14:00:07 +0100, Michal Kubecek wrote: > On Tue, Feb 19, 2019 at 07:00:48PM -0800, Jakub Kicinski wrote: > > On Mon, 18 Feb 2019 19:22:29 +0100 (CET), Michal Kubecek wrote: > > > Add timestamping information as provided by ETHTOOL_GET_TS_INFO ioctl > > > command in GET_INFO

Re: [PATCH] iio: cros_ec_accel_legacy: Mark expected switch fall-throughs

2019-02-20 Thread Jonathan Cameron
On Wed, 20 Feb 2019 10:20:39 -0800 Kees Cook wrote: > On Mon, Oct 8, 2018 at 10:24 AM Gustavo A. R. Silva > wrote: > > > > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > > where we are expecting to fall through. > > > > Addresses-Coverity-ID: 1397962 ("Missing break in

Re: [PATCH v15 15/15] tracing: Add hist trigger action 'expected fail' test case

2019-02-20 Thread Steven Rostedt
On Wed, 20 Feb 2019 12:10:31 -0600 Tom Zanussi wrote: > > As far as I understand it (there's no other case of an xfail test in > the testsuite, so nothing similar to compare it to), the test output is > correct - here we get the expected fail, XFAIL, and not a FAIL as any > test, xfail or

Re: [RFC 0/5] RCU fixes for rcu_assign_pointer usage

2019-02-20 Thread Paul E. McKenney
On Wed, Feb 20, 2019 at 01:09:52PM -0500, Joel Fernandes wrote: > On Wed, Feb 20, 2019 at 08:42:43AM -0800, Paul E. McKenney wrote: > > On Tue, Feb 19, 2019 at 08:11:36PM -0800, Joel Fernandes wrote: > > > On Tue, Feb 19, 2019 at 8:08 PM Joel Fernandes (Google) > > > wrote: > > > > > > > > These

Re: [PATCHv6 00/10] Heterogenous memory node attributes

2019-02-20 Thread Keith Busch
On Thu, Feb 14, 2019 at 10:10:07AM -0700, Keith Busch wrote: > Platforms may provide multiple types of cpu attached system memory. The > memory ranges for each type may have different characteristics that > applications may wish to know about when considering what node they want > their memory

Re: BUG: assuming atomic context at kernel/seccomp.c:LINE

2019-02-20 Thread Kees Cook
On Wed, Feb 20, 2019 at 2:00 AM Daniel Borkmann wrote: > > On 02/20/2019 10:32 AM, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:abf446c90405 Add linux-next specific files for 20190220 > > git tree:

Re: [PATCH] iio: cros_ec_accel_legacy: Mark expected switch fall-throughs

2019-02-20 Thread Kees Cook
On Mon, Oct 8, 2018 at 10:24 AM Gustavo A. R. Silva wrote: > > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Addresses-Coverity-ID: 1397962 ("Missing break in switch") > Signed-off-by: Gustavo A. R. Silva > --- >

[PATCH v2 1/2] soc: bcm: bcm2835-pm: Fix PM_IMAGE_PERI power domain support.

2019-02-20 Thread Eric Anholt
We don't have ASB master/slave regs for this domain, so just skip that step. Signed-off-by: Eric Anholt Fixes: 670c672608a1 ("soc: bcm: bcm2835-pm: Add support for power domains under a new binding.") --- drivers/soc/bcm/bcm2835-power.c | 14 -- 1 file changed, 12 insertions(+), 2

Re: [PATCH 2/2] soc: bcm: bcm2835-pm: Fix error paths of initialization.

2019-02-20 Thread Eric Anholt
Florian Fainelli writes: > On 2/13/19 2:33 PM, Stefan Wahren wrote: >> >>> Eric Anholt hat am 13. Februar 2019 um 19:28 geschrieben: >>> >>> >>> Stefan Wahren writes: >>> Hi Eric, Am 13.02.19 um 01:33 schrieb Eric Anholt: > The clock driver may probe after ours and so we

[PATCH v2 2/2] soc: bcm: bcm2835-pm: Fix error paths of initialization.

2019-02-20 Thread Eric Anholt
The clock driver may probe after ours and so we need to pass the -EPROBE_DEFER out. Fix the other error path while we're here. v2: Use dom->name instead of dom->gov as the flag for initialized domains, since we aren't setting up a governor. Make sure to clear ->clk when no clk is

Re: [PATCH] intel_th: Mark expected switch fall-throughs

2019-02-20 Thread Gustavo A. R. Silva
Hi all, Friendly ping: Who can take this? Thanks -- Gustavo On 2/12/19 3:43 PM, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch > cases where we are expecting to fall through. > > This patch fixes the following warnings: > >

[PATCH] net: dsa: add missing phy address offset

2019-02-20 Thread Marcel Reichmuth
When phys do not start at address 0 like on the mv88e6341 the wrong phy address is used and therefore the slave ports can not be initialized. This patch adds the proper offset to the phy address. Signed-off-by: Marcel Reichmuth --- drivers/net/dsa/mv88e6xxx/chip.c | 3 +++ include/net/dsa.h

Re: [PATCH v15 15/15] tracing: Add hist trigger action 'expected fail' test case

2019-02-20 Thread Tom Zanussi
Hi Steve, On Wed, 2019-02-20 at 12:56 -0500, Steven Rostedt wrote: > On Wed, 20 Feb 2019 11:38:22 -0600 > Tom Zanussi wrote: > > > Hi Steve, > > > > On Wed, 2019-02-20 at 12:17 -0500, Steven Rostedt wrote: > > > On Wed, 13 Feb 2019 17:42:55 -0600 > > > Tom Zanussi wrote: > > > > > > >

Re: [PATCH] crypto: ccree - fix missing break in switch statement

2019-02-20 Thread Gustavo A. R. Silva
Hi all, Friendly ping: Who can take this? Thanks -- Gustavo On 2/11/19 12:31 PM, Gustavo A. R. Silva wrote: > Add missing break statement in order to prevent the code from falling > through to case S_DIN_to_DES. > > This bug was found thanks to the ongoing efforts to enable >

Re: [RFC 0/5] RCU fixes for rcu_assign_pointer usage

2019-02-20 Thread Joel Fernandes
On Wed, Feb 20, 2019 at 08:42:43AM -0800, Paul E. McKenney wrote: > On Tue, Feb 19, 2019 at 08:11:36PM -0800, Joel Fernandes wrote: > > On Tue, Feb 19, 2019 at 8:08 PM Joel Fernandes (Google) > > wrote: > > > > > > These patches fix various RCU API usage issues found due to sparse errors > > >

[PATCH v2] x86/asm: Pin sensitive CR4 bits

2019-02-20 Thread Kees Cook
Several recent exploits have used direct calls to the native_write_cr4() function to disable SMEP and SMAP before then continuing their exploits using userspace memory access. This pins bits of cr4 so that they cannot be changed through a common function. This is not intended to be general ROP

Re: [RFC 1/5] net: rtnetlink: Fix incorrect RCU API usage

2019-02-20 Thread Joel Fernandes
On Wed, Feb 20, 2019 at 08:40:34AM -0800, Paul E. McKenney wrote: > On Tue, Feb 19, 2019 at 11:08:23PM -0500, Joel Fernandes (Google) wrote: > > From: Joel Fernandes > > > > rtnl_register_internal() and rtnl_unregister_all tries to directly > > dereference an RCU protected pointed outside RCU

Re: [PATCH] kasan: turn off asan-stack for clang-8 and earlier

2019-02-20 Thread Nick Desaulniers
+ Evgenii On Wed, Feb 20, 2019 at 9:36 AM Arnd Bergmann wrote: > > On Wed, Feb 20, 2019 at 6:00 PM Andrey Ryabinin > wrote: > > On 2/20/19 5:51 PM, Arnd Bergmann wrote: > > > On Wed, Feb 20, 2019 at 3:45 PM Andrey Konovalov > > > wrote: > > > I would have to some more research, but I expect

Re: [PATCH] iio: mma8452: mark expected switch fall-through

2019-02-20 Thread Gustavo A. R. Silva
On 2/20/19 11:21 AM, Gustavo A. R. Silva wrote: > > > On 2/20/19 6:17 AM, Jonathan Cameron wrote: >> On Mon, 11 Feb 2019 16:23:18 -0600 >> "Gustavo A. R. Silva" wrote: >> >>> In preparation to enabling -Wimplicit-fallthrough, mark switch >>> cases where we are expecting to fall through. >>>

Re: [PATCH v2] driver: platform: Support parsing GpioInt 0 in platform_get_irq()

2019-02-20 Thread Brian Norris
Hi, On Mon, Feb 11, 2019 at 11:01:12AM -0800, egran...@chromium.org wrote: > From: Enrico Granata > > ACPI 5 added support for GpioInt resources as a way to provide > information about interrupts mediated via a GPIO controller. > > Several device buses (e.g. SPI, I2C) have support for

Re: xen/evtchn and forced threaded irq

2019-02-20 Thread Julien Grall
Hi, On 20/02/2019 17:07, Boris Ostrovsky wrote: On 2/20/19 9:15 AM, Julien Grall wrote: Hi Boris, Thank you for your answer. On 20/02/2019 00:02, Boris Ostrovsky wrote: On Tue, Feb 19, 2019 at 05:31:10PM +, Julien Grall wrote: Hi all, I have been looking at using Linux RT in Dom0.

Re: [PATCH V19 5/7] i2c: tegra: Add DMA support

2019-02-20 Thread Dmitry Osipenko
20.02.2019 21:02, Jon Hunter пишет: > > On 12/02/2019 19:06, Sowjanya Komatineni wrote: >> This patch adds DMA support for Tegra I2C. >> >> Tegra I2C TX and RX FIFO depth is 8 words. PIO mode is used for >> transfer size of the max FIFO depth and DMA mode is used for >> transfer size higher than

Re: [PATCH V19 5/7] i2c: tegra: Add DMA support

2019-02-20 Thread Jon Hunter
On 12/02/2019 19:06, Sowjanya Komatineni wrote: > This patch adds DMA support for Tegra I2C. > > Tegra I2C TX and RX FIFO depth is 8 words. PIO mode is used for > transfer size of the max FIFO depth and DMA mode is used for > transfer size higher than max FIFO depth to save CPU overhead. > >

Re: [RESEND PATCH 0/7] Add FOLL_LONGTERM to GUP fast and use it

2019-02-20 Thread Ira Weiny
On Wed, Feb 20, 2019 at 07:19:30AM -0800, Christoph Hellwig wrote: > On Tue, Feb 19, 2019 at 09:30:33PM -0800, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > Resending these as I had only 1 minor comment which I believe we have > > covered > > in this series. I was anticipating these

Re: [PATCH] x86/nmi: ratelimit unknown nmi logs

2019-02-20 Thread Olof Johansson
On Wed, Feb 20, 2019 at 12:59 AM Peter Zijlstra wrote: > > On Tue, Feb 19, 2019 at 05:48:36PM -0800, Olof Johansson wrote: > > Getting notified of unknown NMIs is obviously important, but getting > > notified on every single one, especially on larger systems with slow > > (serial) console causes

Re: [PATCH v15 15/15] tracing: Add hist trigger action 'expected fail' test case

2019-02-20 Thread Steven Rostedt
On Wed, 20 Feb 2019 11:38:22 -0600 Tom Zanussi wrote: > Hi Steve, > > On Wed, 2019-02-20 at 12:17 -0500, Steven Rostedt wrote: > > On Wed, 13 Feb 2019 17:42:55 -0600 > > Tom Zanussi wrote: > > > > > From: Tom Zanussi > > > > > > Add a test case verifying that basic action combinations

Re: [PATCH v2] sched/topology: fix kernel crash when a CPU is hotplugged in a memoryless node

2019-02-20 Thread Laurent Vivier
On 20/02/2019 18:08, Peter Zijlstra wrote: > On Wed, Feb 20, 2019 at 05:55:20PM +0100, Laurent Vivier wrote: >> index 3f35ba1d8fde..372278605f0d 100644 >> --- a/kernel/sched/topology.c >> +++ b/kernel/sched/topology.c >> @@ -1651,6 +1651,7 @@ void sched_init_numa(void) >> */ >> tl[i++]

Re: [PATCH] iwlwifi: mvm: Use div64_s64 instead of do_div in iwl_mvm_debug_range_resp

2019-02-20 Thread Nathan Chancellor
On Wed, Feb 20, 2019 at 11:51:34AM +0100, Arnd Bergmann wrote: > On Tue, Feb 19, 2019 at 7:22 PM Nathan Chancellor > wrote: > > > > > diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c > > b/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c > > index

Re: [PATCH v5 0/3] drm/vc4: Add a load tracker

2019-02-20 Thread Eric Anholt
Paul Kocialkowski writes: > Hi, > > Here is a fourth iteration of the VC4 load tracking series, which was > initially developed by Boris Brezillon and that I have now taken over. > > This new iteration takes in account comments from v3 and comes with a > new approach for avoiding underrun

Re: [PATCH v2 1/3] libertas_tf: move hardware callbacks to a separate structure

2019-02-20 Thread Kalle Valo
Lubomir Rintel wrote: > We'll need to talk to the firmware to get a hardware address before > device is registered with ieee80211 subsystem at the end of > lbtf_add_card(). Hooking the callbacks after that is too late. > > Signed-off-by: Lubomir Rintel 3 patches applied to

Re: [PATCH][next] rtlwifi: rtl8192ce: fix typo, "PairwiseENcAlgorithm" -> "PairwiseEncAlgorithm"

2019-02-20 Thread Kalle Valo
Colin King wrote: > From: Colin Ian King > > There is an uppercase 'N' that should be a lowercase 'n', fix this. > > Signed-off-by: Colin Ian King Patch applied to wireless-drivers-next.git, thanks. 0421dd4167ec rtlwifi: rtl8192ce: fix typo, "PairwiseENcAlgorithm" ->

Applied "regulator: max77620: Add missing .owner field in regulator_desc" to the regulator tree

2019-02-20 Thread Mark Brown
The patch regulator: max77620: Add missing .owner field in regulator_desc has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in

Applied "regulator: twl6030: Use regulator_list_voltage_linear_range for twl6030ldo_ops" to the regulator tree

2019-02-20 Thread Mark Brown
The patch regulator: twl6030: Use regulator_list_voltage_linear_range for twl6030ldo_ops has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree

Applied "regulator: tps65218.c: fix LS3 issues" to the regulator tree

2019-02-20 Thread Mark Brown
The patch regulator: tps65218.c: fix LS3 issues has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Applied "regulator: twl6030: Constify regulator_ops" to the regulator tree

2019-02-20 Thread Mark Brown
The patch regulator: twl6030: Constify regulator_ops has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "regulator: max77650: Add missing .owner field in regulator_desc" to the regulator tree

2019-02-20 Thread Mark Brown
The patch regulator: max77650: Add missing .owner field in regulator_desc has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in

Applied "ASoC: samsung: odroid: Fix of_node refcount unbalance" to the asoc tree

2019-02-20 Thread Mark Brown
The patch ASoC: samsung: odroid: Fix of_node refcount unbalance has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Re: [PATCH v4 2/2] media: cedrus: Add H264 decoding support

2019-02-20 Thread Jernej Škrabec
Hi! I really wanted to do another review on previous series but got distracted by analyzing one particulary troublesome H264 sample. It still doesn't work correctly, so I would ask you if you can test it with your stack (it might be userspace issue):

Re: [GIT PULL] mtd: Fixes for 5.0/5.0-rc8

2019-02-20 Thread pr-tracker-bot
The pull request you sent on Wed, 20 Feb 2019 08:56:53 +0100: > git://git.infradead.org/linux-mtd.git tags/mtd/fixes-for-5.0-rc8 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/7d9d592caf8cc5d91f7923c5e717b69d0b1e246f Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] sound fixes for 5.0

2019-02-20 Thread pr-tracker-bot
The pull request you sent on Wed, 20 Feb 2019 11:42:46 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-5.0 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/2137397c92aec3713fa10be3c9b830f9a1674e60 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] GPIO fixes for the v5.0 series

2019-02-20 Thread pr-tracker-bot
The pull request you sent on Wed, 20 Feb 2019 09:03:22 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git > tags/gpio-v5.0-4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c828c2651b9a8184e1414fa0611d18b84d3847dd Thank you! --

Re: [GIT PULL] pin control fixes for v5.0

2019-02-20 Thread pr-tracker-bot
The pull request you sent on Wed, 20 Feb 2019 09:08:25 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git > tags/pinctrl-v5.0-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/fb83f15ef9dd984834bc60b380efbeffdf1ecc04 Thank you! --

Re: [PATCH v6 4/6] powerpc/32: Add KASAN support

2019-02-20 Thread Christophe Leroy
Le 19/02/2019 à 18:23, Christophe Leroy a écrit : This patch adds KASAN support for PPC32. The KASAN shadow area is located between the vmalloc area and the fixmap area. KASAN_SHADOW_OFFSET is calculated in asm/kasan.h and extracted by Makefile prepare rule via asm-offsets.h For modules,

Re: [PATCH] RDMA/mlx4: Spread completion vectors for proxy CQs

2019-02-20 Thread Håkon Bugge
> On 20 Feb 2019, at 18:14, Jason Gunthorpe wrote: > > On Tue, Feb 19, 2019 at 06:32:50PM +0100, Håkon Bugge wrote: >> Anyway, Jason mentioned in a private email that maybe we could use the >> new completion API or something? I am not familiar with that one >> (yet). > > I was thinking

Re: xarray reserve/release?

2019-02-20 Thread Jason Gunthorpe
On Wed, Feb 20, 2019 at 09:14:14AM -0800, Matthew Wilcox wrote: > > void __xa_release(struct xarray *xa, unsigned long index) > > { > > XA_STATE(xas, xa, index); > > void *curr; > > > > curr = xas_load(); > > if (curr == XA_ZERO_ENTRY) > > xas_store(, NULL); > > } > >

Re: [PATCH 0/7] libnvdimm/pfn: Fix section-alignment padding

2019-02-20 Thread Jeff Moyer
Dan Williams writes: > On Tue, Feb 12, 2019 at 1:37 PM Dan Williams wrote: >> >> Lately Linux has encountered platforms that collide Persistent Memory >> regions between each other, specifically cases where ->start_pad needed >> to be non-zero. This lead to commit ae86cbfef381 "libnvdimm, pfn:

Re: [PATCH 02/10] powerpc/603: Store PGDIR physical address in a SPRG

2019-02-20 Thread Christophe Leroy
Le 25/01/2019 à 13:34, Christophe Leroy a écrit : Use SPRN_SPRG5 to store the current thread PGDIR and avoid reading thread_struct->pgdir at every TLB miss. I'll send out v2 with an additional patch getting rid of SPRN_SPRG_RTAS hence freeing SPRN_SPRG2 which I will use here instead of

Re: [PATCH v15 15/15] tracing: Add hist trigger action 'expected fail' test case

2019-02-20 Thread Tom Zanussi
Hi Steve, On Wed, 2019-02-20 at 12:17 -0500, Steven Rostedt wrote: > On Wed, 13 Feb 2019 17:42:55 -0600 > Tom Zanussi wrote: > > > From: Tom Zanussi > > > > Add a test case verifying that basic action combinations fail as > > expected. > > > > Hi Tom, > > This test appears to fail: > > #

Re: [PATCH] kasan: turn off asan-stack for clang-8 and earlier

2019-02-20 Thread Arnd Bergmann
On Wed, Feb 20, 2019 at 6:00 PM Andrey Ryabinin wrote: > On 2/20/19 5:51 PM, Arnd Bergmann wrote: > > On Wed, Feb 20, 2019 at 3:45 PM Andrey Konovalov > > wrote: > > I would have to some more research, but I expect several hundred > > patches before we get to a clean randconfig build with a

[PATCH v3 00/16] powerpc/32: Use BATs/LTLBs for STRICT_KERNEL_RWX

2019-02-20 Thread Christophe Leroy
The purpose of this serie is to: - use BATs with STRICT_KERNEL_RWX on book3s (See patch 13 for details.) - use LTLBs with STRICT_KERNEL_RWX on 8xx (See patch 15 for a few details.) v3: - Reordered to avoid build failure due to setibat() not being used for several steps in the serie. Now the

[PATCH v3 05/16] powerpc/32: always populate page tables for Abatron BDI.

2019-02-20 Thread Christophe Leroy
When CONFIG_BDI_SWITCH is set, the page tables have to be populated allthough large TLBs are used, because the BDI switch knows nothing about those large TLBs which are handled directly in TLB miss logic. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/pgtable_32.c | 5 - 1 file

[PATCH v3 02/16] powerpc/mm/32: add base address to mmu_mapin_ram()

2019-02-20 Thread Christophe Leroy
At the time being, mmu_mapin_ram() always maps RAM from the beginning. But some platforms like the WII have to map a second block of RAM. This patch adds to mmu_mapin_ram() the base address of the block. At the moment, only base address 0 is supported. Signed-off-by: Christophe Leroy ---

[PATCH v3 13/16] powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX

2019-02-20 Thread Christophe Leroy
Today, STRICT_KERNEL_RWX is based on the use of regular pages to map kernel pages. On Book3s 32, it has three consequences: - Using pages instead of BAT for mapping kernel linear memory severely impacts performance. - Exec protection is not effective because no-execute cannot be set at page level

[PATCH v3 06/16] powerpc/wii: remove wii_mmu_mapin_mem2()

2019-02-20 Thread Christophe Leroy
wii_mmu_mapin_mem2() is not used anymore, remove it. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/embedded6xx/wii.c | 28 1 file changed, 28 deletions(-) diff --git a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c

[PATCH v3 03/16] powerpc/mm/32s: rework mmu_mapin_ram()

2019-02-20 Thread Christophe Leroy
This patch reworks mmu_mapin_ram() to be more generic and map as much blocks as possible. It now supports blocks not starting at address 0. It scans DBATs array to find free ones instead of forcing the use of BAT2 and BAT3. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/ppc_mmu_32.c | 63

[PATCH v3 09/16] powerpc/mmu: add is_strict_kernel_rwx() helper

2019-02-20 Thread Christophe Leroy
Add a helper to know whether STRICT_KERNEL_RWX is enabled. This is based on rodata_enabled flag which is defined only when CONFIG_STRICT_KERNEL_RWX is selected. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/mmu.h | 11 +++ arch/powerpc/mm/init_32.c | 4 +--- 2

[PATCH v3 14/16] powerpc/kconfig: make _etext and data areas alignment configurable on Book3s 32

2019-02-20 Thread Christophe Leroy
Depending on the number of available BATs for mapping the different kernel areas, it might be needed to increase the alignment of _etext and/or of data areas. This patchs allows the user to do it via Kconfig. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 32

[PATCH v3 11/16] powerpc/kconfig: define CONFIG_DATA_SHIFT and CONFIG_ETEXT_SHIFT

2019-02-20 Thread Christophe Leroy
CONFIG_STRICT_KERNEL_RWX requires a special alignment for DATA for some subarches. Today it is just defined as an #ifdef in vmlinux.lds.S In order to get more flexibility, this patch moves the definition of this alignment in Kconfig On some subarches, CONFIG_STRICT_KERNEL_RWX will require a

[PATCH v3 16/16] powerpc/kconfig: make _etext and data areas alignment configurable on 8xx

2019-02-20 Thread Christophe Leroy
On 8xx, large pages (512kb or 8M) are used to map kernel linear memory. Aligning to 8M reduces TLB misses as only 8M pages are used in that case. We make 8M the default for data. This patchs allows the user to do it via Kconfig. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig

[PATCH v3 12/16] powerpc/mm/32s: add setibat() clearibat() and update_bats()

2019-02-20 Thread Christophe Leroy
setibat() and clearibat() allows to manipulate IBATs independently of DBATs. update_bats() allows to update bats after init. This is done with MMU off. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/mmu-hash.h | 2 ++ arch/powerpc/kernel/head_32.S | 35

[PATCH v3 15/16] powerpc/8xx: don't disable large TLBs with CONFIG_STRICT_KERNEL_RWX

2019-02-20 Thread Christophe Leroy
This patch implements handling of STRICT_KERNEL_RWX with large TLBs directly in the TLB miss handlers. To do so, etext and sinittext are aligned on 512kB boundaries and the miss handlers use 512kB pages instead of 8Mb pages for addresses close to the boundaries. It sets RO PP flags for addresses

[PATCH v3 07/16] powerpc/mm/32s: use _PAGE_EXEC in setbat()

2019-02-20 Thread Christophe Leroy
Do not set IBAT when setbat() is called without _PAGE_EXEC Signed-off-by: Christophe Leroy --- arch/powerpc/mm/ppc_mmu_32.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/mm/ppc_mmu_32.c b/arch/powerpc/mm/ppc_mmu_32.c index 5fc59b195fef..ff8580c6ab11

[PATCH v3 04/16] powerpc/mm/32s: use generic mmu_mapin_ram() for all blocks.

2019-02-20 Thread Christophe Leroy
Now that mmu_mapin_ram() is able to handle other blocks than the one starting at 0, the WII can use it for all its blocks. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/pgtable_32.c | 25 +++-- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git

[PATCH v3 08/16] powerpc/32: add helper to write into segment registers

2019-02-20 Thread Christophe Leroy
This patch add an helper which wraps 'mtsrin' instruction to write into segment registers. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/reg.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h index

[PATCH v3 10/16] powerpc/kconfig: define PAGE_SHIFT inside Kconfig

2019-02-20 Thread Christophe Leroy
This patch defined CONFIG_PPC_PAGE_SHIFT in order to be able to use PAGE_SHIFT value inside Kconfig. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig| 7 +++ arch/powerpc/include/asm/page.h | 13 ++--- 2 files changed, 9 insertions(+), 11 deletions(-) diff

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