Commit graph

898,543 commits

Author SHA1 Message Date
Deepak Kumar
e4f4b83ee1 msm: kgsl: Fix race between kgsl device open and close
In current code, kgsl_close_device holds device mutex and calls
last_close in case open_count goes to zero. But as part of
last_close call, device mutex is released intermittently to wait
for active count to go to zero and also for dispatcher idle. This
intermittent release of device mutex opens up a window where a
kgsl_open_device call can go ahead and call first_open. As this
first_open is triggered before last_close could finish it messes
up the complete state machine. To fix this, move decrement of
open_count after last_close to allow any open/close happening when
last_close is in progress to just increment/decrement open_count
without triggering first_open or last_close.

Change-Id: Ibb2567e3ef0dc1864f2bfca346b0682792d0b675
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2021-05-01 00:43:51 +05:30
qctecmdr
e71361a466 Merge "interconnect: qcom: Enable real interconnect provider for Monaco" 2021-04-30 07:36:00 -07:00
qctecmdr
91db2b4779 Merge "rpmsg: glink: mark intent request complete before wake up" 2021-04-30 07:35:59 -07:00
qctecmdr
6004767ce2 Merge "defconfig: sdxlemur: Enable thermal drivers" 2021-04-30 04:52:46 -07:00
qctecmdr
23fa0d09b8 Merge "msm-5.4: Auto pcie aspm config propagation" 2021-04-30 04:52:45 -07:00
qctecmdr
f75d1aeaef Merge "drivers: soc: qcom: rimps_memlat: add NULL check for SCMI handle" 2021-04-30 04:52:45 -07:00
qctecmdr
9de6449183 Merge "defconfig: Enable ADC_TM for sdxnightjar" 2021-04-30 04:52:45 -07:00
qctecmdr
9c2a4c2078 Merge "net: aquantia: Remove IOSSv1 glue driver" 2021-04-30 04:52:44 -07:00
qctecmdr
6259297d62 Merge "msm: adsprpc: Handle UAF in ramdumps collection" 2021-04-30 04:52:44 -07:00
qctecmdr
58b018ec79 Merge "defconfig: Enable LLCC PMU on Direwolf target" 2021-04-30 02:05:34 -07:00
qctecmdr
b76cd3e6db Merge "power: supply: smblite: Add support for concurrency mode" 2021-04-30 02:05:33 -07:00
qctecmdr
3e979f8e83 Merge "drivers: thermal: qmi_cooling: Add new cooling device support" 2021-04-30 02:05:32 -07:00
qctecmdr
c0ecce976b Merge "rpmsg: glink: Use cpu_mask variable from glink structure" 2021-04-30 02:05:31 -07:00
qctecmdr
38b03951c3 Merge "drivers: qcom: Add Bootloader timestamps to the boot_marker list" 2021-04-30 02:05:30 -07:00
qctecmdr
b57c0b4235 Merge "soc: qcom: hgsl: Fix OOB" 2021-04-30 02:05:30 -07:00
Jeya R
a2c0b7a337 msm: adsprpc: Handle UAF in ramdumps collection
Added process exit checks when adding
file init memory to ramdump collection
to fix use after free for file init memory.

Change-Id: I8991d27e4c83f572a6baacc478a09eb42ea76d8f
Acked-by: Krishnaiah Tadakamalla <ktadakam@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2021-04-29 22:28:24 -07:00
qctecmdr
11b282467f Merge "clk: qcom: gcc-blair: Remove support for GCC_PRNG_BCR" 2021-04-29 21:27:44 -07:00
qctecmdr
0b0fccfc72 Merge "coresight-tmc-etr: fix memory leak" 2021-04-29 21:27:44 -07:00
qctecmdr
6f6903d2ba Merge "defconfig: sdmsteppeauto: enable cnss module" 2021-04-29 21:27:43 -07:00
qctecmdr
63fb6a1668 Merge "defconfig: Enable configs for ramdump support on Direwolf" 2021-04-29 21:27:43 -07:00
qctecmdr
1cbc9f171d Merge "iio: qcom-spmi-adc5: Add AMUX2_GPIO channel to rev2 channel list" 2021-04-29 21:27:42 -07:00
qctecmdr
db135d0e62 Merge "dt-bindings: msm: Add binding for OT Fuse support" 2021-04-29 21:27:42 -07:00
qctecmdr
c4ff6bd5b5 Merge "msm: kgsl: Initialize local variable" 2021-04-29 21:27:41 -07:00
qctecmdr
3ddaf4eb3f Merge "msm-5.4 : net: SIP Segmentation incase of TCP" 2021-04-29 21:27:40 -07:00
Ram Chandrasekar
743b6cc02e defconfig: sdxlemur: Enable thermal drivers
Enable thermal framework features and other thermal drivers like QMI
sensor and mitigation driver for sdxlemur.

