Re: [PATCH 0/2] platform/x86/intel-uncore-freq: Fix error handling
From: Arnav Kapoor
Date: Mon Nov 16 2026 - 12:12:11 EST
On Sat, Nov 14, 2026 at 05:49:46PM -0800, Srinivas Pandruvada wrote:
> While reviewing the driver code with AI models, identified a few corner
> cases during the device probe and removal paths where error handling and
> resource cleanup were insufficient or improperly ordered.
Tested the series on a Tiger Lake laptop (Lenovo V14 G2 ITL), which uses
the MSR based driver, so the TPMI hunk of 1/2 is not covered:
- max_freq_khz write to min_freq_khz and back
- 50 rounds of rmmod/insmod of intel-uncore-frequency while two loops
kept reading the package_00_die_00 attributes
- offlining all CPUs but CPU0 and bringing them back; the entry stayed
and current_freq_khz still read through CPU0
No hangs and nothing in dmesg.
Tested-by: Arnav Kapoor <kapoorarnav43@xxxxxxxxx>
Thanks,
Arnav