Maisam Arif
2c8e2060cb
Adjusted throttle unit logic in amdsmi_commands.py
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: Icce949ff93f45c9751f43df0a80614fd377318fa
2024-09-27 13:26:58 -05:00
Charis Poag
3a4abbd8c0
[SWDEV-422195/SWDEV-440985] GPU metrics 1.6
...
Changes:
- Added new GPU metrics:
1) Violation status' (ex. PVIOL/TVIOL) accumulators
2) XCP (Graphics Compute Partitions) statistics
3) pcie other end recovery counter
- CLI/API/tests changes were made accordingly
Change-Id: I589b9b1f570f25dda12d95bb501feca85da8b3bb
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
2024-09-27 12:04:21 -05:00
Harkirat Gill
3660724a08
Updated error message when driver modules not loaded
...
Small change to add sudo modprobe amdgpu/amd_hsmp suggestion if modules are not loaded. Requested per Maisam, will close https://github.com/ROCm/amdsmi/issues/45
Change-Id: Ia7ffcc99df18296c5c682f2082ff8dd8f007d557
2024-09-23 23:56:05 -04:00
gabrpham
c9a489d437
Moved partition_id from static --asic-info to static --partition.
...
partition_id also removed from the `amdsmi_asic_info_t` struct and
supporting API has been added for querying partition information.
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: Id5a6291a77d11bb97a1c7a200fc465898e86e081
2024-09-20 03:48:42 -04:00
Maisam Arif
3b7f661e71
Moved KFD information to separate structure and API
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: If6eaea589edc704cf408d6391b5f2154134035e7
2024-09-20 03:48:42 -04:00
Harkirat Gill
d263b53797
Fix for GitHub Issue #24 : Update Event Stop Behavior
...
amd-smi event is failing to exit as it waits for all threads to complete before exiting. Each thread has to listen for a maximum of 10 seconds prior to exiting in the current implementation.
Lowered individual listen time for _event_thread allowing for a quicker exit while still capturing all events (Looped until escape sequence detected).
Added logging for escape character, not sure if needed but helps confirm that key press was registered.
Change-Id: I916608754798f966980a558342c7c62693252d7f
2024-09-18 14:54:40 -04:00
gabrpham
b7f779182d
[SWDEV-448738] Added rocmsmi extremum command as 'set -L'
...
Change-Id: I997c630bd20cc61673813a2301eb5e3002619a32
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: Ifa884303f9a0fa058af093a23f5be449bba54f29
2024-09-18 14:51:01 -04:00
Eisuke Kawashima
5fdcaf1248
fix(python): fix comparison to True/False
...
from PEP8 (https://peps.python.org/pep-0008/#programming-recommendations ):
> Comparisons to singletons like None should always be done with is or
> is not, never the equality operators.
Change-Id: I710d64c380eaf420f0ad29e65623ee677b094051
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2024-09-16 17:34:39 -04:00
Maisam Arif
105db1afcd
Udpated License Dates
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I8ca199c129c06508bc3e23745ab5ac2d20dce928
2024-09-16 16:14:47 -04:00
Maisam Arif
787d4462fa
[SWDEV-482412] Optimized PCIe Bandwidth gpu_metrics calls
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: Ib37d232b94a080e9b490dd065628d2567aaf4642
2024-09-11 23:26:30 -05:00
Tim Huang
260edaa752
[SWDEV-463402] - Support retrieving connection type and P2P capabilities between two GPUs
...
1. Add a API interface amdsmi_topo_get_p2p_status to retrieve
connection type and P2P capabilities between 2 GPUs.
2. Add getting p2p status test in hw_topology_read
to print P2P capability information.
3. Add below tables for cli topology sub commands:
- CACHE COHERANCY TABLE
- ATOMICS TABLE
- DMA TABLE
- BI-DIRECTIONAL TABLE
Change-Id: I199173030d4170115cea27c472958a4826e4e1bf
Signed-off-by: Tim Huang <tim.huang@amd.com >
2024-09-06 09:42:34 -04:00
Maisam Arif
bc4ca45862
[SWDEV-450553] Added Subsystem Device ID to amd-smi static --asic
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I428b4993cca027a6eb1bb9c617fe715118a59407
2024-09-04 12:51:02 -05:00
gabrpham
7d8e54d0e1
[SWDEV-450553] Added gpu memory overdrive to metric function
...
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: If7bd6865d641a5a83c594a4d3c57938b1b6dc18e
2024-09-04 12:54:14 -04:00
gabrpham
95ca2b83a1
Changed power parameter in amdsmi_get_energy_count() to energy_accumulator
...
Issue linked here: https://github.com/ROCm/amdsmi/issues/38
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: I622236eb3f0144aefeb6c82d2713b4822bfeeb11
2024-09-04 09:38:08 -04:00
Oliveira, Daniel
893f13ab98
SWDEV-463399: amdsmi_get_gpu_vram_info() adds bit-width
...
Driver info `amdgpu_gpu_info.vram_bit_width` is exposed through amdsmi_get_gpu_vram_info().
Code changes related to the following:
* API
* CLI
* Unit tests
* Examples
Change-Id: I8abd8db7a603078b2b1c008b2685cecf35caf3d2
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
2024-08-27 18:22:50 -04:00
Maisam Arif
78373cb5f7
[SWDEV-479989] - Fixed if statement for filtering ecc blocks
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I4d0c7579257c98be8a4ba8e5a31b5d9db4305844
2024-08-20 03:16:49 -05:00
Maisam Arif
210680b570
Removed metric --ecc & --ecc-blocks commands from VM
...
ecc is not supported on VM
Added static --ras because ras features are still detectable
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: Ied4132b863989dfd67897e00904f04d140fd2773
2024-08-09 18:44:44 -04:00
gabrpham
fe1dc23ade
Fixed 'amd-smi process -G'
...
Issue linked here: https://github.com/ROCm/amdsmi/issues/23
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: I73c2dede8634b21a5dfe0245a202e883fa856de2
2024-08-02 16:42:08 -04:00
Galantsev, Dmitrii
3784f37a3a
Cleanup convert_SI_unit and misc linter warnings
...
Change-Id: I000ba548b79a7023aabad653125842064fa2e7cb
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2024-08-02 10:29:06 -04:00
Maisam Arif
5b7be3bf99
[SWDEV-474474] - Changed Monitor PCIE_REPLAY count to use gpu_metrics
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I4351a23e8412875bb4b23b30747ac6d0bf3d3c56
2024-07-18 17:53:49 -04:00
Maisam Arif
c83bcb7ac9
[SWDEV-472641] Set file opening and writing encoding to utf-8
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: Ic5cdca41b588341f7894de72dfe3d949378f9a61
2024-07-12 09:46:44 -04:00
Maisam Arif
943c74b6ef
SWDEV-446724 - Version command human readable output file format fix
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I94de5b03355b503ade307f2a3881acd07266d6c7
2024-06-24 10:35:34 -05:00
Oliveira, Daniel
a20db864b8
fix: [SWDEV-466302] [rocm/amd_smi_lib]
...
Fixes `amdsmi_get_gpu_process_list` now requires sudo to access pid and memory information
Code changes related to the following:
* amdsmi_get_gpu_process_list()
* CLI
Change-Id: I72b154c220276b354c350fcc067c9a7c32e6c173
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
2024-06-24 00:38:17 -04:00
Maisam Arif
92f014059e
SWDEV-435197 - Add process table to CLI monitor subcommand
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: Ibe06f4a4be619ae9cba909c2474b0e482eeb87d5
2024-06-19 23:36:55 -05:00
Bill(Shuzhou) Liu
e3c63628e5
Change the clean shader API to clean local data
...
To be align with the unified API.
Change-Id: I2819339fba6f528204cebd3e9605109e82cbc5b4
2024-06-17 16:23:33 -05:00
Maisam Arif
9fb2c967de
SWDEV-466598 - Fixed CLI process outputs
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I902e82b6e78311e99542b109435346889daa49fc
2024-06-08 18:31:08 -05:00
Maisam Arif
37c044696d
Removed Throttle Status from CLI Tool
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I8eb8f30f821589003201d6d8bb96592ec5f8a483
2024-06-07 15:19:48 -05:00
Maisam Arif
2197a393f4
Corrected voltage curve cli output in N/A case
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I77e0888d94ba489eb4820cdd6c20e9f7de04241f
2024-06-06 15:55:22 -04:00
Bill(Shuzhou) Liu
4cf59c4edb
Change the name of clear sram to run cleaner shader
...
The function is to clean the local data in LDS/GPRs. The clear sram
is misleading.
Change-Id: I0385e6d6348602fe0f347d17e48ed8983f7ceb87
2024-06-05 12:07:39 -05:00
Maisam Arif
e5d1ba4621
Use different sysfs for soc_pstate and xmgi_plpd
...
The sysfs is changed to use the pm_policy folder with multiple
dpm_policy files.
Change-Id: I40fac8de2d0cb127950d238b8196f6d2416778d0
2024-05-31 01:38:41 -04:00
Dalibor Stanisavljevic
458dc8f180
SWDEV-457337 - Header aligment
...
Missing AMDSMI_STATUS prefix
Change-Id: I15d050a146c92f6897d48317d8fec51d046535d1
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2024-05-30 15:35:38 -04:00
Maisam Arif
927b9c644b
Moved --clear-sram-data to 'amd-smi reset'
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I46eaf7f887b15d6a8d8a31155bb3e448ef0ec04a
2024-05-30 02:26:40 -05:00
Dalibor Stanisavljevic
7b2463abe0
SWDEV-457337 - Fix header alignment
...
Change-Id: I9f25f6c4f0d00c76b66d13162f30be11368f5b59
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2024-05-23 04:41:57 -04:00
Maisam Arif
7d999aa34c
SWDEV-458102 - Updates to pp_od_clk_voltage parsing
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I650dae1a99856dcde914fe66917cf9111f3ce0e2
2024-05-15 03:18:24 -05:00
Maisam Arif
11c72946eb
Revert "SWDEV-458102 - Deprecated Voltage Curve API"
...
This reverts commit 1423fb632e .
Change-Id: I8a3eaf0a9f28200e09fb35d5260fbc070fe8a4a9
2024-05-02 15:27:16 -05:00
Charis Poag
c24d66740e
SWDEV-450580 - Fix powercap set
...
Updates:
* CLI - Added AMDSMIHelpers.convert_SI_unit() to help
conversion of units
* API - Reverted to uW for power cap limits
* CLI - amd-smi static --limit now includes MIN_POWER
* Tests now are all using uW units to keep W conversion
to only happen in CLI
* Python API now reflects same units as uW (what is seen
in amdgpu driver)
* CLI - amd-smi metric --power:
Fixed power seen on gpu_metrics v1.3
Change-Id: I32d9ba78d0d8806772f0860f9a803a885b3f316a
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
2024-05-02 10:13:39 -05:00
Maisam Arif
1423fb632e
SWDEV-458102 - Deprecated Voltage Curve API
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I111c3ce26d2ab66d5e755432f4b8a9bfa631f805
2024-05-02 02:53:29 -04:00
Maisam Arif
e6054be6e7
SWDEV-453493 - Fix Null pointer reference in amd-smi bad-pages
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I10a1278b68cbb464dd0fb38a2de50413f6f43959
2024-04-26 04:04:43 -05:00
Maisam Arif
25ef420407
Updated monitor --pcie to use gpu_metrics pcie bandwidth
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Id37aebc0297317edcd0f459a4817f56a6030d902
2024-04-25 20:10:02 -04:00
khashaik
aad42d414a
amd-smi_cli: Fix issue for set core boost limit in CPU
...
Change-Id: I1af4e9d14b1667c5279fcf02cebb4103a92e162c
2024-04-25 02:05:41 -04:00
Bill(Shuzhou) Liu
7d2ab7970d
Process isolation and clean shader
...
A few APIs and command line options are added to support process
isolation and clean shader.
Change-Id: I98ad3fc9fc7429799a21798b7fca1c307de7f403
2024-04-24 13:22:20 -04:00
Maisam Arif
1bd18c1a65
Added new ecc blocks and adjusted metric --ecc-block filtering
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ib2f69c7d59ee5108024794434fb202b5e4f58738
2024-04-18 15:01:41 -04:00
Maisam Arif
c551c3caed
SWDEV-455131 - Updated process APIs
...
- Removed amdsmi_get_gpu_process_info from python API
- Updated documentation
- Aligned process --json output format to unit & value format
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I82bba1b6df71020b4a5995ff63b9aa62611ce4fe
2024-04-18 14:00:59 -05:00
Maisam Arif
9758a8bc33
Removed fb_sharing fields from Linux BM
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ia2942b9d33699ced1683270454c479701bce1246
2024-04-05 03:01:24 -04:00
Charis Poag
08a3e76b26
SWDEV-445668 - Align topology JSON
...
Updates:
- [CLI] Updated json output to provide format
similar to host
eg.
[
{
"gpu": 0,
"bdf": "0000:01:00.0",
"links": [
{
"gpu": 0,
"bdf": "0000:01:00.0",
"weight": 0,
"link_status": "ENABLED",
"link_type": "SELF",
"num_hops": 0,
"bandwidth": "N/A",
"fb_sharing": "ENABLED"
},
{
"gpu": 1,
"bdf": "0001:01:00.0",
"weight": 15,
"link_status": "ENABLED",
"link_type": "XGMI",
"num_hops": 1,
"bandwidth": "50000-100000",
"fb_sharing": "ENABLED"
},
...
]
},
{
...
Change-Id: I63217f63a4d6ebc23a8a84eaac9dbb7aff5f4cb4
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
2024-04-01 18:37:06 -04:00
Oliveira, Daniel
08e2e21bab
fix: [SWDEV-442525] [rocm/amd_smi_lib]
...
Fixes gpu_process_list
Code changes related to the following:
* amdsmi_get_gpu_process_list()
* CLI
* Examples
* Unit tests
* Changelog
* Readme
* rocm_smi_lib commit: 677433b367
Change-Id: I9210fbca7a5da92d0a8b472b72ca82597c8e4fb5
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
2024-03-27 16:48:24 -05:00
Maisam Arif
e2e4349bd2
SWDEV-445664 - Aligned metric --ecc & --ecc-blocks with Host
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I93cf2bdab8c4c066bacf0e910e5620d37b362b07
2024-03-26 16:30:31 -04:00
Maisam Arif
93b81e5012
SWDEV-445664 - Aligned metric --clock with Host
...
Change-Id: Ib4dc372aed61f6301680ac746eccf448e9d0ed00
Signed-off-by: Maisam Arif <maisarif@amd.com >
2024-03-26 16:30:31 -04:00
Bill(Shuzhou) Liu
e4085c6414
Get and set the XGMI PLPD
...
Update the API and CLI to support XGMI Per-Link Power Down Policy.
Change-Id: Iaf04a771eb8bb0829a5b3088d803a7355a8dfd0b
2024-03-26 01:48:14 -05:00
Deepak Mewar
1ac1ee4b9a
fix for cpu enable apb error
...
Signed-off-by: Deepak Mewar <deepak.mewar@amd.com >
Change-Id: I092b88484046671857c4adbbbeaba78180b103ab
2024-03-25 06:46:42 -04:00