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

acrn-board-inspector fails when no DMAR table is present #8562

Open
tklengyel opened this issue Feb 28, 2024 · 0 comments
Open

acrn-board-inspector fails when no DMAR table is present #8562

tklengyel opened this issue Feb 28, 2024 · 0 comments
Labels
status: new The issue status: new for creation

Comments

@tklengyel
Copy link

Describe the bug
Running acrn-board-inspector in the Simics Public release fails due to no DMAR ACPI table being present.

Platform
Simics Public Release QSP-x86-CPU.

Codebase
Latest git master branch (925e3d9)

Scenario
N/A

To Reproduce
Install Ubuntu in Simics, install acrn-board-inspector, run. All according to the getting started guide.

Expected behavior
Generating the board xml.

Additional context

 10%|█         | 10/100 [00:01<00:11,  7.61it/s]Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/acrn_board_inspector/legacy/board_parser.py", line 110, in <module>
    acpi.generate_info(BOARD_INFO)
  File "/usr/lib/python3/dist-packages/acrn_board_inspector/legacy/acpi.py", line 655, in generate_info
    gen_acpi_info(config)
  File "/usr/lib/python3/dist-packages/acrn_board_inspector/legacy/acpi.py", line 625, in gen_acpi_info
    dmar.write_dmar_data(SYS_PATH[1] + 'DMAR', config)
  File "/usr/lib/python3/dist-packages/acrn_board_inspector/legacy/dmar.py", line 359, in write_dmar_data
    (dmar_tbl, dmar_hw_list, dmar_dev_list, drhd_cnt) = walk_dmar_table(
  File "/usr/lib/python3/dist-packages/acrn_board_inspector/legacy/dmar.py", line 308, in walk_dmar_table
    data = open(sysnode, 'rb').read()
FileNotFoundError: [Errno 2] No such file or directory: '/sys/firmware/acpi/tables/DMAR'
2024-02-27 23:52:18-root-CRITICAL:-Command '['/usr/bin/python3', '/usr/lib/python3/dist-packages/acrn_board_inspector/legacy/board_parser.py', 'simics_pub', '--out', 'simics_pub.xml']' returned non-zero exit status 1.
 10%|█         | 10/100 [00:01<00:15,  5.67it/s]

There really is no DMAR table there, so the board-inspector should handle this scenario gracefully.

@tklengyel tklengyel added the status: new The issue status: new for creation label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: new The issue status: new for creation
Projects
None yet
Development

No branches or pull requests

1 participant