add patch to avoid meson64 random reboots under load (#3520)

patch source https://lore.kernel.org/linux-amlogic/1c71a7c1e58590811094ebdd0e1abc54@agner.ch/T/#t
This commit is contained in:
iav 2022-03-13 00:16:29 +02:00 committed by GitHub
parent 42617c23f8
commit 6fee4247f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,19 @@
diff -Naur a/drivers/of/fdt.c b/drivers/of/fdt.c
--- a/drivers/of/fdt.c 2022-01-27 05:05:44.000000000 -0500
+++ b/drivers/of/fdt.c 2022-01-27 11:30:37.610221700 -0500
@@ -480,15 +480,6 @@
phys_addr_t size, bool nomap)
{
if (nomap) {
- /*
- * If the memory is already reserved (by another region), we
- * should not allow it to be marked nomap, but don't worry
- * if the region isn't memory as it won't be mapped.
- */
- if (memblock_overlaps_region(&memblock.memory, base, size) &&
- memblock_is_region_reserved(base, size))
- return -EBUSY;
-
return memblock_mark_nomap(base, size);
}
return memblock_reserve(base, size);