[PATCH 2/3] mfd: madera: Add Madera core support for CS47L15

2019-05-30 Thread Charles Keepax
From: Richard Fitzgerald This patch adds all the core support and defines for the Cirrus Logic CS47L15 smart audio CODEC. Registers or fields are named MADERA_* if it is part of the common hardware platform and does not conflict with any other Madera codecs. It is named CS47L15_* if it is

[PATCH v2] ARM: dts: aspeed: Add YADRO VESNIN BMC

2019-05-30 Thread Alexander Filippov
VESNIN is an OpenPower machine with an Aspeed 2400 BMC SoC manufactured by YADRO. Signed-off-by: Alexander Filippov --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts | 234 2 files changed, 235 insertions(+) create mode

[PATCH 1/3] mfd: madera: Update DT bindings to add additional CODECs

2019-05-30 Thread Charles Keepax
From: Richard Fitzgerald This adds the cs47l15, cs42l92, cs47l92 and cs47l93 to the list of compatible strings and updates some properties that need to note the new CODECs. Signed-off-by: Richard Fitzgerald Signed-off-by: Charles Keepax --- Documentation/devicetree/bindings/mfd/madera.txt |

Re: [PATCH net-next 3/5] net: dsa: mv88e6xxx: Let taggers specify a can_timestamp function

2019-05-30 Thread Richard Cochran
On Thu, May 30, 2019 at 07:23:56AM -0700, Richard Cochran wrote: > I recommend forgetting about these meta frames. Instead, read out the > time stamps over MDIO. Or SPI. It appears you use that for Tx time stamps already. Thanks, Richard

Re: pselect/etc semantics (Was: [PATCH v2] signal: Adjust error codes according to restore_user_sigmask())

2019-05-30 Thread Oleg Nesterov
On 05/30, Arnd Bergmann wrote: > > I think this is a nice simplification, but it would help not to mix up the > minimal regression fix with the rewrite of those functions. Yes, yes, agreed. Plus every file touched by this patch asks for more cleanups. Say, do_poll() should return

[PATCH RFC memory-model 0/33] LKMM updates for review

2019-05-30 Thread Paul E. McKenney
Hello! This series contains LKMM updates: 1-3.Add plain C-language accesses to the model, including data-race detection, courtesy of Alan Stern. 4. Make scripts be executable. 5. Explain ordering provided by smp_mb__{before,after}_atomic(), courtesy of Alan Stern.

[PATCH RFC memory-model 01/33] tools/memory-model: Prepare for data-race detection

2019-05-30 Thread Paul E. McKenney
From: Alan Stern This patch makes some slight alterations to linux-kernel.cat in preparation for adding support for data-race detection to the Linux-Kernel Memory Model. The definitions of relations involved in Acquire, Release, and unlock-lock ordering are moved up earlier in

[PATCH RFC memory-model 22/33] tools/memory-model: Keep assembly-language litmus tests

2019-05-30 Thread Paul E. McKenney
This commit retains the assembly-language litmus tests generated from the C-language litmus tests, appending the hardware tag to the original C-language litmus test's filename. Thus, S+poonceonces.litmus.AArch64 contains the Armv8 assembly language corresponding to the C-language

[PATCH RFC memory-model 28/33] tools/memory-model: Make checkghlitmus.sh use mselect7

2019-05-30 Thread Paul E. McKenney
The checkghlitmus.sh script currently uses grep to ignore non-C-language litmus tests, which is a bit fragile. This commit therefore enlists the aid of "mselect7 -arch C", given Luc Maraget's recent modifications that allow mselect7 to operate in filter mode. This change requires herdtools

[PATCH RFC memory-model 13/33] tools/memory-model: Update parseargs.sh for hardware verification

2019-05-30 Thread Paul E. McKenney
This commit adds a --hw argument to parseargs.sh to specify the CPU family for a hardware verification. For example, "--hw AArch64" will specify that a C-language litmus test is to be translated to ARMv8 and the result verified. This will set the LKMM_HW_MAP_FILE environment variable

[PATCH RFC memory-model 32/33] tools/memory-model: Add checktheselitmus.sh to run specified litmus tests

2019-05-30 Thread Paul E. McKenney
This commit adds a checktheselitmus.sh script that runs the litmus tests specified on the command line. This is useful for verifying fixes to specific litmus tests. Signed-off-by: Paul E. McKenney --- tools/memory-model/scripts/README | 8

[PATCH RFC memory-model 15/33] tools/memory-model: Add simpletest.sh to check locking, RCU, and SRCU

2019-05-30 Thread Paul E. McKenney
This commit abstracts out common function to check a given litmus test for locking, RCU, and SRCU in order to avoid duplicating code. Signed-off-by: Paul E. McKenney --- tools/memory-model/scripts/simpletest.sh | 35 1 file changed, 35 insertions(+) create mode 100755

[PATCH RFC memory-model 11/33] tools/memory-model: Make judgelitmus.sh detect hard deadlocks

2019-05-30 Thread Paul E. McKenney
If a litmus test specifies "Result: Never" and if it contains an unconditional ("hard") deadlock, then running checklitmus.sh on it will not flag any errors, despite the fact that there are no executions. This commit therefore updates judgelitmus.sh to complain about tests with no executions that

[PATCH RFC memory-model 24/33] tools/memory-model: Make runlitmus.sh check for jingle errors

2019-05-30 Thread Paul E. McKenney
It turns out that the jingle7 tool is currently a bit picky about the litmus tests it is willing to process. This commit therefore ensures that jingle7 failures are reported. Signed-off-by: Paul E. McKenney --- tools/memory-model/scripts/runlitmus.sh | 5 + 1 file changed, 5 insertions(+)

[PATCH RFC memory-model 17/33] tools/memory-model: Hardware checking for check{,all}litmus.sh

2019-05-30 Thread Paul E. McKenney
This commit makes checklitmus.sh and checkalllitmus.sh check to see if a hardware verification was specified (via the --hw command-line argument, which sets the LKMM_HW_MAP_FILE environment variable). If so, the C-language litmus test is converted to the specified type of assembly-language litmus

[PATCH RFC memory-model 29/33] tools/memory-model: Make history-check scripts use mselect7

2019-05-30 Thread Paul E. McKenney
The history-check scripts currently use grep to ignore non-C-language litmus tests, which is a bit fragile. This commit therefore enlists the aid of "mselect7 -arch C", given Luc Maraget's recent modifications that allow mselect7 to operate in filter mode. This change requires herdtools

[PATCH RFC memory-model 08/33] tools/memory-model: Make judgelitmus.sh note timeouts

2019-05-30 Thread Paul E. McKenney
Currently, judgelitmus.sh treats timeouts (as in the "--timeout" argument) as "!!! Verification error". This can be misleading because it is quite possible that running the test longer would have produced a verification. This commit therefore changes judgelitmus.sh to check for timeouts and to

[PATCH RFC memory-model 33/33] tools/memory-model: Add data-race capabilities to judgelitmus.sh

2019-05-30 Thread Paul E. McKenney
This commit adds functionality to judgelitmus.sh to allow it to handle both the "DATARACE" markers in the "Result:" comments in litmus tests and the "Flag data-race" markers in LKMM output. For C-language tests, if either marker is present, the other must also be as well, at least for litmus

[PATCH RFC memory-model 20/33] tools/memory-model: Make runlitmus.sh generate .litmus.out for --hw

2019-05-30 Thread Paul E. McKenney
In the absence of "Result:" comments, the runlitmus.sh script relies on litmus.out files from prior LKMM runs. This can be a bit user-hostile, so this commit makes runlitmus.sh generate any needed .litmus.out files that don't already exist. Signed-off-by: Paul E. McKenney ---

[PATCH RFC memory-model 04/33] tools/memory-model: Make scripts be executable

2019-05-30 Thread Paul E. McKenney
This commit simplifies life a bit by making all of the scripts in tools/memory-model/scripts be executable. Signed-off-by: Paul E. McKenney --- tools/memory-model/scripts/checkghlitmus.sh | 0 tools/memory-model/scripts/checklitmushist.sh | 0 tools/memory-model/scripts/cmplitmushist.sh | 0

[PATCH RFC memory-model 05/33] Documentation: atomic_t.txt: Explain ordering provided by smp_mb__{before,after}_atomic()

2019-05-30 Thread Paul E. McKenney
From: Alan Stern The description of smp_mb__before_atomic() and smp_mb__after_atomic() in Documentation/atomic_t.txt is slightly terse and misleading. It does not clearly state which other instructions are ordered by these barriers. This improves the text to make the actual ordering

[PATCH RFC memory-model 14/33] tools/memory-model: Make judgelitmus.sh handle hardware verifications

2019-05-30 Thread Paul E. McKenney
This commit makes the judgelitmus.sh script check the --hw argument (AKA the LKMM_HW_MAP_FILE environment variable) and to adjust its judgment for a run where a C-language litmus test has been translated to assembly and the assembly version verified. In this case, the assembly verification output

[PATCH RFC memory-model 02/33] tools/memory-model: Add definitions of plain and marked accesses

2019-05-30 Thread Paul E. McKenney
From: Alan Stern This patch adds definitions for marked and plain accesses to the Linux-Kernel Memory Model. It also modifies the definitions of the existing parts of the model (including the cumul-fence, prop, hb, pb, and rb relations) so as to make them apply only to marked accesses.

[PATCH RFC memory-model 10/33] tools/memory-model: Make judgelitmus.sh identify bad macros

2019-05-30 Thread Paul E. McKenney
Currently, judgelitmus.sh treats use of unknown primitives (such as srcu_read_lock() prior to SRCU support) as "!!! Verification error". This can be misleading because it fails to call out typos and running a version LKMM on a litmus test requiring a feature not provided by that version. This

[PATCH RFC memory-model 07/33] tools/memory-model: Do not use "herd" to refer to "herd7"

2019-05-30 Thread Paul E. McKenney
From: Andrea Parri Use "herd7" in each such reference. Signed-off-by: Andrea Parri Cc: Alan Stern Cc: Will Deacon Cc: Peter Zijlstra Cc: Boqun Feng Cc: Nicholas Piggin Cc: David Howells Cc: Jade Alglave Cc: Luc Maranget Cc: "Paul E. McKenney" Cc: Akira Yokosawa Cc: Daniel Lustig

[PATCH RFC memory-model 31/33] tools/memory-model: Repair parseargs.sh header comment

2019-05-30 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- tools/memory-model/scripts/parseargs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/memory-model/scripts/parseargs.sh b/tools/memory-model/scripts/parseargs.sh index 7aa58755adfc..08ded5909860 100755 ---

