summaryrefslogtreecommitdiff
path: root/drivers/platform (follow)
Commit message (Collapse)AuthorAge
...
| * | | msm: ipa: dynamic memory leak fixMichael Adisumarta2017-11-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a fix for dynamic memory leak seen with incorrectly allocating memory of a different size than with intended size. Change-Id: I821442ee6728ea90ceab7644e194f4e06369333a Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com> Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
* | | | Merge "platform: msm: Set USB speed to SUPER before calling notifier"Linux Build Service Account2017-11-28
|\ \ \ \ | |/ / / |/| | |
| * | | platform: msm: Set USB speed to SUPER before calling notifierAjay Agarwal2017-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently we set the USB speed to SUPER after calling vbus/id notifier callback. As a part of cable connect, is USB speed is set to SUPER after connect resume_work is called, then we do not initialise the SSPHY. So clocks are OFF. But as part of cable disconnect, if USB speed is set to SUPER before disconnect resume_work is called, then we try to suspend SSPHY resulting in unclocked access. Fix this by mandatorily setting USB speed to SUPER before queuing VBUS/ID notifier. Change-Id: Iac4411ddafd87909b1b26c9b5a8eb354a073d268 Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
* | | | Merge "msm: sps: Restore ipc log destroy commands"Linux Build Service Account2017-11-27
|\ \ \ \
| * | | | msm: sps: Restore ipc log destroy commandsJishnu Prakash2017-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes got reverted accidentally with commit e498154c0976 ("msm: sps: Update debug message format specifier") restoring them again. Change-Id: I6c2c7b4d636131341139d89ff4d59b608df5da9b Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
* | | | | Merge "msm: ipa: Fix to race condition proxy clock voting"Linux Build Service Account2017-11-22
|\ \ \ \ \
| * | | | | msm: ipa: Fix to race condition proxy clock votingMohammed Javid2017-11-22
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added code changes to fix the race condition during proxy clock voating in IPA. Change-Id: I1fee17836bf58d25f461643ea1e60bcd06182372 Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | Merge "msm: ipa: UAPI security code changes"Linux Build Service Account2017-11-22
|\ \ \ \ \
| * | | | | msm: ipa: UAPI security code changesMohammed Javid2017-11-20
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added code changes for UAPI security code userspace inputs validation Change-Id: I5f8b7c9cd27a9d8ca721a98f1cbf05c14588dd85 Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Acked-by: Abhishek Choubey <abchoube@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | Merge "mhi: core: fix sequence for new transfer"Linux Build Service Account2017-11-22
|\ \ \ \ \
| * | | | | mhi: core: fix sequence for new transferjiad2017-11-22
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sequence for both rddm and fw download are initialized to be 0. They are incremented by 1 in bhi_probe() and upon real transfer takes place. Issue is in SSR case, sequence is incrementing in a way like 1, 3, 5 and etc as observed. The increment in bhi_probe() seems unnecessay as there's no real transfer. Fix is to initialize sequence to 1 and increment by 1 when real transfer takes place in bhi_bhie_transfer(). Change-Id: I210840cd1f7fecc300ecb69da8a50fbb1d200562 Signed-off-by: Jia Ding <jiad@codeaurora.org> CRs-Fixed: 2147433
* | | | | Merge "msm: ipa3: Fix IPA aggregation force close call"Linux Build Service Account2017-11-22
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | msm: ipa3: Fix IPA aggregation force close callMohammed Javid2017-11-21
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In IPA driver uninitialized structure causing some garbage values result into IPA data stall. Added code changes to reset zero uninitialized structure. Change-Id: I3b98041f8a96ea1d571eeaa60fc84457f6309d45 Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* / / / msm: sps: Update debug message format specifierJishnu Prakash2017-11-19
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restrict printing of kernel virtual addresses in SPS driver. In debug code, %p is used to print virtual addresses of kernel objects, which can be exploited by attackers. It is replaced with %pK, which hides these values if kptr_restrict is set (default on Android). Change-Id: I57585fa655abc01b2e8d694c8f31b7617bbf4ec7 Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
* | | Merge "msm: ipa: Fix to use GFP_DMA flag"Linux Build Service Account2017-11-09
|\ \ \
| * | | msm: ipa: Fix to use GFP_DMA flagMohammed Javid2017-11-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IPAv2 hardware works with 32 bit addressing, so allocate a kernel memory using GFP_DMA flag which is processed by IPA hardware. Change-Id: I6f35e7f2179dc48f718221f6a3d228aca67c4154 Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | Merge "msm: ipa: Set ep delay on rmnet/mbim tether pipe"Linux Build Service Account2017-10-21
|\ \ \ \
| * | | | msm: ipa: Set ep delay on rmnet/mbim tether pipeMohammed Javid2017-10-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As soon we start a gsi channel, there is a chance of getting packets from USB to IPA before even we setup flt/rt fules. To avoid this race condition set ep delay before start of gsi channel in case of rmnet/mbim tether. This delay should be cleared by Q6 once required flt/rt rules in place. Change-Id: Iac16ba067d4454ffd3f191009ea6eb5998473977 Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | Merge "msm: ipa: Fix use after free issue"Linux Build Service Account2017-10-18
|\ \ \ \ \
| * | | | | msm: ipa: Fix use after free issueMohammed Javid2017-10-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added code changes to avoid use after free by having local copy and cache it upon successful return. Change-Id: Iffac9ba89658b986bd8b630d22af619300e0ff5d Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | | msm: ipa: add null terminatorShihuan Liu2017-10-12
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add null terminator at the end of string extend_ioctl_data.u.rmnet_mux_val.vchannel_name to avoid potential security issue. Change-Id: I57fe3a9f7e3ad6a499b62a9cfc49bc6b2f3b42e0 Acked-by: Shihuan Liu <shihuanl@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | | | Merge "msm: ipa: Add support for UL Firewall"Linux Build Service Account2017-10-06
|\ \ \ \ \
| * | | | | msm: ipa: Add support for UL FirewallUtkarsh Saxena2017-10-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For UL firewall v6 rules are sent to IPA Q6 in case of whitelisting to allow only specific connections and drop the rest of the connections. Add a support to handle UL firewall request, response and indication in rmnet ipa driver. Change-Id: I74a80dce2e16bd8a2c22f12ae3a3f50807c4784e Acked-by: Abhishek Choubey <abchoube@qti.qualcomm.com> Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org> Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
* | | | | | Merge "msm: ipa: Add support for per client lan statistics"Linux Build Service Account2017-10-06
|\| | | | |
| * | | | | msm: ipa: Add support for per client lan statisticsUtkarsh Saxena2017-10-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per client lan statistics feature requires fetching data from IPA-Q6 and share it with user space application. Make changes to provide ioctl-interface to interact with IPA Q6 to get the per client lan statistics. Change-Id: If0af747cd86058eaa275170f42af1d9e93e81768 Acked-by: Abhishek Choubey <abchoube@qti.qualcomm.com> Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com> Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org> Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
* | | | | | Merge "msm:ipa: Fix to slab out of bounds access"Linux Build Service Account2017-10-05
|\ \ \ \ \ \
| * | | | | | msm:ipa: Fix to slab out of bounds accessMohammed Javid2017-09-27
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Accessing of incorrect structure pointer is causing slab-out-of-bounds access, fixed issue by accessing the correct structure pointer. Change-Id: I23d3c9afbbabba88be92ef5cae83c4708a211e88 Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | | Merge "msm: ipa3: add lock for num_q6_rule"Linux Build Service Account2017-10-05
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | msm: ipa3: add lock for num_q6_ruleSkylar Chang2017-09-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a race condition be observed on global variable num_q6_rule used in ipa wan-driver. The fix is to add lock to prevent different threads are accessing it at the same time. Change-Id: Ia9190c60361cb5605b61963309beca3acdeac89d Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | | | | Merge "msm: ipa: prevent string buffer overflows"Linux Build Service Account2017-10-05
|\ \ \ \ \ \
| * | | | | | msm: ipa: prevent string buffer overflowsMohammed Javid2017-10-04
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In WAN ioctls user-supplied data structures contain string members,but there's no guarantee they're null-terminated, add the string terminator to prevent vulnerability of string buffer overflows. Change-Id: I17c06c94aa619a2cd3a678c495a31541a65a7741 Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | | platform: msm: Fix USB device does not enumerate in SS modeSriharsha Allenki2017-09-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The max speed for the USB device is high speed. So the device is always enumerated in high speed indpendent of the connection. Fix this by setting the EXTCON_USB_SPEED to 1 which in turn sets the max speed as super speed. CRs-Fixed: 2108100 Change-Id: I8f313cc3ee015a1340ab78650e17334ca85ddd27 Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
* | | | | | platform: msm: Check USB ID state on probeSriharsha Allenki2017-09-26
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the device is booted up with OTG cable connected, the device does not switch to host mode. The trigger is lost because the irqs are enabled at a later time. Fix this by checking the ID state during probe. CRs-Fixed: 2106351 Change-Id: I742d0839832219e757348e102252f97d95a8335b Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
* | | | | mhi: core: move mhi_states_transition_str out of stackSujeev Dias2017-09-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To prevent un-initialized address returning from MHI state transition lookup table, move mhi_states_transition_str array out of stack CRs-Fixed: 2111049 Change-Id: Ife5f907a711cc0c615161f2b2a677275d6773686 Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
* | | | | Merge "msm: ipa: Add new API to check for ipa uC readiness"Linux Build Service Account2017-09-13
|\ \ \ \ \
| * | | | | msm: ipa: Add new API to check for ipa uC readinessSkylar Chang2017-09-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding new API for IPA clients to check for IPA uC ready before bringing up IPA uC offload data path. CRs-Fixed: 2030217 Change-Id: I0328658cba829cacc89b7c0b8edf7e52aa16e45c Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | | | | Merge "msm: mdss: hdmi: fix no audio over HDMI on device bootup"Linux Build Service Account2017-09-13
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | msm: mdss: hdmi: fix no audio over HDMI on device bootupNarender Ankam2017-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case of HDMI interface as primary, if device boots up with HDMI connected, external interface driver is unable to notify audio events as audio codec is getting registered later. Add change to send audio event once audio codec gets registered. Change-Id: I8d630adf892714ff2eb4d6039dc058b54c425b83 Signed-off-by: Narender Ankam <nankam@codeaurora.org>
* | | | | | Merge "msm: ipa: ipa_usb: teth_prot and ttype validation"Linux Build Service Account2017-09-12
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | msm: ipa: ipa_usb: teth_prot and ttype validationSkylar Chang2017-09-06
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add input validation logic for accessing teth_prot and ttype members. Change-Id: I05780fb3b09616b7a9cf0c36f71e9f1e5e49f136 CRs-Fixed: 2091803 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | | | Merge "usb_bam: Delete IPA resources in usb_bam_remove()"Linux Build Service Account2017-09-11
|\ \ \ \ \
| * | | | | usb_bam: Delete IPA resources in usb_bam_remove()Vijayavardhan Vennapusa2017-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever dwc3_msm_probe() fails, it calls of_depopulate() to remove child devices as part of cleanup. Due to this, usb_bam_remove() gets called to do cleanup. But this API is not deleting IPA resources created during probe and leads to creation of IPA resources fail, when probe is called again. This eventually results in crash, when IPA driver calls notify callback after PROD resource granted. Hence fix it by deleting IPA resources in usb_bam_remove(). Also change enum type of ipa_rm_resource_prod/ipa_rm_resource_cons arrays to enum ipa_rm_resource_name to fix sparse errors. Change-Id: I3d9d0e1b26f1de0ba2b56b42c7e10a097d4fa8be Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
* | | | | | msm: ipa: Cache CNE eventMohammed Javid2017-09-07
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide support to cache CNE event for debugging purpose. Change-Id: I00d101d3b9a627d7aba3e4524ff301797ea6085e Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | Merge "msm: ipa3: fix compatibility with ipa user space"Linux Build Service Account2017-09-04
|\ \ \ \ \
| * | | | | msm: ipa3: fix compatibility with ipa user spaceAmir Levy2017-09-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement several IOCTLs to allow IPA user space work. Change-Id: I726f665ada12c5524dabeab1b89cdc8db4dc6f1e Acked-by: Dmitry Kogan <dmitryk@qti.qualcomm.com> Signed-off-by: Amir Levy <alevy@codeaurora.org>
* | | | | | Merge "Merge branch 'dev/msm-4.4-8996au' into msm-4.4"Linux Build Service Account2017-09-03
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Merge branch 'dev/msm-4.4-8996au' into msm-4.4Zhiqiang Tu2017-09-01
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I9736089c23ce5dca4e4341406671269f19b7515f Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
| | * \ \ \ \ Merge branch 'msm-4.4' into dev/msm-4.4-8996auZhiqiang Tu2017-08-24
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: drivers/iommu/arm-smmu.c drivers/media/platform/msm/ais/fd/msm_fd_dev.c drivers/media/platform/msm/camera_v2/fd/msm_fd_dev.c drivers/soc/qcom/glink.c include/uapi/linux/msm_ipa.h Change-Id: Id007a850fa2df09f08c413ffcd447a6532fad83c Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
| | * | | | | | usb: bam: Remove inactivity_timer sysfs attributeArumuga Durai A2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| | * | | | | | msm: ipa: add L2TP/VLAN messagingShihuan Liu2017-07-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add L2TP/VLAN messaging support in IPA driver Conflicts: include/uapi/linux/msm_ipa.h Change-Id: Ifce9adb1eb1946a2000f54933f1990747fe7daef Acked-by: Shihuan Liu <shihuanl@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>