Kaynağa Gözat

disp: msm: dp: Update internal lm tracking

Clear internally tracked total number of lm blocks in
use when there are zero active streams.

This is required to have an accurate count of lm blocks
in use in a mst scenario.

Change-Id: Ida5d509bab60b3b6a4c0ace07c7c68380d28a0dd
Signed-off-by: Nisarg Bhavsar <[email protected]>
Nisarg Bhavsar 1 yıl önce
ebeveyn
işleme
56d1c40031
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      msm/dp/dp_display.c

+ 3 - 0
msm/dp/dp_display.c

@@ -1534,6 +1534,9 @@ static void dp_display_clear_reservation(struct dp_display *dp, struct dp_panel
 	dp_display->tot_lm_blks_in_use -= panel->max_lm;
 	panel->max_lm = 0;
 
+	if (!dp_display->active_stream_cnt)
+		dp_display->tot_lm_blks_in_use = 0;
+
 	mutex_unlock(&dp_display->accounting_lock);
 }