-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add support for page size > max prefetch cmd size for interleaved buffers #17677
base: main
Are you sure you want to change the base?
Conversation
9ea6615
to
adb30f7
Compare
1a338a7
to
1110f4b
Compare
555056f
to
7d0af92
Compare
const uint32_t pcie_alignment = hal.get_alignment(HalMemType::HOST); | ||
uint32_t mem_alignment = 0; | ||
if (buffer.is_dram()) { | ||
mem_alignment = hal.get_alignment(HalMemType::DRAM); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beyond the scope of this change, but buffer should return the hal memory type of the buffer to avoid mess like this
TT_ASSERT(buffer.is_l1()); | ||
mem_alignment = hal.get_alignment(HalMemType::L1); | ||
} | ||
while (partial_page_size % pcie_alignment != 0 || partial_page_size % mem_alignment != 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be calculated explicitly not in a loop. hal could be improved to generate "max_alignment" during init so this doesn't have to get re-calculated
7d0af92
to
9e7d015
Compare
#16861
This PR adds support for interleaved buffers to have page sizes which are greater than the max prefetch command size.
Checklist