coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <intelblocks/crashlog.h>
#include <string.h>
#include <soc/crashlog.h>
#include <arch/bert_storage.h>
#include <soc/iomap.h>
#include <soc/pci_devs.h>
Go to the source code of this file.
Functions | |
u32 __weak | cl_get_cpu_mb_int_addr (void) |
bool | pmc_cl_discovery (void) |
u32 | cl_get_cpu_bar_addr (void) |
u32 | cl_get_cpu_tmp_bar (void) |
bool | cl_pmc_sram_has_mmio_access (void) |
static bool | cpu_cl_get_capability (tel_crashlog_devsc_cap_t *cl_devsc_cap) |
static bool | cpu_cl_gen_discovery_table (void) |
bool | cpu_cl_discovery (void) |
void | reset_discovery_buffers (void) |
int | cl_get_total_data_size (void) |
pmc_ipc_discovery_buf_t | cl_get_pmc_discovery_buf (void) |
pmc_crashlog_desc_table_t | cl_get_pmc_descriptor_table (void) |
int | cl_get_pmc_record_size (void) |
int | cl_get_cpu_record_size (void) |
bool | cl_cpu_data_present (void) |
bool | cl_pmc_data_present (void) |
bool | cpu_crashlog_support (void) |
bool | pmc_crashlog_support (void) |
void | update_new_pmc_crashlog_size (u32 *pmc_crash_size) |
cpu_crashlog_discovery_table_t | cl_get_cpu_discovery_table (void) |
void | update_new_cpu_crashlog_size (u32 *cpu_crash_size) |
Variables | |
static bool | m_pmc_crashLog_support |
static bool | m_pmc_crashLog_present |
static bool | m_cpu_crashLog_support |
static bool | m_cpu_crashLog_present |
static u32 | m_pmc_crashLog_size |
static u32 | m_cpu_crashLog_size |
static u32 | cpu_crash_version |
static pmc_ipc_discovery_buf_t | discovery_buf |
static pmc_crashlog_desc_table_t | descriptor_table |
static tel_crashlog_devsc_cap_t | cpu_cl_devsc_cap |
static cpu_crashlog_discovery_table_t | cpu_cl_disc_tab |
Definition at line 255 of file crashlog.c.
References m_cpu_crashLog_present.
Referenced by cl_fill_cpu_records(), and collect_pmc_and_cpu_crashlog_from_srams().
Definition at line 94 of file crashlog.c.
References BIOS_ERR, cpu_cl_devsc_cap, PCI_BASE_ADDRESS_0, PCI_BASE_ADDRESS_1, PCI_BASE_ADDRESS_MEM_ATTR_MASK, pci_read_config32(), printk, SA_DEV_TMT, TEL_DVSEC_TBIR_BAR0, and TEL_DVSEC_TBIR_BAR1.
Referenced by cl_get_cpu_sram_data(), cpu_cl_gen_discovery_table(), and cpu_cl_mailbox_cmd().
cpu_crashlog_discovery_table_t cl_get_cpu_discovery_table | ( | void | ) |
Definition at line 280 of file crashlog.c.
References cpu_cl_disc_tab.
Referenced by cl_get_cpu_sram_data().
Definition at line 24 of file crashlog.c.
References CRASHLOG_MAILBOX_INTF_ADDRESS.
Referenced by cpu_cl_mailbox_cmd().
int cl_get_cpu_record_size | ( | void | ) |
Definition at line 250 of file crashlog.c.
References m_cpu_crashLog_size.
Referenced by cl_fill_cpu_records(), cl_get_cpu_sram_data(), cl_get_total_data_size(), and collect_pmc_and_cpu_crashlog_from_srams().
Definition at line 112 of file crashlog.c.
References SPI_BASE_ADDRESS.
Referenced by cl_get_pmc_sram_data().
pmc_crashlog_desc_table_t cl_get_pmc_descriptor_table | ( | void | ) |
Definition at line 240 of file crashlog.c.
References descriptor_table.
Referenced by cl_get_pmc_sram_data().
pmc_ipc_discovery_buf_t cl_get_pmc_discovery_buf | ( | void | ) |
Definition at line 235 of file crashlog.c.
References discovery_buf.
Referenced by cl_get_pmc_sram_data().
int cl_get_pmc_record_size | ( | void | ) |
Definition at line 245 of file crashlog.c.
References m_pmc_crashLog_size.
Referenced by cl_fill_pmc_records(), cl_get_pmc_sram_data(), cl_get_total_data_size(), and collect_pmc_and_cpu_crashlog_from_srams().
int cl_get_total_data_size | ( | void | ) |
Definition at line 230 of file crashlog.c.
References m_cpu_crashLog_size, and m_pmc_crashLog_size.
Referenced by acpi_soc_get_bert_region().
Definition at line 260 of file crashlog.c.
References m_pmc_crashLog_present.
Referenced by cl_fill_pmc_records(), and collect_pmc_and_cpu_crashlog_from_srams().
Definition at line 117 of file crashlog.c.
References BIOS_ERR, PCH_DEV_SRAM, pci_read_config16(), PCI_VENDOR_ID, and printk.
Referenced by cl_get_pmc_sram_data().
Definition at line 199 of file crashlog.c.
References resource::base, BIOS_DEBUG, BIOS_ERR, cpu_cl_devsc_cap, cpu_cl_gen_discovery_table(), cpu_cl_get_capability(), find_resource(), m_cpu_crashLog_present, m_cpu_crashLog_support, memset(), PCI_BASE_ADDRESS_0, printk, and SA_DEV_TMT.
Referenced by discover_crashlog().
Definition at line 162 of file crashlog.c.
References BIOS_DEBUG, cl_get_cpu_bar_addr(), cpu_cl_devsc_cap, cpu_cl_disc_tab, m_cpu_crashLog_present, m_cpu_crashLog_size, memset(), printk, and read32().
Referenced by cpu_cl_discovery().
|
static |
Definition at line 127 of file crashlog.c.
References BIOS_DEBUG, cpu_crash_version, CRASHLOG_DVSEC_ID, pci_read_config32(), printk, SA_DEV_TMT, TEL_DVSEC_OFFSET, TEL_DVSEC_PCIE_CAP_ID, TEL_DVSEV_DISCOVERY_TABLE_OFFSET, TEL_DVSEV_ID, and TELEMETRY_EXTENDED_CAP_ID.
Referenced by cpu_cl_discovery().
Definition at line 265 of file crashlog.c.
References m_cpu_crashLog_support.
Referenced by collect_pmc_and_cpu_crashlog_from_srams().
Definition at line 29 of file crashlog.c.
References BIOS_DEBUG, BIOS_ERR, BIOS_INFO, BIT, pmc_ipc_buffer::buf, descriptor_table, discovery_buf, m_pmc_crashLog_present, m_pmc_crashLog_size, m_pmc_crashLog_support, PCH_DEV_SRAM, PCI_BASE_ADDRESS_0, PCI_COMMAND, PCI_COMMAND_MEMORY, pci_or_config16(), pci_write_config32(), pmc_cl_gen_descriptor_table(), PMC_IPC_CMD_CRASHLOG, PMC_IPC_CMD_ID_CRASHLOG_DISCOVERY, PMC_IPC_CMD_SIZE_SHIFT, pmc_make_ipc_cmd(), pmc_send_ipc_cmd(), printk, and SPI_BASE_ADDRESS.
Referenced by discover_crashlog().
Definition at line 270 of file crashlog.c.
References m_pmc_crashLog_support.
Referenced by collect_pmc_and_cpu_crashlog_from_srams().
Definition at line 223 of file crashlog.c.
References cpu_cl_devsc_cap, descriptor_table, discovery_buf, and memset().
Referenced by discover_crashlog().
Definition at line 285 of file crashlog.c.
References m_cpu_crashLog_size.
Referenced by cl_get_cpu_sram_data().
Definition at line 275 of file crashlog.c.
References m_pmc_crashLog_size.
Referenced by cl_get_pmc_sram_data().
|
static |
Definition at line 21 of file crashlog.c.
Referenced by cl_get_cpu_bar_addr(), cpu_cl_discovery(), cpu_cl_gen_discovery_table(), and reset_discovery_buffers().
|
static |
Definition at line 22 of file crashlog.c.
Referenced by cl_get_cpu_discovery_table(), cl_get_cpu_sram_data(), and cpu_cl_gen_discovery_table().
|
static |
Definition at line 18 of file crashlog.c.
Referenced by cpu_cl_get_capability().
|
static |
Definition at line 20 of file crashlog.c.
Referenced by cl_get_pmc_descriptor_table(), cl_get_pmc_sram_data(), pmc_cl_discovery(), pmc_cl_gen_descriptor_table(), and reset_discovery_buffers().
|
static |
Definition at line 19 of file crashlog.c.
Referenced by cl_get_pmc_discovery_buf(), cl_get_pmc_sram_data(), pmc_cl_discovery(), and reset_discovery_buffers().
|
static |
Definition at line 15 of file crashlog.c.
Referenced by cl_cpu_data_present(), cpu_cl_discovery(), and cpu_cl_gen_discovery_table().
|
static |
Definition at line 17 of file crashlog.c.
Referenced by cl_fill_cpu_records(), cl_get_cpu_record_size(), cl_get_cpu_sram_data(), cl_get_total_data_size(), cpu_cl_gen_discovery_table(), and update_new_cpu_crashlog_size().
|
static |
Definition at line 14 of file crashlog.c.
Referenced by cpu_cl_discovery(), and cpu_crashlog_support().
|
static |
Definition at line 13 of file crashlog.c.
Referenced by cl_pmc_data_present(), and pmc_cl_discovery().
|
static |
Definition at line 16 of file crashlog.c.
Referenced by cl_fill_pmc_records(), cl_get_pmc_record_size(), cl_get_total_data_size(), pmc_cl_discovery(), and update_new_pmc_crashlog_size().
|
static |
Definition at line 12 of file crashlog.c.
Referenced by pmc_cl_discovery(), and pmc_crashlog_support().