Juan Castillo
f8b8347627
[SWDEV-496693]GPU Metrics 1.7
...
Features added:
- [SWDEV-475244] Add new interface to get max memory bandwidth
Updated API: amdsmi_get_gpu_vram_info
Updated: struct amdsmi_vram_info_t to include vram_max_bandwidth
CLI: amd-smi static --vram
- [SWDEV-488349] Add new interface for XGMI link status
New API: amdsmi_get_gpu_xgmi_link_status
CLI: amd-smi xgmi --link-status
Signed-off-by: Juan Castillo <juan.castillo@amd.com >
Change-Id: I1aa35b741136eb4f02f7ea9a95b865886273eb72
2024-12-18 10:57:06 -06:00
gabrpham
5f9c2db6f3
[SWDEV-484382] Added new command amd-smi set -c/--clk-level
...
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: If45152e3a3c94f65b6a8a960601b9ed16fa3d0d7
2024-12-13 00:32:19 -05:00
gabrpham
bc16e1a5da
[SWDEV-484382] Added new command amd-smi static --clock
...
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: I49e1aa2e699734d81c40c76c62da1cecc5bd3c0e
2024-12-13 00:30:29 -05:00
Joe Narlo
3052ad4220
SWDEV-495787 [AMDSMI] Different license headers
...
Change copyrights to MIT and remove date
Signed-off-by: Joe Narlo <Joseph.Narlo@amd.com >
Change-Id: I16f5b412f2b9ddefaaa1771aa714cc18829a1be4
2024-11-22 08:55:28 -05:00
gabrpham
fc9d18dd3e
[SWDEV-498453] Enabled for virtual environments
...
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: Ic7b274cf8e579b733515efe84fc0f325256ef8b1
2024-11-18 11:57:04 -05:00
Charis Poag
3ea4a42a6e
[SWDEV-488276/SWDEV-497613] Update memory partition set functionality
...
Changes:
- [CLI] Added warning screen to AMD SMI users
setting memory partition
- [CLI] Added a progress bar time-bar for CLI sets display to 40 seconds
- [API] Updated to wait until the driver reloads with SYSFS files active
- [CLI] Now users can set or reset without providing:
amd-smi set -g all <set arguments>
or amd-smi reset -g all <set arguments>
now can directly call -> sudo amd-smi set <set arguments>
or sudo amd-smi reset <set arguments>
- [SWDEV-475712][CLI/API] Fixed target_graphics_version field
not properly displaying for older MI or Navi ASICs.
- [All APIs] Added a catch for the driver to report invalid arguments
now these APIs will show AMDSMI_STATUS_INVAL
(ex. changing to NPS8 if the device does not support it)
- [Install] Modified paths for Python install commands to support
multi-ROCm installs
Change-Id: Id11f25d68a82d23c6b2d77ccb30b51e860dd0ca7
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
2024-11-12 16:50:32 -04:00
gabrpham
2273d95a6c
[SWDEV-492739] Partial fix for sclk min/max out of bounds
...
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: I1f0230955c890c11a735c8cb352c8a9ee4cebe27
2024-11-11 20:45:37 -05:00
gabrpham
0f067488e1
updated cli tool examples doc to reflect current CLI
...
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: Iab78a412464ba6d7919aeb7da04a031b063a7d09
2024-11-11 17:12:40 -05:00
Maisam Arif
7932de967a
Updated parser help text
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I8cc65edb1e629a55e0efbfc1109b1c549ed81101
2024-11-11 15:07:21 -06:00
Maisam Arif
abee26d4ab
Added ras and ecc counting back to Linux VMs
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: Ie981f7fe8f481f2137e95dda2e200d00ab4d92c8
2024-11-08 11:05:15 -06:00
gabrpham
f5b7761ac7
[SWDEV-490187] reset gpu partition were removed
...
The reset gpu partition support for both compute and memory were removed
Code changes related to the following:
* amdsmi_reset_gpu_compute_partition()
* amdsmi_reset_gpu_memory_partition()
* CLI
Change-Id: I372589074b4da172bedd39223edde18939e373ae
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
2024-10-18 16:22:26 -05:00
gabrpham
27b5a35d65
[SWDEV-488846] Removed '--ecc' option from 'amd-smi monitor' when platform is VM
...
Change-Id: I8f5d7771cbfac3fe5f52dbccbd9f28020adb5f6f
2024-10-16 10:34:19 -04:00
gabrpham
eb9116e8c2
[SWDEV-486872] Removed '--ras' from static command when platform is VM
...
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: I0b03f168d7011428cfea3ab303865f4eaeea78ac
2024-10-16 09:29:24 -05:00
Maisam Arif
27a48e69d8
Corrected clean local data partition indexing
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: Ib0eeb065f160fccd3c3f4a2d13f0869af01a74ae
2024-10-10 10:54:45 -05:00
Maisam Arif
4fcf281f1d
[SWDEV-447451] Fix attribute error for set/reset on Linux Guest
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I5d55bef44d2eea75c33ba489a57544976900c4a4
2024-10-09 12:59:19 -05:00
gabrpham
4e2fc2d604
Added amd-smi partition as preliminary command.
...
new command includes following arguments:
- current - display the current partition information for the selected
gpu(s)
- memory - display memory partition information for the selected
gpu(s)
- accelerator - display accelerator partition information for the
selected gpu(s)
additional functionality will be added as more partition APIs are added.
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: Ica86160139002ef5213d6d4b0e390670aeef01c8
2024-09-27 17:05:04 -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
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
Charis Poag
5c778cadf1
Fix amd-smi CLI calls returning TypeError
...
$ amd-smi version
TypeError: unsupported operand type(s) for |: 'type' and 'type'
---------------
Python3 --versions lower than 3.10
do not support str | None
Using typing Optional and Union, we can create equivalent logic for
str | none
and
str | list | none
Change-Id: I1f4a7ab67333914b33639dc62652881e1127411e
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
2024-09-18 16:59:12 -05: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
gabrpham
0d4b332fe4
Removed _validate_positive function and replaced with _positive_int or _not_negative_int as appropriate
...
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: I01effcdf9bae31fd8bc926c5d4bdf58274838618
2024-09-17 18:37:16 -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
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
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
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
Maisam Arif
574712386f
Fixed handling in GPU/CPU/CORE select functions
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I83d78a8d6cdcbd54e5c79330be577b3a06a00985
2024-08-05 18:27:30 -04:00
gabrpham
0143041262
Fixed cli issue with empty cpu/core parameter
...
Change-Id: Id0fee74357a56baaec59ca5359eb00a65cfd6185
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
2024-08-05 16:37:36 -05:00
gabrpham
de8145387d
[SWDEV-439701] Additional GPU error handling
...
Change-Id: Ieb35e9712f2a78acef8961d865dba1d824969ef3
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
2024-07-30 16:19:10 -05:00
Maisam Arif
0fc779b14f
[SWDEV-439701] Add missing parameter CLI error cases
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I8a6623ccdd7b16be320ea0f6f48b7b6cb3511983
2024-07-18 14:24:00 -04:00
Maisam Arif
6e5c4b422a
Added dmon alias for 'amd-smi monitor'
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I4a787034bd7ab1a0d08d8cfdd038add5c35cdea4
2024-07-02 11:05:59 -04:00
Maisam Arif
27cd092c6d
Updated error code naming to be inline with Host
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I6c66640742a25361ad6399763ee442598ffb0ac6
2024-06-28 08:58:52 -05:00
Maisam Arif
a3758f82dc
SWDEV-457854 - Unified BM error codes
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I5b232de3b598bd3146eb0528f61c628da93278d9
2024-06-25 18:33:40 -05: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
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
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
Maisam Arif
3855fb2939
Add Process Isolation and Clear SRAM to VM
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I7776e5b10efb2eea798e3e3d523ec5c01a162dc3
2024-05-23 15:33:27 -04: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
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
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
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
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
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
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
fa7a2838d8
Updated README and removed cpu core option from Static subparser
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I039c0f0ed2f7094aafe8849baea3cec887b7e8ff
2024-02-23 00:41:17 -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
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