From ccc25f037119251ef83c8015335adbd724cd8e97 Mon Sep 17 00:00:00 2001 From: lakotamm Date: Sat, 6 Aug 2022 12:01:02 +0200 Subject: [PATCH] Set default MCHBAR for more CPU families Added MCHBAR_BASE 0xFEDC0001 as default for Alder Lake -HX, S and Tiger Lake --- throttled.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/throttled.py b/throttled.py index 80899a0..2a26af6 100755 --- a/throttled.py +++ b/throttled.py @@ -690,7 +690,7 @@ def power_thread(config, regs, exit_event, cpuid): except CalledProcessError: warning('Please ensure that "setpci" is in path. This is typically provided by the "pciutils" package.') warning('Trying to guess the MCHBAR address from the CPUID. This MIGHT NOT WORK!') - if cpuid in ((6, 151, 2), (6, 154, 3)): + if cpuid in ((6, 140, 1),(6, 141, 1),(6, 151, 2),(6, 151, 5), (6, 154, 3),(6, 154, 4)): MCHBAR_BASE = 0xFEDC0001 else: MCHBAR_BASE = 0xFED10001