Skip to content

Commit

Permalink
Merge pull request #310 from lakotamm/patch-2
Browse files Browse the repository at this point in the history
Adding Alder Lake -U -S and Tiger Lake as supported
  • Loading branch information
erpalma authored Aug 6, 2022
2 parents cc5948b + 4cbf36b commit 77eb1ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The latest commit (30 Oct 2021) switched from the legacy name `lenovo_fix` for t
### Tested hardware
Other users have confirmed that the tool is also working for these laptops:
- Lenovo T470s, T480, T480s, X1C5, X1C6, X1C8, T580, L590, L490, L480, T470, X280, ThinkPad Anniversary Edition 25, E590 w/ RX 550X, P43s, E480, E580, T14 Gen 1, P14s Gen 1, T15 Gen 1, P15s Gen 1, E14 Gen 2
- Dell XPS 9365, 9370, 9550, 7390 2-in-1, Latitude 7390 2-in-1
- Dell XPS 9365, 9370, 9550, 7390 2-in-1, Latitude 7390 2-in-1, Inspiron 16 Plus 7620
- Microsoft Surface Book 2
- HP Probook 470 G5, Probook 450 G5, ZBook Firefly 15 G7

Expand Down
11 changes: 7 additions & 4 deletions throttled.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,17 @@
(6, 122, 8): 'GoldmontPlus',
(6, 126, 5): 'IceLakeY',
(6, 138, 1): 'Lakefield',
(6, 140, 1): 'TigerLake',
(6, 141, 1): 'TigerLake',
(6, 140, 1): 'TigerLake-U',
(6, 140, 2): 'TigerLake-U',
(6, 141, 1): 'TigerLake-H',
(6, 142, 9): 'Kabylake',
(6, 142, 10): 'Kabylake',
(6, 142, 11): 'WhiskeyLake',
(6, 142, 12): 'Comet Lake-U',
(6, 151, 2): 'AlderLake-S',
(6, 151, 2): 'AlderLake-S/HX',
(6, 151, 5): 'AlderLake-S',
(6, 154, 3): 'AlderLake-P/H',
(6, 154, 4): 'AlderLake-U',
(6, 156, 0): 'JasperLake',
(6, 158, 9): 'KabylakeG',
(6, 158, 10): 'Coffeelake',
Expand Down Expand Up @@ -688,7 +691,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, 140, 2),(6, 141, 1),(6, 151, 2),(6, 151, 5), (6, 154, 3),(6, 154, 4)):
MCHBAR_BASE = 0xFEDC0001
else:
MCHBAR_BASE = 0xFED10001
Expand Down

0 comments on commit 77eb1ac

Please sign in to comment.