Commit graph

891,616 commits

Author SHA1 Message Date
Raghavendra Rao Ananta
6494e39f05 soc: qcom: ipcc: Move the suspend/resume to dev_pm
The target platforms use PM_SUSPEND_TO_IDLE as its default
suspend target. Since syscore_ops's suspend/resume callbacks
are not called in this path, the IPCC driver will never be
able to log the client's details that caused the wakeup in
it's resume handler. Hence, move the suspend/resume handlers
to dev_pm_ops for better visibility.

Change-Id: I095f02217aeea5ed7c5036017a7e960e2b98757a
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-10-13 17:25:44 -07:00
qctecmdr
ae7ebc3fed Merge "hwmon: qti_amoled_ecm: Suppress printing error logs for probe deferral" 2020-10-13 12:29:48 -07:00
qctecmdr
e844181923 Merge "drivers: rpmsg: fix to avoid dump stack in rpm-smd driver" 2020-10-13 12:29:48 -07:00
qctecmdr
29371146ed Merge "msm: kgsl: Don't wait for room in context queue when context is invalidated" 2020-10-13 09:54:30 -07:00
qctecmdr
f9790cb371 Merge "icnss2: Add open loop CPR support" 2020-10-13 09:54:30 -07:00
qctecmdr
9a4517909d Merge "dt-bindings: thermal: Add support for QMI beamer ADC and RF sensors" 2020-10-13 09:54:29 -07:00
qctecmdr
4f3b9ec973 Merge "icnss2: Send enter power save after driver suspend" 2020-10-13 07:26:53 -07:00
Naman Padhiar
3e55e8fb89 icnss2: Send enter power save after driver suspend
In PM suspend of WCN6750, host send WOW Enable to FW
and FW allows target to go to low power mode along
with PCIe link. In Host DP, even after sending WOW
enable it tries to access target for flushing pending
transactions. This will cause NOC error as link is
down.
Send enter power save mode to FW after driver suspend
returns successfully to platform driver and all pending
transactions are flushed. FW will go to low power mode
only after receiveing enter power save mode QMI.

Change-Id: I5dfb257fe3db4dc453bae456c40d19f841e3c5c8
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2020-10-13 18:09:28 +05:30
qctecmdr
836dd39290 Merge "defconfig: sdxlemur: Enable additional defconfigs" 2020-10-13 03:43:22 -07:00
qctecmdr
dbc71214fb Merge "net: qrtr: Return -ENODEV error code if port not found" 2020-10-13 03:43:21 -07:00
qctecmdr
f769cce450 Merge "cpuidle: lpm-levels: Check for valid pointer during hotplug notifications" 2020-10-13 03:43:21 -07:00
qctecmdr
c53f4ac122 Merge "soc: qcom: smp2p: Log unchanged entries" 2020-10-13 03:43:21 -07:00
qctecmdr
c93650c118 Merge "msm: kgsl: Fix the invalid cmdobj message" 2020-10-13 03:43:21 -07:00
Gopala Krishna Nuthaki
bac9091ab9 dt-bindings: thermal: Add support for QMI beamer ADC and RF sensors
Add support for QMI beamer ADC and RF sensors to apps.
It enables these sensors as thermal zone sensors so
that we can read and set trip thresholds via
thermal zone.

Change-Id: I0f56e59a319d0d6ea5b18cadc5eb675a62c485e1
Signed-off-by: Gopala Krishna Nuthaki <gnuthaki@codeaurora.org>
2020-10-13 14:39:23 +05:30
qctecmdr
553154d0b1 Merge "msm: adsprpc: Donate 5MB of DMA memory for Unsigned process" 2020-10-13 01:05:43 -07:00
qctecmdr
844bc64f6a Merge "clk: qcom: smd-rpm: Change the clock voting sequence for holi" 2020-10-13 01:05:43 -07:00
qctecmdr
a27c45236a Merge "serial: msm_geni_serial: Don't use WARN_ON for console uart" 2020-10-13 01:05:42 -07:00
qctecmdr
f725e41fd7 Merge "power: qcom: Fix return value for iio get function for smb" 2020-10-13 01:05:42 -07:00
qctecmdr
17c532e42b Merge "power: smb1351-charger: Add snapshot of smb1351-charger driver" 2020-10-13 01:05:42 -07:00
qctecmdr
70e4cdc780 Merge "dt-bindings: msm: Add bindings isp and pxl path feature ids" 2020-10-13 01:05:42 -07:00
qctecmdr
578cacb8ac Merge "msm: kgsl: make per process stats atomic" 2020-10-13 01:05:41 -07:00
Gopala Krishna Nuthaki
6032b6b559 drivers: qmi_sensor: Add QMI beamer and RF sensors support
Add QMI beamer ADC sensors and RF sensors to qmi sensor
driver. It enables thermal framework can configure thermal zone
and monitor these sensors from apps side.

Change-Id: I217707a3ec90971cb7085a67a34fd92812c3c75c
Signed-off-by: Gopala Krishna Nuthaki <gnuthaki@codeaurora.org>
2020-10-13 13:05:59 +05:30
Harshitha Sai Neelati
d8d0a5138d msm: kgsl: Don't wait for room in context queue when context is invalidated
In a condition where there is no room in the drawcontext queue and the
context is invalidated while sleeping in wait_event_interruptible_timeout,
we are now polling for room after wake up. This would lead to infinite
looping.

Hence, do not wait for room in context queue if context is invalidated.

Change-Id: I12c80e71630da2f3316838bee37f13cfa3b8e7d9
Signed-off-by: Harshitha Sai Neelati <hsaine@codeaurora.org>
2020-10-13 12:42:54 +05:30
Ashish Chavan
bcc613a498 power: qcom: Fix return value for iio get function for smb
Fix return values in iio read functions for smb1398 and smb1355

Change-Id: I258582c937735f6a6c70b368268ad161b35b7746
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
2020-10-13 09:20:35 +05:30
Subbaraman Narayanamurthy
236c04e18a hwmon: qti_amoled_ecm: Suppress printing error logs for probe deferral
When active_panel is not available because of drm driver's probe
deferral, suppress printing error logs.

Change-Id: I210ff1ef79e468fef12b296c552e9611c2e888a8
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-10-12 19:11:55 -07:00
Himateja Reddy
1be85e552d msm: adsprpc: Donate 5MB of DMA memory for Unsigned process
Current code has 4MB of memory being donated to the User process
in DSP for both Signed and Unsigned process. Unsigned process has
extra static heap which requires more memory. Donate 5MB of DMA
memory for creating Unsigned process.

Change-Id: Ib1f75580d9ec61d416a0c268880395e1f3ab10fb
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2020-10-12 18:55:07 -07:00
qctecmdr
c08fb99fe9 Merge "msm-perf: Fixed kzalloc for perf_event" 2020-10-12 12:03:37 -07:00
qctecmdr
cf2f4e74bf Merge "usb: xhci: Reduce command reset handshake timeout" 2020-10-12 12:03:36 -07:00
qctecmdr
8d9a2999e9 Merge "netfilter: nf_conntrack_sip: Register SIP ALG sysctl table into procfs" 2020-10-12 12:03:36 -07:00
qctecmdr
2b55aa2184 Merge "defconfig: sdxlemur: Enable Aquantia forwarding driver" 2020-10-12 12:03:36 -07:00
qctecmdr
0ccebd3b3e Merge "msm: kgsl: Fix kvcalloc() calls" 2020-10-12 12:03:35 -07:00
Maulik Shah
61d682ebe7 cpuidle: lpm-levels: Check for valid pointer during hotplug notifications
get_cpu_device() can return NULL. Add valid pointer check during hotplug
notifications.

Change-Id: I28234ed609fa45a770bb01203f7b5523532088e7
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2020-10-12 21:50:33 +05:30
qctecmdr
917e0c522c Merge "mm: sync rss in speculative page fault path" 2020-10-12 09:03:59 -07:00
qctecmdr
96ec95525b Merge "iommu: arm-smmu: update SID info print" 2020-10-12 09:03:59 -07:00
qctecmdr
74f57baaef Merge "coresight: byte-cntr: Free USB requests when disconnected" 2020-10-12 09:03:59 -07:00
qctecmdr
08176a3c44 Merge "msm: Add dataipa to SDXLEMUR compilation" 2020-10-12 09:03:59 -07:00
qctecmdr
4943f3d693 Merge "soc: qcom: spss_utils: fix SPU SSR during IAR-sw-update" 2020-10-12 09:03:58 -07:00
qctecmdr
77d9d547ef Merge "soc: qcom: socinfo: Add soc information for Yupik" 2020-10-12 09:03:58 -07:00
qctecmdr
95c290bb0c Merge "driver: soc: qcom: update pmu cache status for hotplug" 2020-10-12 09:03:58 -07:00
Jordan Crouse
d77438e242 msm: kgsl: Fix the invalid cmdobj message
The "invalid cmdobj" message printed from kgsl_drawobj.c had a nnumber of
formatting errors.  Make the GPU address hex per convention and make sure
that the offset and size print as unsigned values.

Change-Id: Ic0dedbada14dc64c0234d32a37408a71cb4ba029
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-10-12 09:09:30 -06:00
Jordan Crouse
213d869e5a msm: kgsl: Don't complain if we can't find an IB with a zero GPU address
When grabbing the snapshot don't complain if we can't find an IB at
address 0x0000000000000000.  Obviously such a thing doesn't exist so
don't even bother trying.

