Graphe des révisions

1561 Révisions

Auteur SHA1 Message Date
Xiaowen Wu
c60d3d5989 disp: msm: dp: fix dp-mst stream double disabled issue
There is a corner case when dp-mst stream is disabled twice:

1. stream 1 is enabled
2. cable plugged out, stream 1 is disabled by kernel
3. cable plugged in, enable stream 0 first
4. disable stream 1

Stream 1 is double disabled and will cause hw crash. This change
will add the check and skip stream_off if already disabled.

Change-Id: Icd1e815a1ed14cd4e784924f3db19b98eb06d571
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
Signed-off-by: Sankeerth Billakanti <sbillaka@codeaurora.org>
2020-09-16 06:25:38 -07:00
qctecmdr
1c5beba30c Merge "disp: msm: trigger same BW vote if rsc state updates" 2020-09-15 03:57:25 -07:00
Dhaval Patel
d87c6080bb disp: msm: trigger same BW vote if rsc state updates
SDE RSC and core perf avoids BW vote trigger if current
and previous AB/IB BW votes are same. This may cause
issue if target enters in idle power collapse state
with stale AMC vote. This invalidates the sleep vote
and does not remove disp_drv vote. This change triggers
BW vote on all rsc state updates.

Change-Id: Id738206ade0feeb067dfda3d06cc0c7e19d66df1
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2020-09-14 11:07:38 -07:00
qctecmdr
683bf52ce0 Merge "disp: msm: sde: update crtc check in drm_check_dpms" 2020-09-12 19:19:50 -07:00
qctecmdr
5391d25fbc Merge "disp: msm: dp: do not skip disconnect when host is unready" 2020-09-12 11:26:36 -07:00
qctecmdr
7978e0d920 Merge "disp: msm: sde: add event to event_list after register is successful" 2020-09-12 07:12:30 -07:00
qctecmdr
952605d6fb Merge "Revert "disp: msm: sde: add event to event_list after register is successful"" 2020-09-12 04:59:46 -07:00
qctecmdr
b0775fe9da Merge "disp: msm: add allowed_mode_switch blob property" 2020-09-12 00:11:57 -07:00
qctecmdr
e253a5d57d Merge "disp: msm: dp: enable logs in key mst callflow operations" 2020-09-11 21:50:39 -07:00
qctecmdr
1f46ac0396 Merge "disp: msm: sde: properly reset LTM merge_mode bit and portrait_en bit" 2020-09-11 19:36:33 -07:00
qctecmdr
ef551ad4ae Merge "disp: msm: sde: release splash memory using memblock_free" 2020-09-11 16:46:33 -07:00
Ping Li
97a5b52ebd disp: msm: sde: add event to event_list after register is successful
Add event to event_list after msm_register_event is successful to avoid
use-after-free vulnerability.

Change-Id: I34fb39c99051978cbab64a852851964691a5ea9e
Signed-off-by: Ping Li <pingli@codeaurora.org>
2020-09-11 13:52:52 -07:00
Ping Li
76a1d81e9d Revert "disp: msm: sde: add event to event_list after register is successful"
This reverts commit 91fc51777c67ddc92d0ba1fcddf6cd149f7a0560.
The original fix missed to add the client to list in cases when count is
larger than zero and client doesn't need to be deleted from list if
msm_register_event fails as it was not added to list yet.
Revert this change to upload the correct fix.

Change-Id: I00923d65387753b05b6b03efec109c019826f5d5
Signed-off-by: Ping Li <pingli@codeaurora.org>
2020-09-11 13:52:05 -07:00
Ping Li
b2fc08f8c2 disp: msm: sde: properly reset LTM merge_mode bit and portrait_en bit
Reset the LTM merge_mode bit and portrait_en bit if LTM histogram and
VLUT are both disabled.

Change-Id: Ica9f681e458afe8c7cd1dfe8ba718cf46eadac3b
Signed-off-by: Ping Li <pingli@codeaurora.org>
2020-09-11 00:14:23 -07:00
qctecmdr
155b0639d1 Merge "disp: msm: dsi: Handle pm_runtime_put_sync return value properly" 2020-09-10 18:45:36 -07:00
qctecmdr
0252310b1b Merge "disp: msm: sde: avoid registering vblank callback during CWB" 2020-09-10 18:45:36 -07:00
qctecmdr
6e0320c98a Merge "disp: msm: sde: avoid wb commit before cwb disable" 2020-09-10 18:45:36 -07:00
qctecmdr
52610a646b Merge "disp: msm: sde: update ctl v1 topology table" 2020-09-10 18:45:36 -07:00
qctecmdr
eeb99bc637 Merge "disp: msm: sde: update min_prefill lines for lito and lagoon" 2020-09-10 18:45:36 -07:00
Raviteja Tamatam
66d9e1e9ab disp: msm: sde: update crtc check in drm_check_dpms
In cases of adb shell stop, connector->state->crtc is
not updated which prevents panel power down
notification to be sent. In such cases updated crtc
from old connector state.