[PATCH RFC memory-model 23/33] tools/memory-model: Allow herd to deduce CPU type

2019-05-30 Thread Paul E. McKenney
Currently, the scripts specify the CPU's .cat file to herd. But this is pointless because herd will select a good and sufficient .cat file from the assembly-language litmus test itself. This commit therefore removes the -model argument to herd, allowing herd to figure the CPU family out itself.

[PATCH RFC memory-model 26/33] tools/memory-model: Implement --hw support for checkghlitmus.sh

2019-05-30 Thread Paul E. McKenney
This commits enables the "--hw" argument for the checkghlitmus.sh script, causing it to convert any applicable C-language litmus tests to the specified flavor of assembly language, to verify these assembly-language litmus tests, and checking compatibility of the outcomes. Note that the conversion

[PATCH RFC memory-model 21/33] tools/memory-model: Move from .AArch64.litmus.out to .litmus.AArch.out

2019-05-30 Thread Paul E. McKenney
When the github scripts see ".litmus.out", they assume that there must be a corresponding C-language ".litmus" file. Won't they be disappointed when they instead see nothing, or, worse yet, the corresponding assembly-language litmus test? This commit therefore swaps the hardware tag with the

[PATCH RFC memory-model 27/33] tools/memory-model: Fix scripting --jobs argument

2019-05-30 Thread Paul E. McKenney
The parseargs.sh regular expression for the --jobs argument incorrectly requires that the number of jobs be at least 10, that is, have at least two digits. This commit therefore adjusts this regular expression to allow single-digit numbers of jobs to be specified. Signed-off-by: Paul E. McKenney

[PATCH RFC memory-model 06/33] tools/memory-model: Fix comment in MP+poonceonces.litmus

2019-05-30 Thread Paul E. McKenney
From: Andrea Parri The comment should say "Sometimes" for the result. Signed-off-by: Andrea Parri Cc: Alan Stern Cc: Will Deacon Cc: Peter Zijlstra Cc: Boqun Feng Cc: Nicholas Piggin Cc: David Howells Cc: Jade Alglave Cc: Luc Maranget Cc: "Paul E. McKenney" Cc: Akira Yokosawa Cc:

[PATCH RFC memory-model 09/33] tools/memory-model: Make cmplitmushist.sh note timeouts

2019-05-30 Thread Paul E. McKenney
Currently, cmplitmushist.sh treats timeouts (as in the "--timeout" argument) as "Missing Observation line". This can be misleading because it is quite possible that running the test longer would have produced a verification. This commit therefore changes cmplitmushist.sh to check for timeouts

[PATCH RFC memory-model 19/33] tools/memory-model: Split runlitmus.sh out of checklitmus.sh

2019-05-30 Thread Paul E. McKenney
This commit prepares for adding --hw capability to github litmus-test scripts by splitting runlitmus.sh (which simply runs the verification) out of checklitmus.sh (which also judges the results). Signed-off-by: Paul E. McKenney --- tools/memory-model/scripts/checklitmus.sh | 57

[PATCH RFC memory-model 25/33] tools/memory-model: Add -v flag to jingle7 runs

2019-05-30 Thread Paul E. McKenney
Adding the -v flag to jingle7 invocations gives much useful information on why jingle7 didn't like a given litmus test. This commit therefore adds this flag and saves off any such information into a .err file. Suggested-by: Luc Maranget Signed-off-by: Paul E. McKenney ---

[PATCH RFC memory-model 18/33] tools/memory-model: Make judgelitmus.sh ransack .litmus.out files

2019-05-30 Thread Paul E. McKenney
The judgelitmus.sh script currently relies solely on the "Result:" comment in the .litmus file. This is problematic when using the --hw argument, because it is necessary to check the hardware model against LKMM even in the absence of "Result:" comments. This commit therefore modifies

[PATCH RFC memory-model 16/33] tools/memory-model: Fix checkalllitmus.sh comment

2019-05-30 Thread Paul E. McKenney
The checkalllitmus.sh runs litmus tests in the litmus-tests directory, not those in the github archive, so this commit updates the comment to reflect this reality. Signed-off-by: Paul E. McKenney --- tools/memory-model/scripts/checkalllitmus.sh | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH RFC memory-model 12/33] tools/memory-model: Fix paulmck email address on pre-existing scripts

2019-05-30 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- tools/memory-model/scripts/checkalllitmus.sh | 2 +- tools/memory-model/scripts/checklitmus.sh | 2 +- tools/memory-model/scripts/checklitmushist.sh | 2 +- tools/memory-model/scripts/judgelitmus.sh | 2 +- tools/memory-model/scripts/newlitmushist.sh

[PATCH RFC memory-model 03/33] tools/memory-model: Add data-race detection

2019-05-30 Thread Paul E. McKenney
From: Alan Stern This patch adds data-race detection to the Linux-Kernel Memory Model. As part of this effort, support is added for: compiler barriers (the barrier() function), and a new Preserved Program Order term: (addr ; [Plain] ; wmb) Data races are marked with a special

[PATCH RFC memory-model 30/33] tools/memory-model: Add "--" to parseargs.sh for additional arguments

2019-05-30 Thread Paul E. McKenney
Currently, parseargs.sh expects to consume all the command-line arguments, which prevents the calling script from having any of its own arguments. This commit therefore causes parseargs.sh to stop consuming arguments when it encounters a "--" argument, leaving any remaining arguments for the

Re: [PATCH net-next 3/5] net: dsa: mv88e6xxx: Let taggers specify a can_timestamp function

2019-05-30 Thread Vladimir Oltean
On Thu, 30 May 2019 at 17:24, Richard Cochran wrote: > > On Thu, May 30, 2019 at 10:42:41AM +0300, Vladimir Oltean wrote: > > The meta frames generated by the SJA1105 do not contain any seqid. > > So this cannot ever work... > > > They contain: > > * A globally programmable DMAC > > * A globally

[PATCH tip/core/rcu 0/12]

2019-05-30 Thread Paul E. McKenney
Hello! This series provides yet more cleanups and fixes for the RCU flavor consolidation effort: 1. Enable elimination of Tree-RCU softirq processing, courtesy of Sebastian Andrzej Siewior. (More along the lines of real-time than consolidation, but placed here to avoid

[PATCH tip/core/rcu 06/12] rcu: Inline invoke_rcu_callbacks() into its sole remaining caller

2019-05-30 Thread Paul E. McKenney
This commit saves a few lines of code by inlining invoke_rcu_callbacks() into its sole remaining caller. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c | 20 +++- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index

[PATCH tip/core/rcu 05/12] rcu: Use irq_work to get scheduler's attention in clean context

2019-05-30 Thread Paul E. McKenney
When rcu_read_unlock_special() is invoked with interrupts disabled, is either not in an interrupt handler or is not using RCU_SOFTIRQ, is not the first RCU read-side critical section in the chain, and either there is an expedited grace period in flight or this is a NO_HZ_FULL kernel, the end of

[PATCH tip/core/rcu 04/12] rcu: Allow rcu_read_unlock_special() to raise_softirq() if in_irq()

2019-05-30 Thread Paul E. McKenney
When running in an interrupt handler, raise_softirq() and raise_softirq_irqoff() have extremely low overhead: They simply set a bit in a per-CPU mask, which is checked upon exit from that interrupt handler. Therefore, if rcu_read_unlock_special() is invoked within an interrupt handler and

[PATCH tip/core/rcu 01/12] rcu: Enable elimination of Tree-RCU softirq processing

2019-05-30 Thread Paul E. McKenney
From: Sebastian Andrzej Siewior Some workloads need to change kthread priority for RCU core processing without affecting other softirq work. This commit therefore introduces the rcutree.use_softirq kernel boot parameter, which moves the RCU core work from softirq to a per-CPU SCHED_OTHER

[PATCH tip/core/rcu 03/12] rcu: Only do rcu_read_unlock_special() wakeups if expedited

2019-05-30 Thread Paul E. McKenney
Currently, rcu_read_unlock_special() will do wakeups whenever it is safe to do so. However, wakeups are expensive, and they are only really needed when the just-ended RCU read-side critical section is blocking an expedited grace period (in which case speed is of the essence) or on a nohz_full CPU

[PATCH tip/core/rcu 07/12] rcu: Avoid self-IPI in sync_rcu_exp_select_node_cpus()

2019-05-30 Thread Paul E. McKenney
Although sync_rcu_exp_select_node_cpus() treats the current CPU as being in a quiescent state, it might well migrate to some other CPU before reaching the smp_call_function_single(), which could then result in an unnecessary simulated self-IPI. This commit therefore instead simply refuses to

[PATCH tip/core/rcu 10/12] rcu: Add checks for dynticks counters in rcu_is_cpu_rrupt_from_idle()

2019-05-30 Thread Paul E. McKenney
From: "Joel Fernandes (Google)" It would be good to combine the dynticks and dynticks_nesting counters in order to simplify the code. Unfortunately, there are concerns about usermode upcalls appearing to RCU as half of an interrupt, as Byungchul learned [1]. The "half" in "half interrupt" is

[PATCH 0/1] one fix for FPGA

2019-05-30 Thread Alan Tull
Hi Greg, Please take this FPGA fix. It have been reviewed on the mailing list and applies cleanly on current linux-next and char-misc-testing. Thanks, Alan Moritz Fischer (1): fpga: zynqmp-fpga: Correctly handle error pointer drivers/fpga/zynqmp-fpga.c | 4 ++-- 1 file changed, 2

[PATCH 1/1] fpga: zynqmp-fpga: Correctly handle error pointer

2019-05-30 Thread Alan Tull
From: Moritz Fischer Fixes the following static checker errors: drivers/fpga/zynqmp-fpga.c:50 zynqmp_fpga_ops_write() error: 'eemi_ops' dereferencing possible ERR_PTR() drivers/fpga/zynqmp-fpga.c:84 zynqmp_fpga_ops_state() error: 'eemi_ops' dereferencing possible ERR_PTR() Note: This does not

[PATCH tip/core/rcu 02/12] rcu: Check for wakeup-safe conditions in rcu_read_unlock_special()

2019-05-30 Thread Paul E. McKenney
When RCU core processing is offloaded from RCU_SOFTIRQ to the rcuc kthreads, a full and unconditional wakeup is required to initiate RCU core processing. In contrast, when RCU core processing is carried out by RCU_SOFTIRQ, a raise_softirq() suffices. Of course, there are situations where

[PATCH tip/core/rcu 11/12] rcu: Rename rcu_data's ->deferred_qs to ->exp_deferred_qs

2019-05-30 Thread Paul E. McKenney
The rcu_data structure's ->deferred_qs field is used to indicate that the current CPU is blocking an expedited grace period (perhaps a future one). Given that it is used only for expedited grace periods, its current name is misleading, so this commit renames it to ->exp_deferred_qs.

[PATCH tip/core/rcu 08/12] rcu: Avoid self-IPI in sync_sched_exp_online_cleanup()

2019-05-30 Thread Paul E. McKenney
The sync_sched_exp_online_cleanup() is invoked at online time to handle the case where the start of an expedited grace period ran concurrently with a CPU being taken offline and then immediately being placed online. It checks to see if RCU needs an expedited quiescent state from the incoming CPU,

[PATCH tip/core/rcu 09/12] lockdep: Add assertion to check if in an interrupt

2019-05-30 Thread Paul E. McKenney
From: "Joel Fernandes (Google)" In rcu_rrupt_from_idle, we want to check if it is called from within an interrupt, but want to do such checking only for debug builds. lockdep already tracks when we enter an interrupt. Let us expose it as an assertion macro so it can be used to assert this.

[PATCH tip/core/rcu 12/12] rcu: Remove unused rdp local from synchronize_rcu_expedited()

2019-05-30 Thread Paul E. McKenney
From: Jiang Biao Because rdp is initialized but never used in synchronize_rcu_expedited(), this commit removes it. Signed-off-by: Jiang Biao Signed-off-by: Paul E. McKenney --- kernel/rcu/tree_exp.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/rcu/tree_exp.h

[PATCH V2 3/5] perf stat: Support per-die aggregation

2019-05-30 Thread kan . liang
From: Kan Liang It is useful to aggregate counts per die. E.g. Uncore becomes die-scope on Xeon Cascade Lake-AP. Introduce a new option "--per-die" to support per-die aggregation. The global id for each core has been changed to socket + die id + core id. The global id for each die is socket +

[PATCH V2 4/5] perf header: Rename "sibling cores" to "sibling sockets"

2019-05-30 Thread kan . liang
From: Kan Liang The "sibling cores" actually shows the sibling CPUs of a socket. The name "sibling cores" is very misleading. Rename "sibling cores" to "sibling sockets" Signed-off-by: Kan Liang --- No changes since V1 tools/perf/Documentation/perf.data-file-format.txt | 2 +-

[PATCH V2 5/5] perf tools: Apply new CPU topology sysfs attributes

2019-05-30 Thread kan . liang
From: Kan Liang The existing "thread_siblings" and "thread_siblings_list" attribute will be deprecated. Use the new CPU topology sysfs attributes, "core_cpus" and "core_cpus_list", which are synonymous with the deprecated attributes. Check the new name first. If not available, use the

Re: [PATCH] PCI: altera: Fix no return warning for altera_pcie_irq_teardown()

2019-05-30 Thread Lorenzo Pieralisi
On Fri, May 24, 2019 at 10:17:28AM +0800, Ley Foon Tan wrote: > On Fri, May 24, 2019 at 10:15 AM Ley Foon Tan wrote: > > > > Fix compilation warning caused by patch "PCI: altera: Allow building as > > module". > > > > drivers/pci/controller/pcie-altera.c: In function > >

[PATCH V2 2/5] perf header: Add die information in CPU topology

2019-05-30 Thread kan . liang
From: Kan Liang With the new CPUID.1F, a new level type of CPU topology, 'die', is introduced. The 'die' information in CPU topology should be added in perf header. To be compatible with old perf.data, the patch checks the section size before reading the die information. The new info is added

[PATCH tip/core/rcu 0/2] Documentation updates for v5.3

2019-05-30 Thread Paul E. McKenney
Hello! This series provides a couple of documentation updates: 1. Document real world rcuref examples from the Linux kernel, courtesy of Joel Fernandes. 2. Fixup definition of rcupdate.rcu_task_stall_timeout, courtesy of Zhenzhong Duan.

[PATCH V2 1/5] perf cpumap: Retrieve die id information

2019-05-30 Thread kan . liang
From: Kan Liang There is no function to retrieve die id information of a given CPU. Add cpu_map__get_die_id() to retrieve die id information. Signed-off-by: Kan Liang --- New patch for V2. tools/perf/util/cpumap.c | 7 +++ tools/perf/util/cpumap.h | 1 + 2 files changed, 8

[PATCH tip/core/rcu 2/2] doc: Fixup definition of rcupdate.rcu_task_stall_timeout

2019-05-30 Thread Paul E. McKenney
From: Zhenzhong Duan A positive value of rcupdate.rcu_task_stall_timeout is an interval in seconds rather than jiffies. Signed-off-by: Zhenzhong Duan Signed-off-by: Paul E. McKenney --- Documentation/RCU/stallwarn.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH tip/core/rcu 1/2] doc/rcuref: Document real world examples in kernel

