Commit Graph

1156996 Commits

Author SHA1 Message Date
qctecmdr
4de5c02be6 Merge "defconfig: Enable glink and qrtr config for pitti" 2023-11-27 00:32:13 -08:00
Jayasri Bhattacharyya
0abf655220 ufs: ufs-qcom: Add check to prevent null pointer exception
Add check in ufs_qcom_ice_debug to prevent crash.
In some UFS nodes ICE registers may not be present,
so add appropriate check before dumping registers.

Change-Id: Ie183456687039ce349df03f0ecf9485fead0adbd
Signed-off-by: Jayasri Bhattacharyya <quic_jbhattac@quicinc.com>
2023-11-26 19:59:03 -08:00
Visweswara Tanuku
213d426f95 q2spi-msm-geni: Add boot kpi markers
Print the boot markers to kmsg log. A post
processing script is used to extract the marker
with time from the log.

Change-Id: I5473f44a0ca18105e82baaf000d5bd2d6b04f16a
Signed-off-by: Visweswara Tanuku <quic_vtanuku@quicinc.com>
2023-11-25 22:44:29 -08:00
qctecmdr
398a6df173 Merge "interconnect: qcom: Add interconnect providers for NIOBE" 2023-11-25 03:11:21 -08:00
qctecmdr
2e8e8c7a03 Merge "sched: walt: introduce frequency relationship between clusters" 2023-11-24 21:38:11 -08:00
qctecmdr
d0cdc1e7e1 Merge "modules-list: add TMECom modules for niobe" 2023-11-24 04:24:19 -08:00
qctecmdr
9b44d5e6d1 Merge "sound: usb: qmi: Prevent usb_audio_disconnect from getting blocked" 2023-11-24 04:24:18 -08:00
Ashay Jaiswal
2c1ecea456 sched: walt: introduce frequency relationship between clusters
The change allows user to specify frequency dependency between
the clusters and control the order in which frequency can be
ramped up for a cluster.

For example, user can specify cluster0 to cluster1 relationship
such that cluster0 is allowed to cross a frequency level(F0) only
after cluster1 is at or beyond certain frequency(F1).

Once the above relationship is configured WALT ensures that once
cluster0 achieves frequency F0 after that all placement/pulling
task during load balance for cluster0 are skipped until cluster1
reaches F1.

Note:
1. Frequency relation is unidirectional, i.e. a lower capacity
cluster can be dependent on a higher capacity cluster but reverse
(a higher cpacity cluster dependent on lower capacity cluster) is
not allowed.
2. Maximum 10 relationships are allowed for each cluster.

Example: src_freq tgt_cpu tgt_freq > sched_cluster0_freq_map
The above command signifies following:
- Once cluster0 hit src_freq after that placements skips cluster0
until target cluster(cluster having tgt_cpu) reached tgt_freq.
Once tgt_cluster achieves tgt_freq or cluster0 falls below src_freq
default placement policy is applied.

Change-Id: I140a4e8db5b57fe9fe659a9b377f8d0c131d3f18
Signed-off-by: Ashay Jaiswal <quic_ashayj@quicinc.com>
2023-11-24 15:55:48 +05:30
Pranav Mahesh Phansalkar
b94cad6f1b defconfig: Enable glink and qrtr config for pitti
Add glink and qrtr config for pitti SoC.

Change-Id: Id257a1c73dc948c9cd92bdc93e088eaad82a309c
Signed-off-by: Pranav Mahesh Phansalkar <quic_pphansal@quicinc.com>
2023-11-24 14:25:25 +05:30
Srinath Pandey
0e452406e9 include: linux: Fixing compilation issues for upgrade to kernel 6.x
Introduced get_plat_tx_coal_frames and tx_select_queue in
the plat_stmmacenet_data structure.

