cancel
Showing results for 
Search instead for 
Did you mean: 

OpenAMP_TTY_echo_wakeup examples don't work.

nlbutts
Associate II

I'm trying to test the low power modes (I don't care about the current at this point). I start the

Next I run this:

cd /usr/local/Cube-M4-examples/STM32MP157C-DK2/Applications/OpenAMP/OpenAMP_TTY_echo_wakeup
fw_cortex_m4.sh start
echo enabled > /sys/devices/platform/soc/4c001000.mailbox/power/wakeup
echo "*delay" >/dev/ttyRPMSG0
systemctl suspend

The CPU never goes into CStop mode. DMESG reports the following:

[ 4665.621976] unbind driver hci_uart
[ 4665.884144] PM: suspend entry (deep)
[ 4665.900196] Filesystems sync: 0.013 seconds
[ 4665.905556] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 4665.913002] OOM killer disabled.
[ 4665.915975] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 4665.923519] printk: Suspending console(s) (use no_console_suspend to debug)
[ 4665.933455] dwc2 49000000.usb-otg: suspending usb gadget configfs-gadget
[ 4666.063929] stm32-dwmac 5800a000.ethernet eth0: Link is Down
[ 4666.065574] stm32-dwmac 5800a000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 4666.065652] stm32-dwmac 5800a000.ethernet eth0: Link is Down
[ 4666.071261] stm32-dma 48001000.dma-controller: Suspend is prevented by Chan 1
[ 4666.071292] PM: dpm_run_callback(): platform_pm_suspend+0x0/0x48 returns -16
[ 4666.071304] PM: Device 48001000.dma-controller failed to suspend: error -16
[ 4666.071316] PM: Some devices failed to suspend, or early wake event detected
[ 4666.072871] stm32-dwmac 5800a000.ethernet eth0: configuring for phy/rgmii-id link mode
[ 4666.081211] dwmac4: Master AXI performs any burst length
[ 4666.081247] stm32-dwmac 5800a000.ethernet eth0: No Safety Features support found
[ 4666.085750] dwc2 49000000.usb-otg: resuming usb gadget configfs-gadget
[ 4666.138055] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 4666.139515] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 4666.140967] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 4666.143633] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 4666.145089] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 4666.147405] mmc1: queuing unknown CIS tuple 0x80 (6 bytes)
[ 4666.235444] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 4666.391516] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 4666.431521] usb 2-1: reset high-speed USB device number 2 using ehci-platform
[ 4666.461515] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Feb 16 2020 22:39:24 version 7.45.98.97 (r724416 CY) FWID 01-bf41ed64
[ 4666.903526] OOM killer enabled.
[ 4666.906582] Restarting tasks ... done.
[ 4666.952002] PM: suspend exit
[ 4667.162895] bind driver hci_uart
[ 4667.189618] Bluetooth: HCI UART driver ver 2.3
[ 4667.192704] Bluetooth: HCI UART protocol H4 registered
[ 4667.198263] Bluetooth: HCI UART protocol Broadcom registered
[ 4667.562224] Bluetooth: hci0: BCM: chip id 94
[ 4667.565518] Bluetooth: hci0: BCM: features 0x2e
[ 4667.570857] Bluetooth: hci0: BCM43430A1
[ 4667.573543] Bluetooth: hci0: BCM43430A1 (001.002.009) build 0000
[ 4667.579687] Bluetooth: hci0: BCM43430A1 'brcm/BCM43430A1.hcd' Patch
[ 4668.193368] Bluetooth: hci0: BCM4343WA1 37.4MHz Murata Type-1DX BT4.2-0093
[ 4668.198817] Bluetooth: hci0: BCM43430A1 (001.002.009) build 0395
[ 4670.205363] stm32-dwmac 5800a000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx

Any ideas how to get th eDMA controller from preventing the A7 from going into CStop mode?

1 REPLY 1
Olivier GALLIEN
ST Employee

Hi @nlbutts​ ,

It seems you forgot to select the right Linux boot mode :

Select the boot mode                                                                           
 1:   OpenSTLinux                                                                            
 2:   stm32mp157f-ev1-a7-examples                                                                    
 3:   stm32mp157f-ev1-m4-examples  

Take care to select choice "3 stm32mp157f-ev1-m4-examples", else resource are not properly assigned to each core to support the use case.

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.