Skip to content

Commit

Permalink
[ci, sival] Fix validation errors on testplans
Browse files Browse the repository at this point in the history
Validation can be verified using the commands:
```
./util/validate_testplans.py --schema hw/lint/sival_testplan_schema.hjson \
                            --dir hw/top_earlgrey/data
./util/validate_testplans.py --schema hw/lint/sival_testplan_schema.hjson \
                            --dir hw/top_earlgrey/data/ip
```

Signed-off-by: Alex Jones <[email protected]>
  • Loading branch information
AlexJones0 authored and nbdd0121 committed Sep 30, 2024
1 parent cf225c4 commit c5ce570
Show file tree
Hide file tree
Showing 14 changed files with 52 additions and 11 deletions.
9 changes: 9 additions & 0 deletions hw/top_earlgrey/data/chip_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_padctrl_attributes"]
bazel: []
}
{
name: chip_padctrl_attributes
Expand All @@ -129,6 +130,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_padctrl_attributes"]
bazel: []
}
{
name: chip_sw_sleep_pin_mio_dio_val
Expand Down Expand Up @@ -171,6 +173,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_sw_sleep_pin_wake"]
bazel: []
}
{
name: chip_sw_sleep_pin_retention
Expand Down Expand Up @@ -371,6 +374,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_sw_ast_clk_rst_inputs"]
bazel: []
}
{
name: chip_sw_ast_sys_clk_jitter
Expand All @@ -391,6 +395,7 @@
"chip_sw_kmac_mode_kmac_jitter_en",
"chip_sw_sram_ctrl_scrambled_access_jitter_en",
"chip_sw_edn_entropy_reqs_jitter"]
bazel: []
}
{
name: chip_sw_ast_usb_clk_calib
Expand All @@ -411,6 +416,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_sw_usb_ast_clk_calib"]
bazel: []
}

// SENSOR_CTRL tests:
Expand Down Expand Up @@ -442,6 +448,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_sw_sensor_ctrl_status"]
bazel: []
}
{
name: chip_sw_pwrmgr_sleep_sensor_ctrl_alert_wakeup
Expand All @@ -453,6 +460,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_sw_pwrmgr_sleep_sensor_ctrl_alert_wakeup"]
bazel: []
}

////////////////////////////
Expand Down Expand Up @@ -735,6 +743,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_sw_power_sleep_load"]
bazel: []
}

{
Expand Down
4 changes: 4 additions & 0 deletions hw/top_earlgrey/data/ip/chip_adc_ctrl_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_sw_adc_ctrl_sleep_debug_cable_wakeup"]
bazel: []
}
{
name: chip_sw_adc_ctrl_sleep_debug_cable_wakeup
Expand All @@ -54,6 +55,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_sw_adc_ctrl_sleep_debug_cable_wakeup"]
bazel: []
}
{
name: chip_sw_adc_ctrl_normal
Expand All @@ -63,6 +65,7 @@
si_stage: SV2
lc_states: ["PROD"]
tests: []
bazel: []
}
{
name: chip_sw_adc_ctrl_oneshot
Expand All @@ -72,6 +75,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: []
bazel: []
}
]
}
3 changes: 3 additions & 0 deletions hw/top_earlgrey/data/ip/chip_aes_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: []
bazel: []
}
{
name: chip_sw_aes_entropy
Expand Down Expand Up @@ -180,6 +181,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_sw_aes_prng_reseed"]
bazel: []
}
{
name: chip_sw_aes_force_prng_reseed
Expand Down Expand Up @@ -213,6 +215,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_sw_aes_force_prng_reseed"]
bazel: []
}
{
name: chip_sw_aes_idle
Expand Down
4 changes: 4 additions & 0 deletions hw/top_earlgrey/data/ip/chip_alert_handler_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_sw_alert_handler_escalation"]
bazel: []
otp_mutate: true
host_support: true
}
Expand All @@ -67,6 +68,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: []
bazel: []
otp_mutate: false
}
{
Expand All @@ -85,6 +87,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: []
bazel: []
}
{
name: chip_sw_all_escalation_resets
Expand Down Expand Up @@ -190,6 +193,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_sw_alert_handler_lpg_sleep_mode_alerts"]
bazel: []
}
{
name: chip_sw_alert_handler_lpg_sleep_mode_pings
Expand Down
2 changes: 2 additions & 0 deletions hw/top_earlgrey/data/ip/chip_flash_ctrl_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_sw_flash_rma_unlocked"]
bazel: []
}
{
name: chip_sw_flash_scramble
Expand Down Expand Up @@ -251,6 +252,7 @@
lc_states: ["DEV", "PROD", "PROD_END", "RMA"]
boot_stages: ["rom_ext"]
tests: ["chip_sw_flash_ctrl_lc_rw_en"]
bazel: []
}
{
name: chip_sw_flash_lc_escalate_en
Expand Down
1 change: 1 addition & 0 deletions hw/top_earlgrey/data/ip/chip_keymgr_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"chip_sw_keymgr_key_derivation",
"chip_sw_keymgr_key_derivation_jitter_en",
]
bazel: []
}
{
name: chip_sw_keymgr_sideload_kmac_error
Expand Down
1 change: 1 addition & 0 deletions hw/top_earlgrey/data/ip/chip_kmac_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["chip_sw_kmac_entropy"]
bazel: []
}
{
name: chip_sw_kmac_idle
Expand Down
2 changes: 2 additions & 0 deletions hw/top_earlgrey/data/ip/chip_lc_ctrl_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,13 @@
Verify that the features that should indeed be disabled are indeed disabled.
'''
stage: V2
si_stage: None
tests: ["chip_sw_lc_walkthrough_dev",
"chip_sw_lc_walkthrough_prod",
"chip_sw_lc_walkthrough_prodend",
"chip_sw_lc_walkthrough_rma",
"chip_sw_lc_walkthrough_testunlocks"]
bazel: []
}
{
name: chip_sw_lc_ctrl_volatile_raw_unlock
Expand Down
5 changes: 5 additions & 0 deletions hw/top_earlgrey/data/ip/chip_otp_ctrl_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"chip_sw_keymgr_key_derivation",
"chip_sw_otbn_mem_scramble",
"chip_sw_rv_core_ibex_icache_invalidate"]
bazel: []
}
{
name: chip_sw_otp_ctrl_entropy
Expand All @@ -68,6 +69,7 @@
"chip_sw_keymgr_key_derivation",
"chip_sw_otbn_mem_scramble",
"chip_sw_rv_core_ibex_icache_invalidate"]
bazel: []
}
{
name: chip_sw_otp_ctrl_program
Expand All @@ -90,6 +92,7 @@
si_stage: SV1
lc_states: ["PROD"]
tests: ["chip_sw_lc_ctrl_transition"]
bazel: []
}
{
name: chip_sw_otp_ctrl_program_error
Expand Down Expand Up @@ -180,6 +183,7 @@
si_stage: SV3
lc_states: ["TEST_UNLOCKED", "RMA"]
tests: ["chip_prim_tl_access"]
bazel: []
}
{
name: chip_sw_otp_ctrl_vendor_test_csr_access
Expand Down Expand Up @@ -232,6 +236,7 @@
si_stage: SV1
lc_states: ["TEST_UNLOCKED"]
tests: []
bazel: []
}
{
name: otp_ctrl_partition_access_locked
Expand Down
1 change: 1 addition & 0 deletions hw/top_earlgrey/data/ip/chip_rom_ctrl_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: []
bazel: []
}
]
}
1 change: 1 addition & 0 deletions hw/top_earlgrey/data/ip/chip_rv_core_ibex_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
stage: V2S
si_stage: None
tests: ["chip_sw_rv_core_ibex_lockstep_glitch"]
bazel: []
}
{
name: chip_sw_rv_core_ibex_alerts
Expand Down
22 changes: 11 additions & 11 deletions hw/top_earlgrey/data/ip/chip_rv_dm_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
tests: ["chip_jtag_csr_rw"]
bazel: ["//sw/device/tests:rv_dm_csr_rw"],
lc_states: ["DEV"]
host_support: "true"
host_support: true
features: [
"RV_DM.JTAG.FSM",
"RV_DM.JTAG.DTM"
Expand Down Expand Up @@ -55,7 +55,7 @@
tests: ["chip_jtag_mem_access"]
bazel: ["//sw/device/tests:rv_dm_mem_access"],
lc_states: ["DEV"]
host_support: "true"
host_support: true
features: [
"RV_DM.JTAG.FSM",
"RV_DM.JTAG.DTM",
Expand Down Expand Up @@ -95,7 +95,7 @@
"rom_e2e_jtag_debug_rma"]
bazel: ["//sw/device/silicon_creator/rom/e2e/jtag_inject:rom_e2e_openocd_debug_test"],
lc_states: ["DEV"]
host_support: "true"
host_support: true
features: [
"RV_DM.JTAG.FSM",
"RV_DM.JTAG.DTM",
Expand All @@ -119,7 +119,7 @@
tests: ["chip_rv_dm_ndm_reset_req"]
bazel: ["//sw/device/tests:rv_dm_ndm_reset_req"],
lc_states: ["DEV"]
host_support: "true"
host_support: true
features: [
"RV_DM.JTAG.FSM",
"RV_DM.JTAG.DTM",
Expand Down Expand Up @@ -151,7 +151,7 @@
tests: ["chip_sw_rv_dm_ndm_reset_req_when_cpu_halted"]
bazel: ["//sw/device/tests:rv_dm_ndm_reset_req_when_cpu_halted"],
lc_states: ["DEV"]
host_support: "true"
host_support: true
features: [
"RV_DM.JTAG.FSM",
"RV_DM.JTAG.DTM",
Expand All @@ -172,7 +172,7 @@
tests: ["chip_sw_rv_dm_access_after_wakeup"]
bazel: ["//sw/device/tests:rv_dm_access_after_wakeup"],
lc_states: ["DEV"]
host_support: "true"
host_support: true
features: [
"RV_DM.JTAG.FSM",
"RV_DM.JTAG.DTM"
Expand Down Expand Up @@ -209,7 +209,7 @@
tests: ["chip_tap_straps_rma"]
bazel: ["//sw/device/tests:rv_dm_jtag_tap_sel"],
lc_states: ["DEV"]
host_support: "true"
host_support: true
features: [
"RV_DM.JTAG.FSM",
"RV_DM.JTAG.DTM"
Expand Down Expand Up @@ -255,7 +255,7 @@
],
lc_states: ["RAW", "TEST_LOCKED", "TEST_UNLOCKED", "DEV", "RMA", "PROD",
"PROD_END", "SCRAP"]
host_support: "true"
host_support: true
features: [
"RV_DM.JTAG.FSM",
"RV_DM.JTAG.DTM"
Expand All @@ -275,7 +275,7 @@
tests: []
bazel: ["//sw/device/tests:rv_dm_jtag"],
lc_states: ["DEV"]
host_support: "true"
host_support: true
features: [
"RV_DM.JTAG.FSM",
]
Expand All @@ -294,7 +294,7 @@
tests: []
bazel: ["//sw/device/tests:rv_dm_dtm"],
lc_states: ["DEV"]
host_support: "true"
host_support: true
features: [
"RV_DM.JTAG.FSM",
"RV_DM.JTAG.DTM",
Expand Down Expand Up @@ -323,7 +323,7 @@
tests: []
bazel: ["//sw/device/tests:rv_dm_control_status"],
lc_states: ["DEV"]
host_support: "true"
host_support: true
features: [
"RV_DM.JTAG.FSM",
"RV_DM.JTAG.DTM",
Expand Down
2 changes: 2 additions & 0 deletions hw/top_earlgrey/data/ip/chip_spi_host_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["//sw/device/tests:spi_passthru_test"]
bazel: []
}
{
name: chip_sw_spi_host_configuration
Expand All @@ -70,6 +71,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: ["//sw/device/tests:spi_host_config_test"]
bazel: []
}
{
name: chip_sw_spi_host_events
Expand Down
Loading

0 comments on commit c5ce570

Please sign in to comment.