Procházet zdrojové kódy

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 <[email protected]>
[[email protected]: resolved trivial merge conflict]
Signed-off-by: Steve Cohen <[email protected]>
Yuchao Ma před 6 roky
rodič
revize
734a80305a
1 změnil soubory, kde provedl 9 přidání a 0 odebrání
  1. 9 0
      msm/sde/sde_hw_pingpong.c

+ 9 - 0
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: