Commit graph

585336 commits

Author SHA1 Message Date
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
Yingwei Zhao
3f48380f37 ARM: dts: msm: Change FG cut-off voltage to default for SDM660 QRD
In the new SDM660 QRD devices, PM660 does not need the hardware
workround that cut-off voltage should be set to 3.7V, so delete
the qcom,fg-cutoff-voltage property.

CRs-Fixed: 2013279
Change-Id: Ica55128a2f426a668b0d43d04424e13672dd78fd
Signed-off-by: Yingwei Zhao <cyizhao@codeaurora.org>
2017-03-01 18:16:23 -08:00
Xiaojun Sang
c563e4e88f ARM: dts: msm: Remove add sb_4_tx_vi to support VI recording at msm8998
This reverts commit 9f45a559c7 ("ARM: dts: msm:
add sb_4_tx_vi to support VI recording at msm8998")

It is unnecessary to support concurrency of VI sense
recording and speaker protection.

CRs-Fixed: 1113625
Change-Id: I13ee9fd2daed2ad55347c112eeb79a9bfe6495ba
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2017-03-02 10:15:00 +08:00
Pengfei Liu
2a8832a94e ARM: dts: msm: Add support for sdm630 QRD board
Add camera node including rear aux and front camera node, also
add corresponding eeprom actuator ois flash and torch node.

Change-Id: I84e3bfa11127ca7808491df728665f74c9222343
Signed-off-by: Pengfei Liu <pengfeiliu@codeaurora.org>
2017-03-01 17:59:52 -08:00
Abhijeet Dharmapurikar
5b289d3a64 leds: remove unused driver leds-qpnp-flash.c
leds-qpnp-flash driver is not supported anymore. Remove it.

Change-Id: Ie2f570bad8171c460b8167f140d71c052ada2b17
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-03-01 14:07:10 -08:00
Satya Durga Srinivasu Prabhala
812a215410 defconfig: msm: Turn on ESOC configs
Enable support for ESOC drivers.

Change-Id: Ie10f7b74fa7d06c7fcc93bf6eaa23889fc533b86
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2017-03-01 11:26:11 -08:00
Linux Build Service Account
81eef00c67 Merge "ASoC: msm8998: Add micbias configuration for MBHC" 2017-03-01 11:09:04 -08:00
Linux Build Service Account
1e6ff27a13 Merge "defconfig: msm: Enable DRM" 2017-03-01 11:09:03 -08:00
Linux Build Service Account
db26a193ab Merge "power: bcl_peripheral: Enable BCL LMH algorithm only once" 2017-03-01 11:09:02 -08:00
Linux Build Service Account
59179042e8 Merge "ARM: dts: msm: Add SMB1381 device node for SDM630 QRD" 2017-03-01 11:09:01 -08:00