Scx warn / error on pre login load

Hi,

There is an error that seems to repeat for different CPU cores.

kernel: ------------[ cut here ]------------
kernel: rq->balance_callback && rq->balance_callback != &balance_push_callback
kernel: WARNING: CPU: 5 PID: 2337 at kernel/sched/sched.h:1730 sched_balance_update_blocked_averages+0x5d1/0x600
kernel: Modules linked in: vfat fat intel_rapl_msr amd_atl intel_rapl_common snd_hda_codec_realtek kvm_amd snd_hda_scodec_component snd_hda_codec_generic kvm snd_hda_intel snd_usb_audio snd_intel_dspcfg crct10dif_pclmul crc32_pclmul snd_intel_sdw_acpi polyval_clmulni snd_usbmidi_lib polyval_generic snd_hda_codec snd_ump ghash_clmulni_intel eeepc_wmi ee1004 snd_rawmidi sha512_ssse3 snd_hda_core asus_wmi sha1_ssse3 snd_seq_device snd_hwdep asus_ec_sensors aesni_intel platform_profile i8042 gf128mul snd_pcm sparse_keymap crypto_simd serio cryptd snd_timer rfkill rapl wmi_bmof i2c_piix4 pcspkr snd k10temp i2c_smbus soundcore igc ccp mc ptp pps_core joydev mousedev leetmouse(OE) mac_hid pkcs8_key_parser ntsync(OE) crypto_user dm_mod loop nfnetlink zram 842_decompress 842_compress lz4hc_compress lz4_compress ip_tables x_tables btrfs libcrc32c crc32c_generic raid6_pq xor crc32c_intel sha256_ssse3 nvme nvme_core nvme_auth hid_cmedia nvidia_drm(OE) drm_ttm_helper ttm nvidia_uvm(OE) hid_generic nvidia_modeset(OE) usbhid
kernel:  video mxm_wmi wmi nvidia(OE)
kernel: CPU: 5 UID: 0 PID: 2337 Comm: sugov:5 Tainted: G        W  OE      6.12.1-2-cachyos #1 2d3b28d53a0e826fba3f3f9fa92a6e2e3d10de0e
kernel: Tainted: [W]=WARN, [O]=OOT_MODULE, [E]=UNSIGNED_MODULE
kernel: Hardware name: System manufacturer System Product Name/ROG STRIX X570-E GAMING, BIOS 5013 03/18/2024
kernel: Sched_ext: lavd (enabling+all)
kernel: RIP: 0010:sched_balance_update_blocked_averages+0x5d1/0x600
kernel: Code: 5d 41 5e 41 5f 5d e9 a9 63 1b 01 cc b0 01 89 44 24 08 e9 f3 fa ff ff c6 05 1d cc 0c 02 01 48 c7 c7 a5 ff 2d 9a e8 4f 94 f9 ff <0f> 0b e9 90 fa ff ff c6 05 ef cb 0c 02 01 48 89 fb 48 c7 c7 a5 8c
kernel: RSP: 0018:ffffa8dae1d8fa20 EFLAGS: 00010046
kernel: RAX: fd273ec7e2ced800 RBX: ffff9d754ec80000 RCX: 0000000000000027
kernel: RDX: 00000000ffffefff RSI: 0000000000000002 RDI: ffff9d754eca1948
kernel: RBP: ffffa8dae1d8fbe8 R08: 0000000000000fff R09: ffffffff9ac5aad0
kernel: R10: 0000000000002ffd R11: 0000000000000004 R12: 00000000fffb8868
kernel: R13: 0000000183bd4492 R14: ffff9d754ecb66c0 R15: 0000000000000005
kernel: FS:  0000000000000000(0000) GS:ffff9d754ec80000(0000) knlGS:0000000000000000
kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kernel: CR2: 000055fdec9a8000 CR3: 000000010ed02000 CR4: 0000000000f50ef0
kernel: PKRU: 55555554
kernel: Call Trace:
kernel:  <TASK>
kernel:  ? __warn+0xd5/0x1d0
kernel:  ? sched_balance_update_blocked_averages+0x5d1/0x600
kernel:  ? report_bug+0x144/0x1f0
kernel:  ? sched_balance_update_blocked_averages+0x5d1/0x600
kernel:  ? handle_bug+0x6a/0x90
kernel:  ? exc_invalid_op+0x1a/0x50
kernel:  ? asm_exc_invalid_op+0x1a/0x20
kernel:  ? sched_balance_update_blocked_averages+0x5d1/0x600
kernel:  ? __schedule+0x5e9/0x1410
kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
kernel:  ? handle_bug+0x6a/0x90
kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
kernel:  sched_balance_newidle+0xed/0x3b0
kernel:  balance_fair.llvm.15703019331774720347+0x25/0x40
kernel:  __pick_next_task+0x97/0x2a0
kernel:  __schedule+0x269/0x1410
kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
kernel:  ? ktime_get+0x54/0xe0
kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
kernel:  schedule+0x6e/0xf0
kernel:  schedule_hrtimeout_range_clock+0xe6/0x180
kernel:  ? __pfx_hrtimer_wakeup+0x10/0x10
kernel:  usleep_range_state+0x77/0xb0
kernel:  check_pcc_chan+0x7e/0x110
kernel:  send_pcc_cmd+0x17b/0x280
kernel:  cppc_set_perf+0x22c/0x340
kernel:  shmem_update_perf+0x38/0x60
kernel:  amd_pstate_update+0x110/0x330
kernel:  ? cpufreq_freq_transition_begin+0x137/0x170
kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
kernel:  ? __wake_up+0x93/0xb0
kernel:  amd_pstate_update_freq+0x183/0x1d0
kernel:  ? __pfx_sugov_work+0x10/0x10
kernel:  sugov_work+0x4a/0x60
kernel:  kthread_worker_fn+0xee/0x240
kernel:  ? __pfx_kthread_worker_fn+0x10/0x10
kernel:  kthread+0x14d/0x170
kernel:  ? __pfx_kthread+0x10/0x10
kernel:  ret_from_fork+0x3a/0x50
kernel:  ? __pfx_kthread+0x10/0x10
kernel:  ret_from_fork_asm+0x1a/0x30
kernel:  </TASK>
kernel: ---[ end trace 0000000000000000 ]---
# List of scx_schedulers: scx_bpfland scx_central scx_flash scx_lavd scx_layered scx_nest scx_qmap scx_rlfifo scx_rustland scx_rusty scx_simple scx_userland
SCX_SCHEDULER=scx_lavd --performance --no-core-compaction

