coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
logging.c File Reference
#include <arch/mmio.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <types.h>
#include "txt.h"
#include "txt_getsec.h"
#include "txt_register.h"
Include dependency graph for logging.c:

Go to the source code of this file.

Functions

const char * intel_txt_processor_error_type (uint8_t type)
 
static void log_txt_error (const char *phase)
 Logs microcode or SINIT ACM errors. More...
 
void intel_txt_log_bios_acm_error (void)
 Dump useful informaation about the BIOS ACM state. More...
 
void txt_dump_acm_info (const struct acm_header_v0 *acm_header)
 Dump information about the provided ACM. More...
 
void txt_dump_chipset_info (void)
 Dump information about the chipset's TXT capabilities. More...
 
void txt_dump_regions (void)
 
void txt_dump_getsec_parameters (void)
 

Function Documentation

◆ intel_txt_log_bios_acm_error()

void intel_txt_log_bios_acm_error ( void  )

Dump useful informaation about the BIOS ACM state.

Should run right after console_init() in romstage. Resets the platform if TXT reset is active and MLE cannot be established.

Definition at line 58 of file logging.c.

References ACMERROR_TXT_VALID, BIOS_CRIT, BIOS_INFO, intel_txt_log_acm_error(), log_txt_error(), printk, read32(), read64(), read8(), TXT_BIOSACM_ERRORCODE, TXT_ERROR, TXT_ESTS, TXT_ESTS_TXT_RESET_STS, and TXT_SPAD.

Referenced by init_intel_txt().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intel_txt_processor_error_type()

const char* intel_txt_processor_error_type ( uint8_t  type)

Definition at line 12 of file logging.c.

References ARRAY_SIZE, and type.

Referenced by intel_cbnt_log_registers(), and log_txt_error().

Here is the caller graph for this function:

◆ log_txt_error()

static void log_txt_error ( const char *  phase)
static

Logs microcode or SINIT ACM errors.

Does not log SBIOS ACM errors.

Definition at line 36 of file logging.c.

References ACMERROR_TXT_EXTERNAL, ACMERROR_TXT_VALID, BIOS_ERR, intel_txt_processor_error_type(), printk, read64(), TXT_ERROR, and TXT_ERROR_MASK.

Referenced by intel_txt_log_bios_acm_error().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ txt_dump_acm_info()

◆ txt_dump_chipset_info()

void txt_dump_chipset_info ( void  )

Dump information about the chipset's TXT capabilities.

Definition at line 177 of file logging.c.

References BIOS_INFO, intel_txt_chipset_is_production_fused(), printk, read32(), read64(), TXT_ACM_KEY_HASH, TXT_ACM_KEY_HASH_LEN, and TXT_DIDVID.

Referenced by init_intel_txt().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ txt_dump_getsec_parameters()

void txt_dump_getsec_parameters ( void  )

Definition at line 225 of file logging.c.

References BIOS_DEBUG, BIOS_WARNING, getsec_parameter(), GETSEC_PARAMS_TXT_EXT_CRTM_SUPPORT, GETSEC_PARAMS_TXT_EXT_MACHINE_CHECK, and printk.

Referenced by intel_txt_prepare_txt_env().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ txt_dump_regions()

void txt_dump_regions ( void  )