Joseph Narlo
dc228398d0
[SWDEV-504583] Resolve Additional Compiler Warnings
...
Signed-off-by: Joseph Narlo <joseph.narlo@amd.com >
2025-01-28 15:36:44 -06:00
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
Joe Narlo
d0a7332d32
SWDEV-492272 [AMDSMI] Build/Compiler warnings messages
...
Fix compiler warnings
Signed-off-by: Joe Narlo <Joseph.Narlo@amd.com >
Change-Id: I10657b8f3ef18a9b45311e8f6509958297a57823
2024-12-13 00:38:07 -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
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
Lang Yu
7a557b1c50
SWDEV-463405: Add amdsmi_get_link_topology_nearest support
...
amdsmi_get_link_topology_nearest() is used to retrieve
the set of GPUs that are nearest to a given device
at a specific interconnectivity level.
Code changes related to the following:
* API
* CLI
* Unit tests
* Examples
Header Unification Change: "/amdsmi/+/1122408"
Change-Id: Id0317797c652c267742513936d321677793ec634
Signed-off-by: Lang Yu <lang.yu@amd.com >
2024-09-26 16:43:27 -05: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
Oliveira, Daniel
b05849dad0
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 >
2024-08-28 10:15:07 -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
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
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
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
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
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
Maisam Arif
77710921a4
Align list and cache_info to Host
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I4fa55b360b74d5a202d0b9b4eb7aee660b0a1bcf
2024-02-15 01:47:59 -05:00
Oliveira, Daniel
78074d7d77
fix: [rocm/amd_smi_lib] amdsmi_get_gpu_activity gfx/memory activity does not update
...
Checks and forces rereading gpu metrics unconditionally
Code changes related to the following:
* Device::dev_log_gpu_metrics()
* amdsmi_get_gpu_metrics_header_info()
Removed unintentionally during work on 'header cleanup Remove non-unified headers'
* Examples
* Unit tests
Change-Id: I83710e173c0f7102d0b7f865c18474c979a95cd8
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
2024-02-13 10:15:17 -06:00
Maisam Arif
88192d8b6b
SWDEV-436533 - Cache Info Struct Update
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ic640fa657cdcc32d7b00ff78fc9452ec7e05dd07
2024-02-05 16:51:04 -05:00
Bill(Shuzhou) Liu
0b67c2ccc4
Unified API
...
amdsmi_get_link_metrics() and amdsmi_get_pcie_info()
Change-Id: Iea060e449813b842236243b772e8809497ce98fe
2024-01-24 18:27:20 -05:00
Bill(Shuzhou) Liu
59b510de2b
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
2023-12-14 09:59:35 -05:00
Maisam Arif
545e57d3e3
SWDEV-426130 - Updated firmware subcommand output
...
Corrected truncation
corrected xgmi to ta_xgmi
remapped smc(system management controller) to pm(power
management)
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I404cefa7b90a454d4f4b08f6490448b47cf32107
2023-11-14 11:56:43 -05:00
Maisam Arif
5dba2f3120
Updated License Dates
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Id6fd66b03c602232ecc1a063a534a15fe3a03f56
2023-11-07 03:57:08 -05:00
Bill(Shuzhou) Liu
56b246cc3c
Support cache type in cache info
...
Add the cache type to the cache info.
Change-Id: Ic13ca9640b65d2b414eeebe7b884530f2036aac8
2023-11-02 04:53:38 -05:00
Maisam Arif
2b4637ff9f
SWDEV-410051 - Updates to board_info struct & CLI
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I8735d8965140ee5da0c35106b388af1dca87ec71
2023-10-27 16:52:56 -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
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
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
d2ef113457
SWDEV-412847 - Changed junction to hotspot
...
Change-Id: I7f6c1a0a77e6a09d2a3e831463cf03e35266bf40
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-09-14 17:43:26 -05:00
Shuzhou Liu
ab615f6b2a
Merge "Add API for the memory type" into amd-dev
2023-09-12 09:34:03 -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
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
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
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
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
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
Dalibor Stanisavljevic
1bc1d431d8
SWDEV-384793 - Clean up API
...
Change-Id: I441b315d32df59a454e06d521e5ca8b2c229451a
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-05-19 16:40:26 +02:00
Dalibor Stanisavljevic
ca7f965018
SWDEV-384797 - Renamed measure to info
...
Change-Id: I2397ed189fe0171ed29bd6440f8fa0bb210b95a5
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-05-17 05:10:58 -04:00
Deepak Mewar
64b258ae84
Renamed API amdsmi_get_process_info
...
to amdsmi_get_gpu_process_info
grep -rli 'amdsmi_get_process_info' * | xargs -i@ sed -i
's/amdsmi_get_process_info/amdsmi_get_gpu_process_info/g' @
Change-Id: I8f050ed59c926a821894780f9036b9f52c48ef88
2023-05-11 10:53:26 -04:00
Deepak Mewar
c92f18dda1
Renamed API amdsmi_get_process_list
...
to amdsmi_get_gpu_process_list
grep -rli 'amdsmi_get_process_list' * | xargs -i@ sed -i
's/amdsmi_get_process_list/amdsmi_get_gpu_process_list/g' @
Change-Id: I230c23aa135e9e11575e73c58355ae444783d1a5
2023-05-11 10:52:56 -04:00
Deepak Mewar
b683eedab2
Renamed API amdsmi_get_ecc_error_count
...
to amdsmi_get_gpu_ecc_error_count
grep -rli 'amdsmi_get_ecc_error_count' * | xargs -i@ sed -i
's/amdsmi_get_ecc_error_count/amdsmi_get_gpu_ecc_error_count/g' @
Change-Id: I8b7b80278ac47d394f98718d41da5d5a1b833f9c
2023-05-11 10:50:24 -04:00
Deepak Mewar
2170f8e72b
Renamed API amdsmi_get_bad_page_info
...
to amdsmi_get_gpu_bad_page_info
grep -rli 'amdsmi_get_bad_page_info' * | xargs -i@ sed -i
's/amdsmi_get_bad_page_info/amdsmi_get_gpu_bad_page_info/g' @
Change-Id: I59e2478804b2eea42691377ec280e61022a39a8e
2023-05-11 10:50:09 -04:00
Deepak Mewar
51d91b9071
Renamed API amdsmi_get_ras_block_features_enabled
...
to amdsmi_get_gpu_ras_block_features_enabled
grep -rli 'amdsmi_get_ras_block_features_enabled' * | xargs -i@ sed -i
's/amdsmi_get_ras_block_features_enabled/amdsmi_get_gpu_ras_block_features_enabled/g' @
Change-Id: I23d6c6145465f6a3f28a48717b2343a816ff5c9b
2023-05-11 10:49:55 -04:00
Deepak Mewar
849e43451d
Renamed API amdsmi_get_target_frequency_range
...
to amdsmi_get_gpu_target_frequency_range
grep -rli 'amdsmi_get_target_frequency_range' * | xargs -i@ sed -i
's/amdsmi_get_target_frequency_range/amdsmi_get_gpu_target_frequency_range/g' @
Change-Id: Ife4c533ded5d7743238502fe1789f34fd0edf9b8
2023-05-11 10:49:42 -04:00
Deepak Mewar
d3289258b4
Renamed API amdsmi_dev_get_temp_metric to
...
amdsmi_get_temp_metric
grep -rli 'amdsmi_dev_get_temp_metric' * | xargs -i@ sed -i
's/amdsmi_dev_get_temp_metric/amdsmi_get_temp_metric/g' @
Change-Id: I4a342f9d1c5183afdeac67506fef73e895911283
2023-05-11 10:44:16 -04:00
Deepak Mewar
cc1a9d4522
Renamed API amdsmi_get_vram_usage to
...
amdsmi_get_gpu_vram_usage
grep -rli 'amdsmi_get_vram_usage' * | xargs -i@ sed -i
's/amdsmi_get_vram_usage/amdsmi_get_gpu_vram_usage/g' @
Change-Id: Ieac19b7783e5ea0bc2654bd8398d64d4a937be42
2023-05-11 10:40:49 -04:00
Deepak Mewar
508d2612d3
Renamed API amdsmi_get_vbios_info to
...
amdsmi_get_gpu_vbios_info
grep -rli 'amdsmi_get_vbios_info' * | xargs -i@ sed -i
's/amdsmi_get_vbios_info/amdsmi_get_gpu_vbios_info/g' @
Change-Id: I90249704db3d77eca6b09c33ef3f2cec5eda77a2
2023-05-11 10:40:15 -04:00
Deepak Mewar
928b7e2a4d
Renamed API amdsmi_get_board_info to
...
amdsmi_get_gpu_board_info
grep -rli 'amdsmi_get_board_info' * | xargs -i@ sed -i
's/amdsmi_get_board_info/amdsmi_get_gpu_board_info/g' @
Change-Id: Ia3fb361aaf5832813e7ce41bfb88fbbf1432020b
2023-05-11 10:36:10 -04:00
Deepak Mewar
1f9074916f
Renamed API amdsmi_get_asic_info to
...
amdsmi_get_gpu_asic_info
grep -rli 'amdsmi_get_asic_info' * | xargs -i@ sed -i
's/amdsmi_get_asic_info/amdsmi_get_gpu_asic_info/g' @
Change-Id: I4586c7f8876eba7b8af33b5ea29afa8bacb85a9a
2023-05-11 10:35:09 -04:00