Wind River Support Network

HomeDefectsLIN9-3363
Fixed

LIN9-3363 : HWP test failed for permission denied while writing value to "cpu.cfs_quota_us" in system

Created: Feb 22, 2017    Updated: Dec 3, 2018
Resolved Date: Mar 30, 2017
Found In Version: 9.0.0.1
Fix Version: 9.0.0.5
Severity: Standard
Applicable for: Wind River Linux 9
Component/s: BSP - Async

Description

System information:
SE5C620.86B.01.00.0330.110820160423
Intel(R) Genuine processor
4.8.8-WR9.0.0.1_standard
pstate-driver:
    112 intel_pstate
intel_pstate configuration:
grep . -r /sys/devices/system/cpu/intel_pstate
.../turbo_pct:61
.../no_turbo:0
.../max_perf_pct:100
.../min_perf_pct:31
.../num_pstates:23
general cpufreq configuration:
grep . -r /sys/devices/system/cpu/cpu0/cpufreq
.../scaling_cur_freq:1799890
.../cpuinfo_max_freq:3200000
.../cpuinfo_transition_latency:4294967295
.../cpuinfo_min_freq:1000000
.../cpuinfo_cur_freq:1799890
.../affected_cpus:0
.../scaling_governor:powersave
.../scaling_driver:intel_pstate
.../scaling_max_freq:3200000
.../related_cpus:0
.../scaling_setspeed:<unsupported>
.../scaling_available_governors:performance powersave
.../scaling_min_freq:1000000
./hwp_test.sh: line 32: cpupower: command not found

Platform info:
OS: WRL9_RCPL0
Kernel: 4.8.8-WR9.0.0.1_standard

Purley-2S:
Processor: Skylake-EP E5-2600 V5 family, 28c, 1.8GHz, 165w,B0 Stepping, QL1F
Bios: SE5C620.86B.01.00.0330.110820160423

Our HWP test case is using "cpu.cfs_quota_us" to control cpu occupation. But it seems in WRL9 kernel, "cpu.cfs_quota_us" is not available under "/sys/fs/cgroup/cpu". Most likely the flag "CONFIG_CFS_BANDWIDTH" is not set in kernel config.

Liwei, please help to double check your kernel config.

In WRL9 kernel config:

CONFIG_CGROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
#CONFIG_CFS_BANDWIDTH is not set
CONFIG_RT_GROUP_SCHED=y

CONFIG_CFS_BANDWIDTH is not set, while CONFIG_RT_GROUP_SCHED is being used.
Our current test script can only use "cpu.cfs_quota_us" to control cpu occupation. That's why test fails for WRL9.
set CONFIG_CFS_BANDWIDTH in kernel config, to make HWP testable from OSVE perspective. 

Other Downloads


Live chat
Online