Commit graph

575751 commits

Author SHA1 Message Date
Ajay Singh Parmar
d82b3f3565 msm: mdss: displayport: fix link training 2 for dp dongles
Fix the link training sequence so that dp dongle or sink
can be correctly programmed with link pattern and drive
settings.

Change-Id: I71139c504d9031839ff3c14cdd8cd6fdd885719d
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-10-07 11:14:16 -07:00
Chandan Uddaraju
76f4f7c532 mdss: DisplayPort: add support for multiple resolutions
Add table to store transfer unit settings for different
resolutions. The table is used for mapping the resolution
with the lane count and Display-port link rate.

Change-Id: I93cc489cdbde21680f8c05311be60ecba053c1db
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-10-07 11:10:18 -07:00
Ajay Singh Parmar
36d28227a5 msm: mdss: edid: limit resolutions support based on interface
Limit the resolutions provided by sink to the ones supported
by the interface so that user modules do not receive the resolutions
which are not supported by the interface.

Change-Id: I63657f139cd7b058d211c306fb596ac5d80f2495
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-10-07 10:39:17 -07:00
Chandan Uddaraju
92618b15ee mdss: DisplayPort: update link-training settings and do DP reset
Add new settings for link-training parameters. Add
code in DP OFF to set the DP state to IDLE mode.

Add support for DP global reset before
initializing DP controller.

Change-Id: Ica893a9b56ae51b12f5d4a192b995aa966dc934e
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-10-07 10:39:17 -07:00
Chandan Uddaraju
a1b989e015 mdss: DisplayPort: add support for color depth and fix workqueue delay
Add changes to have default settings for color depth and
output format in DP controller.

Currently, the workqueue used to handle different events
in controller driver has very high delay in handling events.
Fix this.

Change-Id: I30fc7cb3c57844244ff88167a9b17b32a2fd3a12
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-10-07 10:39:16 -07:00
Chandan Uddaraju
2f59726ce7 clk: msm: mdss: use lane count and orientation to configure DP PHY
Use the information about lane count and orientation
provided in the spare MDP registers by the DP controller
driver to configure the PLL lock sequence.

Change-Id: I1d8465087be91f0a35d83a752a6c09ce27100208
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-10-07 10:38:57 -07:00
Chandan Uddaraju
c9334f3d33 mdss: display-port: add support to share lanes and orientation to DP Phy
The DisplayPort PHY driver needs information about the number
of lanes and the plug orientation to do additional settings.
Add code to support this.

Change-Id: Iafb890596283320dbcb2b4e2e0d83cabfdfcd18e
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-10-07 10:32:47 -07:00
Tatenda Chipeperekwa
0cfcf4427c msm: mdss: dp: fix audio teardown sequence
First update the audio switch node to indicate that the cable was
disconnected. Wait for the audio codec to indicate that the teardown
of the audio path has been completed, timing out after three
seconds. This ensures that the audio framework will start and end
the audio teardown while the interface VSync is still running,
ensuring a graceful shutdown of the audio path.

CRs-Fixed: 1074218
Change-Id: Ia9c792613e5cd9ac273185c6b2f4b30b5df67496
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-10-07 10:32:18 -07:00
Linux Build Service Account
3c7400dc73 Merge "diag: dci: Fix possible out of bound access" 2016-10-07 01:17:34 -07:00
Linux Build Service Account
36e5723b82 Merge "ASoC: msm: qdsp6v2: support for configurable bit format for AFE encoder" 2016-10-07 01:17:33 -07:00
Linux Build Service Account
73f22baf35 Merge "clk: qcom: clk-rcg2: Declare the rcg struct in clk_gfx3d_src_determine_rate" 2016-10-07 01:17:32 -07:00
Manoj Prabhu B
702e512b92 diag: dci: Fix possible out of bound access
This patch fixes the possible out of bound access by accessing
only dci supported peripheral feature.

