Skip to content

Commit

Permalink
MPAM PCC support bare-metal changes
Browse files Browse the repository at this point in the history
- allocated memory for pcc info table.

Signed-off-by: Amrathesh <[email protected]>
  • Loading branch information
amrathesh committed Oct 4, 2024
1 parent 21a3812 commit 4e6d030
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions baremetal_app/SbsaAcsMain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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();
}

Expand Down Expand Up @@ -386,6 +398,9 @@ ShellAppMainsbsa(

createCacheInfoTable();

/* required before calling createMpamInfoTable() */
createPccInfoTable();

createMpamInfoTable();

createHmatInfoTable();
Expand Down

0 comments on commit 4e6d030

Please sign in to comment.