Commit graph

580018 commits

Author SHA1 Message Date
Aravind Venkateswaran
1c8ee2be72 msm: mdss: dp: add support for downstream device power management
Implement the necessary programming sequence to configure the
uPacket RX of a connected downstream device in power save mode.
Add a new sysfs node to trigger the configuration as follows:

To enter power save mode:
   * echo 1 > /sys/class/graphics/<fbi>/psm

To exit power save mode:
   * echo 0 > /sys/class/graphics/<fbi>/psm

where fbi is the framebuffer node corresponding to the display
port device.

CRs-Fixed: 1076516
Change-Id: I306ff4451d56dfa7edcff93fe26842ae9af71b69
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-12-21 23:23:40 -08:00
Ajay Singh Parmar
c1f984bb57 msm: mdss: hdcp_1x: fix cp_irq and bstatus read
Check if cp_irq has been raised by sink, if so, read bstatus
register to check the status of hdcp at sink side. Clear the
cp_irq after reading bstatus. Also, fix the bstatus read size
which is one byte.

Change-Id: I46231f82878f8d2557aa06ccfa5c74f67252c6f8
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-12-21 19:46:55 -08:00
Ajay Singh Parmar
bd5d2212f7 msm: mdss: dp: update pre-emphasis and voltage swing settings
Update the PHY/PLL setting related to pre-emphasis and voltage
swing as per hardware recommendations.

Change-Id: I3bbd7c8de541e22da30205d93a98d48f82288865
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-12-21 17:35:58 -08:00
Ajay Singh Parmar
0261d58543 msm: mdss: dp: edid: read all extension blocks
A sink can have more than one EDID blocks. The extension
block count is provided in the first block. Not reading
all blocks can result in DP compliance failures.
Read all the extension blocks as mentioned in the first
block to avoid any EDID related compliance failures.

Change-Id: I9cfe6403da511e6af3b887fcf858109852e9844c
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-12-21 17:35:22 -08:00
Ajay Singh Parmar
03a1feb1b6 msm: mdss: dp: fix cable connection from boot-up
Wait for the user modules to come up during boot up before
sending events. In case user modules are not yet up,
events sent to them are ignored. If the cable is connected
at boot up, wait for user modules to enable hpd (Hot Plug
Detect). On receiving hpd, check if the cable is already
connected, if so, notify user modules so that power on sequence
can be initialized.

Change-Id: I91242fbfd32a478324b98edba4349081d9e55601
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-12-21 17:35:00 -08:00
Ajay Singh Parmar
1add967d01 msm: mdss: dp: update aux i2c programming
Update the I2C configuration for AUX communication
as per hardware recommendations.

Change-Id: If5550b66660aab692f9a358b50e0d1fb157b1d58
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-12-21 17:34:37 -08:00
Ajay Singh Parmar
2d1a2c9040 msm: mdss: dp: initialize host after configuration
Initialize the DisplayPort's host controller once the usbpd
configuration has been done. Do not wait for HPD high as some
DP sinks may not issue HPD high unless the host is initialized.
This avoids a deadlock between sink and source where source is
waiting for HPD high and sink is waiting for the DP host.

Change-Id: I1cdcb3556779d00fd2b4ecd264fa6b187bf4e317
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-12-21 17:33:57 -08:00
Aravind Venkateswaran
5f41a670d1 msm: mdss: dp: fix handling of link training mutex
Remove the additional unbalanced unlock being called for the
link training mutex. This fixes random crashes seen while
running Display Port connection/disconnection tests.

Change-Id: I2fce80cec72e3bd8b1561fd46fa1a1520cddd294
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-12-21 16:25:46 -08:00
Aravind Venkateswaran
c23be78397 msm: mdss: dp: fix calculation of link rate
If the calculated link rate based on sink's capabilities exceeds
the maximum supported link rate, do not error out. Instead, cap
the link rate at the maximum supported rate. This fixes instability
issues seen when connecting to sinks at 4K resolution.

Change-Id: I214bb19385f855af61da628fdf1cf7efc5dd08d6
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-12-21 16:25:37 -08:00
Tatenda Chipeperekwa
c76f7c2f3f msm: mdss: dp: add support for PHY compliance tests
Add support for PHY compliance tests by parsing requests
from the reference sink and generating the requested
PHY test patterns from DP PHY.

CRs-Fixed: 1076516
Change-Id: I290ec786bbe5c45873265ea74290eefcd3d16cb1
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-12-21 16:25:28 -08:00
Linux Build Service Account
83134d5df1 Merge "thermal: tsens: Update critical interrupt functionality for Tsens" 2016-12-21 07:30:37 -08:00
Linux Build Service Account
b7e53064a6 Merge "regulator: cpr3: support LDO handling for different LDO types" 2016-12-21 07:30:36 -08:00
Linux Build Service Account
a204fcac9f Merge "diag: Change to GFP_KERNEL in diagfwd_buffers_init()" 2016-12-21 07:30:35 -08:00
Linux Build Service Account
b36f945be4 Merge "icnss: Remove hardware reset sequence" 2016-12-21 07:30:34 -08:00
Linux Build Service Account
9ab58266e1 Merge "ARM: dts: msm: remove turing-cti node from msmtriton" 2016-12-21 07:30:30 -08:00
Linux Build Service Account
ccc6501961 Merge "ARM: dts: msm: add jtag, hwevent and csr nodes for falcon" 2016-12-21 07:30:29 -08:00
Linux Build Service Account
0668391229 Merge "ARM: dts: msm: Add extcon node for QRD starlord track 3" 2016-12-21 07:30:28 -08:00
Linux Build Service Account
f3a71c4dd0 Merge "ARM: dts: msm: add bus vote for mmss smmu on msmfalcon" 2016-12-21 07:30:26 -08:00
Linux Build Service Account
bd15db7a9b Merge "ASoC: wcd-mbhc: check HPH PA status before impedance detection" 2016-12-21 07:30:25 -08:00
Linux Build Service Account
5b223d1dd3 Merge "ASoC: msm: fix ULL playback over a2dp" 2016-12-21 07:30:24 -08:00
Linux Build Service Account
6af6366bf2 Merge "sched/tune: remove duplicate allow_attach in schedtune_cgrp_subsys" 2016-12-21 07:30:24 -08:00
Linux Build Service Account
1c89f59efd Merge "qcom-charger: smb2: support for micro USB mode" 2016-12-21 07:30:23 -08:00
Linux Build Service Account
89bf1c6f82 Merge "clk: qcom: Add new voter clocks for camss clocks" 2016-12-21 07:30:21 -08:00
Linux Build Service Account
9bb2912be3 Merge "USB: gadget: u_data_ipa: Handle usb requests allocation/free correctly" 2016-12-21 07:30:20 -08:00
Linux Build Service Account
d69dbc634d Merge "ARM: dts: msm: Add support for clock debug for MSMfalcon/MSMtriton" 2016-12-21 07:30:19 -08:00
Linux Build Service Account
e4095dcdc4 Merge "ARM: dts: msm: Update regulator node for PIL for MSMFalcon/Triton" 2016-12-21 07:30:17 -08:00
Linux Build Service Account
100d528324 Merge "mmc: host: Use correct flag to support 64-bit DMA" 2016-12-21 07:30:16 -08:00
Linux Build Service Account
485fff3066 Merge "defconfig: enable compile audio for msmfalcon" 2016-12-21 07:30:15 -08:00
Linux Build Service Account
6f703f178b Merge "lowmemorykiller: fix an uninitialized variable usage" 2016-12-21 07:30:12 -08:00
Linux Build Service Account
b728b32df3 Merge "msm: mdss: fix handling of audio for DVI sinks" 2016-12-21 07:30:06 -08:00
Linux Build Service Account
8d9d44abdd Merge "mdss: mdp: unmap buffers before secure transition" 2016-12-21 07:30:05 -08:00
Linux Build Service Account
ffb54a86f3 Merge "clk: msm: mdss: Update DSI PLL configuration for msmcobalt" 2016-12-21 07:30:04 -08:00
Linux Build Service Account
9b7d23b9f9 Merge "msm: mdss: hdcp_1x: do not fail if no cp_irq for R0" 2016-12-21 07:30:02 -08:00
Linux Build Service Account
f5d6d71727 Merge "msm: mdss: Check for handoff pending before IOMMU min BW voting" 2016-12-21 07:30:01 -08:00
Linux Build Service Account
6a7da89b84 Merge "msm: sde: add compression ratio support to v4l2 rotator" 2016-12-21 07:30:00 -08:00
Linux Build Service Account
21fb3a4b62 Merge "msm: mdss: Fix scaler enable flag setting" 2016-12-21 07:29:59 -08:00
Linux Build Service Account
5ea7eae65b Merge "msm: mdss: avoid requesting ov_lock in esd thread" 2016-12-21 07:29:58 -08:00
Linux Build Service Account
81b1d8342f Merge "ARM: dts: msm: enable few features to single DSI sim cmd panel" 2016-12-21 07:29:57 -08:00
Linux Build Service Account
89936c94ec Merge "msm: sde: secure camera changes for v4l2 rotator" 2016-12-21 07:29:56 -08:00
Linux Build Service Account
1c2dbebda1 Merge "msm: sde: Disallow TP10 to P010 format conversion in rotator" 2016-12-21 07:29:55 -08:00
Linux Build Service Account
1b34c4c119 Merge "diag: Null pointer check to avoid kernel panic" 2016-12-21 07:29:39 -08:00
Amey Telawane
de04dbd97b ARM: dts: msm: add jtag, hwevent and csr nodes for falcon
Add etm save retore nodes which saves etm
values across power collapse. Hwevent is
used to collect hardware events.

Change-Id: I329aa4084c0983f066cdd06455c3d69e255a420c
CRs-fixed: 1056777
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
2016-12-21 16:15:44 +05:30
Yuanyuan Liu
1001f1277f icnss: Remove hardware reset sequence
Remove WLAN hardware reset sequence from ICNSS platform as it
will be taken care by WLAN FW.

CRs-Fixed: 1089686
Change-Id: I363ee028eeb360ef998fd90c1ff94bb09c4ac8b4
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2016-12-21 00:15:13 -08:00
Linux Build Service Account
e76c8c8e73 Merge "qcom-charger: Add ship mode support" 2016-12-20 23:45:23 -08:00
Linux Build Service Account
14e5892a7e Merge "power: power_supply: Add property for ship mode" 2016-12-20 23:45:22 -08:00
Linux Build Service Account
27e623187a Merge "ARM: dts: msm: Add initial device tree for APQ FALCON" 2016-12-20 23:45:20 -08:00
Linux Build Service Account
451146c26b Merge "ARM: dts: msm: Add msmfalcon device tree files for internal codec" 2016-12-20 23:45:20 -08:00
Linux Build Service Account
dba91385de Merge "sched: Avoid packing tasks with low sleep time" 2016-12-20 23:45:19 -08:00
Linux Build Service Account
7d4b9fcecb Merge "ARM: dts: msm: Add compute context banks for msmfalcon" 2016-12-20 23:45:18 -08:00
Linux Build Service Account
aa94ab5384 Merge "ARM: dts: msm: enable SSC based sensors for msmfalcon MTP/CDP" 2016-12-20 23:45:17 -08:00