2019-05-30 Thread Paul E. McKenney
From: "Joel Fernandes (Google)" Document similar real world examples in the kernel corresponding to the second and third code snippets. Also correct an issue in release_referenced() in the code snippet example. Cc: o...@redhat.com Cc: ja...@google.com Signed-off-by: Joel Fernandes (Google) [

Re: [PATCH v3 10/12] arm64: dts: allwinner: h6: Add IR receiver node

2019-05-30 Thread Ondřej Jirman
Hello Clément, On Tue, May 28, 2019 at 06:14:38PM +0200, Clément Péron wrote: > Allwinner H6 IR is similar to A31 and can use same driver. > > Add support for it. > > Signed-off-by: Clément Péron > --- > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 19 +++ > 1 file changed,

Re: [PATCH net-next 0/5] PTP support for the SJA1105 DSA driver

2019-05-30 Thread Vladimir Oltean
On Thu, 30 May 2019 at 17:30, Richard Cochran wrote: > > On Thu, May 30, 2019 at 12:01:23PM +0300, Vladimir Oltean wrote: > > In fact that's why it doesn't work: because linuxptp adds ptp_dst_mac > > (01-1B-19-00-00-00) and (01-80-C2-00-00-0E) to the MAC's multicast > > filter, but the switch in

[PATCH tip/core/rcu 0/9] Miscellaneous fixes for v5.3

2019-05-30 Thread Paul E. McKenney
Hello! This series provides miscellaneous fixes: 1. Dump specified number of blocked tasks rather than rely on serendipity, courtesy of Neeraj Upadhyay. 2. Correctly unlock root node in rcu_check_gp_start_stall(), courtesy of Neeraj Upadhyay. 3. Make kfree_rcu()

[PATCH tip/core/rcu 2/9] rcu: Correctly unlock root node in rcu_check_gp_start_stall()

2019-05-30 Thread Paul E. McKenney
From: Neeraj Upadhyay On systems whose rcu_node tree has only one node, the rcu_check_gp_start_stall() function's values of rnp and rnp_root will be identical. In this case, it clearly does not make sense to release both rnp->lock and rnp_root->lock, but that is exactly what this function does

[PATCH tip/core/rcu 6/9] rcu: Upgrade sync_exp_work_done() to smp_mb()

2019-05-30 Thread Paul E. McKenney
The sync_exp_work_done() function uses smp_mb__before_atomic(), but there is no obvious atomic in the ensuing code. The ordering is absolutely required for grace periods to work correctly, so this commit upgrades the smp_mb__before_atomic() to smp_mb(). Reported-by: Andrea Parri Signed-off-by:

[PATCH tip/core/rcu 9/9] rcu: Don't return a value from rcu_assign_pointer()

2019-05-30 Thread Paul E. McKenney
From: Andrea Parri Quoting Paul [1]: "Given that a quick (and perhaps error-prone) search of the uses of rcu_assign_pointer() in v5.1 didn't find a single use of the return value, let's please instead change the documentation and implementation to eliminate the return value." [1]

[PATCH tip/core/rcu 5/9] doc: Remove ".vnet" from paulmck email addresses

2019-05-30 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- Documentation/core-api/circular-buffers.rst | 2 +- Documentation/memory-barriers.txt| 2 +- Documentation/translations/ko_KR/memory-barriers.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH tip/core/rcu 3/9] rcu: Make kfree_rcu() ignore NULL pointers

