Page MenuHomeFreeBSD

intrcompat: rename "machine/intr*.h" to "machine/a_bikeshed_string_for_sed_to_target.h"
Needs ReviewPublic

Authored by ehem_freebsd_m5p.com on Jun 23 2022, 1:27 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 5:07 PM
Unknown Object (File)
Mon, Dec 9, 1:26 AM
Unknown Object (File)
Sun, Dec 8, 4:10 PM
Unknown Object (File)
Wed, Nov 20, 11:26 PM
Unknown Object (File)
Nov 6 2024, 4:35 AM
Unknown Object (File)
Nov 6 2024, 1:38 AM
Unknown Object (File)
Oct 21 2024, 3:48 PM
Unknown Object (File)
Oct 18 2024, 10:15 AM

Details

Summary

Having two distinct names for the interrupt headers serves to interfere
with most efforts to converge the interrupt frameworks. Simply rename
all of them to "machine/a_bikeshed_string_for_sed_to_target.h". Another name could be substituted,
but right now simply have a random one for this commit.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 60078
Build 56962: arc lint + arc unit

Event Timeline

So the theory is to continue pushing the various interrupt handling implementations closer together. I suspect the INTRNG team may have thought "intr.h" would distinguish their system as being potentially machine-independent, but I think this simply serves to inhibit merging.

As such a case of choosing "intr.h" versus "intr_machdep.h". I think "machine/intr.h" is better as "machine/" already marks them as potentially having architecture quirks. Ideally their similarity will increase, but this will take a while.

If it is felt __FreeBSD_version should be incremented and then check for header name, I've got that prepared. Simply an issue of need a reviewer to request that be done.

I was under the impression D35559 has the right reviewers, but no action has been observed. This is meant as a precursor to the updated D32504. This can improve several places, but does need someone to okay (and commit to the main tree). Then there are the child commits.

Ping for D35559. This will be in the way of most attempts to further merge the interrupt interfaces, so deciding the direction would be helpful.

So, most approaches to getting interrupt subsystems to converge are going to need something along the lines of D35559 at some point. Might it be possible to get a decision/activity on D35559?

My thinking was the shorter name machine/intr.h was better, since being in machine already marks the header as being potentially variable from architecture to architecture. Yet the opposite direction of moving arm(64)'s headers to machine/intr_machdep.h would also work. This really needs a decision as forward progress on convergence might be possible if there was activity here.

intrcompat: rename "machine/intr*.h" to "machine/a_bikeshed_string_for_sed_to_target.h"

Having two distinct names for the interrupt headers serves to interfere with most efforts to converge the interrupt frameworks. Simply rename all of them to "machine/a_bikeshed_string_for_sed_to_target.h". Another name could be substituted, but right now simply have a random one for this commit.

ehem_freebsd_m5p.com retitled this revision from intr: rename "machine/intr_machdep.h" headers to "machine/intr.h" to intrcompat: rename "machine/intr*.h" to "machine/a_bikeshed_string_for_Sed.Oct 18 2024, 10:07 PM
ehem_freebsd_m5p.com edited the summary of this revision. (Show Details)
ehem_freebsd_m5p.com retitled this revision from intrcompat: rename "machine/intr*.h" to "machine/a_bikeshed_string_for_Sed to intrcompat: rename "machine/intr*.h" to "machine/a_bikeshed_string_for_sed_to_target.h".Oct 18 2024, 10:15 PM

If someone is up for forward progress on this trivial issue, I recommend doing: (assuming your remote for FreeBSD-Github is "github")

git fetch github refs/pull/1431/head
git cherry-pick 7f0f39b57d08b14420823e7276c9222f37886468

This will likely need an update as files get renamed or modified on a routine basis. Since the Github branch was last updated 2 months ago, it will need (hopefully minor) adjustment.

This seemed a rather simple, yet high value point. Yet it sat here with no reviews and unable to step forward. Then the garbage of D47002 got approved in 5 seconds. I get the message, no it is not merely people got tired of trying to converge the interrupt systems. Many people simply didn't care and unintentionally made it extremely difficult.