-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Mcux lpuart async fixes #79325
Mcux lpuart async fixes #79325
Conversation
@EmilioCBen please help to review, this is a hidden issue after your fixes. Thanks. test on mimxrt1170_evk/*/cm7
|
4d3f246
to
7152b13
Compare
1. optimized the logic for buffer usage in async api 2. skip timeout flush when the remaining counts is 0, as this will trigger dma_callback to process. 3. remove scatter mode, as we are not using this mode 4. trigger after dma_reload. Signed-off-by: Hake Huang <[email protected]>
7152b13
to
882e865
Compare
1. ensure the two dma buffers all aligned with 32 bits 2. clean the rx_data_idx at test begin Signed-off-by: Hake Huang <[email protected]>
5b78770
to
0e89fb7
Compare
@mmahadevan108 , @EmilioCBen, @danieldegrasse can you help to review and kindly approve. Thanks |
/* To ensure 32-bit alignment of the buffer array, | ||
* the two arrays are defined instead using an array of arrays | ||
*/ | ||
static __aligned(32) uint8_t chained_read_buf_0[8] __used __NOCACHE; |
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.
I have a question that's unrelated to your changes, does __used
have any utility here?
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.
@JarmouniA , __used is to force compiler to emit symbol, but I do not know whether it is a must in Zephyr, so I copy the line headless.
uart_async_api for NXP RT11xx series async testing failure, and after check the uart_mcux_lpuart.c, there are several issues found.
and the uart_async_api test need also some change to fit in DMA context.
fixes: #79323