gpudev->preemption_context_init() can fail and invoke
adreno_drawctxt_detach(). This causes a crash because
drawctxt->active_node is not initialized.
Change-Id: I201759316cfa5dc831e1987d209c73efb97bb9ee
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
Need to turn off interrupts if we encounter an error
other than a gmu fault or timeout.
Change-Id: If4261f5a2c8ce63bceede3a460faca0353817a39
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
A GMU assert puts GMU in NMI so it will no longer be responsive
and hence triggering recovery is important. Also, trigger recovery
on WDOG or CM3 fault interrupt from GMU. Make sure snapshot and
reset is only triggered if device was active. Also, clear the
CM3 fault every SLUMBER exit.
Change-Id: I9d6a063470bcd082a9cbecc5b8dcf0a412713bb1
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
Currently blocking calls are made from atomic context in doorbell and
message queue drivers. Modify the code flow to avoid kernel warnings
when drivers are initializing.
Change-Id: Iae851d5d7e09210a8fb617da0e2cc4cc52c0f258
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Define isp hw and isp hw pix path feature ids. This feature
information used for some target skus to check the particular
isp hw instance supported or not during the probe time.
Change-Id: I1bb4de1c90152d392b9e531299049286fd03d8b2
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
This change adds a snapshot of QCOM SPS DMA driver
from the msm-4.19 'commit 8b158709ddb7 ("qcom-sps-dma:
Add snapshot of QCOM SPS DMA driver"")'.
Change-Id: Ie340044913dfe8638b0ba336e67e51386432826a
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
This change adds a snapshot of SPI BLSP driver
from the 4.19 branch.
This is snapshot of the SPI BLSP driver as of
msm-4.19 'commit 717e1e28321a ("Merge "SPI:
spi_qsd: Add snapshot of SPI QSD driver"")'.
Change-Id: I9ce403c8d64aac6e916fa9e213ade59ebc213c5b
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
In rimps_memlat driver the rimps_kobj is initialized twice
once while creating and another while initializing and adding
to the parent kobj, which resulted in kernel warning.
Fix the double initialization of rimps_kobj.
Change-Id: I95c03d83f63cffd506b2f3ee36f1a6da9f4f1d31
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
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>
Rename WDSP to WPSS, as per new naming requirement.
Change-Id: If44d6d2e2233b0f2c1cd754216e121494ab005f0
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
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>
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>
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>
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>
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>
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>
'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>
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>
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>
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>