Commit graph

893,362 commits

Author SHA1 Message Date
Anmolpreet Kaur
ea551156f1 qseecom: Propagate correct return value from TZ
When unload app fails, return the correct return
value that we get from TZ and not translate it to
EFAULT. This will make sure that proper handling is
done at the calling side.

Change-Id: Ie850967e5c44b502b888324291a878d0a467b46b
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
2020-10-08 02:26:01 -07:00
Neeraj Upadhyay
4a851779b1 dt-bindings: ipcc: Rename WDSP client to WPSS
Rename WDSP to WPSS, as per new naming requirement.

Change-Id: If44d6d2e2233b0f2c1cd754216e121494ab005f0
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-10-08 14:39:05 +05:30
Paras Singh Jain
b9f06c10b8 net: core: Dont send ARP probes for NUD_PERMANENET
Whenever a new neighbour is added with the state
NUD_PERMANENT, the ARP probing is removed since
it is not needed.

Change-Id: Id92b24d1b99b8deff91a8e105f7310efc2f21b39
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
2020-10-08 00:47:41 -07:00
Paras Singh Jain
6df2a9aebc net: core: Release neigh lock when neigh_probe is enabled
Release the neighbor lock when timer expires for a neighbor entry
when neigh_probe flag is enabled.

Change-Id: I25aa82bfbba32908b093b53fff85a52d1fd894b2
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
2020-10-08 13:08:56 +05:30
Paras Singh Jain
5b4c8cc3d2 net: core: Send ARP probe and trigger RTM_NEWNEIGH
Send ARP probe and generate RTM_NEWNEIGH if the neighbor
state is not NUD_REACHABLE. Also featurize changes for
sending neighbor probe.

Change-Id: I633285b8e0cbcd49291d5e52136f11e20f2388bc
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
2020-10-08 13:00:39 +05:30
Paras Singh Jain
77f5ad25b0 msm: netfilter: changes to handle contact address modification in SIP ALG
SIP ALG mangles contact address only when both address and port are
mentioned. Some clients send only address information in which case
the contact address does not get mangled an hence SIP call does not
get established.

Change-Id: Ie760f6fcc6dd8e269b057488414b23beff4e8fc3
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
2020-10-08 00:20:19 -07:00
Deepak Kumar Singh
3b50159e8c net: qrtr: Return -ENODEV error code if port not found
Post function is called from interrupt context. Returning same
error code in all cases rsults in excessive prints which can
cause irq throttling.

Return -ENODEV when port lookup fails in post function.

CRs-Fixed: 2790559
Change-Id: I75384b2116cb2fe1bbeaa2dac91157345f0bab54
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-10-08 10:55:42 +05:30
Karthik Poosa
6d80433c1d NFC: Add IPC logging of NCI Commands and responses of NFC I2C driver
The output file is  /d/ipc_logging/nq-nci/log_cont.

Change-Id: I4d6bf8f2b888ac3d720b8515682ee1b3fa769866
Signed-off-by: Karthik Poosa <kpoosa2@codeaurora.org>
2020-10-08 10:48:40 +05:30
Elson Roy Serrao
fa52163c3a usb: dwc3: Add logging for ep0 map/unmap requests
Log the ep0 dma map/unmap request  in the IPC log buffer
for debugging SMMU faults.

Logs can be accessed using below command
cat /sys/kernel/debug/ipc_logging/a600000.dwc3.ep_events/log.

Change-Id: If5587b8ba59451593968999b59cd61f2a469fe1c
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
2020-10-08 10:19:27 +05:30
Ajay Agarwal
49ceb526b2 usb: phy: snps: Enable auto resume feature only in host mode
'Commit f62b4c27d0df ("usb: phy: snps: Enable auto-resume during
host mode bus suspend")' started enabling USB auto resume for
peripheral mode bus suspend as well. If the auto resume feature
is enabled in device mode, the device is unable to detect the
resume signalling by the host in some cases. And the auto resume
feature is applicable only in host mode.
So, enable the auto resume feature only in host mode.

Change-Id: I59155bc122ac4f5c9bb04cb4ff487c7a6ba89e47
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2020-10-07 21:42:42 -07:00
Armaan Siddiqui
8dbc1fac4f msm: ipa: ioctl to receive mac addr list and parental control flag
ioctl to receive mac addr list and parental control
flag from QCMAP to enable data offload to HW or
exception path.

Change-Id: Ifaec105e4970f0418bac43e2ce4eba9c5b7fa5be
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
2020-10-08 01:48:41 +05:30
Taniya Das
d06d88cb08 clk: qcom: gpucc: Update the PLL 2x frequency
The GPUCC PLL needs to lock at 2x the RCG frequency, thus update the RCG
divider to '2' to lock the PLL at 2x.

