Page MenuHomeFreeBSD

add get_cpus interface
AbandonedPublic

Authored by sbruno on Feb 6 2016, 12:29 AM.
Tags
None
Referenced Files
F81618255: D5210.diff
Fri, Apr 19, 1:38 AM
Unknown Object (File)
Wed, Apr 10, 3:04 AM
Unknown Object (File)
Tue, Apr 9, 9:57 PM
Unknown Object (File)
Mar 3 2024, 10:28 PM
Unknown Object (File)
Dec 20 2023, 12:10 AM
Unknown Object (File)
Nov 14 2023, 10:49 PM
Unknown Object (File)
Nov 13 2023, 10:07 AM
Unknown Object (File)
Oct 24 2023, 7:02 PM

Details

Summary

Taken from one of jhb's branches. Now a dependency for iflib. Determines the CPUs one should bind a device's interrupt handler's to.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 5449
Build 5659: CI src buildJenkins

Event Timeline

kmacy retitled this revision from to add get_cpus interface.
kmacy updated this object.
kmacy edited the test plan for this revision. (Show Details)
kmacy added reviewers: jhb, gallatin, glebius.
kmacy set the repository for this revision to rS FreeBSD src repository - subversion.
kmacy added subscribers: benno, scottl.

Thanks for resurrecting this. I've been meaning to get back to it.

I had a thought last night (after seeing this review pop up yesterday). I think we should adjust bus_get_cpus() to also accept the cpuset size similar to the cpuset system calls. This will allow the API to handle modules compiled with a different MAXCPU (one way or another). This is somewhat related to PR 200802 which points out that even our system calls need to do a better job of handling that, but I do think we need the size parameter.

sys/dev/acpica/acpivar.h
15

This looks like a typo.

I noticed this when trying to backport to stable..

sys/dev/acpica/acpi.c
1099

This hunk seems to be extranious

sys/dev/acpica/acpivar.h
504

I think this is also extranious

kmacy edited edge metadata.

remove extraneous changes
add size argument to get_cpus

sys/dev/acpica/acpi.c
1099

Actually, it's a bit of a mismerge. Let me check my git branch which I've merged more recently than the patches posted to arch@.

However, the idea is to treat non-ACPI devices (no handle) differently than what get_domain() does. Maybe the mis-merge is related to the fact that I also changed get_domain to work with the updated acpi_parse_pxm() and this patch tries to not do that?

Hmm, my branch is quite different here actually. Let me rebase that (and drop the Intel NIC driver diffs for now) and post that as an alternative.

sys/dev/acpica/acpi.c
1099

Please do. I have no attachment to this patch. I'd just like to see this interface go in.

sbruno added a reviewer: kmacy.
sbruno added a subscriber: sbruno.

This was committed at svn r299286

This was committed at svn r299286