]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm64/gicv3: Check if the hardware supports LPIs
authorAndrew Turner <andrew@FreeBSD.org>
Tue, 23 Apr 2024 11:28:23 +0000 (12:28 +0100)
committerAndrew Turner <andrew@FreeBSD.org>
Fri, 10 May 2024 09:29:24 +0000 (09:29 +0000)
commit4ab0f5ab3fd6dcd7f76c1ed1c9dc0dcd152fb64f
treeee66e3a931e4580a8e98034466f6985b33fca5c5
parentf91e9401c2098ba56f43093ef9747d0b1f60f8eb
arm64/gicv3: Check if the hardware supports LPIs

Some simulators have the ITS in the DTB passed to the kernel, however
it is a runtime configuration option to enable it.

Check the GICD_TYPER register to see if LPIs are enabled before
attaching the ITS driver.

Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D44914
sys/arm64/arm64/gic_v3.c
sys/arm64/arm64/gic_v3_var.h
sys/arm64/arm64/gicv3_its.c