summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorP.Jung2021-08-30 22:25:37 +0000
committerP.Jung2021-08-30 22:25:37 +0000
commit460fda233b5a525a905d4396e14b2d184ed506f1 (patch)
tree2219e2c8d6f75bf3d01fdb9bd393d2dc74a5c900
parent2e4f445c2a3252f697f98355ecca081b3391b7e4 (diff)
downloadaur-460fda233b5a525a905d4396e14b2d184ed506f1.tar.gz
fixes, patches
-rw-r--r--.SRCINFO63
-rw-r--r--PKGBUILD95
-rwxr-xr-xauto-cpu-optimization.sh50
-rw-r--r--config4
4 files changed, 133 insertions, 79 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d0dcb44d8100..730947bb87c0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = linux-cacule-rdb-llvm
- pkgdesc = Linux-CacULE Kernel-RC by Hamad Marri and with some other patchsets
+ pkgdesc = Linux-CacULE Kernel-RDB by Hamad Marri and with some other patchsets compiled with FULL-LTO
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-llvm
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 = 74fd8b80a85b7c0da86cb1ecd5e2aaab
+ md5sums = a082ef5748b813abca0649dab8be5f52
+ md5sums = 6ab0d686542e673322a874044d16383c
+ 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
+ md5sums = 6bfbbe0bbb79379203889ed7df5e5288
pkgname = linux-cacule-rdb-llvm
- pkgdesc = The Linux-CacULE Kernel-RC by Hamad Marri and with some other patchsets and modules
+ pkgdesc = The Linux-CacULE Kernel-RDB by Hamad Marri and with some other patchsets compiled with FULL-LTO and modules
depends = coreutils
depends = kmod
depends = initramfs
@@ -70,6 +87,6 @@ pkgname = linux-cacule-rdb-llvm
replaces =
pkgname = linux-cacule-rdb-llvm-headers
- pkgdesc = Headers and scripts for building modules for the Linux-CacULE Kernel-RC by Hamad Marri and with some other patchsets
+ pkgdesc = Headers and scripts for building modules for the Linux-CacULE Kernel-RDB by Hamad Marri and with some other patchsets compiled with FULL-LTO
depends = linux-cacule-rdb-llvm=5.14
depends = pahole
diff --git a/PKGBUILD b/PKGBUILD
index f581a8511085..cb5a782669fa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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=
+_futex2=y
+
#enable winesync
_winesync=y
+
### Set performance governor as default
_per_gov=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=
+
+### Disable MQ-Deadline I/O scheduler
+_mq_deadline_disable=y
+
+### Disable Kyber I/O scheduler
+_kyber_disable=y
+
## Setting some security options
use_selinux=n
use_tomoyo=n
use_yama=n
use_apparmor=
+
## Apply Kernel automatic Optimization
_use_optimization=y
+
## Apply Kernel Optimization selecting
_use_optimization_select=
@@ -58,39 +75,47 @@ pkgbase=linux-cacule-rdb-llvm
pkgname=('linux-cacule-rdb-llvm' 'linux-cacule-rdb-llvm-headers')
pkgname=("${pkgbase}" "${pkgbase}-headers")
pkgver=5.14
-pkgrel=1
+pkgrel=2
arch=(x86_64 x86_64_v3)
-pkgdesc='Linux-CacULE Kernel-RC by Hamad Marri and with some other patchsets'
+pkgdesc='Linux-CacULE Kernel-RDB by Hamad Marri and with some other patchsets compiled with FULL-LTO'
_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"
- )
+ "auto-cpu-optimization.sh")
+
BUILD_FLAGS=(
LLVM=1
LLVM_IAS=1
@@ -214,6 +239,17 @@ prepare() {
scripts/config --disable CONFIG_LRU_GEN_STATS
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
if [ "$use_selinux" = "n" ]; then
echo "Disabling SELinux..."
@@ -476,22 +512,29 @@ package_linux-cacule-rdb-llvm-headers() {
}
-md5sums=('e336de8258a23bbe3f116d43a9dacc55'
- '74fd8b80a85b7c0da86cb1ecd5e2aaab'
+md5sums=('a082ef5748b813abca0649dab8be5f52'
+ '6ab0d686542e673322a874044d16383c'
+ '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')
+ '6bfbbe0bbb79379203889ed7df5e5288')
diff --git a/auto-cpu-optimization.sh b/auto-cpu-optimization.sh
index 444eac6980a0..f40b21ffd351 100755
--- a/auto-cpu-optimization.sh
+++ b/auto-cpu-optimization.sh
@@ -1,38 +1,32 @@
#!/bin/bash
#######################################
-# Creator : BL4CKH47H4CK3R #
-# https://github.com/BL4CKH47H4CK3R #
+# AUTO-CPU-OPTIMIZATION #
+#######################################
+# CREATOR : BL4CKH47H4CK3R #
+#######################################
+# HTTPS://GITHUB.COM/BL4CKH47H4CK3R #
#######################################
-echo -e "-------------------------"
-echo -e "| Auto-CPU-Optimization |"
-echo -e "-------------------------"
-echo -e "[1] Enable CPU Optimization"
-echo -e "[2] Disable CPU Optimization"
-
-read -p "[*] Enter Choice [1, 2]: " INPUT
+CPU=`gcc -Q -march=native --help=target | grep march | awk '{print $2}' | head -1`
+MARCH=`echo ${CPU} | tr '[:lower:]' '[:upper:]'`&& echo
-if [[ ${INPUT} == 1 ]]
+if [[ ${MARCH} == "ZNVER" ]]
then
- CPU=`gcc -Q -march=native --help=target | grep march | awk '{print $2}' | head -1`
- MARCH=`echo "${CPU}" | tr '[:lower:]' '[:upper:]'`
-
- if [[ ${MARCH} == "ZNVER" ]]
- then
- MARCH="ZEN"
+ MARCH="ZEN"
- elif [[ ${MARCH} == "ZNVER2" ]]
- then
- MARCH="ZEN2"
-
- elif [[ ${MARCH} == "ZNVER3" ]]
- then
- MARCH="ZEN3"
- fi
+elif [[ ${MARCH} == "ZNVER2" ]]
+then
+ MARCH="ZEN2"
- echo -e "[*] Detected CPU : `echo ${MARCH}`"
- echo -e "[*] Setting Detected CPU Microarchitecture ..."
- sed -i '/CONFIG_GENERIC_CPU=y/d' .config
- sed -i "s/\# CONFIG_M${MARCH} is not set/CONFIG_M${MARCH}=y/g" .config
+elif [[ ${MARCH} == "ZNVER3" ]]
+then
+ MARCH="ZEN3"
fi
+
+echo "----------------------------------"
+echo "| APPLYING AUTO-CPU-OPTIMIZATION |"
+echo "----------------------------------"
+echo "[*] DETECTED CPU (MARCH) : ${MARCH}"
+sed -i "/CONFIG_GENERIC_CPU=y/d;s/\# CONFIG_M${MARCH} is not set/CONFIG_M${MARCH}=y/g" *config*
+sleep 3 && echo
diff --git a/config b/config
index e82c4e8875dc..2ca765ec4f5b 100644
--- a/config
+++ b/config
@@ -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