[PATCH tip/core/rcu 2/8] rcu: Several rcu_segcblist functions can be static

2019-10-02 Thread paulmck
From: kbuild test robot None of rcu_segcblist_set_len(), rcu_segcblist_add_len(), or rcu_segcblist_xchg_len() are used outside of kernel/rcu/rcu_segcblist.c. This commit therefore makes them static. Fixes: ab2ef5c7b4d1 ("rcu/nocb: Atomic ->len field in rcu_segcblist structure") Signed-off-by:

[PATCH tip/core/rcu 7/8] rcu: Update descriptions for rcu_future_grace_period tracepoint

2019-10-02 Thread paulmck
From: "Paul E. McKenney" Signed-off-by: Paul E. McKenney --- include/trace/events/rcu.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/trace/events/rcu.h b/include/trace/events/rcu.h index 4609f2e..6612260 100644 --- a/include/trace/events/rcu.h +++

[PATCH tip/core/rcu 1/8] rcu: Remove unused function hlist_bl_del_init_rcu()

2019-10-02 Thread paulmck
From: Ethan Hansen <1ethanhan...@gmail.com> The function hlist_bl_del_init_rcu() is declared in rculist_bl.h, but never used. This commit therefore removes it. Signed-off-by: Ethan Hansen <1ethanhan...@gmail.com> Signed-off-by: Paul E. McKenney --- include/linux/rculist_bl.h | 28

[PATCH tip/core/rcu 8/8] rcu: Fix uninitialized variable in nocb_gp_wait()

2019-10-02 Thread paulmck
From: Dan Carpenter We never set this to false. This probably doesn't affect most people's runtime because GCC will automatically initialize it to false at certain common optimization levels. But that behavior is related to a bug in GCC and obviously should not be relied on. Fixes:

[PATCH tip/core/rcu 0/8] Fixes for v5.5

2019-10-02 Thread Paul E. McKenney
Hello! This series provides miscellaneous fixes: 1. Remove unused function hlist_bl_del_init_rcu(), courtesy of Ethan Hansen. 2. Make several rcu_segcblist functions state, courtesy of kbuild test robot. 3. Convert for_each_wq to use built-in list check, courtesy

[PATCH tip/core/rcu 6/9] Restore docs "treewide: Rename rcu_dereference_raw_notrace() to _check()"

2019-10-02 Thread paulmck
From: "Joel Fernandes (Google)" This restores docs back in ReST format. Signed-off-by: Paul E. McKenney --- Documentation/RCU/Design/Requirements/Requirements.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/RCU/Design/Requirements/Requirements.rst

[PATCH tip/core/rcu 2/9] Revert docs from "treewide: Rename rcu_dereference_raw_notrace() to _check()"

2019-10-02 Thread paulmck
From: "Joel Fernandes (Google)" This reverts docs from commit 355e9972da81e803bbb825b76106ae9b358caf8e. Signed-off-by: Paul E. McKenney --- Documentation/RCU/Design/Requirements/Requirements.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH tip/core/rcu 9/9] Documentation: Rename rcu_node_context_switch() to rcu_note_context_switch()

2019-10-02 Thread paulmck
From: Sebastian Andrzej Siewior While Paul was explaining some RCU magic I noticed a typo in rcu_note_context_switch(). As a result, this commit replaces rcu_node_context_switch() with rcu_note_context_switch(). Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Paul E. McKenney ---

[PATCH tip/core/rcu 4/9] docs: rcu: Correct links referring to titles

2019-10-02 Thread paulmck
From: "Joel Fernandes (Google)" Mauro's auto conversion broken these links, fix them. Signed-off-by: Joel Fernandes (Google) Signed-off-by: Paul E. McKenney --- .../Memory-Ordering/Tree-RCU-Memory-Ordering.rst | 17 ++-- .../RCU/Design/Requirements/Requirements.rst | 90

[PATCH tip/core/rcu 1/9] Revert docs from "rcu: Restore barrier() to rcu_read_lock() and rcu_read_unlock()"

2019-10-02 Thread paulmck
From: "Joel Fernandes (Google)" This reverts docs from commit d6b9cd7dc8e041ee83cb1362fce59a3cdb1f2709. Signed-off-by: Paul E. McKenney --- .../RCU/Design/Requirements/Requirements.html | 71 -- 1 file changed, 71 deletions(-) diff --git

[PATCH tip/core/rcu 5/9] docs: rcu: Increase toctree to 3

2019-10-02 Thread paulmck
From: "Joel Fernandes (Google)" These documents are long and have various sections. Provide a good toc nesting level. Signed-off-by: Joel Fernandes (Google) Signed-off-by: Paul E. McKenney --- Documentation/RCU/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH tip/core/rcu 7/9] Restore docs "rcu: Restore barrier() to rcu_read_lock() and rcu_read_unlock()"

2019-10-02 Thread paulmck
From: "Joel Fernandes (Google)" This restores docs back in ReST format. Signed-off-by: Paul E. McKenney --- .../RCU/Design/Requirements/Requirements.rst | 54 ++ 1 file changed, 54 insertions(+) diff --git a/Documentation/RCU/Design/Requirements/Requirements.rst

[PATCH tip/core/rcu 8/9] doc: Update list_for_each_entry_rcu() documentation

2019-10-02 Thread paulmck
From: "Joel Fernandes (Google)" This commit updates the documentation with information about usage of lockdep with list_for_each_entry_rcu(). Signed-off-by: Joel Fernandes (Google) [ paulmck: Wordsmithing. ] Signed-off-by: Paul E. McKenney --- Documentation/RCU/lockdep.txt | 18

[PATCH tip/core/rcu 0/9] Documentation updates for v5.5

2019-10-02 Thread Paul E. McKenney
Hello! This series provides documentation updates: 1-2.Revert a pair of documentation updates conflicting with later ReST-ification, courtesy of Joel Fernandes. 3. Convert some RCU articles to ReST, courtesy of Mauro Carvalho Chehab. 4-5.ReST adjustments, courtesy

Re: [PATCH 0/7] module: various bug-fixes and clean-ups for module namespace

2019-10-02 Thread Masahiro Yamada
H Jessica, On Thu, Oct 3, 2019 at 3:57 AM Jessica Yu wrote: > > +++ Matthias Maennich [27/09/19 14:41 +0100]: > >On Fri, Sep 27, 2019 at 06:35:56PM +0900, Masahiro Yamada wrote: > >> > >>I was hit by some problems caused by the module namespace feature > >>that was merged recently. At least, the

Re: [PATCH v2] rtl8xxxu: add bluetooth co-existence support for single antenna

2019-10-02 Thread Chris Chiu
On Wed, Oct 2, 2019 at 11:04 PM Jes Sorensen wrote: > > > In general I think it looks good! One nit below: > > Sorry I have been traveling for the last three weeks, so just catching up. > > > > +void rtl8723bu_set_coex_with_type(struct rtl8xxxu_priv *priv, u8 type) > > +{ > > + switch (type)

linux-next: manual merge of the keys tree with the mips-fixes tree

2019-10-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the keys tree got conflicts in: arch/mips/kernel/syscalls/syscall_n32.tbl arch/mips/kernel/syscalls/syscall_n64.tbl arch/mips/kernel/syscalls/syscall_o32.tbl between commit: 0671c5b84e9e ("MIPS: Wire up clone3 syscall") from the mips-fixes tree and

Re: [PATCH] fs/userfaultfd.c: simplify the calculation of new_flags

2019-10-02 Thread Andrea Arcangeli
Hello, On Tue, Aug 06, 2019 at 01:38:59PM +0800, Wei Yang wrote: > Finally new_flags equals old vm_flags *OR* vm_flags. > > It is not necessary to mask them first. > > Signed-off-by: Wei Yang > --- > fs/userfaultfd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: general protection fault in sit_exit_batch_net

2019-10-02 Thread syzbot
syzbot has bisected this bug to: commit ff92741270bf8b6e78aa885f166b68c7a67ab13a Author: Jiri Pirko Date: Mon Sep 30 09:48:15 2019 + net: introduce name_node struct to be used in hashlist bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=13719e3360 start commit:

Re: [PATCH v4 00/14] software node: add support for reference properties

2019-10-02 Thread Dmitry Torokhov
Hi Rafael, On Tue, Sep 10, 2019 at 10:12:17PM -0700, Dmitry Torokhov wrote: > These series implement "references" properties for software nodes as true > properties, instead of managing them completely separately. > > The first 10 patches are generic cleanups and consolidation and unification >

[PATCH tip/core/rcu 07/32] tools/memory-model: Make judgelitmus.sh identify bad macros

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 04/32] tools/memory-model/Documentation: Add plain accesses and data races to explanation.txt

2019-10-02 Thread paulmck
From: Alan Stern This patch updates the Linux Kernel Memory Model's explanation.txt file by adding a section devoted to the model's handling of plain accesses and data-race detection. Signed-off-by: Alan Stern Signed-off-by: Paul E. McKenney ---

[PATCH tip/core/rcu 06/32] tools/memory-model: Make cmplitmushist.sh note timeouts

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 03/32] tools/memory-model/Documentation: Put redefinition of rcu-fence into explanation.txt

2019-10-02 Thread paulmck
From: Alan Stern This patch updates the Linux Kernel Memory Model's explanation.txt file to incorporate the introduction of the rcu-order relation and the redefinition of rcu-fence made by commit 15aa25cbf0cc ("tools/memory-model: Change definition of rcu-fence"). Signed-off-by: Alan Stern

[PATCH tip/core/rcu 15/32] tools/memory-model: Make judgelitmus.sh ransack .litmus.out files

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 12/32] tools/memory-model: Add simpletest.sh to check locking, RCU, and SRCU

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 21/32] tools/memory-model: Make runlitmus.sh check for jingle errors

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 13/32] tools/memory-model: Fix checkalllitmus.sh comment

2019-10-02 Thread paulmck
From: "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

[PATCH] mfd: arizona: switch to using devm_gpiod_get()

2019-10-02 Thread Dmitry Torokhov
Now that gpiolib recognizes wlf,reset legacy GPIO and will handle it even if DTS uses it without -gpio[s] suffix, we can switch to more standard devm_gpiod_get() and later remove devm_gpiod_get_from_of_node(). Note that we will lose "arizona /RESET" custom GPIO label, but since we do not set such

[PATCH tip/core/rcu 10/32] tools/memory-model: Update parseargs.sh for hardware verification

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 14/32] tools/memory-model: Hardware checking for check{,all}litmus.sh

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 18/32] tools/memory-model: Move from .AArch64.litmus.out to .litmus.AArch.out

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 20/32] tools/memory-model: Allow herd to deduce CPU type

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 09/32] tools/memory-model: Fix paulmck email address on pre-existing scripts

2019-10-02 Thread paulmck
From: "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 +-

[PATCH tip/core/rcu 19/32] tools/memory-model: Keep assembly-language litmus tests

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 16/32] tools/memory-model: Split runlitmus.sh out of checklitmus.sh

2019-10-02 Thread paulmck
From: "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 ---

[PATCH tip/core/rcu 25/32] tools/memory-model: Make checkghlitmus.sh use mselect7

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 23/32] tools/memory-model: Implement --hw support for checkghlitmus.sh

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 08/32] tools/memory-model: Make judgelitmus.sh detect hard deadlocks

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 31/32] tools/memory-model: Make judgelitmus.sh handle scripted Result: tag

2019-10-02 Thread paulmck
From: "Paul E. McKenney" The scripts that generate the litmus tests in the "auto" directory of the https://github.com/paulmckrcu/litmus archive place the "Result:" tag into a single-line ocaml comment, which judgelitmus.sh currently does not recognize. This commit therefore makes judgelitmus.sh

[PATCH tip/core/rcu 29/32] tools/memory-model: Add checktheselitmus.sh to run specified litmus tests

2019-10-02 Thread paulmck
From: "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 tip/core/rcu 22/32] tools/memory-model: Add -v flag to jingle7 runs

2019-10-02 Thread paulmck
From: "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 tip/core/rcu 30/32] tools/memory-model: Add data-race capabilities to judgelitmus.sh

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 27/32] tools/memory-model: Add "--" to parseargs.sh for additional arguments

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 26/32] tools/memory-model: Make history-check scripts use mselect7

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 32/32] tools/memory-model: Use "-unroll 0" to keep --hw runs finite

2019-10-02 Thread paulmck
From: "Paul E. McKenney" Litmus tests involving atomic operations produce LL/SC loops on a number of architectures, and unrolling these loops can result in excessive verification times or even stack overflows. This commit therefore uses the "-unroll 0" herd7 argument to avoid unrolling, on the

