Commit graph

892,818 commits

Author SHA1 Message Date
qctecmdr
b4fabbc028 Merge "interconnect: qcom: Enable real interconnect provider for Yupik" 2020-12-15 09:11:52 -08:00
qctecmdr
9adb2b478a Merge "usb: dwc3-msm: Disable PHY wakeup IRQs on hibernation" 2020-12-15 09:11:52 -08:00
qctecmdr
f40457bbdb Merge "iio: adc: qcom-spmi-adc5: add an unique irq name" 2020-12-15 09:11:52 -08:00
qctecmdr
7827a27eea Merge "drivers: llcc: Add LLCC driver for Yupik" 2020-12-15 09:11:52 -08:00
qctecmdr
5175b74fb7 Merge "Revert "netfilter: Unlock xt_table later"" 2020-12-15 01:48:36 -08:00
qctecmdr
45140c666f Merge "firmware: arm_scmi: increase the response timeout" 2020-12-15 01:48:35 -08:00
qctecmdr
da14ef15e2 Merge "defconfig: Enable tzlog driver on sdxlemur" 2020-12-15 01:48:35 -08:00
qctecmdr
29142a00dd Merge "msm: cvp: Fix CVP BW overvoting issue" 2020-12-15 01:48:35 -08:00
qctecmdr
96bb195660 Merge "mm/ksm: Remove reuse_ksm_page()" 2020-12-15 01:48:34 -08:00
qctecmdr
4e8886ba0b Merge "Revert "topology: Add snapshot of possible sibling cpu mask changes"" 2020-12-15 01:48:34 -08:00
qctecmdr
5984d1cd28 Merge "defconfig: Enable gcc/rpm-smd/debugCC clock drivers for sdxnightjar" 2020-12-15 01:48:34 -08:00
qctecmdr
93b3ef7d0e Merge "coresight: csr: update timestamp related registers offset" 2020-12-15 01:48:34 -08:00
qctecmdr
a15fa3b052 Merge "dt-bindings: clock: Add support for clock ids for SDXNIGHTJAR" 2020-12-15 01:48:33 -08:00
Santosh Mardi
79d123c5eb firmware: arm_scmi: increase the response timeout
For synchronous messages sent from the agent to platform,
agent waits for response for 30 milli seconds (max_rx_timeout)
before timing out if response gets delayed from platform.

Increase the timeout value to 1 second to minimize message
send failures in case of delays.

Change-Id: I72e9ab33a9be675b64301e904e8d43fb8bb89e50
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2020-12-14 17:15:41 -08:00
Ajay Agarwal
f74b9dbcf4 usb: dwc3-msm: Disable PHY wakeup IRQs on hibernation
There might be spurious HS PHY IRQ after USB bus has gone into
hibernation which leads to dwc3_msm_resume and in_lpm flag
getting cleared. Next when the restore from hibernation happens,
dwc3_msm_resume becomes a no-op but in reality, the HW resources
are all turned off. This leads to an unclocked access from
xhci_resume.
Fix this by disabling PHY wakeup IRQs on hibernation/pm_suspend
for automotive targets.

Change-Id: I753fb3593fca31f12406b9126f73f75520dab1b0
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2020-12-11 10:28:23 -08:00
Odelu Kukatla
56a31c4cad interconnect: qcom: Enable real interconnect provider for Yupik
Introduce Qualcomm Yupik specific real provider driver using the
interconnect framework. Also add sync_state for interconenct
provider driver.

Change-Id: Ifd61a5d1d8eb1fb532b865d128b14ae673a1acdf
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-12-11 04:42:17 -08:00
Lingutla Chandrasekhar
c4e372d1f3 Revert "topology: Add snapshot of possible sibling cpu mask changes"
Cpu possible sibling cpu mask is only used by WALT for its cluster
population. And WALT is directly getting the cpu possible sibling mask.

So remove this unused cpu mask support by reverting commit:
'6df025a02c49f65("topology: Add snapshot of possible sibling
cpu mask changes")'.

Change-Id: If65842a37cad95e8b52425a1397d12c32a95dc1e
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2020-12-10 19:22:29 -08:00
qctecmdr
aa860b5b17 Merge "usb: f_gsi: Send zero length packet for MBIM/GPS on cable connect" 2020-12-10 16:11:03 -08:00
qctecmdr
fdf6a38b66 Merge "msm: kgsl: Properly walk the list of timeline signals in a aux command" 2020-12-10 16:11:03 -08:00
Jordan Crouse
a8e0225571 msm: kgsl: Properly walk the list of timeline signals in a aux command
Commit 36b196ce5c ("msm: kgsl: Add software timelines") didn't properly
advance the user source pointer while walking the incoming list of timeline
signals in an aux commmand which resulted in only the first listed timeline
getting signaled.