Change-Id: I1e4a45ada65b3bff83cfc902cc059547787fbce2
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2021-04-29 08:48:59 -07:00
Ram Chandrasekar
7cece1c6dc drivers: thermal: qmi_sensor: Add support for new sensors
Add support for new QMI sensors. Here is the list of sensors that are
newly added,
qtm_therm
modem_bcl_warn
sdr0_pa0
sdr0_pa1
sdr0_pa2
sdr0_pa3
sdr0_pa4
sdr0_pa5
sdr0
sdr1_pa0
sdr1_pa1
sdr1_pa2
sdr1_pa3
sdr1_pa4
sdr1_pa5
sdr1
mmw0
mmw1
mmw2
mmw3
mmw_ific0

This will enable these sensors to be registered with thermal framework.

Change-Id: I5ea49478afee82f7058247ee7e0e505955423e72
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2021-04-29 08:48:54 -07:00
Deepak Kumar Singh
32933046af rpmsg: glink: mark intent request complete before wake up
Channel release function is not making intent wait condition true
before calling wake_up, due to this thread waiting on intent is
stuck and does not wake up until timeout happens. By this time
channel context is freed and this casues finish wait to fail due
to access of wait queue in freed channel context.

Mark intent request complete before calling wake_up.

CRs-Fixed: 2914979
Change-Id: Ia4162c9e62f0f5a7bd04ca0e09c2cd58319ef341
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2021-04-29 11:42:22 +05:30
Santosh Mardi
e5c82d7b7c drivers: soc: qcom: rimps_memlat: add NULL check for SCMI handle
SCMI handle will remain NULL in case of SCMI failures during
initialization.

Update all store functions to check for NULL before accessing
vendor ops structure.

Change-Id: Ied56f62785579078fb06fb526e29aaef9d45e00d
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2021-04-28 22:29:14 -07:00
Ashish Chavan
f62bc5be51 power: supply: smblite: Add support for concurrency mode
Add an interface to enable/disable boost concurrency. When
enabled the charger in buck-mode can act as a boost over a
separate path. The feature is supported only on PM5100 and
can be enabled using "qcom,concurrency-mode-supported" flag.

Change-Id: I3ab78af2123add2c4d5cba96500e1576b3c7deb3
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
2021-04-29 10:29:49 +05:30
wadesong
72155bb8e2 msm-5.4: Auto pcie aspm config propagation
Propagate the pcie aspm settings from original auto (both metal
and gvm) defconfigs to make sure they're aligned with the
settings on top of the newly adopted kernel branch.

Change-Id: I260cd9b236e715183d11bbc3e625641b57c93ee8
Signed-off-by: wadesong <wadesong@codeaurora.org>
Signed-off-by: Hans Chang <hansc@codeaurora.org>
2021-04-28 21:47:52 -07:00
Jishnu Prakash
25000642a4 defconfig: Enable ADC_TM for sdxnightjar
Enable ADC_TM driver for sdxnightjar.

Change-Id: I71c74eecf6bc2721ac53a11bf3008a065ebb64ed
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2021-04-29 09:40:46 +05:30
qctecmdr
55572f84cc Merge "iio: adc: Add QCOM SPMI PMIC5 GEN3 ADC driver" 2021-04-28 17:58:46 -07:00
qctecmdr
489d62a621 Merge "defconfig: autogvm: Enable boot stats and boot marker" 2021-04-28 17:58:46 -07:00
qctecmdr
4df76a611c Merge "msm: ipa3: support dymaic nf pkt-threshold change" 2021-04-28 17:58:46 -07:00
qctecmdr
180a53c7c1 Merge "QCMAP: Packet counters are not updated in conntrack" 2021-04-28 17:58:46 -07:00
qctecmdr
c72a3aa209 Merge "Port Trigger Config" 2021-04-28 17:58:45 -07:00
qctecmdr
095e984b70 Merge "cnss2: Add support to retry with a list of PCIe RC ports" 2021-04-28 17:58:45 -07:00
Yue Ma
5bb387ed02 cnss2: Add support to retry with a list of PCIe RC ports
If PCIe enumeration fails with primary PCIe RC port, retry with
other PCIe RC ports if any in the list from device tree using
the same logic.

