Skip to content

Conversation

@hlaccabu
Copy link
Contributor

@hlaccabu hlaccabu commented Dec 3, 2025

No description provided.

@hlaccabu hlaccabu requested a review from xdavidz December 3, 2025 21:22
Copilot AI review requested due to automatic review settings December 3, 2025 21:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends AIE4 support in the shim test suite by introducing a new debug buffer type (XRT_BO_USE_UC_DEBUG) and broadening test coverage from AIE2-specific to general AIE platform support. The changes enable debug buffer operations to work correctly on AIE4 devices while maintaining backward compatibility with AIE2.

  • Introduced XRT_BO_USE_UC_DEBUG buffer type for AIE4 debug operations
  • Extended test coverage from AIE2-only to all AIE platforms for several test cases
  • Updated buffer creation logic to conditionally use appropriate debug flags based on device type

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/shim_test/shim_test.cpp Conditionally selects debug buffer flags based on AIE4 detection and broadens test filters from AIE2-specific to general AIE support
src/shim/buffer.cpp Adds mapping for new XRT_BO_USE_UC_DEBUG buffer type to firmware debug buffer type

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@xdavidz xdavidz left a comment

Choose a reason for hiding this comment

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

With this, can we get a pass when run "shim_test" without any index number?

Copilot AI review requested due to automatic review settings January 6, 2026 00:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@amd amd deleted a comment from Copilot AI Jan 6, 2026
Copilot AI review requested due to automatic review settings January 6, 2026 23:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hlaccabu
Copy link
Contributor Author

hlaccabu commented Jan 6, 2026

With this, can we get a pass when run "shim_test" without any index number?

Currently yes, but there are a few more tests that I think I can enable with minimal changes before we merge.

Copilot AI review requested due to automatic review settings January 7, 2026 23:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hlaccabu
Copy link
Contributor Author

hlaccabu commented Jan 7, 2026

With this, can we get a pass when run "shim_test" without any index number?

Yes to this question on silicon, 38 tests passing.
{9E76890B-021C-4451-BAEA-550369D53810}

@hlaccabu
Copy link
Contributor Author

hlaccabu commented Jan 8, 2026

retest this please

Copilot AI review requested due to automatic review settings January 8, 2026 19:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 9, 2026 03:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@amd amd deleted a comment from Copilot AI Jan 9, 2026
@hlaccabu hlaccabu requested a review from maxzhen January 9, 2026 04:03
@xdavidz
Copy link
Contributor

xdavidz commented Jan 12, 2026

With this, can we get a pass when run "shim_test" without any index number?

Currently yes, but there are a few more tests that I think I can enable with minimal changes before we merge.

We should enable all shim_test and just run shim_test without any args.

Are there any shim_test that we decide to run for aie2 only? If not many, we should enable all possible shim_test for aie4.

@hlaccabu
Copy link
Contributor Author

hlaccabu commented Jan 12, 2026

We should enable all shim_test and just run shim_test without any args.

Are there any shim_test that we decide to run for aie2 only? If not many, we should enable all possible shim_test for aie4.

Yes with this PR we can pass 38 shim tests on aie4 by running "./shim_test.elf" without any arguments, the rest are skipped. There are a few tests that will stay as aie2 only, more will be enabled for aie4 after this PR but I did not want to do every change all in one PR that would be too large.


// Cache for command buffer headers (firmware corrupts them)
// Key: BO handle, Value: cached header word
std::map<uint32_t, uint32_t> m_cmd_header_cache;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This may not work well. The exec buf can be reused by different applications...

Copilot AI review requested due to automatic review settings January 13, 2026 22:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

hwq->wait_command(cbo->get(), 0);
auto cmd_hdl = cbo->get();
auto cmd_pkt = reinterpret_cast<ert_start_kernel_cmd *>(cbo->map());

Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

Blank line with only whitespace. Remove trailing whitespace for consistency with coding standards.

Suggested change

Copilot uses AI. Check for mistakes.
auto cbo = m_bo_array[IO_TEST_BO_CMD].tbo.get();
auto chdl = cbo->get();
auto cpkt = reinterpret_cast<ert_start_kernel_cmd *>(cbo->map());

Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

Blank line with only whitespace. Remove trailing whitespace for consistency with coding standards.

Suggested change

Copilot uses AI. Check for mistakes.
}
return 0;
}

Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

Blank line with only whitespace. Remove trailing whitespace for consistency with coding standards.

Suggested change

Copilot uses AI. Check for mistakes.
@hlaccabu hlaccabu requested a review from maxzhen January 13, 2026 22:33
Signed-off-by: Hayden Laccabue <hlaccabu@amd.com>
Signed-off-by: Hayden Laccabue <hlaccabu@amd.com>
Signed-off-by: Hayden Laccabue <hlaccabu@amd.com>
Signed-off-by: Hayden Laccabue <hlaccabu@amd.com>
Copilot AI review requested due to automatic review settings January 14, 2026 22:45
@hlaccabu hlaccabu requested a review from maxzhen January 14, 2026 22:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@maxzhen
Copy link
Collaborator

maxzhen commented Jan 14, 2026

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

We successfully confused AI :-)

@maxzhen maxzhen merged commit cdfed79 into amd:main Jan 14, 2026
1 check passed
@hlaccabu hlaccabu deleted the shim branch January 15, 2026 00:17
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