Initial 5.12 release

With imported Project C v5.12-r0 patchset - http://cchalpha.blogspot.com/2021/04/project-c-v512-r0-release.html
master
Tk-Glitch 2021-04-26 19:59:42 +07:00
parent 4c421dd598
commit ef620e2dc3
6 changed files with 10023 additions and 13 deletions

@ -53,7 +53,7 @@ else
fi fi
pkgname=("${pkgbase}" "${pkgbase}-headers") pkgname=("${pkgbase}" "${pkgbase}-headers")
pkgver="${_basekernel}"."${_sub}" pkgver="${_basekernel}"."${_sub}"
pkgrel=149 pkgrel=150
pkgdesc='Linux-tkg' pkgdesc='Linux-tkg'
arch=('x86_64') # no i686 in here arch=('x86_64') # no i686 in here
url="http://www.kernel.org/" url="http://www.kernel.org/"
@ -423,21 +423,21 @@ case $_basever in
#0005-undead-glitched-ondemand-pds.patch #0005-undead-glitched-ondemand-pds.patch
#0005-undead-glitched-pds.patch #0005-undead-glitched-pds.patch
#0005-v5.12_undead-pds099o.patch #0005-v5.12_undead-pds099o.patch
#0005-glitched-pds.patch 0005-glitched-pds.patch
0006-add-acs-overrides_iommu.patch 0006-add-acs-overrides_iommu.patch
0007-v5.12-fsync.patch 0007-v5.12-fsync.patch
0007-v5.12-futex2_interface.patch 0007-v5.12-futex2_interface.patch
#0008-5.12-bcachefs.patch #0008-5.12-bcachefs.patch
#0009-glitched-ondemand-bmq.patch 0009-glitched-ondemand-bmq.patch
#0009-glitched-bmq.patch 0009-glitched-bmq.patch
#0009-prjc_v5.12-r0.patch 0009-prjc_v5.12-r0.patch
#0012-linux-hardened.patch #0012-linux-hardened.patch
0012-misc-additions.patch 0012-misc-additions.patch
# MM Dirty Soft for WRITE_WATCH support in Wine # MM Dirty Soft for WRITE_WATCH support in Wine
0001-mm-Support-soft-dirty-flag-reset-for-VA-range.patch 0001-mm-Support-soft-dirty-flag-reset-for-VA-range.patch
0002-mm-Support-soft-dirty-flag-read-with-reset.patch 0002-mm-Support-soft-dirty-flag-read-with-reset.patch
) )
sha256sums=('5895e5119aea71058959bd44330f39f4ee815e8e0c349fcb38c4ac81999a5710' sha256sums=('7d0df6f2bf2384d68d0bd8e1fe3e071d64364dcdc6002e7b5c87c92d48fac366'
'SKIP' 'SKIP'
'84e8ad516fad66514ea6b430345b261118f571c93b0c7358d1bc3291ced11c82' '84e8ad516fad66514ea6b430345b261118f571c93b0c7358d1bc3291ced11c82'
'1e15fc2ef3fa770217ecc63a220e5df2ddbcf3295eb4a021171e7edd4c6cc898' '1e15fc2ef3fa770217ecc63a220e5df2ddbcf3295eb4a021171e7edd4c6cc898'
@ -446,9 +446,13 @@ case $_basever in
'35a7cde86fb94939c0f25a62b8c47f3de0dbd3c65f876f460b263181b3e92fc0' '35a7cde86fb94939c0f25a62b8c47f3de0dbd3c65f876f460b263181b3e92fc0'
'1ac97da07e72ec7e2b0923d32daacacfaa632a44c714d6942d9f143fe239e1b5' '1ac97da07e72ec7e2b0923d32daacacfaa632a44c714d6942d9f143fe239e1b5'
'7058e57fd68367b029adc77f2a82928f1433daaf02c8c279cb2d13556c8804d7' '7058e57fd68367b029adc77f2a82928f1433daaf02c8c279cb2d13556c8804d7'
'fca63d15ca4502aebd73e76d7499b243d2c03db71ff5ab0bf5cf268b2e576320'
'19661ec0d39f9663452b34433214c755179894528bf73a42f6ba52ccf572832a' '19661ec0d39f9663452b34433214c755179894528bf73a42f6ba52ccf572832a'
'b302ba6c5bbe8ed19b20207505d513208fae1e678cf4d8e7ac0b154e5fe3f456' 'b302ba6c5bbe8ed19b20207505d513208fae1e678cf4d8e7ac0b154e5fe3f456'
'fc0a3274e3285278e925f4b3bfe803e5e610344bebe5bba063ba202dbaff49c8' 'fc0a3274e3285278e925f4b3bfe803e5e610344bebe5bba063ba202dbaff49c8'
'9fad4a40449e09522899955762c8928ae17f4cdaa16e01239fd12592e9d58177'
'a557b342111849a5f920bbe1c129f3ff1fc1eff62c6bd6685e0972fc88e39911'
'7d8e98f35524fa2db13753c318dc5568d3cca25a4aa306201a02d5aad3045822'
'7fb1104c167edb79ec8fbdcde97940ed0f806aa978bdd14d0c665a1d76d25c24' '7fb1104c167edb79ec8fbdcde97940ed0f806aa978bdd14d0c665a1d76d25c24'
'b1c6599d0e1ac9b66898d652ed99dae3fb8676d840a43ffa920a78d96e0521be' 'b1c6599d0e1ac9b66898d652ed99dae3fb8676d840a43ffa920a78d96e0521be'
'b0319a7dff9c48b2f3e3d3597ee154bf92223149a633a8b7ce4026252db86da6') 'b0319a7dff9c48b2f3e3d3597ee154bf92223149a633a8b7ce4026252db86da6')

@ -6,7 +6,7 @@ ver58=18
ver59=16 ver59=16
ver510=32 ver510=32
ver511=16 ver511=16
ver512=rc8 ver512=0
_cpuschedselector() { _cpuschedselector() {
msg2 "Which CPU sched variant do you want to build/install? Select \"CFS\" (linux kernel's default) if unsure." msg2 "Which CPU sched variant do you want to build/install? Select \"CFS\" (linux kernel's default) if unsure."
@ -60,7 +60,7 @@ _tkg_initscript() {
# to the rest of the script # to the rest of the script
if [ -z "$_version" ] && [ ! -e "$_path"/versel ]; then if [ -z "$_version" ] && [ ! -e "$_path"/versel ]; then
msg2 "Which kernel version do you want to install?" msg2 "Which kernel version do you want to install?"
plain "1. 5.4.$ver54 LTS\n 2. 5.7.$ver57\n 3. 5.8.$ver58\n 4. 5.9.$ver59\n 5. 5.10.$ver510 LTS\n > 6. 5.11.$ver511 (latest stable)\n 7. 5.12.$ver512" plain "1. 5.4.$ver54 LTS\n 2. 5.7.$ver57\n 3. 5.8.$ver58\n 4. 5.9.$ver59\n 5. 5.10.$ver510 LTS\n 6. 5.11.$ver511\n > 7. 5.12.$ver512 (latest stable)"
read -rp "`echo $' choice[1-7?]'`" _VERSEL; read -rp "`echo $' choice[1-7?]'`" _VERSEL;
case $_VERSEL in case $_VERSEL in
"1") "1")
@ -89,15 +89,15 @@ _tkg_initscript() {
echo "_sub=${ver510}" >> "$_path"/versel echo "_sub=${ver510}" >> "$_path"/versel
;; ;;
"7") "7")
echo "_basever=512" > "$_path"/versel
echo "_basekernel=5.12" >> "$_path"/versel
echo "_sub=${ver512}" >> "$_path"/versel
;;
*)
echo "_basever=511" > "$_path"/versel echo "_basever=511" > "$_path"/versel
echo "_basekernel=5.11" >> "$_path"/versel echo "_basekernel=5.11" >> "$_path"/versel
echo "_sub=${ver511}" >> "$_path"/versel echo "_sub=${ver511}" >> "$_path"/versel
;; ;;
*)
echo "_basever=512" > "$_path"/versel
echo "_basekernel=5.12" >> "$_path"/versel
echo "_sub=${ver512}" >> "$_path"/versel
;;
esac esac
elif [ -n "$_version" ];then elif [ -n "$_version" ];then
case "$_version" in case "$_version" in
@ -189,6 +189,9 @@ _tkg_initscript() {
elif [ "$_basever" = "511" ]; then elif [ "$_basever" = "511" ]; then
_CPUSCHEDARRAY=("Undead PDS (TkG)" "Project C / PDS" "Project C / BMQ" "MuQSS" "CFS") _CPUSCHEDARRAY=("Undead PDS (TkG)" "Project C / PDS" "Project C / BMQ" "MuQSS" "CFS")
_CPUSCHEDVARARRAY=("upds" "pds" "bmq" "muqss" "MuQSS" "cfs") _CPUSCHEDVARARRAY=("upds" "pds" "bmq" "muqss" "MuQSS" "cfs")
elif [ "$_basever" = "512" ]; then
_CPUSCHEDARRAY=("Project C / PDS" "Project C / BMQ" "CFS")
_CPUSCHEDVARARRAY=("pds" "bmq" "cfs")
else else
_CPUSCHEDARRAY=("CFS") _CPUSCHEDARRAY=("CFS")
_CPUSCHEDVARARRAY=("cfs") _CPUSCHEDVARARRAY=("cfs")

@ -0,0 +1,90 @@
From f7f49141a5dbe9c99d78196b58c44307fb2e6be3 Mon Sep 17 00:00:00 2001
From: Tk-Glitch <ti3nou@gmail.com>
Date: Wed, 4 Jul 2018 04:30:08 +0200
Subject: glitched - PDS
diff --git a/kernel/Kconfig.hz b/kernel/Kconfig.hz
index 2a202a846757..1d9c7ed79b11 100644
--- a/kernel/Kconfig.hz
+++ b/kernel/Kconfig.hz
@@ -4,7 +4,7 @@
choice
prompt "Timer frequency"
- default HZ_250
+ default HZ_500
help
Allows the configuration of the timer frequency. It is customary
to have the timer interrupt run at 1000 Hz but 100 Hz may be more
@@ -39,6 +39,13 @@ choice
on SMP and NUMA systems and exactly dividing by both PAL and
NTSC frame rates for video and multimedia work.
+ config HZ_500
+ bool "500 HZ"
+ help
+ 500 Hz is a balanced timer frequency. Provides fast interactivity
+ on desktops with great smoothness without increasing CPU power
+ consumption and sacrificing the battery life on laptops.
+
config HZ_1000
bool "1000 HZ"
help
@@ -52,6 +59,7 @@ config HZ
default 100 if HZ_100
default 250 if HZ_250
default 300 if HZ_300
+ default 500 if HZ_500
default 1000 if HZ_1000
config SCHED_HRTICK
diff --git a/kernel/Kconfig.hz b/kernel/Kconfig.hz
index 2a202a846757..1d9c7ed79b11 100644
--- a/kernel/Kconfig.hz
+++ b/kernel/Kconfig.hz
@@ -4,7 +4,7 @@
choice
prompt "Timer frequency"
- default HZ_500
+ default HZ_750
help
Allows the configuration of the timer frequency. It is customary
to have the timer interrupt run at 1000 Hz but 100 Hz may be more
@@ -46,6 +46,13 @@ choice
on desktops with great smoothness without increasing CPU power
consumption and sacrificing the battery life on laptops.
+ config HZ_750
+ bool "750 HZ"
+ help
+ 750 Hz is a good timer frequency for desktops. Provides fast
+ interactivity with great smoothness without sacrificing too
+ much throughput.
+
config HZ_1000
bool "1000 HZ"
help
@@ -60,6 +67,7 @@ config HZ
default 250 if HZ_250
default 300 if HZ_300
default 500 if HZ_500
+ default 750 if HZ_750
default 1000 if HZ_1000
config SCHED_HRTICK
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 9270a4370d54..30d01e647417 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -169,7 +169,7 @@
/*
* From 0 .. 200. Higher means more swappy.
*/
-int vm_swappiness = 60;
+int vm_swappiness = 20;
static void set_task_reclaim_state(struct task_struct *task,
struct reclaim_state *rs)

@ -0,0 +1,90 @@
From f7f49141a5dbe9c99d78196b58c44307fb2e6be3 Mon Sep 17 00:00:00 2001
From: Tk-Glitch <ti3nou@gmail.com>
Date: Wed, 4 Jul 2018 04:30:08 +0200
Subject: glitched - BMQ
diff --git a/kernel/Kconfig.hz b/kernel/Kconfig.hz
index 2a202a846757..1d9c7ed79b11 100644
--- a/kernel/Kconfig.hz
+++ b/kernel/Kconfig.hz
@@ -4,7 +4,7 @@
choice
prompt "Timer frequency"
- default HZ_250
+ default HZ_500
help
Allows the configuration of the timer frequency. It is customary
to have the timer interrupt run at 1000 Hz but 100 Hz may be more
@@ -39,6 +39,13 @@ choice
on SMP and NUMA systems and exactly dividing by both PAL and
NTSC frame rates for video and multimedia work.
+ config HZ_500
+ bool "500 HZ"
+ help
+ 500 Hz is a balanced timer frequency. Provides fast interactivity
+ on desktops with great smoothness without increasing CPU power
+ consumption and sacrificing the battery life on laptops.
+
config HZ_1000
bool "1000 HZ"
help
@@ -52,6 +59,7 @@ config HZ
default 100 if HZ_100
default 250 if HZ_250
default 300 if HZ_300
+ default 500 if HZ_500
default 1000 if HZ_1000
config SCHED_HRTICK
diff --git a/kernel/Kconfig.hz b/kernel/Kconfig.hz
index 2a202a846757..1d9c7ed79b11 100644
--- a/kernel/Kconfig.hz
+++ b/kernel/Kconfig.hz
@@ -4,7 +4,7 @@
choice
prompt "Timer frequency"
- default HZ_500
+ default HZ_750
help
Allows the configuration of the timer frequency. It is customary
to have the timer interrupt run at 1000 Hz but 100 Hz may be more
@@ -46,6 +46,13 @@ choice
on desktops with great smoothness without increasing CPU power
consumption and sacrificing the battery life on laptops.
+ config HZ_750
+ bool "750 HZ"
+ help
+ 750 Hz is a good timer frequency for desktops. Provides fast
+ interactivity with great smoothness without sacrificing too
+ much throughput.
+
config HZ_1000
bool "1000 HZ"
help
@@ -60,6 +67,7 @@ config HZ
default 250 if HZ_250
default 300 if HZ_300
default 500 if HZ_500
+ default 750 if HZ_750
default 1000 if HZ_1000
config SCHED_HRTICK
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 9270a4370d54..30d01e647417 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -169,7 +169,7 @@
/*
* From 0 .. 200. Higher means more swappy.
*/
-int vm_swappiness = 60;
+int vm_swappiness = 20;
static void set_task_reclaim_state(struct task_struct *task,
struct reclaim_state *rs)

@ -0,0 +1,18 @@
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c
index 6b423eebfd5d..61e3271675d6 100644
--- a/drivers/cpufreq/cpufreq_ondemand.c
+++ b/drivers/cpufreq/cpufreq_ondemand.c
@@ -21,10 +21,10 @@
#include "cpufreq_ondemand.h"
/* On-demand governor macros */
-#define DEF_FREQUENCY_UP_THRESHOLD (80)
-#define DEF_SAMPLING_DOWN_FACTOR (1)
+#define DEF_FREQUENCY_UP_THRESHOLD (55)
+#define DEF_SAMPLING_DOWN_FACTOR (5)
#define MAX_SAMPLING_DOWN_FACTOR (100000)
-#define MICRO_FREQUENCY_UP_THRESHOLD (95)
+#define MICRO_FREQUENCY_UP_THRESHOLD (63)
#define MICRO_FREQUENCY_MIN_SAMPLE_RATE (10000)
#define MIN_FREQUENCY_UP_THRESHOLD (1)
#define MAX_FREQUENCY_UP_THRESHOLD (100)

File diff suppressed because it is too large Load Diff