From 8e0bbb30b616fe65bb03186220753af76dfda7d2 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Mon, 17 Jul 2023 22:57:33 +0200 Subject: soc/amd/stoneyridge/pstate_util: fix off by one in P-state MSR number There are 8 P-state MSRs and not only 7. Signed-off-by: Felix Held Change-Id: Ic2899b6e454233c6cbb8fc1e439ff069c4d3d3a9 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76545 Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas --- src/soc/amd/stoneyridge/pstate_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc') diff --git a/src/soc/amd/stoneyridge/pstate_util.c b/src/soc/amd/stoneyridge/pstate_util.c index 097a913029..12bc2b5cfa 100644 --- a/src/soc/amd/stoneyridge/pstate_util.c +++ b/src/soc/amd/stoneyridge/pstate_util.c @@ -21,7 +21,7 @@ static bool all_pstates_have_same_frequency_id(void) bool first = true; uint32_t frequency_id; - for (i = 0; i < 7; i++) { + for (i = 0; i < 8; i++) { pstate_reg.raw = rdmsr(PSTATE_MSR(i)).raw; if (!pstate_reg.pstate_en) -- cgit v1.2.3