Bug 11820 - [ltp测试]kernel_misc:cpufreq_boost用例执行fail
Summary: [ltp测试]kernel_misc:cpufreq_boost用例执行fail
Status: RESOLVED WONTFIX
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yunmeng365524
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-12 15:13 UTC by Banana
Modified: 2024-11-21 16:00 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Banana alibaba_cloud_group 2024-11-12 15:13:37 UTC
[问题描述]:
ltp测试commands:logrotate_sh用例执行fail

日志输出的驱动是acpi_cpufreq,关闭文件失败,但此环境驱动是cppc_cpufreq
<<<test_start>>>
tag=cpufreq_boost stime=1730820218
cmdline="cpufreq_boost"
contacts=""
analysis=exit
<<<test_output>>>
cpufreq_boost    0  TINFO  :  found 'acpi_cpufreq' driver, sysfs knob '/sys/devices/system/cpu/cpufreq/boost'
cpufreq_boost    0  TINFO  :  maximum speed is 2600000 KHz
cpufreq_boost    1  TBROK  :  cpufreq_boost.c:178: Failed to close FILE '/sys/devices/system/cpu/cpufreq/boost': errno=EINVAL(22): Invalid argument
cpufreq_boost    2  TBROK  :  cpufreq_boost.c:178: Remaining cases broken
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=2 corefile=no
cutime=1 cstime=2
<<<test_end>>>

[root@4f7Lab15 ltp]# lsmod |grep cpufreq
cppc_cpufreq           24576  0

[root@4f7Lab15 ltp]# cat /sys/devices/system/cpu/cpufreq/boost
0
[root@4f7Lab15 ltp]# echo "0" > /sys/devices/system/cpu/cpufreq/boost
[root@4f7Lab15 ltp]# echo "1" > /sys/devices/system/cpu/cpufreq/boost
-bash: echo: 写入错误:Invalid argument

[cpu信息]
[root@4f7Lab15 ltp]# lscpu
Architecture:             aarch64
  CPU op-mode(s):         64-bit
  Byte Order:             Little Endian
CPU(s):                   96
  On-line CPU(s) list:    0-95
Vendor ID:                HiSilicon
  BIOS Vendor ID:         HiSilicon
  Model name:             Kunpeng-920
    BIOS Model name:      HUAWEI Kunpeng 920 5250 To be filled by O.E.M. CPU @ 2.6GHz
    BIOS CPU family:      280
    Model:                0
    Thread(s) per core:   1
    Core(s) per socket:   48
    Socket(s):            2
    Stepping:             0x1
    Frequency boost:      disabled
    CPU(s) scaling MHz:   14%
    CPU max MHz:          2600.0000
    CPU min MHz:          200.0000
    BogoMIPS:             200.00
    Flags:                fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm
Caches (sum of all):
  L1d:                    6 MiB (96 instances)
  L1i:                    6 MiB (96 instances)
  L2:                     48 MiB (96 instances)
  L3:                     96 MiB (4 instances)
NUMA:
  NUMA node(s):           4
  NUMA node0 CPU(s):      0-23
  NUMA node1 CPU(s):      24-47
  NUMA node2 CPU(s):      48-71
  NUMA node3 CPU(s):      72-95
Vulnerabilities:
  Gather data sampling:   Not affected
  Itlb multihit:          Not affected
  L1tf:                   Not affected
  Mds:                    Not affected
  Meltdown:               Not affected
  Mmio stale data:        Not affected
  Reg file data sampling: Not affected
  Retbleed:               Not affected
  Spec rstack overflow:   Not affected
  Spec store bypass:      Not affected
  Spectre v1:             Mitigation; __user pointer sanitization
  Spectre v2:             Not affected
  Srbds:                  Not affected
  Tsx async abort:        Not affected


[环境信息]:
物理机

[内核信息]:
6.6.25-2.2_rc1.an23.aarch64

[操作系统信息]:
[root@localhost ~]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23.1"
ID="anolis"
VERSION_ID="23.1"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23.1"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

[期望结果]:
执行pass

[实际结果]:
fail

[复现步骤]:
1、安装ltp测试套
2、执行./runltp -f kernel_misc -s cpufreq_boost
Comment 1 yuki_syq alibaba_cloud_group 2024-11-15 14:32:23 UTC
鲲鹏机器不支持boost,因此用例失败符合预期,但是用例也有问题,需要完善一下用例skip的判断条件
Comment 2 yunmeng365524 2024-11-19 20:18:39 UTC
用例问题,后续测试跟踪解决