Bump to 6.1.9-1

Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
This commit is contained in:
Piotr Gorski 2023-02-01 15:06:22 +01:00
parent a36f07174c
commit 6d8fe6f4bb
No known key found for this signature in database
GPG Key ID: 79AFA05ABDB26C5A
2 changed files with 53 additions and 107 deletions

View File

@ -1,7 +1,7 @@
pkgbase = linux-cachyos pkgbase = linux-cachyos
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.8 pkgver = 6.1.9
pkgrel = 1 pkgrel = 2
url = https://github.com/CachyOS/linux-cachyos url = https://github.com/CachyOS/linux-cachyos
arch = x86_64 arch = x86_64
arch = x86_64_v3 arch = x86_64_v3
@ -21,18 +21,18 @@ pkgbase = linux-cachyos
makedepends = make makedepends = make
makedepends = patch makedepends = patch
options = !strip options = !strip
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.8.tar.xz source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.9.tar.xz
source = config source = config
source = auto-cpu-optimization.sh source = auto-cpu-optimization.sh
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.1/all/0001-cachyos-base-all.patch source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.1/all/0001-cachyos-base-all.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.1/misc/0001-Add-latency-priority-for-CFS-class.patch source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.1/misc/0001-Add-latency-priority-for-CFS-class.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.1/sched/0001-bore-cachy.patch source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.1/sched/0001-bore-cachy.patch
sha256sums = b60bb53ab8ba370a270454b11e93d41af29126fc72bd6ede517673e2e57b816d sha256sums = d60cf185693c386e7acd9f3eb3a94ae30ffbfee0a9447a20e83711e0bdf5922b
sha256sums = fab53ac59d4da6fb0433f6fd15877871f4124a89021237f90835d1ff3755ba9c sha256sums = fab53ac59d4da6fb0433f6fd15877871f4124a89021237f90835d1ff3755ba9c
sha256sums = 41c34759ed248175e905c57a25e2b0ed09b11d054fe1a8783d37459f34984106 sha256sums = 41c34759ed248175e905c57a25e2b0ed09b11d054fe1a8783d37459f34984106
sha256sums = 775fd31535e3f025bd7597105fbc34def0265671f2c6000f253d4eb2f3883988 sha256sums = 3c31aea899ab3ba5d4119fc08935b31f66b2d4da65b6adfbfd3b410114c25753
sha256sums = aa5b2397a6a16a33536c4d2f1c8bf84d129afe0f43f4deeb25dba1360b91462e sha256sums = 479019c7ea52de10b6cadac468eb61215bafef596da3d751571bb6dc4fcd8787
sha256sums = 6492a663b2cb91306ccf9a664d2db46e02c8497c9972372a745063b399a125aa sha256sums = 80f8c92d504c1152adc85d1f832308e8bab7211613bd6c9a3a0c6752f0810b14
pkgname = linux-cachyos pkgname = linux-cachyos
pkgdesc = The Linux BORE scheduler Kernel by CachyOS with other patches and improvements kernel and modules pkgdesc = The Linux BORE scheduler Kernel by CachyOS with other patches and improvements kernel and modules

146
PKGBUILD
View File

