Commit graph

1155010 commits

Author SHA1 Message Date
Rakesh Kota
2ac87efc2c regulator: rpm-smd: Update sync_state call
Due to below upstream change, the sync_state functionality
of our RPM-SMD regulator driver has been broken:

Upstream commit 3a2dbc510c43 ("driver core: fw_devlink:
Don't purge child fwnode's consumer links")

With this change, consumers of the child node (rpm-smd regulator)
are now marked as consumers of the parent node (rpm-smd resource).
Since those consumers use the child node's phandle, but sync_state
is defined for the parent node, sync_state will not get called
as expected when the child node's last consumer is probed,
which could cause issues for regulator clients depending
on proxy votes.

Define sync_state call for proxy votes under regulator device
rather than resource to ensure it gets called and also register
regulator device for proxy voting rather than regulator resource.

Change-Id: Ic9943585657190d8808f4b8608dd82df228d381e
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
2023-07-31 15:08:25 +05:30
qctecmdr
b506a4c492 Merge "ufs: host: qcom: Add gear check in BER monitor" 2023-07-30 18:44:24 -07:00
qctecmdr
df50aff64b Merge "Revert "Revert "mem-buf: Properly track which VMs have access to buffer""" 2023-07-30 11:52:12 -07:00
qctecmdr
084d650785 Merge "usb : f_cdev : CDEV string interface in 90DB" 2023-07-30 09:17:15 -07:00
qctecmdr
118ddfb391 Merge "defconfig: steppeauto: Add support for BWMON for SM6150" 2023-07-29 12:42:34 -07:00
qctecmdr
f2318d7de7 Merge "haptics: qcom-hv-haptics: Move all debugfs code to qcom-hv-haptics-debugfs" 2023-07-29 12:42:33 -07:00
qctecmdr
954c35ba56 Merge "soc: qcom: Avoid mutex sleep in watchdog bark handler" 2023-07-29 12:42:33 -07:00
qctecmdr
720dbafd49 Merge "cpuidle: governors: qcom-lpm: Correctly clear prediction history" 2023-07-29 09:00:41 -07:00
qctecmdr
b513d653d6 Merge "drivers: qcom: Add encryption support for hibernation" 2023-07-29 09:00:40 -07:00
Maulik Shah
bc04fa972d cpuidle: governors: qcom-lpm: Correctly clear prediction history
Accessing cpu_gov using this_cpu_ptr() will always only clear
history for the running cpu.

Correctly clear prediction history for all CPUs.

Change-Id: Idff86ae8726f06c314ebd30385d3dd2832c43e54
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
2023-07-28 08:04:51 -07:00
qctecmdr
70a28a4df0 Merge "drm/bridge: anx7625: Modify bridge probe sequence" 2023-07-28 05:09:59 -07:00
qctecmdr
b3441e33c9 Merge "bus: mhi: host: Add device_add at end of mhi_register_controller" 2023-07-28 05:09:58 -07:00
qctecmdr
f3273a78d4 Merge "clk: qcom: SM6150: Fix stuck-off warnings during probe" 2023-07-28 05:09:58 -07:00
qctecmdr
2bc2cbcf9b Merge "Kconfig: Add support for Pitti chipset" 2023-07-28 05:09:58 -07:00
qctecmdr
d086f0f6b0 Merge "remoteproc: qcom: pas: Add SA6155 CDSP support" 2023-07-28 05:09:57 -07:00
qctecmdr
8457781da9 Merge "mem-buf: Make buffers unsuable on a lend failure" 2023-07-28 05:09:57 -07:00
qctecmdr
f54712f4a2 Merge "input: qcom-hv-haptics: set brake amplitude for HW brake modes" 2023-07-28 05:09:56 -07:00
John Moon
ba5bcd697e ANDROID: build: Drop --config=stamp
Currently, --config=stamp appears to be causing issues when
traversing git history in some large repos.

To work around this, drop --config=stamp from the command line
options.

Change-Id: I561c5175de620984df0b130b9bd1b7958aa883c1
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-07-27 14:10:05 -07:00
Manish Nagar
5adda6fa0d usb : f_cdev : CDEV string interface in 90DB
Currently, the DUN interface doesn't show a valid string descriptor when
enumerating in the host PC.This is because the addition of the valid
string descriptors seems to be missing which is not correct.
Fix this by adding the valid string descriptors during bind call.

Change-Id: Idc3fa7bcd22d2cb6bf1ed11ade82ed19f46fbff6
Signed-off-by: Manish Nagar <quic_mnagar@quicinc.com>
2023-07-26 22:29:51 -07:00
qctecmdr
736a29eaf3 Merge "ANDROID: build: Fix menuconfig invocation" 2023-07-26 04:10:54 -07:00
qctecmdr
980514513e Merge "pci: msm: Fix the pcie resources turn off/on order" 2023-07-26 04:10:54 -07:00
qctecmdr
629dbeeb86 Merge "serial: msm_geni_serial: Add suspend header file" 2023-07-26 04:10:53 -07:00
qctecmdr
a08f7ab5af Merge "arm64: defconfig: Enable logbuf-vendor-hook for Blair" 2023-07-26 00:19:39 -07:00
qctecmdr
a145c41708 Merge "drivers: dcvs: bwmon: add secondary voting feature" 2023-07-26 00:19:38 -07:00
qctecmdr
dab12ae448 Merge "clk: qcom: videocc-pineapple: Add support for cliffs platform" 2023-07-26 00:19:38 -07:00
qctecmdr
0bb66d55c5 Merge "defconfig: Remove CONFIG_CNSS2_DEBUG on gen3auto consolidate config" 2023-07-26 00:19:38 -07:00
qctecmdr
ae53790ec1 Merge "iommu: arm-smmu: Destroy secure page table pools during hibernation" 2023-07-26 00:19:36 -07:00
qctecmdr
23d44b4cce Merge "soc: qcom: llcc: Update config data for Pineapple SoC" 2023-07-25 20:19:38 -07:00
qctecmdr
7fdcc1e1ab Merge "pci: msm: Correct the cesta map table index" 2023-07-25 20:19:38 -07:00
qctecmdr
b6f6f26b8a Merge "arm64: defconfig: Enable QCOM_RPROC_BOTH_DUMPS for Blair" 2023-07-25 20:19:38 -07:00
qctecmdr
c0b0b1488a Merge "drivers: remoteproc: Update Crash reason SMEM ID" 2023-07-25 20:19:38 -07:00
qctecmdr
4a9f07c612 Merge "modules.list.msm.blair: Add GIC Interrupt Routing driver" 2023-07-25 20:19:37 -07:00
Anjelique Melendez
91b36b1f23 haptics: qcom-hv-haptics: Move all debugfs code to qcom-hv-haptics-debugfs
Currently, qcom-hv-haptics has code relating to debugfs within it. Remove
all debugfs code and move it to the new qcom-hv-haptics-debugfs file.

Change-Id: I429a86a2f4e42e7caf208ce8329d7776df915440
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2023-07-25 14:38:23 -07:00
Ziqi Chen
a7a732eaa3 ufs: host: qcom: Add gear check in BER monitor
Add gear check in BER monitor to check the boundary of the array.

Change-Id: I0e4bee1c0c1b14230fc30eda3e55785481649144
Signed-off-by: Ziqi Chen <quic_ziqichen@quicinc.com>
2023-07-25 12:06:49 +08:00
qctecmdr
bf01a58857 Merge "Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (8823053) into qcom-6.1" 2023-07-24 15:19:33 -07:00
qctecmdr
fec05c9818 Merge "soc: qcom: hab: Use VM modifier functions for VM flag updates" 2023-07-24 15:19:32 -07:00
qctecmdr
1468e20fd2 Merge "ANDROID: build: Fix output directory layout" 2023-07-24 15:19:32 -07:00
Song Xue
c84dc17157 arm64: defconfig: Enable QCOM_RPROC_BOTH_DUMPS for Blair
Enable QCOM_RPROC_BOTH_DUMPS in GKI config for Blair
to collect both full and mini dumps for SSRs in the case
where both dumps collection is enabled for subsystem.

Change-Id: I95306d6b6fe5b421372c746839a44337282718d2
Signed-off-by: Song Xue <quic_songxue@quicinc.com>
2023-07-24 13:55:42 +08:00
John Moon
c38cee9986 ANDROID: build: Fix output directory layout
With a recent change to the output directory handling from
build_with_bazel.py, some dist directory paths incorrectly used
hyphens instead of underscores.

Fix this issue by mirroring the logic in msm_common.bzl which handles
these paths properly.

Also, run buildifier to fix format of Bazel build files.

Change-Id: Ia82073f059c54f4a7f523c5bd91afdc755c70df1
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-07-22 20:40:11 -07:00
John Moon
e256ab82a2 soc: qcom: hgsl: Use VM modifier functions for VM flag updates
Starting kernel version 6.1.25 vm_flags modifications are performed
after taking exclusive mmap_lock to prevent vm_flags updates racing with
vma operations. Hence use VM flags modifier functions for vm_flags
update for better control on locking behavior during these updates.

Change-Id: I5ba3ab7dd25e27fe551d9a8b0ccb5757a1ed3bcc
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-07-22 00:05:54 -07:00
Guru Das Srinagesh
8b7b9a3b48 ANDROID: build: Fix menuconfig invocation
Commit 02faddf96a ("ANDROID: build: Add build_opts.txt file to
output") changed the way targets are specified. This broke the
menuconfig invocation, so fix it.

Change-Id: I23610538d1dafe1f80acccfb13684819d27ee25e
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2023-07-21 18:07:41 -07:00
Guru Das Srinagesh
c945886bef soc: qcom: hab: Use VM modifier functions for VM flag updates
Starting kernel version 6.1.25 vm_flags modifications are performed
after taking exclusive mmap_lock to prevent vm_flags updates racing with
vma operations. Hence use VM flags modifier functions for vm_flags
update for better control on locking behavior during these updates.

Change-Id: Idf9a690d87535adecc8a292603b0aba051cd62e9
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2023-07-21 17:04:11 -07:00
Darshankumar Jagdishchandra Thakkar
66a6607bec drivers: qcom: Add encryption support for hibernation
Add a crypto client driver to support page encryption
using GCM-AES algorithm. This will enable to encrypt the
hibernation snapshot before saving to disk.

Change-Id: I7e736a2850b1c869e9984d8ecc51d899898284b3
Signed-off-by: Madhu Ananthula <quic_mananthu@quicinc.com>
Signed-off-by: Shreyas K K <quic_shrekk@quicinc.com>
Signed-off-by: Darshankumar Jagdishchandra Thakkar <quic_djagdish@quicinc.com>
2023-07-21 23:32:01 +05:30
Shreyas K K
8230f3bc78 drivers: qcom: Add vendor hooks for S2D
Add a new driver for vendor hook implementation
related to Suspend-to-Disk feature.

Add the structure definitions of arch Hibernation
headers from file arch/arm64/kernel/hibernate.c as of
'commit e90deabb2b0d ("Merge "soc: hw_fence: add
support for 64-bit client_data"")'.

Change-Id: I895a280fa64fe15e303df4e842c82de7e5e3bb6f
Signed-off-by: Vivek Kumar <quic_vivekuma@quicinc.com>
Signed-off-by: Shreyas K K <quic_shrekk@quicinc.com>
Signed-off-by: Darshankumar Jagdishchandra Thakkar <quic_djagdish@quicinc.com>
2023-07-21 23:13:19 +05:30
Chetan C R
64f5948c10 clk: qcom: SM6150: Fix stuck-off warnings during probe
When clocks are registered with the framework during probe,
clk_core_hold_state() will call clk_core_prepare_enable() for clocks
already enabled in HW from bootloaders. Some clocks are failing to
actually turn on when this is called, which results in noisy warnings
printed to the kernel log.

These specific GPU clocks are failing to turn on because the required
GDSC isn't enabled yet. However, this isn't a functional issue since GPU
isn't actually being used yet. Since these clocks aren't shared across
multiple client devices, there's no need for the framework to issue a
proxy vote during registration. Thus, set the CLK_DONT_HOLD_STATE flag
for these to skip the clk_core_prepare_enable() during registration.

Change-Id: Iad18f548cfd267111a863dfcbac89342ad031353
Signed-off-by: Chetan C R <quic_cchinnad@quicinc.com>
2023-07-21 06:52:11 -07:00
Wasim Nazir
ce1c00d889 Kconfig: Add support for Pitti chipset
Add CONFIG_ARCH_PITTI to enable support for Pitti chipset.

Change-Id: I0f9d97deedbbd947a9be23081b60b6ee623eb8df
Signed-off-by: Wasim Nazir <quic_wasimn@quicinc.com>
2023-07-21 16:40:18 +05:30
Balaji Vekatesh Kalkonda
7c166f49df drm/bridge: anx7625: Modify bridge probe sequence
Remove dsi_attach from anx bridge probe sequence so
that it is not dependent on the dsi driver probe.
Instead call the dsi_attach from anx7625_bridge_attach
flow which happens during the DSI bind flow. This makes
sure ANX bridge driver probe and DSI driver probe happens
independently and later at bind stage both ANX and DSI
gets linked.

Change-Id: Icd40b2f108bca3ff386c3dac4d90a045566047e6
Signed-off-by: Balaji Vekatesh Kalkonda <quic_bkalkond@quicinc.com>
2023-07-21 16:17:26 +05:30
Song Xue
2115b499a2 arm64: defconfig: Enable logbuf-vendor-hook for Blair
Enable logbuf-vendor-hook for Blair SOC.

Change-Id: I7911a8c170782888029da98eb9eac8ec71babbcc
Signed-off-by: Song Xue <quic_songxue@quicinc.com>
2023-07-21 12:16:48 +08:00
Chris Goldsworthy
6eb5735cc0 mem-buf: Make buffers unsuable on a lend failure
If we fail to lend a buffer, part of it might not belong to HLOS.
Don't allow it to be used.

Separately, de-duplicate some vmperm checking code.

Change-Id: I543dccfb9dff7781fe13e24e9172a0608f8a7451
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2023-07-20 15:34:44 -07:00
Viken Dadhaniya
2222926f60 serial: msm_geni_serial: Add suspend header file
After enabling deepsleep config, we are observing
compilation error.

To resolve compilation error, added suspend header file
and moved function body before usage.

Change-Id: Ifda190a44770a33a871216819c6c5064fe9ed8b0
Signed-off-by: Viken Dadhaniya <quic_vdadhani@quicinc.com>
Signed-off-by: Darshankumar Jagdishchandra Thakkar <quic_djagdish@quicinc.com>
2023-07-20 17:04:05 +05:30