[PATCH v7 clocksource 1/5] clocksource: Provide module parameters to inject delays in watchdog

2021-04-02 Thread paulmck
From: "Paul E. McKenney" When the clocksource watchdog marks a clock as unstable, this might be due to that clock being unstable or it might be due to delays that happen to occur between the reads of the two clocks. Yes, interrupts are disabled across those two reads, but there are no shortage

[PATCH v7 clocksource 3/5] clocksource: Check per-CPU clock synchronization when marked unstable

2021-04-02 Thread paulmck
From: "Paul E. McKenney" Some sorts of per-CPU clock sources have a history of going out of synchronization with each other. However, this problem has purportedy been solved in the past ten years. Except that it is all too possible that the problem has instead simply been made less likely,

[PATCH v7 clocksource 4/5] clocksource: Provide a module parameter to fuzz per-CPU clock checking

2021-04-02 Thread paulmck
From: "Paul E. McKenney" Code that checks for clock desynchronization must itself be tested, so this commit creates a new clocksource.inject_delay_shift_percpu= kernel boot parameter that adds or subtracts a large value from the check read, using the specified bit of the CPU ID to determine

[PATCH v7 clocksource 5/5] clocksource: Do pairwise clock-desynchronization checking

2021-04-02 Thread paulmck
From: "Paul E. McKenney" Although smp_call_function() has the advantage of simplicity, using it to check for cross-CPU clock desynchronization means that any CPU being slow reduces the sensitivity of the checking across all CPUs. And it is not uncommon for smp_call_function() latencies to be in

[PATCH v7 clocksource] Do not mark clocks unstable due to delays for v5.13

2021-04-02 Thread Paul E. McKenney
Hello! If there is a sufficient delay between reading the watchdog clock and the clock under test, the clock under test will be marked unstable through no fault of its own. This series checks for this, doing limited retries to get a good set of clock reads. If the clock is marked unstable and

Re: [PATCH 0/6] Allow signals for IO threads

2021-04-02 Thread Stefan Metzmacher
Am 01.04.21 um 18:24 schrieb Linus Torvalds: > On Thu, Apr 1, 2021 at 9:00 AM Stefan Metzmacher wrote: >> >> I haven't tried it, but it seems gdb tries to use PTRACE_PEEKUSR >> against the last thread tid listed under /proc//tasks/ in order to >> get the architecture for the userspace application

RE: [EXTERNAL] Re: [PATCH] ASoC: max98390: Add controls for tx path

2021-04-02 Thread Steve Lee
> -Original Message- > From: Mark Brown > Sent: Saturday, April 3, 2021 12:23 AM > To: Steve Lee > Cc: lgirdw...@gmail.com; pe...@perex.cz; ti...@suse.com; > ckee...@opensource.cirrus.com; ge...@linux-m68k.org; > r...@opensource.wolfsonmicro.com; shumi...@realtek.com; >

Re: [PATCH v3] sched/debug: Use sched_debug_lock to serialize use of cgroup_path[] only

