Merge "Add 2 alert tests in edacloud_nightly regression suite"
diff --git a/hw/top_matcha/dv/chip_sim_cfg.hjson b/hw/top_matcha/dv/chip_sim_cfg.hjson
index 1712c5b..f32f306 100644
--- a/hw/top_matcha/dv/chip_sim_cfg.hjson
+++ b/hw/top_matcha/dv/chip_sim_cfg.hjson
@@ -1148,7 +1148,7 @@
{
name: chip_sw_alert_handler_escalation
uvm_test_seq: chip_sw_alert_handler_escalation_vseq
- sw_images: ["//sw/device/tests/sim_dv:alert_handler_escalation_test:1"]
+ sw_images: ["//sw/device/tests/sim_dv:alert_handler_escalation_test:1:matcha"]
en_run_modes: ["sw_test_mode_test_rom"]
// Disable scoreboard to avoid incorrect alert prediction from the alert_monitor. Due to the
// cross-domain alert senders and receivers, the monitor from the chip level did not support
@@ -1158,7 +1158,7 @@
{
name: chip_sw_alert_handler_ping_timeout
uvm_test_seq: chip_sw_base_vseq
- sw_images: ["//sw/device/tests:alert_handler_ping_timeout_test:1"]
+ sw_images: ["//sw/device/tests:alert_handler_ping_timeout_test:1:matcha"]
en_run_modes: ["sw_test_mode_test_rom"]
// Disable scoreboard to avoid incorrect alert prediction from the alert_monitor. Due to the
// cross-domain alert senders and receivers, the monitor from the chip level did not support
@@ -1874,6 +1874,8 @@
tests: [
"chip_rv_dm_ndm_reset_req",
"chip_sw_aes_smoketest",
+ "chip_sw_alert_handler_escalation",
+ "chip_sw_alert_handler_ping_timeout",
"chip_sw_alert_test",
"chip_sw_aon_timer_smoketest",
"chip_sw_clkmgr_smoketest",
@@ -1911,6 +1913,8 @@
tests: [
"chip_rv_dm_ndm_reset_req",
"chip_sw_aes_smoketest",
+ "chip_sw_alert_handler_escalation",
+ "chip_sw_alert_handler_ping_timeout",
"chip_sw_alert_test",
"chip_sw_aon_timer_smoketest",
"chip_sw_clkmgr_smoketest",
diff --git a/sw/device/tests/BUILD b/sw/device/tests/BUILD
index c7df613..1f7375c 100644
--- a/sw/device/tests/BUILD
+++ b/sw/device/tests/BUILD
@@ -710,6 +710,22 @@
],
)
+matcha_dv_test(
+ name = "alert_handler_ping_timeout_test",
+ srcs = ["@lowrisc_opentitan//sw/device/tests:alert_handler_ping_timeout_test.c"],
+ deps = [
+ ":test_dv_lib_opentitan",
+ "//hw/top_matcha:alert_handler_regs",
+ "//sw/device/lib/dif:alert_handler",
+ "@lowrisc_opentitan//sw/device/lib/base:math",
+ "@lowrisc_opentitan//sw/device/lib/dif:rv_core_ibex",
+ "@lowrisc_opentitan//sw/device/lib/dif:rv_plic",
+ "@lowrisc_opentitan//sw/device/lib/testing:alert_handler_testutils",
+ "@lowrisc_opentitan//sw/device/lib/testing:isr_testutils",
+ "@lowrisc_opentitan//sw/device/lib/testing:rv_plic_testutils",
+ ],
+)
+
# Smoke tests
matcha_dv_test(
name = "aes_smoketest",
diff --git a/sw/device/tests/sim_dv/BUILD b/sw/device/tests/sim_dv/BUILD
index 17d264a..fe999fc 100644
--- a/sw/device/tests/sim_dv/BUILD
+++ b/sw/device/tests/sim_dv/BUILD
@@ -92,3 +92,21 @@
"@lowrisc_opentitan//sw/device/lib/testing/test_framework:status",
],
)
+
+matcha_dv_test(
+ name = "alert_handler_escalation_test",
+ srcs = ["@lowrisc_opentitan//sw/device/tests/sim_dv:alert_handler_escalation.c"],
+ deps = [
+ "//hw/top_matcha:alert_handler_regs",
+ "//sw/device/lib/arch:device",
+ "//sw/device/lib/dif:alert_handler",
+ "//sw/device/lib/dif:clkmgr",
+ "//sw/device/lib/dif:rstmgr",
+ "//sw/device/tests:test_dv_lib_opentitan",
+ "@lowrisc_opentitan//sw/device/lib/dif:keymgr",
+ "@lowrisc_opentitan//sw/device/lib/dif:rv_core_ibex",
+ "@lowrisc_opentitan//sw/device/lib/testing:alert_handler_testutils",
+ "@lowrisc_opentitan//sw/device/lib/testing:keymgr_testutils",
+ "@lowrisc_opentitan//sw/device/lib/testing:rstmgr_testutils",
+ ],
+)