Added Support for SOTA notification Check status from HLOS
Change-Id: I1bf58c0ee0dce8a5b1351812c1e9813438d0c0a8
Signed-off-by: Vishvesh Deobhankar <vdeobhan@codeaurora.org>
In cases of system suspend, there is a requirement to update
existing boot marker. Add API to update existing boot marker.
Change-Id: If26249578f4a2594f37f53f3ea819e5032db2b85
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
Provide APIs to be used by the ethernet transport/adaption layer to
interface with qrtr-ethernet driver. Ethernet transport/adaption layer
will use these APIs to:
1. Let qrtr-ethernet know when the ethernet link is up/down so that
endpoint registration/deregistration is done as needed.
2. Provide a function pointer for qrtr-ethernet module to transmit
data to the ethernet adaption layer.
Change-Id: Ifd1a07aef2fc5cd906128d2bed68574a2ab4c29b
Signed-off-by: Jay Jayanna <jayanna@codeaurora.org>
Rename EVT_WAKE_UP to EVENT_REQUEST_WAKE_UP to clearly
expalin that this notification is to request to wake up
the remote processor.
Change-Id: Icc829f3b6c6d8b0cfc2e0ff189a0152759bb6415
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
Add socinfo support for trinket-iot Soc and update the
bindings for the same.
Change-Id: I377526de9e7e7d95d93f6f954f6ff94e8f886b71
Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
Remove Unnecessary socinfo support and update the
bindings for the same.
Change-Id: I724b37fd7e466307db0c209cef834c4a308fa940
Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
For msm targets that have slave side access control, iommu
driver is not allowed to write to secure context bank register
space. Extend arm_smmu_skip_write logic to consider such
protected context bank ttbr address space as well for skipping.
Change-Id: Ibb6ee5a0425c1aa86ab82b78eca386de09baaace
Signed-off-by: Vishwanath Raju K <vishk@codeaurora.org>
Skip writes to global space of SMMU on targets with slave side
protection where this space was preprogrammed by TZ that need to be
wkept intact.
Change-Id: I03f8ba708144ad9846ec8d6b8a89bd53773bdded
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Signed-off-by: Vishwanath Raju K <vishk@codeaurora.org>
This commit introduces helper APIs and header file to be used
by sideband events publishers and subscribers. Communication
is through standard kernel APIs.
Change-Id: I12114bdf3e1e0e6c3fe0677e313bd7ad8e1649b7
Signed-off-by: Rishi Gupta <rishgupt@codeaurora.org>
Add watchdog timer to recover potential data stall when data is
not going to the expected DRB and no DFC indication is received.
Change-Id: Iaa4b4814967cf9400c36115a083922376d23928d
Acked-by: Weiyi Chen <weiyic@qti.qualcomm.com>
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Add snapshot of profiler driver from msm-4.4.
This snapshot is taken as of msm-4.4 commit bf01369440c0
(profiler: Add a communication interface between userspace and tz services)
Refine code for llcc support.
Change-Id: I37db17202fbd09feb36a118e6e9c3e3aa00bec9d
Signed-off-by: Lei wang <leiwan@codeaurora.org>
Add socinfo support for QCM6125/QCS6125 Soc and update the
bindings for the same.
Change-Id: Ia2a9729e6b668559393c6660deca2da97f545c67
Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
'bootloader_load_kernel' and 'bootloader_chksum_time' are
redundant information. As the entries in IMEM have a limit
(as of now 8 entries), recreate them from *_start and *_done
variants, which are populated from the bootloader.
Change-Id: I4794cd5665a7593aca94542fd759fbd0da068d96
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
Add socinfo support for SDM429W SoC and update the
bindings for the same.
Change-Id: Ic29fb6d1561c2c0de94223d976d23270df6d9e3c
Signed-off-by: Archit Saxena <archsaxe@codeaurora.org>
Fixes the size of VMID_LAST to avoid the index
out of bound error.
Change-Id: Iacf449b131f8003ac8252cfe81c9bcb98d9280c0
Signed-off-by: Manohar Vavilapalli <mvavilap@codeaurora.org>
Add necessary flags for secure encoder feature to
request this type of memory.
Change-Id: I81521ac8c9c1b1dd003c96998052a9f1b9ab8c11
Signed-off-by: Vishwanath Raju K <vishk@codeaurora.org>
Add changes to track and predict next rescheduling IPI
based on past history. Add a module param to control enabling
it.
Change-Id: Ie495d8906288ee410708693ee15ed51643aefb44
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
CPU spm is programmed to handshake with rpm for single cpu devices.
If cluster level LPM is not selected even then spm handshakes with
rpm.
Fix this issue by allowing rpm handshake only if cluster level
LPM is selected.
CRs-Fixed: 1043098.
Change-Id: I30d10bfbf34a211563d0a3c4a43fdd5c174b8a3f
Signed-off-by: Haribabu Gattem <haribabu@codeaurora.org>
Signed-off-by: Sivasri Kumar Vanka <sivasri@codeaurora.org>
Add dp-mst sideband message protocol simulator to simulate
downstream reply. This is useful for special bridge that
doesn't support sideband message.
Change-Id: I7670abd3505affb9db3232747b86681cea0b4310
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
Create the framework to support external dp aux bridge device which
can handle DPCD/I2C/HPD from external.
Change-Id: Iabd0998efc8bf7134d186b1751d219c00217385c
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
Add SDA660 SOC information in socinfo driver.
Change-Id: I8e66312d1755480f8ca9de281a9906b338c59e71
Signed-off-by: Vishwanath Raju K <vishk@codeaurora.org>
Compilation failed, due to updated function declarations lpm_levels
driver where the lpm_levels_legacy driver is not updated in parallel
Rectified all errors occurred during compilation for mdm9607 target.
Change-Id: Iacb6ce9949454a949bcba90a8e8285ca18b832d5
Signed-off-by: Sivasri Kumar Vanka <sivasri@codeaurora.org>
Signed-off-by: Haribabu Gattem <haribabu@codeaurora.org>
Add non psci legacy lpm support. Modify and align changes
for clock event, MPM and cpu hotplug for LPM callback notification.
Remove deprecated scheduler c-state(idle cpu), d-state(idle cluster)
setting from lpm driver.
Snapshot is taken from msm-4.9 kernel version @commit b9ad452666da39.
("soc: qcom: bgrsb: Increase time out for RSB channel opening").
Change-Id: I8958ab4f098cc6d875071e3f100b8b74845e0cfa
Signed-off-by: Haribabu Gattem <haribabu@codeaurora.org>
Signed-off-by: Suresh Kumar Allam <allamsuresh@codeaurora.org>
Use the exsisting SCM call for QUPv3 firmware loading during SSR
of SSC subsystem, instead of creating a new one.
Change-Id: I6561137202fdc859c24fcaaeb11c74d160a6a282
Signed-off-by: Ashish Kori <akori@codeaurora.org>
Add socinfo support for SDM660 SoC and update the
bindings for the same.
Change-Id: I66220a73e921ea4f2758137ba0440a470ff9872d
Signed-off-by: Naitik Bharadiya <bharad@codeaurora.org>
Avoid callig synchronize_rcu() in a loop for every rmnet vnd
during SSR or shutdown by doing it only once.
Change-Id: I9788a431ca227fc49eee24d94d0803354d10fbc6
Acked-by: Weiyi Chen <weiyic@qti.qualcomm.com>
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Added apm drivers in order to keep backward compatibility
for cpr3 regulator. This snapshot is taken as of msm-4.4
'commit ae5acb1 (Merge "soc: msm-pcm: Add mutex lock to
protect prvt data")'.
Change-Id: If56c1ed27a901bc41c7b683b9aa29ee8f945e644
Signed-off-by: Asha Magadi Venkateshamurthy <amagad@codeaurora.org>
This is snapshot of the clock framework files as of msm-4.9
'commit cc7a1542d987 ("msm: ipa: Fix assignment warning with clang").
Below is the brief description of the additional changes made:
1. Add COMMON_CLK_MSM config flag for conditional compilation for
some common files used between COMMON_CLK_MSM and COMMON_CLK_QCOM
clock framework files.
2. Add reset controller framework files for BCR operation.
3. Add conditional compilation support for FTRACE clock functions
to maintain compatibility for clock framework based on
COMMON_CLK_MSM and COMMON_CLK_QCOM.
4. Add files for GDSC operation.
5. Add BCR reset maps.
6. Resolve compilation issue for qti-quin-gvm.
Some PLL HWs require an additional delay for the PLL lock detect
to stabilize after being brought out of reset and SW to poll for
lock detect status. Add delay of 50uSec before polling lock_det
bit by introducing new pll ops.
Also if PLL fails to lock, record additional PLL debug information
in the kernel log before panic().
'commit 90cb5ecd7cfd ("clk: msm: Add delay of 50uSec before polling
lock_detect status")'.
1:1 is the MN divider preference for DSI PCLK for the regular
24 bpp use-case for display as per hardware recommendation.
Update the divider array to give first priority to 1:1
divider combination.
'commit a270c07a1e21 ("clk: msm: update the fractional divider
array for DSI PCLK")'.
For some PLLs, there could be need to configure the calibration
L value for auto calibration which PLL would use whenever it will
come out of reset. Add support for the same by writing into
USER_CTL_HI register.
'commit 05bd8759e347 ("clk: msm: Add support to configure
calibration L value")'.
Change-Id: I4260a9807e5e1b116db8f43fb9cfbbb55a5a8d67
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: Suresh Kumar Allam <allamsuresh@codeaurora.org>
dl marker is enabled always if the power collapse feature
is enabled. However, dl marker may not be required in certain
configurations.
CRs-fixed: 2560817
Change-Id: I3a251a3bf8cbab4434e2aa055783b4a3c3d1103a
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
This reverts commit bbb755a7d9.
Legacy smc_call support is needed for mdm9607,so adding
scm_call and scm_call_atomic related calls support.
Resolved conflits in scm.h and Makefile.
Change-Id: I03a2de9cd3ffb522f65ecd6dab90004bb3feb539
Signed-off-by: Haribabu Gattem <haribabu@codeaurora.org>
Signed-off-by: Sivasri Kumar Vanka <sivasri@codeaurora.org>
During recursive hibernation use case, if place_markers are used,
it results in duplication of entries. This patch adds provision to
update existing markers and if not present, create new entry. There
is a need to update bootloader boot stats during hibernation restore.
This is achieved by calling function update_bootloader_stats(). Make
this function local to boot_marker.c and use hibernation specific
markers to update boot stats. Also increase the BOOT_MARKER_MAX_LEN
to 50 chars to accommodate new entries.
Change-Id: I260be44519f013dbf626b92707f39de7d6ad7cdc
Signed-off-by: Arun KS <arunks@codeaurora.org>
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
This change is related to SSC Qup SSR and it's handling. Common driver
registers for PIL notification and handles SSR shutdown/restart callbacks
which in turn calls respective bus driver. Subsystem notification is DTSI
based entry.
On some platforms SSC QUPs, present on different subsystem
(e.g. sensor/adsp/slpi), are used by Apps processor. When these
subsystems go through SSR, apps driver must release the resources
- clocks, gpios, bus-votes etc and not attempt to access hardware
registers as well until SSR is finished. This is now handled by QUP
common driver by registering for SSR callbacks. On SSR down it notifies
all SE bus drivers to release the resource and force_suspend device. And
on SSR up notification common driver requests for firmware loading and
lets SE drivers start using the QUP again. In addition to this, client
drivers are also expected to handle data transfer errors on SSR and
initiate next data transfer only after SSR is complete by checking for
following sysfs node exposed by common driver - 'ssc_qup_state'.
Change-Id: I5f9fc36e6588299ee9d7d1b59ac5b9ee57ccf5ad
Signed-off-by: Ashish Kori <akori@codeaurora.org>
Update to phase 2 QMAP definitions. Remove extra QMAP acks for
commands that already have response defined. DFC notify acks are
now sent over data EP.
Change-Id: I64eec4185025e9fca2d1fc8ff0a20e48c880d4d6
Acked-by: Weiyi Chen <weiyic@qti.qualcomm.com>
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Fix boot KPI marker by aligning with bootloader.
Removed display KPI marker as not supported by
bootloader.
Change-Id: I075ea648204cdd08595350bf1b2a4b7c92d0ff50
Signed-off-by: Atul Raut <araut@codeaurora.org>
Add support for VMID_NAV and shared memory region will be given access to
vm-nav-path also.
Change-Id: I9798e095a1f8bb7a76abcc0ec0949ff26989ad6f
Signed-off-by: Sridhar Arra <sarra@codeaurora.org>
Added RmNet control driver to communicate with dedicated MHI channels.
The driver provides interfaces for clients to register QMAP command
handlers and transmit QMAP packets.
Change-Id: Ib70ce1e2e6e5c6248888a515bfc91e09e042c534
Acked-by: Weiyi Chen <weiyic@qti.qualcomm.com>
Signed-off-by: Conner Huff <chuff@codeaurora.org>
Add socinfo support for QCS404 and QCS407 SoC and update the
bindings for the same.
Change-Id: I4e94829061cf40544ced774c3dfcf6578b548b35
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
If WLAN interface is not brought up for certain amount of time
after it is created, idle shutdown will happen to power off WLAN
device. Idle restart will happen to power up WLAN device if WLAN
is needed by user again. Add the support in platform driver.
Change-Id: I63e85c7de20536fc4146e05146e72537095025e5
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
The subsystems might depend on other subsystem's state to be powered-on
or powered-off. Hence, add flexibility via 'pon-depends-on' and
'poff-depends-on' device-tree properties. This way, first the dependent
subsystem's power operation would be fulfilled and then this
subsystem's.
Change-Id: I9764178ff9cc3957389f25cb5b0882c75c0d7db0
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>