On some crash dump cases mem_lock is already taken, error
returns and crash dump copy fails.
In this case wait until mem_lock available instead of failing
the operation.
Also take the mem_lock for writing to prevent other threads from
altering the state of the device while collecting crash dump.
Change-Id: I2ae74fba77e39161e33a7c5302916d1c9254fa05
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
mem_lock is taken for the entire wil_reset().
Optimize this by taking mem_lock just before device is
being reset and release the lock after FW download.
Change-Id: Icf3430e355acc2c33dc37c6a38a18c47de03a2cf
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
New FW has power save capability in AP/PCP mode. FW reports this to
driver with WMI_FW_CAPABILITY_AP_POWER_MANAGEMENT.
AP/PCP mode power save in FW is disabled by default. It can be enabled
by sending WMI_PS_DEV_PROFILE_CFG_CMD to FW as part of start_ap
sequence.
Several pre-conditions must be met for driver to enable this:
1. power save enabled from cfg80211
2. AP power save enabled from platform driver. This is reported from
platform driver with a new WIL_PLATFORM_CAPA_AP_PS
AP power save can be controlled via "ap_ps" debugfs.
Change-Id: I328fdbfe5382e60688c9f4a67aa9378197e01987
Signed-off-by: Ahmad Masri <amasri@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
Add snapshot of the SPS (Smart Peripheral Subsystem) driver from msm-4.19
'commit thermal: tsens: Add support for TSENS min temp and 0C interrupt
("7b3e424f29e7c55468258ea49e24996684a5051a")'.
Change-Id: I26319a4ac0571e72aecdd0f1c65e1837aafbafc6
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
Dump all the Rx status message on different errors to allow more
visibility of the case.
Change-Id: I81e7f52f56068ea214f63dda1f74b102aeb605df
Signed-off-by: Ahmad Masri <amasri@codeaurora.org>
Enable socinfo driver for QCOM SoCs. This driver provide
sysfs node entries for clients to know about SoC information.
Change-Id: Ic79d89d69dd4ad74eabfc4af8d081c1ab291796a
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Client can update secure vmid by setting attribute DOMAIN_ATTR_SECURE_VMID.
If this is done after domain attach, it causes a condition where TTBR pages
aren't mapped to secure VMID. This causes S2 translation fault. Disallow
secure vmid update if domain is attached.
While we are at it, restrict DOMAIN_ATTR_FAST update while domain is
attached.
Change-Id: I4246f1f90a11ed21dfafa360cc2f16ade2708d2b
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
Limit tlb sync poll retry latency to a upper limit. This reduces the
response time of tlb sync completion.
Change-Id: I7b92e216c17f5942ad01a9e9f24eff88f7608388
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
Sometimes we don't want to call the gcc-wrapper for various reasons, so
allow build scripts to set a special environment variable to skip it.
Change-Id: Ic0dedbadd3567812ed0216e7b30d8677ca14ba37
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Add support for L3 voting in the devfreq icc driver.
This includes populating the device's OPP table with L3
frequencies from HW and voting in this same unit of Hz
as accepted by the L3 interconnect provider.
Change-Id: I877f41324b55b333f4e5ef9f34232563357712c8
Signed-off-by: Amir Vajid <avajid@codeaurora.org>
A core-dev table is explicity defined in each memlat device
today. However, some devices may want to share the same core-dev
table so add support for parsing a shared core-dev table that
can be used across multiple memlat devices.
Change-Id: I5ee0d439c199a6414d2adaeed8328f3dc99b2a84
Signed-off-by: Amir Vajid <avajid@codeaurora.org>
In register_common(), there's unnecessary code used to find
which device tree node has the core-dev property. Refactor
this to reduce complexity.
Change-Id: Ib3475272b25e898ad23f9f5a4412d90cd889a356
Signed-off-by: Amir Vajid <avajid@codeaurora.org>