mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 12:35:17 +07:00
4bd13772ee
On the 8xx, the minimum slice size is the size of the area covered by a single PMD entry, ie 4M in 4K pages mode and 64M in 16K pages mode. This patch increases the number of slices from 16 to 64 on the 8xx. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
19 lines
533 B
C
19 lines
533 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_POWERPC_NOHASH_32_SLICE_H
|
|
#define _ASM_POWERPC_NOHASH_32_SLICE_H
|
|
|
|
#ifdef CONFIG_PPC_MM_SLICES
|
|
|
|
#define SLICE_LOW_SHIFT 26 /* 64 slices */
|
|
#define SLICE_LOW_TOP (0x100000000ull)
|
|
#define SLICE_NUM_LOW (SLICE_LOW_TOP >> SLICE_LOW_SHIFT)
|
|
#define GET_LOW_SLICE_INDEX(addr) ((addr) >> SLICE_LOW_SHIFT)
|
|
|
|
#define SLICE_HIGH_SHIFT 0
|
|
#define SLICE_NUM_HIGH 0ul
|
|
#define GET_HIGH_SLICE_INDEX(addr) (addr & 0)
|
|
|
|
#endif /* CONFIG_PPC_MM_SLICES */
|
|
|
|
#endif /* _ASM_POWERPC_NOHASH_32_SLICE_H */
|