Commit-Graf

722 Incheckningar

Upphovsman SHA1 Meddelande Datum
Charis Poag c9cf6c5750 Merge branch 'amd-dev' into change-896675-1
Change-Id: I950d40ff0789f62595561196aea48203b00d165b


[ROCm/amdsmi commit: c139bd8dc0]
2023-07-25 10:02:37 -05:00
Shuzhou Liu f763a20f39 Merge "Make vbios optional in amd-smi" into amd-dev
[ROCm/amdsmi commit: 8d4370c08c]
2023-07-25 09:59:49 -04:00
Shuzhou Liu 08472f8417 Merge "Make vbios version optional when discover GPU" into amd-dev
[ROCm/amdsmi commit: eb5d1b786f]
2023-07-25 09:59:33 -04:00
Charis Poag 50a5e05798 Merge branch 'amd-dev' into change-895251-1
Change-Id: I778bda482973b292d6de1b3f266619cbc852c2f5


[ROCm/amdsmi commit: 98c607c8fd]
2023-07-24 17:23:31 -05:00
Maisam Arif 6d0f19bbd3 Make vbios optional in amd-smi
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I61d54ea8a01112818df9f431f319533f1bc36f27


[ROCm/amdsmi commit: 261de2ceab]
2023-07-24 16:11:19 -05:00
Maisam Arif 40de47081e Merge "Changed output font and text size" into amd-dev
[ROCm/amdsmi commit: 2ae95ba1da]
2023-07-24 16:51:45 -04:00
Bill(Shuzhou) Liu 473a370cd8 Make vbios version optional when discover GPU
Not all GPU has the vbios, make vbios_version optional.

Change-Id: Idc00a0c17baccadea8f26b955237c513bb9a14df


[ROCm/amdsmi commit: 41d0f4ad5c]
2023-07-24 12:28:34 -05:00
Sirb, Corina a43c2f1a71 Changed output font and text size
Change-Id: I4f544781dc6be581585737c129b5e986cc05b09f


[ROCm/amdsmi commit: 0fa1d1e068]
2023-07-21 10:57:08 -04:00
Bill(Shuzhou) Liu 4d4f8a4f8c Change API to get the driver date
Support the driver date from libdrm.

Change-Id: I88e694732b538220e11fdb4029712bb5a6f44380


[ROCm/amdsmi commit: 55bf9cbe13]
2023-07-21 08:28:06 -05:00
Charis Poag 702022bdd1 Merge branch 'amd-dev' back into rocm-smi merge
Change-Id: Id19cb9ac9cb1ad9ed98fc766c08a00a998ec2373


[ROCm/amdsmi commit: 53e36d3813]
2023-07-20 20:04:11 -05:00
Marko Oblak 2cd3f6565e SWDEV-410048 - Remove --caps from tool
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: I3b71c8210401cbbe28905371febe084a4fdaf4ba


[ROCm/amdsmi commit: 9077411fcb]
2023-07-20 15:56:53 +02:00
Charis Poag 9fbf58a0c9 Merge 'rocm-smi/amd-staging' into 'amd-smi/amd-dev'
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
Change-Id: Id35c9807c45a965c968fb430e3ce4f3c7069c210


[ROCm/amdsmi commit: afa174c655]
2023-07-19 18:46:28 -05: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
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
Galantsev, Dmitrii e925cc320e Simplify gitignore
Remove generic gitignore to simplify tracking of generated files

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


[ROCm/amdsmi commit: e6c42c6626]
2023-07-07 11:48:09 -04:00
Jeremy Newton b214d2047e Fix python loading of librocm_smi64
The librocm_smi64.so is used for development, while
librocm_smi64.so.MAJOR is used for runtime, thus the python front end
should not be loading the .so binary, but rather the .so.MAJOR binary.

As well, it's good not to hardcode "lib" as some distros will change
this.

rsmiBindings.py is now generated with CMake

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: I7cb745f8936fdf10d3ebd6c1e606031f713184ca


[ROCm/amdsmi commit: 2d2c73a5e6]
2023-07-06 09:52:56 -04: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
Jeremy Newton dd8eaa40b2 Only install asan license if enabled
Change-Id: I79c6fce84c23ed12e65db8e234a29dbfedd11f68
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>


[ROCm/amdsmi commit: 828f46b445]
2023-06-30 23:34:43 -04:00
Jeremy Newton 9381fe711c Actually fix version string
There seems to be a scope issue with the existing variables, but just
putting in the pkg version string seems sufficient.

Change-Id: I4ccef872ff848a70cb2abc07bf605c5f29a608e8
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>


[ROCm/amdsmi commit: 4f481dd7f3]
2023-06-30 23:34:14 -04:00
Tom Rix 830de53e50 Improve handling of ContructBDFID errors
Building on this package on Fedora reports this warning
In file included from rpmbuild/BUILD/rocm_smi_lib-rocm-5.5.1/src/rocm_smi_main.cc:62:
In member function 'amd::smi::Device::set_bdfid(unsigned long)',
    inlined from 'amd::smi::RocmSMI::Initialize(unsigned long)' at rpmbuild/BUILD/rocm_smi_lib-rocm-5.5.1/src/rocm_smi_main.cc:330:27:
rpmbuild/BUILD/rocm_smi_lib-rocm-5.5.1/include/rocm_smi/rocm_smi_device.h:199:42: warning: 'bdfid' may be used uninitialized [-Wmaybe-uninitialized]
  199 |     void set_bdfid(uint64_t val) {bdfid_ = val;}
      |                                   ~~~~~~~^~~~~
rpmbuild/BUILD/rocm_smi_lib-rocm-5.5.1/src/rocm_smi_main.cc: In member function 'amd::smi::RocmSMI::Initialize(unsigned long)':
rpmbuild/BUILD/rocm_smi_lib-rocm-5.5.1/src/rocm_smi_main.cc:324:12: note: 'bdfid' was declared here
  324 |   uint64_t bdfid;
      |            ^~~~~

Only set the bdfid when it is know to be valid.

Signed-off-by: Tom Rix <trix@redhat.com>
Change-Id: I839b4d2d2d4e3b25469cf5972245b9630da00c87


[ROCm/amdsmi commit: 19c3e2aff9]
2023-06-30 00:16:44 -04:00
Jeremy Newton ebc4826ee9 Update default version to match tags
When building from github, these tags don't exist, so the defaults
should try to match the internal tags

Change-Id: Id570341f27e21916b1a7f3605ee2b5b9716cad9b
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>


[ROCm/amdsmi commit: 74dc98114f]
2023-06-30 00:16:22 -04: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
Jeremy Newton 70fa8a9903 Fix version file generation
This looks like a typo, as the following variables are not defined:
- AMD_SMI_LIBS_TARGET_VERSION_MAJOR
- AMD_SMI_LIBS_TARGET_VERSION_MINOR
- AMD_SMI_LIBS_TARGET_VERSION_PATCH

Change-Id: I43449e7bd2a2de643d33e79fad063a7859679c8d
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>


[ROCm/amdsmi commit: 1a86dd75bb]
2023-06-29 14:42:30 -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
Jeremy Newton 16f5c150d2 Fix python script install permissions
The keyword "PROGRAMS" should be used in place of "FILES" in order to
make sure executable scripts have the correct permissions.

Change-Id: I6c287dc1291774ad6d97a04d621957dea0a1b697
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>


[ROCm/amdsmi commit: d00d885394]
2023-06-27 14:57:59 -04:00
Bill(Shuzhou) Liu a2d80150c6 Crash if no hwmon sysfs
Return NOT_SUPPORTED if no hwmon sysfs.

Change-Id: I01356a21f004ab552ca6ef7ffb49934bfdfd5e31


[ROCm/amdsmi commit: 910bf677a9]
2023-06-26 08:00:32 -05: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
Galantsev, Dmitrii 56578b4333 SWDEV-406542 - Add gtest to install targets
Change-Id: I116505aaa33109fce66ab8daf9921e2de11a27d4
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 82078565e9]
2023-06-20 11:14:56 -05: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
Galantsev, Dmitrii 37f89fac6f SWDEV-391041 - Disable TestPowerReadWrite
Change-Id: I56b5bea3e5206a6f0d5ecdb482103881f80f0b8b
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 9519d5b8cf]
2023-06-16 15:18:27 -04:00
Galantsev, Dmitrii 849c6c3eaa Assign tests to aqua_vanjaram
Change-Id: Iee78b1e810356327261006087b081e39dab0b9e8
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: e7585cc045]
2023-06-16 15:18:27 -04:00
Bill(Shuzhou) Liu f6b66b7661 Expand showpids to provide more details
Provide details of GPU usage by an application.

Change-Id: I0f36df7d358754c2c8a60432b736d98f667ee99c


[ROCm/amdsmi commit: d9b6af7a09]
2023-06-16 08:52:18 -04: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 94d7ad71a3 SWDEV-340919 - Package rsmitst
Similar to I879b21428e6642f19fda67092b365d8b78b7ba7b.

Main CMake improvements:

* Add rsmitst with -DBUILD_TESTS=ON
* Package tests into rocm-smi-lib-tests.deb and .rpm
* Note - this breaks build_rsmitst.sh

Misc improvements:

* Add .editorconfig to normalize code formatting
* Export compile_commands.json
* Remove gtest source and pull from github instead

Change-Id: Ib87ed4a5acd9f78badae6d028e5ff3d4f56dafc2
Depends-On: I8b26795471ad1432c805e45d8b58d7bb34abfcfc
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 0478d53e23]
2023-06-13 22:52:10 -05:00
Galantsev, Dmitrii cc9a3905b9 Temporarily ignore TestFrequencies
See SWDEV-391039 and SWDEV-391040 for details

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


[ROCm/amdsmi commit: ac94bf5ed5]
2023-06-12 19:26:21 -05:00
Galantsev, Dmitrii 80dd98d778 --showtempgraph - Show N/A when no temp found
If temp in hwmon was missing - rocm-smi crashed.
e.g. /sys/class/drm/card1/device/hwmon/hwmon5/temp1_input

This change displays "N/A" for temp instead of crashing.

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


[ROCm/amdsmi commit: 713f85721b]
2023-06-12 19:16:39 -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
Maisam Arif 57e2ba5fe1 SWDEV-404157 - Fixed printLog delimiter parsing
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I3d8e22d185790f4325aeacc18e4bfcfe8777d356


[ROCm/amdsmi commit: 00e170c2f5]
2023-06-08 20:02:51 -05: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