Commit Graph

1115810 Commits

Author SHA1 Message Date
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
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
Cong Zhang
34989b4a03 gunyah: gh_rm_drv: Add error return if RM device is not ready
Some driver may probe before RM driver, so we need return probe defer to
let these driver use RM call after RM device is ready.

Change-Id: I65cf5eab7b99ca2a58c32f2d83794a210350fb05
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
2022-09-07 03:13:24 -07:00
Huang Yiwei
089cfbda14 soc: qcom: minidump_log: Add task info collection
Add task info collection to minidump, and MINIDUMP_ALL_TASK_INFO
is used to config only runnable or all task info need to collect.
Also change runqueue dump format to only print pid, since detailed
task info is in task info collection.

Change-Id: I14366db4f6e20767fed11e94ff6b1baf8892fb1b
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2022-09-07 14:30:26 +08:00
Mao Jinlong
653b2c4bd9 modules.list.msm.pineapple: Add DCC and memory dump modules
ADD DCC and memory dump modules for pineapple.

Change-Id: Ib0dbd4de2ef2a29809057a62571bafb47a088848
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-09-06 23:13:47 -07:00
Mao Jinlong
b81d00a3de defconfig: pineapple-gki: Enable DCC and memory dump V2 driver
Enable DCC and memory dump V2 driver for DCC dump and memory dump
functions.

Change-Id: I54b918b2dc34e72e6664b9dbe446654b320b6927
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-09-06 23:13:28 -07:00
qctecmdr
7f426d2858 Merge "clk: qcom: clk-alpha-pll: Only configure lucid_evo outputs once" 2022-09-06 14:02:58 -07:00
Tao Zhang
d5996184e9 coresight: byte-cntr: Add support for streaming interface for ETR
Add support for a streaming interface for TMC ETR to allow for continuous
log collection to secondary storage. An interrupt based mechanism is used
to stream out the data from the device. The streaming interface cannot be
used in conjunction with the traditional ETR read operation. And remove the
support of sw usb from byte-cntr.

Change-Id: I23f30f2df72e58b13481a2f230212534745edadb
Signed-off-by: Tao Zhang <quic_taozha@quicinc.com>
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-09-06 01:42:24 -07:00
Mao Jinlong
018a23891f coresight-core: Remove duplicate coresight_get_source
Remove duplicate coresight_get_source function to fix the compile
error.

Change-Id: I0057958e48536f273790a03e152002d4d31f2497
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-09-06 01:10:55 -07:00
Peng Yang
065c8ddf21 config: Add build config for kkp oemvm
Add oemvm build config for msm-pineapple branch
on kalama kernel platform.

Change-Id: I543e6f07dfda64ea935f2561a3ff4d6e887a7b21
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2022-09-05 19:51:04 -07:00
Peng Yang
6e03d22e43 build: config: Adding build configs for pineapple oemvm
Add build related configs for pineapple oemvm.

Change-Id: I5c0d9d676fcf6ce6111bee66ba52d6790714e859
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2022-09-05 18:20:59 -07:00
Jishnu Prakash
040b690e9f iio: qcom-spmi-adc5-gen3: update API for immediate conversions
When requesting immediate conversion for an ADC channel which
has TM functionality configured on channel 0 of second or
further SDAM, if the same channel 0 is used for immediate
conversion request, it will override the TM configuration
done earlier on that channel. To avoid this, use channel 0
of first SDAM alone for immediate conversion requests.

Change-Id: Iebcd324df999df736f997c106d57e454088ec54d
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
2022-09-04 20:34:22 -07:00
Cong Zhang
59a066f16a gunyah: msgq: Add new msgq label for OEMVM vcpu test
Add new msgq label for OEMVM vcpu test, the msgq is between PVM and
OEMVM.

Change-Id: I8fcc2a9352fc48bd8aa6fc27c135c240d9d149ac
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
2022-09-02 12:26:37 -07:00
Peng Yang
81e3190de0 build.targets: Only build TUIVM on pineapple
OEMVM not ready now. Only build TUIVM on pineapple.

Change-Id: I6587b59dd575e5f2f329d3c5cc9a758b86df8ba6
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2022-09-02 04:07:58 -07:00
Peng Yang
2e88f7e255 virtio: change __ioremap to ioremap_cache
__ioremap not available for new kernel version.
Change __ioremap to ioremap_cache to fix compilation
issue.

Change-Id: I60eb98d68f1ed968133ef3017b498e77e6aaf297
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2022-09-02 04:06:58 -07:00
Murali Nalajala
b8279d1eb6 generic_vm_defconfig: run menuconfig to adjust CONFIGs
There are CONFIGs which default enabled are not appliable
on the latest kernel. Rerun the menuconfig to validate the
VM kernel configs.

Change-Id: Ie35c68284064a0f9c25e715f0a19f8910e2fdb00
Signed-off-by: Murali Nalajala <quic_mnalajal@quicinc.com>
2022-09-02 04:06:37 -07:00