Re: [PATCH v4 18/33] mm: write-lock VMAs before removing them from VMA tree

2023-02-28 Thread Hyeonggon Yoo
On Wed, Mar 01, 2023 at 07:43:33AM +, Hyeonggon Yoo wrote: > On Mon, Feb 27, 2023 at 09:36:17AM -0800, Suren Baghdasaryan wrote: > > Write-locking VMAs before isolating them ensures that page fault > > handlers don't operate on isolated VMAs. > > > > Signed-off-by: Suren Baghdasaryan > > ---

Re: [PATCH v4 18/33] mm: write-lock VMAs before removing them from VMA tree

2023-02-28 Thread Hyeonggon Yoo
On Mon, Feb 27, 2023 at 09:36:17AM -0800, Suren Baghdasaryan wrote: > Write-locking VMAs before isolating them ensures that page fault > handlers don't operate on isolated VMAs. > > Signed-off-by: Suren Baghdasaryan > --- > mm/mmap.c | 1 + > mm/nommu.c | 5 + > 2 files changed, 6 insertion

Re: Patch for audio on iBook G4 (powerbook6,5)

2023-02-28 Thread Christophe Leroy
Le 28/02/2023 à 22:17, m...@thaison-nguyen.de a écrit : > Hi > > I have added a bug report and a patch regarding audio for iBook G4 > (powerbook6,5) on kernel.org bugzilla, but nobody has picked it up. > https://bugzilla.kernel.org/show_bug.cgi?id=216504 > > Now I am trying to submit the patch

Re: [PATCH v4 17/33] mm/mremap: write-lock VMA while remapping it to a new address range

2023-02-28 Thread Hyeonggon Yoo
On Mon, Feb 27, 2023 at 09:36:16AM -0800, Suren Baghdasaryan wrote: > Write-lock VMA as locked before copying it and when copy_vma produces > a new VMA. > > Signed-off-by: Suren Baghdasaryan > Reviewed-by: Laurent Dufour > --- > mm/mmap.c | 1 + > mm/mremap.c | 1 + > 2 files changed, 2 inser

Re: [PATCH V2] mm: Merge pte_mkhuge() call into arch_make_huge_pte()

2023-02-28 Thread Christophe Leroy
Hi, Le 03/02/2022 à 04:57, Anshuman Khandual a écrit : > Each call into pte_mkhuge() is invariably followed by arch_make_huge_pte(). > Instead arch_make_huge_pte() can accommodate pte_mkhuge() at the beginning. > This updates generic fallback stub for arch_make_huge_pte() and available > platforms

Re: [PATCH v5 01/17] asm-generic/iomap.h: remove ARCH_HAS_IOREMAP_xx macros

2023-02-28 Thread Matthew Wilcox
On Wed, Mar 01, 2023 at 04:38:10AM +, Edward Cree wrote: > On 01/03/2023 03:42, Baoquan He wrote: > > diff --git a/drivers/net/ethernet/sfc/io.h b/drivers/net/ethernet/sfc/io.h > > index 30439cc83a89..07f99ad14bf3 100644 > > --- a/drivers/net/ethernet/sfc/io.h > > +++ b/drivers/net/ethernet/sfc

Re: [PATCH v5 01/17] asm-generic/iomap.h: remove ARCH_HAS_IOREMAP_xx macros

2023-02-28 Thread Edward Cree
On 01/03/2023 03:42, Baoquan He wrote: > diff --git a/drivers/net/ethernet/sfc/io.h b/drivers/net/ethernet/sfc/io.h > index 30439cc83a89..07f99ad14bf3 100644 > --- a/drivers/net/ethernet/sfc/io.h > +++ b/drivers/net/ethernet/sfc/io.h > @@ -70,7 +70,7 @@ > */ > #ifdef CONFIG_X86_64 > /* PIO is a

[PATCH v5 01/17] asm-generic/iomap.h: remove ARCH_HAS_IOREMAP_xx macros

2023-02-28 Thread Baoquan He
Let's use '#define ioremap_xx' and "#ifdef ioremap_xx" instead. For architectures defined ARCH_HAS_IOREMAP_xx macros in , the relevant adjustments are made to avoid compiling error: loongarch: - doesn't include , defining ARCH_HAS_IOREMAP_WC is redundant, so simply remove it. m68k: -

Re: [PATCH 0/2] Freescale T1040RDB DTS updates

2023-02-28 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (main) by Jakub Kicinski : On Fri, 24 Feb 2023 17:59:38 +0200 you wrote: > This contains a fix for the new device tree for the T1040RDB rev A > board, which never worked, and an update to enable multiple CPU port > support for all revisions of the

Patch for audio on iBook G4 (powerbook6,5)

2023-02-28 Thread m...@thaison-nguyen.de
HiI have added a bug report and a patch regarding audio for iBook G4 (powerbook6,5) on kernel.org bugzilla, but nobody has picked it up.https://bugzilla.kernel.org/show_bug.cgi?id=216504Now I am trying to submit the patch here.Best, Thaison--- file_not_specified_in_diff +++ file_not_specified_in_d

[PATCH v3 19/34] powerpc: Implement the new page table range API

2023-02-28 Thread Matthew Wilcox (Oracle)
Add set_ptes(), update_mmu_cache_range() and flush_dcache_folio(). Change the PG_arch_1 (aka PG_dcache_dirty) flag from being per-page to per-folio. Signed-off-by: Matthew Wilcox (Oracle) Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org --- arch/

Re: [PATCH] mm: remove zap_page_range and create zap_vma_pages

2023-02-28 Thread patchwork-bot+linux-riscv
Hello: This patch was applied to riscv/linux.git (for-next) by Andrew Morton : On Tue, 3 Jan 2023 16:27:32 -0800 you wrote: > zap_page_range was originally designed to unmap pages within an address > range that could span multiple vmas. While working on [1], it was > discovered that all callers

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

2023-02-28 Thread patchwork-bot+linux-riscv
Hello: This series was applied to riscv/linux.git (for-next) by Andrew Morton : On Fri, 13 Jan 2023 18:10:00 +0100 you wrote: > This is the follow-up on [1]: > [PATCH v2 0/8] mm: COW fixes part 3: reliable GUP R/W FOLL_GET of > anonymous pages > > After we implemented __HAVE_ARCH_PTE

Re: [PATCH 2/2] powerpc/tpm: Reserve SML log when kexec'ing

2023-02-28 Thread Stefan Berger
On 2/23/23 22:25, Michael Ellerman wrote: The TPM code in prom_init.c creates a small buffer of memory to store the TPM's SML (Stored Measurement Log). It's communicated to Linux via the linux,sml-base/size device tree properties of the TPM node. When kexec'ing that buffer can be overwritten,

Re: [RFC PATCH 0/4] Remove some e300/MPC83xx evaluation platforms

2023-02-28 Thread Li Yang
On Tue, Feb 28, 2023 at 11:52 AM Arnd Bergmann wrote: > > On Tue, Feb 28, 2023, at 11:03, Joakim Tjernlund wrote: > > On Mon, 2023-02-27 at 14:48 -0600, Li Yang wrote: > >> > > > > >> > > > Here, we remove the MPC8548E-MDS[1], the MPC8360E-MDS[2], the > >> > > > MPC837xE-MDS[3], and the MPC832x-MD

Re: [PATCH v2 00/33] Per-VMA locks

2023-02-28 Thread Suren Baghdasaryan
On Tue, Feb 28, 2023 at 4:06 AM Punit Agrawal wrote: > > Punit Agrawal writes: > > > Suren Baghdasaryan writes: > > > >> Previous version: > >> v1: https://lore.kernel.org/all/20230109205336.3665937-1-sur...@google.com/ > >> RFC: https://lore.kernel.org/all/20220901173516.702122-1-sur...@google.

Re: [RFC PATCH 0/4] Remove some e300/MPC83xx evaluation platforms

2023-02-28 Thread Arnd Bergmann
On Tue, Feb 28, 2023, at 11:03, Joakim Tjernlund wrote: > On Mon, 2023-02-27 at 14:48 -0600, Li Yang wrote: >> > > > >> > > > Here, we remove the MPC8548E-MDS[1], the MPC8360E-MDS[2], the >> > > > MPC837xE-MDS[3], and the MPC832x-MDS[4] board support from the kernel. >> > > > >> > > > There will

Re: [PATCH mm-unstable v1 19/26] riscv/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE

2023-02-28 Thread David Hildenbrand
On 28.02.23 16:50, Palmer Dabbelt wrote: On Fri, 13 Jan 2023 09:10:19 PST (-0800), da...@redhat.com wrote: Let's support __HAVE_ARCH_PTE_SWP_EXCLUSIVE by stealing one bit from the offset. This reduces the maximum swap space per file: on 32bit to 16 GiB (was 32 GiB). Seems fine to me, I doubt a

Re: [PATCH mm-unstable v1 11/26] microblaze/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE

2023-02-28 Thread David Hildenbrand
On 27.02.23 20:46, Geert Uytterhoeven wrote: Hi David, On Mon, Feb 27, 2023 at 6:01 PM David Hildenbrand wrote: /* * Externally used page protection values. diff --git a/arch/microblaze/include/asm/pgtable.h b/arch/microblaze/include/asm/pgtable.h index 42f5988e998b..7e3de54bf426 100

Re: [PATCH mm-unstable v1 19/26] riscv/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE

2023-02-28 Thread Palmer Dabbelt
On Fri, 13 Jan 2023 09:10:19 PST (-0800), da...@redhat.com wrote: Let's support __HAVE_ARCH_PTE_SWP_EXCLUSIVE by stealing one bit from the offset. This reduces the maximum swap space per file: on 32bit to 16 GiB (was 32 GiB). Seems fine to me, I doubt anyone wants a huge pile of swap on rv32.

Re: [PATCH v2 00/33] Per-VMA locks

2023-02-28 Thread Punit Agrawal
Punit Agrawal writes: > Suren Baghdasaryan writes: > >> Previous version: >> v1: https://lore.kernel.org/all/20230109205336.3665937-1-sur...@google.com/ >> RFC: https://lore.kernel.org/all/20220901173516.702122-1-sur...@google.com/ >> >> LWN article describing the feature: >> https://lwn.net/Art

Re: [PATCH mm] kasan, powerpc: Don't rename memintrinsics if compiler adds prefixes

2023-02-28 Thread Michael Ellerman
Marco Elver writes: > On Mon, 27 Feb 2023 at 23:16, Andrew Morton wrote: >> >> On Mon, 27 Feb 2023 10:47:27 +0100 Marco Elver wrote: >> >> > With appropriate compiler support [1], KASAN builds use __asan prefixed >> > meminstrinsics, and KASAN no longer overrides memcpy/memset/memmove. >> > >> >

Re: [PATCH 1/2] powerpc/tpm: Create linux,sml-base/size as big endian

2023-02-28 Thread Michael Ellerman
Jarkko Sakkinen writes: > On Mon, Feb 27, 2023 at 06:08:31PM -0500, Stefan Berger wrote: >> On 2/23/23 22:25, Michael Ellerman wrote: >> > There's code in prom_instantiate_sml() to do a "SML handover" (Stored >> > Measurement Log) from OF to Linux, before Linux shuts down Open >> > Firmware. >> >

Symbol cpu_feature_keys should be exported to all modules on powerpc

2023-02-28 Thread 王昊然
Just like symbol 'mmu_feature_keys'[1], 'cpu_feature_keys' was referenced indirectly by many inline functions; any GPL-incompatible modules using such a function will be potentially broken due to 'cpu_feature_keys' being exported as GPL-only. For example it still breaks ZFS, see https://github.com

Re: Possible bug in linux-6.2/tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_thresh_marked_sample_test.c

2023-02-28 Thread kajoljain
On 2/27/23 10:56, Michael Ellerman wrote: > David Binderman writes: >> Hello there, >> >> I ran the static analyser cppcheck over the linux-6.2 source code and got >> this: >> >> linux-6.2/tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_thresh_marked_sample_test.c:68:10: >> style: Sa

Re: [RFC PATCH 0/4] Remove some e300/MPC83xx evaluation platforms

2023-02-28 Thread Joakim Tjernlund
On Mon, 2023-02-27 at 14:48 -0600, Li Yang wrote: > On Sat, Feb 25, 2023 at 10:52 AM Paul Gortmaker > wrote: > > > > [RE: [RFC PATCH 0/4] Remove some e300/MPC83xx evaluation platforms] On > > 24/02/2023 (Fri 21:16) Leo Li wrote: > > > > > > > > > > > > -Original Message- > > > > From:

Re: [PATCH 5.15 v2 1/5] arch: fix broken BuildID for arm64 and riscv

2023-02-28 Thread Greg Kroah-Hartman
On Thu, Feb 23, 2023 at 08:47:24PM -0600, Tom Saeger wrote: > On Thu, Feb 23, 2023 at 11:53:42AM -0600, Tom Saeger wrote: > > On Thu, Feb 23, 2023 at 10:51:45AM +0100, Greg Kroah-Hartman wrote: > > > On Fri, Feb 10, 2023 at 01:18:40PM -0700, Tom Saeger wrote: > > > > From: Masahiro Yamada > > > >

Re: Symbol cpu_feature_keys should be exported to all modules on powerpc

2023-02-28 Thread Greg KH
On Tue, Feb 28, 2023 at 04:18:12PM +0800, 王昊然 wrote: > Just like symbol 'mmu_feature_keys'[1], 'cpu_feature_keys' was referenced > indirectly by many inline functions; any GPL-incompatible modules using such > a function will be potentially broken due to 'cpu_feature_keys' being > exported as GPL-o