Change-Id: Ic0dedbadde29e16185f7a7d3e4d3b1d620697d3a
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-10-12 09:09:30 -06:00
Jordan Crouse
c5f2680903 msm: kgsl: Fix kvcalloc() calls
Depending on user input the size of the page struct that we try to
allocate with kvcalloc() could be way too big. Add __GFP_NOWARN and
__GFP_NORETRY to keep from invoking the OOM killer in these cases.

Also remove an unneeded usage of kvmalloc() since the maximum allocation
size for the HFI command will only be 1k as enforced on the previous
line.

Change-Id: Ic0dedbad8d09544bdc0070b9b797616ee1f672d4
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-10-12 09:09:29 -06:00
Jordan Crouse
0977dc6d53 msm: kgsl: Use system memory for kernel globals
Kernel global GPU memory usually lasts for the life of the driver. It
doesn't make any sense to take them out of the KGSL pool since they will
never be recycled.  Add a flag to allocate 4k pages from system memory
and use them by default for global objects.

Change-Id: Ic0dedbadd0ff1f558d5f9711ec9843451593aee4
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-10-12 09:09:29 -06:00
Jordan Crouse
d014ef6064 msm: kgsl: Make sure that pool pages don't have any extra references
Before putting a page back in the pool be sure that it doesn't have
any additional references that would be a signal that somebody else
is looking at the page and that it would be a bad idea to keep it
around and run the risk of accidentally handing it to a different
process.

Change-Id: Ic0dedbad0cf2ffb34b76ad23e393c5a911114b82
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-10-12 09:09:28 -06:00
Venkata Manasa Kakarla
61e281a286 serial: msm_geni_serial: Don't use WARN_ON for console uart
In handler_isr for console uart cases using warn_on for debugging
issues will further lead into the spinlock recursion where the
interrupt routine holds the spinlock and will try to print log
which again needs to acquire the spinlock.
To resolve this recursion issue replaced the warn_on with IPC logs
for console uart.

Change-Id: I6a0a10ff8c14a8ad6c74652f6d4e6e66ffcee13b
Signed-off-by: Venkata Manasa Kakarla<venkka@codeaurora.org>
2020-10-12 18:24:37 +05:30
Lakshit Tyagi
484f29355d defconfig: sdxlemur: Enable Aquantia forwarding driver
Enable Aquantia forwarding driver for sdxlemur target.

Change-Id: I2bdf0182b6e1abadf973cc7a1dc39beef66d2f6c
Signed-off-by: Lakshit Tyagi <ltyagi@codeaurora.org>
2020-10-12 17:35:09 +05:30
richagar
9cb001dea6 msm-perf: Fixed kzalloc for perf_event
Moved to static memory allocation for perf_events

Change-Id: I2041695a83465ffb1d3e8ebbfe6abf6f2ea39f87
Signed-off-by: richagar <richagar@codeaurora.org>
2020-10-12 03:44:14 -07:00
Sriharsha Allenki
6acfd3f836 xhci: Fix possible interrupt storm with suspend failure
In the case where the xhci_suspend failed because the
controller is not halted within the delay, we see that
the xhc interrupts are not acked and is leading to
a storm of unwanted dwc3_interrupt calls.

Fix this by setting the HCD_FLAG_HW_ACCESSIBLE so that
the interrupts are acked by the xhci_irq.
Once the suspend failure happens, the device does not
respond to any new device connect/disconnect.
So, fix this by restarting the host stack by notifying
the hc_died to the dwc3 glue driver.

Change-Id: Ie383d5eacca428b123c1a071a304df54e087c42e
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-10-12 03:22:51 -07:00
Sriharsha Allenki
5bc4b708d1 xhci: Fix NULL pointer dereference with xhci_irq() for shared_hcd
Commit ("f068090426 xhci: Fix leaking USB3 shared_hcd
at xhci removal") sets xhci_shared_hcd to NULL without
stopping xhci host. This results into a race condition
where shared_hcd (super speed roothub) related interrupts
are being handled with xhci_irq happens when the
xhci_plat_remove is called and shared_hcd is set to NULL.
Fix this by setting the shared_hcd to NULL only after the
controller is halted and no interrupts are generated.

Change-Id: I2c7e460c171eacbf26d0bf7185d563ddb9efb504
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-10-12 03:22:44 -07:00
Pratham Pratap
a65ee977ad usb: xhci: Reduce command reset handshake timeout
Command reset handshake is currently perfomed with local irq
disabled and spinlock held for 10 sec timeout. In this case xHC
becomes unresponsive and results into watchdog bark.
Hence reduce timeout value from 10 sec to 1 sec to initiate
recovery faster.

Change-Id: I9c6682c3f31386033b258d7d4c104f775ec37f1d
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-10-12 03:22:34 -07:00