]> git.ipfire.org Git - thirdparty/linux.git/commit
firmware: arm_ffa: Skip the first/partition ID when parsing vCPU list
authorSudeep Holla <sudeep.holla@arm.com>
Sun, 23 Feb 2025 21:39:09 +0000 (21:39 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Sun, 23 Feb 2025 21:41:14 +0000 (21:41 +0000)
commitc67c2332f8c80b03990914dfb66950c8d2fb87d8
treeeff33707f24717bad24148918159078470d8235d
parent3e282f41585c4dd49b688bd6395fd6f21a57c9f7
firmware: arm_ffa: Skip the first/partition ID when parsing vCPU list

The FF-A notification id list received in response to the call
FFA_NOTIFICATION_INFO_GET is encoded as: partition ID followed by 0 or
more vCPU ID. The count includes all of them.

Fix the issue by skipping the first/partition ID so that only the list
of vCPU IDs are processed correctly for a given partition ID. The first/
partition ID is read before the start of the loop.

Fixes: 3522be48d82b ("firmware: arm_ffa: Implement the NOTIFICATION_INFO_GET interface")
Reported-by: Andrei Homescu <ahomescu@google.com>
Message-Id: <20250223213909.1197786-1-sudeep.holla@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c