Change-Id: I94f9e5ad469d771cc673123b4e0cc65ea8f4653e
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
2020-09-10 16:34:24 -07:00
Krishna Manikandan
2b492f05d9 disp: msm: add new mode to notify when there is a fps change
Add a new mode DRM_PANEL_BLANK_FPS_CHANGE whenever there is
a change in fps and the power mode remains the same.
This will avoid unnecessary resume operations in touch driver.

Change-Id: Id3d5884ba862c864782636360e3832854464bf65
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
2020-09-10 16:32:41 -07:00
Adrian Salido
fb50dda175 disp: msm: add low power mode notifier
Introduce low power mode so that listeners are aware when
display is going into low power mode. This requires moving notifier
inside sde code to be able to retrieve the low power state.

Change-Id: I8671e86af29c959d97e1b8ad758a07719ffa4bec
(cherry picked from commit c4b15f56dd63d24d6f4482deab2423809c700d7a)
Signed-off-by: Adrian Salido <salidoa@google.com>
[samtran@codeaurora.org: move changes to different file as
downstream use of notifier struct comes from different file]
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
2020-09-10 16:28:22 -07:00
qctecmdr
d478974b21 Merge "disp: msm: sde: skip unnecessary cache register programming" 2020-09-10 10:30:19 -07:00
qctecmdr
11483a9d3d Merge "disp: msm: dp: return early if all streams are disabled" 2020-09-10 10:30:19 -07:00
Zhao, Yuan
7605176062 disp: msm: dp: do not skip disconnect when host is unready
usbpd_attention_cb will do dp_display_disconnect_sync, but will
not deinit dp host. usbpd_disconnect_cb can deinit dp host, so
need to check dp state, if dp is unready, should not skip
usbpd_disconnect, can deinit dp host now.

Change-Id: I5a149923ecb043b3a7db973e092bd0d49a715981
Signed-off-by: Zhao, Yuan <yzhao@codeaurora.org>
2020-09-10 09:58:33 -07:00
Lipsa Rout
96e7af3205 disp: msm: dsi: Handle pm_runtime_put_sync return value properly
Currently,power resource disable fails when pm_runtime_put_sync
returns negative values. Due to this, clock state update is
failing. pm_runtime_put_sync can return negative values in
scenarios where  pending resume requests take precedence over
suspends. This change allows pm_runtime_put_sync to return
negative vales also.

Change-Id: I1a46ca574129ba953ddb6300f9b3ab24cdb3171e
Signed-off-by: Lipsa Rout <lrout@codeaurora.org>
Signed-off-by: Steve Cohen <cohens@codeaurora.org>
2020-09-10 11:35:56 -04:00
Ritesh Kumar
755686a110 disp: msm: dsi: Handle GDSC PM in pre/post clk on/off
Currently, power_state variable does not reflect the GDSC
status. Due to this, there are scenarios where ctrl_power_on
is not happening leading to clock failures. This change
updates power_state based on current status of all the
regulators. GDSC enable is moved to pre_clkon and GDSC
disable is moved to post_clkoff.

Change-Id: I6d9508d5dffda0c94bd3b3bd9b5feb4724dc9dc7
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
[cohens@codeaurora.org: fixed static analysis error]
Signed-off-by: Steve Cohen <cohens@codeaurora.org>
2020-09-10 11:34:28 -04:00
Rajkumar Subbiah
1b694e8213 disp: msm: dp: enable logs in key mst callflow operations
This change adds more debug logs and event logs to MST callflows
to help with MST stability issues.

Change-Id: I9053eab5932487fccce522cc17ed2e9fb8d887ab
Signed-off-by: Rajkumar Subbiah <rsubbia@codeaurora.org>
2020-09-10 09:07:34 -04:00
Nilaan Gunabalachandran
2a3fe5e4c5 disp: msm: sde: skip unnecessary cache register programming
Plane update will call system cache update, and by default,
will clear any cache programming. This clear is only necessary
after returning from a cached state. This change will reduce
unnecessary programming and event logs if the sys cache
was previously disabled and remains disabled.

Change-Id: I7f560ff24990a8c7ad785e560873193b7bf3a491
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
2020-09-10 08:33:23 -04:00
qctecmdr
6d59f959d3 Merge "disp: rotator: modify the args for sid switch call" 2020-09-10 03:35:50 -07:00
qctecmdr
20db960f01 Merge "disp: msm: dsi: do not enable PWM when setting bl to 0" 2020-09-09 18:55:26 -07:00
qctecmdr
987b50fe8f Merge "disp: msm: sde: delay encoder disable for clone mode" 2020-09-09 13:17:51 -07:00
qctecmdr
89d84e6da6 Merge "disp: msm: sde: update syscache properties only if supported" 2020-09-09 09:11:53 -07:00
qctecmdr
32c625dba0 Merge "disp: rotator: add ubwc plane atomic check in rotator" 2020-09-09 02:29:19 -07:00
qctecmdr
1ea1264b80 Merge "disp: msm: sde: update irq enable check during irq affinity notify" 2020-09-09 02:29:19 -07:00
qctecmdr
e236e8e3ec Merge "disp: msm: sde: add null pointer check for encoder current master" 2020-09-09 02:29:19 -07:00
qctecmdr
26112d7b3b Merge "disp: msm: dsi: Update pll delay calculation as per latest DSI HPG" 2020-09-09 02:29:19 -07:00
qctecmdr
d6eccf2b10 Merge "disp: msm: dsi: Add support to keep display reset pin high" 2020-09-09 02:29:19 -07:00
qctecmdr
3ee7b6f685 Merge "disp: msm: dsi: Skip soft reset during display disable" 2020-09-09 02:29:19 -07:00
qctecmdr
a56d1440d0 Merge "disp: msm: dp: add support for diff values of pre-emp and swing levels" 2020-09-09 02:29:19 -07:00
qctecmdr
9f952e6831 Merge "disp: msm: sde: avoid double mmu destroy during mmu init failure" 2020-09-09 02:29:19 -07:00
qctecmdr
c97cf39485 Merge "disp: msm: dp: remove link probe from dp display driver" 2020-09-09 02:29:19 -07:00
Yashwanth
98839886d3 disp: msm: sde: update syscache properties only if supported
This change avoids msm property install and cache state
transitions if sys cache is not supported in the target.

Change-Id: I00b0a95772b1a3dab67c7e684529cda093d6dac6
Signed-off-by: Yashwanth <yvulapu@codeaurora.org>
2020-09-09 12:17:07 +05:30
Rajat Gupta
1afa803170 disp: msm: dp: return early if all streams are disabled
Return early if the active streams are not present. Clean function
doesn't take into account the count of active stream which is being
changed during disable and link clk is turned off before that.
Adding active stream check in pre_off will ensures atleast one
stream is on and link clk is not turned off.

Change-Id: I6abf4b14ae4f99161eed3d5300b1961a1983977d
Signed-off-by: Rajat Gupta <rajatgu@codeaurora.org>
2020-09-09 12:12:50 +05:30
qctecmdr
eabc896956 Merge "disp: msm: dsi: initialize display before request_firmware" 2020-09-08 23:07:45 -07:00
qctecmdr
370f3ad937 Merge "disp: msm: dsi: Mask overflow error for Broadcast command" 2020-09-08 23:07:45 -07:00
qctecmdr
fdf3ac7ade Merge "disp: msm: dsi: dual dsi constant fps porch calculation" 2020-09-08 23:07:45 -07:00
Zhao, Yuan
8050179062 disp: msm: dsi: do not enable PWM when setting bl to 0
Check backlight value, if it's 0, do not enable PWM.

Change-Id: I6fccb42555731bf3faa88a93cbf1a36a417ff49d
Signed-off-by: Zhao, Yuan <yzhao@codeaurora.org>
2020-09-08 19:02:14 -07:00
Jayaprakash
12bfeccd42 disp: msm: sde: update min_prefill lines for lito and lagoon
Add changes to update min_prefill_lines to 40 for
inline rotation use-cases on lito and lagoon targets.

Change-Id: I1d6ba877972e31a8f950d98ebab8944e1b93cef0
Signed-off-by: Jayaprakash <jmadiset@codeaurora.org>
Signed-off-by: Steve Cohen <cohens@codeaurora.org>
2020-09-08 18:45:39 -04:00
Mahadevan
6987497452 disp: rotator: set ib, ab bandwidth votes in KBps for interconnect
icc_set_bw api requires ib, ab votes to be in KBps.
The votes received from the userspace will be in the order
of Bps. This change makes the conversion from Bytes to
KiloBytes before applying vote on interconnect path.

Change-Id: I1c02e91be91bda7dcbfe058f3681034a12aedbc5
Signed-off-by: Mahadevan <mahap@codeaurora.org>
2020-09-08 16:01:45 +05:30