Skip to content
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

Removes block size limitation from dma config on ESP32 SoCs #82819

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wmrsouza
Copy link
Collaborator

@wmrsouza wmrsouza commented Dec 10, 2024

dma_esp32_config_tx_descriptor() and dma_esp32_config_rx_descriptor() fail is block->block_size is greater than DMA_DESCRIPTOR_BUFFER_MAX_SIZE.
This PR removes block size limitation by consuming them in several descriptors when necessary.
It also replaces dma_esp32_config_tx_descriptor() and dma_esp32_config_rx_descriptor() by single dma_esp32_config_descriptor() that attends both directions.

@wmrsouza
Copy link
Collaborator Author

@epc-ake PTAL

@wmrsouza wmrsouza force-pushed the improvement/dma_esp32_gdma branch 2 times, most recently from 5785bac to 33ecf89 Compare December 10, 2024 21:02
@wmrsouza wmrsouza changed the title drivers: dma: esp32: remove block size limitation from dma config Removes block size limitation from dma config on ESP32 SoCs Dec 10, 2024
@wmrsouza wmrsouza force-pushed the improvement/dma_esp32_gdma branch 2 times, most recently from e3434e4 to f7572c4 Compare December 17, 2024 15:34
@wmrsouza wmrsouza force-pushed the improvement/dma_esp32_gdma branch from f7572c4 to 4b73385 Compare December 17, 2024 21:41
@wmrsouza wmrsouza force-pushed the improvement/dma_esp32_gdma branch from 4b73385 to 04ac003 Compare January 8, 2025 19:30
Removes block size limitation during dma rx/tx configuration

Signed-off-by: Marcio Ribeiro <[email protected]>
Removes block size limitation during dma rx/tx configuration

Signed-off-by: Marcio Ribeiro <[email protected]>
@wmrsouza wmrsouza force-pushed the improvement/dma_esp32_gdma branch from 04ac003 to 0a7c852 Compare January 11, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants