Merge "board: crashdump: Enable TME log dump"

This commit is contained in:
Linux Build Service Account 2024-06-25 00:09:14 -07:00 committed by Gerrit - the friendly Code Review server
commit cb261702f3
3 changed files with 23 additions and 0 deletions

View file

@ -762,6 +762,14 @@ static int do_dumpqca_data(unsigned int dump_level)
}
for (indx = 0; indx < dump_entries; indx++) {
#ifdef DUMP_TME_LOG
if(!strncmp(dumpinfo[indx].name, "IMEM2.BIN", 9) &&
qca_scm_is_feature_available(TME_LOG_DUMP_FEATURE_ID) \
!= TME_LOG_DUMP_FEATURE_VERSION)
continue;
#endif
if (dump_level != dumpinfo[indx].dump_level)
continue;

View file

@ -110,6 +110,7 @@ struct dumpinfo_t dumpinfo_n[] = {
{ "EBICS0.BIN", 0x40000000, CONFIG_QCA_UBOOT_OFFSET, 0, 0, 0, 0, 1 },
#endif
{ "IMEM.BIN", 0x08600000, 0x00001000, 0 },
{ "IMEM2.BIN", 0x860F000, 0x00001000, 0 },
{ "UNAME.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP },
{ "CPU_INFO.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP },
{ "DMESG.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP },

View file

@ -43,6 +43,20 @@ extern const add_node_t add_fdt_node[];
#define DLOAD_DISABLED 0x40
#define DLOAD_BITS 0xFF
/* TME DUMP */
#ifndef DUMP_TME_LOG
#define DUMP_TME_LOG 1
#endif
#ifndef TME_LOG_DUMP_FEATURE_ID
#define TME_LOG_DUMP_FEATURE_ID 0x7
#endif
#ifndef TME_LOG_DUMP_FEATURE_VERSION
#define TME_LOG_DUMP_FEATURE_VERSION 0x401000
#endif
/* USB Registers */
#define TCSR_USB_PCIE_SEL 0x01947540
#define TCSR_USB_PCIE_SEL_USB 0x1