Commit graph

894,701 commits

Author SHA1 Message Date
Gauri Joshi
5cc155bb37 msm: ep-pcie: Update load factor for 1.2V rail on sdxlemur
Change the load factor from 3000 to 30000 for sdxlemur.

Change-Id: I939610150bcaddba7ff508ea130009a010cfb6c0
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:53:40 -07:00
Gauri Joshi
ad691d6737 msm: ep-pcie: Add support to vote and scale MX rail
Chipsets which have PCIe Gen4 PHY and controller on MX rail
requires explicit vote for higher corners than the default.
Therefore add support to vote for and scale MX rail based on the
Gen speed which PCIe link operates at.

Change-Id: I6aa595aa6e3955ff09d8eeae604431b47a14985a
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:53:40 -07:00
Gauri Joshi
9a551ddff3 msm: mhi: Release inbuf_list memory in channel disconnect
Driver allocates in_buf_list.addr during open_client_mhi_channels,
which is called for every CONNECT event for AT_CTRL channels.
in_buf_list.addr is not released during DISCONNECT event.

Adding a fix to release this memory during a channel DISCONNECT
event.

Change-Id: Idd7cac731137934d820e6a8a07335982575a913b
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:52:07 -07:00
Gauri Joshi
b3f6abccd5 msm: mhi_dev: Fix to avoid double free in alloc_evt_buf_evt_req()
There is a possible race condition, if the client calls
MHI close and channel gets a start command then
mhi_dev_alloc_evt_buf_evt_req() would be called. This can lead to
tr_events and ereqs getting freed from both the contexts.

Fix is to use a mutex to prevent this from happening parallelly.

Change-Id: I9ac10211d5bd5cee96e69b7fc10955e24569cf64
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:51:42 -07:00
Gauri Joshi
3e7d042939 msm: mhi: Changes to avoid mhi_sm_wq schedule out
Queue mhi_sm_wq as system_highpri_wq to avoid WQ getting
scheduled out.

Change-Id: I92f6442a6425dc71b64550078cfc44d85f744f41
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:51:34 -07:00
Gauri Joshi
c17f1783a6 msm: mhi_dev: Add an option to not timeout waiting for M0
On certain platforms host might take a long time to send M0
to device. Only modified msm files in this commit.

Change-Id: I8c5f07a7926e01afa84a983ef98721749787d2da
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:50:13 -07:00
Gauri Joshi
84a55b411d msm: mhi_dev: Clear reset while waiting for M0
On some customer platforms, resume from hibernate results in a
cold boot of the end-point. The previous mhi device state gets
cleared and this results in mhi host issuing a reset. Clear the
reset while waiting for M0 from host to enable host to proceed
with issuing M0.

Change-Id: I18aa4e760d59e37842a9f3a6dba1478a98137bb8
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:49:46 -07:00
Gauri Joshi
0bc55adae2 msm: mhi_dev: Fix memory leak
mhi_dev_cache_host_cfg will be called during cold boot and also
when processing mhi device reset command from host. Do not re-allocate
the command, event and channel context cache memory if they have been
already allocated.

Change-Id: I55826e05b3d83c9fcf3d4b23e26b91253130671e
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:47:18 -07:00
Gauri Joshi
2b66ad4b59 msm: ep-pcie: Support 16.6 MHz Aux clock for PCIe Gen4 Controller
If the devicetree property for aux clock is present run the clock
at 16.6 MHz. Otherwise default aux clock value to 19.2 MHz.
Introduced for PCIe Gen4 support but can be used in the
future if controller needs 16.6 MHz clock support.

