Граф коммитов

472 Коммитов

Автор SHA1 Сообщение Дата
Hao Zhou 71f2cd086f Merge amd-staging into amd-master 20221221
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I34a54bbf6a3b434f92fb5ca5abf699c61ab4a8a2


[ROCm/rocm_smi_lib commit: cd31d17736]
2022-12-21 09:03:03 +08:00
Ori Messinger 3d902e78e3 ROCm SMI CLI: Add --showtempgraph Feature
The purpose of this patch is to add a new feature to the smi cli.
Use ./rocm-smi --showtempgraph to print a persistant bar graph for
each GPU's temperature.

The bar graphs refresh continuously to show current temps, and the
graphs change in a color gradient depending on the temperature.

Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Change-Id: I98902b76c42cc7281420759f5ebe8c78f7785e66


[ROCm/rocm_smi_lib commit: 932feb6e49]
2022-12-15 18:20:32 -05:00
Hao Zhou 047eee3660 Merge amd-staging into amd-master 20221212
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I555da02f58185a9eca00954755c2bfd8e418e153


[ROCm/rocm_smi_lib commit: 34f4b63853]
2022-12-12 16:25:01 +08:00
kent.russell@amd.com 569847e375 rocm_smi.py: Fix order of CE and UE reporting
We append CE then UE, but in the table right after, it goes UE then CE.
Fix the order of the table, and add capitals for consistency

Change-Id: I208f37685508ab1e2ff83d3456620bbbf3a16268


[ROCm/rocm_smi_lib commit: 248c6f79f4]
2022-12-08 12:28:37 -05:00
Hao Zhou 1915bcb9f6 Merge amd-staging into amd-master 20221124
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Iff6f3f5c66a33f703588b2afbf767777564c178b


[ROCm/rocm_smi_lib commit: 3a5765fbcf]
2022-11-24 17:18:44 +08:00
Bill(Shuzhou) Liu 713d231125 Remove the shared mutex if no process is using it
If the code is crashed and the mutex may be in bad status. The user
has to mannually remove it. The fix will remove the shared mutex
if no process is using it.

Change-Id: I18bf562f2e0a7de8b3f0cccf72d60950b0d9bb2d


[ROCm/rocm_smi_lib commit: 76b5528feb]
2022-11-22 10:30:58 -05:00
Ranjith Ramakrishnan e6f3945503 SWDEV-366823 - Change pragma message to warning
File reorganization feature was implemented with backward compatibility
The backward compatibility support will be deprecated in future release.
Changed the #pragma message to #warning for a smooth transition

Change-Id: I281ad17949435fee4b508a2a7e112b6fa3365838


[ROCm/rocm_smi_lib commit: e7ed902fd6]
2022-11-21 01:08:12 -08:00
Hao Zhou ffbcaff967 Merge amd-staging into amd-master 20221103
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I13896298d0d4dbdb079ce4cd1372d7a61cd5df6c


[ROCm/rocm_smi_lib commit: dcebccffb2]
2022-11-03 14:27:32 +08:00
Sreekant Somasekharan 82331af987 [rocm_smi_kfd.cc] Handle return value from ReadSysfsStr function.
Return value from ReadSysfsStr function that reads cu_occupancy file
was not handled correctly. Modified the script to handle any fail conditions.

Change-Id: I3c71e0f6f288f196ed1f833e8709255c2b6e78ee


[ROCm/rocm_smi_lib commit: e9e3ba541e]
2022-10-31 12:20:06 -04:00
Hao Zhou 828e2d6204 Merge amd-staging into amd-master 20220929
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I7bdd77db1483022e54f2f0566c3c7d3c915c2729


[ROCm/rocm_smi_lib commit: b01855c4c5]
2022-09-29 15:45:17 +08:00
Ranjith Ramakrishnan 4f08cdd1ea SWDEV-345870 - Correct install interface for new directory layout
Install interface should provide /opt/rocm-ver/include as the include path
Path /opt/rocm-ver/rocm_smi/include should be used only as  part of backward compatibility support

Change-Id: Idc1f663069356c6b1fbd492f45ef4637fc90e4eb


[ROCm/rocm_smi_lib commit: 9a650b1378]
2022-09-13 10:48:21 -07:00
Hao Zhou 87c58cb954 Merge amd-staging into amd-master 20220909
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Ic8bbdad24b0671f6b77543daa9656f5c3662c2c8


[ROCm/rocm_smi_lib commit: 0f02a3a272]
2022-09-09 09:26:33 +08:00
Alex Sierra 43d4d2c55c Consider invalid peer link type during topology report
Invalid peer links are labeled as N/A during topology report creation.
This invalid link type could be triggered by having a configuration
with CPU XGMI iolinks and disable XGMI peer to peer access. This can
be done by setting the driver parameter 'use_xgmi_p2p = 0'.

Signed-off-by: Alex Sierra <Alex.Sierra@amd.com>
Change-Id: Ifb09a8f3266a3f07686615dfb45781d6cfe55e83


[ROCm/rocm_smi_lib commit: 03fab6b2b6]
2022-09-06 13:47:32 -05:00
Alex Sierra f4bb38e6ef Avoid report PCIe peer devices with CPU XGMI iolinks
Devices with CPU XGMI iolink do not support PCIe peer access. Therefore,
they should not be reported as accessible links in the topology.

Signed-off-by: Alex Sierra <Alex.Sierra@amd.com>
Change-Id: I3ee51796945dc0966200dee03886510e8f1846b7


[ROCm/rocm_smi_lib commit: 4658630d8d]
2022-09-02 09:18:30 -05:00
Hao Zhou 20bc07bcf6 Merge amd-staging into amd-master 20220901
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Ic59465c248f96a74d20226810c9ae98360797e34


[ROCm/rocm_smi_lib commit: 1efd6ee29c]
2022-09-01 09:54:40 +08:00
Ori Messinger d415a3b2e1 ROCm SMI CLI: Modify Column Header
The purpose of this patch is to modify the column header of the default
'./rocm-smi' command from 'Temp' to 'Temp (DieEdge)' for clarity.

Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Change-Id: I127a9214be97a1185c3db010f1c9176d1f412ec9


[ROCm/rocm_smi_lib commit: dfd88b593f]
2022-08-31 09:47:14 -04:00
Hao Zhou fa6754e2b0 Merge amd-staging into amd-master 20220826
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Ibef408e62669ec105571e605f333642cebc33112


[ROCm/rocm_smi_lib commit: a5e286d250]
2022-08-26 13:45:55 +08:00
Elena Sakhnovitch 827344a3e8 [rocm_smi.py] bugfix for non-alphanum parce issue
--showdeviceid
Fix for false-positive  "FRU is corrupted" messages,
since str(sn).isalphanum() triggers on empty struct.

--showproductname
fix script termination on non-alphanum product name

Change-Id: I78d4998e156f9b0d9f45338bed2a0d30b789e220


[ROCm/rocm_smi_lib commit: 8b2bc318eb]
2022-08-23 19:28:19 -04:00
Hao Zhou f8b5ca55d1 Merge amd-staging into amd-master 20220819
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I96cd3797e1d1f9dfc4f338746a48809357adc719


[ROCm/rocm_smi_lib commit: 8616e7b0b7]
2022-08-19 09:40:47 +08:00
Galantsev, Dmitrii 26ad77dace Remove python pyc file before uninstall
I6520b51aac34060b5b90f94a016cec1827a4973f happens after uninstall, which
leaves a dangling directory under /opt/rocm/libexec/rocm_smi.
Removing __pycache__ before uninstall fixes the issue.

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


[ROCm/rocm_smi_lib commit: cd11d7530b]
2022-08-11 19:55:14 -05:00
Hao Zhou 7e154c224b Merge amd-staging into amd-master 20220729
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Icb8fc012b23f5e991630ad5234339245bc68c273


[ROCm/rocm_smi_lib commit: 4626bf8938]
2022-07-29 15:53:10 +08:00
Ranjith Ramakrishnan 37482beadc Remove the default setting of cmake install libdir from source code
Any default value if required should be controlled from outside.
For ROCM, build script is setting the value to "lib"

Change-Id: I12a2951307fe64e46a4e608476bfceb678bdc97d


[ROCm/rocm_smi_lib commit: c5159fa6d1]
2022-07-28 13:55:55 -04:00
Hao Zhou bd1e769d2b Merge amd-staging into amd-master 20220722
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I1575353fb596e1fa001b888ff8c3a4555375efee


[ROCm/rocm_smi_lib commit: 350b77a1fc]
2022-07-22 11:51:56 +08:00
Divya Shikre f1154d2599 Add perf determinism to perf_level_string
This fixes the 'unknown' value being displayed
for Perf Level because of a missing mapping of
RSMI_DEV_PERF_LEVEL_DETERMINISM to its string
value.

Signed-off-by: Divya Shikre <DivyaUday.Shikre@amd.com>
Change-Id: I479c2baea450f0ff61640ad81cbd4d08ad56ff8e


[ROCm/rocm_smi_lib commit: 8144dd4d8e]
2022-07-21 08:55:38 -04:00
Ori Messinger 6f372e2e7a ROCm SMI CLI: Force RETCODE to 0 by Default
The purpose of this patch is to set RETCODE equal to 0 by default
unless an appropriate '--loglevel LEVEL' has been set.

To allow a non-zero RETCODE value, you must use any loglevel that
is not 'warning' or 'None' (default).

You can set the loglevel in the CLI with:
--loglevel <debug/info/warning/error/critical>

Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Change-Id: I9484a750206a3f464c59952304e72c59c3d12465


[ROCm/rocm_smi_lib commit: cbb068ccac]
2022-07-18 18:33:29 -04:00
Hao Zhou 0b95f9a33c Merge amd-staging into amd-master 20220708
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I8c0061b099bb140ecc6c3c4b491165da44c6b96a


[ROCm/rocm_smi_lib commit: 46e21f2509]
2022-07-08 08:56:45 +08:00
Sreekant Somasekharan 36521ce4be Fix documentation mistake related to get memory overdrive function.
Changes made on rsmi_perf_determinism_mode_set function documentation
as well for styling consistency.

Change-Id: I09ce8139eb9cbda94352ac7725c4c9b9bb06bd59


[ROCm/rocm_smi_lib commit: aa5cba122c]
2022-06-30 08:57:52 -04:00
Elena Sakhnovitch fd81567c79 rocm_smi.py: improve error output
Match alignment of error output with general output

signed-off-by Elena Sakhnovitch

Change-Id: Id4334152f4ad5665ff37d5d47e6f7ca0107a9428


[ROCm/rocm_smi_lib commit: 5d5ba738db]
2022-06-24 12:19:43 -04:00
Hao Zhou bc4d2976ca Merge amd-staging into amd-master 20220624
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Ieb7c5bc9c3480dabb8534a0be5839f00f60e100b


[ROCm/rocm_smi_lib commit: 4752e3184a]
2022-06-24 11:53:19 +08:00
Sreekant Somasekharan 37136ee50e Add rsmi lib function to get memory overdrive value
Change-Id: I515b51d5ce4baf966bb31714886a0d72330026bc


[ROCm/rocm_smi_lib commit: 1432e5e040]
2022-06-23 11:42:50 -04:00
Elena Sakhnovitch 19bbfffbfc [rocm_smi.py] Hiding unnecessary N/A lines
Hiding not applicable/unsupported sensors under INFO

Signed-off-by: Elena Sakhnovitch
Change-Id: I89c80ca7c6365ef3a2dd751a575ddf90044c8a2e


[ROCm/rocm_smi_lib commit: 0f88f59ddd]
2022-06-23 11:02:13 -04:00
Hao Zhou 51aafb235f Merge amd-staging into amd-master 20220617
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I1bfa6a012b2bfb7f744e018f129539a495c2c5db


