]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firmware: arm_scmi: Add helper to trace bad messages
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 25 Mar 2024 20:46:17 +0000 (20:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 May 2025 12:12:12 +0000 (14:12 +0200)
commit6bddbdbeb748cb437f798ac12b30d915f861a35a
tree36f5d3f953e904925567186a3e5b8854eeae94d9
parent7ea1913daafc98c8a29ee004ad65e9d8f9816998
firmware: arm_scmi: Add helper to trace bad messages

[ Upstream commit 5dc0e0b1f0ea2b55031f84a365962b9b45869b98 ]

Upon reception of malformed and unexpected timed-out SCMI messages, it is
not possible to trace those bad messages in their entirety, because usually
we cannot even retrieve the payload, or it is just not reliable.

Add a helper to trace at least the content of the header of the received
message while associating a meaningful tag and error code.

Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20240325204620.1437237-3-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Stable-dep-of: c23c03bf1faa ("firmware: arm_scmi: Fix timeout checks on polling path")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/arm_scmi/common.h
drivers/firmware/arm_scmi/driver.c