mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 10:26:12 +00:00
tests/pm_pc8: add "resuming" state
This one was missing. For some reason we never really detected it on our test suite. I checked the Kernel source and now we should be fine. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
parent
0df88f5e64
commit
f6d9e160c9
@ -61,6 +61,7 @@ enum runtime_pm_status {
|
|||||||
RUNTIME_PM_STATUS_ACTIVE,
|
RUNTIME_PM_STATUS_ACTIVE,
|
||||||
RUNTIME_PM_STATUS_SUSPENDED,
|
RUNTIME_PM_STATUS_SUSPENDED,
|
||||||
RUNTIME_PM_STATUS_SUSPENDING,
|
RUNTIME_PM_STATUS_SUSPENDING,
|
||||||
|
RUNTIME_PM_STATUS_RESUMING,
|
||||||
RUNTIME_PM_STATUS_UNKNOWN,
|
RUNTIME_PM_STATUS_UNKNOWN,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -212,6 +213,8 @@ static enum runtime_pm_status get_runtime_pm_status(void)
|
|||||||
return RUNTIME_PM_STATUS_ACTIVE;
|
return RUNTIME_PM_STATUS_ACTIVE;
|
||||||
else if (strncmp(buf, "suspending\n", n_read) == 0)
|
else if (strncmp(buf, "suspending\n", n_read) == 0)
|
||||||
return RUNTIME_PM_STATUS_SUSPENDING;
|
return RUNTIME_PM_STATUS_SUSPENDING;
|
||||||
|
else if (strncmp(buf, "resuming\n", n_read) == 0)
|
||||||
|
return RUNTIME_PM_STATUS_RESUMING;
|
||||||
|
|
||||||
igt_assert_f(false, "Unknown status %s\n", buf);
|
igt_assert_f(false, "Unknown status %s\n", buf);
|
||||||
return RUNTIME_PM_STATUS_UNKNOWN;
|
return RUNTIME_PM_STATUS_UNKNOWN;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user