19 Commits

Author SHA1 Message Date
Armaan Siddiqui
6c9a74ee8d msm: ipa: Fix compilation errors when DEBUG_FS is disabled
Fix compilation error when CONFIG_DEBUG_FS is disabled in
perf_defconfig.

Change-Id: Ic79f26ebb8fd985c3cdb70703680a522d015897d
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
[rshaha@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
2020-05-14 21:08:56 -07:00
Bojun Pan
899aa75c55 msm: ipa: Fix KW P1 issue
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>
2019-09-12 13:39:11 -07:00
qctecmdr
04749e7fec Merge "msm: IPA: FnR stats for IPA4.5" 2019-04-15 23:05:41 -07:00
Bojun Pan
1f626a6184 msm: IPA: FnR stats for IPA4.5
Update the FnR stats related changes for IPA 4.5.

Change-Id: I3f34b5d58862636cba39cff3403102fb7884f769
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2019-04-04 20:31:38 -07:00
Venkata Rao Kakani
6546402111 drivers: Fix several C code warnings.
add changes to resolve warnings in different drivers.

Change-Id: Iea74591f78a383be9e82d42b2821371c41d3b6d9
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2019-04-03 12:03:57 +05:30
Bojun Pan
635f177f44 msm: IPA: support WDI3 over GSI
Support WDI 3.0 over GSI.

Change-Id: I952ea2bb864f179ed3238305520051f884e3a1af
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2018-12-20 13:22:05 -08:00
Michael Adisumarta
91ea98be98 msm: ipa4: IPA PM naming fixes
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>
2018-10-30 14:20:13 -07:00
Ghanim Fodi
e7e0818013 msm: ipa4: Update IPA EP configuration to latest
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>
2018-09-05 00:32:17 -07:00
qctecmdr Service
0f724066fd Merge "msm: ipa: Fix timing issues for IPA PM test suite" 2018-09-03 19:11:01 -07:00
Ghanim Fodi
c68788c601 msm: ipa: Fix timing issues for IPA PM test suite
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>
2018-09-03 14:02:16 +03:00
Ghanim Fodi
8e8789e544 msm: ipa: Adapt EE area registers for IPA4.5
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>
2018-08-28 12:37:29 +03:00
Ghanim Fodi
740bdf6543 msm: ipa: Support IPA4.5 new time scheme
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>
2018-08-06 13:43:13 -07:00
Jennifer L. Zenner
6a918627fe msm: ipa3: Add support for IPA/GSI emulation system
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>
2018-07-05 14:53:47 -04:00
Michael Adisumarta
24fda2a0b2 msm: ipa4: IPA PM Unit tests init fix
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>
2018-05-18 18:57:30 -07:00
Michael Adisumarta
0c5717c09f msm: ipa: test: add destroy workqueue for fail cases
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>
2018-02-20 13:34:22 -08:00
Ghanim Fodi
fda8e28ab8 msm: ipa3: fix event ring credit replenish at MHI unit test
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>
2018-01-24 03:30:21 -08:00
Ghanim Fodi
9016904ad0 msm: ipaut: Do not use kernel file object after write fop returns
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>
2018-01-20 04:26:25 -08:00
Michael Adisumarta
0f3ae5fe11 msm: ipa: msm-4.9 propagations to msm-4.14
Propagation of msm-4.9 changes to kernel msm-4.14
upto 5437fc31d957f681a8ce31af74ff3e4cff769b37.

Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Change-Id: Iae70e9682dc16fd6c443191a03c70a8ff4baed69
2018-01-18 12:01:45 -08:00
Michael Adisumarta
c29d902067 msm: ipa: Add snapshot of IPA driver
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>
2017-11-15 16:23:09 -08:00