Renamed API amdsmi_dev_set_pci_bandwidth to

amdsmi_set_gpu_pci_bandwidth

grep -rli 'amdsmi_dev_set_pci_bandwidth' * | xargs -i@ sed -i
's/amdsmi_dev_set_pci_bandwidth/amdsmi_set_gpu_pci_bandwidth/g' @

Change-Id: Id4312cfe5fddb63c42c4c6ca0a9a1d94b83f7164
Bu işleme şunda yer alıyor:
Deepak Mewar
2023-02-25 07:43:32 -05:00
işlemeyi yapan: Naveen Krishna Chatradhi
ebeveyn d8e22b9687
işleme 24c0005e15
9 değiştirilmiş dosya ile 19 ekleme ve 19 silme
+2 -2
Dosyayı Görüntüle
@@ -221,7 +221,7 @@ void TestMutualExclusion::Run(void) {
CHECK_RET(ret, AMDSMI_STATUS_BUSY);
ret = amdsmi_get_gpu_pci_replay_counter(processor_handles_[0], &dmy_ui64);
CHECK_RET(ret, AMDSMI_STATUS_BUSY);
ret = amdsmi_dev_set_pci_bandwidth(processor_handles_[0], 0);
ret = amdsmi_set_gpu_pci_bandwidth(processor_handles_[0], 0);
CHECK_RET(ret, AMDSMI_STATUS_BUSY);
ret = amdsmi_dev_get_fan_rpms(processor_handles_[0], dmy_ui32, &dmy_i64);
CHECK_RET(ret, AMDSMI_STATUS_BUSY);
@@ -270,7 +270,7 @@ void TestMutualExclusion::Run(void) {
amdsmi_get_gpu_drm_render_minor
amdsmi_get_gpu_vendor_name
amdsmi_get_gpu_pci_bandwidth
amdsmi_dev_set_pci_bandwidth
amdsmi_set_gpu_pci_bandwidth
amdsmi_get_gpu_pci_throughput
amdsmi_dev_get_temp_metric
amdsmi_dev_get_volt_metric
+2 -2
Dosyayı Görüntüle
@@ -182,7 +182,7 @@ void TestPciReadWrite::Run(void) {
std::cout << "\tSetting bandwidth mask to " << "0b" << freq_bm_str <<
" ..." << std::endl;
}
ret = amdsmi_dev_set_pci_bandwidth(processor_handles_[dv_ind], freq_bitmask);
ret = amdsmi_set_gpu_pci_bandwidth(processor_handles_[dv_ind], freq_bitmask);
CHK_ERR_ASRT(ret)
ret = amdsmi_get_gpu_pci_bandwidth(processor_handles_[dv_ind], &bw);
@@ -193,7 +193,7 @@ void TestPciReadWrite::Run(void) {
std::endl;
std::cout << "\tResetting mask to all bandwidths." << std::endl;
}
ret = amdsmi_dev_set_pci_bandwidth(processor_handles_[dv_ind], 0xFFFFFFFF);
ret = amdsmi_set_gpu_pci_bandwidth(processor_handles_[dv_ind], 0xFFFFFFFF);
CHK_ERR_ASRT(ret)
ret = amdsmi_dev_set_perf_level(processor_handles_[dv_ind], AMDSMI_DEV_PERF_LEVEL_AUTO);