summaryrefslogtreecommitdiff
path: root/drivers/platform/msm (follow)
Commit message (Collapse)AuthorAge
...
* | 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: Fix to handle NULL pointer dereferenceMohammed Javid2018-03-10
| | | | | | | | | | | | | | | | | | | | | | Header entry deleted but same entry pointer using in routing table not updated. Added checks to confirm header entry present or not before using it to avoid null pointer dereference. Change-Id: Id1d844c60b2dcb0cc7cf18352b78d62fe5a89347 Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | msm: ipa3: Fix to validate the user inputsMohammed Javid2018-02-25
| | | | | | | | | | | | | | | | | | | | Miss to Validate user inputs for last entry while sending the QMI message to modem. Adding code changes to fix to validate user inputs for last entry. Change-Id: If2c6c4fbfc922d56355d26a16f844fd57d4992ac Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | msm:ipa: Return mux id only for valid interfaceMohammed Javid2018-02-19
| | | | | | | | | | | | | | | | | | | | | | Value of MAX_NUM_OF_MUX_CHANNEL is greater than number of valid interfaces. So empty interface is also getting mux id. Return mux id only for valid interfaces. Change-Id: I7852df0aa0ccee781c1bf6857a4183b99194f3ee Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | msm: ipa: Prevent deletion of the default route ruleGhanim Fodi2018-02-11
| | | | | | | | | | | | | | | | | | | | | | The first APPS default routing table rule is installed at the IPA driver initialization. To prevent routing exception, this rule cannot be deleted by user application. This change prevents deleting this rule. Change-Id: Ia27434fd24a15fea5956018a1271b11bbe227df7 CRs-fixed: 2165859 Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
* | msm: ipa: Fix to add string NULL terminatorMohammed Javid2018-02-07
| | | | | | | | | | | | | | | | | | | | Missing null terminator to userspcae provided string leads to strlen buffer overflow in strlcpy function. Added code changes to fix string NULL terminator issue. Change-Id: I3f9d5f22fbb26f68de12370bc5e07a4e6bc2ced9 Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | msm: ipa: dynamic memory leak fixMohammed Javid2018-02-06
| | | | | | | | | | | | | | | | | | | | | | | | This is a fix for dynamic memory leak seen with incorrectly allocating memory of a different size than with intended size. Change-Id: I350719dadad9fd5c7f35a334e81c8d9f2298f888 Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com> Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | msm: ipa3: lift the HOLB only when WDI enableSkylar Chang2018-02-01
| | | | | | | | | | | | | | | | | | We should only remove HOLD on WDI pipes after getting WDI_ENABLE, not on WDI_CONNECT or those Tx pkts will stock in WLAN tx pipes. Change-Id: I23a87afbc5b7a6fe8abbab16fbfe2caab7535f8e Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | Merge "msm: ipa: add new IPA filtering bitmap"Linux Build Service Account2018-01-24
|\ \
| * | msm: ipa: add new IPA filtering bitmapShihuan Liu2018-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add new IPA filtering bitmap to match inner IP type and inner IPv4 address in L2TP use case. Change-Id: I30afbfba6fb0150ab90826eb2543540699ab895b Acked-by: Shihuan Liu <shihuanl@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | msm: ipa: return the wifi stats when reset is setSkylar Chang2018-01-21
|/ / | | | | | | | | | | | | | | | | | | | | | | After Andorid-O, every time after framework queries the WIFI-stats, it will reset the stats because framework would like to know only the difference of data usage, not accumulated stats. Change-Id: I66bbf779f872c54311dcc8e3ba635949126e94ac Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | msm: ipa: Return error -ENODEV for set data quota failureMohammed Javid2018-01-19
| | | | | | | | | | | | | | | | | | If set data quota fails due to invalid interface name, return -ENODEV error. Change-Id: I45f4082cb8026d3757bd4df237e34df14750ea29 Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | Merge "msm: ipa: Fix to unsigned integer underflow"Linux Build Service Account2018-01-18
|\ \
| * | msm: ipa: Fix to unsigned integer underflowMohammed Javid2018-01-16
| |/ | | | | | | | | | | | | | | | | Added code changes to fix the unsigned integer underflow leads to accessing unmapped memory. Change-Id: I8148aebd3597ec6ae8c184199afe816f3d80636e Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | Merge "msm: ipa: Remove unwanted gsi debug register reads"Linux Build Service Account2018-01-02
|\ \
| * | 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>
* | Merge "msm: ipa: Fix the handling of default IPA header"Linux Build Service Account2017-12-30
|\ \
| * | msm: ipa: Fix the handling of default IPA headerGhanim Fodi2017-12-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Default IPA header is added or deleted from the driver directly and not by user space application. This change prevents adding/deleting it from user application which may cause inconsistencies in the driver. Also the change fixes the header reset function to skip on the correct default header. Change-Id: Ic813433655411f1447db8b0c15efdf64038d8c26 CRs-fixed: 2151146 Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
* | | gpio: usbdetect: Avoid threaded IRQ handling if no change in IDAjay Agarwal2017-12-23
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is observed that the hard ID IRQ is enabled when the threaded IRQ handler for the same is still running. In that case, there are two issues. The ID LOW IRQ can come consecutively which will increase the disable count of vbus_irq. Then ID HIGH IRQ will not enable the vbus_irq and peripheral mode detection will not work anymore. The second issue is that ID HIGH IRQ is fired just before ID LOW IRQ. This will mark usb->id_state from HIGH to LOW even while threaded IRQ is running which will lead to host not getting stopped and peripheral mode not working. Fix both issues by maintaning a local copy of ID IRQ in threaded IRQ handler and comparing it with previous ID state. If same, then bail out. Change-Id: If5da1f91ece9d1751d7002e64bab0e145623a92e Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
* | Merge "msm: ipa: add new IP filtering bitmaps"Linux Build Service Account2017-12-20
|\ \
| * | msm: ipa: add new IP filtering bitmapsShihuan Liu2017-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new IP filtering bitmaps to match TCP SYN packets. Change-Id: I73ab2944c3d351fdb57f147d3efedd1b5829835e Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org> Acked-by: Shihuan Liu <shihuanl@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
* | | msm: ipa: Change error value for set quotaMohammed Javid2017-12-19
|/ / | | | | | | | | | | | | | | | | | | Currently IPA send common error -EFAULT to user space in case of IOCTL fails. Change error value for set quota based on error received from modem. Change-Id: Ib6ba487a186245ddf752cd08de12293af1ea1bb9 Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* / msm: ipa: Fix to validate routing table index for filter exceptionMohammed Javid2017-12-15
|/ | | | | | | | | | Fix to validate routing table index for filter action IPA_PASS_TO_EXCEPTION case to avoid ipa assert during commit filter rule. Change-Id: I957f7ffc415ea1a042f6b3a948e94410d41b2262 Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* msm: ipa3: Fix to set QMB on USB epMohammed Javid2017-12-04
| | | | | | | Fix to config USB end point with QMB. Change-Id: I2d4691024aa4fc9856c9c4213491a76a1033ae04 Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* Merge "msm: ipa3: Remove ep_delay on disconnect sequence"Linux Build Service Account2017-12-01
|\
| * msm: ipa3: Remove ep_delay on disconnect sequenceMohammed Javid2017-12-01
| | | | | | | | | | | | | | | | | | When device in Low Power Mode, usb driver invokes suspend and then disconnect upon cable disconnection. Remove the ep_delay if it is set. Change-Id: I203d57d70e8c189a2f3bc7f7830392fac98cfbb1 Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
* | Merge "msm: ipa: dynamic memory leak fix"Linux Build Service Account2017-11-29
|\ \ | |/ |/|
| * 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
|\ \ \