Commit graph

891,678 commits

Author SHA1 Message Date
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
Paras Singh Jain
15bcf3763b defconfig: sdxlemur: Enable additional defconfigs
Enable defconfigs like NATTYPE, VLAN etc.

Change-Id: Ia70577e11fc75cad17fbb3930956de340ed7223e
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
2020-10-12 15:36:12 +05:30
Naman Padhiar
c8abb1291b icnss2: Add open loop CPR support
Open loop CPR (core power reduction) is a power save feature that
configs certain voltage for WLAN power rails at runtime. Firmware
will read fuse and calculate the proper voltage and then send it to
CNSS driver. CNSS driver then configs the voltage to WLAN PDC using
TCS command through RPMh. This is to make sure the proper voltage
can be updated during runtime instead just hardcode and vote fixed
value for WLAN power rails.

Change-Id: I631712d0f569a22a7ed7b3ede892f701152ce5f8
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2020-10-12 14:01:58 +05:30
Santosh Mardi
40f6a6ce31 driver: soc: qcom: update pmu cache status for hotplug
When the core is coming up online during hotplug, set pmu cache
status flag to PMU_MAP_INVALID until new pmu map is updated
to RIMPS. This update is needed to discard the cached pmu
values until new pmu map is sent to RIMPS and pmu cache flag
is updated to PMU_CACHE_INVALID.

Change-Id: I24fe117c4cb0e20a154b0dfe6b0af04d244d0bdc
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2020-10-12 01:19:14 -07:00
Kavya Nunna
d3490070dd power: smb1351-charger: Add snapshot of smb1351-charger driver
Add snapshot of the smb1351-charger driver as of msm-4.14
'commit 071bcab9a84d ("ARM: dts: msm: Add UFS support for
kdump kernel on sa8195")'.

Change-Id: I6e0aec2556c659d48ad0c1f785f26143346dcbf0
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2020-10-12 13:40:12 +05:30
Amir Samuelov
9872707b31 soc: qcom: spss_utils: fix SPU SSR during IAR-sw-update
Fix buffer overflow on memcpy().
memcpy size of u32 on bool variable.
memcpy() to "is_ssr_disabled" overwrites "is_iar_active" to zero.

Change-Id: If7b9ca9149feb54a37fbb0eef7300fa8021d4e54
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2020-10-12 10:13:52 +03:00
qctecmdr
49eff519b8 Merge "usb: misc: nb7vpq904m: fix recovery mode issue" 2020-10-11 23:32:55 -07:00
qctecmdr
0fc0415bbf Merge "defconfig: sdxlemur: Enable CPU, debugcc, and aop clock driver" 2020-10-11 23:32:55 -07:00
qctecmdr
e1edb18643 Merge "icnss2: Fix race condition during SOC wake req/release" 2020-10-11 23:32:54 -07:00
Neeraj Upadhyay
cc1b31a0b9 soc: qcom: Fix memcpy operations in ramdump_read
Currently, for device memory addresses, which are not
aligned on 8 byte boundary, ramdump_read() copies the
bytes till the start of next aligned address. However,
this calculation does not take into account the case,
where copy_size is less that the number of bytes till
next alignment. This causes memcpy to copy device
memory to region, which is outside of the allocated
buffer. Fix this by copying only the copy_size buffer
for this case.

Change-Id: I918ab5886d664f89c0eebd99972f5b9960e1ae00
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-10-12 09:45:39 +05:30
Naman Padhiar
4fdb5b1f58 icnss2: Fix race condition during SOC wake req/release
Read ref count in soc event work to avoid race between
reading and updating ref count.

Change-Id: Ife9249cc4c76577a0ccd7113d17cef3fd703215a
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2020-10-12 09:36:20 +05:30
qctecmdr
5efe160642 Merge "msm: kgsl: Correct sequence of FAL register programming" 2020-10-11 21:05:00 -07:00
Naveen Yadav
d10a4ca4e8 defconfig: sdxlemur: Enable CPU, debugcc, and aop clock driver
Enable CPU, debugcc, and aop clock driver for sdxlemur device.

