Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

bjoto
Copy link

@bjoto bjoto commented May 8, 2024

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

@bjoto
Copy link
Author

bjoto commented May 8, 2024

Upstream branch: 0a16a17
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=851684
version: 1

@bjoto
Copy link
Author

bjoto commented May 14, 2024

Upstream branch: 92cce91
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=851684
version: 1

@bjoto bjoto closed this May 14, 2024
@bjoto bjoto reopened this May 14, 2024
@bjoto
Copy link
Author

bjoto commented May 14, 2024

Upstream branch: 92cce91
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=851684
version: 1

@bjoto
Copy link
Author

bjoto commented May 15, 2024

Upstream branch: 5e3964b
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=851684
version: 1

@bjoto
Copy link
Author

bjoto commented May 17, 2024

Upstream branch: 92cce91
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=851684
version: 1

@bjoto
Copy link
Author

bjoto commented May 22, 2024

Upstream branch: 018b9d9
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=851684
version: 1

@bjoto
Copy link
Author

bjoto commented May 22, 2024

Upstream branch: 0bfbc91
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=851684
version: 1

@bjoto
Copy link
Author

bjoto commented May 23, 2024

Upstream branch: c6c901b
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=851684
version: 1

@bjoto bjoto closed this May 23, 2024
@bjoto bjoto reopened this May 23, 2024
@bjoto
Copy link
Author

bjoto commented May 23, 2024

Upstream branch: 46cad6c
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=851684
version: 1

@bjoto
Copy link
Author

bjoto commented May 23, 2024

Upstream branch: 6ca445d
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=851684
version: 1

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>
@bjoto bjoto force-pushed the for-next_base branch 2 times, most recently from 58015b6 to 958bb3b Compare May 23, 2024 19:15
@bjoto bjoto closed this May 27, 2024
@bjoto
Copy link
Author

bjoto commented May 27, 2024

Upstream branch: 6ca445d
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=851684
version: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants