Commit graph

893,362 commits

Author SHA1 Message Date
Raghavendra Kakarla
e90ef046a6 drivers: rpmsg: rpm-smd: define readq_relaxed for ARM variants
ARM cannot natively read 64-bit address. As such the readq_ variants
are not defined for this architecture. Add a 32-bit equivalent to read 2
sequential 4-byte memory into a u64 value. Let's keep them locally
defined for now, since they are not native to the ARM architecture.

Change-Id: I9d00d0a9cd185e658d7b860cac2f59c8438e1b30
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-11-17 23:28:21 +05:30
Pooja Kumari
63b2502945 msm: ipa3: Define ipa_get_wdi_version method
Define ipa_get_wdi_version method in framework
context to get wdi version.

Change-Id: I4ba2a340bfa33eb089da40f1b7460d3395c365f4
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
2020-11-17 09:01:14 -08:00
Jagadeesh Kona
893c1f5b78 clk: qcom: clk-debug: Add support for debug clock API's
Add support for qcom_clk_dump and qcom_clk_bulk_dump API's
which can be used by the clients to dump the registers
associated with the clock and it's parents.

Change-Id: Iea7f30bb4e789e41dbae41b88514ffd53c136174
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-11-17 08:48:25 -08:00
Rohan Sethi
48915f6884 msm: kgsl: Disable gpu_llc flags by default
Fixes inconsistency in previous change.

Change-Id: I793532e648a8c6f5db5f3bf899d56b3517e55897
Fixes: 4cc9960429 ("msm: kgsl: Disable gpu_llc flags by default")
Signed-off-by: Rohan Sethi <rohsethi@codeaurora.org>
2020-11-17 22:18:21 +05:30
qctecmdr
e915fc5948 Merge "msm: kgsl: Add a Kconfig setting for GPU idle timeout" 2020-11-17 05:57:29 -08:00
qctecmdr
c496ba6c04 Merge "arm: defconfig: Enable QRTR MHI for sdxlemur" 2020-11-17 05:57:29 -08:00
qctecmdr
fee2b06454 Merge "icc: dt-bindings: add endpoint IDs for interconnects for SM8150" 2020-11-17 05:57:29 -08:00
qctecmdr
704966b60e Merge "cnss2: Avoid suspending PCIe after QMI send get is called" 2020-11-17 05:57:29 -08:00
qctecmdr
e2f18ef14c Merge "defconfig: Enable relay fs for lahaina" 2020-11-17 05:57:28 -08:00
qctecmdr
75d5a41f25 Merge "usb: misc: nb7vpq904m: disable chip when boot up without cable" 2020-11-17 05:57:28 -08:00
qctecmdr
8c62bda756 Merge "msm: pcie: correct PCIe target link speed mask macro" 2020-11-17 05:57:28 -08:00
qctecmdr
bba465d5c1 Merge "Add support for EMMC storage type" 2020-11-17 05:57:27 -08:00
Armaan Siddiqui
4b7889dc0a msm: ipa4: mhi qmap flow control pipe definitions for LE
New dedicated pipe definition for LE MHI use cases.

Change-Id: I7426de281a172fac221605c7344d8f6c6e6c107d
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
2020-11-17 19:21:39 +05:30
Nagireddy Annem
81a420d390 pinctrl: qcom: Add support for Monaco SoC pin control
Add support for monaco pin configuration and control
via pinctrl framework.

Change-Id: I88b348eb4018d57484c2f8d154aeb3090b2b1a75
Signed-off-by: Nagireddy Annem <nannem@codeaurora.org>
2020-11-17 03:27:41 -08:00
Taniya Das
6949a466ba clk: qcom: Add WARN_CLK support for PLL, RCG and Branch clocks
Add support for WARN_CLK to dump the clock registers and
calltrace in case of failure in the kernel message.

Change-Id: If7452aaa02cc50deafd6f3721921f66cad9ab932
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-11-17 15:22:59 +05:30
Indira Biruduraju
fca32c53c2 msm: kgsl: Add addr_mode_cntl registers for legacy snapshot for holi gpu
Add ADDR_MODE_CNTL registers for HLSQ, SP, TPL1 for legacy snapshot for
holi gpu to dump registers from the host driven path. This will help to
read value of addr_mode_cntl for these blocks when crash dumper is not
used or it is timed out.

Change-Id: Id1898883aa59c97ed61e616b5a4a2e744c35292b
Signed-off-by: Indira Biruduraju <ibirudur@codeaurora.org>
2020-11-17 15:15:34 +05:30
Vipin Deep Kaur
0070266e70 spi: spi-msm-geni: Clear the RX fifo if FIFO has data after timeout
Propagate a change from 4.19 to 5.4 for SPI. 'commit 556e7c13ceaa
("spi: spi-msm-geni: Clear the RX fifo if FIFO has data after timeout")'.

