Sometimes system doesn't have enough continuous pages for kcalloc.
If kcalloc fail, use vmalloc instead.
Change-Id: Ie0864224f4eeedbd01b301f59b4eb307cc1f8df2
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
We currently set best_parent_rate to the ideal frequency wanted by the
RCG. This doesn't always align to the exact frequency the parent can
provide. If they differ, then clk_calc_new_rates() will return the
parent as top, even if the rounded parent frequency isn't changing.
This causes clk_propagate_rate_change() to return before being called
for its children, which means children aren't notified of the
PRE_RATE_CHANGE events.
Set best_parent_rate to the rounded rate so that we don't unnecessarily
try to change the parent.
Change-Id: Ic976db7a13dfbc63cb66b032a45060565ca90b43
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Currently driver calculating stale delay based on baud rate during
stop_rx sequencer. When BT started with lower baud rate like 2400
this logic will add around 130msecs of extra delay during BT INIT.
This change will remove logic for stale delay calculation
based on baud rate and add constant delay of 10msec to
wait for stale interrupt during stop_rx_sequencer.
Change-Id: I566d79145ba887de71482642655b63c5bd640fc8
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
To handle install cnss2 as module, need set dms server state after
bus init.
Change-Id: Ie6ac374193057190a69cb8e98da1771657b00f2d
Signed-off-by: Will Huang <wilhuang@codeaurora.org>
To avoid overclocking issues observed on few parts,
use floor ops for SDCC clocks.
Change-Id: I0bdb6dd540a4885f0c39f25ed97b17035e31f510
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
FIFO_REAL_TIME_FILL_STATUS_MASK is different for haptics HW
version V3. Update it.
Change-Id: Ida8326d89678af34ae2c3a35164ae1a7ad5f6b7b
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Add ep details corresponding to
RMNET_CV2X tethering over eth.
Change-Id: I0285887470c950a73e61dd51bf673bbc650d40bb
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
As per the latest ipcat gpio6 func2 should be
mapped to qup6. Changes are done to support the same.
Change-Id: I57bf30916a8b51eececdeefe21ac3729bc20d903
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
"mapped" variable inside kgsl_mem_entry structure is not used anymore.
Remove this variable from kgsl_mem_entry structure.
Change-Id: I3ced1ae140e8ce91fdc4eac3276d3f5283823fd6
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
The function pil_clear_segment should be called only
when S2 mapping is success. So update clear_fw_region
accordingly.
Change-Id: Ie5bcf5b322ce347b08a575d18b7de3226027af91
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
Existing api msm_pcie_write_reg_field() calls find_next_bit()
and results in a KASAN out of bounds error for taking in
the first parameter by typecasting as unsigned long type.
To avoid the KASAN error use __ffs() instead.
Change-Id: I9e155248e1233bbcb04ac5e2d1d6d512b3fa5387
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Restoring CMDQ_SEND_STATUS_TRIGGER field after XO or hardware reset can
lead to CMD13 being send as soon as CQE is turned on which can lead to
below unnecessary warnings followed by register dumps.
[ 82.554113] mmc: sdhci_cmd_irq: Got command interrupt 0x00000001 even
though no command operation was in progress.
Unset that bit before restoring CMDQ_VENDOR_SPECIFIC_CFG register.
Change-Id: Id5961ecdd68b0d7cbc1c48c116f9e862a1dfc573
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
For low temperature (< -25 degrees) WLAN FW need to keep
delay between WLAN EN low and HIGH. Read WLAN_EN delay
set by "wlan_en_delay" sysfs file and send it through
Host Cap request. Increase MODE_ON and TARGET_CAP QMI request
timeout to WLAN_EN delay value to accommodate delay kept
in FW for WCN6750.
Change-Id: Ic52cc94183984200f4cc3d893756bf7abeddad6d
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
Enable TLB conflict handling for QGKI image of holi.
Change-Id: Idbb5476c2495add61c3c659494c60f368a2e3e42
Signed-off-by: Naina Mehta <nainmeht@codeaurora.org>
Add TLB conflict fault handler and try to handle
gracefully. Check whether TLB fault can be handled
by EL2 and cause panic if EL2 is not able to handle.
Change-Id: I276ec5413411932bd8a67ed4c85ebbf66f4affcf
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Naina Mehta <nainmeht@codeaurora.org>
It is possible that userspace can request import for secure dma buffer
that is not accessible to CP_PIXEL. There is no need to import such
buffers in KGSL. Go through the list of VMIDs for secure dma buffer
and fail import if it is not accessible to CP_PIXEL.
Change-Id: I7584ad00a964c9c40ac4c0c9b1c83a21c03c48fd
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
Add proper debug logs to print return value of subsytem_get.
Change-Id: I5e210e7b32fe35ecf9688a84776385ba6e382df8
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
Dump stack in case of SSR failure when ignore_ssr_failure
flag is enabled for wpss on Yupik platform.
Change-Id: I98fd294b12fe7bd9b52deb15edb8d83a5113acd8
Signed-off-by: Naina Mehta <nainmeht@codeaurora.org>