Commit graph

585295 commits

Author SHA1 Message Date
Deepak Kushwah
2c6f660170 msm: vidc: Fix masking of QP values for different codecs in driver
Driver is masking QP values for different codecs, as same control
is used for all codecs.This change enables driver to
differentiate QP boundaries based on codec type.

Change-Id: Ibc8a64ab933bac85c72b2dd62f6988bad6d5c5fa
CRs-Fixed: 2011307
Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
2017-03-02 22:19:43 -08:00
Manoj Kumar AVM
26dc184bbb defconfig: enable VT driver for mediabox
Enable CONFIG_VT in msmcortex mediabox defonfig. This is needed for
Weston compositor functionality.

CRs-Fixed: 2002381
Change-Id: Id7d57d4b1862252af40fe1d8b296a4e5a8ee0fba
Signed-off-by: Manoj Kumar AVM <manojavm@codeaurora.org>
2017-03-02 20:11:33 -08:00
zhaoyuan
4fea7185a7 ARM: dts: msm: Add improve touch device node into sdm630 QRD
Improve touch will be used on sdm630 QRD so add support for it.

Change-Id: I4e7868f81dbd86a425375e98f4fea4a40f53887f
Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
2017-03-03 11:22:56 +08:00
Subbaraman Narayanamurthy
0996508e0d leds: qpnp-wled: add support to control PSM dynamically
As per the hardware recommendation, keep PSM disabled 10 ms after
WLED module is enabled. Enable PSM back when the module is
disabled. This is to ensure that PFM mode is operational without
the precedence from PSM. Make this configurable through a device
tree property.

Change-Id: Ic6be160a88be40e94a4a0798646b8aa3f169ab49
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-02 18:52:08 -08:00
Xiaojun Sang
3053c8faea ASoC: msm: add support for VI sense recording
Add new routing dailink to support VI recording using
DAI of Slimbus4 Capture.

CRs-Fixed: 1113625
Change-Id: I75282bd39a7299a9906ac38907e93e359403c077
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2017-03-02 18:19:53 -08:00
Harsh Sahu
1e400c0dbd msm: mdss: Handling possible integer overflow
fudge_factor calculation can suffer from integer overflow as numer and
denom are user controlled. Hence this change will first check for the
overflow and return immediately.

CRs-Fixed: 1110860
Change-Id: I3fab3edd4515d7a4c67f29d68b2039f234b03612
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
2017-03-02 18:06:37 -08:00
Subbaraman Narayanamurthy
104f30e462 leds: qpnp-wled: improve OVP fault interrupt handling
If there is an OVP event happened in the bootloader and the
interrupt is not handled before, then as soon as the WLED
module is enabled, fault interrupt can fire. This is seen
sometimes during bootup. This is harmless as such and cannot
be stopped completely. However, it would be good to keep the
OVP fault interrupt disabled at the startup. When WLED module
is enabled again, it will get enabled anyways after ~10 ms.

While at it, print the error message in OVP fault interrupt
handler only when the fault status is set.

Change-Id: I0759c87137a52a8872b37d126e71c13f76d10e05
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-02 17:57:08 -08:00
Subbaraman Narayanamurthy
4c4a60efd4 ARM: dts: msm: change WLED interrupt configuration for pm660l
Currently, WLED over-voltage and short-circuit fault interrupts
are configured for both rising and falling edge. Configure them
to be on rising edge alone as that should be sufficient.

Change-Id: I9e19cf08e77432a4db5f18894ee445d38f1ad802
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-02 17:48:56 -08:00
Subbaraman Narayanamurthy
75b11e217d ARM: dts: msm: change WLED interrupt configuration for pmi8998
Currently, WLED over-voltage and short-circuit fault interrupts
are configured for both rising and falling edge. Configure them
to be on rising edge alone as that should be sufficient.

Change-Id: I7cdaf126c07daa9afb2c0db68ee760a9a4a2956a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-02 17:47:56 -08:00
Manu Gautam
38fb1003b1 USB: gadget: midi: Replace snd_card_free with snd_card_free_closed
snd_card_free is a blocking function which waits for ALSA device to
be closed before freeing it. This could be blocked forever if userspace
has device node opened when midi function is unbound.
Replace it with snd_card_free_when_closed which can be safely used if
userspce has the device node opened.
It is not a blocking function and defers freeing of the card until
userspace closes the ALSA device.

