Commit Graph

1156444 Commits

Author SHA1 Message Date
Srikanth Nanavalla
e17b028323 serial: msm_geni_serial: Add changes to capture kpi's
Common framework changes were added to capture KPI's,
this will help in capturing KPI numbers for all
interfaces spi, i2c, i3c and uart.
This implementation will help in capturing Tx, Rx
data path kpi's and geni resource enablement
KPI data as well.

To enable the uart kpi capture user should use the
below sysfs flag, by default capture_kpi sysfs flag
is disabled.
Ex: To enable:
echo 1 > /sys/bus/platform/devices/898000.qcom,qup_uart/capture_kpi
To disable:
echo 0 > /sys/bus/platform/devices/898000.qcom,qup_uart/capture_kpi

A new IPC log file is created to log the function
entry/exit timestamps which will help to capture the kpi's.
Ex:
cat /sys/kernel/debug/ipc_logging/898000.qcom,qup_uart_kpi/log.

Change-Id: I2e69fd2c7e505691904b5913bc425461f73d6fd1
Signed-off-by: Srikanth Nanavalla <quic_snanaval@quicinc.com>
2023-10-25 13:00:52 +05:30
qctecmdr
97d1857b1b Merge "Bazel : Enable coresight support for sm8150" 2023-10-24 19:27:34 -07:00
qctecmdr
07b086971a Merge "iommu/arm-smmu-v3: Add a paravirtualized ARM-SMMU V3 driver" 2023-10-24 19:27:34 -07:00
qctecmdr
beb4ae0652 Merge "arm64: defconfig: Enable QRTR_MHI" 2023-10-24 19:27:33 -07:00
qctecmdr
64bdaf7e1b Merge "arm64: defconfig: Enable coresight configs for sm8150" 2023-10-24 19:27:33 -07:00
qctecmdr
35c088fc21 Merge "soc: qcom: dcc_v2: Fix slab-out-of-bounds issue in dcc driver" 2023-10-24 19:27:32 -07:00
qctecmdr
04840ff72e Merge "sched/walt: Limit capacity capping to waltgov" 2023-10-24 14:44:12 -07:00
qctecmdr
17c04216e9 Merge "ufs: qcom: Update TX_HS_Equalizer_Setting as per latest HPG sequence" 2023-10-24 08:20:06 -07:00
qctecmdr
691b4c4e27 Merge "iommu: use linux/spinlock.h instead of linux/rwlock.h" 2023-10-24 01:54:07 -07:00
Kassey Li
b72760f000 iommu: use linux/spinlock.h instead of linux/rwlock.h
Directly including linux/rwlock.h breaks RT build failure.
Fix this by including linux/spinlock.h which includes the
correct rwlock header based on the selected PREEMPT configuration.

Change-Id: I42d3f7ec9a136f41626ca2678da00d325b896289
Signed-off-by: Kassey Li <quic_yingangl@quicinc.com>
2023-10-24 10:47:35 +08:00
qctecmdr
7a7a1427b0 Merge "Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (efda7fc) into qcom-6.1" 2023-10-23 12:54:28 -07:00
Shaleen Agrawal
6521efb3c3 sched/walt: Limit capacity capping to waltgov
If userspace changes the governor to a different one than waltgov,
ensure that capacities are unnecessarily capped and accurately reflect
the current frequency's true capacity.

Change-Id: I04c392721a96ff3d03e9438dd3a97777f0d9fd2b
Signed-off-by: Shaleen Agrawal <quic_shalagra@quicinc.com>
2023-10-23 12:02:04 -07:00
Shaleen Agrawal
30197461c3 sched/walt: Add flag to determine waltgov status
Create a waltgov_disabled flag to indicate if the WALT governor is the
active governor.

This will be used by the followup patch to determine when to modify
capacities.

Change-Id: Ic1509efbd123fd471536e75d54efcf6880a81627
Signed-off-by: Shaleen Agrawal <quic_shalagra@quicinc.com>
2023-10-23 12:00:22 -07:00
qctecmdr
3b96d37ea0 Merge "soc: core-hang: Map DT-info as per CPU availability" 2023-10-23 02:28:13 -07:00
Singa Reddy Dasari
48bcc558e9 iommu/arm-smmu-v3: Add a paravirtualized ARM-SMMU V3 driver
Implement a paravirtualized smmu v3 driver which registers to
the IOMMU framework. This driver manages stage-1 translations for
clients using smmu v3. It passes information of context
descriptors, stage-1 page table address and other parameters
via scm calls to a backend SMMU-v3 driver which runs at a
higher exception level, this backend driver is supposed to
internally program the smmu v3 registers.

Add snapshot for ARM-SMMUV3 paravirtualized driver from
msm-5.15 branch.
commit 78a4b713 ("iommu/arm-smmu-v3: Add a paravirtualized
ARM-SMMU V3 driver").

Change-Id: I3fd2d501c65cf0daecc691432963f422047b375a
Signed-off-by: Singa Reddy Dasari <quic_singredd@quicinc.com>
2023-10-23 14:28:44 +05:30
Geetha Jaya Sri Bandla
c3b9b78cc0 arm64: defconfig: Enable QRTR_MHI
Enable the QRTR_MHI config.

Change-Id: Ic90330ea2095a6ae4508a396ddca7f634bc1b1c8
CRs-Fixed: 3641641
Signed-off-by: Geetha Jaya Sri Bandla <quic_gbandla@quicinc.com>
2023-10-23 11:52:49 +05:30
jianzhou
16803f63ac Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (efda7fc) into
qcom-6.1

* refs/heads/tmp-efda7fc:
  ANDROID: bazel: Switch to arch-specific GKI module list

Change-Id: Ic17d4c610a0b8262a59cc3e9980e8a1feae7f9c8
Upstream-Build: ks_qcom-android14-6.1-keystone-qcom-release@10986841
UKQ2.231022.001
Signed-off-by: jianzhou <quic_jianzhou@quicinc.com>
2023-10-22 20:23:29 -07:00
Wasim Nazir
7e50b0abd0 soc: core-hang: Map DT-info as per CPU availability
Current code assumes that logical CPU number & physical
CPU has 1:1 mapping and accordingly get core-hang
registers from DT which are placed linearly with
increasing order of logical CPU numbers.
But if any CPU is not available then we will end up
using wrong registers because 1:1 mapping is broken
as we are having logically contiguous CPU numbers even
if physical cpus are not available.

To resolve this we are using new property "qcom,chd-percpu-info"
from DT which has core-hang registers wrt CPU phandles.
This driver is taking those registers based on CPU node
availability and mapping the registers to corresponding
logical CPU index.

Change-Id: Icf9b427a2760c0a0e742aecda7a07412085061a6
Signed-off-by: Wasim Nazir <quic_wasimn@quicinc.com>
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
2023-10-22 22:41:16 +05:30
Wasim Nazir
4cf4eb57df soc: qcom: core-hang: Consume registers based on number of cpus
Read registers values from DT till nr_cpu_ids.

Change-Id: I9f6432bbd279790b76d8bb7b68db7f46e8c9c05e
Signed-off-by: Wasim Nazir <quic_wasimn@quicinc.com>
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
2023-10-22 22:40:39 +05:30
Naina Mehta
7de1e1fa5d soc: qcom: core_hang: Add support to check available cpus
Add support to check the available cpus for each cluster.

Change-Id: I68e7fde67365a1d85d6533b45ffae75c0f23e3d1
Signed-off-by: Naina Mehta <quic_nainmeht@quicinc.com>
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
2023-10-22 22:37:16 +05:30
qctecmdr
1723c4cb02 Merge "ufs: ufs-qcom: sysfs: Add sysfs node of irq_affinity_support" 2023-10-22 09:42:10 -07:00
qctecmdr
e0393232fa Merge "pci: msm: Correct the drv resume sequence" 2023-10-20 23:39:14 -07:00
qctecmdr
e9ff99a034 Merge "ufs: host: Remove GENERIC_MSI_IRQ dependency for SCSI_UFS_QCOM" 2023-10-20 20:15:26 -07:00
qctecmdr
56fd19920b Merge "soc: qcom: mem-hooks: Add scan abort hook for MGLRU" 2023-10-20 11:30:37 -07:00
qctecmdr
e36eb670fd Merge "soc: qcom: socinfo: Add support for Cliffs7" 2023-10-20 11:30:36 -07:00
Manish Pandey
446d7d3f76 ufs: ufs-qcom: sysfs: Add sysfs node of irq_affinity_support
Add a new sysfs node 'irq_affinity_support' which is helpful
for enable and disable "Dynamic IRQ Affinity" feature.

Change-Id: I732777d9397dc8485d496600bd48785cf23151c4
Signed-off-by: Manish Pandey <quic_mapa@quicinc.com>
2023-10-19 22:12:13 -07:00
qctecmdr
d9f30f2fe3 Merge "ufs: ufs-qcom: enable dynamic irq affinity for ufs" 2023-10-19 12:42:08 -07:00
qctecmdr
83dff61992 Merge "i3c-master-msm-geni: Fix the free running clock issue" 2023-10-19 09:35:27 -07:00
qctecmdr
dca09550ad Merge "serial: msm_geni_serial: Retry sending Rx data to tty in chunks of 256 bytes" 2023-10-19 09:35:26 -07:00
qctecmdr
911cdccd52 Merge "scsi: ufs: host: ufs-qcom: Work around broken AHIT for MCQ mode" 2023-10-19 04:09:53 -07:00
qctecmdr
12849f76ec Merge "usb: phy: Keep hsphy clocks on if EUD is active" 2023-10-19 02:10:52 -07:00
Singa Reddy Dasari
1f1b5a23a3 ufs: host: Remove GENERIC_MSI_IRQ dependency for SCSI_UFS_QCOM
Remove GENERIC_MSI_IRQ dependency for SCSI_UFS_QCOM to avoid recursive
dependency for para_virt_smmuv3 driver enablement.

Change-Id: I9e0b5bbe1cf7bba33076b1166c9fcfe3caf39129
Signed-off-by: Singa Reddy Dasari <quic_singredd@quicinc.com>
2023-10-19 02:09:39 -07:00
Mohana LNU
620b5063d8 arm64: defconfig: Enable coresight configs for sm8150
Enable coresight configs for coresight components.

Change-Id: I0c4a017eb8018a1a49b8e31b388aac994eb7ad37
Signed-off-by: Mohana LNU <quic_mohalnu@quicinc.com>
2023-10-18 22:01:00 -07:00
qctecmdr
b3bd6fcb61 Merge "clk: qcom: cliffs: Update GCC clocks as per latest SW plan" 2023-10-18 18:58:09 -07:00
qctecmdr
d4e4871fcf Merge "serial: msm_geni_serial: Add support for 8 mbps baudrate" 2023-10-18 14:49:09 -07:00
qctecmdr
402fe99ef7 Merge "soc: qcom: Add support to hypassign ext-regions in vm" 2023-10-18 10:29:15 -07:00
Naman Jain
8cd01da3c5 soc: qcom: socinfo: Add support for Cliffs7
Add support for Cliffs7 variant of Cliffs in socinfo.

Change-Id: I8b9d12f05edd28d229f1bd465310070cec549796
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
2023-10-18 20:21:14 +05:30
qctecmdr
767cfa3206 Merge "mmc: sdhci-msm: Fix slot indexing in driver" 2023-10-18 07:26:14 -07:00
qctecmdr
60736f8416 Merge "rpmsg: glink: Fix possible deadlock scenario" 2023-10-18 04:49:31 -07:00
qctecmdr
df5b380717 Merge "serial: msm_geni_serial: Don't queue cancel work if Rx engine active" 2023-10-18 04:49:30 -07:00
qctecmdr
6ec0f4bb96 Merge "thermal: qcom: spmi-temp-alarm: Disable INT in shutdown cb" 2023-10-18 04:49:29 -07:00
Manish Pandey
942880f35c ufs: ufs-qcom: enable dynamic irq affinity for ufs
If device tree includes 'qcom,prime-mask' node, enable
dynamic irq affinity feature, else keep it disable by
default. As REQ_HIPRI has been replaced with REQ_POLLED,
hence using this flag in ufs_qcom_hook_compl_command will
complete the request in hard irq context.
With this, a significant improvement is observed with
UFS 2.x devices.

--------------------------------------------------------------
                        UFS 2.2 Hynix                         |
-------------------------------------------------------------
  operation      |  default     | with irq affinity feature   |
-------------------------------------------------------------
Rnd Read (IOPS)	 |   29713	|       43221	              |
Rnd Write (IOPS) |   28094	|       44087                 |
-------------------------------------------------------------..

Change-Id: I63b0e5b2bc38a08c42a2332e8fc691a94e4983f6
Co-developed-by: Nitin Rawat <quic_nitirawa@quicinc.com>
Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com>
Signed-off-by: Manish Pandey <quic_mapa@quicinc.com>
2023-10-18 00:59:00 -07:00
Android Build Coastguard Worker
efda7fc36e Snap for 10965962 from f29c4c5e64 to android14-6.1-keystone-qcom-release
Change-Id: I74d977fc3ba22be0a71a7ed9ab5fea7586ba24c2
2023-10-18 07:40:20 +00:00
qctecmdr
b33052995d Merge "serial: msm_geni_serial: Disable RX_FIFO_WM interrupt for GSI mode" 2023-10-18 00:26:30 -07:00
qctecmdr
21c5b33028 Merge "soc: qcom: rpmh-rsc: Add delay during waiting for TCS complete" 2023-10-18 00:26:28 -07:00
Can Guo
d38b0eea62 scsi: ufs: host: ufs-qcom: Work around broken AHIT for MCQ mode
In MCQ mode, if AHIT is about to expire, updating SQ tail pointer cannot
stop AHIT from expiring. When this corner case happens, Data command and
Hibernate command goes to Unipro together. And because Unipro gives
priority to Hibernate command, hence Data command is ignored, leading to
Data command timeout (task abort). To work around this corner case, the
essense is to stop AHIT timer from expiring before updating the SQ tail
pointer. The simplest way to stop AHIT timer from expiring is just
re-programming AHIT as 0. AHIT will be enabled back once there is no
active commands in UFS host controller.

Change-Id: I3e04468ac1321ccccbef86d9ed484e0aa91e3fd6
Signed-off-by: Can Guo <quic_cang@quicinc.com>
Signed-off-by: Ziqi Chen <quic_ziqichen@quicinc.com>
2023-10-18 11:07:08 +08:00
qctecmdr
90cecea466 Merge "wcd-usbss: increase negative OVP threshold to -0.5" 2023-10-17 13:28:33 -07:00
John Moon
f29c4c5e64 ANDROID: bazel: Switch to arch-specific GKI module list
Currently, the consolidate build uses COMMON_GKI_MODULES as the
implicit build output list. Instead, use the new get_gki_modules_list
macro to get the arch-specific list.

Change-Id: Ia97ed23fc9ac79999681f1357ff86c36e655ac18
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-10-17 10:27:57 -07:00
qctecmdr
c90f3d5722 Merge "wcd_usbss: add pm runtime resume and suspend while read/write" 2023-10-17 06:48:30 -07:00
Jagadeesh Kona
eeeee9f658 clk: qcom: cliffs: Update GCC clocks as per latest SW plan
Update the frequency table of GCC clocks as per the latest
SW plan. While at it, update enable_reg, hwcg_reg for few
videocc shift clocks on cliffs platform.

Change-Id: Ie5d4de14b0b4bbdd39f74eac845744a00e0b4df2
Signed-off-by: Jagadeesh Kona <quic_jkona@quicinc.com>
2023-10-17 19:05:09 +05:30