[GIT PULL] xfs: new code for 5.10, part 1

2020-10-14 Thread Darrick J. Wong
Hi Linus, Please pull this first large pile of new stuff for 5.10. The biggest changes are two new features for the ondisk metadata: one to record the sizes of the inode btrees in the AG to increase redundancy checks and to improve mount times; and a second new feature to support timestamps

RE: [PATCH][next] ACPICA: Use fallthrough pseudo-keyword

2020-10-14 Thread Moore, Robert
I'm afraid that the macro does not compile under MSVC: warning C4067: unexpected tokens following preprocessor directive - expected a newline (compiling source file ..\..\source\tools\acpiexec\aetests.c) It looks like "__has_attribute" is not supported. -Original Message- From: Joe

Re: [PATCH 0/2] module: some refactoring in module_sig_check()

2020-10-14 Thread Joe Perches
On Wed, 2020-10-14 at 22:44 +0300, Sergey Shtylyov wrote: > On 10/14/20 11:35 AM, Joe Perches wrote: > > [...] > > > > > Here are 2 patches against the 'modules-next' branch of Jessica Yu's > > > > > 'linux.git' repo. > > > > > I'm doing some little refactoring in module_sig_check()... > > > > >

Re: [PATCH v21 07/12] landlock: Support filesystem access-control

2020-10-14 Thread James Morris
On Wed, 14 Oct 2020, Mickaël Salaün wrote: > > On 14/10/2020 20:52, Mickaël Salaün wrote: > > > > On 14/10/2020 20:07, James Morris wrote: > >> On Thu, 8 Oct 2020, Mickaël Salaün wrote: > >> > >>> +config ARCH_EPHEMERAL_STATES > >>> + def_bool n > >>> + help > >>> + An arch should select this

[PATCH] fs: fix NULL dereference due to data race in prepend_path()

2020-10-14 Thread Andrii Nakryiko
Fix data race in prepend_path() with re-reading mnt->mnt_ns twice without holding the lock. is_mounted() does check for NULL, but is_anon_ns(mnt->mnt_ns) might re-read the pointer again which could be NULL already, if in between reads one of kern_unmount()/kern_unmount_array()/umount_tree() sets

[PATCH RFC 6/8] kasan, arm64: move initialization message

2020-10-14 Thread Andrey Konovalov
Tag-based KASAN modes are initialized with kasan_init_tags() instead of kasan_init() for the generic mode. Move the initialization message for tag-based modes into kasan_init_tags(). Also fix pr_fmt() usage for KASAN code: generic mode doesn't need it, tag-based modes should use "kasan:" instead

[PATCH RFC 7/8] arm64: kasan: Add system_supports_tags helper

2020-10-14 Thread Andrey Konovalov
Add a helper that exposes information about whether the system supports memory tagging to be called in generic code. Signed-off-by: Andrey Konovalov Link: https://linux-review.googlesource.com/id/Ib4b56a42c57c6293df29a0cdfee334c3ca7bdab4 --- arch/arm64/include/asm/memory.h | 1 +

[PATCH RFC 4/8] kasan: unpoison stack only with CONFIG_KASAN_STACK

2020-10-14 Thread Andrey Konovalov
There's a config option CONFIG_KASAN_STACK that has to be enabled for KASAN to use stack instrumentation and perform validity checks for stack variables. There's no need to unpoison stack when CONFIG_KASAN_STACK is not enabled. Only call kasan_unpoison_task_stack[_below]() when CONFIG_KASAN_STACK

[PATCH RFC 8/8] kasan: add and integrate kasan_mode boot param

2020-10-14 Thread Andrey Konovalov
TODO: no meaningful description here yet, please see the cover letter for this RFC series. Signed-off-by: Andrey Konovalov Link: https://linux-review.googlesource.com/id/If7d37003875b2ed3e0935702c8015c223d6416a4 --- mm/kasan/common.c | 69 +-

[PATCH RFC 5/8] kasan: mark kasan_init_tags as __init

2020-10-14 Thread Andrey Konovalov
Similarly to kasan_init() mark kasan_init_tags() as __init. Signed-off-by: Andrey Konovalov Link: https://linux-review.googlesource.com/id/I8792e22f1ca5a703c5e979969147968a99312558 --- include/linux/kasan.h | 4 ++-- mm/kasan/hw_tags.c| 2 +- mm/kasan/sw_tags.c| 2 +- 3 files changed,

[PATCH RFC 1/8] kasan: simplify quarantine_put call

2020-10-14 Thread Andrey Konovalov
Move get_free_info() call into quarantine_put() to simplify the call site. No functional changes. Signed-off-by: Andrey Konovalov Link: https://linux-review.googlesource.com/id/Iab0f04e7ebf8d83247024b7190c67c3c34c7940f --- mm/kasan/common.c | 2 +- mm/kasan/kasan.h | 5 ++---

[PATCH RFC 0/8] kasan: hardware tag-based mode for production use on arm64

2020-10-14 Thread Andrey Konovalov
This patchset is not complete (see particular TODOs in the last patch), and I haven't performed any benchmarking yet, but I would like to start the discussion now and hear people's opinions regarding the questions mentioned below. === Overview This patchset adopts the existing hardware tag-based

[PATCH RFC 2/8] kasan: rename get_alloc/free_info

