Skip to content

Added status support for gmio and ext buffers #8903

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

Merged
merged 5 commits into from
Apr 28, 2025

Conversation

bisingha-xilinx
Copy link
Collaborator

Problem solved by the commit

https://jira.xilinx.com/browse/CR-1210116.

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

Not a bug. It's a new feature for GMIO and external buffer usecases. It is a new member function of xrt::aie::buffer class which will get the status of the previously initiated async operation.

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

By adding a new member function to xrt::aie::buffer class

Risks (if any) associated the changes in the commit

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

Tested on vck190 and vek280 with GMIO and external buffer testcases

Documentation impact (if any)

status() of xrt::aie::buffer needs to be documented

Copy link

@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

Signed-off-by: bisingha <bikash.singha@amd.com>
Signed-off-by: bisingha <bikash.singha@amd.com>
Signed-off-by: bisingha <bikash.singha@amd.com>
Signed-off-by: bisingha <bikash.singha@amd.com>
Copy link

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

Copy link
Collaborator

@stsoe stsoe left a comment

Choose a reason for hiding this comment

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

Looks good. One suggestion about the aie_buffer_state enum, please reivew.
You are good on clang-tidy based on last commit and review.

Signed-off-by: bisingha <bikash.singha@amd.com>
Copy link

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

Copy link
Collaborator

@stsoe stsoe left a comment

Choose a reason for hiding this comment

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

My review is primarily around the exported end-user API and that is good. Thanks!

Copy link
Collaborator

@chvamshi-xilinx chvamshi-xilinx left a comment

Choose a reason for hiding this comment

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

Have reviewed the core logic. It looks good.

@chvamshi-xilinx chvamshi-xilinx merged commit 7c3edf3 into Xilinx:master Apr 28, 2025
24 checks passed
bisingha-xilinx added a commit to bisingha-xilinx/XRT that referenced this pull request Apr 28, 2025
* Added status support for gmio and ext buffers

Signed-off-by: bisingha <bikash.singha@amd.com>

* Added check to avoid getting status before async

Signed-off-by: bisingha <bikash.singha@amd.com>

* Added headers and renamed the status() func of xrt::aie::buffer

Signed-off-by: bisingha <bikash.singha@amd.com>

* Added enum class state for aie buffer object

Signed-off-by: bisingha <bikash.singha@amd.com>

* Moved buffer_state to device class

Signed-off-by: bisingha <bikash.singha@amd.com>

---------

Signed-off-by: bisingha <bikash.singha@amd.com>
(cherry picked from commit 7c3edf3)
chvamshi-xilinx pushed a commit that referenced this pull request Apr 28, 2025
* Added status support for gmio and ext buffers



* Added check to avoid getting status before async



* Added headers and renamed the status() func of xrt::aie::buffer



* Added enum class state for aie buffer object



* Moved buffer_state to device class



---------


(cherry picked from commit 7c3edf3)

Signed-off-by: bisingha <bikash.singha@amd.com>
@bisingha-xilinx bisingha-xilinx deleted the gmio-extbuf-status branch April 29, 2025 08:58
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