From: Dennis Zhou <dennis@kernel.org>
To: Tejun Heo <tj@kernel.org>, Alexandre Ghiti <alex@ghiti.fr>
Cc: Alexandre Ghiti <alexghiti@rivosinc.com>,
Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Andrey Ryabinin <ryabinin.a.a@gmail.com>,
Alexander Potapenko <glider@google.com>,
Andrey Konovalov <andreyknvl@gmail.com>,
Dmitry Vyukov <dvyukov@google.com>,
Vincenzo Frascino <vincenzo.frascino@arm.com>,
Arnd Bergmann <arnd@arndb.de>, Christoph Lameter <cl@linux.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org,
kasan-dev@googlegroups.com, linux-arch@vger.kernel.org,
linux-mm@kvack.org
Subject: Re: [PATCH 0/2] riscv: Enable percpu page first chunk allocator
Date: Wed, 6 Dec 2023 21:46:48 -0800 [thread overview]
Message-ID: <ZXFcSEzalzl790bO@snowbird> (raw)
In-Reply-To: <ZXDEyzVcBOPUCCpg@slm.duckdns.org>
Hello,
On Wed, Dec 06, 2023 at 09:00:27AM -1000, Tejun Heo wrote:
> On Wed, Dec 06, 2023 at 11:08:20AM +0100, Alexandre Ghiti wrote:
> > Hi Tejun,
> >
> > On 10/11/2023 15:07, Alexandre Ghiti wrote:
> > > While working with pcpu variables, I noticed that riscv did not support
> > > first chunk allocation in the vmalloc area which may be needed as a fallback
> > > in case of a sparse NUMA configuration.
> > >
> > > patch 1 starts by introducing a new function flush_cache_vmap_early() which
> > > is needed since a new vmalloc mapping is established and directly accessed:
> > > on riscv, this would likely fail in case of a reordered access or if the
> > > uarch caches invalid entries in TLB.
> > >
> > > patch 2 simply enables the page percpu first chunk allocator in riscv.
> > >
> > > Alexandre Ghiti (2):
> > > mm: Introduce flush_cache_vmap_early() and its riscv implementation
> > > riscv: Enable pcpu page first chunk allocator
> > >
> > > arch/riscv/Kconfig | 2 ++
> > > arch/riscv/include/asm/cacheflush.h | 3 ++-
> > > arch/riscv/include/asm/tlbflush.h | 2 ++
> > > arch/riscv/mm/kasan_init.c | 8 ++++++++
> > > arch/riscv/mm/tlbflush.c | 5 +++++
> > > include/asm-generic/cacheflush.h | 6 ++++++
> > > mm/percpu.c | 8 +-------
> > > 7 files changed, 26 insertions(+), 8 deletions(-)
> > >
> >
> > Any feedback regarding this?
>
> On cursory look, it looked fine to me but Dennis is maintaining the percpu
> tree now. Dennis?
>
Ah I wasn't sure at the time if we needed this to go through percpu vs
risc v. I need to poke tglx and potentially pull some more stuff so I
can take it.
I regrettably got both the covid and flu vaccines today and feel like a
truck hit me. I'll review this tomorrow and make sure it's taken care
of for the next merge window.
Thanks,
Dennis
> Thanks.
>
> --
> tejun
WARNING: multiple messages have this Message-ID (diff)
From: Dennis Zhou <dennis@kernel.org>
To: Tejun Heo <tj@kernel.org>, Alexandre Ghiti <alex@ghiti.fr>
Cc: Alexandre Ghiti <alexghiti@rivosinc.com>,
Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Andrey Ryabinin <ryabinin.a.a@gmail.com>,
Alexander Potapenko <glider@google.com>,
Andrey Konovalov <andreyknvl@gmail.com>,
Dmitry Vyukov <dvyukov@google.com>,
Vincenzo Frascino <vincenzo.frascino@arm.com>,
Arnd Bergmann <arnd@arndb.de>, Christoph Lameter <cl@linux.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org,
kasan-dev@googlegroups.com, linux-arch@vger.kernel.org,
linux-mm@kvack.org
Subject: Re: [PATCH 0/2] riscv: Enable percpu page first chunk allocator
Date: Wed, 6 Dec 2023 21:46:48 -0800 [thread overview]
Message-ID: <ZXFcSEzalzl790bO@snowbird> (raw)
In-Reply-To: <ZXDEyzVcBOPUCCpg@slm.duckdns.org>
Hello,
On Wed, Dec 06, 2023 at 09:00:27AM -1000, Tejun Heo wrote:
> On Wed, Dec 06, 2023 at 11:08:20AM +0100, Alexandre Ghiti wrote:
> > Hi Tejun,
> >
> > On 10/11/2023 15:07, Alexandre Ghiti wrote:
> > > While working with pcpu variables, I noticed that riscv did not support
> > > first chunk allocation in the vmalloc area which may be needed as a fallback
> > > in case of a sparse NUMA configuration.
> > >
> > > patch 1 starts by introducing a new function flush_cache_vmap_early() which
> > > is needed since a new vmalloc mapping is established and directly accessed:
> > > on riscv, this would likely fail in case of a reordered access or if the
> > > uarch caches invalid entries in TLB.
> > >
> > > patch 2 simply enables the page percpu first chunk allocator in riscv.
> > >
> > > Alexandre Ghiti (2):
> > > mm: Introduce flush_cache_vmap_early() and its riscv implementation
> > > riscv: Enable pcpu page first chunk allocator
> > >
> > > arch/riscv/Kconfig | 2 ++
> > > arch/riscv/include/asm/cacheflush.h | 3 ++-
> > > arch/riscv/include/asm/tlbflush.h | 2 ++
> > > arch/riscv/mm/kasan_init.c | 8 ++++++++
> > > arch/riscv/mm/tlbflush.c | 5 +++++
> > > include/asm-generic/cacheflush.h | 6 ++++++
> > > mm/percpu.c | 8 +-------
> > > 7 files changed, 26 insertions(+), 8 deletions(-)
> > >
> >
> > Any feedback regarding this?
>
> On cursory look, it looked fine to me but Dennis is maintaining the percpu
> tree now. Dennis?
>
Ah I wasn't sure at the time if we needed this to go through percpu vs
risc v. I need to poke tglx and potentially pull some more stuff so I
can take it.
I regrettably got both the covid and flu vaccines today and feel like a
truck hit me. I'll review this tomorrow and make sure it's taken care
of for the next merge window.
Thanks,
Dennis
> Thanks.
>
> --
> tejun
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2023-12-07 5:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-10 14:07 [PATCH 0/2] riscv: Enable percpu page first chunk allocator Alexandre Ghiti
2023-11-10 14:07 ` Alexandre Ghiti
2023-11-10 14:07 ` [PATCH 1/2] mm: Introduce flush_cache_vmap_early() and its riscv implementation Alexandre Ghiti
2023-11-10 14:07 ` Alexandre Ghiti
2023-11-10 14:07 ` [PATCH 2/2] riscv: Enable pcpu page first chunk allocator Alexandre Ghiti
2023-11-10 14:07 ` Alexandre Ghiti
2023-12-06 10:08 ` [PATCH 0/2] riscv: Enable percpu " Alexandre Ghiti
2023-12-06 10:08 ` Alexandre Ghiti
2023-12-06 19:00 ` Tejun Heo
2023-12-06 19:00 ` Tejun Heo
2023-12-07 5:46 ` Dennis Zhou [this message]
2023-12-07 5:46 ` Dennis Zhou
2023-12-08 7:17 ` Dennis Zhou
2023-12-08 7:17 ` Dennis Zhou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZXFcSEzalzl790bO@snowbird \
--to=dennis@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=alex@ghiti.fr \
--cc=alexghiti@rivosinc.com \
--cc=andreyknvl@gmail.com \
--cc=aou@eecs.berkeley.edu \
--cc=arnd@arndb.de \
--cc=cl@linux.com \
--cc=dvyukov@google.com \
--cc=glider@google.com \
--cc=kasan-dev@googlegroups.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=ryabinin.a.a@gmail.com \
--cc=tj@kernel.org \
--cc=vincenzo.frascino@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.