some kernel exceptions
During the recent testing on the linux-4.19.89-ipipe-9-xenomai-3.1 (linux-4.19.89, ipipe-core-4.19.89-x86-9.patch, xenomai 3.1), the kernel outputs some exception messages, as follows.
Please give me some hints!
Thanks a lot.
[ 5228.358085] perf: interrupt took too long (2504 > 2500), lowering kernel.perf_event_max_sample_rate to 79750
[13323.899759] perf: interrupt took too long (3137 > 3130), lowering kernel.perf_event_max_sample_rate to 63750 [62540.659725] hrtimer: interrupt took 12379 ns [63405.661958] perf: interrupt took too long (3927 > 3921), lowering kernel.perf_event_max_sample_rate to 50750 [131204.150039] perf: interrupt took too long (5012 > 4908), lowering kernel.perf_event_max_sample_rate to 39750 [166021.881707] BUG: unable to handle kernel paging request at 00000000000a22e8 [166021.889579] PGD 0 P4D 0 [166021.892503] Oops: 0000 [#1] PREEMPT SMP PTI [166021.897268] CPU: 2 PID: 1604 Comm: RunCommandActor Kdump: loaded Tainted: P O 4.19.89-ipipe-9-xenomai-3.1-20201027 #1 [166021.910661] Hardware name: Intel Corporation S2600CWR/S2600CWR, BIOS SE5C610.86B.01.01.0022.C2.062820171903 06/28/2017 [166021.922696] I-pipe domain: Linux [166021.926394] RIP: a2260:0xffff88866761c560 [166021.930965] Code: 00 00 00 00 00 00 00 00 00 00 c0 8f 6a 67 86 88 ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <01> 00 00 00 00 00 00 00 01 01 00 00 00 00 00 00 02 00 00 00 00 00 [166021.952016] RSP: 81037f07:00000000000a2260 EFLAGS: ffff88866761c560 ORIG_RAX: ffffffff8111953e [166021.961726] RAX: 00000000000a2260 RBX: 0000000000000002 RCX: ffffffff828021c0 [166021.969786] RDX: ffff88866761c560 RSI: 0000000000000000 RDI: 0000000000000000 [166021.977847] RBP: ffff8886676a4540 R08: 000000000005f3e0 R09: ffffffff811838cb [166021.985909] R10: ffffffff8117cddc R11: 0000000000000002 R12: ffff8886676a5d08 [166021.993969] R13: ffffe8f9ff8077d8 R14: ffff8886676a4540 R15: ffffffff811838cb [166022.002030] FS: 00007f73c6ffd700(0000) GS:ffff888667600000(0000) knlGS:0000000000000000 [166022.011157] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [166022.017666] CR2: 00000000000a22e8 CR3: 0000000c29cf8004 CR4: 00000000001606e0 [166022.025720] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [166022.033781] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [166022.041843] Call Trace: [166022.044667] Modules linked in: fuse mod_samo(PO) mod_drxu(PO) mod_stcu(PO) arc4 ecb md4 sha512_ssse3 sha512_generic cmac nls_utf8 cifs ccm dns_resolver fscache intel_rapl sb_edac x86_pkg_temp_thermal intel_powerclamp coretemp kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd cryptd joydev glue_helper intel_cstate mgag200 ttm drm_kms_helper drm fb_sys_fops iTCO_wdt iTCO_vendor_support lpc_ich intel_uncore syscopyarea evdev ipmi_si ipmi_devintf mfd_core mei_me sysfillrect i2c_i801 ipmi_msghandler mxm_wmi intel_rapl_perf snd_pcsp snd_pcm snd_timer snd soundcore sysimgblt ioatdma mei acpi_power_meter wmi button ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto dm_mod i40evf atlantic i40e ixgb e1000e e1000 e100 mii vmw_pvscsi vmxnet3 sg sd_mod [166022.124033] hid_generic usbhid hid ahci libahci xhci_pci ehci_pci libata xhci_hcd ehci_hcd crc32c_intel igb ixgbe i2c_algo_bit usbcore scsi_mod mdio dca
[166022.139480] CR2: 00000000000a22e8
[184723.509341] BUG: unable to handle kernel paging request at 00000000000a22e8 [184723.516418] BUG: unable to handle kernel paging request at 0000000000048044 [184723.523453] PGD 0 P4D 0 [184723.526072] Oops: 0010 [#1] PREEMPT SMP PTI [184723.530336] CPU: 2 PID: 4763 Comm: RunCommandActor Kdump: loaded Tainted: P O 4.19.89-ipipe-9-xenomai-3.1-20201027 #1 [184723.542312] Hardware name: Supermicro Kontron C612XS1/Kontron C612XS1, BIOS 2.0a.V2 07/04/2021 [184723.550996] I-pipe domain: Linux [184723.554308] RIP: 0010:0x48044 [184723.557360] Code: Bad RIP value. [184723.560669] RSP: 0018:ffff88885fa03ed0 EFLAGS: 00051046 [184723.565972] RAX: ffff88885fa5f3e0 RBX: ffffffffa07ed4a8 RCX: ffff88885f8a4540 [184723.573184] RDX: 0000000000000000 RSI: ffffffff81e0f0a7 RDI: 000000000000000b [184723.580394] RBP: 0000000000000000 R08: 0000000000000002 R09: 0000000000000a7e [184723.587604] R10: 000000000000000f R11: ffffffff825b1eee R12: dead000000000200 [184723.594815] R13: dead000000000100 R14: ffffffffa07ed480 R15: ffffc90003b5fa40 [184723.602028] FS: 00007f4ad57fa700(0000) GS:ffff88885fa00000(0000) knlGS:0000000000000000 [184723.610190] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [184723.616014] CR2: 000000000004801a CR3: 0000000813a66001 CR4: 00000000001606e0 [184723.623225] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [184723.630435] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [184723.637645] Call Trace: [184723.640178] <IRQ> [184723.642277] ? xnthread_switch_fpu+0x21/0x30 [184723.646636] ? ___xnsched_run.part.68+0x1fb/0x460 [184723.651426] ? xnintr_core_clock_handler+0x20d/0x310 [184723.656471] ? ___xnsched_run.part.68+0x120/0x460 [184723.661257] ? __ipipe_dispatch_irq+0x120/0x1b0 [184723.665876] ? __ipipe_handle_irq+0x67/0x1e0 [184723.670226] ? common_interrupt+0xf/0x2c [184723.674229] </IRQ> [184723.676412] WARNING: stack recursion on stack type 2 [184723.676413] Modules linked in: mod_daconrt(PO) mod_daco(PO) mod_pgcu(PO) mod_tsmu(PO) mod_scc(PO) fuse arc4 ecb md4 sha512_ssse3 sha512_generic cmac nls_utf8 cifs ccm dns_resolver fscache intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd cryptd glue_helper intel_cstate intel_uncore intel_rapl_perf snd_hda_codec_realtek snd_hda_codec_generic iTCO_wdt iTCO_vendor_support joydev snd_hda_intel ast evdev snd_hda_codec ttm snd_pcsp drm_kms_helper i2c_i801 snd_hda_core drm snd_hwdep fb_sys_fops syscopyarea sysfillrect snd_pcm sysimgblt snd_timer snd lpc_ich soundcore mfd_core wmi ipmi_si ipmi_devintf ipmi_msghandler button ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto dm_mod [184723.752393] hid_generic usbhid hid i40evf atlantic ixgbe mdio ixgb e1000e e1000 e100 mii vmw_pvscsi vmxnet3 sg sd_mod ahci xhci_pci libahci ehci_pci libata igb ehci_hcd i2c_algo_bit xhci_hcd scsi_mod dca crc32c_intel usbcore i40e [last unloaded: mod_scc] [184723.775041] CR2: 0000000000048044
Quoted 5 lines · Yxian.Yao
During the recent testing on the linux-4.19.89-ipipe-9-xenomai-3.1 (linux-4.19.89, ipipe-core-4.19.89-x86-9.patch, xenomai 3.1), the kernel outputs some exception messages, as follows.
Please give me some hints!
Are you using the perf tool here?
Also, can you check if the issue persists with a recent dovetail kernel (5.15 or 5.10)? Or are you locked into these versions technically?
Jan
Quoted 71 lines
Thanks a lot.
[ 5228.358085] perf: interrupt took too long (2504 > 2500), lowering kernel.perf_event_max_sample_rate to 79750
[13323.899759] perf: interrupt took too long (3137 > 3130), lowering kernel.perf_event_max_sample_rate to 63750 [62540.659725] hrtimer: interrupt took 12379 ns [63405.661958] perf: interrupt took too long (3927 > 3921), lowering kernel.perf_event_max_sample_rate to 50750 [131204.150039] perf: interrupt took too long (5012 > 4908), lowering kernel.perf_event_max_sample_rate to 39750 [166021.881707] BUG: unable to handle kernel paging request at 00000000000a22e8 [166021.889579] PGD 0 P4D 0 [166021.892503] Oops: 0000 [#1] PREEMPT SMP PTI [166021.897268] CPU: 2 PID: 1604 Comm: RunCommandActor Kdump: loaded Tainted: P O 4.19.89-ipipe-9-xenomai-3.1-20201027 #1 [166021.910661] Hardware name: Intel Corporation S2600CWR/S2600CWR, BIOS SE5C610.86B.01.01.0022.C2.062820171903 06/28/2017 [166021.922696] I-pipe domain: Linux [166021.926394] RIP: a2260:0xffff88866761c560 [166021.930965] Code: 00 00 00 00 00 00 00 00 00 00 c0 8f 6a 67 86 88 ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <01> 00 00 00 00 00 00 00 01 01 00 00 00 00 00 00 02 00 00 00 00 00 [166021.952016] RSP: 81037f07:00000000000a2260 EFLAGS: ffff88866761c560 ORIG_RAX: ffffffff8111953e [166021.961726] RAX: 00000000000a2260 RBX: 0000000000000002 RCX: ffffffff828021c0 [166021.969786] RDX: ffff88866761c560 RSI: 0000000000000000 RDI: 0000000000000000 [166021.977847] RBP: ffff8886676a4540 R08: 000000000005f3e0 R09: ffffffff811838cb [166021.985909] R10: ffffffff8117cddc R11: 0000000000000002 R12: ffff8886676a5d08 [166021.993969] R13: ffffe8f9ff8077d8 R14: ffff8886676a4540 R15: ffffffff811838cb [166022.002030] FS: 00007f73c6ffd700(0000) GS:ffff888667600000(0000) knlGS:0000000000000000 [166022.011157] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [166022.017666] CR2: 00000000000a22e8 CR3: 0000000c29cf8004 CR4: 00000000001606e0 [166022.025720] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [166022.033781] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [166022.041843] Call Trace: [166022.044667] Modules linked in: fuse mod_samo(PO) mod_drxu(PO) mod_stcu(PO) arc4 ecb md4 sha512_ssse3 sha512_generic cmac nls_utf8 cifs ccm dns_resolver fscache intel_rapl sb_edac x86_pkg_temp_thermal intel_powerclamp coretemp kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd cryptd joydev glue_helper intel_cstate mgag200 ttm drm_kms_helper drm fb_sys_fops iTCO_wdt iTCO_vendor_support lpc_ich intel_uncore syscopyarea evdev ipmi_si ipmi_devintf mfd_core mei_me sysfillrect i2c_i801 ipmi_msghandler mxm_wmi intel_rapl_perf snd_pcsp snd_pcm snd_timer snd soundcore sysimgblt ioatdma mei acpi_power_meter wmi button ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto dm_mod i40evf atlantic i40e ixgb e1000e e1000 e100 mii vmw_pvscsi vmxnet3 sg sd_mod [166022.124033] hid_generic usbhid hid ahci libahci xhci_pci ehci_pci libata xhci_hcd ehci_hcd crc32c_intel igb ixgbe i2c_algo_bit usbcore scsi_mod mdio dca[166022.139480] CR2: 00000000000a22e8[184723.509341] BUG: unable to handle kernel paging request at 00000000000a22e8 [184723.516418] BUG: unable to handle kernel paging request at 0000000000048044 [184723.523453] PGD 0 P4D 0 [184723.526072] Oops: 0010 [#1] PREEMPT SMP PTI [184723.530336] CPU: 2 PID: 4763 Comm: RunCommandActor Kdump: loaded Tainted: P O 4.19.89-ipipe-9-xenomai-3.1-20201027 #1 [184723.542312] Hardware name: Supermicro Kontron C612XS1/Kontron C612XS1, BIOS 2.0a.V2 07/04/2021 [184723.550996] I-pipe domain: Linux [184723.554308] RIP: 0010:0x48044 [184723.557360] Code: Bad RIP value. [184723.560669] RSP: 0018:ffff88885fa03ed0 EFLAGS: 00051046 [184723.565972] RAX: ffff88885fa5f3e0 RBX: ffffffffa07ed4a8 RCX: ffff88885f8a4540 [184723.573184] RDX: 0000000000000000 RSI: ffffffff81e0f0a7 RDI: 000000000000000b [184723.580394] RBP: 0000000000000000 R08: 0000000000000002 R09: 0000000000000a7e [184723.587604] R10: 000000000000000f R11: ffffffff825b1eee R12: dead000000000200 [184723.594815] R13: dead000000000100 R14: ffffffffa07ed480 R15: ffffc90003b5fa40 [184723.602028] FS: 00007f4ad57fa700(0000) GS:ffff88885fa00000(0000) knlGS:0000000000000000 [184723.610190] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [184723.616014] CR2: 000000000004801a CR3: 0000000813a66001 CR4: 00000000001606e0 [184723.623225] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [184723.630435] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [184723.637645] Call Trace: [184723.640178] <IRQ> [184723.642277] ? xnthread_switch_fpu+0x21/0x30 [184723.646636] ? ___xnsched_run.part.68+0x1fb/0x460 [184723.651426] ? xnintr_core_clock_handler+0x20d/0x310 [184723.656471] ? ___xnsched_run.part.68+0x120/0x460 [184723.661257] ? __ipipe_dispatch_irq+0x120/0x1b0 [184723.665876] ? __ipipe_handle_irq+0x67/0x1e0 [184723.670226] ? common_interrupt+0xf/0x2c [184723.674229] </IRQ> [184723.676412] WARNING: stack recursion on stack type 2 [184723.676413] Modules linked in: mod_daconrt(PO) mod_daco(PO) mod_pgcu(PO) mod_tsmu(PO) mod_scc(PO) fuse arc4 ecb md4 sha512_ssse3 sha512_generic cmac nls_utf8 cifs ccm dns_resolver fscache intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd cryptd glue_helper intel_cstate intel_uncore intel_rapl_perf snd_hda_codec_realtek snd_hda_codec_generic iTCO_wdt iTCO_vendor_support joydev snd_hda_intel ast evdev snd_hda_codec ttm snd_pcsp drm_kms_helper i2c_i801 snd_hda_core drm snd_hwdep fb_sys_fops syscopyarea sysfillrect snd_pcm sysimgblt snd_timer snd lpc_ich soundcore mfd_core wmi ipmi_si ipmi_devintf ipmi_msghandler button ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto dm_mod [184723.752393] hid_generic usbhid hid i40evf atlantic ixgbe mdio ixgb e1000e e1000 e100 mii vmw_pvscsi vmxnet3 sg sd_mod ahci xhci_pci libahci ehci_pci libata igb ehci_hcd i2c_algo_bit xhci_hcd scsi_mod dca crc32c_intel usbcore i40e [last unloaded: mod_scc] [184723.775041] CR2: 0000000000048044
Signature · 2 lines
Siemens AG, Technology Competence Center Embedded Linux
Hi Jan,
This is the only kernel version. Besides, these problems are hard to reproduce. Whether some configurations related to perf are enabled in the kernel? The following are the configuration items for perf:
CONFIG_CGROUP_PERF=yCONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=yCONFIG_HAVE_PERF_EVENTS=y
# Kernel Performance Events And CountersCONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
# Performance monitoringCONFIG_PERF_EVENTS_INTEL_UNCORE=mCONFIG_PERF_EVENTS_INTEL_RAPL=mCONFIG_PERF_EVENTS_INTEL_CSTATE=m
# CONFIG_PERF_EVENTS_AMD_POWER is not set
# CONFIG_PCIEASPM_PERFORMANCE is not setCONFIG_HAVE_PERF_EVENTS_NMI=yCONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=yCONFIG_HAVE_PERF_REGS=yCONFIG_HAVE_PERF_USER_STACK_DUMP=yCONFIG_CLS_U32_PERF=y
# CONFIG_DEVFREQ_GOV_PERFORMANCE is not set
# Performance monitor supportCONFIG_HARDLOCKUP_DETECTOR_PERF=y
# CONFIG_RCU_PERF_TEST is not set
Quoted 90 lines · Jan Kiszka
Quoted 5 lines · Yxian.Yao
During the recent testing on the linux-4.19.89-ipipe-9-xenomai-3.1 (linux-4.19.89, ipipe-core-4.19.89-x86-9.patch, xenomai 3.1), the kernel outputs some exception messages, as follows.
Please give me some hints!Are you using the perf tool here?
Also, can you check if the issue persists with a recent dovetail kernel (5.15 or 5.10)? Or are you locked into these versions technically?
Jan
Quoted 71 lines
Thanks a lot.
[ 5228.358085] perf: interrupt took too long (2504 > 2500), lowering kernel.perf_event_max_sample_rate to 79750
[13323.899759] perf: interrupt took too long (3137 > 3130), lowering kernel.perf_event_max_sample_rate to 63750 [62540.659725] hrtimer: interrupt took 12379 ns [63405.661958] perf: interrupt took too long (3927 > 3921), lowering kernel.perf_event_max_sample_rate to 50750 [131204.150039] perf: interrupt took too long (5012 > 4908), lowering kernel.perf_event_max_sample_rate to 39750 [166021.881707] BUG: unable to handle kernel paging request at 00000000000a22e8 [166021.889579] PGD 0 P4D 0 [166021.892503] Oops: 0000 [#1] PREEMPT SMP PTI [166021.897268] CPU: 2 PID: 1604 Comm: RunCommandActor Kdump: loaded Tainted: P O 4.19.89-ipipe-9-xenomai-3.1-20201027 #1 [166021.910661] Hardware name: Intel Corporation S2600CWR/S2600CWR, BIOS SE5C610.86B.01.01.0022.C2.062820171903 06/28/2017 [166021.922696] I-pipe domain: Linux [166021.926394] RIP: a2260:0xffff88866761c560 [166021.930965] Code: 00 00 00 00 00 00 00 00 00 00 c0 8f 6a 67 86 88 ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <01> 00 00 00 00 00 00 00 01 01 00 00 00 00 00 00 02 00 00 00 00 00 [166021.952016] RSP: 81037f07:00000000000a2260 EFLAGS: ffff88866761c560 ORIG_RAX: ffffffff8111953e [166021.961726] RAX: 00000000000a2260 RBX: 0000000000000002 RCX: ffffffff828021c0 [166021.969786] RDX: ffff88866761c560 RSI: 0000000000000000 RDI: 0000000000000000 [166021.977847] RBP: ffff8886676a4540 R08: 000000000005f3e0 R09: ffffffff811838cb [166021.985909] R10: ffffffff8117cddc R11: 0000000000000002 R12: ffff8886676a5d08 [166021.993969] R13: ffffe8f9ff8077d8 R14: ffff8886676a4540 R15: ffffffff811838cb [166022.002030] FS: 00007f73c6ffd700(0000) GS:ffff888667600000(0000) knlGS:0000000000000000 [166022.011157] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [166022.017666] CR2: 00000000000a22e8 CR3: 0000000c29cf8004 CR4: 00000000001606e0 [166022.025720] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [166022.033781] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [166022.041843] Call Trace: [166022.044667] Modules linked in: fuse mod_samo(PO) mod_drxu(PO) mod_stcu(PO) arc4 ecb md4 sha512_ssse3 sha512_generic cmac nls_utf8 cifs ccm dns_resolver fscache intel_rapl sb_edac x86_pkg_temp_thermal intel_powerclamp coretemp kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd cryptd joydev glue_helper intel_cstate mgag200 ttm drm_kms_helper drm fb_sys_fops iTCO_wdt iTCO_vendor_support lpc_ich intel_uncore syscopyarea evdev ipmi_si ipmi_devintf mfd_core mei_me sysfillrect i2c_i801 ipmi_msghandler mxm_wmi intel_rapl_perf snd_pcsp snd_pcm snd_timer snd soundcore sysimgblt ioatdma mei acpi_power_meter wmi button ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto dm_mod i40evf atlantic i40e ixgb e1000e e1000 e100 mii vmw_pvscsi vmxnet3 sg sd_mod [166022.124033] hid_generic usbhid hid ahci libahci xhci_pci ehci_pci libata xhci_hcd ehci_hcd crc32c_intel igb ixgbe i2c_algo_bit usbcore scsi_mod mdio dca[166022.139480] CR2: 00000000000a22e8[184723.509341] BUG: unable to handle kernel paging request at 00000000000a22e8 [184723.516418] BUG: unable to handle kernel paging request at 0000000000048044 [184723.523453] PGD 0 P4D 0 [184723.526072] Oops: 0010 [#1] PREEMPT SMP PTI [184723.530336] CPU: 2 PID: 4763 Comm: RunCommandActor Kdump: loaded Tainted: P O 4.19.89-ipipe-9-xenomai-3.1-20201027 #1 [184723.542312] Hardware name: Supermicro Kontron C612XS1/Kontron C612XS1, BIOS 2.0a.V2 07/04/2021 [184723.550996] I-pipe domain: Linux [184723.554308] RIP: 0010:0x48044 [184723.557360] Code: Bad RIP value. [184723.560669] RSP: 0018:ffff88885fa03ed0 EFLAGS: 00051046 [184723.565972] RAX: ffff88885fa5f3e0 RBX: ffffffffa07ed4a8 RCX: ffff88885f8a4540 [184723.573184] RDX: 0000000000000000 RSI: ffffffff81e0f0a7 RDI: 000000000000000b [184723.580394] RBP: 0000000000000000 R08: 0000000000000002 R09: 0000000000000a7e [184723.587604] R10: 000000000000000f R11: ffffffff825b1eee R12: dead000000000200 [184723.594815] R13: dead000000000100 R14: ffffffffa07ed480 R15: ffffc90003b5fa40 [184723.602028] FS: 00007f4ad57fa700(0000) GS:ffff88885fa00000(0000) knlGS:0000000000000000 [184723.610190] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [184723.616014] CR2: 000000000004801a CR3: 0000000813a66001 CR4: 00000000001606e0 [184723.623225] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [184723.630435] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [184723.637645] Call Trace: [184723.640178] <IRQ> [184723.642277] ? xnthread_switch_fpu+0x21/0x30 [184723.646636] ? ___xnsched_run.part.68+0x1fb/0x460 [184723.651426] ? xnintr_core_clock_handler+0x20d/0x310 [184723.656471] ? ___xnsched_run.part.68+0x120/0x460 [184723.661257] ? __ipipe_dispatch_irq+0x120/0x1b0 [184723.665876] ? __ipipe_handle_irq+0x67/0x1e0 [184723.670226] ? common_interrupt+0xf/0x2c [184723.674229] </IRQ> [184723.676412] WARNING: stack recursion on stack type 2 [184723.676413] Modules linked in: mod_daconrt(PO) mod_daco(PO) mod_pgcu(PO) mod_tsmu(PO) mod_scc(PO) fuse arc4 ecb md4 sha512_ssse3 sha512_generic cmac nls_utf8 cifs ccm dns_resolver fscache intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd cryptd glue_helper intel_cstate intel_uncore intel_rapl_perf snd_hda_codec_realtek snd_hda_codec_generic iTCO_wdt iTCO_vendor_support joydev snd_hda_intel ast evdev snd_hda_codec ttm snd_pcsp drm_kms_helper i2c_i801 snd_hda_core drm snd_hwdep fb_sys_fops syscopyarea sysfillrect snd_pcm sysimgblt snd_timer snd lpc_ich soundcore mfd_core wmi ipmi_si ipmi_devintf ipmi_msghandler button ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto dm_mod [184723.752393] hid_generic usbhid hid i40evf atlantic ixgbe mdio ixgb e1000e e1000 e100 mii vmw_pvscsi vmxnet3 sg sd_mod ahci xhci_pci libahci ehci_pci libata igb ehci_hcd i2c_algo_bit xhci_hcd scsi_mod dca crc32c_intel usbcore i40e [last unloaded: mod_scc] [184723.775041] CR2: 0000000000048044Signature · 2 lines
Siemens AG, Technology Competence Center Embedded Linux
Quoted 6 lines · Yxian.Yao
Hi Jan,
This is the only kernel version. Besides, these problems are hard to reproduce. Whether some configurations related to perf are enabled in the kernel?
No, I meant of you are calling "perf" in order to profile some applications. The pure activation of the related kernel features is not considered problematic, but some "perf" feature are if actively used.
Quoted 16 lines
The following are the configuration items for perf:
CONFIG_CGROUP_PERF=yCONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=yCONFIG_HAVE_PERF_EVENTS=y
# Kernel Performance Events And CountersCONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
# Performance monitoringCONFIG_PERF_EVENTS_INTEL_UNCORE=mCONFIG_PERF_EVENTS_INTEL_RAPL=mCONFIG_PERF_EVENTS_INTEL_CSTATE=m
# CONFIG_PERF_EVENTS_AMD_POWER is not set
# CONFIG_PCIEASPM_PERFORMANCE is not setCONFIG_HAVE_PERF_EVENTS_NMI=y
Quoted 8 lines
CONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=yCONFIG_HAVE_PERF_REGS=yCONFIG_HAVE_PERF_USER_STACK_DUMP=yCONFIG_CLS_U32_PERF=y
# CONFIG_DEVFREQ_GOV_PERFORMANCE is not set
# Performance monitor supportCONFIG_HARDLOCKUP_DETECTOR_PERF=y
# CONFIG_RCU_PERF_TEST is not set
If you do not need those features, you may also try disabling them, if that changes the picture. Also compare your config in this regard to the config we test in xenomai-images (just a reference, not as the only possibly valid config, by far).
Jan
Signature · 2 lines
Siemens AG, Technology Competence Center Embedded Linux
Hi Jan,
Quoted 5 lines
At 2022-10-10 22:13:51, "Jan Kiszka" <[email protected]> wrote:
No, I meant of you are calling "perf" in order to profile some applications. The pure activation of the related kernel features is not considered problematic, but some "perf" feature are if actively used.
My application software does not use perf.
I update the dual kernel after installing Debian 10.3, install the xenomai cobalt library, and then run my application software. How can I determine whether other applications in the system use perf? Are these kernel exceptions related to perf?
Quoted 4 lines
If you do not need those features, you may also try disabling them, if that changes the picture. Also compare your config in this regard to the config we test in xenomai-images (just a reference, not as the only possibly valid config, by far).
Where can I get the xenomai-images and the config? In addition, the kernel has a lot of configuration items. How can I determine which ones should be turned on and off? Is there a detailed instruction manual?
Thanks.
Quoted 5 lines · Yxian.Yao
Hi Jan,
Quoted 2 lines
At 2022-10-10 22:13:51, "Jan Kiszka" <[email protected]> wrote:
Quoted 8 lines
Quoted 3 lines
No, I meant of you are calling "perf" in order to profile some applications. The pure activation of the related kernel features is not considered problematic, but some "perf" feature are if actively used.
My application software does not use perf.
I update the dual kernel after installing Debian 10.3, install the xenomai cobalt library, and then run my application software. How can I determine whether other applications in the system use perf?
Applications usually do not call those services directly - like you don't start the debugger from a normal application.
Quoted 2 lines
Are these kernel exceptions related to perf?
The warnings start with perf, but I might have been too quick to shoot at it. The real issue is definitely the page fault. You don't have a stack backtrace for the first one?
Also note that your kernel is not just old /wrt to its base version (4.19), it's also not using the latest I-pipe patch for that (ipipe-core-4.19.252-cip78-x86-23).
Quoted 7 lines
Quoted 5 lines
If you do not need those features, you may also try disabling them, if that changes the picture. Also compare your config in this regard to the config we test in xenomai-images (just a reference, not as the only possibly valid config, by far).
Where can I get the xenomai-images and the config?
Quoted 4 lines
In addition, the kernel has a lot of configuration items. How can I determine which ones should be turned on and off? Is there a detailed instruction manual?
The key switches are warned about. But that does not exclude that some sleeping bug is only surfaced by turning on or off some feature that others usually do not touch.
Jan
Signature · 2 lines
Siemens AG, Technology Competence Center Embedded Linux
Hi Jan,
Quoted 3 lines
The warnings start with perf, but I might have been too quick to shoot at it. The real issue is definitely the page fault. You don't have a stack backtrace for the first one?
No, these are the last messages that the kernel outputs.
The second exception is the same as the first one?
The logs are printed with "BUG: unable to handle kernel painting request at 00000000000a22e8"
Quoted 3 lines
Also note that your kernel is not just old /wrt to its base version (4.19), it's also not using the latest I-pipe patch for that (ipipe-core-4.19.252-cip78-x86-23).
What is the difference between cip and no cip on ipipe core?
Quoted 3 lines
The key switches are warned about. But that does not exclude that some sleeping bug is only surfaced by turning on or off some feature that others usually do not touch.
How to further determine what caused it?
Thanks.
Quoted 11 lines · Yxian.Yao
Hi Jan,
Quoted 3 lines
The warnings start with perf, but I might have been too quick to shoot at it. The real issue is definitely the page fault. You don't have a stack backtrace for the first one?
No, these are the last messages that the kernel outputs.
The second exception is the same as the first one?
The logs are printed with "BUG: unable to handle kernel painting request at00000000000a22e8"
The issue is that you generally cannot trust succeeding BUG messages after the first one. They may point into the wrong direction, not to the root cause.
Quoted 7 lines
Quoted 4 lines
Also note that your kernel is not just old /wrt to its base version (4.19), it's also not using the latest I-pipe patch for that (ipipe-core-4.19.252-cip78-x86-23).
What is the difference between cip and no cip on ipipe core?
At some point, we moved from 4.19-LTS to 4.19-CIP as baseline for the I-pipe patches as the latter kernel will live longer (10 instead of 6 years). No further development was done on the 4.19-LTS branch you are sitting on, which is also missing some bug fixes to I-pipe since then.
Quoted 7 lines
Quoted 4 lines
The key switches are warned about. But that does not exclude that some sleeping bug is only surfaced by turning on or off some feature that others usually do not touch.
How to further determine what caused it?
Hard to say yet. Please re-try with the latest 4.19-ipipe release if possible and also check if something changes positively when you use the config from xenomai-images.
Jan
Signature · 2 lines
Siemens AG, Technology Competence Center Embedded Linux