public inbox for linux-riscv@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH V2 0/4] riscv: mm: Fixup & Optimize COMPAT code
@ 2023-12-21 15:46 guoren
  2023-12-21 15:46 ` [PATCH V2 1/4] riscv: mm: Fixup compat mode boot failure guoren
                   ` (3 more replies)
  0 siblings, 4 replies; 36+ messages in thread
From: guoren @ 2023-12-21 15:46 UTC (permalink / raw)
  To: linux-kernel, paul.walmsley, palmer, alexghiti, charlie,
	xiao.w.wang, guoren, david, panqinglin2020, rick.p.edgecombe,
	willy, bjorn, conor.dooley, cleger, leobras
  Cc: linux-riscv, Guo Ren

From: Guo Ren <guoren@linux.alibaba.com>

When the task is in COMPAT mode, the TASK_SIZE should be 2GB, so
STACK_TOP_MAX and arch_get_mmap_end must be limited to 2 GB. This series
fixes the problem made by commit: add2cc6b6515 ("RISC-V: mm: Restrict
address space for sv39,sv48,sv57") and optimizes the related coding
convention of TASK_SIZE.

Changelog:
v2:
 - Separate rename from fixup
 - Add STACK_TOP_MAX fixup for compat
 - Add Cleanup & rename patches

v1:
https://lore.kernel.org/linux-riscv/20231219111701.1886903-1-guoren@kernel.org/

Guo Ren (4):
  riscv: mm: Fixup compat mode boot failure
  riscv: mm: Fixup compat arch_get_mmap_end
  riscv: mm: Remove unused TASK_SIZE_MIN
  riscv: mm: Optimize TASK_SIZE definition

 arch/riscv/include/asm/pgtable.h   | 9 ++++-----
 arch/riscv/include/asm/processor.h | 6 ++----
 2 files changed, 6 insertions(+), 9 deletions(-)

-- 
2.40.1


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2023-12-24 14:38 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-21 15:46 [PATCH V2 0/4] riscv: mm: Fixup & Optimize COMPAT code guoren
2023-12-21 15:46 ` [PATCH V2 1/4] riscv: mm: Fixup compat mode boot failure guoren
2023-12-22  1:51   ` Leonardo Bras
2023-12-22  2:57     ` Guo Ren
2023-12-22  3:50       ` Charlie Jenkins
2023-12-22  4:32         ` Leonardo Bras
2023-12-22  7:33           ` Guo Ren
2023-12-22 10:58         ` Guo Ren
2023-12-21 15:46 ` [PATCH V2 2/4] riscv: mm: Fixup compat arch_get_mmap_end guoren
2023-12-22  3:34   ` Leonardo Bras
2023-12-22  4:04     ` Charlie Jenkins
2023-12-22  4:23       ` Leonardo Bras
2023-12-22  5:42         ` Charlie Jenkins
2023-12-22  8:27           ` Leonardo Bras
2023-12-22  4:36       ` Guo Ren
2023-12-22  4:26     ` Guo Ren
2023-12-22  4:43       ` Leonardo Bras
2023-12-22  4:50         ` Guo Ren
2023-12-22  5:27           ` Leonardo Bras
2023-12-22  7:20             ` Guo Ren
2023-12-22  7:49               ` Leonardo Bras
2023-12-22  8:59   ` David Laight
2023-12-22  9:33     ` Guo Ren
2023-12-21 15:47 ` [PATCH V2 3/4] riscv: mm: Remove unused TASK_SIZE_MIN guoren
2023-12-22  4:49   ` Leonardo Bras
2023-12-22  7:16     ` Guo Ren
2023-12-22  7:22       ` Leonardo Bras
2023-12-21 15:47 ` [PATCH V2 4/4] riscv: mm: Optimize TASK_SIZE definition guoren
2023-12-22  5:09   ` Leonardo Bras
2023-12-22 11:25     ` Guo Ren
2023-12-22 11:52       ` David Laight
2023-12-23  2:38         ` Guo Ren
2023-12-23  2:52         ` Guo Ren
2023-12-23 10:31           ` David Laight
2023-12-24  1:24             ` Guo Ren
2023-12-24 14:37               ` David Laight

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox