Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 392a07a7 authored by Yuchao Ma's avatar Yuchao Ma Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: Add AD4 memory range to valid range



The AD4 memory range can not be accessed by adb debug command.
So the patch fixs this issue by making AD4 range valid.

Change-Id: I2c5bb4301135d1bb7360a1abd0279fc0bf1f5eda
Signed-off-by: default avatarYuchao Ma <yuchaom@codeaurora.org>
parent 0f3df422
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * it under the terms of the GNU General Public License version 2 and
@@ -262,6 +262,13 @@ struct sde_hw_dspp *sde_hw_dspp_init(enum sde_dspp idx,
	sde_dbg_reg_register_dump_range(SDE_DBG_NAME, cfg->name, c->hw.blk_off,
	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);
			c->hw.blk_off + c->hw.length, c->hw.xin_id);


	if ((cfg->sblk->ad.id == SDE_DSPP_AD) && cfg->sblk->ad.base) {
		sde_dbg_reg_register_dump_range(SDE_DBG_NAME, "ad4",
			c->hw.blk_off + cfg->sblk->ad.base,
			c->hw.blk_off + cfg->sblk->ad.base + SDE_AD4_REG_LEN,
			c->hw.xin_id);
	}

	return c;
	return c;


blk_init_error:
blk_init_error:
+2 −0
Original line number Original line Diff line number Diff line
@@ -46,6 +46,8 @@
#define MAX_DSI_DISPLAYS		2
#define MAX_DSI_DISPLAYS		2
#define MAX_DATA_PATH_PER_DSIPLAY	2
#define MAX_DATA_PATH_PER_DSIPLAY	2


#define SDE_AD4_REG_LEN		0x484

enum sde_format_flags {
enum sde_format_flags {
	SDE_FORMAT_FLAG_YUV_BIT,
	SDE_FORMAT_FLAG_YUV_BIT,
	SDE_FORMAT_FLAG_DX_BIT,
	SDE_FORMAT_FLAG_DX_BIT,