Commit Graph

264 Commits

Author SHA1 Message Date
Satya Rama Aditya Pinapala
edef6ae040 disp: msm: dsi: snapshot of dsi from 4.14 to 4.19
This change is a snapshot of dsi files taken of 4.14
as of commit 764f7c2 (Merge remote-tracking branch
'quic/dev/msm-4.14-display' into msm-4.14)

Change-Id: I8361a844c35a4450f7800964a8da2741676fd6c7
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2019-07-11 12:29:10 -07:00
qctecmdr
91f4bcda9d Merge "disp: msm: dp: update the connected state during clean up" 2019-07-10 11:07:47 -07:00
qctecmdr
4a62cac06b Merge "disp: msm: dp: add timeout state for simulated AUX transfers" 2019-07-10 09:06:48 -07:00
qctecmdr
bbd3e2b125 Merge "disp: msm: dp: disable audio during display clean up" 2019-07-10 07:10:40 -07:00
qctecmdr
a9a92a5f84 Merge "disp: msm: sde: fix the QOS setting mismatch" 2019-07-10 04:50:43 -07:00
qctecmdr
b37df49521 Merge "disp: msm: sde: fix the race condition with wb output buffers" 2019-07-09 20:20:43 -07:00
Tatenda Chipeperekwa
c36e7e01be disp: msm: dp: update the connected state during clean up
Update the connected state to false during display clean up. This
will allow subsequent connections to be processed correctly in
the face of disconnect failures due to unresponsive user mode
clients.

Change-Id: If30f5d722bf742060c9d4d2dec2207d7baf27fc2
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2019-07-09 17:42:42 -07:00
Tatenda Chipeperekwa
d532f14537 disp: msm: dp: add timeout state for simulated AUX transfers
Add a new state to indicate timeout failures in simulation mode.
This can be used by test scripts to trigger a retry of the
session.

Change-Id: I9e250ba7d42fcb318698d8456b3acc5b55081abc
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2019-07-09 17:42:42 -07:00
Tatenda Chipeperekwa
d2c24e44e2 disp: msm: dp: disable audio during display clean up
Disable audio for every active panel during display clean
up use cases when the driver times out waiting for the
video path to tear down. This ensures that the audio
subsystem is notified before the clean up shuts down the
timing engine, and also ensures that the audio module
state is correctly updated to indicate that the session
has ended. This change will reduce the likelihood of the
audio subsystem attempting to program DP audio, and also
ensure that the state checks will correctly prevent any
attempts to program audio after the session has ended.

Change-Id: I937f894e80b55164f9700f021d852863aeb18959
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2019-07-09 17:37:52 -07:00
Lakshmi Narayana Kalavala
99a7f030d4 disp: msm: sde: fix the QOS setting mismatch
Currently the display driver does not consider the write back
client while deriving client type for QOS settings.
Add new API to consider the write back and other non
real time clients also for picking up the proper QOS settings.
This patch also fixes the QOS setting mismatch with QSEEDLITE
hardware.

Change-Id: I5db3d21921b8930bb6399ea355d3ce2b60e51430
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2019-07-09 13:47:26 -07:00
qctecmdr
84fc2163e1 Merge "disp: msm: dp: Improvements to dp mst simulator mode" 2019-07-08 16:05:02 -07:00
Lakshmi Narayana Kalavala
d28cec1b1a disp: msm: sde: fix the race condition with wb output buffers
In the case of concurrent writeback, display thread
does not wait for writeback done and the fences are released
immediately if the pending frame count is one or zero.
Also during this skip wait process, the output frame buffers are also
cleaned up. If there are couple of bad writeback frames, there could
be a race condition between frame buffer cleanup in the display driver
and DRM_IOCTL_MODE_RMFB ioctl from userspace. Hence add appropriate
ref count logic with output frame buffers while the driver is using them.

Change-Id: I1cf919b93424011c75c39bcddd296a03a9d5c4ee
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2019-07-08 13:18:01 -07:00
qctecmdr
e5aaaf8785 Merge "disp: msm: dsi: fix the DMS mode flag setting" 2019-07-06 14:05:03 -07:00
qctecmdr
21af73b82c Merge "drm/msm/dsi-staging: update frame transfer time calculations" 2019-07-06 04:53:51 -07:00
qctecmdr
e2944aac08 Merge "drm/msm/dsi-staging: register panel with global registry" 2019-07-05 23:21:13 -07:00
qctecmdr
751cbf5570 Merge "disp: msm: sde: avoid connector state mode update" 2019-07-05 21:36:26 -07:00
qctecmdr
c32ed35783 Merge "disp: msm: sde: dump lm rsvps when reservation fails" 2019-07-05 19:49:10 -07:00
qctecmdr
970ae8ce7b Merge "disp:msm: fix return type from runtime api" 2019-07-05 16:05:14 -07:00
Ray Zhang
dc36ec057b disp: msm: dsi: fix the DMS mode flag setting
DFPS validation doesn't update DSI_MODE_FLAG_DMS when there is
only refresh rate change but not resolution change. This is not
expected. DMS should be able to support this use case if DFPS
is not enabled.

Change-Id: I738bce68b1dc098338281ac95156a483769608c4
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2019-07-05 11:02:02 +08:00
qctecmdr
9bca267510 Merge "disp: msm: sde: avoid false error for encoder restore" 2019-07-04 13:04:57 -07:00
qctecmdr
56c84a97d2 Merge "disp: msm: sde: fix error return in plane atomic_check" 2019-07-04 11:19:34 -07:00
Dhaval Patel
10d925633a disp: msm: sde: avoid false error for encoder restore
Below sequence can trigger encoder restore failure due
to cur_master unavailability.
 -> Primary encoder is attached to crtc-0
 -> Primary encoder enters in power collapse state
 -> CWB encoder attached to crtc-0
 -> Atomic_check updates the crtc encoder_mask with
    two encoders.
 -> Prepare_commit triggers power restore
 -> crtc triggers encoder_restore based on encoder_mask

CWB encoder is not enabled at this stage and it will fail
to restore. This patch avoids the error message in this
valid condition.
2019-07-03 11:02:44 -07:00
Lakshmi Narayana Kalavala
6f3081e24d disp: msm: sde: dump lm rsvps when reservation fails
SDE driver currently does not dump the resource information
when there is a failure with reservation. This change
adds the logic to dump the layer mixer rsvps with
reservation failures.

Change-Id: Idcfb36b25bf8da18a9f6f803ba5de51aaa812334
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2019-07-02 14:06:02 -07:00
Abhijit Kulkarni
dcea657cce disp: msm: sde: avoid connector state mode update
There is a race condition between sdm thread and display thread, when
sdm thread may be accessing the mode_info field while duplicating the
connector state, display thread may be updating the current mode info.
This would lead to the next commit using invalid mode and could cause
wrong hw configuration.
This change removes copying the mode_info in encoder struct while
atomic check phase and also removes accessing the connector mode_info
during mode_set. The encoder struct is now updated at the mode_set
with the cached connector mode.

Change-Id: I069ed592ec017ce4aa5c9c94b340bf94c5e1ebff
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2019-07-02 12:57:31 -07:00
Vara Reddy
98ac941a1b drm/msm/dsi-staging: update frame transfer time calculations
Change updates frame transfer time calculations. Frame threshold
is provided as input to decide on the final transfer time.
Panel dsi clock node followed by mdp transfer time node
will take priority in selecting final transfer time than frame
threshold time.

Change-Id: I40c3abfc635cd9b338b705535612ac32e047ce6e
Signed-off-by: Vara Reddy <varar@codeaurora.org>
2019-07-02 12:48:34 -07:00
qctecmdr
40e4d191d3 Merge "disp: msm: sde: log intf framecount in event logs" 2019-07-02 02:26:16 -07:00
qctecmdr
3a81fc3744 Merge "disp: msm: sde: use high bandwidth threshold for crtc check" 2019-07-02 01:24:17 -07:00
Veera Sundaram Sankaran
c102669c98 disp: msm: sde: fix error return in plane atomic_check
In plane atomic_check function, the error code
from one of the checks is overwritten by the
return-value of subsequent check. This leads to
wrong return-value propagation resulting in
undefined behavior. Fix it to return the appropriate
error code on any failure.

Change-Id: I53b427d1b69c3ebfaa6709814bd9095676ff942d
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2019-07-01 17:45:55 -07:00
Harpreet Eli Sangha
4999d92e48 drm/msm/dsi-staging: register panel with global registry
allow other device drivers to find this drm panel in global registry

Change-Id: I945bdbe9d8ed85dbb20f876e72687d6363c27492
(cherry picked from commit 9fd9ee68951d477aa9be580b047adcb72eff55c3)
Signed-off-by: Harpreet "Eli" Sangha <eliptus@google.com>
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2019-07-01 14:03:52 -07:00
qctecmdr
84f87add48 Merge "disp: msm: dp: skip audio notify wait for completion" 2019-06-30 01:14:19 -07:00
qctecmdr
2df7ab2694 Merge "disp: msm: dsi: update DSI PHY sequence for Kona" 2019-06-29 19:44:03 -07:00
qctecmdr
274a5a6fda Merge "disp: msm: sde: clean up LTM driver states when lastclose is called" 2019-06-28 23:39:13 -07:00
qctecmdr
ea1ed2c7fc Merge "msm/sde/rotator: Initialise rotator module after MDP module init" 2019-06-28 22:04:04 -07:00
qctecmdr
1e0adcd9e7 Merge "disp: msm: dsi: increase mode max allowed" 2019-06-28 21:20:03 -07:00
qctecmdr
57fca09868 Merge "msm/sde/rotator: Remove deprecated SMMU api's in rotator driver." 2019-06-28 17:17:16 -07:00
qctecmdr
e183a358bb Merge "disp: msm: sde: remove checks in LTM hist disable function" 2019-06-28 16:31:16 -07:00
qctecmdr
9d4d930487 Merge "disp: msm: sde: update max supported display height" 2019-06-28 12:37:53 -07:00
qctecmdr
385a424905 Merge "disp: msm: sde: Add DSPP NULL pointer check in reg dma" 2019-06-28 10:17:49 -07:00
qctecmdr
63d4a3cecd Merge "drm: msm: Do not check for 0 mixer count" 2019-06-28 08:46:11 -07:00
qctecmdr
d2ffb846ba Merge "disp: msm: sde: reset ctl during wr_ptr_irq timeout" 2019-06-28 04:27:31 -07:00
qctecmdr
5b2917a3c8 Merge "disp: pll: remove unsupported dividers for DSI pixel clock" 2019-06-28 02:53:01 -07:00
qctecmdr
fc92a6d9f6 Merge "disp: msm: dp: Implement dsc slice selection logic based on sink caps" 2019-06-27 09:50:51 -07:00
qctecmdr
62777b5cf4 Merge "disp: msm: add array out of bounds index check" 2019-06-27 08:06:53 -07:00
qctecmdr
8d38e0fb46 Merge "disp: msm: fix vsync wait for poms and dms" 2019-06-27 05:57:07 -07:00
qctecmdr
c096b1d1dc Merge "disp: msm: dsi: Fix incorrect DSI PHY timing of version 4" 2019-06-27 03:34:31 -07:00
qctecmdr
acf755573d Merge "disp: msm: dsi: DSI PHY V4 support of dynamic clock switch" 2019-06-27 03:34:31 -07:00
Shubhashree Dhar
2179aedbdc msm/sde/rotator: Remove deprecated SMMU api's in rotator driver.
Remove deprecated smmu api's and add support for new api's
in rotator driver.

Change-Id: Ib7a3f48fe22867725e1224caf3489bf47044e37b
Signed-off-by: Shubhashree Dhar <dhar@codeaurora.org>
2019-06-27 14:21:21 +05:30
Yuchao Ma
683585ad7a disp: msm: sde: remove checks in LTM hist disable function
The right_mixer and hist_en checks in LTM hist disable function are
not valid for dual display use cases, since in dual display use cases,
right_mixer will always be NULL.
When device enters suspend state, hist_en will be set to false in
sde_cp_crtc_suspend(), and together with the right_mixer check,
it will block the ltm buffer lists from resetting and cause LTM has
no buffers to use after resume.

Change-Id: I51b1b00f4af59e42105322de68019479c65f2fbb
Signed-off-by: Yuchao Ma <yuchaom@codeaurora.org>
2019-06-26 19:45:52 -07:00
Nilaan Gunabalachandran
c6092f3e66 disp: msm: sde: log intf framecount in event logs
Log hardware interface framecount during te and vblank irqs for
command and video mode panels, respectively. This will help in
debugging any missed frames.

Change-Id: Ie86f686c4cc12de6a1f31aa47d4c7a5b8a68ea55
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
2019-06-26 11:54:51 -04:00
Zube Molokwu
e23e3e27bf disp: msm: dp: skip audio notify wait for completion
Skip the wait on audio subsystem response in case of external display
connect event.

Change-Id: Id7a0ac48f540f025293717e60c28967b83ad46ee
Signed-off-by: Zube Molokwu <zmolokwu@codeaurora.org>
2019-06-25 18:26:22 -07:00