Re: [5.16.0] build error on unrecognized opcode: ptesync

2022-01-12 Thread Mike
Hmm, why on earth did it historically compile though, from what I gathered before my hand fell off, -maltivec was removed from arch/powerpc/mm, I ran out of hard drive compiling ofc. but it seems happy, >Also please prefer CONFIG_PPC64 to __powerpc64__ Copy pasted the style in of the file... I u

Re: Linux kernel: powerpc: KVM guest can trigger host crash on Power8

2022-01-12 Thread John Paul Adrian Glaubitz
Hi Michael! On 1/9/22 23:17, John Paul Adrian Glaubitz wrote: > On 1/7/22 12:20, John Paul Adrian Glaubitz wrote: >>> Can you separately test with (on the host): >>> >>> # echo 0 > /sys/module/kvm_hv/parameters/dynamic_mt_modes >> >> I'm trying to turn off "dynamic_mt_modes" first and see if that

[PATCH v2 2/2] powerpc/fadump: opt out from freeing pages on cma activation failure

2022-01-12 Thread Hari Bathini
With commit a4e92ce8e4c8 ("powerpc/fadump: Reservationless firmware assisted dump"), Linux kernel's Contiguous Memory Allocator (CMA) based reservation was introduced in fadump. That change was aimed at using CMA to let applications utilize the memory reserved for fadump while blocking it from bein

[PATCH v2 1/2] mm/cma: provide option to opt out from exposing pages on activation failure

2022-01-12 Thread Hari Bathini
Commit 072355c1cf2d ("mm/cma: expose all pages to the buddy if activation of an area fails") started exposing all pages to buddy allocator on CMA activation failure. But there can be CMA users that want to handle the reserved memory differently on CMA allocation failure. Provide an option to opt ou

[PATCH v2 0/2] powerpc/fadump: handle CMA activation failure appropriately

2022-01-12 Thread Hari Bathini
While commit a4e92ce8e4c8 ("powerpc/fadump: Reservationless firmware assisted dump"), introduced Linux kernel's Contiguous Memory Allocator (CMA) based reservation for fadump, it came with the assumption that the memory remains reserved even if CMA activation fails. It ensures no kernel pages resid

Re: [PATCH v2] powerpc: dts: t1040rdb: fix ports names for Seville Ethernet switch

2022-01-12 Thread Vladimir Oltean
On Tue, Jan 11, 2022 at 08:37:23PM +0300, Maxim wrote: > From: Maxim Kiselev > > On board rev A, the network interface labels for the switch ports > written on the front panel are different than on rev B and later. > > This patch fixes network interface names for the switch ports according > to

Re: linux-next: manual merge of the audit tree with the powerpc tree

2022-01-12 Thread Paul Moore
On Fri, Dec 17, 2021 at 9:11 AM Christophe Leroy wrote: > Le 17/12/2021 à 00:04, Paul Moore a écrit : > > On Thu, Dec 16, 2021 at 4:08 AM Christophe Leroy > > wrote: > >> Thanks Cédric, I've now been able to install debian PPC32 port of DEBIAN > >> 11 on QEMU and run the tests. > >> > >> I follow

Re: [PATCH 07/23] membarrier: Rewrite sync_core_before_usermode() and improve documentation

2022-01-12 Thread Mathieu Desnoyers
- On Jan 8, 2022, at 11:43 AM, Andy Lutomirski l...@kernel.org wrote: > The old sync_core_before_usermode() comments suggested that a > non-icache-syncing return-to-usermode instruction is x86-specific and that > all other architectures automatically notice cross-modified code on return > to u

Re: [PATCH 4/5] uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h

2022-01-12 Thread Christoph Hellwig
On Wed, Jan 12, 2022 at 01:08:24PM +0100, Arnd Bergmann wrote: > > I don't have a strong opinion here. If we were taking symbols away that > > were previously visible to userland it would be one thing, but since > > we're just adding symbols that may not have been there before, this > > seems less

Re: [PATCH 06/23] powerpc/membarrier: Remove special barrier on mm switch

