forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* https://github.com/coolsnowwolf/lede: siflower: new target for Siflower SF19A2890 package: busybox: disable mips16 on hard-float rockchip: backport driver updates for rk3588 kernel: refresh 6.1 patches
- Loading branch information
Showing
99 changed files
with
3,788 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -294,7 +294,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
struct mem_cgroup *memcg = lruvec_memcg(lruvec); | ||
|
||
VM_WARN_ON_ONCE(!list_empty(list)); | ||
@@ -5249,7 +5249,7 @@ done: | ||
@@ -5248,7 +5248,7 @@ done: | ||
|
||
static bool __maybe_unused state_is_valid(struct lruvec *lruvec) | ||
{ | ||
|
@@ -303,7 +303,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
|
||
if (lrugen->enabled) { | ||
enum lru_list lru; | ||
@@ -5531,7 +5531,7 @@ static void lru_gen_seq_show_full(struct | ||
@@ -5530,7 +5530,7 @@ static void lru_gen_seq_show_full(struct | ||
int i; | ||
int type, tier; | ||
int hist = lru_hist_from_seq(seq); | ||
|
@@ -312,7 +312,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
|
||
for (tier = 0; tier < MAX_NR_TIERS; tier++) { | ||
seq_printf(m, " %10d", tier); | ||
@@ -5581,7 +5581,7 @@ static int lru_gen_seq_show(struct seq_f | ||
@@ -5580,7 +5580,7 @@ static int lru_gen_seq_show(struct seq_f | ||
unsigned long seq; | ||
bool full = !debugfs_real_fops(m->file)->write; | ||
struct lruvec *lruvec = v; | ||
|
@@ -321,7 +321,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
int nid = lruvec_pgdat(lruvec)->node_id; | ||
struct mem_cgroup *memcg = lruvec_memcg(lruvec); | ||
DEFINE_MAX_SEQ(lruvec); | ||
@@ -5835,7 +5835,7 @@ void lru_gen_init_lruvec(struct lruvec * | ||
@@ -5834,7 +5834,7 @@ void lru_gen_init_lruvec(struct lruvec * | ||
{ | ||
int i; | ||
int gen, type, zone; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
{ | ||
int type; | ||
int scanned; | ||
@@ -5095,9 +5104,6 @@ retry: | ||
@@ -5094,9 +5103,6 @@ retry: | ||
goto retry; | ||
} | ||
|
||
|
@@ -86,7 +86,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
return scanned; | ||
} | ||
|
||
@@ -5136,67 +5142,26 @@ done: | ||
@@ -5135,67 +5141,26 @@ done: | ||
return min_seq[!can_swap] + MIN_NR_GENS <= max_seq ? nr_to_scan : 0; | ||
} | ||
|
||
|
@@ -163,7 +163,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
|
||
lru_add_drain(); | ||
|
||
@@ -5220,7 +5185,7 @@ static void lru_gen_shrink_lruvec(struct | ||
@@ -5219,7 +5184,7 @@ static void lru_gen_shrink_lruvec(struct | ||
if (!nr_to_scan) | ||
goto done; | ||
|
||
|
@@ -172,7 +172,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
if (!delta) | ||
goto done; | ||
|
||
@@ -5228,7 +5193,7 @@ static void lru_gen_shrink_lruvec(struct | ||
@@ -5227,7 +5192,7 @@ static void lru_gen_shrink_lruvec(struct | ||
if (scanned >= nr_to_scan) | ||
break; | ||
|
||
|
@@ -181,7 +181,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
break; | ||
|
||
cond_resched(); | ||
@@ -5678,7 +5643,7 @@ static int run_eviction(struct lruvec *l | ||
@@ -5677,7 +5642,7 @@ static int run_eviction(struct lruvec *l | ||
if (sc->nr_reclaimed >= nr_to_reclaim) | ||
return 0; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,7 +214,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
*/ | ||
if (mutex_trylock(&oom_lock)) { | ||
struct oom_control oc = { | ||
@@ -5113,33 +5117,27 @@ retry: | ||
@@ -5112,33 +5116,27 @@ retry: | ||
* reclaim. | ||
*/ | ||
static unsigned long get_nr_to_scan(struct lruvec *lruvec, struct scan_control *sc, | ||
|
@@ -254,7 +254,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
} | ||
|
||
static unsigned long get_nr_to_reclaim(struct scan_control *sc) | ||
@@ -5158,9 +5156,7 @@ static unsigned long get_nr_to_reclaim(s | ||
@@ -5157,9 +5155,7 @@ static unsigned long get_nr_to_reclaim(s | ||
static void lru_gen_shrink_lruvec(struct lruvec *lruvec, struct scan_control *sc) | ||
{ | ||
struct blk_plug plug; | ||
|
@@ -264,7 +264,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
unsigned long nr_to_reclaim = get_nr_to_reclaim(sc); | ||
|
||
lru_add_drain(); | ||
@@ -5181,13 +5177,13 @@ static void lru_gen_shrink_lruvec(struct | ||
@@ -5180,13 +5176,13 @@ static void lru_gen_shrink_lruvec(struct | ||
else | ||
swappiness = 0; | ||
|
||
|
@@ -281,7 +281,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
|
||
scanned += delta; | ||
if (scanned >= nr_to_scan) | ||
@@ -5199,10 +5195,6 @@ static void lru_gen_shrink_lruvec(struct | ||
@@ -5198,10 +5194,6 @@ static void lru_gen_shrink_lruvec(struct | ||
cond_resched(); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,7 +95,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
static bool lruvec_is_sizable(struct lruvec *lruvec, struct scan_control *sc) | ||
{ | ||
int gen, type, zone; | ||
@@ -5111,6 +5049,68 @@ retry: | ||
@@ -5110,6 +5048,68 @@ retry: | ||
return scanned; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -335,23 +335,23 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
if (order > 0) | ||
return 0; | ||
|
||
@@ -5387,6 +5400,7 @@ static int mem_cgroup_css_online(struct | ||
@@ -5408,6 +5421,7 @@ static int mem_cgroup_css_online(struct | ||
if (unlikely(mem_cgroup_is_root(memcg))) | ||
queue_delayed_work(system_unbound_wq, &stats_flush_dwork, | ||
2UL*HZ); | ||
+ lru_gen_online_memcg(memcg); | ||
return 0; | ||
offline_kmem: | ||
memcg_offline_kmem(memcg); | ||
@@ -5418,6 +5432,7 @@ static void mem_cgroup_css_offline(struc | ||
@@ -5439,6 +5453,7 @@ static void mem_cgroup_css_offline(struc | ||
memcg_offline_kmem(memcg); | ||
reparent_shrinker_deferred(memcg); | ||
wb_memcg_offline(memcg); | ||
+ lru_gen_offline_memcg(memcg); | ||
|
||
drain_all_stock(memcg); | ||
|
||
@@ -5429,6 +5444,7 @@ static void mem_cgroup_css_released(stru | ||
@@ -5450,6 +5465,7 @@ static void mem_cgroup_css_released(stru | ||
struct mem_cgroup *memcg = mem_cgroup_from_css(css); | ||
|
||
invalidate_reclaim_iterators(memcg); | ||
|
@@ -361,7 +361,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
static void mem_cgroup_css_free(struct cgroup_subsys_state *css) | ||
--- a/mm/page_alloc.c | ||
+++ b/mm/page_alloc.c | ||
@@ -7949,6 +7949,7 @@ static void __init free_area_init_node(i | ||
@@ -7956,6 +7956,7 @@ static void __init free_area_init_node(i | ||
pgdat_set_deferred_range(pgdat); | ||
|
||
free_area_init_core(pgdat); | ||
|
@@ -421,7 +421,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
/* check the order to exclude compaction-induced reclaim */ | ||
if (!min_ttl || sc->order || sc->priority == DEF_PRIORITY) | ||
return; | ||
@@ -5116,8 +5113,7 @@ static bool should_run_aging(struct lruv | ||
@@ -5115,8 +5112,7 @@ static bool should_run_aging(struct lruv | ||
* 1. Defer try_to_inc_max_seq() to workqueues to reduce latency for memcg | ||
* reclaim. | ||
*/ | ||
|
@@ -431,7 +431,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
{ | ||
unsigned long nr_to_scan; | ||
struct mem_cgroup *memcg = lruvec_memcg(lruvec); | ||
@@ -5134,10 +5130,8 @@ static unsigned long get_nr_to_scan(stru | ||
@@ -5133,10 +5129,8 @@ static unsigned long get_nr_to_scan(stru | ||
if (sc->priority == DEF_PRIORITY) | ||
return nr_to_scan; | ||
|
||
|
@@ -443,7 +443,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
} | ||
|
||
static unsigned long get_nr_to_reclaim(struct scan_control *sc) | ||
@@ -5146,29 +5140,18 @@ static unsigned long get_nr_to_reclaim(s | ||
@@ -5145,29 +5139,18 @@ static unsigned long get_nr_to_reclaim(s | ||
if (!global_reclaim(sc)) | ||
return -1; | ||
|
||
|
@@ -475,7 +475,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
|
||
if (sc->may_swap) | ||
swappiness = get_swappiness(lruvec, sc); | ||
@@ -5178,7 +5161,7 @@ static void lru_gen_shrink_lruvec(struct | ||
@@ -5177,7 +5160,7 @@ static void lru_gen_shrink_lruvec(struct | ||
swappiness = 0; | ||
|
||
nr_to_scan = get_nr_to_scan(lruvec, sc, swappiness); | ||
|
@@ -484,7 +484,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
break; | ||
|
||
delta = evict_folios(lruvec, sc, swappiness); | ||
@@ -5195,10 +5178,251 @@ static void lru_gen_shrink_lruvec(struct | ||
@@ -5194,10 +5177,251 @@ static void lru_gen_shrink_lruvec(struct | ||
cond_resched(); | ||
} | ||
|
||
|
@@ -736,7 +736,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
|
||
/****************************************************************************** | ||
* state change | ||
@@ -5656,11 +5880,11 @@ static int run_cmd(char cmd, int memcg_i | ||
@@ -5655,11 +5879,11 @@ static int run_cmd(char cmd, int memcg_i | ||
|
||
if (!mem_cgroup_disabled()) { | ||
rcu_read_lock(); | ||
|
@@ -751,7 +751,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
rcu_read_unlock(); | ||
|
||
if (!memcg) | ||
@@ -5808,6 +6032,19 @@ void lru_gen_init_lruvec(struct lruvec * | ||
@@ -5807,6 +6031,19 @@ void lru_gen_init_lruvec(struct lruvec * | ||
} | ||
|
||
#ifdef CONFIG_MEMCG | ||
|
@@ -771,7 +771,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
void lru_gen_init_memcg(struct mem_cgroup *memcg) | ||
{ | ||
INIT_LIST_HEAD(&memcg->mm_list.fifo); | ||
@@ -5831,7 +6068,69 @@ void lru_gen_exit_memcg(struct mem_cgrou | ||
@@ -5830,7 +6067,69 @@ void lru_gen_exit_memcg(struct mem_cgrou | ||
} | ||
} | ||
} | ||
|
@@ -842,7 +842,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
|
||
static int __init init_lru_gen(void) | ||
{ | ||
@@ -5858,6 +6157,10 @@ static void lru_gen_shrink_lruvec(struct | ||
@@ -5857,6 +6156,10 @@ static void lru_gen_shrink_lruvec(struct | ||
{ | ||
} | ||
|
||
|
@@ -853,7 +853,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
#endif /* CONFIG_LRU_GEN */ | ||
|
||
static void shrink_lruvec(struct lruvec *lruvec, struct scan_control *sc) | ||
@@ -5871,7 +6174,7 @@ static void shrink_lruvec(struct lruvec | ||
@@ -5870,7 +6173,7 @@ static void shrink_lruvec(struct lruvec | ||
bool proportional_reclaim; | ||
struct blk_plug plug; | ||
|
||
|
@@ -862,7 +862,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
lru_gen_shrink_lruvec(lruvec, sc); | ||
return; | ||
} | ||
@@ -6114,6 +6417,11 @@ static void shrink_node(pg_data_t *pgdat | ||
@@ -6113,6 +6416,11 @@ static void shrink_node(pg_data_t *pgdat | ||
struct lruvec *target_lruvec; | ||
bool reclaimable = false; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,7 +113,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
*/ | ||
return isolated || !remaining ? scanned : 0; | ||
} | ||
@@ -5119,8 +5115,7 @@ static long get_nr_to_scan(struct lruvec | ||
@@ -5118,8 +5114,7 @@ static long get_nr_to_scan(struct lruvec | ||
struct mem_cgroup *memcg = lruvec_memcg(lruvec); | ||
DEFINE_MAX_SEQ(lruvec); | ||
|
||
|
@@ -123,7 +123,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
return 0; | ||
|
||
if (!should_run_aging(lruvec, max_seq, sc, can_swap, &nr_to_scan)) | ||
@@ -5148,17 +5143,14 @@ static bool try_to_shrink_lruvec(struct | ||
@@ -5147,17 +5142,14 @@ static bool try_to_shrink_lruvec(struct | ||
long nr_to_scan; | ||
unsigned long scanned = 0; | ||
unsigned long nr_to_reclaim = get_nr_to_reclaim(sc); | ||
|
@@ -146,7 +146,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
|
||
nr_to_scan = get_nr_to_scan(lruvec, sc, swappiness); | ||
if (nr_to_scan <= 0) | ||
@@ -5289,12 +5281,13 @@ static void lru_gen_shrink_lruvec(struct | ||
@@ -5288,12 +5280,13 @@ static void lru_gen_shrink_lruvec(struct | ||
struct blk_plug plug; | ||
|
||
VM_WARN_ON_ONCE(global_reclaim(sc)); | ||
|
@@ -161,7 +161,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
|
||
if (try_to_shrink_lruvec(lruvec, sc)) | ||
lru_gen_rotate_memcg(lruvec, MEMCG_LRU_YOUNG); | ||
@@ -5350,11 +5343,19 @@ static void lru_gen_shrink_node(struct p | ||
@@ -5349,11 +5342,19 @@ static void lru_gen_shrink_node(struct p | ||
|
||
VM_WARN_ON_ONCE(!global_reclaim(sc)); | ||
|
||
|
@@ -182,7 +182,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
|
||
set_initial_priority(pgdat, sc); | ||
|
||
@@ -5372,7 +5373,7 @@ static void lru_gen_shrink_node(struct p | ||
@@ -5371,7 +5372,7 @@ static void lru_gen_shrink_node(struct p | ||
clear_mm_walk(); | ||
|
||
blk_finish_plug(&plug); | ||
|
@@ -191,7 +191,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
/* kswapd should never fail */ | ||
pgdat->kswapd_failures = 0; | ||
} | ||
@@ -5944,7 +5945,7 @@ static ssize_t lru_gen_seq_write(struct | ||
@@ -5943,7 +5944,7 @@ static ssize_t lru_gen_seq_write(struct | ||
set_task_reclaim_state(current, &sc.reclaim_state); | ||
flags = memalloc_noreclaim_save(); | ||
blk_start_plug(&plug); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
|
||
--- a/mm/vmscan.c | ||
+++ b/mm/vmscan.c | ||
@@ -5218,18 +5218,20 @@ static int shrink_one(struct lruvec *lru | ||
@@ -5217,18 +5217,20 @@ static int shrink_one(struct lruvec *lru | ||
|
||
static void shrink_many(struct pglist_data *pgdat, struct scan_control *sc) | ||
{ | ||
|
@@ -52,7 +52,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
gen = get_memcg_gen(READ_ONCE(pgdat->memcg_lru.seq)); | ||
|
||
rcu_read_lock(); | ||
@@ -5253,14 +5255,22 @@ restart: | ||
@@ -5252,14 +5254,22 @@ restart: | ||
|
||
op = shrink_one(lruvec, sc); | ||
|
||
|
@@ -78,7 +78,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
/* restart if raced with lru_gen_rotate_memcg() */ | ||
if (gen != get_nulls_value(pos)) | ||
goto restart; | ||
@@ -5269,11 +5279,6 @@ restart: | ||
@@ -5268,11 +5278,6 @@ restart: | ||
bin = get_memcg_bin(bin + 1); | ||
if (bin != first_bin) | ||
goto restart; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,7 +87,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
mark_page_accessed(page); | ||
} | ||
rss[mm_counter(page)]--; | ||
@@ -5219,8 +5218,8 @@ static inline void mm_account_fault(stru | ||
@@ -5235,8 +5234,8 @@ static inline void mm_account_fault(stru | ||
#ifdef CONFIG_LRU_GEN | ||
static void lru_gen_enter_fault(struct vm_area_struct *vma) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,7 +303,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
* the eviction | ||
******************************************************************************/ | ||
|
||
@@ -5398,53 +5540,6 @@ done: | ||
@@ -5397,53 +5539,6 @@ done: | ||
pgdat->kswapd_failures = 0; | ||
} | ||
|
||
|
@@ -357,7 +357,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
/****************************************************************************** | ||
* state change | ||
******************************************************************************/ | ||
@@ -6090,67 +6185,6 @@ void lru_gen_exit_memcg(struct mem_cgrou | ||
@@ -6089,67 +6184,6 @@ void lru_gen_exit_memcg(struct mem_cgrou | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ Signed-off-by: T.J. Mercier <[email protected]> | |
|
||
--- a/mm/vmscan.c | ||
+++ b/mm/vmscan.c | ||
@@ -6172,12 +6172,17 @@ void lru_gen_exit_memcg(struct mem_cgrou | ||
@@ -6171,12 +6171,17 @@ void lru_gen_exit_memcg(struct mem_cgrou | ||
int i; | ||
int nid; | ||
|
||
|
Oops, something went wrong.