Commit graph

593048 commits

Author SHA1 Message Date
Siddartha Shaik
bcf5264d73 ASoC: msm: Quat MI2S capture dai update for 88.2 and 176.4 Khz rates
Quaternary MI2S capture dai update to support HDMI In
feature requirement using DSP HW transcode loopback.

CRs-Fixed: 2091424
Change-Id: I144bd8ad8b0e2f708acf78be00e8a93a25a88f2e
Signed-off-by: Siddartha Shaik <sshaik@codeaurora.org>
2017-08-15 00:29:37 -07:00
Siddartha Shaik
9aa8e1cd38 ASoC: msm8998: Add 88.2 and 176.4 khz support for MI2S Interface
Extend MI2S supported sampling rates to support HDMI In
feature requirements using DSP HW transcode loopback.

CRs-Fixed: 2091424
Change-Id: Ic73cbec2473ab509f6a85bd7f6f60869b7986d7b
Signed-off-by: Siddartha Shaik <sshaik@codeaurora.org>
2017-08-15 00:28:33 -07:00
Samyukta Mogily
6873c0c14e ARM: dts: msm: Enable laser for sdm660 CDP/MTP
Add the laser device with the required GPIO and
regulator configuration for sdm660 CDP and MTP.

Change-Id: I763508184eab633df0d45449addcc7d79a366e04
Signed-off-by: Samyukta Mogily <smogily@codeaurora.org>
2017-08-15 13:49:55 +08:00
Surajit Podder
07a24dd5e6 msm: vidc: Fix possible out of bound array access
Fix possible out of bound array access by
putting bounds check in __map_and_update_binfo.
Use u32 to access array to simplify bounds check.

Change-Id: I127fdc76fc273c0bcca727e9264a1d0f208dac1b
Signed-off-by: Surajit Podder <spodder@codeaurora.org>
2017-08-15 10:50:50 +05:30
Bhalchandra Gajare
9f408076d4 ASoc: wcd934x-dsp-cntl: notify online event after clocks are disabled
The moment the online event is notified to userspace, it may happen that
the userspace might enable the WDSP. This causes race between the
enabling of WDSP and SSR handling of WDSP. Change the sequence to notify
online event after all SSR handling is completed.

Change-Id: I3cb5d40034884cdfc35de957fab4dafd42d0697c
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2017-08-14 11:49:25 -07:00
Bhalchandra Gajare
159d8f2870 ASoC: wcd-dsp-mgr: fix race during subsystem restart
Whenever subsystem restart or DSP boot occurs, the manager driver
parses the dsp image and stores the segments in list. During
certain back to back regression tests, it is observed that SSR
is failing due to race between SSR handling and DSP enablement.
Fix this by acquiring the ssr_mutex during enabling DSP and
sequence to list operations such that there is no race conditions.

Change-Id: I15c55bf96737e4ffd7e0faf571a1109ba6c38163
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2017-08-14 11:49:22 -07:00
Deepak Kumar
cfa0dc2093 drm/msm: Free all allocated resources in case hardware init fails
Turn off the GPU power and free all resources allocated during
GPU init in case hardware init fails in adreno_gpu_load. This is
required to make sure further tries to load the GPU again doesn't
fail because of invalid GPU state.

Change-Id: I1d0d68f62be751d76274975e098364131712ca38
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2017-08-14 20:18:46 +05:30
Rahul Sharma
a8782d46b5 msm: ais: Avoid deadlock for vb2 operations using separate lock
Use mutex lock for all VB2 operations, and use separatelock other
than used for stop streaming operation to avoid dead lock.

Change-Id: Ibb466f81cb2825a77073712419fd17c9759ecde4
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-08-14 02:51:29 -07:00
Tony Truong
553433ff26 ARM: dts: msm: increase PCIe PHY wakeup delay from L1ss for msm8998
If PCIe controller requests exit from L1ss shortly after it brings
rxelecidle_disable high, then it's possible that the PHY pipe clock
will turn back on for a short period of time and then go back off
asychronously. Increase PCIe PHY PLL wakeup delay to avoid this.

Change-Id: I1cace039131879969112e1690d07a8d367c06c6b
Signed-off-by: Tony Truong <truong@codeaurora.org>
2017-08-14 12:27:42 +05:30
Rakesh Pillai
473722a7fc ath10k: Enable pktlog for rx data packets
Pktlog was not enabled for rx data packets.
Enable pktlog capture for rx data packets.

CRs-Fixed: 2091228
Change-Id: I8f489065081ba4da7ad7f5b8e271272279124abc
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2017-08-14 12:18:22 +05:30
Linux Build Service Account
a49bb61510 Merge "ARM: dts: msm: Remove sync-wait-broadcast for NT35597 DDIC" 2017-08-12 07:56:35 -07:00
Kiran Gunda
9d2a24f8e5 regulator: qpnp-lcdb: Add headroom voltage for boost
Increase the boost headroom to 200mV. Also add a device tree
property to make the headroom configurable.

Change-Id: Ibc932f191e64824ba948153a7ae80f109ffcdff9
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2017-08-12 20:15:05 +05:30
Linux Build Service Account
dd75d0679e Merge "ath10k: Enable pktlog for WCN3990 target" 2017-08-12 02:36:03 -07:00
Linux Build Service Account
14cda0001f Merge "ARM: dts: msm: Add support for ov9282 dual camera support" 2017-08-11 16:23:55 -07:00
Linux Build Service Account
07ab04950a Merge "ARM: dts: msm: Enable auto-calibration for WLED on PM660/PMI8998" 2017-08-11 16:23:53 -07:00
Linux Build Service Account
842f75d2bb Merge "drm/msm: update HDMI AVI infoframe during HDR playback" 2017-08-11 16:23:52 -07:00
Linux Build Service Account
6949010ef3 Merge "drm/msm: update CSC matrix during HDR playback" 2017-08-11 16:23:51 -07:00
Linux Build Service Account
de1f4ef405 Merge "drm/msm: change CSC matrix selection logic for CDM block" 2017-08-11 16:23:50 -07:00
Linux Build Service Account
9a34ec62d2 Merge "ASoC: msm: qdsp6v2: assign decoder memory to ADSP" 2017-08-11 16:23:49 -07:00
Linux Build Service Account
7ed24b74a1 Merge "Revert "input: misc: hbtp_input: fix memory corruption in list"" 2017-08-11 16:23:48 -07:00
Sathish Ambley
2d9e1beb31 ARM: dts: msm: Add support for ov9282 dual camera support
Add support for ov9282 dual camera sensors with the images from
the two sensors stitched together.

Change-Id: I4ac5aecca4d7ecc4fb9d04a6fdf64c871f486cbf
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
Acked-by: Rajesh Bharathwaj <rajeshbharathwaj@codeaurora.org>
2017-08-11 12:57:19 -07:00
Sathish Ambley
19c7c24c96 ARM: dts: msm: Add support for svr835 v2 board
Add battery profile data and pinctrl changes that are specific to svr835
v2 board.

Change-Id: I85c5e7ce7e88655da5637d2e5bc14ce8593b09d0
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
Acked-by: Rajesh Bharathwaj <rajeshbharathwaj@codeaurora.org>
2017-08-11 08:35:09 -07:00
Joonwoo Park
1aac7c27a1 arm64: io.h: fix write{w,q}_relaxed_no_log() macro
Fix write{w,q}_relaxed_no_log() macro's incorrect type casting.

CRs-fixed: 728799
Change-Id: Ic4aa418d20a293d300688cc91b3998d762f023ad
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2017-08-11 02:28:53 -07:00
Govind Singh
2e035860df ath10k: Enable pktlog for WCN3990 target
WCN3990 target uses new connect service for pktlog.
Add pktlog service request and support for pktlog
rx handling.

CRs-Fixed: 2038976
Change-Id: I6f7dbd8f8cbeadd0e53844154a9c360011e2c798
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Ashutosh Kumar <askuma@codeaurora.org>
2017-08-11 10:40:40 +05:30
Linux Build Service Account
623fc3cf14 Merge "power: qcom: smb-lib: optimize parallel current limiting with PD" 2017-08-10 21:36:38 -07:00
Linux Build Service Account
0cae764de2 Merge "ARM: dts: msm: Add fastrpc vmid flag for sdm660" 2017-08-10 21:36:37 -07:00
Linux Build Service Account
8ca20aea7e Merge "msm: adsprpc: Separate hyp_assign call for audio remote heap protection" 2017-08-10 21:36:36 -07:00
Linux Build Service Account
d73a32a9d1 Merge "Revert "ARM: dts: msm: enable ADV7535 on MSM8996Pro Auto CDP lite platform"" 2017-08-10 21:36:35 -07:00
Linux Build Service Account
ae773d7171 Merge "drm/msm: only set need cdm for INTF3" 2017-08-10 21:36:35 -07:00
Linux Build Service Account
1f01c0ba90 Merge "msm: camera: Avoid deadlock for vb2 operations using separate lock" 2017-08-10 21:36:34 -07:00
Linux Build Service Account
75f68f1cdb Merge "power: qpnp-fg-gen3: adjust recharge voltage during soft JEITA charge done" 2017-08-10 21:36:32 -07:00
Abhinav Kumar
86d73ba300 drm/msm: update HDMI AVI infoframe during HDR playback
Add support to update the HDMI AVI infoframe to use
BT2020 encoding during HDR video playback.

This is required as per the spec to ensure that the
AVI infoframe correctly indicates the content being
shown.

Also make sure to change and restore the YCC
quantization bits in case of override.

Change-Id: Iadacc2fac6252b5f5cbfcc39a122118f738d3113
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-10 17:41:03 -07:00
Abhinav Kumar
5920f5fe3c drm/msm: update CSC matrix during HDR playback
The CSC matrix used in the CDM block should be
updated to BT2020 format from the default value
during HDR video playback.

Add support in the SDE driver to enable switching
CSC matrix of CDM block to BT2020 during start of
HDR playback and restore it at the stop of the
playback to the default CSC.

Change-Id: Ic589380188ddef8ada2c8bbc0ca945bb1f319c85
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-10 17:40:43 -07:00
Abhinav Kumar
5e05fc53d8 drn/msm/sde: add BT709, BT2020 CSC matrix definitions
Currently only BT601 CSC matrix is available for use
in the SDE driver.

Add BT709, BT2020 CSC matrix definitions to SDE driver.
These shall be used during different use-cases such as
HDR video playback by switching the CSC matrix based on the
use-case.

Change-Id: I70a543193d08217cbdb6c4af739b3777dde4a25d
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-10 17:40:21 -07:00
Abhinav Kumar
7c79cabfdf drm/msm: change CSC matrix selection logic for CDM block
CDM block is always using a limited quantization range
matrix.

This can be overridden to use a full range matrix if
the sink supports override capability or the mode is a
non-CEA mode.

Adjust the matrix selection logic to accommodate these
conditions.

Change-Id: I708412a923fb0d47e798f35ebe14b4c2f1a72fc9
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-10 17:39:57 -07:00
Nicholas Troast
73cfa3e3ef power: qpnp-smb2: expose CHARGE_COUNTER prop via batt psy
CHARGE_COUNTER is a required battery power supply property. Add it.

Change-Id: Ieb9c64447f88213479ce14b738f71fa703ffc194
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-08-10 15:44:56 -07:00
Nicholas Troast
2cc64cac04 power: qpnp-smb2: use correct properties
CURRENT_MAX and VOLTAGE_MAX should be used to show the current values
for the charger. The driver currently uses them to communicate with
the USB and PD drivers.

Update the code such that USB uses SDP_CURRENT_MAX to set 500mA/900mA
current limits after enumeration and PD uses PD_VOLTAGE_MIN/MAX to set
the adapter voltage limits.

CURRENT_MAX now shows the max current that can be drawn from the charger
and VOLTAGE_MAX shows the max voltage that the charger can negotiate up
to.

CURRENT_MAX and VOLTAGE_MAX can no longer be set.

