Commit Graph

530 Commits

Author SHA1 Message Date
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 404b8229ac 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


[ROCm/amdsmi commit: 8c8f41f893]
2023-05-11 10:34:42 -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
Deepak Mewar cb1d3ef3ce 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


[ROCm/amdsmi commit: 5ed24711c7]
2023-05-11 10:30:32 -04:00
Deepak Mewar fc8df2885e 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


[ROCm/amdsmi commit: 3fec3b4b4a]
2023-05-11 10:30:05 -04:00
Suma Hegde 320b708b6e 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


[ROCm/amdsmi commit: 6e6176b04a]
2023-05-11 10:29:35 -04:00
Suma Hegde dd840db708 Change device to processor in API names and variable names
Change-Id: Ide71fabeaa837f2035dc9726162cc537e40b4a57


[ROCm/amdsmi commit: ae39d9707d]
2023-05-11 10:29:01 -04:00
Suma Hegde 746e0ffb5c 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


[ROCm/amdsmi commit: dd00a16124]
2023-05-11 10:28:31 -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
Suma Hegde 86a4cc3d11 Change AMDSmiDevice to AMDSmiProcessor
grep -rli 'AMDSmiDevice' * | xargs -i@ sed -i 's/AMDSmiDevice/AMDSmiProcessor/g' @

Change-Id: Ib71e11d7122699cc62df3c4e9711ce3fc51e6fdf


[ROCm/amdsmi commit: c4aa7d2c03]
2023-05-11 10:08:40 -04:00
Dalibor Stanisavljevic 77728c48f3 SWDEV-397054 - Added ecc info (accummulated number of ECC errors)
Change-Id: I75f6fc402d8c62046c4ccd581347360343aea0e4
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>


[ROCm/amdsmi commit: 6cce103fba]
2023-05-09 10:48:02 +02:00
Dalibor Stanisavljevic dbd6fe5768 SWDEV-397055 - Remove mm_ip_list from caps
Change-Id: Ia4f337d24744fc545e8336705fe7a2b2d9b5f8db
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>


[ROCm/amdsmi commit: b36f040bf9]
2023-04-28 03:54:24 -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
Dalibor Stanisavljevic c9f3e7683b SWDEV-392029 - Added support for guest
If one API fail, tool will work properly for all other arguments

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


[ROCm/amdsmi commit: f8e7d93a69]
2023-04-25 10:17:13 -04:00
Maisam Arif 0c84413614 SWDEV-392033 - Topology gpu index fix
Fixed Topology csv output
	Added README.md for amd-smi

Change-Id: I05819b883af01c19383ee4f220923798fc7453e2
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: 515adfb61f]
2023-04-25 09:16:17 -05:00
Marko Oblak bdc4abb376 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


[ROCm/amdsmi commit: 9b476baf8e]
2023-04-25 09:20:40 -04:00
Dalibor Stanisavljevic 9ea55651b9 SWDEV-392029 - Implemented platform detection
Change-Id: Ieefccf65c35f17ffa17761139a0ae56ef5438341
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>


[ROCm/amdsmi commit: cd15cf1cf4]
2023-04-24 14:57:42 +02:00
Maisam Arif d5a6159233 SWDEV-392033: Added Topology Command
Change-Id: Ib1d007aee9937e3062d0e9c9898ca9198a585132
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: 39da929fe4]
2023-04-21 15:33:18 -05:00
Maisam Arif 582cab11ff SWDEV-380722 - Watch Modifier
Updated CSV & Watch output
Change-Id: If88b9375482dbb9afa4e24b1847397b65d73d050
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: 543c573cc7]
2023-04-21 15:09:53 -05:00
Maisam Arif 1de2329c18 SWDEV-380688 - Added CSV Format
Change-Id: I609bc9837132fd674bf54480a3220c911b2909d2
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: 8ad410f6af]
2023-04-20 00:06:20 -05:00
Bill(Shuzhou) Liu a1c2a246b1 Crash if no hwmon sysfs
Return NOT_SUPPORTED if no hwmon sysfs.

Change-Id: I8f4bea0d74619150aee7dfc21fe62d24018e2994


[ROCm/amdsmi commit: b39a56fc52]
2023-04-19 05:46:02 -04:00
Marko Oblak 29a981ecab 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


[ROCm/amdsmi commit: 5e168c8f6a]
2023-04-19 05:43:25 -04:00
Maisam Arif d048ee8e14 SWDEV-381302 - Added Error handling for Set & Metric
Bug Fixes for Set and Fan
Updated lib_amdsmi.so directory access
Backwards compatability fixes for gpuv-smi

Change-Id: I3b7977859c750c1c3d6f41eaa761c81d8b9e5184
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: 0830e983d8]
2023-04-18 10:27:50 -05:00
Dalibor Stanisavljevic d13f16e2c9 SWDEV-381302 - Added error handling
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
Change-Id: Ia69c8aebdaa23e212c0ce2522201092bab54e732


[ROCm/amdsmi commit: 06f12c4700]
2023-04-18 14:00:11 +02:00
Maisam Arif 5743058efb CI Build directory fix
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I7600c3c4c2fd45ca240ee8ec04de55dc29c26365


[ROCm/amdsmi commit: 452bffb6b4]
2023-03-30 11:38:58 -04:00
AravindanC 49ac5ae1e1 SWDEV-351540 - ASAN packaging for amd-smi added amdsmi_cli and py-interface under dev comp
Change-Id: Ifa7a2e5e280f2d0ef8868c63cd4ba94ca75a3468


