Daniel Oliveira
fe9b6eeb49
[SWDEV-529665] Add PLDM Bundle version
...
feat: Report PLDM Bundle from SMC to IB
Code changes related to the following:
* APIs
* CLI
* Unit tests
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
Change-Id: I35ccf01eb612ca80e3ae6b72039085c18c989222
2025-05-20 01:37:00 -05:00
Mewar, Deepak
b999f86611
[SWDEV-512393] Added amdsmi_get_cpu_affinity_with_scope ( #198 )
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Signed-off-by: Deepak Mewar <deepak.mewar@amd.com >
2025-05-20 01:06:09 -05:00
Pryor, Adam
51e99965b3
[SWDEV-527092] - Fix ringhang event removal ( #372 )
...
Signed-off-by: adapryor <Adam.pryor@amd.com >
2025-05-16 16:41:31 -05:00
Pryor, Adam
8713305f80
[SWDEV-527092] - Process Start/Stop event addition ( #368 )
...
- Added more events to `amdsmi_evt_notification_type_t`
Change-Id: I6a256fe828e4bec3197c7fecbed374ab17c6f850
Signed-off-by: Adam Pryor <Adam.Pryor@amd.com >
2025-05-16 11:01:15 -05:00
Saeed, Oosman
1bb1f8acc2
[SWDEV-522623] Add afid functionality to API and CLI ( #330 )
...
Change-Id: I015bde926491d54e09da8f39b05650515711e09f
[SWDEV-522623] Add afid functionality to API and CLI
Change-Id: I015bde926491d54e09da8f39b05650515711e09f
Signed-off-by: Oosman Saeed <oossaeed@amd.com >
Co-authored-by: Oosman Saeed <oossaeed@amd.com >
2025-05-16 10:49:56 +08:00
Arif, Maisam
ace3b0901a
Version & Doc update ( #343 )
...
Change-Id: Ibf8e1809913e30aba4b21ba889b72e5db7205736
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
2025-05-08 12:19:04 -05:00
Narlo, Joseph
d5ce95573f
[SWDEV-522996] Sync Unified Header and AMDSMI ( #305 )
...
Sync Unified Header and AMDSMI
Signed-off-by: josnarlo <Joseph.Narlo@amd.com >
---------
Signed-off-by: josnarlo <Joseph.Narlo@amd.com >
2025-04-24 13:31:08 -05:00
AL Musaffar, Yazen
d6954bcc62
Removed CPER tests and adjust the implementation ( #269 )
...
- Moved helper functions into amdsmi_utils.cc
- Removed tests since they are not working.
---------
Co-authored-by: Saeed, Oosman <Oosman.Saeed@amd.com >
2025-04-21 14:54:47 -05:00
Galantsev, Dmitrii
955ceac78a
Add amdsmi_get_gpu_busy_percent
...
This is required for GPU busy percent in RDC
Change-Id: Idf2ab72993ecc8227958e6eb47f36fc68c93759f
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2025-04-14 10:40:13 -05:00
Arif, Maisam
d81871ef16
[SWDEV-511234] Added amdsmi_get_gpu_cper_entries & CLI implementation
...
Added amdsmi_get_gpu_cper_entries() in the python and C APIs
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
Co-authored-by: Saeed, Oosman <Oosman.Saeed@amd.com >
Co-authored-by: AL Musaffar, Yazen <Yazen.ALMusaffar@amd.com >
2025-04-12 01:54:57 -05:00
Galantsev, Dmitrii
b0129c390c
Bump Version 25.4.0
...
Change-Id: Ief60ff2270e7e73d4e14b5181fa6fb18e32bcc1e
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2025-03-28 21:50:38 -05:00
Yuan, Perry
68e44c7f66
[SWDEV-482949] Add CPU model name querying support ( #33 )
...
- Add support to check CPU vendor info which will be called by RDC to
discovery CPU information
- Move esmi headers declaration to impl/amd_smi_common.h
- remove duplicated amdsmi_cpu_util_t
---------
Signed-off-by: Perry Yuan <perry.yuan@amd.com >
Signed-off-by: Deepak Mewar <deepak.mewar@amd.com >
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Co-authored-by: Deepak Mewar <deepak.mewar@amd.com >
2025-03-28 21:21:39 -05:00
Poag, Charis
0402bb4d75
[SWDEV-513807] Fix amd-smi partition --accelerator not returning AMDSMI_STATUS_NO_PERM ( #192 )
...
* [SWDEV-513807] Fix amd-smi partition --accelerator not returning AMDSMI_STATUS_NO_PERM
Changes:
- Fixed amdsmi_get_gpu_accelerator_partition_profile_config() from not
returning AMDSMI_STATUS_NO_PERM
- Changed amd-smi partition --accelerator to provide user with a warning
if users does not use sudo or root permissions.
- Updated changelog for fixes planned for 6.4.1 release
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
2025-03-20 17:23:01 -05:00
Galantsev, Dmitrii
4a3c70136f
Make amdsmi_get_power_info backwards compatible
...
Change-Id: Ie5b4c35265827e78934caa94c142d31efce597e4
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2025-03-19 23:23:48 -05:00
Castillo, Juan
7c882b2f69
SWDEV-518209: GPU Metrics 1.8 ( #177 )
...
- Updates:
- Adding the following metrics to allow new calculations for violation status:
- Per XCP metrics gfx_below_host_limit_ppt_acc
- Per XCP metrics gfx_below_host_limit_thm_acc
- Per XCP metrics gfx_low_utilization_acc
- Per XCP metrics gfx_below_host_limit_total_acc
- Increasing available JPEG engines to 40. Current ASICs may not support all 40. These will be indicated as UINT16_MAX or N/A in CLI.
Signed-off-by: Juan Castillo <juan.castillo@amd.com >
Co-authored-by: Charis Poag <Charis.Poag@amd.com >
2025-03-19 10:24:02 -05:00
Poag, Charis
48cb5529d2
[SWDEV-493274/SWDEV-514998] Add AMD SMI partition tests + Add Guest amd-smi static --partition ( #127 )
...
* [SWDEV-493274/SWDEV-514998] Add AMD SMI partition tests + Add Guest amd-smi static --partition
Changes:
- Added amd-smi static --partition for guest systems
- Added C++ tests for memory and compute (accelerator) partitions
- Added Python tests for amdsmi_get_gpu_vram_info(),
amdsmi_get_gpu_accelerator_partition_profile_config()
- Updated Python tests for
amdsmi_get_gpu_accelerator_partition_profile()
Now includes more profile and resource detail
- Added amdsmi_get_gpu_xcd_counter();
Tests provided for both C++/Python APIs
- Added AmdSmiVramType & AmdSmiVramVendor: they were missing
python testing required adding.
Change-Id: Ib6549d8ccc5fb68726f38745b87c78f890186022
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
2025-03-11 16:38:46 -05:00
Arif, Maisam
0e67568902
[SWDEV-501958] Doc Update deprecating pasid in 7.0 ( #166 )
...
Change-Id: Ie19ba271c901d0be324143474871241272166124
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I024f7e2b5e7a5fcd6e1d12181d21ffacfe29c00f
2025-03-07 14:56:46 -06:00
AL Musaffar, Yazen
2936e00fed
[SWDEV-453922] AMD SMI to provide mapping feature of other enumeration methods ( #51 )
...
Added enumeration mapping for
- drm render
- drm card
- hsa id
- hip id
- hip uuid (rocminfo uuid)
Signed-off-by: AL Musaffar, Yazen <Yazen.ALMusaffar@amd.com >
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Co-authored-by: Maisam Arif <Maisam.Arif@amd.com >
2025-03-07 09:09:12 -06:00
Pham, Gabriel
d5b2763aba
[SWDEV-515730] Updated set partition documentation ( #151 )
...
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
2025-03-06 23:16:32 -06:00
Park, Peter
0b4a6ff149
[SWDEV-513210] Add references to AMDGPU RAS Support info in API docs ( #144 )
...
Add reference to AMDGPU RAS Support info in API docs
2025-03-04 09:32:23 -06:00
Narlo, Joseph
d7c3ad0886
[SWDEV-515031] Change Header Version to 25.2.0 ( #109 )
...
Change Versioning Scheme to match https://semver.org/
Dropping the year enum and API fields in a future release.
Should not impact library versioning since we are now starting from 25.2.0
---------
Signed-off-by: Joseph Narlo <joseph.narlo@amd.com >
Co-authored-by: Arif, Maisam <Maisam.Arif@amd.com >
Change-Id: Id090e23f156926d08f9c0b781447388adf268cf6
2025-02-26 19:17:09 -06:00
Joseph Narlo
ddcdd60964
Merge branch 'SWDEV-517156/Synchronize_Unified_and_Amdsmi_Headers' of github.com:AMD-ROCm-Internal/amdsmi into SWDEV-517156/Synchronize_Unified_and_Amdsmi_Headers
2025-02-24 09:21:22 -06:00
Joseph Narlo
b38c9aa1cc
[SWDEV-517156] Synchronize Unified and Amdsmi Headers
...
Signed-off-by: Joseph Narlo <joseph.narlo@amd.com >
2025-02-21 15:05:57 -06:00
Mewar, Deepak
2c591ffcc1
[SWDEV-499995] ESMI Build/Compiler warnings messages ( #105 )
...
* [SWDEV-499995] ESMI Build/Compiler warnings messages
Signed-off-by: Deepak Mewar <deepak.mewar@amd.com >
2025-02-18 16:20:28 -06:00
Narlo, Joseph
dc4a16da6f
[SWDEV-513651] Sync Unified And Linux Header ( #98 )
...
Signed-off-by: Joseph Narlo <joseph.narlo@amd.com >
2025-02-06 22:25:50 -06:00
Pham, Gabriel
09379f8438
Changed default behavior of amdsmi_get_gpu_virtualization_mode ( #97 )
...
Changed return behavior of amdsmi_get_gpu_virtualization_mode
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Co-authored-by: Maisam Arif <Maisam.Arif@amd.com >
2025-02-05 19:09:44 -06:00
Narlo, Joseph
8e454950ef
[SWDEV-509782] Add tags and redefine groups ( #73 )
...
Add tags and redefine groups in amd-smi header
Signed-off-by: Joseph Narlo <joseph.narlo@amd.com >
2025-02-05 18:43:55 -06:00
Maisam Arif
5a9fb676bc
Fixed description for amdsmi_get_gpu_virtualization_mode
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I9234a4e7b78f19e16484d7bd5fa078c38f0262ff
2025-01-31 17:40:48 -06:00
Pham, Gabriel
e663bed7d6
[SWDEV-462952] Updated passthrough to use virtualization mode struct
...
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Co-authored-by: Maisam Arif <Maisam.Arif@amd.com >
2025-01-31 17:34:01 -06:00
Arif, Maisam
fb3a9c2290
Bump Version 25.2.0
...
Change-Id: I9a38e58c0c9ef9348312e4faf299518073a1c3c2
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
2025-01-31 15:50:34 -05:00
Pham, Gabriel
0f79efac78
[SWDEV-462952] Options enabled for GPU passthrough scenarios
...
Added Dynamic Passthrough detection
Signed-off-by: Pham, Gabriel <Gabriel.Pham@amd.com >
Signed-off-by: Arif, Maisam <Maisam.Arif@amd.com >
Co-authored-by: Arif, Maisam <Maisam.Arif@amd.com >
2025-01-30 18:12:03 -06:00
Maisam Arif
70b14166f7
Bump Version to 25.1.0.0
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I40efe2c9114357a6c34b5ee44fb523293d6b17e7
2025-01-30 04:12:57 -06:00
Ramalingam, Muthusamy
ced110dbb6
amdsmi: Adding Support to get hsmp Driver version
...
* amdsmi: Adding Support to get hsmp Driver version
Adding Support to fetch hsmp driver version from ESmi Interfaces.
Adding Support to fetch memory bandwidth per socket.
Signed-off-by: muthusamy <muthusamy.ramalingam@amd.com >
2025-01-29 13:45:02 -06:00
Scaffidi, Salvatore
87834bf829
[SWDEV-511296] Update violation_timestamp to read timestamp from firmware
...
Updated violation_status->violation_timestamp to read values from firmware timestamp
Signed-off-by: Greg Scaffidi <salvatore.scaffidi@amd.com >
Change-Id: I567f824a9ace09a780bca8bb182d45bed681e9ce
2025-01-28 15:43:06 -06:00
Joseph Narlo
3d12d64c9b
[SWDEV-504389] Sync Comments in Linux BM
...
Signed-off-by: Joseph Narlo <joseph.narlo@amd.com >
2025-01-24 07:24:11 -06:00
Poag, Charis
c1cd2b46ef
[SWDEV-488276] Add partition 2.0 functionality ( #44 )
...
Changes:
* CLI:
- Updated amd-smi partition
- Updated amd-smi partition -c
- Updated amd-smi partition -m
- Updated amd-smi partition -a
- Updated amd-smi set -M <NPS1/NPS2/NPS4/NPS8>
- Updated amd-smi set -C <SPX/DPX/QPX/TPX/CPX>
- Updated amd-smi set -C <ACCELERATOR_TYPE> or <PROFILE_INDEX>
Where PROFILE_INDEX = available ACCELERATOR_TYPES
- Updated amd-smi set --help, now includes more detail for
amd-smi set -C <ACCELERATOR_TYPE> or <PROFILE_INDEX>
* API:
- Added amdsmi_get_gpu_memory_partition_config
- Added amdsmi_set_gpu_memory_partition_mode
- Added amdsmi_get_gpu_accelerator_partition_profile_config
- Updated amdsmi_get_gpu_accelerator_partition_profile_config
- Added amdsmi_set_gpu_accelerator_partition_profile
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
2025-01-16 00:53:46 -06:00
Scaffidi, Salvatore
3793be7735
[SWDEV-463406] Update API with fields for gfx_clock_below_host_limit and low_utilization violations
...
Updated API with fields for gfx_clock_below_host_limit and low_utilization violations
Change-Id: I25647bae6e7b785f44dab024272767658688bcad
---------
Signed-off-by: Scaffidi, Salvatore <Salvatore.Scaffidi@amd.com >
Signed-off-by: Arif, Maisam <Maisam.Arif@amd.com >
Co-authored-by: Charis Poag <Charis.Poag@amd.com >
2025-01-08 22:07:23 -06:00
Arif, Maisam
490132748f
Corrected spacing and simplified logic
...
Change-Id: I51c98339367d1cb9470a00ee05463ac8662d6b01
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
2025-01-08 20:18:24 -06:00
Meng, Li (Jassmine)
dc400d916e
[SWDEV-230863] add two new interfaces for background health check ( #4 )
...
1. Get the bad pages threshold of a processor.
2. Verify the checksum of RAS EEPROM
Signed-off-by: Meng Li <li.meng@amd.com >
2025-01-07 17:26:55 -06:00
Park, Peter
d9bba639df
[SWDEV-503717] Remove occurrences of "Fusion" in docs
...
Tiny PR to remove occurrences of "Kernel **Fusion** Driver" in
public-facing docs.
Signed-off-by: Peter Park <peter.park@amd.com >
2025-01-07 16:11:46 -06:00
Maisam Arif
6dcbff866b
Bump Version to 24.7.2.0
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
2024-12-19 17:04:55 -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
ef31bb7166
SWDEV-504389 [AMD-SMI] Synching Comments in Linux BM
...
Sync comments from Unified Header to Linux BM
Signed-off-by: Joe Narlo <Joseph.Narlo@amd.com >
Change-Id: I9b1ae94db68761a7963ad87cd60177a57e93ad85
2024-12-18 10:57:06 -06:00
gabrpham
bd01cfc203
Fixed post reset and ring_hang issues
...
Issues include:
SWDEV-480250
SWDEV-480255
SWDEV-480248
Known issue:
`amd-smi event` has threads taking events from the same device
which, in the case of resetting gpus, makes it seem like some gpus have
reset mulitple times and other have not reset at all.
Signed-off-by: gabrpham <Gabriel.Pham@amd.com >
Change-Id: Ic7dcc214e0366fc1532ece579d915d34d35d5407
2024-12-06 17:46:00 -05:00
Joe Narlo
547db10384
SWDEV-502330 [AMD-SMI][Unified Header] Convert struct to typedef struct
...
Change struct to a typedef struct
Signed-off-by: Joe Narlo <Joseph.Narlo@amd.com >
Change-Id: I6f3b22a5219c0db0aab2c308b71213ae75334476
2024-12-04 09:14:05 -05:00
Joe Narlo
35d8e827b9
SWDEV-497305 [AMDSMI] Consistent string lengths
...
Unify max string length to AMDSMI_MAX_STRING_LENGTH 256
Replace AMDSMI_NORMAL_STRING_LENGTH, AMDSMI_256_LENGTH
Signed-off-by: Joe Narlo <Joseph.Narlo@amd.com >
Change-Id: Ia81d738be0eefb9683ee53d51c969598fe587f50
2024-11-22 15:37:24 -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
Maisam Arif
f1c3fbf226
Updated CLI exceptions
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I5c68eed7719c093727afa434e25ba2560dde894a
2024-11-15 11:44:51 -05:00
Maisam Arif
4b511a31e1
Bump Version to 24.7.1.0
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I0fc42fe55cb653102d189db9aa5eaf723280170e
2024-11-11 19:23:20 -06:00
Maisam Arif
6e843436f5
Updated amdsmi_get_energy_count() C API documentation
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: Iac75a0dcd583f39eb97aada769c736c3305cc8a2
2024-11-08 16:37:10 -05:00