Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 6.2.11 v2 0/3] Fixes for dtb mapping
@ 2023-04-28 10:37 Alexandre Ghiti
  2023-04-28 10:37 ` [PATCH 6.2.11 v2 1/3] riscv: Move early dtb mapping into the fixmap region Alexandre Ghiti
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Alexandre Ghiti @ 2023-04-28 10:37 UTC (permalink / raw)
  To: Conor Dooley, stable; +Cc: Alexandre Ghiti

We used to map the dtb differently between early_pg_dir and
swapper_pg_dir which caused issues when we referenced addresses from
the early mapping with swapper_pg_dir (reserved_mem): move the dtb mapping
to the fixmap region in patch 1, which allows to simplify dtb handling in
patch 2.

base-commit-tag: v6.2.11

Changes in v2:
- Add missing SoB

Alexandre Ghiti (3):
  riscv: Move early dtb mapping into the fixmap region
  riscv: Do not set initial_boot_params to the linear address of the dtb
  riscv: No need to relocate the dtb as it lies in the fixmap region

 Documentation/riscv/vm-layout.rst |  6 +--
 arch/riscv/include/asm/fixmap.h   |  8 +++
 arch/riscv/include/asm/pgtable.h  |  8 ++-
 arch/riscv/kernel/setup.c         |  6 +--
 arch/riscv/mm/init.c              | 82 ++++++++++++++-----------------
 5 files changed, 54 insertions(+), 56 deletions(-)

-- 
2.37.2


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

end of thread, other threads:[~2023-04-29  9:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-28 10:37 [PATCH 6.2.11 v2 0/3] Fixes for dtb mapping Alexandre Ghiti
2023-04-28 10:37 ` [PATCH 6.2.11 v2 1/3] riscv: Move early dtb mapping into the fixmap region Alexandre Ghiti
2023-04-28 10:37 ` [PATCH 6.2.11 v2 2/3] riscv: Do not set initial_boot_params to the linear address of the dtb Alexandre Ghiti
2023-04-28 10:37 ` [PATCH 6.2.11 v2 3/3] riscv: No need to relocate the dtb as it lies in the fixmap region Alexandre Ghiti
2023-04-28 11:15 ` [PATCH 6.2.11 v2 0/3] Fixes for dtb mapping Greg KH
2023-04-29  9:56   ` Conor Dooley

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