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>
This commit is contained in:
@@ -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,
|
||||
|
Referens i nytt ärende
Block a user