mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-17 21:46:15 +07:00
8a6c697b99
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
24 lines
741 B
C
24 lines
741 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_POWERPC_PGTABLE_RADIX_64K_H
|
|
#define _ASM_POWERPC_PGTABLE_RADIX_64K_H
|
|
|
|
/*
|
|
* For 64K page size supported index is 13/9/9/5
|
|
*/
|
|
#define RADIX_PTE_INDEX_SIZE 5 /* 2MB huge page */
|
|
#define RADIX_PMD_INDEX_SIZE 9 /* 1G huge page */
|
|
#define RADIX_PUD_INDEX_SIZE 9
|
|
#define RADIX_PGD_INDEX_SIZE 13
|
|
|
|
/*
|
|
* We use a 256 byte PTE page fragment in radix
|
|
* 8 bytes per each PTE entry.
|
|
*/
|
|
#define RADIX_PTE_FRAG_SIZE_SHIFT (RADIX_PTE_INDEX_SIZE + 3)
|
|
#define RADIX_PTE_FRAG_NR (PAGE_SIZE >> RADIX_PTE_FRAG_SIZE_SHIFT)
|
|
|
|
#define RADIX_PMD_FRAG_SIZE_SHIFT (RADIX_PMD_INDEX_SIZE + 3)
|
|
#define RADIX_PMD_FRAG_NR (PAGE_SIZE >> RADIX_PMD_FRAG_SIZE_SHIFT)
|
|
|
|
#endif /* _ASM_POWERPC_PGTABLE_RADIX_64K_H */
|