If we intersect with an existing vma, we check against the same vma
multiple times which causes huge latency during mmap. So check against
an existing vma just once and move on.
Change-Id: Ib7975493d137f29db7ce01fc1d0ac7d88b9405e2
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
ECM_CONNECT/ECM_DISCONNECT name looks specific to ECM offload
scenarios. As IPA supports other peripherals like ETH/AQC/RNDIS
use a more generic name.
Change-Id: I09bb640734f2ea0bf2d47ed95d03290db50b5770
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
This fix stops the remote IPA MHIP channels from probe if tethering is
not enabled, before unvoting host IPA clocks.
Change-Id: Iae12f13a3297e2ed7898e7c3a5e0b39ab6793e55
Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Firmware version check is not needed in Lahaina. Remove it and
deprecated functions.
Change-Id: I4d3f8eaad1b4d49f762f534b8a7f76ddc32fa230
Signed-off-by: Ruofei Ma <ruofeim@codeaurora.org>
Address an unlikely null pointer dereference.
Fixes commit 7b5df13bc4b3 ("mm: swap: free up swap on mm reap").
The expected usage of free_swap_slot is that the caller has already
checked that the swap_entry_t is valid.
Change-Id: I85331f817458df7f6cb0c0b387ca34c345f8c513
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
The avc allocations are marked with GFP_NOWAIT and thus
considered to be non-fatal allocations. This also makes
these allocations easy to fail thus filling the log buffer
with page allocation failure messages. There are no known
cases of these messages being of any importance for
debugging. Disable them.
Change-Id: I3517a134ad0e8deb307f0d140f4b16cb303a9f7f
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
To be able to debug performance issues related to scheduler and
other scheduler bugs, enable below debug features:
1. PREEMPTIRQ_EVENTS
2. PANIC_ON_SCHED_BUG
3. PANIC_ON_RT_THROTTLING
Change-Id: If3350c3914e0c1590a7536cfb8131d747a075263
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
When WALT & UCLAMP are enabled, compilation is broken.
Change-Id: Id0b23f1d0fd0131f390c062076bddad5104ddd51
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Even though best_energy_cpu is idle and which would consume
same amount of energy as prev cpu, due to 6% check with prev cpu,
we end up choosing prev cpu over best_energy_cpu for the tasks.
This leads to increase in runnables. Choose best_energy_cpu when
it is idle and shallowest c-state over prev cpu in such scenarios
to avoid runnables.
Change-Id: Ib9eee263640bcd43bd80f8f777a8312585991bc5
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Add PCIe pipe and UFS symbol clock bindings for Lahaina.
Change-Id: I19843209b37b2caf17574e459f05f31c406daa79
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
The current mux_get_parent logic attempts to find the parent index by
passing the HW parent to qcom_find_src_index, which compares against the
logical value (parent_map::src) instead of the raw HW value
(parent_map::cfg). This can lead to improperly parented muxes or orphans
since there is no guarantee that the logical values match the HW values.
Add a new helper function (qcom_find_cfg_index), which returns the index
associated with the HW parent value (parent_map::cfg). Call this
function in mux_get_parent instead of qcom_find_src_index to fix the
improper mux parents.
Change-Id: I87efb8a798ab481a86d29a9b830cbc1f889a4e5b
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Enable the external display module, which is a utility
to manage display interface and audio codec interactions
associated with the cable connect/disconnect events of the
display interfaces.
Change-Id: I736e86320f5a29c67cb3ca7a2f23429f07fe9445
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
Specify MHI_VOTE_DEVICE flag when calling mhi-driver API:
mhi_device_get_sync to make sure device side PCIE won't
get to power collapse.
Change-Id: Ia254d3bdbc191f80af05224df4b272921aba2d10
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
This change tunes MHIP UL / DL ring sizes to 6 elements for better
memory optimization.
Change-Id: I2e350bfee0c5b6f0aafdf5462be80f06001c6052
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Enable thermal sensor drivers and cooling device drivers for lahaina.
These drivers are required to monitor thermal sensors and mitigate
cooling devices to maintain operating temperature.
Change-Id: I6da087a57ce3957992bbf37ee534b9b537ed3998
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
reduce MHIP ring size to 64 elements for memory saving
and tcp transmission queue size reduction.
Change-Id: Ib718d07a5f5078899847527ea26ef23524fbe024
Acked-by: Suhas Mallesh <smallesh@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>