Maisam Arif
b14d1ca543
SWDEV-410051 - Updates to board_info struct & CLI
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I8735d8965140ee5da0c35106b388af1dca87ec71
[ROCm/amdsmi commit: 2b4637ff9f ]
2023-10-27 16:52:56 -05:00
Maisam Arif
0bddd17717
Updated READMEs & Versioning for 6.0 Release
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Idadece3c1022ecba4291b96ddbe23112e27394de
[ROCm/amdsmi commit: 5018a57b62 ]
2023-10-16 16:57:49 -05:00
Maisam Arif
e77abc0a1d
Added memory & compute partitions to amd-smi lib
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: If3acea6ad281298f1f05785b2e6d8e70fae8d89b
[ROCm/amdsmi commit: 1f8d9cb9ef ]
2023-10-13 21:47:59 -04:00
Deepak Mewar
fad0af9ba2
esmi: remove energy reporting, fix errors from clang compiler
...
Clang compiler reporting errors while generating python wrappers for esmi lib
Change-Id: I62352aba3b87f9a6b044c97af6b9fd649612b622
[ROCm/amdsmi commit: ee890c5060 ]
2023-10-13 14:45:25 -04:00
Bill(Shuzhou) Liu
b9073f2bf7
Add new API for RAS related information
...
The API to get the EEPROM version and ECC schema.
Change-Id: Iee6b3c555541a33bf16bf9ac1fd60100dfff5643
[ROCm/amdsmi commit: d92d4e4b38 ]
2023-10-13 02:06:14 -04:00
Galantsev, Dmitrii
e3ee60fc5e
Merge rocmsmi/amd-staging into amd-dev 20231010
...
Change-Id: I492562094a004eb78b2cc2b52d14d013d9f97112
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 6d72d65c48 ]
2023-10-11 18:58:12 -05:00
Galantsev, Dmitrii
4e46b9ebf1
Fix amdsmi.h and update wrapper
...
Having an unnamed struct confuses our wrapper generator.
Adding a name solved it.
Change-Id: Iab3e73317fb21fb3667beef04878d4f3da96eadf
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 1b606acf73 ]
2023-10-10 17:58:25 -05:00
Bill(Shuzhou) Liu
dc0d637136
Add support to XGMI physical id
...
Get XGMI physical id from sysfs.
Change-Id: Ifd9e431bc2fbfd759d888a71b99046a5eb07b6ed
[ROCm/amdsmi commit: 6ca95c1a2d ]
2023-10-10 09:29:05 -04:00
Deepak Mewar
fe29a848bc
added metric table wrapper APIS & test code
...
Change-Id: I24207b3c32d7294337140a1f5108b81f3bf33580
[ROCm/amdsmi commit: 192fb538be ]
2023-10-10 00:03:11 -04:00
Bill(Shuzhou) Liu
c1a7a09f30
APIs for the cache level and size
...
Read the cache level and size from topoogy sysfs file.
Change-Id: Id3c558c95bcb79139a19e4adbaa7ff333d06098f
[ROCm/amdsmi commit: 1a233f93fb ]
2023-10-05 11:10:54 -05:00
Maisam Arif
401d3f229c
Added driver_name to amdsmi_cli tool
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I8f3d52e0b23298443b2b16afec418cbbbc5f77e0
[ROCm/amdsmi commit: 572bf563d1 ]
2023-10-04 08:54:19 -04:00
Maisam Arif
76d025cff0
SWDEV-410230 - Added slot_type to amd-smi static --bus
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I2006a3525a8aa9091bf54501461d364f7237f00f
[ROCm/amdsmi commit: fadf1b6cc9 ]
2023-10-02 10:15:34 -04:00
Bill(Shuzhou) Liu
90c9c8de4e
Get PCIe slot type
...
Add API to get the PCIe slot type.
Change-Id: If6894af53894c524d61c7586c59768541bbf0ac6
[ROCm/amdsmi commit: 9eccf20f0c ]
2023-09-27 23:31:09 -04:00
Maisam Arif
fb0440d493
Added sleep state to amd-smi metric --clock
...
Change-Id: Idb5fbc84a787ef1affdf0449b6dd77ab6e50e91d
Signed-off-by: Maisam Arif <maisarif@amd.com >
[ROCm/amdsmi commit: 95337c88fc ]
2023-09-26 15:21:25 -05:00
Galantsev, Dmitrii
07e65d05d4
SWDEV-423796 - Resolve stack smashing issue
...
Inconsistency between struct fields caused stack smashing
Change-Id: Ib06d67723e062d4306420854ba7ab45fb252ffe3
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 21dcf6d66c ]
2023-09-25 11:24:55 -05:00
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
Maisam Arif
d0656df4ca
Updated tool & lib versions & README.md
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ic41a36bcfa988ce9c8304157593012752857e919
[ROCm/amdsmi commit: 25b055014d ]
2023-09-25 02:02:22 -05:00
Galantsev, Dmitrii
49bd046e6e
actvity -> activity
...
Change-Id: Ie31d9faca2181cb2d47f7f4764b64ed8cc7f8007
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 2589d677b0 ]
2023-09-22 11:45:21 -05:00
Maisam Arif
0d4014c01e
SWDEV-417124 - Implement Power Management
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ib0d37038e49cec61d5415076a46a5666d95dcea2
[ROCm/amdsmi commit: e4fac177c1 ]
2023-09-21 14:23:26 -05:00
Bill(Shuzhou) Liu
ba4506639b
Return the driver loading status
...
When init the library, it could return status whether the driver is
loaded or not.
Change-Id: Id26b8058e32881ebe2514067a639a2a871d1f252
[ROCm/amdsmi commit: f86f62b3f7 ]
2023-09-18 08:38:16 -05: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
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
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
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
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
Shuzhou Liu
68ea764b85
Merge "Support PCIe vendor name" into amd-dev
...
[ROCm/amdsmi commit: fc5b481124 ]
2023-08-30 09:58:21 -04: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
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
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
Maisam Arif
7cd10f2082
Added workaround for inconsistent current pcie speed from gpumetrics
...
Change-Id: If8404d21341cd15eb4d0221ab92cb0b351bbdf3e
Signed-off-by: Maisam Arif <maisarif@amd.com >
[ROCm/amdsmi commit: b14da692eb ]
2023-08-09 11:35:35 -05:00
Maisam Arif
e2a1fed08c
Added Gen type to pcie info
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Icaa050a6f53fad608ed0353b2a0cbea33dee1dd2
Signed-off-by: Maisam Arif <maisarif@amd.com >
[ROCm/amdsmi commit: 82ac307f9b ]
2023-08-02 23:42:48 -05:00
Maisam Arif
907fcc53a1
Updated READMEs
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Idf34bc431184414a17c3cb50c06543151ce3cb56
[ROCm/amdsmi commit: a13d5be933 ]
2023-08-01 14:28:33 -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
Maisam Arif
294b2df38f
ASIC serial updates
...
Corrected asic serial fallback to use rsmi's unique id
Removed product serial due to duplication
Change-Id: Ib4e9ac00d2bf31ccbc35060bc84f7e79e5332d37
Signed-off-by: Maisam Arif <maisarif@amd.com >
[ROCm/amdsmi commit: d705801adf ]
2023-08-01 14:28:19 -04:00
Deepak Mewar
263a9fb6f4
esmi library integration update v1.0
...
1. new class files for cpu socket and cpu core created
2. wrapper API's for getting energy monitoring, system
statistics, power monitoring values implemented
3. modified amdsmi init & cleanup functions for esmi lib support
4. modified amdsmi system class for esmi lib support
5. sample test code created in example dir
Change-Id: Ic41f31641c283a681de696bb4346b557265bad42
[ROCm/amdsmi commit: 8a9771b225 ]
2023-07-27 17:29:27 -05:00
Deepak Mewar
12f4b83299
esmi library header changes
...
1. New processor types AMD_CPU_CORE, AMD_APU added to ENUM
2. esmi errorcodes, wrappers for structures and library APIs
3. Macro introduced to enable/disable the esmi library code
Change-Id: Ia64b29303c231d3f17ac6b40fcd09b09b4380903
[ROCm/amdsmi commit: 0187de61e2 ]
2023-07-27 16:21:24 -05: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
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
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
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
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
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
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
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