summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2016-05-05msm: kgsl: Purge unused #definesCarter Cooper
Remove unused #defines, structs and members that are no longer used. CRs-Fixed: 971156 Change-Id: Ibdf6fef6f3f700f3c5315c228c0473e47fb62163 Signed-off-by: Carter Cooper <ccooper@codeaurora.org> Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2016-05-05msm: kgsl: Use a page pool to reduce allocation timeDeepak Kumar
Use a mempool to reduce the allocation time. When memory allocated from pages is freed, put it in a page pool. At allocation time, try to allocate from the page pool before getting pages from the system. Make sure that the pool does not grow too big by enforcing a maximum limit. Change-Id: Icac7fb4355ee1fd07e7127ea5c2721665e279272 Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2016-05-05msm_11ad: keep rf_clk3 on during wil6210 activityMaya Erez
wil6210 FW needs to control rf_clk3 in order to allow the host to disable it. Keep rf_clk3 always on, as the current FW code doesn't support handling of rf_clk3. Change-Id: I552094c64bd9fb360ddd73022fe21a403c245b2f CRs-Fixed: 986130 Signed-off-by: Maya Erez <merez@codeaurora.org>
2016-05-05msm: thermal: Make boot-up mitigation optionalRam Chandrasekar
For the targets with the LMH DCVSh mitigation, HLOS boot-up mitigation is not required. So make the devicetree properties related to boot-up mitigation as optional. CRs-Fixed: 1010111 Change-Id: I7f254f579182effbc1f1a3d49c3c917d3c7af162 Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-05-05msm: mdss: hdmi: refactor event handlerAjay Singh Parmar
HDMI driver handles many MDP events. Currently all the events are handled in one function. Create different functions for each event for a cleaner approach. Change-Id: Ib48c02b2b89f7fdb347afd3a02d8b6b7c1c03e85 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-05-05msm: mdss: hdmi: refactor initialization of featuresAjay Singh Parmar
HDMI driver initializes many features like EDID (Extended Display Identification Data), CEC (Consumer Electronics Control), HDCP ( Hight-Bandwidth Digital Content Protection) and related sub-modules. Initialize them in separate functions for cleaner approach. Change-Id: I5b73d3b558af576b5114c42b63260bb688f2d8d1 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-05-05icnss: Enable SMMU BYPASS modeYuanyuan Liu
The plan was to use bypass mode till fastpath API's are available. Hence enable SMMU BYPASS mode. Change-Id: I53bcd8293f7587ddba64ed0e019b77eee62b5e72 Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-05-05msm: mdss: hdmi: add dynamic fps supportAjay Singh Parmar
Add dynamic fps support for hdmi to update the resolution timings on the interface by either changing the clock rate or by modifying the porch values or both. Dynamic fps feature can by used for hdmi to support different use cases like matching input stream fps with hdmi out. Change-Id: Ia305e1eb5d3da1dfbf868650e5ee84018255476b Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-05-05msm: mdss: fb: reconfigure panel if output format has changedAjay Singh Parmar
User modules can switch to same resolution with different format like RGB or YUV. In cases where just the format is changing, reconfigure the panel to switch to new format. Change-Id: I52b11f19f576e13e197e8c576a9c5ada54416f5e Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-05-05msm: kgsl: Check for failure in coresight initializationSunil Khatri
We need to check for both NULL pointer and error condition in coresight initialization and return with proper error. CR's-Fixed: 971398 Change-Id: Id1e3e0f756ac1c9a0ff4f4e6ce073e80e31473b8 Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
2016-05-05msm: mdss: hdmi: check for scrambler overrideAjay Singh Parmar
In some cases, scrambling may need to be forced on or off based on sink requirements. To support such requirements, scrambler override may be imposed. If scrambler override has been enabled, use override value to enable or disable scrambler. Change-Id: I9556c6457258598e6b6758573bb0263d53e612da Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-05-05msm: mdss: hdmi: update switch node on hpd offAjay Singh Parmar
During framework reboot, keep the switch nodes in sync with user modules to make sure hdmi cable notification mechanism works after reboot. Change-Id: I22696b17ec6ff11b1a378df9611eb8ab4be01358 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-05-05irqchip: irq-msm: Delete irq-msm.cTrilok Soni
There is no need of irq-msm.c since the users of this file have moved their callbacks to the respective file (like wcdxxx) and starting 4.4 we don't use the USE_PINCTRL_IRQ. CRs-Fixed: 1007342 Change-Id: I9016aadac88483c8547ed1a40cb6c55909f347cf Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
2016-05-05msm: mdss: update bus scaling macroAbhijit Kulkarni
msm_bus clients must use CONFIG_QCOM_BUS_SCALING as opposed to CONFIG_MSM_BUS_SCALING. Change-Id: Icc6ee5e2ba60d7f619393518b4f06aee6f784f3d Signed-off-by: Sushil Chauhan <sushilchauhan@codeaurora.org> Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2016-05-05msm: thermal: Prolong KTM mitigation till thermal-engine takesoverRam Chandrasekar
KTM stops the boot time mitigation during late init and thermal engine takes over the mitigation only after a delay. Modify KTM to prolong the boot time mitigation till thermal-engine sends a disable command. This ensures a safe handover. CRs-Fixed: 1007266 Change-Id: Icb876f16cac9471c523f3ef5b5fd3ede9d5d597c Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-05-05msm: thermal: Reorganize KTM probe functionRam Chandrasekar
Reorganize KTM probe function by grouping and separating them based on functionalities. The deferrable properties and sysfs node creation are grouped into two separate function calls. CRs-Fixed: 1010111 Change-Id: If144319371a5c65f193ffac8fb9852a836125966 Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-05-05msm: thermal: Remove proactive vdd restriction during probeRam Chandrasekar
Vdd restriction probe will apply mitigation, which will be cleared later during the KTM boot mitigation. KTM now initializes the data structures to do this mitigation only after vdd restriction probe. So remove this pro-active mitigation in the probe function. KTM boot mitigation will be started immediately after the KTM probe and can take care of this mitigation. CRs-Fixed: 1010111 Change-Id: Ica59aeb0c94581e3c37b5b7df16c187ced45c28a Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-05-05msm: ipa: Fix memory free issueRavinder Konka
When calling dma_free_coherent, there is a possibility that size 0 is passed as argument which can result into panic. Make a change to check for the size before calling the API. Change-Id: Idb248e1270b79b51e53de687793030a047fe6c73 Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com> Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
2016-05-05msm: ipa: Fix suspend bit clearing on disconnected pipeRavinder Konka
When the USB pipe is getting disconnected there is a possibility that suspend bit will be cleared due to resource manager. Make a change to not to clean the suspend bit when pipe disconnection is in progress. Change-Id: I97ff3d53c12ed163ae5dbec184ed9445c901459e Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com> Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
2016-05-05ipa: Fix holb monitor response handling from UcRavinder Konka
At the point when ISR routine is triggered, if the IPA clients are 0, ISR handling will be deferred using power_mgmt_wq and same workqueue is used to send holb monitoring command after Uc is loaded. As a result response to holb monitoring command will not be honored. Make a change to use a different wq for sending holb monitoring command. Change-Id: I611155901e928fa8d9bbcbdf2511cd98aa36df2c Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com> Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
2016-05-05msm: jpeg: Expose JPEG DMA max downscale to user spaceGautham Mayyuri
This change will retrieve JPEG DMA max downscale factor from dtsi and expose it to user space. CRs-Fixed: 1009871 Change-Id: I57496aeb47d907f540a25c854ef7b35c6b5ab399 Signed-off-by: Gautham Mayyuri <gmayyuri@codeaurora.org>
2016-05-05msm: vidc: Allow zero length qbufArun Menon
Video driver expects and supports zero length qbuf. The v4l2 framework will allow zero length qbuf only if vb->allow_zero_bytesused is enabled. Change-Id: Ie94ffce93d28d08610310885e4f257ebdbc15dd1 Signed-off-by: Arun Menon <avmenon@codeaurora.org>
2016-05-03soc: qcom: rpm_master_stat: Add additional debug statsRamakrishnan Ganesh
Adding support to print additional XO sleep related debug stats the rpm maintains for each of the masters. The additional stats include xo_count, xo_last_entered_at, xo_last_exited_at, and xo_accumulated_duration. CRs-Fixed: 985182 Change-Id: I39d3d234222b6136ab0e68367e13c1276dce61f6 Signed-off-by: Ramakrishnan Ganesh <ramakris@codeaurora.org>
2016-05-03drivers: soc: qcom: rpm_stats: Switch to use arch_counter_get_cntvct()Mahesh Sivasubramanian
Upstream kernel has deprecated the use of arch_counter_get_cntpct() and the drivers are expected to switch to arch_counter_get_cntvct. Switch to using arch_counter_get_cntvct(). Change-Id: Ie5c9236ad34ea61a375a4a3ae1f1d91fda0a9ccf Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2016-05-03qcom: Port rpm logs and stats driver from 3.18 to 4.4 kernelMahesh Sivasubramanian
Snapshot of rpm status drivers as of msm-3.18 commit e70ad0cd5ef Change-Id: Ibceaa8f948e203c39e3df55b135c0a394f39ca5f Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org> Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
2016-05-03msm: ipa3: Move IPA headers building to IPAHALAmir Levy
IPA headers building is a logic related to H/W. As such, migrating this logic to IPAHAL (H/W abstraction layer) of IPA driver and adapt the core driver code to use it. New internal S/W API is added to access IPAHAL for headers building. CRs-fixed: 989231 Change-Id: I2cec6c6f9fe7aea0e2276b01133f8c3505b9919f Signed-off-by: Amir Levy <alevy@codeaurora.org>
2016-05-03msm: camera: Correct hardware register settings for CSIPHYViswanadha Raju Thotakura
Correct settle_cnt settings in the CSIPHY driver, enable register value for CSIPHYwq. CRs-Fixed: 1011110 Change-Id: I2000cab0a56a890cbd5503306a794e6b9b295db6 Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
2016-05-03irqchip: irq-msm: Remove pinctrl_irq_dummy(..) hookTrilok Soni
of_mpm_init(..) is now directly called into the pinctrl-msm.c driver and therefor it is not needed to be present in the irq-msm.c. This also helps us to not have target specific compatible string names attached everytime we add new SOC. Eventually we will remove irq-msm.c altogether. CRs-Fixed: 1007342 Change-Id: I904ee0b08079972b181f53fdc5a6022871da74e8 Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
2016-05-03usb: gadget: f_diag: Update serial_number with dload_cookieMayank Rana
USB DIAG function driver updates dload_cookie with USB PID and serial number to avoid port-hopping for DIAG port with bootloader. Now composite_driver doesn't get updated strings as android.c is deprecated and configfs is used. Hence use composite device based strings to find required serial number. CRs-Fixed: 1010715 Change-Id: I076928436a8b1b4d1c3ee7e48db9b3314ec1fc05 Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-05-03Revert "spmi: pmic_arb: use handle_fasteoi_irq handler"Abhijeet Dharmapurikar
This reverts commit 3b1bda734da2 ("spmi: pmic_arb: use handle_fasteoi_irq handler") PMIC interrupt are not aligned to be used as fasteoi, this is because * most of the PMIC interrupts are threaded and are configured as ONESHOT. Fasteoi handlers do not support ONESHOT semantics * There is a chance of losing edge interrupts that trigger while the handler is running. This is because fasteoi handler signals EOI after the handler is run. So edge interrupts that trigger while the handler is running get acknowledged without being handled. CRs-Fixed: 1001770 Change-Id: I622fd971201b6c0001212a696c3d12aea409c11b Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-05-03ASoC: msm: audio-effects: misc fixes in h/w accelerated effectWeiyin Jiang
Adding memory copy size check and integer overflow check in h/w accelerated effect driver. Change-Id: I17d4cc0a38770f0c5067fa8047cd63e7bf085e48 CRs-Fixed: 1006609 Signed-off-by: Weiyin Jiang <wjiang@codeaurora.org>
2016-05-03iommu/iommu-debug: Add dummy driver for standalone testingMitchel Humpherys
The IOMMU test framework relies on the `iommus' property, and we currently rely on these methods for making that happen: (1) Clients enabling their DT nodes. (2) We put an `iommus' property in our IOMMU DT nodes themselves. The problem with (1) is that clients aren't always ready during early chip validation. The problem with (2) is that it results in us recursively mapping into the SMMU when we try to do cache maintenance on our page table memory. Fix these problems by introducing a dummy driver with associated device tree bindings that will do absolutely nothing other than wait for the SMMU driver and IOMMU test framework to slurp it up. CRs-Fixed: 1003233 Change-Id: I6a5802aff5bab99d29c6ed9d953a203cbd8015bb Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-05-03msm: cpp: Ignore input validation for sof freeze/unfreeze command idsKrishnankutty Kolathappilly
The command ids do not have separate pointer payload and would return error. If error is returned without waiting for any subsequent driver operation like a timeout handling to complete, it would result in synchronization issues and potential crashes. Ignore input validation for sof freeze/unfreeze command ids. CRs-Fixed: 1002547 Change-Id: Ifbecd46f8e3f8e93d846da3dfc72f7ef70687589 Signed-off-by: Krishnankutty Kolathappilly <kkolatha@codeaurora.org>
2016-05-03msm: mdss: Skip setting up Qseed3 for non-vig pipesAbhijit Kulkarni
Qseed3 is supported on VIG pipes only, driver should skip enabling it on non-VIG pipes. Changes adds support to skip programming Qseed3 on non-vig pipes. Change-Id: Ie3d3889cc6c35011f239468ddf465c553a6b1c97 Signed-off-by: Sushil Chauhan <sushilchauhan@codeaurora.org> Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2016-05-03msm: ipa3: rmnet_ipa: add IPC logging to common bufferSkylar Chang
Add IPC logging to IPA WAN driver. IPC logging will be stored in the same log buffer as IPA IPC log. CRs-Fixed: 1005492 Change-Id: I69f3536e297eae8453370b44f66ec0f520f16cd5 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-05-03msm: ipa3: mhi: add IPC logging to common bufferSkylar Chang
Add IPC logging to IPA MHI driver. IPC logging will be stored in the same log buffer as IPA IPC log. CRs-Fixed: 1005492 Change-Id: I31acc2008800d213cc69003f9781fee04b5935aa Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-05-03msm: ipa: odu: change IPC logging to common bufferSkylar Chang
Use IPA driver IPC buffer for IPC logging for IPA ODU. CRs-Fixed: 1005492 Change-Id: Ibc5ee5145dee3980ddca3d9922663eb96420d011 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-05-03msm: ipa: Fix to accessing ipa_q6_clnt handleSridhar Ancha
There is a possibility that ipa_q6_clnt handle is used after it is freed espcially in scenarios where the handle is freed on service exited notification. Make a change to not clean up the handle when service is exited instead do it as part of BEFORE_POWERUP processing only. Change-Id: I789cdec6f056b17a605f3454e6cd5702542c454f Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com> Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
2016-05-03msm: ipa: Fix to update the descriptor length in SG scenarioSridhar Ancha
When sending a SG packet, frag descriptor length is not updated and as a result IPA HW will stall. Make a change to update descriptor length to the size of fragment. Change-Id: Ie742148fe3b04677365a7247a89c2bed412e4d31 Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com> Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
2016-05-03msm: ipa: Fix to release IPA clock during ap suspendSridhar Ancha
When AP is going to suspend, there is a possibility that IPA clock is released twice due to sps_release_resource being called from 2 different contexts. Make a change to protect sps_release_resource to make sure IPA clock is released only once. Change-Id: I2d7d74e48ce80aa18cab2d42191db8d5edb4a076 Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com> Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
2016-05-03msm: ipa: Fix to QMI initialization and polling stateSridhar Ancha
Using a workqueue for initializing QMI functionality can result in race conditions with cleanup operation during SSR handling because of scheduling delays. Make a change to not to use workqueue and initialize the QMI functionality as part of probe itself. For polling state, there is a possibility that pipe is disconnected during switch between poll mode interrupt mode. This can result in queueing switch_to_intr_work work multiple times till the pipe is connected and there is some activity. Make a change to check if the ep is valid before queuing the work. Change-Id: Id5a5128edb379308fa91b53062b6773af1b6de18 Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com> Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
2016-05-03msm: camera: Avoid uninitialized variablesVijay kumar Tumati
Initialize variables with default values. Change-Id: Ie615ef440ab613f0b4f0601500188068440c29fe Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
2016-05-03icnss: Add SMMU supportYue Ma
Add SMMU support for WLAN. Config it as stage-1 enable by default. Change-Id: I70db6555d236857c5a8d62a337afdc9fec22c97f CRs-fixed: 1009865 Signed-off-by: Yue Ma <yuem@codeaurora.org>
2016-05-03msm: mdss: Add mdp capability to expose writeback interface indexJeykumar Sankaran
Expose a separate MDP capability to expose index of the interface WB block. Change-Id: I757329e68af439701b8f065c99a6a4b0c390cba2 Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
2016-05-03regulator: cpr3-mmss-regulator: update reference voltages for msmcobaltDavid Collins
MSMCOBALT parts with CPR fusing revision 1 and above will have their open-loop voltage fuses blown assuming new lower reference voltages. These lower reference values allow for fusing parts with lower open-loop voltages than was possible before. Update the driver in order to use a different set of open-loop fuse reference voltages for MSMCOBALT CPR revision 0 vs revisions 1 to 7. Change-Id: I2d38454fce77a895f0aaf18e01f7d0c9f3c64692 CRs-Fixed: 1009268 Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-05-03clk: msm: clock-gcc-cobalt: Add SVS2 frequencies for some UFS clocksDeepak Katragadda
Add SVS2 frequencies to the ufs_axi_clk_src and ufs_ice_core_clk_src clock sources on MSMCOBALT. CRs-Fixed: 1010329 Change-Id: I01210f48d32d7d6cb32f4977e52fb46acd33b1ba Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-05-03edac: cortex: Update the CPU nameRunmin Wang
Use Kyro2xx Silver as the cpu name for the silver cluster. CRs-Fixed: 1007822 Change-Id: I23800a58459b0d9b15168cbef409374495e59ee1 Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-05-03msm: vidc: Set constrained intra refresh propertyArun Menon
If Intra Refresh mode is enabled during encode, then enable constrained intra refresh property on firmware. Without constrained intra refresh enabled, Intra Refresh mode will not be effective. CRs-Fixed: 1001217 Change-Id: Id326c73f78f3fadb5193a1e840f295d764fb013b Signed-off-by: Arun Menon <avmenon@codeaurora.org>
2016-05-03clk: msm: clock-gcc-cobalt: Add clock reset support for additional clocksDeepak Katragadda
Add the BCR register for the gcc_ufs_axi_clk and gcc_blsp1/2_ahb_clk clocks. CRs-Fixed: 1005036 Change-Id: I8cd2403bed66141c99ccf8b9c57e59b936c1d90e Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-05-03msm: kgsl: Disable ISENSE CGCOleg Perelet
Disable GPU ISENSE clock gating as workaround of ISENSE HW issue. CRs-Fixed: 973565 Change-Id: If54caf008c654f488986a279bd19bea97457dc2c Signed-off-by: Oleg Perelet <operelet@codeaurora.org>