Pārlūkot izejas kodu

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 gadu atpakaļ
vecāks
revīzija
56d1c40031
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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);
 }