Commit graph

894,770 commits

Author SHA1 Message Date
Raja Mallik
92d0c40a5c drivers: soc: qcom: pm: Add legacy PM and Warmboot set address API support
Add legacy msm pm sleep mode support for MDM9607 target.

Add warmboot set address support for multi cluster cpu's.

Snapshot is taken from msm-4.9 kernel version @ commit 078db469522464
("soc: qcom: bgrsb: Increase time out for RSB channel opening").

Change-Id: Ibfc56254c47cfc1465aff5559b8846072f66041a
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
Signed-off-by: Haribabu Gattem <haribabu@codeaurora.org>
Signed-off-by: Raja Mallik <rmallik@codeaurora.org>
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2021-03-15 10:12:16 -07:00
Raghavendra Kakarla
e48c59bf5a drivers: soc: qcom: Enable SPM driver
Enables the support SPM and AVS wrapper hardware.

Change-Id: I2525d5fadf5be318f55ce722c26e598640af926f
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2021-03-15 10:10:15 -07:00
Hari babu
baae1562c6 cpuidle: lpm_levels: Replace remote spinlock
Remove deprecated remote spinlock usage, added changes to write
the tid value into mutex lock register.

Change-Id: I031566b4038df53a99306c34db427c5929d68483
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
Signed-off-by: Hari babu <haribabu@codeaurora.org>
Signed-off-by: Sivasri Kumar Vanka <sivasri@codeaurora.org>
Signed-off-by: Haribabu Gattem <haribabu@codeaurora.org>
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2021-03-15 10:09:57 -07:00
Sivasri Kumar Vanka
7aac6c873e lpm_levels_legacy: Rectified compilation errors
Compilation failed, due to updated function declarations lpm_levels
driver where the lpm_levels_legacy driver is not updated in parallel
Rectified all errors occurred during compilation for mdm9607 target.

Change-Id: Iacb6ce9949454a949bcba90a8e8285ca18b832d5
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
Signed-off-by: Sivasri Kumar Vanka <sivasri@codeaurora.org>
Signed-off-by: Haribabu Gattem <haribabu@codeaurora.org>
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2021-03-15 09:51:03 -07:00
Maulik Shah
d23cd81540 cpuidle: lpm-levels: Enable LPM support for non psci target
Add non psci legacy lpm support. Modify and align changes
for clock event, MPM and cpu hotplug for LPM callback notification.

Remove deprecated scheduler c-state(idle cpu), d-state(idle cluster)
setting from lpm driver.

Snapshot is taken from msm-4.9 kernel version @commit b9ad452666da39.
("soc: qcom: bgrsb: Increase time out for RSB channel opening").

Change-Id: I8958ab4f098cc6d875071e3f100b8b74845e0cfa
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
Signed-off-by: Haribabu Gattem <haribabu@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
Signed-off-by: Suresh Kumar Allam <allamsuresh@codeaurora.org>
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2021-03-15 09:50:56 -07:00
Prasada Rao Durvasula
606af3eccb soc: qcom: Add add cpu idle v7 support for mdm9607
This is snapshot of idle v7 as of msm-3.18.c8.
'commit 69da6b6721b'.

Change-Id: I01adeac3d8b53b855300a3a12714e035b758a8c4
Signed-off-by: Prasada Rao Durvasula <pdurvasu@codeaurora.org>
Signed-off-by: Suresh Kumar Allam <allamsuresh@codeaurora.org>
Signed-off-by: Shiva Niranjan <shia@codeaurora.org>
Signed-off-by: Sivasri Kumar Vanka <sivasri@codeaurora.org>
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2021-03-15 22:17:28 +05:30
Mayank Grover
033166be5b soc: qcom: socinfo: Add soc information for Blair
Add SOC ID to support socinfo for Blair SOC.

Change-Id: I92f7d55c389bbb4a25c6c29a83457604b53e7039
Signed-off-by: Mayank Grover <groverm@codeaurora.org>
2021-03-15 21:16:49 +05:30
Mayank Grover
e243f04b5c defconfig: Enable defconfig to compile Blair platform
Add initial defconfig fragment support to enable compilation
for the blair platform.

