Page MenuHomeFreeBSD

Add a gic interface to allocate MSI interrupts
ClosedPublic

Authored by andrew on Sep 29 2021, 3:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 24, 6:40 PM
Unknown Object (File)
Fri, Feb 7, 5:36 PM
Unknown Object (File)
Jan 31 2025, 8:02 PM
Unknown Object (File)
Jan 31 2025, 7:00 PM
Unknown Object (File)
Jan 19 2025, 12:30 PM
Unknown Object (File)
Jan 19 2025, 9:07 AM
Unknown Object (File)
Jan 7 2025, 11:49 PM
Unknown Object (File)
Dec 6 2024, 9:09 PM

Details

Summary

The previous update to handle the gicv2m as a child of the gicv3 driver
assumed there was only a single gicv2m child. On some hardware there
are multiple children. Support this by removing the mbi ivars and
adding a new interface to handle MSI allocation in a given range.

Test Plan

Tested on:

  • Parallels with GICv2 & GICv3 + GICv2M
  • VMWare Fusion with a GICv3 with MBI

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jrtc27 added inline comments.
sys/arm/arm/gic.c
1016–1017

I don't think these underscores really achieve much other than making it look a bit weird.

sys/arm/arm/gic.c
1016–1017

I just forgot to remove them when from when I also had both the old copy & this copy of the function.

This appears to fix kern/258534 for me, thanks :)

Tested on CN913x-DB, thanks!

This revision was not accepted when it landed; it landed in state Needs Review.Oct 1 2021, 10:28 AM
This revision was automatically updated to reflect the committed changes.