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
Oliveira, Daniel
1310c767ce
fix: [SWDEV-448201] [rocm/amd_smi_lib]
...
Adds Add PCIE Errors
Code changes related to the following:
* amdsmi_get_pcie_info()
* CLI
* examples
Change-Id: Ie0b7053e77c88fb18309c16e74bce75d862c45a9
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
2024-03-24 23:33:32 -04:00
Maisam Arif
06fa6580c4
SWDEV-438593 - Updated proccess output error handling
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I67747da06362428587dab7467d85d8c9296d442e
2024-03-21 15:34:36 -05:00
Bill(Shuzhou) Liu
108e6d4ae6
Set and get DPM policy for GPU device
...
Add new APIs to set and get dpm policy for the GPU device.
Change-Id: I26fa49cd17d0ce66bda3446c38945a6cf35717ff
2024-03-12 10:32:31 -04:00
Maisam Arif
2f8f34946e
SWDEV-443112 - Ensured dictionary output when static --bus is empty
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ibd61eeec417a9ff40cb868073b3e1eed2a87cc59
2024-03-11 15:25:28 -04:00
Maisam Arif
dea4fac979
Enabled ecc-blocks argument to linux VM
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I310c227ffa3ef45688a49cdedb43844aafe86339
2024-03-11 15:23:04 -04:00
Maisam Arif
c8c03dfab0
Revert is not None check for static & metric arugment checks
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I351c88d53c9a626ad4305a7c61dc18b976b853f2
2024-03-04 11:02:50 -06:00
Maisam Arif
463817f344
SWDEV-448626 - Removed gpu prefix in non-csv formats
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I77fc58828a978080482e6ab01ff89f1f5a554dc5
2024-03-01 09:09:23 -06:00
Maisam Arif
69caba8727
Bump Version to 24.4.0.0 & Corrected argument checks for set subcommand
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I651f8ca652c764f30845503dd869f435f728d5ba
2024-02-23 20:47:19 -06:00
Maisam Arif
4ca326d824
SWDEV-436792 - Add XGMI Table
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ia7a43b2b6d01fd32ece00cc26c28ba3088f3aa9e
2024-02-22 23:10:57 -06:00
Maisam Arif
16c34e91ac
Align to Host left adjusted topology output
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I8e56156200d5eface7f069ccf82a6b7503e1a48c
2024-02-22 23:10:57 -06:00
Maisam Arif
794354dad9
SWDEV-436992 - Added Units of Measure to JSON Output
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I0aba1533bc2919b7354ef6cad5ae4ae5d23e92a7
2024-02-22 07:16:13 -05:00
Maisam Arif
542bfc0c77
SWDEV-445664 - Aligned Metric Command with Host
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I905ee72272bb4c5ccde3e237d2663ec6e0e55034
2024-02-22 07:15:17 -05:00
Maisam Arif
a719ae9707
SWDEV-445396 - Aligned Static Command with Host
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I4182b9104e173f54830fc44819a61d74d31d65d7
2024-02-22 03:35:00 -05:00
Bill(Shuzhou) Liu
db33cda0c1
Unify the amdsmi_get_pcie_info python interface
...
Make the python interface consistent with the C interface.
Change-Id: Idda08f888947c757e475d5a024b0ec3d8e1d846a
2024-02-22 03:33:59 -05:00