Commit Graph

1115806 Commits

Author SHA1 Message Date
Gokul krishna Krishnakumar
53346fbff0 soc: qcom: ramdump: Fix elf phdr increment logic
To add support for elf64 dumps phdr was converted to a void
pointer, but the logic to increment the phdr was not updated
accordingly. This change increments the address of phdr based
on the elf class.

Fixes: fc0253777c4c ('soc: qcom: ramdump: Add support for elf64 dumps')
Change-Id: I103835cfa1333aacfc8fe8ca3ae02dc84607a5cc
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
2022-09-13 11:50:33 -07:00
Gokul krishna Krishnakumar
72f355f2d0 soc: qcom: ramdump: Add support for elf64 dumps
The qcom_elf_dump() API currently only supported elf32 dumps, but
the kernel is compiled as CONFIG_BIT64=y. This results in the
addresses in the elf header being truncated. This change adds
support to specify the class of the elf file to be generated.

Change-Id: I1b72a828df0b45978891ed6ba6261273200500b0
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
[quic_gurus@quicinc.com: Remove adsprpc.c; hasn't been ported yet]
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-13 11:50:32 -07:00
Siddharth Gupta
ca08ac1bee soc: qcom: ramdump: Remove the timeout in wait for completion
Freeing a completion after setting it to complete can be racy with
the thread that is waiting for completion. To avoid this race the
ramdump descriptor should remain on the stack so that we only "free"
the completion once wait_for_completion() returns.

Change-Id: Ice02260a4f91aa6cd107eb371601d9ed910fb6cf
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Vamsi Krishna Lanka <quic_vamslank@quicinc.com>
2022-09-13 11:50:32 -07:00
Yogesh Lal
e834f9391e soc: qcom: Add snapshot of ramdump driver
Add snapshot of ramdump driver as of msm-5.10 commit <3d260f03b417> ("Merge
"remoteproc: qcom: common: Panic if recovery fails"").

Change-Id: I4f70da93242911a18a3f64906dfab95c4ba89308
Signed-off-by: Yogesh Lal <ylal@codeaurora.org>
[quic_gurus@quicinc.com: Merge conflicts in Kconfig & Makefile, GPL]
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-13 11:50:31 -07:00
Guru Das Srinagesh
a7aee12b9e pineapple-gki: Enable CONFIG_QCOM_PDR_HELPERS
Enable CONFIG_QCOM_PDR_HELPERS on pineapple platforms.

Change-Id: I2fe4719d2b9733a0715073f235bad1d0df07f2f7
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-12 17:50:33 -07:00
Prasad Sodagudi
47013add94 soc: qcom: Add help text for QCOM_PDR_HELPERS config
Add help text for QCOM_PDR_HELPERS config.

Change-Id: I54b7882297966d59ca0246ebddda7a5fd7787e0b
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2022-09-12 17:50:17 -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
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
qctecmdr
03de227439 Merge "defconfig: Enable PCI_MSM driver for pineapple" 2022-09-01 14:09:33 -07:00
qctecmdr
cdd9e3d222 Merge "Merge keystone/android-mainline-keystone-qcom-release.5.19-rc8 (ea7c365) into msm-pineapple" 2022-09-01 10:48:26 -07:00
Mike Tipton
d5419b1de9 clk: qcom: clk-alpha-pll: Only configure lucid_evo outputs once
Which outputs are enabled when PLL_OUTCTRL is asserted only need to be
configured once. When PLL_OUTCTRL is 0 then all the outputs are disabled
anyway. There's no need to enable/disable the individual outputs each
time the PLL is toggled.

Additionally, in some cases PLLs may be enabled from bootloaders without
all the outputs enabled that we intend to use. In which case we still
need to enable the required outputs during initial configuration even if
the PLL is already on. Enabling additional outputs when the PLL is
already running is safe.

Change-Id: Iffa471783ed5021a92f31673fb2e7539741973b9
Signed-off-by: Mike Tipton <quic_mdtipton@quicinc.com>
2022-09-01 06:49:03 -07:00
Anil Veshala Veshala
4c93fcdc78 abi_gki_aarch64_qcom: Add necessary symbols for geni-se driver
Added geni_icc_set_bw symbol for qcom geni se driver.

Change-Id: I2489fef7a717a6df8800521e5180790c029f61e8
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2022-09-01 03:09:59 -07:00