Commit Graph

176 Commits

Author SHA1 Message Date
qctecmdr
0ab21016ee Merge "disp: msm: sde: Add null pointer check for plane state" 2019-06-18 18:48:20 -07:00
qctecmdr
6232bdd503 Merge "disp: msm: sde: modify vig pipe linewidth" 2019-06-18 00:41:09 -07:00
Sankeerth Billakanti
31d659e7e7 disp: pll: changes to support lito dp clks
Changes to incorporate the different clock names for
lito and kona.

Change-Id: I607366f75426a819226aa252819b507dba07109d
Signed-off-by: Sankeerth Billakanti <sbillaka@codeaurora.org>
2019-06-16 19:18:59 -07:00
Prashant Singh
f434c0c38c disp: msm: sde: Add null pointer check for plane state
Add null check for plane state pointer before
dereferencing it.

Change-Id: Ic66efd11a70162ffe65c2137a5f19688314c45a5
Signed-off-by: Prashant Singh <prasin@codeaurora.org>
2019-06-14 11:18:10 +05:30
Lakshmi Narayana Kalavala
b69f691680 disp: msm: sde: enable reg write only for debug defconfig
Write to hardware registers should be exposed for only debug
purpose. Hence use CONFIG_DYNAMIC_DEBUG to restrict register
writes only for debug defconfig.

Change-Id: I0b67b46a69920f6620570ace9d4faf732076126d
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2019-06-13 14:53:17 -07:00
qctecmdr
13a11e75b0 Merge "disp: msm: sde: add snapshot of SDE from 4.14 to 4.19" 2019-06-13 11:29:00 -07:00
qctecmdr
c396d0bbc1 Merge "disp: msm: dp: force disconnect at simulation mode off" 2019-06-13 00:19:10 -07:00
Jayaprakash
5dff7b8301 disp: msm: sde: modify vig pipe linewidth
As per hardware recommendation, DMA pipe
width is reduced to 2880, while vig
pipewidth is 4096.

Change-Id: I70dbd44b4883f49879686003ba1fe9694434daab
Signed-off-by: Jayaprakash <jmadiset@codeaurora.org>
2019-06-13 12:15:14 +05:30
qctecmdr
93ce60cb80 Merge "disp: msm: update clk and cmd state switch sequence" 2019-06-12 19:34:53 -07:00
qctecmdr
397b8234e2 Merge "disp: msm: dp: report HDR10+ parameters with other HDR properties" 2019-06-12 15:30:26 -07:00
Dhaval Patel
e05daba83d disp: msm: update clk and cmd state switch sequence
Disable double buffer vsync configuration while
enabling clk and cmd state switch sequence. Leaving
this configuration in enable state may cause different
issues for different state switch. Clock state switch
may see a vsync delay for solver disable. Command
state switch may not update the vsync source.

Change-Id: I910fc7e33a20a04b602435020173d85a4ee926d1
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2019-06-12 10:39:39 -07:00
Tatenda Chipeperekwa
d1fb3ace28 disp: msm: dp: force disconnect at simulation mode off
Force a disconnect if the simulation client disables simulation
before disconnecting from the simulated sink. This ensures that
the driver will not erroneously attempt AUX transactions in
subsequent interactions after simulation is disabled.

Change-Id: Ibc581deafe46753c514bccc70ba5c953c8d49bd8
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2019-06-11 11:36:49 -07:00
qctecmdr
ba12b2cd36 Merge "disp: msm: sde: update ubwc constant color feature" 2019-06-10 19:55:02 -07:00
Steve Cohen
e8e0c91207 disp: msm: dp: report HDR10+ parameters with other HDR properties
Report the HDR10+ sink capability and payload data when user-space
reads the "hdr" debugfs node. Also add support for reporting HDR
properties for MST sessions via the new "hdr_mst" debugfs node.
Write support for this node was removed since it updated the
connector state in an inconsistent way, therefore HDR updates must
come from the atomic commit.

Change-Id: I58af4042c1b3198eb78fe413728104071cf50caf
Signed-off-by: Steve Cohen <cohens@codeaurora.org>
2019-06-10 12:08:01 -04:00
qctecmdr
a8974603d1 Merge "disp: msm: fix rscc branch offset for lito" 2019-06-10 08:51:30 -07:00
Animesh Kishore
c559230464 disp: msm: fix rscc branch offset for lito
Branch address offset for TCS sleep/wake has
changed for lito, add changes to support it.

Change-Id: Id938c4c85df17f6709b9533ff737cf5a0186bc09
Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
2019-06-10 16:43:40 +05:30
qctecmdr
32548d1507 Merge "disp: msm: sde: fix rm/kms for handling all cont-splash cases" 2019-06-08 19:19:55 -07:00
qctecmdr
48b38ad05d Merge "disp: msm: allow DMS before cont-splash handoff" 2019-06-08 17:49:59 -07:00
qctecmdr
e006340c17 Merge "disp: msm: sde: Add additional property for queuing LTM buffer" 2019-06-08 07:22:00 -07:00
qctecmdr
c59a9e5701 Merge "disp: msm: sde: add proper null checks" 2019-06-08 04:21:22 -07:00
qctecmdr
f65de277fb Merge "disp: msm: sde: delay backlight update until the first commit" 2019-06-08 00:51:34 -07:00
qctecmdr
35c254dd81 Merge "disp: msm: sde: Update gamut non-uniform support" 2019-06-07 21:21:10 -07:00
gopikrishnaiah Anand
e62d075693 disp: msm: sde: Update gamut non-uniform support
New version of the gamut block has been introduced with changes to
the scale/offset programming. Change updates the minor version for
the feature.

Change-Id: I62597a9d229e13e10e0ac0f1183b2db2b0b2a575
2019-06-07 11:17:10 -07:00
Samantha Tran
005b2d46d0 disp: msm: sde: add proper null checks
This change adds proper null checks after using
kcalloc and returns early to avoid accessing null ptr.

Change-Id: I948ad37eb120e00c5f6e3ae2e3b967819cbd233b
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2019-06-05 16:32:47 -07:00
Samantha Tran
d009254fda disp: msm: sde: add snapshot of SDE from 4.14 to 4.19
This change takes a snapshot from 4.14 to 4.19 as of
commit 47d149c31967 ("drm/msm/sde: Add null pointer
sanity checks").

Change-Id: Ib40428c562c3561c8a20d9849f16d13151496005
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2019-06-05 13:18:21 -07:00
qctecmdr
9d87e36a77 Merge "disp: msm: add changes missing during snapshots" 2019-06-04 23:42:23 -07:00
qctecmdr
90ae258727 Merge "disp: msm: dp: add 1.4a cts support for link training" 2019-06-04 10:22:59 -07:00
qctecmdr
eddbcba8a5 Merge "disp: msm: dp: link training enhancements" 2019-06-04 07:37:12 -07:00
qctecmdr
371ccc78c2 Merge "disp: msm: sde: fix encoder parsing in atomic_check phase" 2019-06-04 06:15:13 -07:00
qctecmdr
a384fb7f72 Merge "disp: msm: sde: Fix open method in sde_reg_fops and sde_off_fops" 2019-06-04 04:36:48 -07:00
qctecmdr
5a495e6138 Merge "disp: msm: sde: use local_clock in sde event log" 2019-06-04 01:03:19 -07:00
qctecmdr
bd0467d1d5 Merge "disp: msm: sde: remove vblank cache logic" 2019-06-03 23:21:29 -07:00
qctecmdr
0b1886cb06 Merge "disp: msm: sde: turn off/on vblank callbacks as per crtc" 2019-06-03 21:51:47 -07:00
qctecmdr
e162550a2c Merge "disp: msm: sde: avoid wb done wait for cwb in wait_for_commit" 2019-06-03 20:22:04 -07:00
qctecmdr
b4add676a4 Merge "disp: correct secure id to hold vaddr" 2019-06-03 16:52:32 -07:00
Veera Sundaram Sankaran
89511222a6 disp: msm: sde: fix encoder parsing in atomic_check phase
During atomic_check phase the encoder_mask is taken
from old crtc->state leading to wrong validation.
Fix it by taking the encoder_mask from new crtc state.

Change-Id: Ifcfc4bee887168d8208ffdafb1cf5ea4c4473796
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2019-06-03 15:46:36 -07:00
qctecmdr
04e4ba8741 Merge "disp: msm: sde: avoid multiple frame-done encoder events" 2019-06-03 14:35:11 -07:00
Dhaval Patel
df2fbca4b8 disp: msm: sde: avoid wb done wait for cwb in wait_for_commit
Existing cwb implementation waits for WB done interrupt in
wait_for_commit_done API call. This serializes the cwb commit
and causes frame trigger delay on primary display. MDSS hw allows
to trigger the cwb frame when previous frame is in-progress. This
change updates driver to allow parallel frame trigger for cwb
enabled display. It releases frame N cwb output buffer in frame
N+1 wait_for_commit done call.

Change-Id: Id4f2a0cc78a3f24a1b5ce96dc907780246768dbf
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
2019-06-03 10:04:19 -07:00
Samantha Tran
1ab07a4d7c disp: msm: add changes missing during snapshots
This change ports the missing changes from 4.14 to 4.19
that were missed. It includes changes up until
commit 0f8fb25421ff ("cnss2: Add device version to
SOC info structure").

Change-Id: Idfdfe891f146e389e3c65cc3fc4c98d93220e789
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2019-06-03 09:07:38 -07:00
Ajay Singh Parmar
aa11061eed disp: msm: dp: add 1.4a cts support for link training
Add support for new requirements in 1.4a CTS which need
to try link training 1 on different lane counts and link
rates.

CRs-Fixed: 2458753
Change-Id: I2039822f420a73232df7293afcddd7bee263c7b4
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2019-06-02 19:02:18 -07:00
Ajay Singh Parmar
91b9fb1222 disp: msm: dp: link training enhancements
Update the link training process along with the AUX
communications during link training as per hardware
recommendations.

Update the pre-emphasis and swing values for active
lanes only instead of all lanes.

During link training, update pre-emphasis and swing
values in hardware first and then update sink.

CRs-Fixed: 2458753
Change-Id: Ie05c9d6508b0c564b194032ae4ebb1bc5550e7b8
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2019-06-02 19:01:21 -07:00
qctecmdr
2eeed8c7ff Merge "disp: msm: dp: update swing and pre-emp with new hardware settings" 2019-06-01 03:51:15 -07:00
qctecmdr
b84d2c5ad0 Merge "disp: msm: sde: dynamic lm reservation for secondary disp" 2019-05-31 16:20:33 -07:00
Veera Sundaram Sankaran
8b8fbfbeef disp: msm: sde: fix rm/kms for handling all cont-splash cases
Fix resource and splash buffer handling in resource manager
and sde_kms to support continuous splash to be enabled/disabled
independently in multiple built-in display usecase.

Change-Id: I446ea9b08a794e2b053c37f55b31e51404bbcf71
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2019-05-31 15:58:40 -07:00
Lakshmi Narayana Kalavala
a4570ec11b disp: msm: sde: Fix open method in sde_reg_fops and sde_off_fops
The open method for the debug fops are supposed to extract
the appropriate register base for the corresponding
hardware blocks, which are later used for the register
read and writes for the associated hardware block. But
the current open method being used points to some random
register base which can lead to fatal issues when performed
reads and writes to registers. Hence implemented a new
open method to extract the appropriate register base of the
various mdp hardware blocks. This patch also fixes
the valid sub range check against the corresponding
hardware blocks instead of checking across all the hardware
blocks.

Change-Id: I2a08fae74b3cbd31f2931c3b89b7308feb4b84e8
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2019-05-31 14:47:35 -07:00
qctecmdr
f0d4d74c9e Merge "disp: msm: dp: add support for lane count reduction" 2019-05-31 13:21:07 -07:00
Jayaprakash
3b2d537a71 disp: msm: sde: update ubwc constant color feature
Disable ubwc constant color feature only when inline
rotation is enabled regardless of color format.

Change-Id: I8d1e73bf955d9796823947cc8b5fbc2a176b91d3
Signed-off-by: Jayaprakash <jmadiset@codeaurora.org>
2019-05-31 17:33:24 +05:30
Lakshmi Narayana Kalavala
70486d209c 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: I78ceee331cba2d691f68fd649bd5cf33f7868e72
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2019-05-30 16:22:59 -07:00
Lakshmi Narayana Kalavala
5fd0d8d44b disp: msm: sde: use local_clock in sde event log
The display driver uses ktime_to_us to timestamp the messages
in the sde event log. But the kernel logs use local_clock to
timestamp the messages. Using same timestamp routine in sde event
log helps to correlate the messages from both the logs
for debug purpose.

Change-Id: Id94e03ba21f82e2162e4ef4290c10d2d09110d4c
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2019-05-30 16:17:48 -07:00
Lakshmi Narayana Kalavala
9e17babe6a 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: I52b74f685107f4dc8c83305c28f23cdcb4747730
Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2019-05-30 16:13:09 -07:00