all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 4f23598f6b80d2e5dd7ac5b2b449bfcce0293d99 1319 bytes (raw)
name: gnu/packages/patches/amlogic-0011-LOCAL-of-partial-revert-of-fdt.c-changes.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 
From 31cdc54e582baafbe8e2daf291c35b027081f01d Mon Sep 17 00:00:00 2001
From: Stefan Agner <stefan@agner.ch>
Date: Wed, 15 Sep 2021 05:00:45 +0000
Subject: [PATCH 11/73] LOCAL: of: partial revert of fdt.c changes

This resolves reports similar to the below which are present in dmesg
since Linux 5.10; which are also causing crashes in some distros:

[    0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'secmon@5000000': base 0x0000000005000000, size 3 MiB

Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
---
 drivers/of/fdt.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index 1c573e7a60bc..f9188a76500d 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -481,15 +481,6 @@ static int __init early_init_dt_reserve_memory(phys_addr_t base,
 					       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);
-- 
2.17.1


debug log:

solving 4f23598f6b ...
found 4f23598f6b in https://yhetil.org/guix/C2ORkCSHJz-4jxwCauZznk4tZlP9KS4u_3Ywe4q2QrfJ7tvIswRWw4vX6OuzXDIHRriNNTQaCiYC67GgL30p8g80J9OcduCgaoZ8XNf-amE=@protonmail.com/

applying [1/1] https://yhetil.org/guix/C2ORkCSHJz-4jxwCauZznk4tZlP9KS4u_3Ywe4q2QrfJ7tvIswRWw4vX6OuzXDIHRriNNTQaCiYC67GgL30p8g80J9OcduCgaoZ8XNf-amE=@protonmail.com/
diff --git a/gnu/packages/patches/amlogic-0011-LOCAL-of-partial-revert-of-fdt.c-changes.patch b/gnu/packages/patches/amlogic-0011-LOCAL-of-partial-revert-of-fdt.c-changes.patch
new file mode 100644
index 0000000000..4f23598f6b

1:27: space before tab in indent.
 					       phys_addr_t size, bool nomap)
1:29: space before tab in indent.
 	if (nomap) {
1:39: space before tab in indent.
 		return memblock_mark_nomap(base, size);
1:40: space before tab in indent.
 	}
1:41: space before tab in indent.
 	return memblock_reserve(base, size);
Checking patch gnu/packages/patches/amlogic-0011-LOCAL-of-partial-revert-of-fdt.c-changes.patch...
Applied patch gnu/packages/patches/amlogic-0011-LOCAL-of-partial-revert-of-fdt.c-changes.patch cleanly.
warning: squelched 2 whitespace errors
warning: 7 lines add whitespace errors.

index at:
100644 4f23598f6b80d2e5dd7ac5b2b449bfcce0293d99	gnu/packages/patches/amlogic-0011-LOCAL-of-partial-revert-of-fdt.c-changes.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.