diff options
| author | Samuel Holland <[email protected]> | 2024-02-27 00:34:47 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2024-04-09 18:39:38 +0000 |
| commit | aea702dde7e9876fb00571a2602f25130847bf0f (patch) | |
| tree | 37824f36f95979f408689fe75f3a7c78abdf07b3 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | |
| parent | riscv: Fix TASK_SIZE on 64-bit NOMMU (diff) | |
| download | kernel-aea702dde7e9876fb00571a2602f25130847bf0f.tar.gz kernel-aea702dde7e9876fb00571a2602f25130847bf0f.zip | |
riscv: Fix loading 64-bit NOMMU kernels past the start of RAM
commit 3335068f8721 ("riscv: Use PUD/P4D/PGD pages for the linear
mapping") added logic to allow using RAM below the kernel load address.
However, this does not work for NOMMU, where PAGE_OFFSET is fixed to the
kernel load address. Since that range of memory corresponds to PFNs
below ARCH_PFN_OFFSET, mm initialization runs off the beginning of
mem_map and corrupts adjacent kernel memory. Fix this by restoring the
previous behavior for NOMMU kernels.
Fixes: 3335068f8721 ("riscv: Use PUD/P4D/PGD pages for the linear mapping")
Signed-off-by: Samuel Holland <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h')
0 files changed, 0 insertions, 0 deletions
