[PATCH] powerpc: Move patch sites out of asm-prototypes.h

2022-08-17 Thread Michael Ellerman
The definitions for the patch sites etc. don't belong in asm-prototypes.h, they are not EXPORT'ed asm symbols. Move them into sections.h which is traditionally used for asm symbols. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/asm-prototypes.h | 13 -

Re: [PATCH v2 1/4] Make place for common balloon code

2022-08-17 Thread Ritesh Harjani
On 22/08/16 12:41PM, Alexander Atanasov wrote: > File already contains code that is common along balloon > drivers so rename it to reflect its contents. > mm/balloon_compaction.c -> mm/balloon_common.c > > Signed-off-by: Alexander Atanasov > --- > MAINTAINERS

[powerpc:fixes] BUILD SUCCESS f889a2e89ea5b4db5cf09765ee5e310be43c7b6f

2022-08-17 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git fixes branch HEAD: f889a2e89ea5b4db5cf09765ee5e310be43c7b6f selftests/powerpc: Add missing PMU selftests to .gitignores elapsed time: 724m configs tested: 110 configs skipped: 2 The following configs have been

Re: [PATCH v8 27/31] Kbuild: add Rust support

2022-08-17 Thread Miguel Ojeda
On Wed, Aug 17, 2022 at 5:51 PM Arnd Bergmann wrote: > > Thanks for the explanation. My hope was that building the kernel Don't mention it! > would actually be easier here than building the more complicated > rust user space. Yeah, the kernel is complicated for them in different ways, so I

Re: [PATCH v8 27/31] Kbuild: add Rust support

2022-08-17 Thread Miguel Ojeda
On Wed, Aug 17, 2022 at 6:11 PM Björn Roy Baron wrote: > > There is already a prototype of such a driver. It can be found at > https://github.com/Rust-GCC/cargo-gccrs. Unlike what the name suggests it is > not cargo specific. It consists of two binaries. The first calls cargo, but > tells it

Re: [PATCH v2 1/2] mm/migrate_device.c: Copy pte dirty bit to page

2022-08-17 Thread Peter Xu
On Wed, Aug 17, 2022 at 02:41:19AM -0700, Nadav Amit wrote: > 4. Having multiple TLB flushing infrastructures makes all of these > discussions very complicated and unmaintainable. I need to convince myself > in every occasion (including this one) whether calls to > flush_tlb_batched_pending() and

Re: [PATCH v2 1/2] mm/migrate_device.c: Copy pte dirty bit to page

2022-08-17 Thread Peter Xu
On Wed, Aug 17, 2022 at 03:41:16PM +1000, Alistair Popple wrote: > My primary concern with batching is ensuring a CPU write after clearing > a clean PTE but before flushing the TLB does the "right thing" (ie. faults > if the PTE is not present). Fair enough. Exactly I have that same concern. But

Re: [PATCH 5/5] powerpc/pci: Add config option for using all 256 PCI buses

2022-08-17 Thread Pali Rohár
On Tuesday 26 July 2022 13:10:01 Pali Rohár wrote: > On Tuesday 26 July 2022 21:02:22 Michael Ellerman wrote: > > Pali Rohár writes: > > > On Wednesday 06 July 2022 12:43:08 Pali Rohár wrote: > > >> By default on PPC32 are PCI bus numbers unique across all PCI domains. > > >> So system could have

[PATCH 1/2] powerpc/pci: Allow to disable filling deprecated pci-OF-bus-map

2022-08-17 Thread Pali Rohár
Creating or filling pci-OF-bus-map property in the device-tree is deprecated since May 2006 [1]. Allow to disable filling this property by unsetting config option CONFIG_PPC_PCI_OF_BUS_MAP_FILL for remaining chrp and powermac code. Disabling of pci-OF-bus-map property allows to enable new option

[PATCH 2/2] powerpc/pci: Enable PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT by default

2022-08-17 Thread Pali Rohár
It makes sense to enable CONFIG_PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT by default (when possible by dependencies) to take advantages of all 256 PCI buses on each PCI domain, like it is already on all other kernel architectures. Signed-off-by: Pali Rohár --- arch/powerpc/Kconfig | 1 + 1 file changed,

Re: [PATCH] powerpc/pci: Fix get_phb_number() locking

2022-08-17 Thread Pali Rohár
On Monday 15 August 2022 16:55:50 Michael Ellerman wrote: > The recent change to get_phb_number() causes a DEBUG_ATOMIC_SLEEP > warning on some systems: > > BUG: sleeping function called from invalid context at > kernel/locking/mutex.c:580 > in_atomic(): 1, irqs_disabled(): 0, non_block: 0,

Re: [PATCH v8 27/31] Kbuild: add Rust support

2022-08-17 Thread Arnd Bergmann
On Wed, Aug 17, 2022 at 5:13 PM Miguel Ojeda wrote: > On Wed, Aug 17, 2022 at 4:40 PM Arnd Bergmann wrote: > > > > I tried enabling rust support in the gcc builds I provide at > > https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/arm64/12.1.0/ > > Thanks for giving it a go! > > > to

Re: [PATCH v8 27/31] Kbuild: add Rust support

2022-08-17 Thread Miguel Ojeda
Hi Arnd, On Wed, Aug 17, 2022 at 4:40 PM Arnd Bergmann wrote: > > Hi Miguel, > > I tried enabling rust support in the gcc builds I provide at > https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/arm64/12.1.0/ Thanks for giving it a go! > to make this more accessible, but it appears

Re: [PATCH v8 27/31] Kbuild: add Rust support

2022-08-17 Thread Arnd Bergmann
On Tue, Aug 2, 2022 at 3:50 AM Miguel Ojeda wrote: > > +# These flags apply to all Rust code in the tree, including the kernel and > +# host programs. > +export rust_common_flags := --edition=2021 \ > + -Zbinary_dep_depinfo=y \ > +

Re: [PATCH v3 11/14] perf/hw_breakpoint: Reduce contention with large number of tasks

2022-08-17 Thread Peter Zijlstra
On Mon, Jul 04, 2022 at 05:05:11PM +0200, Marco Elver wrote: > +static bool bp_constraints_is_locked(struct perf_event *bp) > +{ > + struct mutex *tsk_mtx = get_task_bps_mutex(bp); > + > + return percpu_is_write_locked(_cpuinfo_sem) || > +(tsk_mtx ? mutex_is_locked(tsk_mtx) : >

Re: [PATCH v3 10/14] locking/percpu-rwsem: Add percpu_is_write_locked() and percpu_is_read_locked()

2022-08-17 Thread Peter Zijlstra
On Mon, Jul 04, 2022 at 05:05:10PM +0200, Marco Elver wrote: > +bool percpu_is_read_locked(struct percpu_rw_semaphore *sem) > +{ > + return per_cpu_sum(*sem->read_count) != 0; > +} > +EXPORT_SYMBOL_GPL(percpu_is_read_locked); I don't think this is correct; read_count can have spurious

Re: [PATCH v2 1/2] mm/migrate_device.c: Copy pte dirty bit to page

2022-08-17 Thread Nadav Amit
On Aug 17, 2022, at 12:17 AM, Huang, Ying wrote: > Alistair Popple writes: > >> Peter Xu writes: >> >>> On Wed, Aug 17, 2022 at 11:49:03AM +1000, Alistair Popple wrote: Peter Xu writes: > On Tue, Aug 16, 2022 at 04:10:29PM +0800, huang ying wrote: >>> @@ -193,11 +194,10

Re: [PATCH v2 1/2] mm/migrate_device.c: Copy pte dirty bit to page

2022-08-17 Thread Huang, Ying
Alistair Popple writes: > Peter Xu writes: > >> On Wed, Aug 17, 2022 at 11:49:03AM +1000, Alistair Popple wrote: >>> >>> Peter Xu writes: >>> >>> > On Tue, Aug 16, 2022 at 04:10:29PM +0800, huang ying wrote: >>> >> > @@ -193,11 +194,10 @@ static int migrate_vma_collect_pmd(pmd_t *pmdp, >>> >>

Re: [RFC 0/3] Asynchronous EEH recovery

2022-08-17 Thread Oliver O'Halloran
On Tue, Aug 16, 2022 at 1:29 PM Ganesh Goudar wrote: > > Hi, > > EEH reocvery is currently serialized and these patches shorten > the time taken for EEH recovery by making the recovery to run > in parallel. The original author of these patches is Sam Bobroff, > I have rebased and tested these

Re: [PATCH] arch: mm: rename FORCE_MAX_ZONEORDER to ARCH_FORCE_MAX_ORDER

2022-08-17 Thread Michael Ellerman
Zi Yan writes: > From: Zi Yan > > This Kconfig option is used by individual arch to set its desired > MAX_ORDER. Rename it to reflect its actual use. > > Acked-by: Mike Rapoport > Signed-off-by: Zi Yan ... > arch/powerpc/Kconfig | 2 +- >

Re: [PATCH] MAINTAINERS: Remove myself as EEH maintainer

2022-08-17 Thread Mahesh J Salgaonkar
On 2022-08-11 17:19:47 Thu, Oliver O'Halloran wrote: > On Thu, Aug 11, 2022 at 4:22 PM Michael Ellerman wrote: > > > > Russell Currey writes: > > > I haven't touched EEH in a long time I don't have much knowledge of the > > > subsystem at this point either, so it's misleading to have me as a > >

Re: [PATCH] ASoC: fsl_sai: Remove unnecessary FIFO reset in ISR

2022-08-17 Thread Nicolin Chen
On Tue, Aug 16, 2022 at 10:41 PM Shengjiu Wang wrote: > > The FIFO reset drops the words in the FIFO, which may cause > channel swap when SAI module is running, especially when the > DMA speed is low. So it is not good to do FIFO reset in ISR, > then remove the operation. I don't recall the

Re: [PATCH v4 2/2] selftests/powerpc: Add a test for execute-only memory

2022-08-17 Thread Jordan Niethe
On Wed, 2022-08-17 at 15:06 +1000, Russell Currey wrote: > From: Nicholas Miehlbradt > > This selftest is designed to cover execute-only protections > on the Radix MMU but will also work with Hash. > > The tests are based on those found in pkey_exec_test with modifications > to use the generic

Re: [PATCH v2 1/2] mm/migrate_device.c: Copy pte dirty bit to page

2022-08-17 Thread Alistair Popple
Peter Xu writes: > On Wed, Aug 17, 2022 at 11:49:03AM +1000, Alistair Popple wrote: >> >> Peter Xu writes: >> >> > On Tue, Aug 16, 2022 at 04:10:29PM +0800, huang ying wrote: >> >> > @@ -193,11 +194,10 @@ static int migrate_vma_collect_pmd(pmd_t *pmdp, >> >> > bool