summaryrefslogtreecommitdiff
path: root/drivers/platform/msm/gsi (follow)
Commit message (Collapse)AuthorAge
* msm: gsi: Using kzalloc instead of devm_kzallocArmaan Siddiqui2021-03-24
| | | | | | | | devm_kzalloc causes memory failure, so using kzalloc to avoid memory allocation failure. Change-Id: I85befc8c2b06ce74419e4e508fc982ff4df5a343 Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
* Merge "msm: ipa2: Fix IPA kernel NULL pointer dereference"Linux Build Service Account2018-04-05
|\
| * msm: ipa2: Fix IPA kernel NULL pointer dereferenceMohammed Javid2018-04-05
| | | | | | | | | | | | | | | | Add changes to fix IPA kernel NULL pointer dereference issue Change-Id: I090d900688f13bc80616e7a3c49f7e1d6cf1be0b Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | msm: ipa: Remove unwanted gsi debug register readsMichael Adisumarta2017-12-23
|/ | | | | | | | | This changes removes the unwanted gsi dedug register reads, to which IPA driver dont have access to. Change-Id: I6efb1045275a9bdb238e6184ec676013ab1678bc Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com> Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
* msm: gsi: check channel state on timeoutSkylar Chang2017-08-10
| | | | | | | | | | | | In some cases of stopping a channel, the CH CTRL interrupt arrives late even though the channel is already stopped. This change will check the channel state after timeout occurs. CRs-Fixed: 2090459 Change-Id: I4b99e8fb6710dca16047025a614fb734995934a1 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: ipa3: Ring IPA MHI event ring doorbell on channel startGhanim Fodi2017-06-25
| | | | | | | | | | | Ringing IPA MHI event ring doorbell is done at MHI device during MHI channel start. This is done after the rings are allocated. The ring write pointer updated by the host is used as the doorbell value. Doorbell ringing is required in order to supply event credits to GSI H/W. Change-Id: I2db110b4f99c8ab6c6878d426b3ebb37149b0b76 Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
* msm: gsi: fix IPC low priority loggingSkylar Chang2017-04-20
| | | | | | | | | Allocate IPC low priority on first usage only. Change-Id: Ic44f5af02d1d7fd72b255c8989cfc6b7dcd7766d CRs-Fixed: 2016076 Acked-by: Ady Abraham <adya@qti,qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: gsi: continue probe on ipc log failureSkylar Chang2017-04-03
| | | | | | | | | Do not fail GSI probe function if IPC logging is not available. Change-Id: Icdccb9a8db637fc9c4fcff5f459831739c675173 CRs-Fixed: 2028149 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* Merge "msm: gsi: add ipc logging"Linux Build Service Account2017-03-21
|\
| * msm: gsi: add ipc loggingSkylar Chang2017-03-20
| | | | | | | | | | | | | | | | | | | | Added support for IPC logging to GSI driver. This will create a new entry for GSI on IPC the IPC log. Change-Id: I367535eb81a9d9245d4fd5fae70160ffde2137ee CRs-Fixed: 2020848 Acked-by: Michael Adisumarta <madisuma@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | msm: gsi: Remove duplicate registers definesGhanim Fodi2017-03-17
|/ | | | | | | | | gsi_reg.h file includes the definitions of GSI registers. The GSI Instruction RAM registers are defined twice. This change removes the duplication. Change-Id: Iccd256711c28a5f4698555079a7f73ce0357a92d Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
* msm: gsi: increase stop command timeoutSkylar Chang2017-03-09
| | | | | | | | | | | In case of high load on the system the old timeout (10ms) is not sufficient for GSI to stop a channel. This change is to increase GSI stop command to 20ms. Change-Id: I6f86e6bf9a0254daee937e05927c8152402b2ffe CRs-Fixed: 2015928 Acked-by: Ady Abraham <adya@qti.qualcommm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: ipa: increment GSI command timeoutGidon Studinski2017-02-27
| | | | | | | | | | Increment GSI command timeout. This is needed since during Q6 GSI FW authentication GSI HW is disabled and the response for the HW may be delayed. CRs-Fixed: Change-Id: Ia9ed0f0163abbfd3e242c38a9aea084c1c37e8fd Signed-off-by: Gidon Studinski <gidons@codeaurora.org>:
* msm: gsi: add support for generic commandsSkylar Chang2017-02-23
| | | | | | | | | | | Expose a new API from GSI driver to allow client driver to disable channel for other Execution Environment. This API will be used as part of SSR cleanup. Change-Id: I3b9400643aff76ca2195a597aba9ea18aab3085e CRs-Fixed: 2008582 Acked-by: Ady Abrahan <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: gsi: use reinit_completionSkylar Chang2017-02-06
| | | | | | | | | | To avoid a race condition between init_completion() and complete() which will cause a crash use reinit_completion() which is safe. CRs-Fixed: 1114785 Change-Id: I5b5c9eb6a4dbe406951d71fe5963b3c4e411daa0 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: ipa3: Validate IPA and GSI firmwares before loadingGhanim Fodi2017-02-03
| | | | | | | | | | | | | IPA and GSI firmwares are saved on the file-system as an ELF file. IPA driver extracts the firmwares and load them during driver initialization. This change adds validation steps to each firmware before loading: load addresses, memory sizes, firmware sizes and more... Change-Id: I7d7f66e8e8a9ca0efae08b1e57b25ae4e44cc5bb CRs-fixed: 1110522 Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
* msm: gsi: fix event ring handle in gsi_alloc_channelSkylar Chang2017-01-24
| | | | | | | | | Add a check to event ring handle. Change-Id: If835e7e610745aeb82d4d0e363ef833d0f8d857a CRs-Fixed: 1115476 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: gsi: fix to client notify on poll modeSkylar Chang2017-01-19
| | | | | | | | | | When processing an IEOB interrupt, do not process the pending events in case the channel is in polling mode. Change-Id: I9b9fbc71ae33fe1bfef837580f9f8e9aa875160d CRs-Fixed: 1112064 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: gsi: fix interrupt processingSkylar Chang2016-11-20
| | | | | | | | | | | Fix GSI interrupt processing to make sure interrupt are not missed. In order to achieve that interrupt should first be cleared before processed. Change-Id: I42978f2230e95456e4b4e932365e5b2c83445f56 CRs-Fixed: 1090894 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: gsi: add command statsSkylar Chang2016-10-21
| | | | | | | | | | Add debug statistics for GSI commands in order to improve debug capabilities Change-Id: Iee80fd2bf4b549665a12791009f0cf5ecc7653b9 CRs-Fixed: 1079245 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: gsi: add 1ms delay before resetSkylar Chang2016-10-19
| | | | | | | | | | As part of GSI reset workaround, a 1ms sleep needs to be added between the first reset command and the second one. Change-Id: I6131aa646edfd6192e4f0895a7cc97728d6f7536 CRs-Fixed: 1079245 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: gsi: driver upgrade for gsi version 1.2 and 1.3Skylar Chang2016-10-07
| | | | | | | | | | Add support to handle different HW versions on the driver. Update register/sequences per HPG. Change-Id: Ibb6b1ce3a035260edbba61c2a443bbda09b17cee CRs-Fixed: 1019773 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: gsi: enable wake irqSkylar Chang2016-08-16
| | | | | | | | | | | | Allow GSI interrupt to wake up AP. This change will prevent a data stall in case AP is in power collapse and IPA has data available to AP. Change-Id: I6457d1e348cd8e7a9075396e02061843f0ac9abc CRs-Fixed: 1012036 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: gsi: fix memory corruption from debugfsSkylar Chang2016-08-08
| | | | | | | | | Fix to GSI reset stats logic to clear the correct stats per channel Change-Id: I94ae8c769ec2868a291e75a2f47c85bd8a449937 CRs-Fixed: 1046484 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: gsi: do not register to inter ee irqSkylar Chang2016-08-02
| | | | | | | | | | Inter EE commands and IRQ are not supported currently and AP does not have access to those. CRs-Fixed: 1048160 Change-Id: I033044db83e8af6fb0976d711ea12c2f99291f91 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: gsi: fix for clearing IEOB interruptSkylar Chang2016-05-20
| | | | | | | | | | | Clear IEOB interrupt only for channels that have IEOB interrupt enabled. This is needed to make sure IEOB interrupt is not missed after switching from polling to interrupt. CRs-Fixed: 1014388 Change-Id: Ia6484ed03d9508b827f8c7e4dadb84c14e306bd9 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: gsi: construct TRE before submitSkylar Chang2016-03-23
| | | | | | | | | | | | For performance improvement avoid multiple writes to channel ring which is a dma coherent memory. Instead, construct the TRE (Transfer Ring Element) in local memory and then copy it to the ring itself. Change-Id: I36bfae306be2a90c8679d416397a435e638b54eb CRs-Fixed: 977590 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: gsi: data path statisticsSkylar Chang2016-03-23
| | | | | | | | | | | Add capabilities to GSI driver to collect data path statistics in order to help debugging throughput issues. This change also exposes the a debugfs interface to print stats. CRs-Fixed: 975119 Change-Id: If97512af034bd419cf4f679b1c19419605529fa6 Acked by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: gsi: mask GSI_BREAK_POINTSkylar Chang2016-03-23
| | | | | | | | | SW should not be registered for GSI_BREAK_POINT interrupt as this is for debug purpose only Change-Id: I17d152955bb52bccc89ff731eabe05582b7fd14c Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* msm: ipa3: support IPA driverSkylar Chang2016-03-23
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>