Commit Graph

667 Commits

Author SHA1 Message Date
Hao Zhou ac791a24d2 Merge amd-staging into amd-master 20230721
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I785c19badfe9b36429003eeb3e6d89fdc988a0c9


[ROCm/amdsmi commit: 58f73bc055]
2023-07-21 13:52:33 +08:00
Maisam Arif d4474f5bf2 Merge "[AMDSMI] [Linux] [BM] [Guest] Improve Python readme" into amd-dev
[ROCm/amdsmi commit: 1bbfb0af56]
2023-07-19 16:07:29 -04:00
Marko Oblak 1ffbaf3793 [AMDSMI] [Linux] [BM] [Guest] Improve Python readme
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: Ic8c1ea2789407621d2155763a33cc7059cfe6729


[ROCm/amdsmi commit: 8f7e795b02]
2023-07-19 13:46:00 +02:00
Sirb, Corina a88074671e Update Copyright Date
Signed-off-by: Sirb, Corina <corina.sirb@amd.com>
Change-Id: I4b5dc49a5d756012e533ba7196b246836cf980f6


[ROCm/amdsmi commit: ebe0cecd9e]
2023-07-18 15:05:14 -04:00
Hao Zhou 23940eeb5d Merge amd-staging into amd-master 20230714
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Ibb3ad39fdb94f93b6c8ef77e0d2447791ec6a20c


[ROCm/amdsmi commit: 2db54bbeaf]
2023-07-14 09:30:20 +08:00
Bill(Shuzhou) Liu fa6f0f5ea0 Fix unit test errors
Add unit test error handling for set freq and volt.

Change-Id: I5877f8300b942caac8f38e6efc03264bfc432def


[ROCm/amdsmi commit: 4307330cb0]
2023-07-12 09:39:39 -04:00
Vukasin Nedeljkovic c0bc09b2f7 SWDEV-407430 [AMDSMI][Tool][Linux][BM] PCIE unit update
Signed-off-by: Vukasin Nedeljkovic <Vukasin.Nedeljkovic@amd.com>
Change-Id: I7615cd1fcf504719e1032076bb836964fc44f4e0


[ROCm/amdsmi commit: 59b2b7bea4]
2023-07-12 08:36:29 +02:00
Vukasin Nedeljkovic 13377ac5ca SWDEV-407428 [AMDSMI][Tool][Linux][BM] static update to HEX
Signed-off-by: Vukasin Nedeljkovic <Vukasin.Nedeljkovic@amd.com>
Change-Id: I4db506a2467b460c9c635e4e2790dd1e8fd0a196


[ROCm/amdsmi commit: 3f0441a74c]
2023-07-11 13:05:41 +02:00
Hao Zhou 5841b81729 Merge amd-staging into amd-master 20230710
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I213f4f064b94187a9d157e51fb09c3051a26a449


[ROCm/amdsmi commit: 129bee2bfb]
2023-07-10 11:11:02 +08:00
Bill(Shuzhou) Liu fb7085441b Handle key not exists errors for voltage sensor
Check the key exists or not before access sensor map.

Change-Id: I0ac5d63ae981ec2f984b1d464e93508560a4d030


[ROCm/amdsmi commit: 7b107258ff]
2023-07-05 09:25:27 -04:00
Marko Oblak f877896d3a SWDEV-391188 - [AMDSMI][LinuxGuest] Added description in amdsmi header file for amdsmi_get_gpu_process_list, changed mentioned API in py_interface
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: I8cb7f2c6595da6ab0263e6fa4365bde91d900979


[ROCm/amdsmi commit: 78faf411f8]
2023-07-03 06:35:12 -04:00
Hao Zhou 6ce33719c0 Merge amd-staging into amd-master 20230630
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I97ea2b65f4ac2ae87bbadf7d0f5b3408b44afa9a


