WLAN driver can use the APIs to control if PCIe can enter L1 and
L1ss states.
Change-Id: Iad784b1ca66199ad61c471635a67542afd34480e
Signed-off-by: Yue Ma <yuem@codeaurora.org>
PCIe will vote for maximum CX and rate change during DRV resume.
Scale CX and rate change based on final GEN speed after PCIe
regains control.
Change-Id: I004f4bba6ca12944cd48fd56fa5a1290867c82a9
Signed-off-by: Tony Truong <truong@codeaurora.org>
Provide clients an API to exit and prevent the link from active
state power management (ASPM) L1. Also, give clients the
control to allow the link to enter ASPM L1.
Change-Id: Iedabb4eed51adb981f0eb1f204b468e7b7fbc678
Signed-off-by: Tony Truong <truong@codeaurora.org>
WLAN driver has its own watchdog timer for idle restart, so
extend idle restart timeout in platform driver to avoid timing
out before WLAN driver.
Change-Id: I4bab19fce7b30c59e9ecc0f0a8923a3693fdec12
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Check if reboot is in progress at the beginning of idle restart in
order to avoid it completely. Also check if reboot is in progress
after wait_for_completion since the event can be completed in the same
context of reboot notification and it needs to return failure for such
cases to caller to avoid other issues.
Change-Id: Iff250df5971ca4c9b885f52250547e2b45d89ac3
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Add sysfs entry '/sys/kernel/shutdown_wlan/shutdown'.
When system is shutting down or rebooting, this entry will be
written so that drvier can be notified and handle it properly.
Change-Id: I2537a2893f8787ff7c9d33608ef6c42075c3d128
Signed-off-by: Yu Wang <yyuwang@codeaurora.org>
Signed-off-by: Yue Ma <yuem@codeaurora.org>
After device power on and link config, clear VDD4BLOW_EN bit
of WLAON_QFPROM_PWR_CTRL_REG register to disable OTP write.
Before device link suspend and power off, clear VDD4BLOW_EN bit
and set SHUTDOWN_EN bit. Also add a 1ms sleep after writing
WLAON_QFPROM_PWR_CTRL_REG register.
Add a DTSI entry to control above operations.
Change-Id: Icb307a85bb5d283b78bdd7615f9a4757867c8075
CRs-Fixed: 2601850
Signed-off-by: Yue Ma <yuem@codeaurora.org>
The cnss pm runtime APIs will be bypassed if the RPM is not enabled.
Change-Id: I41bbf30e1f12426670606b90a88e3af4d0840c9c
Signed-off-by: Tiger Yu <tfyu@codeaurora.org>
To make sure WLAN MAC address has already been well
configured in firmware before switching to mission mode,
send QMI message to WLAN firmware to query the current
MAC status, and wait for 10 seconds at most if it's not
ready.
A new DTS property 'use-nv-mac' is also added:
if 'use-nv-mac' is defined in WLAN dts node, the MAC
checking will be performed; otherwise, it won't.
Change-Id: I1e751d84fb304cb95ea0f989f6939bc7ba5a3ecc
Signed-off-by: Yu Wang <yyuwang@codeaurora.org>
Enable initramfs and dcc support configs for LE VM and remove
unnecessary RTC drivers. Also enable the virtualization drivers,
such as Resource Manager driver, message queue driver and
doorbell for trusted VM.
Change-Id: Ia93caecd609f58a6d6cdb8f752e8ce5360f14c9d
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
This reverts commit de77105488.
The effectiveness of should_ulmk_retry() is being re-assessed - for the
time being, we'll let the OOM killer run, when an allocation in alloc_pages
fails.
Change-Id: Ife3af938fc356ce46f8d9c538aaf6bd5d0c404f8
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
The SMMU interconnect voting vote assumes all votes are required
in both the active and sleep contexts. This means that votes
for a particular interconnect path cast by the SMMU driver will
be upheld even when the CPU subsystem has been suspended, which
is not correct from a power consumption perspective.
Thus, add support for the qcom,active-only property to denote
that interconnect votes should be upheld only when the CPU
subsystem is in the active context.
Change-Id: I3168a9ff55809370e155771ab2b7918da06755e4
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Align memshare driver to be generic kernel image compliant by
modifying the driver to dynamically loadable.
Change-Id: I92bab11f8ff4279b94bd4bce6d17640a3715c26c
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
IPA driver is moving to teckpack.
create a thin kernel framework for IPA driver that will
allow dependent drivers to dispatch IPA APIs from teckpack.
Disable IPA and GSI kernel drivers compilation. This change
comes in parallel to IPA and GSI drivers enablement in teckpack.
Change-Id: I35f2918b935423637e21d6f871a113dc0224f878
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Depend on PIL driver subsys up notification instead of qmi
notifications for SSR/PDR to avoid race conditions between qmi
and PIL notifications. This race condition can happen when qmi
connections got killed without an actual SSR/PDR.
Change-Id: I3472999057f43bb5eec7b51c114ccf471be35a79
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>