Skip to contentSkip to conversation

WARNING: CPU: 12 PID: 44394 at arch/powerpc/kernel/process.c:437 giveup_all+0x90/0x1d0 (v6.14.8, Talos II)

DISCUSSION Erhard Furtner 2 participants 5 messages May 26, 2025 – Jun 1, 2025

lore
Share & tools
lore
#0 lore raw

Greetings!

Getting these from time to time when I run the machine for longer periods building:

[...]

------------[ cut here ]------------
WARNING: CPU: 12 PID: 44394 at arch/powerpc/kernel/process.c:437 giveup_all+0x90/0x1d0
Modules linked in: md5 md5_ppc sha512_generic cmac cifs cifs_arc4 dns_resolver nls_ucs2_utils cifs_md4 zram af_packet cfg80211 rfkill evdev input_leds hid_generic usbhid hid radeon ctr xts cbc aes_generic libaes ofpart vmx_crypto powernv_flash gf128mul drm_suballoc_helper xhci_pci i2c_algo_bit mtd backlight drm_ttm_helper ttm drm_exec xhci_hcd ibmpowernv drm_display_helper opal_prd hwmon at24 regmap_i2c usbcore usb_common
CPU: 12 UID: 250 PID: 44394 Comm: sh Tainted: G                T  6.14.8-gentoo-P9 #1
Tainted: [T]=RANDSTRUCT
Hardware name: T2P9D01 REV 1.01 POWER9 0x4e1202 opal:skiboot-bc106a0 PowerNV
NIP:  c0000000000181c0 LR: c00000000001819c CTR: c00000000018fe50
REGS: c00000008f603500 TRAP: 0700   Tainted: G                T   (6.14.8-gentoo-P9)
MSR:  9000000002823032 <SF,HV,VEC,VSX,FP,ME,IR,DR,RI>  CR: 84042822  XER: 20040000

CFAR: c000000000018110 IRQMASK: 3
GPR00: c000000000019fd0 c00000008f6037a0 c00000000115b100 9000000002803032
GPR04: c00000000bec0080 0000000000000000 c00000000213dec8 0000000004000000
GPR08: 0000000000002000 0000000000000001 0000000002002000 0000000000002000
GPR12: c00000000018ca30 c0000007ffff6800 0000000000000000 c00000003bd322c0
GPR16: 0000000000000003 00000000fff9cb3c 0000000001b42e30 0000000000000000
GPR20: 000000000072b0f0 0000000000000000 c000000002117c00 00000000007401c0
GPR24: c00000003bd32800 c00000000bec0e00 00000007fcabb000 c0000000020fd8b8
GPR28: c0000000010b0218 c00000003bd31a80 100000000080f032 c00000003bd31a80 NIP [c0000000000181c0] giveup_all+0x90/0x1d0
LR [c00000000001819c] giveup_all+0x6c/0x1d0

Call Trace:

[c00000008f6037a0] [000006a3de1de5ff] 0x6a3de1de5ff (unreliable) [c00000008f6037d0] [c000000000019fd0] __switch_to+0x150/0x570 [c00000008f603840] [c000000000e4115c] __schedule+0x32c/0x12a0 [c00000008f603970] [c000000000e424f4] preempt_schedule_irq+0x64/0xa0 [c00000008f6039a0] [c000000000028bb0] interrupt_exit_kernel_prepare+0x1f0/0x220 [c00000008f6039e0] [c00000000000cb58] interrupt_return_srr_kernel+0x8/0x124 --- interrupt: 900 at restore_user_regs+0x1b4/0x470

NIP:  c000000000031564 LR: c0000000000344a4 CTR: 0000000000000000
REGS: c00000008f603a10 TRAP: 0900   Tainted: G                T   (6.14.8-gentoo-P9)
MSR:  9000000000009032 <SF,HV,EE,ME,IR,DR,RI>  CR: 48048224  XER: 00000000
CFAR: 0000000000000000 IRQMASK: 0 
GPR00: c0000000000342d0 c00000008f603cb0 c00000000115b100 c00000008f603e80 
GPR04: 00000000fff9c020 0000000000000000 c0000000010b01b0 0000000002000000 
GPR08: 00000000fff9c400 00000000ffffffff 0000000000000002 0000000000000003 
GPR12: c0000000000341e0 c0000007ffff6800 0000000000000000 0000000000000000 
GPR16: 0000000000000003 00000000fff9cb3c 0000000001b42e30 0000000000000000 
GPR20: 000000000072b0f0 0000000000000000 0000000000740154 00000000007401c0 
GPR24: 000000000072b36a 0000000000000008 0000000001b53e95 c0000000010b0218 
GPR28: 000000000280d032 c0000000010b0218 00000000fff9c020 c00000008f603e80 

NIP [c000000000031564] restore_user_regs+0x1b4/0x470
LR [c0000000000344a4] compat_sys_sigreturn+0x2c4/0x310
--- interrupt: 900
[c00000008f603cb0] [c00000008f603cf0] 0xc00000008f603cf0 (unreliable) [c00000008f603cf0] [c0000000000342d0] compat_sys_sigreturn+0xf0/0x310 [c00000008f603d70] [c000000000029884] system_call_exception+0x364/0x370 [c00000008f603e50] [c00000000000c7d4] system_call_common+0xf4/0x258 --- interrupt: c01 at 0x5bb5e8

NIP:  00000000005bb5e8 LR: 00000000005bb5c4 CTR: 0000000000000000
REGS: c00000008f603e80 TRAP: 0c01   Tainted: G                T   (6.14.8-gentoo-P9)
MSR:  100000000080f032 <HV,VSX,EE,PR,FP,ME,IR,DR,RI>  CR: 24048222  XER: 00000000
IRQMASK: 0 
GPR00: 0000000000000003 00000000fff9cae0 00000000f79e4540 0000000000000000 
GPR04: 00000000fff9cb3c 0000000000000080 0000000001b607ec 0000000000000000 
GPR08: 00000000fff9cb3d 0000000000000000 0000000000000000 0000000000000000 
GPR12: 0000000000000000 000000000073feb4 0000000000000000 0000000000000000 
GPR16: 0000000000000003 00000000fff9cb3c 0000000001b42e30 0000000000000000 
GPR20: 000000000072b0f0 0000000000000000 0000000000740154 00000000007401c0 
GPR24: 000000000072b36a 0000000000000008 0000000001b53e95 00000000007401a8 
GPR28: 0000000000000000 0000000000000008 00000000006bffa4 00000000fff9cb10 
NIP [00000000005bb5e8] 0x5bb5e8
LR [00000000005bb5c4] 0x5bb5c4
--- interrupt: c01
Code: 7c0802a6 f8010040 4bffff11 77ca0080 39200000 4182001c 3d400200 39200001 614a2000 7fc85038 7c285000 7d20489e <0b090000> 73c92000 40820058 77de0200 
---[ end trace 0000000000000000 ]---

Kernel .config and full dmesg attached.

Regards,
Erhard

#1 lore raw

* Erhard Furtner <[email protected]> [2025-05-26 20:55:37]:

Hi Erhard,

Thanks for reporting.

Quoted 5 lines

Getting these from time to time when I run the machine for longer periods building:

[...]

------------[ cut here ]------------
WARNING: CPU: 12 PID: 44394 at arch/powerpc/kernel/process.c:437 giveup_all+0x90/0x1d0

Its a warning with says that the task's userspace MSR register has VSX set but not the VEC or FP.

Were you building the kernel or were you building something else. Can you paste the command you attempted?

Quoted 7 lines
Modules linked in: md5 md5_ppc sha512_generic cmac cifs cifs_arc4 dns_resolver nls_ucs2_utils cifs_md4 zram af_packet cfg80211 rfkill evdev input_leds hid_generic usbhid hid radeon ctr xts cbc aes_generic libaes ofpart vmx_crypto powernv_flash gf128mul drm_suballoc_helper xhci_pci i2c_algo_bit mtd backlight drm_ttm_helper ttm drm_exec xhci_hcd ibmpowernv drm_display_helper opal_prd hwmon at24 regmap_i2c usbcore usb_common
CPU: 12 UID: 250 PID: 44394 Comm: sh Tainted: G                T  6.14.8-gentoo-P9 #1
Tainted: [T]=RANDSTRUCT
Hardware name: T2P9D01 REV 1.01 POWER9 0x4e1202 opal:skiboot-bc106a0 PowerNV
NIP:  c0000000000181c0 LR: c00000000001819c CTR: c00000000018fe50
REGS: c00000008f603500 TRAP: 0700   Tainted: G                T   (6.14.8-gentoo-P9)
MSR:  9000000002823032 <SF,HV,VEC,VSX,FP,ME,IR,DR,RI>  CR: 84042822  XER: 20040000
Quoted 11 lines

CFAR: c000000000018110 IRQMASK: 3
GPR00: c000000000019fd0 c00000008f6037a0 c00000000115b100 9000000002803032
GPR04: c00000000bec0080 0000000000000000 c00000000213dec8 0000000004000000
GPR08: 0000000000002000 0000000000000001 0000000002002000 0000000000002000
GPR12: c00000000018ca30 c0000007ffff6800 0000000000000000 c00000003bd322c0
GPR16: 0000000000000003 00000000fff9cb3c 0000000001b42e30 0000000000000000
GPR20: 000000000072b0f0 0000000000000000 c000000002117c00 00000000007401c0
GPR24: c00000003bd32800 c00000000bec0e00 00000007fcabb000 c0000000020fd8b8
GPR28: c0000000010b0218 c00000003bd31a80 100000000080f032 c00000003bd31a80 NIP [c0000000000181c0] giveup_all+0x90/0x1d0
LR [c00000000001819c] giveup_all+0x6c/0x1d0

If this is happening with only the recent kernel and working with a previous kernel, do you happen to know the previous kernel version.
In which case, is there a possibility of doing a git bisect?

Signature · 2 lines
Thanks and Regards
Srikar Dronamraju
#2 lore raw
Quoted 11 lines · On Tue, 27 May 2025 14:19:13 +0530 Srikar Dronamraju <[email protected]>…
Quoted 5 lines

Getting these from time to time when I run the machine for longer periods building:

[...]

------------[ cut here ]------------
WARNING: CPU: 12 PID: 44394 at arch/powerpc/kernel/process.c:437 giveup_all+0x90/0x1d0  

Its a warning with says that the task's userspace MSR register has VSX set but not the VEC or FP.

Were you building the kernel or were you building something else. Can you paste the command you attempted?

I was doing an 'emerge -e @world' in Gentoo Linux and probably building a kernel in another shell. Noticed it only in the logs on the next day so I can't tell exactly which command triggered the issue.

But I will pay closer attention from now on.

Quoted 3 lines

If this is happening with only the recent kernel and working with a previous kernel, do you happen to know the previous kernel version.
In which case, is there a possibility of doing a git bisect?

I think I have not seen this in v6.13, certainly not in v6.12.

As I get this only from time to time bisecting will be hard. For that purpose I have yet to find a way to trigger it more reliably. But I'll take your hints and try!

Regards,
Erhard

#3 lore raw
Quoted 17 lines · Erhard Furtner
Quoted 11 lines · On Tue, 27 May 2025 14:19:13 +0530 Srikar Dronamraju <[email protected]>…
Quoted 5 lines

Getting these from time to time when I run the machine for longer periods building:

[...]

------------[ cut here ]------------
WARNING: CPU: 12 PID: 44394 at arch/powerpc/kernel/process.c:437 giveup_all+0x90/0x1d0  

Its a warning with says that the task's userspace MSR register has VSX set but not the VEC or FP.

Were you building the kernel or were you building something else. Can you paste the command you attempted?

I was doing an 'emerge -e @world' in Gentoo Linux and probably building a kernel in another shell. Noticed it only in the logs on the next day so I can't tell exactly which command triggered the issue.

Quoted 8 lines

But I will pay closer attention from now on.

Quoted 3 lines

If this is happening with only the recent kernel and working with a previous kernel, do you happen to know the previous kernel version.
In which case, is there a possibility of doing a git bisect?

I think I have not seen this in v6.13, certainly not in v6.12.

I did go through the git log from v6.12 till v6.15-rc7 and I dont see any direct changes that could affect VSX VEC or FP changes in kernel.

On a side note, Was there any significant userspace updates like library, compiler updates from when you saw it working to now?

Signature · 2 lines
Thanks and Regards
Srikar Dronamraju
#4 lore raw
Quoted 25 lines · On Thu, 29 May 2025 10:41:22 +0530 Srikar Dronamraju <[email protected]>…
Quoted 23 lines · Erhard Furtner
Quoted 11 lines · On Tue, 27 May 2025 14:19:13 +0530 Srikar Dronamraju <[email protected]>…
Quoted 5 lines

Getting these from time to time when I run the machine for longer periods building:

[...]

------------[ cut here ]------------
WARNING: CPU: 12 PID: 44394 at arch/powerpc/kernel/process.c:437 giveup_all+0x90/0x1d0    

Its a warning with says that the task's userspace MSR register has VSX set but not the VEC or FP.

Were you building the kernel or were you building something else. Can you paste the command you attempted?

I was doing an 'emerge -e @world' in Gentoo Linux and probably building a kernel in another shell. Noticed it only in the logs on the next day so I can't tell exactly which command triggered the issue.

But I will pay closer attention from now on.

Quoted 3 lines

If this is happening with only the recent kernel and working with a previous kernel, do you happen to know the previous kernel version.
In which case, is there a possibility of doing a git bisect?

Quoted 8 lines
Quoted 2 lines

I think I have not seen this in v6.13, certainly not in v6.12.

I did go through the git log from v6.12 till v6.15-rc7 and I dont see any direct changes that could affect VSX VEC or FP changes in kernel.

On a side note, Was there any significant userspace updates like library, compiler updates from when you saw it working to now?

Looks like these warnings easily happen when I build stuff with GCC 15, currently on my Gentoo Linux musl ppc partition. No kernel builds, just emerging regular Gentoo ebuilds.

I'll sort out whether I see this on GCC 14 too and/or glibc partitions too. I'll report back when I know a bit more and maybe found a good starting point for a bisect.

Regards,
Erhard