Change-Id: I8a4b3ab4cbd44938f1c9bf8fa91a791ba289ee10
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-23 09:39:58 -07:00
qctecmdr
08db65b8bf Merge "defconfig: sdmsteppe: Enable set_ddr_capped_freq interface" 2021-03-17 06:25:19 -07:00
qctecmdr
7422f86139 Merge "irqchip: mpm: Add mpm mapping for gic wakeup capable irqs" 2021-03-17 06:25:18 -07:00
qctecmdr
f0f94e22c2 Merge "drivers: scm: Add SCM call support to set warmboot addr" 2021-03-17 06:25:18 -07:00
qctecmdr
38082631ec Merge "Revert "Merge "Use environment variable to find unifdef tool for auto target""" 2021-03-17 06:25:18 -07:00
qctecmdr
e5d17666ae Merge "usb: dwc3: gadget: Properly handle ClearFeature(halt)" 2021-03-17 06:25:17 -07:00
qctecmdr
6b101e39d6 Merge "power: reset: fix compilation error" 2021-03-17 06:25:17 -07:00
qctecmdr
d7e2efd740 Merge "drivers: soc: qcom: pm: Add legacy PM and Warmboot set address API support" 2021-03-17 06:25:16 -07:00
qctecmdr
b785a9833f Merge "clk: qcom: gdsc-regulator: Remove regulator_lock() call from GDSC driver" 2021-03-17 02:02:49 -07:00
qctecmdr
57c4cf0a4d Merge "defconfig: gen3auto: disable GLINK config" 2021-03-17 02:02:49 -07:00
qctecmdr
95721509aa Merge "defconfig: monaco: Add missing PMIC configs for monaco" 2021-03-17 02:02:48 -07:00
qctecmdr
d326c44fa2 Merge "usb: dwc3: gadget: Prevent queue on endpoints after bus reset" 2021-03-17 02:02:47 -07:00
qctecmdr
2fd974a64c Merge "lpm_levels_legacy: Rectified compilation errors" 2021-03-17 02:02:47 -07:00
qctecmdr
4e0dedf1d8 Merge "soc: qcom: socinfo: Add soc information for Blair" 2021-03-17 02:02:46 -07:00
qctecmdr
c45a1c86d9 Merge "soc: qcom: rpmh_master_stat: Initialize length to zero" 2021-03-17 02:02:46 -07:00
Raghavendra Kakarla
5a9f546325 drivers: scm: Add SCM call support to set warmboot addr
Add the SCM call support for core hotplug and set warmboot address
for multi core.

Change-Id: I747858d1ffc1008b6d9033526110c98a3bb2401b
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2021-03-16 22:53:07 +05:30
Vinay Sudra
38abe9e64f Revert "Merge "Use environment variable to find unifdef tool for auto target""
This reverts commit 8a7d4fed84, reversing
changes made to bdf9093b71.

Change-Id: I6fbcfb72f49740223691f2e1edecbbfc28f420c5
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-03-16 09:58:23 -07:00
Raghavendra Kakarla
292ced4931 irqchip: mpm: Add mpm mapping for gic wakeup capable irqs
Add mpm mapping for gic wakeup capable interrupts for
sdxnightjar.

Change-Id: I1d895706dc9bfca7b1236200aabedfebf31d8c0c
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2021-03-16 22:15:16 +05:30
Vinay Sudra
aae685985e defconfig: sdmsteppe: Enable set_ddr_capped_freq interface
Enable set_ddr_capped_freq interface to send messages to AOP
using QMP transport.

Change-Id: I9e73f8d5dccf6a4b323075e1ba791e5c285b5b63
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-03-16 07:47:25 -07:00
qctecmdr
955691e21f Merge "defconfig: gen3auto: Enable set_ddr_capped_freq interface" 2021-03-16 07:41:09 -07:00
qctecmdr
9c93444578 Merge "usb: gsi: Set setup_pending if ep_queue on EP0 is successful" 2021-03-16 07:41:08 -07:00
qctecmdr
c973a48ede Merge "mmc: defconfig: Enable IPC logging for lahaina consolidate defconfig" 2021-03-16 07:41:08 -07:00
qctecmdr
4564831c3f Merge "usb: gadget: Give back request from ep_dequeue" 2021-03-16 07:41:07 -07:00
qctecmdr
a58483c01c Merge "atlantic forwarding driver v1.1.18" 2021-03-16 00:31:53 -07:00
qctecmdr
44b5ee971c Merge "msm: kgsl: Enable BCL feature for a635 GPU" 2021-03-16 00:31:52 -07:00
qctecmdr
cf721e0820 Merge "defconfig: autogvm: Enable spmi for autogvm" 2021-03-16 00:31:52 -07:00
qctecmdr
e3e2a15960 Merge "msm: pci: print RPMSG return type and LTSSM state on DRV suspend" 2021-03-16 00:31:51 -07:00
qctecmdr
637910d04d Merge "defconfig: autogvm: Enable exfat fs" 2021-03-16 00:31:51 -07:00
qctecmdr
f86ea7b6d5 Merge "defconfig: autogen3: Enable CNSS2 for QCA WLAN device" 2021-03-16 00:31:51 -07:00
Shyam Kumar Thella
a2450f015c defconfig: monaco: Add missing PMIC configs for monaco
Add missing PMIC configs required to support monaco.

Change-Id: Ifc9edab32e14f77ee715550e567f4b0cb9ba60d3
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2021-03-16 09:36:23 +05:30
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