# Set custom flags for each scheduler, below is an example of how to use
#SCX_FLAGS='-k -m performance'
nov 26 18:37:59 desktop-pc systemd[1]: Started Start scx_scheduler.
nov 26 18:37:59 desktop-pc bash[2267]: 21:37:59 [INFO] scx_lavd scheduler is initialized (build ID: 1.0.6-g607dfab-dirty x86_64-unknown-linux-gnu)
nov 26 18:37:59 desktop-pc bash[2267]: 21:37:59 [INFO] scx_lavd scheduler starts running.

System are fully updated to this date.

If I understand this correctly, this seems to happen during boot?

Yes. I didnt confirm, but I also saw a similar quickly distinct message when leaving the os for a reboot or shutdown.

I have been getting this too, I’ll forward this to the scx devs and follow up with you once I get a response.

1 Like

Dont worry about it. I’ve been trying KDE, first install, it triggered the error, I dont see it now on the second. But what I reported was from gnome.

If I am not mistaken what triggered it was some sort of bad reboot / shutdown or crash. I wasnt paying too much attention, so not entirely sure that’s what it was.

Just started on the recent KDE install.

[    6.757205] sched_ext: "lavd" does not implement cgroup cpu.weight
[    6.758198] NOHZ tick-stop error: local softirq work is pending, handler #200!!!
[    6.758296] NOHZ tick-stop error: local softirq work is pending, handler #280!!!
[    6.758304] NOHZ tick-stop error: local softirq work is pending, handler #200!!!
[    6.758527] ------------[ cut here ]------------
[    6.758530] rq->balance_callback && rq->balance_callback != &balance_push_callback
[    6.758533] WARNING: CPU: 4 PID: 2318 at kernel/sched/sched.h:1730 __schedule+0x5e9/0x1410
[    6.758540] Modules linked in: vfat fat amd_atl intel_rapl_msr intel_rapl_common snd_hda_codec_realtek kvm_amd snd_hda_scodec_component snd_hda_codec_generic kvm snd_hda_intel crct10dif_pclmul crc32_pclmul snd_intel_dspcfg polyval_clmulni snd_usb_audio snd_intel_sdw_acpi polyval_generic ghash_clmulni_intel snd_hda_codec eeepc_wmi snd_usbmidi_lib sha512_ssse3 asus_wmi sha1_ssse3 snd_ump snd_hda_core aesni_intel platform_profile snd_rawmidi ee1004 i8042 gf128mul asus_ec_sensors crypto_simd snd_hwdep snd_seq_device sparse_keymap cryptd serio snd_pcm rapl rfkill wmi_bmof pcspkr snd_timer k10temp snd igc i2c_piix4 mousedev i2c_smbus joydev soundcore ccp ptp mc leetmouse(OE) pps_core mac_hid pkcs8_key_parser ntsync(OE) i2c_dev crypto_user dm_mod loop nfnetlink zram 842_decompress 842_compress lz4hc_compress lz4_compress ip_tables x_tables btrfs libcrc32c crc32c_generic raid6_pq xor crc32c_intel nvme sha256_ssse3 nvme_core nvme_auth nvidia_drm(OE) drm_ttm_helper ttm nvidia_uvm(OE) hid_cmedia hid_generic usbhid
[    6.758629]  nvidia_modeset(OE) mxm_wmi video wmi nvidia(OE)
[    6.758636] CPU: 4 UID: 0 PID: 2318 Comm: sugov:4 Tainted: G           OE      6.12.1-2-cachyos #1 2d3b28d53a0e826fba3f3f9fa92a6e2e3d10de0e
[    6.758641] Tainted: [O]=OOT_MODULE, [E]=UNSIGNED_MODULE
[    6.758642] Hardware name: System manufacturer System Product Name/ROG STRIX X570-E GAMING, BIOS 5013 03/18/2024
[    6.758644] Sched_ext: lavd (enabling+all)
[    6.758645] RIP: 0010:__schedule+0x5e9/0x1410
[    6.758648] Code: 48 81 c4 90 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d e9 76 ed 2f 00 cc c6 05 d3 55 21 01 01 48 c7 c7 a5 ff 2d 9d e8 27 1e 0e ff <0f> 0b 41 8b 86 38 0c 00 00 e9 0c fb ff ff 48 89 df e8 c1 59 13 ff
[    6.758650] RSP: 0018:ffffb6afe1b6fb30 EFLAGS: 00010046
[    6.758653] RAX: 9e5a9b53970d3600 RBX: ffff96f112d7d1c0 RCX: 0000000000000027
[    6.758655] RDX: 00000000ffffefff RSI: 0000000000000002 RDI: ffff96f7cec21948
[    6.758657] RBP: ffffb6afe1b6fbe8 R08: 0000000000000fff R09: ffffffff9dc5aad0
[    6.758659] R10: 0000000000002ffd R11: 0000000000000004 R12: ffff96f112d7d1c0
[    6.758660] R13: ffffb6afc0850000 R14: ffff96f7cec366c0 R15: 0000000000000000
[    6.758662] FS:  0000000000000000(0000) GS:ffff96f7cec00000(0000) knlGS:0000000000000000
[    6.758664] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    6.758666] CR2: 0000719292dcf0a0 CR3: 000000010520e000 CR4: 0000000000f50ef0
[    6.758668] PKRU: 55555554
[    6.758670] Call Trace:
[    6.758671]  <TASK>
[    6.758674]  ? __warn+0xd5/0x1d0
[    6.758677]  ? __schedule+0x5e9/0x1410
[    6.758681]  ? report_bug+0x144/0x1f0
[    6.758684]  ? __schedule+0x5e9/0x1410
[    6.758687]  ? handle_bug+0x6a/0x90
[    6.758690]  ? exc_invalid_op+0x1a/0x50
[    6.758693]  ? asm_exc_invalid_op+0x1a/0x20
[    6.758698]  ? __schedule+0x5e9/0x1410
[    6.758701]  ? srso_alias_return_thunk+0x5/0xfbef5
[    6.758704]  ? srso_alias_return_thunk+0x5/0xfbef5
[    6.758706]  ? srso_alias_return_thunk+0x5/0xfbef5
[    6.758709]  ? ktime_get+0x54/0xe0
[    6.758712]  ? srso_alias_return_thunk+0x5/0xfbef5
[    6.758715]  ? srso_alias_return_thunk+0x5/0xfbef5
[    6.758718]  schedule+0x6e/0xf0
[    6.758721]  schedule_hrtimeout_range_clock+0xe6/0x180
[    6.758724]  ? __pfx_hrtimer_wakeup+0x10/0x10
[    6.758728]  usleep_range_state+0x77/0xb0
[    6.758732]  check_pcc_chan+0x7e/0x110
[    6.758737]  send_pcc_cmd+0x17b/0x280
[    6.758740]  cppc_set_perf+0x22c/0x340
[    6.758744]  shmem_update_perf+0x38/0x60
[    6.758748]  amd_pstate_update+0x110/0x330
[    6.758751]  ? cpufreq_freq_transition_begin+0x137/0x170
[    6.758754]  ? srso_alias_return_thunk+0x5/0xfbef5
[    6.758756]  ? __wake_up+0x93/0xb0
[    6.758760]  amd_pstate_update_freq+0x183/0x1d0
[    6.758764]  ? __pfx_sugov_work+0x10/0x10
[    6.758767]  sugov_work+0x4a/0x60
[    6.758771]  kthread_worker_fn+0xee/0x240
[    6.758774]  ? __pfx_kthread_worker_fn+0x10/0x10
[    6.758777]  kthread+0x14d/0x170
[    6.758780]  ? __pfx_kthread+0x10/0x10
[    6.758783]  ret_from_fork+0x3a/0x50
[    6.758786]  ? __pfx_kthread+0x10/0x10
[    6.758789]  ret_from_fork_asm+0x1a/0x30
[    6.758795]  </TASK>
[    6.758796] ---[ end trace 0000000000000000 ]---
[    6.758830] sched_ext: BPF scheduler "lavd" enabled
[    6.766187] sched_ext: kworker/2:2[240] has zero slice in pick_task_scx()