Change-Id: I6becc44dc0f0c1131f9b7dcd1e4a151d830dde2b
CRs-fixed: 1116790
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2017-03-02 13:30:20 -08:00
Kuirong Wang
5701970e9e ASoC: codecs: add cable connect/disconnect acknowledgment
Add support for cable connect/disconnect acknowledgment
between HDMI/DisplayPort audio codec driver and display
driver to replace sysfs node mechanism.

CRs-Fixed: 2013097
Change-Id: I3b385a5e9933f7e99f1dbb9848a2664f687bd7d7
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2017-03-02 13:10:16 -08:00
Prasad Sodagudi
db79acdf6f watchdog: Induce non secure watchdog bite for lockup
Induce non secure watchdog bite when ever kernel soft
lockup or hard lockups are detected. So that proper
context of cpus can be collected for debugging.

Change-Id: I613391d8d53fe52ce7934cdc910fb135c4e0fbf2
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2017-03-02 12:55:47 -08:00
Prasad Sodagudi
3e14267831 defconfig: msm: Enable softlockup and hardlockup panic
Enable config flags to panic on soft/hard lockups.

Change-Id: I9afc0d7199be5d0fc54bca99b2852848ccecd614
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2017-03-02 12:29:58 -08:00
Anirudh Ghayal
9ce8217d4f power: fg-util: Fix the address mask for secure_write check
For the 16-bit FG peripheral register address check the lower-byte
for secure_access instead of the upper-byte.

CRs-Fixed: 2013922
Change-Id: I647aa4eadccb007e6e974eae65cef162c5a40a0d
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2017-03-03 00:04:09 +05:30
Ashay Jaiswal
16d8287180 qcom: smb-lib: fix adapter allowance for PM660
PM660 only supports VBUS voltage upto 9V, add
support to limit adapter allowance to maximum 9V for
PM660.

Change-Id: I283d5b1105cd9ad397a484982d674acf97f31f8a
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-03-02 23:07:04 +05:30
Liam Mark
37a29f1605 arm64: dma-mapping: optimize unmap coherency check
Change arm_iommu_unmap_page to check the DMA attributes for buffer
coherency support instead of checking the iommu page table.

This change now requires that clients correctly set the
DMA_ATTR_FORCE_COHERENT or DMA_ATTR_FORCE_NON_COHERENT DMA
attributes in their unmap call if they used it with their map call.

This will improve the performance of the arm_iommu_unmap_page
call.

Change-Id: Ie96ef0a1906a8732b7b1eef7bed8aa85abee95f4
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2017-03-02 09:20:58 -08:00
Linux Build Service Account
2a7bbea49b Merge "msm: mdss: handle synchronization issues during DSI debugfs read/write" 2017-03-02 08:27:04 -08:00
Linux Build Service Account
ac88759295 Merge "msm: vidc: Return correct error code from venus_hfi_suspend" 2017-03-02 08:27:03 -08:00
Linux Build Service Account
2caf0b2fcd Merge "msm: vidc: Add support for Cx ipeak limitation" 2017-03-02 08:27:02 -08:00
Linux Build Service Account
1543b55dce Merge "ARM: dts: msm: Remove debug_timeout property for msm8998" 2017-03-02 08:27:01 -08:00
Linux Build Service Account
f1921bde73 Merge "msm: vidc: Add support for querying controls" 2017-03-02 08:27:00 -08:00
Linux Build Service Account
892273039e Merge "msm: vidc: Initialize DCVS load properly" 2017-03-02 08:26:59 -08:00
Linux Build Service Account
3ad6b7e9f4 Merge "soc: qcom: Propagate separate error code for PDR disabled" 2017-03-02 08:26:59 -08:00
Linux Build Service Account
86aba807c8 Merge "leds: remove unused driver leds-qpnp-flash.c" 2017-03-02 08:26:58 -08:00
Linux Build Service Account
240cfdc172 Merge "ARM: dts: msm: Change FG cut-off voltage to default for SDM660 QRD" 2017-03-02 08:26:57 -08:00
Linux Build Service Account
07138c3906 Merge "ARM: dts: msm: Add support for sdm630 QRD board" 2017-03-02 08:26:56 -08:00
Ghanim Fodi
243a07207f msm: ipa3: fix DMA memory allocation success check
IPA allocates memory for Filtering and Routing tables
by the DMA memory allocation Linux APIs.
The code did not check the success of allocation
correctly. This change fixes the check.

