Commit ffb70eb8 authored by Cristian Marussi's avatar Cristian Marussi Committed by Carlos Llamas
Browse files

FROMGIT: firmware: arm_scmi: Add protocol versioning checks



Platform and agent supported protocols versions do not necessarily match.

When talking to an older SCMI platform, supporting only older protocol
versions, the kernel SCMI agent will downgrade the version of the used
protocol to match the platform and avoid compatibility issues.

In the case where the kernel/OSPM agent happens to communicate with a
newer platform which can support newer protocol versions unknown to
the agent, and potentially backward incompatible, the agent currently
carries on, silently, in a best-effort approach.

Note that the SCMI specification doesn't provide means to explicitly
detect the protocol versions used by the agents, neither it is required
to support multiple, older, protocol versions.

Add an explicit protocol version check to let the agent detect when this
version mismatch happens and warn the user about this condition.

Signed-off-by: default avatarCristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20231201135858.2367651-1-cristian.marussi@arm.com


Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>

Bug: 339841691
(cherry picked from commit b5efc28a
https: //git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git for-linux-next)
Change-Id: I5864e69af3df31bff9fa39af613269b44e83509c
Signed-off-by: default avatarZhipeng Wang <zhipeng.wang_1@nxp.com>
parent 69acf8ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment