]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firmware: arm_ffa: Handle the presence of host partition in the partition info
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 17 Feb 2025 15:38:48 +0000 (15:38 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:19 +0000 (11:13 +0200)
commitf30c4be06f509e72baf01fcacc8e1508e45a7d30
tree7b9dd5a44674fae49b80aa30ec2527a6c7c1608e
parent4accec2a9f6c48f17c2accccef0571ae3231e278
firmware: arm_ffa: Handle the presence of host partition in the partition info

[ Upstream commit 2f622a8b0722d332a2a149794a3add47bc9bdcf3 ]

Currently it is assumed that the firmware doesn't present the host
partition in the list of partitions presented as part of the response
to PARTITION_INFO_GET from the firmware. However, there are few
platforms that prefer to present the same in the list of partitions.
It is not manadatory but not restricted as well.

So handle the same by making sure to check the presence of the host
VM ID in the XArray partition information maintained/managed in the
driver before attempting to add it.

Tested-by: Viresh Kumar <viresh.kumar@linaro.org>
Message-Id: <20250217-ffa_updates-v3-7-bd1d9de615e7@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/arm_ffa/driver.c