Change-Id: I660e39effc1862051cff8b9babc885d8de3f9c84
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-08-10 15:44:47 -07:00
Nicholas Troast
dcdf2ac6c1 power_supply: add properties for SDP current and PD voltage
SDP_CURRENT_MAX is used to communicate the maximum current negotiated by
the USB phy. PD_VOLTAGE_MAX is used to communicate the maximum voltage
negotiated by the PD phy. PD_VOLTAGE_MIN is used to communicate the
minimum voltage negotiated by the PD phy.

Change-Id: I8332f7072c99c2c4e009607d92ccfb47534cc23b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-08-10 15:42:12 -07:00
Skylar Chang
a34763e5b3 msm: gsi: check channel state on timeout
In some cases of stopping a channel,
the CH CTRL interrupt arrives late even though the channel is
already stopped. This change will check the channel state after
timeout occurs.

CRs-Fixed: 2090459
Change-Id: I4b99e8fb6710dca16047025a614fb734995934a1
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-08-10 11:05:12 -07:00
Guchun Chen
ea3c1f1db1 Revert "ARM: dts: msm: enable ADV7535 on MSM8996Pro Auto CDP lite platform"
This reverts commit 9ec3ce38d7.

This change brings one NULL pointer in display kernel booting, which
will bring crash on msm8996 lite board. So revert this commit temporarily.

Change-Id: I7e11b78b47f0e2f2f5cc05a0220f1ff7f3a1addd
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
2017-08-10 17:52:01 +08:00
Tharun Kumar Merugu
46756eb931 ARM: dts: msm: Add fastrpc vmid flag for sdm660
Add a device specific flag for new vmid heap shared feature.

Change-Id: I9be679f9edd0048acbb057ceff4d877c630e4258
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-08-10 02:23:19 -07:00
Tharun Kumar Merugu
dc979af523 msm: adsprpc: Separate hyp_assign call for audio remote heap protection
Enable audio remote heap protection for separate hyp_assign call to map
HLOS buffer to ADSP_Q6_ELF VM.

Change-Id: I91a70cb8ef2c2feb2d4c398c15c220c78c96a509
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-08-10 02:21:58 -07:00
Ziqi Chen
44530217e8 usb: dwc3: msm: clear resource on dwc3_msm_probe defer
In dwc3_msm_probe, when need to defer probe, driver should clear
resource has been allocated and de-attach the children device.
of_platform_depopulate is the complement of of_platform_populate to
remove devices created here. And driver also needs to destroy
workqueue in error case.

Change-Id: I234198eba45842f86c736dd459096ebc4fced807
Signed-off-by: Ziqi Chen <ziqic@codeaurora.org>
2017-08-09 20:23:50 -07:00
Linux Build Service Account
39b5f76de0 Merge "msm: kgsl: Correctly update fence_name for larger timestamp" 2017-08-09 14:17:14 -07:00
Linux Build Service Account
25918b144a Merge "cnss2: Disable BDF bypass by default" 2017-08-09 14:17:13 -07:00
Yue Ma
c876f88cef cnss2: Enhance debugfs support for device boot
Add the debugfs support for full power on sequence to boot device,
full power off sequence to shutdown device, PCIe link up/down and
powering off device only. It can help to debug device boot issues
without WLAN host driver.

Change-Id: Ie1e65719eff0918cf64d1f0926ec36cad1c869e6
CRs-fixed: 2059087
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-08-09 13:32:10 -07:00
Yuan Zhao
13af4ecf92 drm/msm: only set need cdm for INTF3
Only HDMI INTF3 should need cdm block, other
INTFs do not need cdm.

Change-Id: Iff355dae456ed432efd84dff72ec85b83dbb93f2
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
2017-08-09 08:17:07 -07:00
Linux Build Service Account
bb7cc76a8f Merge "qpnp-smb2: enable/disable sw jeita using a property" 2017-08-09 03:18:21 -07:00
Linux Build Service Account
772f98746e Merge "power: power_supply: add property for sw based JEITA" 2017-08-09 03:18:21 -07:00
Linux Build Service Account
ea1901ceaf Merge "ASoC: msm: qdspv2: Fix missing mutex unlock in LSM client driver" 2017-08-09 03:18:20 -07:00