Re: [PATCH] powerpc/bpf: Always reallocate BPF_REG_5, BPF_REG_AX and TMP_REG when possible

2022-01-13 Thread Naveen N. Rao
Christophe Leroy wrote: BPF_REG_5, BPF_REG_AX and TMP_REG are mapped on non volatile registers because there are not enough volatile registers, but they don't need to be preserved on function calls. So when some volatile registers become available, those registers can always be reallocated

Re: [PATCH] net: apple: bmac: Fix build since dev_addr constification

2022-01-13 Thread Jakub Kicinski
On Fri, 14 Jan 2022 14:13:16 +1100 Michael Ellerman wrote: > Since commit adeef3e32146 ("net: constify netdev->dev_addr") the bmac > driver no longer builds with the following errors (pmac32_defconfig): > > linux/drivers/net/ethernet/apple/bmac.c: In function ‘bmac_probe’: >

Re: [PATCH] net: apple: mace: Fix build since dev_addr constification

2022-01-13 Thread Jakub Kicinski
On Fri, 14 Jan 2022 14:12:52 +1100 Michael Ellerman wrote: > Since commit adeef3e32146 ("net: constify netdev->dev_addr") the mace > driver no longer builds with various errors (pmac32_defconfig): > > linux/drivers/net/ethernet/apple/mace.c: In function ‘mace_probe’: >

[PATCH] powerpc/perf: Fix power_pmu_wants_prompt_pmi to be defined only for CONFIG_PPC64

2022-01-13 Thread Athira Rajeev
power_pmu_wants_prompt_pmi is used to decide if PMI should be taken prompt. This is valid only for ppc64 and is used in CONFIG_PPC_BOOK3S_64 context. Hence include the function under config check for PPC64 Fixes warning for 32-bit compilation: >> arch/powerpc/perf/core-book3s.c:2455:6: warning:

[PATCH] net: apple: bmac: Fix build since dev_addr constification

2022-01-13 Thread Michael Ellerman
Since commit adeef3e32146 ("net: constify netdev->dev_addr") the bmac driver no longer builds with the following errors (pmac32_defconfig): linux/drivers/net/ethernet/apple/bmac.c: In function ‘bmac_probe’: linux/drivers/net/ethernet/apple/bmac.c:1287:20: error: assignment of read-only

[PATCH] net: apple: mace: Fix build since dev_addr constification

2022-01-13 Thread Michael Ellerman
Since commit adeef3e32146 ("net: constify netdev->dev_addr") the mace driver no longer builds with various errors (pmac32_defconfig): linux/drivers/net/ethernet/apple/mace.c: In function ‘mace_probe’: linux/drivers/net/ethernet/apple/mace.c:170:20: error: assignment of read-only location

[PATCH] powerpc/audit: Fix syscall_get_arch()

2022-01-13 Thread Christophe Leroy
Commit 770cec16cdc9 ("powerpc/audit: Simplify syscall_get_arch()") replaced test_tsk_thread_flag(task, TIF_32BIT)) by is_32bit_task(). But is_32bit_task() applies on current task while be want the test done on task 'task' So re-use test_tsk_thread_flag() instead. Reported-by: Dmitry V. Levin

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

2022-01-13 Thread Zi Yan
On 13 Jan 2022, at 9:57, Zi Yan wrote: > On 12 Jan 2022, at 6:01, David Hildenbrand wrote: > >> 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

Re: [PATCH] powerpc/audit: Simplify syscall_get_arch()

2022-01-13 Thread Dmitry V. Levin
On Fri, Aug 20, 2021 at 09:39:14AM +, Christophe Leroy wrote: > Make use of is_32bit_task() and CONFIG_CPU_LITTLE_ENDIAN > to simplify syscall_get_arch(). > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/include/asm/syscall.h | 15 +-- > 1 file changed, 5 insertions(+),

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

2022-01-13 Thread David Hildenbrand
On 13.01.22 16:46, Zi Yan wrote: > On 12 Jan 2022, at 6:04, David Hildenbrand wrote: > >> 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

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

2022-01-13 Thread Zi Yan
On 12 Jan 2022, at 6:04, David Hildenbrand wrote: > 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

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

2022-01-13 Thread Zi Yan
On 12 Jan 2022, at 6:01, David Hildenbrand wrote: > 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

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

2022-01-13 Thread Zi Yan
On 13 Jan 2022, at 7:28, David Hildenbrand wrote: > On 13.01.22 12:36, Mike Rapoport wrote: >> On Wed, Jan 12, 2022 at 11:54:49AM +0100, David Hildenbrand wrote: >>> On 05.01.22 22:47, Zi Yan wrote: From: Zi Yan This is done in addition to MIGRATE_ISOLATE pageblock merge

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

2022-01-13 Thread Zi Yan
On 12 Jan 2022, at 5:54, David Hildenbrand wrote: > 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().

Re: [PATCH] powerpc: dts: t104xrdb: fix phy type for FMAN 4/5

2022-01-13 Thread Vladimir Oltean
On Thu, Dec 30, 2021 at 06:11:21PM +0300, Maxim Kiselev wrote: > T1040RDB has two RTL8211E-VB phys which requires setting > of internal delays for correct work. > > Changing the phy-connection-type property to `rgmii-id` > will fix this issue. > > Signed-off-by: Maxim Kiselev > Reviewed-by:

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

2022-01-13 Thread David Hildenbrand
On 13.01.22 12:36, Mike Rapoport wrote: > On Wed, Jan 12, 2022 at 11:54:49AM +0100, David Hildenbrand wrote: >> 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

[PATCH v3] powerpc/papr_scm: Implement initial support for injecting smart errors

2022-01-13 Thread Vaibhav Jain
Presently PAPR doesn't support injecting smart errors on an NVDIMM. This makes testing the NVDIMM health reporting functionality difficult as simulating NVDIMM health related events need a hacked up qemu version. To solve this problem this patch proposes simulating certain set of NVDIMM health

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

2022-01-13 Thread Mike Rapoport
On Wed, Jan 12, 2022 at 11:54:49AM +0100, David Hildenbrand wrote: > 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

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

2022-01-13 Thread David Hildenbrand
On 12.01.22 20:33, Hari Bathini wrote: > 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

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

2022-01-13 Thread David Hildenbrand
> +{ > + if (!cma) > + return; Do we really need that check for NULL? > + > + cma->reserve_pages_on_error = true; > +} > + > /** > * cma_init_reserved_mem() - create custom contiguous area from reserved > memory > * @base: Base address of the reserved area > @@ -204,6