Skip to contentSkip to conversation

memblock-check-memory-total_size.patch removed from -mm tree

merged [email protected] 1 participant 1 message Oct 19, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: memblock: check memory total_size
has been removed from the -mm tree. Its filename was
memblock-check-memory-total_size.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Peng Fan <[email protected]>
Subject: memblock: check memory total_size

mem=[X][G|M] is broken on ARM64 platform, there are cases that even type.cnt is 1, but total_size is not 0 because regions are merged into 1. So only check 'cnt' is not enough, total_size should be used, othersize bootargs 'mem=[X][G|B]' not work anymore.

Fixes e888fa7bb882 ("memblock: Check memory add/cap ordering")
Cc Geert Uytterhoeven <[email protected]>
Cc David Hildenbrand <[email protected]>

---

 mm/memblock.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memblock.c renamed from mm/memblock.c~memblock-check-memory-total_size +1 -1
@@ -1692,7 +1692,7 @@ void __init memblock_cap_memory_range(ph
 	if (!size)
 		return;
 
-	if (memblock.memory.cnt <= 1) {
+	if (!memblock_memory->total_size) {
 		pr_warn("%s: No memory registered yet\n", __func__);
 		return;
 	}

_

Patches currently in -mm which might be from [email protected] are