Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-core Related Test Cases Hanging in ACS Test #406

Open
bitboom opened this issue Dec 6, 2024 · 0 comments
Open

Multi-core Related Test Cases Hanging in ACS Test #406

bitboom opened this issue Dec 6, 2024 · 0 comments

Comments

@bitboom
Copy link
Collaborator

bitboom commented Dec 6, 2024

The ACS Test hangs depending on the amount of logging.
This issue occurs only in the multi-core test case (cmd_multithread_realm_mp).

Steps to Reproduce:

  1. Use the current main code (commit).
  2. Insert the below code snippet.
  3. Run the test, and the system hangs.

Trigger hang

diff --git a/rmm/src/lib.rs b/rmm/src/lib.rs
--- a/rmm/src/lib.rs
+++ b/rmm/src/lib.rs
pub unsafe fn start(cpu_id: usize, layout: PlatformMemoryLayout) {
+    error!("Layout {:X?}", layout);
      setup_mmu_cfg(layout);

diff --git a/rmm/src/mm/translation.rs b/rmm/src/mm/translation.rs
--- a/rmm/src/mm/translation.rs
+++ b/rmm/src/mm/translation.rs

+use core::ptr::addr_of;
 pub fn get_page_table() -> u64 {
+    unsafe {
+        error!(
+            "HEAP {:X} {:X}",
+            addr_of!(crate::allocator::HEAP) as *const _ as *const usize as usize,
+            crate::config::RMM_HEAP_SIZE
+        );
+    };
     RMM_PAGE_TABLE.lock().get_base_address() as u64
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant