Skip to content

Commit

Permalink
sdm: Remove mutex lock when notifying CWB is done
Browse files Browse the repository at this point in the history
During a continuous CWB use case, deadlock occurs between SDM and
comp manager when CWB sends a notification call back while a commit
is happening on the same display. This change removes the mutex lock
during the CWB notification call back to avoid SDM and comp manager
to indefinitely wait for the same lock.

Change-Id: I28a0bcec2eb6be762537777f798d8ae5647c682a
CRs-Fixed: 3256919
  • Loading branch information
Rheygine Medel committed Jul 29, 2022
1 parent 695c6aa commit eb978fe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sdm/libs/core/display_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4219,7 +4219,6 @@ DisplayError DisplayBase::ConfigureCwbForIdleFallback(LayerStack *layer_stack) {
}

void DisplayBase::NotifyCwbDone(int32_t status, const LayerBuffer& buffer) {
ClientLock lock(disp_mutex_);
event_handler_->NotifyCwbDone(status, buffer);
}

Expand Down

0 comments on commit eb978fe

Please sign in to comment.