Linux Documentation
 help / color / mirror / Atom feed
From: "David Hildenbrand (Arm)" <david@kernel.org>
To: Mike Rapoport <rppt@kernel.org>,
	Ethan Nelson-Moore <enelsonmoore@gmail.com>
Cc: Lorenzo Stoakes <ljs@kernel.org>,
	"Liam R. Howlett" <liam@infradead.org>,
	Vlastimil Babka <vbabka@kernel.org>,
	Suren Baghdasaryan <surenb@google.com>,
	Michal Hocko <mhocko@suse.com>,
	Shuah Khan <skhan@linuxfoundation.org>,
	linux-mm@kvack.org, linux-doc@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>,
	Jonathan Corbet <corbet@lwn.net>
Subject: Re: [PATCH] docs/mm: describe current criteria for enabling split page table lock for PTE tables
Date: Mon, 15 Jun 2026 17:47:34 +0200	[thread overview]
Message-ID: <f3f184a7-a04d-4c9c-a1d9-d2008469d9f7@kernel.org> (raw)
In-Reply-To: <ai5w--zzNaUHuQ6S@kernel.org>

On 6/14/26 11:14, Mike Rapoport wrote:
> On Sat, Jun 13, 2026 at 03:14:47PM -0700, Ethan Nelson-Moore wrote:
>> The mm documentation regarding split page table lock for PTE tables
>> refers to the CONFIG_SPLIT_PTLOCK_CPUS config option, which was
>> superseded by CONFIG_SPLIT_PTE_PTLOCKS in commit 394290cba966 ("mm:
>> turn USE_SPLIT_PTE_PTLOCKS / USE_SPLIT_PTE_PTLOCKS into Kconfig
>> options"). Update the documentation to refer to the current option and
>> document the situations in which this feature is not supported.
>>
>> Discovered while searching for CONFIG_* symbols referenced in the
>> kernel but not defined in any Kconfig file.
>>
>> Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
>> ---
>>  Documentation/mm/split_page_table_lock.rst | 9 ++++++---
>>  1 file changed, 6 insertions(+), 3 deletions(-)
>>
>> diff --git a/Documentation/mm/split_page_table_lock.rst b/Documentation/mm/split_page_table_lock.rst
>> index cc3cd46abd1b..c9d16024543b 100644
>> --- a/Documentation/mm/split_page_table_lock.rst
>> +++ b/Documentation/mm/split_page_table_lock.rst
>> @@ -37,9 +37,12 @@ There are helpers to lock/unlock a table and other accessor functions:
>>   - pmd_lockptr()
>>  	returns pointer to PMD table lock;
>>  
>> -Split page table lock for PTE tables is enabled compile-time if
>> -CONFIG_SPLIT_PTLOCK_CPUS (usually 4) is less or equal to NR_CPUS.
>> -If split lock is disabled, all tables are guarded by mm->page_table_lock.
>> +Split page table lock for PTE tables is enabled compile-time (via
>> +CONFIG_SPLIT_PTE_PTLOCKS) if NR_CPUS is greater than or equal to 4 and an
>> +MMU is being used. However, it is not supported on ARM processors with
>> +virtually indexed, physically tagged caches, PA-RISC processors older than
>> +the PA-8000, or 32-bit SPARC processors. If split lock is disabled, all
> 
> "it is not supported on some architectures" would be enough IMO.

Yeah, we can keep this short.

-- 
Cheers,

David

      parent reply	other threads:[~2026-06-15 15:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-13 22:14 [PATCH] docs/mm: describe current criteria for enabling split page table lock for PTE tables Ethan Nelson-Moore
     [not found] ` <ai5w--zzNaUHuQ6S@kernel.org>
2026-06-15 15:47   ` 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=f3f184a7-a04d-4c9c-a1d9-d2008469d9f7@kernel.org \
    --to=david@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=corbet@lwn.net \
    --cc=enelsonmoore@gmail.com \
    --cc=liam@infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=ljs@kernel.org \
    --cc=mhocko@suse.com \
    --cc=rppt@kernel.org \
    --cc=skhan@linuxfoundation.org \
    --cc=surenb@google.com \
    --cc=vbabka@kernel.org \
    /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