Re: [PATCH 2/3] mm: drop pte_clear_not_present_full()

"David Hildenbrand (Arm)" <[email protected]> Thu, 11 Jun 2026 16:57:50 +0200
Newsgroups org.kernel.vger.sparclinux,org.kernel.vger.linux-kernel,org.kvack.linux-mm
Message-ID <[email protected]>
On 6/11/26 15:49, Oscar Salvador (SUSE) wrote:
> On Thu, Jun 11, 2026 at 01:50:48PM +0200, David Hildenbrand (Arm) wrote:
>> In general, there is no good reason to do anything special when clearing
>> non-present PTEs.
>>
>> In theory, HW that does have to invalidate TLBs for non-present PTEs could
>> benefit from a "full" parameter, but fortunately
> 
> That would be on arches like arm64 where it can cache non-present
> entries, right?

arm64 cannot cache them, it may only have them in the CPU pipeline temporarily,
and a special barrier (isb) is sufficient.

Risc-v has something like that, but they seem to handle it differently.

-- 
Cheers,

David