History

x86/resctrl: Only check Intel systems for SNC

topology_num_nodes_per_package() reports values greater than one on certain AMD systems resulting in resctrl's Intel model specific SNC detection printing the confusing message: "CoD enabled system? Resctrl not supported" Add a check for Intel systems before looking at the topology. [ reinette: Add Closes tag, fix tag typos, rework changelog ]

Tony Luck committed 5 months ago

Commit 6f6947b1 parent b5f53e61 file · +6 −1Browse files

Unified · Split

arch/x86/kernel/cpu/resctrl/monitor.c+6−1
@@ -377,7 +377,12 @@ static const struct x86_cpu_id snc_cpu_ids[] __initconst = { · 376 unmodified lines
377377
378378 static __init int snc_get_config(void)
379379 {
380− int ret = topology_num_nodes_per_package();
380+ int ret;
381+
382+ if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL)
383+ return 1;
384+
385+ ret = topology_num_nodes_per_package();
381386
382387 if (ret > 1 && !x86_match_cpu(snc_cpu_ids)) {
383388 pr_warn("CoD enabled system? Resctrl not supported\n");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t