Skip to content

[XRT-SMI] AIESW-28055 fix. xrt-smi examine --advanced should behave similar to xrt-smi examine#9718

Merged
stsoe merged 2 commits intoXilinx:masterfrom
aktondak:advance_bug
Apr 14, 2026
Merged

[XRT-SMI] AIESW-28055 fix. xrt-smi examine --advanced should behave similar to xrt-smi examine#9718
stsoe merged 2 commits intoXilinx:masterfrom
aktondak:advance_bug

Conversation

@aktondak
Copy link
Copy Markdown
Collaborator

@aktondak aktondak commented Apr 8, 2026

Problem solved by the commit

This PR fixes the behavior of xrt-smi examine --advanced command. Currently this command printed help as if the command usage was incorrect. This should be a valid command and should behave exactly how xrt-smi examine would behave.
This PR also fixes a speculative bug identified by claude where some smi APIs were changing the singleton object. This mutation of singleton objects should be under a lock guard so that no multiple threads can alter the singleton.

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

  1. https://jira.xilinx.com/browse/AIESW-29148
  2. https://jira.xilinx.com/browse/AIESW-28055

How problem was solved, alternative solutions (if any) and why they were rejected

Solved via removing the unnecessary if guard for XBU::getAdvance() when running xrt-smi examine

Risks (if any) associated the changes in the commit

None

What has been tested and how, request additional testing if necessary

Tested on windows platform.

Documentation impact (if any)

None

Signed-off-by: Akshay Tondak <Akshay.Tondak@amd.com>
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

Comment thread src/runtime_src/core/tools/common/SubCmdExamineInternal.cpp Outdated
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 9, 2026

clang-tidy review says "All clean, LGTM! 👍"

@stsoe stsoe merged commit cbac934 into Xilinx:master Apr 14, 2026
111 of 117 checks passed
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

Successfully merging this pull request may close these issues.

3 participants