Commit graph

206 Commits

Autor SHA1 Nachricht Datum
Deepak Mewar cdad242947 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
2023-05-11 10:42:26 -04:00
Deepak Mewar dec22a9b44 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
2023-05-11 10:42:06 -04:00
Deepak Mewar 757765a1e3 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
2023-05-11 10:41:48 -04:00
Deepak Mewar 258a21790b 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
2023-05-11 10:41:27 -04:00
Deepak Mewar 394a1b4d67 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
2023-05-11 10:41:08 -04:00
Deepak Mewar cc1a9d4522 Renamed API amdsmi_get_vram_usage to
amdsmi_get_gpu_vram_usage

grep -rli 'amdsmi_get_vram_usage' * | xargs -i@ sed -i
's/amdsmi_get_vram_usage/amdsmi_get_gpu_vram_usage/g' @

Change-Id: Ieac19b7783e5ea0bc2654bd8398d64d4a937be42
2023-05-11 10:40:49 -04:00
Deepak Mewar 508d2612d3 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
2023-05-11 10:40:15 -04:00
Deepak Mewar 24c0005e15 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
2023-05-11 10:39:39 -04:00
Deepak Mewar d8e22b9687 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
2023-05-11 10:38:28 -04:00
Deepak Mewar 931099683b 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
2023-05-11 10:38:08 -04:00
Deepak Mewar 83720266dd 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
2023-05-11 10:37:44 -04:00
Deepak Mewar 55ddbdc67e 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
2023-05-11 10:37:12 -04:00
Deepak Mewar 928b7e2a4d 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
2023-05-11 10:36:10 -04:00
Deepak Mewar 9b76d64944 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
2023-05-11 10:35:49 -04:00
Deepak Mewar 1f9074916f 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
2023-05-11 10:35:09 -04:00
Deepak Mewar 8c8f41f893 Renamed API amdsmi_get_driver_version to
amdsmi_get_gpu_driver_version

grep -rli 'amdsmi_get_driver_version' * | xargs -i@ sed -i
's/amdsmi_get_driver_version/amdsmi_get_gpu_driver_version/g' @

Change-Id: Ic1dfb17f7595210ec1fcbd5a936fd259e57e9638
2023-05-11 10:34:42 -04:00
Deepak Mewar ac1b857f24 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
2023-05-11 10:34:01 -04:00
Deepak Mewar 82dbd07b2c 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
2023-05-11 10:33:20 -04:00
Deepak Mewar 14f1367d6b 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
2023-05-11 10:32:32 -04:00
Deepak Mewar f69a6ea64e 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
2023-05-11 10:32:00 -04:00
Deepak Mewar 21da55b9df 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
2023-05-11 10:31:41 -04:00
Deepak Mewar 20222f771e 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
2023-05-11 10:30:53 -04:00
Deepak Mewar 5ed24711c7 Renamed API amdsmi_get_device_uuid to
amdsmi_get_gpu_device_uuid

grep -rli 'amdsmi_get_device_uuid' * | xargs -i@ sed -i
's/amdsmi_get_device_uuid/amdsmi_get_gpu_device_uuid/g' @

Change-Id: I40bf740235a1a98d7d12964378b0b45208987c9e
2023-05-11 10:30:32 -04:00
Deepak Mewar 3fec3b4b4a Renamed API amdsmi_get_device_bdf to amdsmi_get_gpu_device_bdf
grep -rli 'amdsmi_get_device_bdf' * | xargs -i@ sed -i
's/amdsmi_get_device_bdf/amdsmi_get_gpu_device_bdf/g' @

Change-Id: I3db605f8bdb0a83b1f0f7f300a663c47563ba651
2023-05-11 10:30:05 -04:00
Suma Hegde 6e6176b04a Change variable name from device to processor
device_count to processor_count
devices to processor
device to processor
also handle_to_device is renamed to handle_to_processor

Change-Id: Ie9c7e01bc1b83058eeaae80934526d06468f4f5c
2023-05-11 10:29:35 -04:00
Suma Hegde ae39d9707d Change device to processor in API names and variable names
Change-Id: Ide71fabeaa837f2035dc9726162cc537e40b4a57
2023-05-11 10:29:01 -04:00
Suma Hegde dd00a16124 Change device_type to processor_type
also rename amdsmi_get_device_type to amdsmi_get_processor_type

grep -rli 'device_type' * | xargs -i@ sed -i
's/device_type/processor_type/g' @

Change-Id: Ic6a73c1a170757d5ab5d10ad20b4fc2f0b280e78
2023-05-11 10:28:31 -04:00
Suma Hegde 3f9e4d95d4 Change device_handle to processor_handle
grep -rli 'device_handle' * | xargs -i@ sed -i
's/device_handle/processor_handle/g' @

Change-Id: Ifc8b7fa3b5488ce1fa8d8cf9eb3981a09450de11
2023-05-11 10:11:24 -04:00
Suma Hegde 3963036a05 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
2023-05-11 10:09:11 -04:00
Suma Hegde c4aa7d2c03 Change AMDSmiDevice to AMDSmiProcessor
grep -rli 'AMDSmiDevice' * | xargs -i@ sed -i 's/AMDSmiDevice/AMDSmiProcessor/g' @

Change-Id: Ib71e11d7122699cc62df3c4e9711ce3fc51e6fdf
2023-05-11 10:08:40 -04:00
Marko Oblak 9b476baf8e SWDEV-393084 - [AMDSMI] [Linux] [Guest] Added checking of return values of subfunctions in function amdsmi_get_power_cap_info and added handling errors
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: I3bfcc6003d018add683d30efc9d038bdb6af072c
2023-04-25 09:20:40 -04:00
Marko Oblak 5e168c8f6a SWDEV-394359 - [AMDSMI] [Linux] [Guest] Resolved issue: status string and socket info API failing
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: I6fe3beafbf2cd3d2701dd5f78dac2bcf2d9b3aa9
2023-04-19 05:43:25 -04:00
Maisam Arif 452bffb6b4 CI Build directory fix
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I7600c3c4c2fd45ca240ee8ec04de55dc29c26365
2023-03-30 11:38:58 -04:00
Maisam Arif 4cc7244fb6 AMDSMI CLI Version 0.0.2
Added Rocm Set Commands
Wrapped all amdsmi_interface calls with error handling

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: Ic6b3648ef01ded8ee1fb7f0f14f3ca7bc069c567
2023-03-30 01:25:11 -05:00
AravindanC 689d58d2c9 SWDEV-351540 - ASAN packaging for amd-smi
Change-Id: I5f0bf5330727e11159db87c2814904a2832df385
2023-03-23 10:40:10 -07:00
Dalibor Stanisavljevic 3af2687f17 SWDEV-387561 - Fixed market name
In case there is no device id to map to the corresponding market_name,
the rsmi_dev_brand_get function is used to retrieve the market_name

Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
Change-Id: I565089d34b2b7e5f714e0dd41062ac8d52095835
2023-03-15 12:54:14 +01:00
Marko Oblak d1325fcf40 SWDEV-379772 - [Navi32] [SMI-LIB] [Linux] [BM] [Guest] Wrong market name
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: I12d3e650851a3aa474ccbf62628b60d4c385e68c
2023-03-06 17:08:33 +01:00
Marko Oblak 8429df989c SWDEV-371210 - [AMDSMI][LinuxBM] SMILIB returns wrong pcie speed value
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: Ie3ca6997f11d18505df799fef9cd9d53716d53f9
2023-02-28 11:49:20 +01:00
Marko Oblak db9d8793be SWDEV-381227 - [AMDSMI][Linux][BM] SMILIB returns wrong temperature value
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: Idc9929d1cfd882bb33abf040378587f68d22b31a
2023-02-21 17:21:15 +01:00
Dalibor Stanisavljevic c469c3d505 SWDEV-375213 - Renamed gpu_device to gpudevice for amdsmi_get_power_cap_info
Change-Id: I8518587f35e4ce897317a09505435eee7a8f81f8
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2023-01-26 14:11:26 +01:00
Dalibor Stanisavljevic ff553cdb56 SWDEV-375213 - Separate smi from rocm part inside functions
Change-Id: I81d2e9d02794ac017a74b3273c6f5a8c85b042a0
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2023-01-26 07:28:53 -05:00
Dalibor Stanisavljevic 411ef54087 SWDEV-375113 - Fixed process info
The format of the fdinfo file has changed

Change-Id: Iad2e26487e75f3e614e364456e929aa1f6f949a4
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2023-01-23 08:13:55 -05:00
Dalibor Stanisavljevic cf7a92f383 SWDEV-373282 - Fixed compiler warnings
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
Change-Id: Ieacf1057ad23f9a31d47a6d1199c90d8fa0d12db
2023-01-23 03:37:29 -05:00
Jason Albert 86de0f441f Remove tag values from enum/union/struct declarations
The tag values largely were not used and were causing doxygen
generation issues.
In the few cases where the tags were being referenced, clean up
those compile issues.

Signed-off-by: Jason Albert <jason.albert@amd.com>
Change-Id: I7b32eac742fb5af560400c13dda2721705d882bc
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2023-01-16 13:14:45 +01:00
Dalibor Stanisavljevic 49aad0f898 SWDEV-375098 - Added check if driver sysfs node exists
Change-Id: I2524f96e5447fd3a34aa16efe3dfc271b7df62b9
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2023-01-16 10:58:27 +01:00
Bill(Shuzhou) Liu f19da1bb2c Crash when fails to open sysfs file
When it fails to open sysfs file, it may crash. Modify the condition
to check the file descriptor after open the file.

Change-Id: I2acdc55f8194a2d734db20d16e1660a20ba09574
2023-01-13 08:15:58 -06:00
Dalibor Stanisavljevic 943c42f58f SWDEV-374716 - Fixed asic info
Change-Id: I8d806ef09eca4300fcec0ce6a226d13547dfb728
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2023-01-11 11:03:17 -05:00
Bill(Shuzhou) Liu ec48312c61 Remove duplicate temperature function
The amdsmi_dev_get_temp_metric() will cover both function:
amdsmi_get_temperature_measure() using AMDSMI_TEMP_CURRENT
and
amdsmi_get_temperature_limit() using AMDSMI_TEMP_CRITICAL
Remove those two function.

It also merge the amdsmi_get_power_limit() into
amdsmi_get_power_measure()

Change-Id: I40d4afeb2ec0ac7b64832729f36adfaae120c990
2023-01-11 08:13:37 -06:00
Bill(Shuzhou) Liu 79bd9c1d5f 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
2023-01-04 13:01:04 -06:00
Dalibor Stanisavljevic e22e72d4c3 SWDEV-371492 - Added check that device_handle is valid
Change-Id: Ic1b593fd5f781650528c860c372fa9864624255d
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2022-12-22 12:57:42 +01:00