Change-Id: I4e803f74dfeda914a9944ab2d14a4055fc223301
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-04-28 13:40:57 -07:00
Paras Jain
5be87b2ffa Port Trigger Config
Config change for enabling Port Trigger Feature

Change-Id: Ibd75ffd6346b10a4d666363e2e657c1cdb073b94
Acked-by: Vinisha Varre <vvarre@qti.qualcomm.com>
Signed-off-by: Paras Jain <parassin@codeaurora.org>
2021-04-29 01:06:48 +05:30
Paras Jain
a64c3b212f QCMAP: Packet counters are not updated in conntrack
Return value of counter api returns s64 instead of u64
Type-casting to the right type.

Change-Id: I8f399ccd52ec4e4f4b23d39f3faa7bb6f23262cc
Acked-by: Vinisha Varre <vvarre@qti.qualcomm.com>
Signed-off-by: Paras Jain <parassin@codeaurora.org>
2021-04-28 12:32:55 -07:00
Skylar Chang
d7a0a85fe9 msm: ipa3: support dymaic nf pkt-threshold change
Add the support for user-space module to dynamically
enable or disable nf pkt threshold values to decide
traffic going to ipa offload or not.

Change-Id: I00871464d4058d51e1551fd6275c82483d86f934
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2021-04-28 09:52:45 -07:00
Anant Goel
5ad46bb7d4 clk: qcom: Add PCIe clocks to Direwolf VM
Add support for virtual clocks needed for PCIe RCs
2a, 2b, 3a, 3b, and 4, to the Direwolf VM.

Change-Id: I73002071c18f85d8cbcb15c06e030650d10dc5b9
Signed-off-by: Anant Goel <anantg@codeaurora.org>
2021-04-28 09:32:02 -07:00
Venkata Rao Kakani
efd1b58bf4 defconfig: autogvm: Enable boot stats and boot marker
Enable boot stats driver and boot time marker config
options for Linux GVM targets.

Change-Id: Iaf05a6d61b820b88f849f550eebaefb150834948
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2021-04-28 21:04:45 +05:30
Paul Zhang
b1e616299d defconfig: sdmsteppeauto: enable cnss module
Enable cnss module to bring up wlan for sdmsteppeauto.

Change-Id: I2caf794303a2517c63d6e2d06a62d94db830cb4c
Signed-off-by: Paul Zhang <paulz@codeaurora.org>
2021-04-28 17:59:45 +08:00
qctecmdr
37a1126894 Merge "ion: implement interface to export total_pools_kb" 2021-04-27 22:49:33 -07:00
qctecmdr
9a82131643 Merge "neighbour: Prevent Race condition in neighbour subsytem" 2021-04-27 22:49:33 -07:00
qctecmdr
708dde5b10 Merge "arm64: defconfig: Add support for GPUCC, DISPCC and DEBUGCC for BLAIR" 2021-04-27 22:49:32 -07:00
qctecmdr
36666de1db Merge "drivers: qcom: Add declaration of msm_timer_get_sclk_ticks" 2021-04-27 22:49:32 -07:00
qctecmdr
733e5740b2 Merge "usb: dwc3: gadget: Handle race between remove_request & ep_dequeue" 2021-04-27 22:49:31 -07:00
Paras Jain
d23ca84eae msm-5.4 : net: SIP Segmentation incase of TCP
- This change prevents kernel crash in case of SIP Segmentation over TCP.

Change-Id: I1be0546aaf8c68981aab1285c9081deaf4844427
Signed-off-by: Paras Jain <parassin@codeaurora.org>
2021-04-28 10:36:54 +05:30