summaryrefslogtreecommitdiff
path: root/drivers/soc
AgeCommit message (Collapse)Author
2016-06-21spcom: add spcom_is_sp_subsystem_link_upAmir Samuelov
Add implementation of spcom_is_sp_subsystem_link_up() kernel API. Remove Load App API declaration, as it is not supported for kernel drivers. Change-Id: I76a43a04d454d1f25a640831f43b51dbb7e75943 Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-06-16soc: qcom: msm_glink_pkt: Set transport field for deviceChris Lew
When smd_trans is registered at bootup and the transport field is null, glink_pkt gets a link up notification early. Use the requested transport to register for the link up notification of the edge. CRs-Fixed: 1028203 Change-Id: I8f549a48efe19f66e3a336a21b75903f7800ed86 Signed-off-by: Chris Lew <clew@codeaurora.org>
2016-06-15spcom: increase max ion buffers per channelAmir Samuelov
The number of ION buffer that can be locked per channel should be at least the number of channels. The Load App request, via the SKP channel, uses an ION buffer that is locked for application swapping by the remote SPSS. Change-Id: If6b4340b80b313fda87d648baaa1d78a588079ac Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-06-14icnss: Add statistics to know driver statusPrashanth Bhatta
Add statistics to know driver status which in turn helps in debugging issues. Change-Id: I68fa6f510d55822b01c2ea5062d4876c4420c5f7 CRs-fixed: 1026135 Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-06-09ARM: dts: msm: Add initial device tree files for MSMFALCONNeeraj Upadhyay
Add the device tree files necessary to support the MSMFALCON SoC and the MSMFALCON Simulator platform. Change-Id: Iabdb1c21757ad6dead50fdc4aa3b12077f8f840f Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2016-06-08soc: qcom: msm_glink_pkt: Register and wait for link up notificationArun Kumar Neelakantam
The user space clients sometimes open the device before the underlying transport available which results in open error and cause multiple re-tries from the clients. This leads to excessive logging of open error messages. Register for link state notification and block the client open until link available or user define timer expires. CRs-Fixed: 1018542 Change-Id: I4e56982700f3444f96e1100c0ce272d36d3423a5 Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-06-08soc: qcom: glink: Fix parallel migration issueDhoat Harpal
During parallel migration race conditions are seen in remote open and local open ack function. Edge based lock is introduced to avoid any race condition during simultaneous migration. Edge lock is shared across multiple transport of same edge and is stored in a global list. CRs-Fixed: 1010920 Change-Id: I2b988d2a6112add06fa433c4b1deeec0b6e6bb58 Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-06-07soc: rpm-smd: Support new format of rpm messagingArchana Sathyakumar
Support new format of rpm messaging to reduce response time of rpm acking and increasing the number of messages that the rpm fifo can process. RPM message ==================== Old format: uint32_t service_type; uint32_t request_len; uint32_t msg_id; enum msm_rpm_set set; uint32_t resource_type; uint32_t resource_id; uint32_t data_len; New format: unsigned request_hdr; unsigned msg_id; unsigned resource_type; unsigned request_details; RPM ACK message ==================== Old format: uint32_t req; uint32_t req_len; uint32_t rsc_id; uint32_t msg_len; uint32_t id_ack; New format: unsigned request_hdr; uint32_t id_ack; CRs-fixed: 993338 Change-Id: I85cb0223ce45de2712c20a3a0edffe2a84b80f01 Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
2016-06-07icnss: Export APIs for power on/off WLAN hardwareYuanyuan Liu
Export APIs to WLAN driver to power on/off WLAN hardware. CRs-Fixed: 1017496 Change-Id: I4b09b7e9ee97129f952d737a530fc04205259f24 Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-06-07drivers: soc: qcom: system_stats: Support for System statsMahesh Sivasubramanian
RPM stats and RPM master stats provide the similar information via different interfaces. Combine them into a single driver to provide a unified information. Change-Id: If5a5ef6e080ab6d75139472c5204eb6d5e9c6614 Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2016-06-03icnss: Synchronize driver probePrashanth Bhatta
Synchronize WLAN driver probe with the register driver so that register driver waits for the probe to complete if FW is ready. Change-Id: I978d217fe41c2d62bb96c6f6816d5cbf851b9add CRs-fixed: 1022750 Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-06-01msm: secure_buffer: Fix possible NULL pointer dereferenceSusheel Khiani
Presently we were passing NULL dma_handle while making dma_alloc_coherent call. This is an issue as alloc function would try to populate handle value with dma address and would end up getting NULL pointer error. Fix this. Change-Id: I38ebb9bbae2d6e1e1311fe438b3c8fc3f65e5692 Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
2016-06-01icnss: Add IPC loggingPrashanth Bhatta
Add IPC logging mechanism so that all the driver logs can be retrieved on the need basis. Also use pr_fmt to format the logs so that icnss driver logs are consistent. Change-Id: I977b04964ac28c18f4ad85094746aa864f03d0c3 Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-05-31spcom: fix modify ion addrAmir Samuelov
It is expected that the 64 bit ion buffer address, will be located on the request/response buffer at an offset that is 64 bit aligned. However, the user may pack the request/response on his own risk, and the offset might not be 64 bit aligned. Change-Id: I85e7644aa05d8c5249e2d204a61d03b5fb2f9220 Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-05-31spcom: fix lock ION bufferAmir Samuelov
Check if ION buffer is locked based on comparing the kernel ion handle, rather than comparing the user file descriptor. Change-Id: I7a41df3eebf22de2cc6b14327978923bcdbb7142 Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-05-26icnss: Add API to return the CE IRQ numberSameer Thalappil
API retrieves the IRQ number for the CE ID passed. Change-Id: I87cca1215134e6d406f60d54f6d0430978eeae9c Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
2016-05-25soc: qcom: print raw data for gladiator error registersRunmin Wang
Dump the value in gladiator error registers in raw format. CRs-Fixed: 1019798 Change-Id: I7bccd68866457bb0635ae5166ec935f9e82ba760 Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-05-24icnss: Remove unused APIsPrashanth Bhatta
Remove unused APIs icnss_register_ce_irq & icnss_unregister_ce_irq. These APIs are divided into multiple APIs to provide flexibility to WLAN driver. Change-Id: Icd56b61a372cb18e6600617184d8b185b78ce99d Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-05-24soc: qcom: watchdog_v2: Support userspace watchdogPatrick Daly
Provide a hw guarantee that a userspace watchdog process receives cpu time. Move ping_other_cpus() prior to waiting for the userspace signal in order to minimize the effect of a late userspace pet on the safety margin. The safety margin is the difference between the workqueue's timer interval and the bite interval. Change-Id: I715cf7ad7975c6e020458f623262dc02927795a7 Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-05-24soc: qcom: set default enable for MSM_JTAGV8Shashank Mittal
Enable MSM_JTAGV8 config if CORESIGHT_SOURCE_ETM4X is selected. This will make sure that ETM registers are properly saved and restored across CPU power collapse. Change-Id: Iafc718d5fe3ee392836035c7d301ad2ed6d5f148 Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-24soc: qcom: watchdog_v2: Change completion to wait_queuePatrick Daly
Prepare for future changes which will require waiting on several conditions prior to petting the watchdog. Change-Id: I1a62b6ec73e7cd581a535316029956ea7ce23ba0 Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-05-24jtagv8: add jtagv8 support snapshotShashank Mittal
This snapshot is taken as of msm-3.18 commit: 89be600 (Merge "msm: camera: Fix KW issues in sensor code") Jtagv8 driver can be used to save and restore debug and ETM registers across power collapse. Change-Id: I1537c92ac86964fdbe9abb012f972d5f3b36047a Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-24ASoC: msm: qdsp6v2: Change audio drivers to use %pKBen Romberger
Change all qdsp6v2 audio driver to use %pK instead of %p. %pK hides addresses when the users doesn't have kernel permissions. If address information is needed echo 0 > /proc/sys/kernel/kptr_restrict. Change-Id: I7baa9f127266726fecf9238167a1e0128a258847 Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2016-05-24soc: qcom: socinfo: Add soc ids for MSM8996pro and APQ8096proSanrio Alvares
Adding new SOC IDs for MSM8996pro and APQ8096pro variants. CRs-Fixed: 1019089 Change-Id: If6aaef3b04a9da15c7f8cfaf1308706b8a2fe793 Signed-off-by: Sanrio Alvares <salvares@codeaurora.org>
2016-05-24icnss: Provide test mode through debugfsPrashanth Bhatta
Provide a test mode mechanism through debugfs interface for WLAN firmware CCPM module so that WLAN enable and disable can be tested without loading WLAN functional driver. Change-Id: I8d411e067690443eefea645f4ff8130cf786c32f Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-05-19icnss: Avoid power-off if driver is registeredPrashanth Bhatta
If driver is registered before FW ready indication then bus error observed because of powering off the hardware before calling driver probe. Fix the issue by powering off only when driver is not registered. Also add top level reset after FW ready without which bus error is observed. CRs-fixed: 1015484 Change-Id: I26609c4011f10c1a9ee62b092050394e064ee2a2 Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-05-19soc: qcom: pil: timeouts to be disabled from pil-imemPuja Gupta
Allow modem mba, modem pbl and err_ready timeouts to be disabled by writing to starting of pil_imem region. CRs-Fixed: 1015492 Change-Id: I786d8edcd89e3624ef05ffc9a6953a8f840bbac0 Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-05-19soc: qcom: ramdump: Fix bug introduced in kernel upgradePuja Gupta
Uncomment some code which got commented during kernel upgrade by mistake CRs-Fixed: 1015492 Change-Id: Id46bff3b3803d1316ea769581c0f1b0e7fa41498 Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-05-16memory-dump: add support to allocate memory for scan dumpsShashank Mittal
Add support to allocate memory for CPU scan dumps. This momeory can be used to save CPU scan dumps at the time of a crash. Change-Id: I9d644f18882729d187075e885bc2e8c02c5caf36 Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16soc: qcom: dcc: add check if sram data overstepsXiaogang Cui
If the size of captured data oversteps over SRAM boundary then it causes corruption of configuration data. Add boundary check while programming configuration linked list in SRAM, to avoid this problem. Change-Id: Idd33f53560585fdbfee4d3822fd93d6f3a365e17 Signed-off-by: Xiaogang Cui <xiaogang@codeaurora.org> Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16soc: qcom: dcc: update errno of dcc probe failureXiaogang Cui
Acorrding to function really_probe, the ENODEV will not throw any error message. Changing ENODEV to EINVAL to notify error message if probe fails. Change-Id: Ia3187fadd4f0073e5e141595810bb8b3c7aab429 Signed-off-by: Xiaogang Cui <xiaogang@codeaurora.org> Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16soc: qcom: dcc: update xpu probe logic to fix failureXiaogang Cui
TZ image which has registered SCM_SVC_DISABLE_XPU sevice maybe used by none-dcc-xpu device. Update the xpu check logic to fix the probe failure issue. Change-Id: Id2b38d93e7c12648292546592144eda1e82d76be Signed-off-by: Xiaogang Cui <xiaogang@codeaurora.org> Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16soc: qcom: dcc: add support for DCC XPU lock/unlock requestShashank Mittal
Add support to request TZ to lock and unlock DCC XPU. DCC XPU is unlocked before accessing DCC and is locked back again after configuring DCC. Change-Id: I8815f65551df0b80f7ecdcaa338a50db8d9b04f5 Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16soc: qcom: dcc: replace readx_poll_timeout with readl_poll_timeoutShashank Mittal
Use readl_poll_timeout instead of readx_poll_timeout because readl_poll_timeout already uses __raw_readl to read IO register. Change-Id: I86d93bc63cf3282e360eed29732a708ee02cf6df Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16soc: qcom: dcc: change configuration programming interfaceShashank Mittal
Currently user needs to provide base, offset, and length to program a configuration in DCC. To simplify user input, this change requires user to provide just start address and length. Driver is going to calculate most optimized base, offset and length to configure user request in SRAM. Change-Id: Ic1b7b2d4d4ed4baa9e8d33a2b60c10d2e799b211 Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16soc: qcom: dcc: add support to send SW trigger on/off req to RPMShashank Mittal
Add support to request RPM to turn on/off DCC SW trigger. This request can be used to enable/disable DDR training data verification before DDR frequency switch. After receiving enable request RPM assumes that DCC is configured in CRC mode to verify DDR training data. Hence it starts to send SW trigger to DCC to run CRC on configured data before DDR frequency switch. Change-Id: I491bc3e41e11a5366162c65907f41f7cbcdd7809 Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16soc: qcom: dcc: add support for CRC modeShashank Mittal
In CRC mode DCC can perform CRC on configuration data or system memory after receiving SW or HW trigger. Change-Id: Iab0a6ffa92ef6e311054756cfe85d1b2b91743c9 Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16soc: qcom: dcc: fix uninitialized variable bug in dcc_ll_cfg functionShashank Mittal
Fix bug due to use of uninitialized 'prev_off' variable. Change-Id: I773f64209b395eb9f2fc82a53d4a2f1b79b081eb Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16soc: qcom: dcc: add support for DCC driverShashank Mittal
DCC (Data Capture and Compare) is a DMA engine which is used to save configuration data or system memory contents during catastrophic failure or SW trigger. It can also perform CRC over the same configuration or memory space. Change-Id: Ic8a804250ab8b7ac501bd186d2e6f7506bb9b21a Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16soc: qcom: pil: Fix error path sequencePuja Gupta
Fix the clock error path sequence. CRs-Fixed: 1015492 Change-Id: I20eeadbfcdae16ce9c2feb8b882471683766ec4f Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-05-16soc: qcom: glink: Fix race condition in dummy xprt cleanupChris Lew
In glink_core_channel_cleaup there is a race condition while traversing the channels list. This change holds the xprt channel spinlock during the list manipulation. CRs-Fixed: 988266 Change-Id: Idcff59ca1483fd98173255d6258e6771d91dec19 Signed-off-by: Chris Lew <clew@codeaurora.org>
2016-05-16soc: qcom: common_log: Fix a memory leak in common_log driverPrasad Sodagudi
Fix the memory leak in common_log_register_log_buf() function when registering log_first_idx with the memory with dump v2 driver. Also use kmemleak_not_leak when msm_dump_data_register() calls are successful to ensure that kmemleak doesn't report it as a memory leak. CRs-Fixed: 832905 Change-Id: I36eaeebf821f64dd7503ec823aca3c7aec846bd0 Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16qcom: common_log: add support to dump rpm code ramSarangdhar Joshi
Allocate memory to dump RPM CODE RAM at the time of crash. Change-Id: I5062d65a095538a508944315e6cc06f430382bf5 Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org> Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16qcom: common_log: add support to dump VSENSE registersShashank Mittal
Allocate memory to dump VSENSE registers at the time of crash. Change-Id: Ibd896873bc40b723071c66ca7cf1a4bc9b38ad5e Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16qcom: common_log: add support to dump PMIC registersNeeti Desai
Register for dumping 4KB of memory to dump PMIC registers which can be parsed in case of device crash. Change-Id: Idbf26d6241ab9a87e4dcea42723428289f2a869d Signed-off-by: Neeti Desai <neetid@codeaurora.org> [spjoshi@codeaurora.org: fix merge conflict] Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org> [mittals@codeaurora.org: fix merge conflict] Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16common_log: add common_log support snapshotWu Jin
This snapshot is taken as of msm-3.10 commit: 78c36fa0ef (Merge "msm: mdss: Prevent backlight update during continuous splash") Common log registers the kernel log buffer address with the memory dump driver so that the __log_buf can be collected from ramdumps without the need of an external System.map file. Change-Id: Ibeb74ca064e78fe7522e46b3c32bb362082d5d24 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> [spjoshi@codeaurora.org: fix merge conflict] Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org> [mittals@codeaurora.org: fix merge conflict] Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-15soc: qcom: Add snapshot of the cpuss driverRunmin Wang
This snapshot is taken as of msm-3.18 commit dacccc6. CRs-Fixed: 1011333 Change-Id: I4ed06b5602220ed4e30bd37a0633ccb3454f7d43 Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-05-11icnss: Add support to configure voltage regulatorHardik Kantilal Patel
Add voltage regulator support to power the WLAN hardware. CRs-Fixed: 982993 Change-Id: Ic36ac920497d05131ef8162a42ee5318600a3473 Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2016-05-10soc: qcom: glink: Fix ssr race condition in glink_closeChris Lew
Add else statement in glink_close for a race condition where the xprt state is set to GLINK_XPRT_DOWN and glink_close runs before the channel is migrated. CRs-Fixed: 988266 Change-Id: I4de6530f1fbffd9f3acd1fa539cf756364ea32ac Signed-off-by: Chris Lew <clew@codeaurora.org>
2016-05-10icnss: Update icnss logsYuanyuan Liu
Enable important kernel logs which are essential for cold boot debug. Remove unnecessary log for normal behavior. CRs-Fixed: 1013082 Change-Id: I5234f0511fa1c81072e740386e90e07f5e813dd0 Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>