[5.16.0-rc5][ppc][net] kernel oops when hotplug remove of vNIC interface

2022-01-05 Thread Abdul Haleem
Greeting's Mainline kernel 5.16.0-rc5 panics when DLPAR ADD of vNIC device on my Powerpc LPAR Perform below dlpar commands in a loop from linux OS drmgr -r -c slot -s U9080.HEX.134C488-V1-C3 -w 5 -d 1 drmgr -a -c slot -s U9080.HEX.134C488-V1-C3 -w 5 -d 1 after 7th iteration, the kernel panic

[PATCH]powerpc/xmon: Dump XIVE information for online-only processors.

2022-01-05 Thread Sachin Sant
dxa command in XMON debugger iterates through all possible processors. As a result, empty lines are printed even for processors which are not online. CPU 47:pp=00 CPPR=ff IPI=0x0040002f PQ=-- EQ idx=699 T=0 CPU 48: CPU 49: Restrict XIVE information(dxa) to be displayed for onlin

Re: [PATCH]powerpc/xmon: Dump XIVE information for online-only processors.

2022-01-05 Thread Cédric Le Goater
On 1/5/22 15:17, Sachin Sant wrote: dxa command in XMON debugger iterates through all possible processors. As a result, empty lines are printed even for processors which are not online. CPU 47:pp=00 CPPR=ff IPI=0x0040002f PQ=-- EQ idx=699 T=0 CPU 48: CPU 49: Restrict XIVE info

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

2022-01-05 Thread Laurent Dufour
Happy New Year, Michael! Do you consider taking that patch soon? Thanks, Laurent. On 07/12/2021, 18:11:09, 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 fro

Re: [5.16.0-rc5][ppc][net] kernel oops when hotplug remove of vNIC interface

2022-01-05 Thread Jakub Kicinski
On Wed, 5 Jan 2022 13:56:53 +0530 Abdul Haleem wrote: > Greeting's > > Mainline kernel 5.16.0-rc5 panics when DLPAR ADD of vNIC device on my > Powerpc LPAR > > Perform below dlpar commands in a loop from linux OS > > drmgr -r -c slot -s U9080.HEX.134C488-V1-C3 -w 5 -d 1 > drmgr -a -c slot -s U9

[PATCH] ethernet: ibmveth: use default_groups in kobj_type

