Commit Graph

1115826 Commits

Author SHA1 Message Date
Vivek Aknurwar
5c773b992d cpufreq: qcom-hw: clear thermal pressure when thermal condition exits
clear thermal pressure when thermal polling is stopped as throttle
frequency is greater than what scheduler or cpu are set to.

This change prevents throttle loop exiting with stale, non-zero
thermal pressure resulted from race condition of requested frequency
change after throttle_freq condition check in throttle loop.

Change-Id: If9c40e20350c5d33b3ad7a58cfe213eeb5dda74b
Signed-off-by: Vivek Aknurwar <quic_viveka@quicinc.com>
2022-09-16 13:36:30 -07:00
qctecmdr
633ded3358 Merge "gunyah: gh_rm_drv: Add RM interface for minidump support" 2022-09-15 13:28:34 -07:00
qctecmdr
82fe4ec23e Merge "coresight-tmc: Add usb support to coresight tmc etr" 2022-09-15 13:28:33 -07:00
qctecmdr
57624c29c3 Merge "input: qcom-hv-haptics: update configuration for PATx_MEM mode" 2022-09-15 07:27:55 -07:00
qctecmdr
e9121ba6f6 Merge "input: qcom-hv-haptics: Toggle EN_CTL for PM5100 v1.0" 2022-09-15 06:04:33 -07:00
qctecmdr
1b01aeed5c Merge "input: qcom-hv-haptics: move predefined effect preload logging" 2022-09-15 04:34:28 -07:00
qctecmdr
51372d1749 Merge "build.targets: Add pineapple and kkp vm to build target" 2022-09-14 21:52:33 -07:00
qctecmdr
009132fa2f Merge "soc: qcom: socinfo: Add revision 16 support in socinfo structure" 2022-09-14 19:44:36 -07:00
qctecmdr
404319eba7 Merge "dmaengine: msm_gpi: add GPI dmaengine driver snapshot for pineapple" 2022-09-14 19:44:35 -07:00
Mukesh Ojha
944bd60020 soc: qcom: socinfo: Add revision 16 support in socinfo structure
Below are some new fields are getting updated in socinfo
structure from bootloader under revision 16.
e.g

esku;
nproduct_code;
npartnamemap_offset;
nnum_partname_mapping;

Add the change in socinfo driver to accommodate this.

Change-Id: I11b5182c15af32da61cddbf4bb45d5aef390135a
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Prasad Sodagudi <quic_psodagud@quicinc.com>
[quic_gurus@quicinc.com: Added missing break and fallthrough]
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-13 13:56:34 -07:00
Anjelique Melendez
64dad0f665 defconfig: pineapple-gki: Enable several PMIC drivers
Enable PMIC PON, PON Log, GPIO, SPMI, SDAM, Flash, Tri LED, PWM, Haptics,
RTC, Reboot Mode, and Temp Alarm drivers for pineapple.

Change-Id: I7714eb3daa2f226a3713a86bf5b3e72ed747144a
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2022-09-13 11:49:21 -07:00
Fenglin Wu
531d907590 input: qcom-hv-haptics: update configuration for PATx_MEM mode
Disable auto resonance explicitly for PATx_MEM mode play according to HW
recommendation. Also, clear MEM_PAT_ACCESS_BIT after written PATx_MEM
samples and it reduces device quiescent current in power off state.

Change-Id: Iafaca15482bf1a03a19a49ee4d5e30faeb2fdeeb
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
2022-09-13 08:37:06 +08:00
Anjelique Melendez
d6bb90e31c input: qcom-hv-haptics: Update autoresonance registers for F0 calibration
Update the register configuration for F0 detection/calibration
based on hardware recommendation.

Change-Id: I423ed84bf10508dc6ded2bc4248ac9ce396ce8cb
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2022-09-13 08:36:37 +08:00
Hui Liu
cbda83d0be input: qcom-hv-haptics: move predefined effect preload logging
Move the logging after calculating Vmax so that the right Vmax value
can be printed out.

Change-Id: I8d916a13685c8d85f1363e7a8bc766aeb4d5e2ba
Signed-off-by: Hui Liu <quic_huliu@quicinc.com>
2022-09-13 08:36:11 +08:00
Umang Chheda
468928c595 input: qcom-hv-haptics: Disable INT and module in shutdown cb
On SKUs with MSM + Co-proc there can be possiblity that
because of Interrupts enabled from MSM side (SPMI) the exit
of LPM might not work because PBS gets locked because of
which the sequence to exit LPM might not get triggered.

Add support for shutdown callback and disable INT in shutdown
cb to ensure that INT are disabled before entering LPM.