Change-Id: If569073d86ddae11bc1cecc7f0b503d7ab11c5c3
Signed-off-by: Srinath Pandey <quic_srinpand@quicinc.com>
2023-11-24 00:22:10 -08:00
qctecmdr
dd8698f40e Merge "pinctrl: qcom: blair: Add egpio support and enable it selectively" 2023-11-23 21:57:14 -08:00
qctecmdr
7c7f46e138 Merge "sound: usb: qmi: Refactor handle_uaudio_stream_req" 2023-11-23 20:16:15 -08:00
Prashanth K
cdf3049537 sound: usb: qmi: Prevent usb_audio_disconnect from getting blocked
Performing USB POPI during audio stream can cause a situation
where usb_audio_disconnect() gets stuck. Consider a scenario,
handle_uaudio_stream_req() increases the usage_count and calls
enable_audio_stream(). If disconnect happens during this time,
usb_audio_disconnect() waits for usage_count) to be zero. And
in the meantime, handle_uaudio_stream_req() will decrease the
usage_count, but usb_audio_disconnect will not proceed since
wake_up() wasn't called.

wait_event() requires wake_up() to be called after changing any
variable that could change the result of the wait condition.
Fix this by calling wake_up() in handle_uaudio_stream_req()
after decreasing the usage_count.

Change-Id: Ia4d8e7ab789d284476dfdd28eb53d81c8ac9b5b8
Signed-off-by: Prashanth K <quic_prashk@quicinc.com>
2023-11-23 20:00:07 -08:00
qctecmdr
2524cd8244 Merge "soc: qcom: llcc: Update SCT table for Cliffs, Cliffs7" 2023-11-23 10:56:44 -08:00
qctecmdr
c6a685e99d Merge "arch: arm64: config: Enable modules for msm glue and emu phys" 2023-11-23 06:36:06 -08:00
qctecmdr
745b572c75 Merge "modules.list: Add interconnect driver to modules list for PITTI" 2023-11-23 02:18:23 -08:00
qctecmdr
cffb6c7380 Merge "build: bazel: update earlycon address for niobe" 2023-11-23 02:18:22 -08:00
Prashanth K
d876fab97a sound: usb: qmi: Refactor handle_uaudio_stream_req
Refactor handle_uaudio_stream_req() by using a helper function
__handle_uaudio_stream_req() which would reduce the cyclomatic
complexity of the function.

Change-Id: I2a6b4f80bf6449c86d1585ed0127a7364b336318
Signed-off-by: Prashanth K <quic_prashk@quicinc.com>
2023-11-23 02:00:41 -08:00
Naman Jain
544050c658 soc: qcom: llcc: Update SCT table for Cliffs, Cliffs7
Update SCT table for Cliffs and Cliffs7 to reflect the
configuration decided to optimize the system performance.

Change-Id: Ic3858179dcc5369d56fd0783865aed1cbf48e549
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
2023-11-23 14:48:29 +05:30
qctecmdr
ad7c83697f Merge "arm64: defconfig: Enable MSM_BOOT_STATS for sm6150" 2023-11-23 00:38:17 -08:00
Krishna Kurapati
6464ba780d arch: arm64: config: Enable modules for msm glue and emu phys
Enable modules for emu/nop phys and msm core on Niobe.

Change-Id: I92ca4fae32b26b2340e15d52a50a208ad05914ac
Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
2023-11-23 12:39:49 +05:30
Abhijeet Dharmapurikar
3132a5d1e2 sched/walt: catch/fix possible corruption of level local var
Currently, level is set to 0 at the entry of walt_irq_work.

A crash was seen where except for cpu0's rq lock all rq locks were
held. This suggests that value in level got changed to something other
than 0 by the time the locking loop ran.

Move the initialization of level just before the locking loop - this should
prevent skipping of locking of first cpu's rq lock.

For added protection, repeat this process in all other places where all
rq locks are acquired.

