soc/intel/alderlake: provide a list of D-states to enter LPM
Implement sub-function 1 (Get Device Constraints) of the Low Power S0 Idle Device-Specific Method (_DSM). This provides a way in which to describe various devices required D-states to enter LPM (S0ix). The information can be used to help in diagnostics and understanding of S0ix entry failure. Values were derived from Intel document 595644 (rev 0.45) and the ADL FSP sample ASL. This implementation adds support for ADL. Other SoC's could be ported to be included as well. If they aren't, they will default to the existing behavior of a single hardcoded device to ensure compatibility with Windows. TEST=Built and tested on brya by verifying SSDT contents Change-Id: Ibe46a0583c522a8adf0a015cd3a698f694482437 Signed-off-by: Tarun Tuli <taruntuli@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63969 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Lance Zhao
This commit is contained in:
parent
da958d679d
commit
c66ea98577
3 changed files with 177 additions and 2 deletions
|
|
@ -77,9 +77,10 @@ static void read_pmc_lpm_requirements(const struct soc_pmc_lpm *lpm,
|
|||
* device, one that is known to exist, i.e. ACPI_CPU_STRING. expects at least
|
||||
* one device and crashes without it with a bluescreen.
|
||||
*/
|
||||
static void lpi_get_constraints(void *unused)
|
||||
__weak void soc_lpi_get_constraints(void *unused)
|
||||
{
|
||||
char path[16];
|
||||
printk(BIOS_INFO, "Returning default LPI constraint package\n");
|
||||
|
||||
/*
|
||||
* Return (Package() {
|
||||
|
|
@ -183,7 +184,7 @@ static void lpi_display_off(void *unused)
|
|||
|
||||
static void (*lpi_s0_helpers[])(void *) = {
|
||||
NULL, /* enumerate functions (autogenerated) */
|
||||
lpi_get_constraints, /* get device constraints */
|
||||
soc_lpi_get_constraints,/* get device constraints */
|
||||
NULL, /* get crash dump device */
|
||||
lpi_display_off, /* display off notify */
|
||||
lpi_display_on, /* display on notify */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue