Commit Graph

3568 Commits

Author SHA1 Message Date
qctecmdr
93cff29e2a Merge "qcom: socinfo: Code cleanup to remove unused features" 2023-06-02 09:54:38 -07:00
qctecmdr
532aed98a4 Merge "soc: qcom: boot_log: Reserve boot_log_buf for parse usage" 2023-06-02 09:54:38 -07:00
Naman Jain
5468d4ec94 qcom: socinfo: Code cleanup to remove unused features
Clean code by removing the sysfs interface, export APIs etc.
which are not used. Also, restructure it to have minimal
divergence with upstream code base.

Change-Id: I667d0fcff0611b72d81971bdb0d8ef7708c56e1b
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
2023-06-01 10:03:48 +05:30
qctecmdr
333c079700 Merge "soc: qcom: minidump_memory: Use stack depot with proper config" 2023-05-25 19:47:27 -07:00
qctecmdr
6c1afd649f Merge "wcd939x-usbss: Update leakage canceller coefficient" 2023-05-25 19:47:15 -07:00
qctecmdr
f0e44757f5 Merge "soc: qcom: tmecom: Add tmelog interface" 2023-05-25 15:49:15 -07:00
qctecmdr
ff238f1d3c Merge "wcd939x-usbss: add HS detection support for EURO type" 2023-05-24 19:58:46 -07:00
Jaskaran Singh
40e37b95eb soc: qcom: minidump_memory: Use stack depot with proper config
The slabowner dump is extracted via stack depot APIs now. We are
currently executing this extraction code under CONFIG_STACKTRACE. Change
this to CONFIG_STACKDEPOT for correctness.

Change-Id: I4b43b09b94f8216ec6e9afd18e762c2d417b5bd5
Signed-off-by: Jaskaran Singh <quic_jasksing@quicinc.com>
2023-05-24 15:00:51 +05:30
Nisarg Bhavsar
6738e93c20 wcd939x-usbss: Update leakage canceller coefficient
Update leakage coefficient for DP AUX use cases.

Change-Id: Iba209a405959cb62787056eb6a28d89345f81111
Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
2023-05-23 15:37:39 -07:00
Huang Yiwei
a7ebc1b503 soc: qcom: boot_log: Reserve boot_log_buf for parse usage
Since parsers are using boot_log_buf to get the boot_log memory,
make a copy of boot_log_buf to indicate the current logging
position.

Change-Id: I5a41828543e3c5b666df81339a1da5bfecf0de91
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2023-05-23 08:47:07 +08:00
Kuldeep Singh
16059fbbe8 soc: qcom: tmecom: Add tmelog interface
Implement TmeLog interface which will fetch TME diag data with the help
of tmecom interface and store data in provided buffer.

Expose tmelog_process_request API to be used by users to display log
data.

Change-Id: I0a87acc5344a423e7d11f91422d0837a1f2a60b8
Signed-off-by: Kuldeep Singh <quic_kuldsing@quicinc.com>
2023-05-22 12:10:31 +05:30
Song Xue
c78289c8b3 qcom: socinfo: Add Blair id to the list
Add Blair id for SOC ID in name mapping list.

Change-Id: I76a563a5385e6cf0b1fd112775ecc21869237cc5
Signed-off-by: Song Xue <quic_songxue@quicinc.com>
2023-05-17 20:01:57 -07:00
Prasad Kumpatla
515c7bd4fe wcd939x-usbss: add HS detection support for EURO type
Add HS detection support for EURO type for GND-MIC
swap configuration.

Change-Id: I90cf3600262c63fc8b865cf86249eadef85ce8bf
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-05-17 10:37:14 -07:00
qctecmdr
2ccdb06fd1 Merge "drivers: soc: qcom: Consolidated scmi protocol for plh" 2023-05-17 08:28:04 -07:00
qctecmdr
e507396b06 Merge "soc: qcom: pmic-glink-debug: Fix initialization in i2c_glink_xfer()" 2023-05-17 06:10:27 -07:00
Subbaraman Narayanamurthy
93d52d6c43 soc: qcom: pmic-glink-debug: Fix initialization in i2c_glink_xfer()
Currently, i2c_gctrl is de-referenced during initialization to
access the member gd and its sanity is checked later. Fix it.

Change-Id: I6dcd61c7f08c8a1fdc14c72661433a88d673e373
Signed-off-by: Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>
2023-05-16 17:54:47 -07:00
qctecmdr
1554daf9a3 Merge "qcom: llcc_perfmon: Add support to update DUMP_CFG register" 2023-05-16 14:48:48 -07:00
qctecmdr
646a8a0b11 Merge "msm_perf: Update the policy for each cpu of a cluster" 2023-05-16 14:48:47 -07:00
Aman Kanwar
f497e73853 qcom: llcc_perfmon: Add support to update DUMP_CFG register
Update PERFMON_NUM_CNTRS_DUMP_CFG register with total number of
configured counters to support packet based dump.

