summaryrefslogtreecommitdiff
path: root/drivers/soc/qcom (follow)
Commit message (Collapse)AuthorAge
...
| * | | | | icnss: Fix incorrect clean-up of statsSameer Thalappil2017-06-26
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the copy paste error of clearing the statistics as part of the fw_debug debugfs write interface. CRs-Fixed: 2066394 Change-Id: I4ca848a05af06c2a9e6ce1efeb3bfa3b77c2f8d8 Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
* | | | | Merge "icnss: Add specific statistics for PDR"Linux Build Service Account2017-06-28
|\| | | |
| * | | | icnss: Add specific statistics for PDRSameer Thalappil2017-06-26
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Maintain separate statistics to track the number of PDR instances from FW crash, host error, root PD crash and root PD shutdown cases. Also add support to announce the PDR cause in the log. CRs-Fixed: 2066366 Change-Id: I33995d694e3aae47dfcc9f249528a7f1815ee12f Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
* | | | Merge "soc: qcom: glink_smem_native_xport: Allocate smem item in non cache ↵Linux Build Service Account2017-06-28
|\ \ \ \ | | | | | | | | | | | | | | | region"
| * | | | soc: qcom: glink_smem_native_xport: Allocate smem item in non cache regionDhoat Harpal2017-06-28
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rx fifo is allocated in cached region of smem, this leads to inconsistency when reading at remote side. rx fifo is allocated in non cached region of smem. CRs-Fixed: 2056955 Change-Id: I0c7d5bf55222920cffdcd2c7f48968a4f49ee790 Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
* | | | Merge "soc: qcom: avoid calling sleeping functions in interrupt context"Linux Build Service Account2017-06-28
|\ \ \ \
| * | | | soc: qcom: avoid calling sleeping functions in interrupt contextVidyakumar Athota2017-06-23
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since glink callbacks are called in interrupt context, avoid using functions that can sleep in the callbacks. Use separate work queue to free the buffer. Change-Id: I8abae4becb4c4ac1feb8794db4d2a6bb378943ac Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
* / / / soc: qcom: glink_pkt: fix number of intent queuedDhoat Harpal2017-06-23
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | glink_pkt driver has no limit on number of intents auto queued for rx. Intent are auto queued when remote side request for intent without checking how many packets are pending to be read by client. A max limit check is added to avoid memory exhaustion case with indefinite intent queueing. CRs-Fixed: 2042581 Change-Id: I68aa102b323716f591841b192477a70397a5536b Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
* | | Merge "soc: qcom: sleepstate: Enable/Disable IPCRTR wakelocks"Linux Build Service Account2017-06-22
|\ \ \
| * | | soc: qcom: sleepstate: Enable/Disable IPCRTR wakelocksRamakrishnan Ganesh2017-06-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The acquiring of wakelock prevents the system from entering suspend for high frequency non-wakeup sensor requests. With the change IPCRTR now does not acquire a wakelock while cpu is out of suspend. This allows the cpu to enter suspend. The wakelocks are enabled in the suspend path so that future wakeup capable sensor events gets handled without issues. The wakelocks are disabled post resume from suspend. This change affects only the data on the SLPI edge. Change-Id: Iae3dafb735bfb0d3000487f2fa2216d68e9a026f Signed-off-by: Ramakrishnan Ganesh <ramakris@codeaurora.org>
* | | | Merge "qcom: scm: Remove inputs printing from scm_call2_atomic"Linux Build Service Account2017-06-22
|\ \ \ \
| * | | | qcom: scm: Remove inputs printing from scm_call2_atomicPrasad Sodagudi2017-06-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'Commit 394c5c6ca08ad9 ("qcom: scm: remove printing input arguments")' removed inputs printing in error case from scm_call2 API only. So remove inputs printing from scm_call2_atomic API too. Change-Id: I21bb8e1b58ba03cc3e3d8ca7e4d4ab062677a0b0 Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
* | | | | Merge "soc: qcom: glink: Move tx_info allocation in beginning"Linux Build Service Account2017-06-22
|\ \ \ \ \
| * | | | | soc: qcom: glink: Move tx_info allocation in beginningDhoat Harpal2017-06-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TX_info is allocated after pop remote intent, this can cause problem when there is no memory for allocation then glink has to push back the intent, which again needs memory. Tx_info allocation is moved before op remote intent. CRs-Fixed: 2063427 Change-Id: I4f174c4b0143454596ac8f7a1c639c853b98a2ce Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
* | | | | | Merge "soc: qcom: glink: Move tx_wakeup_worker to rx tasklet"Linux Build Service Account2017-06-22
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | soc: qcom: glink: Move tx_wakeup_worker to rx taskletChris Lew2017-06-21
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do tx wakeup worker functionality in rx worker tasklet instead of scheduling the work to be done in worker context to improve performance. CRs-Fixed: 2050701 Change-Id: Iba620e7e264805ed02a35603da1fb6c985de7d43 Signed-off-by: Chris Lew <clew@codeaurora.org>
* | | | | Merge "icnss: fix the memory and kernel info leak due to the race condition"Linux Build Service Account2017-06-22
|\ \ \ \ \
| * | | | | icnss: fix the memory and kernel info leak due to the race conditionSarada Prasanna Garnayak2017-06-22
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The icnss register read/write debugfs entry can be accessed by multiple user space thread. Memory allocation and deallocation in the register read/write file operation leads to potential memory leak during concurrency access of debugfs device file. Add protection to avoid the memory leak and kernel information leak due to the race condition in the register read/write ops. CRs-Fixed: 2012572 Change-Id: I22c6af9a396c0df4e68f75702fc68a5dff5af032 Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* | | | | Merge "drivers: soc: qcom: rpm_stats: Add mutex lock for shared data"Linux Build Service Account2017-06-22
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | drivers: soc: qcom: rpm_stats: Add mutex lock for shared dataNaresh Malladi2017-06-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The buffer allocated in file open operations need to be protected as there can be a possiblity of use-after-free scenario. Process A B | | open | | | read started | | close Add mutex lock to protect the buffer to avoid this. "msm_rpmstats_copy_stats" accesses the variable "pdata->read_idx" without locking. The userspace can invoke the "read" call from multiple threads which will call "msm_rpmstats_file_read" which in turn calls "msm_rpmstats_copy_stats". This can allow the statement "pdata->read_idx++" increment "read_idx" beyond the limit ("prvdata->num_records") and call "msm_rpmstats_read_register" with this value. Also allow reading RPM stats information using sysfs nodes. The stats are available at /sys/power/system_sleep/stats Change-Id: I031f02bb2694a97ced86da0a9f54d0e434e4ad6d Signed-off-by: Naresh Malladi <namall@codeaurora.org>
* | | | | Merge "soc: qcom: rpm-smd-debug: initialize variables and check for return ↵Linux Build Service Account2017-06-20
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | value"
| * | | | | soc: qcom: rpm-smd-debug: initialize variables and check for return valueNaresh Malladi2017-06-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initialize few variables and check return value of sscanf. use 'goto' to exit without sending rpm send message request in case of sscanf failure. Change-Id: I86f723b4dbbca30b80a33de8b2c28116da8730dd Signed-off-by: Naresh Malladi <namall@codeaurora.org>
* | | | | | Merge "soc: qcom: glink: Move ctx initialization of xprt ptr"Linux Build Service Account2017-06-19
|\ \ \ \ \ \
| * | | | | | soc: qcom: glink: Move ctx initialization of xprt ptrDhoat Harpal2017-06-19
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In glink_open function, channel context initialization with transport pointer is done quite after after its creation. This create race condition, if parallel thread try to use transport pointer of ctx. Ctx is initialized with transport pointer right at the time of its creation. CRs-Fixed: 2061645 Change-Id: Idcddf1ab10b8673a20bc1f23d8702bf870f79dbd Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
* | | | | | Merge "soc: qcom: glink_ssr: Remove subsystem_restart call"Linux Build Service Account2017-06-19
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | soc: qcom: glink_ssr: Remove subsystem_restart callDhoat Harpal2017-06-14
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Glink_ssr channel calls subsystem_restart when remote side does not responds. This leads to system crash if remote side is already in shutdown state. Call to subsystem_restart is removed from glink_ssr client. CRs-Fixed: 2061085 Change-Id: I0df382950d34d8c8d4e2bc1cbbe5edef1d4135c1 Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
* | | | | Merge "memshare: Perform Hypervisor mapping for boot-time allotted memory"Linux Build Service Account2017-06-18
|\ \ \ \ \
| * | | | | memshare: Perform Hypervisor mapping for boot-time allotted memoryManoj Prabhu B2017-06-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch performs Hypervisor mapping for guaranteed memshare client's alloted memory at boot time and prevent allocation for clients with size zero. CRs-Fixed: 2062478 Change-Id: I96cc7b2014693d97f11411a7b62d2c365f21caf1 Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
* | | | | | Merge "soc: qcom: glink: Reset qos rate when xprt is down"Linux Build Service Account2017-06-15
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | soc: qcom: glink: Reset qos rate when xprt is downDhoat Harpal2017-06-14
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reset for qos rate of xprt is not done duering SSR, this leads to exhaustion of qos bandwidth when multiple SSR happens. Reset qos rate of xprt to zero when link goes down. CRs-Fixed: 2061061 Change-Id: Ibabca5584b01eb93a5b7fcc8a5304136ef400ba0 Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
* | | | | Merge "icnss: change the cnss name to icnss"Linux Build Service Account2017-06-15
|\ \ \ \ \
| * | | | | icnss: change the cnss name to icnssPaul Zhang2017-06-14
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refine the code change for this changeID: I335a046a886ac3ce35cf96eb71231bfe75d33c60 CRs-Fixed: 2058348 Change-Id: I9a734c8bed284870562ff2d096e7316328f37e02 Signed-off-by: Paul Zhang <paulz@codeaurora.org>
* / | | | icnss: Change MSA permissions to collect dumpAnurag Chouhan2017-06-13
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With certain senarios such as error FATAL, WBOG Bite in modem WLAN hardware is still alive, while trying to collect the dump platform driver is removing the MSA permissions from MSS and WLAN Hardware to HLOS, at the same time if WLAN Hardware is trying to access the MSA region which results into SNOC error To avoid such senarios instead of removing MSS and WLAN permissions MSA is assigned HLOS permissions as well and once the ramdump is collected HLOS permissions will be removed. Change-Id: Ic71e0fa8c064fd70dad9958187244909cbb80c0a CRs-fixed: 2048531 Signed-off-by: Anurag Chouhan <achouhan@qti.qualcomm.com>
* | | | Merge "icnss: Add APIs to store driver load count"Linux Build Service Account2017-06-09
|\ \ \ \
| * | | | icnss: Add APIs to store driver load countAmar Singhal2017-06-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Host wlan driver needs to know if the drive has been reloaded and wiphy re-registered with the kernel. Therefore add APIs to retrieve this information. CRs-Fixed: 2058292 Change-Id: Ia323e31e9b6779e2f5279f42b6e1860a9259a189 Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
* | | | | Merge "icnss: Re-phrase debug message and rename state"Linux Build Service Account2017-06-09
|\ \ \ \ \
| * | | | | icnss: Re-phrase debug message and rename stateYuanyuan Liu2017-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Re-phrase PD notification registration debug message and change state name of SSR/PDR to avoid confusion. CRs-Fixed: 2057789 Change-Id: I5b800982c0d8c4d5ba627e28f3c9fa8eab7ca074 Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
* | | | | | Merge "icnss: Enable platform device to be a wakeup source"Linux Build Service Account2017-06-09
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | icnss: Enable platform device to be a wakeup sourceYuanyuan Liu2017-06-08
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently platform device is not enabled as a wakeup source, so notifying the PM core for a wakeup event action will be no-op. Hence enable it during driver probe. CRs-Fixed: 2058010 Change-Id: Iefe5bcd4b498a9f02fca001ebcf8ad484f443217 Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
* | | | | Merge "soc: qcom: glink_smem_native_xprt: recovery from SSR in tasklet only"Linux Build Service Account2017-06-08
|\ \ \ \ \
| * | | | | soc: qcom: glink_smem_native_xprt: recovery from SSR in tasklet onlyArun Kumar Neelakantam2017-05-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Checking RX_FIFO allocation status from deferred thread also causes in_ssr flag reset and reading stale data from FIFO, If the deferred thread schedules after the execution of ssr() function. Check RX_FIFO status only after receiving the interrupt from remote side which happens after remote sub-system recover from SSR. CRs-Fixed: 2054480 Change-Id: I39269f6b2e1f1cb9aecd25fa40e73c2d6f12dbd5 Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
* | | | | | Merge "net: ipc_router: Add dynamic enable/disable wakeup source feature"Linux Build Service Account2017-06-07
|\ \ \ \ \ \
| * | | | | | net: ipc_router: Add dynamic enable/disable wakeup source featureArun Kumar Neelakantam2017-06-07
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default IPC Router core uses edge and port specific wakeup sources which are blocking system suspend in special use cases like streaming non wakeup sensors data at high speed. Add dynamic wakeup source enable/disable functionality to acquire the wakeup source only during the APPS suspend stage. CRs-Fixed: 2057391 Change-Id: I2a5ea4e2c31432a9dd195c702ef7001b26eed33d Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
* | | | | | Merge "soc: qcom: subsys-pil-tz: Initialize subsys_dev pointer"Linux Build Service Account2017-06-07
|\ \ \ \ \ \
| * | | | | | soc: qcom: subsys-pil-tz: Initialize subsys_dev pointerSrivatsa Vaddagiri2017-06-06
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this pointer being correctly initialized, subsys_set_error() would end up accessing invalid memory Change-Id: Ic62224e830d17c25f2bf9eeeecc81422fc0d5906 Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
* | | | | | Merge "drivers: Warning fixes to disable CC_OPTIMIZE_FOR_SIZE"Linux Build Service Account2017-06-07
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | drivers: Warning fixes to disable CC_OPTIMIZE_FOR_SIZEPrasad Sodagudi2017-05-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are all driver changes needed for disablement of CONFIG_CC_OPTIMIZE_FOR_SIZE. CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is enabled by default once CONFIG_CC_OPTIMIZE_FOR_SIZE is disabled. Change-Id: Ia46a1f24e8a082a29ea6151e41e6d3a85a05fd4f Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> Signed-off-by: Sridhar Parasuram <sridhar@codeaurora.org>
* | | | | | spcom: move SPCOM_MAX_CHANNELS define to uapi/linux/spcom.hAmir Samuelov2017-06-06
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move SPCOM_MAX_CHANNELS to common H file to make sure that kernel spcom driver and user space spcomlib library are synced. Change-Id: I5e19f8def7de755fa89b6a5c67e9d3372f8433f1 Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
* | | | | Merge "soc: qcom: pil: Add trace events for PIL driver"Linux Build Service Account2017-06-03
|\ \ \ \ \
| * | | | | soc: qcom: pil: Add trace events for PIL driverGaurav Kohli2017-05-30
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add trace event support for PIL Module to help in debugging. Change-Id: If560e275f3207eca4b084cba5e6384a7c452748c Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>