Skip to content
Draft
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions internal/extract/accelerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ var AcceleratorDefinitions = []AcceleratorDefinition{
},
{
MfgID: "8086",
DevID: "B25",
DevID: "(B25|1212)",
Name: "DSA",
FullName: "Intel Data Streaming Accelerator",
Description: "a high-performance data copy and transformation accelerator",
},
{
MfgID: "8086",
DevID: "CFE",
DevID: "(CFE|1216)",
Name: "IAA",
FullName: "Intel Analytics Accelerator",
Description: "accelerates compression and decompression for big data applications and in-memory analytic databases",
},
{
MfgID: "8086",
DevID: "(4940|4942|4944)",
DevID: "(4940|4942|4944|4948)",
Name: "QAT (on CPU)",
FullName: "Intel Quick Assist Technology",
Description: "accelerates data encryption and compression for applications from networking to enterprise, cloud to storage, and content delivery to database",
Expand Down
10 changes: 9 additions & 1 deletion internal/script/scripts.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,15 @@ fi
family=$(echo "$lscpu" | grep -E "^CPU family:" | awk '{print $3}')
model=$(echo "$lscpu" | grep -E "^Model:" | awk '{print $2}')
# if cpu is GNR, GNR-D, or DMR get the frequencies from tpmi
if ( [ "$family" -eq 6 ] && [ "$model" -eq 173 ] ) || ( [ "$family" -eq 6 ] && [ "$model" -eq 174 ] ) || ( [ "$family" -eq 19 ] && [ "$model" -eq 1 ] ); then # GNR, GNR-D, DMR
if [ "$family" -eq 19 ] && [ "$model" -eq 1 ]; then # DMR
cores=$(pcm-tpmi 0x5 0xe8 -i 0 -e 0 | tail -n 2 | head -n 1 | awk '{print $3}') # SST_PP_INFO_10
# this works unless the TRL is overridden on MSR 0x1AD --> sse=$(pcm-tpmi 0x5 0xA8 -i 0 -e 0 | tail -n 2 | head -n 1 | awk '{print $3}') # SST_PP_INFO_4
sse=$(rdmsr 0x1ad) # MSR_TURBO_RATIO_LIMIT: Maximum Ratio Limit of Turbo Mode
avx2=$(pcm-tpmi 0x5 0xC0 -i 0 -e 0 | tail -n 2 | head -n 1 | awk '{print $3}') # SST_PPINFO_5
avx512=$(pcm-tpmi 0x5 0xC8 -i 0 -e 0 | tail -n 2 | head -n 1 | awk '{print $3}') # SST_PPINFO_6
avx512h=$(pcm-tpmi 0x5 0xD0 -i 0 -e 0 | tail -n 2 | head -n 1 | awk '{print $3}') # SST_PPINFO_7
amx=$(pcm-tpmi 0x5 0xD8 -i 0 -e 0 | tail -n 2 | head -n 1 | awk '{print $3}') # SST_PPINFO_8
elif ( [ "$family" -eq 6 ] && [ "$model" -eq 173 ] ) || ( [ "$family" -eq 6 ] && [ "$model" -eq 174 ] ); then # GNR, GNR-D
cores=$(pcm-tpmi 0x5 0xD8 -i 0 -e 0 | tail -n 2 | head -n 1 | awk '{print $3}') # SST_PP_INFO_10
# this works unless the TRL is overridden on MSR 0x1AD --> sse=$(pcm-tpmi 0x5 0xA8 -i 0 -e 0 | tail -n 2 | head -n 1 | awk '{print $3}') # SST_PP_INFO_4
sse=$(rdmsr 0x1ad) # MSR_TURBO_RATIO_LIMIT: Maximum Ratio Limit of Turbo Mode
Expand Down