Change-Id: I944b6d892d85459493b400b98a52f108f9f94aff
Signed-off-by: Mayank Grover <groverm@codeaurora.org>
2021-03-15 21:15:52 +05:30
Mayank Grover
e6fcace980 arm64: kconfig: Add initial platform for Blair
Adding initial platform config for Blair.

Change-Id: I44bfc3e3412a1630f64e1cb356e00c6cfa104666
Signed-off-by: Mayank Grover <groverm@codeaurora.org>
2021-03-15 21:14:18 +05:30
Vinay Sudra
aa105434b9 defconfig: gen3auto: Enable set_ddr_capped_freq interface
Enable set_ddr_capped_freq interface to send messages to AOP
using QMP transport.

Change-Id: I04cf261a51c0ecaea90414ac38fd4026343457ab
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-03-15 20:05:46 +05:30
Pratham Pratap
de84d964ec usb: gsi: Set setup_pending if ep_queue on EP0 is successful
Consider a scenario where setup packet gets queued from the
function driver and without geting completion for that request
composition switch or cable disconnect happens. Since the
request is not given back to the gadget driver it will be in
pending list. During composition switch or cable disconnect
composite dev cleanup happens which will free the request
without dequeing it since setup_pending is not set for the
request. When a new setup packet is queued and the completion
for the new setup packet happens driver will try to access the
freed request from the pending list leading to use-after-free.

Fix this by setting setup_pending to true if ep_queue on ep0
is successful.

Change-Id: I7fe083dfc99663681fc0b98e02613799e526d3d4
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2021-03-15 03:40:19 -07:00
Ping Jiang
b641d33db4 power: reset: fix compilation error
flush_cache_all() is not supported in msm-5.4.

Change-Id: Ibd87c401d37917f341049e5b19db97dd79eafbb2
Signed-off-by: Ping Jiang <scottjiang@codeaurora.org>
2021-03-15 17:27:36 +08:00
qctecmdr
2c8ec6785e Merge "cnss2: Add WCN7850 device ID to cnss_get_bus_type() API" 2021-03-15 02:15:21 -07:00
qctecmdr
1fa617f95c Merge "cnss2: Remove deprecated CNSS_BDF_DUMMY type" 2021-03-15 02:15:21 -07:00
qctecmdr
88b27033e8 Merge "Disable ASD regulator if HST is attached" 2021-03-15 02:15:20 -07:00
qctecmdr
dd16bdeab5 Merge "cnss2: Disable L7E regulator & S2E regulator vote for Lahiana+HST" 2021-03-15 02:15:20 -07:00
qctecmdr
c2d5faac4e Merge "soc: qcom: Improve msm_minidump_remove_region api" 2021-03-15 02:15:19 -07:00
qctecmdr
ba8b1f3da9 Merge "soc: qcom: Add sysfs node to communicate with AOP using QMP protocol" 2021-03-15 02:15:19 -07:00
qctecmdr
f3725ab89d Merge "defconfig: monaco: Enable data/net related configs" 2021-03-15 02:15:18 -07:00
Ping Jiang
7549707bc3 defconfig: autogvm: Enable spmi for autogvm
Enable spmi pmic drivers in autogvm defconfigs.

Change-Id: I49cbd238c0fea410a4899d914cd2b7fa8c72cf4c
Signed-off-by: Ping Jiang <scottjiang@codeaurora.org>
2021-03-15 16:51:13 +08:00
Igor Russkikh
55651834b6 atlantic forwarding driver v1.1.18
- Hotfix to increase reset tmo on A2 to 2secs
 - Hotfix to disable macsec load on A2
 - Fixes for compilation without PTP
 - [ATLDRV-1649]: WOL was not functional. MAC address was invalid.

Change-Id: I546961bcaf75b0489e973da1eecf22be0a3d71d7
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Git-commit: f636f449dfd671f7f7707100da4c7d0dc5dfb58b
Git-repo: https://github.com/aquantia/linux-4.14-atlantic-forwarding
Signed-off-by: Lakshit Tyagi <ltyagi@codeaurora.org>
2021-03-14 23:36:26 -07:00
lixiang
4b1ce944fb defconfig: autogvm: Enable exfat fs
Enable exfat filesystem for automotive guest virtual machine.

Change-Id: If7d1b64bb4ea3b72b84f942d59371d41bae4a6bb
Signed-off-by: lixiang <lixiang@codeaurora.org>
2021-03-15 14:16:01 +08:00
Sandeep Singh
e9d3bea389 cnss2: Disable L7E regulator & S2E regulator vote for Lahiana+HST
Add code to disable L7E & S2E regulator vote for Lahaina+HST.

Change-Id: I2ea9320642f06bb65c4b1c697a8fc9c71a3b22f8
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
2021-03-15 11:18:21 +05:30
Sriharsha Allenki
5f7bf07733 usb: dwc3: gadget: Prevent queue on endpoints after bus reset
There is a race between ep_queue from function driver and
ep_disable during function disable as part of bus reset.
This race is leading to a scenario where the endpoint is
disabled with an active transfer. And when the endpoint is enabled
back, this leads to a stale buffer access by the controller.

The race is as below:
						qdss_disable
usb_qdss_write					    |  -----> Waits on qdss_lock
     |  ----> Acquires qdss_lock		    |
     |  ----> Checks for qdss_connected		    |
     |  ----> Releases qdss_lock		    |  ------> Acquires qdss_lock
     |						    |  ------> Clears usb_connected
     |						    |  ------> Releases qdss_lock
     |						usb_ep_disable
     |						    |  ------> Acquires dwc->lock
     |						dwc3_remove_reuests
     |						    |
     |						dwc3_stop_active_transfer
     |						    |
     |						    |  ------> Releases dwc->lock
usb_ep_queue					    |
     | ----> Acquires dwc->lock			usb_gadget_giveback
     |						    |
dwc3_gadget_kick_transfer			    |
     | ----> Releases dwc->lock			    |
						    | ----> Acquires dwc->lock
						    |
						disable_endpoint

After this state when the endpoint is enabled back, there is already
and active transfer on this endpoint. Any START TRANSFER command
on this endpoint would lead to "No Transfer Resource" error
from the controller.

Fix this by preventing the ep_queue when a reset of the gadget
is in progress. This is done by clearing the connected flag
as part of dwc3_gadget_reset and checking for this as part of
ep_queue. Set this flag once we have received the CONNECTION
DONE interrupt from the controller.

Change-Id: Idc52a72ed0a965c2043618046a5b0dc32bfd1985
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2021-03-14 22:19:15 -07:00
Kuichu Ni
1646bb6a1a defconfig: autogen3: Enable CNSS2 for QCA WLAN device
Enable configs required for CNSS2 and QRTR-MHI driver to
support QCA WLAN device.

Change-Id: Ieead71f0a5db87a888fd16d01fcbd7345ce52860
Signed-off-by: Kuichu Ni <kuichun@codeaurora.org>
2021-03-15 11:56:08 +08:00
Thinh Nguyen
245d760573 usb: dwc3: gadget: Properly handle ClearFeature(halt)
[ Upstream commit cb11ea56f37a36288cdd0a4799a983ee3aa437dd ]

DWC3 must not issue CLEAR_STALL command to control endpoints. The
controller automatically clears the STALL when it receives the SETUP
token. Also, when the driver receives ClearFeature(halt_ep), DWC3 must
stop any active transfer from the endpoint and give back all the
requests to the function drivers.

