summaryrefslogtreecommitdiff
path: root/drivers/soc (follow)
Commit message (Collapse)AuthorAge
...
| * | | | | | spcom: increment channel reference count after successful glink_open()Amir Samuelov2017-05-20
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | spcom_open() should increment the ref count only after successful glink open the channel. Otherwise, the following attempts to open the channel will fail. glink_open() failure was noticed after SP reset (SSR), when attempting to open the channel before the link between SP and HLOS is up. Change-Id: I8be28ce810f54cc3fa95d14c7244921acf7edaa7 Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
* | | | | | Merge "soc: qcom: Fix failure prints in rpm stats and log"Linux Build Service Account2017-05-25
|\ \ \ \ \ \
| * | | | | | soc: qcom: Fix failure prints in rpm stats and logMaulik Shah2017-05-19
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Correct failure prints in rpm stats and rpm log drivers. Change-Id: I4a2d4a8cf4df4c9c1d750a65beb7454041fc06c2 Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
* | | | | | Merge "soc: qcom: msm_perf: Initialize Array elements"Linux Build Service Account2017-05-25
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | soc: qcom: msm_perf: Initialize Array elementsVijay Ganti2017-05-16
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change initializes the tmp array elements to ensure no use of uninitialized variable. This was caught through Static Analysis Change-Id: Ibc01493e9f0ce1a492579b568fa7362cb3c3b1d7 Signed-off-by: Vijay Ganti <viganti@codeaurora.org>
* | | | | Merge "msm: mink: Avoid handling output params if TZ op returns an err"Linux Build Service Account2017-05-16
|\ \ \ \ \
| * | | | | msm: mink: Avoid handling output params if TZ op returns an errDinesh K Garg2017-05-09
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Invoke operation is processed at couple of places in trusted env; in TZ kernel and/or in TZ apps. If TZ kernel returns an error, SMCInvoke driver does not process output params and returns appropriate err to userspace. However, if error is returned from trusted apps, SMCInvoke still processes output params and returns error to userspace. Now, SMCInvoke driver will not process output params if trusted app returns an error. Userspace is also expected to follow the same rule. Change-Id: Ic58e37ba714d4b384e3fa9206419c69ddd852b4a Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
* | | | | Merge "msm: msm_bus: Add mutex to protect node_list"Linux Build Service Account2017-05-16
|\ \ \ \ \
| * | | | | msm: msm_bus: Add mutex to protect node_listDavid Dai2017-05-16
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Static variable node_list list need to be protected with a mutex to prevent race conditions and use after free cases. Change-Id: I4790b06712b8a8b401f43418cfcc53b415fb0019 Signed-off-by: David Dai <daidavid1@codeaurora.org> Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
* | | | | Merge "soc: qcom: Fix checks for QMI response values"Linux Build Service Account2017-05-16
|\ \ \ \ \
| * | | | | soc: qcom: Fix checks for QMI response valuesPuja Gupta2017-05-15
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The return values from QMI could be compared directly and was incorrectly interpreted in service locator and notifier. Also initialize structure in service locator so as to not have garbage values in them. Change-Id: I7f8f27857706e9508b64289d9263c79494c17a8d Signed-off-by: Puja Gupta <pujag@codeaurora.org>
* | | | | Merge "soc: qcom: fix to avoid memory allocation failures"Linux Build Service Account2017-05-16
|\ \ \ \ \
| * | | | | soc: qcom: fix to avoid memory allocation failuresVidyakumar Athota2017-05-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currenlty wdsp_glink_write() API allocates 256KB buffer and free after it is transferred to glink. But this may result in memory allocation failures in low memory situations. Fix this issue by allocating the required size and validate it to avoid overflow. Change-Id: I891e4361aa5f24c5a518b3acb1d7cf6a9baa5bdf Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
* | | | | | Merge "spcom: avoid user commands via /dev/spcom"Linux Build Service Account2017-05-16
|\ \ \ \ \ \
| * | | | | | spcom: avoid user commands via /dev/spcomAmir Samuelov2017-05-15
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The pseudo-file char-device-nodes /dev/spcom and /dev/sp_ssr are not associated with a logical channel for data transfer with the Secure Processor (SP). Avoid sending user command by file write() over those device nodes. The command "create channel" should be done over /dev/sp_kernel rather than over /dev/spcom. Verify that glink pass valid channel pointer to spcom callbacks. Use size_t for channel "actual_rx_size" parameter that is provided by glink to spcom callback. Remove "fake SSR" command, since real SSR is supported by SP. Change-Id: Id9113389d94ab4aed01d3ac1e370c4e8f3c8965b Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
* | | | | | Merge "soc: qcom: rpm_master_stat: Fix buffer overflow"Linux Build Service Account2017-05-16
|\ \ \ \ \ \
| * | | | | | soc: qcom: rpm_master_stat: Fix buffer overflowMaulik Shah2017-05-15
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Buffer overflow can happen when finding next set bit due to type casting of uint32_t to unsigned long. Fix this to correctly print number of active cores in rpm_master_stat. Change-Id: Ibeacc5ac66535e373965d8f8e4919829367cc257 Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
* | | | | | Merge "memshare: Update the free memory count after allocation"Linux Build Service Account2017-05-16
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | memshare: Update the free memory count after allocationManoj Prabhu B2017-05-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch updates the client's free memory count variable after the successful allocation. CRs-Fixed: 2046258 Change-Id: Ibae317596557e23d2b2278daf433bd293a8bd0be Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
* | | | | | Merge "soc: qcom: qpnp-haptic: add support for auto mode"Linux Build Service Account2017-05-11
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |
| * | | | | soc: qcom: qpnp-haptic: add support for auto modeSubbaraman Narayanamurthy2017-05-09
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on the duration of the pattern, haptics mode and other parameters needs to be configured dynamically for a better performance and ease of use. Add support for this through device tree property "qcom,lra-auto-mode". Add support to configure some parameters like auto resonance mode, LRA high-Z period, calibration period, vmax along with an option to override the settings done by auto_mode configuration. Change-Id: I4706fed4e3ca97d190f907769fd4a9899479b330 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | | | | Merge "icnss_utils: replace mutex lock by spinlock"Linux Build Service Account2017-05-10
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | icnss_utils: replace mutex lock by spinlockYuanyuan Liu2017-05-10
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace mutex lock by spinlock in icnss_wlan_set_dfs_nol as dfs module may call this function in timer context which will result apps crash. CRs-Fixed: 2044689 Change-Id: Ib820589cd8b120a39536aab69d6954ba8cc35e3c Signed-off-by: Arif Hussain <arifhussain@codeaurora.org> Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
* / / / memshare: Add guard bytes to avoid access issuesMohit Aggarwal2017-05-08
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, TZ is performing merging of resource groups due to which NOC error is happening during access of memory allocated to diag. This patch fixes the issue by adding guard bytes so that merging of resource groups will not happen. CRs-Fixed: 2026525 Change-Id: I9829e5a07aef723c4261aa16dd5274cfeb1a75a3 Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
* | | Merge "qbt1000: Initialize drvdata structure before usage"Linux Build Service Account2017-05-04
|\ \ \
| * | | qbt1000: Initialize drvdata structure before usageAbir Ghosh2017-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix uninitialized local variable error which might have lead to crash. CRs-Fixed: 2030137 Change-Id: I3fd95cb343c3175e4190c8ebfe209399db0602a6 Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
| * | | qbt1000: Terminate fingerprint TA name with nullAbir Ghosh2017-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Terminate the string, coming from userspace and containing the name of fingerprint trusted app, with null character, to make sure kernel memory does not leak into logs Change-Id: I1668a64fcb6747ce3ef3b1ee6321fa5fa4a1798a CRs-Fixed: 2029409 Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
* | | | Merge "qbt1000: Validate FP app name before qseecom_start_app"Linux Build Service Account2017-05-04
|\ \ \ \
| * | | | qbt1000: Validate FP app name before qseecom_start_appAbir Ghosh2017-05-03
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Validate the name of the client app before passing it to qseecom_start_app. CRs-Fixed: 2006695 Change-Id: I9c6b16050d4f6fc94827021c7b0f2ab292452f60 Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
* | | | Merge "soc: qcom: minidump: move elf global variables to structure"Linux Build Service Account2017-05-03
|\ \ \ \
| * | | | soc: qcom: minidump: move elf global variables to structureLingutla Chandrasekhar2017-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current driver implementation uses global variables to create minidump elf header. Move all elf global variables into a structure, and also replace 'msm_minidump_enabled' API with 'minidump_enabled' global variable. And also add minidump_table address in elf, which would be useful for parsers to get memory dump table addresses without vmlinux symbols. Change-Id: I8829d88ce234179f429ae9537a3582df794c2cdf Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
| * | | | soc: qcom: minidump: fix logic checks in elf traversalsLingutla Chandrasekhar2017-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix logical checks in minidump elf traversal functions. Change-Id: I649fc9ae66d616982a61f71f66f2abe378212660 Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
* | | | | Merge "soc: qcom: minidump: update error message log level"Linux Build Service Account2017-05-03
|\| | | |
| * | | | soc: qcom: minidump: update error message log levelLingutla Chandrasekhar2017-05-03
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current implementation uses pr_info to print error messages. Update driver prints log level with pr_err instead of pr_info, and also update with proper error number for minidump table update failure return. Change-Id: I27667715c71b361b9ee0f7856c94242d3ca21014 Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
* / / / icnss: Initialize the structure member properlyHardik Kantilal Patel2017-05-03
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | After cold boot calibration WLAN FW send pin connect result to platform driver through qmi indication message. To avoid uninitialized access of pin connect result structure member initialize it properly. CRs-Fixed: 2042000 Change-Id: I5654583e890f9ee67ddcc632aecd9ecb8a160062 Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
* | | Merge "icnss: remove pre-alloc memory leak check in platform driver"Linux Build Service Account2017-05-02
|\ \ \
| * | | icnss: remove pre-alloc memory leak check in platform driverHardik Kantilal Patel2017-05-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The WLAN host driver is allocating the memory from pre-alloc pool during insmod/wlan start up before WLAN driver register and release the pre-alloc memory after driver unregister/remove. The Pre-alloc memory leak check and reset in Icnss platform driver on probe failure and after remove will leads to invalid memory leak stat and dangling pointer for wlan host driver allocated memory from the pre-alloc memory pool. To fix the above issue remove the pre-allaoc memory leak check and pre-alloc memory pool reset from the icnss platform driver and export symbol for the pre-alloc memory leak check and pre-alloc memory pool reset. CRs-Fixed: 2039483 Change-Id: Id9f01c9d2b5184fbb58935eaf11fd21b50b47908 Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
* | | | Merge "Merge remote-tracking branch 'remotes/quic/dev/msm-4.4-8996au' into ↵Linux Build Service Account2017-05-02
|\ \ \ \ | | | | | | | | | | | | | | | msm-4.4"
| * \ \ \ Merge remote-tracking branch 'remotes/quic/dev/msm-4.4-8996au' into msm-4.4Zhiqiang Tu2017-05-02
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: arch/arm/boot/dts/qcom/msm8996-auto-cdp.dtsi drivers/gpu/drm/msm/Makefile Change-Id: Ief80c28ff1422fd71a0c3d2041531e2ab078ee7a Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
| | * | | | soc: qcom: boot_stats: Adding new KPI markers and renaming the existing.Meghana Ashok2017-04-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding early_domain and SHA/RSA compute time KPI markers. Renaming few other markers to be more indicative. Change-Id: I55c99ae0c65f0162ef56b2e59e10d1d92ec76a58 Signed-off-by: Meghana Ashok <meghanaa@codeaurora.org>
| | * | | | soc: qcom: boot_marker: pass formatted buffer to markerAtul Raut2017-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix scramble boot marker string and pass it to place_marker. CRs-Fixed: 1012714 Change-Id: I0013975aa75cdc15fc66ff320a0a4f3d314c6795 Signed-off-by: Atul Raut <araut@codeaurora.org>
| | * | | | Merge "socinfo: Add support for ADP platform" into dev/msm-4.4-8996auLinux Build Service Account2017-04-19
| | |\ \ \ \
| | | * | | | socinfo: Add support for ADP platformAtul Raut2017-04-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update subtypes for ADP platform. CRs-Fixed: 1034749 Change-Id: I7fe7af381ac96caaf5abf568c8ce07d3db0e0a58 Signed-off-by: Atul Raut <araut@codeaurora.org>
| | * | | | | soc: qcom: boot_marker: change module load orderAtul Raut2017-04-18
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | boot_marker's routine place_marker used by module's which start late in driver initialization at kernel boot sequence hence required chaning its load order. boot_marker module depends on boot_stat which load order is subsys_initcall hence changing boot_marker as subsys module. CRs-Fixed: 1023644 Change-Id: I6c44d59d1899667f92d25211a2af4edde7130e15 Signed-off-by: Atul Raut <araut@codeaurora.org>
| | * | | | soc: qcom: boot_stats: Add boot KPI markersAtul Raut2017-04-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add instrumentation for boot time measurement Change-Id: I08fe4f23a7f95f765f28f57790e7102f4751b442 CRs-Fixed: 1000799 Signed-off-by: Atul Raut <araut@codeaurora.org>
| | * | | | soc: qcom: cache_m4m_erp64: Dump ICESR_EL1 on I-cache errorSanrio Alvares2017-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dump ICESR_EL1 register when I-cache error is detected to determine if there are multiple errors Change-Id: I507a16817428ee31dc55ef23513aaf146d0ee1ef Signed-off-by: Sanrio Alvares <salvares@codeaurora.org>
| | * | | | soc: qcom: remove warning msg in msm_l2_erp_irq()Puja Gupta2017-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | smp_call_function_many() used in msm_l2_erp_irq() gives a warning when called with interrupt disabled. Instead use smp_call_function_single_async(). Change-Id: I03cdc0cc07281460a33abe9b09ae0f06590029aa Signed-off-by: Puja Gupta <pujag@codeaurora.org>
| | * | | | soc: qcom: cache_m4m_erp64: Use non-threaded IRQ handlingStepan Moskovchenko2017-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use non-threaded IRQ handlers for L2 and M4M error reports, so that the error handler prints a meaningful backtrace (including stack information prior to IRQ entry). This improves the chances of being able to identify what the system was doing when the error was reported. Change-Id: I220fa753944694842307fcec217e32a96c8adc0d Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
| | * | | | soc: qcom: cache_m4m_erp64: Use raw_smp_processor_id()Stepan Moskovchenko2017-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace calls to smp_processor_id() with raw_smp_processor_id() to avoid extraneous warnings on the error handling paths. Change-Id: Ie1f4dd448aa04302e1eb0865e0373f9a2b91848c Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
| | * | | | soc: qcom: cache_m4m_erp64: Fix L1/L2 error detection initializationMatt Wagantall2017-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | L1/L2 error detection configuration must be configured on all CPUs, but the configuration was performed on all but the current CPU. Replace calls to smp_call_function() with calls to on_each_cpu() to correct this. smp_call_function() only calls the function on other CPUs, not the current one. Change-Id: I68b7657a6b1258f745103531bfe383333dbd9362 Signed-off-by: Matt Wagantall <mattw@codeaurora.org>