mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2024-11-23 08:26:23 -06:00
53ca89f8ae
* Add a file containing useful macro definitions, currently a single top-level macro for obtaining the size of an array; use it to replace a sizeof(x) / sizeof(x[0]) construct in system/smbus.c . This requires switching the GCC build mode from C11 to C11 with GCC extensions. * Initial NUMA awareness (#12) support: parse the ACPI SRAT to build up new internal structures related to proximity domains and affinity; use these structures in setup_vm_map() and calculate_chunk() to skip the work on the processors which don't belong to the proximity domain currently being tested. Tested on a number of 1S single-domain, 2S multi-domain and 4S multi-domain platforms. SKIP_RANGE(iterations) trick by Martin Whitaker.
85 lines
1.6 KiB
C
85 lines
1.6 KiB
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef CONFIG_H
|
|
#define CONFIG_H
|
|
/**
|
|
* \file
|
|
*
|
|
* Provides the configuration settings and pop-up menu.
|
|
*
|
|
*//*
|
|
* Copyright (C) 2020-2022 Martin Whitaker.
|
|
*/
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#include "smp.h"
|
|
#include "cpuid.h"
|
|
|
|
typedef enum {
|
|
PAR,
|
|
SEQ,
|
|
ONE
|
|
} cpu_mode_t;
|
|
|
|
typedef enum {
|
|
ERROR_MODE_NONE,
|
|
ERROR_MODE_SUMMARY,
|
|
ERROR_MODE_ADDRESS,
|
|
ERROR_MODE_BADRAM
|
|
} error_mode_t;
|
|
|
|
typedef enum {
|
|
POWER_SAVE_OFF,
|
|
POWER_SAVE_LOW,
|
|
POWER_SAVE_HIGH
|
|
} power_save_t;
|
|
|
|
extern uintptr_t pm_limit_lower;
|
|
extern uintptr_t pm_limit_upper;
|
|
|
|
extern uintptr_t num_pages_to_test;
|
|
|
|
extern cpu_mode_t cpu_mode;
|
|
|
|
extern error_mode_t error_mode;
|
|
|
|
extern cpu_state_t cpu_state[MAX_CPUS];
|
|
|
|
extern core_type_t hybrid_core_type[MAX_CPUS];
|
|
extern bool exclude_ecores;
|
|
|
|
extern bool smp_enabled;
|
|
|
|
extern bool enable_big_status;
|
|
extern bool enable_temperature;
|
|
extern bool enable_trace;
|
|
|
|
extern bool enable_sm;
|
|
extern bool enable_tty;
|
|
extern bool enable_bench;
|
|
extern bool enable_mch_read;
|
|
extern bool enable_ecc_polling;
|
|
extern bool enable_numa;
|
|
|
|
extern bool pause_at_start;
|
|
|
|
extern power_save_t power_save;
|
|
|
|
extern uintptr_t tty_address;
|
|
extern int tty_baud_rate;
|
|
extern int tty_update_period;
|
|
|
|
extern uint32_t tty_mmio_ref_clk;
|
|
extern int tty_mmio_stride;
|
|
|
|
extern bool err_banner_redraw;
|
|
|
|
void config_init(void);
|
|
|
|
void config_menu(bool initial);
|
|
|
|
void initial_config(void);
|
|
|
|
#endif // CONFIG_H
|