Fixes: 36b196ce5c ("msm: kgsl: Add software timelines")
Change-Id: Ic0dedbad400f276abea6b368421ccdcef1645b9e
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-12-10 14:06:05 -07:00
qctecmdr
46105a7401 Merge "mtd: msm_qpic_nand: Workaround to get the correct density for JSC part" 2020-12-10 11:38:52 -08:00
qctecmdr
016be0999a Merge "Revert "scsi: ufs: Increase ah8 idle to 10ms"" 2020-12-10 11:38:51 -08:00
qctecmdr
f7390a26b1 Merge "defconfig: Enable new file encryption framework" 2020-12-10 11:38:51 -08:00
qctecmdr
3d160e50f2 Merge "iommu: arm-smmu: skip tlb flush during unmap" 2020-12-10 11:38:51 -08:00
qctecmdr
3848433c36 Merge "phy: ufs: add UFS PHY support for SM8150 platform" 2020-12-10 11:38:51 -08:00
qctecmdr
96d15d544e Merge "netfilter: x_tables: Switch synchronization to RCU" 2020-12-10 11:38:50 -08:00
qctecmdr
f16a9db54f Merge "iommu/arm-smmu: Update the implementation defined page number macros" 2020-12-10 11:38:50 -08:00
qctecmdr
1297536962 Merge "usb: dwc3: core: Destroy ipc log context on remove" 2020-12-10 06:46:25 -08:00
qctecmdr
324146f8ba Merge "mm/madvise: remove racy mm ownership check" 2020-12-10 06:46:25 -08:00
qctecmdr
4f0abb7427 Merge "dm verity: skip verity work on I/O errors when system is shutting down" 2020-12-10 06:46:25 -08:00
qctecmdr
7c3f466a36 Merge "input: qcom-hv-haptics: fix out of bound of FIFO samples array" 2020-12-10 06:46:24 -08:00
qctecmdr
37093a2edd Merge "firmware: qcom: tzbsp_diag info not required for qsee_log" 2020-12-10 06:46:24 -08:00
qctecmdr
c81a2b0920 Merge "arm64: defconfig: Enable CRYPTO_SHA1_ARM64_CE algorithm" 2020-12-10 06:46:23 -08:00
qctecmdr
3e35a068a5 Merge "msm: pcie: Disable access to PARF register when link is disabled" 2020-12-10 06:46:23 -08:00
qctecmdr
f274bc425e Merge "defconfig: msm-5.4: Adding sfe support to sdxlemur target" 2020-12-10 06:46:23 -08:00
qctecmdr
609dff6223 Merge "defconfig: Enable new file encryption framework" 2020-12-10 06:46:22 -08:00
qctecmdr
32473be6ee Merge "mmc: core: Add partial initialization support" 2020-12-10 06:46:22 -08:00
qctecmdr
2ae503d752 Merge "defconfig: Enable Novatek NT36xxx Touch for yupik target" 2020-12-10 06:46:21 -08:00
Phanindra Babu Pabba
25117d2ee0 defconfig: Enable new file encryption framework
Following flags are needed to support block crypto
based inline encryption framework on eMMC devices:

1. CONFIG_MMC_CQHCI_CRYPTO
2. CONFIG_MMC_CQHCI_CRYPTO_QTI.

Change-Id: Ic87330eaa1e95d7347a13d631bb5c0c734b92d2c
Signed-off-by: Phanindra Babu Pabba <pabba@codeaurora.org>
2020-12-10 16:19:20 +05:30
Nitin Rawat
b16f5839ec Revert "scsi: ufs: Increase ah8 idle to 10ms"
There is some power impact seen with autohibern8 idle
timer value of 10ms. Hence reverting back the autohiber8 timer
value back to 5ms.

This reverts commit ef3f24dd1c.

Change-Id: Ic2f97e6f53e1711a869c9617e15c06e53d1e2e33
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
2020-12-10 15:19:00 +05:30
Rakesh Kota
6ecc69fb75 defconfig: Enable gcc/rpm-smd/debugCC clock drivers for sdxnightjar
Enable gcc/rpm-smd/debugcc clock drivers to support clock peripherals.

Change-Id: I64c82e468a5874ac8a97dc2558746fa2d21fb969
Signed-off-by: Rakesh Kota <kotarake@codeaurora.org>
2020-12-10 12:31:34 +05:30
George Shen
7fe0e8dda6 msm: cvp: Fix CVP BW overvoting issue
Reduce min BW vote to 65MB instead of 655MB.

Change-Id: I0bfb0262824d245756fcb70d41cc589b595d27ff
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-12-09 20:23:51 -08:00
qctecmdr
b54ec6fdfe Merge "defconfig: clean up debug config fragment for SDXLEMUR" 2020-12-09 19:47:45 -08:00
qctecmdr
712f68c376 Merge "sound: usb: Unmap secondary event ring before freeing" 2020-12-09 19:47:45 -08:00
qctecmdr
ac19da4fa6 Merge "iommu/arm-smmu: Fix io-coherency enablement for clients using S1 bypass" 2020-12-09 19:47:44 -08:00
qctecmdr
c4c415a165 Merge "msm: ipa: store eth_ready_info pointer" 2020-12-09 19:47:44 -08:00
Veera Vegivada
256d3f69e1 phy: ufs: add UFS PHY support for SM8150 platform
Add support for new UFS PHY on SM8150 platform.

Change-Id: I8d28e798c080706280e0b55bcf474c3422985d2a
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-12-10 08:28:28 +05:30
Prakash Gupta
c765bad7cc iommu: arm-smmu: skip tlb flush during unmap
With fragmented physical memory, mappings are generated of lower granule.
This increases the unmap latency of large buffers.  When not supporting
demand paging in smmu, unmap can defer the invalidation till next map.
This change aggregates invalidations across multiple unmaps till a new
mapping is created on that context. The new mapping can be using an iova
previously unmapped hence the stale TLB can cause issue. Hence invalidate
the TLB during map.

Change-Id: I1d64227ca075067a43075729ba26be684126d679
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2020-12-10 01:05:08 +05:30
Isaac J. Manjarres
76296974fd iommu/arm-smmu: Fix io-coherency enablement for clients using S1 bypass
When a context bank's SCTLR is programmed for an SMMU client
that wishes to bypass S1 translations and enable io-coherency, the
SHCFG bitfield of the SCTLR is set to 0. This means that a
client's transaction's shareability memory attribute will not be
modified as it goes through the SMMU.

This is problematic if the SMMU client's transaction is marked as
non-shareable, as the attribute will not be modified to be classified
as io-coherent, since io-coherent transactions should be cacheable
and shareable. Instead, the transaction will not snoop the CPU
caches, and will go to DDR, and may read incorrect data.

Thus, program the SHCFG bitfield in the context bank's SCTLR to
override the shareability attribute to outer shareable when
enabling io-coherency for clients using S1 bypass.

Change-Id: Ia4c1bbe7812ce7c2062c636e2b1bb39fa1ac516c
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-12-09 10:39:00 -08:00
Subash Abhinov Kasiviswanathan
de256ffb4a netfilter: x_tables: Switch synchronization to RCU
When running concurrent iptables rules replacement with data, the per CPU
sequence count is checked after the assignment of the new information.
The sequence count is used to synchronize with the packet path without the
use of any explicit locking. If there are any packets in the packet path
using the table information, the sequence count is incremented to an odd
value and is incremented to an even after the packet process completion.

The new table value assignment is followed by a write memory barrier so
every CPU should see the latest value. If the packet path has started with
the old table information, the sequence counter will be odd and the
iptables replacement will wait till the sequence count is even prior to
freeing the old table info.

However, this assumes that the new table information assignment and the
memory barrier is actually executed prior to the counter check in the
replacement thread. If CPU decides to execute the assignment later as there
is no user of the table information prior to the sequence check, the packet
path in another CPU may use the old table information. The replacement
thread would then free the table information under it leading to a use
after free in the packet processing context-

Unable to handle kernel NULL pointer dereference at virtual
address 000000000000008e
pc : ip6t_do_table+0x5d0/0x89c
lr : ip6t_do_table+0x5b8/0x89c
ip6t_do_table+0x5d0/0x89c
ip6table_filter_hook+0x24/0x30
nf_hook_slow+0x84/0x120
ip6_input+0x74/0xe0
ip6_rcv_finish+0x7c/0x128
ipv6_rcv+0xac/0xe4
__netif_receive_skb+0x84/0x17c
process_backlog+0x15c/0x1b8
napi_poll+0x88/0x284
net_rx_action+0xbc/0x23c
__do_softirq+0x20c/0x48c

This could be fixed by forcing instruction order after the new table
information assignment or by switching to RCU for the synchronization.

Change-Id: I41ffb931b711cd2de9896d9ca7f13dda79e6709f
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2020-12-09 10:18:47 -08:00