Commit Graph

164 Commits

Author SHA1 Message Date
Suma Hegde 68665655d4 Renamed API amdsmi_dev_get_gpu_clk_freq
It is renamed to amdsmi_get_clk_freq

grep -rli 'amdsmi_dev_get_gpu_clk_freq' * | xargs -i@ sed -i
's/amdsmi_dev_get_gpu_clk_freq/amdsmi_get_clk_freq/g' @

Change-Id: Ia12dd1282ab501f17667cf9f1f9b7284c2648198


[ROCm/amdsmi commit: 56aa8059f8]
2023-05-11 10:45:55 -04:00
Deepak Mewar b4ee3a5be9 Renamed API amdsmi_set_perf_determinism_mode to
amdsmi_set_gpu_perf_determinism_mode

grep -rli 'amdsmi_set_perf_determinism_mode' * | xargs -i@ sed -i
's/amdsmi_set_perf_determinism_mode/amdsmi_set_gpu_perf_determinism_mode/g' @

Change-Id: I81b3a9738d3063d49ee2ed09a4223ee174d8d904


[ROCm/amdsmi commit: 0d5be2949b]
2023-05-11 10:45:27 -04:00
Deepak Mewar 611450052c Renamed API amdsmi_dev_get_perf_level to
amdsmi_get_gpu_perf_level

grep -rli 'amdsmi_dev_get_perf_level' * | xargs -i@ sed -i
's/amdsmi_dev_get_perf_level/amdsmi_get_gpu_perf_level/g' @

Change-Id: I03ba35c943cf4e6182c910cc90c5f979b6dc13ee


[ROCm/amdsmi commit: 3ce4fa3eec]
2023-05-11 10:45:17 -04:00
Deepak Mewar 5198a6f68b Renamed API amdsmi_dev_get_busy_percent to
amdsmi_get_busy_percent

grep -rli 'amdsmi_dev_get_busy_percent' * | xargs -i@ sed -i
's/amdsmi_dev_get_busy_percent/amdsmi_get_busy_percent/g' @

Change-Id: I02ff8f86d2e7a6c38e7f56d40a07b27e90835152


[ROCm/amdsmi commit: 575856eeee]
2023-05-11 10:45:08 -04:00
Deepak Mewar bea3335941 Renamed API amdsmi_dev_set_fan_speed to
amdsmi_set_gpu_fan_speed

grep -rli 'amdsmi_dev_set_fan_speed' * | xargs -i@ sed -i
's/amdsmi_dev_set_fan_speed/amdsmi_set_gpu_fan_speed/g' @

Change-Id: I27a321a0e1182b4cc94d18cff5245df67c4fee31


[ROCm/amdsmi commit: 8d7b6ee5d1]
2023-05-11 10:44:50 -04:00
Deepak Mewar 745c085024 Renamed API amdsmi_dev_reset_fan to
amdsmi_reset_gpu_fan

grep -rli 'amdsmi_dev_reset_fan' * | xargs -i@ sed -i
's/amdsmi_dev_reset_fan/amdsmi_reset_gpu_fan/g' @

Change-Id: Ic9d2ed404b4ed2d6973286e6f76b732199c1b687


[ROCm/amdsmi commit: 7c82c5ec79]
2023-05-11 10:44:40 -04:00
Deepak Mewar f33edadf51 Renamed API amdsmi_dev_get_volt_metric to
amdsmi_get_gpu_volt_metric

grep -rli 'amdsmi_dev_get_volt_metric' * | xargs -i@ sed -i
's/amdsmi_dev_get_volt_metric/amdsmi_get_gpu_volt_metric/g' @

Change-Id: Icd34fa435d067815d83b61e84b70b1d78105f8b6


[ROCm/amdsmi commit: 1358f3cfd0]
2023-05-11 10:44:28 -04:00
Deepak Mewar da14f8b791 Renamed API amdsmi_dev_get_temp_metric to
amdsmi_get_temp_metric

grep -rli 'amdsmi_dev_get_temp_metric' * | xargs -i@ sed -i
's/amdsmi_dev_get_temp_metric/amdsmi_get_temp_metric/g' @

Change-Id: I4a342f9d1c5183afdeac67506fef73e895911283


[ROCm/amdsmi commit: d3289258b4]
2023-05-11 10:44:16 -04:00
Deepak Mewar 1ad0c6af8f Renamed APIs
1) amdsmi_dev_get_fan_speed to amdsmi_get_gpu_fan_speed
2) amdsmi_dev_get_fan_speed_max to amdsmi_get_gpu_fan_speed_max

grep -rli 'amdsmi_dev_get_fan_speed' * | xargs -i@ sed -i
's/amdsmi_dev_get_fan_speed/amdsmi_get_gpu_fan_speed/g' @

Change-Id: I74e93885fe3335bbde8294e3b0863256bb044fcb


[ROCm/amdsmi commit: 3b62d7629f]
2023-05-11 10:44:01 -04:00
Deepak Mewar c5f250fc2d Renamed API amdsmi_dev_get_fan_rpms to
amdsmi_get_gpu_fan_rpms

grep -rli 'amdsmi_dev_get_fan_rpms' * | xargs -i@ sed -i
's/amdsmi_dev_get_fan_rpms/amdsmi_get_gpu_fan_rpms/g' @

Change-Id: Iaedac65cba608c3661dbf80399b236c7aa33dac1


[ROCm/amdsmi commit: 825b12a437]
2023-05-11 10:43:46 -04:00
Deepak Mewar 3468278498 Renamed API amdsmi_dev_get_memory_reserved_pages
to amdsmi_get_gpu_memory_reserved_pages

grep -rli 'amdsmi_dev_get_memory_reserved_pages' * | xargs -i@ sed -i
's/amdsmi_dev_get_memory_reserved_pages/amdsmi_get_gpu_memory_reserved_pages/g' @

Change-Id: I1b17fe4540f39c820b9e3e8102440cc91a27ee16


[ROCm/amdsmi commit: a248959ad9]
2023-05-11 10:43:25 -04:00
Deepak Mewar 2dbe69b567 Renamed API amdsmi_dev_get_memory_busy_percent to
amdsmi_get_gpu_memory_busy_percent

grep -rli 'amdsmi_dev_get_memory_busy_percent' * | xargs -i@ sed -i
's/amdsmi_dev_get_memory_busy_percent/amdsmi_get_gpu_memory_busy_percent/g' @

Change-Id: I379d8a31074635cd086c1bb0d0e231d3b352725c


[ROCm/amdsmi commit: ed45afc512]
2023-05-11 10:43:13 -04:00
Deepak Mewar cd92afe97e Renamed API amdsmi_dev_get_memory_usage to
amdsmi_get_gpu_memory_usage

grep -rli 'amdsmi_dev_get_memory_usage' * | xargs -i@ sed -i
's/amdsmi_dev_get_memory_usage/amdsmi_get_gpu_memory_usage/g' @

Change-Id: I04f44c7d7c06490d25f136c77ba545c3010a2e18


[ROCm/amdsmi commit: 84613dcf1d]
2023-05-11 10:42:41 -04:00
Deepak Mewar 4a662552fb Renamed API amdsmi_dev_get_memory_total to
amdsmi_get_gpu_memory_total

grep -rli 'amdsmi_dev_get_memory_total' * | xargs -i@ sed -i
's/amdsmi_dev_get_memory_total/amdsmi_get_gpu_memory_total/g' @

Change-Id: I06dc20f4bf783c0ee824a6d4b4f7162166c598cb


[ROCm/amdsmi commit: cdad242947]
2023-05-11 10:42:26 -04:00
Deepak Mewar 8b81aaf620 Renamed API amdsmi_dev_set_power_profile to
amdsmi_set_gpu_power_profile

grep -rli 'amdsmi_dev_set_power_profile' * | xargs -i@ sed -i
's/amdsmi_dev_set_power_profile/amdsmi_set_gpu_power_profile/g' @

Change-Id: I10d7ee19fd86c11bbb7deafefb37df92e78aa2a3


[ROCm/amdsmi commit: dec22a9b44]
2023-05-11 10:42:06 -04:00
Deepak Mewar 66ee0ae0c6 Renamed API amdsmi_dev_set_power_cap to
amdsmi_set_power_cap

grep -rli 'amdsmi_dev_set_power_cap' * | xargs -i@ sed -i
's/amdsmi_dev_set_power_cap/amdsmi_set_power_cap/g' @

Change-Id: I226f90f0fce12ea4f832a2ea46c3dc60f6e9fe23


[ROCm/amdsmi commit: 757765a1e3]
2023-05-11 10:41:48 -04:00
Deepak Mewar 2c8a473c52 Renamed API amdsmi_dev_get_energy_count to
amdsmi_get_energy_count

grep -rli 'amdsmi_dev_get_energy_count' * | xargs -i@ sed -i
's/amdsmi_dev_get_energy_count/amdsmi_get_energy_count/g' @

Change-Id: Ifba096376069da3b82d0de3e031cc2adb9cc2f7f


[ROCm/amdsmi commit: 258a21790b]
2023-05-11 10:41:27 -04:00
Deepak Mewar db8f437298 Renamed API amdsmi_dev_get_power_ave to
amdsmi_get_power_ave

grep -rli 'amdsmi_dev_get_power_ave' * | xargs -i@ sed -i
's/amdsmi_dev_get_power_ave/amdsmi_get_power_ave/g' @

Change-Id: Ie10de251d1e7b884b6233af05b37ff7b56075d4b


[ROCm/amdsmi commit: 394a1b4d67]
2023-05-11 10:41:08 -04:00
Deepak Mewar 72e7af8198 Renamed API amdsmi_get_vbios_info to
amdsmi_get_gpu_vbios_info

grep -rli 'amdsmi_get_vbios_info' * | xargs -i@ sed -i
's/amdsmi_get_vbios_info/amdsmi_get_gpu_vbios_info/g' @

Change-Id: I90249704db3d77eca6b09c33ef3f2cec5eda77a2


[ROCm/amdsmi commit: 508d2612d3]
2023-05-11 10:40:15 -04:00
Deepak Mewar a8d932a9bb 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


[ROCm/amdsmi commit: 24c0005e15]
2023-05-11 10:39:39 -04:00
Deepak Mewar a3c4c55c33 Renamed API amdsmi_dev_get_pci_replay_counter to
amdsmi_get_gpu_pci_replay_counter

grep -rli 'amdsmi_dev_get_pci_replay_counter' * | xargs -i@ sed -i
's/amdsmi_dev_get_pci_replay_counter/amdsmi_get_gpu_pci_replay_counter/g' @

Change-Id: Ic6ad26e35cb6cf73f87a71d39abf38d3afac4be4


[ROCm/amdsmi commit: d8e22b9687]
2023-05-11 10:38:28 -04:00
Deepak Mewar 642986764b Renamed API amdsmi_dev_get_pci_throughput to
amdsmi_get_gpu_pci_throughput

grep -rli 'amdsmi_dev_get_pci_throughput' * | xargs -i@ sed -i
's/amdsmi_dev_get_pci_throughput/amdsmi_get_gpu_pci_throughput/g' @

Change-Id: Id6dbd3591d59954622237770e15320583b63dbe0


[ROCm/amdsmi commit: 931099683b]
2023-05-11 10:38:08 -04:00
Deepak Mewar 52c0195b86 Renamed API amdsmi_topo_get_numa_affinity to
amdsmi_get_gpu_topo_numa_affinity

