public inbox for linux-efi@vger.kernel.org
 help / color / mirror / Atom feed
From: "David Hildenbrand (Arm)" <david@kernel.org>
To: Yunhui Cui <cuiyunhui@bytedance.com>,
	akpm@linux-foundation.org, alex@ghiti.fr,
	andrew+kernel@donnellan.id.au, andreyknvl@gmail.com,
	anup@brainfault.org, aou@eecs.berkeley.edu, apopple@nvidia.com,
	ardb@kernel.org, atish.patra@linux.dev,
	baolin.wang@linux.alibaba.com, debug@rivosinc.com,
	djordje.todorovic@htecgroup.com, dvyukov@google.com,
	elver@google.com, glider@google.com, ilias.apalodimas@linaro.org,
	junhui.liu@pigmoral.tech, kasan-dev@googlegroups.com,
	kees@kernel.org, kevin.brodsky@arm.com,
	kvm-riscv@lists.infradead.org, kvm@vger.kernel.org,
	linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-riscv@lists.infradead.org, liu.xuemei1@zte.com.cn,
	ljs@kernel.org, namcao@linutronix.de, osalvador@suse.de,
	palmer@dabbelt.com, pjw@kernel.org, rmclure@linux.ibm.com,
	rostedt@goodmis.org, rppt@kernel.org, ryabinin.a.a@gmail.com,
	surenb@google.com, vincenzo.frascino@arm.com,
	vishal.moola@gmail.com, wangruikang@iscas.ac.cn,
	zhangchunyan@iscas.ac.cn
Subject: Re: [PATCH v1 0/7] riscv: add Svnapot-based contiguous PTE support
Date: Tue, 21 Apr 2026 13:28:03 +0200	[thread overview]
Message-ID: <62c418bc-082b-4ae2-a889-f63dd2b7f503@kernel.org> (raw)
In-Reply-To: <20260421092457.37649-1-cuiyunhui@bytedance.com>

On 4/21/26 11:24, Yunhui Cui wrote:
> Hi,
> 
> First of all, thanks to Ryan Roberts for the work on mTHP and
> Contiguous PTE support on arm64. That work provides a very useful
> reference for reducing page fault overhead and TLB pressure for
> large but still PTE-mapped memory ranges.
> 
> This series adds Svnapot-based contiguous PTE support for RISC-V.
> 
> To achieve similar benefits on RISC-V, this series introduces a
> Contiguous-PTE-like mechanism built on top of the Svnapot extension.
> The intent is to preserve the core-MM PTE semantics while allowing
> RISC-V to transparently fold eligible base-page mappings into
> Svnapot-encoded contiguous mappings when possible.
> 
> The series splits the low-level raw PTE helpers from the public
> core-MM-facing PTE helpers, so that:
> 
> -the __xxx helpers expose the raw hardware PTE encoding,
> -the xxx helpers provide the semantic view expected by core MM,
> -and Svnapot-aware handling is centralized in the public wrapper layer.


Just curious, is there opportunity to share some of the code with arm64,
factoring out helpers that handle something like
CONFIG_ARCH_HAS_CONTIG_PTES ?


-- 
Cheers,

David

      parent reply	other threads:[~2026-04-21 11:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-21  9:24 [PATCH v1 0/7] riscv: add Svnapot-based contiguous PTE support Yunhui Cui
2026-04-21  9:24 ` [PATCH 1/7] riscv: mm: split raw and public PTE helpers Yunhui Cui
2026-04-21  9:24 ` [PATCH 2/7] riscv/kvm: use raw PTE helpers for G-stage leaf PTEs Yunhui Cui
2026-04-21  9:24 ` [PATCH 3/7] riscv: mm: add Svnapot-aware contiguous PTE wrappers Yunhui Cui
2026-04-21  9:24 ` [PATCH 4/7] riscv: hugetlb: switch NAPOT mappings to raw PTE helpers Yunhui Cui
2026-04-21  9:24 ` [PATCH 5/7] riscv: add contiguous PTE range clearing helpers Yunhui Cui
2026-04-21  9:24 ` [PATCH 6/7] riscv: batch write-protect contiguous PTE ranges Yunhui Cui
2026-04-21  9:24 ` [PATCH 7/7] riscv: add Svnapot-aware pte_batch_hint support Yunhui Cui
2026-04-21 11:28 ` David Hildenbrand (Arm) [this message]

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=62c418bc-082b-4ae2-a889-f63dd2b7f503@kernel.org \
    --to=david@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=alex@ghiti.fr \
    --cc=andrew+kernel@donnellan.id.au \
    --cc=andreyknvl@gmail.com \
    --cc=anup@brainfault.org \
    --cc=aou@eecs.berkeley.edu \
    --cc=apopple@nvidia.com \
    --cc=ardb@kernel.org \
    --cc=atish.patra@linux.dev \
    --cc=baolin.wang@linux.alibaba.com \
    --cc=cuiyunhui@bytedance.com \
    --cc=debug@rivosinc.com \
    --cc=djordje.todorovic@htecgroup.com \
    --cc=dvyukov@google.com \
    --cc=elver@google.com \
    --cc=glider@google.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=junhui.liu@pigmoral.tech \
    --cc=kasan-dev@googlegroups.com \
    --cc=kees@kernel.org \
    --cc=kevin.brodsky@arm.com \
    --cc=kvm-riscv@lists.infradead.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-efi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=liu.xuemei1@zte.com.cn \
    --cc=ljs@kernel.org \
    --cc=namcao@linutronix.de \
    --cc=osalvador@suse.de \
    --cc=palmer@dabbelt.com \
    --cc=pjw@kernel.org \
    --cc=rmclure@linux.ibm.com \
    --cc=rostedt@goodmis.org \
    --cc=rppt@kernel.org \
    --cc=ryabinin.a.a@gmail.com \
    --cc=surenb@google.com \
    --cc=vincenzo.frascino@arm.com \
    --cc=vishal.moola@gmail.com \
    --cc=wangruikang@iscas.ac.cn \
    --cc=zhangchunyan@iscas.ac.cn \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox