Fixed
Created: May 20, 2021
Updated: Aug 24, 2021
Resolved Date: Jul 27, 2021
Found In Version: 10.21.20.1
Fix Version: 10.21.20.4
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Kernel
We observed sporadically the following warning when running the "/opt/wr-test/main_test.py -k cpuhotplug_offline" testcase on NUC7 board:
[ 2051.827288] ------------[ cut here ]------------
[ 2051.827290] WARNING: CPU: 1 PID: 101 at kernel/sched/core.c:2293 affine_move_task+0x1c1/0x6c0
[ 2051.827294] Modules linked in: xfrm_user rfcomm bnep ecryptfs intel_rapl_msr wmi_bmof intel_wmi_thunderbolt intel_rapl_common x86_pkg_temp_thermal iwlmvm intel_powerclamp mac80211 led_class coretemp crct10dif_pclmul crct10dif_common aesni_intel glue_helper iwlwifi crypto_simd snd_hda_codec_hdmi wdat_wdt cryptd watchdog cfg80211 idma64 fan thermal snd_hda_intel snd_intel_dspcfg i915 snd_hda_codec snd_hda_core video snd_pcm i2c_i801 wmi firmware_class snd_timer i2c_smbus backlight acpi_pad sch_fq_codel nfsd openvswitch nsh nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 fuse [last unloaded: btrtl]
[ 2051.827318] CPU: 1 PID: 101 Comm: lock_torture_wr Not tainted 5.10.37-rt34-yocto-preempt-rt #1
[ 2051.827320] Hardware name: Intel(R) Client Systems NUC7i5DNKE/NUC7i5DNB, BIOS DNKBLi5v.86A.0072.2021.0219.1507 02/19/2021
[ 2051.827320] RIP: 0010:affine_move_task+0x1c1/0x6c0
[ 2051.827322] Code: 0f 86 62 04 00 00 4c 89 95 b8 fe ff ff 4c 89 85 c0 fe ff ff 41 c7 47 0c 04 00 00 00 e9 55 04 00 00 4d 85 f6 0f 85 b2 01 00 00 <0f> 0b 41 83 bd 58 0a 00 00 02 76 08 41 c7 47 0c 04 00 00 00 41 8b
[ 2051.827324] RSP: 0000:ffffac0b019dfcf0 EFLAGS: 00010046
[ 2051.827325] RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000000000
[ 2051.827326] RDX: ffffac0b019dfe48 RSI: ffff92b2462f4040 RDI: ffffac0b019dfe08
[ 2051.827327] RBP: ffffac0b019dfe38 R08: 0000000000000004 R09: 0000000000000001
[ 2051.827328] R10: ffff92b3a53fa200 R11: 0000000000000400 R12: ffff92b2462f4040
[ 2051.827329] R13: ffff92b3a53fa140 R14: 0000000000000000 R15: ffffac0b019dfe48
[ 2051.827330] FS: 0000000000000000(0000) GS:ffff92b3a5200000(0000) knlGS:0000000000000000
[ 2051.827331] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2051.827332] CR2: 0000000000000000 CR3: 0000000132224001 CR4: 00000000003706e0
[ 2051.827333] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 2051.827333] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 2051.827334] Call Trace:
[ 2051.827335] ? update_load_avg+0x90/0x7b0
[ 2051.827339] ? update_load_avg+0x90/0x7b0
[ 2051.827341] ? enqueue_entity+0x1a2/0x540
[ 2051.827344] __set_cpus_allowed_ptr+0x13f/0x210
[ 2051.827346] migrate_enable+0x5e/0x280
[ 2051.827347] rt_spin_unlock+0x23/0x90
[ 2051.827349] torture_spin_lock_write_unlock+0x15/0x20
[ 2051.827352] lock_torture_writer+0xcb/0x160
[ 2051.827354] kthread+0x1b0/0x1d0
[ 2051.827355] ? lock_torture_reader+0x110/0x110
[ 2051.827357] ? __kthread_parkme+0xc0/0xc0
[ 2051.827358] ret_from_fork+0x22/0x30
[ 2051.827362] irq event stamp: 74799134
[ 2051.827363] hardirqs last enabled at (74799133): [<ffffffffb6251607>] preempt_schedule_irq+0x37/0x80
[ 2051.827365] hardirqs last disabled at (74799134): [<ffffffffb625078b>] __schedule+0x44b/0xb80
[ 2051.827367] softirqs last enabled at (0): [<ffffffffb530ab49>] copy_process+0x649/0x1670
[ 2051.827370] softirqs last disabled at (0): [<0000000000000000>] 0x0
[ 2051.827371] ---[ end trace 0000000000000002 ]---
/lpg-build/cdc/fast_prod/WRL10_21/WRL10_21_GIT/wrlinux-10/setup.sh --machines=intel-x86-64 --templates feature/intel-qat feature/xfce feature/dpdk feature/bsp-extras feature/docker feature/kexec feature/kdump feature/lxc feature/tpm2 --layers meta-dpdk --distro wrlinux-cgl --accept-eula=yes --distro wrlinux-cgl --dl-layers
source environment-setup-x86_64-wrlinuxsdk-linux
source oe-init-build-env build
cpuhotplug_online
cpuidle_function
cpuidle_perf_event
cpuidle_sys_check
dma_kernel_test
docker_check_config
docker_compose_build
docker_compose_ps
docker_compose_scale_down
docker_compose_scale_up
docker_compose_up
docker_helloworld
dpdk_byteorder
dpdk_cycles
dpdk_helloworld
dpdk_l2fwd
dpdk_link_status_interrupt
dpdk_logs_test
dpdk_malloc
dpdk_mbuf
dpdk_memory
dpdk_memzone
dpdk_prefetch
dpdk_rwlock
dpdk_spinlock
dpdk_testpmd
dpdk_unittest_cmdline
dpdk_unittest_crc
dpdk_unittest_lpm
dpdk_unittest_lpm6
dpdk_unittest_metering
dpdk_unittest_red
dpdk_unittest_ring
dpdk_unittest_ring_perf
dpdk_unittest_ring_pmd
dpdk_unittest_scheduler
dpdk_unittest_timer
edac_ctl_test
edac_inject_error
edac_module_test
edac_service_test
edac_sys_check
edac_util_test
ethernet_autoneg_restrict
ethernet_buffer_ring
ethernet_change_speed
ethernet_check_mac
ethernet_coalescing
ethernet_dump_register
ethernet_fping
ethernet_iperf_tcp
ethernet_iperf_udp
ethernet_netperf_tcprr
ethernet_netperf_tcpstream
ethernet_netperf_udprr
ethernet_netperf_udpstream
ethernet_ping
ethernet_sriov
ethernet_statistics
ethernet_vlan_ping
fman_sys_check
gpio_sys_check
graphic_change_resolution
graphic_glxgears
graphic_show_status
graphic_x11perf
graphic_xrandr_show
i2c_sys_check
intel_exploring_test
intel_kvm_sanity
intel_pclmulqdq_check_flag
intel_powerclamp_sys_check
intel_pt_sys_check
intel_rapl_detect
intel_rapl_sys_check
intel_reseeds_check_flags
intel_reseeds_rng_tools
iommu_intel_sanity
kdump_smp_up_systemd
kernwarning_buildcheck
kmod_test
lspci_test
malloc_loop
mces_check_cpu_supported
mdelay_test
microcode_check_device
microcode_check_update
microcode_sys_check
numa_check_support
numa_check_sys
numa_demo
numa_shownodes
numa_stat
pci_hotplug
pci_msi
perf_events_cpu
perf_events_l1_cache
perf_events_ll_cache
perf_events_mem
perf_events_sched
perf_events_syscall
perf_events_syscall_enter
perf_events_syscall_exit
perf_events_timer
perf_events_tlb
perf_events_uncore
perf_events_with_load
pm_basic_sleepgraph
pm_dev_sleepgraph
pm_pmgraph_check
pm_proc_sleepgraph
pm_suspend_sleepgraph
ramspeed
rtc_alarm
rtc_hctosys
rtc_hwclock_selftest
rtc_sys_check
rtc_systohc
rt_cyclictest
rt_hackbench
rt_migrate_test
rt_pi_stress
rt_pmqtest
rt_ptsematest
rt_signaltest
rt_sigwaittest
rt_svsematest
sem_test
serial_getty_tty
storage_aio_stress
storage_bonnie
storage_copy_big_file
storage_dd_100M
storage_dd_1G
storage_dd_500M
storage_dd_5G
storage_fio_flow
storage_fio_latency
storage_fio_randread
storage_fio_rand_rw
storage_fio_randwrite
storage_fio_read
storage_fio_rw
storage_fio_stonewalls
storage_fio_stress
storage_fio_write
storage_fio_zone
storage_hdparm
storage_ionice_bfq
storage_ionice_kyber
storage_ionice_mqdeadline
storage_ionice_none
storage_iozone
storage_nfs_mounts
storage_scheduler_bfq
storage_scheduler_kyber
storage_scheduler_mqdeadline
storage_scheduler_none
storage_sync_big_file
storage_sync_multi_file
storage_tiobench
stress_cpu
stress_cpu_mem_io
stress_io
stress_memory
temp_sensors
temp_sys_check
tpm2
tpm2_abrmd_extended-sessions
tpm2_abrmd_nvundefinespecial
tpm2_abrmd_policyauthorize
tpm2_abrmd_policyauthorizenv
tpm2_abrmd_policyauthvalue
tpm2_abrmd_policycommandcode
tpm2_abrmd_policycountertimer
tpm2_abrmd_policyduplicationselect
tpm2_abrmd_policynamehash
tpm2_abrmd_policynv
tpm2_abrmd_policynvwritten
tpm2_abrmd_policyor
tpm2_abrmd_policypassword
tpm2_abrmd_policysecret
tpm2_abrmd_policysigned
tpm2_abrmd_policytemplate
tpm2_abrmd_policyticket
tpm2_activecredential
tpm2_attestation
tpm2_certify
tpm2_certifycreation
tpm2_changeauth
tpm2_changeeps
tpm2_changepps
tpm2_checkquote
tpm2_clear
tpm2_clearcontrol
tpm2_clockrateadjust
tpm2_create
tpm2_createak
tpm2_createek
tpm2_createpolicy
tpm2_createprimary
tpm2_dictionarylockout
tpm2_duplicate
tpm2_encryptdecrypt
tpm2_evictcontrol
tpm2_flushcontext
tpm2_getcap
tpm2_getekcertificate
tpm2_getrandom
tpm2_gettestresult
tpm2_gettime
tpm2_hash
tpm2_hierarchycontrol
tpm2_hmac
tpm2_import
tpm2_import_tpm
tpm2_incrementalselftest
tpm2_load
tpm2_loadexternal
tpm2_makecredential
tpm2_nv
tpm2_nvcertify
tpm2_nvinc
tpm2_output_formats
tpm2_pcrallocate
tpm2_pcrevent
tpm2_pcrextend
tpm2_pcrlist
tpm2_pcrreset
tpm2_print
tpm2_quote
tpm2_readclock
tpm2_readpublic
tpm2_rsadecrypt
tpm2_rsaencrypt
tpm2_selftest
tpm2_send
tpm2_setclock
tpm2_setprimarypolicy
tpm2_sign
tpm2_startup
tpm2_stirrandom
tpm2_testparms
tpm2_unseal
tpm2_verifysignature
turbostat_test
usb_show_device
watchdog_check_device
watchdog_check_node
watchdog_get_monitor
watchdog_get_status
watchdog_keep_alive
watchdog_magic_close
watchdog_set_timeout
watchdog_sys_check
wifi_basic_func
wireless_lxc_namespace
[Test_HW]
" > customized_test_plan.ini
bitbake-layers add-layer /lpg-build/cdc/WASSP_LINUX_MASTER_WR/testcases/wrlinux/wr-testing/bts-dev && echo require templates/feature/bts/template.conf >> conf/local.conf && echo IMAGE_FSTYPES += \" tar.bz2\" >> conf/local.conf &&echo BB_NO_NETWORK_pn-lmbench = \"0\" >> conf/local.conf &&echo ACTIVE_PLAN = \"customized_test_plan.ini\" >> conf/local.conf &&echo IMAGE_FSTYPES_remove = \" live hddimg iso\" >>conf/local.conf
bitbake wrlinux-image-cgl
/opt/wr-test/main_test.py -k cpuhotplug_offline:
or you can use below shared image:
http://pek-lpgtest7408.wrs.com/buildarea1/SharedImage/LTS21/BSP/intel-x86-64_preempt-rt_glibc-cgl/20210519_090818/