[PATCH tip/core/rcu 28/32] tools/memory-model: Repair parseargs.sh header comment

2019-10-02 Thread paulmck
From: "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 7aa5875..08ded59 100755 ---

[PATCH tip/core/rcu 02/32] tools/memory-model/Documentation: Fix typos in explanation.txt

2019-10-02 Thread paulmck
From: Alan Stern This patch fixes a few minor typos and improves word usage in a few places in the Linux Kernel Memory Model's explanation.txt file. Signed-off-by: Alan Stern Reviewed-by: Joel Fernandes (Google) Signed-off-by: Paul E. McKenney ---

[PATCH tip/core/rcu 17/32] tools/memory-model: Make runlitmus.sh generate .litmus.out for --hw

2019-10-02 Thread paulmck
From: "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.

[PATCH tip/core/rcu 24/32] tools/memory-model: Fix scripting --jobs argument

2019-10-02 Thread paulmck
From: "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.

[PATCH tip/core/rcu 05/32] tools/memory-model: Make judgelitmus.sh note timeouts

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 11/32] tools/memory-model: Make judgelitmus.sh handle hardware verifications

2019-10-02 Thread paulmck
From: "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

[PATCH tip/core/rcu 01/32] tools/memory-model: Fix data race detection for unordered store and load

2019-10-02 Thread paulmck
From: Alan Stern Currently the Linux Kernel Memory Model gives an incorrect response for the following litmus test: C plain-WWC {} P0(int *x) { WRITE_ONCE(*x, 2); } P1(int *x, int *y) { int r1; int r2; int r3; r1 = READ_ONCE(*x); if (r1 == 2)

Re: [PATCH net] net: stmmac: Avoid deadlock on suspend/resume

2019-10-02 Thread David Miller
From: Thierry Reding Date: Wed, 2 Oct 2019 16:49:46 +0200 > From: Thierry Reding > > The stmmac driver will try to acquire its private mutex during suspend > via phylink_resolve() -> stmmac_mac_link_down() -> stmmac_eee_init(). > However, the phylink configuration is updated with the private

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

2019-10-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the amdgpu tree got a conflict in: drivers/gpu/drm/amd/amdkfd/kfd_priv.h between commit: 471f39020569 ("drm/amdkfd: use mmu_notifier_put") from Linus' tree and commit: 4b3cece1863c ("drm/amdkfd: Use hex print format for pasid") from the amdgpu tree.

Re: [PATCH 2/2] samples/bpf: fix build by setting HAVE_ATTR_TEST to zero

2019-10-02 Thread KP Singh
Tested-by: KP Singh I can confirm that samples/bpf are building for me now (x86_64, clang-8) after applying this series and: * https://lore.kernel.org/bpf/CAPhsuW5c9v0OnU4g+eYkPjBCuNMjC_69pFhzr=ntfdmay4b...@mail.gmail.com *

Re: [PATCH v1] kernel.h: Split out mathematical helpers

2019-10-02 Thread Andrew Morton
On Tue, 10 Sep 2019 13:51:05 +0300 Andy Shevchenko wrote: > kernel.h is being used as a dump for all kinds of stuff for a long time. > Here is the attempt to start cleaning it up by splitting out mathematical > helpers. > > Signed-off-by: Andy Shevchenko > --- > fs/nfs/callback_proc.c

[PATCH memory-model 0/32] Memory-model updates

2019-10-02 Thread Paul E. McKenney
Hello! This series contains updates for the Linux-kernel memory model: 1. Fix data race detection for unordered store and load, courtesy of Alan Stern. 2-4.Documentation update for plain accesses. 5-32. Work-in-progress test-script updates.

[PATCH] base: soc: Handle custom soc information sysfs entries

2019-10-02 Thread Murali Nalajala
Soc framework exposed sysfs entries are not sufficient for some of the h/w platforms. Currently there is no interface where soc drivers can expose further information about their SoCs via soc framework. This change address this limitation where clients can pass their custom entries as attribute

Re: [PATCH] lis3lv02d: switch to using input device polling mode

2019-10-02 Thread Dmitry Torokhov
ng] > > [cannot apply to v5.4-rc1 next-20191002] > > This is weird, I just tried applying it to both next-20191002 and Greg's > char-misc/char-misc-testing and it applied cleanly and compiled (on x86). You seem to have tried applying it to this commit: Merge tag 'char-misc-5.4-rc1' o

[PATCH v2 0/2] pinctrl: iproc: improve error handling

2019-10-02 Thread Chris Packham
I noticed these when debugging another issue. The first patch is a fix to address some error handling. The second is just cosmetic. Changes in v2: - split bug-fix from cosmetic change Chris Packham (2): pinctrl: iproc: allow for error from platform_get_irq() pinctrl: iproc: use unique name

[PATCH v2 1/2] pinctrl: iproc: allow for error from platform_get_irq()

2019-10-02 Thread Chris Packham
platform_get_irq() can return an error code. Allow for this when getting the irq. Fixes: 6f265e5d4da7 ("pinctrl: bcm-iproc: Pass irqchip when adding gpiochip") Signed-off-by: Chris Packham --- drivers/pinctrl/bcm/pinctrl-iproc-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 2/2] pinctrl: iproc: use unique name for irq chip

2019-10-02 Thread Chris Packham
Use the dev_name(dev) for the irqc->name so that we get unique names when we have multiple instances of this driver. Signed-off-by: Chris Packham --- drivers/pinctrl/bcm/pinctrl-iproc-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] lis3lv02d: switch to using input device polling mode

2019-10-02 Thread Dmitry Torokhov
On Thu, Oct 03, 2019 at 07:30:23AM +0800, kbuild test robot wrote: > Hi Dmitry, > > I love your patch! Yet something to improve: > > [auto build test ERROR on char-misc/char-misc-testing] > [cannot apply to v5.4-rc1 next-20191002] This is weird, I just tried applying it to

Re: nsdeps not working on modules in 5.4-rc1

2019-10-02 Thread Steve French
And running the build differently, from the root of the git tree (5.4-rc1) rather than using the Ubuntu 5.4-rc1 headers also fails e.g. "make M=fs/cifs modules nsdeps" ... LD [M] fs/cifs/cifs.o Building modules, stage 2. MODPOST 1 modules WARNING: module cifs uses symbol sigprocmask from

nsdeps not working on modules in 5.4-rc1

2019-10-02 Thread Steve French
Following the instructions in Documentation/namespaces to autogenerate the namespace changes to avoid the multiple build warnings in 5.4-rc1 for my module ... I am not able to get nsdeps to work. For example in my module directory (fs/cifs) trying to build with nsdeps: make -C

Re: [PATCH v22 16/24] x86/vdso: Add support for exception fixup in vDSO functions

2019-10-02 Thread Jarkko Sakkinen
On Thu, Oct 03, 2019 at 02:18:04AM +0300, Jarkko Sakkinen wrote: > It would be even better to delete it completely than have it in the > current form. I would suggest that you do that and concentrate writing > steps 1-4 that I described above. To compensate my rather harsh (but correct) comments

Re: [PATCH] ARM: dts: rockchip: Use interpolated brightness tables for veyron

2019-10-02 Thread Matthias Kaehlcke
On Wed, Oct 02, 2019 at 03:23:54PM -0700, Doug Anderson wrote: > Hi, > > On Tue, Oct 1, 2019 at 4:07 PM Matthias Kaehlcke wrote: > > --- a/arch/arm/boot/dts/rk3288-veyron-minnie.dts > > +++ b/arch/arm/boot/dts/rk3288-veyron-minnie.dts > > @@ -39,39 +39,8 @@ > > > > { > > /* Minnie

Re: [PATCH 0/2] peci: aspeed: Add AST2600 compatible

2019-10-02 Thread Jae Hyun Yoo
On 10/2/2019 3:05 PM, Joel Stanley wrote: On Wed, 2 Oct 2019 at 18:11, Jae Hyun Yoo wrote: Hi Chia-Wei, On 10/1/2019 11:11 PM, Chia-Wei, Wang wrote: Update the Aspeed PECI driver with the AST2600 compatible string. A new comptabile string is needed for the extended HW feature of AST2600.

Re: [PATCH v22 00/24] Intel SGX foundations

2019-10-02 Thread Jarkko Sakkinen
On Wed, Sep 25, 2019 at 05:32:04PM +0300, Jarkko Sakkinen wrote: > On Tue, Sep 24, 2019 at 10:20:09AM -0700, Andy Lutomirski wrote: > > > I think either can be considered post-upstreaming. > > > > Indeed, as long as the overall API is actually compatible with these > > types of restrictions. > >

Re: [rfc] mm, hugetlb: allow hugepage allocations to excessively reclaim

2019-10-02 Thread Linus Torvalds
On Wed, Oct 2, 2019 at 4:03 PM David Rientjes wrote: > > Since hugetlb allocations have explicitly preferred to loop and do reclaim > and compaction, exempt them from this new behavior at least for the time > being. It is not shown that hugetlb allocation success rate has been > impacted by

Re: [PATCH] lis3lv02d: switch to using input device polling mode

2019-10-02 Thread kbuild test robot
Hi Dmitry, I love your patch! Yet something to improve: [auto build test ERROR on char-misc/char-misc-testing] [cannot apply to v5.4-rc1 next-20191002] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option

Re: [PATCH] pinctrl: iproc: improve error handling

2019-10-02 Thread Scott Branden
Hi Chris, On 2019-10-02 3:00 p.m., Chris Packham wrote: platform_get_irq() can return an error code. Allow for this when getting the irq. Above matches change in 1st line of commit.  Please add a Fixes: tag for such fix. While we're here use the dev_name(dev) for the irqc->name so that we

RE: [PATCH v7 1/1] memory_hotplug: Add a bounds check to __add_pages

2019-10-02 Thread Alastair D'Silva
On Wed, 2019-10-02 at 15:14 -0700, Andrew Morton wrote: > On Tue, 1 Oct 2019 11:49:47 +0200 David Hildenbrand > wrote: > > > > @@ -278,6 +278,22 @@ static int check_pfn_span(unsigned long pfn, > > > unsigned long nr_pages, > > > return 0; > > > } > > > > > > +static int

Re: [PATCH net-next] mvpp2: remove misleading comment

2019-10-02 Thread David Miller
From: Matteo Croce Date: Wed, 2 Oct 2019 23:49:04 +0200 > Recycling in mvpp2 has gone long time ago, but two comment still refers > to it. Remove those two misleading comments as they generate confusion. > > Fixes: 7ef7e1d949cd ("net: mvpp2: drop useless fields in mvpp2_bm_pool and > related

Re: [PATCH] Input: gpio_mouse - switch to using input device polling mode

2019-10-02 Thread Hans-Christian Noren Egtvedt
Around Wed 02 Oct 2019 15:00:48 -0700 or thereabout, Dmitry Torokhov wrote: > Now that instances of input_dev support polling mode natively, > we no longer need to create input_polled_dev instance. > > Signed-off-by: Dmitry Torokhov Acked-by: Hans-Christian Noren Egtvedt > --- >

Re: [PATCH v22 16/24] x86/vdso: Add support for exception fixup in vDSO functions

2019-10-02 Thread Jarkko Sakkinen
On Tue, Sep 03, 2019 at 05:26:47PM +0300, Jarkko Sakkinen wrote: > From: Sean Christopherson > > The basic concept and implementation is very similar to the kernel's > exception fixup mechanism. The key differences are that the kernel > handler is hardcoded and the fixup entry addresses are

[RFC][PATCH 0/3] dwc3 role-switch handling for HiKey960

2019-10-02 Thread John Stultz
I'm just trying to pick up parts of a patch previously by Yu Chen to get HiKey960 dev-board's USB functionality working. The current full patchset can be found here: https://git.linaro.org/people/john.stultz/android-dev.git/log/?id=12289c95c89e0e3173f8da1ebd3a29e52fd50a44 I don't have any

[RFC][PATCH 1/3] dt-bindings: usb: generic: Add role-switch-default-host binding

2019-10-02 Thread John Stultz
Add binding to configure the default role the controller assumes is host mode when the usb role is USB_ROLE_NONE. Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland Cc: Heikki Krogerus Cc: Suzuki K Poulose Cc: Chunfeng Yun Cc: Yu Chen Cc: Felipe Balbi Cc: Hans de Goede Cc: Andy

[RFC][PATCH 2/3] usb: roles: Add usb role switch notifier.

2019-10-02 Thread John Stultz
From: Yu Chen This patch adds notifier for drivers want to be informed of the usb role switch. Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland Cc: Heikki Krogerus Cc: Suzuki K Poulose Cc: Chunfeng Yun Cc: Yu Chen Cc: Felipe Balbi Cc: Hans de Goede Cc: Andy Shevchenko Cc: Jun

[RFC][PATCH 3/3] usb: dwc3: Registering a role switch in the DRD code.

2019-10-02 Thread John Stultz
From: Yu Chen The Type-C drivers use USB role switch API to inform the system about the negotiated data role, so registering a role switch in the DRD code in order to support platforms with USB Type-C connectors. Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland Cc: Heikki Krogerus

[PATCH v3] selftests: kvm: Fix libkvm build error

2019-10-02 Thread Shuah Khan
Fix the following build error from "make TARGETS=kvm kselftest": libkvm.a(assert.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC This error is seen when build is done from the main Makefile using kselftest target. In this case

Re: [PATCH v6 0/3] mm, slab: Make kmalloc_info[] contain all types of names

2019-10-02 Thread Andrew Morton
On Mon, 23 Sep 2019 20:27:25 +0800 Pengfei Li wrote: > Changes in v6 > -- > 1. abandon patch 4-7 (Because there is not enough reason to explain > that they are beneficial) So http://lkml.kernel.org/r/20190923004022.GC15734@shao2-debian can no longer occur? > Changes in v5 > -- > 1. patch 1/7:

[PATCH v2] selftests: kvm: Fix libkvm build error

2019-10-02 Thread Shuah Khan
Fix the following build error from "make TARGETS=kvm kselftest": libkvm.a(assert.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC This error is seen when build is done from the main Makefile using kselftest target. In this case

Re: [PATCH] lis3lv02d: switch to using input device polling mode

2019-10-02 Thread kbuild test robot
Hi Dmitry, I love your patch! Yet something to improve: [auto build test ERROR on char-misc/char-misc-testing] [cannot apply to v5.4-rc1 next-20191002] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option

[rfc] mm, hugetlb: allow hugepage allocations to excessively reclaim

2019-10-02 Thread David Rientjes
Hugetlb allocations use __GFP_RETRY_MAYFAIL to aggressively attempt to get hugepages that the user needs. Commit b39d0ee2632d ("mm, page_alloc: avoid expensive reclaim when compaction may not succeed") intends to improve allocator behind for thp allocations to prevent excessive amounts of

Re: [GIT PULL] timer fix

2019-10-02 Thread pr-tracker-bot
The pull request you sent on Thu, 3 Oct 2019 00:06:07 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > timers-urgent-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5021b9182ee805603e3b180220a929af7bd4b960 Thank you! -- Deet-doot-dot,

Re: [GIT PULL] membarrier fix

2019-10-02 Thread pr-tracker-bot
The pull request you sent on Thu, 3 Oct 2019 00:04:06 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > sched-urgent-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/714366f87336b2a3f1cca9a6ba8632d6403283ad Thank you! -- Deet-doot-dot, I

[PATCH] tick-sched: Update nohz load even if tick already stopped

2019-10-02 Thread Scott Wood
The way loadavg is tracked during nohz only pays attention to the load upon entering nohz. This can be particularly noticeable if nohz is entered while non-idle, and then the cpu goes idle and stays that way for a long time. We've had reports of a loadavg near 150 on a mostly idle system.

Re: [PATCH] MIPS: init: Prevent adding memory before PHYS_OFFSET

2019-10-02 Thread Paul Burton
Hello, Thomas Bogendoerfer wrote: > On some SGI machines (IP28 and IP30) a small region of memory is mirrored > to pyhsical address 0 for exception vectors while rest of the memory > is reachable at a higher physical address. ARC PROM marks this > region as reserved, but with commit a94e4f24ec83

Re: [PATCH] MIPS: init: Fix reservation of memory between PHYS_OFFSET and mem start

2019-10-02 Thread Paul Burton
Hello, Thomas Bogendoerfer wrote: > Fix calculation of the size for reserving memory between PHYS_OFFSET > and real memory start. Applied to mips-fixes. > commit 66b416ee41ed > https://git.kernel.org/mips/c/66b416ee41ed > > Fixes: a94e4f24ec83 ("MIPS: init: Drop boot_mem_map") > Signed-off-by:

Re: [PATCH] mips: Loongson: Fix the link time qualifier of 'serial_exit()'

2019-10-02 Thread Paul Burton
Hello, Christophe JAILLET wrote: > 'exit' functions should be marked as __exit, not __init. Applied to mips-fixes. > commit 25b69a889b63 > https://git.kernel.org/mips/c/25b69a889b63 > > Fixes: 85cc028817ef ("mips: make loongsoon serial driver explicitly modular") > Signed-off-by: Christophe

Re: [PATCH v7 1/4] ftrace: Implement fs notification for tracing_max_latency

2019-10-02 Thread Steven Rostedt
On Thu, 3 Oct 2019 00:04:56 +0200 Viktor Rosendahl wrote: > > Can fsnotify() be called from irq context? If so, why have the work > > queue at all? Just do the work from the irq_work handler. > > > > fsnotify() might sleep. It calls send_to_group(), which calls > inotify_handle_event()

Re: [PATCH v7 4/4] ftrace: Add an option for tracing console latencies

2019-10-02 Thread Viktor Rosendahl
On 10/2/19 2:52 AM, Joel Fernandes wrote: On Fri, Sep 20, 2019 at 05:22:19PM +0200, Viktor Rosendahl (BMW) wrote: This new trace option "console-latency" will enable the latency tracers to trace the console latencies. Previously this has always been implicitely disabled. I guess this is because

Re: [PATCH v7 0/7] Introduce support for Guest CET feature

2019-10-02 Thread Jim Mattson
On Thu, Sep 26, 2019 at 7:17 PM Yang Weijiang wrote: > > Control-flow Enforcement Technology (CET) provides protection against > Return/Jump-Oriented Programming (ROP/JOP) attack. It includes two > sub-features: Shadow Stack (SHSTK) and Indirect Branch Tracking (IBT). > > KVM modification is

Re: [patch for-5.3 0/4] revert immediate fallback to remote hugepages

2019-10-02 Thread David Rientjes
On Wed, 2 Oct 2019, Michal Hocko wrote: > > > If > > > hugetlb wants to stress this to the fullest extent possible, it already > > > appropriately uses __GFP_RETRY_MAYFAIL. > > > > Which doesn't work anymore right now, and should again after this patch. > > I didn't get to fully digest the

Re: [PATCH] ARM: dts: rockchip: Use interpolated brightness tables for veyron

2019-10-02 Thread Doug Anderson
Hi, On Tue, Oct 1, 2019 at 4:07 PM Matthias Kaehlcke wrote: > --- a/arch/arm/boot/dts/rk3288-veyron-minnie.dts > +++ b/arch/arm/boot/dts/rk3288-veyron-minnie.dts > @@ -39,39 +39,8 @@ > > { > /* Minnie panel PWM must be >= 1%, so start non-zero brightness at 3 > */ > -

Re: [PATCH v2 0/3] media: cedrus: improvements

2019-10-02 Thread Paul Kocialkowski
Hi, On Wed 02 Oct 19, 21:35, Jernej Skrabec wrote: > This is continuation of https://lkml.org/lkml/2019/5/30/1459 with several > patches removed (2 merged, others needs redesign) and one added. Thanks for the continued effort on this, these fixes are greatly appreciated (and more generally, all

Re: [PATCH v2 3/3] media: cedrus: Use helpers to access capture queue

2019-10-02 Thread Paul Kocialkowski
Hi, On Wed 02 Oct 19, 21:35, Jernej Skrabec wrote: > Accessing capture queue structue directly is not safe. Use helpers for > that. Looks good to me, thanks! Acked-by: Paul Kocialkowski Cheers, Paul > Signed-off-by: Jernej Skrabec > --- > drivers/staging/media/sunxi/cedrus/cedrus.h |

Re: [PATCH v7 1/1] memory_hotplug: Add a bounds check to __add_pages

2019-10-02 Thread Andrew Morton
On Tue, 1 Oct 2019 11:49:47 +0200 David Hildenbrand wrote: > > @@ -278,6 +278,22 @@ static int check_pfn_span(unsigned long pfn, unsigned > > long nr_pages, > > return 0; > > } > > > > +static int check_hotplug_memory_addressable(unsigned long pfn, > > +

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