Deepak Mewar
192fb538be
added metric table wrapper APIS & test code
...
Change-Id: I24207b3c32d7294337140a1f5108b81f3bf33580
2023-10-10 00:03:11 -04:00
Maisam Arif
02b4b67ca0
Added memory information to Guest
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I3e6b4bba3746c9498d34e6d2840461489eb3bc61
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-10-09 17:41:08 -05:00
Bill(Shuzhou) Liu
1a233f93fb
APIs for the cache level and size
...
Read the cache level and size from topoogy sysfs file.
Change-Id: Id3c558c95bcb79139a19e4adbaa7ff333d06098f
2023-10-05 11:10:54 -05:00
Bill(Shuzhou) Liu
656f12e0f3
Read PCIe slot type from sysfs
...
Read the PCIe slot type from sysfs instead of libdrm.
Change-Id: I9392b9e18a209ac7332f6902bcafb3b6062c86c1
2023-10-05 09:58:36 -04:00
Maisam Arif
572bf563d1
Added driver_name to amdsmi_cli tool
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I8f3d52e0b23298443b2b16afec418cbbbc5f77e0
2023-10-04 08:54:19 -04:00
Maisam Arif
fadf1b6cc9
SWDEV-410230 - Added slot_type to amd-smi static --bus
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I2006a3525a8aa9091bf54501461d364f7237f00f
2023-10-02 10:15:34 -04:00
Maisam Arif
b58665e77b
Adjust static --board output to be inline with Host
...
Change-Id: Ia6dcca5be077ef9e04533b632628a62633b63556
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-10-02 09:30:25 -04:00
Bill(Shuzhou) Liu
9eccf20f0c
Get PCIe slot type
...
Add API to get the PCIe slot type.
Change-Id: If6894af53894c524d61c7586c59768541bbf0ac6
2023-09-27 23:31:09 -04:00
Maisam Arif
95337c88fc
Added sleep state to amd-smi metric --clock
...
Change-Id: Idb5fbc84a787ef1affdf0449b6dd77ab6e50e91d
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-09-26 15:21:25 -05:00
Maisam Arif
8a9f862dbf
Change uuid_info file read to uuid generation
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I77f2c6b44efd6faae3c2466989e1caeaad16669d
2023-09-24 21:17:34 -04:00
Maisam Arif
6dcfd4a815
Added vram info to static --vram
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I48f6875d5131440848ef6f5875c6d385fee871e3
2023-09-23 23:52:50 -04:00
Bill(Shuzhou) Liu
9fc677a261
Standard format driver date
...
Normalize the driver date format.
Change-Id: I2f9623e99d28217b3cc1a9b6f91cbe77ed66fac9
2023-09-23 23:46:43 -04:00
Maisam Arif
def17accbe
Corrected voltage_read call in amdsmi_get_power_info
...
Change-Id: I4097b3ac5699360d4e91c8b8254431b6b6768c3e
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-09-21 23:41:38 -05:00
Maisam Arif
e4fac177c1
SWDEV-417124 - Implement Power Management
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ib0d37038e49cec61d5415076a46a5666d95dcea2
2023-09-21 14:23:26 -05:00
Maisam Arif
d756f5ee72
Merge "Return the driver loading status" into amd-dev
2023-09-19 13:01:28 -04:00
Maisam Arif
df9e05a4b1
Adjusted power limits
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I8586c4a6c9d0a6a05003013c702f88cc42d05114
2023-09-18 18:11:39 -05:00
Bill(Shuzhou) Liu
f86f62b3f7
Return the driver loading status
...
When init the library, it could return status whether the driver is
loaded or not.
Change-Id: Id26b8058e32881ebe2514067a639a2a871d1f252
2023-09-18 08:38:16 -05:00
Maisam Arif
42b030def3
Spell check bandwith to bandwidth
...
Change-Id: Icfb3b2398fe0590dbab6e531c8ec1cdceebe658d
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-09-14 18:43:49 -04:00
Shuzhou Liu
ab615f6b2a
Merge "Add API for the memory type" into amd-dev
2023-09-12 09:34:03 -04:00
Naveen Krishna Chatradhi
9a8770246a
Merge "Updated esmi error checking for graceful return" into amd-dev
2023-09-11 05:36:58 -04:00
Bill(Shuzhou) Liu
b52034fed8
Add API for the memory type
...
Get the memory type from libdrm and add a new API.
Change-Id: I89327bca2ef860f2e3f4f6ca20def2331eba66c0
2023-09-07 13:05:58 -05:00
Deepak Mewar
14cf5f2762
Updated esmi error checking for graceful return
...
Change-Id: I1bcd498e3482dc7acd92b1a762f892b3dd978ff2
2023-09-04 08:27:12 -04:00
Galantsev, Dmitrii
489991a322
Fix temperature reads
...
Change-Id: Iad5e5201911f620495985591e21fc5aaae028faf
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-08-31 18:50:58 -05:00
Dmitrii Galantsev
f96c7663b5
Merge "Update amdsmi_wrapper.py and name fields" into amd-dev
2023-08-30 17:30:38 -04:00
Galantsev, Dmitrii
03cfdeefd5
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 >
2023-08-30 16:30:03 -05:00
Shuzhou Liu
fc5b481124
Merge "Support PCIe vendor name" into amd-dev
2023-08-30 09:58:21 -04:00
Deepak Mewar
f1ade88d47
wrapper API to get first online core on cpu socket
...
Change-Id: Ia1785f94ff687e53fdb868e56d4a83c2466ba2ed
2023-08-29 05:15:33 -04:00
Deepak Mewar
0baa3f6b6a
Renamed esmi library APIs and bound the APIs
...
to cpusocket handle
Change-Id: I6e3d8aa667df475339c28b27294349843f32230c
2023-08-29 05:15:12 -04:00
Deepak Mewar
a14237b508
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
2023-08-29 05:14:52 -04:00
Deepak Mewar
a7d7c5c6e1
Wrapper APIs and sample tests for esmi power control,
...
boostlimit monitor, boostlimit control, esmi error status
Change-Id: Id8db926eab2f6be386ed21081e651fcc9b389a22
2023-08-29 05:14:26 -04:00
Galantsev, Dmitrii
1d24dd93a6
Fix uint32* -> int32* conversion error
...
Change-Id: I23c2a842468896e8d120ac4b8b55ef433dff6d85
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-08-28 18:32:31 -05:00
Bill(Shuzhou) Liu
9021ef96dc
Support PCIe vendor name
...
Add the support for PCIe vendor name.
Change-Id: Ibc1d289a08731e4c5a14f992f3b0d31b51482396
2023-08-28 16:46:43 -05:00
Maisam Arif
f4d25d7ba3
Added mi300 market names & change tabs to spaces
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ic0f363b888c9f19397fa84d2b26698b3881682b2
2023-08-28 15:53:57 -05:00
Galantsev, Dmitrii
936719eeb6
Merge remote-tracking branch 'rocmsmi/amd-staging' into amd-dev
...
Change-Id: I9c38b4facd472b877d1ad133f3176a023c890955
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-08-23 16:04:15 -05:00
Maisam Arif
b14da692eb
Added workaround for inconsistent current pcie speed from gpumetrics
...
Change-Id: If8404d21341cd15eb4d0221ab92cb0b351bbdf3e
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-08-09 11:35:35 -05:00
Maisam Arif
82ac307f9b
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 >
2023-08-02 23:42:48 -05:00
Maisam Arif
27388c6208
Updated Clock minimum values
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ia4c34eca18077c595248ac34afed1b844a1be727
2023-08-01 14:28:45 -04:00
Maisam Arif
ca59a60a9a
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
2023-08-01 14:28:27 -04:00
Maisam Arif
d705801adf
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 >
2023-08-01 14:28:19 -04:00
Deepak Mewar
8a9771b225
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
2023-07-27 17:29:27 -05:00
Marko Oblak
e0b84c5d1f
SWDEV-413516 - [AMDSMI][Linux][BM] Changed mapping pcie speed from pcie type
...
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com >
Change-Id: I5bcee99ec596bb831465d5a4e98a78681c24b20f
2023-07-27 16:21:24 -05:00
Marko Oblak
f9ce3925a4
SWDEV-412839 - PCIe speed - change in mapping
...
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com >
Change-Id: If75530a8b2e1647d2cb31733decfba3837dac7bf
2023-07-27 16:21:24 -05:00
Maisam Arif
261de2ceab
Make vbios optional in amd-smi
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I61d54ea8a01112818df9f431f319533f1bc36f27
2023-07-24 16:11:19 -05:00
Bill(Shuzhou) Liu
55bf9cbe13
Change API to get the driver date
...
Support the driver date from libdrm.
Change-Id: I88e694732b538220e11fdb4029712bb5a6f44380
2023-07-21 08:28:06 -05:00
Marko Oblak
01474ff14e
SWDEV-392359 - [AMDSMI] [Linux] [Guest] Documented unsupported APIs
...
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com >
Change-Id: I0cff925082e6bc637e4b5073df64445380b3a3f5
2023-06-21 13:18:32 +02:00
Bill(Shuzhou) Liu
8f26e881fb
SWDEV-405668 - BDF difference between amdsmi and rocmsmi
...
The render node discovery is changed to match rocm-smi index.
Change-Id: I707d0844b377304f4e8fc15035902c707805c2dc
2023-06-16 17:06:00 -04:00
Nikola Veljkovic
b3d3b4c38d
SWDEV-404225 Add support for Navi32 deviceIDs
...
Change-Id: Ibfe7c8f4cf04243c3e4e5754c1eaa3253d4d5be4
Signed-off-by: Nikola Veljkovic <Nikola.Veljkovic@amd.com >
2023-06-09 10:42:00 -04:00
Maisam Arif
9cebc93cee
Cleaned up APIs
...
Change-Id: I93487e01d7126bdfa77439b571df927a6af3bb70
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
2023-06-07 10:48:37 -04:00
Dalibor Stanisavljevic
8dbc1d7d57
Align header changes with other platforms
...
Change-Id: I366e57310e0504855692626e2b2014bea235ed6b
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-06-02 12:28:09 +02:00
Bill(Shuzhou) Liu
62ce965409
Clean up the APIs
...
Remove and rename APIs after review.
Change-Id: I5464f200eb605b366673f8abca95183c3837843b
2023-05-30 16:08:54 -04:00