Introducing the Maple Tree
Subsystems (50)
v7 cover Introducing the Maple Tree
Andrew,
Please add this patch set to your branch. They are based on v5.18-rc1.
git: https://github.com/oracle/linux-uek/tree/howlett/maple/20220404
Thank you,
Liam
Liam R. Howlett (61):
radix tree test suite: Add pr_err define
radix tree test suite: Add kmem_cache_set_non_kernel() radix tree test suite: Add allocation counts and size to kmem_cache radix tree test suite: Add support for slab bulk APIs radix tree test suite: Add lockdep_is_held to header
mips: Rename mt_init to mips_mt_init
Maple Tree: Add new data structure
lib/test_maple_tree: Add testing for maple tree
mm: Start tracking VMAs with maple tree
arch/arm64: Remove the merge workaround for VMA_ITERATOR mm/mmap: Use the maple tree in find_vma() instead of the rbtree. mm/mmap: Use the maple tree for find_vma_prev() instead of the rbtree mm/mmap: Use maple tree for unmapped_area{_topdown} kernel/fork: Use maple tree for dup_mmap() during forking
mm: Remove rb tree.
mmap: Change zeroing of maple tree in __vma_adjust()
xen: Use vma_lookup() in privcmd_ioctl_mmap()
mm: Optimize find_exact_vma() to use vma_lookup() mm/khugepaged: Optimize collapse_pte_mapped_thp() by using
vma_lookup()
mm/mmap: Change do_brk_flags() to expand existing VMA and add
do_brk_munmap()
mm: Use maple tree operations for find_vma_intersection() mm/mmap: Use advanced maple tree API for mmap_region()
mm: Remove vmacache
mm/mmap: Move mmap_region() below do_munmap()
mm/mmap: Reorganize munmap to use maple states
mm/mmap: Change do_brk_munmap() to use do_mas_align_munmap()
arm64: Remove mmap linked list from vdso
parisc: Remove mmap linked list from cache handling
powerpc: Remove mmap linked list walks
s390: Remove vma linked list walks
x86: Remove vma linked list walks
xtensa: Remove vma linked list walks
cxl: Remove vma linked list walk
optee: Remove vma linked list walk
um: Remove vma linked list walk
exec: Use VMA iterator instead of linked list fs/proc/base: Use maple tree iterators in place of linked list
userfaultfd: Use maple tree iterator to iterate VMAs ipc/shm: Use VMA iterator instead of linked list
acct: Use VMA iterator instead of linked list
perf: Use VMA iterator
sched: Use maple tree iterator to walk VMAs
fork: Use VMA iterator
bpf: Remove VMA linked list
mm/gup: Use maple tree navigation instead of linked list mm/khugepaged: Stop using vma linked list
mm/ksm: Use vma iterators instead of vma linked list mm/madvise: Use vma_find() instead of vma linked list mm/memcontrol: Stop using mm->highest_vm_end mm/mempolicy: Use vma iterator & maple state instead of vma linked
list
mm/mlock: Use vma iterator and instead of vma linked list mm/mprotect: Use maple tree navigation instead of vma linked list mm/mremap: Use vma_find_intersection() instead of vma linked list mm/msync: Use vma_find() instead of vma linked list mm/oom_kill: Use maple tree iterators instead of vma linked list mm/pagewalk: Use vma_find() instead of vma linked list mm/swapfile: Use vma iterator instead of vma linked list
riscv: Use vma iterator for vdso
mm: Remove the vma linked list
mm/mmap: Drop range_has_overlap() function
mm/mmap.c: Pass in mapping to __vma_link_file()
Matthew Wilcox (Oracle) (9):
mm: Add VMA iterator
mmap: Use the VMA iterator in count_vma_pages_range()
damon: Convert __damon_va_three_regions to use the VMA iterator
proc: Remove VMA rbtree use from nommu
mm: Convert vma_lookup() to use mtree_load()
coredump: Remove vma linked list walk fs/proc/task_mmu: Stop using linked list and highest_vm_end
i915: Use the VMA iterator
nommu: Remove uses of VMA linked list
Documentation/core-api/index.rst | 1 + Documentation/core-api/maple_tree.rst | 218 + MAINTAINERS | 12 + arch/arm64/kernel/elfcore.c | 7 - arch/arm64/kernel/vdso.c | 3 +- arch/mips/kernel/mips-mt.c | 4 +- arch/parisc/kernel/cache.c | 7 +- arch/powerpc/kernel/vdso.c | 6 +- arch/powerpc/mm/book3s32/tlb.c | 11 +- arch/powerpc/mm/book3s64/subpage_prot.c | 13 +- arch/riscv/kernel/vdso.c | 3 +- arch/s390/kernel/vdso.c | 3 +- arch/s390/mm/gmap.c | 6 +- arch/um/kernel/tlb.c | 14 +- arch/x86/entry/vdso/vma.c | 9 +- arch/x86/kernel/tboot.c | 2 +- arch/xtensa/kernel/syscall.c | 18 +- drivers/firmware/efi/efi.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_userptr.c | 14 +- drivers/misc/cxl/fault.c | 45 +- drivers/tee/optee/call.c | 18 +- drivers/xen/privcmd.c | 2 +- fs/coredump.c | 34 +- fs/exec.c | 12 +- fs/proc/base.c | 5 +- fs/proc/internal.h | 2 +- fs/proc/task_mmu.c | 74 +- fs/proc/task_nommu.c | 45 +- fs/userfaultfd.c | 49 +- include/linux/maple_tree.h | 682 + include/linux/mm.h | 74 +- include/linux/mm_types.h | 43 +- include/linux/mm_types_task.h | 12 - include/linux/sched.h | 1 - include/linux/userfaultfd_k.h | 7 +- include/linux/vm_event_item.h | 4 - include/linux/vmacache.h | 28 - include/linux/vmstat.h | 6 - include/trace/events/maple_tree.h | 123 + include/trace/events/mmap.h | 71 + init/main.c | 2 + ipc/shm.c | 21 +- kernel/acct.c | 11 +- kernel/bpf/task_iter.c | 10 +- kernel/debug/debug_core.c | 12 - kernel/events/core.c | 3 +- kernel/events/uprobes.c | 9 +- kernel/fork.c | 58 +- kernel/sched/fair.c | 10 +- lib/Kconfig.debug | 17 +- lib/Makefile | 3 +- lib/maple_tree.c | 6979 +++ lib/test_maple_tree.c | 37810 ++++++++++++++++ mm/Makefile | 2 +- mm/damon/vaddr-test.h | 37 +- mm/damon/vaddr.c | 53 +- mm/debug.c | 14 +- mm/gup.c | 7 +- mm/huge_memory.c | 4 +- mm/init-mm.c | 4 +- mm/internal.h | 78 +- mm/khugepaged.c | 13 +- mm/ksm.c | 18 +- mm/madvise.c | 2 +- mm/memcontrol.c | 6 +- mm/memory.c | 33 +- mm/mempolicy.c | 55 +- mm/mlock.c | 34 +- mm/mmap.c | 2053 +- mm/mprotect.c | 7 +- mm/mremap.c | 22 +- mm/msync.c | 2 +- mm/nommu.c | 135 +- mm/oom_kill.c | 3 +- mm/pagewalk.c | 2 +- mm/swapfile.c | 4 +- mm/util.c | 32 - mm/vmacache.c | 117 - mm/vmstat.c | 4 - tools/include/linux/slab.h | 4 + tools/testing/radix-tree/.gitignore | 2 + tools/testing/radix-tree/Makefile | 9 +- tools/testing/radix-tree/generated/autoconf.h | 1 + tools/testing/radix-tree/linux.c | 160 +- tools/testing/radix-tree/linux/kernel.h | 1 + tools/testing/radix-tree/linux/lockdep.h | 2 + tools/testing/radix-tree/linux/maple_tree.h | 7 + tools/testing/radix-tree/maple.c | 59 + .../radix-tree/trace/events/maple_tree.h | 3 + 89 files changed, 47804 insertions(+), 1820 deletions(-) create mode 100644 Documentation/core-api/maple_tree.rst create mode 100644 include/linux/maple_tree.h delete mode 100644 include/linux/vmacache.h create mode 100644 include/trace/events/maple_tree.h create mode 100644 lib/maple_tree.c create mode 100644 lib/test_maple_tree.c delete mode 100644 mm/vmacache.c create mode 100644 tools/testing/radix-tree/linux/maple_tree.h create mode 100644 tools/testing/radix-tree/maple.c create mode 100644 tools/testing/radix-tree/trace/events/maple_tree.h
Signature · 1 line
2.34.1
PATCH v7 1/70 radix tree test suite: Add pr_err define
From: "Liam R. Howlett" <[email protected]>
define pr_err to printk
--- tools/testing/radix-tree/linux/kernel.h | 1 + 1 file changed, 1 insertion(+)
tools/testing/radix-tree/linux/kernel.h +1 -0
@@ -14,6 +14,7 @@#include "../../../include/linux/kconfig.h" #define printk printf +#define pr_err printk#define pr_info printk#define pr_debug printk#define pr_cont printk
Signature · 1 line
2.34.1
PATCH v7 2/70 radix tree test suite: Add kmem_cache_set_non_kernel()
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
kmem_cache_set_non_kernel() is a mechanism to allow a certain number of kmem_cache_alloc requests to succeed even when GFP_KERNEL is not set in the flags. This functionality allows for testing different paths though the code.
--- tools/testing/radix-tree/linux.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-)
tools/testing/radix-tree/linux.c +13 -2
@@ -23,15 +23,25 @@ struct kmem_cache {int nr_objs;void *objs;void (*ctor)(void *); +unsigned int non_kernel; }; +void kmem_cache_set_non_kernel (struct kmem_cache *cachep,unsigned int val) +{ + cachep->non_kernel = val; +} +void *kmem_cache_alloc_lru (struct kmem_cache *cachep,struct list_lru *lru,int gfp) {void *p; -if (!(gfp & __GFP_DIRECT_RECLAIM)) -return NULL ; +if (!(gfp & __GFP_DIRECT_RECLAIM)) { +if (!cachep->non_kernel) +return NULL ; + + cachep->non_kernel--; + }pthread_mutex_lock (&cachep->lock);if (cachep->nr_objs) {
@@ -90,5 +100,6 @@ kmem_cache_create(const char *name, unsigned int size, unsigned int align, ret->nr_objs =0 ; ret->objs =NULL ; ret->ctor = ctor; + ret->non_kernel =0 ;return ret; }
Signature · 1 line
2.34.1
PATCH v7 3/70 radix tree test suite: Add allocation counts and size to kmem_cache
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Add functions to get the number of allocations, and total allocations from a kmem_cache. Also add a function to get the allocated size and a way to zero the total allocations.
--- tools/testing/radix-tree/linux.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
tools/testing/radix-tree/linux.c +27 -0
@@ -24,6 +24,8 @@ struct kmem_cache {void *objs;void (*ctor)(void *);unsigned int non_kernel; +unsigned long nr_allocated; +unsigned long nr_tallocated; };void kmem_cache_set_non_kernel (struct kmem_cache *cachep,unsigned int val)
@@ -31,6 +33,26 @@ void kmem_cache_set_non_kernel(struct kmem_cache *cachep, unsigned int val) cachep->non_kernel = val; } +unsigned long kmem_cache_get_alloc (struct kmem_cache *cachep) +{ +return cachep->size * cachep->nr_allocated; +} + +unsigned long kmem_cache_nr_allocated (struct kmem_cache *cachep) +{ +return cachep->nr_allocated; +} + +unsigned long kmem_cache_nr_tallocated (struct kmem_cache *cachep) +{ +return cachep->nr_tallocated; +} + +void kmem_cache_zero_nr_tallocated (struct kmem_cache *cachep) +{ + cachep->nr_tallocated =0 ; +} +void *kmem_cache_alloc_lru (struct kmem_cache *cachep,struct list_lru *lru,int gfp) {
@@ -63,7 +85,9 @@ void *kmem_cache_alloc_lru(struct kmem_cache *cachep, struct list_lru *lru,memset (p,0 , cachep->size); } +uatomic_inc (&cachep->nr_allocated);uatomic_inc (&nr_allocated); +uatomic_inc (&cachep->nr_tallocated);if (kmalloc_verbose)printf ("Allocating %p from slab\n" , p);return p;
@@ -73,6 +97,7 @@ void kmem_cache_free(struct kmem_cache *cachep, void *objp) {assert (objp);uatomic_dec (&nr_allocated); +uatomic_dec (&cachep->nr_allocated);if (kmalloc_verbose)printf ("Freeing %p to slab\n" , objp);pthread_mutex_lock (&cachep->lock);
@@ -98,6 +123,8 @@ kmem_cache_create(const char *name, unsigned int size, unsigned int align, ret->size = size; ret->align = align; ret->nr_objs =0 ; + ret->nr_allocated =0 ; + ret->nr_tallocated =0 ; ret->objs =NULL ; ret->ctor = ctor; ret->non_kernel =0 ;
Signature · 1 line
2.34.1
PATCH v7 4/70 radix tree test suite: Add support for slab bulk APIs
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Add support for kmem_cache_free_bulk() and kmem_cache_alloc_bulk() to the radix tree test suite.
--- tools/include/linux/slab.h | 4 ++ tools/testing/radix-tree/linux.c | 118 ++++++++++++++++++++++++++++++- 2 files changed, 120 insertions(+), 2 deletions(-)
tools/include/linux/slab.h +4 -0
@@ -41,4 +41,8 @@ struct kmem_cache *kmem_cache_create(const char *name, unsigned int size, unsigned int align, unsigned int flags, void (*ctor)(void *)); +void kmem_cache_free_bulk (struct kmem_cache *cachep,size_t size,void **list); +int kmem_cache_alloc_bulk (struct kmem_cache *cachep,gfp_t gfp,size_t size, +void **list); +#endif /* _TOOLS_SLAB_H */
tools/testing/radix-tree/linux.c +116 -2
142 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v7 5/70 radix tree test suite: Add lockdep_is_held to header
In reply to Liam Howlettmaple tree uses lockdep_is_held, so define it as external in the header.
--- tools/testing/radix-tree/linux/lockdep.h | 2 ++ 1 file changed, 2 insertions(+)
tools/testing/radix-tree/linux/lockdep.h +2 -0
@@ -11,4 +11,6 @@ static inline void lockdep_set_class(spinlock_t *lock, struct lock_class_key *key) { } + +extern int lockdep_is_held (const void *);#endif /* _LINUX_LOCKDEP_H */
Signature · 1 line
2.34.1
PATCH v7 6/70 mips: Rename mt_init to mips_mt_init
In reply to Liam HowlettMove mt_init out of the way for the maple tree.
Use mips_mt prefix to match the rest of the functions in the file.
--- arch/mips/kernel/mips-mt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/kernel/mips-mt.c +2 -2
@@ -230,7 +230,7 @@ void mips_mt_set_cpuoptions(void)struct class *mt_class; -static int __init mt_init (void ) +static int __init mips_mt_init (void ) {struct class *mtc;
@@ -243,4 +243,4 @@ static int __init mt_init(void)return 0 ; } -subsys_initcall (mt_init); +subsys_initcall (mips_mt_init);
Signature · 1 line
2.34.1
PATCH v7 7/70 Maple Tree: Add new data structure
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
The maple tree is an RCU-safe range based B-tree designed to use modern processor cache efficiently. There are a number of places in the kernel that a non-overlapping range-based tree would be beneficial, especially one with a simple interface. The first user that is covered in this patch set is the vm_area_struct, where three data structures are replaced by the maple tree: the augmented rbtree, the vma cache, and the linked list of VMAs in the mm_struct. The long term goal is to reduce or remove the mmap_sem contention.
The tree has a branching factor of 10 for non-leaf nodes and 16 for leaf nodes. With the increased branching factor, it is significantly shorter than the rbtree so it has fewer cache misses. The removal of the linked list between subsequent entries also reduces the cache misses and the need to pull in the previous and next VMA during many tree alterations.
--- Documentation/core-api/index.rst | 1 + Documentation/core-api/maple_tree.rst | 218 + MAINTAINERS | 12 + include/linux/maple_tree.h | 682 ++ include/trace/events/maple_tree.h | 123 + init/main.c | 2 + lib/Kconfig.debug | 15 + lib/Makefile | 3 +- lib/maple_tree.c | 6979 +++++++++++++++++ tools/testing/radix-tree/.gitignore | 2 + tools/testing/radix-tree/generated/autoconf.h | 1 + tools/testing/radix-tree/linux/maple_tree.h | 7 + tools/testing/radix-tree/maple.c | 59 + .../radix-tree/trace/events/maple_tree.h | 3 + 14 files changed, 8106 insertions(+), 1 deletion(-) create mode 100644 Documentation/core-api/maple_tree.rst create mode 100644 include/linux/maple_tree.h create mode 100644 include/trace/events/maple_tree.h create mode 100644 lib/maple_tree.c create mode 100644 tools/testing/radix-tree/linux/maple_tree.h create mode 100644 tools/testing/radix-tree/maple.c create mode 100644 tools/testing/radix-tree/trace/events/maple_tree.h
Documentation/core-api/index.rst +1 -0
@@ -34,6 +34,7 @@ Library functionality that is used throughout the kernel. kref assoc_array xarray + maple_tree idr circular-buffers rbtree
Documentation/core-api/maple_tree.rst new file +218 -0
218 lines not on this page · raw message
MAINTAINERS +12 -0
@@ -11658,6 +11658,18 @@ L: [email protected] S: Maintained W: http://www.kernel.org/doc/man-pages +MAPLE TREE +M: Liam R. Howlett <[email protected]> +L: [email protected] +S: Supported +F: Documentation/core-api/maple_tree.rst +F: include/linux/maple_tree.h +F: include/trace/events/maple_tree.h +F: lib/maple_tree.c +F: lib/test_maple_tree.c +F: tools/testing/_adix-tree/linux/maple_tree.h +F: tools/testing/radix-tree/maple.c + MARDUK (CREATOR CI40) DEVICE TREE SUPPORT M: Rahul Bedarkar <[email protected]> L: [email protected]
include/linux/maple_tree.h new file +682 -0
682 lines not on this page · raw message
include/trace/events/maple_tree.h new file +123 -0
123 lines not on this page · raw message
init/main.c +2 -0
@@ -116,6 +116,7 @@ static int kernel_init(void *);extern void init_IRQ (void );extern void radix_tree_init (void ); +extern void maple_tree_init (void );/* * Debug helper: via this flag we know that we are in 'early bootup code'
@@ -1001,6 +1002,7 @@ asmlinkage __visible void __init __no_sanitize_address start_kernel(void) "Interrupts were enabled *very* early, fixing it\n"))local_irq_disable ();radix_tree_init (); +maple_tree_init ();/* * Set up housekeeping before setting up workqueues to allow the unbound
lib/Kconfig.debug +15 -0
@@ -845,6 +845,13 @@ config DEBUG_VM_VMACACHE can cause significant overhead, so only enable it in non-production environments. +config DEBUG_VM_MAPLE_TREE + bool "Debug VM maple trees" + depends on DEBUG_VM + select DEBUG_MAPLE_TREE + help + Enable VM maple tree debugging information and extra validations. + If unsure, say N. config DEBUG_VM_RB
@@ -1705,6 +1712,14 @@ config BUG_ON_DATA_CORRUPTION If unsure, say N. +config DEBUG_MAPLE_TREE + bool "Debug maple trees" + depends on DEBUG_KERNEL + help + Enable maple tree debugging information and extra validations. + + If unsure, say N. + endmenu config DEBUG_CREDENTIALS
lib/Makefile +2 -1
@@ -29,7 +29,8 @@ endif lib-y := ctype.o string.o vsprintf.o cmdline.o \ rbtree.o radix-tree.o timerqueue.o xarray.o \ - idr.o extable.o sha1.o irq_regs.o argv_split.o \ + maple_tree.o idr.o extable.o \ + sha1.o irq_regs.o argv_split.o \ flex_proportions.o ratelimit.o show_mem.o \ is_single_threaded.o plist.o decompress.o kobject_uevent.o \ earlycpio.o seq_buf.o siphash.o dec_and_lock.o \
lib/maple_tree.c new file +6979 -0
1,902 lines not on this page · raw message
tools/testing/radix-tree/generated/autoconf.h +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/radix-tree/linux/maple_tree.h new file +7 -0
Lines of this file are not shown. View the raw message.
tools/testing/radix-tree/maple.c new file +59 -0
59 lines not on this page · raw message
tools/testing/radix-tree/trace/events/maple_tree.h new file +3 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.34.1
Part of the diff is not shown here. View the raw message.
Re: [PATCH v7 07/70] Maple Tree: Add new data structure
Quoted 35 lines · Liam Howlett
From: "Liam R. Howlett" <[email protected]>
The maple tree is an RCU-safe range based B-tree designed to use modern processor cache efficiently. There are a number of places in the kernel that a non-overlapping range-based tree would be beneficial, especially one with a simple interface. The first user that is covered in this patch set is the
vm_area_struct, where three data structures are replaced by the maple tree: the augmented rbtree, the vma cache, and the linked list of VMAs in themm_struct. The long term goal is to reduce or remove themmap_semcontention.The tree has a branching factor of 10 for non-leaf nodes and 16 for leaf nodes. With the increased branching factor, it is significantly shorter than the rbtree so it has fewer cache misses. The removal of the linked list between subsequent entries also reduces the cache misses and the need to pull in the previous and next VMA during many tree alterations.
Signed-off-by Matthew Wilcox (Oracle) <[email protected]>Signed-off-by Liam R. Howlett <[email protected]>Tested-by David Howells <[email protected]>--- Documentation/core-api/index.rst | 1 + Documentation/core-api/maple_tree.rst | 218 + MAINTAINERS | 12 + include/linux/maple_tree.h | 682 ++ include/trace/events/maple_tree.h | 123 + init/main.c | 2 + lib/Kconfig.debug | 15 + lib/Makefile | 3 +- lib/maple_tree.c | 6979 +++++++++++++++++ tools/testing/radix-tree/.gitignore | 2 + tools/testing/radix-tree/generated/autoconf.h | 1 + tools/testing/radix-tree/linux/maple_tree.h | 7 + tools/testing/radix-tree/maple.c | 59 + .../radix-tree/trace/events/maple_tree.h | 3 +
Quoted 9 lines
14 files changed, 8106 insertions(+), 1 deletion(-) create mode 100644 Documentation/core-api/maple_tree.rst create mode 100644 include/linux/maple_tree.h create mode 100644 include/trace/events/maple_tree.h create mode 100644 lib/maple_tree.c create mode 100644 tools/testing/radix-tree/linux/maple_tree.h create mode 100644 tools/testing/radix-tree/maple.c create mode 100644 tools/testing/radix-tree/trace/events/maple_tree.h
...
Andrew,
Please add this fix to the maple tree patch.
Thanks,
Liam
From 0773dfda2194064a88d5331876a24882ceec6d03 Mon Sep 17 00:00:00 2001
From: "Liam R. Howlett" <[email protected]>
Date: Wed, 20 Apr 2022 09:36:02 -0400
Subject: [PATCH] maple_tree: Fix potential insufficient nodes on
mas_spanning_rebalance()
When a spanning store occurs at a non-root node but causes an insufficient leave, mas_spanning_rebalance() was not detecting it as a non-root node. This only happened when the spanning write was detected at the root node.
--- lib/maple_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/maple_tree.c +1 -1
@@ -2894,7 +2894,7 @@ static int mas_spanning_rebalance(struct ma_state *mas, mast->free = &free; mast->destroy = &destroy; l_mas.node = r_mas.node = m_mas.node =MAS_NONE ; -if (!mas_is_root_limits (mas) && +if (!mas_is_root_limits (mast->orig_l) &&unlikely (mast->bn->b_end <= mt_min_slots[mast->bn->type])) {/* * Do not free the current node as it may be freed in a bulk
Signature · 1 line
2.34.1
PATCH v7 8/70 lib/test_maple_tree: Add testing for maple tree
In reply to Liam HowlettThis is a test suite that uses the radix test infrastructure. It has been split into its own commit to allow for easier review of the maple tree code.
--- lib/test_maple_tree.c | 37810 ++++++++++++++++++++++++++++ tools/testing/radix-tree/Makefile | 9 +- 2 files changed, 37817 insertions(+), 2 deletions(-) create mode 100644 lib/test_maple_tree.c
lib/test_maple_tree.c new file +37810 -0
@@ -0,0 +1,37810 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* +* test_maple_tree.c: Test the maple tree API +* Copyright (c) 2018 Liam R. Howlett +* Author: Liam R. Howlett <[email protected]> +*/ + +#include <linux/maple_tree.h> +#include <linux/module.h> +#include <stdlib.h> +#include <time.h> + +#define MTREE_ALLOC_MAX 0x2000000000000Ul +#define CONFIG_DEBUG_MAPLE_TREE +#define CONFIG_MAPLE_SEARCH +/* #define BENCH_SLOT_STORE */ +/* #define BENCH_NODE_STORE */ +/* #define BENCH_AWALK */ +/* #define BENCH_WALK */ +/* #define BENCH_MT_FOR_EACH */ +/* #define BENCH_FORK */ +static +int mtree_insert_index (struct maple_tree *mt,unsigned long index,gfp_t gfp) +{ +return mtree_insert (mt, index,xa_mk_value (index &LONG_MAX ), gfp); +} + +static void mtree_erase_index (struct maple_tree *mt,unsigned long index) +{ +MT_BUG_ON (mt,mtree_erase (mt, index) !=xa_mk_value (index &LONG_MAX )); +MT_BUG_ON (mt,mtree_load (mt, index) !=NULL ); +} + +static int mtree_test_insert (struct maple_tree *mt,unsigned long index, +void *ptr) +{ +return mtree_insert (mt, index, ptr,GFP_KERNEL ); +} + +static int mtree_test_store_range (struct maple_tree *mt,unsigned long start, +unsigned long end,void *ptr) +{ +return mtree_store_range (mt, start, end, ptr,GFP_KERNEL ); +} + +static int mtree_test_store (struct maple_tree *mt,unsigned long start, +void *ptr) +{ +return mtree_test_store_range (mt, start, start, ptr); +} + +static int mtree_test_insert_range (struct maple_tree *mt,unsigned long start, +unsigned long end,void *ptr) +{ +return mtree_insert_range (mt, start, end, ptr,GFP_KERNEL ); +} + +static void *mtree_test_load (struct maple_tree *mt,unsigned long index) +{ +return mtree_load (mt, index); +} + +static void *mtree_test_erase (struct maple_tree *mt,unsigned long index) +{ +return mtree_erase (mt, index); +} + +static noinline void check_mtree_alloc_range(struct maple_tree *mt, +unsigned long start,unsigned long end,unsigned long size, +unsigned long expected,int eret,void *ptr) +{ + +unsigned long result = expected +1 ; +int ret; + + ret =mtree_alloc_range (mt, &result, ptr, size, start, end, +GFP_KERNEL ); +MT_BUG_ON (mt, ret != eret); +if (ret) +return ; + +MT_BUG_ON (mt, result != expected); +} + +static noinline void check_mtree_alloc_rrange(struct maple_tree *mt, +unsigned long start,unsigned long end,unsigned long size, +unsigned long expected,int eret,void *ptr) +{ + +unsigned long result = expected +1 ; +int ret; + + ret =mtree_alloc_rrange (mt, &result, ptr, size, start, end -1 , +GFP_KERNEL ); +MT_BUG_ON (mt, ret != eret); +if (ret) +return ; + +MT_BUG_ON (mt, result != expected); +} + +static noinline void check_load(struct maple_tree *mt, unsigned long index, +void *ptr) +{ +void *ret =mtree_test_load (mt, index); + +if (ret != ptr) +pr_err ("Load %lu returned %p expect %p\n" , index, ret, ptr); +MT_BUG_ON (mt, ret != ptr); +} + +static noinline void check_store_range(struct maple_tree *mt, +unsigned long start,unsigned long end,void *ptr,int expected) +{ +int ret = -EINVAL ; +unsigned long i; + + ret =mtree_test_store_range (mt, start, end, ptr); +MT_BUG_ON (mt, ret != expected); + +if (ret) +return ; + +for (i = start; i <= end; i++) +check_load (mt, i, ptr); +} + +static noinline void check_insert_range(struct maple_tree *mt, +unsigned long start,unsigned long end,void *ptr,int expected) +{ +int ret = -EINVAL ; +unsigned long i; + + ret =mtree_test_insert_range (mt, start, end, ptr); +MT_BUG_ON (mt, ret != expected); + +if (ret) +return ; + +for (i = start; i <= end; i++) +check_load (mt, i, ptr); +} + +static noinline void check_insert(struct maple_tree *mt, unsigned long index, +void *ptr) +{ +int ret = -EINVAL ; + + ret =mtree_test_insert (mt, index, ptr); +MT_BUG_ON (mt, ret !=0 ); +} + +static noinline void check_erase(struct maple_tree *mt, unsigned long index, +void *ptr) +{ +MT_BUG_ON (mt,mtree_test_erase (mt, index) != ptr); +} + +static noinline void check_dup_insert(struct maple_tree *mt, +unsigned long index,void *ptr) +{ +int ret = -EINVAL ; + + ret =mtree_test_insert (mt, index, ptr); +MT_BUG_ON (mt, ret != -EEXIST ); +} + + +static noinline +void check_index_load(struct maple_tree *mt, unsigned long index) +{ +return check_load (mt, index,xa_mk_value (index &LONG_MAX )); +} + +static noinline void check_nomem(struct maple_tree *mt) +{ +MA_STATE (ms, mt,1 ,1 ); + +MT_BUG_ON (mt, !mtree_empty (mt)); +/* Ensure no bypassing of allocation failures */ +mt_set_non_kernel (0 ); + +/* Storing something at 1 requires memory allocation */ +MT_BUG_ON (mt,mtree_insert (mt,1 , &ms,GFP_ATOMIC ) != -ENOMEM ); +/* Storing something at 0 does not */ +MT_BUG_ON (mt,mtree_insert (mt,0 , &ms,GFP_ATOMIC ) !=0 ); + +/* +* Simulate two threads racing; the first one fails to allocate +* memory to insert an entry at 1, then the second one succeeds +* in allocating memory to insert an entry at 2. The first one +* then needs to free the node it allocated. LeakSanitizer will +* notice this, as will the 'nr_allocated' debugging aid in the +* userspace test suite. +*/ +mtree_lock (mt); +mas_store (&ms, &ms);/* insert 1 -> &ms, fails. */ +MT_BUG_ON (mt, ms.node !=MA_ERROR (-ENOMEM )); +mas_nomem (&ms,GFP_KERNEL );/* Node allocated in here. */ +MT_BUG_ON (mt, ms.node !=MAS_START ); +mtree_unlock (mt); +MT_BUG_ON (mt,mtree_insert (mt,2 , mt,GFP_KERNEL ) !=0 ); +mtree_lock (mt); +mas_store (&ms, &ms);/* insert 1 -> &ms */ +mas_nomem (&ms,GFP_KERNEL );/* Node allocated in here. */ +mtree_unlock (mt); +mtree_destroy (mt); +} + +static inline int not_empty (struct maple_node *node) +{ +int i; + +if (node->parent) +return 1 ; + +for (i =0 ; i <ARRAY_SIZE (node->slot); i++) +if (node->slot[i]) +return 1 ; + +return 0 ; +} + +static noinline void check_new_node(struct maple_tree *mt) +{ + +struct maple_node *mn, *mn2, *mn3; +struct maple_alloc *smn; +struct maple_node *nodes[100 ]; +int i, j, total; + +MA_STATE (mas, mt,0 ,0 ); + +/* Try allocating 3 nodes */ +mtree_lock (mt); +/* request 3 nodes to be allocated. */ +mas_node_count (&mas,3 ); +/* Allocation request of 3. */ +MT_BUG_ON (mt,mas_alloc_req (&mas) !=3 ); +/* Allocate failed. */ +MT_BUG_ON (mt, mas.node !=MA_ERROR (-ENOMEM )); +MT_BUG_ON (mt, !mas_nomem (&mas,GFP_KERNEL )); + +MT_BUG_ON (mt,mas_allocated (&mas) !=3 ); + mn =mas_pop_node (&mas); +MT_BUG_ON (mt,not_empty (mn)); +MT_BUG_ON (mt, mn ==NULL ); +MT_BUG_ON (mt, mas.alloc ==NULL ); +MT_BUG_ON (mt, mas.alloc->slot[0 ] ==NULL ); +mas_push_node (&mas, mn); +mas_nomem (&mas,GFP_KERNEL );/* free */ +mtree_unlock (mt); + + +/* Try allocating 1 node, then 2 more */ +mtree_lock (mt); +/* Set allocation request to 1. */ +mas_set_alloc_req (&mas,1 ); +/* Check Allocation request of 1. */ +MT_BUG_ON (mt,mas_alloc_req (&mas) !=1 ); +mas_set_err (&mas, -ENOMEM ); +/* Validate allocation request. */ +MT_BUG_ON (mt, !mas_nomem (&mas,GFP_KERNEL )); +/* Eat the requested node. */ + mn =mas_pop_node (&mas); +MT_BUG_ON (mt,not_empty (mn)); +MT_BUG_ON (mt, mn ==NULL ); +MT_BUG_ON (mt, mn->slot[0 ] !=NULL ); +MT_BUG_ON (mt, mn->slot[1 ] !=NULL ); +MT_BUG_ON (mt,mas_allocated (&mas) !=0 ); + +ma_free_rcu (mn); + mas.node =MAS_START ; +mas_nomem (&mas,GFP_KERNEL ); +/* Allocate 3 nodes, will fail. */ +mas_node_count (&mas,3 ); +/* Drop the lock and allocate 3 nodes. */ +mas_nomem (&mas,GFP_KERNEL ); +/* Ensure 3 are allocated. */ +MT_BUG_ON (mt,mas_allocated (&mas) !=3 ); +/* Allocation request of 0. */ +MT_BUG_ON (mt,mas_alloc_req (&mas) !=0 ); + +MT_BUG_ON (mt, mas.alloc ==NULL ); +MT_BUG_ON (mt, mas.alloc->slot[0 ] ==NULL ); +MT_BUG_ON (mt, mas.alloc->slot[1 ] ==NULL ); +/* Ensure we counted 3. */ +MT_BUG_ON (mt,mas_allocated (&mas) !=3 ); +/* Free. */ +mas_nomem (&mas,GFP_KERNEL ); + +/* Set allocation request to 1. */ +mas_set_alloc_req (&mas,1 ); +MT_BUG_ON (mt,mas_alloc_req (&mas) !=1 ); +mas_set_err (&mas, -ENOMEM ); +/* Validate allocation request. */ +MT_BUG_ON (mt, !mas_nomem (&mas,GFP_KERNEL )); +MT_BUG_ON (mt,mas_allocated (&mas) !=1 ); +/* Check the node is only one node. */ + mn =mas_pop_node (&mas); +MT_BUG_ON (mt,not_empty (mn)); +MT_BUG_ON (mt,mas_allocated (&mas) !=0 ); +MT_BUG_ON (mt, mn ==NULL ); +MT_BUG_ON (mt, mn->slot[0 ] !=NULL ); +MT_BUG_ON (mt, mn->slot[1 ] !=NULL ); +MT_BUG_ON (mt,mas_allocated (&mas) !=0 ); +mas_push_node (&mas, mn); +MT_BUG_ON (mt,mas_allocated (&mas) !=1 ); +MT_BUG_ON (mt, mas.alloc->node_count); + +mas_set_alloc_req (&mas,2 );/* request 2 more. */ +MT_BUG_ON (mt,mas_alloc_req (&mas) !=2 ); +mas_set_err (&mas, -ENOMEM ); +MT_BUG_ON (mt, !mas_nomem (&mas,GFP_KERNEL )); +MT_BUG_ON (mt,mas_allocated (&mas) !=3 ); +MT_BUG_ON (mt, mas.alloc ==NULL ); +MT_BUG_ON (mt, mas.alloc->slot[0 ] ==NULL ); +MT_BUG_ON (mt, mas.alloc->slot[1 ] ==NULL ); +for (i =2 ; i >=0 ; i--) { + mn =mas_pop_node (&mas); +MT_BUG_ON (mt,mas_allocated (&mas) != i); +MT_BUG_ON (mt, !mn); +MT_BUG_ON (mt,not_empty (mn)); +ma_free_rcu (mn); + } + + total =64 ; +mas_set_alloc_req (&mas, total);/* request 2 more. */ +MT_BUG_ON (mt,mas_alloc_req (&mas) != total); +mas_set_err (&mas, -ENOMEM ); +MT_BUG_ON (mt, !mas_nomem (&mas,GFP_KERNEL )); +for (i = total; i >0 ; i--) { +unsigned int e =0 ;/* expected node_count */ + +if (i >=35 ) + e = i -35 ; +else if (i >=5 ) + e = i -5 ; +else if (i >=2 ) + e = i -2 ; +MT_BUG_ON (mt, mas.alloc->node_count != e); + mn =mas_pop_node (&mas); +MT_BUG_ON (mt,not_empty (mn)); +MT_BUG_ON (mt,mas_allocated (&mas) != i -1 ); +MT_BUG_ON (mt, !mn); +ma_free_rcu (mn); + } + + total =100 ; +for (i =1 ; i < total; i++) { +mas_set_alloc_req (&mas, i); +mas_set_err (&mas, -ENOMEM ); +MT_BUG_ON (mt, !mas_nomem (&mas,GFP_KERNEL )); +for (j = i; j >0 ; j--) { + mn =mas_pop_node (&mas); +MT_BUG_ON (mt,mas_allocated (&mas) != j -1 ); +MT_BUG_ON (mt, !mn); +MT_BUG_ON (mt,not_empty (mn)); +mas_push_node (&mas, mn); +MT_BUG_ON (mt,mas_allocated (&mas) != j); + mn =mas_pop_node (&mas); +MT_BUG_ON (mt,not_empty (mn)); +MT_BUG_ON (mt,mas_allocated (&mas) != j -1 ); +ma_free_rcu (mn); + } +MT_BUG_ON (mt,mas_allocated (&mas) !=0 ); + +mas_set_alloc_req (&mas, i); +mas_set_err (&mas, -ENOMEM ); +MT_BUG_ON (mt, !mas_nomem (&mas,GFP_KERNEL )); +for (j =0 ; j <= i/2 ; j++) { +MT_BUG_ON (mt,mas_allocated (&mas) != i - j); + nodes[j] =mas_pop_node (&mas); +MT_BUG_ON (mt,mas_allocated (&mas) != i - j -1 ); + } + +while (j) { + j--; +mas_push_node (&mas, nodes[j]); +MT_BUG_ON (mt,mas_allocated (&mas) != i - j); + } +MT_BUG_ON (mt,mas_allocated (&mas) != i); +for (j =0 ; j <= i/2 ; j++) { +MT_BUG_ON (mt,mas_allocated (&mas) != i - j); + mn =mas_pop_node (&mas); +MT_BUG_ON (mt,not_empty (mn)); +ma_free_rcu (mn); +MT_BUG_ON (mt,mas_allocated (&mas) != i - j -1 ); + } +MT_BUG_ON (mt,mas_nomem (&mas,GFP_KERNEL )); + + } + +/* Set allocation request. */ + total =500 ; +mas_node_count (&mas, total); +/* Drop the lock and allocate the nodes. */ +mas_nomem (&mas,GFP_KERNEL ); +MT_BUG_ON (mt, !mas.alloc); + i =1 ; + smn = mas.alloc; +while (i < total) { +for (j =0 ; j <MAPLE_ALLOC_SLOTS ; j++) { + i++; +MT_BUG_ON (mt, !smn->slot[j]); +if (i == total) +break ; + } + smn = smn->slot[0 ];/* next. */ + } +MT_BUG_ON (mt,mas_allocated (&mas) != total); +mas_nomem (&mas,GFP_KERNEL );/* Free. */ + +MT_BUG_ON (mt,mas_allocated (&mas) !=0 ); +for (i =1 ; i <128 ; i++) { +mas_node_count (&mas, i);/* Request */ +mas_nomem (&mas,GFP_KERNEL );/* Fill request */ +MT_BUG_ON (mt,mas_allocated (&mas) != i);/* check request filled */ +for (j = i; j >0 ; j--) {/*Free the requests */ + mn =mas_pop_node (&mas);/* get the next node. */ +MT_BUG_ON (mt, mn ==NULL ); +MT_BUG_ON (mt,not_empty (mn)); +ma_free_rcu (mn); + } +MT_BUG_ON (mt,mas_allocated (&mas) !=0 ); + } + +for (i =1 ; i <MAPLE_NODE_MASK +1 ; i++) { +MA_STATE (mas2, mt,0 ,0 ); +mas_node_count (&mas, i);/* Request */ +mas_nomem (&mas,GFP_KERNEL );/* Fill request */ +MT_BUG_ON (mt,mas_allocated (&mas) != i);/* check request filled */ +for (j =1 ; j <= i; j++) {/* Move the allocations to mas2 */ + mn =mas_pop_node (&mas);/* get the next node. */ +MT_BUG_ON (mt, mn ==NULL ); +MT_BUG_ON (mt,not_empty (mn)); +mas_push_node (&mas2, mn); +MT_BUG_ON (mt,mas_allocated (&mas2) != j); + } +MT_BUG_ON (mt,mas_allocated (&mas) !=0 ); +MT_BUG_ON (mt,mas_allocated (&mas2) != i); + +for (j = i; j >0 ; j--) {/*Free the requests */ +MT_BUG_ON (mt,mas_allocated (&mas2) != j); + mn =mas_pop_node (&mas2);/* get the next node. */ +MT_BUG_ON (mt, mn ==NULL ); +MT_BUG_ON (mt,not_empty (mn)); +ma_free_rcu (mn); + } +MT_BUG_ON (mt,mas_allocated (&mas2) !=0 ); + } + + +MT_BUG_ON (mt,mas_allocated (&mas) !=0 ); +mas_node_count (&mas,MAPLE_ALLOC_SLOTS +1 );/* Request */ +MT_BUG_ON (mt, mas.node !=MA_ERROR (-ENOMEM )); +MT_BUG_ON (mt, !mas_nomem (&mas,GFP_KERNEL )); +MT_BUG_ON (mt,mas_allocated (&mas) !=MAPLE_ALLOC_SLOTS +1 ); +MT_BUG_ON (mt, mas.alloc->node_count !=MAPLE_ALLOC_SLOTS -1 ); + + mn =mas_pop_node (&mas);/* get the next node. */ +MT_BUG_ON (mt, mn ==NULL ); +MT_BUG_ON (mt,not_empty (mn)); +MT_BUG_ON (mt,mas_allocated (&mas) !=MAPLE_ALLOC_SLOTS ); +MT_BUG_ON (mt, mas.alloc->node_count !=MAPLE_ALLOC_SLOTS -2 ); + +mas_push_node (&mas, mn); +MT_BUG_ON (mt,mas_allocated (&mas) !=MAPLE_ALLOC_SLOTS +1 ); +MT_BUG_ON (mt, mas.alloc->node_count !=MAPLE_ALLOC_SLOTS -1 ); + +/* Check the limit of pop/push/pop */ +mas_node_count (&mas,MAPLE_ALLOC_SLOTS +2 );/* Request */ +MT_BUG_ON (mt,mas_alloc_req (&mas) !=1 ); +MT_BUG_ON (mt, mas.node !=MA_ERROR (-ENOMEM )); +MT_BUG_ON (mt, !mas_nomem (&mas,GFP_KERNEL )); +MT_BUG_ON (mt,mas_alloc_req (&mas)); +MT_BUG_ON (mt, mas.alloc->node_count); +MT_BUG_ON (mt,mas_allocated (&mas) !=MAPLE_ALLOC_SLOTS +2 ); + mn =mas_pop_node (&mas); +MT_BUG_ON (mt,not_empty (mn)); +MT_BUG_ON (mt,mas_allocated (&mas) !=MAPLE_ALLOC_SLOTS +1 ); +MT_BUG_ON (mt, mas.alloc->node_count !=MAPLE_ALLOC_SLOTS -1 ); +mas_push_node (&mas, mn); +MT_BUG_ON (mt, mas.alloc->node_count); +MT_BUG_ON (mt,mas_allocated (&mas) !=MAPLE_ALLOC_SLOTS +2 ); + mn =mas_pop_node (&mas); +MT_BUG_ON (mt,not_empty (mn)); +ma_free_rcu (mn); +for (i =1 ; i <=MAPLE_ALLOC_SLOTS +1 ; i++) { + mn =mas_pop_node (&mas); +MT_BUG_ON (mt,not_empty (mn)); +ma_free_rcu (mn); + } +MT_BUG_ON (mt,mas_allocated (&mas) !=0 ); + + +for (i =3 ; i <MAPLE_NODE_MASK *3 ; i++) { + mas.node =MA_ERROR (-ENOMEM ); +mas_node_count (&mas, i);/* Request */ +mas_nomem (&mas,GFP_KERNEL );/* Fill request */ + mn =mas_pop_node (&mas);/* get the next node. */ +mas_push_node (&mas, mn);/* put it back */ +mas_destroy (&mas); + + mas.node =MA_ERROR (-ENOMEM ); +mas_node_count (&mas, i);/* Request */ +mas_nomem (&mas,GFP_KERNEL );/* Fill request */ + mn =mas_pop_node (&mas);/* get the next node. */ + mn2 =mas_pop_node (&mas);/* get the next node. */ +mas_push_node (&mas, mn);/* put them back */ +mas_push_node (&mas, mn2); +mas_destroy (&mas); + + mas.node =MA_ERROR (-ENOMEM ); +mas_node_count (&mas, i);/* Request */ +mas_nomem (&mas,GFP_KERNEL );/* Fill request */ + mn =mas_pop_node (&mas);/* get the next node. */ + mn2 =mas_pop_node (&mas);/* get the next node. */ + mn3 =mas_pop_node (&mas);/* get the next node. */ +mas_push_node (&mas, mn);/* put them back */ +mas_push_node (&mas, mn2); +mas_push_node (&mas, mn3); +mas_destroy (&mas); + + mas.node =MA_ERROR (-ENOMEM ); +mas_node_count (&mas, i);/* Request */ +mas_nomem (&mas,GFP_KERNEL );/* Fill request */ + mn =mas_pop_node (&mas);/* get the next node. */ +ma_free_rcu (mn); +mas_destroy (&mas); + + mas.node =MA_ERROR (-ENOMEM ); +mas_node_count (&mas, i);/* Request */ +mas_nomem (&mas,GFP_KERNEL );/* Fill request */ + mn =mas_pop_node (&mas);/* get the next node. */ +ma_free_rcu (mn); + mn =mas_pop_node (&mas);/* get the next node. */ +ma_free_rcu (mn); + mn =mas_pop_node (&mas);/* get the next node. */ +ma_free_rcu (mn); +mas_destroy (&mas); + } + + mas.node =MA_ERROR (-ENOMEM ); +mas_node_count (&mas,5 );/* Request */ +mas_nomem (&mas,GFP_KERNEL );/* Fill request */ +MT_BUG_ON (mt,mas_allocated (&mas) !=5 ); + mas.node =MA_ERROR (-ENOMEM ); +mas_node_count (&mas,10 );/* Request */ +mas_nomem (&mas,GFP_KERNEL );/* Fill request */ + mas.node =MAS_START ; +MT_BUG_ON (mt,mas_allocated (&mas) !=10 ); +mas_destroy (&mas); + + mas.node =MA_ERROR (-ENOMEM ); +mas_node_count (&mas,MAPLE_ALLOC_SLOTS -1 );/* Request */ +mas_nomem (&mas,GFP_KERNEL );/* Fill request */ +MT_BUG_ON (mt,mas_allocated (&mas) !=MAPLE_ALLOC_SLOTS -1 ); + mas.node =MA_ERROR (-ENOMEM ); +mas_node_count (&mas,10 +MAPLE_ALLOC_SLOTS -1 );/* Request */ +mas_nomem (&mas,GFP_KERNEL );/* Fill request */ + mas.node =MAS_START ; +MT_BUG_ON (mt,mas_allocated (&mas) !=10 +MAPLE_ALLOC_SLOTS -1 ); +mas_destroy (&mas); + +mtree_unlock (mt); +} + +static noinline void check_rev_seq(struct maple_tree *mt, unsigned long max, +bool verbose) +{ +unsigned long i = max, j; + +MT_BUG_ON (mt, !mtree_empty (mt)); + +mt_zero_nr_tallocated (); +while (i) { +MT_BUG_ON (mt,mtree_insert_index (mt, i,GFP_KERNEL )); +for (j = i; j <= max; j++) +check_index_load (mt, j); + +check_load (mt, i -1 ,NULL ); +mt_set_in_rcu (mt); +MT_BUG_ON (mt, !mt_height (mt)); +mt_clear_in_rcu (mt); +MT_BUG_ON (mt, !mt_height (mt)); + i--; + } +check_load (mt, max +1 ,NULL ); + +if (verbose) { +rcu_barrier (); +mt_dump (mt); +pr_info (" %s test of 0-%lu %luK in %d active (%d total)\n" , + __func__, max,mt_get_alloc_size ()/1024 ,mt_nr_allocated (), +mt_nr_tallocated ()); + } +} + +static noinline void check_seq(struct maple_tree *mt, unsigned long max, +bool verbose) +{ +unsigned long i, j; + +MT_BUG_ON (mt, !mtree_empty (mt)); + +mt_zero_nr_tallocated (); +for (i =0 ; i <= max; i++) { +MT_BUG_ON (mt,mtree_insert_index (mt, i,GFP_KERNEL )); +for (j =0 ; j <= i; j++) +check_index_load (mt, j); + +if (i) +MT_BUG_ON (mt, !mt_height (mt)); +check_load (mt, i +1 ,NULL ); + } +if (verbose) { +rcu_barrier (); +mt_dump (mt); +pr_info (" seq test of 0-%lu %luK in %d active (%d total)\n" , + max,mt_get_alloc_size ()/1024 ,mt_nr_allocated (), +mt_nr_tallocated ()); + } +} + +static noinline void check_lb_not_empty(struct maple_tree *mt) +{ +unsigned long i, j; +unsigned long huge =4000UL *1000 *1000 ; + + + i = huge; +while (i >4096 ) { +check_insert (mt, i, (void *) i); +for (j = huge; j >= i; j /=2 ) { +check_load (mt, j-1 ,NULL ); +check_load (mt, j, (void *) j); +check_load (mt, j+1 ,NULL ); + } + i /=2 ; + } +mtree_destroy (mt); +} + +static noinline void check_lower_bound_split(struct maple_tree *mt) +{ +MT_BUG_ON (mt, !mtree_empty (mt)); +check_lb_not_empty (mt); +} + +static noinline void check_upper_bound_split(struct maple_tree *mt) +{ +unsigned long i, j; +unsigned long huge =4000UL *1000 *1000 ; + +MT_BUG_ON (mt, !mtree_empty (mt)); + + i =4096 ; +while (i < huge) { +check_insert (mt, i, (void *) i); +for (j = i; j >= huge; j *=2 ) { +check_load (mt, j-1 ,NULL ); +check_load (mt, j, (void *) j); +check_load (mt, j+1 ,NULL ); + } + i *=2 ; + } +mtree_destroy (mt); +} + +static noinline void check_mid_split(struct maple_tree *mt) +{ +unsigned long huge =8000UL *1000 *1000 ; + +check_insert (mt, huge, (void *) huge); +check_insert (mt,0 ,xa_mk_value (0 )); +check_lb_not_empty (mt); +} + +static noinline void check_rev_find(struct maple_tree *mt) +{ +int i, nr_entries =200 ; +void *val; +MA_STATE (mas, mt,0 ,0 ); + +for (i =0 ; i <= nr_entries; i++) +mtree_store_range (mt, i*10 , i*10 +5 , +xa_mk_value (i),GFP_KERNEL ); + +mas_set (&mas,1000 ); + val =mas_find_rev (&mas,1000 ); +MT_BUG_ON (mt, val !=xa_mk_value (100 )); + val =mas_find_rev (&mas,1000 ); +MT_BUG_ON (mt, val !=NULL ); + +mas_set (&mas,999 ); + val =mas_find_rev (&mas,997 ); +MT_BUG_ON (mt, val !=NULL ); + +mas_set (&mas,1000 ); + val =mas_find_rev (&mas,900 ); +MT_BUG_ON (mt, val !=xa_mk_value (100 )); + val =mas_find_rev (&mas,900 ); +MT_BUG_ON (mt, val !=xa_mk_value (99 )); + +mas_set (&mas,20 ); + val =mas_find_rev (&mas,0 ); +MT_BUG_ON (mt, val !=xa_mk_value (2 )); + val =mas_find_rev (&mas,0 ); +MT_BUG_ON (mt, val !=xa_mk_value (1 )); + val =mas_find_rev (&mas,0 ); +MT_BUG_ON (mt, val !=xa_mk_value (0 )); + val =mas_find_rev (&mas,0 ); +MT_BUG_ON (mt, val !=NULL ); +} + +static noinline void check_find(struct maple_tree *mt) +{ +unsigned long val =0 ; +unsigned long count =20 ; +unsigned long max; +unsigned long last =0 , index =0 ; +void *entry, *entry2; + +MA_STATE (mas, mt,0 ,0 ); + +/* Insert 0. */ +MT_BUG_ON (mt,mtree_insert_index (mt, val++,GFP_KERNEL )); + +for (int i =0 ; i <= count; i++) { +if (val !=64 ) +MT_BUG_ON (mt,mtree_insert_index (mt, val,GFP_KERNEL )); +else +MT_BUG_ON (mt,mtree_insert (mt, val, +XA_ZERO_ENTRY ,GFP_KERNEL )); + + val <<=2 ; + } + + val =0 ; +mas_set (&mas, val); +mas_lock (&mas); +while ((entry =mas_find (&mas,268435456 )) !=NULL ) { +if (val !=64 ) +MT_BUG_ON (mt,xa_mk_value (val) != entry); +else +MT_BUG_ON (mt, entry !=XA_ZERO_ENTRY ); + + val <<=2 ; +/* For zero check. */ +if (!val) + val =1 ; + } +mas_unlock (&mas); + + val =0 ; +mas_set (&mas, val); +mas_lock (&mas); +mas_for_each (&mas, entry,ULONG_MAX ) { +if (val !=64 ) +MT_BUG_ON (mt,xa_mk_value (val) != entry); +else +MT_BUG_ON (mt, entry !=XA_ZERO_ENTRY ); + val <<=2 ; +/* For zero check. */ +if (!val) + val =1 ; + } +mas_unlock (&mas); + +/* Test mas_pause */ + val =0 ; +mas_set (&mas, val); +mas_lock (&mas); +mas_for_each (&mas, entry,ULONG_MAX ) { +if (val !=64 ) +MT_BUG_ON (mt,xa_mk_value (val) != entry); +else +MT_BUG_ON (mt, entry !=XA_ZERO_ENTRY ); + val <<=2 ; +/* For zero check. */ +if (!val) + val =1 ; + +mas_pause (&mas); +mas_unlock (&mas); +mas_lock (&mas); + } +mas_unlock (&mas); + + val =0 ; + max =300 ;/* A value big enough to include XA_ZERO_ENTRY at 64. */ +mt_for_each (mt, entry, index, max) { +MT_BUG_ON (mt,xa_mk_value (val) != entry); + val <<=2 ; +if (val ==64 )/* Skip zero entry. */ + val <<=2 ; +/* For zero check. */ +if (!val) + val =1 ; + } + + val =0 ; + max =0 ; + index =0 ; +MT_BUG_ON (mt,mtree_insert_index (mt,ULONG_MAX ,GFP_KERNEL )); +mt_for_each (mt, entry, index,ULONG_MAX ) { +if (val ==4398046511104 ) +MT_BUG_ON (mt, entry != +xa_mk_value (ULONG_MAX &LONG_MAX )); +else +MT_BUG_ON (mt,xa_mk_value (val) != entry); + val <<=2 ; +if (val ==64 )/* Skip zero entry. */ + val <<=2 ; +/* For zero check. */ +if (!val) + val =1 ; + max++; +MT_BUG_ON (mt, max >25 ); + } +mtree_erase_index (mt,ULONG_MAX ); + +mas_reset (&mas); + index =17 ; + entry =mt_find (mt, &index,512 ); +MT_BUG_ON (mt,xa_mk_value (256 ) != entry); + +mas_reset (&mas); + index =17 ; + entry =mt_find (mt, &index,20 ); +MT_BUG_ON (mt, entry !=NULL ); + + +/* Range check.. */ +/* Insert ULONG_MAX */ +MT_BUG_ON (mt,mtree_insert_index (mt,ULONG_MAX ,GFP_KERNEL )); + + val =0 ; +mas_set (&mas,0 ); +mas_lock (&mas); +mas_for_each (&mas, entry,ULONG_MAX ) { +if (val ==64 ) +MT_BUG_ON (mt, entry !=XA_ZERO_ENTRY ); +else if (val ==4398046511104 ) +MT_BUG_ON (mt, entry !=xa_mk_value (ULONG_MAX &LONG_MAX )); +else +MT_BUG_ON (mt,xa_mk_value (val) != entry); + val <<=2 ; + +/* For zero check. */ +if (!val) + val =1 ; +mas_pause (&mas); +mas_unlock (&mas); +mas_lock (&mas); + } +mas_unlock (&mas); + +mas_set (&mas,1048576 ); +mas_lock (&mas); + entry =mas_find (&mas,1048576 ); +mas_unlock (&mas); +MT_BUG_ON (mas.tree, entry ==NULL ); + +/* +* Find last value. +* 1. get the expected value, leveraging the existence of an end entry +* 2. delete end entry +* 3. find the last value but searching for ULONG_MAX and then using +* prev +*/ +/* First, get the expected result. */ +mas_lock (&mas); +mas_reset (&mas); + mas.index =ULONG_MAX ;/* start at max.. */ + entry =mas_find (&mas,ULONG_MAX ); + entry =mas_prev (&mas,0 ); + index = mas.index; + last = mas.last; + +/* Erase the last entry. */ +mas_reset (&mas); + mas.index =ULONG_MAX ; + mas.last =ULONG_MAX ; +mas_erase (&mas); + +/* Get the previous value from MAS_START */ +mas_reset (&mas); + entry2 =mas_prev (&mas,0 ); + +/* Check results. */ +MT_BUG_ON (mt, entry != entry2); +MT_BUG_ON (mt, index != mas.index); +MT_BUG_ON (mt, last != mas.last); + + + mas.node =MAS_NONE ; + mas.index =ULONG_MAX ; + mas.last =ULONG_MAX ; + entry2 =mas_prev (&mas,0 ); +MT_BUG_ON (mt, entry != entry2); + +mas_set (&mas,0 ); +MT_BUG_ON (mt,mas_prev (&mas,0 ) !=NULL ); + +mas_unlock (&mas); +mtree_destroy (mt); +} + +static noinline void check_find_2(struct maple_tree *mt) +{ +unsigned long i, j; +void *entry; + +MA_STATE (mas, mt,0 ,0 ); +rcu_read_lock (); +mas_for_each (&mas, entry,ULONG_MAX ) +MT_BUG_ON (mt, true); +rcu_read_unlock (); + +for (i =0 ; i <256 ; i++) { +mtree_insert_index (mt, i,GFP_KERNEL ); + j =0 ; +mas_set (&mas,0 ); +rcu_read_lock (); +mas_for_each (&mas, entry,ULONG_MAX ) { +MT_BUG_ON (mt, entry !=xa_mk_value (j)); + j++; + } +rcu_read_unlock (); +MT_BUG_ON (mt, j != i +1 ); + } + +for (i =0 ; i <256 ; i++) { +mtree_erase_index (mt, i); + j = i +1 ; +mas_set (&mas,0 ); +rcu_read_lock (); +mas_for_each (&mas, entry,ULONG_MAX ) { +if (xa_is_zero (entry)) +continue ; + +MT_BUG_ON (mt, entry !=xa_mk_value (j)); + j++; + } +rcu_read_unlock (); +MT_BUG_ON (mt, j !=256 ); + } + +/*MT_BUG_ON(mt, !mtree_empty(mt)); */ +} + +#define erase_ptr (i) entry[i%2] +#define erase_check_load (mt, i) check_load(mt, set[i], entry[i%2]) +#define erase_check_insert (mt, i) check_insert(mt, set[i], entry[i%2]) +#define erase_check_erase (mt, i) check_erase(mt, set[i], entry[i%2]) + +static noinline void check_erase_testset(struct maple_tree *mt) +{ +unsigned long set[] = {5015 ,5014 ,5017 ,25 ,1000 , +1001 ,1002 ,1003 ,1005 ,0 , +6003 ,6002 ,6008 ,6012 ,6015 , +7003 ,7002 ,7008 ,7012 ,7015 , +8003 ,8002 ,8008 ,8012 ,8015 , +9003 ,9002 ,9008 ,9012 ,9015 , +10003 ,10002 ,10008 ,10012 ,10015 , +11003 ,11002 ,11008 ,11012 ,11015 , +12003 ,12002 ,12008 ,12012 ,12015 , +13003 ,13002 ,13008 ,13012 ,13015 , +14003 ,14002 ,14008 ,14012 ,14015 , +15003 ,15002 ,15008 ,15012 ,15015 , + }; + + +void *ptr = &set; +void *entry[2 ] = { ptr, mt }; +void *root_node; + + +rcu_register_thread (); +mt_set_in_rcu (mt); +for (int i =0 ; i <4 ; i++) +erase_check_insert (mt, i); +for (int i =0 ; i <4 ; i++) +erase_check_load (mt, i); + +mt_set_non_kernel (2 ); +erase_check_erase (mt,1 ); +erase_check_load (mt,0 ); +check_load (mt, set[1 ],NULL ); +for (int i =2 ; i <4 ; i++) +erase_check_load (mt, i); + + +erase_check_erase (mt,2 ); +erase_check_load (mt,0 ); +check_load (mt, set[1 ],NULL ); +check_load (mt, set[2 ],NULL ); + +erase_check_insert (mt,1 ); +erase_check_insert (mt,2 ); + +for (int i =0 ; i <4 ; i++) +erase_check_load (mt, i); + +/* Check erase and load without an allocation. */ +erase_check_load (mt,3 ); +erase_check_erase (mt,1 ); +erase_check_load (mt,0 ); +check_load (mt, set[1 ],NULL ); +for (int i =2 ; i <4 ; i++) +erase_check_load (mt, i); + +/* +* Set the newly erased node. This will produce a different allocated +* node to avoid busy slots. +*/ + root_node = mt->ma_root; +erase_check_insert (mt,1 ); + +erase_check_load (mt,0 ); +check_load (mt,5016 ,NULL ); +erase_check_load (mt,1 ); +check_load (mt,5013 ,NULL ); +erase_check_load (mt,2 ); +check_load (mt,5018 ,NULL ); +erase_check_load (mt,3 ); + +erase_check_erase (mt,2 );/* erase 5017 to check append */ +erase_check_load (mt,0 ); +check_load (mt,5016 ,NULL ); +erase_check_load (mt,1 ); +check_load (mt,5013 ,NULL ); +check_load (mt, set[2 ],NULL ); +check_load (mt,5018 ,NULL ); + +erase_check_load (mt,3 ); + + root_node = mt->ma_root; +erase_check_insert (mt,2 ); + +erase_check_load (mt,0 ); +check_load (mt,5016 ,NULL ); +erase_check_load (mt,1 ); +check_load (mt,5013 ,NULL ); +erase_check_load (mt,2 ); +check_load (mt,5018 ,NULL ); +erase_check_load (mt,3 ); + +mt_set_non_kernel (1 ); +erase_check_erase (mt,2 );/* erase 5017 to check append */ +erase_check_load (mt,0 ); +check_load (mt,5016 ,NULL ); +check_load (mt, set[2 ],NULL ); +erase_check_erase (mt,0 );/* erase 5015 to check append */ +check_load (mt, set[0 ],NULL ); +check_load (mt,5016 ,NULL ); +erase_check_insert (mt,4 );/* 1000 < Should not split. */ +check_load (mt, set[0 ],NULL ); +check_load (mt,5016 ,NULL ); +erase_check_load (mt,1 ); +check_load (mt,5013 ,NULL ); +check_load (mt, set[2 ],NULL ); +check_load (mt,5018 ,NULL ); +erase_check_load (mt,4 ); +check_load (mt,999 ,NULL ); +check_load (mt,1001 ,NULL ); +erase_check_load (mt,4 ); +if (mt_in_rcu (mt)) +MT_BUG_ON (mt, root_node == mt->ma_root); +else +MT_BUG_ON (mt, root_node != mt->ma_root); + +/* Should not have split. */ +MT_BUG_ON (mt, !mte_is_leaf (mt->ma_root)); + + +/* Coalesce testing */ +erase_check_insert (mt,0 ); +erase_check_insert (mt,2 ); + +for (int i =5 ; i <25 ; i++) { +erase_check_insert (mt, i); +for (int j = i; j >=0 ; j--) +erase_check_load (mt, j); + } + +erase_check_erase (mt,14 );/*6015 */ +for (int i =0 ; i <25 ; i++) { +if (i ==14 ) +check_load (mt, set[i],NULL ); +else +erase_check_load (mt, i); + } +erase_check_erase (mt,16 );/*7002 */ +for (int i =0 ; i <25 ; i++) { +if (i ==16 || i ==14 ) +check_load (mt, set[i],NULL ); +else +erase_check_load (mt, i); + } + + +mt_set_non_kernel (1 ); +erase_check_erase (mt,13 );/*6012 */ +for (int i =0 ; i <25 ; i++) { +if (i ==16 || i ==14 || i ==13 ) +check_load (mt, set[i],NULL ); +else +erase_check_load (mt, i); + } + +erase_check_erase (mt,15 );/*7003 */ +for (int i =0 ; i <25 ; i++) { +if (i <=16 && i >=13 ) +check_load (mt, set[i],NULL ); +else +erase_check_load (mt, i); + } + +mt_set_non_kernel (2 ); +erase_check_erase (mt,17 );/*7008 *should* cause coalesce. */ +for (int i =0 ; i <25 ; i++) { +if (i <=17 && i >=13 ) +check_load (mt, set[i],NULL ); +else +erase_check_load (mt, i); + } + +erase_check_erase (mt,18 );/*7012 */ +for (int i =0 ; i <25 ; i++) { +if (i <=18 && i >=13 ) +check_load (mt, set[i],NULL ); +else +erase_check_load (mt, i); + } + +mt_set_non_kernel (2 ); +erase_check_erase (mt,19 );/*7015 */ +for (int i =0 ; i <25 ; i++) { +if (i <=19 && i >=13 ) +check_load (mt, set[i],NULL ); +else +erase_check_load (mt, i); + } + +erase_check_erase (mt,20 );/*8003 */ +for (int i =0 ; i <25 ; i++) { +if (i <=20 && i >=13 ) +check_load (mt, set[i],NULL ); +else +erase_check_load (mt, i); + } + +erase_check_erase (mt,21 );/*8002 */ +for (int i =0 ; i <25 ; i++) { +if (i <=21 && i >=13 ) +check_load (mt, set[i],NULL ); +else +erase_check_load (mt, i); + } + +mt_set_non_kernel (2 ); +erase_check_erase (mt,22 );/*8008 */ +for (int i =0 ; i <25 ; i++) { +if (i <=22 && i >=13 ) +check_load (mt, set[i],NULL ); +else +erase_check_load (mt, i); + } +for (int i =23 ; i <25 ; i++) +erase_check_erase (mt, i); + +for (int i =0 ; i <25 ; i++) { +if (i <=25 && i >=13 ) +check_load (mt, set[i],NULL ); +else +erase_check_load (mt, i); + } + +/* Shrinking tree test. */ + +for (int i =13 ; i <ARRAY_SIZE (set); i++) +erase_check_insert (mt, i); + +mt_set_non_kernel (99 ); +for (int i =18 ; i <ARRAY_SIZE (set); i++) { +erase_check_erase (mt, i); +for (int j =0 ; j <ARRAY_SIZE (set); j++) { +if (j <18 || j > i) +erase_check_load (mt, j); +else +check_load (mt, set[j],NULL ); + } + } +mt_set_non_kernel (35 ); +for (int i =0 ; i <18 ; i++) { +erase_check_erase (mt, i); +for (int j =0 ; j <ARRAY_SIZE (set); j++) { +if (j <18 && j > i) +erase_check_load (mt, j); +else +check_load (mt, set[j],NULL ); + } + } +erase_check_insert (mt,8 ); +erase_check_insert (mt,9 ); +erase_check_erase (mt,8 ); +rcu_unregister_thread (); +} + +#define erase_check_store_range (mt, a, i, ptr) mtree_test_store_range(mt, \ + a[(i)], a[(i + 1)], ptr) +#define STORE 1 +#define SNULL 2 +#define ERASE 3 +#define ec_type_str (x) \ + (((x) == STORE) ? \ + "STORE" : \ + (((x) == SNULL) ? \ + "SNULL" : "ERASE") \ + ) +#define check_erase2_debug 0 +void *mas_next (struct ma_state *mas,unsigned long max); + +/* Calculate the overwritten entries. */ +int mas_ce2_over_count (struct ma_state *mas_start,struct ma_state *mas_end, +void *s_entry,unsigned long s_min, +void *e_entry,unsigned long e_max, +unsigned long *set,int i,bool null_entry) +{ +int count =0 , span =0 ; +unsigned long retry =0 ; +void *entry; +struct ma_state tmp; + + +/* count slots */ +memcpy (&tmp, mas_start,sizeof (tmp)); + entry =mas_next (&tmp, mas_end->last); +while (entry) { +BUG_ON (retry >50 );/* stop infinite retry on testing. */ +if (xa_is_zero (s_entry)) { + retry++; +continue ; + } + count++; + span++; + entry =mas_next (&tmp, mas_end->last); + } + +if (null_entry) { +/* Check splitting end. */ +if (e_entry && (e_max > mas_end->last)) + count--; + +/* check overwrite of entire start */ +if (s_entry && (s_min == mas_start->index)) + count++; + }else {/* !null_entry (store) */ +bool esplit = e_max > mas_end->last; +bool ssplit = s_min != mas_start->index; + +if (s_entry && e_entry) { +if (esplit && ssplit) + count--; +else if (ssplit) + count--; +else if (esplit) { +if (span) + count--; + } + }else if (s_entry && !e_entry) { +if (ssplit) + count--; + }else if (!s_entry && e_entry) { +if (esplit) + count--; + count--; + }else { + count--; + } + } +return count; +} + +/* +* mas_node_walk() - Walk a maple node to offset of the index. +* @mas: The maple state +* @type: The maple node type +* @*range_min: Pointer to store the minimum range of the offset +* @*range_max: Pointer to store the maximum range of the offset +* +* The offset will be stored in the maple state. +* +*/ +static inline void mas_node_walk (struct ma_state *mas,struct maple_node *node, +enum maple_type type,unsigned long *range_min, +unsigned long *range_max) + +{ +unsigned long *pivots; +unsigned char count; +unsigned long prev, max; +unsigned char offset; +unsigned long index; + +if (unlikely (ma_is_dense (type))) { + (*range_max) = (*range_min) = mas->index; +if (unlikely (ma_dead_node (node))) +return ; + + mas->offset = mas->index = mas->min; +return ; + } + + pivots =ma_pivots (node, type); + max = pivots[0 ]; +if (unlikely (ma_dead_node (node))) +return ; + + offset =0 ; + prev = mas->min; + index = mas->index; +if (unlikely (index <= max)) + goto offset_zero; + + count = mt_pivots[type]; +while (++offset < count) { + prev = max; + max = pivots[offset]; +if (unlikely (ma_dead_node (node))) +return ; + +if (index <= max) + goto offset_found; +else if (unlikely (!max)) + goto mas_max; + } + + prev = max; +mas_max: + max = mas->max; +offset_found: + prev++; +offset_zero: + mas->offset = offset; +if (ma_is_leaf (type)) { + *range_max = max; + *range_min = prev; + }else { + mas->max = max; + mas->min = prev; + } +} + +/* +* mas_descend_walk(): Locates a value and sets the mas->node and slot +* accordingly. range_min and range_max are set to the range which the entry is +* valid. +* @mas: The maple state +* @*range_min: A pointer to store the minimum of the range +* @*range_max: A pointer to store the maximum of the range +* +* Check mas->node is still valid on return of any value. +* +* Return: true if pointing to a valid node and offset. False otherwise. +*/ +static inline bool mas_descend_walk (struct ma_state *mas, +unsigned long *range_min,unsigned long *range_max) +{ +struct maple_enode *next; +struct maple_node *node; +enum maple_type type; + + next = mas->node; +while (true) { + node =mte_to_node (next); + type =mte_node_type (next); +mas_node_walk (mas, node, type, range_min, range_max); + next =mas_slot (mas,ma_slots (node, type), mas->offset); +if (unlikely (ma_dead_node (node))) +return false; + +if (unlikely (ma_is_leaf (type))) +return true; + +/* Descend. */ + mas->node = next; + } +return false; +} + +/* +* mas_tree_walk() - Walk to @mas->index and set the range values. +* @mas: The maple state. +* @*range_min: The minimum range to be set. +* @*range_max: The maximum range to be set. +* +* Ranges are only valid if there is a valid entry at @mas->index. +* +* Return: True if a value exists, false otherwise. +*/ +static inline bool mas_tree_walk (struct ma_state *mas,unsigned long *range_min, +unsigned long *range_max) +{ +bool ret; + +retry: + ret = false; +mas_start (mas); +if (mas_is_none (mas)) + goto not_found; + +if (mas_is_ptr (mas)) { + *range_min = *range_max =0 ; +if (!mas->index) +return true; + + goto not_found; + } + + ret =mas_descend_walk (mas, range_min, range_max); +if (unlikely (mte_dead_node (mas->node))) { + mas->node =MAS_START ; + goto retry; + } + +return ret; + +not_found: + mas->offset =MAPLE_NODE_SLOTS ; +return false; +} + +static inline void *mas_range_load (struct ma_state *mas, +unsigned long *range_min,unsigned long *range_max) + +{ +void *entry =NULL ; +unsigned long index = mas->index; + +if (mas_is_none (mas) ||mas_is_paused (mas)) + mas->node =MAS_START ; +retry: +if (mas_tree_walk (mas, range_min, range_max)) +if (unlikely (mas->node ==MAS_ROOT )) +return mas_root (mas); + +if (likely (mas->offset !=MAPLE_NODE_SLOTS )) + entry =mas_get_slot (mas, mas->offset); + +if (mas_dead_node (mas, index)) + goto retry; + +return entry; +} +static noinline void check_erase2_testset(struct maple_tree *mt, +unsigned long *set,unsigned long size) +{ +int entry_count =0 ; +int check =0 ; +void *foo; +unsigned long addr =0 ; +void *s_entry =NULL , *e_entry =NULL ; + +MA_STATE (mas, mt,0 ,0 ); + +for (int i =0 ; i < size; i +=3 ) { +unsigned long s_min, s_max; +unsigned long e_min, e_max; +void *value =NULL ; + +MA_STATE (mas_start, mt, set[i+1 ], set[i+1 ]); +MA_STATE (mas_end, mt, set[i+2 ], set[i+2 ]); +mt_set_non_kernel (127 ); +#if check_erase2_debug +pr_err ("%s: %d %s %lu - %lu\n" , __func__, i, +ec_type_str (set[i]), + set[i+1 ], set[i+2 ]); +#endif + s_entry =mas_range_load (&mas_start, &s_min, &s_max); + e_entry =mas_range_load (&mas_end, &e_min, &e_max); + +switch (set[i]) { +case SNULL : +if ((s_min == set[i+1 ]) && (s_max == set[i+2 ])) { + entry_count--; + }else if ((s_min != set[i+1 ]) && (s_max != set[i+2 ])) { + entry_count++; + }else if ((mas_start.node != mas_end.node) || + (mas_start.offset != mas_end.offset)) { + entry_count -= +mas_ce2_over_count (&mas_start, &mas_end, + s_entry, s_min, + e_entry, e_max, set, i, + true); + } + + +erase_check_store_range (mt, set, i +1 , value); +break ; +case STORE : + value =xa_mk_value (set[i +1 ]); +if (mas_start.offset >mt_slot_count (mas_start.node)) { + entry_count++;/* appending an entry. */ + }else if ((s_min == e_min) && (s_max == e_max)) { +if (!entry_count) + entry_count++; + +else if (s_entry) { +if (e_max > mas_end.last) + entry_count++; + +if (s_min < mas_start.index) + entry_count++; + + }else { + entry_count++; + } + }else { + entry_count -= +mas_ce2_over_count (&mas_start, &mas_end, + s_entry, s_min, + e_entry, e_max, set, i, + false); + } + +erase_check_store_range (mt, set, i +1 , value); +break ; +case ERASE : +if (!s_entry) +break ; +check_erase (mt, set[i+1 ],xa_mk_value (set[i+1 ])); + entry_count--; +break ; + } +mt_validate (mt); +if (entry_count) +MT_BUG_ON (mt, !mt_height (mt)); +#if check_erase2_debug >1 +mt_dump (mt); +#endif +#if check_erase2_debug +pr_err ("Done\n" ); +#endif + + check =0 ; + addr =0 ; +mt_for_each (mt, foo, addr,ULONG_MAX ) { + check++; +#if check_erase2_debug >2 +pr_err ("mt: %lu -> %p (%d)\n" , addr+1 , foo, check); +#endif +if (check > entry_count) +break ; + } + +#if check_erase2_debug >2 +pr_err ("mt_for_each %d and count %d\n" , check, entry_count); +#endif + +MT_BUG_ON (mt, check != entry_count); + + check =0 ; + addr =0 ; +mas_reset (&mas); + mas.index =0 ; +rcu_read_lock (); +mas_for_each (&mas, foo,ULONG_MAX ) { +if (xa_is_zero (foo)) { +if (addr == mas.index) { +mt_dump (mas.tree); +pr_err ("retry failed %lu - %lu\n" , + mas.index, mas.last); +MT_BUG_ON (mt,1 ); + } + addr = mas.index; +continue ; + } +#if check_erase2_debug >2 +pr_err ("mas: %lu -> %p\n" , mas.index, foo); +#endif + check++; +if (check > entry_count) +break ; + } +rcu_read_unlock (); +#if check_erase2_debug >2 +pr_err ("mas_for_each %d and count %d\n" , check, entry_count); +mt_validate (mt); +#endif + +MT_BUG_ON (mt, check != entry_count); + +MT_BUG_ON (mt,mtree_load (mas.tree,0 ) !=NULL ); + } +} + + +/* These tests were pulled from kvm tests. */ +static noinline void check_erase2_sets(struct maple_tree *mt) +{ +void *entry; +unsigned long start =0 ; +unsigned long set[] = { +STORE ,140737488347136 ,140737488351231 , +STORE ,140721266458624 ,140737488351231 , +ERASE ,140721266458624 ,140737488351231 , +STORE ,140721266458624 ,140721266462719 , +STORE ,94735788949504 ,94735789121535 , +ERASE ,94735788949504 ,94735789121535 , +STORE ,94735788949504 ,94735788965887 , +STORE ,94735788965888 ,94735789121535 , +ERASE ,94735788965888 ,94735789121535 , +STORE ,94735788965888 ,94735789068287 , +STORE ,94735789068288 ,94735789109247 , +STORE ,94735789109248 ,94735789121535 , +STORE ,140253902692352 ,140253902864383 , +ERASE ,140253902692352 ,140253902864383 , +STORE ,140253902692352 ,140253902696447 , +STORE ,140253902696448 ,140253902864383 , + }; +unsigned long set2[] = { +STORE ,140737488347136 ,140737488351231 , +STORE ,140735933583360 ,140737488351231 , +ERASE ,140735933583360 ,140737488351231 , +STORE ,140735933583360 ,140735933587455 , +STORE ,94811003260928 ,94811003432959 , +ERASE ,94811003260928 ,94811003432959 , +STORE ,94811003260928 ,94811003277311 , +STORE ,94811003277312 ,94811003432959 , +ERASE ,94811003277312 ,94811003432959 , +STORE ,94811003277312 ,94811003379711 , +STORE ,94811003379712 ,94811003420671 , +STORE ,94811003420672 ,94811003432959 , +STORE ,140277094653952 ,140277094825983 , +ERASE ,140277094653952 ,140277094825983 , +STORE ,140277094653952 ,140277094658047 , +STORE ,140277094658048 ,140277094825983 , +ERASE ,140277094658048 ,140277094825983 , +STORE ,140277094658048 ,140277094780927 , +STORE ,140277094780928 ,140277094813695 , +STORE ,140277094813696 ,140277094821887 , +STORE ,140277094821888 ,140277094825983 , +STORE ,140735933906944 ,140735933911039 , + }; +unsigned long set3[] = { +STORE ,140737488347136 ,140737488351231 , +STORE ,140735790264320 ,140737488351231 , +ERASE ,140735790264320 ,140737488351231 , +STORE ,140735790264320 ,140735790268415 , +STORE ,94016597282816 ,94016597454847 , +ERASE ,94016597282816 ,94016597454847 , +STORE ,94016597282816 ,94016597299199 , +STORE ,94016597299200 ,94016597454847 , +ERASE ,94016597299200 ,94016597454847 , +STORE ,94016597299200 ,94016597401599 , +STORE ,94016597401600 ,94016597442559 , +STORE ,94016597442560 ,94016597454847 , +STORE ,140496959283200 ,140496959455231 , +ERASE ,140496959283200 ,140496959455231 , +STORE ,140496959283200 ,140496959287295 , +STORE ,140496959287296 ,140496959455231 , +ERASE ,140496959287296 ,140496959455231 , +STORE ,140496959287296 ,140496959410175 , +STORE ,140496959410176 ,140496959442943 , +STORE ,140496959442944 ,140496959451135 , +STORE ,140496959451136 ,140496959455231 , +STORE ,140735791718400 ,140735791722495 , +STORE ,140735791706112 ,140735791718399 , +STORE ,47135835713536 ,47135835721727 , +STORE ,47135835721728 ,47135835729919 , +STORE ,47135835729920 ,47135835893759 , +ERASE ,47135835729920 ,47135835893759 , +STORE ,47135835729920 ,47135835742207 , +STORE ,47135835742208 ,47135835893759 , +STORE ,47135835840512 ,47135835893759 , +STORE ,47135835742208 ,47135835840511 , +ERASE ,47135835742208 ,47135835840511 , +STORE ,47135835742208 ,47135835840511 , +STORE ,47135835885568 ,47135835893759 , +STORE ,47135835840512 ,47135835885567 , +ERASE ,47135835840512 ,47135835885567 , +STORE ,47135835840512 ,47135835893759 , +ERASE ,47135835840512 ,47135835893759 , +STORE ,47135835840512 ,47135835885567 , +STORE ,47135835885568 ,47135835893759 , + }; + +unsigned long set4[] = { +STORE ,140737488347136 ,140737488351231 , +STORE ,140728251703296 ,140737488351231 , +ERASE ,140728251703296 ,140737488351231 , +STORE ,140728251703296 ,140728251707391 , +STORE ,94668429205504 ,94668429377535 , +ERASE ,94668429205504 ,94668429377535 , +STORE ,94668429205504 ,94668429221887 , +STORE ,94668429221888 ,94668429377535 , +ERASE ,94668429221888 ,94668429377535 , +STORE ,94668429221888 ,94668429324287 , +STORE ,94668429324288 ,94668429365247 , +STORE ,94668429365248 ,94668429377535 , +STORE ,47646523273216 ,47646523445247 , +ERASE ,47646523273216 ,47646523445247 , +STORE ,47646523273216 ,47646523277311 , +STORE ,47646523277312 ,47646523445247 , +ERASE ,47646523277312 ,47646523445247 , +STORE ,47646523277312 ,47646523400191 , + }; + +unsigned long set5[] = { +STORE ,140737488347136 ,140737488351231 , +STORE ,140726874062848 ,140737488351231 , +ERASE ,140726874062848 ,140737488351231 , +STORE ,140726874062848 ,140726874066943 , +STORE ,94248892870656 ,94248893042687 , +ERASE ,94248892870656 ,94248893042687 , +STORE ,94248892870656 ,94248892887039 , +STORE ,94248892887040 ,94248893042687 , +ERASE ,94248892887040 ,94248893042687 , +STORE ,94248892887040 ,94248892989439 , +STORE ,94248892989440 ,94248893030399 , +STORE ,94248893030400 ,94248893042687 , +STORE ,47884786266112 ,47884786438143 , +ERASE ,47884786266112 ,47884786438143 , +STORE ,47884786266112 ,47884786270207 , +STORE ,47884786270208 ,47884786438143 , +ERASE ,47884786270208 ,47884786438143 , +STORE ,47884786270208 ,47884786393087 , +STORE ,47884786393088 ,47884786425855 , +STORE ,47884786425856 ,47884786434047 , +STORE ,47884786434048 ,47884786438143 , +STORE ,140726874513408 ,140726874517503 , +STORE ,140726874501120 ,140726874513407 , +STORE ,47884786438144 ,47884786446335 , +STORE ,47884786446336 ,47884786454527 , +STORE ,47884786454528 ,47884786618367 , +ERASE ,47884786454528 ,47884786618367 , +STORE ,47884786454528 ,47884786466815 , +STORE ,47884786466816 ,47884786618367 , +STORE ,47884786565120 ,47884786618367 , +STORE ,47884786466816 ,47884786565119 , +ERASE ,47884786466816 ,47884786565119 , +STORE ,47884786466816 ,47884786565119 , +STORE ,47884786610176 ,47884786618367 , +STORE ,47884786565120 ,47884786610175 , +ERASE ,47884786565120 ,47884786610175 , +STORE ,47884786565120 ,47884786618367 , +ERASE ,47884786565120 ,47884786618367 , +STORE ,47884786565120 ,47884786610175 , +STORE ,47884786610176 ,47884786618367 , +ERASE ,47884786610176 ,47884786618367 , +STORE ,47884786610176 ,47884786618367 , +STORE ,47884786618368 ,47884789669887 , +STORE ,47884787163136 ,47884789669887 , +STORE ,47884786618368 ,47884787163135 , +ERASE ,47884787163136 ,47884789669887 , +STORE ,47884787163136 ,47884789448703 , +STORE ,47884789448704 ,47884789669887 , +STORE ,47884788858880 ,47884789448703 , +STORE ,47884787163136 ,47884788858879 , +ERASE ,47884787163136 ,47884788858879 , +STORE ,47884787163136 ,47884788858879 , +STORE ,47884789444608 ,47884789448703 , +STORE ,47884788858880 ,47884789444607 , +ERASE ,47884788858880 ,47884789444607 , +STORE ,47884788858880 ,47884789444607 , +STORE ,47884789653504 ,47884789669887 , +STORE ,47884789448704 ,47884789653503 , +ERASE ,47884789448704 ,47884789653503 , +STORE ,47884789448704 ,47884789653503 , +ERASE ,47884789653504 ,47884789669887 , +STORE ,47884789653504 ,47884789669887 , +STORE ,47884789669888 ,47884791508991 , +STORE ,47884789809152 ,47884791508991 , +STORE ,47884789669888 ,47884789809151 , +ERASE ,47884789809152 ,47884791508991 , +STORE ,47884789809152 ,47884791468031 , +STORE ,47884791468032 ,47884791508991 , +STORE ,47884791152640 ,47884791468031 , +STORE ,47884789809152 ,47884791152639 , +ERASE ,47884789809152 ,47884791152639 , +STORE ,47884789809152 ,47884791152639 , +STORE ,47884791463936 ,47884791468031 , +STORE ,47884791152640 ,47884791463935 , +ERASE ,47884791152640 ,47884791463935 , +STORE ,47884791152640 ,47884791463935 , +STORE ,47884791492608 ,47884791508991 , +STORE ,47884791468032 ,47884791492607 , +ERASE ,47884791468032 ,47884791492607 , +STORE ,47884791468032 ,47884791492607 , +ERASE ,47884791492608 ,47884791508991 , +STORE ,47884791492608 ,47884791508991 , +STORE ,47884791508992 ,47884791644159 , +ERASE ,47884791508992 ,47884791644159 , +STORE ,47884791508992 ,47884791533567 , +STORE ,47884791533568 ,47884791644159 , +STORE ,47884791595008 ,47884791644159 , +STORE ,47884791533568 ,47884791595007 , +ERASE ,47884791533568 ,47884791595007 , +STORE ,47884791533568 ,47884791595007 , +STORE ,47884791619584 ,47884791644159 , +STORE ,47884791595008 ,47884791619583 , +ERASE ,47884791595008 ,47884791619583 , +STORE ,47884791595008 ,47884791644159 , +ERASE ,47884791595008 ,47884791644159 , +STORE ,47884791595008 ,47884791619583 , +STORE ,47884791619584 ,47884791644159 , +STORE ,47884791627776 ,47884791644159 , +STORE ,47884791619584 ,47884791627775 , +ERASE ,47884791619584 ,47884791627775 , +STORE ,47884791619584 ,47884791627775 , +ERASE ,47884791627776 ,47884791644159 , +STORE ,47884791627776 ,47884791644159 , +STORE ,47884791644160 ,47884791664639 , +ERASE ,47884791644160 ,47884791664639 , +STORE ,47884791644160 ,47884791648255 , +STORE ,47884791648256 ,47884791664639 , +STORE ,47884791652352 ,47884791664639 , +STORE ,47884791648256 ,47884791652351 , +ERASE ,47884791648256 ,47884791652351 , +STORE ,47884791648256 ,47884791652351 , +STORE ,47884791656448 ,47884791664639 , +STORE ,47884791652352 ,47884791656447 , +ERASE ,47884791652352 ,47884791656447 , +STORE ,47884791652352 ,47884791664639 , +ERASE ,47884791652352 ,47884791664639 , +STORE ,47884791652352 ,47884791656447 , +STORE ,47884791656448 ,47884791664639 , +ERASE ,47884791656448 ,47884791664639 , +STORE ,47884791656448 ,47884791664639 , +STORE ,47884791664640 ,47884791672831 , +ERASE ,47884791468032 ,47884791492607 , +STORE ,47884791468032 ,47884791484415 , +STORE ,47884791484416 ,47884791492607 , +ERASE ,47884791656448 ,47884791664639 , +STORE ,47884791656448 ,47884791660543 , +STORE ,47884791660544 ,47884791664639 , +ERASE ,47884791619584 ,47884791627775 , +STORE ,47884791619584 ,47884791623679 , +STORE ,47884791623680 ,47884791627775 , + }; + +unsigned long set6[] = { +STORE ,140737488347136 ,140737488351231 , +STORE ,140722999021568 ,140737488351231 , +ERASE ,140722999021568 ,140737488351231 , +STORE ,140722999021568 ,140722999025663 , +STORE ,94901500268544 ,94901500440575 , +ERASE ,94901500268544 ,94901500440575 , +STORE ,94901500268544 ,94901500284927 , +STORE ,94901500284928 ,94901500440575 , +ERASE ,94901500284928 ,94901500440575 , +STORE ,94901500284928 ,94901500387327 , +STORE ,94901500387328 ,94901500428287 , +STORE ,94901500428288 ,94901500440575 , +STORE ,47430426660864 ,47430426832895 , +ERASE ,47430426660864 ,47430426832895 , +STORE ,47430426660864 ,47430426664959 , +STORE ,47430426664960 ,47430426832895 , +ERASE ,47430426664960 ,47430426832895 , +STORE ,47430426664960 ,47430426787839 , +STORE ,47430426787840 ,47430426820607 , +STORE ,47430426820608 ,47430426828799 , +STORE ,47430426828800 ,47430426832895 , +STORE ,140722999115776 ,140722999119871 , +STORE ,140722999103488 ,140722999115775 , +STORE ,47430426832896 ,47430426841087 , +STORE ,47430426841088 ,47430426849279 , +STORE ,47430426849280 ,47430427013119 , +ERASE ,47430426849280 ,47430427013119 , +STORE ,47430426849280 ,47430426861567 , +STORE ,47430426861568 ,47430427013119 , +STORE ,47430426959872 ,47430427013119 , +STORE ,47430426861568 ,47430426959871 , +ERASE ,47430426861568 ,47430426959871 , +STORE ,47430426861568 ,47430426959871 , +STORE ,47430427004928 ,47430427013119 , +STORE ,47430426959872 ,47430427004927 , +ERASE ,47430426959872 ,47430427004927 , +STORE ,47430426959872 ,47430427013119 , +ERASE ,47430426959872 ,47430427013119 , +STORE ,47430426959872 ,47430427004927 , +STORE ,47430427004928 ,47430427013119 , +ERASE ,47430427004928 ,47430427013119 , +STORE ,47430427004928 ,47430427013119 , +STORE ,47430427013120 ,47430430064639 , +STORE ,47430427557888 ,47430430064639 , +STORE ,47430427013120 ,47430427557887 , +ERASE ,47430427557888 ,47430430064639 , +STORE ,47430427557888 ,47430429843455 , +STORE ,47430429843456 ,47430430064639 , +STORE ,47430429253632 ,47430429843455 , +STORE ,47430427557888 ,47430429253631 , +ERASE ,47430427557888 ,47430429253631 , +STORE ,47430427557888 ,47430429253631 , +STORE ,47430429839360 ,47430429843455 , +STORE ,47430429253632 ,47430429839359 , +ERASE ,47430429253632 ,47430429839359 , +STORE ,47430429253632 ,47430429839359 , +STORE ,47430430048256 ,47430430064639 , +STORE ,47430429843456 ,47430430048255 , +ERASE ,47430429843456 ,47430430048255 , +STORE ,47430429843456 ,47430430048255 , +ERASE ,47430430048256 ,47430430064639 , +STORE ,47430430048256 ,47430430064639 , +STORE ,47430430064640 ,47430431903743 , +STORE ,47430430203904 ,47430431903743 , +STORE ,47430430064640 ,47430430203903 , +ERASE ,47430430203904 ,47430431903743 , +STORE ,47430430203904 ,47430431862783 , +STORE ,47430431862784 ,47430431903743 , +STORE ,47430431547392 ,47430431862783 , +STORE ,47430430203904 ,47430431547391 , +ERASE ,47430430203904 ,47430431547391 , +STORE ,47430430203904 ,47430431547391 , +STORE ,47430431858688 ,47430431862783 , +STORE ,47430431547392 ,47430431858687 , +ERASE ,47430431547392 ,47430431858687 , +STORE ,47430431547392 ,47430431858687 , +STORE ,47430431887360 ,47430431903743 , +STORE ,47430431862784 ,47430431887359 , +ERASE ,47430431862784 ,47430431887359 , +STORE ,47430431862784 ,47430431887359 , +ERASE ,47430431887360 ,47430431903743 , +STORE ,47430431887360 ,47430431903743 , +STORE ,47430431903744 ,47430432038911 , +ERASE ,47430431903744 ,47430432038911 , +STORE ,47430431903744 ,47430431928319 , +STORE ,47430431928320 ,47430432038911 , +STORE ,47430431989760 ,47430432038911 , +STORE ,47430431928320 ,47430431989759 , +ERASE ,47430431928320 ,47430431989759 , +STORE ,47430431928320 ,47430431989759 , +STORE ,47430432014336 ,47430432038911 , +STORE ,47430431989760 ,47430432014335 , +ERASE ,47430431989760 ,47430432014335 , +STORE ,47430431989760 ,47430432038911 , +ERASE ,47430431989760 ,47430432038911 , +STORE ,47430431989760 ,47430432014335 , +STORE ,47430432014336 ,47430432038911 , +STORE ,47430432022528 ,47430432038911 , +STORE ,47430432014336 ,47430432022527 , +ERASE ,47430432014336 ,47430432022527 , +STORE ,47430432014336 ,47430432022527 , +ERASE ,47430432022528 ,47430432038911 , +STORE ,47430432022528 ,47430432038911 , +STORE ,47430432038912 ,47430432059391 , +ERASE ,47430432038912 ,47430432059391 , +STORE ,47430432038912 ,47430432043007 , +STORE ,47430432043008 ,47430432059391 , +STORE ,47430432047104 ,47430432059391 , +STORE ,47430432043008 ,47430432047103 , +ERASE ,47430432043008 ,47430432047103 , +STORE ,47430432043008 ,47430432047103 , +STORE ,47430432051200 ,47430432059391 , +STORE ,47430432047104 ,47430432051199 , +ERASE ,47430432047104 ,47430432051199 , +STORE ,47430432047104 ,47430432059391 , +ERASE ,47430432047104 ,47430432059391 , +STORE ,47430432047104 ,47430432051199 , +STORE ,47430432051200 ,47430432059391 , +ERASE ,47430432051200 ,47430432059391 , +STORE ,47430432051200 ,47430432059391 , +STORE ,47430432059392 ,47430432067583 , +ERASE ,47430431862784 ,47430431887359 , +STORE ,47430431862784 ,47430431879167 , +STORE ,47430431879168 ,47430431887359 , +ERASE ,47430432051200 ,47430432059391 , +STORE ,47430432051200 ,47430432055295 , +STORE ,47430432055296 ,47430432059391 , +ERASE ,47430432014336 ,47430432022527 , +STORE ,47430432014336 ,47430432018431 , +STORE ,47430432018432 ,47430432022527 , + }; +unsigned long set7[] = { +STORE ,140737488347136 ,140737488351231 , +STORE ,140729808330752 ,140737488351231 , +ERASE ,140729808330752 ,140737488351231 , +STORE ,140729808330752 ,140729808334847 , +STORE ,94629632020480 ,94629632192511 , +ERASE ,94629632020480 ,94629632192511 , +STORE ,94629632020480 ,94629632036863 , +STORE ,94629632036864 ,94629632192511 , +ERASE ,94629632036864 ,94629632192511 , +STORE ,94629632036864 ,94629632139263 , +STORE ,94629632139264 ,94629632180223 , +STORE ,94629632180224 ,94629632192511 , +STORE ,47439981776896 ,47439981948927 , +ERASE ,47439981776896 ,47439981948927 , +STORE ,47439981776896 ,47439981780991 , +STORE ,47439981780992 ,47439981948927 , +ERASE ,47439981780992 ,47439981948927 , +STORE ,47439981780992 ,47439981903871 , +STORE ,47439981903872 ,47439981936639 , +STORE ,47439981936640 ,47439981944831 , +STORE ,47439981944832 ,47439981948927 , +STORE ,140729808474112 ,140729808478207 , +STORE ,140729808461824 ,140729808474111 , +STORE ,47439981948928 ,47439981957119 , +STORE ,47439981957120 ,47439981965311 , +STORE ,47439981965312 ,47439982129151 , +ERASE ,47439981965312 ,47439982129151 , +STORE ,47439981965312 ,47439981977599 , +STORE ,47439981977600 ,47439982129151 , +STORE ,47439982075904 ,47439982129151 , +STORE ,47439981977600 ,47439982075903 , +ERASE ,47439981977600 ,47439982075903 , +STORE ,47439981977600 ,47439982075903 , +STORE ,47439982120960 ,47439982129151 , +STORE ,47439982075904 ,47439982120959 , +ERASE ,47439982075904 ,47439982120959 , +STORE ,47439982075904 ,47439982129151 , +ERASE ,47439982075904 ,47439982129151 , +STORE ,47439982075904 ,47439982120959 , +STORE ,47439982120960 ,47439982129151 , +ERASE ,47439982120960 ,47439982129151 , +STORE ,47439982120960 ,47439982129151 , +STORE ,47439982129152 ,47439985180671 , +STORE ,47439982673920 ,47439985180671 , +STORE ,47439982129152 ,47439982673919 , +ERASE ,47439982673920 ,47439985180671 , +STORE ,47439982673920 ,47439984959487 , +STORE ,47439984959488 ,47439985180671 , +STORE ,47439984369664 ,47439984959487 , +STORE ,47439982673920 ,47439984369663 , +ERASE ,47439982673920 ,47439984369663 , +STORE ,47439982673920 ,47439984369663 , +STORE ,47439984955392 ,47439984959487 , +STORE ,47439984369664 ,47439984955391 , +ERASE ,47439984369664 ,47439984955391 , +STORE ,47439984369664 ,47439984955391 , +STORE ,47439985164288 ,47439985180671 , +STORE ,47439984959488 ,47439985164287 , +ERASE ,47439984959488 ,47439985164287 , +STORE ,47439984959488 ,47439985164287 , +ERASE ,47439985164288 ,47439985180671 , +STORE ,47439985164288 ,47439985180671 , +STORE ,47439985180672 ,47439987019775 , +STORE ,47439985319936 ,47439987019775 , +STORE ,47439985180672 ,47439985319935 , +ERASE ,47439985319936 ,47439987019775 , +STORE ,47439985319936 ,47439986978815 , +STORE ,47439986978816 ,47439987019775 , +STORE ,47439986663424 ,47439986978815 , +STORE ,47439985319936 ,47439986663423 , +ERASE ,47439985319936 ,47439986663423 , +STORE ,47439985319936 ,47439986663423 , +STORE ,47439986974720 ,47439986978815 , +STORE ,47439986663424 ,47439986974719 , +ERASE ,47439986663424 ,47439986974719 , +STORE ,47439986663424 ,47439986974719 , +STORE ,47439987003392 ,47439987019775 , +STORE ,47439986978816 ,47439987003391 , +ERASE ,47439986978816 ,47439987003391 , +STORE ,47439986978816 ,47439987003391 , +ERASE ,47439987003392 ,47439987019775 , +STORE ,47439987003392 ,47439987019775 , +STORE ,47439987019776 ,47439987154943 , +ERASE ,47439987019776 ,47439987154943 , +STORE ,47439987019776 ,47439987044351 , +STORE ,47439987044352 ,47439987154943 , +STORE ,47439987105792 ,47439987154943 , +STORE ,47439987044352 ,47439987105791 , +ERASE ,47439987044352 ,47439987105791 , +STORE ,47439987044352 ,47439987105791 , +STORE ,47439987130368 ,47439987154943 , +STORE ,47439987105792 ,47439987130367 , +ERASE ,47439987105792 ,47439987130367 , +STORE ,47439987105792 ,47439987154943 , +ERASE ,47439987105792 ,47439987154943 , +STORE ,47439987105792 ,47439987130367 , +STORE ,47439987130368 ,47439987154943 , +STORE ,47439987138560 ,47439987154943 , +STORE ,47439987130368 ,47439987138559 , +ERASE ,47439987130368 ,47439987138559 , +STORE ,47439987130368 ,47439987138559 , +ERASE ,47439987138560 ,47439987154943 , +STORE ,47439987138560 ,47439987154943 , +STORE ,47439987154944 ,47439987175423 , +ERASE ,47439987154944 ,47439987175423 , +STORE ,47439987154944 ,47439987159039 , +STORE ,47439987159040 ,47439987175423 , +STORE ,47439987163136 ,47439987175423 , +STORE ,47439987159040 ,47439987163135 , +ERASE ,47439987159040 ,47439987163135 , +STORE ,47439987159040 ,47439987163135 , +STORE ,47439987167232 ,47439987175423 , +STORE ,47439987163136 ,47439987167231 , +ERASE ,47439987163136 ,47439987167231 , +STORE ,47439987163136 ,47439987175423 , +ERASE ,47439987163136 ,47439987175423 , +STORE ,47439987163136 ,47439987167231 , +STORE ,47439987167232 ,47439987175423 , +ERASE ,47439987167232 ,47439987175423 , +STORE ,47439987167232 ,47439987175423 , +STORE ,47439987175424 ,47439987183615 , +ERASE ,47439986978816 ,47439987003391 , +STORE ,47439986978816 ,47439986995199 , +STORE ,47439986995200 ,47439987003391 , +ERASE ,47439987167232 ,47439987175423 , +STORE ,47439987167232 ,47439987171327 , +STORE ,47439987171328 ,47439987175423 , +ERASE ,47439987130368 ,47439987138559 , +STORE ,47439987130368 ,47439987134463 , +STORE ,47439987134464 ,47439987138559 , + }; +unsigned long set8[] = { +STORE ,140737488347136 ,140737488351231 , +STORE ,140722482974720 ,140737488351231 , +ERASE ,140722482974720 ,140737488351231 , +STORE ,140722482974720 ,140722482978815 , +STORE ,94121505034240 ,94121505206271 , +ERASE ,94121505034240 ,94121505206271 , +STORE ,94121505034240 ,94121505050623 , +STORE ,94121505050624 ,94121505206271 , +ERASE ,94121505050624 ,94121505206271 , +STORE ,94121505050624 ,94121505153023 , +STORE ,94121505153024 ,94121505193983 , +STORE ,94121505193984 ,94121505206271 , +STORE ,47708483284992 ,47708483457023 , +ERASE ,47708483284992 ,47708483457023 , +STORE ,47708483284992 ,47708483289087 , +STORE ,47708483289088 ,47708483457023 , +ERASE ,47708483289088 ,47708483457023 , +STORE ,47708483289088 ,47708483411967 , +STORE ,47708483411968 ,47708483444735 , +STORE ,47708483444736 ,47708483452927 , +STORE ,47708483452928 ,47708483457023 , +STORE ,140722483142656 ,140722483146751 , +STORE ,140722483130368 ,140722483142655 , +STORE ,47708483457024 ,47708483465215 , +STORE ,47708483465216 ,47708483473407 , +STORE ,47708483473408 ,47708483637247 , +ERASE ,47708483473408 ,47708483637247 , +STORE ,47708483473408 ,47708483485695 , +STORE ,47708483485696 ,47708483637247 , +STORE ,47708483584000 ,47708483637247 , +STORE ,47708483485696 ,47708483583999 , +ERASE ,47708483485696 ,47708483583999 , +STORE ,47708483485696 ,47708483583999 , +STORE ,47708483629056 ,47708483637247 , +STORE ,47708483584000 ,47708483629055 , +ERASE ,47708483584000 ,47708483629055 , +STORE ,47708483584000 ,47708483637247 , +ERASE ,47708483584000 ,47708483637247 , +STORE ,47708483584000 ,47708483629055 , +STORE ,47708483629056 ,47708483637247 , +ERASE ,47708483629056 ,47708483637247 , +STORE ,47708483629056 ,47708483637247 , +STORE ,47708483637248 ,47708486688767 , +STORE ,47708484182016 ,47708486688767 , +STORE ,47708483637248 ,47708484182015 , +ERASE ,47708484182016 ,47708486688767 , +STORE ,47708484182016 ,47708486467583 , +STORE ,47708486467584 ,47708486688767 , +STORE ,47708485877760 ,47708486467583 , +STORE ,47708484182016 ,47708485877759 , +ERASE ,47708484182016 ,47708485877759 , +STORE ,47708484182016 ,47708485877759 , +STORE ,47708486463488 ,47708486467583 , +STORE ,47708485877760 ,47708486463487 , +ERASE ,47708485877760 ,47708486463487 , +STORE ,47708485877760 ,47708486463487 , +STORE ,47708486672384 ,47708486688767 , +STORE ,47708486467584 ,47708486672383 , +ERASE ,47708486467584 ,47708486672383 , +STORE ,47708486467584 ,47708486672383 , +ERASE ,47708486672384 ,47708486688767 , +STORE ,47708486672384 ,47708486688767 , +STORE ,47708486688768 ,47708488527871 , +STORE ,47708486828032 ,47708488527871 , +STORE ,47708486688768 ,47708486828031 , +ERASE ,47708486828032 ,47708488527871 , +STORE ,47708486828032 ,47708488486911 , +STORE ,47708488486912 ,47708488527871 , +STORE ,47708488171520 ,47708488486911 , +STORE ,47708486828032 ,47708488171519 , +ERASE ,47708486828032 ,47708488171519 , +STORE ,47708486828032 ,47708488171519 , +STORE ,47708488482816 ,47708488486911 , +STORE ,47708488171520 ,47708488482815 , +ERASE ,47708488171520 ,47708488482815 , +STORE ,47708488171520 ,47708488482815 , +STORE ,47708488511488 ,47708488527871 , +STORE ,47708488486912 ,47708488511487 , +ERASE ,47708488486912 ,47708488511487 , +STORE ,47708488486912 ,47708488511487 , +ERASE ,47708488511488 ,47708488527871 , +STORE ,47708488511488 ,47708488527871 , +STORE ,47708488527872 ,47708488663039 , +ERASE ,47708488527872 ,47708488663039 , +STORE ,47708488527872 ,47708488552447 , +STORE ,47708488552448 ,47708488663039 , +STORE ,47708488613888 ,47708488663039 , +STORE ,47708488552448 ,47708488613887 , +ERASE ,47708488552448 ,47708488613887 , +STORE ,47708488552448 ,47708488613887 , +STORE ,47708488638464 ,47708488663039 , +STORE ,47708488613888 ,47708488638463 , +ERASE ,47708488613888 ,47708488638463 , +STORE ,47708488613888 ,47708488663039 , +ERASE ,47708488613888 ,47708488663039 , +STORE ,47708488613888 ,47708488638463 , +STORE ,47708488638464 ,47708488663039 , +STORE ,47708488646656 ,47708488663039 , +STORE ,47708488638464 ,47708488646655 , +ERASE ,47708488638464 ,47708488646655 , +STORE ,47708488638464 ,47708488646655 , +ERASE ,47708488646656 ,47708488663039 , +STORE ,47708488646656 ,47708488663039 , +STORE ,47708488663040 ,47708488683519 , +ERASE ,47708488663040 ,47708488683519 , +STORE ,47708488663040 ,47708488667135 , +STORE ,47708488667136 ,47708488683519 , +STORE ,47708488671232 ,47708488683519 , +STORE ,47708488667136 ,47708488671231 , +ERASE ,47708488667136 ,47708488671231 , +STORE ,47708488667136 ,47708488671231 , +STORE ,47708488675328 ,47708488683519 , +STORE ,47708488671232 ,47708488675327 , +ERASE ,47708488671232 ,47708488675327 , +STORE ,47708488671232 ,47708488683519 , +ERASE ,47708488671232 ,47708488683519 , +STORE ,47708488671232 ,47708488675327 , +STORE ,47708488675328 ,47708488683519 , +ERASE ,47708488675328 ,47708488683519 , +STORE ,47708488675328 ,47708488683519 , +STORE ,47708488683520 ,47708488691711 , +ERASE ,47708488486912 ,47708488511487 , +STORE ,47708488486912 ,47708488503295 , +STORE ,47708488503296 ,47708488511487 , +ERASE ,47708488675328 ,47708488683519 , +STORE ,47708488675328 ,47708488679423 , +STORE ,47708488679424 ,47708488683519 , +ERASE ,47708488638464 ,47708488646655 , +STORE ,47708488638464 ,47708488642559 , +STORE ,47708488642560 ,47708488646655 , + }; + +unsigned long set9[] = { +STORE ,140737488347136 ,140737488351231 , +STORE ,140736427839488 ,140737488351231 , +ERASE ,140736427839488 ,140736427839488 , +STORE ,140736427839488 ,140736427843583 , +STORE ,94071213395968 ,94071213567999 , +ERASE ,94071213395968 ,94071213395968 , +STORE ,94071213395968 ,94071213412351 , +STORE ,94071213412352 ,94071213567999 , +ERASE ,94071213412352 ,94071213412352 , +STORE ,94071213412352 ,94071213514751 , +STORE ,94071213514752 ,94071213555711 , +STORE ,94071213555712 ,94071213567999 , +STORE ,139968410644480 ,139968410816511 , +ERASE ,139968410644480 ,139968410644480 , +STORE ,139968410644480 ,139968410648575 , +STORE ,139968410648576 ,139968410816511 , +ERASE ,139968410648576 ,139968410648576 , +STORE ,139968410648576 ,139968410771455 , +STORE ,139968410771456 ,139968410804223 , +STORE ,139968410804224 ,139968410812415 , +STORE ,139968410812416 ,139968410816511 , +STORE ,140736429277184 ,140736429281279 , +STORE ,140736429264896 ,140736429277183 , +STORE ,47664384352256 ,47664384360447 , +STORE ,47664384360448 ,47664384368639 , +STORE ,47664384368640 ,47664384532479 , +ERASE ,47664384368640 ,47664384368640 , +STORE ,47664384368640 ,47664384380927 , +STORE ,47664384380928 ,47664384532479 , +STORE ,47664384479232 ,47664384532479 , +STORE ,47664384380928 ,47664384479231 , +ERASE ,47664384380928 ,47664384380928 , +STORE ,47664384380928 ,47664384479231 , +STORE ,47664384524288 ,47664384532479 , +STORE ,47664384479232 ,47664384524287 , +ERASE ,47664384479232 ,47664384479232 , +STORE ,47664384479232 ,47664384532479 , +ERASE ,47664384479232 ,47664384479232 , +STORE ,47664384479232 ,47664384524287 , +STORE ,47664384524288 ,47664384532479 , +ERASE ,47664384524288 ,47664384524288 , +STORE ,47664384524288 ,47664384532479 , +STORE ,47664384532480 ,47664387583999 , +STORE ,47664385077248 ,47664387583999 , +STORE ,47664384532480 ,47664385077247 , +ERASE ,47664385077248 ,47664385077248 , +STORE ,47664385077248 ,47664387362815 , +STORE ,47664387362816 ,47664387583999 , +STORE ,47664386772992 ,47664387362815 , +STORE ,47664385077248 ,47664386772991 , +ERASE ,47664385077248 ,47664385077248 , +STORE ,47664385077248 ,47664386772991 , +STORE ,47664387358720 ,47664387362815 , +STORE ,47664386772992 ,47664387358719 , +ERASE ,47664386772992 ,47664386772992 , +STORE ,47664386772992 ,47664387358719 , +STORE ,47664387567616 ,47664387583999 , +STORE ,47664387362816 ,47664387567615 , +ERASE ,47664387362816 ,47664387362816 , +STORE ,47664387362816 ,47664387567615 , +ERASE ,47664387567616 ,47664387567616 , +STORE ,47664387567616 ,47664387583999 , +STORE ,47664387584000 ,47664389423103 , +STORE ,47664387723264 ,47664389423103 , +STORE ,47664387584000 ,47664387723263 , +ERASE ,47664387723264 ,47664387723264 , +STORE ,47664387723264 ,47664389382143 , +STORE ,47664389382144 ,47664389423103 , +STORE ,47664389066752 ,47664389382143 , +STORE ,47664387723264 ,47664389066751 , +ERASE ,47664387723264 ,47664387723264 , +STORE ,47664387723264 ,47664389066751 , +STORE ,47664389378048 ,47664389382143 , +STORE ,47664389066752 ,47664389378047 , +ERASE ,47664389066752 ,47664389066752 , +STORE ,47664389066752 ,47664389378047 , +STORE ,47664389406720 ,47664389423103 , +STORE ,47664389382144 ,47664389406719 , +ERASE ,47664389382144 ,47664389382144 , +STORE ,47664389382144 ,47664389406719 , +ERASE ,47664389406720 ,47664389406720 , +STORE ,47664389406720 ,47664389423103 , +STORE ,47664389423104 ,47664389558271 , +ERASE ,47664389423104 ,47664389423104 , +STORE ,47664389423104 ,47664389447679 , +STORE ,47664389447680 ,47664389558271 , +STORE ,47664389509120 ,47664389558271 , +STORE ,47664389447680 ,47664389509119 , +ERASE ,47664389447680 ,47664389447680 , +STORE ,47664389447680 ,47664389509119 , +STORE ,47664389533696 ,47664389558271 , +STORE ,47664389509120 ,47664389533695 , +ERASE ,47664389509120 ,47664389509120 , +STORE ,47664389509120 ,47664389558271 , +ERASE ,47664389509120 ,47664389509120 , +STORE ,47664389509120 ,47664389533695 , +STORE ,47664389533696 ,47664389558271 , +STORE ,47664389541888 ,47664389558271 , +STORE ,47664389533696 ,47664389541887 , +ERASE ,47664389533696 ,47664389533696 , +STORE ,47664389533696 ,47664389541887 , +ERASE ,47664389541888 ,47664389541888 , +STORE ,47664389541888 ,47664389558271 , +STORE ,47664389558272 ,47664389578751 , +ERASE ,47664389558272 ,47664389558272 , +STORE ,47664389558272 ,47664389562367 , +STORE ,47664389562368 ,47664389578751 , +STORE ,47664389566464 ,47664389578751 , +STORE ,47664389562368 ,47664389566463 , +ERASE ,47664389562368 ,47664389562368 , +STORE ,47664389562368 ,47664389566463 , +STORE ,47664389570560 ,47664389578751 , +STORE ,47664389566464 ,47664389570559 , +ERASE ,47664389566464 ,47664389566464 , +STORE ,47664389566464 ,47664389578751 , +ERASE ,47664389566464 ,47664389566464 , +STORE ,47664389566464 ,47664389570559 , +STORE ,47664389570560 ,47664389578751 , +ERASE ,47664389570560 ,47664389570560 , +STORE ,47664389570560 ,47664389578751 , +STORE ,47664389578752 ,47664389586943 , +ERASE ,47664389382144 ,47664389382144 , +STORE ,47664389382144 ,47664389398527 , +STORE ,47664389398528 ,47664389406719 , +ERASE ,47664389570560 ,47664389570560 , +STORE ,47664389570560 ,47664389574655 , +STORE ,47664389574656 ,47664389578751 , +ERASE ,47664389533696 ,47664389533696 , +STORE ,47664389533696 ,47664389537791 , +STORE ,47664389537792 ,47664389541887 , +ERASE ,47664387362816 ,47664387362816 , +STORE ,47664387362816 ,47664387559423 , +STORE ,47664387559424 ,47664387567615 , +ERASE ,47664384524288 ,47664384524288 , +STORE ,47664384524288 ,47664384528383 , +STORE ,47664384528384 ,47664384532479 , +ERASE ,94071213555712 ,94071213555712 , +STORE ,94071213555712 ,94071213563903 , +STORE ,94071213563904 ,94071213567999 , +ERASE ,139968410804224 ,139968410804224 , +STORE ,139968410804224 ,139968410808319 , +STORE ,139968410808320 ,139968410812415 , +ERASE ,47664384352256 ,47664384352256 , +STORE ,94071244402688 ,94071244537855 , +STORE ,140737488347136 ,140737488351231 , +STORE ,140728271503360 ,140737488351231 , +ERASE ,140728271503360 ,140728271503360 , +STORE ,140728271503360 ,140728271507455 , +STORE ,94410361982976 ,94410362155007 , +ERASE ,94410361982976 ,94410361982976 , +STORE ,94410361982976 ,94410361999359 , +STORE ,94410361999360 ,94410362155007 , +ERASE ,94410361999360 ,94410361999360 , +STORE ,94410361999360 ,94410362101759 , +STORE ,94410362101760 ,94410362142719 , +STORE ,94410362142720 ,94410362155007 , +STORE ,140351953997824 ,140351954169855 , +ERASE ,140351953997824 ,140351953997824 , +STORE ,140351953997824 ,140351954001919 , +STORE ,140351954001920 ,140351954169855 , +ERASE ,140351954001920 ,140351954001920 , +STORE ,140351954001920 ,140351954124799 , +STORE ,140351954124800 ,140351954157567 , +STORE ,140351954157568 ,140351954165759 , +STORE ,140351954165760 ,140351954169855 , +STORE ,140728272429056 ,140728272433151 , +STORE ,140728272416768 ,140728272429055 , +STORE ,47280840998912 ,47280841007103 , +STORE ,47280841007104 ,47280841015295 , +STORE ,47280841015296 ,47280841179135 , +ERASE ,47280841015296 ,47280841015296 , +STORE ,47280841015296 ,47280841027583 , +STORE ,47280841027584 ,47280841179135 , +STORE ,47280841125888 ,47280841179135 , +STORE ,47280841027584 ,47280841125887 , +ERASE ,47280841027584 ,47280841027584 , +STORE ,47280841027584 ,47280841125887 , +STORE ,47280841170944 ,47280841179135 , +STORE ,47280841125888 ,47280841170943 , +ERASE ,47280841125888 ,47280841125888 , +STORE ,47280841125888 ,47280841179135 , +ERASE ,47280841125888 ,47280841125888 , +STORE ,47280841125888 ,47280841170943 , +STORE ,47280841170944 ,47280841179135 , +ERASE ,47280841170944 ,47280841170944 , +STORE ,47280841170944 ,47280841179135 , +STORE ,47280841179136 ,47280844230655 , +STORE ,47280841723904 ,47280844230655 , +STORE ,47280841179136 ,47280841723903 , +ERASE ,47280841723904 ,47280841723904 , +STORE ,47280841723904 ,47280844009471 , +STORE ,47280844009472 ,47280844230655 , +STORE ,47280843419648 ,47280844009471 , +STORE ,47280841723904 ,47280843419647 , +ERASE ,47280841723904 ,47280841723904 , +STORE ,47280841723904 ,47280843419647 , +STORE ,47280844005376 ,47280844009471 , +STORE ,47280843419648 ,47280844005375 , +ERASE ,47280843419648 ,47280843419648 , +STORE ,47280843419648 ,47280844005375 , +STORE ,47280844214272 ,47280844230655 , +STORE ,47280844009472 ,47280844214271 , +ERASE ,47280844009472 ,47280844009472 , +STORE ,47280844009472 ,47280844214271 , +ERASE ,47280844214272 ,47280844214272 , +STORE ,47280844214272 ,47280844230655 , +STORE ,47280844230656 ,47280846069759 , +STORE ,47280844369920 ,47280846069759 , +STORE ,47280844230656 ,47280844369919 , +ERASE ,47280844369920 ,47280844369920 , +STORE ,47280844369920 ,47280846028799 , +STORE ,47280846028800 ,47280846069759 , +STORE ,47280845713408 ,47280846028799 , +STORE ,47280844369920 ,47280845713407 , +ERASE ,47280844369920 ,47280844369920 , +STORE ,47280844369920 ,47280845713407 , +STORE ,47280846024704 ,47280846028799 , +STORE ,47280845713408 ,47280846024703 , +ERASE ,47280845713408 ,47280845713408 , +STORE ,47280845713408 ,47280846024703 , +STORE ,47280846053376 ,47280846069759 , +STORE ,47280846028800 ,47280846053375 , +ERASE ,47280846028800 ,47280846028800 , +STORE ,47280846028800 ,47280846053375 , +ERASE ,47280846053376 ,47280846053376 , +STORE ,47280846053376 ,47280846069759 , +STORE ,47280846069760 ,47280846204927 , +ERASE ,47280846069760 ,47280846069760 , +STORE ,47280846069760 ,47280846094335 , +STORE ,47280846094336 ,47280846204927 , +STORE ,47280846155776 ,47280846204927 , +STORE ,47280846094336 ,47280846155775 , +ERASE ,47280846094336 ,47280846094336 , +STORE ,47280846094336 ,47280846155775 , +STORE ,47280846180352 ,47280846204927 , +STORE ,47280846155776 ,47280846180351 , +ERASE ,47280846155776 ,47280846155776 , +STORE ,47280846155776 ,47280846204927 , +ERASE ,47280846155776 ,47280846155776 , +STORE ,47280846155776 ,47280846180351 , +STORE ,47280846180352 ,47280846204927 , +STORE ,47280846188544 ,47280846204927 , +STORE ,47280846180352 ,47280846188543 , +ERASE ,47280846180352 ,47280846180352 , +STORE ,47280846180352 ,47280846188543 , +ERASE ,47280846188544 ,47280846188544 , +STORE ,47280846188544 ,47280846204927 , +STORE ,47280846204928 ,47280846225407 , +ERASE ,47280846204928 ,47280846204928 , +STORE ,47280846204928 ,47280846209023 , +STORE ,47280846209024 ,47280846225407 , +STORE ,47280846213120 ,47280846225407 , +STORE ,47280846209024 ,47280846213119 , +ERASE ,47280846209024 ,47280846209024 , +STORE ,47280846209024 ,47280846213119 , +STORE ,47280846217216 ,47280846225407 , +STORE ,47280846213120 ,47280846217215 , +ERASE ,47280846213120 ,47280846213120 , +STORE ,47280846213120 ,47280846225407 , +ERASE ,47280846213120 ,47280846213120 , +STORE ,47280846213120 ,47280846217215 , +STORE ,47280846217216 ,47280846225407 , +ERASE ,47280846217216 ,47280846217216 , +STORE ,47280846217216 ,47280846225407 , +STORE ,47280846225408 ,47280846233599 , +ERASE ,47280846028800 ,47280846028800 , +STORE ,47280846028800 ,47280846045183 , +STORE ,47280846045184 ,47280846053375 , +ERASE ,47280846217216 ,47280846217216 , +STORE ,47280846217216 ,47280846221311 , +STORE ,47280846221312 ,47280846225407 , +ERASE ,47280846180352 ,47280846180352 , +STORE ,47280846180352 ,47280846184447 , +STORE ,47280846184448 ,47280846188543 , +ERASE ,47280844009472 ,47280844009472 , +STORE ,47280844009472 ,47280844206079 , +STORE ,47280844206080 ,47280844214271 , +ERASE ,47280841170944 ,47280841170944 , +STORE ,47280841170944 ,47280841175039 , +STORE ,47280841175040 ,47280841179135 , +ERASE ,94410362142720 ,94410362142720 , +STORE ,94410362142720 ,94410362150911 , +STORE ,94410362150912 ,94410362155007 , +ERASE ,140351954157568 ,140351954157568 , +STORE ,140351954157568 ,140351954161663 , +STORE ,140351954161664 ,140351954165759 , +ERASE ,47280840998912 ,47280840998912 , +STORE ,94410379456512 ,94410379591679 , +STORE ,140737488347136 ,140737488351231 , +STORE ,140732946362368 ,140737488351231 , +ERASE ,140732946362368 ,140732946362368 , +STORE ,140732946362368 ,140732946366463 , +STORE ,94352937934848 ,94352938106879 , +ERASE ,94352937934848 ,94352937934848 , +STORE ,94352937934848 ,94352937951231 , +STORE ,94352937951232 ,94352938106879 , +ERASE ,94352937951232 ,94352937951232 , +STORE ,94352937951232 ,94352938053631 , +STORE ,94352938053632 ,94352938094591 , +STORE ,94352938094592 ,94352938106879 , +STORE ,140595518742528 ,140595518914559 , +ERASE ,140595518742528 ,140595518742528 , +STORE ,140595518742528 ,140595518746623 , +STORE ,140595518746624 ,140595518914559 , +ERASE ,140595518746624 ,140595518746624 , +STORE ,140595518746624 ,140595518869503 , +STORE ,140595518869504 ,140595518902271 , +STORE ,140595518902272 ,140595518910463 , +STORE ,140595518910464 ,140595518914559 , +STORE ,140732947468288 ,140732947472383 , +STORE ,140732947456000 ,140732947468287 , +STORE ,47037276254208 ,47037276262399 , +STORE ,47037276262400 ,47037276270591 , +STORE ,47037276270592 ,47037276434431 , +ERASE ,47037276270592 ,47037276270592 , +STORE ,47037276270592 ,47037276282879 , +STORE ,47037276282880 ,47037276434431 , +STORE ,47037276381184 ,47037276434431 , +STORE ,47037276282880 ,47037276381183 , +ERASE ,47037276282880 ,47037276282880 , +STORE ,47037276282880 ,47037276381183 , +STORE ,47037276426240 ,47037276434431 , +STORE ,47037276381184 ,47037276426239 , +ERASE ,47037276381184 ,47037276381184 , +STORE ,47037276381184 ,47037276434431 , +ERASE ,47037276381184 ,47037276381184 , +STORE ,47037276381184 ,47037276426239 , +STORE ,47037276426240 ,47037276434431 , +ERASE ,47037276426240 ,47037276426240 , +STORE ,47037276426240 ,47037276434431 , +STORE ,47037276434432 ,47037279485951 , +STORE ,47037276979200 ,47037279485951 , +STORE ,47037276434432 ,47037276979199 , +ERASE ,47037276979200 ,47037276979200 , +STORE ,47037276979200 ,47037279264767 , +STORE ,47037279264768 ,47037279485951 , +STORE ,47037278674944 ,47037279264767 , +STORE ,47037276979200 ,47037278674943 , +ERASE ,47037276979200 ,47037276979200 , +STORE ,47037276979200 ,47037278674943 , +STORE ,47037279260672 ,47037279264767 , +STORE ,47037278674944 ,47037279260671 , +ERASE ,47037278674944 ,47037278674944 , +STORE ,47037278674944 ,47037279260671 , +STORE ,47037279469568 ,47037279485951 , +STORE ,47037279264768 ,47037279469567 , +ERASE ,47037279264768 ,47037279264768 , +STORE ,47037279264768 ,47037279469567 , +ERASE ,47037279469568 ,47037279469568 , +STORE ,47037279469568 ,47037279485951 , +STORE ,47037279485952 ,47037281325055 , +STORE ,47037279625216 ,47037281325055 , +STORE ,47037279485952 ,47037279625215 , +ERASE ,47037279625216 ,47037279625216 , +STORE ,47037279625216 ,47037281284095 , +STORE ,47037281284096 ,47037281325055 , +STORE ,47037280968704 ,47037281284095 , +STORE ,47037279625216 ,47037280968703 , +ERASE ,47037279625216 ,47037279625216 , +STORE ,47037279625216 ,47037280968703 , +STORE ,47037281280000 ,47037281284095 , +STORE ,47037280968704 ,47037281279999 , +ERASE ,47037280968704 ,47037280968704 , +STORE ,47037280968704 ,47037281279999 , +STORE ,47037281308672 ,47037281325055 , +STORE ,47037281284096 ,47037281308671 , +ERASE ,47037281284096 ,47037281284096 , +STORE ,47037281284096 ,47037281308671 , +ERASE ,47037281308672 ,47037281308672 , +STORE ,47037281308672 ,47037281325055 , +STORE ,47037281325056 ,47037281460223 , +ERASE ,47037281325056 ,47037281325056 , +STORE ,47037281325056 ,47037281349631 , +STORE ,47037281349632 ,47037281460223 , +STORE ,47037281411072 ,47037281460223 , +STORE ,47037281349632 ,47037281411071 , +ERASE ,47037281349632 ,47037281349632 , +STORE ,47037281349632 ,47037281411071 , +STORE ,47037281435648 ,47037281460223 , +STORE ,47037281411072 ,47037281435647 , +ERASE ,47037281411072 ,47037281411072 , +STORE ,47037281411072 ,47037281460223 , +ERASE ,47037281411072 ,47037281411072 , +STORE ,47037281411072 ,47037281435647 , +STORE ,47037281435648 ,47037281460223 , +STORE ,47037281443840 ,47037281460223 , +STORE ,47037281435648 ,47037281443839 , +ERASE ,47037281435648 ,47037281435648 , +STORE ,47037281435648 ,47037281443839 , +ERASE ,47037281443840 ,47037281443840 , +STORE ,47037281443840 ,47037281460223 , +STORE ,47037281460224 ,47037281480703 , +ERASE ,47037281460224 ,47037281460224 , +STORE ,47037281460224 ,47037281464319 , +STORE ,47037281464320 ,47037281480703 , +STORE ,47037281468416 ,47037281480703 , +STORE ,47037281464320 ,47037281468415 , +ERASE ,47037281464320 ,47037281464320 , +STORE ,47037281464320 ,47037281468415 , +STORE ,47037281472512 ,47037281480703 , +STORE ,47037281468416 ,47037281472511 , +ERASE ,47037281468416 ,47037281468416 , +STORE ,47037281468416 ,47037281480703 , +ERASE ,47037281468416 ,47037281468416 , +STORE ,47037281468416 ,47037281472511 , +STORE ,47037281472512 ,47037281480703 , +ERASE ,47037281472512 ,47037281472512 , +STORE ,47037281472512 ,47037281480703 , +STORE ,47037281480704 ,47037281488895 , +ERASE ,47037281284096 ,47037281284096 , +STORE ,47037281284096 ,47037281300479 , +STORE ,47037281300480 ,47037281308671 , +ERASE ,47037281472512 ,47037281472512 , +STORE ,47037281472512 ,47037281476607 , +STORE ,47037281476608 ,47037281480703 , +ERASE ,47037281435648 ,47037281435648 , +STORE ,47037281435648 ,47037281439743 , +STORE ,47037281439744 ,47037281443839 , +ERASE ,47037279264768 ,47037279264768 , +STORE ,47037279264768 ,47037279461375 , +STORE ,47037279461376 ,47037279469567 , +ERASE ,47037276426240 ,47037276426240 , +STORE ,47037276426240 ,47037276430335 , +STORE ,47037276430336 ,47037276434431 , +ERASE ,94352938094592 ,94352938094592 , +STORE ,94352938094592 ,94352938102783 , +STORE ,94352938102784 ,94352938106879 , +ERASE ,140595518902272 ,140595518902272 , +STORE ,140595518902272 ,140595518906367 , +STORE ,140595518906368 ,140595518910463 , +ERASE ,47037276254208 ,47037276254208 , +STORE ,94352938438656 ,94352938573823 , +STORE ,140737488347136 ,140737488351231 , +STORE ,140733506027520 ,140737488351231 , +ERASE ,140733506027520 ,140733506027520 , +STORE ,140733506027520 ,140733506031615 , +STORE ,94150123073536 ,94150123245567 , +ERASE ,94150123073536 ,94150123073536 , +STORE ,94150123073536 ,94150123089919 , +STORE ,94150123089920 ,94150123245567 , +ERASE ,94150123089920 ,94150123089920 , +STORE ,94150123089920 ,94150123192319 , +STORE ,94150123192320 ,94150123233279 , +STORE ,94150123233280 ,94150123245567 , +STORE ,140081290375168 ,140081290547199 , +ERASE ,140081290375168 ,140081290375168 , +STORE ,140081290375168 ,140081290379263 , +STORE ,140081290379264 ,140081290547199 , +ERASE ,140081290379264 ,140081290379264 , +STORE ,140081290379264 ,140081290502143 , +STORE ,140081290502144 ,140081290534911 , +STORE ,140081290534912 ,140081290543103 , +STORE ,140081290543104 ,140081290547199 , +STORE ,140733506707456 ,140733506711551 , +STORE ,140733506695168 ,140733506707455 , +STORE ,47551504621568 ,47551504629759 , +STORE ,47551504629760 ,47551504637951 , +STORE ,47551504637952 ,47551504801791 , +ERASE ,47551504637952 ,47551504637952 , +STORE ,47551504637952 ,47551504650239 , +STORE ,47551504650240 ,47551504801791 , +STORE ,47551504748544 ,47551504801791 , +STORE ,47551504650240 ,47551504748543 , +ERASE ,47551504650240 ,47551504650240 , +STORE ,47551504650240 ,47551504748543 , +STORE ,47551504793600 ,47551504801791 , +STORE ,47551504748544 ,47551504793599 , +ERASE ,47551504748544 ,47551504748544 , +STORE ,47551504748544 ,47551504801791 , +ERASE ,47551504748544 ,47551504748544 , +STORE ,47551504748544 ,47551504793599 , +STORE ,47551504793600 ,47551504801791 , +ERASE ,47551504793600 ,47551504793600 , +STORE ,47551504793600 ,47551504801791 , +STORE ,47551504801792 ,47551507853311 , +STORE ,47551505346560 ,47551507853311 , +STORE ,47551504801792 ,47551505346559 , +ERASE ,47551505346560 ,47551505346560 , +STORE ,47551505346560 ,47551507632127 , +STORE ,47551507632128 ,47551507853311 , +STORE ,47551507042304 ,47551507632127 , +STORE ,47551505346560 ,47551507042303 , +ERASE ,47551505346560 ,47551505346560 , +STORE ,47551505346560 ,47551507042303 , +STORE ,47551507628032 ,47551507632127 , +STORE ,47551507042304 ,47551507628031 , +ERASE ,47551507042304 ,47551507042304 , +STORE ,47551507042304 ,47551507628031 , +STORE ,47551507836928 ,47551507853311 , +STORE ,47551507632128 ,47551507836927 , +ERASE ,47551507632128 ,47551507632128 , +STORE ,47551507632128 ,47551507836927 , +ERASE ,47551507836928 ,47551507836928 , +STORE ,47551507836928 ,47551507853311 , +STORE ,47551507853312 ,47551509692415 , +STORE ,47551507992576 ,47551509692415 , +STORE ,47551507853312 ,47551507992575 , +ERASE ,47551507992576 ,47551507992576 , +STORE ,47551507992576 ,47551509651455 , +STORE ,47551509651456 ,47551509692415 , +STORE ,47551509336064 ,47551509651455 , +STORE ,47551507992576 ,47551509336063 , +ERASE ,47551507992576 ,47551507992576 , +STORE ,47551507992576 ,47551509336063 , +STORE ,47551509647360 ,47551509651455 , +STORE ,47551509336064 ,47551509647359 , +ERASE ,47551509336064 ,47551509336064 , +STORE ,47551509336064 ,47551509647359 , +STORE ,47551509676032 ,47551509692415 , +STORE ,47551509651456 ,47551509676031 , +ERASE ,47551509651456 ,47551509651456 , +STORE ,47551509651456 ,47551509676031 , +ERASE ,47551509676032 ,47551509676032 , +STORE ,47551509676032 ,47551509692415 , +STORE ,47551509692416 ,47551509827583 , +ERASE ,47551509692416 ,47551509692416 , +STORE ,47551509692416 ,47551509716991 , +STORE ,47551509716992 ,47551509827583 , +STORE ,47551509778432 ,47551509827583 , +STORE ,47551509716992 ,47551509778431 , +ERASE ,47551509716992 ,47551509716992 , +STORE ,47551509716992 ,47551509778431 , +STORE ,47551509803008 ,47551509827583 , +STORE ,47551509778432 ,47551509803007 , +ERASE ,47551509778432 ,47551509778432 , +STORE ,47551509778432 ,47551509827583 , +ERASE ,47551509778432 ,47551509778432 , +STORE ,47551509778432 ,47551509803007 , +STORE ,47551509803008 ,47551509827583 , +STORE ,47551509811200 ,47551509827583 , +STORE ,47551509803008 ,47551509811199 , +ERASE ,47551509803008 ,47551509803008 , +STORE ,47551509803008 ,47551509811199 , +ERASE ,47551509811200 ,47551509811200 , +STORE ,47551509811200 ,47551509827583 , +STORE ,47551509827584 ,47551509848063 , +ERASE ,47551509827584 ,47551509827584 , +STORE ,47551509827584 ,47551509831679 , +STORE ,47551509831680 ,47551509848063 , +STORE ,47551509835776 ,47551509848063 , +STORE ,47551509831680 ,47551509835775 , +ERASE ,47551509831680 ,47551509831680 , +STORE ,47551509831680 ,47551509835775 , +STORE ,47551509839872 ,47551509848063 , +STORE ,47551509835776 ,47551509839871 , +ERASE ,47551509835776 ,47551509835776 , +STORE ,47551509835776 ,47551509848063 , +ERASE ,47551509835776 ,47551509835776 , +STORE ,47551509835776 ,47551509839871 , +STORE ,47551509839872 ,47551509848063 , +ERASE ,47551509839872 ,47551509839872 , +STORE ,47551509839872 ,47551509848063 , +STORE ,47551509848064 ,47551509856255 , +ERASE ,47551509651456 ,47551509651456 , +STORE ,47551509651456 ,47551509667839 , +STORE ,47551509667840 ,47551509676031 , +ERASE ,47551509839872 ,47551509839872 , +STORE ,47551509839872 ,47551509843967 , +STORE ,47551509843968 ,47551509848063 , +ERASE ,47551509803008 ,47551509803008 , +STORE ,47551509803008 ,47551509807103 , +STORE ,47551509807104 ,47551509811199 , +ERASE ,47551507632128 ,47551507632128 , +STORE ,47551507632128 ,47551507828735 , +STORE ,47551507828736 ,47551507836927 , +ERASE ,47551504793600 ,47551504793600 , +STORE ,47551504793600 ,47551504797695 , +STORE ,47551504797696 ,47551504801791 , +ERASE ,94150123233280 ,94150123233280 , +STORE ,94150123233280 ,94150123241471 , +STORE ,94150123241472 ,94150123245567 , +ERASE ,140081290534912 ,140081290534912 , +STORE ,140081290534912 ,140081290539007 , +STORE ,140081290539008 ,140081290543103 , +ERASE ,47551504621568 ,47551504621568 , +STORE ,94150148112384 ,94150148247551 , +STORE ,140737488347136 ,140737488351231 , +STORE ,140734389334016 ,140737488351231 , +ERASE ,140734389334016 ,140734389334016 , +STORE ,140734389334016 ,140734389338111 , +STORE ,94844636606464 ,94844636778495 , +ERASE ,94844636606464 ,94844636606464 , +STORE ,94844636606464 ,94844636622847 , +STORE ,94844636622848 ,94844636778495 , +ERASE ,94844636622848 ,94844636622848 , +STORE ,94844636622848 ,94844636725247 , +STORE ,94844636725248 ,94844636766207 , +STORE ,94844636766208 ,94844636778495 , +STORE ,139922765217792 ,139922765389823 , +ERASE ,139922765217792 ,139922765217792 , +STORE ,139922765217792 ,139922765221887 , +STORE ,139922765221888 ,139922765389823 , +ERASE ,139922765221888 ,139922765221888 , +STORE ,139922765221888 ,139922765344767 , +STORE ,139922765344768 ,139922765377535 , +STORE ,139922765377536 ,139922765385727 , +STORE ,139922765385728 ,139922765389823 , +STORE ,140734389678080 ,140734389682175 , +STORE ,140734389665792 ,140734389678079 , +STORE ,47710029778944 ,47710029787135 , +STORE ,47710029787136 ,47710029795327 , +STORE ,47710029795328 ,47710029959167 , +ERASE ,47710029795328 ,47710029795328 , +STORE ,47710029795328 ,47710029807615 , +STORE ,47710029807616 ,47710029959167 , +STORE ,47710029905920 ,47710029959167 , +STORE ,47710029807616 ,47710029905919 , +ERASE ,47710029807616 ,47710029807616 , +STORE ,47710029807616 ,47710029905919 , +STORE ,47710029950976 ,47710029959167 , +STORE ,47710029905920 ,47710029950975 , +ERASE ,47710029905920 ,47710029905920 , +STORE ,47710029905920 ,47710029959167 , +ERASE ,47710029905920 ,47710029905920 , +STORE ,47710029905920 ,47710029950975 , +STORE ,47710029950976 ,47710029959167 , +ERASE ,47710029950976 ,47710029950976 , +STORE ,47710029950976 ,47710029959167 , +STORE ,47710029959168 ,47710033010687 , +STORE ,47710030503936 ,47710033010687 , +STORE ,47710029959168 ,47710030503935 , +ERASE ,47710030503936 ,47710030503936 , +STORE ,47710030503936 ,47710032789503 , +STORE ,47710032789504 ,47710033010687 , +STORE ,47710032199680 ,47710032789503 , +STORE ,47710030503936 ,47710032199679 , +ERASE ,47710030503936 ,47710030503936 , +STORE ,47710030503936 ,47710032199679 , +STORE ,47710032785408 ,47710032789503 , +STORE ,47710032199680 ,47710032785407 , +ERASE ,47710032199680 ,47710032199680 , +STORE ,47710032199680 ,47710032785407 , +STORE ,47710032994304 ,47710033010687 , +STORE ,47710032789504 ,47710032994303 , +ERASE ,47710032789504 ,47710032789504 , +STORE ,47710032789504 ,47710032994303 , +ERASE ,47710032994304 ,47710032994304 , +STORE ,47710032994304 ,47710033010687 , +STORE ,47710033010688 ,47710034849791 , +STORE ,47710033149952 ,47710034849791 , +STORE ,47710033010688 ,47710033149951 , +ERASE ,47710033149952 ,47710033149952 , +STORE ,47710033149952 ,47710034808831 , +STORE ,47710034808832 ,47710034849791 , +STORE ,47710034493440 ,47710034808831 , +STORE ,47710033149952 ,47710034493439 , +ERASE ,47710033149952 ,47710033149952 , +STORE ,47710033149952 ,47710034493439 , +STORE ,47710034804736 ,47710034808831 , +STORE ,47710034493440 ,47710034804735 , +ERASE ,47710034493440 ,47710034493440 , +STORE ,47710034493440 ,47710034804735 , +STORE ,47710034833408 ,47710034849791 , +STORE ,47710034808832 ,47710034833407 , +ERASE ,47710034808832 ,47710034808832 , +STORE ,47710034808832 ,47710034833407 , +ERASE ,47710034833408 ,47710034833408 , +STORE ,47710034833408 ,47710034849791 , +STORE ,47710034849792 ,47710034984959 , +ERASE ,47710034849792 ,47710034849792 , +STORE ,47710034849792 ,47710034874367 , +STORE ,47710034874368 ,47710034984959 , +STORE ,47710034935808 ,47710034984959 , +STORE ,47710034874368 ,47710034935807 , +ERASE ,47710034874368 ,47710034874368 , +STORE ,47710034874368 ,47710034935807 , +STORE ,47710034960384 ,47710034984959 , +STORE ,47710034935808 ,47710034960383 , +ERASE ,47710034935808 ,47710034935808 , +STORE ,47710034935808 ,47710034984959 , +ERASE ,47710034935808 ,47710034935808 , +STORE ,47710034935808 ,47710034960383 , +STORE ,47710034960384 ,47710034984959 , +STORE ,47710034968576 ,47710034984959 , +STORE ,47710034960384 ,47710034968575 , +ERASE ,47710034960384 ,47710034960384 , +STORE ,47710034960384 ,47710034968575 , +ERASE ,47710034968576 ,47710034968576 , +STORE ,47710034968576 ,47710034984959 , +STORE ,47710034984960 ,47710035005439 , +ERASE ,47710034984960 ,47710034984960 , +STORE ,47710034984960 ,47710034989055 , +STORE ,47710034989056 ,47710035005439 , +STORE ,47710034993152 ,47710035005439 , +STORE ,47710034989056 ,47710034993151 , +ERASE ,47710034989056 ,47710034989056 , +STORE ,47710034989056 ,47710034993151 , +STORE ,47710034997248 ,47710035005439 , +STORE ,47710034993152 ,47710034997247 , +ERASE ,47710034993152 ,47710034993152 , +STORE ,47710034993152 ,47710035005439 , +ERASE ,47710034993152 ,47710034993152 , +STORE ,47710034993152 ,47710034997247 , +STORE ,47710034997248 ,47710035005439 , +ERASE ,47710034997248 ,47710034997248 , +STORE ,47710034997248 ,47710035005439 , +STORE ,47710035005440 ,47710035013631 , +ERASE ,47710034808832 ,47710034808832 , +STORE ,47710034808832 ,47710034825215 , +STORE ,47710034825216 ,47710034833407 , +ERASE ,47710034997248 ,47710034997248 , +STORE ,47710034997248 ,47710035001343 , +STORE ,47710035001344 ,47710035005439 , +ERASE ,47710034960384 ,47710034960384 , +STORE ,47710034960384 ,47710034964479 , +STORE ,47710034964480 ,47710034968575 , +ERASE ,47710032789504 ,47710032789504 , +STORE ,47710032789504 ,47710032986111 , +STORE ,47710032986112 ,47710032994303 , +ERASE ,47710029950976 ,47710029950976 , +STORE ,47710029950976 ,47710029955071 , +STORE ,47710029955072 ,47710029959167 , +ERASE ,94844636766208 ,94844636766208 , +STORE ,94844636766208 ,94844636774399 , +STORE ,94844636774400 ,94844636778495 , +ERASE ,139922765377536 ,139922765377536 , +STORE ,139922765377536 ,139922765381631 , +STORE ,139922765381632 ,139922765385727 , +ERASE ,47710029778944 ,47710029778944 , +STORE ,94844641775616 ,94844641910783 , +STORE ,140737488347136 ,140737488351231 , +STORE ,140732213886976 ,140737488351231 , +ERASE ,140732213886976 ,140732213886976 , +STORE ,140732213886976 ,140732213891071 , +STORE ,94240508887040 ,94240509059071 , +ERASE ,94240508887040 ,94240508887040 , +STORE ,94240508887040 ,94240508903423 , +STORE ,94240508903424 ,94240509059071 , +ERASE ,94240508903424 ,94240508903424 , +STORE ,94240508903424 ,94240509005823 , +STORE ,94240509005824 ,94240509046783 , +STORE ,94240509046784 ,94240509059071 , +STORE ,140275106516992 ,140275106689023 , +ERASE ,140275106516992 ,140275106516992 , +STORE ,140275106516992 ,140275106521087 , +STORE ,140275106521088 ,140275106689023 , +ERASE ,140275106521088 ,140275106521088 , +STORE ,140275106521088 ,140275106643967 , +STORE ,140275106643968 ,140275106676735 , +STORE ,140275106676736 ,140275106684927 , +STORE ,140275106684928 ,140275106689023 , +STORE ,140732213977088 ,140732213981183 , +STORE ,140732213964800 ,140732213977087 , +STORE ,47357688479744 ,47357688487935 , +STORE ,47357688487936 ,47357688496127 , +STORE ,47357688496128 ,47357688659967 , +ERASE ,47357688496128 ,47357688496128 , +STORE ,47357688496128 ,47357688508415 , +STORE ,47357688508416 ,47357688659967 , +STORE ,47357688606720 ,47357688659967 , +STORE ,47357688508416 ,47357688606719 , +ERASE ,47357688508416 ,47357688508416 , +STORE ,47357688508416 ,47357688606719 , +STORE ,47357688651776 ,47357688659967 , +STORE ,47357688606720 ,47357688651775 , +ERASE ,47357688606720 ,47357688606720 , +STORE ,47357688606720 ,47357688659967 ,
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.34.1
Part of the diff is not shown here. View the raw message.
PATCH v7 9/70 mm: Start tracking VMAs with maple tree
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Start tracking the VMAs with the new maple tree structure in parallel with the rb_tree. Add debug and trace events for maple tree operations and duplicate the rb_tree that is created on forks into the maple tree.
The maple tree is added to the mm_struct including the mm_init struct, added support in required mm/mmap functions, added tracking in kernel/fork for process forking, and used to find the unmapped_area and checked against what the rbtree finds.
--- arch/x86/kernel/tboot.c | 1 + drivers/firmware/efi/efi.c | 1 + include/linux/mm.h | 2 + include/linux/mm_types.h | 3 + include/trace/events/mmap.h | 71 +++++++++++++ kernel/fork.c | 5 + mm/init-mm.c | 2 + mm/internal.h | 70 +++++++++++++ mm/mmap.c | 202 +++++++++++++++++++++++++++++++++++- 9 files changed, 355 insertions(+), 2 deletions(-)
arch/x86/kernel/tboot.c +1 -0
@@ -98,6 +98,7 @@ void __init tboot_probe(void)static pgd_t *tboot_pg_dir;static struct mm_struct tboot_mm = { .mm_rb =RB_ROOT , + .mm_mt =MTREE_INIT_EXT (mm_mt,MM_MT_FLAGS , tboot_mm.mmap_lock), .pgd = swapper_pg_dir, .mm_users =ATOMIC_INIT (2 ), .mm_count =ATOMIC_INIT (1 ),
drivers/firmware/efi/efi.c +1 -0
@@ -55,6 +55,7 @@ static unsigned long __initdata rt_prop = EFI_INVALID_TABLE_ADDR;struct mm_struct efi_mm = { .mm_rb =RB_ROOT , + .mm_mt =MTREE_INIT_EXT (mm_mt,MM_MT_FLAGS , efi_mm.mmap_lock), .mm_users =ATOMIC_INIT (2 ), .mm_count =ATOMIC_INIT (1 ), .write_protect_seq =SEQCNT_ZERO (efi_mm.write_protect_seq),
include/linux/mm.h +2 -0
@@ -2577,6 +2577,8 @@ extern bool arch_has_descending_max_zone_pfns(void);/* nommu.c */ extern atomic_long_t mmap_pages_allocated;extern int nommu_shrink_inode_mappings (struct inode *,size_t ,size_t ); +/* mmap.c */ +void vma_store (struct mm_struct *mm,struct vm_area_struct *vma);/* interval_tree.c */ void vma_interval_tree_insert(struct vm_area_struct *node,
include/linux/mm_types.h +3 -0
@@ -9,6 +9,7 @@#include <linux/list.h> #include <linux/spinlock.h> #include <linux/rbtree.h> +#include <linux/maple_tree.h> #include <linux/rwsem.h> #include <linux/completion.h> #include <linux/cpumask.h>
@@ -476,6 +477,7 @@ struct kioctx_table;struct mm_struct {struct {struct vm_area_struct *mmap;/* list of VMAs */ +struct maple_tree mm_mt;struct rb_root mm_rb;u64 vmacache_seqnum;/* per-thread vmacache */ #ifdef CONFIG_MMU
@@ -664,6 +666,7 @@ struct mm_struct {unsigned long cpu_bitmap[]; }; +#define MM_MT_FLAGS (MT_FLAGS_ALLOC_RANGE | MT_FLAGS_LOCK_EXTERN)extern struct mm_struct init_mm;/* Pointer magic because the dynamic array size confuses some compilers. */
include/trace/events/mmap.h +71 -0
77 lines not on this page · raw message
kernel/fork.c +5 -0
@@ -696,6 +696,9 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm, rb_link = &tmp->vm_rb.rb_right; rb_parent = &tmp->vm_rb; +/* Link the vma into the MT */ +vma_store (mm, tmp); + mm->map_count++;if (!(tmp->vm_flags &VM_WIPEONFORK )) retval =copy_page_range (tmp, mpnt);
@@ -1107,6 +1110,8 @@ static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p, { mm->mmap =NULL ; mm->mm_rb =RB_ROOT ; +mt_init_flags (&mm->mm_mt,MM_MT_FLAGS ); +mt_set_external_lock (&mm->mm_mt, &mm->mmap_lock); mm->vmacache_seqnum =0 ;atomic_set (&mm->mm_users,1 );atomic_set (&mm->mm_count,1 );
mm/init-mm.c +2 -0
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0 #include <linux/mm_types.h> #include <linux/rbtree.h> +#include <linux/maple_tree.h> #include <linux/rwsem.h> #include <linux/spinlock.h> #include <linux/list.h>
@@ -29,6 +30,7 @@*/ struct mm_struct init_mm = { .mm_rb =RB_ROOT , + .mm_mt =MTREE_INIT_EXT (mm_mt,MM_MT_FLAGS , init_mm.mmap_lock), .pgd = swapper_pg_dir, .mm_users =ATOMIC_INIT (2 ), .mm_count =ATOMIC_INIT (1 ),
mm/internal.h +70 -0
76 lines not on this page · raw message
mm/mmap.c +200 -2
451 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v7 10/70 mm: Add VMA iterator
In reply to Liam HowlettFrom: "Matthew Wilcox (Oracle)" <[email protected]>
This thin layer of abstraction over the maple tree state is for iterating over VMAs. You can go forwards, go backwards or ask where the iterator is. Rename the existing vma_next() to __vma_next() -- it will be removed by the end of this series.
--- include/linux/mm.h | 31 +++++++++++++++++++++++++++++++ include/linux/mm_types.h | 21 +++++++++++++++++++++ mm/mmap.c | 10 +++++----- 3 files changed, 57 insertions(+), 5 deletions(-)
include/linux/mm.h +31 -0
@@ -658,6 +658,37 @@ static inline bool vma_is_accessible(struct vm_area_struct *vma)return vma->vm_flags &VM_ACCESS_FLAGS ; } +static inline +struct vm_area_struct *vma_find (struct vma_iterator *vmi,unsigned long max) +{ +return mas_find (&vmi->mas, max); +} + +static inline struct vm_area_struct *vma_next (struct vma_iterator *vmi) +{ +/* +* Uses vma_find() to get the first VMA when the iterator starts. +* Calling mas_next() could skip the first entry. +*/ +return vma_find (vmi,ULONG_MAX ); +} + +static inline struct vm_area_struct *vma_prev (struct vma_iterator *vmi) +{ +return mas_prev (&vmi->mas,0 ); +} + +static inline unsigned long vma_iter_addr (struct vma_iterator *vmi) +{ +return vmi->mas.index; +} + +#define for_each_vma (vmi, vma) while ((vma = vma_next(&(vmi))) != NULL) + +/* The MM code likes to work with exclusive end addresses */ +#define for_each_vma_range (vmi, vma, end) \ + while ((vma = vma_find(&(vmi), (end) - 1)) != NULL) +#ifdef CONFIG_SHMEM /* * The vma_is_shmem is not inline because it is used only by slow
include/linux/mm_types.h +21 -0
@@ -684,6 +684,27 @@ static inline cpumask_t *mm_cpumask(struct mm_struct *mm)return (struct cpumask *)&mm->cpu_bitmap; } +struct vma_iterator { +struct ma_state mas; +}; + +#define VMA_ITERATOR (name, mm, addr) \ + struct vma_iterator name = { \ + .mas = { \ + .tree = &mm->mm_mt, \ + .index = addr, \ + .node = MAS_START, \ + }, \ + } + +static inline void vma_iter_init (struct vma_iterator *vmi, +struct mm_struct *mm,unsigned long addr) +{ + vmi->mas.tree = &mm->mm_mt; + vmi->mas.index = addr; + vmi->mas.node =MAS_START ; +} +struct mmu_gather ;extern void tlb_gather_mmu (struct mmu_gather *tlb,struct mm_struct *mm);extern void tlb_gather_mmu_fullmm (struct mmu_gather *tlb,struct mm_struct *mm);
mm/mmap.c +5 -5
@@ -627,7 +627,7 @@ static int find_vma_links(struct mm_struct *mm, unsigned long addr, }/* -* vma_next() - Get the next VMA. +* __vma_next() - Get the next VMA. * @mm: The mm_struct. * @vma: The current vma. *
@@ -635,7 +635,7 @@ static int find_vma_links(struct mm_struct *mm, unsigned long addr,* * Returns: The next VMA after @vma. */ -static inline struct vm_area_struct *vma_next (struct mm_struct *mm, +static inline struct vm_area_struct *__vma_next (struct mm_struct *mm,struct vm_area_struct *vma) {if (!vma)
@@ -1293,7 +1293,7 @@ struct vm_area_struct *vma_merge(struct mm_struct *mm,if (vm_flags &VM_SPECIAL )return NULL ; - next =vma_next (mm, prev); + next =__vma_next (mm, prev); area = next;if (area && area->vm_end == end)/* cases 6, 7, 8 */ next = next->vm_next;
@@ -2812,7 +2812,7 @@ static void unmap_region(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev, unsigned long start, unsigned long end) { - struct vm_area_struct *next = vma_next(mm, prev); + struct vm_area_struct *next = __vma_next(mm, prev);struct mmu_gather tlb;lru_add_drain ();
@@ -3011,7 +3011,7 @@ int __do_munmap(struct mm_struct *mm, unsigned long start, size_t len,if (error)return error; } - vma =vma_next (mm, prev); + vma =__vma_next (mm, prev);if (unlikely (uf)) {/*
Signature · 1 line
2.34.1
PATCH v7 11/70 arch/arm64: Remove the merge workaround for VMA_ITERATOR
In reply to Liam HowlettNow that the vma iterator is in the kernel, remove the workaround.
--- arch/arm64/kernel/elfcore.c | 7 ------- 1 file changed, 7 deletions(-)
arch/arm64/kernel/elfcore.c +0 -7
@@ -8,13 +8,6 @@#include <asm/cpufeature.h> #include <asm/mte.h> -#ifndef VMA_ITERATOR -#define VMA_ITERATOR (name, mm, addr) \ - struct mm_struct *name = mm -#define for_each_vma (vmi, vma) \ - for (vma = vmi->mmap; vma; vma = vma->vm_next) -#endif -#define for_each_mte_vma (vmi, vma) \ if (system_supports_mte()) \ for_each_vma(vmi, vma) \
Signature · 1 line
2.34.1
Will Deacon
maintainerRe: [PATCH v7 11/70] arch/arm64: Remove the merge workaround for VMA_ITERATOR
Hi Liam,
Quoted 12 lines · Liam Howlett
Now that the vma iterator is in the kernel, remove the workaround.
Signed-off-by Liam R. Howlett <[email protected]>--- arch/arm64/kernel/elfcore.c | 7 ------- 1 file changed, 7 deletions(-)arch/arm64/kernel/elfcore.c +0
-0
arch/arm64/kernel/elfcore.c line 16
Quoted 9 lines
arch/arm64/kernel/elfcore.c +0
-6@@ -8,13 +8,6 @@#include <asm/cpufeature.h> #include <asm/mte.h> -#ifndef VMA_ITERATOR -#define VMA_ITERATOR (name, mm, addr) \ - struct mm_struct *name = mm -#define for_each_vma (vmi, vma) \ - for (vma = vmi->mmap; vma; vma = vma->vm_next) -#endif
I already have this revert queued up as an arm64 fix:
Should land for -rc2.
Will
Re: [PATCH v7 11/70] arch/arm64: Remove the merge workaround for VMA_ITERATOR
Quoted 27 lines · Will Deacon
Hi Liam,
Quoted 12 lines · Liam Howlett
Now that the vma iterator is in the kernel, remove the workaround.
Signed-off-by Liam R. Howlett <[email protected]>--- arch/arm64/kernel/elfcore.c | 7 ------- 1 file changed, 7 deletions(-)arch/arm64/kernel/elfcore.c +0
-0arch/arm64/kernel/elfcore.c line 16
Quoted 9 lines
arch/arm64/kernel/elfcore.c +0
-6@@ -8,13 +8,6 @@#include <asm/cpufeature.h> #include <asm/mte.h> -#ifndef VMA_ITERATOR -#define VMA_ITERATOR (name, mm, addr) \ - struct mm_struct *name = mm -#define for_each_vma (vmi, vma) \ - for (vma = vmi->mmap; vma; vma = vma->vm_next) -#endif I already have this revert queued up as an arm64 fix:
Quoted 3 lines
Should land for -rc2.
Thanks Will.
Note that I'm asking Andrew to include the set into mmotm and not directly into linux-next this time as requested by Andrew.
Thanks,
Liam
PATCH v7 12/70 mmap: Use the VMA iterator in count_vma_pages_range()
In reply to Liam HowlettFrom: "Matthew Wilcox (Oracle)" <[email protected]>
This simplifies the implementation and is faster than using the linked list.
--- mm/mmap.c | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-)
mm/mmap.c +7 -17
@@ -670,29 +670,19 @@ munmap_vma_range(struct mm_struct *mm, unsigned long start, unsigned long len,return 0 ; } +static unsigned long count_vma_pages_range (struct mm_struct *mm,unsigned long addr,unsigned long end) { -unsigned long nr_pages =0 ; +VMA_ITERATOR (vmi, mm, addr);struct vm_area_struct *vma; +unsigned long nr_pages =0 ; -/* Find first overlapping mapping */ - vma =find_vma_intersection (mm, addr, end); -if (!vma) -return 0 ; - - nr_pages = (min (end, vma->vm_end) - -max (addr, vma->vm_start)) >>PAGE_SHIFT ; - -/* Iterate over the rest of the overlaps */ -for (vma = vma->vm_next; vma; vma = vma->vm_next) { -unsigned long overlap_len; - -if (vma->vm_start > end) -break ; +for_each_vma_range (vmi, vma, end) { +unsigned long vm_start =max (addr, vma->vm_start); +unsigned long vm_end =min (end, vma->vm_end); - overlap_len =min (end, vma->vm_end) - vma->vm_start; - nr_pages += overlap_len >>PAGE_SHIFT ; + nr_pages += (vm_end - vm_start) /PAGE_SIZE ; }return nr_pages;
Signature · 1 line
2.34.1
PATCH v7 13/70 mm/mmap: Use the maple tree in find_vma() instead of the rbtree.
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Using the maple tree interface mt_find() will handle the RCU locking and will start searching at the address up to the limit, ULONG_MAX in this case.
Add kernel documentation to this API.
--- mm/mmap.c | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-)
mm/mmap.c +10 -18
@@ -2424,11 +2424,18 @@ get_unmapped_area(struct file *file, unsigned long addr, unsigned long len,EXPORT_SYMBOL (get_unmapped_area); -/* Look up the first VMA which satisfies addr < vm_end, NULL if none. */ +/** +* find_vma() - Find the VMA for a given address, or the next vma. +* @mm: The mm_struct to check +* @addr: The address +* +* Returns: The VMA associated with addr, or the next vma. +* May return %NULL in the case of no vma at addr or above. +*/ struct vm_area_struct *find_vma (struct mm_struct *mm,unsigned long addr) { -struct rb_node *rb_node;struct vm_area_struct *vma; +unsigned long index = addr;mmap_assert_locked (mm);/* Check the cache first. */
@@ -2436,22 +2443,7 @@ struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)if (likely (vma))return vma; - rb_node = mm->mm_rb.rb_node; - -while (rb_node) { -struct vm_area_struct *tmp; - - tmp = rb_entry(rb_node, struct vm_area_struct, vm_rb); - -if (tmp->vm_end > addr) { - vma = tmp; -if (tmp->vm_start <= addr) -break ; - rb_node = rb_node->rb_left; - }else - rb_node = rb_node->rb_right; - } - + vma =mt_find (&mm->mm_mt, &index,ULONG_MAX );if (vma)vmacache_update (addr, vma);return vma;
Signature · 1 line
2.34.1
PATCH v7 14/70 mm/mmap: Use the maple tree for find_vma_prev() instead of the rbtree
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Use the maple tree's advanced API and a maple state to walk the tree for the entry at the address of the next vma, then use the maple state to walk back one entry to find the previous entry.
Add kernel documentation comments for this API.
--- mm/mmap.c | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-)
mm/mmap.c +17 -10
@@ -2450,23 +2450,30 @@ struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr) }EXPORT_SYMBOL (find_vma); -/* -* Same as find_vma, but also return a pointer to the previous VMA in *pprev. +/** +* find_vma_prev() - Find the VMA for a given address, or the next vma and +* set %pprev to the previous VMA, if any. +* @mm: The mm_struct to check +* @addr: The address +* @pprev: The pointer to set to the previous VMA +* +* Note that RCU lock is missing here since the external mmap_lock() is used +* instead. +* +* Returns: The VMA associated with @addr, or the next vma. +* May return %NULL in the case of no vma at addr or above. */ struct vm_area_struct *find_vma_prev (struct mm_struct *mm,unsigned long addr,struct vm_area_struct **pprev) {struct vm_area_struct *vma; +MA_STATE (mas, &mm->mm_mt, addr, addr); - vma =find_vma (mm, addr); -if (vma) { - *pprev = vma->vm_prev; - }else { -struct rb_node *rb_node =rb_last (&mm->mm_rb); - - *pprev = rb_node ? rb_entry(rb_node, struct vm_area_struct, vm_rb) : NULL; - } + vma =mas_walk (&mas); + *pprev =mas_prev (&mas,0 ); +if (!vma) + vma =mas_next (&mas,ULONG_MAX );return vma; }
Signature · 1 line
2.34.1
PATCH v7 15/70 mm/mmap: Use maple tree for unmapped_area{_topdown}
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
The maple tree code was added to find the unmapped area in a previous commit and was checked against what the rbtree returned, but the actual result was never used. Start using the maple tree implementation and remove the rbtree code.
Add kernel documentation comment for these functions.
--- mm/mmap.c | 253 +++++++----------------------------------------------- 1 file changed, 32 insertions(+), 221 deletions(-)
mm/mmap.c +32 -221
@@ -2000,250 +2000,61 @@ unsigned long mmap_region(struct file *file, unsigned long addr,return error; } +/* unmapped_area() Find an area between the low_limit and the high_limit with +* the correct alignment and offset, all from @info. Note: current->mm is used +* for the search. +* +* @info: The unmapped area information including the range (low_limit - +* hight_limit), the alignment offset and mask. +* +* Return: A memory address or -ENOMEM. +*/ static unsigned long unmapped_area (struct vm_unmapped_area_info *info) { -/* -* We implement the search by looking for an rbtree node that -* immediately follows a suitable gap. That is, -* - gap_start = vma->vm_prev->vm_end <= info->high_limit - length; -* - gap_end = vma->vm_start >= info->low_limit + length; -* - gap_end - gap_start >= length -*/ +unsigned long length, gap; -struct mm_struct *mm = current->mm; -struct vm_area_struct *vma; -unsigned long length, low_limit, high_limit, gap_start, gap_end; -unsigned long gap; -MA_STATE (mas, &mm->mm_mt,0 ,0 ); +MA_STATE (mas, ¤t->mm->mm_mt,0 ,0 );/* Adjust search length to account for worst case alignment overhead */ length = info->length + info->align_mask;if (length < info->length)return -ENOMEM ; -mas_empty_area (&mas, info->low_limit, info->high_limit -1 , - length); - gap = mas.index; - gap += (info->align_offset - gap) & info->align_mask; - -/* Adjust search limits by the desired length */ -if (info->high_limit < length) -return -ENOMEM ; - high_limit = info->high_limit - length; - -if (info->low_limit > high_limit) -return -ENOMEM ; - low_limit = info->low_limit + length; - -/* Check if rbtree root looks promising */ -if (RB_EMPTY_ROOT (&mm->mm_rb)) - goto check_highest; - vma = rb_entry(mm->mm_rb.rb_node, struct vm_area_struct, vm_rb); -if (vma->rb_subtree_gap < length) - goto check_highest; - -while (true) { -/* Visit left subtree if it looks promising */ - gap_end =vm_start_gap (vma); -if (gap_end >= low_limit && vma->vm_rb.rb_left) { -struct vm_area_struct *left = -rb_entry (vma->vm_rb.rb_left, - struct vm_area_struct, vm_rb); -if (left->rb_subtree_gap >= length) { - vma = left; -continue ; - } - } - - gap_start = vma->vm_prev ?vm_end_gap (vma->vm_prev) :0 ; -check_current: -/* Check if current node has a suitable gap */ -if (gap_start > high_limit) -return -ENOMEM ; -if (gap_end >= low_limit && - gap_end > gap_start && gap_end - gap_start >= length) - goto found; - -/* Visit right subtree if it looks promising */ -if (vma->vm_rb.rb_right) { -struct vm_area_struct *right = -rb_entry (vma->vm_rb.rb_right, - struct vm_area_struct, vm_rb); -if (right->rb_subtree_gap >= length) { - vma = right; -continue ; - } - } - -/* Go back up the rbtree to find next candidate node */ -while (true) { -struct rb_node *prev = &vma->vm_rb; -if (!rb_parent (prev)) - goto check_highest; - vma =rb_entry (rb_parent (prev), - struct vm_area_struct, vm_rb); -if (prev == vma->vm_rb.rb_left) { - gap_start =vm_end_gap (vma->vm_prev); - gap_end =vm_start_gap (vma); - goto check_current; - } - } - } - -check_highest: -/* Check highest gap, which does not precede any rbtree node */ - gap_start = mm->highest_vm_end; - gap_end =ULONG_MAX ;/* Only for VM_BUG_ON below */ -if (gap_start > high_limit) +if (mas_empty_area (&mas, info->low_limit, info->high_limit -1 , + length))return -ENOMEM ; -found: -/* We found a suitable gap. Clip it with the original low_limit. */ -if (gap_start < info->low_limit) - gap_start = info->low_limit; - -/* Adjust gap address to the desired alignment */ - gap_start += (info->align_offset - gap_start) & info->align_mask; - -VM_BUG_ON (gap_start + info->length > info->high_limit); -VM_BUG_ON (gap_start + info->length > gap_end); - -VM_BUG_ON (gap != gap_start); -return gap_start; + gap = mas.index; + gap += (info->align_offset - gap) & info->align_mask; +return gap; } +/* unmapped_area_topdown() Find an area between the low_limit and the +* high_limit with * the correct alignment and offset at the highest available +* address, all from * @info. Note: current->mm is used for the search. +* +* @info: The unmapped area information including the range (low_limit - +* hight_limit), the alignment offset and mask. +* +* Return: A memory address or -ENOMEM. +*/ static unsigned long unmapped_area_topdown (struct vm_unmapped_area_info *info) { -struct mm_struct *mm = current->mm; -struct vm_area_struct *vma =NULL ; -unsigned long length, low_limit, high_limit, gap_start, gap_end; -unsigned long gap; - -MA_STATE (mas, &mm->mm_mt,0 ,0 ); -validate_mm_mt (mm); +unsigned long length, gap; +MA_STATE (mas, ¤t->mm->mm_mt,0 ,0 );/* Adjust search length to account for worst case alignment overhead */ length = info->length + info->align_mask;if (length < info->length)return -ENOMEM ; -mas_empty_area_rev (&mas, info->low_limit, info->high_limit -1 , - length); - gap = mas.last +1 - info->length; - gap -= (gap - info->align_offset) & info->align_mask; - -/* -* Adjust search limits by the desired length. -* See implementation comment at top of unmapped_area(). -*/ - gap_end = info->high_limit; -if (gap_end < length) -return -ENOMEM ; - high_limit = gap_end - length; - -if (info->low_limit > high_limit) +if (mas_empty_area_rev (&mas, info->low_limit, info->high_limit -1 , + length))return -ENOMEM ; - low_limit = info->low_limit + length; - -/* Check highest gap, which does not precede any rbtree node */ - gap_start = mm->highest_vm_end; -if (gap_start <= high_limit) - goto found_highest; - -/* Check if rbtree root looks promising */ -if (RB_EMPTY_ROOT (&mm->mm_rb)) -return -ENOMEM ; - vma = rb_entry(mm->mm_rb.rb_node, struct vm_area_struct, vm_rb); -if (vma->rb_subtree_gap < length) -return -ENOMEM ; - -while (true) { -/* Visit right subtree if it looks promising */ - gap_start = vma->vm_prev ?vm_end_gap (vma->vm_prev) :0 ; -if (gap_start <= high_limit && vma->vm_rb.rb_right) { -struct vm_area_struct *right = -rb_entry (vma->vm_rb.rb_right, - struct vm_area_struct, vm_rb); -if (right->rb_subtree_gap >= length) { - vma = right; -continue ; - } - } - -check_current: -/* Check if current node has a suitable gap */ - gap_end =vm_start_gap (vma); -if (gap_end < low_limit) -return -ENOMEM ; -if (gap_start <= high_limit && - gap_end > gap_start && gap_end - gap_start >= length) - goto found; - -/* Visit left subtree if it looks promising */ -if (vma->vm_rb.rb_left) { -struct vm_area_struct *left = -rb_entry (vma->vm_rb.rb_left, - struct vm_area_struct, vm_rb); -if (left->rb_subtree_gap >= length) { - vma = left; -continue ; - } - } - -/* Go back up the rbtree to find next candidate node */ -while (true) { -struct rb_node *prev = &vma->vm_rb; -if (!rb_parent (prev)) -return -ENOMEM ; - vma =rb_entry (rb_parent (prev), - struct vm_area_struct, vm_rb); -if (prev == vma->vm_rb.rb_right) { - gap_start = vma->vm_prev ? -vm_end_gap (vma->vm_prev) :0 ; - goto check_current; - } - } - } - -found: -/* We found a suitable gap. Clip it with the original high_limit. */ -if (gap_end > info->high_limit) - gap_end = info->high_limit; - -found_highest: -/* Compute highest gap address at the desired alignment */ - gap_end -= info->length; - gap_end -= (gap_end - info->align_offset) & info->align_mask; - -VM_BUG_ON (gap_end < info->low_limit); -VM_BUG_ON (gap_end < gap_start); - -if (gap != gap_end) { -pr_err ("%s: %px Gap was found: mt %lu gap_end %lu\n" , __func__, - mm, gap, gap_end); -pr_err ("window was %lu - %lu size %lu\n" , info->high_limit, - info->low_limit, length); -pr_err ("mas.min %lu max %lu mas.last %lu\n" , mas.min, mas.max, - mas.last); -pr_err ("mas.index %lu align mask %lu offset %lu\n" , mas.index, - info->align_mask, info->align_offset); -pr_err ("rb_find_vma find on %lu => %px (%px)\n" , mas.index, -find_vma (mm, mas.index), vma); -#if defined(CONFIG_DEBUG_VM_MAPLE_TREE ) -mt_dump (&mm->mm_mt); -#endif - { -struct vm_area_struct *dv = mm->mmap; -while (dv) { -printk ("vma %px %lu-%lu\n" , dv, dv->vm_start, dv->vm_end); - dv = dv->vm_next; - } - } -VM_BUG_ON (gap != gap_end); - } - -return gap_end; + gap = mas.last +1 - info->length; + gap -= (gap - info->align_offset) & info->align_mask; +return gap; }/*
Signature · 1 line
2.34.1
PATCH v7 16/70 kernel/fork: Use maple tree for dup_mmap() during forking
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
The maple tree was already tracking VMAs in this function by an earlier commit, but the rbtree iterator was being used to iterate the list. Change the iterator to use a maple tree native iterator and switch to the maple tree advanced API to avoid multiple walks of the tree during insert operations. Unexport the now-unused vma_store() function.
For performance reasons we bulk allocate the maple tree nodes. The node calculations are done internally to the tree and use the VMA count and assume the worst-case node requirements. The VM_DONT_COPY flag does not allow for the most efficient copy method of the tree and so a bulk loading algorithm is used.
--- include/linux/mm.h | 2 -- kernel/fork.c | 24 ++++++++++++++++++------ mm/mmap.c | 2 +- 3 files changed, 19 insertions(+), 9 deletions(-)
include/linux/mm.h +0 -2
@@ -2608,8 +2608,6 @@ extern bool arch_has_descending_max_zone_pfns(void);/* nommu.c */ extern atomic_long_t mmap_pages_allocated;extern int nommu_shrink_inode_mappings (struct inode *,size_t ,size_t ); -/* mmap.c */ -void vma_store (struct mm_struct *mm,struct vm_area_struct *vma);/* interval_tree.c */ void vma_interval_tree_insert(struct vm_area_struct *node,
kernel/fork.c +18 -6
@@ -583,7 +583,9 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm,struct vm_area_struct *mpnt, *tmp, *prev, **pprev;struct rb_node **rb_link, *rb_parent;int retval; -unsigned long charge; +unsigned long charge =0 ; +MA_STATE (old_mas, &oldmm->mm_mt,0 ,0 ); +MA_STATE (mas, &mm->mm_mt,0 ,0 );LIST_HEAD (uf);uprobe_start_dup_mmap ();
@@ -617,7 +619,12 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm, goto out; prev =NULL ; -for (mpnt = oldmm->mmap; mpnt; mpnt = mpnt->vm_next) { + + retval =mas_expected_entries (&mas, oldmm->map_count); +if (retval) + goto out; + +mas_for_each (&old_mas, mpnt,ULONG_MAX ) {struct file *file;if (mpnt->vm_flags &VM_DONTCOPY ) {
@@ -631,7 +638,7 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm,*/ if (fatal_signal_pending (current)) { retval = -EINTR ; - goto out; + goto loop_out; }if (mpnt->vm_flags &VM_ACCOUNT ) {unsigned long len =vma_pages (mpnt);
@@ -697,7 +704,9 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm, rb_parent = &tmp->vm_rb;/* Link the vma into the MT */ -vma_store (mm, tmp); + mas.index = tmp->vm_start; + mas.last = tmp->vm_end -1 ; +mas_store (&mas, tmp); mm->map_count++;if (!(tmp->vm_flags &VM_WIPEONFORK ))
@@ -707,10 +716,13 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm, tmp->vm_ops->open (tmp);if (retval) - goto out; + goto loop_out; + }/* a new mm has just been created */ retval =arch_dup_mmap (oldmm, mm); +loop_out: +mas_destroy (&mas); out:mmap_write_unlock (mm);flush_tlb_mm (oldmm);
@@ -726,7 +738,7 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm, fail_nomem: retval = -ENOMEM ;vm_unacct_memory (charge); - goto out; + goto loop_out; }static inline int mm_alloc_pgd (struct mm_struct *mm)
mm/mmap.c +1 -1
@@ -751,7 +751,7 @@ static inline void vma_mt_szero(struct mm_struct *mm, unsigned long start,* @mm: The struct_mm * @vma: The vm_area_struct to store in the maple tree. */ -void vma_store (struct mm_struct *mm,struct vm_area_struct *vma) +static void vma_store (struct mm_struct *mm,struct vm_area_struct *vma) {MA_STATE (mas, &mm->mm_mt,0 ,0 );
Signature · 1 line
2.34.1
PATCH v7 17/70 damon: Convert __damon_va_three_regions to use the VMA iterator
In reply to Liam HowlettFrom: "Matthew Wilcox (Oracle)" <[email protected]>
This rather specialised walk can use the VMA iterator. If this proves to be too slow, we can write a custom routine to find the two largest gaps, but it will be somewhat complicated, so let's see if we need it first.
Update the kunit test case to use the maple tree. This also fixes an issue with the kunit testcase not adding the last VMA to the list.
--- mm/damon/vaddr-test.h | 37 +++++++++++------------------- mm/damon/vaddr.c | 53 ++++++++++++++++++++++--------------------- 2 files changed, 40 insertions(+), 50 deletions(-)
mm/damon/vaddr-test.h +13 -24
@@ -13,34 +13,21 @@#define _DAMON_VADDR_TEST_H#include <kunit/test.h> +#include "../../mm/internal.h" -static void __link_vmas (struct vm_area_struct *vmas,ssize_t nr_vmas) +static void __link_vmas (struct maple_tree *mt,struct vm_area_struct *vmas, +ssize_t nr_vmas) { -int i, j; -unsigned long largest_gap, gap; +int i; +MA_STATE (mas, mt,0 ,0 );if (!nr_vmas)return ; -for (i =0 ; i < nr_vmas -1 ; i++) { - vmas[i].vm_next = &vmas[i +1 ]; - - vmas[i].vm_rb.rb_left =NULL ; - vmas[i].vm_rb.rb_right = &vmas[i +1 ].vm_rb; - - largest_gap =0 ; -for (j = i; j < nr_vmas; j++) { -if (j ==0 ) -continue ; - gap = vmas[j].vm_start - vmas[j -1 ].vm_end; -if (gap > largest_gap) - largest_gap = gap; - } - vmas[i].rb_subtree_gap = largest_gap; - } - vmas[i].vm_next =NULL ; - vmas[i].vm_rb.rb_right =NULL ; - vmas[i].rb_subtree_gap =0 ; +mas_lock (&mas); +for (i =0 ; i < nr_vmas; i++) +vma_mas_store (&vmas[i], &mas); +mas_unlock (&mas); }/*
@@ -72,6 +59,7 @@ static void __link_vmas(struct vm_area_struct *vmas, ssize_t nr_vmas)*/ static void damon_test_three_regions_in_vmas (struct kunit *test) { +static struct mm_struct mm;struct damon_addr_range regions[3 ] = {0 ,};/* 10-20-25, 200-210-220, 300-305, 307-330 */ struct vm_area_struct vmas[] = {
@@ -83,9 +71,10 @@ static void damon_test_three_regions_in_vmas(struct kunit *test) (struct vm_area_struct ) {.vm_start =307 , .vm_end =330 }, }; -__link_vmas (vmas,6 ); +mt_init_flags (&mm.mm_mt,MM_MT_FLAGS ); +__link_vmas (&mm.mm_mt, vmas,ARRAY_SIZE (vmas)); -__damon_va_three_regions (&vmas[0 ], regions); +__damon_va_three_regions (&mm, regions);KUNIT_EXPECT_EQ (test,10ul , regions[0 ].start);KUNIT_EXPECT_EQ (test,25ul , regions[0 ].end);
mm/damon/vaddr.c +27 -26
78 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v7 18/70 proc: Remove VMA rbtree use from nommu
In reply to Liam HowlettFrom: "Matthew Wilcox (Oracle)" <[email protected]>
These users of the rbtree should probably have been walks of the linked list, but convert them to use walks of the maple tree.
--- fs/proc/task_nommu.c | 45 +++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 24 deletions(-)
fs/proc/task_nommu.c +21 -24
@@ -20,15 +20,13 @@*/ void task_mem (struct seq_file *m,struct mm_struct *mm) { +VMA_ITERATOR (vmi, mm,0 );struct vm_area_struct *vma;struct vm_region *region; -struct rb_node *p;unsigned long bytes =0 , sbytes =0 , slack =0 , size; - -mmap_read_lock (mm); -for (p =rb_first (&mm->mm_rb); p; p =rb_next (p)) { - vma = rb_entry(p, struct vm_area_struct, vm_rb); +mmap_read_lock (mm); +for_each_vma (vmi, vma) { bytes +=kobjsize (vma); region = vma->vm_region;
@@ -82,15 +80,13 @@ void task_mem(struct seq_file *m, struct mm_struct *mm)unsigned long task_vsize (struct mm_struct *mm) { +VMA_ITERATOR (vmi, mm,0 );struct vm_area_struct *vma; -struct rb_node *p;unsigned long vsize =0 ;mmap_read_lock (mm); -for (p =rb_first (&mm->mm_rb); p; p =rb_next (p)) { - vma = rb_entry(p, struct vm_area_struct, vm_rb); +for_each_vma (vmi, vma) vsize += vma->vm_end - vma->vm_start; - }mmap_read_unlock (mm);return vsize; }
@@ -99,14 +95,13 @@ unsigned long task_statm(struct mm_struct *mm, unsigned long *shared, unsigned long *text, unsigned long *data, unsigned long *resident) { + VMA_ITERATOR(vmi, mm, 0);struct vm_area_struct *vma;struct vm_region *region; -struct rb_node *p;unsigned long size =kobjsize (mm);mmap_read_lock (mm); -for (p =rb_first (&mm->mm_rb); p; p =rb_next (p)) { - vma = rb_entry(p, struct vm_area_struct, vm_rb); +for_each_vma (vmi, vma) { size +=kobjsize (vma); region = vma->vm_region;if (region) {
@@ -190,17 +185,19 @@ static int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma)*/ static int show_map (struct seq_file *m,void *_p) { -struct rb_node *p = _p; - - return nommu_vma_show(m, rb_entry(p, struct vm_area_struct, vm_rb)); +return nommu_vma_show (m, _p); }static void *m_start (struct seq_file *m,loff_t *pos) {struct proc_maps_private *priv = m->private;struct mm_struct *mm; -struct rb_node *p; -loff_t n = *pos; +struct vm_area_struct *vma; +unsigned long addr = *pos; + +/* See m_next(). Zero at the start or after lseek. */ +if (addr ==-1UL ) +return NULL ;/* pin the task and mm whilst we play with them */ priv->task =get_proc_task (priv->inode);
@@ -216,10 +213,10 @@ static void *m_start(struct seq_file *m, loff_t *pos)return ERR_PTR (-EINTR ); } -/* start from the Nth VMA */ -for (p =rb_first (&mm->mm_rb); p; p =rb_next (p)) -if (n-- ==0 ) -return p; +/* start the next element from addr */ + vma =find_vma (mm, addr); +if (vma) +return vma;mmap_read_unlock (mm);mmput (mm);
@@ -242,10 +239,10 @@ static void m_stop(struct seq_file *m, void *_vml)static void *m_next (struct seq_file *m,void *_p,loff_t *pos) { -struct rb_node *p = _p; +struct vm_area_struct *vma = _p; - (*pos)++; -return p ?rb_next (p) :NULL ; + *pos = vma->vm_end; +return find_vma (vma->vm_mm, vma->vm_end); }static const struct seq_operations proc_pid_maps_ops = {
Signature · 1 line
2.34.1
PATCH v7 19/70 mm: Remove rb tree.
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Remove the RB tree and start using the maple tree for vm_area_struct tracking.
Drop validate_mm() calls in expand_upwards() and expand_downwards() as the lock is not held.
--- arch/x86/kernel/tboot.c | 1 - drivers/firmware/efi/efi.c | 1 - include/linux/mm.h | 2 - include/linux/mm_types.h | 14 -- kernel/fork.c | 8 - mm/init-mm.c | 2 - mm/mmap.c | 495 ++++++++----------------------------- mm/nommu.c | 87 ++----- mm/util.c | 10 +- 9 files changed, 134 insertions(+), 486 deletions(-)
arch/x86/kernel/tboot.c +0 -1
@@ -97,7 +97,6 @@ void __init tboot_probe(void)static pgd_t *tboot_pg_dir;static struct mm_struct tboot_mm = { - .mm_rb =RB_ROOT , .mm_mt =MTREE_INIT_EXT (mm_mt,MM_MT_FLAGS , tboot_mm.mmap_lock), .pgd = swapper_pg_dir, .mm_users =ATOMIC_INIT (2 ),
drivers/firmware/efi/efi.c +0 -1
@@ -54,7 +54,6 @@ static unsigned long __initdata mem_reserve = EFI_INVALID_TABLE_ADDR;static unsigned long __initdata rt_prop =EFI_INVALID_TABLE_ADDR ;struct mm_struct efi_mm = { - .mm_rb =RB_ROOT , .mm_mt =MTREE_INIT_EXT (mm_mt,MM_MT_FLAGS , efi_mm.mmap_lock), .mm_users =ATOMIC_INIT (2 ), .mm_count =ATOMIC_INIT (1 ),
include/linux/mm.h +0 -2
@@ -2663,8 +2663,6 @@ extern int __split_vma(struct mm_struct *, struct vm_area_struct *,extern int split_vma (struct mm_struct *,struct vm_area_struct *,unsigned long addr,int new_below);extern int insert_vm_struct (struct mm_struct *,struct vm_area_struct *); -extern void __vma_link_rb (struct mm_struct *,struct vm_area_struct *, -struct rb_node **,struct rb_node *);extern void unlink_file_vma (struct vm_area_struct *); extern struct vm_area_struct *copy_vma(struct vm_area_struct **, unsigned long addr, unsigned long len, pgoff_t pgoff,
include/linux/mm_types.h +0 -14
@@ -400,19 +400,6 @@ struct vm_area_struct {/* linked list of VM areas per task, sorted by address */ struct vm_area_struct *vm_next, *vm_prev; - -struct rb_node vm_rb; - -/* -* Largest free memory gap in bytes to the left of this VMA. -* Either between this VMA and vma->vm_prev, or between one of the -* VMAs below us in the VMA rbtree and its ->vm_prev. This helps -* get_unmapped_area find a free area of the right size. -*/ -unsigned long rb_subtree_gap; - -/* Second cache line starts here. */ -struct mm_struct *vm_mm;/* The address space we belong to. */ /*
@@ -478,7 +465,6 @@ struct mm_struct {struct {struct vm_area_struct *mmap;/* list of VMAs */ struct maple_tree mm_mt; -struct rb_root mm_rb;u64 vmacache_seqnum;/* per-thread vmacache */ #ifdef CONFIG_MMU unsigned long (*get_unmapped_area) (struct file *filp,
kernel/fork.c +0 -8
@@ -581,7 +581,6 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) {struct vm_area_struct *mpnt, *tmp, *prev, **pprev; -struct rb_node **rb_link, *rb_parent;int retval;unsigned long charge =0 ;MA_STATE (old_mas, &oldmm->mm_mt,0 ,0 );
@@ -608,8 +607,6 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm, mm->exec_vm = oldmm->exec_vm; mm->stack_vm = oldmm->stack_vm; - rb_link = &mm->mm_rb.rb_node; - rb_parent =NULL ; pprev = &mm->mmap; retval =ksm_fork (mm, oldmm);if (retval)
@@ -699,10 +696,6 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm, tmp->vm_prev = prev; prev = tmp; -__vma_link_rb (mm, tmp, rb_link, rb_parent); - rb_link = &tmp->vm_rb.rb_right; - rb_parent = &tmp->vm_rb; -/* Link the vma into the MT */ mas.index = tmp->vm_start; mas.last = tmp->vm_end -1 ;
@@ -1121,7 +1114,6 @@ static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p, struct user_namespace *user_ns) { mm->mmap =NULL ; - mm->mm_rb =RB_ROOT ;mt_init_flags (&mm->mm_mt,MM_MT_FLAGS );mt_set_external_lock (&mm->mm_mt, &mm->mmap_lock); mm->vmacache_seqnum =0 ;
mm/init-mm.c +0 -2
@@ -1,6 +1,5 @@// SPDX-License-Identifier: GPL-2.0 #include <linux/mm_types.h> -#include <linux/rbtree.h> #include <linux/maple_tree.h> #include <linux/rwsem.h> #include <linux/spinlock.h>
@@ -29,7 +28,6 @@* and size this cpu_bitmask to NR_CPUS. */ struct mm_struct init_mm = { - .mm_rb =RB_ROOT , .mm_mt =MTREE_INIT_EXT (mm_mt,MM_MT_FLAGS , init_mm.mmap_lock), .pgd = swapper_pg_dir, .mm_users =ATOMIC_INIT (2 ),
mm/mmap.c +101 -394
840 lines not on this page · raw message
mm/nommu.c +24 -63
145 lines not on this page · raw message
mm/util.c +9 -1
@@ -287,6 +287,8 @@ void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma, vma->vm_next = next;if (next) next->vm_prev = vma; +else + mm->highest_vm_end =vm_end_gap (vma); }void __vma_unlink_list (struct mm_struct *mm,struct vm_area_struct *vma)
@@ -299,8 +301,14 @@ void __vma_unlink_list(struct mm_struct *mm, struct vm_area_struct *vma) prev->vm_next = next; else mm->mmap = next; -if (next) +if (next) { next->vm_prev = prev; + }else { +if (prev) + mm->highest_vm_end =vm_end_gap (prev); +else + mm->highest_vm_end =0 ; + } }/* Check if the vma is being used as a stack by this task */
Signature · 1 line
2.34.1
PATCH v7 20/70 mmap: Change zeroing of maple tree in __vma_adjust()
In reply to Liam HowlettOnly write to the maple tree if we are not inserting or the insert isn't going to overwrite the area to clear. This avoids spanning writes and node coealescing when unnecessary.
The change requires a custom search for the linked list addition to find the correct VMA for the prev link.
--- mm/mmap.c | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-)
mm/mmap.c +20 -8
@@ -582,10 +582,11 @@ static void vma_link(struct mm_struct *mm, struct vm_area_struct *vma,* Helper for vma_adjust() in the split_vma insert case: insert a vma into the * mm's list and the mm tree. It has already been inserted into the interval tree. */ -static void __insert_vm_struct (struct mm_struct *mm,struct vm_area_struct *vma) +static void __insert_vm_struct (struct mm_struct *mm,struct vm_area_struct *vma, +unsigned long location) {struct vm_area_struct *prev; -MA_STATE (mas, &mm->mm_mt, vma->vm_start, vma->vm_start); +MA_STATE (mas, &mm->mm_mt, location, location); prev =mas_prev (&mas,0 );vma_store (mm, vma);
@@ -613,6 +614,7 @@ int __vma_adjust(struct vm_area_struct *vma, unsigned long start,bool vma_changed = false;long adjust_next =0 ;int remove_next =0 ; +unsigned long ll_prev = vma->vm_start;/* linked list prev. */ if (next && !insert) {struct vm_area_struct *exporter =NULL , *importer =NULL ;
@@ -739,17 +741,27 @@ int __vma_adjust(struct vm_area_struct *vma, unsigned long start, }if (start != vma->vm_start) { -if (vma->vm_start < start) +if ((vma->vm_start < start) && + (!insert || (insert->vm_end != start))) {vma_mt_szero (mm, vma->vm_start, start); -else +VM_WARN_ON (insert && insert->vm_start > vma->vm_start); + }else { vma_changed = true; + } vma->vm_start = start; }if (end != vma->vm_end) { -if (vma->vm_end > end) -vma_mt_szero (mm, end, vma->vm_end); -else +if (vma->vm_end > end) { +if (!insert || (insert->vm_start != end)) { +vma_mt_szero (mm, end, vma->vm_end); +VM_WARN_ON (insert && + insert->vm_end < vma->vm_end); + }else if (insert->vm_start == end) { + ll_prev = vma->vm_end; + } + }else { vma_changed = true; + } vma->vm_end = end;if (!next) mm->highest_vm_end =vm_end_gap (vma);
@@ -784,7 +796,7 @@ int __vma_adjust(struct vm_area_struct *vma, unsigned long start,* us to insert it before dropping the locks * (it may either follow vma or precede it). */ -__insert_vm_struct (mm, insert); +__insert_vm_struct (mm, insert, ll_prev); }if (anon_vma) {
Signature · 1 line
2.34.1
PATCH v7 21/70 xen: Use vma_lookup() in privcmd_ioctl_mmap()
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
vma_lookup() walks the VMA tree for a specific value, find_vma() will search the tree after walking to a specific value. It is more efficient to only walk to the requested value since privcmd_ioctl_mmap() will exit the loop if vm_start != msg->va.
--- drivers/xen/privcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/xen/privcmd.c +1 -1
@@ -282,7 +282,7 @@ static long privcmd_ioctl_mmap(struct file *file, void __user *udata) struct page, lru);struct privcmd_mmap_entry *msg =page_address (page); - vma =find_vma (mm, msg->va); + vma =vma_lookup (mm, msg->va); rc = -EINVAL ;if (!vma || (msg->va != vma->vm_start) || vma->vm_private_data)
Signature · 1 line
2.34.1
PATCH v7 22/70 mm: Optimize find_exact_vma() to use vma_lookup()
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Use vma_lookup() to walk the tree to the start value requested. If the vma at the start does not match, then the answer is NULL and there is no need to look at the next vma the way that find_vma() would.
--- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mm.h +1 -1
@@ -2855,7 +2855,7 @@ static inline unsigned long vma_pages(struct vm_area_struct *vma)static inline struct vm_area_struct *find_exact_vma (struct mm_struct *mm,unsigned long vm_start,unsigned long vm_end) { -struct vm_area_struct *vma =find_vma (mm, vm_start); +struct vm_area_struct *vma =vma_lookup (mm, vm_start);if (vma && (vma->vm_start != vm_start || vma->vm_end != vm_end)) vma =NULL ;
Signature · 1 line
2.34.1
PATCH v7 23/70 mm/khugepaged: Optimize collapse_pte_mapped_thp() by using vma_lookup()
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
vma_lookup() will walk the vma tree once and not continue to look for the next vma. Since the exact vma is checked below, this is a more optimal way of searching.
--- mm/khugepaged.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/khugepaged.c +1 -1
@@ -1435,7 +1435,7 @@ static void collapse_and_free_pmd(struct mm_struct *mm, struct vm_area_struct *vvoid collapse_pte_mapped_thp (struct mm_struct *mm,unsigned long addr) {unsigned long haddr = addr &HPAGE_PMD_MASK ; -struct vm_area_struct *vma =find_vma (mm, haddr); +struct vm_area_struct *vma =vma_lookup (mm, haddr);struct page *hpage;pte_t *start_pte, *pte;pmd_t *pmd;
Signature · 1 line
2.34.1
PATCH v7 24/70 mm/mmap: Change do_brk_flags() to expand existing VMA and add do_brk_munmap()
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Avoid allocating a new VMA when it a vma modification can occur. When a brk() can expand or contract a VMA, then the single store operation will only modify one index of the maple tree instead of causing a node to split or coalesce. This avoids unnecessary allocations/frees of maple tree nodes and VMAs.
Move some limit & flag verifications out of the do_brk_flags() function to use only relevant checks in the code path of bkr() and vm_brk_flags().
Set the vma to check if it can expand in vm_brk_flags() if extra criteria are met.
Drop userfaultfd from do_brk_flags() path and only use it in vm_brk_flags() path since that is the only place a munmap will happen.
--- mm/mmap.c | 283 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 227 insertions(+), 56 deletions(-)
mm/mmap.c +227 -56
@@ -189,17 +189,40 @@ static struct vm_area_struct *remove_vma(struct vm_area_struct *vma)return next; } -static int do_brk_flags (unsigned long addr,unsigned long request,unsigned long flags, -struct list_head *uf); +/* +* check_brk_limits() - Use platform specific check of range & verify mlock +* limits. +* @addr: The address to check +* @len: The size of increase. +* +* Return: 0 on success. +*/ +static int check_brk_limits (unsigned long addr,unsigned long len) +{ +unsigned long mapped_addr; + + mapped_addr =get_unmapped_area (NULL , addr, len,0 ,MAP_FIXED ); +if (IS_ERR_VALUE (mapped_addr)) +return mapped_addr; + +return mlock_future_check (current->mm, current->mm->def_flags, len); +} +static int do_brk_munmap (struct ma_state *mas,struct vm_area_struct *vma, +unsigned long newbrk,unsigned long oldbrk, +struct list_head *uf); +static int do_brk_flags (struct ma_state *mas,struct vm_area_struct *brkvma, +unsigned long addr,unsigned long request, +unsigned long flags); SYSCALL_DEFINE1(brk, unsigned long, brk) {unsigned long newbrk, oldbrk, origbrk;struct mm_struct *mm = current->mm; -struct vm_area_struct *next; +struct vm_area_struct *brkvma, *next =NULL ;unsigned long min_brk;bool populate;bool downgraded = false;LIST_HEAD (uf); +MA_STATE (mas, &mm->mm_mt,0 ,0 );if (mmap_write_lock_killable (mm))return -EINTR ;
@@ -241,35 +264,52 @@ SYSCALL_DEFINE1(brk, unsigned long, brk)/* * Always allow shrinking brk. -* __do_munmap() may downgrade mmap_lock to read. +* do_brk_munmap() may downgrade mmap_lock to read. */ if (brk <= mm->brk) {int ret; +/* Search one past newbrk */ +mas_set (&mas, newbrk); + brkvma =mas_find (&mas, oldbrk); +BUG_ON (brkvma ==NULL ); +if (brkvma->vm_start >= oldbrk) + goto out;/* mapping intersects with an existing non-brk vma. */ /* -* mm->brk must to be protected by write mmap_lock so update it -* before downgrading mmap_lock. When __do_munmap() fails, -* mm->brk will be restored from origbrk. +* mm->brk must be protected by write mmap_lock. +* do_brk_munmap() may downgrade the lock, so update it +* before calling do_brk_munmap(). */ mm->brk = brk; - ret =__do_munmap (mm, newbrk, oldbrk-newbrk, &uf, true); -if (ret <0 ) { - mm->brk = origbrk; - goto out; - }else if (ret ==1 ) { + mas.last = oldbrk -1 ; + ret =do_brk_munmap (&mas, brkvma, newbrk, oldbrk, &uf); +if (ret ==1 ) { downgraded = true; - } - goto success; + goto success; + }else if (!ret) + goto success; + + mm->brk = origbrk; + goto out; } -/* Check against existing mmap mappings. */ - next =find_vma (mm, oldbrk); +if (check_brk_limits (oldbrk, newbrk - oldbrk)) + goto out; + +/* +* Only check if the next VMA is within the stack_guard_gap of the +* expansion area +*/ +mas_set (&mas, oldbrk); + next =mas_find (&mas, newbrk -1 +PAGE_SIZE + stack_guard_gap);if (next && newbrk +PAGE_SIZE >vm_start_gap (next)) goto out; + brkvma =mas_prev (&mas, mm->start_brk);/* Ok, looks good - let it rip. */ -if (do_brk_flags (oldbrk, newbrk-oldbrk,0 , &uf) <0 ) +if (do_brk_flags (&mas, brkvma, oldbrk, newbrk - oldbrk,0 ) <0 ) goto out; + mm->brk = brk; success:
@@ -2706,38 +2746,115 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size, }/* -* this is really a simplified "do_mmap". it only handles -* anonymous maps. eventually we may be able to do some -* brk-specific accounting here. +* brk_munmap() - Unmap a parital vma. +* @mas: The maple tree state. +* @vma: The vma to be modified +* @newbrk: the start of the address to unmap +* @oldbrk: The end of the address to unmap +* @uf: The userfaultfd list_head +* +* Returns: 1 on success. +* unmaps a partial VMA mapping. Does not handle alignment, downgrades lock if +* possible. */ -static int do_brk_flags (unsigned long addr,unsigned long len, -unsigned long flags,struct list_head *uf) +static int do_brk_munmap (struct ma_state *mas,struct vm_area_struct *vma, +unsigned long newbrk,unsigned long oldbrk, +struct list_head *uf) { -struct mm_struct *mm = current->mm; -struct vm_area_struct *vma, *prev; -pgoff_t pgoff = addr >>PAGE_SHIFT ; -int error; -unsigned long mapped_addr; -validate_mm_mt (mm); +struct mm_struct *mm = vma->vm_mm; +struct vm_area_struct unmap; +unsigned long unmap_pages; +int ret =1 ; + +arch_unmap (mm, newbrk, oldbrk); + +if (likely ((vma->vm_end < oldbrk) || + ((vma->vm_start == newbrk) && (vma->vm_end == oldbrk)))) { +/* remove entire mapping(s) */ +mas_set (mas, newbrk); +if (vma->vm_start != newbrk) +mas_reset (mas);/* cause a re-walk for the first overlap. */ + ret =__do_munmap (mm, newbrk, oldbrk - newbrk, uf, true); + goto munmap_full_vma; + } + +vma_init (&unmap, mm); + unmap.vm_start = newbrk; + unmap.vm_end = oldbrk; + ret =userfaultfd_unmap_prep (&unmap, newbrk, oldbrk, uf); +if (ret) +return ret; + ret =1 ; -/* Until we need other flags, refuse anything except VM_EXEC. */ -if ((flags & (~VM_EXEC )) !=0 ) -return -EINVAL ; - flags |=VM_DATA_DEFAULT_FLAGS |VM_ACCOUNT | mm->def_flags; +/* Change the oldbrk of vma to the newbrk of the munmap area */ +vma_adjust_trans_huge (vma, vma->vm_start, newbrk,0 ); +if (vma->anon_vma) { +anon_vma_lock_write (vma->anon_vma); +anon_vma_interval_tree_pre_update_vma (vma); + } - mapped_addr =get_unmapped_area (NULL , addr, len,0 ,MAP_FIXED ); -if (IS_ERR_VALUE (mapped_addr)) -return mapped_addr; + vma->vm_end = newbrk; +if (vma_mas_remove (&unmap, mas)) + goto mas_store_fail; - error =mlock_future_check (mm, mm->def_flags, len); -if (error) -return error; +vmacache_invalidate (vma->vm_mm); +if (vma->anon_vma) { +anon_vma_interval_tree_post_update_vma (vma); +anon_vma_unlock_write (vma->anon_vma); + } -/* Clear old maps, set up prev and uf */ -if (munmap_vma_range (mm, addr, len, &prev, uf)) -return -ENOMEM ; + unmap_pages =vma_pages (&unmap); +if (vma->vm_flags &VM_LOCKED ) { + mm->locked_vm -= unmap_pages; +munlock_vma_pages_range (&unmap, newbrk, oldbrk); + } + +mmap_write_downgrade (mm); +unmap_region (mm, &unmap, vma, newbrk, oldbrk); +/* Statistics */ +vm_stat_account (mm, vma->vm_flags, -unmap_pages); +if (vma->vm_flags &VM_ACCOUNT ) +vm_unacct_memory (unmap_pages); -/* Check against address space limits *after* clearing old maps... */ +munmap_full_vma: +validate_mm_mt (mm); +return ret; + +mas_store_fail: + vma->vm_end = oldbrk; +if (vma->anon_vma) { +anon_vma_interval_tree_post_update_vma (vma); +anon_vma_unlock_write (vma->anon_vma); + } +return -ENOMEM ; +} + +/* +* do_brk_flags() - Increase the brk vma if the flags match. +* @mas: The maple tree state. +* @addr: The start address +* @len: The length of the increase +* @vma: The vma, +* @flags: The VMA Flags +* +* Extend the brk VMA from addr to addr + len. If the VMA is NULL or the flags +* do not match then create a new anonymous VMA. Eventually we may be able to +* do some brk-specific accounting here. +*/ +static int do_brk_flags (struct ma_state *mas,struct vm_area_struct *vma, +unsigned long addr,unsigned long len, +unsigned long flags) +{ +struct mm_struct *mm = current->mm; +struct vm_area_struct *prev =NULL ; +validate_mm_mt (mm); + + +/* +* Check against address space limits by the changed size +* Note: This happens *after* clearing old mappings in some code paths. +*/ + flags |=VM_DATA_DEFAULT_FLAGS |VM_ACCOUNT | mm->def_flags;if (!may_expand_vm (mm, flags, len >>PAGE_SHIFT ))return -ENOMEM ;
@@ -2747,28 +2864,51 @@ static int do_brk_flags(unsigned long addr, unsigned long len,if (security_vm_enough_memory_mm (mm, len >>PAGE_SHIFT ))return -ENOMEM ; -/* Can we just expand an old private anonymous mapping? */ - vma =vma_merge (mm, prev, addr, addr + len, flags, -NULL ,NULL , pgoff,NULL ,NULL_VM_UFFD_CTX ,NULL ); -if (vma) - goto out; -/* -* create a vma struct for an anonymous mapping +* Expand the existing vma if possible; Note that singular lists do not +* occur after forking, so the expand will only happen on new VMAs. */ - vma =vm_area_alloc (mm); -if (!vma) { -vm_unacct_memory (len >>PAGE_SHIFT ); -return -ENOMEM ; +if (vma && + (!vma->anon_vma ||list_is_singular (&vma->anon_vma_chain)) && + ((vma->vm_flags & ~VM_SOFTDIRTY ) == flags)) { + mas->index = vma->vm_start; + mas->last = addr + len -1 ; +vma_adjust_trans_huge (vma, addr, addr + len,0 ); +if (vma->anon_vma) { +anon_vma_lock_write (vma->anon_vma); +anon_vma_interval_tree_pre_update_vma (vma); + } + vma->vm_end = addr + len; + vma->vm_flags |=VM_SOFTDIRTY ; +mas_store_gfp (mas, vma,GFP_KERNEL ); + +if (vma->anon_vma) { +anon_vma_interval_tree_post_update_vma (vma); +anon_vma_unlock_write (vma->anon_vma); + } +khugepaged_enter_vma_merge (vma, flags); + goto out; } + prev = vma; + +/* create a vma struct for an anonymous mapping */ + vma =vm_area_alloc (mm); +if (!vma) + goto vma_alloc_fail;vma_set_anonymous (vma); vma->vm_start = addr; vma->vm_end = addr + len; - vma->vm_pgoff = pgoff; + vma->vm_pgoff = addr >>PAGE_SHIFT ; vma->vm_flags = flags; vma->vm_page_prot =vm_get_page_prot (flags); -vma_link (mm, vma, prev); +vma_mas_store (vma, mas); + +if (!prev) + prev =mas_prev (mas,0 ); + +__vma_link_list (mm, vma, prev); + mm->map_count++; out:perf_event_mmap (vma); mm->total_vm += len >>PAGE_SHIFT ;
@@ -2778,15 +2918,21 @@ static int do_brk_flags(unsigned long addr, unsigned long len, vma->vm_flags |=VM_SOFTDIRTY ;validate_mm_mt (mm);return 0 ; + +vma_alloc_fail: +vm_unacct_memory (len >>PAGE_SHIFT ); +return -ENOMEM ; }int vm_brk_flags (unsigned long addr,unsigned long request,unsigned long flags) {struct mm_struct *mm = current->mm; +struct vm_area_struct *vma =NULL ;unsigned long len;int ret;bool populate;LIST_HEAD (uf); +MA_STATE (mas, &mm->mm_mt, addr, addr); len =PAGE_ALIGN (request);if (len < request)
@@ -2797,13 +2943,38 @@ int vm_brk_flags(unsigned long addr, unsigned long request, unsigned long flags)if (mmap_write_lock_killable (mm))return -EINTR ; - ret =do_brk_flags (addr, len, flags, &uf); +/* Until we need other flags, refuse anything except VM_EXEC. */ +if ((flags & (~VM_EXEC )) !=0 ) +return -EINVAL ; + + ret =check_brk_limits (addr, len); +if (ret) + goto limits_failed; + +if (find_vma_intersection (mm, addr, addr + len)) + ret =do_munmap (mm, addr, len, &uf); + +if (ret) + goto munmap_failed; + + vma =mas_prev (&mas,0 ); +if (!vma || vma->vm_end != addr ||vma_policy (vma) || + !can_vma_merge_after (vma, flags,NULL ,NULL , + addr >>PAGE_SHIFT ,NULL_VM_UFFD_CTX ,NULL )) + vma =NULL ; + + ret =do_brk_flags (&mas, vma, addr, len, flags); populate = ((mm->def_flags &VM_LOCKED ) !=0 );mmap_write_unlock (mm);userfaultfd_unmap_complete (mm, &uf);if (populate && !ret)mm_populate (addr, len);return ret; + +munmap_failed: +limits_failed: +mmap_write_unlock (mm); +return ret; }EXPORT_SYMBOL (vm_brk_flags);
Signature · 1 line
2.34.1
PATCH v7 25/70 mm: Use maple tree operations for find_vma_intersection()
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Move find_vma_intersection() to mmap.c and change implementation to maple tree.
When searching for a vma within a range, it is easier to use the maple tree interface.
Exported find_vma_intersection() for kvm module.
--- include/linux/mm.h | 22 ++++------------------ mm/mmap.c | 29 +++++++++++++++++++++++++++++ mm/nommu.c | 11 +++++++++++ 3 files changed, 44 insertions(+), 18 deletions(-)
include/linux/mm.h +4 -18
@@ -2783,26 +2783,12 @@ extern struct vm_area_struct * find_vma(struct mm_struct * mm, unsigned long addextern struct vm_area_struct *find_vma_prev (struct mm_struct * mm,unsigned long addr,struct vm_area_struct **pprev); -/** -* find_vma_intersection() - Look up the first VMA which intersects the interval -* @mm: The process address space. -* @start_addr: The inclusive start user address. -* @end_addr: The exclusive end user address. -* -* Returns: The first VMA within the provided range, %NULL otherwise. Assumes -* start_addr < end_addr. +/* +* Look up the first VMA which intersects the interval [start_addr, end_addr) +* NULL if none. Assume start_addr < end_addr. */ -static inline struct vm_area_struct *find_vma_intersection (struct mm_struct *mm, -unsigned long start_addr, -unsigned long end_addr) -{ -struct vm_area_struct *vma =find_vma (mm, start_addr); - -if (vma && end_addr <= vma->vm_start) - vma =NULL ; -return vma; -} +unsigned long start_addr,unsigned long end_addr);/** * vma_lookup() - Find a VMA at a specific address
mm/mmap.c +29 -0
@@ -2028,6 +2028,35 @@ get_unmapped_area(struct file *file, unsigned long addr, unsigned long len,EXPORT_SYMBOL (get_unmapped_area); +/** +* find_vma_intersection() - Look up the first VMA which intersects the interval +* @mm: The process address space. +* @start_addr: The inclusive start user address. +* @end_addr: The exclusive end user address. +* +* Returns: The first VMA within the provided range, %NULL otherwise. Assumes +* start_addr < end_addr. +*/ +struct vm_area_struct *find_vma_intersection (struct mm_struct *mm, +unsigned long start_addr, +unsigned long end_addr) +{ +struct vm_area_struct *vma; +unsigned long index = start_addr; + +mmap_assert_locked (mm); +/* Check the cache first. */ + vma =vmacache_find (mm, start_addr); +if (likely (vma)) +return vma; + + vma =mt_find (&mm->mm_mt, &index, end_addr -1 ); +if (vma) +vmacache_update (start_addr, vma); +return vma; +} +EXPORT_SYMBOL (find_vma_intersection); +/** * find_vma() - Find the VMA for a given address, or the next vma. * @mm: The mm_struct to check
mm/nommu.c +11 -0
@@ -627,6 +627,17 @@ static void delete_vma(struct mm_struct *mm, struct vm_area_struct *vma)vm_area_free (vma); } +struct vm_area_struct *find_vma_intersection (struct mm_struct *mm, +unsigned long start_addr, +unsigned long end_addr) +{ +unsigned long index = start_addr; + +mmap_assert_locked (mm); +return mt_find (&mm->mm_mt, &index, end_addr -1 ); +} +EXPORT_SYMBOL (find_vma_intersection); +/* * look up the first VMA in which addr resides, NULL if none * - should be called with mm->mmap_lock at least held readlocked
Signature · 1 line
2.34.1
PATCH v7 26/70 mm/mmap: Use advanced maple tree API for mmap_region()
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Changing mmap_region() to use the maple tree state and the advanced maple tree interface allows for a lot less tree walking.
This change removes the last caller of munmap_vma_range(), so drop this unused function.
Add vma_expand() to expand a VMA if possible by doing the necessary hugepage check, uprobe_munmap of files, dcache flush, modifications then undoing the detaches, etc.
--- mm/mmap.c | 234 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 187 insertions(+), 47 deletions(-)
mm/mmap.c +187 -47
@@ -511,28 +511,6 @@ static inline struct vm_area_struct *__vma_next(struct mm_struct *mm,return vma->vm_next; } -/* -* munmap_vma_range() - munmap VMAs that overlap a range. -* @mm: The mm struct -* @start: The start of the range. -* @len: The length of the range. -* @pprev: pointer to the pointer that will be set to previous vm_area_struct -* -* Find all the vm_area_struct that overlap from @start to -* @end and munmap them. Set @pprev to the previous vm_area_struct. -* -* Returns: -ENOMEM on munmap failure or 0 on success. -*/ -static inline int -munmap_vma_range (struct mm_struct *mm,unsigned long start,unsigned long len, -struct vm_area_struct **pprev,struct list_head *uf) -{ -while (range_has_overlap (mm, start, start + len, pprev)) -if (do_munmap (mm, start, len, uf)) -return -ENOMEM ; -return 0 ; -} -static unsigned long count_vma_pages_range (struct mm_struct *mm,unsigned long addr,unsigned long end) {
@@ -634,6 +612,117 @@ static void __insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma, mm->map_count++; } +/* +* vma_expand - Expand an existing VMA +* +* @mas: The maple state +* @vma: The vma to expand +* @start: The start of the vma +* @end: The exclusive end of the vma +* @pgoff: The page offset of vma +* @next: The current of next vma. +* +* Expand @vma to @start and @end. Can expand off the start and end. Will +* expand over @next if it's different from @vma and @end == @next->vm_end. +* Checking if the @vma can expand and merge with @next needs to be handled by +* the caller. +* +* Returns: 0 on success +*/ +inline int vma_expand (struct ma_state *mas,struct vm_area_struct *vma, +unsigned long start,unsigned long end,pgoff_t pgoff, +struct vm_area_struct *next) +{ +struct mm_struct *mm = vma->vm_mm; +struct address_space *mapping =NULL ; +struct rb_root_cached *root =NULL ; +struct anon_vma *anon_vma = vma->anon_vma; +struct file *file = vma->vm_file; +bool remove_next = false; + +if (next && (vma != next) && (end == next->vm_end)) { + remove_next = true; +if (next->anon_vma && !vma->anon_vma) { +int error; + + vma->anon_vma = next->anon_vma; + error =anon_vma_clone (vma, next); +if (error) +return error; + } + } + +/* Not merging but overwriting any part of next is not handled. */ +VM_BUG_ON (!remove_next && next != vma && end > next->vm_start); +/* Only handles expanding */ +VM_BUG_ON (vma->vm_start < start || vma->vm_end > end); + +vma_adjust_trans_huge (vma, start, end,0 ); + +if (file) { + mapping = file->f_mapping; + root = &mapping->i_mmap; +uprobe_munmap (vma, vma->vm_start, vma->vm_end); +i_mmap_lock_write (mapping); +flush_dcache_mmap_lock (mapping); +vma_interval_tree_remove (vma, root); + }else if (anon_vma) { +anon_vma_lock_write (anon_vma); +anon_vma_interval_tree_pre_update_vma (vma); + } + + vma->vm_start = start; + vma->vm_end = end; + vma->vm_pgoff = pgoff; +/* Note: mas must be pointing to the expanding VMA */ +vma_mas_store (vma, mas); + +if (file) { +vma_interval_tree_insert (vma, root); +flush_dcache_mmap_unlock (mapping); + } + +/* Expanding over the next vma */ +if (remove_next) { +/* Remove from mm linked list - also updates highest_vm_end */ +__vma_unlink_list (mm, next); + +/* Kill the cache */ +vmacache_invalidate (mm); + +if (file) +__remove_shared_vm_struct (next, file, mapping); + + }else if (!next) { + mm->highest_vm_end =vm_end_gap (vma); + } + +if (anon_vma) { +anon_vma_interval_tree_post_update_vma (vma); +anon_vma_unlock_write (anon_vma); + } + +if (file) { +i_mmap_unlock_write (mapping); +uprobe_mmap (vma); + } + +if (remove_next) { +if (file) { +uprobe_munmap (next, next->vm_start, next->vm_end); +fput (file); + } +if (next->anon_vma) +anon_vma_merge (vma, next); + mm->map_count--; +mpol_put (vma_policy (next)); +vm_area_free (next); + } + +validate_mm (mm); +return 0 ; +} +/* * We cannot adjust vm_start, vm_end, vm_pgoff fields of a vma that * is already present in an i_mmap tree without adjusting the tree.
@@ -1623,9 +1712,15 @@ unsigned long mmap_region(struct file *file, unsigned long addr, struct list_head *uf) {struct mm_struct *mm = current->mm; -struct vm_area_struct *vma, *prev, *merge; -int error; +struct vm_area_struct *vma =NULL ; +struct vm_area_struct *prev, *next; +pgoff_t pglen = len >>PAGE_SHIFT ;unsigned long charged =0 ; +unsigned long end = addr + len; +unsigned long merge_start = addr, merge_end = end; +pgoff_t vm_pgoff; +int error; +MA_STATE (mas, &mm->mm_mt, addr, end -1 );/* Check against address space limit. */ if (!may_expand_vm (mm, vm_flags, len >>PAGE_SHIFT )) {
@@ -1635,16 +1730,17 @@ unsigned long mmap_region(struct file *file, unsigned long addr,* MAP_FIXED may remove pages of mappings that intersects with * requested mapping. Account for the pages it would unmap. */ - nr_pages =count_vma_pages_range (mm, addr, addr + len); + nr_pages =count_vma_pages_range (mm, addr, end);if (!may_expand_vm (mm, vm_flags, (len >>PAGE_SHIFT ) - nr_pages))return -ENOMEM ; } -/* Clear old maps, set up prev and uf */ -if (munmap_vma_range (mm, addr, len, &prev, uf)) +/* Unmap any existing mapping in the area */ +if (do_munmap (mm, addr, len, uf))return -ENOMEM ; +/* * Private writable mapping: check memory availability */
@@ -1655,14 +1751,43 @@ unsigned long mmap_region(struct file *file, unsigned long addr, vm_flags |=VM_ACCOUNT ; } -/* -* Can we just expand an old mapping? -*/ - vma =vma_merge (mm, prev, addr, addr + len, vm_flags, -NULL , file, pgoff,NULL ,NULL_VM_UFFD_CTX ,NULL ); -if (vma) - goto out; + next =mas_next (&mas,ULONG_MAX ); + prev =mas_prev (&mas,0 ); +if (vm_flags &VM_SPECIAL ) + goto cannot_expand; + +/* Attempt to expand an old mapping */ +/* Check next */ +if (next && next->vm_start == end && !vma_policy (next) && +can_vma_merge_before (next, vm_flags,NULL , file, pgoff+pglen, +NULL_VM_UFFD_CTX ,NULL )) { + merge_end = next->vm_end; + vma = next; + vm_pgoff = next->vm_pgoff - pglen; + } + +/* Check prev */ +if (prev && prev->vm_end == addr && !vma_policy (prev) && + (vma ?can_vma_merge_after (prev, vm_flags, vma->anon_vma, file, + pgoff, vma->vm_userfaultfd_ctx,NULL ) : +can_vma_merge_after (prev, vm_flags,NULL , file, pgoff, +NULL_VM_UFFD_CTX ,NULL ))) { + merge_start = prev->vm_start; + vma = prev; + vm_pgoff = prev->vm_pgoff; + } + +/* Actually expand, if possible */ +if (vma && + !vma_expand (&mas, vma, merge_start, merge_end, vm_pgoff, next)) { +khugepaged_enter_vma_merge (vma, vm_flags); + goto expanded; + } + + mas.index = addr; + mas.last = end -1 ; +cannot_expand:/* * Determine the object being mapped and call the appropriate * specific mapper. the address has already been validated, but
@@ -1675,7 +1800,7 @@ unsigned long mmap_region(struct file *file, unsigned long addr, } vma->vm_start = addr; - vma->vm_end = addr + len; + vma->vm_end = end; vma->vm_flags = vm_flags; vma->vm_page_prot =vm_get_page_prot (vm_flags); vma->vm_pgoff = pgoff;
@@ -1696,28 +1821,30 @@ unsigned long mmap_region(struct file *file, unsigned long addr,* * Answer: Yes, several device drivers can do it in their * f_op->mmap method. -DaveM -* Bug: If addr is changed, prev, rb_link, rb_parent should -* be updated for vma_link() */ WARN_ON_ONCE (addr != vma->vm_start); addr = vma->vm_start; +mas_reset (&mas);/* If vm_flags changed after call_mmap(), we should try merge vma again * as we may succeed this time. */ if (unlikely (vm_flags != vma->vm_flags && prev)) { - merge =vma_merge (mm, prev, vma->vm_start, vma->vm_end, vma->vm_flags, + next =vma_merge (mm, prev, vma->vm_start, vma->vm_end, vma->vm_flags,NULL , vma->vm_file, vma->vm_pgoff,NULL ,NULL_VM_UFFD_CTX ,NULL ); -if (merge) { +if (next) {/* ->mmap() can change vma->vm_file and fput the original file. So * fput the vma->vm_file here or we would add an extra fput for file * and cause general protection fault ultimately. */ fput (vma->vm_file);vm_area_free (vma); - vma = merge; -/* Update vm_flags to pick up the change. */ + vma = prev; +/* Update vm_flags and possible addr to pick up the change. We don't +* warn here if addr changed as the vma is not linked by vma_link(). +*/ + addr = vma->vm_start; vm_flags = vma->vm_flags; goto unmap_writable; }
@@ -1741,13 +1868,28 @@ unsigned long mmap_region(struct file *file, unsigned long addr, goto free_vma; } -vma_link (mm, vma, prev); +if (vma->vm_file) +i_mmap_lock_write (vma->vm_file->f_mapping); + +vma_mas_store (vma, &mas); +__vma_link_list (mm, vma, prev); + mm->map_count++; +if (vma->vm_file) { +if (vma->vm_flags &VM_SHARED ) +mapping_allow_writable (vma->vm_file->f_mapping); + +flush_dcache_mmap_lock (vma->vm_file->f_mapping); +vma_interval_tree_insert (vma, &vma->vm_file->f_mapping->i_mmap); +flush_dcache_mmap_unlock (vma->vm_file->f_mapping); +i_mmap_unlock_write (vma->vm_file->f_mapping); + } +/* Once vma denies write, undo our temporary denial count */ unmap_writable:if (file && vm_flags &VM_SHARED )mapping_unmap_writable (file->f_mapping); file = vma->vm_file; -out: +expanded:perf_event_mmap (vma);vm_stat_account (mm, vm_flags, len >>PAGE_SHIFT );
@@ -1774,6 +1916,7 @@ unsigned long mmap_region(struct file *file, unsigned long addr,vma_set_page_prot (vma); +validate_mm (mm);return addr; unmap_and_free_vma:
@@ -1790,6 +1933,7 @@ unsigned long mmap_region(struct file *file, unsigned long addr, unacct_error:if (charged)vm_unacct_memory (charged); +validate_mm (mm);return error; }
@@ -2584,10 +2728,6 @@ int __do_munmap(struct mm_struct *mm, unsigned long start, size_t len, prev = vma->vm_prev;/* we have start < vma->vm_end */ -/* if it doesn't overlap, we have nothing.. */ -if (vma->vm_start >= end) -return 0 ; -/* * If we need to split any vma, do it now to save pain later. *
Signature · 1 line
2.34.1
Andrew Morton
maintainerRe: [PATCH v7 26/70] mm/mmap: Use advanced maple tree API for mmap_region()
Quoted 5 lines · On Mon, 4 Apr 2022 14:35:43 +0000 Liam Howlett <[email protected]> wrote:
From: "Liam R. Howlett" <[email protected]>
Changing
mmap_region()to use the maple tree state and the advanced maple tree interface allows for a lot less tree walking.
Quoted 7 lines
This change removes the last caller of
munmap_vma_range(), so drop this unused function.Add
vma_expand()to expand a VMA if possible by doing the necessary hugepage check,uprobe_munmapof files, dcache flush, modifications then undoing the detaches, etc.
Merging this with Yang Shi's "mm: mmap: register suitable readonly file vmas for khugepaged"
(https://lkml.kernel.org/r/[email protected])
Quoted 17 lines
...
mm/mmap.c +10
-1@@ -1741,13 +1868,28 @@ unsigned long mmap_region(struct file *file, unsigned long addr, goto free_vma; } -vma_link (mm, vma, prev); +if (vma->vm_file) +i_mmap_lock_write (vma->vm_file->f_mapping); + +vma_mas_store (vma, &mas); +__vma_link_list (mm, vma, prev); + mm->map_count++; +if (vma->vm_file) { +if (vma->vm_flags &VM_SHARED ) +mapping_allow_writable (vma->vm_file->f_mapping); +
mm/mmap.c unsigned long mmap_region(struct file *file, unsigned long addr, · line 1890
Quoted 10 lines
mm/mmap.c +6
-0+flush_dcache_mmap_lock (vma->vm_file->f_mapping); +vma_interval_tree_insert (vma, &vma->vm_file->f_mapping->i_mmap); +flush_dcache_mmap_unlock (vma->vm_file->f_mapping); +i_mmap_unlock_write (vma->vm_file->f_mapping); + } +/* Once vma denies write, undo our temporary denial count */ unmap_writable:if (file && vm_flags &VM_SHARED )mapping_unmap_writable (file->f_mapping);
I'm unsure whether this hunk should be inside or outside the call to the cheerfully undocumented khugepaged_enter_vma()?
Code snippet as I presently have it:
if (vma->vm_file)
i_mmap_lock_write(vma->vm_file->f_mapping);
vma_mas_store(vma, &mas);
mm->map_count++;
if (vma->vm_file) {
if (vma->vm_flags & VM_SHARED)
mapping_allow_writable(vma->vm_file->f_mapping);
flush_dcache_mmap_lock(vma->vm_file->f_mapping);
vma_interval_tree_insert(vma, &vma->vm_file->f_mapping->i_mmap);
flush_dcache_mmap_unlock(vma->vm_file->f_mapping);
i_mmap_unlock_write(vma->vm_file->f_mapping);
}
/*
* vma_merge() calls khugepaged_enter_vma() either, the below
* call covers the non-merge case.
*/
khugepaged_enter_vma(vma, vma->vm_flags);
/* Once vma denies write, undo our temporary denial count */
unmap_writable:
if (file && vm_flags & VM_SHARED)
mapping_unmap_writable(file->f_mapping);btw, "vma_merge() calls khugepaged_enter_vma() either" isn't understandable. Should that be "also"?
Re: [PATCH v7 26/70] mm/mmap: Use advanced maple tree API for mmap_region()
Quoted 41 lines · Andrew Morton
Quoted 5 lines · On Mon, 4 Apr 2022 14:35:43 +0000 Liam Howlett <[email protected]> wrote:
From: "Liam R. Howlett" <[email protected]>
Changing
mmap_region()to use the maple tree state and the advanced maple tree interface allows for a lot less tree walking.Quoted 7 lines
This change removes the last caller of
munmap_vma_range(), so drop this unused function.Add
vma_expand()to expand a VMA if possible by doing the necessary hugepage check,uprobe_munmapof files, dcache flush, modifications then undoing the detaches, etc.Merging this with Yang Shi's "mm: mmap: register suitable readonly file vmas for khugepaged"
(https://lkml.kernel.org/r/[email protected])Quoted 22 lines
...
mm/mmap.c +15
-1@@ -1741,13 +1868,28 @@ unsigned long mmap_region(struct file *file, unsigned long addr, goto free_vma; } -vma_link (mm, vma, prev); +if (vma->vm_file) +i_mmap_lock_write (vma->vm_file->f_mapping); + +vma_mas_store (vma, &mas); +__vma_link_list (mm, vma, prev); + mm->map_count++; +if (vma->vm_file) { +if (vma->vm_flags &VM_SHARED ) +mapping_allow_writable (vma->vm_file->f_mapping); + +flush_dcache_mmap_lock (vma->vm_file->f_mapping); +vma_interval_tree_insert (vma, &vma->vm_file->f_mapping->i_mmap); +flush_dcache_mmap_unlock (vma->vm_file->f_mapping); +i_mmap_unlock_write (vma->vm_file->f_mapping); + }
Quoted 8 lines
mm/mmap.c unsigned long mmap_region(struct file *file, unsigned long addr, · line 1890
Quoted 5 lines
mm/mmap.c +1
-0+/* Once vma denies write, undo our temporary denial count */ unmap_writable:if (file && vm_flags &VM_SHARED )mapping_unmap_writable (file->f_mapping);I'm unsure whether this hunk should be inside or outside the call to the cheerfully undocumented
khugepaged_enter_vma()?
Below. I've replaced the vma_link() with a write to the tree and inlined the handling of vm_file. At least, it will keep with what Yang Shi wrote in the patch you are merging.
Quoted 30 lines
Code snippet as I presently have it:
if (vma->vm_file) i_mmap_lock_write(vma->vm_file->f_mapping); vma_mas_store(vma, &mas); mm->map_count++; if (vma->vm_file) { if (vma->vm_flags & VM_SHARED) mapping_allow_writable(vma->vm_file->f_mapping); flush_dcache_mmap_lock(vma->vm_file->f_mapping); vma_interval_tree_insert(vma, &vma->vm_file->f_mapping->i_mmap); flush_dcache_mmap_unlock(vma->vm_file->f_mapping); i_mmap_unlock_write(vma->vm_file->f_mapping); } /* * vma_merge() calls khugepaged_enter_vma() either, the below * call covers the non-merge case. */ khugepaged_enter_vma(vma, vma->vm_flags); /* Once vma denies write, undo our temporary denial count */ unmap_writable: if (file && vm_flags & VM_SHARED) mapping_unmap_writable(file->f_mapping);
Quoted 2 lines
btw, "
vma_merge()callskhugepaged_enter_vma()either" isn't understandable. Should that be "also"?
It looks like it should be "also" to me.. Yang Shi?
PATCH v7 27/70 mm: Remove vmacache
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
By using the maple tree and the maple tree state, the vmacache is no longer beneficial and is complicating the VMA code. Remove the vmacache to reduce the work in keeping it up to date and code complexity.
--- fs/exec.c | 3 - fs/proc/task_mmu.c | 1 - include/linux/mm_types.h | 1 - include/linux/mm_types_task.h | 12 ---- include/linux/sched.h | 1 - include/linux/vm_event_item.h | 4 -- include/linux/vmacache.h | 28 -------- include/linux/vmstat.h | 6 -- kernel/debug/debug_core.c | 12 ---- kernel/fork.c | 5 -- lib/Kconfig.debug | 8 --- mm/Makefile | 2 +- mm/debug.c | 4 +- mm/mmap.c | 32 +--------- mm/nommu.c | 37 ++--------- mm/vmacache.c | 117 ---------------------------------- mm/vmstat.c | 4 -- 17 files changed, 9 insertions(+), 268 deletions(-) delete mode 100644 include/linux/vmacache.h delete mode 100644 mm/vmacache.c
fs/exec.c +0 -3
@@ -28,7 +28,6 @@#include <linux/file.h> #include <linux/fdtable.h> #include <linux/mm.h> -#include <linux/vmacache.h> #include <linux/stat.h> #include <linux/fcntl.h> #include <linux/swap.h>
@@ -1023,8 +1022,6 @@ static int exec_mmap(struct mm_struct *mm)activate_mm (active_mm, mm);if (IS_ENABLED (CONFIG_ARCH_WANT_IRQS_OFF_ACTIVATE_MM ))local_irq_enable (); - tsk->mm->vmacache_seqnum =0 ; -vmacache_flush (tsk);task_unlock (tsk);if (old_mm) {mmap_read_unlock (old_mm);
fs/proc/task_mmu.c +0 -1
@@ -1,6 +1,5 @@// SPDX-License-Identifier: GPL-2.0 #include <linux/pagewalk.h> -#include <linux/vmacache.h> #include <linux/mm_inline.h> #include <linux/hugetlb.h> #include <linux/huge_mm.h>
include/linux/mm_types.h +0 -1
@@ -465,7 +465,6 @@ struct mm_struct {struct {struct vm_area_struct *mmap;/* list of VMAs */ struct maple_tree mm_mt; -u64 vmacache_seqnum;/* per-thread vmacache */ #ifdef CONFIG_MMU unsigned long (*get_unmapped_area) (struct file *filp, unsigned long addr, unsigned long len,
include/linux/mm_types_task.h +0 -12
@@ -24,18 +24,6 @@ IS_ENABLED(CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK))#define ALLOC_SPLIT_PTLOCKS (SPINLOCK_SIZE > BITS_PER_LONG/8) -/* -* The per task VMA cache array: -*/ -#define VMACACHE_BITS 2 -#define VMACACHE_SIZE (1U << VMACACHE_BITS) -#define VMACACHE_MASK (VMACACHE_SIZE - 1) - -struct vmacache { -u64 seqnum; -struct vm_area_struct *vmas[VMACACHE_SIZE ]; -}; -/* * When updating this, please also update struct resident_page_types[] in * kernel/fork.c
include/linux/sched.h +0 -1
@@ -861,7 +861,6 @@ struct task_struct {struct mm_struct *active_mm;/* Per-thread vma caching: */ -struct vmacache vmacache;#ifdef SPLIT_RSS_COUNTING struct task_rss_stat rss_stat;
include/linux/vm_event_item.h +0 -4
@@ -122,10 +122,6 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT, NR_TLB_LOCAL_FLUSH_ALL, NR_TLB_LOCAL_FLUSH_ONE,#endif /* CONFIG_DEBUG_TLBFLUSH */ -#ifdef CONFIG_DEBUG_VM_VMACACHE - VMACACHE_FIND_CALLS, - VMACACHE_FIND_HITS, -#endif #ifdef CONFIG_SWAP SWAP_RA , SWAP_RA_HIT,
include/linux/vmacache.h deleted +0 -28
@@ -1,28 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __LINUX_VMACACHE_H -#define __LINUX_VMACACHE_H - -#include <linux/sched.h> -#include <linux/mm.h> - -static inline void vmacache_flush (struct task_struct *tsk) -{ -memset (tsk->vmacache.vmas,0 ,sizeof (tsk->vmacache.vmas)); -} - -extern void vmacache_update (unsigned long addr,struct vm_area_struct *newvma); -extern struct vm_area_struct *vmacache_find (struct mm_struct *mm, -unsigned long addr); - -#ifndef CONFIG_MMU -extern struct vm_area_struct *vmacache_find_exact (struct mm_struct *mm, -unsigned long start, -unsigned long end); -#endif - -static inline void vmacache_invalidate (struct mm_struct *mm) -{ - mm->vmacache_seqnum++; -} - -#endif /* __LINUX_VMACACHE_H */
include/linux/vmstat.h +0 -6
@@ -125,12 +125,6 @@ static inline void vm_events_fold_cpu(int cpu)#define count_vm_tlb_events (x, y) do { (void)(y); } while (0)#endif -#ifdef CONFIG_DEBUG_VM_VMACACHE -#define count_vm_vmacache_event (x) count_vm_event(x) -#else -#define count_vm_vmacache_event (x) do {} while (0) -#endif -#define __count_zid_vm_events (item, zid, delta) \ __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta)
kernel/debug/debug_core.c +0 -12
@@ -50,7 +50,6 @@#include <linux/pid.h> #include <linux/smp.h> #include <linux/mm.h> -#include <linux/vmacache.h> #include <linux/rcupdate.h> #include <linux/irq.h>
@@ -282,17 +281,6 @@ static void kgdb_flush_swbreak_addr(unsigned long addr)if (!CACHE_FLUSH_IS_SAFE )return ; -if (current->mm) { -int i; - -for (i =0 ; i <VMACACHE_SIZE ; i++) { -if (!current->vmacache.vmas[i]) -continue ; -flush_cache_range (current->vmacache.vmas[i], - addr, addr +BREAK_INSTR_SIZE ); - } - } -/* Force flush instruction cache if it was outside the mm */ flush_icache_range (addr, addr +BREAK_INSTR_SIZE ); }
kernel/fork.c +0 -5
@@ -43,7 +43,6 @@#include <linux/fs.h> #include <linux/mm.h> #include <linux/mm_inline.h> -#include <linux/vmacache.h> #include <linux/nsproxy.h> #include <linux/capability.h> #include <linux/cpu.h>
@@ -1116,7 +1115,6 @@ static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p, mm->mmap =NULL ;mt_init_flags (&mm->mm_mt,MM_MT_FLAGS );mt_set_external_lock (&mm->mm_mt, &mm->mmap_lock); - mm->vmacache_seqnum =0 ;atomic_set (&mm->mm_users,1 );atomic_set (&mm->mm_count,1 );seqcount_init (&mm->write_protect_seq);
@@ -1572,9 +1570,6 @@ static int copy_mm(unsigned long clone_flags, struct task_struct *tsk)if (!oldmm)return 0 ; -/* initialize the new vmacache entries */ -vmacache_flush (tsk); -if (clone_flags &CLONE_VM ) {mmget (oldmm); mm = oldmm;
lib/Kconfig.debug +0 -8
@@ -837,14 +837,6 @@ config DEBUG_VM If unsure, say N. -config DEBUG_VM_VMACACHE - bool "Debug VMA caching" - depends on DEBUG_VM - help - Enable this to turn on VMA caching debug information. Doing so - can cause significant overhead, so only enable it in non-production - environments. - config DEBUG_VM_MAPLE_TREE bool "Debug VM maple trees" depends on DEBUG_VM
mm/Makefile +1 -1
@@ -52,7 +52,7 @@ obj-y := filemap.o mempool.o oom_kill.o fadvise.o \ readahead.o swap.o truncate.o vmscan.o shmem.o \ util.o mmzone.o vmstat.o backing-dev.o \ mm_init.o percpu.o slab_common.o \ - compaction.o vmacache.o \ + compaction.o \ interval_tree.o list_lru.o workingset.o \ debug.o gup.o mmap_lock.o $(mmu-y)
mm/debug.c +2 -2
@@ -155,7 +155,7 @@ EXPORT_SYMBOL(dump_vma);void dump_mm (const struct mm_struct *mm) { - pr_emerg("mm %px mmap %px seqnum %llu task_size %lu\n" + pr_emerg("mm %px mmap %px task_size %lu\n" #ifdef CONFIG_MMU "get_unmapped_area %px\n" #endif
@@ -183,7 +183,7 @@ void dump_mm(const struct mm_struct *mm)"tlb_flush_pending %d\n" "def_flags: %#lx(%pGv)\n" , - mm, mm->mmap, (long long ) mm->vmacache_seqnum, mm->task_size, + mm, mm->mmap, mm->task_size, #ifdef CONFIG_MMU mm->get_unmapped_area, #endif
mm/mmap.c +2 -30
@@ -14,7 +14,6 @@#include <linux/backing-dev.h> #include <linux/mm.h> #include <linux/mm_inline.h> -#include <linux/vmacache.h> #include <linux/shm.h> #include <linux/mman.h> #include <linux/pagemap.h>
@@ -687,9 +686,6 @@ inline int vma_expand(struct ma_state *mas, struct vm_area_struct *vma,/* Remove from mm linked list - also updates highest_vm_end */ __vma_unlink_list (mm, next); -/* Kill the cache */ -vmacache_invalidate (mm); -if (file)__remove_shared_vm_struct (next, file, mapping);
@@ -915,8 +911,6 @@ int __vma_adjust(struct vm_area_struct *vma, unsigned long start,if (remove_next) {__vma_unlink_list (mm, next); -/* Kill the cache */ -vmacache_invalidate (mm);if (file)__remove_shared_vm_struct (next, file, mapping); }else if (insert) {
@@ -2185,19 +2179,10 @@ struct vm_area_struct *find_vma_intersection(struct mm_struct *mm, unsigned long start_addr, unsigned long end_addr) { -struct vm_area_struct *vma;unsigned long index = start_addr;mmap_assert_locked (mm); -/* Check the cache first. */ - vma =vmacache_find (mm, start_addr); -if (likely (vma)) -return vma; - - vma =mt_find (&mm->mm_mt, &index, end_addr -1 ); -if (vma) -vmacache_update (start_addr, vma); -return vma; +return mt_find (&mm->mm_mt, &index, end_addr -1 ); }EXPORT_SYMBOL (find_vma_intersection);
@@ -2211,19 +2196,10 @@ EXPORT_SYMBOL(find_vma_intersection);*/ struct vm_area_struct *find_vma (struct mm_struct *mm,unsigned long addr) { -struct vm_area_struct *vma;unsigned long index = addr;mmap_assert_locked (mm); -/* Check the cache first. */ - vma =vmacache_find (mm, addr); -if (likely (vma)) -return vma; - - vma =mt_find (&mm->mm_mt, &index,ULONG_MAX ); -if (vma) -vmacache_update (addr, vma); -return vma; +return mt_find (&mm->mm_mt, &index,ULONG_MAX ); }EXPORT_SYMBOL (find_vma);
@@ -2605,9 +2581,6 @@ detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma, mm->highest_vm_end = prev ?vm_end_gap (prev) :0 ; tail_vma->vm_next =NULL ; -/* Kill the cache */ -vmacache_invalidate (mm); -/* * Do not downgrade mmap_lock if we are next to VM_GROWSDOWN or * VM_GROWSUP VMA. Such VMAs can change their size under
@@ -2966,7 +2939,6 @@ static int do_brk_munmap(struct ma_state *mas, struct vm_area_struct *vma,if (vma_mas_remove (&unmap, mas)) goto mas_store_fail; -vmacache_invalidate (vma->vm_mm);if (vma->anon_vma) {anon_vma_interval_tree_post_update_vma (vma);anon_vma_unlock_write (vma->anon_vma);
mm/nommu.c +4 -33
@@ -19,7 +19,6 @@#include <linux/export.h> #include <linux/mm.h> #include <linux/sched/mm.h> -#include <linux/vmacache.h> #include <linux/mman.h> #include <linux/swap.h> #include <linux/file.h>
@@ -583,23 +582,12 @@ static void add_vma_to_mm(struct mm_struct *mm, struct vm_area_struct *vma)*/ static void delete_vma_from_mm (struct vm_area_struct *vma) { -int i; -struct address_space *mapping; -struct mm_struct *mm = vma->vm_mm; -struct task_struct *curr = current;MA_STATE (mas, &vma->vm_mm->mm_mt,0 ,0 ); - mm->map_count--; -for (i =0 ; i <VMACACHE_SIZE ; i++) { -/* if the vma is cached, invalidate the entire cache */ -if (curr->vmacache.vmas[i] == vma) { -vmacache_invalidate (mm); -break ; - } - } - + vma->vm_mm->map_count--;/* remove the VMA from the mapping */ if (vma->vm_file) { +struct address_space *mapping; mapping = vma->vm_file->f_mapping;i_mmap_lock_write (mapping);
@@ -611,7 +599,7 @@ static void delete_vma_from_mm(struct vm_area_struct *vma)/* remove from the MM's tree and list */ vma_mas_remove (vma, &mas); -__vma_unlink_list (mm, vma); +__vma_unlink_list (vma->vm_mm, vma); }/*
@@ -644,20 +632,9 @@ EXPORT_SYMBOL(find_vma_intersection);*/ struct vm_area_struct *find_vma (struct mm_struct *mm,unsigned long addr) { -struct vm_area_struct *vma;MA_STATE (mas, &mm->mm_mt, addr, addr); -/* check the cache first */ - vma =vmacache_find (mm, addr); -if (likely (vma)) -return vma; - - vma =mas_walk (&mas); - -if (vma) -vmacache_update (addr, vma); - -return vma; +return mas_walk (&mas); }EXPORT_SYMBOL (find_vma);
@@ -691,11 +668,6 @@ static struct vm_area_struct *find_vma_exact(struct mm_struct *mm,unsigned long end = addr + len;MA_STATE (mas, &mm->mm_mt, addr, addr); -/* check the cache first */ - vma =vmacache_find_exact (mm, addr, end); -if (vma) -return vma; - vma =mas_walk (&mas);if (!vma)return NULL ;
@@ -704,7 +676,6 @@ static struct vm_area_struct *find_vma_exact(struct mm_struct *mm,if (vma->vm_end != end)return NULL ; -vmacache_update (addr, vma);return vma; }
mm/vmacache.c deleted +0 -117
117 lines not on this page · raw message
mm/vmstat.c +0 -4
@@ -1382,10 +1382,6 @@ const char * const vmstat_text[] = { "nr_tlb_local_flush_one",#endif /* CONFIG_DEBUG_TLBFLUSH */ -#ifdef CONFIG_DEBUG_VM_VMACACHE -"vmacache_find_calls" , -"vmacache_find_hits" , -#endif#ifdef CONFIG_SWAP "swap_ra" , "swap_ra_hit",
Signature · 1 line
2.34.1
PATCH v7 28/70 mm: Convert vma_lookup() to use mtree_load()
In reply to Liam HowlettFrom: "Matthew Wilcox (Oracle)" <[email protected]>
Unlike the rbtree, the Maple Tree will return a NULL if there's nothing at a particular address.
Since the previous commit dropped the vmacache, it is now possible to consult the tree directly.
--- include/linux/mm.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
include/linux/mm.h +1 -6
@@ -2800,12 +2800,7 @@ struct vm_area_struct *find_vma_intersection(struct mm_struct *mm,static inline struct vm_area_struct *vma_lookup (struct mm_struct *mm,unsigned long addr) { -struct vm_area_struct *vma =find_vma (mm, addr); - -if (vma && addr < vma->vm_start) - vma =NULL ; - -return vma; +return mtree_load (&mm->mm_mt, addr); }static inline unsigned long vm_start_gap (struct vm_area_struct *vma)
Signature · 1 line
2.34.1
PATCH v7 29/70 mm/mmap: Move mmap_region() below do_munmap()
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Relocation of code for the next commit. There should be no changes here.
--- mm/mmap.c | 460 +++++++++++++++++++++++++++--------------------------- 1 file changed, 230 insertions(+), 230 deletions(-)
mm/mmap.c +230 -230
@@ -1701,236 +1701,6 @@ static inline int accountable_mapping(struct file *file, vm_flags_t vm_flags)return (vm_flags & (VM_NORESERVE |VM_SHARED |VM_WRITE )) ==VM_WRITE ; } -unsigned long mmap_region (struct file *file,unsigned long addr, -unsigned long len,vm_flags_t vm_flags,unsigned long pgoff, -struct list_head *uf) -{ -struct mm_struct *mm = current->mm; -struct vm_area_struct *vma =NULL ; -struct vm_area_struct *prev, *next; -pgoff_t pglen = len >>PAGE_SHIFT ; -unsigned long charged =0 ; -unsigned long end = addr + len; -unsigned long merge_start = addr, merge_end = end; -pgoff_t vm_pgoff; -int error; -MA_STATE (mas, &mm->mm_mt, addr, end -1 ); - -/* Check against address space limit. */ -if (!may_expand_vm (mm, vm_flags, len >>PAGE_SHIFT )) { -unsigned long nr_pages; - -/* -* MAP_FIXED may remove pages of mappings that intersects with -* requested mapping. Account for the pages it would unmap. -*/ - nr_pages =count_vma_pages_range (mm, addr, end); - -if (!may_expand_vm (mm, vm_flags, - (len >>PAGE_SHIFT ) - nr_pages)) -return -ENOMEM ; - } - -/* Unmap any existing mapping in the area */ -if (do_munmap (mm, addr, len, uf)) -return -ENOMEM ; - -/* -* Private writable mapping: check memory availability -*/ -if (accountable_mapping (file, vm_flags)) { - charged = len >>PAGE_SHIFT ; -if (security_vm_enough_memory_mm (mm, charged)) -return -ENOMEM ; - vm_flags |=VM_ACCOUNT ; - } - - next =mas_next (&mas,ULONG_MAX ); - prev =mas_prev (&mas,0 ); -if (vm_flags &VM_SPECIAL ) - goto cannot_expand; - -/* Attempt to expand an old mapping */ -/* Check next */ -if (next && next->vm_start == end && !vma_policy (next) && -can_vma_merge_before (next, vm_flags,NULL , file, pgoff+pglen, -NULL_VM_UFFD_CTX ,NULL )) { - merge_end = next->vm_end; - vma = next; - vm_pgoff = next->vm_pgoff - pglen; - } - -/* Check prev */ -if (prev && prev->vm_end == addr && !vma_policy (prev) && - (vma ?can_vma_merge_after (prev, vm_flags, vma->anon_vma, file, - pgoff, vma->vm_userfaultfd_ctx,NULL ) : -can_vma_merge_after (prev, vm_flags,NULL , file, pgoff, -NULL_VM_UFFD_CTX ,NULL ))) { - merge_start = prev->vm_start; - vma = prev; - vm_pgoff = prev->vm_pgoff; - } - - -/* Actually expand, if possible */ -if (vma && - !vma_expand (&mas, vma, merge_start, merge_end, vm_pgoff, next)) { -khugepaged_enter_vma_merge (vma, vm_flags); - goto expanded; - } - - mas.index = addr; - mas.last = end -1 ; -cannot_expand: -/* -* Determine the object being mapped and call the appropriate -* specific mapper. the address has already been validated, but -* not unmapped, but the maps are removed from the list. -*/ - vma =vm_area_alloc (mm); -if (!vma) { - error = -ENOMEM ; - goto unacct_error; - } - - vma->vm_start = addr; - vma->vm_end = end; - vma->vm_flags = vm_flags; - vma->vm_page_prot =vm_get_page_prot (vm_flags); - vma->vm_pgoff = pgoff; - -if (file) { -if (vm_flags &VM_SHARED ) { - error =mapping_map_writable (file->f_mapping); -if (error) - goto free_vma; - } - - vma->vm_file =get_file (file); - error =call_mmap (file, vma); -if (error) - goto unmap_and_free_vma; - -/* Can addr have changed?? -* -* Answer: Yes, several device drivers can do it in their -* f_op->mmap method. -DaveM -*/ -WARN_ON_ONCE (addr != vma->vm_start); - - addr = vma->vm_start; -mas_reset (&mas); - -/* If vm_flags changed after call_mmap(), we should try merge vma again -* as we may succeed this time. -*/ -if (unlikely (vm_flags != vma->vm_flags && prev)) { - next =vma_merge (mm, prev, vma->vm_start, vma->vm_end, vma->vm_flags, -NULL , vma->vm_file, vma->vm_pgoff,NULL ,NULL_VM_UFFD_CTX ,NULL ); -if (next) { -/* ->mmap() can change vma->vm_file and fput the original file. So -* fput the vma->vm_file here or we would add an extra fput for file -* and cause general protection fault ultimately. -*/ -fput (vma->vm_file); -vm_area_free (vma); - vma = prev; -/* Update vm_flags and possible addr to pick up the change. We don't -* warn here if addr changed as the vma is not linked by vma_link(). -*/ - addr = vma->vm_start; - vm_flags = vma->vm_flags; - goto unmap_writable; - } - } - - vm_flags = vma->vm_flags; - }else if (vm_flags &VM_SHARED ) { - error =shmem_zero_setup (vma); -if (error) - goto free_vma; - }else { -vma_set_anonymous (vma); - } - -/* Allow architectures to sanity-check the vm_flags */ -if (!arch_validate_flags (vma->vm_flags)) { - error = -EINVAL ; -if (file) - goto unmap_and_free_vma; -else - goto free_vma; - } - -if (vma->vm_file) -i_mmap_lock_write (vma->vm_file->f_mapping); - -vma_mas_store (vma, &mas); -__vma_link_list (mm, vma, prev); - mm->map_count++; -if (vma->vm_file) { -if (vma->vm_flags &VM_SHARED ) -mapping_allow_writable (vma->vm_file->f_mapping); - -flush_dcache_mmap_lock (vma->vm_file->f_mapping); -vma_interval_tree_insert (vma, &vma->vm_file->f_mapping->i_mmap); -flush_dcache_mmap_unlock (vma->vm_file->f_mapping); -i_mmap_unlock_write (vma->vm_file->f_mapping); - } - -/* Once vma denies write, undo our temporary denial count */ -unmap_writable: -if (file && vm_flags &VM_SHARED ) -mapping_unmap_writable (file->f_mapping); - file = vma->vm_file; -expanded: -perf_event_mmap (vma); - -vm_stat_account (mm, vm_flags, len >>PAGE_SHIFT ); -if (vm_flags &VM_LOCKED ) { -if ((vm_flags &VM_SPECIAL ) ||vma_is_dax (vma) || -is_vm_hugetlb_page (vma) || - vma ==get_gate_vma (current->mm)) - vma->vm_flags &=VM_LOCKED_CLEAR_MASK ; -else - mm->locked_vm += (len >>PAGE_SHIFT ); - } - -if (file) -uprobe_mmap (vma); - -/* -* New (or expanded) vma always get soft dirty status. -* Otherwise user-space soft-dirty page tracker won't -* be able to distinguish situation when vma area unmapped, -* then new mapped in-place (which must be aimed as -* a completely new data area). -*/ - vma->vm_flags |=VM_SOFTDIRTY ; - -vma_set_page_prot (vma); - -validate_mm (mm); -return addr; - -unmap_and_free_vma: -fput (vma->vm_file); - vma->vm_file =NULL ; - -/* Undo any partial mapping done by a device driver. */ -unmap_region (mm, vma, prev, vma->vm_start, vma->vm_end); - charged =0 ; -if (vm_flags &VM_SHARED ) -mapping_unmap_writable (file->f_mapping); -free_vma: -vm_area_free (vma); -unacct_error: -if (charged) -vm_unacct_memory (charged); -validate_mm (mm); -return error; -} -/* unmapped_area() Find an area between the low_limit and the high_limit with * the correct alignment and offset, all from @info. Note: current->mm is used * for the search.
@@ -2769,6 +2539,236 @@ int do_munmap(struct mm_struct *mm, unsigned long start, size_t len,return __do_munmap (mm, start, len, uf, false); } +unsigned long mmap_region (struct file *file,unsigned long addr, +unsigned long len,vm_flags_t vm_flags,unsigned long pgoff, +struct list_head *uf) +{ +struct mm_struct *mm = current->mm; +struct vm_area_struct *vma =NULL ; +struct vm_area_struct *prev, *next; +pgoff_t pglen = len >>PAGE_SHIFT ; +unsigned long charged =0 ; +unsigned long end = addr + len; +unsigned long merge_start = addr, merge_end = end; +pgoff_t vm_pgoff; +int error; +MA_STATE (mas, &mm->mm_mt, addr, end -1 ); + +/* Check against address space limit. */ +if (!may_expand_vm (mm, vm_flags, len >>PAGE_SHIFT )) { +unsigned long nr_pages; + +/* +* MAP_FIXED may remove pages of mappings that intersects with +* requested mapping. Account for the pages it would unmap. +*/ + nr_pages =count_vma_pages_range (mm, addr, end); + +if (!may_expand_vm (mm, vm_flags, + (len >>PAGE_SHIFT ) - nr_pages)) +return -ENOMEM ; + } + +/* Unmap any existing mapping in the area */ +if (do_munmap (mm, addr, len, uf)) +return -ENOMEM ; + +/* +* Private writable mapping: check memory availability +*/ +if (accountable_mapping (file, vm_flags)) { + charged = len >>PAGE_SHIFT ; +if (security_vm_enough_memory_mm (mm, charged)) +return -ENOMEM ; + vm_flags |=VM_ACCOUNT ; + } + + next =mas_next (&mas,ULONG_MAX ); + prev =mas_prev (&mas,0 ); +if (vm_flags &VM_SPECIAL ) + goto cannot_expand; + +/* Attempt to expand an old mapping */ +/* Check next */ +if (next && next->vm_start == end && !vma_policy (next) && +can_vma_merge_before (next, vm_flags,NULL , file, pgoff+pglen, +NULL_VM_UFFD_CTX ,NULL )) { + merge_end = next->vm_end; + vma = next; + vm_pgoff = next->vm_pgoff - pglen; + } + +/* Check prev */ +if (prev && prev->vm_end == addr && !vma_policy (prev) && + (vma ?can_vma_merge_after (prev, vm_flags, vma->anon_vma, file, + pgoff, vma->vm_userfaultfd_ctx,NULL ) : +can_vma_merge_after (prev, vm_flags,NULL , file, pgoff, +NULL_VM_UFFD_CTX ,NULL ))) { + merge_start = prev->vm_start; + vma = prev; + vm_pgoff = prev->vm_pgoff; + } + + +/* Actually expand, if possible */ +if (vma && + !vma_expand (&mas, vma, merge_start, merge_end, vm_pgoff, next)) { +khugepaged_enter_vma_merge (vma, vm_flags); + goto expanded; + } + + mas.index = addr; + mas.last = end -1 ; +cannot_expand: +/* +* Determine the object being mapped and call the appropriate +* specific mapper. the address has already been validated, but +* not unmapped, but the maps are removed from the list. +*/ + vma =vm_area_alloc (mm); +if (!vma) { + error = -ENOMEM ; + goto unacct_error; + } + + vma->vm_start = addr; + vma->vm_end = end; + vma->vm_flags = vm_flags; + vma->vm_page_prot =vm_get_page_prot (vm_flags); + vma->vm_pgoff = pgoff; + +if (file) { +if (vm_flags &VM_SHARED ) { + error =mapping_map_writable (file->f_mapping); +if (error) + goto free_vma; + } + + vma->vm_file =get_file (file); + error =call_mmap (file, vma); +if (error) + goto unmap_and_free_vma; + +/* Can addr have changed?? +* +* Answer: Yes, several device drivers can do it in their +* f_op->mmap method. -DaveM +*/ +WARN_ON_ONCE (addr != vma->vm_start); + + addr = vma->vm_start; +mas_reset (&mas); + +/* If vm_flags changed after call_mmap(), we should try merge vma again +* as we may succeed this time. +*/ +if (unlikely (vm_flags != vma->vm_flags && prev)) { + next =vma_merge (mm, prev, vma->vm_start, vma->vm_end, vma->vm_flags, +NULL , vma->vm_file, vma->vm_pgoff,NULL ,NULL_VM_UFFD_CTX ,NULL ); +if (next) { +/* ->mmap() can change vma->vm_file and fput the original file. So +* fput the vma->vm_file here or we would add an extra fput for file +* and cause general protection fault ultimately. +*/ +fput (vma->vm_file); +vm_area_free (vma); + vma = prev; +/* Update vm_flags and possible addr to pick up the change. We don't +* warn here if addr changed as the vma is not linked by vma_link(). +*/ + addr = vma->vm_start; + vm_flags = vma->vm_flags; + goto unmap_writable; + } + } + + vm_flags = vma->vm_flags; + }else if (vm_flags &VM_SHARED ) { + error =shmem_zero_setup (vma); +if (error) + goto free_vma; + }else { +vma_set_anonymous (vma); + } + +/* Allow architectures to sanity-check the vm_flags */ +if (!arch_validate_flags (vma->vm_flags)) { + error = -EINVAL ; +if (file) + goto unmap_and_free_vma; +else + goto free_vma; + } + +if (vma->vm_file) +i_mmap_lock_write (vma->vm_file->f_mapping); + +vma_mas_store (vma, &mas); +__vma_link_list (mm, vma, prev); + mm->map_count++; +if (vma->vm_file) { +if (vma->vm_flags &VM_SHARED ) +mapping_allow_writable (vma->vm_file->f_mapping); + +flush_dcache_mmap_lock (vma->vm_file->f_mapping); +vma_interval_tree_insert (vma, &vma->vm_file->f_mapping->i_mmap); +flush_dcache_mmap_unlock (vma->vm_file->f_mapping); +i_mmap_unlock_write (vma->vm_file->f_mapping); + } + +/* Once vma denies write, undo our temporary denial count */ +unmap_writable: +if (file && vm_flags &VM_SHARED ) +mapping_unmap_writable (file->f_mapping); + file = vma->vm_file; +expanded: +perf_event_mmap (vma); + +vm_stat_account (mm, vm_flags, len >>PAGE_SHIFT ); +if (vm_flags &VM_LOCKED ) { +if ((vm_flags &VM_SPECIAL ) ||vma_is_dax (vma) || +is_vm_hugetlb_page (vma) || + vma ==get_gate_vma (current->mm)) + vma->vm_flags &=VM_LOCKED_CLEAR_MASK ; +else + mm->locked_vm += (len >>PAGE_SHIFT ); + } + +if (file) +uprobe_mmap (vma); + +/* +* New (or expanded) vma always get soft dirty status. +* Otherwise user-space soft-dirty page tracker won't +* be able to distinguish situation when vma area unmapped, +* then new mapped in-place (which must be aimed as +* a completely new data area). +*/ + vma->vm_flags |=VM_SOFTDIRTY ; + +vma_set_page_prot (vma); + +validate_mm (mm); +return addr; + +unmap_and_free_vma: +fput (vma->vm_file); + vma->vm_file =NULL ; + +/* Undo any partial mapping done by a device driver. */ +unmap_region (mm, vma, prev, vma->vm_start, vma->vm_end); + charged =0 ; +if (vm_flags &VM_SHARED ) +mapping_unmap_writable (file->f_mapping); +free_vma: +vm_area_free (vma); +unacct_error: +if (charged) +vm_unacct_memory (charged); +validate_mm (mm); +return error; +} +static int __vm_munmap (unsigned long start,size_t len,bool downgrade) {int ret;
Signature · 1 line
2.34.1
PATCH v7 30/70 mm/mmap: Reorganize munmap to use maple states
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Remove __do_munmap() in favour of do_munmap(), do_mas_munmap(), and do_mas_align_munmap().
do_munmap() is a wrapper to create a maple state for any callers that have not been converted to the maple tree.
do_mas_munmap() takes a maple state to mumap a range. This is just a small function which checks for error conditions and aligns the end of the range.
do_mas_align_munmap() uses the aligned range to mumap a range. do_mas_align_munmap() starts with the first VMA in the range, then finds the last VMA in the range. Both start and end are split if necessary. Then the VMAs are removed from the linked list and the mm mlock count is updated at the same time. Followed by a single tree operation of overwriting the area in with a NULL. Finally, the detached list is unmapped and freed.
By reorganizing the munmap calls as outlined, it is now possible to avoid extra work of aligning pre-aligned callers which are known to be safe, avoid extra VMA lookups or tree walks for modifications.
detach_vmas_to_be_unmapped() is no longer used, so drop this code.
vm_brk_flags() can just call the do_mas_munmap() as it checks for intersecting VMAs directly.
--- include/linux/mm.h | 5 +- mm/mmap.c | 223 ++++++++++++++++++++++++++++----------------- mm/mremap.c | 17 ++-- 3 files changed, 154 insertions(+), 91 deletions(-)
include/linux/mm.h +3 -2
@@ -2715,8 +2715,9 @@ extern unsigned long mmap_region(struct file *file, unsigned long addr,extern unsigned long do_mmap (struct file *file,unsigned long addr,unsigned long len,unsigned long prot,unsigned long flags,unsigned long pgoff,unsigned long *populate,struct list_head *uf); -extern int __do_munmap (struct mm_struct *,unsigned long ,size_t , -struct list_head *uf,bool downgrade); +extern int do_mas_munmap (struct ma_state *mas,struct mm_struct *mm, +unsigned long start,size_t len,struct list_head *uf, +bool downgrade);extern int do_munmap (struct mm_struct *,unsigned long ,size_t ,struct list_head *uf);extern int do_madvise (struct mm_struct *mm,unsigned long start,size_t len_in,int behavior);
mm/mmap.c +141 -82
310 lines not on this page · raw message
mm/mremap.c +10 -7
@@ -978,20 +978,23 @@ SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len,/* * Always allow a shrinking remap: that just unmaps * the unnecessary pages.. -* __do_munmap does all the needed commit accounting, and +* do_mas_munmap does all the needed commit accounting, and * downgrades mmap_lock to read if so directed. */ if (old_len >= new_len) {int retval; +MA_STATE (mas, &mm->mm_mt, addr + new_len, addr + new_len); - retval =__do_munmap (mm, addr+new_len, old_len - new_len, - &uf_unmap, true); -if (retval <0 && old_len != new_len) { - ret = retval; - goto out; + retval =do_mas_munmap (&mas, mm, addr + new_len, + old_len - new_len, &uf_unmap, true);/* Returning 1 indicates mmap_lock is downgraded to read. */ - }else if (retval ==1 ) +if (retval ==1 ) { downgraded = true; + }else if (retval <0 && old_len != new_len) { + ret = retval; + goto out; + } + ret = addr; goto out; }
Signature · 1 line
2.34.1
PATCH v7 31/70 mm/mmap: Change do_brk_munmap() to use do_mas_align_munmap()
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
do_brk_munmap() has already aligned the address and has a maple tree state to be used. Use the new do_mas_align_munmap() to avoid unnecessary alignment and error checks.
--- mm/mmap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
mm/mmap.c +3 -2
@@ -2972,14 +2972,15 @@ static int do_brk_munmap(struct ma_state *mas, struct vm_area_struct *vma,struct mm_struct *mm = vma->vm_mm;struct vm_area_struct unmap;unsigned long unmap_pages; -int ret =1 ; +int ret;arch_unmap (mm, newbrk, oldbrk);if (likely ((vma->vm_end < oldbrk) || ((vma->vm_start == newbrk) && (vma->vm_end == oldbrk)))) {/* remove entire mapping(s) */ - ret =do_mas_munmap (mas, mm, newbrk, oldbrk-newbrk, uf, true); + ret =do_mas_align_munmap (mas, vma, mm, newbrk, oldbrk, uf, + true); goto munmap_full_vma; }
Signature · 1 line
2.34.1
PATCH v7 32/70 arm64: Remove mmap linked list from vdso
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Use the VMA iterator instead.
--- arch/arm64/kernel/vdso.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/kernel/vdso.c +2 -1
@@ -136,10 +136,11 @@ int vdso_join_timens(struct task_struct *task, struct time_namespace *ns) {struct mm_struct *mm = task->mm;struct vm_area_struct *vma; +VMA_ITERATOR (vmi, mm,0 );mmap_read_lock (mm); -for (vma = mm->mmap; vma; vma = vma->vm_next) { +for_each_vma (vmi, vma) {unsigned long size = vma->vm_end - vma->vm_start;if (vma_is_special_mapping (vma, vdso_info[VDSO_ABI_AA64 ].dm))
Signature · 1 line
2.34.1
PATCH v7 33/70 parisc: Remove mmap linked list from cache handling
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Use the VMA iterator instead.
--- arch/parisc/kernel/cache.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
arch/parisc/kernel/cache.c +5 -2
@@ -536,9 +536,11 @@ static inline unsigned long mm_total_size(struct mm_struct *mm) {struct vm_area_struct *vma;unsigned long usize =0 ; +VMA_ITERATOR (vmi, mm,0 ); -for (vma = mm->mmap; vma; vma = vma->vm_next) +for_each_vma (vmi, vma) usize += vma->vm_end - vma->vm_start; +return usize; }
@@ -578,6 +580,7 @@ static void flush_cache_pages(struct vm_area_struct *vma, struct mm_struct *mm,void flush_cache_mm (struct mm_struct *mm) {struct vm_area_struct *vma; +VMA_ITERATOR (vmi, mm,0 );/* Flushing the whole cache on each cpu takes forever on rp3440, etc. So, avoid it if the mm isn't too big. */
@@ -589,7 +592,7 @@ void flush_cache_mm(struct mm_struct *mm)return ; } -for (vma = mm->mmap; vma; vma = vma->vm_next) +for_each_vma (vmi, vma)flush_cache_pages (vma, mm, vma->vm_start, vma->vm_end); }
Signature · 1 line
2.34.1
PATCH v7 34/70 powerpc: Remove mmap linked list walks
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Use the VMA iterator instead.
--- arch/powerpc/kernel/vdso.c | 6 +++--- arch/powerpc/mm/book3s32/tlb.c | 11 ++++++----- arch/powerpc/mm/book3s64/subpage_prot.c | 13 ++----------- 3 files changed, 11 insertions(+), 19 deletions(-)
arch/powerpc/kernel/vdso.c +3 -3
@@ -114,18 +114,18 @@ struct vdso_data *arch_get_vdso_data(void *vvar_page)int vdso_join_timens (struct task_struct *task,struct time_namespace *ns) {struct mm_struct *mm = task->mm; +VMA_ITERATOR (vmi, mm,0 );struct vm_area_struct *vma;mmap_read_lock (mm); - -for (vma = mm->mmap; vma; vma = vma->vm_next) { +for_each_vma (vmi, vma) {unsigned long size = vma->vm_end - vma->vm_start;if (vma_is_special_mapping (vma, &vvar_spec))zap_page_range (vma, vma->vm_start, size); } -mmap_read_unlock (mm); +return 0 ; }
arch/powerpc/mm/book3s32/tlb.c +6 -5
@@ -81,14 +81,15 @@ EXPORT_SYMBOL(hash__flush_range);void hash__flush_tlb_mm (struct mm_struct *mm) {struct vm_area_struct *mp; +VMA_ITERATOR (vmi, mm,0 );/* -* It is safe to go down the mm's list of vmas when called -* from dup_mmap, holding mmap_lock. It would also be safe from -* unmap_region or exit_mmap, but not from vmtruncate on SMP - -* but it seems dup_mmap is the only SMP case which gets here. +* It is safe to iterate the vmas when called from dup_mmap, +* holding mmap_lock. It would also be safe from unmap_region +* or exit_mmap, but not from vmtruncate on SMP - but it seems +* dup_mmap is the only SMP case which gets here. */ -for (mp = mm->mmap; mp !=NULL ; mp = mp->vm_next) +for_each_vma (vmi, mp)hash__flush_range (mp->vm_mm, mp->vm_start, mp->vm_end); }EXPORT_SYMBOL (hash__flush_tlb_mm);
arch/powerpc/mm/book3s64/subpage_prot.c +2 -11
@@ -149,24 +149,15 @@ static void subpage_mark_vma_nohuge(struct mm_struct *mm, unsigned long addr, unsigned long len) {struct vm_area_struct *vma; +VMA_ITERATOR (vmi, mm, addr);/* * We don't try too hard, we just mark all the vma in that range * VM_NOHUGEPAGE and split them. */ - vma =find_vma (mm, addr); -/* -* If the range is in unmapped range, just return -*/ -if (vma && ((addr + len) <= vma->vm_start)) -return ; - -while (vma) { -if (vma->vm_start >= (addr + len)) -break ; +for_each_vma_range (vmi, vma, addr + len) { vma->vm_flags |=VM_NOHUGEPAGE ;walk_page_vma (vma, &subpage_walk_ops,NULL ); - vma = vma->vm_next; } }#else
Signature · 1 line
2.34.1
PATCH v7 35/70 s390: Remove vma linked list walks
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Use the VMA iterator instead.
--- arch/s390/kernel/vdso.c | 3 ++- arch/s390/mm/gmap.c | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-)
arch/s390/kernel/vdso.c +2 -1
@@ -68,10 +68,11 @@ static struct page *find_timens_vvar_page(struct vm_area_struct *vma)int vdso_join_timens (struct task_struct *task,struct time_namespace *ns) {struct mm_struct *mm = task->mm; +VMA_ITERATOR (vmi, mm,0 );struct vm_area_struct *vma;mmap_read_lock (mm); -for (vma = mm->mmap; vma; vma = vma->vm_next) { +for_each_vma (vmi, vma) {unsigned long size = vma->vm_end - vma->vm_start;if (!vma_is_special_mapping (vma, &vvar_mapping))
arch/s390/mm/gmap.c +4 -2
@@ -2508,8 +2508,9 @@ static const struct mm_walk_ops thp_split_walk_ops = {static inline void thp_split_mm (struct mm_struct *mm) {struct vm_area_struct *vma; +VMA_ITERATOR (vmi, mm,0 ); -for (vma = mm->mmap; vma !=NULL ; vma = vma->vm_next) { +for_each_vma (vmi, vma) { vma->vm_flags &= ~VM_HUGEPAGE ; vma->vm_flags |=VM_NOHUGEPAGE ;walk_page_vma (vma, &thp_split_walk_ops,NULL );
@@ -2577,8 +2578,9 @@ int gmap_mark_unmergeable(void)struct mm_struct *mm = current->mm;struct vm_area_struct *vma;int ret; +VMA_ITERATOR (vmi, mm,0 ); -for (vma = mm->mmap; vma; vma = vma->vm_next) { +for_each_vma (vmi, vma) { ret =ksm_madvise (vma, vma->vm_start, vma->vm_end,MADV_UNMERGEABLE , &vma->vm_flags);if (ret)
Signature · 1 line
2.34.1
PATCH v7 36/70 x86: Remove vma linked list walks
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Use the VMA iterator instead.
--- arch/x86/entry/vdso/vma.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
arch/x86/entry/vdso/vma.c +5 -4
@@ -127,17 +127,17 @@ int vdso_join_timens(struct task_struct *task, struct time_namespace *ns) {struct mm_struct *mm = task->mm;struct vm_area_struct *vma; +VMA_ITERATOR (vmi, mm,0 );mmap_read_lock (mm); - -for (vma = mm->mmap; vma; vma = vma->vm_next) { +for_each_vma (vmi, vma) {unsigned long size = vma->vm_end - vma->vm_start;if (vma_is_special_mapping (vma, &vvar_mapping))zap_page_range (vma, vma->vm_start, size); } -mmap_read_unlock (mm); +return 0 ; }#else
@@ -354,6 +354,7 @@ int map_vdso_once(const struct vdso_image *image, unsigned long addr) {struct mm_struct *mm = current->mm;struct vm_area_struct *vma; +VMA_ITERATOR (vmi, mm,0 );mmap_write_lock (mm);/*
@@ -363,7 +364,7 @@ int map_vdso_once(const struct vdso_image *image, unsigned long addr)* We could search vma near context.vdso, but it's a slowpath, * so let's explicitly check all VMAs to be completely sure. */ -for (vma = mm->mmap; vma; vma = vma->vm_next) { +for_each_vma (vmi, vma) {if (vma_is_special_mapping (vma, &vdso_mapping) ||vma_is_special_mapping (vma, &vvar_mapping)) {mmap_write_unlock (mm);
Signature · 1 line
2.34.1
PATCH v7 37/70 xtensa: Remove vma linked list walks
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Use the VMA iterator instead. Since VMA can no longer be NULL in the loop, then deal with out-of-memory outside the loop. This means a slightly longer run time in the failure case (-ENOMEM) - it will run to the end of the VMAs before erroring instead of in the middle of the loop.
--- arch/xtensa/kernel/syscall.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)
arch/xtensa/kernel/syscall.c +12 -6
@@ -58,6 +58,7 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags) { struct vm_area_struct *vmm; +struct vma_iterator vmi;if (flags &MAP_FIXED ) {/* We do not accept a shared mapping if it would violate
@@ -79,15 +80,20 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, else addr =PAGE_ALIGN (addr); -for (vmm =find_vma (current->mm, addr); ; vmm = vmm->vm_next) { -/* At this point: (!vmm || addr < vmm->vm_end). */ -if (TASK_SIZE - len < addr) -return -ENOMEM ; -if (!vmm || addr + len <=vm_start_gap (vmm)) -return addr; +vma_iter_init (&vmi, current->mm, addr); +for_each_vma (vmi, vmm) { +/* At this point: (addr < vmm->vm_end). */ +if (addr + len <=vm_start_gap (vmm)) +break ; + addr = vmm->vm_end;if (flags &MAP_SHARED ) addr =COLOUR_ALIGN (addr, pgoff); } + +if (TASK_SIZE - len < addr) +return -ENOMEM ; + + return addr; }#endif
Signature · 1 line
2.34.1
PATCH v7 38/70 cxl: Remove vma linked list walk
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Use the VMA iterator instead. This requires a little restructuring of the surrounding code to hoist the mm to the caller. That turns cxl_prefault_one() into a trivial function, so call cxl_fault_segment() directly.
--- drivers/misc/cxl/fault.c | 45 ++++++++++++++-------------------------- 1 file changed, 15 insertions(+), 30 deletions(-)
drivers/misc/cxl/fault.c +15 -30
@@ -280,22 +280,6 @@ void cxl_handle_fault(struct work_struct *fault_work)mmput (mm); } -static void cxl_prefault_one (struct cxl_context *ctx,u64 ea) -{ -struct mm_struct *mm; - - mm =get_mem_context (ctx); -if (mm ==NULL ) { -pr_devel ("cxl_prefault_one unable to get mm %i\n" , -pid_nr (ctx->pid)); -return ; - } - -cxl_fault_segment (ctx, mm, ea); - -mmput (mm); -} -static u64 next_segment (u64 ea,u64 vsid) {if (vsid &SLB_VSID_B_1T )
@@ -306,23 +290,16 @@ static u64 next_segment(u64 ea, u64 vsid)return ea +1 ; } -static void cxl_prefault_vma (struct cxl_context *ctx) +static void cxl_prefault_vma (struct cxl_context *ctx,struct mm_struct *mm) {u64 ea, last_esid =0 ;struct copro_slb slb; +VMA_ITERATOR (vmi, mm,0 );struct vm_area_struct *vma;int rc; -struct mm_struct *mm; - - mm =get_mem_context (ctx); -if (mm ==NULL ) { -pr_devel ("cxl_prefault_vm unable to get mm %i\n" , -pid_nr (ctx->pid)); -return ; - }mmap_read_lock (mm); -for (vma = mm->mmap; vma; vma = vma->vm_next) { +for_each_vma (vmi, vma) {for (ea = vma->vm_start; ea < vma->vm_end; ea =next_segment (ea, slb.vsid)) { rc =copro_calculate_slb (mm, ea, &slb);
@@ -337,20 +314,28 @@ static void cxl_prefault_vma(struct cxl_context *ctx) } }mmap_read_unlock (mm); - -mmput (mm); }void cxl_prefault (struct cxl_context *ctx,u64 wed) { +struct mm_struct *mm =get_mem_context (ctx); + +if (mm ==NULL ) { +pr_devel ("cxl_prefault unable to get mm %i\n" , +pid_nr (ctx->pid)); +return ; + } +switch (ctx->afu->prefault_mode) {case CXL_PREFAULT_WED : -cxl_prefault_one (ctx, wed); +cxl_fault_segment (ctx, mm, wed);break ;case CXL_PREFAULT_ALL : -cxl_prefault_vma (ctx); +cxl_prefault_vma (ctx, mm);break ;default :break ; } + +mmput (mm); }
Signature · 1 line
2.34.1
PATCH v7 39/70 optee: Remove vma linked list walk
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Use the VMA iterator instead. Change the calling convention of __check_mem_type() to pass in the mm instead of the first vma in the range.
--- drivers/tee/optee/call.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-)
drivers/tee/optee/call.c +10 -8
@@ -342,15 +342,18 @@ static bool is_normal_memory(pgprot_t p)#endif } -static int __check_mem_type (struct vm_area_struct *vma,unsigned long end) +static int __check_mem_type (struct mm_struct *mm,unsigned long start, +unsigned long end) { -while (vma &&is_normal_memory (vma->vm_page_prot)) { -if (vma->vm_end >= end) -return 0 ; - vma = vma->vm_next; +struct vm_area_struct *vma; +VMA_ITERATOR (vmi, mm, start); + +for_each_vma_range (vmi, vma, end) { +if (!is_normal_memory (vma->vm_page_prot)) +return -EINVAL ; } -return -EINVAL ; +return 0 ; }int optee_check_mem_type (unsigned long start,size_t num_pages)
@@ -366,8 +369,7 @@ int optee_check_mem_type(unsigned long start, size_t num_pages)return 0 ;mmap_read_lock (mm); - rc =__check_mem_type (find_vma (mm, start), - start + num_pages *PAGE_SIZE ); + rc =__check_mem_type (mm, start, start + num_pages *PAGE_SIZE );mmap_read_unlock (mm);return rc;
Signature · 1 line
2.34.1
PATCH v7 40/70 um: Remove vma linked list walk
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Use the VMA iterator instead.
--- arch/um/kernel/tlb.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-)
arch/um/kernel/tlb.c +6 -8
@@ -584,21 +584,19 @@ void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start,void flush_tlb_mm (struct mm_struct *mm) { -struct vm_area_struct *vma = mm->mmap; +struct vm_area_struct *vma; +VMA_ITERATOR (vmi, mm,0 ); -while (vma !=NULL ) { +for_each_vma (vmi, vma)fix_range (mm, vma->vm_start, vma->vm_end,0 ); - vma = vma->vm_next; - } }void force_flush_all (void ) {struct mm_struct *mm = current->mm; -struct vm_area_struct *vma = mm->mmap; +struct vm_area_struct *vma; +VMA_ITERATOR (vmi, mm,0 ); -while (vma !=NULL ) { +for_each_vma (vmi, vma)fix_range (mm, vma->vm_start, vma->vm_end,1 ); - vma = vma->vm_next; - } }
Signature · 1 line
2.34.1
PATCH v7 41/70 coredump: Remove vma linked list walk
In reply to Liam HowlettFrom: "Matthew Wilcox (Oracle)" <[email protected]>
Use the Maple Tree iterator instead. This is too complicated for the VMA iterator to handle, so let's open-code it for now. If this turns out to be a common pattern, we can migrate it to common code.
--- fs/coredump.c | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-)
fs/coredump.c +12 -22
@@ -1072,30 +1072,20 @@ static unsigned long vma_dump_size(struct vm_area_struct *vma,return vma->vm_end - vma->vm_start; } -static struct vm_area_struct *first_vma (struct task_struct *tsk, -struct vm_area_struct *gate_vma) -{ -struct vm_area_struct *ret = tsk->mm->mmap; - -if (ret) -return ret; -return gate_vma; -} -/* * Helper function for iterating across a vma list. It ensures that the caller * will visit `gate_vma' prior to terminating the search. */ -static struct vm_area_struct *next_vma (struct vm_area_struct *this_vma, +static struct vm_area_struct *coredump_next_vma (struct ma_state *mas, +struct vm_area_struct *vma,struct vm_area_struct *gate_vma) { -struct vm_area_struct *ret; - - ret = this_vma->vm_next; -if (ret) -return ret; -if (this_vma == gate_vma) +if (gate_vma && (vma == gate_vma))return NULL ; + + vma =mas_next (mas,ULONG_MAX ); +if (vma) +return vma;return gate_vma; }
@@ -1119,9 +1109,10 @@ static void free_vma_snapshot(struct coredump_params *cprm)*/ static bool dump_vma_snapshot (struct coredump_params *cprm) { -struct vm_area_struct *vma, *gate_vma; +struct vm_area_struct *gate_vma, *vma =NULL ;struct mm_struct *mm = current->mm; -int i; +MA_STATE (mas, &mm->mm_mt,0 ,0 ); +int i =0 ;/* * Once the stack expansion code is fixed to not change VMA bounds
@@ -1141,8 +1132,7 @@ static bool dump_vma_snapshot(struct coredump_params *cprm)return false; } -for (i =0 , vma =first_vma (current, gate_vma); vma !=NULL ; - vma =next_vma (vma, gate_vma), i++) { +while ((vma =coredump_next_vma (&mas, vma, gate_vma)) !=NULL ) {struct core_vma_metadata *m = cprm->vma_meta + i; m->start = vma->vm_start;
@@ -1150,10 +1140,10 @@ static bool dump_vma_snapshot(struct coredump_params *cprm) m->flags = vma->vm_flags; m->dump_size =vma_dump_size (vma, cprm->mm_flags); m->pgoff = vma->vm_pgoff; - m->file = vma->vm_file;if (m->file)get_file (m->file); + i++; }mmap_write_unlock (mm);
Signature · 1 line
2.34.1
PATCH v7 42/70 exec: Use VMA iterator instead of linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Remove a use of the vm_next list by doing the initial lookup with the VMA iterator and then using it to find the next entry.
--- fs/exec.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
fs/exec.c +6 -3
@@ -686,6 +686,8 @@ static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift)unsigned long length = old_end - old_start;unsigned long new_start = old_start - shift;unsigned long new_end = old_end - shift; +VMA_ITERATOR (vmi, mm, new_start); +struct vm_area_struct *next;struct mmu_gather tlb;BUG_ON (new_start > new_end);
@@ -694,7 +696,7 @@ static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift)* ensure there are no vmas between where we want to go * and where we are */ -if (vma !=find_vma (mm, new_start)) +if (vma !=vma_next (&vmi))return -EFAULT ;/*
@@ -713,12 +715,13 @@ static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift)lru_add_drain ();tlb_gather_mmu (&tlb, mm); + next =vma_next (&vmi);if (new_end > old_start) {/* * when the old and new regions overlap clear from new_end. */ free_pgd_range (&tlb, new_end, old_end, new_end, - vma->vm_next ? vma->vm_next->vm_start :USER_PGTABLES_CEILING ); + next ? next->vm_start :USER_PGTABLES_CEILING ); }else {/* * otherwise, clean from old_start; this is done to not touch
@@ -727,7 +730,7 @@ static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift)* for the others its just a little faster. */ free_pgd_range (&tlb, old_start, old_end, new_end, - vma->vm_next ? vma->vm_next->vm_start :USER_PGTABLES_CEILING ); + next ? next->vm_start :USER_PGTABLES_CEILING ); }tlb_finish_mmu (&tlb);
Signature · 1 line
2.34.1
PATCH v7 43/70 fs/proc/base: Use maple tree iterators in place of linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
--- fs/proc/base.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
fs/proc/base.c +4 -1
@@ -2322,6 +2322,7 @@ proc_map_files_readdir(struct file *file, struct dir_context *ctx)GENRADIX (struct map_files_info ) fa;struct map_files_info *p;int ret; +MA_STATE (mas,NULL ,0 ,0 );genradix_init (&fa);
@@ -2349,6 +2350,7 @@ proc_map_files_readdir(struct file *file, struct dir_context *ctx) } nr_files =0 ; + mas.tree = &mm->mm_mt;/* * We need two passes here:
@@ -2360,7 +2362,8 @@ proc_map_files_readdir(struct file *file, struct dir_context *ctx)* routine might require mmap_lock taken in might_fault(). */ -for (vma = mm->mmap, pos =2 ; vma; vma = vma->vm_next) { + pos =2 ; +mas_for_each (&mas, vma,ULONG_MAX ) {if (!vma->vm_file)continue ;if (++pos <= ctx->pos)
Signature · 1 line
2.34.1
PATCH v7 44/70 fs/proc/task_mmu: Stop using linked list and highest_vm_end
In reply to Liam HowlettFrom: "Matthew Wilcox (Oracle)" <[email protected]>
Remove references to mm_struct linked list and highest_vm_end for when they are removed
--- fs/proc/internal.h | 2 +- fs/proc/task_mmu.c | 73 ++++++++++++++++++++++++++-------------------- 2 files changed, 42 insertions(+), 33 deletions(-)
fs/proc/internal.h +1 -1
@@ -285,7 +285,7 @@ struct proc_maps_private {struct task_struct *task;struct mm_struct *mm;#ifdef CONFIG_MMU -struct vm_area_struct *tail_vma; +struct vma_iterator iter;#endif #ifdef CONFIG_NUMA struct mempolicy *task_mempolicy;
fs/proc/task_mmu.c +41 -32
153 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v7 45/70 userfaultfd: Use maple tree iterator to iterate VMAs
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Don't use the mm_struct linked list or the vma->vm_next in prep for removal
--- fs/userfaultfd.c | 49 ++++++++++++++++++++++------------- include/linux/userfaultfd_k.h | 7 +++-- mm/mmap.c | 10 +++---- 3 files changed, 39 insertions(+), 27 deletions(-)
fs/userfaultfd.c +31 -18
@@ -610,14 +610,16 @@ static void userfaultfd_event_wait_completion(struct userfaultfd_ctx *ctx,if (release_new_ctx) {struct vm_area_struct *vma;struct mm_struct *mm = release_new_ctx->mm; +VMA_ITERATOR (vmi, mm,0 );/* the various vma->vm_userfaultfd_ctx still points to it */ mmap_write_lock (mm); -for (vma = mm->mmap; vma; vma = vma->vm_next) +for_each_vma (vmi, vma) {if (vma->vm_userfaultfd_ctx.ctx == release_new_ctx) { vma->vm_userfaultfd_ctx =NULL_VM_UFFD_CTX ; vma->vm_flags &= ~__VM_UFFD_FLAGS; } + }mmap_write_unlock (mm);userfaultfd_ctx_put (release_new_ctx);
@@ -798,11 +800,13 @@ static bool has_unmap_ctx(struct userfaultfd_ctx *ctx, struct list_head *unmaps,return false; } -int userfaultfd_unmap_prep (struct vm_area_struct *vma, -unsigned long start,unsigned long end, -struct list_head *unmaps) +int userfaultfd_unmap_prep (struct mm_struct *mm,unsigned long start, +unsigned long end,struct list_head *unmaps) { -for ( ; vma && vma->vm_start < end; vma = vma->vm_next) { +VMA_ITERATOR (vmi, mm, start); +struct vm_area_struct *vma; + +for_each_vma_range (vmi, vma, end) {struct userfaultfd_unmap_ctx *unmap_ctx;struct userfaultfd_ctx *ctx = vma->vm_userfaultfd_ctx.ctx;
@@ -852,6 +856,7 @@ static int userfaultfd_release(struct inode *inode, struct file *file)/* len == 0 means wake all */ struct userfaultfd_wake_range range = { .len =0 , };unsigned long new_flags; +MA_STATE (mas, &mm->mm_mt,0 ,0 );WRITE_ONCE (ctx->released, true);
@@ -868,7 +873,7 @@ static int userfaultfd_release(struct inode *inode, struct file *file)*/ mmap_write_lock (mm); prev =NULL ; -for (vma = mm->mmap; vma; vma = vma->vm_next) { +mas_for_each (&mas, vma,ULONG_MAX ) {cond_resched ();BUG_ON (!!vma->vm_userfaultfd_ctx.ctx ^ !!(vma->vm_flags & __VM_UFFD_FLAGS));
@@ -1285,6 +1290,7 @@ static int userfaultfd_register(struct userfaultfd_ctx *ctx,bool found;bool basic_ioctls;unsigned long start, end, vma_end; +MA_STATE (mas, &mm->mm_mt,0 ,0 ); user_uffdio_register = (struct uffdio_register __user *) arg;
@@ -1327,7 +1333,8 @@ static int userfaultfd_register(struct userfaultfd_ctx *ctx, goto out;mmap_write_lock (mm); - vma =find_vma_prev (mm, start, &prev); +mas_set (&mas, start); + vma =mas_find (&mas,ULONG_MAX );if (!vma) goto out_unlock;
@@ -1352,7 +1359,7 @@ static int userfaultfd_register(struct userfaultfd_ctx *ctx,*/ found = false; basic_ioctls = false; -for (cur = vma; cur && cur->vm_start < end; cur = cur->vm_next) { +for (cur = vma; cur; cur =mas_next (&mas, end -1 )) {cond_resched (); BUG_ON(!!cur->vm_userfaultfd_ctx.ctx ^
@@ -1412,8 +1419,10 @@ static int userfaultfd_register(struct userfaultfd_ctx *ctx, }BUG_ON (!found); -if (vma->vm_start < start) - prev = vma; +mas_set (&mas, start); + prev =mas_prev (&mas,0 ); +if (prev != vma) +mas_next (&mas,ULONG_MAX ); ret =0 ; do {
@@ -1471,8 +1480,8 @@ static int userfaultfd_register(struct userfaultfd_ctx *ctx, skip: prev = vma; start = vma->vm_end; - vma = vma->vm_next; - }while (vma && vma->vm_start < end); + vma =mas_next (&mas, end -1 ); + }while (vma); out_unlock:mmap_write_unlock (mm);mmput (mm);
@@ -1516,6 +1525,7 @@ static int userfaultfd_unregister(struct userfaultfd_ctx *ctx,bool found;unsigned long start, end, vma_end;const void __user *buf = (void __user *)arg; +MA_STATE (mas, &mm->mm_mt,0 ,0 ); ret = -EFAULT ;if (copy_from_user (&uffdio_unregister, buf,sizeof (uffdio_unregister)))
@@ -1534,7 +1544,8 @@ static int userfaultfd_unregister(struct userfaultfd_ctx *ctx, goto out;mmap_write_lock (mm); - vma =find_vma_prev (mm, start, &prev); +mas_set (&mas, start); + vma =mas_find (&mas,ULONG_MAX );if (!vma) goto out_unlock;
@@ -1559,7 +1570,7 @@ static int userfaultfd_unregister(struct userfaultfd_ctx *ctx,*/ found = false; ret = -EINVAL ; -for (cur = vma; cur && cur->vm_start < end; cur = cur->vm_next) { +for (cur = vma; cur; cur =mas_next (&mas, end -1 )) {cond_resched (); BUG_ON(!!cur->vm_userfaultfd_ctx.ctx ^
@@ -1579,8 +1590,10 @@ static int userfaultfd_unregister(struct userfaultfd_ctx *ctx, }BUG_ON (!found); -if (vma->vm_start < start) - prev = vma; +mas_set (&mas, start); + prev =mas_prev (&mas,0 ); +if (prev != vma) +mas_next (&mas,ULONG_MAX ); ret =0 ; do {
@@ -1645,8 +1658,8 @@ static int userfaultfd_unregister(struct userfaultfd_ctx *ctx, skip: prev = vma; start = vma->vm_end; - vma = vma->vm_next; - }while (vma && vma->vm_start < end); + vma =mas_next (&mas, end -1 ); + }while (vma); out_unlock:mmap_write_unlock (mm);mmput (mm);
include/linux/userfaultfd_k.h +3 -4
@@ -139,9 +139,8 @@ extern bool userfaultfd_remove(struct vm_area_struct *vma,unsigned long start, unsigned long end); -extern int userfaultfd_unmap_prep (struct vm_area_struct *vma, -unsigned long start,unsigned long end, -struct list_head *uf); +extern int userfaultfd_unmap_prep (struct mm_struct *mm,unsigned long start, +unsigned long end,struct list_head *uf);extern void userfaultfd_unmap_complete (struct mm_struct *mm,struct list_head *uf);
@@ -222,7 +221,7 @@ static inline bool userfaultfd_remove(struct vm_area_struct *vma,return true; } -static inline int userfaultfd_unmap_prep (struct vm_area_struct *vma, +static inline int userfaultfd_unmap_prep (struct mm_struct *mm,unsigned long start,unsigned long end,struct list_head *uf) {
mm/mmap.c +5 -5
@@ -2499,7 +2499,7 @@ do_mas_align_munmap(struct ma_state *mas, struct vm_area_struct *vma,* split, despite we could. This is unlikely enough * failure that it's not worth optimizing it for. */ -int error =userfaultfd_unmap_prep (vma, start, end, uf); +int error =userfaultfd_unmap_prep (mm, start, end, uf);if (error)return error;
@@ -2984,10 +2984,7 @@ static int do_brk_munmap(struct ma_state *mas, struct vm_area_struct *vma, goto munmap_full_vma; } -vma_init (&unmap, mm); - unmap.vm_start = newbrk; - unmap.vm_end = oldbrk; - ret =userfaultfd_unmap_prep (&unmap, newbrk, oldbrk, uf); + ret =userfaultfd_unmap_prep (mm, newbrk, oldbrk, uf);if (ret)return ret; ret =1 ;
@@ -3000,6 +2997,9 @@ static int do_brk_munmap(struct ma_state *mas, struct vm_area_struct *vma, } vma->vm_end = newbrk; +vma_init (&unmap, mm); + unmap.vm_start = newbrk; + unmap.vm_end = oldbrk;if (vma_mas_remove (&unmap, mas)) goto mas_store_fail;
Signature · 1 line
2.34.1
PATCH v7 46/70 ipc/shm: Use VMA iterator instead of linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
The VMA iterator is faster than the linked llist, and it can be walked even when VMAs are being removed from the address space, so there's no need to keep track of 'next'.
--- ipc/shm.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-)
ipc/shm.c +10 -11
@@ -1721,7 +1721,7 @@ long ksys_shmdt(char __user *shmaddr)#ifdef CONFIG_MMU loff_t size =0 ;struct file *file; -struct vm_area_struct *next; +VMA_ITERATOR (vmi, mm, addr);#endif if (addr & ~PAGE_MASK )
@@ -1751,12 +1751,9 @@ long ksys_shmdt(char __user *shmaddr)* match the usual checks anyway. So assume all vma's are * above the starting address given. */ - vma =find_vma (mm, addr);#ifdef CONFIG_MMU -while (vma) { - next = vma->vm_next; - +for_each_vma (vmi, vma) {/* * Check if the starting address would match, i.e. it's * a fragment created by mprotect() and/or munmap(), or it
@@ -1774,6 +1771,7 @@ long ksys_shmdt(char __user *shmaddr) file = vma->vm_file; size =i_size_read (file_inode (vma->vm_file));do_munmap (mm, vma->vm_start, vma->vm_end - vma->vm_start,NULL ); +mas_pause (&vmi.mas);/* * We discovered the size of the shm segment, so * break out of here and fall through to the next
@@ -1781,10 +1779,9 @@ long ksys_shmdt(char __user *shmaddr)* searching for matching vma's. */ retval =0 ; - vma = next; + vma =vma_next (&vmi);break ; } - vma = next; }/*
@@ -1794,17 +1791,19 @@ long ksys_shmdt(char __user *shmaddr)*/ size =PAGE_ALIGN (size);while (vma && (loff_t)(vma->vm_end - addr) <= size) { - next = vma->vm_next; -/* finding a matching vma now does not alter retval */ if ((vma->vm_ops == &shm_vm_ops) && ((vma->vm_start - addr)/PAGE_SIZE == vma->vm_pgoff) && - (vma->vm_file == file)) + (vma->vm_file == file)) {do_munmap (mm, vma->vm_start, vma->vm_end - vma->vm_start,NULL ); - vma = next; +mas_pause (&vmi.mas); + } + + vma =vma_next (&vmi); }#else /* CONFIG_MMU */ + vma =vma_lookup (mm, addr);/* under NOMMU conditions, the exact address to be destroyed must be * given */
Signature · 1 line
2.34.1
PATCH v7 47/70 acct: Use VMA iterator instead of linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
The VMA iterator is faster than the linked list.
--- kernel/acct.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
kernel/acct.c +5 -6
@@ -535,15 +535,14 @@ void acct_collect(long exitcode, int group_dead)unsigned long vsize =0 ;if (group_dead && current->mm) { +struct mm_struct *mm = current->mm; +VMA_ITERATOR (vmi, mm,0 );struct vm_area_struct *vma; -mmap_read_lock (current->mm); - vma = current->mm->mmap; -while (vma) { +mmap_read_lock (mm); +for_each_vma (vmi, vma) vsize += vma->vm_end - vma->vm_start; - vma = vma->vm_next; - } -mmap_read_unlock (current->mm); +mmap_read_unlock (mm); }spin_lock_irq (¤t->sighand->siglock);
Signature · 1 line
2.34.1
PATCH v7 48/70 perf: Use VMA iterator
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
The VMA iterator is faster than the linked list and removing the linked list will shrink the vm_area_struct.
--- kernel/events/core.c | 3 ++- kernel/events/uprobes.c | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-)
kernel/events/core.c +2 -1
@@ -10316,8 +10316,9 @@ static void perf_addr_filter_apply(struct perf_addr_filter *filter, struct perf_addr_filter_range *fr) {struct vm_area_struct *vma; +VMA_ITERATOR (vmi, mm,0 ); -for (vma = mm->mmap; vma; vma = vma->vm_next) { +for_each_vma (vmi, vma) {if (!vma->vm_file)continue ;
kernel/events/uprobes.c +6 -3
@@ -349,9 +349,10 @@ static bool valid_ref_ctr_vma(struct uprobe *uprobe,static struct vm_area_struct *find_ref_ctr_vma (struct uprobe *uprobe,struct mm_struct *mm) { +VMA_ITERATOR (vmi, mm,0 );struct vm_area_struct *tmp; -for (tmp = mm->mmap; tmp; tmp = tmp->vm_next) +for_each_vma (vmi, tmp)if (valid_ref_ctr_vma (uprobe, tmp))return tmp;
@@ -1230,11 +1231,12 @@ int uprobe_apply(struct inode *inode, loff_t offset,static int unapply_uprobe (struct uprobe *uprobe,struct mm_struct *mm) { +VMA_ITERATOR (vmi, mm,0 );struct vm_area_struct *vma;int err =0 ;mmap_read_lock (mm); -for (vma = mm->mmap; vma; vma = vma->vm_next) { +for_each_vma (vmi, vma) {unsigned long vaddr;loff_t offset;
@@ -1982,9 +1984,10 @@ bool uprobe_deny_signal(void)static void mmf_recalc_uprobes (struct mm_struct *mm) { +VMA_ITERATOR (vmi, mm,0 );struct vm_area_struct *vma; -for (vma = mm->mmap; vma; vma = vma->vm_next) { +for_each_vma (vmi, vma) {if (!valid_vma (vma, false))continue ;/*
Signature · 1 line
2.34.1
PATCH v7 49/70 sched: Use maple tree iterator to walk VMAs
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
The linked list is slower than walking the VMAs using the maple tree. We can't use the VMA iterator here because it doesn't support moving to an earlier position.
--- kernel/sched/fair.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
kernel/sched/fair.c +7 -3
@@ -2722,6 +2722,7 @@ static void task_numa_work(struct callback_head *work)struct task_struct *p = current;struct mm_struct *mm = p->mm;u64 runtime = p->se.sum_exec_runtime; +MA_STATE (mas, &mm->mm_mt,0 ,0 );struct vm_area_struct *vma;unsigned long start, end;unsigned long nr_pte_updates =0 ;
@@ -2778,13 +2779,16 @@ static void task_numa_work(struct callback_head *work)if (!mmap_read_trylock (mm))return ; - vma =find_vma (mm, start); +mas_set (&mas, start); + vma =mas_find (&mas,ULONG_MAX );if (!vma) {reset_ptenuma_scan (p); start =0 ; - vma = mm->mmap; +mas_set (&mas, start); + vma =mas_find (&mas,ULONG_MAX ); } -for (; vma; vma = vma->vm_next) { + +for (; vma; vma =mas_find (&mas,ULONG_MAX )) {if (!vma_migratable (vma) || !vma_policy_mof (vma) ||is_vm_hugetlb_page (vma) || (vma->vm_flags &VM_MIXEDMAP )) {continue ;
Signature · 1 line
2.34.1
PATCH v7 50/70 fork: Use VMA iterator
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
The VMA iterator is faster than the linked list and removing the linked list will shrink the vm_area_struct.
--- kernel/fork.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
kernel/fork.c +5 -2
@@ -1288,13 +1288,16 @@ int replace_mm_exe_file(struct mm_struct *mm, struct file *new_exe_file)/* Forbid mm->exe_file change if old file still mapped. */ old_exe_file =get_mm_exe_file (mm);if (old_exe_file) { +VMA_ITERATOR (vmi, mm,0 );mmap_read_lock (mm); -for (vma = mm->mmap; vma && !ret; vma = vma->vm_next) { +for_each_vma (vmi, vma) {if (!vma->vm_file)continue ;if (path_equal (&vma->vm_file->f_path, - &old_exe_file->f_path)) + &old_exe_file->f_path)) { ret = -EBUSY ; +break ; + } }mmap_read_unlock (mm);fput (old_exe_file);
Signature · 1 line
2.34.1
PATCH v7 51/70 bpf: Remove VMA linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Use vma_next() and remove reference to the start of the linked list
--- kernel/bpf/task_iter.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
kernel/bpf/task_iter.c +5 -5
@@ -300,8 +300,8 @@ struct bpf_iter_seq_task_vma_info { };enum bpf_task_vma_iter_find_op { - task_vma_iter_first_vma,/* use mm->mmap */ - task_vma_iter_next_vma,/* use curr_vma->vm_next */ + task_vma_iter_first_vma,/* use find_vma() with addr 0 */ + task_vma_iter_next_vma,/* use vma_next() with curr_vma */ task_vma_iter_find_vma,/* use find_vma() to find next vma */ };
@@ -401,10 +401,10 @@ task_vma_seq_get_next(struct bpf_iter_seq_task_vma_info *info)switch (op) {case task_vma_iter_first_vma: - curr_vma = curr_task->mm->mmap; + curr_vma =find_vma (curr_task->mm,0 );break ;case task_vma_iter_next_vma: - curr_vma = curr_vma->vm_next; + curr_vma =find_vma (curr_task->mm, curr_vma->vm_end);break ;case task_vma_iter_find_vma:/* We dropped mmap_lock so it is necessary to use find_vma
@@ -418,7 +418,7 @@ task_vma_seq_get_next(struct bpf_iter_seq_task_vma_info *info)if (curr_vma && curr_vma->vm_start == info->prev_vm_start && curr_vma->vm_end == info->prev_vm_end) - curr_vma = curr_vma->vm_next; + curr_vma =find_vma (curr_task->mm, curr_vma->vm_end);break ; }if (!curr_vma) {
Signature · 1 line
2.34.1
PATCH v7 52/70 mm/gup: Use maple tree navigation instead of linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Use find_vma_intersection() to locate the VMAs in __mm_populate() instead of using find_vma() and the linked list.
--- mm/gup.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
mm/gup.c +4 -3
@@ -1533,10 +1533,11 @@ int __mm_populate(unsigned long start, unsigned long len, int ignore_errors)if (!locked) { locked =1 ;mmap_read_lock (mm); - vma =find_vma (mm, nstart); + vma =find_vma_intersection (mm, nstart, end); }else if (nstart >= vma->vm_end) - vma = vma->vm_next; -if (!vma || vma->vm_start >= end) + vma =find_vma_intersection (mm, vma->vm_end, end); + +if (!vma)break ;/* * Set [nstart; nend) to intersection of desired address
Signature · 1 line
2.34.1
PATCH v7 53/70 mm/khugepaged: Stop using vma linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Use vma iterator & find_vma() instead of vma linked list.
--- mm/huge_memory.c | 4 ++-- mm/khugepaged.c | 11 ++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-)
mm/huge_memory.c +2 -2
@@ -2222,11 +2222,11 @@ void vma_adjust_trans_huge(struct vm_area_struct *vma,split_huge_pmd_if_needed (vma, end);/* -* If we're also updating the vma->vm_next->vm_start, +* If we're also updating the next vma vm_start, * check if we need to split it. */ if (adjust_next >0 ) { -struct vm_area_struct *next = vma->vm_next; +struct vm_area_struct *next =find_vma (vma->vm_mm, vma->vm_end);unsigned long nstart = next->vm_start; nstart += adjust_next;split_huge_pmd_if_needed (next, nstart);
mm/khugepaged.c +8 -3
@@ -2089,10 +2089,12 @@ static unsigned int khugepaged_scan_mm_slot(unsigned int pages, __releases(&khugepaged_mm_lock) __acquires(&khugepaged_mm_lock) { +struct vma_iterator vmi;struct mm_slot *mm_slot;struct mm_struct *mm;struct vm_area_struct *vma;int progress =0 ; +unsigned long address;VM_BUG_ON (!pages);lockdep_assert_held (&khugepaged_mm_lock);
@@ -2116,11 +2118,14 @@ static unsigned int khugepaged_scan_mm_slot(unsigned int pages, vma =NULL ;if (unlikely (!mmap_read_trylock (mm))) goto breakouterloop_mmap_lock; -if (likely (!khugepaged_test_exit (mm))) - vma =find_vma (mm, khugepaged_scan.address); progress++; -for (; vma; vma = vma->vm_next) { +if (unlikely (khugepaged_test_exit (mm))) + goto breakouterloop; + + address = khugepaged_scan.address; +vma_iter_init (&vmi, mm, address); +for_each_vma (vmi, vma) {unsigned long hstart, hend;cond_resched ();
Signature · 1 line
2.34.1
PATCH v7 54/70 mm/ksm: Use vma iterators instead of vma linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Remove the use of the linked list for eventual removal.
--- mm/ksm.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-)
mm/ksm.c +11 -7
@@ -974,11 +974,13 @@ static int unmerge_and_remove_all_rmap_items(void) struct mm_slot, mm_list);spin_unlock (&ksm_mmlist_lock); -for (mm_slot = ksm_scan.mm_slot; - mm_slot != &ksm_mm_head; mm_slot = ksm_scan.mm_slot) { +for (mm_slot = ksm_scan.mm_slot; mm_slot != &ksm_mm_head; + mm_slot = ksm_scan.mm_slot) { +VMA_ITERATOR (vmi, mm_slot->mm,0 ); + mm = mm_slot->mm;mmap_read_lock (mm); -for (vma = mm->mmap; vma; vma = vma->vm_next) { +for_each_vma (vmi, vma) {if (ksm_test_exit (mm))break ;if (!(vma->vm_flags &VM_MERGEABLE ) || !vma->anon_vma)
@@ -2213,6 +2215,7 @@ static struct rmap_item *scan_get_next_rmap_item(struct page **page)struct mm_slot *slot;struct vm_area_struct *vma;struct rmap_item *rmap_item; +struct vma_iterator vmi;int nid;if (list_empty (&ksm_mm_head.mm_list))
@@ -2271,13 +2274,13 @@ static struct rmap_item *scan_get_next_rmap_item(struct page **page) } mm = slot->mm; +vma_iter_init (&vmi, mm, ksm_scan.address); +mmap_read_lock (mm);if (ksm_test_exit (mm)) - vma =NULL ; -else - vma =find_vma (mm, ksm_scan.address); + goto no_vmas; -for (; vma; vma = vma->vm_next) { +for_each_vma (vmi, vma) {if (!(vma->vm_flags &VM_MERGEABLE ))continue ;if (ksm_scan.address < vma->vm_start)
@@ -2315,6 +2318,7 @@ static struct rmap_item *scan_get_next_rmap_item(struct page **page) }if (ksm_test_exit (mm)) { +no_vmas: ksm_scan.address =0 ; ksm_scan.rmap_list = &slot->rmap_list; }
Signature · 1 line
2.34.1
PATCH v7 55/70 mm/madvise: Use vma_find() instead of vma linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
madvise_walk_vmas() no longer uses linked list.
--- mm/madvise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/madvise.c +1 -1
@@ -1227,7 +1227,7 @@ int madvise_walk_vmas(struct mm_struct *mm, unsigned long start,if (start >= end)break ;if (prev) - vma = prev->vm_next; + vma =find_vma (mm, prev->vm_end);else /* madvise_remove dropped mmap_lock */ vma =find_vma (mm, start); }
Signature · 1 line
2.34.1
PATCH v7 56/70 mm/memcontrol: Stop using mm->highest_vm_end
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Pass through ULONG_MAX instead.
--- mm/memcontrol.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
mm/memcontrol.c +2 -4
@@ -5755,7 +5755,7 @@ static unsigned long mem_cgroup_count_precharge(struct mm_struct *mm)unsigned long precharge;mmap_read_lock (mm); -walk_page_range (mm,0 , mm->highest_vm_end, &precharge_walk_ops,NULL ); +walk_page_range (mm,0 ,ULONG_MAX , &precharge_walk_ops,NULL );mmap_read_unlock (mm); precharge = mc.precharge;
@@ -6053,9 +6053,7 @@ static void mem_cgroup_move_charge(void)* When we have consumed all precharges and failed in doing * additional charge, the page walk just aborts. */ -walk_page_range (mc.mm,0 , mc.mm->highest_vm_end, &charge_walk_ops, -NULL ); - +walk_page_range (mc.mm,0 ,ULONG_MAX , &charge_walk_ops,NULL );mmap_read_unlock (mc.mm);atomic_dec (&mc.from->moving_account); }
Signature · 1 line
2.34.1
PATCH v7 57/70 mm/mempolicy: Use vma iterator & maple state instead of vma linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Reworked the way mbind_range() finds the first VMA to reuse the maple state and limit the number of tree walks needed.
Note, this drops the VM_BUG_ON(!vma) call, which would catch a start address higher than the last VMA. The code was written in a way that allowed no VMA updates to occur and still return success. There should be no functional change to this scenario with the new code.
--- mm/mempolicy.c | 55 ++++++++++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 24 deletions(-)
mm/mempolicy.c +31 -24
@@ -380,9 +380,10 @@ void mpol_rebind_task(struct task_struct *tsk, const nodemask_t *new)void mpol_rebind_mm (struct mm_struct *mm,nodemask_t *new) {struct vm_area_struct *vma; +VMA_ITERATOR (vmi, mm,0 );mmap_write_lock (mm); -for (vma = mm->mmap; vma; vma = vma->vm_next) +for_each_vma (vmi, vma)mpol_rebind_policy (vma->vm_policy, new);mmap_write_unlock (mm); }
@@ -655,7 +656,7 @@ static unsigned long change_prot_numa(struct vm_area_struct *vma,static int queue_pages_test_walk (unsigned long start,unsigned long end,struct mm_walk *walk) { -struct vm_area_struct *vma = walk->vma; +struct vm_area_struct *next, *vma = walk->vma;struct queue_pages *qp = walk->private;unsigned long endvma = vma->vm_end;unsigned long flags = qp->flags;
@@ -670,9 +671,10 @@ static int queue_pages_test_walk(unsigned long start, unsigned long end,/* hole at head side of range */ return -EFAULT ; } + next =find_vma (vma->vm_mm, vma->vm_end);if (!(flags &MPOL_MF_DISCONTIG_OK ) && ((vma->vm_end < qp->end) && - (!vma->vm_next || vma->vm_end < vma->vm_next->vm_start))) + (!next || vma->vm_end < next->vm_start)))/* hole at middle or tail of range */ return -EFAULT ;
@@ -786,26 +788,24 @@ static int vma_replace_policy(struct vm_area_struct *vma,static int mbind_range (struct mm_struct *mm,unsigned long start,unsigned long end,struct mempolicy *new_pol) { +MA_STATE (mas, &mm->mm_mt, start -1 , start -1 );struct vm_area_struct *prev;struct vm_area_struct *vma;int err =0 ;pgoff_t pgoff; -unsigned long vmstart; -unsigned long vmend; - - vma =find_vma (mm, start); -VM_BUG_ON (!vma); - prev = vma->vm_prev; -if (start > vma->vm_start) - prev = vma; + prev =mas_find_rev (&mas,0 ); +if (prev && (start < prev->vm_end)) + vma = prev; +else + vma =mas_next (&mas, end -1 ); -for (; vma && vma->vm_start < end; prev = vma, vma = vma->vm_next) { - vmstart =max (start, vma->vm_start); - vmend =min (end, vma->vm_end); +for (; vma; vma =mas_next (&mas, end -1 )) { +unsigned long vmstart =max (start, vma->vm_start); +unsigned long vmend =min (end, vma->vm_end);if (mpol_equal (vma_policy (vma), new_pol)) -continue ; + goto next; pgoff = vma->vm_pgoff + ((vmstart - vma->vm_start) >>PAGE_SHIFT );
@@ -814,6 +814,8 @@ static int mbind_range(struct mm_struct *mm, unsigned long start, new_pol, vma->vm_userfaultfd_ctx, anon_vma_name(vma));if (prev) { +/* vma_merge() invalidated the mas */ +mas_pause (&mas); vma = prev; goto replace; }
@@ -821,19 +823,24 @@ static int mbind_range(struct mm_struct *mm, unsigned long start, err =split_vma (vma->vm_mm, vma, vmstart,1 );if (err) goto out; +/* split_vma() invalidated the mas */ +mas_pause (&mas); }if (vma->vm_end != vmend) { err =split_vma (vma->vm_mm, vma, vmend,0 );if (err) goto out; +/* mas_pause() unnecessary as the loop is ending */ } - replace: +replace: err =vma_replace_policy (vma, new_pol);if (err) goto out; +next: + prev = vma; } - out: +out:return err; }
@@ -1048,6 +1055,7 @@ static int migrate_to_node(struct mm_struct *mm, int source, int dest, int flags) {nodemask_t nmask; +struct vm_area_struct *vma;LIST_HEAD (pagelist);int err =0 ;struct migration_target_control mtc = {
@@ -1063,8 +1071,9 @@ static int migrate_to_node(struct mm_struct *mm, int source, int dest,* need migration. Between passing in the full user address * space range and MPOL_MF_DISCONTIG_OK, this call can not fail. */ + vma =find_vma (mm,0 );VM_BUG_ON (!(flags & (MPOL_MF_MOVE |MPOL_MF_MOVE_ALL ))); -queue_pages_range (mm, mm->mmap->vm_start, mm->task_size, &nmask, +queue_pages_range (mm, vma->vm_start, mm->task_size, &nmask, flags |MPOL_MF_DISCONTIG_OK , &pagelist);if (!list_empty (&pagelist)) {
@@ -1193,13 +1202,12 @@ static struct page *new_page(struct page *page, unsigned long start) {struct vm_area_struct *vma;unsigned long address; +VMA_ITERATOR (vmi, current->mm, start); - vma =find_vma (current->mm, start); -while (vma) { +for_each_vma (vmi, vma) { address =page_address_in_vma (page, vma);if (address != -EFAULT )break ; - vma = vma->vm_next; }if (PageHuge (page)) {
@@ -1482,6 +1490,7 @@ SYSCALL_DEFINE4(set_mempolicy_home_node, unsigned long, start, unsigned long, leunsigned long vmend;unsigned long end;int err = -ENOENT ; +VMA_ITERATOR (vmi, mm, start); start =untagged_addr (start);if (start & ~PAGE_MASK )
@@ -1507,9 +1516,7 @@ SYSCALL_DEFINE4(set_mempolicy_home_node, unsigned long, start, unsigned long, leif (end == start)return 0 ;mmap_write_lock (mm); - vma =find_vma (mm, start); -for (; vma && vma->vm_start < end; vma = vma->vm_next) { - +for_each_vma_range (vmi, vma, end) { vmstart =max (start, vma->vm_start); vmend =min (end, vma->vm_end); new =mpol_dup (vma_policy (vma));
Signature · 1 line
2.34.1
PATCH v7 58/70 mm/mlock: Use vma iterator and instead of vma linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Handle overflow checking in count_mm_mlocked_page_nr() differently.
--- mm/mlock.c | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-)
mm/mlock.c +18 -16
@@ -471,6 +471,7 @@ static int apply_vma_lock_flags(unsigned long start, size_t len,unsigned long nstart, end, tmp;struct vm_area_struct *vma, *prev;int error; +MA_STATE (mas, ¤t->mm->mm_mt, start, start);VM_BUG_ON (offset_in_page (start));VM_BUG_ON (len !=PAGE_ALIGN (len));
@@ -479,13 +480,14 @@ static int apply_vma_lock_flags(unsigned long start, size_t len,return -EINVAL ;if (end == start)return 0 ; - vma =find_vma (current->mm, start); -if (!vma || vma->vm_start > start) + vma =mas_walk (&mas); +if (!vma)return -ENOMEM ; - prev = vma->vm_prev;if (start > vma->vm_start) prev = vma; +else + prev =mas_prev (&mas,0 );for (nstart = start ; ; ) {vm_flags_t newflags = vma->vm_flags &VM_LOCKED_CLEAR_MASK ;
@@ -505,7 +507,7 @@ static int apply_vma_lock_flags(unsigned long start, size_t len,if (nstart >= end)break ; - vma = prev->vm_next; + vma =find_vma (prev->vm_mm, prev->vm_end);if (!vma || vma->vm_start != nstart) { error = -ENOMEM ;break ;
@@ -526,24 +528,23 @@ static unsigned long count_mm_mlocked_page_nr(struct mm_struct *mm, {struct vm_area_struct *vma;unsigned long count =0 ; +unsigned long end; +VMA_ITERATOR (vmi, mm, start);if (mm ==NULL ) mm = current->mm; - vma =find_vma (mm, start); -if (vma ==NULL ) -return 0 ; - -for (; vma ; vma = vma->vm_next) { -if (start >= vma->vm_end) -continue ; -if (start + len <= vma->vm_start) -break ; +/* Don't overflow past ULONG_MAX */ +if (unlikely (ULONG_MAX - len < start)) + end =ULONG_MAX ; +else + end = start + len; +for_each_vma_range (vmi, vma, end) {if (vma->vm_flags &VM_LOCKED ) {if (start > vma->vm_start) count -= (start - vma->vm_start); -if (start + len < vma->vm_end) { - count += start + len - vma->vm_start; +if (end < vma->vm_end) { + count += end - vma->vm_start;break ; } count += vma->vm_end - vma->vm_start;
@@ -659,6 +660,7 @@ SYSCALL_DEFINE2(munlock, unsigned long, start, size_t, len)*/ static int apply_mlockall_flags (int flags) { +VMA_ITERATOR (vmi, current->mm,0 );struct vm_area_struct *vma, *prev =NULL ;vm_flags_t to_add =0 ;
@@ -679,7 +681,7 @@ static int apply_mlockall_flags(int flags) to_add |=VM_LOCKONFAULT ; } -for (vma = current->mm->mmap; vma ; vma = prev->vm_next) { +for_each_vma (vmi, vma) {vm_flags_t newflags; newflags = vma->vm_flags &VM_LOCKED_CLEAR_MASK ;
Signature · 1 line
2.34.1
PATCH v7 59/70 mm/mprotect: Use maple tree navigation instead of vma linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
--- mm/mprotect.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
mm/mprotect.c +4 -3
@@ -539,6 +539,7 @@ static int do_mprotect_pkey(unsigned long start, size_t len,const int grows = prot & (PROT_GROWSDOWN |PROT_GROWSUP );const bool rier = (current->personality &READ_IMPLIES_EXEC ) && (prot &PROT_READ ); +MA_STATE (mas, ¤t->mm->mm_mt, start, start); start =untagged_addr (start);
@@ -570,7 +571,7 @@ static int do_mprotect_pkey(unsigned long start, size_t len,if ((pkey !=-1 ) && !mm_pkey_is_allocated (current->mm, pkey)) goto out; - vma =find_vma (current->mm, start); + vma =mas_find (&mas,ULONG_MAX ); error = -ENOMEM ;if (!vma) goto out;
@@ -596,7 +597,7 @@ static int do_mprotect_pkey(unsigned long start, size_t len,if (start > vma->vm_start) prev = vma;else - prev = vma->vm_prev; + prev =mas_prev (&mas,0 );for (nstart = start ; ; ) {unsigned long mask_off_old_flags;
@@ -658,7 +659,7 @@ static int do_mprotect_pkey(unsigned long start, size_t len,if (nstart >= end) goto out; - vma = prev->vm_next; + vma =find_vma (current->mm, prev->vm_end);if (!vma || vma->vm_start != nstart) { error = -ENOMEM ; goto out;
Signature · 1 line
2.34.1
PATCH v7 60/70 mm/mremap: Use vma_find_intersection() instead of vma linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
--- mm/mremap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
mm/mremap.c +3 -2
@@ -713,7 +713,7 @@ static unsigned long move_vma(struct vm_area_struct *vma,if (excess) { vma->vm_flags |=VM_ACCOUNT ;if (split) - vma->vm_next->vm_flags |=VM_ACCOUNT ; +find_vma (mm, vma->vm_end)->vm_flags |=VM_ACCOUNT ; }return new_addr;
@@ -869,9 +869,10 @@ static unsigned long mremap_to(unsigned long addr, unsigned long old_len,static int vma_expandable (struct vm_area_struct *vma,unsigned long delta) {unsigned long end = vma->vm_end + delta; +if (end < vma->vm_end)/* overflow */ return 0 ; -if (vma->vm_next && vma->vm_next->vm_start < end)/* intersection */ +if (find_vma_intersection (vma->vm_mm, vma->vm_end, end))return 0 ;if (get_unmapped_area (NULL , vma->vm_start, end - vma->vm_start,0 ,MAP_FIXED ) & ~PAGE_MASK )
Signature · 1 line
2.34.1
PATCH v7 61/70 mm/msync: Use vma_find() instead of vma linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
--- mm/msync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/msync.c +1 -1
@@ -104,7 +104,7 @@ SYSCALL_DEFINE3(msync, unsigned long, start, size_t, len, int, flags) error =0 ; goto out_unlock; } - vma = vma->vm_next; + vma =find_vma (mm, vma->vm_end); } } out_unlock:
Signature · 1 line
2.34.1
PATCH v7 62/70 mm/oom_kill: Use maple tree iterators instead of vma linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
--- mm/oom_kill.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mm/oom_kill.c +2 -1
@@ -513,6 +513,7 @@ bool __oom_reap_task_mm(struct mm_struct *mm) {struct vm_area_struct *vma;bool ret = true; +VMA_ITERATOR (vmi, mm,0 );/* * Tell all users of get_user/copy_from_user etc... that the content
@@ -522,7 +523,7 @@ bool __oom_reap_task_mm(struct mm_struct *mm)*/ set_bit (MMF_UNSTABLE , &mm->flags); -for (vma = mm->mmap ; vma; vma = vma->vm_next) { +for_each_vma (vmi, vma) {if (vma->vm_flags & (VM_HUGETLB |VM_PFNMAP ))continue ;
Signature · 1 line
2.34.1
PATCH v7 63/70 mm/pagewalk: Use vma_find() instead of vma linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
walk_page_range() no longer uses the one vma linked list reference.
--- mm/pagewalk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/pagewalk.c +1 -1
@@ -456,7 +456,7 @@ int walk_page_range(struct mm_struct *mm, unsigned long start, }else {/* inside vma */ walk.vma = vma; next =min (end, vma->vm_end); - vma = vma->vm_next; + vma =find_vma (mm, vma->vm_end); err =walk_page_test (start, next, &walk);if (err >0 ) {
Signature · 1 line
2.34.1
PATCH v7 64/70 mm/swapfile: Use vma iterator instead of vma linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
unuse_mm() no longer needs to reference the linked list.
--- mm/swapfile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
mm/swapfile.c +3 -1
@@ -1968,14 +1968,16 @@ static int unuse_mm(struct mm_struct *mm, unsigned int type) {struct vm_area_struct *vma;int ret =0 ; +VMA_ITERATOR (vmi, mm,0 );mmap_read_lock (mm); -for (vma = mm->mmap; vma; vma = vma->vm_next) { +for_each_vma (vmi, vma) {if (vma->anon_vma) { ret =unuse_vma (vma, type);if (ret)break ; } +cond_resched (); }mmap_read_unlock (mm);
Signature · 1 line
2.34.1
PATCH v7 65/70 i915: Use the VMA iterator
In reply to Liam HowlettFrom: "Matthew Wilcox (Oracle)" <[email protected]>
Replace the linked list in probe_range() with the VMA iterator.
--- drivers/gpu/drm/i915/gem/i915_gem_userptr.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_userptr.c +5 -9
@@ -426,12 +426,11 @@ static const struct drm_i915_gem_object_ops i915_gem_userptr_ops = {static int probe_range (struct mm_struct *mm,unsigned long addr,unsigned long len) { -const unsigned long end = addr + len; +VMA_ITERATOR (vmi, mm, addr);struct vm_area_struct *vma; -int ret = -EFAULT ;mmap_read_lock (mm); -for (vma =find_vma (mm, addr); vma; vma = vma->vm_next) { +for_each_vma_range (vmi, vma, addr + len) {/* Check for holes, note that we also update the addr below */ if (vma->vm_start > addr)break ;
@@ -439,16 +438,13 @@ probe_range(struct mm_struct *mm, unsigned long addr, unsigned long len)if (vma->vm_flags & (VM_PFNMAP |VM_MIXEDMAP ))break ; -if (vma->vm_end >= end) { - ret =0 ; -break ; - } - addr = vma->vm_end; }mmap_read_unlock (mm); -return ret; +if (vma) +return -EFAULT ; +return 0 ; }/*
Signature · 1 line
2.34.1
PATCH v7 66/70 nommu: Remove uses of VMA linked list
In reply to Liam HowlettFrom: "Matthew Wilcox (Oracle)" <[email protected]>
Use the maple tree or VMA iterator instead. This is faster and will allow us to shrink the VMA.
--- mm/nommu.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-)
mm/nommu.c +11 -4
@@ -1381,6 +1381,7 @@ static int shrink_vma(struct mm_struct *mm,*/ int do_munmap (struct mm_struct *mm,unsigned long start,size_t len,struct list_head *uf) { +MA_STATE (mas, &mm->mm_mt, start, start);struct vm_area_struct *vma;unsigned long end;int ret;
@@ -1392,7 +1393,7 @@ int do_munmap(struct mm_struct *mm, unsigned long start, size_t len, struct list end = start + len;/* find the first potentially overlapping VMA */ - vma =find_vma (mm, start); + vma =mas_find (&mas, end -1 );if (!vma) {static int limit;if (limit <5 ) {
@@ -1411,7 +1412,7 @@ int do_munmap(struct mm_struct *mm, unsigned long start, size_t len, struct listreturn -EINVAL ;if (end == vma->vm_end) goto erase_whole_vma; - vma = vma->vm_next; + vma =mas_next (&mas, end -1 ); }while (vma);return -EINVAL ; }else {
@@ -1460,6 +1461,7 @@ SYSCALL_DEFINE2(munmap, unsigned long, addr, size_t, len)*/ void exit_mmap (struct mm_struct *mm) { +VMA_ITERATOR (vmi, mm,0 );struct vm_area_struct *vma;if (!mm)
@@ -1467,12 +1469,17 @@ void exit_mmap(struct mm_struct *mm) mm->total_vm =0 ; -while ((vma = mm->mmap)) { - mm->mmap = vma->vm_next; +/* +* Lock the mm to avoid assert complaining even though this is the only +* user of the mm +*/ +mmap_write_lock (mm); +for_each_vma (vmi, vma) {delete_vma_from_mm (vma);delete_vma (mm, vma);cond_resched (); } +mmap_write_unlock (mm);__mt_destroy (&mm->mm_mt); }
Signature · 1 line
2.34.1
PATCH v7 67/70 riscv: Use vma iterator for vdso
In reply to Liam HowlettRemove the linked list use in favour of the vma iterator.
--- arch/riscv/kernel/vdso.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/riscv/kernel/vdso.c +2 -1
@@ -116,10 +116,11 @@ int vdso_join_timens(struct task_struct *task, struct time_namespace *ns) {struct mm_struct *mm = task->mm;struct vm_area_struct *vma; +VMA_ITERATOR (vmi, mm,0 );mmap_read_lock (mm); -for (vma = mm->mmap; vma; vma = vma->vm_next) { +for_each_vma (vmi, vma) {unsigned long size = vma->vm_end - vma->vm_start;if (vma_is_special_mapping (vma, vdso_info.dm))
Signature · 1 line
2.34.1
PATCH v7 68/70 mm: Remove the vma linked list
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Replace any vm_next use with vma_find().
Update free_pgtables(), unmap_vmas(), and zap_page_range() to use the maple tree.
Use the new free_pgtables() and unmap_vmas() in do_mas_align_munmap(). At the same time, alter the loop to be more compact.
Now that free_pgtables() and unmap_vmas() take a maple tree as an argument, rearrange do_mas_align_munmap() to use the new tree to hold the vmas to remove.
Remove __vma_link_list() and __vma_unlink_list() as they are exclusively used to update the linked list
Drop linked list update from __insert_vm_struct().
Rework validation of tree as it was depending on the linked list.
--- include/linux/mm.h | 5 +- include/linux/mm_types.h | 4 - kernel/fork.c | 15 +- mm/debug.c | 14 +- mm/internal.h | 8 +- mm/memory.c | 33 ++- mm/mmap.c | 438 +++++++++++++++++---------------------- mm/nommu.c | 5 - mm/util.c | 40 ---- 9 files changed, 230 insertions(+), 332 deletions(-)
include/linux/mm.h +3 -2
@@ -1867,8 +1867,9 @@ void zap_vma_ptes(struct vm_area_struct *vma, unsigned long address, unsigned long size);void zap_page_range (struct vm_area_struct *vma,unsigned long address,unsigned long size); -void unmap_vmas (struct mmu_gather *tlb,struct vm_area_struct *start_vma, -unsigned long start,unsigned long end); +void unmap_vmas (struct mmu_gather *tlb,struct maple_tree *mt, +struct vm_area_struct *start_vma,unsigned long start, +unsigned long end);struct mmu_notifier_range ;
include/linux/mm_types.h +0 -4
@@ -398,8 +398,6 @@ struct vm_area_struct {unsigned long vm_end;/* The first byte after our end address within vm_mm. */ -/* linked list of VM areas per task, sorted by address */ -struct vm_area_struct *vm_next, *vm_prev;struct mm_struct *vm_mm;/* The address space we belong to. */ /*
@@ -463,7 +461,6 @@ struct vm_area_struct {struct kioctx_table ;struct mm_struct {struct { -struct vm_area_struct *mmap;/* list of VMAs */ struct maple_tree mm_mt;#ifdef CONFIG_MMU unsigned long (*get_unmapped_area) (struct file *filp,
@@ -478,7 +475,6 @@ struct mm_struct {unsigned long mmap_compat_legacy_base;#endif unsigned long task_size;/* size of task vm space */ -unsigned long highest_vm_end;/* highest vma end address */ pgd_t * pgd;#ifdef CONFIG_MEMBARRIER
kernel/fork.c +1 -14
@@ -474,7 +474,6 @@ struct vm_area_struct *vm_area_dup(struct vm_area_struct *orig)*/ *new =data_race (*orig);INIT_LIST_HEAD (&new->anon_vma_chain); - new->vm_next = new->vm_prev =NULL ;dup_anon_vma_name (orig, new); }return new;
@@ -579,7 +578,7 @@ static void dup_mm_exe_file(struct mm_struct *mm, struct mm_struct *oldmm) static __latent_entropy int dup_mmap(struct mm_struct *mm,struct mm_struct *oldmm) { -struct vm_area_struct *mpnt, *tmp, *prev, **pprev; +struct vm_area_struct *mpnt, *tmp;int retval;unsigned long charge =0 ;MA_STATE (old_mas, &oldmm->mm_mt,0 ,0 );
@@ -606,7 +605,6 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm, mm->exec_vm = oldmm->exec_vm; mm->stack_vm = oldmm->stack_vm; - pprev = &mm->mmap; retval =ksm_fork (mm, oldmm);if (retval) goto out;
@@ -614,8 +612,6 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm,if (retval) goto out; - prev =NULL ; - retval =mas_expected_entries (&mas, oldmm->map_count);if (retval) goto out;
@@ -687,14 +683,6 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm,if (is_vm_hugetlb_page (tmp))reset_vma_resv_huge_pages (tmp); -/* -* Link in the new vma and copy the page table entries. -*/ - *pprev = tmp; - pprev = &tmp->vm_next; - tmp->vm_prev = prev; - prev = tmp; -/* Link the vma into the MT */ mas.index = tmp->vm_start; mas.last = tmp->vm_end -1 ;
@@ -1112,7 +1100,6 @@ static void mm_init_uprobes_state(struct mm_struct *mm)static struct mm_struct *mm_init (struct mm_struct *mm,struct task_struct *p,struct user_namespace *user_ns) { - mm->mmap =NULL ;mt_init_flags (&mm->mm_mt,MM_MT_FLAGS );mt_set_external_lock (&mm->mm_mt, &mm->mmap_lock);atomic_set (&mm->mm_users,1 );
mm/debug.c +6 -8
@@ -139,13 +139,11 @@ EXPORT_SYMBOL(dump_page);void dump_vma (const struct vm_area_struct *vma) { - pr_emerg("vma %px start %px end %px\n" - "next %px prev %px mm %px\n" + pr_emerg("vma %px start %px end %px mm %px\n" "prot %lx anon_vma %px vm_ops %px\n" "pgoff %lx file %px private_data %px\n" "flags: %#lx(%pGv)\n", - vma, (void *)vma->vm_start, (void *)vma->vm_end, vma->vm_next, - vma->vm_prev, vma->vm_mm, + vma, (void *)vma->vm_start, (void *)vma->vm_end, vma->vm_mm, (unsigned long)pgprot_val(vma->vm_page_prot), vma->anon_vma, vma->vm_ops, vma->vm_pgoff, vma->vm_file, vma->vm_private_data,
@@ -155,11 +153,11 @@ EXPORT_SYMBOL(dump_vma);void dump_mm (const struct mm_struct *mm) { - pr_emerg("mm %px mmap %px task_size %lu\n" + pr_emerg("mm %px task_size %lu\n" #ifdef CONFIG_MMU "get_unmapped_area %px\n" #endif -"mmap_base %lu mmap_legacy_base %lu highest_vm_end %lu\n" +"mmap_base %lu mmap_legacy_base %lu\n" "pgd %px mm_users %d mm_count %d pgtables_bytes %lu map_count %d\n" "hiwater_rss %lx hiwater_vm %lx total_vm %lx locked_vm %lx\n" "pinned_vm %llx data_vm %lx exec_vm %lx stack_vm %lx\n"
@@ -183,11 +181,11 @@ void dump_mm(const struct mm_struct *mm)"tlb_flush_pending %d\n" "def_flags: %#lx(%pGv)\n" , - mm, mm->mmap, mm->task_size, + mm, mm->task_size, #ifdef CONFIG_MMU mm->get_unmapped_area, #endif - mm->mmap_base, mm->mmap_legacy_base, mm->highest_vm_end, + mm->mmap_base, mm->mmap_legacy_base, mm->pgd,atomic_read (&mm->mm_users),atomic_read (&mm->mm_count), mm_pgtables_bytes(mm),
mm/internal.h +3 -5
@@ -69,8 +69,9 @@ void folio_rotate_reclaimable(struct folio *folio);bool __folio_end_writeback (struct folio *folio);void deactivate_file_folio (struct folio *folio); -void free_pgtables (struct mmu_gather *tlb,struct vm_area_struct *start_vma, -unsigned long floor,unsigned long ceiling); +void free_pgtables (struct mmu_gather *tlb,struct maple_tree *mt, +struct vm_area_struct *start_vma,unsigned long floor, +unsigned long ceiling);void pmd_install (struct mm_struct *mm,pmd_t *pmd,pgtable_t *pte);struct zap_details ;
@@ -465,9 +466,6 @@ static inline int vma_mas_remove(struct vm_area_struct *vma, struct ma_state *ma }/* mm/util.c */ -void __vma_link_list (struct mm_struct *mm,struct vm_area_struct *vma, -struct vm_area_struct *prev); -void __vma_unlink_list (struct mm_struct *mm,struct vm_area_struct *vma);struct anon_vma *folio_anon_vma (struct folio *folio);#ifdef CONFIG_MMU
mm/memory.c +24 -9
@@ -399,12 +399,21 @@ void free_pgd_range(struct mmu_gather *tlb, }while (pgd++, addr = next, addr != end); } -void free_pgtables (struct mmu_gather *tlb,struct vm_area_struct *vma, -unsigned long floor,unsigned long ceiling) +void free_pgtables (struct mmu_gather *tlb,struct maple_tree *mt, +struct vm_area_struct *vma,unsigned long floor, +unsigned long ceiling) { -while (vma) { -struct vm_area_struct *next = vma->vm_next; +MA_STATE (mas, mt, vma->vm_end, vma->vm_end); + + do { unsigned long addr = vma->vm_start; + struct vm_area_struct *next; + + /* + * Note: USER_PGTABLES_CEILING may be passed as ceiling and may + * be 0. This will underflow and is okay. + */ + next = mas_find(&mas, ceiling - 1); /* * Hide vma from rmap and truncate_pagecache before freeing
@@ -423,7 +432,7 @@ void free_pgtables(struct mmu_gather *tlb, struct vm_area_struct *vma,while (next && next->vm_start <= vma->vm_end +PMD_SIZE && !is_vm_hugetlb_page (next)) { vma = next; - next = vma->vm_next; + next =mas_find (&mas, ceiling -1 );unlink_anon_vmas (vma);unlink_file_vma (vma); }
@@ -431,7 +440,7 @@ void free_pgtables(struct mmu_gather *tlb, struct vm_area_struct *vma, floor, next ? next->vm_start : ceiling); } vma = next; - } + }while (vma); }void pmd_install (struct mm_struct *mm,pmd_t *pmd,pgtable_t *pte)
@@ -1632,17 +1641,19 @@ static void unmap_single_vma(struct mmu_gather *tlb,* ensure that any thus-far unmapped pages are flushed before unmap_vmas() * drops the lock and schedules. */ -void unmap_vmas (struct mmu_gather *tlb, +void unmap_vmas (struct mmu_gather *tlb,struct maple_tree *mt,struct vm_area_struct *vma,unsigned long start_addr,unsigned long end_addr) {struct mmu_notifier_range range; +MA_STATE (mas, mt, vma->vm_end, vma->vm_end);mmu_notifier_range_init (&range,MMU_NOTIFY_UNMAP ,0 , vma, vma->vm_mm, start_addr, end_addr);mmu_notifier_invalidate_range_start (&range); -for ( ; vma && vma->vm_start < end_addr; vma = vma->vm_next) +do {unmap_single_vma (tlb, vma, start_addr, end_addr,NULL ); + }while ((vma =mas_find (&mas, end_addr -1 )) !=NULL );mmu_notifier_invalidate_range_end (&range); }
@@ -1657,8 +1668,11 @@ void unmap_vmas(struct mmu_gather *tlb,void zap_page_range (struct vm_area_struct *vma,unsigned long start,unsigned long size) { +struct maple_tree *mt = &vma->vm_mm->mm_mt; +unsigned long end = start + size;struct mmu_notifier_range range;struct mmu_gather tlb; +MA_STATE (mas, mt, vma->vm_end, vma->vm_end);lru_add_drain (); mmu_notifier_range_init(&range, MMU_NOTIFY_CLEAR, 0, vma, vma->vm_mm,
@@ -1666,8 +1680,9 @@ void zap_page_range(struct vm_area_struct *vma, unsigned long start,tlb_gather_mmu (&tlb, vma->vm_mm);update_hiwater_rss (vma->vm_mm);mmu_notifier_invalidate_range_start (&range); -for ( ; vma && vma->vm_start < range.end; vma = vma->vm_next) +do {unmap_single_vma (&tlb, vma, start, range.end,NULL ); + }while ((vma =mas_find (&mas, end -1 )) !=NULL );mmu_notifier_invalidate_range_end (&range);tlb_finish_mmu (&tlb); }
mm/mmap.c +193 -245
909 lines not on this page · raw message
mm/nommu.c +0 -5
@@ -551,7 +551,6 @@ static void put_nommu_region(struct vm_region *region)static void add_vma_to_mm (struct mm_struct *mm,struct vm_area_struct *vma) {struct address_space *mapping; -struct vm_area_struct *prev;MA_STATE (mas, &mm->mm_mt, vma->vm_start, vma->vm_end);BUG_ON (!vma->vm_region);
@@ -570,11 +569,8 @@ static void add_vma_to_mm(struct mm_struct *mm, struct vm_area_struct *vma)i_mmap_unlock_write (mapping); } - prev =mas_prev (&mas,0 ); -mas_reset (&mas);/* add the VMA to the tree */ vma_mas_store (vma, &mas); -__vma_link_list (mm, vma, prev); }/*
@@ -599,7 +595,6 @@ static void delete_vma_from_mm(struct vm_area_struct *vma)/* remove from the MM's tree and list */ vma_mas_remove (vma, &mas); -__vma_unlink_list (vma->vm_mm, vma); }/*
mm/util.c +0 -40
@@ -271,46 +271,6 @@ void *memdup_user_nul(const void __user *src, size_t len) }EXPORT_SYMBOL (memdup_user_nul); -void __vma_link_list (struct mm_struct *mm,struct vm_area_struct *vma, -struct vm_area_struct *prev) -{ -struct vm_area_struct *next; - - vma->vm_prev = prev; -if (prev) { - next = prev->vm_next; - prev->vm_next = vma; - }else { - next = mm->mmap; - mm->mmap = vma; - } - vma->vm_next = next; -if (next) - next->vm_prev = vma; -else - mm->highest_vm_end =vm_end_gap (vma); -} - -void __vma_unlink_list (struct mm_struct *mm,struct vm_area_struct *vma) -{ -struct vm_area_struct *prev, *next; - - next = vma->vm_next; - prev = vma->vm_prev; -if (prev) - prev->vm_next = next; -else - mm->mmap = next; -if (next) { - next->vm_prev = prev; - }else { -if (prev) - mm->highest_vm_end =vm_end_gap (prev); -else - mm->highest_vm_end =0 ; - } -} -/* Check if the vma is being used as a stack by this task */ int vma_is_stack_for_current (struct vm_area_struct *vma) {
Signature · 1 line
2.34.1
PATCH v7 69/70 mm/mmap: Drop range_has_overlap() function
In reply to Liam HowlettFrom: "Liam R. Howlett" <[email protected]>
Since there is no longer a linked list, the range_has_overlap() function is identical to the find_vma_intersection() function.
--- mm/mmap.c | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-)
mm/mmap.c +1 -27
@@ -432,30 +432,6 @@ anon_vma_interval_tree_post_update_vma(struct vm_area_struct *vma)anon_vma_interval_tree_insert (avc, &avc->anon_vma->rb_root); } -/* -* range_has_overlap() - Check the @start - @end range for overlapping VMAs and -* sets up a pointer to the previous VMA -* @mm: the mm struct -* @start: the start address of the range -* @end: the end address of the range -* @pprev: the pointer to the pointer of the previous VMA -* -* Returns: True if there is an overlapping VMA, false otherwise -*/ -static inline -bool range_has_overlap (struct mm_struct *mm,unsigned long start, -unsigned long end,struct vm_area_struct **pprev) -{ -struct vm_area_struct *existing; - -MA_STATE (mas, &mm->mm_mt, start, start); -rcu_read_lock (); - existing =mas_find (&mas, end -1 ); - *pprev =mas_prev (&mas,0 ); -rcu_read_unlock (); -return existing ? true : false; -} -static unsigned long count_vma_pages_range (struct mm_struct *mm,unsigned long addr,unsigned long end) {
@@ -3194,9 +3170,7 @@ void exit_mmap(struct mm_struct *mm)*/ int insert_vm_struct (struct mm_struct *mm,struct vm_area_struct *vma) { -struct vm_area_struct *prev; - -if (range_has_overlap (mm, vma->vm_start, vma->vm_end, &prev)) +if (find_vma_intersection (mm, vma->vm_start, vma->vm_end))return -ENOMEM ; if ((vma->vm_flags & VM_ACCOUNT) &&
Signature · 1 line
2.34.1
PATCH v7 70/70 mm/mmap.c: Pass in mapping to __vma_link_file()
In reply to Liam Howlett__vma_link_file() resolves the mapping from the file, if there is one. Pass through the mapping and check the vm_file externally since most places already have the required information and check of vm_file.
--- mm/mmap.c | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-)
mm/mmap.c +20 -22
@@ -449,21 +449,15 @@ static unsigned long count_vma_pages_range(struct mm_struct *mm,return nr_pages; } -static void __vma_link_file (struct vm_area_struct *vma) +static void __vma_link_file (struct vm_area_struct *vma, +struct address_space *mapping) { -struct file *file; - - file = vma->vm_file; -if (file) { -struct address_space *mapping = file->f_mapping; - -if (vma->vm_flags &VM_SHARED ) -mapping_allow_writable (mapping); +if (vma->vm_flags &VM_SHARED ) +mapping_allow_writable (mapping); -flush_dcache_mmap_lock (mapping); -vma_interval_tree_insert (vma, &mapping->i_mmap); -flush_dcache_mmap_unlock (mapping); - } +flush_dcache_mmap_lock (mapping); +vma_interval_tree_insert (vma, &mapping->i_mmap); +flush_dcache_mmap_unlock (mapping); }/*
@@ -506,10 +500,11 @@ static void vma_link(struct mm_struct *mm, struct vm_area_struct *vma) }vma_store (mm, vma); -__vma_link_file (vma); -if (mapping) +if (mapping) { +__vma_link_file (vma, mapping);i_mmap_unlock_write (mapping); + } mm->map_count++;validate_mm (mm);
@@ -742,14 +737,14 @@ int __vma_adjust(struct vm_area_struct *vma, unsigned long start,uprobe_munmap (next, next->vm_start, next->vm_end);i_mmap_lock_write (mapping); -if (insert) { +if (insert && insert->vm_file) {/* * Put into interval tree now, so instantiated pages * are visible to arm/parisc __flush_dcache_page * throughout; but we cannot insert into address * space until vma start or end is updated. */ -__vma_link_file (insert); +__vma_link_file (insert, insert->vm_file->f_mapping); } }
@@ -2958,6 +2953,7 @@ static int do_brk_munmap(struct ma_state *mas, struct vm_area_struct *vma,static int do_brk_flags (struct ma_state *mas,struct vm_area_struct *vma,unsigned long addr,unsigned long len,unsigned long flags) { +struct address_space *mapping =NULL ;struct mm_struct *mm = current->mm;validate_mm_mt (mm);
@@ -3013,13 +3009,15 @@ static int do_brk_flags(struct ma_state *mas, struct vm_area_struct *vma, vma->vm_pgoff = addr >>PAGE_SHIFT ; vma->vm_flags = flags; vma->vm_page_prot =vm_get_page_prot (flags); -if (vma->vm_file) -i_mmap_lock_write (vma->vm_file->f_mapping); +if (vma->vm_file) { + mapping = vma->vm_file->f_mapping; +i_mmap_lock_write (mapping); + }vma_mas_store (vma, mas); mm->map_count++; -if (vma->vm_file) { -__vma_link_file (vma); -i_mmap_unlock_write (vma->vm_file->f_mapping); +if (mapping) { +__vma_link_file (vma, mapping); +i_mmap_unlock_write (mapping); } out:
Signature · 1 line
2.34.1
Andrew Morton
maintainerQuoted 1 line · On Mon, 4 Apr 2022 14:35:26 +0000 Liam Howlett <[email protected]> wrote:
Please add this patch set to your branch. They are based on v5.18-rc1.
Do we get a nice [0/n] cover letter telling us all about this?
I have that all merged up and it compiles.
https://lkml.kernel.org/r/[email protected] and
https://lkml.kernel.org/r/[email protected] are disabled for now.
Several patches were marked
From: Liam
Signed-off-by: Matthew
Signed-off-by: Liam
Which makes me wonder whether the attribution was correct. Please double-check.
I made a lame attempt to fix up mglru's get_next_vma(), and it probably wants a revisit in the maple-tree world anyway. Please check this and send me a better version ;)
mm/vmscan.c renamed from mm/vmscan.c~mglru-vs-maple-tree +3 -3
@@ -3704,7 +3704,7 @@ static bool get_next_vma(struct mm_walkwhile (walk->vma) {if (next >= walk->vma->vm_end) { - walk->vma = walk->vma->vm_next; + walk->vma =find_vma (walk->mm, walk->vma->vm_end);continue ; }
@@ -3712,7 +3712,7 @@ static bool get_next_vma(struct mm_walkreturn false;if (should_skip_vma (walk->vma->vm_start, walk->vma->vm_end, walk)) { - walk->vma = walk->vma->vm_next; + walk->vma =find_vma (walk->mm, walk->vma->vm_end);continue ; }
@@ -4062,7 +4062,7 @@ static void walk_mm(struct lruvec *lruve/* the caller might be holding the lock for write */ if (mmap_read_trylock (mm)) {unsigned long start = walk->next_addr; -unsigned long end = mm->highest_vm_end; +unsigned long end =TASK_SIZE ; err =walk_page_range (mm, start, end, &mm_walk_ops, walk);
I flung a tree up atgit://git.kernel.org/pub/scm/linux/kernel/git/akpm/mmtemp containing mglru and mapletree and a few other things. Could the mglru and mapletree people please runtime test it, send any fixes?
Quoted 19 lines · Andrew Morton
Quoted 1 line · On Mon, 4 Apr 2022 14:35:26 +0000 Liam Howlett <[email protected]> wrote:
Please add this patch set to your branch. They are based on v5.18-rc1.
Do we get a nice [0/n] cover letter telling us all about this?
I have that all merged up and it compiles.
https://lkml.kernel.org/r/[email protected] and
https://lkml.kernel.org/r/[email protected] are disabled for now.Several patches were marked
From: Liam
Signed-off-by: Matthew
Signed-off-by: Liam
Quoted 6 lines
Which makes me wonder whether the attribution was correct. Please double-check.
I made a lame attempt to fix up mglru's
get_next_vma(), and it probably wants a revisit in the maple-tree world anyway. Please check this and send me a better version ;)
Thanks. This looks good to me.
Quoted 30 lines
mm/vmscan.c renamed from mm/vmscan.c~mglru-vs-maple-tree +3
-3@@ -3704,7 +3704,7 @@ static bool get_next_vma(struct mm_walkwhile (walk->vma) {if (next >= walk->vma->vm_end) { - walk->vma = walk->vma->vm_next; + walk->vma =find_vma (walk->mm, walk->vma->vm_end);continue ; }@@ -3712,7 +3712,7 @@ static bool get_next_vma(struct mm_walkreturn false;if (should_skip_vma (walk->vma->vm_start, walk->vma->vm_end, walk)) { - walk->vma = walk->vma->vm_next; + walk->vma =find_vma (walk->mm, walk->vma->vm_end);continue ; }@@ -4062,7 +4062,7 @@ static void walk_mm(struct lruvec *lruve/* the caller might be holding the lock for write */ if (mmap_read_trylock (mm)) {unsigned long start = walk->next_addr; -unsigned long end = mm->highest_vm_end; +unsigned long end =TASK_SIZE ; err =walk_page_range (mm, start, end, &mm_walk_ops, walk);
Quoted 4 lines
I flung a tree up at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mmtempcontaining mglru and mapletree and a few other things. Could the mglru and mapletree people please runtime test it, send any fixes?
Will do.
Matthew Wilcox
maintainerQuoted 8 lines · Andrew Morton
Several patches were marked
From: Liam
Signed-off-by: Matthew
Signed-off-by: LiamWhich makes me wonder whether the attribution was correct. Please double-check.
I'll take responsibility for at least some of those confusions. As you might imagine, we've collaborated closely for several of these patches, and I may not always have got --author right when re-writing a patch. I don't think it fundumentally matters; nobody's promotion is riding on who gets credited for which patch ;-)
Quoted 13 lines · Andrew Morton
Quoted 1 line · On Mon, 4 Apr 2022 14:35:26 +0000 Liam Howlett <[email protected]> wrote:
Please add this patch set to your branch. They are based on v5.18-rc1.
Do we get a nice [0/n] cover letter telling us all about this?
I have that all merged up and it compiles.
https://lkml.kernel.org/r/[email protected] and
https://lkml.kernel.org/r/[email protected] are disabled for now.
Quoted 8 lines
Several patches were marked
From: Liam
Signed-off-by: Matthew
Signed-off-by: LiamWhich makes me wonder whether the attribution was correct. Please double-check.
I'll have a look, thanks.
Quoted 6 lines
I made a lame attempt to fix up mglru's
get_next_vma(), and it probably wants a revisit in the maple-tree world anyway. Please check this and send me a better version ;)
What you have below will function, but there is probably a more maple way of doing things. Happy to help get the sap flowing - it is that time of the year after all ;)
Quoted 32 lines
mm/vmscan.c renamed from mm/vmscan.c~mglru-vs-maple-tree +3
-3@@ -3704,7 +3704,7 @@ static bool get_next_vma(struct mm_walkwhile (walk->vma) {if (next >= walk->vma->vm_end) { - walk->vma = walk->vma->vm_next; + walk->vma =find_vma (walk->mm, walk->vma->vm_end);continue ; }@@ -3712,7 +3712,7 @@ static bool get_next_vma(struct mm_walkreturn false;if (should_skip_vma (walk->vma->vm_start, walk->vma->vm_end, walk)) { - walk->vma = walk->vma->vm_next; + walk->vma =find_vma (walk->mm, walk->vma->vm_end);continue ; }@@ -4062,7 +4062,7 @@ static void walk_mm(struct lruvec *lruve/* the caller might be holding the lock for write */ if (mmap_read_trylock (mm)) {unsigned long start = walk->next_addr; -unsigned long end = mm->highest_vm_end; +unsigned long end =TASK_SIZE ; err =walk_page_range (mm, start, end, &mm_walk_ops, walk);
Quoted 4 lines
I flung a tree up at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mmtempcontaining mglru and mapletree and a few other things. Could the mglru and mapletree people please runtime test it, send any fixes?
Sure thing.
Thanks,
Liam
Quoted 6 lines · Liam R. Howlett
Quoted 5 lines · Andrew Morton
Quoted 1 line · On Mon, 4 Apr 2022 14:35:26 +0000 Liam Howlett <[email protected]> wrote:
Please add this patch set to your branch. They are based on v5.18-rc1.
Do we get a nice [0/n] cover letter telling us all about this?
Here is a cover letter you can use:
The maple tree is an RCU-safe range based B-tree designed to use modern processor cache efficiently. There are a number of places in the kernel that a non-overlapping range-based tree would be beneficial, especially one with a simple interface. The first user that is covered in this patch set is the vm_area_struct, where three data structures are replaced by the maple tree: the augmented rbtree, the vma cache, and the linked list of VMAs in the mm_struct. The long term goal is to reduce or remove the mmap_sem contention.
The tree has a branching factor of 10 for non-leaf nodes and 16 for leaf nodes. With the increased branching factor, it is significantly shorter than the rbtree so it has fewer cache misses. The removal of the linked list between subsequent entries also reduces the cache misses and the need to pull in the previous and next VMA during many tree alterations.
This patch is based on v5.18-rc1
git: https://github.com/oracle/linux-uek/tree/howlett/maple/20220404
v7 changes:
- kernel/fork: Remove unused prev from dup_mmap()
- mm/mmap: Fix unmapped_area_topdown() and expand_downwards()
- mm/mmap: Make vma_store() static
- mm/mmap: Revert to using mmap_write_lock() on exit
- fs/coredump: Fix coredump_next_vma when there is no gate_vma on first call
- mm/mempolicy: Port Hugh's mempolicy fix
- mm/nommu: Add find_vma_intersection to nommu
- mm/damon: Fix stack size in damon_test_three_regions_in_vmas()
- maple_tree: Fix spanning store detection on ULONG_MAX
- maple_tree: Fix potential metadata off by one in mas_mab_cp() on final node
- maple_tree: Fix left max on rebalance
- maple_tree: Fix mas_reuse_node() zeroing
- maple_tree: Fix extend_null overflow
- maple_tree: Fix spanning store mast->r->max
- maple_tree: Fix node_size check for slow path in mas_wr_modify()
- maple_tree: Fix spanning store on two node rebalance
- maple_tree: Fix spanning store to a single root node
- maple_tree: Better protect mt_for_each() arguments
- maple_tree: maple_tree: Fix stack size
- maple_tree: Fix mas_dead_node() to work with BE and LE arch
v6: https://lore.kernel.org/linux-mm/[email protected]/
v5: https://lore.kernel.org/linux-mm/[email protected]/
v4: https://lore.kernel.org/linux-mm/[email protected]/
v3: https://lore.kernel.org/linux-mm/[email protected]/
v2: https://lore.kernel.org/linux-mm/[email protected]/
v1: https://lore.kernel.org/linux-mm/[email protected]/
Quoted 71 lines
Quoted 8 lines
I have that all merged up and it compiles.
https://lkml.kernel.org/r/[email protected] and
https://lkml.kernel.org/r/[email protected] are disabled for now.Quoted 8 lines
Several patches were marked
From: Liam
Signed-off-by: Matthew
Signed-off-by: LiamWhich makes me wonder whether the attribution was correct. Please double-check.
I'll have a look, thanks.
Quoted 6 lines
I made a lame attempt to fix up mglru's
get_next_vma(), and it probably wants a revisit in the maple-tree world anyway. Please check this and send me a better version ;)What you have below will function, but there is probably a more maple way of doing things. Happy to help get the sap flowing - it is that time of the year after all ;)
Quoted 32 lines
mm/vmscan.c renamed from mm/vmscan.c~mglru-vs-maple-tree +3
-3@@ -3704,7 +3704,7 @@ static bool get_next_vma(struct mm_walkwhile (walk->vma) {if (next >= walk->vma->vm_end) { - walk->vma = walk->vma->vm_next; + walk->vma =find_vma (walk->mm, walk->vma->vm_end);continue ; }@@ -3712,7 +3712,7 @@ static bool get_next_vma(struct mm_walkreturn false;if (should_skip_vma (walk->vma->vm_start, walk->vma->vm_end, walk)) { - walk->vma = walk->vma->vm_next; + walk->vma =find_vma (walk->mm, walk->vma->vm_end);continue ; }@@ -4062,7 +4062,7 @@ static void walk_mm(struct lruvec *lruve/* the caller might be holding the lock for write */ if (mmap_read_trylock (mm)) {unsigned long start = walk->next_addr; -unsigned long end = mm->highest_vm_end; +unsigned long end =TASK_SIZE ; err =walk_page_range (mm, start, end, &mm_walk_ops, walk);Quoted 4 lines
I flung a tree up at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mmtempcontaining mglru and mapletree and a few other things. Could the mglru and mapletree people please runtime test it, send any fixes?Sure thing.
Thanks,
Liam
Quoted 29 lines · Liam Howlett
Quoted 13 lines · Andrew Morton
Quoted 1 line · On Mon, 4 Apr 2022 14:35:26 +0000 Liam Howlett <[email protected]> wrote:
Please add this patch set to your branch. They are based on v5.18-rc1.
Do we get a nice [0/n] cover letter telling us all about this?
I have that all merged up and it compiles.
https://lkml.kernel.org/r/[email protected] and
https://lkml.kernel.org/r/[email protected] are disabled for now.Quoted 8 lines
Several patches were marked
From: Liam
Signed-off-by: Matthew
Signed-off-by: LiamWhich makes me wonder whether the attribution was correct. Please double-check.
I'll have a look, thanks.
Quoted 3 lines
Quoted 7 lines
Quoted 3 lines
I made a lame attempt to fix up mglru's
get_next_vma(), and it probably wants a revisit in the maple-tree world anyway. Please check this and send me a better version ;)What you have below will function, but there is probably a more maple way of doing things. Happy to help get the sap flowing - it is that time of the year after all ;)
Thanks. Please let me know when the more maple way is ready. I'll test with it.
Also I noticed, for the end address to walk_page_range(), Matthew used -1 and you used ULONG_MAX in the maple branch; Andrew used TASK_SIZE below. Having a single value throughout would be great.
Quoted 28 lines
Quoted 28 lines
mm/vmscan.c renamed from mm/vmscan.c~mglru-vs-maple-tree +3
-3@@ -3704,7 +3704,7 @@ static bool get_next_vma(struct mm_walkwhile (walk->vma) {if (next >= walk->vma->vm_end) { - walk->vma = walk->vma->vm_next; + walk->vma =find_vma (walk->mm, walk->vma->vm_end);continue ; }@@ -3712,7 +3712,7 @@ static bool get_next_vma(struct mm_walkreturn false;if (should_skip_vma (walk->vma->vm_start, walk->vma->vm_end, walk)) { - walk->vma = walk->vma->vm_next; + walk->vma =find_vma (walk->mm, walk->vma->vm_end);continue ; }@@ -4062,7 +4062,7 @@ static void walk_mm(struct lruvec *lruve/* the caller might be holding the lock for write */ if (mmap_read_trylock (mm)) {unsigned long start = walk->next_addr; -unsigned long end = mm->highest_vm_end; +unsigned long end =TASK_SIZE ; err =walk_page_range (mm, start, end, &mm_walk_ops, walk);
Quoted 38 lines · Yu Zhao
Quoted 29 lines · Liam Howlett
Quoted 13 lines · Andrew Morton
Quoted 1 line · On Mon, 4 Apr 2022 14:35:26 +0000 Liam Howlett <[email protected]> wrote:
Please add this patch set to your branch. They are based on v5.18-rc1.
Do we get a nice [0/n] cover letter telling us all about this?
I have that all merged up and it compiles.
https://lkml.kernel.org/r/[email protected] and
https://lkml.kernel.org/r/[email protected] are disabled for now.Quoted 8 lines
Several patches were marked
From: Liam
Signed-off-by: Matthew
Signed-off-by: LiamWhich makes me wonder whether the attribution was correct. Please double-check.
I'll have a look, thanks.
Quoted 3 lines
Quoted 7 lines
Quoted 3 lines
I made a lame attempt to fix up mglru's
get_next_vma(), and it probably wants a revisit in the maple-tree world anyway. Please check this and send me a better version ;)What you have below will function, but there is probably a more maple way of doing things. Happy to help get the sap flowing - it is that time of the year after all ;)
Quoted 5 lines
Thanks. Please let me know when the more maple way is ready. I'll test with it.
Also I noticed, for the end address to
walk_page_range(), Matthew used -1 and you usedULONG_MAXin the maple branch; Andrew usedTASK_SIZEbelow. Having a single value throughout would be great.
I think ULONG_MAX would be best, we should probably change the below to ULONG_MAX.
I don't see the code below in mglru-mapletree (62dd11ea8d). Am I on the right branch/commit?
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
mm/vmscan.c renamed from mm/vmscan.c~mglru-vs-maple-tree +3
-3@@ -3704,7 +3704,7 @@ static bool get_next_vma(struct mm_walkwhile (walk->vma) {if (next >= walk->vma->vm_end) { - walk->vma = walk->vma->vm_next; + walk->vma =find_vma (walk->mm, walk->vma->vm_end);continue ; }@@ -3712,7 +3712,7 @@ static bool get_next_vma(struct mm_walkreturn false;if (should_skip_vma (walk->vma->vm_start, walk->vma->vm_end, walk)) { - walk->vma = walk->vma->vm_next; + walk->vma =find_vma (walk->mm, walk->vma->vm_end);continue ; }@@ -4062,7 +4062,7 @@ static void walk_mm(struct lruvec *lruve/* the caller might be holding the lock for write */ if (mmap_read_trylock (mm)) {unsigned long start = walk->next_addr; -unsigned long end = mm->highest_vm_end; +unsigned long end =TASK_SIZE ; err =walk_page_range (mm, start, end, &mm_walk_ops, walk);
Andrew Morton
maintainerQuoted 6 lines · On Thu, 14 Apr 2022 17:15:26 +0000 Liam Howlett <[email protected]> wrote:
Quoted 3 lines
Also I noticed, for the end address to
walk_page_range(), Matthew used -1 and you usedULONG_MAXin the maple branch; Andrew usedTASK_SIZEbelow. Having a single value throughout would be great.I think
ULONG_MAXwould be best, we should probably change the below toULONG_MAX.
I switched it to ULONG_MAX/
Quoted 2 lines
I don't see the code below in mglru-mapletree (
62dd11ea8d). Am I on the right branch/commit?
oop, sorry, sleepy guy failed to include all the mglru patches! It should be fixed now (4e03b8e70232).
Quoted 9 lines · Andrew Morton
Quoted 6 lines · On Thu, 14 Apr 2022 17:15:26 +0000 Liam Howlett <[email protected]> wrote:
Quoted 3 lines
Also I noticed, for the end address to
walk_page_range(), Matthew used -1 and you usedULONG_MAXin the maple branch; Andrew usedTASK_SIZEbelow. Having a single value throughout would be great.I think
ULONG_MAXwould be best, we should probably change the below toULONG_MAX.
Quoted 7 lines
I switched it to ULONG_MAX/
Quoted 2 lines
I don't see the code below in mglru-mapletree (
62dd11ea8d). Am I on the right branch/commit?oop, sorry, sleepy guy failed to include all the mglru patches! It should be fixed now (
4e03b8e70232).
Hi Liam,
Mind taking a look? Thanks.
I used
1fe4e0d45c05 (HEAD) mm/vmscan: remove obsolete comment in get_scan_count
On aarch64:
arch/arm64/kernel/elfcore.c:120:2: error: no member named 'mmap' in 'struct mm_struct' arch/arm64/kernel/elfcore.c:120:2: error: no member named 'vm_next' in 'struct vm_area_struct' arch/arm64/kernel/elfcore.c:130:2: error: no member named 'mmap' in 'struct mm_struct' arch/arm64/kernel/elfcore.c:130:2: error: no member named 'vm_next' in 'struct vm_area_struct' arch/arm64/kernel/elfcore.c:13:23: note: expanded from macro 'for_each_mte_vma' arch/arm64/kernel/elfcore.c:13:45: note: expanded from macro 'for_each_mte_vma' arch/arm64/kernel/elfcore.c:85:2: error: no member named 'mmap' in 'struct mm_struct' arch/arm64/kernel/elfcore.c:85:2: error: no member named 'vm_next' in 'struct vm_area_struct' arch/arm64/kernel/elfcore.c:95:2: error: no member named 'mmap' in 'struct mm_struct' arch/arm64/kernel/elfcore.c:95:2: error: no member named 'vm_next' in 'struct vm_area_struct'
On x86_64:
watchdog: BUG: soft lockup - CPU#63 stuck for 18537s! [stress-ng-madvi:34799] RIP: 0010:mas_start+0x79/0xe0 Code: ff ff ff ff e8 38 c4 5f 00 85 c0 75 09 e8 3f 0b ad ff 85 c0 74 23 49 81 fe 01 10 00 00 72 4d 44 89 f0 83 e0 03 83 f8 02 75 42 <49> 83 e6 fd 4c 89 73 18 31 c0 5b 41 5e 5d c3 e8 23 c7 5f 00 85 c0 RSP: 0018:ffffa2ea6e04fd28 EFLAGS: 00000246 RAX: 0000000000000002 RBX: ffffa2ea6e04fd60 RCX: 9c6e876c4d865e00 RDX: ffffa2ea6e04fe08 RSI: 00000000ffffffff RDI: ffff95cab6754a58 RBP: ffffa2ea6e04fd38 R08: 0000000000000002 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffffffffffff R12: 0000000000000000 R13: 0000000000000000 R14: ffff9609a44ecf1e R15: ffffa2ea6e04fd60 FS: 0000000001cf6340(0000) GS:ffff96483fac0000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000001cfca68 CR3: 0000000243f1a002 CR4: 00000000001706e0 Call Trace: <TASK> mas_walk+0x2a/0x80 find_vma_prev+0x69/0xc0 do_madvise+0x14e/0x870 ? __vm_munmap+0x101/0x180 ? rcu_read_lock_sched_held+0x20/0xa0 ? syscall_enter_from_user_mode+0x26/0x170 ? trace_hardirqs_on+0x4e/0x60 __x64_sys_madvise+0x29/0x30 do_syscall_64+0x44/0xa0 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x589927
(stress-ng --class vm -a 20 -t 600s -temp-path /tmpdir/) (.config attached)
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 5.18.0 Kernel Configuration
#CONFIG_CC_VERSION_TEXT="clang version google3-trunk (5d7e0a23c6f2051d4caf8f8c8821790c40b584be)" CONFIG_GCC_VERSION=0CONFIG_CC_IS_CLANG=yCONFIG_CLANG_VERSION=99990000CONFIG_AS_IS_LLVM=yCONFIG_AS_VERSION=99990000CONFIG_LD_VERSION=0CONFIG_LD_IS_LLD=yCONFIG_LLD_VERSION=110666CONFIG_CC_CAN_LINK=yCONFIG_CC_CAN_LINK_STATIC=yCONFIG_CC_HAS_ASM_GOTO=yCONFIG_CC_HAS_ASM_GOTO_OUTPUT=yCONFIG_TOOLS_SUPPORT_RELR=yCONFIG_CC_HAS_ASM_INLINE=yCONFIG_PAHOLE_VERSION=120CONFIG_IRQ_WORK=yCONFIG_BUILDTIME_TABLE_SORT=yCONFIG_THREAD_INFO_IN_TASK=y
#
# General setup
#CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
# CONFIG_WERROR is not setCONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not setCONFIG_BUILD_SALT=""CONFIG_HAVE_KERNEL_GZIP=yCONFIG_HAVE_KERNEL_BZIP2=yCONFIG_HAVE_KERNEL_LZMA=yCONFIG_HAVE_KERNEL_XZ=yCONFIG_HAVE_KERNEL_LZO=yCONFIG_HAVE_KERNEL_LZ4=yCONFIG_HAVE_KERNEL_ZSTD=y
# CONFIG_KERNEL_GZIP is not set
# CONFIG_KERNEL_BZIP2 is not setCONFIG_KERNEL_LZMA=y
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
# CONFIG_KERNEL_ZSTD is not setCONFIG_DEFAULT_INIT=""CONFIG_DEFAULT_HOSTNAME="(none)"CONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_SYSVIPC_SYSCTL=yCONFIG_POSIX_MQUEUE=yCONFIG_POSIX_MQUEUE_SYSCTL=y
# CONFIG_WATCH_QUEUE is not setCONFIG_CROSS_MEMORY_ATTACH=yCONFIG_USELIB=yCONFIG_AUDIT=yCONFIG_HAVE_ARCH_AUDITSYSCALL=yCONFIG_AUDITSYSCALL=y
#
# IRQ subsystem
#CONFIG_GENERIC_IRQ_PROBE=yCONFIG_GENERIC_IRQ_SHOW=yCONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=yCONFIG_GENERIC_PENDING_IRQ=yCONFIG_GENERIC_IRQ_MIGRATION=yCONFIG_HARDIRQS_SW_RESEND=yCONFIG_IRQ_DOMAIN=yCONFIG_IRQ_DOMAIN_HIERARCHY=yCONFIG_GENERIC_MSI_IRQ=yCONFIG_GENERIC_MSI_IRQ_DOMAIN=yCONFIG_IRQ_MSI_IOMMU=yCONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=yCONFIG_GENERIC_IRQ_RESERVATION_MODE=yCONFIG_IRQ_FORCED_THREADING=yCONFIG_SPARSE_IRQ=y
# CONFIG_GENERIC_IRQ_DEBUGFS is not set
# end of IRQ subsystem
CONFIG_CLOCKSOURCE_WATCHDOG=yCONFIG_ARCH_CLOCKSOURCE_INIT=yCONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=yCONFIG_GENERIC_TIME_VSYSCALL=yCONFIG_GENERIC_CLOCKEVENTS=yCONFIG_GENERIC_CLOCKEVENTS_BROADCAST=yCONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=yCONFIG_GENERIC_CMOS_UPDATE=yCONFIG_HAVE_POSIX_CPU_TIMERS_TASK_WORK=yCONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
#
# Timers subsystem
#CONFIG_TICK_ONESHOT=yCONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not setCONFIG_NO_HZ_IDLE=y
# CONFIG_NO_HZ_FULL is not setCONFIG_NO_HZ=yCONFIG_HIGH_RES_TIMERS=yCONFIG_CLOCKSOURCE_WATCHDOG_MAX_SKEW_US=100
# end of Timers subsystem
CONFIG_BPF=yCONFIG_HAVE_EBPF_JIT=yCONFIG_ARCH_WANT_DEFAULT_BPF_JIT=y
#
# BPF subsystem
#CONFIG_BPF_SYSCALL=yCONFIG_BPF_JIT=y
# CONFIG_BPF_JIT_ALWAYS_ON is not setCONFIG_BPF_JIT_DEFAULT_ON=yCONFIG_BPF_UNPRIV_DEFAULT_OFF=y
# CONFIG_BPF_PRELOAD is not setCONFIG_BPF_LSM=y
# end of BPF subsystem
CONFIG_PREEMPT_NONE_BUILD=yCONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not setCONFIG_PREEMPT_COUNT=y
# CONFIG_PREEMPT_DYNAMIC is not set
# CONFIG_SCHED_CORE is not set
#
# CPU/Task time and stats accounting
#CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not setCONFIG_IRQ_TIME_ACCOUNTING=yCONFIG_HAVE_SCHED_AVG_IRQ=yCONFIG_BSD_PROCESS_ACCT=y
# CONFIG_BSD_PROCESS_ACCT_V3 is not setCONFIG_TASKSTATS=yCONFIG_TASK_DELAY_ACCT=yCONFIG_TASK_XACCT=yCONFIG_TASK_IO_ACCOUNTING=y
# CONFIG_PSI is not set
# end of CPU/Task time and stats accounting
CONFIG_CPU_ISOLATION=y
#
# RCU Subsystem
#CONFIG_TREE_RCU=y
# CONFIG_RCU_EXPERT is not setCONFIG_SRCU=yCONFIG_TREE_SRCU=yCONFIG_TASKS_RCU_GENERIC=yCONFIG_TASKS_RUDE_RCU=yCONFIG_TASKS_TRACE_RCU=yCONFIG_RCU_STALL_COMMON=yCONFIG_RCU_NEED_SEGCBLIST=y
# end of RCU Subsystem
CONFIG_IKCONFIG=yCONFIG_IKCONFIG_PROC=y
# CONFIG_IKHEADERS is not setCONFIG_LOG_BUF_SHIFT=20CONFIG_LOG_CPU_MAX_BUF_SHIFT=12CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13
# CONFIG_PRINTK_INDEX is not setCONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
#
# Scheduler features
#
# end of Scheduler features
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y CONFIG_CC_HAS_INT128=yCONFIG_ARCH_SUPPORTS_INT128=y
# CONFIG_NUMA_BALANCING is not setCONFIG_CGROUPS=yCONFIG_PAGE_COUNTER=yCONFIG_MEMCG=yCONFIG_MEMCG_SWAP=yCONFIG_MEMCG_KMEM=yCONFIG_BLK_CGROUP=yCONFIG_CGROUP_WRITEBACK=yCONFIG_CGROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=yCONFIG_CFS_BANDWIDTH=y
# CONFIG_RT_GROUP_SCHED is not set CONFIG_CGROUP_PIDS=y
# CONFIG_CGROUP_RDMA is not set CONFIG_CGROUP_FREEZER=yCONFIG_CGROUP_HUGETLB=yCONFIG_CPUSETS=yCONFIG_PROC_PID_CPUSET=yCONFIG_CGROUP_DEVICE=yCONFIG_CGROUP_CPUACCT=yCONFIG_CGROUP_PERF=yCONFIG_CGROUP_BPF=yCONFIG_CGROUP_MISC=y
# CONFIG_CGROUP_DEBUG is not set CONFIG_SOCK_CGROUP_DATA=yCONFIG_NAMESPACES=yCONFIG_UTS_NS=yCONFIG_TIME_NS=yCONFIG_IPC_NS=yCONFIG_USER_NS=yCONFIG_PID_NS=yCONFIG_NET_NS=yCONFIG_CHECKPOINT_RESTORE=y
# CONFIG_SCHED_AUTOGROUP is not set
# CONFIG_SYSFS_DEPRECATED is not setCONFIG_RELAY=yCONFIG_BLK_DEV_INITRD=y CONFIG_INITRAMFS_SOURCE="gbuild-obj/initramfs-symlink.cpio.xz" CONFIG_INITRAMFS_ROOT_UID=0 CONFIG_INITRAMFS_ROOT_GID=0CONFIG_RD_GZIP=yCONFIG_RD_BZIP2=yCONFIG_RD_LZMA=yCONFIG_RD_XZ=yCONFIG_RD_LZO=yCONFIG_RD_LZ4=yCONFIG_RD_ZSTD=y
# CONFIG_INITRAMFS_COMPRESSION_GZIP is not set
# CONFIG_INITRAMFS_COMPRESSION_BZIP2 is not set
# CONFIG_INITRAMFS_COMPRESSION_LZMA is not set CONFIG_INITRAMFS_COMPRESSION_XZ=y
# CONFIG_INITRAMFS_COMPRESSION_LZO is not set
# CONFIG_INITRAMFS_COMPRESSION_LZ4 is not set
# CONFIG_INITRAMFS_COMPRESSION_ZSTD is not set
# CONFIG_INITRAMFS_COMPRESSION_NONE is not set
# CONFIG_BOOT_CONFIG is not set CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_LD_ORPHAN_WARN=yCONFIG_SYSCTL=yCONFIG_HAVE_UID16=yCONFIG_SYSCTL_EXCEPTION_TRACE=y CONFIG_HAVE_PCSPKR_PLATFORM=yCONFIG_EXPERT=yCONFIG_UID16=yCONFIG_MULTIUSER=yCONFIG_SGETMASK_SYSCALL=yCONFIG_SYSFS_SYSCALL=yCONFIG_FHANDLE=yCONFIG_POSIX_TIMERS=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_PCSPKR_PLATFORM=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_FUTEX_PI=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_AIO=yCONFIG_IO_URING=yCONFIG_ADVISE_SYSCALLS=y CONFIG_HAVE_ARCH_USERFAULTFD_WP=y CONFIG_HAVE_ARCH_USERFAULTFD_MINOR=y CONFIG_MEMBARRIER=yCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=y CONFIG_KALLSYMS_ABSOLUTE_PERCPU=y CONFIG_KALLSYMS_BASE_RELATIVE=yCONFIG_USERFAULTFD=y CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=yCONFIG_KCMP=yCONFIG_RSEQ=y
# CONFIG_DEBUG_RSEQ is not set
# CONFIG_EMBEDDED is not set CONFIG_HAVE_PERF_EVENTS=yCONFIG_GUEST_PERF_EVENTS=y
# CONFIG_PC104 is not set
#
# Kernel Performance Events And Counters
#CONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
# end of Kernel Performance Events And Counters
CONFIG_VM_EVENT_COUNTERS=y
# CONFIG_COMPAT_BRK is not setCONFIG_SLAB=y
# CONFIG_SLUB is not set
# CONFIG_SLOB is not setCONFIG_SLAB_MERGE_DEFAULT=yCONFIG_SLAB_FREELIST_RANDOM=y
# CONFIG_SLAB_FREELIST_HARDENED is not setCONFIG_SHUFFLE_PAGE_ALLOCATOR=yCONFIG_PROFILING=yCONFIG_TRACEPOINTS=y
# end of General setup
CONFIG_64BIT=yCONFIG_X86_64=yCONFIG_X86=yCONFIG_INSTRUCTION_DECODER=yCONFIG_OUTPUT_FORMAT="elf64-x86-64"CONFIG_LOCKDEP_SUPPORT=yCONFIG_STACKTRACE_SUPPORT=yCONFIG_MMU=yCONFIG_ARCH_MMAP_RND_BITS_MIN=28CONFIG_ARCH_MMAP_RND_BITS_MAX=32CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16CONFIG_GENERIC_BUG=yCONFIG_GENERIC_BUG_RELATIVE_POINTERS=yCONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_ARCH_HAS_CPU_RELAX=yCONFIG_ARCH_HIBERNATION_POSSIBLE=yCONFIG_ARCH_NR_GPIO=1024CONFIG_ARCH_SUSPEND_POSSIBLE=yCONFIG_AUDIT_ARCH=yCONFIG_HAVE_INTEL_TXT=yCONFIG_X86_64_SMP=yCONFIG_ARCH_SUPPORTS_UPROBES=yCONFIG_FIX_EARLYCON_MEM=yCONFIG_DYNAMIC_PHYSICAL_MASK=yCONFIG_PGTABLE_LEVELS=5CONFIG_CC_HAS_SANE_STACKPROTECTOR=y
#
# Processor type and features
#CONFIG_SMP=yCONFIG_X86_FEATURE_NAMES=yCONFIG_X86_X2APIC=yCONFIG_X86_MPPARSE=y
# CONFIG_GOLDFISH is not set
# CONFIG_RETPOLINE is not setCONFIG_CC_HAS_SLS=y
# CONFIG_SLS is not setCONFIG_X86_CPU_RESCTRL=yCONFIG_X86_EXTENDED_PLATFORM=y
# CONFIG_X86_NUMACHIP is not set
# CONFIG_X86_VSMP is not set
# CONFIG_X86_UV is not set
# CONFIG_X86_GOLDFISH is not set
# CONFIG_X86_INTEL_MID is not set
# CONFIG_X86_INTEL_LPSS is not set
# CONFIG_X86_AMD_PLATFORM_DEVICE is not set
# CONFIG_IOSF_MBI is not setCONFIG_X86_SUPPORTS_MEMORY_FAILURE=yCONFIG_SCHED_OMIT_FRAME_POINTER=y
# CONFIG_HYPERVISOR_GUEST is not set
# CONFIG_MK8 is not set
# CONFIG_MPSC is not set
# CONFIG_MCORE2 is not set
# CONFIG_MATOM is not setCONFIG_GENERIC_CPU=yCONFIG_X86_INTERNODE_CACHE_SHIFT=6CONFIG_X86_L1_CACHE_SHIFT=6CONFIG_X86_TSC=yCONFIG_X86_CMPXCHG64=yCONFIG_X86_CMOV=yCONFIG_X86_MINIMUM_CPU_FAMILY=64CONFIG_X86_DEBUGCTLMSR=yCONFIG_IA32_FEAT_CTL=yCONFIG_X86_VMX_FEATURE_NAMES=y
# CONFIG_PROCESSOR_SELECT is not setCONFIG_CPU_SUP_INTEL=yCONFIG_CPU_SUP_AMD=yCONFIG_CPU_SUP_HYGON=yCONFIG_CPU_SUP_CENTAUR=yCONFIG_CPU_SUP_ZHAOXIN=yCONFIG_HPET_TIMER=yCONFIG_HPET_EMULATE_RTC=yCONFIG_DMI=y
# CONFIG_GART_IOMMU is not set
# CONFIG_MAXSMP is not setCONFIG_NR_CPUS_RANGE_BEGIN=2CONFIG_NR_CPUS_RANGE_END=512CONFIG_NR_CPUS_DEFAULT=64CONFIG_NR_CPUS=512CONFIG_SCHED_CLUSTER=yCONFIG_SCHED_SMT=yCONFIG_SCHED_MC=y
# CONFIG_SCHED_MC_PRIO is not setCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=yCONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=yCONFIG_X86_MCE=yCONFIG_X86_MCELOG_LEGACY=yCONFIG_X86_MCE_INTEL=yCONFIG_X86_MCE_AMD=yCONFIG_X86_MCE_THRESHOLD=yCONFIG_X86_MCE_INJECT=m
#
# Performance monitoring
#CONFIG_PERF_EVENTS_INTEL_UNCORE=yCONFIG_PERF_EVENTS_INTEL_RAPL=yCONFIG_PERF_EVENTS_INTEL_CSTATE=y
# CONFIG_PERF_EVENTS_AMD_POWER is not setCONFIG_PERF_EVENTS_AMD_UNCORE=y
# end of Performance monitoring
CONFIG_X86_16BIT=yCONFIG_X86_ESPFIX64=yCONFIG_X86_VSYSCALL_EMULATION=yCONFIG_X86_IOPL_IOPERM=yCONFIG_MICROCODE=yCONFIG_MICROCODE_INTEL=yCONFIG_MICROCODE_AMD=y
# CONFIG_MICROCODE_OLD_INTERFACE is not setCONFIG_X86_MSR=yCONFIG_X86_CPUID=yCONFIG_X86_5LEVEL=yCONFIG_X86_DIRECT_GBPAGES=y
# CONFIG_X86_CPA_STATISTICS is not setCONFIG_X86_MEM_ENCRYPT=yCONFIG_AMD_MEM_ENCRYPT=y
# CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT is not setCONFIG_NUMA=yCONFIG_AMD_NUMA=yCONFIG_X86_64_ACPI_NUMA=y
# CONFIG_NUMA_EMU is not setCONFIG_NODES_SHIFT=4CONFIG_ARCH_SPARSEMEM_ENABLE=yCONFIG_ARCH_SPARSEMEM_DEFAULT=yCONFIG_ARCH_PROC_KCORE_TEXT=yCONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
# CONFIG_X86_PMEM_LEGACY is not set
# CONFIG_X86_CHECK_BIOS_CORRUPTION is not setCONFIG_MTRR=y
# CONFIG_MTRR_SANITIZER is not setCONFIG_X86_PAT=yCONFIG_ARCH_USES_PG_UNCACHED=yCONFIG_ARCH_RANDOM=yCONFIG_X86_SMAP=yCONFIG_X86_UMIP=yCONFIG_CC_HAS_IBT=y
# CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS is not setCONFIG_X86_INTEL_TSX_MODE_OFF=y
# CONFIG_X86_INTEL_TSX_MODE_ON is not set
# CONFIG_X86_INTEL_TSX_MODE_AUTO is not set
# CONFIG_X86_SGX is not setCONFIG_EFI=y
# CONFIG_EFI_STUB is not set
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not setCONFIG_HZ_1000=yCONFIG_HZ=1000CONFIG_SCHED_HRTICK=yCONFIG_KEXEC=y
# CONFIG_KEXEC_FILE is not setCONFIG_CRASH_DUMP=yCONFIG_PHYSICAL_START=0x1000000CONFIG_RELOCATABLE=yCONFIG_RANDOMIZE_BASE=yCONFIG_X86_NEED_RELOCS=yCONFIG_PHYSICAL_ALIGN=0x200000CONFIG_DYNAMIC_MEMORY_LAYOUT=yCONFIG_RANDOMIZE_MEMORY=yCONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0x0CONFIG_HOTPLUG_CPU=y
# CONFIG_BOOTPARAM_HOTPLUG_CPU0 is not set
# CONFIG_DEBUG_HOTPLUG_CPU0 is not set
# CONFIG_COMPAT_VDSO is not set
# CONFIG_LEGACY_VSYSCALL_EMULATE is not setCONFIG_LEGACY_VSYSCALL_XONLY=y
# CONFIG_LEGACY_VSYSCALL_NONE is not setCONFIG_CMDLINE_BOOL=yCONFIG_CMDLINE="oops=panic panic=10 io_delay=0xed libata.allow_tpm=1 nmi_watchdog=panic tco_start=1 quiet slab_nomerge fb_tunnels=none firmware_class.path=/var/google/session acpi_enforce_resources=lax video=efifb:off hest_disable=1 erst_disable=1 bert_disable=1 eagerfpu=on kvm_amd.nested=0 kvm_intel.pml=0 debug_pagealloc=on" # CONFIG_CMDLINE_OVERRIDE is not setCONFIG_MODIFY_LDT_SYSCALL=y
# CONFIG_STRICT_SIGALTSTACK_SIZE is not setCONFIG_HAVE_LIVEPATCH=y
# CONFIG_LIVEPATCH is not set
# end of Processor type and features
CONFIG_ARCH_HAS_ADD_PAGES=yCONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=y
#
# Power management and ACPI options
#CONFIG_SUSPEND=yCONFIG_SUSPEND_FREEZER=y
# CONFIG_SUSPEND_SKIP_SYNC is not set
# CONFIG_HIBERNATION is not setCONFIG_PM_SLEEP=yCONFIG_PM_SLEEP_SMP=y
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_PM_WAKELOCKS is not setCONFIG_PM=yCONFIG_PM_DEBUG=y
# CONFIG_PM_ADVANCED_DEBUG is not set
# CONFIG_PM_TEST_SUSPEND is not setCONFIG_PM_SLEEP_DEBUG=y
# CONFIG_DPM_WATCHDOG is not setCONFIG_PM_TRACE=yCONFIG_PM_TRACE_RTC=yCONFIG_PM_CLK=y
# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set
# CONFIG_ENERGY_MODEL is not setCONFIG_ARCH_SUPPORTS_ACPI=yCONFIG_ACPI=yCONFIG_ACPI_LEGACY_TABLES_LOOKUP=yCONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=yCONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=y
# CONFIG_ACPI_DEBUGGER is not setCONFIG_ACPI_SPCR_TABLE=y
# CONFIG_ACPI_FPDT is not setCONFIG_ACPI_LPIT=yCONFIG_ACPI_SLEEP=yCONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y
# CONFIG_ACPI_EC_DEBUGFS is not setCONFIG_ACPI_AC=yCONFIG_ACPI_BATTERY=yCONFIG_ACPI_BUTTON=yCONFIG_ACPI_FAN=y
# CONFIG_ACPI_TAD is not set
# CONFIG_ACPI_DOCK is not setCONFIG_ACPI_CPU_FREQ_PSS=yCONFIG_ACPI_PROCESSOR_CSTATE=yCONFIG_ACPI_PROCESSOR_IDLE=yCONFIG_ACPI_PROCESSOR=y
# CONFIG_ACPI_IPMI is not setCONFIG_ACPI_HOTPLUG_CPU=y
# CONFIG_ACPI_PROCESSOR_AGGREGATOR is not setCONFIG_ACPI_THERMAL=mCONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=yCONFIG_ACPI_TABLE_UPGRADE=y
# CONFIG_ACPI_DEBUG is not set
# CONFIG_ACPI_PCI_SLOT is not setCONFIG_ACPI_CONTAINER=yCONFIG_ACPI_HOTPLUG_IOAPIC=y
# CONFIG_ACPI_SBS is not set
# CONFIG_ACPI_HED is not set
# CONFIG_ACPI_CUSTOM_METHOD is not set
# CONFIG_ACPI_BGRT is not set
# CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not setCONFIG_ACPI_NFIT=y
# CONFIG_NFIT_SECURITY_DEBUG is not setCONFIG_ACPI_NUMA=y
# CONFIG_ACPI_HMAT is not setCONFIG_HAVE_ACPI_APEI=yCONFIG_HAVE_ACPI_APEI_NMI=yCONFIG_ACPI_APEI=y
# CONFIG_ACPI_APEI_GHES is not setCONFIG_ACPI_APEI_EINJ=m
# CONFIG_ACPI_APEI_ERST_DEBUG is not set
# CONFIG_ACPI_DPTF is not set
# CONFIG_ACPI_CONFIGFS is not set
# CONFIG_ACPI_PFRUT is not set
# CONFIG_PMIC_OPREGION is not setCONFIG_X86_PM_TIMER=yCONFIG_ACPI_PRMT=y
#
# CPU Frequency scaling
#CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_GOV_ATTR_SET=y CONFIG_CPU_FREQ_GOV_COMMON=y CONFIG_CPU_FREQ_STAT=y CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=m CONFIG_CPU_FREQ_GOV_USERSPACE=m CONFIG_CPU_FREQ_GOV_ONDEMAND=m
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set # CONFIG_CPU_FREQ_GOV_SCHEDUTIL is not set
#
# CPU frequency scaling drivers
#
# CONFIG_X86_INTEL_PSTATE is not set
# CONFIG_X86_PCC_CPUFREQ is not set
# CONFIG_X86_AMD_PSTATE is not setCONFIG_X86_ACPI_CPUFREQ=mCONFIG_X86_ACPI_CPUFREQ_CPB=yCONFIG_X86_POWERNOW_K8=m
# CONFIG_X86_AMD_FREQ_SENSITIVITY is not setCONFIG_X86_SPEEDSTEP_CENTRINO=m
# CONFIG_X86_P4_CLOCKMOD is not set
#
# shared options # # end of CPU Frequency scaling
#
# CPU Idle
#CONFIG_CPU_IDLE=y
# CONFIG_CPU_IDLE_GOV_LADDER is not setCONFIG_CPU_IDLE_GOV_MENU=y
# CONFIG_CPU_IDLE_GOV_TEO is not set
# end of CPU Idle
CONFIG_INTEL_IDLE=y
# end of Power management and ACPI options
#
# Bus options (PCI etc.)
#CONFIG_PCI_DIRECT=yCONFIG_PCI_MMCONFIG=yCONFIG_MMCONF_FAM10H=y
# CONFIG_PCI_CNB20LE_QUIRK is not set
# CONFIG_ISA_BUS is not set
# CONFIG_ISA_DMA_API is not setCONFIG_AMD_NB=y
# end of Bus options (PCI etc.)
#
# Binary Emulations
#CONFIG_IA32_EMULATION=yCONFIG_COMPAT_32=yCONFIG_COMPAT=yCONFIG_COMPAT_FOR_U64_ALIGNMENT=yCONFIG_SYSVIPC_COMPAT=y
# end of Binary Emulations
CONFIG_HAVE_KVM=yCONFIG_HAVE_KVM_PFNCACHE=yCONFIG_HAVE_KVM_IRQCHIP=yCONFIG_HAVE_KVM_IRQFD=yCONFIG_HAVE_KVM_IRQ_ROUTING=yCONFIG_HAVE_KVM_DIRTY_RING=yCONFIG_HAVE_KVM_EVENTFD=yCONFIG_KVM_MMIO=yCONFIG_KVM_ASYNC_PF=yCONFIG_HAVE_KVM_MSI=yCONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=yCONFIG_KVM_VFIO=yCONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=yCONFIG_KVM_COMPAT=yCONFIG_HAVE_KVM_IRQ_BYPASS=yCONFIG_HAVE_KVM_NO_POLL=yCONFIG_KVM_XFER_TO_GUEST_WORK=yCONFIG_HAVE_KVM_PM_NOTIFIER=yCONFIG_VIRTUALIZATION=yCONFIG_KVM=yCONFIG_KVM_WERROR=yCONFIG_KVM_INTEL=yCONFIG_KVM_AMD=yCONFIG_KVM_AMD_SEV=y
# CONFIG_KVM_XEN is not setCONFIG_AS_AVX512=yCONFIG_AS_SHA1_NI=yCONFIG_AS_SHA256_NI=yCONFIG_AS_TPAUSE=y
#
# General architecture-dependent options
#CONFIG_CRASH_CORE=yCONFIG_KEXEC_CORE=yCONFIG_HOTPLUG_SMT=yCONFIG_GENERIC_ENTRY=yCONFIG_KPROBES=yCONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not set
# CONFIG_STATIC_CALL_SELFTEST is not set CONFIG_OPTPROBES=y CONFIG_KPROBES_ON_FTRACE=yCONFIG_UPROBES=y CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_KRETPROBES=y CONFIG_KRETPROBE_ON_RETHOOK=y CONFIG_USER_RETURN_NOTIFIER=y CONFIG_HAVE_IOREMAP_PROT=y CONFIG_HAVE_KPROBES=y CONFIG_HAVE_KRETPROBES=y CONFIG_HAVE_OPTPROBES=y CONFIG_HAVE_KPROBES_ON_FTRACE=y CONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE=y CONFIG_HAVE_FUNCTION_ERROR_INJECTION=y CONFIG_HAVE_NMI=y CONFIG_TRACE_IRQFLAGS_SUPPORT=y CONFIG_HAVE_ARCH_TRACEHOOK=y CONFIG_HAVE_DMA_CONTIGUOUS=y CONFIG_GENERIC_SMP_IDLE_THREAD=y CONFIG_ARCH_HAS_FORTIFY_SOURCE=y CONFIG_ARCH_HAS_SET_MEMORY=y CONFIG_ARCH_HAS_SET_DIRECT_MAP=y CONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=y CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y CONFIG_ARCH_WANTS_NO_INSTR=y CONFIG_HAVE_ASM_MODVERSIONS=y CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y CONFIG_HAVE_RSEQ=y CONFIG_HAVE_FUNCTION_ARG_ACCESS_API=y CONFIG_HAVE_HW_BREAKPOINT=y CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y CONFIG_HAVE_USER_RETURN_NOTIFIER=y CONFIG_HAVE_PERF_EVENTS_NMI=y CONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=y CONFIG_HAVE_PERF_REGS=y CONFIG_HAVE_PERF_USER_STACK_DUMP=y CONFIG_HAVE_ARCH_JUMP_LABEL=y CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=y CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y CONFIG_HAVE_CMPXCHG_LOCAL=y CONFIG_HAVE_CMPXCHG_DOUBLE=y CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y CONFIG_ARCH_WANT_OLD_COMPAT_IPC=y CONFIG_HAVE_ARCH_SECCOMP=y CONFIG_HAVE_ARCH_SECCOMP_FILTER=y CONFIG_SECCOMP=yCONFIG_SECCOMP_FILTER=y
# CONFIG_SECCOMP_CACHE_DEBUG is not set CONFIG_HAVE_ARCH_STACKLEAK=y CONFIG_HAVE_STACKPROTECTOR=y CONFIG_STACKPROTECTOR=y CONFIG_STACKPROTECTOR_STRONG=y CONFIG_ARCH_SUPPORTS_LTO_CLANG=y CONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=y CONFIG_HAS_LTO_CLANG=yCONFIG_LTO_NONE=y
# CONFIG_LTO_CLANG_FULL is not set
# CONFIG_LTO_CLANG_THIN is not set CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=y CONFIG_HAVE_CONTEXT_TRACKING=y CONFIG_HAVE_CONTEXT_TRACKING_OFFSTACK=y CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y CONFIG_HAVE_MOVE_PUD=y CONFIG_HAVE_MOVE_PMD=y CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y CONFIG_HAVE_ARCH_HUGE_VMAP=y CONFIG_HAVE_ARCH_HUGE_VMALLOC=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_HAVE_ARCH_SOFT_DIRTY=y CONFIG_HAVE_MOD_ARCH_SPECIFIC=y CONFIG_MODULES_USE_ELF_RELA=y CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y CONFIG_HAVE_SOFTIRQ_ON_OWN_STACK=y CONFIG_ARCH_HAS_ELF_RANDOMIZE=y CONFIG_HAVE_ARCH_MMAP_RND_BITS=y CONFIG_HAVE_EXIT_THREAD=y CONFIG_ARCH_MMAP_RND_BITS=28 CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=y CONFIG_ARCH_MMAP_RND_COMPAT_BITS=8 CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES=y CONFIG_PAGE_SIZE_LESS_THAN_64KB=y CONFIG_PAGE_SIZE_LESS_THAN_256KB=y CONFIG_HAVE_STACK_VALIDATION=y CONFIG_HAVE_RELIABLE_STACKTRACE=y CONFIG_OLD_SIGSUSPEND3=y CONFIG_COMPAT_OLD_SIGACTION=y CONFIG_COMPAT_32BIT_TIME=y CONFIG_HAVE_ARCH_VMAP_STACK=y CONFIG_VMAP_STACK=y CONFIG_HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET=y CONFIG_RANDOMIZE_KSTACK_OFFSET=y
# CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT is not set CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y CONFIG_STRICT_KERNEL_RWX=y CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y CONFIG_STRICT_MODULE_RWX=y CONFIG_HAVE_ARCH_PREL32_RELOCATIONS=y CONFIG_ARCH_USE_MEMREMAP_PROT=y
# CONFIG_LOCK_EVENT_COUNTS is not set CONFIG_ARCH_HAS_MEM_ENCRYPT=y CONFIG_ARCH_HAS_CC_PLATFORM=y CONFIG_HAVE_STATIC_CALL=y CONFIG_HAVE_STATIC_CALL_INLINE=y CONFIG_HAVE_PREEMPT_DYNAMIC=y CONFIG_HAVE_PREEMPT_DYNAMIC_CALL=y CONFIG_ARCH_WANT_LD_ORPHAN_WARN=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_SUPPORTS_PAGE_TABLE_CHECK=y CONFIG_ARCH_HAS_ELFCORE_COMPAT=y CONFIG_ARCH_HAS_PARANOID_L1D_FLUSH=y CONFIG_DYNAMIC_SIGFRAME=y
#
# GCOV-based kernel profiling
#CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# end of GCOV-based kernel profiling
CONFIG_HAVE_GCC_PLUGINS=y
# end of General architecture-dependent options
CONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not set CONFIG_MODULE_UNLOAD=y CONFIG_MODULE_FORCE_UNLOAD=yCONFIG_MODVERSIONS=yCONFIG_ASM_MODVERSIONS=y
# CONFIG_MODULE_SRCVERSION_ALL is not set
# CONFIG_MODULE_SIG is not set CONFIG_MODULE_COMPRESS_NONE=y
# CONFIG_MODULE_COMPRESS_GZIP is not set
# CONFIG_MODULE_COMPRESS_XZ is not set
# CONFIG_MODULE_COMPRESS_ZSTD is not set
# CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is not set CONFIG_MODPROBE_PATH="/sbin/modprobe"
# CONFIG_TRIM_UNUSED_KSYMS is not set CONFIG_MODULES_TREE_LOOKUP=yCONFIG_BLOCK=yCONFIG_BLOCK_LEGACY_AUTOLOAD=y CONFIG_BLK_CGROUP_RWSTAT=y CONFIG_BLK_DEV_BSG_COMMON=yCONFIG_BLK_ICQ=yCONFIG_BLK_DEV_BSGLIB=y
# CONFIG_BLK_DEV_INTEGRITY is not set
# CONFIG_BLK_DEV_ZONED is not set CONFIG_BLK_DEV_THROTTLING=y
# CONFIG_BLK_DEV_THROTTLING_LOW is not set
# CONFIG_BLK_WBT is not set
# CONFIG_BLK_CGROUP_IOLATENCY is not set
# CONFIG_BLK_CGROUP_IOCOST is not set
# CONFIG_BLK_CGROUP_IOPRIO is not set CONFIG_BLK_DEBUG_FS=yCONFIG_BLK_SED_OPAL=y
# CONFIG_BLK_INLINE_ENCRYPTION is not set
#
# Partition Types
#CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_AIX_PARTITION is not set
# CONFIG_OSF_PARTITION is not set
# CONFIG_AMIGA_PARTITION is not set
# CONFIG_ATARI_PARTITION is not set
# CONFIG_MAC_PARTITION is not setCONFIG_MSDOS_PARTITION=y
# CONFIG_BSD_DISKLABEL is not set
# CONFIG_MINIX_SUBPARTITION is not set
# CONFIG_SOLARIS_X86_PARTITION is not set
# CONFIG_UNIXWARE_DISKLABEL is not set
# CONFIG_LDM_PARTITION is not set
# CONFIG_SGI_PARTITION is not set
# CONFIG_ULTRIX_PARTITION is not set
# CONFIG_SUN_PARTITION is not set
# CONFIG_KARMA_PARTITION is not setCONFIG_EFI_PARTITION=y
# CONFIG_SYSV68_PARTITION is not set
# CONFIG_CMDLINE_PARTITION is not set
# end of Partition Types
CONFIG_BLOCK_COMPAT=yCONFIG_BLK_MQ_PCI=yCONFIG_BLK_MQ_VIRTIO=yCONFIG_BLK_MQ_RDMA=yCONFIG_BLK_PM=yCONFIG_BLOCK_HOLDER_DEPRECATED=yCONFIG_BLK_MQ_STACKING=y
#
# IO Schedulers
#CONFIG_MQ_IOSCHED_DEADLINE=yCONFIG_MQ_IOSCHED_KYBER=yCONFIG_IOSCHED_BFQ=yCONFIG_BFQ_GROUP_IOSCHED=y
# CONFIG_BFQ_CGROUP_DEBUG is not set
# end of IO Schedulers
CONFIG_PREEMPT_NOTIFIERS=yCONFIG_ASN1=mCONFIG_UNINLINE_SPIN_UNLOCK=yCONFIG_ARCH_SUPPORTS_ATOMIC_RMW=yCONFIG_MUTEX_SPIN_ON_OWNER=yCONFIG_RWSEM_SPIN_ON_OWNER=yCONFIG_LOCK_SPIN_ON_OWNER=yCONFIG_ARCH_USE_QUEUED_SPINLOCKS=yCONFIG_QUEUED_SPINLOCKS=yCONFIG_ARCH_USE_QUEUED_RWLOCKS=yCONFIG_QUEUED_RWLOCKS=yCONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE=yCONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE=yCONFIG_ARCH_HAS_SYSCALL_WRAPPER=yCONFIG_FREEZER=y
#
# Executable file formats
#CONFIG_BINFMT_ELF=yCONFIG_COMPAT_BINFMT_ELF=yCONFIG_ELFCORE=yCONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=yCONFIG_BINFMT_SCRIPT=yCONFIG_BINFMT_MISC=yCONFIG_COREDUMP=y
# end of Executable file formats
#
# Memory Management options
#CONFIG_SPARSEMEM=y CONFIG_SPARSEMEM_EXTREME=y CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y CONFIG_SPARSEMEM_VMEMMAP=y CONFIG_HAVE_FAST_GUP=y CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
# CONFIG_MEMORY_HOTPLUG is not set CONFIG_SPLIT_PTLOCK_CPUS=4 CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y CONFIG_MEMORY_BALLOON=y CONFIG_BALLOON_COMPACTION=y CONFIG_COMPACTION=yCONFIG_PAGE_REPORTING=yCONFIG_MIGRATION=y CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=y CONFIG_ARCH_ENABLE_THP_MIGRATION=y CONFIG_PHYS_ADDR_T_64BIT=y CONFIG_VIRT_TO_BUS=yCONFIG_MMU_NOTIFIER=y
# CONFIG_KSM is not set CONFIG_DEFAULT_MMAP_MIN_ADDR=65536 CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y
# CONFIG_MEMORY_FAILURE is not set CONFIG_TRANSPARENT_HUGEPAGE=y CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_WANTS_THP_SWAP=y CONFIG_THP_SWAP=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_USE_PERCPU_NUMA_NODE_ID=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_FRONTSWAP=y
# CONFIG_CMA is not set CONFIG_MEM_SOFT_DIRTY=yCONFIG_ZSWAP=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_DEFLATE is not set CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZO=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_842 is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4 is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4HC is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD is not set CONFIG_ZSWAP_COMPRESSOR_DEFAULT="lzo" CONFIG_ZSWAP_ZPOOL_DEFAULT_ZBUD=y
# CONFIG_ZSWAP_ZPOOL_DEFAULT_Z3FOLD is not set # CONFIG_ZSWAP_ZPOOL_DEFAULT_ZSMALLOC is not set CONFIG_ZSWAP_ZPOOL_DEFAULT="zbud"
# CONFIG_ZSWAP_DEFAULT_ON is not set CONFIG_ZPOOL=yCONFIG_ZBUD=y
# CONFIG_Z3FOLD is not setCONFIG_ZSMALLOC=y
# CONFIG_ZSMALLOC_STAT is not set CONFIG_GENERIC_EARLY_IOREMAP=y
# CONFIG_DEFERRED_STRUCT_PAGE_INIT is not set CONFIG_PAGE_IDLE_FLAG=y CONFIG_IDLE_PAGE_TRACKING=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_ARCH_HAS_CURRENT_STACK_POINTER=y CONFIG_ARCH_HAS_VM_GET_PAGE_PROT=y CONFIG_ARCH_HAS_PTE_DEVMAP=y CONFIG_ARCH_HAS_ZONE_DMA_SET=y
# CONFIG_ZONE_DMA is not set CONFIG_ZONE_DMA32=yCONFIG_HMM_MIRROR=y
# CONFIG_PERCPU_STATS is not set
# CONFIG_GUP_TEST is not set
# CONFIG_READ_ONLY_THP_FOR_FS is not set CONFIG_ARCH_HAS_PTE_SPECIAL=y CONFIG_SECRETMEM=y
# CONFIG_ANON_VMA_NAME is not set CONFIG_PTE_MARKER=y CONFIG_PTE_MARKER_UFFD_WP=y
#
# Data Access Monitoring
#
# CONFIG_DAMON is not set
# end of Data Access Monitoring # end of Memory Management options
CONFIG_NET=yCONFIG_NET_INGRESS=yCONFIG_NET_EGRESS=yCONFIG_NET_REDIRECT=yCONFIG_SKB_EXTENSIONS=y
#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_DIAG=yCONFIG_UNIX=yCONFIG_UNIX_SCM=yCONFIG_AF_UNIX_OOB=yCONFIG_UNIX_DIAG=y
# CONFIG_TLS is not setCONFIG_XFRM=y
# CONFIG_XFRM_USER is not set
# CONFIG_XFRM_INTERFACE is not set
# CONFIG_XFRM_SUB_POLICY is not set
# CONFIG_XFRM_MIGRATE is not set
# CONFIG_XFRM_STATISTICS is not set
# CONFIG_NET_KEY is not set
# CONFIG_SMC is not setCONFIG_XDP_SOCKETS=y
# CONFIG_XDP_SOCKETS_DIAG is not setCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=y
# CONFIG_IP_FIB_TRIE_STATS is not setCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_MULTIPATH=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_ROUTE_CLASSID=y
# CONFIG_IP_PNP is not setCONFIG_NET_IPIP=yCONFIG_NET_IPGRE_DEMUX=yCONFIG_NET_IP_TUNNEL=yCONFIG_NET_IPGRE=y
# CONFIG_NET_IPGRE_BROADCAST is not set
# CONFIG_IP_MROUTE is not setCONFIG_SYN_COOKIES=y
# CONFIG_NET_IPVTI is not setCONFIG_NET_UDP_TUNNEL=yCONFIG_NET_FOU=yCONFIG_NET_FOU_IP_TUNNELS=y
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not setCONFIG_INET_TUNNEL=yCONFIG_INET_DIAG=yCONFIG_INET_TCP_DIAG=yCONFIG_INET_UDP_DIAG=y
# CONFIG_INET_RAW_DIAG is not setCONFIG_INET_DIAG_DESTROY=yCONFIG_TCP_CONG_ADVANCED=y
# CONFIG_TCP_CONG_BIC is not setCONFIG_TCP_CONG_CUBIC=y
# CONFIG_TCP_CONG_WESTWOOD is not set
# CONFIG_TCP_CONG_HTCP is not set
# CONFIG_TCP_CONG_HSTCP is not set
# CONFIG_TCP_CONG_HYBLA is not set
# CONFIG_TCP_CONG_VEGAS is not set
# CONFIG_TCP_CONG_NV is not set
# CONFIG_TCP_CONG_SCALABLE is not set
# CONFIG_TCP_CONG_LP is not set
# CONFIG_TCP_CONG_VENO is not set
# CONFIG_TCP_CONG_YEAH is not set
# CONFIG_TCP_CONG_ILLINOIS is not setCONFIG_TCP_CONG_DCTCP=m
# CONFIG_TCP_CONG_CDG is not setCONFIG_TCP_CONG_BBR=yCONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_BBR is not set
# CONFIG_DEFAULT_RENO is not setCONFIG_DEFAULT_TCP_CONG="cubic"CONFIG_TCP_MD5SIG=yCONFIG_IPV6=y
# CONFIG_IPV6_ROUTER_PREF is not set
# CONFIG_IPV6_OPTIMISTIC_DAD is not set
# CONFIG_INET6_AH is not set
# CONFIG_INET6_ESP is not set
# CONFIG_INET6_IPCOMP is not set
# CONFIG_IPV6_MIP6 is not set
# CONFIG_IPV6_ILA is not setCONFIG_INET6_TUNNEL=y
# CONFIG_IPV6_VTI is not setCONFIG_IPV6_SIT=yCONFIG_IPV6_SIT_6RD=yCONFIG_IPV6_NDISC_NODETYPE=yCONFIG_IPV6_TUNNEL=yCONFIG_IPV6_GRE=yCONFIG_IPV6_FOU=yCONFIG_IPV6_FOU_TUNNEL=yCONFIG_IPV6_MULTIPLE_TABLES=y
# CONFIG_IPV6_SUBTREES is not set
# CONFIG_IPV6_MROUTE is not set
# CONFIG_IPV6_SEG6_LWTUNNEL is not set
# CONFIG_IPV6_SEG6_HMAC is not set
# CONFIG_IPV6_RPL_LWTUNNEL is not set
# CONFIG_IPV6_IOAM6_LWTUNNEL is not set
# CONFIG_NETLABEL is not set
# CONFIG_MPTCP is not set
# CONFIG_NETWORK_SECMARK is not setCONFIG_NET_PTP_CLASSIFY=y
# CONFIG_NETWORK_PHY_TIMESTAMPING is not setCONFIG_NETFILTER=yCONFIG_NETFILTER_ADVANCED=yCONFIG_BRIDGE_NETFILTER=m
#
# Core Netfilter Configuration
#CONFIG_NETFILTER_INGRESS=yCONFIG_NETFILTER_EGRESS=yCONFIG_NETFILTER_SKIP_EGRESS=yCONFIG_NETFILTER_NETLINK=mCONFIG_NETFILTER_FAMILY_BRIDGE=yCONFIG_NETFILTER_FAMILY_ARP=y
# CONFIG_NETFILTER_NETLINK_ACCT is not setCONFIG_NETFILTER_NETLINK_QUEUE=mCONFIG_NETFILTER_NETLINK_LOG=m
# CONFIG_NETFILTER_NETLINK_OSF is not setCONFIG_NF_CONNTRACK=mCONFIG_NF_LOG_SYSLOG=mCONFIG_NETFILTER_CONNCOUNT=mCONFIG_NF_CONNTRACK_MARK=y
# CONFIG_NF_CONNTRACK_ZONES is not setCONFIG_NF_CONNTRACK_PROCFS=yCONFIG_NF_CONNTRACK_EVENTS=y
# CONFIG_NF_CONNTRACK_TIMEOUT is not set
# CONFIG_NF_CONNTRACK_TIMESTAMP is not set
# CONFIG_NF_CONNTRACK_LABELS is not setCONFIG_NF_CT_PROTO_DCCP=yCONFIG_NF_CT_PROTO_SCTP=yCONFIG_NF_CT_PROTO_UDPLITE=y
# CONFIG_NF_CONNTRACK_AMANDA is not setCONFIG_NF_CONNTRACK_FTP=m
# CONFIG_NF_CONNTRACK_H323 is not set
# CONFIG_NF_CONNTRACK_IRC is not set
# CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
# CONFIG_NF_CONNTRACK_SNMP is not set
# CONFIG_NF_CONNTRACK_PPTP is not set
# CONFIG_NF_CONNTRACK_SANE is not set
# CONFIG_NF_CONNTRACK_SIP is not set
# CONFIG_NF_CONNTRACK_TFTP is not setCONFIG_NF_CT_NETLINK=m
# CONFIG_NETFILTER_NETLINK_GLUE_CT is not setCONFIG_NF_NAT=mCONFIG_NF_NAT_FTP=mCONFIG_NF_NAT_MASQUERADE=y
# CONFIG_NF_TABLES is not setCONFIG_NETFILTER_XTABLES=yCONFIG_NETFILTER_XTABLES_COMPAT=y
#
# Xtables combined modules
#CONFIG_NETFILTER_XT_MARK=mCONFIG_NETFILTER_XT_CONNMARK=mCONFIG_NETFILTER_XT_SET=m
#
# Xtables targets
#
# CONFIG_NETFILTER_XT_TARGET_AUDIT is not set
# CONFIG_NETFILTER_XT_TARGET_CHECKSUM is not setCONFIG_NETFILTER_XT_TARGET_CLASSIFY=mCONFIG_NETFILTER_XT_TARGET_CONNMARK=mCONFIG_NETFILTER_XT_TARGET_CT=mCONFIG_NETFILTER_XT_TARGET_DSCP=yCONFIG_NETFILTER_XT_TARGET_HL=m
# CONFIG_NETFILTER_XT_TARGET_HMARK is not set
# CONFIG_NETFILTER_XT_TARGET_IDLETIMER is not setCONFIG_NETFILTER_XT_TARGET_LOG=mCONFIG_NETFILTER_XT_TARGET_MARK=mCONFIG_NETFILTER_XT_NAT=m
# CONFIG_NETFILTER_XT_TARGET_NETMAP is not setCONFIG_NETFILTER_XT_TARGET_NFLOG=mCONFIG_NETFILTER_XT_TARGET_NFQUEUE=mCONFIG_NETFILTER_XT_TARGET_NOTRACK=mCONFIG_NETFILTER_XT_TARGET_RATEEST=m
# CONFIG_NETFILTER_XT_TARGET_REDIRECT is not setCONFIG_NETFILTER_XT_TARGET_MASQUERADE=m
# CONFIG_NETFILTER_XT_TARGET_TEE is not setCONFIG_NETFILTER_XT_TARGET_TPROXY=yCONFIG_NETFILTER_XT_TARGET_TRACE=mCONFIG_NETFILTER_XT_TARGET_TCPMSS=yCONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=m
#
# Xtables matches
#CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=y
# CONFIG_NETFILTER_XT_MATCH_BPF is not set
# CONFIG_NETFILTER_XT_MATCH_CGROUP is not set
# CONFIG_NETFILTER_XT_MATCH_CLUSTER is not setCONFIG_NETFILTER_XT_MATCH_COMMENT=mCONFIG_NETFILTER_XT_MATCH_CONNBYTES=m
# CONFIG_NETFILTER_XT_MATCH_CONNLABEL is not setCONFIG_NETFILTER_XT_MATCH_CONNLIMIT=mCONFIG_NETFILTER_XT_MATCH_CONNMARK=mCONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
# CONFIG_NETFILTER_XT_MATCH_CPU is not setCONFIG_NETFILTER_XT_MATCH_DCCP=m
# CONFIG_NETFILTER_XT_MATCH_DEVGROUP is not setCONFIG_NETFILTER_XT_MATCH_DSCP=yCONFIG_NETFILTER_XT_MATCH_ECN=mCONFIG_NETFILTER_XT_MATCH_ESP=mCONFIG_NETFILTER_XT_MATCH_HASHLIMIT=mCONFIG_NETFILTER_XT_MATCH_HELPER=mCONFIG_NETFILTER_XT_MATCH_HL=m
# CONFIG_NETFILTER_XT_MATCH_IPCOMP is not setCONFIG_NETFILTER_XT_MATCH_IPRANGE=m
# CONFIG_NETFILTER_XT_MATCH_L2TP is not setCONFIG_NETFILTER_XT_MATCH_LENGTH=m
# CONFIG_NETFILTER_XT_MATCH_LIMIT is not setCONFIG_NETFILTER_XT_MATCH_MAC=mCONFIG_NETFILTER_XT_MATCH_MARK=mCONFIG_NETFILTER_XT_MATCH_MULTIPORT=y
# CONFIG_NETFILTER_XT_MATCH_NFACCT is not set
# CONFIG_NETFILTER_XT_MATCH_OSF is not setCONFIG_NETFILTER_XT_MATCH_OWNER=m
# CONFIG_NETFILTER_XT_MATCH_POLICY is not set
# CONFIG_NETFILTER_XT_MATCH_PHYSDEV is not setCONFIG_NETFILTER_XT_MATCH_PKTTYPE=mCONFIG_NETFILTER_XT_MATCH_QUOTA=mCONFIG_NETFILTER_XT_MATCH_RATEEST=mCONFIG_NETFILTER_XT_MATCH_REALM=mCONFIG_NETFILTER_XT_MATCH_RECENT=mCONFIG_NETFILTER_XT_MATCH_SCTP=mCONFIG_NETFILTER_XT_MATCH_SOCKET=mCONFIG_NETFILTER_XT_MATCH_STATE=mCONFIG_NETFILTER_XT_MATCH_STATISTIC=mCONFIG_NETFILTER_XT_MATCH_STRING=mCONFIG_NETFILTER_XT_MATCH_TCPMSS=yCONFIG_NETFILTER_XT_MATCH_TIME=mCONFIG_NETFILTER_XT_MATCH_U32=m
# end of Core Netfilter Configuration
CONFIG_IP_SET=mCONFIG_IP_SET_MAX=1024
# CONFIG_IP_SET_BITMAP_IP is not set
# CONFIG_IP_SET_BITMAP_IPMAC is not set
# CONFIG_IP_SET_BITMAP_PORT is not setCONFIG_IP_SET_HASH_IP=m
# CONFIG_IP_SET_HASH_IPMARK is not set
# CONFIG_IP_SET_HASH_IPPORT is not set
# CONFIG_IP_SET_HASH_IPPORTIP is not set
# CONFIG_IP_SET_HASH_IPPORTNET is not set
# CONFIG_IP_SET_HASH_IPMAC is not set
# CONFIG_IP_SET_HASH_MAC is not set
# CONFIG_IP_SET_HASH_NETPORTNET is not setCONFIG_IP_SET_HASH_NET=m
# CONFIG_IP_SET_HASH_NETNET is not set
# CONFIG_IP_SET_HASH_NETPORT is not set
# CONFIG_IP_SET_HASH_NETIFACE is not set
# CONFIG_IP_SET_LIST_SET is not set
# CONFIG_IP_VS is not set
#
# IP: Netfilter Configuration
#CONFIG_NF_DEFRAG_IPV4=yCONFIG_NF_SOCKET_IPV4=mCONFIG_NF_TPROXY_IPV4=y
# CONFIG_NF_DUP_IPV4 is not set
# CONFIG_NF_LOG_ARP is not set
# CONFIG_NF_LOG_IPV4 is not setCONFIG_NF_REJECT_IPV4=mCONFIG_IP_NF_IPTABLES=y
# CONFIG_IP_NF_MATCH_AH is not setCONFIG_IP_NF_MATCH_ECN=m
# CONFIG_IP_NF_MATCH_RPFILTER is not setCONFIG_IP_NF_MATCH_TTL=mCONFIG_IP_NF_FILTER=mCONFIG_IP_NF_TARGET_REJECT=m
# CONFIG_IP_NF_TARGET_SYNPROXY is not setCONFIG_IP_NF_NAT=mCONFIG_IP_NF_TARGET_MASQUERADE=m
# CONFIG_IP_NF_TARGET_NETMAP is not set
# CONFIG_IP_NF_TARGET_REDIRECT is not setCONFIG_IP_NF_MANGLE=y
# CONFIG_IP_NF_TARGET_CLUSTERIP is not setCONFIG_IP_NF_TARGET_ECN=mCONFIG_IP_NF_TARGET_TTL=mCONFIG_IP_NF_RAW=m
# CONFIG_IP_NF_SECURITY is not setCONFIG_IP_NF_ARPTABLES=mCONFIG_IP_NF_ARPFILTER=mCONFIG_IP_NF_ARP_MANGLE=m
# end of IP: Netfilter Configuration
#
# IPv6: Netfilter Configuration
#CONFIG_NF_SOCKET_IPV6=mCONFIG_NF_TPROXY_IPV6=y
# CONFIG_NF_DUP_IPV6 is not setCONFIG_NF_REJECT_IPV6=mCONFIG_NF_LOG_IPV6=mCONFIG_IP6_NF_IPTABLES=y
# CONFIG_IP6_NF_MATCH_AH is not set
# CONFIG_IP6_NF_MATCH_EUI64 is not setCONFIG_IP6_NF_MATCH_FRAG=y
# CONFIG_IP6_NF_MATCH_OPTS is not setCONFIG_IP6_NF_MATCH_HL=mCONFIG_IP6_NF_MATCH_IPV6HEADER=y
# CONFIG_IP6_NF_MATCH_MH is not set
# CONFIG_IP6_NF_MATCH_RPFILTER is not set
# CONFIG_IP6_NF_MATCH_RT is not set
# CONFIG_IP6_NF_MATCH_SRH is not setCONFIG_IP6_NF_TARGET_HL=mCONFIG_IP6_NF_FILTER=mCONFIG_IP6_NF_TARGET_REJECT=m
# CONFIG_IP6_NF_TARGET_SYNPROXY is not setCONFIG_IP6_NF_MANGLE=yCONFIG_IP6_NF_RAW=m
# CONFIG_IP6_NF_SECURITY is not set
# CONFIG_IP6_NF_NAT is not set
# end of IPv6: Netfilter Configuration
CONFIG_NF_DEFRAG_IPV6=y
# CONFIG_NF_CONNTRACK_BRIDGE is not set
# CONFIG_BRIDGE_NF_EBTABLES is not set
# CONFIG_BPFILTER is not set
# CONFIG_IP_DCCP is not setCONFIG_IP_SCTP=m
# CONFIG_SCTP_DBG_OBJCNT is not setCONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5=y
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1 is not set
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE is not setCONFIG_SCTP_COOKIE_HMAC_MD5=y
# CONFIG_SCTP_COOKIE_HMAC_SHA1 is not setCONFIG_INET_SCTP_DIAG=m
# CONFIG_RDS is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_L2TP is not setCONFIG_STP=mCONFIG_BRIDGE=mCONFIG_BRIDGE_IGMP_SNOOPING=y
# CONFIG_BRIDGE_VLAN_FILTERING is not set
# CONFIG_BRIDGE_MRP is not set
# CONFIG_BRIDGE_CFM is not set
# CONFIG_NET_DSA is not setCONFIG_VLAN_8021Q=m
# CONFIG_VLAN_8021Q_GVRP is not set
# CONFIG_VLAN_8021Q_MVRP is not set
# CONFIG_DECNET is not setCONFIG_LLC=m
# CONFIG_LLC2 is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_PHONET is not set
# CONFIG_6LOWPAN is not set
# CONFIG_IEEE802154 is not setCONFIG_NET_SCHED=y
#
# Queueing/Scheduling
#CONFIG_NET_SCH_CBQ=mCONFIG_NET_SCH_HTB=yCONFIG_NET_SCH_HFSC=mCONFIG_NET_SCH_PRIO=yCONFIG_NET_SCH_MULTIQ=mCONFIG_NET_SCH_RED=m
# CONFIG_NET_SCH_SFB is not setCONFIG_NET_SCH_SFQ=mCONFIG_NET_SCH_TEQL=mCONFIG_NET_SCH_TBF=m
# CONFIG_NET_SCH_CBS is not set
# CONFIG_NET_SCH_ETF is not set
# CONFIG_NET_SCH_TAPRIO is not setCONFIG_NET_SCH_GRED=mCONFIG_NET_SCH_DSMARK=yCONFIG_NET_SCH_NETEM=mCONFIG_NET_SCH_DRR=mCONFIG_NET_SCH_MQPRIO=m
# CONFIG_NET_SCH_SKBPRIO is not set
# CONFIG_NET_SCH_CHOKE is not set
# CONFIG_NET_SCH_QFQ is not setCONFIG_NET_SCH_CODEL=yCONFIG_NET_SCH_FQ_CODEL=m
# CONFIG_NET_SCH_CAKE is not setCONFIG_NET_SCH_FQ=y
# CONFIG_NET_SCH_HHF is not setCONFIG_NET_SCH_PIE=m
# CONFIG_NET_SCH_FQ_PIE is not setCONFIG_NET_SCH_INGRESS=y
# CONFIG_NET_SCH_PLUG is not set
# CONFIG_NET_SCH_ETS is not set
# CONFIG_NET_SCH_DEFAULT is not set
#
# Classification
#CONFIG_NET_CLS=yCONFIG_NET_CLS_BASIC=mCONFIG_NET_CLS_TCINDEX=yCONFIG_NET_CLS_ROUTE4=mCONFIG_NET_CLS_FW=mCONFIG_NET_CLS_U32=y
# CONFIG_CLS_U32_PERF is not set
# CONFIG_CLS_U32_MARK is not setCONFIG_NET_CLS_RSVP=mCONFIG_NET_CLS_RSVP6=mCONFIG_NET_CLS_FLOW=m
# CONFIG_NET_CLS_CGROUP is not setCONFIG_NET_CLS_BPF=y
# CONFIG_NET_CLS_FLOWER is not set
# CONFIG_NET_CLS_MATCHALL is not setCONFIG_NET_EMATCH=yCONFIG_NET_EMATCH_STACK=32CONFIG_NET_EMATCH_CMP=mCONFIG_NET_EMATCH_NBYTE=mCONFIG_NET_EMATCH_U32=mCONFIG_NET_EMATCH_META=mCONFIG_NET_EMATCH_TEXT=m
# CONFIG_NET_EMATCH_IPSET is not set
# CONFIG_NET_EMATCH_IPT is not setCONFIG_NET_CLS_ACT=yCONFIG_NET_ACT_POLICE=mCONFIG_NET_ACT_GACT=m
# CONFIG_GACT_PROB is not setCONFIG_NET_ACT_MIRRED=m
# CONFIG_NET_ACT_SAMPLE is not setCONFIG_NET_ACT_IPT=mCONFIG_NET_ACT_NAT=mCONFIG_NET_ACT_PEDIT=mCONFIG_NET_ACT_SIMP=mCONFIG_NET_ACT_SKBEDIT=m
# CONFIG_NET_ACT_CSUM is not set
# CONFIG_NET_ACT_MPLS is not set
# CONFIG_NET_ACT_VLAN is not setCONFIG_NET_ACT_BPF=y
# CONFIG_NET_ACT_CONNMARK is not set
# CONFIG_NET_ACT_CTINFO is not set
# CONFIG_NET_ACT_SKBMOD is not set
# CONFIG_NET_ACT_IFE is not set
# CONFIG_NET_ACT_TUNNEL_KEY is not set
# CONFIG_NET_ACT_GATE is not set
# CONFIG_NET_TC_SKB_EXT is not setCONFIG_NET_SCH_FIFO=yCONFIG_DCB=y
# CONFIG_DNS_RESOLVER is not setCONFIG_BATMAN_ADV=m
# CONFIG_BATMAN_ADV_BATMAN_V is not setCONFIG_BATMAN_ADV_BLA=yCONFIG_BATMAN_ADV_DAT=yCONFIG_BATMAN_ADV_NC=yCONFIG_BATMAN_ADV_MCAST=y
# CONFIG_BATMAN_ADV_DEBUG is not set
# CONFIG_BATMAN_ADV_TRACING is not set
# CONFIG_OPENVSWITCH is not setCONFIG_VSOCKETS=yCONFIG_VSOCKETS_DIAG=yCONFIG_VSOCKETS_LOOPBACK=yCONFIG_VIRTIO_VSOCKETS=yCONFIG_VIRTIO_VSOCKETS_COMMON=yCONFIG_NETLINK_DIAG=y
# CONFIG_MPLS is not set
# CONFIG_NET_NSH is not set
# CONFIG_HSR is not set
# CONFIG_NET_SWITCHDEV is not setCONFIG_NET_L3_MASTER_DEV=y
# CONFIG_QRTR is not set
# CONFIG_NET_NCSI is not setCONFIG_PCPU_DEV_REFCNT=yCONFIG_RPS=yCONFIG_RFS_ACCEL=yCONFIG_SOCK_RX_QUEUE_MAPPING=yCONFIG_XPS=y
# CONFIG_CGROUP_NET_PRIO is not set
# CONFIG_CGROUP_NET_CLASSID is not setCONFIG_NET_RX_BUSY_POLL=yCONFIG_BQL=yCONFIG_BPF_STREAM_PARSER=yCONFIG_NET_FLOW_LIMIT=y
#
# Network testing
#CONFIG_NET_PKTGEN=m
# CONFIG_NET_DROP_MONITOR is not set
# end of Network testing # end of Networking options
# CONFIG_HAMRADIO is not set
# CONFIG_CAN is not set
# CONFIG_BT is not set
# CONFIG_AF_RXRPC is not set
# CONFIG_AF_KCM is not setCONFIG_STREAM_PARSER=y
# CONFIG_MCTP is not setCONFIG_FIB_RULES=y
# CONFIG_WIRELESS is not set
# CONFIG_RFKILL is not setCONFIG_NET_9P=mCONFIG_NET_9P_FD=mCONFIG_NET_9P_VIRTIO=m
# CONFIG_NET_9P_DEBUG is not set
# CONFIG_CAIF is not set
# CONFIG_CEPH_LIB is not set
# CONFIG_NFC is not set
# CONFIG_PSAMPLE is not set
# CONFIG_NET_IFE is not set
# CONFIG_LWTUNNEL is not setCONFIG_DST_CACHE=yCONFIG_GRO_CELLS=yCONFIG_NET_SELFTESTS=yCONFIG_NET_SOCK_MSG=yCONFIG_NET_DEVLINK=yCONFIG_PAGE_POOL=y
# CONFIG_PAGE_POOL_STATS is not setCONFIG_FAILOVER=mCONFIG_ETHTOOL_NETLINK=y
#
# Device Drivers
#CONFIG_HAVE_EISA=y
# CONFIG_EISA is not setCONFIG_HAVE_PCI=yCONFIG_PCI=yCONFIG_PCI_DOMAINS=y
# CONFIG_PCIEPORTBUS is not setCONFIG_PCIEASPM=yCONFIG_PCIEASPM_DEFAULT=y
# CONFIG_PCIEASPM_POWERSAVE is not set
# CONFIG_PCIEASPM_POWER_SUPERSAVE is not set
# CONFIG_PCIEASPM_PERFORMANCE is not set
# CONFIG_PCIE_PTM is not setCONFIG_PCI_MSI=yCONFIG_PCI_MSI_IRQ_DOMAIN=yCONFIG_PCI_QUIRKS=y
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_STUB is not setCONFIG_PCI_ATS=yCONFIG_PCI_LOCKLESS_CONFIG=y
# CONFIG_PCI_IOV is not setCONFIG_PCI_PRI=yCONFIG_PCI_PASID=yCONFIG_PCI_LABEL=y
# CONFIG_PCIE_BUS_TUNE_OFF is not setCONFIG_PCIE_BUS_DEFAULT=y
# CONFIG_PCIE_BUS_SAFE is not set
# CONFIG_PCIE_BUS_PERFORMANCE is not set
# CONFIG_PCIE_BUS_PEER2PEER is not setCONFIG_VGA_ARB=yCONFIG_VGA_ARB_MAX_GPUS=16CONFIG_HOTPLUG_PCI=y
# CONFIG_HOTPLUG_PCI_ACPI is not set
# CONFIG_HOTPLUG_PCI_CPCI is not set
# CONFIG_HOTPLUG_PCI_SHPC is not set
#
# PCI controller drivers
#
# CONFIG_VMD is not set
#
# DesignWare PCI Core Support
#
# CONFIG_PCIE_DW_PLAT_HOST is not set
# CONFIG_PCI_MESON is not set
# end of DesignWare PCI Core Support
#
# Mobiveil PCIe Core Support
#
# end of Mobiveil PCIe Core Support
#
# Cadence PCIe controllers support
#
# end of Cadence PCIe controllers support # end of PCI controller drivers
#
# PCI Endpoint
#
# CONFIG_PCI_ENDPOINT is not set
# end of PCI Endpoint
#
# PCI switch controller drivers
#
# CONFIG_PCI_SW_SWITCHTEC is not set
# end of PCI switch controller drivers
# CONFIG_CXL_BUS is not set
# CONFIG_PCCARD is not set
# CONFIG_RAPIDIO is not set
#
# Generic Driver Options
#CONFIG_AUXILIARY_BUS=y
# CONFIG_UEVENT_HELPER is not setCONFIG_DEVTMPFS=y
# CONFIG_DEVTMPFS_MOUNT is not set
# CONFIG_DEVTMPFS_SAFE is not setCONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=y
#
# Firmware loader
#CONFIG_FW_LOADER=y CONFIG_FW_LOADER_PAGED_BUF=y CONFIG_EXTRA_FIRMWARE="" CONFIG_FW_LOADER_USER_HELPER=y
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set # CONFIG_FW_LOADER_COMPRESS is not set CONFIG_FW_CACHE=y
# end of Firmware loader
CONFIG_ALLOW_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not setCONFIG_DEBUG_DEVRES=y
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set
# CONFIG_TEST_ASYNC_DRIVER_PROBE is not setCONFIG_GENERIC_CPU_AUTOPROBE=yCONFIG_GENERIC_CPU_VULNERABILITIES=yCONFIG_DMA_SHARED_BUFFER=y
# CONFIG_DMA_FENCE_TRACE is not set
# end of Generic Driver Options
#
# Bus devices
#
# CONFIG_MHI_BUS is not set
# end of Bus devices
CONFIG_CONNECTOR=yCONFIG_PROC_EVENTS=y
#
# Firmware Drivers
#
#
# ARM System Control and Management Interface Protocol #
# end of ARM System Control and Management Interface Protocol
# CONFIG_EDD is not setCONFIG_FIRMWARE_MEMMAP=yCONFIG_DMIID=y
# CONFIG_DMI_SYSFS is not setCONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# CONFIG_ISCSI_IBFT is not set
# CONFIG_FW_CFG_SYSFS is not setCONFIG_SYSFB=y
# CONFIG_SYSFB_SIMPLEFB is not setCONFIG_GOOGLE_FIRMWARE=yCONFIG_GOOGLE_SMI=y
# CONFIG_GOOGLE_COREBOOT_TABLE is not setCONFIG_GOOGLE_MEMCONSOLE=yCONFIG_GOOGLE_MEMCONSOLE_X86_LEGACY=y
#
# EFI (Extensible Firmware Interface) Support #
# CONFIG_EFI_VARS is not set CONFIG_EFI_ESRT=yCONFIG_EFI_VARS_PSTORE=y
# CONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE is not set CONFIG_EFI_RUNTIME_MAP=y
# CONFIG_EFI_FAKE_MEMMAP is not set CONFIG_EFI_RUNTIME_WRAPPERS=y
# CONFIG_EFI_BOOTLOADER_CONTROL is not set # CONFIG_EFI_CAPSULE_LOADER is not set
# CONFIG_EFI_TEST is not set
# CONFIG_EFI_RCI2_TABLE is not set
# CONFIG_EFI_DISABLE_PCI_DMA is not set
# end of EFI (Extensible Firmware Interface) Support
CONFIG_UEFI_CPER=yCONFIG_UEFI_CPER_X86=yCONFIG_EFI_EARLYCON=y
# CONFIG_EFI_CUSTOM_SSDT_OVERLAYS is not set
#
# Tegra firmware driver
#
# end of Tegra firmware driver # end of Firmware Drivers
# CONFIG_GNSS is not set
# CONFIG_MTD is not set
# CONFIG_OF is not setCONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
# CONFIG_PARPORT is not setCONFIG_PNP=yCONFIG_PNP_DEBUG_MESSAGES=y
#
# Protocols
#CONFIG_PNPACPI=yCONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_NULL_BLK is not setCONFIG_CDROM=m
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
# CONFIG_ZRAM is not setCONFIG_BLK_DEV_LOOP=mCONFIG_BLK_DEV_LOOP_MIN_COUNT=8
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_SX8 is not setCONFIG_BLK_DEV_RAM=yCONFIG_BLK_DEV_RAM_COUNT=16CONFIG_BLK_DEV_RAM_SIZE=16384
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not setCONFIG_VIRTIO_BLK=m
# CONFIG_BLK_DEV_RBD is not set
#
# NVME Support
#CONFIG_NVME_CORE=mCONFIG_BLK_DEV_NVME=m
# CONFIG_NVME_MULTIPATH is not set
# CONFIG_NVME_VERBOSE_ERRORS is not set
# CONFIG_NVME_HWMON is not set
# CONFIG_NVME_FC is not set
# CONFIG_NVME_TCP is not set
# CONFIG_NVME_TARGET is not set
# end of NVME Support
#
# Misc devices
#
# CONFIG_AD525X_DPOT is not set
# CONFIG_DUMMY_IRQ is not set
# CONFIG_IBM_ASM is not set
# CONFIG_PHANTOM is not set
# CONFIG_TIFM_CORE is not set
# CONFIG_ICS932S401 is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_HP_ILO is not set
# CONFIG_APDS9802ALS is not set
# CONFIG_ISL29003 is not set
# CONFIG_ISL29020 is not set
# CONFIG_SENSORS_TSL2550 is not set
# CONFIG_SENSORS_BH1770 is not set
# CONFIG_SENSORS_APDS990X is not set
# CONFIG_HMC6352 is not set
# CONFIG_DS1682 is not set
# CONFIG_LATTICE_ECP3_CONFIG is not set
# CONFIG_SRAM is not set
# CONFIG_DW_XDATA_PCIE is not set
# CONFIG_PCI_ENDPOINT_TEST is not set
# CONFIG_XILINX_SDFEC is not set
# CONFIG_C2PORT is not set
#
# EEPROM support
#
# CONFIG_EEPROM_AT24 is not set
# CONFIG_EEPROM_AT25 is not setCONFIG_EEPROM_LEGACY=m
# CONFIG_EEPROM_MAX6875 is not set
# CONFIG_EEPROM_93CX6 is not set
# CONFIG_EEPROM_93XX46 is not set
# CONFIG_EEPROM_IDT_89HPESX is not set
# CONFIG_EEPROM_EE1004 is not set
# end of EEPROM support
# CONFIG_CB710_CORE is not set
#
# Texas Instruments shared transport line discipline #
# CONFIG_TI_ST is not set
# end of Texas Instruments shared transport line discipline
# CONFIG_SENSORS_LIS3_I2C is not set
# CONFIG_ALTERA_STAPL is not set
# CONFIG_INTEL_MEI is not set
# CONFIG_INTEL_MEI_ME is not set
# CONFIG_INTEL_MEI_TXE is not set
# CONFIG_VMWARE_VMCI is not set
# CONFIG_GENWQE is not set
# CONFIG_ECHO is not set
# CONFIG_BCM_VK is not set
# CONFIG_MISC_ALCOR_PCI is not set
# CONFIG_MISC_RTSX_PCI is not set
# CONFIG_MISC_RTSX_USB is not set
# CONFIG_HABANA_AI is not set
# CONFIG_UACCE is not set
# CONFIG_PVPANIC is not set
# end of Misc devices
#
# SCSI device support
#CONFIG_SCSI_MOD=yCONFIG_RAID_ATTRS=mCONFIG_SCSI_COMMON=yCONFIG_SCSI=yCONFIG_SCSI_DMA=yCONFIG_SCSI_NETLINK=yCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=mCONFIG_BLK_DEV_SR=mCONFIG_CHR_DEV_SG=yCONFIG_BLK_DEV_BSG=y
# CONFIG_CHR_DEV_SCH is not setCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_LOGGING=y
# CONFIG_SCSI_SCAN_ASYNC is not set
#
# SCSI Transports
#CONFIG_SCSI_SPI_ATTRS=mCONFIG_SCSI_FC_ATTRS=mCONFIG_SCSI_ISCSI_ATTRS=yCONFIG_SCSI_SAS_ATTRS=m
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not set
# end of SCSI Transports
CONFIG_SCSI_LOWLEVEL=yCONFIG_ISCSI_TCP=y
# CONFIG_ISCSI_BOOT_SYSFS is not set
# CONFIG_SCSI_CXGB3_ISCSI is not set
# CONFIG_SCSI_CXGB4_ISCSI is not set
# CONFIG_SCSI_BNX2_ISCSI is not set
# CONFIG_BE2ISCSI is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_HPSA is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_3W_SAS is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not setCONFIG_SCSI_AIC7XXX=mCONFIG_AIC7XXX_CMDS_PER_DEVICE=253CONFIG_AIC7XXX_RESET_DELAY_MS=15000CONFIG_AIC7XXX_DEBUG_ENABLE=yCONFIG_AIC7XXX_DEBUG_MASK=0CONFIG_AIC7XXX_REG_PRETTY_PRINT=y
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_MVSAS is not set
# CONFIG_SCSI_MVUMI is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_SCSI_ESAS2R is not setCONFIG_MEGARAID_NEWGEN=yCONFIG_MEGARAID_MM=yCONFIG_MEGARAID_MAILBOX=y
# CONFIG_MEGARAID_LEGACY is not setCONFIG_MEGARAID_SAS=yCONFIG_SCSI_MPT3SAS=mCONFIG_SCSI_MPT2SAS_MAX_SGE=128CONFIG_SCSI_MPT3SAS_MAX_SGE=128CONFIG_SCSI_MPT2SAS=m
# CONFIG_SCSI_MPI3MR is not set
# CONFIG_SCSI_SMARTPQI is not set
# CONFIG_SCSI_UFSHCD is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_MYRB is not set
# CONFIG_SCSI_MYRS is not set
# CONFIG_VMWARE_PVSCSI is not set
# CONFIG_LIBFC is not set
# CONFIG_SCSI_SNIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_FDOMAIN_PCI is not set
# CONFIG_SCSI_ISCI is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_1280 is not setCONFIG_SCSI_QLA_FC=m
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_WD719X is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_SCSI_PMCRAID is not set
# CONFIG_SCSI_PM8001 is not set
# CONFIG_SCSI_BFA_FC is not setCONFIG_SCSI_VIRTIO=y
# CONFIG_SCSI_CHELSIO_FCOE is not set
# CONFIG_SCSI_DH is not set
# end of SCSI device support
CONFIG_ATA=yCONFIG_SATA_HOST=yCONFIG_PATA_TIMINGS=yCONFIG_ATA_VERBOSE_ERROR=yCONFIG_ATA_FORCE=yCONFIG_ATA_ACPI=y
# CONFIG_SATA_ZPODD is not setCONFIG_SATA_PMP=y
#
# Controllers with non-SFF native interface
#CONFIG_SATA_AHCI=yCONFIG_SATA_MOBILE_LPM_POLICY=0
# CONFIG_SATA_AHCI_PLATFORM is not set
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not setCONFIG_SATA_SIL24=mCONFIG_ATA_SFF=y
#
# SFF controllers with custom DMA interface
#
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not setCONFIG_ATA_BMDMA=y
#
# SATA SFF controllers with BMDMA
#CONFIG_ATA_PIIX=y
# CONFIG_SATA_DWC is not setCONFIG_SATA_MV=m
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not setCONFIG_SATA_SIL=m
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set
#
# PATA SFF controllers with BMDMA
#
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_ATP867X is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87415 is not set
# CONFIG_PATA_OLDPIIX is not set
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RDC is not set
# CONFIG_PATA_SCH is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_TOSHIBA is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set
#
# PIO-only SFF controllers
#
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_PLATFORM is not set
# CONFIG_PATA_RZ1000 is not set
#
# Generic fallback / legacy drivers
#
# CONFIG_PATA_ACPI is not set
# CONFIG_ATA_GENERIC is not set
# CONFIG_PATA_LEGACY is not set CONFIG_MD=yCONFIG_BLK_DEV_MD=yCONFIG_MD_AUTODETECT=yCONFIG_MD_LINEAR=mCONFIG_MD_RAID0=mCONFIG_MD_RAID1=y
# CONFIG_MD_RAID10 is not set
# CONFIG_MD_RAID456 is not set
# CONFIG_MD_MULTIPATH is not set
# CONFIG_MD_FAULTY is not set
# CONFIG_BCACHE is not set CONFIG_BLK_DEV_DM_BUILTIN=y CONFIG_BLK_DEV_DM=y
# CONFIG_DM_DEBUG is not set CONFIG_DM_BUFIO=y
# CONFIG_DM_DEBUG_BLOCK_MANAGER_LOCKING is not set CONFIG_DM_BIO_PRISON=y CONFIG_DM_PERSISTENT_DATA=y
# CONFIG_DM_UNSTRIPED is not set CONFIG_DM_CRYPT=y
# CONFIG_DM_SNAPSHOT is not set CONFIG_DM_THIN_PROVISIONING=y
# CONFIG_DM_CACHE is not set
# CONFIG_DM_WRITECACHE is not set
# CONFIG_DM_EBS is not set
# CONFIG_DM_ERA is not set
# CONFIG_DM_CLONE is not set CONFIG_DM_MIRROR=y
# CONFIG_DM_LOG_USERSPACE is not set
# CONFIG_DM_RAID is not set CONFIG_DM_ZERO=yCONFIG_DM_MULTIPATH=y CONFIG_DM_MULTIPATH_QL=y CONFIG_DM_MULTIPATH_ST=y CONFIG_DM_MULTIPATH_HST=y
# CONFIG_DM_MULTIPATH_IOA is not set
# CONFIG_DM_DELAY is not set
# CONFIG_DM_DUST is not set
# CONFIG_DM_INIT is not set
# CONFIG_DM_UEVENT is not set
# CONFIG_DM_FLAKEY is not set CONFIG_DM_VERITY=y
# CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG is not set # CONFIG_DM_VERITY_FEC is not set
# CONFIG_DM_SWITCH is not set
# CONFIG_DM_LOG_WRITES is not set
# CONFIG_DM_INTEGRITY is not set
# CONFIG_DM_AUDIT is not set
# CONFIG_TARGET_CORE is not set
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#CONFIG_FIREWIRE=mCONFIG_FIREWIRE_OHCI=m
# CONFIG_FIREWIRE_SBP2 is not set
# CONFIG_FIREWIRE_NET is not set
# CONFIG_FIREWIRE_NOSY is not set
# end of IEEE 1394 (FireWire) support
# CONFIG_MACINTOSH_DRIVERS is not setCONFIG_NETDEVICES=yCONFIG_MII=mCONFIG_NET_CORE=yCONFIG_BONDING=yCONFIG_DUMMY=m
# CONFIG_WIREGUARD is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_FC is not setCONFIG_IFB=mCONFIG_NET_TEAM=yCONFIG_NET_TEAM_MODE_BROADCAST=yCONFIG_NET_TEAM_MODE_ROUNDROBIN=yCONFIG_NET_TEAM_MODE_RANDOM=yCONFIG_NET_TEAM_MODE_ACTIVEBACKUP=yCONFIG_NET_TEAM_MODE_LOADBALANCE=yCONFIG_MACVLAN=mCONFIG_MACVTAP=mCONFIG_IPVLAN_L3S=yCONFIG_IPVLAN=y
# CONFIG_IPVTAP is not set
# CONFIG_VXLAN is not set
# CONFIG_GENEVE is not set
# CONFIG_BAREUDP is not set
# CONFIG_GTP is not set
# CONFIG_AMT is not set
# CONFIG_MACSEC is not setCONFIG_NETCONSOLE=m
# CONFIG_NETCONSOLE_DYNAMIC is not setCONFIG_NETPOLL=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_TUN=yCONFIG_TAP=m
# CONFIG_TUN_VNET_CROSS_LE is not setCONFIG_VETH=yCONFIG_VIRTIO_NET=m
# CONFIG_NLMON is not set
# CONFIG_NET_VRF is not set
# CONFIG_VSOCKMON is not set
# CONFIG_ARCNET is not setCONFIG_ETHERNET=yCONFIG_MDIO=mCONFIG_NET_VENDOR_3COM=y
# CONFIG_VORTEX is not set
# CONFIG_TYPHOON is not setCONFIG_NET_VENDOR_ADAPTEC=y
# CONFIG_ADAPTEC_STARFIRE is not setCONFIG_NET_VENDOR_AGERE=y
# CONFIG_ET131X is not setCONFIG_NET_VENDOR_ALACRITECH=y
# CONFIG_SLICOSS is not setCONFIG_NET_VENDOR_ALTEON=y
# CONFIG_ACENIC is not set
# CONFIG_ALTERA_TSE is not setCONFIG_NET_VENDOR_AMAZON=y
# CONFIG_ENA_ETHERNET is not setCONFIG_NET_VENDOR_AMD=y
# CONFIG_AMD8111_ETH is not set
# CONFIG_PCNET32 is not set
# CONFIG_AMD_XGBE is not setCONFIG_NET_VENDOR_AQUANTIA=y
# CONFIG_AQTION is not setCONFIG_NET_VENDOR_ARC=yCONFIG_NET_VENDOR_ASIX=y
# CONFIG_SPI_AX88796C is not setCONFIG_NET_VENDOR_ATHEROS=y
# CONFIG_ATL2 is not set
# CONFIG_ATL1 is not set
# CONFIG_ATL1E is not set
# CONFIG_ATL1C is not set
# CONFIG_ALX is not setCONFIG_NET_VENDOR_BROADCOM=y
# CONFIG_B44 is not set
# CONFIG_BCMGENET is not setCONFIG_BNX2=m
# CONFIG_CNIC is not setCONFIG_TIGON3=mCONFIG_TIGON3_HWMON=yCONFIG_BNX2X=m
# CONFIG_SYSTEMPORT is not set
# CONFIG_BNXT is not setCONFIG_NET_VENDOR_BROCADE=y
# CONFIG_BNA is not setCONFIG_NET_VENDOR_CADENCE=y
# CONFIG_MACB is not setCONFIG_NET_VENDOR_CAVIUM=y
# CONFIG_THUNDER_NIC_PF is not set
# CONFIG_THUNDER_NIC_VF is not set
# CONFIG_THUNDER_NIC_BGX is not set
# CONFIG_THUNDER_NIC_RGX is not set
# CONFIG_CAVIUM_PTP is not set
# CONFIG_LIQUIDIO is not set
# CONFIG_LIQUIDIO_VF is not setCONFIG_NET_VENDOR_CHELSIO=y
# CONFIG_CHELSIO_T1 is not setCONFIG_CHELSIO_T3=m
# CONFIG_CHELSIO_T4 is not set
# CONFIG_CHELSIO_T4VF is not setCONFIG_NET_VENDOR_CISCO=y
# CONFIG_ENIC is not setCONFIG_NET_VENDOR_CORTINA=y
# CONFIG_CX_ECAT is not setCONFIG_NET_VENDOR_DAVICOM=y
# CONFIG_DM9051 is not set
# CONFIG_DNET is not setCONFIG_NET_VENDOR_DEC=yCONFIG_NET_TULIP=yCONFIG_DE2104X=mCONFIG_DE2104X_DSL=0
# CONFIG_TULIP is not set
# CONFIG_DE4X5 is not set
# CONFIG_WINBOND_840 is not set
# CONFIG_DM9102 is not set
# CONFIG_ULI526X is not setCONFIG_NET_VENDOR_DLINK=y
# CONFIG_DL2K is not set
# CONFIG_SUNDANCE is not setCONFIG_NET_VENDOR_EMULEX=y
# CONFIG_BE2NET is not setCONFIG_NET_VENDOR_ENGLEDER=y
# CONFIG_TSNEP is not setCONFIG_NET_VENDOR_EZCHIP=yCONFIG_NET_VENDOR_FUNGIBLE=y
# CONFIG_FUN_ETH is not setCONFIG_NET_VENDOR_GOOGLE=y
# CONFIG_GVE is not setCONFIG_NET_VENDOR_HUAWEI=y
# CONFIG_HINIC is not setCONFIG_NET_VENDOR_I825XX=yCONFIG_NET_VENDOR_INTEL=y
# CONFIG_E100 is not set
# CONFIG_E1000 is not setCONFIG_E1000E=mCONFIG_E1000E_HWTS=y
# CONFIG_IGB is not set
# CONFIG_IGBVF is not set
# CONFIG_IXGB is not set
# CONFIG_IXGBE is not set
# CONFIG_IXGBEVF is not set
# CONFIG_I40E is not set
# CONFIG_I40EVF is not set
# CONFIG_ICE is not set
# CONFIG_FM10K is not set
# CONFIG_IGC is not setCONFIG_NET_VENDOR_MICROSOFT=y
# CONFIG_JME is not setCONFIG_NET_VENDOR_LITEX=yCONFIG_NET_VENDOR_MARVELL=y
# CONFIG_MVMDIO is not set
# CONFIG_SKGE is not setCONFIG_SKY2=m
# CONFIG_SKY2_DEBUG is not setCONFIG_NET_VENDOR_MELLANOX=yCONFIG_MLX4_EN=m
# CONFIG_MLX4_EN_DCB is not setCONFIG_MLX4_CORE=mCONFIG_MLX4_DEBUG=yCONFIG_MLX4_CORE_GEN2=yCONFIG_MLX5_CORE=m
# CONFIG_MLX5_FPGA is not setCONFIG_MLX5_CORE_EN=yCONFIG_MLX5_EN_ARFS=yCONFIG_MLX5_EN_RXNFC=yCONFIG_MLX5_MPFS=yCONFIG_MLX5_CORE_EN_DCB=y
# CONFIG_MLX5_CORE_IPOIB is not set
# CONFIG_MLX5_SF is not set
# CONFIG_MLXSW_CORE is not set
# CONFIG_MLXFW is not setCONFIG_NET_VENDOR_MICREL=y
# CONFIG_KS8842 is not set
# CONFIG_KS8851 is not set
# CONFIG_KS8851_MLL is not set
# CONFIG_KSZ884X_PCI is not setCONFIG_NET_VENDOR_MICROCHIP=y
# CONFIG_ENC28J60 is not set
# CONFIG_ENCX24J600 is not set
# CONFIG_LAN743X is not setCONFIG_NET_VENDOR_MICROSEMI=yCONFIG_NET_VENDOR_MYRI=y
# CONFIG_MYRI10GE is not set
# CONFIG_FEALNX is not setCONFIG_NET_VENDOR_NATSEMI=y
# CONFIG_NATSEMI is not set
# CONFIG_NS83820 is not setCONFIG_NET_VENDOR_NETERION=y
# CONFIG_S2IO is not set
# CONFIG_VXGE is not setCONFIG_NET_VENDOR_NETRONOME=y
# CONFIG_NFP is not setCONFIG_NET_VENDOR_NI=y
# CONFIG_NI_XGE_MANAGEMENT_ENET is not setCONFIG_NET_VENDOR_8390=y
# CONFIG_NE2K_PCI is not setCONFIG_NET_VENDOR_NVIDIA=y
# CONFIG_FORCEDETH is not setCONFIG_NET_VENDOR_OKI=y
# CONFIG_ETHOC is not setCONFIG_NET_VENDOR_PACKET_ENGINES=y
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not setCONFIG_NET_VENDOR_PENSANDO=y
# CONFIG_IONIC is not setCONFIG_NET_VENDOR_QLOGIC=y
# CONFIG_QLA3XXX is not set
# CONFIG_QLCNIC is not set
# CONFIG_NETXEN_NIC is not set
# CONFIG_QED is not setCONFIG_NET_VENDOR_QUALCOMM=y
# CONFIG_QCOM_EMAC is not set
# CONFIG_RMNET is not setCONFIG_NET_VENDOR_RDC=y
# CONFIG_R6040 is not setCONFIG_NET_VENDOR_REALTEK=y
# CONFIG_8139CP is not set
# CONFIG_8139TOO is not set
# CONFIG_R8169 is not setCONFIG_NET_VENDOR_RENESAS=yCONFIG_NET_VENDOR_ROCKER=yCONFIG_NET_VENDOR_SAMSUNG=y
# CONFIG_SXGBE_ETH is not setCONFIG_NET_VENDOR_SEEQ=yCONFIG_NET_VENDOR_SOLARFLARE=y
# CONFIG_SFC is not set
# CONFIG_SFC_FALCON is not setCONFIG_NET_VENDOR_SILAN=y
# CONFIG_SC92031 is not setCONFIG_NET_VENDOR_SIS=y
# CONFIG_SIS900 is not set
# CONFIG_SIS190 is not setCONFIG_NET_VENDOR_SMSC=y
# CONFIG_EPIC100 is not set
# CONFIG_SMSC911X is not set
# CONFIG_SMSC9420 is not setCONFIG_NET_VENDOR_SOCIONEXT=yCONFIG_NET_VENDOR_STMICRO=y
# CONFIG_STMMAC_ETH is not setCONFIG_NET_VENDOR_SUN=y
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
# CONFIG_CASSINI is not set
# CONFIG_NIU is not setCONFIG_NET_VENDOR_SYNOPSYS=y
# CONFIG_DWC_XLGMAC is not setCONFIG_NET_VENDOR_TEHUTI=y
# CONFIG_TEHUTI is not setCONFIG_NET_VENDOR_TI=y
# CONFIG_TI_CPSW_PHY_SEL is not set
# CONFIG_TLAN is not setCONFIG_NET_VENDOR_VERTEXCOM=y
# CONFIG_MSE102X is not setCONFIG_NET_VENDOR_VIA=y
# CONFIG_VIA_RHINE is not set
# CONFIG_VIA_VELOCITY is not setCONFIG_NET_VENDOR_WIZNET=y
# CONFIG_WIZNET_W5100 is not set
# CONFIG_WIZNET_W5300 is not setCONFIG_NET_VENDOR_XILINX=y
# CONFIG_XILINX_EMACLITE is not set
# CONFIG_XILINX_AXI_EMAC is not set
# CONFIG_XILINX_LL_TEMAC is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_NET_SB1000 is not setCONFIG_PHYLIB=yCONFIG_SWPHY=yCONFIG_FIXED_PHY=y
#
# MII PHY device drivers
#
# CONFIG_AMD_PHY is not set
# CONFIG_ADIN_PHY is not set
# CONFIG_AQUANTIA_PHY is not set
# CONFIG_AX88796B_PHY is not set
# CONFIG_BROADCOM_PHY is not set
# CONFIG_BCM54140_PHY is not set
# CONFIG_BCM7XXX_PHY is not set
# CONFIG_BCM84881_PHY is not set
# CONFIG_BCM87XX_PHY is not set
# CONFIG_CICADA_PHY is not set
# CONFIG_CORTINA_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_ICPLUS_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_INTEL_XWAY_PHY is not set
# CONFIG_LSI_ET1011C_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_MARVELL_10G_PHY is not set
# CONFIG_MARVELL_88X2222_PHY is not set
# CONFIG_MAXLINEAR_GPHY is not set
# CONFIG_MEDIATEK_GE_PHY is not set
# CONFIG_MICREL_PHY is not set
# CONFIG_MICROCHIP_PHY is not set
# CONFIG_MICROCHIP_T1_PHY is not set
# CONFIG_MICROSEMI_PHY is not set
# CONFIG_MOTORCOMM_PHY is not set
# CONFIG_NATIONAL_PHY is not set
# CONFIG_NXP_C45_TJA11XX_PHY is not set
# CONFIG_NXP_TJA11XX_PHY is not set
# CONFIG_QSEMI_PHY is not set
# CONFIG_REALTEK_PHY is not set
# CONFIG_RENESAS_PHY is not set
# CONFIG_ROCKCHIP_PHY is not set
# CONFIG_SMSC_PHY is not set
# CONFIG_STE10XP is not set
# CONFIG_TERANETICS_PHY is not set
# CONFIG_DP83822_PHY is not set
# CONFIG_DP83TC811_PHY is not set
# CONFIG_DP83848_PHY is not set
# CONFIG_DP83867_PHY is not set
# CONFIG_DP83869_PHY is not set
# CONFIG_VITESSE_PHY is not set
# CONFIG_XILINX_GMII2RGMII is not set
# CONFIG_MICREL_KS8995MA is not setCONFIG_MDIO_DEVICE=yCONFIG_MDIO_BUS=yCONFIG_FWNODE_MDIO=yCONFIG_ACPI_MDIO=yCONFIG_MDIO_DEVRES=y
# CONFIG_MDIO_BITBANG is not set
# CONFIG_MDIO_BCM_UNIMAC is not set
# CONFIG_MDIO_MVUSB is not set
# CONFIG_MDIO_THUNDER is not set
#
# MDIO Multiplexers
#
#
# PCS device drivers
#
# CONFIG_PCS_XPCS is not set
# end of PCS device drivers
# CONFIG_PPP is not set
# CONFIG_SLIP is not setCONFIG_USB_NET_DRIVERS=y
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_RTL8152 is not set
# CONFIG_USB_LAN78XX is not setCONFIG_USB_USBNET=m
# CONFIG_USB_NET_AX8817X is not set
# CONFIG_USB_NET_AX88179_178A is not setCONFIG_USB_NET_CDCETHER=mCONFIG_USB_NET_CDC_EEM=mCONFIG_USB_NET_CDC_NCM=m
# CONFIG_USB_NET_HUAWEI_CDC_NCM is not set
# CONFIG_USB_NET_CDC_MBIM is not set
# CONFIG_USB_NET_DM9601 is not set
# CONFIG_USB_NET_SR9700 is not set
# CONFIG_USB_NET_SR9800 is not set
# CONFIG_USB_NET_SMSC75XX is not set
# CONFIG_USB_NET_SMSC95XX is not set
# CONFIG_USB_NET_GL620A is not set
# CONFIG_USB_NET_NET1080 is not set
# CONFIG_USB_NET_PLUSB is not set
# CONFIG_USB_NET_MCS7830 is not set
# CONFIG_USB_NET_RNDIS_HOST is not setCONFIG_USB_NET_CDC_SUBSET=m
# CONFIG_USB_ALI_M5632 is not set
# CONFIG_USB_AN2720 is not set
# CONFIG_USB_BELKIN is not set
# CONFIG_USB_ARMLINUX is not set
# CONFIG_USB_EPSON2888 is not set
# CONFIG_USB_KC2190 is not set
# CONFIG_USB_NET_ZAURUS is not set
# CONFIG_USB_NET_CX82310_ETH is not set
# CONFIG_USB_NET_KALMIA is not set
# CONFIG_USB_NET_QMI_WWAN is not set
# CONFIG_USB_NET_INT51X1 is not set
# CONFIG_USB_IPHETH is not set
# CONFIG_USB_SIERRA_NET is not set
# CONFIG_USB_VL600 is not set
# CONFIG_USB_NET_CH9200 is not set
# CONFIG_USB_NET_AQC111 is not set
# CONFIG_USB_RTL8153_ECM is not set
# CONFIG_WLAN is not set
# CONFIG_WAN is not set
#
# Wireless WAN
#
# CONFIG_WWAN is not set
# end of Wireless WAN
# CONFIG_VMXNET3 is not set
# CONFIG_FUJITSU_ES is not set
# CONFIG_NETDEVSIM is not setCONFIG_NET_FAILOVER=m
# CONFIG_ISDN is not set
#
# Input device support
#CONFIG_INPUT=y
# CONFIG_INPUT_FF_MEMLESS is not set
# CONFIG_INPUT_SPARSEKMAP is not set
# CONFIG_INPUT_MATRIXKMAP is not setCONFIG_INPUT_VIVALDIFMAP=y
#
# Userland interfaces
#
# CONFIG_INPUT_MOUSEDEV is not set
# CONFIG_INPUT_JOYDEV is not setCONFIG_INPUT_EVDEV=m
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADP5588 is not set
# CONFIG_KEYBOARD_ADP5589 is not setCONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_QT1050 is not set
# CONFIG_KEYBOARD_QT1070 is not set
# CONFIG_KEYBOARD_QT2160 is not set
# CONFIG_KEYBOARD_DLINK_DIR685 is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_GPIO is not set
# CONFIG_KEYBOARD_GPIO_POLLED is not set
# CONFIG_KEYBOARD_TCA6416 is not set
# CONFIG_KEYBOARD_TCA8418 is not set
# CONFIG_KEYBOARD_MATRIX is not set
# CONFIG_KEYBOARD_LM8333 is not set
# CONFIG_KEYBOARD_MAX7359 is not set
# CONFIG_KEYBOARD_MCS is not set
# CONFIG_KEYBOARD_MPR121 is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_KEYBOARD_OPENCORES is not set
# CONFIG_KEYBOARD_SAMSUNG is not set
# CONFIG_KEYBOARD_STOWAWAY is not set
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_CYPRESS_SF is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not setCONFIG_INPUT_MISC=y
# CONFIG_INPUT_AD714X is not set
# CONFIG_INPUT_BMA150 is not set
# CONFIG_INPUT_E3X0_BUTTON is not setCONFIG_INPUT_PCSPKR=m
# CONFIG_INPUT_MMA8450 is not set
# CONFIG_INPUT_GPIO_BEEPER is not set
# CONFIG_INPUT_GPIO_DECODER is not set
# CONFIG_INPUT_GPIO_VIBRA is not set
# CONFIG_INPUT_ATLAS_BTNS is not set
# CONFIG_INPUT_ATI_REMOTE2 is not set
# CONFIG_INPUT_KEYSPAN_REMOTE is not set
# CONFIG_INPUT_KXTJ9 is not set
# CONFIG_INPUT_POWERMATE is not set
# CONFIG_INPUT_YEALINK is not set
# CONFIG_INPUT_CM109 is not set
# CONFIG_INPUT_UINPUT is not set
# CONFIG_INPUT_PCF8574 is not set
# CONFIG_INPUT_GPIO_ROTARY_ENCODER is not set
# CONFIG_INPUT_DA7280_HAPTICS is not set
# CONFIG_INPUT_ADXL34X is not set
# CONFIG_INPUT_IQS269A is not set
# CONFIG_INPUT_IQS626A is not set
# CONFIG_INPUT_CMA3000 is not set
# CONFIG_INPUT_IDEAPAD_SLIDEBAR is not set
# CONFIG_INPUT_DRV260X_HAPTICS is not set
# CONFIG_INPUT_DRV2665_HAPTICS is not set
# CONFIG_INPUT_DRV2667_HAPTICS is not set
# CONFIG_RMI4_CORE is not set
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_ARCH_MIGHT_HAVE_PC_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PCIPS2 is not setCONFIG_SERIO_LIBPS2=y
# CONFIG_SERIO_RAW is not set
# CONFIG_SERIO_ALTERA_PS2 is not set
# CONFIG_SERIO_PS2MULT is not set
# CONFIG_SERIO_ARC_PS2 is not set
# CONFIG_SERIO_GPIO_PS2 is not set
# CONFIG_USERIO is not set
# CONFIG_GAMEPORT is not set
# end of Hardware I/O ports # end of Input device support
#
# Character devices
#CONFIG_TTY=yCONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=yCONFIG_VT_CONSOLE_SLEEP=yCONFIG_HW_CONSOLE=yCONFIG_VT_HW_CONSOLE_BINDING=yCONFIG_UNIX98_PTYS=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256CONFIG_LDISC_AUTOLOAD=y
#
# Serial drivers
#CONFIG_SERIAL_EARLYCON=yCONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_DEPRECATED_OPTIONS=yCONFIG_SERIAL_8250_PNP=y
# CONFIG_SERIAL_8250_16550A_VARIANTS is not set
# CONFIG_SERIAL_8250_FINTEK is not setCONFIG_SERIAL_8250_CONSOLE=yCONFIG_SERIAL_8250_DMA=yCONFIG_SERIAL_8250_PCI=yCONFIG_SERIAL_8250_EXAR=yCONFIG_SERIAL_8250_NR_UARTS=32CONFIG_SERIAL_8250_RUNTIME_UARTS=4CONFIG_SERIAL_8250_EXTENDED=yCONFIG_SERIAL_8250_MANY_PORTS=yCONFIG_SERIAL_8250_SHARE_IRQ=yCONFIG_SERIAL_8250_DETECT_IRQ=yCONFIG_SERIAL_8250_RSA=yCONFIG_SERIAL_8250_DWLIB=y
# CONFIG_SERIAL_8250_DW is not set
# CONFIG_SERIAL_8250_RT288X is not setCONFIG_SERIAL_8250_LPSS=yCONFIG_SERIAL_8250_MID=yCONFIG_SERIAL_8250_PERICOM=y
#
# Non-8250 serial port support
#
# CONFIG_SERIAL_MAX3100 is not set
# CONFIG_SERIAL_MAX310X is not set
# CONFIG_SERIAL_UARTLITE is not setCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not set
# CONFIG_SERIAL_LANTIQ is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_SC16IS7XX is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
# CONFIG_SERIAL_ARC is not set
# CONFIG_SERIAL_RP2 is not set
# CONFIG_SERIAL_FSL_LPUART is not set
# CONFIG_SERIAL_FSL_LINFLEXUART is not set
# CONFIG_SERIAL_SPRD is not set
# end of Serial drivers
CONFIG_SERIAL_MCTRL_GPIO=y
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_N_GSM is not set
# CONFIG_NOZOMI is not set
# CONFIG_NULL_TTY is not setCONFIG_HVC_DRIVER=y
# CONFIG_SERIAL_DEV_BUS is not set
# CONFIG_TTY_PRINTK is not setCONFIG_VIRTIO_CONSOLE=yCONFIG_IPMI_HANDLER=yCONFIG_IPMI_DMI_DECODE=yCONFIG_IPMI_PLAT_DATA=y
# CONFIG_IPMI_PANIC_EVENT is not setCONFIG_IPMI_DEVICE_INTERFACE=yCONFIG_IPMI_SI=y
# CONFIG_IPMI_SSIF is not setCONFIG_IPMI_WATCHDOG=yCONFIG_IPMI_POWEROFF=mCONFIG_HW_RANDOM=y
# CONFIG_HW_RANDOM_TIMERIOMEM is not setCONFIG_HW_RANDOM_INTEL=yCONFIG_HW_RANDOM_AMD=y
# CONFIG_HW_RANDOM_BA431 is not setCONFIG_HW_RANDOM_VIA=yCONFIG_HW_RANDOM_VIRTIO=y
# CONFIG_HW_RANDOM_XIPHERA is not set
# CONFIG_APPLICOM is not set
# CONFIG_MWAVE is not setCONFIG_DEVMEM=yCONFIG_NVRAM=mCONFIG_DEVPORT=yCONFIG_HPET=y
# CONFIG_HPET_MMAP is not set
# CONFIG_HANGCHECK_TIMER is not set
# CONFIG_TCG_TPM is not set
# CONFIG_TELCLOCK is not set
# CONFIG_XILLYBUS is not set
# CONFIG_XILLYUSB is not set
# CONFIG_RANDOM_TRUST_CPU is not set
# CONFIG_RANDOM_TRUST_BOOTLOADER is not set
# end of Character devices
#
# I2C support
#CONFIG_I2C=yCONFIG_ACPI_I2C_OPREGION=yCONFIG_I2C_BOARDINFO=yCONFIG_I2C_COMPAT=yCONFIG_I2C_CHARDEV=yCONFIG_I2C_MUX=m
#
# Multiplexer I2C Chip support
#
# CONFIG_I2C_MUX_GPIO is not set
# CONFIG_I2C_MUX_LTC4306 is not setCONFIG_I2C_MUX_PCA9541=m
CONFIG_I2C_MUX_PCA954x=m
# CONFIG_I2C_MUX_REG is not set
# CONFIG_I2C_MUX_MLXCPLD is not set
# end of Multiplexer I2C Chip support
CONFIG_I2C_HELPER_AUTO=yCONFIG_I2C_SMBUS=y
#
# I2C Hardware Bus support
#
#
# PC SMBus host controller drivers
#
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
# CONFIG_I2C_AMD_MP2 is not setCONFIG_I2C_I801=y
# CONFIG_I2C_ISCH is not set
# CONFIG_I2C_ISMT is not setCONFIG_I2C_PIIX4=m
# CONFIG_I2C_NFORCE2 is not set
# CONFIG_I2C_NVIDIA_GPU is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_I2C_VIA is not set
# CONFIG_I2C_VIAPRO is not set
#
# ACPI drivers
#
# CONFIG_I2C_SCMI is not set
#
# I2C system bus drivers (mostly embedded / system-on-chip) #
# CONFIG_I2C_CBUS_GPIO is not set
# CONFIG_I2C_DESIGNWARE_PLATFORM is not set
# CONFIG_I2C_DESIGNWARE_PCI is not set
# CONFIG_I2C_EMEV2 is not set
# CONFIG_I2C_GPIO is not set
# CONFIG_I2C_OCORES is not set
# CONFIG_I2C_PCA_PLATFORM is not set
# CONFIG_I2C_SIMTEC is not set
# CONFIG_I2C_XILINX is not set
#
# External I2C/SMBus adapter drivers
#
# CONFIG_I2C_DIOLAN_U2C is not set
# CONFIG_I2C_CP2615 is not set
# CONFIG_I2C_ROBOTFUZZ_OSIF is not set
# CONFIG_I2C_TAOS_EVM is not set
# CONFIG_I2C_TINY_USB is not set
#
# Other I2C/SMBus bus drivers
#
# CONFIG_I2C_MLXCPLD is not set
# CONFIG_I2C_VIRTIO is not set
# end of I2C Hardware Bus support
# CONFIG_I2C_STUB is not set
# CONFIG_I2C_SLAVE is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# end of I2C support
# CONFIG_I3C is not setCONFIG_SPI=y
# CONFIG_SPI_DEBUG is not setCONFIG_SPI_MASTER=y
# CONFIG_SPI_MEM is not set
#
# SPI Master Controller Drivers
#
# CONFIG_SPI_ALTERA is not set
# CONFIG_SPI_AXI_SPI_ENGINE is not setCONFIG_SPI_BITBANG=m
# CONFIG_SPI_CADENCE is not set
# CONFIG_SPI_DESIGNWARE is not set
# CONFIG_SPI_NXP_FLEXSPI is not set
# CONFIG_SPI_GPIO is not set
# CONFIG_SPI_LANTIQ_SSC is not set
# CONFIG_SPI_OC_TINY is not set
# CONFIG_SPI_PXA2XX is not set
# CONFIG_SPI_ROCKCHIP is not set
# CONFIG_SPI_SC18IS602 is not set
# CONFIG_SPI_SIFIVE is not set
# CONFIG_SPI_MXIC is not set
# CONFIG_SPI_XCOMM is not setCONFIG_SPI_XILINX=m
# CONFIG_SPI_ZYNQMP_GQSPI is not set
# CONFIG_SPI_AMD is not set
#
# SPI Multiplexer support
#
# CONFIG_SPI_MUX is not set
#
# SPI Protocol Masters
#CONFIG_SPI_SPIDEV=m
# CONFIG_SPI_LOOPBACK_TEST is not set
# CONFIG_SPI_TLE62X0 is not set
# CONFIG_SPI_SLAVE is not setCONFIG_SPI_DYNAMIC=y
# CONFIG_SPMI is not set
# CONFIG_HSI is not setCONFIG_PPS=y
# CONFIG_PPS_DEBUG is not set
#
# PPS clients support
#
# CONFIG_PPS_CLIENT_KTIMER is not set
# CONFIG_PPS_CLIENT_LDISC is not set
# CONFIG_PPS_CLIENT_GPIO is not set
#
# PPS generators support
#
#
# PTP clock support
#CONFIG_PTP_1588_CLOCK=yCONFIG_PTP_1588_CLOCK_OPTIONAL=y
#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks. #
# CONFIG_PTP_1588_CLOCK_IDT82P33 is not set
# CONFIG_PTP_1588_CLOCK_IDTCM is not set
# end of PTP clock support
# CONFIG_PINCTRL is not setCONFIG_GPIOLIB=yCONFIG_GPIOLIB_FASTPATH_LIMIT=512CONFIG_GPIO_ACPI=y
# CONFIG_DEBUG_GPIO is not set
# CONFIG_GPIO_SYSFS is not setCONFIG_GPIO_CDEV=yCONFIG_GPIO_CDEV_V1=y
#
# Memory mapped GPIO drivers
#
# CONFIG_GPIO_AMDPT is not set
# CONFIG_GPIO_DWAPB is not set
# CONFIG_GPIO_EXAR is not set
# CONFIG_GPIO_GENERIC_PLATFORM is not set
# CONFIG_GPIO_ICH is not set
# CONFIG_GPIO_MB86S7X is not set
# CONFIG_GPIO_VX855 is not set
# CONFIG_GPIO_AMD_FCH is not set
# end of Memory mapped GPIO drivers
#
# Port-mapped I/O GPIO drivers
#
# CONFIG_GPIO_F7188X is not set
# CONFIG_GPIO_IT87 is not set
# CONFIG_GPIO_SCH311X is not set
# CONFIG_GPIO_WINBOND is not set
# CONFIG_GPIO_WS16C48 is not set
# end of Port-mapped I/O GPIO drivers
#
# I2C GPIO expanders
#
# CONFIG_GPIO_ADP5588 is not set
# CONFIG_GPIO_MAX7300 is not set
# CONFIG_GPIO_MAX732X is not set
# CONFIG_GPIO_PCA953X is not set
# CONFIG_GPIO_PCA9570 is not set
# CONFIG_GPIO_PCF857X is not set
# CONFIG_GPIO_TPIC2810 is not set
# end of I2C GPIO expanders
#
# MFD GPIO expanders
#
# end of MFD GPIO expanders
#
# PCI GPIO expanders
#
# CONFIG_GPIO_AMD8111 is not set
# CONFIG_GPIO_BT8XX is not set
# CONFIG_GPIO_ML_IOH is not set
# CONFIG_GPIO_PCI_IDIO_16 is not set
# CONFIG_GPIO_PCIE_IDIO_24 is not set
# CONFIG_GPIO_RDC321X is not set
# end of PCI GPIO expanders
#
# SPI GPIO expanders
#
# CONFIG_GPIO_MAX3191X is not set
# CONFIG_GPIO_MAX7301 is not set
# CONFIG_GPIO_MC33880 is not set
# CONFIG_GPIO_PISOSR is not set
# CONFIG_GPIO_XRA1403 is not set
# end of SPI GPIO expanders
#
# USB GPIO expanders
#
# end of USB GPIO expanders
#
# Virtual GPIO drivers
#
# CONFIG_GPIO_AGGREGATOR is not set
# CONFIG_GPIO_MOCKUP is not set
# CONFIG_GPIO_VIRTIO is not set
# CONFIG_GPIO_SIM is not set
# end of Virtual GPIO drivers
CONFIG_W1=mCONFIG_W1_CON=y
#
# 1-wire Bus Masters
#
# CONFIG_W1_MASTER_MATROX is not set
# CONFIG_W1_MASTER_DS2490 is not setCONFIG_W1_MASTER_DS2482=m
# CONFIG_W1_MASTER_DS1WM is not set
# CONFIG_W1_MASTER_GPIO is not set
# CONFIG_W1_MASTER_SGI is not set
# end of 1-wire Bus Masters
#
# 1-wire Slaves
#CONFIG_W1_SLAVE_THERM=m
# CONFIG_W1_SLAVE_SMEM is not set
# CONFIG_W1_SLAVE_DS2405 is not set
# CONFIG_W1_SLAVE_DS2408 is not set
# CONFIG_W1_SLAVE_DS2413 is not set
# CONFIG_W1_SLAVE_DS2406 is not set
# CONFIG_W1_SLAVE_DS2423 is not set
# CONFIG_W1_SLAVE_DS2805 is not set
# CONFIG_W1_SLAVE_DS2430 is not set
# CONFIG_W1_SLAVE_DS2431 is not set
# CONFIG_W1_SLAVE_DS2433 is not set
# CONFIG_W1_SLAVE_DS2438 is not set
# CONFIG_W1_SLAVE_DS250X is not set
# CONFIG_W1_SLAVE_DS2780 is not set
# CONFIG_W1_SLAVE_DS2781 is not set
# CONFIG_W1_SLAVE_DS28E04 is not set
# CONFIG_W1_SLAVE_DS28E17 is not set
# end of 1-wire Slaves
# CONFIG_POWER_RESET is not setCONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not setCONFIG_POWER_SUPPLY_HWMON=y
# CONFIG_PDA_POWER is not set
# CONFIG_IP5XXX_POWER is not set
# CONFIG_TEST_POWER is not set
# CONFIG_CHARGER_ADP5061 is not set
# CONFIG_BATTERY_CW2015 is not set
# CONFIG_BATTERY_DS2760 is not set
# CONFIG_BATTERY_DS2780 is not set
# CONFIG_BATTERY_DS2781 is not set
# CONFIG_BATTERY_DS2782 is not set
# CONFIG_BATTERY_SAMSUNG_SDI is not set
# CONFIG_BATTERY_SBS is not set
# CONFIG_CHARGER_SBS is not set
# CONFIG_MANAGER_SBS is not set
# CONFIG_BATTERY_BQ27XXX is not set
# CONFIG_BATTERY_MAX17040 is not set
# CONFIG_BATTERY_MAX17042 is not set
# CONFIG_BATTERY_MAX1721X is not set
# CONFIG_CHARGER_MAX8903 is not set
# CONFIG_CHARGER_LP8727 is not set
# CONFIG_CHARGER_GPIO is not set
# CONFIG_CHARGER_LT3651 is not set
# CONFIG_CHARGER_LTC4162L is not set
# CONFIG_CHARGER_MAX77976 is not set
# CONFIG_CHARGER_BQ2415X is not set
# CONFIG_CHARGER_BQ24257 is not set
# CONFIG_CHARGER_BQ24735 is not set
# CONFIG_CHARGER_BQ2515X is not set
# CONFIG_CHARGER_BQ25890 is not set
# CONFIG_CHARGER_BQ25980 is not set
# CONFIG_CHARGER_BQ256XX is not set
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
# CONFIG_BATTERY_GOLDFISH is not set
# CONFIG_BATTERY_RT5033 is not set
# CONFIG_CHARGER_RT9455 is not set
# CONFIG_CHARGER_BD99954 is not set
# CONFIG_BATTERY_UG3105 is not setCONFIG_HWMON=yCONFIG_HWMON_VID=m
# CONFIG_HWMON_DEBUG_CHIP is not set
#
# Native drivers
#
# CONFIG_SENSORS_ABITUGURU is not set
# CONFIG_SENSORS_ABITUGURU3 is not set
# CONFIG_SENSORS_AD7314 is not set
# CONFIG_SENSORS_AD7414 is not set
# CONFIG_SENSORS_AD7418 is not set
# CONFIG_SENSORS_ADM1021 is not set
# CONFIG_SENSORS_ADM1025 is not set
# CONFIG_SENSORS_ADM1026 is not set
# CONFIG_SENSORS_ADM1029 is not set
# CONFIG_SENSORS_ADM1031 is not set
# CONFIG_SENSORS_ADM1177 is not set
# CONFIG_SENSORS_ADM9240 is not set
# CONFIG_SENSORS_ADT7310 is not set
# CONFIG_SENSORS_ADT7410 is not set
# CONFIG_SENSORS_ADT7411 is not set
# CONFIG_SENSORS_ADT7462 is not set
# CONFIG_SENSORS_ADT7470 is not set
# CONFIG_SENSORS_ADT7475 is not set
# CONFIG_SENSORS_AHT10 is not set
# CONFIG_SENSORS_AQUACOMPUTER_D5NEXT is not set
# CONFIG_SENSORS_AS370 is not set
# CONFIG_SENSORS_ASC7621 is not set
# CONFIG_SENSORS_AXI_FAN_CONTROL is not set
# CONFIG_SENSORS_K8TEMP is not setCONFIG_SENSORS_K10TEMP=m
# CONFIG_SENSORS_FAM15H_POWER is not set
# CONFIG_SENSORS_APPLESMC is not set
# CONFIG_SENSORS_ASB100 is not set
# CONFIG_SENSORS_ASPEED is not set
# CONFIG_SENSORS_ATXP1 is not set
# CONFIG_SENSORS_CORSAIR_CPRO is not set
# CONFIG_SENSORS_CORSAIR_PSU is not set
# CONFIG_SENSORS_DRIVETEMP is not set
# CONFIG_SENSORS_DS620 is not set
# CONFIG_SENSORS_DS1621 is not set
# CONFIG_SENSORS_DELL_SMM is not set
# CONFIG_SENSORS_I5K_AMB is not set
# CONFIG_SENSORS_F71805F is not set
# CONFIG_SENSORS_F71882FG is not set
# CONFIG_SENSORS_F75375S is not set
# CONFIG_SENSORS_FSCHMD is not set
# CONFIG_SENSORS_FTSTEUTATES is not set
# CONFIG_SENSORS_GL518SM is not set
# CONFIG_SENSORS_GL520SM is not set
# CONFIG_SENSORS_G760A is not set
# CONFIG_SENSORS_G762 is not set
# CONFIG_SENSORS_HIH6130 is not set
# CONFIG_SENSORS_IBMAEM is not set
# CONFIG_SENSORS_IBMPEX is not set
# CONFIG_SENSORS_I5500 is not setCONFIG_SENSORS_CORETEMP=mCONFIG_SENSORS_IT87=m
# CONFIG_SENSORS_JC42 is not set
# CONFIG_SENSORS_POWR1220 is not set
# CONFIG_SENSORS_LINEAGE is not set
# CONFIG_SENSORS_LTC2945 is not set
# CONFIG_SENSORS_LTC2947_I2C is not set
# CONFIG_SENSORS_LTC2947_SPI is not set
# CONFIG_SENSORS_LTC2990 is not set
# CONFIG_SENSORS_LTC2992 is not set
# CONFIG_SENSORS_LTC4151 is not set
# CONFIG_SENSORS_LTC4215 is not set
# CONFIG_SENSORS_LTC4222 is not set
# CONFIG_SENSORS_LTC4245 is not set
# CONFIG_SENSORS_LTC4260 is not set
# CONFIG_SENSORS_LTC4261 is not set
# CONFIG_SENSORS_MAX1111 is not set
# CONFIG_SENSORS_MAX127 is not set
# CONFIG_SENSORS_MAX16065 is not set
# CONFIG_SENSORS_MAX1619 is not set
# CONFIG_SENSORS_MAX1668 is not set
# CONFIG_SENSORS_MAX197 is not set
# CONFIG_SENSORS_MAX31722 is not set
# CONFIG_SENSORS_MAX31730 is not set
# CONFIG_SENSORS_MAX6620 is not set
# CONFIG_SENSORS_MAX6621 is not set
# CONFIG_SENSORS_MAX6639 is not set
# CONFIG_SENSORS_MAX6642 is not set
# CONFIG_SENSORS_MAX6650 is not set
# CONFIG_SENSORS_MAX6697 is not set
# CONFIG_SENSORS_MAX31790 is not set
# CONFIG_SENSORS_MCP3021 is not set
# CONFIG_SENSORS_TC654 is not set
# CONFIG_SENSORS_TPS23861 is not set
# CONFIG_SENSORS_MR75203 is not set
# CONFIG_SENSORS_ADCXX is not set
# CONFIG_SENSORS_LM63 is not set
# CONFIG_SENSORS_LM70 is not set
# CONFIG_SENSORS_LM73 is not set
# CONFIG_SENSORS_LM75 is not set
# CONFIG_SENSORS_LM77 is not set
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM80 is not set
# CONFIG_SENSORS_LM83 is not set
# CONFIG_SENSORS_LM85 is not set
# CONFIG_SENSORS_LM87 is not set
# CONFIG_SENSORS_LM90 is not set
# CONFIG_SENSORS_LM92 is not set
# CONFIG_SENSORS_LM93 is not set
# CONFIG_SENSORS_LM95234 is not set
# CONFIG_SENSORS_LM95241 is not set
# CONFIG_SENSORS_LM95245 is not set
# CONFIG_SENSORS_PC87360 is not set
# CONFIG_SENSORS_PC87427 is not set
# CONFIG_SENSORS_NCT6683 is not set
# CONFIG_SENSORS_NCT6775 is not set
# CONFIG_SENSORS_NCT7802 is not set
# CONFIG_SENSORS_NCT7904 is not set
# CONFIG_SENSORS_NPCM7XX is not set
# CONFIG_SENSORS_NZXT_KRAKEN2 is not set
# CONFIG_SENSORS_NZXT_SMART2 is not set
# CONFIG_SENSORS_PCF8591 is not set
# CONFIG_PMBUS is not set
# CONFIG_SENSORS_SBTSI is not set
# CONFIG_SENSORS_SBRMI is not set
# CONFIG_SENSORS_SHT15 is not set
# CONFIG_SENSORS_SHT21 is not set
# CONFIG_SENSORS_SHT3x is not set
# CONFIG_SENSORS_SHT4x is not set
# CONFIG_SENSORS_SHTC1 is not set
# CONFIG_SENSORS_SIS5595 is not set
# CONFIG_SENSORS_SY7636A is not set
# CONFIG_SENSORS_DME1737 is not set
# CONFIG_SENSORS_EMC1403 is not set
# CONFIG_SENSORS_EMC2103 is not set
# CONFIG_SENSORS_EMC6W201 is not set
# CONFIG_SENSORS_SMSC47M1 is not set
# CONFIG_SENSORS_SMSC47M192 is not set
# CONFIG_SENSORS_SMSC47B397 is not set
# CONFIG_SENSORS_SCH5627 is not set
# CONFIG_SENSORS_SCH5636 is not set
# CONFIG_SENSORS_STTS751 is not set
# CONFIG_SENSORS_SMM665 is not set
# CONFIG_SENSORS_ADC128D818 is not set
# CONFIG_SENSORS_ADS7828 is not set
# CONFIG_SENSORS_ADS7871 is not set
# CONFIG_SENSORS_AMC6821 is not set
# CONFIG_SENSORS_INA209 is not set
# CONFIG_SENSORS_INA2XX is not set
# CONFIG_SENSORS_INA238 is not set
# CONFIG_SENSORS_INA3221 is not set
# CONFIG_SENSORS_TC74 is not set
# CONFIG_SENSORS_THMC50 is not set
# CONFIG_SENSORS_TMP102 is not set
# CONFIG_SENSORS_TMP103 is not set
# CONFIG_SENSORS_TMP108 is not set
# CONFIG_SENSORS_TMP401 is not set
# CONFIG_SENSORS_TMP421 is not set
# CONFIG_SENSORS_TMP464 is not set
# CONFIG_SENSORS_TMP513 is not set
# CONFIG_SENSORS_VIA_CPUTEMP is not set
# CONFIG_SENSORS_VIA686A is not set
# CONFIG_SENSORS_VT1211 is not set
# CONFIG_SENSORS_VT8231 is not set
# CONFIG_SENSORS_W83773G is not set
# CONFIG_SENSORS_W83781D is not set
# CONFIG_SENSORS_W83791D is not set
# CONFIG_SENSORS_W83792D is not set
# CONFIG_SENSORS_W83793 is not set
# CONFIG_SENSORS_W83795 is not set
# CONFIG_SENSORS_W83L785TS is not set
# CONFIG_SENSORS_W83L786NG is not set
# CONFIG_SENSORS_W83627HF is not set
# CONFIG_SENSORS_W83627EHF is not set
#
# ACPI drivers
#
# CONFIG_SENSORS_ACPI_POWER is not set
# CONFIG_SENSORS_ATK0110 is not set
# CONFIG_SENSORS_ASUS_EC is not set CONFIG_THERMAL=y
# CONFIG_THERMAL_NETLINK is not set
# CONFIG_THERMAL_STATISTICS is not set CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0 CONFIG_THERMAL_HWMON=y CONFIG_THERMAL_WRITABLE_TRIPS=y CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set # CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set # CONFIG_THERMAL_GOV_FAIR_SHARE is not set CONFIG_THERMAL_GOV_STEP_WISE=y
# CONFIG_THERMAL_GOV_BANG_BANG is not set CONFIG_THERMAL_GOV_USER_SPACE=y
# CONFIG_THERMAL_EMULATION is not set
#
# Intel thermal drivers
#
# CONFIG_INTEL_POWERCLAMP is not setCONFIG_X86_THERMAL_VECTOR=yCONFIG_X86_PKG_TEMP_THERMAL=m
# CONFIG_INTEL_SOC_DTS_THERMAL is not set
#
# ACPI INT340X thermal drivers
#
# CONFIG_INT340X_THERMAL is not set
# end of ACPI INT340X thermal drivers
# CONFIG_INTEL_PCH_THERMAL is not set
# CONFIG_INTEL_TCC_COOLING is not set
# CONFIG_INTEL_MENLOW is not set
# CONFIG_INTEL_HFI_THERMAL is not set
# end of Intel thermal drivers
CONFIG_WATCHDOG=yCONFIG_WATCHDOG_CORE=y
# CONFIG_WATCHDOG_NOWAYOUT is not setCONFIG_WATCHDOG_HANDLE_BOOT_ENABLED=yCONFIG_WATCHDOG_OPEN_TIMEOUT=0
# CONFIG_WATCHDOG_SYSFS is not set
# CONFIG_WATCHDOG_HRTIMER_PRETIMEOUT is not set
#
# Watchdog Pretimeout Governors
#
# CONFIG_WATCHDOG_PRETIMEOUT_GOV is not set
#
# Watchdog Device Drivers
#
# CONFIG_SOFT_WATCHDOG is not set
# CONFIG_WDAT_WDT is not set
# CONFIG_XILINX_WATCHDOG is not set
# CONFIG_ZIIRAVE_WATCHDOG is not set
# CONFIG_CADENCE_WATCHDOG is not set
# CONFIG_DW_WATCHDOG is not set
# CONFIG_MAX63XX_WATCHDOG is not set
# CONFIG_ACQUIRE_WDT is not set
# CONFIG_ADVANTECH_WDT is not set
# CONFIG_ALIM1535_WDT is not set
# CONFIG_ALIM7101_WDT is not set
# CONFIG_EBC_C384_WDT is not set
# CONFIG_F71808E_WDT is not set
# CONFIG_SP5100_TCO is not set
# CONFIG_SBC_FITPC2_WATCHDOG is not set
# CONFIG_EUROTECH_WDT is not set
# CONFIG_IB700_WDT is not set
# CONFIG_IBMASR is not set
# CONFIG_WAFER_WDT is not set
# CONFIG_I6300ESB_WDT is not set
# CONFIG_IE6XX_WDT is not setCONFIG_ITCO_WDT=y
# CONFIG_ITCO_VENDOR_SUPPORT is not setCONFIG_IT8712F_WDT=m
# CONFIG_IT87_WDT is not set
# CONFIG_HP_WATCHDOG is not set
# CONFIG_SC1200_WDT is not set
# CONFIG_PC87413_WDT is not set
# CONFIG_NV_TCO is not set
# CONFIG_60XX_WDT is not set
# CONFIG_CPU5_WDT is not set
# CONFIG_SMSC_SCH311X_WDT is not set
# CONFIG_SMSC37B787_WDT is not set
# CONFIG_TQMX86_WDT is not set
# CONFIG_VIA_WDT is not set
# CONFIG_W83627HF_WDT is not set
# CONFIG_W83877F_WDT is not set
# CONFIG_W83977F_WDT is not set
# CONFIG_MACHZ_WDT is not set
# CONFIG_SBC_EPX_C3_WATCHDOG is not set
# CONFIG_NI903X_WDT is not set
# CONFIG_NIC7018_WDT is not set
# CONFIG_MEN_A21_WDT is not set
#
# PCI-based Watchdog Cards
#
# CONFIG_PCIPCWATCHDOG is not set
# CONFIG_WDTPCI is not set
#
# USB-based Watchdog Cards
#
# CONFIG_USBPCWATCHDOG is not setCONFIG_SSB_POSSIBLE=y
# CONFIG_SSB is not setCONFIG_BCMA_POSSIBLE=y
# CONFIG_BCMA is not set
#
# Multifunction device drivers
#CONFIG_MFD_CORE=y
# CONFIG_MFD_AS3711 is not set
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_AAT2870_CORE is not set
# CONFIG_MFD_BCM590XX is not set
# CONFIG_MFD_BD9571MWV is not set
# CONFIG_MFD_AXP20X_I2C is not set
# CONFIG_MFD_MADERA is not set
# CONFIG_PMIC_DA903X is not set
# CONFIG_MFD_DA9052_SPI is not set
# CONFIG_MFD_DA9052_I2C is not set
# CONFIG_MFD_DA9055 is not set
# CONFIG_MFD_DA9062 is not set
# CONFIG_MFD_DA9063 is not set
# CONFIG_MFD_DA9150 is not set
# CONFIG_MFD_DLN2 is not set
# CONFIG_MFD_MC13XXX_SPI is not set
# CONFIG_MFD_MC13XXX_I2C is not set
# CONFIG_MFD_MP2629 is not set
# CONFIG_HTC_PASIC3 is not set
# CONFIG_HTC_I2CPLD is not set
# CONFIG_MFD_INTEL_QUARK_I2C_GPIO is not setCONFIG_LPC_ICH=y
# CONFIG_LPC_SCH is not set
# CONFIG_MFD_INTEL_LPSS_ACPI is not set
# CONFIG_MFD_INTEL_LPSS_PCI is not set
# CONFIG_MFD_INTEL_PMC_BXT is not set
# CONFIG_MFD_IQS62X is not set
# CONFIG_MFD_JANZ_CMODIO is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_88PM800 is not set
# CONFIG_MFD_88PM805 is not set
# CONFIG_MFD_88PM860X is not set
# CONFIG_MFD_MAX14577 is not set
# CONFIG_MFD_MAX77693 is not set
# CONFIG_MFD_MAX77843 is not set
# CONFIG_MFD_MAX8907 is not set
# CONFIG_MFD_MAX8925 is not set
# CONFIG_MFD_MAX8997 is not set
# CONFIG_MFD_MAX8998 is not set
# CONFIG_MFD_MT6360 is not set
# CONFIG_MFD_MT6397 is not set
# CONFIG_MFD_MENF21BMC is not set
# CONFIG_EZX_PCAP is not set
# CONFIG_MFD_VIPERBOARD is not set
# CONFIG_MFD_RETU is not set
# CONFIG_MFD_PCF50633 is not set
# CONFIG_MFD_RDC321X is not set
# CONFIG_MFD_RT4831 is not set
# CONFIG_MFD_RT5033 is not set
# CONFIG_MFD_RC5T583 is not set
# CONFIG_MFD_SI476X_CORE is not set
# CONFIG_MFD_SIMPLE_MFD_I2C is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_MFD_SKY81452 is not set
# CONFIG_MFD_SYSCON is not set
# CONFIG_MFD_TI_AM335X_TSCADC is not set
# CONFIG_MFD_LP3943 is not set
# CONFIG_MFD_LP8788 is not set
# CONFIG_MFD_TI_LMU is not set
# CONFIG_MFD_PALMAS is not set
# CONFIG_TPS6105X is not set
# CONFIG_TPS65010 is not set
# CONFIG_TPS6507X is not set
# CONFIG_MFD_TPS65086 is not set
# CONFIG_MFD_TPS65090 is not set
# CONFIG_MFD_TI_LP873X is not set
# CONFIG_MFD_TPS6586X is not set
# CONFIG_MFD_TPS65910 is not set
# CONFIG_MFD_TPS65912_I2C is not set
# CONFIG_MFD_TPS65912_SPI is not set
# CONFIG_TWL4030_CORE is not set
# CONFIG_TWL6040_CORE is not set
# CONFIG_MFD_WL1273_CORE is not set
# CONFIG_MFD_LM3533 is not set
# CONFIG_MFD_TQMX86 is not set
# CONFIG_MFD_VX855 is not set
# CONFIG_MFD_ARIZONA_I2C is not set
# CONFIG_MFD_ARIZONA_SPI is not set
# CONFIG_MFD_WM8400 is not set
# CONFIG_MFD_WM831X_I2C is not set
# CONFIG_MFD_WM831X_SPI is not set
# CONFIG_MFD_WM8350_I2C is not set
# CONFIG_MFD_WM8994 is not set
# CONFIG_MFD_ATC260X_I2C is not set
# CONFIG_MFD_INTEL_M10_BMC is not set
# end of Multifunction device drivers
# CONFIG_REGULATOR is not set
# CONFIG_RC_CORE is not set
#
# CEC support
#
# CONFIG_MEDIA_CEC_SUPPORT is not set
# end of CEC support
# CONFIG_MEDIA_SUPPORT is not set
#
# Graphics support
#CONFIG_AGP=yCONFIG_AGP_AMD64=y
# CONFIG_AGP_INTEL is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_VGA_SWITCHEROO is not set
# CONFIG_DRM is not setCONFIG_DRM_DEBUG_MODESET_LOCK=y
#
# ARM devices
#
# end of ARM devices
CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y
#
# Frame buffer Devices
#CONFIG_FB_CMDLINE=yCONFIG_FB_NOTIFY=yCONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not setCONFIG_FB_CFB_FILLRECT=yCONFIG_FB_CFB_COPYAREA=yCONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_FOREIGN_ENDIAN is not set
# CONFIG_FB_MODE_HELPERS is not set
# CONFIG_FB_TILEBLITTING is not set
#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_UVESA is not set
# CONFIG_FB_VESA is not setCONFIG_FB_EFI=y
# CONFIG_FB_N411 is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_OPENCORES is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_VIA is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_IBM_GXT4500 is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set
# CONFIG_FB_SIMPLE is not set
# CONFIG_FB_SSD1307 is not set
# CONFIG_FB_SM712 is not set
# end of Frame buffer Devices
#
# Backlight & LCD device support
#
# CONFIG_LCD_CLASS_DEVICE is not set
# CONFIG_BACKLIGHT_CLASS_DEVICE is not set
# end of Backlight & LCD device support
#
# Console display driver support
#CONFIG_VGA_CONSOLE=yCONFIG_DUMMY_CONSOLE=y CONFIG_DUMMY_CONSOLE_COLUMNS=80 CONFIG_DUMMY_CONSOLE_ROWS=25 CONFIG_FRAMEBUFFER_CONSOLE=y
# CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION is not set # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
# CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set
# end of Console display driver support
# CONFIG_LOGO is not set
# end of Graphics support
# CONFIG_SOUND is not set
#
# HID support
#CONFIG_HID=y
# CONFIG_HID_BATTERY_STRENGTH is not setCONFIG_HIDRAW=y
# CONFIG_UHID is not setCONFIG_HID_GENERIC=y
#
# Special HID drivers
#
# CONFIG_HID_A4TECH is not set
# CONFIG_HID_ACCUTOUCH is not set
# CONFIG_HID_ACRUX is not set
# CONFIG_HID_APPLEIR is not set
# CONFIG_HID_AUREAL is not set
# CONFIG_HID_BELKIN is not set
# CONFIG_HID_BETOP_FF is not set
# CONFIG_HID_CHERRY is not set
# CONFIG_HID_CHICONY is not set
# CONFIG_HID_COUGAR is not set
# CONFIG_HID_MACALLY is not set
# CONFIG_HID_CMEDIA is not set
# CONFIG_HID_CP2112 is not set
# CONFIG_HID_CREATIVE_SB0540 is not set
# CONFIG_HID_CYPRESS is not set
# CONFIG_HID_DRAGONRISE is not set
# CONFIG_HID_EMS_FF is not set
# CONFIG_HID_ELECOM is not set
# CONFIG_HID_ELO is not set
# CONFIG_HID_EZKEY is not set
# CONFIG_HID_FT260 is not set
# CONFIG_HID_GEMBIRD is not set
# CONFIG_HID_GFRM is not set
# CONFIG_HID_GLORIOUS is not set
# CONFIG_HID_HOLTEK is not set
# CONFIG_HID_VIVALDI is not set
# CONFIG_HID_KEYTOUCH is not set
# CONFIG_HID_KYE is not set
# CONFIG_HID_UCLOGIC is not set
# CONFIG_HID_WALTOP is not set
# CONFIG_HID_VIEWSONIC is not set
# CONFIG_HID_XIAOMI is not set
# CONFIG_HID_GYRATION is not set
# CONFIG_HID_ICADE is not set
# CONFIG_HID_ITE is not set
# CONFIG_HID_JABRA is not set
# CONFIG_HID_TWINHAN is not set
# CONFIG_HID_KENSINGTON is not set
# CONFIG_HID_LCPOWER is not set
# CONFIG_HID_LENOVO is not set
# CONFIG_HID_LETSKETCH is not set
# CONFIG_HID_MAGICMOUSE is not set
# CONFIG_HID_MALTRON is not set
# CONFIG_HID_MAYFLASH is not set
# CONFIG_HID_REDRAGON is not set
# CONFIG_HID_MICROSOFT is not set
# CONFIG_HID_MONTEREY is not set
# CONFIG_HID_MULTITOUCH is not set
# CONFIG_HID_NTI is not set
# CONFIG_HID_NTRIG is not set
# CONFIG_HID_ORTEK is not set
# CONFIG_HID_PANTHERLORD is not set
# CONFIG_HID_PENMOUNT is not set
# CONFIG_HID_PETALYNX is not set
# CONFIG_HID_PICOLCD is not set
# CONFIG_HID_PLANTRONICS is not set
# CONFIG_HID_RAZER is not set
# CONFIG_HID_PRIMAX is not set
# CONFIG_HID_RETRODE is not set
# CONFIG_HID_ROCCAT is not set
# CONFIG_HID_SAITEK is not set
# CONFIG_HID_SAMSUNG is not set
# CONFIG_HID_SEMITEK is not set
# CONFIG_HID_SIGMAMICRO is not set
# CONFIG_HID_SPEEDLINK is not set
# CONFIG_HID_STEAM is not set
# CONFIG_HID_STEELSERIES is not set
# CONFIG_HID_SUNPLUS is not set
# CONFIG_HID_RMI is not set
# CONFIG_HID_GREENASIA is not set
# CONFIG_HID_SMARTJOYPLUS is not set
# CONFIG_HID_TIVO is not set
# CONFIG_HID_TOPSEED is not set
# CONFIG_HID_THRUSTMASTER is not set
# CONFIG_HID_UDRAW_PS3 is not set
# CONFIG_HID_WACOM is not set
# CONFIG_HID_XINMO is not set
# CONFIG_HID_ZEROPLUS is not set
# CONFIG_HID_ZYDACRON is not set
# CONFIG_HID_SENSOR_HUB is not set
# CONFIG_HID_ALPS is not set
# CONFIG_HID_MCP2221 is not set
# end of Special HID drivers
#
# USB HID support
#CONFIG_USB_HID=yCONFIG_HID_PID=yCONFIG_USB_HIDDEV=y
# end of USB HID support
#
# I2C HID support
#
# CONFIG_I2C_HID_ACPI is not set
# end of I2C HID support
#
# Intel ISH HID support
#
# CONFIG_INTEL_ISH_HID is not set
# end of Intel ISH HID support
#
# AMD SFH HID Support
#
# CONFIG_AMD_SFH_HID is not set
# end of AMD SFH HID Support # end of HID support
CONFIG_USB_OHCI_LITTLE_ENDIAN=yCONFIG_USB_SUPPORT=yCONFIG_USB_COMMON=y
# CONFIG_USB_ULPI_BUS is not set
# CONFIG_USB_CONN_GPIO is not setCONFIG_USB_ARCH_HAS_HCD=yCONFIG_USB=yCONFIG_USB_PCI=yCONFIG_USB_ANNOUNCE_NEW_DEVICES=y
#
# Miscellaneous USB options
#CONFIG_USB_DEFAULT_PERSIST=y
# CONFIG_USB_FEW_INIT_RETRIES is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_OTG is not set
# CONFIG_USB_OTG_PRODUCTLIST is not set
# CONFIG_USB_OTG_DISABLE_EXTERNAL_HUB is not setCONFIG_USB_AUTOSUSPEND_DELAY=2
# CONFIG_USB_MON is not set
#
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not setCONFIG_USB_XHCI_HCD=m
# CONFIG_USB_XHCI_DBGCAP is not setCONFIG_USB_XHCI_PCI=m
# CONFIG_USB_XHCI_PCI_RENESAS is not set
# CONFIG_USB_XHCI_PLATFORM is not setCONFIG_USB_EHCI_HCD=m
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
# CONFIG_USB_EHCI_TT_NEWSCHED is not setCONFIG_USB_EHCI_PCI=m
# CONFIG_USB_EHCI_FSL is not set
# CONFIG_USB_EHCI_HCD_PLATFORM is not set
# CONFIG_USB_OXU210HP_HCD is not set
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_FOTG210_HCD is not set
# CONFIG_USB_MAX3421_HCD is not setCONFIG_USB_OHCI_HCD=mCONFIG_USB_OHCI_HCD_PCI=m
# CONFIG_USB_OHCI_HCD_PLATFORM is not setCONFIG_USB_UHCI_HCD=m
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set
# CONFIG_USB_HCD_TEST_MODE is not set
#
# USB Device Class drivers
#CONFIG_USB_ACM=m
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_WDM is not set
# CONFIG_USB_TMC is not set
#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may #
#
# also be needed; see USB_STORAGE Help for more info # CONFIG_USB_STORAGE=m # CONFIG_USB_STORAGE_DEBUG is not set # CONFIG_USB_STORAGE_REALTEK is not set # CONFIG_USB_STORAGE_DATAFAB is not set # CONFIG_USB_STORAGE_FREECOM is not set # CONFIG_USB_STORAGE_ISD200 is not set # CONFIG_USB_STORAGE_USBAT is not set # CONFIG_USB_STORAGE_SDDR09 is not set # CONFIG_USB_STORAGE_SDDR55 is not set # CONFIG_USB_STORAGE_JUMPSHOT is not set # CONFIG_USB_STORAGE_ALAUDA is not set # CONFIG_USB_STORAGE_ONETOUCH is not set # CONFIG_USB_STORAGE_KARMA is not set # CONFIG_USB_STORAGE_CYPRESS_ATACB is not set # CONFIG_USB_STORAGE_ENE_UB6250 is not set # CONFIG_USB_UAS is not set
#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USBIP_CORE is not set
# CONFIG_USB_CDNS_SUPPORT is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
# CONFIG_USB_DWC2 is not set
# CONFIG_USB_CHIPIDEA is not set
# CONFIG_USB_ISP1760 is not set
#
# USB port drivers
#CONFIG_USB_SERIAL=mCONFIG_USB_SERIAL_GENERIC=y
# CONFIG_USB_SERIAL_SIMPLE is not set
# CONFIG_USB_SERIAL_AIRCABLE is not set
# CONFIG_USB_SERIAL_ARK3116 is not set
# CONFIG_USB_SERIAL_BELKIN is not set
# CONFIG_USB_SERIAL_CH341 is not set
# CONFIG_USB_SERIAL_WHITEHEAT is not set
# CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set
# CONFIG_USB_SERIAL_CP210X is not set
# CONFIG_USB_SERIAL_CYPRESS_M8 is not set
# CONFIG_USB_SERIAL_EMPEG is not setCONFIG_USB_SERIAL_FTDI_SIO=m
# CONFIG_USB_SERIAL_VISOR is not set
# CONFIG_USB_SERIAL_IPAQ is not set
# CONFIG_USB_SERIAL_IR is not set
# CONFIG_USB_SERIAL_EDGEPORT is not set
# CONFIG_USB_SERIAL_EDGEPORT_TI is not set
# CONFIG_USB_SERIAL_F81232 is not set
# CONFIG_USB_SERIAL_F8153X is not set
# CONFIG_USB_SERIAL_GARMIN is not set
# CONFIG_USB_SERIAL_IPW is not set
# CONFIG_USB_SERIAL_IUU is not set
# CONFIG_USB_SERIAL_KEYSPAN_PDA is not setCONFIG_USB_SERIAL_KEYSPAN=m
# CONFIG_USB_SERIAL_KLSI is not set
# CONFIG_USB_SERIAL_KOBIL_SCT is not set
# CONFIG_USB_SERIAL_MCT_U232 is not set
# CONFIG_USB_SERIAL_METRO is not set
# CONFIG_USB_SERIAL_MOS7720 is not set
# CONFIG_USB_SERIAL_MOS7840 is not set
# CONFIG_USB_SERIAL_MXUPORT is not set
# CONFIG_USB_SERIAL_NAVMAN is not setCONFIG_USB_SERIAL_PL2303=m
# CONFIG_USB_SERIAL_OTI6858 is not set
# CONFIG_USB_SERIAL_QCAUX is not set
# CONFIG_USB_SERIAL_QUALCOMM is not set
# CONFIG_USB_SERIAL_SPCP8X5 is not set
# CONFIG_USB_SERIAL_SAFE is not set
# CONFIG_USB_SERIAL_SIERRAWIRELESS is not set
# CONFIG_USB_SERIAL_SYMBOL is not set
# CONFIG_USB_SERIAL_TI is not set
# CONFIG_USB_SERIAL_CYBERJACK is not set
# CONFIG_USB_SERIAL_OPTION is not set
# CONFIG_USB_SERIAL_OMNINET is not set
# CONFIG_USB_SERIAL_OPTICON is not set
# CONFIG_USB_SERIAL_XSENS_MT is not set
# CONFIG_USB_SERIAL_WISHBONE is not set
# CONFIG_USB_SERIAL_SSU100 is not set
# CONFIG_USB_SERIAL_QT2 is not set
# CONFIG_USB_SERIAL_UPD78F0730 is not set
# CONFIG_USB_SERIAL_XR is not set
# CONFIG_USB_SERIAL_DEBUG is not set
#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_ADUTUX is not set
# CONFIG_USB_SEVSEG is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_CYPRESS_CY7C63 is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_FTDI_ELAN is not set
# CONFIG_USB_APPLEDISPLAY is not set
# CONFIG_APPLE_MFI_FASTCHARGE is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TRANCEVIBRATOR is not set
# CONFIG_USB_IOWARRIOR is not setCONFIG_USB_TEST=m
# CONFIG_USB_EHSET_TEST_FIXTURE is not set
# CONFIG_USB_ISIGHTFW is not set
# CONFIG_USB_YUREX is not setCONFIG_USB_EZUSB_FX2=m
# CONFIG_USB_HUB_USB251XB is not set
# CONFIG_USB_HSIC_USB3503 is not set
# CONFIG_USB_HSIC_USB4604 is not set
# CONFIG_USB_LINK_LAYER_TEST is not set
# CONFIG_USB_CHAOSKEY is not set
#
# USB Physical Layer drivers
#
# CONFIG_NOP_USB_XCEIV is not set
# CONFIG_USB_GPIO_VBUS is not set
# CONFIG_USB_ISP1301 is not set
# end of USB Physical Layer drivers
# CONFIG_USB_GADGET is not set
# CONFIG_TYPEC is not set
# CONFIG_USB_ROLE_SWITCH is not set
# CONFIG_MMC is not set
# CONFIG_MEMSTICK is not set
# CONFIG_NEW_LEDS is not set
# CONFIG_ACCESSIBILITY is not setCONFIG_INFINIBAND=mCONFIG_INFINIBAND_USER_MAD=mCONFIG_INFINIBAND_USER_ACCESS=mCONFIG_INFINIBAND_USER_MEM=yCONFIG_INFINIBAND_ON_DEMAND_PAGING=y
# CONFIG_INFINIBAND_ADDR_TRANS is not setCONFIG_INFINIBAND_VIRT_DMA=y
# CONFIG_INFINIBAND_MTHCA is not set
# CONFIG_INFINIBAND_EFA is not setCONFIG_MLX4_INFINIBAND=mCONFIG_MLX5_INFINIBAND=m
# CONFIG_INFINIBAND_OCRDMA is not set
# CONFIG_INFINIBAND_USNIC is not set
# CONFIG_INFINIBAND_RDMAVT is not set
# CONFIG_RDMA_RXE is not set
# CONFIG_RDMA_SIW is not set
# CONFIG_INFINIBAND_IPOIB is not set
# CONFIG_INFINIBAND_OPA_VNIC is not setCONFIG_EDAC_ATOMIC_SCRUB=yCONFIG_EDAC_SUPPORT=yCONFIG_RTC_LIB=yCONFIG_RTC_MC146818_LIB=yCONFIG_RTC_CLASS=yCONFIG_RTC_HCTOSYS=yCONFIG_RTC_HCTOSYS_DEVICE="rtc0"CONFIG_RTC_SYSTOHC=yCONFIG_RTC_SYSTOHC_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not setCONFIG_RTC_NVMEM=y
#
# RTC interfaces
#CONFIG_RTC_INTF_SYSFS=yCONFIG_RTC_INTF_PROC=yCONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set
#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_ABB5ZES3 is not set
# CONFIG_RTC_DRV_ABEOZ9 is not set
# CONFIG_RTC_DRV_ABX80X is not set
# CONFIG_RTC_DRV_DS1307 is not set
# CONFIG_RTC_DRV_DS1374 is not set
# CONFIG_RTC_DRV_DS1672 is not set
# CONFIG_RTC_DRV_MAX6900 is not set
# CONFIG_RTC_DRV_RS5C372 is not set
# CONFIG_RTC_DRV_ISL1208 is not set
# CONFIG_RTC_DRV_ISL12022 is not set
# CONFIG_RTC_DRV_X1205 is not set
# CONFIG_RTC_DRV_PCF8523 is not set
# CONFIG_RTC_DRV_PCF85063 is not set
# CONFIG_RTC_DRV_PCF85363 is not set
# CONFIG_RTC_DRV_PCF8563 is not set
# CONFIG_RTC_DRV_PCF8583 is not set
# CONFIG_RTC_DRV_M41T80 is not set
# CONFIG_RTC_DRV_BQ32K is not set
# CONFIG_RTC_DRV_S35390A is not set
# CONFIG_RTC_DRV_FM3130 is not set
# CONFIG_RTC_DRV_RX8010 is not set
# CONFIG_RTC_DRV_RX8581 is not set
# CONFIG_RTC_DRV_RX8025 is not set
# CONFIG_RTC_DRV_EM3027 is not set
# CONFIG_RTC_DRV_RV3028 is not set
# CONFIG_RTC_DRV_RV3032 is not set
# CONFIG_RTC_DRV_RV8803 is not set
# CONFIG_RTC_DRV_SD3078 is not set
#
# SPI RTC drivers
#
# CONFIG_RTC_DRV_M41T93 is not set
# CONFIG_RTC_DRV_M41T94 is not set
# CONFIG_RTC_DRV_DS1302 is not set
# CONFIG_RTC_DRV_DS1305 is not set
# CONFIG_RTC_DRV_DS1343 is not set
# CONFIG_RTC_DRV_DS1347 is not set
# CONFIG_RTC_DRV_DS1390 is not set
# CONFIG_RTC_DRV_MAX6916 is not set
# CONFIG_RTC_DRV_R9701 is not set
# CONFIG_RTC_DRV_RX4581 is not set
# CONFIG_RTC_DRV_RS5C348 is not set
# CONFIG_RTC_DRV_MAX6902 is not set
# CONFIG_RTC_DRV_PCF2123 is not set
# CONFIG_RTC_DRV_MCP795 is not setCONFIG_RTC_I2C_AND_SPI=y
#
# SPI and I2C RTC drivers
#
# CONFIG_RTC_DRV_DS3232 is not set
# CONFIG_RTC_DRV_PCF2127 is not set
# CONFIG_RTC_DRV_RV3029C2 is not set
# CONFIG_RTC_DRV_RX6110 is not set
#
# Platform RTC drivers
#CONFIG_RTC_DRV_CMOS=y
# CONFIG_RTC_DRV_DS1286 is not set
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1685_FAMILY is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_DS2404 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_M48T35 is not set
# CONFIG_RTC_DRV_M48T59 is not set
# CONFIG_RTC_DRV_MSM6242 is not set
# CONFIG_RTC_DRV_BQ4802 is not set
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_V3020 is not set
#
# on-CPU RTC drivers
#
# CONFIG_RTC_DRV_FTRTC010 is not set
#
# HID Sensor RTC drivers
#
# CONFIG_RTC_DRV_GOLDFISH is not setCONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set
#
# DMA Devices
#CONFIG_DMA_ENGINE=yCONFIG_DMA_VIRTUAL_CHANNELS=yCONFIG_DMA_ACPI=y
# CONFIG_ALTERA_MSGDMA is not set
# CONFIG_INTEL_IDMA64 is not set
# CONFIG_INTEL_IDXD is not set
# CONFIG_INTEL_IDXD_COMPAT is not set
# CONFIG_INTEL_IOATDMA is not set
# CONFIG_PLX_DMA is not set
# CONFIG_AMD_PTDMA is not set
# CONFIG_QCOM_HIDMA_MGMT is not set
# CONFIG_QCOM_HIDMA is not setCONFIG_DW_DMAC_CORE=y
# CONFIG_DW_DMAC is not set
# CONFIG_DW_DMAC_PCI is not set
# CONFIG_DW_EDMA is not set
# CONFIG_DW_EDMA_PCIE is not setCONFIG_HSU_DMA=y
# CONFIG_SF_PDMA is not set
# CONFIG_INTEL_LDMA is not set
#
# DMA Clients
#
# CONFIG_ASYNC_TX_DMA is not set
# CONFIG_DMATEST is not set
#
# DMABUF options
#
# CONFIG_SYNC_FILE is not set
# CONFIG_UDMABUF is not set
# CONFIG_DMABUF_MOVE_NOTIFY is not setCONFIG_DMABUF_DEBUG=y
# CONFIG_DMABUF_SELFTESTS is not set
# CONFIG_DMABUF_HEAPS is not set
# CONFIG_DMABUF_SYSFS_STATS is not set
# end of DMABUF options
# CONFIG_AUXDISPLAY is not set
# CONFIG_UIO is not set
# CONFIG_VFIO is not setCONFIG_IRQ_BYPASS_MANAGER=y
# CONFIG_VIRT_DRIVERS is not setCONFIG_VIRTIO=yCONFIG_ARCH_HAS_RESTRICTED_VIRTIO_MEMORY_ACCESS=yCONFIG_VIRTIO_PCI_LIB=yCONFIG_VIRTIO_PCI_LIB_LEGACY=yCONFIG_VIRTIO_MENU=yCONFIG_VIRTIO_PCI=yCONFIG_VIRTIO_PCI_LEGACY=y
# CONFIG_VIRTIO_PMEM is not setCONFIG_VIRTIO_BALLOON=m
# CONFIG_VIRTIO_INPUT is not set
# CONFIG_VIRTIO_MMIO is not set
# CONFIG_VDPA is not setCONFIG_VHOST_IOTLB=yCONFIG_VHOST=yCONFIG_VHOST_MENU=yCONFIG_VHOST_NET=mCONFIG_VHOST_VSOCK=y
# CONFIG_VHOST_CROSS_ENDIAN_LEGACY is not set
#
# Microsoft Hyper-V guest support
#
# end of Microsoft Hyper-V guest support
# CONFIG_GREYBUS is not set
# CONFIG_COMEDI is not set
# CONFIG_STAGING is not setCONFIG_X86_PLATFORM_DEVICES=y
# CONFIG_ACPI_WMI is not set
# CONFIG_ACERHDF is not set
# CONFIG_ACER_WIRELESS is not set
# CONFIG_AMD_PMC is not set
# CONFIG_AMD_HSMP is not set
# CONFIG_ADV_SWBUTTON is not set
# CONFIG_ASUS_WIRELESS is not set
# CONFIG_ASUS_TF103C_DOCK is not setCONFIG_X86_PLATFORM_DRIVERS_DELL=yCONFIG_DCDBAS=mCONFIG_DELL_RBU=mCONFIG_DELL_SMBIOS=mCONFIG_DELL_SMBIOS_SMM=yCONFIG_DELL_SMO8800=m
# CONFIG_FUJITSU_TABLET is not set
# CONFIG_GPD_POCKET_FAN is not set
# CONFIG_HP_ACCEL is not set
# CONFIG_WIRELESS_HOTKEY is not set
# CONFIG_IBM_RTL is not set
# CONFIG_SENSORS_HDAPS is not set
# CONFIG_INTEL_SAR_INT1092 is not set
# CONFIG_INTEL_PMC_CORE is not set
#
# Intel Speed Select Technology interface support
#
# CONFIG_INTEL_SPEED_SELECT_INTERFACE is not set
# end of Intel Speed Select Technology interface support
#
# Intel Uncore Frequency Control
#
# CONFIG_INTEL_UNCORE_FREQ_CONTROL is not set
# end of Intel Uncore Frequency Control
# CONFIG_INTEL_HID_EVENT is not set
# CONFIG_INTEL_VBTN is not set
# CONFIG_INTEL_INT0002_VGPIO is not set
# CONFIG_INTEL_PUNIT_IPC is not set
# CONFIG_INTEL_RST is not set
# CONFIG_INTEL_SMARTCONNECT is not set
# CONFIG_INTEL_VSEC is not set
# CONFIG_BARCO_P50_GPIO is not set
# CONFIG_SAMSUNG_Q10 is not set
# CONFIG_TOSHIBA_BT_RFKILL is not set
# CONFIG_TOSHIBA_HAPS is not set
# CONFIG_ACPI_CMPC is not set
# CONFIG_SYSTEM76_ACPI is not set
# CONFIG_TOPSTAR_LAPTOP is not set
# CONFIG_SERIAL_MULTI_INSTANTIATE is not set
# CONFIG_INTEL_IPS is not set
# CONFIG_INTEL_SCU_PCI is not set
# CONFIG_INTEL_SCU_PLATFORM is not set
# CONFIG_SIEMENS_SIMATIC_IPC is not setCONFIG_PMC_ATOM=y
# CONFIG_CHROME_PLATFORMS is not set
# CONFIG_MELLANOX_PLATFORM is not setCONFIG_SURFACE_PLATFORMS=y
# CONFIG_SURFACE_3_POWER_OPREGION is not set
# CONFIG_SURFACE_GPE is not set
# CONFIG_SURFACE_HOTPLUG is not set
# CONFIG_SURFACE_PRO3_BUTTON is not setCONFIG_HAVE_CLK=yCONFIG_HAVE_CLK_PREPARE=yCONFIG_COMMON_CLK=y
# CONFIG_LMK04832 is not set
# CONFIG_COMMON_CLK_MAX9485 is not set
# CONFIG_COMMON_CLK_SI5341 is not set
# CONFIG_COMMON_CLK_SI5351 is not set
# CONFIG_COMMON_CLK_SI544 is not set
# CONFIG_COMMON_CLK_CDCE706 is not set
# CONFIG_COMMON_CLK_CS2000_CP is not set
# CONFIG_XILINX_VCU is not set
# CONFIG_HWSPINLOCK is not set
#
# Clock Source drivers
#CONFIG_CLKEVT_I8253=yCONFIG_I8253_LOCK=yCONFIG_CLKBLD_I8253=y
# end of Clock Source drivers
# CONFIG_MAILBOX is not setCONFIG_IOMMU_IOVA=yCONFIG_IOASID=yCONFIG_IOMMU_API=yCONFIG_IOMMU_SUPPORT=y
#
# Generic IOMMU Pagetable Support
#CONFIG_IOMMU_IO_PGTABLE=y
# end of Generic IOMMU Pagetable Support
# CONFIG_IOMMU_DEBUGFS is not set
# CONFIG_IOMMU_DEFAULT_DMA_STRICT is not setCONFIG_IOMMU_DEFAULT_DMA_LAZY=y
# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not setCONFIG_IOMMU_DMA=yCONFIG_AMD_IOMMU=y
# CONFIG_AMD_IOMMU_V2 is not setCONFIG_DMAR_TABLE=yCONFIG_INTEL_IOMMU=y
# CONFIG_INTEL_IOMMU_SVM is not set
# CONFIG_INTEL_IOMMU_DEFAULT_ON is not setCONFIG_INTEL_IOMMU_FLOPPY_WA=yCONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON=yCONFIG_IRQ_REMAP=y
# CONFIG_VIRTIO_IOMMU is not set
#
# Remoteproc drivers
#
# CONFIG_REMOTEPROC is not set
# end of Remoteproc drivers
#
# Rpmsg drivers
#
# CONFIG_RPMSG_VIRTIO is not set
# end of Rpmsg drivers
# CONFIG_SOUNDWIRE is not set
#
# SOC (System On Chip) specific Drivers
#
#
# Amlogic SoC drivers
#
# end of Amlogic SoC drivers
#
# Broadcom SoC drivers
#
# end of Broadcom SoC drivers
#
# NXP/Freescale QorIQ SoC drivers
#
# end of NXP/Freescale QorIQ SoC drivers
#
# i.MX SoC drivers
#
# end of i.MX SoC drivers
#
# Enable LiteX SoC Builder specific drivers
#
# end of Enable LiteX SoC Builder specific drivers
#
# Qualcomm SoC drivers
#
# end of Qualcomm SoC drivers
# CONFIG_SOC_TI is not set
#
# Xilinx SoC drivers
#
# end of Xilinx SoC drivers # end of SOC (System On Chip) specific Drivers
# CONFIG_PM_DEVFREQ is not set
# CONFIG_EXTCON is not set
# CONFIG_MEMORY is not set
# CONFIG_IIO is not set
# CONFIG_NTB is not set
# CONFIG_VME_BUS is not set
# CONFIG_PWM is not set
#
# IRQ chip support
#
# end of IRQ chip support
# CONFIG_IPACK_BUS is not set
# CONFIG_RESET_CONTROLLER is not set
#
# PHY Subsystem
#CONFIG_GENERIC_PHY=y
# CONFIG_USB_LGM_PHY is not set
# CONFIG_PHY_CAN_TRANSCEIVER is not set
#
# PHY drivers for Broadcom platforms
#
# CONFIG_BCM_KONA_USB2_PHY is not set
# end of PHY drivers for Broadcom platforms
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_INTEL_LGM_EMMC is not set
# end of PHY Subsystem
# CONFIG_POWERCAP is not set
# CONFIG_MCB is not set
#
# Performance monitor support
#
# end of Performance monitor support
# CONFIG_RAS is not set
# CONFIG_USB4 is not set
#
# Android
#
# CONFIG_ANDROID is not set
# end of Android
CONFIG_LIBNVDIMM=y
# CONFIG_BLK_DEV_PMEM is not set
# CONFIG_BTT is not setCONFIG_NVDIMM_KEYS=y
# CONFIG_DAX is not setCONFIG_NVMEM=yCONFIG_NVMEM_SYSFS=y
# CONFIG_NVMEM_RMEM is not set
#
# HW tracing support
#
# CONFIG_STM is not set
# CONFIG_INTEL_TH is not set
# end of HW tracing support
# CONFIG_FPGA is not set
# CONFIG_TEE is not set
# CONFIG_UNISYS_VISORBUS is not set
# CONFIG_SIOX is not set
# CONFIG_SLIMBUS is not set
# CONFIG_INTERCONNECT is not set
# CONFIG_COUNTER is not set
# CONFIG_MOST is not set
# CONFIG_PECI is not set
# end of Device Drivers
#
# File systems
#CONFIG_DCACHE_WORD_ACCESS=y
# CONFIG_VALIDATE_FS_PARSER is not setCONFIG_FS_IOMAP=y
# CONFIG_EXT2_FS is not set
# CONFIG_EXT3_FS is not setCONFIG_EXT4_FS=yCONFIG_EXT4_USE_FOR_EXT2=y
# CONFIG_EXT4_FS_POSIX_ACL is not setCONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not setCONFIG_JBD2=yCONFIG_JBD2_DEBUG=yCONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_GFS2_FS is not set
# CONFIG_OCFS2_FS is not set
# CONFIG_BTRFS_FS is not set
# CONFIG_NILFS2_FS is not set
# CONFIG_F2FS_FS is not setCONFIG_FS_POSIX_ACL=yCONFIG_EXPORTFS=y
# CONFIG_EXPORTFS_BLOCK_OPS is not setCONFIG_FILE_LOCKING=yCONFIG_FS_ENCRYPTION=yCONFIG_FS_ENCRYPTION_ALGS=y
# CONFIG_FS_VERITY is not setCONFIG_FSNOTIFY=yCONFIG_DNOTIFY=yCONFIG_INOTIFY_USER=yCONFIG_FANOTIFY=y
# CONFIG_FANOTIFY_ACCESS_PERMISSIONS is not setCONFIG_QUOTA=yCONFIG_QUOTA_NETLINK_INTERFACE=y
# CONFIG_PRINT_QUOTA_WARNING is not set
# CONFIG_QUOTA_DEBUG is not setCONFIG_QUOTA_TREE=y
# CONFIG_QFMT_V1 is not setCONFIG_QFMT_V2=yCONFIG_QUOTACTL=yCONFIG_AUTOFS4_FS=mCONFIG_AUTOFS_FS=mCONFIG_FUSE_FS=yCONFIG_CUSE=m
# CONFIG_VIRTIO_FS is not setCONFIG_OVERLAY_FS=y
# CONFIG_OVERLAY_FS_REDIRECT_DIR is not setCONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW=y
# CONFIG_OVERLAY_FS_INDEX is not set
# CONFIG_OVERLAY_FS_XINO_AUTO is not set
# CONFIG_OVERLAY_FS_METACOPY is not set
#
# Caches
#CONFIG_NETFS_SUPPORT=m
# CONFIG_NETFS_STATS is not set
# CONFIG_FSCACHE is not set
# end of Caches
#
# CD-ROM/DVD Filesystems
#CONFIG_ISO9660_FS=mCONFIG_JOLIET=yCONFIG_ZISOFS=y
# CONFIG_UDF_FS is not set
# end of CD-ROM/DVD Filesystems
#
# DOS/FAT/EXFAT/NT Filesystems
#CONFIG_FAT_FS=mCONFIG_MSDOS_FS=mCONFIG_VFAT_FS=mCONFIG_FAT_DEFAULT_CODEPAGE=437CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
# CONFIG_FAT_DEFAULT_UTF8 is not set
# CONFIG_EXFAT_FS is not set
# CONFIG_NTFS_FS is not set
# CONFIG_NTFS3_FS is not set
# end of DOS/FAT/EXFAT/NT Filesystems
#
# Pseudo filesystems
#CONFIG_PROC_FS=yCONFIG_PROC_KCORE=yCONFIG_PROC_VMCORE=y
# CONFIG_PROC_VMCORE_DEVICE_DUMP is not set CONFIG_PROC_SYSCTL=yCONFIG_PROC_PAGE_MONITOR=yCONFIG_PROC_CHILDREN=y CONFIG_PROC_PID_ARCH_STATUS=y CONFIG_PROC_CPU_RESCTRL=yCONFIG_KERNFS=yCONFIG_SYSFS=yCONFIG_TMPFS=yCONFIG_TMPFS_POSIX_ACL=yCONFIG_TMPFS_XATTR=yCONFIG_TMPFS_INODE64=yCONFIG_HUGETLBFS=yCONFIG_HUGETLB_PAGE=y CONFIG_ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP=y CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP=y
# CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON is not set CONFIG_MEMFD_CREATE=y CONFIG_ARCH_HAS_GIGANTIC_PAGE=y CONFIG_CONFIGFS_FS=yCONFIG_EFIVAR_FS=m
# end of Pseudo filesystems
CONFIG_MISC_FILESYSTEMS=y
# CONFIG_ORANGEFS_FS is not set
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_ECRYPT_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_SQUASHFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_OMFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX6FS_FS is not setCONFIG_ROMFS_FS=mCONFIG_ROMFS_BACKED_BY_BLOCK=yCONFIG_ROMFS_ON_BLOCK=yCONFIG_PSTORE=yCONFIG_PSTORE_DEFAULT_KMSG_BYTES=10240CONFIG_PSTORE_DEFLATE_COMPRESS=y
# CONFIG_PSTORE_LZO_COMPRESS is not set
# CONFIG_PSTORE_LZ4_COMPRESS is not set
# CONFIG_PSTORE_LZ4HC_COMPRESS is not set
# CONFIG_PSTORE_842_COMPRESS is not set
# CONFIG_PSTORE_ZSTD_COMPRESS is not setCONFIG_PSTORE_COMPRESS=yCONFIG_PSTORE_DEFLATE_COMPRESS_DEFAULT=yCONFIG_PSTORE_COMPRESS_DEFAULT="deflate"
# CONFIG_PSTORE_CONSOLE is not set
# CONFIG_PSTORE_PMSG is not set
# CONFIG_PSTORE_FTRACE is not set
# CONFIG_PSTORE_RAM is not set
# CONFIG_PSTORE_BLK is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
# CONFIG_EROFS_FS is not setCONFIG_NETWORK_FILESYSTEMS=y
# CONFIG_NFS_FS is not set
# CONFIG_NFSD is not set
# CONFIG_CEPH_FS is not set
# CONFIG_CIFS is not set
# CONFIG_SMB_SERVER is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not setCONFIG_9P_FS=m
# CONFIG_9P_FS_POSIX_ACL is not set
# CONFIG_9P_FS_SECURITY is not setCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"CONFIG_NLS_CODEPAGE_437=y
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not setCONFIG_NLS_ASCII=yCONFIG_NLS_ISO8859_1=y
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
# CONFIG_NLS_MAC_ROMAN is not set
# CONFIG_NLS_MAC_CELTIC is not set
# CONFIG_NLS_MAC_CENTEURO is not set
# CONFIG_NLS_MAC_CROATIAN is not set
# CONFIG_NLS_MAC_CYRILLIC is not set
# CONFIG_NLS_MAC_GAELIC is not set
# CONFIG_NLS_MAC_GREEK is not set
# CONFIG_NLS_MAC_ICELAND is not set
# CONFIG_NLS_MAC_INUIT is not set
# CONFIG_NLS_MAC_ROMANIAN is not set
# CONFIG_NLS_MAC_TURKISH is not setCONFIG_NLS_UTF8=y
# CONFIG_DLM is not set
# CONFIG_UNICODE is not setCONFIG_IO_WQ=y
# end of File systems
#
# Security options
#CONFIG_KEYS=y
# CONFIG_KEYS_REQUEST_CACHE is not set CONFIG_PERSISTENT_KEYRINGS=yCONFIG_ENCRYPTED_KEYS=y
# CONFIG_USER_DECRYPTED_DATA is not set
# CONFIG_KEY_DH_OPERATIONS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set CONFIG_SECURITY=y
# CONFIG_SECURITYFS is not setCONFIG_SECURITY_NETWORK=yCONFIG_PAGE_TABLE_ISOLATION=y
# CONFIG_SECURITY_INFINIBAND is not set
# CONFIG_SECURITY_NETWORK_XFRM is not set
# CONFIG_SECURITY_PATH is not set
# CONFIG_INTEL_TXT is not set CONFIG_HAVE_HARDENED_USERCOPY_ALLOCATOR=y CONFIG_HARDENED_USERCOPY=y
# CONFIG_FORTIFY_SOURCE is not set
# CONFIG_STATIC_USERMODEHELPER is not set
# CONFIG_SECURITY_SELINUX is not set
# CONFIG_SECURITY_SMACK is not set
# CONFIG_SECURITY_TOMOYO is not set
# CONFIG_SECURITY_APPARMOR is not set
# CONFIG_SECURITY_LOADPIN is not set
# CONFIG_SECURITY_YAMA is not set
# CONFIG_SECURITY_SAFESETID is not set
# CONFIG_SECURITY_LOCKDOWN_LSM is not set
# CONFIG_SECURITY_LANDLOCK is not setCONFIG_INTEGRITY=y
# CONFIG_INTEGRITY_SIGNATURE is not set CONFIG_INTEGRITY_AUDIT=y
# CONFIG_IMA is not set
# CONFIG_IMA_SECURE_AND_OR_TRUSTED_BOOT is not set
# CONFIG_EVM is not setCONFIG_DEFAULT_SECURITY_DAC=y CONFIG_LSM="landlock,lockdown,yama,loadpin,safesetid,integrity,bpf"
#
# Kernel hardening options
#
#
# Memory initialization
#CONFIG_CC_HAS_AUTO_VAR_INIT_PATTERN=yCONFIG_CC_HAS_AUTO_VAR_INIT_ZERO=y
# CONFIG_INIT_STACK_NONE is not set
# CONFIG_INIT_STACK_ALL_PATTERN is not setCONFIG_INIT_STACK_ALL_ZERO=y
# CONFIG_INIT_ON_ALLOC_DEFAULT_ON is not set
# CONFIG_INIT_ON_FREE_DEFAULT_ON is not set
# end of Memory initialization # end of Kernel hardening options # end of Security options
CONFIG_CRYPTO=y
#
# Crypto core or helper
#CONFIG_CRYPTO_ALGAPI=yCONFIG_CRYPTO_ALGAPI2=yCONFIG_CRYPTO_AEAD=yCONFIG_CRYPTO_AEAD2=yCONFIG_CRYPTO_SKCIPHER=yCONFIG_CRYPTO_SKCIPHER2=yCONFIG_CRYPTO_HASH=yCONFIG_CRYPTO_HASH2=yCONFIG_CRYPTO_RNG=yCONFIG_CRYPTO_RNG2=yCONFIG_CRYPTO_AKCIPHER2=yCONFIG_CRYPTO_AKCIPHER=mCONFIG_CRYPTO_KPP2=yCONFIG_CRYPTO_ACOMP2=yCONFIG_CRYPTO_MANAGER=yCONFIG_CRYPTO_MANAGER2=y
# CONFIG_CRYPTO_USER is not set
# CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set
# CONFIG_CRYPTO_MANAGER_EXTRA_TESTS is not setCONFIG_CRYPTO_NULL=yCONFIG_CRYPTO_NULL2=y
# CONFIG_CRYPTO_PCRYPT is not setCONFIG_CRYPTO_CRYPTD=yCONFIG_CRYPTO_AUTHENC=y
# CONFIG_CRYPTO_TEST is not setCONFIG_CRYPTO_SIMD=y
#
# Public-key cryptography
#CONFIG_CRYPTO_RSA=m
# CONFIG_CRYPTO_DH is not set
# CONFIG_CRYPTO_ECDH is not set
# CONFIG_CRYPTO_ECDSA is not set
# CONFIG_CRYPTO_ECRDSA is not set
# CONFIG_CRYPTO_SM2 is not set
# CONFIG_CRYPTO_CURVE25519 is not set
# CONFIG_CRYPTO_CURVE25519_X86 is not set
#
# Authenticated Encryption with Associated Data
#
# CONFIG_CRYPTO_CCM is not set
# CONFIG_CRYPTO_GCM is not set
# CONFIG_CRYPTO_CHACHA20POLY1305 is not set
# CONFIG_CRYPTO_AEGIS128 is not set
# CONFIG_CRYPTO_AEGIS128_AESNI_SSE2 is not set
# CONFIG_CRYPTO_SEQIV is not set
# CONFIG_CRYPTO_ECHAINIV is not set
#
# Block modes
#CONFIG_CRYPTO_CBC=y
# CONFIG_CRYPTO_CFB is not set
# CONFIG_CRYPTO_CTR is not setCONFIG_CRYPTO_CTS=yCONFIG_CRYPTO_ECB=y
# CONFIG_CRYPTO_LRW is not set
# CONFIG_CRYPTO_OFB is not set
# CONFIG_CRYPTO_PCBC is not setCONFIG_CRYPTO_XTS=y
# CONFIG_CRYPTO_KEYWRAP is not set
# CONFIG_CRYPTO_NHPOLY1305_SSE2 is not set
# CONFIG_CRYPTO_NHPOLY1305_AVX2 is not set
# CONFIG_CRYPTO_ADIANTUM is not setCONFIG_CRYPTO_ESSIV=y
#
# Hash modes
#
# CONFIG_CRYPTO_CMAC is not setCONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_XCBC is not setCONFIG_CRYPTO_VMAC=y
#
# Digest
#CONFIG_CRYPTO_CRC32C=y
# CONFIG_CRYPTO_CRC32C_INTEL is not set
# CONFIG_CRYPTO_CRC32 is not set
# CONFIG_CRYPTO_CRC32_PCLMUL is not set
# CONFIG_CRYPTO_XXHASH is not set
# CONFIG_CRYPTO_BLAKE2B is not set
# CONFIG_CRYPTO_BLAKE2S is not set
# CONFIG_CRYPTO_BLAKE2S_X86 is not set
# CONFIG_CRYPTO_CRCT10DIF is not set
# CONFIG_CRYPTO_GHASH is not set
# CONFIG_CRYPTO_POLY1305 is not set
# CONFIG_CRYPTO_POLY1305_X86_64 is not set
# CONFIG_CRYPTO_MD4 is not setCONFIG_CRYPTO_MD5=y
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_RMD160 is not setCONFIG_CRYPTO_SHA1=y
# CONFIG_CRYPTO_SHA1_SSSE3 is not set
# CONFIG_CRYPTO_SHA256_SSSE3 is not set
# CONFIG_CRYPTO_SHA512_SSSE3 is not setCONFIG_CRYPTO_SHA256=yCONFIG_CRYPTO_SHA512=yCONFIG_CRYPTO_SHA3=m
# CONFIG_CRYPTO_SM3 is not set
# CONFIG_CRYPTO_SM3_AVX_X86_64 is not set
# CONFIG_CRYPTO_STREEBOG is not set
# CONFIG_CRYPTO_WP512 is not set
# CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL is not set
#
# Ciphers
#CONFIG_CRYPTO_AES=y
# CONFIG_CRYPTO_AES_TI is not set CONFIG_CRYPTO_AES_NI_INTEL=y
# CONFIG_CRYPTO_ANUBIS is not set CONFIG_CRYPTO_ARC4=y
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_BLOWFISH_X86_64 is not set
# CONFIG_CRYPTO_CAMELLIA is not set
# CONFIG_CRYPTO_CAMELLIA_X86_64 is not set
# CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64 is not set # CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64 is not set # CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST5_AVX_X86_64 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_CAST6_AVX_X86_64 is not set CONFIG_CRYPTO_DES=y
# CONFIG_CRYPTO_DES3_EDE_X86_64 is not set
# CONFIG_CRYPTO_FCRYPT is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_CHACHA20 is not set
# CONFIG_CRYPTO_CHACHA20_X86_64 is not set
# CONFIG_CRYPTO_SEED is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_SERPENT_SSE2_X86_64 is not set # CONFIG_CRYPTO_SERPENT_AVX_X86_64 is not set # CONFIG_CRYPTO_SERPENT_AVX2_X86_64 is not set # CONFIG_CRYPTO_SM4 is not set
# CONFIG_CRYPTO_SM4_AESNI_AVX_X86_64 is not set # CONFIG_CRYPTO_SM4_AESNI_AVX2_X86_64 is not set # CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_TWOFISH is not set
# CONFIG_CRYPTO_TWOFISH_X86_64 is not set
# CONFIG_CRYPTO_TWOFISH_X86_64_3WAY is not set # CONFIG_CRYPTO_TWOFISH_AVX_X86_64 is not set
#
# Compression
#CONFIG_CRYPTO_DEFLATE=yCONFIG_CRYPTO_LZO=y
# CONFIG_CRYPTO_842 is not set
# CONFIG_CRYPTO_LZ4 is not set
# CONFIG_CRYPTO_LZ4HC is not set
# CONFIG_CRYPTO_ZSTD is not set
#
# Random Number Generation
#
# CONFIG_CRYPTO_ANSI_CPRNG is not set
# CONFIG_CRYPTO_DRBG_MENU is not set
# CONFIG_CRYPTO_JITTERENTROPY is not setCONFIG_CRYPTO_USER_API=yCONFIG_CRYPTO_USER_API_HASH=y
# CONFIG_CRYPTO_USER_API_SKCIPHER is not set
# CONFIG_CRYPTO_USER_API_RNG is not set
# CONFIG_CRYPTO_USER_API_AEAD is not setCONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE=yCONFIG_CRYPTO_HASH_INFO=yCONFIG_CRYPTO_HW=y
# CONFIG_CRYPTO_DEV_PADLOCK is not set
# CONFIG_CRYPTO_DEV_ATMEL_ECC is not set
# CONFIG_CRYPTO_DEV_ATMEL_SHA204A is not setCONFIG_CRYPTO_DEV_CCP=yCONFIG_CRYPTO_DEV_CCP_DD=yCONFIG_CRYPTO_DEV_SP_CCP=yCONFIG_CRYPTO_DEV_CCP_CRYPTO=mCONFIG_CRYPTO_DEV_SP_PSP=y
# CONFIG_CRYPTO_DEV_CCP_DEBUGFS is not set
# CONFIG_CRYPTO_DEV_QAT_DH895xCC is not set
# CONFIG_CRYPTO_DEV_QAT_C3XXX is not set
# CONFIG_CRYPTO_DEV_QAT_C62X is not set
# CONFIG_CRYPTO_DEV_QAT_4XXX is not set
# CONFIG_CRYPTO_DEV_QAT_DH895xCCVF is not set
# CONFIG_CRYPTO_DEV_QAT_C3XXXVF is not set
# CONFIG_CRYPTO_DEV_QAT_C62XVF is not set
# CONFIG_CRYPTO_DEV_NITROX_CNN55XX is not set
# CONFIG_CRYPTO_DEV_VIRTIO is not set
# CONFIG_CRYPTO_DEV_SAFEXCEL is not set
# CONFIG_CRYPTO_DEV_AMLOGIC_GXL is not setCONFIG_ASYMMETRIC_KEY_TYPE=yCONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=mCONFIG_X509_CERTIFICATE_PARSER=m
# CONFIG_PKCS8_PRIVATE_KEY_PARSER is not setCONFIG_PKCS7_MESSAGE_PARSER=m
#
# Certificates for signature checking
#
# CONFIG_SYSTEM_TRUSTED_KEYRING is not set
# CONFIG_SYSTEM_BLACKLIST_KEYRING is not set
# end of Certificates for signature checking
CONFIG_BINARY_PRINTF=y
#
# Library routines
#
# CONFIG_PACKING is not setCONFIG_BITREVERSE=yCONFIG_GENERIC_STRNCPY_FROM_USER=yCONFIG_GENERIC_STRNLEN_USER=yCONFIG_GENERIC_NET_UTILS=y
# CONFIG_CORDIC is not set
# CONFIG_PRIME_NUMBERS is not setCONFIG_RATIONAL=yCONFIG_GENERIC_PCI_IOMAP=yCONFIG_GENERIC_IOMAP=yCONFIG_ARCH_USE_CMPXCHG_LOCKREF=yCONFIG_ARCH_HAS_FAST_MULTIPLIER=yCONFIG_ARCH_USE_SYM_ANNOTATIONS=y
#
# Crypto library routines
#CONFIG_CRYPTO_LIB_AES=yCONFIG_CRYPTO_LIB_ARC4=yCONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=y
# CONFIG_CRYPTO_LIB_CHACHA is not set
# CONFIG_CRYPTO_LIB_CURVE25519 is not setCONFIG_CRYPTO_LIB_DES=yCONFIG_CRYPTO_LIB_POLY1305_RSIZE=11
# CONFIG_CRYPTO_LIB_POLY1305 is not set
# CONFIG_CRYPTO_LIB_CHACHA20POLY1305 is not setCONFIG_CRYPTO_LIB_SHA256=y
# end of Crypto library routines
# CONFIG_CRC_CCITT is not setCONFIG_CRC16=y
# CONFIG_CRC_T10DIF is not set
# CONFIG_CRC64_ROCKSOFT is not setCONFIG_CRC_ITU_T=mCONFIG_CRC32=y
# CONFIG_CRC32_SELFTEST is not setCONFIG_CRC32_SLICEBY8=y
# CONFIG_CRC32_SLICEBY4 is not set
# CONFIG_CRC32_SARWATE is not set
# CONFIG_CRC32_BIT is not set
# CONFIG_CRC64 is not set
# CONFIG_CRC4 is not set
# CONFIG_CRC7 is not setCONFIG_LIBCRC32C=y
# CONFIG_CRC8 is not setCONFIG_XXHASH=y
# CONFIG_RANDOM32_SELFTEST is not setCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=yCONFIG_LZO_COMPRESS=yCONFIG_LZO_DECOMPRESS=yCONFIG_LZ4_DECOMPRESS=yCONFIG_ZSTD_DECOMPRESS=yCONFIG_XZ_DEC=yCONFIG_XZ_DEC_X86=yCONFIG_XZ_DEC_POWERPC=yCONFIG_XZ_DEC_IA64=yCONFIG_XZ_DEC_ARM=yCONFIG_XZ_DEC_ARMTHUMB=yCONFIG_XZ_DEC_SPARC=y
# CONFIG_XZ_DEC_MICROLZMA is not setCONFIG_XZ_DEC_BCJ=y
# CONFIG_XZ_DEC_TEST is not setCONFIG_DECOMPRESS_GZIP=yCONFIG_DECOMPRESS_BZIP2=yCONFIG_DECOMPRESS_LZMA=yCONFIG_DECOMPRESS_XZ=yCONFIG_DECOMPRESS_LZO=yCONFIG_DECOMPRESS_LZ4=yCONFIG_DECOMPRESS_ZSTD=yCONFIG_GENERIC_ALLOCATOR=yCONFIG_TEXTSEARCH=yCONFIG_TEXTSEARCH_KMP=mCONFIG_TEXTSEARCH_BM=mCONFIG_TEXTSEARCH_FSM=mCONFIG_BTREE=yCONFIG_INTERVAL_TREE=yCONFIG_XARRAY_MULTI=yCONFIG_ASSOCIATIVE_ARRAY=yCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT_MAP=yCONFIG_HAS_DMA=yCONFIG_DMA_OPS=yCONFIG_NEED_SG_DMA_LENGTH=yCONFIG_NEED_DMA_MAP_STATE=yCONFIG_ARCH_DMA_ADDR_T_64BIT=yCONFIG_ARCH_HAS_FORCE_DMA_UNENCRYPTED=yCONFIG_SWIOTLB=yCONFIG_DMA_COHERENT_POOL=yCONFIG_DMA_API_DEBUG=yCONFIG_DMA_API_DEBUG_SG=y
# CONFIG_DMA_MAP_BENCHMARK is not setCONFIG_SGL_ALLOC=yCONFIG_CHECK_SIGNATURE=yCONFIG_CPU_RMAP=yCONFIG_DQL=yCONFIG_GLOB=y
# CONFIG_GLOB_SELFTEST is not setCONFIG_NLATTR=yCONFIG_CLZ_TAB=yCONFIG_IRQ_POLL=yCONFIG_MPILIB=mCONFIG_DIMLIB=yCONFIG_OID_REGISTRY=mCONFIG_UCS2_STRING=yCONFIG_HAVE_GENERIC_VDSO=yCONFIG_GENERIC_GETTIMEOFDAY=yCONFIG_GENERIC_VDSO_TIME_NS=yCONFIG_FONT_SUPPORT=y
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=yCONFIG_SG_POOL=yCONFIG_ARCH_HAS_PMEM_API=yCONFIG_MEMREGION=yCONFIG_ARCH_HAS_UACCESS_FLUSHCACHE=yCONFIG_ARCH_HAS_COPY_MC=yCONFIG_ARCH_STACKWALK=yCONFIG_STACKDEPOT=yCONFIG_STACK_HASH_ORDER=20CONFIG_SBITMAP=y
# end of Library routines
#
# Kernel hacking
#
#
# printk and dmesg options # CONFIG_PRINTK_TIME=y # CONFIG_PRINTK_CALLER is not set # CONFIG_STACKTRACE_BUILD_ID is not set CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7 CONFIG_CONSOLE_LOGLEVEL_QUIET=4 CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4 # CONFIG_BOOT_PRINTK_DELAY is not set CONFIG_DYNAMIC_DEBUG=y CONFIG_DYNAMIC_DEBUG_CORE=y CONFIG_SYMBOLIC_ERRNAME=y CONFIG_DEBUG_BUGVERBOSE=y # end of printk and dmesg options
CONFIG_DEBUG_KERNEL=yCONFIG_DEBUG_MISC=y
#
# Compile-time checks and compiler options #CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_INFO_NONE is not set CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y # CONFIG_DEBUG_INFO_DWARF4 is not set
# CONFIG_DEBUG_INFO_DWARF5 is not set
# CONFIG_DEBUG_INFO_REDUCED is not set
# CONFIG_DEBUG_INFO_COMPRESSED is not set # CONFIG_DEBUG_INFO_SPLIT is not set CONFIG_DEBUG_INFO_BTF=y CONFIG_PAHOLE_HAS_SPLIT_BTF=y CONFIG_DEBUG_INFO_BTF_MODULES=y
# CONFIG_MODULE_ALLOW_BTF_MISMATCH is not set # CONFIG_GDB_SCRIPTS is not set CONFIG_FRAME_WARN=2048
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_HEADERS_INSTALL is not set
# CONFIG_SECTION_MISMATCH_WARN_ONLY is not set # CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_64B is not set CONFIG_FRAME_POINTER=y CONFIG_STACK_VALIDATION=y
# CONFIG_VMLINUX_MAP is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
# end of Compile-time checks and compiler options
#
# Generic Kernel Debugging Instruments
#CONFIG_MAGIC_SYSRQ=yCONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1CONFIG_MAGIC_SYSRQ_SERIAL=yCONFIG_MAGIC_SYSRQ_SERIAL_SEQUENCE=""CONFIG_DEBUG_FS=yCONFIG_DEBUG_FS_ALLOW_ALL=y
# CONFIG_DEBUG_FS_DISALLOW_MOUNT is not set
# CONFIG_DEBUG_FS_ALLOW_NONE is not setCONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not setCONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL=y
# CONFIG_UBSAN is not setCONFIG_HAVE_ARCH_KCSAN=yCONFIG_HAVE_KCSAN_COMPILER=y
# CONFIG_KCSAN is not set
# end of Generic Kernel Debugging Instruments
#
# Networking Debugging
#
# CONFIG_NET_DEV_REFCNT_TRACKER is not set
# CONFIG_NET_NS_REFCNT_TRACKER is not set
# end of Networking Debugging
#
# Memory Debugging
#CONFIG_PAGE_EXTENSION=y CONFIG_DEBUG_PAGEALLOC=y
# CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT is not set CONFIG_PAGE_OWNER=y
# CONFIG_PAGE_TABLE_CHECK is not set
# CONFIG_PAGE_POISONING is not set
# CONFIG_DEBUG_PAGE_REF is not set
# CONFIG_DEBUG_RODATA_TEST is not set CONFIG_ARCH_HAS_DEBUG_WX=y
# CONFIG_DEBUG_WX is not set CONFIG_GENERIC_PTDUMP=y
# CONFIG_PTDUMP_DEBUGFS is not set
# CONFIG_DEBUG_OBJECTS is not set CONFIG_DEBUG_SLAB=y CONFIG_HAVE_DEBUG_KMEMLEAK=y
# CONFIG_DEBUG_KMEMLEAK is not set CONFIG_DEBUG_STACK_USAGE=y CONFIG_SCHED_STACK_END_CHECK=y CONFIG_ARCH_HAS_DEBUG_VM_PGTABLE=y CONFIG_DEBUG_VM=y
# CONFIG_DEBUG_VM_MAPLE_TREE is not set
# CONFIG_DEBUG_VM_RB is not set CONFIG_DEBUG_VM_PGFLAGS=y CONFIG_DEBUG_VM_PGTABLE=y CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
# CONFIG_DEBUG_VIRTUAL is not set CONFIG_DEBUG_MEMORY_INIT=y
# CONFIG_DEBUG_PER_CPU_MAPS is not set CONFIG_ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP=y # CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP is not set CONFIG_HAVE_ARCH_KASAN=y CONFIG_HAVE_ARCH_KASAN_VMALLOC=y CONFIG_CC_HAS_KASAN_GENERIC=y CONFIG_CC_HAS_KASAN_SW_TAGS=y CONFIG_CC_HAS_WORKING_NOSANITIZE_ADDRESS=y CONFIG_HAVE_ARCH_KFENCE=yCONFIG_KFENCE=y CONFIG_KFENCE_SAMPLE_INTERVAL=500 CONFIG_KFENCE_NUM_OBJECTS=1023
# CONFIG_KFENCE_DEFERRABLE is not set
# CONFIG_KFENCE_STATIC_KEYS is not set CONFIG_KFENCE_STRESS_TEST_FAULTS=0
# end of Memory Debugging
# CONFIG_DEBUG_SHIRQ is not set
#
# Debug Oops, Lockups and Hangs
#
# CONFIG_PANIC_ON_OOPS is not setCONFIG_PANIC_ON_OOPS_VALUE=0CONFIG_PANIC_TIMEOUT=0CONFIG_LOCKUP_DETECTOR=yCONFIG_SOFTLOCKUP_DETECTOR=y
# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not setCONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0CONFIG_HARDLOCKUP_DETECTOR_PERF=yCONFIG_HARDLOCKUP_CHECK_TIMESTAMP=yCONFIG_HARDLOCKUP_DETECTOR=y
# CONFIG_BOOTPARAM_HARDLOCKUP_PANIC is not setCONFIG_BOOTPARAM_HARDLOCKUP_PANIC_VALUE=0
# CONFIG_DETECT_HUNG_TASK is not set
# CONFIG_WQ_WATCHDOG is not set
# CONFIG_TEST_LOCKUP is not set
# end of Debug Oops, Lockups and Hangs
#
# Scheduler Debugging
#CONFIG_SCHED_DEBUG=yCONFIG_SCHED_INFO=yCONFIG_SCHEDSTATS=y
# end of Scheduler Debugging
# CONFIG_DEBUG_TIMEKEEPING is not set
#
# Lock Debugging (spinlocks, mutexes, etc...)
#CONFIG_LOCK_DEBUGGING_SUPPORT=yCONFIG_PROVE_LOCKING=y
# CONFIG_PROVE_RAW_LOCK_NESTING is not set
# CONFIG_LOCK_STAT is not setCONFIG_DEBUG_RT_MUTEXES=yCONFIG_DEBUG_SPINLOCK=yCONFIG_DEBUG_MUTEXES=yCONFIG_DEBUG_WW_MUTEX_SLOWPATH=yCONFIG_DEBUG_RWSEMS=yCONFIG_DEBUG_LOCK_ALLOC=yCONFIG_LOCKDEP=yCONFIG_LOCKDEP_BITS=15CONFIG_LOCKDEP_CHAINS_BITS=16CONFIG_LOCKDEP_STACK_TRACE_BITS=19CONFIG_LOCKDEP_STACK_TRACE_HASH_BITS=14CONFIG_LOCKDEP_CIRCULAR_QUEUE_BITS=12
# CONFIG_DEBUG_LOCKDEP is not setCONFIG_DEBUG_ATOMIC_SLEEP=y
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_LOCK_TORTURE_TEST is not set
# CONFIG_WW_MUTEX_SELFTEST is not set
# CONFIG_SCF_TORTURE_TEST is not set
# CONFIG_CSD_LOCK_WAIT_DEBUG is not setCONFIG_PROVE_NVDIMM_LOCKING=y
# end of Lock Debugging (spinlocks, mutexes, etc...)
CONFIG_TRACE_IRQFLAGS=yCONFIG_TRACE_IRQFLAGS_NMI=y
# CONFIG_DEBUG_IRQFLAGS is not setCONFIG_STACKTRACE=y
# CONFIG_WARN_ALL_UNSEEDED_RANDOM is not set
# CONFIG_DEBUG_KOBJECT is not set
#
# Debug kernel data structures
#CONFIG_DEBUG_LIST=y
# CONFIG_DEBUG_PLIST is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not setCONFIG_BUG_ON_DATA_CORRUPTION=y
# CONFIG_DEBUG_MAPLE_TREE is not set
# end of Debug kernel data structures
# CONFIG_DEBUG_CREDENTIALS is not set
#
# RCU Debugging
#CONFIG_PROVE_RCU=y
# CONFIG_RCU_SCALE_TEST is not set
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_RCU_REF_SCALE_TEST is not setCONFIG_RCU_CPU_STALL_TIMEOUT=21CONFIG_RCU_TRACE=y
# CONFIG_RCU_EQS_DEBUG is not set
# end of RCU Debugging
# CONFIG_DEBUG_WQ_FORCE_RR_CPU is not set
# CONFIG_CPU_HOTPLUG_STATE_CONTROL is not set # CONFIG_LATENCYTOP is not set CONFIG_USER_STACKTRACE_SUPPORT=y CONFIG_NOP_TRACER=yCONFIG_HAVE_RETHOOK=yCONFIG_RETHOOK=y CONFIG_HAVE_FUNCTION_TRACER=y CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y CONFIG_HAVE_DYNAMIC_FTRACE=y CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=y CONFIG_HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS=y CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS=y CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y CONFIG_HAVE_SYSCALL_TRACEPOINTS=y CONFIG_HAVE_FENTRY=y CONFIG_HAVE_OBJTOOL_MCOUNT=y CONFIG_HAVE_C_RECORDMCOUNT=y CONFIG_HAVE_BUILDTIME_MCOUNT_SORT=y CONFIG_BUILDTIME_MCOUNT_SORT=y CONFIG_TRACE_CLOCK=yCONFIG_RING_BUFFER=yCONFIG_EVENT_TRACING=y CONFIG_CONTEXT_SWITCH_TRACER=y CONFIG_PREEMPTIRQ_TRACEPOINTS=y CONFIG_TRACING=yCONFIG_GENERIC_TRACER=y CONFIG_TRACING_SUPPORT=yCONFIG_FTRACE=y
# CONFIG_BOOTTIME_TRACING is not set CONFIG_FUNCTION_TRACER=y CONFIG_FUNCTION_GRAPH_TRACER=y CONFIG_DYNAMIC_FTRACE=y CONFIG_DYNAMIC_FTRACE_WITH_REGS=y CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS=y CONFIG_DYNAMIC_FTRACE_WITH_ARGS=y
# CONFIG_FPROBE is not set
# CONFIG_FUNCTION_PROFILER is not set
# CONFIG_STACK_TRACER is not set
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_SCHED_TRACER is not set
# CONFIG_HWLAT_TRACER is not set
# CONFIG_OSNOISE_TRACER is not set
# CONFIG_TIMERLAT_TRACER is not set
# CONFIG_MMIOTRACE is not set CONFIG_FTRACE_SYSCALLS=y
# CONFIG_TRACER_SNAPSHOT is not set CONFIG_BRANCH_PROFILE_NONE=y
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set # CONFIG_PROFILE_ALL_BRANCHES is not set CONFIG_BLK_DEV_IO_TRACE=y CONFIG_KPROBE_EVENTS=y
# CONFIG_KPROBE_EVENTS_ON_NOTRACE is not set CONFIG_UPROBE_EVENTS=yCONFIG_BPF_EVENTS=yCONFIG_DYNAMIC_EVENTS=y CONFIG_PROBE_EVENTS=y
# CONFIG_BPF_KPROBE_OVERRIDE is not set CONFIG_FTRACE_MCOUNT_RECORD=y CONFIG_FTRACE_MCOUNT_USE_OBJTOOL=y
# CONFIG_SYNTH_EVENTS is not set
# CONFIG_HIST_TRIGGERS is not set
# CONFIG_TRACE_EVENT_INJECT is not set
# CONFIG_TRACEPOINT_BENCHMARK is not set
# CONFIG_RING_BUFFER_BENCHMARK is not set
# CONFIG_TRACE_EVAL_MAP_FILE is not set
# CONFIG_FTRACE_RECORD_RECURSION is not set # CONFIG_FTRACE_STARTUP_TEST is not set
# CONFIG_FTRACE_SORT_STARTUP_TEST is not set # CONFIG_RING_BUFFER_STARTUP_TEST is not set # CONFIG_RING_BUFFER_VALIDATE_TIME_DELTAS is not set # CONFIG_PREEMPTIRQ_DELAY_TEST is not set
# CONFIG_KPROBE_EVENT_GEN_TEST is not set CONFIG_PROVIDE_OHCI1394_DMA_INIT=y
# CONFIG_SAMPLES is not set CONFIG_HAVE_SAMPLE_FTRACE_DIRECT=y CONFIG_HAVE_SAMPLE_FTRACE_DIRECT_MULTI=y CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y
# CONFIG_STRICT_DEVMEM is not set
#
# x86 Debugging # CONFIG_TRACE_IRQFLAGS_NMI_SUPPORT=y CONFIG_EARLY_PRINTK_USB=y CONFIG_X86_VERBOSE_BOOTUP=y CONFIG_EARLY_PRINTK=y CONFIG_EARLY_PRINTK_DBGP=y # CONFIG_EARLY_PRINTK_USB_XDBC is not set # CONFIG_EFI_PGT_DUMP is not set # CONFIG_DEBUG_TLBFLUSH is not set CONFIG_HAVE_MMIOTRACE_SUPPORT=y # CONFIG_X86_DECODER_SELFTEST is not set CONFIG_IO_DELAY_0X80=y # CONFIG_IO_DELAY_0XED is not set # CONFIG_IO_DELAY_UDELAY is not set # CONFIG_IO_DELAY_NONE is not set CONFIG_DEBUG_BOOT_PARAMS=y # CONFIG_CPA_DEBUG is not set # CONFIG_DEBUG_ENTRY is not set # CONFIG_DEBUG_NMI_SELFTEST is not set CONFIG_X86_DEBUG_FPU=y # CONFIG_PUNIT_ATOM_DEBUG is not set # CONFIG_UNWINDER_ORC is not set CONFIG_UNWINDER_FRAME_POINTER=y # end of x86 Debugging
#
# Kernel Testing and Coverage
#
# CONFIG_KUNIT is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not setCONFIG_FUNCTION_ERROR_INJECTION=y
# CONFIG_FAULT_INJECTION is not setCONFIG_ARCH_HAS_KCOV=yCONFIG_CC_HAS_SANCOV_TRACE_PC=y
# CONFIG_KCOV is not setCONFIG_RUNTIME_TESTING_MENU=yCONFIG_LKDTM=y
# CONFIG_TEST_MIN_HEAP is not set
# CONFIG_TEST_DIV64 is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_TEST_REF_TRACKER is not set
# CONFIG_RBTREE_TEST is not set
# CONFIG_REED_SOLOMON_TEST is not set
# CONFIG_INTERVAL_TREE_TEST is not set
# CONFIG_PERCPU_TEST is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_TEST_HEXDUMP is not set
# CONFIG_STRING_SELFTEST is not set
# CONFIG_TEST_STRING_HELPERS is not set
# CONFIG_TEST_STRSCPY is not set
# CONFIG_TEST_KSTRTOX is not set
# CONFIG_TEST_PRINTF is not set
# CONFIG_TEST_SCANF is not set
# CONFIG_TEST_BITMAP is not set
# CONFIG_TEST_UUID is not set
# CONFIG_TEST_XARRAY is not set
# CONFIG_TEST_RHASHTABLE is not set
# CONFIG_TEST_SIPHASH is not set
# CONFIG_TEST_IDA is not set
# CONFIG_TEST_LKM is not set
# CONFIG_TEST_BITOPS is not set
# CONFIG_TEST_VMALLOC is not set
# CONFIG_TEST_USER_COPY is not setCONFIG_TEST_BPF=m
# CONFIG_TEST_BLACKHOLE_DEV is not set
# CONFIG_FIND_BIT_BENCHMARK is not set
# CONFIG_TEST_FIRMWARE is not set
# CONFIG_TEST_SYSCTL is not set
# CONFIG_TEST_UDELAY is not set
# CONFIG_TEST_STATIC_KEYS is not set
# CONFIG_TEST_KMOD is not set
# CONFIG_TEST_MEMCAT_P is not set
# CONFIG_TEST_MEMINIT is not set
# CONFIG_TEST_FREE_PAGES is not set
# CONFIG_TEST_FPU is not set
# CONFIG_TEST_CLOCKSOURCE_WATCHDOG is not setCONFIG_ARCH_USE_MEMTEST=y
# CONFIG_MEMTEST is not set
# end of Kernel Testing and Coverage # end of Kernel hacking