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

Commit 2ee0a3ec authored by Alok Chauhan's avatar Alok Chauhan Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: ope: Update for new IQ modules



Added changes to dump new IQ modules as well
in OPE during page fault and hang scenario.

CRs-Fixed: 2878214
Change-Id: I97e7d4ee2ed9899ed299155c9aca8b094dff18f0
Signed-off-by: default avatarAlok Chauhan <alokc@codeaurora.org>
parent 363894c0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@

#define MAX_RD_CLIENTS   3
#define MAX_WR_CLIENTS   8
#define MAX_PP_CLIENTS   29
#define MAX_PP_CLIENTS   32

#define MAX_RW_CLIENTS   (MAX_RD_CLIENTS + MAX_WR_CLIENTS)

+9 −0
Original line number Diff line number Diff line
@@ -726,6 +726,15 @@ static struct cam_ope_pp_reg ope_pp_reg = {
		{
			.hw_status = 0x3C04,
		},
		{
			.hw_status = 0x3E04,
		},
		{
			.hw_status = 0x4004,
		},
		{
			.hw_status = 0x4204,
		},
	},
};

+18 −0
Original line number Diff line number Diff line
@@ -33,8 +33,12 @@ static int cam_ope_top_dump_debug_reg(struct ope_hw *ope_hw_info)
{
	uint32_t i, val[3];
	struct cam_ope_top_reg *top_reg;
	struct cam_ope_pp_reg *pp_reg;
	uint32_t pp_hw_status = 0;

	top_reg = ope_hw_info->top_reg;
	pp_reg = ope_hw_info->pp_reg;

	for (i = 0; i < top_reg->num_debug_registers; i = i+3) {
		val[0] = cam_io_r_mb(top_reg->base +
			top_reg->debug_regs[i].offset);
@@ -52,6 +56,20 @@ static int cam_ope_top_dump_debug_reg(struct ope_hw *ope_hw_info)
	CAM_INFO(CAM_OPE, "scrath reg: 0x%x, stripe_idx: %d",
		top_reg->offset + top_reg->scratch_reg,
		cam_io_r_mb(top_reg->base + top_reg->scratch_reg));

	for (i = 0; i < pp_reg->num_clients ; i++) {
		pp_hw_status = 0;
		pp_hw_status =
			cam_io_r_mb(pp_reg->base +
				pp_reg->pp_clients[i]
					.hw_status);

		if (pp_hw_status)
			CAM_ERR(CAM_OPE,
				"ope pp hw_status offset 0x%x val 0x%x",
				pp_reg->pp_clients[i].hw_status,
				pp_hw_status);
	}
	return 0;
}