Skip to content

drivers: mipi_dbi: stm32: move barriers outside of the loop #93584

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

Conversation

GeorgeCGV
Copy link
Contributor

@GeorgeCGV GeorgeCGV commented Jul 23, 2025

Relocate __DSB barriers outside the data write loops to improve efficiency.

Copy link
Contributor

@mathieuchopstm mathieuchopstm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you verified that this works on HW?

AFAICT, this is writing different datum to the same address several times in a row (I guess a FIFO of sorts?)... and I'm worried that not executing the barrier after each write could cause issues. (though, I guess the MMIO region is Device or even Strongly-ordered memory, so it might be fine)

@GeorgeCGV GeorgeCGV force-pushed the drivers/mipi_dbi/stm32/correct_barriers branch from c92a81a to 8b39686 Compare July 23, 2025 20:24
mathieuchopstm
mathieuchopstm previously approved these changes Jul 24, 2025
Copy link
Contributor

@mathieuchopstm mathieuchopstm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking:

@GeorgeCGV GeorgeCGV force-pushed the drivers/mipi_dbi/stm32/correct_barriers branch from 8b39686 to cfdb502 Compare July 29, 2025 17:14
Relocate __DSB barriers outside the data write
loops to improve efficiency.

Signed-off-by: Georgij Černyšiov <[email protected]>
@GeorgeCGV GeorgeCGV force-pushed the drivers/mipi_dbi/stm32/correct_barriers branch from cfdb502 to 5e048c0 Compare July 29, 2025 17:16
Copy link

@mathieuchopstm
Copy link
Contributor

@avolmat-st PTAL if possible

@kartben kartben merged commit 84349e8 into zephyrproject-rtos:main Aug 18, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants