linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Assorted fixes for RV32
@ 2021-01-11 23:45 Atish Patra
  2021-01-11 23:45 ` [PATCH v2 1/4] RISC-V: Do not allocate memblock while iterating reserved memblocks Atish Patra
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Atish Patra @ 2021-01-11 23:45 UTC (permalink / raw)
  To: linux-kernel
  Cc: Albert Ou, Anup Patel, linux-riscv, Atish Patra, Palmer Dabbelt,
	Paul Walmsley, Andrew Morton, Ard Biesheuvel, Mike Rapoport

This series fixes various issues observed in latest kernel on RV32.
The first two patches fixes an resource tree introduced in 5.11-rc1
while the last two fixes the case where 2GB physical memory is used
on RV32.

There are may be better way to fix the issue pointed out in PATCH 3
as it seems a generic kernel issue where kernel pointers can not use
last 4k of addressable memory. I am open to other better alternate
suggestions.

Changes from v1->v2:
1. Added Reviewed/Tested by tags.
2. Replaced PHYS_ADDR_MAX with explicit __pa(~(ulong)0).

Atish Patra (4):
RISC-V: Do not allocate memblock while iterating reserved memblocks
RISC-V: Set current memblock limit
RISC-V: Fix L1_CACHE_BYTES for RV32
RISC-V: Fix maximum allowed phsyical memory for RV32

arch/riscv/Kconfig             |  6 ++++--
arch/riscv/include/asm/cache.h |  4 ++++
arch/riscv/kernel/setup.c      | 24 +++++++++++++-----------
arch/riscv/mm/init.c           | 16 ++++++++++++++--
4 files changed, 35 insertions(+), 15 deletions(-)

--
2.25.1


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

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

end of thread, other threads:[~2021-01-11 23:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-11 23:45 [PATCH v2 0/4] Assorted fixes for RV32 Atish Patra
2021-01-11 23:45 ` [PATCH v2 1/4] RISC-V: Do not allocate memblock while iterating reserved memblocks Atish Patra
2021-01-11 23:45 ` [PATCH v2 2/4] RISC-V: Set current memblock limit Atish Patra
2021-01-11 23:45 ` [PATCH v2 3/4] RISC-V: Fix L1_CACHE_BYTES for RV32 Atish Patra
2021-01-11 23:45 ` [PATCH v2 4/4] RISC-V: Fix maximum allowed phsyical memory " Atish Patra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).