Commit graph

892,000 commits

Author SHA1 Message Date
Siddartha Mohanadoss
e7ff4a4ecf msm: ep_pcie: Clear PERST_RAW_RESET_STATUS after link training
Clear AOSS_CC_RESET_STATUS::PERST_RAW_RESET_STATUS
after PCIe link training in HLOS. Failure to clear it in
HLOS will result in PBL to consider it a controller reset
pending state during warm reset and initiate a controller
reset even if the PCIe link is up.

Change-Id: I3e5b89181be29062f79e4c5ace1863124367c72c
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2020-11-06 09:23:23 -08:00
Siddartha Mohanadoss
b3b4878e49 msm: ep_pcie: Add support to control pipe clock mux
Toggle between tcxo and phy pipe clock as part of
LPM sequence. Switch the source to XO before disabling
PCIe gdsc to avoid PCIe gdsc to be stuck until source
is switched to XO.

Change-Id: Ie2044da622962ff316319e7891974621e5c0ee92
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2020-11-06 09:23:17 -08:00
Siddartha Mohanadoss
77bd2d1044 msm: ep_pcie: add PCIe endpoint driver snapshot
Snapshot of PCIe endpoint driver as of msm-4.14.

'commit <adeff59> (""drivers: clk: msm:
fix compilation for non DEBUG_FS build"")'.

The following changes were done:
-Replace msm_bus driver with interconnect framework.
-Remove iommu deprecated API's.
-Fix checkpatch warnings on usage of module param.
-Fix several checkpatch warnings.

Change-Id: I04ee8f5d5802af0aa0cdd607a79c91e3eca7f194
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2020-11-05 09:50:23 -08:00
qctecmdr
06a7c1dba5 Merge "linux: rmnet: add RMNET IOCTL for set MTU" 2020-11-04 06:07:47 -08:00
qctecmdr
ee912b37f3 Merge "msm: kgsl: Add support for RDPM frequency register writes" 2020-11-04 06:07:46 -08:00
qctecmdr
47bb7dd59c Merge "cnss2: Control ADSP power collapse based on WLAN state" 2020-11-04 06:07:46 -08:00
qctecmdr
92bbd73111 Merge "cnss2: Overload QDSS trace save indication for generic mem dump" 2020-11-04 06:07:46 -08:00
qctecmdr
8693b60144 Merge "usb: gadget: qdss: Add NULL check against channel with usb_qdss_free_req()" 2020-11-04 06:07:46 -08:00
qctecmdr
9d8a1b1f7a Merge "sched: fix compile issue" 2020-11-04 06:07:45 -08:00
qctecmdr
8c86f95982 Merge "drm/bridge: lt9611uxc: add hpd support for lt9611uxc" 2020-11-02 20:59:38 -08:00
qctecmdr
c0d9738fcd Merge "Merge android11-5.4.61+ (874de1d) into msm-5.4" 2020-11-02 20:59:38 -08:00
qctecmdr
160bf6e6d6 Merge "pci: msm: Add support to handle DRV power collapse" 2020-11-02 20:59:38 -08:00
qctecmdr
770c7141e8 Merge "arm: defconfig: Enable TSENS driver for sdxlemur" 2020-11-02 20:59:37 -08:00
qctecmdr
6da09c4559 Merge "clk: qcom: gdsc-regulator: Extend the support for ACD reset" 2020-11-02 20:59:37 -08:00
qctecmdr
e43996e3bb Merge "msm: kgsl: Don't skip gmufw preallocations during firmware read" 2020-11-02 20:59:37 -08:00
qctecmdr
69a33a0555 Merge "mtd: msm_qpic_nand: Add a check to read an ONFI parameter page" 2020-11-02 20:59:36 -08:00
Biao Long
cebe8679d5 sched: fix compile issue
Root_task_group is acessed outside CONFIG_SCHED_CGROUP
and it results in compilation error.so add macro check
here to avoid compile issue.

