disp: msm: sde: add sde data to va minidumps

VA minidumps supports to add any allocated variable or data to
minidumps. Add panic notifier and wrapper function to add
sde data to minidump va. Add event log, register log, register dumps,
debug bus and different sde variables and states info to minidump.

Change-Id: If54da0b7067df17877e4da645d82f1705baa3f6d
Signed-off-by: Andhavarapu Karthik <kartkart@codeaurora.org>
此提交包含在:
Andhavarapu Karthik
2021-06-21 10:44:50 +05:30
父節點 2db495708f
當前提交 76d171e611
共有 12 個檔案被更改,包括 203 行新增0 行删除

查看文件

@@ -1933,6 +1933,14 @@ static void sde_encoder_phys_wb_destroy(struct sde_encoder_phys *phys_enc)
kfree(wb_enc);
}
void sde_encoder_phys_wb_add_enc_to_minidump(struct sde_encoder_phys *phys_enc)
{
struct sde_encoder_phys_wb *wb_enc;
wb_enc = to_sde_encoder_phys_wb(phys_enc);
sde_mini_dump_add_va_region("sde_enc_phys_wb", sizeof(*wb_enc), wb_enc);
}
/**
* sde_encoder_phys_wb_init_ops - initialize writeback operations
* @ops: Pointer to encoder operation table
@@ -1955,6 +1963,7 @@ static void sde_encoder_phys_wb_init_ops(struct sde_encoder_phys_ops *ops)
ops->trigger_start = sde_encoder_helper_trigger_start;
ops->hw_reset = sde_encoder_helper_hw_reset;
ops->irq_control = sde_encoder_phys_wb_irq_ctrl;
ops->add_to_minidump = sde_encoder_phys_wb_add_enc_to_minidump;
}
/**