-
Notifications
You must be signed in to change notification settings - Fork 0
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
An error when creating a large buffer prevents the use of the same name for future buffers #1
Comments
Ok, it turns out that even though the name
This allows the name to be reused, if it's known ahead of time that it needs to be deleted first. May I suggest that if the buffer creation fails, the name is dropped (forgotten) by the mgr, rather than retained? That would make it easier for a user-space program to work with u-dma-buf-mgr, because it can use the state of |
Thank you for the issue. Your remarks are worth considering. |
This is a u-dma-buf issue and has been fixed at ikwzm/udmabuf#110. |
Thank you :) (I will test in due course) |
Thank you for this useful driver. It works well with u-dma-buf.
There seems to be some state stuck in the Manager after a buffer creation fails. This prevents future buffer creation with the same name.
For example, if I try to create a number of 64 MB buffers, on my system the fourth one fails (presumably due to lack of available contiguous space - it's a 4 GB embedded system):
The first three creations are OK. The fourth one is not. The Linux console displays the following in response to the fourth command:
There's no sysfs entry, confirming that the
udmabuf3
buffer was not created:However if the name
udmabuf3
is used again, even with a smaller buffer, it fails to create:I'm using u-dma-buf-mgr f1a9a01 on Linux 6.1.5-xilinx-v2023.1 aarch64.
The text was updated successfully, but these errors were encountered: