Re: [PATCH] KVM: arm64: Pass level hint to TLBI during stage-2 permission fault

2020-10-02 Thread Marc Zyngier
On Wed, 30 Sep 2020 14:18:01 +0100, Will Deacon wrote: > Alex pointed out that we don't pass a level hint to the TLBI instruction > when handling a stage-2 permission fault, even though the walker does > at some point have the level information in its hands. > > Rework stage2_update_leaf_attrs() s

Re: [PATCH] KVM: arm64: Ensure user_mem_abort() return value is initialised

2020-10-02 Thread Marc Zyngier
On Wed, 30 Sep 2020 11:24:42 +0100, Will Deacon wrote: > If a change in the MMU notifier sequence number forces user_mem_abort() > to return early when attempting to handle a stage-2 fault, we return > uninitialised stack to kvm_handle_guest_abort(), which could potentially > result in the injectio

Re: [PATCH v2 08/12] ARM: dts: imx6dl-pico: fix board compatibles

2020-10-02 Thread Krzysztof Kozlowski
On Fri, Oct 02, 2020 at 09:41:28AM +0200, Ahmad Fatoum wrote: > Hello, > > On 10/1/20 12:37 PM, Krzysztof Kozlowski wrote: > >> The existing binding doesn't cover these boards then and needs to be > >> extended, no? How about following patch? > > > > What do you mean it doesn't cover? It was adde

Re: [PATCH 0/6] Fix new html build warnings from next-20201001

2020-10-02 Thread Marc Zyngier
On Fri, 2 Oct 2020 07:49:44 +0200, Mauro Carvalho Chehab wrote: > There are some new warnings when building the documentation from > yesterday's linux next. This small series fix them. > > - patch 1 documents two new kernel-doc parameters on a net core file. > I used the commit log in order to h

Re: [PATCH v4 00/10] Independent per-CPU data section for nVHE

2020-10-02 Thread Marc Zyngier
On Tue, 22 Sep 2020 21:49:00 +0100, David Brazdil wrote: > Introduce '.hyp.data..percpu' as part of ongoing effort to make nVHE > hyp code self-contained and independent of the rest of the kernel. > > Main benefits: > * independent nVHE per-CPU data section that can be unmapped from host, > * mo

Re: [RFC PATCH 6/7] dt-bindings: arm: Add virtio transport for SCMI

2020-10-02 Thread Peter Hilber
On 23.09.20 22:54, Rob Herring wrote: > On Fri, Sep 18, 2020 at 06:55:58PM +0200, Peter Hilber wrote: >> From: Igor Skalkin >> >> Document the properties for arm,scmi-virtio compatible nodes. The >> backing virtio SCMI device is described in patch [1]. >> >> [1] https://lists.oasis-open.org/archiv

Re: [PATCH] iio: adc: ad7887: invert/rework external ref logic

2020-10-02 Thread Alexandru Ardelean
On Fri, Oct 2, 2020 at 1:47 AM kernel test robot wrote: > > Hi Alexandru, > > I love your patch! Yet something to improve: > > [auto build test ERROR on iio/togreg] > [also build test ERROR on linux/master linus/master v5.9-rc7 next-20201001] > [If your patch is applied to the wrong git tree, kind

Re: [RFC PATCH v2 00/30] 1GB PUD THP support on x86_64

2020-10-02 Thread Michal Hocko
On Fri 02-10-20 09:50:02, David Hildenbrand wrote: > >>> - huge page sizes controllable by the userspace? > >> > >> It might be good to allow advanced users to choose the page sizes, so they > >> have better control of their applications. > > > > Could you elaborate more? Those advanced users can

Re: [PATCH] selftests/vm: fix: make check_config.sh executable

2020-10-02 Thread John Hubbard
On 10/2/20 12:59 AM, Stephen Rothwell wrote: Hi John, On Thu, 1 Oct 2020 23:48:11 -0700 John Hubbard wrote: commit 30fb9454ab23 ("selftests/vm: hmm-tests: remove the libhugetlbfs dependency") created the new check_config.sh file without the execute bits set. This is a problem because the Make

[PATCH 1/1] selftests/vm: 8x compaction_test speedup

2020-10-02 Thread John Hubbard
This patch reduces the running time for compaction_test from about 27 sec, to 3.3 sec, which is about an 8x speedup. These numbers are for an Intel x86_64 system with 32 GB of DRAM. The compaction_test.c program was spending most of its time doing mmap(), 1 MB at a time, on about 25 GB of memory.

Re: [RFC-PATCH 2/4] mm: Add __rcu_alloc_page_lockless() func.

2020-10-02 Thread Mel Gorman
On Thu, Oct 01, 2020 at 09:26:26PM +0200, Uladzislau Rezki wrote: > > > > No, I meant going back to idea of new gfp flag, but adjust the > > implementation in > > the allocator (different from what you posted in previous version) so that > > it > > only looks at the flag after it tries to alloca

[PATCH 0/1] selftests/vm: 8x compaction_test speedup

2020-10-02 Thread John Hubbard
Hi, Maybe this should really be an RFC, given that I don't fully understand why the compaction_test.c program was mmap'ing 1 MB at a time. So apologies in advance if I've mucked up something important, but if so, maybe we can still find a way to get this fixed up to something better. Anyway: ther

Re: [PATCH 1/3] i2c: imx: Fix reset of I2SR_IAL flag

2020-10-02 Thread Christian Eggers
Hi Uwe, On Friday, 25 September 2020, 10:11:01 CEST, Uwe Kleine-König wrote: > On Thu, Sep 17, 2020 at 04:13:50PM +0200, Christian Eggers wrote: > > On Thursday, 17 September 2020, 16:02:35 CEST, Uwe Kleine-König wrote: > > > On Thu, Sep 17, 2020 at 02:20:27PM +0200, Christian Eggers wrote: > > >

Re: [PATCH] selftests/vm: fix: make check_config.sh executable

2020-10-02 Thread Stephen Rothwell
Hi John, On Thu, 1 Oct 2020 23:48:11 -0700 John Hubbard wrote: > > commit 30fb9454ab23 ("selftests/vm: hmm-tests: remove the libhugetlbfs > dependency") created the new check_config.sh file without the execute > bits set. This is a problem because the Makefile runs it with "./", so > now "make" i

Re: [PATCH] pwm: sysfs: Set class on pwm devices

2020-10-02 Thread Greg Kroah-Hartman
On Thu, Oct 01, 2020 at 03:50:09PM +0200, Lars Poeschel wrote: > On Thu, Oct 01, 2020 at 01:24:49PM +0200, Greg Kroah-Hartman wrote: > > On Thu, Oct 01, 2020 at 11:05:31AM +0200, Lars Poeschel wrote: > > > On Wed, Sep 30, 2020 at 11:41:46AM +0200, Uwe Kleine-König wrote: > > > > Hello, > > > > > >

Re: [PATCH 2/6] docs: vcpu.rst: fix some build warnings

2020-10-02 Thread Paolo Bonzini
On 02/10/20 07:49, Mauro Carvalho Chehab wrote: > As warned with make htmldocs: > > .../Documentation/virt/kvm/devices/vcpu.rst:70: WARNING: Malformed > table. > Text in column margin in table line 2. > > === == > -

[GIT PULL] MMC/MEMSTICK fixes for v5.9-rc8

2020-10-02 Thread Ulf Hansson
Hi Linus, Here's a PR with an MMC and a MEMSTICK fix, intended for v5.9-rc7. Details about the highlights are as usual found in the signed tag. Please pull this in! Kind regards Ulf Hansson The following changes since commit 14801c624066a55139c2c57963eb1b859d0a316a: mmc: mmc_spi: Fix mmc_sp

Re: [PATCH 4/6] docs: i2c: index.rst: add slave-testunit-backend.rst

2020-10-02 Thread Wolfram Sang
Hi Mauro, > index 8a2ad3845191..9b8df313902c 100644 > --- a/Documentation/i2c/index.rst > +++ b/Documentation/i2c/index.rst > @@ -38,6 +38,7 @@ Debugging > > gpio-fault-injection > i2c-stub > + slave-testunit-backend Yeah, it is missing, but this is the wrong paragraph to add it. For

Re: [PATCH v4 01/11] mm: add Kernel Electric-Fence infrastructure

2020-10-02 Thread Jann Horn
On Fri, Oct 2, 2020 at 8:33 AM Jann Horn wrote: > On Tue, Sep 29, 2020 at 3:38 PM Marco Elver wrote: > > This adds the Kernel Electric-Fence (KFENCE) infrastructure. KFENCE is a > > low-overhead sampling-based memory safety error detector of heap > > use-after-free, invalid-free, and out-of-bound

Re: [PATCH 2/3] drm/msm: add DRM_MSM_GEM_SYNC_CACHE for non-coherent cache maintenance

2020-10-02 Thread Christoph Hellwig
> @@ -8,6 +8,7 @@ > #include > #include > #include > +#include NAK, dma-noncoherent.h is not for driver use. And will in fact go away in 5.10. > > #include > > @@ -808,6 +809,20 @@ int msm_gem_cpu_fini(struct drm_gem_object *obj) > return 0; > } > > +void msm_gem_sync_cache

RE: [PATCH] mtd: spi-nor: Fix 3-or-4 address byte mode logic

2020-10-02 Thread David Laight
From: Bert Vermeulen > Sent: 01 October 2020 23:23 > > On 10/1/20 8:34 AM, Pratyush Yadav wrote: > > So using an address width of 4 here is not necessarily the right thing > > to do. This change would break SMPT parsing for all flashes that use > > 3-byte addressing by default because SMPT parsing

Re: [RFC PATCH v2 00/30] 1GB PUD THP support on x86_64

2020-10-02 Thread David Hildenbrand
>>> - huge page sizes controllable by the userspace? >> >> It might be good to allow advanced users to choose the page sizes, so they >> have better control of their applications. > > Could you elaborate more? Those advanced users can use hugetlb, right? > They get a very good control over page si

Re: WARNING in cfg80211_connect

2020-10-02 Thread Dmitry Vyukov
On Fri, Oct 2, 2020 at 8:27 AM Johannes Berg wrote: > > On Thu, 2020-10-01 at 21:31 -0700, syzbot wrote: > > syzbot has bisected this issue to: > > > > commit 16d4d43595b4780daac8fcea6d042689124cb094 > > Author: Christoph Hellwig > > Date: Wed Jul 20 01:38:55 2016 + > > > > xfs: split d

WARNING:at arch/x86/kvm/vmx/vmx.c:4809 handle_exception_nmi+0x5ab/0x5c0

2020-10-02 Thread Naresh Kamboju
While running kselftest kvm evmcs_test the following kernel warning was noticed on x86_64 running linux next 20201001 kernel. WARNING: CPU: 0 PID: 11202 at /usr/src/kernel/arch/x86/kvm/vmx/vmx.c:4809 handle_exception_nmi+0x5ab/0x5c0 Reported-by: Naresh Kamboju steps to reproduce: # cd /opt/kse

Re: [PATCH v2 08/12] ARM: dts: imx6dl-pico: fix board compatibles

2020-10-02 Thread Ahmad Fatoum
Hello, On 10/1/20 12:37 PM, Krzysztof Kozlowski wrote: >> The existing binding doesn't cover these boards then and needs to be >> extended, no? How about following patch? > > What do you mean it doesn't cover? It was added exactly to handle them: > + - technexion,imx6q-pico-dwarf #

Re: [PATCH 3/6] docs: virt: user_mode_linux_howto_v2.rst: fix a literal block markup

2020-10-02 Thread Anton Ivanov
On 02/10/2020 06:49, Mauro Carvalho Chehab wrote: There's a missing new line for a literal block: .../Documentation/virt/uml/user_mode_linux_howto_v2.rst:682: WARNING: Unexpected indentation. Fixes: 04301bf5b072 ("docs: replace the old User Mode Linux HowTo with a new one") Signed-

Re: [PATCH] selftests/vm: fix: make check_config.sh executable

2020-10-02 Thread John Hubbard
On 10/1/20 11:48 PM, John Hubbard wrote: commit 30fb9454ab23 ("selftests/vm: hmm-tests: remove the libhugetlbfs dependency") created the new check_config.sh file without the execute bits set. This is a problem because the Makefile runs it with "./", so now "make" is failing in that directory. Th

Re: [PATCH] selftests/ftrace: check for do_sys_openat2 in user-memory test

2020-10-02 Thread Masami Hiramatsu
On Thu, 1 Oct 2020 16:40:33 +0100 Colin Ian King wrote: > On 01/10/2020 15:44, Steven Rostedt wrote: > > On Thu, 1 Oct 2020 09:56:41 +0100 > > Colin King wrote: > > > >> From: Colin Ian King > >> > >> More recent libc implementations are now using openat/openat2 system > >> calls so also add

Re: linux-next: manual merge of the net-next tree with the net tree

2020-10-02 Thread Geert Uytterhoeven
Hi Stephen, On Fri, Oct 2, 2020 at 5:02 AM Stephen Rothwell wrote: > Today's linux-next merge of the net-next tree got a conflict in: > > Documentation/devicetree/bindings/net/renesas,ravb.txt > > between commit: > > 307eea32b202 ("dt-bindings: net: renesas,ravb: Add support for r8a774e1 > S

Re: [RFC PATCH v2 00/30] 1GB PUD THP support on x86_64

2020-10-02 Thread Michal Hocko
On Thu 01-10-20 11:14:14, Zi Yan wrote: > On 30 Sep 2020, at 7:55, Michal Hocko wrote: > > > On Mon 28-09-20 13:53:58, Zi Yan wrote: > >> From: Zi Yan > >> > >> Hi all, > >> > >> This patchset adds support for 1GB PUD THP on x86_64. It is on top of > >> v5.9-rc5-mmots-2020-09-18-21-23. It is also

Re: [PATCH 3/3] media: zoran: fix mixed case on vars

2020-10-02 Thread LABBE Corentin
On Thu, Oct 01, 2020 at 11:28:15AM +0200, Mauro Carvalho Chehab wrote: > Use this small script to replace CamelCase and wrong case > on vars: > > > FILES=$(find "$1" -type f|grep -e '.c$' -e '.h$') > CAMEL_VARS=$(cat tags|perl -ne 'print "$1\n" if > (m/^(\w*[A-Z]\w*[a-z]\w*)\s/)') > for i in $CA

Re: [PATCH 2/3] media: zoran: get rid of an unused var

2020-10-02 Thread LABBE Corentin
On Thu, Oct 01, 2020 at 11:28:14AM +0200, Mauro Carvalho Chehab wrote: > The jpeg_error in lowercase is not used anywhere. Drop it. > > Signed-off-by: Mauro Carvalho Chehab > --- > drivers/staging/media/zoran/zoran.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/staging/media/

Re: [PATCH v2] tracepoint: Fix out of sync data passing by static caller

2020-10-02 Thread Peter Zijlstra
On Thu, Oct 01, 2020 at 09:27:57PM -0400, Steven Rostedt wrote: > From: Steven Rostedt (VMware) > > Naresh reported a bug discovered in linux-next that I can reliably > trigger myself. It appears to be a side effect of the static calls. It > happens when going from more than one tracepoint callba

[PATCH v1] dm verity: Add support for signature verification with 2nd keyring

2020-10-02 Thread Mickaël Salaün
From: Mickaël Salaün Add a new DM_VERITY_VERIFY_ROOTHASH_SIG_SECONDARY_KEYRING configuration to enable dm-verity signatures to be verified against the secondary trusted keyring. This allows certificate updates without kernel update and reboot, aligning with module and kernel (kexec) signature ve

Re: [PATCH v2 3/3] tracing: Add support for dynamic strings to synthetic events

2020-10-02 Thread Masami Hiramatsu
Hi Tom, On Wed, 30 Sep 2020 13:40:52 -0500 Tom Zanussi wrote: > Currently, sythetic events only support static string fields such as: > > # echo 'test_latency u64 lat; char somename[32]' > > /sys/kernel/debug/tracing/synthetic_events > > Which is fine, but wastes a lot of space in the event

Re: [PATCH v3] mtd: physmap: Add Baikal-T1 physically mapped ROM support

2020-10-02 Thread Miquel Raynal
On Sun, 2020-09-20 at 11:14:44 UTC, Serge Semin wrote: > Baikal-T1 Boot Controller provides an access to a RO storages, which are > physically mapped into the SoC MMIO space. In particularly there are > Internal ROM embedded into the SoC with a pre-installed firmware, > externally attached SPI flas

Re: [PATCH -next] mtd: vmu-flash: simplify the return expression of probe_maple_vmu

2020-10-02 Thread Miquel Raynal
On Sat, 2020-09-19 at 10:08:54 UTC, Liu Shixin wrote: > Simplify the return expression. > > Signed-off-by: Liu Shixin Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel

Re: [PATCH] mtd/map: fix typoes for struct memcard

2020-10-02 Thread Miquel Raynal
On Tue, 2020-09-22 at 11:28:02 UTC, Bernard Zhao wrote: > Change struct memcard`s element "removeable" -> "removable". > > Signed-off-by: Bernard Zhao Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel

Re: [PATCH] mtd: parsers: bcm63xx: Do not make it modular

2020-10-02 Thread Miquel Raynal
On Tue, 2020-09-29 at 17:27:21 UTC, Florian Fainelli wrote: > With commit 91e81150d388 ("mtd: parsers: bcm63xx: simplify CFE > detection"), we generate a reference to fw_arg3 which is the fourth > firmware/command line argument on MIPS platforms. That symbol is not > exported and would cause a link

Re: [RFC-PATCH 2/4] mm: Add __rcu_alloc_page_lockless() func.

2020-10-02 Thread Michal Hocko
On Thu 01-10-20 21:26:26, Uladzislau Rezki wrote: > > > > No, I meant going back to idea of new gfp flag, but adjust the > > implementation in > > the allocator (different from what you posted in previous version) so that > > it > > only looks at the flag after it tries to allocate from pcplist

Re: [PATCH][next] crypto: sun8i-ss - Fix memory leak in sun8i_ss_prng_generate()

2020-10-02 Thread Corentin Labbe
On Mon, Sep 28, 2020 at 12:59:45PM -0500, Gustavo A. R. Silva wrote: > Set _err_ to the return error code -EFAULT before jumping to the new > label err_d, so resources for _d_ can be released before returning > from function sun8i_ss_prng_generate(). > > Addresses-Coverity-ID: 1497459 ("Resource l

Re: [PATCH] net: qrtr: ns: Protect radix_tree_deref_slot() using rcu read locks

2020-10-02 Thread Manivannan Sadhasivam
Hi Doug, On Thu, Oct 01, 2020 at 03:53:12PM -0700, Doug Anderson wrote: > Hi, > > On Mon, Sep 28, 2020 at 4:15 PM David Miller wrote: > > > > From: Manivannan Sadhasivam > > Date: Sat, 26 Sep 2020 22:26:25 +0530 > > > > > The rcu read locks are needed to avoid potential race condition while > >

Re: [PATCH v4 05/11] mm, kfence: insert KFENCE hooks for SLUB

2020-10-02 Thread Jann Horn
On Tue, Sep 29, 2020 at 3:38 PM Marco Elver wrote: > Inserts KFENCE hooks into the SLUB allocator. [...] > diff --git a/mm/slub.c b/mm/slub.c [...] > @@ -3290,8 +3314,14 @@ int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t > flags, size_t size, > c = this_cpu_ptr(s->cpu_slab); > >

Re: Linux 5.9-rc7 / VmallocTotal wrongly reported | Patch OK

2020-10-02 Thread Bastian Bittorf
On Thu, Oct 01, 2020 at 01:39:31PM -0700, Roman Gushchin wrote: > > # Processor type and features > > # > > # CONFIG_ZONE_DMA is not set > > # CONFIG_SMP is not set > > Yes, here is the deal. > > The SMP-version of __mod_node_page_state() converts a passed value from bytes > to pages, but the non

[PATCH v4 1/2] Add DT bindings schema for PVT controller

2020-10-02 Thread Rahul Tanwar
PVT controller (MR75203) is used to configure & control Moortec embedded analog IP which contains temprature sensor(TS), voltage monitor(VM) & process detector(PD) modules. Add DT bindings schema for PVT controller. Signed-off-by: Rahul Tanwar --- .../devicetree/bindings/hwmon/moortec,mr75203.y

[PATCH v4 2/2] Add hardware monitoring driver for Moortec MR75203 PVT controller

2020-10-02 Thread Rahul Tanwar
PVT controller (MR75203) is used to configure & control Moortec embedded analog IP which contains temprature sensor(TS), voltage monitor(VM) & process detector(PD) modules. Add hardware monitoring driver to support MR75203 PVT controller. Signed-off-by: Rahul Tanwar --- drivers/hwmon/Kconfig |

[PATCH v4 0/2] Add hwmon driver for Moortec PVT controller

2020-10-02 Thread Rahul Tanwar
Patch 1 adds DT bindings schema in YAML format. Patch 2 adds driver for MR75203 PVT controller. v4: - Fix a spelling mistake in comments. - Add return value error checking for all regmap_reads/writes. - Remove unnecessary else statement and a validation check. v3: - Resolve make dt_binding_check

Re: [RFC PATCH 1/1] vmscan: Support multiple kswapd threads per node

2020-10-02 Thread Michal Hocko
On Thu 01-10-20 18:18:10, Sebastiaan Meijer wrote: > (Apologies for messing up the mailing list thread, Gmail had fooled me into > believing that it properly picked up the thread) > > On Thu, 1 Oct 2020 at 14:30, Michal Hocko wrote: > > > > On Wed 30-09-20 21:27:12, Sebastiaan Meijer wrote: > > >

Re: [PATCH] mfd: kempld-core: Mark kempld-acpi_table as __maybe_unused

2020-10-02 Thread Lee Jones
On Thu, 01 Oct 2020, Michael Brunner wrote: > The Intel 0-DAY CI Kernel Test Service reports an unused variable > warning when compiling with clang for PowerPC: > > >> drivers/mfd/kempld-core.c:556:36: warning: unused variable > >> 'kempld_acpi_table' [-Wunused-const-variable] >static const

<    8   9   10   11   12   13