powerpc/book3s64/radix: Add H_RPT_INVALIDATE pgsize encodings to mmu_psize_def
authorBharata B Rao <bharata@linux.ibm.com>
Mon, 21 Jun 2021 08:49:59 +0000 (14:19 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 21 Jun 2021 12:48:18 +0000 (22:48 +1000)
commitd6265cb33b710789cbc390316eba50a883d6dcc8
tree662e2cd44b185bde5b35a78b2ace4afbf136e9cc
parentf09216a190a4c2f62e1725f9d92e7c122b4ee423
powerpc/book3s64/radix: Add H_RPT_INVALIDATE pgsize encodings to mmu_psize_def

Add a field to mmu_psize_def to store the page size encodings
of H_RPT_INVALIDATE hcall. Initialize this while scanning the radix
AP encodings. This will be used when invalidating with required
page size encoding in the hcall.

Signed-off-by: Bharata B Rao <bharata@linux.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210621085003.904767-3-bharata@linux.ibm.com
arch/powerpc/include/asm/book3s/64/mmu.h
arch/powerpc/mm/book3s64/radix_pgtable.c