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 <quic_akhijais@quicinc.com>
Šī revīzija ir iekļauta:
Akhil Jaiswal
2024-03-08 14:41:56 +05:30
vecāks 8b01ceb5c1
revīzija a50a83f9ad

Parādīt failu

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only // 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. * 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); mdp->hw.blk_off + mdp->hw.length, mdp->hw.xin_id);
/* do not use blk_off, following offsets start from mdp_phys */ /* 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, if (m->hw_fence_rev) {
MDP_CTL_HW_FENCE_ID_OFFSET_m(MDP_CTL_HW_FENCE_IDm_ATTR, 5), mdp->hw.xin_id); 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 { } else {
sde_dbg_reg_register_dump_range(SDE_DBG_NAME, cfg->name, sde_dbg_reg_register_dump_range(SDE_DBG_NAME, cfg->name,
mdp->hw.blk_off, mdp->hw.blk_off + mdp->hw.length, mdp->hw.blk_off, mdp->hw.blk_off + mdp->hw.length,