Thread (7 messages) 7 messages, 4 authors, 2021-09-29

Re: [PATCH V2] arm64/mm: Add pud_sect_supported()

flat view

From: Anshuman Khandual <hidden>
Date: 2021-09-22 04:43:47
Also in: lkml


On 9/20/21 9:11 PM, Catalin Marinas wrote:
On Mon, Sep 20, 2021 at 02:59:31PM +0530, Anshuman Khandual wrote:
quoted
Section mapping at PUD level is supported only on 4K pages and currently it
gets verified with explicit #ifdef or IS_ENABLED() constructs. This adds a
new helper pud_sect_supported() for this purpose, which particularly cleans
up the HugeTLB code path. It updates relevant switch statements with checks
for __PAGETABLE_PMD_FOLDED in order to avoid build failures caused with two
identical switch case values in those code blocks.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Anshuman Khandual <redacted>
Assuming that you tested the corresponding configurations,
Right, I did test this on all page size and VA bits configurations
, including the specific ones which were problematic.
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help