Compare commits

..

1 Commits

Author SHA1 Message Date
Sravan Balaji
1a0693dd45 PDS Kernel Configuration 2023-09-29 22:00:33 -04:00
7 changed files with 262 additions and 99283 deletions

View File

@@ -59,7 +59,7 @@ _kernel_on_diet="false"
# Set to true to use modprobed db to clean config from unneeded modules. Speeds up compilation considerably. Requires root - https://wiki.archlinux.org/index.php/Modprobed-db # Set to true to use modprobed db to clean config from unneeded modules. Speeds up compilation considerably. Requires root - https://wiki.archlinux.org/index.php/Modprobed-db
# Using this option can trigger user prompts if the config doesn't go smoothly. # Using this option can trigger user prompts if the config doesn't go smoothly.
# !!!! Make sure to have a well populated db !!!! # !!!! Make sure to have a well populated db !!!! - Leave empty to be asked about it at build time
_modprobeddb="false" _modprobeddb="false"
# modprobed-db database file location # modprobed-db database file location

View File

@@ -25,9 +25,9 @@ algif_hash
algif_skcipher algif_skcipher
alx alx
amd64_edac amd64_edac
amdgpu
amd_pmc amd_pmc
amd_pstate amd_pstate
amdgpu
amdxcp amdxcp
apple_mfi_fastcharge apple_mfi_fastcharge
appletalk appletalk
@@ -54,8 +54,8 @@ bluetooth
bnep bnep
bpf bpf
bpf_preload bpf_preload
br_netfilter
bridge bridge
br_netfilter
btbcm btbcm
btcoexist btcoexist
btintel btintel
@@ -91,10 +91,10 @@ cmdlinepart
coretemp coretemp
cpufreq_ondemand cpufreq_ondemand
crc16 crc16
crc32_generic
crc32_pclmul
crc32c_generic crc32c_generic
crc32c_intel crc32c_intel
crc32_generic
crc32_pclmul
crc64 crc64
crc64_rocksoft crc64_rocksoft
crc64_rocksoft_generic crc64_rocksoft_generic
@@ -109,13 +109,13 @@ cuse
dca dca
des_generic des_generic
dm_crypt dm_crypt
dmi_sysfs
dm_log dm_log
dm_mirror dm_mirror
dm_mod dm_mod
dm_multipath dm_multipath
dm_region_hash dm_region_hash
dm_round_robin dm_round_robin
dmi_sysfs
dns_resolver dns_resolver
drm drm
drm_buddy drm_buddy
@@ -127,10 +127,10 @@ drm_ttm_helper
dvb_core dvb_core
ebtable_filter ebtable_filter
ebtables ebtables
ec_sys
ecb ecb
ecc ecc
ecdh_generic ecdh_generic
ec_sys
edac_mce_amd edac_mce_amd
ee1004 ee1004
eeepc_wmi eeepc_wmi
@@ -178,6 +178,7 @@ hid_logitech_hidpp
hid_microsoft hid_microsoft
hid_multitouch hid_multitouch
hid_nintendo hid_nintendo
hidp
hid_playstation hid_playstation
hid_roccat hid_roccat
hid_roccat_common hid_roccat_common
@@ -186,8 +187,6 @@ hid_roccat_ryos
hid_sony hid_sony
hid_steam hid_steam
hid_wiimote hid_wiimote
hidp
hp_wmi
hv_balloon hv_balloon
hv_netvsc hv_netvsc
hv_storvsc hv_storvsc
@@ -208,8 +207,6 @@ i2c_piix4
i2c_smbus i2c_smbus
i8042 i8042
i915 i915
iTCO_vendor_support
iTCO_wdt
ib_cm ib_cm
ib_core ib_core
idma64 idma64
@@ -218,12 +215,10 @@ igc
inet_diag inet_diag
input_leds input_leds
int3400_thermal int3400_thermal
int3403_thermal
int340x_thermal_zone int340x_thermal_zone
intel_agp intel_agp
intel_cstate intel_cstate
intel_gtt intel_gtt
intel_hid
intel_lpss intel_lpss
intel_lpss_pci intel_lpss_pci
intel_pch_thermal intel_pch_thermal
@@ -232,36 +227,37 @@ intel_powerclamp
intel_rapl_common intel_rapl_common
intel_rapl_msr intel_rapl_msr
intel_soc_dts_iosf intel_soc_dts_iosf
intel_tcc_cooling
intel_uncore intel_uncore
intel_vsec intel_vsec
intel_wmi_thunderbolt intel_wmi_thunderbolt
iommu_v2
iommufd iommufd
ip6_tables iommu_v2
ip6_udp_tunnel
ip6t_REJECT
ip6t_rt
ip6table_filter ip6table_filter
ip6table_mangle ip6table_mangle
ip6table_nat ip6table_nat
ip6table_raw ip6table_raw
ip6_tables
ip6table_security ip6table_security
ip_set ip6t_REJECT
ip_tables ip6t_rt
ip6_udp_tunnel
ipmi_devintf ipmi_devintf
ipmi_msghandler ipmi_msghandler
ipt_REJECT ip_set
iptable_filter iptable_filter
iptable_mangle iptable_mangle
iptable_nat iptable_nat
iptable_raw iptable_raw
ip_tables
iptable_security iptable_security
ipt_REJECT
ipv6 ipv6
ir_kbd_i2c ir_kbd_i2c
irqbypass irqbypass
isofs isofs
it87 it87
iTCO_vendor_support
iTCO_wdt
iw_cm iw_cm
iwlmei iwlmei
iwlmvm iwlmvm
@@ -305,17 +301,15 @@ mbcache
mc mc
mc44s803 mc44s803
md4 md4
md_mod
mdio mdio
mdio_devres mdio_devres
md_mod
mei mei
mei_gsc
mei_hdcp mei_hdcp
mei_me mei_me
mei_pxp mei_pxp
mii mii
minix minix
mmc_core
mousedev mousedev
mptcp_diag mptcp_diag
mrp mrp
@@ -358,14 +352,14 @@ nf_nat_irc
nf_nat_pptp nf_nat_pptp
nf_nat_sip nf_nat_sip
nf_nat_tftp nf_nat_tftp
nf_reject_ipv4
nf_reject_ipv6
nf_tables
nfnetlink nfnetlink
nfnetlink_log nfnetlink_log
nfnetlink_queue nfnetlink_queue
nf_reject_ipv4
nf_reject_ipv6
nfs nfs
nfsv4 nfsv4
nf_tables
nft_chain_nat nft_chain_nat
nft_compat nft_compat
nft_ct nft_ct
@@ -389,7 +383,6 @@ nls_utf8
nouveau nouveau
ntfs ntfs
ntfs3 ntfs3
nvidia_wmi_ec_backlight
nvme nvme
nvme_common nvme_common
nvme_core nvme_core
@@ -445,18 +438,12 @@ rt2800usb
rt2x00lib rt2x00lib
rt2x00usb rt2x00usb
rtl8192ee rtl8192ee
rtl8723_common
rtl8723ae rtl8723ae
rtl8723be rtl8723be
rtl8723_common
rtl8821ae rtl8821ae
rtl_pci rtl_pci
rtlwifi rtlwifi
rtsx_pci
rtsx_pci_sdmmc
rtw88_8821c
rtw88_8821ce
rtw88_core
rtw88_pci
sch_cake sch_cake
sch_fq_codel sch_fq_codel
sch_ingress sch_ingress
@@ -473,11 +460,8 @@ ses
sg sg
sha512_ssse3 sha512_ssse3
snd snd
snd_acp3x_pdm_dma
snd_acp3x_rn
snd_acp6x_pdm_dma snd_acp6x_pdm_dma
snd_acp_config snd_acp_config
snd_acp_pci
snd_aloop snd_aloop
snd_compress snd_compress
snd_ctl_led snd_ctl_led
@@ -495,12 +479,10 @@ snd_intel_sdw_acpi
snd_pci_acp3x snd_pci_acp3x
snd_pci_acp5x snd_pci_acp5x
snd_pci_acp6x snd_pci_acp6x
snd_pci_ps
snd_pcm snd_pcm
snd_pcm_dmaengine snd_pcm_dmaengine
snd_rawmidi snd_rawmidi
snd_rn_pci_acp3x snd_rn_pci_acp3x
snd_rpl_pci_acp6x
snd_seq snd_seq
snd_seq_device snd_seq_device
snd_seq_dummy snd_seq_dummy
@@ -519,14 +501,12 @@ snd_soc_sst_dsp
snd_soc_sst_ipc snd_soc_sst_ipc
snd_sof snd_sof
snd_sof_amd_acp snd_sof_amd_acp
snd_sof_amd_rembrandt
snd_sof_amd_renoir snd_sof_amd_renoir
snd_sof_intel_hda snd_sof_intel_hda
snd_sof_intel_hda_common snd_sof_intel_hda_common
snd_sof_intel_hda_mlink snd_sof_intel_hda_mlink
snd_sof_pci snd_sof_pci
snd_sof_pci_intel_cnl snd_sof_pci_intel_cnl
snd_sof_pci_intel_tgl
snd_sof_probes snd_sof_probes
snd_sof_utils snd_sof_utils
snd_sof_xtensa_dsp snd_sof_xtensa_dsp
@@ -534,9 +514,9 @@ snd_timer
snd_ua101 snd_ua101
snd_ump snd_ump
snd_usb_audio snd_usb_audio
snd_usbmidi_lib
snd_usb_us122l snd_usb_us122l
snd_usb_usx2y snd_usb_usx2y
snd_usbmidi_lib
snd_virmidi snd_virmidi
soundcore soundcore
soundwire_bus soundwire_bus
@@ -569,7 +549,6 @@ tea5767
tee tee
tg3 tg3
thermal thermal
thunderbolt
tiny_power_button tiny_power_button
tls tls
tpm tpm
@@ -599,14 +578,14 @@ uio
uio_pdrv_genirq uio_pdrv_genirq
unix_diag unix_diag
usb_common usb_common
usb_storage
usb_wwan
usbcore usbcore
usbhid usbhid
usbip_core usbip_core
usbip_host usbip_host
usbmon usbmon
usbnet usbnet
usb_storage
usb_wwan
uvc uvc
uvcvideo uvcvideo
uvesafb uvesafb
@@ -639,11 +618,9 @@ vsock_loopback
wacom wacom
watchdog watchdog
wireguard wireguard
wireless_hotkey
wmi wmi
wmi_bmof wmi_bmof
x86_pkg_temp_thermal x86_pkg_temp_thermal
x_tables
xc2028 xc2028
xc4000 xc4000
xc5000 xc5000
@@ -655,20 +632,21 @@ xhci_pci
xhci_pci_renesas xhci_pci_renesas
xor xor
xpad xpad
xt_CHECKSUM x_tables
xt_LOG
xt_MASQUERADE
xt_NFQUEUE
xt_REDIRECT
xt_addrtype xt_addrtype
xt_cgroup xt_cgroup
xt_CHECKSUM
xt_comment xt_comment
xt_conntrack xt_conntrack
xt_hl xt_hl
xt_limit xt_limit
xt_LOG
xt_mark xt_mark
xt_MASQUERADE
xt_nat xt_nat
xt_NFQUEUE
xt_recent xt_recent
xt_REDIRECT
xt_state xt_state
xt_tcpudp xt_tcpudp
xxhash_generic xxhash_generic