Bug: 31864832
CRs-Fixed: 1074901
Change-Id: I99b7feb4b9af8480912a0a3b3e9834f0ecd92189
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2016-10-06 21:33:47 -07:00
Linux Build Service Account
b1dbfd04c7 Merge "regulator: cprh-kbss-regulator: add CPR aging adjustment support" 2016-10-06 19:45:57 -07:00
Linux Build Service Account
787b63ec55 Merge "regulator: cpr3-regulator: add support for CPRh aging adjustment" 2016-10-06 19:45:57 -07:00
Linux Build Service Account
813c4b3c46 Merge "clk: msm: mdss: update PLL configuration to clear precalibrated values" 2016-10-06 19:45:56 -07:00
Linux Build Service Account
f827f291f0 Merge "usb: gadget: f_mtp: Handle mtp os desc properly" 2016-10-06 19:45:55 -07:00
Linux Build Service Account
55eaab8b21 Merge "clk: msm: clock-osm: Use read back instead of memory barrier on MSMCOBALT" 2016-10-06 19:45:54 -07:00
Linux Build Service Account
4d08e69b3c Merge "defconfig: msm: enable display related configs for 32-bit msmfalcon" 2016-10-06 19:45:53 -07:00
Linux Build Service Account
0f6638bbe4 Merge "dwc3-msm: Acquire lock for USB GSI endpoint related operations" 2016-10-06 19:45:51 -07:00
Linux Build Service Account
203cf98893 Merge "usb: gadget: f_gsi: Enable auto detect RNDIS device on windows OS" 2016-10-06 19:45:51 -07:00
Linux Build Service Account
9a87b7449d Merge "sched/tune: add sysctl interface to define a boost value" 2016-10-06 19:45:49 -07:00
Linux Build Service Account
da994453a2 Merge "ARM: dts: msm: Add a dtsi file for msmcobalt QRD device" 2016-10-06 19:45:49 -07:00
Linux Build Service Account
58f6531c5b Merge "thermal: lmh_lite: Page align all the buffers to TZ" 2016-10-06 19:45:48 -07:00
Linux Build Service Account
b02e3335dd Merge "ASoC: msmcobalt: Update machine driver to support 32 bit format" 2016-10-06 19:45:47 -07:00
Linux Build Service Account
e0f034f4c0 Merge "ASoc: msm: Enable support for 32 bit format and 384Khz" 2016-10-06 19:45:46 -07:00
Linux Build Service Account
6a97dc2b55 Merge "ASoC: msm: qdsp6v2: add support for latest version of media format command" 2016-10-06 19:45:46 -07:00
Linux Build Service Account
32993a9f74 Merge "msm: kgsl: Disable workaround on A540v2" 2016-10-06 19:45:45 -07:00
Linux Build Service Account
7108049392 Merge "msm: kgsl: Add A540v2 to adreno gpulist" 2016-10-06 19:45:44 -07:00
Linux Build Service Account
e25f9bc935 Merge "drivers: soc: qcom: system_stats: Use arch_counter_get_cntvct()" 2016-10-06 19:45:44 -07:00
Linux Build Service Account
aba0b2846d Merge "icnss: Remove unused suspend/resume functions" 2016-10-06 19:45:43 -07:00
Linux Build Service Account
ff565b4410 Merge "cpuidle: lpm-levels: Consider history during LPM selection" 2016-10-06 19:45:41 -07:00
Linux Build Service Account
516ef30ee6 Merge "ARM: dts: msm: Specify the temperature sensor name for msmcobalt" 2016-10-06 19:45:40 -07:00
Linux Build Service Account
bc52b72052 Merge "msm: kgsl: Add and link gpu sysfs nodes" 2016-10-06 19:45:40 -07:00
Linux Build Service Account
8833b3623b Merge "ARM: dts: msm: Correct csiphy clocks and clock rates on msmcobalt" 2016-10-06 19:45:39 -07:00
Linux Build Service Account
772c3bf05d Merge "ARM: dts: msm: Enable partial update for JDI panel for msmcobalt" 2016-10-06 19:45:38 -07:00
Linux Build Service Account
6c1f1861b7 Merge "msm: sensor: Avoid potential stack overflow" 2016-10-06 19:45:37 -07:00
Linux Build Service Account
5bca027a17 Merge "msm: vidc: Add support for TP10 color format" 2016-10-06 19:45:37 -07:00
Deepak Katragadda
2fc007196f clk: qcom: clk-rcg2: Declare the rcg struct in clk_gfx3d_src_determine_rate
Declare the rcg structure before referencing it in the
function.

Change-Id: Ife9fdabf20b242a93635532b9a0c4cacc8b88210
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-10-06 17:10:44 -07:00
Sandeep Panda
8a27dbc430 clk: msm: mdss: update PLL configuration to clear precalibrated values
Before going for full PLL enable sequence, we need to clear out the
override bit and precalibrated values of VCO_TUNE and KVCO_CODE, as
these registers might be storing values for old VCO rate. This will
cause the DSI PLL to be in a bad state and hence PLL unlock errors
might occur during use case like resolution switch. So always clear
the precalibrated values first in PLL configuration sequence.

Change-Id: I407920d63b4600b610794141e5b7ceb5a33980c1
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2016-10-06 16:02:21 -07:00
Hemant Kumar
79cd395434 usb: gadget: f_mtp: Handle mtp os desc properly
Currently mtp function driver is skipping function
setup call back by not populating function pointer
in function instance. Also, is_ptp flag is set
incorrectly as true for mtp instance which would
pass wrong os descriptor for mtp and ptp instance.
Allow mtp driver to send os descriptor by populating
function pointer in function instance and correctly
set the is_ptp flag to pass valid os descriptors.

Change-Id: Iec05a2f9309aba7d9ff81eca4ce683eff1590699
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-10-06 14:04:53 -07:00
Srinivas Rao L
09372fb316 cpuidle: lpm-levels: Consider history during LPM selection
Consider recent history (residencies) of the low power modes per
core while the next low power mode to enter is selected. If most
of the history says the pattern of residencies is repeating with
minimal deviation then use the average of these for predicting
the next mode to enter.

If the pattern is not repeating then if more than 50 percent of
the samples out of history have exited a low power mode earlier
than the minumim residency of that mode, restrict it and also low
power modes deeper than that.

In any of the above case, trigger a hrtimer to wakeup cpu with
timeout as predicted+delta or max residency of the mode selected
if a deeper state can be selected after waking up incase if
prediction goes wrong.

Change-Id: I902a06939e19ac51dfd8c2db6b727b203ebfda14
Signed-off-by: Srinivas Rao L <lsrao@codeaurora.org>
2016-10-06 14:49:34 -06:00
Linux Build Service Account
e9a7b48418 Merge "ARM: dts: msm: add a new panel driver for MSMCOBALT QRD SKUK board" 2016-10-06 12:26:19 -07:00
Linux Build Service Account
8667d85b72 Merge "msm: mdss: add sysfs node to disable panel" 2016-10-06 12:26:18 -07:00
Linux Build Service Account
d9c43f585e Merge "ion: use %pK instead of %p which respects kptr_restrict sysctl" 2016-10-06 12:26:17 -07:00
Linux Build Service Account
35b02c5e6a Merge "ASoC: soc: change audio drivers to use %pK" 2016-10-06 12:26:10 -07:00
Linux Build Service Account
aaedc17924 Merge "usb: pd: Return different errors in devm_usbpd_get_by_phandle()" 2016-10-06 12:26:09 -07:00
Linux Build Service Account
b62fac3210 Merge "msm: kgsl: Add facility to BUG_ON for a gpu fault" 2016-10-06 12:26:08 -07:00
Linux Build Service Account
2c11780bfa Merge "ion: ion_system_heap: SetPagePrivate when splitting secure pages" 2016-10-06 12:26:08 -07:00
Linux Build Service Account
b80c3a0a3a Merge "ASoC: msmcobalt: Add support for TDM" 2016-10-06 12:26:07 -07:00
Linux Build Service Account
a0e79f8e03 Merge "ASoC: wcd934x-dsp-cntl: add support for subsystem restart" 2016-10-06 12:26:02 -07:00