Commit Graph

1167623 Commits

Author SHA1 Message Date
Mahesh Kumar
72e1cc7a47 defconfig: Enable secure buffer for secure use cases
Enable the secure buffer driver on the AutoGHGVM platform
to support secure use cases.

Change-Id: I42ec8b7618403456271f1a1bdc2483e66bf478c2
Signed-off-by: Mahesh Kumar <quic_mahkumar@quicinc.com>
2024-06-13 18:34:55 -07:00
qctecmdr
f4e48e42c3 Merge "soc: qcom: hab: ctx owner should use tgid instead of pid" 2024-06-11 10:24:15 -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
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
qctecmdr
4b68c3db6f Merge "coresight: csr: Add support for AODBG CSR" 2024-06-05 01:34:04 -07:00
qctecmdr
e068c9d45f Merge "arm64: defconfig: Enable watchdog support for anorak" 2024-06-05 01:34:03 -07:00
qctecmdr
c3ace69e38 Merge "arm-smmu: Fix context bank/smr override check" 2024-06-05 01:34:02 -07:00
Chintan Kothari
e4dc81945e defconfig: Enable system pm violator for anorak
This change enables system pm violator driver.

Change-Id: I39b3af32d996a6297e67600e061512c1b5d2d19f
Signed-off-by: Chintan Kothari <quic_ckothari@quicinc.com>
2024-06-05 12:10:48 +05:30
Anjana Hari
11cee76b3b phy: ufs-qcom: Configure missing UFS PHY TX registers for Gear 4
In PHY calibration table for Gear 4, entries for registers
QSERDES_TX0_LANE_MODE_3 and QSERDES_TX1_LANE_MODE_3 are missing.
Hence, setting the right configuration for the above mentioned
registers.

Change-Id: Ia5c5560d14b2ecbf5b9ae32a423774394e71d527
Signed-off-by: Anjana Hari <quic_ahari@quicinc.com>
2024-06-05 11:21:25 +05:30
qctecmdr
53b6509c74 Merge "qcom_scm_hab: Close correct handle in error path" 2024-06-04 14:08:59 -07:00
qctecmdr
f4f4a624f3 Merge "defconfig: Enable glink probe defconfig" 2024-06-04 08:43:02 -07:00
qctecmdr
b90faba072 Merge "defconfig: gen3auto: enable smmu testbus dump support" 2024-06-04 08:43:01 -07:00
qctecmdr
2007ced898 Merge "coresight: tmc: Fix byte-cntr irq count mismatch issue" 2024-06-04 08:43:01 -07:00
qctecmdr
5ea44c0b00 Merge "defconfig: Enable SPS BAM drivers for anorak" 2024-06-04 04:49:41 -07:00
qctecmdr
8e4cfcf17e Merge "clk: qcom: clk-cpu-sdxlemur: Populate best_parent_rate of parent_req" 2024-06-04 04:49:40 -07:00
Charan Teja Reddy
e4c778a8cc arm-smmu: Fix context bank/smr override check
Fix the condition check that overrides the number of
smr/context banks in the system.

Change-Id: I242375ab711f3688a7c8a24e598d1e4a2a7fac17
Signed-off-by: Charan Teja Reddy <quic_charante@quicinc.com>
Signed-off-by: Shreyas K K <quic_shrekk@quicinc.com>
2024-06-04 12:39:48 +05:30
Singa Reddy Dasari
78fc408e1c ARM: defconfig: Enable GKI based defconfig for autoghgvm
Enable GKI based defconfig for autoghgvm.

Change-Id: I04b83addb3f8c9130ccea68e1abdb7a703cbc6a1
Signed-off-by: Singa Reddy Dasari <quic_singredd@quicinc.com>
2024-06-03 23:48:12 -07:00
Yuhang Ji
a7ca5da00d qcom_scm_hab: Close correct handle in error path
We should close nonatomic handle which is already opened.

Change-Id: Id789f74e0cfbfa918bc7450a559fc0fdf51b65d2
Signed-off-by: Yuhang Ji <quic_yuhaji@quicinc.com>
2024-06-03 21:46:49 -07:00
Paras Sharma
376d323b10 pci: msm: Adding a provision to disable BDF Halt feature
Adding a provision to disable BDF Halt feature
through device tree flag based on BDF halt flag.

Change-Id: Ic2cc57d4e7938aaa492c9842abb24e4e8e68b651
Signed-off-by: Jyothi Kumar Seerapu <quic_jseerapu@quicinc.com>
Signed-off-by: Paras Sharma <quic_parass@quicinc.com>
Signed-off-by: Naga Rashmi Ayiluri <quic_nayiluri@quicinc.com>
2024-06-03 17:17:20 +05:30
amatariy
b070877c53 arm64: defconfig: Enable watchdog support for anorak
Enable watchdog support for anorak.

Change-Id: I81b195570c692187c7ed27f262162c9b728fdd6f
Signed-off-by: amatariy <quic_amatariy@quicinc.com>
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
2024-06-03 11:30:15 +05:30
Mao Jinlong
7010c1c427 coresight: tmc: Fix byte-cntr irq count mismatch issue
When byte-cntr irq count doesn't match up with the data size in
ETR sink, there will be delay issue to send the data to host.
Count the irq number in small size transfer function when such
case happens.

Change-Id: I60428e1d9916fd0dde8c87f3f81c8b887b7e448b
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2024-06-03 10:47:55 +08:00
Raghava Chowdam
aa3bf3cf9b drivers: iio: imu: Add freeze and restore support for hibernation
It fix the restore failure in hibernation.

Change-Id: I2b0fdcbb9f213e27941a56479157a52e6f822dd7
Signed-off-by: Raghava Chowdam <quic_rchowdam@quicinc.com>
2024-05-31 10:33:01 -07:00
qctecmdr
8baf695be2 Merge "defconfig: Enable PMIC overlay defconfigs for anorak" 2024-05-31 05:28:18 -07:00
qctecmdr
ff2732f9e1 Merge "defconfig: anorak: add qti epm hardware driver" 2024-05-31 05:28:17 -07:00
qctecmdr
04dca55dd8 Merge "modules.list: anorak: Add watchdog related module in Anorak" 2024-05-31 05:28:17 -07:00