1sample: 2 name: Demonstrate usage of the PM policy latency APIs 3tests: 4 sample.pm.latency: 5 platform_allow: 6 - native_sim 7 integration_platforms: 8 - native_sim 9 tags: pm 10 harness: console 11 harness_config: 12 type: multi_line 13 regex: 14 - "<inf> app: Sleeping for 1.1 seconds, we should enter RUNTIME_IDLE" 15 - "<inf> soc_pm: Entering RUNTIME_IDLE{0}" 16 - "<inf> app: Sleeping for 1.2 seconds, we should enter SUSPEND_TO_IDLE" 17 - "<inf> soc_pm: Entering SUSPEND_TO_IDLE{0}" 18 - "<inf> app: Sleeping for 1.3 seconds, we should enter STANDBY" 19 - "<inf> soc_pm: Entering STANDBY{0}" 20 - "<inf> app: Setting latency constraint: 30ms" 21 - "<inf> app: Sleeping for 1.1 seconds, we should enter RUNTIME_IDLE" 22 - "<inf> soc_pm: Entering RUNTIME_IDLE{0}" 23 - "<inf> app: Sleeping for 1.2 seconds, we should enter SUSPEND_TO_IDLE" 24 - "<inf> soc_pm: Entering SUSPEND_TO_IDLE{0}" 25 - "<inf> app: Sleeping for 1.3 seconds, we should enter SUSPEND_TO_IDLE" 26 - "<inf> soc_pm: Entering SUSPEND_TO_IDLE{0}" 27 - "<inf> app: Opening test device" 28 - "<inf> dev_test: Adding latency constraint: 20ms" 29 - "<inf> app: Latency constraint changed: 20ms" 30 - "<inf> app: Sleeping for 1.1 seconds, we should enter RUNTIME_IDLE" 31 - "<inf> soc_pm: Entering RUNTIME_IDLE{0}" 32 - "<inf> app: Sleeping for 1.2 seconds, we should enter RUNTIME_IDLE" 33 - "<inf> soc_pm: Entering RUNTIME_IDLE{0}" 34 - "<inf> app: Sleeping for 1.3 seconds, we should enter RUNTIME_IDLE" 35 - "<inf> soc_pm: Entering RUNTIME_IDLE{0}" 36 - "<inf> app: Updating latency constraint: 10ms" 37 - "<inf> app: Latency constraint changed: 10ms" 38 - "<inf> dev_test: Latency constraint changed: 10ms" 39 - "<inf> app: Sleeping for 1.1 seconds, we should stay ACTIVE" 40 - "<inf> app: Sleeping for 1.2 seconds, we should stay ACTIVE" 41 - "<inf> app: Sleeping for 1.3 seconds, we should stay ACTIVE" 42 - "<inf> app: Updating latency constraint: 30ms" 43 - "<inf> app: Latency constraint changed: 20ms" 44 - "<inf> dev_test: Latency constraint changed: 20ms" 45 - "<inf> app: Closing test device" 46 - "<inf> dev_test: Removing latency constraint" 47 - "<inf> app: Latency constraint changed: 30ms" 48 - "<inf> dev_test: Latency constraint changed: 30ms" 49 - "<inf> app: Sleeping for 1.1 seconds, we should enter RUNTIME_IDLE" 50 - "<inf> soc_pm: Entering RUNTIME_IDLE{0}" 51 - "<inf> app: Sleeping for 1.2 seconds, we should enter SUSPEND_TO_IDLE" 52 - "<inf> soc_pm: Entering SUSPEND_TO_IDLE{0}" 53 - "<inf> app: Sleeping for 1.3 seconds, we should enter SUSPEND_TO_IDLE" 54 - "<inf> soc_pm: Entering SUSPEND_TO_IDLE{0}" 55 - "<inf> app: Removing latency constraint" 56 - "<inf> app: Latency constraint changed: none" 57 - "<inf> app: Finished, we should now enter STANDBY" 58 - "<inf> soc_pm: Entering STANDBY{0}" 59