• Ard Biesheuvel's avatar
    arm64: Enable 52-bit virtual addressing for 4k and 16k granule configs · 352b0395
    Ard Biesheuvel authored
    Update Kconfig to permit 4k and 16k granule configurations to be built
    with 52-bit virtual addressing, now that all the prerequisites are in
    place.
    
    While at it, update the feature description so it matches on the
    appropriate feature bits depending on the page size. For simplicity,
    let's just keep ARM64_HAS_VA52 as the feature name.
    
    Note that LPA2 based 52-bit virtual addressing requires 52-bit physical
    addressing support to be enabled as well, as programming TCR.TxSZ to
    values below 16 is not allowed unless TCR.DS is set, which is what
    activates the 52-bit physical addressing support.
    
    While supporting the converse (52-bit physical addressing without 52-bit
    virtual addressing) would be possible in principle, let's keep things
    simple, by only allowing these features to be enabled at the same time.
    Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
    Link: https://lore.kernel.org/r/20240214122845.2033971-85-ardb+git@google.comSigned-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    352b0395
cpufeature.c 119 KB