Change-Id: I29bafb72bef3a5591839015f2a598fa4ad85072a
Signed-off-by: Umang Chheda <quic_uchheda@quicinc.com>
2022-09-13 08:35:21 +08:00
Shyam Kumar Thella
8928f602e0 input: qcom-hv-haptics: Toggle EN_CTL for PM5100 v1.0
Toggle Haptics EN_CTL as workaround for HW issue in PM5100 v1.0.

Change-Id: I83e82f261d4185132bb5a721600950f90f71db3f
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2022-09-13 08:33:27 +08:00
Hui Liu
b17d684b3b input: qcom-hv-haptics: add support for primitive effect
Primitive effect is very similar to predefined effect
which has been supported and each primitive effect has
an unique id defined in "qcom,primitive-id" devicetree
property. Add support for it.

Change-Id: I4a03dd09e97f1b7988d4ab87e1cf78f075b05101
Signed-off-by: Hui Liu <quic_huliu@quicinc.com>
2022-09-13 08:32:53 +08:00
Kiran Gunda
f6c37c0958 input: qcom-hv-haptics: Add support for DeepSleep/Hibernate
Free/request the fifo empty interrupt during the DeepSleep and
hibernate entry or exit respectively. Also restore the hardware
initial configuration done during the boot.

Change-Id: I6b0d4838a6d1c48869ca760d4e93788440983b3c
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2022-09-13 08:32:29 +08:00
Kiran Gunda
ef97827703 input: qcom-hv-haptics: Enable boot-up F0 calibration for PM5100
In the boot up LRA frequency calibration sequence, CAL_TLRA_CL_STS
is read out and stored in SDAM module registers by the bootloader.
Later, the HLOS haptics driver can read it from there and use it
for calculating LRA frequency. Enable the same for PM5100 PMIC.

Change-Id: Ia5e307e5d536a42b29ab05e9888640121188312c
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2022-09-13 08:32:00 +08:00
Fenglin Wu
8afead556c input: qcom-hv-haptics: move predefined effect preload logging
Move the logging after calculating Vmax so that the right Vmax value
can be printed out.

CRs-Fixed: 3227145
Change-Id: I17b64f9e3a230058b7e30ca4c30de4d3000d1f87
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
2022-09-13 08:31:34 +08:00
Fenglin Wu
65e7bb2861 input: qcom-hv-haptics: ignore disabling hBoost when it's in open-loop
When hBoost is working in open-loop mode, it's supposed to be used by
other modules like the charger firmware and it shouldn't be turned off
by haptics driver. Ignore turning on and off hBoost in such case.

Change-Id: Id3eb2c37cf7316b4617872614cc2a7adc50d12d8
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
2022-09-13 08:31:09 +08:00
Subbaraman Narayanamurthy
535559a221 input: misc: qcom-hv-haptics: Fix print format identifier
Print in hex when a read/write to an address fails.

Change-Id: I35dddaa33d18f72079ec3d814a36fd304cd0f331
Signed-off-by: Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>
2022-09-13 08:30:34 +08:00
Anil Veshala Veshala
5f7523ae5f dmaengine: msm_gpi: add GPI dmaengine driver snapshot for pineapple
This is a snapshot of gpi dmaengine driver and associated files
as of msm-5.15 'commit 8d5f6e9fa5567 ("dmaengine: msm_gpi: add
GPI dmaengine driver snapshot for kalama")'.

Change-Id: I98aed9e09d927225776d9f4533ca74a7cf7c078b
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2022-09-12 09:59:26 -07:00
Peng Yang
f90d643b47 build.targets: Add pineapple and kkp vm to build target
Add pineapple and kkp vm to build target.

Change-Id: I28a982b9c561c7278645f9b2ead84a9c4c38b4ae
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2022-09-12 07:41:05 -07:00
qctecmdr
21315ac40e Merge "android: abi_gki_aarch64_qcom: Add device_match_of_node" 2022-09-12 01:03:17 -07:00
qctecmdr
4ac589aaf7 Merge "pineapple-gki: Increase RPROC notif timeouts and enable panic" 2022-09-09 17:51:09 -07:00
Guru Das Srinagesh
899a473740 android: abi_gki_aarch64_qcom: Add device_match_of_node
Add device_match_of_node and also make sure that the list is
alphabetically sorted.

Change-Id: I23209f86e191d14d7c48cea7d57349b3d441727c
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-09 16:31:09 -07:00
Guru Das Srinagesh
33e230f2ab include: gh_mem_notifier: Add __maybe_unused attribute
Some external drivers use gh_mem_notifier_register() but not
gh_mem_notifier_unregister(). This leads to an unused function warning
during compilation, which then manifests as an error when -Werror is
enabled.

Add compiler attribute __maybe_unused to both functions to fix the above
error.

Change-Id: I42585f89c6aa4148ef1d1f72d3a8581e23e08110
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-09 16:31:00 -07:00
qctecmdr
ee12e0e21d Merge "build: config: Adding build configs for pineapple oemvm" 2022-09-09 16:27:19 -07:00
qctecmdr
476790dd14 Merge "virtio/virtio_mem: Port qti_virtio_mem UAPI header from msm-5.15" 2022-09-09 16:27:17 -07:00
Jeevan Shriram
4319fa9335 include: linux: Update usecase id for LLCC_VIDVSP
Update Usecase id for LLCC_VIDVSP as per hardware settings.

Change-Id: I92493bf7cfb8625748b22b111995cabc71feb1a1
Signed-off-by: Jeevan Shriram <quic_jshriram@quicinc.com>
2022-09-09 12:52:45 -07:00
qctecmdr
4e44fda12d Merge "soc: qcom: minidump_log: Add task info collection" 2022-09-09 03:33:21 -07:00
qctecmdr
9bdd6a7414 Merge "coresight: byte-cntr: Add support for streaming interface for ETR" 2022-09-09 03:33:21 -07:00
qctecmdr
7553dc96d4 Merge "gunyah: gh_rm_drv: Add error return if RM device is not ready" 2022-09-09 02:00:08 -07:00
qctecmdr
e16cb9d685 Merge "soc: qcom: minidump_log: Fix compile issue of module minidump" 2022-09-09 02:00:06 -07:00
qctecmdr
473620f146 Merge "modules.list.msm.pineapple: Add DCC and memory dump modules" 2022-09-08 22:35:41 -07:00
qctecmdr
59f49aa10b Merge "soc: qcom: Introduce null functions" 2022-09-08 22:35:38 -07:00
qctecmdr
d3b95ce5d9 Merge "gunyah: msgq: Add new msgq label for OEMVM vcpu test" 2022-09-08 21:13:26 -07:00
qctecmdr
7bd399d4d9 Merge "iio: qcom-spmi-adc5-gen3: update API for immediate conversions" 2022-09-08 19:53:15 -07:00
qctecmdr
5de96585ba Merge "config: Add build config for kkp oemvm" 2022-09-08 19:53:15 -07:00
qctecmdr
536e734464 Merge "defconfig: pineapple-gki: Enable DCC and memory dump V2 driver" 2022-09-08 19:53:14 -07:00
Guru Das Srinagesh
183b2fa789 pineapple-gki: Increase RPROC notif timeouts and enable panic
Enable panicking upon notification timeout and also increase timeout
values to 20 s from the default 10 s.

Change-Id: Ie777d2cc7a2cd5c5ae91a49a6601ab5482fd8758
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-08 17:05:02 -07:00
Guru Das Srinagesh
d1a0dfa4e4 soc: qcom: Introduce null functions
Introduce null APIs for supporting compilation of client drivers.

Change-Id: I553d8b8987818beaf4b3abd33198c2cbea1309f6
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-08 15:59:38 -07:00
qctecmdr
fb89620d67 Merge "config: Add build config and defconfig for kkp" 2022-09-08 14:22:29 -07:00
qctecmdr
84a6d12a18 Merge "abi_gki_aarch64_qcom: Add necessary symbols for geni-se driver" 2022-09-08 13:03:37 -07:00
qctecmdr
3e8a3d6db9 Merge "build.targets: Only build TUIVM on pineapple" 2022-09-08 09:32:19 -07:00
Peng Yang
f385cdde9b config: Add build config and defconfig for kkp
Add build config and defconfig for msm-pineapple branch
on kalama kernel platform.

Change-Id: Iffa39f9a06c15d4790088c5d10a6aebe84eef4a1
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2022-09-08 02:20:39 -07:00
qctecmdr
498d3332b7 Merge "virtio: change __ioremap to ioremap_cache" 2022-09-07 23:39:36 -07:00
Chris Goldsworthy
e12597fb98 virtio/virtio_mem: Port qti_virtio_mem UAPI header from msm-5.15
Bring the qti_virtio_mem UAPI header from msm-5.15, taken from commit
957fe56b98e0 ("Merge "sched/walt: disable cpu packing when current
freq is high"").

Change-Id: If3511d61075498f596ee2de5cba0a49108154d42
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-09-07 16:38:45 -07:00
Cong Zhang
d928d85f20 soc: qcom: minidump_log: Fix compile issue of module minidump
Fix undefined function when minidump enabled and panic dump disabled.

Change-Id: I16afe91bb2fbfdec20a597f6cb55f45beb29475f
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
2022-09-07 03:13:55 -07:00