mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-11 07:04:22 +00:00
fix(rme): do not trap access to MPAM system registers in Realm mode
Change-Id: I77496ee962727687b28f71a1a15b4fe4133c613c Signed-off-by: Javier Almansa Sobrino <javier.almansasobrino@arm.com>
This commit is contained in:
parent
b78c307ca6
commit
d048af0da1
2 changed files with 15 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -581,6 +581,10 @@ ifeq (${ENABLE_RME},1)
|
|||
CTX_INCLUDE_AARCH32_REGS := 0
|
||||
CTX_INCLUDE_PAUTH_REGS := 1
|
||||
|
||||
ifneq ($(ENABLE_FEAT_MPAM), 0)
|
||||
CTX_INCLUDE_MPAM_REGS := 1
|
||||
endif
|
||||
|
||||
# RME enables CSV2_2 extension by default.
|
||||
ENABLE_FEAT_CSV2_2 = 1
|
||||
endif #(FEAT_RME)
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include <lib/el3_runtime/context_mgmt.h>
|
||||
#include <lib/el3_runtime/cpu_data.h>
|
||||
#include <lib/el3_runtime/pubsub.h>
|
||||
#include <lib/extensions/mpam.h>
|
||||
#include <lib/extensions/pmuv3.h>
|
||||
#include <lib/extensions/sys_reg_trace.h>
|
||||
#include <lib/gpt_rme/gpt_rme.h>
|
||||
|
@ -169,6 +170,16 @@ static void manage_extensions_realm_per_world(void)
|
|||
if (is_feat_sme_supported()) {
|
||||
sme_enable_per_world(&per_world_context[CPU_CONTEXT_REALM]);
|
||||
}
|
||||
|
||||
/*
|
||||
* If FEAT_MPAM is supported and enabled, then disable trapping access
|
||||
* to the MPAM registers for Realm world. Instead, RMM will configure
|
||||
* the access to be trapped by itself so it can inject undefined aborts
|
||||
* back to the Realm.
|
||||
*/
|
||||
if (is_feat_mpam_supported()) {
|
||||
mpam_enable_per_world(&per_world_context[CPU_CONTEXT_REALM]);
|
||||
}
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
|
|
Loading…
Add table
Reference in a new issue