firmware: arm_ffa: Add support for handling notification pending interrupt(NPI)
authorJens Wiklander <jens.wiklander@linaro.org>
Thu, 11 Apr 2024 12:57:34 +0000 (13:57 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 15 Apr 2024 15:56:17 +0000 (16:56 +0100)
commit08530a2aa9214932a7e830f31af68881411c3335
treefebcdd5969e0b71aa6f91486474ae0ddc01b446b
parentf936c242553febd5052c6178c1ac555adf837fec
firmware: arm_ffa: Add support for handling notification pending interrupt(NPI)

The FF-A uses the notification pending interrupt to inform the receiver
that it has a pending notification. This is a virtual interrupt and is
used by the following type of receivers:
1. A guest/VM running under a hypervisor.
2. An S-EL1 SP running under a S-EL2 SPMC.

The rules that govern the properties of the NPI are the same as the
rules for the SRI with couple of exceptions. Both SRI and NPI can be
supported simultaneously.

The handling of NPI is also same as the handling of notification for the
self/primary VM with ID 0 except the absence of global notification.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Link: https://lore.kernel.org/r/20240411-ffa_npi_support-v2-3-927a670254e6@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c