Commit graph

894,597 commits

Author SHA1 Message Date
qctecmdr
cc681776ca Merge "msm: kgsl: Avoid copying aux_command_generic struct twice" 2021-03-11 10:14:26 -08:00
qctecmdr
fbabbd2280 Merge "msm: kgsl: Configure UCHE GMEM base address based on GMEM size" 2021-03-11 10:14:26 -08:00
qctecmdr
18b2685bee Merge "cnss2: Update driver to support multiple devices" 2021-03-11 10:14:26 -08:00
qctecmdr
12351b846c Merge "soc: qcom: hgsl: Fix fence leak issue" 2021-03-11 10:14:26 -08:00
qctecmdr
cebe8978eb Merge "defconfig: autogvm: Enable virtio fastrpc driver config" 2021-03-11 10:14:25 -08:00
Anuj Garg
b12aa9c799 defconfig: autogvm: Enable virtio fastrpc driver config
Enable virtio fastrpc driver config for quin virtual
machine.

Change-Id: I1c7c7c5136949eefbfed2a0a0225c200e0909f8b
Signed-off-by: Anuj Garg <anujgarg@codeaurora.org>
2021-03-11 14:16:10 +05:30
Kasin Li
e424cb2f47 soc: qcom: hgsl: Fix fence leak issue
sync_file_create increases refcount of fence, so need release dma fence
handler after it.

Change-Id: I3cc60d6a7e8a32138bfee611864cee00c2ac7dd3
Signed-off-by: Kasin Li <donglil@codeaurora.org>
2021-03-11 16:08:40 +08:00
qctecmdr
f2a1ad8d8c Merge "cnss2: Avoid dereferencing pointer before NULL check" 2021-03-10 23:22:10 -08:00
qctecmdr
d4a0e6d870 Merge "usb: dwc3-msm: Mandate pwr_evt_irq only for cores allowing SSPHY suspend" 2021-03-10 23:22:10 -08:00
qctecmdr
b645e42107 Merge "net: stmmac: removed unused variable" 2021-03-10 23:22:10 -08:00
qctecmdr
9c40b052d9 Merge "msm: ice: Add support for ICE-FDE full disk encryption" 2021-03-10 23:22:09 -08:00
qctecmdr
05d912cfb5 Merge "slatecom_interface: add slatecom_interface driver" 2021-03-10 19:37:21 -08:00
qctecmdr
43c25dc2a0 Merge "drivers: virtio_fastrpc: Add PM notifier to unblock user process" 2021-03-10 19:37:21 -08:00
qctecmdr
e5bd1aef80 Merge "USB: f_fs: Fix disconnect check during ongoing IO" 2021-03-10 15:24:04 -08:00
qctecmdr
6b8c18e19f Merge "cnss2: Download qdss cfg file at end of fw mem ready handler" 2021-03-10 15:24:04 -08:00
qctecmdr
8ae32bed5a Merge "defconfig: sdxlemur: AQC IOSS glue driver switch to v2" 2021-03-10 11:39:42 -08:00
qctecmdr
001d3cc706 Merge "soc: qcom: hab: avoid printk storm in the pipe read retry" 2021-03-10 11:39:42 -08:00
qctecmdr
07e7913de1 Merge "power: smb5-lib: Fix race conditions for typec power role" 2021-03-10 11:39:42 -08:00
qctecmdr
549fba848a Merge "soc: qcom: hab: fix some issues in the remote open cancelling case" 2021-03-10 11:39:41 -08:00
qctecmdr
0456270ee6 Merge "soc: qcom: qmp-debugfs-client: Remove leading and trailing whitespaces" 2021-03-10 11:23:06 -08:00
qctecmdr
a6af1eaa4f Merge "firmware: Fix the failure of scm call to update LVL_SHIFTER register" 2021-03-10 11:23:06 -08:00
qctecmdr
a854b4941b Merge "input: touchscreen: nt36xxx: Cancel pending firmware update" 2021-03-10 11:23:06 -08:00
qctecmdr
71e82255ed Merge "defconfig: autogvm: Enable VIRTIO FASTRPC driver" 2021-03-10 11:23:05 -08:00
Yue Ma
e2aea67ceb cnss2: Avoid dereferencing pointer before NULL check
In fs_ready_store(), only dereference plat_priv pointer after NULL
check.

