Zhang Rui
30cf0dee37
hwmon/coretemp: Handle large core ID value
...
commit 7108b80a542b9d65e44b36d64a700a83658c0b73 upstream.
The coretemp driver supports up to a hard-coded limit of 128 cores.
Today, the driver can not support a core with an ID above that limit.
Yet, the encoding of core ID's is arbitrary (BIOS APIC-ID) and so they
may be sparse and they may be large.
Update the driver to map arbitrary core ID numbers into appropriate
array indexes so that 128 cores can be supported, no matter the encoding
of core ID's.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Len Brown <len.brown@intel.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20221014090147.1836-3-rui.zhang@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-10-29 10:12:54 +02:00
..
2022-07-07 17:53:35 +02:00
2022-10-26 12:34:48 +02:00
2019-05-24 17:36:45 +02:00
2019-11-06 14:37:19 -08:00
2021-03-08 19:10:30 +01:00
2019-05-30 11:25:18 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2021-04-20 06:50:14 -07:00
2019-05-24 17:36:45 +02:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-12-02 17:42:23 -08:00
2021-05-12 18:53:11 -07:00
2020-09-23 09:42:40 -07:00
2019-05-24 17:36:42 +02:00
2019-05-24 17:36:45 +02:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:25:18 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2022-05-12 12:30:11 +02:00
2020-09-23 09:42:39 -07:00
2021-01-27 17:44:19 -08:00
2020-09-23 09:42:39 -07:00
2021-04-20 06:50:14 -07:00
2021-08-28 08:53:30 -07:00
2019-09-03 12:47:17 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:40 -07:00
2021-01-27 17:44:18 -08:00
2019-06-23 18:33:01 -07:00
2020-09-23 09:42:39 -07:00
2021-08-17 14:54:26 -07:00
2021-06-17 04:21:45 -07:00
2020-10-04 08:40:10 -07:00
2022-10-29 10:12:54 +02:00
2021-05-17 19:50:23 -05:00
2021-12-17 10:30:12 +01:00
2021-02-11 20:28:56 -08:00
2019-05-30 11:26:32 -07:00
2022-08-17 14:23:04 +02:00
2020-09-23 09:42:40 -07:00
2022-08-17 14:23:13 +02:00
2020-09-23 09:42:39 -07:00
2021-04-20 06:50:14 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:40 -07:00
2019-05-24 17:36:45 +02:00
2022-05-18 10:26:51 +02:00
2020-09-23 09:42:40 -07:00
2021-08-17 14:54:26 -07:00
2020-09-23 09:42:39 -07:00
2021-04-20 06:50:14 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2022-09-08 12:28:05 +02:00
2022-10-26 12:34:21 +02:00
2020-09-23 09:42:39 -07:00
2020-08-23 17:36:59 -05:00
2022-03-02 11:47:54 +01:00
2020-08-04 14:24:39 -07:00
2019-05-30 11:26:37 -07:00
2022-07-07 17:53:35 +02:00
2019-05-30 11:26:35 -07:00
2020-12-02 17:42:23 -08:00
2020-12-11 07:42:27 -08:00
2021-04-20 06:50:14 -07:00
2021-04-20 06:50:14 -07:00
2021-06-17 04:21:46 -07:00
2021-08-17 14:54:25 -07:00
2021-04-20 06:50:14 -07:00
2020-09-23 09:42:39 -07:00
2019-09-03 12:47:17 -07:00
2021-09-12 17:56:36 -07:00
2022-05-18 10:26:50 +02:00
2021-04-20 06:50:14 -07:00
2021-04-20 06:50:14 -07:00
2021-06-17 04:21:44 -07:00
2020-09-23 09:42:40 -07:00
2021-06-17 04:21:44 -07:00
2020-05-22 06:28:38 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2021-05-13 17:30:01 +02:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:40 -07:00
2022-02-01 17:27:12 +01:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2019-04-15 17:19:53 -07:00
2021-04-20 06:50:14 -07:00
2021-09-24 05:02:24 -07:00
2020-09-23 09:42:40 -07:00
2019-11-06 14:37:19 -08:00
2019-11-06 14:37:19 -08:00
2021-04-20 06:50:14 -07:00
2021-05-10 08:02:15 -07:00
2021-04-20 06:50:14 -07:00
2021-04-20 06:50:14 -07:00
2021-04-20 06:50:14 -07:00
2020-09-23 09:42:39 -07:00
2021-04-20 06:50:14 -07:00
2021-04-20 06:50:14 -07:00
2019-05-21 11:28:45 +02:00
2021-08-28 08:53:30 -07:00
2020-12-02 17:42:24 -08:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:06 +02:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2021-05-17 19:50:37 -05:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2021-01-27 17:44:18 -08:00
2021-04-20 06:50:14 -07:00
2021-04-20 06:50:14 -07:00
2021-06-17 04:21:44 -07:00
2020-09-23 09:42:39 -07:00
2021-06-17 04:21:46 -07:00
2019-02-18 14:23:29 -08:00
2020-09-23 09:42:39 -07:00
2019-05-30 11:26:32 -07:00
2021-09-16 14:48:20 -07:00
2022-09-15 11:30:07 +02:00
2021-04-20 06:50:14 -07:00
2020-08-23 17:36:59 -05:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2019-09-03 12:47:17 -07:00
2019-06-05 17:37:14 +02:00
2021-08-17 14:54:25 -07:00
2021-04-20 06:50:14 -07:00
2021-01-27 17:44:17 -08:00
2019-05-30 11:26:41 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2021-12-14 10:57:14 +01:00
2021-03-23 15:22:40 +01:00
2021-04-20 06:50:14 -07:00
2021-08-17 14:54:25 -07:00
2020-12-12 08:32:35 -08:00
2022-04-08 14:23:07 +02:00
2021-06-17 04:21:44 -07:00
2021-06-17 04:21:44 -07:00
2021-06-17 04:21:44 -07:00
2021-03-30 16:34:55 +01:00
2021-06-09 11:51:30 -07:00
2020-09-23 09:42:39 -07:00
2022-10-26 12:35:37 +02:00
2022-08-17 14:23:04 +02:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:40 -07:00
2019-05-24 17:36:45 +02:00
2020-09-17 16:02:42 +01:00
2021-04-20 06:50:14 -07:00
2019-05-24 17:36:45 +02:00
2021-01-27 17:44:17 -08:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:39:40 -07:00
2021-04-20 06:50:14 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2022-05-18 10:26:47 +02:00
2021-09-24 05:00:53 -07:00
2020-10-04 08:40:10 -07:00
2022-09-15 11:30:06 +02:00
2019-05-21 10:50:45 +02:00
2021-04-20 06:50:14 -07:00
2019-05-24 17:36:45 +02:00
2020-03-24 21:33:36 +01:00
2019-05-24 17:36:45 +02:00
2020-08-04 14:24:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2021-08-17 14:54:25 -07:00
2020-08-23 17:36:59 -05:00
2020-09-23 09:42:39 -07:00
2021-08-17 14:54:26 -07:00
2021-10-02 05:11:52 -07:00
2021-10-02 05:12:05 -07:00
2021-10-02 05:14:11 -07:00
2020-09-23 09:42:40 -07:00
2019-06-05 17:30:30 +02:00
2019-06-05 17:30:30 +02:00
2021-04-20 06:50:14 -07:00