Change-Id: I0a85745f24d89816a6527e7a00ec1a75c60e0b84
Signed-off-by: Aman Kanwar <quic_akanwar@quicinc.com>
2023-05-15 15:14:42 +05:30
simran jaiswal
cead3f853e drivers: soc: qcom: Consolidated scmi protocol for plh
Add support for using the consolidated qcom vendor protocol
for plh while still maintaining backwards support for
legacy scmi vendor protocol.

Change-Id: I3d102a2046460e6370432641dc26751e1a898bd2
Signed-off-by: simran jaiswal <quic_simranja@quicinc.com>
2023-05-14 23:50:40 -07:00
qctecmdr
2d0516e771 Merge "soc: qcom: Add subpart Info APIs & sysfs interfaces" 2023-05-12 15:36:23 -07:00
qctecmdr
95e6f66add Merge "soc: qcom: Enable qcom aop set ddr driver" 2023-05-11 09:35:59 -07:00
Naman Jain
e93ca99c4a soc: qcom: Add subpart Info APIs & sysfs interfaces
Add subpart Info APIs & sysfs interfaces. This commit includes
following  commits from msm-5.15.
  1. f30df4fa1d89ece6140edacc1bd09be950af9b9b
  2. 8e4dde4bd71fbf2e9c214d887f9f2f4056b8d44f
  3. cdffc9d921e4ca3af54d85b8321c1669a4499c97
  4. 24718b30c67878097b5b65f44a1cee23a2d8dc4d
  5. f85c4aec4d64a59a6ef07ae2e863aa8a859f0cc3
  6. eb89168fba8f61cea7266606eb76bcc35f7219f5
  7. a773e7f6d9c302658f5e0ce3ca8873bb2c165e86

Change-Id: Ia99bcab841e7fa7a62d7624686c0c7e31f939ce2
Signed-off-by: Naina Mehta <quic_nainmeht@quicinc.com>
Signed-off-by: Auditya Bhattaram <quic_audityab@quicinc.com>
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
2023-05-11 13:50:39 +05:30
qctecmdr
0b1bcd1e28 Merge "soc: qcom: geni-se: Change qcom-geni-se.h to linux/soc/qcom/geni-se.h" 2023-05-09 09:22:16 -07:00
qctecmdr
3afa411e2d Merge "drivers: qcom: dcvs: Add old 2022 copyright year" 2023-05-08 14:43:11 -07:00
qctecmdr
cee1309720 Merge "soc: qcom: llcc: Update config data for Pineapple SoC" 2023-05-08 14:43:11 -07:00
qctecmdr
3070f95743 Merge "soc: qcom: hgsl: Enable hgsl driver" 2023-05-08 14:43:10 -07:00
qctecmdr
c353179cf3 Merge "wcd939x-usbss: Add APIs for codec-ss" 2023-05-08 12:16:41 -07:00
qctecmdr
d0a70e8807 Merge "defconfig: pineapple: CONFIG_QCOM_BALANCE_ANON_FILE_RECLAIM" 2023-05-08 09:34:48 -07:00
Darshankumar Jagdishchandra Thakkar
30e6bc748b soc: qcom: Enable qcom aop set ddr driver
Snapshot for aop set ddr from msm-5.15 branch
commit 2c9ecd47909e ("drivers: dcvs: bwmon: Disallow module unloading").

Change-Id: I9e47e0633590e85455898f87b5769767c1be3dbb
Signed-off-by: Darshankumar Jagdishchandra Thakkar <quic_djagdish@quicinc.com>
2023-05-05 11:16:16 +05:30
Shivnandan Kumar
27df1517bd drivers: qcom: dcvs: Add old 2022 copyright year
Old 2022 copyright years was removed in my previous patch.
So, adding 2022 copyright year in this patch.

Change-Id: Ie8c2dc2e173350087bfa1db49aa5ede59f4b38ee
Signed-off-by: Shivnandan Kumar <quic_kshivnan@quicinc.com>
2023-05-05 06:41:22 +05:30
Guru Das Srinagesh
deeeafdb98 soc: qcom: llcc: Update config data for Pineapple SoC
Update pineapple config data to match HW changes.

Change-Id: I675414fac3656a37ae4d5cb7f31547891b82b3e6
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2023-05-04 09:45:07 -07:00
Jeyaprabu J
afcb3a7009 soc: qcom: hgsl: snapshot of hgsl driver
Add hgsl driver snapshot from msm-5.15 branch at
commit f15d26e64eb6 ("Revert "soc: qcom: hgsl: Add
door bell context queue support"").

The dma_buf_map structure name was changed to iosys_map
and dma_buf_map_set_vaddr API was renamed to iosys_map_set_vaddr.