2020-10-14 Thread Andrey Konovalov
Rename get_alloc_info() and get_free_info() to kasan_get_alloc_meta() and kasan_get_free_meta() to better reflect what those do, and avoid confusion with kasan_set_free_info(). No functional changes. Signed-off-by: Andrey Konovalov Link:

[PATCH RFC 3/8] kasan: introduce set_alloc_info

2020-10-14 Thread Andrey Konovalov
Add set_alloc_info() helper and move kasan_set_track() into it. This will simplify the code for one of the upcoming changes. No functional changes. Signed-off-by: Andrey Konovalov Link: https://linux-review.googlesource.com/id/I0316193cbb4ecc9b87b7c2eee0dd79f8ec908c1a --- mm/kasan/common.c |

[PATCH v2] regmap: mmio: add config option to allow relaxed MMIO accesses

2020-10-14 Thread Adrian Ratiu
On some platforms (eg armv7 due to the CONFIG_ARM_DMA_MEM_BUFFERABLE) MMIO R/W operations always add memory barriers which can increase load, decrease battery life or in general reduce performance unnecessarily on devices which access a lot of configuration registers and where ordering does not

Re: [PATCH] firmware: arm_scmi: Fix duplicate workqueue name

2020-10-14 Thread Sudeep Holla
On Tue, 13 Oct 2020 19:17:37 -0700, Florian Fainelli wrote: > When more than a single SCMI device are present in the system, the > creation of the notification workqueue with the WQ_SYSFS flag will lead > to the following sysfs duplicate node warning: > > [9.259990] sysfs: cannot create

Re: [PATCH] firmware: arm_scmi: fix notifications locking

2020-10-14 Thread Sudeep Holla
On Tue, 13 Oct 2020 14:31:09 +0100, Cristian Marussi wrote: > When a protocol registers its events the notification core takes care to > re-scan the hashtable of pending event handlers and activate all the > possibly existent handlers that refer to any of the events just registered > by the new

Re: Use after free in bcm2835_spi_remove()

2020-10-14 Thread Mark Brown
On Wed, Oct 14, 2020 at 10:40:35PM +0300, Vladimir Oltean wrote: > On Wed, Oct 14, 2020 at 04:09:12PM +0200, Lukas Wunner wrote: > > Apparently the problem is that spi_unregister_controller() drops the > > last ref on the controller, causing it to be freed, and afterwards we > > access the

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

2020-10-14 Thread jaegeuk
Thanks, I fixed it in f2fs-next branch. Thanks, On 10/15, Stephen Rothwell wrote: > Hi all, > > In commit > > e965857201e0 ("f2fs: wait for sysfs kobject removal before freeing > f2fs_sb_info") > > Fixes tag > > Fixes: bf9e697ecd4 ("f2fs: expose features to sysfs entry") > > has these

Re: [PATCH 01/11] firmware: arm_scmi: review protocol registration interface

2020-10-14 Thread Sudeep Holla
On Wed, Oct 14, 2020 at 12:03:45PM -0700, Florian Fainelli wrote: > On 10/14/20 8:05 AM, Cristian Marussi wrote: > > Extend common protocol registration routines and provide some new generic > > protocols' init/deinit helpers that tracks protocols' users and > > automatically > > perform the

Re: [PATCH 11/20] dt-bindings: usb: dwc3: Add synopsys,dwc3 compatible string

2020-10-14 Thread Krzysztof Kozlowski
On Wed, Oct 14, 2020 at 01:13:53PM +0300, Serge Semin wrote: > The DWC USB3 driver and some DTS files like Exynos 5250, Keystone k2e, etc > expects the DWC USB3 DT node to have the compatible string with the > "synopsys" vendor prefix. Let's add the corresponding compatible string to > the

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

