KW tool detect the potential NULL access and buffer
index overflow issue.
The change is to add the proper handle for NULL response
and prevent buffer index overflow.
Change-Id: I0bb1b45ba6e5b0abe6c3539d451f74e19028737c
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
Update the FnR stats related changes for IPA 4.5.
Change-Id: I3f34b5d58862636cba39cff3403102fb7884f769
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
add changes to resolve warnings in different drivers.
Change-Id: Iea74591f78a383be9e82d42b2821371c41d3b6d9
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
Change the max_clients from a define to part of the clients enum.
Change the function name set_perf_profile to set_throughput since
it only changes throughput and perf_profile has been deprecated.
Change-Id: I425f438001d5e0024c09cd822b3f813de2840361
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
IPA 4.5 EP assignments and configuration updated to
accommodate recent supported use-cases. This change
integrate these updates.
CRs-Fixed: 2308523
Change-Id: I7d98a2c38268de8a17ff0ea3e813a5e1cc18a540
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
Queued work scheduling can happen immediately after
triggering it, which exposed timing race condition issue.
This change fixes it.
CRs-Fxied: 2307852
Change-Id: I09e19840708772275ca64d4eeaf7ab8ef1b7df49
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
Adapt EE area IPA registers to the H/W changes
at IPA version 4.5. This includes e.g. the IPA
interrupt registers.
CRs-Fixed: 2303588
Change-Id: If8ad2fafb0cca0e591c40105a17dcb5c9e2a5256
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
IPA 4.5 time scheme changed to the following:
* Time-stamps are now based on QTIME component.
It is chip level component and keeps ticking even
if IPA is power collapsed.
* Time Counters now works with different discrete
granularity configurable levels based on XO clock
CRs-Fixed: 2291180
Change-Id: Idb5d9d37156c0f1d1f6700baa928f78c30b0769d
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
Changes made to the IPA/GSI drivers in support of an emulation
system. The emulation system is an FPGA based system that allows for
the prototyping of new IPA features before committing them to silicon.
Change-Id: I6ad6474c6574e0efb869c1b07e611d6bbd89fae8
CRs-fixed: 2204018
Acked-by: Perry Randise <prandise@qti.qualcomm.com>
Signed-off-by: Jennifer L. Zenner <jzenner@codeaurora.org>
Signed-off-by: Jie Luo <jluo@codeaurora.org>
Destroy the PM before unit testing since every test
case will re-init the PM with their own parameters.
Take out rpmh dependency for unit tests and move in ipa.c.
Change-Id: I4975340b7ba0210aebe0631778fe85c4023feb11
CRs-fixed: 2238471
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Free ipa_ut_ctx->wq if create directory or create file fails for
IPA unit tests.
Change-Id: Ic86be7f1d166ad6144613435e8820be202cc64cb
CRs-fixed: 2176738
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
As MHI event ring filled with credits during channel start,
queue more credits during a transfer only if they are needed
for the transfer.
Change-Id: I1b8cb55ce0dd1fa869b18ede1be104211b367132
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
file* object passed via write fop cannot be used after
write returns as it may be freed. Any needed data, need
to be saved before write returns.
CRs-fixed: 2174721
Change-Id: I69473c7000b193b6353efdb21d1f4c98dcdc5e8c
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
This is a snapshot of the IPA driver as of msm-4.9
commit '089d1cb5176d3cf8a99eb744027c11b91dba00c9'.
Change-Id: If7d19da967c2851c56b971769d6ff2c38f07465f
Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>