Change-Id: Ic4eb0cfb92487798dc7d632262d13e8a9634540a
Signed-off-by: Jeyaprabu J <quic_jeyaprab@quicinc.com>
2023-05-04 21:39:29 +05:30
qctecmdr
57baf100c3 Merge "soc: qcom: Add Upperbounds check for program header" 2023-05-03 16:33:33 -07:00
qctecmdr
9b4691c7ee Merge "qcom: llcc_perfmon: Add mask correction for BEAC event removal" 2023-05-03 16:33:32 -07:00
Chris Goldsworthy
4882fafe9a soc: qcom: mem-hooks: Add Kconfig for balance anon reclaim feature
Add a Kconfig entry for CONFIG_QCOM_BALANCE_ANON_FILE_RECLAIM.

Change-Id: I0ce67baaaaa1f243f1f66277bb15a9d1d630f25b
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2023-05-03 14:32:35 -07:00
Auditya Bhattaram
9d96c8b4e6 soc: qcom: Add Upperbounds check for program header
e_phnum represent the number of entries in the program header table.
So add Upperbounds check for program header and return invalid if the
number of program headers is greater than PN_XNUM (0xffff).

Change-Id: I63927e2e88a57a567a52b4eb377abe94ad3713b8
Signed-off-by: Auditya Bhattaram <quic_audityab@quicinc.com>
2023-05-03 12:36:20 +05:30
Aman Kanwar
4e27fba5dc qcom: llcc_perfmon: Add mask correction for BEAC event removal
Restructed code for BEAC event configuration to comply with removal
functionality using REMOVE string.

Change-Id: I915dc955f85d2ba301cdae9ae733937deddae53d
Signed-off-by: Aman Kanwar <quic_akanwar@quicinc.com>
2023-05-03 11:47:03 +05:30
Aman Kanwar
90a563c4f7 qcom: llcc_perfmon: Remove dependency to reserve cycle counter
Add support to use last counter for profiling as well. Cycle counter
will only be used if configured counters are less than the available
counters.

Change-Id: Ia84e8d59d8f76ea751f45b57c34b643c6d5a899b
Signed-off-by: Aman Kanwar <quic_akanwar@quicinc.com>
2023-05-03 11:38:11 +05:30
qctecmdr
03866a9d88 Merge "drivers: qcom: dcvs: Make ops NULL on error" 2023-05-02 21:08:51 -07:00
qctecmdr
169591de90 Merge "drivers: dcvs: dcvs_icc: use icc tags from icc header" 2023-05-02 21:08:50 -07:00
Sam Rainey
008a0d9bd5 wcd939x-usbss: Add APIs for codec-ss
Add an API for obtaining cable orientation, an API for setting switch
enables, and linearizer APIs.

Change-Id: I485acd7438111837930df8a4b2b0cdf55298c7b0
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2023-05-02 12:08:25 -07:00
qctecmdr
aba9ba6c41 Merge "wcd939x-i2c: update default trim values for USBSS" 2023-05-01 14:01:27 -07:00
Amir Vajid
a7521d6839 drivers: dcvs: dcvs_icc: use icc tags from icc header
The active only had perf mode icc tags are hardcoded in
dcvs_icc today. Use the tags defined in the dt bindings
icc header file instead to stay aligned as these
definitions change.

Change-Id: Icff081d5bc33d3dc6c6e515227e5d031ea4e8288
Signed-off-by: Amir Vajid <quic_avajid@quicinc.com>
2023-05-01 12:58:55 -07:00
Bruce Levy
84a14b5670 Revert "qcom: socinfo: Code cleanup to remove unused features"
This reverts commit 1c2037c5c9.

Reverting as there were regressions seen in vendor builds.

Change-Id: I7d25eda8f55fd0c9304f6ec09055d328e78f80cc
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2023-05-01 11:40:21 -07:00
qctecmdr
4ad0d7fd34 Merge "wcd939x-usbss: Update wcd-usb switches only when cabletype not decided" 2023-04-30 21:18:09 -07:00
qctecmdr
056a26d30b Merge "secure_buffer: Change CONFIG_HYP_ASSIGN_DEBUG checks" 2023-04-30 21:18:08 -07:00
qctecmdr
4bd5fe60c8 Merge "dma-heaps: initialize the pool_sem rwsemaphore before using" 2023-04-29 11:14:16 -07:00
Chris Goldsworthy
b4d3341295 secure_buffer: Change CONFIG_HYP_ASSIGN_DEBUG checks
Use IS_ENABLED() for checking to see if CONFIG_HYP_ASSIGN_DEBUG
instead of using #ifdef CONFIG_HYP_ASSIGN_DEBUG .

Change-Id: I92bdb01911c837a80c6fddab1c930ef09930947d
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2023-04-28 13:26:17 -07:00
Srinivasarao Pathipati
e29b6c2e56 secure_buffer: add null check
alloc_debug_tracking() can return null so add check to avoid
null dereference.

Change-Id: I7cc6c8b6ed3271fabd9c65c5a062031a4fcf64a0
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
2023-04-28 13:26:17 -07:00