From d8956f7994188f108c662ff21e5b0f3f083153c9 Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Mon, 19 Apr 2021 17:00:58 -0600 Subject: soc/amd/cezanne: Add support for C-state 3 These values match the majolica UEFI firmware. BUG=b:185787242, b:178728116, b:185921043 Signed-off-by: Jason Glenesk Signed-off-by: Raul E Rangel Change-Id: If107c7e836942eeba734c1634fa7f8555c3018b1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52526 Tested-by: build bot (Jenkins) Reviewed-by: Marshall Dawson --- src/soc/amd/cezanne/acpi.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/soc/amd') diff --git a/src/soc/amd/cezanne/acpi.c b/src/soc/amd/cezanne/acpi.c index b3931799b1..fd11589c66 100644 --- a/src/soc/amd/cezanne/acpi.c +++ b/src/soc/amd/cezanne/acpi.c @@ -304,6 +304,19 @@ void generate_cpu_entries(const struct device *device) .access_size = ACPI_ACCESS_SIZE_BYTE_ACCESS, }, }, + [2] = { + .ctype = 3, + .latency = 350, + .power = 0, + .resource = { + .space_id = ACPI_ADDRESS_SPACE_IO, + .bit_width = 8, + .bit_offset = 0, + .addrl = cstate_base_address + 2, + .addrh = 0, + .access_size = ACPI_ACCESS_SIZE_BYTE_ACCESS, + }, + }, }; threads_per_core = ((cpuid_ebx(CPUID_EBX_CORE_ID) & CPUID_EBX_THREADS_MASK) -- cgit v1.2.3