2021-04-02 Thread Waiman Long
On 4/2/21 4:40 PM, Steven Rostedt wrote: On Thu, 1 Apr 2021 14:10:30 -0400 Waiman Long wrote: The handling of sysrq key can be activated by echoing the key to /proc/sysrq-trigger or via the magic key sequence typed into a terminal that is connected to the system in some way (serial, USB or

[PATCH] tty: use printk_safe context at tty_msg()

2021-04-02 Thread Tetsuo Handa
syzbot is reporting circular locking dependency due to calling printk() with port lock held [1]. When this problem was reported, we worried whether printk_safe context will remain available in future kernels [2], and then this problem was forgotten. But in order to utilize syzbot's resource for

[PATCH v3 9/9] w1: ds2438: support for writing to offset register

2021-04-02 Thread Luiz Sampaio
Added a sysfs entry to support writing to the offset register on page1. This register is used to calibrate the chip canceling offset errors in the current ADC. This means that, over time, reading the IAD register will not return the correct current measurement, it will have an offset. Writing to

[PATCH 2/3] mm: Charge active memcg when no mm is set

2021-04-02 Thread Dan Schatzberg
set_active_memcg() worked for kernel allocations but was silently ignored for user pages. This patch establishes a precedence order for who gets charged: 1. If there is a memcg associated with the page already, that memcg is charged. This happens during swapin. 2. If an explicit mm is

[PATCH 3/3] loop: Charge i/o to mem and blk cg

2021-04-02 Thread Dan Schatzberg
The current code only associates with the existing blkcg when aio is used to access the backing file. This patch covers all types of i/o to the backing file and also associates the memcg so if the backing file is on tmpfs, memory is charged appropriately. This patch also exports cgroup_get_e_css

Re: [PATCH v6 4/7] pwm: pca9685: Support staggered output ON times

2021-04-02 Thread Uwe Kleine-König
Hello, On Wed, Mar 31, 2021 at 06:21:32PM +0200, Thierry Reding wrote: > However, I'm a bit hesitant about this staggering output mode. From what > I understand what's going to happen for these is basically that overall > each PWM will be running at the requested duty cycle, but the on/off >

Re: [PATCH v3 07/25] x86/sgx: Initialize virtual EPC driver even when SGX driver is disabled

2021-04-02 Thread Borislav Petkov
On Fri, Apr 02, 2021 at 07:30:23PM +, Sean Christopherson wrote: > Heh, that's what I had originally and used for literally years. IIRC, I > suggested the "!! & !!" abomination after internal review complained about the > oddness of the above. Whut? > FWIW, I think the above is far less

Re: [PATCH v6 12/21] selftests/resctrl: Check for resctrl mount point only if resctrl FS is supported

2021-04-02 Thread Shuah Khan
On 3/16/21 8:22 PM, Fenghua Yu wrote: check_resctrlfs_support() does the following 1. Checks if the platform supports resctrl file system or not by looking for resctrl in /proc/filesystems 2. Calls opendir() on default resctrl file system path (i.e. /sys/fs/resctrl) 3. Checks if resctrl

[PATCH net v3] atl1c: move tx cleanup processing out of interrupt

2021-04-02 Thread Gatis Peisenieks
Tx queue cleanup happens in interrupt handler on same core as rx queue processing. Both can take considerable amount of processing in high packet-per-second scenarios. Sending big amounts of packets can stall the rx processing which is unfair and also can lead to to out-of-memory condition

Re: [PATCH RESEND 0/3] x86/sgx: eextend ioctl

2021-04-02 Thread Jethro Beekman
On 2021-04-02 21:50, Dave Hansen wrote: > > On 4/2/21 12:38 PM, Jethro Beekman wrote: >> On 2021-04-02 20:42, Dave Hansen wrote: >>> On 4/2/21 11:31 AM, Jethro Beekman wrote: On 2021-04-02 17:53, Dave Hansen wrote: > But, why would an enclave loader application ever do this?

[PATCH] habanalabs: remove the store jobs array from CS IOCTL

2021-04-02 Thread Oded Gabbay
The store part was never implemented in the code and never been used by the userspace applications. We currently use the related parameters to a different purpose with a defined union. However, there is no point in that and it is better to just remove the union and the store parameters.

Re: [PATCH v4 3/3] sysfs: Unconditionally use vmalloc for buffer

2021-04-02 Thread Kees Cook
On Fri, Apr 02, 2021 at 08:32:21AM +0200, Christoph Hellwig wrote: > On Thu, Apr 01, 2021 at 03:13:20PM -0700, Kees Cook wrote: > > The sysfs interface to seq_file continues to be rather fragile > > (seq_get_buf() should not be used outside of seq_file), as seen with > > some recent exploits[1].

[PATCH] bus: mhi: pci_generic: Add SDX65 based modem support

2021-04-02 Thread Bhaumik Bhatt
Add generic info for SDX65 based modems. Signed-off-by: Bhaumik Bhatt --- This patch was tested on SDX65 hardware with Ubuntu X86_64 PC as host. drivers/bus/mhi/pci_generic.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/bus/mhi/pci_generic.c

Re: [RFC Part1 PATCH 05/13] X86/sev-es: move few helper functions in common file

2021-04-02 Thread Brijesh Singh
On 4/2/21 2:27 PM, Borislav Petkov wrote: > On Wed, Mar 24, 2021 at 11:44:16AM -0500, Brijesh Singh wrote: >> The sev_es_terminate() and sev_es_{wr,rd}_ghcb_msr() helper functions >> in a common file so that it can be used by both the SEV-ES and SEV-SNP. >> >> Cc: Thomas Gleixner >> Cc: Ingo

Re: [RFC v1 00/26] Add TDX Guest Support

2021-04-02 Thread Andi Kleen
> If we go this route, what are the rules and restrictions? Do we have to > say "no MMIO in #VE"? All we have to say is "No MMIO in #VE before getting thd TDVEINFO arguments" After that it can nest without problems. If you nest before that the TDX will cause a triple fault. The code that

Re: [PATCH] firmware_loader: Remove unnecessary conversion to bool

2021-04-02 Thread Shuah Khan
On 2/18/21 2:12 AM, Jiapeng Chong wrote: Fix the following coccicheck warnings: ./tools/testing/selftests/firmware/fw_namespace.c:98:54-59: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- tools/testing/selftests/firmware/fw_namespace.c

Re: [PATCH v6 clocksource] Do not mark clocks unstable dueclocksource: Provide module parameters to inject delays in watchdog

2021-04-02 Thread Thomas Gleixner
On Fri, Apr 02 2021 at 13:31, paulmck wrote: The subsystem prefix does not parse: [PATCH v6 clocksource] Do not mark clocks unstable dueclocksource: Provide module parameters to inject delays in watchdog I look at the actual code changes after the easter break. Thanks, tglx

[tip:WIP.x86/core] BUILD SUCCESS 9bc0bb50727c8ac69fbb33fb937431cf3518ff37

2021-04-02 Thread kernel test robot
allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20210402 x86_64 randconfig-a005-20210402

[tip:x86/core] BUILD SUCCESS b1f480bc0686e65d5413c035bd13af2ea4888784

2021-04-02 Thread kernel test robot
mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20210402 x86_64 randconfig-a005-20210402 x86_64 randconfig-a003-20210402 x8

[tip:master] BUILD SUCCESS 839b9f0ebe3046b258601e1785ac8c4483266f92

2021-04-02 Thread kernel test robot
allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20210402 x86_64 randconfig-a005-20210402 x86_64

[PATCH 3/5] crypto: ccp: Play nice with vmalloc'd memory for SEV command structs

2021-04-02 Thread Sean Christopherson
Copy vmalloc'd data to an internal buffer instead of rejecting outright so that callers can put SEV command buffers on the stack without running afoul of CONFIG_VMAP_STACK=y. Currently, the largest supported command takes a 68 byte buffer, i.e. pretty much every command can be put on the stack.

[PATCH 2/5] crypto: ccp: Reject SEV commands with mismatching command buffer

2021-04-02 Thread Sean Christopherson
WARN on and reject SEV commands that provide a valid data pointer, but do not have a known, non-zero length. And conversely, reject commands that take a command buffer but none is provided. Aside from sanity checking intput, disallowing a non-null pointer without a non-zero size will allow a

[PATCH 5/5] KVM: SVM: Allocate SEV command structures on local stack

2021-04-02 Thread Sean Christopherson
Use the local stack to "allocate" the structures used to communicate with the PSP. The largest struct used by KVM, sev_data_launch_secret, clocks in at 52 bytes, well within the realm of reasonable stack usage. The smallest structs are a mere 4 bytes, i.e. the pointer for the allocation is

[PATCH 4/5] crypto: ccp: Use the stack for small SEV command buffers

2021-04-02 Thread Sean Christopherson
For commands with small input/output buffers, use the local stack to "allocate" the structures used to communicate with the PSP. Now that __sev_do_cmd_locked() gracefully handles vmalloc'd buffers, there's no reason to avoid using the stack, e.g. CONFIG_VMAP_STACK=y will just work.

[PATCH 0/5] ccp: KVM: SVM: Use stack for SEV command buffers

2021-04-02 Thread Sean Christopherson
While doing minor KVM cleanup to account various kernel allocations, I noticed that all of the SEV command buffers are allocated via kmalloc(), even for commands whose payloads is smaller than a pointer. After much head scratching, the only reason I could come up with for dynamically allocating

[PATCH 1/5] crypto: ccp: Detect and reject vmalloc addresses destined for PSP

2021-04-02 Thread Sean Christopherson
Explicitly reject vmalloc'd data as the source for SEV commands that are sent to the PSP. The PSP works with physical addresses, and __pa() will not return the correct address for a vmalloc'd pionter, which at best will cause the command to fail, and at worst lead to system instability. While

[GIT PULL] SCSI fixes for 5.12-rc

2021-04-02 Thread James Bottomley
Single fix to iscsi for a rare race condition which can cause a kernel panic. The patch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes The short changelog is: Gulam Mohamed (1): scsi: iscsi: Fix race condition between login and sync thread And

Re: [RFC PATCH] mm/swap: fix system stuck due to infinite loop

2021-04-02 Thread Andrew Morton
On Fri, 2 Apr 2021 15:03:37 +0800 Stillinux wrote: > In the case of high system memory and load pressure, we ran ltp test > and found that the system was stuck, the direct memory reclaim was > all stuck in io_schedule, the waiting request was stuck in the blk_plug > flow of one process, and this

Re: [PATCH 2/4] KVM: MIPS: rework flush_shadow_* callbacks into one that prepares the flush

2021-04-02 Thread Huacai Chen
Hi, Paolo, TE mode has been removed in the MIPS tree, can we also remove it in KVM tree before this rework? Huacai On Fri, Apr 2, 2021 at 11:58 PM Paolo Bonzini wrote: > > Both trap-and-emulate and VZ have a single implementation that covers > both .flush_shadow_all and .flush_shadow_memslot,

Re: [PATCH 1/4] KVM: constify kvm_arch_flush_remote_tlbs_memslot

2021-04-02 Thread Huacai Chen
Reviewed-by: Huacai Chen On Fri, Apr 2, 2021 at 11:58 PM Paolo Bonzini wrote: > > memslots are stored in RCU and there should be no need to > change them. > > Signed-off-by: Paolo Bonzini > --- > arch/arm64/kvm/arm.c | 2 +- > arch/mips/kvm/mips.c | 2 +- > arch/x86/kvm/mmu/mmu.c |

[PATCH v3 7/9] w1: ds2438: fixing bug that would always get page0

2021-04-02 Thread Luiz Sampaio
The purpose of the w1_ds2438_get_page function is to get the register values at the page passed as the pageno parameter. However, the page0 was hardcoded, such that the function always returned the page0 contents. Fixed so that the function can retrieve any page. Signed-off-by: Luiz Sampaio ---

[PATCH v3 8/9] w1: ds2438: adding support for reading page1

2021-04-02 Thread Luiz Sampaio
Added a sysfs entry to support reading the page1 registers. This registers contain Elapsed Time Meter (ETM) data, which shows for how long the chip is on, as well as an Offset Register data, which can be used to calibrate the current measurement of the chip. Signed-off-by: Luiz Sampaio ---

[PATCH v3 1/9] w1: ds2438: fixed a coding style issue

2021-04-02 Thread Luiz Sampaio
There is an if statement and, if the function goes into it, it returns. So, the next else is not required. Signed-off-by: Luiz Sampaio --- drivers/w1/slaves/w1_ds2438.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/w1/slaves/w1_ds2438.c

[PATCH v3 2/9] w1: ds2438: fixed a coding style issue

2021-04-02 Thread Luiz Sampaio
Since there is only one statement inside the if clause, no brackets are required. Signed-off-by: Luiz Sampaio --- drivers/w1/slaves/w1_ds2438.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/w1/slaves/w1_ds2438.c b/drivers/w1/slaves/w1_ds2438.c index

[PATCH v3 4/9] w1: ds2438: fixed a coding style issue

2021-04-02 Thread Luiz Sampaio
Since there is only one statement inside the if clause, no brackets are required. Signed-off-by: Luiz Sampaio --- drivers/w1/slaves/w1_ds2438.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/w1/slaves/w1_ds2438.c b/drivers/w1/slaves/w1_ds2438.c index

[PATCH v3 3/9] w1: ds2438: fixed a coding style issue

2021-04-02 Thread Luiz Sampaio
Since there is only one statement inside the if clause, no brackets are required. Signed-off-by: Luiz Sampaio --- drivers/w1/slaves/w1_ds2438.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/w1/slaves/w1_ds2438.c b/drivers/w1/slaves/w1_ds2438.c index

[PATCH v3 5/9] w1: ds2438: fixed a coding style issue

2021-04-02 Thread Luiz Sampaio
Since there is only one statement inside the if clause, no brackets are required. Signed-off-by: Luiz Sampaio --- drivers/w1/slaves/w1_ds2438.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/w1/slaves/w1_ds2438.c b/drivers/w1/slaves/w1_ds2438.c index

[PATCH v3 6/9] w1: ds2438: fixed a coding style issue

2021-04-02 Thread Luiz Sampaio
Changed the permissions to preferred octal style. Signed-off-by: Luiz Sampaio --- drivers/w1/slaves/w1_ds2438.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/w1/slaves/w1_ds2438.c b/drivers/w1/slaves/w1_ds2438.c index 56e53a748059..ccb06b8c2d78 100644 ---

Re: [PATCH] block: don't ignore REQ_NOWAIT for direct IO

2021-04-02 Thread Jens Axboe
On 11/20/20 10:10 AM, Pavel Begunkov wrote: > io_uring's direct nowait requests end up waiting on io_schedule() in > sbitmap, that's seems to be so because blkdev_direct_IO() fails to > propagate IOCB_NOWAIT to a bio and hence to blk-mq. Thanks, applied. This slipped through the cracks, and I

Hello

2021-04-02 Thread Zora Isla
I am Mrs. Zora Isla. I am sending this brief letter to solicit your partnership to transfer the sum of 11.9 Million Dollars into your reliable account as my business partner. However, it's my urgent need for foreign partner that made me to contact you for this transaction.Further details of the

Re: [PATCH] mm/vmscan.c: drop_slab_node with task's memcg

2021-04-02 Thread kernel test robot
'--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Neil-Sun/mm-vmscan-c-drop_slab_node-with-task-s-memcg/20210402-184123 base:a5e13c6df0e41702d2b2c77c8ad41677ebb065b3 config: mips-randconfig-r006-20210402 (attached as .config

Re: [PATCH v6 00/27] Memory Folios

2021-04-02 Thread Christoph Hellwig
On Thu, Apr 01, 2021 at 12:26:56PM +0100, Matthew Wilcox wrote: > On Thu, Apr 01, 2021 at 08:05:37AM +0100, Christoph Hellwig wrote: > > On Wed, Mar 31, 2021 at 07:47:01PM +0100, Matthew Wilcox (Oracle) wrote: > > > - Mirror members of struct page (for pagecache / anon) into struct folio, > > >

RE: [PATCH v2 3/3] hpsa: add an assert to prevent from __packed reintroduction

2021-04-02 Thread Elliott, Robert (Servers)
It looks like ia64 implements atomic_t as a 64-bit value and expects atomic_t to be 64-bit aligned, but does nothing to ensure that. For x86, atomic_t is a 32-bit value and atomic64_t is a 64-bit value, and the definition of atomic64_t is overridden in a way that ensures 64-bit (8 byte)

Re: [PATCH v1 2/2] iommu/tegra-smmu: Revert workaround that was needed for Nyan Big Chromebook

2021-04-02 Thread Dmitry Osipenko
01.04.2021 11:55, Nicolin Chen пишет: > On Mon, Mar 29, 2021 at 02:32:56AM +0300, Dmitry Osipenko wrote: >> The previous commit fixes problem where display client was attaching too >> early to IOMMU during kernel boot in a multi-platform kernel configuration >> which enables

Re: [PATCH] kernel: automatically split user namespace extent

2021-04-02 Thread Giuseppe Scrivano
Hi Serge, "Serge E. Hallyn" writes: > On Wed, Dec 02, 2020 at 05:12:27PM +0100, Giuseppe Scrivano wrote: >> Hi Eric, >> >> ebied...@xmission.com (Eric W. Biederman) writes: >> >> > Nit: The tag should have been "userns:" rather than kernel. >> > >> > Giuseppe Scrivano writes: >> > >> >>

Re: OT: Processor recommendation for RAID6

2021-04-02 Thread Roger Heflin
On Fri, Apr 2, 2021 at 4:13 AM Paul Menzel wrote: > > Dear Linux folks, > > > > Are these values a good benchmark for comparing processors? > > After two years, yes they are. I created 16 10 GB files in `/dev/shm`, > set them up as loop devices, and created a RAID6. For resync speed it > makes

Re: [PATCH v2 5/6] dt-bindings: memory: tegra20: emc: Convert to schema

2021-04-02 Thread Dmitry Osipenko
01.04.2021 18:55, Rob Herring пишет: > On Wed, Mar 31, 2021 at 05:59:39PM +0300, Dmitry Osipenko wrote: >> 31.03.2021 16:40, Rob Herring пишет: >>> On Wed, 31 Mar 2021 02:04:44 +0300, Dmitry Osipenko wrote: Convert Tegra20 External Memory Controller binding to schema. Signed-off-by:

Re: [PATCH] HID: intel-ish-hid: Remove an unused variable 'ret'

2021-04-02 Thread Srinivas Pandruvada
On Fri, 2021-04-02 at 18:06 +0800, Yang Li wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/hid/intel-ish-hid/ipc/pci-ish.c:264:6: warning: variable > ‘ret’ > set but not used > > Reported-by: Abaci Robot > Signed-off-by: Yang Li Acked-by: Srinivas Pandruvada > --- >

Re: [Freedreno] [PATCH 1/2] drm/msm: Fix a5xx/a6xx timestamps

2021-04-02 Thread Jordan Crouse
On Wed, Mar 24, 2021 at 06:23:52PM -0700, Rob Clark wrote: > From: Rob Clark > > They were reading a counter that was configured to ALWAYS_COUNT (ie. > cycles that the GPU is doing something) rather than ALWAYS_ON. This > isn't the thing that userspace is looking for. Acked-by: Jordan Crouse

Re: [PATCH v6 00/27] Memory Folios

2021-04-02 Thread Matthew Wilcox
On Fri, Apr 02, 2021 at 03:37:55PM +0100, Christoph Hellwig wrote: > On Thu, Apr 01, 2021 at 12:26:56PM +0100, Matthew Wilcox wrote: > > On Thu, Apr 01, 2021 at 08:05:37AM +0100, Christoph Hellwig wrote: > > > On Wed, Mar 31, 2021 at 07:47:01PM +0100, Matthew Wilcox (Oracle) wrote: > > > > -

Re: [PATCH] irq_work: record irq_work_queue() call stack

2021-04-02 Thread Andrey Konovalov
On Wed, Mar 31, 2021 at 8:32 AM wrote: > > From: Zqiang > > Add the irq_work_queue() call stack into the KASAN auxiliary > stack in order to improve KASAN reports. this will let us know > where the irq work be queued. > > Signed-off-by: Zqiang > --- > kernel/irq_work.c | 7 ++- > 1 file

Re: [PATCH v1] of: property: fw_devlink: Add support for remote-endpoint

2021-04-02 Thread Greg Kroah-Hartman
On Tue, Mar 30, 2021 at 11:50:55AM -0700, Saravana Kannan wrote: > remote-endpoint property seems to always come in pairs where two devices > point to each other. So, we can't really tell from DT if there is a > functional probe order dependency between these two devices. > > However, there can

Re: [RFC PATCH 01/15] mm: memcontrol: fix page charging in page replacement

2021-04-02 Thread Johannes Weiner
On Tue, Mar 30, 2021 at 06:15:17PM +0800, Muchun Song wrote: > The pages aren't accounted at the root level, so do not charge the page > to the root memcg in page replacement. Although we do not display the > value (mem_cgroup_usage) so there shouldn't be any actual problem, but > there is a

RE: [PATCH v3] mm,hwpoison: return -EHWPOISON when page already poisoned

2021-04-02 Thread Luck, Tony
>> Combined with my "mutex" patch (to get rid of races where 2nd process returns >> early, but first process is still looking for mappings to unmap and tasks >> to signal) this patch moves forward a bit. But I think it needs an >> additional change here in kill_me_maybe() to just "return" if there

[PATCH v4 01/20] cmdline: Add generic function to build command line.

2021-04-02 Thread Christophe Leroy
This code provides architectures with a way to build command line based on what is built in the kernel and what is handed over by the bootloader, based on selected compile-time options. Signed-off-by: Christophe Leroy --- v3: - Addressed comments from Will - Added capability to have src == dst

[PATCH v4 00/20] Implement GENERIC_CMDLINE

2021-04-02 Thread Christophe Leroy
The purpose of this series is to improve and enhance the handling of kernel boot arguments. Current situation is that most if not all architectures are using similar options to do some manupulation on command line arguments: - Prepend built-in arguments in front of bootloader provided arguments -

Re: [PATCH v2 2/3] dt-bindings: touchscreen: Add HY46XX bindings

2021-04-02 Thread Giulio Benetti
Hi Jonathan, thank you for reviewing, On 4/2/21 10:36 AM, Jonathan Neuschäfer wrote: On Fri, Apr 02, 2021 at 01:03:57AM +0200, Giulio Benetti wrote: This adds device tree bindings for the Hycon HY46XX touchscreen series. Signed-off-by: Giulio Benetti --- V1->V2: As suggested by Rob Herring:

Re: [v1] drm/msm/disp/dpu1: program 3d_merge only if block is attached

2021-04-02 Thread Rob Clark
On Fri, Apr 2, 2021 at 4:55 AM Kalyan Thota wrote: > > Update the 3d merge as active in the data path only if > the hw block is selected in the configuration. > > Reported-by: Stephen Boyd Thanks, I've added: Fixes: 73bfb790ac78 ("msm:disp:dpu1: setup display datapath for SC7180 target") >

[PATCH v4] platform/x86: intel_pmc_core: export platform global_reset via sysfs.

2021-04-02 Thread Tomas Winkler
From: Tamar Mashiah During PCH (platform/board) manufacturing process a global reset has to be induced in order for configuration changes take the effect upon following platform reset. This setting was commonly done by accessing PMC registers via /dev/mem but due to security concern /dev/mem

Re: [PATCH v3 00/17] Implement GENERIC_CMDLINE

2021-04-02 Thread Christophe Leroy
Le 26/03/2021 à 16:04, Rob Herring a écrit : On Fri, Mar 26, 2021 at 7:44 AM Christophe Leroy wrote: The purpose of this series is to improve and enhance the handling of kernel boot arguments. It is first focussed on powerpc but also extends the capability for other arches. This is based

Re: [PATCH v3 05/17] arm: Convert to GENERIC_CMDLINE

2021-04-02 Thread Christophe Leroy
Le 26/03/2021 à 16:47, Rob Herring a écrit : On Fri, Mar 26, 2021 at 7:44 AM Christophe Leroy wrote: This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/arm/Kconfig | 38 +--

Re: [PATCH v3 09/17] nios2: Convert to GENERIC_CMDLINE

2021-04-02 Thread Christophe Leroy
Le 29/03/2021 à 03:35, Tan, Ley Foon a écrit : -Original Message- From: Christophe Leroy Sent: Friday, March 26, 2021 9:45 PM To: w...@kernel.org; danie...@cisco.com; r...@kernel.org; dan...@gimpelevich.san-francisco.ca.us Cc: linux-a...@vger.kernel.org;

Re: [PATCH] USB:ohci:fix ohci interruption problem

2021-04-02 Thread kernel test robot
' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Longfang-Liu/USB-ohci-fix-ohci-interruption-problem/20210402-173222 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing config: x86_64-randconfig-a005-20210401 (attached

Re: [PATCH v2] Updated locking documentation for journal_t

2021-04-02 Thread Theodore Ts'o
On Thu, Feb 11, 2021 at 10:51:55AM +0100, Alexander Lochmann wrote: > Some members of transaction_t are allowed to be read without > any lock being held if consistency doesn't matter. > Based on LockDoc's findings, we extended the locking > documentation of those members. > Each one of them is

Re: [RFC Part1 PATCH 04/13] x86/sev-snp: define page state change VMGEXIT structure

2021-04-02 Thread Borislav Petkov
On Thu, Apr 01, 2021 at 09:11:34AM -0500, Brijesh Singh wrote: > I guess I was trying to keep it in consistent with sev-es.h macro > definitions in which the command is used before the fields. In next > version, I will use the msb to lsb ordering. Yes pls. And then you could fix the sev-es.h

[PATCH] clone3: add option to change owner of newly created namespaces

2021-04-02 Thread Pavel Tikhomirov
Let's add a flag CLONE_OWNER_NS and clone_args.userns_fd field to specify a user namespace for clone3 which would become an owner of newly created namespaces. This owner is restricted to be a descendant of current user namespace. It means that we can do clone while in more privileged user

[PATCH 0/4] KVM: MIPS: cleanup TLB flushing callbacks

2021-04-02 Thread Paolo Bonzini
This series cleans up the flush_shadow_all and flush_shadow_memslot callbacks, turning them into a single function that can be called from kvm_arch_flush_remote_tlb. This lets MIPS use the generic TLB flushing code in the MMU notifiers. With the upcoming refactoring of generic MMU notifier code,

[PATCH 2/4] KVM: MIPS: rework flush_shadow_* callbacks into one that prepares the flush

2021-04-02 Thread Paolo Bonzini
Both trap-and-emulate and VZ have a single implementation that covers both .flush_shadow_all and .flush_shadow_memslot, and both of them end with a call to kvm_flush_remote_tlbs. Unify the callbacks into one and extract the call to kvm_flush_remote_tlbs. The next patches will pull it further out

[PATCH 3/4] KVM: MIPS: let generic code call prepare_flush_shadow

2021-04-02 Thread Paolo Bonzini
Since all calls to kvm_flush_remote_tlbs must be preceded by kvm_mips_callbacks->prepare_flush_shadow, repurpose kvm_arch_flush_remote_tlb to invoke it. This makes it possible to use the TLB flushing mechanism provided by the generic MMU notifier code. Signed-off-by: Paolo Bonzini ---

[PATCH 4/4] KVM: MIPS: defer flush to generic MMU notifier code

2021-04-02 Thread Paolo Bonzini
Return 1 from kvm_unmap_hva_range and kvm_set_spte_hva if a flush is needed, so that the generic code can coalesce the flushes. Signed-off-by: Paolo Bonzini --- arch/mips/kvm/mmu.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/arch/mips/kvm/mmu.c

[PATCH 1/4] KVM: constify kvm_arch_flush_remote_tlbs_memslot

2021-04-02 Thread Paolo Bonzini
memslots are stored in RCU and there should be no need to change them. Signed-off-by: Paolo Bonzini --- arch/arm64/kvm/arm.c | 2 +- arch/mips/kvm/mips.c | 2 +- arch/x86/kvm/mmu/mmu.c | 2 +- include/linux/kvm_host.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff

Re: [PATCH v1 2/2] scsi: pm8001: clean up for open brace

2021-04-02 Thread Bart Van Assche
On 4/2/21 2:08 AM, Luo Jiaxing wrote: > -static struct flash_command flash_command_table[] = > -{ > +static struct flash_command flash_command_table[] = { > {"set_nvmd",FLASH_CMD_SET_NVMD}, > {"update", FLASH_CMD_UPDATE}, > {"",FLASH_CMD_NONE} /* Last entry

Re: [PATCH v14 00/13] s390/vfio-ap: dynamic configuration support

2021-04-02 Thread Tony Krowiak
On 4/1/21 3:17 PM, Halil Pasic wrote: On Wed, 31 Mar 2021 11:22:43 -0400 Tony Krowiak wrote: Change log v13-v14: -- When testing I've experienced this kernel panic. I am able to recreate this, but only when the kernel is built with the debug_defconfig configuration. I'll

Re: [PATCH net-next v8 2/2] net: Add Qcom WWAN control driver

2021-04-02 Thread kernel test robot
Hi Loic, I love your patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Loic-Poulain/net-Add-a-WWAN-subsystem/20210402-220002 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git

[RESEND PATCH v4 2/3] gpio: thunderx: Utilize for_each_set_nbits macro

2021-04-02 Thread Syed Nayyar Waris
This patch reimplements the thunderx_gpio_set_multiple function in drivers/gpio/gpio-thunderx.c to use the new for_each_set_nbits macro. Instead of looping for each bank in thunderx_gpio_set_multiple function, now we can skip bank which is not set and save cycles. Cc: Robert Richter Cc: Bartosz

[RESEND PATCH v4 3/3] gpio: xilinx: Utilize generic bitmap_get_value and _set_value

2021-04-02 Thread Syed Nayyar Waris
This patch reimplements the xgpio_set_multiple() function in drivers/gpio/gpio-xilinx.c to use the new generic functions: bitmap_get_value() and bitmap_set_value(). The code is now simpler to read and understand. Moreover, instead of looping for each bit in xgpio_set_multiple() function, now we

Re: [PATCH] firmware: stratix10-svc: build only on 64-bit ARM

2021-04-02 Thread Greg KH
On Thu, Apr 01, 2021 at 10:13:29AM -0500, Dinh Nguyen wrote: > From: Krzysztof Kozlowski > > The Stratix10 service layer and RCU drivers are useful only on > Stratix10, so on ARMv8. Compile testing the RCU driver on 32-bit ARM > fails: > > drivers/firmware/stratix10-rsu.c: In function

Re: [PATCH v2] pseries: prevent free CPU ids to be reused on another node

2021-04-02 Thread Laurent Dufour
Thanks Nathan for reviewing this. Le 02/04/2021 à 15:34, Nathan Lynch a écrit : Hi Laurent, Laurent Dufour writes: When a CPU is hot added, the CPU ids are taken from the available mask from the lower possible set. If that set of values was previously used for CPU attached to a different

Re: [PATCH] dma-mapping: make map_benchmark compile into module

2021-04-02 Thread Christoph Hellwig
On Wed, Mar 24, 2021 at 07:33:23AM +, Song Bao Hua (Barry Song) wrote: > The requirement comes from an colleague who is frequently changing > the map-bench code for some customized test purpose. and he doesn't > want to build kernel image and reboot every time. So I moved the > requirement to

Re: [PATCH v2 0/6] NVIDIA Tegra memory improvements

2021-04-02 Thread Dmitry Osipenko
01.04.2021 20:54, Krzysztof Kozlowski пишет: > On 31/03/2021 01:04, Dmitry Osipenko wrote: >> Hi, >> >> This series replaces the raw voltage regulator with a power domain that >> will be managing SoC core voltage. The core power domain patches are still >> under review, but it's clear at this

[ANNOUNCE] 4.19.184-rt75

2021-04-02 Thread Clark Williams
Hello RT-list! I'm pleased to announce the 4.19.184-rt75 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v4.19-rt Head SHA1: e7b2a8a3acdb92b9336ed8fbcaa6b9cb827949e9 Or to build 4.19.184-rt75

Re: [PATCH v2 09/10] KVM: Don't take mmu_lock for range invalidation unless necessary

2021-04-02 Thread Sean Christopherson
On Fri, Apr 02, 2021, Paolo Bonzini wrote: > On 02/04/21 02:56, Sean Christopherson wrote: > > Avoid taking mmu_lock for unrelated .invalidate_range_{start,end}() > > notifications. Because mmu_notifier_count must be modified while holding > > mmu_lock for write, and must always be paired across

Re: [PATCH 3/3] srcu: Fix broken node geometry after early ssp init

2021-04-02 Thread Paul E. McKenney
On Fri, Apr 02, 2021 at 12:02:21PM +0200, Frederic Weisbecker wrote: > On Thu, Apr 01, 2021 at 06:12:41PM -0700, Paul E. McKenney wrote: > > On Fri, Apr 02, 2021 at 01:47:04AM +0200, Frederic Weisbecker wrote: > gg> > void __init srcu_init(void) > > > { > > > - struct srcu_struct *ssp; > > > +

Re: [PATCH] drivers core: don't do anything in device_del() when device_add() fail

2021-04-02 Thread Greg KH
On Thu, Apr 01, 2021 at 09:01:38AM -0400, Yufen Yu wrote: > Recently, our syzbot test reported NULL pointer dereference in > device_del() by injecting memory allocation fail in device_add(). Don't do that :) > For now, callers of device_add(), such as add_disk(), may ignore > device_add()'s fail

Re: [PATCH] tools: Fix a typo in kernel-chktaint

2021-04-02 Thread Randy Dunlap
On 4/2/21 12:05 AM, Masanari Iida wrote: > This patch fixes a spelling typo in kernel-chktaint > > Signed-off-by: Masanari Iida Acked-by: Randy Dunlap Thanks. > --- > tools/debugging/kernel-chktaint | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [RFC PATCH 02/15] mm: memcontrol: bail out early when !mm in get_mem_cgroup_from_mm

2021-04-02 Thread Johannes Weiner
On Tue, Mar 30, 2021 at 06:15:18PM +0800, Muchun Song wrote: > When mm is NULL, we do not need to hold rcu lock and call css_tryget for > the root memcg. And we also do not need to check !mm in every loop of > while. So bail out early when !mm. > > Signed-off-by: Muchun Song Good observation.

Re: [PATCH] kbuild: merge module sections under CONFIG_LD_DEAD_CODE_DATA_ELIMINATION too

2021-04-02 Thread Sami Tolvanen
On Fri, Apr 2, 2021 at 5:40 AM Alexander Lobakin wrote: > > When building with CONFIG_LD_DEAD_CODE_DATA_ELIMINATION, > -fdata-sections and -ffunction-sections are being enabled by the > top-level Makefile, and module section merging is also needed. > Expand the ifdef (and the comment block) to

[no subject]

2021-04-02 Thread Thompson michael
Hallo, Houd er rekening mee dat deze e-mail die naar uw postvak is gekomen geen fout is, maar specifiek aan u is gericht voor uw overweging. Ik heb een voorstel van ($7.500.000.00) achtergelaten door mijn overleden klant Ingenieur Carlos die dezelfde achternaam bij jou draagt, die hier in Lomé

[PATCH v4 18/20] x86: Convert to GENERIC_CMDLINE

2021-04-02 Thread Christophe Leroy
This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/x86/Kconfig| 45 ++--- arch/x86/kernel/setup.c | 17 ++-- 2 files changed, 4 insertions(+), 58 deletions(-) diff --git a/arch/x86/Kconfig

Re: [PATCH v3 05/17] arm: Convert to GENERIC_CMDLINE

2021-04-02 Thread Christophe Leroy
Le 26/03/2021 à 16:47, Rob Herring a écrit : On Fri, Mar 26, 2021 at 7:44 AM Christophe Leroy wrote: This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/arm/Kconfig | 38 +--

Re: [RFC PATCH 03/15] mm: memcontrol: remove the pgdata parameter of mem_cgroup_page_lruvec

2021-04-02 Thread Johannes Weiner
On Tue, Mar 30, 2021 at 06:15:19PM +0800, Muchun Song wrote: > All the callers of mem_cgroup_page_lruvec() just pass page_pgdat(page) > as the 2nd parameter to it (except isolate_migratepages_block()). But > for isolate_migratepages_block(), the page_pgdat(page) is also equal > to the local

Re: [PATCH v3 11/17] riscv: Convert to GENERIC_CMDLINE

2021-04-02 Thread Christophe Leroy
Le 26/03/2021 à 16:26, Rob Herring a écrit : On Fri, Mar 26, 2021 at 8:20 AM Christophe Leroy wrote: Le 26/03/2021 à 15:08, Andreas Schwab a écrit : On Mär 26 2021, Christophe Leroy wrote: diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index

Re: [PATCH bpf-next 3/5] libbpf: add low level TC-BPF API

2021-04-02 Thread Kumar Kartikeya Dwivedi
On Fri, Apr 02, 2021 at 05:49:29AM IST, Daniel Borkmann wrote: > On 3/31/21 11:44 AM, Kumar Kartikeya Dwivedi wrote: > > On Wed, Mar 31, 2021 at 02:55:47AM IST, Daniel Borkmann wrote: > > > Do we even need the _block variant? I would rather prefer to take the > > > chance > > > and make it as

<    1   2   3   4   5   6   7   8   9   >