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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Enable cnss module to bring up wlan for sdmsteppeauto.
Change-Id: I2caf794303a2517c63d6e2d06a62d94db830cb4c
Signed-off-by: Paul Zhang <paulz@codeaurora.org>
- This change prevents kernel crash in case of SIP Segmentation over TCP.
Change-Id: I1be0546aaf8c68981aab1285c9081deaf4844427
Signed-off-by: Paras Jain <parassin@codeaurora.org>