From 2ec44880d0a47a60b851fea09b7bec0cd694e858 Mon Sep 17 00:00:00 2001 From: Manish V Badarkhe Date: Wed, 26 Feb 2025 12:40:26 +0000 Subject: [PATCH] feat(drtm): log No-Action Event in Event Log for DRTM measurements This patch updates `drtm_measurements.c` to ensure that a No-Action event is recorded in the Event Log as part of the DRTM measurement process. This helps maintain compliance with the event logging requirements specified in DRTM spec v1.1 [1]. [1]: https://developer.arm.com/documentation/den0113/c/?lang=en Change-Id: Ifcf25b7ec91393a0c91b05e30f1f6cc4960d5634 Signed-off-by: Manish V Badarkhe --- services/std_svc/drtm/drtm_measurements.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/std_svc/drtm/drtm_measurements.c b/services/std_svc/drtm/drtm_measurements.c index 8d514b77f..d4f2b57ad 100644 --- a/services/std_svc/drtm/drtm_measurements.c +++ b/services/std_svc/drtm/drtm_measurements.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Arm Limited. All rights reserved. + * Copyright (c) 2022-2025 Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * @@ -198,6 +198,10 @@ enum drtm_retc drtm_take_measurements(const struct_drtm_dl_args *a) PCR_18); CHECK_RC(rc, drtm_event_log_measure_and_record(DRTM_EVENT_ARM_SEPARATOR)); + + /* Measure no Action event but not extend it in PCR */ + CHECK_RC(rc, + drtm_event_log_measure_and_record(DRTM_EVENT_ARM_NO_ACTION)); /* * If the DCE is unable to log a measurement because there is no available * space in the event log region, the DCE must extend a hash of the value