This change adds locking to shared variables to
prevent any data race conditions. cb_reqs_inflight
and server_info should both be protected under locks.
Change-Id: I3475ab3208c2fc91fce2865d64626efdcd404e70
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
Use the CHARGER_STATUS to report the charger-detection status
and INPUT_VOLTAGE_SETTLED to report input voltage, reading them
from SDAM.
While at it, clear the SMB_EN for CP in the shutdown path
to prevent SMB from being enabled in the next boot.
Change-Id: I269b0be18b56d56c0ab0e68ee1d7194d09824dd7
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Currently, process specific info like name and PID is being stored
in the internal data structures at the time of device open. But
since the DSP HAL service will now be opening the device node on
behalf of third-party applications, store process specific info in
GETINFO ioctl call which will be the first IOCTL call directly
from the client application.
Change-Id: If05d48123e4ec52c0271a7cb7f3ca790662d9abe
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
This changes release qmi handle and registers again
to qmi service for wlan server notifications.
Change-Id: I0a20622ec308778c9be2d66ff829f4b6ee841e92
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
Add code to post unregister driver event during modem
graceful shutdown instead of directly calling driver
remove.
Change-Id: Ie8b7699bf4e9e346279feede68022cda20f93a69
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
A stuck CP means that we will not be able to enter
slumber because gmu to cp interaction is impacted.
Therefore, take a gmu snapshot which also sets gmu
fault. The gmu fault will indicate the clean up
code to force a gmu_suspend() so as to set the
stage for the next submission to start afresh.
Change-Id: Ia90e6c447e9c1c87e04cf9ca3ed87eed5c17b07c
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
This change restricts disabling of core interrupt only for HSUART case
from probe function. Console usecase requires irq to be in enable state
to handle RX data.
Change-Id: I244c68e8e327729734bda42aa1b90a914375e147
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
GMU can fail to turn on GX or it can fail the
START HFI. So take snapshot and put GMU in NMI.
When this happens, kgsl will call gmu_stop()
and as GMU is already in fault aka NMI, reset
the GMU and GPU.
Change-Id: Iafc9b34063a7ff2415d3462dd289b52e425fbf3b
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
On SSR, FW writes hang data in the carved out region from
existing DDR memory, the platform driver copies the hang
event data from the fixed offset to local buffer and sends
the buffer and length to host driver via CNSS_HANG_EVENT
event.
Change-Id: I5928821770086547b4fe17c30a967ea059b39394
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
Initialize the local variable 'ret' with zero to
prevent un-initialized access. Also fix uninitialized
uport pointers access from msm_geni_serial_probe().
Change-Id: I25198737992f24f7b06e77e68f29ba3263fb0b30
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
If invoke calls are made before any accept threads then
its possible that workqueue has sleeper will return false.
So CB failures are seen during TA loading.
Change-Id: Id3b3a1907456c59bd8d51355dbdcba30a5c1a79a
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
Add check to skip gdsc disable when disable call comes before
the gdsc enable. In case if the gdsc is enabled by entity external
to HLOS then skip disable call.
Change-Id: I14ba8a24fb4403a1805cba23967bb22a82ac6e7f
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>