You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for your amazing work! Your driver helps me a lot in the design of my system on an ultrascale+.
As you are an expert on the memory management, I was wondering if you knew the requirements to set up a reserved memory region that could be used by your driver. From my understanding, I though that they had to be aligned on 0x1000 (409 bytes).
However, when setting the reserved memory in my device tree like this:
The reserved memory for image_buf0 could not be created by the kernel (and therefore, the udma buffer could not be created). I also read that the size and start address should be of a power of 2. But image_buf1 does not have a size corresponding to a power of two...
Therefore, I am confused. Do you have any information on the requirements for start address and size?
Thanks
The text was updated successfully, but these errors were encountered:
The Linux CMA region has alignment constraints.
For MPSoC, the address and size that can be specified in the regs property of reserved-memory must be in units of 0x00400000 (4MiB).
Try change the size to 0x00800000 from 0x4C0000 as follows:
Dear @ikwzm,
First of all, thank you for your amazing work! Your driver helps me a lot in the design of my system on an ultrascale+.
As you are an expert on the memory management, I was wondering if you knew the requirements to set up a reserved memory region that could be used by your driver. From my understanding, I though that they had to be aligned on 0x1000 (409 bytes).
However, when setting the reserved memory in my device tree like this:
The reserved memory for image_buf0 could not be created by the kernel (and therefore, the udma buffer could not be created). I also read that the size and start address should be of a power of 2. But image_buf1 does not have a size corresponding to a power of two...
Therefore, I am confused. Do you have any information on the requirements for start address and size?
Thanks
The text was updated successfully, but these errors were encountered: