-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
stm32 uart/spi/adc: support DMA when CONFIG_MEM_ATTR=n #87757
base: main
Are you sure you want to change the base?
stm32 uart/spi/adc: support DMA when CONFIG_MEM_ATTR=n #87757
Conversation
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.
@etienne-lms @erwango Another idea, let's just guard the cache management code that uses mem attributes with CONFIG_MEM_ATTR
, and make it possible to use DMA with DCache but without mem attributes. Nocache region can still be used via CONFIG_NOCACHE_MEMORY
for example.
Right, good idea. I'll update accordingly. |
58ff230
to
a95247a
Compare
Allow STM32 UART driver to operate with DMA support even when CONFIG_MEM_ATTR is disabled which happen when CONFIG_ARM_MPU is intentionally disabled despite the CPU supports MPU. By the way, remove some #ifdef directive on header files inclusion that add noise in the header file inclusion section without any benefit. Signed-off-by: Etienne Carriere <[email protected]>
Allow STM32 SPI driver to operate with DMA support even when CONFIG_MEM_ATTR is disabled which happen when CONFIG_ARM_MPU is intentionally disabled despite the CPU supports MPU. By the way, remove some #ifdef directive on header files inclusion that add noise in the header file inclusion section without any benefit. Signed-off-by: Etienne Carriere <[email protected]>
Allow STM32 ADC driver to operate with DMA support even when CONFIG_MEM_ATTR is disabled which happen when CONFIG_ARM_MPU is intentionally disabled despite the CPU supports MPU. By the way, remove some #ifdef directive on header files inclusion that add noise in the header file inclusion section without any benefit. Also remove inclusion of zephyr/arch/cache.h that is not needed at all. Signed-off-by: Etienne Carriere <[email protected]>
Allow STM32 I2C driver v2 to operate with DMA support even when CONFIG_MEM_ATTR is disabled which happen when CONFIG_ARM_MPU is intentionally disabled despite the CPU supports MPU. By the way, remove a #ifdef directive on header files inclusion that adds noise in the header file inclusion section without any benefit. Signed-off-by: Etienne Carriere <[email protected]>
a95247a
to
f17d841
Compare
Rebased (to fix merge conflict). |
Explicit that some configurations of the STM32 ADC, SPI and UART drivers requireCONFIG_MEM_ATTR=y
.(edited)
Allow STM32 SPI/ADC/UART/I2C drivers to operate with DMA support even when
CONFIG_MEM_ATTR
is disabled which happen whenCONFIG_ARM_MPU
is intentionally disabled despite the CPU supports MPU.By the way, remove some #ifdef directive on header files inclusion that add noise in the header file inclusion section without any benefit.
These changes do not fix existing issues but are proposed to prevent later issues, as mentioned in #87681 (comment).