grep -rli 'amdsmi_topo_get_numa_affinity' * | xargs -i@ sed -i
's/amdsmi_topo_get_numa_affinity/amdsmi_get_gpu_topo_numa_affinity/g' @

Change-Id: If24a64e9e508bbd728570da5c3e69df5b802b59a


[ROCm/amdsmi commit: 83720266dd]
2023-05-11 10:37:44 -04:00
Deepak Mewar 6bd013ba58 Renamed API amdsmi_dev_get_pci_id to
amdsmi_get_gpu_pci_id

grep -rli 'amdsmi_dev_get_pci_id' * | xargs -i@ sed -i
's/amdsmi_dev_get_pci_id/amdsmi_get_gpu_pci_id/g' @

Change-Id: If5454038cf582bdf3c657f466d0f6eb1dd3c14e0


[ROCm/amdsmi commit: 55ddbdc67e]
2023-05-11 10:37:12 -04:00
Deepak Mewar 3c3dc03704 Renamed API amdsmi_get_board_info to
amdsmi_get_gpu_board_info

grep -rli 'amdsmi_get_board_info' * | xargs -i@ sed -i
's/amdsmi_get_board_info/amdsmi_get_gpu_board_info/g' @

Change-Id: Ia3fb361aaf5832813e7ce41bfb88fbbf1432020b


[ROCm/amdsmi commit: 928b7e2a4d]
2023-05-11 10:36:10 -04:00
Deepak Mewar e53fdb26ca Renamed API amdsmi_dev_get_pci_bandwidth to
amdsmi_get_gpu_pci_bandwidth

grep -rli 'amdsmi_dev_get_pci_bandwidth' * | xargs -i@ sed -i
's/amdsmi_dev_get_pci_bandwidth/amdsmi_get_gpu_pci_bandwidth/g' @

Change-Id: I43e5fc475f933b33770b6c2244232fca811c2036


[ROCm/amdsmi commit: 9b76d64944]
2023-05-11 10:35:49 -04:00
Deepak Mewar 0bd6f365bc Renamed API amdsmi_get_asic_info to
amdsmi_get_gpu_asic_info

grep -rli 'amdsmi_get_asic_info' * | xargs -i@ sed -i
's/amdsmi_get_asic_info/amdsmi_get_gpu_asic_info/g' @

Change-Id: I4586c7f8876eba7b8af33b5ea29afa8bacb85a9a


[ROCm/amdsmi commit: 1f9074916f]
2023-05-11 10:35:09 -04:00
Deepak Mewar 3ef24c6323 Renamed API amdsmi_dev_get_drm_render_minor to
amdsmi_get_gpu_drm_render_minor

grep -rli 'amdsmi_dev_get_drm_render_minor' * | xargs -i@ sed -i
's/amdsmi_dev_get_drm_render_minor/amdsmi_get_gpu_drm_render_minor/g' @

Change-Id: Icf6a1ba28ee3ff7f1fa66bad5d600725aad0bfca


[ROCm/amdsmi commit: ac1b857f24]
2023-05-11 10:34:01 -04:00
Deepak Mewar acd7475ad0 Renamed API amdsmi_dev_get_subsystem_name to
amdsmi_get_gpu_subsystem_name

grep -rli 'amdsmi_dev_get_subsystem_name' * | xargs -i@ sed -i
's/amdsmi_dev_get_subsystem_name/amdsmi_get_gpu_subsystem_name/g' @

Change-Id: Ib6f2b03f824e1ee910cfbbd0bab09ad859ec252b


[ROCm/amdsmi commit: 82dbd07b2c]
2023-05-11 10:33:20 -04:00
Deepak Mewar cccbca0e65 Renamed API amdsmi_dev_get_subsystem_id to
amdsmi_get_gpu_subsystem_id

grep -rli 'amdsmi_dev_get_subsystem_id' * | xargs -i@ sed -i
's/amdsmi_dev_get_subsystem_id/amdsmi_get_gpu_subsystem_id/g' @

Change-Id: I64616ac4c001f7761b8d83120d05d21c5c8e763f


[ROCm/amdsmi commit: 14f1367d6b]
2023-05-11 10:32:32 -04:00
Deepak Mewar 06cedb0eed Renamed API amdsmi_dev_get_vram_vendor to
amdsmi_get_gpu_vram_vendor

grep -rli 'amdsmi_dev_get_vram_vendor' * | xargs -i@ sed -i
's/amdsmi_dev_get_vram_vendor/amdsmi_get_gpu_vram_vendor/g' @

Change-Id: I3c11643a778f147027d0d3121b9782931439c752


[ROCm/amdsmi commit: f69a6ea64e]
2023-05-11 10:32:00 -04:00
Deepak Mewar 60a4679846 Renamed API amdsmi_dev_get_vendor_name to
amdsmi_get_gpu_vendor_name

grep -rli 'amdsmi_dev_get_vendor_name' * | xargs -i@ sed -i
's/amdsmi_dev_get_vendor_name/amdsmi_get_gpu_vendor_name/g' @

Change-Id: Ib31c1387150d0dd268d1bd54cfb43786c7ec41c1


[ROCm/amdsmi commit: 21da55b9df]
2023-05-11 10:31:41 -04:00
Deepak Mewar 365abf6b0e Renamed API amdsmi_dev_get_id to amdsmi_get_gpu_id
grep -rli 'amdsmi_dev_get_id' * | xargs -i@ sed -i
's/amdsmi_dev_get_id/amdsmi_get_gpu_id/g' @

Change-Id: I78faeff9a94250454bcecfaa50b5c7cc7e04cb98


[ROCm/amdsmi commit: 20222f771e]
2023-05-11 10:30:53 -04:00
Suma Hegde 94331a7a90 Change device_handle to processor_handle
grep -rli 'device_handle' * | xargs -i@ sed -i
's/device_handle/processor_handle/g' @

Change-Id: Ifc8b7fa3b5488ce1fa8d8cf9eb3981a09450de11


[ROCm/amdsmi commit: 3f9e4d95d4]
2023-05-11 10:11:24 -04:00
Suma Hegde ea0c860a1a Change amdsmi_device_handle to amdsmi_processor_handle
grep -rli 'amdsmi_device_handle' * | xargs -i@ sed -i
's/amdsmi_device_handle/amdsmi_processor_handle/g' @

Change-Id: Ie25c51933dcc31e5b34c8070d0d5ba0e8cd05cc1


[ROCm/amdsmi commit: 3963036a05]
2023-05-11 10:09:11 -04:00
Galantsev, Dmitrii 135971e3bf CMake: Install amdsmitst.exclude
Change-Id: I166cbd265cf9074e17cad39fddac77988e2fd686
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 3d00ae1240]
2023-04-27 11:58:03 -04:00
Galantsev, Dmitrii 5a234677fb SWDEV-340919 - Move examples and tests install dir
Previous install locations:
- /opt/rocm/share/example/amd-smi
- /opt/rocm/share/tests/amd-smi

New install locations:
- /opt/rocm/share/amd_smi/example
- /opt/rocm/share/amd_smi/tests

Change-Id: I305477b9f66bdc5963923efe6da1c01f87ea2085
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 6ee793ca03]
2023-01-20 09:49:56 -06:00
Dalibor Stanisavljevic 24ceedf639 SWDEV-378294 - Fixed failing tests
Change-Id: Ie0f9dedd6901e05b1a5ca7846624c127d92ed67f
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>


[ROCm/amdsmi commit: bf79fe4323]
2023-01-18 10:28:32 -05:00
Bill(Shuzhou) Liu f29da5cce9 change sensor_type in amdsmi_dev_get_temp_metric() to enum
The sensor_type in amdsmi_dev_get_temp_metric() will be changed to
amdsmi_temperature_type_t

Change-Id: I72a7f271b0a55a025acc2ca523062a3d51cc036d


[ROCm/amdsmi commit: 79bd9c1d5f]
2023-01-04 13:01:04 -06:00
Galantsev, Dmitrii 2d97dee0c2 SWDEV-374138 - Improve ASAN flags
Tests overwritten the linker flags resulting in failed build with clang.
This change improves ASAN linker flag assignment and fixes test issue.

Change-Id: I88f38360d46b20f6cc7298ad0d1fd09ff6ce47d6
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 2184d0c3d7]
2023-01-03 16:30:48 -06:00
Bill(Shuzhou) Liu 594f222ad5 Make amdsmi function name consistent
Some of the amdsmi function have the verb (set or get) at the
end of the function. Move it to the middle to be consistent with
other APIs.

Change-Id: I8053d16f46af951c25aaaf8febf2896a33633fa1


[ROCm/amdsmi commit: 221d6fdc5c]
2022-12-16 10:20:49 -06:00
Galantsev, Dmitrii 77223cb3db CMAKE: Resolve lib dependencies for tests
amdsmitst was failing and not finding libgtest and libamd_smi.

This change resolves the issue by

1. Installing gtest into tests directory
2. Modifying RUNPATH variable to point to libamd_smi.so

Change-Id: I126d01c88116d37c5f2b55b9ecb2c9f1313f26fe
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 0c52236abd]
2022-12-12 14:37:57 -06:00
Dalibor Stanisavljevic b48024d883 SWDEV-370223 - Change the name of the header to amdsmi.h
Change dev to device_handle throughout the file
Change the pcie_info pcie_speed field type to uint32_t
Add AMDSMI prefix before amdsmi_mm_ip enum

Change-Id: I242145389ddc3f2ad05dfd6ca371640f4d118fc4
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>


[ROCm/amdsmi commit: b4b761d02f]
2022-12-08 13:34:34 +01:00
Galantsev, Dmitrii 6e85124757 CMAKE: Repackage whole project for ROCm 5.5 release
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
Change-Id: I932b11a111c8e0db04bd8c5e0c3d1a470e5b2386


[ROCm/amdsmi commit: aeb0bf5832]
2022-11-29 17:04:32 -06:00
Bill(Shuzhou) Liu 17fa3924d6 Fix the unit tests
Fix a few broken unit tests to handle NOT_YET_IMPLEMENTED errors.

Change-Id: If3afac0dc32f2e3e82d83bffa5906b630bb1894a


[ROCm/amdsmi commit: c8caa80405]
2022-11-04 08:53:09 -05:00
Galantsev, Dmitrii f1125780dd Cleanup tests
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 7957b63dd4]
2022-11-03 13:30:16 -05:00
Galantsev, Dmitrii 4fede3797c Cleanup CMakeLists.txt for packaging
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: c99e4e1501]
2022-11-03 12:44:23 -05:00
Bill(Shuzhou) Liu 1ae77d9ac0 The device name and vbios version is incorrect
Get the device name from rocm-smi which is not displayed properly
in some cards. Set the vibos version using the rocm-smi.

Change-Id: I138f1760cde94007cb93cad02c6d8cccbb4afa28


[ROCm/amdsmi commit: 9a92ea833f]
2022-10-28 13:03:18 -05:00
Bill(Shuzhou) Liu 33f7fba549 Fix unit test compile error
Update the unit test as header enum type name is changed.

Change-Id: Ie965462da7d46259883650b15644003cf936982a


[ROCm/amdsmi commit: a25c71b730]
2022-10-20 09:54:11 -05:00
Bill(Shuzhou) Liu b546e272e0 Change the get_socket_handles and get_device_handles APIs interface
Those two APIs are changed to let the user get the handles count,
allocate memory, and then return handles to the allocated memory.

Change-Id: Ibe28a89ad188c99da6af3af1740b2b25ff22ba06


[ROCm/amdsmi commit: 2b2d11c446]
2022-10-20 09:24:31 -05:00