From 961c7be89e48ebf1b5d5522691d31aee9663d1c2 Mon Sep 17 00:00:00 2001 From: Pascal Nasahl Date: Tue, 17 Dec 2024 16:31:13 +0000 Subject: [PATCH] [dif, sram_ctrl] Update wipe and key request description With lowRISC/opentitan#21850, key requests that are issued during a memory init are ignored by the hardware. This has not yet been reflected in the dif_sram_ctrl_request_new_key and dif_sram_ctrl_wipe function description. Signed-off-by: Pascal Nasahl --- sw/device/lib/dif/dif_sram_ctrl.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sw/device/lib/dif/dif_sram_ctrl.h b/sw/device/lib/dif/dif_sram_ctrl.h index c6a6b988ccc245..7205a754153c5f 100644 --- a/sw/device/lib/dif/dif_sram_ctrl.h +++ b/sw/device/lib/dif/dif_sram_ctrl.h @@ -149,6 +149,9 @@ dif_result_t dif_sram_ctrl_scramble(const dif_sram_ctrl_t *sram_ctrl); * Note: when dealing with the Main RAM, additional implication is that the * C runtime can be invalidated by the call to this function, and must be * re-configured prior to any C code execution. + * + * Note: during an ongoing memory initialization, the hardware ignores the key + * request. * * @param sram_ctrl A SRAM Controller handle. * @return The result of the operation. @@ -170,6 +173,9 @@ dif_result_t dif_sram_ctrl_request_new_key(const dif_sram_ctrl_t *sram_ctrl); * C runtime can be invalidated by the call to this function, and must be * re-configured prior to any C code execution. * + * Note: during this memory initialization, the hardware ignores key requests + * that are issued while this operation is pending. + * * @param sram_ctrl A SRAM Controller handle. * @return The result of the operation. */