Change-Id: I222139d02a8cc8aef19e2ff879a953977896a08c
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-03-10 10:22:07 -08:00
Ajay Agarwal
2b5d53c9ff usb: dwc3-msm: Mandate pwr_evt_irq only for cores allowing SSPHY suspend
Currently the driver requires pwr_evt_irq to be compulsorily
passed from DT unless the core is dual port. Now consider a core
that does not allow SSPHY autosuspend during operational mode,
instead allowing it only as a part of dwc3_msm_ssphy_autosuspend.
As soon as autosuspend is enabled, there is a chance that
pwr_evt_irq is fired with IN_P3 bit set. Although the driver will
be marking mdwc->in_p3 in the pwr_evt_handler, it will fail to
see IN_P3 bit to be set(because it has been cleared in handler)
during the 5ms wait time in the ssphy_autosuspend function and
prepare_suspend will again set mdwc->in_p3 to 0. This leads to
failure of runtime/system suspend.
Fix this by not passing pwr_evt_irq from DT for the cores which
disable SSPHY autosuspend.

Change-Id: I85ca7e45337fe35c570d163766e7638e11537201
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2021-03-10 21:04:56 +05:30
Manu Gautam
016895d08e USB: f_fs: Fix disconnect check during ongoing IO
F_FS function driver allocated ffs_eps and updates ffs_ep->ep
to corresponding usb_ep during func->bind and never clears it.
On bind it also saves ffs_ep context in epfile->ep.
During func->disable, it clears only ffs_ep context in epfile->ep
and on func->unbind it frees ffs_eps memory.
ffs_epfile_io routine currently relies on ffs_ep->ep (which is
never cleared and ffs_ep could be freed on unbind) to detect any
disconnect during active IO. This can result in various issues e.g.
use after free use of ffs_ep if unbind finished before epfile_io
could resume or "stop adbd" trying to dequeue a freed USB request
when epfile_io could execute only after F_FS got disabled as
'if (ep->ep)' check would be TRUE.
Fix this by checking stored ffs_ep context against latest epfile->ep
to figure out if endpoint got disabled or changed before acquiring
spin_lock.

Change-Id: I6bdcdf0dff0813ed7b2af8c24f544a22796b0369
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2021-03-10 06:10:38 -08:00
Victor Zaharchuk
5e5e43c136 msm: ice: Add support for ICE-FDE full disk encryption
Porting the FDE functionality from msm-4.14 branch commit
<b8f1b6a6> (Add support for block disk encryption).
Modified to be compatible with the 5.4 Kernel.

Test:
1. Basic_SimpleEncryption.
2. ModifyEnforcedFiles_FileCreationWithinEnforcedFolder.
3. PIN, pattern, password.
4. Verified filename encryption.
5. Generate/set ICE keys.
6. Enable ICE state for userdata partition.
7. Format the userdata partition.
8. Check if partition is encrypted via ICE.

Change-Id: I307d75b7cdf25f7a9ad2b4f948e64d13278e6f03
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
Signed-off-by: Victor Zaharchuk <vzaharch@codeaurora.org>
2021-03-10 16:08:21 +02:00
Suraj Jaiswal
508c482efa net: stmmac: removed unused variable
Add support to remove unused variables.

Change-Id: I83c3ff5b708506e5f59f955dd08b4968f2e93b51
Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>
Signed-off-by: Suraj Jaiswal <jsuraj@codeaurora.org>
2021-03-10 18:31:13 +05:30
Anuj Garg
7deefbd0d6 drivers: virtio_fastrpc: Add PM notifier to unblock user process
Add SUSPEND_PREPARE pm notifier to unblock the userspace process.

Change-Id: I784e060bac3a44286e40733f5b9800bfd659ebbc
Signed-off-by: Anuj Garg <anujgarg@codeaurora.org>
2021-03-10 16:00:44 +05:30
Deepak Kumar
16ac4605eb msm: kgsl: Configure UCHE GMEM base address based on GMEM size
Different GPU can have a different GMEM size so need to configure
UCHE GMEM base address accordingly. Having a fix base as 0x100000
results in RB and UCHE GMEM range overlap on GPUs with GMEM size >1MB.
Also, adjust SVM 32bit base based on GMEM UCHE range end to prevent
GMEM UCHE and SVM 32bit range overlap.

Change-Id: I41330a33b79bf8c79b593ecd89593a796230b074
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2021-03-10 15:55:02 +05:30
Yong Ding
221c0934b7 soc: qcom: hab: fix some issues in the remote open cancelling case
The version numbers shall be copied into the local variables for
any potential version comparison.

Change-Id: I08ac6359df0890a2605dbb6279b73abe09060ec8
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2021-03-10 18:21:13 +08:00
Yong Ding
0f22667ec0 soc: qcom: hab: avoid printk storm in the pipe read retry
The prink() could consume enough CPU when the retry eventually takes
a lot of times before it could succeed.

Change-Id: I4f49d0650ee3ae06700d2ce592acd0532bbf38cd
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2021-03-10 01:57:53 -08:00
Kavya Nunna
c28831d054 power: smb5-lib: Fix race conditions for typec power role
Currently power_role is accessed by set_prop and get_prop
functions of typec_power_role without any locking mechanism,
there can be a scenario where both function calls were invoked
simultaneously and power_role variable is not correctly
updated, and it leads to enumeration issues when connected to PC.

Fix it by adding locking mechanism to power_role.

Change-Id: I4f5dc38a9536b535510dc2b112712a5cbd2b3f84
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2021-03-10 12:16:48 +05:30
Anuj Garg
d0f8a955d6 defconfig: autogvm: Enable VIRTIO FASTRPC driver
Enable virtio fastrpc driver config for quin virtual
machine.

Change-Id: Ic496e7b1ad06fa50075a1b485b3db05007a85cb6
Signed-off-by: Anuj Garg <anujgarg@codeaurora.org>
2021-03-10 10:48:39 +05:30
qctecmdr
bb168a0f46 Merge "msm: msi: set enable_irq_wake for PCIe MSI IRQ" 2021-03-09 20:30:11 -08:00
wei yang
b95e50426d cnss2: Update driver to support multiple devices
Currently CNSS2 driver does not support multi chips. This is a update of
the CNSS2 driver to support multi chips with converged dts.

Change-Id: Ie3efb526220c2de21e021320322d46c345d770bc
Signed-off-by: wei yang <yangwei@codeaurora.org>
Signed-off-by: Kuichu Ni <kuichun@codeaurora.org>
2021-03-09 20:00:52 -08:00
Jay Jayanna
bb6bd7c418 soc: qcom: qmp-debugfs-client: Remove leading and trailing whitespaces
Remove all the leading and trailing whitespaces in the string copied
from userspace.

Change-Id: I627416dcdb1155303ad6a8ed172910a8653dd67b
Signed-off-by: Jay Jayanna <jayanna@codeaurora.org>
2021-03-09 17:24:13 -08:00
qctecmdr
39d25940c8 Merge "net: stmmac: Fix gpio reset & other issue" 2021-03-09 16:39:18 -08:00
qctecmdr
95755ee91b Merge "drivers: pinctrl: sdxlemur: Add ebi2 support to GPIO 89 and 90" 2021-03-09 12:52:04 -08:00
qctecmdr
fb1a93ae61 Merge "defconfig: Re-enable qcom_edac driver as a module" 2021-03-09 12:52:03 -08:00
qctecmdr
c865ae26b3 Merge "usb: dwc3-msm: Do not powerdown SSPHY if auto suspend is disabled" 2021-03-09 12:52:03 -08:00
Suraj Jaiswal
edd74d465b net: stmmac: Fix gpio reset & other issue
Add support for proper GPIO reset & qcom
specific changes.