@ -13,8 +13,6 @@ _cachy_config=${_cachy_config-'yes'}
# ATTENTION - one of seven predefined values should be selected! # ATTENTION - one of seven predefined values should be selected!
# 'bmq' - select 'BitMap Queue CPU scheduler' # 'bmq' - select 'BitMap Queue CPU scheduler'
# 'pds' - select 'Priority and Deadline based Skip list multiple queue CPU scheduler' # 'pds' - select 'Priority and Deadline based Skip list multiple queue CPU scheduler'
# 'cacule' - select 'CacULE scheduler'
# 'cacule-rdb' - select 'CacULE-RDB scheduler'
# 'bore' - select 'Burst-Oriented Response Enhancer' # 'bore' - select 'Burst-Oriented Response Enhancer'
# 'cfs' - select 'Completely Fair Scheduler' # 'cfs' - select 'Completely Fair Scheduler'
# 'tt' - select 'Task Type Scheduler by Hamad Marri' # 'tt' - select 'Task Type Scheduler by Hamad Marri'
@ -200,7 +198,7 @@ else
pkgbase=linux-$pkgsuffix pkgbase=linux-$pkgsuffix
fi fi
_major=6.1 _major=6.1
_minor=8 _minor=9
#_minorc=$((_minor+1)) #_minorc=$((_minor+1))
#_rcver=rc8 #_rcver=rc8
pkgver=${_major}.${_minor} pkgver=${_major}.${_minor}
@ -210,7 +208,7 @@ _stable=${_major}.${_minor}
_srcname=linux-${_stable} _srcname=linux-${_stable}
#_srcname=linux-${_major} #_srcname=linux-${_major}
pkgdesc='Linux BORE scheduler Kernel by CachyOS with other patches and improvements' pkgdesc='Linux BORE scheduler Kernel by CachyOS with other patches and improvements'
pkgrel=1 pkgrel=2
_kernver=$pkgver-$pkgrel _kernver=$pkgver-$pkgrel
arch=('x86_64' 'x86_64_v3') arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos" url="https://github.com/CachyOS/linux-cachyos"
@ -240,7 +238,7 @@ source=(
"${_patchsource}/all/0001-cachyos-base-all.patch") "${_patchsource}/all/0001-cachyos-base-all.patch")
## ZFS Support ## ZFS Support
if [ -n "$_build_zfs" ]; then if [ -n "$_build_zfs" ]; then
source+=("git+https://github.com/cachyos/zfs.git#commit=04b02785b67f9b976c43643dd52ce6cdbc22e11e") source+=("git+https://github.com/cachyos/zfs.git#commit=92e0d9d183ce6752cd52f7277c8321d81df9ffee")
fi fi
## Latency NICE Support ## Latency NICE Support
if [ -n "$_latency_nice" ]; then if [ -n "$_latency_nice" ]; then
@ -248,39 +246,20 @@ if [ -n "$_latency_nice" ]; then
source+=("${_patchsource}/misc/0001-Add-latency-priority-for-CFS-class.patch") source+=("${_patchsource}/misc/0001-Add-latency-priority-for-CFS-class.patch")
fi fi
fi fi
## BMQ Scheduler
if [ "$_cpusched" = "bmq" ]; then case "$_cpusched" in
source+=("${_patchsource}/sched/0001-prjc-cachy.patch") pds|bmq) # BMQ/PDS scheduler
fi source+=("${_patchsource}/sched/0001-prjc-cachy.patch");;
## PDS Scheduler tt) ## TT Scheduler
if [ "$_cpusched" = "pds" ]; then source+=("${_patchsource}/sched/0001-tt-cachy.patch");;
source+=("${_patchsource}/sched/0001-prjc-cachy.patch") bore) ## BORE Scheduler with latency_nice
fi [ -n "$_tune_bore" ] && source+=("${_patchsource}/misc/0001-bore-tuning-sysctl.patch")
## BORE Scheduler with latency_nice source+=("${_patchsource}/sched/0001-bore-cachy.patch");;
if [ "$_cpusched" = "bore" ]; then hardened) ## Hardened Patches with BORE Scheduler
source+=("${_patchsource}/sched/0001-bore-cachy.patch") source+=("${_patchsource}/sched/0001-bore-cachy.patch"
## BORE SYSCTL TUNING "${_patchsource}/misc/0001-hardened.patch");;
if [ -n "$_tune_bore" ]; then esac
source+=("${_patchsource}/misc/0001-bore-tuning-sysctl.patch")
fi
fi
## CacULE Scheduler
if [ "$_cpusched" = "cacule" ]; then
source+=("${_patchsource}/sched/0001-cacULE-cachy.patch")
fi
## CacULE-RDB Scheduler
if [ "$_cpusched" = "cacule-rdb" ]; then
source+=("${_patchsource}/sched/0001-cacULE-cachy.patch")
fi
## TT Scheduler
if [ "$_cpusched" = "tt" ]; then
source+=("${_patchsource}/sched/0001-tt-cachy.patch")
fi
## Hardened Patches with BORE Scheduler
if [ "$_cpusched" = "hardened" ]; then
source+=("${_patchsource}/sched/0001-bore-cachy.patch"
"${_patchsource}/misc/0001-hardened.patch")
fi
## Kernel CFI Patch ## Kernel CFI Patch
if [ -n "$_use_kcfi" ]; then if [ -n "$_use_kcfi" ]; then
BUILD_FLAGS=( BUILD_FLAGS=(
@ -312,6 +291,8 @@ export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
_die() { error "$@" ; exit; }
prepare() { prepare() {
cd ${srcdir}/$_srcname cd ${srcdir}/$_srcname
@ -359,50 +340,23 @@ prepare() {
else else
error "The value is empty. Choose the correct one again." error "The value is empty. Choose the correct one again."
fi fi
error "Selecting CachyOS config failed!" _die "Selecting CachyOS config failed!"
exit
fi fi
### Selecting the CPU scheduler ### Selecting the CPU scheduler
if [ "$_cpusched" = "bmq" ]; then [ -z "$_cpusched" ] && _die "The value is empty. Choose the correct one again."
echo "Selecting BMQ CPU scheduler..."
scripts/config -e SCHED_ALT \ case "$_cpusched" in
-e SCHED_BMQ \ pds) scripts/config -e SCHED_ALT -d SCHED_BMQ -e SCHED_PDS;;
-d SCHED_PDS bmq) scripts/config -e SCHED_ALT -e SCHED_BMQ -d SCHED_PDS;;
elif [ "$_cpusched" = "pds" ]; then tt) scripts/config -e TT_SCHED -e TT_ACCOUNTING_STATS;;
echo "Selecting PDS CPU scheduler..." bore|hardened) scripts/config -e SCHED_BORE;;
scripts/config -e SCHED_ALT \ cfs) ;;
-d SCHED_BMQ \ *) _die "The value $_cpusched is invalid. Choose the correct one again.";;
-e SCHED_PDS esac
elif [ "$_cpusched" = "cacule" ]; then
echo "Selecting CacULE scheduler..." local sched_name="$(echo $_cpusched|tr '[:lower:]' '[:upper:]')"
scripts/config -e CACULE_SCHED \ echo "Selecting ${sched_name} CPU scheduler..."
-d CACULE_RDB
elif [ "$_cpusched" = "cacule-rdb" ]; then
echo "Selecting CacULE-RDB scheduler..."
scripts/config -e CACULE_SCHED \
-e CACULE_RDB \
--set-val RDB_INTERVAL 19
elif [ "$_cpusched" = "bore" ]; then
echo "Selecting BORE Scheduler..."
scripts/config -e SCHED_BORE
elif [ "$_cpusched" = "tt" ]; then
echo "Selecting TT Scheduler..."
scripts/config -e TT_SCHED \
-e TT_ACCOUNTING_STATS
elif [ "$_cpusched" = "cfs" ]; then
echo "Selecting Completely Fair Scheduler..."
elif [ "$_cpusched" = "hardened" ]; then
echo "Selecting hardened patches with the BORE Scheduler..."
else
if [ -n "$_cpusched" ]; then
error "The value $_cpusched is invalid. Choose the correct one again."
else
error "The value is empty. Choose the correct one again."
fi
error "Selecting the CPU scheduler failed!"
exit
fi
### Enable KCFI ### Enable KCFI
if [ -n "$_use_kcfi" ]; then if [ -n "$_use_kcfi" ]; then
@ -448,19 +402,15 @@ prepare() {
fi fi
### Select tick rate ### Select tick rate
if [[ -z $_HZ_ticks ]]; then [ -z $_HZ_ticks ] && _die "The value is empty. Choose the correct one again."
error "The value is empty. Choose the correct one again."
exit
fi
case "$_HZ_ticks" in case "$_HZ_ticks" in
100|250|500|600|750|1000) 100|250|500|600|750|1000)
scripts/config -d HZ_300 -e "HZ_${_HZ_ticks}" --set-val HZ $_HZ_ticks;; scripts/config -d HZ_300 -e "HZ_${_HZ_ticks}" --set-val HZ "${_HZ_ticks}";;
300) 300)
scripts/config -e HZ_300 --set-val HZ 300;; scripts/config -e HZ_300 --set-val HZ 300;;
*) *)
error "The value $_HZ_ticks is invalid. Choose the correct one again." _die "The value $_HZ_ticks is invalid. Choose the correct one again."
exit;;
esac esac
echo "Setting tick rate to ${_HZ_ticks}Hz..." echo "Setting tick rate to ${_HZ_ticks}Hz..."
@ -541,8 +491,7 @@ prepare() {
else else
error "The value is empty. Choose the correct one again." error "The value is empty. Choose the correct one again."
fi fi
error "Selecting the tick rate failed!" _die "Selecting the tick rate failed!"
exit
fi fi
### Select preempt type ### Select preempt type
@ -579,8 +528,7 @@ prepare() {
else else
error "The value is empty. Choose the correct one again." error "The value is empty. Choose the correct one again."
fi fi
error "Selecting PREEMPT failed!" _die "Selecting PREEMPT failed!"
exit
fi fi
### Enable O3 ### Enable O3
@ -642,8 +590,7 @@ prepare() {
else else
error "The value is empty. Choose the correct one again." error "The value is empty. Choose the correct one again."
fi fi
error "Enabling per-VMA locking failed!" _die "Enabling per-VMA locking failed!"
exit
fi fi
### Select THP ### Select THP
@ -661,8 +608,7 @@ prepare() {
else else
error "The value is empty. Choose the correct one again." error "The value is empty. Choose the correct one again."
fi fi
error "Setting THP has failed!" _die "Setting THP has failed!"
exit
fi fi
### Enable DAMON ### Enable DAMON
@ -780,8 +726,7 @@ prepare() {
else else
error "The value is empty. Choose the correct one again." error "The value is empty. Choose the correct one again."
fi fi
error "Selecting the ZSTD modules and kernel compression level failed!" _die "Selecting the ZSTD modules and kernel compression level failed!"
exit
fi fi
### Disable DEBUG ### Disable DEBUG
@ -1006,6 +951,7 @@ _package-headers() {
_package-zfs(){ _package-zfs(){
pkgdesc="zfs module for the $pkgdesc kernel" pkgdesc="zfs module for the $pkgdesc kernel"
depends=('pahole' linux-$pkgsuffix=$_kernver) depends=('pahole' linux-$pkgsuffix=$_kernver)
provides=('ZFS-MODULE')
cd ${srcdir}/"zfs" cd ${srcdir}/"zfs"
install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}" install -dm755 "$pkgdir/usr/lib/modules/${_kernver}-${pkgsuffix}"
@ -1025,9 +971,9 @@ for _p in "${pkgname[@]}"; do
}" }"
done done
sha256sums=('b60bb53ab8ba370a270454b11e93d41af29126fc72bd6ede517673e2e57b816d' sha256sums=('d60cf185693c386e7acd9f3eb3a94ae30ffbfee0a9447a20e83711e0bdf5922b'
'fab53ac59d4da6fb0433f6fd15877871f4124a89021237f90835d1ff3755ba9c' 'fab53ac59d4da6fb0433f6fd15877871f4124a89021237f90835d1ff3755ba9c'
'41c34759ed248175e905c57a25e2b0ed09b11d054fe1a8783d37459f34984106' '41c34759ed248175e905c57a25e2b0ed09b11d054fe1a8783d37459f34984106'
'775fd31535e3f025bd7597105fbc34def0265671f2c6000f253d4eb2f3883988' '3c31aea899ab3ba5d4119fc08935b31f66b2d4da65b6adfbfd3b410114c25753'
'aa5b2397a6a16a33536c4d2f1c8bf84d129afe0f43f4deeb25dba1360b91462e' '479019c7ea52de10b6cadac468eb61215bafef596da3d751571bb6dc4fcd8787'
'6492a663b2cb91306ccf9a664d2db46e02c8497c9972372a745063b399a125aa') '80f8c92d504c1152adc85d1f832308e8bab7211613bd6c9a3a0c6752f0810b14')