Change-Id: Ica785f7b3cd3a9f9df6d173413ce136c2a018312
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
2020-11-17 14:11:03 +05:30
Vivek Pernamitta
9c31f04cf2 pci: msm: Dump PCIe registers to debug linkdown
Support to dump PARF,PHY,DBI/dm_core registers
for PCIe linkdown.

Change-Id: I54a19245e91e68f0d58f230509e6cb1a2ff02665
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
2020-11-17 12:37:22 +05:30
Shaik Sajida Bhanu
832d9eaf5b mmc: core: Add debug enhancement logs
Add debug enhancement logs to notify request timeout, when cqe is
turned off and when deferred scaling happens.

Change-Id: Ib499f41632427cba3ab0b67e04d605b6cf4419f5
Signed-off-by: Shaik Sajida Bhanu <sbhanu@codeaurora.org>
2020-11-17 11:25:16 +05:30
Vijayanand Jitta
cae595f476 ion: Check for valid vmids for msm system heap
Add a check for valid vmids before doing an allocation
for msm system heap. This check does a hyp_assign on a
page, stores the vmids and mark them as valid or invalid
based on hyp_assign result. If vmid is invalid it returns
or if its valid then proceeds with the allocation. So, this
prevents ion pages leak in cases where hyp_assign fails.
Also add a check for ion_hyp_assign_sg return value to
prevent leak.

Change-Id: Ibbc150490daf69d27b36db0e45a3c58496e6b9bd
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-11-17 09:35:35 +05:30
qctecmdr
5f551b3328 Merge "Kconfig: have ENABLE_VMALLOC_SAVING depend on QGKI" 2020-11-16 19:15:08 -08:00
qctecmdr
4104c0f498 Merge "input: touchscreen: focaltech: toggle reset gpio during error" 2020-11-16 19:15:08 -08:00
qctecmdr
8b249d7cb9 Merge "Merge android11-5.4.61+ (dc2d5a0) into msm-5.4" 2020-11-16 19:15:08 -08:00
Kishore Sri venkata Ganesh Bolisetty
206e048a12 soc: qcom: msm_perf: enable msm_perf driver on default config
carve out frequency boost functionality of msm_perf driver
and enable it on non perf images too.

Change-Id: I2a0af988edf04a88d2fc16018f50830a0ab73220
Signed-off-by: Kishore Sri venkata Ganesh Bolisetty <bsrivenk@codeaurora.org>
2020-11-16 14:35:54 -08:00
Isaac J. Manjarres
5d5e0ccd89 iommu/dma: Fix cache maintenance in iommu_dma_map_sg()
iommu_dma_map_sg() attempts to perform cache maintenance with
iommu_dma_sync_sg_for_device() prior to mapping the scatter gather
list to an IOVA. iommu_dma_sync_sg_for_device() uses the DMA address
in the scatter gather list structure to determine if the buffer is
mapped as cached or uncached by invoking iommu_is_iova_coherent().

Since the buffer has not been mapped yet, the DMA address in the scatter
gather list structure will be 0. If IOVA 0 is not mapped in the client's
IOMMU page tables, then iommu_is_iova_coherent() will return false,
and cache maintenance will be performed on the buffer, even for clients
that are io-coherent, which is not correct, as no cache maintenance is
required for io-coherent clients.

Ensure cache maintenance happens only after the buffer has been mapped,
so that iommu_dma_sync_sg_for_device() can correctly determine if
cache maintenance is required.

Change-Id: Ie1cec69077eaeada00b5a2709b6d1680afdaaeba
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-11-16 10:14:13 -08:00
Guru Das Srinagesh
6c3524dd68 defconfig: sdxlemur: Allow writing to regmap only on debug builds
For security reasons, allow modifying register values via the regmap
debugfs interface only on debug builds.

Change-Id: Ie22dbb2ff72da2072d46ab1116fb9623fe2185ff
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-11-16 09:07:35 -08:00
Vatsal Bucha
1ca159a38c fsa4480: Resolve euro usb analog headset detect issue after PDR
Euro headset is sometimes detected as headphone post PDR.
This is due to race condition between powering up of PGA
and cross connection detection due to which cross conn
detection is not successful resulting in usb analog headset
being detected as headphone post PDR. Save switch_control
value before PDR and apply same value during fsa reg notifier
after PDR so that euro side does not detect as cross conn
post PDR to resolve issue.

Change-Id: I4af17d83a8e4a55185421b370162d8e7a5d5b91f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-11-16 02:08:00 -08:00
Zhiqiang Tu
7982ae0c2c ANDROID: ABI: Update allowed list for QCOM
Leaf changes summary: 0 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

Bug: 173134053
Change-Id: I7f419c3180f2a45ae628e4a600eb6a45ca12a7e9
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2020-11-16 17:34:58 +08:00
Veera Vegivada
48bfd0d68c icc: dt-bindings: add endpoint IDs for interconnects for SM8150
Add master and slave ID constants for all Qualcomm Technologies, Inc.
SM8150 interconnect providers which consumers can use to set bandwidth
constraints and find paths in the NoC (Network-On-Chip) topology.

Change-Id: Ie3d92159bf34e2cd57873cd3cd85c75e6a62638a
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-11-16 11:45:30 +05:30
Anmolpreet Kaur
bbe813c8f7 tzlog: Update structs as per the new requests
Update structs as per the new requests.

Change-Id: Idea5ebdf6c558b4a2e26031334f47eb7914a0615
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
2020-11-16 11:41:54 +05:30
Vamsi Krishna
5301754193 cfg80211: Add support to calculate and report 4096-QAM HE rates
Drivers supporting 4096-QAM rates as a vendor extension in HE mode need
to update the correct rate info to userspace while using 4096-QAM (MCS12
and MCS13) in HE mode. Add support to calculate bitrates of HE-MCS12 and
HE-MCS13 which represent the 4096-QAM modulation schemes. The MCS12 and
MCS13 bitrates are defined in IEEE P802.11be/D0.1.

In addition, scale up the bitrates by 3*2048 in order to accommodate
calculations for the new MCS12 and MCS13 rates without losing fraction
values.

CRs-Fixed: 2796770
Signed-off-by: Vamsi Krishna <vamsin@codeaurora.org>
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Link: https://lore.kernel.org/r/20201029183457.7005-1-jouni@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: 9c97c88d2f4b221d99491c3196da42004c195fb5
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
Change-Id: I44f71f40a57b57703bbbe138e690d6f92369d0ec
Signed-off-by: Vamsi Krishna <vamsin@codeaurora.org>
2020-11-16 11:08:52 +05:30
qctecmdr
58329ca148 Merge "clk: qcom: Add the debug mux information for SM8150" 2020-11-15 17:44:56 -08:00
qctecmdr
b8bfad925d Merge "exfat: add super block operations" 2020-11-15 08:04:36 -08:00
qctecmdr
5869c90e4f Merge "soc: qcom: qmi_interface: Parse all control packets" 2020-11-15 08:04:35 -08:00
qctecmdr
3de3dfe933 Merge "net: neuron: channel: Check buffer boundaries" 2020-11-15 08:04:35 -08:00
qctecmdr
174db10e47 Merge "arm: qcom: Add initial platform for Monaco and Scuba" 2020-11-15 04:36:26 -08:00
qctecmdr
5ca720a4d8 Merge "power: supply: qcom: Add module dependency on TYPEC" 2020-11-15 04:36:25 -08:00
qctecmdr
aad412cb4f Merge "soc: qcom: minidump: Change the way to locate log_buf" 2020-11-15 04:36:25 -08:00
qctecmdr
1843c1a799 Merge "staging: exfat: remove staging version of exfat filesystem" 2020-11-15 04:36:25 -08:00
qctecmdr
f94ed13be9 Merge "exfat: add in-memory and on-disk structures and headers" 2020-11-15 04:36:25 -08:00
qctecmdr
7f23279eb1 Merge "dt-bindings: iio: Add scale function for PM2250 S3 die temp" 2020-11-15 01:08:07 -08:00
qctecmdr
8ff49d4085 Merge "defconfig: Enable required defconfigs for sdxlemur target" 2020-11-15 01:08:06 -08:00
qctecmdr
1bee375fee Merge "clk: qcom: lahaina: Fix providers left active in suspend" 2020-11-15 01:08:06 -08:00
qctecmdr
a4b6932845 Merge "input: touchscreen: st: cancel pending firmware update" 2020-11-15 01:08:05 -08:00
qctecmdr
d35e872fd1 Merge "clk: qcom: alpha-pll: Export required symbols from alpla-pll" 2020-11-14 21:07:20 -08:00
qctecmdr
b7a4fe5073 Merge "pci: msm: Move rpmsg lock after command completion" 2020-11-14 17:35:49 -08:00
qctecmdr
723156f03e Merge "mhi: uci: Add channel mutex lock for read and write file ops" 2020-11-14 17:35:48 -08:00
qctecmdr
04dd99b363 Merge "icnss2: Avoid sending modem shutdown indication to fw if it is down" 2020-11-14 17:35:48 -08:00
qctecmdr
17b81f1df7 Merge "msm: pcie: switch API for tuning EQ preset request vector configuration" 2020-11-14 17:35:47 -08:00
qctecmdr
da9ad9f15c Merge "msm: ipa_fwmk: Provide api for mhi driver to update state" 2020-11-14 17:35:46 -08:00