Change-Id: Iad7a40d896c6847e06f775449f5c54dd828815b8
Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>
Signed-off-by: Suraj Jaiswal <jsuraj@codeaurora.org>
2021-03-09 23:25:13 +05:30
Lakshit Tyagi
aa1c5351df defconfig: sdxlemur: AQC IOSS glue driver switch to v2
Switch AQC IOSS glue driver to IOSS v2.

Change-Id: I82b75bee27e385d67f8cc80afbe254023489c9c7
Signed-off-by: Lakshit Tyagi <ltyagi@codeaurora.org>
2021-03-09 09:03:58 -08:00
qctecmdr
42270f30bf Merge "sched: Enable PELT8 by default" 2021-03-09 09:03:53 -08:00
qctecmdr
b655fdb315 Merge "power: reset: Add snapshot of vm power off driver" 2021-03-09 09:03:53 -08:00
qctecmdr
f73698b6bf Merge "defconfig: Enable TLMM pincontrol for Direwolf" 2021-03-09 09:03:53 -08:00
Aniket Randive
bebc6b630d usb: dwc3-msm: Do not powerdown SSPHY if auto suspend is disabled
On certain platforms, due to a HW issue, the SSPHY keeps
transitioning in and out of p3 whenever we perform any HS
transfers. This leads to a storm of PWR_EVNT irgs.
Fix this by disabling SSPHY autosuspend on such platforms.
Autosuspend will be enabled as part of dwc3_msm_prepare_suspend
so that SSPHY gets a chance to go into P3.

Change-Id: I4e674f780a72a8c4abcb3e6c9f083f23b1faa196
Signed-off-by: Aniket Randive <arandive@codeaurora.org>
2021-03-09 05:08:30 -08:00
Ajay Agarwal
805c7cc16e usb: dwc3: Write necessary registers for dual port enablement
In line with the sequence for primary port, update proper fields
of DWC3_GUSB2PHYCFG and DWC3_GUSB3PIPECTL registers for the
second port of the dual port controller. Update other registers
as required.
While at it, also avoid enabling SSPHY autosuspend if
dis_u3_susphy_quirk is set.

Change-Id: Ib79dba4c6d854fa2bf33a1b7cecf06f988250662
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Harsh Agarwal <harshq@codeaurora.org>
2021-03-09 04:14:56 -08:00
Ajay Agarwal
76c3eb34d1 usb: dwc3-msm: Add support for 2nd set of wakeup IRQs
Certain targets may have a dual port capable host controller.
Add support for the PHY IRQs for the second port. Since the SSPHY
autosuspend will be disabled for such controllers, remove the
support of pwr_evnt_irq as a mandatory IRQ and allow SSPHY to go
into P3 as a part of suspend sequence. Handle the logic
gracefully to maintain single port controllers.

Change-Id: I5a53d6e23f64bec7ae940d23923df310309a28da
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Harsh Agarwal <harshq@codeaurora.org>
2021-03-09 04:14:30 -08:00
Ajay Agarwal
3081acb9e8 usb: dwc3: Add support for 4 PHYs for dual port controller
Add 2 new PHY instances (HS and SS) in dwc3 and dwc3-msm
structures. Probe and initialize them when the controller is
dual port capable. This capability is advertised by cores
supporting only host mode using the DT flag 'qcom,dual-port'.

Update PHY1 flags wherever applicable while maintaining single
port controller support.

Avoid workaround of SSPHY powerdown as a part of HS device
connect because of the known HW issue of the other SSPHY going in
and out of P3 when data transfers are being done.

Change-Id: If52fd6383cc2da8b763c774d2ad688448f90aea0
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Harsh Agarwal <harshq@codeaurora.org>
2021-03-09 17:34:58 +05:30