Change-Id: Iadeb8b03cf10c170efa8b11bf9aadc35f67ce736
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-10-08 00:58:56 +05:30
qctecmdr
5702001dfb Merge "haven: hh_dbl: Add missing unlock in hh_dbl_validate_params" 2020-10-07 12:10:27 -07:00
qctecmdr
052304f2c9 Merge "mmc: core: Select HS mode in device first and then in the host" 2020-10-07 12:10:26 -07:00
qctecmdr
ceac5f30ac Merge "minidump: use *_irqsave() and *_irqrestore() API's for minidump locks" 2020-10-07 12:10:26 -07:00
qctecmdr
c9df82f9bc Merge "power: smb1398: Update adapter_type in the work-queue's context" 2020-10-07 12:10:26 -07:00
qctecmdr
eccbaefe84 Merge "msm: ipa: interface to provide pdn configuration" 2020-10-07 12:10:25 -07:00
qctecmdr
f5a31e044e Merge "clk: qcom: camcc: Update camcc_cphy_rx Fmax corner for Shima" 2020-10-07 12:10:25 -07:00
qctecmdr
f98e28a053 Merge "defconfig: sdxlemur: add support for net, iptables and netfilter" 2020-10-07 12:10:25 -07:00
qctecmdr
83a71adbff Merge "haven: Remove unused constants" 2020-10-07 12:10:24 -07:00
qctecmdr
6dcc24a002 Merge "iommu/arm-smmu: add qsmmuv2 sync timeout handler" 2020-10-07 12:10:24 -07:00
qctecmdr
8fb4ad599c Merge "arm64: defconfig: Disable LOCKUP_DETECTOR for lahaina QGKI" 2020-10-07 12:10:24 -07:00
qctecmdr
ecc87fe5e2 Merge "mtd: msm_qpic_nand: Add snapshot of QPIC nand driver" 2020-10-07 12:10:23 -07:00
qctecmdr
409ef17263 Merge "iommu: arm-smmu: add capturebus support for smmuv500" 2020-10-07 12:10:23 -07:00
Jack Pham
3741fb2cfb coresight: byte-cntr: Free USB requests when disconnected
When receiving USB_QDSS_CONNECT notification, 255 USB requests
are allocated before starting the worker thread to begin writing
to USB QDSS function driver. Conversely when USB_QDSS_DISCONNECT
is received, these requests need to be freed. Without doing so,
besides causing a slow memory leak, the existing requests would get
incorrectly re-used and may fail if the USB endpoint changed due
to a composition switch.

Change-Id: I328e110719fab374827ac69c8b60274f65ec81e2
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-10-07 11:53:00 -07:00
David Collins
7c8ba7bc3d dt-bindings: regulator: rpmh-regulator: add new voltage levels
Add constants for voltage levels: LOW_SVS_D1, TURBO_L2,
SUPER_TURBO, and SUPER_TURBO_NO_CPR.

Change-Id: I0ef80f3d0d45df259ba24a8b942538b706b07ede
Signed-off-by: David Collins <collinsd@codeaurora.org>
2020-10-07 10:42:05 -07:00
Amir Samuelov
e0e663e321 soc: qcom: spss_utils: fix IAR-DB-Recovery
Read calculated cmacs on SUBSYS_AFTER_POWERUP event.
Allow user space to get the calc cmac regardless of ioctl.

Change-Id: I91d87c657a2217f467d3630e0dce41c98497d8bd
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2020-10-07 09:38:44 -07:00
Harshdeep Dhatt
2a826db07d msm: kgsl: Hook preemption sysfs nodes to hwscheduling
With hwscheduling, we need to communicate the preemption parameters
to GMU. Also, we need to use GET_VALUE hfi packet to get the
number of preemptions since last SLUMBER exit.

Change-Id: I2ab342817a3cea4e1d1797369aa272895730357b
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-10-07 08:38:12 -06:00
Harshdeep Dhatt
4f3a132f88 msm: kgsl: Move preemption sysfs nodes to dispatcher
This paves the way to hook preemption sysfs nodes to hwscheduling
which need to talk to GMU when changing preemption parameters
via sysfs.

Change-Id: I6940dbf294ad71a18b2dcded207cbacf18ba661d
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-10-07 08:38:11 -06:00
Harshdeep Dhatt
c7fdd108da msm: kgsl: Enable preemption for hwscheduling enabled devices
Send the HFI feature control packet to the GMU in order to enable
preemption.

Change-Id: Ic00e3943bceb29feb28740dbadd3fb7c6fdc562b
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-10-07 08:38:11 -06:00
Harshdeep Dhatt
a920566522 msm: kgsl: Enable secure buffers via memalloc packets
This is to allow GMU to request secure gpu global buffers.

Change-Id: Iacef726ee3abe02b56178f475ebe9835649a868c
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-10-07 08:38:10 -06:00
Harshdeep Dhatt
83db7b2733 msm: kgsl: Correctly mask out the OOB bits
The result of GENMASK needs to be inverted so that the
handler doesn't report OOB bits as unknown bits.

Change-Id: I3e39334a6dd79343109591b043c9aa30a8bdff9d
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-10-07 08:38:09 -06:00
Harshdeep Dhatt
640c8e1be7 msm: kgsl: Print global memory flags in debugfs
With hwscheduling, the flags are requested by GMU outside
of kgsl domain. Printing these flags helps to know the flags
as requested by GMU.

Change-Id: I71d19ead02e115c0a4ead9861de9afd2a0dd2608
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-10-07 08:38:09 -06:00
Harshdeep Dhatt
738e1770d6 msm: kgsl: Make sure dispatch jobs are not lost due to faults
Say a context has only one submission i.e. it has only one dispatch
job. And say gpu encounters a fault and sets dispatcher fault. The
dispatch job will be free'd and post recovery, the context will never
get to the ringbuffer until it queues another submission. This behaviour
holds true in cases where dispatcher is halted for example during
suspend. So in either case, add back the job the the dispatcher jobs
list to make sure the job is not lost.

Change-Id: Iec0a0abfbdcf2535d7f82ec1e286581e1c93a3ea
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-10-07 08:37:22 -06:00
Ashish Bhimanpalliwar
36bfb6be19 arm64: defconfig: Enable serial console for GKI
To help debug, enable serial console for GKI
images.

Change-Id: Idfa6803b71bc19625875e0ae1bb2b93295760010
Signed-off-by: Ashish Bhimanpalliwar <abhiman@codeaurora.org>
2020-10-07 18:15:15 +05:30
Santosh Mardi
a4b0d927d8 drivers: soc: qcom: suppress platform driver bind / unbind feature
For rimps_log and qcom_rimps platform driver does not
support the manual bind / unbind feature through sysfs,
Suppress the bind / unbind calls using driver attribute.

Change-Id: I9734d62e19ef16b01039757a92ef2489baea91b3
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2020-10-07 17:42:24 +05:30
Neeraj Upadhyay
2b27a3a55f soc: qcom: Correct idle task check for stack capture
Correct the idle task check, to be done on 'next'
task, instead of current task, while registering
current task's stack.

Change-Id: I8c4fde434b3eca0543c5748234ebabbd40da8672
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-10-07 17:23:37 +05:30
Sharat Masetty
0e47811b36 msm: kgsl: Call dma_buf_unmap_attachment() early
When we import an ION buffer, we call the dma_buf_map_attachment().
The intent is to not map it to the dma device(which in this case is the
KGSl device), but to only get the sg_table. Once we have the sg_table
we later map the physical pages to the GPU SMMU manually and not by using
the dma device ops.

The ION driver as part of the partial cache maintenance requires that
all the sg_tables of the attached devices to the buffer have a single
segment. This creates a problem for KGSL since in this case the kgsl is
a dummy device, so the buffer for KGSL always has multiple segments.

This patch calls the dma_buf_unmap_attachment() as soon we get a hold of
the sg_table as doing so a) we don't need the buffer to be mapped to a
dummy device, b) removes the buffer from the cache maintenance constraints
of the ION driver.

Change-Id: I0675e62c4a27b4e368d53ea6310c9244b687baa6
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
2020-10-07 17:00:37 +05:30
Kamal Agrawal
1ae5336be1 msm: kgsl: Enable BCL feature on A660 GPU variant
Enable BCL feature on A660 GPU variant.

Change-Id: Ibea165c769850fd1a289e9a20d48950827187199
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
2020-10-07 14:29:08 +05:30
Neeraj Upadhyay
ee6d9aec77 soc: qcom: socinfo: Add soc information for Yupik
Add SOC ID to support socinfo for Yupik SOC.

Change-Id: Ie552bdff85f9ada478b3e102addc365e624c310c
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-10-07 12:25:22 +05:30
Pratham Pratap
884d36b0e0 usb: dwc3: gadget: Add delay for EPCMDCMPLT
In some cases issuing end_transfer command as part
of remove requests to eps is taking around 2ms for
the endpoint command complete interrupt(EPCMDCMPLT).
And before EPCMDCMPLT interrupt driver has already
unmapped the request which controller may access leading
to SMMU fault. Fix this by adding delay before giving
back the requests to gadget driver.

