Grafik Komit

70 Melakukan

Penulis SHA1 Pesan Tanggal
Veera Sundaram Sankaran
1e3d105dc0 disp: msm: sde: log pp-line count in event logs
Log ping-pong current line count during ctl-start
and rd-ptr interrupt. This will help in debugging
ping-pong timeout issues.

Change-Id: I58185330fe9e8a64f48d6da60c974b23a9e68b44
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2019-05-15 15:36:06 -07:00
qctecmdr
74f328561e Merge "drm/msm/dp: add extra 100ms sleep when MSTM_CTRL is not cleared" 2019-05-11 00:27:58 -07:00
qctecmdr
e8a6afa265 Merge "disp: msm: dp: add operation to free the mst port object" 2019-05-10 22:35:57 -07:00
qctecmdr
21e71b998a Merge "drm/msm/sde: Add global dither memory dump range" 2019-05-10 20:50:24 -07:00
qctecmdr
3cc8b0cd16 Merge "disp: snapshot of offline rotator" 2019-05-10 18:52:56 -07:00
Xiaowen Wu
162fff1195 drm/msm/dp: add extra 100ms sleep when MSTM_CTRL is not cleared
Add extra sleep between SST and MST mode if MSTM_CTRL is not cleared
at hpd to make sure dongle exit from previous MST state.

CRs-Fixed: 2411911
Change-Id: I5b1785c71a91df95167bf5083e9d752a275872a8
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
Signed-off-by: Fuad Hossain <fhossain@codeaurora.org>
2019-05-09 13:26:08 -04:00
Samantha Tran
d76c3a72ec disp: msm: dp: add operation to free the mst port object
Add a release operation to free the mst port object when
the object refcount becomes zero.

Change-Id: If628e6da7ccf90d334574ed0f627788fb0a1fa2f
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2019-05-08 08:47:44 -07:00
Jayaprakash
6fc9ddcc07 makefile: add LITO config support for display techpack
Add required changes to makefile and enable the configs
for LITO support.

Change-Id: If6da5a5c139220680b0892d0cc8d408a296f1635
Signed-off-by: Jayaprakash <jmadiset@codeaurora.org>
2019-05-07 23:35:59 -07:00
qctecmdr
d54b69e258 Merge "disp: msm: Add support for seamless panel operating mode switch" 2019-05-07 21:32:43 -07:00
qctecmdr
8b3b1d3f4d Merge "disp: msm: fix dsc parameters related to 10 bpc 10 bpp" 2019-05-06 22:50:17 -07:00
qctecmdr
e683dcbce3 Merge "disp: msm: Ensure clean slate when starting and stopping HDCP" 2019-05-06 21:06:29 -07:00
Lei Chen
21edecd3b1 disp: msm: Add support for seamless panel operating mode switch
DSI display may support video mode and command mode both and it may
support transition between these two modes.
This change adds seamless transition between these two modes for DSI
display by avoiding crtc enable/disable and panel power on/off
during modeset.

Change-Id: Id7ddaef7d1f0f7cc7d52283755bad53a246adec6
Signed-off-by: Lei Chen <chenlei@codeaurora.org>
2019-05-06 18:45:44 -07:00
Christopher Braga
7e9b80092b disp: msm: Ensure clean slate when starting and stopping HDCP
The DP HDCP layer fails to wait on and clear its internal thread
upon an HDCP stop or failure. This can result in use after free
failures if a read or write over aux channel operation is already
queued.

Update the DP HDCP layer to stop and wait on kthread completion
upon HDCP failures, and clear the kthread command queue before
resuming kthread execution. Additionally, ensure the SDE HDCP
worker thread correctly starts and stops execution upon HDCP
enablement and disablement respectively.

Change-Id: I4218d7935f89416b5e5d74afd8f5d22e031b9a38
Signed-off-by: Christopher Braga <cbraga@codeaurora.org>
2019-05-06 14:56:26 -04:00
qctecmdr
e6933ff2dc Merge "disp: msm: sde: remove vblank cache logic" 2019-05-05 21:21:19 -07:00
qctecmdr
8205140d9c Merge "disp: msm: sde: turn off/on vblank callbacks as per crtc" 2019-05-05 19:42:43 -07:00
qctecmdr
8c8fad0d91 Merge "disp: msm: dp: Update sink sync check to be disabled by default" 2019-05-03 11:36:05 -07:00
qctecmdr
f8090586ac Merge "disp: msm: dp: Avoid double authentication if first is still in progress" 2019-05-03 09:51:06 -07:00
qctecmdr
32c581ff56 Merge "disp: pll: fix divider clock flags for DSI PLL clocks" 2019-05-03 08:01:00 -07:00
qctecmdr
16282cc5e4 Merge "disp: msm: Check QSEECOM response only if message length is not 0" 2019-05-03 02:04:50 -07:00
qctecmdr
c0035372e5 Merge "disp: msm: dp: Prevent disconnect from stopping HDCP" 2019-05-03 02:04:49 -07:00
Veera Sundaram Sankaran
476f37c2bb disp: msm: fix dsc parameters related to 10 bpc 10 bpp
Fix few DSC parameters related to 10 bits-per-component
10 bits-per-pixel configuration according to HW programming
guide.

