drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / mips / include / asm / sparsemem.h
blobb0686ca3d8bfd7aa569597ef171b1ee36a2381ac
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _MIPS_SPARSEMEM_H
3 #define _MIPS_SPARSEMEM_H
4 #ifdef CONFIG_SPARSEMEM
6 /*
7 * SECTION_SIZE_BITS 2^N: how big each section will be
8 * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space
9 */
10 #if defined(CONFIG_MIPS_HUGE_TLB_SUPPORT) && defined(CONFIG_PAGE_SIZE_64KB)
11 # define SECTION_SIZE_BITS 29
12 #else
13 # define SECTION_SIZE_BITS 28
14 #endif
15 #define MAX_PHYSMEM_BITS 48
17 #endif /* CONFIG_SPARSEMEM */
18 #endif /* _MIPS_SPARSEMEM_H */