2020-10-14 Thread Stephen Rothwell
Hi all, In commit e965857201e0 ("f2fs: wait for sysfs kobject removal before freeing f2fs_sb_info") Fixes tag Fixes: bf9e697ecd4 ("f2fs: expose features to sysfs entry") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 12 (or

Re: [PATCH v39 11/24] x86/sgx: Add SGX enclave driver

2020-10-14 Thread Dave Hansen
On 10/8/20 11:44 PM, Jarkko Sakkinen wrote: >> Why is this so special that you need a subdirectory for a single driver >> with a mere 2 device nodes? Do any other misc drivers have a new >> subdirectory in /dev/ for them? > Absolutely nothing as far as I'm concerned. Should have done that >

Re: [PATCH v2 2/5] docs: automarkup.py: Fix regexes to solve sphinx 3 warnings

2020-10-14 Thread Jonathan Corbet
On Wed, 14 Oct 2020 20:09:10 + Nícolas F. R. A. Prado wrote: > One I had noted down was: > > WARNING: Unparseable C cross-reference: '调用debugfs_rename' > > which I believe occurred in the chinese translation. > > I think the problem is that in chinese there normally isn't space between

kernel panic: Fatal exception (3)

2020-10-14 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c77fb07f Merge branch 'netlink-export-policy-on-validation.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=1722ff0050 kernel config: https://syzkaller.appspot.com/x/.config?x=fa2bf4058104211

Re: [PATCH v2 2/5] docs: automarkup.py: Fix regexes to solve sphinx 3 warnings

2020-10-14 Thread Nícolas F . R . A . Prado
On Wed Oct 14, 2020 at 4:11 PM -03, Jonathan Corbet wrote: > > On Tue, 13 Oct 2020 23:13:17 + > Nícolas F. R. A. Prado wrote: > > > The warnings were caused by the expressions matching words in the > > translated versions of the documentation, since any unicode character > > was matched. > >

Re: [RFC PATCH] mm: memcg/slab: Stop reparented obj_cgroups from charging root

2020-10-14 Thread Roman Gushchin
Hi Richard! > SLAB objects which outlive their memcg are moved to their parent > memcg where they may be uncharged. However if they are moved to the > root memcg, uncharging will result in negative page counter values as > root has no page counters. > > To prevent this, we check whether we are

Re: [PATCH 20/20] arch: dts: Fix DWC USB3 DT nodes name

2020-10-14 Thread Krzysztof Kozlowski
On Wed, 14 Oct 2020 at 19:16, Serge Semin wrote: > > On Wed, Oct 14, 2020 at 12:33:25PM +0200, Krzysztof Kozlowski wrote: > > On Wed, 14 Oct 2020 at 12:23, Serge Semin > > wrote: > > > > > > In accordance with the DWC USB3 bindings the corresponding node name is > > > suppose to comply with

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-10-14 Thread Vitor Massaru Iha
On Wed, Oct 14, 2020 at 5:00 PM Peter Zijlstra wrote: > > On Wed, Oct 14, 2020 at 11:16:10AM -0700, Ian Rogers wrote: > > > There were some issues in the original patch, they should be easy to > > fix. I'm more concerned that Peter's issues are addressed about the > > general direction of the

[PATCH v4 2/2] arm64: dts: rockchip: Add basic support for Kobol's Helios64

2020-10-14 Thread Uwe Kleine-König
The hardware is described in detail on Kobol's wiki at https://wiki.kobol.io/helios64/intro/. Up to now the following peripherals are working: - UART - Micro-SD card - eMMC - ethernet port 1 - status LED - temperature sensor on i2c bus 2 Signed-off-by: Uwe Kleine-König ---

[PATCH v4 1/2] dt-bindings: vendor-prefixes: Add kobol prefix

2020-10-14 Thread Uwe Kleine-König
The prefix is already used in arm/armada-388-helios4.dts. Signed-off-by: Uwe Kleine-König --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml

[PATCH v4 0/2] arm64: Add basic support for Kobol's Helios64

2020-10-14 Thread Uwe Kleine-König
Hello, in v3 Johan still found some inconsistencies in how I sorted (or didn't sort) the device tree properties. The rules I applied now are: at the beginning of a node: compatible, reg and interrupt stuff status and #* at the end i2c-scl-rising-time-ns before

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-10-14 Thread Peter Zijlstra
On Wed, Oct 14, 2020 at 11:16:10AM -0700, Ian Rogers wrote: > There were some issues in the original patch, they should be easy to > fix. I'm more concerned that Peter's issues are addressed about the > general direction of the patch, verbosity and testing frameworks. I > see Vitor followed up

Re: WARN_ONCE triggered: tpm_tis: Add a check for invalid status

2020-10-14 Thread Dirk Gouders
James Bottomley writes: > On Wed, 2020-10-14 at 19:57 +0200, Dirk Gouders wrote: >> On my laptop the check introduced with 55707d531af62b (tpm_tis: Add a >> check for invalid status) triggered the warning (output below). >> >> So, my laptop seems to be a candidate for testing. > > I'm afraid

Re: [PATCH 5/8] x86/clear_page: add clear_page_uncached()

2020-10-14 Thread Borislav Petkov
On Wed, Oct 14, 2020 at 08:45:37AM -0700, Andy Lutomirski wrote: > On Wed, Oct 14, 2020 at 1:33 AM Ankur Arora wrote: > > > > Define clear_page_uncached() as an alternative_call() to clear_page_nt() > > if the CPU sets X86_FEATURE_NT_GOOD and fallback to clear_page() if it > > doesn't. > > > >

Re: [PATCH 4/8] x86/asm: add clear_page_nt()

2020-10-14 Thread Borislav Petkov
On Wed, Oct 14, 2020 at 01:32:55AM -0700, Ankur Arora wrote: > This can potentially improve page-clearing bandwidth (see below for > performance numbers for two microarchitectures where it helps and one > where it doesn't) and can help indirectly by consuming less cache > resources. > > Any

[PATCH 4/2] sched/cpupri: Add CPUPRI_HIGHER

2020-10-14 Thread Peter Zijlstra
Add CPUPRI_HIGHER above the RT99 priority to denote the CPU is in use by higher priority tasks (specifically deadline). XXX: we should probably drive PUSH-PULL from cpupri, that would automagically result in an RT-PUSH when DL sets cpupri to CPUPRI_HIGHER. Signed-off-by: Peter Zijlstra (Intel)

[PATCH 3/2] sched/cpupri: Remap CPUPRI_NORMAL to MAX_RT_PRIO-1

2020-10-14 Thread Peter Zijlstra
This makes the mapping continuous and frees up 100 for other usage. Prev mapping: p->rt_priority p->prio newpri cpupri -1 -1 (CPUPRI_INVALID) 1000 (CPUPRI_NORMAL) 198 981

Re: LPC 2020 Hackroom Session: summary and next steps for isolated user namespaces

2020-10-14 Thread Eric W. Biederman
"Serge E. Hallyn" writes: > On Mon, Oct 12, 2020 at 12:01:09AM -0500, Eric W. Biederman wrote: >> Andy Lutomirski writes: >> >> > On Sun, Oct 11, 2020 at 1:53 PM Josh Triplett >> > wrote: >> >> >> >> On Fri, Oct 09, 2020 at 11:26:06PM -0500, Serge E. Hallyn wrote: >> >> > > 3. Find a way to

Re: [PATCH 0/2] sched/cpupri: Cleanup cpu priority vector handling

2020-10-14 Thread Peter Zijlstra
On Tue, Sep 22, 2020 at 10:39:32AM +0200, Dietmar Eggemann wrote: > Two of the 102 elements of the cpu priority vector, among them the one > for MAX_PRIO (140) representing the IDLE task, are never used. > > Remove them and adapt the cpupri implementation accordingly. > > Dietmar Eggemann (2): >

Re: [PATCH 0/2] module: some refactoring in module_sig_check()

2020-10-14 Thread Sergey Shtylyov
On 10/14/20 11:35 AM, Joe Perches wrote: [...] Here are 2 patches against the 'modules-next' branch of Jessica Yu's 'linux.git' repo. I'm doing some little refactoring in module_sig_check()... [1/2] module: merge repetitive strings in module_sig_check() [2/2]

Re: Use after free in bcm2835_spi_remove()

2020-10-14 Thread Vladimir Oltean
On Wed, Oct 14, 2020 at 04:09:12PM +0200, Lukas Wunner wrote: > Apparently the problem is that spi_unregister_controller() drops the > last ref on the controller, causing it to be freed, and afterwards we > access the controller's private data, which is part of the same > allocation as struct

[RFC PATCH 0/3] Fix errors on DT overlay removal with devlinks

2020-10-14 Thread Michael Auchter
After updating to v5.9, I've started seeing errors in the kernel log when using device tree overlays. Specifically, the problem seems to happen when removing a device tree overlay that contains two devices with some dependency between them (e.g., a device that provides a clock and a device that

[RFC PATCH 3/3] of: dynamic: add device links barrier before detach

2020-10-14 Thread Michael Auchter
Signed-off-by: Michael Auchter --- drivers/of/dynamic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c index 7478bfc8d440..a4e2881524e9 100644 --- a/drivers/of/dynamic.c +++ b/drivers/of/dynamic.c @@ -14,6 +14,7 @@ #include #include

[RFC PATCH 1/3] of: unittest: add test of overlay with devlinks

2020-10-14 Thread Michael Auchter
This adds a unittest to test applying/reverting an overlay that contains a link between two devices. Signed-off-by: Michael Auchter --- drivers/of/unittest-data/Makefile | 1 + drivers/of/unittest-data/overlay_16.dts | 26 + drivers/of/unittest.c

[RFC PATCH 2/3] driver core: add device_links_barrier

2020-10-14 Thread Michael Auchter
Add a barrier to wait for all device_links SRCU sections to complete. Signed-off-by: Michael Auchter --- drivers/base/core.c| 10 ++ include/linux/device.h | 1 + 2 files changed, 11 insertions(+) diff --git a/drivers/base/core.c b/drivers/base/core.c index

Re: [PATCH nf v2] netfilter: conntrack: connection timeout after re-register

2020-10-14 Thread Florian Westphal
Francesco Ruggeri wrote: > On Wed, Oct 14, 2020 at 1:23 AM Florian Westphal wrote: > > > > Pablo Neira Ayuso wrote: > > > Legacy would still be flawed though. > > > > Its fine too, new rule blob gets handled (and match/target checkentry > > called) before old one is dismantled. > > > > We only

Re: [SUSPECTED SPAM][PATCH 0/2] Remove Xen PVH dependency on PCI

2020-10-14 Thread Jason Andryuk
On Wed, Oct 14, 2020 at 2:04 PM Andrew Cooper wrote: > > On 14/10/2020 18:53, Jason Andryuk wrote: > > A Xen PVH domain doesn't have a PCI bus or devices, > > [*] Yet. :) > > so it doesn't need PCI support built in. > > Untangling the dependences is a good thing, but eventually we plan to > put

Re: [GIT PULL] iomap: new code for 5.10-rc1

2020-10-14 Thread pr-tracker-bot
The pull request you sent on Tue, 13 Oct 2020 09:41:31 -0700: > git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/iomap-5.10-merge-4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/37187df45af7d28d27b5c130c23f407ca9dbefa2 Thank you! -- Deet-doot-dot, I am a

[PATCH] ARM: dts: BCM5301X: Linksys EA9500 add port 5 and port 7

2020-10-14 Thread Vivek Unune
Add ports 5 and 7 which are connected to gmac cores 1 & 2. These will be disabled for now. Signed-off-by: Vivek Unune --- .../boot/dts/bcm47094-linksys-panamera.dts| 24 +++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts

Re: [PATCH 7/8] x86/cpu/intel: enable X86_FEATURE_NT_GOOD on Intel Broadwellx

2020-10-14 Thread Ankur Arora
On 2020-10-14 8:31 a.m., Ingo Molnar wrote: * Ankur Arora wrote: System: Oracle X6-2 CPU: 2 nodes * 10 cores/node * 2 threads/core Intel Xeon E5-2630 v4 (Broadwellx, 6:79:1) Memory: 256 GB evenly split between nodes Microcode:

Re: [PATCH 02/11] firmware: arm_scmi: hide protocols' private data

2020-10-14 Thread Florian Fainelli
On 10/14/20 8:05 AM, Cristian Marussi wrote: > Protocols private data were meant to be used exclusively by protocol code > but they are currently exposed through the handle, so available also to > SCMI drivers: move them away from handle into instance specific data and > provide internal helpers

Re: [PATCH v2 5/5] docs: automarkup.py: Allow automatic cross-reference inside C namespace

2020-10-14 Thread Jonathan Corbet
On Wed, 14 Oct 2020 11:56:44 +0200 Mauro Carvalho Chehab wrote: > > To make the first step possible, disable the parallel_read_safe option > > in Sphinx, since the dictionary that maps the files to the C namespaces > > can't be concurrently updated. This unfortunately increases the build > >

Re: [git pull] IOMMU Updates for Linux v5.10

2020-10-14 Thread pr-tracker-bot
The pull request you sent on Tue, 13 Oct 2020 18:03:58 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git > tags/iommu-updates-v5.10 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/531d29b0b674036347a04c08c0898ff1aa522180 Thank you! --

Re: [git pull] IOMMU Updates for Linux v5.10

2020-10-14 Thread Linus Torvalds
On Tue, Oct 13, 2020 at 9:04 AM Joerg Roedel wrote: > > there is a minor conflict this time in include/linux/iommu.h which > should be easy to resolve. I would attach my resolution, but somehow git > [show|log] didn't show it to me. So when a resolution takes one side over the other (as opposed

Re: [PATCH 6/8] mm, clear_huge_page: use clear_page_uncached() for gigantic pages

2020-10-14 Thread Ankur Arora
On 2020-10-14 8:28 a.m., Ingo Molnar wrote: * Ankur Arora wrote: Uncached writes are suitable for circumstances where the region written to is not expected to be read again soon, or the region written to is large enough that there's no expectation that we will find the writes in the cache.

Re: [PATCH v21 07/12] landlock: Support filesystem access-control

2020-10-14 Thread Mickaël Salaün
On 14/10/2020 20:52, Mickaël Salaün wrote: > > On 14/10/2020 20:07, James Morris wrote: >> On Thu, 8 Oct 2020, Mickaël Salaün wrote: >> >>> +config ARCH_EPHEMERAL_STATES >>> + def_bool n >>> + help >>> + An arch should select this symbol if it does not keep an internal >>> kernel >>> +

[PATCH v3 6/8] arm64: mm: Set ZONE_DMA size based on devicetree's dma-ranges

2020-10-14 Thread Nicolas Saenz Julienne
We recently introduced a 1 GB sized ZONE_DMA to cater for platforms incorporating masters that can address less than 32 bits of DMA, in particular the Raspberry Pi 4, which has 4 or 8 GB of DRAM, but has peripherals that can only address up to 1 GB (and its PCIe host bridge can only access the

[PATCH v3 3/8] of/address: Introduce of_dma_get_max_cpu_address()

2020-10-14 Thread Nicolas Saenz Julienne
Introduce of_dma_get_max_cpu_address(), which provides the highest CPU physical address addressable by all DMA masters in the system. It's specially useful for setting memory zones sizes at early boot time. Signed-off-by: Nicolas Saenz Julienne --- Changes since v2: - Use PHYS_ADDR_MAX -

[PATCH v3 2/8] arm64: mm: Move zone_dma_bits initialization into zone_sizes_init()

2020-10-14 Thread Nicolas Saenz Julienne
zone_dma_bits's initialization happens earlier that it's actually needed, in arm64_memblock_init(). So move it into the more suitable zone_sizes_init(). Signed-off-by: Nicolas Saenz Julienne --- arch/arm64/mm/init.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git

[PATCH v3 0/8] arm64: Default to 32-bit wide ZONE_DMA

2020-10-14 Thread Nicolas Saenz Julienne
Using two distinct DMA zones turned out to be problematic. Here's an attempt go back to a saner default. I tested this on both a RPi4 and QEMU. --- Changes since v2: - Introduce Ard's patch - Improve OF dma-ranges parsing function - Add unit test for OF function - Address small changes -

Re: [PATCH v3 03/10] arm64, kfence: enable KFENCE for ARM64

2020-10-14 Thread Marco Elver
On Thu, 8 Oct 2020 at 12:45, Mark Rutland wrote: > On Thu, Oct 08, 2020 at 11:40:52AM +0200, Marco Elver wrote: > > On Thu, 1 Oct 2020 at 19:58, Mark Rutland wrote: > > [...] > > > > > If you need virt_to_page() to work, the address has to be part of the > > > > > linear/direct map. > > [...] >

[PATCH v3 1/8] arm64: mm: Move reserve_crashkernel() into mem_init()

2020-10-14 Thread Nicolas Saenz Julienne
crashkernel might reserve memory located in ZONE_DMA. We plan to delay ZONE_DMA's initialization after unflattening the devicetree and ACPI's boot table initialization, so move it later in the boot process. Specifically into mem_init(), this is the last place crashkernel will be able to reserve

Re: [PATCH 18/20] arch: dts: Fix EHCI/OHCI DT nodes name

2020-10-14 Thread Alexey Brodkin
Hi Sergey, > arch/arc/boot/dts/axs10x_mb.dtsi | 4 ++-- > arch/arc/boot/dts/hsdk.dts | 4 ++-- > arch/arc/boot/dts/vdk_axs10x_mb.dtsi | 2 +- For ARC boards Acked-by: Alexey Brodkin

[PATCH v3 7/8] arm64: mm: Set ZONE_DMA size based on early IORT scan

2020-10-14 Thread Nicolas Saenz Julienne
From: Ard Biesheuvel We recently introduced a 1 GB sized ZONE_DMA to cater for platforms incorporating masters that can address less than 32 bits of DMA, in particular the Raspberry Pi 4, which has 4 or 8 GB of DRAM, but has peripherals that can only address up to 1 GB (and its PCIe host bridge

[PATCH v3 8/8] mm: Update DMA zones description

2020-10-14 Thread Nicolas Saenz Julienne
The default behavior for arm64 changed, so reflect that. Signed-off-by: Nicolas Saenz Julienne Acked-by: Catalin Marinas --- include/linux/mmzone.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index

[PATCH v3 5/8] dma-direct: Turn zone_dma_bits default value into a define

2020-10-14 Thread Nicolas Saenz Julienne
Set zone_dma_bits default value through a define so as for architectures to be able to override it with their default value. Signed-off-by: Nicolas Saenz Julienne --- include/linux/dma-direct.h | 3 +++ kernel/dma/direct.c| 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff

[PATCH v3 4/8] of: unittest: Add test for of_dma_get_max_cpu_address()

2020-10-14 Thread Nicolas Saenz Julienne
Introduce a test for of_dma_get_max_cup_address(), it uses the same DT data as the rest of dma-ranges unit tests. Signed-off-by: Nicolas Saenz Julienne --- drivers/of/unittest.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/of/unittest.c

Re: [PATCH v2 2/5] docs: automarkup.py: Fix regexes to solve sphinx 3 warnings

2020-10-14 Thread Jonathan Corbet
On Tue, 13 Oct 2020 23:13:17 + Nícolas F. R. A. Prado wrote: > The warnings were caused by the expressions matching words in the > translated versions of the documentation, since any unicode character > was matched. > > Fix the regular expression by making the C regexes use ASCII I don't

Re: [PATCH] NFS: Fix mode bits and nlink count for v4 referral dirs

2020-10-14 Thread Ashish Sangwan
On Wed, Oct 14, 2020 at 11:47 PM Trond Myklebust wrote: > > On Tue, 2020-10-06 at 08:14 -0700, Ashish Sangwan wrote: > > Request for mode bits and nlink count in the nfs4_get_referral call > > and if server returns them use them instead of hard coded values. > > > > CC: sta...@vger.kernel.org > >

[RFC PATCH] mm: memcg/slab: Stop reparented obj_cgroups from charging root

2020-10-14 Thread Richard Palethorpe
SLAB objects which outlive their memcg are moved to their parent memcg where they may be uncharged. However if they are moved to the root memcg, uncharging will result in negative page counter values as root has no page counters. To prevent this, we check whether we are about to uncharge the root

Re: [PATCH v5 3/5] counter: Add character device interface

2020-10-14 Thread William Breathitt Gray
On Wed, Oct 14, 2020 at 12:43:08PM -0500, David Lechner wrote: > On 9/26/20 9:18 PM, William Breathitt Gray wrote: > > diff --git a/drivers/counter/counter-chrdev.c > > b/drivers/counter/counter-chrdev.c > > new file mode 100644 > > index ..2be3846e4105 > > --- /dev/null > > +++

Re: [PATCH 01/11] firmware: arm_scmi: review protocol registration interface

2020-10-14 Thread Florian Fainelli
On 10/14/20 8:05 AM, Cristian Marussi wrote: > Extend common protocol registration routines and provide some new generic > protocols' init/deinit helpers that tracks protocols' users and automatically > perform the proper initialization/de-initialization on demand. > > Convert all protocols to

Re: [PATCH v4 1/5] kselftests: vm: Add mremap tests

2020-10-14 Thread Kalesh Singh
On Tue, Oct 13, 2020 at 8:54 PM Kalesh Singh wrote: > Hi kselftest maintainers, Could someone ACK this mremap test if there isn't any other concern? Thanks, Kalesh > Test mremap on regions of various sizes and alignments and validate > data after remapping. Also provide total time for

Re: [PATCH] ASoC: Intel: kbl_rt5663_max98927: Fix kabylake_ssp_fixup function

2020-10-14 Thread Mark Brown
On Wed, Oct 14, 2020 at 02:16:24PM +, Tomasz Figa wrote: > Fixes a boot crash on a HP Chromebook x2: > > [ 16.582225] BUG: kernel NULL pointer dereference, address: 0050 > [ 16.582231] #PF: supervisor read access in kernel mode > [ 16.582233] #PF: error_code(0x) -

Re: [PATCH v2] fs: gfs2: add validation checks for size of superblock

2020-10-14 Thread Andreas Gruenbacher
Anant, On Wed, Oct 14, 2020 at 6:31 PM Anant Thazhemadam wrote: > In gfs2_check_sb(), no validation checks are performed with regards to > the size of the superblock. > syzkaller detected a slab-out-of-bounds bug that was primarily caused > because the block size for a superblock was set to

Re: [PATCH v2] nvmet: fix uninitialized work for zero kato

2020-10-14 Thread Sagi Grimberg
Fixes: Don't run keep alive work with zero kato. "Fixes" tags need to have a git commit id followed by the commit subject. I can't find any commit with that subject, though. Fixes: 0d3b6a8d213a ("nvmet: Disable keep-alive timer when kato is cleared to 0h")

Re: [PATCH v2 02/24] tools: docs: memory-model: fix references for some files

2020-10-14 Thread Paul E. McKenney
On Tue, Oct 13, 2020 at 06:58:40PM -0700, Paul E. McKenney wrote: > On Tue, Oct 13, 2020 at 12:38:36PM -0400, Alan Stern wrote: > > On Tue, Oct 13, 2020 at 09:33:54AM -0700, Paul E. McKenney wrote: > > > On Tue, Oct 13, 2020 at 02:14:29PM +0200, Mauro Carvalho Chehab wrote: > > > > - The sysfs.txt

Re: [PATCH 0/7] Add dts for Rpi4 + Cirrus Lochnagar and codecs

2020-10-14 Thread Mark Brown
On Wed, Oct 14, 2020 at 03:54:11PM +0100, Richard Fitzgerald wrote: > This set of patches provides support for using the Cirrus Logic > Lochnagar audio development platform plus Cirrus Logic Madera/Arizona > codecs with the simple-card machine driver and a Raspberry Pi4. The > ultimate aim is to

Re: [PATCH 18/20] arch: dts: Fix EHCI/OHCI DT nodes name

2020-10-14 Thread Paul Cercueil
Le mer. 14 oct. 2020 à 13:14, Serge Semin a écrit : In accordance with the Generic EHCI/OHCI bindings the corresponding node name is suppose to comply with the Generic USB HCD DT schema, which requires the USB nodes to have the name acceptable by the regexp: "^usb(@.*)?" . Let's fix the

Re: [PATCH 4/6] clk: renesas: r8a779a0: Add VIN[00-31] clocks

2020-10-14 Thread Sergei Shtylyov
On 10/14/20 12:44 PM, Jacopo Mondi wrote: > Add clock definitions of the VIN instances for R-Car V3U. > > Signed-off-by: Jacopo Mondi > > --- > Clocks at indexes 730 and 731 are named 'vin0' and 'vin1'. > I assumed it's a typographic error and renamed them 'vin00' and 'vin01' > --- >

Re: [GIT PULL] Power management updates for v5.10-rc1

2020-10-14 Thread pr-tracker-bot
The pull request you sent on Tue, 13 Oct 2020 19:31:48 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git pm-5.10-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/0b8417c14181595997091145342954332fa016cd Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] platform-drivers-x86 for 5.10-1

2020-10-14 Thread pr-tracker-bot
The pull request you sent on Tue, 13 Oct 2020 14:26:18 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git > tags/platform-drivers-x86-v5.10-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/15cb5469fc5fff06969832028b743cb658d1a5b5

Re: [GIT PULL] ACPI updates for v5.10-rc1

2020-10-14 Thread pr-tracker-bot
The pull request you sent on Tue, 13 Oct 2020 19:33:58 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git > acpi-5.10-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/cf1d2b44f6c70158606b5b8a8996190d6e7d Thank you! -- Deet-doot-dot, I

Re: [GIT PULL] PNP updates for v5.10-rc1

2020-10-14 Thread pr-tracker-bot
The pull request you sent on Tue, 13 Oct 2020 19:35:12 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git pnp-5.10-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/defb53a7c790f9e37a765de8a5d830ed15e2055b Thank you! -- Deet-doot-dot, I am

Re: [GIT PULL] ACPI updates for v5.10-rc1

2020-10-14 Thread Linus Torvalds
On Tue, Oct 13, 2020 at 10:34 AM Rafael J. Wysocki wrote: > > ACPI updates for 5.10-rc1. So these clashed with Andrew's patches that I merged earlier (particularly commit c01044cc8191: "ACPI: HMAT: refactor hmat_register_target_device to hmem_register_device"). I think I sorted it out right,

Re: [PATCH v21 07/12] landlock: Support filesystem access-control

2020-10-14 Thread Mickaël Salaün
On 14/10/2020 20:07, James Morris wrote: > On Thu, 8 Oct 2020, Mickaël Salaün wrote: > >> +config ARCH_EPHEMERAL_STATES >> +def_bool n >> +help >> + An arch should select this symbol if it does not keep an internal >> kernel >> + state for kernel objects such as inodes, but

Re: [patch 06/12] usb: host: isp1362: Replace in_interrupt() usage

2020-10-14 Thread kernel test robot
suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Thomas-Gleixner/UBS-Cleanup-in_interupt-in_irq-in_atomic-usage/20201014-232156 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing config

Re: [PATCH v7 2/2] drm: panel: Add novatek nt36672a panel driver

2020-10-14 Thread Sam Ravnborg
Hi Sumit. On Wed, Sep 02, 2020 at 12:14:07PM +0530, Sumit Semwal wrote: > Novatek NT36672a is a generic DSI IC that drives command and video mode > panels. Add the driver for it. > > Right now adding support for some Poco F1 phones that have an LCD panel > from Tianma connected with this IC,

Re: [PATCH v7 1/2] dt-bindings: display: panel: Add bindings for Novatek nt36672a

2020-10-14 Thread Sam Ravnborg
Hi Sumit. On Wed, Sep 02, 2020 at 12:14:06PM +0530, Sumit Semwal wrote: > Novatek nt36672a is a display driver IC that can drive DSI panel. It > is also present in the Tianma video mode panel, which is a FHD+ panel > with a resolution of 1080x2246 and 6.18 inches size. It is found in > some of the

Re: [PATCH nf v2] netfilter: conntrack: connection timeout after re-register

2020-10-14 Thread Francesco Ruggeri
On Wed, Oct 14, 2020 at 1:23 AM Florian Westphal wrote: > > Pablo Neira Ayuso wrote: > > Legacy would still be flawed though. > > Its fine too, new rule blob gets handled (and match/target checkentry > called) before old one is dismantled. > > We only have a 0 refcount + hook unregister when

Re: [PATCH 18/20] arch: dts: Fix EHCI/OHCI DT nodes name

2020-10-14 Thread Florian Fainelli
On 10/14/20 11:11 AM, Serge Semin wrote: > On Wed, Oct 14, 2020 at 11:00:45AM -0700, Florian Fainelli wrote: >> On 10/14/20 3:14 AM, Serge Semin wrote: >>> In accordance with the Generic EHCI/OHCI bindings the corresponding node >>> name is suppose to comply with the Generic USB HCD DT schema,

Re: [RFC]: userspace memory reaping

2020-10-14 Thread minchan
On Wed, Oct 14, 2020 at 09:57:20AM -0700, Suren Baghdasaryan wrote: > On Wed, Oct 14, 2020 at 5:09 AM Michal Hocko wrote: > > > > [Sorry for a late reply] > > > > On Mon 14-09-20 17:45:44, Suren Baghdasaryan wrote: > > > + linux-kernel@vger.kernel.org > > > > > > On Mon, Sep 14, 2020 at 5:43 PM

Re: [PATCH 1/7] of: base: Add of_count_phandle_with_fixed_args()

2020-10-14 Thread Rob Herring
On Wed, Oct 14, 2020 at 9:54 AM Richard Fitzgerald wrote: > > Add an equivalent of of_count_phandle_with_args() for fixed argument > sets, to pair with of_parse_phandle_with_fixed_args(). > > Signed-off-by: Richard Fitzgerald > --- > drivers/of/base.c | 42

Re: [PATCH v1 0/8] perf c2c: Refine the organization of metrics

2020-10-14 Thread Joe Mario
On 10/14/20 1:09 AM, Leo Yan wrote: > This patch set is to refine metrics output organization. > > If we reivew the current memory metrics in Perf c2c tool, it doesn't > orgnize the metrics with directive approach; thus user needs to take > time to dig into every statistics item. On the other

Re: [PATCH 1/2] arm64: dts: qcom: sc7180: Add gpu cooling support

2020-10-14 Thread manafm
On 2020-10-14 18:59, Akhil P Oommen wrote: On 10/9/2020 10:27 PM, Matthias Kaehlcke wrote: On Fri, Oct 09, 2020 at 08:05:10AM -0700, Doug Anderson wrote: Hi, On Thu, Oct 8, 2020 at 10:10 AM Akhil P Oommen wrote: Add cooling-cells property and the cooling maps for the gpu tzones to support

Re: [RFC PATCH v2] checkpatch: add shebang check to EXECUTE_PERMISSIONS

2020-10-14 Thread Joe Perches
On Wed, 2020-10-14 at 20:32 +0200, Miguel Ojeda wrote: > On Wed, Oct 14, 2020 at 8:05 PM Joe Perches wrote: > > Any 'formatting off/on' marker should be tool agnostic. > > Agreed, they should have used a compiler-agnostic name for the marker. It means to me that linux has to invent one and any

Re: [PATCH v2] checkpatch: add new exception to repeated word check

2020-10-14 Thread Joe Perches
On Wed, 2020-10-14 at 23:42 +0530, Dwaipayan Ray wrote: > On Wed, Oct 14, 2020 at 11:33 PM Joe Perches wrote: > > On Wed, 2020-10-14 at 22:07 +0530, Dwaipayan Ray wrote: > > > Recently, commit 4f6ad8aa1eac ("checkpatch: move repeated word test") > > > moved the repeated word test to check for

Re: [PATCH 20/20] arch: dts: Fix DWC USB3 DT nodes name

2020-10-14 Thread Rob Herring
On Wed, Oct 14, 2020 at 9:37 AM Serge Semin wrote: > > On Wed, Oct 14, 2020 at 05:09:37PM +0300, Felipe Balbi wrote: > > > > Hi Serge, > > > > Serge Semin writes: > > > In accordance with the DWC USB3 bindings the corresponding node name is > > > suppose to comply with Generic USB HCD DT schema,

Re: [PATCH] IPv6: sr: Fix End.X nexthop to use oif.

2020-10-14 Thread kernel test robot
-randconfig-r035-20201014 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project e7fe3c6dfede8d5781bd000741c3dea7088307a4) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross

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