Commit Graph

1163205 Commits

Author SHA1 Message Date
Darshankumar Jagdishchandra Thakkar
6c853044d2 defconfig: sdmsteppeauto: Enable SHOW_RESUME_IRQ
Enable SHOW_RESUME_IRQ to show the wake up reason from
suspend.

Change-Id: I1aee300c4e347a1f5f69730229abca4af5e788e3
Signed-off-by: Darshankumar Jagdishchandra Thakkar <quic_djagdish@quicinc.com>
2023-12-28 22:16:01 -08:00
Darshankumar Jagdishchandra Thakkar
89bb25b578 bazel: Add secure hibernation for module S2D
Add support of secure hibernation module for bazel build.

Change-Id: Ia87c23ae342b6d25caae8405ef9cff90e5dd938d
Signed-off-by: Darshankumar Jagdishchandra Thakkar <quic_djagdish@quicinc.com>
2023-12-28 22:15:29 -08:00
Darshankumar Jagdishchandra Thakkar
c28762ee5f defconfig: sdmsteppeauto: Enable secure hibernation
Enable CONFIG_QCOM_SECURE_HIBERNATION to support encryption
on hibernation for sdmsteppeauto target.

Change-Id: I6f793e678a0d89f16e30b928c9b688f7a94bb266
Signed-off-by: Darshankumar Jagdishchandra Thakkar <quic_djagdish@quicinc.com>
2023-12-29 11:41:19 +05:30
Raviteja Laggyshetty
1ae752685d arm64: defconfig: Enable interconnect driver for VOLCANO
Enable the interconnect driver so that consumers are
able to obtain their path handles properly.

Change-Id: Ifddc37c584616a4c4434de1a03b07746b97e5b3d
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
2023-12-28 21:17:03 -08:00
Fenglin Wu
5eb17131f2 input: misc: qcom-hv-haptics: cancel set_gain_work in haptics_erase
Cancel set_gain_work in haptics_erase before stopping haptics play to
avoid the Vmax being updated concurrently with next haptics play.

Change-Id: Ice5df62c7ac0d518d1a8e7a9cafe1d075893cf3c
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
2023-12-29 09:35:00 +08:00
qctecmdr
65d464245c Merge "soc: qcom: Add changes to dump CRMV status" 2023-12-28 06:26:54 -08:00
Jyothi Kumar Seerapu
d7da5f5ea1 ARM: config: msm: Enable configs for GENI serial drivers for pitti
Enable configs for GENI based peripheral protocols such as uart, i2c,
spi, gsi, sps, bam and slimbus for pitti.

Change-Id: I782b3b972f0cfad4782bec07974b523e8d437fd1
Signed-off-by: Jyothi Kumar Seerapu <quic_jseerapu@quicinc.com>
2023-12-28 18:45:59 +05:30
qctecmdr
3a387c2033 Merge "clk: qcom: Add slew support and restore context for SM6150" 2023-12-28 01:59:21 -08:00
Balaji Vekatesh Kalkonda
fb945f60ef drm/bridge: anx7625: rearrange bridge probe sequence
Move setup_dsi_device call from probe to bridge_attach and
link_bridge to later part of probe function.This makes
sure ANX bridge driver probe and DSI driver probe
happens independently.

Change-Id: Id842e044f33416722b37e113cdfb6527faebd521
Signed-off-by: Balaji Vekatesh Kalkonda <quic_bkalkond@quicinc.com>
2023-12-28 14:09:04 +05:30
Kiran Gunda
6f795c4d5d backlight: qcom-spmi-wled: Change the SYNC toggle sequence
Change the ILED_SYNC and MOD_SYNC write sequence from 0 to 1
instead of 1 to 0 as per HW recommendation.

Change-Id: I93f4491cd1fd59ba5839c458157265c2d75315f9
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2023-12-27 23:17:12 -08:00
qctecmdr
b68eb05530 Merge "soc: qcom: Fix potential memleak in TLMM VM memory access driver" 2023-12-27 21:18:51 -08:00
qctecmdr
d6482323a4 Merge "sched: walt: always return active cpu as timer target" 2023-12-27 21:18:51 -08:00
qctecmdr
be1a9e1ee6 Merge "soc: qcom: socinfo: Add support for CliffsP and Cliffs7P" 2023-12-27 21:18:50 -08:00
Elson Roy Serrao
2e0cce8b2e usb: dwc3-msm: Reset utmi sleep assert during resume
We set the utmi sleep assert to usb2 phy as part of dwc3 suspend.
Reset this bit during resume to undo this action. This feature is
controlled through a dt property and hence not resetting this bit
during resume would override the intended settings.

Change-Id: I839afa11f110b27d5570bb727b41bcb880c15a8f
Signed-off-by: Elson Roy Serrao <quic_eserrao@quicinc.com>
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
2023-12-28 10:35:09 +05:30
Ajit Pandey
61121410dd clk: qcom: volcano: Add support for VIDEOCC on Volcano
Add support of Video clock controller on Volcano for clients to
be able to request on these clocks.

Change-Id: I4a90929a939b9f5133df5d20e54edc25a34d471b
Signed-off-by: Ajit Pandey <quic_ajipan@quicinc.com>
2023-12-28 10:18:28 +05:30
songchai
7bd948da87 coresight : Decouple "CS_MODE_SYSFS" and "CS_MODE_PERF"
In "tmc_disable_etr_sink", the mem_lock is used to support USB mode switch
and thus the lock is only necessary in CS_MODE_SYSFS.

"byte_cntr" is only enabled in "CS_MODE_SYSFS", and thus it only needs
to be disabled in "CS_MODE_SYSFS".

Change-Id: I319bfab96df26ed1cd993492852ab1f4c2fb0a55
Signed-off-by: songchai <quic_songchai@quicinc.com>
2023-12-28 11:18:00 +08:00
qctecmdr
8b69183f0c Merge "clk: qcom: volcano: Add support for GPUCC on Volcano" 2023-12-27 18:36:52 -08:00
qctecmdr
ad35714b87 Merge "drivers: thermal: Add deepsleep support and avoid wakeup tsens trips" 2023-12-27 18:36:50 -08:00
qctecmdr
cda4f81b9f Merge "defconfig: Enable panel event notifier for pitti" 2023-12-27 09:24:37 -08:00
qctecmdr
acd2c2e339 Merge "clk: qcom: gpucc-niobe: Update parent supply of few clocks" 2023-12-27 05:06:55 -08:00
Jingyi Wang
62857e6090 soc: qcom: Fix potential memleak in TLMM VM memory access driver
In gh_tlmm_vm_populate_vm_info(), use kfree to release the memory
alloctated by temp pointer in case of potential memleak.
Add missing NULL check.

Change-Id: I29928965db2df53631fb20717c356e41662e4798
Signed-off-by: Jingyi Wang <quic_jingyw@quicinc.com>
Signed-off-by: Naini Singh <quic_nainsing@quicinc.com>
2023-12-27 13:57:41 +05:30
qctecmdr
4a002c0736 Merge "arm64: defconfig: Enable glink configs for niobe" 2023-12-26 22:55:07 -08:00
qctecmdr
715251bb38 Merge "arm64: defconfig: Enable sysmon config for niobe" 2023-12-26 22:55:06 -08:00
Ashay Jaiswal
949b343055 sched: walt: always return active cpu as timer target
In situations where all cpus are either offline or in paused
paused state, WALT returns first paused cpus as the timer
target.
In situation where the first paused cpu is also an offline
cpu, timer's target cpu will be an offline cpu.

Fix this by always returning first active cpu from the paused
cpu mask, thus ensuring timer target is always an online cpu.

Change-Id: Id935b14946f21ef5501d3050e5766a64faf18c7d
Signed-off-by: Ashay Jaiswal <quic_ashayj@quicinc.com>
2023-12-27 11:40:32 +05:30
qctecmdr
426eb755f0 Merge "usb: dwc3: Reduce Cyclomatic complexity in dwc3_msm_suspend" 2023-12-26 20:18:42 -08:00
qctecmdr
ea874075ad Merge "q2spi-msm-geni: Backport compilation fixes" 2023-12-26 08:55:08 -08:00
qctecmdr
efc30e9ffb Merge "arm64: defconfig: Enable Core Hang Detection driver for niobe" 2023-12-26 06:43:04 -08:00
Ajit Pandey
edb731f724 clk: qcom: volcano: Add support for GPUCC on Volcano
Add support of Graphics clock controller on Volcano for clients to
be able to request on these clocks.

Change-Id: Iea1999b1138e60e49c85ca377718ae0f7cba3eac
Signed-off-by: Ajit Pandey <quic_ajipan@quicinc.com>
2023-12-26 16:42:37 +05:30
Kalpak Kawadkar
8c7879b7c9 clk: qcom: gpucc-niobe: Update parent supply of few clocks
Update parent supply of few clocks for gpucc as per the latest
HW frequency plan recommendation on NIOBE platform.

Change-Id: Ie3bea51eed104afeaee9bacbc682aa588bb8c826
Signed-off-by: Kalpak Kawadkar <quic_kkawadka@quicinc.com>
2023-12-26 14:38:31 +05:30
Zelong Ren
00fd04d13d soc: qcom: hab: add non-blocking support for habmm_socket_send on virtio-hab
In the current virtio hab design, when the number of
vh_buf_headers is not enough, the process calling the
function physical_channel_send will fall into sleep.
However, we promise hab client that when the process
calls habmm_socket_send (this function will eventually
call physical_channel_send) with the flag
HABMM_SOCKET_SEND_FLAGS_NON_BLOCKING, process sleep
will not occur.
To fulfill the promise in our API, we check the
non-blocking flag in virtio-hab's physical_channel_send
function. If the non-blocking flag is set, even if the
number of vh_buf_headers is not enough,
physical_channel_send will return directly instead of sleeping.

Change-Id: Iae421551f510457e150f62d42d7701ffe8068312
Signed-off-by: Zelong Ren <quic_zeloren@quicinc.com>
Signed-off-by: Deyan Wang <quic_deyawang@quicinc.com>
2023-12-26 12:29:09 +05:30
Jyothi bommidi
daa2f44394 defconfig: Enable panel event notifier for pitti
Enable panel event notifier for pitti.

Change-Id: I712a48d1aeb5e015b23b4847b96df16a8f286eae
Signed-off-by: Jyothi bommidi <quic_jbommidi@quicinc.com>
2023-12-26 12:25:21 +05:30
Sivaji Boddupilli
de0e936663 arm64: defconfig: Enable glink configs for niobe
Enable glink configs for Niobe target.

Change-Id: I94f1efa2fb470c6caebf27a0006c474bab121f73
Signed-off-by: Sivaji Boddupilli <quic_boddupil@quicinc.com>
2023-12-26 12:14:28 +05:30
Visweswara Tanuku
981ee1d0bb q2spi-msm-geni: Backport compilation fixes
As part of kernel 'commit b9e8a791a570
("q2spi-msm-geni: Add q2spi interface drivers snapshot")'
compilation errors reported in 6.4 kernel are fixed.

Backport these fixes to 6.1 kernel branch.

Change-Id: Icbb06f37a815765496d1dcfeb41e448982006d24
Signed-off-by: Visweswara Tanuku <quic_vtanuku@quicinc.com>
2023-12-25 22:23:32 -08:00
Visweswara Tanuku
3e6c512018 q2spi-msm-geni: Fix rmmod path
Current remove entry point is not handling
cleanup properly during unload of driver.

Fix rmmod path in the driver.

Change-Id: If10ff854326fe4db25871e5dcf5837901d61985d
Signed-off-by: Visweswara Tanuku <quic_vtanuku@quicinc.com>
2023-12-25 22:06:08 -08:00
Naina Mehta
c856242f02 soc: qcom: socinfo: Add support for CliffsP and Cliffs7P
Add soc-id support for CliffsP and Cliffs7P platform.

Change-Id: I82262d5980e9e0f31005365a2d4946293b2b9f06
Signed-off-by: Naina Mehta <quic_nainmeht@quicinc.com>
2023-12-26 11:16:54 +05:30
Zelong Ren
eaa0e23a1d soc: qcom: hab: Compare with local value when getting pchan->sequence_rx from received message
We expect that the latest pchan->sequence_rx value obtained from
the received message should be 1 greater than the local
pchan->sequence_rx value. But in some abnormal cases, such as when
pchan loses messages, the difference between the two sequence_rx
may be greater than 1. We add additional checks to detect these
abnormal cases as early as possible.

Change-Id: Ief45c3d520d1ea067f990bd1cfc76946b2865e4d
Signed-off-by: Zelong Ren <quic_zeloren@quicinc.com>
Signed-off-by: Deyan Wang <quic_deyawang@quicinc.com>
2023-12-26 08:46:57 +05:30
lixiang
40282aa5f3 soc: qcom: hab: Add sanity checks for NULL pointer issues
Adding some NULL pointer sanity checks.

Change-Id: I036bd95fa1677647a2f020156323850f58b1aecd
Signed-off-by: lixiang <quic_lixian@quicinc.com>
Signed-off-by: Deyan Wang <quic_deyawang@quicinc.com>
2023-12-26 08:44:00 +05:30
Maulik Shah
2ed7dedbfb soc: qcom: Add changes to dump CRMV status
CRMV have status for various power rails. Dump them along with
CRMB and CRMC status.

Change-Id: I0330bff3545afc33e28ba1490cd6b0acf0afc3a4
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
2023-12-26 08:42:24 +05:30
Zelong Ren
fda0f7a8df soc: qcom: hab: refine the statistic in vchan_stat
1.add the vchan->closed, and togther w/ vchan->otherend_closed, it
will be clear that whether the local hab client calls habmm_socket_close
(vchan) or the remote hab client calls habmm_socket_close(vchan's remote
pair).

2.use the atomic variable for vchan->rx_cnt/tx_cnt to avoid some
concurrent +1 operations.

Change-Id: I5effef972369231ef2888fe88852d5cf657dc553
Signed-off-by: Zelong Ren <quic_zeloren@quicinc.com>
Signed-off-by: Deyan Wang <quic_deyawang@quicinc.com>
2023-12-26 08:37:46 +05:30
Deyan Wang
8eb3555a68 soc: qcom: hab: Put work of hab_ctx_free() to workqueue if needed
hab_ctx_free() might sleep due to call habmem_remove_export()
->habmem_export_put()->habmem_export_destroy()
->habmem_exp_release()->dma_buf_unmap_attachment() &
dma_buf_detach(),because dma_buf_unmap_attachment() and
dma_buf_detach() might sleep.

Meanwhile hab_ctx_free() might be called in atomic context in
following situations:
  1. physical_channel_rx_dispatch()->hab_msg_recv()->
hab_vchan_put()->hab_ctx_put()->hab_ctx_free() in tasklet.
  2. hab client holds spin_lock and calls hab_vchan_close()->
hab_vchan_put()->hab_vchan_free()->hab_ctx_put()->hab_ctx_free().

So move the work of hab_ctx_free() to workquque when hab_ctx_free()
is called in non-preemptive context.

Change-Id: I1f7ef6cb377833290752e1032a1925c66483ebf3
Signed-off-by: Deyan Wang <quic_deyawang@quicinc.com>
2023-12-26 08:07:12 +05:30
qctecmdr
1dcb6eb63d Merge "mmc: sdhci-msm: Change HS mode frequency to 37.5 with level shifter" 2023-12-24 06:04:37 -08:00
qctecmdr
7d8e1d5921 Merge "clk: qcom: volcano: Add support for GCC on Volcano" 2023-12-24 02:20:54 -08:00
qctecmdr
e2586191c2 Merge "rpmsg: smp2p: use after free for wakeup source" 2023-12-24 02:20:54 -08:00
Chetan C R
082c05bbaa clk: qcom: Add slew support and restore context for SM6150
Update SLEW support flags for display and graphics plls
and Add support for restore context in slew_ops pll.

Change-Id: Iab3dae61c482108750bfe318417488f273f01e59
Signed-off-by: Chetan C R <quic_cchinnad@quicinc.com>
2023-12-24 13:32:36 +05:30
Ajit Pandey
9a6755961a clk: qcom: volcano: Add support for GCC on Volcano
Add support of Global clock controllers on Volcano for clients to
be able to request on these clocks.

Change-Id: I67511f61720f4ef65d03c713d6cb16f41d46e4c7
Signed-off-by: Ajit Pandey <quic_ajipan@quicinc.com>
2023-12-23 14:09:47 +05:30
qctecmdr
a4e92360d1 Merge "module.list: Add gunyah arm64 support to for pitti" 2023-12-22 22:03:19 -08:00
qctecmdr
f6073c898b Merge "q2spi-msm-geni: Do cleanup in q2spi_release & q2spi_remove" 2023-12-22 19:48:50 -08:00
qctecmdr
045f2f78e0 Merge "defconfig: pitti-gki: Enable VA minidump" 2023-12-22 15:03:24 -08:00
qctecmdr
5a8487afa8 Merge "build: bazel: Add compilation support for autoghgvm" 2023-12-22 12:30:46 -08:00
qctecmdr
42265918b4 Merge "module.list: Add minidump to first_stage for pitti" 2023-12-22 10:06:59 -08:00