Re: [PATCH v6 24/26] mm: Remove devmap related functions and page table bits

2025-01-11 Thread Huacai Chen
Hi, Alistair, I think the last two patches can be squashed into this one. Huacai On Fri, Jan 10, 2025 at 2:03 PM Alistair Popple wrote: > > Now that DAX and all other reference counts to ZONE_DEVICE pages are > managed normally there is no need for the special devmap PTE/PMD/PUD > page table b

Re: [PATCH v4 5/8] arch: introduce set_direct_map_valid_noflush()

2024-10-07 Thread Huacai Chen
Hi, Mike, On Mon, Oct 7, 2024 at 2:30 PM Mike Rapoport wrote: > > From: "Mike Rapoport (Microsoft)" > > Add an API that will allow updates of the direct/linear map for a set of > physically contiguous pages. > > It will be used in the following patches. > > Signed-off-by: Mike Rapoport (Microsof

Re: [PATCH] smp: Mark smp_prepare_boot_cpu() __init

2024-09-07 Thread Huacai Chen
Reviewed-by: Huacai Chen On Sat, Sep 7, 2024 at 4:27 PM Bibo Mao wrote: > > Function smp_prepare_boot_cpu() is only called at boot stage, here > mark it as __init. > > Signed-off-by: Bibo Mao > --- > arch/loongarch/kernel/smp.c | 2 +- > arch/mips/kernel/smp.c

Re: [PATCH v2 07/14] LoongArch: Implement ARCH_HAS_KERNEL_FPU_SUPPORT

2024-01-06 Thread Huacai Chen
On Thu, Jan 4, 2024 at 11:58 PM Samuel Holland wrote: > > Hi Huacai, > > On 2024-01-04 3:55 AM, Huacai Chen wrote: > > Hi, Samuel, > > > > On Thu, Dec 28, 2023 at 9:42 AM Samuel Holland > > wrote: > >> > >> LoongArch already provides kernel_

Re: [PATCH v2 07/14] LoongArch: Implement ARCH_HAS_KERNEL_FPU_SUPPORT

2024-01-04 Thread Huacai Chen
Hi, Samuel, On Thu, Dec 28, 2023 at 9:42 AM Samuel Holland wrote: > > LoongArch already provides kernel_fpu_begin() and kernel_fpu_end() in > asm/fpu.h, so it only needs to add kernel_fpu_available() and export > the CFLAGS adjustments. > > Acked-by: WANG Xuerui > Reviewed-by: Christoph Hellwig

Re: [PATCH 3/3] mm, arch: add generic implementation of pfn_valid() for FLATMEM

2023-01-27 Thread Huacai Chen
For LoongArch part: Acked-by: Huacai Chen On Fri, Jan 27, 2023 at 9:58 AM Guo Ren wrote: > > On Thu, Jan 26, 2023 at 3:08 AM Mike Rapoport wrote: > > > > From: "Mike Rapoport (IBM)" > > > > Every architecture that supports FLATMEM memory model defines

Re: [PATCH v4 5/7] treewide: Trace IPIs sent via smp_send_reschedule()

2023-01-20 Thread Huacai Chen
For LoongArch parts, Acked-by: Huacai Chen On Thu, Jan 19, 2023 at 10:37 PM Valentin Schneider wrote: > > To be able to trace invocations of smp_send_reschedule(), rename the > arch-specific definitions of it to arch_smp_send_reschedule() and wrap it > into an smp_send_resch

Re: [PATCH v3 6/8] treewide: Trace IPIs sent via smp_send_reschedule()

2023-01-08 Thread Huacai Chen
Hi, Valentin, On Fri, Dec 2, 2022 at 11:59 PM Valentin Schneider wrote: > > To be able to trace invocations of smp_send_reschedule(), rename the > arch-specific definitions of it to arch_smp_send_reschedule() and wrap it > into an smp_send_reschedule() that contains a tracepoint. > > Changes to i

Re: [PATCH mm-unstable RFC 00/26] mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE on all architectures with swap PTEs

2022-12-18 Thread Huacai Chen
On Sun, Dec 18, 2022 at 5:59 PM David Hildenbrand wrote: > > On 18.12.22 04:32, Huacai Chen wrote: > > Hi, David, > > > > What is the opposite of exclusive here? Shared or inclusive? I prefer > > pte_swp_mkshared() or pte_swp_mkinclusive() rather than > >

Re: [PATCH mm-unstable RFC 00/26] mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE on all architectures with swap PTEs

2022-12-17 Thread Huacai Chen
Hi, David, What is the opposite of exclusive here? Shared or inclusive? I prefer pte_swp_mkshared() or pte_swp_mkinclusive() rather than pte_swp_clear_exclusive(). Existing examples: dirty/clean, young/old ... Huacai On Tue, Dec 6, 2022 at 10:48 PM David Hildenbrand wrote: > > This is the follo

Re: [PATCH] kernel: exit: cleanup release_thread()

2022-08-21 Thread Huacai Chen
For LoongArch parts: Acked-by: Huacai Chen On Sun, Aug 21, 2022 at 7:54 PM Catalin Marinas wrote: > > On Fri, Aug 19, 2022 at 09:44:06AM +0800, Kefeng Wang wrote: > > Only x86 has own release_thread(), introduce a new weak > > release_thread() function to clean empty defini

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

2022-08-16 Thread Huacai Chen
For LoongArch: Acked-by: Huacai Chen On Tue, Aug 16, 2022 at 6:30 PM Catalin Marinas wrote: > > On Mon, Aug 15, 2022 at 10:39:59AM -0400, Zi Yan wrote: > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > > index 571cc234d0b3..c6fcd8746f60 100644 > > --- a/arch

Re: [PATCH v4 6/7] KVM: MIPS: clean up redundant 'kvm_run' parameters

2020-04-26 Thread Huacai Chen
Reviewed-by: Huacai Chen On Mon, Apr 27, 2020 at 12:35 PM Tianjia Zhang wrote: > > In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' > structure. For historical reasons, many kvm-related function parameters > retain the 'kvm_run&#

Re: [PATCH v4 7/7] KVM: MIPS: clean up redundant kvm_run parameters in assembly

2020-04-26 Thread Huacai Chen
Reviewed-by: Huacai Chen On Mon, Apr 27, 2020 at 12:35 PM Tianjia Zhang wrote: > > In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' > structure. For historical reasons, many kvm-related function parameters > retain the 'kvm_run&#

Re: [PATCH v3 7/7] KVM: MIPS: clean up redundant kvm_run parameters in assembly

2020-04-26 Thread Huacai Chen
Hi, Tianjia, On Sun, Apr 26, 2020 at 8:40 PM Tianjia Zhang wrote: > > In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' > structure. Earlier than historical reasons, many kvm-related function > parameters retain the 'kvm_run' and 'kvm_vcpu' parameters at the same time. > T