Commit graph

895,202 commits

Author SHA1 Message Date
qctecmdr
7aa8936604 Merge "arm64: defconfig: compile debugcc statically" 2021-03-11 21:11:03 -08:00
qctecmdr
b310be31e1 Merge "soc: spcom: unvote for sp regulators" 2021-03-11 21:11:03 -08:00
Yue Ma
a927e9701d cnss2: Add WCN7850 device ID to cnss_get_bus_type() API
WCN7850 device ID is missing from cnss_get_bus_type() API.
Hence add it.

Change-Id: I9eaf82dadcf715fb8a5d223a432b0135ccd0a6a7
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-03-11 12:07:07 -08:00
Neeraja P
e28d403c5b msm: kgsl: Add per process GPU memory usage trace
This patch adds support to trace per process utilization of the GPU
mapped memory. Additionally track the overall gpu memory usage which
includes process allocations, imported dma bufs and kgsl globals.

Change-Id: Icfee373efc7e84efe90cf20486ae6583eaa4f697
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
Signed-off-by: Mohammed Mirza Mandayappurath Manzoor <mmandaya@codeaurora.org>
Signed-off-by: Neeraja P <neerp@codeaurora.org>
2021-03-12 00:24:30 +05:30
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
Jilai Wang
03139b74fa msm:npu: Add npu virtualization support
This is initial driver change to support npu virtualization.

Change-Id: I8e5070cc3d3b9cd3a1d15d00deeef9700f6428ec
Signed-off-by: Jilai Wang <jilaiw@codeaurora.org>
2021-03-11 11:28:17 -05:00
Vinay Sudra
cd0a4a0cb7 Use environment variable to find unifdef tool for auto target
Add --unifdef option to gen_headers_arm_auto.bp and
gen_headers_arm64.bp.

Change-Id: Ie48e8ae1ff413d6e5c7d6b4ecda6604c12fd9ec5
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-03-11 18:44:27 +05:30
Amir Samuelov
f2508e2eee soc: spcom: unvote for sp regulators
Some power regulators are voted by SPSS UEFI driver,
that needs to be unvote by HLOS.

Change-Id: I6d9f24c3937188b316d5912751c48207f3b8ab85
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2021-03-11 14:29:21 +02:00
Veera Vegivada
cd36cfd9da arm64: defconfig: compile debugcc statically
Compile debugcc driver statically instead of module.

Change-Id: I5f464578bf9946a8ac7d919dc32755a011042757
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2021-03-11 17:34:06 +05:30
Vinay Sudra
63636f6c48 soc: qcom: Add sysfs node to communicate with AOP using QMP protocol
This driver allows clients to send messages to Alway On processor
using QMP transport. Users can echo a frequency into an exposed sysfs
node to send to AOP. The driver expects the Cap frequency of DDR based
on SKU.

Change-Id: I083c1ec2da6990c5815550f897069ff27c6b7617
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-03-11 17:01:21 +05:30
Pratham Pratap
eec9afd56c usb: gadget: Give back request from ep_dequeue
Consider a case where DWC3_DEPCMD_ENDTRANSFER command times out,
then controller will not receive DWC3_DEPEVT_EPCMDCMPLT event and
request queued will not be given back to the function driver from
remove_requests. Now, if a function driver(e.g mass storage)
tries to dequeue the request, gadget driver will move the request
from started_list to cancelled_list but will not giveback the
request to function driver causing it to wait forever for the
transfer to be completed. This can lead the tasks to be in hung
state causing a crash.

Fix this by giving back the request from ep_dequeue by cleaning up
the cancelled requests.

Change-Id: I08b7a766d34992808260788a907054c835402c45
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2021-03-11 03:29:05 -08:00
Singa Reddy Dasari
4e76f79931 defconfig: sdmsteppeauto: enable configs needed for API level 30
Enable Configs for API level 30. These are needed for android support.

Change-Id: I62c0ab4266211716e54a76197e872e8288a10d6a
Signed-off-by: Singa Reddy Dasari <singredd@codeaurora.org>
2021-03-11 16:39:17 +05:30
Singa Reddy Dasari
f760fdede8 defconfig: gen3auto: enable configs needed for API level 30
Enable Configs for API level 30. These are needed for  android support.

Change-Id: Ib59eb8ea8a85c7f2a4af4318353dbe16b033616f
Signed-off-by: Singa Reddy Dasari <singredd@codeaurora.org>
2021-03-11 16:35:12 +05:30
Vivek Pernamitta
84986630be msm: mhi: core: Return error on failure to get tsync time
Return error code on failure to get tsync time though sys entry.

Change-Id: I46302b5af314325f752aaf586b4ca6cd4608d82a
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
2021-03-11 15:49:40 +05:30
Tushar Nimkar
ace7012b96 soc: qcom: rpmh_master_stat: Initialize length to zero
This change initializes length to zero value. This is
needed when rpmh_unit_base is not present.

Change-Id: I91af06a49a69433f119c2b73376606df34820838
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2021-03-11 14:50:11 +05:30
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
Puranam V G Tejaswi
d6b6d0a284 msm: kgsl: Fix invalid pointer reference at a few places
kgsl_allocate_global can fail for global buffer profile_desc. Hence make
sure that an invalid access to the pointer is not made in
set_user_profiling. Similarly allocations for global buffers setstate and
alwayson can also fail. Make sure we don't access an invalid pointer in
adreno_snapshot_global and kgsl_gpuaddr_in_memdesc.

Change-Id: Ia2f314575c5f4357ac8f7a2a72e869e3c648837d
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
2021-03-11 13:16:06 +05:30
priyankar
361cb9feac Disable ASD regulator if HST is attached
This patch contains changes for disabling
ASD regulator if HST is attached.

Change-Id: Ic1f6515861600f8bebc1d065ce51d7df5a3f28db
Signed-off-by: priyankar <prigup@codeaurora.org>
2021-03-10 23:43:55 -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
Yue Ma
03e4123095 cnss2: Remove deprecated CNSS_BDF_DUMMY type
CNSS_BDF_DUMMY type board data file is no longer used. Hence remove
it. A BDF file with regular name and dummy content should be sent as
dummy BDF instead of just sending a dummy string.

Change-Id: I7483a6801584f56ac4e87e2074280291c9734472
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-03-10 11:32:14 -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
Rahul Sharma
baed01d09f defconfig: gen3auto: Enable CONFIG_IOMMU_DYNAMIC_DOMAINS
Enable per process page table for conformance svm test to pass.

Change-Id: I2dcd7974b08e481d74c94e4517f6a1373beaae77
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
2021-03-10 13:26:24 +05:30