Re: Low-res tick handler device not going to ONESHOT_STOPPED when tick is stopped (was: rcu_sched self-detected stall on CPU)

2022-04-14 Thread Paul E. McKenney
On Wed, Apr 13, 2022 at 04:10:02PM +1000, Nicholas Piggin wrote: > Oops, fixed subject... > > Excerpts from Nicholas Piggin's message of April 13, 2022 3:11 pm: > > +Daniel, Thomas, Viresh > > > > Subject: Re: rcu_sched self-detected stall on CPU > > > > Excerpts from Michael Ellerman's message

Re: [RFC v4 PATCH 2/5] powerpc/crash hp: introduce a new config option CRASH_HOTPLUG

2022-04-14 Thread Laurent Dufour
On 11/04/2022, 10:43:54, Sourabh Jain wrote: > The option CRASH_HOTPLUG enables, in kernel update to kexec segments on > hotplug events. > > All the updates needed on the capture kernel load path in the kernel for > both kexec_load and kexec_file_load system will be kept under this config. > >

Re: [RFC v4 PATCH 5/5] powerpc/crash hp: add crash hotplug support for kexec_load

2022-04-14 Thread Laurent Dufour
On 11/04/2022, 10:43:57, Sourabh Jain wrote: > The kernel changes needed for crash hotplug support for kexec_load system > calls are similar to kexec_file_load (which has already been implemented > in earlier patches) except for finding the index of the FDT segment in the > kexec segment array.

Re: [RFC v4 PATCH 3/5] powrepc/crash hp: update kimage_arch struct

2022-04-14 Thread Laurent Dufour
On 11/04/2022, 10:43:55, Sourabh Jain wrote: > Two new members fdt_index and fdt_index_valid are added in kimage_arch > struct to track the FDT kexec segment. These new members of kimage_arch > struct will help the crash hotplug handler to easily access the FDT > segment from the kexec segment

Re: [RFC v4 PATCH 4/5] powerpc/crash hp: add crash hotplug support for kexec_file_load

2022-04-14 Thread Laurent Dufour
On 11/04/2022, 10:43:56, Sourabh Jain wrote: > Two major changes are done to enable the crash CPU hotplug handler. > Firstly, updated the kexec load path to prepare kimage for hotplug > changes, and secondly, implemented the crash hotplug handler. > > On the kexec load path, the memsz allocation

[PATCH 5.4 255/475] tty: hvc: fix return value of __setup handler

2022-04-14 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 53819a0d97aace1425bb042829e3446952a9e8a9 ] __setup() handlers should return 1 to indicate that the boot option has been handled or 0 to indicate that it was not handled. Add a pr_warn() message if the option value is invalid and then always return 1. Link:

[PATCH 4.19 176/338] tty: hvc: fix return value of __setup handler

2022-04-14 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 53819a0d97aace1425bb042829e3446952a9e8a9 ] __setup() handlers should return 1 to indicate that the boot option has been handled or 0 to indicate that it was not handled. Add a pr_warn() message if the option value is invalid and then always return 1. Link:

Re: [PATCH V3 0/2] Fix perf bench numa to work with machines having #CPUs > 1K

2022-04-14 Thread Arnaldo Carvalho de Melo
Em Tue, Apr 12, 2022 at 10:10:57PM +0530, Athira Rajeev escreveu: > The perf benchmark for collections: numa hits failure in system > configuration with CPU's more than 1024. These benchmarks uses > "sched_getaffinity" and "sched_setaffinity" in the code to > work with affinity. Thanks, applied.

[PATCH] ASoC: fsl_sai: using pm_runtime_resume_and_get instead of pm_runtime_get_sync

2022-04-14 Thread cgel . zte
From: Minghao Chi Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and pm_runtime_put_noidle. This change is just to simplify the code, no actual functional changes. Reported-by: Zeal Robot Signed-off-by: Minghao Chi --- sound/soc/fsl/fsl_sai.c | 6 ++ 1 file changed, 2

Re: [PATCH V7 4/7] sparc/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-14 Thread Christophe Leroy
Le 14/04/2022 à 08:21, Anshuman Khandual a écrit : > This defines and exports a platform specific custom vm_get_page_prot() via > subscribing ARCH_HAS_VM_GET_PAGE_PROT. It localizes arch_vm_get_page_prot() > as sparc_vm_get_page_prot() and moves near vm_get_page_prot(). > > Cc: "David S.

[PATCH V7 7/7] mm/mmap: Drop arch_vm_get_page_pgprot()

2022-04-14 Thread Anshuman Khandual
There are no platforms left which use arch_vm_get_page_prot(). Just drop generic arch_vm_get_page_prot(). Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-ker...@vger.kernel.org Reviewed-by: Christophe Leroy Reviewed-by: Catalin Marinas Signed-off-by: Anshuman Khandual ---

[PATCH V7 6/7] mm/mmap: Drop arch_filter_pgprot()

2022-04-14 Thread Anshuman Khandual
There are no platforms left which subscribe ARCH_HAS_FILTER_PGPROT. Hence drop generic arch_filter_pgprot() and also config ARCH_HAS_FILTER_PGPROT. Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-ker...@vger.kernel.org Reviewed-by: Christophe Leroy Reviewed-by: Catalin Marinas

[PATCH V7 5/7] x86/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-14 Thread Anshuman Khandual
From: Christoph Hellwig This defines and exports a platform specific custom vm_get_page_prot() via subscribing ARCH_HAS_VM_GET_PAGE_PROT. This also unsubscribes from config ARCH_HAS_FILTER_PGPROT, after dropping off arch_filter_pgprot() and arch_vm_get_page_prot(). Cc: Thomas Gleixner Cc: Ingo

[PATCH V7 4/7] sparc/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-14 Thread Anshuman Khandual
This defines and exports a platform specific custom vm_get_page_prot() via subscribing ARCH_HAS_VM_GET_PAGE_PROT. It localizes arch_vm_get_page_prot() as sparc_vm_get_page_prot() and moves near vm_get_page_prot(). Cc: "David S. Miller" Cc: Khalid Aziz Cc: sparcli...@vger.kernel.org Cc:

[PATCH V7 3/7] arm64/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-14 Thread Anshuman Khandual
This defines and exports a platform specific custom vm_get_page_prot() via subscribing ARCH_HAS_VM_GET_PAGE_PROT. It localizes arch_vm_get_page_prot() and moves it near vm_get_page_prot(). Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Cc:

[PATCH V7 2/7] powerpc/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-14 Thread Anshuman Khandual
This defines and exports a platform specific custom vm_get_page_prot() via subscribing ARCH_HAS_VM_GET_PAGE_PROT. While here, this also localizes arch_vm_get_page_prot() as __vm_get_page_prot() and moves it near vm_get_page_prot(). Cc: Michael Ellerman Cc: Paul Mackerras Cc:

[PATCH V7 1/7] mm/mmap: Add new config ARCH_HAS_VM_GET_PAGE_PROT

2022-04-14 Thread Anshuman Khandual
Add a new config ARCH_HAS_VM_GET_PAGE_PROT, which when subscribed enables a given platform to define its own vm_get_page_prot() but still utilizing the generic protection_map[] array. Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-ker...@vger.kernel.org Reviewed-by: Christophe Leroy

[PATCH V7 0/7] mm/mmap: Drop arch_vm_get_page_prot() and arch_filter_pgprot()

2022-04-14 Thread Anshuman Khandual
protection_map[] is an array based construct that translates given vm_flags combination. This array contains page protection map, which is populated by the platform via [__S000 .. __S111] and [__P000 .. __P111] exported macros. Primary usage for protection_map[] is for vm_get_page_prot(), which is

[RESEND][PATCH] KVM: PPC: Book3S HV: fix incorrect NULL check on list iterator

2022-04-14 Thread Xiaomeng Tong
The bug is here: if (!p) return ret; The list iterator value 'p' will *always* be set and non-NULL by list_for_each_entry(), so it is incorrect to assume that the iterator value will be NULL if the list is empty or no element is found. To fix the bug, Use a new value