During ramdump collection we assign memory to HLOS from subsystem for
non-secure pil. Whether ramdump collection is successful or not, we
should assign memory back to subsystem. This is to avoid access
violations in powerup path which happens after ramdump.
CRs-Fixed: 2002073
Change-Id: I7f1d42aebb44464fe077ca544ce91c2d7a8eefbb
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
Add error message for GFP_ATOMIC allocation failure. Keep current
design to drop packet if allocation fails. This print will help debug
issues where a system critical client fails because of a dropped GLINK
packet.
CRs-Fixed: 1112151
Change-Id: I6a69cbf1f88295009284d726a06fa5affd4cc591
Signed-off-by: Chris Lew <clew@codeaurora.org>
The case of port index equals AFE_MAX_PORTS is not checked.
Add this corner case to avoid wrong port number.
CRs-Fixed: 1114578
Change-Id: I466cb7d87313e55e9e0bd08a7ab43f3ea36b8b9a
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Debug policy of secure devices take care of nullifying
the ram dumps in secure boot mode. So no need to check
about secure boot mode in reboot driver to enable
download feature.
Change-Id: Idb5c93aca630f0093fccc2997bf50e7958dfbf54
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
firmware-5.bin file for WCN3990 contains just WMI and HTT versions and
firmware is loaded by PIL.
This change, populate the hw params for WCN3990 and parse
firmware-5.bin file for WMI and HTT versions.
CRs-Fixed: 2002151
Change-Id: Ic65d3696e9546fd428e608f4738e9fe53d61338f
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
Add a new function to the IIO API which allows consumers to write
processed values to IIO channels.
This is particularly useful for supporting hardware which has
configurable ADC thresholds. A consumer would be able to change an ADC
threshold by providing a processed value instead of calculating a raw
value.
Change-Id: I7d3b22beddb6fd1fda0cc0aefbcb4cf5cb58bf82
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
There could be possibility of integer overflow on adding
offset with size and result into a value smaller than
memdesc size.
CRs-Fixed: 1109776
Change-Id: I3746f34c9fb8ada28a9b6ed438ca8c296b69e752
Signed-off-by: Sudeep Yedalapure <sudeepy@codeaurora.org>
Signed-off-by: Abhilash Kumar <krabhi@codeaurora.org>
Values stored in etm are lost across power collapse.
Add etm save retore nodes which saves etm
values across power collapse.
Change-Id: I9ceb89a255847ca1d9dc01f223283f5664cb8feb
CRs-fixed: 1112224
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
Fail map if dmabuffer size doesn't match expected buffersize.
This is to avoid faults in firmware while accessing buffers.
Change-Id: Ie41a93979696299a8b2fc3c548cb6574a21313db
Signed-off-by: Abdulla Anam <abdullahanam@codeaurora.org>
IPA and GSI firmwares are saved on the file-system as an
ELF file. IPA driver extracts the firmwares and load
them during driver initialization.
This change adds validation steps to each firmware before
loading: load addresses, memory sizes, firmware sizes and
more...
Change-Id: I7d7f66e8e8a9ca0efae08b1e57b25ae4e44cc5bb
CRs-fixed: 1110522
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
Bluetooth functionality is provided by wcn3990 on sdm630. Add device tree
entry having various voltage regulators, clock settings etc.
Change-Id: I8640138f3485e1b1a26fb0f63526ad6083b93193
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
BLSP2 UART1 is used as transport for Bluetooth between sdm630 & wcn3990.
Enable it so that Bluetooth can be enabled on sdm630 CDP/MTP/QRD.
Change-Id: I61f300d5a8fa54172acce429ee961f7caef7d404
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
Add sdhc ice device tree data to dts files with all
the necessary parameters, to enable the ICE driver
for crypto operations related to disk encryption.
Change-Id: I5bfcf35f4a93ef9ef21508d3c4b3309bb0086511
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
Add ufs ice device tree data to dts files with all
the necessary parameters, to enable the ICE driver
for crypto operations related to disk encryption.
Change-Id: I87463a1c1a064ba2a0597d095e6807931e7b5666
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
IPA v2.6 hardware has 32 bit limitation,
enable zone dma flag to get a kernel
memory allocated in 32 bit space.
Change-Id: I61fc2d28ef4e690a7d03ad68c308a6b6fe5129cf
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
Invalid instance access can happen in sys error handler
as instance can be deleted after core lock is released.
Add change to print all instance info within core lock
to avoid access to invalid instance.
Change-Id: Ib4090730d347b9865f211e9cf22d30951739f741
Signed-off-by: Surajit Podder <spodder@codeaurora.org>
Modify DCC RAM size for sdm660. DCC RAM is used to
store captured information locally in DCC.
Change-Id: Ib9d4ae640e8162d5a3f44739b9289457ee4ae43c
CRs-fixed: 2002031
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
Temperature compensation is needed for charger die
temperature. Offset and slope coefficients are applied
based on the FAB ID read from the REVID peripheral.
Change-Id: I0bd5712b17b11c245da6d737ea0994e7f17d9837
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
Add ufs and ufs-phy device nodes to support
ufs as storage device for SDM630 platform.
Change-Id: Ia4059d1663dc7886ac3873bbdcca6023c6ff5643
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
The semantic of hpd and notify have been changed. hpd is
a blocking call which notifies display and audio with the
cable status, and notify is used to complete the hpd call
which waits for the acknowledgment of power on/off. Update
these 2 interface implementations for HDMI.
CRs-Fixed: 1086894
Change-Id: I8603149132e224cb2859d2b808123238d0516817
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
Signed-off-by: Lei Chen <chenl@codeaurora.org>
Move all "find_votable" requests before any voter creation
in smb library to prevent multiple creation/destruction of
votables due to probe-deferrals.
CRs-Fixed: 2001651
Change-Id: I03cb30775720a53ad24e1c5d5e075d7442b2729c
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Add a new votable in parallel driver to support wakeup source
handling via pmic-voter framework.
CRs-Fixed: 2001651
Change-Id: Ia2c67d76081c36508d1ad3c3cb3a0be4c1a55814
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Parallel charger registers to power supply framework with name
"parallel" instead of "usb-parallel" thus update all references
of "usb-parallel" with "parallel".
While at it, remove extra NULL pointer check of pl_psy in
parallel enable path.
CRs-Fixed: 2001651
Change-Id: I4150808f7122cef970296553fb70671df12aced9
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>