diff options
author | Bhupesh Sharma <[email protected]> | 2020-05-14 00:22:37 +0530 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2020-07-02 17:56:49 +0100 |
commit | bbdbc11804ff0b4130e7550113b452e96a74d16e (patch) | |
tree | d2541374bf8be92d105309b05ba8fc90f6b6ff05 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h | |
parent | 1d50e5d0c5052446cb85a3bf11fe8ba4e8d770ca (diff) |
arm64/crash_core: Export TCR_EL1.T1SZ in vmcoreinfo
TCR_EL1.TxSZ, which controls the VA space size, is configured by a
single kernel image to support either 48-bit or 52-bit VA space.
If the ARMv8.2-LVA optional feature is present and we are running
with a 64KB page size, then it is possible to use 52-bits of address
space for both userspace and kernel addresses. However, any kernel
binary that supports 52-bit must also be able to fall back to 48-bit
at early boot time if the hardware feature is not present.
Since TCR_EL1.T1SZ indicates the size of the memory region addressed by
TTBR1_EL1, export the same in vmcoreinfo. User-space utilities like
makedumpfile and crash-utility need to read this value from vmcoreinfo
for determining if a virtual address lies in the linear map range.
While at it also add documentation for TCR_EL1.T1SZ variable being
added to vmcoreinfo.
It indicates the size offset of the memory region addressed by
TTBR1_EL1.
Signed-off-by: Bhupesh Sharma <[email protected]>
Tested-by: John Donnelly <[email protected]>
Tested-by: Kamlakant Patel <[email protected]>
Tested-by: Amit Daniel Kachhap <[email protected]>
Reviewed-by: James Morse <[email protected]>
Reviewed-by: Amit Daniel Kachhap <[email protected]>
Cc: James Morse <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Steve Capper <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Dave Anderson <[email protected]>
Cc: Kazuhito Hagio <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
[[email protected]: removed vabits_actual from the commit log]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions