Commit Graph

1167647 Commits

Author SHA1 Message Date
Amir Vajid
1378850559 defconfig: Enable BWPROF module for pineapple
Enable BWPROF feature on pineapple.

Change-Id: I154541d802632e17b0e30c9ec44d75d855109bc3
Signed-off-by: Amir Vajid <quic_avajid@quicinc.com>
2024-06-18 17:46:46 -07:00
qctecmdr
069ac0ea24 Merge "interconnect: qcom: icc-rpmh: Add support for No secondary display" 2024-06-17 21:32:15 -07:00
qctecmdr
9f82e4920c Merge "arm64: defconfig: Enable bandwidth profiler for anorak" 2024-06-17 09:36:12 -07:00
qctecmdr
5e0e873805 Merge "arm64: defconfig: add qdss related config for anorak" 2024-06-17 06:00:17 -07:00
qctecmdr
d78adcc483 Merge "ufs: ufs-qcom: Set spm level 5 for QB/DS" 2024-06-17 06:00:17 -07:00
qctecmdr
5cf98b86c6 Merge "soc: qcom: minidump: Add valid address check for virtio minidump driver" 2024-06-17 06:00:16 -07:00
qctecmdr
4202118bc6 Merge "serial: msm_geni_serial: Do not enable stale interrupt if port is closed" 2024-06-17 00:08:23 -07:00
qctecmdr
85c1027445 Merge "ARM: defconfig: Enable GKI based defconfig for autoghgvm" 2024-06-17 00:08:23 -07:00
qctecmdr
2b26a676d8 Merge "i2c: i2c-msm-geni: Enable multi descriptor support for shared SE" 2024-06-17 00:08:22 -07:00
qctecmdr
08f3514ce1 Merge "arm64: defconfig: Enable CONFIG_RELAY" 2024-06-13 23:13:39 -07:00
Krishna Chaithanya Reddy G
da0999a52a i2c: i2c-msm-geni: Enable multi descriptor support for shared SE
So far we bypassed multi-descriptor changes for shared-se, now
enabled multi-descriptor changes for shared SE as well.

Multi-descriptor uses block event interrupt(bei) to receive interrupt
after transferring i2c messages specified  by max number of transfers.
HW will transfer data corresponding to all tre's and generate interrupt
at the end of last transfer. In this implementation the number of
interrupts are reduced and also ensured that while hardware is
processing one set of tre's,software queues the next set of tre's
if available.

Change-Id: I983272681a7cbd99d4dab3d89e4f2b9edc8b3af7
Signed-off-by: Krishna Chaithanya Reddy G <quic_kgangapu@quicinc.com>
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2024-06-13 15:38:57 +05:30
Krishna Chaithanya Reddy G
659462265d i2c: i2c-msm-geni: add separate function for gsi i2c read and write
currently i2c geni driver is handling gsi i2c read and write in
i2c_gsi_xfer function, due to multiple if conditions giving
cyclomatic complexity number error. To provide more readability
and reduce complexity segregated to two different functions
geni_i2c_gsi_write and geni_i2c_gsi_read.

Change-Id: Id9cfffd90c0378ba3e689e8c3713a9fabe20ea84
Signed-off-by: Krishna Chaithanya Reddy G <quic_kgangapu@quicinc.com>
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2024-06-13 15:37:00 +05:30
Krishna Chaithanya Reddy G
7986eff661 i2c : i2c-msm-geni: Don't check for ios lines state for shared se mode
If it is a shared SE usecase, other EEs might have acquired
GSI lock which shall initiate the i2c transfers so line might
not be in good state. Hence we should not check the ios lines
state during the initiating the transfer in shared SE mode.

Removed the check condition to check for i2c geni ios lines state
for shared se in geni_i2c_xfer API.

Change-Id: Ibf517ecb3efe09a90e8c5e491d552bc0f148da46
Signed-off-by: Krishna Chaithanya Reddy G <quic_kgangapu@quicinc.com>
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2024-06-13 15:34:54 +05:30
Darshankumar Jagdishchandra Thakkar
4ae21af50c ufs: ufs-qcom: Set spm level 5 for QB/DS
During deep sleep, all regulators are turned off.
So, Set spm level to lvl 5 in case of deep sleep,
to ensure that appropriate SSU command is sent to
the ufs device.

For other senerios like s2idle, the spm level
must not be changed.

Change-Id: I404b4f61192488c87f09e664e11d1ec53a5f06d0
Signed-off-by: Ram Kumar Dwivedi <quic_rdwivedi@quicinc.com>
Signed-off-by: Darshankumar Jagdishchandra Thakkar <quic_djagdish@quicinc.com>
2024-06-13 15:23:43 +05:30
Xiaoning Ma
a3488e7f8d arm64: defconfig: Enable CONFIG_RELAY
Enable CONFIG_RELAY to support streamfs APIs.

Change-Id: I565c3faaeced97523d8789f88bd5e0db179c0ce9
Signed-off-by: Xiaoning Ma <quic_mxiaonin@quicinc.com>
2024-06-13 00:51:15 -07:00
Singa Reddy Dasari
91f42aacd6 ARM: defconfig: Enable GKI based defconfig for autoghgvm
Enable GKI based defconfig for autoghgvm.

Change-Id: Ic5b6f65cfc526396f9b255b59e23a81100c374b3
Signed-off-by: Singa Reddy Dasari <quic_singredd@quicinc.com>
2024-06-12 17:28:37 -07:00
qctecmdr
5cea1aa2af Merge "spi: spi-msm-geni: driver xfer_timeout cleanups" 2024-06-12 04:41:59 -07:00
Asit Shah
8f021fcc5c arm64: defconfig: Enable bandwidth profiler for anorak
Enable bandwidth profiler driver for anorak.

Change-Id: I3b3c1f68164eae0c419c7e9b85880d119dffda92
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
2024-06-12 12:07:30 +05:30
LADI RAM SAI
a98c56d5e7 soc: qcom: minidump: Add valid address check for virtio minidump driver
Add a valid address check for VirtIO minidump driver for autogvm.

Change-Id: I778e013e6db94dce7e60f1e0fe7107f502f43988
Signed-off-by: LADI RAM SAI <quic_lramsai@quicinc.com>
2024-06-11 21:58:57 -07:00
qctecmdr
089120f1d1 Merge "sched/walt: Fix pipeline fastpath during active load balance" 2024-06-11 21:12:20 -07:00
qctecmdr
f4e48e42c3 Merge "soc: qcom: hab: ctx owner should use tgid instead of pid" 2024-06-11 10:24:15 -07:00
Atul Pant
0f8077d655 sched/walt: Fix pipeline fastpath during active load balance
Pipeline fastpath is skipped when a cpu is already running a pipeline
task. It may happen that the current pipeline task and the task for
which we are finding the best cpu are same. This scenario arises during
load balancing on every scheduler tick, where we find the new best cpu
for the current task. Fix this by allowing pipeline fastpath if current
pipeline process on a cpu is same as the process for which we are
finding the best cpu.

Change-Id: Iaf935694c7c580b2e191793491130c1a3ccbedc4
Signed-off-by: Atul Pant <quic_atulpant@quicinc.com>
2024-06-11 08:09:27 -07:00
qctecmdr
a6328b5102 Merge "drivers: scm: Handle multi SMC support" 2024-06-11 00:54:39 -07:00
qctecmdr
b6f5019005 Merge "pci: msm: Adding a provision to disable BDF Halt feature" 2024-06-11 00:54:38 -07:00
Venkata Talluri
03a7869ff1 arm64: defconfig: add qdss related config for anorak
Add qdss related config for anorak.

Change-Id: I4e4271d2db10934be4ec5ba181f5c8b4f47a6be6
Signed-off-by: Venkata Talluri <quic_vtalluri@quicinc.com>
2024-06-11 00:11:42 -07:00
qctecmdr
e60961957c Merge "pinctrl: Add support for Niobe VM" 2024-06-10 08:08:22 -07:00
qctecmdr
dc380bc830 Merge "sound: usb: qmi: Prevent NULL deference in handle_uaudio_stream_req" 2024-06-10 04:19:40 -07:00
qctecmdr
68df35a458 Merge "defconfig: autogvm: remove DWMAC_LOONGSON for auto target" 2024-06-09 10:44:52 -07:00
Zelong Ren
780109879a soc: qcom: hab: ctx owner should use tgid instead of pid
In the actual use of hab client, there will be a case where
a child thread is responsible for managing habmm_socket_open/close,
and other child threads use vcid for communication. If ctx->owner
is pid, then context_stat will display the pid of the child thread.

This is not what we want. We hope that context_stat will display the
pid of the main process, not the pid of a child thread under the
main process. Because the main process often has more information
for us to analyze and debug.

Change-Id: Ie33e114f6dc1c94dec3f409022ed6e397f91bd2e
Signed-off-by: Zelong Ren <quic_zeloren@quicinc.com>
2024-06-09 16:29:43 +08:00
qctecmdr
3eed28599d Merge "soc: qcom: mem-hooks: Register hook for android_rvh_try_fixup_sea" 2024-06-07 12:14:45 -07:00
qctecmdr
409d4eede7 Merge "dt-bindings: Add IPCC client ID for NSP1" 2024-06-07 08:39:53 -07:00
qctecmdr
d725ee6a28 Merge "dcvs: bwprof: Use default_groups in kobj_type" 2024-06-07 04:56:08 -07:00
qctecmdr
d1c71ddfef Merge "arm64: defconfig: Enable governor and stat driver for anorak" 2024-06-07 04:56:08 -07:00
qctecmdr
e12f8aacb4 Merge "remoteproc: pas: Avoid NULL pointer dereference issue" 2024-06-07 04:56:07 -07:00
qctecmdr
e6d2f5c28c Merge "sched/walt: use rcu_access_pointer instead of rcu_dereference" 2024-06-07 04:56:07 -07:00
qctecmdr
44ad4f38b4 Merge "usb: dwc3: dwc3-msm-core: Notify PHY disconnect before doing flush_work" 2024-06-07 04:56:06 -07:00
qctecmdr
ca7fce0f36 Merge "phy: ufs-qcom: Configure missing UFS PHY TX registers for Gear 4" 2024-06-07 04:56:06 -07:00
qctecmdr
327d71555f Merge "soc: qcom: sys_pm_vx: Add drv_names for anorak" 2024-06-07 00:29:00 -07:00
Asit Shah
f0e399e977 drivers: scm: Handle multi SMC support
Added support of "qcom,no-multi-smc-support" property from devicetree.

If this property is added in devicetree node, then multi SMC is not
supported from driver side.

Change-Id: I323ec21c7abfee66e65c14ea72e12dcec94eaded
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
2024-06-07 11:51:24 +05:30
Chris Goldsworthy
2af6e4bba6 soc: qcom: mem-hooks: Register hook for android_rvh_try_fixup_sea
path_lookupat() is capable of safely reading unmapped VAs, by using
load_unaligned_zeropad(). If an unmapped VA is read whilst the
function is being called, that resulting page fault will get
re-directed to __do_page_fault(), which will call fixup_exception() to
handle the aforementioned unmapped-VA-read.

Now consider some memory was still mapped at S1 but lent to another
Gunyah VM. path_lookupat() can then use load_unaligned_zeropad() on a
page that virtually borders - in the S1 VA space - the page that was
lent to the other VM, and end up trying to read content from that
page. Gunyah will then inject an syncrhonous external abort for a PTW
fault, which will map to do_sea(). Register a callback for
trace_android_rvh_try_fixup_sea(), which returns true if we can
attempt a fixup_exception() call in do_sea() to zero-pad the read to
the page that was lent away.

Change-Id: I30a85d33f6c52d902275a178191cd47a2336658a
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2024-06-06 13:09:02 -07:00
Ankit Sharma
9b17ab90d4 sched/walt: use rcu_access_pointer instead of rcu_dereference
walt code currently uses rcu_dereference to access rd->pd. As we are
not dereferencing the pointer use rcu_access_pointer instead of
rcu_dereference.

Change-Id: I5ef0d12de4ae89ce423b421d1d2de28fc7759c00
Signed-off-by: Ankit Sharma <quic_anshar@quicinc.com>
2024-06-06 03:37:33 -07:00
Mukesh Ojha
2bd2f4bb6b remoteproc: pas: Avoid NULL pointer dereference issue
rproc->priv is incorrectly being dereferenced and assigned
without checking if rproc can be NULL however, the check
for this exist in the code, so fix this issue by doing
the handling appropriately.
(cherry picked from commit 2b05138c888f180a00c766f57dedb98a8863da0a).

Change-Id: I990a52ffc2a713c0e814fabfce4931e9bc1c3ac9
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
2024-06-06 02:38:45 -07:00
Deepak Suresh
f6989dc42c defconfig: autogvm: remove DWMAC_LOONGSON for auto target
lts tag release.6.1.75+ introduced
the dependency for DWMAC_LOONGSON on MACH_LOONGSON64
hence this configuration brought up the difference between
gki and msm gen3auto configs,since STMMAC is being enabled
for gen3auto.

For mobile targets these all net drivers are disabled
so removed this config as it is not NA for auto targets also.

Change-Id: I6a5e9ed855b1aa2daf9f1fbca6e15814ebec8041
Signed-off-by: Madhu Ananthula <quic_mananthu@quicinc.com>
Signed-off-by: Deepak Suresh <quic_deesur@quicinc.com>
2024-06-06 01:26:04 -07:00
Asit Shah
9735b34338 dcvs: bwprof: Use default_groups in kobj_type
default_attrs field is not present anymore in kobj_type structure. Made
changes to use default_groups instead of default_attrs.

Additionally, following changes made to compile successfully with
default_groups field.
1) Added both attributes(bwprof and mon) in ATTRIBUTE_GROUP.
2) ATTRIBUTE_GROUP macro is also updated and needs "_attrs" instead
of "_attr". Updated changes to fix this.
3) Added format specifier to print variable in dev_err() call.

Change-Id: Ib796a78431ba607aa24150b7c42c9dd6797fafd3
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
2024-06-06 01:02:32 -07:00
Uttkarsh Aggarwal
a7080c6b30 sound: usb: qmi: Prevent NULL deference in handle_uaudio_stream_req
Adding NULL check for subs in handle_uaudio_stream_req to avoid
potential null pointer dereferences in the code.

Possible scenario:

1. If find_substream returns NULL, the assignment to subs could
   lead to a null pointer dereference in the subsequent code.
   To handle this, we should check whether subs is null or not
2. get_data_interval_from_si function:
   If req_msg->service_interval_valid is true and subs is null,
   there could be a null pointer dereference. To avoid this,
   ensure that subs is non-null before accessing it.
3. enable_audio_stream and disable_audio_stream functions:
   Similar to the previous case, if subs is null, these functions
   may encounter null pointer dereferences.

Change-Id: I85a4bbc1e6222baa6e3888ab54855a4672bc12c0
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-06-05 23:36:02 -07:00
Udipto Goswami
93c53aca5b usb: dwc3: dwc3-msm-core: Notify PHY disconnect before doing flush_work
Compliance TypeC certification--TD 4.7.4 throws error saying "The put
does not cease USB communication" because currently the stop host
procedure set the role back to device and flushes the drd-work first
then disconnects phys. However the Analyzer by this time will consider
that the PHY is still active and therefore throw such error assuming
the test failed.

Fix this by moving the PHY disconnect notifiers before the role_switch
and flush work. Additionally disconnect ssphy first then the hsphy so
that the LFPS packets and be turned off as quickly as possible.

Change-Id: I6ea4665360dc8b92992672428d0563b8c1ea19e9
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
2024-06-05 23:32:50 -07:00
qctecmdr
3ce14a7337 Merge "defconfig: Enable system pm violator for anorak" 2024-06-05 08:38:26 -07:00
Asit Shah
c7021f5081 arm64: defconfig: Enable governor and stat driver for anorak
Enable config for governor and qcom stat driver. Also, added
required modules for enabled configs in anorak.bzl file.

Change-Id: I40eaead56ded3abf6c6ab43567bdbcc50e6f760a
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
2024-06-05 05:35:45 -07:00
qctecmdr
4e4df80080 Merge "ARM: defconfig: Enable GKI based defconfig for autoghgvm" 2024-06-05 05:13:40 -07:00
Chintan Kothari
98bf067af0 soc: qcom: sys_pm_vx: Add drv_names for anorak
Add snapshot of drv name on ANORAK from msm-5.10 branch to
get stats information
commit 4545acd1dc3c ("soc: qcom: sys_pm_vx: Add drv_names
for anorak").

Change-Id: I3ca54e4091a5d3555f3f77517cbf5752c7d7b1d2
Signed-off-by: Tushar Nimkar <quic_tnimkar@quicinc.com>
Signed-off-by: Chintan Kothari <quic_ckothari@quicinc.com>
2024-06-05 01:57:48 -07:00