← Back to archive

Daily update · Oct 13–14, 2026

Power supply, KVM, and turbostat fixes lead today's mainline batch

Battery driver corrections, AMD AVIC cleanup, MMIO cache handling, and a turbostat reliability batch are in today's commits.

In brief

This set of mainline commits fixes several power-supply and KVM bugs, plus a batch of turbostat reliability issues. Smaller bootconfig and nios2 cleanups address compiler warnings.

Bug fixes

Power-supply driver and documentation fixes

max17042 now stores the over-voltage property in the correct field, ds2780 returns a proper success value from its capacity helper, generic-adc-battery converts temperature from milli-degrees to deci-degrees, and the core prevents unregistering a supply while callbacks are still running. A kernel-doc name mismatch is also corrected.

Why it matters: Avoids wrong battery thresholds, capacity read failures, temperature unit errors, and a possible use-after-free during removal.

f444a42dce5c45d4af4e80a2a58cbc8b36ec6bca94e642555b4bd13e0552

KVM SVM AVIC lifecycle fixes

AVIC (AMD Virtual Interrupt Controller) is AMD's hardware interrupt-delivery aid. These commits add a helper to check whether a vCPU ID fits AVIC's physical ID table, use it in load/put sanity checks, and clear the table entry when vCPU creation fails so it cannot keep pointing at freed memory.

Why it matters: Reduces the chance of a stale AVIC table entry causing a use-after-free after a failed vCPU creation.

86a24feec19112e0d427c33588c15bbd43ae

KVM SEV, MMIO cache, and nested-page-fault fixes

SEV (AMD Secure Encrypted Virtualization) now uses a locked page-dirtying call in the gmem post-populate path. KVM's per-vCPU MMIO cache now selects the active memslot set instead of always using address space 0, which matters in SMM (System Management Mode). The #NPF (nested page fault) handling also tolerates an unexpected SS bit from Hyper-V instead of indexing the permission array out of bounds.

Why it matters: Fixes a potential SEV page-dirty race, stale SMM MMIO cache entries, and out-of-bounds access warnings from odd AMD nested-page-fault codes.

97818b2fa708b3e6212dea2ee90ab3669181

Turbostat reliability fixes

The CPU power tool now reads complete sysfs/cgroup CPU lists instead of stopping at 1024 bytes, checks calloc() returns, prints out-of-range GFX%rc6 and SAM%mc6 values as NaN, fixes file-descriptor leaks and off-by-one errors, and warns instead of failing when older perf lacks L2 stats. It also bumps its version string.

Why it matters: Makes turbostat output and resource handling more reliable on large or fragmented CPU-topology systems.

c24362650f7a1de8307e8617148aefa949b1485c59972808767c64414c4c5e940dd96bef11741cc90f91154b96dab83fd3eea584b56f

Bootconfig and nios2 build-warning cleanups

The bootconfig tool gives its static_assert a message so clang does not warn about a C23 extension, and nios2's csum_fold() casts __wsum before shifting to avoid a sparse warning.

Why it matters: Cleaner builds for the bootconfig tool and nios2 kernel code.

a1ddc2721467b963f2345fa2

Source commits22 entries +
767c64414c4c

tools/power turbostat: Fix fd_perf leak on reset

Len Brown · May 1, 2026 · 1 files

5e940dd96bef

tools/power turbostat: Fix CWF PMT off-by-one

Len Brown · May 1, 2026 · 1 files

154b96dab83f

tools/power turbostat: Fix add_counter issue if > 24 counters.

Len Brown · May 3, 2026 · 1 files

11741cc90f91

tools/power turbostat: Fix PMT error path fd handling

Len Brown · May 3, 2026 · 1 files

d3eea584b56f

turbostat 2026.09.28

Len Brown · May 24, 2026 · 1 files

485c59972808

tools/power turbostat: Sanity check GFX%rc6 and SAM%mc6 percentages

Len Brown · Jun 22, 2026 · 1 files

c24362650f7a

tools/power turbostat: Read complete CPU lists

Ali Ahmet Memis · Jul 30, 2026 · 1 files

b3e6212dea2e

KVM: x86: Use active memslots for the per-vCPU MMIO cache

Jinu Kim · Aug 7, 2026 · 1 files

97818b2fa708

KVM: SEV: Fix page dirtying in sev_gmem_post_populate()

Jann Horn · Aug 10, 2026 · 1 files

1de8307e8617

tools/power turbostat: Warn, but don't Err on out-dated perf systems

Len Brown · Aug 13, 2026 · 1 files

f444a42dce5c

power: supply: max17042_battery: Fix vmin assigned instead of vmax in DT parsing

Xueqin Luo · Sep 1, 2026 · 1 files

a58cbc8b36ec

power: supply: ds2780: Fix ds2780_get_capacity() returning raw value

Xueqin Luo · Sep 1, 2026 · 1 files

148aefa949b1

tools/power turbostat: add NULL check after calloc()

longlong yan · Sep 2, 2026 · 1 files

45d4af4e80a2

power: supply: Fix maintenance charge table kernel-doc

Karl Mehltretter · Sep 9, 2026 · 1 files

5b4bd13e0552

power: supply: core: prevent unregistering a power supply while a callback runs

Alexey Charkov · Sep 10, 2026 · 2 files

b963f2345fa2

nios2: fix __wsum type degradation in csum_fold()

Keith Busch · Sep 22, 2026 · 1 files

86a24feec191

KVM: SVM: Add paranoid helper for checking if vCPU is AVIC-addressable

Sean Christopherson · Sep 23, 2026 · 1 files

12e0d427c335

KVM: SVM: Use "is AVIC-addressable" helper to sanity check load()/put()

Sean Christopherson · Sep 23, 2026 · 1 files

88c15bbd43ae

KVM: SVM: Clear AVIC Physical ID table entry if vCPU creation fails

Naveen N Rao (AMD) · Sep 23, 2026 · 3 files

6bca94e64255

power: supply: generic-adc-battery: Fix temperature IIO channel conversion

Svyatoslav Ryhel · Sep 26, 2026 · 1 files

e90ab3669181

KVM: x86/mmu: Cope with the SS bit being set in #NPF exit codes

Paolo Bonzini · Oct 9, 2026 · 2 files

a1ddc2721467

bootconfig: give the footer size static_assert a message

Sasha Levin · Oct 11, 2026 · 1 files