Re: [PATCH] printk: Add caller information to printk() output.

2018-12-03 Thread Sergey Senozhatsky
On (12/02/18 20:23), Tetsuo Handa wrote: > > Some examples for console output: > > [0.919699]@T1 x86: Booting SMP configuration: > [4.152681]@T271 Fusion MPT base driver 3.04.20 > [5.070470]@C0 random: fast init done > [6.587900]@C3 random: crng init done This is hard to

[PATCH v5 03/13] iov_iter: pass void csum pointer to csum_and_copy_to_iter

2018-12-03 Thread Sagi Grimberg
From: Sagi Grimberg The single caller to csum_and_copy_to_iter is skb_copy_and_csum_datagram and we are trying to unite its logic with skb_copy_datagram_iter by passing a callback to the copy function that we want to apply. Thus, we need to make the checksum pointer private to the function. Acke

Re: [PATCH linux-next v2 6/6] ASoC: rsnd: add avb clocks

2018-12-03 Thread Kuninori Morimoto
HI Jiada > There are AVB Counter Clocks in ADG, each clock has 12bits integral > and 8 bits fractional dividers which operates with S0D1ϕ clock. > > This patch registers 8 AVB Counter Clocks when clock-cells of > rcar_sound node is 2, > > Signed-off-by: Jiada Wang > --- > sound/soc/sh/rcar/ad

[PATCH v5 02/13] datagram: open-code copy_page_to_iter

2018-12-03 Thread Sagi Grimberg
From: Sagi Grimberg This will be useful to consolidate skb_copy_and_hash_datagram_iter and skb_copy_and_csum_datagram to a single code path. Acked-by: David S. Miller Signed-off-by: Sagi Grimberg --- net/core/datagram.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --gi

Re: linux-next: build failure after merge of the rdma tree

2018-12-03 Thread Jason Gunthorpe
undefined! > > Caused by commit > > 34f4c9554d8b ("IB/mlx5: Use fragmented QP's buffer for in-kernel users") > > mlx5_get_send_wqe() is still used in drivers/infiniband/hw/mlx5/cq.c > and declared in drivers/infiniband/hw/mlx5/mlx5_ib.h ... > > I have used the versi

Re: [PATCH linux-next v2 6/6] ASoC: rsnd: add avb clocks

2018-12-03 Thread Kuninori Morimoto
Hi Jiada > There are AVB Counter Clocks in ADG, each clock has 12bits integral > and 8 bits fractional dividers which operates with S0D1ϕ clock. > > This patch registers 8 AVB Counter Clocks when clock-cells of > rcar_sound node is 2, > > Signed-off-by: Jiada Wang > --- (snip) > +struct clk_av

[PATCH v5 10/13] nvme-tcp: Add protocol header

2018-12-03 Thread Sagi Grimberg
From: Sagi Grimberg Signed-off-by: Sagi Grimberg --- include/linux/nvme-tcp.h | 189 +++ include/linux/nvme.h | 1 + 2 files changed, 190 insertions(+) create mode 100644 include/linux/nvme-tcp.h diff --git a/include/linux/nvme-tcp.h b/include/linux/n

Re: [PATCH 2/2] irqchip/meson-gpio: Add support for Meson-G12A SoC

2018-12-03 Thread Xingyu Chen
On 2018/12/3 18:06, Neil Armstrong wrote: On 03/12/2018 10:28, Xingyu Chen wrote: On 2018/12/3 17:19, Jerome Brunet wrote: On Mon, 2018-12-03 at 14:13 +0800, Xingyu Chen wrote: The Meson-G12A SoC uses the same GPIO interrupt controller IP block as the other Meson SoCs, A totle of 100 pins

Re: [PATCH 1/3] mfd: cros_ec: Add commands to control codec

2018-12-03 Thread Cheng-yi Chiang
On Mon, Dec 3, 2018 at 7:19 PM Lee Jones wrote: > > On Wed, 28 Nov 2018, Lee Jones wrote: > > > On Tue, 27 Nov 2018, Cheng-Yi Chiang wrote: > > > > > Add EC host commands to control codec on EC. > > > > > > Signed-off-by: Cheng-Yi Chiang > > > --- > > > include/linux/mfd/cros_ec_commands.h | 94

Re: [patch V2 27/28] x86/speculation: Add seccomp Spectre v2 user space protection mode

2018-12-03 Thread Tim Chen
On 11/25/2018 12:40 PM, Linus Torvalds wrote: > [ You forgot to fix your quilt setup.. ] > > On Sun, 25 Nov 2018, Thomas Gleixner wrote: >> >> The mitigation guide documents how STIPB works: >> >>Setting bit 1 (STIBP) of the IA32_SPEC_CTRL MSR on a logical processor >>prevents the predicte

RE: [PATCH V6 0/9] clk: add imx7ulp clk support

2018-12-03 Thread Aisheng DONG
> -Original Message- > From: Stephen Boyd [mailto:sb...@kernel.org] > Sent: Tuesday, December 4, 2018 3:32 AM > To: Aisheng DONG ; linux-...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > mturque...@baylibre.com; shawn...@kernel.org; Anson Huang

Re: [PATCH] net: stmmac: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-03 Thread David Miller
From: Yangtao Li Date: Mon, 3 Dec 2018 09:22:09 -0500 > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Yangtao Li Applied.

[PATCH V3] kvm:x86 :remove unnecessary recalculate_apic_map

2018-12-03 Thread Peng Hao
In the previous code, the variable apic_sw_disabled influences recalculate_apic_map. But in "KVM: x86: simplify kvm_apic_map" (commit:3b5a5ffa928a3f875b0d5dd284eeb7c322e1688a), the access to apic_sw_disabled in recalculate_apic_map has been deleted. Signed-off-by: Peng Hao --- arch/x86/kvm/lapic

Re: [PATCH] cpufreq: nforce2: Remove meaningless return

2018-12-03 Thread Frank Lee
On Mon, Dec 3, 2018 at 5:14 PM Rafael J. Wysocki wrote: > > On Fri, Nov 30, 2018 at 3:26 PM Yangtao Li wrote: > > > > In a function whose return type is void, returning on the last line is > > not required.So remove it.Also move the module declaration to the end. > > The last piece is not reflect

[PATCH V2] sdhci: fix the timeout check window for clock and reset

2018-12-03 Thread Du, Alek
>From 87692fc090978bde8fe872f02d0023a57af6b492 Mon Sep 17 00:00:00 2001 From: Alek Du Date: Fri, 30 Nov 2018 14:02:28 +0800 Subject: [PATCH] sdhci: fix the timeout check window for clock and reset We observed some fake timeouts on some devices, the log is like this: case 1: [159525.255629] mmc1:

Re: [PATCH] x86/mpx: pass 'mm' to kernel_managing_mpx_tables() in mpx_notify_unmap()

2018-12-03 Thread Jarkko Sakkinen
On Mon, Dec 03, 2018 at 12:49:44PM -0800, Dave Hansen wrote: > On 12/3/18 12:43 PM, Jarkko Sakkinen wrote: > > If mm is not the same as current->mm, mpx_notify_unmap() will yield > > invalid results and at worst will lead to a crash if it gets called by > > a kthread. > > It's also worth noting th

linux-next: build failure after merge of the rdma tree

2018-12-03 Thread Stephen Rothwell
sers") mlx5_get_send_wqe() is still used in drivers/infiniband/hw/mlx5/cq.c and declared in drivers/infiniband/hw/mlx5/mlx5_ib.h ... I have used the version of the rdma tree from next-20181203 for today. -- Cheers, Stephen Rothwell pgpro9F8bJwU6.pgp Description: OpenPGP digital signature

[PATCH] pstore/ram: Avoid NULL deref in ftrace merging failure path

2018-12-03 Thread Kees Cook
Given corruption in the ftrace records, it might be possible to allocate tmp_prz without assigning prz to it, but still marking it as needing to be freed, which would cause at least a NULL dereference. smatch warnings: fs/pstore/ram.c:340 ramoops_pstore_read() error: we previously assumed 'prz' c

Re: [PATCH] i3c: Rename dw-i3c-master.c into i3c-master-dw.c

2018-12-03 Thread vitor
Hi Boris, On 03/12/18 10:07, Boris Brezillon wrote: Hi Vitor, On Mon, 26 Nov 2018 09:45:14 +0100 Boris Brezillon wrote: Follow the naming scheme introduced by the Cadence driver to keep things consistent. Signed-off-by: Boris Brezillon --- drivers/i3c/master/Makefile

Re: [PATCH] coresight: cpu-debug: Support for CA73 CPUs

2018-12-03 Thread leo . yan
On Mon, Dec 03, 2018 at 10:34:07AM -0700, Mathieu Poirier wrote: > On Thu, 29 Nov 2018 at 18:22, Leo Yan wrote: > > > > This patch is to add the AMBA device ID for CA73 CPU, so that CPU debug > > module can be initialized successfully when a SoC contain CA73 CPUs. > > > > This patch has been verif

[PATCH v2 01/24] lockdep tests: Display compiler warning and error messages

2018-12-03 Thread Bart Van Assche
If compilation of liblockdep fails, display an error message and exit immediately. Display compiler warning and error messages that are generated while building a test. Only run a test if compilation succeeded. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche

[PATCH v2 10/24] locking/lockdep: Introduce lock_class_cache_is_registered()

2018-12-03 Thread Bart Van Assche
This patch does not change any functionality but makes the lockdep_reset_lock() function easier to read. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 50 1 file changed, 30 insertion

[PATCH v2 09/24] locking/lockdep: Inline __lockdep_init_map()

2018-12-03 Thread Bart Van Assche
Since the function __lockdep_init_map() only has one caller, inline it into its caller. This patch does not change any functionality. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 8 +--- 1 file changed, 1 insertion(+),

[PATCH v2 07/24] lockdep tests: Test the lockdep_reset_lock() implementation

2018-12-03 Thread Bart Van Assche
This patch makes sure that the lockdep_reset_lock() function gets tested. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/include/liblockdep/common.h | 1 + tools/lib/lockdep/include/liblockdep/mutex.h | 1 + tools/lib/lockdep/tests/A

[PATCH v2 06/24] liblockdep: Add dummy print_irqtrace_events() implementation

2018-12-03 Thread Bart Van Assche
This patch avoids that linking against liblockdep fails due to no print_irqtrace_events() definition being available. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/lockdep.c | 5 + 1 file changed, 5 insertions(+) diff --git a/to

[PATCH v2 11/24] locking/lockdep: Remove a superfluous INIT_LIST_HEAD() statement

2018-12-03 Thread Bart Van Assche
Initializing a list entry just before it is passed to list_add_tail_rcu() is not necessary because list_add_tail_rcu() overwrites the next and prev pointers anyway. Hence remove the INIT_LIST_HEAD() statement. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche

[PATCH v2 03/24] lockdep tests: Improve testing accuracy

2018-12-03 Thread Bart Van Assche
Instead of checking whether the tests produced any output, check the output itself. This patch avoids that e.g. debug output causes the message "PASSED!" to be reported for failed tests. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/

[PATCH v2 13/24] locking/lockdep: Stop using RCU primitives to access all_lock_classes

2018-12-03 Thread Bart Van Assche
Due to the previous patch all code that accesses the 'all_lock_classes' list holds the graph lock. Hence use regular list primitives instead of their RCU variants to access this list. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockde

[PATCH v2 17/24] locking/lockdep: Free lock classes that are no longer in use

2018-12-03 Thread Bart Van Assche
Instead of leaving lock classes that are no longer in use in the lock_classes array, reuse entries from that array that are no longer in use. Maintain a linked list of free lock classes with list head 'free_lock_class'. Initialize that list from inside register_lock_class() instead of from inside l

[PATCH v2 16/24] locking/lockdep: Retain the class key and name while freeing a lock class

2018-12-03 Thread Bart Van Assche
The next patch in this series uses the class name in code that detects lock class use-after-free. Hence retain the class name for lock classes that are being freed. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 4 +--- 1 fil

[PATCH v2 15/24] locking/lockdep: Reorder struct lock_class members

2018-12-03 Thread Bart Van Assche
This patch does not change any functionality but makes the patch that frees lock classes that are no longer in use easier to read. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- include/linux/lockdep.h | 14 +++--- 1 file changed, 7 insertions(

[PATCH v2 19/24] locking/lockdep: Check data structure consistency

2018-12-03 Thread Bart Van Assche
Debugging lockdep data structure inconsistencies is challenging. Add disabled code that verifies data structure consistency at runtime. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 147 ++

[PATCH v2 18/24] locking/lockdep: Reuse list entries that are no longer in use

2018-12-03 Thread Bart Van Assche
Instead of abandoning elements of list_entries[] that are no longer in use, make alloc_list_entry() reuse array elements that have been freed. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 27 --- 1 f

[PATCH v2 22/24] locking/lockdep: Add support for dynamic keys

2018-12-03 Thread Bart Van Assche
A shortcoming of the current lockdep implementation is that it requires lock keys to be allocated statically. That forces certain lock objects to share lock keys. Since lock dependency analysis groups lock objects per key sharing lock keys can cause false positive lockdep reports. Make it possible

[PATCH v2 24/24] lockdep tests: Test dynamic key registration

2018-12-03 Thread Bart Van Assche
Make sure that the lockdep_register_key() and lockdep_unregister_key() code is tested when running the lockdep tests. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/include/liblockdep/common.h | 2 ++ tools/lib/lockdep/include/libloc

[PATCH v2 20/24] locking/lockdep: Introduce __lockdep_free_key_range()

2018-12-03 Thread Bart Van Assche
This patch does not change any functionality but makes the next patch in this series easier to read. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 27 +-- 1 file changed, 17 insertions(+), 10 deletion

[PATCH v2 23/24] kernel/workqueue: Use dynamic lockdep keys for workqueues

2018-12-03 Thread Bart Van Assche
Commit 87915adc3f0a ("workqueue: re-add lockdep dependencies for flushing") improved deadlock checking in the workqueue implementation. Unfortunately that patch also introduced a few false positive lockdep complaints. This patch suppresses these false positives by allocating the workqueue mutex loc

[PATCH v2 21/24] locking/lockdep: Verify whether lock objects are small enough to be used as class keys

2018-12-03 Thread Bart Van Assche
Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 9 + 1 file changed, 9 insertions(+) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index c936fce5b9d7..b4772e5fc176 100644 --- a/kernel/locking/lockdep

[PATCH v2 14/24] locking/lockdep: Make zap_class() remove all matching lock order entries

2018-12-03 Thread Bart Van Assche
Make sure that all lock order entries that refer to a class are removed from the list_entries[] array when a kernel module is unloaded. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- include/linux/lockdep.h | 1 + kernel/locking/lockdep.c | 17 ++

[PATCH v2 08/24] locking/lockdep: Declare local symbols static

2018-12-03 Thread Bart Van Assche
This patch avoids that sparse complains about a missing declaration for the lock_classes array. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/locking/lockdep.c b/ke

[PATCH v2 04/24] lockdep tests: Run lockdep tests a second time under Valgrind

2018-12-03 Thread Bart Van Assche
This improves test coverage. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/run_tests.sh | 14 ++ 1 file changed, 14 insertions(+) diff --git a/tools/lib/lockdep/run_tests.sh b/tools/lib/lockdep/run_tests.sh index bc36178

[PATCH v2 00/24] locking/lockdep: Add support for dynamic keys

2018-12-03 Thread Bart Van Assche
Hi Ingo and Peter, A known shortcoming of the current lockdep implementation is that it requires lock keys to be allocated statically. This forces certain unrelated synchronization objects to share keys and this key sharing can cause false positive deadlock reports. This patch series adds support

[PATCH v2 12/24] locking/lockdep: Make concurrent lockdep_reset_lock() calls safe

2018-12-03 Thread Bart Van Assche
Since zap_class() removes items from the all_lock_classes list and the classhash_table, protect all zap_class() calls with the graph lock. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 02/24] lockdep tests: Fix shellcheck warnings

2018-12-03 Thread Bart Van Assche
Use find instead of ls to avoid splitting filenames that contain spaces. Use rm -f instead of if ... then rm ...; fi. This patch addresses all shellcheck complaints about the run_tests.sh shell script. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- too

[PATCH v2 05/24] liblockdep: Rename "trywlock" into "trywrlock"

2018-12-03 Thread Bart Van Assche
This patch avoids that the following compiler warning is reported while compiling the lockdep unit tests: include/liblockdep/rwlock.h: In function 'liblockdep_pthread_rwlock_trywlock': include/liblockdep/rwlock.h:66:9: warning: implicit declaration of function 'pthread_rwlock_trywlock'; did you m

Re: [PATCH] power: reset: gpio-poweroff: add ability to specific active and inactive delays

2018-12-03 Thread Moritz Fischer
On Mon, Dec 3, 2018 at 3:49 PM Rob Herring wrote: > > On Sun, 11 Nov 2018 22:45:38 +0100, Heiko Stuebner wrote: > > From: Heiko Stuebner > > > > Similar to gpio-reset allow to specify active and inactive delays > > while keeping the 100ms defaults that were used previously all the time. > > > > T

[PATCH] perf, tools: Support srccode output

2018-12-03 Thread Andi Kleen
From: Andi Kleen When looking at PT or brstackinsn traces with perf script it can be very useful to see the source code. This adds a simple facility to print them with perf script, if the information is available through dwarf % perf record ... % perf script -F insn,ip,sym,srccode ...

[PATCH 0/2] put_user_page*(): start converting the call sites

2018-12-03 Thread john . hubbard
From: John Hubbard Hi, Summary: I'd like these two patches to go into the next convenient cycle. I *think* that means 4.21. Details At the Linux Plumbers Conference, we talked about this approach [1], and the primary lingering concern was over performance. Tom Talpey helped me through a much m

[PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2018-12-03 Thread john . hubbard
From: John Hubbard Introduces put_user_page(), which simply calls put_page(). This provides a way to update all get_user_pages*() callers, so that they call put_user_page(), instead of put_page(). Also introduces put_user_pages(), and a few dirty/locked variations, as a replacement for release_p

[PATCH 2/2] infiniband/mm: convert put_page() to put_user_page*()

2018-12-03 Thread john . hubbard
From: John Hubbard For infiniband code that retains pages via get_user_pages*(), release those pages via the new put_user_page(), or put_user_pages*(), instead of put_page() This is a tiny part of the second step of fixing the problem described in [1]. The steps are: 1) Provide put_user_page*()

Re: [Bug] SD card reader in Acer Aspire S5 broken in 4.20-rc

2018-12-03 Thread Bjorn Helgaas
On Wed, Nov 28, 2018 at 02:05:21PM -0600, Bjorn Helgaas wrote: > On Wed, Nov 28, 2018 at 6:13 AM Rafael J. Wysocki wrote: > > On Tuesday, November 27, 2018 9:25:14 PM CET Bjorn Helgaas wrote: > > > On Mon, Nov 26, 2018 at 11:37:20PM +0100, Rafael J. Wysocki wrote: > > > > On Monday, November 26, 2

Re: [PATCH v9 3/4] seccomp: add a return code to trap to userspace

2018-12-03 Thread Serge E. Hallyn
On Mon, Dec 03, 2018 at 08:52:11AM -0700, Tycho Andersen wrote: > On Sun, Dec 02, 2018 at 11:26:50PM -0600, Serge E. Hallyn wrote: > > On Sun, Dec 02, 2018 at 08:28:26PM -0700, Tycho Andersen wrote: > > > +struct seccomp_knotif { > > > + /* The struct pid of the task whose filter triggered the noti

Re: [PATCH 2/2] dt-bindings: rtc: Move trivial RTCs to rtc.txt

2018-12-03 Thread Alexandre Belloni
On 03/12/2018 17:45:58-0600, Rob Herring wrote: > On Sun, Nov 11, 2018 at 08:31:14PM +0100, Alexandre Belloni wrote: > > Move trivial RTCs to the rtc generic binding documentation as they all also > > support at least 'start-year'. > > > > Signed-off-by: Alexandre Belloni > > --- > > Documentati

Re: [PATCH v9 2/4] seccomp: switch system call argument type to void *

2018-12-03 Thread Paul Moore
On Mon, Dec 3, 2018 at 12:01 AM Serge E. Hallyn wrote: > On Sun, Dec 02, 2018 at 08:28:25PM -0700, Tycho Andersen wrote: > > The const qualifier causes problems for any code that wants to write to the > > third argument of the seccomp syscall, as we will do in a future patch in > > this series. >

Re: [PATCH v1 2/2] mtd: spi-nor: add NPCM FIU controller driver

2018-12-03 Thread kbuild test robot
Hi Tomer, I love your patch! Yet something to improve: [auto build test ERROR on mtd/spi-nor/next] [also build test ERROR on v4.20-rc5 next-20181203] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH v11 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings

2018-12-03 Thread Stephen Boyd
Quoting Rob Herring (2018-12-03 15:09:07) > On Sun, Dec 02, 2018 at 09:25:02AM +0530, Taniya Das wrote: > > Add QCOM cpufreq firmware device bindings for Qualcomm Technology Inc's > > SoCs. This is required for managing the cpu frequency transitions which are > > controlled by the hardware engine.

Re: [PATCH] arm64: dts: qcom: msm8998: Fix compatible of scm node

2018-12-03 Thread Stephen Boyd
Quoting Bjorn Andersson (2018-11-29 22:56:55) > The scm binding and driver was updated to rely on the fallback to the > default qcom,scm for any modern SoC and as such both are required. Add > the default compatible to make the scm instance probe. > > Fixes: d850156a226a ("arm64: dts: qcom: msm899

Re: [RFC/RFT][PATCH v6] cpuidle: New timer events oriented governor for tickless systems

2018-12-03 Thread Rafael J. Wysocki
On Thursday, November 29, 2018 12:20:07 AM CET Doug Smythies wrote: > On 2018.11.23 02:36 Rafael J. Wysocki wrote: > > v5 -> v6: > * Avoid applying poll_time_limit to non-polling idle states by mistake. > * Use idle duration measured by the governor for everything (as it likely is >more accu

Re: [PATCH 1/3] dt-bindings: soc: qcom: Add AOSS QMP binding

2018-12-03 Thread Rob Herring
On Mon, Nov 12, 2018 at 12:05:55AM -0800, Bjorn Andersson wrote: > Add binding for the QMP based side-channel communication mechanism to > the AOSS, which is used to control resources not exposed through the > RPMh interface. > > Signed-off-by: Bjorn Andersson > --- > .../bindings/soc/qcom/qcom,

Re: [PATCH memory-model 0/3] Updates to the formal memory model

2018-12-03 Thread Paul E. McKenney
On Tue, Dec 04, 2018 at 08:28:03AM +0900, Akira Yokosawa wrote: > On 2018/12/03 15:04:11 -0800, Paul E. McKenney wrote: > > Hello, Ingo! > > > > This series contains updates to the Linux kernel's formal memory model > > in tools/memory-model. These patches are ready for inclusion into -tip. > >

[patch 1/2 for-4.20] mm, thp: restore node-local hugepage allocations

2018-12-03 Thread David Rientjes
This is a full revert of ac5b2c18911f ("mm: thp: relax __GFP_THISNODE for MADV_HUGEPAGE mappings") and a partial revert of 89c83fb539f9 ("mm, thp: consolidate THP gfp handling into alloc_hugepage_direct_gfpmask"). By not setting __GFP_THISNODE, applications can allocate remote hugepages when the l

[patch 0/2 for-4.20] mm, thp: fix remote access and allocation regressions

2018-12-03 Thread David Rientjes
This fixes a 13.9% of remote memory access regression and 40% remote memory allocation regression on Haswell when the local node is fragmented for hugepage sized pages and memory is being faulted with either the thp defrag setting of "always" or has been madvised with MADV_HUGEPAGE. The usecase th

[patch 2/2 for-4.20] mm, thp: always fault memory with __GFP_NORETRY

2018-12-03 Thread David Rientjes
If memory compaction initially fails to free a hugepage, reclaiming and retrying compaction is more likely to be harmful rather than beneficial. For reclaim, it is unlikely that the pages reclaimed will form contiguous memory the size of a hugepage without unnecessarily reclaiming a lot of memory

Re: [PATCH] power: reset: gpio-poweroff: add ability to specific active and inactive delays

2018-12-03 Thread Rob Herring
On Sun, 11 Nov 2018 22:45:38 +0100, Heiko Stuebner wrote: > From: Heiko Stuebner > > Similar to gpio-reset allow to specify active and inactive delays > while keeping the 100ms defaults that were used previously all the time. > > The dt-properties are named the same as in gpio-reset but get an "

Re: [RFC v3 2/3] dt-bindings: sdm845-pinctrl: add wakeup interrupt parent for GPIO

2018-12-03 Thread Stephen Boyd
Quoting Lina Iyer (2018-11-30 10:33:17) > On Thu, Nov 29 2018 at 14:45 -0700, Lina Iyer wrote: > >On Wed, Nov 28 2018 at 17:25 -0700, Bjorn Andersson wrote: > >>On Wed 28 Nov 09:39 PST 2018, Lina Iyer wrote: > >> > >>>On Tue, Nov 27 2018 at 14:45 -0700, Stephen Boyd wrote: > Quoting Lina Iyer

Re: [RFC/RFT][PATCH v6] cpuidle: New timer events oriented governor for tickless systems

2018-12-03 Thread Rafael J. Wysocki
On Friday, November 30, 2018 9:51:19 AM CET Rafael J. Wysocki wrote: > Hi Doug, > > On Fri, Nov 30, 2018 at 8:49 AM Doug Smythies wrote: > > > > Hi Rafael, > > > > On 2018.11.23 02:36 Rafael J. Wysocki wrote: > > > > ... [snip]... > > > > > +/** > > > + * teo_find_shallower_state - Find shallower

Re: [PATCH 2/2] dt-bindings: rtc: Move trivial RTCs to rtc.txt

2018-12-03 Thread Rob Herring
On Sun, Nov 11, 2018 at 08:31:14PM +0100, Alexandre Belloni wrote: > Move trivial RTCs to the rtc generic binding documentation as they all also > support at least 'start-year'. > > Signed-off-by: Alexandre Belloni > --- > Documentation/devicetree/bindings/rtc/rtc.txt | 34 +++ >

Re: [RFC/RFT][PATCH v6] cpuidle: New timer events oriented governor for tickless systems

2018-12-03 Thread Rafael J. Wysocki
On Saturday, December 1, 2018 3:18:24 PM CET Giovanni Gherdovich wrote: > On Fri, 2018-11-23 at 11:35 +0100, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > [cut] > > > > [snip] > > [NOTE: the tables in this message are quite wide. If this doesn't get to you > properly formatted you

[RFC PATCH 05/14] mm/hms: add link to heterogeneous memory system infrastructure

2018-12-03 Thread jglisse
From: Jérôme Glisse A link connect initiators (CPUs or devices) and targets memory with each others. It does necessarily match one to one with a physical inter-connect ie a given physical inter-connect by be presented as multiple links or multiple physical inter-connect can be presented as just o

[RFC PATCH 14/14] test/hms: tests for heterogeneous memory system

2018-12-03 Thread jglisse
From: Jérôme Glisse Set of tests for heterogeneous memory system (migration, binding, ...) Signed-off-by: Jérôme Glisse --- tools/testing/hms/Makefile| 17 ++ tools/testing/hms/hbind-create-device-file.sh | 11 + tools/testing/hms/test-hms-migrate.c | 77 ++

Fwd: [Bug 201517] New: pcieport 0000:00:03.1: AER: Corrected error received: 0000:00:00.0

2018-12-03 Thread Bjorn Helgaas
[Forwarding this to linux-pci since nobody really monitors the bugzilla] Possibly the same issue reported here: https://bugzilla.kernel.org/show_bug.cgi?id=109691 https://bugzilla.kernel.org/show_bug.cgi?id=111601 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1588428/ https://lore.

[RFC PATCH 06/14] mm/hms: add bridge to heterogeneous memory system infrastructure

2018-12-03 Thread jglisse
From: Jérôme Glisse A bridge connect two links with each others and apply only to listed initiators. With links, this allows to describe any kind of system topology ie any kind of directed graph. Moreover with bridges the userspace can choose to use different bridges to load balance bandwidth us

[RFC PATCH 07/14] mm/hms: register main memory with heterogenenous memory system

2018-12-03 Thread jglisse
From: Jérôme Glisse Register main memory as target under HMS scheme. Memory is registered per node (one target device per node). We also create a default link to connect main memory and CPU that are in the same node. For details see Documentation/vm/hms.rst. This is done to allow application to

[RFC PATCH 10/14] mm/hbind: add heterogeneous memory policy tracking infrastructure

2018-12-03 Thread jglisse
From: Jérôme Glisse This patch add infrastructure to track heterogeneous memory policy within the kernel. Policy are defined over range of virtual address of a process and attach to the correspond mm_struct. User can reset to default policy for range of virtual address using hbind() default comm

[RFC PATCH 09/14] mm/hms: hbind() for heterogeneous memory system (aka mbind() for HMS)

2018-12-03 Thread jglisse
From: Jérôme Glisse With the advance of heterogeneous computing and the new kind of memory topology that are now becoming more widespread (CPU HBM, persistent memory, ...). We no longer just have a flat memory topology inside a numa node. Instead there is a hierarchy of memory for instance HBM fo

[RFC PATCH 12/14] mm/hbind: add migrate command to hbind() ioctl

2018-12-03 Thread jglisse
From: Jérôme Glisse This patch add migrate commands to hbind() ioctl, user space can use this commands to migrate a range of virtual address to list of target memory. This does not change the policy for the range, it also ignores any of the existing policy range, it does not changes the policy f

[RFC PATCH 08/14] mm/hms: register main CPUs with heterogenenous memory system

2018-12-03 Thread jglisse
From: Jérôme Glisse Register CPUs as initiator under HMS scheme. CPUs are registered per node (one initiator device per node per CPU). We also add the CPU to the node default link so it is connected to main memory for the node. For details see Documentation/vm/hms.rst. Signed-off-by: Jérôme Glis

[RFC PATCH 13/14] drm/nouveau: register GPU under heterogeneous memory system

2018-12-03 Thread jglisse
From: Jérôme Glisse This register NVidia GPU under heterogeneous memory system so that one can use the GPU memory with new syscall like hbind() for compute work load. Signed-off-by: Jérôme Glisse --- drivers/gpu/drm/nouveau/Kbuild| 1 + drivers/gpu/drm/nouveau/nouveau_hms.c | 80 +

[RFC PATCH 11/14] mm/hbind: add bind command to heterogeneous memory policy

2018-12-03 Thread jglisse
From: Jérôme Glisse This patch add bind command to hbind() ioctl, this allow to bind a range of virtual address to given list of target memory. New memory allocated in the range will try to use memory from the target memory list. Note that this patch does not modify existing page fault path and

[RFC PATCH 04/14] mm/hms: add initiator to heterogeneous memory system infrastructure

2018-12-03 Thread jglisse
From: Jérôme Glisse An initiator is anything that can initiate memory access, either a CPU or a device. Here CPUs and devices are treated as equals. See HMS Documentation/vm/hms.txt for further detail.. Signed-off-by: Jérôme Glisse Cc: Rafael J. Wysocki Cc: Ross Zwisler Cc: Dan Williams Cc:

[RFC PATCH 03/14] mm/hms: add target memory to heterogeneous memory system infrastructure

2018-12-03 Thread jglisse
From: Jérôme Glisse A target is some kind of memory, it can be regular main memory or some more specialize memory like CPU's HBM (High Bandwidth Memory) or some device's memory. Some target memory might not be accessible by all initiators (anything that can trigger memory access). For instance s

[RFC PATCH 02/14] mm/hms: heterogenenous memory system (HMS) documentation

2018-12-03 Thread jglisse
From: Jérôme Glisse Add documentation to what is HMS and what it is for (see patch content). Signed-off-by: Jérôme Glisse Cc: Rafael J. Wysocki Cc: Ross Zwisler Cc: Dan Williams Cc: Dave Hansen Cc: Haggai Eran Cc: Balbir Singh Cc: Aneesh Kumar K.V Cc: Benjamin Herrenschmidt Cc: Felix Ku

[RFC PATCH 00/14] Heterogeneous Memory System (HMS) and hbind()

2018-12-03 Thread jglisse
From: Jérôme Glisse Heterogeneous memory system are becoming more and more the norm, in those system there is not only the main system memory for each node, but also device memory and|or memory hierarchy to consider. Device memory can comes from a device like GPU, FPGA, ... or from a memory only

Re: [PATCH v4 1/8] clk: clkdev/of_clk - add managed lookup and provider registrations

2018-12-03 Thread Stephen Boyd
Quoting Matti Vaittinen (2018-11-30 02:50:22) > Hello Stephen, > > Thanks a bunch for taking the time and reviewing this! > > On Fri, Nov 30, 2018 at 12:54:10AM -0800, Stephen Boyd wrote: > > Quoting Matti Vaittinen (2018-11-13 03:55:58) > > > With MFD devices the clk properties may be contained

[RFC PATCH 01/14] mm/hms: heterogeneous memory system (sysfs infrastructure)

2018-12-03 Thread jglisse
From: Jérôme Glisse System with complex memory topology needs a more versatile memory topology description than just node where a node is a collection of memory and CPU. In heterogeneous memory system we consider four types of object: - target: which is any kind of memory - initiator:

Re: [RFC v3 08/19] arch: um: add shim to trap to allow installing a fault catcher for tests

2018-12-03 Thread Brendan Higgins
On Thu, Nov 29, 2018 at 7:34 PM Luis Chamberlain wrote: > > On Wed, Nov 28, 2018 at 11:36:25AM -0800, Brendan Higgins wrote: > > diff --git a/arch/um/kernel/trap.c b/arch/um/kernel/trap.c > > index cced829460427..bf90e678b3d71 100644 > > --- a/arch/um/kernel/trap.c > > +++ b/arch/um/kernel/trap.c

Re: overlayfs access checks on underlying layers

2018-12-03 Thread Paul Moore
On Thu, Nov 29, 2018 at 5:22 PM Daniel Walsh wrote: > On 11/29/18 2:47 PM, Miklos Szeredi wrote: > > On Thu, Nov 29, 2018 at 5:14 PM Stephen Smalley wrote: > > > >> Possibly I misunderstood you, but I don't think we want to copy-up on > >> permission denial, as that would still allow the mounter

Re: [PATCH memory-model 0/3] Updates to the formal memory model

2018-12-03 Thread Akira Yokosawa
On 2018/12/03 15:04:11 -0800, Paul E. McKenney wrote: > Hello, Ingo! > > This series contains updates to the Linux kernel's formal memory model > in tools/memory-model. These patches are ready for inclusion into -tip. > > 1.Model smp_mb__after_unlock_lock(), courtesy of Andrea Parri. > > 2.

Re: [PATCH 2/2] Input: omap-keypad: Fix idle configration to not block SoC idle states

2018-12-03 Thread Tony Lindgren
Hi, * Dmitry Torokhov [181203 19:24]: > On Sun, Dec 02, 2018 at 05:29:33PM -0800, Tony Lindgren wrote: ... > > Note that we now must also disable OMAP4_DEF_IRQENABLE_LONGKEY as it > > should not be used together with debounce according to the TRM. The above statement is no longer true, it's left

Re: [PATCH v1 4/4] phy: qcom-qmp: Expose provided clocks to DT

2018-12-03 Thread Evan Green
On Mon, Dec 3, 2018 at 2:38 PM Stephen Boyd wrote: > > Quoting Evan Green (2018-11-29 14:13:57) > > Register a simple clock provider for the PHY pipe clock sources so that > > device tree users can point at these clocks via phandles to the lane > > nodes. > > > > Signed-off-by: Evan Green > > ---

WARNING in userfaultfd_ioctl

2018-12-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d8f190ee836a Merge branch 'akpm' (patches from Andrew) git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13d5f29340 kernel config: https://syzkaller.appspot.com/x/.config?x=4602730af4f872ef dashboar

Re: [PATCH v11 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings

2018-12-03 Thread Rob Herring
On Sun, Dec 02, 2018 at 09:25:02AM +0530, Taniya Das wrote: > Add QCOM cpufreq firmware device bindings for Qualcomm Technology Inc's > SoCs. This is required for managing the cpu frequency transitions which are > controlled by the hardware engine. > > Signed-off-by: Taniya Das > --- > .../bindi

RE: [PATCH v7 01/10] usb: gadget: udc: Add timer support for usb requests

2018-12-03 Thread Alan Stern
On Mon, 3 Dec 2018, Anurag Kumar Vulisha wrote: > >On Mon, 3 Dec 2018, Anurag Kumar Vulisha wrote: > > > >> >First of all, if some sort of deadlock causes a transfer to fail to > >> >complete, the host is expected to cancel and restart it. Not the > >> >gadget. > >> > > >> > >> Thanks for spendin

[PATCH memory-model 1/3] tools/memory-model: Model smp_mb__after_unlock_lock()

2018-12-03 Thread Paul E. McKenney
From: Andrea Parri >From the header comment for smp_mb__after_unlock_lock(): "Place this after a lock-acquisition primitive to guarantee that an UNLOCK+LOCK pair acts as a full barrier. This guarantee applies if the UNLOCK and LOCK are executed by the same CPU or if the UNLOCK and LO

Re: [PATCH] x86/boot: clear rsdp address in boot_params for broken loaders

2018-12-03 Thread hpa
On December 3, 2018 2:38:11 AM PST, Juergen Gross wrote: >In case a broken boot loader doesn't clear its struct boot_params clear >rsdp_addr in sanitize_boot_params(). > >This fixes commit e6e094e053af75 ("x86/acpi, x86/boot: Take RSDP >address from boot params if available") e.g. for the case of

[PATCH memory-model 2/3] EXP tools/memory-model: Add scripts to check github litmus tests

2018-12-03 Thread Paul E. McKenney
From: "Paul E. McKenney" The https://github.com/paulmckrcu/litmus repository contains a large number of C-language litmus tests that include "Result:" comments predicting the verification result. This commit adds a number of scripts that run tests on these litmus tests: checkghlitmus.sh:

Re: [PATCH v5 1/2] dt-bindings: clk: meson-g12a: Add G12A EE Clock Bindings

2018-12-03 Thread Rob Herring
On Thu, Nov 29, 2018 at 09:41:56PM +0800, Jian Hu wrote: > Add new clock controller compatible and dt-bingdings headers > for the Everything-Else domain of the g12a SoC > > Signed-off-by: Jian Hu > --- > .../bindings/clock/amlogic,gxbb-clkc.txt | 1 + > include/dt-bindings/clock/g12a-

[PATCH memory-model 3/3] EXP tools/memory-model: Make scripts take "-j" abbreviation for "--jobs"

2018-12-03 Thread Paul E. McKenney
From: "Paul E. McKenney" The "--jobs" argument to the litmus-test scripts is similar to the "-jN" argument to "make", so this commit allows the "-jN" form as well. While in the area, it also prohibits the various forms of "-j0". Suggested-by: Alan Stern Signed-off-by: Paul E. McKenney --- to

[PATCH memory-model 0/3] Updates to the formal memory model

2018-12-03 Thread Paul E. McKenney
Hello, Ingo! This series contains updates to the Linux kernel's formal memory model in tools/memory-model. These patches are ready for inclusion into -tip. 1. Model smp_mb__after_unlock_lock(), courtesy of Andrea Parri. 2. Add scripts to check github litmus tests. 3. Make script

CFS bandwidth control hits hard lockup warnings

2018-12-03 Thread Anton Blanchard
Hi, We are seeing hard lockup warnings caused by CFS bandwidth control code. The test case below fails almost immediately on a reasonably large (144 thread) POWER9 guest with: watchdog: CPU 80 Hard LOCKUP watchdog: CPU 80 TB:1134131922788, last heartbeat TB:1133207948315 (1804ms ago) Modules link

<    1   2   3   4   5   6   7   8   9   >