2019-05-30 Thread Paul E. McKenney
This commit makes the kfree_rcu() macro's semantics be consistent with the likes of kfree() by adding a check for NULL pointers, so that kfree_rcu(NULL, ...) is a no-op. Reported-by: Andriy Shevchenko Reported-by: Christoph Hellwig Signed-off-by: Paul E. McKenney Reviewed-by: Andriy Shevchenko

[PATCH tip/core/rcu 7/9] rcu: Fix irritating whitespace error in rcu_assign_pointer()

2019-05-30 Thread Paul E. McKenney
Signed-off-by: Paul E. McKenney --- include/linux/rcupdate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 915460ec0872..534c05d529b5 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h @@ -369,7

[PATCH tip/core/rcu 4/9] rcu: Set a maximum limit for back-to-back callback invocation

2019-05-30 Thread Paul E. McKenney
Currently, if a CPU has more than 10,000 callbacks pending, it will increase rdp->blimit to LONG_MAX. If you are lucky, LONG_MAX is only about two billion, but this is still a bit too many callbacks to invoke back-to-back while otherwise ignoring the world. This commit therefore sets a maximum

Re: [PATCH v2] powerpc/pseries: Use correct event modifier in rtas_parse_epow_errlog()

2019-05-30 Thread Yuehaibing
Hi all, Friendly ping: Who can take this? On 2019/4/24 10:17, Yue Haibing wrote: > From: YueHaibing > > rtas_parse_epow_errlog() should pass 'modifier' to > handle_system_shutdown, because event modifier only use > bottom 4 bits. > > Fixes: 55fc0c561742 ("powerpc/pseries: Parse and handle

[PATCH tip/core/rcu 1/9] rcu: Dump specified number of blocked tasks

2019-05-30 Thread Paul E. McKenney
From: Neeraj Upadhyay The dump_blkd_tasks() function dumps at most 10 blocked tasks, ignoring the value of the ncheck parameter. This commit therefore substitutes the value of ncheck for the hard-coded value of 10. Because all callers currently pass 10 as the number, this patch does not change

[PATCH tip/core/rcu 8/9] rcu: Force inlining of rcu_read_lock()

2019-05-30 Thread Paul E. McKenney
From: Waiman Long When debugging options are turned on, the rcu_read_lock() function might not be inlined. This results in lockdep's print_lock() function printing "rcu_read_lock+0x0/0x70" instead of rcu_read_lock()'s caller. For example: [ 10.579995] = [

Re: [PATCH net-next 3/5] net: dsa: mv88e6xxx: Let taggers specify a can_timestamp function

2019-05-30 Thread Richard Cochran
On Thu, May 30, 2019 at 05:47:55PM +0300, Vladimir Oltean wrote: > Yes, they don't identify the original frame. > The hardware's line of thinking seems to be "The meta frame is sent > immediately after the trapped frame that triggered the action." (quote > from

[PATCH tip/core/rcu 0/4] SRCU updates for v5.3

2019-05-30 Thread Paul E. McKenney
Hello! This series provides SRCU updates: 1. Allocate per-CPU data for DEFINE_SRCU() in modules. 2. Remove unused vmlinux srcu linker entries, courtesy of Joel Fernandes. 3. Make srcu_struct ptr array as read-only, courtesy of Joel Fernandes. 4. Make __call_srcu static,

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-30 Thread Stephen Smalley
On 5/30/19 10:31 AM, Andy Lutomirski wrote: Hi all- After an offline discussion with Sean yesterday, here are some updates to the user API parts of my proposal. Unfortunately, Sean convinced me that MAXPERM doesn't work the way I described it because, for SGX2, the enclave loader won't know at

[PATCH tip/core/rcu 2/4] srcu: Remove unused vmlinux srcu linker entries

2019-05-30 Thread Paul E. McKenney
From: "Joel Fernandes (Google)" The SRCU for modules optimization (commit title "srcu: Allocate per-CPU data for DEFINE_SRCU() in modules") introduced vmlinux linker entries which is unused since it applies only to the built-in vmlinux. So remove it to prevent any space usage due to the 8 byte

[PATCH tip/core/rcu 4/4] rcu: Make __call_srcu static

2019-05-30 Thread Paul E. McKenney
From: Jiang Biao Because __call_srcu() is not used outside kernel/rcu/srcutree.c, this commit makes it static. Signed-off-by: Jiang Biao Signed-off-by: Paul E. McKenney --- kernel/rcu/srcutree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/rcu/srcutree.c

Re: [PATCH] crypto: gcm - fix cacheline sharing

2019-05-30 Thread Ard Biesheuvel
On Thu, 30 May 2019 at 16:34, Herbert Xu wrote: > > On Thu, May 30, 2019 at 04:31:09PM +0200, Ard Biesheuvel wrote: > > > > This might work: > > Looks good to me. > Thanks Herbert, But given your remark regarding CBC being the only algo that has this requirement, I wonder if this might be

Re: [PATCH net-next 0/5] PTP support for the SJA1105 DSA driver

2019-05-30 Thread Richard Cochran
On Thu, May 30, 2019 at 05:57:30PM +0300, Vladimir Oltean wrote: > On Thu, 30 May 2019 at 17:30, Richard Cochran > wrote: > > > > Not necessarily. If two frames that arrive at nearly the same time > > get their timestamps mixed up, that would be enough to break the time > > values but without

[PATCH tip/core/rcu 1/4] srcu: Allocate per-CPU data for DEFINE_SRCU() in modules

2019-05-30 Thread Paul E. McKenney
Adding DEFINE_SRCU() or DEFINE_STATIC_SRCU() to a loadable module requires that the size of the reserved region be increased, which is not something we want to be doing all that often. One approach would be to require that loadable modules define an srcu_struct and invoke init_srcu_struct() from

[PATCH tip/core/rcu 3/4] module: Make srcu_struct ptr array as read-only

2019-05-30 Thread Paul E. McKenney
From: "Joel Fernandes (Google)" Since commit title ("srcu: Allocate per-CPU data for DEFINE_SRCU() in modules"), modules that call DEFINE_{STATIC,}SRCU will have a new array of srcu_struct pointers, which is used by srcu code to initialize and clean up these structures and save valuable per-cpu

[PATCH] Stacktrace in ARM32 architecture has jumped the first 2 layers, which may ignore the display of save_stack_trace_tsk.

2019-05-30 Thread l00383200
Without optimization, both save_stack_trace_tsk and __save_stack_trace will have stacktrace information in ARM32. In this situation, "data.skip += 2" operation will skip the first two layers, which may make the stacktrace strange and different from other architectures. A simple example is as

Re: [PATCH] PCI: altera: Allow building as module

2019-05-30 Thread Lorenzo Pieralisi
On Tue, May 14, 2019 at 01:35:05PM +0800, Ley Foon Tan wrote: > On Wed, Apr 24, 2019 at 12:57 PM Ley Foon Tan wrote: > > > > Altera PCIe Rootport IP is a soft IP and is only available after > > FPGA image is programmed. > > > > Make driver modulable to support use case FPGA image is programmed >

[PATCH tip/core/rcu 0/4] RCU-sync updates for v5.3

2019-05-30 Thread Paul E. McKenney
Hello! This series contains flavor-consolidation updates to RCU-sync: 1. Kill rcu_sync_type/gp_type, courtesy of Oleg Nesterov. 2. Use DEFINE_STATIC_PERCPU_RWSEM() to initialize dup_mmap_sem in uprobes, courtesy of Oleg Nesterov. 3. Add DEFINE_PERCPU_RWSEM(), use it to

Re: [PATCH 4/5] docs: by default, build docs a lot faster with Sphinx >= 1.7

2019-05-30 Thread Mauro Carvalho Chehab
Em Thu, 30 May 2019 08:54:04 -0600 Jonathan Corbet escreveu: > On Wed, 29 May 2019 22:53:05 -0300 > Mauro Carvalho Chehab wrote: > > > > Yup. The point is that I see the sphinx-build output *in the docs-build > > > output", not when I run it standalone (where it does the expected thing). > >

[PATCH tip/core/rcu 4/4] rcu/sync: Simplify the state machine

2019-05-30 Thread Paul E. McKenney
From: Oleg Nesterov With this patch rcu_sync has a single state variable and the transition rules become really simple: GP_IDLE - owned by the first rcu_sync_enter() which moves it to GP_ENTER - owned by rcu-callback which moves it to GP_PASSED - owned by the last

Re: [PATCH] PCI: altera-msi: Allow building as module

2019-05-30 Thread Lorenzo Pieralisi
On Wed, Apr 24, 2019 at 12:57:15PM +0800, Ley Foon Tan wrote: > Altera MSI IP is a soft IP and is only available after > FPGA image is programmed. > > Make driver modulable to support use case FPGA image is programmed > after kernel is booted. User proram FPGA image in kernel then only load > MSI

[PATCH tip/core/rcu 2/4] uprobes: Use DEFINE_STATIC_PERCPU_RWSEM() to initialize dup_mmap_sem

2019-05-30 Thread Paul E. McKenney
From: Oleg Nesterov Use DEFINE_STATIC_PERCPU_RWSEM() to initialize dup_mmap_sem. Signed-off-by: Oleg Nesterov Reviewed-by: Ingo Molnar Signed-off-by: Paul E. McKenney --- kernel/events/uprobes.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/events/uprobes.c

[PATCH tip/core/rcu 3/4] locking/percpu-rwsem: Add DEFINE_PERCPU_RWSEM(), use it to initialize cgroup_threadgroup_rwsem

2019-05-30 Thread Paul E. McKenney
From: Oleg Nesterov Turn DEFINE_STATIC_PERCPU_RWSEM() into __DEFINE_PERCPU_RWSEM() with the additional "is_static" argument to introduce DEFINE_PERCPU_RWSEM(). Change cgroup.c to use DEFINE_PERCPU_RWSEM(cgroup_threadgroup_rwsem). Signed-off-by: Oleg Nesterov Reviewed-by: Ingo Molnar

[PATCH tip/core/rcu 1/4] rcu/sync: Kill rcu_sync_type/gp_type

2019-05-30 Thread Paul E. McKenney
From: Oleg Nesterov Now that the RCU flavors have been consolidated, rcu_sync_type makes no sense because none of internal update functions aside from .held() depend on gp_type. This commit therefore removes this field and consolidates the relevant code. Signed-off-by: Oleg Nesterov [

[PATCH] Documentation: coresight: Update the generic device names

2019-05-30 Thread Suzuki K Poulose
Update the documentation to reflect the new naming scheme with latest changes. Reported-by: Leo Yan Cc: Mathieu Poirier Cc: Jonathan Corbet Signed-off-by: Suzuki K Poulose --- Documentation/trace/coresight.txt | 34 +++--- 1 file changed, 19 insertions(+), 15

Re: [PATCH V5 3/3] arm64/mm: Enable memory hot remove

2019-05-30 Thread Mark Rutland
Hi Anshuman, >From reviwing the below, I can see some major issues that need to be addressed, which I've commented on below. Andrew, please do not pick up this patch. On Wed, May 29, 2019 at 02:46:27PM +0530, Anshuman Khandual wrote: > The arch code for hot-remove must tear down portions of the

Re: [PATCH -next] phy: ti: am654-serdes: Make serdes_am654_xlate() static

2019-05-30 Thread Yuehaibing
Friendly ping... On 2019/4/18 21:36, Yue Haibing wrote: > From: YueHaibing > > Fix sparse warning: > > drivers/phy/ti/phy-am654-serdes.c:250:12: warning: > symbol 'serdes_am654_xlate' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing > --- >

Re: [PATCH v2] hooks: fix a missing-check bug in selinux_sb_eat_lsm_opts()

2019-05-30 Thread William Roberts
On Thu, May 30, 2019 at 4:52 AM Ondrej Mosnacek wrote: > > On Thu, May 30, 2019 at 10:51 AM Gen Zhang wrote: > > In selinux_sb_eat_lsm_opts(), 'arg' is allocated by kmemdup_nul(). It > > returns NULL when fails. So 'arg' should be checked. > > > > Signed-off-by: Gen Zhang > > Fixes:

Re: memory leak in sctp_process_init

2019-05-30 Thread Marcelo Ricardo Leitner
On Thu, May 30, 2019 at 10:20:11AM -0400, Neil Horman wrote: > On Wed, May 29, 2019 at 08:37:57PM -0300, Marcelo Ricardo Leitner wrote: > > On Wed, May 29, 2019 at 03:07:09PM -0400, Neil Horman wrote: > > > --- a/net/sctp/sm_make_chunk.c > > > +++ b/net/sctp/sm_make_chunk.c > > > @@ -2419,9

  1   2   3   4   5   6   7   8   9   10   >