~xdavidwu/linux-xdavidwu-xps

98992c02f3377cd50389cf89010fe02cc157490f — xdavidwu 2 years ago d808668
repull clr patches
M 0106-intel_idle-tweak-cpuidle-cstates.patch => 0106-intel_idle-tweak-cpuidle-cstates.patch +29 -0
@@ 218,3 218,32 @@ index 0b66e25c0e2d..406b41b387d5 100644
-- 
https://clearlinux.org

--- linux-5.19.1/drivers/idle/intel_idle.c~	2022-08-11 11:22:05.000000000 +0000
+++ linux-5.19.1/drivers/idle/intel_idle.c	2022-08-31 23:22:41.705413496 +0000
@@ -796,7 +796,7 @@
 		.desc = "MWAIT 0x01",
 		.flags = MWAIT2flg(0x01) | CPUIDLE_FLAG_ALWAYS_ENABLE,
 		.exit_latency = 4,
-		.target_residency = 4,
+		.target_residency = 40,
 		.enter = &intel_idle,
 		.enter_s2idle = intel_idle_s2idle, },
 	{
@@ -804,7 +804,7 @@
 		.desc = "MWAIT 0x20",
 		.flags = MWAIT2flg(0x20) | CPUIDLE_FLAG_TLB_FLUSHED,
 		.exit_latency = 170,
-		.target_residency = 600,
+		.target_residency = 900,
 		.enter = &intel_idle,
 		.enter_s2idle = intel_idle_s2idle, },
 	{
@@ -936,7 +936,7 @@
 		.flags = MWAIT2flg(0x01) | CPUIDLE_FLAG_ALWAYS_ENABLE |
 					   CPUIDLE_FLAG_UNUSABLE,
 		.exit_latency = 2,
-		.target_residency = 4,
+		.target_residency = 40,
 		.enter = &intel_idle,
 		.enter_s2idle = intel_idle_s2idle, },
 	{

M 0131-add-a-per-cpu-minimum-high-watermark-an-tune-batch-s.patch => 0131-add-a-per-cpu-minimum-high-watermark-an-tune-batch-s.patch +2 -10
@@ 22,19 22,11 @@ index e6f211dcf82e..0ea48434ac7d 100644
 	 * size is striking a balance between allocation latency
 	 * and zone lock contention.
 	 */
-	batch = min(zone_managed_pages(zone) >> 10, (1024 * 1024) / PAGE_SIZE);
+	batch = min(zone_managed_pages(zone) >> 10, 4 * (1024 * 1024) / PAGE_SIZE);
-	batch = min(zone_managed_pages(zone) >> 10, SZ_1M / PAGE_SIZE);
+	batch = min(zone_managed_pages(zone) >> 10, 4 * SZ_1M / PAGE_SIZE);
 	batch /= 4;		/* We effectively *= 4 below */
 	if (batch < 1)
 		batch = 1;
@@ -6918,6 +6918,7 @@ static int zone_highsize(struct zone *zone, int batch, int cpu_online)
 	 * historical relationship between high and batch.
 	 */
 	high = max(high, batch << 2);
+	high = max(high, 1024);
 
 	return high;
 #else
-- 
https://clearlinux.org


M 0133-novector.patch => 0133-novector.patch +5 -5
@@ 10,18 10,18 @@ gcc12/build workarounds
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index e84cdd409b64..59ef9ef60ab7 100644
index 415a5d138de4..6b91d1306a7c 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -60,7 +60,7 @@ export BITS
@@ -67,7 +67,7 @@ export BITS
 #
 #    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53383
 #
-KBUILD_CFLAGS += -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx
+KBUILD_CFLAGS += -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -mno-avx2 -O0 -O2 -fno-tree-vectorize -march=westmere -mpopcnt 
+KBUILD_CFLAGS += -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -mno-avx2 -O3 -fno-tree-vectorize -march=westmere -mpopcnt 
 KBUILD_RUSTFLAGS += -Ctarget-feature=-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-avx,-avx2
 
 # Intel CET isn't enabled in the kernel
 KBUILD_CFLAGS += $(call cc-option,-fcf-protection=none)
 ifeq ($(CONFIG_X86_KERNEL_IBT),y)
-- 
https://clearlinux.org


M APKBUILD => APKBUILD +5 -3
@@ 1,7 1,7 @@
# Maintainer: xdavidwu <xdavidwuph@gmail.com>
pkgname=linux-xdavidwu-xps
pkgver=6.1
pkgrel=0
pkgrel=1
pkgdesc="Linux kernel customized for xps"
url="https://www.kernel.org/"
arch="all"


@@ 34,7 34,8 @@ source="https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${pkgver}.tar.xz
	0120-do-accept-in-LIFO-order-for-cache-efficiency.patch
	0121-locking-rwsem-spin-faster.patch
	0122-ata-libahci-ignore-staggered-spin-up.patch
	0123-print-CPU-that-faults.patch"
	0123-print-CPU-that-faults.patch
	0131-add-a-per-cpu-minimum-high-watermark-an-tune-batch-s.patch"
builddir="$srcdir/linux-${pkgver}"

build() {


@@ 66,7 67,7 @@ edc8a2d463dc15ace6016b8da96c0de284a280534eade094c5fa6717760eed9ecdb90068bf0fa3db
e5eed79203bdb7fe709919a093d382250d353368011cd6bd144bdff01d6d97110356bc05b0ac03f9e08f2ff6fdcd216ea727cc48d782433788a68ccbd02ed160  0103-silence-rapl.patch
303504654b1747c3aa923825ab67e48114edb9388b1f2ff897f1d1b18376b0c1b03c3d34dcd029ee78889a50310e7ae551272cd3b0c3240fc703847664ce6c43  0104-pci-pme-wakeups.patch
9bab4a38124d970bdf4d56ef4c288a9bdab4164b7fe5eb40dd3bbf833afd0d50b9e5afec3fc06c8c467f3e20011c7e5678b8241abd52df083b544f77afb4e4f9  0105-ksm-wakeups.patch
7d43d656ebef40a08f79d7503af9f76ad97d0a879a5ab27691c734e2ae52fb2a40f4255fdd15a85e67e807d318338e71e237c83ba5a8fa8b49a1d344c6ad8925  0106-intel_idle-tweak-cpuidle-cstates.patch
5483799f084b7a7c63660d9b9c0f392eaf734221b8e55480177aee06c0a24481008f74f33c3e9252e9c5982065918af7304d6786d7e7d2685d24ef92b958d7f2  0106-intel_idle-tweak-cpuidle-cstates.patch
828d66bb480dd974cfaa3b89e4839195ce6d24e37f39ba35e7a0c13a062f137b6875c2f9051384f4e7a51bf2f3b44e988ec1b8a310fdafff8b9dc77b34f59b6c  0108-smpboot-reuse-timer-calibration.patch
42b65217790ac6a699c92b763b80f6ea26e1d80d977ff65c5093919ef16d783ef06121ff0a061b9a78b6d32f234dac439f908ddafa6d15cc3b3dd12bdd477c78  0109-initialize-ata-before-graphics.patch
8a53deaf73a1fa8f7d68737a1ab446c18c73b1b1bb3e5eaec6ff39240eed1e76ed017504f180052e8ec7ccc26fc7f673ed5ddae2b1dc9f89b85288bbe54357bf  0111-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch


@@ 80,4 81,5 @@ ead629b352126972268e96e6f0b34b558b96fbc9d0efbb7b6c560671fe61c97272492509f190b682
c0ee48709ba1e70e0c4fa99f7a41514f629db6383febf4e067fa452ac10b4de57a31a5955fdc654e739e6e46656b788ebc10ce89efe382b7533fd9a6e4774b89  0121-locking-rwsem-spin-faster.patch
d406b33ccc8ca6c2a0c5e8b32889a059ddbac68ec2e0ebc30251fc90f0784ceca21a25a25b09cff390593d2cc797df5c1620a323e6384e120ab91cd5b7a5108a  0122-ata-libahci-ignore-staggered-spin-up.patch
abd9e26d870848a12a274ffef19ff1ab495404c4e1787c0c07ce54eac2a1929698ee52c7ad6d0d17cd1d18dc53d7a40ee3acff911529a7d21951f351e2648bcc  0123-print-CPU-that-faults.patch
eed111149b697e0725f803559096f9328b3b95c04a3cedcca8b718b12699ffa5ad0c9b74fecf8acbed66b06de6ea56c2f130d79a6b67e15bd2a748e10182443f  0131-add-a-per-cpu-minimum-high-watermark-an-tune-batch-s.patch
"