From a72cf5a7ae68b1dab4e369311f9ae74c812af59f Mon Sep 17 00:00:00 2001 From: Nilesh Patel Date: Fri, 28 Feb 2025 09:30:52 -0800 Subject: [PATCH 1/2] boot sequencer fsm fixed and added a write to SOC_MCI_REG_CPTRA_BOOT_GO --- .../mcu_cptra_bringup/mcu_cptra_bringup.c | 12 ++++-------- src/mci/rtl/mci_boot_seqr.sv | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/integration/test_suites/mcu_cptra_bringup/mcu_cptra_bringup.c b/src/integration/test_suites/mcu_cptra_bringup/mcu_cptra_bringup.c index b966b334e..95fa548da 100644 --- a/src/integration/test_suites/mcu_cptra_bringup/mcu_cptra_bringup.c +++ b/src/integration/test_suites/mcu_cptra_bringup/mcu_cptra_bringup.c @@ -57,16 +57,12 @@ void main (void) { uint32_t mbox_resp_data; uint32_t mci_boot_fsm_go; uint32_t sram_data; + VPRINTF(LOW, "=================\nMCU Boot FSM Go\n=================\n\n") - // Writing to Caliptra Boot GO register of MCI for CSS BootFSM to bring Caliptra out of reset - // This is just to see CSSBootFSM running correctly - lsu_write_32(SOC_MCI_REG_MCI_BOOTFSM_GO, 1); - VPRINTF(LOW, "MCU: Writing MCI SOC_MCI_REG_MCI_BOOTFSM_GO\n"); - - mci_boot_fsm_go = lsu_read_32(SOC_MCI_REG_MCI_BOOTFSM_GO); - VPRINTF(LOW, "MCU: Reading SOC_MCI_REG_MCI_BOOTFSM_GO %x\n", mci_boot_fsm_go); - + // writing SOC_MCI_REG_CPTRA_BOOT_GO register of MCI for CPTRA Boot FSM to bring Caliptra out of reset + lsu_write_32(SOC_MCI_REG_CPTRA_BOOT_GO, 1); + VPRINTF(LOW, "MCU: Writing MCI SOC_MCI_REG_CPTRA_BOOT_GO\n"); VPRINTF(LOW, "=================\nMCU Caliptra Bringup\n=================\n\n") diff --git a/src/mci/rtl/mci_boot_seqr.sv b/src/mci/rtl/mci_boot_seqr.sv index ee54d2f83..f08648880 100644 --- a/src/mci/rtl/mci_boot_seqr.sv +++ b/src/mci/rtl/mci_boot_seqr.sv @@ -182,7 +182,7 @@ always_comb begin BOOT_LCC: begin lc_init_nxt = 1'b1; if(lc_done_sync) begin - boot_fsm_nxt = BOOT_BREAKPOINT; + boot_fsm_nxt = BOOT_BREAKPOINT_CHECK; end end BOOT_BREAKPOINT_CHECK: begin From b3db2bb6396ab169047ec7c7f94f59b384bb857e Mon Sep 17 00:00:00 2001 From: Nilesh Patel Date: Fri, 28 Feb 2025 18:24:59 +0000 Subject: [PATCH 2/2] MICROSOFT AUTOMATED PIPELINE: Stamp 'pateln_mci_fix' with updated timestamp and hash after successful run --- .github/workflow_metadata/pr_hash | 2 +- .github/workflow_metadata/pr_timestamp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflow_metadata/pr_hash b/.github/workflow_metadata/pr_hash index 0722a0d6b..cb628b72d 100644 --- a/.github/workflow_metadata/pr_hash +++ b/.github/workflow_metadata/pr_hash @@ -1 +1 @@ -d79625721f3c831cf01ce14b1bcb10b91ca94ddefd442c2cd02b2c26c2593b46ef0144357be8d8fd61dbad02e7f649f1 \ No newline at end of file +aa8cc2b74f00703e335f280adb76599e2d9e87c02415af659798d1bddc7f08390184d640ca9440e82c8be46aeea656b2 \ No newline at end of file diff --git a/.github/workflow_metadata/pr_timestamp b/.github/workflow_metadata/pr_timestamp index 8c69485ca..43c27084f 100644 --- a/.github/workflow_metadata/pr_timestamp +++ b/.github/workflow_metadata/pr_timestamp @@ -1 +1 @@ -1740698514 \ No newline at end of file +1740767094 \ No newline at end of file