Skip to content

Commit

Permalink
6.6.0-1
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jung <[email protected]>
  • Loading branch information
ptr1337 committed Oct 30, 2023
1 parent 2965ed4 commit 877e1b0
Show file tree
Hide file tree
Showing 23 changed files with 801 additions and 516 deletions.
28 changes: 12 additions & 16 deletions linux-bore/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Generated by makepkg 6.0.2
# Wed Oct 25 20:12:40 UTC 2023
pkgbase = linux-bore
pkgbase = linux-cachyos
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.5.9
pkgver = 6.6.0
pkgrel = 1
url = https://github.com/CachyOS/linux-cachyos
arch = x86_64
Expand All @@ -24,20 +22,18 @@ pkgbase = linux-bore
makedepends = patch
makedepends = python
options = !strip
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.5.9.tar.xz
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.6.tar.xz
source = config
source = auto-cpu-optimization.sh
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.5/all/0001-cachyos-base-all.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.5/misc/0001-bore-tuning-sysctl.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.5/sched/0001-bore-cachy.patch
b2sums = fb5fcc0dc79e2f615a550283481492a8185414d65369cbe805909112735593e5fc8bdbd482a347dc4cb3dcac979bea21cd03c503932e9321856eeea685d31c65
b2sums = 0d15075ccc31eee90b4a71def492279660fd02f52b227f06b40cf4578be730f955121922dc2cd1f2373df4174e92bb50a6f92d79f1b2104d982c6c10b4ac7443
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.6/all/0001-cachyos-base-all.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.6/sched/0001-bore-cachy.patch
b2sums = 5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2
b2sums = 8b7ec28c10a3e9b722e481470d0d9d3c092ef6681cd2e26c5fe7d4eccfcdc0ad2b7227527c3d91310ece20f064e8a7b99659cfc9d82ee5cc8e96224ecee3a8ab
b2sums = 11d2003b7d71258c4ca71d71c6b388f00fe9a2ddddc0270e304148396dadfd787a6cac1363934f37d0bfb098c7f5851a02ecb770e9663ffe57ff60746d532bd0
b2sums = a939d934bdea2a933a0dc5d59ef5049b228d71f642ede974f307ad53e7a725d0c5191213d3ad9b8691c7dd4c8510cf67c2689d4dda016ce96394f26768b01832
b2sums = e7b5ddfe32ae1b88b021d26e4e98882b7c56b2b1947c0172ba35bf2362450a0ad2e84f1c810f76f473fd300be38f9b3229664e25f626349cb1d25c759cd3222e
b2sums = beec71731394d6c127a7a2765f62e66d43ec95134214e1ba3a442fc91adf3fbeb24655d4fad7588b3fc0416cc1858e4c0fd660d318a6c557794adfb850bb6f05
b2sums = b99458e40605388759bfc3d07233acb5ae29c4c0ff3b10c2532f11a5a946a752ec1a654ba2a51670afc415e90ac2ce48a24c0977a92fe8acf691345171d95924
b2sums = caedeef9cf148961a2fc1a06f175682c401448276e57921221c54ffaf7b27135de9d6b8e22f12cdc14b31a042493ffc8970211d68819264d202b811cd7db0c36

pkgname = linux-bore
pkgname = linux-cachyos
pkgdesc = The Linux BORE scheduler Kernel by CachyOS with other patches and improvements kernel and modules
depends = coreutils
depends = kmod
Expand All @@ -51,7 +47,7 @@ pkgname = linux-bore
provides = KSMBD-MODULE
provides = UKSMD-BUILTIN

pkgname = linux-bore-headers
pkgname = linux-cachyos-headers
pkgdesc = Headers and scripts for building modules for the Linux BORE scheduler Kernel by CachyOS with other patches and improvements kernel
depends = pahole
depends = linux-bore
depends = linux-cachyos
58 changes: 30 additions & 28 deletions linux-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,14 @@ _cachy_config=${_cachy_config-y}
# 'bmq' - select 'BitMap Queue CPU scheduler'
# 'pds' - select 'Priority and Deadline based Skip list multiple queue CPU scheduler'
# 'bore' - select 'Burst-Oriented Response Enhancer'
# 'cfs' - select 'Completely Fair Scheduler'
# 'tt' - select 'Task Type Scheduler by Hamad Marri'
# 'hardened' - select 'BORE Scheduler hardened' ## kernel with hardened config and hardening patches with the bore scheduler
# 'cachyos' - select 'EEVDF-BORE Variant Scheduler' EEVDF includes latency nice
# 'eevdf' - select 'EEVDF Scheduler' EEVDF includes latency nice
# 'rt' - select CFS, but includes a series of realtime patches
_cpusched=${_cpusched-bore}
# 'rt' - select EEVDF, but includes a series of realtime patches
# 'sched-ext' - select 'sched-ext' Scheduler, based on EEVDF
_cpusched=${_cpusched-cachyos}

## Apply some suggested sysctl values from the bore developer
## These are adjusted to BORE
_tune_bore=${_tune_bore-y}

### Tweak kernel options prior to a build via nconfig
_makenconfig=${_makenconfig-}
Expand Down Expand Up @@ -171,13 +168,13 @@ else
pkgsuffix=${_cpusched}
pkgbase=linux-$pkgsuffix
fi
_major=6.5
_minor=9
_major=6.6
_minor=0
#_minorc=$((_minor+1))
#_rcver=rc8
pkgver=${_major}.${_minor}
_stable=${_major}.${_minor}
#_stable=${_major}
#_stable=${_major}.${_minor}
_stable=${_major}
#_stablerc=${_major}-${_rcver}
_srcname=linux-${_stable}
#_srcname=linux-${_major}
Expand All @@ -199,6 +196,10 @@ if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_k
LLVM_IAS=1
)
fi
if [ "$_cpusched" = "sched-ext" ]; then
makedepends+=(clang llvm lld bpf libbpf rust)
fi

_patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}"
_nv_ver=535.113.01
_nv_pkg="NVIDIA-Linux-x86_64-${_nv_ver}"
Expand All @@ -211,35 +212,35 @@ source=(
# ZFS support
if [ -n "$_build_zfs" ]; then
makedepends+=(git)
source+=("git+https://github.com/cachyos/zfs.git#commit=95785196f26e92d82cf4445654ba84e4a9671c57")
source+=("git+https://github.com/cachyos/zfs.git#commit=043c6ee3b6bfb55f8d36e1f048ff13128c279fb8")
fi

# NVIDIA pre-build module support
if [ -n "$_build_nvidia" ]; then
source+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run")
fi

## ToDo: Adjust for new Scheduler Changes
case "$_cpusched" in
cachyos) # CachyOS Scheduler (EEVDF + BORE)
source+=("${_patchsource}/sched/0001-EEVDF-cachy.patch"
"${_patchsource}/sched/0001-bore-eevdf.patch");;
eevdf) # EEVDF Scheduler
source+=("${_patchsource}/sched/0001-EEVDF-cachy.patch"
"${_patchsource}/misc/0001-eevdf-Disable-DELAY_DEQUEUE.patch");;
source+=("${_patchsource}/sched/0001-bore-cachy.patch");;
pds|bmq) # BMQ/PDS scheduler
source+=("${_patchsource}/sched/0001-prjc-cachy.patch"
linux-cachyos-prjc.install);;
tt) ## TT Scheduler
source+=("${_patchsource}/sched/0001-tt-cachy.patch");;
bore) ## BORE Scheduler
[ -n "$_tune_bore" ] && source+=("${_patchsource}/misc/0001-bore-tuning-sysctl.patch")
source+=("${_patchsource}/sched/0001-bore-cachy.patch");;
rt) ## CFS with RT patches
source+=("${_patchsource}/sched/0001-bore.patch");;
rt) ## EEVDF with RT patches
source+=("${_patchsource}/misc/0001-rt.patch"
linux-cachyos-rt.install);;
hardened) ## Hardened Patches with BORE Scheduler
source+=("${_patchsource}/sched/0001-bore-cachy.patch"
source+=("${_patchsource}/sched/0001-latency-nice.patch"
"${_patchsource}/sched/0001-bore-cachy.patch"
"${_patchsource}/misc/0001-hardened.patch");;
sched-ext) ## Sched-ext with BORE
source+=("${_patchsource}/sched/0001-bore-cachy.patch"
"${_patchsource}/sched/0001-sched-ext.patch");;
esac

## bcachefs Support
Expand Down Expand Up @@ -311,8 +312,9 @@ prepare() {
bmq) scripts/config -e SCHED_ALT -e SCHED_BMQ -d SCHED_PDS -e PSI_DEFAULT_DISABLED;;
tt) scripts/config -e TT_SCHED -e TT_ACCOUNTING_STATS;;
bore|hardened|cachyos) scripts/config -e SCHED_BORE;;
cfs|eevdf) ;;
eevdf) ;;
rt) scripts/config -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -e PREEMPT_LAZY -d PREEMPT_DYNAMIC -e HAVE_PREEMPT_LAZY -d PREEMPT_BUILD;;
sched-ext) scripts/config -e SCHED_BORE SCHED_CLASS_EXT;;
*) _die "The value $_cpusched is invalid. Choose the correct one again.";;
esac

Expand Down Expand Up @@ -706,8 +708,8 @@ _package() {
ZSTD_CLEVEL=19 make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
DEPMOD=/doesnt/exist modules_install # Suppress depmod

# remove build and source links
rm "$modulesdir"/{source,build}
# remove build links
rm "$modulesdir"/build
}

_package-headers() {
Expand Down Expand Up @@ -822,16 +824,16 @@ _package-nvidia(){
pkgname=("$pkgbase" "$pkgbase-headers")
[ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_nvidia" ] && pkgname+=("$pkgbase-nvidia")
[ "$_cpusched" = "sched-ext" ] && pkgname+=("$pkgbase-scheduler")
for _p in "${pkgname[@]}"; do
eval "package_$_p() {
$(declare -f "_package${_p#$pkgbase}")
_package${_p#$pkgbase}
}"
done

b2sums=('fb5fcc0dc79e2f615a550283481492a8185414d65369cbe805909112735593e5fc8bdbd482a347dc4cb3dcac979bea21cd03c503932e9321856eeea685d31c65'
'0d15075ccc31eee90b4a71def492279660fd02f52b227f06b40cf4578be730f955121922dc2cd1f2373df4174e92bb50a6f92d79f1b2104d982c6c10b4ac7443'
b2sums=('5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2'
'8b7ec28c10a3e9b722e481470d0d9d3c092ef6681cd2e26c5fe7d4eccfcdc0ad2b7227527c3d91310ece20f064e8a7b99659cfc9d82ee5cc8e96224ecee3a8ab'
'11d2003b7d71258c4ca71d71c6b388f00fe9a2ddddc0270e304148396dadfd787a6cac1363934f37d0bfb098c7f5851a02ecb770e9663ffe57ff60746d532bd0'
'a939d934bdea2a933a0dc5d59ef5049b228d71f642ede974f307ad53e7a725d0c5191213d3ad9b8691c7dd4c8510cf67c2689d4dda016ce96394f26768b01832'
'e7b5ddfe32ae1b88b021d26e4e98882b7c56b2b1947c0172ba35bf2362450a0ad2e84f1c810f76f473fd300be38f9b3229664e25f626349cb1d25c759cd3222e'
'beec71731394d6c127a7a2765f62e66d43ec95134214e1ba3a442fc91adf3fbeb24655d4fad7588b3fc0416cc1858e4c0fd660d318a6c557794adfb850bb6f05')
'b99458e40605388759bfc3d07233acb5ae29c4c0ff3b10c2532f11a5a946a752ec1a654ba2a51670afc415e90ac2ce48a24c0977a92fe8acf691345171d95924'
'caedeef9cf148961a2fc1a06f175682c401448276e57921221c54ffaf7b27135de9d6b8e22f12cdc14b31a042493ffc8970211d68819264d202b811cd7db0c36')
Loading

0 comments on commit 877e1b0

Please sign in to comment.