Change-Id: I0997100b8c844a34a57c36407207adb329163021
Signed-off-by: Abhijeet Dharmapurikar <quic_adharmap@quicinc.com>
Signed-off-by: Shaleen Agrawal <quic_shalagra@quicinc.com>
2023-11-23 10:46:10 +05:30
Song Xue
9cda108380 pinctrl: qcom: blair: Add egpio support and enable it selectively
Add functions for controlling egpio enablement. At present, we need
be careful about the gpios which is already used as lpi setting.
Don't enable egpio even though these gpio has egpio_present capable.

Through setting msm_mux_egpio or msm_mux_NA on PINGGROUP, control
corresponding gpio.

We just enable gpio86 for necessary request from audio side now.

Change-Id: Id4df09651a5a994b74f305e94f0852a9b1b28c0c
Signed-off-by: Song Xue <quic_songxue@quicinc.com>
2023-11-23 12:29:12 +08:00
qctecmdr
7566ba738f Merge "pinctrl: qcom: Add support for user modification of the dir_conn list" 2023-11-22 14:37:09 -08:00
Raviteja Laggyshetty
2014dabcfc modules.list: Add interconnect driver to modules list for PITTI
Add icc-rpm, qnoc-qos-rpm, qnoc-pitti to load during first
stage of module loading.

Change-Id: Ie018b5ec29132d952b3bfd13420a2e0942e65809
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
2023-11-22 06:20:32 -08:00
Raviteja Laggyshetty
52115ff523 defconfig: Enable interconnect driver for PITTI
Enable the interconnect driver so that consumers are
able to obtain their path handles properly.

Change-Id: Idcc645dfc7560dd9a3a7c64b9f1e4f904777cbcb
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
2023-11-22 06:20:15 -08:00
Amrit Anand
aeebfc0e75 build: bazel: update earlycon address for niobe
Update earlycon address for niobe target.

Change-Id: I75cda74fce30f41221a2e18151aac3ef6e637863
Signed-off-by: Amrit Anand <quic_amrianan@quicinc.com>
2023-11-22 17:02:01 +05:30
qctecmdr
045d3e22cc Merge "soc: qcom: minidump: Fix VM minidump probe failure" 2023-11-21 20:46:22 -08:00
qctecmdr
5b66c77105 Merge "i2c: i2c-msm-geni: Add changes to capture kpi's" 2023-11-21 18:27:28 -08:00
qctecmdr
78565a3db2 Merge "iio: qcom-spmi-adc5-gen3: update module removal API" 2023-11-21 13:05:19 -08:00
qctecmdr
b90e538ecb Merge "interconnect: qcom: Add interconnect provider driver for PITTI" 2023-11-21 13:05:18 -08:00
qctecmdr
8f530fba94 Merge "defconfig: Enable glink config for pitti" 2023-11-21 06:30:59 -08:00
qctecmdr
20f796eed5 Merge "Revert "i3c-master-msm-geni: add changes for i3c counter values"" 2023-11-21 06:30:59 -08:00
qctecmdr
26d2a0bb5c Merge "defconfig: Enable smp2p config for pitti" 2023-11-21 06:30:58 -08:00
qctecmdr
6efad0d6db Merge "arm64: defconfig: Enable SCMI bus dcvs config in niobe" 2023-11-21 06:30:58 -08:00
Anil Veshala Veshala
803574f8a2 i2c: i2c-msm-geni: Add changes to capture kpi's
To enable the i2c kpi capture user should enable
sysfs capture_kpi flag, by default capture_kpi sysfs
flag is disabled.

Ex: To enable:
echo 1 > /sys/bus/platform/devices/a98000.i2c/capture_kpi.
To disable:
echo 0 > /sys/bus/platform/devices/a98000.i2c/capture_kpi.

Change-Id: I985026f5371986142843e9c6e984375f2df0effd
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2023-11-21 05:17:55 -08:00
Raviteja Laggyshetty
b186eea964 interconnect: qcom: Add interconnect providers for NIOBE
Add interconnect provider for lpass_ag_noc.
This will allow consumers to get their path and set bandwidth
constraints on them.

