iovec memory for each pipe is only accessed by crypto and BAM drivers from
the CPU. It won't be accessed by crypto device. Change allocation of iovec
from coherent memory space to kernel memory space to improve performance.
Change-Id: I97162c00c37716be8b9a20393f67bda8da41e99d
Acked-by: Che-Min Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: Sivanesan Rajapupathi <srajap@codeaurora.org>
Configure the ufs clocks core and peripheral memory state when
turned off. This configuration is required to allow retaining
ICE crypto configuration (including keys) when ice_core_clk is
turned off, and powering down non-ICE RAMs of host controller.
Change-Id: I93584851fd50c7006ccd48979087d707ab4c6408
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
rmnet_data currently frees incoming memory when de-aggregating
large incoming aggregated packets. This may introduce additional
overhead in the memory allocator. Add a handler as part of the
rx_handler_data to recycle the skb's. This handler needs to
defined within the specific transport driver. If the recycle
handler is not implemented by the transport, rmnet_data will
free the skb (default behavior).
CRs-Fixed: 1048396
Change-Id: I14b929d78c87ced26cff3c32876d2eec5de33350
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Registering the vmem_maxi_clk after the mnoc_maxi_clk leads to it
being added to the handoff list after its FSM clock. This results
in the mnoc_maxi_clk being stuck ON when it's disabled as part of
clock_late_init. Hence, change the order of registering these clocks.
CRs-Fixed: 1065813
Change-Id: If076545f9557f1be2633f72fca5b9e8096b6501b
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Dump host state, power info and host/vendor specific registers
on link failures. This provides useful info to debug the failures.
Change-Id: I76a4ea56f3aee6a51a5930381ad8d12ca8b43551
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Change testbus default config, dump additional testbus
registers and ufs phy regs along with other debug vendor
specific registers. These additional info are useful
in debugging link related failures.
Change-Id: Icfa44def6d461a5782f7f57cefb78ed5e57a50d0
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
It's useful to dump phy registers on failure to debug
link issues. Export a new ops for the ufs driver to invoke
during link failures.
Change-Id: Id3a9c9085375b783d97e7f2ffd3e11ec469aedb9
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Add support of monitoring runtime phone power. Driver configures two
threshold values and receives notifications when phone power
crosses either high or low threshold. Driver then sends indication to
WLAN FW, which will vote for different regulator power mode based on the
indication.
CRs-Fixed: 1050198
Change-Id: I0614286f1b2a3446d40ad4d82e24a6e8f91069e1
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Add VADC node in ICNSS for reading and monitoring
runtime phone power.
CRs-Fixed: 1050198
Change-Id: I94278e4a972e4a1a2cdb162482a589743992ca3c
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Add debugfs entries for reading/writing WLAN hardware registers.
This is for runtime debugging enhancement.
CRs-Fixed: 1058506
Change-Id: Ib49adaa407d2a5d7765401fee4c8652f235c5f33
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Add support of sending athdiag read/write commands through QMI.
This enhance the runtime debugging of WLAN Hardware.
CRs-Fixed: 1038933
Change-Id: I6639ecce6c24d8b9757a98757bcc3f0cd4b2e9b2
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Register suspend_noirq and resume_noirq for WLAN driver.
This could make sure that no wake up is pending from FW
and if initial wake up is received then failing suspend_noirq
should trigger resume.
CRs-Fixed: 1060667
Change-Id: Ib233ce66ad21819d2d62155072f0bf985a12837b
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>