Commit graph

893,362 commits

Author SHA1 Message Date
Sai Harshini Nimmala
921d71ac53 haven: hcall: Add Virtual PM group get state API
The state information of the Virtual PM group can be obtained
through this API.

Change-Id: I0a00e8bfe38f7908ed20bc105f66149097e6532b
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
2020-10-22 20:49:24 -07:00
Jagadeesh Kona
0eb41deeff dt-bindings: clock: Update clock ids of GCC for YUPIK
Add support for gcc_aggre_usb3_sec_axi_clk and remove
support for CPUSS clocks.

Change-Id: I6535ea90a7e87b088e4aeea2fb02d8055fc9f6b0
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-10-23 08:35:59 +05:30
Chanho Park
39133635c5 ANDROID: GKI: add built-in PCIE_DW_PLAT_EP
To build an EP driver which is based on PCIe designware as module, we
need to get some symbols from pcie-designware_ep.c. To select the
source from GKI kernel, we should enable PCIE_DW_PLAT_EP driver as
prebuilt.

Bug: 167931570

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Change-Id: I12f796cb35794e29d1fa425d26e2c9ee2c855da2
2020-10-23 08:44:15 +09:00
Chanho Park
cea56b5c10 ANDROID: PCI: dwc: export symbols for ep driver
Export symbols for building Designware PCIe EP driver as kernel module.
Partially cherry-picked for EXPORT_SYMBOL_GPL part from below patch.

c57247f940e8 ("PCI: tegra: Add support for PCIe endpoint mode in Tegra194")

Bug: 167931570
(partial backport of commit c57247f940e8ea13a0ec33378304dc3cdc5da4a8.
 Didn't backport entier patch because it requires below two precedence
 patchset to avoid patch conflict.
 "Add support to defer core initialization" by Vidya
 "Improvements to PCIe Endpoint Core" by Kishon)
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Change-Id: I4df622d67d4202c650abff6c424d1e3cb30408e2
2020-10-23 08:44:15 +09:00
Manikandan Mohan
0024bf5ded cnss2: Control ADSP power collapse based on WLAN state
Disable ADSP power collapse during WLAN ON as during RTPM suspended
state QMI stats collection takes more time due to PCI link up/down
operations and ADSP dependencies.

Change-Id: I8ba5fd1cf531f72792d505f2a6617224bfdebff8
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-10-22 16:24:52 -07: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
Tony Truong
a85bf9cb8b msm: pcie: update with link power on check for user PCIe resume
Instead of checking PCIe S/W link state, check if the link is on
is on or off to determine whether PCIe resume should be allowed
or not. PCIe S/W link state is not enough to determine since
MSM_PCIE_LINK_DOWN state can be set for link on or off.

Change-Id: I23a27007eb90134c90d5a20034248697423ebeeb
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-10-22 13:08:18 -07:00
Danesh Petigara
2f397d4f68 ANDROID: recordmcount: avoid STT_FILE as base for mcount offset relocation
This problem was observed with a kernel built using clang and
LTO.

When the section header index of a section that contains mcount
calls coincides with SHN_ABS, recordmcount ends up selecting a
STT_FILE symbol as the base for mcount offset relocation. Since
the STT_FILE symbol value is 0, it's not a suitable candidate as
the base for relocation and results in the __mcount_loc table
containing an invalid entry causing kernel oops in ftrace_init():

[    0.000000] ftrace: allocating 45789 entries in 179 pages
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:172 ftrace_make_nop+0x11c/0x150
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.69-0-1pre+ #1
[    0.000000] Hardware name: BCM972180HB_V20 (DT)
[    0.000000] pstate: 20400085 (nzCv daIf +PAN -UAO)
[    0.000000] pc : ftrace_make_nop+0x11c/0x150
[    0.000000] lr : ftrace_make_nop+0x5c/0x150
[    0.000000] sp : ffffffc011a43ef0
[    0.000000] x29: ffffffc011a43f00 x28: 0000000000000001
[    0.000000] x27: ffffff8027801380 x26: 0000000000000000
[    0.000000] x25: ffffff8027880008 x24: 0000000000000000
[    0.000000] x23: 0000000000000000 x22: 0000000000000008
[    0.000000] x21: ffffffc010f5acdc x20: 0000000000000000
[    0.000000] x19: 0000000000000020 x18: ffffffc011a79020
[    0.000000] x17: 000000000000003c x16: 0000000000000022
[    0.000000] x15: dead000000000100 x14: 0000000000000001
[    0.000000] x13: 0000000000000000 x12: 0000000000000000
[    0.000000] x11: 0000000000000000 x10: 0000000008000000
[    0.000000] x9 : 0000000000000002 x8 : 0000000000000001
[    0.000000] x7 : 0000000000000000 x6 : 000000000000003f
[    0.000000] x5 : 00000000000235b8 x4 : 0000000000000001
[    0.000000] x3 : 0000000000000001 x2 : ffffffc010f5acdc
[    0.000000] x1 : ffffff8027880000 x0 : 0000000000000001
[    0.000000] Call trace:
[    0.000000]  ftrace_make_nop+0x11c/0x150
[    0.000000]  ftrace_process_locs+0x338/0x3e0
[    0.000000]  ftrace_init+0xac/0xdc
[    0.000000]  start_kernel+0x194/0x43c
[    0.000000] random: get_random_bytes called from __warn+0xe0/0x138 with crng_init=0
[    0.000000] ---[ end trace a8999690c4edae16 ]---
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at kernel/trace/ftrace.c:2008 ftrace_bug+0x94/0x268
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W         5.4.69-0-1pre+ #1
[    0.000000] Hardware name: BCM972180HB_V20 (DT)
[    0.000000] pstate: 60400085 (nZCv daIf +PAN -UAO)
[    0.000000] pc : ftrace_bug+0x94/0x268
[    0.000000] lr : ftrace_process_locs+0x364/0x3e0
[    0.000000] sp : ffffffc011a43ef0
[    0.000000] x29: ffffffc011a43ef0 x28: 0000000000000001
[    0.000000] x27: ffffff8027801380 x26: 0000000000000000
[    0.000000] x25: ffffff8027880008 x24: 0000000000000000
[    0.000000] x23: 0000000000000000 x22: 0000000000000008
[    0.000000] x21: ffffffc010f5acdc x20: 0000000000000020
[    0.000000] x19: ffffff8027880000 x18: ffffffc011a79020
[    0.000000] x17: 000000000000003c x16: 0000000000000022
[    0.000000] x15: dead000000000100 x14: 0000000000000001
[    0.000000] x13: 0000000000000000 x12: ffffffc010f5ed94
[    0.000000] x11: ffffffc011a4f000 x10: ffffffc011a4f000
[    0.000000] x9 : 0000000000000001 x8 : ffffffc011a4f000
[    0.000000] x7 : 0000000000000000 x6 : 000000000000003f
[    0.000000] x5 : 00000000000235b8 x4 : 0000000000000001
[    0.000000] x3 : 0000000000000001 x2 : ffffffc010f5acdc
[    0.000000] x1 : ffffff8027880000 x0 : ffffffc01151ade2
[    0.000000] Call trace:
[    0.000000]  ftrace_bug+0x94/0x268
[    0.000000]  ftrace_process_locs+0x364/0x3e0
[    0.000000]  ftrace_init+0xac/0xdc
[    0.000000]  start_kernel+0x194/0x43c
[    0.000000] ---[ end trace a8999690c4edae17 ]---
[    0.000000] ftrace failed to modify
[    0.000000] [<0000000000000020>] 0x20
[    0.000000]  actual:
[    0.000000] Unable to handle kernel read from unreadable memory at virtual address 0000000000000020
[    0.000000] Mem abort info:
[    0.000000]   ESR = 0x96000005
[    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
[    0.000000]   SET = 0, FnV = 0
[    0.000000]   EA = 0, S1PTW = 0
[    0.000000] Data abort info:
[    0.000000]   ISV = 0, ISS = 0x00000005
[    0.000000]   CM = 0, WnR = 0
[    0.000000] [0000000000000020] user address but active_mm is swapper
[    0.000000] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W         5.4.69-0-1pre+ #1
[    0.000000] Hardware name: BCM972180HB_V20 (DT)
[    0.000000] pstate: 60400085 (nZCv daIf +PAN -UAO)
[    0.000000] pc : print_ip_ins+0x48/0x80
[    0.000000] lr : print_ip_ins+0x2c/0x80
[    0.000000] sp : ffffffc011a43eb0
[    0.000000] x29: ffffffc011a43eb0 x28: 0000000000000001
[    0.000000] x27: ffffff8027801380 x26: 0000000000000000
[    0.000000] x25: ffffff8027880008 x24: 0000000000000000
[    0.000000] x23: ffffffc0115f1abc x22: ffffffc01160e929
[    0.000000] x21: 0000000000000000 x20: ffffffc011577a9c
[    0.000000] x19: 0000000000000020 x18: ffffffc011a79028
[    0.000000] x17: 000000000000002c x16: ffffffc010f33fec
[    0.000000] x15: 0000000000000004 x14: ffff0000ffffff00
[    0.000000] x13: 0000000000000000 x12: 0000000000000000
[    0.000000] x11: 0000000000000000 x10: 00000000ffffffff
[    0.000000] x9 : 0000000000000000 x8 : 0000000000000000
[    0.000000] x7 : 3030303030303030 x6 : ffffffc011c031a3
[    0.000000] x5 : 000000000000000b x4 : ffffffc011c00866
[    0.000000] x3 : 0000000000000020 x2 : 000000000000000b
[    0.000000] x1 : ffffffc011c00871 x0 : 000000000000000b
[    0.000000] Call trace:
[    0.000000]  print_ip_ins+0x48/0x80
[    0.000000]  ftrace_bug+0xcc/0x268
[    0.000000]  ftrace_process_locs+0x364/0x3e0
[    0.000000]  ftrace_init+0xac/0xdc
[    0.000000]  start_kernel+0x194/0x43c
[    0.000000] Code: aa1f03f5 9124a6d6 912af2f7 912a7294 (38756a62)
[    0.000000] ---[ end trace a8999690c4edae18 ]---
[    0.000000] Kernel panic - not syncing: Attempted to kill the idle task!

This can be fixed by avoiding STT_FILE symbols as the base for
mcount offset relocation.

Bug: 168835511
Signed-off-by: Danesh Petigara <danesh.petigara@broadcom.com>
Signed-off-by: Pierre Couillaud <pierre@broadcom.com>
Change-Id: I9e73706d5104bfa81bccd091e956660364f294de
2020-10-22 19:57:13 +00:00
Chun-Hung Wu
3f0fb2fde0 ANDROID: iommu: Enable CONFIG_IOMMU_IO_PGTABLE_ARMV7S
Enable CONFIG_IOMMU_IO_PGTABLE_ARMV7S in gki_defconfig for MTK
iommu/io-pgtable-arm-v7s.

Bug: 167939345
Link: https://lore.kernel.org/patchwork/patch/1301119/
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Signed-off-by: Chao Hao <chao.hao@mediatek.com>
Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
Change-Id: Ic1f3a9cdf20f49f615f56bd9d9b0899a8f7255f6
2020-10-22 19:44:50 +00:00
Chao Hao
0245f11b47 BACKPORT: FROMLIST: iommu/io-pgtable-arm-v7s: Quad lvl1 pgtable for MediaTek
The standard input iova bits is 32. MediaTek quad the lvl1 pagetable
(4 * lvl1). No change for lvl2 pagetable. Then the iova bits can reach
34bit.

Bug: 167939345
Link: https://lore.kernel.org/patchwork/patch/1301122/
Change-Id: I29095a7f521c73da3fa017e81471ba41db8377ff
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Signed-off-by: Chao Hao <chao.hao@mediatek.com>
Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
2020-10-22 19:44:39 +00:00
Chao Hao
fbf0ae523d BACKPORT: FROMLIST: iommu/io-pgtable-arm-v7s: Add cfg as a param in some macros
Add "cfg" as a parameter for some macros. This is a preparing patch for
mediatek extend the lvl1 pgtable. No functional change.

Bug: 167939345
Link: https://lore.kernel.org/patchwork/patch/1301121/
Change-Id: I1bb072406cd2122446f1db2183a838a56837d7af
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Signed-off-by: Chao Hao <chao.hao@mediatek.com>
Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
2020-10-22 19:44:29 +00:00
Chao Hao
8b6f18592d BACKPORT: FROMLIST: iommu/io-pgtable-arm-v7s: Extend PA34 for MediaTek
MediaTek extend the bit5 in lvl1 and lvl2 descriptor as PA34.

Bug: 167939345
Link: https://lore.kernel.org/patchwork/patch/1301120/
Change-Id: I6bd677285b73271f977f8bdeb4ef6b658b2ea81d
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Signed-off-by: Chao Hao <chao.hao@mediatek.com>
Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
2020-10-22 19:44:19 +00:00
Chao Hao
ba7883760a BACKPORT: FROMLIST: iommu/io-pgtable-arm-v7s: Use ias to check the valid iova in unmap
Use the ias for the valid iova checking in _unmap.
It is a preparing patch for supporting iova 34bit for MediaTek.
BTW, change the ias/oas checking format in v7s_map.

Bug: 167939345
Link: https://lore.kernel.org/patchwork/patch/1301119/
Change-Id: I78a5399fb5f6555ba9aca916393ed62262853e34
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Signed-off-by: Chao Hao <chao.hao@mediatek.com>
Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
2020-10-22 19:44:09 +00:00
Hemant Kumar
fb6a17dc37 pci: msm: Add support to handle DRV power collapse
Some endpoints require to prevent DRV processor power
collapse in order to meet the latency requirement to
access DDR over PCIe link. Send the vote info over rpmsg
by handling MSM_PCIE_DRV_PC_CTRL request via msm_pcie_pm_control.
Vote info is cached to handle DRV subsystem restart in order to
re-send the current vote info received from request.

Change-Id: If2d4b2211fe55f70f709bf9d7a1e0daca4e0b990
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-10-22 11:36:05 -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
Raghavendra Rao Ananta
95bd9e26f2 ANDROID: ABI: Update allowed list for QCOM
Add the following symbols to QCOM allowed-list:
-- amba_driver_register
-- amba_driver_unregister

Bug: 171409550
Change-Id: Iab997df4f8ebb2c39b993b60ee4eb0fa3100fbcd
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-10-22 17:46:00 +00: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
Neal Liu
ba2f977129 ANDROID: modules: fix suspicious rcu usage
Use rcu_read_lock_sched() & rcu_read_unlock_sched() to mark the
beginning & end of a RCU-sched critical section instead.

Bug: 171362096
Signed-off-by: Neal Liu <neal.liu@mediatek.com>
Change-Id: Idb40e2c2356621398e06944f7cb9b8bc5ef1d92a
2020-10-22 17:03:51 +00: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
Nitheesh Muthuraj
0de662800f msm: kgsl: Increase MAX_PWRLEVELS Limit
Increasing the MAX_PWRLEVELS Limit to accommodate
addition of power levels for supported devices.

Change-Id: Iad3f46a7b14e273df45a44d38d2329a292d9dfd7
Signed-off-by: Nitheesh Muthuraj <nmuthuraj@codeaurora.org>
2020-10-21 15:52:00 -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
Elson Roy Serrao
b702a52c29 defconfig: Enable USB BAM on sdxlemur
Enable USB BAM config flag on sdxlemur.

Change-Id: I2aed3a8d568229cfd900a0bb4fb14d46defd64c5
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
2020-10-21 11:37:35 -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
qctecmdr
14ce2ef978 Merge "qseecom: improve operation when app unload returns EBUSY" 2020-10-21 01:00:57 -07:00
qctecmdr
fd84b040be Merge "clk: qcom: gcc-holi: Enable clocks for pm8008 by default" 2020-10-21 01:00:57 -07:00
qctecmdr
e19c18ba1b Merge "netfilter: Unlock xt_table later" 2020-10-21 01:00:57 -07:00
qctecmdr
1493c08234 Merge "msm: kgsl: Enable BCL feature on A660 GPU variant" 2020-10-21 01:00:56 -07:00
Faiyaz Mohammed
891d9b3eb6 mm: slub: update slab_alloc interface to capture slab stacks
Update /sys/kernel/debug/slab/alloc_trace interface to capture
slab stack along with slab object details.

Now output of alloc_trace is:
alloc_list: call_site=mempool_alloc_slab+0x1c/0x28 count=2 object_size=1024
slab_size=1472 slab_name=sgpool-32

mempool_alloc_slab+0x1c/0x28

mempool_init_node+0xdc/0x238

mempool_create+0x58/0x88

sg_pool_init+0x70/0xf8

do_one_initcall+0x15c/0x2e8

kernel_init_freeable+0x334/0x3d8

kernel_init+0x18/0x298

ret_from_fork+0x10/0x18.

Change-Id: I19da702bfd22e5526e2c9a04d22717dc70700ae7
Signed-off-by: Faiyaz Mohammed <faiyazm@codeaurora.org>
2020-10-21 13:15:59 +05:30
Vipin Deep Kaur
38aa0eb06d arm: defconfig: Enable I2C, SPS DMA and SPI BLSP configs
Enable I2C, SPS DMA and SPI BLSP configs on sdxlemur.

Change-Id: Id13f45cb623fbe52a2b05dd8d1811b182387ab81
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
2020-10-21 13:04:22 +05:30
Jack Pham
559d487878 fsa4480: Avoid updating settings if unchanged
During audio subsystem restart, the audio driver will unregister
its notifier on shutdown and re-register when subsystem is up again.
If a regular USB device, and not a Type-C analog audio device, is
currently connected, we should not re-write the register settings
over I2C to the FSA4480 IC as that will make the D+/D- pins to
be momentarily switched off an on, which causes the USB controller
to detect a momentary disconnect and re-connect of the attached
peripheral.

Fix this by first reading the switch control and enable registers,
and if being updated with the same values, don't re-write them to
avoid unnecessarily resetting D+/D- or SBU1/2.

Change-Id: I9d4e092e9782ca64caf0982958b3e5d05744aa92
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-10-20 23:53:52 -07:00
Sriharsha Allenki
c4e5ee5be1 usb: typec: Fix setting of invalid value of opmode
Setting opmode to invalid values would lead to a
paging fault failure when there is an access to the
power_operation_mode.

Prevent this by checking the validity of the value
that the opmode is being set.

Change-Id: I9863df1e84a947fb04e29d214c1dec61ccc5ee72
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-10-21 11:38:59 +05:30