]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for SPI-mapped MSI interrupts in GICv3.
authorWojciech Macek <wma@FreeBSD.org>
Wed, 21 Sep 2016 05:22:49 +0000 (05:22 +0000)
committerWojciech Macek <wma@FreeBSD.org>
Wed, 21 Sep 2016 05:22:49 +0000 (05:22 +0000)
commita134b98878a1b8031426df1c29e4cca3c8b3d261
tree88d711f74b6ae5a8ef1a4e6719889aaba3fbca53
parent3502e7b37c91f9a8d3f6b796992797286a1dd015
Add support for SPI-mapped MSI interrupts in GICv3.

PIC_SETUP_INTR implementation in GICv3 did not allow
for setting up interrupts without included FDT
description. GICv2m-like MSI interrupts, which map
MSI messages to SPI interrupt lines, may not have
a description in FDT. Add support for such interrupts
by setting the trigger and polarity to the appropriate
values for MSI (edge, high) and get the hardware
IRQ number from the corresponding ISRC.

Obtained from:         Semihalf
Submitted by:          Michal Stanek <mst@semihalf.com>
Sponsored by:          Annapurna Labs
Reviewed by:           wma
Differential Revision: https://reviews.freebsd.org/D7662
sys/arm64/arm64/gic_v3.c