Change-Id: Ic3ce1962236f8114f8b03aca8ebd1c8fbd42a076
Signed-off-by: Biao Long <blong@codeaurora.org>
2020-11-03 10:20:17 +08:00
qctecmdr
b728422299 Merge "usb: gadget: configfs: Correct usb functions order for UDC gadget bind" 2020-11-02 17:15:19 -08:00
qctecmdr
19a1e02a64 Merge "coresight-tmc-etr: Check if page is valid before dma_map_page" 2020-11-02 17:15:19 -08:00
qctecmdr
c648646142 Merge "msm: kgsl: Granule Fill Override Enable" 2020-11-02 17:15:18 -08:00
Mayank Rana
8b51dad4aa usb: gadget: qdss: Add NULL check against channel with usb_qdss_free_req()
USB requests are being freed from 2 context from Linux QDSS driver:
1. usb_qdss_close()
2. explicitly calling usb_free_request() on receiving USB_QDSS_DISCONNECT

usb_qdss_close() is setting drvdata->usbch to NULL. Hence it ends up
passing usbch as NULL while calling usb_free_request() when handling
USB_QDSS_DISCONNECT. Fix this NULL pointer dereference issue by explicitly
checking USB channel against NULL with usb_qdss_free_req().

Change-Id: Ia55a30b09ab1f94db15947b984fd232a33da7788
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-11-02 16:32:09 -08:00
Michael Adisumarta
7fd9068d97 linux: rmnet: add RMNET IOCTL for set MTU
Add a new define for rmnet ioctl for setting MTU.

Change-Id: Ia3575605fc5066d0b98f1da252742e52ecbc3f11
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-11-02 14:43:37 -08:00
qctecmdr
244ab508be Merge "cnss2: Donot reserve TCS register space for WLAN" 2020-11-02 14:03:14 -08:00
qctecmdr
bad0254793 Merge "Bluetooth: Don't reserve TCS register address" 2020-11-02 14:03:12 -08:00
qctecmdr
eb72ab27a7 Merge "mmc: core: Fix clk scaling deadlock with irqsave" 2020-11-02 07:48:27 -08:00
qctecmdr
b5b0299091 Merge "usb: dwc3: Stop active transfer on control endpoints" 2020-11-02 07:48:27 -08:00
qctecmdr
30a9d161da Merge "qcom: qcom_ipcc: request ipcc irq IRQF_NO_SUSPEND" 2020-11-02 07:48:27 -08:00
qctecmdr
a40869b2ca Merge "defconfig: holi: Enable Incremental FS as module" 2020-11-02 07:48:26 -08:00
qctecmdr
6e0ca20610 Merge "serial: msm_geni_serial: memset RX buffer to Zero" 2020-11-02 07:48:26 -08:00
qctecmdr
bf4800b509 Merge "input: qcom-hv-haptics: switch API to trigger PBS for ISC configuration" 2020-11-02 07:48:26 -08:00
qctecmdr
67a8905131 Merge "mm: oom: wait for exit of killed current task" 2020-11-02 07:48:26 -08:00
qctecmdr
e2ad70a354 Merge "NFC: Add fix for CTS issue of IPC log file creation failed" 2020-11-02 07:48:25 -08:00
qctecmdr
b1189d1d9c Merge "msm: kgsl: Call dma_buf_unmap_attachment() early" 2020-11-02 02:18:44 -08:00
qctecmdr
e350f2d4e0 Merge "f2fs: fix indefinite loop scanning for free nid" 2020-11-02 02:18:44 -08:00
qctecmdr
621f4c9069 Merge "uapi: ipa: Support uc header proc ctx for DSCP insertion" 2020-11-02 02:18:44 -08:00
qctecmdr
bb2468e73f Merge "icnss2: Avoid race between SOC WAKE REQ/RESP" 2020-11-02 02:18:44 -08:00
qctecmdr
e6c07194da Merge "msm: kgsl: Store power_interval_timeout in msec" 2020-11-02 02:18:43 -08:00
qctecmdr
b3a0fafb1c Merge "clk: qcom: Add sync-state callback for clk-aop-qmp" 2020-11-02 02:18:43 -08:00
Taniya Das
2cc43ca942 clk: qcom: gdsc-regulator: Extend the support for ACD reset
In the case where the SW reset requires an additional ACD block reset or
misc reset, the support is added for the same.

Change-Id: I29b69f2a4ccc33a896ec8e201cbe761cca6800ea
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-11-02 15:36:40 +05:30
Wenjun Zhang
85cee8cd34 drm/bridge: lt9611uxc: add hpd support for lt9611uxc
When HDMI cable was pluged in/out, it could trigger an irq,
MSM can get HPD status from LT9611, and report the HPD status
using kernel uevent to userspace.

