From 734a80305a2346ee8ee9c1878acf0fbe431b0180 Mon Sep 17 00:00:00 2001 From: Yuchao Ma Date: Wed, 19 Dec 2018 18:43:38 +0800 Subject: [PATCH] drm/msm/sde: Add global dither memory dump range The global dither memory range can not be accessed from outside. So the patch fixs this issue through add global dither memory range to valid range. Change-Id: I3ab5b87ff1e62f7b19b48a137922d4e98a64040c Signed-off-by: Yuchao Ma [cohens@codeaurora.org: resolved trivial merge conflict] Signed-off-by: Steve Cohen --- msm/sde/sde_hw_pingpong.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/msm/sde/sde_hw_pingpong.c b/msm/sde/sde_hw_pingpong.c index 795bcd7990..36a394f4b6 100644 --- a/msm/sde/sde_hw_pingpong.c +++ b/msm/sde/sde_hw_pingpong.c @@ -538,6 +538,15 @@ struct sde_hw_pingpong *sde_hw_pingpong_init(enum sde_pingpong idx, sde_dbg_reg_register_dump_range(SDE_DBG_NAME, cfg->name, c->hw.blk_off, c->hw.blk_off + c->hw.length, c->hw.xin_id); + if (cfg->sblk->dither.base && cfg->sblk->dither.len) { + sde_dbg_reg_register_dump_range(SDE_DBG_NAME, + cfg->sblk->dither.name, + c->hw.blk_off + cfg->sblk->dither.base, + c->hw.blk_off + cfg->sblk->dither.base + + cfg->sblk->dither.len, + c->hw.xin_id); + } + return c; blk_init_error: