summaryrefslogtreecommitdiff
path: root/drivers/platform (follow)
Commit message (Collapse)AuthorAge
...
* | | | | | | Merge "msm: ipa: fix wrong usage and cleanup dead code"Linux Build Service Account2017-07-11
|\ \ \ \ \ \ \
| * | | | | | | msm: ipa: fix wrong usage and cleanup dead codeMohammed Javid2017-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Couple of code cleanup - remove dead code - initialize local variables before use - validate gsi_ep_cfg_ptr return Change-Id: Ia2c2a5559fa2c5f89b33cc1ff897df0faa725e7e Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | | | | msm: ipa3: Verify IPA client id before using itGhanim Fodi2017-07-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Verify IPA client ID is valid before using it to access clients array for logging purposes. In case of invalid id, do not access the array. Change-Id: I7af6ee765a6d70d61721ac21b6a92ed53469b05a CRs-fixed: 2051257 Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
* | | | | | | | msm: ipa3: Protect access to ipa3_qmi_ctx variable by lockGhanim Fodi2017-07-09
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ipa3_qmi_ctx is a global variable that may be accessed by different worker threads. Protect the access to it using mutex lock so that the access will be always atomic. Change-Id: Iaf0c95d66817833c8e8123b12e94a7a01ab8df2c CRs-fixed: 2056414 Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
* | | | | | | Merge "msm: ipa: Fix the problem with nested sleeping primitives"Linux Build Service Account2017-07-06
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | |
| * | | | | | msm: ipa: Fix the problem with nested sleeping primitivesMohammed Javid2017-06-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prepare_to_wait() will enqueue the thread on the given queue and put it into the given execution state, which is TASK_INTERRUPTIBLE. Further processing in function, calls mutex_lock(), will go into a new version of the going-to-sleep code, changing the task state. That, of course, may well interfere with the outer sleeping code. So, nesting of sleeping primitives in this way is discouraged. And new warning was added to point out this kind of nesting. Fix the nesting of sleeping primitives with the new solution provide in linux kernel. Change-Id: Id1a5f64472cd2d63e679706c6482db98f89ec765 Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | | | Merge "msm: ipa: prevent string buffer overflows"Linux Build Service Account2017-07-04
|\ \ \ \ \ \ \
| * | | | | | | msm: ipa: prevent string buffer overflowsSkylar Chang2017-06-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On rmnet_ipa_set_data_quota() API, add the string terminator to prevent vulnerability of string buffer overflows on debug prints. Change-Id: Ie669f6606f76b9006bce4edd0c6d04aef9cfb600 Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | | | | | | msm: ipa: fix IPA MHI unit testsSkylar Chang2017-07-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Connect a test producer pipe for MHI unit tests as the default LAN_PROD pipe is not connected on MHI config. Change-Id: I2fc1ff8758d222a738d570b5babc22ced2b43219 CRs-Fixed: 2066878 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | | | | | | msm: ipa: fix mhi suspend logicSkylar Chang2017-07-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a missing return statement in IPA MHI suspend routine. Change-Id: I1dfbcff21ba3ca72ff985e76e851caf6a9da1ae4 CRs-Fixed: 2066866 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | | | | | | Merge "usb: bam: Remove inactivity_timer sysfs attribute"Linux Build Service Account2017-07-03
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | |
| * | | | | | | usb: bam: Remove inactivity_timer sysfs attributeArumuga Durai A2017-06-30
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sysfs attribute "inactivity_timer" not being used anymore so remove that entry from sysfs. CRs-Fixed: 2048725 Change-Id: I30d2d4a3cb9899b7975a6395eab90337fc006488 Signed-off-by: Arumuga Durai A <cadurai@codeaurora.org>
* | | | | | | Merge "msm: rmnet_ipa3: fix QMAP command xfer"Linux Build Service Account2017-06-28
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | |
| * | | | | | msm: rmnet_ipa3: fix QMAP command xferSkylar Chang2017-06-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix QMAP command packets TX to modem. These packets needs to be sent to Q6_WAN_CONS pipe. Change-Id: Ib718ad7308004ba7727e30e64f4b50bf4e521da3 CRs-Fixed: 2068048 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | | | | | Merge "msm: ipa3: Assert on GSI MHI event ring fatal error"Linux Build Service Account2017-06-27
|\ \ \ \ \ \ \
| * | | | | | | msm: ipa3: Assert on GSI MHI event ring fatal errorGhanim Fodi2017-06-25
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GSI MHI event ring error is a fatal error where there is no recovery possible. Data path will be stalled. This change will assert on this case. Change-Id: I9c94e44b2f2d5e1b0b8d059b871d1bd9ad2d3fcf Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
* | | | | | | Merge "msm: ipa3: Ring IPA MHI event ring doorbell on channel start"Linux Build Service Account2017-06-27
|\ \ \ \ \ \ \
| * | | | | | | 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: ipa3: remove delay from AP if QMI failsAmir Levy2017-06-25
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case of failure to send QMI message to modem remove the delay from AP since modem is probably down (SSR\reboot). Change-Id: Iae4d5162d39cd05f5c50d75087ec90dfe04a6c43 Signed-off-by: Amir Levy <alevy@codeaurora.org>
* | | | | | Merge "msm: mdss: dp: fix no display issue on second connection"Linux Build Service Account2017-06-23
|\ \ \ \ \ \
| * | | | | | msm: mdss: dp: fix no display issue on second connectionNarender Ankam2017-06-14
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Video and Audio notifications from HDMI/DP driver can now be sent separately. set/clear current display type only on receiving video notifications. Change-Id: I093fd0b2abd135216af67573bd7ffa4657f6af04 Signed-off-by: Narender Ankam <nankam@codeaurora.org>
* | | | | | Merge "msm:ipa: Fix to kasan use-after-free issue"Linux Build Service Account2017-06-23
|\ \ \ \ \ \
| * | | | | | msm:ipa: Fix to kasan use-after-free issueMohammed Javid2017-06-19
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added mutex lock to query rt table function also to sync with other ioctl calls in both ipa v2/v3. Change-Id: I65d46c0ef28b5e6260c92473fd15e9763de20146 Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | / / / / msm: sps: Fix race condition in SPS debugfs APIsSiva Kumar Akkireddi2017-06-19
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SPS debugfs APIs can be called concurrently which can result in dangling pointer access. This change synchronizes access to the SPS debugfs buffer. Change-Id: I409b3f0618f760cb67eba47b43c81d166cdae4aa Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
* | | | | Merge "msm:ipa: Fix to IPA static analysis constant null deferenced"Linux Build Service Account2017-06-19
|\ \ \ \ \
| * | | | | msm:ipa: Fix to IPA static analysis constant null deferencedMohammed Javid2017-06-18
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding code changes to reslove IPA static analysis issue Constant NULL dereferenced by passing to other function. Change-Id: I07bd7ac42929576429fc4548cfce7d202d77364f Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | mhi: core: add a timeout when waiting for MHI state BHI event.Sujeev Dias2017-06-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's possible for POR to fail and endpoint not enter correct reset state. Add a timeout when waiting for MHI state BHI transition event during firmware download. CRs-Fixed: 2062442 Change-Id: I6af16ec1a514d50b9e984e3fb16696d23e605ba0 Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
* | | | | Merge "msm: ipa: Add assert upon send command failure"Linux Build Service Account2017-06-15
|\ \ \ \ \
| * | | | | msm: ipa: Add assert upon send command failureUtkarsh Saxena2017-06-14
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assert the device upon send command failure after reaching maximum retries. Change-Id: I154eda0697ec190662dc16edbe09e2213b4a0bae Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com> Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* / / / / msm: ipa: fix ipacm_client usageSkylar Chang2017-06-14
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the access to ipacm_client array. Change-Id: I0e6c026a4f6eb0bc21f4e07cb301e21f78103f33 CRs-Fixed: 2024177 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | / msm: ipa: fix hdr table full conditionSkylar Chang2017-06-12
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The header table is managed by IPA driver and header cannot be moved. Instead a "free list" is maintained for deleted headers. This change fixes a bug on header addition where the table is considered full only if it is full and the free list is empty. Change-Id: Ief8a384ea105c6f0179faaf95a98b9731fe6a01e CRs-Fixed: 2048799 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | Merge "mhi: core: Add support for host triggered device ram dump"Linux Build Service Account2017-06-07
|\ \ \
| * | | mhi: core: Add support for host triggered device ram dumpSujeev Dias2017-06-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for bus master to trigger PCIe device into ram dump mode to collect device ram dump. RDDM capabilities are extended to support under kernel panic as well. CRs-Fixed: 2055981 Change-Id: I18f7d5784992df70aafc6e41d248ced3fac37181 Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
| * | | mhi: core: Add support for PCIe linkdown abortSujeev Dias2017-06-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PCIe linkdown event can trigger anytime. During linkdown event abort any work MHI host doing that require PCIE link. CRs-Fixed: 2055975 Change-Id: Idba907c7977594dc08575e0020a7afa4868bc0e4 Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
* | | | Merge "mhi: core: Using usleep_range instead of msleep for sleep"Linux Build Service Account2017-06-06
|\| | |
| * | | mhi: core: Using usleep_range instead of msleep for sleepSujeev Dias2017-06-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | msleep is not accurate for small delays. Use usleep_range for accuracy. CRs-Fixed: 1117121 Change-Id: I9a076f843875bd83a21c96d4e4ea0510e82ce352 Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
* | | | Merge "mhi: mhi_uci: Create char dev only after PCIe device ID is known"Linux Build Service Account2017-06-05
|\| | |
| * | | mhi: mhi_uci: Create char dev only after PCIe device ID is knownSujeev Dias2017-06-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MHI host may not have PCIe device info during channel registration. Defer creation of char device until PCIe bus enumeration is completed. CRs-Fixed: 2040899 Change-Id: I6372523bd6a758f29dad09d207b86c3f87e2f2cc Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
* | | | Merge "mhi: core: Bind devices with variable PCIe device IDs with same ↵Linux Build Service Account2017-06-05
|\| | | | | | | | | | | | | | | device node"
| * | | mhi: core: Bind devices with variable PCIe device IDs with same device nodeSujeev Dias2017-06-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to bind devices with variable PCIe device IDs with same device tree node, make PCIe device ID optional parameter in device tree node. If PCIe device ID not specified in device tree, any device can be bind with the node. CRs-Fixed: 2040899 Change-Id: Iaedcb40db15fa0e8c5c30eb147c904a10cd7569d Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
* | | | Merge "msm: ipa3: Fix to add check for dma_map_single return values"Linux Build Service Account2017-06-05
|\ \ \ \
| * | | | msm: ipa3: Fix to add check for dma_map_single return valuesUtkarsh Saxena2017-05-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a error check for return of dma_map_single using dma_mapping_error API.Added code changes to free correct tx_pkt pointer in fail_dma_map condition. Change-Id: Ib1f9164eef4bfbe4cda26fd1eced1f581fdf1e66 Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
* | | | | Merge "mhi: core: Only allow registration if channel is supported by endpoint."Linux Build Service Account2017-06-01
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | mhi: core: Only allow registration if channel is supported by endpoint.Sujeev Dias2017-05-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not all endpoints support all channels supported by MHI host. Only allow clients to register if requested channel is supported by endpoint. CRs-Fixed: 2053250 Change-Id: Ib4bd8d21b8f43d693da30b8fafe2cb9d2e128a17 Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
* | | | | Merge "mhi: core: Fix memory leak in MHI DE_INIT"Linux Build Service Account2017-06-01
|\| | | |
| * | | | mhi: core: Fix memory leak in MHI DE_INITSujeev Dias2017-05-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During MHI INIT, memory is allocated for firmware and rddm vector table. This memory is not freed when DE_INIT is called. CRs-Fixed: 2053206 Change-Id: I85b2644189915dd25d8ac31190f16799f86cbd12 Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
* | | | | Merge "msm: ipa: Fix to use GFP_DMA flag"Linux Build Service Account2017-05-30
|\ \ \ \ \
| * | | | | msm: ipa: Fix to use GFP_DMA flagUtkarsh Saxena2017-05-26
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IPAv2 hardware works with 32 bit addressing, so allocate a kernel memory using GFP_DMA flag which is processed by IPA hardware. Added code changes to free correct tx_pkt pointer in fail_dma_map condition. Change-Id: I5f7005c3bf89275fd56af648ee5bf1b3d06afc38 Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com> Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
* | | | | Merge "msm: ipa: fix security issues in ipa wan driver"Linux Build Service Account2017-05-27
|\ \ \ \ \
| * | | | | msm: ipa: fix security issues in ipa wan driverSkylar Chang2017-05-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the security issue in handling add mux channel event in ipa wan driver. Change-Id: Ic2ffeafddad4954ec3ecba0d675646d0790eede7 Signed-off-by: Skylar Chang <chiaweic@codeaurora.org> Acked-by: Shihuan Liu <shihuanl@qti.qualcomm.com>