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
0eaab523bf
Fixed metric temp try catch
...
Fixed tabbing
Fixed gpu is to gpu ==
Fixed metric temperature calls to do as much as possible and not
error when one metric is not supported
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I360c380ad18581ab2e0cc8f7d1109d3da2556907
[ROCm/amdsmi commit: 1394f74b92 ]
2023-09-14 18:44:00 -04:00
Maisam Arif
35d20bcb80
Spell check bandwith to bandwidth
...
Change-Id: Icfb3b2398fe0590dbab6e531c8ec1cdceebe658d
Signed-off-by: Maisam Arif <maisarif@amd.com >
[ROCm/amdsmi commit: 42b030def3 ]
2023-09-14 18:43:49 -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
bb23bfae2f
README - shell -> bash
...
Change-Id: I3a50c38ae280747b4874cff443091f332980fe50
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 238c7f6dca ]
2023-09-14 17:32:01 -04:00
Galantsev, Dmitrii
f9a268a46a
README - Add a documentation link
...
Change-Id: Ia56994825e99e72829283f07bed7379d95d24498
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 26c4578ee2 ]
2023-09-14 16:31:42 -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
Oliveira, Daniel
c9f9221ebe
rocm_smi_lib: Fix rocm-smi --resetfans results in Permission Denied
...
For operations related to:
--resetfans
--setfan
We report 'Not supported' for these cases instead of 'Permission denied'
Code changes related to the following:
* rocm_smi_properties
* rocm_smi related APIs
Change-Id: I144646efc3804fabd45cc5a46351803950b4feb7
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
[ROCm/amdsmi commit: 12f395e592 ]
2023-09-14 16:54:29 -04:00
Hao Zhou
fad7cb7e2c
Merge amd-staging into amd-master 20230914
...
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com >
Change-Id: Id1d6f305fdcfa723d7b0db5b65fb43d281ccd8cf
[ROCm/amdsmi commit: 3b6251bd6b ]
2023-09-14 10:22:30 +08: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
77a46001c2
README - Add documentation links
...
Change-Id: I048c159394286545d518176d2751a43934b7fe9d
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: fe0b6e5f4c ]
2023-09-13 19:38:38 -05:00
Galantsev, Dmitrii
a917139be4
PY: Silence error output when printing concise info
...
Change-Id: I9ce4ad523b3fe2ec8afc5bea791810ec67558f11
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 4acfb00ad5 ]
2023-09-12 19:16:16 -04:00
Shuzhou Liu
0825443a75
Merge "Add API for the memory type" into amd-dev
...
[ROCm/amdsmi commit: ab615f6b2a ]
2023-09-12 09:34:03 -04: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
Galantsev, Dmitrii
aa6b00cb4d
SWDEV-409184 - Fix erroneous 'not supported' when HWMON is absent
...
Change-Id: Ic5ff406977d962fadc709a03853dac61b5460a26
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 41ade41d84 ]
2023-09-11 19:34:30 -05:00
Naveen Krishna Chatradhi
37075cd685
Merge "Updated esmi error checking for graceful return" into amd-dev
...
[ROCm/amdsmi commit: 9a8770246a ]
2023-09-11 05:36:58 -04: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
Dmitrii Galantsev
fb183c1dd6
Merge "Removed replay_count from Virtual OS's" into amd-dev
...
[ROCm/amdsmi commit: d900792ef3 ]
2023-09-07 16:03:02 -04: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
13e544d3ba
Fix doxygen warning messages
...
The Doxygen will enable warning as error message.
Change-Id: Ie7a7c9a823388c4140f31489604d65ec43005772
[ROCm/amdsmi commit: fab0542ab1 ]
2023-09-07 08:48:38 -04:00
Hao Zhou
0f23a6418a
Merge amd-staging into amd-master 20230907
...
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com >
Change-Id: I834fb22c825182a745e1ea83071e5b481825270d
[ROCm/amdsmi commit: e98d5273df ]
2023-09-07 10:18:14 +08:00
Deepak Mewar
9d8c10b3e5
Updated esmi error checking for graceful return
...
Change-Id: I1bcd498e3482dc7acd92b1a762f892b3dd978ff2
[ROCm/amdsmi commit: 14cf5f2762 ]
2023-09-04 08:27:12 -04:00
Galantsev, Dmitrii
7edc93a1b4
Fix temperature reads
...
Change-Id: Iad5e5201911f620495985591e21fc5aaae028faf
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 489991a322 ]
2023-08-31 18:50:58 -05:00
Dmitrii Galantsev
2aab123f47
Merge "Update amdsmi_wrapper.py and name fields" into amd-dev
...
[ROCm/amdsmi commit: f96c7663b5 ]
2023-08-30 17:30:38 -04:00
Galantsev, Dmitrii
5ac201fe42
Update amdsmi_wrapper.py and name fields
...
When updating the wrapper I ran into an issue with anonymous structs.
Generated wrapper would contain a string split into multiple lines,
which is invalid python.
e.g.
'struct_struct anonymous
(struct.... amdsmi.h:355)'
After naming the structs - the issue is gone. BDF union now has to be
addressed with .fields
e.g.
OLD: bdf.function_number
NEW: bdf.fields.function_number
Change-Id: Ib3c640c088ad0cc67893d636827356902051f17f
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 03cfdeefd5 ]
2023-08-30 16:30:03 -05:00
Oliveira, Daniel
42fb5488d2
rocm_smi_lib: Fix rocm-smi --showfan shows 'unable to detect fan'
...
Code changes related to the following:
* Reverts earlier fix for the same issue
* Check for existence of files before reading
Change-Id: I175b20c3343c414b12b79dc3fc404f53fbaabf3a
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
[ROCm/amdsmi commit: 328ce0150b ]
2023-08-30 14:45:05 -05:00
Maisam Arif
a997bf8c08
Removed replay_count from Virtual OS's
...
Change-Id: I5abb12d32e756f954f7e36595979bb8f1cbe5ad9
Signed-off-by: Maisam Arif <maisarif@amd.com >
[ROCm/amdsmi commit: cc4417d301 ]
2023-08-30 10:43:35 -05:00
Shuzhou Liu
68ea764b85
Merge "Support PCIe vendor name" into amd-dev
...
[ROCm/amdsmi commit: fc5b481124 ]
2023-08-30 09:58:21 -04:00
Hao Zhou
6682214f50
Merge amd-staging into amd-master 20230830
...
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com >
Change-Id: Idf2c4eb33f400b59232d9e8d5effebcd99a3e180
[ROCm/amdsmi commit: c9413dc931 ]
2023-08-30 18:01:34 +08:00
Deepak Mewar
46501e725a
wrapper API to get first online core on cpu socket
...
Change-Id: Ia1785f94ff687e53fdb868e56d4a83c2466ba2ed
[ROCm/amdsmi commit: f1ade88d47 ]
2023-08-29 05:15:33 -04:00
Deepak Mewar
89d8f62fc4
Renamed esmi library APIs and bound the APIs
...
to cpusocket handle
Change-Id: I6e3d8aa667df475339c28b27294349843f32230c
[ROCm/amdsmi commit: 0baa3f6b6a ]
2023-08-29 05:15:12 -04:00
Deepak Mewar
a6b0a2c8c5
Wrapper APIs for esmi library
...
ddr bw monitor, temperature query, Dimm statistics, xGMI BW control,
GMI3 width control, APB and LCLK level control, BW monitor
Change-Id: I9207451fbd81cfd904a2f9c29d9c28856894cf95
[ROCm/amdsmi commit: a14237b508 ]
2023-08-29 05:14:52 -04:00
Deepak Mewar
180b9a55e6
Wrapper APIs and sample tests for esmi power control,
...
boostlimit monitor, boostlimit control, esmi error status
Change-Id: Id8db926eab2f6be386ed21081e651fcc9b389a22
[ROCm/amdsmi commit: a7d7c5c6e1 ]
2023-08-29 05:14:26 -04:00
Deepak Mewar
5ff71dfbb2
Wrapper API declared for esmi error status
...
Change-Id: Ie3e00a50740d9ba58d7f4955ea6b76ab8b46fb5e
[ROCm/amdsmi commit: 7c0e21ddc7 ]
2023-08-29 05:14:01 -04:00
Galantsev, Dmitrii
8d98bfe46d
Fix uint32* -> int32* conversion error
...
Change-Id: I23c2a842468896e8d120ac4b8b55ef433dff6d85
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 1d24dd93a6 ]
2023-08-28 18:32:31 -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
Maisam Arif
39aedec916
Added mi300 market names & change tabs to spaces
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ic0f363b888c9f19397fa84d2b26698b3881682b2
[ROCm/amdsmi commit: f4d25d7ba3 ]
2023-08-28 15:53:57 -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
Hao Zhou
f0bf5c2bf0
Merge amd-staging into amd-master 20230825
...
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com >
Change-Id: Ib4196cad6830991b11677ce6a49d1de80ec5bc0e
[ROCm/amdsmi commit: c1584d7c14 ]
2023-08-25 09:48:55 +08:00
Oliveira, Daniel
d8480a22d9
rocm_smi_lib/rocm_smi.py: Fix Add 'GPU name' in rocm-smi output
...
Code changes related to the following:
* rocm_smi.py
Change-Id: I600e776bf479f972b8d639ce5a658a24916aed3c
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
[ROCm/amdsmi commit: 3602447109 ]
2023-08-24 13:22:24 -05:00
Oliveira, Daniel
47354c9d3d
rocm_smi_lib/rocm_smi.py: Fix rocm-smi --resetfans shows 'permission denied'
...
Properly handles 'Not supported' fan cases where:
* sysfs file (pwm#_enable) exists
* sysfs file (pwm#_enable) does not exist
Change-Id: Ifa3c290e5ee1d27a550e94d86cd25ad8dcef3f59
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
[ROCm/amdsmi commit: 654f65118b ]
2023-08-24 10:54:50 -05:00
Oliveira, Daniel
745a5cca97
rocm_smi_lib/rocm_smi.py: Fix rocm-smi --showfan shows 'unable to detect fan'
...
Properly handles 'Unable to detect' vs 'Not supported' fan cases where:
* sysfs file (pwm#) exists, and readings report zero (0), "Unable to detect fan speed"
* sysfs file (pwm#) does not exist, then "Not supported"
Change-Id: If4b0312c872b76647a3e54427ba2a3f3e8e6dab1
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
[ROCm/amdsmi commit: f9fd6b0a96 ]
2023-08-23 20:43:08 -05: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
Charis Poag
d0ea73d2a2
Error handling for unset freqs
...
Sending RSMI_STATUS_UNEXPECTED_DATA for drivers
which do not set some clock freqs
Change-Id: I43a9515c2757dddd412bb25cfd54095e63367030
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
[ROCm/amdsmi commit: f191c2753c ]
2023-08-23 10:44:57 -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
6402893cf7
.editorconfig - Remove broken whitespace rule
...
Change-Id: I67260f1f1952609dc89834d0763acd732bf39860
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 548b68cb67 ]
2023-08-22 16:51:20 -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