in function read_event, total can be less than previous count as
cached_total_count is not always updated.
Fix this by updating cached_total_count in read_event
when CPU is not idle.
Change-Id: I76a92a41cc6d79eb55c02f96025950576a5c5808
Signed-off-by: Shivnandan Kumar <kshivnan@codeaurora.org>
CONFIG_SCHED_DEBUG maintains scheduler statistic debug information
and can accessed the data dynamically.
On user builds, its not needed to enable debug related information,
so disable the scheduler debug.
Change-Id: I5b5b14e1bd1498945bbbd67d797330e9cdcc17bd
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
bt_gpio_sw_ctrl is configured input by pmic by default.
For some platform such as jr510, gpio_direction_input would
lead to wdog error as REGISTER read only permission is just given.
Change-Id: Ie446f2ec9aa7539acf67d88e9635dc9d3d65595a
Signed-off-by: xiaowang <xiaowang@codeaurora.org>
QMI timeout value is to be sent to the icnss2 module
during initialization using module_param.
Change-Id: Ibb6038ccdcac5b59b4f72597588312b4b064da0e
Signed-off-by: Vijay Patil <vijaylil@codeaurora.org>
Add support to log KPDPWR status during driver INIT and runtime
when "qcom,log-kpd-event" is enabled.
Change-Id: I6eb58e560552741ea5f48967b56bb2236b375830
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
Add code of debugfs creation for qmi timeout as control parameter.
This feature adds support to update qmi timeout at runtime.
Change-Id: I707a87269e3bb94e2ec3fe90d4a438b175d34997
Signed-off-by: Vijay Patil <vijaylil@codeaurora.org>
For qca6490, read dts first to get default gen speed, if valid
setting existing, then use it, else use gen2.
Change-Id: I6cb507746d677da114408e78076c3cc21073a829
CRs-Fixed: 3003876
Signed-off-by: Jianmin Zhu <jianminz@codeaurora.org>
Use the mmap_sem lock from passed 'mm' rather than the 'current' as it
is required because of the patchset[1]. The commit f4fa8d937e ("mm:
madvise: fix vma user-after-free") changed the 'mmap_sem' to use from
'current' instead of 'mm' context. Revert it.
Link: [1] https://patchwork.kernel.org/project/linux-mm/patch/20200302193630.68771-2-minchan@kernel.org/.
Change-Id: Ifc9deb2a5f0775c2bc97c85db3584f61fa3a43ae
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
Enabling global irq after link enumeration causes link
failure with IPQ host. Global irq is enabled before
enumeration for ipq host alone.
Change-Id: I20fa69c05bd3bc97fddea35e9e30833bca04c54b
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
We need to perform icc bus vote when enable endpoint and bus unvote when
disable endpoint. However, icc_path is released during endpoint disable
(by ep_pcie_clk_deinit()). This change fixes icc bus vote and adds icc bus
unvote accordingly.
Change-Id: Iaa4c6e4df5923a325f038dba689ef17bc746bab4
Signed-off-by: Can Guo <cang@codeaurora.org>
sdx targets rely on oom killer to kill the processes as there is
no lmk. so, disable panic_on_oom on sdxnightjar.
Change-Id: I67f055ec9e7412495360cdc5f1aa2350a4e3fab9
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
Make sure there is enough room in the memory descriptor to store the
entire profiling buffer object.
Change-Id: I1e1c73097bb2bba9645b0a3c66fdbbc71d8ba8fa
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
Send WPSS restart level type as enable or disable PHY processor
SSR to FW using QMI.
Change-Id: I28879cf13e5874c49b2c346c076082f7f8a59fe1
Signed-off-by: Vijay Patil <vijaylil@codeaurora.org>
During IB parse, vmalloc is called which can sleep and
should not be called from atomic context. Since IBs are not
dumped during atomic snapshot, there is no need to parse it.
Change-Id: I116d095958d99a8caeafb24dc45684ead01c961d
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
Update the maximum apcs_cpu_pll frequencies based on the latest
lucid_5lpe HW recommendations.
Change-Id: I3e88cbae6c60bde9648ec2b454765c27ff07bee4
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
The CPU PLLs latch interface is custom and not entirely reliable. So
instead use the standard lucid_5lpe ops and bypass the latch interface.
Change-Id: I0bc46e329ed5e135f26a08a4f09dd1872013ed7a
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Some PLL instances don't have a fully functional latch interface and
it's not strictly required in all circumstances. So add support for
bypassing it.
Change-Id: I60c319c0f50c8eca159afa32ee3cbd83bb1af510
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Reap tasks that are killed by PreKillActionT.
Change-Id: I367e803848121d071d8143952eaa9b7195ae04d6
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
Avoid printing error when ENODEV is returned from glink callback
and use dev_err_ratelimited so that throttling will not happen
due to excessive logging.
Change-Id: I9369046c2f907ecd38416c8927764c7a8b7c1ca4
Signed-off-by: Sarannya S <sarannya@codeaurora.org>
This change ensures the IOS lines are in protocol default state before
starting the data transfer. This ensures the slave is properly powered
up and also protocol lines are in IDLE High state.
We can prevent any further try to send data which can be failed due to
lines not in proper state.
Change-Id: Ibd9a6109133dd776f86a841f8bde305d08d2c187
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
With the commit <37ea867103f2>("msm: ep-pcie: Use threaded irq for
PERST de-assertion handling"), PCIe driver notifies the PM_RST_DEAST
event in threadedIRQ context. Process this event in the same
context so that we can finish link initialization and training as
quickly as possible.
Change-Id: If920fd9b653d6ae82cea599effb2d912a9b08174
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
When the host de-asserts the PERST, ep-pcie driver needs to bring-up
the link as quickly as possible (within 150ms). Otherwise, the host
may fail to detect the link.
In our current design, we are doing the link initialization and
link training in a kworker thread context. In some scenarios
this context is incurring context switches and scheduling delays
which is resulting in issues like the host fails to detect the link.
To fix this, perform the link initialization and training in the
highest possible priority (threaedIRQ). With this change, PCIe driver
notifies clients in threadedIRQ context and the clients (Eg MHI)
supposed to invoke the link training in the same context.
Change-Id: I04de4a1dfb3a145b947a2824c6961da70215944b
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Fix potential memory leak situation when receiving a message of type
HAB_PAYLOAD_TYPE_EXPORT_ACK. Add kfree() to free ack_recvd.
Change-Id: Iaa5cb10af694b20647f2f04f3c030bfa2ba59a3d
Signed-off-by: lixiang <lixiang@codeaurora.org>