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

DRM_IOCTL_XOCL_INFO_BO returns wrong size #8014

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

ManojTakasi
Copy link
Collaborator

Problem solved by the commit

CR-1176062 xocl_info_bo_ioctl function returns the aligned size of bo to the user instead of original size.

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

When we export a usrptrBO where the size is not multiple of 4K, the imported buffer gets the aligned size of BO from get_properties(). This is invalid for userptr.

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

Added variable to store the actual buffer size in xobj

Risks (if any) associated the changes in the commit

NA

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

Teseted on u250.

Documentation impact (if any)

NA

@chvamshi-xilinx chvamshi-xilinx merged commit 8d0cdb9 into Xilinx:master Mar 16, 2024
19 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