release 6.12.4 (preliminary)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
From cba900f94444c8c4cde6b5b4edfaeb6160b55ba3 Mon Sep 17 00:00:00 2001
|
||||
From 95490afcba944883e7f911214391a1a1e2fa3261 Mon Sep 17 00:00:00 2001
|
||||
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
|
||||
Date: Mon, 26 Apr 2021 22:12:46 +0200
|
||||
Subject: ZEN: Add VHBA driver
|
||||
|
||||
remote https://github.com/cdemu/cdemu
|
||||
tag vhba-module-20240202
|
||||
tag vhba-module-20240917
|
||||
---
|
||||
drivers/scsi/Kconfig | 2 +
|
||||
drivers/scsi/Makefile | 1 +
|
||||
@@ -50,7 +50,7 @@ tag vhba-module-20240202
|
||||
--- /dev/null
|
||||
+++ b/drivers/scsi/vhba/Makefile
|
||||
@@ -0,0 +1,4 @@
|
||||
+VHBA_VERSION := 20240202
|
||||
+VHBA_VERSION := 20240917
|
||||
+
|
||||
+obj-$(CONFIG_VHBA) += vhba.o
|
||||
+ccflags-y := -DVHBA_VERSION=\"$(VHBA_VERSION)\" -Werror
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From 6df7338351c342060088aa9abd561b81ccc113d2 Mon Sep 17 00:00:00 2001
|
||||
From 8a6a60b5a71d7f85351a9350eb651c4ce15b8f00 Mon Sep 17 00:00:00 2001
|
||||
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
|
||||
Date: Sun, 15 Sep 2024 19:05:46 +0000
|
||||
Subject: vhba: Fix compat with kernel 6.11
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From 567908cc05dc5e02b1b9c26620bce3791559f9d4 Mon Sep 17 00:00:00 2001
|
||||
From 1cdff301de6db901bc2bfd7ce78016d9b824d667 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Drake <drake@endlessm.com>
|
||||
Date: Tue, 4 Jun 2019 14:51:21 +0800
|
||||
Subject: ZEN: PCI: Add Intel remapped NVMe device support
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From 89a4975b413afa5f591c7a18109d35b5e848b582 Mon Sep 17 00:00:00 2001
|
||||
From 87b0cab8d8701db7754e5778b93ff83ffc64c7ae Mon Sep 17 00:00:00 2001
|
||||
From: Sultan Alsawaf <sultan@kerneltoast.com>
|
||||
Date: Sun, 8 Mar 2020 00:31:35 -0800
|
||||
Subject: ZEN: Disable stack conservation for GCC
|
||||
@@ -15,7 +15,7 @@ Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1003,11 +1003,6 @@ KBUILD_CFLAGS += -fno-strict-overflow
|
||||
@@ -1018,11 +1018,6 @@ KBUILD_CFLAGS += -fno-strict-overflow
|
||||
# Make sure -fstack-check isn't enabled (like gentoo apparently did)
|
||||
KBUILD_CFLAGS += -fno-stack-check
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From 5f2e6f795ce9908851acb20ab03af6550ae54f3b Mon Sep 17 00:00:00 2001
|
||||
From 48d2ea8801ccf8bd9cd48c12fce79040bbcae363 Mon Sep 17 00:00:00 2001
|
||||
From: Arjan van de Ven <arjan@linux.intel.com>
|
||||
Date: Thu, 2 Jun 2016 23:36:32 -0500
|
||||
Subject: ZEN: Initialize ata before graphics
|
||||
@@ -12,7 +12,7 @@ in parallel
|
||||
|
||||
--- a/drivers/Makefile
|
||||
+++ b/drivers/Makefile
|
||||
@@ -61,14 +61,8 @@ obj-y += char/
|
||||
@@ -64,14 +64,8 @@ obj-y += char/
|
||||
# iommu/ comes before gpu as gpu are using iommu controllers
|
||||
obj-y += iommu/
|
||||
|
||||
@@ -27,7 +27,7 @@ in parallel
|
||||
obj-$(CONFIG_PARPORT) += parport/
|
||||
obj-y += base/ block/ misc/ mfd/ nfc/
|
||||
obj-$(CONFIG_LIBNVDIMM) += nvdimm/
|
||||
@@ -80,6 +74,13 @@ obj-y += macintosh/
|
||||
@@ -83,6 +77,13 @@ obj-y += macintosh/
|
||||
obj-y += scsi/
|
||||
obj-y += nvme/
|
||||
obj-$(CONFIG_ATA) += ata/
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From 3d92c251c04b1b4c6363018220af42ec3a294d1e Mon Sep 17 00:00:00 2001
|
||||
From 2f3e9fbc48151e4499f9cbd810d9467ac34b0a3b Mon Sep 17 00:00:00 2001
|
||||
From: Kenny Levinsen <kl@kl.wtf>
|
||||
Date: Sun, 27 Dec 2020 14:43:13 +0000
|
||||
Subject: ZEN: Input: evdev - use call_rcu when detaching client
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From 67c446794b5fc16009bc1f31aee8846576796b11 Mon Sep 17 00:00:00 2001
|
||||
From 51026b78d015797e216aadc4e80158181c2c2bb4 Mon Sep 17 00:00:00 2001
|
||||
From: Steven Barrett <steven@liquorix.net>
|
||||
Date: Mon, 11 Jul 2022 19:10:30 -0500
|
||||
Subject: ZEN: cpufreq: Remove schedutil dependency on Intel/AMD P-State
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From 1d5cc90283f9de0c4cc996a2f3e6ba0306c1f14d Mon Sep 17 00:00:00 2001
|
||||
From 48c8812a4cea0190a037757589443f3103c610ba Mon Sep 17 00:00:00 2001
|
||||
From: Steven Barrett <steven@liquorix.net>
|
||||
Date: Wed, 15 Jan 2020 20:43:56 -0600
|
||||
Subject: ZEN: intel-pstate: Implement "enable" parameter
|
||||
@@ -30,7 +30,7 @@ selection.
|
||||
|
||||
--- a/Documentation/admin-guide/kernel-parameters.txt
|
||||
+++ b/Documentation/admin-guide/kernel-parameters.txt
|
||||
@@ -2237,6 +2237,9 @@
|
||||
@@ -2254,6 +2254,9 @@
|
||||
disable
|
||||
Do not enable intel_pstate as the default
|
||||
scaling driver for the supported processors
|
||||
@@ -42,7 +42,7 @@ selection.
|
||||
governors layer of cpufreq and provides it own
|
||||
--- a/drivers/cpufreq/intel_pstate.c
|
||||
+++ b/drivers/cpufreq/intel_pstate.c
|
||||
@@ -3524,6 +3524,8 @@ static int __init intel_pstate_setup(cha
|
||||
@@ -3817,6 +3817,8 @@ static int __init intel_pstate_setup(cha
|
||||
|
||||
if (!strcmp(str, "disable"))
|
||||
no_load = 1;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From 493aee188c1c7c5cee2791820bfc779932bc10dc Mon Sep 17 00:00:00 2001
|
||||
From bbc56fdeaa2017d0bbed05e1e832e6d7e4bdd6e0 Mon Sep 17 00:00:00 2001
|
||||
From: Steven Barrett <steven@liquorix.net>
|
||||
Date: Fri, 15 Mar 2024 12:36:51 -0500
|
||||
Subject: ZEN: drm/amdgpu/pm: Allow override of min_power_limit with
|
||||
@@ -13,7 +13,7 @@ Subject: ZEN: drm/amdgpu/pm: Allow override of min_power_limit with
|
||||
|
||||
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
|
||||
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
|
||||
@@ -162,6 +162,7 @@ struct amdgpu_watchdog_timer {
|
||||
@@ -164,6 +164,7 @@ struct amdgpu_watchdog_timer {
|
||||
*/
|
||||
extern int amdgpu_modeset;
|
||||
extern unsigned int amdgpu_vram_limit;
|
||||
@@ -23,7 +23,7 @@ Subject: ZEN: drm/amdgpu/pm: Allow override of min_power_limit with
|
||||
extern int amdgpu_gtt_size;
|
||||
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
|
||||
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
|
||||
@@ -135,6 +135,7 @@ enum AMDGPU_DEBUG_MASK {
|
||||
@@ -136,6 +136,7 @@ enum AMDGPU_DEBUG_MASK {
|
||||
};
|
||||
|
||||
unsigned int amdgpu_vram_limit = UINT_MAX;
|
||||
@@ -31,7 +31,7 @@ Subject: ZEN: drm/amdgpu/pm: Allow override of min_power_limit with
|
||||
int amdgpu_vis_vram_limit;
|
||||
int amdgpu_gart_size = -1; /* auto */
|
||||
int amdgpu_gtt_size = -1; /* auto */
|
||||
@@ -249,6 +250,15 @@ struct amdgpu_watchdog_timer amdgpu_watc
|
||||
@@ -260,6 +261,15 @@ struct amdgpu_watchdog_timer amdgpu_watc
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -61,7 +61,7 @@ Subject: ZEN: drm/amdgpu/pm: Allow override of min_power_limit with
|
||||
|
||||
--- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
|
||||
+++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
|
||||
@@ -2775,7 +2775,10 @@ int smu_get_power_limit(void *handle,
|
||||
@@ -2779,7 +2779,10 @@ int smu_get_power_limit(void *handle,
|
||||
*limit = smu->max_power_limit;
|
||||
break;
|
||||
case SMU_PPT_LIMIT_MIN:
|
||||
@@ -73,7 +73,7 @@ Subject: ZEN: drm/amdgpu/pm: Allow override of min_power_limit with
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
@@ -2799,7 +2802,14 @@ static int smu_set_power_limit(void *han
|
||||
@@ -2803,7 +2806,14 @@ static int smu_set_power_limit(void *han
|
||||
if (smu->ppt_funcs->set_power_limit)
|
||||
return smu->ppt_funcs->set_power_limit(smu, limit_type, limit);
|
||||
|
||||
|
@@ -1,29 +0,0 @@
|
||||
From 531d884259632814e998d1662690daa1e57dd98c Mon Sep 17 00:00:00 2001
|
||||
From: Steven Barrett <steven@liquorix.net>
|
||||
Date: Thu, 27 Apr 2023 14:43:57 -0500
|
||||
Subject: ZEN: Set default max map count to (INT_MAX - 5)
|
||||
|
||||
Per [Fedora][1], they intend to change the default max map count for
|
||||
their distribution to improve OOTB compatibility with games played
|
||||
through Steam/Proton. The value they picked comes from the Steam Deck,
|
||||
which defaults to INT_MAX - MAPCOUNT_ELF_CORE_MARGIN.
|
||||
|
||||
Since most ZEN and Liquorix users probably play games, follow Valve's
|
||||
lead and raise this value to their default.
|
||||
|
||||
[1]: https://fedoraproject.org/wiki/Changes/IncreaseVmMaxMapCount
|
||||
---
|
||||
include/linux/mm.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/include/linux/mm.h
|
||||
+++ b/include/linux/mm.h
|
||||
@@ -197,7 +197,7 @@ static inline void __mm_zero_struct_page
|
||||
* that.
|
||||
*/
|
||||
#define MAPCOUNT_ELF_CORE_MARGIN (5)
|
||||
-#define DEFAULT_MAX_MAP_COUNT (USHRT_MAX - MAPCOUNT_ELF_CORE_MARGIN)
|
||||
+#define DEFAULT_MAX_MAP_COUNT (INT_MAX - MAPCOUNT_ELF_CORE_MARGIN)
|
||||
|
||||
extern int sysctl_max_map_count;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From c47df2793088980a32d6706da886fe32f7f045e6 Mon Sep 17 00:00:00 2001
|
||||
From 2cceda3c699f19f9c2f287614db2fe5dd009f73a Mon Sep 17 00:00:00 2001
|
||||
From: Sultan Alsawaf <sultan@kerneltoast.com>
|
||||
Date: Sun, 19 Apr 2020 19:59:18 -0700
|
||||
Subject: ZEN: mm: Stop kswapd early when nothing's waiting for it to free
|
||||
@@ -43,7 +43,7 @@ Contains:
|
||||
|
||||
--- a/mm/internal.h
|
||||
+++ b/mm/internal.h
|
||||
@@ -686,6 +686,7 @@ extern void post_alloc_hook(struct page
|
||||
@@ -739,6 +739,7 @@ extern void post_alloc_hook(struct page
|
||||
extern bool free_pages_prepare(struct page *page, unsigned int order);
|
||||
|
||||
extern int user_min_free_kbytes;
|
||||
@@ -62,15 +62,15 @@ Contains:
|
||||
/* prevent >1 _updater_ of zone percpu pageset ->high and ->batch fields */
|
||||
static DEFINE_MUTEX(pcp_batch_high_lock);
|
||||
#define MIN_PERCPU_PAGELIST_HIGH_FRACTION (8)
|
||||
@@ -4204,6 +4206,7 @@ __alloc_pages_slowpath(gfp_t gfp_mask, u
|
||||
@@ -4218,6 +4220,7 @@ __alloc_pages_slowpath(gfp_t gfp_mask, u
|
||||
unsigned int cpuset_mems_cookie;
|
||||
unsigned int zonelist_iter_cookie;
|
||||
int reserve_flags;
|
||||
+ bool woke_kswapd = false;
|
||||
|
||||
restart:
|
||||
compaction_retries = 0;
|
||||
@@ -4243,8 +4246,13 @@ restart:
|
||||
if (unlikely(nofail)) {
|
||||
/*
|
||||
@@ -4276,8 +4279,13 @@ restart:
|
||||
goto nopage;
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ Contains:
|
||||
|
||||
/*
|
||||
* The adjusted alloc_flags might result in immediate success, so try
|
||||
@@ -4460,9 +4468,12 @@ nopage:
|
||||
@@ -4479,9 +4487,12 @@ nopage:
|
||||
goto retry;
|
||||
}
|
||||
fail:
|
||||
@@ -102,7 +102,7 @@ Contains:
|
||||
|
||||
--- a/mm/vmscan.c
|
||||
+++ b/mm/vmscan.c
|
||||
@@ -6332,7 +6332,7 @@ retry:
|
||||
@@ -6346,7 +6346,7 @@ retry:
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ Contains:
|
||||
{
|
||||
struct zone *zone;
|
||||
unsigned long pfmemalloc_reserve = 0;
|
||||
@@ -6361,6 +6361,10 @@ static bool allow_direct_reclaim(pg_data
|
||||
@@ -6375,6 +6375,10 @@ static bool allow_direct_reclaim(pg_data
|
||||
|
||||
wmark_ok = free_pages > pfmemalloc_reserve / 2;
|
||||
|
||||
@@ -122,7 +122,7 @@ Contains:
|
||||
/* kswapd must be awake if processes are being throttled */
|
||||
if (!wmark_ok && waitqueue_active(&pgdat->kswapd_wait)) {
|
||||
if (READ_ONCE(pgdat->kswapd_highest_zoneidx) > ZONE_NORMAL)
|
||||
@@ -6426,7 +6430,7 @@ static bool throttle_direct_reclaim(gfp_
|
||||
@@ -6440,7 +6444,7 @@ static bool throttle_direct_reclaim(gfp_
|
||||
|
||||
/* Throttle based on the first usable node */
|
||||
pgdat = zone->zone_pgdat;
|
||||
@@ -131,7 +131,7 @@ Contains:
|
||||
goto out;
|
||||
break;
|
||||
}
|
||||
@@ -6448,11 +6452,14 @@ static bool throttle_direct_reclaim(gfp_
|
||||
@@ -6462,11 +6466,14 @@ static bool throttle_direct_reclaim(gfp_
|
||||
*/
|
||||
if (!(gfp_mask & __GFP_FS))
|
||||
wait_event_interruptible_timeout(pgdat->pfmemalloc_wait,
|
||||
@@ -148,7 +148,7 @@ Contains:
|
||||
|
||||
if (fatal_signal_pending(current))
|
||||
return true;
|
||||
@@ -6955,14 +6962,14 @@ restart:
|
||||
@@ -6969,14 +6976,14 @@ restart:
|
||||
* able to safely make forward progress. Wake them
|
||||
*/
|
||||
if (waitqueue_active(&pgdat->pfmemalloc_wait) &&
|
@@ -1,4 +1,4 @@
|
||||
From 032775267df11a87616d2ec7f09c0b1b12da5da7 Mon Sep 17 00:00:00 2001
|
||||
From 530ee9b20cf436bcbb3a632cb19fb5e13a29dde7 Mon Sep 17 00:00:00 2001
|
||||
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
||||
Date: Mon, 27 Jan 2020 18:10:06 +0100
|
||||
Subject: ZEN: INTERACTIVE: Base config item
|
||||
@@ -9,7 +9,7 @@ Subject: ZEN: INTERACTIVE: Base config item
|
||||
|
||||
--- a/init/Kconfig
|
||||
+++ b/init/Kconfig
|
||||
@@ -143,6 +143,12 @@ config THREAD_INFO_IN_TASK
|
||||
@@ -154,6 +154,12 @@ config THREAD_INFO_IN_TASK
|
||||
|
||||
menu "General setup"
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From c614dbbfd3480cf18c90fd51bb52abd53339b790 Mon Sep 17 00:00:00 2001
|
||||
From d2f0a5801471b5f67344b2c92a2aa29f1aed626a Mon Sep 17 00:00:00 2001
|
||||
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
||||
Date: Mon, 27 Jan 2020 18:11:05 +0100
|
||||
Subject: ZEN: INTERACTIVE: Use BFQ as the elevator for SQ devices
|
||||
@@ -24,7 +24,7 @@ Subject: ZEN: INTERACTIVE: Use BFQ as the elevator for SQ devices
|
||||
/*
|
||||
--- a/init/Kconfig
|
||||
+++ b/init/Kconfig
|
||||
@@ -149,6 +149,10 @@ config ZEN_INTERACTIVE
|
||||
@@ -160,6 +160,10 @@ config ZEN_INTERACTIVE
|
||||
help
|
||||
Tunes the kernel for responsiveness at the cost of throughput and power usage.
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From b87281991e8f34e557cf2fb1614b3f4808100233 Mon Sep 17 00:00:00 2001
|
||||
From 346251fa257245b3a06e37de863a1dbafbf2bbc2 Mon Sep 17 00:00:00 2001
|
||||
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
|
||||
Date: Mon, 12 Dec 2022 00:03:03 +0100
|
||||
Subject: ZEN: INTERACTIVE: Use Kyber as the elevator for MQ devices
|
||||
@@ -26,7 +26,7 @@ Subject: ZEN: INTERACTIVE: Use Kyber as the elevator for MQ devices
|
||||
return elevator_find_get("bfq");
|
||||
--- a/init/Kconfig
|
||||
+++ b/init/Kconfig
|
||||
@@ -152,6 +152,7 @@ config ZEN_INTERACTIVE
|
||||
@@ -163,6 +163,7 @@ config ZEN_INTERACTIVE
|
||||
--- Block Layer ----------------------------------------
|
||||
|
||||
Default scheduler for SQ..: mq-deadline -> bfq
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From e2db8ce3c52c7bd37e93728d6c12a483f17634bc Mon Sep 17 00:00:00 2001
|
||||
From 26fcaf58616b8cb3ce042e31c640594ea2fb5987 Mon Sep 17 00:00:00 2001
|
||||
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
||||
Date: Mon, 27 Jan 2020 18:21:09 +0100
|
||||
Subject: ZEN: INTERACTIVE: Enable background reclaim of hugepages
|
||||
@@ -32,7 +32,7 @@ Reasoning and details in the original patch: https://lwn.net/Articles/711248/
|
||||
|
||||
--- a/init/Kconfig
|
||||
+++ b/init/Kconfig
|
||||
@@ -154,6 +154,10 @@ config ZEN_INTERACTIVE
|
||||
@@ -165,6 +165,10 @@ config ZEN_INTERACTIVE
|
||||
Default scheduler for SQ..: mq-deadline -> bfq
|
||||
Default scheduler for MQ..: none -> kyber
|
||||
|
||||
@@ -45,7 +45,7 @@ Reasoning and details in the original patch: https://lwn.net/Articles/711248/
|
||||
|
||||
--- a/mm/huge_memory.c
|
||||
+++ b/mm/huge_memory.c
|
||||
@@ -64,7 +64,11 @@ unsigned long transparent_hugepage_flags
|
||||
@@ -65,7 +65,11 @@ unsigned long transparent_hugepage_flags
|
||||
#ifdef CONFIG_TRANSPARENT_HUGEPAGE_MADVISE
|
||||
(1<<TRANSPARENT_HUGEPAGE_REQ_MADV_FLAG)|
|
||||
#endif
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From 44a6d7ca11b601b34724dc41e086576499a096bd Mon Sep 17 00:00:00 2001
|
||||
From 9e5b04df7190ab4750ae3c67714fd537ef4d79f5 Mon Sep 17 00:00:00 2001
|
||||
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
|
||||
Date: Tue, 31 Oct 2023 19:03:10 +0100
|
||||
Subject: ZEN: INTERACTIVE: Tune EEVDF for interactivity
|
||||
@@ -42,9 +42,9 @@ caused by rebalancing too many tasks at once.
|
||||
|
||||
--- a/init/Kconfig
|
||||
+++ b/init/Kconfig
|
||||
@@ -159,6 +159,13 @@ config ZEN_INTERACTIVE
|
||||
@@ -169,6 +169,13 @@ config ZEN_INTERACTIVE
|
||||
|
||||
Background-reclaim hugepages...: no -> yes
|
||||
MG-LRU minimum cache TTL.......: 0 -> 1000 ms
|
||||
|
||||
+ --- EEVDF CPU Scheduler --------------------------------
|
||||
+
|
||||
@@ -93,7 +93,7 @@ caused by rebalancing too many tasks at once.
|
||||
/* Restrict the NUMA promotion throughput (MB/s) for each target node. */
|
||||
--- a/kernel/sched/sched.h
|
||||
+++ b/kernel/sched/sched.h
|
||||
@@ -2591,7 +2591,7 @@ extern void deactivate_task(struct rq *r
|
||||
@@ -2816,7 +2816,7 @@ extern void deactivate_task(struct rq *r
|
||||
|
||||
extern void wakeup_preempt(struct rq *rq, struct task_struct *p, int flags);
|
||||
|
@@ -1,41 +0,0 @@
|
||||
From f5b82cc382eaf3ddf5c26f60965037bde8733445 Mon Sep 17 00:00:00 2001
|
||||
From: Steven Barrett <steven@liquorix.net>
|
||||
Date: Wed, 11 Aug 2021 18:47:46 -0500
|
||||
Subject: ZEN: INTERACTIVE: Tune mgLRU to protect cache used in the last second
|
||||
|
||||
Although not identical to the le9 patches that protect a byte-amount of
|
||||
cache through tunables, multigenerational LRU now supports protecting
|
||||
cache accessed in the last X milliseconds.
|
||||
|
||||
In #218, Yu recommends starting with 1000ms and tuning as needed. This
|
||||
looks like a safe default and turning on this feature should help users
|
||||
that don't know they need it.
|
||||
---
|
||||
init/Kconfig | 1 +
|
||||
mm/vmscan.c | 4 ++++
|
||||
2 files changed, 5 insertions(+)
|
||||
|
||||
--- a/init/Kconfig
|
||||
+++ b/init/Kconfig
|
||||
@@ -157,6 +157,7 @@ config ZEN_INTERACTIVE
|
||||
--- Virtual Memory Subsystem ---------------------------
|
||||
|
||||
Background-reclaim hugepages...: no -> yes
|
||||
+ MG-LRU minimum cache TTL.......: 0 -> 1000 ms
|
||||
|
||||
config BROKEN
|
||||
bool
|
||||
--- a/mm/vmscan.c
|
||||
+++ b/mm/vmscan.c
|
||||
@@ -3974,7 +3974,11 @@ static bool lruvec_is_reclaimable(struct
|
||||
}
|
||||
|
||||
/* to protect the working set of the last N jiffies */
|
||||
+#ifdef CONFIG_ZEN_INTERACTIVE
|
||||
+static unsigned long lru_gen_min_ttl __read_mostly = HZ;
|
||||
+#else
|
||||
static unsigned long lru_gen_min_ttl __read_mostly;
|
||||
+#endif
|
||||
|
||||
static void lru_gen_age_node(struct pglist_data *pgdat, struct scan_control *sc)
|
||||
{
|
@@ -1,4 +1,4 @@
|
||||
From e9c6f500f4429c32f583d6da11352b2f0bcce4c8 Mon Sep 17 00:00:00 2001
|
||||
From f654ea11471f81ac7dd68467f552db25722df25e Mon Sep 17 00:00:00 2001
|
||||
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
||||
Date: Mon, 27 Jan 2020 18:27:16 +0100
|
||||
Subject: ZEN: INTERACTIVE: Tune ondemand governor for interactivity
|
||||
@@ -75,15 +75,15 @@ Remove MuQSS cpufreq configuration.
|
||||
|
||||
--- a/init/Kconfig
|
||||
+++ b/init/Kconfig
|
||||
@@ -166,6 +166,12 @@ config ZEN_INTERACTIVE
|
||||
@@ -176,6 +176,12 @@ config ZEN_INTERACTIVE
|
||||
Bandwidth slice size...........: 5 -> 3 ms
|
||||
Task rebalancing threshold.....: 32 -> 8
|
||||
|
||||
+ --- CPUFreq Settings -----------------------------------
|
||||
+
|
||||
+ Ondemand sampling down factor..: 100 -> 5
|
||||
+ Ondemand default up threshold..: 63 -> 55
|
||||
+ Ondemand micro up threshold....: 70 -> 60
|
||||
+ Ondemand sampling down factor..: 1 -> 5
|
||||
+ Ondemand default up threshold..: 80 -> 55
|
||||
+ Ondemand micro up threshold....: 95 -> 60
|
||||
+
|
||||
config BROKEN
|
||||
bool
|
@@ -1,4 +1,4 @@
|
||||
From 4706a3fb5823c97dc6acc1e86958b71e2c048ec5 Mon Sep 17 00:00:00 2001
|
||||
From f138e9762fd03612db5593f4c267c8f8b5799159 Mon Sep 17 00:00:00 2001
|
||||
From: Steven Barrett <steven@liquorix.net>
|
||||
Date: Sat, 5 Mar 2022 11:37:14 -0600
|
||||
Subject: ZEN: INTERACTIVE: mm: Disable unevictable compaction
|
||||
@@ -12,17 +12,17 @@ turn it off when CONFIG_ZEN_INTERACTIVE is set as well.
|
||||
|
||||
--- a/init/Kconfig
|
||||
+++ b/init/Kconfig
|
||||
@@ -158,6 +158,7 @@ config ZEN_INTERACTIVE
|
||||
@@ -168,6 +168,7 @@ config ZEN_INTERACTIVE
|
||||
--- Virtual Memory Subsystem ---------------------------
|
||||
|
||||
Background-reclaim hugepages...: no -> yes
|
||||
MG-LRU minimum cache TTL.......: 0 -> 1000 ms
|
||||
+ Compact unevictable............: yes -> no
|
||||
|
||||
--- EEVDF CPU Scheduler --------------------------------
|
||||
|
||||
--- a/mm/Kconfig
|
||||
+++ b/mm/Kconfig
|
||||
@@ -649,7 +649,7 @@ config COMPACTION
|
||||
@@ -648,7 +648,7 @@ config COMPACTION
|
||||
config COMPACT_UNEVICTABLE_DEFAULT
|
||||
int
|
||||
depends on COMPACTION
|
@@ -1,4 +1,4 @@
|
||||
From 5f16843397798d2c709e3b8af4b1a73539d13aa8 Mon Sep 17 00:00:00 2001
|
||||
From 76960c3806e7dfb618f49677cc84dafbfe48e4c4 Mon Sep 17 00:00:00 2001
|
||||
From: Sultan Alsawaf <sultan@kerneltoast.com>
|
||||
Date: Sat, 28 Mar 2020 13:06:28 -0700
|
||||
Subject: ZEN: INTERACTIVE: mm: Disable watermark boosting by default
|
||||
@@ -33,17 +33,17 @@ Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
|
||||
|
||||
--- a/init/Kconfig
|
||||
+++ b/init/Kconfig
|
||||
@@ -160,6 +160,7 @@ config ZEN_INTERACTIVE
|
||||
MG-LRU minimum cache TTL.......: 0 -> 1000 ms
|
||||
@@ -169,6 +169,7 @@ config ZEN_INTERACTIVE
|
||||
|
||||
Background-reclaim hugepages...: no -> yes
|
||||
Compact unevictable............: yes -> no
|
||||
Compaction proactiveness.......: 20 -> 0
|
||||
+ Watermark boost factor.........: 1.5 -> 0
|
||||
|
||||
--- EEVDF CPU Scheduler --------------------------------
|
||||
|
||||
--- a/mm/page_alloc.c
|
||||
+++ b/mm/page_alloc.c
|
||||
@@ -271,7 +271,11 @@ const char * const migratetype_names[MIG
|
||||
@@ -273,7 +273,11 @@ const char * const migratetype_names[MIG
|
||||
|
||||
int min_free_kbytes = 1024;
|
||||
int user_min_free_kbytes = -1;
|
@@ -1,38 +0,0 @@
|
||||
From 8146f220f871c4db77c8363c831784041a5bcf7b Mon Sep 17 00:00:00 2001
|
||||
From: Sultan Alsawaf <sultan@kerneltoast.com>
|
||||
Date: Sat, 24 Oct 2020 22:17:49 -0700
|
||||
Subject: ZEN: INTERACTIVE: mm: Disable proactive compaction by default
|
||||
|
||||
On-demand compaction works fine assuming that you don't have a need to
|
||||
spam the page allocator nonstop for large order page allocations.
|
||||
|
||||
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
|
||||
---
|
||||
init/Kconfig | 1 +
|
||||
mm/compaction.c | 4 ++++
|
||||
2 files changed, 5 insertions(+)
|
||||
|
||||
--- a/init/Kconfig
|
||||
+++ b/init/Kconfig
|
||||
@@ -159,6 +159,7 @@ config ZEN_INTERACTIVE
|
||||
Background-reclaim hugepages...: no -> yes
|
||||
MG-LRU minimum cache TTL.......: 0 -> 1000 ms
|
||||
Compact unevictable............: yes -> no
|
||||
+ Compaction proactiveness.......: 20 -> 0
|
||||
|
||||
--- EEVDF CPU Scheduler --------------------------------
|
||||
|
||||
--- a/mm/compaction.c
|
||||
+++ b/mm/compaction.c
|
||||
@@ -1950,7 +1950,11 @@ static int sysctl_compact_unevictable_al
|
||||
* aggressively the kernel should compact memory in the
|
||||
* background. It takes values in the range [0, 100].
|
||||
*/
|
||||
+#ifdef CONFIG_ZEN_INTERACTIVE
|
||||
+static unsigned int __read_mostly sysctl_compaction_proactiveness;
|
||||
+#else
|
||||
static unsigned int __read_mostly sysctl_compaction_proactiveness = 20;
|
||||
+#endif
|
||||
static int sysctl_extfrag_threshold = 500;
|
||||
static int __read_mostly sysctl_compact_memory;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From eb51c53e5ded1743830368815c550b871f950738 Mon Sep 17 00:00:00 2001
|
||||
From fc3e794cecb686d4e05c6ed86fdf9b2dbd725ea9 Mon Sep 17 00:00:00 2001
|
||||
From: Sultan Alsawaf <sultan@kerneltoast.com>
|
||||
Date: Wed, 20 Oct 2021 20:50:11 -0700
|
||||
Subject: ZEN: INTERACTIVE: mm: Lower the non-hugetlbpage pageblock size to
|
||||
@@ -47,9 +47,9 @@ Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
|
||||
|
||||
--- a/init/Kconfig
|
||||
+++ b/init/Kconfig
|
||||
@@ -161,6 +161,7 @@ config ZEN_INTERACTIVE
|
||||
@@ -170,6 +170,7 @@ config ZEN_INTERACTIVE
|
||||
Background-reclaim hugepages...: no -> yes
|
||||
Compact unevictable............: yes -> no
|
||||
Compaction proactiveness.......: 20 -> 0
|
||||
Watermark boost factor.........: 1.5 -> 0
|
||||
+ Pageblock order................: 10 -> 3
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From a8a0d4b9f356610babe5b884500799310fe6dcdd Mon Sep 17 00:00:00 2001
|
||||
From be57a2710aef65116767d26930dd1251ff6e060f Mon Sep 17 00:00:00 2001
|
||||
From: Steven Barrett <steven@liquorix.net>
|
||||
Date: Sat, 21 May 2022 15:15:09 -0500
|
||||
Subject: ZEN: INTERACTIVE: dm-crypt: Disable workqueues for crypto ops
|
||||
@@ -20,7 +20,7 @@ Fixes: https://github.com/zen-kernel/zen-kernel/issues/282
|
||||
|
||||
--- a/drivers/md/dm-crypt.c
|
||||
+++ b/drivers/md/dm-crypt.c
|
||||
@@ -3310,6 +3310,11 @@ static int crypt_ctr(struct dm_target *t
|
||||
@@ -3315,6 +3315,11 @@ static int crypt_ctr(struct dm_target *t
|
||||
goto bad;
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ Fixes: https://github.com/zen-kernel/zen-kernel/issues/282
|
||||
goto bad;
|
||||
--- a/init/Kconfig
|
||||
+++ b/init/Kconfig
|
||||
@@ -153,6 +153,7 @@ config ZEN_INTERACTIVE
|
||||
@@ -164,6 +164,7 @@ config ZEN_INTERACTIVE
|
||||
|
||||
Default scheduler for SQ..: mq-deadline -> bfq
|
||||
Default scheduler for MQ..: none -> kyber
|
@@ -1,4 +1,4 @@
|
||||
From 5a8fabcd4e7396500f2c0070f8b7ce9106eb9bfa Mon Sep 17 00:00:00 2001
|
||||
From 41fe25c2e4e89c6afd35e3feb720e5a6797857d3 Mon Sep 17 00:00:00 2001
|
||||
From: Steven Barrett <steven@liquorix.net>
|
||||
Date: Mon, 5 Sep 2022 11:35:20 -0500
|
||||
Subject: ZEN: INTERACTIVE: mm/swap: Disable swap-in readahead
|
||||
@@ -20,8 +20,8 @@ same change so Zen Kernel users benefit.
|
||||
|
||||
--- a/init/Kconfig
|
||||
+++ b/init/Kconfig
|
||||
@@ -163,6 +163,7 @@ config ZEN_INTERACTIVE
|
||||
Compaction proactiveness.......: 20 -> 0
|
||||
@@ -172,6 +172,7 @@ config ZEN_INTERACTIVE
|
||||
Compact unevictable............: yes -> no
|
||||
Watermark boost factor.........: 1.5 -> 0
|
||||
Pageblock order................: 10 -> 3
|
||||
+ Swap-in readahead..............: 3 -> 0
|
||||
@@ -30,7 +30,7 @@ same change so Zen Kernel users benefit.
|
||||
|
||||
--- a/mm/swap.c
|
||||
+++ b/mm/swap.c
|
||||
@@ -1112,6 +1112,10 @@ void folio_batch_remove_exceptionals(str
|
||||
@@ -1080,6 +1080,10 @@ void folio_batch_remove_exceptionals(str
|
||||
*/
|
||||
void __init swap_setup(void)
|
||||
{
|
||||
@@ -41,7 +41,7 @@ same change so Zen Kernel users benefit.
|
||||
unsigned long megs = totalram_pages() >> (20 - PAGE_SHIFT);
|
||||
|
||||
/* Use a smaller cluster for small-memory machines */
|
||||
@@ -1123,4 +1127,5 @@ void __init swap_setup(void)
|
||||
@@ -1091,4 +1095,5 @@ void __init swap_setup(void)
|
||||
* Right now other parts of the system means that we
|
||||
* _really_ don't want to cluster much more
|
||||
*/
|
23
debian/patches/patchset-zen/sauce/0022-ZEN-INTERACTIVE-Document-PDS-BMQ-configuration.patch
vendored
Normal file
23
debian/patches/patchset-zen/sauce/0022-ZEN-INTERACTIVE-Document-PDS-BMQ-configuration.patch
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
From 40de9c08129e2d8e182a166df2f1e823f70fa31d Mon Sep 17 00:00:00 2001
|
||||
From: Steven Barrett <steven@liquorix.net>
|
||||
Date: Sun, 19 Sep 2021 16:03:36 -0500
|
||||
Subject: ZEN: INTERACTIVE: Document PDS/BMQ configuration
|
||||
|
||||
---
|
||||
init/Kconfig | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
--- a/init/Kconfig
|
||||
+++ b/init/Kconfig
|
||||
@@ -181,6 +181,11 @@ config ZEN_INTERACTIVE
|
||||
Bandwidth slice size...........: 5 -> 3 ms
|
||||
Task rebalancing threshold.....: 32 -> 8
|
||||
|
||||
+ --- PDS/BMQ CPU Scheduler ------------------------------
|
||||
+
|
||||
+ Scheduling timeslice...........: 4 -> 2 ms
|
||||
+ Yield type.....................: 1 -> 0
|
||||
+
|
||||
--- CPUFreq Settings -----------------------------------
|
||||
|
||||
Ondemand sampling down factor..: 1 -> 5
|
32
debian/patches/patchset-zen/sauce/0023-ZEN-ahci-Disable-staggered-spinup-by-default.patch
vendored
Normal file
32
debian/patches/patchset-zen/sauce/0023-ZEN-ahci-Disable-staggered-spinup-by-default.patch
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
From 1ec451a4bbac7cc00b59f8ca504d6a8898615880 Mon Sep 17 00:00:00 2001
|
||||
From: EXtremeExploit <pedro.montes.alcalde@gmail.com>
|
||||
Date: Fri, 29 Nov 2024 13:05:27 -0300
|
||||
Subject: ZEN: ahci: Disable staggered spinup by default
|
||||
|
||||
This patch disabled the staggered spinup used for HDDs.
|
||||
|
||||
The goal is to make boot times faster on systems
|
||||
with the small downside of a small spike in power consumption.
|
||||
|
||||
Systems with a bunch of HDDs would see considerable faster boots
|
||||
|
||||
This does make sense in the zen kernel as its supposed to be a kernel
|
||||
specialized for desktop performance, and faster boot times does fit
|
||||
into that description
|
||||
|
||||
Signed-off-by: Pedro Montes Alcalde <pedro.montes.alcalde@gmail.com>
|
||||
---
|
||||
drivers/ata/libahci.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/drivers/ata/libahci.c
|
||||
+++ b/drivers/ata/libahci.c
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "libata.h"
|
||||
|
||||
static int ahci_skip_host_reset;
|
||||
-int ahci_ignore_sss;
|
||||
+int ahci_ignore_sss = 1;
|
||||
EXPORT_SYMBOL_GPL(ahci_ignore_sss);
|
||||
|
||||
module_param_named(skip_host_reset, ahci_skip_host_reset, int, 0444);
|
@@ -1,19 +0,0 @@
|
||||
From 238d23d6cb3f8610aa1cd3bdaeb398c63a4c9cb2 Mon Sep 17 00:00:00 2001
|
||||
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
|
||||
Date: Tue, 1 Oct 2024 02:22:46 +0200
|
||||
Subject: ZEN: Update VHBA driver
|
||||
|
||||
remote https://github.com/cdemu/cdemu
|
||||
tag vhba-module-20240917
|
||||
---
|
||||
drivers/scsi/vhba/Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/drivers/scsi/vhba/Makefile
|
||||
+++ b/drivers/scsi/vhba/Makefile
|
||||
@@ -1,4 +1,4 @@
|
||||
-VHBA_VERSION := 20240202
|
||||
+VHBA_VERSION := 20240917
|
||||
|
||||
obj-$(CONFIG_VHBA) += vhba.o
|
||||
ccflags-y := -DVHBA_VERSION=\"$(VHBA_VERSION)\" -Werror
|
Reference in New Issue
Block a user