-
Notifications
You must be signed in to change notification settings - Fork 8k
Labels
area: DMADirect Memory AccessDirect Memory Accessbackport v3.7-branchRequest backport to the v3.7-branchRequest backport to the v3.7-branchbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugplatform: Renesas SmartBondRenesas Electronics Corporation, SmartBondRenesas Electronics Corporation, SmartBondpriority: lowLow impact/importance bugLow impact/importance bug
Milestone
Description
Describe the bug
DMA driver initialization fails when PM_DEVICE is set:
ASSERTION FAIL [cnt >= 1] @ WEST_TOPDIR/zephyr/subsys/pm/policy.c:319
Unbalanced state lock get/put
E: r0/a1: 0x00000004 r1/a2: 0x0000013f r2/a3: 0x20000950
E: r3/a4: 0x00000004 r12/ip: 0x00000001 r14/lr: 0x16002f1f
E: xpsr: 0x29000000
E: Faulting instruction address (r15/pc): 0x16009dc2
E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
E: Current thread: 0x20000950 (main)
E: Halting system
To Reproduce
west build -b da1469x_dk_pro -p always tests/drivers/dma/chan_blen_transfer
west flash
See dma driver assertion.
Expected behavior
*** Booting Zephyr OS build v4.0.0-rc1-274-g2b5ee0ca91e3 ***
Running TESTSUITE dma_m2m
===================================================================
START - test_tst_dma0_m2m_chan0_burst8
Preparing DMA Controller: Name=dma@50040800, Chan_ID=0, BURST_LEN=1
Starting the transfer
W: Error handling is not supported
DMA transfer done
It is harder to be kind than to be wise........
PASS - test_tst_dma0_m2m_chan0_burst8 in 2.016 seconds
===================================================================
START - test_tst_dma0_m2m_chan1_burst8
Preparing DMA Controller: Name=dma@50040800, Chan_ID=1, BURST_LEN=1
Starting the transfer
W: Error handling is not supported
DMA transfer done
It is harder to be kind than to be wise........
PASS - test_tst_dma0_m2m_chan1_burst8 in 2.016 seconds
===================================================================
TESTSUITE dma_m2m succeeded
------ TESTSUITE SUMMARY START ------
SUITE PASS - 100.00% [dma_m2m]: pass = 2, fail = 0, skip = 0, total = 2 duration = 4.032 seconds
- PASS - [dma_m2m.test_tst_dma0_m2m_chan0_burst8] duration = 2.016 seconds
- PASS - [dma_m2m.test_tst_dma0_m2m_chan1_burst8] duration = 2.016 seconds
------ TESTSUITE SUMMARY END ------
===================================================================
PROJECT EXECUTION SUCCESSFUL
Metadata
Metadata
Assignees
Labels
area: DMADirect Memory AccessDirect Memory Accessbackport v3.7-branchRequest backport to the v3.7-branchRequest backport to the v3.7-branchbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugplatform: Renesas SmartBondRenesas Electronics Corporation, SmartBondRenesas Electronics Corporation, SmartBondpriority: lowLow impact/importance bugLow impact/importance bug