The node class contains a configure hugepages method to be called
on the DTS nodes if the user has specified a hugepages config value
in their nodes configurations. However, the commit referenced below
removed the code path to this function, making it unreachable. If
the user has configured hugepages already via kernel parameters
this is harmless, but if they haven't, this bug will cause the DTS
execution to fail. This patch adds a call to the hugepages
configuration method at node setup.

Fixes: d77a4a27bd24 ("dts: remove node distinction")

Signed-off-by: Patrick Robb <pr...@iol.unh.edu>
Reviewed-by: Luca Vizzarro <luca.vizza...@arm.com>
---
 dts/framework/testbed_model/node.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dts/framework/testbed_model/node.py 
b/dts/framework/testbed_model/node.py
index e6737cd173..7c5a35e0dd 100644
--- a/dts/framework/testbed_model/node.py
+++ b/dts/framework/testbed_model/node.py
@@ -76,6 +76,7 @@ def __init__(self, node_config: NodeConfiguration):
         self._logger = get_dts_logger(self.name)
         self.main_session = create_session(self.config, self.name, 
self._logger)
         self.arch = Architecture(self.main_session.get_arch_info())
+        self._setup_hugepages()
         self._logger.info(f"Connected to node: {self.name}")
         self._get_remote_cpus()
         self._other_sessions = []
-- 
2.49.0

Reply via email to