-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
riscv: change XIP's kernel_map.size to be size of the entire kernel #983
Conversation
Upstream branch: 0a16a17 |
Upstream branch: 92cce91 |
d67f904
to
e92b6c3
Compare
Upstream branch: 92cce91 |
e92b6c3
to
0d03fa0
Compare
Upstream branch: 5e3964b |
0d03fa0
to
0a7a7db
Compare
Upstream branch: 92cce91 |
0a7a7db
to
9a8d480
Compare
Upstream branch: 018b9d9 |
9a8d480
to
f849906
Compare
Upstream branch: 0bfbc91 |
f849906
to
4368c69
Compare
Upstream branch: c6c901b |
4368c69
to
b7c886e
Compare
Upstream branch: 46cad6c |
b7c886e
to
96d4e92
Compare
Upstream branch: 6ca445d |
With XIP kernel, kernel_map.size is set to be only the size of data part of the kernel. This is inconsistent with "normal" kernel, who sets it to be the size of the entire kernel. More importantly, XIP kernel fails to boot if CONFIG_DEBUG_VIRTUAL is enabled, because there are checks on virtual addresses with the assumption that kernel_map.size is the size of the entire kernel (these checks are in arch/riscv/mm/physaddr.c). Change XIP's kernel_map.size to be the size of the entire kernel. Signed-off-by: Nam Cao <namcao@linutronix.de> Cc: <stable@vger.kernel.org> # v6.1+ Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
96d4e92
to
066145e
Compare
58015b6
to
958bb3b
Compare
Upstream branch: 6ca445d |
Pull request for series with
subject: riscv: change XIP's kernel_map.size to be size of the entire kernel
version: 1
url: https://patchwork.kernel.org/project/linux-riscv/list/?series=851684