View File

@@ -48,11 +48,11 @@ _rt_subver_map=(
["5.16"]="2" ["5.16"]="2"
["5.17"]="1" ["5.17"]="1"
["6.0"]="5" ["6.0"]="5"
["6.1"]="59" ["6.1"]="46"
["6.3"]="3" ["6.3"]="3"
["6.4"]="6" ["6.4"]="6"
["6.5"]="2" ["6.5"]="2"
["6.6"]="rc6" ["6.6"]="rc1"
) )
# PREEMPT_RT's patch revision for the kernel # PREEMPT_RT's patch revision for the kernel
@@ -68,11 +68,11 @@ _rt_rev_map=(
["5.16"]="19" ["5.16"]="19"
["5.17"]="17" ["5.17"]="17"
["6.0"]="14" ["6.0"]="14"
["6.1"]="16" ["6.1"]="14"
["6.3"]="15" ["6.3"]="15"
["6.4"]="8" ["6.4"]="8"
["6.5"]="8" ["6.5"]="8"
["6.6"]="10" ["6.6"]="1"
) )
_undefine() { _undefine() {
@@ -861,9 +861,6 @@ _tkg_srcprep() {
_msg="Applying BORE-EEVDF patch" _msg="Applying BORE-EEVDF patch"
curl "https://raw.githubusercontent.com/CachyOS/kernel-patches/master/${_basekernel}/sched/0001-bore-eevdf.patch" > "$srcdir"/0001-bore-eevdf.patch curl "https://raw.githubusercontent.com/CachyOS/kernel-patches/master/${_basekernel}/sched/0001-bore-eevdf.patch" > "$srcdir"/0001-bore-eevdf.patch
tkgpatch="$srcdir/0001-bore-eevdf.patch" && _tkg_patcher tkgpatch="$srcdir/0001-bore-eevdf.patch" && _tkg_patcher
else
_msg="Applying eevdf-Disable-DELAY_DEQUEUE patch"
tkgpatch="$srcdir/0004-eevdf-Disable-DELAY_DEQUEUE.patch" && _tkg_patcher
fi fi
fi fi

View File

@@ -770,7 +770,7 @@ diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index a0b0397e29ee4c..87a983a356530c 100644 index a0b0397e29ee4c..87a983a356530c 100644
--- a/mm/page_alloc.c --- a/mm/page_alloc.c
+++ b/mm/page_alloc.c +++ b/mm/page_alloc.c
@@ -3118,15 +3119,16 @@ __rmqueue(struct zone *zone, unsigned int order, int migratetype, @@ -3119,15 +3119,16 @@ __rmqueue(struct zone *zone, unsigned int order, int migratetype,
} }
/* /*
@@ -785,13 +785,12 @@ index a0b0397e29ee4c..87a983a356530c 100644
unsigned long count, struct list_head *list, unsigned long count, struct list_head *list,
int migratetype, unsigned int alloc_flags) int migratetype, unsigned int alloc_flags)
{ {
unsigned long flags;
- int i, allocated = 0; - int i, allocated = 0;
+ const bool can_resched = !preempt_count() && !irqs_disabled(); + const bool can_resched = !preempt_count() && !irqs_disabled();
+ int i, allocated = 0, last_mod = 0; + int i, allocated = 0, last_mod = 0;
spin_lock_irqsave(&zone->lock, flags); /* Caller must hold IRQ-safe pcp->lock so IRQs are disabled. */
for (i = 0; i < count; ++i) { spin_lock(&zone->lock);
@@ -3137,6 +3138,18 @@ static int rmqueue_bulk(struct zone *zone, unsigned int order, @@ -3137,6 +3138,18 @@ static int rmqueue_bulk(struct zone *zone, unsigned int order,
if (unlikely(page == NULL)) if (unlikely(page == NULL))
break; break;
@@ -820,4 +819,3 @@ index a0b0397e29ee4c..87a983a356530c 100644
spin_unlock(&zone->lock); spin_unlock(&zone->lock);
return allocated; return allocated;
} }

File diff suppressed because it is too large Load Diff

View File

@@ -1,26 +0,0 @@
From 24cd48424c96118bbb0fc8af93bfdc98570c31bf Mon Sep 17 00:00:00 2001
From: Piotr Gorski <lucjan.lucjanov@gmail.com>
Date: Wed, 25 Oct 2023 21:49:14 +0200
Subject: [PATCH] EEVDF: Disable DELAY_DEQUEUE
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
---
kernel/sched/features.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/features.h b/kernel/sched/features.h
index fd2c963b7..6225be566 100644
--- a/kernel/sched/features.h
+++ b/kernel/sched/features.h
@@ -44,7 +44,7 @@ SCHED_FEAT(EVDF, false)
*
* GENTLE_DELAY clips the lag on dequeue (or wakeup) to 0.
*/
-SCHED_FEAT(DELAY_DEQUEUE, true)
+SCHED_FEAT(DELAY_DEQUEUE, false)
SCHED_FEAT(GENTLE_DELAY, true)
/*
--
2.42.0

File diff suppressed because it is too large Load Diff