Skip to content

🎨 Interrupt refactorings#877

Merged
elbeno merged 4 commits intointel:mainfrom
elbeno:interrupt-refactor
Apr 7, 2026
Merged

🎨 Interrupt refactorings#877
elbeno merged 4 commits intointel:mainfrom
elbeno:interrupt-refactor

Conversation

@elbeno
Copy link
Copy Markdown
Contributor

@elbeno elbeno commented Apr 3, 2026

Problem:

  • id_irq is a hack. Where we're going, we don't need it.
  • Repetition in interrupt configs. We really only have two things: irq containers
    and element types.
  • When enabling/disabling a child interrupt, it may or may not be desirable to
    propagate a possible enable/disable to a parent.
  • Top-level irqs need (the possibility of) an enable field.

Solution:

  • Remove id_irq.
  • Consolidate the configuration types.
  • Preserve the existing interface with aliases.
  • Allow blocking propagation by policy.
  • The default is to propagate enables/disables up the tree.
  • Add an enable field to top-level irq definitions.

elbeno added 3 commits April 3, 2026 17:06
Problem:
- `id_irq` is a hack. Where we're going, we don't need it.

Solution:
- Remove it.
Problem:
- Repetition in interrupt configs. We really only have two things: irq containers
  and element types.

Solution:
- Consolidate the types.
- Preserve the existing interface with aliases.
Problem:
- When enabling/disabling a child interrupt, it may or may not be desirable to
  propagate a possible enable/disable to a parent.

Solution:
- Allow blocking propagation by policy.
- The default is to propagate enables/disables up the tree.
@elbeno elbeno force-pushed the interrupt-refactor branch 2 times, most recently from 35a0089 to 2ea5add Compare April 6, 2026 21:06
@elbeno elbeno marked this pull request as ready for review April 6, 2026 21:06
Problem:
- Top-level irqs need (the possibility of) an enable field.

Solution:
- Add an enable field to top-level irq definitions.

Note:
- `id_irq` was a hack that did this for a while.
- The field can still be `no_field_t` if necessary.
@elbeno elbeno force-pushed the interrupt-refactor branch from 2ea5add to 24d1641 Compare April 6, 2026 21:07
@elbeno elbeno merged commit 78b2ef9 into intel:main Apr 7, 2026
28 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