소스 검색

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);
 }