soc: qcom: aoss: Add debugfs interface for sending messages
authorBjorn Andersson <quic_bjorande@quicinc.com>
Thu, 18 Jan 2024 02:31:52 +0000 (18:31 -0800)
committerBjorn Andersson <andersson@kernel.org>
Sun, 28 Jan 2024 03:11:20 +0000 (21:11 -0600)
commitd51d984c5525aebac0f90356ab1d923541b5cc60
tree5e405550ade0d2be741001b97abb8744d35c4346
parent27825593c972abac86b9a4453a8c8c9a2c1ec60f
soc: qcom: aoss: Add debugfs interface for sending messages

In addition to the normal runtime commands, the Always On Processor
(AOP) provides a number of debug commands which can be used during
system debugging for things such as preventing power collapse or placing
floor votes for certain resources. Some of these are documented in the
Robotics RB5 "Debug AOP ADB" linked below.

Provide a debugfs interface for the developer/tester to send some of
these commands to the AOP, which allow the user to override the DDR
frequency, preventing power collapse of cx and ddr, and prevent AOSS
from going to sleep.

Link: https://docs.qualcomm.com/bundle/publicresource/topics/80-88500-3/85_Debugging_AOP_ADB.html
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Reviewed-by: Chris Lew <quic_clew@quicinc.com>
Link: https://lore.kernel.org/r/20240117-qcom-aoss-debugfs-v2-v3-1-1aa779124822@quicinc.com
[bjorn: Dropped S_IWGRP from the debugfs files]
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/qcom_aoss.c