Change-Id: Iba10f5337a43c5f7db702321f6dce3b5e1b1af44
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-10-07 12:18:45 +05:30
Pratham Pratap
3e007f7d87 usb: dwc3: Avoid CLR block DB if run/stop is cleared
It is required to SET block doorbell to GSI to avoid USB wrapper
from ringing doorbell before queuing stop xfer command to GSI
endpoint as part of stopping controller and CLR block doorbell to
GSI after queuing start xfer command to GSI endpoint.

Since ipa_work_handler runs in workqueue context there is a possiblity
that CLR block doorbell will happen even after run/stop is
cleared which may lead to SMMU fault. Avoid this by adding a check
for pullups_connected before clearing block doorbell.

Change-Id: Iedb8a96da197834169bdabae6381c974d50c95de
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-10-07 12:04:14 +05:30
Vijayanand Jitta
65dc20bfc6 arm64: defconfig: Enable KPROBES_DEBUG config for holi
Enable CONFIG_KPROBES_DEBUG for holi to enhance debugging.

Change-Id: I9737cd61526685627031e4edaf7d7cd5e36de706
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-10-07 11:52:00 +05:30
Vijayanand Jitta
e4301e9b30 arm64: defconfig: Enable KPROBES_DEBUG config for lahaina
Enable CONFIG_KPROBES_DEBUG for lahaina to enhance debugging.

Change-Id: I80d63dd9172e23c38dcf7778cb8a857571ab81fe
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-10-07 10:46:10 +05:30
Ajay Agarwal
2e6a2a5f93 usb: dwc3: gadget: Ensure minimum delay between run/stop
Some controller hardware, such as DWC3, need a minimum delay
between removing and re-applying the pullups in order for the
host to properly detect a soft disconnect and for subsequent
re-enumeration to succeed. Keep track of the last time run_stop
was updated and delay if necessary so that enough time will
have elapsed before calling run_stop clear/set again.

Change-Id: I8ca13304edf4c9fcc3093a063a6004bd8b76ed44
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-10-07 09:57:22 +05:30
Asutosh Das
ddee859018 scsi: ufs-qcom: Check for fsm state only in task context
A spinlock recursion happens if fsm state is dumped in irq
context. Only dump the fsm state in task context.

Change-Id: I73f38607b97ddb693c9bd1c885ffe6b297dc9aea
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-10-06 15:02:37 -07:00
Deepak Kumar Singh
13a0a61899 qrtr: ns: create kthread worker to process ns work
If worker is not processing packets on control port fast enough,
socket buffer may get full and result in drop of control packets.

Creating dedicated worker thread to process control packets.

CRs-Fixed: 2763561
Change-Id: I4585015cef2a507a9ba13014cd93f40e60f8a25a
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-10-06 22:50:09 +05:30
Sandeep Singh
d9050c4af5 icnss: Assign priority for icnss modem notifier callback
This change is to ensure that modem notifier callback for
icnss2 driver gets called before it gets called for IPA.
In one scenerio, wlan driver holds rtnl lock before
trying to send WMI message to wlan fw, During same time
watchdog bite happened on modem and IPA received modem
notifier callback. Here IPA is also trying to hold rtnl lock
which is held by wlan driver which never got released as driver
is not aware of watchdog bite on modem. In this case
icnss driver is not getting modem notifier callback.This
change ensures modem notifier gets called for wlan first
and rtnl lock held by wlan driver gets released.

Change-Id: I9effd300f6b22138baec59a03a9c4bceb87a8130
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
2020-10-06 20:07:10 +05:30
Prasadarao Durvasula
20b3ac8ba2 drivers: rpmsg: fix to avoid dump stack in rpm-smd driver
While rpm driver flushing messages in lpm mode, use
rpmsg_trysend instead of rpmsg_send to avoid the dump stack.
qcom_smd driver is going to sleep when tx ring buffer is full
if rpmsg_send is used while flushing. rpm-smd is using spinlock
while flushing the messages. Under spinlock it should not go to sleep.
dump stack is shown because of this. Use rpmsg_trysend to avoid
showing dump stack.

Change-Id: I02ac6c273d49bbfd329c1be9820c53f637052b41
Signed-off-by: Prasadarao Durvasula <pdurvasu@codeaurora.org>
Signed-off-by: Sivasri Kumar Vanka <sivasri@codeaurora.org>
2020-10-06 20:03:13 +05:30
Raghavendra Kakarla
9cc9f7b892 rpm-smd: Remove redundant spinlocks which are not required
As rpmsg takes care of locking when sending data, this patch
removes the redundant locking by removing the smd_write spinlock.

Also this patch reverts the 'commit 808861b856d1 ("drivers: rpmsg:
fix to avoid dump stack in rpm-smd driver")' which is not required
after removing extra spinlocks.

It removes the unsed smd_read spinlock aswell.

Change-Id: I7b15d19add2c4da876aa127be233331b58d3c8ae
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-10-06 19:58:38 +05:30