Browse Source

disp: msm: sde: avoid registration of hw_fence registers for reg_dump

This change avoids registering the hw_fence block for reg_dump
on lower-end targets where hw_fence is not supported.

Change-Id: I6bf017561954a133fa94cf015f5fed80a14fc479
Signed-off-by: Akhil Jaiswal <[email protected]>
Akhil Jaiswal 1 year ago
parent
commit
a50a83f9ad
1 changed files with 8 additions and 3 deletions
  1. 8 3
      msm/sde/sde_hw_top.c

+ 8 - 3
msm/sde/sde_hw_top.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  * Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
  */
 
@@ -989,8 +989,13 @@ struct sde_hw_mdp *sde_hw_mdptop_init(enum sde_mdp idx,
 				mdp->hw.blk_off +  mdp->hw.length, mdp->hw.xin_id);
 
 		/* do not use blk_off, following offsets start from  mdp_phys */
-		sde_dbg_reg_register_dump_range(SDE_DBG_NAME, "hw_fence", MDP_CTL_HW_FENCE_CTRL,
-			MDP_CTL_HW_FENCE_ID_OFFSET_m(MDP_CTL_HW_FENCE_IDm_ATTR, 5), mdp->hw.xin_id);
+		if (m->hw_fence_rev) {
+			sde_dbg_reg_register_dump_range(SDE_DBG_NAME, "hw_fence",
+				MDP_CTL_HW_FENCE_CTRL,
+				MDP_CTL_HW_FENCE_ID_OFFSET_m(MDP_CTL_HW_FENCE_IDm_ATTR, 5),
+				mdp->hw.xin_id);
+		}
+
 	} else {
 		sde_dbg_reg_register_dump_range(SDE_DBG_NAME, cfg->name,
 			mdp->hw.blk_off, mdp->hw.blk_off + mdp->hw.length,