Skip to content

Commit 82bace6

Browse files
FRASTMcarlescufi
authored andcommitted
tests: drivers: dma test on stm32f7 requires nocache memory
Config the sram0 to be non-cachable to PASS the DMA testcases chan_blen_transfer and loop_transfer on the stm32f746zg and stm32f767zi nucleo boards. The CONFIG_NOCACHE_MEMORY is useless as the memory region gets the NOCACHE ATTRibutes for stm32H7 or stm32F7 as well. Signed-off-by: Francois Ramu <[email protected]>
1 parent 800edb2 commit 82bace6

File tree

10 files changed

+22
-9
lines changed

10 files changed

+22
-9
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
CONFIG_DMA_TRANSFER_CHANNEL_NR_0=0
22
CONFIG_DMA_TRANSFER_CHANNEL_NR_1=1
3-
CONFIG_NOCACHE_MEMORY=y

tests/drivers/dma/chan_blen_transfer/boards/nucleo_f746zg.overlay

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@
55
*/
66

77
test_dma0: &dma2 { };
8+
9+
/* The test driver expects the SRAM0 region to be non-cachable */
10+
&sram0 {
11+
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE) )>;
12+
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_DMA_TRANSFER_CHANNEL_NR_0=0
2+
CONFIG_DMA_TRANSFER_CHANNEL_NR_1=1

tests/drivers/dma/chan_blen_transfer/boards/nucleo_f767zi.overlay

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@
1111
test_dma0: &dma2 {
1212
status = "okay";
1313
};
14+
15+
/* The test driver expects the SRAM0 region to be non-cachable */
16+
&sram0 {
17+
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE) )>;
18+
};

tests/drivers/dma/chan_blen_transfer/boards/nucleo_h743zi.conf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,3 @@ CONFIG_DMA_LOOP_TRANSFER_NUMBER_OF_DMAS=2
77
# has access to this section.
88
CONFIG_CODE_DATA_RELOCATION=y
99
CONFIG_DMA_LOOP_TRANSFER_RELOCATE_SECTION="SRAM4"
10-
11-
# Required for SRAM4 to be non-cachable
12-
CONFIG_NOCACHE_MEMORY=y
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
CONFIG_NOCACHE_MEMORY=y
21
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=0

tests/drivers/dma/loop_transfer/boards/nucleo_f746zg.overlay

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@
55
*/
66

77
test_dma0: &dma2 { };
8+
9+
/* The test driver expects the SRAM0 region to be non-cachable */
10+
&sram0 {
11+
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE) )>;
12+
};
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
CONFIG_NOCACHE_MEMORY=y
21
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=0

tests/drivers/dma/loop_transfer/boards/nucleo_f767zi.overlay

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@
1111
test_dma0: &dma2 {
1212
status = "okay";
1313
};
14+
15+
/* The test driver expects the SRAM0 region to be non-cachable */
16+
&sram0 {
17+
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE) )>;
18+
};

tests/drivers/dma/loop_transfer/boards/nucleo_h743zi.conf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,3 @@ CONFIG_DMA_LOOP_TRANSFER_NUMBER_OF_DMAS=2
66
# has access to this section.
77
CONFIG_CODE_DATA_RELOCATION=y
88
CONFIG_DMA_LOOP_TRANSFER_RELOCATE_SECTION="SRAM4"
9-
10-
# Required for SRAM4 to be non-cachable
11-
CONFIG_NOCACHE_MEMORY=y

0 commit comments

Comments
 (0)