* [PATCH] riscv: mm: Define MAX_POSSIBLE_PHYSMEM_BITS for zsmalloc
@ 2025-10-15 23:33 Samuel Holland
2025-10-18 16:01 ` patchwork-bot+linux-riscv
0 siblings, 1 reply; 2+ messages in thread
From: Samuel Holland @ 2025-10-15 23:33 UTC (permalink / raw)
To: Paul Walmsley, Palmer Dabbelt
Cc: Samuel Holland, Albert Ou, Alexandre Ghiti, Alistair Popple,
Andrew Morton, Matthew Wilcox (Oracle),
Will Deacon, linux-kernel, linux-riscv
This definition is used by zsmalloc to optimize memory allocation. On
riscv64, it is the same as MAX_PHYSMEM_BITS from asm/sparsemem.h, but
that definition depends on CONFIG_SPARSEMEM. The correct definition is
already provided for riscv32.
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
---
arch/riscv/include/asm/pgtable-64.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/include/asm/pgtable-64.h b/arch/riscv/include/asm/pgtable-64.h
index 1018d2216901..6e789fa58514 100644
--- a/arch/riscv/include/asm/pgtable-64.h
+++ b/arch/riscv/include/asm/pgtable-64.h
@@ -69,6 +69,8 @@ typedef struct {
#define PTRS_PER_PMD (PAGE_SIZE / sizeof(pmd_t))
+#define MAX_POSSIBLE_PHYSMEM_BITS 56
+
/*
* rv64 PTE format:
* | 63 | 62 61 | 60 54 | 53 10 | 9 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
--
2.47.2
base-commit: 5a6f65d1502551f84c158789e5d89299c78907c7
branch: up/max-physmem-bits
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] riscv: mm: Define MAX_POSSIBLE_PHYSMEM_BITS for zsmalloc
2025-10-15 23:33 [PATCH] riscv: mm: Define MAX_POSSIBLE_PHYSMEM_BITS for zsmalloc Samuel Holland
@ 2025-10-18 16:01 ` patchwork-bot+linux-riscv
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+linux-riscv @ 2025-10-18 16:01 UTC (permalink / raw)
To: Samuel Holland
Cc: linux-riscv, pjw, palmer, aou, alex, apopple, akpm, willy, will,
linux-kernel
Hello:
This patch was applied to riscv/linux.git (fixes)
by Paul Walmsley <pjw@kernel.org>:
On Wed, 15 Oct 2025 16:33:24 -0700 you wrote:
> This definition is used by zsmalloc to optimize memory allocation. On
> riscv64, it is the same as MAX_PHYSMEM_BITS from asm/sparsemem.h, but
> that definition depends on CONFIG_SPARSEMEM. The correct definition is
> already provided for riscv32.
>
> Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
>
> [...]
Here is the summary with links:
- riscv: mm: Define MAX_POSSIBLE_PHYSMEM_BITS for zsmalloc
https://git.kernel.org/riscv/c/5898fc01ff34
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-18 16:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-15 23:33 [PATCH] riscv: mm: Define MAX_POSSIBLE_PHYSMEM_BITS for zsmalloc Samuel Holland
2025-10-18 16:01 ` patchwork-bot+linux-riscv
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®