Change-Id: Iccf1e148c74bbe194702e3e7a620f0fef5a9b183
Fixes: 72246da40f ("usb: Introduce DesignWare USB3 DRD Driver")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Git-commit: 1bfa091472
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2021-03-13 21:37:50 +05:30
qctecmdr
8a7d4fed84 Merge "Use environment variable to find unifdef tool for auto target" 2021-03-12 09:54:29 -08:00
qctecmdr
bdf9093b71 Merge "msm:npu: Add npu virtualization support" 2021-03-12 09:54:28 -08:00
qctecmdr
73c021ac03 Merge "drivers: thermal: pe_sensor: enable pe interrupt as wake up interrupt" 2021-03-11 21:11:06 -08:00
qctecmdr
2ac2ac4b3f Merge "slim-msm-ngd: Do not enable/disable core irq in SSR/PDR notifications" 2021-03-11 21:11:06 -08:00
qctecmdr
695867227f Merge "cnss2: Check CNSS_MHI_POWER_OFF state in cnss_pci_suspend_bus()" 2021-03-11 21:11:05 -08:00
qctecmdr
92257be40e Merge "defconfig: sdxlemur: Realtek IOSS glue driver switch to v2" 2021-03-11 21:11:05 -08:00
qctecmdr
49eadde2ab Merge "defconfig: sdmsteppeauto: enable configs needed for API level 30" 2021-03-11 21:11:05 -08:00
qctecmdr
f8e927fde5 Merge "defconfig: gen3auto: enable configs needed for API level 30" 2021-03-11 21:11:04 -08:00
qctecmdr
8d7cb7baf1 Merge "msm: mhi: core: Return error on failure to get tsync time" 2021-03-11 21:11:04 -08:00
qctecmdr
45e958b803 Merge "hwmon: qti_amoled_ecm: return avg_current as 0 upon error exceptions" 2021-03-11 21:11:04 -08:00
qctecmdr
9cc8d7e2b5 Merge "cnss2: Fix 60s timeout while search regdb.bin failure" 2021-03-11 21:11:03 -08:00
qctecmdr
7aa8936604 Merge "arm64: defconfig: compile debugcc statically" 2021-03-11 21:11:03 -08:00
qctecmdr
b310be31e1 Merge "soc: spcom: unvote for sp regulators" 2021-03-11 21:11:03 -08:00
Yue Ma
a927e9701d cnss2: Add WCN7850 device ID to cnss_get_bus_type() API
WCN7850 device ID is missing from cnss_get_bus_type() API.
Hence add it.

Change-Id: I9eaf82dadcf715fb8a5d223a432b0135ccd0a6a7
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-03-11 12:07:07 -08:00
Neeraja P
e28d403c5b msm: kgsl: Add per process GPU memory usage trace
This patch adds support to trace per process utilization of the GPU
mapped memory. Additionally track the overall gpu memory usage which
includes process allocations, imported dma bufs and kgsl globals.

Change-Id: Icfee373efc7e84efe90cf20486ae6583eaa4f697
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
Signed-off-by: Mohammed Mirza Mandayappurath Manzoor <mmandaya@codeaurora.org>
Signed-off-by: Neeraja P <neerp@codeaurora.org>
2021-03-12 00:24:30 +05:30
qctecmdr
cc681776ca Merge "msm: kgsl: Avoid copying aux_command_generic struct twice" 2021-03-11 10:14:26 -08:00
qctecmdr
fbabbd2280 Merge "msm: kgsl: Configure UCHE GMEM base address based on GMEM size" 2021-03-11 10:14:26 -08:00
qctecmdr
18b2685bee Merge "cnss2: Update driver to support multiple devices" 2021-03-11 10:14:26 -08:00
qctecmdr
12351b846c Merge "soc: qcom: hgsl: Fix fence leak issue" 2021-03-11 10:14:26 -08:00
qctecmdr
cebe8978eb Merge "defconfig: autogvm: Enable virtio fastrpc driver config" 2021-03-11 10:14:25 -08:00
Jilai Wang
03139b74fa msm:npu: Add npu virtualization support
This is initial driver change to support npu virtualization.

Change-Id: I8e5070cc3d3b9cd3a1d15d00deeef9700f6428ec
Signed-off-by: Jilai Wang <jilaiw@codeaurora.org>
2021-03-11 11:28:17 -05:00
Vinay Sudra
cd0a4a0cb7 Use environment variable to find unifdef tool for auto target
Add --unifdef option to gen_headers_arm_auto.bp and
gen_headers_arm64.bp.

Change-Id: Ie48e8ae1ff413d6e5c7d6b4ecda6604c12fd9ec5
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-03-11 18:44:27 +05:30
Amir Samuelov
f2508e2eee soc: spcom: unvote for sp regulators
Some power regulators are voted by SPSS UEFI driver,
that needs to be unvote by HLOS.

Change-Id: I6d9f24c3937188b316d5912751c48207f3b8ab85
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2021-03-11 14:29:21 +02:00
Veera Vegivada
cd36cfd9da arm64: defconfig: compile debugcc statically
Compile debugcc driver statically instead of module.

Change-Id: I5f464578bf9946a8ac7d919dc32755a011042757
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2021-03-11 17:34:06 +05:30