[PATCH v2 2/4] PCI/AER: Handle Advisory Non-Fatal properly

2024-01-25 Thread Wang, Qingshun
When processing an Advisory Non-Fatal error, ideally both correctable error status and uncorrectable error status should be cleared. However, there is no way to fully identify the UE associated with ANFE. Even worse, a Fatal/Non-Fatal error may set the same UE status bit as ANFE. Assuming an ANFE

[PATCH] powerpc/mm: Code cleanup for __hash_page_thp

2024-01-25 Thread Kunwu Chan
This part was commented from commit 6d492ecc6489 ("powerpc/THP: Add code to handle HPTE faults for hugepages") in about 11 years before. If there are no plans to enable this part code in the future, we can remove this dead code. Signed-off-by: Kunwu Chan ---

[PATCH] powerpc/cell: Code cleanup for spufs_mfc_flush

2024-01-25 Thread Kunwu Chan
This part was commented from commit a33a7d7309d7 ("[PATCH] spufs: implement mfc access for PPE-side DMA") in about 18 years before. If there are no plans to enable this part code in the future, we can remove this dead code. Signed-off-by: Kunwu Chan --- arch/powerpc/platforms/cell/spufs/file.c

Re: [PATCH] powerpc/cell: Code cleanup for spufs_mfc_flush

2024-01-25 Thread Christophe Leroy
Le 25/01/2024 à 11:08, Kunwu Chan a écrit : > This part was commented from commit a33a7d7309d7 > ("[PATCH] spufs: implement mfc access for PPE-side DMA") > in about 18 years before. > > If there are no plans to enable this part code in the future, > we can remove this dead code. > >

[PATCH 2/2] iommu: Fix the domain type checks when default_domain is set

