Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions BM/pstate/intel_pstate_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ CPU_CPUFREQ_ATTR="affected_cpus cpuinfo_max_freq cpuinfo_min_freq
scaling_min_freq scaling_setspeed"
DEFAULT_SCALING_GOV=$(cat $CPU_SYSFS_PATH/cpu0/cpufreq/scaling_governor)

readonly no_turbo_value=$(cat "$CPU_NO_TURBO_NODE")
readonly pstate_status_value=$(cat "$CPU_PSTATE_SYSFS_PATH/status")
no_turbo_value=$(cat "$CPU_NO_TURBO_NODE")
readonly no_turbo_value
pstate_status_value=$(cat "$CPU_PSTATE_SYSFS_PATH/status")
readonly pstate_status_value

# rdmsr tool is required to run pstate cases
if which rdmsr 1>/dev/null 2>&1; then
Expand Down Expand Up @@ -65,7 +67,7 @@ pstate_teardown() {
local online_cpu=""

online_cpu=$(ls /sys/devices/system/cpu/cpu*/online | wc -l)
online_cpu=$(($online_cpu+1))
online_cpu=$((online_cpu+1))
test_print_trc "Total CPUs from /sys/devices/: $online_cpu"

# Hot plug all logic CPUs except cpu0
Expand Down Expand Up @@ -832,9 +834,9 @@ check_epp_req() {
performance)
epp_req=0
;;
# SPR will use 32 for balance_performance EPP value
# SPR and EMR will use 32 for balance_performance EPP value
balance_performance)
if [ "$cpu_model" == 143 ]; then
if [ "$cpu_model" == 143 ] || [ "$cpu_model" == 207 ]; then
epp_req=32
else
epp_req=128
Expand Down Expand Up @@ -1129,5 +1131,6 @@ intel_pstate_test() {
}

intel_pstate_test
# shellcheck disable=SC2034 # consumed by exec_teardown from test framework
teardown_handler="pstate_teardown"
exec_teardown
Loading