-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* MLDSA sva, keygen randomization in tb, abr submod update * re-enabled mldsa smoke tests * updated vf files * updated vf file * disabled sva valid/ready flag for mldsa * MICROSOFT AUTOMATED PIPELINE: Stamp 'mojtaba-mldsa-smoketest' with updated timestamp and hash after successful run * updated submodule * Add failure inject smoke test * Add rand keygen test * Add tests to regression * Add random seed * fixed typo * updated linker to use all of DCCM, preload data sections to DCCM, move data vectors from stack to global namespace (data) * MICROSOFT AUTOMATED PIPELINE: Stamp 'mojtaba-mldsa-smoketest' with updated timestamp and hash after successful run * Update inject logic, fix indent * MICROSOFT AUTOMATED PIPELINE: Stamp 'mojtaba-mldsa-smoketest' with updated timestamp and hash after successful run --------- Co-authored-by: Kiran Upadhyayula <[email protected]>
- Loading branch information
1 parent
bf69cd3
commit de9d9c8
Showing
22 changed files
with
1,166 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1cad8694bd690a699ed8a95772494825b142b6cb12db11fa682a9c71e0865c474b066e6f3c1abe35ce52b03edbac73c1 | ||
c8e06113e37e54e9876411db9113dde467573ddcdfa04c21e4aabed77398465566c22fc6db80017342843e5b55280e45 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1734735334 | ||
1734986966 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120 changes: 120 additions & 0 deletions
120
src/integration/test_suites/smoke_test_mldsa_edge/caliptra_isr.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// --------------------------------------------------------------------- | ||
// File: caliptra_isr.h | ||
// Description: | ||
// Provides function declarations for use by external test files, so | ||
// that the ISR functionality may behave like a library. | ||
// TODO: | ||
// This header file includes inline function definitions for event and | ||
// test specific interrupt service behavior, so it should be copied and | ||
// modified for each test. | ||
// --------------------------------------------------------------------- | ||
|
||
#ifndef CALIPTRA_ISR_H | ||
#define CALIPTRA_ISR_H | ||
|
||
#define EN_ISR_PRINTS 1 | ||
|
||
#include "caliptra_defines.h" | ||
#include <stdint.h> | ||
#include "printf.h" | ||
|
||
/* --------------- symbols/typedefs --------------- */ | ||
typedef struct { | ||
uint32_t doe_error; | ||
uint32_t doe_notif; | ||
uint32_t ecc_error; | ||
uint32_t ecc_notif; | ||
uint32_t hmac_error; | ||
uint32_t hmac_notif; | ||
uint32_t kv_error; | ||
uint32_t kv_notif; | ||
uint32_t sha512_error; | ||
uint32_t sha512_notif; | ||
uint32_t sha256_error; | ||
uint32_t sha256_notif; | ||
uint32_t soc_ifc_error; | ||
uint32_t soc_ifc_notif; | ||
uint32_t sha512_acc_error; | ||
uint32_t sha512_acc_notif; | ||
uint32_t mldsa_error; | ||
uint32_t mldsa_notif; | ||
uint32_t axi_dma_error; | ||
uint32_t axi_dma_notif; | ||
} caliptra_intr_received_s; //TODO: add mldsa intr | ||
extern volatile caliptra_intr_received_s cptra_intr_rcv; | ||
|
||
////////////////////////////////////////////////////////////////////////////// | ||
// Function Declarations | ||
// | ||
|
||
// Performs all the CSR setup to configure and enable vectored external interrupts | ||
void init_interrupts(void); | ||
|
||
// These inline functions are used to insert event-specific functionality into the | ||
// otherwise generic ISR that gets laid down by the parameterized macro "nonstd_veer_isr" | ||
inline void service_doe_error_intr() {return;} | ||
inline void service_doe_notif_intr() {return; | ||
} | ||
|
||
inline void service_ecc_error_intr() {return;} | ||
inline void service_ecc_notif_intr() {return; | ||
} | ||
|
||
inline void service_hmac_error_intr() {return;} | ||
inline void service_hmac_notif_intr() {return; | ||
} | ||
|
||
inline void service_kv_error_intr() {return;} | ||
inline void service_kv_notif_intr() {return;} | ||
inline void service_sha512_error_intr() {return;} | ||
inline void service_sha512_notif_intr() {return; | ||
} | ||
|
||
inline void service_sha256_error_intr() {return;} | ||
inline void service_sha256_notif_intr() {return; | ||
} | ||
|
||
|
||
inline void service_soc_ifc_error_intr() {return; | ||
} | ||
|
||
inline void service_soc_ifc_notif_intr () {return; | ||
} | ||
|
||
inline void service_sha512_acc_error_intr() {return;} | ||
inline void service_sha512_acc_notif_intr() {return; | ||
} | ||
|
||
inline void service_mldsa_error_intr() {return;} | ||
inline void service_mldsa_notif_intr() { | ||
uint32_t * reg = (uint32_t *) (CLP_MLDSA_REG_INTR_BLOCK_RF_NOTIF_INTERNAL_INTR_R); | ||
uint32_t sts = *reg; | ||
/* Write 1 to Clear the pending interrupt */ | ||
if (sts & MLDSA_REG_INTR_BLOCK_RF_NOTIF_INTERNAL_INTR_R_NOTIF_CMD_DONE_STS_MASK) { | ||
*reg = MLDSA_REG_INTR_BLOCK_RF_NOTIF_INTERNAL_INTR_R_NOTIF_CMD_DONE_STS_MASK; | ||
cptra_intr_rcv.mldsa_notif |= MLDSA_REG_INTR_BLOCK_RF_NOTIF_INTERNAL_INTR_R_NOTIF_CMD_DONE_STS_MASK; | ||
} | ||
if (sts == 0) { | ||
VPRINTF(ERROR,"bad mldsa_notif_intr sts:%x\n", sts); | ||
SEND_STDOUT_CTRL(0x1); | ||
while(1); | ||
} | ||
} | ||
inline void service_axi_dma_error_intr() {return;} | ||
inline void service_axi_dma_notif_intr() {return;} | ||
|
||
#endif //CALIPTRA_ISR_H |
Oops, something went wrong.