summaryrefslogtreecommitdiff
path: root/drivers/platform/msm (follow)
Commit message (Collapse)AuthorAge
...
| * | | 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>
* | | | | | Merge "msm: ipa: Fix to use after free issue"Linux Build Service Account2017-08-30
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | msm: ipa: Fix to use after free issueMohammed Javid2017-08-30
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added code changes to avoid use after free if header already table already freed during ipa ioctl test. Change-Id: I5e89c28448bd3b94714451432774457a170005bd Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | | msm: ipa3: Vote to IPA clocks when destroying MHI channelsGhanim Fodi2017-08-30
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to the missing vote, un-clocked access to GSI registers occurred when destroying MHI channels. Fix it by voting to the clocks. CRs-Fixed: 2097296 Change-Id: Ib4fe41ff87ecb9746617b1ed3e32cae740de0c7e Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
* | | | msm: ipa: protect q6_proxy_clk_voteSkylar Chang2017-08-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a mutex to protect q6_proxy_clk_vote. The proxy vote/unvote may be called from different contexts which can result in a a race condition. Change-Id: I402090be5ff35897ed61499a13bf52eb60a1f5cf CRs-Fixed: 2094724 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | | Merge "msm: ipa3: Load IPA FW using PIL for MDM devices"Linux Build Service Account2017-08-23
|\ \ \ \
| * | | | msm: ipa3: Load IPA FW using PIL for MDM devicesGhanim Fodi2017-08-23
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change IPA firmware loading on MDM devices to use Linux PIL instead of manual loading. Loading with PIL is more secure. Firmware needs to be signed and then authenticated by Trust Zone. Change-Id: If8bda76795dcd000327c6f6345a9b38474b609fd Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
* / | | msm: sps: Destroy debug log during BAM deregistrationRama Krishna Phani A2017-08-22
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | Clients can register and deregister to BAM based on usecase. IPC Log pages are created during clients registration to BAM. Update support to destroy log pages during BAM deregistration. Change-Id: I1da266c61ebd57d6cfead6fc5b64a05be5620cf4 Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
* | | Merge "msm: ipa3: Fix to avoid accessing of uninitialized structure"Linux Build Service Account2017-08-21
|\ \ \
| * | | msm: ipa3: Fix to avoid accessing of uninitialized structureMohammed Javid2017-08-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added code changes to check ipa3_ctx initilized or not during bootup in sdm670. Change-Id: I03e5b8de30c77da140e9575c2315b0878cf5363c Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | | | Merge "msm: ipa3: fix usb statuses exception path"Linux Build Service Account2017-08-21
|\ \ \ \
| * | | | msm: ipa3: fix usb statuses exception pathSkylar Chang2017-07-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set APPS_LAN_CONS pipe as the statuses exception pipe for usb-prod pipes. Change-Id: Ia0938da6ec2b2cbdbab4dddf177d2af76fad3aaa Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | | | Merge changes I0236f849,I87b2ac56,Ia7a344e6,I1cace039 into msm-4.4Linux Build Service Account2017-08-20
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: ARM: dts: msm: Add tp rev property for PM660 iio: rradc: Update RRADC USBIN scaling qpnp: revid: Add support to read TP Rev ARM: dts: msm: increase PCIe PHY wakeup delay from L1ss for msm8998
| * | | | | qpnp: revid: Add support to read TP RevRama Krishna Phani A2017-08-17
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some PMICs software drivers (PM660) require the TP revision information to implement specific logic. Add an optional property qcom,tp-rev-valid to check if support for TP REV is available in the REVID peripheral for the PMIC. Change-Id: Ia7a344e60bedcc6fb28d9ed9f18dc29a3d7f4fd7 Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
* | | | | Merge "msm: gsi: check channel state on timeout" into msm-4.4Linux Build Service Account2017-08-20
|\ \ \ \ \
| * | | | | 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: usb_bam: Fix failure of remove by of_platform_depopulateZiqi Chen2017-08-15
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If device is created by of_platform_populate and removed by of_platform_depopulate from parent device driver, platform_data will be released twice and lead to kernel panic. of_platform_depopulate will free platform_data of each device driver. Usually we use devm_kzalloc to malloc for platform_data so it can be released during driver unregister. So if device is removed by of_platform_depopulate and platform_data is malloced by devm_kzalloc, platform_data will be freed twice. To fix it, move this data into struct usb_bam_ctx_type and then store usb_bam_ctx_type into device driver data. In this way, it can be get in remove function. The member regs of usb_bam_ctx_type is not necessary. It is only used for ioremap which already has been done by virt_addr of struct sps_bam_props. Without sps_deregister_bam_device, bam child device will not be created again during defer probe. So deregister in remove function. Change-Id: Ibae80745be5810d400a1c05566a99efcc2190020 Signed-off-by: Ziqi Chen <ziqic@codeaurora.org>
* | | | msm: ipa3: Fix IPA aggregation force close callGhanim Fodi2017-08-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Core IPA driver passes wrong end-point index to HAL when generating aggregation force close parameters values. Fixed the call to pass the correct index. CRs-Fixed: 2082839 Change-Id: Icc0fd2ce8a23bf0e3334f54b27b850ebf92b58a1 Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
* | | | Merge "msm: usb_bam: replace %p with %pK"Linux Build Service Account2017-08-07
|\ \ \ \
| * | | | msm: usb_bam: replace %p with %pKLiangliang Lu2017-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Format specifier %p can leak kernel addresses while not valuing the kptr_restrict system settings. When kptr_restrict is set to (1), kernel pointers printed using the %pK format specifier will be replaced with 0's. Debugging Note : &pK prints only Zeros as address. If you need actual address information, write 0 to kptr_restrict. echo 0 > /proc/sys/kernel/kptr_restrict Change-Id: If3e3a7d5c737b8b7e2c2f78e2814747db4a770cd Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
* | | | | Merge "msm: mhi: initialize variables to default values"Linux Build Service Account2017-08-04
|\ \ \ \ \
| * | | | | msm: mhi: initialize variables to default valuesRama Krishna Phani A2017-08-03
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Few functions have variables which might get used with out proper initialization. Initialize variables to default values. CRs-Fixed: 2087109 Change-Id: I7645940e8d466e0ef67a5b8b7702b18b160cc10f Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
* | | | | Merge "msm: ipa3: Fix Q6 resourse manager de-init"Linux Build Service Account2017-08-03
|\ \ \ \ \