drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / riscv / include / asm / vmalloc.h
blobfefe94dc98e20d620b1781af36992457c114062f
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef _ASM_RISCV_VMALLOC_H
3 #define _ASM_RISCV_VMALLOC_H
5 #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
7 extern bool pgtable_l4_enabled, pgtable_l5_enabled;
9 #define IOREMAP_MAX_ORDER (PUD_SHIFT)
11 #define arch_vmap_pud_supported arch_vmap_pud_supported
12 static inline bool arch_vmap_pud_supported(pgprot_t prot)
14 return pgtable_l4_enabled || pgtable_l5_enabled;
17 #define arch_vmap_pmd_supported arch_vmap_pmd_supported
18 static inline bool arch_vmap_pmd_supported(pgprot_t prot)
20 return true;
23 #endif
25 #endif /* _ASM_RISCV_VMALLOC_H */