From 4e6d030a2b75703371f30c8b41d626e1c288bcb4 Mon Sep 17 00:00:00 2001 From: Amrathesh Date: Mon, 16 Sep 2024 18:45:58 +0530 Subject: [PATCH] MPAM PCC support bare-metal changes - allocated memory for pcc info table. Signed-off-by: Amrathesh --- baremetal_app/SbsaAcsMain.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/baremetal_app/SbsaAcsMain.c b/baremetal_app/SbsaAcsMain.c index e3c8a229..b3ea13ef 100644 --- a/baremetal_app/SbsaAcsMain.c +++ b/baremetal_app/SbsaAcsMain.c @@ -224,6 +224,17 @@ createSratInfoTable( } +void +createPccInfoTable( +) +{ + uint64_t *PccInfoTable; + + PccInfoTable = val_aligned_alloc(SIZE_4K, + PLATFORM_PCC_SUBSPACE_COUNT * sizeof(PCC_INFO)); + val_pcc_create_info_table(PccInfoTable); +} + /** @brief This API allocates memory for info table and calls create info table function passed as parameter. @@ -281,6 +292,7 @@ freeSbsaAvsMem() val_hmat_free_info_table(); val_srat_free_info_table(); val_ras2_free_info_table(); + val_pcc_free_info_table(); val_free_shared_mem(); } @@ -386,6 +398,9 @@ ShellAppMainsbsa( createCacheInfoTable(); + /* required before calling createMpamInfoTable() */ + createPccInfoTable(); + createMpamInfoTable(); createHmatInfoTable();