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

topology: support more devices under /sys/devices #202

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

askervin
Copy link
Collaborator

Extra device support removes limitations on referring to some devices under /sys/devices in cases where referenced devices have notion of local CPUs yet the file has other name than local_cpulist. This supports e2e tests with device locality because added devices have non-trivial set of local CPUs in e2e vms.

Copy link
Collaborator

@kad kad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally I'm ok with those changes. I think we can merge it now, and observe, if some corner cases would pop-up.

// match /sys/devices/system/node/node0/cpulist
"cpulist": &hint.CPUs,
// match /sys/devices/pci0000:00/pci_bus/0000:00/cpulistaffinity
"cpulistaffinity": &hint.CPUs,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not 100% sure about this one. In subfunction entries of PCI devices, the topology func should go up one layer in tree via device and should see local_cpulist entry. Have you seen scenarios where this would be more reliable compared to root function of the pci device?

Extra device support removes limitations on referring to some devices
under /sys/devices in cases where referenced devices have notion of
local CPUs yet the file has other name than local_cpulist. This
supports e2e tests with device locality because added devices have
non-trivial set of local CPUs in e2e vms.

Signed-off-by: Antti Kervinen <antti.kervinen@intel.com>
@askervin askervin force-pushed the 5S8_topology_more_devices branch from 36d46b3 to e6c1907 Compare December 15, 2023 11:00
@kad kad merged commit b014264 into containers:main Dec 15, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants