Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/uefi/acs.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ extern UINT64 g_exception_ret_addr;
extern UINT64 g_ret_addr;
extern UINT32 g_timeout_pass;
extern UINT32 g_timeout_fail;
extern UINT32 g_timer_timeout_us; /* Timer timeout (us) */
extern UINT32 g_build_sbsa;
extern UINT32 g_build_pcbsa;
extern UINT32 g_print_mmio;
Expand Down
1 change: 1 addition & 0 deletions apps/uefi/acs_globals.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ UINT64 g_exception_ret_addr;
UINT64 g_ret_addr;
UINT32 g_timeout_pass;
UINT32 g_timeout_fail;
UINT32 g_timer_timeout_us; /* Timer timeout (us) */

/* Following g_build_* is retained to have compatibility with tests which use it, and used pass
on -a selection hint to tests */
Expand Down
6 changes: 4 additions & 2 deletions apps/uefi/acs_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ command_init (void)
if (CmdLineArg == NULL) {
g_timeout_pass = WAKEUP_WD_PASS_TIMEOUT_DEFAULT;
g_timeout_fail = g_timeout_pass * WAKEUP_WD_FAILSAFE_TIMEOUT_MULTIPLIER;
g_timer_timeout_us = TIMER_TIMEOUT_DEFAULT;
} else {
/* Accept a single value; ignore any trailing delimiters */
CHAR16 buf[64];
Expand Down Expand Up @@ -581,8 +582,9 @@ command_init (void)

g_timeout_pass = (UINT32)StrDecimalToUintn(buf);
g_timeout_fail = g_timeout_pass * WAKEUP_WD_FAILSAFE_TIMEOUT_MULTIPLIER;
if (!(g_timeout_pass >= WAKEUP_WD_PASS_TIMEOUT_THRESHOLD &&
g_timeout_pass <= WAKEUP_WD_PASS_TIMEOUT_MAX_THRESHOLD)) {
g_timer_timeout_us = g_timeout_pass;
if (!(g_timeout_pass >= TIMEOUT_THRESHOLD &&
g_timeout_pass <= TIMEOUT_MAX_THRESHOLD)) {
Print(L"Invalid -timeout: pass timeout range should be within 500ms and 2sec\n");
return SHELL_INVALID_PARAMETER;
}
Expand Down
4 changes: 2 additions & 2 deletions apps/uefi/bsa_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ HelpMsg (VOID)
"-skipmodule \n"
" Skip the specified modules (comma-separated names).\n"
" Example: -skipmodule PE,GIC,PCIE\n"
"-timeout <n> \n"
" Set pass timeout (in microseconds) for wakeup tests (500 us - 2 sec)\n"
"-timeout <microseconds> \n"
" Set pass timeout (delay in microseconds) for wakeup & WD & timer tests (500us - 2sec)\n"
" Example: -timeout 2000 \n"
"-v <n> Verbosity of the prints\n"
" 1 prints all, 5 prints only the errors\n");
Expand Down
11 changes: 7 additions & 4 deletions apps/uefi/mem_test_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ UINT64 g_exception_ret_addr;
UINT64 g_ret_addr;
UINT32 g_timeout_pass;
UINT32 g_timeout_fail;
UINT32 g_timer_timeout_us;
UINT32 g_build_sbsa = 0;
UINT32 g_build_pcbsa = 0;
UINT32 g_print_mmio;
Expand Down Expand Up @@ -123,8 +124,8 @@ HelpMsg (
"-no_crypto_ext Pass this flag if cryptography extension not supported due to export restrictions\n"
"-p2p Pass this flag to indicate that PCIe Hierarchy Supports Peer-to-Peer\n"
"-cache Pass this flag to indicate that if the test system supports PCIe address translation cache\n"
"-timeout <n> \n"
" Set pass timeout (in microseconds) for wakeup tests (500 us - 2 sec)\n"
"-timeout <microseconds> \n"
" Set pass timeout (delay in microseconds) for wakeup & WD & timer tests (500us - 2sec)\n"
" Example: -timeout 2000 \n"
"-os Enable the execution of operating system tests\n"
"-hyp Enable the execution of hypervisor tests\n"
Expand Down Expand Up @@ -235,6 +236,7 @@ command_init ()
if (CmdLineArg == NULL) {
g_timeout_pass = WAKEUP_WD_PASS_TIMEOUT_DEFAULT;
g_timeout_fail = g_timeout_pass * WAKEUP_WD_FAILSAFE_TIMEOUT_MULTIPLIER;
g_timer_timeout_us = TIMER_TIMEOUT_DEFAULT;
} else {
/* Accept a single value; ignore any trailing delimiters */
CHAR16 buf[64];
Expand Down Expand Up @@ -266,8 +268,9 @@ command_init ()

g_timeout_pass = (UINT32)StrDecimalToUintn(buf);
g_timeout_fail = g_timeout_pass * WAKEUP_WD_FAILSAFE_TIMEOUT_MULTIPLIER;
if (!(g_timeout_pass >= WAKEUP_WD_PASS_TIMEOUT_THRESHOLD &&
g_timeout_pass <= WAKEUP_WD_PASS_TIMEOUT_MAX_THRESHOLD)) {
g_timer_timeout_us = g_timeout_pass;
if (!(g_timeout_pass >= TIMEOUT_THRESHOLD &&
g_timeout_pass <= TIMEOUT_MAX_THRESHOLD)) {
Print(L"Invalid -timeout: pass timeout range should be within 500ms and 2sec\n");
return SHELL_INVALID_PARAMETER;
}
Expand Down
4 changes: 2 additions & 2 deletions apps/uefi/pc_bsa_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ HelpMsg (VOID)
"-skipmodule \n"
" Skip the specified modules (comma-separated names).\n"
" Example: -skipmodule PE,GIC,PCIE\n"
"-timeout <n> \n"
" Set pass timeout (in microseconds) for wakeup tests (500 us - 2 sec)\n"
"-timeout <microseconds> \n"
" Set pass timeout (delay in microseconds) for wakeup & WD & timer tests (500us - 2sec)\n"
" Example: -timeout 2000 \n"
"-v <n> Verbosity of the prints\n"
" 1 prints all, 5 prints only the errors\n");
Expand Down
4 changes: 2 additions & 2 deletions apps/uefi/sbsa_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ HelpMsg (VOID)
" Example: -skipmodule PE,GIC,PCIE\n"
"-slc Provide system last level cache type\n"
" 1 - PPTT PE-side cache, 2 - HMAT mem-side cache\n"
"-timeout <n> \n"
" Set pass timeout (in microseconds) for wakeup tests (500 us - 2 sec)\n"
"-timeout <microseconds> \n"
" Set pass timeout (delay in microseconds) for wakeup & WD & timer tests (500us - 2sec)\n"
" Example: -timeout 2000 \n"
"-v <n> Verbosity of the prints\n"
" 1 prints all, 5 prints only the errors\n");
Expand Down
58 changes: 48 additions & 10 deletions apps/uefi/sbsa_nist_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ UINT32 g_crypto_support = TRUE;
UINT64 g_stack_pointer;
UINT64 g_exception_ret_addr;
UINT64 g_ret_addr;
UINT32 g_wakeup_timeout;
UINT32 g_timeout_pass;
UINT32 g_timeout_fail;
UINT32 g_timer_timeout_us;
UINT32 g_its_init = 0;
UINT32 g_sys_last_lvl_cache;
SHELL_FILE_HANDLE g_acs_log_file_handle;
Expand Down Expand Up @@ -351,8 +353,8 @@ HelpMsg (
"-no_crypto_ext Pass this flag if cryptography extension not supported due to export restrictions\n"
"-p2p Pass this flag to indicate that PCIe Hierarchy Supports Peer-to-Peer\n"
"-cache Pass this flag to indicate that if the test system supports PCIe address translation cache\n"
"-timeout <n> \n"
" Set pass timeout (in microseconds) for wakeup tests (500 us - 2 sec)\n"
"-timeout <microseconds> \n"
" Set pass timeout (delay in microseconds) for wakeup & WD & timer tests (500us - 2sec)\n"
" Example: -timeout 2000 \n"
"-slc Provide system last level cache type\n"
" 1 - PPTT PE-side cache, 2 - HMAT mem-side cache\n"
Expand Down Expand Up @@ -441,16 +443,52 @@ command_init ()
}
}

// Options with Values
/* Parse -timeout */
CmdLineArg = ShellCommandLineGetValue (ParamPackage, L"-timeout");
if (CmdLineArg == NULL) {
g_wakeup_timeout = 1;
g_timeout_pass = WAKEUP_WD_PASS_TIMEOUT_DEFAULT;
g_timeout_fail = g_timeout_pass * WAKEUP_WD_FAILSAFE_TIMEOUT_MULTIPLIER;
g_timer_timeout_us = TIMER_TIMEOUT_DEFAULT;
} else {
g_wakeup_timeout = StrDecimalToUintn(CmdLineArg);
Print(L"Wakeup timeout multiple %d.\n", g_wakeup_timeout);
if (g_wakeup_timeout > 5)
g_wakeup_timeout = 5;
}
/* Accept a single value; ignore any trailing delimiters */
CHAR16 buf[64];
UINTN len = StrLen(CmdLineArg);
UINTN i;

if (len >= (sizeof(buf) / sizeof(buf[0])))
len = (sizeof(buf) / sizeof(buf[0])) - 1;

for (i = 0; i < len; i++) {
buf[i] = CmdLineArg[i];
}
buf[i] = L'\0';

if (i == 0) {
Print(L"Invalid -timeout: provide a timeout value\n");
return SHELL_INVALID_PARAMETER;
}

/* trim leading/trailing spaces */
while (buf[0] == L' ' || buf[0] == L'\t') {
for (i = 0; buf[i] != L'\0'; i++) buf[i] = buf[i + 1];
}
i = StrLen(buf);
while (i > 0 && (buf[i - 1] == L' ' || buf[i - 1] == L'\t')) {
buf[i - 1] = L'\0';
i--;
}

g_timeout_pass = (UINT32)StrDecimalToUintn(buf);
g_timeout_fail = g_timeout_pass * WAKEUP_WD_FAILSAFE_TIMEOUT_MULTIPLIER;
g_timer_timeout_us = g_timeout_pass;
if (!(g_timeout_pass >= TIMEOUT_THRESHOLD &&
g_timeout_pass <= TIMEOUT_MAX_THRESHOLD)) {
Print(L"Invalid -timeout: pass timeout range should be within 500ms and 2sec\n");
return SHELL_INVALID_PARAMETER;
}

Print(L"Timeouts (us): PASS=%d, FAIL=%d\n", g_timeout_pass, g_timeout_fail);
}

// Options with Values
CmdLineArg = ShellCommandLineGetValue (ParamPackage, L"-v");
Expand Down
4 changes: 2 additions & 2 deletions apps/uefi/vbsa_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ HelpMsg (VOID)
" Example: -skip B_PE_01,B_GIC_02\n"
"-skip-dp-nic-ms \n"
" Skip PCIe tests for DisplayPort, Network, Mass Storage devices and Unclassified devices\n"
"-timeout <n> \n"
" Set pass timeout (in microseconds) for wakeup tests (500 us - 2 sec)\n"
"-timeout <microseconds> \n"
" Set pass timeout (delay in microseconds) for wakeup & WD & timer tests (500us - 2sec)\n"
" Example: -timeout 2000 \n"
"-v <n> Verbosity of the prints\n"
" 1 prints all, 5 prints only the errors\n");
Expand Down
4 changes: 2 additions & 2 deletions apps/uefi/xbsa_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ HelpMsg (VOID)
"-skipmodule \n"
" Skip the specified modules (comma-separated names).\n"
" Example: -skipmodule PE,GIC,PCIE\n"
"-timeout <n> \n"
" Set pass timeout (in microseconds) for wakeup tests (500 us - 2 sec)\n"
"-timeout <microseconds> \n"
" Set pass timeout (delay in microseconds) for wakeup & WD & timer tests (500us - 2sec)\n"
" Example: -timeout 2000 \n"
"-v <n> Verbosity of the prints\n"
" 1 prints all, 5 prints only the errors\n"
Expand Down
2 changes: 1 addition & 1 deletion docs/common/cli_args.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ semantics so individual READMEs can simply reference it.
| `-skip-dp-nic-ms` | All | Skip PCIe exerciser coverage for DisplayPort, network, and mass-storage devices when those endpoints are unavailable. |
| `-skipmodule <modules>` | All | Exclude the listed modules from the run (for example, `-skipmodule PE,GIC`). |
| `-slc <type>` | SBSA | Provide the system last-level cache implementation (`1` for PPTT PE-side cache, `2` for HMAT memory-side cache). |
| `-timeout <500-2000>` | All | Set pass timeout (in microseconds) for wakeup and watchdog tests (1ms = default, 500us = minimum, 2sec = maximum delay). |
| `-timeout <microseconds>` | All | Set pass timeout (delay in microseconds) for wakeup and watchdog and & timer tests (1ms = wakeup & WD default , 1sec = timer default, 500us = minimum, 2sec = maximum delay). |
| `-v <level>` | All | Set verbosity: 5=ERROR, 4=WARN, 3=TEST, 2=DEBUG, 1=INFO. |

Refer to each specification README for other variant-level constraints, rule
Expand Down
4 changes: 3 additions & 1 deletion pal/baremetal/target/RDN2/include/platform_override_fvp.h
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,10 @@

#define PLATFORM_OVERRIDE_MAX_SID 24

/* TIMEOUT should be in Microsecond 5us to 2 sec */
/* Wakeup/WD timeout (us); range 500us to 2 sec */
#define PLATFORM_OVERRIDE_TIMEOUT 1000 /* time out for DUT */
/* Timer test timeout (us); range 500us to 2 sec */
#define PLATFORM_OVERRIDE_TIMER_TIMEOUT 10000

/* FAIL safe timeout (> PLATFORM_OVERRIDE_TIMEOUT) */
#define PLATFORM_OVERRIDE_FAILSAFE_TIMEOUT (PLATFORM_OVERRIDE_TIMEOUT * 2)
Expand Down
1 change: 1 addition & 0 deletions pal/baremetal/target/RDN2/src/platform_cfg_fvp.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ uint32_t g_sys_last_lvl_cache = PLATFORM_OVERRRIDE_SLC;

uint32_t g_timeout_pass = PLATFORM_OVERRIDE_TIMEOUT;
uint32_t g_timeout_fail = PLATFORM_OVERRIDE_FAILSAFE_TIMEOUT;
uint32_t g_timer_timeout_us = PLATFORM_OVERRIDE_TIMER_TIMEOUT; /* Timer timeout (us) */

const PE_SMBIOS_PROCESSOR_INFO_TABLE platform_smbios_cfg = {
.slot_count = PLATFORM_OVERRIDE_SMBIOS_SLOT_COUNT,
Expand Down
4 changes: 3 additions & 1 deletion pal/baremetal/target/RDV3/include/platform_override_fvp.h
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,10 @@
// This value is arbitrary and may have to be adjusted
#define PLATFORM_BM_OVERRIDE_MAX_IRQ_CNT 0xFFFF /* Max IRQs any device may raise */

/* TIMEOUT should be in Microsecond 5us to 2 sec */
/* Wakeup/WD timeout (us); range 500us to 2 sec */
#define PLATFORM_OVERRIDE_TIMEOUT 1000 /* time out for DUT */
/* Timer test timeout (us); range 500us to 2 sec */
#define PLATFORM_OVERRIDE_TIMER_TIMEOUT 10000

/* FAIL safe timeout (> PLATFORM_OVERRIDE_TIMEOUT) */
#define PLATFORM_OVERRIDE_FAILSAFE_TIMEOUT (PLATFORM_OVERRIDE_TIMEOUT * 2)
Expand Down
1 change: 1 addition & 0 deletions pal/baremetal/target/RDV3/src/platform_cfg_fvp.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ uint32_t g_sys_last_lvl_cache = PLATFORM_OVERRRIDE_SLC;

uint32_t g_timeout_pass = PLATFORM_OVERRIDE_TIMEOUT;
uint32_t g_timeout_fail = PLATFORM_OVERRIDE_FAILSAFE_TIMEOUT;
uint32_t g_timer_timeout_us = PLATFORM_OVERRIDE_TIMER_TIMEOUT; /* Timer timeout (us) */

const PE_SMBIOS_PROCESSOR_INFO_TABLE platform_smbios_cfg = {
.slot_count = PLATFORM_OVERRIDE_SMBIOS_SLOT_COUNT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,10 @@
// This value is arbitrary and may have to be adjusted
#define PLATFORM_BM_OVERRIDE_MAX_IRQ_CNT 0xFFFF /* Max IRQs any device may raise */

/* TIMEOUT should be in Microsecond 5us to 2 sec */
/* Wakeup/WD timeout (us); range 500us to 2 sec */
#define PLATFORM_OVERRIDE_TIMEOUT 1000 /* time out for DUT */
/* Timer test timeout (us); range 500us to 2 sec */
#define PLATFORM_OVERRIDE_TIMER_TIMEOUT 10000

/* FAIL safe timeout (> PLATFORM_OVERRIDE_TIMEOUT) */
#define PLATFORM_OVERRIDE_FAILSAFE_TIMEOUT (PLATFORM_OVERRIDE_TIMEOUT * 2)
Expand Down
1 change: 1 addition & 0 deletions pal/baremetal/target/RDV3CFG1/src/platform_cfg_fvp.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ uint32_t g_sys_last_lvl_cache = PLATFORM_OVERRRIDE_SLC;

uint32_t g_timeout_pass = PLATFORM_OVERRIDE_TIMEOUT;
uint32_t g_timeout_fail = PLATFORM_OVERRIDE_FAILSAFE_TIMEOUT;
uint32_t g_timer_timeout_us = PLATFORM_OVERRIDE_TIMER_TIMEOUT; /* Timer timeout (us) */

const PE_SMBIOS_PROCESSOR_INFO_TABLE platform_smbios_cfg = {
.slot_count = PLATFORM_OVERRIDE_SMBIOS_SLOT_COUNT,
Expand Down
19 changes: 11 additions & 8 deletions test_pool/timer/t005.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ static uint32_t intid;
static uint64_t cnt_base_n;
static int irq_received;
static uint32_t intid_phy;

static
void
isr_sys_timer()
Expand Down Expand Up @@ -58,19 +59,21 @@ payload()
uint64_t timer_num, timer_cnt;
int32_t status;

uint64_t freq = val_get_counter_frequency();
uint64_t ticks;

uint32_t pe_timeout_us;
/* System timer */
ticks = freq * 1;
if (ticks > 0xFFFFFFFF)
ticks = 0xFFFFFFFF;
if (g_timer_timeout_us == 0) {
val_print(ERROR, "\n Timer timeout is zero; configure a valid timeout");
val_set_status(index, RESULT_FAIL(3));
return;
}
ticks = CEIL_TO_MAX_SYS_TIMEOUT(val_get_timeout_to_ticks(g_timer_timeout_us));
sys_timer_ticks = (uint32_t)ticks;

/* PE timer */
ticks = freq * 2;
if (ticks > 0xFFFFFFFF)
ticks = 0xFFFFFFFF;
pe_timeout_us = g_timer_timeout_us * 2;

ticks = CEIL_TO_MAX_SYS_TIMEOUT(val_get_timeout_to_ticks(pe_timeout_us));
pe_timer_ticks = (uint32_t)ticks;

timer_num = val_timer_get_info(TIMER_INFO_NUM_PLATFORM_TIMERS, 0);
Expand Down
1 change: 1 addition & 0 deletions val/include/acs_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ extern uint32_t g_crypto_support;
extern uint32_t g_drtm_acs_dlme[];
extern uint64_t g_drtm_acs_dlme_size;
extern uint32_t g_el1skiptrap_mask;
extern uint32_t g_timer_timeout_us;


#endif
6 changes: 3 additions & 3 deletions val/include/pal_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
#define TIMEOUT_LARGE PLATFORM_BM_OVERRIDE_TIMEOUT_LARGE
#define TIMEOUT_MEDIUM PLATFORM_BM_OVERRIDE_TIMEOUT_MEDIUM
#define TIMEOUT_SMALL PLATFORM_BM_OVERRIDE_TIMEOUT_SMALL
#define WAKEUP_WD_SYS_TIMEOUT_MAX PLATFORM_OVERRIDE_SYS_TIMEOUT_MAX
#define SYS_TIMEOUT_MAX PLATFORM_OVERRIDE_SYS_TIMEOUT_MAX
#endif // TARGET_BAREMETAL

#ifdef TARGET_LINUX
Expand All @@ -86,7 +86,7 @@
#define MMU_PGT_IAS 48
#define MMU_PGT_OAS 48

#define WAKEUP_WD_SYS_TIMEOUT_MAX 0XFFFFFFFF
#define SYS_TIMEOUT_MAX 0XFFFFFFFF
#endif //TARGET_LINUX

#ifdef TARGET_UEFI
Expand Down Expand Up @@ -128,7 +128,7 @@
#define PCIE_MAX_DEV PLATFORM_OVERRIDE_PCIE_MAX_DEV
#define PCIE_MAX_FUNC PLATFORM_OVERRIDE_PCIE_MAX_FUNC
#define MAX_IRQ_CNT PLATFORM_OVERRIDE_MAX_IRQ_CNT
#define WAKEUP_WD_SYS_TIMEOUT_MAX PLATFORM_OVERRIDE_SYS_TIMEOUT_MAX
#define SYS_TIMEOUT_MAX PLATFORM_OVERRIDE_SYS_TIMEOUT_MAX
#endif // TARGET_UEFI

/* The following are common across all platform unless guarded explicitly */
Expand Down
21 changes: 11 additions & 10 deletions val/include/val_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,16 @@ extern uint32_t g_print_level;

#define VAL_EXTRACT_BITS(data, start, end) ((data >> start) & ((1ul << (end-start+1))-1))

#define WAKEUP_WD_PASS_TIMEOUT_THRESHOLD 500 /*minimum timeout that can be
set for wakeup and wd tests*/
#define WAKEUP_WD_PASS_TIMEOUT_MAX_THRESHOLD 2000000 /*minimum timeout that can be
set for wakeup and wd tests*/
#define WAKEUP_WD_FAILSAFE_TIMEOUT_MULTIPLIER 100 /*fail safe timeout multipler
multiplied to timeout of ISR
under test*/
#define WAKEUP_WD_PASS_TIMEOUT_DEFAULT 1000 /*minimum timeout set
by default (1ms)*/
#define TIMEOUT_THRESHOLD 500 /*minimum timeout that can be
set for wakeup and wd and timer tests*/
#define TIMEOUT_MAX_THRESHOLD 2000000 /*maximum timeout that can be
set for wakeup and wd and timer tests*/
#define WAKEUP_WD_FAILSAFE_TIMEOUT_MULTIPLIER 100 /*fail safe timeout multipler
multiplied to timeout of ISR under test*/
#define WAKEUP_WD_PASS_TIMEOUT_DEFAULT 1000 /*minimum timeout set
by default for wakeup & WD tests (1ms)*/
#define TIMER_TIMEOUT_DEFAULT 1000000 /*minimum timeout set
by default for timer tests (1s)*/

/* EL1 skip-trap param defines (-el1skiptrap) */
#define EL1SKIPTRAP_PMSIDR (1u << 0)
Expand Down Expand Up @@ -505,7 +506,7 @@ void val_setup_mair_register(void);
#define CEIL_TO_MAX_SYS_TIMEOUT(v) \
({ \
uint64_t __x = (uint64_t)(v); \
((__x >> 32) != 0) ? WAKEUP_WD_SYS_TIMEOUT_MAX : (uint32_t)__x; \
((__x >> 32) != 0) ? SYS_TIMEOUT_MAX : (uint32_t)__x; \
})

void val_memory_create_info_table(uint64_t *memory_info_table);
Expand Down
Loading