coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <cbmem.h>
#include <delay.h>
#include <intelblocks/crashlog.h>
#include <string.h>
Go to the source code of this file.
bool cl_copy_data_from_sram | ( | u32 | src_bar, |
u32 | offset, | ||
u32 | size, | ||
u32 * | dest_addr, | ||
u32 | buffer_index, | ||
bool | pmc_sram | ||
) |
Definition at line 254 of file crashlog.c.
References BIOS_DEBUG, BIOS_ERR, BIT, offset, printk, and read32().
Referenced by cl_get_cpu_sram_data(), and cl_get_pmc_sram_data().
Definition at line 54 of file crashlog.c.
Definition at line 469 of file crashlog.c.
References BIOS_DEBUG, cbmem_find(), CBMEM_ID_CPU_CRASHLOG, cl_cpu_data_present(), cl_get_cpu_record_size(), m_cpu_crashLog_size, memcpy(), NULL, and printk.
Definition at line 487 of file crashlog.c.
References BIOS_DEBUG, cbmem_find(), CBMEM_ID_PMC_CRASHLOG, cl_get_pmc_record_size(), cl_pmc_data_present(), m_pmc_crashLog_size, memcpy(), NULL, and printk.
Definition at line 19 of file crashlog.c.
Definition at line 84 of file crashlog.c.
References memset().
Definition at line 29 of file crashlog.c.
Definition at line 9 of file crashlog.c.
Definition at line 386 of file crashlog.c.
References BIOS_DEBUG, BIOS_ERR, cbmem_add(), CBMEM_ID_CPU_CRASHLOG, cl_copy_data_from_sram(), cl_get_cpu_bar_addr(), cl_get_cpu_discovery_table(), cl_get_cpu_record_size(), cpu_cl_clear_data(), cpu_cl_disc_tab, m_cpu_crashLog_size, memset(), NULL, printk, and update_new_cpu_crashlog_size().
Referenced by collect_pmc_and_cpu_crashlog_from_srams().
Definition at line 24 of file crashlog.c.
Definition at line 77 of file crashlog.c.
References memset().
Definition at line 70 of file crashlog.c.
References memset().
Definition at line 14 of file crashlog.c.
Definition at line 294 of file crashlog.c.
References BIOS_DEBUG, BIOS_ERR, BIT, cbmem_add(), CBMEM_ID_PMC_CRASHLOG, cl_copy_data_from_sram(), cl_get_cpu_tmp_bar(), cl_get_pmc_descriptor_table(), cl_get_pmc_discovery_buf(), cl_get_pmc_record_size(), cl_pmc_clear(), cl_pmc_re_arm_after_reset(), cl_pmc_sram_has_mmio_access(), descriptor_table, discovery_buf, memset(), NULL, printk, and update_new_pmc_crashlog_size().
Referenced by collect_pmc_and_cpu_crashlog_from_srams().
Definition at line 34 of file crashlog.c.
References cl_get_cpu_record_size(), and cl_get_pmc_record_size().
int cl_pmc_clear | ( | void | ) |
Definition at line 193 of file crashlog.c.
References BIOS_ERR, PMC_IPC_CMD_CRASHLOG, PMC_IPC_CMD_ID_CRASHLOG_ERASE, PMC_IPC_CMD_SIZE_SHIFT, pmc_make_ipc_cmd(), pmc_send_ipc_cmd(), and printk.
Referenced by cl_get_pmc_sram_data().
Definition at line 59 of file crashlog.c.
int cl_pmc_en_gen_on_all_reboot | ( | void | ) |
Definition at line 218 of file crashlog.c.
References BIOS_ERR, PMC_IPC_CMD_CRASHLOG, PMC_IPC_CMD_ID_CRASHLOG_ON_RESET, PMC_IPC_CMD_SIZE_SHIFT, pmc_make_ipc_cmd(), pmc_send_ipc_cmd(), and printk.
Referenced by collect_pmc_and_cpu_crashlog_from_srams().
int cl_pmc_re_arm_after_reset | ( | void | ) |
Definition at line 170 of file crashlog.c.
References BIOS_ERR, PMC_IPC_CMD_CRASHLOG, PMC_IPC_CMD_ID_CRASHLOG_RE_ARM_ON_RESET, PMC_IPC_CMD_SIZE_SHIFT, pmc_make_ipc_cmd(), pmc_send_ipc_cmd(), and printk.
Referenced by cl_get_pmc_sram_data().
Definition at line 39 of file crashlog.c.
Definition at line 445 of file crashlog.c.
References BIOS_DEBUG, cl_cpu_data_present(), cl_get_cpu_record_size(), cl_get_cpu_sram_data(), cl_get_pmc_record_size(), cl_get_pmc_sram_data(), cl_pmc_data_present(), cl_pmc_en_gen_on_all_reboot(), CONFIG, cpu_crashlog_support(), pmc_crashlog_support(), and printk.
Referenced by acpi_soc_get_bert_region().
int cpu_cl_clear_data | ( | void | ) |
Definition at line 133 of file crashlog.c.
References cpu_cl_mailbox_cmd(), and CPU_CRASHLOG_CMD_CLEAR.
Referenced by cl_get_cpu_sram_data().
Definition at line 165 of file crashlog.c.
Definition at line 112 of file crashlog.c.
References cl_get_cpu_bar_addr(), cl_get_cpu_mb_int_addr(), cpu_cl_poll_mailbox_ready(), memset(), and write32().
Referenced by cpu_cl_clear_data().
int cpu_cl_poll_mailbox_ready | ( | u32 | cl_mailbox_addr | ) |
Definition at line 91 of file crashlog.c.
References BIOS_ERR, CPU_CRASHLOG_MAILBOX_WAIT_STALL, CPU_CRASHLOG_MAILBOX_WAIT_TIMEOUT, printk, read32(), and udelay().
Referenced by cpu_cl_mailbox_cmd().
Definition at line 44 of file crashlog.c.
Definition at line 239 of file crashlog.c.
References cpu_cl_discovery(), pmc_cl_discovery(), and reset_discovery_buffers().
Referenced by acpi_soc_get_bert_region().
Definition at line 160 of file crashlog.c.
int pmc_cl_gen_descriptor_table | ( | u32 | desc_table_addr, |
pmc_crashlog_desc_table_t * | descriptor_table | ||
) |
Definition at line 138 of file crashlog.c.
References BIOS_DEBUG, BIOS_ERR, descriptor_table, printk, and read32().
Referenced by pmc_cl_discovery().
Definition at line 49 of file crashlog.c.
Definition at line 64 of file crashlog.c.
Definition at line 68 of file crashlog.c.
Definition at line 66 of file crashlog.c.