Change-Id: I47c148d92e877a80147ee81498513ead0e4afcf0
Signed-off-by: Wenjun Zhang <wjzhan@codeaurora.org>
2020-11-01 23:16:16 -08:00
Chandana Kishori Chiluveru
fbf383ace3 usb: gadget: configfs: Correct usb functions order for UDC gadget bind
During multiple adb reboots test case, adbd is taking time to start
and write the descriptors from the userspace. If adb is their in the
composition and its not ready when bind happens, UDC bind for ffs will
fail and adding the function back to the func_list in failure path and
calling purge_configs_funcs.

In purge_func adb driver unbind the functions from config->functions list
and add back to the tail of the func_list. With this order of the functions
in func_list got changed and next time when bind happens from adbd start
usb does not working.

Fix this issue by changing the order of the functions while adding the
functions back to the list in purge_configs_funcs.

Change-Id: I50c2362062130836d66edfcf8e1f020134248cb4
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-11-01 21:12:07 -08:00
Karthik Poosa
33d50bb739 NFC: Add fix for CTS issue of IPC log file creation failed
Checking IPC log handle during usage rather than after creation.
This is because IPC logging is not available with boot image of
of GKI.

Change-Id: I81f4d5910bf721fd94f5858a2b7aba675a7be931
Signed-off-by: Karthik Poosa <kpoosa2@codeaurora.org>
2020-11-02 10:01:39 +05:30
qctecmdr
4059648ed9 Merge "coresight: tmc: Configure cti trigger number in device tree" 2020-11-01 20:06:46 -08:00
qctecmdr
878a2ef45f Merge "coresight: tmc: fix spinlock bad magic/usb_qdss_close" 2020-11-01 20:06:46 -08:00
qctecmdr
3064610aa0 Merge "soc/qcom/hyp_core_ctl: Track VPM Group state for VM" 2020-11-01 20:06:45 -08:00
qctecmdr
8efb1e6396 Merge "qbt_handler: Memset userspace struct to zero" 2020-11-01 20:06:45 -08:00
Fenglin Wu
20a1939587 input: qcom-hv-haptics: switch API to trigger PBS for ISC configuration
SW trigger for PBS to configure ISC in LRA detection doesn't need to
pass any parameter or wait on any condition including checking status.
Hence switch using qpnp_pbs_trigger_single_event() instead of
qpnp_pbs_trigger_event() to trigger PBS.

Change-Id: I8b252e293265994976924435f8a6a11d9b463119
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-11-02 09:50:43 +08:00
Fenglin Wu
1d2e35e74e soc: qcom: qpnp-pbs: add an API to trigger single PBS event
A simple PBS can be triggered by SW writing to SW_TRIGGER (bit 7) in
TRIG_CTL register without passing any parameters through SCRATCH1
register and not waiting on any condition. Also, this simple PBS is more
like a fire and forget and doesn't even need to check on the status
through SCRATCH2 register. Add support for this simple PBS through an
API qpnp_pbs_trigger_single_event().

Change-Id: I8a6448f9be8f84269c6ba5672bead01a152185ad
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-11-02 09:50:31 +08:00
Manikandan Mohan
e5a15f51f2 cnss2: Overload QDSS trace save indication for generic mem dump
QDSS trace save QMI indication will be used by FW to dump any type
of host allocated DDR remote memory. Update QDSS trace save indication
handler for saving different memory types.

Change-Id: I0e78e2f6de367a500e78622e841e0cdf0f4170e5
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-10-30 10:29:36 -07:00
Deepak Kumar
7b9fd1956e msm: kgsl: Don't skip gmufw preallocations during firmware read
In scenario where GMU request firmware succeeded but preallocation
failed, a6xx_gmu_load_firmware returns error but during next open
call it return success only based on whether request_firmware was
successful or not. This results in issue during GMU start while
copying firmware to respective GMU memory blocks as some of the
memory blocks were not allocated.

Update the check in a6xx_gmu_load_firmware to ensure only request
firmware is skipped if it passed earlier.

Change-Id: I92920215aa9f47726c4470968ca804e1cee13468
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
Signed-off-by: Pranav Patel <pranavp@codeaurora.org>
2020-10-30 21:45:19 +05:30