]> git.itanic.dy.fi Git - linux-stable/commit
firmware: arm_ffa: Implement notification bitmap create and destroy interfaces
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 5 Oct 2023 14:44:55 +0000 (15:44 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Fri, 6 Oct 2023 14:33:13 +0000 (15:33 +0100)
commit192e88cfea8ce2d85ab70fa1c8d768042e00b7f1
tree0674c9d25d5057cc51998613a9ee849d8cd50c7e
parent1609626c32c4538439f6333d0b6c912af9f13b77
firmware: arm_ffa: Implement notification bitmap create and destroy interfaces

On systems without a hypervisor the responsibility of requesting the
creation of the notification bitmaps in the SPM falls to the FF-A driver.

We use FFA features to determine if the ABI is supported, if it is not
we can assume there is a hypervisor present and will take care of ensure
the relevant notifications bitmaps are created on this partitions behalf.

An endpoint’s notification bitmaps needs to be setup before it configures
its notifications and before other endpoints and partition managers can
start signaling these notifications.

Add interface to create and destroy the notification bitmaps and use the
same to do the necessary setup during the initialisation and cleanup
during the module exit.

Link: https://lore.kernel.org/r/20231005-ffa_v1-1_notif-v4-2-cddd3237809c@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c