CRs-fixed: 2014060
Change-Id: I95a170f19e3becfc2b90bf5931947c0637464257
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2017-03-02 07:34:16 -08:00
Benjamin Chan
ca14424a1a msm: sde: Wait for Rotator HW complete if stop streaming timeout
SDE rotator commit handler is running under workqueue, and it is
possible that it gets blocked longer than the expected timeout setting
in fence timeout and stream stop timeout. In the case of stream stop
wait timeout, it is important to wait for the rotator commit handler
finished by issuing a cancel request, to ensure buffer resources are
safe to release in the V4L2 framework.

CRs-Fixed: 2013724
Change-Id: I40bbbd8072bf6d0bf1f0d61cc1668a431b12f707
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2017-03-02 10:07:20 -05:00
Mohit Aggarwal
738d2a8fea alarmtimer: Program mpm wakeup time in milliseconds
Currently, mpm wakeup time is programmed in seconds
due to which there is a possibility that wakeup
happens later than the expected time. This patch
fixes the issue by programming the mpm wakeup time
in milliseconds.

CRs-Fixed: 2010001
Change-Id: I5c4905a0386e60ae54876f30d89f445fd06a161c
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2017-03-02 03:05:45 -08:00
Narender Ankam
a471176a2b ARM: dts: msm: add device nodes to support DP on sdm630
Add device nodes for dp_ctrl and dp_pll to bring up display port
on sdm630.

