diff options
author | Thomas Abraham <thomas.abraham@arm.com> | 2021-02-16 12:24:13 +0530 |
---|---|---|
committer | Thomas Abraham <thomas.abraham@arm.com> | 2021-03-29 18:52:34 +0530 |
commit | 513ba5c97372dafb7bca60659e494e211413eedc (patch) | |
tree | 3b54ddbd54b66315fc450553351b2317e1691762 | |
parent | a8834474033ecf73709b190d5f9e58df9c79f79d (diff) | |
download | trusted-firmware-a-513ba5c97372dafb7bca60659e494e211413eedc.tar.gz |
plat/sgi: refactor DMC-620 error handling SMC function id
The macros defining the SMC function ids for DMC-620 error handling are
listed in the sgi_base_platform_def.h header file. But these macros are
not applicable for all platforms supported under plat/sgi. So move these
macro definitions to sgi_ras.c file in which these are consumed. While
at it, remove the AArch32 and error injection function ids as these are
unused.
Signed-off-by: Thomas Abraham <thomas.abraham@arm.com>
Change-Id: I249b54bf4c1b1694188a1e3b297345b942f16bc9
-rw-r--r-- | plat/arm/css/sgi/include/sgi_base_platform_def.h | 10 | ||||
-rw-r--r-- | plat/arm/css/sgi/include/sgi_ras.h | 6 |
2 files changed, 5 insertions, 11 deletions
diff --git a/plat/arm/css/sgi/include/sgi_base_platform_def.h b/plat/arm/css/sgi/include/sgi_base_platform_def.h index d99ea3bcdf..a38c811875 100644 --- a/plat/arm/css/sgi/include/sgi_base_platform_def.h +++ b/plat/arm/css/sgi/include/sgi_base_platform_def.h @@ -173,16 +173,6 @@ PLAT_SP_IMAGE_NS_BUF_SIZE + \ PLAT_SP_BUF_BASE) -/* Platform specific SMC FID's used for RAS */ -#define SP_DMC_ERROR_INJECT_EVENT_AARCH64 0xC4000042 -#define SP_DMC_ERROR_INJECT_EVENT_AARCH32 0x84000042 - -#define SP_DMC_ERROR_OVERFLOW_EVENT_AARCH64 0xC4000043 -#define SP_DMC_ERROR_OVERFLOW_EVENT_AARCH32 0x84000043 - -#define SP_DMC_ERROR_ECC_EVENT_AARCH64 0xC4000044 -#define SP_DMC_ERROR_ECC_EVENT_AARCH32 0x84000044 - #define ARM_SP_CPER_BUF_BASE (PLAT_SP_IMAGE_NS_BUF_BASE + \ PLAT_SP_IMAGE_NS_BUF_SIZE) #define ARM_SP_CPER_BUF_SIZE ULL(0x20000) diff --git a/plat/arm/css/sgi/include/sgi_ras.h b/plat/arm/css/sgi/include/sgi_ras.h index a449eae260..4b8a0d1828 100644 --- a/plat/arm/css/sgi/include/sgi_ras.h +++ b/plat/arm/css/sgi/include/sgi_ras.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2018-2021, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -7,6 +7,10 @@ #ifndef SGI_RAS_H #define SGI_RAS_H +/* Platform specific SMC FID's used for DMC-620 RAS error handling */ +#define SP_DMC_ERROR_OVERFLOW_EVENT_AARCH64 0xC4000043 +#define SP_DMC_ERROR_ECC_EVENT_AARCH64 0xC4000044 + /* * Mapping the RAS interrupt with SDEI event number and the event * id used with Standalone MM code |