Tim Huang
202ddc01aa
[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 >
[ROCm/amdsmi commit: 260edaa752 ]
2024-09-06 09:42:34 -04:00
Maisam Arif
104bf22265
Clean up unused files & Update License info
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I5b58e8fe3d9eeac207b07ce0fe4134dd717dbd90
[ROCm/amdsmi commit: 97c487372f ]
2024-09-05 09:52:48 -04:00
Oliveira, Daniel
55b88706e1
SWDEV-463401: amdsmi_get_gpu_asic_info() adds num_of_compute_units
...
number of compute units `amdgpu_gpu_info.num_of_compute_units` is exposed through amdsmi_get_gpu_asic_info().
Code changes related to the following:
* API
* CLI
* Unit tests
* Examples
Change-Id: Ibeb612d079ed87437a0e56124b8504098fc2dcfd
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
[ROCm/amdsmi commit: b05849dad0 ]
2024-08-28 10:15:07 -04:00
Oliveira, Daniel
ec14fe6ac7
SWDEV-463372: amdsmi_get_utilization_count() adds decoder_activity
...
GPU Metrics info `gpu_metrics.vcn_activity` is exposed through amdsmi_get_utilization_count().
Code changes related to the following:
* API
* CLI
* Unit tests
Change-Id: I831b2a81bdc0e090a6698dcb689d10f91ed87dd9
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
[ROCm/amdsmi commit: af3670d758 ]
2024-08-27 16:58:34 -05:00
Bill(Shuzhou) Liu
ef78459f75
Set soft min or max clock
...
Add the API to support set soft min or max clock.
Change-Id: Ia34381a721ef3c3d894d5a89d25afa757be46a79
[ROCm/amdsmi commit: 97e70d44cf ]
2024-08-20 13:22:32 -04:00
Bill(Shuzhou) Liu
a1aec9c971
Support thread only mutex
...
The environment variable RSMI_MUTEX_THREAD_ONLY=1 to enable thread only mutex.
The RSMI_INIT_FLAG_THRAD_ONLY_MUTEX can also be pass to rsmi_init()
to enable thread only mutex.
Change-Id: I2d9844039b774e386f03bb9bb130d8c342504ea6
[ROCm/amdsmi commit: dbba33d3f5 ]
2024-07-18 20:43:38 -05:00
Bill(Shuzhou) Liu
3fc94657d9
Remove const to avoid compile error
...
Fix the compile error
Change-Id: I422b606b2b969b418c2e77b47a3afad0cfc732a1
[ROCm/amdsmi commit: 33dab0c232 ]
2024-07-18 18:15:43 -04:00
Bill(Shuzhou) Liu
a29f44019d
Make the the devInfoTypesStrings.at(type) exception safe
...
Wrap it in a function to make it exception safe.
Change-Id: I29835993ae4fe2b7aa1a7027fab88c05ba89e6e3
[ROCm/amdsmi commit: 7a617e6ef2 ]
2024-06-26 08:33:44 -05:00
Bill(Shuzhou) Liu
b517f3c214
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
[ROCm/amdsmi commit: 4cf59c4edb ]
2024-06-05 12:07:39 -05:00
Maisam Arif
7dfe4276cc
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
[ROCm/amdsmi commit: e5d1ba4621 ]
2024-05-31 01:38:41 -04:00
Maisam Arif
bbcff5221d
SWDEV-458102 - Updates to pp_od_clk_voltage parsing
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I650dae1a99856dcde914fe66917cf9111f3ce0e2
[ROCm/amdsmi commit: 7d999aa34c ]
2024-05-15 03:18:24 -05:00
Maisam Arif
1bc244b911
SWDEV-444567 - Added Ring Hang Event
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I2e73ba08ee0004f6f30660b2fa425ea94bafceca
[ROCm/amdsmi commit: 52843152a5 ]
2024-05-03 17:21:28 -04:00
Maisam Arif
48131e9481
Revert "SWDEV-458102 - Deprecated Voltage Curve API"
...
This reverts commit cc8eb17759 .
Change-Id: I8a3eaf0a9f28200e09fb35d5260fbc070fe8a4a9
[ROCm/amdsmi commit: 11c72946eb ]
2024-05-02 15:27:16 -05:00
Maisam Arif
cc8eb17759
SWDEV-458102 - Deprecated Voltage Curve API
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I111c3ce26d2ab66d5e755432f4b8a9bfa631f805
[ROCm/amdsmi commit: 1423fb632e ]
2024-05-02 02:53:29 -04:00
Bill(Shuzhou) Liu
5b0f4638c4
Process isolation and clean shader
...
A few APIs and command line options are added to support process
isolation and clean shader.
Change-Id: I98ad3fc9fc7429799a21798b7fca1c307de7f403
[ROCm/amdsmi commit: 7d2ab7970d ]
2024-04-24 13:22:20 -04:00
Maisam Arif
cebb07e795
Added new ecc blocks and adjusted metric --ecc-block filtering
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ib2f69c7d59ee5108024794434fb202b5e4f58738
[ROCm/amdsmi commit: 1bd18c1a65 ]
2024-04-18 15:01:41 -04:00
Oliveira, Daniel
9e2b1d8a09
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 >
[ROCm/amdsmi commit: 08e2e21bab ]
2024-03-27 16:48:24 -05:00
Bill(Shuzhou) Liu
b9b958b82c
Get and set the XGMI PLPD
...
Update the API and CLI to support XGMI Per-Link Power Down Policy.
Change-Id: Iaf04a771eb8bb0829a5b3088d803a7355a8dfd0b
[ROCm/amdsmi commit: e4085c6414 ]
2024-03-26 01:48:14 -05:00
Bill(Shuzhou) Liu
46ab68f840
Set and get DPM policy for GPU device
...
Add new APIs to set and get dpm policy for the GPU device.
Change-Id: I26fa49cd17d0ce66bda3446c38945a6cf35717ff
[ROCm/amdsmi commit: 108e6d4ae6 ]
2024-03-12 10:32:31 -04:00
Galantsev, Dmitrii
01dbe9de84
Fix misc memory leaks
...
Change-Id: I3dbf56e98d8c1312f9081956ed590962b2bdace3
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 44c189b9f5 ]
2024-03-07 04:56:16 -06:00
Bill(Shuzhou) Liu
f0e5bffab3
Add support for deferred RAS errors in API
...
The API will support the deferred errors
Change-Id: I221a146f09fefde1fc31e5f746d0870e07c93561
[ROCm/amdsmi commit: c489cb8f3f ]
2024-03-04 22:46:44 -05:00
Charis Poag
c5ba765be0
Merge rocm-smi/amd-staging into amd-dev 20240119
...
Change-Id: Ie706473ff92a91b19e95d2d58f64904cad73a89a
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
[ROCm/amdsmi commit: 6132074089 ]
2024-01-19 03:57:00 -05:00
Bill(Shuzhou) Liu
9dc60e00cb
Support max_num_cu_shared and num_cache_instance
...
Add above fields for cache info. Remove driver_date in CLI and
Remove the disable properties of cache.
Change-Id: I80672490908d9e32a149076cc37459fa56b8b0bf
[ROCm/amdsmi commit: 59b510de2b ]
2023-12-14 09:59:35 -05:00
Maisam Arif
a8138bfd5e
Change xgmi_physical_id to oam_id
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I35fb36ec0e9f72a7135d8bb9070dbdc0e956b93a
[ROCm/amdsmi commit: b54086a037 ]
2023-11-22 12:16:38 -06:00
Maisam Arif
662eaa6ad3
Merge rocmsmi/amd-staging into amd-dev 20231121
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I5cc6accced971479583954e0b93cd90c510ca814
Signed-off-by: Maisam Arif <maisarif@amd.com >
[ROCm/amdsmi commit: 02d310e525 ]
2023-11-22 03:31:35 -06:00
Bill(Shuzhou) Liu
c7f9cff2cb
Add APIs for PM table and register table
...
Read the PM table and register table as the name value pair.
Change-Id: Ie44fe67a28af3341bd6beb90d809e90f280351ac
[ROCm/amdsmi commit: ac1ba33371 ]
2023-11-20 12:31:18 -05:00
Galantsev, Dmitrii
49ab415506
Merge rocmsmi/amd-staging into amd-dev 20231103-1
...
Change-Id: I82540740892b31232dc9902022b34001ef5b542c
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 9cab8c035f ]
2023-11-03 17:58:30 -05:00
Galantsev, Dmitrii
e5d0ba249d
Merge rocmsmi/amd-staging into amd-dev 20231103
...
Change-Id: Ie70ab54a63b25649b6b9d30620c5546dc66cd766
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 513dd8a445 ]
2023-11-03 02:55:02 -05:00
Bill(Shuzhou) Liu
e05f594cba
Support cache type in cache info
...
Add the cache type to the cache info.
Change-Id: Ic13ca9640b65d2b414eeebe7b884530f2036aac8
[ROCm/amdsmi commit: 56b246cc3c ]
2023-11-02 04:53:38 -05:00
Galantsev, Dmitrii
553a05efec
Merge rocmsmi/amd-staging into amd-dev 20231016
...
Change-Id: I137171162a64af4960d82336cc517c1b34a870f3
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: df4f5e8bf8 ]
2023-10-16 14:31:13 -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
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
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
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
Bill(Shuzhou) Liu
528161560d
Read PCIe slot type from sysfs
...
Read the PCIe slot type from sysfs instead of libdrm.
Change-Id: I9392b9e18a209ac7332f6902bcafb3b6062c86c1
[ROCm/amdsmi commit: 656f12e0f3 ]
2023-10-05 09:58:36 -04: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
Galantsev, Dmitrii
43591c22cf
Merge remote-tracking branch 'rocmsmi/amd-staging' into HEAD
...
Change-Id: I65ed7f3a0d1b6e58bc8377932d7c39db21d1b422
[ROCm/amdsmi commit: 5c41319c83 ]
2023-09-21 23:43:20 -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
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
a464b0d202
Merge remote-tracking branch 'rocmsmi/amd-staging' into amd-dev
...
Change-Id: I7a35220a2283b92c5b4825ee99d6693401ef8e1e
[ROCm/amdsmi commit: 14190c5a94 ]
2023-08-28 16:01:19 -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
Charis Poag
9fbf58a0c9
Merge 'rocm-smi/amd-staging' into 'amd-smi/amd-dev'
...
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
Change-Id: Id35c9807c45a965c968fb430e3ce4f3c7069c210
[ROCm/amdsmi commit: afa174c655 ]
2023-07-19 18:46:28 -05:00
Bill(Shuzhou) Liu
da3da06941
Return NOT_SUPPORT for set function in VM guest
...
Fix the unit tests which are fail in VM guest environment.
Change-Id: Id7c58887692bbdecba54f5d2d8463b292e19b4ad
[ROCm/amdsmi commit: dc4ba12e00 ]
2023-05-11 10:42:55 -05:00
Bill(Shuzhou) Liu
d83e3a8b6e
Restructure the folder
...
Move rocm_smi related function to rocm_smi folder. Move amd_smi to
top level include/ and src/ folder. Remove obsolte oam folder.
Change the CMakeLists.txt to update folder locations.
Change-Id: I52e6be739e49f3b0545865f25364787f5985e9c3
[ROCm/amdsmi commit: 0c91ef919d ]
2022-10-20 09:23:51 -05:00