Change-Id: I14621a6e4d6273b56c1ad7639baa5e83c058fe63
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
2017-03-02 16:10:38 +05:30
Sandeep Panda
6504e74fc6 ARM: dts: msm: enable dynamic fps for nt35597 truly panel on sdm660
This reverts commit e355807417 ("ARM: dts:
msm: disable dynamic fps for nt35597 truly panel on sdm660").

Adding back dynamic fps support for nt35597 truly panel, since the
display split screen issue is root caused to be related to DSI BTA
operation.

Change-Id: If020eb482b3e53ea114365734663a8c14c37dc14
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2017-03-02 15:59:24 +05:30
Maulik Shah
47beb3017e cpuidle: lpm-levels: Update suspend wake time
Alarmtimer will send suspend wake time in milliseconds
instead of seconds to minimize round off errors. Update
lpm-levels accordingly.

Change-Id: I58c780993ce35cda69cd963996f057d6e2265c6d
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-02 15:48:35 +05:30
Pratap Nirujogi
b5ac2b42fd msm: camera: cpp: Fixing Heap overflow in output buffer
Issue:
Missing bound check when writing into the output array
buffer, which can lead to out-of-bound heap write.

Fix:
Addding hardcoded constant 8 in the MSM_OUTPUT_BUF_CNT
macro and size check to the place where the array is
accessed. Returning '0' if exceeds MSM_OUTPUT_BUF_CNT.
Caller will return -EINVAL for '0'.

Change-Id: Ic03f86e3e47ece9ca7069527e741a75ad9a0f83f
CRs-Fixed: 2004036
Signed-off-by: Pratap Nirujogi <pratapn@codeaurora.org>
2017-03-02 02:02:24 -08:00
Sarada Prasanna Garnayak
84cfceeac2 ath10k: define structure for the copy engine misc regs
Define structures for the copy engine misc registers
copy engine CMD halt, watermark source, watermark
destination, host IE ring.

This adds support to avoid the conditional compilation,
code optimization and dynamic configuration of the copy
engine register map for respective hardware bus interface.

Change-Id: I42b9c0ad0927b492e3b4f040ae7163456b161735
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-03-01 23:24:39 -08:00
Sarada Prasanna Garnayak
ff6155fa90 ath10k: define structure for the copy engine CTRL_1 regs
Define a structure for the copy engine CTRL_1 register
source, destination and dmax ring. This adds support to
avoid the conditional compilation, code optimization and
dynamic configuration of the copy engine register map
for respective hardware bus interface.

Change-Id: Ic0a4190b0735fb5d905ea75ac71e8060260dde74
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-03-01 23:24:33 -08:00
Sarada Prasanna Garnayak
e42e488a2d ath10k: define structure for the copy engine register map
Instead of defining the copy engine register map as a macro,
Define a structure for the copy engine register map to avoid
the conditional compilation, code optimization and dynamic
configuration of the copy engine register map for respective
hardware bus interface.

Change-Id: I799794ed85b83e342c2aab3d12b2876fc28d680b
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-03-01 23:24:26 -08:00
Senthil Kumar Rajagopal
21f7cd5ee4 msm: camera: isp: fix for enqueue buffer failure
Return values are not handled in this msm_isp_proc_buf_cmd.
Though buffer enqueue or dequeue failed, still returning 0.

CRs-Fixed: 2002948

Change-Id: I9cb8c79f0155e658d4c7918b271ec025758b575f
Signed-off-by: Senthil Kumar Rajagopal <skrajago@codeaurora.org>
2017-03-01 23:14:19 -08:00
Shrey Vijay
280b83a89c ARM: dts: msm: Change BLSP assignment for APQ8098-mediabox
By default codec uses SPI_10 BLSP instance. On mediabox platform,
codec usecase is not present. Hence disable SPI_10 instance on
APQ8098 mediabox platform.

Change-Id: I721673b8cc0ef6d974e715ffd405fc1b11e2c9d5
Signed-off-by: Shrey Vijay <shreyv@codeaurora.org>
2017-03-02 12:10:30 +05:30
Govind Singh
58ce0d4576 ath10k: Remove bus structures from ath10k struct
ath10k struct is bus opaque structure.
Remove bus structures from ath10k struct to make it
bus independent.

Change-Id: Ifb82e1fc4525c535e8a19f95bd4da006294be203
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-03-01 22:20:55 -08:00
Sayali Lokhande
9db290026f ARM: dts: msm: Update SDCC PM QOS values for SDM660
Update SDCC PM QOS latencies to allow l2-retention
state as per measured LPM latencies on SDM660 target.

Change-Id: Iac0a0473f78be90722ceb07db1f85ac6adb69911
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-03-02 10:53:16 +05:30
Sayali Lokhande
adad17d072 ARM: dts: msm: Update SDCC bus voting for SDM660
On SDM660, for sdcc there are two msm-bus paths:
1. AGGNOC->SNOC->BIMC
2. CPU->CNOC->SDC_CFG
For SDCC DATA-FIFO or DPRAM, write clock is HCLK
and read clock is MCLK for TX transactions and
vice-versa for RX transactions.
As both HCLK and MCLK are being used for data
transfers ,we need to provide bus bandwidth vote
from CPU(id:1) to SDC_CFG(id:606) which will be
used for register access and data transfers.

By default on sdm660, we observed cnoc_clk at only
19.2MHz which is very less and hence affecting eMMC
performance (drop upto 50%) for read/writes.
This change is updating bus voting from CPU to CNOC
and helps improving eMMC performance.

Change-Id: I9e3dadf307444be464a42f4a518b44e3f6e98a75
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-03-02 09:39:35 +05:30
Taniya Das
9e172a39e1 clk: qcom: Use the saved current frequency for enable_safe_config
A clk_get_rate in the clk_enable path would result in a BUG from sleeping
context, as clk_get_rate would hold a mutex when we have already acquired a
spinlock in the clk_enable.

Change-Id: I7b32292710bbea3565cdc51c79916fddc60f8bba
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-03-02 09:12:56 +05:30
Linux Build Service Account
660ab6c3a2 Merge "defconfig: msm: Turn on ESOC configs" 2017-03-01 18:38:33 -08:00
Linux Build Service Account
1c229aac13 Merge "usb: gadget: f_fs: Fix memory leak for ipc_log_context" 2017-03-01 18:38:33 -08:00
Linux Build Service Account
8ddeda9e35 Merge "iommu/io-pgtable-fast: cache clean the last level ptes" 2017-03-01 18:38:31 -08:00
Linux Build Service Account
58411a695c Merge "iommu/io-pgtable-fast: optimize statically allocated pages" 2017-03-01 18:38:31 -08:00
Linux Build Service Account
cbaf84eaa7 Merge "power: qpnp-fg-gen3: Add support to clamp ESR" 2017-03-01 18:38:30 -08:00
Linux Build Service Account
883bdb62f1 Merge "msm: camera: isp: Check userspace parameters" 2017-03-01 18:38:28 -08:00
Linux Build Service Account
fff1286023 Merge "icnss: Trigger recovery only if PDR enabled" 2017-03-01 18:38:27 -08:00
Linux Build Service Account
ec98470ea9 Merge "wil6210: remove "No Snoop" settings for RX transactions" 2017-03-01 18:38:27 -08:00