[ROCm/amdsmi commit: 35b9c40c7d]
2023-03-30 08:10:17 -07:00
Maisam Arif 584d563ed9 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


[ROCm/amdsmi commit: 4cc7244fb6]
2023-03-30 01:25:11 -05:00
AravindanC e8a95d9028 SWDEV-351540 - ASAN packaging for amd-smi
Change-Id: I5f0bf5330727e11159db87c2814904a2832df385


[ROCm/amdsmi commit: 689d58d2c9]
2023-03-23 10:40:10 -07:00
Galantsev, Dmitrii bb2a7811a4 CLI: Remove python dependency
Python is no longer used for generating any CLI files

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


[ROCm/amdsmi commit: e92afab18e]
2023-03-22 08:14:53 -05:00
Galantsev, Dmitrii 9aa803cfc0 CLI: Make compatible with python3.6
Wrapper generation is still only compatible with python3.7 and above

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


[ROCm/amdsmi commit: adceb8033d]
2023-03-21 17:09:55 -05:00
Galantsev, Dmitrii a94331f293 CMake: Replace .whl with libexec install
Generating .whl has proved to be difficult with AMD CI.
Switch to directly installing python projects instead.

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


[ROCm/amdsmi commit: 87b9faf926]
2023-03-20 21:24:39 -05:00
Maisam Arif 24c96943d4 AMDSMI CLI Initial Packaging
- Added CMake packaging to the amdsmi_cli folder
- Updated Headings in the README.md to follow markdown standard
- Updated Compatibility to be based on the built package name in bin
- Added misc error handling and import corrections
- Updated py-interface amdsmi_exception imports to work by relative path
- Cleaned up py-interface cmake & generator code for finding libamd_smi.so
- Changed line endings in tools/generator.py file to unix

Change-Id: I91858ff3dd0cb57ed9b8cd61a0ada27b6af9c51c
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: 235c8db949]
2023-03-20 10:50:21 -05:00
Maisam Arif b8f463cda5 AMDSMI_CLI version 0.0.1
Change-Id: I0b02ddf1cc22753635062475cccadcc235e3a603
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: aa70b77ec5]
2023-03-20 08:51:35 -05:00
Galantsev, Dmitrii 446f1d1c15 Improve python wrapper generation
- Add "BUILD_PACKAGE" option that is OFF by default (CI issues)

- Optionally package wrapper if python3.7 or above is present (hack for CI)
- Optionally build wrapper if clang is present (hack for CI)
- Improve dependency resolution for wrapper
- Use python venv
- Use pyproject.toml instead of setup.py
- Use CMake install path to search for libamd_smi.so
- Move python-specific CMakeLists into py-interface
- Search for libamd_smi.so more aggressively

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


[ROCm/amdsmi commit: 74479187d0]
2023-03-16 09:13:56 -05:00
Dalibor Stanisavljevic feffb7dd00 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


[ROCm/amdsmi commit: 3af2687f17]
2023-03-15 12:54:14 +01:00
Bill(Shuzhou) Liu e18c56efd8 amdsmitst crash when read ECC counter
If the amdsmi is fail to read ECC counter from sysfs file, it
still assumes the data is read into vector, which causes crash.

Add the check to make sure the data is read into the vector.

Change-Id: Ia24331ee6e75408120248b0ed7bc58581a2f23ad


[ROCm/amdsmi commit: ad3b7d9f0d]
2023-03-08 09:13:04 -05:00
Marko Oblak c5054f75f4 SWDEV-379772 - [Navi32] [SMI-LIB] [Linux] [BM] [Guest] Wrong market name
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: I12d3e650851a3aa474ccbf62628b60d4c385e68c


[ROCm/amdsmi commit: d1325fcf40]
2023-03-06 17:08:33 +01:00
Marko Oblak f59498bb9d SWDEV-371210 - [AMDSMI][LinuxBM] SMILIB returns wrong pcie speed value
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: Ie3ca6997f11d18505df799fef9cd9d53716d53f9


[ROCm/amdsmi commit: 8429df989c]
2023-02-28 11:49:20 +01:00
Dalibor Stanisavljevic 08e3cdccf4 SWDEV-380736 - Adjusted ouput for amdsmi_get_vram_usage
Change-Id: I6a2cd2353a0c3fafc3a3690098a1e279ecd30378
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>


[ROCm/amdsmi commit: 7b176fc2df]
2023-02-24 14:47:07 +01:00
Marko Oblak 839c93fa14 SWDEV-384518 - [AMDSMI] [Navi32] [Linux] [BM] [Guest] Fixed RAS enabled Python interface
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: Iacdb57ddc63ea3e7ce5c19506577487ab18c0c89


[ROCm/amdsmi commit: b43b6e71c2]
2023-02-23 15:51:45 +01:00
Marko Oblak f0e658c03e SWDEV-384678 - Resolve issue with amdsmi build failure
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: I073113814d2f6740c9eaea1b298d8aff9ea58c72


[ROCm/amdsmi commit: 7eea4e596b]
2023-02-22 11:00:57 +01:00
Marko Oblak 9c6b1f56d5 SWDEV-373291 - Added implementation of versioning solution
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: Ifd0be3f81902466339b6c098ce16d5e49740056c


[ROCm/amdsmi commit: 0aadf7eab2]
2023-02-21 17:37:54 +01:00