2024-01-25 Thread Shivaprasad G Bhat
On PPC64, the iommu_ops.def_domain_type() is not defined and CONFIG_IOMMU_DMA not enabled. With commit 0f6a90436a57 ("iommu: Do not use IOMMU_DOMAIN_DMA if CONFIG_IOMMU_DMA is not enabled"), the iommu_get_default_domain_type() return IOMMU_DOMAIN_IDENTITY. With commit 2ad56efa80db ("powerpc/iommu:

[PATCH 0/2] powerpc: iommu: Fix the vfio-pci bind and unbind issues

2024-01-25 Thread Shivaprasad G Bhat
On PowerNV and pSeries machines, the bind and unbind of vfio-pci is broken with the below commits. 2ad56efa80db ("powerpc/iommu: Setup a default domain and remove set_platform_dma_ops") 0f6a90436a57 ("iommu: Do not use IOMMU_DOMAIN_DMA if CONFIG_IOMMU_DMA is not enabled") Details of the same

[PATCH 1/2] powerpc: iommu: Bring back table group release_ownership() call

2024-01-25 Thread Shivaprasad G Bhat
The commit 2ad56efa80db ("powerpc/iommu: Setup a default domain and remove set_platform_dma_ops") refactored the code removing the set_platform_dma_ops(). It missed out the table group release_ownership() call which would have got called otherwise during the guest shutdown via

Re: [PATCH] powerpc/mm/hash: Code cleanup

2024-01-25 Thread Aneesh Kumar K.V
On 1/25/24 3:16 PM, Kunwu Chan wrote: > This part was commented in about 17 years before. > If there are no plans to enable this part code in the future, > we can remove this dead code. > > Signed-off-by: Kunwu Chan > --- > arch/powerpc/include/asm/book3s/64/mmu-hash.h | 22 ---

[PATCH] powerpc/64: Set LR to a non-NULL value in task pt_regs on scv entry

2024-01-25 Thread Naveen N Rao
Nysal reported that userspace backtraces are missing in offcputime bcc tool. As an example: $ sudo ./bcc/tools/offcputime.py -uU Tracing off-CPU time (us) of user threads by user stack... Hit Ctrl-C to end. ^C write -python (9107) 8

Re: [PATCH] powerpc/64: Set LR to a non-NULL value in task pt_regs on scv entry

2024-01-25 Thread Segher Boessenkool
Hi! On Thu, Jan 25, 2024 at 05:12:28PM +0530, Naveen N Rao wrote: > diff --git a/arch/powerpc/kernel/interrupt_64.S > b/arch/powerpc/kernel/interrupt_64.S > index bd863702d812..5cf3758a19d3 100644 > --- a/arch/powerpc/kernel/interrupt_64.S > +++ b/arch/powerpc/kernel/interrupt_64.S > @@ -53,6

[PATCH] powerpc/mm/hash: Code cleanup

2024-01-25 Thread Kunwu Chan
This part was commented in about 17 years before. If there are no plans to enable this part code in the future, we can remove this dead code. Signed-off-by: Kunwu Chan --- arch/powerpc/include/asm/book3s/64/mmu-hash.h | 22 --- 1 file changed, 22 deletions(-) diff --git

[PATCH v2 1/4] PCI/AER: Store more information in aer_err_info

2024-01-25 Thread Wang, Qingshun
When Advisory Non-Fatal errors are raised, both correctable and uncorrectable error statuses will be set. The current kernel code cannot store both statuses at the same time, thus failing to handle ANFE properly. In addition, to avoid clearing UEs that are not ANFE by accident, UE severity and

[PATCH v2 3/4] PCI/AER: Fetch information for FTrace

2024-01-25 Thread Wang, Qingshun
Fetch and store the data of 3 more registers: "Link Status", "Device Control 2", and "Advanced Error Capabilities and Control". This data is needed for external observation to better understand ANFE. Signed-off-by: "Wang, Qingshun" --- drivers/acpi/apei/ghes.c | 8 +++-

[PATCH v2 0/4] PCI/AER: Handle Advisory Non-Fatal properly

2024-01-25 Thread Wang, Qingshun
According to PCIe Base Specification Revision 6.1, Sections 6.2.3.4 and 6.2.4.3, certain uncorrectable errors will signal ERR_COR instead of ERR_NONFATAL, logged as Advisory Non-Fatal Error, and set bits in both Correctable Error Status register and Uncorrectable Error Status register. Currently,

[PATCH v2 4/4] RAS: Trace more information in aer_event

2024-01-25 Thread Wang, Qingshun
Add following fields in aer_event to better understand Advisory Non-Fatal and other errors for external observation: - cor_status (Correctable Error Status) - cor_mask(Correctable Error Mask) - uncor_status(Uncorrectable Error Status) - uncor_severity

Re: [PATCH v2] powerpc/6xx: set High BAT Enable flag on G2_LE cores

2024-01-25 Thread Christophe Leroy
Le 24/01/2024 à 11:38, Matthias Schiffer a écrit : > [Vous ne recevez pas souvent de courriers de > matthias.schif...@ew.tq-group.com. Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > MMU_FTR_USE_HIGH_BATS is set for G2_LE cores and derivatives

Re: [PATCH] powerpc/mm/hash: Code cleanup

2024-01-25 Thread Kunwu Chan
On 2024/1/25 21:47, Aneesh Kumar K.V wrote: On 1/25/24 3:16 PM, Kunwu Chan wrote: This part was commented in about 17 years before. If there are no plans to enable this part code in the future, we can remove this dead code. Signed-off-by: Kunwu Chan ---

Re: [PATCH 1/1] arch/arm/mm: fix major fault accounting when retrying under per-VMA lock

2024-01-25 Thread Andrew Morton
On Mon, 22 Jan 2024 22:43:05 -0800 Suren Baghdasaryan wrote: > The change [1] missed ARM architecture when fixing major fault accounting > for page fault retry under per-VMA lock. Add missing code to fix ARM > architecture fault accounting. > > [1] 46e714c729c8 ("arch/mm/fault: fix major fault

[PATCH v2] powerpc/cell: Code cleanup for spufs_mfc_flush

2024-01-25 Thread Kunwu Chan
This part was commented from commit a33a7d7309d7 ("[PATCH] spufs: implement mfc access for PPE-side DMA") in about 18 years before. If there are no plans to enable this part code in the future, we can remove this dead code. Signed-off-by: Kunwu Chan Suggested-by: Christophe Leroy --- Changes

Re: [PATCH 00/11] Bump the minimum supported version of LLVM to 13.0.1

2024-01-25 Thread Kees Cook
On Thu, Jan 25, 2024 at 03:55:06PM -0700, Nathan Chancellor wrote: > Hi all, > > This series bumps the minimum supported version of LLVM for building the > kernel to 13.0.1. The first patch does the bump and all subsequent > patches clean up all the various workarounds and checks for earlier >

Re: [PATCH] powerpc/cell: Code cleanup for spufs_mfc_flush

2024-01-25 Thread Kunwu Chan
On 2024/1/25 18:41, Christophe Leroy wrote: Le 25/01/2024 à 11:08, Kunwu Chan a écrit : This part was commented from commit a33a7d7309d7 ("[PATCH] spufs: implement mfc access for PPE-side DMA") in about 18 years before. If there are no plans to enable this part code in the future, we can

Re: [PATCH 1/1] arch/arm/mm: fix major fault accounting when retrying under per-VMA lock

2024-01-25 Thread Suren Baghdasaryan
On Thu, Jan 25, 2024 at 6:04 PM Andrew Morton wrote: > > On Mon, 22 Jan 2024 22:43:05 -0800 Suren Baghdasaryan > wrote: > > > The change [1] missed ARM architecture when fixing major fault accounting > > for page fault retry under per-VMA lock. Add missing code to fix ARM > > architecture fault

[PATCH] powerpc/pseries/pci: Code cleanup

2024-01-25 Thread Kunwu Chan
This part was commented in about 19 years before. If there are no plans to enable this part code in the future, we can remove this dead code. Signed-off-by: Kunwu Chan --- arch/powerpc/platforms/pseries/pci.c | 27 --- 1 file changed, 27 deletions(-) diff --git

Re: [PATCH 8/8] powerpc/rtas: consume retry statuses in sys_rtas()

2024-01-25 Thread Nathan Lynch
Christophe Leroy writes: > Le 25/01/2024 à 17:33, Nathan Lynch a écrit : >> Christophe Leroy writes: >>> Hi Nathan, >>> >>> Le 06/03/2023 à 22:33, Nathan Lynch via B4 Relay a écrit : From: Nathan Lynch The kernel can handle retrying RTAS function calls in response to

Re: [PATCH 8/8] powerpc/rtas: consume retry statuses in sys_rtas()

2024-01-25 Thread Christophe Leroy
Le 25/01/2024 à 17:33, Nathan Lynch a écrit : > Christophe Leroy writes: >> Hi Nathan, >> >> Le 06/03/2023 à 22:33, Nathan Lynch via B4 Relay a écrit : >>> From: Nathan Lynch >>> >>> The kernel can handle retrying RTAS function calls in response to >>> -2/990x in the sys_rtas() handler instead

Re: [PATCH 2/2] iommu: Fix the domain type checks when default_domain is set

2024-01-25 Thread Jason Gunthorpe
On Thu, Jan 25, 2024 at 06:08:52AM -0600, Shivaprasad G Bhat wrote: > On PPC64, the iommu_ops.def_domain_type() is not defined and > CONFIG_IOMMU_DMA not enabled. With commit 0f6a90436a57 ("iommu: Do not > use IOMMU_DOMAIN_DMA if CONFIG_IOMMU_DMA is not enabled"), the >

Re: [PATCH 8/8] powerpc/rtas: consume retry statuses in sys_rtas()

2024-01-25 Thread Christophe Leroy
Hi Nathan, Le 06/03/2023 à 22:33, Nathan Lynch via B4 Relay a écrit : > From: Nathan Lynch > > The kernel can handle retrying RTAS function calls in response to > -2/990x in the sys_rtas() handler instead of relaying the intermediate > status to user space. From this series with still have

RE: [PATCH linux-next v3 06/14] x86, crash: wrap crash dumping code into crash related ifdefs

2024-01-25 Thread Michael Kelley
From: Baoquan He Sent: Thursday, January 25, 2024 1:17 AM > > On 01/25/24 at 05:12am, Michael Kelley wrote: > > From: Baoquan He Sent: Wednesday, January 24, 2024 > 8:10 PM > > > > > > On 01/24/24 at 11:02pm, Michael Kelley wrote: > > > > > diff --git a/arch/x86/kernel/cpu/mshyperv.c > > > > >

Re: [PATCH 1/2] powerpc: iommu: Bring back table group release_ownership() call

2024-01-25 Thread Jason Gunthorpe
On Thu, Jan 25, 2024 at 06:08:39AM -0600, Shivaprasad G Bhat wrote: > The commit 2ad56efa80db ("powerpc/iommu: Setup a default domain and > remove set_platform_dma_ops") refactored the code removing the > set_platform_dma_ops(). It missed out the table group > release_ownership() call which would

Re: [PATCH 8/8] powerpc/rtas: consume retry statuses in sys_rtas()

2024-01-25 Thread Nathan Lynch
Christophe Leroy writes: > Hi Nathan, > > Le 06/03/2023 à 22:33, Nathan Lynch via B4 Relay a écrit : >> From: Nathan Lynch >> >> The kernel can handle retrying RTAS function calls in response to >> -2/990x in the sys_rtas() handler instead of relaying the intermediate >> status to user space. >

[PATCH v3] NUMA: Early use of cpu_to_node() returns 0 instead of the correct node id

2024-01-25 Thread Huang Shijie
During the kernel booting, the generic cpu_to_node() is called too early in arm64, powerpc and riscv when CONFIG_NUMA is enabled. There are at least four places in the common code where the generic cpu_to_node() is called before it is initialized: 1.) early_trace_init() in

Re: [PATCH linux-next v3 00/14] Split crash out from kexec and clean up related config items

2024-01-25 Thread Baoquan He
On 01/25/24 at 09:55pm, Nathan Chancellor wrote: .. > I am seeing a few build failures in my test matrix on next-20240125 that > appear to be caused by this series although I have not bisected. Some > reproduction steps: Thanks for trying this, I have reproduced the linking failu

Re: [PATCH linux-next v3 00/14] Split crash out from kexec and clean up related config items

2024-01-25 Thread Nathan Chancellor
AX_MEMORY_RANGES=8192 > # end of Kexec and crash features > --- > > (3) unset CONFIG_CRASH_DUMP in case 2 and execute 'make olddefconfig': > > # Kexec and crash features > CONFIG_KEXEC_CORE=y > CONFIG_KEXEC_FILE=y > # end of Kexe

Re: [PATCH v2] powerpc/cell: Code cleanup for spufs_mfc_flush

2024-01-25 Thread Arnd Bergmann
On Fri, Jan 26, 2024, at 03:12, Kunwu Chan wrote: > This part was commented from commit a33a7d7309d7 > ("[PATCH] spufs: implement mfc access for PPE-side DMA") > in about 18 years before. > > If there are no plans to enable this part code in the future, > we can remove this dead code. > >

[PATCH v2 03/15] nios2/pgtable: define PFN_PTE_SHIFT

2024-01-25 Thread David Hildenbrand
We want to make use of pte_next_pfn() outside of set_ptes(). Let's simply define PFN_PTE_SHIFT, required by pte_next_pfn(). Signed-off-by: David Hildenbrand --- arch/nios2/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/nios2/include/asm/pgtable.h

[PATCH v2 04/15] powerpc/pgtable: define PFN_PTE_SHIFT

2024-01-25 Thread David Hildenbrand
We want to make use of pte_next_pfn() outside of set_ptes(). Let's simply define PFN_PTE_SHIFT, required by pte_next_pfn(). Signed-off-by: David Hildenbrand --- arch/powerpc/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/include/asm/pgtable.h

[PATCH v2 08/15] mm/pgtable: make pte_next_pfn() independent of set_ptes()

2024-01-25 Thread David Hildenbrand
Let's provide pte_next_pfn(), independently of set_ptes(). This allows for using the generic pte_next_pfn() version in some arch-specific set_ptes() implementations, and prepares for reusing pte_next_pfn() in other context. Signed-off-by: David Hildenbrand --- include/linux/pgtable.h | 2 +- 1

[PATCH v2] powerpc/pseries/iommu: IOMMU table is not initialized for kdump over SR-IOV

2024-01-25 Thread Gaurav Batra
From: Gaurav Batra When kdump kernel tries to copy dump data over SR-IOV, LPAR panics due to NULL pointer execption. Here is the complete stack [ 19.944378] Kernel attempted to read user page (0) - exploit attempt? (uid: 0)^M [ 19.944388] BUG: Kernel NULL pointer dereference on read at

Re: [PATCH v2 08/15] mm/pgtable: make pte_next_pfn() independent of set_ptes()

2024-01-25 Thread Christophe Leroy
Le 25/01/2024 à 20:32, David Hildenbrand a écrit : > Let's provide pte_next_pfn(), independently of set_ptes(). This allows for > using the generic pte_next_pfn() version in some arch-specific set_ptes() > implementations, and prepares for reusing pte_next_pfn() in other context. > >

Re: [PATCH] powerpc/fadump: update kernel logs before fadump crash begins

2024-01-25 Thread Christophe Leroy
Hi, Le 06/06/2020 à 06:45, Sourabh Jain a écrit : When we hit the fadump crash via the panic path the pstore update is missing. This is observed when commit 8341f2f222d7 ("sysrq: Use panic() to force a crash") changed the sysrq-trigger to take panic path instead of die path. The PPC panic

Re: [PATCH] powerpc/papr_scm: Move duplicate definitions to common header files

2024-01-25 Thread Christophe Leroy
Le 18/04/2022 à 06:38, Shivaprasad G Bhat a écrit : > papr_scm and ndtest share common PDSM payload structs like > nd_papr_pdsm_health. Presently these structs are duplicated across > papr_pdsm.h and ndtest.h header files. Since 'ndtest' is essentially > arch independent and can run on platforms

[PATCH v2 01/15] arm64/mm: Make set_ptes() robust when OAs cross 48-bit boundary

2024-01-25 Thread David Hildenbrand
From: Ryan Roberts Since the high bits [51:48] of an OA are not stored contiguously in the PTE, there is a theoretical bug in set_ptes(), which just adds PAGE_SIZE to the pte to get the pte with the next pfn. This works until the pfn crosses the 48-bit boundary, at which point we overflow into

[PATCH v2 02/15] arm/pgtable: define PFN_PTE_SHIFT

2024-01-25 Thread David Hildenbrand
We want to make use of pte_next_pfn() outside of set_ptes(). Let's simply define PFN_PTE_SHIFT, required by pte_next_pfn(). Signed-off-by: David Hildenbrand --- arch/arm/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/pgtable.h

[PATCH v2 09/15] arm/mm: use pte_next_pfn() in set_ptes()

2024-01-25 Thread David Hildenbrand
Let's use our handy helper now that it's available on all archs. Signed-off-by: David Hildenbrand --- arch/arm/mm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 674ed71573a84..c24e29c0b9a48 100644 --- a/arch/arm/mm/mmu.c +++

[PATCH v2 10/15] powerpc/mm: use pte_next_pfn() in set_ptes()

2024-01-25 Thread David Hildenbrand
Let's use our handy new helper. Note that the implementation is slightly different, but shouldn't really make a difference in practice. Signed-off-by: David Hildenbrand --- arch/powerpc/mm/pgtable.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

Re: [PATCH v6 (proposal)] powerpc/cpu: enable nr_cpus for crash kernel

2024-01-25 Thread Christophe Leroy
Hi, Le 22/05/2018 à 10:23, Pingfan Liu a écrit : > For kexec -p, the boot cpu can be not the cpu0, this causes the problem > to alloc paca[]. In theory, there is no requirement to assign cpu's logical > id as its present seq by device tree. But we have something like > cpu_first_thread_sibling(),

Re: [PATCH] powerpc: build-time fixup alternate feature relative addresses

2024-01-25 Thread Christophe Leroy
Hi Nic, Le 21/05/2017 à 03:01, Nicholas Piggin a écrit : Implement build-time fixup of alternate feature relative addresses for the out-of-line ("else") patch code. This is done post-link with a new powerpc build tool that parses relocations and fixup structures, and adjusts branch

[PATCH v2 00/15] mm/memory: optimize fork() with PTE-mapped THP

2024-01-25 Thread David Hildenbrand
Now that the rmap overhaul[1] is upstream that provides a clean interface for rmap batching, let's implement PTE batching during fork when processing PTE-mapped THPs. This series is partially based on Ryan's previous work[2] to implement cont-pte support on arm64, but its a complete rewrite based

[PATCH v2 06/15] s390/pgtable: define PFN_PTE_SHIFT

2024-01-25 Thread David Hildenbrand
We want to make use of pte_next_pfn() outside of set_ptes(). Let's simply define PFN_PTE_SHIFT, required by pte_next_pfn(). Signed-off-by: David Hildenbrand --- arch/s390/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/s390/include/asm/pgtable.h

[PATCH v2 07/15] sparc/pgtable: define PFN_PTE_SHIFT

2024-01-25 Thread David Hildenbrand
We want to make use of pte_next_pfn() outside of set_ptes(). Let's simply define PFN_PTE_SHIFT, required by pte_next_pfn(). Signed-off-by: David Hildenbrand --- arch/sparc/include/asm/pgtable_64.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sparc/include/asm/pgtable_64.h

[PATCH v2 05/15] riscv/pgtable: define PFN_PTE_SHIFT

2024-01-25 Thread David Hildenbrand
We want to make use of pte_next_pfn() outside of set_ptes(). Let's simply define PFN_PTE_SHIFT, required by pte_next_pfn(). Reviewed-by: Alexandre Ghiti Signed-off-by: David Hildenbrand --- arch/riscv/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 12/15] mm/memory: pass PTE to copy_present_pte()

2024-01-25 Thread David Hildenbrand
We already read it, let's just forward it. This patch is based on work by Ryan Roberts. Reviewed-by: Ryan Roberts Signed-off-by: David Hildenbrand --- mm/memory.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index

[PATCH v2 11/15] mm/memory: factor out copying the actual PTE in copy_present_pte()

2024-01-25 Thread David Hildenbrand
Let's prepare for further changes. Reviewed-by: Ryan Roberts Signed-off-by: David Hildenbrand --- mm/memory.c | 63 - 1 file changed, 33 insertions(+), 30 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index 7e1f4849463aa..10fc14ff8e49b

[PATCH v2 13/15] mm/memory: optimize fork() with PTE-mapped THP

2024-01-25 Thread David Hildenbrand
Let's implement PTE batching when consecutive (present) PTEs map consecutive pages of the same large folio, and all other PTE bits besides the PFNs are equal. We will optimize folio_pte_batch() separately, to ignore selected PTE bits. This patch is based on work by Ryan Roberts. Use

[PATCH v2 14/15] mm/memory: ignore dirty/accessed/soft-dirty bits in folio_pte_batch()

2024-01-25 Thread David Hildenbrand
Let's always ignore the accessed/young bit: we'll always mark the PTE as old in our child process during fork, and upcoming users will similarly not care. Ignore the dirty bit only if we don't want to duplicate the dirty bit into the child process during fork. Maybe, we could just set all PTEs in

[PATCH v2 15/15] mm/memory: ignore writable bit in folio_pte_batch()

2024-01-25 Thread David Hildenbrand
... and conditionally return to the caller if any PTE except the first one is writable. fork() has to make sure to properly write-protect in case any PTE is writable. Other users (e.g., page unmaping) are expected to not care. Reviewed-by: Ryan Roberts Signed-off-by: David Hildenbrand ---

Re: [PATCH v2 04/15] powerpc/pgtable: define PFN_PTE_SHIFT

2024-01-25 Thread Christophe Leroy
Le 25/01/2024 à 20:32, David Hildenbrand a écrit : > We want to make use of pte_next_pfn() outside of set_ptes(). Let's > simply define PFN_PTE_SHIFT, required by pte_next_pfn(). > > Signed-off-by: David Hildenbrand Reviewed-by: Christophe Leroy > --- > arch/powerpc/include/asm/pgtable.h

Re: [PATCH v2 10/15] powerpc/mm: use pte_next_pfn() in set_ptes()

2024-01-25 Thread Christophe Leroy
Le 25/01/2024 à 20:32, David Hildenbrand a écrit : > Let's use our handy new helper. Note that the implementation is slightly > different, but shouldn't really make a difference in practice. > > Signed-off-by: David Hildenbrand Reviewed-by: Christophe Leroy > --- >

[PATCH 00/11] Bump the minimum supported version of LLVM to 13.0.1

2024-01-25 Thread Nathan Chancellor
Hi all, This series bumps the minimum supported version of LLVM for building the kernel to 13.0.1. The first patch does the bump and all subsequent patches clean up all the various workarounds and checks for earlier versions. Quoting the first patch's commit message for those that were only on

[PATCH 06/11] powerpc: Kconfig: Remove tautology in CONFIG_COMPAT

2024-01-25 Thread Nathan Chancellor
This reverts commit 6fcb574125e6 ("powerpc: Kconfig: disable CONFIG_COMPAT for clang < 12"). Now that the minimum supported version of LLVM for building the kernel has been bumped to 13.0.1, this condition is always true, as the build will fail during the configuration stage for older LLVM

[PATCH v2] powerpc/iommu: Code cleanup for cell/iommu.c

2024-01-25 Thread Kunwu Chan
This part was commented from commit 165785e5c0be ("[POWERPC] Cell iommu support") in about 17 years before. If there are no plans to enable this part code in the future, we can remove this dead code. Signed-off-by: Kunwu Chan --- Change in v2: - Remove the second blank line ---

[PATCH v2] KVM: PPC: code cleanup for kvmppc_book3s_irqprio_deliver

2024-01-25 Thread Kunwu Chan
This part was commented from commit 2f4cf5e42d13 ("Add book3s.c") in about 14 years before. If there are no plans to enable this part code in the future, we can remove this dead code. Signed-off-by: Kunwu Chan --- Change in v2: - Remove redundant blank line --- arch/powerpc/kvm/book3s.c | 4

Re: [PATCH] KVM: PPC: code cleanup for kvmppc_book3s_irqprio_deliver

2024-01-25 Thread Kunwu Chan
On 2024/1/24 21:01, Christophe Leroy wrote: Le 24/01/2024 à 10:36, Kunwu Chan a écrit : This part was commented from commit 2f4cf5e42d13 ("Add book3s.c") in about 14 years before. If there are no plans to enable this part code in the future, we can remove this dead code. Signed-off-by: Kunwu

Re: [PATCH v2] NUMA: Early use of cpu_to_node() returns 0 instead of the correct node id

2024-01-25 Thread Shijie Huang
在 2024/1/25 15:31, Mike Rapoport 写道: On Wed, Jan 24, 2024 at 09:19:00AM -0800, Lameter, Christopher wrote: On Tue, 23 Jan 2024, Huang Shijie wrote: During the kernel booting, the generic cpu_to_node() is called too early in arm64, powerpc and riscv when CONFIG_NUMA is enabled. For

Re: [PATCH linux-next v3 06/14] x86, crash: wrap crash dumping code into crash related ifdefs

2024-01-25 Thread Baoquan He
On 01/25/24 at 05:12am, Michael Kelley wrote: > From: Baoquan He Sent: Wednesday, January 24, 2024 8:10 PM > > > > On 01/24/24 at 11:02pm, Michael Kelley wrote: > > > > diff --git a/arch/x86/kernel/cpu/mshyperv.c > > > > b/arch/x86/kernel/cpu/mshyperv.c > > > > index 01fa06dd06b6..f8163a59026b

Re: [PATCH] powerpc/iommu: Code cleanup for cell/iommu.c

2024-01-25 Thread Kunwu Chan
On 2024/1/25 14:49, Christophe Leroy wrote: Le 25/01/2024 à 03:46, Kunwu Chan a écrit : This part was commented from commit 165785e5c0be ("[POWERPC] Cell iommu support") in about 17 years before. If there are no plans to enable this part code in the future, we can remove this dead code.