Change-Id: I43e0a1295d1e1b9adaab1ba15ad755652ea01b94
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
2023-11-21 14:40:05 +05:30
Raviteja Laggyshetty
7cd41d93db icc: dt-bindings: update lpass endpoint IDs for interconnects for NIOBE
Add master and slave ID constants for lpass_ag_noc interconnect
provider, which consumers can use to set bandwidth constraints and
find paths in the NoC (Network-On-Chip) topology.

Change-Id: I24c46501573afb5ccf8eeb5d42d9c684cda95784
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
2023-11-21 14:28:28 +05:30
Mohana LNU
280338cb99 arm64: defconfig: Enable MSM_BOOT_STATS for sm6150
Enable MSM_BOOT_STATS config for Kernel MPM timestamp.

Change-Id: I5ea07044beac6cd8e9ed98cdb6167b9fe0415abd
Signed-off-by: Mohana LNU <quic_mohalnu@quicinc.com>
2023-11-20 23:42:42 -08:00
Raviteja Laggyshetty
aa1a67184d interconnect: qcom: Add interconnect provider driver for PITTI
Introduce pitti interconnect provider driver using the interconnect
framework.

Change-Id: Ic1be9b29887e47dd4c6be5c4413669dd31120937
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
2023-11-20 20:11:15 -08:00
Raviteja Laggyshetty
3121ff2ea4 icc: dt-bindings: add endpoint IDs for interconnects for PITTI
Add master and slave ID constants for all Qualcomm Technologies, Inc.
Pitti interconnect providers which consumers can use to set bandwidth
constraints and find paths in the NoC (Network-On-Chip) topology.

Change-Id: I7bc06ae5b1f318041c750e3ce56e8cdc3f53f2bf
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
2023-11-20 20:08:58 -08:00
qctecmdr
63fe12bd3d Merge "soc: qcom: rpmh-rsc: Dump RSC & CRM registers for debug" 2023-11-20 10:41:29 -08:00
Anil Veshala Veshala
cf15b07ea9 Revert "i3c-master-msm-geni: add changes for i3c counter values"
This reverts commit 0f1d72a5b2.

Reason for revert: seeing i2c failures.

Change-Id: Ieb347673c7a42729d6deb5d8bfd28d1010304690
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2023-11-20 07:29:18 -08:00
qctecmdr
8d0e89c28b Merge "soc: qcom: hab: add support for new config MSM_BOOT_TIME_MARKER" 2023-11-20 06:05:29 -08:00
Pranav Mahesh Phansalkar
2931039430 defconfig: Enable smp2p config for pitti
Add smp2p config for pitti SoC.

Change-Id: Ib228a0412f36e0cb803a5a015a27043f2979bd1d
Signed-off-by: Pranav Mahesh Phansalkar <quic_pphansal@quicinc.com>
2023-11-20 17:50:14 +05:30
Pranav Mahesh Phansalkar
31e6869614 defconfig: Enable glink config for pitti
Add glink config for pitti SoC.

Change-Id: Ia54544ede56c04dc3486789cc2bf0688ed52cccd
Signed-off-by: Pranav Mahesh Phansalkar <quic_pphansal@quicinc.com>
2023-11-20 17:34:54 +05:30
qctecmdr
c6f7292e77 Merge "q2spi-msm-geni: Reduce logging in dump_ipc" 2023-11-20 04:01:06 -08:00
qctecmdr
7d72b7784d Merge "soc: qcom: hab: Add flag to mark whether hab_init is completed" 2023-11-20 02:23:30 -08:00
qctecmdr
41736cad3d Merge "soc: qcom: hgsl: Account memory allocated by hgsl" 2023-11-20 00:32:38 -08:00
qctecmdr
52c12ee95c Merge "net: stmmac: Add stmmac_validate and fix DMA reset error" 2023-11-20 00:32:37 -08:00