From 118ce35c67f5c1afd00f525ca6faa60b171c1fc6 Mon Sep 17 00:00:00 2001 From: gabrpham Date: Fri, 18 Oct 2024 16:32:57 -0500 Subject: [PATCH] SWDEV-478748 Changed TestPciReadWrite Test Failure message to Warning TEST FAILURE message for `amdsmi_get_gpu_cpi_throughput` and `amdsmi_get_gpu_pci_bandwidth` changed to WARNING to indicate that pcie_bw and/or pp_dpm_pcie sysfs files may not be supported on respetive devices. Signed-off-by: gabrpham Change-Id: I1ad6e15eceacb5a00b022458ee5fb21df9d845c7 [ROCm/amdsmi commit: 00b3184e9fd983fce3804cba719af3d31ecac88e] --- .../tests/amd_smi_test/functional/pci_read_write.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/projects/amdsmi/tests/amd_smi_test/functional/pci_read_write.cc b/projects/amdsmi/tests/amd_smi_test/functional/pci_read_write.cc index f0ed27adbe..1a6f425763 100644 --- a/projects/amdsmi/tests/amd_smi_test/functional/pci_read_write.cc +++ b/projects/amdsmi/tests/amd_smi_test/functional/pci_read_write.cc @@ -122,9 +122,9 @@ void TestPciReadWrite::Run(void) { ret = amdsmi_get_gpu_pci_throughput(processor_handles_[dv_ind], &sent, &received, &max_pkt_sz); if (ret == AMDSMI_STATUS_NOT_SUPPORTED) { - std::cout << "TEST FAILURE: Current PCIe throughput is not detected. " - "This is likely because it is not indicated in the pcie_bw sysfs " - "file. Aborting test." << std::endl; + std::cout << "WARNING: Current PCIe throughput is not detected. " + "pcie_bw sysfs file is no longer supported on this device. " + "Aborting test." << std::endl; // We don't need to verify api support checking functionality is working // as the user may choose to have any of the input parameters as 0. @@ -143,9 +143,9 @@ void TestPciReadWrite::Run(void) { ret = amdsmi_get_gpu_pci_bandwidth(processor_handles_[dv_ind], &bw); if (ret == AMDSMI_STATUS_NOT_SUPPORTED) { - std::cout << "TEST FAILURE: Current PCIe bandwidth is not detected. " - "This is likely because it is not indicated in the pp_dpm_pcie sysfs " - "file. Aborting test." << std::endl; + std::cout << "WARNING: Current PCIe bandwidth is not detected. " + "pp_dpm_pcie sysfs file is no longer supported on this device. " + "Aborting test." << std::endl; // Verify api support checking functionality is working ret = amdsmi_get_gpu_pci_bandwidth(processor_handles_[dv_ind], nullptr); ASSERT_EQ(ret, AMDSMI_STATUS_NOT_SUPPORTED);