From 0277f05a05a9c891b7f661da8a1732ed29296178 Mon Sep 17 00:00:00 2001 From: Sujana M Date: Sun, 22 Dec 2024 21:21:08 +0530 Subject: [PATCH] Fixes #521 Exerciser on multi-segments - The UEFI PAL implementation to get the ECAM address was getting only from the segment 0 and not w.r.t the respective segments. - Modified the PAL to check for the Segment and bus no of the BDF Signed-off-by: Sujana M --- test_pool/pcie/operating_system/test_p003.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/test_pool/pcie/operating_system/test_p003.c b/test_pool/pcie/operating_system/test_p003.c index 2a6a9be7..cc60cc83 100644 --- a/test_pool/pcie/operating_system/test_p003.c +++ b/test_pool/pcie/operating_system/test_p003.c @@ -1,5 +1,5 @@ /** @file - * Copyright (c) 2016-2024, Arm Limited or its affiliates. All rights reserved. + * Copyright (c) 2016-2025, Arm Limited or its affiliates. All rights reserved. * SPDX-License-Identifier : Apache-2.0 * Licensed under the Apache License, Version 2.0 (the "License"); @@ -50,7 +50,6 @@ payload(void) uint32_t data; uint32_t num_ecam; - uint64_t ecam_base; uint32_t index = val_pe_get_index_mpid(val_pe_get_mpid()); uint32_t bdf = 0; uint32_t bus, segment; @@ -83,14 +82,6 @@ payload(void) return; } - ecam_base = val_pcie_get_info(PCIE_INFO_MCFG_ECAM, 0); - - if (ecam_base == 0) { - val_print(ACS_PRINT_DEBUG, "\n ECAM Base in MCFG is 0. Skipping test ", 0); - val_set_status(index, RESULT_SKIP(TEST_NUM, 01)); - return; - } - while (num_ecam) { num_ecam--; segment = val_pcie_get_info(PCIE_INFO_SEGMENT, num_ecam);