Re: [PATCH v2] ACPI / sleep: EC-based wakeup from suspend-to-idle on recent systems

From: Srinivas Pandruvada
Date: Fri Jun 23 2017 - 12:06:41 EST


On Fri, 2017-06-23 at 15:37 +0000, Mario.Limonciello@xxxxxxxx wrote:

[...]

> >
> > +#define ACPI_LPS0_SCREEN_ON 4
> > +#define ACPI_LPS0_ENTRY 5
> > +#define ACPI_LPS0_EXIT 6
> The spec you shared also defines device constraints (function 1). It
> would be veryÂ
> useful if these constraintsÂÂcould be parsed and compared against the
> actual powerÂ
> states of devices on the system at least for debugging purposes.ÂÂI'm
> not sure if youÂ
> already had a plan for that in a future series.
>
For debug purpose, I have worked on a patch to dump the constraint
table in debugfs. But in the freeze path whether we meet the
constraints or not will not make any difference, other than for just
debugging.

Thanks,
Srinivas