2022-01-12 Thread Mathieu Desnoyers
- On Jan 8, 2022, at 11:43 AM, Andy Lutomirski l...@kernel.org wrote: > powerpc did the following on some, but not all, paths through > switch_mm_irqs_off(): > > /* >* Only need the full barrier when switching between processes. >* Barrier when switching from kernel to u

Re: [PATCH 1/1] powerpc/e500/qemu-e500: allow core to idle without waiting

2022-01-12 Thread Scott Wood
On Wed, 2022-01-12 at 12:24 +0100, Joachim Wiberg wrote: > From: Tobias Waldekranz > > This means an idle guest won't needlessly consume an entire core on > the host, waiting for work to show up. > > Signed-off-by: Tobias Waldekranz > Signed-off-by: Joachim Wiberg > --- >  arch/powerpc/platfor

Re: [PATCH v5] powerpc/pseries: read the lpar name from the firmware

2022-01-12 Thread Laurent Dufour
On 11/01/2022, 23:40:27, Michael Ellerman wrote: > Tyrel Datwyler writes: >> On 1/6/22 8:13 AM, Laurent Dufour wrote: >>> The LPAR name may be changed after the LPAR has been started in the HMC. >>> In that case lparstat command is not reporting the updated value because it >>> reads it from the d

Re: [PATCH 4/5] uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h

2022-01-12 Thread Arnd Bergmann
On Wed, Jan 12, 2022 at 12:15 PM Jeff Layton wrote: > On Wed, 2022-01-12 at 09:28 +0100, Arnd Bergmann wrote: > > On Wed, Jan 12, 2022 at 8:56 AM Christoph Hellwig wrote: > > > > Exactly, that is the tradeoff, which is why I'd like the flock maintainers > > to say which way they prefer. We can ei

[PATCH 1/1] powerpc/e500/qemu-e500: allow core to idle without waiting

2022-01-12 Thread Joachim Wiberg
From: Tobias Waldekranz This means an idle guest won't needlessly consume an entire core on the host, waiting for work to show up. Signed-off-by: Tobias Waldekranz Signed-off-by: Joachim Wiberg --- arch/powerpc/platforms/85xx/qemu_e500.c | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [PATCH 4/5] uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h

2022-01-12 Thread Jeff Layton
On Wed, 2022-01-12 at 09:28 +0100, Arnd Bergmann wrote: > On Wed, Jan 12, 2022 at 8:56 AM Christoph Hellwig wrote: > > > > On Tue, Jan 11, 2022 at 04:33:30PM +0100, Arnd Bergmann wrote: > > > This is a very subtle change to the exported UAPI header contents: > > > On 64-bit architectures, the thr

Re: [RFC PATCH v3 3/8] mm: migrate: allocate the right size of non hugetlb or THP compound pages.

2022-01-12 Thread David Hildenbrand
On 05.01.22 22:47, Zi Yan wrote: > From: Zi Yan > > alloc_migration_target() is used by alloc_contig_range() and non-LRU > movable compound pages can be migrated. Current code does not allocate the > right page size for such pages. Check THP precisely using > is_transparent_huge() and add allocat

Re: [RFC PATCH v3 2/8] mm: compaction: handle non-lru compound pages properly in isolate_migratepages_block().

2022-01-12 Thread David Hildenbrand
On 05.01.22 22:47, Zi Yan wrote: > From: Zi Yan > > In isolate_migratepages_block(), a !PageLRU tail page can be encountered > when the page is larger than a pageblock. Use compound head page for the > checks inside and skip the entire compound page when isolation succeeds. > This will currentl

Re: [RFC PATCH v3 1/8] mm: page_alloc: avoid merging non-fallbackable pageblocks with others.

2022-01-12 Thread David Hildenbrand
On 05.01.22 22:47, Zi Yan wrote: > From: Zi Yan > > This is done in addition to MIGRATE_ISOLATE pageblock merge avoidance. > It prepares for the upcoming removal of the MAX_ORDER-1 alignment > requirement for CMA and alloc_contig_range(). > > MIGRARTE_HIGHATOMIC should not merge with other migra

Re: consolidate the compat fcntl definitions

2022-01-12 Thread Sergey Shtylyov
Hello! On 1/11/22 11:35 AM, Christoph Hellwig wrote: > currenty the compat fcnt definitions are duplicate for all compat fcntl? > architectures, and the native fcntl64 definitions aren't even usable > from userspace due to a bogus CONFIG_64BIT ifdef. This series tries > to sort out all that

Re: [PATCH 1/2] mm/cma: provide option to opt out from exposing pages on activation failure

2022-01-12 Thread Hari Bathini
On 11/01/22 8:06 pm, David Hildenbrand wrote: On 06.01.22 13:01, Hari Bathini wrote: To answer the question, fadump does not want the memory to be used for kernel pages, if CMA activation fails... Okay, so what you want is a reserved region, and if possible, let CMA use that memory for oth

Re: [PATCH 4/5] uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h

2022-01-12 Thread Arnd Bergmann
On Wed, Jan 12, 2022 at 8:56 AM Christoph Hellwig wrote: > > On Tue, Jan 11, 2022 at 04:33:30PM +0100, Arnd Bergmann wrote: > > This is a very subtle change to the exported UAPI header contents: > > On 64-bit architectures, the three unusable numbers are now always > > shown, rather than depending

Re: [PATCH 4/5] uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h

2022-01-12 Thread Christoph Hellwig
On Tue, Jan 11, 2022 at 04:33:30PM +0100, Arnd Bergmann wrote: > This is a very subtle change to the exported UAPI header contents: > On 64-bit architectures, the three unusable numbers are now always > shown, rather than depending on a user-controlled symbol. Well, the change is bigger and less s