diff options
-rw-r--r-- | .SRCINFO | 62 | ||||
-rw-r--r-- | PKGBUILD | 98 | ||||
-rw-r--r-- | config | 12 |
3 files changed, 116 insertions, 56 deletions
@@ -1,7 +1,7 @@ pkgbase = linux-cacule-rdb - pkgdesc = Linux-CacULE Kernel-RDB by Hamad Marri and with some other patchsets + pkgdesc = Linux-CacULE-RDB Kernel by Hamad Marri and with some other patchsets compiled pkgver = 5.14 - pkgrel = 1 + pkgrel = 2 url = https://github.com/hamadmarri/cacule-cpu-scheduler arch = x86_64 arch = x86_64_v3 @@ -18,48 +18,65 @@ pkgbase = linux-cacule-rdb makedepends = perl makedepends = tar makedepends = xz + makedepends = llvm + makedepends = llvm-libs + makedepends = lld options = !strip - source = https://github.com/torvalds/linux/archive/refs/tags/v5.14.tar.gz + source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.14.tar.xz source = config + source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/arch-patches/0001-arch-patches.patch source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/CacULE/v5.14/cacule-5.14.patch - source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/0001-bbr2.patch - source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/0001-lrng.patch source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/misc/0004-folio-mm.patch source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/misc/0009-compiler-remove-stale-cc-option-checks.patch source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/misc/0007-string.patch source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/misc/allpollingrate.patch + source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/bfq-patches/0001-bfq-patches.patch + source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/bbr2-patches/0001-bbr2-5.14-introduce-BBRv2.patch + source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/block-patches/0001-block-patches.patch + source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/futex-patches/0001-futex-resync-from-gitlab.collabora.com.patch + source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14//lqx-patches/0001-lqx-patches.patch + source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/lrng-patches/0001-lrng-patches.patch + source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/mm-patches/0001-mm-5.14-protect-mappings-under-memory-pressure.patch + source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/pf-patches-v3/0001-pf-patches.patch + source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/xanmod-patches/0001-xanmod-patches.patch + source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/zen-patches/0001-zen-patches.patch + source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/zstd-patches/0001-zstd-patches.patch + source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/zstd-upstream-patches/0001-zstd-upstream-patches.patch + source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/ntfs3-patches-v2/0001-ntfs3-patches.patch source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/0001-cpu-patches.patch source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/0001-winesync.patch source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/0001-v4l2loopback.patch - source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/0001-misc.patch - source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/0001-zstd.patch - source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/0001-mm.patch source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/0001-ksm.patch - source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/0001-ntfs3.patch - source = https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14/0001-clearlinux-patches.patch source = auto-cpu-optimization.sh - md5sums = e336de8258a23bbe3f116d43a9dacc55 - md5sums = b1c809a73de8624151ccdf0c7cd81918 + md5sums = a082ef5748b813abca0649dab8be5f52 + md5sums = 083ccda341dc8ae299b2e75ef3f2195a + md5sums = b961add2e3ea53ade755148169c00e6e md5sums = d92c43182698243cd13d32376cec0f23 - md5sums = 422fe01f2e2b1ba1c2b9174fa1a75e40 - md5sums = 0e4c45e8449717a7a9324c1fe00d55a8 md5sums = a804260e2f301ffe2a17d6e3625a9711 md5sums = 50868332310ae198428861fb7e743d5e md5sums = d6e5581b4fade267a28deb8e73d236f5 md5sums = f154315498da9bf593c11d88041bde48 + md5sums = a0285c065b902ca625119e4ad43cbab4 + md5sums = 196d6ac961497aa880264b83160eb140 + md5sums = a3f2cbf318dd2a63af9673f9e34e7125 + md5sums = 232e0f8b6083fad96413552fb5af2d15 + md5sums = 6787c78ba3e7b0a34fbba9c50da7e3b4 + md5sums = 3cf036429a7c962005a344e10a568d7b + md5sums = 8edec54f500ecb2ff705c2a9f32e0560 + md5sums = 30a7be161ab863c46e5ad55796d06a29 + md5sums = d8dabbce9beb2278ecb7d2c349135949 + md5sums = e10e4abeba2d16db591846337589ac31 + md5sums = fe00e09708cbbeb15e348e36ab881696 + md5sums = 0553f660f2399549ed17b6d2ca4e930e + md5sums = f2fc75c542ca63e5ee1f0bb48e7e47f9 md5sums = bb22330e270bf36ccf53cb04d6b496d2 - md5sums = 9573b92353399343db8a691c9b208300 + md5sums = 4c493a3e0f3486be8ad1b6c67c9c6917 md5sums = 95eb4457f95f3f8dd153983612ee65c0 - md5sums = 8d74bee9dc3bbd0bed98180fcd09b4d5 - md5sums = 52d324bcca2b2c41c739e257d5c6fd6e - md5sums = 49e7e05cc842b1bb2fb79c568a7b649c md5sums = 566435a0444ee45816599f2e0e362c7a - md5sums = dfdf6c73b4f498b348fa16f10a3bcd09 - md5sums = 54f750c0e08b4e5b51a49c494a6891d6 md5sums = 7cf0b5c39d16da18451d1e7e7523d992 pkgname = linux-cacule-rdb - pkgdesc = The Linux-CacULE Kernel-RDB by Hamad Marri and with some other patchsets and modules + pkgdesc = The Linux-CacULE-RDB Kernel by Hamad Marri and with some other patchsets compiled and modules depends = coreutils depends = kmod depends = initramfs @@ -67,9 +84,8 @@ pkgname = linux-cacule-rdb optdepends = linux-firmware: firmware images needed for some devices provides = VIRTUALBOX-GUEST-MODULES provides = WIREGUARD-MODULE - replaces = pkgname = linux-cacule-rdb-headers - pkgdesc = Headers and scripts for building modules for the Linux-CacULE Kernel-RDB by Hamad Marri and with some other patchsets + pkgdesc = Headers and scripts for building modules for the Linux-CacULE-RDB Kernel by Hamad Marri and with some other patchsets compiled depends = linux-cacule-rdb=5.14 depends = pahole @@ -7,32 +7,49 @@ # A single multi-core CPU actually runs slower with NUMA enabled. # See, https://bugs.archlinux.org/task/31187 _NUMAdisable=y + # Enable fsync _fsync=y + #enable futex2 _futex2= + #enable winesync _winesync=y + ### Set performance governor as default _per_gov=y + +### Disable MQ-Deadline I/O scheduler +_mq_deadline_disable=y + +### Disable Kyber I/O scheduler +_kyber_disable=y + ### Running with a 2000 HZ, 1000HZ or 500HZ tick rate _2k_HZ_ticks= _1k_HZ_ticks=y _500_HZ_ticks= + ### Enable protect file mappings under memory pressure _mm_protect=y _lru_enable=y + ### Enable Linux Random Number Generator _lrng_enable=y + # Tweak kernel options prior to a build via nconfig _makenconfig= + ## Setting some security options use_selinux=n use_tomoyo=n use_yama=n use_apparmor= + ## Apply Kernel automatic Optimization -_use_optimization=y +_use_auto_optimization=y + ## Apply Kernel Optimization selecting _use_optimization_select= @@ -58,40 +75,50 @@ pkgbase=linux-cacule-rdb pkgname=('linux-cacule-rdb' 'linux-cacule-rdb-headers') pkgname=("${pkgbase}" "${pkgbase}-headers") pkgver=5.14 -pkgrel=1 +pkgrel=2 arch=(x86_64 x86_64_v3) -pkgdesc='Linux-CacULE Kernel-RDB by Hamad Marri and with some other patchsets' +pkgdesc='Linux-CacULE-RDB Kernel by Hamad Marri and with some other patchsets compiled' _gittag=v${pkgver%.*}-${pkgver##*.} arch=('x86_64' 'x86_64_v3') url="https://github.com/hamadmarri/cacule-cpu-scheduler" license=('GPL2') options=('!strip') makedepends=('kmod' 'bc' 'libelf' 'python-sphinx' 'python-sphinx_rtd_theme' - 'graphviz' 'imagemagick' 'pahole' 'cpio' 'perl' 'tar' 'xz') + 'graphviz' 'imagemagick' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'llvm' 'llvm-libs' 'lld') _caculepatches="https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/CacULE" _patchsource="https://raw.githubusercontent.com/ptr1337/linux-cacule-aur/master/patches/5.14" -source=(#"https://cdn.kernel.org/pub/linux/kernel/v${pkgver:0:1}.x/linux-${pkgver}.tar.xz" - "https://github.com/torvalds/linux/archive/refs/tags/v5.14.tar.gz" +source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver:0:1}.x/linux-${pkgver}.tar.xz" "config" + "${_patchsource}/arch-patches/0001-arch-patches.patch" "${_caculepatches}/v5.14/cacule-5.14.patch" - "${_patchsource}/0001-bbr2.patch" - "${_patchsource}/0001-lrng.patch" "${_patchsource}/misc/0004-folio-mm.patch" "${_patchsource}/misc/0009-compiler-remove-stale-cc-option-checks.patch" "${_patchsource}/misc/0007-string.patch" "${_patchsource}/misc/allpollingrate.patch" + "${_patchsource}/bfq-patches/0001-bfq-patches.patch" + "${_patchsource}/bbr2-patches/0001-bbr2-5.14-introduce-BBRv2.patch" + "${_patchsource}/block-patches/0001-block-patches.patch" + # "${_patchsource}/fixes-miscellaneous/0001-fixes-miscellaneous.patch" + "${_patchsource}/futex-patches/0001-futex-resync-from-gitlab.collabora.com.patch" + # "${_patchsource}/futex2-trunk-patches/0001-futex2-resync-from-gitlab.collabora.com.patch" + "${_patchsource}//lqx-patches/0001-lqx-patches.patch" + "${_patchsource}/lrng-patches/0001-lrng-patches.patch" + "${_patchsource}/mm-patches/0001-mm-5.14-protect-mappings-under-memory-pressure.patch" + "${_patchsource}/pf-patches-v3/0001-pf-patches.patch" + "${_patchsource}/xanmod-patches/0001-xanmod-patches.patch" + "${_patchsource}/zen-patches/0001-zen-patches.patch" + "${_patchsource}/zstd-patches/0001-zstd-patches.patch" + "${_patchsource}/zstd-upstream-patches/0001-zstd-upstream-patches.patch" + "${_patchsource}/ntfs3-patches-v2/0001-ntfs3-patches.patch" "${_patchsource}/0001-cpu-patches.patch" "${_patchsource}/0001-winesync.patch" "${_patchsource}/0001-v4l2loopback.patch" - "${_patchsource}/0001-misc.patch" - "${_patchsource}/0001-zstd.patch" - "${_patchsource}/0001-mm.patch" "${_patchsource}/0001-ksm.patch" - "${_patchsource}/0001-ntfs3.patch" - "${_patchsource}/0001-clearlinux-patches.patch" "auto-cpu-optimization.sh" - ) + ) BUILD_FLAGS=( + LLVM=1 + LLVM_IAS=1 ) export KBUILD_BUILD_HOST=archlinux @@ -124,7 +151,7 @@ prepare() { cp ../config .config ### Microarchitecture Optimization (GCC/CLANG) - if [ -n "$_use_optimization" ]; then + if [ -n "$_use_auto_optimization" ]; then sh "${srcdir}"/auto-cpu-optimization.sh fi if [ -n "$_use_optimization_select" ]; then @@ -189,6 +216,17 @@ prepare() { scripts/config --disable CONFIG_CPU_FREQ_GOV_SCHEDUTIL fi + ### Disable MQ-Deadline I/O scheduler + if [ -n "$_mq_deadline_disable" ]; then + echo "Disabling MQ-Deadline I/O scheduler..." + scripts/config --disable CONFIG_MQ_IOSCHED_DEADLINE + fi + + ### Disable Kyber I/O scheduler + if [ -n "$_kyber_disable" ]; then + echo "Disabling Kyber I/O scheduler..." + scripts/config --disable CONFIG_MQ_IOSCHED_KYBER + fi ### Enable protect file mappings under memory pressure if [ -n "$_mm_protect" ]; then @@ -281,7 +319,7 @@ prepare() { scripts/config --enable CONFIG_DEFAULT_BBR2 scripts/config --set-str CONFIG_DEFAULT_TCP_CONG bbr2 echo "Enable VHBA-Module" -# scripts/config --module CONFIG_VHBA + scripts/config --module CONFIG_VHBA ### Enabling ZSTD COMPRESSION ## echo "Set module compression to ZSTD" scripts/config --enable CONFIG_MODULE_COMPRESS @@ -360,7 +398,6 @@ package_linux-cacule-rdb() { optdepends=('crda: to set the correct wireless channels of your country' 'linux-firmware: firmware images needed for some devices') provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE) - replaces=() cd "${srcdir:?}/linux-${pkgver}" || ( echo -e "\E[1;31mCan't cd to ${srcdir:?}/linux-${pkgver} directory! Package linux kernel failed! \E[0m" @@ -474,22 +511,29 @@ package_linux-cacule-rdb-headers() { } -md5sums=('e336de8258a23bbe3f116d43a9dacc55' - 'b1c809a73de8624151ccdf0c7cd81918' +md5sums=('a082ef5748b813abca0649dab8be5f52' + '083ccda341dc8ae299b2e75ef3f2195a' + 'b961add2e3ea53ade755148169c00e6e' 'd92c43182698243cd13d32376cec0f23' - '422fe01f2e2b1ba1c2b9174fa1a75e40' - '0e4c45e8449717a7a9324c1fe00d55a8' 'a804260e2f301ffe2a17d6e3625a9711' '50868332310ae198428861fb7e743d5e' 'd6e5581b4fade267a28deb8e73d236f5' 'f154315498da9bf593c11d88041bde48' + 'a0285c065b902ca625119e4ad43cbab4' + '196d6ac961497aa880264b83160eb140' + 'a3f2cbf318dd2a63af9673f9e34e7125' + '232e0f8b6083fad96413552fb5af2d15' + '6787c78ba3e7b0a34fbba9c50da7e3b4' + '3cf036429a7c962005a344e10a568d7b' + '8edec54f500ecb2ff705c2a9f32e0560' + '30a7be161ab863c46e5ad55796d06a29' + 'd8dabbce9beb2278ecb7d2c349135949' + 'e10e4abeba2d16db591846337589ac31' + 'fe00e09708cbbeb15e348e36ab881696' + '0553f660f2399549ed17b6d2ca4e930e' + 'f2fc75c542ca63e5ee1f0bb48e7e47f9' 'bb22330e270bf36ccf53cb04d6b496d2' - '9573b92353399343db8a691c9b208300' + '4c493a3e0f3486be8ad1b6c67c9c6917' '95eb4457f95f3f8dd153983612ee65c0' - '8d74bee9dc3bbd0bed98180fcd09b4d5' - '52d324bcca2b2c41c739e257d5c6fd6e' - '49e7e05cc842b1bb2fb79c568a7b649c' '566435a0444ee45816599f2e0e362c7a' - 'dfdf6c73b4f498b348fa16f10a3bcd09' - '54f750c0e08b4e5b51a49c494a6891d6' '7cf0b5c39d16da18451d1e7e7523d992') @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86 5.13.13 Kernel Configuration +# Linux/x86 5.14 Kernel Configuration # CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.1.0" CONFIG_CC_IS_GCC=y @@ -182,8 +182,8 @@ CONFIG_UCLAMP_BUCKETS_COUNT=5 # end of Scheduler features CONFIG_CACULE_SCHED=y -CONFIG_CACULE_RDB=y -CONFIG_RDB_INTERVAL=19 +# CONFIG_CACULE_RDB is not set +# CONFIG_RDB_INTERVAL is not set CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y CONFIG_CC_HAS_INT128=y @@ -885,7 +885,7 @@ CONFIG_LTO_CLANG=y CONFIG_ARCH_SUPPORTS_LTO_CLANG=y CONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=y CONFIG_HAS_LTO_CLANG=y -CONFIG_LTO_NONE=y +CONFIG_LTO=y # CONFIG_LTO_CLANG_FULL is not set # CONFIG_LTO_CLANG_THIN is not set CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=y @@ -7134,7 +7134,7 @@ CONFIG_SND_SOC_INTEL_CATPT=m CONFIG_SND_SST_ATOM_HIFI2_PLATFORM=m CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_PCI=m CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_ACPI=m -# CONFIG_SND_SOC_INTEL_SKYLAKE is not set +CONFIG_SND_SOC_INTEL_SKYLAKE=y CONFIG_SND_SOC_INTEL_SKL=m CONFIG_SND_SOC_INTEL_APL=m CONFIG_SND_SOC_INTEL_KBL=m @@ -7145,7 +7145,7 @@ CONFIG_SND_SOC_INTEL_GLK=m # CONFIG_SND_SOC_INTEL_CML_LP is not set CONFIG_SND_SOC_INTEL_SKYLAKE_FAMILY=m CONFIG_SND_SOC_INTEL_SKYLAKE_SSP_CLK=m -# CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC is not set +CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC=y CONFIG_SND_SOC_INTEL_SKYLAKE_COMMON=m CONFIG_SND_SOC_ACPI_INTEL_MATCH=m CONFIG_SND_SOC_INTEL_MACH=y |