Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SPR and EMR Pstate EPP value #366

Merged
merged 1 commit into from
Aug 22, 2024
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
12 changes: 10 additions & 2 deletions BM/pstate/intel_pstate_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,10 @@ check_epp_req() {
local ret_num=0
local stress_pid=""
local num_cpus=""
local cpu_model=""

cpu_model=$(lscpu | grep Model: | awk '{print $2}')
test_print_trc "CPU Model is: $cpu_model"

num_cpus=$(ls -d /sys/devices/system/cpu/cpu[0-9]* | wc -l) ||
die "Failed to get cpus number from sysfs"
Expand All @@ -795,9 +799,13 @@ check_epp_req() {
performance)
epp_req=0
;;

# SPR and EMR will use 32 for balance_performance EPP value
balance_performance)
epp_req=128
if [ "$cpu_model" == 143 ] || [ "$cpu_model" == 207 ]; then
epp_req=32
else
epp_req=128
fi
;;

balance_power)
Expand Down
Loading