[igt-dev] [RFC i-g-t 09/11] Add test to verify session key renewed after suspend-resume cycle
Chris Wilson
chris at chris-wilson.co.uk
Wed Mar 3 23:59:49 UTC 2021
Quoting Alan Previn (2021-03-02 22:53:32)
> +static void trigger_powermgt_suspend_cycle(int i915,
> + struct powermgt_data *pm)
> +{
> + igt_pm_enable_sata_link_power_management();
> +
> +
> + igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_DEVICES);
> +
> + igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED);
> + gem_test_engine(i915, I915_EXEC_RENDER);
> + while ((!igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_ACTIVE))) {
With an autosuspend delay of 0, this is not guaranteed to ever report
ACTIVE.
Just drop everything after wait_for_pm_status(SUSPENDED) as clearly
using the protected rendercopy must wake the device.
-Chris
More information about the igt-dev
mailing list