Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BORE: rq->clock_update_flags < RQCF_ACT_SKIP - BORE 5.7.3 #51

Open
ionutnechita opened this issue Nov 13, 2024 · 2 comments
Open

BORE: rq->clock_update_flags < RQCF_ACT_SKIP - BORE 5.7.3 #51

ionutnechita opened this issue Nov 13, 2024 · 2 comments

Comments

@ionutnechita
Copy link

Kernel: 6.12.0-rc7
BORE: 5.7.3

[  906.235863] ------------[ cut here ]------------
[  906.235867] rq->clock_update_flags < RQCF_ACT_SKIP
[  906.235871] WARNING: CPU: 0 PID: 16856 at kernel/sched/sched.h:1649 update_curr_se+0xa0/0xb0
[  906.235880] Modules linked in: qrtr snd_seq_dummy snd_hrtimer snd_seq snd_seq_device input_leds mousedev xt_statistic nfnetlink_queue nft_queue nft_ct xt_nfacct ipt_REJECT nf_reject_ipv4 nfnetlink_acct xt_multiport xt_mark xt_comment xt_tcpudp xt_conntrack nft_chain_nat xt_MASQUERADE nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype nft_compat nf_tables overlay af_packet snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_scodec_component hid_sensor_accel_3d hid_sensor_gyro_3d hid_sensor_trigger industrialio_triggered_buffer kfifo_buf hid_sensor_iio_common industrialio hid_sensor_custom uvcvideo hid_sensor_hub videobuf2_vmalloc uvc snd_sof_pci_intel_skl snd_sof_intel_hda_generic soundwire_intel soundwire_cadence snd_sof_intel_hda_common snd_soc_hdac_hda snd_sof_intel_hda_mlink snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp iwlmvm snd_sof mac80211 snd_sof_utils snd_soc_acpi_intel_match soundwire_generic_allocation intel_rapl_msr snd_soc_acpi intel_rapl_common soundwire_bus intel_uncore_frequency
[  906.235940]  intel_uncore_frequency_common intel_tcc_cooling led_class x86_pkg_temp_thermal libarc4 intel_powerclamp f2fs snd_soc_avs iwlwifi coretemp crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 snd_soc_hda_codec nls_iso8859_1 sha1_ssse3 nls_cp437 aesni_intel snd_hda_ext_core crc32_generic gf128mul crc32_pclmul vfat lz4hc_compress crypto_simd lz4_compress fat cryptd cfg80211 snd_soc_core iTCO_wdt rapl intel_pmc_bxt intel_cstate evdev mei_hdcp mei_pxp watchdog ee1004 wmi_bmof intel_wmi_thunderbolt mac_hid intel_uncore rfkill snd_compress intel_xhci_usb_role_switch sch_fq_codel roles ac97_bus i915 snd_pcm_dmaengine msr uinput thermal atkbd snd_hda_intel libps2 serio vivaldi_fmap snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec snd_hda_core loop e1000e snd_hwdep xt_nat snd_pcm mei_me nf_nat drm_buddy nf_conntrack drm_display_helper snd_timer ptp i2c_i801 nf_defrag_ipv6 intel_gtt intel_pmc_core i2c_algo_bit snd mei i2c_mux video nf_defrag_ipv4 intel_pch_thermal soundcore
[  906.236011]  tpm_crb intel_vsec br_netfilter backlight i2c_smbus pps_core veth pmt_telemetry tun pmt_class tap tpm_tis wmi macvlan tpm_tis_core tiny_power_button acpi_pad bridge button stp llc vboxnetflt(O) vboxnetadp(O) vboxdrv(O) kvm_intel kvm fuse efi_pstore configfs nfnetlink efivarfs tpm libaescfb ecdh_generic ecc rng_core dmi_sysfs ip_tables x_tables autofs4 hid_generic usbhid sd_mod rtsx_pci_sdmmc mmc_core ahci libahci libata xhci_pci xhci_hcd scsi_mod rtsx_pci scsi_common rtc_cmos dm_mod dax btrfs blake2b_generic libcrc32c crc32c_generic crc32c_intel xor raid6_pq
[  906.236065] CPU: 0 UID: 0 PID: 16856 Comm: sysctl Tainted: G           O       6.12.0-rc7-lowlatency-sunlight1
[  906.236069] Tainted: [O]=OOT_MODULE
[  906.236070] Hardware name: Intel(R) Client Systems NUC7i7BNH/NUC7i7BNB, BIOS BNKBL357.86A.0083.2020.0714.1344 07/14/2020
[  906.236072] RIP: 0010:update_curr_se+0xa0/0xb0
[  906.236077] Code: f6 31 ff c3 cc cc cc cc 80 3d 6f c7 f0 01 00 75 8f 48 89 34 24 c6 05 62 c7 f0 01 01 90 48 c7 c7 00 98 c3 92 e8 51 2d fa ff 90 <0f> 0b 90 90 48 8b 34 24 e9 69 ff ff ff 0f 1f 00 90 90 90 90 90 90
[  906.236079] RSP: 0018:ffffb41f0c7afd28 EFLAGS: 00010046
[  906.236081] RAX: 0000000000000000 RBX: ffff938fdecb5ac0 RCX: 0000000000000000
[  906.236083] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[  906.236084] RBP: ffff9389b094da00 R08: 0000000000000000 R09: 0000000000000000
[  906.236086] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000100000
[  906.236087] R13: ffff938a9360a440 R14: ffff938fdecb5ac0 R15: ffff938fdecb5ac0
[  906.236089] FS:  00007f581bf3c740(0000) GS:ffff938fdec00000(0000) knlGS:0000000000000000
[  906.236091] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  906.236092] CR2: 0000000003493788 CR3: 000000016c0e2002 CR4: 00000000003726f0
[  906.236094] Call Trace:
[  906.236097]  <TASK>
[  906.236101]  ? __warn+0x89/0x130
[  906.236105]  ? update_curr_se+0xa0/0xb0
[  906.236108]  ? report_bug+0x172/0x1a0
[  906.236114]  ? handle_bug+0x61/0xb0
[  906.236117]  ? exc_invalid_op+0x17/0x80
[  906.236120]  ? asm_exc_invalid_op+0x1a/0x20
[  906.236126]  ? update_curr_se+0xa0/0xb0
[  906.236129]  ? update_curr_se+0x9f/0xb0
[  906.236132]  update_curr+0x35/0x280
[  906.236136]  reweight_entity+0x1d0/0x280
[  906.236141]  sched_bore_update_handler+0x11e/0x1a0
[  906.236145]  proc_sys_call_handler+0x1d1/0x300
[  906.236150]  vfs_write+0x2a3/0x460
[  906.236156]  ksys_write+0x6f/0xf0
[  906.236160]  do_syscall_64+0xb7/0x210
[  906.236163]  entry_SYSCALL_64_after_hwframe+0x77/0x7f
[  906.236166] RIP: 0033:0x7f581c042334
[  906.236187] Code: ff 45 31 d2 45 31 db c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 80 3d 35 ed 0e 00 00 74 23 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 74 31 d2 31 c9 31 f6 31 ff 45 31 c0 45 31 db
[  906.236188] RSP: 002b:00007ffd24ff2b88 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
[  906.236191] RAX: ffffffffffffffda RBX: 0000000003491780 RCX: 00007f581c042334
[  906.236192] RDX: 0000000000000002 RSI: 000000000348f650 RDI: 0000000000000003
[  906.236194] RBP: 000000000348f610 R08: 0000000000000000 R09: 0000000000000000
[  906.236195] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000002
[  906.236196] R13: 0000000000000002 R14: 00007f581c127e80 R15: 00000000004059c8
[  906.236201]  </TASK>
[  906.236202] ---[ end trace 0000000000000000 ]---

sysctl: kernel.sched_autogroup_enabled = 0

@firelzrd
Copy link
Owner

Thank you.
Let me investigate what's happening.

@firelzrd
Copy link
Owner

kernel/sched/bore.c : sched_bore_update_handler()
kernel/sched/fair.c : reweight_entity()
kernel/sched/fair.c : update_curr()
kernel/sched/fair.c : update_curr_se()
kernel/sched/sched.h : rq_clock_task()
kernel/sched/sched.h : assert_clock_updated()
SCHED_WARN_ON(rq->clock_update_flags < RQCF_ACT_SKIP);

So far I found out this is where.
We should do something about rq->clock_update_flags | RQCF_ACT_SKIP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants