Bug 6173 - [ANCK-5.10-16][x86_64][nightly] intel_pstate02用例fail,报错TFAIL: frequency precision error, no_turbo = 0
Summary: [ANCK-5.10-16][x86_64][nightly] intel_pstate02用例fail,报错TFAIL: frequency preci...
Status: RESOLVED WORKSFORME
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: x86_64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yunmeng365524
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-16 18:32 UTC by shanxifanshi
Modified: 2023-10-18 14:52 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shanxifanshi alibaba_cloud_group 2023-08-16 18:32:38 UTC
[缺陷描述]:
intel_pstate02用例fail,报错TFAIL: frequency precision error, no_turbo = 0,原来的测试机器bios关闭了turbo,用例一直skip,更换了新的测试机器,该用例fail

测试日志:
<<<test_start>>>
tag=intel_pstate02 stime=1692181009
cmdline="intel_pstate02.sh"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 999657, target_freq: 1200000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 999761, target_freq: 1300000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1221223, target_freq: 1400000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1241289, target_freq: 1500000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 999397, target_freq: 1600000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 999881, target_freq: 1700000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1059621, target_freq: 1800000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1496206, target_freq: 1900000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1000000, target_freq: 2000000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 999648, target_freq: 2100000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1000011, target_freq: 2200000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1582773, target_freq: 2300000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1601127, target_freq: 2400000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1669933, target_freq: 2500000
intel_pstate02 1 TFAIL: frequency precision error, no_turbo = 0
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 999778, target_freq: 1200000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1155927, target_freq: 1300000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 999788, target_freq: 1400000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1209908, target_freq: 1500000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1000233, target_freq: 1600000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 999783, target_freq: 1700000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1013408, target_freq: 1800000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1395215, target_freq: 1900000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1439484, target_freq: 2000000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1518799, target_freq: 2100000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1000000, target_freq: 2200000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1052240, target_freq: 2300000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1577288, target_freq: 2400000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 2231783, target_freq: 2500000
intel_pstate02 1 TFAIL: frequency precision error, no_turbo = 1

Summary:
passed   0
failed   2
skipped  0
warnings 0
<<<execution_status>>>
initiation_status="ok"
duration=75 termination_type=exited termination_id=1 corefile=no
cutime=25 cstime=49
<<<test_end>>>

复现环境:
anck 5.10 x86物理机 F51机型

复现概率:
必现

内核信息:
# uname -r
5.10.134-77.git.a73b26af8.an8.x86_64


操作系统信息:
# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.8"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.8"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.8"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

cpu信息:
# lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              96
On-line CPU(s) list: 0-95
Thread(s) per core:  2
Core(s) per socket:  24
Socket(s):           2
NUMA node(s):        1
Vendor ID:           GenuineIntel
BIOS Vendor ID:      Intel(R) Corporation
CPU family:          6
Model:               85
Model name:          Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
BIOS Model name:     Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
Stepping:            4
CPU MHz:             999.644
CPU max MHz:         3100.0000
CPU min MHz:         1000.0000
BogoMIPS:            5000.00
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            1024K
L3 cache:            33792K
NUMA node0 CPU(s):   0-95
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd mba ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke md_clear flush_l1d arch_capabilities

内存信息:
# free -h
              total        used        free      shared  buff/cache   available
Mem:          503Gi       3.1Gi       499Gi       2.0Mi       639Mi       497Gi
Swap:            0B          0B          0B

内核参数:
# cat /proc/cmdline
BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.10.134-77.git.a73b26af8.an8.x86_64 root=UUID=a5b37697-06a2-41c2-9345-b1aced9b8a70 ro cryptomgr.notests rcupdate.rcu_cpu_stall_timeout=300 vring_force_dma_api rhgb quiet biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295 cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M

[复现步骤]:
git clone git@gitlab-sp.alibaba-inc.com:alikernel/ltp.git
cd ltp
export BUILD_ALITESTS_ONLY=yes
export CFLAGS="${CFLAGS} -fcommon"  #  gcc 10 需要添加这个。
make autotools
./configure 
make && install
cd /opt/ltp
./runltp -f alitests -s intel_pstate02

[期望结果]:
用例pass

[实际结果]:
用例fail
Comment 1 shanxifanshi alibaba_cloud_group 2023-10-16 11:43:39 UTC
在an8 016 rc1 x86内核,F51机型上测试仍然fail,另外alinux3无此用例。

测试日志:
<<<test_start>>>
tag=intel_pstate02 stime=1697427652
cmdline="intel_pstate02.sh"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1098597, target_freq: 1200000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 999660, target_freq: 1300000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1000594, target_freq: 1400000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1237924, target_freq: 1500000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1494161, target_freq: 1600000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1000000, target_freq: 1700000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1362109, target_freq: 1800000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1400665, target_freq: 1900000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1473700, target_freq: 2000000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1411078, target_freq: 2100000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1000000, target_freq: 2200000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1000000, target_freq: 2300000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 1000107, target_freq: 2400000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 0,  curr_freq: 2150726, target_freq: 2500000
intel_pstate02 1 TFAIL: frequency precision error, no_turbo = 0
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1157809, target_freq: 1300000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 999880, target_freq: 1400000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 999647, target_freq: 1500000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1270323, target_freq: 1600000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1319165, target_freq: 1700000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1391849, target_freq: 1800000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1738204, target_freq: 1900000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1000029, target_freq: 2000000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 999739, target_freq: 2100000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1572133, target_freq: 2200000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1000121, target_freq: 2300000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1063939, target_freq: 2400000
intel_pstate02 1 TINFO: frequency precision error: no_turbo: 1,  curr_freq: 1665701, target_freq: 2500000
intel_pstate02 1 TFAIL: frequency precision error, no_turbo = 1

Summary:
passed   0
failed   2
skipped  0
warnings 0
<<<execution_status>>>
initiation_status="ok"
duration=76 termination_type=exited termination_id=1 corefile=no
cutime=25 cstime=50
<<<test_end>>>

# uname -r
5.10.134-16_rc1.an8.x86_64
Comment 2 yunmeng365524 2023-10-18 14:52:22 UTC
016版本内部跟踪