disp: msm: dp: avoid releasing vcpi for active crtc
In MST atomic check function, add a check to ensure it's a disable call before releasing vcpi slots to ensure atomic_release_vcpi_slots() and atomic_find_vcpi_slots() are never called in the same atomic check as mentioned in the kernel docs. Change-Id: I36cf689b4d3bf9d2469a6c402b6377a667f01c12 Signed-off-by: Andrew Bartfeld <quic_abartfel@quicinc.com>
Esse commit está contido em:

commit de
Gerrit - the friendly Code Review server

pai
1c465e0434
commit
5dcee7c010
@@ -1216,7 +1216,8 @@ static int dp_mst_connector_atomic_check(struct drm_connector *connector,
|
||||
bridge->num_slots);
|
||||
}
|
||||
|
||||
if (drm_atomic_crtc_needs_modeset(crtc_state)) {
|
||||
/* do not attempt to release vcpi slots if crtc state is enable */
|
||||
if (drm_atomic_crtc_needs_modeset(crtc_state) && !crtc_state->enable) {
|
||||
if (WARN_ON(!old_conn_state->best_encoder)) {
|
||||
rc = -EINVAL;
|
||||
goto end;
|
||||
|
Referência em uma nova issue
Block a user