]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Call the MAPTI command earlier in the ITS driver
authorandrew <andrew@FreeBSD.org>
Fri, 31 Jan 2020 11:33:11 +0000 (11:33 +0000)
committerandrew <andrew@FreeBSD.org>
Fri, 31 Jan 2020 11:33:11 +0000 (11:33 +0000)
commit832e6ede23587bc3cad0250821e86e4999165113
tree92e3977042d80188e58729ca439d8f2bbcb2107f
parent9250db86b8e29aaf2f085ea6b7075f5ca7eb4c19
Call the MAPTI command earlier in the ITS driver

The GICv3 Software Overview suggests when allocating a new MSI/MSI-X
interrupt we need to call MAPD followed by MAPTI. Unfortunately the code
would place a MOVI command between these. This is invalid as it needs
values set by the MAPTI to be present.

Re-order so we allocate a temporary CPU for the interrupt, then use the
MAPTI command to assign the MSI to it.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
sys/arm64/arm64/gicv3_its.c