Galantsev, Dmitrii
49553cf896
Merge remote-tracking branch 'rocmsmi/amd-staging' into HEAD
...
Change-Id: I0661926c10eef2bc32b83d9a63a3a6eb6991e781
[ROCm/amdsmi commit: 31cc2eecfb ]
2023-09-25 04:35:53 -05:00
Charis Poag
6e81bbcf16
Add Current (Instant) Socket Power
...
* Updates:
- rocm_smi_logger:
General cleanup &
Aligned to cpplint rules for usage
- rocm_smi_monitor:
Fixed MonitorTypes
from not displaying properly in logs
& Added socket power label + current
socket power MonitorTypes
- rocm_smi API:
Added rsmi_dev_current_socket_power_get API
- rocm_smi CLI:
General cleanup,
Concise info now displays device data
in variable width (see printLogSpacer's
new field),
printLogSpacer now as an adjustable
variable that overrides appWidth,
Added Socket Power to base rocm-smi +
--showpower CLI calls,
--showpower & base rocm-smi CLI defaults
to printing socket power (if not available,
displays average power)
- Cleaned up temp label references
- power_read gtests:
Added current socket power to testing
Change-Id: Ica57e6f98ad96e2584e7c7955e188f68d2dab89d
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
[ROCm/amdsmi commit: f078375350 ]
2023-09-25 01:38:54 -04:00
Ori Messinger
0d1ac5edac
ROCm SMI LIB: Add Missing Firmware Blocks
...
The purpose of this patch is to add the following missing firmware
blocks to the SMI LIB:
-RSMI_FW_BLOCK_MES
-RSMI_FW_BLOCK_MES_KIQ
Signed-off-by: Ori Messinger <Ori.Messinger@amd.com >
Change-Id: I5d4d37d883878dd02ef8533d4eb8891d54d70630
[ROCm/amdsmi commit: d44a6ef523 ]
2023-09-25 01:37:38 -04:00
Galantsev, Dmitrii
ab545816ba
SWDEV-423672 - Always compile and install gtest
...
This commit makes sure GTest is always compiled with rocm_smi_lib_tests.
GTest installation was inconsistent outside of AMD CI environment.
libgtest.so wouldn't get installed with rocm_smi_lib_tests if gtest
existed on the build machine. Which is undesirable when packaging.
Change-Id: I607df6c67c81480e3b6487b28f14924e8bf56ad4
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 0c662611e9 ]
2023-09-23 21:10:12 -04:00
Galantsev, Dmitrii
43591c22cf
Merge remote-tracking branch 'rocmsmi/amd-staging' into HEAD
...
Change-Id: I65ed7f3a0d1b6e58bc8377932d7c39db21d1b422
[ROCm/amdsmi commit: 5c41319c83 ]
2023-09-21 23:43:20 -05:00
Oliveira, Daniel
4fd608200c
rocm_smi_lib: Fix [linux BM] [AMDSMI] Memory Bandwidth
...
Implements APIs for 'gpu_metrics_v1_3' utilization averages
Code changes related to the following:
* rsmi_dev_activity_metric_get()
* rsmi_dev_activity_avg_mm_get()
* CLI shows "Avg.Memory Bandwidth" under "--showmemuse"
Change-Id: I8e4600f350a7c18499abf022534db2b875f09d5f
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
[ROCm/amdsmi commit: e0483f2ee2 ]
2023-09-21 11:00:29 -04:00
Galantsev, Dmitrii
b2273bfdf6
TESTS - Check power and frequency support
...
It is not guaranteed that power can be read or set for some GPUs
(MI300). It is also not guaranteed that frequencies can be set.
As this is not a tool issue - we simply skip the failing test.
Change-Id: I134e96a476040cef513cd924f00e30cd6dea42a5
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 5c574ac79c ]
2023-09-14 22:19:33 -04:00
Maisam Arif
806adfa83c
SWDEV-412847 - Changed junction to hotspot
...
Change-Id: I7f6c1a0a77e6a09d2a3e831463cf03e35266bf40
Signed-off-by: Maisam Arif <maisarif@amd.com >
[ROCm/amdsmi commit: d2ef113457 ]
2023-09-14 17:43:26 -05:00
Galantsev, Dmitrii
b2a9a2f2a6
Add errors for existing but empty dev files
...
Change-Id: Iad9febc50f9b8e6085f8b605249ee884d2f134d6
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: a4b470fe71 ]
2023-09-14 17:30:03 -04:00
Galantsev, Dmitrii
90929bce8e
Fix misspelling averge -> average
...
Change-Id: I3546348560acadb1e775e10ad24115de4ccfc800
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: d9381b6dae ]
2023-09-13 19:49:46 -05:00
Galantsev, Dmitrii
dc2bee3fc7
TESTS - re-enable frequency tests on aqua_vanjaram
...
Change-Id: I8fcd9418da5b973897ccfffc7d8a2f3ea833ea77
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: ff992e9b56 ]
2023-09-11 19:43:25 -05:00
Charis Poag
3fbe3beadd
Add GPU partition nodes
...
* Updates:
- Fixed infinit loop on systems
which did not have VRAM files
- Fixed concise info from throwing exception
with no amdgpu driver loaded
- Fix for ability to see all nodes when
after switching partitions (mirrors
original card display/settings)
- Added to logs build type, lib path,
and set env. variables
Change-Id: Ic0333df355144ce2242cecea93fe4ce51caf311c
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
[ROCm/amdsmi commit: ed6777a8e7 ]
2023-09-07 22:17:54 -05:00
Galantsev, Dmitrii
9e7b3ea3f6
Cleanup rocm_smi.cc
...
Change-Id: Ia676c237222b0dd5d9e8a054a93776f3b11e2225
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 4aef767596 ]
2023-09-07 15:50:40 -04:00
Bill(Shuzhou) Liu
8a4aead84b
Add API for the memory type
...
Get the memory type from libdrm and add a new API.
Change-Id: I89327bca2ef860f2e3f4f6ca20def2331eba66c0
[ROCm/amdsmi commit: b52034fed8 ]
2023-09-07 13:05:58 -05:00
Bill(Shuzhou) Liu
9869516963
Support PCIe vendor name
...
Add the support for PCIe vendor name.
Change-Id: Ibc1d289a08731e4c5a14f992f3b0d31b51482396
[ROCm/amdsmi commit: 9021ef96dc ]
2023-08-28 16:46:43 -05:00
Galantsev, Dmitrii
a464b0d202
Merge remote-tracking branch 'rocmsmi/amd-staging' into amd-dev
...
Change-Id: I7a35220a2283b92c5b4825ee99d6693401ef8e1e
[ROCm/amdsmi commit: 14190c5a94 ]
2023-08-28 16:01:19 -05:00
Galantsev, Dmitrii
fef2abcd95
TESTS - Add 90402 and simplify description
...
Change-Id: Ie6ab12d4201841fcb832d6827a5ec0ae5bb65114
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 84e90e55d5 ]
2023-08-25 14:01:53 -05:00
Bill(Shuzhou) Liu
914dee641d
Numa affinity shows large number
...
Change the affinity from unsigned int to integer to represent -1.
Change-Id: I82dc6f476b45fa4ec03a3c686fe8e6e2b7761b56
[ROCm/amdsmi commit: 471fbfddc1 ]
2023-08-25 09:01:08 -04:00
Galantsev, Dmitrii
413698396a
Merge remote-tracking branch 'rocmsmi/amd-staging' into amd-dev
...
Change-Id: I9c38b4facd472b877d1ad133f3176a023c890955
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 936719eeb6 ]
2023-08-23 16:04:15 -05:00
Galantsev, Dmitrii
27f9c861d2
TESTS - Fix incorrect TestVoltCurvRead assert if not supported
...
Change-Id: I2242aa9be84543276c63f1f57fdc489754c9ee07
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 613bd8ad1d ]
2023-08-22 16:51:42 -04:00
Galantsev, Dmitrii
dbc8684d08
TESTS - Use gpu version as a workaround for a missing name
...
Depends-On: Ifbd38f11fbde7ba28af4be1d611310dea1b5112a
Change-Id: Ia7b7975f03424854df0a470b2719cf2ff2cf8e40
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 62f01cb150 ]
2023-08-21 19:18:22 -04:00
Maisam Arif
9a98e0e317
Updated Versioning
...
corrected to amd-smi version from rocm-smi version
Added newline characters in the gpu choices
Updated cli versioning to 23.2.1.0 to match amd-smi
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ia6db3a281e2349e05a09209bdcfdfa5ac48e3a86
[ROCm/amdsmi commit: ca59a60a9a ]
2023-08-01 14:28:27 -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
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
Oliveira, Daniel
bec2ebc893
Add revision to --showhw
...
Code changes related to the following:
* Added 'rsmi_dev_revision_get()' related code
* Test code
* Functional tests
Change-Id: I8c2097c65384a028c8c8437b717d05d52fe45250
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
[ROCm/amdsmi commit: 573620f586 ]
2023-07-18 16:17:33 -05:00
Galantsev, Dmitrii
77d8364211
Fix sys and id tests
...
The following read tests were failing:
*.TestIdInfoRead
*.TestSysInfoRead
1. *.TestIdInfoRead failed because rsmi_dev_brand_get did not specify
dependency on vbios_version.
2. *.TestSysInfoRead failed because the test didn't expect vbios_version to
be missing. Which is a new behavior in Aqua Vanjaram.
Change-Id: I9ee88a12fcf6cff2032049e2ecdfb2957efb03ab
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 8fe848d10e ]
2023-07-17 15:52:23 -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
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
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
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
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
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
Galantsev, Dmitrii
2bbf54b117
Fix test temp blacklist, ignore TestVoltCurvRead
...
Change-Id: I86fa14fdc06e1b170a0bc0c0727fc08e4f4e2074
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: f78f9a4082 ]
2023-06-06 17:02:14 -04: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
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
Bill(Shuzhou) Liu
da3da06941
Return NOT_SUPPORT for set function in VM guest
...
Fix the unit tests which are fail in VM guest environment.
Change-Id: Id7c58887692bbdecba54f5d2d8463b292e19b4ad
[ROCm/amdsmi commit: dc4ba12e00 ]
2023-05-11 10:42:55 -05:00
Suma Hegde
90607682ef
Renamed APIs
...
amdsmi_dev_open_supported_func_iterator -> amdsmi_open_supported_func_iterator
amdsmi_dev_open_supported_variant_iterator -> amdsmi_open_supported_variant_iterator
amdsmi_dev_close_supported_func_iterator -> amdsmi_close_supported_func_iterator
Change-Id: Ie9b2efa5aee7095c3c835b91de1951df6b065510
[ROCm/amdsmi commit: edd8f1ae23 ]
2023-05-11 11:01:37 -04:00
Suma Hegde
19262e1fd8
Renamed API amdsmi_dev_reset_xgmi_error
...
amdsmi_dev_reset_xgmi_error -> amdsmi_reset_gpu_xgmi_error
grep -rli 'amdsmi_dev_reset_xgmi_error' * | xargs -i@ sed -i
's/amdsmi_dev_reset_xgmi_error/amdsmi_reset_gpu_xgmi_error/g' @
Change-Id: Ic7e4c4b345fdf6187aed42d53fb7ae8536c2edea
[ROCm/amdsmi commit: 6256bf6f1a ]
2023-05-11 11:01:25 -04:00
Suma Hegde
0be5a5fb82
Renamed APIs
...
amdsmi_dev_get_gpu_ecc_status -> amdsmi_get_gpu_ecc_status
amdsmi_dev_get_gpu_ecc_enabled -> amdsmi_get_gpu_ecc_enabled
amdsmi_dev_get_gpu_ecc_count -> amdsmi_get_gpu_ecc_count
Change-Id: I84e6489f82bae115e1a13c9e4fce8029888ca379
[ROCm/amdsmi commit: d9ba131f73 ]
2023-05-11 11:00:59 -04:00
Deepak Mewar
e0d2d9b909
Renamed APIs
...
1) amdsmi_dev_set_overdrive_level to amdsmi_set_gpu_overdrive_level
2) amdsmi_dev_set_overdrive_level_v1 to amdsmi_set_gpu_overdrive_level_v1
grep -rli 'amdsmi_dev_set_overdrive_level' * | xargs -i@ sed -i
's/amdsmi_dev_set_overdrive_level/amdsmi_set_gpu_overdrive_level/g' @
Change-Id: Id6934e5b0962c9262cca041bdfdf02c60f69573b
[ROCm/amdsmi commit: e687a72235 ]
2023-05-11 11:00:45 -04:00
Deepak Mewar
9d23ac40c6
Renamed API amdsmi_dev_get_od_volt_curve_regions
...
to amdsmi_get_gpu_od_volt_curve_regions
grep -rli 'amdsmi_dev_get_od_volt_curve_regions' * | xargs -i@ sed -i
's/amdsmi_dev_get_od_volt_curve_regions/amdsmi_get_gpu_od_volt_curve_regions/g' @
Change-Id: I4b390c2d5173ca919c4ab5b1173a4fc40e2a0015
[ROCm/amdsmi commit: ced22230c4 ]
2023-05-11 11:00:33 -04:00
Deepak Mewar
a970cea1b0
Renamed API amdsmi_dev_set_od_volt_info
...
to amdsmi_set_gpu_od_volt_info
grep -rli 'amdsmi_dev_set_od_volt_info' * | xargs -i@ sed -i
's/amdsmi_dev_set_od_volt_info/amdsmi_set_gpu_od_volt_info/g' @
Change-Id: I2364f9f555c010e1022e2c946a65b72fcf3d2233
[ROCm/amdsmi commit: 467f3e3bb7 ]
2023-05-11 10:59:51 -04:00
Deepak Mewar
19d30f71bd
Renamed API amdsmi_dev_set_od_clk_info
...
to amdsmi_set_gpu_od_clk_info
grep -rli 'amdsmi_dev_set_od_clk_info' * | xargs -i@ sed -i
's/amdsmi_dev_set_od_clk_info/amdsmi_set_gpu_od_clk_info/g' @
Change-Id: I0f1fd5a80322a544f7d25e09146c9e52b82091f6
[ROCm/amdsmi commit: a72e1ec91d ]
2023-05-11 10:59:25 -04:00
Deepak Mewar
cd81fa970d
Renamed API amdsmi_dev_get_od_volt_info
...
to amdsmi_get_gpu_od_volt_info
grep -rli 'amdsmi_dev_get_od_volt_info' * | xargs -i@ sed -i
's/amdsmi_dev_get_od_volt_info/amdsmi_get_gpu_od_volt_info/g' @
Change-Id: Icd8658509b28523b7c04f8d2c53efb82689e294b
[ROCm/amdsmi commit: 2bd94db02c ]
2023-05-11 10:59:11 -04:00
Deepak Mewar
6229bac89b
Renamed API amdsmi_dev_get_overdrive_level
...
to amdsmi_get_gpu_overdrive_level
grep -rli 'amdsmi_dev_get_overdrive_level' * | xargs -i@ sed -i
's/amdsmi_dev_get_overdrive_level/amdsmi_get_gpu_overdrive_level/g' @
Change-Id: Id33a4544a2f2fd9d77de601addcf4e45d09d65d1
[ROCm/amdsmi commit: 78ce4979e1 ]
2023-05-11 10:59:00 -04:00
Deepak Mewar
f9e0851070
Renamed API amdsmi_dev_xgmi_error_status
...
to amdsmi_gpu_xgmi_error_status
grep -rli 'amdsmi_dev_xgmi_error_status' * | xargs -i@ sed -i
's/amdsmi_dev_xgmi_error_status/amdsmi_gpu_xgmi_error_status/g' @
Change-Id: I0d2338f0e924da5d69d280fdd988c2a6f9fe4ace
[ROCm/amdsmi commit: d83dc2b005 ]
2023-05-11 10:58:49 -04:00
Deepak Mewar
3be8f88cab
Renamed API amdsmi_counter_get_available_counters
...
to amdsmi_get_gpu_available_counters
grep -rli 'amdsmi_counter_get_available_counters' * | xargs -i@ sed -i
's/amdsmi_counter_get_available_counters/amdsmi_get_gpu_available_counters/g' @
Change-Id: Ief60be6c95f2ea4d0f6f91b153263d95710e6942
[ROCm/amdsmi commit: 0cb9e157db ]
2023-05-11 10:56:57 -04:00