platform: generic: check if CPU node is enabled
PATCH v2 3/3 platform: generic: check if CPU node is enabled
Ignore CPU nodes in FDT which are not enabled.
Signed-off-by Jan Remes <[email protected]>
--- platform/generic/platform.c | 3 +++ 1 file changed, 3 insertions(+)
platform/generic/platform.c +0 -0
@@ -107,6 +107,9 @@ unsigned long fw_platform_init(unsigned long arg0,
unsigned long arg1,
if (SBI_HARTMASK_MAX_BITS <= hartid)
continue;
+ if (!fdt_node_is_enabled(fdt, cpu_offset))
+ continue;
+
generic_hart_index2id[hart_count++] = hartid;
}Signature · 1 line
2.35.1
PATCH v2 3/3 platform: generic: check if CPU node is enabled
? 2022-05-09???? 15:56 +0200?Jan Reme????
Quoted 3 lines
Ignore CPU nodes in FDT which are not enabled.
Signed-off-by Jan Remes <[email protected]>
Look good to me
Reviewed-by Xiang W <[email protected]>
Quoted 22 lines
---
?platform/generic/platform.c | 3 +++
?1 file changed, 3 insertions(+)platform/generic/platform.c +3
-0@@ -107,6 +107,9 @@ unsigned long fw_platform_init(unsigned long arg0,unsigned long arg1, ???????? if (SBI_HARTMASK_MAX_BITS <= hartid) ???????????? continue; +??????? if (!fdt_node_is_enabled(fdt, cpu_offset)) +??????????? continue; + ???????? generic_hart_index2id[hart_count++] = hartid; ???? }Signature · 2 lines
-- 2.35.1
PATCH v2 3/3 platform: generic: check if CPU node is enabled
In reply to Jan RemešQuoted 4 lines · Jan Reme?
Ignore CPU nodes in FDT which are not enabled.
Signed-off-by Jan Remes <[email protected]>
Looks good to me.
Reviewed-by Anup Patel <[email protected]>
Regards,
Anup
Quoted 26 lines
--- platform/generic/platform.c | 3 +++ 1 file changed, 3 insertions(+)platform/generic/platform.c +3
-1@@ -107,6 +107,9 @@ unsigned long fw_platform_init(unsigned long arg0, unsigned long arg1, if (SBI_HARTMASK_MAX_BITS <= hartid) continue; +if (!fdt_node_is_enabled (fdt, cpu_offset)) +continue ; + generic_hart_index2id[hart_count++] = hartid; } --2.35.1
--
opensbi mailing list
opensbi at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi