瀏覽代碼

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 年之前
父節點
當前提交
56d1c40031
共有 1 個文件被更改,包括 3 次插入0 次删除
  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);
 }