Nathan Lynch
6e891b0406
powerpc/prom: Add CPU info to hardware description string later
...
[ Upstream commit 7bdd1c6c87de758750d419eedab7285b95b66417 ]
cur_cpu_spec->cpu_name is appended to ppc_hw_desc before cur_cpu_spec
has taken on its final value. This is illustrated on pseries by
comparing the CPU name as reported at boot ("POWER8E (raw)") to the
contents of /proc/cpuinfo ("POWER8 (architected)"):
$ dmesg | grep Hardware
Hardware name: IBM,8408-E8E POWER8E (raw) 0x4b0201 0xf000004 \
of:IBM,FW860.50 (SV860_146) hv:phyp pSeries
$ grep -m 1 ^cpu /proc/cpuinfo
cpu : POWER8 (architected), altivec supported
Some 44x models would appear to be affected as well; see
identical_pvr_fixup().
This results in incorrect CPU information in stack dumps --
ppc_hw_desc is an input to dump_stack_set_arch_desc().
Delay gathering the CPU name until after all potential calls to
identify_cpu().
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com >
Fixes: bd649d40e0 ("powerpc: Add PVR & CPU name to hardware description")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au >
Link: https://msgid.link/20240603-fix-cpu-hwdesc-v1-1-945f2850fcaa@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org >
2024-08-03 08:54:00 +02:00
..
2023-08-16 23:54:50 +10:00
2024-07-05 09:34:04 +02:00
2024-04-27 17:11:43 +02:00
2023-07-01 09:24:31 -07:00
2020-03-25 11:50:48 +01:00
2022-09-26 22:47:37 +10:00
2021-12-09 22:41:21 +11:00
2023-04-20 12:59:21 +10:00
2023-08-02 22:22:19 +10:00
2023-08-02 22:22:19 +10:00
2023-03-30 23:36:35 +11:00
2022-05-08 22:15:04 +10:00
2019-06-15 16:52:06 +10:00
2023-08-02 22:22:19 +10:00
2024-02-23 09:24:58 +01:00
2019-05-30 11:26:32 -07:00
2022-11-18 19:00:06 +11:00
2019-06-05 17:37:06 +02:00
2023-06-19 17:36:25 +10:00
2019-05-30 11:26:32 -07:00
2022-09-26 22:47:13 +10:00
2022-09-26 22:47:13 +10:00
2022-09-26 22:47:13 +10:00
2022-09-26 22:47:13 +10:00
2022-09-26 23:00:05 +10:00
2022-09-26 22:47:13 +10:00
2022-09-26 22:47:13 +10:00
2024-02-23 09:25:09 +01:00
2022-09-26 23:00:05 +10:00
2023-08-02 22:22:18 +10:00
2022-05-28 11:27:17 -07:00
2022-06-29 16:45:05 +10:00
2023-01-30 20:07:42 +11:00
2023-05-17 00:54:55 +10:00
2023-07-31 17:54:28 +02:00
2022-04-18 07:21:12 +02:00
2022-08-26 11:02:20 +10:00
2022-03-08 22:06:25 +11:00
2021-12-23 22:33:10 +11:00
2023-02-15 22:41:11 +11:00
2022-05-05 22:12:44 +10:00
2024-07-25 09:50:53 +02:00
2022-05-08 22:15:40 +10:00
2022-05-05 22:12:44 +10:00
2023-10-11 09:31:26 +11:00
2023-08-16 23:54:48 +10:00
2021-12-09 22:41:21 +11:00
2023-07-10 09:47:47 +10:00
2023-04-20 12:54:24 +10:00
2023-08-18 17:03:15 +10:00
2021-10-09 00:15:59 +11:00
2023-12-08 08:52:19 +01:00
2023-08-16 23:54:48 +10:00
2022-12-02 17:54:08 +11:00
2023-08-16 23:54:48 +10:00
2023-08-16 23:54:48 +10:00
2024-07-11 12:49:17 +02:00
2023-10-10 21:32:40 +11:00
2023-08-16 23:54:48 +10:00
2023-04-11 23:13:33 +10:00
2023-09-18 12:23:47 +10:00
2023-09-18 12:23:47 +10:00
2021-12-23 22:35:13 +11:00
2022-09-28 19:22:10 +10:00
2022-09-26 23:00:14 +10:00
2021-10-20 21:37:58 +11:00
2023-03-16 15:18:12 +11:00
2023-08-01 08:17:25 -04:00
2024-02-23 09:25:09 +01:00
2023-06-21 15:13:57 +10:00
2021-05-28 22:54:27 +10:00
2019-05-30 11:26:32 -07:00
2020-12-04 01:01:09 +11:00
2024-03-01 13:35:07 +01:00
2024-02-23 09:24:47 +01:00
2023-04-20 12:59:21 +10:00
2023-05-08 22:57:10 +10:00
2021-06-17 00:09:00 +10:00
2021-08-13 22:04:26 +10:00
2022-12-02 17:54:08 +11:00
2024-06-27 13:49:03 +02:00
2022-12-19 07:13:33 -06:00
2019-09-14 00:04:40 +10:00
2022-09-26 23:00:14 +10:00
2021-12-23 22:35:13 +11:00
2023-08-02 22:22:19 +10:00
2023-06-15 14:04:19 +10:00
2021-12-09 22:41:21 +11:00
2023-02-10 22:17:34 +11:00
2023-08-16 23:54:48 +10:00
2023-08-16 23:54:48 +10:00
2023-08-16 23:54:48 +10:00
2023-03-09 12:55:15 -08:00
2023-08-22 00:09:06 +10:00
2022-05-19 23:11:29 +10:00
2019-05-30 11:26:32 -07:00
2019-08-30 09:40:15 +10:00
2022-05-08 22:15:40 +10:00
2023-08-02 22:22:19 +10:00
2022-12-02 17:54:08 +11:00
2022-11-24 23:31:49 +11:00
2023-04-20 12:59:21 +10:00
2023-02-07 20:15:23 +11:00
2023-03-14 23:36:27 +11:00
2022-09-05 17:30:25 +10:00
2022-05-08 22:15:40 +10:00
2023-08-24 22:33:16 +10:00
2022-05-08 22:15:40 +10:00
2023-08-23 15:55:21 +10:00
2023-06-19 17:37:14 +10:00
2022-05-08 22:15:40 +10:00
2023-12-08 08:52:19 +01:00
2023-06-15 14:04:19 +10:00
2023-03-23 17:18:33 -07:00
2022-09-26 20:58:18 +10:00
2017-11-02 11:10:55 +01:00
2024-08-03 08:54:00 +02:00
2021-08-25 13:35:47 +10:00
2022-09-28 19:22:13 +10:00
2022-08-26 08:41:54 +10:00
2023-08-17 09:46:14 +10:00
2023-02-13 22:35:03 +11:00
2023-02-13 22:35:03 +11:00
2023-02-13 22:35:03 +11:00
2024-03-06 14:48:43 +00:00
2023-02-13 22:35:03 +11:00
2020-07-16 14:49:53 +10:00
2023-07-10 09:47:47 +10:00
2023-02-12 22:12:36 +11:00
2023-02-12 22:12:37 +11:00
2022-09-26 23:00:13 +10:00
2024-07-11 12:49:03 +02:00
2023-10-23 22:50:15 +11:00
2022-09-26 23:00:13 +10:00
2023-06-09 23:29:51 +10:00
2022-07-28 16:22:14 +10:00
2022-05-19 23:11:26 +10:00
2022-10-07 00:59:54 +11:00
2017-11-02 11:10:55 +01:00
2023-08-14 21:46:03 +10:00
2023-09-22 20:29:27 +10:00
2021-10-22 15:22:05 +11:00
2019-06-14 10:48:56 +02:00
2023-06-15 14:03:55 +10:00
2022-11-18 19:00:06 +11:00
2021-10-22 15:22:05 +11:00
2022-09-26 22:47:37 +10:00
2022-09-28 19:22:12 +10:00
2019-05-30 11:26:32 -07:00
2022-11-01 10:24:09 +11:00
2023-08-02 22:22:18 +10:00
2022-09-28 19:22:08 +10:00
2023-03-17 15:29:34 +01:00
2022-10-07 00:59:54 +11:00
2023-05-08 13:52:27 -10:00
2023-03-16 08:56:48 +11:00
2023-08-16 23:54:48 +10:00
2024-02-05 20:14:14 +00:00
2023-08-16 23:54:48 +10:00
2022-09-28 19:22:09 +10:00
2022-09-28 19:22:09 +10:00
2022-05-06 00:00:20 +10:00
2022-02-12 22:47:43 +11:00
2022-02-12 22:47:43 +11:00
2023-01-18 17:12:55 -08:00
2021-12-09 22:41:21 +11:00
2023-12-08 08:52:19 +01:00
2024-04-27 17:11:43 +02:00
2023-08-18 10:19:00 -07:00