Skip to content

RM 6661: Revert "RM 6641: Temporary implementation of dma_alloc_coherent() on STM32H7 SOM"#3

Merged
vladimirkhusainov-emcraft merged 1 commit intov5.15-stm32mpfrom
rm6661-revert-dma-workaround
Jun 7, 2023
Merged

RM 6661: Revert "RM 6641: Temporary implementation of dma_alloc_coherent() on STM32H7 SOM"#3
vladimirkhusainov-emcraft merged 1 commit intov5.15-stm32mpfrom
rm6661-revert-dma-workaround

Conversation

@av-dyachenko
Copy link
Collaborator

@av-dyachenko av-dyachenko commented Jun 6, 2023

Design

This hack is not required as soon as the appropriate DMA memory pool is defined in the device tree:

        reserved-memory {
                ...
                /* The DMA memory pool is needed by Ethernet driver
                   to allocate buffer descriptors using the standard DMA API */
                dmapool@d0300000 {
                        compatible = "shared-dma-pool";
                        reg = <0xd0300000 0x100000>;
                        no-map;
                        linux,dma-default;
                };

Test

Refer to the U-Boot PR: https://gitlab.com/emcraft/STM32H7/u-boot-upstream/-/merge_requests/6

@vladimirkhusainov-emcraft vladimirkhusainov-emcraft merged commit 75b7979 into v5.15-stm32mp Jun 7, 2023
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.

2 participants