Browse Source

disp: msm: dp: use full_pbn instead of available_pbn

Commit fcf463807596 ("drm/dp_mst: Use full_pbn instead of
available_pbn for bandwidth checks") changes bandwidth checks
to look at the Full PBN bandwidth rather than the available PBN.
This change updates the relevant changes to the dp driver.

Change-Id: I2a713a9b6fd10314bd768331dcea00950b6edf7f
Signed-off-by: Samantha Tran <[email protected]>
Signed-off-by: Nilaan Gunabalachandran <[email protected]>
Samantha Tran 4 năm trước cách đây
mục cha
commit
4b150347fc
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 5 5
      msm/dp/dp_mst_drm.c

+ 5 - 5
msm/dp/dp_mst_drm.c

@@ -322,7 +322,7 @@ static void dp_mst_sim_add_port(struct dp_mst_private *mst,
 	mutex_unlock(&mstb->mgr->lock);
 
 	/* use fixed pbn for simulator ports */
-	port->available_pbn = 2520;
+	port->full_pbn = 2520;
 
 	if (!port->input) {
 		port->connector = (*mstb->mgr->cbs->add_connector)
@@ -1440,7 +1440,7 @@ enum drm_mode_status dp_mst_connector_mode_valid(
 	struct sde_connector *c_conn;
 	struct drm_dp_mst_port *mst_port;
 	struct dp_display_mode dp_mode;
-	uint16_t available_pbn, required_pbn;
+	uint16_t full_pbn, required_pbn;
 	int available_slots, required_slots;
 	struct dp_mst_bridge_state *dp_bridge_state;
 	int i, slots_in_use = 0, active_enc_cnt = 0;
@@ -1466,7 +1466,7 @@ enum drm_mode_status dp_mst_connector_mode_valid(
 	}
 
 	if (active_enc_cnt < DP_STREAM_MAX) {
-		available_pbn = mst_port->available_pbn;
+		full_pbn = mst_port->full_pbn;
 		available_slots = tot_slots - slots_in_use;
 	} else {
 		DP_DEBUG("all mst streams are active\n");
@@ -1480,9 +1480,9 @@ enum drm_mode_status dp_mst_connector_mode_valid(
 	required_slots = mst->mst_fw_cbs->find_vcpi_slots(
 			&mst->mst_mgr, required_pbn);
 
-	if (required_pbn > available_pbn || required_slots > available_slots) {
+	if (required_pbn > full_pbn || required_slots > available_slots) {
 		DP_DEBUG("mode:%s not supported. pbn %d vs %d slots %d vs %d\n",
-				mode->name, required_pbn, available_pbn,
+				mode->name, required_pbn, full_pbn,
 				required_slots, available_slots);
 		return MODE_BAD;
 	}