Add sanity check to handle write operation on
aon_com_dev node from userspace when driver
is not initialized.
Change-Id: I1bd1fb94ee5b59ff113f8e359c303a2dd1f47430
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
Increase in glink channel open timeout to work all
cases.
Change-Id: I5da00646701b4ae288d5fe391c10300024579ab1
Signed-off-by: Ganesh Keethol <quic_gkeethol@quicinc.com>
Set rproc unload flag during RTOS exit. This is required for AON rproc
coredump routine. Clear the flag on next AON load completion.
Change-Id: I78db969f82e920c668645427424151240fcbc07f
Signed-off-by: Naveen S Nair <quic_naveensn@quicinc.com>
Add support to send ADSP and MPSS subsytems pre powerup & down
events to AON, which helps to handle the subsystem SSR gracefully.
Change-Id: I103efd6fcd7b44608f50d8116a325ddc874aadc9
Signed-off-by: Naveen S Nair <quic_naveensn@quicinc.com>
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
As rf_clk2 required only for AON boot, disable
on post aon boot complete.
Change-Id: I8ec0108a570dbc00f9364a43c15057b8b9e51b5b
Signed-off-by: Ganesh Keethol <quic_gkeethol@quicinc.com>
Error handling on AON load when failed to get
remoteproc handle.
Change-Id: Ie8924e5760724e514e94a75fab0f082e31ec9b89
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
Add support to get current AON unload state and to
differentiate between SSR and force AON shutdown.
Change-Id: I21f94791d89ea597536d2edeaaa23d6b25aa2032
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
Skip getting rproc handler if it is already available
on RTOS exit path.
Change-Id: Ia675a7fa17f0e4e7fa947707db34b5a924420696
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
Handle AON ioctl call for no aon device from AON driver.
Change-Id: I69c7106a2a2f963c77f4b74fb7bbb07fcf0c8aa1
Signed-off-by: Chandrasekhar Mattaparthy <quic_cmattapa@quicinc.com>
Add buffer overflow check while accessing data buffer
received from AON.
Change-Id: I0472a0ad1e6edc3fe8102850fddacd89ceea4959
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
Enable AON ramdump on TWM exit if it is crashed.
Change-Id: I65ffd25874b5b1516531429c41b05b4107d5e246
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
Add support to send aon boot status as seb events.
Any client can register for aon status to seb driver
and seb driver send respective aon state to client.
Change-Id: Iacbc5eb50b35a987a27083275a84513cf1b5336d
Signed-off-by: Ganesh Keethol <quic_gkeethol@quicinc.com>
Add support to collect AON dumps when AON is in
crash state on TWM exit.
Add common ioctl for AON BOOT commands.
Change-Id: I3d88c74a99364a9e200cbeb6b8e70c1881bb3f38
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
Add common ioctl command for below IPC cmds to
reduce the code complexity:
- DEVICE_STATE_TRANSITION.
- SEND_TIME_DATA.
- SEND_DEBUG_CONFIG.
- GET_VERSION.
Add support to get AON firmware version.
Change-Id: Ic0f9965f0310b9975201e0ed26ba6c2306c74e1a
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
Handle rproc AON boot fail which allow AON
boot on re-try.
Change-Id: Ied686895497d573a89788e6d0b505f5fac1cf103
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
Add support to send reset signal to AON via TZapp and
expose this to userspace via ioctl command.
Change-Id: Ic79d2a7d8f75baca310e25c62183e2142d343805
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
Add support to enable API's for set & get AON boot mode.
Change-Id: I16da8f8640c6c85227a47978b999eb5753080ff3
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
Move the aon interface header file to common vendor
include path.
Change-Id: Iba7a66fb6632c1cef05625fa6acb0dc71a46faa6
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
Align aon_ui_data uapi structure with attribute_packed macro.
Typecast the 32-bit userspace timesync packet buffer pointer
to handle it on 64-bit kernel and transfer to aon.
Change-Id: I030b10efc72a0466c96b402795d8f9d22e9fcf4a
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
Modify the IOCTL macro to mitigate the problem due to
interaction between 32 bit user space and 64 bit kernel.
Change-Id: I6ecf1c6af42bfc63ca1a82303dc24ceda7c06f1c
Signed-off-by: Vivek Yadav <quic_viveyada@quicinc.com>
Update ssr domain for adsp and modem subsystems
according remoteproc framework to register other
subsystems ssr event notification on aon interface.
Change-Id: Ibc1a1ed8914d7eae359d13795cabe0485e43c841
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
Modify the interface, seb and rsb channels to mitigate
the circular dependency issue.
Change-Id: I0c64e62bfc5c54c14283b746cf3e075071724f25
Signed-off-by: Vivek Yadav <quic_viveyada@quicinc.com>
To check the BT and DSP status need to have sysfs
node.
Change-Id: Ie2781592d5a2cb06061e52f0fd8e2fe5f5b116fb
Signed-off-by: Vivek Yadav <quic_viveyada@quicinc.com>
Add compat_ioctl handler inorder to support 32-bit user space
running on 64-bit kernel for aon interface module.
Change-Id: Ie07b6b8017b1f56a5a12a063aff3c856c86ecb76
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>
Refactor the code to remove cyclic dependency between interface
and client spi driver.
Change-Id: I8df32542483fdc02260b4a5fc6c7c294d3605f6a
Signed-off-by: Vivek Yadav <quic_viveyada@quicinc.com>
Refactor the code to remove cyclic dependency between interface
control channel and its corresponding rpmsg driver.
Change-Id: I390d0fe3cddb38928df839be75475b59586fc6df
Signed-off-by: Vivek Yadav <quic_viveyada@quicinc.com>
Integrate code to enable SSR for various subsystems defined
as remote processor, adsp and modem.
Change-Id: I3f2f834d4c1a96c5889dec50e5ee0e7d59e4e6e4
Signed-off-by: Vivek Yadav <quic_viveyada@quicinc.com>
Port AON specific spi & interface drivers from msm-5.4.
Snapshot is taken from msm-5.4 kernel @commit 24a8858e323279
(soc: qcom: initialize variables).
Add pm_suspend_via_firmware() to differentiate b/w
RBSC & DS instead of msm_sleep_current.
Remove dependency of aon pil & subsystem drivers.
Change-Id: Ic6860f07149e9e28b8846f43886f5e44edf59e5c
Signed-off-by: Chandrasekhar Mattaparthy <quic_cmattapa@quicinc.com>
Signed-off-by: Praveen koya <quic_pkoya@quicinc.com>