Re: [PATCH] dma-debug: fix debug_dma_assert_idle(), use rcu_read_lock()

2020-08-14 Thread Hugh Dickins
On Fri, 14 Aug 2020, Linus Torvalds wrote: > On Thu, Aug 13, 2020 at 10:42 PM Christoph Hellwig wrote: > > > > The whole thing predates my involvement with the code, but I defintively > > think the patch from Hugh is a major improvement. But I would also > > have no problem with just removing it

Re: [PATCH] x86: work around clang IAS bug referencing __force_order

2020-08-14 Thread Nick Desaulniers
On Fri, Aug 14, 2020 at 3:57 PM Nick Desaulniers wrote: > > On Fri, Aug 14, 2020 at 2:19 PM Sedat Dilek wrote: > > > > On Fri, Aug 14, 2020 at 7:29 PM Sedat Dilek wrote: > > > > > > Thanks for the proposal. > > > > > > I have adapted it to fit my patchset against Linux v5.8. > > > > > > Both

[PATCH] lib/string.c: implement stpcpy

2020-08-14 Thread Nick Desaulniers
LLVM implemented a recent "libcall optimization" that lowers calls to `sprintf(dest, "%s", str)` where the return value is used to `stpcpy(dest, str) - dest`. This generally avoids the machinery involved in parsing format strings. `stpcpy` is just like `strcpy` except: 1. it returns the pointer

linux-next: Fixes tag needs some work in the memblock tree

2020-08-14 Thread Stephen Rothwell
Hi all, In commit 520580d537a1 ("arch/ia64: Restore arch-specific pgd_offset_k implementation") Fixes tag Fixes: 974b9b2c68 ("mm: consolidate pte_index() and pte_offset_*() definitions") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting

Re: POC: Alternative solution: Re: [PATCH 0/4] printk: reimplement LOG_CONT handling

2020-08-14 Thread Joe Perches
On Fri, 2020-08-14 at 15:46 -0700, Linus Torvalds wrote: > On Thu, Aug 13, 2020 at 4:54 AM Sergey Senozhatsky > wrote: > > I think what Linus said a long time ago was that the initial purpose of > > pr_cont was > > > > pr_info("Initialize feature foo..."); > > if

Re: [PATCH] selftests: rtnetlink: load fou module for kci_test_encap_fou()

2020-08-14 Thread David Miller
From: Po-Hsu Lin Date: Thu, 13 Aug 2020 12:44:22 +0800 > diff --git a/tools/testing/selftests/net/config > b/tools/testing/selftests/net/config > index 3b42c06b..96d2763 100644 > --- a/tools/testing/selftests/net/config > +++ b/tools/testing/selftests/net/config > @@ -31,3 +31,4 @@

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-14 Thread Paul E. McKenney
On Sat, Aug 15, 2020 at 01:14:53AM +0200, Thomas Gleixner wrote: > Paul, > > On Fri, Aug 14 2020 at 11:01, Paul E. McKenney wrote: > > On Fri, Aug 14, 2020 at 04:06:04PM +0200, Michal Hocko wrote: > >> > > > Vlastimil raised same question earlier, i answered, but let me > >> > > > answer again:

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-14 Thread Thomas Gleixner
On Fri, Aug 14 2020 at 23:52, Peter Zijlstra wrote: > On Fri, Aug 14, 2020 at 01:41:40PM -0700, Paul E. McKenney wrote: >> > And that enforces the GFP_NOLOCK allocation mode or some other solution >> > unless you make a new rule that calling call_rcu() is forbidden while >> > holding zone lock or

BUG: corrupted list in bt_accept_unlink

2020-08-14 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:a1d21081 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11c7789190 kernel config: https://syzkaller.appspot.com/x/.config?x=9c89856ae5fc8b6

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-14 Thread Paul E. McKenney
On Fri, Aug 14, 2020 at 11:52:06PM +0200, Peter Zijlstra wrote: > On Fri, Aug 14, 2020 at 01:41:40PM -0700, Paul E. McKenney wrote: > > > And that enforces the GFP_NOLOCK allocation mode or some other solution > > > unless you make a new rule that calling call_rcu() is forbidden while > > >

Re: [PATCH] x86/hotplug: Silence APIC only after all irq's are migrated

2020-08-14 Thread Randy Dunlap
On 8/14/20 2:38 PM, Ashok Raj wrote: > When offlining CPU's, fixup_irqs() migrates all interrupts away from the CPUs, > outgoing CPU to an online CPU. Its always possible the device sent an It's > interrupt to the previous CPU destination.

Re: [PATCH v10 3/5] drm/msm/dp: add support for DP PLL driver

2020-08-14 Thread Tanmay Shah
On 2020-08-14 10:05, Dmitry Baryshkov wrote: On 12/08/2020 07:42, Tanmay Shah wrote: From: Chandan Uddaraju Add the needed DP PLL specific files to support display port interface on msm targets. [skipped] diff --git a/drivers/gpu/drm/msm/dp/dp_pll_private.h

Re: [RFC/RFT PATCH 6/6] riscv: Add numa support for riscv64 platform

2020-08-14 Thread Randy Dunlap
On 8/14/20 2:47 PM, Atish Patra wrote: > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index 7b5905529146..4bd67f94aaac 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -137,7 +137,7 @@ config PAGE_OFFSET > default 0xffe0 if 64BIT && MAXPHYSMEM_128GB >

Re: [GIT pull] irq/urgent for v5.9-rc1

2020-08-14 Thread Thomas Gleixner
On Fri, Aug 14 2020 at 14:14, Linus Torvalds wrote: > On Fri, Aug 14, 2020 at 9:00 AM Thomas Gleixner wrote: >> >> Two fixes in the core interrupt code which ensure that all error exits >> unlock the descriptor lock. > > No diffstat? > > I've pulled it, but please check what went wrong.. Duh,

Re: [RFC/RFT PATCH 1/6] numa: Move numa implementation to common code

2020-08-14 Thread Randy Dunlap
On 8/14/20 2:47 PM, Atish Patra wrote: > diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig > index 8d7001712062..73c2151de194 100644 > --- a/drivers/base/Kconfig > +++ b/drivers/base/Kconfig > @@ -210,4 +210,10 @@ config GENERIC_ARCH_TOPOLOGY > appropriate scaling, sysfs interface

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-14 Thread Thomas Gleixner
Paul, On Fri, Aug 14 2020 at 11:01, Paul E. McKenney wrote: > On Fri, Aug 14, 2020 at 04:06:04PM +0200, Michal Hocko wrote: >> > > > Vlastimil raised same question earlier, i answered, but let me answer >> > > > again: >> > > > >> > > > It is hard to achieve because the logic does not stick to

Protecting usb_set_interface() against device removal

2020-08-14 Thread Guenter Roeck
Hi all, over time, there have been a number of reports of crashes in usb_ifnum_to_if(), called from usb_hcd_alloc_bandwidth, which is in turn called from usb_set_interface(). Examples are [1] [2] [3]. A typical backtrace is: <3>[ 3489.445468] intel_sst_acpi 808622A8:00: sst: Busy wait failed,

Re: [GIT PULL] pwm: Changes for v5.9-rc1

2020-08-14 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 15:03:32 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git > tags/pwm/for-5.9-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/fded09198826b2998242ed2e1a16527849884d3f Thank you! --

Re: [GIT PULL] final round of SCSI updates for the 5.8+ merge window

2020-08-14 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 09:39:36 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-misc has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c9c9735c46f589b9877b7fc00c89ef1b61a31e18 Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] sound fixes for 5.9-rc1

2020-08-14 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 09:54:26 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > tags/sound-fix-5.9-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/87bd8c2b93ae899ecd90a5e0550cdae4260cc4ca Thank you! --

Re: BUG: unable to handle kernel paging request in free_block (5)

2020-08-14 Thread syzbot
syzbot suspects this issue was fixed by commit: commit 1378817486d6860f6a927f573491afe65287abf1 Author: Eric Dumazet Date: Thu May 21 18:29:58 2020 + tipc: block BH before using dst_cache bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1537694a90 start commit:

Re: [PATCH] x86: work around clang IAS bug referencing __force_order

2020-08-14 Thread Nick Desaulniers
On Fri, Aug 14, 2020 at 2:19 PM Sedat Dilek wrote: > > On Fri, Aug 14, 2020 at 7:29 PM Sedat Dilek wrote: > > > > Thanks for the proposal. > > > > I have adapted it to fit my patchset against Linux v5.8. > > > > Both Debian's GCC-10 and a snapshot version of LLVM toolchain > > v11.0.0-rc1+ seems

[PATCH] of/fdt: Remove duplicate check in early_init_dt_scan_memory()

2020-08-14 Thread Qi Zheng
When the value of the first reg is not NULL, there will be two repeated checks. So modify it. Signed-off-by: Qi Zheng --- drivers/of/fdt.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 4602e467ca8b..f54412c00642 100644 ---

Question on 5.4.55 merge into 5.4-rt

2020-08-14 Thread Steven Rostedt
When merging 5.4.55 into 5.4-rt I hit the following conflict: static void flush_backlog(struct work_struct *work) { struct sk_buff *skb, *tmp; struct softnet_data *sd; local_bh_disable(); sd = this_cpu_ptr(_data); local_irq_disable();

Re: [PATCH] acpi/nfit: Use kobj_to_dev() instead

2020-08-14 Thread Verma, Vishal L
On Fri, 2020-08-14 at 17:28 +0200, Rafael J. Wysocki wrote: > On Thu, Aug 13, 2020 at 4:54 AM Wang Qing wrote: > > Use kobj_to_dev() instead of container_of() > > > > Signed-off-by: Wang Qing > > LGTM > > Dan, any objections? Looks good to me - you can add: Acked-by: Vishal Verma > > > ---

Re: [PATCH v4 1/5] of_address: Add bus type match for pci ranges parser

2020-08-14 Thread Rob Herring
On Fri, Aug 14, 2020 at 12:21 PM Marc Zyngier wrote: > > Hi all, > > On 2020-07-28 16:36, Jiaxun Yang wrote: > > So the parser can be used to parse range property of ISA bus. > > > > As they're all using PCI-like method of range property, there is no > > need > > start a new parser. > > > >

[PATCH] ARM: dts: stm32: add display controller node to stm32h743

2020-08-14 Thread Tobias Schramm
The stm32h743 has a display controller. This commit adds it to the device tree. Signed-off-by: Tobias Schramm --- arch/arm/boot/dts/stm32h743.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm32h743.dtsi index

Re: [PATCH v3 00/21] x86/kaslr: Cleanup and small bugfixes

2020-08-14 Thread Arvind Sankar
On Fri, Jul 31, 2020 at 04:33:35PM -0700, Kees Cook wrote: > On Fri, Jul 31, 2020 at 11:21:46AM +0200, Ingo Molnar wrote: > > > > * Arvind Sankar wrote: > > > > > On Tue, Jul 28, 2020 at 06:57:01PM -0400, Arvind Sankar wrote: > > > > v2->v3: > > > > - Fix the first patch: command line size

Re: POC: Alternative solution: Re: [PATCH 0/4] printk: reimplement LOG_CONT handling

2020-08-14 Thread Linus Torvalds
On Thu, Aug 13, 2020 at 4:54 AM Sergey Senozhatsky wrote: > > I think what Linus said a long time ago was that the initial purpose of > pr_cont was > > pr_info("Initialize feature foo..."); > if (init_feature_foo() == 0) > pr_cont("ok\n"); > else >

Re: [PATCH v2] riscv: Setup exception vector for nommu platform

2020-08-14 Thread Palmer Dabbelt
On Thu, 13 Aug 2020 01:49:44 PDT (-0700), a...@brainfault.org wrote: On Thu, Aug 13, 2020 at 9:10 AM Qiu Wenbo wrote: Exception vector is missing on nommu platform and that is an issue. This patch is tested in Sipeed Maix Bit Dev Board. Fixes: 79b1feba5455 ("RISC-V: Setup exception vector

Re: [PATCH v3] i2c: iproc: fix race between client unreg and isr

2020-08-14 Thread Ray Jui
On 8/12/2020 1:06 PM, Wolfram Sang wrote: > On Mon, Aug 10, 2020 at 05:42:40PM -0700, Dhananjay Phadke wrote: >> When i2c client unregisters, synchronize irq before setting >> iproc_i2c->slave to NULL. >> >> (1) disable_irq() >> (2) Mask event enable bits in control reg >> (3) Erase slave

Re: [PATCH] dma-debug: fix debug_dma_assert_idle(), use rcu_read_lock()

2020-08-14 Thread Linus Torvalds
On Thu, Aug 13, 2020 at 10:42 PM Christoph Hellwig wrote: > > The whole thing predates my involvement with the code, but I defintively > think the patch from Hugh is a major improvement. But I would also > have no problem with just removing it entirely. I decided to just do both, since neither

[PATCH] i2c: iproc: Fix checkpatch warnings by using 'BIT' macro

2020-08-14 Thread Ray Jui
Fix additional checkpatch warnings in the iProc I2C driver by using 'BIT' marcro. Reported-by: Wolfram Sang Signed-off-by: Ray Jui --- drivers/i2c/busses/i2c-bcm-iproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-bcm-iproc.c

Re: [PATCH v3 3/7] riscv: Fixup kprobes handler couldn't change pc

2020-08-14 Thread Palmer Dabbelt
On Mon, 13 Jul 2020 16:39:18 PDT (-0700), guo...@kernel.org wrote: From: Guo Ren The "Changing Execution Path" section in the Documentation/kprobes.txt said: Since kprobes can probe into a running kernel code, it can change the register set, including instruction pointer. Signed-off-by: Guo

[PATCH] ARM: dts: stm32: add resets property to spi device nodes on stm32h743

2020-08-14 Thread Tobias Schramm
The stm32 spi driver tries to determine the fifo size of spi devices dynamically. However, if the spi was already configured by the bootloader the fifo size check can become an endless loop, because the driver expects the spi to be in its initial "after device reset" state. The driver does already

Re: [PATCH v3 4/7] riscv: Add kprobes supported

2020-08-14 Thread Palmer Dabbelt
On Mon, 13 Jul 2020 16:39:19 PDT (-0700), guo...@kernel.org wrote: From: Guo Ren This patch enables "kprobe & kretprobe" to work with ftrace interface. It utilized software breakpoint as single-step mechanism. Some instructions which can't be single-step executed must be simulated in kernel

Re: [PATCH 1/2][next] scripts/gdb: add utils.read_ulong()

2020-08-14 Thread Nick Desaulniers
d by the kernel. > --- > > based on next-20200814 > > scripts/gdb/linux/utils.py | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/scripts/gdb/linux/utils.py b/scripts/gdb/linux/utils.py > index ea94221dbd39..ff7c1799d588 100644 > --- a/scripts/gdb/linu

[ANNOUNCE] 5.4.54-rt33

2020-08-14 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 5.4.54-rt33 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v5.4-rt Head SHA1: 8b0dbd94090c0b782f374bb645a93517b6b8d887 Or to build 5.4.54-rt33

Re: [PATCH 0/2][next] update gdb scripts for lockless printk ringbuffer

2020-08-14 Thread Nick Desaulniers
On Fri, Aug 14, 2020 at 2:25 PM John Ogness wrote: > > Hi, > > When we brought in the new lockless printk ringbuffer, we overlooked the gdb > scripts. Here are a set of patches to implement gdb support for the new > ringbuffer. > > John Ogness (2): > scripts/gdb: add utils.read_ulong() >

[PATCH] bluetooth: Set ext scan response only when it exists

2020-08-14 Thread Abhishek Pandit-Subedi
Only set extended scan response only when it exists. Otherwise, clear the scan response data. Per the core spec v5.2, Vol 4, Part E, 7.8.55 If the advertising set is non-scannable and the Host uses this command other than to discard existing data, the Controller shall return the error code

Re: [PATCH] mm : update ra->ra_pages if it's NOT equal to bdi->ra_pages

2020-08-14 Thread Minchan Kim
On Fri, Aug 14, 2020 at 04:19:29AM +0100, Matthew Wilcox wrote: > On Fri, Aug 14, 2020 at 10:45:37AM +0800, Zhaoyang Huang wrote: > > On Fri, Aug 14, 2020 at 10:33 AM Andrew Morton > > wrote: > > > > > > On Fri, 14 Aug 2020 10:20:11 +0800 Zhaoyang Huang > > > wrote: > > > > > > > On Fri, Aug

Re: [PATCH 1/2] [-next] mmc: host: msm: Add optional full power cycle property.

2020-08-14 Thread Konrad Dybcio
As I mentioned in the next email, please ignore this patch. The whole idea is incorrect and does not solve the problem. Konrad

[PATCH] khugepaged: adjust VM_BUG_ON_MM() in __khugepaged_enter()

2020-08-14 Thread Hugh Dickins
syzbot crashes on the VM_BUG_ON_MM(khugepaged_test_exit(mm), mm) in __khugepaged_enter(): yes, when one thread is about to dump core, has set core_state, and is waiting for others, another might do something calling __khugepaged_enter(), which now crashes because I lumped the core_state test

I created a service that shows addition/removal of functions by Git tag

2020-08-14 Thread David Shlemayev
Greetings! My service takes each tag of a repo and runs ctags on it. Then it diffs each version with the next, and presents it in a neat timeline. The code for the indexer and server is available on GitHub (linked in the site). You may see it at the following URL: https://sourcedigger.io/ I

[GIT PULL] Please pull NFS client updates for Linux 5.9

2020-08-14 Thread Trond Myklebust
Hi Linus, The following changes since commit c1326210477ecc06c53221f0005c64419aba30d6: nfs,nfsd: NFSv4.2 extended attribute protocol definitions (2020-07-13 17:20:49 -0400) are available in the Git repository at: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-5.9-1

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-14 Thread Peter Zijlstra
On Fri, Aug 14, 2020 at 01:41:40PM -0700, Paul E. McKenney wrote: > > And that enforces the GFP_NOLOCK allocation mode or some other solution > > unless you make a new rule that calling call_rcu() is forbidden while > > holding zone lock or any other lock which might be nested inside the > >

Re: [GIT pull] irq/urgent for v5.9-rc1

2020-08-14 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 15:58:31 -: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > irq-urgent-2020-08-14 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1d229a65b419cf51a9921d73907f1998a0e14daa Thank you! -- Deet-doot-dot, I

Re: [GIT PULL] OpenRISC updates for v5.9

2020-08-14 Thread pr-tracker-bot
The pull request you sent on Sat, 15 Aug 2020 05:47:59 +0900: > git://github.com/openrisc/linux.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e1d74fbe50c46253de519e772c5c2f431b2b837d Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT pull] timers/core for v5.9-rc1

2020-08-14 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 15:58:33 -: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > timers-core-2020-08-14 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b6b178e38f40f34842b719a8786d346d4cfec5dc Thank you! -- Deet-doot-dot,

Re: [GIT pull] timers/urgent for v5.9-rc1

2020-08-14 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 15:58:34 -: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > timers-urgent-2020-08-14 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b923f1247b72fc100b87792fd2129d026bb10e66 Thank you! --

[RFC/RFT PATCH 6/6] riscv: Add numa support for riscv64 platform

2020-08-14 Thread Atish Patra
Use the generic numa implementation to add NUMA support for RISC-V. This is based on Greentime's patch[1] but modified to use generic NUMA implementation and few more fixes. [1] https://lkml.org/lkml/2020/1/10/233 Co-developed-by: Greentime Hu Signed-off-by: Greentime Hu Signed-off-by: Atish

[RFC/RFT PATCH 5/6] riscv: Add support pte_protnone and pmd_protnone if CONFIG_NUMA_BALANCING

2020-08-14 Thread Atish Patra
From: Greentime Hu These two functions are used to distinguish between PROT_NONENUMA protections and hinting fault protections. Signed-off-by: Greentime Hu --- arch/riscv/include/asm/pgtable.h | 20 1 file changed, 20 insertions(+) diff --git

[RFC/RFT PATCH 3/6] arm64, numa: Move pcibus_to_node definition to generic numa code

2020-08-14 Thread Atish Patra
pcibus_to_node is used only when numa is enabled and does not depend on ISA. Thus, it can be moved the generic numa implementation. Signed-off-by: Atish Patra --- arch/arm64/kernel/pci.c | 10 -- drivers/base/arch_numa.c | 11 +++ 2 files changed, 11 insertions(+), 10

[RFC/RFT PATCH 4/6] riscv: Separate memory init from paging init

2020-08-14 Thread Atish Patra
Currently, we perform some memory init functions in paging init. But, that will be an issue for NUMA support where DT needs to be flattened before numa initialization and memblock_present can only be called after numa initialization. Move memory initialization related functions to a separate

[RFC/RFT PATCH 0/6] Unify NUMA implementation between ARM64 & RISC-V

2020-08-14 Thread Atish Patra
This series attempts to move the ARM64 numa implementation to common code so that RISC-V can leverage that as well instead of reimplementing it again. RISC-V specific bits are based on initial work done by Greentime Hu [1] but modified to reuse the common implementation to avoid duplication. [1]

[RFC/RFT PATCH 1/6] numa: Move numa implementation to common code

2020-08-14 Thread Atish Patra
ARM64 numa implementation is generic enough that RISC-V can reuse that implementation with very minor cosmetic changes. This will help both ARM64 and RISC-V in terms of maintanace and feature improvement Move the numa implementation code to common directory so that both ISAs can reuse this. This

[RFC/RFT PATCH 2/6] arm64, numa: Change the numa init function name to be generic

2020-08-14 Thread Atish Patra
As we are using generic numa implementation code, modify the init function name to indicate that generic implementation. Signed-off-by: Atish Patra --- arch/arm64/mm/init.c | 4 ++-- drivers/base/arch_numa.c | 8 ++-- include/asm-generic/numa.h | 4 ++-- 3 files changed, 10

[PATCH] x86/hotplug: Silence APIC only after all irq's are migrated

2020-08-14 Thread Ashok Raj
When offlining CPU's, fixup_irqs() migrates all interrupts away from the outgoing CPU to an online CPU. Its always possible the device sent an interrupt to the previous CPU destination. Pending interrupt bit in IRR in lapic identifies such interrupts. apic_soft_disable() will not capture any new

Re: [PATCH v2] dynamic debug: allow printing to trace event

2020-08-14 Thread Jason Baron
On 8/14/20 1:15 PM, Steven Rostedt wrote: > On Fri, 14 Aug 2020 15:31:51 +0200 > Vincent Whitchurch wrote: >> index aa9ff9e1c0b3..f599ed21ecc5 100644 >> --- a/include/linux/dynamic_debug.h >> +++ b/include/linux/dynamic_debug.h >> @@ -27,13 +27,16 @@ struct _ddebug { >> * writes commands

[PATCH][next] docs: vmcoreinfo: add lockless printk ringbuffer vmcoreinfo

2020-08-14 Thread John Ogness
ed on next-20200814 .../admin-guide/kdump/vmcoreinfo.rst | 131 ++ 1 file changed, 102 insertions(+), 29 deletions(-) diff --git a/Documentation/admin-guide/kdump/vmcoreinfo.rst b/Documentation/admin-guide/kdump/vmcoreinfo.rst index 2baad0bfb09d..eb116905c31c 100644 --- a/Doc

[PATCH 0/2][next] update gdb scripts for lockless printk ringbuffer

2020-08-14 Thread John Ogness
Hi, When we brought in the new lockless printk ringbuffer, we overlooked the gdb scripts. Here are a set of patches to implement gdb support for the new ringbuffer. John Ogness (2): scripts/gdb: add utils.read_ulong() scripts/gdb: update for lockless printk ringbuffer

[PATCH 1/2][next] scripts/gdb: add utils.read_ulong()

2020-08-14 Thread John Ogness
Add a function for reading unsigned long values, which vary in size depending on the architecture. Signed-off-by: John Ogness --- based on next-20200814 scripts/gdb/linux/utils.py | 7 +++ 1 file changed, 7 insertions(+) diff --git a/scripts/gdb/linux/utils.py b/scripts/gdb/linux

[PATCH 2/2][next] scripts/gdb: update for lockless printk ringbuffer

2020-08-14 Thread John Ogness
d-by: Nick Desaulniers --- based on next-20200814 Documentation/admin-guide/kdump/gdbmacros.txt | 153 -- scripts/gdb/linux/dmesg.py| 139 +++- 2 files changed, 209 insertions(+), 83 deletions(-) diff --git a/Documentation/admin-guide/kdump/gdbmac

Re: [GIT pull] timers/core for v5.9-rc1

2020-08-14 Thread Linus Torvalds
On Fri, Aug 14, 2020 at 9:00 AM Thomas Gleixner wrote: > > please pull the latest timers/core branch from: .. again no diffstat. I think you've borked your scripts. Linus

Re: [RFC PATCH 2/3] mm: Drop use of test_and_set_skip in favor of just setting skip

2020-08-14 Thread Alexander Duyck
On Fri, Aug 14, 2020 at 7:24 AM Alexander Duyck wrote: > > On Fri, Aug 14, 2020 at 12:19 AM Alex Shi wrote: > > > > > > > > 在 2020/8/13 下午12:02, Alexander Duyck 写道: > > > > > > Since we have dropped the late abort case we can drop the code that was > > > clearing the LRU flag and calling

Re: [Freedreno] [PATCH v10 2/5] drm/msm/dp: add displayPort driver support

2020-08-14 Thread Tanmay Shah
On 2020-08-14 10:56, Tanmay Shah wrote: On 2020-08-14 10:12, Dmitry Baryshkov wrote: Hello, On 12/08/2020 07:42, Tanmay Shah wrote: From: Chandan Uddaraju [skipped] + } else if ((dp_parser_check_prefix("ctrl", clk_name) || +

Re: [GIT pull] irq/urgent for v5.9-rc1

2020-08-14 Thread Linus Torvalds
On Fri, Aug 14, 2020 at 9:00 AM Thomas Gleixner wrote: > > Two fixes in the core interrupt code which ensure that all error exits > unlock the descriptor lock. No diffstat? I've pulled it, but please check what went wrong.. Linus

Re: [PATCH RFC 0/2] Break heap spraying needed for exploiting use-after-free

2020-08-14 Thread Alexander Popov
On 13.08.2020 18:19, Alexander Popov wrote: > Hello everyone! Requesting for your comments. > > Use-after-free vulnerabilities in the Linux kernel are very popular for > exploitation. A few examples: > > https://googleprojectzero.blogspot.com/2018/09/a-cache-invalidation-bug-in-linux.html > >

Re: [PATCH v3] kunit: added lockdep support

2020-08-14 Thread Uriel Guajardo
On Fri, Aug 14, 2020 at 3:58 PM Peter Zijlstra wrote: > > On Fri, Aug 14, 2020 at 08:55:27PM +, Uriel Guajardo wrote: > > + > > +void kunit_check_lockdep(struct kunit *test, struct kunit_lockdep > > *lockdep) { > > + int saved_preempt_count = lockdep->preempt_count; > > + bool

Re: [PATCH v3] kunit: added lockdep support

2020-08-14 Thread Peter Zijlstra
On Fri, Aug 14, 2020 at 08:55:27PM +, Uriel Guajardo wrote: > + > +void kunit_check_lockdep(struct kunit *test, struct kunit_lockdep *lockdep) { > + int saved_preempt_count = lockdep->preempt_count; > + bool saved_debug_locks = lockdep->debug_locks; > + > + if

Re: [PATCH] net: qrtr: fix usage of idr in port assignment to socket

2020-08-14 Thread David Miller
From: Necip Fazil Yildiran Date: Fri, 14 Aug 2020 10:10:00 + > diff --git a/net/qrtr/qrtr.c b/net/qrtr/qrtr.c > index b4c0db0b7d31..52d0707df776 100644 > --- a/net/qrtr/qrtr.c > +++ b/net/qrtr/qrtr.c > @@ -693,22 +693,24 @@ static void qrtr_port_remove(struct qrtr_sock *ipc) > static int

[PATCH v3] kunit: added lockdep support

2020-08-14 Thread Uriel Guajardo
From: Uriel Guajardo KUnit will fail tests upon observing a lockdep failure. Because lockdep turns itself off after its first failure, only fail the first test and warn users to not expect any future failures from lockdep. Similar to lib/locking-selftest [1], we check if the status of

[GIT PULL] OpenRISC updates for v5.9

2020-08-14 Thread Stafford Horne
Hi Linus, Please consider for pull: The following changes since commit bcf876870b95592b52519ed4aafcf9d95999bc9c: Linux 5.8 (2020-08-02 14:21:45 -0700) are available in the Git repository at: git://github.com/openrisc/linux.git tags/for-linus for you to fetch changes up to

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.9-2 tag

2020-08-14 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 22:56:04 +1000: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.9-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/7fca4dee610dffbe119714231cac0d59496bc193 Thank you! --

Re: [GIT PULL] xen: branch for v5.9-rc1b

2020-08-14 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 15:39:39 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git > for-linus-5.9-rc1b-tag has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/0520058d0578c2924b1571c16281f873cb4a3d2b Thank you! -- Deet-doot-dot,

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-14 Thread Paul E. McKenney
On Fri, Aug 14, 2020 at 09:33:47PM +0200, Thomas Gleixner wrote: > On Fri, Aug 14 2020 at 11:02, Paul E. McKenney wrote: > > On Fri, Aug 14, 2020 at 07:49:24PM +0200, Peter Zijlstra wrote: > >> On Fri, Aug 14, 2020 at 09:11:06AM -0700, Paul E. McKenney wrote: > >> > Just to make sure we are

Re: [GIT PULL] Crypto Fixes for 5.9

2020-08-14 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 23:18:18 +1000: > git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d9361cb285281563adada9b16708b12053bd6531 Thank you! -- Deet-doot-dot, I am a

Re: [PATCH] regulator: Add support for RT4801 Display Bias regulator driver

2020-08-14 Thread Rob Herring
On Fri, 14 Aug 2020 13:59:33 +0800, cy_huang wrote: > From: ChiYuan Huang > > Adds support for the RT4801 DSV. It has two regulators (DSVP/DSVN) with an I2C > interface. DSVP/DSVN can provide the display panel module for the > positive/negative > voltage range from (+/-)4V to (+/-)6V. > --- >

Re: [GIT PULL] Hyper-V fixes for 5.9-rc1

2020-08-14 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 10:07:51 +: > ssh://g...@gitolite.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git > tags/hyperv-fixes-signed has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/cd94257d7a8103acf136e4bd46e3d0ad698a6f3d Thank you! --

Re: [PATCH 2/2] regulator: rt4801: Add DT binding documentation

2020-08-14 Thread Rob Herring
On Fri, 14 Aug 2020 23:27:04 +0800, cy_huang wrote: > From: ChiYuan Huang > > Add a devicetree binding documentation for the rt4801 regulator driver. > > Signed-off-by: ChiYuan Huang > --- > .../regulator/richtek,rt4801-regulator.yaml| 80 > ++ > 1 file changed,

Re: [PATCH v5 1/2] dt-bindings: dma: Add bindings for intel LGM SOC

2020-08-14 Thread Rob Herring
On Fri, Aug 14, 2020 at 01:26:09PM +0800, Amireddy Mallikarjuna reddy wrote: > Add DT bindings YAML schema for DMA controller driver > of Lightning Mountain(LGM) SoC. > > Signed-off-by: Amireddy Mallikarjuna reddy > > --- > v1: > - Initial version. > > v2: > - Fix bot errors. > > v3: > - No

Re: [PATCH v4 7/7] irqchip: qcom-pdc: Reset all pdc interrupts during init

2020-08-14 Thread Stephen Boyd
Quoting Maulik Shah (2020-08-13 00:30:44) > Hi, > > On 8/12/2020 3:01 AM, Stephen Boyd wrote: > > Quoting Maulik Shah (2020-08-10 04:21:00) > >> Clear previous kernel's configuration during init by resetting > >> interrupts in enable bank to zero. > > Can you please add some more information here

Re: [PATCH 43/44] dt: document HiSilicon SPMI controller and mfd/regulator properties

2020-08-14 Thread Rob Herring
On Wed, 12 Aug 2020 17:56:53 +0200, Mauro Carvalho Chehab wrote: > Add documentation for the properties needed by the HiSilicon > 6421v600 driver, and by the SPMI controller used to access > the chipset. > > Signed-off-by: Mauro Carvalho Chehab > --- > .../mfd/hisilicon,hi6421-spmi-pmic.yaml

Re: [RFC][PATCH v2 2/2] dma-heap: Add a system-uncached heap

2020-08-14 Thread John Stultz
On Fri, Aug 14, 2020 at 9:15 AM Ezequiel Garcia wrote: > Thanks for the patch. > > On Fri, 14 Aug 2020 at 03:25, John Stultz wrote: > > > > This adds a heap that allocates non-contiguous buffers that are > > marked as writecombined, so they are not cached by the CPU. > > > > What's the rationale

Re: [PATCH] mm : sync ra->ra_pages with bdi->ra_pages

2020-08-14 Thread Andrew Morton
On Fri, 14 Aug 2020 17:03:44 +0800 Zhaoyang Huang wrote: > Some system(like android) will turbo read during startup via expanding the > readahead window and then set it back to normal(128kb as usual). However, some > files in the system process context will keep to be opened since it is opened

Re: [PATCH v1 1/2] Bluetooth: btusb: define HCI packet sizes of USB Alts

2020-08-14 Thread Luiz Augusto von Dentz
Hi Joseph, On Thu, Aug 13, 2020 at 1:42 AM Joseph Hwang wrote: > > It is desirable to define the HCI packet payload sizes of > USB alternate settings so that they can be exposed to user > space. > > Reviewed-by: Alain Michaud > Reviewed-by: Abhishek Pandit-Subedi > Signed-off-by: Joseph Hwang

Re: [RFC][PATCH v2 2/2] dma-heap: Add a system-uncached heap

2020-08-14 Thread John Stultz
On Fri, Aug 14, 2020 at 2:17 AM Daniel Vetter wrote: > > On Fri, Aug 14, 2020 at 06:24:58AM +, John Stultz wrote: > > This adds a heap that allocates non-contiguous buffers that are > > marked as writecombined, so they are not cached by the CPU. > > > > This is useful, as most graphics

[PATCH] gpio: stp-xway: automatically drive GPHY leds on ar10 and grx390

2020-08-14 Thread Aleksander Jan Bajkowski
Ar10 (xr300) has 3 and grx390 (xrx330) has 4 built-in GPHY. PHY LEDs are connected via STP. STP is a peripheral controller used to drive external shift register cascades. The hardware is able to allow the GPHY to drive some GPIO of the cascade automatically.This patch allows for this on ar10 and

Re: [PATCH v1 2/2] Bluetooth: sco: expose WBS packet length in socket option

2020-08-14 Thread Luiz Augusto von Dentz
Hi Joseph, On Thu, Aug 13, 2020 at 1:42 AM Joseph Hwang wrote: > > It is desirable to expose the wideband speech packet length via > a socket option to the user space so that the user space can set > the value correctly in configuring the sco connection. > > Reviewed-by: Alain Michaud >

Re: fs/ocfs2/suballoc.c:2430:2-8: preceding lock on line 2413

2020-08-14 Thread Julia Lawall
On Fri, 14 Aug 2020, Thomas Gleixner wrote: > Julia, > > On Fri, Aug 14 2020 at 21:00, Julia Lawall wrote: > > On Fri, 14 Aug 2020, Thomas Gleixner wrote: > >> That's clearly a false positive. Is there anything what can be done to > >> help that cocci script here? > > > > I have a better

Re: [PATCH][V2] of/address: check for invalid range.cpu_addr

2020-08-14 Thread Rob Herring
On Thu, Aug 13, 2020 at 5:43 AM Colin King wrote: > > From: Colin Ian King > > Currently invalid CPU addresses are not being sanity checked resulting in > SATA setup failure on a SynQuacer SC2A11 development machine. The original > check was removed by and earlier commit, so add a sanity check

[PATCH v2 1/1] Drivers: hv: vmbus: Add parsing of VMbus interrupt in ACPI DSDT

2020-08-14 Thread Michael Kelley
On ARM64, Hyper-V now specifies the interrupt to be used by VMbus in the ACPI DSDT. This information is not used on x86 because the interrupt vector must be hardcoded. But update the generic VMbus driver to do the parsing and pass the information to the architecture specific code that sets up

Re: fs/ocfs2/suballoc.c:2430:2-8: preceding lock on line 2413

2020-08-14 Thread Thomas Gleixner
Julia, On Fri, Aug 14 2020 at 21:00, Julia Lawall wrote: > On Fri, 14 Aug 2020, Thomas Gleixner wrote: >> That's clearly a false positive. Is there anything what can be done to >> help that cocci script here? > > I have a better version that needs to get pushed. > > But normally these pass

[GIT PULL] Devicetree fixes for v5.9

2020-08-14 Thread Rob Herring
Linus, Please pull these 2 DT schema clean-ups. I'm doing them in the merge window to avoid possible conflicts. Rob The following changes since commit 7c2a69f610e64c8dec6a06a66e721f4ce1dd783a: Merge tag 'ceph-for-5.9-rc1' of git://github.com/ceph/ceph-client (2020-08-12 12:51:31 -0700)

Re: [PATCH] x86/fsgsbase/64: Fix NULL deref in 86_fsgsbase_read_task

2020-08-14 Thread Jann Horn
On Fri, Aug 14, 2020 at 9:03 PM Andy Lutomirski wrote: > > On Aug 14, 2020, at 11:16 AM, Eric Dumazet wrote: > > > > syzbot found its way in 86_fsgsbase_read_task() [1] > > > > Fix is to make sure ldt pointer is not NULL > > Acked-by: Andy Lutomirski > > Maybe add something like this to the

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-14 Thread Thomas Gleixner
On Fri, Aug 14 2020 at 11:02, Paul E. McKenney wrote: > On Fri, Aug 14, 2020 at 07:49:24PM +0200, Peter Zijlstra wrote: >> On Fri, Aug 14, 2020 at 09:11:06AM -0700, Paul E. McKenney wrote: >> > Just to make sure we are talking about the same thing, please see below >> > for an untested patch that

Re: linux-next: new build warnings after binutils update

2020-08-14 Thread Kees Cook
On Fri, Aug 14, 2020 at 12:22:06PM +0200, Ingo Molnar wrote: > > [0] > > https://lore.kernel.org/lkml/20200731202738.2577854-6-nived...@alum.mit.edu/ > > It all looked good to me but was a bit late for v5.9, will pick up > after -rc1. Excellent! Thank you. I'll base the orphan series on

Re: [PATCH v4 07/20] gpiolib: cdev: support GPIO_V2_GET_LINE_IOCTL and GPIO_V2_LINE_GET_VALUES_IOCTL

2020-08-14 Thread Bartosz Golaszewski
On Fri, Aug 14, 2020 at 5:04 AM Kent Gibson wrote: > > Add support for requesting lines using the GPIO_V2_GET_LINE_IOCTL, and > returning their current values using GPIO_V2_LINE_GET_VALUES_IOCTL. > > Signed-off-by: Kent Gibson > --- Hi Kent, not many comments here, just a couple minor details

Re: [PATCH] Add power/gpu_frequency tracepoint.

2020-08-14 Thread Peiyong Lin
Hi Chris, please see my comments inline. On Fri, Aug 14, 2020 at 8:22 AM Chris Wilson wrote: > > Quoting Peiyong Lin (2020-08-13 22:03:57) > > Historically there is no common trace event for GPU frequency, in > > downstream Android each different hardware vendor implements their own > > way to

Re: [RFC PATCH] vsprintf: Add %pv extension replacement for print_vma_addr

2020-08-14 Thread Joe Perches
On Fri, 2020-08-14 at 14:38 -0400, Steven Rostedt wrote: > On Fri, 14 Aug 2020 10:53:03 -0700 > Joe Perches wrote: > I'm fine with all his, but I feel more comfortable if this patch > created a single copy of the code. Perhaps add: [] > diff --git a/mm/memory.c b/mm/memory.c [] > @@ -4771,32

  1   2   3   4   5   6   7   8   >