Skip to content

Conversation

@sparchatus
Copy link
Contributor

Fix handling of the system control interrupt in KTF. I am a bit unsure about whether the interrupt routine we have is re-entrant. If not, we might run into issues since we could have a re-entry once we send the acpi_EOI signal?

@sparchatus sparchatus requested a review from a team as a code owner November 11, 2025 15:06
@sparchatus sparchatus mentioned this pull request Nov 11, 2025
- IOAPIC init requires ACPI tables
- ACPI subsystem enable requires IOAPIC

Hence, we first init ACPI tables, then IOAPIC, then enable ACPI subsystem.

Signed-off-by: Sandro Rüegge <[email protected]>
- We need a configure_irq because SCI has special polarity and trigger mode
- We need mask_irq to implement ACPICA handler removal

Signed-off-by: Sandro Rüegge <[email protected]>
We select an unused interrupt vector. Configure/mask the SCI interrupt in IOAPIC. We send the apic end of interrupt signal.

Signed-off-by: Sandro Rüegge <[email protected]>
@wipawel wipawel merged commit abd8378 into KernelTestFramework:mainline Nov 14, 2025
4 checks passed
@sparchatus sparchatus deleted the fix_sci_handling branch November 14, 2025 09:56
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