power_stop

The power_stop test verifies Suspend-to-Idle stop states on ppc64le Power9 systems to confirm expected low-power behavior.

What the test covers

The Suspend-to-Idle state which, when enabled, allows a processor to be in the deepest idle state while the system is suspended. It freezes user space and puts all I/O devices into low-power states, thereby saving power consumption on systems.

The power_stop test is designed to verify if enabling these Stop (or idle) states work as expected on a ppc64le CPU architecture machine, specifically on Power9 based systems.

RHEL version supported
  • RHEL 8
  • RHEL 9
  • RHEL 10
What the test does

The test uses the lsprop command to collect information of all the idle-stop states that a particular system supports, and cpupower command to enable and disable those states. The test observes the usage and duration counter increment of each cpu idle state to affirm if it’s enabled or not.

Success Criteria:

Change in the usage and duration parameter values for the stop state before and after enabling it.

  • PASS: If every state increases its counter parameter values
  • WARN: If any one state fails to increase its counter parameter values
  • FAIL: If any of the state does not increases its counter
  • REVIEW: any other unknown issue
Preparing for the test

This test is planned automatically if the Host Under Test (HUT) meets the following requirements:

  • The HUT is running one of the supported RHEL versions.
  • The underlying architecture is ppc64le
  • The CPU Model is POWER9 Note

    This test is not supported and will fail when executed on any other RHEL version and architecture.

Executing the test

The test is non-interactive. Run the following command and then select the appropriate power_stop test name from the list that displays.

 rhcert-run
Run time
The test takes less than five minutes to finish, but can vary depending on the number of CPU Idle Stop states.