Commit graph

891,843 commits

Author SHA1 Message Date
Raghavendra Rao Ananta
f908c1019e soc: qcom: of_proxy_consumer: Add "qcom,jtagv8-mm"
Add "qcom,jtagv8-mm" to the list of proxy consumers, such that
the sync-state logic need not wait for the probe from the actual
driver if it's disabled.

Change-Id: I580a865ba3c4c298d76e29552eec854b33faea24
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-10-26 11:01:09 -07:00
qctecmdr
4b196d63cf Merge "Merge android11-5.4.61+ (8540985) into msm-5.4" 2020-10-26 07:17:41 -07:00
qctecmdr
a2e07b7fb8 Merge "msm: kgsl: Make clear_pending_transactions target specific" 2020-10-26 07:17:40 -07:00
qctecmdr
cf0ffb9c2c Merge "dma-mapping.h: Fix CRC mismatch issues from including genalloc.h" 2020-10-25 19:42:00 -07:00
qctecmdr
45fb30f007 Merge "input: qcom-hv-haptics: only use 4-byte writes when refilling FIFO" 2020-10-25 19:42:00 -07:00
qctecmdr
65e751ed01 Merge "mmc: host: Add variant ops for cqhci crypto" 2020-10-25 11:05:49 -07:00
qctecmdr
a5532e7931 Merge "defconfig: msm: Enable CONFIG_UFS_DBG for Holi debug builds" 2020-10-25 02:33:22 -07:00
qctecmdr
f09654a8fe Merge "mtd: msm_qpic_nand: Use logical unit count in flash density" 2020-10-25 02:33:22 -07:00
qctecmdr
b12359c3dc Merge "mmc: Kconfig: select DEVFREQ_GOV_SIMPLE_ONDEMAND with SDHCI_MSM" 2020-10-25 02:33:21 -07:00
qctecmdr
70c6b344c7 Merge "soc: spcom: fix race during channel character dev creation" 2020-10-25 02:33:21 -07:00
qctecmdr
4764cf6f6e Merge "cnss2: Check if firmware asserts before power off for CBC" 2020-10-25 02:33:21 -07:00
qctecmdr
82ef587103 Merge "iommu/arm-smmu: Leave power resources enabled across unmap and sync ops" 2020-10-25 02:33:21 -07:00
Veera Vegivada
e25f80b327 pinctrl: qcom: Expose ufs_reset as gpio on sa8195
The ufs_reset pin is expected to be wired to the reset pin of the
primary UFS memory but is pretty much just a general purpose output pin.
Reorder the pins and expose it as gpio 204, so that the UFS driver can
toggle it.

Change-Id: Ifd0b430a4c057a4fa5c4a57fb484c71df18d7f1d
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-10-24 17:35:27 +05:30
Saurabh Ambulkar
f4b1b0c872 pinctrl: qcom: Add initial pinctrl driver for sdmshrike
Add initial pinctrl driver to support pin configuration with
pinctrl framework for sdmshrike. This driver is a snapshot of
pinctrl-sdmshrike.c from msm-4.14 at commit id "54fbb7a2".

Change-Id: I8585c025cee91e5cce75598ed2e43cdc00bb769a
Signed-off-by: Saurabh Ambulkar <sambulka@codeaurora.org>
2020-10-24 17:34:52 +05:30
Vivek Kumar
0e8e0ee81e pinctrl: qcom: sm8150: Populate egpio variables in Pingroup
Populate egpio related variables in pingroup macro. This is
to make sure pincontrol-msm driver takes epgio bits into
account when it configures pinmux setting for any tlmm pin.

Change-Id: I828661fd2e05664b583dc40d3110096a95a489e8
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
2020-10-24 17:34:15 +05:30
Shreyas K K
898843087d arm64: Kconfig: Add config option for SA8195
Add option to enable the compilation for SA8195
platform.

Change-Id: I0866efa419c213d842448b35ee4a829785e7d954
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
2020-10-24 17:33:19 +05:30
Shreyas K K
30b16a09fa arm64: Kconfig: Add support for ARCH_SA8155
Add option "ARCH_SA8155" to enable compilation
for sa8155 target.

Change-Id: I55af2e604c946f8d0494ed6b9ad53aa42244b596
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
2020-10-24 17:32:24 +05:30
Konstantin Dorfman
e9db615eb4 soc: spcom: fix race during channel character dev creation
During char device creation, device counted by chdev_count and since
the device creation can happen from different contexts, need to guard the
flow.

This change introduces new lock for spcom_dev->chdev_count.

Change-Id: If59c3ae69d7366892583b2552cf276b6714eeb03
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2020-10-23 13:09:15 -07:00
Isaac J. Manjarres
2c793736ae iommu/arm-smmu: Leave power resources enabled across unmap and sync ops
The votes for power resources can only be removed if there are no
outstanding TLB invalidation operations. This is true when the
downstream io-pgtable-arm optimizations are in use, as the code that
unmaps the memory from the IOMMU page tables ensures that all TLB
operations are complete before returning.

However, the upstream io-pgtable-arm implementation allows for a TLB
invalidation to be in progress when control is returned back to
arm_smmu_unmap(), at which point the votes for the power resources
will be removed. In cases where the GPU is in slumber, the GPU block
and GPU SMMU get powered down when the SMMU driver removes its votes.
This causes problems where unmapping buffers takes a long time.

For scenarios where it is not feasible to guarantee that TLB
invalidations have completed when control is returned to the
arm_smmu_unmap() function, leave the votes for power resources in place,
and rely on the subsequent sync operation to remove the votes.

Change-Id: Idc594cc69860b44a8eb56c72b5c592bf4799bf84
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-10-23 11:43:56 -07:00
Veerabhadrarao Badiganti
50417ad061 defconfig: msm: Enable CONFIG_UFS_DBG for Holi debug builds
Enable CONFIG_UFS_DBG for Holi debug builds, so that UFS Ftrace
logs gets enabled in trace instances.

Change-Id: Id4171a386900931ae1c59853235a3fc2cbe3bc05
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2020-10-23 22:35:08 +05:30
Pradeep P V K
3fb0bdab95 mtd: msm_qpic_nand: Use logical unit count in flash density
In an ONFI compliant devices, the flash parameters are calculated
by reading the onfi parameter page of the device.

Existing flash density is calculated based on a single logical
unit(LUN). This shows wrong density information on Multi LUN flashes.
So, always use number of LUNS value in flash density calculations.

Change-Id: Idba4d4e129e7fdcdab1e509bd8c3149f26fc11f2
Signed-off-by: Pradeep P V K <ppvk@codeaurora.org>
2020-10-23 09:26:58 -07:00
Isaac J. Manjarres
85d16b15f5 dma-mapping.h: Fix CRC mismatch issues from including genalloc.h
Commit 3a1bd738ef ("dma-mapping-fast: Do not clobber existing atomic
pool") included the genalloc.h header file in the dma-mapping.h header
file.

Including genalloc.h in dma-mapping.h expands the definition of the
gen_pool structure for all files that include dma-mapping.h.
This can cause a different CRC value to be generated for an exported
function symbol, if the function parameters or any of their descendant
members contain genpool structures, as the genpool structures may have
been previously forward declared, but now they are fully defined.

Remove the inclusion of genalloc.h in dma-mapping.h to fix this.

Change-Id: I83a3fad284649b91372168d845f30d9302f75c1d
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-10-23 09:04:06 -07:00
Sarthak Garg
5863f4ce35 mmc: Kconfig: select DEVFREQ_GOV_SIMPLE_ONDEMAND with SDHCI_MSM
mmc_devfeq_clk_scaling structure uses devfreq_simple_ondemand_data
structure which gets enabled with CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND.

Select DEVFREQ_GOV_SIMPLE_ONDEMAND with SDHCI_MSM.

Change-Id: Iab438755768341b1bf836cc60f1c981f4c3daff9
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2020-10-23 20:48:59 +05:30
Sarthak Garg
2dddb94b9c arm: defconfig: Enable SD/eMMC card driver for sdxlemur
Enable SD/eMMC card driver as a inbuilt module for sdxlemur target.
Also Enabled the required Block layer configs.

Change-Id: Ide938308ae659cbe558af341dd8697cab3b987d5
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2020-10-23 20:39:25 +05:30
Fenglin Wu
c94df0b2f8 input: qcom-hv-haptics: only use 4-byte writes when refilling FIFO
The haptics module supports writing FIFO samples using 4-byte burst
mode as well as 1-byte mode. During FIFO refilling, if a 1-byte write
was used, then the hardware would fill zeros automatically after that
to keep the FIFO data 4-byte aligned. When this happened in the middle
of playing, the hardware inserted 0 values would cause spurs on the
haptics output. To fix this, only use 4-byte burst writes during FIFO
refilling until the end of the play.

Change-Id: I0441942585e0e0d5da62ec4a7123b2763b292739
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-10-23 13:38:46 +08:00
Neeraj Soni
44934087b2 mmc: host: Add variant ops for cqhci crypto
QTI implementation for block keyslot manager and
crypto vops for crypto support in CQHCI.

Fixed compilation issues in cqhci-crypto-qti.c and merge
conflicts in sdhci-msm.c and Kconfig files.
(cherry picked from mainline kernel_msm-4.19 commit  5220e65f).

Conflicts:
       drivers/mmc/host/Kconfig
       drivers/mmc/host/sdhci-msm.c

Test:
1. Device booted upto UI with File Based Encryption enabled.
2. Key insertion using fscryptctl tool.
3. Created new files under /data and checked retention across
   multiple re-boots.
4. vts_kernel_encryption_test tests.
5. check_encryption test for verifying metadata encryption.

Change-Id: I9b64f85ca97c269a6ecd6fde2bb693745d4c43d4
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
Signed-off-by: Vaibhav Agrawal <vagrawa@codeaurora.org>
2020-10-22 13:53:42 -07:00
qctecmdr
fa43b983dd Merge "usb: dwc3: Fix re-enumeration of connected peripherals" 2020-10-22 10:48:52 -07:00
qctecmdr
e4ec2400a2 Merge "dt-bindings: msm: Add new path data types for SFE and IFE" 2020-10-22 10:48:52 -07:00
qctecmdr
06e29f4bf4 Merge "cnss2: Fix MAC address setup on late DMS server arrival" 2020-10-22 10:48:52 -07:00
qctecmdr
313972cbb2 Merge "net: netfilter: IRC DCC for private clients" 2020-10-22 10:48:52 -07:00
Neeraj Soni
cd86102b66 mmc: cqhci: Add inline crypto support to cqhci
Wire up cqhci.c with the eMMC Crypto API and support for block layer inline
encryption additions and the keyslot manager.

Ported and fixed the merged conflicts in cqhci.c file
Added new member in cqhci_host to get platform device from sdhci
during cqhci_pltfm_init().

(cherry picked from mainline kernel_msm-4.19 commit 2543833e).
Conflicts:
	drivers/mmc/host/cqhci.c

Test:
1. Device booted upto UI with File Based Encryption enabled.
2. Key insertion using fscryptctl tool.
3. Created new files under /data and checked retention across
   multiple re-boots.
4. vts_kernel_encryption_test tests.
5. check_encryption test for verifying metadata encryption.

Change-Id: I6860cd29d6f044f559385d438048b850faf9a8be
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
Signed-off-by: Vaibhav Agrawal <vagrawa@codeaurora.org>
2020-10-22 10:15:43 -07:00
Neeraj Soni
bec27fe2bc mmc: cqhci: Add eMMC crypto APIs
Add functions to use eMMC inline encryption hardware capability
inline with JEDEC eMMC v5.2 specification and to work with
block keyslot manager. Also add crypto variant vops to handle
quirks in individual inline encryption hardware. The vops fallback
to default implementation which is JEDEC eMMC v5.2 compliant.

Fixed the merged conflict in Kconfig file.
Fixed compilation issue in cqhci-crypto.c file.
(cherry picked from mainline kernel_msm-4.19 commit 32f1d1ca).

Conflicts:
	drivers/mmc/host/Kconfig

Test:
1. Device booted upto UI with File Based Encryption enabled.
2. Key insertion using fscryptctl tool.
3. Created new files under /data and checked retention across
   multiple re-boots.
4. vts_kernel_encryption_test tests.
5. check_encryption test for verifying metadata encryption.

Change-Id: I72b85d572d7c76b966e34b80e7e8eca83a2bb35f
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
Signed-off-by: Vaibhav Agrawal <vagrawa@codeaurora.org>
2020-10-22 10:10:58 -07:00
qctecmdr
8782ab8eed Merge "msm: kgsl: Stay in bounds when setting up legacy HFI queues" 2020-10-22 08:15:34 -07:00
qctecmdr
1712878e03 Merge "arm: defconfig: Enable I2C, SPS DMA and SPI BLSP configs" 2020-10-22 08:15:33 -07:00
qctecmdr
95657f408c Merge "usb: typec: Fix setting of invalid value of opmode" 2020-10-22 08:15:33 -07:00
qctecmdr
3c79e098e9 Merge "usb: dt-bindings: Remove target specific macro file" 2020-10-22 08:15:33 -07:00
qctecmdr
f4aa4355df Merge "mm: slub: update slab_alloc interface to capture slab stacks" 2020-10-22 08:15:33 -07:00
qctecmdr
6bd93187f4 Merge "mailbox: apcs-ipc: Add compatible string for mocaco and scuba" 2020-10-22 04:15:34 -07:00
qctecmdr
7a5dbe0098 Merge "usb: f_gsi: Don't set remote_wakeup_allowed to true by default" 2020-10-22 04:15:34 -07:00
qctecmdr
1deb1342d6 Merge "mmc: cqhci: eMMC JEDEC v5.2 crypto spec addition" 2020-10-22 04:15:34 -07:00
qctecmdr
dd78c0248f Merge "fsa4480: Avoid updating settings if unchanged" 2020-10-22 04:15:34 -07:00
Jordan Crouse
ce9c16c7f7 msm: kgsl: Make clear_pending_transactions target specific
Move adreno_clear_pending_transactions to the target specific code.
Besides getting rid of some ADRENO_REG ambiguity and the need for
target specific masks in the gpudev this also provides some clarity
for a6xx since none of the GMU or RGMU targets end up using this
function in the first place so we can not worry about those and
focus on the a5xx/a6xx targets that do need it.

Change-Id: Ic0dedbadbc7927247c84d446664273c6464d07f5
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-10-22 12:49:40 +05:30
Manikandan Mohan
6404ccc934 cnss2: Fix MAC address setup on late DMS server arrival
Process QMI socket connection in DMS server arrival callback to avoid
MAC address setup failure on late DMS service connection.

Change-Id: I949b409e09afc7f98decc5f05912467df0d997b8
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-10-21 22:41:43 -07:00
Mukund Madhusudan Atre
3d98338384 dt-bindings: msm: Add new path data types for SFE and IFE
Add new path data types corresponding to changes in camnoc
architecture.

Change-Id: Idb4c37c7cf73a24550b6c94ab3fdfa3dde1cf70e
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-10-21 11:48:26 -07:00
Paras Singh Jain
c3f625a02c net: netfilter: IRC DCC for private clients
Added support for IRC DCC for private clients
by avoiding NAT if the DCC client is a
private client.

Change-Id: I786724e82768317e4f511733bc9247e81d2b60a6
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
2020-10-21 22:50:51 +05:30
qctecmdr
dc88450c3c Merge "fdt: Add correct return for early_init_dt_scan_memory" 2020-10-21 07:15:02 -07:00
qctecmdr
539edd6d2f Merge "msm-perf: Added threshold check for perf_event" 2020-10-21 07:15:02 -07:00
qctecmdr
65826fd62b Merge "clk: qcom: clk-alpha-pll: Add support to be able to slew PLL" 2020-10-21 07:15:01 -07:00
Neeraj Soni
2807413a16 mmc: cqhci: eMMC JEDEC v5.2 crypto spec addition
Add crypto capability registers and structs defined in v5.2 of
JEDEC eMMC specification in prepration to add support for inline
encryption to eMMC controllers.

(cherry picked from mainline kernel_msm-4.19 commit 08093743).

Change-Id: I8a42be348ca06cffbe841e590c4348990c9d7a08
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
Signed-off-by: Vaibhav Agrawal <vagrawa@codeaurora.org>
2020-10-21 14:14:31 +05:30
richagar
1df107b4e5 msm-perf: Added threshold check for perf_event
Added cycle threshold check to perf_events to
filter ipc ratio.

Change-Id: Iedc4ab37eb8668d7019b20a784ad0c0e86ce51df
Signed-off-by: richagar <richagar@codeaurora.org>
2020-10-21 01:12:37 -07:00