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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Add CONFIG_ARCH_PITTI to enable support for Pitti chipset.
Change-Id: I0f9d97deedbbd947a9be23081b60b6ee623eb8df
Signed-off-by: Wasim Nazir <quic_wasimn@quicinc.com>
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>
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>
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>