• Will Deacon's avatar
    ARM: lpae: fix definition of PTE_HWTABLE_PTRS · e38a5175
    Will Deacon authored
    For 2-level page tables, PTE_HWTABLE_PTRS describes the offset between
    Linux PTEs and hardware PTEs. On LPAE, there is no distinction (since
    we have 64-bit descriptors with plenty of space) so PTE_HWTABLE_PTRS
    should be 0. Unfortunately, it is wrongly defined as PTRS_PER_PTE,
    meaning that current pte table flushing is off by a page. Luckily,
    all current LPAE implementations are SMP, so the hardware walker can
    snoop L1.
    
    This patch fixes the broken definition.
    Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    e38a5175
pgtable-3level.h 5.59 KB