Re: [RFC PATCH v3 2/2] mm: remove extra ZONE_DEVICE struct page refcount

2020-10-02 Thread Christoph Hellwig
On Thu, Oct 01, 2020 at 11:17:15AM -0700, Ralph Campbell wrote: > ZONE_DEVICE struct pages have an extra reference count that complicates the > code for put_page() and several places in the kernel that need to check the > reference count to see that a page is not being used (gup, compaction, >

[PATCH v3 1/2] exfat: add exfat_update_inode()

2020-10-02 Thread Tetsuhiro Kohada
Integrate exfat_sync_inode() and mark_inode_dirty() as exfat_update_inode() Also, return the result of _exfat_write_inode () when sync is specified. Signed-off-by: Tetsuhiro Kohada --- Changes in v3 - no change Changes in v2 - no change fs/exfat/exfat_fs.h | 2 +- fs/exfat/file.c | 5

[PATCH v3 2/2] exfat: aggregate dir-entry updates into __exfat_write_inode().

2020-10-02 Thread Tetsuhiro Kohada
The following function writes the updated inode information as dir-entry by themselves. - __exfat_truncate() - exfat_map_cluster() - exfat_find_empty_entry() Aggregate these writes into __exfat_write_inode(). In exfat_map_cluster(), the value obtained from i_size_read() is set to

Re: [PATCH v4 02/11] x86, kfence: enable KFENCE for x86

2020-10-02 Thread Jann Horn
On Tue, Sep 29, 2020 at 3:38 PM Marco Elver wrote: > Add architecture specific implementation details for KFENCE and enable > KFENCE for the x86 architecture. In particular, this implements the > required interface in for setting up the pool and > providing helper functions for protecting and

[PATCH v4 0/3] iommu/tegra-smmu: Add PCI support

2020-10-02 Thread Nicolin Chen
This series is to add PCI support in tegra-smmu driver. Changelog (Detail in each patch) v3->v4 * Dropped helper function * Found another way to get smmu pointer v2->v3 * Replaced with devm_tegra_get_memory_controller * Updated changes by following Dmitry's comments v1->v2 * Added PATCH-1

Re: [PATCH] compat: move strut compat_iovec out of #ifdef CONFIG_COMPAT

2020-10-02 Thread Christoph Hellwig
ping? This is needed to unbreak the work.iov_iter branch that is in for-next. On Mon, Sep 28, 2020 at 06:14:14PM +0200, Christoph Hellwig wrote: > This avoid annoying ifdefs in iov_iter.c > > Signed-off-by: Christoph Hellwig > --- > > This fixes a build failure with the import_iovec /

[PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-02 Thread Nicolin Chen
The bus_set_iommu() in tegra_smmu_probe() enumerates all clients to call in tegra_smmu_probe_device() where each client searches its DT node for smmu pointer and swgroup ID, so as to configure an fwspec. But this requires a valid smmu pointer even before mc and smmu drivers are probed. So in

[PATCH v4 3/3] iommu/tegra-smmu: Add PCI support

2020-10-02 Thread Nicolin Chen
This patch simply adds support for PCI devices. Signed-off-by: Nicolin Chen --- Changelog v3->v4 * Dropped !iommu_present() check * Added CONFIG_PCI check in the exit path v2->v3 * Replaced ternary conditional operator with if-else in .device_group() * Dropped change in tegra_smmu_remove()

[PATCH v4 1/3] iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev

2020-10-02 Thread Nicolin Chen
In tegra_smmu_(de)attach_dev() functions, we poll DTB for each client's iommus property to get swgroup ID in order to prepare "as" and enable smmu. Actually tegra_smmu_configure() prepared an fwspec for each client, and added to the fwspec all swgroup IDs of client DT node in DTB. So this patch

Re: [PATCH v2 RESEND 0/9] Some fixes for spi-s3c64xx

2020-10-02 Thread Krzysztof Kozlowski
On Thu, 1 Oct 2020 at 21:44, Mark Brown wrote: > > On Thu, Oct 01, 2020 at 09:02:57PM +0200, Krzysztof Kozlowski wrote: > > > That is correct. We did not provide final comments on the list so they > > could be added here - in change log. This would also be an explanation > > why there is a

Re: [PATCH v4 04/52] scripts: kernel-doc: make it more compatible with Sphinx 3.x

2020-10-02 Thread Mauro Carvalho Chehab
Em Thu, 1 Oct 2020 15:41:00 -0600 Jonathan Corbet escreveu: > On Wed, 30 Sep 2020 15:24:27 +0200 > Mauro Carvalho Chehab wrote: > > > With Sphinx 3.x, the ".. c:type:" tag was changed to accept either: > > > > .. c:type:: typedef-like declaration > > .. c:type:: name > > > > Using it

Re: [PATCH v3 2/2] Add hardware monitoring driver for Moortec MR75203 PVT controller

2020-10-02 Thread Tanwar, Rahul
Hi Guenter, On 2/10/2020 2:26 am, Guenter Roeck wrote: > On 9/29/20 1:59 AM, Rahul Tanwar wrote: >> 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

Re: WARNING in cfg80211_connect

2020-10-02 Thread Johannes Berg
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 direct I/O and DAX path > LOL! Unlike in many other cases, here I

Re: [PATCH v9 2/8] mtd: rawnand: rockchip: NFC drivers for RK3308, RK2928 and others

2020-10-02 Thread Miquel Raynal
Hi Yifeng, Yifeng Zhao wrote on Tue, 29 Sep 2020 17:08:05 +0800: > This driver supports Rockchip NFC (NAND Flash Controller) found on RK3308, > RK2928, RKPX30, RV1108 and other SOCs. The driver has been tested using > 8-bit NAND interface on the ARM based RK3308 platform. > > Support Rockchip

Re: [PATCH] arm64: dts: zynqmp: Fix pcie ranges description

2020-10-02 Thread Michal Simek
Hi Laurent, On 02. 10. 20 4:02, Laurent Pinchart wrote: > Hi Michal, > > Thank you for the patch. > > On Tue, Sep 29, 2020 at 01:43:22PM +0200, Michal Simek wrote: >> DT schema is checking tuples which should be properly separated. The patch >> is doing this separation to avoid the following

Re: linux-next: Tree for Oct 1 (drivers/mfd/simple-mfd-i2c.o)

2020-10-02 Thread Lee Jones
On Thu, 01 Oct 2020, Randy Dunlap wrote: > On 10/1/20 4:39 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20200930: > > > > on x86_64: > > ld: drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_probe': > simple-mfd-i2c.c:(.text+0x48): undefined reference to

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

2020-10-02 Thread Jann Horn
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-bounds access errors. > > KFENCE is designed to be enabled in

[tip:x86/platform] BUILD SUCCESS a0947081af2ac9549e6ba19877456730713bde23

2020-10-02 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/platform branch HEAD: a0947081af2ac9549e6ba19877456730713bde23 x86/uv/time: Use a flexible array in struct uv_rtc_timer_head elapsed time: 722m configs tested: 115 configs skipped: 62 The following configs have

[PATCH v2] scsi: ufs: fix missing brace warning for old compilers

2020-10-02 Thread Pujin Shi
For older versions of gcc, the array = {0}; will cause warnings: drivers/scsi/ufs/ufshcd-crypto.c: In function 'ufshcd_crypto_keyslot_program': drivers/scsi/ufs/ufshcd-crypto.c:62:8: warning: missing braces around initializer [-Wmissing-braces] union ufs_crypto_cfg_entry cfg = { 0 }; ^

Re: linux-next: Tree for Oct 1 (drivers/mfd/simple-mfd-i2c.o)

2020-10-02 Thread Randy Dunlap
On 10/1/20 11:32 PM, Lee Jones wrote: > On Thu, 01 Oct 2020, Randy Dunlap wrote: > >> On 10/1/20 4:39 AM, Stephen Rothwell wrote: >>> Hi all, >>> >>> Changes since 20200930: >>> >> >> on x86_64: >> >> ld: drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_probe': >>

Re: [PATCH 0/5] Speed up mremap on large regions

2020-10-02 Thread Lokesh Gidra
On Thu, Oct 1, 2020 at 10:36 PM Kirill A. Shutemov wrote: > > On Thu, Oct 01, 2020 at 05:09:02PM -0700, Lokesh Gidra wrote: > > On Thu, Oct 1, 2020 at 9:00 AM Kalesh Singh wrote: > > > > > > On Thu, Oct 1, 2020 at 8:27 AM Kirill A. Shutemov > > > wrote: > > > > > > > > On Wed, Sep 30, 2020 at

Re: [PATCH][next] crypto: sun8i-ss@: fix memory leak on pointer d

2020-10-02 Thread Herbert Xu
On Tue, Sep 29, 2020 at 02:38:19PM +0100, Colin King wrote: > From: Colin Ian King > > Currently the error return path on a failed dma_mapping_error call > is not kfree'ing memory allocated to d. Add an extra error exit label > to end of the function where the kfree and return occurs to fix this

Re: [PATCH blk-next 1/2] blk-mq-rdma: Delete not-used multi-queue RDMA map queue code

2020-10-02 Thread Christoph Hellwig
On Tue, Sep 29, 2020 at 11:24:49AM -0700, Sagi Grimberg wrote: > Yes, basically usage of managed affinity caused people to report > regressions not being able to change irq affinity from procfs. Well, why would they change it? The whole point of the infrastructure is that there is a single sane

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

2020-10-02 Thread John Hubbard
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. The posted patch [1] does seem to have it as

Re: [PATCH v4 03/11] arm64, kfence: enable KFENCE for ARM64

2020-10-02 Thread Jann Horn
On Tue, Sep 29, 2020 at 3:38 PM Marco Elver wrote: > Add architecture specific implementation details for KFENCE and enable > KFENCE for the arm64 architecture. In particular, this implements the > required interface in . Currently, the arm64 version does > not yet use a statically allocated

get_cycles from modular code in jitterentropy, was Re: [PATCH] clocksource: clint: Export clint_time_val for modules

2020-10-02 Thread Christoph Hellwig
On Tue, Sep 29, 2020 at 11:56:18PM -0700, Palmer Dabbelt wrote: > clint_time_val will soon be used by the RISC-V implementation of > random_get_entropy(), which is a static inline function that may be used by > modules (at least CRYPTO_JITTERENTROPY=m). At very least this needs to be an

Re: [PATCH 2/2] PM/hibernate: remove the bogus call to get_gendisk in software_resume

2020-10-02 Thread Christoph Hellwig
On Wed, Sep 30, 2020 at 05:45:27PM +0200, Rafael J. Wysocki wrote: > On Fri, Sep 25, 2020 at 6:15 PM Christoph Hellwig wrote: > > > > get_gendisk grabs a reference on the disk and file operation, so this > > code will leak both of them while having absolutely no use for the > > gendisk itself. >

Re: linux-next: Tree for Oct 1 (drivers/mfd/simple-mfd-i2c.o)

2020-10-02 Thread Lee Jones
On Thu, 01 Oct 2020, Randy Dunlap wrote: > On 10/1/20 11:32 PM, Lee Jones wrote: > > On Thu, 01 Oct 2020, Randy Dunlap wrote: > > > >> On 10/1/20 4:39 AM, Stephen Rothwell wrote: > >>> Hi all, > >>> > >>> Changes since 20200930: > >>> > >> > >> on x86_64: > >> > >> ld:

Re: [PATCH v4 00/52] Fix html build with Sphinx 3.1 and above

2020-10-02 Thread Mauro Carvalho Chehab
Em Thu, 1 Oct 2020 15:48:54 -0600 Jonathan Corbet escreveu: > On Wed, 30 Sep 2020 15:24:23 +0200 > Mauro Carvalho Chehab wrote: > > > This series add proper support for Sphinx 3.1 and above for building the > > html docs. > > > > This series comes after the one I wrote fixing the warnings.

Re: [PATCH v4 0/9] Update to zstd-1.4.6

2020-10-02 Thread Christoph Hellwig
On Wed, Sep 30, 2020 at 08:05:45PM +, Nick Terrell wrote: > > > > On Sep 29, 2020, at 11:53 PM, Christoph Hellwig wrote: > > > > As you keep resend this I keep retelling you that should not do it. > > Please provide a proper Linux API, and switch to that. Versioned APIs > > have

Re: get_cycles from modular code in jitterentropy, was Re: [PATCH] clocksource: clint: Export clint_time_val for modules

2020-10-02 Thread Stephan Mueller
Am Freitag, 2. Oktober 2020, 08:49:05 CEST schrieb Christoph Hellwig: Hi Christoph, > On Tue, Sep 29, 2020 at 11:56:18PM -0700, Palmer Dabbelt wrote: > > clint_time_val will soon be used by the RISC-V implementation of > > random_get_entropy(), which is a static inline function that may be used

Re: [GIT PULL][PATCH v4 0/9] Update to zstd-1.4.6

2020-10-02 Thread Christoph Hellwig
On Thu, Oct 01, 2020 at 06:35:34PM +, Nick Terrell wrote: > I???m open to suggestions on how to get a zstd update done better. I don???t > know of any way to break this patch up into smaller patches that all compile. > The code is all generated directly from upstream and modified to work in

Re: [PATCH tip/core/rcu 14/15] rcu/tree: Allocate a page when caller is preemptible

2020-10-02 Thread Michal Hocko
On Thu 01-10-20 09:27:09, Paul E. McKenney wrote: [...] > commit ea5c19d21233b5e8d3d06c0d4ecd6be9f2829dc3 > Author: Paul E. McKenney > Date: Thu Oct 1 09:24:40 2020 -0700 > > kvfree_rcu: Use __GFP_NOMEMALLOC for single-argument kvfree_rcu() > > This commit applies the

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

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: > >

[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

[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 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 ---

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

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: [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][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

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] 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

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 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

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

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

[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

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

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

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

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 >

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.

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")

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

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

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

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

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

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

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

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

[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

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. > > === == >

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] 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"

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: > > >

[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:

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

[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

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

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] 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,

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]

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, > *

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

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()

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

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

Re: [perf report] 977f739b71: perf-test.skid_test.round2.MEM_LOAD_L3_MISS_RETIRED.LOCAL_DRAM_dtlb_withou t_NMI_fixed_period.fail

2020-10-02 Thread Chen, Rong A
On 9/30/2020 8:41 PM, Michael Petlan wrote: Hello. To me, it looks rather a random failure. Is it actually reproducible and proven that the patch has caused it? The patch doesn't seem to cause the fails below. Hi Michael, It's not always reproducible, but we can reproduce it in most cases:

Re: [PATCH v2 2/3] firmware: Keem Bay: Add support for Arm Trusted Firmware Service call

2020-10-02 Thread Michal Simek
Hi Sudeep, On 01. 10. 20 17:35, Sudeep Holla wrote: > On Thu, Oct 01, 2020 at 10:21:48PM +0800, muhammad.husaini.zulki...@intel.com > wrote: >> From: Muhammad Husaini Zulkifli >> >> Add generic firmware driver for Keem Bay SOC to support >> Arm Trusted Firmware Services call. >> >>

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

2020-10-02 Thread John Hubbard
On 10/2/20 1:10 AM, John Hubbard wrote: 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

Re: [PATCH v2 1/2] system_data_types.7: Add 'void *'

2020-10-02 Thread Alejandro Colomar
Hi Paul, On 2020-10-01 19:32, Paul Eggert wrote: > If you're going to document this at all, I suggest documenting 'void' as > well as 'void *', and putting both sets of documentation into the same > man page. > All the types we're documenting are in the same page: system_data_types(7). And then

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

2020-10-02 Thread Alexandru Ardelean
This change inverts/reworks the logic to use an external reference via a provided regulator. Now the driver tries to obtain a regulator. If one is found, then it is used. The rest of the driver logic already checks if there is a non-NULL reference to a regulator, so it should be fine.

[PATCH v10 1/7] net: introduce helper sendpage_ok() in include/linux/net.h

2020-10-02 Thread Coly Li
The original problem was from nvme-over-tcp code, who mistakenly uses kernel_sendpage() to send pages allocated by __get_free_pages() without __GFP_COMP flag. Such pages don't have refcount (page_count is 0) on tail pages, sending them by kernel_sendpage() may trigger a kernel panic from a

[PATCH v10 5/7] drbd: code cleanup by using sendpage_ok() to check page for kernel_sendpage()

2020-10-02 Thread Coly Li
In _drbd_send_page() a page is checked by following code before sending it by kernel_sendpage(), (page_count(page) < 1) || PageSlab(page) If the check is true, this page won't be send by kernel_sendpage() and handled by sock_no_sendpage(). This kind of check is exactly what macro

[PATCH v10 2/7] net: add WARN_ONCE in kernel_sendpage() for improper zero-copy send

2020-10-02 Thread Coly Li
If a page sent into kernel_sendpage() is a slab page or it doesn't have ref_count, this page is improper to send by the zero copy sendpage() method. Otherwise such page might be unexpected released in network code path and causes impredictable panic due to kernel memory management data structure

[PATCH v10 0/7] Introduce sendpage_ok() to detect misused sendpage in network related drivers

2020-10-02 Thread Coly Li
As Sagi Grimberg suggested, the original fix is refind to a more common inline routine: static inline bool sendpage_ok(struct page *page) { return (!PageSlab(page) && page_count(page) >= 1); } If sendpage_ok() returns true, the checking page can be handled by the concrete

[PATCH v10 3/7] nvme-tcp: check page by sendpage_ok() before calling kernel_sendpage()

2020-10-02 Thread Coly Li
Currently nvme_tcp_try_send_data() doesn't use kernel_sendpage() to send slab pages. But for pages allocated by __get_free_pages() without __GFP_COMP, which also have refcount as 0, they are still sent by kernel_sendpage() to remote end, this is problematic. The new introduced helper

[PATCH v10 7/7] libceph: use sendpage_ok() in ceph_tcp_sendpage()

2020-10-02 Thread Coly Li
In libceph, ceph_tcp_sendpage() does the following checks before handle the page by network layer's zero copy sendpage method, if (page_count(page) >= 1 && !PageSlab(page)) This check is exactly what sendpage_ok() does. This patch replace the open coded checks by sendpage_ok() as a code

[PATCH v10 4/7] tcp: use sendpage_ok() to detect misused .sendpage

2020-10-02 Thread Coly Li
commit a10674bf2406 ("tcp: detecting the misuse of .sendpage for Slab objects") adds the checks for Slab pages, but the pages don't have page_count are still missing from the check. Network layer's sendpage method is not designed to send page_count 0 pages neither, therefore both PageSlab() and

[PATCH v10 6/7] scsi: libiscsi: use sendpage_ok() in iscsi_tcp_segment_map()

2020-10-02 Thread Coly Li
In iscsci driver, iscsi_tcp_segment_map() uses the following code to check whether the page should or not be handled by sendpage: if (!recv && page_count(sg_page(sg)) >= 1 && !PageSlab(sg_page(sg))) The "page_count(sg_page(sg)) >= 1 && !PageSlab(sg_page(sg)" part is to make sure the page can

Re: [PATCH v9 0/7] Introduce sendpage_ok() to detect misused sendpage in network related drivers

2020-10-02 Thread Coly Li
On 2020/10/2 03:48, David Miller wrote: > From: David Miller > Date: Thu, 01 Oct 2020 12:43:45 -0700 (PDT) > >> Series applied and queued up for -stable, thank you. > > Actually, this doesn't even build: > > In file included from ./arch/x86/include/asm/bug.h:93, > from

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

2020-10-02 Thread David Hildenbrand
On 02.10.20 10:10, Michal Hocko wrote: > 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

Re: [RFC PATCH] kthread: do not modify running work

2020-10-02 Thread Thomas Gleixner
On Fri, Oct 02 2020 at 10:34, Hillf Danton wrote: > On Thu, 01 Oct 2020 15:59:38 +0200 Thomas Gleixner wrote: >> On Thu, Oct 01 2020 at 17:51, Hillf Danton wrote: >> Aside of that it's pretty irrelevant whether there is a user at the >> moment which reschedules work from the callback or not. >>

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

2020-10-02 Thread Ahmad Fatoum
Hello, On 10/2/20 10:20 AM, Krzysztof Kozlowski wrote: > 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 1/1] mfd: sl28cpld: Depend on I2C

2020-10-02 Thread Lee Jones
Fixes the following randconfig build error: ld: drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_probe': simple-mfd-i2c.c:(.text+0x48): undefined reference to `__devm_regmap_init_i2c' ld: drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_driver_init':

  1   2   3   4   5   6   7   8   9   10   >