[ROCm/rocm_smi_lib commit: 0635134df4]
2022-06-17 11:08:54 +08:00
Kent Russell 140656e176 rocm_smi.py: Handle corrupted serial number
If the FRU has been corrupted, then the serial number will come in with
any manner of random bytes, which will cause decode() to fail
spectacularily. Check that the serial returned by the kernel is
alphanumeric, and print to the error log if not (then continue to the
next device).

Change-Id: If4f35b140b6089e02729b1490ed6b48d614a122a


[ROCm/rocm_smi_lib commit: 6b6e840337]
2022-06-16 17:29:08 -04:00
Elena Sakhnovitch f4cac3e4ef [rocm_smi.py] error feedback improvement
Cleaning overally verbose error reporting system.

Signed-off-by: Elena Sakhnovitch
Signed-off-by: Sreekant Somasekharan
Change-Id: Icc96086810b8dcfc426848b8c349a2572026c3bd


[ROCm/rocm_smi_lib commit: 4dd2398f3d]
2022-06-16 14:32:13 -04:00
Ranjith Ramakrishnan 24b9610d3a SWDEV-321112 - Use GNUInstallDirs
Use GNUInstallDirs variables to determine the location of LIBDIR, BINDIR, INCLUDEDIR, DOCDIR

Note that CMAKE_INSTALL_LIBDIR is overriden, since the default for RHEL
is lib64, but ROCm packaging wants it to be lib always. Distros or users
can easily override this.

Change-Id: I616152ccd2bc1f5a60bffa940312b38ca6e88c04


[ROCm/rocm_smi_lib commit: b72c464ac0]
2022-06-16 13:22:49 -04:00
Ori Messinger d97ddd9e67 ROCm SMI CLI: Fix setClockRange Error
This patch changes the error handling for setClockRange.

When a device does not support modifying a clock type (sclk/mclk),
an error message is printed through the python CLI.

Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Change-Id: I37d9ea4189b1ca81e5deaab5efa6cfa4901b89b3


[ROCm/rocm_smi_lib commit: 2b8d0ad70f]
2022-06-15 15:47:51 -04:00
Hao Zhou 99f1744adc Merge amd-staging into amd-master 20220610
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Iaefd0a9180925d91d2e3ec03be84e5b04cf262b6


[ROCm/rocm_smi_lib commit: 90571416c1]
2022-06-10 09:08:16 +08:00
Bill(Shuzhou) Liu c8fbb50d8e Remove python pyc file when uninstall rpm
Remove python pyc file when uninstall rpm.

Change-Id: I6520b51aac34060b5b90f94a016cec1827a4973f


[ROCm/rocm_smi_lib commit: 42f11bdd63]
2022-06-09 09:00:38 -04:00
Divya Shikre 100e331812 Print log when PIDs dont use any GPU device.
showpidgpus prints 'none' when no GPU devices are
being used by the running process. Adding a fix
to print a relevant message.

Signed-off-by: Divya Shikre <DivyaUday.Shikre@amd.com>
Change-Id: I165a6644a76c8e1c3c3cad676dcfd41eb1c4724f


[ROCm/rocm_smi_lib commit: dcab886394]
2022-05-31 16:17:42 -04:00
Hao Zhou 30fa0d205a Merge amd-staging into amd-master 20220526
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Id96c706f0b9ecee20a9ded0fb1ee220f53219067


[ROCm/rocm_smi_lib commit: 4da4de6dbe]
2022-05-26 09:23:37 +08:00
Elena Sakhnovitch b2ac46009b [rocm_smi.py]: shownodesbw fix for non xgmi
Improve error output for non-xgmi nodes bandwidth

signed-off-by: Elena Sakhnovitch
Change-Id: I833970d3200a75c7639d33bf19e0e83afe176c8d


[ROCm/rocm_smi_lib commit: 44ea49eb01]
2022-05-24 16:45:32 -04:00
Ori Messinger 750c640171 ROCm SMI CLI: Fix --showvoltagerange bug
This patch fixes a --showvoltagerange bug, which attempts to check
the voltage curve on a device that does not have any voltage
regions in its OverDrive voltage frequency data (odvf).

Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Change-Id: I647c30c978ffb13f6819ac3d069ee340710a7f99


