Skip to content

hwmon: (coretemp) Fixes, improvements and support for large core count

Zhang Rui linux-hwmon lkml 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest11 patches 13 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/11hwmon: (coretemp) Fix out-of-bounds memory accessdrivers/hwmon/coretemp.c+2 -61 reply
2/11hwmon: (coretemp) Fix bogus core_id to attr name mappingdrivers/hwmon/coretemp.c+19 -131 reply
3/11hwmon: (coretemp) Enlarge per package core count limitdrivers/hwmon/coretemp.c+1 -11 reply
4/11hwmon: (coretemp) Introduce enum for attr indexdrivers/hwmon/coretemp.c+10 -21 reply
5/11hwmon: (coretemp) Remove unnecessary dependency of array indexdrivers/hwmon/coretemp.c+7 -131 reply
6/11hwmon: (coretemp) Replace sensor_device_attribute with device_attributedrivers/hwmon/coretemp.c+12 -161 reply
7/11hwmon: (coretemp) Remove redundant pdata->cpu_map[]drivers/hwmon/coretemp.c+6 -101 reply
8/11hwmon: (coretemp) Abstract core_temp helpersdrivers/hwmon/coretemp.c+64 -541 reply
9/11hwmon: (coretemp) Split package temp_data and core temp_datadrivers/hwmon/coretemp.c+14 -231 reply
10/11hwmon: (coretemp) Remove redundant temp_data->is_pkg_datadrivers/hwmon/coretemp.c+11 -81 reply
11/11hwmon: (coretemp) Use dynamic allocated memory for core temp_datadrivers/hwmon/coretemp.c+21 -31 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH V2 00/11] hwmon: (coretemp) Fixes, improvements and support for large core count

Patch 1/11 is a bug fix that should be considered as stable material. Patch 2/11 fixes a user visible sysfs attribute name change. Patch 3/11 is a quick fix to allow coretemp driver to probe more than

           128 cores.

Patch 4/11 - 10/11 are a series of improvements aim to simplify the
code logic and remove unnecessary macros, variables and structure fields, and make it easier for patch 11/11.
Patch 11/11 converts coretemp driver to use dynamic memory allocation
for core temp_data, so that it is easy to remove the hardcoded core count limitation when _num_cores_per_package become available and reliable, which is WIP in
https://lore.kernel.org/all/[email protected]/

I can split the first three patches into a separate patch set if needed.

Patch seris V1 has been posted at
https://lore.kernel.org/all/[email protected]/

thanks,
rui

----------------------------------------------------------------
Zhang Rui (11):
hwmon: (coretemp) Fix out-of-bounds memory access in create_core_data()
hwmon: (coretemp) Fix bogus core to attr mapping
hwmon: (coretemp) Enlarge per package core count limit
hwmon: (coretemp) Introduce enum for attr index
hwmon: (coretemp) Remove unnecessary dependency of array index
hwmon: (coretemp) Replace sensor_device_attribute with device_attribute
hwmon: (coretemp) Remove redundant pdata->cpu_map[]
hwmon: (coretemp) Abstract core_temp helpers
hwmon: (coretemp) Split package temp_data and core temp_data
hwmon: (coretemp) Remove redundant temp_data->is_pkg_data
hwmon: (coretemp) Use dynamic allocated memory for core temp_data

 drivers/hwmon/coretemp.c | 219 ++++++++++++++++++++++++++---------------------
 1 file changed, 120 insertions(+), 99 deletions(-)