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 <Gabriel.Pham@amd.com>
Change-Id: I1ad6e15eceacb5a00b022458ee5fb21df9d845c7
Этот коммит содержится в:
gabrpham
2024-10-18 16:32:57 -05:00
родитель f5b7761ac7
Коммит 00b3184e9f
+6 -6
Просмотреть файл
@@ -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);