From 7792bdbdf91a5854e580adea0f993886c3eec5df Mon Sep 17 00:00:00 2001 From: Manish V Badarkhe Date: Mon, 24 Feb 2025 21:16:47 +0000 Subject: [PATCH] feat(drtm): add platform API to retrieve ACPI tables region size Introduces a platform-specific API to retrieve the ACPI table region size. This will be used in a subsequent patch to specify the minimum DLME size requirement for the DCE preamble. Change-Id: I44ce9241733b22fea3cbce9d42f1c2cc5ef20852 Signed-off-by: Manish V Badarkhe --- docs/porting-guide.rst | 16 +++++++++++++--- include/plat/common/plat_drtm.h | 4 +++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/porting-guide.rst b/docs/porting-guide.rst index 9ca2aa927..98aa76de8 100644 --- a/docs/porting-guide.rst +++ b/docs/porting-guide.rst @@ -1001,7 +1001,7 @@ Function : plat_drtm_get_min_size_normal_world_dce() This function returns the size normal-world DCE of the platform. Function : plat_drtm_get_imp_def_dlme_region_size() -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :: @@ -1012,7 +1012,7 @@ This function returns the size of implementation defined DLME region of the platform. Function : plat_drtm_get_tcb_hash_table_size() -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :: @@ -1021,8 +1021,18 @@ Function : plat_drtm_get_tcb_hash_table_size() This function returns the size of TCB hash table of the platform. +Function : plat_drtm_get_acpi_tables_region_size() +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + Argument : void + Return : uint64_t + +This function returns the size of ACPI tables region of the platform. + Function : plat_drtm_get_tcb_hash_features() -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :: diff --git a/include/plat/common/plat_drtm.h b/include/plat/common/plat_drtm.h index 07545a68f..4f6921084 100644 --- a/include/plat/common/plat_drtm.h +++ b/include/plat/common/plat_drtm.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2024, Arm Limited. All rights reserved. + * Copyright (c) 2022-2025, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -59,6 +59,8 @@ uint64_t plat_drtm_get_min_size_normal_world_dce(void); uint64_t plat_drtm_get_tcb_hash_table_size(void); uint64_t plat_drtm_get_imp_def_dlme_region_size(void); uint64_t plat_drtm_get_tcb_hash_features(void); +uint64_t plat_drtm_get_acpi_tables_region_size(void); + /* DRTM error handling functions */ int plat_set_drtm_error(uint64_t error_code);