Commit graph android_kernel_sony_sdm845/include/soc/qcom
Message SHA1
soc: qcom: sideband: add helper APIs for sideband notifications
This commit introduces helper APIs and header files to be used
by sideband events publishers and subscribers.

Change-Id: I713b5b2a8dda2309453b433d922546f16a6f7e7e
Signed-off-by: Rishi Gupta <rishgupt@codeaurora.org>

Rishi Gupta   authored and   Gerrit - the friendly Code Review server   commited 2020-07-09 10:59:21 -07:00
42704c8c6e
soc: qcom: socinfo: Add support for SDA429W soc-id
Add socinfo support for SDA429W SoC and update the bindings
for the same.

Change-Id: I9d1e48be7e1f65f42c5d1fd3c0f1bf4fbf9973f5
Signed-off-by: mengjian <mengjian@codeaurora.org>

mengjiang   authored and   mengjian   commited 2019-10-18 14:21:57 +08:00
c371b03b4a
soc: qcom: socinfo: Add supprot for QCM2150 QRD soc-id
Add socinfo support for QCM2150 QRD Soc and update the
bindings for the same.

Change-Id: I5b7ee61bf9410844de42d8351400619e0d768ac1
Signed-off-by: Vishwanath Raju K <vishk@codeaurora.org>

Vishwanath Raju K   commited 2019-08-30 11:48:41 +05:30
d8796fd9ac
icnss: Synchronize idle shutdown and restart
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>

Naman Padhiar   commited 2019-08-04 01:40:03 +05:30
ec9c04b81d
Merge "icnss: Thermal mitigation support in WLAN"
Linux Build Service Account   authored and   Gerrit - the friendly Code Review server   commited 2019-06-20 09:51:01 -07:00
9d1dd8c887
soc: qcom: socinfo: Add support for SDM429W soc-id
Add socinfo support for SDM429W SoC and update the bindings
for the same.

Change-Id: I0dc811a23f07e7f3dcdd1f51b2cae2acbd0063bd
Signed-off-by: Shaoxing <shaoxing@codeaurora.org>

shaoxing   authored and   Gerrit - the friendly Code Review server   commited 2019-06-17 19:36:27 -07:00
2b289c81a6
icnss: Thermal mitigation support in WLAN
Add support for WLAN Host to register as cooling device through
icnss platform driver.

Change-Id: I9d3c2bfa18ea6b4a473c2d54b3a99cd7b4e62a68
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>

Naman Padhiar   commited 2019-06-17 15:50:19 +05:30
7649fde8d3
msm: boot markers: Add boot markers driver
Add boot marker driver and make support for boot stats.

Change-Id: Ie37cb7c5b44a391eb180499cf86ac50fcbbb544b
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>

Venkata Rao Kakani   authored and   Sunil Paidimarri   commited 2019-06-04 18:54:23 -07:00
6e0b10d5f2
icnss: Add a flag to indicate PDR
During pdr case wlan host driver is not doing the cleanup of
ipa module. So after sap mode recovery in pdr case
data packets are not going on ipa path even ipa is enabled.
To address this issue send pdr indication to wlan host driver.

Change-Id: Ib0480870d3218da61edb0309725787c0382957ab
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>

Sandeep Singh   commited 2019-05-06 14:12:31 +05:30
2066d3ad3f
soc: qcom: socinfo: Rename sdmnobelium to sdm712
Rename sdmnobelium to sdm712.

Change-Id: I9fdfbf3ebde32c7f6aa97968668f03e5ba80fdfa
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>

Kaushal Kumar   commited 2019-03-25 18:20:57 +05:30
1b2a9b1507
qseecom: Fix clang compilation in qseecom driver
Make changes to ensure qseecom driver compiles
fine with clang enabled.

Change-Id: I390a1438425d77c23438fceb5c2c52063b472c90
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>

Anmolpreet Kaur   authored and   Gerrit - the friendly Code Review server   commited 2019-03-17 04:33:06 -07:00
dd006fea32
icnss: Add Api to Block/Unblock modem shutdown
Add API to Block/Unblock modem graceful shutdown.

Change-Id: I69b061fc7d25762b2c36d9590802addfc170f91f
Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>

Anurag Chouhan   authored and   Gerrit - the friendly Code Review server   commited 2019-02-11 21:07:39 -08:00
274fe76b53
Merge "drivers: cpuidle: lpm_levels: Correctly update lpm stats"
Linux Build Service Account   authored and   Gerrit - the friendly Code Review server   commited 2018-12-17 06:49:35 -08:00
c827d785de
drivers: cpuidle: lpm_levels: Correctly update lpm stats
Correctly update LPM stats for cluster level to indicate
success. Update system_pm_ops as well to use correct exit
status for rpmh master stats update.

Change-Id: Ia50dcb21cd041db0ed17d25897fe346afe06dab2
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>

Maulik Shah   commited 2018-12-03 09:36:22 +05:30
083e22a8ad
soc: qcom: sysmon-qmi: Fix duplicate BEFORE_POWERUP SSCTL events
Currently, when sending an SSCTL SSR event, the event is
obtained by blindly following a map from the notification ID
provided by the subsystem notifier framework to an SSCTL
SSR event.

Since all the entries in the map that are not explicitly defined
are initialized to 0 (SSCTL_SSR_EVENT_BEFORE_POWERUP), then
notifications, such as SUBSYS_PROXY_VOTE, that do not map
to an actual SSCTL event map to SSCTL_SSR_EVENT_BEFORE_POWERUP,
resulting in multiple SSCTL_SSR_EVENT_BEFORE_POWERUP
notifications being sent.

To avoid this, mark all the notification ID to SSCTL event
mappings that are not defined, as SSCTL_EVENT_SSR_INVALID,
and prior to sending an SSCTL SSR event for a notification ID,
check to ensure that the notification ID maps to a defined
SSCTL event.

Change-Id: If4e4fcd12f7acc6eb82f9776a9db8bc9066d3c4e
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>

Isaac J. Manjarres   commited 2018-11-27 09:25:14 -08:00
30a5d8997f
ARM: dts: msm: Add device tree support for msm8940
Add initial set of device tree files to build the
msm8940 target. This implementation is based on
snapshot of the msm8940 device tree from msm-3.18.
commit d0eb392e8733c
("ARM: dts: msm: Add support for MSM8940").

Change-Id: Icc0d37dbde746b9ad82286c192585d7d047ba70e
Signed-off-by: Naitik Bharadiya <bharad@codeaurora.org>
Signed-off-by: Chetan C R <cravin@codeaurora.org>

Chetan C R   authored and   Gerrit - the friendly Code Review server   commited 2018-10-22 23:04:39 -07:00
95b6ac40b6
Merge "Minidump: Add update region support for minidump regions"
Linux Build Service Account   authored and   Gerrit - the friendly Code Review server   commited 2018-10-14 23:29:58 -07:00
e4c33baa3f
Merge "soc: qcom: socinfo: Rename sdmdolphin"
Linux Build Service Account   authored and   Gerrit - the friendly Code Review server   commited 2018-10-09 08:58:19 -07:00
6195669667
Merge "ARM: qcom: Add board config support for sda450"
Linux Build Service Account   authored and   Gerrit - the friendly Code Review server   commited 2018-10-09 08:58:12 -07:00
294a532a74
soc: qcom: socinfo: Rename sdmdolphin
Rename sdmdolphin to avoid a possible keyword
overlap.

Change-Id: I35f7a437acac825585108f7227ecf0d3858e4a0c
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>

Kaushal Kumar   commited 2018-10-09 17:38:22 +05:30
8647da800f
soc: qcom: socinfo: Add support for SDA450 soc-id
Add socinfo support for SDA450 SoC.

Change-Id: Ibbfe56e0150e0401d8f8eeb50021f2b6d79e101b
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>

Tingwei Zhang   commited 2018-10-09 14:55:00 +08:00
4c2d2fd7db
soc: qcom: socinfo: Add support for sdmdolphin soc-id
Add support for getting soc-id and dummy handle
on sdmdolphin.

Change-Id: I06f52d5093fb7f1646725fee70c7d18cd00a135e
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>

Kaushal Kumar   commited 2018-10-01 16:31:17 +05:30
ac38d125b3
Minidump: Add update region support for minidump regions
Add support to update client's entry physical/virtual addresses,
which is useful for DLKM, dynamic address changing clients.

Currently, msm_minidump_add_region() returns 0 on success, instead
of that, return 'region number' of the entry in the minidump table.

So clients who wants to update their address in future, needs to
book keep their entry in minidump table.

Change-Id: I03abbbd87bf6d2e11cf637525412d352772821cf
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>

Lingutla Chandrasekhar   commited 2018-09-28 15:56:17 +05:30
1e46167840
soc: qcom: socinfo: Add supprot for QM215 QRD soc-id
Add socinfo support for QM215 QRD Soc and update the
bindings for the same.

Change-Id: I3496560c94f920bd6be577f54aca6cf69919521a
Signed-off-by: Teng Fei Fan <tengfei@codeaurora.org>

Teng Fei Fan   commited 2018-09-17 10:54:46 +08:00
bd372b455b
soc: qcom: pil: Incorporate timeouts for notifications
Currently the SSR notification framework will allow the kernel
to silently get stuck if there is a large delay introduced by
sysmon communication between subsystems, or a callback
registered with a subsystem's notifications through the
subsystem notifier framework.This could be an indicator that
something has gone wrong.

Implement initial framework to detect these type of issues.
In case the framework does detect an issue, trigger kernel
panic or emit warning based on configuration flags.

Change-Id: Ia09cc74dd7a961c83e6470cbd66102f133de5c97
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>

Isaac J. Manjarres   commited 2018-08-10 09:27:52 -07:00
bfe53e5e76
icnss: Add a flag to indicare FW rejuvenate
Add a flag to maintain fw rejuvenate state,
set if fw rejuvenate happens and reset at fw ready.
export an API to the wlan host driver to distinguish the
case of ssr or pdr with the FW rejuventae.

Change-Id: I7a01cc4996f68f78aa13eacf36648331a701882a
Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>

Anurag Chouhan   authored and   Gerrit - the friendly Code Review server   commited 2018-07-24 02:01:41 -07:00
c499734902
Merge "msm: camera: Write a few registers before camera probe"
Linux Build Service Account   authored and   Gerrit - the friendly Code Review server   commited 2018-06-23 07:54:31 -07:00
85b5ec7a19
msm: camera: Write a few registers before camera probe
Some sensors need software to write some registers
before reading ID register.

Change-Id: I01f3aab0132d741560eaa40ee84ed989084b92f1
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>

Vijay kumar Tumati   commited 2018-06-13 14:38:51 +05:30
13e62deb41
Merge "qseecom: fix a race condition when loading TA"
Linux Build Service Account   authored and   Gerrit - the friendly Code Review server   commited 2018-06-12 23:47:01 -07:00
f82ab04ca4
Merge "soc: qcom: socinfo: Add support for msm8917 soc-id"
Linux Build Service Account   authored and   Gerrit - the friendly Code Review server   commited 2018-06-12 23:46:52 -07:00
e9b9475065
Merge "soc: qcom: socinfo: add support for sxr1120"
Linux Build Service Account   authored and   Gerrit - the friendly Code Review server   commited 2018-06-12 14:50:10 -07:00
c704ca0487
soc: qcom: socinfo: Add support for msm8917 soc-id
Add support for getting soc-id and dummy handle on msm8917.

Change-Id: Id5a5984b57d05ef7ecea9af4e6d604d0837a35bb
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>

Swetha Chikkaboraiah   authored and   Gerrit - the friendly Code Review server   commited 2018-06-11 23:35:08 -07:00
630e245c05
Merge "soc: qcom: socinfo: add support for sxr1130"
Linux Build Service Account   authored and   Gerrit - the friendly Code Review server   commited 2018-06-11 02:21:19 -07:00
28104a213c
Merge "ARM: qcom: Add MSM Legacy hotplug low power mode APIs"
Linux Build Service Account   authored and   Gerrit - the friendly Code Review server   commited 2018-06-07 07:41:39 -07:00
14cc2678fe
soc: qcom: socinfo: add support for sxr1130
Add support for getting soc-id and dummy handle
on sxr1130.

Change-Id: I92ae715e6a3030123cca4cc7e5ea6d0f4e19e72b
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>

Kaushal Kumar   commited 2018-06-07 13:11:22 +05:30
108561ee7a
ARM: qcom: Add MSM Legacy hotplug low power mode APIs
Add low power mode support for hotplug CPUs.

Remove pen release logic, forloop & gic pending
irqs print from legacy hotplug code.

Remove vfp_resume call as current vfp module has
pm notifiers.

Add 'cpu_can_disable' smp callback to enable hotplug
support for bootcore CPU

Change-Id: Ic830bbea1260c34bd383d7c07e2c6fef05677ded
Signed-off-by: Chinkit Kumar,Kirti Kumar Parmar <parma@codeaurora.org>

Raja Mallik   authored and   Chinkit Kumar,Kirti Kumar Parmar   commited 2018-06-06 18:27:56 +05:30
f936802626
qseecom: fix a race condition when loading TA
Userspace and kernel clients may load a same TA at the same time.
To fix potential race condition, first kernel side need to release
mutex before sleep when failed to do ion allocation from QSEECOM_TA
heap. Besides, since kernel client may fail to load TA if this TA is
just being loaded by userspace client when mutex is released, it need
to recheck if this TA exists if TA loading error code is TA already
loaded.

Change-Id: Ie6af9c67b867dfae7b25e4ade6948dea67e476d6
Signed-off-by: Zhen Kong <zkong@codeaurora.org>

Zhen Kong   commited 2018-06-05 11:13:58 -07:00
5d02be98b0
clk: msm: Add delay of 50uSec before polling lock_detect status
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().

Change-Id: I1b04dccc8d3c3e45d4aa7a3c1c60311331e490fa
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>

Odelu Kukatla   commited 2018-06-05 19:48:30 +05:30
90cb5ecd7c
soc: qcom: socinfo: add support for sxr1120
Add support for getting soc-id and dummy handle
on sxr1120.

Change-Id: Ibcba4703f3c0daee90f12ec64868df2e175777d3
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>

Kaushal Kumar   commited 2018-06-04 16:21:57 +05:30
9575aef291
drivers: lpm-levels-legacy: Allow rpm handshake only with cluster LPM
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: I54babda27ecf7a931f844b8c7219a9582221abca
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
Signed-off-by: Chinkit Kumar,Kirti Kumar Parmar <parma@codeaurora.org>

Maulik Shah   authored and   Gerrit - the friendly Code Review server   commited 2018-05-22 02:18:01 -07:00
735e1e7d5e
cpuidle: lpm-workarounds: Skip L2 SPM enabling in HLOS
Due to a hardware issue on 8909, secure world needs to disable
and enable L2 SPM to get the proper context in secure watchdog
bite cases.

With this workaround there is a race in programming L2 SPM between
HLOS and secure world. This leads to stability issues. To avoid
this program L2 SPM enable in secure world.

Change-Id: I426289e1fc66664ed9c4ecf81c4106ce2c7c1145
Signed-off-by: Anil Kumar Mamidala <amami@codeaurora.org>
Signed-off-by: Chinkit Kumar,Kirti Kumar Parmar <parma@codeaurora.org>

Anil Kumar Mamidala   authored and   Gerrit - the friendly Code Review server   commited 2018-05-22 02:17:31 -07:00
3b23717246
drivers: soc: qcom: pm: Add legacy PM and Warmboot set address API support
Add legacy msm pm sleep mode support for MSM8909 target.

Add warmboot set address support for multi cluster cpu's.

Snapshot is taken from msm-3.18 kernel version @ commit 9bbf4c38e5b9e8
("soc: qcom: bgrsb: Increase time out for RSB channel opening")

Change-Id: Ia90f7b97e4cfaf6a691d178968cb515da6e9ddc0
Signed-off-by: Chinkit Kumar,Kirti Kumar Parmar <parma@codeaurora.org>
Signed-off-by: Sundara Vinayagam <sundvi@codeaurora.org>

Raja Mallik   authored and   Gerrit - the friendly Code Review server   commited 2018-05-22 02:16:51 -07:00
078db46952
cpuidle: lpm-levels: Enable LPM support for non psci target
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-3.18 kernel version @commit 9bbf4c38e5b9e8
("soc: qcom: bgrsb: Increase time out for RSB channel opening")

Change-Id: I2d81dbb81efdc9593cdfcca8f56806acdb210b81
Signed-off-by: Raja Mallik <rmallik@codeaurora.org>
Signed-off-by: Chinkit Kumar,Kirti Kumar Parmar <parma@codeaurora.org>
Signed-off-by: Sundara Vinayagam <sundvi@codeaurora.org>

Raja Mallik   authored and   Gerrit - the friendly Code Review server   commited 2018-05-22 02:10:46 -07:00
b9ad452666
Merge "soc: qcom: socinfo: Add support for SDA439/SDA429 soc-id"
Linux Build Service Account   authored and   Gerrit - the friendly Code Review server   commited 2018-04-14 20:49:16 -07:00
c2d4b82543
soc: qcom: socinfo: Add support for SDA439/SDA429 soc-id
Add socinfo support for SDA439 and SDA429 SoC and update
the bindings for the same.

Change-Id: I03f2ebd1a8b4e745d8dfe62a65320db1500296a6
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>

Tingwei Zhang   commited 2018-04-12 13:14:36 +08:00
89b9927cb5
Merge "defconfig: msm: Enable SYSMON on msm8953"
Linux Build Service Account   authored and   Gerrit - the friendly Code Review server   commited 2018-04-11 19:33:03 -07:00
a98239792b
soc: qcom: add support for sysmon drivers
Add support for sysmon drivers on msm-4.9 Kernel.
This driver is needed for msm8953 to communicate
with other subsystem.

Change-Id: I3048b84c28e859369193867fa80dc0159cd7c22c
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>

Tingwei Zhang   commited 2018-04-09 09:41:54 +08:00
4fff60ad7d
Merge "soc: qcom: memory_dump: Support ETB/ETR register dump"
Linux Build Service Account   authored and   Gerrit - the friendly Code Review server   commited 2018-03-30 15:09:18 -07:00
27cb80aec0
Merge "soc: qcom: scm: Add a noretry variant for scm_call2"
Linux Build Service Account   authored and   Gerrit - the friendly Code Review server   commited 2018-03-30 15:08:40 -07:00
c395302cd3
soc: qcom: scm: Add a noretry variant for scm_call2
scm_call2 can block scm calls up to 2s due to its
retry mechanism whenever the secure firmware is
busy waiting for certain processing by the client
who in turn is waiting upon its scm call to either
complete or return with failure.

Upon early return, client can process the pending
requests to free up secure firmware and unblock
processing of all pending scm calls. Add a noretry
variant for scm_call2 which can be used by clients
who do not intend to wait for 2s for return status.

Change-Id: I1f0849464a64c32a4de4510fa5787b0ab328725c
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>

Kaushal Kumar   commited 2018-03-28 15:43:59 +05:30
8fca99cfd6