incoming
Subsystems (76)
Andrew Morton
maintainerPATCH 102/212 memcg: enable accounting for fasync_cache
In reply to Andrew MortonFrom: Vasily Averin <[email protected]>
Subject: memcg: enable accounting for fasync_cache
fasync_struct is used by almost all character device drivers to set up the fasync queue, and for regular files by the file lease code. This structure is quite small but long-living and it can be assigned for any open file.
It makes sense to account for its allocations to restrict the host's memory consumption from inside the memcg-limited container.
---
fs/fcntl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
fs/fcntl.c renamed from fs/fcntl.c~memcg-enable-accounting-for-fasync_cache +2 -1
@@ -1049,7 +1049,8 @@ static int __init fcntl_init(void) __FMODE_EXEC | __FMODE_NONOTIFY)); fasync_cache =kmem_cache_create ("fasync_cache" , -sizeof (struct fasync_struct ),0 ,SLAB_PANIC ,NULL ); +sizeof (struct fasync_struct ),0 , +SLAB_PANIC |SLAB_ACCOUNT ,NULL );return 0 ; }
_
Andrew Morton
maintainerPATCH 103/212 memcg: enable accounting for new namesapces and struct nsproxy
In reply to Andrew MortonFrom: Vasily Averin <[email protected]>
Subject: memcg: enable accounting for new namesapces and struct nsproxy
Container admin can create new namespaces and force kernel to allocate up to several pages of memory for the namespaces and its associated structures.
Net and uts namespaces have enabled accounting for such allocations. It makes sense to account for rest ones to restrict the host's memory consumption from inside the memcg-limited container.
---
fs/namespace.c | 2 +- ipc/namespace.c | 2 +- kernel/cgroup/namespace.c | 2 +- kernel/nsproxy.c | 2 +- kernel/pid_namespace.c | 2 +- kernel/time/namespace.c | 4 ++-- kernel/user_namespace.c | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-)
fs/namespace.c renamed from fs/namespace.c~memcg-enable-accounting-for-new-namesapces-and-struct-nsproxy +1 -1
@@ -3307,7 +3307,7 @@ static struct mnt_namespace *alloc_mnt_nif (!ucounts)return ERR_PTR (-ENOSPC ); - new_ns =kzalloc (sizeof (struct mnt_namespace ),GFP_KERNEL ); + new_ns =kzalloc (sizeof (struct mnt_namespace ),GFP_KERNEL_ACCOUNT );if (!new_ns) {dec_mnt_namespaces (ucounts);return ERR_PTR (-ENOMEM );
ipc/namespace.c renamed from ipc/namespace.c~memcg-enable-accounting-for-new-namesapces-and-struct-nsproxy +1 -1
@@ -42,7 +42,7 @@ static struct ipc_namespace *create_ipc_ goto fail; err = -ENOMEM ; - ns =kzalloc (sizeof (struct ipc_namespace ),GFP_KERNEL ); + ns =kzalloc (sizeof (struct ipc_namespace ),GFP_KERNEL_ACCOUNT );if (ns ==NULL ) goto fail_dec;
kernel/cgroup/namespace.c renamed from kernel/cgroup/namespace.c~memcg-enable-accounting-for-new-namesapces-and-struct-nsproxy +1 -1
@@ -24,7 +24,7 @@ static struct cgroup_namespace *alloc_cgstruct cgroup_namespace *new_ns;int ret; - new_ns =kzalloc (sizeof (struct cgroup_namespace ),GFP_KERNEL ); + new_ns =kzalloc (sizeof (struct cgroup_namespace ),GFP_KERNEL_ACCOUNT );if (!new_ns)return ERR_PTR (-ENOMEM ); ret =ns_alloc_inum (&new_ns->ns);
kernel/nsproxy.c renamed from kernel/nsproxy.c~memcg-enable-accounting-for-new-namesapces-and-struct-nsproxy +1 -1
@@ -568,6 +568,6 @@ out:int __init nsproxy_cache_init (void ) { - nsproxy_cachep =KMEM_CACHE (nsproxy,SLAB_PANIC ); + nsproxy_cachep =KMEM_CACHE (nsproxy,SLAB_PANIC |SLAB_ACCOUNT );return 0 ; }
kernel/pid_namespace.c renamed from kernel/pid_namespace.c~memcg-enable-accounting-for-new-namesapces-and-struct-nsproxy +1 -1
@@ -450,7 +450,7 @@ const struct proc_ns_operations pidns_fostatic __init int pid_namespaces_init (void ) { - pid_ns_cachep =KMEM_CACHE (pid_namespace,SLAB_PANIC ); + pid_ns_cachep =KMEM_CACHE (pid_namespace,SLAB_PANIC |SLAB_ACCOUNT );#ifdef CONFIG_CHECKPOINT_RESTORE register_sysctl_paths (kern_path, pid_ns_ctl_table);
kernel/time/namespace.c renamed from kernel/time/namespace.c~memcg-enable-accounting-for-new-namesapces-and-struct-nsproxy +2 -2
@@ -88,13 +88,13 @@ static struct time_namespace *clone_time goto fail; err = -ENOMEM ; - ns =kmalloc (sizeof (*ns),GFP_KERNEL ); + ns =kmalloc (sizeof (*ns),GFP_KERNEL_ACCOUNT );if (!ns) goto fail_dec;refcount_set (&ns->ns.count,1 ); - ns->vvar_page =alloc_page (GFP_KERNEL | __GFP_ZERO); + ns->vvar_page =alloc_page (GFP_KERNEL_ACCOUNT | __GFP_ZERO);if (!ns->vvar_page) goto fail_free;
kernel/user_namespace.c renamed from kernel/user_namespace.c~memcg-enable-accounting-for-new-namesapces-and-struct-nsproxy +1 -1
@@ -1385,7 +1385,7 @@ const struct proc_ns_operations userns_ostatic __init int user_namespaces_init (void ) { - user_ns_cachep =KMEM_CACHE (user_namespace,SLAB_PANIC ); + user_ns_cachep =KMEM_CACHE (user_namespace,SLAB_PANIC |SLAB_ACCOUNT );return 0 ; }subsys_initcall (user_namespaces_init);
_
Andrew Morton
maintainerPATCH 104/212 memcg: enable accounting of ipc resources
In reply to Andrew MortonFrom: Vasily Averin <[email protected]>
Subject: memcg: enable accounting of ipc resources
When user creates IPC objects it forces kernel to allocate memory for these long-living objects.
It makes sense to account them to restrict the host's memory consumption from inside the memcg-limited container.
This patch enables accounting for IPC shared memory segments, messages semaphores and semaphore's undo lists.
---
ipc/msg.c | 2 +- ipc/sem.c | 9 +++++---- ipc/shm.c | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-)
ipc/msg.c renamed from ipc/msg.c~memcg-enable-accounting-of-ipc-resources +1 -1
@@ -147,7 +147,7 @@ static int newque(struct ipc_namespace *key_t key = params->key;int msgflg = params->flg; - msq =kmalloc (sizeof (*msq),GFP_KERNEL ); + msq =kmalloc (sizeof (*msq),GFP_KERNEL_ACCOUNT );if (unlikely (!msq))return -ENOMEM ;
ipc/sem.c renamed from ipc/sem.c~memcg-enable-accounting-of-ipc-resources +5 -4
@@ -514,7 +514,7 @@ static struct sem_array *sem_alloc(size_if (nsems > (INT_MAX -sizeof (*sma)) /sizeof (sma->sems[0 ]))return NULL ; - sma =kvzalloc (struct_size (sma, sems, nsems),GFP_KERNEL ); + sma =kvzalloc (struct_size (sma, sems, nsems),GFP_KERNEL_ACCOUNT );if (unlikely (!sma))return NULL ;
@@ -1855,7 +1855,7 @@ static inline int get_undo_list(struct s undo_list = current->sysvsem.undo_list;if (!undo_list) { - undo_list =kzalloc (sizeof (*undo_list),GFP_KERNEL ); + undo_list =kzalloc (sizeof (*undo_list),GFP_KERNEL_ACCOUNT );if (undo_list ==NULL )return -ENOMEM ;spin_lock_init (&undo_list->lock);
@@ -1941,7 +1941,7 @@ static struct sem_undo *find_alloc_undo(/* step 2: allocate new undo structure */ new =kvzalloc (sizeof (struct sem_undo ) +sizeof (short )*nsems, -GFP_KERNEL ); +GFP_KERNEL_ACCOUNT );if (!new) {ipc_rcu_putref (&sma->sem_perm, sem_rcu_free);return ERR_PTR (-ENOMEM );
@@ -2005,7 +2005,8 @@ static long do_semtimedop(int semid, strif (nsops > ns->sc_semopm)return -E2BIG ;if (nsops >SEMOPM_FAST ) { - sops =kvmalloc_array (nsops,sizeof (*sops),GFP_KERNEL ); + sops =kvmalloc_array (nsops,sizeof (*sops), +GFP_KERNEL_ACCOUNT );if (sops ==NULL )return -ENOMEM ; }
ipc/shm.c renamed from ipc/shm.c~memcg-enable-accounting-of-ipc-resources +1 -1
@@ -619,7 +619,7 @@ static int newseg(struct ipc_namespace * ns->shm_tot + numpages > ns->shm_ctlall)return -ENOSPC ; - shp =kmalloc (sizeof (*shp),GFP_KERNEL ); + shp =kmalloc (sizeof (*shp),GFP_KERNEL_ACCOUNT );if (unlikely (!shp))return -ENOMEM ;
_
Andrew Morton
maintainerPATCH 105/212 memcg: enable accounting for signals
In reply to Andrew MortonFrom: Vasily Averin <[email protected]>
Subject: memcg: enable accounting for signals
When a user send a signal to any another processes it forces the kernel to allocate memory for 'struct sigqueue' objects. The number of signals is limited by RLIMIT_SIGPENDING resource limit, but even the default settings allow each user to consume up to several megabytes of memory.
It makes sense to account for these allocations to restrict the host's memory consumption from inside the memcg-limited container.
---
kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/signal.c renamed from kernel/signal.c~memcg-enable-accounting-for-signals +1 -1
@@ -4663,7 +4663,7 @@ void __init signals_init(void) {siginfo_buildtime_checks (); - sigqueue_cachep =KMEM_CACHE (sigqueue,SLAB_PANIC ); + sigqueue_cachep =KMEM_CACHE (sigqueue,SLAB_PANIC |SLAB_ACCOUNT ); }#ifdef CONFIG_KGDB_KDB
_
Andrew Morton
maintainerPATCH 106/212 memcg: enable accounting for posix_timers_cache slab
In reply to Andrew MortonFrom: Vasily Averin <[email protected]>
Subject: memcg: enable accounting for posix_timers_cache slab
A program may create multiple interval timers using timer_create(). For each timer the kernel preallocates a "queued real-time signal", Consequently, the number of timers is limited by the RLIMIT_SIGPENDING resource limit. The allocated object is quite small, ~250 bytes, but even the default signal limits allow to consume up to 100 megabytes per user.
It makes sense to account for them to limit the host's memory consumption from inside the memcg-limited container.
---
kernel/time/posix-timers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/time/posix-timers.c renamed from kernel/time/posix-timers.c~memcg-enable-accounting-for-posix_timers_cache-slab +2 -2
@@ -273,8 +273,8 @@ static int posix_get_hrtimer_res(clockidstatic __init int init_posix_timers (void ) { posix_timers_cache =kmem_cache_create ("posix_timers_cache" , -sizeof (struct k_itimer ),0 ,SLAB_PANIC , -NULL ); +sizeof (struct k_itimer ),0 , +SLAB_PANIC |SLAB_ACCOUNT ,NULL );return 0 ; }__initcall (init_posix_timers);
_
Andrew Morton
maintainerPATCH 107/212 memcg: enable accounting for ldt_struct objects
In reply to Andrew MortonFrom: Vasily Averin <[email protected]>
Subject: memcg: enable accounting for ldt_struct objects
Each task can request own LDT and force the kernel to allocate up to 64Kb memory per-mm.
There are legitimate workloads with hundreds of processes and there can be hundreds of workloads running on large machines. The unaccounted memory can cause isolation issues between the workloads particularly on highly utilized machines.
It makes sense to account for this objects to restrict the host's memory consumption from inside the memcg-limited container.
---
arch/x86/kernel/ldt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/x86/kernel/ldt.c renamed from arch/x86/kernel/ldt.c~memcg-enable-accounting-for-ldt_struct-objects +3 -3
@@ -154,7 +154,7 @@ static struct ldt_struct *alloc_ldt_struif (num_entries >LDT_ENTRIES )return NULL ; - new_ldt =kmalloc (sizeof (struct ldt_struct ),GFP_KERNEL ); + new_ldt =kmalloc (sizeof (struct ldt_struct ),GFP_KERNEL_ACCOUNT );if (!new_ldt)return NULL ;
@@ -168,9 +168,9 @@ static struct ldt_struct *alloc_ldt_stru* than PAGE_SIZE. */ if (alloc_size >PAGE_SIZE ) - new_ldt->entries =vzalloc (alloc_size); + new_ldt->entries =__vmalloc (alloc_size,GFP_KERNEL_ACCOUNT | __GFP_ZERO);else - new_ldt->entries = (void *)get_zeroed_page (GFP_KERNEL ); + new_ldt->entries = (void *)get_zeroed_page (GFP_KERNEL_ACCOUNT );if (!new_ldt->entries) {kfree (new_ldt);
_
Andrew Morton
maintainerPATCH 108/212 memcg: cleanup racy sum avoidance code
In reply to Andrew MortonFrom: Shakeel Butt <[email protected]>
Subject: memcg: cleanup racy sum avoidance code
We used to have per-cpu memcg and lruvec stats and the readers have to traverse and sum the stats from each cpu. This summing was racy and may expose transient negative values. So, an explicit check was added to avoid such scenarios. Now these stats are moved to rstat infrastructure and are no more per-cpu, so we can remove the fixup for transient negative values.
---
include/linux/memcontrol.h | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-)
include/linux/memcontrol.h renamed from include/linux/memcontrol.h~memcg-cleanup-racy-sum-avoidance-code +2 -13
@@ -977,30 +977,19 @@ static inline void mod_memcg_state(strucstatic inline unsigned long memcg_page_state (struct mem_cgroup *memcg,int idx) { -long x =READ_ONCE (memcg->vmstats.state[idx]); -#ifdef CONFIG_SMP -if (x <0 ) - x =0 ; -#endif -return x; +return READ_ONCE (memcg->vmstats.state[idx]); }static inline unsigned long lruvec_page_state (struct lruvec *lruvec,enum node_stat_item idx) {struct mem_cgroup_per_node *pn; -long x;if (mem_cgroup_disabled ())return node_page_state (lruvec_pgdat (lruvec), idx); pn = container_of(lruvec, struct mem_cgroup_per_node, lruvec); - x =READ_ONCE (pn->lruvec_stats.state[idx]); -#ifdef CONFIG_SMP -if (x <0 ) - x =0 ; -#endif -return x; +return READ_ONCE (pn->lruvec_stats.state[idx]); } static inline unsigned long lruvec_page_state_local(struct lruvec *lruvec,
_
Andrew Morton
maintainerPATCH 109/212 memcg: replace in_interrupt() by !in_task() in active_memcg()
In reply to Andrew MortonFrom: Vasily Averin <[email protected]>
Subject: memcg: replace in_interrupt() by !in_task() in active_memcg()
set_active_memcg() uses in_interrupt() check to select proper storage for
cgroup: pointer on task struct or per-cpu pointer.
It isn't fully correct: obsoleted in_interrupt() includes tasks with disabled BH. It's better to use '!in_task()' instead.
---
include/linux/sched/mm.h | 2 +- mm/memcontrol.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/sched/mm.h renamed from include/linux/sched/mm.h~memcg-replace-in_interrupt-by-in_task-in-active_memcg +1 -1
@@ -306,7 +306,7 @@ set_active_memcg(struct mem_cgroup *memc {struct mem_cgroup *old; -if (in_interrupt ()) { +if (!in_task ()) { old =this_cpu_read (int_active_memcg);this_cpu_write (int_active_memcg, memcg); }else {
mm/memcontrol.c renamed from mm/memcontrol.c~memcg-replace-in_interrupt-by-in_task-in-active_memcg +1 -1
@@ -878,7 +878,7 @@ EXPORT_SYMBOL(mem_cgroup_from_task); static __always_inline struct mem_cgroup *active_memcg(void) { -if (in_interrupt ()) +if (!in_task ())return this_cpu_read (int_active_memcg);else return current->active_memcg;
_
Andrew Morton
maintainerPATCH 110/212 mm: memcontrol: set the correct memcg swappiness restriction
In reply to Andrew MortonFrom: Baolin Wang <[email protected]>
Subject: mm: memcontrol: set the correct memcg swappiness restriction
Since commit c843966c556d ("mm: allow swappiness that prefers reclaiming anon over the file workingset") has expended the swappiness value to make swap to be preferred in some systems. We should also change the memcg swappiness restriction to allow memcg swap-preferred.
---
mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memcontrol.c renamed from mm/memcontrol.c~mm-memcontrol-set-the-correct-memcg-swappiness-restriction +1 -1
@@ -4062,7 +4062,7 @@ static int mem_cgroup_swappiness_write(s {struct mem_cgroup *memcg =mem_cgroup_from_css (css); -if (val >100 ) +if (val >200 )return -EINVAL ;if (!mem_cgroup_is_root (memcg))
_
Andrew Morton
maintainerPATCH 111/212 mm, memcg: remove unused functions
In reply to Andrew MortonFrom: Miaohe Lin <[email protected]>
Subject: mm, memcg: remove unused functions
Since commit 2d146aa3aa84 ("mm: memcontrol: switch to rstat"), last user of memcg_stat_item_in_bytes() is gone. And since commit fa40d1ee9f15 ("mm: vmscan: memcontrol: remove mem_cgroup_select_victim_node()"), only the declaration of mem_cgroup_select_victim_node() is remained here. Remove them.
---
include/linux/memcontrol.h | 12 ------------ 1 file changed, 12 deletions(-)
include/linux/memcontrol.h renamed from include/linux/memcontrol.h~mm-memcg-remove-unused-functions +0 -12
@@ -593,13 +593,6 @@ static inline struct obj_cgroup **page_o }#endif -static __always_inline bool memcg_stat_item_in_bytes(int idx) -{ -if (idx ==MEMCG_PERCPU_B ) -return true; -return vmstat_item_in_bytes (idx); -} -static inline bool mem_cgroup_is_root (struct mem_cgroup *memcg) {return (memcg == root_mem_cgroup);
@@ -904,11 +897,6 @@ static inline bool mem_cgroup_online(strreturn !!(memcg->css.flags &CSS_ONLINE ); } -/* -* For memory reclaim. -*/ -int mem_cgroup_select_victim_node (struct mem_cgroup *memcg); -void mem_cgroup_update_lru_size (struct lruvec *lruvec,enum lru_list lru,int zid,int nr_pages);
_
Andrew Morton
maintainerPATCH 112/212 mm, memcg: save some atomic ops when flush is already true
In reply to Andrew MortonFrom: Miaohe Lin <[email protected]>
Subject: mm, memcg: save some atomic ops when flush is already true
Add 'else' to save some atomic ops in obj_stock_flush_required() when flush is already true. No functional change intended here.
---
mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memcontrol.c renamed from mm/memcontrol.c~mm-memcg-save-some-atomic-ops-when-flush-is-already-true +1 -1
@@ -2246,7 +2246,7 @@ static void drain_all_stock(struct mem_cif (memcg && stock->nr_pages &&mem_cgroup_is_descendant (memcg, root_memcg)) flush = true; -if (obj_stock_flush_required (stock, root_memcg)) +else if (obj_stock_flush_required (stock, root_memcg)) flush = true;rcu_read_unlock ();
_
Andrew Morton
maintainerPATCH 113/212 memcg: fix up drain_local_stock comment
In reply to Andrew MortonFrom: Michal Hocko <[email protected]>
Subject: memcg: fix up drain_local_stock comment
Thomas and Vlastimil have noticed that the comment in drain_local_stock doesn't quite make sense. It talks about a synchronization with the memory hotplug but there is no actual memory hotplug involvement here. I meant to talk about cpu hotplug here. Fix that up and hopefuly make the comment more helpful by referencing the cpu hotplug callback as well.
---
mm/memcontrol.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
mm/memcontrol.c renamed from mm/memcontrol.c~memcg-fix-up-drain_local_stock-comment +3 -2
@@ -2178,8 +2178,9 @@ static void drain_local_stock(struct worunsigned long flags;/* -* The only protection from memory hotplug vs. drain_stock races is -* that we always operate on local CPU stock here with IRQ disabled +* The only protection from cpu hotplug (memcg_hotplug_cpu_dead) vs. +* drain_stock races is that we always operate on local CPU stock +* here with IRQ disabled */ local_irq_save (flags);
_
Andrew Morton
maintainerPATCH 114/212 memcg: make memcg->event_list_lock irqsafe
In reply to Andrew MortonFrom: Shakeel Butt <[email protected]>
Subject: memcg: make memcg->event_list_lock irqsafe
The memcg->event_list_lock is usually taken in the normal context but when the userspace closes the corresponding eventfd, eventfd_release through memcg_event_wake takes memcg->event_list_lock with interrupts disabled. This is not an issue on its own but it creates a nested dependency from eventfd_ctx->wqh.lock to memcg->event_list_lock.
Independently, for unrelated eventfd, eventfd_signal() can be called in the irq context, thus making eventfd_ctx->wqh.lock an irq lock. For example, FPGA DFL driver, VHOST VPDA driver and couple of VFIO drivers. This will force memcg->event_list_lock to be an irqsafe lock as well.
One way to break the nested dependency between eventfd_ctx->wqh.lock and memcg->event_list_lock is to add an indirection. However the simplest solution would be to make memcg->event_list_lock irqsafe. This is cgroup v1 feature, is in maintenance and may get deprecated in near future. So, no need to add more code.
BTW this has been discussed previously [1] but there weren't irq users of eventfd_signal() at the time.
[1] https://www.spinics.net/lists/cgroups/msg06248.html
---
mm/memcontrol.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
mm/memcontrol.c renamed from mm/memcontrol.c~memcg-make-memcg-event_list_lock-irqsafe +4 -4
@@ -4839,9 +4839,9 @@ static ssize_t memcg_write_event_controlvfs_poll (efile.file, &event->pt); -spin_lock (&memcg->event_list_lock); +spin_lock_irq (&memcg->event_list_lock);list_add (&event->list, &memcg->event_list); -spin_unlock (&memcg->event_list_lock); +spin_unlock_irq (&memcg->event_list_lock);fdput (cfile);fdput (efile);
@@ -5268,12 +5268,12 @@ static void mem_cgroup_css_offline(struc* Notify userspace about cgroup removing only after rmdir of cgroup * directory to avoid race between userspace and kernelspace. */ -spin_lock (&memcg->event_list_lock); +spin_lock_irq (&memcg->event_list_lock);list_for_each_entry_safe (event, tmp, &memcg->event_list, list) {list_del_init (&event->list);schedule_work (&event->remove); } -spin_unlock (&memcg->event_list_lock); +spin_unlock_irq (&memcg->event_list_lock);page_counter_set_min (&memcg->memory,0 );page_counter_set_low (&memcg->memory,0 );
_
Andrew Morton
maintainerPATCH 115/212 selftests/vm: use kselftest skip code for skipped tests
In reply to Andrew MortonFrom: Po-Hsu Lin <[email protected]>
Subject: selftests/vm: use kselftest skip code for skipped tests
There are several test cases in the vm directory are still using exit 0 when they need to be skipped. Use the kselftest framework to skip code instead so it can help us to distinguish the return status.
Criterion to filter out what should be fixed in vm directory:
grep -r "exit 0" -B1 | grep -i skip
This change might cause some false-positives if people are running these test scripts directly and only checking their return codes, which will change from 0 to 4. However I think the impact should be small as most of our scripts here are already using this skip code. And there will be no such issue if running them with the kselftest framework.
---
tools/testing/selftests/vm/charge_reserved_hugetlb.sh | 5 ++++- tools/testing/selftests/vm/hugetlb_reparenting_test.sh | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-)
tools/testing/selftests/vm/charge_reserved_hugetlb.sh renamed from tools/testing/selftests/vm/charge_reserved_hugetlb.sh~selftests-vm-use-kselftest-skip-code-for-skipped-tests +4 -1
@@ -1,11 +1,14 @@ #!/bin/sh # SPDX-License-Identifier: GPL-2.0 +# Kselftest framework requirement - SKIP code is 4. +ksft_skip=4 + set -e if [[ $(id -u) -ne 0 ]]; then echo "This test must be run as root. Skipping..." - exit 0 + exit $ksft_skip fi fault_limit_file=limit_in_bytes
tools/testing/selftests/vm/hugetlb_reparenting_test.sh renamed from tools/testing/selftests/vm/hugetlb_reparenting_test.sh~selftests-vm-use-kselftest-skip-code-for-skipped-tests +4 -1
@@ -1,11 +1,14 @@ #!/bin/bash # SPDX-License-Identifier: GPL-2.0 +# Kselftest framework requirement - SKIP code is 4. +ksft_skip=4 + set -e if [[ $(id -u) -ne 0 ]]; then echo "This test must be run as root. Skipping..." - exit 0 + exit $ksft_skip fi usage_file=usage_in_bytes
_
Andrew Morton
maintainerPATCH 116/212 selftests: Fix spelling mistake "cann't" -> "cannot"
In reply to Andrew MortonFrom: Colin Ian King <[email protected]>
Subject: selftests: Fix spelling mistake "cann't" -> "cannot"
There is a spelling mistake in an error message. Fix it.
---
tools/testing/selftests/vm/mlock-random-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/vm/mlock-random-test.c renamed from tools/testing/selftests/vm/mlock-random-test.c~selftests-fix-spelling-mistake-cannt-cannot +1 -1
@@ -70,7 +70,7 @@ int get_proc_locked_vm_size(void) } } -perror ("cann't parse VmLck in /proc/self/status\n" ); +perror ("cannot parse VmLck in /proc/self/status\n" );fclose (f);return -1 ; }
_
Andrew Morton
maintainerPATCH 117/212 lazy tlb: introduce lazy mm refcount helper functions
In reply to Andrew MortonFrom: Nicholas Piggin <[email protected]>
Subject: lazy tlb: introduce lazy mm refcount helper functions
Patch series "shoot lazy tlbs", v4.
On a 16-socket 192-core POWER8 system, a context switching benchmark with as many software threads as CPUs (so each switch will go in and out of idle), upstream can achieve a rate of about 1 million context switches per second. After this series it goes up to 118 million.
This patch (of 4):
Add explicit _lazy_tlb annotated functions for lazy mm refcounting. This makes lazy mm references more obvious, and allows explicit refcounting to be removed if it is not used.
If a kernel thread's current lazy tlb mm happens to be the one it wants to use, then kthread_use_mm() cleverly transfers the mm refcount from the lazy tlb mm reference to the returned reference. If the lazy tlb mm reference is no longer identical to a normal reference, this trick does not work, so that is changed to be explicit about the two references.
---
arch/arm/mach-rpc/ecard.c | 2 +- arch/powerpc/kernel/smp.c | 2 +- arch/powerpc/mm/book3s64/radix_tlb.c | 4 ++-- fs/exec.c | 4 ++-- include/linux/sched/mm.h | 11 +++++++++++ kernel/cpu.c | 2 +- kernel/exit.c | 2 +- kernel/kthread.c | 21 +++++++++++++-------- kernel/sched/core.c | 15 ++++++++------- 9 files changed, 40 insertions(+), 23 deletions(-)
arch/arm/mach-rpc/ecard.c renamed from arch/arm/mach-rpc/ecard.c~lazy-tlb-introduce-lazy-mm-refcount-helper-functions +1 -1
@@ -253,7 +253,7 @@ static int ecard_init_mm(void) current->mm = mm; current->active_mm = mm;activate_mm (active_mm, mm); -mmdrop (active_mm); +mmdrop_lazy_tlb (active_mm);ecard_init_pgtables (mm);return 0 ; }
arch/powerpc/kernel/smp.c renamed from arch/powerpc/kernel/smp.c~lazy-tlb-introduce-lazy-mm-refcount-helper-functions +1 -1
@@ -1556,7 +1556,7 @@ void start_secondary(void *unused)if (IS_ENABLED (CONFIG_PPC32 ))setup_kup (); -mmgrab (&init_mm); +mmgrab_lazy_tlb (&init_mm); current->active_mm = &init_mm;smp_store_cpu_info (cpu);
arch/powerpc/mm/book3s64/radix_tlb.c renamed from arch/powerpc/mm/book3s64/radix_tlb.c~lazy-tlb-introduce-lazy-mm-refcount-helper-functions +2 -2
@@ -785,10 +785,10 @@ void exit_lazy_flush_tlb(struct mm_strucif (current->active_mm == mm) {WARN_ON_ONCE (current->mm !=NULL );/* Is a kernel thread and is using mm as the lazy tlb */ -mmgrab (&init_mm); +mmgrab_lazy_tlb (&init_mm); current->active_mm = &init_mm;switch_mm_irqs_off (mm, &init_mm, current); -mmdrop (mm); +mmdrop_lazy_tlb (mm); }/*
fs/exec.c renamed from fs/exec.c~lazy-tlb-introduce-lazy-mm-refcount-helper-functions +2 -2
@@ -1026,9 +1026,9 @@ static int exec_mmap(struct mm_struct *msetmax_mm_hiwater_rss (&tsk->signal->maxrss, old_mm);mm_update_next_owner (old_mm);mmput (old_mm); -return 0 ; + }else { +mmdrop_lazy_tlb (active_mm); } -mmdrop (active_mm);return 0 ; }
include/linux/sched/mm.h renamed from include/linux/sched/mm.h~lazy-tlb-introduce-lazy-mm-refcount-helper-functions +11 -0
@@ -49,6 +49,17 @@ static inline void mmdrop(struct mm_stru__mmdrop (mm); } +/* Helpers for lazy TLB mm refcounting */ +static inline void mmgrab_lazy_tlb (struct mm_struct *mm) +{ +mmgrab (mm); +} + +static inline void mmdrop_lazy_tlb (struct mm_struct *mm) +{ +mmdrop (mm); +} +/** * mmget() - Pin the address space associated with a &struct mm_struct. * @mm: The address space to pin.
kernel/cpu.c renamed from kernel/cpu.c~lazy-tlb-introduce-lazy-mm-refcount-helper-functions +1 -1
@@ -603,7 +603,7 @@ static int finish_cpu(unsigned int cpu)*/ if (mm != &init_mm) idle->active_mm = &init_mm; -mmdrop (mm); +mmdrop_lazy_tlb (mm);return 0 ; }
kernel/exit.c renamed from kernel/exit.c~lazy-tlb-introduce-lazy-mm-refcount-helper-functions +1 -1
@@ -475,7 +475,7 @@ static void exit_mm(void)__set_current_state (TASK_RUNNING );mmap_read_lock (mm); } -mmgrab (mm); +mmgrab_lazy_tlb (mm);BUG_ON (mm != current->active_mm);/* more a memory barrier than a real lock */ task_lock (current);
kernel/kthread.c renamed from kernel/kthread.c~lazy-tlb-introduce-lazy-mm-refcount-helper-functions +13 -8
@@ -1350,14 +1350,19 @@ void kthread_use_mm(struct mm_struct *mmWARN_ON_ONCE (!(tsk->flags &PF_KTHREAD ));WARN_ON_ONCE (tsk->mm); +/* +* It's possible that tsk->active_mm == mm here, but we must +* still mmgrab(mm) and mmdrop_lazy_tlb(active_mm), because lazy +* mm may not have its own refcount (see mmgrab/drop_lazy_tlb()). +*/ +mmgrab (mm); +task_lock (tsk);/* Hold off tlb flush IPIs while switching mm's */ local_irq_disable (); active_mm = tsk->active_mm; -if (active_mm != mm) { -mmgrab (mm); +if (active_mm != mm) tsk->active_mm = mm; - } tsk->mm = mm;membarrier_update_current_mm (mm);switch_mm_irqs_off (active_mm, mm, tsk);
@@ -1374,12 +1379,9 @@ void kthread_use_mm(struct mm_struct *mm* memory barrier after storing to tsk->mm, before accessing * user-space memory. A full memory barrier for membarrier * {PRIVATE,GLOBAL}_EXPEDITED is implicitly provided by -* mmdrop(), or explicitly with smp_mb(). +* mmdrop_lazy_tlb(). */ -if (active_mm != mm) -mmdrop (active_mm); -else -smp_mb (); +mmdrop_lazy_tlb (active_mm);to_kthread (tsk)->oldfs =force_uaccess_begin (); }
@@ -1411,10 +1413,13 @@ void kthread_unuse_mm(struct mm_struct *local_irq_disable (); tsk->mm =NULL ;membarrier_update_current_mm (NULL ); +mmgrab_lazy_tlb (mm);/* active_mm is still 'mm' */ enter_lazy_tlb (mm, tsk);local_irq_enable ();task_unlock (tsk); + +mmdrop (mm); }EXPORT_SYMBOL_GPL (kthread_unuse_mm);
kernel/sched/core.c renamed from kernel/sched/core.c~lazy-tlb-introduce-lazy-mm-refcount-helper-functions +8 -7
@@ -4586,13 +4586,14 @@ static struct rq *finish_task_switch(str* rq->curr, before returning to userspace, so provide them here: * * - a full memory barrier for {PRIVATE,GLOBAL}_EXPEDITED, implicitly -* provided by mmdrop(), +* provided by mmdrop_lazy_tlb(), * - a sync_core for SYNC_CORE. */ if (mm) {membarrier_mm_sync_core_before_usermode (mm); -mmdrop (mm); +mmdrop_lazy_tlb (mm); } +if (unlikely (prev_state ==TASK_DEAD )) {if (prev->sched_class->task_dead) prev->sched_class->task_dead (prev);
@@ -4655,9 +4656,9 @@ context_switch(struct rq *rq, struct tas/* * kernel -> kernel lazy + transfer active -* user -> kernel lazy + mmgrab() active +* user -> kernel lazy + mmgrab_lazy_tlb() active * -* kernel -> user switch + mmdrop() active +* kernel -> user switch + mmdrop_lazy_tlb() active * user -> user switch */ if (!next->mm) {// to kernel
@@ -4665,7 +4666,7 @@ context_switch(struct rq *rq, struct tas next->active_mm = prev->active_mm;if (prev->mm)// from user -mmgrab (prev->active_mm); +mmgrab_lazy_tlb (prev->active_mm);else prev->active_mm =NULL ; }else {// to user
@@ -4681,7 +4682,7 @@ context_switch(struct rq *rq, struct tasswitch_mm_irqs_off (prev->active_mm, next->mm, next);if (!prev->mm) {// from kernel -/* will mmdrop() in finish_task_switch(). */ +/* will mmdrop_lazy_tlb() in finish_task_switch(). */ rq->prev_mm = prev->active_mm; prev->active_mm =NULL ; }
@@ -9128,7 +9129,7 @@ void __init sched_init(void)/* * The boot idle thread does lazy MMU switching as well: */ -mmgrab (&init_mm); +mmgrab_lazy_tlb (&init_mm);enter_lazy_tlb (&init_mm, current);/*
_
Andrew Morton
maintainerPATCH 118/212 lazy tlb: allow lazy tlb mm refcounting to be configurable
In reply to Andrew MortonFrom: Nicholas Piggin <[email protected]>
Subject: lazy tlb: allow lazy tlb mm refcounting to be configurable
Add CONFIG_MMU_TLB_REFCOUNT which enables refcounting of the lazy tlb mm when it is context switched. This can be disabled by architectures that don't require this refcounting if they clean up lazy tlb mms when the last refcount is dropped. Currently this is always enabled, which is what existing code does, so the patch is effectively a no-op.
Rename rq->prev_mm to rq->prev_lazy_mm, because that's what it is.
---
arch/Kconfig | 14 ++++++++++++++ include/linux/sched/mm.h | 14 ++++++++++++-- kernel/sched/core.c | 22 ++++++++++++++++++---- kernel/sched/sched.h | 4 +++- 4 files changed, 47 insertions(+), 7 deletions(-)
arch/Kconfig renamed from arch/Kconfig~lazy-tlb-allow-lazy-tlb-mm-refcounting-to-be-configurable +14 -0
@@ -425,6 +425,20 @@ config ARCH_WANT_IRQS_OFF_ACTIVATE_MM irqs disabled over activate_mm. Architectures that do IPI based TLB shootdowns should enable this. +# Use normal mm refcounting for MMU_LAZY_TLB kernel thread references. +# MMU_LAZY_TLB_REFCOUNT=n can improve the scalability of context switching +# to/from kernel threads when the same mm is running on a lot of CPUs (a large +# multi-threaded application), by reducing contention on the mm refcount. +# +# This can be disabled if the architecture ensures no CPUs are using an mm as a +# "lazy tlb" beyond its final refcount (i.e., by the time __mmdrop frees the mm +# or its kernel page tables). This could be arranged by arch_exit_mmap(), or +# final exit(2) TLB flush, for example. arch code must also ensure the +# _lazy_tlb variants of mmgrab/mmdrop are used when dropping the lazy reference +# to a kthread ->active_mm (non-arch code has been converted already). +config MMU_LAZY_TLB_REFCOUNT + def_bool y + config ARCH_HAVE_NMI_SAFE_CMPXCHG bool
include/linux/sched/mm.h renamed from include/linux/sched/mm.h~lazy-tlb-allow-lazy-tlb-mm-refcounting-to-be-configurable +12 -2
@@ -52,12 +52,22 @@ static inline void mmdrop(struct mm_stru/* Helpers for lazy TLB mm refcounting */ static inline void mmgrab_lazy_tlb (struct mm_struct *mm) { -mmgrab (mm); +if (IS_ENABLED (CONFIG_MMU_LAZY_TLB_REFCOUNT )) +mmgrab (mm); }static inline void mmdrop_lazy_tlb (struct mm_struct *mm) { -mmdrop (mm); +if (IS_ENABLED (CONFIG_MMU_LAZY_TLB_REFCOUNT )) { +mmdrop (mm); + }else { +/* +* mmdrop_lazy_tlb must provide a full memory barrier, see the +* membarrier comment in finish_task_switch which relies on +* this. +*/ +smp_mb (); + } }/**
kernel/sched/core.c renamed from kernel/sched/core.c~lazy-tlb-allow-lazy-tlb-mm-refcounting-to-be-configurable +18 -4
@@ -4527,7 +4527,7 @@ static struct rq *finish_task_switch(str __releases(rq->lock) {struct rq *rq =this_rq (); -struct mm_struct *mm = rq->prev_mm; +struct mm_struct *mm =NULL ;long prev_state;/*
@@ -4546,7 +4546,10 @@ static struct rq *finish_task_switch(str current->comm, current->pid, preempt_count()))preempt_count_set (FORK_PREEMPT_COUNT ); - rq->prev_mm =NULL ; +#ifdef CONFIG_MMU_LAZY_TLB_REFCOUNT + mm = rq->prev_lazy_mm; + rq->prev_lazy_mm =NULL ; +#endif /* * A task struct has one reference for the use as "current".
@@ -4682,9 +4685,20 @@ context_switch(struct rq *rq, struct tasswitch_mm_irqs_off (prev->active_mm, next->mm, next);if (!prev->mm) {// from kernel -/* will mmdrop_lazy_tlb() in finish_task_switch(). */ - rq->prev_mm = prev->active_mm; +#ifdef CONFIG_MMU_LAZY_TLB_REFCOUNT +/* Will mmdrop_lazy_tlb() in finish_task_switch(). */ + rq->prev_lazy_mm = prev->active_mm; prev->active_mm =NULL ; +#else +/* +* Without MMU_LAZY_TLB_REFCOUNT there is no lazy +* tracking (because no rq->prev_lazy_mm) in +* finish_task_switch, so no mmdrop_lazy_tlb(), so no +* memory barrier for membarrier (see the membarrier +* comment in finish_task_switch()). Do it here. +*/ +smp_mb (); +#endif } }
kernel/sched/sched.h renamed from kernel/sched/sched.h~lazy-tlb-allow-lazy-tlb-mm-refcounting-to-be-configurable +3 -1
@@ -967,7 +967,9 @@ struct rq {struct task_struct *idle;struct task_struct *stop;unsigned long next_balance; -struct mm_struct *prev_mm; +#ifdef CONFIG_MMU_LAZY_TLB_REFCOUNT +struct mm_struct *prev_lazy_mm; +#endif unsigned int clock_update_flags;u64 clock;
_
Andrew Morton
maintainerPATCH 119/212 lazy tlb: shoot lazies, a non-refcounting lazy tlb option
In reply to Andrew MortonFrom: Nicholas Piggin <[email protected]>
Subject: lazy tlb: shoot lazies, a non-refcounting lazy tlb option
On big systems, the mm refcount can become highly contented when doing a lot of context switching with threaded applications (particularly switching between the idle thread and an application thread).
Abandoning lazy tlb slows switching down quite a bit in the important user->idle->user cases, so instead implement a non-refcounted scheme that causes __mmdrop() to IPI all CPUs in the mm_cpumask and shoot down any remaining lazy ones.
Shootdown IPIs are some concern, but they have not been observed to be a big problem with this scheme (the powerpc implementation generated 314 additional interrupts on a 144 CPU system during a kernel compile). There are a number of strategies that could be employed to reduce IPIs if they turn out to be a problem for some workload.
---
arch/Kconfig | 14 +++++++++++++ kernel/fork.c | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+)
arch/Kconfig renamed from arch/Kconfig~lazy-tlb-shoot-lazies-a-non-refcounting-lazy-tlb-option +14 -0
@@ -438,6 +438,20 @@ config ARCH_WANT_IRQS_OFF_ACTIVATE_MM # to a kthread ->active_mm (non-arch code has been converted already). config MMU_LAZY_TLB_REFCOUNT def_bool y + depends on !MMU_LAZY_TLB_SHOOTDOWN + +# This option allows MMU_LAZY_TLB_REFCOUNT=n. It ensures no CPUs are using an +# mm as a lazy tlb beyond its last reference count, by shooting down these +# users before the mm is deallocated. __mmdrop() first IPIs all CPUs that may +# be using the mm as a lazy tlb, so that they may switch themselves to using +# init_mm for their active mm. mm_cpumask(mm) is used to determine which CPUs +# may be using mm as a lazy tlb mm. +# +# To implement this, an arch must ensure mm_cpumask(mm) contains at least all +# possible CPUs in which the mm is lazy, and it must meet the requirements for +# MMU_LAZY_TLB_REFCOUNT=n (see above). +config MMU_LAZY_TLB_SHOOTDOWN + bool config ARCH_HAVE_NMI_SAFE_CMPXCHG bool
kernel/fork.c renamed from kernel/fork.c~lazy-tlb-shoot-lazies-a-non-refcounting-lazy-tlb-option +51 -0
63 lines not on this page · raw message
_
Re: [patch 119/212] lazy tlb: shoot lazies, a non-refcounting lazy tlb option
Quoted 12 lines · Andrew Morton
From: Nicholas Piggin <[email protected]>
Subject: lazy tlb: shoot lazies, a non-refcounting lazy tlb optionOn big systems, the mm refcount can become highly contented when doing a lot of context switching with threaded applications (particularly switching between the idle thread and an application thread).
Abandoning lazy tlb slows switching down quite a bit in the important
user->idle->usercases, so instead implement a non-refcounted scheme that causes__mmdrop()to IPI all CPUs in themm_cpumaskand shoot down any remaining lazy ones.
Quoted 5 lines
Shootdown IPIs are some concern, but they have not been observed to be a big problem with this scheme (the powerpc implementation generated 314 additional interrupts on a 144 CPU system during a kernel compile). There are a number of strategies that could be employed to reduce IPIs if they turn out to be a problem for some workload.
This pile is:
For reasons that have been discussed previously. My series is still in progress. It’s moving slowly for two reasons. First, I have limited time to work on it. Second, the existing mm refcounting is a giant pile of worms, and that needs fixing one way or another before we add yet more complexity. For example, has anyone noticed that kthread mms are refcounted using different rules than everything else?
Even if my modified refcounting scheme isn’t the eventual winner, the prerequisite cleanups are still prerequisites. I absolutely nack anything that adds yet more nonsensical complexity to the existing scheme, makes it substantially more fragile, and does not fix the underlying crap that makes speeding up responsibly such a mess.
Nick or anyone else, you’re welcome to finish up my series (and I can give pointers) or you can wait.
Quoted 109 lines
[[email protected]: update comments]Signed-off-by Nicholas Piggin <[email protected]>Cc Anton Blanchard <[email protected]>Cc Andy Lutomirski <[email protected]>Cc Randy Dunlap <[email protected]>Cc Benjamin Herrenschmidt <[email protected]>Cc Paul Mackerras <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
arch/Kconfig | 14 +++++++++++++ kernel/fork.c | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+)arch/Kconfig renamed from arch/Kconfig~lazy-tlb-shoot-lazies-a-non-refcounting-lazy-tlb-option +14
-0@@ -438,6 +438,20 @@ config ARCH_WANT_IRQS_OFF_ACTIVATE_MM # to a kthread ->active_mm (non-arch code has been converted already). config MMU_LAZY_TLB_REFCOUNT def_bool y + depends on !MMU_LAZY_TLB_SHOOTDOWN + +# This option allows MMU_LAZY_TLB_REFCOUNT=n. It ensures no CPUs are using an +# mm as a lazy tlb beyond its last reference count, by shooting down these +# users before the mm is deallocated. __mmdrop() first IPIs all CPUs that may +# be using the mm as a lazy tlb, so that they may switch themselves to using +# init_mm for their active mm. mm_cpumask(mm) is used to determine which CPUs +# may be using mm as a lazy tlb mm. +# +# To implement this, an arch must ensure mm_cpumask(mm) contains at least all +# possible CPUs in which the mm is lazy, and it must meet the requirements for +# MMU_LAZY_TLB_REFCOUNT=n (see above). +config MMU_LAZY_TLB_SHOOTDOWN + bool config ARCH_HAVE_NMI_SAFE_CMPXCHG boolkernel/fork.c renamed from kernel/fork.c~lazy-tlb-shoot-lazies-a-non-refcounting-lazy-tlb-option +51
-0@@ -674,6 +674,53 @@ static void check_mm(struct mm_struct *m#define allocate_mm () (kmem_cache_alloc(mm_cachep, GFP_KERNEL))#define free_mm (mm) (kmem_cache_free(mm_cachep, (mm))) +static void do_shoot_lazy_tlb (void *arg) +{ +struct mm_struct *mm = arg; + +if (current->active_mm == mm) { +WARN_ON_ONCE (current->mm); + current->active_mm = &init_mm; +switch_mm (mm, &init_mm, current); + } +} + +static void do_check_lazy_tlb (void *arg) +{ +struct mm_struct *mm = arg; + +WARN_ON_ONCE (current->active_mm == mm); +} + +static void shoot_lazy_tlbs (struct mm_struct *mm) +{ +if (IS_ENABLED (CONFIG_MMU_LAZY_TLB_SHOOTDOWN )) { +/* +* IPI overheads have not found to be expensive, but they could +* be reduced in a number of possible ways, for example (in +* roughly increasing order of complexity): +* - A batch of mms requiring IPIs could be gathered and freed +* at once. +* - CPUs could store their active mm somewhere that can be +* remotely checked without a lock, to filter out +* false-positives in the cpumask. +* - After mm_users or mm_count reaches zero, switching away +* from the mm could clear mm_cpumask to reduce some IPIs +* (some batching or delaying would help). +* - A delayed freeing and RCU-like quiescing sequence based on +* mm switching to avoid IPIs completely. +*/ +on_each_cpu_mask (mm_cpumask (mm), do_shoot_lazy_tlb, (void *)mm,1 ); +if (IS_ENABLED (CONFIG_DEBUG_VM )) +on_each_cpu (do_check_lazy_tlb, (void *)mm,1 ); + }else { +/* +* In this case, lazy tlb mms are refounted and would not reach +* __mmdrop until all CPUs have switched away and mmdrop()ed. +*/ + } +} +/* * Called when the last reference to the mm * is dropped: either by a lazy thread or by @@ -683,6 +730,10 @@ void __mmdrop(struct mm_struct *mm) {BUG_ON (mm == &init_mm);WARN_ON_ONCE (mm == current->mm); + +/* Ensure no CPUs are using this as their lazy tlb mm */ +shoot_lazy_tlbs (mm); +WARN_ON_ONCE (mm == current->active_mm);mm_free_pgd (mm);destroy_context (mm);_
Re: [patch 119/212] lazy tlb: shoot lazies, a non-refcounting lazy tlb option
Quoted 4 lines · Andy Lutomirski
This pile is:
Nacked-by Andy Lutomirski <[email protected]>
Can you specify exactly the range you want me to drop?
I assume it's the four patches 117-120, ie
lazy tlb: introduce lazy mm refcount helper functions lazy tlb: allow lazy tlb mm refcounting to be configurable lazy tlb: shoot lazies, a non-refcounting lazy tlb option powerpc/64s: enable MMU_LAZY_TLB_SHOOTDOWN
but I just want to double-check before I do surgery on that series.
Linus
Andrew Morton
maintainerRe: [patch 119/212] lazy tlb: shoot lazies, a non-refcounting lazy tlb option
Quoted 8 lines · On Thu, 2 Sep 2021 15:50:03 -0700 Linus Torvalds…
Quoted 4 lines · Andy Lutomirski
This pile is:
Nacked-by Andy Lutomirski <[email protected]>Can you specify exactly the range you want me to drop?
Quoted 8 lines
I assume it's the four patches 117-120, ie
lazy tlb: introduce lazy mm refcount helper functions lazy tlb: allow lazy tlb mm refcounting to be configurable lazy tlb: shoot lazies, a non-refcounting lazy tlb option powerpc/64s: enable
MMU_LAZY_TLB_SHOOTDOWNbut I just want to double-check before I do surgery on that series.
Yes, those 4.
Sorry, I missed that email thread...
Andy Lutomirski
maintainerRe: [patch 119/212] lazy tlb: shoot lazies, a non-refcounting lazy tlb option
Quoted 18 lines · Andrew Morton
Quoted 15 lines · On Thu, 2 Sep 2021 15:50:03 -0700 Linus Torvalds…
Quoted 4 lines · Andy Lutomirski
This pile is:
Nacked-by Andy Lutomirski <[email protected]>Can you specify exactly the range you want me to drop?
I assume it's the four patches 117-120, ie
lazy tlb: introduce lazy mm refcount helper functions lazy tlb: allow lazy tlb mm refcounting to be configurable lazy tlb: shoot lazies, a non-refcounting lazy tlb option powerpc/64s: enable
MMU_LAZY_TLB_SHOOTDOWN
Quoted 6 lines
Quoted 1 line
but I just want to double-check before I do surgery on that series.
Yes, those 4.
Sorry, I missed that email thread...
Indeed.
If anyone cares, my WIP series is here:
https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/log/?h=sched/lazymm
It has known bugs and is definitely not ready. The major known problem is that the kthread and execve paths are still not cleaned up. (We have several different code paths that change current->mm, and they're not all quite consistent with each other.) kthread_use_mm() follows its own little set of refcounting rules that is not consistent with the scheduler's expectations, but I think it's just close enough that current kernels will not erroneously free an in-use mm or permanently leak a reference. I have half-written code to consolidate all the ->mm assignments into a single function, but it's not done.
The CPU offline issue fixed in that series seems to me like it should also affect Nick's series, but I haven't dug in. I don't immediately see why Nick's series would be able to get away without the same rearrangement I needed. (You can't *shoot* a lazy TLB entry out from under an offlined CPU -- you need to actually get rid of the reference and account for it correctly. Perhaps it's all okay in Nick's series because mmdrop() becomes a no-op and the stale logical reference doesn't actually exist.)
--Andy
Nicholas Piggin
reviewerRe: [patch 119/212] lazy tlb: shoot lazies, a non-refcounting lazy tlb option
In reply to Andrew MortonExcerpts from Andrew Morton's message of September 3, 2021 8:53 am:
Quoted 17 lines · On Thu, 2 Sep 2021 15:50:03 -0700 Linus Torvalds…
Quoted 16 lines · Andy Lutomirski
Quoted 4 lines
This pile is:
Nacked-by Andy Lutomirski <[email protected]>Can you specify exactly the range you want me to drop?
I assume it's the four patches 117-120, ie
lazy tlb: introduce lazy mm refcount helper functions lazy tlb: allow lazy tlb mm refcounting to be configurable lazy tlb: shoot lazies, a non-refcounting lazy tlb option powerpc/64s: enable
MMU_LAZY_TLB_SHOOTDOWN
Quoted 6 lines
Quoted 1 line
but I just want to double-check before I do surgery on that series.
Yes, those 4.
Sorry, I missed that email thread...
That's not reasonable. Andy has had complete misunderstandings about the series which seems to stem from x86's horrible hacks that have gone in has confused him.
My series doesn't affect x86 at all and it's no reason why Andy's series to improve x86 can't be merged later. But that half finished series he keeps threatening with has been sitting there for almost a year now and it's gone nowhere, while there have been no unresolved technical objections to mine, it works, it's simple and small.
I've kept trying to offer to help Andy with reviewing his stuff or fix the horrible x86 hacks, but nothing.
So
Thanks,
Nick
Andy Lutomirski
maintainerRe: [patch 119/212] lazy tlb: shoot lazies, a non-refcounting lazy tlb option
Quoted 20 lines · Nicholas Piggin
Excerpts from Andrew Morton's message of September 3, 2021 8:53 am:
Quoted 19 lines · On Thu, 2 Sep 2021 15:50:03 -0700 Linus Torvalds…
Quoted 17 lines · Andy Lutomirski
Quoted 4 lines
This pile is:
Nacked-by Andy Lutomirski <[email protected]>Can you specify exactly the range you want me to drop?
I assume it's the four patches 117-120, ie
lazy tlb: introduce lazy mm refcount helper functions lazy tlb: allow lazy tlb mm refcounting to be configurable lazy tlb: shoot lazies, a non-refcounting lazy tlb option powerpc/64s: enable
MMU_LAZY_TLB_SHOOTDOWNbut I just want to double-check before I do surgery on that series.
Quoted 8 lines
Quoted 4 lines
Yes, those 4.
Sorry, I missed that email thread...
That's not reasonable. Andy has had complete misunderstandings about the series which seems to stem from x86's horrible hacks that have gone in has confused him.
The horrible hacks in question are almost exclusively in core code. Here's a brief summary of the situation.
There's a messy interaction between mmget()/mmdrop() and membarrier. membarrier currently depends on some mmget() and mmdrop() calls to be full barriers. You make membarrier keep working by putting an ifdef'd smp_mb() in the core scheduler. I clean up the code to make it work independently of smp_mb() and therefore save the cost of the unconditional barrier for non-membarrier-using programs.
Your series adds an option MMU_LAZY_TLB_REFCOUNT=n for architectures to opt out of lazy TLB refcounting. This is simply wrong. Right now, the core scheduler provides current->active_mm and guarantees that current->active_mm always points to a live (possibly mm_users == 0 but definitely not freed) mm_struct. With MMU_LAZY_TLB_REFCOUNT=n, current->active_mm still exists, is still updated, but may point to freed memory. I consider this unacceptable. A comment says "This can be disabled if the architecture ensures no CPUs are using an mm as a "lazy tlb" beyond its final refcount" -- that's nice, but saying "well, if you this, you have to make sure you don't accidentally dereference that juicy dangling pointer we give you" is, in my book, a poor justification.
I have no particular objection to the actual shoot lazies part, except insofar as I think we can do even better (e.g. my patch). But 90% of the complexity of my WIP series is cleaning up the mess so that we can have a maintainable lazy mm mechanism instead of expanding the current hard-to-maintain part into three separate possible modes.
Maybe I'm holding my own patches to an excessively high standard.
Quoted 6 lines
My series doesn't affect x86 at all and it's no reason why Andy's series to improve x86 can't be merged later. But that half finished series he keeps threatening with has been sitting there for almost a year now and it's gone nowhere, while there have been no unresolved technical objections to mine, it works, it's simple and small.
My series barely touches x86. The only "hack" is that x86 may have a CPU that has ->mm == NULL, ->active_mm != NULL, CR3 pointing to the init pgd, and mm_cpumask clear. I don't see why this is a problem other than being somewhat unusual. But x86 bare metal, like every architecture that can only flush the TLB using an IPI, can very efficiently shoot lazies, since it shoots the lazies anyway when tearing down pagetables, but actually enabling the config option with this series applied will result in ->active_mm pointing to freed memory. Ick.
Quoted 3 lines
I've kept trying to offer to help Andy with reviewing his stuff or fix the horrible x86 hacks, but nothing.
I haven't finished it yet. Sorry.
Nicholas Piggin
reviewerRe: [patch 119/212] lazy tlb: shoot lazies, a non-refcounting lazy tlb option
Excerpts from Andy Lutomirski's message of September 3, 2021 3:11 pm:
Quoted 23 lines · Nicholas Piggin
Quoted 22 lines
Excerpts from Andrew Morton's message of September 3, 2021 8:53 am:
Quoted 21 lines · On Thu, 2 Sep 2021 15:50:03 -0700 Linus Torvalds…
Quoted 9 lines · Andy Lutomirski
Quoted 4 lines
This pile is:
Nacked-by Andy Lutomirski <[email protected]>Can you specify exactly the range you want me to drop?
Quoted 8 lines
I assume it's the four patches 117-120, ie
lazy tlb: introduce lazy mm refcount helper functions lazy tlb: allow lazy tlb mm refcounting to be configurable lazy tlb: shoot lazies, a non-refcounting lazy tlb option powerpc/64s: enable
MMU_LAZY_TLB_SHOOTDOWNbut I just want to double-check before I do surgery on that series.
Yes, those 4.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Sorry, I missed that email thread...
That's not reasonable. Andy has had complete misunderstandings about the series which seems to stem from x86's horrible hacks that have gone in has confused him.
The horrible hacks in question are almost exclusively in core code.
No, they're in x86.
Quoted 5 lines
Here's a brief summary of the situation.
There's a messy interaction between mmget()/mmdrop() and membarrier. membarrier currently depends on some
mmget()andmmdrop()calls to be full barriers.
Membarrier has had (and is improving but still has) some complexity, which is caused by interaction with _existing_ lazy-mm code in the tree. The complexity is not with lazy-mm itself, and my series does not add more to the membarrier interaction. So I don't accept the criticism that it has to do with membarrier complexity.
Quoted 2 lines
You make membarrier keep working by putting an ifdef'd
smp_mb()in the core scheduler.
Sure, it's well commented and replaces the smp_mb provided by atomic operation that membarrier relied on to an explicit one. That's not a horrible hack.
Quoted 3 lines
I clean up the code to make it work
independently ofsmp_mb()and therefore save the cost of the unconditional barrier for non-membarrier-using programs.
Great. Nothing to do with this series though which is not changing membarrier ordering.
I can certainly help you rebase it on top of these patches if you need.
Quoted 8 lines
Your series adds an option MMU_LAZY_TLB_REFCOUNT=n for architectures to opt out of lazy TLB refcounting. This is simply wrong. Right now, the core scheduler provides
current->active_mmand guarantees thatcurrent->active_mmalways points to a live (possiblymm_users== 0 but definitely not freed)mm_struct. With MMU_LAZY_TLB_REFCOUNT=n,current->active_mmstill exists, is still updated, but may point to freed memory.
Wrong. It does nothing of the sort. I told you this in the previous discussion, you obviously ignored me. You are just wrong, and you can't actually point to where this happens.
This criticism is invalid too.
Quoted 6 lines
I consider this unacceptable. A comment says "This can
be disabled if the architecture ensures no CPUs are using an mm as a "lazy tlb" beyond its final refcount" -- that's nice, but saying "well, if you this, you have to make sure you don't accidentally dereference that juicy dangling pointer we give you" is, in my book, a poor justification.
It's not a justification, it's a recipe for other archs which might want ot implement it!
Quoted 6 lines
I have no particular objection to the actual shoot lazies part, except insofar as I think we can do even better (e.g. my patch). But 90% of the complexity of my WIP series is cleaning up the mess so that we can have a maintainable lazy mm mechanism instead of expanding the current hard-to-maintain part into three separate possible modes.
What actually happened is that when you ran out of (incorrect) technical disputes like this confusion about the active_mm thing, you then started to demand that I massively rework core code that you don't understand so that it matches the horrible mess that x86 has got itself into. I can bring up quotes from previous threads.
Quoted 6 lines
Maybe I'm holding my own patches to an excessively high standard.
Quoted 1 line
Quoted 7 lines
Quoted 5 lines
My series doesn't affect x86 at all and it's no reason why Andy's series to improve x86 can't be merged later. But that half finished series he keeps threatening with has been sitting there for almost a year now and it's gone nowhere, while there have been no unresolved technical objections to mine, it works, it's simple and small.
My series barely touches x86.
I'm talking about your previous insistence that my patch series removed "active_mm" from core code, because it doesn't match x86 internals, and similar such stupidity.
Quoted 10 lines
The only "hack" is that x86 may have a
CPU that has ->mm == NULL, ->active_mm != NULL, CR3 pointing to the init pgd, andmm_cpumaskclear. I don't see why this is a problem other than being somewhat unusual. But x86 bare metal, like every architecture that can only flush the TLB using an IPI, can very efficiently shoot lazies, since it shoots the lazies anyway when tearing down pagetables, but actually enabling the config option with this series applied will result in ->active_mm pointing to freed memory. Ick.Quoted 1 line
Quoted 5 lines
Quoted 2 lines
I've kept trying to offer to help Andy with reviewing his stuff or fix the horrible x86 hacks, but nothing.
I haven't finished it yet. Sorry.
No need to be sorry about that, it will be trivial to rebase on top of my series, I've even done a quick attempt. No problem at all.
Thanks,
Nick
Nicholas Piggin
reviewerRe: [patch 119/212] lazy tlb: shoot lazies, a non-refcounting lazy tlb option
Excerpts from Nicholas Piggin's message of September 3, 2021 3:44 pm:
Quoted 72 lines
Excerpts from Andy Lutomirski's message of September 3, 2021 3:11 pm:
Quoted 23 lines · Nicholas Piggin
Quoted 22 lines
Excerpts from Andrew Morton's message of September 3, 2021 8:53 am:
Quoted 21 lines · On Thu, 2 Sep 2021 15:50:03 -0700 Linus Torvalds…
Quoted 9 lines · Andy Lutomirski
Quoted 4 lines
This pile is:
Nacked-by Andy Lutomirski <[email protected]>Can you specify exactly the range you want me to drop?
Quoted 8 lines
I assume it's the four patches 117-120, ie
lazy tlb: introduce lazy mm refcount helper functions lazy tlb: allow lazy tlb mm refcounting to be configurable lazy tlb: shoot lazies, a non-refcounting lazy tlb option powerpc/64s: enable
MMU_LAZY_TLB_SHOOTDOWNbut I just want to double-check before I do surgery on that series.
Yes, those 4.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Sorry, I missed that email thread...
That's not reasonable. Andy has had complete misunderstandings about the series which seems to stem from x86's horrible hacks that have gone in has confused him.
The horrible hacks in question are almost exclusively in core code.
No, they're in x86.
Quoted 5 lines
Here's a brief summary of the situation.
There's a messy interaction between mmget()/mmdrop() and membarrier. membarrier currently depends on some
mmget()andmmdrop()calls to be full barriers.Membarrier has had (and is improving but still has) some complexity, which is caused by interaction with _existing_ lazy-mm code in the tree. The complexity is not with lazy-mm itself, and my series does not add more to the membarrier interaction. So I don't accept the criticism that it has to do with membarrier complexity.
Quoted 2 lines
You make membarrier keep working by putting an ifdef'd
smp_mb()in the core scheduler.Sure, it's well commented and replaces the
smp_mbprovided by atomic operation that membarrier relied on to an explicit one. That's not a horrible hack.Quoted 3 lines
I clean up the code to make it work
independently ofsmp_mb()and therefore save the cost of the unconditional barrier for non-membarrier-using programs.Great. Nothing to do with this series though which is not changing membarrier ordering.
I can certainly help you rebase it on top of these patches if you need.
Quoted 8 lines
Your series adds an option MMU_LAZY_TLB_REFCOUNT=n for architectures to opt out of lazy TLB refcounting. This is simply wrong. Right now, the core scheduler provides
current->active_mmand guarantees thatcurrent->active_mmalways points to a live (possiblymm_users== 0 but definitely not freed)mm_struct. With MMU_LAZY_TLB_REFCOUNT=n,current->active_mmstill exists, is still updated, but may point to freed memory.
Quoted 5 lines
Wrong. It does nothing of the sort. I told you this in the previous discussion, you obviously ignored me. You are just wrong, and you can't actually point to where this happens.
This criticism is invalid too.
If there's no further objections that can be substanitated, then can we merge this please?
By the way I should add -
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
I've kept trying to offer to help Andy with reviewing his stuff or fix the horrible x86 hacks, but nothing.
I haven't finished it yet. Sorry.
No need to be sorry about that, it will be trivial to rebase on top of my series, I've even done a quick attempt. No problem at all.
This alternative is far from a foregone conclusion even if it does ever get finished. It adds significant ordering complexity to core scheduler that my approach does not have, for no benefit for powerpc and likely no measurable benefit for others either. The first hurdle for it obviously will be why can't x86 be updated to use this shoot-lazies work, with actual numbers.
Thanks,
Nick
Nicholas Piggin
reviewerRe: [patch 119/212] lazy tlb: shoot lazies, a non-refcounting lazy tlb option
In reply to Andy LutomirskiExcerpts from Andy Lutomirski's message of September 3, 2021 8:28 am:
Quoted 21 lines · Andrew Morton
Quoted 12 lines
From: Nicholas Piggin <[email protected]>
Subject: lazy tlb: shoot lazies, a non-refcounting lazy tlb optionOn big systems, the mm refcount can become highly contented when doing a lot of context switching with threaded applications (particularly switching between the idle thread and an application thread).
Abandoning lazy tlb slows switching down quite a bit in the important
user->idle->usercases, so instead implement a non-refcounted scheme that causes__mmdrop()to IPI all CPUs in themm_cpumaskand shoot down any remaining lazy ones.Quoted 5 lines
Shootdown IPIs are some concern, but they have not been observed to be a big problem with this scheme (the powerpc implementation generated 314 additional interrupts on a 144 CPU system during a kernel compile). There are a number of strategies that could be employed to reduce IPIs if they turn out to be a problem for some workload.
Quoted 5 lines
This pile is:
Nacked-by Andy Lutomirski <[email protected]>For reasons that have been discussed previously. My series is still in progress. It’s moving slowly for two reasons. First, I have limited time to work on it. Second, the existing mm refcounting is a giant pile of worms, and that needs fixing one way or another before we add yet more complexity. For example, has anyone noticed that kthread mms are refcounted using different rules than everything else?
It's been like a year with ~no progress. mm refcounting is not a pile of worms, as you can see in my series it's pretty simple. The _x86_ mm refcounting is a huge pile of crap, but that doesn't give reason to nack this series.
Quoted 4 lines
Even if my modified refcounting scheme isn’t the eventual winner, the prerequisite cleanups are still prerequisites. I absolutely nack anything that adds yet more nonsensical complexity to the existing scheme, makes it substantially more fragile, and does not fix the underlying crap that makes speeding up responsibly such a mess.
Nick or anyone else, you’re welcome to finish up my series (and I can give pointers) or you can wait.
You or anyone else is welcome to rebase your series on top of mine.
Thanks,
Nick
Andrew Morton
maintainerPATCH 120/212 powerpc/64s: enable MMU_LAZY_TLB_SHOOTDOWN
In reply to Andrew MortonFrom: Nicholas Piggin <[email protected]>
Subject: powerpc/64s: enable MMU_LAZY_TLB_SHOOTDOWN
On a 16-socket 192-core POWER8 system, a context switching benchmark with as many software threads as CPUs (so each switch will go in and out of idle), upstream can achieve a rate of about 1 million context switches per second. After this patch it goes up to 118 million.
No real datya for real world workloads unfortunately. I think it's always been a "known" cacheline, it just showed up badly on will-it-scale tests recently when Anton was doing a sweep of low hanging scalability issues on big systems.
We have some very big systems running certain in-memory databases that get into very high contention conditions on mutexes that push context switch rates right up and with idle times pretty high, which would get a lot of parallel context switching between user and idle thread, we might be getting a bit of this contention there.
It's not something at the top of profiles though. And on multi-threaded workloads like this, the normal refcounting of the user mm still has fundmaental contention. It's tricky to get the change tested on these workloads (machine time is very limited and I can't drive the software).
I suspect it could also show in things that do high net or disk IO rates (enough to need a lot of cores), and do some user processing steps along the way. You'd potentially get a lot of idle switching.
This infrastructure could be beneficial to other architectures. The cacheline is going to bounce in the same situations on other archs, so I would say yes. Rik at one stage had some patches to try avoid it for x86 some years ago, I don't know what happened to those.
The way powerpc has to maintain mm_cpumask for its TLB flushing makes it relatively easy to do this shootdown, and we decided the additional IPIs were less of a concern than the bouncing. Others have different concerns, but I tried to make it generic and add comments explaining what other archs can do, or possibly different ways it might be achieved.
---
arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/Kconfig renamed from arch/powerpc/Kconfig~powerpc-64s-enable-mmu_lazy_tlb_shootdown +1 -0
@@ -253,6 +253,7 @@ config PPC select IRQ_FORCED_THREADING select MMU_GATHER_PAGE_SIZE select MMU_GATHER_RCU_TABLE_FREE + select MMU_LAZY_TLB_SHOOTDOWN if PPC_BOOK3S_64 select MODULES_USE_ELF_RELA select NEED_DMA_MAP_STATE if PPC64 || NOT_COHERENT_CACHE select NEED_SG_DMA_LENGTH
_
Andrew Morton
maintainerPATCH 121/212 mmc: JZ4740: remove the flush_kernel_dcache_page call in jz4740_mmc_read_data
In reply to Andrew MortonFrom: Christoph Hellwig <[email protected]>
Subject: mmc: JZ4740: remove the flush_kernel_dcache_page call in jz4740_mmc_read_data
Patch series "_kernel_dcache_page fixes and removal".
While looking to convert the block layer away from kmap_atomic towards kmap_local_page and prefeably the helpers that abstract it away I noticed that a few block drivers directly or implicitly call flush_kernel_dcache_page before kunmapping a page that has been written to.
flush_kernel_dcache_page is documented to to be used in such cases, but flush_dcache_page is actually required when the page could be in the page cache and mapped to userspace, which is pretty much always the case when kmapping an arbitrary page. Unfortunately the documentation doesn't exactly make that clear, which lead to this misused. And it turns out that only the copy_strings / copy_string_kernel in the exec code were actually correct users of flush_kernel_dcache_page, which is why I think we should just remove it and eat the very minor overhead in exec rather than confusing poor driver writers.
This patch (of 6):
MIPS now implements flush_kernel_dcache_page (as an alias to flush_dcache_page).
---
drivers/mmc/host/jz4740_mmc.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/mmc/host/jz4740_mmc.c renamed from drivers/mmc/host/jz4740_mmc.c~mmc-jz4740-remove-the-flush_kernel_dcache_page-call-in-jz4740_mmc_read_data +0 -4
@@ -578,10 +578,6 @@ static bool jz4740_mmc_read_data(struct } } data->bytes_xfered += miter->length; - -/* This can go away once MIPS implements -* flush_kernel_dcache_page */ -flush_dcache_page (miter->page); }sg_miter_stop (miter);
_
Andrew Morton
maintainerPATCH 122/212 mmc: mmc_spi: replace flush_kernel_dcache_page with flush_dcache_page
In reply to Andrew MortonFrom: Christoph Hellwig <[email protected]>
Subject: mmc: mmc_spi: replace flush_kernel_dcache_page with flush_dcache_page
Pages passed to block drivers can be mapped page cache pages, so we must use flush_dcache_page here instead of the more limited flush_kernel_dcache_page that is intended for highmem pages only.
---
drivers/mmc/host/mmc_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/mmc_spi.c renamed from drivers/mmc/host/mmc_spi.c~mmc-mmc_spi-replace-flush_kernel_dcache_page-with-flush_dcache_page +1 -1
@@ -948,7 +948,7 @@ mmc_spi_data_do(struct mmc_spi_host *hos/* discard mappings */ if (direction ==DMA_FROM_DEVICE ) -flush_kernel_dcache_page (sg_page (sg)); +flush_dcache_page (sg_page (sg));kunmap (sg_page (sg));if (dma_dev)dma_unmap_page (dma_dev, dma_addr,PAGE_SIZE , dir);
_
Andrew Morton
maintainerPATCH 123/212 scatterlist: replace flush_kernel_dcache_page with flush_dcache_page
In reply to Andrew MortonFrom: Christoph Hellwig <[email protected]>
Subject: scatterlist: replace flush_kernel_dcache_page with flush_dcache_page
Pages used in scatterlist can be mapped page cache pages (and often are), so we must use flush_dcache_page here instead of the more limited flush_kernel_dcache_page that is intended for highmem pages only.
Also remove the PageSlab check given that page_mapping_file as used by the flush_dcache_page implementations already contains that check.
---
lib/scatterlist.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
lib/scatterlist.c renamed from lib/scatterlist.c~scatterlist-replace-flush_kernel_dcache_page-with-flush_dcache_page +2 -3
@@ -887,9 +887,8 @@ void sg_miter_stop(struct sg_mapping_ite miter->__offset += miter->consumed; miter->__remaining -= miter->consumed; -if ((miter->__flags &SG_MITER_TO_SG ) && - !PageSlab (miter->page)) -flush_kernel_dcache_page (miter->page); +if (miter->__flags &SG_MITER_TO_SG ) +flush_dcache_page (miter->page);if (miter->__flags &SG_MITER_ATOMIC ) {WARN_ON_ONCE (preemptible ());
_
Andrew Morton
maintainerPATCH 124/212 mm: remove flush_kernel_dcache_page
In reply to Andrew MortonFrom: Christoph Hellwig <[email protected]>
Subject: mm: remove flush_kernel_dcache_page
flush_kernel_dcache_page is a rather confusing interface that implements a subset of flush_dcache_page by not being able to properly handle page cache mapped pages.
The only callers left are in the exec code as all other previous callers were incorrect as they could have dealt with page cache pages. Replace the calls to flush_kernel_dcache_page with calls to flush_dcache_page, which for all architectures does either exactly the same thing, can contains one or more of the following:
1) an optimization to defer the cache flush for page cache pages not mapped into userspace
2) additional flushing for mapped page cache pages if cache aliases are possible
---
Documentation/core-api/cachetlb.rst | 86 ++++------ Documentation/translations/zh_CN/core-api/cachetlb.rst | 9 - arch/arm/include/asm/cacheflush.h | 4 arch/arm/mm/flush.c | 33 --- arch/arm/mm/nommu.c | 6 arch/csky/abiv1/cacheflush.c | 11 - arch/csky/abiv1/inc/abi/cacheflush.h | 4 arch/mips/include/asm/cacheflush.h | 8 arch/nds32/include/asm/cacheflush.h | 3 arch/nds32/mm/cacheflush.c | 9 - arch/parisc/include/asm/cacheflush.h | 8 arch/parisc/kernel/cache.c | 3 arch/sh/include/asm/cacheflush.h | 8 block/blk-map.c | 2 fs/exec.c | 6 include/linux/highmem.h | 5 tools/testing/scatterlist/linux/mm.h | 1 17 files changed, 51 insertions(+), 155 deletions(-)
arch/arm/include/asm/cacheflush.h renamed from arch/arm/include/asm/cacheflush.h~mm-remove-flush_kernel_dcache_page +1 -3
@@ -291,6 +291,7 @@ extern void flush_cache_page(struct vm_a#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1extern void flush_dcache_page (struct page *); +#define ARCH_IMPLEMENTS_FLUSH_KERNEL_VMAP_RANGE 1static inline void flush_kernel_vmap_range (void *addr,int size) {if ((cache_is_vivt () ||cache_is_vipt_aliasing ()))
@@ -312,9 +313,6 @@ static inline void flush_anon_page(struc__flush_anon_page (vma, page, vmaddr); } -#define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE -extern void flush_kernel_dcache_page (struct page *); -#define flush_dcache_mmap_lock (mapping) xa_lock_irq(&mapping->i_pages)#define flush_dcache_mmap_unlock (mapping) xa_unlock_irq(&mapping->i_pages)
arch/arm/mm/flush.c renamed from arch/arm/mm/flush.c~mm-remove-flush_kernel_dcache_page +0 -33
@@ -346,39 +346,6 @@ void flush_dcache_page(struct page *pageEXPORT_SYMBOL (flush_dcache_page);/* -* Ensure cache coherency for the kernel mapping of this page. We can -* assume that the page is pinned via kmap. -* -* If the page only exists in the page cache and there are no user -* space mappings, this is a no-op since the page was already marked -* dirty at creation. Otherwise, we need to flush the dirty kernel -* cache lines directly. -*/ -void flush_kernel_dcache_page (struct page *page) -{ -if (cache_is_vivt () ||cache_is_vipt_aliasing ()) { -struct address_space *mapping; - - mapping =page_mapping_file (page); - -if (!mapping ||mapping_mapped (mapping)) { -void *addr; - - addr =page_address (page); -/* -* kmap_atomic() doesn't set the page virtual -* address for highmem pages, and -* kunmap_atomic() takes care of cache -* flushing already. -*/ -if (!IS_ENABLED (CONFIG_HIGHMEM ) || addr) -__cpuc_flush_dcache_area (addr,PAGE_SIZE ); - } - } -} -EXPORT_SYMBOL (flush_kernel_dcache_page); - -/* * Flush an anonymous page so that users of get_user_pages() * can safely access the data. The expected sequence is: *
arch/arm/mm/nommu.c renamed from arch/arm/mm/nommu.c~mm-remove-flush_kernel_dcache_page +0 -6
@@ -166,12 +166,6 @@ void flush_dcache_page(struct page *page }EXPORT_SYMBOL (flush_dcache_page); -void flush_kernel_dcache_page (struct page *page) -{ -__cpuc_flush_dcache_area (page_address (page),PAGE_SIZE ); -} -EXPORT_SYMBOL (flush_kernel_dcache_page); -void copy_to_user_page (struct vm_area_struct *vma,struct page *page,unsigned long uaddr,void *dst,const void *src,unsigned long len)
arch/csky/abiv1/cacheflush.c renamed from arch/csky/abiv1/cacheflush.c~mm-remove-flush_kernel_dcache_page +0 -11
@@ -56,17 +56,6 @@ void update_mmu_cache(struct vm_area_str } } -void flush_kernel_dcache_page (struct page *page) -{ -struct address_space *mapping; - - mapping =page_mapping_file (page); - -if (!mapping ||mapping_mapped (mapping)) -dcache_wbinv_all (); -} -EXPORT_SYMBOL (flush_kernel_dcache_page); -void flush_cache_range (struct vm_area_struct *vma,unsigned long start,unsigned long end) {
arch/csky/abiv1/inc/abi/cacheflush.h renamed from arch/csky/abiv1/inc/abi/cacheflush.h~mm-remove-flush_kernel_dcache_page +1 -3
@@ -14,12 +14,10 @@ extern void flush_dcache_page(struct pag#define flush_cache_page (vma, page, pfn) cache_wbinv_all()#define flush_cache_dup_mm (mm) cache_wbinv_all() -#define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE -extern void flush_kernel_dcache_page (struct page *); -#define flush_dcache_mmap_lock (mapping) xa_lock_irq(&mapping->i_pages)#define flush_dcache_mmap_unlock (mapping) xa_unlock_irq(&mapping->i_pages) +#define ARCH_IMPLEMENTS_FLUSH_KERNEL_VMAP_RANGE 1static inline void flush_kernel_vmap_range (void *addr,int size) {dcache_wbinv_all ();
arch/mips/include/asm/cacheflush.h renamed from arch/mips/include/asm/cacheflush.h~mm-remove-flush_kernel_dcache_page +1 -7
@@ -125,13 +125,7 @@ static inline void kunmap_noncoherent(vokunmap_coherent (); } -#define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE -static inline void flush_kernel_dcache_page (struct page *page) -{ -BUG_ON (cpu_has_dc_aliases &&PageHighMem (page)); -flush_dcache_page (page); -} - +#define ARCH_IMPLEMENTS_FLUSH_KERNEL_VMAP_RANGE 1/* * For now flush_kernel_vmap_range and invalidate_kernel_vmap_range both do a * cache writeback and invalidate operation.
arch/nds32/include/asm/cacheflush.h renamed from arch/nds32/include/asm/cacheflush.h~mm-remove-flush_kernel_dcache_page +1 -2
@@ -36,8 +36,7 @@ void copy_from_user_page(struct vm_area_void flush_anon_page (struct vm_area_struct *vma,struct page *page,unsigned long vaddr); -#define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE -void flush_kernel_dcache_page (struct page *page); +#define ARCH_IMPLEMENTS_FLUSH_KERNEL_VMAP_RANGE 1void flush_kernel_vmap_range (void *addr,int size);void invalidate_kernel_vmap_range (void *addr,int size);#define flush_dcache_mmap_lock (mapping) xa_lock_irq(&(mapping)->i_pages)
arch/nds32/mm/cacheflush.c renamed from arch/nds32/mm/cacheflush.c~mm-remove-flush_kernel_dcache_page +0 -9
@@ -318,15 +318,6 @@ void flush_anon_page(struct vm_area_strulocal_irq_restore (flags); } -void flush_kernel_dcache_page (struct page *page) -{ -unsigned long flags; -local_irq_save (flags); -cpu_dcache_wbinval_page ((unsigned long )page_address (page)); -local_irq_restore (flags); -} -EXPORT_SYMBOL (flush_kernel_dcache_page); -void flush_kernel_vmap_range (void *addr,int size) {unsigned long flags;
arch/parisc/include/asm/cacheflush.h renamed from arch/parisc/include/asm/cacheflush.h~mm-remove-flush_kernel_dcache_page +2 -6
@@ -36,16 +36,12 @@ void flush_cache_all_local(void);void flush_cache_all (void );void flush_cache_mm (struct mm_struct *mm); -#define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE void flush_kernel_dcache_page_addr (void *addr); -static inline void flush_kernel_dcache_page (struct page *page) -{ -flush_kernel_dcache_page_addr (page_address (page)); -}#define flush_kernel_dcache_range (start,size) \ flush_kernel_dcache_range_asm((start), (start)+(size)); +#define ARCH_IMPLEMENTS_FLUSH_KERNEL_VMAP_RANGE 1void flush_kernel_vmap_range (void *vaddr,int size);void invalidate_kernel_vmap_range (void *vaddr,int size);
@@ -59,7 +55,7 @@ extern void flush_dcache_page(struct pag#define flush_dcache_mmap_unlock (mapping) xa_unlock_irq(&mapping->i_pages)#define flush_icache_page (vma,page) do { \ - flush_kernel_dcache_page(page); \ + flush_kernel_dcache_page_addr(page_address(page)); \ flush_kernel_icache_page(page_address(page)); \ } while (0)
arch/parisc/kernel/cache.c renamed from arch/parisc/kernel/cache.c~mm-remove-flush_kernel_dcache_page +1 -2
@@ -334,7 +334,7 @@ void flush_dcache_page(struct page *pagereturn ; } -flush_kernel_dcache_page (page); +flush_kernel_dcache_page_addr (page_address (page));if (!mapping)return ;
@@ -375,7 +375,6 @@ EXPORT_SYMBOL(flush_dcache_page);/* Defined in arch/parisc/kernel/pacache.S */ EXPORT_SYMBOL (flush_kernel_dcache_range_asm); -EXPORT_SYMBOL (flush_kernel_dcache_page_asm);EXPORT_SYMBOL (flush_data_cache_local);EXPORT_SYMBOL (flush_kernel_icache_range_asm);
arch/sh/include/asm/cacheflush.h renamed from arch/sh/include/asm/cacheflush.h~mm-remove-flush_kernel_dcache_page +2 -6
@@ -63,6 +63,8 @@ static inline void flush_anon_page(strucif (boot_cpu_data.dcache.n_aliases &&PageAnon (page))__flush_anon_page (page, vmaddr); } + +#define ARCH_IMPLEMENTS_FLUSH_KERNEL_VMAP_RANGE 1static inline void flush_kernel_vmap_range (void *addr,int size) {__flush_wback_region (addr, size);
@@ -72,12 +74,6 @@ static inline void invalidate_kernel_vma__flush_invalidate_region (addr, size); } -#define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE -static inline void flush_kernel_dcache_page (struct page *page) -{ -flush_dcache_page (page); -} -extern void copy_to_user_page (struct vm_area_struct *vma,struct page *page,unsigned long vaddr,void *dst,const void *src,unsigned long len);
block/blk-map.c renamed from block/blk-map.c~mm-remove-flush_kernel_dcache_page +1 -1
@@ -309,7 +309,7 @@ static int bio_map_user_iov(struct requestatic void bio_invalidate_vmalloc_pages (struct bio *bio) { -#ifdef ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE +#ifdef ARCH_IMPLEMENTS_FLUSH_KERNEL_VMAP_RANGE if (bio->bi_private && !op_is_write (bio_op (bio))) {unsigned long i, len =0 ;
Documentation/core-api/cachetlb.rst renamed from Documentation/core-api/cachetlb.rst~mm-remove-flush_kernel_dcache_page +37 -49
104 lines not on this page · raw message
Documentation/translations/zh_CN/core-api/cachetlb.rst renamed from Documentation/translations/zh_CN/core-api/cachetlb.rst~mm-remove-flush_kernel_dcache_page +0 -9
@@ -298,15 +298,6 @@ 问题有可能存在,因为内核已� 用。默认的实现是nop(对于所有相干的架构应该保持这样)。对于不一致性 的架构,它应该刷新vmaddr处的页面缓存。 - ``void flush_kernel_dcache_page(struct page *page)`` - - 当内核需要修改一个用kmap获得的用户页时,它会在所有修改完成后(但在 - kunmapping之前)调用这个函数,以使底层页面达到最新状态。这里假定用 - 户没有不一致性的缓存副本(即原始页面是从类似get_user_pages()的机制 - 中获得的)。默认的实现是一个nop,在所有相干的架构上都应该如此。在不 - 一致性的架构上,这应该刷新内核缓存中的页面(使用page_address(page))。 - - ``void flush_icache_range(unsigned long start, unsigned long end)`` 当内核存储到它将执行的地址中时(例如在加载模块时),这个函数被调用。
fs/exec.c renamed from fs/exec.c~mm-remove-flush_kernel_dcache_page +3 -3
@@ -574,7 +574,7 @@ static int copy_strings(int argc, struct }if (kmapped_page) { -flush_kernel_dcache_page (kmapped_page); +flush_dcache_page (kmapped_page);kunmap (kmapped_page);put_arg_page (kmapped_page); }
@@ -592,7 +592,7 @@ static int copy_strings(int argc, struct ret =0 ; out:if (kmapped_page) { -flush_kernel_dcache_page (kmapped_page); +flush_dcache_page (kmapped_page);kunmap (kmapped_page);put_arg_page (kmapped_page); }
@@ -634,7 +634,7 @@ int copy_string_kernel(const char *arg, kaddr =kmap_atomic (page);flush_arg_page (bprm, pos &PAGE_MASK , page);memcpy (kaddr +offset_in_page (pos), arg, bytes_to_copy); -flush_kernel_dcache_page (page); +flush_dcache_page (page);kunmap_atomic (kaddr);put_arg_page (page); }
include/linux/highmem.h renamed from include/linux/highmem.h~mm-remove-flush_kernel_dcache_page +1 -4
@@ -130,10 +130,7 @@ static inline void flush_anon_page(struc }#endif -#ifndef ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE -static inline void flush_kernel_dcache_page (struct page *page) -{ -} +#ifndef ARCH_IMPLEMENTS_FLUSH_KERNEL_VMAP_RANGE static inline void flush_kernel_vmap_range (void *vaddr,int size) { }
tools/testing/scatterlist/linux/mm.h renamed from tools/testing/scatterlist/linux/mm.h~mm-remove-flush_kernel_dcache_page +0 -1
@@ -127,7 +127,6 @@ kmalloc_array(unsigned int n, unsigned i#define kmemleak_free (a)#define PageSlab (p) (0) -#define flush_kernel_dcache_page (p)#define MAX_ERRNO 4095
_
Andrew Morton
maintainerPATCH 125/212 mm,do_huge_pmd_numa_page: remove unnecessary TLB flushing code
In reply to Andrew MortonFrom: Huang Ying <[email protected]>
Subject: mm,do_huge_pmd_numa_page: remove unnecessary TLB flushing code
Before commit c5b5a3dd2c1f ("mm: thp: refactor NUMA fault handling"), the TLB flushing is done in do_huge_pmd_numa_page() itself via flush_tlb_range().
But after commit c5b5a3dd2c1f ("mm: thp: refactor NUMA fault handling"), the TLB flushing is done in migrate_pages() as in the following code path anyway.
do_huge_pmd_numa_page
migrate_misplaced_page
migrate_pages
So now, the TLB flushing code in do_huge_pmd_numa_page() becomes unnecessary. So the code is deleted in this patch to simplify the code. This is only code cleanup, there's no visible performance difference.
The mmu_notifier_invalidate_range() in do_huge_pmd_numa_page() is deleted too. Because migrate_pages() takes care of that too when CPU TLB is flushed.
---
mm/huge_memory.c | 26 -------------------------- 1 file changed, 26 deletions(-)
mm/huge_memory.c renamed from mm/huge_memory.c~mmdo_huge_pmd_numa_page-remove-unnecessary-tlb-flushing-code +0 -26
@@ -1440,32 +1440,6 @@ vm_fault_t do_huge_pmd_numa_page(struct goto out; } -/* -* Since we took the NUMA fault, we must have observed the !accessible -* bit. Make sure all other CPUs agree with that, to avoid them -* modifying the page we're about to migrate. -* -* Must be done under PTL such that we'll observe the relevant -* inc_tlb_flush_pending(). -* -* We are not sure a pending tlb flush here is for a huge page -* mapping or not. Hence use the tlb range variant -*/ -if (mm_tlb_flush_pending (vma->vm_mm)) { -flush_tlb_range (vma, haddr, haddr +HPAGE_PMD_SIZE ); -/* -* change_huge_pmd() released the pmd lock before -* invalidating the secondary MMUs sharing the primary -* MMU pagetables (with ->invalidate_range()). The -* mmu_notifier_invalidate_range_end() (which -* internally calls ->invalidate_range()) in -* change_pmd_range() will run after us, so we can't -* rely on it here and we need an explicit invalidate. -*/ -mmu_notifier_invalidate_range (vma->vm_mm, haddr, - haddr +HPAGE_PMD_SIZE ); - } - pmd =pmd_modify (oldpmd, vma->vm_page_prot); page =vm_normal_page_pmd (vma, haddr, pmd);if (!page)
_
Andrew Morton
maintainerPATCH 126/212 mm: change fault_in_pages_* to have an unsigned size parameter
In reply to Andrew MortonFrom: Greg Kroah-Hartman <[email protected]>
Subject: mm: change fault_in_pages_* to have an unsigned size parameter
fault_in_pages_writeable() and fault_in_pages_readable() treat the size parameter as unsigned, doing pointer math with the value, so make this explicit and set it to be a size_t type which all callers currently treat it as anyway.
This solves the issue where static checkers get nervous seeing pointer arithmetic happening with a signed value.
---
include/linux/pagemap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/pagemap.h renamed from include/linux/pagemap.h~mm-change-fault_in_pages_-to-have-an-unsigned-size-parameter +2 -2
@@ -736,7 +736,7 @@ extern void add_page_wait_queue(struct p/* * Fault everything in given userspace address range in. */ -static inline int fault_in_pages_writeable (char __user *uaddr,int size) +static inline int fault_in_pages_writeable (char __user *uaddr,size_t size) {char __user *end = uaddr + size -1 ;
@@ -763,7 +763,7 @@ static inline int fault_in_pages_writeabreturn 0 ; } -static inline int fault_in_pages_readable (const char __user *uaddr,int size) +static inline int fault_in_pages_readable (const char __user *uaddr,size_t size) {volatile char c;const char __user *end = uaddr + size -1 ;
_
Andrew Morton
maintainerPATCH 127/212 mm/pagemap: add mmap_assert_locked() annotations to find_vma*()
In reply to Andrew MortonFrom: Luigi Rizzo <[email protected]>
Subject: mm/pagemap: add mmap_assert_locked() annotations to find_vma*()
find_vma() and variants need protection when used. This patch adds mmap_assert_lock() calls in the functions.
To make sure the invariant is satisfied, we also need to add a mmap_read_loc() around the get_user_pages_remote() call in get_arg_page(). The lock is not strictly necessary because the mm has been newly created, but the extra cost is limited because the same mutex was also acquired shortly before in __bprm_mm_init(), so it is hot and uncontended.
---
fs/exec.c | 2 ++ mm/mmap.c | 2 ++ security/tomoyo/domain.c | 13 +++++++++---- 3 files changed, 13 insertions(+), 4 deletions(-)
fs/exec.c renamed from fs/exec.c~add-mmap_assert_locked-annotations-to-find_vma +2 -0
@@ -217,8 +217,10 @@ static struct page *get_arg_page(struct* We are doing an exec(). 'current' is the process * doing the exec and bprm->mm is the new process's mm. */ +mmap_read_lock (bprm->mm); ret =get_user_pages_remote (bprm->mm, pos,1 , gup_flags, &page,NULL ,NULL ); +mmap_read_unlock (bprm->mm);if (ret <=0 )return NULL ;
mm/mmap.c renamed from mm/mmap.c~add-mmap_assert_locked-annotations-to-find_vma +2 -0
@@ -534,6 +534,7 @@ static int find_vma_links(struct mm_stru {struct rb_node **__rb_link, *__rb_parent, *rb_prev; +mmap_assert_locked (mm); __rb_link = &mm->mm_rb.rb_node; rb_prev = __rb_parent =NULL ;
@@ -2303,6 +2304,7 @@ struct vm_area_struct *find_vma(struct mstruct rb_node *rb_node;struct vm_area_struct *vma; +mmap_assert_locked (mm);/* Check the cache first. */ vma =vmacache_find (mm, addr);if (likely (vma))
security/tomoyo/domain.c renamed from security/tomoyo/domain.c~add-mmap_assert_locked-annotations-to-find_vma +9 -4
@@ -897,6 +897,9 @@ bool tomoyo_dump_page(struct linux_binpr struct tomoyo_page_dump *dump) {struct page *page; +#ifdef CONFIG_MMU +int ret; +#endif /* dump->data is released by tomoyo_find_next_domain(). */ if (!dump->data) {
@@ -909,11 +912,13 @@ bool tomoyo_dump_page(struct linux_binpr/* * This is called at execve() time in order to dig around * in the argv/environment of the new proceess -* (represented by bprm). 'current' is the process doing -* the execve(). +* (represented by bprm). */ -if (get_user_pages_remote (bprm->mm, pos,1 , -FOLL_FORCE , &page,NULL ,NULL ) <=0 ) +mmap_read_lock (bprm->mm); + ret =get_user_pages_remote (bprm->mm, pos,1 , +FOLL_FORCE , &page,NULL ,NULL ); +mmap_read_unlock (bprm->mm); +if (ret <=0 )return false;#else page = bprm->page[pos /PAGE_SIZE ];
_
Andrew Morton
maintainerPATCH 128/212 remap_file_pages: Use vma_lookup() instead of find_vma()
In reply to Andrew MortonFrom: "Liam R. Howlett" <[email protected]>
Subject: remap_file_pages: Use vma_lookup() instead of find_vma()
Using vma_lookup() verifies the start address is contained in the found vma. This results in easier to read code.
---
mm/mmap.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
mm/mmap.c renamed from mm/mmap.c~remap_file_pages-use-vma_lookup-instead-of-find_vma +1 -4
@@ -2994,14 +2994,11 @@ SYSCALL_DEFINE5(remap_file_pages, unsignif (mmap_write_lock_killable (mm))return -EINTR ; - vma =find_vma (mm, start); + vma =vma_lookup (mm, start);if (!vma || !(vma->vm_flags &VM_SHARED )) goto out; -if (start < vma->vm_start) - goto out; -if (start + size > vma->vm_end) {struct vm_area_struct *next;
_
Andrew Morton
maintainerPATCH 129/212 mm/mremap: fix memory account on do_munmap() failure
In reply to Andrew MortonFrom: Chen Wandun <[email protected]>
Subject: mm/mremap: fix memory account on do_munmap() failure
mremap will account the delta between new_len and old_len in vma_to_resize, and then call move_vma when expanding an existing memory mapping. In function move_vma, there are two scenarios when calling do_munmap:
1. move_page_tables from old_addr to new_addr success
2. move_page_tables from old_addr to new_addr fail
In first scenario, it should account old_len if do_munmap fail, because the delta has already been accounted.
In second scenario, new_addr/new_len will assign to old_addr/old_len if move_page_table fail, so do_munmap is try to unmap new_addr actually, if do_munmap fail, it should account the new_len, because error code will be return from move_vma, and delta will be unaccounted. What'more, because of new_len == old_len, so account old_len also is OK.
In summary, account old_len will be correct if do_munmap fail.
---
mm/mremap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/mremap.c renamed from mm/mremap.c~mm-mremap-fix-memory-account-on-do_munmap-failure +1 -1
@@ -686,7 +686,7 @@ static unsigned long move_vma(struct vm_if (do_munmap (mm, old_addr, old_len, uf_unmap) <0 ) {/* OOM: unable to split vma, just get accounts right */ if (vm_flags &VM_ACCOUNT && !(flags &MREMAP_DONTUNMAP )) -vm_acct_memory (new_len >>PAGE_SHIFT ); +vm_acct_memory (old_len >>PAGE_SHIFT ); excess =0 ; }
_
Andrew Morton
maintainerPATCH 130/212 mm/bootmem_info.c: mark __init on register_page_bootmem_info_section
In reply to Andrew MortonFrom: Muchun Song <[email protected]>
Subject: mm/bootmem_info.c: mark __init on register_page_bootmem_info_section
register_page_bootmem_info_section() is only called from __init functions, so mark it __init as well.
---
mm/bootmem_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mm/bootmem_info.c renamed from mm/bootmem_info.c~mm-bootmem_info-mark-__init-on-register_page_bootmem_info_section +2 -2
@@ -39,7 +39,7 @@ void put_page_bootmem(struct page *page) }#ifndef CONFIG_SPARSEMEM_VMEMMAP -static void register_page_bootmem_info_section (unsigned long start_pfn) +static void __init register_page_bootmem_info_section (unsigned long start_pfn) {unsigned long mapsize, section_nr, i;struct mem_section *ms;
@@ -74,7 +74,7 @@ static void register_page_bootmem_info_s }#else /* CONFIG_SPARSEMEM_VMEMMAP */ -static void register_page_bootmem_info_section (unsigned long start_pfn) +static void __init register_page_bootmem_info_section (unsigned long start_pfn) {unsigned long mapsize, section_nr, i;struct mem_section *ms;
_
Andrew Morton
maintainerPATCH 131/212 mm: sparse: pass section_nr to section_mark_present
In reply to Andrew MortonFrom: Ohhoon Kwon <[email protected]>
Subject: mm: sparse: pass section_nr to section_mark_present
Patch series "mm: sparse: remove __section_nr() function", v4.
This patch (of 3):
With CONFIG_SPARSEMEM_EXTREME enabled, __section_nr() which converts mem_section to section_nr could be costly since it iterates all section roots to check if the given mem_section is in its range.
Since both callers of section_mark_present already know section_nr, let's also pass section_nr as well as mem_section in order to reduce costly translation.
---
mm/sparse.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
mm/sparse.c renamed from mm/sparse.c~mm-sparse-pass-section_nr-to-section_mark_present +4 -5
@@ -187,10 +187,9 @@ void __meminit mminit_validate_memmodel_* those loops early. */ unsigned long __highest_present_section_nr; -static void section_mark_present (struct mem_section *ms) +static void __section_mark_present (struct mem_section *ms, +unsigned long section_nr) { -unsigned long section_nr =__section_nr (ms); -if (section_nr > __highest_present_section_nr) __highest_present_section_nr = section_nr;
@@ -280,7 +279,7 @@ static void __init memory_present(int niif (!ms->section_mem_map) { ms->section_mem_map =sparse_encode_early_nid (nid) |SECTION_IS_ONLINE ; -section_mark_present (ms); +__section_mark_present (ms, section); } } }
@@ -934,7 +933,7 @@ int __meminit sparse_add_section(int nid ms =__nr_to_section (section_nr);set_section_nid (section_nr, nid); -section_mark_present (ms); +__section_mark_present (ms, section_nr);/* Align memmap to section boundary in the subsection case */ if (section_nr_to_pfn (section_nr) != start_pfn)
_
Andrew Morton
maintainerPATCH 132/212 mm: sparse: pass section_nr to find_memory_block
In reply to Andrew MortonFrom: Ohhoon Kwon <[email protected]>
Subject: mm: sparse: pass section_nr to find_memory_block
With CONFIG_SPARSEMEM_EXTREME enabled, __section_nr() which converts mem_section to section_nr could be costly since it iterates all section roots to check if the given mem_section is in its range.
On the other hand, __nr_to_section() which converts section_nr to mem_section can be done in O(1).
Let's pass section_nr instead of mem_section ptr to find_memory_block() in order to reduce needless iterations.
---
arch/powerpc/platforms/pseries/hotplug-memory.c | 4 +--- drivers/base/memory.c | 4 ++-- include/linux/memory.h | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-)
arch/powerpc/platforms/pseries/hotplug-memory.c renamed from arch/powerpc/platforms/pseries/hotplug-memory.c~mm-sparse-pass-section_nr-to-find_memory_block +1 -3
@@ -211,13 +211,11 @@ static int update_lmb_associativity_indestatic struct memory_block *lmb_to_memblock (struct drmem_lmb *lmb) {unsigned long section_nr; -struct mem_section *mem_sect;struct memory_block *mem_block; section_nr =pfn_to_section_nr (PFN_DOWN (lmb->base_addr)); - mem_sect =__nr_to_section (section_nr); - mem_block =find_memory_block (mem_sect); + mem_block =find_memory_block (section_nr);return mem_block; }
drivers/base/memory.c renamed from drivers/base/memory.c~mm-sparse-pass-section_nr-to-find_memory_block +2 -2
@@ -578,9 +578,9 @@ static struct memory_block *find_memory_/* * Called under device_hotplug_lock. */ -struct memory_block *find_memory_block (struct mem_section *section) +struct memory_block *find_memory_block (unsigned long section_nr) { -unsigned long block_id =memory_block_id (__section_nr (section)); +unsigned long block_id =memory_block_id (section_nr);return find_memory_block_by_id (block_id); }
include/linux/memory.h renamed from include/linux/memory.h~mm-sparse-pass-section_nr-to-find_memory_block +1 -1
@@ -90,7 +90,7 @@ int create_memory_block_devices(unsignedvoid remove_memory_block_devices (unsigned long start,unsigned long size);extern void memory_dev_init (void );extern int memory_notify (unsigned long val,void *v); -extern struct memory_block *find_memory_block (struct mem_section *); +extern struct memory_block *find_memory_block (unsigned long section_nr);typedef int (*walk_memory_blocks_func_t )(struct memory_block *,void *);extern int walk_memory_blocks (unsigned long start,unsigned long size,void *arg,walk_memory_blocks_func_t func);
_
Andrew Morton
maintainerPATCH 133/212 mm: sparse: remove __section_nr() function
In reply to Andrew MortonFrom: Ohhoon Kwon <[email protected]>
Subject: mm: sparse: remove __section_nr() function
As the last users of __section_nr() are gone, let's remove unused function __section_nr().
---
include/linux/mmzone.h | 1 - mm/sparse.c | 26 -------------------------- 2 files changed, 27 deletions(-)
include/linux/mmzone.h renamed from include/linux/mmzone.h~mm-sparse-remove-__section_nr-function +0 -1
@@ -1342,7 +1342,6 @@ static inline struct mem_section *__nr_treturn NULL ;return &mem_section[SECTION_NR_TO_ROOT (nr)][nr &SECTION_ROOT_MASK ]; } -extern unsigned long __section_nr (struct mem_section *ms);extern size_t mem_section_usage_size (void );/*
mm/sparse.c renamed from mm/sparse.c~mm-sparse-remove-__section_nr-function +0 -26
@@ -109,32 +109,6 @@ static inline int sparse_index_init(unsi }#endif -#ifdef CONFIG_SPARSEMEM_EXTREME -unsigned long __section_nr (struct mem_section *ms) -{ -unsigned long root_nr; -struct mem_section *root =NULL ; - -for (root_nr =0 ; root_nr <NR_SECTION_ROOTS ; root_nr++) { - root =__nr_to_section (root_nr *SECTIONS_PER_ROOT ); -if (!root) -continue ; - -if ((ms >= root) && (ms < (root +SECTIONS_PER_ROOT ))) -break ; - } - -VM_BUG_ON (!root); - -return (root_nr *SECTIONS_PER_ROOT ) + (ms - root); -} -#else -unsigned long __section_nr (struct mem_section *ms) -{ -return (unsigned long )(ms - mem_section[0 ]); -} -#endif -/* * During early boot, before section_mem_map is used for an actual * mem_map, we use section_mem_map to store the section's NUMA
_
Andrew Morton
maintainerPATCH 134/212 mm/sparse: set SECTION_NID_SHIFT to 6
In reply to Andrew MortonFrom: Naoya Horiguchi <[email protected]>
Subject: mm/sparse: set SECTION_NID_SHIFT to 6
Currently SECTION_NID_SHIFT is set to 3, which is incorrect because bit 3 and 4 can be overlapped by sub-field for early NID, and can be unexpectedly set on NUMA systems. There are a few non-critical issues related to this:
- Having SECTION_TAINT_ZONE_DEVICE set for wrong sections forces pfn_to_online_page() through the slow path, but doesn't actually break the kernel.
- A kdump generation tool like makedumpfile uses this field to calculate the physical address to read. So wrong bits can make the tool access to wrong address and fail to create kdump. This can be avoided by the tool, so it's not critical.
To fix it, set SECTION_NID_SHIFT to 6 which is the minimum number of available bits of section flag field.
---
include/linux/mmzone.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mmzone.h renamed from include/linux/mmzone.h~mm-sparse-set-section_nid_shift-to-6 +1 -1
@@ -1364,7 +1364,7 @@ extern size_t mem_section_usage_size(voi#define SECTION_TAINT_ZONE_DEVICE (1UL<<4)#define SECTION_MAP_LAST_BIT (1UL<<5)#define SECTION_MAP_MASK (~(SECTION_MAP_LAST_BIT-1)) -#define SECTION_NID_SHIFT 3 +#define SECTION_NID_SHIFT 6static inline struct page *__section_mem_map_addr (struct mem_section *section) {
_
Andrew Morton
maintainerPATCH 135/212 include/linux/mmzone.h: avoid a warning in sparse memory support
In reply to Andrew MortonFrom: Matthew Wilcox <[email protected]>
Subject: include/linux/mmzone.h: avoid a warning in sparse memory support
cppcheck warns that we're possibly losing information by shifting an int. It's a false positive, because we don't allow for a NUMA node ID that large, but if we ever change SECTION_NID_SHIFT, it could become a problem, and in any case this is usually a legitimate warning. Fix it by adding the necessary cast, which makes the compiler generate the right code.
---
mm/sparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/sparse.c renamed from mm/sparse.c~avoid-a-warning-in-sparse-memory-support +1 -1
@@ -117,7 +117,7 @@ static inline int sparse_index_init(unsi*/ static inline unsigned long sparse_encode_early_nid (int nid) { -return (nid <<SECTION_NID_SHIFT ); +return ((unsigned long )nid <<SECTION_NID_SHIFT ); }static inline int sparse_early_nid (struct mem_section *section)
_
Andrew Morton
maintainerPATCH 136/212 mm/sparse: clarify pgdat_to_phys
In reply to Andrew MortonFrom: Miles Chen <[email protected]>
Subject: mm/sparse: clarify pgdat_to_phys
Clarify pgdat_to_phys() by testing if
pgdat == &contig_page_data when CONFIG_NUMA=n.
We only expect contig_page_data in such case, so we use &contig_page_data directly instead of pgdat.
No functional change intended when CONFIG_BUG_VM=n.
Comment from Mark [1]:
"
... and I reckon it'd be clearer and more robust to define pgdat_to_phys() in the same ifdefs as contig_page_data so that these, stay in-sync. e.g. have:
| #ifdef CONFIG_NUMA | #define pgdat_to_phys(x) virt_to_phys(x) | #else /* CONFIG_NUMA */ | | extern struct pglist_data contig_page_data; | ... | #define pgdat_to_phys(x) __pa_symbol(&contig_page_data) | | #endif /* CONIFIG_NUMA */
"
[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/
---
mm/sparse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mm/sparse.c renamed from mm/sparse.c~mm-sparse-clarify-pgdat_to_phys +2 -1
@@ -321,7 +321,8 @@ size_t mem_section_usage_size(void)static inline phys_addr_t pgdat_to_phys (struct pglist_data *pgdat) {#ifndef CONFIG_NUMA -return __pa_symbol (pgdat); +VM_BUG_ON (pgdat != &contig_page_data); +return __pa_symbol (&contig_page_data);#else return __pa (pgdat);#endif
_
Andrew Morton
maintainerPATCH 137/212 mm/vmalloc: use batched page requests in bulk-allocator
In reply to Andrew MortonFrom: "Uladzislau Rezki (Sony)" <[email protected]>
Subject: mm/vmalloc: use batched page requests in bulk-allocator
In case of simultaneous vmalloc allocations, for example it is 1GB and 12 CPUs my system is able to hit "BUG: soft lockup" for !CONFIG_PREEMPT kernel.
<snip>
[ 62.512621] RIP: 0010:__alloc_pages_bulk+0xa9f/0xbb0 [ 62.512628] Code: ff 8b 44 24 48 44 29 f8 83 f8 01 0f 84 ea fe ff ff e9 07 f6 ff ff 48 8b 44 24 60 48 89 28 e9 00 f9 ff ff fb 66 0f 1f 44 00 00 <e9> e8 fd ff ff 65 48 01 51 10 e9 3e fe ff ff 48 8b 44 24 78 4d 89 [ 62.512629] RSP: 0018:ffffa7bfc29ffd20 EFLAGS: 00000206 [ 62.512631] RAX: 0000000000000200 RBX: ffffcd5405421888 RCX: ffff8c36ffdeb928 [ 62.512632] RDX: 0000000000040000 RSI: ffffa896f06b2ff8 RDI: ffffcd5405421880 [ 62.512633] RBP: ffffcd5405421880 R08: 000000000000007d R09: ffffffffffffffff [ 62.512634] R10: ffffffff9d63c084 R11: 00000000ffffffff R12: ffff8c373ffaeb80 [ 62.512635] R13: ffff8c36ffdf65f8 R14: ffff8c373ffaeb80 R15: 0000000000040000 [ 62.512637] FS: 0000000000000000(0000) GS:ffff8c36ffdc0000(0000) knlGS:0000000000000000 [ 62.512638] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 62.512639] CR2: 000055c8e2fe8610 CR3: 0000000c13e10000 CR4: 00000000000006e0 [ 62.512641] Call Trace: [ 62.512646] __vmalloc_node_range+0x11c/0x2d0 [ 62.512649] ? full_fit_alloc_test+0x140/0x140 [test_vmalloc] [ 62.512654] __vmalloc_node+0x4b/0x70 [ 62.512656] ? fix_size_alloc_test+0x44/0x60 [test_vmalloc] [ 62.512659] fix_size_alloc_test+0x44/0x60 [test_vmalloc] [ 62.512662] test_func+0xe7/0x1f0 [test_vmalloc] [ 62.512666] ? fix_align_alloc_test+0x50/0x50 [test_vmalloc] [ 62.512668] kthread+0x11a/0x140 [ 62.512671] ? set_kthread_struct+0x40/0x40 [ 62.512672] ret_from_fork+0x22/0x30
<snip>
To address this issue invoke a bulk-allocator many times until all pages are obtained, i.e. do batched page requests adding cond_resched() meanwhile to reschedule. Batched value is hard-coded and is 100 pages per call.
---
mm/vmalloc.c | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-)
mm/vmalloc.c renamed from mm/vmalloc.c~mm-vmalloc-use-batched-page-requests-in-bulk-allocator +27 -5
@@ -2779,7 +2779,7 @@ EXPORT_SYMBOL_GPL(vmap_pfn);static inline unsigned int vm_area_alloc_pages (gfp_t gfp,int nid, -unsigned int order,unsigned long nr_pages,struct page **pages) +unsigned int order,unsigned int nr_pages,struct page **pages) {unsigned int nr_allocated =0 ;
@@ -2789,10 +2789,32 @@ vm_area_alloc_pages(gfp_t gfp, int nid,* to fails, fallback to a single page allocator that is * more permissive. */ -if (!order) - nr_allocated =alloc_pages_bulk_array_node ( - gfp, nid, nr_pages, pages); -else +if (!order) { +while (nr_allocated < nr_pages) { +unsigned int nr, nr_pages_request; + +/* +* A maximum allowed request is hard-coded and is 100 +* pages per call. That is done in order to prevent a +* long preemption off scenario in the bulk-allocator +* so the range is [1:100]. +*/ + nr_pages_request =min (100U , nr_pages - nr_allocated); + + nr =alloc_pages_bulk_array_node (gfp, nid, + nr_pages_request, pages + nr_allocated); + + nr_allocated += nr; +cond_resched (); + +/* +* If zero or pages were obtained partly, +* fallback to a single page allocator. +*/ +if (nr != nr_pages_request) +break ; + } + }else /* * Compound pages required for remap_vmalloc_page if * high-order pages.
_
Andrew Morton
maintainerPATCH 138/212 mm/vmalloc: remove gfpflags_allow_blocking() check
In reply to Andrew MortonFrom: "Uladzislau Rezki (Sony)" <[email protected]>
Subject: mm/vmalloc: remove gfpflags_allow_blocking() check
Get rid of gfpflags_allow_blocking() check from the vmalloc() path as it is supposed to be sleepable anyway. Thus remove it from the alloc_vmap_area() as well as from the vm_area_alloc_pages().
---
mm/vmalloc.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-)
mm/vmalloc.c renamed from mm/vmalloc.c~mm-vmalloc-remove-gfpflags_allow_blocking-check +8 -10
@@ -1479,6 +1479,7 @@ static struct vmap_area *alloc_vmap_area int node, gfp_t gfp_mask) {struct vmap_area *va; +unsigned long freed;unsigned long addr;int purged =0 ;int ret;
@@ -1542,13 +1543,12 @@ overflow: goto retry; } -if (gfpflags_allow_blocking (gfp_mask)) { -unsigned long freed =0 ; -blocking_notifier_call_chain (&vmap_notify_list,0 , &freed); -if (freed >0 ) { - purged =0 ; - goto retry; - } + freed =0 ; +blocking_notifier_call_chain (&vmap_notify_list,0 , &freed); + +if (freed >0 ) { + purged =0 ; + goto retry; }if (!(gfp_mask & __GFP_NOWARN) &&printk_ratelimit ())
@@ -2838,9 +2838,7 @@ vm_area_alloc_pages(gfp_t gfp, int nid,for (i =0 ; i < (1U << order); i++) pages[nr_allocated + i] = page + i; -if (gfpflags_allow_blocking (gfp)) -cond_resched (); - +cond_resched (); nr_allocated +=1U << order; }
_
Andrew Morton
maintainerPATCH 139/212 lib/test_vmalloc.c: add a new 'nr_pages' parameter
In reply to Andrew MortonFrom: "Uladzislau Rezki (Sony)" <[email protected]>
Subject: lib/test_vmalloc.c: add a new 'nr_pages' parameter
In order to simulate different fixed sizes for vmalloc allocation introduce a new parameter that sets number of pages to be allocated for the "fix_size_alloc_test" test.
By default 1 page is used unless a different number is specified over the new parameter.
---
lib/test_vmalloc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
lib/test_vmalloc.c renamed from lib/test_vmalloc.c~lib-test_vmallocc-add-a-new-nr_pages-parameter +4 -1
@@ -35,6 +35,9 @@ __param(int, test_repeat_count, 1,__param (int, test_loop_count,1000000 ,"Set test loop counter" ); +__param (int, nr_pages,0 , +"Set number of pages for fix_size_alloc_test(default: 1)" ); +__param (int, run_test_mask,INT_MAX ,"Set tests specified in the mask.\n\n" "\t\tid: 1, name: fix_size_alloc_test\n"
@@ -262,7 +265,7 @@ static int fix_size_alloc_test(void)int i;for (i =0 ; i < test_loop_count; i++) { - ptr =vmalloc (3 *PAGE_SIZE ); + ptr =vmalloc ((nr_pages >0 ? nr_pages:1 ) *PAGE_SIZE );if (!ptr)return -1 ;
_
Andrew Morton
maintainerPATCH 140/212 mm/vmalloc: fix wrong behavior in vread
In reply to Andrew MortonFrom: Chen Wandun <[email protected]>
Subject: mm/vmalloc: fix wrong behavior in vread
commit f608788cd2d6 ("mm/vmalloc: use rb_tree instead of list for vread() lookups") use rb_tree instread of list to speed up lookup, but function __find_vmap_area is try to find a vmap_area that include target address, if target address is smaller than the leftmost node in vmap_area_root, it will return NULL, then vread will read nothing. This behavior is different from the primitive semantics.
The correct way is find the first vmap_are that bigger than target addr, that is what function find_vmap_area_exceed_addr does.
---
mm/vmalloc.c | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-)
mm/vmalloc.c renamed from mm/vmalloc.c~mm-vmalloc-fix-wrong-behavior-in-vread +28 -1
@@ -787,6 +787,28 @@ unsigned long vmalloc_nr_pages(void)return atomic_long_read (&nr_vmalloc_pages); } +static struct vmap_area *find_vmap_area_exceed_addr (unsigned long addr) +{ +struct vmap_area *va =NULL ; +struct rb_node *n = vmap_area_root.rb_node; + +while (n) { +struct vmap_area *tmp; + + tmp = rb_entry(n, struct vmap_area, rb_node); +if (tmp->va_end > addr) { + va = tmp; +if (tmp->va_start <= addr) +break ; + + n = n->rb_left; + }else + n = n->rb_right; + } + +return va; +} +static struct vmap_area *__find_vmap_area (unsigned long addr) {struct rb_node *n = vmap_area_root.rb_node;
@@ -3287,9 +3309,14 @@ long vread(char *buf, char *addr, unsign count = -(unsigned long ) addr;spin_lock (&vmap_area_lock); - va =__find_vmap_area ((unsigned long )addr); + va =find_vmap_area_exceed_addr ((unsigned long )addr);if (!va) goto finished; + +/* no intersects with alive vmap_area */ +if ((unsigned long )addr + count <= va->va_start) + goto finished; +list_for_each_entry_from (va, &vmap_area_list, list) {if (!count)break ;
_
Andrew Morton
maintainerPATCH 141/212 mm/kasan: move kasan.fault to mm/kasan/report.c
In reply to Andrew MortonFrom: Woody Lin <[email protected]>
Subject: mm/kasan: move kasan.fault to mm/kasan/report.c
Move the boot parameter 'kasan.fault' from hw_tags.c to report.c, so it can support all KASAN modes - generic, and both tag-based.
---
Documentation/dev-tools/kasan.rst | 13 +++++--- mm/kasan/hw_tags.c | 43 ---------------------------- mm/kasan/kasan.h | 1 mm/kasan/report.c | 29 ++++++++++++++++-- 4 files changed, 34 insertions(+), 52 deletions(-)
Documentation/dev-tools/kasan.rst renamed from Documentation/dev-tools/kasan.rst~mm-kasan-move-kasanfault-to-mm-kasan-reportc +8 -5
@@ -181,9 +181,16 @@ By default, KASAN prints a bug report on With ``kasan_multi_shot``, KASAN prints a report on every invalid access. This effectively disables ``panic_on_warn`` for KASAN reports. +Alternatively, independent of ``panic_on_warn`` the ``kasan.fault=`` boot +parameter can be used to control panic and reporting behaviour: + +- ``kasan.fault=report`` or ``=panic`` controls whether to only print a KASAN + report or also panic the kernel (default: ``report``). The panic happens even + if ``kasan_multi_shot`` is enabled. + Hardware tag-based KASAN mode (see the section about various modes below) is intended for use in production as a security mitigation. Therefore, it supports -boot parameters that allow disabling KASAN or controlling its features. +additional boot parameters that allow disabling KASAN or controlling features: - ``kasan=off`` or ``=on`` controls whether KASAN is enabled (default: ``on``).
@@ -199,10 +206,6 @@ boot parameters that allow disabling KAS - ``kasan.stacktrace=off`` or ``=on`` disables or enables alloc and free stack traces collection (default: ``on``). -- ``kasan.fault=report`` or ``=panic`` controls whether to only print a KASAN - report or also panic the kernel (default: ``report``). The panic happens even - if ``kasan_multi_shot`` is enabled. - Implementation details ----------------------
mm/kasan/hw_tags.c renamed from mm/kasan/hw_tags.c~mm-kasan-move-kasanfault-to-mm-kasan-reportc +0 -43
70 lines not on this page · raw message
mm/kasan/kasan.h renamed from mm/kasan/kasan.h~mm-kasan-move-kasanfault-to-mm-kasan-reportc +0 -1
@@ -37,7 +37,6 @@ static inline bool kasan_async_mode_enab#endif -extern bool kasan_flag_panic__ro_after_init ;extern bool kasan_flag_async__ro_after_init ;#if defined(CONFIG_KASAN_GENERIC ) || defined(CONFIG_KASAN_SW_TAGS )
mm/kasan/report.c renamed from mm/kasan/report.c~mm-kasan-move-kasanfault-to-mm-kasan-reportc +26 -3
@@ -39,6 +39,31 @@ static unsigned long kasan_flags;#define KASAN_BIT_REPORTED 0#define KASAN_BIT_MULTI_SHOT 1 +enum kasan_arg_fault { +KASAN_ARG_FAULT_DEFAULT , +KASAN_ARG_FAULT_REPORT , +KASAN_ARG_FAULT_PANIC , +}; + +static enum kasan_arg_fault kasan_arg_fault__ro_after_init =KASAN_ARG_FAULT_DEFAULT ; + +/* kasan.fault=report/panic */ +static int __init early_kasan_fault (char *arg) +{ +if (!arg) +return -EINVAL ; + +if (!strcmp (arg,"report" )) + kasan_arg_fault =KASAN_ARG_FAULT_REPORT ; +else if (!strcmp (arg,"panic" )) + kasan_arg_fault =KASAN_ARG_FAULT_PANIC ; +else +return -EINVAL ; + +return 0 ; +} +early_param ("kasan.fault" , early_kasan_fault); +bool kasan_save_enable_multi_shot (void ) {return test_and_set_bit (KASAN_BIT_MULTI_SHOT , &kasan_flags);
@@ -102,10 +127,8 @@ static void end_report(unsigned long *fl panic_on_warn =0 ;panic ("panic_on_warn set ...\n" ); } -#ifdef CONFIG_KASAN_HW_TAGS -if (kasan_flag_panic) +if (kasan_arg_fault ==KASAN_ARG_FAULT_PANIC )panic ("kasan.fault=panic set ...\n" ); -#endif kasan_enable_current (); }
_
Andrew Morton
maintainerPATCH 142/212 kasan: test: rework kmalloc_oob_right
In reply to Andrew MortonFrom: Andrey Konovalov <[email protected]>
Subject: kasan: test: rework kmalloc_oob_right
Patch series "kasan: test: avoid crashing the kernel with HW_TAGS", v2.
KASAN tests do out-of-bounds and use-after-free accesses. Running the tests works fine for the GENERIC mode, as it uses qurantine and redzones. But the HW_TAGS mode uses neither, and running the tests might crash the kernel.
Rework the tests to avoid corrupting kernel memory.
This patch (of 8):
Rework kmalloc_oob_right() to do these bad access checks:
1. An unaligned access one byte past the requested kmalloc size (can only be detected by KASAN_GENERIC).
2. An aligned access into the first out-of-bounds granule that falls within the aligned kmalloc object.
3. Out-of-bounds access past the aligned kmalloc object.
Test #3 deliberately uses a read access to avoid corrupting memory. Otherwise, this test might lead to crashes with the HW_TAGS mode, as it neither uses quarantine nor redzones.
---
lib/test_kasan.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-)
lib/test_kasan.c renamed from lib/test_kasan.c~kasan-test-rework-kmalloc_oob_right +18 -2
@@ -122,12 +122,28 @@ static void kasan_test_exit(struct kunitstatic void kmalloc_oob_right (struct kunit *test) {char *ptr; -size_t size =123 ; +size_t size =128 -KASAN_GRANULE_SIZE -5 ; ptr =kmalloc (size,GFP_KERNEL );KUNIT_ASSERT_NOT_ERR_OR_NULL (test, ptr); -KUNIT_EXPECT_KASAN_FAIL (test, ptr[size +OOB_TAG_OFF ] ='x' ); +/* +* An unaligned access past the requested kmalloc size. +* Only generic KASAN can precisely detect these. +*/ +if (IS_ENABLED (CONFIG_KASAN_GENERIC )) +KUNIT_EXPECT_KASAN_FAIL (test, ptr[size] ='x' ); + +/* +* An aligned access into the first out-of-bounds granule that falls +* within the aligned kmalloc object. +*/ +KUNIT_EXPECT_KASAN_FAIL (test, ptr[size +5 ] ='y' ); + +/* Out-of-bounds access past the aligned kmalloc object. */ +KUNIT_EXPECT_KASAN_FAIL (test, ptr[0 ] = + ptr[size +KASAN_GRANULE_SIZE +5 ]); +kfree (ptr); }
_
Andrew Morton
maintainerPATCH 143/212 kasan: test: avoid writing invalid memory
In reply to Andrew MortonFrom: Andrey Konovalov <[email protected]>
Subject: kasan: test: avoid writing invalid memory
Multiple KASAN tests do writes past the allocated objects or writes to freed memory. Turn these writes into reads to avoid corrupting memory. Otherwise, these tests might lead to crashes with the HW_TAGS mode, as it neither uses quarantine nor redzones.
---
lib/test_kasan.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
lib/test_kasan.c renamed from lib/test_kasan.c~kasan-test-avoid-writing-invalid-memory +7 -7
@@ -167,7 +167,7 @@ static void kmalloc_node_oob_right(struc ptr =kmalloc_node (size,GFP_KERNEL ,0 );KUNIT_ASSERT_NOT_ERR_OR_NULL (test, ptr); -KUNIT_EXPECT_KASAN_FAIL (test, ptr[size] =0 ); +KUNIT_EXPECT_KASAN_FAIL (test, ptr[0 ] = ptr[size]);kfree (ptr); }
@@ -203,7 +203,7 @@ static void kmalloc_pagealloc_uaf(structKUNIT_ASSERT_NOT_ERR_OR_NULL (test, ptr);kfree (ptr); -KUNIT_EXPECT_KASAN_FAIL (test, ptr[0 ] =0 ); +KUNIT_EXPECT_KASAN_FAIL (test, ((volatile char *)ptr)[0 ]); }static void kmalloc_pagealloc_invalid_free (struct kunit *test)
@@ -237,7 +237,7 @@ static void pagealloc_oob_right(struct k ptr =page_address (pages);KUNIT_ASSERT_NOT_ERR_OR_NULL (test, ptr); -KUNIT_EXPECT_KASAN_FAIL (test, ptr[size] =0 ); +KUNIT_EXPECT_KASAN_FAIL (test, ptr[0 ] = ptr[size]);free_pages ((unsigned long )ptr, order); }
@@ -252,7 +252,7 @@ static void pagealloc_uaf(struct kunit *KUNIT_ASSERT_NOT_ERR_OR_NULL (test, ptr);free_pages ((unsigned long )ptr, order); -KUNIT_EXPECT_KASAN_FAIL (test, ptr[0 ] =0 ); +KUNIT_EXPECT_KASAN_FAIL (test, ((volatile char *)ptr)[0 ]); }static void kmalloc_large_oob_right (struct kunit *test)
@@ -514,7 +514,7 @@ static void kmalloc_uaf(struct kunit *teKUNIT_ASSERT_NOT_ERR_OR_NULL (test, ptr);kfree (ptr); -KUNIT_EXPECT_KASAN_FAIL (test, *(ptr +8 ) ='x' ); +KUNIT_EXPECT_KASAN_FAIL (test, ((volatile char *)ptr)[8 ]); }static void kmalloc_uaf_memset (struct kunit *test)
@@ -553,7 +553,7 @@ again: goto again; } -KUNIT_EXPECT_KASAN_FAIL (test, ptr1[40 ] ='x' ); +KUNIT_EXPECT_KASAN_FAIL (test, ((volatile char *)ptr1)[40 ]);KUNIT_EXPECT_PTR_NE (test, ptr1, ptr2);kfree (ptr2);
@@ -700,7 +700,7 @@ static void ksize_unpoisons_memory(struc ptr[size] ='x' ;/* This one must. */ -KUNIT_EXPECT_KASAN_FAIL (test, ptr[real_size] ='y' ); +KUNIT_EXPECT_KASAN_FAIL (test, ((volatile char *)ptr)[real_size]);kfree (ptr); }
_
Andrew Morton
maintainerPATCH 144/212 kasan: test: avoid corrupting memory via memset
In reply to Andrew MortonFrom: Andrey Konovalov <[email protected]>
Subject: kasan: test: avoid corrupting memory via memset
kmalloc_oob_memset_*() tests do writes past the allocated objects. As the result, they corrupt memory, which might lead to crashes with the HW_TAGS mode, as it neither uses quarantine nor redzones.
Adjust the tests to only write memory within the aligned kmalloc objects.
Also add a comment mentioning that memset tests are designed to touch both valid and invalid memory.
---
lib/test_kasan.c | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-)
lib/test_kasan.c renamed from lib/test_kasan.c~kasan-test-avoid-corrupting-memory-via-memset +17 -11
@@ -428,64 +428,70 @@ static void kmalloc_uaf_16(struct kunitkfree (ptr1); } +/* +* Note: in the memset tests below, the written range touches both valid and +* invalid memory. This makes sure that the instrumentation does not only check +* the starting address but the whole range. +*/ +static void kmalloc_oob_memset_2 (struct kunit *test) {char *ptr; -size_t size =8 ; +size_t size =128 -KASAN_GRANULE_SIZE ; ptr =kmalloc (size,GFP_KERNEL );KUNIT_ASSERT_NOT_ERR_OR_NULL (test, ptr); -KUNIT_EXPECT_KASAN_FAIL (test,memset (ptr +7 +OOB_TAG_OFF ,0 ,2 )); +KUNIT_EXPECT_KASAN_FAIL (test,memset (ptr + size -1 ,0 ,2 ));kfree (ptr); }static void kmalloc_oob_memset_4 (struct kunit *test) {char *ptr; -size_t size =8 ; +size_t size =128 -KASAN_GRANULE_SIZE ; ptr =kmalloc (size,GFP_KERNEL );KUNIT_ASSERT_NOT_ERR_OR_NULL (test, ptr); -KUNIT_EXPECT_KASAN_FAIL (test,memset (ptr +5 +OOB_TAG_OFF ,0 ,4 )); +KUNIT_EXPECT_KASAN_FAIL (test,memset (ptr + size -3 ,0 ,4 ));kfree (ptr); } -static void kmalloc_oob_memset_8 (struct kunit *test) {char *ptr; -size_t size =8 ; +size_t size =128 -KASAN_GRANULE_SIZE ; ptr =kmalloc (size,GFP_KERNEL );KUNIT_ASSERT_NOT_ERR_OR_NULL (test, ptr); -KUNIT_EXPECT_KASAN_FAIL (test,memset (ptr +1 +OOB_TAG_OFF ,0 ,8 )); +KUNIT_EXPECT_KASAN_FAIL (test,memset (ptr + size -7 ,0 ,8 ));kfree (ptr); }static void kmalloc_oob_memset_16 (struct kunit *test) {char *ptr; -size_t size =16 ; +size_t size =128 -KASAN_GRANULE_SIZE ; ptr =kmalloc (size,GFP_KERNEL );KUNIT_ASSERT_NOT_ERR_OR_NULL (test, ptr); -KUNIT_EXPECT_KASAN_FAIL (test,memset (ptr +1 +OOB_TAG_OFF ,0 ,16 )); +KUNIT_EXPECT_KASAN_FAIL (test,memset (ptr + size -15 ,0 ,16 ));kfree (ptr); }static void kmalloc_oob_in_memset (struct kunit *test) {char *ptr; -size_t size =666 ; +size_t size =128 -KASAN_GRANULE_SIZE ; ptr =kmalloc (size,GFP_KERNEL );KUNIT_ASSERT_NOT_ERR_OR_NULL (test, ptr); -KUNIT_EXPECT_KASAN_FAIL (test,memset (ptr,0 , size +5 +OOB_TAG_OFF )); +KUNIT_EXPECT_KASAN_FAIL (test, +memset (ptr,0 , size +KASAN_GRANULE_SIZE ));kfree (ptr); }
_
Andrew Morton
maintainerPATCH 145/212 kasan: test: disable kmalloc_memmove_invalid_size for HW_TAGS
In reply to Andrew MortonFrom: Andrey Konovalov <[email protected]>
Subject: kasan: test: disable kmalloc_memmove_invalid_size for HW_TAGS
The HW_TAGS mode doesn't check memmove for negative size. As a result, the kmalloc_memmove_invalid_size test corrupts memory, which can result in a crash.
Disable this test with HW_TAGS KASAN.
---
lib/test_kasan.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
lib/test_kasan.c renamed from lib/test_kasan.c~kasan-test-disable-kmalloc_memmove_invalid_size-for-hw_tags +7 -1
@@ -501,11 +501,17 @@ static void kmalloc_memmove_invalid_sizesize_t size =64 ;volatile size_t invalid_size =-2 ; +/* +* Hardware tag-based mode doesn't check memmove for negative size. +* As a result, this test introduces a side-effect memory corruption, +* which can result in a crash. +*/ +KASAN_TEST_NEEDS_CONFIG_OFF (test,CONFIG_KASAN_HW_TAGS ); + ptr =kmalloc (size,GFP_KERNEL );KUNIT_ASSERT_NOT_ERR_OR_NULL (test, ptr);memset ((char *)ptr,0 ,64 ); -KUNIT_EXPECT_KASAN_FAIL (test,memmove ((char *)ptr, (char *)ptr +4 , invalid_size));kfree (ptr);
_
Andrew Morton
maintainerPATCH 146/212 kasan: test: only do kmalloc_uaf_memset for generic mode
In reply to Andrew MortonFrom: Andrey Konovalov <[email protected]>
Subject: kasan: test: only do kmalloc_uaf_memset for generic mode
kmalloc_uaf_memset() writes to freed memory, which is only safe with the GENERIC mode (as it uses quarantine). For other modes, this test corrupts kernel memory, which might result in a crash.
Only enable kmalloc_uaf_memset() for the GENERIC mode.
---
lib/test_kasan.c | 6 ++++++ 1 file changed, 6 insertions(+)
lib/test_kasan.c renamed from lib/test_kasan.c~kasan-test-only-do-kmalloc_uaf_memset-for-generic-mode +6 -0
@@ -534,6 +534,12 @@ static void kmalloc_uaf_memset(struct kuchar *ptr;size_t size =33 ; +/* +* Only generic KASAN uses quarantine, which is required to avoid a +* kernel memory corruption this test causes. +*/ +KASAN_TEST_NEEDS_CONFIG_ON (test,CONFIG_KASAN_GENERIC ); + ptr =kmalloc (size,GFP_KERNEL );KUNIT_ASSERT_NOT_ERR_OR_NULL (test, ptr);
_
Andrew Morton
maintainerPATCH 147/212 kasan: test: clean up ksize_uaf
In reply to Andrew MortonFrom: Andrey Konovalov <[email protected]>
Subject: kasan: test: clean up ksize_uaf
Some KASAN tests use global variables to store function returns values so that the compiler doesn't optimize away these functions.
ksize_uaf() doesn't call any functions, so it doesn't need to use kasan_int_result. Use volatile accesses instead, to be consistent with other similar tests.
---
lib/test_kasan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/test_kasan.c renamed from lib/test_kasan.c~kasan-test-clean-up-ksize_uaf +2 -2
@@ -737,8 +737,8 @@ static void ksize_uaf(struct kunit *testkfree (ptr);KUNIT_EXPECT_KASAN_FAIL (test,ksize (ptr)); -KUNIT_EXPECT_KASAN_FAIL (test, kasan_int_result = *ptr); -KUNIT_EXPECT_KASAN_FAIL (test, kasan_int_result = *(ptr + size)); +KUNIT_EXPECT_KASAN_FAIL (test, ((volatile char *)ptr)[0 ]); +KUNIT_EXPECT_KASAN_FAIL (test, ((volatile char *)ptr)[size]); }static void kasan_stack_oob (struct kunit *test)
_
Andrew Morton
maintainerPATCH 148/212 kasan: test: avoid corrupting memory in copy_user_test
In reply to Andrew MortonFrom: Andrey Konovalov <[email protected]>
Subject: kasan: test: avoid corrupting memory in copy_user_test
copy_user_test() does writes past the allocated object. As the result, it corrupts kernel memory, which might lead to crashes with the HW_TAGS mode, as it neither uses quarantine nor redzones.
(Technically, this test can't yet be enabled with the HW_TAGS mode, but this will be implemented in the future.)
Adjust the test to only write memory within the aligned kmalloc object.
---
lib/test_kasan_module.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-)
lib/test_kasan_module.c renamed from lib/test_kasan_module.c~kasan-test-avoid-corrupting-memory-in-copy_user_test +8 -10
@@ -15,13 +15,11 @@#include "../mm/kasan/kasan.h" -#define OOB_TAG_OFF (IS_ENABLED(CONFIG_KASAN_GENERIC) ? 0 : KASAN_GRANULE_SIZE) - static noinline void __init copy_user_test(void) {char *kmem;char __user *usermem; -size_t size =10 ; +size_t size =128 -KASAN_GRANULE_SIZE ;int __maybe_unused unused; kmem =kmalloc (size,GFP_KERNEL );
@@ -38,25 +36,25 @@ static noinline void __init copy_user_te }pr_info ("out-of-bounds in copy_from_user()\n" ); - unused =copy_from_user (kmem, usermem, size +1 +OOB_TAG_OFF ); + unused =copy_from_user (kmem, usermem, size +1 );pr_info ("out-of-bounds in copy_to_user()\n" ); - unused =copy_to_user (usermem, kmem, size +1 +OOB_TAG_OFF ); + unused =copy_to_user (usermem, kmem, size +1 );pr_info ("out-of-bounds in __copy_from_user()\n" ); - unused =__copy_from_user (kmem, usermem, size +1 +OOB_TAG_OFF ); + unused =__copy_from_user (kmem, usermem, size +1 );pr_info ("out-of-bounds in __copy_to_user()\n" ); - unused =__copy_to_user (usermem, kmem, size +1 +OOB_TAG_OFF ); + unused =__copy_to_user (usermem, kmem, size +1 );pr_info ("out-of-bounds in __copy_from_user_inatomic()\n" ); - unused =__copy_from_user_inatomic (kmem, usermem, size +1 +OOB_TAG_OFF ); + unused =__copy_from_user_inatomic (kmem, usermem, size +1 );pr_info ("out-of-bounds in __copy_to_user_inatomic()\n" ); - unused =__copy_to_user_inatomic (usermem, kmem, size +1 +OOB_TAG_OFF ); + unused =__copy_to_user_inatomic (usermem, kmem, size +1 );pr_info ("out-of-bounds in strncpy_from_user()\n" ); - unused =strncpy_from_user (kmem, usermem, size +1 +OOB_TAG_OFF ); + unused =strncpy_from_user (kmem, usermem, size +1 );vm_munmap ((unsigned long )usermem,PAGE_SIZE );kfree (kmem);
_
Andrew Morton
maintainerPATCH 149/212 kasan: test: avoid corrupting memory in kasan_rcu_uaf
In reply to Andrew MortonFrom: Andrey Konovalov <[email protected]>
Subject: kasan: test: avoid corrupting memory in kasan_rcu_uaf
kasan_rcu_uaf() writes to freed memory via kasan_rcu_reclaim(), which is only safe with the GENERIC mode (as it uses quarantine). For other modes, this test corrupts kernel memory, which might result in a crash.
Turn the write into a read.
---
lib/test_kasan_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/test_kasan_module.c renamed from lib/test_kasan_module.c~kasan-test-avoid-corrupting-memory-in-kasan_rcu_uaf +1 -1
@@ -71,7 +71,7 @@ static noinline void __init kasan_rcu_re struct kasan_rcu_info, rcu);kfree (fp); - fp->i =1 ; + ((volatile struct kasan_rcu_info *)fp)->i; } static noinline void __init kasan_rcu_uaf(void)
_
Andrew Morton
maintainerPATCH 150/212 mm/page_alloc: always initialize memory map for the holes
In reply to Andrew MortonFrom: Mike Rapoport <[email protected]>
Subject: mm/page_alloc: always initialize memory map for the holes
Patch series "mm: ensure consistency of memory map poisoning".
Currently memory map allocation for FLATMEM case does not poison the struct pages regardless of CONFIG_PAGE_POISON setting.
This happens because allocation of the memory map for FLATMEM and SPARSMEM use different memblock functions and those that are used for SPARSMEM case (namely memblock_alloc_try_nid_raw() and memblock_alloc_exact_nid_raw()) implicitly poison the allocated memory.
Another side effect of this implicit poisoning is that early setup code that uses the same functions to allocate memory burns cycles for the memory poisoning even if it was not intended.
These patches introduce memmap_alloc() wrapper that ensure that the memory map allocation is consistent for different memory models.
This patch (of 4):
Currently memory map for the holes is initialized only when SPARSEMEM memory model is used. Yet, even with FLATMEM there could be holes in the physical memory layout that have memory map entries.
For instance, the memory reserved using e820 API on i386 or "reserved-memory" nodes in device tree would not appear in memblock.memory and hence the struct pages for such holes will be skipped during memory map initialization.
These struct pages will be zeroed because the memory map for FLATMEM systems is allocated with memblock_alloc_node() that clears the allocated memory. While zeroed struct pages do not cause immediate problems, the correct behaviour is to initialize every page using __init_single_page(). Besides, enabling page poison for FLATMEM case will trigger PF_POISONED_CHECK() unless the memory map is properly initialized.
Make sure init_unavailable_range() is called for both SPARSEMEM and FLATMEM so that struct pages representing memory holes would appear as PG_Reserved with any memory layout.
---
arch/microblaze/include/asm/page.h | 3 +-- mm/page_alloc.c | 8 -------- 2 files changed, 1 insertion(+), 10 deletions(-)
arch/microblaze/include/asm/page.h renamed from arch/microblaze/include/asm/page.h~mm-page_alloc-always-initialize-memory-map-for-the-holes +1 -2
@@ -112,8 +112,7 @@ extern int page_is_ram(unsigned long pfn# define page_to_phys (page) (page_to_pfn(page) << PAGE_SHIFT)# define ARCH_PFN_OFFSET (memory_start >> PAGE_SHIFT) -# define pfn_valid (pfn) ((pfn) < (max_mapnr + ARCH_PFN_OFFSET)) - +# define pfn_valid (pfn) ((pfn) >= ARCH_PFN_OFFSET && (pfn) < (max_mapnr + ARCH_PFN_OFFSET))# endif /* __ASSEMBLY__ */ #define virt_addr_valid (vaddr) (pfn_valid(virt_to_pfn(vaddr)))
mm/page_alloc.c renamed from mm/page_alloc.c~mm-page_alloc-always-initialize-memory-map-for-the-holes +0 -8
@@ -6642,7 +6642,6 @@ static void __meminit zone_init_free_lis } } -#if !defined(CONFIG_FLATMEM )/* * Only struct pages that correspond to ranges defined by memblock.memory * are zeroed and initialized by going through __init_single_page() during
@@ -6687,13 +6686,6 @@ static void __init init_unavailable_rangpr_info ("On node %d, zone %s: %lld pages in unavailable ranges" , node, zone_names[zone], pgcnt); } -#else -static inline void init_unavailable_range (unsigned long spfn, -unsigned long epfn, -int zone,int node) -{ -} -#endif static void __init memmap_init_zone_range(struct zone *zone, unsigned long start_pfn,
_
Andrew Morton
maintainerPATCH 151/212 microblaze: simplify pte_alloc_one_kernel()
In reply to Andrew MortonFrom: Mike Rapoport <[email protected]>
Subject: microblaze: simplify pte_alloc_one_kernel()
The microblaze's implementation of pte_alloc_one_kernel() used memblock_alloc_try_nid_raw() along with clear_page() to allocated a zeroed page during early setup.
Replace calls of these functions with a call to memblock_alloc_try_nid() that already returns zeroed page and respects the same allocation limits as memblock_alloc_try_nid_raw().
While on it drop early_get_page() wrapper that was only used in pte_alloc_one_kernel().
---
arch/microblaze/include/asm/pgtable.h | 2 -- arch/microblaze/mm/init.c | 12 ------------ arch/microblaze/mm/pgtable.c | 17 ++++++++--------- 3 files changed, 8 insertions(+), 23 deletions(-)
arch/microblaze/include/asm/pgtable.h renamed from arch/microblaze/include/asm/pgtable.h~microblaze-simplify-pte_alloc_one_kernel +0 -2
@@ -443,8 +443,6 @@ extern int mem_init_done; asmlinkage void __init mmu_init(void); -void __init *early_get_page (void ); -#endif /* __ASSEMBLY__ */ #endif /* __KERNEL__ */
arch/microblaze/mm/init.c renamed from arch/microblaze/mm/init.c~microblaze-simplify-pte_alloc_one_kernel +0 -12
@@ -265,18 +265,6 @@ asmlinkage void __init mmu_init(void)dma_contiguous_reserve (memory_start + lowmem_size -1 ); } -/* This is only called until mem_init is done. */ -void __init *early_get_page (void ) -{ -/* -* Mem start + kernel_tlb -> here is limit -* because of mem mapping from head.S -*/ -return memblock_alloc_try_nid_raw (PAGE_SIZE ,PAGE_SIZE , -MEMBLOCK_LOW_LIMIT , memory_start + kernel_tlb, -NUMA_NO_NODE ); -} -void *__ref zalloc_maybe_bootmem (size_t size,gfp_t mask) {void *p;
arch/microblaze/mm/pgtable.c renamed from arch/microblaze/mm/pgtable.c~microblaze-simplify-pte_alloc_one_kernel +8 -9
@@ -33,6 +33,7 @@#include <linux/init.h> #include <linux/mm_types.h> #include <linux/pgtable.h> +#include <linux/memblock.h> #include <asm/pgalloc.h> #include <linux/io.h>
@@ -242,15 +243,13 @@ unsigned long iopa(unsigned long addr)__ref pte_t *pte_alloc_one_kernel (struct mm_struct *mm) { -pte_t *pte; -if (mem_init_done) { - pte = (pte_t *)__get_free_page (GFP_KERNEL | __GFP_ZERO); - }else { - pte = (pte_t *)early_get_page (); -if (pte) -clear_page (pte); - } -return pte; +if (mem_init_done) +return (pte_t *)__get_free_page (GFP_KERNEL | __GFP_ZERO); +else +return memblock_alloc_try_nid (PAGE_SIZE ,PAGE_SIZE , +MEMBLOCK_LOW_LIMIT , + memory_start + kernel_tlb, +NUMA_NO_NODE ); }void __set_fixmap (enum fixed_addresses idx,phys_addr_t phys,pgprot_t flags)
_
Andrew Morton
maintainerPATCH 152/212 mm: introduce memmap_alloc() to unify memory map allocation
In reply to Andrew MortonFrom: Mike Rapoport <[email protected]>
Subject: mm: introduce memmap_alloc() to unify memory map allocation
There are several places that allocate memory for the memory map:alloc_node_mem_map() for FLATMEM, sparse_buffer_init() and __populate_section_memmap() for SPARSEMEM.
The memory allocated in the FLATMEM case is zeroed and it is never poisoned, regardless of CONFIG_PAGE_POISON setting.
The memory allocated in the SPARSEMEM cases is not zeroed and it is implicitly poisoned inside memblock if CONFIG_PAGE_POISON is set.
Introduce memmap_alloc() wrapper for memblock allocators that will be used for both FLATMEM and SPARSEMEM cases and will makei memory map zeroing and poisoning consistent for different memory models.
---
mm/internal.h | 4 ++++ mm/page_alloc.c | 24 ++++++++++++++++++++++-- mm/sparse.c | 6 ++---- 3 files changed, 28 insertions(+), 6 deletions(-)
mm/internal.h renamed from mm/internal.h~mm-introduce-memmap_alloc-to-unify-memory-map-allocation +4 -0
@@ -211,6 +211,10 @@ extern void zone_pcp_reset(struct zone *extern void zone_pcp_disable (struct zone *zone);extern void zone_pcp_enable (struct zone *zone); +extern void *memmap_alloc (phys_addr_t size,phys_addr_t align, +phys_addr_t min_addr, +int nid,bool exact_nid); +#if definedCONFIG_COMPACTION || definedCONFIG_CMA /*
mm/page_alloc.c renamed from mm/page_alloc.c~mm-introduce-memmap_alloc-to-unify-memory-map-allocation +22 -2
@@ -6748,6 +6748,26 @@ static void __init memmap_init(void)init_unavailable_range (hole_pfn, end_pfn, zone_id, nid); } +void __init *memmap_alloc (phys_addr_t size,phys_addr_t align, +phys_addr_t min_addr,int nid,bool exact_nid) +{ +void *ptr; + +if (exact_nid) + ptr =memblock_alloc_exact_nid_raw (size, align, min_addr, +MEMBLOCK_ALLOC_ACCESSIBLE , + nid); +else + ptr =memblock_alloc_try_nid_raw (size, align, min_addr, +MEMBLOCK_ALLOC_ACCESSIBLE , + nid); + +if (ptr && size >0 ) +page_init_poison (ptr, size); + +return ptr; +} +static int zone_batchsize (struct zone *zone) {#ifdef CONFIG_MMU
@@ -7519,8 +7539,8 @@ static void __ref alloc_node_mem_map(str end =pgdat_end_pfn (pgdat); end =ALIGN (end,MAX_ORDER_NR_PAGES ); size = (end - start) *sizeof (struct page ); - map =memblock_alloc_node (size,SMP_CACHE_BYTES , - pgdat->node_id); + map =memmap_alloc (size,SMP_CACHE_BYTES ,MEMBLOCK_LOW_LIMIT , + pgdat->node_id, false);if (!map)panic ("Failed to allocate %ld bytes for node %d memory map\n" , size, pgdat->node_id);
mm/sparse.c renamed from mm/sparse.c~mm-introduce-memmap_alloc-to-unify-memory-map-allocation +2 -4
@@ -436,8 +436,7 @@ struct page __init *__populate_section_mif (map)return map; - map =memblock_alloc_try_nid_raw (size, size, addr, -MEMBLOCK_ALLOC_ACCESSIBLE , nid); + map =memmap_alloc (size, size, addr, nid, false);if (!map)panic ("%s: Failed to allocate %lu bytes align=0x%lx nid=%d from=%pa\n" , __func__, size,PAGE_SIZE , nid, &addr);
@@ -464,8 +463,7 @@ static void __init sparse_buffer_init(un* and we want it to be properly aligned to the section size - this is * especially the case for VMEMMAP which maps memmap to PMDs */ - sparsemap_buf =memblock_alloc_exact_nid_raw (size,section_map_size (), - addr,MEMBLOCK_ALLOC_ACCESSIBLE , nid); + sparsemap_buf =memmap_alloc (size,section_map_size (), addr, nid, true); sparsemap_buf_end = sparsemap_buf + size; }
_
Andrew Morton
maintainerPATCH 153/212 memblock: stop poisoning raw allocations
In reply to Andrew MortonFrom: Mike Rapoport <[email protected]>
Subject: memblock: stop poisoning raw allocations
Functions memblock_alloc_exact_nid_raw() and memblock_alloc_try_nid_raw() are intended for early memory allocation without overhead of zeroing the allocated memory. Since these functions were used to allocate the memory map, they have ended up with addition of a call to page_init_poison() that poisoned the allocated memory when CONFIG_PAGE_POISON was set.
Since the memory map is allocated using a dedicated memmep_alloc() function that takes care of the poisoning, remove page poisoning from the memblock_alloc_*_raw() functions.
---
mm/memblock.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-)
mm/memblock.c renamed from mm/memblock.c~memblock-stop-poisoning-raw-allocations +4 -16
@@ -1491,18 +1491,12 @@ void * __init memblock_alloc_exact_nid_r phys_addr_t min_addr, phys_addr_t max_addr, int nid) { - void *ptr; - memblock_dbg("%s: %llu bytes align=0x%llx nid=%d from=%pa max_addr=%pa %pS\n", __func__, (u64 )size, (u64 )align, nid, &min_addr, &max_addr, (void *)_RET_IP_); - ptr =memblock_alloc_internal (size, align, - min_addr, max_addr, nid, true); -if (ptr && size >0 ) -page_init_poison (ptr, size); - -return ptr; +return memblock_alloc_internal (size, align, min_addr, max_addr, nid, + true); }/**
@@ -1529,18 +1523,12 @@ void * __init memblock_alloc_try_nid_raw phys_addr_t min_addr, phys_addr_t max_addr, int nid) { - void *ptr; - memblock_dbg("%s: %llu bytes align=0x%llx nid=%d from=%pa max_addr=%pa %pS\n", __func__, (u64 )size, (u64 )align, nid, &min_addr, &max_addr, (void *)_RET_IP_); - ptr =memblock_alloc_internal (size, align, - min_addr, max_addr, nid, false); -if (ptr && size >0 ) -page_init_poison (ptr, size); - -return ptr; +return memblock_alloc_internal (size, align, min_addr, max_addr, nid, + false); }/**
_
Andrew Morton
maintainerPATCH 154/212 mm/page_alloc.c: fix 'zone_id' may be used uninitialized in this function warning
In reply to Andrew MortonFrom: Nico Pache <[email protected]>
Subject: mm/page_alloc.c: fix 'zone_id' may be used uninitialized in this function warning
When compiling with -Werror, cc1 will warn that 'zone_id' may be used uninitialized in this function warning.
Initialize the zone_id as 0.
Its safe to assume that if the code reaches this point it has at least one numa node with memory, so no need for an assertion before init_unavilable_range.
---
mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page_alloc.c renamed from mm/page_alloc.c~fix-zone_id-may-be-used-uninitialized-in-this-function-warning +1 -1
@@ -6715,7 +6715,7 @@ static void __init memmap_init(void) {unsigned long start_pfn, end_pfn;unsigned long hole_pfn =0 ; -int i, j, zone_id, nid; +int i, j, zone_id =0 , nid;for_each_mem_pfn_range (i,MAX_NUMNODES , &start_pfn, &end_pfn, &nid) {struct pglist_data *node =NODE_DATA (nid);
_
Andrew Morton
maintainerPATCH 155/212 mm/page_alloc: make alloc_node_mem_map() __init rather than __ref
In reply to Andrew MortonFrom: Mike Rapoport <[email protected]>
Subject: mm/page_alloc: make alloc_node_mem_map() __init rather than __ref
alloc_node_mem_map() is never only called from free_area_init_node() that is an __init function.
Make the actual alloc_node_mem_map() also __init and its stub version static inline.
---
mm/page_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mm/page_alloc.c renamed from mm/page_alloc.c~mm-page_alloc-make-alloc_node_mem_map-__init-rather-than-__ref +2 -2
@@ -7515,7 +7515,7 @@ static void __init free_area_init_core(s }#ifdef CONFIG_FLATMEM -static void __ref alloc_node_mem_map (struct pglist_data *pgdat) +static void __init alloc_node_mem_map (struct pglist_data *pgdat) {unsigned long __maybe_unused start =0 ;unsigned long __maybe_unused offset =0 ;
@@ -7561,7 +7561,7 @@ static void __ref alloc_node_mem_map(str #endif }#else -static void __ref alloc_node_mem_map (struct pglist_data *pgdat) { } +static inline void alloc_node_mem_map (struct pglist_data *pgdat) { }#endif /* CONFIG_FLATMEM */ #ifdef CONFIG_DEFERRED_STRUCT_PAGE_INIT
_
Andrew Morton
maintainerPATCH 156/212 mm/page_alloc.c: use in_task()
In reply to Andrew MortonFrom: Vasily Averin <[email protected]>
Subject: mm/page_alloc.c: use in_task()
Obsoleted in_intrrupt() include task context with disabled BH, it's better to use in_task() instead.
---
mm/page_alloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
mm/page_alloc.c renamed from mm/page_alloc.c~mm-use-in_task-in-mm-page_allocc +3 -3
@@ -4211,7 +4211,7 @@ static void warn_alloc_show_mem(gfp_t gfif (tsk_is_oom_victim (current) || (current->flags & (PF_MEMALLOC |PF_EXITING ))) filter &= ~SHOW_MEM_FILTER_NODES ; -if (in_interrupt () || !(gfp_mask & __GFP_DIRECT_RECLAIM)) +if (!in_task () || !(gfp_mask & __GFP_DIRECT_RECLAIM)) filter &= ~SHOW_MEM_FILTER_NODES ;show_mem (filter, nodemask);
@@ -4697,7 +4697,7 @@ gfp_to_alloc_flags(gfp_t gfp_mask)* comment for __cpuset_node_allowed(). */ alloc_flags &= ~ALLOC_CPUSET ; - }else if (unlikely (rt_task (current)) && !in_interrupt ()) + }else if (unlikely (rt_task (current)) &&in_task ()) alloc_flags |=ALLOC_HARDER ; alloc_flags =gfp_to_alloc_flags_cma (gfp_mask, alloc_flags);
@@ -5157,7 +5157,7 @@ static inline bool prepare_alloc_pages(g* When we are in the interrupt context, it is irrelevant * to the current task context. It means that any node ok. */ -if (!in_interrupt () && !ac->nodemask) +if (in_task () && !ac->nodemask) ac->nodemask = &cpuset_current_mems_allowed;else *alloc_flags |=ALLOC_CPUSET ;
_
Andrew Morton
maintainerPATCH 157/212 mm/page_isolation: tracing: trace all test_pages_isolated failures
In reply to Andrew MortonFrom: "George G. Davis" <[email protected]>
Subject: mm/page_isolation: tracing: trace all test_pages_isolated failures
Some test_pages_isolated failure conditions don't include trace points. For debugging issues caused by "pinned" pages, make sure to trace all calls whether they succeed or fail. In this case, a failure case did not result in a trace point. So add the missing failure case in test_pages_isolated traces.
---
mm/page_isolation.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
mm/page_isolation.c renamed from mm/page_isolation.c~mm-page_isolation-tracing-trace-all-test_pages_isolated-failures +10 -3
@@ -287,6 +287,7 @@ int test_pages_isolated(unsigned long stunsigned long pfn, flags;struct page *page;struct zone *zone; +int ret;/* * Note: pageblock_nr_pages != MAX_ORDER. Then, chunks of free pages
@@ -299,15 +300,21 @@ int test_pages_isolated(unsigned long stbreak ; } page =__first_valid_page (start_pfn, end_pfn - start_pfn); -if ((pfn < end_pfn) || !page) -return -EBUSY ; +if ((pfn < end_pfn) || !page) { + ret = -EBUSY ; + goto out; + } +/* Check all pages are free or marked as ISOLATED */ zone =page_zone (page);spin_lock_irqsave (&zone->lock, flags); pfn =__test_page_isolated_in_pageblock (start_pfn, end_pfn, isol_flags);spin_unlock_irqrestore (&zone->lock, flags); + ret = pfn < end_pfn ? -EBUSY :0 ; + +out:trace_test_pages_isolated (start_pfn, end_pfn, pfn); -return pfn < end_pfn ? -EBUSY :0 ; +return ret; }
_
Andrew Morton
maintainerPATCH 158/212 mm/hwpoison: remove unneeded variable unmap_success
In reply to Andrew MortonFrom: Miaohe Lin <[email protected]>
Subject: mm/hwpoison: remove unneeded variable unmap_success
Patch series "Cleanups and fixup for hwpoison"
This series contains cleanups to remove unneeded variable, fix some obsolete comments and so on. Also we fix potential pte_unmap_unlock on wrong pte. More details can be found in the respective changelogs.
This patch (of 4):
unmap_success is used to indicate whether page is successfully unmapped but it's irrelated with ZONE_DEVICE page and unmap_success is always true here. Remove this unneeded one.
---
mm/memory-failure.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
mm/memory-failure.c renamed from mm/memory-failure.c~mm-hwpoison-remove-unneeded-variable-unmap_success +1 -2
@@ -1518,7 +1518,6 @@ static int memory_failure_dev_pagemap(un struct dev_pagemap *pgmap) {struct page *page =pfn_to_page (pfn); -const bool unmap_success = true;unsigned long size =0 ;struct to_kill *tk;LIST_HEAD (tokill);
@@ -1590,7 +1589,7 @@ static int memory_failure_dev_pagemap(un start = (page->index <<PAGE_SHIFT ) & ~(size -1 );unmap_mapping_range (page->mapping, start, size,0 ); } -kill_procs (&tokill, flags &MF_MUST_KILL , !unmap_success, pfn, flags); +kill_procs (&tokill, flags &MF_MUST_KILL , false, pfn, flags); rc =0 ; unlock:dax_unlock_page (page, cookie);
_
Andrew Morton
maintainerPATCH 159/212 mm/hwpoison: fix potential pte_unmap_unlock pte error
In reply to Andrew MortonFrom: Miaohe Lin <[email protected]>
Subject: mm/hwpoison: fix potential pte_unmap_unlock pte error
If the first pte is equal to poisoned_pfn, i.e. check_hwpoisoned_entry() return 1, the wrong ptep - 1 would be passed to pte_unmap_unlock().
---
mm/memory-failure.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
mm/memory-failure.c renamed from mm/memory-failure.c~mm-hwpoison-fix-potential-pte_unmap_unlock-pte-error +4 -3
@@ -632,7 +632,7 @@ static int hwpoison_pte_range(pmd_t *pmd {struct hwp_walk *hwp = (struct hwp_walk *)walk->private;int ret =0 ; -pte_t *ptep; +pte_t *ptep, *mapped_pte;spinlock_t *ptl; ptl =pmd_trans_huge_lock (pmdp, walk->vma);
@@ -645,14 +645,15 @@ static int hwpoison_pte_range(pmd_t *pmdif (pmd_trans_unstable (pmdp)) goto out; - ptep =pte_offset_map_lock (walk->vma->vm_mm, pmdp, addr, &ptl); + mapped_pte = ptep =pte_offset_map_lock (walk->vma->vm_mm, pmdp, + addr, &ptl);for (; addr != end; ptep++, addr +=PAGE_SIZE ) { ret =check_hwpoisoned_entry (*ptep, addr,PAGE_SHIFT , hwp->pfn, &hwp->tk);if (ret ==1 )break ; } -pte_unmap_unlock (ptep -1 , ptl); +pte_unmap_unlock (mapped_pte, ptl); out:cond_resched ();return ret;
_
Andrew Morton
maintainerPATCH 160/212 mm/hwpoison: change argument struct page **hpagep to *hpage
In reply to Andrew MortonFrom: Miaohe Lin <[email protected]>
Subject: mm/hwpoison: change argument struct page **hpagep to *hpage
It's unnecessary to pass in a struct page **hpagep because it's never modified. Changing to use *hpage to simplify the code.
---
mm/memory-failure.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
mm/memory-failure.c renamed from mm/memory-failure.c~mm-hwpoison-change-argument-struct-page-hpagep-to-hpage +3 -4
@@ -1271,14 +1271,13 @@ static int get_hwpoison_page(struct page* the pages and send SIGBUS to the processes if the data was dirty. */ static bool hwpoison_user_mappings (struct page *p,unsigned long pfn, -int flags,struct page **hpagep) +int flags,struct page *hpage) {enum ttu_flags ttu =TTU_IGNORE_MLOCK |TTU_SYNC ;struct address_space *mapping;LIST_HEAD (tokill);bool unmap_success;int kill =1 , forcekill; -struct page *hpage = *hpagep;bool mlocked =PageMlocked (hpage);/*
@@ -1503,7 +1502,7 @@ static int memory_failure_hugetlb(unsign goto out; } -if (!hwpoison_user_mappings (p, pfn, flags, &head)) { +if (!hwpoison_user_mappings (p, pfn, flags, head)) {action_result (pfn,MF_MSG_UNMAP_FAILED ,MF_IGNORED ); res = -EBUSY ; goto out;
@@ -1783,7 +1782,7 @@ try_again:* Now take care of user space mappings. * Abort on fail: __delete_from_page_cache() assumes unmapped page. */ -if (!hwpoison_user_mappings (p, pfn, flags, &p)) { +if (!hwpoison_user_mappings (p, pfn, flags, p)) {action_result (pfn,MF_MSG_UNMAP_FAILED ,MF_IGNORED ); res = -EBUSY ; goto unlock_page;
_
Andrew Morton
maintainerPATCH 161/212 mm/hwpoison: fix some obsolete comments
In reply to Andrew MortonFrom: Miaohe Lin <[email protected]>
Subject: mm/hwpoison: fix some obsolete comments
Since commit cb731d6c62bb ("vmscan: per memory cgroup slab shrinkers"), shrink_node_slabs is renamed to drop_slab_node. And doit argument is changed to forcekill since commit 6751ed65dc66 ("x86/mce: Fix siginfo_t->si_addr value for non-recoverable memory faults").
---
mm/memory-failure.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
mm/memory-failure.c renamed from mm/memory-failure.c~mm-hwpoison-fix-some-obsolete-comments +3 -3
@@ -296,7 +296,7 @@ void shake_page(struct page *p, int acce }/* -* Only call shrink_node_slabs here (which would also shrink +* Only call drop_slab_node here (which would also shrink * other caches) if access is not potentially fatal. */ if (access)
@@ -391,8 +391,8 @@ static void add_to_kill(struct task_stru/* * Kill the processes that have been collected earlier. * -* Only do anything when DOIT is set, otherwise just free the list -* (this is used for clean pages which do not need killing) +* Only do anything when FORCEKILL is set, otherwise just free the +* list (this is used for clean pages which do not need killing) * Also when FAIL is set do a force kill because something went * wrong earlier. */
_
Andrew Morton
maintainerPATCH 162/212 mm: hwpoison: don't drop slab caches for offlining non-LRU page
In reply to Andrew MortonFrom: Yang Shi <[email protected]>
Subject: mm: hwpoison: don't drop slab caches for offlining non-LRU page
In the current implementation of soft offline, if non-LRU page is met, all the slab caches will be dropped to free the page then offline. But if the page is not slab page all the effort is wasted in vain. Even though it is a slab page, it is not guaranteed the page could be freed at all.
However the side effect and cost is quite high. It does not only drop the slab caches, but also may drop a significant amount of page caches which are associated with inode caches. It could make the most workingset gone in order to just offline a page. And the offline is not guaranteed to succeed at all, actually I really doubt the success rate for real life workload.
Furthermore the worse consequence is the system may be locked up and unusable since the page cache release may incur huge amount of works queued for memcg release.
Actually we ran into such unpleasant case in our production environment. Firstly, the workqueue of memory_failure_work_func is locked up as below:
BUG: workqueue lockup - pool cpus=1 node=0 flags=0x0 nice=0 stuck for 53s!
Showing busy workqueues and worker pools:
workqueue events: flags=0x0
pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=14/256 refcnt=15
in-flight: 409271:memory_failure_work_func
pending: kfree_rcu_work, kfree_rcu_monitor, kfree_rcu_work, rht_deferred_worker, rht_deferred_worker, rht_deferred_worker, rht_deferred_worker, kfree_rcu_work, kfree_rcu_work, kfree_rcu_work, kfree_rcu_work, drain_local_stock, kfree_rcu_work workqueue mm_percpu_wq: flags=0x8
pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
pending: vmstat_update
workqueue cgroup_destroy: flags=0x0
pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=1/1 refcnt=12072
pending: css_release_work_fn
There were over 12K css_release_work_fn queued, and this caused a few lockups due to the contention of worker pool lock with IRQ disabled, for example:
NMI watchdog: Watchdog detected hard LOCKUP on cpu 1
Modules linked in: amd64_edac_mod edac_mce_amd crct10dif_pclmul crc32_pclmul ghash_clmulni_intel xt_DSCP iptable_mangle kvm_amd bpfilter vfat fat acpi_ipmi i2c_piix4 usb_storage ipmi_si k10temp i2c_core ipmi_devintf ipmi_msghandler acpi_cpufreq sch_fq_codel xfs libcrc32c crc32c_intel mlx5_core mlxfw nvme xhci_pci ptp nvme_core pps_core xhci_hcd CPU: 1 PID: 205500 Comm: kworker/1:0 Tainted: G L 5.10.32-t1.el7.twitter.x86_64 #1 Hardware name: TYAN F5AMT /z /S8026GM2NRE-CGN, BIOS V8.030 03/30/2021 Workqueue: events memory_failure_work_func RIP: 0010:queued_spin_lock_slowpath+0x41/0x1a0 Code: 41 f0 0f ba 2f 08 0f 92 c0 0f b6 c0 c1 e0 08 89 c2 8b 07 30 e4 09 d0 a9 00 01 ff ff 75 1b 85 c0 74 0e 8b 07 84 c0 74 08 f3 90 <8b> 07 84 c0 75 f8 b8 01 00 00 00 66 89 07 c3 f6 c4 01 75 04 c6 47 RSP: 0018:ffff9b2ac278f900 EFLAGS: 00000002 RAX: 0000000000480101 RBX: ffff8ce98ce71800 RCX: 0000000000000084 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8ce98ce6a140 RBP: 00000000000284c8 R08: ffffd7248dcb6808 R09: 0000000000000000 R10: 0000000000000003 R11: ffff9b2ac278f9b0 R12: 0000000000000001 R13: ffff8cb44dab9c00 R14: ffffffffbd1ce6a0 R15: ffff8cacaa37f068 FS: 0000000000000000(0000) GS:ffff8ce98ce40000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcf6e8cb000 CR3: 0000000a0c60a000 CR4: 0000000000350ee0 Call Trace: __queue_work+0xd6/0x3c0 queue_work_on+0x1c/0x30 uncharge_batch+0x10e/0x110 mem_cgroup_uncharge_list+0x6d/0x80 release_pages+0x37f/0x3f0 __pagevec_release+0x1c/0x50 __invalidate_mapping_pages+0x348/0x380 ? xfs_alloc_buftarg+0xa4/0x120 [xfs] inode_lru_isolate+0x10a/0x160 ? iput+0x1d0/0x1d0 __list_lru_walk_one+0x7b/0x170 ? iput+0x1d0/0x1d0 list_lru_walk_one+0x4a/0x60 prune_icache_sb+0x37/0x50 super_cache_scan+0x123/0x1a0 do_shrink_slab+0x10c/0x2c0 shrink_slab+0x1f1/0x290 drop_slab_node+0x4d/0x70 soft_offline_page+0x1ac/0x5b0 ? dev_mce_log+0xee/0x110 ? notifier_call_chain+0x39/0x90 memory_failure_work_func+0x6a/0x90 process_one_work+0x19e/0x340 ? process_one_work+0x340/0x340 worker_thread+0x30/0x360 ? process_one_work+0x340/0x340 kthread+0x116/0x130
The lockup made the machine is quite unusable. And it also made the most workingset gone, the reclaimabled slab caches were reduced from 12G to 300MB, the page caches were decreased from 17G to 4G.
But the most disappointing thing is all the effort doesn't make the page offline, it just returns:
soft_offline: 0x1469f2: unknown non LRU page type 5ffff0000000000 ()
It seems the aggressive behavior for non-LRU page didn't pay back, so it doesn't make too much sense to keep it considering the terrible side effect.
---
include/linux/mm.h | 2 +- mm/hwpoison-inject.c | 2 +- mm/memory-failure.c | 18 ++++++++---------- 3 files changed, 10 insertions(+), 12 deletions(-)
include/linux/mm.h renamed from include/linux/mm.h~mm-hwpoison-dont-drop-slab-caches-for-offlining-non-lru-page +1 -1
@@ -3110,7 +3110,7 @@ extern void memory_failure_queue_kick(inextern int unpoison_memory (unsigned long pfn);extern int sysctl_memory_failure_early_kill;extern int sysctl_memory_failure_recovery; -extern void shake_page (struct page *p,int access); +extern void shake_page (struct page *p);extern atomic_long_t num_poisoned_pages__read_mostly ;extern int soft_offline_page (unsigned long pfn,int flags);
mm/hwpoison-inject.c renamed from mm/hwpoison-inject.c~mm-hwpoison-dont-drop-slab-caches-for-offlining-non-lru-page +1 -1
@@ -30,7 +30,7 @@ static int hwpoison_inject(void *data, uif (!hwpoison_filter_enable) goto inject; -shake_page (hpage,0 ); +shake_page (hpage);/* * This implies unable to support non-LRU pages. */
mm/memory-failure.c renamed from mm/memory-failure.c~mm-hwpoison-dont-drop-slab-caches-for-offlining-non-lru-page +8 -10
@@ -282,9 +282,9 @@ static int kill_proc(struct to_kill *tk,/* * Unknown page type encountered. Try to check whether it can turn PageLRU by -* lru_add_drain_all, or a free page by reclaiming slabs when possible. +* lru_add_drain_all. */ -void shake_page (struct page *p,int access) +void shake_page (struct page *p) {if (PageHuge (p))return ;
@@ -296,11 +296,9 @@ void shake_page(struct page *p, int acce }/* -* Only call drop_slab_node here (which would also shrink -* other caches) if access is not potentially fatal. +* TODO: Could shrink slab caches here if a lightweight range-based +* shrinker will be available. */ -if (access) -drop_slab_node (page_to_nid (p)); }EXPORT_SYMBOL_GPL (shake_page);
@@ -1205,7 +1203,7 @@ try_again:* page, retry. */ if (pass++ <3 ) { -shake_page (p,1 ); +shake_page (p); goto try_again; } ret = -EIO ;
@@ -1222,7 +1220,7 @@ try_again:*/ if (pass++ <3 ) {put_page (p); -shake_page (p,1 ); +shake_page (p); count_increased = false; goto try_again; }
@@ -1369,7 +1367,7 @@ static bool hwpoison_user_mappings(struc* shake_page() again to ensure that it's flushed. */ if (mlocked) -shake_page (hpage,0 ); +shake_page (hpage);/* * Now that the dirty bit has been propagated to the
@@ -1723,7 +1721,7 @@ try_again:* The check (unnecessarily) ignores LRU pages being isolated and * walked by the page reclaim code, however that's not a big loss. */ -shake_page (p,0 ); +shake_page (p);lock_page (p);
_
Andrew Morton
maintainerPATCH 163/212 doc: hwpoison: correct the support for hugepage
In reply to Andrew MortonFrom: Yang Shi <[email protected]>
Subject: doc: hwpoison: correct the support for hugepage
The hwpoison support for huge page, both hugetlb and THP, has been in kernel for a while, the statement in document is obsolete, correct it.
---
Documentation/vm/hwpoison.rst | 1 - 1 file changed, 1 deletion(-)
Documentation/vm/hwpoison.rst renamed from Documentation/vm/hwpoison.rst~doc-hwpoison-correct-the-support-for-hugepage +0 -1
@@ -180,7 +180,6 @@ Limitations =========== - Not all page types are supported and never will. Most kernel internal objects cannot be recovered, only LRU pages for now. -- Right now hugepage support is missing. --- Andi Kleen, Oct 2009
_
Andrew Morton
maintainerPATCH 164/212 mm: hwpoison: dump page for unhandlable page
In reply to Andrew MortonFrom: Yang Shi <[email protected]>
Subject: mm: hwpoison: dump page for unhandlable page
Currently just very simple message is shown for unhandlable page, e.g. non-LRU page, like: soft_offline: 0x1469f2: unknown non LRU page type 5ffff0000000000 ()
It is not very helpful for further debug, calling dump_page() could show more useful information.
Calling dump_page() in get_any_page() in order to not duplicate the call in a couple of different places. It may be called with pcp disabled and holding memory hotplug lock, it should be not a big deal since hwpoison handler is not called very often.
---
mm/memory-failure.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
mm/memory-failure.c renamed from mm/memory-failure.c~mm-hwpoison-dump-page-for-unhandlable-page +3 -3
@@ -1228,6 +1228,9 @@ try_again: ret = -EIO ; } out: +if (ret == -EIO ) +dump_page (p,"hwpoison: unhandlable page" ); +return ret; }
@@ -2205,9 +2208,6 @@ retry: try_again = false; goto retry; } - }else if (ret == -EIO ) { -pr_info ("%s: %#lx: unknown page type: %lx (%pGp)\n" , - __func__, pfn, page->flags, &page->flags); }return ret;
_
Andrew Morton
maintainerPATCH 165/212 mm: fix panic caused by __page_handle_poison()
In reply to Andrew MortonFrom: Michael Wang <[email protected]>
Subject: mm: fix panic caused by __page_handle_poison()
In commit 510d25c92ec4 ("mm/hwpoison: disable pcp for page_handle_poison()"), __page_handle_poison() was introduced, and if we mark:
RET_A = dissolve_free_huge_page();RET_B = take_page_off_buddy();
then __page_handle_poison was supposed to return TRUE When RET_A == 0 && RET_B == TRUE
But since it failed to take care the case when RET_A is -EBUSY or -ENOMEM, and just return the ret as a bool which actually become TRUE, it break the original logic.
The following result is a huge page in freelist but was referenced as poisoned, and lead into the final panic:
kernel BUG at mm/internal.h:95!
invalid opcode: 0000 [#1] SMP PTI
skip...
RIP: 0010:set_page_refcounted mm/internal.h:95 [inline] RIP: 0010:remove_hugetlb_page+0x23c/0x240 mm/hugetlb.c:1371 skip... Call Trace: remove_pool_huge_page+0xe4/0x110 mm/hugetlb.c:1892 return_unused_surplus_pages+0x8d/0x150 mm/hugetlb.c:2272 hugetlb_acct_memory.part.91+0x524/0x690 mm/hugetlb.c:4017
This patch replaces 'bool' with 'int' to handle RET_A correctly.
---
mm/memory-failure.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mm/memory-failure.c renamed from mm/memory-failure.c~mm-fix-panic-caused-by-__page_handle_poison +2 -2
@@ -68,7 +68,7 @@ atomic_long_t num_poisoned_pages __read_static bool __page_handle_poison (struct page *page) { -bool ret; +int ret;zone_pcp_disable (page_zone (page)); ret =dissolve_free_huge_page (page);
@@ -76,7 +76,7 @@ static bool __page_handle_poison(struct ret =take_page_off_buddy (page);zone_pcp_enable (page_zone (page)); -return ret; +return ret >0 ; }static bool page_handle_poison (struct page *page,bool hugepage_or_freepage,bool release)
_
Andrew Morton
maintainerPATCH 166/212 hugetlb: simplify prep_compound_gigantic_page ref count racing code
In reply to Andrew MortonFrom: Mike Kravetz <[email protected]>
Subject: hugetlb: simplify prep_compound_gigantic_page ref count racing code
Code in prep_compound_gigantic_page waits for a rcu grace period if it notices a temporarily inflated ref count on a tail page. This was due to the identified potential race with speculative page cache references which could only last for a rcu grace period. This is overly complicated as this situation is VERY unlikely to ever happen. Instead, just quickly return an error.
Also, only print a warning in prep_compound_gigantic_page instead of multiple callers.
---
mm/hugetlb.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-)
mm/hugetlb.c renamed from mm/hugetlb.c~hugetlb-simplify-prep_compound_gigantic_page-ref-count-racing-code +7 -10
@@ -1657,16 +1657,14 @@ static bool prep_compound_gigantic_page(* cache adding could take a ref on a 'to be' tail page. * We need to respect any increased ref count, and only set * the ref count to zero if count is currently 1. If count -* is not 1, we call synchronize_rcu in the hope that a rcu -* grace period will cause ref count to drop and then retry. -* If count is still inflated on retry we return an error and -* must discard the pages. +* is not 1, we return an error. An error return indicates +* the set of pages can not be converted to a gigantic page. +* The caller who allocated the pages should then discard the +* pages using the appropriate free interface. */ if (!page_ref_freeze (p,1 )) { -pr_info ("HugeTLB unexpected inflated ref count on freshly allocated page\n" ); -synchronize_rcu (); -if (!page_ref_freeze (p,1 )) - goto out_error; +pr_warn ("HugeTLB page can not be used due to unexpected inflated ref count\n" ); + goto out_error; }set_page_count (p,0 );set_compound_head (p, page);
@@ -1830,7 +1828,6 @@ retry: retry = true; goto retry; } -pr_warn ("HugeTLB page can not be used due to unexpected inflated ref count\n" );return NULL ; } }
@@ -2828,8 +2825,8 @@ static void __init gather_bootmem_preallprep_new_huge_page (h, page,page_to_nid (page));put_page (page);/* add to the hugepage allocator */ }else { +/* VERY unlikely inflated ref count on a tail page */ free_gigantic_page (page,huge_page_order (h)); -pr_warn ("HugeTLB page can not be used due to unexpected inflated ref count\n" ); }/*
_
Andrew Morton
maintainerPATCH 167/212 hugetlb: drop ref count earlier after page allocation
In reply to Andrew MortonFrom: Mike Kravetz <[email protected]>
Subject: hugetlb: drop ref count earlier after page allocation
When discussing the possibility of inflated page ref counts, Muuchun Song pointed out this potential issue [1]. It is true that any code could potentially take a reference on a compound page after allocation and before it is converted to and put into use as a hugetlb page. Specifically, this could be done by any users of get_page_unless_zero.
There are three areas of concern within hugetlb code.
1) When adding pages to the pool. In this case, new pages are allocated added to the pool by calling put_page to invoke the hugetlb destructor (free_huge_page). If there is an inflated ref count on the page, it will not be immediately added to the free list. It will only be added to the free list when the temporary ref count is dropped. This is deemed acceptable and will not be addressed.
2) A page is allocated for immediate use normally as a surplus page or migration target. In this case, the user of the page will also hold a reference. There is no issue as this is just like normal page ref counting.
3) A page is allocated and MUST be added to the free list to satisfy a reservation. One such example is gather_surplus_pages as pointed out by Muchun in [1]. More specifically, this case covers callers of enqueue_huge_page where the page reference count must be zero. This patch covers this third case.
Three routines call enqueue_huge_page when the page reference count could potentially be inflated. They are: gather_surplus_pages, alloc_and_dissolve_huge_page and add_hugetlb_page.
add_hugetlb_page is called on error paths when a huge page can not be freed due to the inability to allocate vmemmap pages. In this case, the temporairly inflated ref count is not an issue. When the ref is dropped the appropriate action will be taken. Instead of VM_BUG_ON if the ref count does not drop to zero, simply return.
In gather_surplus_pages and alloc_and_dissolve_huge_page the caller expects a page (or pages) to be put on the free lists. In this case we must ensure there are no temporary ref counts. We do this by calling put_page_testzero() earlier and not using pages without a zero ref count. The temporary page flag (HPageTemporary) is used in such cases so that as soon as the inflated ref count is dropped the page will be freed.
[1] https://lore.kernel.org/linux-mm/CAMZfGtVMn3daKrJwZMaVOGOaJU+B4dS--x_oPmGQMD=c=QNGEg@mail.gmail.com/
---
mm/hugetlb.c | 100 ++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 78 insertions(+), 22 deletions(-)
mm/hugetlb.c renamed from mm/hugetlb.c~hugetlb-drop-ref-count-earlier-after-page-allocation +78 -22
@@ -1072,6 +1072,8 @@ static void enqueue_huge_page(struct hstint nid =page_to_nid (page);lockdep_assert_held (&hugetlb_lock); +VM_BUG_ON_PAGE (page_count (page), page); +list_move (&page->lru, &h->hugepage_freelists[nid]); h->free_huge_pages++; h->free_huge_pages_node[nid]++;
@@ -1399,11 +1401,20 @@ static void add_hugetlb_page(struct hstaSetHPageVmemmapOptimized (page);/* -* This page is now managed by the hugetlb allocator and has -* no users -- drop the last reference. +* This page is about to be managed by the hugetlb allocator and +* should have no users. Drop our reference, and check for others +* just in case. */ zeroed =put_page_testzero (page); -VM_BUG_ON_PAGE (!zeroed, page); +if (!zeroed) +/* +* It is VERY unlikely soneone else has taken a ref on +* the page. In this case, we simply return as the +* hugetlb destructor (free_huge_page) will be called +* when this other ref is dropped. +*/ +return ; +arch_clear_hugepage_flags (page);enqueue_huge_page (h, page); }
@@ -2017,9 +2028,10 @@ int dissolve_free_huge_pages(unsigned lo* Allocates a fresh surplus page from the page allocator. */ static struct page *alloc_surplus_huge_page (struct hstate *h,gfp_t gfp_mask, -int nid,nodemask_t *nmask) +int nid,nodemask_t *nmask,bool zero_ref) {struct page *page =NULL ; +bool retry = false;if (hstate_is_gigantic (h))return NULL ;
@@ -2029,6 +2041,7 @@ static struct page *alloc_surplus_huge_p goto out_unlock;spin_unlock_irq (&hugetlb_lock); +retry: page =alloc_fresh_huge_page (h, gfp_mask, nid, nmask,NULL );if (!page)return NULL ;
@@ -2046,11 +2059,35 @@ static struct page *alloc_surplus_huge_pspin_unlock_irq (&hugetlb_lock);put_page (page);return NULL ; - }else { - h->surplus_huge_pages++; - h->surplus_huge_pages_node[page_to_nid (page)]++; } +if (zero_ref) { +/* +* Caller requires a page with zero ref count. +* We will drop ref count here. If someone else is holding +* a ref, the page will be freed when they drop it. Abuse +* temporary page flag to accomplish this. +*/ +SetHPageTemporary (page); +if (!put_page_testzero (page)) { +/* +* Unexpected inflated ref count on freshly allocated +* huge. Retry once. +*/ +pr_info ("HugeTLB unexpected inflated ref count on freshly allocated page\n" ); +spin_unlock_irq (&hugetlb_lock); +if (retry) +return NULL ; + + retry = true; + goto retry; + } +ClearHPageTemporary (page); + } + + h->surplus_huge_pages++; + h->surplus_huge_pages_node[page_to_nid (page)]++; + out_unlock:spin_unlock_irq (&hugetlb_lock);
@@ -2092,7 +2129,7 @@ struct page *alloc_buddy_huge_page_with_nodemask_t *nodemask; nid =huge_node (vma, addr, gfp_mask, &mpol, &nodemask); - page =alloc_surplus_huge_page (h, gfp_mask, nid, nodemask); + page =alloc_surplus_huge_page (h, gfp_mask, nid, nodemask, false);mpol_cond_put (mpol);return page;
@@ -2164,7 +2201,7 @@ retry:spin_unlock_irq (&hugetlb_lock);for (i =0 ; i < needed; i++) { page =alloc_surplus_huge_page (h,htlb_alloc_mask (h), -NUMA_NO_NODE ,NULL ); +NUMA_NO_NODE ,NULL , true);if (!page) { alloc_ok = false;break ;
@@ -2205,24 +2242,20 @@ retry:/* Free the needed pages to the hugetlb pool */ list_for_each_entry_safe (page, tmp, &surplus_list, lru) { -int zeroed; -if ((--needed) <0 )break ; -/* -* This page is now managed by the hugetlb allocator and has -* no users -- drop the buddy allocator's reference. -*/ - zeroed =put_page_testzero (page); -VM_BUG_ON_PAGE (!zeroed, page); +/* Add the page to the hugetlb allocator */ enqueue_huge_page (h, page); } free:spin_unlock_irq (&hugetlb_lock); -/* Free unnecessary surplus pages to the buddy allocator */ +/* +* Free unnecessary surplus pages to the buddy allocator. +* Pages have no ref count, call free_huge_page directly. +*/ list_for_each_entry_safe (page, tmp, &surplus_list, lru) -put_page (page); +free_huge_page (page);spin_lock_irq (&hugetlb_lock);return ret;
@@ -2531,6 +2564,7 @@ static int alloc_and_dissolve_huge_page( {gfp_t gfp_mask =htlb_alloc_mask (h) | __GFP_THISNODE;int nid =page_to_nid (old_page); +bool alloc_retry = false;struct page *new_page;int ret =0 ;
@@ -2541,9 +2575,30 @@ static int alloc_and_dissolve_huge_page(* the pool. This simplifies and let us do most of the processing * under the lock. */ +alloc_retry: new_page =alloc_buddy_huge_page (h, gfp_mask, nid,NULL ,NULL );if (!new_page)return -ENOMEM ; +/* +* If all goes well, this page will be directly added to the free +* list in the pool. For this the ref count needs to be zero. +* Attempt to drop now, and retry once if needed. It is VERY +* unlikely there is another ref on the page. +* +* If someone else has a reference to the page, it will be freed +* when they drop their ref. Abuse temporary page flag to accomplish +* this. Retry once if there is an inflated ref count. +*/ +SetHPageTemporary (new_page); +if (!put_page_testzero (new_page)) { +if (alloc_retry) +return -EBUSY ; + + alloc_retry = true; + goto alloc_retry; + } +ClearHPageTemporary (new_page); +__prep_new_huge_page (h, new_page); retry:
@@ -2583,11 +2638,10 @@ retry:remove_hugetlb_page (h, old_page, false);/* -* Reference count trick is needed because allocator gives us -* referenced page but the pool requires pages with 0 refcount. +* Ref count on new page is already zero as it was dropped +* earlier. It can be directly added to the pool free list. */ __prep_account_new_huge_page (h, nid); -page_ref_dec (new_page);enqueue_huge_page (h, new_page);/*
@@ -2601,6 +2655,8 @@ retry: free_new:spin_unlock_irq (&hugetlb_lock); +/* Page has a zero ref count, but needs a ref to be freed */ +set_page_refcounted (new_page);update_and_free_page (h, new_page, false);return ret;
_
Andrew Morton
maintainerPATCH 168/212 hugetlb: before freeing hugetlb page set dtor to appropriate value
In reply to Andrew MortonFrom: Mike Kravetz <[email protected]>
Subject: hugetlb: before freeing hugetlb page set dtor to appropriate value
When removing a hugetlb page from the pool the ref count is set to one (as the free page has no ref count) and compound page destructor is set to NULL_COMPOUND_DTOR. Since a subsequent call to free the hugetlb page will call __free_pages for non-gigantic pages and free_gigantic_page for gigantic pages the destructor is not used.
However, consider the following race with code taking a speculative reference on the page:
Thread 0 Thread 1
-------- --------remove_hugetlb_page
set_page_refcounted(page);
set_compound_page_dtor(page,
NULL_COMPOUND_DTOR);
get_page_unless_zero(page)
__update_and_free_page
__free_pages(page,
huge_page_order(h));
/* Note that __free_pages() will simply drop
the reference to the page. */
put_page(page)
__put_compound_page()
destroy_compound_page
NULL_COMPOUND_DTOR
BUG: kernel NULL pointer
dereference, address:
0000000000000000To address this race, set the dtor to the normal compound page dtor for non-gigantic pages. The dtor for gigantic pages does not matter as gigantic pages are changed from a compound page to 'just a group of pages' before freeing. Hence, the destructor is not used.
---
mm/hugetlb.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-)
mm/hugetlb.c renamed from mm/hugetlb.c~hugetlb-before-freeing-hugetlb-page-set-dtor-to-appropriate-value +21 -1
@@ -1370,8 +1370,28 @@ static void remove_hugetlb_page(struct h h->surplus_huge_pages_node[nid]--; } +/* +* Very subtle +* +* For non-gigantic pages set the destructor to the normal compound +* page dtor. This is needed in case someone takes an additional +* temporary ref to the page, and freeing is delayed until they drop +* their reference. +* +* For gigantic pages set the destructor to the null dtor. This +* destructor will never be called. Before freeing the gigantic +* page destroy_compound_gigantic_page will turn the compound page +* into a simple group of pages. After this the destructor does not +* apply. +* +* This handles the case where more than one ref is held when and +* after update_and_free_page is called. +*/ set_page_refcounted (page); -set_compound_page_dtor (page,NULL_COMPOUND_DTOR ); +if (hstate_is_gigantic (h)) +set_compound_page_dtor (page,NULL_COMPOUND_DTOR ); +else +set_compound_page_dtor (page,COMPOUND_PAGE_DTOR ); h->nr_huge_pages--; h->nr_huge_pages_node[nid]--;
_
Andrew Morton
maintainerPATCH 169/212 hugetlb: fix hugetlb cgroup refcounting during vma split
In reply to Andrew MortonFrom: Mike Kravetz <[email protected]>
Subject: hugetlb: fix hugetlb cgroup refcounting during vma split
Guillaume Morin reported hitting the following WARNING followed by GPF or NULL pointer deference either in cgroups_destroy or in the kill_css path.:
percpu ref (css_release) <= 0 (-1) after switching to atomic
WARNING: CPU: 23 PID: 130 at lib/percpu-refcount.c:196 percpu_ref_switch_to_atomic_rcu+0x127/0x130 CPU: 23 PID: 130 Comm: ksoftirqd/23 Kdump: loaded Tainted: G O 5.10.60 #1 RIP: 0010:percpu_ref_switch_to_atomic_rcu+0x127/0x130 Call Trace: rcu_core+0x30f/0x530 rcu_core_si+0xe/0x10 __do_softirq+0x103/0x2a2 ? sort_range+0x30/0x30 run_ksoftirqd+0x2b/0x40 smpboot_thread_fn+0x11a/0x170 kthread+0x10a/0x140 ? kthread_create_worker_on_cpu+0x70/0x70 ret_from_fork+0x22/0x30
Upon further examination, it was discovered that the css structure was associated with hugetlb reservations.
For private hugetlb mappings the vma points to a reserve map that contains a pointer to the css. At mmap time, reservations are set up and a reference to the css is taken. This reference is dropped in the vma close operation; hugetlb_vm_op_close. However, if a vma is split no additional reference to the css is taken yet hugetlb_vm_op_close will be called twice for the split vma resulting in an underflow.
Fix by taking another reference in hugetlb_vm_op_open. Note that the reference is only taken for the owner of the reserve map. In the more common fork case, the pointer to the reserve map is cleared for non-owning vmas.
private mappings")
---
include/linux/hugetlb_cgroup.h | 12 ++++++++++++ mm/hugetlb.c | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-)
include/linux/hugetlb_cgroup.h renamed from include/linux/hugetlb_cgroup.h~hugetlb-fix-hugetlb-cgroup-refcounting-during-vma-split +12 -0
@@ -121,6 +121,13 @@ static inline void hugetlb_cgroup_put_rscss_put (&h_cg->css); } +static inline void resv_map_dup_hugetlb_cgroup_uncharge_info ( +struct resv_map *resv_map) +{ +if (resv_map->css) +css_get (resv_map->css); +} +extern int hugetlb_cgroup_charge_cgroup (int idx,unsigned long nr_pages,struct hugetlb_cgroup **ptr); extern int hugetlb_cgroup_charge_cgroup_rsvd(int idx, unsigned long nr_pages,
@@ -199,6 +206,11 @@ static inline void hugetlb_cgroup_put_rs { } +static inline void resv_map_dup_hugetlb_cgroup_uncharge_info ( +struct resv_map *resv_map) +{ +} +static inline int hugetlb_cgroup_charge_cgroup (int idx,unsigned long nr_pages,struct hugetlb_cgroup **ptr) {
mm/hugetlb.c renamed from mm/hugetlb.c~hugetlb-fix-hugetlb-cgroup-refcounting-during-vma-split +3 -1
@@ -4106,8 +4106,10 @@ static void hugetlb_vm_op_open(struct vm* after this open call completes. It is therefore safe to take a * new reference here without additional locking. */ -if (resv &&is_vma_resv_set (vma,HPAGE_RESV_OWNER )) +if (resv &&is_vma_resv_set (vma,HPAGE_RESV_OWNER )) { +resv_map_dup_hugetlb_cgroup_uncharge_info (resv);kref_get (&resv->refs); + } }static void hugetlb_vm_op_close (struct vm_area_struct *vma)
_
Andrew Morton
maintainerPATCH 170/212 userfaultfd: change mmap_changing to atomic
In reply to Andrew MortonFrom: Nadav Amit <[email protected]>
Subject: userfaultfd: change mmap_changing to atomic
Patch series "userfaultfd: minor bug fixes".
Three unrelated bug fixes. The first two addresses possible issues (not too theoretical ones), but I did not encounter them in practice.
The third patch addresses a test bug that causes the test to fail on my system. It has been sent before as part of a bigger RFC.
This patch (of 3):
mmap_changing is currently a boolean variable, which is set and cleared without any lock that protects against concurrent modifications.
mmap_changing is supposed to mark whether userfaultfd page-faults handling should be retried since mappings are undergoing a change. However, concurrent calls, for instance to madvise(MADV_DONTNEED), might cause mmap_changing to be false, although the remove event was still not read (hence acknowledged) by the user.
Change mmap_changing to atomic_t and increase/decrease appropriately. Add a debug assertion to see whether mmap_changing is negative.
---
fs/userfaultfd.c | 25 +++++++++++++------------ include/linux/userfaultfd_k.h | 8 ++++---- mm/userfaultfd.c | 15 ++++++++------- 3 files changed, 25 insertions(+), 23 deletions(-)
fs/userfaultfd.c renamed from fs/userfaultfd.c~userfaultfd-change-mmap_changing-to-atomic +13 -12
@@ -74,7 +74,7 @@ struct userfaultfd_ctx {/* released */ bool released;/* memory mappings are changing because of non-cooperative event */ -bool mmap_changing; +atomic_t mmap_changing;/* mm with one ore more vmas attached to this userfaultfd_ctx */ struct mm_struct *mm; };
@@ -623,7 +623,8 @@ static void userfaultfd_event_wait_compl* already released. */ out: -WRITE_ONCE (ctx->mmap_changing, false); +atomic_dec (&ctx->mmap_changing); +VM_BUG_ON (atomic_read (&ctx->mmap_changing) <0 );userfaultfd_ctx_put (ctx); }
@@ -669,12 +670,12 @@ int dup_userfaultfd(struct vm_area_struc ctx->state =UFFD_STATE_RUNNING ; ctx->features = octx->features; ctx->released = false; - ctx->mmap_changing = false; +atomic_set (&ctx->mmap_changing,0 ); ctx->mm = vma->vm_mm;mmgrab (ctx->mm);userfaultfd_ctx_get (octx); -WRITE_ONCE (octx->mmap_changing, true); +atomic_inc (&octx->mmap_changing); fctx->orig = octx; fctx->new = ctx;list_add_tail (&fctx->list, fcs);
@@ -721,7 +722,7 @@ void mremap_userfaultfd_prep(struct vm_aif (ctx->features &UFFD_FEATURE_EVENT_REMAP ) { vm_ctx->ctx = ctx;userfaultfd_ctx_get (ctx); -WRITE_ONCE (ctx->mmap_changing, true); +atomic_inc (&ctx->mmap_changing); }else {/* Drop uffd context if remap feature not enabled */ vma->vm_userfaultfd_ctx =NULL_VM_UFFD_CTX ;
@@ -766,7 +767,7 @@ bool userfaultfd_remove(struct vm_area_sreturn true;userfaultfd_ctx_get (ctx); -WRITE_ONCE (ctx->mmap_changing, true); +atomic_inc (&ctx->mmap_changing);mmap_read_unlock (mm);msg_init (&ewq.msg);
@@ -810,7 +811,7 @@ int userfaultfd_unmap_prep(struct vm_arereturn -ENOMEM ;userfaultfd_ctx_get (ctx); -WRITE_ONCE (ctx->mmap_changing, true); +atomic_inc (&ctx->mmap_changing); unmap_ctx->ctx = ctx; unmap_ctx->start = start; unmap_ctx->end = end;
@@ -1700,7 +1701,7 @@ static int userfaultfd_copy(struct userf user_uffdio_copy = (struct uffdio_copy __user *) arg; ret = -EAGAIN ; -if (READ_ONCE (ctx->mmap_changing)) +if (atomic_read (&ctx->mmap_changing)) goto out; ret = -EFAULT ;
@@ -1757,7 +1758,7 @@ static int userfaultfd_zeropage(struct u user_uffdio_zeropage = (struct uffdio_zeropage __user *) arg; ret = -EAGAIN ; -if (READ_ONCE (ctx->mmap_changing)) +if (atomic_read (&ctx->mmap_changing)) goto out; ret = -EFAULT ;
@@ -1807,7 +1808,7 @@ static int userfaultfd_writeprotect(strustruct userfaultfd_wake_range range;bool mode_wp, mode_dontwake; -if (READ_ONCE (ctx->mmap_changing)) +if (atomic_read (&ctx->mmap_changing))return -EAGAIN ; user_uffdio_wp = (struct uffdio_writeprotect __user *) arg;
@@ -1855,7 +1856,7 @@ static int userfaultfd_continue(struct u user_uffdio_continue = (struct uffdio_continue __user *)arg; ret = -EAGAIN ; -if (READ_ONCE (ctx->mmap_changing)) +if (atomic_read (&ctx->mmap_changing)) goto out; ret = -EFAULT ;
@@ -2087,7 +2088,7 @@ SYSCALL_DEFINE1(userfaultfd, int, flags) ctx->features =0 ; ctx->state =UFFD_STATE_WAIT_API ; ctx->released = false; - ctx->mmap_changing = false; +atomic_set (&ctx->mmap_changing,0 ); ctx->mm = current->mm;/* prevent the mm struct to be freed */ mmgrab (ctx->mm);
include/linux/userfaultfd_k.h renamed from include/linux/userfaultfd_k.h~userfaultfd-change-mmap_changing-to-atomic +4 -4
@@ -60,16 +60,16 @@ extern int mfill_atomic_install_pte(struextern ssize_t mcopy_atomic (struct mm_struct *dst_mm,unsigned long dst_start,unsigned long src_start,unsigned long len, -bool *mmap_changing,__u64 mode); +atomic_t *mmap_changing,__u64 mode);extern ssize_t mfill_zeropage (struct mm_struct *dst_mm,unsigned long dst_start,unsigned long len, -bool *mmap_changing); +atomic_t *mmap_changing);extern ssize_t mcopy_continue (struct mm_struct *dst_mm,unsigned long dst_start, -unsigned long len,bool *mmap_changing); +unsigned long len,atomic_t *mmap_changing);extern int mwriteprotect_range (struct mm_struct *dst_mm,unsigned long start,unsigned long len, -bool enable_wp,bool *mmap_changing); +bool enable_wp,atomic_t *mmap_changing);/* mm helpers */ static inline bool is_mergeable_vm_userfaultfd_ctx(struct vm_area_struct *vma,
mm/userfaultfd.c renamed from mm/userfaultfd.c~userfaultfd-change-mmap_changing-to-atomic +8 -7
@@ -483,7 +483,7 @@ static __always_inline ssize_t __mcopy_aunsigned long src_start, unsigned long len, enum mcopy_atomic_mode mcopy_mode, - bool *mmap_changing, + atomic_t *mmap_changing, __u64 mode) { struct vm_area_struct *dst_vma;
@@ -517,7 +517,7 @@ retry:* request the user to retry later */ err = -EAGAIN ; -if (mmap_changing &&READ_ONCE (*mmap_changing)) +if (mmap_changing &&atomic_read (mmap_changing)) goto out_unlock;/*
@@ -650,28 +650,29 @@ out:ssize_t mcopy_atomic (struct mm_struct *dst_mm,unsigned long dst_start,unsigned long src_start,unsigned long len, -bool *mmap_changing,__u64 mode) +atomic_t *mmap_changing,__u64 mode) {return __mcopy_atomic (dst_mm, dst_start, src_start, len,MCOPY_ATOMIC_NORMAL , mmap_changing, mode); }ssize_t mfill_zeropage (struct mm_struct *dst_mm,unsigned long start, -unsigned long len,bool *mmap_changing) +unsigned long len,atomic_t *mmap_changing) {return __mcopy_atomic (dst_mm, start,0 , len,MCOPY_ATOMIC_ZEROPAGE , mmap_changing,0 ); }ssize_t mcopy_continue (struct mm_struct *dst_mm,unsigned long start, -unsigned long len,bool *mmap_changing) +unsigned long len,atomic_t *mmap_changing) {return __mcopy_atomic (dst_mm, start,0 , len,MCOPY_ATOMIC_CONTINUE , mmap_changing,0 ); }int mwriteprotect_range (struct mm_struct *dst_mm,unsigned long start, -unsigned long len,bool enable_wp,bool *mmap_changing) +unsigned long len,bool enable_wp, +atomic_t *mmap_changing) {struct vm_area_struct *dst_vma;pgprot_t newprot;
@@ -694,7 +695,7 @@ int mwriteprotect_range(struct mm_struct* request the user to retry later */ err = -EAGAIN ; -if (mmap_changing &&READ_ONCE (*mmap_changing)) +if (mmap_changing &&atomic_read (mmap_changing)) goto out_unlock; err = -ENOENT ;
_
Andrew Morton
maintainerPATCH 171/212 userfaultfd: prevent concurrent API initialization
In reply to Andrew MortonFrom: Nadav Amit <[email protected]>
Subject: userfaultfd: prevent concurrent API initialization
userfaultfd assumes that the enabled features are set once and never changed after UFFDIO_API ioctl succeeded.
However, currently, UFFDIO_API can be called concurrently from two different threads, succeed on both threads and leave userfaultfd's features in non-deterministic state. Theoretically, other uffd operations (ioctl's and page-faults) can be dispatched while adversely affected by such changes of features.
Moreover, the writes to ctx->state and ctx->features are not ordered, which can - theoretically, again - let userfaultfd_ioctl() think that userfaultfd API completed, while the features are still not initialized.
To avoid races, it is arguably best to get rid of ctx->state. Since there are only 2 states, record the API initialization in ctx->features as the uppermost bit and remove ctx->state.
---
fs/userfaultfd.c | 91 +++++++++++++++++++++------------------------ 1 file changed, 44 insertions(+), 47 deletions(-)
fs/userfaultfd.c renamed from fs/userfaultfd.c~userfaultfd-prevent-concurrent-api-initialization +44 -47
@@ -33,11 +33,6 @@ int sysctl_unprivileged_userfaultfd __restatic struct kmem_cache *userfaultfd_ctx_cachep__read_mostly ; -enum userfaultfd_state { -UFFD_STATE_WAIT_API , -UFFD_STATE_RUNNING , -}; -/* * Start with fault_pending_wqh and fault_wqh so they're more likely * to be in the same cacheline.
@@ -69,8 +64,6 @@ struct userfaultfd_ctx {unsigned int flags;/* features requested from the userspace */ unsigned int features; -/* state machine */ -enum userfaultfd_state state;/* released */ bool released;/* memory mappings are changing because of non-cooperative event */
@@ -104,6 +97,14 @@ struct userfaultfd_wake_range {unsigned long len; }; +/* internal indication that UFFD_API ioctl was successfully executed */ +#define UFFD_FEATURE_INITIALIZED (1u << 31) + +static bool userfaultfd_is_initialized (struct userfaultfd_ctx *ctx) +{ +return ctx->features &UFFD_FEATURE_INITIALIZED ; +} +static int userfaultfd_wake_function (wait_queue_entry_t *wq,unsigned mode,int wake_flags,void *key) {
@@ -667,7 +668,6 @@ int dup_userfaultfd(struct vm_area_strucrefcount_set (&ctx->refcount,1 ); ctx->flags = octx->flags; - ctx->state =UFFD_STATE_RUNNING ; ctx->features = octx->features; ctx->released = false;atomic_set (&ctx->mmap_changing,0 );
@@ -944,38 +944,33 @@ static __poll_t userfaultfd_poll(structpoll_wait (file, &ctx->fd_wqh, wait); -switch (ctx->state) { -case UFFD_STATE_WAIT_API : +if (!userfaultfd_is_initialized (ctx))return EPOLLERR ; -case UFFD_STATE_RUNNING : -/* -* poll() never guarantees that read won't block. -* userfaults can be waken before they're read(). -*/ -if (unlikely (!(file->f_flags &O_NONBLOCK ))) -return EPOLLERR ; -/* -* lockless access to see if there are pending faults -* __pollwait last action is the add_wait_queue but -* the spin_unlock would allow the waitqueue_active to -* pass above the actual list_add inside -* add_wait_queue critical section. So use a full -* memory barrier to serialize the list_add write of -* add_wait_queue() with the waitqueue_active read -* below. -*/ - ret =0 ; -smp_mb (); -if (waitqueue_active (&ctx->fault_pending_wqh)) - ret =EPOLLIN ; -else if (waitqueue_active (&ctx->event_wqh)) - ret =EPOLLIN ; -return ret; -default : -WARN_ON_ONCE (1 ); +/* +* poll() never guarantees that read won't block. +* userfaults can be waken before they're read(). +*/ +if (unlikely (!(file->f_flags &O_NONBLOCK )))return EPOLLERR ; - } +/* +* lockless access to see if there are pending faults +* __pollwait last action is the add_wait_queue but +* the spin_unlock would allow the waitqueue_active to +* pass above the actual list_add inside +* add_wait_queue critical section. So use a full +* memory barrier to serialize the list_add write of +* add_wait_queue() with the waitqueue_active read +* below. +*/ + ret =0 ; +smp_mb (); +if (waitqueue_active (&ctx->fault_pending_wqh)) + ret =EPOLLIN ; +else if (waitqueue_active (&ctx->event_wqh)) + ret =EPOLLIN ; + +return ret; }static const struct file_operations userfaultfd_fops;
@@ -1170,7 +1165,7 @@ static ssize_t userfaultfd_read(struct fint no_wait = file->f_flags &O_NONBLOCK ;struct inode *inode =file_inode (file); -if (ctx->state ==UFFD_STATE_WAIT_API ) +if (!userfaultfd_is_initialized (ctx))return -EINVAL ;for (;;) {
@@ -1909,9 +1904,10 @@ out:static inline unsigned int uffd_ctx_features (__u64 user_features) {/* -* For the current set of features the bits just coincide +* For the current set of features the bits just coincide. Set +* UFFD_FEATURE_INITIALIZED to mark the features as enabled. */ -return (unsigned int )user_features; +return (unsigned int )user_features |UFFD_FEATURE_INITIALIZED ; }/*
@@ -1924,12 +1920,10 @@ static int userfaultfd_api(struct userfa {struct uffdio_api uffdio_api;void __user *buf = (void __user *)arg; +unsigned int ctx_features;int ret;__u64 features; - ret = -EINVAL ; -if (ctx->state !=UFFD_STATE_WAIT_API ) - goto out; ret = -EFAULT ;if (copy_from_user (&uffdio_api, buf,sizeof (uffdio_api))) goto out;
@@ -1953,9 +1947,13 @@ static int userfaultfd_api(struct userfa ret = -EFAULT ;if (copy_to_user (buf, &uffdio_api,sizeof (uffdio_api))) goto out; - ctx->state =UFFD_STATE_RUNNING ; +/* only enable the requested features for this uffd context */ - ctx->features =uffd_ctx_features (features); + ctx_features =uffd_ctx_features (features); + ret = -EINVAL ; +if (cmpxchg (&ctx->features,0 , ctx_features) !=0 ) + goto err_out; + ret =0 ; out:return ret;
@@ -1972,7 +1970,7 @@ static long userfaultfd_ioctl(struct filint ret = -EINVAL ;struct userfaultfd_ctx *ctx = file->private_data; -if (cmd !=UFFDIO_API && ctx->state ==UFFD_STATE_WAIT_API ) +if (cmd !=UFFDIO_API && !userfaultfd_is_initialized (ctx))return -EINVAL ;switch (cmd) {
@@ -2086,7 +2084,6 @@ SYSCALL_DEFINE1(userfaultfd, int, flags)refcount_set (&ctx->refcount,1 ); ctx->flags = flags; ctx->features =0 ; - ctx->state =UFFD_STATE_WAIT_API ; ctx->released = false;atomic_set (&ctx->mmap_changing,0 ); ctx->mm = current->mm;
_
Andrew Morton
maintainerPATCH 172/212 selftests/vm/userfaultfd: wake after copy failure
In reply to Andrew MortonFrom: Nadav Amit <[email protected]>
Subject: selftests/vm/userfaultfd: wake after copy failure
When userfaultfd copy-ioctl fails since the PTE already exists, an -EEXIST error is returned and the faulting thread is not woken. The current userfaultfd test does not wake the faulting thread in such case. The assumption is presumably that another thread set the PTE through copy/wp ioctl and would wake the faulting thread or that alternatively the fault handler would realize there is no need to "must_wait" and continue. This is not necessarily true.
There is an assumption that the "must_wait" tests in handle_userfault() are sufficient to provide definitive answer whether the offending PTE is populated or not. However, userfaultfd_must_wait() test is lockless. Consequently, concurrent calls to ptep_modify_prot_start(), for instance, can clear the PTE and can cause userfaultfd_must_wait() to wrongly assume it is not populated and a wait is needed.
There are therefore 3 options:
(1) Change the tests to wake on copy failure.
(2) Wake faulting thread unconditionally on zero/copy ioctls before returning -EEXIST.
(3) Change the userfaultfd_must_wait() to hold locks.
This patch took the first approach, but the others are valid solutions with different tradeoffs.
---
tools/testing/selftests/vm/userfaultfd.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
tools/testing/selftests/vm/userfaultfd.c renamed from tools/testing/selftests/vm/userfaultfd.c~selftests-vm-userfaultfd-wake-after-copy-failure +13 -0
@@ -566,6 +566,18 @@ static void retry_copy_page(int ufd, str } } +static void wake_range (int ufd,unsigned long addr,unsigned long len) +{ +struct uffdio_range uffdio_wake; + + uffdio_wake.start = addr; + uffdio_wake.len = len; + +if (ioctl (ufd,UFFDIO_WAKE , &uffdio_wake)) +fprintf (stderr,"error waking %lu\n" , + addr),exit (1 ); +} +static int __copy_page (int ufd,unsigned long offset,bool retry) {struct uffdio_copy uffdio_copy;
@@ -585,6 +597,7 @@ static int __copy_page(int ufd, unsignedif (uffdio_copy.copy != -EEXIST )err ("UFFDIO_COPY error: %" PRId64, (int64_t )uffdio_copy.copy); +wake_range (ufd, uffdio_copy.dst, page_size); }else if (uffdio_copy.copy != page_size) {err ("UFFDIO_COPY error: %" PRId64, (int64_t )uffdio_copy.copy); }else {
_
Andrew Morton
maintainerPATCH 173/212 mm/numa: automatically generate node migration order
In reply to Andrew MortonFrom: Dave Hansen <[email protected]>
Subject: mm/numa: automatically generate node migration order
Patch series "Migrate Pages in lieu of discard", v11.
We're starting to see systems with more and more kinds of memory such as Intel's implementation of persistent memory.
Let's say you have a system with some DRAM and some persistent memory. Today, once DRAM fills up, reclaim will start and some of the DRAM contents will be thrown out. Allocations will, at some point, start falling over to the slower persistent memory.
That has two nasty properties. First, the newer allocations can end up in the slower persistent memory. Second, reclaimed data in DRAM are just discarded even if there are gobs of space in persistent memory that could be used.
This patchset implements a solution to these problems. At the end of the reclaim process in shrink_page_list() just before the last page refcount is dropped, the page is migrated to persistent memory instead of being dropped.
While I've talked about a DRAM/PMEM pairing, this approach would function in any environment where memory tiers exist.
This is not perfect. It "strands" pages in slower memory and never brings them back to fast DRAM. Huang Ying has follow-on work which repurposes NUMA balancing to promote hot pages back to DRAM.
This is also all based on an upstream mechanism that allows persistent memory to be onlined and used as if it were volatile:
http://lkml.kernel.org/r/[email protected]
With that, the DRAM and PMEM in each socket will be represented as 2 separate NUMA nodes, with the CPUs sit in the DRAM node. So the general inter-NUMA demotion mechanism introduced in the patchset can migrate the cold DRAM pages to the PMEM node.
We have tested the patchset with the postgresql and pgbench. On a 2-socket server machine with DRAM and PMEM, the kernel with the patchset can improve the score of pgbench up to 22.1% compared with that of the DRAM only + disk case. This comes from the reduced disk read throughput (which reduces up to 70.8%).
== Open Issues ==
* Memory policies and cpusets that, for instance, restrict allocations to DRAM can be demoted to PMEM whenever they opt in to this new mechanism. A cgroup-level API to opt-in or opt-out of these migrations will likely be required as a follow-on.
* Could be more aggressive about where anon LRU scanning occurs since it no longer necessarily involves I/O. get_scan_count() for instance says: "If we have no swap space, do not bother scanning anon pages"
This patch (of 9):
Prepare for the kernel to auto-migrate pages to other memory nodes with a node migration table. This allows creating single migration target for each NUMA node to enable the kernel to do NUMA page migrations instead of simply discarding colder pages. A node with no target is a "terminal node", so reclaim acts normally there. The migration target does not fundamentally _need_ to be a single node, but this implementation starts there to limit complexity.
When memory fills up on a node, memory contents can be automatically migrated to another node. The biggest problems are knowing when to migrate and to where the migration should be targeted.
The most straightforward way to generate the "to where" list would be to follow the page allocator fallback lists. Those lists already tell us if memory is full where to look next. It would also be logical to move memory in that order.
But, the allocator fallback lists have a fatal flaw: most nodes appear in all the lists. This would potentially lead to migration cycles (A->B, B->A, A->B, ...).
Instead of using the allocator fallback lists directly, keep a separate node migration ordering. But, reuse the same data used to generate page allocator fallback in the first place: find_next_best_node().
This means that the firmware data used to populate node distances essentially dictates the ordering for now. It should also be architecture-neutral since all NUMA architectures have a working find_next_best_node().
RCU is used to allow lock-less read of node_demotion[] and prevent demotion cycles been observed. If multiple reads of node_demotion[] are performed, a single rcu_read_lock() must be held over all reads to ensure no cycles are observed. Details are as follows.
=== What does RCU provide? ===
Imagine a simple loop which walks down the demotion path looking for the last node:
terminal_node = start_node;
while (node_demotion[terminal_node] != NUMA_NO_NODE) {
terminal_node = node_demotion[terminal_node];
}The initial values are:
node_demotion[0] = 1;
node_demotion[1] = NUMA_NO_NODE;and are updated to:
node_demotion[0] = NUMA_NO_NODE;
node_demotion[1] = 0;What guarantees that the cycle is not observed:
node_demotion[0] = 1;
node_demotion[1] = 0;and would loop forever?
With RCU, a rcu_read_lock/unlock() can be placed around the loop. Since the write side does a synchronize_rcu(), the loop that observed the old contents is known to be complete before the synchronize_rcu() has completed.
RCU, combined with disable_all_migrate_targets(), ensures that the old migration state is not visible by the time __set_migration_target_nodes() is called.
=== What does READ_ONCE() provide? ===
READ_ONCE() forbids the compiler from merging or reordering successive reads of node_demotion[]. This ensures that any updates are *eventually* observed.
Consider the above loop again. The compiler could theoretically read the entirety of node_demotion[] into local storage (registers) and never go back to memory, and *permanently* observe bad values for node_demotion[].
Note: RCU does not provide any universal compiler-ordering guarantees:
https://lore.kernel.org/lkml/[email protected]/
This code is unused for now. It will be called later in the series.
---
mm/internal.h | 5 + mm/migrate.c | 216 ++++++++++++++++++++++++++++++++++++++++++++++ mm/page_alloc.c | 2 3 files changed, 222 insertions(+), 1 deletion(-)
mm/internal.h renamed from mm/internal.h~mm-numa-automatically-generate-node-migration-order +5 -0
@@ -543,12 +543,17 @@ static inline void mminit_validate_memmo#ifdef CONFIG_NUMA extern int node_reclaim (struct pglist_data *,gfp_t ,unsigned int ); +extern int find_next_best_node (int node,nodemask_t *used_node_mask);#else static inline int node_reclaim (struct pglist_data *pgdat,gfp_t mask,unsigned int order) {return NODE_RECLAIM_NOSCAN ; } +static inline int find_next_best_node (int node,nodemask_t *used_node_mask) +{ +return NUMA_NO_NODE ; +}#endif extern int hwpoison_filter (struct page *p);
mm/migrate.c renamed from mm/migrate.c~mm-numa-automatically-generate-node-migration-order +216 -0
225 lines not on this page · raw message
mm/page_alloc.c renamed from mm/page_alloc.c~mm-numa-automatically-generate-node-migration-order +1 -1
@@ -6157,7 +6157,7 @@ static int node_load[MAX_NUMNODES];* * Return: node id of the found node or %NUMA_NO_NODE if no node is found. */ -static int find_next_best_node (int node,nodemask_t *used_node_mask) +int find_next_best_node (int node,nodemask_t *used_node_mask) {int n, val;int min_val =INT_MAX ;
_
Andrew Morton
maintainerPATCH 174/212 mm/migrate: update node demotion order on hotplug events
In reply to Andrew MortonFrom: Dave Hansen <[email protected]>
Subject: mm/migrate: update node demotion order on hotplug events
Reclaim-based migration is attempting to optimize data placement in memory based on the system topology. If the system changes, so must the migration ordering.
The implementation is conceptually simple and entirely unoptimized. On any memory or CPU hotplug events, assume that a node was added or removed and recalculate all migration targets. This ensures that the node_demotion[] array is always ready to be used in case the new reclaim mode is enabled.
This recalculation is far from optimal, most glaringly that it does not even attempt to figure out the hotplug event would have some *actual* effect on the demotion order. But, given the expected paucity of hotplug events, this should be fine.
---
mm/migrate.c | 90 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 89 insertions(+), 1 deletion(-)
mm/migrate.c renamed from mm/migrate.c~mm-migrate-update-node-demotion-order-on-hotplug-events +89 -1
@@ -49,6 +49,7 @@#include <linux/sched/mm.h> #include <linux/ptrace.h> #include <linux/oom.h> +#include <linux/memory.h> #include <asm/tlbflush.h>
@@ -3057,6 +3058,7 @@ void migrate_vma_finalize(struct migrateEXPORT_SYMBOL (migrate_vma_finalize);#endif /* CONFIG_DEVICE_PRIVATE */ +#if defined(CONFIG_MEMORY_HOTPLUG )/* Disable reclaim-based migration. */ static void __disable_all_migrate_targets (void ) {
@@ -3191,10 +3193,96 @@ again:/* * For callers that do not hold get_online_mems() already. */ -__maybe_unused // <- temporay to prevent warnings during bisects static void set_migration_target_nodes (void ) {get_online_mems ();__set_migration_target_nodes ();put_online_mems (); } + +/* +* React to hotplug events that might affect the migration targets +* like events that online or offline NUMA nodes. +* +* The ordering is also currently dependent on which nodes have +* CPUs. That means we need CPU on/offline notification too. +*/ +static int migration_online_cpu (unsigned int cpu) +{ +set_migration_target_nodes (); +return 0 ; +} + +static int migration_offline_cpu (unsigned int cpu) +{ +set_migration_target_nodes (); +return 0 ; +} + +/* +* This leaves migrate-on-reclaim transiently disabled between +* the MEM_GOING_OFFLINE and MEM_OFFLINE events. This runs +* whether reclaim-based migration is enabled or not, which +* ensures that the user can turn reclaim-based migration at +* any time without needing to recalculate migration targets. +* +* These callbacks already hold get_online_mems(). That is why +* __set_migration_target_nodes() can be used as opposed to +* set_migration_target_nodes(). +*/ +static int __meminit migrate_on_reclaim_callback (struct notifier_block *self, +unsigned long action,void *arg) +{ +switch (action) { +case MEM_GOING_OFFLINE : +/* +* Make sure there are not transient states where +* an offline node is a migration target. This +* will leave migration disabled until the offline +* completes and the MEM_OFFLINE case below runs. +*/ +disable_all_migrate_targets (); +break ; +case MEM_OFFLINE : +case MEM_ONLINE : +/* +* Recalculate the target nodes once the node +* reaches its final state (online or offline). +*/ +__set_migration_target_nodes (); +break ; +case MEM_CANCEL_OFFLINE : +/* +* MEM_GOING_OFFLINE disabled all the migration +* targets. Reenable them. +*/ +__set_migration_target_nodes (); +break ; +case MEM_GOING_ONLINE : +case MEM_CANCEL_ONLINE : +break ; + } + +return notifier_from_errno (0 ); +} + +static int __init migrate_on_reclaim_init (void ) +{ +int ret; + + ret =cpuhp_setup_state (CPUHP_AP_ONLINE_DYN ,"migrate on reclaim" , + migration_online_cpu, + migration_offline_cpu); +/* +* In the unlikely case that this fails, the automatic +* migration targets may become suboptimal for nodes +* where N_CPU changes. With such a small impact in a +* rare case, do not bother trying to do anything special. +*/ +WARN_ON (ret <0 ); + +hotplug_memory_notifier (migrate_on_reclaim_callback,100 ); +return 0 ; +} +late_initcall (migrate_on_reclaim_init); +#endif /* CONFIG_MEMORY_HOTPLUG */
_
kernel test robot
build bot[mm/migrate] 9eeb73028c: stress-ng.memhotplug.ops_per_sec -53.8% regression
FYI, we noticed a -53.8% regression of stress-ng.memhotplug.ops_per_sec due to commit:
Greeting,
FYI, we noticed a -53.8% regression of stress-ng.memhotplug.ops_per_sec due to commit:
commit: 9eeb73028cfb54eb06efe87c50cc014d3f1ff43e ("[patch 174/212] mm/migrate: update node demotion order on hotplug events")
url: https://github.com/0day-ci/linux/commits/Andrew-Morton/ia64-fix-typo-in-a-comment/20210903-065028
in testcase: stress-ng
on test machine: 96 threads 2 sockets Intel(R) Xeon(R) Gold 6252 CPU @ 2.10GHz with 192G memory with following parameters:
nr_threads: 10% disk: 1HDD testtime: 60s fs: ext4 class: os test: memhotplug cpufreq_governor: performance ucode: 0x5003006
If you fix the issue, kindly add following tag
Details are as below:
-------------------------------------------------------------------------------------------------->
To reproduce:
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp install job.yaml # job file is attached in this email
bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
bin/lkp run generated-yaml-file
=========================================================================================
class/compiler/cpufreq_governor/disk/fs/kconfig/nr_threads/rootfs/tbox_group/test/testcase/testtime/ucode:
os/gcc-9/performance/1HDD/ext4/x86_64-rhel-8.3/10%/debian-10.4-x86_64-20200603.cgz/lkp-csl-2sp5/memhotplug/stress-ng/60s/0x5003006
commit:
603f5ce25c ("mm/numa: automatically generate node migration order") 9eeb73028c ("mm/migrate: update node demotion order on hotplug events")
603f5ce25c452baf 9eeb73028cfb54eb06efe87c50c
---------------- ---------------------------
%stddev %change %stddev
\ | \
2638 -53.7% 1221 stress-ng.memhotplug.ops
43.89 -53.8% 20.28 stress-ng.memhotplug.ops_per_sec
40637 ± 2% -61.5% 15654 ± 4% stress-ng.time.involuntary_context_switches
91.17 -50.6% 45.00 stress-ng.time.percent_of_cpu_this_job_got
57.11 -50.3% 28.40 stress-ng.time.system_time
1075917 -36.4% 684753 cpuidle..usage
0.92 -0.5 0.43 ± 2% mpstat.cpu.all.sys%
7183 ± 3% +17.9% 8467 ± 8% numa-vmstat.node1.nr_kernel_stack
13042 ± 10% -34.2% 8577 ± 11% softirqs.CPU0.SCHED
17047 +5.8% 18036 proc-vmstat.nr_kernel_stack
1.218e+09 ± 2% -54.3% 5.564e+08 ± 3% proc-vmstat.pgfree
766.67 ± 5% +12.2% 860.50 ± 3% slabinfo.kmalloc-cg-32.active_objs
7462 ± 7% +13.3% 8458 ± 4% slabinfo.kmalloc-cg-8.active_objs
25595 ± 2% -40.0% 15361 vmstat.system.cs
7186 -22.4% 5577 vmstat.system.in
1422 ± 8% -34.0% 939.50 ± 43% numa-meminfo.node0.Active(anon)
7183 ± 3% +17.9% 8467 ± 8% numa-meminfo.node1.KernelStack
835236 ± 12% +23.0% 1027326 ± 11% numa-meminfo.node1.MemUsed
41.67 -48.8% 21.33 ± 3% turbostat.Avg_MHz
1.42 ± 2% -0.6 0.83 ± 2% turbostat.Busy%
2937 -12.3% 2574 turbostat.Bzy_MHz
51129 ± 15% -34.7% 33365 ± 10% turbostat.C1
0.10 ± 4% -0.0 0.07 ± 14% turbostat.C1%
161038 -53.8% 74435 turbostat.C1E
0.82 -0.4 0.39 turbostat.C1E%
837765 -33.9% 553856 turbostat.C6
15.14 -28.8% 10.78 ± 3% turbostat.CPU%c1
455267 ± 2% -23.9% 346620 ± 2% turbostat.IRQ
112.21 -7.7% 103.57 turbostat.PkgWatt
84.04 -4.3% 80.40 turbostat.RAMWatt
33885 ± 6% -24.2% 25673 interrupts.CAL:Function_call_interrupts
6313 ± 8% -75.6% 1541 ± 19% interrupts.CPU0.CAL:Function_call_interrupts
30982 ± 16% -55.4% 13832 ± 5% interrupts.CPU0.LOC:Local_timer_interrupts
270.83 ± 18% -79.5% 55.50 ± 21% interrupts.CPU0.RES:Rescheduling_interrupts
2401 ± 25% -76.3% 568.50 ± 21% interrupts.CPU1.CAL:Function_call_interrupts
21139 ± 23% -56.0% 9299 ± 27% interrupts.CPU1.LOC:Local_timer_interrupts
108.33 ± 18% -81.1% 20.50 ± 38% interrupts.CPU1.RES:Rescheduling_interrupts
863.50 ± 24% -59.7% 348.17 ± 34% interrupts.CPU2.CAL:Function_call_interrupts
98.00 ± 35% -70.9% 28.50 ± 86% interrupts.CPU2.RES:Rescheduling_interrupts
1504 ± 29% +168.4% 4037 ± 50% interrupts.CPU22.LOC:Local_timer_interrupts
12932 ± 21% -69.8% 3904 ± 41% interrupts.CPU5.LOC:Local_timer_interrupts
77.17 ± 65% -85.1% 11.50 ± 49% interrupts.CPU5.RES:Rescheduling_interrupts
6555 ± 33% -45.9% 3549 ± 58% interrupts.CPU54.LOC:Local_timer_interrupts
87.33 ± 31% -74.6% 22.17 ± 60% interrupts.CPU58.RES:Rescheduling_interrupts
76.17 ± 24% -80.7% 14.67 ± 39% interrupts.CPU59.RES:Rescheduling_interrupts
76.17 ± 24% -72.4% 21.00 ± 62% interrupts.CPU63.RES:Rescheduling_interrupts
6038 ± 34% -67.1% 1984 ± 40% interrupts.CPU66.LOC:Local_timer_interrupts
7942 ± 37% -55.8% 3513 ± 70% interrupts.CPU7.LOC:Local_timer_interrupts
428264 -22.2% 333008 interrupts.LOC:Local_timer_interrupts
3123 ± 8% -53.8% 1444 ± 10% interrupts.RES:Rescheduling_interrupts
stress-ng.memhotplug.ops 3000 +--------------------------------------------------------------------+
| .+ .+ +. +. |
2500 |.++.++.++.++ +.++.++.++.++.++.++ +.+ ++.++.+ ++.+ |
| |
| |
2000 |-+ |
| |
1500 |-+ |
| OO OO OO OO O OO OO OO OO OO OO OO O OO OO O OO O O O OO OO O|
1000 |-+ O O O O |
| |
| |
500 |-+ |
| O O |
0 +--------------------------------------------------------------------+ stress-ng.memhotplug.ops_per_sec
50 +----------------------------------------------------------------------+
45 |-+ .+ .+ +. +. |
|.++.++.++.++ +.+.++.++.++.++.++.+ +.+ ++.++.+ ++.+ |
40 |-+ |
35 |-+ |
| |
30 |-+ |
25 |-+ |
20 |-OO OO OO OO O O OO OO OO OO OO O OO O OO OO O O O O OO OO OO |
| O O OO O |
15 |-+ |
10 |-+ |
| |
5 |-+ O O | 0 +----------------------------------------------------------------------+
[*] bisect-good sample
[O] bisect-bad sample
Disclaimer:
Results have been estimated based on internal Intel analysis and are provided for informational purposes only. Any difference in system hardware or software design or configuration may affect actual performance.
---
0DAY/LKP+ Test Infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/[email protected] Intel Corporation
Thanks,
Oliver Sang
#
# Automatically generated file; DO NOT EDIT. # Linux/x86_64 5.14.0 Kernel Configuration
#CONFIG_CC_VERSION_TEXT="gcc-9 (Debian 9.3.0-22) 9.3.0" CONFIG_CC_IS_GCC=yCONFIG_GCC_VERSION=90300 CONFIG_CLANG_VERSION=0CONFIG_AS_IS_GNU=yCONFIG_AS_VERSION=23502CONFIG_LD_IS_BFD=yCONFIG_LD_VERSION=23502CONFIG_LLD_VERSION=0CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_TABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y
#
# General setup
#CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not setCONFIG_LOCALVERSION=""CONFIG_LOCALVERSION_AUTO=yCONFIG_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=yCONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# 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=y
# CONFIG_USELIB is not setCONFIG_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_GENERIC_IRQ_INJECTION=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=yCONFIG_TIME_KUNIT_TEST=m
#
# Timers subsystem
#CONFIG_TICK_ONESHOT=yCONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
# CONFIG_NO_HZ_IDLE is not setCONFIG_NO_HZ_FULL=yCONFIG_CONTEXT_TRACKING=y
# CONFIG_CONTEXT_TRACKING_FORCE is not setCONFIG_NO_HZ=yCONFIG_HIGH_RES_TIMERS=y
# 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=yCONFIG_BPF_JIT_ALWAYS_ON=yCONFIG_BPF_JIT_DEFAULT_ON=y
# CONFIG_BPF_UNPRIV_DEFAULT_OFF is not set
# CONFIG_BPF_PRELOAD is not set
# CONFIG_BPF_LSM is not set
# end of BPF subsystem
# CONFIG_PREEMPT_NONE is not setCONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not setCONFIG_PREEMPT_COUNT=y
# CONFIG_SCHED_CORE is not set
#
# CPU/Task time and stats accounting
#CONFIG_VIRT_CPU_ACCOUNTING=yCONFIG_VIRT_CPU_ACCOUNTING_GEN=yCONFIG_IRQ_TIME_ACCOUNTING=yCONFIG_HAVE_SCHED_AVG_IRQ=yCONFIG_BSD_PROCESS_ACCT=yCONFIG_BSD_PROCESS_ACCT_V3=yCONFIG_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=yCONFIG_RCU_NOCB_CPU=y
# end of RCU Subsystem
CONFIG_BUILD_BIN2C=yCONFIG_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=13CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
#
# Scheduler features
#
# CONFIG_UCLAMP_TASK is not set
# end of Scheduler features
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=yCONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=yCONFIG_CC_HAS_INT128=yCONFIG_ARCH_SUPPORTS_INT128=yCONFIG_NUMA_BALANCING=yCONFIG_NUMA_BALANCING_DEFAULT_ENABLED=yCONFIG_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=yCONFIG_RT_GROUP_SCHED=yCONFIG_CGROUP_PIDS=yCONFIG_CGROUP_RDMA=yCONFIG_CGROUP_FREEZER=yCONFIG_CGROUP_HUGETLB=yCONFIG_CPUSETS=yCONFIG_PROC_PID_CPUSET=yCONFIG_CGROUP_DEVICE=yCONFIG_CGROUP_CPUACCT=yCONFIG_CGROUP_PERF=yCONFIG_CGROUP_BPF=y
# CONFIG_CGROUP_MISC is not set
# CONFIG_CGROUP_DEBUG is not setCONFIG_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=yCONFIG_SCHED_AUTOGROUP=y
# CONFIG_SYSFS_DEPRECATED is not setCONFIG_RELAY=yCONFIG_BLK_DEV_INITRD=yCONFIG_INITRAMFS_SOURCE=""CONFIG_RD_GZIP=yCONFIG_RD_BZIP2=yCONFIG_RD_LZMA=yCONFIG_RD_XZ=yCONFIG_RD_LZO=yCONFIG_RD_LZ4=yCONFIG_RD_ZSTD=y
# CONFIG_BOOT_CONFIG is not setCONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not setCONFIG_LD_ORPHAN_WARN=yCONFIG_SYSCTL=yCONFIG_HAVE_UID16=yCONFIG_SYSCTL_EXCEPTION_TRACE=yCONFIG_HAVE_PCSPKR_PLATFORM=y
# CONFIG_EXPERT is not setCONFIG_UID16=yCONFIG_MULTIUSER=yCONFIG_SGETMASK_SYSCALL=yCONFIG_SYSFS_SYSCALL=yCONFIG_FHANDLE=yCONFIG_POSIX_TIMERS=yCONFIG_PRINTK=yCONFIG_PRINTK_NMI=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=yCONFIG_HAVE_ARCH_USERFAULTFD_WP=yCONFIG_HAVE_ARCH_USERFAULTFD_MINOR=yCONFIG_MEMBARRIER=yCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=yCONFIG_KALLSYMS_ABSOLUTE_PERCPU=yCONFIG_KALLSYMS_BASE_RELATIVE=yCONFIG_USERFAULTFD=yCONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=yCONFIG_KCMP=yCONFIG_RSEQ=y
# CONFIG_EMBEDDED is not setCONFIG_HAVE_PERF_EVENTS=y
#
# 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=yCONFIG_SLUB_DEBUG=y
# CONFIG_COMPAT_BRK is not set
# CONFIG_SLAB is not setCONFIG_SLUB=yCONFIG_SLAB_MERGE_DEFAULT=yCONFIG_SLAB_FREELIST_RANDOM=y
# CONFIG_SLAB_FREELIST_HARDENED is not setCONFIG_SHUFFLE_PAGE_ALLOCATOR=yCONFIG_SLUB_CPU_PARTIAL=yCONFIG_SYSTEM_DATA_VERIFICATION=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_ISA_DMA=yCONFIG_GENERIC_BUG=yCONFIG_GENERIC_BUG_RELATIVE_POINTERS=yCONFIG_ARCH_MAY_HAVE_PC_FDC=yCONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_ARCH_HAS_CPU_RELAX=yCONFIG_ARCH_HAS_FILTER_PGPROT=yCONFIG_HAVE_SETUP_PER_CPU_AREA=yCONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=yCONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=yCONFIG_ARCH_HIBERNATION_POSSIBLE=yCONFIG_ARCH_SUSPEND_POSSIBLE=yCONFIG_ARCH_WANT_GENERAL_HUGETLB=yCONFIG_AUDIT_ARCH=yCONFIG_HAVE_INTEL_TXT=yCONFIG_X86_64_SMP=yCONFIG_ARCH_SUPPORTS_UPROBES=yCONFIG_FIX_EARLYCON_MEM=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 setCONFIG_RETPOLINE=y
# CONFIG_X86_CPU_RESCTRL is not setCONFIG_X86_EXTENDED_PLATFORM=y
# CONFIG_X86_NUMACHIP is not set
# CONFIG_X86_VSMP is not setCONFIG_X86_UV=y
# CONFIG_X86_GOLDFISH is not set
# CONFIG_X86_INTEL_MID is not setCONFIG_X86_INTEL_LPSS=y
# CONFIG_X86_AMD_PLATFORM_DEVICE is not setCONFIG_IOSF_MBI=y
# CONFIG_IOSF_MBI_DEBUG is not setCONFIG_X86_SUPPORTS_MEMORY_FAILURE=y
# CONFIG_SCHED_OMIT_FRAME_POINTER is not setCONFIG_HYPERVISOR_GUEST=yCONFIG_PARAVIRT=y
# CONFIG_PARAVIRT_DEBUG is not setCONFIG_PARAVIRT_SPINLOCKS=yCONFIG_X86_HV_CALLBACK_VECTOR=yCONFIG_XEN=y
# CONFIG_XEN_PV is not setCONFIG_XEN_PVHVM=yCONFIG_XEN_PVHVM_SMP=yCONFIG_XEN_PVHVM_GUEST=yCONFIG_XEN_SAVE_RESTORE=y
# CONFIG_XEN_DEBUG_FS is not set
# CONFIG_XEN_PVH is not setCONFIG_KVM_GUEST=yCONFIG_ARCH_CPUIDLE_HALTPOLL=y
# CONFIG_PVH is not setCONFIG_PARAVIRT_TIME_ACCOUNTING=yCONFIG_PARAVIRT_CLOCK=y
# CONFIG_JAILHOUSE_GUEST is not set
# CONFIG_ACRN_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=yCONFIG_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 setCONFIG_MAXSMP=yCONFIG_NR_CPUS_RANGE_BEGIN=8192CONFIG_NR_CPUS_RANGE_END=8192CONFIG_NR_CPUS_DEFAULT=8192CONFIG_NR_CPUS=8192CONFIG_SCHED_SMT=yCONFIG_SCHED_MC=yCONFIG_SCHED_MC_PRIO=yCONFIG_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=mCONFIG_PERF_EVENTS_INTEL_RAPL=mCONFIG_PERF_EVENTS_INTEL_CSTATE=m
# CONFIG_PERF_EVENTS_AMD_POWER is not set
# end of Performance monitoring
CONFIG_X86_16BIT=yCONFIG_X86_ESPFIX64=y CONFIG_X86_VSYSCALL_EMULATION=y CONFIG_X86_IOPL_IOPERM=yCONFIG_I8K=mCONFIG_MICROCODE=yCONFIG_MICROCODE_INTEL=yCONFIG_MICROCODE_AMD=y CONFIG_MICROCODE_OLD_INTERFACE=y CONFIG_X86_MSR=yCONFIG_X86_CPUID=yCONFIG_X86_5LEVEL=yCONFIG_X86_DIRECT_GBPAGES=y
# CONFIG_X86_CPA_STATISTICS is not set
# CONFIG_AMD_MEM_ENCRYPT is not set CONFIG_NUMA=y
# CONFIG_AMD_NUMA is not set CONFIG_X86_64_ACPI_NUMA=yCONFIG_NUMA_EMU=yCONFIG_NODES_SHIFT=10 CONFIG_ARCH_SPARSEMEM_ENABLE=y CONFIG_ARCH_SPARSEMEM_DEFAULT=y CONFIG_ARCH_SELECT_MEMORY_MODEL=y
# CONFIG_ARCH_MEMORY_PROBE is not set CONFIG_ARCH_PROC_KCORE_TEXT=y CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 CONFIG_X86_PMEM_LEGACY_DEVICE=y CONFIG_X86_PMEM_LEGACY=m CONFIG_X86_CHECK_BIOS_CORRUPTION=y
# CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK is not set CONFIG_MTRR=yCONFIG_MTRR_SANITIZER=y CONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=1 CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1 CONFIG_X86_PAT=yCONFIG_ARCH_USES_PG_UNCACHED=y CONFIG_ARCH_RANDOM=yCONFIG_X86_SMAP=yCONFIG_X86_UMIP=y CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS=y CONFIG_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=yCONFIG_EFI_STUB=yCONFIG_EFI_MIXED=y
# 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=yCONFIG_KEXEC_FILE=y CONFIG_ARCH_HAS_KEXEC_PURGATORY=y
# CONFIG_KEXEC_SIG is not set CONFIG_CRASH_DUMP=yCONFIG_KEXEC_JUMP=y CONFIG_PHYSICAL_START=0x1000000 CONFIG_RELOCATABLE=yCONFIG_RANDOMIZE_BASE=yCONFIG_X86_NEED_RELOCS=y CONFIG_PHYSICAL_ALIGN=0x200000 CONFIG_DYNAMIC_MEMORY_LAYOUT=y CONFIG_RANDOMIZE_MEMORY=y CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0xa CONFIG_HOTPLUG_CPU=y CONFIG_BOOTPARAM_HOTPLUG_CPU0=y
# CONFIG_DEBUG_HOTPLUG_CPU0 is not set
# CONFIG_COMPAT_VDSO is not set CONFIG_LEGACY_VSYSCALL_EMULATE=y
# CONFIG_LEGACY_VSYSCALL_XONLY is not set
# CONFIG_LEGACY_VSYSCALL_NONE is not set
# CONFIG_CMDLINE_BOOL is not set CONFIG_MODIFY_LDT_SYSCALL=y CONFIG_HAVE_LIVEPATCH=yCONFIG_LIVEPATCH=y
# end of Processor type and features
CONFIG_ARCH_HAS_ADD_PAGES=yCONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=yCONFIG_USE_PERCPU_NUMA_NODE_ID=y
#
# Power management and ACPI options
#CONFIG_ARCH_HIBERNATION_HEADER=yCONFIG_SUSPEND=yCONFIG_SUSPEND_FREEZER=yCONFIG_HIBERNATE_CALLBACKS=yCONFIG_HIBERNATION=yCONFIG_HIBERNATION_SNAPSHOT_DEV=yCONFIG_PM_STD_PARTITION=""CONFIG_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_PM_TRACE_RTC is not setCONFIG_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=yCONFIG_ACPI_EC_DEBUGFS=mCONFIG_ACPI_AC=yCONFIG_ACPI_BATTERY=yCONFIG_ACPI_BUTTON=yCONFIG_ACPI_VIDEO=mCONFIG_ACPI_FAN=yCONFIG_ACPI_TAD=mCONFIG_ACPI_DOCK=yCONFIG_ACPI_CPU_FREQ_PSS=yCONFIG_ACPI_PROCESSOR_CSTATE=yCONFIG_ACPI_PROCESSOR_IDLE=yCONFIG_ACPI_CPPC_LIB=yCONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_IPMI=mCONFIG_ACPI_HOTPLUG_CPU=yCONFIG_ACPI_PROCESSOR_AGGREGATOR=mCONFIG_ACPI_THERMAL=yCONFIG_ACPI_PLATFORM_PROFILE=mCONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=yCONFIG_ACPI_TABLE_UPGRADE=y
# CONFIG_ACPI_DEBUG is not setCONFIG_ACPI_PCI_SLOT=yCONFIG_ACPI_CONTAINER=yCONFIG_ACPI_HOTPLUG_MEMORY=yCONFIG_ACPI_HOTPLUG_IOAPIC=yCONFIG_ACPI_SBS=mCONFIG_ACPI_HED=y
# CONFIG_ACPI_CUSTOM_METHOD is not setCONFIG_ACPI_BGRT=yCONFIG_ACPI_NFIT=m
# 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=yCONFIG_ACPI_APEI_GHES=yCONFIG_ACPI_APEI_PCIEAER=yCONFIG_ACPI_APEI_MEMORY_FAILURE=yCONFIG_ACPI_APEI_EINJ=m
# CONFIG_ACPI_APEI_ERST_DEBUG is not set
# CONFIG_ACPI_DPTF is not setCONFIG_ACPI_WATCHDOG=yCONFIG_ACPI_EXTLOG=mCONFIG_ACPI_ADXL=y
# CONFIG_ACPI_CONFIGFS is not setCONFIG_PMIC_OPREGION=yCONFIG_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_SCHEDUTIL is not set CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
#
# CPU frequency scaling drivers
#CONFIG_X86_INTEL_PSTATE=y
# CONFIG_X86_PCC_CPUFREQ is not setCONFIG_X86_ACPI_CPUFREQ=mCONFIG_X86_ACPI_CPUFREQ_CPB=yCONFIG_X86_POWERNOW_K8=m
# CONFIG_X86_AMD_FREQ_SENSITIVITY is not set
# CONFIG_X86_SPEEDSTEP_CENTRINO is not setCONFIG_X86_P4_CLOCKMOD=m
#
# shared options # CONFIG_X86_SPEEDSTEP_LIB=m # 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
# CONFIG_CPU_IDLE_GOV_HALTPOLL is not setCONFIG_HALTPOLL_CPUIDLE=y
# 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_PCI_XEN=yCONFIG_MMCONF_FAM10H=yCONFIG_ISA_DMA_API=yCONFIG_AMD_NB=y
# CONFIG_X86_SYSFB is not set
# end of Bus options (PCI etc.)
#
# Binary Emulations
#CONFIG_IA32_EMULATION=y
# CONFIG_X86_X32 is not setCONFIG_COMPAT_32=yCONFIG_COMPAT=yCONFIG_COMPAT_FOR_U64_ALIGNMENT=yCONFIG_SYSVIPC_COMPAT=y
# end of Binary Emulations
#
# Firmware Drivers
#CONFIG_EDD=m
# CONFIG_EDD_OFF is not setCONFIG_FIRMWARE_MEMMAP=yCONFIG_DMIID=yCONFIG_DMI_SYSFS=yCONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# CONFIG_ISCSI_IBFT is not setCONFIG_FW_CFG_SYSFS=y
# CONFIG_FW_CFG_SYSFS_CMDLINE is not set
# CONFIG_GOOGLE_FIRMWARE is not set
#
# EFI (Extensible Firmware Interface) Support
#CONFIG_EFI_VARS=yCONFIG_EFI_ESRT=yCONFIG_EFI_VARS_PSTORE=yCONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE=yCONFIG_EFI_RUNTIME_MAP=y
# CONFIG_EFI_FAKE_MEMMAP is not setCONFIG_EFI_RUNTIME_WRAPPERS=yCONFIG_EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER=y
# CONFIG_EFI_BOOTLOADER_CONTROL is not set
# CONFIG_EFI_CAPSULE_LOADER is not set
# CONFIG_EFI_TEST is not setCONFIG_APPLE_PROPERTIES=y
# CONFIG_RESET_ATTACK_MITIGATION 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_DEV_PATH_PARSER=yCONFIG_EFI_EARLYCON=yCONFIG_EFI_CUSTOM_SSDT_OVERLAYS=y
#
# Tegra firmware driver
#
# end of Tegra firmware driver # end of Firmware Drivers
CONFIG_HAVE_KVM=yCONFIG_HAVE_KVM_IRQCHIP=yCONFIG_HAVE_KVM_IRQFD=yCONFIG_HAVE_KVM_IRQ_ROUTING=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=mCONFIG_KVM_INTEL=m
# CONFIG_KVM_AMD is not set
# CONFIG_KVM_XEN is not setCONFIG_KVM_MMU_AUDIT=yCONFIG_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_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_HAVE_FUNCTION_ERROR_INJECTION=y CONFIG_HAVE_NMI=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_MMU_GATHER_TABLE_FREE=y CONFIG_MMU_GATHER_RCU_TABLE_FREE=y CONFIG_MMU_LAZY_TLB_REFCOUNT=y CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y CONFIG_HAVE_ALIGNED_STRUCT_PAGE=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_LTO_NONE=y 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_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_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_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_HAVE_STATIC_CALL=y CONFIG_HAVE_STATIC_CALL_INLINE=y CONFIG_HAVE_PREEMPT_DYNAMIC=y CONFIG_ARCH_WANT_LD_ORPHAN_WARN=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_HAS_ELFCORE_COMPAT=y
#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not setCONFIG_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_MODULE_SIG_FORMAT=yCONFIG_MODULES=yCONFIG_MODULE_FORCE_LOAD=yCONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set CONFIG_MODULE_SIG=y
# CONFIG_MODULE_SIG_FORCE is not set CONFIG_MODULE_SIG_ALL=y
# CONFIG_MODULE_SIG_SHA1 is not set
# CONFIG_MODULE_SIG_SHA224 is not set CONFIG_MODULE_SIG_SHA256=y
# CONFIG_MODULE_SIG_SHA384 is not set
# CONFIG_MODULE_SIG_SHA512 is not set CONFIG_MODULE_SIG_HASH="sha256" 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_MODULES_TREE_LOOKUP=yCONFIG_BLOCK=yCONFIG_BLK_SCSI_REQUEST=y CONFIG_BLK_CGROUP_RWSTAT=yCONFIG_BLK_DEV_BSG=yCONFIG_BLK_DEV_BSGLIB=y CONFIG_BLK_DEV_INTEGRITY=y CONFIG_BLK_DEV_INTEGRITY_T10=m CONFIG_BLK_DEV_ZONED=y CONFIG_BLK_DEV_THROTTLING=y
# CONFIG_BLK_DEV_THROTTLING_LOW is not set
# CONFIG_BLK_CMDLINE_PARSER is not set CONFIG_BLK_WBT=yCONFIG_BLK_WBT_MQ=y
# CONFIG_BLK_CGROUP_IOLATENCY is not set
# CONFIG_BLK_CGROUP_FC_APPID is not set
# CONFIG_BLK_CGROUP_IOCOST is not set
# CONFIG_BLK_CGROUP_IOPRIO is not set CONFIG_BLK_DEBUG_FS=yCONFIG_BLK_DEBUG_FS_ZONED=y
# CONFIG_BLK_SED_OPAL is not set
# CONFIG_BLK_INLINE_ENCRYPTION is not set
#
# Partition Types
#CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_AIX_PARTITION is not setCONFIG_OSF_PARTITION=yCONFIG_AMIGA_PARTITION=y
# CONFIG_ATARI_PARTITION is not setCONFIG_MAC_PARTITION=yCONFIG_MSDOS_PARTITION=yCONFIG_BSD_DISKLABEL=yCONFIG_MINIX_SUBPARTITION=yCONFIG_SOLARIS_X86_PARTITION=yCONFIG_UNIXWARE_DISKLABEL=y
# CONFIG_LDM_PARTITION is not setCONFIG_SGI_PARTITION=y
# CONFIG_ULTRIX_PARTITION is not setCONFIG_SUN_PARTITION=yCONFIG_KARMA_PARTITION=yCONFIG_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=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_PADATA=yCONFIG_ASN1=yCONFIG_INLINE_SPIN_UNLOCK_IRQ=yCONFIG_INLINE_READ_UNLOCK=yCONFIG_INLINE_READ_UNLOCK_IRQ=yCONFIG_INLINE_WRITE_UNLOCK=yCONFIG_INLINE_WRITE_UNLOCK_IRQ=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=mCONFIG_COREDUMP=y
# end of Executable file formats
#
# Memory Management options
#CONFIG_SELECT_MEMORY_MODEL=y CONFIG_SPARSEMEM_MANUAL=yCONFIG_SPARSEMEM=y CONFIG_SPARSEMEM_EXTREME=y CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y CONFIG_SPARSEMEM_VMEMMAP=y CONFIG_HAVE_FAST_GUP=y CONFIG_NUMA_KEEP_MEMINFO=y CONFIG_MEMORY_ISOLATION=y CONFIG_HAVE_BOOTMEM_INFO_NODE=y CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y CONFIG_MEMORY_HOTPLUG=y CONFIG_MEMORY_HOTPLUG_SPARSE=y
# CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE is not set CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y CONFIG_MEMORY_HOTREMOVE=y CONFIG_MHP_MEMMAP_ON_MEMORY=y 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_CONTIG_ALLOC=y CONFIG_PHYS_ADDR_T_64BIT=y CONFIG_VIRT_TO_BUS=yCONFIG_MMU_NOTIFIER=yCONFIG_KSM=y CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y CONFIG_MEMORY_FAILURE=y CONFIG_HWPOISON_INJECT=m CONFIG_TRANSPARENT_HUGEPAGE=y CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set CONFIG_ARCH_WANTS_THP_SWAP=y CONFIG_THP_SWAP=yCONFIG_CLEANCACHE=yCONFIG_FRONTSWAP=yCONFIG_CMA=y
# CONFIG_CMA_DEBUG is not set
# CONFIG_CMA_DEBUGFS is not set
# CONFIG_CMA_SYSFS is not set CONFIG_CMA_AREAS=19
# CONFIG_MEM_SOFT_DIRTY is not set CONFIG_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=yCONFIG_ZSMALLOC_STAT=y CONFIG_GENERIC_EARLY_IOREMAP=y CONFIG_DEFERRED_STRUCT_PAGE_INIT=y CONFIG_IDLE_PAGE_TRACKING=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_ARCH_HAS_PTE_DEVMAP=y CONFIG_ZONE_DMA=yCONFIG_ZONE_DMA32=yCONFIG_ZONE_DEVICE=y CONFIG_DEV_PAGEMAP_OPS=yCONFIG_HMM_MIRROR=yCONFIG_DEVICE_PRIVATE=yCONFIG_VMAP_PFN=y CONFIG_ARCH_USES_HIGH_VMA_FLAGS=y CONFIG_ARCH_HAS_PKEYS=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
# end of Memory Management options
CONFIG_NET=yCONFIG_COMPAT_NETLINK_MESSAGES=yCONFIG_NET_INGRESS=yCONFIG_NET_EGRESS=yCONFIG_SKB_EXTENSIONS=y
#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_DIAG=mCONFIG_UNIX=yCONFIG_UNIX_SCM=yCONFIG_UNIX_DIAG=mCONFIG_TLS=mCONFIG_TLS_DEVICE=y
# CONFIG_TLS_TOE is not setCONFIG_XFRM=yCONFIG_XFRM_OFFLOAD=yCONFIG_XFRM_ALGO=yCONFIG_XFRM_USER=y
# CONFIG_XFRM_USER_COMPAT is not set
# CONFIG_XFRM_INTERFACE is not setCONFIG_XFRM_SUB_POLICY=yCONFIG_XFRM_MIGRATE=yCONFIG_XFRM_STATISTICS=yCONFIG_XFRM_AH=mCONFIG_XFRM_ESP=mCONFIG_XFRM_IPCOMP=mCONFIG_NET_KEY=mCONFIG_NET_KEY_MIGRATE=y
# CONFIG_SMC is not setCONFIG_XDP_SOCKETS=y
# CONFIG_XDP_SOCKETS_DIAG is not setCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_IP_FIB_TRIE_STATS=yCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_MULTIPATH=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_ROUTE_CLASSID=yCONFIG_IP_PNP=yCONFIG_IP_PNP_DHCP=y
# CONFIG_IP_PNP_BOOTP is not set
# CONFIG_IP_PNP_RARP is not setCONFIG_NET_IPIP=mCONFIG_NET_IPGRE_DEMUX=mCONFIG_NET_IP_TUNNEL=mCONFIG_NET_IPGRE=mCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE_COMMON=yCONFIG_IP_MROUTE=yCONFIG_IP_MROUTE_MULTIPLE_TABLES=yCONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=yCONFIG_SYN_COOKIES=yCONFIG_NET_IPVTI=mCONFIG_NET_UDP_TUNNEL=m
# CONFIG_NET_FOU is not set
# CONFIG_NET_FOU_IP_TUNNELS is not setCONFIG_INET_AH=mCONFIG_INET_ESP=mCONFIG_INET_ESP_OFFLOAD=m
# CONFIG_INET_ESPINTCP is not setCONFIG_INET_IPCOMP=mCONFIG_INET_XFRM_TUNNEL=mCONFIG_INET_TUNNEL=mCONFIG_INET_DIAG=mCONFIG_INET_TCP_DIAG=mCONFIG_INET_UDP_DIAG=mCONFIG_INET_RAW_DIAG=m
# CONFIG_INET_DIAG_DESTROY is not setCONFIG_TCP_CONG_ADVANCED=yCONFIG_TCP_CONG_BIC=mCONFIG_TCP_CONG_CUBIC=yCONFIG_TCP_CONG_WESTWOOD=mCONFIG_TCP_CONG_HTCP=mCONFIG_TCP_CONG_HSTCP=mCONFIG_TCP_CONG_HYBLA=mCONFIG_TCP_CONG_VEGAS=mCONFIG_TCP_CONG_NV=mCONFIG_TCP_CONG_SCALABLE=mCONFIG_TCP_CONG_LP=mCONFIG_TCP_CONG_VENO=mCONFIG_TCP_CONG_YEAH=mCONFIG_TCP_CONG_ILLINOIS=mCONFIG_TCP_CONG_DCTCP=m
# CONFIG_TCP_CONG_CDG is not setCONFIG_TCP_CONG_BBR=mCONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_RENO is not setCONFIG_DEFAULT_TCP_CONG="cubic"CONFIG_TCP_MD5SIG=yCONFIG_IPV6=yCONFIG_IPV6_ROUTER_PREF=yCONFIG_IPV6_ROUTE_INFO=yCONFIG_IPV6_OPTIMISTIC_DAD=yCONFIG_INET6_AH=mCONFIG_INET6_ESP=mCONFIG_INET6_ESP_OFFLOAD=m
# CONFIG_INET6_ESPINTCP is not setCONFIG_INET6_IPCOMP=mCONFIG_IPV6_MIP6=m
# CONFIG_IPV6_ILA is not setCONFIG_INET6_XFRM_TUNNEL=mCONFIG_INET6_TUNNEL=mCONFIG_IPV6_VTI=mCONFIG_IPV6_SIT=mCONFIG_IPV6_SIT_6RD=yCONFIG_IPV6_NDISC_NODETYPE=yCONFIG_IPV6_TUNNEL=mCONFIG_IPV6_GRE=mCONFIG_IPV6_MULTIPLE_TABLES=y
# CONFIG_IPV6_SUBTREES is not setCONFIG_IPV6_MROUTE=yCONFIG_IPV6_MROUTE_MULTIPLE_TABLES=yCONFIG_IPV6_PIMSM_V2=y
# CONFIG_IPV6_SEG6_LWTUNNEL is not set
# CONFIG_IPV6_SEG6_HMAC is not set
# CONFIG_IPV6_RPL_LWTUNNEL is not setCONFIG_NETLABEL=yCONFIG_MPTCP=yCONFIG_INET_MPTCP_DIAG=mCONFIG_MPTCP_IPV6=yCONFIG_MPTCP_KUNIT_TEST=mCONFIG_NETWORK_SECMARK=yCONFIG_NET_PTP_CLASSIFY=yCONFIG_NETWORK_PHY_TIMESTAMPING=yCONFIG_NETFILTER=yCONFIG_NETFILTER_ADVANCED=yCONFIG_BRIDGE_NETFILTER=m
#
# Core Netfilter Configuration
#CONFIG_NETFILTER_INGRESS=yCONFIG_NETFILTER_NETLINK=mCONFIG_NETFILTER_FAMILY_BRIDGE=yCONFIG_NETFILTER_FAMILY_ARP=y
# CONFIG_NETFILTER_NETLINK_HOOK is not set
# CONFIG_NETFILTER_NETLINK_ACCT is not setCONFIG_NETFILTER_NETLINK_QUEUE=mCONFIG_NETFILTER_NETLINK_LOG=mCONFIG_NETFILTER_NETLINK_OSF=mCONFIG_NF_CONNTRACK=mCONFIG_NF_LOG_SYSLOG=mCONFIG_NETFILTER_CONNCOUNT=mCONFIG_NF_CONNTRACK_MARK=yCONFIG_NF_CONNTRACK_SECMARK=yCONFIG_NF_CONNTRACK_ZONES=yCONFIG_NF_CONNTRACK_PROCFS=yCONFIG_NF_CONNTRACK_EVENTS=yCONFIG_NF_CONNTRACK_TIMEOUT=yCONFIG_NF_CONNTRACK_TIMESTAMP=yCONFIG_NF_CONNTRACK_LABELS=yCONFIG_NF_CT_PROTO_DCCP=yCONFIG_NF_CT_PROTO_GRE=yCONFIG_NF_CT_PROTO_SCTP=yCONFIG_NF_CT_PROTO_UDPLITE=yCONFIG_NF_CONNTRACK_AMANDA=mCONFIG_NF_CONNTRACK_FTP=mCONFIG_NF_CONNTRACK_H323=mCONFIG_NF_CONNTRACK_IRC=mCONFIG_NF_CONNTRACK_BROADCAST=mCONFIG_NF_CONNTRACK_NETBIOS_NS=mCONFIG_NF_CONNTRACK_SNMP=mCONFIG_NF_CONNTRACK_PPTP=mCONFIG_NF_CONNTRACK_SANE=mCONFIG_NF_CONNTRACK_SIP=mCONFIG_NF_CONNTRACK_TFTP=mCONFIG_NF_CT_NETLINK=mCONFIG_NF_CT_NETLINK_TIMEOUT=mCONFIG_NF_CT_NETLINK_HELPER=mCONFIG_NETFILTER_NETLINK_GLUE_CT=yCONFIG_NF_NAT=mCONFIG_NF_NAT_AMANDA=mCONFIG_NF_NAT_FTP=mCONFIG_NF_NAT_IRC=mCONFIG_NF_NAT_SIP=mCONFIG_NF_NAT_TFTP=mCONFIG_NF_NAT_REDIRECT=yCONFIG_NF_NAT_MASQUERADE=yCONFIG_NETFILTER_SYNPROXY=mCONFIG_NF_TABLES=mCONFIG_NF_TABLES_INET=yCONFIG_NF_TABLES_NETDEV=yCONFIG_NFT_NUMGEN=mCONFIG_NFT_CT=mCONFIG_NFT_COUNTER=mCONFIG_NFT_CONNLIMIT=mCONFIG_NFT_LOG=mCONFIG_NFT_LIMIT=mCONFIG_NFT_MASQ=mCONFIG_NFT_REDIR=mCONFIG_NFT_NAT=m
# CONFIG_NFT_TUNNEL is not setCONFIG_NFT_OBJREF=mCONFIG_NFT_QUEUE=mCONFIG_NFT_QUOTA=mCONFIG_NFT_REJECT=mCONFIG_NFT_REJECT_INET=mCONFIG_NFT_COMPAT=mCONFIG_NFT_HASH=mCONFIG_NFT_FIB=mCONFIG_NFT_FIB_INET=m
# CONFIG_NFT_XFRM is not setCONFIG_NFT_SOCKET=m
# CONFIG_NFT_OSF is not set
# CONFIG_NFT_TPROXY is not set
# CONFIG_NFT_SYNPROXY is not setCONFIG_NF_DUP_NETDEV=mCONFIG_NFT_DUP_NETDEV=mCONFIG_NFT_FWD_NETDEV=mCONFIG_NFT_FIB_NETDEV=m
# CONFIG_NFT_REJECT_NETDEV is not set
# CONFIG_NF_FLOW_TABLE 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=mCONFIG_NETFILTER_XT_TARGET_CHECKSUM=mCONFIG_NETFILTER_XT_TARGET_CLASSIFY=mCONFIG_NETFILTER_XT_TARGET_CONNMARK=mCONFIG_NETFILTER_XT_TARGET_CONNSECMARK=mCONFIG_NETFILTER_XT_TARGET_CT=mCONFIG_NETFILTER_XT_TARGET_DSCP=mCONFIG_NETFILTER_XT_TARGET_HL=mCONFIG_NETFILTER_XT_TARGET_HMARK=mCONFIG_NETFILTER_XT_TARGET_IDLETIMER=m
# CONFIG_NETFILTER_XT_TARGET_LED is not setCONFIG_NETFILTER_XT_TARGET_LOG=mCONFIG_NETFILTER_XT_TARGET_MARK=mCONFIG_NETFILTER_XT_NAT=mCONFIG_NETFILTER_XT_TARGET_NETMAP=mCONFIG_NETFILTER_XT_TARGET_NFLOG=mCONFIG_NETFILTER_XT_TARGET_NFQUEUE=mCONFIG_NETFILTER_XT_TARGET_NOTRACK=mCONFIG_NETFILTER_XT_TARGET_RATEEST=mCONFIG_NETFILTER_XT_TARGET_REDIRECT=mCONFIG_NETFILTER_XT_TARGET_MASQUERADE=mCONFIG_NETFILTER_XT_TARGET_TEE=mCONFIG_NETFILTER_XT_TARGET_TPROXY=mCONFIG_NETFILTER_XT_TARGET_TRACE=mCONFIG_NETFILTER_XT_TARGET_SECMARK=mCONFIG_NETFILTER_XT_TARGET_TCPMSS=mCONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=m
#
# Xtables matches
#CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=mCONFIG_NETFILTER_XT_MATCH_BPF=mCONFIG_NETFILTER_XT_MATCH_CGROUP=mCONFIG_NETFILTER_XT_MATCH_CLUSTER=mCONFIG_NETFILTER_XT_MATCH_COMMENT=mCONFIG_NETFILTER_XT_MATCH_CONNBYTES=mCONFIG_NETFILTER_XT_MATCH_CONNLABEL=mCONFIG_NETFILTER_XT_MATCH_CONNLIMIT=mCONFIG_NETFILTER_XT_MATCH_CONNMARK=mCONFIG_NETFILTER_XT_MATCH_CONNTRACK=mCONFIG_NETFILTER_XT_MATCH_CPU=mCONFIG_NETFILTER_XT_MATCH_DCCP=mCONFIG_NETFILTER_XT_MATCH_DEVGROUP=mCONFIG_NETFILTER_XT_MATCH_DSCP=mCONFIG_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=mCONFIG_NETFILTER_XT_MATCH_IPVS=m
# CONFIG_NETFILTER_XT_MATCH_L2TP is not setCONFIG_NETFILTER_XT_MATCH_LENGTH=mCONFIG_NETFILTER_XT_MATCH_LIMIT=mCONFIG_NETFILTER_XT_MATCH_MAC=mCONFIG_NETFILTER_XT_MATCH_MARK=mCONFIG_NETFILTER_XT_MATCH_MULTIPORT=m
# CONFIG_NETFILTER_XT_MATCH_NFACCT is not setCONFIG_NETFILTER_XT_MATCH_OSF=mCONFIG_NETFILTER_XT_MATCH_OWNER=mCONFIG_NETFILTER_XT_MATCH_POLICY=mCONFIG_NETFILTER_XT_MATCH_PHYSDEV=mCONFIG_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=m
# CONFIG_NETFILTER_XT_MATCH_TIME is not set
# CONFIG_NETFILTER_XT_MATCH_U32 is not set
# end of Core Netfilter Configuration
CONFIG_IP_SET=mCONFIG_IP_SET_MAX=256CONFIG_IP_SET_BITMAP_IP=mCONFIG_IP_SET_BITMAP_IPMAC=mCONFIG_IP_SET_BITMAP_PORT=mCONFIG_IP_SET_HASH_IP=mCONFIG_IP_SET_HASH_IPMARK=mCONFIG_IP_SET_HASH_IPPORT=mCONFIG_IP_SET_HASH_IPPORTIP=mCONFIG_IP_SET_HASH_IPPORTNET=mCONFIG_IP_SET_HASH_IPMAC=mCONFIG_IP_SET_HASH_MAC=mCONFIG_IP_SET_HASH_NETPORTNET=mCONFIG_IP_SET_HASH_NET=mCONFIG_IP_SET_HASH_NETNET=mCONFIG_IP_SET_HASH_NETPORT=mCONFIG_IP_SET_HASH_NETIFACE=mCONFIG_IP_SET_LIST_SET=mCONFIG_IP_VS=mCONFIG_IP_VS_IPV6=y
# CONFIG_IP_VS_DEBUG is not setCONFIG_IP_VS_TAB_BITS=12
#
# IPVS transport protocol load balancing support
#CONFIG_IP_VS_PROTO_TCP=yCONFIG_IP_VS_PROTO_UDP=yCONFIG_IP_VS_PROTO_AH_ESP=yCONFIG_IP_VS_PROTO_ESP=yCONFIG_IP_VS_PROTO_AH=yCONFIG_IP_VS_PROTO_SCTP=y
#
# IPVS scheduler
#CONFIG_IP_VS_RR=mCONFIG_IP_VS_WRR=mCONFIG_IP_VS_LC=mCONFIG_IP_VS_WLC=mCONFIG_IP_VS_FO=mCONFIG_IP_VS_OVF=mCONFIG_IP_VS_LBLC=mCONFIG_IP_VS_LBLCR=mCONFIG_IP_VS_DH=mCONFIG_IP_VS_SH=m
# CONFIG_IP_VS_MH is not setCONFIG_IP_VS_SED=mCONFIG_IP_VS_NQ=m
# CONFIG_IP_VS_TWOS is not set
#
# IPVS SH scheduler
#CONFIG_IP_VS_SH_TAB_BITS=8
#
# IPVS MH scheduler
#CONFIG_IP_VS_MH_TAB_INDEX=12
#
# IPVS application helper
#CONFIG_IP_VS_FTP=mCONFIG_IP_VS_NFCT=yCONFIG_IP_VS_PE_SIP=m
#
# IP: Netfilter Configuration
#CONFIG_NF_DEFRAG_IPV4=mCONFIG_NF_SOCKET_IPV4=mCONFIG_NF_TPROXY_IPV4=mCONFIG_NF_TABLES_IPV4=yCONFIG_NFT_REJECT_IPV4=mCONFIG_NFT_DUP_IPV4=mCONFIG_NFT_FIB_IPV4=mCONFIG_NF_TABLES_ARP=yCONFIG_NF_DUP_IPV4=mCONFIG_NF_LOG_ARP=mCONFIG_NF_LOG_IPV4=mCONFIG_NF_REJECT_IPV4=mCONFIG_NF_NAT_SNMP_BASIC=mCONFIG_NF_NAT_PPTP=mCONFIG_NF_NAT_H323=mCONFIG_IP_NF_IPTABLES=mCONFIG_IP_NF_MATCH_AH=mCONFIG_IP_NF_MATCH_ECN=mCONFIG_IP_NF_MATCH_RPFILTER=mCONFIG_IP_NF_MATCH_TTL=mCONFIG_IP_NF_FILTER=mCONFIG_IP_NF_TARGET_REJECT=mCONFIG_IP_NF_TARGET_SYNPROXY=mCONFIG_IP_NF_NAT=mCONFIG_IP_NF_TARGET_MASQUERADE=mCONFIG_IP_NF_TARGET_NETMAP=mCONFIG_IP_NF_TARGET_REDIRECT=mCONFIG_IP_NF_MANGLE=m
# CONFIG_IP_NF_TARGET_CLUSTERIP is not setCONFIG_IP_NF_TARGET_ECN=mCONFIG_IP_NF_TARGET_TTL=mCONFIG_IP_NF_RAW=mCONFIG_IP_NF_SECURITY=mCONFIG_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=mCONFIG_NF_TABLES_IPV6=yCONFIG_NFT_REJECT_IPV6=mCONFIG_NFT_DUP_IPV6=mCONFIG_NFT_FIB_IPV6=mCONFIG_NF_DUP_IPV6=mCONFIG_NF_REJECT_IPV6=mCONFIG_NF_LOG_IPV6=mCONFIG_IP6_NF_IPTABLES=mCONFIG_IP6_NF_MATCH_AH=mCONFIG_IP6_NF_MATCH_EUI64=mCONFIG_IP6_NF_MATCH_FRAG=mCONFIG_IP6_NF_MATCH_OPTS=mCONFIG_IP6_NF_MATCH_HL=mCONFIG_IP6_NF_MATCH_IPV6HEADER=mCONFIG_IP6_NF_MATCH_MH=mCONFIG_IP6_NF_MATCH_RPFILTER=mCONFIG_IP6_NF_MATCH_RT=m
# CONFIG_IP6_NF_MATCH_SRH is not set
# CONFIG_IP6_NF_TARGET_HL is not setCONFIG_IP6_NF_FILTER=mCONFIG_IP6_NF_TARGET_REJECT=mCONFIG_IP6_NF_TARGET_SYNPROXY=mCONFIG_IP6_NF_MANGLE=mCONFIG_IP6_NF_RAW=mCONFIG_IP6_NF_SECURITY=mCONFIG_IP6_NF_NAT=mCONFIG_IP6_NF_TARGET_MASQUERADE=mCONFIG_IP6_NF_TARGET_NPT=m
# end of IPv6: Netfilter Configuration
CONFIG_NF_DEFRAG_IPV6=m CONFIG_NF_TABLES_BRIDGE=m
# CONFIG_NFT_BRIDGE_META is not set CONFIG_NFT_BRIDGE_REJECT=m
# CONFIG_NF_CONNTRACK_BRIDGE is not set CONFIG_BRIDGE_NF_EBTABLES=m CONFIG_BRIDGE_EBT_BROUTE=m CONFIG_BRIDGE_EBT_T_FILTER=m CONFIG_BRIDGE_EBT_T_NAT=m CONFIG_BRIDGE_EBT_802_3=m CONFIG_BRIDGE_EBT_AMONG=m CONFIG_BRIDGE_EBT_ARP=m CONFIG_BRIDGE_EBT_IP=m CONFIG_BRIDGE_EBT_IP6=m CONFIG_BRIDGE_EBT_LIMIT=m CONFIG_BRIDGE_EBT_MARK=m CONFIG_BRIDGE_EBT_PKTTYPE=m CONFIG_BRIDGE_EBT_STP=m CONFIG_BRIDGE_EBT_VLAN=m CONFIG_BRIDGE_EBT_ARPREPLY=m CONFIG_BRIDGE_EBT_DNAT=m CONFIG_BRIDGE_EBT_MARK_T=m CONFIG_BRIDGE_EBT_REDIRECT=m CONFIG_BRIDGE_EBT_SNAT=m CONFIG_BRIDGE_EBT_LOG=m CONFIG_BRIDGE_EBT_NFLOG=m
# CONFIG_BPFILTER is not set
# CONFIG_IP_DCCP is not setCONFIG_IP_SCTP=m
# CONFIG_SCTP_DBG_OBJCNT is not set
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5 is not set CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1=y
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE is not set CONFIG_SCTP_COOKIE_HMAC_MD5=y CONFIG_SCTP_COOKIE_HMAC_SHA1=y CONFIG_INET_SCTP_DIAG=m
# CONFIG_RDS is not setCONFIG_TIPC=m
# CONFIG_TIPC_MEDIA_IB is not set CONFIG_TIPC_MEDIA_UDP=yCONFIG_TIPC_CRYPTO=yCONFIG_TIPC_DIAG=mCONFIG_ATM=mCONFIG_ATM_CLIP=m
# CONFIG_ATM_CLIP_NO_ICMP is not set CONFIG_ATM_LANE=m
# CONFIG_ATM_MPOA is not set CONFIG_ATM_BR2684=m
# CONFIG_ATM_BR2684_IPFILTER is not set CONFIG_L2TP=mCONFIG_L2TP_DEBUGFS=mCONFIG_L2TP_V3=yCONFIG_L2TP_IP=mCONFIG_L2TP_ETH=mCONFIG_STP=mCONFIG_GARP=mCONFIG_MRP=mCONFIG_BRIDGE=m CONFIG_BRIDGE_IGMP_SNOOPING=y CONFIG_BRIDGE_VLAN_FILTERING=y
# CONFIG_BRIDGE_MRP is not set
# CONFIG_BRIDGE_CFM is not set
# CONFIG_NET_DSA is not set CONFIG_VLAN_8021Q=mCONFIG_VLAN_8021Q_GVRP=y CONFIG_VLAN_8021Q_MVRP=y
# 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 setCONFIG_6LOWPAN=m
# CONFIG_6LOWPAN_DEBUGFS is not set
# CONFIG_6LOWPAN_NHC is not set CONFIG_IEEE802154=m
# CONFIG_IEEE802154_NL802154_EXPERIMENTAL is not set CONFIG_IEEE802154_SOCKET=m CONFIG_IEEE802154_6LOWPAN=m CONFIG_MAC802154=mCONFIG_NET_SCHED=y
#
# Queueing/Scheduling
#CONFIG_NET_SCH_CBQ=mCONFIG_NET_SCH_HTB=mCONFIG_NET_SCH_HFSC=mCONFIG_NET_SCH_ATM=mCONFIG_NET_SCH_PRIO=mCONFIG_NET_SCH_MULTIQ=mCONFIG_NET_SCH_RED=mCONFIG_NET_SCH_SFB=mCONFIG_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=mCONFIG_NET_SCH_NETEM=mCONFIG_NET_SCH_DRR=mCONFIG_NET_SCH_MQPRIO=m
# CONFIG_NET_SCH_SKBPRIO is not setCONFIG_NET_SCH_CHOKE=mCONFIG_NET_SCH_QFQ=mCONFIG_NET_SCH_CODEL=mCONFIG_NET_SCH_FQ_CODEL=y
# CONFIG_NET_SCH_CAKE is not setCONFIG_NET_SCH_FQ=mCONFIG_NET_SCH_HHF=mCONFIG_NET_SCH_PIE=m
# CONFIG_NET_SCH_FQ_PIE is not setCONFIG_NET_SCH_INGRESS=mCONFIG_NET_SCH_PLUG=m
# CONFIG_NET_SCH_ETS is not setCONFIG_NET_SCH_DEFAULT=y
# CONFIG_DEFAULT_FQ is not set
# CONFIG_DEFAULT_CODEL is not setCONFIG_DEFAULT_FQ_CODEL=y
# CONFIG_DEFAULT_SFQ is not set
# CONFIG_DEFAULT_PFIFO_FAST is not setCONFIG_DEFAULT_NET_SCH="fq_codel"
#
# Classification
#CONFIG_NET_CLS=yCONFIG_NET_CLS_BASIC=mCONFIG_NET_CLS_TCINDEX=mCONFIG_NET_CLS_ROUTE4=mCONFIG_NET_CLS_FW=mCONFIG_NET_CLS_U32=mCONFIG_CLS_U32_PERF=yCONFIG_CLS_U32_MARK=yCONFIG_NET_CLS_RSVP=mCONFIG_NET_CLS_RSVP6=mCONFIG_NET_CLS_FLOW=mCONFIG_NET_CLS_CGROUP=yCONFIG_NET_CLS_BPF=mCONFIG_NET_CLS_FLOWER=mCONFIG_NET_CLS_MATCHALL=mCONFIG_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_CANID is not setCONFIG_NET_EMATCH_IPSET=m
# CONFIG_NET_EMATCH_IPT is not setCONFIG_NET_CLS_ACT=yCONFIG_NET_ACT_POLICE=mCONFIG_NET_ACT_GACT=mCONFIG_GACT_PROB=yCONFIG_NET_ACT_MIRRED=mCONFIG_NET_ACT_SAMPLE=m
# CONFIG_NET_ACT_IPT is not setCONFIG_NET_ACT_NAT=mCONFIG_NET_ACT_PEDIT=mCONFIG_NET_ACT_SIMP=mCONFIG_NET_ACT_SKBEDIT=mCONFIG_NET_ACT_CSUM=m
# CONFIG_NET_ACT_MPLS is not setCONFIG_NET_ACT_VLAN=mCONFIG_NET_ACT_BPF=m
# CONFIG_NET_ACT_CONNMARK is not set
# CONFIG_NET_ACT_CTINFO is not setCONFIG_NET_ACT_SKBMOD=m
# CONFIG_NET_ACT_IFE is not setCONFIG_NET_ACT_TUNNEL_KEY=m
# CONFIG_NET_ACT_GATE is not set
# CONFIG_NET_TC_SKB_EXT is not setCONFIG_NET_SCH_FIFO=yCONFIG_DCB=yCONFIG_DNS_RESOLVER=m
# CONFIG_BATMAN_ADV is not setCONFIG_OPENVSWITCH=mCONFIG_OPENVSWITCH_GRE=mCONFIG_VSOCKETS=mCONFIG_VSOCKETS_DIAG=mCONFIG_VSOCKETS_LOOPBACK=mCONFIG_VMWARE_VMCI_VSOCKETS=mCONFIG_VIRTIO_VSOCKETS=mCONFIG_VIRTIO_VSOCKETS_COMMON=mCONFIG_HYPERV_VSOCKETS=mCONFIG_NETLINK_DIAG=mCONFIG_MPLS=yCONFIG_NET_MPLS_GSO=yCONFIG_MPLS_ROUTING=mCONFIG_MPLS_IPTUNNEL=mCONFIG_NET_NSH=y
# CONFIG_HSR is not setCONFIG_NET_SWITCHDEV=yCONFIG_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=yCONFIG_CGROUP_NET_PRIO=yCONFIG_CGROUP_NET_CLASSID=yCONFIG_NET_RX_BUSY_POLL=yCONFIG_BQL=yCONFIG_BPF_STREAM_PARSER=yCONFIG_NET_FLOW_LIMIT=y
#
# Network testing
#CONFIG_NET_PKTGEN=mCONFIG_NET_DROP_MONITOR=y
# end of Network testing # end of Networking options
# CONFIG_HAMRADIO is not setCONFIG_CAN=mCONFIG_CAN_RAW=mCONFIG_CAN_BCM=mCONFIG_CAN_GW=m
# CONFIG_CAN_J1939 is not set
# CONFIG_CAN_ISOTP is not set
#
# CAN Device Drivers
#CONFIG_CAN_VCAN=m
# CONFIG_CAN_VXCAN is not setCONFIG_CAN_SLCAN=mCONFIG_CAN_DEV=mCONFIG_CAN_CALC_BITTIMING=y
# CONFIG_CAN_KVASER_PCIEFD is not setCONFIG_CAN_C_CAN=mCONFIG_CAN_C_CAN_PLATFORM=mCONFIG_CAN_C_CAN_PCI=mCONFIG_CAN_CC770=m
# CONFIG_CAN_CC770_ISA is not setCONFIG_CAN_CC770_PLATFORM=m
# CONFIG_CAN_IFI_CANFD is not set
# CONFIG_CAN_M_CAN is not set
# CONFIG_CAN_PEAK_PCIEFD is not setCONFIG_CAN_SJA1000=mCONFIG_CAN_EMS_PCI=m
# CONFIG_CAN_F81601 is not setCONFIG_CAN_KVASER_PCI=mCONFIG_CAN_PEAK_PCI=mCONFIG_CAN_PEAK_PCIEC=yCONFIG_CAN_PLX_PCI=m
# CONFIG_CAN_SJA1000_ISA is not setCONFIG_CAN_SJA1000_PLATFORM=mCONFIG_CAN_SOFTING=m
#
# CAN SPI interfaces
#
# CONFIG_CAN_HI311X is not set
# CONFIG_CAN_MCP251X is not set
# CONFIG_CAN_MCP251XFD is not set
# end of CAN SPI interfaces
#
# CAN USB interfaces
#
# CONFIG_CAN_8DEV_USB is not set
# CONFIG_CAN_EMS_USB is not set
# CONFIG_CAN_ESD_USB2 is not set
# CONFIG_CAN_ETAS_ES58X is not set
# CONFIG_CAN_GS_USB is not set
# CONFIG_CAN_KVASER_USB is not set
# CONFIG_CAN_MCBA_USB is not set
# CONFIG_CAN_PEAK_USB is not set
# CONFIG_CAN_UCAN is not set
# end of CAN USB interfaces
# CONFIG_CAN_DEBUG_DEVICES is not set
# end of CAN Device Drivers
CONFIG_BT=mCONFIG_BT_BREDR=yCONFIG_BT_RFCOMM=mCONFIG_BT_RFCOMM_TTY=yCONFIG_BT_BNEP=mCONFIG_BT_BNEP_MC_FILTER=yCONFIG_BT_BNEP_PROTO_FILTER=yCONFIG_BT_HIDP=mCONFIG_BT_HS=yCONFIG_BT_LE=y
# CONFIG_BT_6LOWPAN is not set
# CONFIG_BT_LEDS is not set
# CONFIG_BT_MSFTEXT is not set
# CONFIG_BT_AOSPEXT is not setCONFIG_BT_DEBUGFS=y
# CONFIG_BT_SELFTEST is not set
#
# Bluetooth device drivers
#
# CONFIG_BT_HCIBTUSB is not set
# CONFIG_BT_HCIBTSDIO is not setCONFIG_BT_HCIUART=mCONFIG_BT_HCIUART_H4=yCONFIG_BT_HCIUART_BCSP=yCONFIG_BT_HCIUART_ATH3K=y
# CONFIG_BT_HCIUART_INTEL is not set
# CONFIG_BT_HCIUART_AG6XX is not set
# CONFIG_BT_HCIBCM203X is not set
# CONFIG_BT_HCIBPA10X is not set
# CONFIG_BT_HCIBFUSB is not setCONFIG_BT_HCIVHCI=mCONFIG_BT_MRVL=m
# CONFIG_BT_MRVL_SDIO is not set
# CONFIG_BT_MTKSDIO is not set
# CONFIG_BT_VIRTIO is not set
# end of Bluetooth device drivers
# CONFIG_AF_RXRPC is not set
# CONFIG_AF_KCM is not setCONFIG_STREAM_PARSER=yCONFIG_FIB_RULES=yCONFIG_WIRELESS=yCONFIG_WEXT_CORE=yCONFIG_WEXT_PROC=yCONFIG_CFG80211=m
# CONFIG_NL80211_TESTMODE is not set
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not setCONFIG_CFG80211_REQUIRE_SIGNED_REGDB=yCONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=yCONFIG_CFG80211_DEFAULT_PS=y
# CONFIG_CFG80211_DEBUGFS is not setCONFIG_CFG80211_CRDA_SUPPORT=yCONFIG_CFG80211_WEXT=yCONFIG_MAC80211=mCONFIG_MAC80211_HAS_RC=yCONFIG_MAC80211_RC_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT="minstrel_ht"CONFIG_MAC80211_MESH=yCONFIG_MAC80211_LEDS=yCONFIG_MAC80211_DEBUGFS=y
# CONFIG_MAC80211_MESSAGE_TRACING is not set
# CONFIG_MAC80211_DEBUG_MENU is not setCONFIG_MAC80211_STA_HASH_MAX_SIZE=0CONFIG_RFKILL=mCONFIG_RFKILL_LEDS=yCONFIG_RFKILL_INPUT=y
# CONFIG_RFKILL_GPIO is not setCONFIG_NET_9P=yCONFIG_NET_9P_VIRTIO=y
# CONFIG_NET_9P_XEN is not set
# CONFIG_NET_9P_RDMA is not set
# CONFIG_NET_9P_DEBUG is not set
# CONFIG_CAIF is not setCONFIG_CEPH_LIB=m
# CONFIG_CEPH_LIB_PRETTYDEBUG is not setCONFIG_CEPH_LIB_USE_DNS_RESOLVER=y
# CONFIG_NFC is not setCONFIG_PSAMPLE=m
# CONFIG_NET_IFE is not setCONFIG_LWTUNNEL=yCONFIG_LWTUNNEL_BPF=yCONFIG_DST_CACHE=yCONFIG_GRO_CELLS=yCONFIG_SOCK_VALIDATE_XMIT=yCONFIG_NET_SELFTESTS=yCONFIG_NET_SOCK_MSG=yCONFIG_NET_DEVLINK=yCONFIG_PAGE_POOL=yCONFIG_FAILOVER=mCONFIG_ETHTOOL_NETLINK=y
#
# Device Drivers
#CONFIG_HAVE_EISA=y
# CONFIG_EISA is not setCONFIG_HAVE_PCI=yCONFIG_PCI=yCONFIG_PCI_DOMAINS=yCONFIG_PCIEPORTBUS=yCONFIG_HOTPLUG_PCI_PCIE=yCONFIG_PCIEAER=yCONFIG_PCIEAER_INJECT=mCONFIG_PCIE_ECRC=yCONFIG_PCIEASPM=yCONFIG_PCIEASPM_DEFAULT=y
# CONFIG_PCIEASPM_POWERSAVE is not set
# CONFIG_PCIEASPM_POWER_SUPERSAVE is not set
# CONFIG_PCIEASPM_PERFORMANCE is not setCONFIG_PCIE_PME=yCONFIG_PCIE_DPC=y
# CONFIG_PCIE_PTM is not set
# CONFIG_PCIE_EDR is not setCONFIG_PCI_MSI=yCONFIG_PCI_MSI_IRQ_DOMAIN=yCONFIG_PCI_QUIRKS=y
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_REALLOC_ENABLE_AUTO is not setCONFIG_PCI_STUB=yCONFIG_PCI_PF_STUB=m
# CONFIG_XEN_PCIDEV_FRONTEND is not setCONFIG_PCI_ATS=yCONFIG_PCI_LOCKLESS_CONFIG=yCONFIG_PCI_IOV=yCONFIG_PCI_PRI=yCONFIG_PCI_PASID=y
# CONFIG_PCI_P2PDMA is not setCONFIG_PCI_LABEL=yCONFIG_PCI_HYPERV=mCONFIG_HOTPLUG_PCI=yCONFIG_HOTPLUG_PCI_ACPI=yCONFIG_HOTPLUG_PCI_ACPI_IBM=m
# CONFIG_HOTPLUG_PCI_CPCI is not setCONFIG_HOTPLUG_PCI_SHPC=y
#
# PCI controller drivers
#CONFIG_VMD=yCONFIG_PCI_HYPERV_INTERFACE=m
#
# 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=yCONFIG_DEVTMPFS_MOUNT=yCONFIG_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 set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not setCONFIG_PM_QOS_KUNIT_TEST=y
# CONFIG_TEST_ASYNC_DRIVER_PROBE is not setCONFIG_DRIVER_PE_KUNIT_TEST=yCONFIG_SYS_HYPERVISOR=yCONFIG_GENERIC_CPU_AUTOPROBE=yCONFIG_GENERIC_CPU_VULNERABILITIES=yCONFIG_REGMAP=yCONFIG_REGMAP_I2C=mCONFIG_REGMAP_SPI=mCONFIG_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
# CONFIG_GNSS is not set
# CONFIG_MTD is not set
# CONFIG_OF is not setCONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=yCONFIG_PARPORT=mCONFIG_PARPORT_PC=mCONFIG_PARPORT_SERIAL=m
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not set
# CONFIG_PARPORT_AX88796 is not setCONFIG_PARPORT_1284=yCONFIG_PNP=y
# CONFIG_PNP_DEBUG_MESSAGES is not set
#
# Protocols
#CONFIG_PNPACPI=yCONFIG_BLK_DEV=yCONFIG_BLK_DEV_NULL_BLK=mCONFIG_BLK_DEV_NULL_BLK_FAULT_INJECTION=y
# CONFIG_BLK_DEV_FD is not setCONFIG_CDROM=m
# CONFIG_PARIDE is not set
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
# CONFIG_ZRAM is not setCONFIG_BLK_DEV_LOOP=mCONFIG_BLK_DEV_LOOP_MIN_COUNT=0
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_DRBD is not setCONFIG_BLK_DEV_NBD=m
# CONFIG_BLK_DEV_SX8 is not setCONFIG_BLK_DEV_RAM=mCONFIG_BLK_DEV_RAM_COUNT=16CONFIG_BLK_DEV_RAM_SIZE=16384CONFIG_CDROM_PKTCDVD=mCONFIG_CDROM_PKTCDVD_BUFFERS=8
# CONFIG_CDROM_PKTCDVD_WCACHE is not set
# CONFIG_ATA_OVER_ETH is not setCONFIG_XEN_BLKDEV_FRONTEND=mCONFIG_VIRTIO_BLK=mCONFIG_BLK_DEV_RBD=m
# CONFIG_BLK_DEV_RSXX is not set
#
# NVME Support
#CONFIG_NVME_CORE=mCONFIG_BLK_DEV_NVME=mCONFIG_NVME_MULTIPATH=y
# CONFIG_NVME_HWMON is not setCONFIG_NVME_FABRICS=m
# CONFIG_NVME_RDMA is not setCONFIG_NVME_FC=m
# CONFIG_NVME_TCP is not setCONFIG_NVME_TARGET=m
# CONFIG_NVME_TARGET_PASSTHRU is not setCONFIG_NVME_TARGET_LOOP=m
# CONFIG_NVME_TARGET_RDMA is not setCONFIG_NVME_TARGET_FC=mCONFIG_NVME_TARGET_FCLOOP=m
# CONFIG_NVME_TARGET_TCP is not set
# end of NVME Support
#
# Misc devices
#CONFIG_SENSORS_LIS3LV02D=m
# CONFIG_AD525X_DPOT is not set
# CONFIG_DUMMY_IRQ is not set
# CONFIG_IBM_ASM is not set
# CONFIG_PHANTOM is not setCONFIG_TIFM_CORE=mCONFIG_TIFM_7XX1=m
# CONFIG_ICS932S401 is not setCONFIG_ENCLOSURE_SERVICES=mCONFIG_SGI_XP=mCONFIG_HP_ILO=mCONFIG_SGI_GRU=m
# CONFIG_SGI_GRU_DEBUG is not setCONFIG_APDS9802ALS=mCONFIG_ISL29003=mCONFIG_ISL29020=mCONFIG_SENSORS_TSL2550=mCONFIG_SENSORS_BH1770=mCONFIG_SENSORS_APDS990X=m
# CONFIG_HMC6352 is not set
# CONFIG_DS1682 is not setCONFIG_VMWARE_BALLOON=m
# 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 setCONFIG_MISC_RTSX=m
# CONFIG_C2PORT is not set
#
# EEPROM support
#
# CONFIG_EEPROM_AT24 is not set
# CONFIG_EEPROM_AT25 is not setCONFIG_EEPROM_LEGACY=mCONFIG_EEPROM_MAX6875=mCONFIG_EEPROM_93CX6=m
# 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=m
# CONFIG_CB710_DEBUG is not setCONFIG_CB710_DEBUG_ASSUMPTIONS=y
#
# Texas Instruments shared transport line discipline #
# CONFIG_TI_ST is not set
# end of Texas Instruments shared transport line discipline
CONFIG_SENSORS_LIS3_I2C=mCONFIG_ALTERA_STAPL=mCONFIG_INTEL_MEI=mCONFIG_INTEL_MEI_ME=m
# CONFIG_INTEL_MEI_TXE is not set
# CONFIG_INTEL_MEI_HDCP is not setCONFIG_VMWARE_VMCI=m
# CONFIG_GENWQE is not set
# CONFIG_ECHO is not set
# CONFIG_BCM_VK is not set
# CONFIG_MISC_ALCOR_PCI is not setCONFIG_MISC_RTSX_PCI=m
# CONFIG_MISC_RTSX_USB is not set
# CONFIG_HABANA_AI is not set
# CONFIG_UACCE is not setCONFIG_PVPANIC=y
# CONFIG_PVPANIC_MMIO is not set
# CONFIG_PVPANIC_PCI is not set
# end of Misc devices
#
# SCSI device support
#CONFIG_SCSI_MOD=yCONFIG_RAID_ATTRS=mCONFIG_SCSI=yCONFIG_SCSI_DMA=yCONFIG_SCSI_NETLINK=yCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=mCONFIG_CHR_DEV_ST=mCONFIG_BLK_DEV_SR=mCONFIG_CHR_DEV_SG=mCONFIG_CHR_DEV_SCH=mCONFIG_SCSI_ENCLOSURE=mCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_LOGGING=yCONFIG_SCSI_SCAN_ASYNC=y
#
# SCSI Transports
#CONFIG_SCSI_SPI_ATTRS=mCONFIG_SCSI_FC_ATTRS=mCONFIG_SCSI_ISCSI_ATTRS=mCONFIG_SCSI_SAS_ATTRS=mCONFIG_SCSI_SAS_LIBSAS=mCONFIG_SCSI_SAS_ATA=yCONFIG_SCSI_SAS_HOST_SMP=yCONFIG_SCSI_SRP_ATTRS=m
# end of SCSI Transports
CONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# 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 set
# CONFIG_SCSI_AIC7XXX is not set
# 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 set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not setCONFIG_SCSI_MPT3SAS=mCONFIG_SCSI_MPT2SAS_MAX_SGE=128CONFIG_SCSI_MPT3SAS_MAX_SGE=128
# CONFIG_SCSI_MPT2SAS is not set
# 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_XEN_SCSI_FRONTEND is not setCONFIG_HYPERV_STORAGE=m
# CONFIG_LIBFC is not set
# CONFIG_SCSI_SNIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_FDOMAIN_PCI is not setCONFIG_SCSI_ISCI=m
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_PPA is not set
# CONFIG_SCSI_IMM 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 set
# CONFIG_SCSI_QLA_FC is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_EFCT is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_WD719X is not setCONFIG_SCSI_DEBUG=m
# CONFIG_SCSI_PMCRAID is not set
# CONFIG_SCSI_PM8001 is not set
# CONFIG_SCSI_BFA_FC is not set
# CONFIG_SCSI_VIRTIO is not set
# CONFIG_SCSI_CHELSIO_FCOE is not setCONFIG_SCSI_DH=yCONFIG_SCSI_DH_RDAC=yCONFIG_SCSI_DH_HP_SW=yCONFIG_SCSI_DH_EMC=yCONFIG_SCSI_DH_ALUA=y
# end of SCSI device support
CONFIG_ATA=mCONFIG_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=mCONFIG_SATA_MOBILE_LPM_POLICY=0CONFIG_SATA_AHCI_PLATFORM=m
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not setCONFIG_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=m
# CONFIG_SATA_DWC is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SIL is not set
# 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_RZ1000 is not set
#
# Generic fallback / legacy drivers
#
# CONFIG_PATA_ACPI is not set CONFIG_ATA_GENERIC=m
# CONFIG_PATA_LEGACY is not set CONFIG_MD=yCONFIG_BLK_DEV_MD=yCONFIG_MD_AUTODETECT=yCONFIG_MD_LINEAR=mCONFIG_MD_RAID0=mCONFIG_MD_RAID1=mCONFIG_MD_RAID10=mCONFIG_MD_RAID456=mCONFIG_MD_MULTIPATH=mCONFIG_MD_FAULTY=mCONFIG_MD_CLUSTER=m
# CONFIG_BCACHE is not set CONFIG_BLK_DEV_DM_BUILTIN=y CONFIG_BLK_DEV_DM=mCONFIG_DM_DEBUG=yCONFIG_DM_BUFIO=m
# CONFIG_DM_DEBUG_BLOCK_MANAGER_LOCKING is not set CONFIG_DM_BIO_PRISON=m CONFIG_DM_PERSISTENT_DATA=m
# CONFIG_DM_UNSTRIPED is not set CONFIG_DM_CRYPT=mCONFIG_DM_SNAPSHOT=m CONFIG_DM_THIN_PROVISIONING=m CONFIG_DM_CACHE=mCONFIG_DM_CACHE_SMQ=m CONFIG_DM_WRITECACHE=m
# CONFIG_DM_EBS is not setCONFIG_DM_ERA=m
# CONFIG_DM_CLONE is not set CONFIG_DM_MIRROR=m CONFIG_DM_LOG_USERSPACE=mCONFIG_DM_RAID=mCONFIG_DM_ZERO=mCONFIG_DM_MULTIPATH=m CONFIG_DM_MULTIPATH_QL=m CONFIG_DM_MULTIPATH_ST=m
# CONFIG_DM_MULTIPATH_HST is not set
# CONFIG_DM_MULTIPATH_IOA is not set CONFIG_DM_DELAY=m
# CONFIG_DM_DUST is not set CONFIG_DM_UEVENT=yCONFIG_DM_FLAKEY=mCONFIG_DM_VERITY=m
# CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG is not set # CONFIG_DM_VERITY_FEC is not set CONFIG_DM_SWITCH=mCONFIG_DM_LOG_WRITES=m CONFIG_DM_INTEGRITY=m
# CONFIG_DM_ZONED is not set CONFIG_TARGET_CORE=mCONFIG_TCM_IBLOCK=mCONFIG_TCM_FILEIO=mCONFIG_TCM_PSCSI=mCONFIG_TCM_USER2=m CONFIG_LOOPBACK_TARGET=m CONFIG_ISCSI_TARGET=m
# CONFIG_SBP_TARGET is not set
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#CONFIG_FIREWIRE=mCONFIG_FIREWIRE_OHCI=mCONFIG_FIREWIRE_SBP2=mCONFIG_FIREWIRE_NET=m
# CONFIG_FIREWIRE_NOSY is not set
# end of IEEE 1394 (FireWire) support
CONFIG_MACINTOSH_DRIVERS=yCONFIG_MAC_EMUMOUSEBTN=yCONFIG_NETDEVICES=yCONFIG_MII=yCONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_WIREGUARD is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_FC is not set
# CONFIG_IFB is not set
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
# CONFIG_IPVLAN is not set
# CONFIG_VXLAN is not set
# CONFIG_GENEVE is not set
# CONFIG_BAREUDP is not set
# CONFIG_GTP is not set
# CONFIG_MACSEC is not setCONFIG_NETCONSOLE=mCONFIG_NETCONSOLE_DYNAMIC=yCONFIG_NETPOLL=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_TUN=m
# CONFIG_TUN_VNET_CROSS_LE is not setCONFIG_VETH=mCONFIG_VIRTIO_NET=m
# CONFIG_NLMON is not set
# CONFIG_NET_VRF is not set
# CONFIG_VSOCKMON is not set
# CONFIG_ARCNET is not setCONFIG_ATM_DRIVERS=y
# CONFIG_ATM_DUMMY is not set
# CONFIG_ATM_TCP is not set
# CONFIG_ATM_LANAI is not set
# CONFIG_ATM_ENI is not set
# CONFIG_ATM_FIRESTREAM is not set
# CONFIG_ATM_ZATM is not set
# CONFIG_ATM_NICSTAR is not set
# CONFIG_ATM_IDT77252 is not set
# CONFIG_ATM_AMBASSADOR is not set
# CONFIG_ATM_HORIZON is not set
# CONFIG_ATM_IA is not set
# CONFIG_ATM_FORE200E is not set
# CONFIG_ATM_HE is not set
# CONFIG_ATM_SOLOS is not setCONFIG_ETHERNET=yCONFIG_MDIO=yCONFIG_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_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 set
# CONFIG_BNX2 is not set
# CONFIG_CNIC is not set
# CONFIG_TIGON3 is not set
# CONFIG_BNX2X is not set
# 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 setCONFIG_CAVIUM_PTP=y
# CONFIG_LIQUIDIO is not set
# CONFIG_LIQUIDIO_VF is not setCONFIG_NET_VENDOR_CHELSIO=y
# CONFIG_CHELSIO_T1 is not set
# CONFIG_CHELSIO_T3 is not set
# 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 set
# CONFIG_DNET is not setCONFIG_NET_VENDOR_DEC=y
# CONFIG_NET_TULIP 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_EZCHIP=yCONFIG_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 setCONFIG_E1000=yCONFIG_E1000E=yCONFIG_E1000E_HWTS=yCONFIG_IGB=yCONFIG_IGB_HWMON=y
# CONFIG_IGBVF is not set
# CONFIG_IXGB is not setCONFIG_IXGBE=yCONFIG_IXGBE_HWMON=y
# CONFIG_IXGBE_DCB is not setCONFIG_IXGBE_IPSEC=y
# CONFIG_IXGBEVF is not setCONFIG_I40E=y
# CONFIG_I40E_DCB is not set
# CONFIG_I40EVF is not set
# CONFIG_ICE is not set
# CONFIG_FM10K is not setCONFIG_IGC=yCONFIG_NET_VENDOR_MICROSOFT=y
# CONFIG_MICROSOFT_MANA is not set
# CONFIG_JME is not setCONFIG_NET_VENDOR_MARVELL=y
# CONFIG_MVMDIO is not set
# CONFIG_SKGE is not set
# CONFIG_SKY2 is not set
# CONFIG_PRESTERA is not setCONFIG_NET_VENDOR_MELLANOX=y
# CONFIG_MLX4_EN is not set
# CONFIG_MLX5_CORE 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_ATP is not set
# CONFIG_8139CP is not set
# CONFIG_8139TOO is not setCONFIG_R8169=yCONFIG_NET_VENDOR_RENESAS=yCONFIG_NET_VENDOR_ROCKER=y
# CONFIG_ROCKER is not setCONFIG_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_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=y
# CONFIG_LED_TRIGGER_PHY is not setCONFIG_FIXED_PHY=y
#
# MII PHY device drivers
#
# CONFIG_AMD_PHY is not set
# CONFIG_ADIN_PHY is not set
# CONFIG_AQUANTIA_PHY is not setCONFIG_AX88796B_PHY=y
# 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_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 setCONFIG_REALTEK_PHY=y
# 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_MSCC_MIIM 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_PLIP is not set
# 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 setCONFIG_USB_RTL8152=y
# CONFIG_USB_LAN78XX is not setCONFIG_USB_USBNET=yCONFIG_USB_NET_AX8817X=yCONFIG_USB_NET_AX88179_178A=y
# CONFIG_USB_NET_CDCETHER is not set
# CONFIG_USB_NET_CDC_EEM is not set
# CONFIG_USB_NET_CDC_NCM is not set
# 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 set
# CONFIG_USB_NET_CDC_SUBSET 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_HSO 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_NET_CH9200 is not set
# CONFIG_USB_NET_AQC111 is not setCONFIG_WLAN=yCONFIG_WLAN_VENDOR_ADMTEK=y
# CONFIG_ADM8211 is not setCONFIG_WLAN_VENDOR_ATH=y
# CONFIG_ATH_DEBUG is not set
# CONFIG_ATH5K is not set
# CONFIG_ATH5K_PCI is not set
# CONFIG_ATH9K is not set
# CONFIG_ATH9K_HTC is not set
# CONFIG_CARL9170 is not set
# CONFIG_ATH6KL is not set
# CONFIG_AR5523 is not set
# CONFIG_WIL6210 is not set
# CONFIG_ATH10K is not set
# CONFIG_WCN36XX is not set
# CONFIG_ATH11K is not setCONFIG_WLAN_VENDOR_ATMEL=y
# CONFIG_ATMEL is not set
# CONFIG_AT76C50X_USB is not setCONFIG_WLAN_VENDOR_BROADCOM=y
# CONFIG_B43 is not set
# CONFIG_B43LEGACY is not set
# CONFIG_BRCMSMAC is not set
# CONFIG_BRCMFMAC is not setCONFIG_WLAN_VENDOR_CISCO=y
# CONFIG_AIRO is not setCONFIG_WLAN_VENDOR_INTEL=y
# CONFIG_IPW2100 is not set
# CONFIG_IPW2200 is not set
# CONFIG_IWL4965 is not set
# CONFIG_IWL3945 is not set
# CONFIG_IWLWIFI is not setCONFIG_WLAN_VENDOR_INTERSIL=y
# CONFIG_HOSTAP is not set
# CONFIG_HERMES is not set
# CONFIG_P54_COMMON is not set
# CONFIG_PRISM54 is not setCONFIG_WLAN_VENDOR_MARVELL=y
# CONFIG_LIBERTAS is not set
# CONFIG_LIBERTAS_THINFIRM is not set
# CONFIG_MWIFIEX is not set
# CONFIG_MWL8K is not setCONFIG_WLAN_VENDOR_MEDIATEK=y
# CONFIG_MT7601U is not set
# CONFIG_MT76x0U is not set
# CONFIG_MT76x0E is not set
# CONFIG_MT76x2E is not set
# CONFIG_MT76x2U is not set
# CONFIG_MT7603E is not set
# CONFIG_MT7615E is not set
# CONFIG_MT7663U is not set
# CONFIG_MT7663S is not set
# CONFIG_MT7915E is not set
# CONFIG_MT7921E is not setCONFIG_WLAN_VENDOR_MICROCHIP=y
# CONFIG_WILC1000_SDIO is not set
# CONFIG_WILC1000_SPI is not setCONFIG_WLAN_VENDOR_RALINK=y
# CONFIG_RT2X00 is not setCONFIG_WLAN_VENDOR_REALTEK=y
# CONFIG_RTL8180 is not set
# CONFIG_RTL8187 is not setCONFIG_RTL_CARDS=m
# CONFIG_RTL8192CE is not set
# CONFIG_RTL8192SE is not set
# CONFIG_RTL8192DE is not set
# CONFIG_RTL8723AE is not set
# CONFIG_RTL8723BE is not set
# CONFIG_RTL8188EE is not set
# CONFIG_RTL8192EE is not set
# CONFIG_RTL8821AE is not set
# CONFIG_RTL8192CU is not set
# CONFIG_RTL8XXXU is not set
# CONFIG_RTW88 is not setCONFIG_WLAN_VENDOR_RSI=y
# CONFIG_RSI_91X is not setCONFIG_WLAN_VENDOR_ST=y
# CONFIG_CW1200 is not setCONFIG_WLAN_VENDOR_TI=y
# CONFIG_WL1251 is not set
# CONFIG_WL12XX is not set
# CONFIG_WL18XX is not set
# CONFIG_WLCORE is not setCONFIG_WLAN_VENDOR_ZYDAS=y
# CONFIG_USB_ZD1201 is not set
# CONFIG_ZD1211RW is not setCONFIG_WLAN_VENDOR_QUANTENNA=y
# CONFIG_QTNFMAC_PCIE is not setCONFIG_MAC80211_HWSIM=m
# CONFIG_USB_NET_RNDIS_WLAN is not set
# CONFIG_VIRT_WIFI is not set
# CONFIG_WAN is not setCONFIG_IEEE802154_DRIVERS=m
# CONFIG_IEEE802154_FAKELB is not set
# CONFIG_IEEE802154_AT86RF230 is not set
# CONFIG_IEEE802154_MRF24J40 is not set
# CONFIG_IEEE802154_CC2520 is not set
# CONFIG_IEEE802154_ATUSB is not set
# CONFIG_IEEE802154_ADF7242 is not set
# CONFIG_IEEE802154_CA8210 is not set
# CONFIG_IEEE802154_MCR20A is not set
# CONFIG_IEEE802154_HWSIM is not set
#
# Wireless WAN
#
# CONFIG_WWAN is not set
# end of Wireless WAN
CONFIG_XEN_NETDEV_FRONTEND=y
# CONFIG_VMXNET3 is not set
# CONFIG_FUJITSU_ES is not set
# CONFIG_HYPERV_NET is not setCONFIG_NETDEVSIM=mCONFIG_NET_FAILOVER=m
# CONFIG_ISDN is not set
# CONFIG_NVM is not set
#
# Input device support
#CONFIG_INPUT=yCONFIG_INPUT_LEDS=yCONFIG_INPUT_FF_MEMLESS=mCONFIG_INPUT_SPARSEKMAP=m
# CONFIG_INPUT_MATRIXKMAP is not set
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=y
# CONFIG_INPUT_MOUSEDEV_PSAUX is not setCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768CONFIG_INPUT_JOYDEV=mCONFIG_INPUT_EVDEV=y
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADP5588 is not set
# CONFIG_KEYBOARD_ADP5589 is not set
# CONFIG_KEYBOARD_APPLESPI 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_LM8323 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_TM2_TOUCHKEY is not set
# CONFIG_KEYBOARD_XTKBD is not setCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=yCONFIG_MOUSE_PS2_ALPS=yCONFIG_MOUSE_PS2_BYD=yCONFIG_MOUSE_PS2_LOGIPS2PP=yCONFIG_MOUSE_PS2_SYNAPTICS=yCONFIG_MOUSE_PS2_SYNAPTICS_SMBUS=yCONFIG_MOUSE_PS2_CYPRESS=yCONFIG_MOUSE_PS2_LIFEBOOK=yCONFIG_MOUSE_PS2_TRACKPOINT=yCONFIG_MOUSE_PS2_ELANTECH=yCONFIG_MOUSE_PS2_ELANTECH_SMBUS=yCONFIG_MOUSE_PS2_SENTELIC=y
# CONFIG_MOUSE_PS2_TOUCHKIT is not setCONFIG_MOUSE_PS2_FOCALTECH=yCONFIG_MOUSE_PS2_VMMOUSE=yCONFIG_MOUSE_PS2_SMBUS=yCONFIG_MOUSE_SERIAL=m
# CONFIG_MOUSE_APPLETOUCH is not set
# CONFIG_MOUSE_BCM5974 is not setCONFIG_MOUSE_CYAPA=mCONFIG_MOUSE_ELAN_I2C=mCONFIG_MOUSE_ELAN_I2C_I2C=yCONFIG_MOUSE_ELAN_I2C_SMBUS=yCONFIG_MOUSE_VSXXXAA=m
# CONFIG_MOUSE_GPIO is not setCONFIG_MOUSE_SYNAPTICS_I2C=m
# CONFIG_MOUSE_SYNAPTICS_USB is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not setCONFIG_RMI4_CORE=mCONFIG_RMI4_I2C=mCONFIG_RMI4_SPI=mCONFIG_RMI4_SMB=mCONFIG_RMI4_F03=yCONFIG_RMI4_F03_SERIO=mCONFIG_RMI4_2D_SENSOR=yCONFIG_RMI4_F11=yCONFIG_RMI4_F12=yCONFIG_RMI4_F30=yCONFIG_RMI4_F34=y
# CONFIG_RMI4_F3A is not set
# CONFIG_RMI4_F54 is not setCONFIG_RMI4_F55=y
#
# 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_PARKBD is not set
# CONFIG_SERIO_PCIPS2 is not setCONFIG_SERIO_LIBPS2=yCONFIG_SERIO_RAW=mCONFIG_SERIO_ALTERA_PS2=m
# CONFIG_SERIO_PS2MULT is not setCONFIG_SERIO_ARC_PS2=mCONFIG_HYPERV_KEYBOARD=m
# 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=y
# CONFIG_LEGACY_PTYS is not setCONFIG_LDISC_AUTOLOAD=y
#
# Serial drivers
#CONFIG_SERIAL_EARLYCON=y CONFIG_SERIAL_8250=y
# CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set CONFIG_SERIAL_8250_PNP=y
# CONFIG_SERIAL_8250_16550A_VARIANTS is not set # CONFIG_SERIAL_8250_FINTEK is not set CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_8250_DMA=y CONFIG_SERIAL_8250_PCI=y CONFIG_SERIAL_8250_EXAR=y CONFIG_SERIAL_8250_NR_UARTS=64 CONFIG_SERIAL_8250_RUNTIME_UARTS=4 CONFIG_SERIAL_8250_EXTENDED=y CONFIG_SERIAL_8250_MANY_PORTS=y CONFIG_SERIAL_8250_SHARE_IRQ=y
# CONFIG_SERIAL_8250_DETECT_IRQ is not set CONFIG_SERIAL_8250_RSA=y CONFIG_SERIAL_8250_DWLIB=y CONFIG_SERIAL_8250_DW=y
# CONFIG_SERIAL_8250_RT288X is not set CONFIG_SERIAL_8250_LPSS=y CONFIG_SERIAL_8250_MID=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=yCONFIG_SERIAL_JSM=m
# CONFIG_SERIAL_LANTIQ is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_SC16IS7XX is not set
# CONFIG_SERIAL_BCM63XX is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not setCONFIG_SERIAL_ARC=mCONFIG_SERIAL_ARC_NR_PORTS=1
# 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=yCONFIG_SERIAL_NONSTANDARD=y
# CONFIG_MOXA_INTELLIO is not set
# CONFIG_MOXA_SMARTIO is not setCONFIG_SYNCLINK_GT=mCONFIG_N_HDLC=mCONFIG_N_GSM=mCONFIG_NOZOMI=m
# CONFIG_NULL_TTY is not setCONFIG_HVC_DRIVER=yCONFIG_HVC_IRQ=yCONFIG_HVC_XEN=yCONFIG_HVC_XEN_FRONTEND=y
# CONFIG_SERIAL_DEV_BUS is not setCONFIG_PRINTER=m
# CONFIG_LP_CONSOLE is not setCONFIG_PPDEV=mCONFIG_VIRTIO_CONSOLE=mCONFIG_IPMI_HANDLER=mCONFIG_IPMI_DMI_DECODE=yCONFIG_IPMI_PLAT_DATA=yCONFIG_IPMI_PANIC_EVENT=yCONFIG_IPMI_PANIC_STRING=yCONFIG_IPMI_DEVICE_INTERFACE=mCONFIG_IPMI_SI=mCONFIG_IPMI_SSIF=mCONFIG_IPMI_WATCHDOG=mCONFIG_IPMI_POWEROFF=mCONFIG_HW_RANDOM=yCONFIG_HW_RANDOM_TIMERIOMEM=mCONFIG_HW_RANDOM_INTEL=mCONFIG_HW_RANDOM_AMD=m
# CONFIG_HW_RANDOM_BA431 is not setCONFIG_HW_RANDOM_VIA=mCONFIG_HW_RANDOM_VIRTIO=y
# CONFIG_HW_RANDOM_XIPHERA is not set
# CONFIG_APPLICOM is not set
# CONFIG_MWAVE is not setCONFIG_DEVMEM=yCONFIG_NVRAM=yCONFIG_DEVPORT=yCONFIG_HPET=yCONFIG_HPET_MMAP=y
# CONFIG_HPET_MMAP_DEFAULT is not setCONFIG_HANGCHECK_TIMER=mCONFIG_UV_MMTIMER=mCONFIG_TCG_TPM=yCONFIG_HW_RANDOM_TPM=yCONFIG_TCG_TIS_CORE=yCONFIG_TCG_TIS=y
# CONFIG_TCG_TIS_SPI is not set
# CONFIG_TCG_TIS_I2C_CR50 is not setCONFIG_TCG_TIS_I2C_ATMEL=mCONFIG_TCG_TIS_I2C_INFINEON=mCONFIG_TCG_TIS_I2C_NUVOTON=mCONFIG_TCG_NSC=mCONFIG_TCG_ATMEL=mCONFIG_TCG_INFINEON=m
# CONFIG_TCG_XEN is not setCONFIG_TCG_CRB=y
# CONFIG_TCG_VTPM_PROXY is not setCONFIG_TCG_TIS_ST33ZP24=mCONFIG_TCG_TIS_ST33ZP24_I2C=m
# CONFIG_TCG_TIS_ST33ZP24_SPI is not setCONFIG_TELCLOCK=m
# CONFIG_XILLYBUS is not set
# CONFIG_XILLYUSB is not set
# end of Character devices
# CONFIG_RANDOM_TRUST_CPU is not set
# CONFIG_RANDOM_TRUST_BOOTLOADER is not set
#
# I2C support
#CONFIG_I2C=yCONFIG_ACPI_I2C_OPREGION=yCONFIG_I2C_BOARDINFO=yCONFIG_I2C_COMPAT=yCONFIG_I2C_CHARDEV=mCONFIG_I2C_MUX=m
#
# Multiplexer I2C Chip support
#
# CONFIG_I2C_MUX_GPIO is not set
# CONFIG_I2C_MUX_LTC4306 is not set
# CONFIG_I2C_MUX_PCA9541 is not set
# CONFIG_I2C_MUX_PCA954x is not set
# CONFIG_I2C_MUX_REG is not setCONFIG_I2C_MUX_MLXCPLD=m
# end of Multiplexer I2C Chip support
CONFIG_I2C_HELPER_AUTO=yCONFIG_I2C_SMBUS=yCONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCA=m
#
# 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 setCONFIG_I2C_AMD756=mCONFIG_I2C_AMD756_S4882=mCONFIG_I2C_AMD8111=m
# CONFIG_I2C_AMD_MP2 is not setCONFIG_I2C_I801=yCONFIG_I2C_ISCH=mCONFIG_I2C_ISMT=mCONFIG_I2C_PIIX4=mCONFIG_I2C_NFORCE2=mCONFIG_I2C_NFORCE2_S4985=m
# CONFIG_I2C_NVIDIA_GPU is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not setCONFIG_I2C_SIS96X=mCONFIG_I2C_VIA=mCONFIG_I2C_VIAPRO=m
#
# ACPI drivers
#CONFIG_I2C_SCMI=m
#
# I2C system bus drivers (mostly embedded / system-on-chip) #
# CONFIG_I2C_CBUS_GPIO is not set CONFIG_I2C_DESIGNWARE_CORE=m
# CONFIG_I2C_DESIGNWARE_SLAVE is not set CONFIG_I2C_DESIGNWARE_PLATFORM=m CONFIG_I2C_DESIGNWARE_BAYTRAIL=y
# 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=mCONFIG_I2C_SIMTEC=m
# CONFIG_I2C_XILINX is not set
#
# External I2C/SMBus adapter drivers
#
# CONFIG_I2C_DIOLAN_U2C is not set
# CONFIG_I2C_CP2615 is not setCONFIG_I2C_PARPORT=m
# 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=m
# end of I2C Hardware Bus support
CONFIG_I2C_STUB=m
# 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 set
# CONFIG_SPI_BITBANG is not set
# CONFIG_SPI_BUTTERFLY is not set
# 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_LM70_LLP 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 set
# CONFIG_SPI_XILINX is not set
# 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 is not set
# 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 setCONFIG_PPS_CLIENT_LDISC=mCONFIG_PPS_CLIENT_PARPORT=mCONFIG_PPS_CLIENT_GPIO=m
#
# PPS generators support
#
#
# PTP clock support
#CONFIG_PTP_1588_CLOCK=y
# CONFIG_DP83640_PHY is not set
# CONFIG_PTP_1588_CLOCK_INES is not setCONFIG_PTP_1588_CLOCK_KVM=m
# CONFIG_PTP_1588_CLOCK_IDT82P33 is not set
# CONFIG_PTP_1588_CLOCK_IDTCM is not set
# CONFIG_PTP_1588_CLOCK_VMW is not set
# CONFIG_PTP_1588_CLOCK_OCP is not set
# end of PTP clock support
CONFIG_PINCTRL=yCONFIG_PINMUX=yCONFIG_PINCONF=yCONFIG_GENERIC_PINCONF=y
# CONFIG_DEBUG_PINCTRL is not setCONFIG_PINCTRL_AMD=m
# CONFIG_PINCTRL_MCP23S08 is not set
# CONFIG_PINCTRL_SX150X is not setCONFIG_PINCTRL_BAYTRAIL=y
# CONFIG_PINCTRL_CHERRYVIEW is not set
# CONFIG_PINCTRL_LYNXPOINT is not setCONFIG_PINCTRL_INTEL=y
# CONFIG_PINCTRL_ALDERLAKE is not setCONFIG_PINCTRL_BROXTON=mCONFIG_PINCTRL_CANNONLAKE=mCONFIG_PINCTRL_CEDARFORK=mCONFIG_PINCTRL_DENVERTON=m
# CONFIG_PINCTRL_ELKHARTLAKE is not set
# CONFIG_PINCTRL_EMMITSBURG is not setCONFIG_PINCTRL_GEMINILAKE=m
# CONFIG_PINCTRL_ICELAKE is not set
# CONFIG_PINCTRL_JASPERLAKE is not set
# CONFIG_PINCTRL_LAKEFIELD is not setCONFIG_PINCTRL_LEWISBURG=mCONFIG_PINCTRL_SUNRISEPOINT=m
# CONFIG_PINCTRL_TIGERLAKE is not set
#
# Renesas pinctrl drivers
#
# end of Renesas pinctrl drivers
CONFIG_GPIOLIB=yCONFIG_GPIOLIB_FASTPATH_LIMIT=512CONFIG_GPIO_ACPI=yCONFIG_GPIOLIB_IRQCHIP=y
# CONFIG_DEBUG_GPIO is not setCONFIG_GPIO_CDEV=yCONFIG_GPIO_CDEV_V1=yCONFIG_GPIO_GENERIC=m
#
# Memory mapped GPIO drivers
#CONFIG_GPIO_AMDPT=m
# CONFIG_GPIO_DWAPB is not set
# CONFIG_GPIO_EXAR is not set
# CONFIG_GPIO_GENERIC_PLATFORM is not setCONFIG_GPIO_ICH=m
# 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_SCH 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
# end of Virtual GPIO drivers
# CONFIG_W1 is not setCONFIG_POWER_RESET=y
# CONFIG_POWER_RESET_RESTART is not setCONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not setCONFIG_POWER_SUPPLY_HWMON=y
# CONFIG_PDA_POWER is not set
# CONFIG_TEST_POWER is not set
# CONFIG_CHARGER_ADP5061 is not set
# CONFIG_BATTERY_CW2015 is not set
# CONFIG_BATTERY_DS2780 is not set
# CONFIG_BATTERY_DS2781 is not set
# CONFIG_BATTERY_DS2782 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_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_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 setCONFIG_CHARGER_SMB347=m
# 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 setCONFIG_HWMON=yCONFIG_HWMON_VID=m
# CONFIG_HWMON_DEBUG_CHIP is not set
#
# Native drivers
#CONFIG_SENSORS_ABITUGURU=mCONFIG_SENSORS_ABITUGURU3=m
# CONFIG_SENSORS_AD7314 is not setCONFIG_SENSORS_AD7414=mCONFIG_SENSORS_AD7418=mCONFIG_SENSORS_ADM1021=mCONFIG_SENSORS_ADM1025=mCONFIG_SENSORS_ADM1026=mCONFIG_SENSORS_ADM1029=mCONFIG_SENSORS_ADM1031=m
# CONFIG_SENSORS_ADM1177 is not setCONFIG_SENSORS_ADM9240=mCONFIG_SENSORS_ADT7X10=m
# CONFIG_SENSORS_ADT7310 is not setCONFIG_SENSORS_ADT7410=mCONFIG_SENSORS_ADT7411=mCONFIG_SENSORS_ADT7462=mCONFIG_SENSORS_ADT7470=mCONFIG_SENSORS_ADT7475=m
# CONFIG_SENSORS_AHT10 is not set
# CONFIG_SENSORS_AS370 is not setCONFIG_SENSORS_ASC7621=m
# CONFIG_SENSORS_AXI_FAN_CONTROL is not setCONFIG_SENSORS_K8TEMP=mCONFIG_SENSORS_K10TEMP=mCONFIG_SENSORS_FAM15H_POWER=mCONFIG_SENSORS_APPLESMC=mCONFIG_SENSORS_ASB100=m
# CONFIG_SENSORS_ASPEED is not setCONFIG_SENSORS_ATXP1=m
# CONFIG_SENSORS_CORSAIR_CPRO is not set
# CONFIG_SENSORS_CORSAIR_PSU is not set
# CONFIG_SENSORS_DRIVETEMP is not setCONFIG_SENSORS_DS620=mCONFIG_SENSORS_DS1621=mCONFIG_SENSORS_DELL_SMM=mCONFIG_SENSORS_I5K_AMB=mCONFIG_SENSORS_F71805F=mCONFIG_SENSORS_F71882FG=mCONFIG_SENSORS_F75375S=mCONFIG_SENSORS_FSCHMD=m
# CONFIG_SENSORS_FTSTEUTATES is not setCONFIG_SENSORS_GL518SM=mCONFIG_SENSORS_GL520SM=mCONFIG_SENSORS_G760A=m
# CONFIG_SENSORS_G762 is not set
# CONFIG_SENSORS_HIH6130 is not setCONFIG_SENSORS_IBMAEM=mCONFIG_SENSORS_IBMPEX=mCONFIG_SENSORS_I5500=mCONFIG_SENSORS_CORETEMP=mCONFIG_SENSORS_IT87=mCONFIG_SENSORS_JC42=m
# CONFIG_SENSORS_POWR1220 is not setCONFIG_SENSORS_LINEAGE=m
# 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 setCONFIG_SENSORS_LTC4151=mCONFIG_SENSORS_LTC4215=m
# CONFIG_SENSORS_LTC4222 is not setCONFIG_SENSORS_LTC4245=m
# CONFIG_SENSORS_LTC4260 is not setCONFIG_SENSORS_LTC4261=m
# CONFIG_SENSORS_MAX1111 is not set
# CONFIG_SENSORS_MAX127 is not setCONFIG_SENSORS_MAX16065=mCONFIG_SENSORS_MAX1619=mCONFIG_SENSORS_MAX1668=mCONFIG_SENSORS_MAX197=m
# CONFIG_SENSORS_MAX31722 is not set
# CONFIG_SENSORS_MAX31730 is not set
# CONFIG_SENSORS_MAX6621 is not setCONFIG_SENSORS_MAX6639=mCONFIG_SENSORS_MAX6642=mCONFIG_SENSORS_MAX6650=mCONFIG_SENSORS_MAX6697=m
# CONFIG_SENSORS_MAX31790 is not setCONFIG_SENSORS_MCP3021=m
# CONFIG_SENSORS_MLXREG_FAN 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 setCONFIG_SENSORS_LM63=m
# CONFIG_SENSORS_LM70 is not setCONFIG_SENSORS_LM73=mCONFIG_SENSORS_LM75=mCONFIG_SENSORS_LM77=mCONFIG_SENSORS_LM78=mCONFIG_SENSORS_LM80=mCONFIG_SENSORS_LM83=mCONFIG_SENSORS_LM85=mCONFIG_SENSORS_LM87=mCONFIG_SENSORS_LM90=mCONFIG_SENSORS_LM92=mCONFIG_SENSORS_LM93=mCONFIG_SENSORS_LM95234=mCONFIG_SENSORS_LM95241=mCONFIG_SENSORS_LM95245=mCONFIG_SENSORS_PC87360=mCONFIG_SENSORS_PC87427=mCONFIG_SENSORS_NTC_THERMISTOR=m
# CONFIG_SENSORS_NCT6683 is not setCONFIG_SENSORS_NCT6775=m
# CONFIG_SENSORS_NCT7802 is not set
# CONFIG_SENSORS_NCT7904 is not set
# CONFIG_SENSORS_NPCM7XX is not set
# CONFIG_SENSORS_NZXT_KRAKEN2 is not setCONFIG_SENSORS_PCF8591=mCONFIG_PMBUS=mCONFIG_SENSORS_PMBUS=m
# CONFIG_SENSORS_ADM1266 is not setCONFIG_SENSORS_ADM1275=m
# CONFIG_SENSORS_BEL_PFE is not set
# CONFIG_SENSORS_BPA_RS600 is not set
# CONFIG_SENSORS_FSP_3Y is not set
# CONFIG_SENSORS_IBM_CFFPS is not set
# CONFIG_SENSORS_DPS920AB is not set
# CONFIG_SENSORS_INSPUR_IPSPS is not set
# CONFIG_SENSORS_IR35221 is not set
# CONFIG_SENSORS_IR36021 is not set
# CONFIG_SENSORS_IR38064 is not set
# CONFIG_SENSORS_IRPS5401 is not set
# CONFIG_SENSORS_ISL68137 is not setCONFIG_SENSORS_LM25066=mCONFIG_SENSORS_LTC2978=m
# CONFIG_SENSORS_LTC3815 is not set
# CONFIG_SENSORS_MAX15301 is not setCONFIG_SENSORS_MAX16064=m
# CONFIG_SENSORS_MAX16601 is not set
# CONFIG_SENSORS_MAX20730 is not set
# CONFIG_SENSORS_MAX20751 is not set
# CONFIG_SENSORS_MAX31785 is not setCONFIG_SENSORS_MAX34440=mCONFIG_SENSORS_MAX8688=m
# CONFIG_SENSORS_MP2888 is not set
# CONFIG_SENSORS_MP2975 is not set
# CONFIG_SENSORS_PIM4328 is not set
# CONFIG_SENSORS_PM6764TR is not set
# CONFIG_SENSORS_PXE1610 is not set
# CONFIG_SENSORS_Q54SJ108A2 is not set
# CONFIG_SENSORS_STPDDC60 is not set
# CONFIG_SENSORS_TPS40422 is not set
# CONFIG_SENSORS_TPS53679 is not setCONFIG_SENSORS_UCD9000=mCONFIG_SENSORS_UCD9200=m
# CONFIG_SENSORS_XDPE122 is not setCONFIG_SENSORS_ZL6100=m
# CONFIG_SENSORS_SBTSI is not setCONFIG_SENSORS_SHT15=mCONFIG_SENSORS_SHT21=m
# CONFIG_SENSORS_SHT3x is not set
# CONFIG_SENSORS_SHT4x is not set
# CONFIG_SENSORS_SHTC1 is not setCONFIG_SENSORS_SIS5595=mCONFIG_SENSORS_DME1737=mCONFIG_SENSORS_EMC1403=m
# CONFIG_SENSORS_EMC2103 is not setCONFIG_SENSORS_EMC6W201=mCONFIG_SENSORS_SMSC47M1=mCONFIG_SENSORS_SMSC47M192=mCONFIG_SENSORS_SMSC47B397=mCONFIG_SENSORS_SCH56XX_COMMON=mCONFIG_SENSORS_SCH5627=mCONFIG_SENSORS_SCH5636=m
# CONFIG_SENSORS_STTS751 is not set
# CONFIG_SENSORS_SMM665 is not set
# CONFIG_SENSORS_ADC128D818 is not setCONFIG_SENSORS_ADS7828=m
# CONFIG_SENSORS_ADS7871 is not setCONFIG_SENSORS_AMC6821=mCONFIG_SENSORS_INA209=mCONFIG_SENSORS_INA2XX=m
# CONFIG_SENSORS_INA3221 is not set
# CONFIG_SENSORS_TC74 is not setCONFIG_SENSORS_THMC50=mCONFIG_SENSORS_TMP102=m
# CONFIG_SENSORS_TMP103 is not set
# CONFIG_SENSORS_TMP108 is not setCONFIG_SENSORS_TMP401=mCONFIG_SENSORS_TMP421=m
# CONFIG_SENSORS_TMP513 is not setCONFIG_SENSORS_VIA_CPUTEMP=mCONFIG_SENSORS_VIA686A=mCONFIG_SENSORS_VT1211=mCONFIG_SENSORS_VT8231=m
# CONFIG_SENSORS_W83773G is not setCONFIG_SENSORS_W83781D=mCONFIG_SENSORS_W83791D=mCONFIG_SENSORS_W83792D=mCONFIG_SENSORS_W83793=mCONFIG_SENSORS_W83795=m
# CONFIG_SENSORS_W83795_FANCTRL is not setCONFIG_SENSORS_W83L785TS=mCONFIG_SENSORS_W83L786NG=mCONFIG_SENSORS_W83627HF=mCONFIG_SENSORS_W83627EHF=m
# CONFIG_SENSORS_XGENE is not set
#
# ACPI drivers
#CONFIG_SENSORS_ACPI_POWER=m CONFIG_SENSORS_ATK0110=mCONFIG_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=y CONFIG_THERMAL_GOV_STEP_WISE=y CONFIG_THERMAL_GOV_BANG_BANG=y CONFIG_THERMAL_GOV_USER_SPACE=y
# CONFIG_THERMAL_EMULATION is not set
#
# Intel thermal drivers
#CONFIG_INTEL_POWERCLAMP=mCONFIG_X86_THERMAL_VECTOR=yCONFIG_X86_PKG_TEMP_THERMAL=mCONFIG_INTEL_SOC_DTS_IOSF_CORE=m
# CONFIG_INTEL_SOC_DTS_THERMAL is not set
#
# ACPI INT340X thermal drivers
#CONFIG_INT340X_THERMAL=mCONFIG_ACPI_THERMAL_REL=m
# CONFIG_INT3406_THERMAL is not setCONFIG_PROC_THERMAL_MMIO_RAPL=m
# end of ACPI INT340X thermal drivers
CONFIG_INTEL_PCH_THERMAL=m
# CONFIG_INTEL_TCC_COOLING 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=0CONFIG_WATCHDOG_SYSFS=y
# CONFIG_WATCHDOG_HRTIMER_PRETIMEOUT is not set
#
# Watchdog Pretimeout Governors
#
# CONFIG_WATCHDOG_PRETIMEOUT_GOV is not set
#
# Watchdog Device Drivers
#CONFIG_SOFT_WATCHDOG=mCONFIG_WDAT_WDT=m
# CONFIG_XILINX_WATCHDOG is not set
# CONFIG_ZIIRAVE_WATCHDOG is not set
# CONFIG_MLX_WDT 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 setCONFIG_ALIM1535_WDT=mCONFIG_ALIM7101_WDT=m
# CONFIG_EBC_C384_WDT is not setCONFIG_F71808E_WDT=mCONFIG_SP5100_TCO=mCONFIG_SBC_FITPC2_WATCHDOG=m
# CONFIG_EUROTECH_WDT is not setCONFIG_IB700_WDT=mCONFIG_IBMASR=m
# CONFIG_WAFER_WDT is not setCONFIG_I6300ESB_WDT=yCONFIG_IE6XX_WDT=mCONFIG_ITCO_WDT=yCONFIG_ITCO_VENDOR_SUPPORT=yCONFIG_IT8712F_WDT=mCONFIG_IT87_WDT=mCONFIG_HP_WATCHDOG=mCONFIG_HPWDT_NMI_DECODING=y
# CONFIG_SC1200_WDT is not set
# CONFIG_PC87413_WDT is not setCONFIG_NV_TCO=m
# CONFIG_60XX_WDT is not set
# CONFIG_CPU5_WDT is not setCONFIG_SMSC_SCH311X_WDT=m
# CONFIG_SMSC37B787_WDT is not set
# CONFIG_TQMX86_WDT is not setCONFIG_VIA_WDT=mCONFIG_W83627HF_WDT=mCONFIG_W83877F_WDT=mCONFIG_W83977F_WDT=mCONFIG_MACHZ_WDT=m
# CONFIG_SBC_EPX_C3_WATCHDOG is not setCONFIG_INTEL_MEI_WDT=m
# CONFIG_NI903X_WDT is not set
# CONFIG_NIC7018_WDT is not set
# CONFIG_MEN_A21_WDT is not setCONFIG_XEN_WDT=m
#
# PCI-based Watchdog Cards
#CONFIG_PCIPCWATCHDOG=mCONFIG_WDTPCI=m
#
# USB-based Watchdog Cards
#
# CONFIG_USBPCWATCHDOG is not setCONFIG_SSB_POSSIBLE=y
# CONFIG_SSB is not setCONFIG_BCMA_POSSIBLE=yCONFIG_BCMA=mCONFIG_BCMA_HOST_PCI_POSSIBLE=yCONFIG_BCMA_HOST_PCI=y
# CONFIG_BCMA_HOST_SOC is not setCONFIG_BCMA_DRIVER_PCI=yCONFIG_BCMA_DRIVER_GMAC_CMN=yCONFIG_BCMA_DRIVER_GPIO=y
# CONFIG_BCMA_DEBUG 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=yCONFIG_LPC_SCH=m
# CONFIG_INTEL_SOC_PMIC_CHTDC_TI is not setCONFIG_MFD_INTEL_LPSS=yCONFIG_MFD_INTEL_LPSS_ACPI=yCONFIG_MFD_INTEL_LPSS_PCI=y
# CONFIG_MFD_INTEL_PMC_BXT is not set
# CONFIG_MFD_INTEL_PMT 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 setCONFIG_MFD_SM501=mCONFIG_MFD_SM501_GPIO=y
# 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_MFD_TPS80031 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 setCONFIG_MFD_VX855=m
# 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 setCONFIG_RC_CORE=mCONFIG_RC_MAP=mCONFIG_LIRC=yCONFIG_RC_DECODERS=yCONFIG_IR_NEC_DECODER=mCONFIG_IR_RC5_DECODER=mCONFIG_IR_RC6_DECODER=mCONFIG_IR_JVC_DECODER=mCONFIG_IR_SONY_DECODER=mCONFIG_IR_SANYO_DECODER=m
# CONFIG_IR_SHARP_DECODER is not setCONFIG_IR_MCE_KBD_DECODER=m
# CONFIG_IR_XMP_DECODER is not setCONFIG_IR_IMON_DECODER=m
# CONFIG_IR_RCMM_DECODER is not setCONFIG_RC_DEVICES=y
# CONFIG_RC_ATI_REMOTE is not setCONFIG_IR_ENE=m
# CONFIG_IR_IMON is not set
# CONFIG_IR_IMON_RAW is not set
# CONFIG_IR_MCEUSB is not setCONFIG_IR_ITE_CIR=mCONFIG_IR_FINTEK=mCONFIG_IR_NUVOTON=m
# CONFIG_IR_REDRAT3 is not set
# CONFIG_IR_STREAMZAP is not setCONFIG_IR_WINBOND_CIR=m
# CONFIG_IR_IGORPLUGUSB is not set
# CONFIG_IR_IGUANA is not set
# CONFIG_IR_TTUSBIR is not set
# CONFIG_RC_LOOPBACK is not setCONFIG_IR_SERIAL=mCONFIG_IR_SERIAL_TRANSMITTER=yCONFIG_IR_SIR=m
# CONFIG_RC_XBOX_DVD is not set
# CONFIG_IR_TOY is not setCONFIG_MEDIA_CEC_SUPPORT=y
# CONFIG_CEC_CH7322 is not set
# CONFIG_CEC_SECO is not set
# CONFIG_USB_PULSE8_CEC is not set
# CONFIG_USB_RAINSHADOW_CEC is not setCONFIG_MEDIA_SUPPORT=m
# CONFIG_MEDIA_SUPPORT_FILTER is not set
# CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set
#
# Media device types
#CONFIG_MEDIA_CAMERA_SUPPORT=yCONFIG_MEDIA_ANALOG_TV_SUPPORT=yCONFIG_MEDIA_DIGITAL_TV_SUPPORT=yCONFIG_MEDIA_RADIO_SUPPORT=yCONFIG_MEDIA_SDR_SUPPORT=yCONFIG_MEDIA_PLATFORM_SUPPORT=yCONFIG_MEDIA_TEST_SUPPORT=y
# end of Media device types
#
# Media core support
#CONFIG_VIDEO_DEV=mCONFIG_MEDIA_CONTROLLER=yCONFIG_DVB_CORE=m
# end of Media core support
#
# Video4Linux options
#CONFIG_VIDEO_V4L2=mCONFIG_VIDEO_V4L2_I2C=yCONFIG_VIDEO_V4L2_SUBDEV_API=y
# CONFIG_VIDEO_ADV_DEBUG is not set
# CONFIG_VIDEO_FIXED_MINOR_RANGES is not set
# end of Video4Linux options
#
# Media controller options
#
# CONFIG_MEDIA_CONTROLLER_DVB is not set
# end of Media controller options
#
# Digital TV options
#
# CONFIG_DVB_MMAP is not setCONFIG_DVB_NET=yCONFIG_DVB_MAX_ADAPTERS=16CONFIG_DVB_DYNAMIC_MINORS=y
# CONFIG_DVB_DEMUX_SECTION_LOSS_LOG is not set
# CONFIG_DVB_ULE_DEBUG is not set
# end of Digital TV options
#
# Media drivers
#
# CONFIG_MEDIA_USB_SUPPORT is not set
# CONFIG_MEDIA_PCI_SUPPORT is not setCONFIG_RADIO_ADAPTERS=y
# CONFIG_RADIO_SI470X is not set
# CONFIG_RADIO_SI4713 is not set
# CONFIG_USB_MR800 is not set
# CONFIG_USB_DSBR is not set
# CONFIG_RADIO_MAXIRADIO is not set
# CONFIG_RADIO_SHARK is not set
# CONFIG_RADIO_SHARK2 is not set
# CONFIG_USB_KEENE is not set
# CONFIG_USB_RAREMONO is not set
# CONFIG_USB_MA901 is not set
# CONFIG_RADIO_TEA5764 is not set
# CONFIG_RADIO_SAA7706H is not set
# CONFIG_RADIO_TEF6862 is not set
# CONFIG_RADIO_WL1273 is not setCONFIG_VIDEOBUF2_CORE=mCONFIG_VIDEOBUF2_V4L2=mCONFIG_VIDEOBUF2_MEMOPS=mCONFIG_VIDEOBUF2_VMALLOC=m
# CONFIG_V4L_PLATFORM_DRIVERS is not set
# CONFIG_V4L_MEM2MEM_DRIVERS is not set
# CONFIG_DVB_PLATFORM_DRIVERS is not set
# CONFIG_SDR_PLATFORM_DRIVERS is not set
#
# MMC/SDIO DVB adapters
#
# CONFIG_SMS_SDIO_DRV is not set
# CONFIG_V4L_TEST_DRIVERS is not set
# CONFIG_DVB_TEST_DRIVERS is not set
#
# FireWire (IEEE 1394) Adapters
#
# CONFIG_DVB_FIREDTV is not set
# end of Media drivers
#
# Media ancillary drivers
#CONFIG_MEDIA_ATTACH=yCONFIG_VIDEO_IR_I2C=m
#
# Audio decoders, processors and mixers
#
# CONFIG_VIDEO_TVAUDIO is not set
# CONFIG_VIDEO_TDA7432 is not set
# CONFIG_VIDEO_TDA9840 is not set
# CONFIG_VIDEO_TEA6415C is not set
# CONFIG_VIDEO_TEA6420 is not set
# CONFIG_VIDEO_MSP3400 is not set
# CONFIG_VIDEO_CS3308 is not set
# CONFIG_VIDEO_CS5345 is not set
# CONFIG_VIDEO_CS53L32A is not set
# CONFIG_VIDEO_TLV320AIC23B is not set
# CONFIG_VIDEO_UDA1342 is not set
# CONFIG_VIDEO_WM8775 is not set
# CONFIG_VIDEO_WM8739 is not set
# CONFIG_VIDEO_VP27SMPX is not set
# CONFIG_VIDEO_SONY_BTF_MPX is not set
# end of Audio decoders, processors and mixers
#
# RDS decoders
#
# CONFIG_VIDEO_SAA6588 is not set
# end of RDS decoders
#
# Video decoders
#
# CONFIG_VIDEO_ADV7180 is not set
# CONFIG_VIDEO_ADV7183 is not set
# CONFIG_VIDEO_ADV7604 is not set
# CONFIG_VIDEO_ADV7842 is not set
# CONFIG_VIDEO_BT819 is not set
# CONFIG_VIDEO_BT856 is not set
# CONFIG_VIDEO_BT866 is not set
# CONFIG_VIDEO_KS0127 is not set
# CONFIG_VIDEO_ML86V7667 is not set
# CONFIG_VIDEO_SAA7110 is not set
# CONFIG_VIDEO_SAA711X is not set
# CONFIG_VIDEO_TC358743 is not set
# CONFIG_VIDEO_TVP514X is not set
# CONFIG_VIDEO_TVP5150 is not set
# CONFIG_VIDEO_TVP7002 is not set
# CONFIG_VIDEO_TW2804 is not set
# CONFIG_VIDEO_TW9903 is not set
# CONFIG_VIDEO_TW9906 is not set
# CONFIG_VIDEO_TW9910 is not set
# CONFIG_VIDEO_VPX3220 is not set
#
# Video and audio decoders
#
# CONFIG_VIDEO_SAA717X is not set
# CONFIG_VIDEO_CX25840 is not set
# end of Video decoders
#
# Video encoders
#
# CONFIG_VIDEO_SAA7127 is not set
# CONFIG_VIDEO_SAA7185 is not set
# CONFIG_VIDEO_ADV7170 is not set
# CONFIG_VIDEO_ADV7175 is not set
# CONFIG_VIDEO_ADV7343 is not set
# CONFIG_VIDEO_ADV7393 is not set
# CONFIG_VIDEO_ADV7511 is not set
# CONFIG_VIDEO_AD9389B is not set
# CONFIG_VIDEO_AK881X is not set
# CONFIG_VIDEO_THS8200 is not set
# end of Video encoders
#
# Video improvement chips
#
# CONFIG_VIDEO_UPD64031A is not set
# CONFIG_VIDEO_UPD64083 is not set
# end of Video improvement chips
#
# Audio/Video compression chips
#
# CONFIG_VIDEO_SAA6752HS is not set
# end of Audio/Video compression chips
#
# SDR tuner chips
#
# CONFIG_SDR_MAX2175 is not set
# end of SDR tuner chips
#
# Miscellaneous helper chips
#
# CONFIG_VIDEO_THS7303 is not set
# CONFIG_VIDEO_M52790 is not set
# CONFIG_VIDEO_I2C is not set
# CONFIG_VIDEO_ST_MIPID02 is not set
# end of Miscellaneous helper chips
#
# Camera sensor devices
#
# CONFIG_VIDEO_HI556 is not set
# CONFIG_VIDEO_IMX208 is not set
# CONFIG_VIDEO_IMX214 is not set
# CONFIG_VIDEO_IMX219 is not set
# CONFIG_VIDEO_IMX258 is not set
# CONFIG_VIDEO_IMX274 is not set
# CONFIG_VIDEO_IMX290 is not set
# CONFIG_VIDEO_IMX319 is not set
# CONFIG_VIDEO_IMX355 is not set
# CONFIG_VIDEO_OV02A10 is not set
# CONFIG_VIDEO_OV2640 is not set
# CONFIG_VIDEO_OV2659 is not set
# CONFIG_VIDEO_OV2680 is not set
# CONFIG_VIDEO_OV2685 is not set
# CONFIG_VIDEO_OV2740 is not set
# CONFIG_VIDEO_OV5647 is not set
# CONFIG_VIDEO_OV5648 is not set
# CONFIG_VIDEO_OV6650 is not set
# CONFIG_VIDEO_OV5670 is not set
# CONFIG_VIDEO_OV5675 is not set
# CONFIG_VIDEO_OV5695 is not set
# CONFIG_VIDEO_OV7251 is not set
# CONFIG_VIDEO_OV772X is not set
# CONFIG_VIDEO_OV7640 is not set
# CONFIG_VIDEO_OV7670 is not set
# CONFIG_VIDEO_OV7740 is not set
# CONFIG_VIDEO_OV8856 is not set
# CONFIG_VIDEO_OV8865 is not set
# CONFIG_VIDEO_OV9640 is not set
# CONFIG_VIDEO_OV9650 is not set
# CONFIG_VIDEO_OV9734 is not set
# CONFIG_VIDEO_OV13858 is not set
# CONFIG_VIDEO_VS6624 is not set
# CONFIG_VIDEO_MT9M001 is not set
# CONFIG_VIDEO_MT9M032 is not set
# CONFIG_VIDEO_MT9M111 is not set
# CONFIG_VIDEO_MT9P031 is not set
# CONFIG_VIDEO_MT9T001 is not set
# CONFIG_VIDEO_MT9T112 is not set
# CONFIG_VIDEO_MT9V011 is not set
# CONFIG_VIDEO_MT9V032 is not set
# CONFIG_VIDEO_MT9V111 is not set
# CONFIG_VIDEO_SR030PC30 is not set
# CONFIG_VIDEO_NOON010PC30 is not set
# CONFIG_VIDEO_M5MOLS is not set
# CONFIG_VIDEO_RDACM20 is not set
# CONFIG_VIDEO_RDACM21 is not set
# CONFIG_VIDEO_RJ54N1 is not set
# CONFIG_VIDEO_S5K6AA is not set
# CONFIG_VIDEO_S5K6A3 is not set
# CONFIG_VIDEO_S5K4ECGX is not set
# CONFIG_VIDEO_S5K5BAF is not set
# CONFIG_VIDEO_CCS is not set
# CONFIG_VIDEO_ET8EK8 is not set
# CONFIG_VIDEO_S5C73M3 is not set
# end of Camera sensor devices
#
# Lens drivers
#
# CONFIG_VIDEO_AD5820 is not set
# CONFIG_VIDEO_AK7375 is not set
# CONFIG_VIDEO_DW9714 is not set
# CONFIG_VIDEO_DW9768 is not set
# CONFIG_VIDEO_DW9807_VCM is not set
# end of Lens drivers
#
# Flash devices
#
# CONFIG_VIDEO_ADP1653 is not set
# CONFIG_VIDEO_LM3560 is not set
# CONFIG_VIDEO_LM3646 is not set
# end of Flash devices
#
# SPI helper chips
#
# CONFIG_VIDEO_GS1662 is not set
# end of SPI helper chips
#
# Media SPI Adapters
#CONFIG_CXD2880_SPI_DRV=m
# end of Media SPI Adapters
CONFIG_MEDIA_TUNER=m
#
# Customize TV tuners
#CONFIG_MEDIA_TUNER_SIMPLE=mCONFIG_MEDIA_TUNER_TDA18250=mCONFIG_MEDIA_TUNER_TDA8290=mCONFIG_MEDIA_TUNER_TDA827X=mCONFIG_MEDIA_TUNER_TDA18271=mCONFIG_MEDIA_TUNER_TDA9887=mCONFIG_MEDIA_TUNER_TEA5761=mCONFIG_MEDIA_TUNER_TEA5767=mCONFIG_MEDIA_TUNER_MSI001=mCONFIG_MEDIA_TUNER_MT20XX=mCONFIG_MEDIA_TUNER_MT2060=mCONFIG_MEDIA_TUNER_MT2063=mCONFIG_MEDIA_TUNER_MT2266=mCONFIG_MEDIA_TUNER_MT2131=mCONFIG_MEDIA_TUNER_QT1010=mCONFIG_MEDIA_TUNER_XC2028=mCONFIG_MEDIA_TUNER_XC5000=mCONFIG_MEDIA_TUNER_XC4000=mCONFIG_MEDIA_TUNER_MXL5005S=mCONFIG_MEDIA_TUNER_MXL5007T=mCONFIG_MEDIA_TUNER_MC44S803=mCONFIG_MEDIA_TUNER_MAX2165=mCONFIG_MEDIA_TUNER_TDA18218=mCONFIG_MEDIA_TUNER_FC0011=mCONFIG_MEDIA_TUNER_FC0012=mCONFIG_MEDIA_TUNER_FC0013=mCONFIG_MEDIA_TUNER_TDA18212=mCONFIG_MEDIA_TUNER_E4000=mCONFIG_MEDIA_TUNER_FC2580=mCONFIG_MEDIA_TUNER_M88RS6000T=mCONFIG_MEDIA_TUNER_TUA9001=mCONFIG_MEDIA_TUNER_SI2157=mCONFIG_MEDIA_TUNER_IT913X=mCONFIG_MEDIA_TUNER_R820T=mCONFIG_MEDIA_TUNER_MXL301RF=mCONFIG_MEDIA_TUNER_QM1D1C0042=mCONFIG_MEDIA_TUNER_QM1D1B0004=m
# end of Customize TV tuners
#
# Customise DVB Frontends
#
#
# Multistandard (satellite) frontends
#CONFIG_DVB_STB0899=mCONFIG_DVB_STB6100=m
CONFIG_DVB_STV090x=mCONFIG_DVB_STV0910=m
CONFIG_DVB_STV6110x=mCONFIG_DVB_STV6111=mCONFIG_DVB_MXL5XX=mCONFIG_DVB_M88DS3103=m
#
# Multistandard (cable + terrestrial) frontends
#CONFIG_DVB_DRXK=mCONFIG_DVB_TDA18271C2DD=mCONFIG_DVB_SI2165=mCONFIG_DVB_MN88472=mCONFIG_DVB_MN88473=m
#
# DVB-S (satellite) frontends
#CONFIG_DVB_CX24110=mCONFIG_DVB_CX24123=mCONFIG_DVB_MT312=mCONFIG_DVB_ZL10036=mCONFIG_DVB_ZL10039=mCONFIG_DVB_S5H1420=mCONFIG_DVB_STV0288=mCONFIG_DVB_STB6000=mCONFIG_DVB_STV0299=mCONFIG_DVB_STV6110=mCONFIG_DVB_STV0900=mCONFIG_DVB_TDA8083=mCONFIG_DVB_TDA10086=mCONFIG_DVB_TDA8261=mCONFIG_DVB_VES1X93=mCONFIG_DVB_TUNER_ITD1000=mCONFIG_DVB_TUNER_CX24113=mCONFIG_DVB_TDA826X=mCONFIG_DVB_TUA6100=mCONFIG_DVB_CX24116=mCONFIG_DVB_CX24117=mCONFIG_DVB_CX24120=mCONFIG_DVB_SI21XX=mCONFIG_DVB_TS2020=mCONFIG_DVB_DS3000=mCONFIG_DVB_MB86A16=mCONFIG_DVB_TDA10071=m
#
# DVB-T (terrestrial) frontends
#CONFIG_DVB_SP887X=mCONFIG_DVB_CX22700=mCONFIG_DVB_CX22702=mCONFIG_DVB_S5H1432=mCONFIG_DVB_DRXD=mCONFIG_DVB_L64781=mCONFIG_DVB_TDA1004X=mCONFIG_DVB_NXT6000=mCONFIG_DVB_MT352=mCONFIG_DVB_ZL10353=mCONFIG_DVB_DIB3000MB=mCONFIG_DVB_DIB3000MC=mCONFIG_DVB_DIB7000M=mCONFIG_DVB_DIB7000P=mCONFIG_DVB_DIB9000=mCONFIG_DVB_TDA10048=mCONFIG_DVB_AF9013=mCONFIG_DVB_EC100=mCONFIG_DVB_STV0367=mCONFIG_DVB_CXD2820R=mCONFIG_DVB_CXD2841ER=mCONFIG_DVB_RTL2830=mCONFIG_DVB_RTL2832=mCONFIG_DVB_RTL2832_SDR=mCONFIG_DVB_SI2168=mCONFIG_DVB_ZD1301_DEMOD=mCONFIG_DVB_CXD2880=m
#
# DVB-C (cable) frontends
#CONFIG_DVB_VES1820=mCONFIG_DVB_TDA10021=mCONFIG_DVB_TDA10023=mCONFIG_DVB_STV0297=m
#
# ATSC (North American/Korean Terrestrial/Cable DTV) frontends #CONFIG_DVB_NXT200X=mCONFIG_DVB_OR51211=mCONFIG_DVB_OR51132=mCONFIG_DVB_BCM3510=mCONFIG_DVB_LGDT330X=mCONFIG_DVB_LGDT3305=mCONFIG_DVB_LGDT3306A=mCONFIG_DVB_LG2160=mCONFIG_DVB_S5H1409=mCONFIG_DVB_AU8522=mCONFIG_DVB_AU8522_DTV=mCONFIG_DVB_AU8522_V4L=mCONFIG_DVB_S5H1411=mCONFIG_DVB_MXL692=m
#
# ISDB-T (terrestrial) frontends
#CONFIG_DVB_S921=mCONFIG_DVB_DIB8000=mCONFIG_DVB_MB86A20S=m
#
# ISDB-S (satellite) & ISDB-T (terrestrial) frontends #CONFIG_DVB_TC90522=mCONFIG_DVB_MN88443X=m
#
# Digital terrestrial only tuners/PLL
#CONFIG_DVB_PLL=mCONFIG_DVB_TUNER_DIB0070=mCONFIG_DVB_TUNER_DIB0090=m
#
# SEC control devices for DVB-S
#CONFIG_DVB_DRX39XYJ=mCONFIG_DVB_LNBH25=mCONFIG_DVB_LNBH29=mCONFIG_DVB_LNBP21=mCONFIG_DVB_LNBP22=mCONFIG_DVB_ISL6405=mCONFIG_DVB_ISL6421=mCONFIG_DVB_ISL6423=mCONFIG_DVB_A8293=mCONFIG_DVB_LGS8GL5=mCONFIG_DVB_LGS8GXX=mCONFIG_DVB_ATBM8830=m
CONFIG_DVB_TDA665x=mCONFIG_DVB_IX2505V=mCONFIG_DVB_M88RS2000=mCONFIG_DVB_AF9033=mCONFIG_DVB_HORUS3A=mCONFIG_DVB_ASCOT2E=mCONFIG_DVB_HELENE=m
#
# Common Interface (EN50221) controller drivers
#CONFIG_DVB_CXD2099=mCONFIG_DVB_SP2=m
# end of Customise DVB Frontends
#
# Tools to develop new frontends
#
# CONFIG_DVB_DUMMY_FE is not set
# end of Media ancillary drivers
#
# Graphics support
#
# CONFIG_AGP is not setCONFIG_INTEL_GTT=mCONFIG_VGA_ARB=yCONFIG_VGA_ARB_MAX_GPUS=64CONFIG_VGA_SWITCHEROO=yCONFIG_DRM=mCONFIG_DRM_MIPI_DSI=yCONFIG_DRM_DP_AUX_CHARDEV=y
# CONFIG_DRM_DEBUG_SELFTEST is not setCONFIG_DRM_KMS_HELPER=mCONFIG_DRM_FBDEV_EMULATION=yCONFIG_DRM_FBDEV_OVERALLOC=100CONFIG_DRM_LOAD_EDID_FIRMWARE=y
# CONFIG_DRM_DP_CEC is not setCONFIG_DRM_TTM=mCONFIG_DRM_VRAM_HELPER=mCONFIG_DRM_TTM_HELPER=mCONFIG_DRM_GEM_SHMEM_HELPER=y
#
# I2C encoder or helper chips
#CONFIG_DRM_I2C_CH7006=mCONFIG_DRM_I2C_SIL164=m
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_I2C_NXP_TDA9950 is not set
# end of I2C encoder or helper chips
#
# ARM devices
#
# end of ARM devices
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_AMDGPU is not set
# CONFIG_DRM_NOUVEAU is not setCONFIG_DRM_I915=mCONFIG_DRM_I915_FORCE_PROBE=""CONFIG_DRM_I915_CAPTURE_ERROR=yCONFIG_DRM_I915_COMPRESS_ERROR=yCONFIG_DRM_I915_USERPTR=yCONFIG_DRM_I915_GVT=yCONFIG_DRM_I915_GVT_KVMGT=mCONFIG_DRM_I915_REQUEST_TIMEOUT=20000CONFIG_DRM_I915_FENCE_TIMEOUT=10000CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250CONFIG_DRM_I915_HEARTBEAT_INTERVAL=2500CONFIG_DRM_I915_PREEMPT_TIMEOUT=640CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT=8000CONFIG_DRM_I915_STOP_TIMEOUT=100CONFIG_DRM_I915_TIMESLICE_DURATION=1
# CONFIG_DRM_VGEM is not set
# CONFIG_DRM_VKMS is not set
# CONFIG_DRM_VMWGFX is not setCONFIG_DRM_GMA500=m
# CONFIG_DRM_UDL is not setCONFIG_DRM_AST=mCONFIG_DRM_MGAG200=mCONFIG_DRM_QXL=mCONFIG_DRM_BOCHS=mCONFIG_DRM_VIRTIO_GPU=mCONFIG_DRM_PANEL=y
#
# Display Panels
#
# CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN is not set
# end of Display Panels
CONFIG_DRM_BRIDGE=yCONFIG_DRM_PANEL_BRIDGE=y
#
# Display Interface Bridges
#
# CONFIG_DRM_ANALOGIX_ANX78XX is not set
# end of Display Interface Bridges
# CONFIG_DRM_ETNAVIV is not setCONFIG_DRM_CIRRUS_QEMU=m
# CONFIG_DRM_GM12U320 is not set
# CONFIG_DRM_SIMPLEDRM is not set
# CONFIG_TINYDRM_HX8357D is not set
# CONFIG_TINYDRM_ILI9225 is not set
# CONFIG_TINYDRM_ILI9341 is not set
# CONFIG_TINYDRM_ILI9486 is not set
# CONFIG_TINYDRM_MI0283QT is not set
# CONFIG_TINYDRM_REPAPER is not set
# CONFIG_TINYDRM_ST7586 is not set
# CONFIG_TINYDRM_ST7735R is not set
# CONFIG_DRM_XEN_FRONTEND is not set
# CONFIG_DRM_VBOXVIDEO is not set
# CONFIG_DRM_GUD is not set
# CONFIG_DRM_HYPERV is not set
# CONFIG_DRM_LEGACY is not setCONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y
#
# Frame buffer Devices
#CONFIG_FB_CMDLINE=yCONFIG_FB_NOTIFY=yCONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not setCONFIG_FB_BOOT_VESA_SUPPORT=yCONFIG_FB_CFB_FILLRECT=yCONFIG_FB_CFB_COPYAREA=yCONFIG_FB_CFB_IMAGEBLIT=yCONFIG_FB_SYS_FILLRECT=mCONFIG_FB_SYS_COPYAREA=mCONFIG_FB_SYS_IMAGEBLIT=m
# CONFIG_FB_FOREIGN_ENDIAN is not setCONFIG_FB_SYS_FOPS=mCONFIG_FB_DEFERRED_IO=y
# CONFIG_FB_MODE_HELPERS is not setCONFIG_FB_TILEBLITTING=y
#
# 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 setCONFIG_FB_VESA=yCONFIG_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_SM501 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_XEN_FBDEV_FRONTEND is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not setCONFIG_FB_HYPERV=m
# 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=m
# CONFIG_LCD_L4F00242T03 is not set
# CONFIG_LCD_LMS283GF05 is not set
# CONFIG_LCD_LTV350QV is not set
# CONFIG_LCD_ILI922X is not set
# CONFIG_LCD_ILI9320 is not set
# CONFIG_LCD_TDO24M is not set
# CONFIG_LCD_VGG2432A4 is not setCONFIG_LCD_PLATFORM=m
# CONFIG_LCD_AMS369FG06 is not set
# CONFIG_LCD_LMS501KF03 is not set
# CONFIG_LCD_HX8357 is not set
# CONFIG_LCD_OTM3225A is not setCONFIG_BACKLIGHT_CLASS_DEVICE=y
# CONFIG_BACKLIGHT_KTD253 is not set
# CONFIG_BACKLIGHT_PWM is not setCONFIG_BACKLIGHT_APPLE=m
# CONFIG_BACKLIGHT_QCOM_WLED is not set
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_BACKLIGHT_LM3630A is not set
# CONFIG_BACKLIGHT_LM3639 is not setCONFIG_BACKLIGHT_LP855X=m
# CONFIG_BACKLIGHT_GPIO is not set
# CONFIG_BACKLIGHT_LV5207LP is not set
# CONFIG_BACKLIGHT_BD6107 is not set
# CONFIG_BACKLIGHT_ARCXCNN is not set
# end of Backlight & LCD device support
CONFIG_HDMI=y
#
# 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_DETECT_PRIMARY=y CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
# CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set
# end of Console display driver support
CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_MONO is not set
# CONFIG_LOGO_LINUX_VGA16 is not setCONFIG_LOGO_LINUX_CLUT224=y
# end of Graphics support
# CONFIG_SOUND is not set
#
# HID support
#CONFIG_HID=yCONFIG_HID_BATTERY_STRENGTH=yCONFIG_HIDRAW=yCONFIG_UHID=mCONFIG_HID_GENERIC=y
#
# Special HID drivers
#CONFIG_HID_A4TECH=m
# CONFIG_HID_ACCUTOUCH is not setCONFIG_HID_ACRUX=m
# CONFIG_HID_ACRUX_FF is not setCONFIG_HID_APPLE=m
# CONFIG_HID_APPLEIR is not setCONFIG_HID_ASUS=mCONFIG_HID_AUREAL=mCONFIG_HID_BELKIN=m
# CONFIG_HID_BETOP_FF is not set
# CONFIG_HID_BIGBEN_FF is not setCONFIG_HID_CHERRY=mCONFIG_HID_CHICONY=m
# CONFIG_HID_CORSAIR is not set
# CONFIG_HID_COUGAR is not set
# CONFIG_HID_MACALLY is not setCONFIG_HID_CMEDIA=m
# CONFIG_HID_CP2112 is not set
# CONFIG_HID_CREATIVE_SB0540 is not setCONFIG_HID_CYPRESS=mCONFIG_HID_DRAGONRISE=m
# CONFIG_DRAGONRISE_FF is not set
# CONFIG_HID_EMS_FF is not set
# CONFIG_HID_ELAN is not setCONFIG_HID_ELECOM=m
# CONFIG_HID_ELO is not setCONFIG_HID_EZKEY=m
# CONFIG_HID_FT260 is not setCONFIG_HID_GEMBIRD=mCONFIG_HID_GFRM=m
# CONFIG_HID_GLORIOUS is not set
# CONFIG_HID_HOLTEK is not set
# CONFIG_HID_VIVALDI is not set
# CONFIG_HID_GT683R is not setCONFIG_HID_KEYTOUCH=mCONFIG_HID_KYE=m
# CONFIG_HID_UCLOGIC is not setCONFIG_HID_WALTOP=m
# CONFIG_HID_VIEWSONIC is not setCONFIG_HID_GYRATION=mCONFIG_HID_ICADE=mCONFIG_HID_ITE=mCONFIG_HID_JABRA=mCONFIG_HID_TWINHAN=mCONFIG_HID_KENSINGTON=mCONFIG_HID_LCPOWER=mCONFIG_HID_LED=mCONFIG_HID_LENOVO=mCONFIG_HID_LOGITECH=mCONFIG_HID_LOGITECH_DJ=mCONFIG_HID_LOGITECH_HIDPP=m
# CONFIG_LOGITECH_FF is not set
# CONFIG_LOGIRUMBLEPAD2_FF is not set
# CONFIG_LOGIG940_FF is not set
# CONFIG_LOGIWHEELS_FF is not setCONFIG_HID_MAGICMOUSE=y
# CONFIG_HID_MALTRON is not set
# CONFIG_HID_MAYFLASH is not set
# CONFIG_HID_REDRAGON is not setCONFIG_HID_MICROSOFT=mCONFIG_HID_MONTEREY=mCONFIG_HID_MULTITOUCH=mCONFIG_HID_NTI=m
# CONFIG_HID_NTRIG is not setCONFIG_HID_ORTEK=mCONFIG_HID_PANTHERLORD=m
# CONFIG_PANTHERLORD_FF is not set
# CONFIG_HID_PENMOUNT is not setCONFIG_HID_PETALYNX=mCONFIG_HID_PICOLCD=mCONFIG_HID_PICOLCD_FB=yCONFIG_HID_PICOLCD_BACKLIGHT=yCONFIG_HID_PICOLCD_LCD=yCONFIG_HID_PICOLCD_LEDS=yCONFIG_HID_PICOLCD_CIR=yCONFIG_HID_PLANTRONICS=m
# CONFIG_HID_PLAYSTATION is not setCONFIG_HID_PRIMAX=m
# CONFIG_HID_RETRODE is not set
# CONFIG_HID_ROCCAT is not setCONFIG_HID_SAITEK=mCONFIG_HID_SAMSUNG=m
# CONFIG_HID_SEMITEK is not set
# CONFIG_HID_SONY is not setCONFIG_HID_SPEEDLINK=m
# CONFIG_HID_STEAM is not setCONFIG_HID_STEELSERIES=mCONFIG_HID_SUNPLUS=mCONFIG_HID_RMI=mCONFIG_HID_GREENASIA=m
# CONFIG_GREENASIA_FF is not setCONFIG_HID_HYPERV_MOUSE=mCONFIG_HID_SMARTJOYPLUS=m
# CONFIG_SMARTJOYPLUS_FF is not setCONFIG_HID_TIVO=mCONFIG_HID_TOPSEED=mCONFIG_HID_THINGM=mCONFIG_HID_THRUSTMASTER=m
# CONFIG_THRUSTMASTER_FF is not set
# CONFIG_HID_UDRAW_PS3 is not set
# CONFIG_HID_U2FZERO is not set
# CONFIG_HID_WACOM is not setCONFIG_HID_WIIMOTE=mCONFIG_HID_XINMO=mCONFIG_HID_ZEROPLUS=m
# CONFIG_ZEROPLUS_FF is not setCONFIG_HID_ZYDACRON=mCONFIG_HID_SENSOR_HUB=yCONFIG_HID_SENSOR_CUSTOM_SENSOR=mCONFIG_HID_ALPS=m
# CONFIG_HID_MCP2221 is not set
# end of Special HID drivers
#
# USB HID support
#CONFIG_USB_HID=y
# CONFIG_HID_PID is not set
# CONFIG_USB_HIDDEV is not set
# 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=m
# CONFIG_INTEL_ISH_FIRMWARE_DOWNLOADER 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_LED_TRIG is not set
# 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 setCONFIG_USB_LEDS_TRIGGER_USBPORT=yCONFIG_USB_AUTOSUSPEND_DELAY=2CONFIG_USB_MON=y
#
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not setCONFIG_USB_XHCI_HCD=y
# CONFIG_USB_XHCI_DBGCAP is not setCONFIG_USB_XHCI_PCI=y
# CONFIG_USB_XHCI_PCI_RENESAS is not set
# CONFIG_USB_XHCI_PLATFORM is not setCONFIG_USB_EHCI_HCD=yCONFIG_USB_EHCI_ROOT_HUB_TT=yCONFIG_USB_EHCI_TT_NEWSCHED=yCONFIG_USB_EHCI_PCI=y
# 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=yCONFIG_USB_OHCI_HCD_PCI=y
# CONFIG_USB_OHCI_HCD_PLATFORM is not setCONFIG_USB_UHCI_HCD=y
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set
# CONFIG_USB_HCD_BCMA is not set
# CONFIG_USB_HCD_TEST_MODE is not set
#
# USB Device Class drivers
#
# CONFIG_USB_ACM is not set
# 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_USS720 is not setCONFIG_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 set
# CONFIG_USB_SERIAL_FTDI_SIO is not set
# 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 set
# CONFIG_USB_SERIAL_KEYSPAN is not set
# 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 set
# CONFIG_USB_SERIAL_PL2303 is not set
# 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 setCONFIG_USB_SERIAL_DEBUG=m
#
# 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 set
# CONFIG_USB_TEST is not set
# CONFIG_USB_EHSET_TEST_FIXTURE is not set
# CONFIG_USB_ISIGHTFW is not set
# CONFIG_USB_YUREX is not set
# CONFIG_USB_EZUSB_FX2 is not set
# 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
# CONFIG_USB_ATM 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 setCONFIG_TYPEC=y
# CONFIG_TYPEC_TCPM is not setCONFIG_TYPEC_UCSI=y
# CONFIG_UCSI_CCG is not setCONFIG_UCSI_ACPI=y
# CONFIG_TYPEC_TPS6598X is not set
# CONFIG_TYPEC_STUSB160X is not set
#
# USB Type-C Multiplexer/DeMultiplexer Switch support #
# CONFIG_TYPEC_MUX_PI3USB30532 is not set
# end of USB Type-C Multiplexer/DeMultiplexer Switch support
#
# USB Type-C Alternate Mode drivers
#
# CONFIG_TYPEC_DP_ALTMODE is not set
# end of USB Type-C Alternate Mode drivers
# CONFIG_USB_ROLE_SWITCH is not setCONFIG_MMC=mCONFIG_MMC_BLOCK=mCONFIG_MMC_BLOCK_MINORS=8CONFIG_SDIO_UART=m
# CONFIG_MMC_TEST is not set
#
# MMC/SD/SDIO Host Controller Drivers
#
# CONFIG_MMC_DEBUG is not setCONFIG_MMC_SDHCI=mCONFIG_MMC_SDHCI_IO_ACCESSORS=yCONFIG_MMC_SDHCI_PCI=mCONFIG_MMC_RICOH_MMC=yCONFIG_MMC_SDHCI_ACPI=mCONFIG_MMC_SDHCI_PLTFM=m
# CONFIG_MMC_SDHCI_F_SDH30 is not set
# CONFIG_MMC_WBSD is not set
# CONFIG_MMC_TIFM_SD is not set
# CONFIG_MMC_SPI is not set
# CONFIG_MMC_CB710 is not set
# CONFIG_MMC_VIA_SDMMC is not set
# CONFIG_MMC_VUB300 is not set
# CONFIG_MMC_USHC is not set
# CONFIG_MMC_USDHI6ROL0 is not set
# CONFIG_MMC_REALTEK_PCI is not setCONFIG_MMC_CQHCI=m
# CONFIG_MMC_HSQ is not set
# CONFIG_MMC_TOSHIBA_PCI is not set
# CONFIG_MMC_MTK is not set
# CONFIG_MMC_SDHCI_XENON is not set
# CONFIG_MEMSTICK is not setCONFIG_NEW_LEDS=yCONFIG_LEDS_CLASS=y
# CONFIG_LEDS_CLASS_FLASH is not set
# CONFIG_LEDS_CLASS_MULTICOLOR is not set
# CONFIG_LEDS_BRIGHTNESS_HW_CHANGED is not set
#
# LED drivers
#
# CONFIG_LEDS_APU is not setCONFIG_LEDS_LM3530=m
# CONFIG_LEDS_LM3532 is not set
# CONFIG_LEDS_LM3642 is not set
# CONFIG_LEDS_PCA9532 is not set
# CONFIG_LEDS_GPIO is not setCONFIG_LEDS_LP3944=m
# CONFIG_LEDS_LP3952 is not set
# CONFIG_LEDS_LP50XX is not setCONFIG_LEDS_CLEVO_MAIL=m
# CONFIG_LEDS_PCA955X is not set
# CONFIG_LEDS_PCA963X is not set
# CONFIG_LEDS_DAC124S085 is not set
# CONFIG_LEDS_PWM is not set
# CONFIG_LEDS_BD2802 is not setCONFIG_LEDS_INTEL_SS4200=mCONFIG_LEDS_LT3593=m
# CONFIG_LEDS_TCA6507 is not set
# CONFIG_LEDS_TLC591XX is not set
# CONFIG_LEDS_LM355x is not set
#
# LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM) #CONFIG_LEDS_BLINKM=mCONFIG_LEDS_MLXCPLD=m
# CONFIG_LEDS_MLXREG is not set
# CONFIG_LEDS_USER is not set
# CONFIG_LEDS_NIC78BX is not set
# CONFIG_LEDS_TI_LMU_COMMON is not set
#
# Flash and Torch LED drivers
#
#
# LED Triggers
#CONFIG_LEDS_TRIGGERS=yCONFIG_LEDS_TRIGGER_TIMER=mCONFIG_LEDS_TRIGGER_ONESHOT=m
# CONFIG_LEDS_TRIGGER_DISK is not setCONFIG_LEDS_TRIGGER_HEARTBEAT=mCONFIG_LEDS_TRIGGER_BACKLIGHT=m
# CONFIG_LEDS_TRIGGER_CPU is not set
# CONFIG_LEDS_TRIGGER_ACTIVITY is not setCONFIG_LEDS_TRIGGER_GPIO=mCONFIG_LEDS_TRIGGER_DEFAULT_ON=m
#
# iptables trigger is under Netfilter config (LED target) # CONFIG_LEDS_TRIGGER_TRANSIENT=m CONFIG_LEDS_TRIGGER_CAMERA=m # CONFIG_LEDS_TRIGGER_PANIC is not set # CONFIG_LEDS_TRIGGER_NETDEV is not set # CONFIG_LEDS_TRIGGER_PATTERN is not set CONFIG_LEDS_TRIGGER_AUDIO=m # CONFIG_LEDS_TRIGGER_TTY is not set # CONFIG_ACCESSIBILITY is not set CONFIG_INFINIBAND=m CONFIG_INFINIBAND_USER_MAD=m CONFIG_INFINIBAND_USER_ACCESS=m CONFIG_INFINIBAND_USER_MEM=y CONFIG_INFINIBAND_ON_DEMAND_PAGING=y CONFIG_INFINIBAND_ADDR_TRANS=y CONFIG_INFINIBAND_ADDR_TRANS_CONFIGFS=y CONFIG_INFINIBAND_VIRT_DMA=y # CONFIG_INFINIBAND_MTHCA is not set # CONFIG_INFINIBAND_EFA is not set # CONFIG_MLX4_INFINIBAND is not set # CONFIG_INFINIBAND_OCRDMA is not set # CONFIG_INFINIBAND_USNIC is not set # CONFIG_INFINIBAND_RDMAVT is not set CONFIG_RDMA_RXE=m CONFIG_RDMA_SIW=m CONFIG_INFINIBAND_IPOIB=m # CONFIG_INFINIBAND_IPOIB_CM is not set CONFIG_INFINIBAND_IPOIB_DEBUG=y # CONFIG_INFINIBAND_IPOIB_DEBUG_DATA is not set CONFIG_INFINIBAND_SRP=m CONFIG_INFINIBAND_SRPT=m # CONFIG_INFINIBAND_ISER is not set # CONFIG_INFINIBAND_ISERT is not set # CONFIG_INFINIBAND_RTRS_CLIENT is not set # CONFIG_INFINIBAND_RTRS_SERVER is not set # CONFIG_INFINIBAND_OPA_VNIC is not set CONFIG_EDAC_ATOMIC_SCRUB=y CONFIG_EDAC_SUPPORT=y CONFIG_EDAC=y CONFIG_EDAC_LEGACY_SYSFS=y # CONFIG_EDAC_DEBUG is not set CONFIG_EDAC_DECODE_MCE=m CONFIG_EDAC_GHES=y CONFIG_EDAC_AMD64=m CONFIG_EDAC_E752X=m CONFIG_EDAC_I82975X=m CONFIG_EDAC_I3000=m CONFIG_EDAC_I3200=m CONFIG_EDAC_IE31200=m CONFIG_EDAC_X38=m CONFIG_EDAC_I5400=m CONFIG_EDAC_I7CORE=m CONFIG_EDAC_I5000=m CONFIG_EDAC_I5100=m CONFIG_EDAC_I7300=m CONFIG_EDAC_SBRIDGE=m CONFIG_EDAC_SKX=m # CONFIG_EDAC_I10NM is not set CONFIG_EDAC_PND2=m # CONFIG_EDAC_IGEN6 is not set CONFIG_RTC_LIB=y CONFIG_RTC_MC146818_LIB=y CONFIG_RTC_CLASS=y CONFIG_RTC_HCTOSYS=y CONFIG_RTC_HCTOSYS_DEVICE="rtc0" # CONFIG_RTC_SYSTOHC is not set # CONFIG_RTC_DEBUG is not set CONFIG_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 setCONFIG_RTC_DRV_DS1307=m
# CONFIG_RTC_DRV_DS1307_CENTURY is not setCONFIG_RTC_DRV_DS1374=m
# CONFIG_RTC_DRV_DS1374_WDT is not setCONFIG_RTC_DRV_DS1672=mCONFIG_RTC_DRV_MAX6900=mCONFIG_RTC_DRV_RS5C372=mCONFIG_RTC_DRV_ISL1208=mCONFIG_RTC_DRV_ISL12022=mCONFIG_RTC_DRV_X1205=mCONFIG_RTC_DRV_PCF8523=m
# CONFIG_RTC_DRV_PCF85063 is not set
# CONFIG_RTC_DRV_PCF85363 is not setCONFIG_RTC_DRV_PCF8563=mCONFIG_RTC_DRV_PCF8583=mCONFIG_RTC_DRV_M41T80=mCONFIG_RTC_DRV_M41T80_WDT=yCONFIG_RTC_DRV_BQ32K=m
# CONFIG_RTC_DRV_S35390A is not setCONFIG_RTC_DRV_FM3130=m
# CONFIG_RTC_DRV_RX8010 is not setCONFIG_RTC_DRV_RX8581=mCONFIG_RTC_DRV_RX8025=mCONFIG_RTC_DRV_EM3027=m
# 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 setCONFIG_RTC_DRV_RX4581=m
# 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=mCONFIG_RTC_DRV_DS3232_HWMON=y
# CONFIG_RTC_DRV_PCF2127 is not setCONFIG_RTC_DRV_RV3029C2=m
# CONFIG_RTC_DRV_RV3029_HWMON is not set
# CONFIG_RTC_DRV_RX6110 is not set
#
# Platform RTC drivers
#CONFIG_RTC_DRV_CMOS=yCONFIG_RTC_DRV_DS1286=mCONFIG_RTC_DRV_DS1511=mCONFIG_RTC_DRV_DS1553=m
# CONFIG_RTC_DRV_DS1685_FAMILY is not setCONFIG_RTC_DRV_DS1742=mCONFIG_RTC_DRV_DS2404=mCONFIG_RTC_DRV_STK17TA8=m
# CONFIG_RTC_DRV_M48T86 is not setCONFIG_RTC_DRV_M48T35=mCONFIG_RTC_DRV_M48T59=mCONFIG_RTC_DRV_MSM6242=mCONFIG_RTC_DRV_BQ4802=mCONFIG_RTC_DRV_RP5C01=mCONFIG_RTC_DRV_V3020=m
#
# 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 setCONFIG_INTEL_IDMA64=m
# CONFIG_INTEL_IDXD is not setCONFIG_INTEL_IOATDMA=m
# CONFIG_PLX_DMA is not set
# CONFIG_QCOM_HIDMA_MGMT is not set
# CONFIG_QCOM_HIDMA is not setCONFIG_DW_DMAC_CORE=yCONFIG_DW_DMAC=mCONFIG_DW_DMAC_PCI=y
# 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=yCONFIG_DMATEST=mCONFIG_DMA_ENGINE_RAID=y
#
# DMABUF options
#CONFIG_SYNC_FILE=y
# CONFIG_SW_SYNC is not set
# CONFIG_UDMABUF is not set
# CONFIG_DMABUF_MOVE_NOTIFY is not set
# CONFIG_DMABUF_DEBUG is not set
# CONFIG_DMABUF_SELFTESTS is not set
# CONFIG_DMABUF_HEAPS is not set
# end of DMABUF options
CONFIG_DCA=m
# CONFIG_AUXDISPLAY is not set
# CONFIG_PANEL is not setCONFIG_UIO=mCONFIG_UIO_CIF=mCONFIG_UIO_PDRV_GENIRQ=m
# CONFIG_UIO_DMEM_GENIRQ is not setCONFIG_UIO_AEC=mCONFIG_UIO_SERCOS3=mCONFIG_UIO_PCI_GENERIC=m
# CONFIG_UIO_NETX is not set
# CONFIG_UIO_PRUSS is not set
# CONFIG_UIO_MF624 is not setCONFIG_UIO_HV_GENERIC=mCONFIG_VFIO_IOMMU_TYPE1=mCONFIG_VFIO_VIRQFD=mCONFIG_VFIO=mCONFIG_VFIO_NOIOMMU=yCONFIG_VFIO_PCI=m
# CONFIG_VFIO_PCI_VGA is not setCONFIG_VFIO_PCI_MMAP=yCONFIG_VFIO_PCI_INTX=y
# CONFIG_VFIO_PCI_IGD is not setCONFIG_VFIO_MDEV=mCONFIG_IRQ_BYPASS_MANAGER=m
# CONFIG_VIRT_DRIVERS is not setCONFIG_VIRTIO=yCONFIG_VIRTIO_PCI_LIB=yCONFIG_VIRTIO_MENU=yCONFIG_VIRTIO_PCI=yCONFIG_VIRTIO_PCI_LEGACY=y
# CONFIG_VIRTIO_PMEM is not setCONFIG_VIRTIO_BALLOON=mCONFIG_VIRTIO_MEM=mCONFIG_VIRTIO_INPUT=m
# CONFIG_VIRTIO_MMIO is not setCONFIG_VIRTIO_DMA_SHARED_BUFFER=m
# CONFIG_VDPA is not setCONFIG_VHOST_IOTLB=mCONFIG_VHOST=mCONFIG_VHOST_MENU=yCONFIG_VHOST_NET=m
# CONFIG_VHOST_SCSI is not setCONFIG_VHOST_VSOCK=m
# CONFIG_VHOST_CROSS_ENDIAN_LEGACY is not set
#
# Microsoft Hyper-V guest support
#CONFIG_HYPERV=mCONFIG_HYPERV_TIMER=yCONFIG_HYPERV_UTILS=mCONFIG_HYPERV_BALLOON=m
# end of Microsoft Hyper-V guest support
#
# Xen driver support
#
# CONFIG_XEN_BALLOON is not setCONFIG_XEN_DEV_EVTCHN=m
# CONFIG_XEN_BACKEND is not setCONFIG_XENFS=mCONFIG_XEN_COMPAT_XENFS=yCONFIG_XEN_SYS_HYPERVISOR=yCONFIG_XEN_XENBUS_FRONTEND=y
# CONFIG_XEN_GNTDEV is not set
# CONFIG_XEN_GRANT_DEV_ALLOC is not set
# CONFIG_XEN_GRANT_DMA_ALLOC is not setCONFIG_SWIOTLB_XEN=y
# CONFIG_XEN_PVCALLS_FRONTEND is not setCONFIG_XEN_PRIVCMD=mCONFIG_XEN_EFI=yCONFIG_XEN_AUTO_XLATE=yCONFIG_XEN_ACPI=y
# CONFIG_XEN_UNPOPULATED_ALLOC is not set
# end of Xen driver support
# CONFIG_GREYBUS is not set
# CONFIG_COMEDI is not set
# CONFIG_STAGING is not setCONFIG_X86_PLATFORM_DEVICES=yCONFIG_ACPI_WMI=mCONFIG_WMI_BMOF=m
# CONFIG_HUAWEI_WMI is not set
# CONFIG_UV_SYSFS is not set
# CONFIG_INTEL_WMI_SBL_FW_UPDATE is not setCONFIG_INTEL_WMI_THUNDERBOLT=mCONFIG_MXM_WMI=m
# CONFIG_PEAQ_WMI is not set
# CONFIG_XIAOMI_WMI is not set
# CONFIG_GIGABYTE_WMI is not setCONFIG_ACERHDF=m
# CONFIG_ACER_WIRELESS is not setCONFIG_ACER_WMI=m
# CONFIG_AMD_PMC is not set
# CONFIG_ADV_SWBUTTON is not setCONFIG_APPLE_GMUX=mCONFIG_ASUS_LAPTOP=m
# CONFIG_ASUS_WIRELESS is not setCONFIG_ASUS_WMI=mCONFIG_ASUS_NB_WMI=mCONFIG_EEEPC_LAPTOP=mCONFIG_EEEPC_WMI=m
# CONFIG_X86_PLATFORM_DRIVERS_DELL is not setCONFIG_AMILO_RFKILL=mCONFIG_FUJITSU_LAPTOP=mCONFIG_FUJITSU_TABLET=m
# CONFIG_GPD_POCKET_FAN is not setCONFIG_HP_ACCEL=m
# CONFIG_WIRELESS_HOTKEY is not setCONFIG_HP_WMI=m
# CONFIG_IBM_RTL is not setCONFIG_IDEAPAD_LAPTOP=mCONFIG_SENSORS_HDAPS=mCONFIG_THINKPAD_ACPI=m
# CONFIG_THINKPAD_ACPI_DEBUGFACILITIES is not set
# CONFIG_THINKPAD_ACPI_DEBUG is not set
# CONFIG_THINKPAD_ACPI_UNSAFE_LEDS is not setCONFIG_THINKPAD_ACPI_VIDEO=yCONFIG_THINKPAD_ACPI_HOTKEY_POLL=y
# CONFIG_THINKPAD_LMI is not setCONFIG_X86_PLATFORM_DRIVERS_INTEL=y
# CONFIG_INTEL_ATOMISP2_PM is not setCONFIG_INTEL_HID_EVENT=m
# CONFIG_INTEL_INT0002_VGPIO is not set
# CONFIG_INTEL_MENLOW is not setCONFIG_INTEL_OAKTRAIL=mCONFIG_INTEL_VBTN=mCONFIG_MSI_LAPTOP=mCONFIG_MSI_WMI=m
# CONFIG_PCENGINES_APU2 is not setCONFIG_SAMSUNG_LAPTOP=mCONFIG_SAMSUNG_Q10=mCONFIG_TOSHIBA_BT_RFKILL=m
# CONFIG_TOSHIBA_HAPS is not set
# CONFIG_TOSHIBA_WMI is not setCONFIG_ACPI_CMPC=mCONFIG_COMPAL_LAPTOP=m
# CONFIG_LG_LAPTOP is not setCONFIG_PANASONIC_LAPTOP=mCONFIG_SONY_LAPTOP=mCONFIG_SONYPI_COMPAT=y
# CONFIG_SYSTEM76_ACPI is not setCONFIG_TOPSTAR_LAPTOP=m
# CONFIG_I2C_MULTI_INSTANTIATE is not setCONFIG_MLX_PLATFORM=mCONFIG_INTEL_IPS=mCONFIG_INTEL_RST=m
# CONFIG_INTEL_SMARTCONNECT 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
CONFIG_INTEL_TURBO_MAX_3=y
# CONFIG_INTEL_UNCORE_FREQ_CONTROL is not setCONFIG_INTEL_PMC_CORE=m
# CONFIG_INTEL_PUNIT_IPC is not set
# CONFIG_INTEL_SCU_PCI is not set
# CONFIG_INTEL_SCU_PLATFORM is not setCONFIG_PMC_ATOM=y
# CONFIG_CHROME_PLATFORMS is not setCONFIG_MELLANOX_PLATFORM=yCONFIG_MLXREG_HOTPLUG=m
# CONFIG_MLXREG_IO is not setCONFIG_SURFACE_PLATFORMS=y
# CONFIG_SURFACE3_WMI is not set
# 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
#
# Clock driver for ARM Reference designs
#
# CONFIG_ICST is not set
# CONFIG_CLK_SP810 is not set
# end of Clock driver for ARM Reference designs
# 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_COMMON_CLK_PWM is not set
# CONFIG_XILINX_VCU is not setCONFIG_HWSPINLOCK=y
#
# Clock Source drivers
#CONFIG_CLKEVT_I8253=yCONFIG_I8253_LOCK=yCONFIG_CLKBLD_I8253=y
# end of Clock Source drivers
CONFIG_MAILBOX=yCONFIG_PCC=y
# CONFIG_ALTERA_MBOX is not setCONFIG_IOMMU_IOVA=yCONFIG_IOASID=yCONFIG_IOMMU_API=yCONFIG_IOMMU_SUPPORT=y
#
# Generic IOMMU Pagetable Support
#
# end of Generic IOMMU Pagetable Support
# CONFIG_IOMMU_DEBUGFS is not set
# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not set CONFIG_IOMMU_DMA=y
# CONFIG_AMD_IOMMU is not set CONFIG_DMAR_TABLE=yCONFIG_INTEL_IOMMU=y
# CONFIG_INTEL_IOMMU_SVM is not set
# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set CONFIG_INTEL_IOMMU_FLOPPY_WA=y
# CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON is not set CONFIG_IRQ_REMAP=yCONFIG_HYPERV_IOMMU=y
# CONFIG_VIRTIO_IOMMU is not set
#
# Remoteproc drivers
#
# CONFIG_REMOTEPROC is not set
# end of Remoteproc drivers
#
# Rpmsg drivers
#
# CONFIG_RPMSG_QCOM_GLINK_RPM is not set
# 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 setCONFIG_NTB=m
# CONFIG_NTB_MSI is not set
# CONFIG_NTB_AMD is not set
# CONFIG_NTB_IDT is not set
# CONFIG_NTB_INTEL is not set
# CONFIG_NTB_EPF is not set
# CONFIG_NTB_SWITCHTEC is not set
# CONFIG_NTB_PINGPONG is not set
# CONFIG_NTB_TOOL is not set
# CONFIG_NTB_PERF is not set
# CONFIG_NTB_TRANSPORT is not set
# CONFIG_VME_BUS is not setCONFIG_PWM=yCONFIG_PWM_SYSFS=y
# CONFIG_PWM_DEBUG is not set
# CONFIG_PWM_DWC is not setCONFIG_PWM_LPSS=mCONFIG_PWM_LPSS_PCI=mCONFIG_PWM_LPSS_PLATFORM=m
# CONFIG_PWM_PCA9685 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 is not set
# CONFIG_USB_LGM_PHY is not set
# CONFIG_PHY_CAN_TRANSCEIVER is not set
# CONFIG_BCM_KONA_USB2_PHY is not set
# 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=yCONFIG_INTEL_RAPL_CORE=mCONFIG_INTEL_RAPL=m
# CONFIG_IDLE_INJECT is not set
# CONFIG_DTPM is not set
# CONFIG_MCB is not set
#
# Performance monitor support
#
# end of Performance monitor support
CONFIG_RAS=y
# CONFIG_RAS_CEC is not set
# CONFIG_USB4 is not set
#
# Android
#
# CONFIG_ANDROID is not set
# end of Android
CONFIG_LIBNVDIMM=mCONFIG_BLK_DEV_PMEM=mCONFIG_ND_BLK=mCONFIG_ND_CLAIM=yCONFIG_ND_BTT=mCONFIG_BTT=yCONFIG_ND_PFN=mCONFIG_NVDIMM_PFN=yCONFIG_NVDIMM_DAX=yCONFIG_NVDIMM_KEYS=yCONFIG_DAX_DRIVER=yCONFIG_DAX=yCONFIG_DEV_DAX=mCONFIG_DEV_DAX_PMEM=mCONFIG_DEV_DAX_KMEM=mCONFIG_DEV_DAX_PMEM_COMPAT=mCONFIG_NVMEM=yCONFIG_NVMEM_SYSFS=y
# CONFIG_NVMEM_RMEM is not set
#
# HW tracing support
#CONFIG_STM=m
# CONFIG_STM_PROTO_BASIC is not set
# CONFIG_STM_PROTO_SYS_T is not setCONFIG_STM_DUMMY=mCONFIG_STM_SOURCE_CONSOLE=mCONFIG_STM_SOURCE_HEARTBEAT=mCONFIG_STM_SOURCE_FTRACE=mCONFIG_INTEL_TH=mCONFIG_INTEL_TH_PCI=mCONFIG_INTEL_TH_ACPI=mCONFIG_INTEL_TH_GTH=mCONFIG_INTEL_TH_STH=mCONFIG_INTEL_TH_MSU=mCONFIG_INTEL_TH_PTI=m
# CONFIG_INTEL_TH_DEBUG 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
# end of Device Drivers
#
# File systems
#CONFIG_DCACHE_WORD_ACCESS=y
# CONFIG_VALIDATE_FS_PARSER is not set CONFIG_FS_IOMAP=yCONFIG_EXT2_FS=mCONFIG_EXT2_FS_XATTR=y CONFIG_EXT2_FS_POSIX_ACL=y CONFIG_EXT2_FS_SECURITY=y
# CONFIG_EXT3_FS is not setCONFIG_EXT4_FS=yCONFIG_EXT4_FS_POSIX_ACL=y CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set CONFIG_EXT4_KUNIT_TESTS=mCONFIG_JBD2=y
# CONFIG_JBD2_DEBUG is not set CONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not setCONFIG_XFS_FS=mCONFIG_XFS_SUPPORT_V4=yCONFIG_XFS_QUOTA=yCONFIG_XFS_POSIX_ACL=yCONFIG_XFS_RT=yCONFIG_XFS_ONLINE_SCRUB=y CONFIG_XFS_ONLINE_REPAIR=yCONFIG_XFS_DEBUG=yCONFIG_XFS_ASSERT_FATAL=yCONFIG_GFS2_FS=mCONFIG_GFS2_FS_LOCKING_DLM=y CONFIG_OCFS2_FS=mCONFIG_OCFS2_FS_O2CB=m CONFIG_OCFS2_FS_USERSPACE_CLUSTER=m CONFIG_OCFS2_FS_STATS=y CONFIG_OCFS2_DEBUG_MASKLOG=y
# CONFIG_OCFS2_DEBUG_FS is not set CONFIG_BTRFS_FS=mCONFIG_BTRFS_FS_POSIX_ACL=y
# CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set # CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set # CONFIG_BTRFS_DEBUG is not set
# CONFIG_BTRFS_ASSERT is not set
# CONFIG_BTRFS_FS_REF_VERIFY is not set
# CONFIG_NILFS2_FS is not set CONFIG_F2FS_FS=mCONFIG_F2FS_STAT_FS=yCONFIG_F2FS_FS_XATTR=y CONFIG_F2FS_FS_POSIX_ACL=y CONFIG_F2FS_FS_SECURITY=y
# CONFIG_F2FS_CHECK_FS is not set
# CONFIG_F2FS_FAULT_INJECTION is not set
# CONFIG_F2FS_FS_COMPRESSION is not set
# CONFIG_ZONEFS_FS is not setCONFIG_FS_DAX=yCONFIG_FS_DAX_PMD=yCONFIG_FS_POSIX_ACL=yCONFIG_EXPORTFS=yCONFIG_EXPORTFS_BLOCK_OPS=y CONFIG_FILE_LOCKING=y CONFIG_MANDATORY_FILE_LOCKING=y CONFIG_FS_ENCRYPTION=y CONFIG_FS_ENCRYPTION_ALGS=y
# CONFIG_FS_VERITY is not set CONFIG_FSNOTIFY=yCONFIG_DNOTIFY=yCONFIG_INOTIFY_USER=yCONFIG_FANOTIFY=y CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y CONFIG_QUOTA=y CONFIG_QUOTA_NETLINK_INTERFACE=y CONFIG_PRINT_QUOTA_WARNING=y
# CONFIG_QUOTA_DEBUG is not set CONFIG_QUOTA_TREE=y
# CONFIG_QFMT_V1 is not setCONFIG_QFMT_V2=yCONFIG_QUOTACTL=yCONFIG_AUTOFS4_FS=yCONFIG_AUTOFS_FS=yCONFIG_FUSE_FS=mCONFIG_CUSE=m
# CONFIG_VIRTIO_FS is not set CONFIG_OVERLAY_FS=m
# CONFIG_OVERLAY_FS_REDIRECT_DIR is not set
# CONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW is not set # 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 setCONFIG_FSCACHE=mCONFIG_FSCACHE_STATS=y
# CONFIG_FSCACHE_HISTOGRAM is not set
# CONFIG_FSCACHE_DEBUG is not set
# CONFIG_FSCACHE_OBJECT_LIST is not setCONFIG_CACHEFILES=m
# CONFIG_CACHEFILES_DEBUG is not set
# CONFIG_CACHEFILES_HISTOGRAM is not set
# end of Caches
#
# CD-ROM/DVD Filesystems
#CONFIG_ISO9660_FS=mCONFIG_JOLIET=yCONFIG_ZISOFS=yCONFIG_UDF_FS=m
# 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="ascii"
# CONFIG_FAT_DEFAULT_UTF8 is not set
# CONFIG_EXFAT_FS is not set
# CONFIG_NTFS_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=y CONFIG_PROC_SYSCTL=yCONFIG_PROC_PAGE_MONITOR=y CONFIG_PROC_CHILDREN=y CONFIG_PROC_PID_ARCH_STATUS=yCONFIG_KERNFS=yCONFIG_SYSFS=yCONFIG_TMPFS=yCONFIG_TMPFS_POSIX_ACL=yCONFIG_TMPFS_XATTR=y
# CONFIG_TMPFS_INODE64 is not set CONFIG_HUGETLBFS=yCONFIG_HUGETLB_PAGE=y CONFIG_HUGETLB_PAGE_FREE_VMEMMAP=y
# CONFIG_HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON is not set CONFIG_MEMFD_CREATE=y CONFIG_ARCH_HAS_GIGANTIC_PAGE=y CONFIG_CONFIGFS_FS=yCONFIG_EFIVAR_FS=y
# 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 setCONFIG_CRAMFS=mCONFIG_CRAMFS_BLOCKDEV=yCONFIG_SQUASHFS=m
# CONFIG_SQUASHFS_FILE_CACHE is not set CONFIG_SQUASHFS_FILE_DIRECT=y
# CONFIG_SQUASHFS_DECOMP_SINGLE is not set
# CONFIG_SQUASHFS_DECOMP_MULTI is not set CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU=y CONFIG_SQUASHFS_XATTR=y CONFIG_SQUASHFS_ZLIB=y
# CONFIG_SQUASHFS_LZ4 is not set CONFIG_SQUASHFS_LZO=yCONFIG_SQUASHFS_XZ=y
# CONFIG_SQUASHFS_ZSTD is not set
# CONFIG_SQUASHFS_4K_DEVBLK_SIZE is not set
# CONFIG_SQUASHFS_EMBEDDED is not set CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
# CONFIG_VXFS_FS is not setCONFIG_MINIX_FS=m
# CONFIG_OMFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX6FS_FS is not set
# CONFIG_ROMFS_FS is not setCONFIG_PSTORE=y CONFIG_PSTORE_DEFAULT_KMSG_BYTES=10240 CONFIG_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 set CONFIG_PSTORE_COMPRESS=y CONFIG_PSTORE_DEFLATE_COMPRESS_DEFAULT=y CONFIG_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=m
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
# CONFIG_EROFS_FS is not set CONFIG_NETWORK_FILESYSTEMS=yCONFIG_NFS_FS=y
# CONFIG_NFS_V2 is not setCONFIG_NFS_V3=yCONFIG_NFS_V3_ACL=yCONFIG_NFS_V4=m
# CONFIG_NFS_SWAP is not set CONFIG_NFS_V4_1=yCONFIG_NFS_V4_2=yCONFIG_PNFS_FILE_LAYOUT=mCONFIG_PNFS_BLOCK=m CONFIG_PNFS_FLEXFILE_LAYOUT=m CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="kernel.org" # CONFIG_NFS_V4_1_MIGRATION is not set CONFIG_NFS_V4_SECURITY_LABEL=y CONFIG_ROOT_NFS=y
# CONFIG_NFS_USE_LEGACY_DNS is not set CONFIG_NFS_USE_KERNEL_DNS=y CONFIG_NFS_DEBUG=y CONFIG_NFS_DISABLE_UDP_SUPPORT=y
# CONFIG_NFS_V4_2_READ_PLUS is not set CONFIG_NFSD=mCONFIG_NFSD_V2_ACL=yCONFIG_NFSD_V3=yCONFIG_NFSD_V3_ACL=yCONFIG_NFSD_V4=yCONFIG_NFSD_PNFS=y
# CONFIG_NFSD_BLOCKLAYOUT is not set CONFIG_NFSD_SCSILAYOUT=y
# CONFIG_NFSD_FLEXFILELAYOUT is not set
# CONFIG_NFSD_V4_2_INTER_SSC is not set CONFIG_NFSD_V4_SECURITY_LABEL=y CONFIG_GRACE_PERIOD=yCONFIG_LOCKD=yCONFIG_LOCKD_V4=yCONFIG_NFS_ACL_SUPPORT=yCONFIG_NFS_COMMON=y CONFIG_NFS_V4_2_SSC_HELPER=yCONFIG_SUNRPC=yCONFIG_SUNRPC_GSS=m CONFIG_SUNRPC_BACKCHANNEL=y CONFIG_RPCSEC_GSS_KRB5=m
# CONFIG_SUNRPC_DISABLE_INSECURE_ENCTYPES is not set CONFIG_SUNRPC_DEBUG=y CONFIG_SUNRPC_XPRT_RDMA=mCONFIG_CEPH_FS=m
# CONFIG_CEPH_FSCACHE is not set CONFIG_CEPH_FS_POSIX_ACL=y
# CONFIG_CEPH_FS_SECURITY_LABEL is not set CONFIG_CIFS=mCONFIG_CIFS_STATS2=y CONFIG_CIFS_ALLOW_INSECURE_LEGACY=y CONFIG_CIFS_WEAK_PW_HASH=y CONFIG_CIFS_UPCALL=yCONFIG_CIFS_XATTR=yCONFIG_CIFS_POSIX=yCONFIG_CIFS_DEBUG=y
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_DEBUG_DUMP_KEYS is not set CONFIG_CIFS_DFS_UPCALL=y
# CONFIG_CIFS_SWN_UPCALL is not set
# CONFIG_CIFS_SMB_DIRECT is not set
# CONFIG_CIFS_FSCACHE is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not setCONFIG_9P_FS=yCONFIG_9P_FS_POSIX_ACL=y
# CONFIG_9P_FS_SECURITY is not set CONFIG_NLS=yCONFIG_NLS_DEFAULT="utf8" CONFIG_NLS_CODEPAGE_437=y CONFIG_NLS_CODEPAGE_737=m CONFIG_NLS_CODEPAGE_775=m CONFIG_NLS_CODEPAGE_850=m CONFIG_NLS_CODEPAGE_852=m CONFIG_NLS_CODEPAGE_855=m CONFIG_NLS_CODEPAGE_857=m CONFIG_NLS_CODEPAGE_860=m CONFIG_NLS_CODEPAGE_861=m CONFIG_NLS_CODEPAGE_862=m CONFIG_NLS_CODEPAGE_863=m CONFIG_NLS_CODEPAGE_864=m CONFIG_NLS_CODEPAGE_865=m CONFIG_NLS_CODEPAGE_866=m CONFIG_NLS_CODEPAGE_869=m CONFIG_NLS_CODEPAGE_936=m CONFIG_NLS_CODEPAGE_950=m CONFIG_NLS_CODEPAGE_932=m CONFIG_NLS_CODEPAGE_949=m CONFIG_NLS_CODEPAGE_874=m CONFIG_NLS_ISO8859_8=m CONFIG_NLS_CODEPAGE_1250=m CONFIG_NLS_CODEPAGE_1251=mCONFIG_NLS_ASCII=yCONFIG_NLS_ISO8859_1=mCONFIG_NLS_ISO8859_2=mCONFIG_NLS_ISO8859_3=mCONFIG_NLS_ISO8859_4=mCONFIG_NLS_ISO8859_5=mCONFIG_NLS_ISO8859_6=mCONFIG_NLS_ISO8859_7=mCONFIG_NLS_ISO8859_9=m CONFIG_NLS_ISO8859_13=m CONFIG_NLS_ISO8859_14=m CONFIG_NLS_ISO8859_15=mCONFIG_NLS_KOI8_R=mCONFIG_NLS_KOI8_U=mCONFIG_NLS_MAC_ROMAN=m CONFIG_NLS_MAC_CELTIC=m CONFIG_NLS_MAC_CENTEURO=m CONFIG_NLS_MAC_CROATIAN=m CONFIG_NLS_MAC_CYRILLIC=m CONFIG_NLS_MAC_GAELIC=m CONFIG_NLS_MAC_GREEK=m CONFIG_NLS_MAC_ICELAND=m CONFIG_NLS_MAC_INUIT=m CONFIG_NLS_MAC_ROMANIAN=m CONFIG_NLS_MAC_TURKISH=mCONFIG_NLS_UTF8=mCONFIG_DLM=mCONFIG_DLM_DEBUG=y
# CONFIG_UNICODE is not setCONFIG_IO_WQ=y
# end of File systems
1,184 lines not shown · raw message
Part of this message is not shown here. View the raw message.
Re: [mm/migrate] 9eeb73028c: stress-ng.memhotplug.ops_per_sec -53.8% regression
Quoted 13 lines · kernel test robot
Greeting,
FYI, we noticed a -53.8% regression of stress-ng.memhotplug.ops_per_sec due to commit:
commit:
9eeb73028cfb54eb06efe87c50cc014d3f1ff43e("[patch 174/212] mm/migrate: update node demotion order on hotplug events")
url: https://github.com/0day-ci/linux/commits/Andrew-Morton/ia64-fix-typo-in-a-comment/20210903-065028in testcase: stress-ng
on test machine: 96 threads 2 sockets Intel(R) Xeon(R) Gold 6252 CPU @ 2.10GHz with 192G memory with following parameters:
Quoted 9 lines
nr_threads: 10% disk: 1HDD testtime: 60s fs: ext4 class: os test: memhotplug cpufreq_governor: performance ucode: 0x5003006
Because we added some operations during online/offline CPU, it's expected that the performance of online/offline CPU will decrease. In most cases, the performance of CPU hotplug isn't a big problem. But then I remembers that the performance of the CPU hotplug may influence suspend/resume performance :-(
It appears that it is easy and reasonable to enclose the added operations inside #ifdef CONFIG_NUMA. Is this sufficient to restore the performance of suspend/resume?
Best Regards,
Huang, Ying
Re: [mm/migrate] 9eeb73028c: stress-ng.memhotplug.ops_per_sec -53.8% regression
Quoted 19 lines · Ying
Quoted 4 lines
in testcase: stress-ng
on test machine: 96 threads 2 sockets Intel(R) Xeon(R) Gold 6252 CPU @ 2.10GHz with 192G memory with following parameters:Quoted 9 lines
nr_threads: 10% disk: 1HDD testtime: 60s fs: ext4 class: os test: memhotplug cpufreq_governor: performance ucode: 0x5003006Because we added some operations during online/offline CPU, it's expected that the performance of online/offline CPU will decrease. In most cases, the performance of CPU hotplug isn't a big problem. But then I remembers that the performance of the CPU hotplug may influence suspend/resume performance :-(
Quoted 3 lines
It appears that it is easy and reasonable to enclose the added operations inside #ifdef
CONFIG_NUMA. Is this sufficient to restore the performance of suspend/resume?
It's "memhotplug", not CPUs, right?
I didn't do was to actively go out and look for changes that would affect the migration order. The code just does regenerates and writes the order blindly when it sees any memory hotplug event. I have the feeling the synchronize_rcu()s are what's killing us.
It would be pretty easy to go and generate the order, but only do the update and the RCU bits when the order changes from what was there.
I guess we have a motivation now.
Re: [mm/migrate] 9eeb73028c: stress-ng.memhotplug.ops_per_sec -53.8% regression
Quoted 20 lines · Dave Hansen
Quoted 19 lines · Ying
Quoted 4 lines
in testcase: stress-ng
on test machine: 96 threads 2 sockets Intel(R) Xeon(R) Gold 6252 CPU @ 2.10GHz with 192G memory with following parameters:Quoted 9 lines
nr_threads: 10% disk: 1HDD testtime: 60s fs: ext4 class: os test: memhotplug cpufreq_governor: performance ucode: 0x5003006Because we added some operations during online/offline CPU, it's expected that the performance of online/offline CPU will decrease. In most cases, the performance of CPU hotplug isn't a big problem. But then I remembers that the performance of the CPU hotplug may influence suspend/resume performance :-(
Quoted 5 lines
Quoted 3 lines
It appears that it is easy and reasonable to enclose the added operations inside #ifdef
CONFIG_NUMA. Is this sufficient to restore the performance of suspend/resume?It's "memhotplug", not CPUs, right?
Yes. Thanks for pointing that out!
We will update node_demotion[] in CPU hotplug too. Because the status that whether a node has CPU may change after CPU hotplug. And CPU online/offline performance may be relevant for suspend/resume.
Quoted 9 lines
I didn't do was to actively go out and look for changes that would affect the migration order. The code just does regenerates and writes the order blindly when it sees any memory hotplug event. I have the feeling the synchronize_rcu()s are what's killing us.
It would be pretty easy to go and generate the order, but only do the update and the RCU bits when the order changes from what was there.
I guess we have a motivation now.
I don't know whether the performance of memory hotplug is important or not. But it should be welcome not to make it too bad. You proposal sounds good.
Best Regards,
Huang, Ying
Re: [mm/migrate] 9eeb73028c: stress-ng.memhotplug.ops_per_sec -53.8% regression
Quoted 26 lines · Ying
Quoted 24 lines · Dave Hansen
Quoted 22 lines · Ying
Quoted 4 lines
in testcase: stress-ng
on test machine: 96 threads 2 sockets Intel(R) Xeon(R) Gold 6252 CPU @ 2.10GHz with 192G memory with following parameters:Quoted 9 lines
nr_threads: 10% disk: 1HDD testtime: 60s fs: ext4 class: os test: memhotplug cpufreq_governor: performance ucode: 0x5003006Because we added some operations during online/offline CPU, it's expected that the performance of online/offline CPU will decrease. In most cases, the performance of CPU hotplug isn't a big problem. But then I remembers that the performance of the CPU hotplug may influence suspend/resume performance :-(
It appears that it is easy and reasonable to enclose the added operations inside #ifdef
CONFIG_NUMA. Is this sufficient to restore the performance of suspend/resume?
Quoted 8 lines
Quoted 1 line
It's "memhotplug", not CPUs, right?
Yes. Thanks for pointing that out!
We will update node_demotion[] in CPU hotplug too. Because the status that whether a node has CPU may change after CPU hotplug. And CPU online/offline performance may be relevant for suspend/resume.
Rui and I took a look at the default kernel config, it seems that CONFIG_NUMA is enabled on laptops on some distributions. Maybe a runtime detecting flag indicating that whether this system has enabled NUMA (static key eg) would be an option too, so as not to enable node_demotion[] on non-NUMA laptops/desktops.
thanks,
Chenyu
Re: [mm/migrate] 9eeb73028c: stress-ng.memhotplug.ops_per_sec -53.8% regression
Quoted 31 lines · Chen Yu
Quoted 30 lines · Ying
Quoted 20 lines · Dave Hansen
Quoted 19 lines · Ying
Quoted 4 lines
in testcase: stress-ng
on test machine: 96 threads 2 sockets Intel(R) Xeon(R) Gold 6252 CPU @ 2.10GHz with 192G memory with following parameters:Quoted 9 lines
nr_threads: 10% disk: 1HDD testtime: 60s fs: ext4 class: os test: memhotplug cpufreq_governor: performance ucode: 0x5003006Because we added some operations during online/offline CPU, it's expected that the performance of online/offline CPU will decrease. In most cases, the performance of CPU hotplug isn't a big problem. But then I remembers that the performance of the CPU hotplug may influence suspend/resume performance :-(
Quoted 5 lines
Quoted 3 lines
It appears that it is easy and reasonable to enclose the added operations inside #ifdef
CONFIG_NUMA. Is this sufficient to restore the performance of suspend/resume?It's "memhotplug", not CPUs, right?
Yes. Thanks for pointing that out!
Quoted 8 lines
Quoted 4 lines
We will update node_demotion[] in CPU hotplug too. Because the status that whether a node has CPU may change after CPU hotplug. And CPU online/offline performance may be relevant for suspend/resume.
Rui and I took a look at the default kernel config, it seems that
CONFIG_NUMAis enabled on laptops on some distributions. Maybe a runtime detecting flag indicating that whether this system has enabled NUMA (static key eg) would be an option too, so as not to enable node_demotion[] on non-NUMA laptops/desktops.
Got it! Thanks for your information. Maybe we can try Dave's method firstly and check whether that's OK for suspend/resume.
Best Regards,
Huang, Ying
Re: [mm/migrate] 9eeb73028c: stress-ng.memhotplug.ops_per_sec -53.8% regression
In reply to kernel test robotHi, Oliver,
Quoted 13 lines · kernel test robot
Greeting,
FYI, we noticed a -53.8% regression of stress-ng.memhotplug.ops_per_sec due to commit:
commit:
9eeb73028cfb54eb06efe87c50cc014d3f1ff43e("[patch 174/212] mm/migrate: update node demotion order on hotplug events")
url: https://github.com/0day-ci/linux/commits/Andrew-Morton/ia64-fix-typo-in-a-comment/20210903-065028in testcase: stress-ng
on test machine: 96 threads 2 sockets Intel(R) Xeon(R) Gold 6252 CPU @ 2.10GHz with 192G memory with following parameters:
Quoted 9 lines
nr_threads: 10% disk: 1HDD testtime: 60s fs: ext4 class: os test: memhotplug cpufreq_governor: performance ucode: 0x5003006
Can you help to test whether the following patch can recover the regression?
Best Regards,
Huang, Ying
----------------------------8<--------------------------------------
Quoted 1 line
From
5d3e18a9f083954584932a20233ef489d9398342Mon Sep 17 00:00:00 2001
From: Huang Ying <[email protected]>
Date: Thu, 16 Sep 2021 16:51:44 +0800
Subject: [PATCH] mm/migrate: recover hotplug performance regression
0-Day kernel test robot reported a -53.8% performance regression for stress-ng memhotplug test case. This patch is to recover the regression via avoid updating the demotion order if not necessary.
Refer: https://lore.kernel.org/lkml/20210905135932.GE15026(a)xsang-OptiPlex-9020/
--- mm/migrate.c | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-)
mm/migrate.c +22 -4
@@ -1145,6 +1145,8 @@ static int __unmap_and_move(struct page *page, struct page *newpage,static int node_demotion[MAX_NUMNODES ]__read_mostly = {[0 ...MAX_NUMNODES -1 ] =NUMA_NO_NODE }; +static bool node_demotion_disabled__read_mostly ; +/** * next_demotion_node() - Get the next node in the demotion path * @node: The starting node to lookup the next node
@@ -1158,6 +1160,8 @@ int next_demotion_node(int node) {int target; +if (node_demotion_disabled) +return NUMA_NO_NODE ;/* * node_demotion[] is updated without excluding this * function from running. RCU doesn't provide any
@@ -3198,13 +3202,26 @@ static void __set_migration_target_nodes(void) goto again; } +static int nr_node_has_cpu; +static int nr_node_has_mem; + +static void check_set_migration_target_nodes (void ) +{ +if (num_node_state (N_MEMORY ) != nr_node_has_mem || +num_node_state (N_CPU ) != nr_node_has_cpu) { +__set_migration_target_nodes (); + nr_node_has_mem =num_node_state (N_MEMORY ); + nr_node_has_cpu =num_node_state (N_CPU ); + } +} +/* * For callers that do not hold get_online_mems() already. */ static void set_migration_target_nodes (void ) {get_online_mems (); -__set_migration_target_nodes (); +check_set_migration_target_nodes ();put_online_mems (); }
@@ -3249,7 +3266,7 @@ static int __meminit migrate_on_reclaim_callback(struct notifier_block *self,* will leave migration disabled until the offline * completes and the MEM_OFFLINE case below runs. */ -disable_all_migrate_targets (); + node_demotion_disabled = true;break ;case MEM_OFFLINE :case MEM_ONLINE :
@@ -3257,14 +3274,15 @@ static int __meminit migrate_on_reclaim_callback(struct notifier_block *self,* Recalculate the target nodes once the node * reaches its final state (online or offline). */ -__set_migration_target_nodes (); +check_set_migration_target_nodes (); + node_demotion_disabled = false;break ;case MEM_CANCEL_OFFLINE :/* * MEM_GOING_OFFLINE disabled all the migration * targets. Reenable them. */ -__set_migration_target_nodes (); + node_demotion_disabled = false;break ;case MEM_GOING_ONLINE :case MEM_CANCEL_ONLINE :
Signature · 1 line
2.30.2
Re: [mm/migrate] 9eeb73028c: stress-ng.memhotplug.ops_per_sec -53.8% regression
hi, All,
we confirmed this regression was fixed by
commit: 295be91f7ef0027fca2f2e4788e99731aa931834 ("mm/migrate: optimize hotplug-time demotion order updates")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
the report link is:
https://lists.01.org/hyperkitty/list/[email protected]/thread/4KKRZ7CSIPKMD3Q43GZTGQXA6WBJM2XO/
Quoted 142 lines · Ying
Hi, Oliver,
Quoted 13 lines · kernel test robot
Greeting,
FYI, we noticed a -53.8% regression of stress-ng.memhotplug.ops_per_sec due to commit:
commit:
9eeb73028cfb54eb06efe87c50cc014d3f1ff43e("[patch 174/212] mm/migrate: update node demotion order on hotplug events")
url: https://github.com/0day-ci/linux/commits/Andrew-Morton/ia64-fix-typo-in-a-comment/20210903-065028in testcase: stress-ng
on test machine: 96 threads 2 sockets Intel(R) Xeon(R) Gold 6252 CPU @ 2.10GHz with 192G memory with following parameters:Quoted 9 lines
nr_threads: 10% disk: 1HDD testtime: 60s fs: ext4 class: os test: memhotplug cpufreq_governor: performance ucode: 0x5003006Can you help to test whether the following patch can recover the regression?
Best Regards,
Huang, Ying----------------------------8<-------------------------------------- From
5d3e18a9f083954584932a20233ef489d9398342Mon Sep 17 00:00:00 2001
From: Huang Ying <[email protected]>
Date: Thu, 16 Sep 2021 16:51:44 +0800
Subject: [PATCH] mm/migrate: recover hotplug performance regression0-Day kernel test robot reported a -53.8% performance regression for stress-ng memhotplug test case. This patch is to recover the regression via avoid updating the demotion order if not necessary.
Refer: https://lore.kernel.org/lkml/20210905135932.GE15026@xsang-OptiPlex-9020/
Fixes 884a6e5d1f93 ("mm/migrate: update node demotion order on hotplug events")Signed-off-by "Huang, Ying" <[email protected]>Suggested-by Dave Hansen <[email protected]>Reported-by kernel test robot <[email protected]>Cc Yang Shi <[email protected]>Cc Zi Yan <[email protected]>Cc Michal Hocko <[email protected]>Cc Wei Xu <[email protected]>Cc Oscar Salvador <[email protected]>Cc David Rientjes <[email protected]>Cc Dan Williams <[email protected]>Cc David Hildenbrand <[email protected]>Cc Greg Thelen <[email protected]>Cc Keith Busch <[email protected]>--- mm/migrate.c | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-)mm/migrate.c +22
-4@@ -1145,6 +1145,8 @@ static int __unmap_and_move(struct page *page, struct page *newpage,static int node_demotion[MAX_NUMNODES ]__read_mostly = {[0 ...MAX_NUMNODES -1 ] =NUMA_NO_NODE }; +static bool node_demotion_disabled__read_mostly ; +/** * next_demotion_node() - Get the next node in the demotion path * @node: The starting node to lookup the next node @@ -1158,6 +1160,8 @@ int next_demotion_node(int node) {int target; +if (node_demotion_disabled) +return NUMA_NO_NODE ;/* * node_demotion[] is updated without excluding this * function from running. RCU doesn't provide any @@ -3198,13 +3202,26 @@ static void __set_migration_target_nodes(void) goto again; } +static int nr_node_has_cpu; +static int nr_node_has_mem; + +static void check_set_migration_target_nodes (void ) +{ +if (num_node_state (N_MEMORY ) != nr_node_has_mem || +num_node_state (N_CPU ) != nr_node_has_cpu) { +__set_migration_target_nodes (); + nr_node_has_mem =num_node_state (N_MEMORY ); + nr_node_has_cpu =num_node_state (N_CPU ); + } +} +/* * For callers that do not hold get_online_mems() already. */ static void set_migration_target_nodes (void ) {get_online_mems (); -__set_migration_target_nodes (); +check_set_migration_target_nodes ();put_online_mems (); }@@ -3249,7 +3266,7 @@ static int __meminit migrate_on_reclaim_callback(struct notifier_block *self,* will leave migration disabled until the offline * completes and the MEM_OFFLINE case below runs. */ -disable_all_migrate_targets (); + node_demotion_disabled = true;break ;case MEM_OFFLINE :case MEM_ONLINE :@@ -3257,14 +3274,15 @@ static int __meminit migrate_on_reclaim_callback(struct notifier_block *self,* Recalculate the target nodes once the node * reaches its final state (online or offline). */ -__set_migration_target_nodes (); +check_set_migration_target_nodes (); + node_demotion_disabled = false;break ;case MEM_CANCEL_OFFLINE :/* * MEM_GOING_OFFLINE disabled all the migration * targets. Reenable them. */ -__set_migration_target_nodes (); + node_demotion_disabled = false;break ;case MEM_GOING_ONLINE :case MEM_CANCEL_ONLINE :Signature · 1 line
2.30.2
Andrew Morton
maintainerPATCH 175/212 mm/migrate: enable returning precise migrate_pages() success count
In reply to Andrew MortonFrom: Yang Shi <[email protected]>
Subject: mm/migrate: enable returning precise migrate_pages() success count
Under normal circumstances, migrate_pages() returns the number of pages migrated. In error conditions, it returns an error code. When returning an error code, there is no way to know how many pages were migrated or not migrated.
Make migrate_pages() return how many pages are demoted successfully for all cases, including when encountering errors. Page reclaim behavior will depend on this in subsequent patches.
---
include/linux/migrate.h | 5 +++-- mm/compaction.c | 2 +- mm/gup.c | 2 +- mm/memory-failure.c | 2 +- mm/memory_hotplug.c | 2 +- mm/mempolicy.c | 4 ++-- mm/migrate.c | 11 ++++++++--- mm/page_alloc.c | 2 +- 8 files changed, 18 insertions(+), 12 deletions(-)
include/linux/migrate.h renamed from include/linux/migrate.h~mm-migrate-enable-returning-precise-migrate_pages-success-count +3 -2
@@ -41,7 +41,8 @@ extern int migrate_page(struct address_s struct page *newpage, struct page *page, enum migrate_mode mode);extern int migrate_pages (struct list_head *l,new_page_t new,free_page_t free, -unsigned long private,enum migrate_mode mode,int reason); +unsigned long private,enum migrate_mode mode,int reason, +unsigned int *ret_succeeded);extern struct page *alloc_migration_target (struct page *page,unsigned long private);extern int isolate_movable_page (struct page *page,isolate_mode_t mode);
@@ -56,7 +57,7 @@ extern int migrate_page_move_mapping(strstatic inline void putback_movable_pages (struct list_head *l) {}static inline int migrate_pages (struct list_head *l,new_page_t new,free_page_t free,unsigned long private,enum migrate_mode mode, -int reason) +int reason,unsigned int *ret_succeeded) {return -ENOSYS ; }static inline struct page *alloc_migration_target (struct page *page,unsigned long private)
mm/compaction.c renamed from mm/compaction.c~mm-migrate-enable-returning-precise-migrate_pages-success-count +1 -1
@@ -2398,7 +2398,7 @@ compact_zone(struct compact_control *cc, err =migrate_pages (&cc->migratepages, compaction_alloc, compaction_free, (unsigned long )cc, cc->mode, -MR_COMPACTION ); +MR_COMPACTION ,NULL );trace_mm_compaction_migratepages (cc->nr_migratepages, err, &cc->migratepages);
mm/gup.c renamed from mm/gup.c~mm-migrate-enable-returning-precise-migrate_pages-success-count +1 -1
@@ -1772,7 +1772,7 @@ static long check_and_migrate_movable_paif (!list_empty (&movable_page_list)) { ret =migrate_pages (&movable_page_list, alloc_migration_target,NULL , (unsigned long )&mtc,MIGRATE_SYNC , -MR_LONGTERM_PIN ); +MR_LONGTERM_PIN ,NULL );if (ret && !list_empty (&movable_page_list))putback_movable_pages (&movable_page_list); }
mm/memory-failure.c renamed from mm/memory-failure.c~mm-migrate-enable-returning-precise-migrate_pages-success-count +1 -1
@@ -2099,7 +2099,7 @@ static int __soft_offline_page(struct paif (isolate_page (hpage, &pagelist)) { ret =migrate_pages (&pagelist, alloc_migration_target,NULL , - (unsigned long )&mtc,MIGRATE_SYNC ,MR_MEMORY_FAILURE ); + (unsigned long )&mtc,MIGRATE_SYNC ,MR_MEMORY_FAILURE ,NULL );if (!ret) {bool release = !huge;
mm/memory_hotplug.c renamed from mm/memory_hotplug.c~mm-migrate-enable-returning-precise-migrate_pages-success-count +1 -1
@@ -1469,7 +1469,7 @@ do_migrate_range(unsigned long start_pfnif (nodes_empty (nmask))node_set (mtc.nid, nmask); ret =migrate_pages (&source, alloc_migration_target,NULL , - (unsigned long )&mtc,MIGRATE_SYNC ,MR_MEMORY_HOTPLUG ); + (unsigned long )&mtc,MIGRATE_SYNC ,MR_MEMORY_HOTPLUG ,NULL );if (ret) {list_for_each_entry (page, &source, lru) {if (__ratelimit (&migrate_rs)) {
mm/mempolicy.c renamed from mm/mempolicy.c~mm-migrate-enable-returning-precise-migrate_pages-success-count +2 -2
@@ -1084,7 +1084,7 @@ static int migrate_to_node(struct mm_strif (!list_empty (&pagelist)) { err =migrate_pages (&pagelist, alloc_migration_target,NULL , - (unsigned long )&mtc,MIGRATE_SYNC ,MR_SYSCALL ); + (unsigned long )&mtc,MIGRATE_SYNC ,MR_SYSCALL ,NULL );if (err)putback_movable_pages (&pagelist); }
@@ -1338,7 +1338,7 @@ static long do_mbind(unsigned long startif (!list_empty (&pagelist)) {WARN_ON_ONCE (flags &MPOL_MF_LAZY ); nr_failed =migrate_pages (&pagelist, new_page,NULL , - start,MIGRATE_SYNC ,MR_MEMPOLICY_MBIND ); + start,MIGRATE_SYNC ,MR_MEMPOLICY_MBIND ,NULL );if (nr_failed)putback_movable_pages (&pagelist); }
mm/migrate.c renamed from mm/migrate.c~mm-migrate-enable-returning-precise-migrate_pages-success-count +8 -3
@@ -1429,6 +1429,8 @@ static inline int try_split_thp(struct p* @mode: The migration mode that specifies the constraints for * page migration, if any. * @reason: The reason for page migration. +* @ret_succeeded: Set to the number of pages migrated successfully if +* the caller passes a non-NULL pointer. * * The function returns after 10 attempts or if no pages are movable any more * because the list has become empty or no retryable pages exist any more.
@@ -1439,7 +1441,7 @@ static inline int try_split_thp(struct p*/ int migrate_pages (struct list_head *from,new_page_t get_new_page,free_page_t put_new_page,unsigned long private, -enum migrate_mode mode,int reason) +enum migrate_mode mode,int reason,unsigned int *ret_succeeded) {int retry =1 ;int thp_retry =1 ;
@@ -1594,6 +1596,9 @@ out:if (!swapwrite) current->flags &= ~PF_SWAPWRITE ; +if (ret_succeeded) + *ret_succeeded = nr_succeeded; +return rc; }
@@ -1663,7 +1668,7 @@ static int do_move_pages_to_node(struct }; err =migrate_pages (pagelist, alloc_migration_target,NULL , - (unsigned long )&mtc,MIGRATE_SYNC ,MR_SYSCALL ); + (unsigned long )&mtc,MIGRATE_SYNC ,MR_SYSCALL ,NULL );if (err)putback_movable_pages (pagelist);return err;
@@ -2178,7 +2183,7 @@ int migrate_misplaced_page(struct page *list_add (&page->lru, &migratepages); nr_remaining =migrate_pages (&migratepages, *new,NULL , node, -MIGRATE_ASYNC ,MR_NUMA_MISPLACED ); +MIGRATE_ASYNC ,MR_NUMA_MISPLACED ,NULL );if (nr_remaining) {if (!list_empty (&migratepages)) {list_del (&page->lru);
mm/page_alloc.c renamed from mm/page_alloc.c~mm-migrate-enable-returning-precise-migrate_pages-success-count +1 -1
@@ -8990,7 +8990,7 @@ static int __alloc_contig_migrate_range( cc->nr_migratepages -= nr_reclaimed; ret =migrate_pages (&cc->migratepages, alloc_migration_target, -NULL , (unsigned long )&mtc, cc->mode,MR_CONTIG_RANGE ); +NULL , (unsigned long )&mtc, cc->mode,MR_CONTIG_RANGE ,NULL );/* * On -ENOMEM, migrate_pages() bails out right away. It is pointless
_
Andrew Morton
maintainerPATCH 176/212 mm/migrate: demote pages during reclaim
In reply to Andrew MortonFrom: Dave Hansen <[email protected]>
Subject: mm/migrate: demote pages during reclaim
This is mostly derived from a patch from Yang Shi:
https://lore.kernel.org/linux-mm/[email protected]/
Add code to the reclaim path (shrink_page_list()) to "demote" data to another NUMA node instead of discarding the data. This always avoids the cost of I/O needed to read the page back in and sometimes avoids the writeout cost when the page is dirty.
A second pass through shrink_page_list() will be made if any demotions fail. This essentially falls back to normal reclaim behavior in the case that demotions fail. Previous versions of this patch may have simply failed to reclaim pages which were eligible for demotion but were unable to be demoted in practice.
For some cases, for example, MADV_PAGEOUT, the pages are always discarded instead of demoted to follow the kernel API definition. Because MADV_PAGEOUT is defined as freeing specified pages regardless in which tier they are.
Note: This just adds the start of infrastructure for migration. It is actually disabled next to the FIXME in migrate_demote_page_ok().
---
include/linux/migrate.h | 9 +++ include/trace/events/migrate.h | 3 - mm/vmscan.c | 85 +++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+), 1 deletion(-)
include/linux/migrate.h renamed from include/linux/migrate.h~mm-migrate-demote-pages-during-reclaim +9 -0
@@ -28,6 +28,7 @@ enum migrate_reason {MR_NUMA_MISPLACED ,MR_CONTIG_RANGE ,MR_LONGTERM_PIN , +MR_DEMOTION , MR_TYPES };
@@ -167,6 +168,14 @@ struct migrate_vma {int migrate_vma_setup (struct migrate_vma *args);void migrate_vma_pages (struct migrate_vma *migrate);void migrate_vma_finalize (struct migrate_vma *migrate); +int next_demotion_node (int node); + +#else /* CONFIG_MIGRATION disabled: */ + +static inline int next_demotion_node (int node) +{ +return NUMA_NO_NODE ; +}#endif /* CONFIG_MIGRATION */
include/trace/events/migrate.h renamed from include/trace/events/migrate.h~mm-migrate-demote-pages-during-reclaim +2 -1
@@ -21,7 +21,8 @@ EM( MR_MEMPOLICY_MBIND, "mempolicy_mbind") \ EM( MR_NUMA_MISPLACED, "numa_misplaced") \ EM( MR_CONTIG_RANGE, "contig_range") \ -EMe (MR_LONGTERM_PIN ,"longterm_pin" ) + EM( MR_LONGTERM_PIN, "longterm_pin") \ +EMe (MR_DEMOTION ,"demotion" )/* * First define the enums in the above macros to be exported to userspace
mm/vmscan.c renamed from mm/vmscan.c~mm-migrate-demote-pages-during-reclaim +85 -0
139 lines not on this page · raw message
_
Andrew Morton
maintainerPATCH 177/212 mm/vmscan: add page demotion counter
In reply to Andrew MortonFrom: Yang Shi <[email protected]>
Subject: mm/vmscan: add page demotion counter
Account the number of demoted pages.
Add pgdemote_kswapd and pgdemote_direct VM counters showed in /proc/vmstat.
[ daveh:
- __count_vm_events() a bit, and made them look at the THP size directly rather than getting data from migrate_pages()
]
---
include/linux/vm_event_item.h | 2 ++ mm/vmscan.c | 5 +++++ mm/vmstat.c | 2 ++ 3 files changed, 9 insertions(+)
include/linux/vm_event_item.h renamed from include/linux/vm_event_item.h~mm-vmscan-add-page-demotion-counter +2 -0
@@ -33,6 +33,8 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSPGREUSE ,PGSTEAL_KSWAPD ,PGSTEAL_DIRECT , +PGDEMOTE_KSWAPD , +PGDEMOTE_DIRECT ,PGSCAN_KSWAPD ,PGSCAN_DIRECT , PGSCAN_DIRECT_THROTTLE,
mm/vmscan.c renamed from mm/vmscan.c~mm-vmscan-add-page-demotion-counter +5 -0
@@ -1318,6 +1318,11 @@ static unsigned int demote_page_list(str target_nid,MIGRATE_ASYNC ,MR_DEMOTION , &nr_succeeded); +if (current_is_kswapd ()) +__count_vm_events (PGDEMOTE_KSWAPD , nr_succeeded); +else +__count_vm_events (PGDEMOTE_DIRECT , nr_succeeded); +return nr_succeeded; }
mm/vmstat.c renamed from mm/vmstat.c~mm-vmscan-add-page-demotion-counter +2 -0
@@ -1217,6 +1217,8 @@ const char * const vmstat_text[] = {"pgreuse" ,"pgsteal_kswapd" ,"pgsteal_direct" , +"pgdemote_kswapd" , +"pgdemote_direct" ,"pgscan_kswapd" ,"pgscan_direct" , "pgscan_direct_throttle",
_
Andrew Morton
maintainerPATCH 178/212 mm/vmscan: add helper for querying ability to age anonymous pages
In reply to Andrew MortonFrom: Dave Hansen <[email protected]>
Subject: mm/vmscan: add helper for querying ability to age anonymous pages
Anonymous pages are kept on their own LRU(s). These lists could theoretically always be scanned and maintained. But, without swap, there is currently nothing the kernel can *do* with the results of a scanned, sorted LRU for anonymous pages.
A check for '!total_swap_pages' currently serves as a valid check as to whether anonymous LRUs should be maintained. However, another method will be added shortly: page demotion.
Abstract out the 'total_swap_pages' checks into a helper, give it a logically significant name, and check for the possibility of page demotion.
---
mm/vmscan.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-)
mm/vmscan.c renamed from mm/vmscan.c~mm-vmscan-add-helper-for-querying-ability-to-age-anonymous-pages +18 -2
@@ -2734,6 +2734,21 @@ out: } } +/* +* Anonymous LRU management is a waste if there is +* ultimately no way to reclaim the memory. +*/ +static bool can_age_anon_pages (struct pglist_data *pgdat, +struct scan_control *sc) +{ +/* Aging the anon LRU is valuable if swap is present: */ +if (total_swap_pages >0 ) +return true; + +/* Also valuable if anon pages can be demoted: */ +return can_demote (pgdat->node_id, sc); +} +static void shrink_lruvec (struct lruvec *lruvec,struct scan_control *sc) {unsigned long nr[NR_LRU_LISTS ];
@@ -2843,7 +2858,8 @@ static void shrink_lruvec(struct lruvec* Even if we did not try to evict anon pages at all, we want to * rebalance the anon lru active/inactive ratio. */ -if (total_swap_pages &&inactive_is_low (lruvec,LRU_INACTIVE_ANON )) +if (can_age_anon_pages (lruvec_pgdat (lruvec), sc) && +inactive_is_low (lruvec,LRU_INACTIVE_ANON ))shrink_active_list (SWAP_CLUSTER_MAX , lruvec, sc,LRU_ACTIVE_ANON ); }
@@ -3678,7 +3694,7 @@ static void age_active_anon(struct pglisstruct mem_cgroup *memcg;struct lruvec *lruvec; -if (!total_swap_pages) +if (!can_age_anon_pages (pgdat, sc))return ; lruvec =mem_cgroup_lruvec (NULL , pgdat);
_
Andrew Morton
maintainerPATCH 179/212 mm/vmscan: Consider anonymous pages without swap
In reply to Andrew MortonFrom: Keith Busch <[email protected]>
Subject: mm/vmscan: Consider anonymous pages without swap
Reclaim anonymous pages if a migration path is available now that demotion provides a non-swap recourse for reclaiming anon pages.
Note that this check is subtly different from the can_age_anon_pages() checks. This mechanism checks whether a specific page in a specific context can actually be reclaimed, given current swap space and cgroup limits.
can_age_anon_pages() is a much simpler and more preliminary check which just says whether there is a possibility of future reclaim.
---
mm/vmscan.c | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-)
mm/vmscan.c renamed from mm/vmscan.c~mm-vmscan-consider-anonymous-pages-without-swap +30 -4
@@ -524,7 +524,7 @@ static long add_nr_deferred(long nr, strstatic bool can_demote (int nid,struct scan_control *sc) { -if (sc->no_demotion) +if (sc && sc->no_demotion)return false;if (next_demotion_node (nid) ==NUMA_NO_NODE )return false;
@@ -533,6 +533,31 @@ static bool can_demote(int nid, struct sreturn false; } +static inline bool can_reclaim_anon_pages (struct mem_cgroup *memcg, +int nid, +struct scan_control *sc) +{ +if (memcg ==NULL ) { +/* +* For non-memcg reclaim, is there +* space in any swap device? +*/ +if (get_nr_swap_pages () >0 ) +return true; + }else { +/* Is the memcg below its swap limit? */ +if (mem_cgroup_get_nr_swap_pages (memcg) >0 ) +return true; + } + +/* +* The page can not be swapped. +* +* Can it be reclaimed from this node via demotion? +*/ +return can_demote (nid, sc); +} +/* * This misses isolated pages which are not accounted for to save counters. * As the data only determines if reclaim or compaction continues, it is
@@ -544,7 +569,7 @@ unsigned long zone_reclaimable_pages(str nr =zone_page_state_snapshot (zone,NR_ZONE_INACTIVE_FILE ) +zone_page_state_snapshot (zone,NR_ZONE_ACTIVE_FILE ); -if (get_nr_swap_pages () >0 ) +if (can_reclaim_anon_pages (NULL ,zone_to_nid (zone),NULL )) nr +=zone_page_state_snapshot (zone,NR_ZONE_INACTIVE_ANON ) +zone_page_state_snapshot (zone,NR_ZONE_ACTIVE_ANON );
@@ -2541,6 +2566,7 @@ enum scan_balance {static void get_scan_count (struct lruvec *lruvec,struct scan_control *sc,unsigned long *nr) { +struct pglist_data *pgdat =lruvec_pgdat (lruvec);struct mem_cgroup *memcg =lruvec_memcg (lruvec);unsigned long anon_cost, file_cost, total_cost;int swappiness =mem_cgroup_swappiness (memcg);
@@ -2551,7 +2577,7 @@ static void get_scan_count(struct lruvecenum lru_list lru;/* If we have no swap space, do not bother scanning anon pages. */ -if (!sc->may_swap ||mem_cgroup_get_nr_swap_pages (memcg) <=0 ) { +if (!sc->may_swap || !can_reclaim_anon_pages (memcg, pgdat->node_id, sc)) { scan_balance =SCAN_FILE ; goto out; }
@@ -2929,7 +2955,7 @@ static inline bool should_continue_recla*/ pages_for_compaction =compact_gap (sc->order); inactive_lru_pages =node_page_state (pgdat,NR_INACTIVE_FILE ); -if (get_nr_swap_pages () >0 ) +if (can_reclaim_anon_pages (NULL , pgdat->node_id, sc)) inactive_lru_pages +=node_page_state (pgdat,NR_INACTIVE_ANON );return inactive_lru_pages > pages_for_compaction;
_
Andrew Morton
maintainerPATCH 180/212 mm/vmscan: never demote for memcg reclaim
In reply to Andrew MortonFrom: Dave Hansen <[email protected]>
Subject: mm/vmscan: never demote for memcg reclaim
Global reclaim aims to reduce the amount of memory used on a given node or set of nodes. Migrating pages to another node serves this purpose.
memcg reclaim is different. Its goal is to reduce the total memory consumption of the entire memcg, across all nodes. Migration does not assist memcg reclaim because it just moves page contents between nodes rather than actually reducing memory consumption.
---
mm/vmscan.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
mm/vmscan.c renamed from mm/vmscan.c~mm-vmscan-never-demote-for-memcg-reclaim +7 -2
@@ -524,8 +524,13 @@ static long add_nr_deferred(long nr, strstatic bool can_demote (int nid,struct scan_control *sc) { -if (sc && sc->no_demotion) -return false; +if (sc) { +if (sc->no_demotion) +return false; +/* It is pointless to do demotion in memcg reclaim */ +if (cgroup_reclaim (sc)) +return false; + }if (next_demotion_node (nid) ==NUMA_NO_NODE )return false;
_
Andrew Morton
maintainerPATCH 181/212 mm/migrate: add sysfs interface to enable reclaim migration
In reply to Andrew MortonFrom: Huang Ying <[email protected]>
Subject: mm/migrate: add sysfs interface to enable reclaim migration
Some method is obviously needed to enable reclaim-based migration.
Just like traditional autonuma, there will be some workloads that will benefit like workloads with more "static" configurations where hot pages stay hot and cold pages stay cold. If pages come and go from the hot and cold sets, the benefits of this approach will be more limited.
The benefits are truly workload-based and *not* hardware-based. We do not believe that there is a viable threshold where certain hardware configurations should have this mechanism enabled while others do not.
To be conservative, earlier work defaulted to disable reclaim- based migration and did not include a mechanism to enable it. This proposes add a new sysfs file
/sys/kernel/mm/numa/demotion_enabled
as a method to enable it.
We are open to any alternative that allows end users to enable this mechanism or disable it if workload harm is detected (just like traditional autonuma).
Once this is enabled page demotion may move data to a NUMA node that does not fall into the cpuset of the allocating process. This could be construed to violate the guarantees of cpusets. However, since this is an opt-in mechanism, the assumption is that anyone enabling it is content to relax the guarantees.
---
Documentation/ABI/testing/sysfs-kernel-mm-numa | 24 +++++ include/linux/mempolicy.h | 4 mm/mempolicy.c | 61 +++++++++++++++ mm/vmscan.c | 5 - 4 files changed, 92 insertions(+), 2 deletions(-)
Documentation/ABI/testing/sysfs-kernel-mm-numa new file +24 -0
@@ -0,0 +1,24 @@ +What: /sys/kernel/mm/numa/ +Date: June 2021 +Contact: Linux memory management mailing list <[email protected]> +Description: Interface for NUMA + +What: /sys/kernel/mm/numa/demotion_enabled +Date: June 2021 +Contact: Linux memory management mailing list <[email protected]> +Description: Enable/disable demoting pages during reclaim + + Page migration during reclaim is intended for systems + with tiered memory configurations. These systems have + multiple types of memory with varied performance + characteristics instead of plain NUMA systems where + the same kind of memory is found at varied distances. + Allowing page migration during reclaim enables these + systems to migrate pages from fast tiers to slow tiers + when the fast tier is under pressure. This migration + is performed before swap. It may move data to a NUMA + node that does not fall into the cpuset of the + allocating process which might be construed to violate + the guarantees of cpusets. This should not be enabled + on systems which need strict cpuset location + guarantees.
include/linux/mempolicy.h renamed from include/linux/mempolicy.h~mm-migrate-add-sysfs-interface-to-enable-reclaim-migration +4 -0
@@ -184,6 +184,8 @@ extern bool vma_migratable(struct vm_areextern int mpol_misplaced (struct page *,struct vm_area_struct *,unsigned long );extern void mpol_put_task_policy (struct task_struct *); +extern bool numa_demotion_enabled; +#else struct mempolicy {};
@@ -292,5 +294,7 @@ static inline nodemask_t *policy_nodemas {return NULL ; } + +#define numa_demotion_enabled false#endif /* CONFIG_NUMA */ #endif
mm/mempolicy.c renamed from mm/mempolicy.c~mm-migrate-add-sysfs-interface-to-enable-reclaim-migration +61 -0
64 lines not on this page · raw message
mm/vmscan.c renamed from mm/vmscan.c~mm-migrate-add-sysfs-interface-to-enable-reclaim-migration +3 -2
@@ -524,6 +524,8 @@ static long add_nr_deferred(long nr, strstatic bool can_demote (int nid,struct scan_control *sc) { +if (!numa_demotion_enabled) +return false;if (sc) {if (sc->no_demotion)return false;
@@ -534,8 +536,7 @@ static bool can_demote(int nid, struct sif (next_demotion_node (nid) ==NUMA_NO_NODE )return false; -// FIXME: actually enable this later in the series -return false; +return true; } static inline bool can_reclaim_anon_pages(struct mem_cgroup *memcg,
_
Andrew Morton
maintainerPATCH 182/212 mm/vmpressure: replace vmpressure_to_css() with vmpressure_to_memcg()
In reply to Andrew MortonFrom: Hui Su <[email protected]>
Subject: mm/vmpressure: replace vmpressure_to_css() with vmpressure_to_memcg()
We can get memcg directly form vmpr instead of vmpr->memcg->css->memcg, so add a new func helper vmpressure_to_memcg(). And no code will use vmpressure_to_css(), so delete it.
---
include/linux/vmpressure.h | 2 +- mm/memcontrol.c | 4 ++-- mm/vmpressure.c | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-)
include/linux/vmpressure.h renamed from include/linux/vmpressure.h~mm-vmpressure-replace-vmpressure_to_css-with-vmpressure_to_memcg +1 -1
@@ -37,7 +37,7 @@ extern void vmpressure_prio(gfp_t gfp, sextern void vmpressure_init (struct vmpressure *vmpr);extern void vmpressure_cleanup (struct vmpressure *vmpr);extern struct vmpressure *memcg_to_vmpressure (struct mem_cgroup *memcg); -extern struct cgroup_subsys_state *vmpressure_to_css (struct vmpressure *vmpr); +extern struct mem_cgroup *vmpressure_to_memcg (struct vmpressure *vmpr);extern int vmpressure_register_event (struct mem_cgroup *memcg,struct eventfd_ctx *eventfd,const char *args);
mm/memcontrol.c renamed from mm/memcontrol.c~mm-vmpressure-replace-vmpressure_to_css-with-vmpressure_to_memcg +2 -2
@@ -256,9 +256,9 @@ struct vmpressure *memcg_to_vmpressure(sreturn &memcg->vmpressure; } -struct cgroup_subsys_state *vmpressure_to_css (struct vmpressure *vmpr) +struct mem_cgroup *vmpressure_to_memcg (struct vmpressure *vmpr) { - return &container_of(vmpr, struct mem_cgroup, vmpressure)->css; + return container_of(vmpr, struct mem_cgroup, vmpressure); }#ifdef CONFIG_MEMCG_KMEM
mm/vmpressure.c renamed from mm/vmpressure.c~mm-vmpressure-replace-vmpressure_to_css-with-vmpressure_to_memcg +1 -2
@@ -74,8 +74,7 @@ static struct vmpressure *work_to_vmpresstatic struct vmpressure *vmpressure_parent (struct vmpressure *vmpr) { -struct cgroup_subsys_state *css =vmpressure_to_css (vmpr); -struct mem_cgroup *memcg =mem_cgroup_from_css (css); +struct mem_cgroup *memcg =vmpressure_to_memcg (vmpr); memcg =parent_mem_cgroup (memcg);if (!memcg)
_
Andrew Morton
maintainerPATCH 183/212 mm/vmscan: remove the PageDirty check after MADV_FREE pages are page_ref_freezed
In reply to Andrew MortonFrom: Miaohe Lin <[email protected]>
Subject: mm/vmscan: remove the PageDirty check after MADV_FREE pages are page_ref_freezed
Patch series "Cleanups for vmscan", v2.
This series contains cleanups to remove unneeded return value, misleading setting and so on. Also this remove the PageDirty check after MADV_FREE pages are page_ref_freezed. More details can be found in the respective changelogs.
This patch (of 4):
If the MADV_FREE pages are redirtied before they could be reclaimed, put the pages back to anonymous LRU list by setting SwapBacked flag and the pages will be reclaimed in normal swapout way. But as Yu Zhao pointed out, "The page has only one reference left, which is from the isolation. After the caller puts the page back on lru and drops the reference, the page will be freed anyway. It doesn't matter which lru it goes." So we don't bother checking PageDirty here.
[Yu Zhao's comment is also quoted in the code.]
---
mm/vmscan.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
mm/vmscan.c renamed from mm/vmscan.c~mm-vmscan-remove-the-pagedirty-check-after-madv_free-pages-are-page_ref_freezed +8 -5
@@ -1732,11 +1732,14 @@ retry:/* follow __remove_mapping for reference */ if (!page_ref_freeze (page,1 )) goto keep_locked; -if (PageDirty (page)) { -page_ref_unfreeze (page,1 ); - goto keep_locked; - } - +/* +* The page has only one reference left, which is +* from the isolation. After the caller puts the +* page back on lru and drops the reference, the +* page will be freed anyway. It doesn't matter +* which lru it goes. So we don't bother checking +* PageDirty here. +*/ count_vm_event (PGLAZYFREED );count_memcg_page_event (page,PGLAZYFREED ); } else if (!mapping || !__remove_mapping(mapping, page, true,
_
Andrew Morton
maintainerPATCH 184/212 mm/vmscan: remove misleading setting to sc->priority
In reply to Andrew MortonFrom: Miaohe Lin <[email protected]>
Subject: mm/vmscan: remove misleading setting to sc->priority
The priority field of sc is used to control how many pages we should scan at once while we always traverse the list to shrink the pages in these functions. So these settings are unneeded and misleading.
---
mm/vmscan.c | 2 -- 1 file changed, 2 deletions(-)
mm/vmscan.c renamed from mm/vmscan.c~mm-vmscan-remove-misleading-setting-to-sc-priority +0 -2
@@ -1820,7 +1820,6 @@ unsigned int reclaim_clean_pages_from_li {struct scan_control sc = { .gfp_mask =GFP_KERNEL , - .priority =DEF_PRIORITY , .may_unmap =1 , };struct reclaim_stat stat;
@@ -2445,7 +2444,6 @@ unsigned long reclaim_pages(struct list_unsigned int noreclaim_flag;struct scan_control sc = { .gfp_mask =GFP_KERNEL , - .priority =DEF_PRIORITY , .may_writepage =1 , .may_unmap =1 , .may_swap =1 ,
_
Andrew Morton
maintainerPATCH 185/212 mm/vmscan: remove unneeded return value of kswapd_run()
In reply to Andrew MortonFrom: Miaohe Lin <[email protected]>
Subject: mm/vmscan: remove unneeded return value of kswapd_run()
The return value of kswapd_run() is unused now. Clean it up.
---
include/linux/swap.h | 2 +- mm/vmscan.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-)
include/linux/swap.h renamed from include/linux/swap.h~mm-vmscan-remove-unneeded-return-value-of-kswapd_run +1 -1
@@ -408,7 +408,7 @@ static inline bool node_reclaim_enabled(extern void check_move_unevictable_pages (struct pagevec *pvec); -extern int kswapd_run (int nid); +extern void kswapd_run (int nid);extern void kswapd_stop (int nid);#ifdef CONFIG_SWAP
mm/vmscan.c renamed from mm/vmscan.c~mm-vmscan-remove-unneeded-return-value-of-kswapd_run +2 -5
@@ -4434,23 +4434,20 @@ unsigned long shrink_all_memory(unsigned* This kswapd start function will be called by init and node-hot-add. * On node-hot-add, kswapd will moved to proper cpus if cpus are hot-added. */ -int kswapd_run (int nid) +void kswapd_run (int nid) {pg_data_t *pgdat =NODE_DATA (nid); -int ret =0 ;if (pgdat->kswapd) -return 0 ; +return ; pgdat->kswapd =kthread_run (kswapd, pgdat,"kswapd%d" , nid);if (IS_ERR (pgdat->kswapd)) {/* failure at boot is fatal */ BUG_ON (system_state <SYSTEM_RUNNING );pr_err ("Failed to start kswapd on node %d\n" , nid); - ret =PTR_ERR (pgdat->kswapd); pgdat->kswapd =NULL ; } -return ret; }/*
_
Andrew Morton
maintainerPATCH 186/212 mm/vmscan: add 'else' to remove check_pending label
In reply to Andrew MortonFrom: Miaohe Lin <[email protected]>
Subject: mm/vmscan: add 'else' to remove check_pending label
We could add 'else' to remove the somewhat odd check_pending label to make code core succinct.
---
mm/vmscan.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-)
mm/vmscan.c renamed from mm/vmscan.c~mm-vmscan-add-else-to-remove-check_pending-label +5 -9
@@ -3578,18 +3578,14 @@ static bool throttle_direct_reclaim(gfp_* blocked waiting on the same lock. Instead, throttle for up to a * second before continuing. */ -if (!(gfp_mask & __GFP_FS)) { +if (!(gfp_mask & __GFP_FS))wait_event_interruptible_timeout (pgdat->pfmemalloc_wait,allow_direct_reclaim (pgdat),HZ ); +else +/* Throttle until kswapd wakes the process */ +wait_event_killable (zone->zone_pgdat->pfmemalloc_wait, +allow_direct_reclaim (pgdat)); - goto check_pending; - } - -/* Throttle until kswapd wakes the process */ -wait_event_killable (zone->zone_pgdat->pfmemalloc_wait, -allow_direct_reclaim (pgdat)); - -check_pending:if (fatal_signal_pending (current))return true;
_
Andrew Morton
maintainerPATCH 187/212 mm, vmscan: guarantee drop_slab_node() termination
In reply to Andrew MortonFrom: Vlastimil Babka <[email protected]>
Subject: mm, vmscan: guarantee drop_slab_node() termination
drop_slab_node() is called as part of echo 2>/proc/sys/vm/drop_caches operation. It iterates over all memcgs and calls shrink_slab() which in turn iterates over all slab shrinkers. Freed objects are counted and as long as the total number of freed objects from all memcgs and shrinkers is higher than 10, drop_slab_node() loops for another full memcgs*shrinkers iteration.
This arbitrary constant threshold of 10 can result in effectively an infinite loop on a system with large number of memcgs and/or parallel activity that allocates new objects. This has been reported previously by Chunxin Zang [1] and recently by our customer.
The previous report [1] has resulted in commit 069c411de40a ("mm/vmscan:
fix infinite loop in drop_slab_node") which added a check for signals allowing the user to terminate the command writing to drop_caches. At the time it was also considered to make the threshold grow with each iteration to guarantee termination, but such patch hasn't been formally proposed yet.
This patch implements the dynamically growing threshold. At first iteration it's enough to free one object to continue, and this threshold effectively doubles with each iteration. Our customer's feedback was positive.
There is always a risk that this change will result on some system in a previously terminating drop_caches operation to terminate sooner and free fewer objects. Ideally the semantics would guarantee freeing all freeable objects that existed at the moment of starting the operation, while not looping forever for newly allocated objects, but that's not feasible to track. In the less ideal solution based on thresholds, arguably the termination guarantee is more important than the exhaustiveness guarantee. If there are reports of large regression wrt being exhaustive, we can tune how fast the threshold grows.
[1] https://lore.kernel.org/lkml/[email protected]/T/#u
---
mm/vmscan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mm/vmscan.c renamed from mm/vmscan.c~mm-vmscan-guarantee-drop_slab_node-termination +2 -1
@@ -939,6 +939,7 @@ out:void drop_slab_node (int nid) {unsigned long freed; +int shift =0 ; do { struct mem_cgroup *memcg = NULL;
@@ -951,7 +952,7 @@ void drop_slab_node(int nid)do { freed +=shrink_slab (GFP_KERNEL , nid, memcg,0 ); }while ((memcg =mem_cgroup_iter (NULL , memcg,NULL )) !=NULL ); - }while (freed >10 ); + }while ((freed >> shift++) >1 ); }void drop_slab (void )
_
Andrew Morton
maintainerPATCH 188/212 mm: compaction: optimize proactive compaction deferrals
In reply to Andrew MortonFrom: Charan Teja Reddy <[email protected]>
Subject: mm: compaction: optimize proactive compaction deferrals
Vlastimil Babka figured out that when fragmentation score didn't go down across the proactive compaction i.e. when no progress is made, next wake up for proactive compaction is deferred for 1 << COMPACT_MAX_DEFER_SHIFT, i.e. 64 times, with each wakeup interval of HPAGE_FRAG_CHECK_INTERVAL_MSEC(=500). In each of this wakeup, it just decrement 'proactive_defer' counter and goes sleep i.e. it is getting woken to just decrement a counter.
The same deferral time can also achieved by simply doing the HPAGE_FRAG_CHECK_INTERVAL_MSEC << COMPACT_MAX_DEFER_SHIFT thus unnecessary wakeup of kcompact thread is avoided thus also removes the need of 'proactive_defer' thread counter.
---
mm/compaction.c | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-)
mm/compaction.c renamed from mm/compaction.c~mm-compaction-optimize-proactive-compaction-deferrals +19 -10
@@ -2885,7 +2885,8 @@ static int kcompactd(void *p) {pg_data_t *pgdat = (pg_data_t *)p;struct task_struct *tsk = current; -unsigned int proactive_defer =0 ; +long default_timeout =msecs_to_jiffies (HPAGE_FRAG_CHECK_INTERVAL_MSEC ); +long timeout = default_timeout;const struct cpumask *cpumask =cpumask_of_node (pgdat->node_id);
@@ -2902,23 +2903,30 @@ static int kcompactd(void *p)trace_mm_compaction_kcompactd_sleep (pgdat->node_id);if (wait_event_freezable_timeout (pgdat->kcompactd_wait, -kcompactd_work_requested (pgdat), -msecs_to_jiffies (HPAGE_FRAG_CHECK_INTERVAL_MSEC ))) { +kcompactd_work_requested (pgdat), timeout)) {psi_memstall_enter (&pflags);kcompactd_do_work (pgdat);psi_memstall_leave (&pflags); +/* +* Reset the timeout value. The defer timeout from +* proactive compaction is lost here but that is fine +* as the condition of the zone changing substantionally +* then carrying on with the previous defer interval is +* not useful. +*/ + timeout = default_timeout;continue ; } -/* kcompactd wait timeout */ +/* +* Start the proactive work with default timeout. Based +* on the fragmentation score, this timeout is updated. +*/ + timeout = default_timeout;if (should_proactive_compact_node (pgdat)) {unsigned int prev_score, score; -if (proactive_defer) { - proactive_defer--; -continue ; - } prev_score =fragmentation_score_node (pgdat);proactive_compact_node (pgdat); score =fragmentation_score_node (pgdat);
@@ -2926,8 +2934,9 @@ static int kcompactd(void *p)* Defer proactive compaction if the fragmentation * score did not go down i.e. no progress made. */ - proactive_defer = score < prev_score ? -0 :1 <<COMPACT_MAX_DEFER_SHIFT ; +if (unlikely (score >= prev_score)) + timeout = + default_timeout <<COMPACT_MAX_DEFER_SHIFT ; } }
_