Change-Id: Ib5bc295b028cfaa7e9a86f7d829edb4b5b63c752
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-10-11 20:43:54 -07:00
qctecmdr
3b62fcac37 Merge "msm: ipa: add support to 15 PDN offload via IPA" 2020-10-10 15:58:32 -07:00
qctecmdr
1ed555d376 Merge "power: battery: Add "cp" prefix to cp iio channel names" 2020-10-10 15:58:32 -07:00
qctecmdr
f552d63dd3 Merge "arm64: defconfig: Enable KPROBES_DEBUG config for holi" 2020-10-10 15:58:32 -07:00
qctecmdr
04dbf0cc63 Merge "qrtr: ns: create kthread worker to process ns work" 2020-10-10 15:58:32 -07:00
qctecmdr
4de15df2a9 Merge "Netfilter: Fixes for NATTYPE module compilation" 2020-10-10 15:58:31 -07:00
qctecmdr
5c5d0402a3 Merge "power: smb1390: Add snapshot of SMB1390 charger driver" 2020-10-10 15:58:31 -07:00
qctecmdr
e1c78091e0 Merge "haven: avoid sleeping in atomic context messages" 2020-10-10 15:58:31 -07:00
qctecmdr
b88965ac23 Merge "cpufreq: qcom: cpufreq-hw: Add check for get_cpu_device before usage" 2020-10-10 15:58:30 -07:00
qctecmdr
447c86bf8e Merge "irqchip: qcom-pdc: Add yupik target support" 2020-10-10 15:58:30 -07:00
qctecmdr
ad8fad03db Merge "msm: kgsl: Initialize drawctxt active node earlier" 2020-10-10 13:03:50 -07:00
qctecmdr
648eef465f Merge "soc: qcom: pmic_glink: Switch using rpmsg_send() to avoid random Tx failure" 2020-10-10 13:03:50 -07:00
qctecmdr
37538bd8f3 Merge "msm: kgsl: Add a6xx GMU performance counters" 2020-10-10 13:03:49 -07:00
qctecmdr
ae1bc95178 Merge "i2c-msm-v2: Add snapshot of I2C MSM V2 driver" 2020-10-09 23:27:00 -07:00
qctecmdr
7227f23d1b Merge "defconfig: Enable PD PHY and Policy Engine drivers" 2020-10-09 23:27:00 -07:00
qctecmdr
bc56a05ec1 Merge "usb: typec: Fix setting of invalid value of opmode" 2020-10-09 23:26:59 -07:00
qctecmdr
8e667df6ea Merge "icnss2: Decrement soc wake ref count" 2020-10-09 23:26:59 -07:00
qctecmdr
d94c867814 Merge "drivers: edac: Add Lahaina CPU gold core part id for kryo edac" 2020-10-09 23:26:59 -07:00
qctecmdr
e67160ef2e Merge "devfreq: suppress platform driver bind / unbind feature" 2020-10-09 23:26:58 -07:00
qctecmdr
aed3a1d275 Merge "qseecom: Propagate correct return value from TZ" 2020-10-09 23:26:58 -07:00
qctecmdr
6ce647ffc5 Merge "drivers: soc: qcom: avoid double initialization of kobj" 2020-10-09 23:26:57 -07:00
qctecmdr
5ebcf96bc1 Merge "usb: phy: snps: Enable auto resume feature only in host mode" 2020-10-09 23:26:57 -07:00
qctecmdr
5059a9a959 Merge "icnss: Assign priority for icnss modem notifier callback" 2020-10-09 23:26:56 -07:00
qctecmdr
ef8a05b233 Merge "msm: mfd: Enable MFD for sdxlemur" 2020-10-09 23:26:56 -07:00
qctecmdr
62e96d5e30 Merge "clk: qcom: gcc-shima: Remove support for CPUSS clocks" 2020-10-09 23:26:56 -07:00
qctecmdr
919c7a1748 Merge "sched: fix suspicious RCU usage warning" 2020-10-09 23:26:55 -07:00
qctecmdr
cce34db982 Merge "icnss2: Remove voltage vote for vdd-cx-mx after probe" 2020-10-09 23:26:55 -07:00
qctecmdr
6ddd62fb25 Merge "block: fix get_max_io_size()" 2020-10-09 23:26:54 -07:00
qctecmdr
d766c1b407 Merge "icnss2: Export API to host driver to exit power save" 2020-10-09 23:26:54 -07:00
qctecmdr
6a87b71ed6 Merge "net: core: Dont send ARP probes for NUD_PERMANENET" 2020-10-09 23:26:53 -07:00
qctecmdr
3ac04f8508 Merge "msm: netfilter: changes to handle contact address modification in SIP ALG" 2020-10-09 23:26:53 -07:00
qctecmdr
be2a3c90cc Merge "msm: kgsl: Move a6xx perfcounters to target specific" 2020-10-09 23:26:52 -07:00
qctecmdr
27425aa42d Merge "defconfig: sdxlemur: Add support for BLSP UART" 2020-10-09 19:37:41 -07:00