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>
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>
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>
Enable CONFIG_QCOM_PDR_HELPERS on pineapple platforms.
Change-Id: I2fe4719d2b9733a0715073f235bad1d0df07f2f7
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
Add help text for QCOM_PDR_HELPERS config.
Change-Id: I54b7882297966d59ca0246ebddda7a5fd7787e0b
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
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>
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>
Update Usecase id for LLCC_VIDVSP as per hardware settings.
Change-Id: I92493bf7cfb8625748b22b111995cabc71feb1a1
Signed-off-by: Jeevan Shriram <quic_jshriram@quicinc.com>
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>
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>
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>
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>
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>
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>
ADD DCC and memory dump modules for pineapple.
Change-Id: Ib0dbd4de2ef2a29809057a62571bafb47a088848
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
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>
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>
Remove duplicate coresight_get_source function to fix the compile
error.
Change-Id: I0057958e48536f273790a03e152002d4d31f2497
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
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>
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>
OEMVM not ready now. Only build TUIVM on pineapple.
Change-Id: I6587b59dd575e5f2f329d3c5cc9a758b86df8ba6
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
__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>
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>
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>
Added geni_icc_set_bw symbol for qcom geni se driver.
Change-Id: I2489fef7a717a6df8800521e5180790c029f61e8
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>