From 1fcb67babfc90abec184815418a5c329f1dd7bbd Mon Sep 17 00:00:00 2001 From: kai yang Date: Fri, 10 Jan 2020 06:09:18 -0600 Subject: [PATCH] renamed system agent to igpu unslice. renamed uncore to igpu unslice. --- README.md | 10 +++++----- etc/lenovo_fix.conf | 8 ++++---- lenovo_fix.py | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8ce69a5..8b2b395 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ I will keep this list updated. I suggest you to use the excellent **[s-tui](https://github.com/amanusk/s-tui)** tool to check and monitor the CPU usage, frequency, power and temperature under load! ### Undervolt -The tool supports **undervolting** the CPU by configuring voltage offsets for CPU, cache, GPU, System Agent and Analog I/O planes. The tool will re-apply undervolt on resume from standby and hibernate by listening to DBus signals. You can now either use the `UNDERVOLT` key in config to set global values or the `UNDERVOLT.AC` and `UNDERVOLT.BATTERY` keys to selectively set undervolt values for the two power profiles. +The tool supports **undervolting** the CPU by configuring voltage offsets for CPU, cache, GPU, iGPU Unslice and Analog I/O planes. The tool will re-apply undervolt on resume from standby and hibernate by listening to DBus signals. You can now either use the `UNDERVOLT` key in config to set global values or the `UNDERVOLT.AC` and `UNDERVOLT.BATTERY` keys to selectively set undervolt values for the two power profiles. ### IccMax (EXPERTS ONLY) The tool now supports overriding the **IccMax** by configuring the maximum allowed current for CPU, cache and GPU planes. The tool will re-apply IccMax on resume from standby and hibernate. You can now either use the `ICCMAX` key in config to set global values or the `ICCMAX.AC` and `ICCMAX.BATTERY` keys to selectively set current values for the two power profiles. **NOTE:** the values specified in the config file are the actual current limit of your system, so those are not a offset from the default values as for the undervolt. As such, you should first find your system default values with the `--monitor` command. @@ -198,8 +198,8 @@ CORE: -105 GPU: -85 # CPU cache voltage offset (mV) CACHE: -105 -# System Agent voltage offset (mV) -UNCORE: -85 +# iGPU Unslice voltage offset (mV) +iGPU UNSLICE: -85 # Analog I/O voltage offset (mV) ANALOGIO: 0 ``` @@ -212,7 +212,7 @@ With the flag `--monitor` the tool *constantly* monitors the throttling status, [I] Detected CPU architecture: Intel Kaby Lake (R) [I] Loading config file. [I] Starting main loop. -[D] Undervolt offsets: CORE: -105.00 mV | GPU: -85.00 mV | CACHE: -105.00 mV | UNCORE: -85.00 mV | ANALOGIO: 0.00 mV +[D] Undervolt offsets: CORE: -105.00 mV | GPU: -85.00 mV | CACHE: -105.00 mV | iGPU UNSLICE: -85.00 mV | ANALOGIO: 0.00 mV [D] IccMax: CORE: 64.00 A | GPU: 31.00 A | CACHE: 6.00 A [D] Realtime monitoring of throttling causes: @@ -237,7 +237,7 @@ This is an example output: [D] Undervolt plane CORE - write 0xf2800000 - read 0xf2800000 [D] Undervolt plane GPU - write 0xf5200000 - read 0xf5200000 [D] Undervolt plane CACHE - write 0xf2800000 - read 0xf2800000 -[D] Undervolt plane UNCORE - write 0xf5200000 - read 0xf5200000 +[D] Undervolt plane iGPU UNSLICE - write 0xf5200000 - read 0xf5200000 [D] Undervolt plane ANALOGIO - write 0x0 - read 0x0 [D] MSR PACKAGE_POWER_LIMIT - write 0xcc816000dc80e8 - read 0xcc816000dc80e8 [D] MCHBAR PACKAGE_POWER_LIMIT - write 0xcc816000dc80e8 - read 0xcc816000dc80e8 diff --git a/etc/lenovo_fix.conf b/etc/lenovo_fix.conf index 2b66d64..bcb8c3f 100644 --- a/etc/lenovo_fix.conf +++ b/etc/lenovo_fix.conf @@ -47,8 +47,8 @@ CORE: 0 GPU: 0 # CPU cache voltage offset (mV) CACHE: 0 -# System Agent voltage offset (mV) -UNCORE: 0 +# iGPU Unslice voltage offset (mV) +iGPU UNSLICE: 0 # Analog I/O voltage offset (mV) ANALOGIO: 0 @@ -59,8 +59,8 @@ CORE: 0 GPU: 0 # CPU cache voltage offset (mV) CACHE: 0 -# System Agent voltage offset (mV) -UNCORE: 0 +# iGPU Unslice voltage offset (mV) +iGPU UNSLICE: 0 # Analog I/O voltage offset (mV) ANALOGIO: 0 diff --git a/lenovo_fix.py b/lenovo_fix.py index 16c6d14..3bcf2d9 100755 --- a/lenovo_fix.py +++ b/lenovo_fix.py @@ -24,7 +24,7 @@ from gi.repository import GLib from mmio import MMIO, MMIOError DEFAULT_SYSFS_POWER_PATH = '/sys/class/power_supply/AC*/online' -VOLTAGE_PLANES = {'CORE': 0, 'GPU': 1, 'CACHE': 2, 'UNCORE': 3, 'ANALOGIO': 4} +VOLTAGE_PLANES = {'CORE': 0, 'GPU': 1, 'CACHE': 2, 'iGPU UNSLICE': 3, 'ANALOGIO': 4} CURRENT_PLANES = {'CORE': 0, 'GPU': 1, 'CACHE': 2} TRIP_TEMP_RANGE = [40, 97] UNDERVOLT_KEYS = ('UNDERVOLT', 'UNDERVOLT.AC', 'UNDERVOLT.BATTERY')