summaryrefslogtreecommitdiff
path: root/drivers/soc (follow)
Commit message (Collapse)AuthorAge
...
* | soc: qcom: Add support for gladiator error reporting v2Runmin Wang2016-04-18
| | | | | | | | | | | | | | | | | | Add support for gladiator cache inter connect error detection and reporting for msmcobalt CRs-Fixed: 1000642 Change-Id: I68c5ce09cc77a19eb334a1d8ccce8d577f964316 Signed-off-by: Runmin Wang <runminw@codeaurora.org>
* | soc: qcom: glink: Fix channel migration logicKarthikeyan Ramasubramanian2016-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | | Channel migration logic assumes that the remote & local channel contexts are always different and exist in different transports. If the remote & local channel contexts exist in the same transport, then it leads to a use-after-free scenario. Fix the channel migration logic by not freeing the channel context if the local & remote side opens in the same initial transport. Change-Id: I319a93c49022b08e5c33b561d982a751d5223a58 Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
* | soc: qcom: remoteqdss: Implement the remaining message typesPatrick Daly2016-04-13
| | | | | | | | | | | | | | | | | | | | Implement the tag, swevent, and swentity message formats. Additionally, abstract the actual scm call and error checking into a separate shared function. CRs-Fixed: 997749 Change-Id: Ie80846978a84a114b38d69b0bca86639bfab7e91 Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
* | soc: qcom: remoteqdss: Implement the new communication protocolPatrick Daly2016-04-13
| | | | | | | | | | | | | | | | | | Replace the previous format of a unique scm call id per function to a buffer-based protocol. CRs-Fixed: 997749 Change-Id: I7738b6369e095868fa6087aac94116f4767dc168 Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
* | soc: qcom: Service notification driver for remote servicesPushkar Joshi2016-04-13
| | | | | | | | | | | | | | | | | | | | | | | | Add a library for a kernel client to register and be notified of any state changes regarding a local or remote service which runs on a remote processor on the SoC. CRs-Fixed: 999530 Change-Id: Idd56140e11f4fdc48fd999a1e808f3263024f34d Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org> Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org> Signed-off-by: Puja Gupta <pujag@codeaurora.org>
* | soc: qcom: event_timer: Fix irq_desc structure usageMahesh Sivasubramanian2016-04-13
| | | | | | | | | | | | | | | | | | | | | | Some of the common irq data is moved into a irq_common_data structure within irq_desc structure. Change irq_data references to irq_common_data structure to fix compilation issues. Change-Id: I59c99348a44d364d74af6b67ccabdd2d8c5008b0 Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
* | soc: qcom: glink: Use tasklet/kworker for TX and RX pathDhoat Harpal2016-04-12
| | | | | | | | | | | | | | | | | | | | | | | | Currently, Rx an Tx is based on workqueue and it is taking significant time to schedule a workqueue which is hampering performance. Use tasklet if underlying transport supports atomic context, otherwise kworker is used. CRs-Fixed: 978296 Change-Id: I736d2b90730ec10f9dff21944c4ad50e4d87da5c Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
* | Revert "soc: qcom: msm_smd: Use correct IO Read/Write"Karthikeyan Ramasubramanian2016-04-12
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit c064e79d2974 ("soc: qcom: msm_smd: Use correct IO Read/Write"). Use no_log variant of IO Read/Write APIs to avoid log storm and improve performance. CRs-Fixed: 1001212 Change-Id: I37cf5b22f263448eaed5fa039a5d32c707db5d29 Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
* | Revert "soc: qcom: glink_smem_native_xprt: Use correct IO Read/Write"Karthikeyan Ramasubramanian2016-04-12
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 53679dae72da ("soc: qcom: glink_smem_native_xprt: Use correct IO Read/Write"). Use no_log variant of IO Read/Write APIs to avoid log storm and improve performance. CRs-Fixed: 1001212 Change-Id: I89d9dd8b4cb720f8f968df2a35cbb52b4d09b589 Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
* | soc: qcom: service-locator: add enable module parameterDavid Keitel2016-04-12
| | | | | | | | | | | | | | | | | | Allow the service-locator module to be set via a module parameter to for another avenue of customization. CRs-Fixed: 982026 Change-Id: I300b01cc0f130e797734bfb576f2bfedf1075614 Signed-off-by: David Keitel <dkeitel@codeaurora.org>
* | soc: qcom: msm_glink_pkt: remove the wakeup source during device closeArun Kumar Neelakantam2016-04-07
| | | | | | | | | | | | | | | | | | | | | | | | | | Client closing the device immediately after receiving data leaves the packet arrival wakeup source in active state and block the system infinitely from entering into suspend state. Check the state of wakeup source during close operation and release if it is active. CRs-Fixed: 989126 Change-Id: I5ad87614edb1307cffaa798f9b393d816dce012a Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
* | soc: qcom: msm_glink_pkt: Add GLINK_OPT_INITIAL_XPORT flagArun Kumar Neelakantam2016-04-07
| | | | | | | | | | | | | | | | | | Use GLINK_OPT_INITIAL_XPORT flag to allow the GLINK core to use the best transport based on available transports. CRs-Fixed: 994255 Change-Id: I4a0022954d34d52899d5dd357813c4da90717e2e Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
* | soc: qcom: glink_smd_xprt: Fix handling subsystem restartKarthikeyan Ramasubramanian2016-04-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the local client of the G-Link channel comes up and waits for the remote client, then it's states are set accordingly. But if the remote subsystem is restarted as soon as it boots up, then it's states are not adjusted accordingly. This causes the G-Link channel states to lose synchronization once the remote client comes up successfully after the reset. Adjust the states of the local client if it is waiting for the remote client and the remote subsystem is reset as soon as it boots up. CRs-Fixed: 952834 Change-Id: I5fe327ea61eb2d16591861b1246fdca2ecce2b1c Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
* | icnss: Init spin lock in icnss_probeYuanyuan Liu2016-04-07
| | | | | | | | | | | | | | | | Init qmi_event_lock in icnss_probe. CRs-Fixed: 998740 Change-Id: Id59f17528ead86a7c0ac787811b716a209df1eaf Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
* | icnss: Update WLAN mode in wlan_firmware_serviceYuanyuan Liu2016-04-07
| | | | | | | | | | | | | | | | | | Add CCPM/QVIT in WLAN mode and add support fo setting WLAN mode from command line. CRs-Fixed: 986484 Change-Id: I5921dc3978bf96221b50148bb2f86b0ffed3b5fb Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
* | icnss: Allocate msa memory in icnss_probeYuanyuan Liu2016-04-07
| | | | | | | | | | | | | | | | | | | | Allocate msa memory in icnss_probe before SMMU attached instead of in qmi indication callback. So that we can get contiguous DMA address. CRs-Fixed: 987584 Change-Id: Ifea6c2de94071719ffede0f641f8a47526bc9e03 Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
* | icnss: Add support of skiping QMIYuanyuan Liu2016-04-07
| | | | | | | | | | | | | | | | | | | | Add support of skiping QMI messaging when ICNSS driver is initialized. So that we can disable QMI communication between WLAN Host and FW when QMI framework is not supported. CRs-Fixed: 978953 Change-Id: I7a9a61c8aa11bd5c0f5f2effc487a2225e27011d Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
* | soc: qcom: ipc_router_mhi_xprt: Code Refactor to handle interface changesChris Lew2016-04-05
| | | | | | | | | | | | | | | | | | | | | | MHI supports virtual memory to dma mapping implicitly. Update IPC Router to pass virtual address directly to MHI. MHI driver also returns standard Linux error codes in case of failure. Update IPC Router to handle this change. CRs-Fixed: 994871 Change-Id: I907adfb5f5d24c06dd038b07a17b31d42b91dfad Signed-off-by: Chris Lew <clew@codeaurora.org>
* | soc: qcom: Add infrastructure to test service locatorPushkar Joshi2016-04-05
| | | | | | | | | | | | | | Add debugfs node based infrastructure to test service locator Change-Id: I37cb319638ce5b6285b2f2ff4386fd92cbda83fd Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
* | soc: qcom: Service locator for kernel clientsPushkar Joshi2016-04-05
| | | | | | | | | | | | | | | | | | | | | | Add a library that retrieves location information given a service identifier. Location here translates to what process domain exports the service, and which subsystem that process executes on. Change-Id: Ia5d76ea4de29dbafe309a831f8a2418c058cba94 Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org> [dkeitel@codeaurora.org: fixed minor conflicts in Kconfig and Makefile.] Signed-off-by: David Keitel <dkeitel@codeaurora.org>
* | soc: qcom: Add SSR support in generic interrupt handlerPuja Gupta2016-04-05
| | | | | | | | | | | | | | | | | | Add code to support subsytem restart(SSR) for subsystems using generic interrupt handler. CRs-Fixed: 979349 Change-Id: I5633baa3d687972a2038336c78555747fc489c84 Signed-off-by: Puja Gupta <pujag@codeaurora.org>
* | soc: qcom: spm: Add SAW v4.1 supportArchana Sathyakumar2016-04-05
| | | | | | | | | | | | | | | | Add new SAW version v4.1 to support AVS and SPM. Change-Id: I2187343430efea1dc20523d6e8a5965f360864e6 Signed-off-by: Maulik Shah <mkshah@codeaurora.org> Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
* | icnss: Update WLFW QMI messagesYuanyuan Liu2016-04-04
| | | | | | | | | | | | | | | | | | | | | | | | | | Add QMI message to send MSA0 physical memory start address and size to wlan FW. Add QMI message indication to get the HAL-PYH Pin connect test result from wlan FW. Add a new qmi message for sending fw debug configuration. Update cap_resp message. CRs-Fixed: 978217 Change-Id: Ie0fa374b720ebbffd1d1fd5b9289b2aa816a822a Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
* | soc: qcom: pil: Make provision for collecting complete subsystem dumpAvaneesh Kumar Dwivedi2016-03-25
| | | | | | | | | | | | | | | | | | | | | | | | Subsystem ramdump collection as of now happen segmentwise, but sometime there are hole in between segment where dynamic image is loaded and which need to be captured during subsystem ramdump collection. This change will dump complete subsystem memory rather than only segments based on the configuration of subsystem who desire it. Change-Id: I5075a90817d1a4d00d69ad39d892dbbc40b0b0dc Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
* | qcom: subsystem_restart: Ignore SSR requests during system reboot/shutdownAvaneesh Kumar Dwivedi2016-03-25
| | | | | | | | | | | | | | | | | | When a system reboot or shutdown is already underway, ignore SSR errors so that the system reboot/shutdown process is uninterrupted. However, log the SSR request so that we know that the subsystem behaved unexpectedly. Change-Id: Ibfac397bf38749b095dacab4cadf7b77bd003e88 Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
* | drivers: soc: Fix implicit typecast warningDeven Patel2016-03-25
| | | | | | | | | | | | | | | | | | Remove unused variable in the function and avoid typecast const pointer to non-const ones. CRs-fixed: 987841 Change-Id: Iaf59087f9d68e134125621afe42d92d49b6b90fc Signed-off-by: Deven Patel <cdevenp@codeaurora.org>
* | soc: qcom: pil-mss: Add scm call to inform TZ of modem areaArun KS2016-03-25
| | | | | | | | | | | | | | | | | | | | Add support to make scm_calls to TZ to inform modem start address and size so that TZ can unmap this range to avoid speculative access. Change-Id: I4640ddab56991522870e9879d17fe5732dc40223 Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org> Signed-off-by: Arun KS <arunks@codeaurora.org>
* | soc: qcom: Use scm_is_secure_device() API to find secure boot or notPrasad Sodagudi2016-03-25
| | | | | | | | | | | | | | | | | | | | Currently gladiator error reporting driver is independently checking whether device in secure boot or not. So use generic API scm_is_secure_device() and take appropriate decision to enable certain features. Change-Id: I89a7bdd21373ffcfec6d90ffbdd29ce8ed3dde88 Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
* | qcom: scm: provide scm_is_secure_device() apiPrasad Sodagudi2016-03-25
| | | | | | | | | | | | | | | | | | Add new scm_is_secure_device() API, so that all platform drivers can check and take appropriate action for secure and non-secure devices. Change-Id: I5569f4aaf4bcbec2922a7745ec0fdc1ab423cc23 Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
* | drivers: soc: Add transport info when APR opens a channelDeven Patel2016-03-25
| | | | | | | | | | | | | | | | | | | | The transport "smd_trans" is required if far end is running SMD instead of Glink. If far end is already running Glink, this property is ignored in Glink layer and communication will be through Glink. CRs-fixed: 986398 Change-Id: I76b59a9782ab77e1ee3b37afb1db6ec01340ea33 Signed-off-by: Deven Patel <cdevenp@codeaurora.org>
* | drivers: soc: put APR Tx buffer back into queue in error scenarioDeven Patel2016-03-25
| | | | | | | | | | | | | | | | | | | | When underlying channel fails to send the APR buffer to the remote end, APR should put the Tx buffer back into queue to avoid memory leak. CRs-fixed: 979283 Change-Id: I4f94daa3c9be748a30d532cf9cc8f3aa2284c060 Signed-off-by: Deven Patel <cdevenp@codeaurora.org>
* | drivers: soc: Fix possible APR null pointer dereferenceDeven Patel2016-03-25
| | | | | | | | | | | | | | | | | | There's a possible null pointer deference if APR open fails. Add the fix to handle error case cleanup gracefully. CRs-fixed: 979283 Change-Id: I4c0cc05bf08d2eae5c27a1dba0a33f4183f81cf3 Signed-off-by: Deven Patel <cdevenp@codeaurora.org>
* | msm: secure_buffer: Add WLAN supportSameer Thalappil2016-03-25
| | | | | | | | | | | | | | Add support for WLAN Adrastea hardware. Change-Id: I99868cf456c5b4641731dcea884b67627780477d Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
* | soc: qcom: Increase the retry timeout to 2 secondsRunmin Wang2016-03-25
| | | | | | | | | | | | | | | | | | Increase the scm retry timeout to 2 seconds and add a warning message if the call takes longer than 1 second. CRs-Fixed: 975433 Change-Id: I7719df41e491c9a8c80b8547de14bc8c71bf7c8d Signed-off-by: Runmin Wang <runminw@codeaurora.org>
* | soc: qcom: core_ctl: Add a tracing functionVikram Mulukutla2016-03-23
| | | | | | | | | | | | | | | | | | The core control module requires tracing capability. Export a function that will allow new events to be added in an extensible fashion without a compile-time dependency. Change-Id: I807d1ec4a104d8289441512b61e5e26df291525b Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
* | iommu/arm-smmu: Request TZ to change page table format to V8LSusheel Khiani2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For targets where we have slave side protection, global register programming is handled by TZ. And since it supports V7S page table format only, by default TZ programs all context bank to permit V7S format by programming VA64 bit of CBA2R register as 0. But if context bank itself is non secure then its page tables are managed by HLOS where we can support V8L page table format. So, provide a way to request TZ to change page table format to V8L for non secure context banks. CRs-Fixed: 959535 Change-Id: I1f4d4b98c4f240a8351f791901abdfa78b829973 Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
* | soc: qcom: remoteqdss: Update Kconfig and MakefilePatrick Daly2016-03-23
| | | | | | | | | | | | | | Update MSM_REMOTEQDSS to QCOM_REMOTEQDSS per kernel upgrade guidelines. Change-Id: I6abf84a27f7271181833d0112f1d795354ea7f0c Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
* | soc: qcom: pil-msa: add arch_setup_dma_ops callDavid Keitel2016-03-23
| | | | | | | | | | | | | | Make sure that DMA ops are initialized before attempting to allocate the MBA buffer. Signed-off-by: David Keitel <dkeitel@codeaurora.org>
* | soc: qcom: add snapshot of sysmon-glink driverDavid Keitel2016-03-23
| | | | | | | | | | | | | | | | | | This is a snapshot of the sysmon glink library as of msm-3.18 commit d5809484 (Merge "msm: ipa: fix race condition when teardown pipe") Signed-off-by: David Keitel <dkeitel@codeaurora.org>
* | soc: qcom: fix spcom getting the file dentryAmir Samuelov2016-03-23
| | | | | | | | | | | | | | The struct file no longer has the f_dentry macro. The dentry is fetched from the f_path->dentry. Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
* | qcom: perf: probe number of events in kryo CPU PMU initSatya Durga Srinivasu Prabhala2016-03-23
| | | | | | | | | | | | | | CPU PMU events needs to be probed and returned per new design in kernel 4.4. Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
* | soc: qcom: msm_perf: update description for msm_performanceTapas Kumar Kundu2016-03-23
| | | | | | | | | | | | | | This updates description of msm_performance module in kernel menuconfig. Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
* | soc: qcom: msm_perf: Replace obsolete cpulist_scnprintf apiTapas Kumar Kundu2016-03-23
| | | | | | | | | | | | | | Replace obsolete cpulist_scnprintf api with cpumap_print_to_pagebuf for kernel-4.4 Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
* | soc: qcom: msm_perf: Detect and notify when peak perf Cluster load is seenVijay Ganti2016-03-23
| | | | | | | | | | | | | | | | | | | | Detect Perf cluster peak loads near FMAX based on the trigger thresholds set. On meeting the peak load criteria, the userspace is notified to take action by applying parameters to enhance performance. CRs-Fixed: 969499 Change-Id: Ie9687bf1aa832434dc61d20056f91a096d7be4f0 Signed-off-by: Vijay Ganti <viganti@codeaurora.org>
* | soc: qcom: msm_perf: use device_offline/device_online apiTapas Kumar Kundu2016-03-23
| | | | | | | | | | | | | | | | Replace obsolute cpu_up/cpu_down api with device_online/ device_offline api for cpu hotplugging Change-Id: I808c733b0109ee6cf6183be229592d67f760d5cc Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
* | soc: qcom: msm_perf: free allocated memory if error happensTapas Kumar Kundu2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | If any error happens during allocating memory or initializing cluster structure then it returns error but it does not free already allocated memory. This may cause memory leak in certain scenerios. This change prevents memory leak by freeing memory when error happens during initialization. Change-Id: I820acd676dc5baff270c2093ca24a1014c25dabb Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
* | soc: qcom: msm_perf: prevent cpumask bits to be NULLTapas Kumar Kundu2016-03-23
| | | | | | | | | | | | | | | | This changes fixes NULL pointer derefence issue for cpumask variabls for clusters. Change-Id: Ifa73a43213b6afdfde57285393f9729a954acfc3 Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
* | soc: qcom: msm_perf: Add sysfs node to report cpu hotplug eventsOmprakash Dhyade2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cpufreq governor tunables could be updated only when cpu is online. Userspace might need to apply and restore these tunables depending on the power/perf need. Provide sysfs node for userspace to poll over and which gets notified on CPU_ONLINE and CPU_DEAD events for any cpu. This mechanism could be utilized to know when cpus come online and then restoring or applying cpufreq governor tunables. CPU_DEAD notification is also provided for completeness. Change-Id: I221a97c49a72da217e5e4b46a16a26042ef5c83f Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org>
* | soc: qcom: msm_perf: Add support for enter/exit cycle for io detectionTapas Kumar Kundu2016-03-23
| | | | | | | | | | | | | | | | | | | | | | Add support for enter/exit cycle sysfs nodes for io detection There are some usecases which may benefit from different enter/exit cycle load criteria for IO load. This change adds support for that. Change-Id: Iff135ed11b92becc374ace4578e0efc212d2b731 Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
* | soc: qcom: msm_perf: Add support for multi_cycle entry/exit nodesTapas Kumar Kundu2016-03-23
| | | | | | | | | | | | | | | | | | | | | | Add support for multi_enter_cycles/multi_exit_cycles per cluster There are some usecases which may benefit from different enter/exit cycle load criteria for multimode cpu load. This change adds support for that. Change-Id: I3408405307ca03b9bba3f03e216ef59b98f29832 Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>