[ROCm/amdsmi commit: 048523cd34]
2023-06-30 10:19:58 +08:00
Bill(Shuzhou) Liu ea2583f48c amdsmi_init() fail when miss voltage sysfs
Fix the error handling when voltage sysfs is missing.

Change-Id: I457289eb4fd45bb05af83a67289b056f7e2ad966


[ROCm/amdsmi commit: 3b1e2f0817]
2023-06-29 17:19:41 -04:00
Maisam Arif e7552a95e1 Corrected temp_vram_limit variable reference
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: Ic54cc62a8ac1ea9c63b2270810d95e6589059160


[ROCm/amdsmi commit: 36671450f0]
2023-06-29 16:34:41 -04:00
Bill(Shuzhou) Liu 262ef9dba1 Fix fan write unit test failure
Even if fan speed can be read, sometimes the set is not supported.

Change-Id: I8584e6fe170c34144800af78d76f04234def11c8


[ROCm/amdsmi commit: 9e2fcd0e40]
2023-06-29 07:58:23 -05:00
Bill(Shuzhou) Liu 72009f1812 Return NOT_SUPPORTED if fail to write to sysfs
Check the error and return NOT_SUPPORTED when write to sysfs.

Change-Id: Idaa91816197413643552e230a483b79500d44e08


[ROCm/amdsmi commit: 145868ad72]
2023-06-28 09:05:51 -05:00
Hao Zhou a72f0e015a Merge amd-staging into amd-master 20230628
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Ibd424aa0750d598195dc9440365a565836177681


[ROCm/amdsmi commit: dc60ab0179]
2023-06-28 11:50:48 +08:00
Deepak Mewar 0218a2797d cmake option for hsmp
For enabling hsmp, run 'cmake .. -DENABLE_ESMI_LIB=ON'
else run 'cmake ..' for default compilation

Change-Id: I8effba13854bc12eeff4b50feb4f63643cae28e6


[ROCm/amdsmi commit: 210af88a20]
2023-06-26 05:55:18 -04:00
Suma Hegde 18c5ae7414 add esmi src and inc paths to CMakeLists.txt
Amd-smi functions will be calling esmi functions.
Hence we need to include esmi source and include files

Change-Id: Icea0553ab76da64b89aebbf2423f26e0dd4fee65


[ROCm/amdsmi commit: a51a5d76e0]
2023-06-26 02:35:50 -04:00
Suma Hegde 9d5f5d84fd add esmi repo as git sub module
esmi library repo from gerrit path is added as submodule
to amd-smi repo.
To get esmi submodule synced along with amd-smi repo, cloning can be done with
"git clone --recurse-submodules" or
after cloning amd-smi repo,
"git submodule update --init" will sync the esmi library.

Change-Id: Ia0f382995f29018b469083b27918effc96a51b56


[ROCm/amdsmi commit: 3c7f106afc]
2023-06-26 02:35:27 -04:00
Maisam Arif b634f8420b Changed RPM dependencies to suggestions
Change-Id: I3d2918cc1f86733aaee41f86e1619bd22316398b
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: b6d7570bd4]
2023-06-22 11:44:28 -05:00
Marko Oblak a255ac2a38 SWDEV-392359 - [AMDSMI] [Linux] [Guest] Documented unsupported APIs
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: I0cff925082e6bc637e4b5073df64445380b3a3f5


[ROCm/amdsmi commit: 01474ff14e]
2023-06-21 13:18:32 +02:00
Hao Zhou de8c19cbaf Merge amd-staging into amd-master 20230621
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: If8f67c643b269088d6ea95d2674fec9b3ef1f804


[ROCm/amdsmi commit: 8e72984acd]
2023-06-21 09:11:13 +08:00
Bill(Shuzhou) Liu 2540d432cc SWDEV-405668 - BDF difference between amdsmi and rocmsmi
The render node discovery is changed to match rocm-smi index.

Change-Id: I707d0844b377304f4e8fc15035902c707805c2dc


[ROCm/amdsmi commit: 8f26e881fb]
2023-06-16 17:06:00 -04:00
Hao Zhou 58daecf99e Merge amd-staging into amd-master 20230616
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Iff54607e329acbadb2960bfa24c0b046c9d37962


[ROCm/amdsmi commit: 39f5a8dd83]
2023-06-16 11:18:37 +08:00
Maisam Arif 5ecabf2276 CMAKE: Changed dependency to suggestion for centos
Updated pyproject.toml to depend on clang via pip
	Changed python38 dependency to a suggestion for rpm builds
Change-Id: Idf3bd94aafaf715f600dead0a3a9cb95cff29368
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: 0a1e486214]
2023-06-15 00:51:45 -05:00
Galantsev, Dmitrii d0619e581a Merge amd-dev into amd-master 20230614
Change-Id: Id99b5713c1618ad1649c3081115d2f0ce56c8b2b
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: f82660a853]
2023-06-14 10:06:37 -05:00
Nikola Veljkovic 6419d75809 SWDEV-404225 Add support for Navi32 deviceIDs
Change-Id: Ibfe7c8f4cf04243c3e4e5754c1eaa3253d4d5be4
Signed-off-by: Nikola Veljkovic <Nikola.Veljkovic@amd.com>


[ROCm/amdsmi commit: b3d3b4c38d]
2023-06-09 10:42:00 -04:00
Hao Zhou a90082ba77 Merge amd-staging into amd-master 20230609
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Ica2eeeb2e63bfdfb41d6e3cac9dac61d41830204


[ROCm/amdsmi commit: 4a1425fff6]
2023-06-09 09:40:14 +08:00
Galantsev, Dmitrii f4d6e3c8a7 CMAKE: Remove EPEL dependencies from RPM build
This commit reverts changes to CMake made in
Ie3b85fde7563dd84dce499f229aac1f94bcc2989

Those broke compilation on rhel-9 and SLES

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


[ROCm/amdsmi commit: 483c3fe483]
2023-06-07 10:39:43 -05:00
Maisam Arif a3ec450571 Cleaned up APIs
Change-Id: I93487e01d7126bdfa77439b571df927a6af3bb70
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: 9cebc93cee]
2023-06-07 10:48:37 -04:00
Sam Wu 602130e212 Sphinx Documentation Setup
Added README links to Python library and CLI tool
Get correct version number from header file
Updated base README with sphinx documentation steps

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


[ROCm/amdsmi commit: 7104b6fe31]
2023-06-07 09:47:37 -05:00
Hao Zhou fd94d455ae Merge amd-staging into amd-master 20230605
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Iecc1960c400461379d3a6b7ae5a139477a300fcb


[ROCm/amdsmi commit: 36bea41185]
2023-06-05 10:07:19 +08:00
Dalibor Stanisavljevic 7fcee0d34b Align header changes with other platforms
Change-Id: I366e57310e0504855692626e2b2014bea235ed6b
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>


[ROCm/amdsmi commit: 8dbc1d7d57]
2023-06-02 12:28:09 +02:00
Dalibor Stanisavljevic daba7ffdb2 Updated python api to match header changes
Change-Id: I02f6dde54f50d1d66f8c4a8777f849bf63b50c85
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>


[ROCm/amdsmi commit: 1185397d90]
2023-06-01 09:40:24 -04:00
Hao Zhou 9ea1c75e31 Merge amd-staging into amd-master 20230601
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I05594273afa23ac4a10ac0e9eff9788e31b73f3c


[ROCm/amdsmi commit: c3395134e5]
2023-06-01 13:26:07 +08:00
Sam Wu 505a8bc3c4 add configurations for sphinx documentation
Change-Id: I5672348aab0f20d0bfc4dd1efcfecdf4324342d6


[ROCm/amdsmi commit: c5e06b4040]
2023-05-30 16:08:54 -06:00
Bill(Shuzhou) Liu 58962bb075 Clean up the APIs
Remove and rename APIs after review.

Change-Id: I5464f200eb605b366673f8abca95183c3837843b


[ROCm/amdsmi commit: 62ce965409]
2023-05-30 16:08:54 -04:00
Galantsev, Dmitrii fdb21bd5f5 Merge amd-dev into amd-master 20230529
Change-Id: I2ace47d1151e30358098f5b1704395b2fab43e49
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: b7320bc2fb]
2023-05-29 16:42:44 -05:00
Maisam Arif ec28030323 Updated AMD-SMI README install instructions
Change-Id: I9c914e4fb5fbe22e1ff449408beafc250f5b4bf7
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: 7477562374]
2023-05-29 16:38:26 -05:00
Maisam Arif 14e2aad3e7 Corrected amdsmi_interface api call & versioning
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I3a80716cb544ab0512073b34702b7fa132767668


[ROCm/amdsmi commit: 60b2b7fb83]
2023-05-25 09:53:57 -05:00
Galantsev, Dmitrii 0a070d4b1c Merge amd-dev into amd-master 20230524
Change-Id: I13197ced9ac95113067fe4ec6a011826a8f3f328
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 79b62b132f]
2023-05-24 18:32:23 -05:00
Maisam Arif 88ff2a1ee0 Updated AMD-SMI README.md with CLI install instructions
Updated amd-smi-lib README with CLI install instructions
	Updated version of the python interface and the CLI tool
		to 0.1.0 due to the ESMI header changes

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


[ROCm/amdsmi commit: 72638192f7]
2023-05-24 10:07:19 -05:00
Maisam Arif c94f66bbb6 AMD-SMI-CLI - Packaging updates
Added fallback in amdsmi_init.py to access /opt/rocm/share/amd_smi
        if python package is not installed
    Made libamd_smi.so detection more reliable
    Added PyYaml dependency to pyproject.toml
    Added python3-clang dependency in CMakeLists
    Updated python3 version dependency in CMakeLists
    Update Readme
    Added Release Notes

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


[ROCm/amdsmi commit: da50f4f078]
2023-05-23 10:32:08 -05:00
Maisam Arif 8110af6487 SWDEV-396262 - Fixed units for AMDSMI CLI process
Change-Id: Ib85cfb9fe313cfc2eb5cd1d1437426786a99abd9
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: 2f18ec7539]
2023-05-23 10:31:50 -05:00
Maisam Arif 800af9bf55 SWDEV-397381 - Corrected ECC per block reporting
Change-Id: If666e2f1a4b13dd08b6a19f08f3c01297515712c
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: fe64f426d8]
2023-05-23 10:31:06 -05:00
Maisam Arif 66f933eeb3 SWDEV-399063 - Fixed process metrics showing incorrectly for all gpus
Change-Id: I4ae576f34472c3dbbfa0b136f55ce996834323ad
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: 6b8fe4a377]
2023-05-23 10:25:05 -05:00
Maisam Arif 09940e45df AMD-SMI-CLI - Updated amdsmi_interface calls to new headers
Change-Id: I031f08c912f2cc77bba3a6f4356b5121072fb71e
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: 01bd64c718]
2023-05-22 08:35:22 -05:00
Dalibor Stanisavljevic d95be94e51 SWDEV-384793 - Clean up API
Change-Id: I441b315d32df59a454e06d521e5ca8b2c229451a
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>


[ROCm/amdsmi commit: 1bc1d431d8]
2023-05-19 16:40:26 +02:00
Dalibor Stanisavljevic c76586e482 SWDEV-384797 - Renamed measure to info
Change-Id: I2397ed189fe0171ed29bd6440f8fa0bb210b95a5
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>


[ROCm/amdsmi commit: ca7f965018]
2023-05-17 05:10:58 -04:00