2022-01-05 Thread Greg Kroah-Hartman
There are currently 2 ways to create a set of sysfs files for a kobj_type, through the default_attrs field, and the default_groups field. Move the ibmveth sysfs code to use default_groups field which has been the preferred way since aa30f47cf666 ("kobject: Add support for default attribute groups

Re: [PATCH] ethernet: ibmveth: use default_groups in kobj_type

2022-01-05 Thread Tyrel Datwyler
On 1/5/22 10:41 AM, Greg Kroah-Hartman wrote: > There are currently 2 ways to create a set of sysfs files for a > kobj_type, through the default_attrs field, and the default_groups > field. Move the ibmveth sysfs code to use default_groups > field which has been the preferred way since aa30f47cf66

[RFC PATCH v3 4/8] mm: make alloc_contig_range work at pageblock granularity

2022-01-05 Thread Zi Yan
From: Zi Yan alloc_contig_range() worked at MAX_ORDER-1 granularity to avoid merging pageblocks with different migratetypes. It might unnecessarily convert extra pageblocks at the beginning and at the end of the range. Change alloc_contig_range() to work at pageblock granularity. It is done by r

[RFC PATCH v3 0/8] Use pageblock_order for cma and alloc_contig_range alignment.

2022-01-05 Thread Zi Yan
From: Zi Yan Hi all, This patchset tries to remove the MAX_ORDER - 1 alignment requirement for CMA and alloc_contig_range(). It prepares for my upcoming changes to make MAX_ORDER adjustable at boot time[1]. It is on top of mmotm-2021-12-29-20-07. The MAX_ORDER - 1 alignment requirement comes fr

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

2022-01-05 Thread Zi Yan
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 allocation support for non-LRU compound pages. Sign

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

2022-01-05 Thread Zi Yan
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 migratetypes like MIGRATE_ISOLATE and MIGRARTE_CMA[1

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

2022-01-05 Thread Zi Yan
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. Signed-off-by: Zi Yan --- mm/compaction.c | 10 +++--- 1 f

[RFC PATCH v3 6/8] mm: cma: use pageblock_order as the single alignment

2022-01-05 Thread Zi Yan
From: Zi Yan Now alloc_contig_range() works at pageblock granularity. Change CMA allocation, which uses alloc_contig_range(), to use pageblock_order alignment. Signed-off-by: Zi Yan --- include/linux/mmzone.h | 5 + kernel/dma/contiguous.c | 2 +- mm/cma.c| 6 ++ mm/pa

[RFC PATCH v3 8/8] arch: powerpc: adjust fadump alignment to be pageblock aligned.

2022-01-05 Thread Zi Yan
From: Zi Yan CMA only requires pageblock alignment now. Change CMA alignment in fadump too. Signed-off-by: Zi Yan --- arch/powerpc/include/asm/fadump-internal.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/fadump-internal.h b/arch/powerpc/inc

[RFC PATCH v3 7/8] drivers: virtio_mem: use pageblock size as the minimum virtio_mem size.

2022-01-05 Thread Zi Yan
From: Zi Yan alloc_contig_range() now only needs to be aligned to pageblock_order, drop virtio_mem size requirement that it needs to be the max of pageblock_order and MAX_ORDER. Signed-off-by: Zi Yan --- drivers/virtio/virtio_mem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[RFC PATCH v3 5/8] mm: page_isolation: check specified range for unmovable pages during isolation.

2022-01-05 Thread Zi Yan
From: Zi Yan Enable set_migratetype_isolate() to check specified sub-range for unmovable pages during isolation. Page isolation is done at max(MAX_ORDER_NR_PAEGS, pageblock_nr_pages) granularity, but not all pages within that granularity are intended to be isolated. For example, alloc_contig_rang

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

2022-01-05 Thread Nathan Lynch
Laurent Dufour writes: > On 07/12/2021, 18:11:09, 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 device tree which is read at boot time. >> >> How

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

2022-01-05 Thread Tyrel Datwyler
On 1/5/22 3:19 PM, Nathan Lynch wrote: > Laurent Dufour writes: >> On 07/12/2021, 18:11:09, 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 devic

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

2022-01-05 Thread Nathan Lynch
Tyrel Datwyler writes: > On 1/5/22 3:19 PM, Nathan Lynch wrote: >> Laurent Dufour writes: >>> On 07/12/2021, 18:11:09, 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

Re: ppc64el kernel bug?

2022-01-05 Thread Nathan Lynch
Kip Warner writes: >Dec 25 06:52:52 romulus-server kernel: [28835.277591] BUG: Unable to > handle kernel data access on write at 0x132b47d38499fd58 >Dec 25 06:52:52 romulus-server kernel: [28835.277624] Faulting instruction > address: 0xc04d0434 >Dec 25 06:52:52 romulus-serve

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

2022-01-05 Thread Tyrel Datwyler
On 1/5/22 5:36 PM, Nathan Lynch wrote: > Tyrel Datwyler writes: >> On 1/5/22 3:19 PM, Nathan Lynch wrote: >>> >> >> Is there benefit of adding a partition_name field/value pair to lparcfg? The >> lparstat utility can just as easily make the get_sysparm call via librtas. >> Further, rtas_filters al

Re: ppc64el kernel bug?

2022-01-05 Thread Michael Ellerman
Nathan Lynch writes: > Kip Warner writes: >>Dec 25 06:52:52 romulus-server kernel: [28835.277591] BUG: Unable to >> handle kernel data access on write at 0x132b47d38499fd58 >>Dec 25 06:52:52 romulus-server kernel: [28835.277624] Faulting >> instruction address: 0xc04d0434 >>

Re: [5.16.0-rc5][ppc][net] kernel oops when hotplug remove of vNIC interface

2022-01-05 Thread Michael Ellerman
Jakub Kicinski writes: > On Wed, 5 Jan 2022 13:56:53 +0530 Abdul Haleem wrote: >> Greeting's >> >> Mainline kernel 5.16.0-rc5 panics when DLPAR ADD of vNIC device on my >> Powerpc LPAR >> >> Perform below dlpar commands in a loop from linux OS >> >> drmgr -r -c slot -s U9080.HEX.134C488-V1-C3

Re: [PATCH]powerpc/xmon: Dump XIVE information for online-only processors.

2022-01-05 Thread Sachin Sant
> On 05-Jan-2022, at 8:09 PM, Cédric Le Goater wrote: > > On 1/5/22 15:17, Sachin Sant wrote: >> dxa command in XMON debugger iterates through all possible processors. >> As a result, empty lines are printed even for processors which are not >> online. >> CPU 47:pp=00 CPPR=ff IPI=0x0040002f PQ=