Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

max_pmg check for MPAM test 006 #490

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test_pool/mpam/operating_system/test_mpam006.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ static void payload(void)
val_print(ACS_PRINT_DEBUG, "\n Cache Size = 0x%x", cache_size);
val_print(ACS_PRINT_DEBUG, "\n Number of CSU Monitors = %d", csumon_count);

if (csumon_count == 0 || cpor_nodes == 0) {
/* Skip the test if CSU monitors/ nodes supporting Cache Portion Partitoning are 0
Also skip if Max PMG for MSC is less than 2 as the test uses 2 PMGs.
Otherwise, will lead to Out-of-range PMG behaviour. */
if (csumon_count == 0 || cpor_nodes == 0 || max_pmg < 2) {
val_set_status(index, RESULT_SKIP(TEST_NUM, 03));
return;
}
Expand Down