Change-Id: I3ceb1eb9b1247440ef68800e9b62e9ffb7ec5b57
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2019-05-01 17:13:58 -07:00
Aravind Venkateswaran
664040053b disp: pll: fix divider clock flags for DSI PLL clocks
The divider clocks in the DSI PLL are 1-based and can accept
a value of 0. Set the flags accordingly in the PLL driver.

CRs-Fixed: 2433864
Change-Id: I82361ae3e2119f9e1922153bd5aba6354e8c5442
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2019-05-01 12:53:51 -07:00
qctecmdr
4be499df4b Merge "disp: msm: sde: handle cont-splash & check only rm reserve" 2019-04-30 16:37:22 -07:00
Yuchao Ma
734a80305a drm/msm/sde: Add global dither memory dump range
The global dither memory range can not be accessed from outside.
So the patch fixs this issue through add global dither memory range
to valid range.

Change-Id: I3ab5b87ff1e62f7b19b48a137922d4e98a64040c
Signed-off-by: Yuchao Ma <yuchaom@codeaurora.org>
[cohens@codeaurora.org: resolved trivial merge conflict]
Signed-off-by: Steve Cohen <cohens@codeaurora.org>
2019-04-30 17:34:38 -04:00
Christopher Braga
6071b67ae7 disp: msm: Check QSEECOM response only if message length is not 0
The received message logic in the SDE HDCP layer reads the HDCP QSEECOM
response content regardless of the declared response length. Update
this logic to only use the response content if the response length
is non zero.

Change-Id: Ie39923302a5478e0dd39dd5ceaade70b2e4125a3
Signed-off-by: Christopher Braga <cbraga@codeaurora.org>
2019-04-29 17:30:04 -04:00
David Ng
e404155bfd makefile: remove make export <all variables> instances
Replace all kernel make export <all variables> instances with
export of specific variables.  Depending on existing build
environment, exporting all as environment variables and
interaction with existing environment variable expansions
can lead to undefined behavior.

Change-Id: Ia46600be605828f9e509d5ced5d3ad3f8c6cb140
Signed-off-by: David Ng <dave@codeaurora.org>
2019-04-29 13:25:09 -07:00
qctecmdr
366772ec9e Merge "disp: msm: dp: fix potential delay to start authentication" 2019-04-29 12:47:57 -07:00
qctecmdr
ea09882191 Merge "disp: msm: hdcp: force encryption for HDCP 1.3 compliance" 2019-04-29 12:20:16 -07:00
Nilaan Gunabalachandran
ce0fef975e disp: msm: sde: handle cont-splash & check only rm reserve
On the first commit, cont splash flag is still enabled on
encoder, but connector is not yet attached. When a check-only
rm reservation is made, it does not get released due to
cont-splash check. If cont-splash is enabled, rm should
not check for connector, but directly release rsvp_nxt.

Change-Id: I79be3c1bb20b74ce4a95786c90f3accfb587d7f2
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
2019-04-29 09:33:25 -07:00
qctecmdr
e90235e1b3 Merge "disp: msm: sde: get ctl scheduler status at each vsync" 2019-04-29 01:37:12 -07:00
qctecmdr
c4ae73b9b8 Merge "disp: msm: sde: update ds atomic check for pu and cwb" 2019-04-29 01:10:01 -07:00
qctecmdr
35df34f800 Merge "disp: msm: add runtime_pm ops support in drm driver" 2019-04-28 16:22:16 -07:00
qctecmdr
4b1742319e Merge "disp: msm: avoid vsync delay during seamless mode switch" 2019-04-28 11:37:29 -07:00
qctecmdr
352bd24eab Merge "disp: pll: fix flags for DSI and DP PLL clocks" 2019-04-28 11:10:00 -07:00
qctecmdr
c9bab0a220 Merge "disp: pll: remove recalculation of vco rate" 2019-04-28 10:45:59 -07:00
qctecmdr
ea8e0c2284 Merge "disp: msm: sde: set bounds on debugfs core perf input" 2019-04-28 10:23:19 -07:00
qctecmdr
857ba6ee21 Merge "disp: add shmbridge support in sde and rotator" 2019-04-28 09:56:08 -07:00
Lakshmi Narayana Kalavala
e6754ef40a disp: msm: sde: remove vblank cache logic
Userspace is not supposed to request vblank until crtc is enabled,
because drm framework rejects the request if crtc is not enabled.
Any vblank request prior to that need to be cached in the userspace.
Hence removing the cache logic from the downstream driver.

Change-Id: I5383e39075377e3e49b8d335598ddfa48ab54666
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2019-04-26 17:29:59 -07:00
Lakshmi Narayana Kalavala
16bfab7ddf disp: msm: sde: turn off/on vblank callbacks as per crtc
Current sde driver allows vblank enable and wait requests
even after crtc is disabled which would eventually lead to
enable of irq and timeouts in caller context. This change fixes
it by updating vblank callback status as 'on' during crtc enable
and shutdowns vblank callbacks before crtc disable is complete.

Change-Id: I9085103ced06e5fad51219f26bd8dd655fa36fea
Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2019-04-26 17:03:21 -07:00
Tatenda Chipeperekwa
d113b3292e disp: msm: dp: fix potential delay to start authentication
Start authentication as soon as the stream is successfully powered
on and before the audio notification is sent. This will avoid a
potential delay in starting authentication if the audio subsystem
does not respond to the audio notification.

Change-Id: I83e5746ff521cfe8641f6e2bffd1bed953329a69
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2019-04-25 19:43:31 -07:00
Tatenda Chipeperekwa
bd8fff4f9f disp: msm: hdcp: force encryption for HDCP 1.3 compliance
Force encryption for HDCP 1.3 compliance or HDMI use cases only
since DisplayPort supports dynamic encryption enable.

Change-Id: Ice0f462188e4cc96597a4779a6daca7877e36b6c
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2019-04-25 19:43:31 -07:00
Linux Build Service Account
ce8550b2e4 Merge "disp: msm: sde: update core clk rate during cont-splash" into display-kernel.lnx.4.19 2019-04-25 15:29:46 -07:00
Linux Build Service Account
8d754bda7d Merge "disp: msm: set smmu cb domain attached during probe" into display-kernel.lnx.4.19 2019-04-25 15:29:36 -07:00
Linux Build Service Account
ba2c016cea Merge "disp:msm:sde: ensure HDR properties are updated during HPD" into display-kernel.lnx.4.19 2019-04-25 15:29:35 -07:00
Lakshmi Narayana Kalavala
78560ee888 disp: msm: sde: update ds atomic check for pu and cwb
This change fixes the destination scaler atomic check
to support PU with CWB disable without an additional
frame in between. It also fixes the destination height
calculation.

Change-Id: I93ae8471d2db0b4e2574d18a873d4d4e180cbcbb
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2019-04-24 15:22:26 -07:00
Christopher Braga
78439dfaf7 disp: msm: dp: Update sink sync check to be disabled by default
The DP standard leaves ambiguity to if sink synchronization
will be set before auxiliary protocols such as HDCP are to begin.
Update the dp_display HDCP worker  to check sink sync only if
explicitly instructed to via the new debugfs node 'hdcp_wait_sink_sync'

Change-Id: I4f4d0b14096aa3dc498e47de557de14092d37a58
Signed-off-by: Christopher Braga <cbraga@codeaurora.org>
2019-04-24 17:42:15 -04:00
Christopher Braga
c24090b2c5 disp: msm: dp: Avoid double authentication if first is still in progress
In scenarios where two streams become active in a short time period, HDCP
authentication may incorrectly be kicked off twice. This occurs due to the
HDCP state machine not indicating when authentication is already in
progress.

Update the dp_dispay HDCP state machine to only transfer to the
authenticating state once authentication has begun.

Change-Id: I38211203afe5127b80353c02072032a56e518900
Signed-off-by: Christopher Braga <cbraga@codeaurora.org>
2019-04-24 17:42:14 -04:00
Christopher Braga
9b4453096a disp: msm: dp: Prevent disconnect from stopping HDCP
If a DP stream is disconnected when HDCP is not fully authenticated,
authentication may not continue for remaining streams. This occurs
due to the worker thread rescheduling itself on auth fail while
disconnect cancels any pending work.

Update disconnect logic to wait for HDCP authentication to complete
before stream de-registration, and reschedule the HDCP worker if HDCP
did not fully authenticate prior to disconnect.

Change-Id: I0f8934e4f34e4f5a8015587e852131795a3dad21
Signed-off-by: Christopher Braga <cbraga@codeaurora.org>
2019-04-24 17:42:13 -04:00
Christopher Braga
7893b22bd2 disp: msm: Account for in progress stream management
If stream registration is invoked while HDCP is still authenticating,
the new stream information may not get sent to the downstream repeater.

Check if stream management is already in progress during stream
registration, and queue another round of stream management if so.

Change-Id: I497e9a4da310870fe792293033f1fb0ce8fbee4c
Signed-off-by: Christopher Braga <cbraga@codeaurora.org>
2019-04-24 17:42:12 -04:00
Christopher Braga
a09ee5a065 disp: msm: update hdcp 2.2 stream management sequence
When HDCP stream management needs to be re-performed, the SDE_HDCP state
machine breaks down and reads or writes to the wrong DPCD HDCP offsets.
This results in an authentication failure, effectively allowing stream
management to succeed only on the first attempt.

Update the SDE_HDCP stream management logic to properly take its current
state into account in re-management scenarios. This will reduce the need
for full re-authentications upon content type updates.

Change-Id: Iebefbb060e49a7082b2d4c9efbed22a83a2a5ec5
Signed-off-by: Christopher Braga <cbraga@codeaurora.org>
2019-04-24 17:42:10 -04:00