aboutsummarylogtreecommitdiffstats
path: root/myconfig
blob: b9ee738e0f6fb86e231d564e7bd43849e980c4d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#!/bin/bash

## NOTE: Basic Arch compat. options:

# CONFIG_STACK_VALIDATION gives better stack traces. Also is enabled in all official kernel packages by Archlinux team
scripts/config --enable CONFIG_STACK_VALIDATION

# Enable IKCONFIG following Arch's philosophy
scripts/config --enable CONFIG_IKCONFIG \
               --enable CONFIG_IKCONFIG_PROC

## XXX: This kernel package is primarily targeted at ASUS laptops, we switch to schedutil so the machine properly clocks down

scripts/config --disable CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE
scripts/config --enable CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL

## s0ix debugging
scripts/config --enable CONFIG_CMDLINE_BOOL \
               --set-str CONFIG_CMDLINE "pm_debug_messages amd_pmc.dyndbg=+p acpi.dyndbg=file drivers/acpi/x86/s2idle.c +p" \
               --disable CMDLINE_OVERRIDE

## asusctl/supergfxctl compatibility
scripts/config --module CONFIG_VFIO_IOMMU_TYPE1 \
               --module CONFIG_VFIO_VIRQFD \
               --module CONFIG_KVM_VFIO \
               --disable CONFIG_VFIO_NOIOMMU \
               --module CONFIG_VFIO_PCI

## NOTE: Add any options here that you'd like to change from kernel defaults

# sync default hostname with Arch
scripts/config --set-val CONFIG_DEFAULT_HOSTNAME archlinux

# sync up BPF defaults with mainline
scripts/config --enable CONFIG_BPF_PRELOAD \
               --module CONFIG_BPF_PRELOAD_UMD
scripts/config --enable CONFIG_BPF_LSM \
               --disable CONFIG_BPF_UNPRIV_DEFAULT_OFF

# compress our modules
scripts/config --disable CONFIG_MODULE_COMPRESS_NONE \
               --enable CONFIG_MODULE_COMPRESS_ZSTD

# sync some settings with Arch:
scripts/config --enable CONFIG_TASKS_RUDE_RCU \
               --disable CONFIG_X86_MCELOG_LEGACY \
               --enable CONFIG_X86_CPA_STATISTICS \
               --module CONFIG_X86_PMEM_LEGACY \
               --enable CONFIG_KPROBES_ON_FTRACE \
               --enable CONFIG_UPROBES \
               --enable CONFIG_LOCK_EVENT_COUNTS \
               --enable CONFIG_MODULE_FORCE_LOAD \
               --enable CONFIG_MODULE_FORCE_UNLOAD \
               --enable CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS \
               --enable CONFIG_BLK_DEV_THROTTLING_LOW \
               --enable CONFIG_BLK_CGROUP_IOCOST \
               --enable CONFIG_CMA \
               --enable CONFIG_CMA_DEBUGFS \
               --enable CONFIG_CMA_SYSFS \
               --set-val CONFIG_CMA_AREAS 7 \
               --enable CONFIG_ZSWAP_DEFAULT_ON \
               --enable CONFIG_READ_ONLY_THP_FOR_FS \
               --enable CONFIG_XFRM_SUB_POLICY \
               --enable CONFIG_XFRM_MIGRATE \
               --enable CONFIG_NET_KEY_MIGRATE \
               --enable CONFIG_IPV6_OPTIMISTIC_DAD \
               --enable CONFIG_IPV6_RPL_LWTUNNEL \
               --enable CONFIG_NF_CONNTRACK_PROCFS \
               --module CONFIG_NETFILTER_XT_TARGET_NOTRACK \
               --disable CONFIG_DECNET \
               --module CONFIG_IPDDP \
               --enable CONFIG_IPDDP_ENCAP \
               --disable CONFIG_X25 \
               --disable CONFIG_LAPB

scripts/config --enable CONFIG_TRACEPOINTS \
               --disable CONFIG_IOSF_MBI_DEBUG \
               --enable CONFIG_KVM_MMU_AUDIT \
               --disable CONFIG_BLK_CMDLINE_PARSER \
               --enable CONFIG_6LOWPAN_DEBUGFS \
               --module CONFIG_6LOWPAN_GHC_EXT_HDR_HOP \
               --module CONFIG_6LOWPAN_GHC_UDP \
               --module CONFIG_6LOWPAN_GHC_ICMPV6 \
               --module CONFIG_6LOWPAN_GHC_EXT_HDR_DEST \
               --module CONFIG_6LOWPAN_GHC_EXT_HDR_FRAG \
               --module CONFIG_6LOWPAN_GHC_EXT_HDR_ROUTE \
               --enable CONFIG_IEEE802154_NL802154_EXPERIMENTAL \
               --enable CONFIG_CLS_U32_PERF \
               --module CONFIG_NET_ACT_IFE \
               --enable CONFIG_BATMAN_ADV_BATMAN_V \
               --enable CONFIG_CEPH_LIB_PRETTYDEBUG \
               --module CONFIG_PCIEAER_INJECT \
               --enable CONFIG_PCIE_ECRC \
               --enable CONFIG_PCI_P2PDMA

scripts/config --disable CONFIG_RAPIDIO \
               --module CONFIG_CDROM \
               --disable CONFIG_PARIDE \
               --enable CONFIG_NVME_CORE \
               --enable CONFIG_BLK_DEV_NVME \
               --module CONFIG_FDDI \
               --module CONFIG_PPP \
               --module CONFIG_SLHC

# package is throwing a warning re: lack of binutils support
scripts/config --disable CONFIG_X86_X32
# larger log buffer
scripts/config --set-val CONFIG_LOG_BUF_SHIFT 18
# msr as a module
scripts/config --module CONFIG_X86_MSR
# enable EFI var access
scripts/config --enable CONFIG_EFI_VARS
# enable module versioning
scripts/config --enable CONFIG_MODVERSIONS
# use a smaller connection tracking table
scripts/config --set-val CONFIG_IP_VS_TAB_BITS 12
# enable bluetooth high speed
scripts/config --enable CONFIG_BT_HS
# nein
scripts/config --disable CONFIG_UEVENT_HELPER
scripts/config --disable CONFIG_FW_LOADER_USER_HELPER
# enable zram memory tracking
scripts/config --enable CONFIG_ZRAM_MEMORY_TRACKING

# enable another ACPI debugging module
scripts/config --module CONFIG_ACPI_APEI_ERST_DEBUG

# enable multigen LRU by default
scripts/config --enable CONFIG_LRU_GEN_ENABLED

# AMD pstate
scripts/config --enable CONFIG_X86_AMD_PSTATE