[ROCm/rocm_smi_lib commit: 786f66671a]
2022-05-21 05:02:15 -04:00
Ori Messinger 2459274e03 ROCm SMI CLI: Fix setPowerOverdrive restPowerOverdrive Bugs
Fixes bug in the 'setPowerOverdrive' function which mishandles
GPUs with secondary dies. Secondary dies have a default power cap
of 0W and cannot be changed, so they are now skipped.

Fixes bug in the 'resetPowerOverdrive' function which incorrectly
resets the wattage to the current value.

Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Change-Id: I483fa3f58b1fa44a3bf7bae3b52c59ce523ae152


[ROCm/rocm_smi_lib commit: 4298cbb400]
2022-05-21 05:01:32 -04:00
Hao Zhou f065ca3312 Merge amd-staging into amd-master 20220520
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I91f8474723b88f18ebccdf5c53716ca0cc98eca0


[ROCm/rocm_smi_lib commit: bf2626470a]
2022-05-20 11:29:39 +08:00
Divya Shikre 75467146b6 Fix mem leaks observed while running rsmitst
1.  Memory allocated for handle was not deleted
when no variant, subvariant or supported function
was found
2. handle->func_id_iter address was set to 0
before delete[]

Signed-off-by: Divya Shikre <DivyaUday.Shikre@amd.com>
Change-Id: Iab50fdfbe03eec8e6fd0e84e03bd2c47e645b3d8


[ROCm/rocm_smi_lib commit: b23cfc0e82]
2022-05-18 14:31:44 -04:00
Hao Zhou 8beab63f42 Merge amd-staging into amd-master 20220513
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: If141a24eeb09b9090fcf409507fe87abd6a90b29


[ROCm/rocm_smi_lib commit: 7e1154dc45]
2022-05-13 09:57:15 +08:00
Divya Shikre 231a61a394 Update get_frequencies to handle failures.
Show an optional debug log (RSMI_DEBUG_BITFIELD=2) to
the user in the following scenarios:
1. If more than one current frequency is found
2. If frequencies are not read in increasing order of
   their value
If current frequency is not available, index for it is
set to -1, values will not have * next to it in the
output. This will also be handled in rocm_smi.py.

Signed-off-by: Divya Shikre <DivyaUday.Shikre@amd.com>
Change-Id: I477ec065f7513c8045d6392f12ef6cb835a6b8f6


[ROCm/rocm_smi_lib commit: afe996c2ed]
2022-05-11 15:33:15 -04:00
Divya Shikre 853a6e517c Add DEBUG_LOG macro
Add DEBUG_LOG that will optionally print error
message when RSMI_DEBUG_BITFIELD is set to 2.

Signed-off-by: Divya Shikre <DivyaUday.Shikre@amd.com>
Change-Id: I6017e92d8a9e5f9861ae29ece0488d4bc198f996


[ROCm/rocm_smi_lib commit: 99be3451d7]
2022-05-11 11:03:24 -04:00
Divya Shikre 4a8d4b2878 Add RSMI_CLK_TYPE_PCIE to rsmi_clk_type_t
showclocks/showclkfrq does not display pp_dpm_pcie values
in sriov. This fix adds pcie clocks to rsmi_clk_type_t
where rest of the clocks are present.

Signed-off-by: Divya Shikre <DivyaUday.Shikre@amd.com>
Change-Id: I6d129ae412623b369c14456ae9781b2dbceb2139


[ROCm/rocm_smi_lib commit: c9b42bff57]
2022-05-06 09:15:39 -04:00
Hao Zhou 9d5a96e5c6 Merge amd-staging into amd-master 20220506
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I534e31fe3f65d363e5e83d3a72c7eb62d4a7acaf


[ROCm/rocm_smi_lib commit: 318a19d5fb]
2022-05-06 11:51:01 +08:00