Maisam Arif
c2b9cdfd2e
Udpated License Dates
...
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: I8ca199c129c06508bc3e23745ab5ac2d20dce928
[ROCm/amdsmi commit: 105db1afcd ]
2024-09-16 16:14:47 -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
e2e63055a6
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 >
[ROCm/amdsmi commit: 893f13ab98 ]
2024-08-27 18:22:50 -04: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
Dalibor Stanisavljevic
cdd24a7b0f
SWDEV-457337 - Fix header alignment
...
Change-Id: I9f25f6c4f0d00c76b66d13162f30be11368f5b59
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
[ROCm/amdsmi commit: 7b2463abe0 ]
2024-05-23 04:41:57 -04:00
Charis Poag
f7d3417a7f
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 >
[ROCm/amdsmi commit: c24d66740e ]
2024-05-02 10:13:39 -05: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
Oliveira, Daniel
51d25d8feb
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 >
[ROCm/amdsmi commit: 1310c767ce ]
2024-03-24 23:33:32 -04: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
Bill(Shuzhou) Liu
21cf0c1b5c
Unify the amdsmi_get_pcie_info python interface
...
Make the python interface consistent with the C interface.
Change-Id: Idda08f888947c757e475d5a024b0ec3d8e1d846a
[ROCm/amdsmi commit: db33cda0c1 ]
2024-02-22 03:33:59 -05:00
Maisam Arif
4728d05c5f
Align list and cache_info to Host
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I4fa55b360b74d5a202d0b9b4eb7aee660b0a1bcf
[ROCm/amdsmi commit: 77710921a4 ]
2024-02-15 01:47:59 -05:00
Oliveira, Daniel
e9e246f23d
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 >
[ROCm/amdsmi commit: 78074d7d77 ]
2024-02-13 10:15:17 -06:00
Maisam Arif
b6f62bb651
Renamed amdsmi_get_metrics_table to amdsmi_get_cpu_metrics_table
...
Renamed structs to be more conistent with what they are calling
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I6f2be2fcb76f004aa592f0dad8545565700ccd4b
[ROCm/amdsmi commit: f831cf49f7 ]
2024-02-12 16:30:18 -06:00
Maisam Arif
39537d999d
SWDEV-436533 - Cache Info Struct Update
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ic640fa657cdcc32d7b00ff78fc9452ec7e05dd07
[ROCm/amdsmi commit: 88192d8b6b ]
2024-02-05 16:51:04 -05:00
Bill(Shuzhou) Liu
25ffbb0304
Unified API
...
amdsmi_get_link_metrics() and amdsmi_get_pcie_info()
Change-Id: Iea060e449813b842236243b772e8809497ce98fe
[ROCm/amdsmi commit: 0b67c2ccc4 ]
2024-01-24 18:27:20 -05:00
Deepak Mewar
6ef2131a21
amdsmi library updated for esmi error status mapping to amdsmi
...
Change-Id: I7e4dd146a1a9af496556efcf811b2e1ed565b09e
[ROCm/amdsmi commit: 5d0b479661 ]
2024-01-16 11:41:22 -06:00
Deepak Mewar
3a00172186
amdsmi library and sample code updated for amdsmi_get_metrics_table
...
Change-Id: Ie03c556f5c38fe4a0365743d3a94220e3aa62b23
[ROCm/amdsmi commit: 9f3a6dbd29 ]
2024-01-16 11:41:22 -06:00
Naveen Krishna Chatradhi
4bd015f945
amd-smi: fix cpu specific apis and header
...
1. provide prototype and documentation for esmi specific api.
define structures and update classes as required
2. update cmake files as required and add esmi api to the
amdsmi esmi integration example.
Change-Id: I753ec176f9b381e74c9646525dfd9075237bf8d9
[ROCm/amdsmi commit: 65eed73f4d ]
2023-12-18 06:28:15 -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
37a41c3bc8
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
[ROCm/amdsmi commit: 545e57d3e3 ]
2023-11-14 11:56:43 -05:00
Maisam Arif
0a20cc33ab
Updated License Dates
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Id6fd66b03c602232ecc1a063a534a15fe3a03f56
[ROCm/amdsmi commit: 5dba2f3120 ]
2023-11-07 03:57:08 -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
Maisam Arif
b14d1ca543
SWDEV-410051 - Updates to board_info struct & CLI
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I8735d8965140ee5da0c35106b388af1dca87ec71
[ROCm/amdsmi commit: 2b4637ff9f ]
2023-10-27 16:52:56 -05:00
Galantsev, Dmitrii
f4d4b0727c
ESMI - Clean-up example code
...
Change-Id: Iacd150209d4695a39de39bd5633293d3e040ff4b
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 8333ffc640 ]
2023-10-16 15:06:10 -04:00
Suma Hegde
614930f90e
amdsmi_esmi_intg_example.cc: Fix compilation warnings
...
remove unused variables, fix uninitialized variables
Change-Id: Ia0b529d3bb0ec8c541bcf1abd8b06d4237d593e8
[ROCm/amdsmi commit: abad3305a1 ]
2023-10-16 15:06:02 -04:00
Deepak Mewar
fad0af9ba2
esmi: remove energy reporting, fix errors from clang compiler
...
Clang compiler reporting errors while generating python wrappers for esmi lib
Change-Id: I62352aba3b87f9a6b044c97af6b9fd649612b622
[ROCm/amdsmi commit: ee890c5060 ]
2023-10-13 14:45:25 -04:00
Deepak Mewar
8beb938188
build issue fix with sample test code
...
Change-Id: I03890879253f1be74311cf613a9baad55d197f75
[ROCm/amdsmi commit: 1f0f5ab63f ]
2023-10-13 08:17:43 -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
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
Deepak Mewar
fe29a848bc
added metric table wrapper APIS & test code
...
Change-Id: I24207b3c32d7294337140a1f5108b81f3bf33580
[ROCm/amdsmi commit: 192fb538be ]
2023-10-10 00:03:11 -04:00
Deepak Mewar
69c642a720
Updated the sample test for esmi wrappers
...
Change-Id: Ie382b84a0aed4ae40f4befa0e922c19ae8a316c8
[ROCm/amdsmi commit: 7a2f3c8d56 ]
2023-10-10 00:03:11 -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
Maisam Arif
401d3f229c
Added driver_name to amdsmi_cli tool
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I8f3d52e0b23298443b2b16afec418cbbbc5f77e0
[ROCm/amdsmi commit: 572bf563d1 ]
2023-10-04 08:54:19 -04:00
Maisam Arif
76d025cff0
SWDEV-410230 - Added slot_type to amd-smi static --bus
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I2006a3525a8aa9091bf54501461d364f7237f00f
[ROCm/amdsmi commit: fadf1b6cc9 ]
2023-10-02 10:15:34 -04:00
Galantsev, Dmitrii
b376d27d7a
Upgrade to CXX-17 gtest-1.14 and cmake-3.14
...
Change-Id: I3bceb90f79235a9c0616c5d7ef9e37e458ffdce6
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 871fae8b25 ]
2023-09-29 13:18:48 -04:00
Bill(Shuzhou) Liu
90c9c8de4e
Get PCIe slot type
...
Add API to get the PCIe slot type.
Change-Id: If6894af53894c524d61c7586c59768541bbf0ac6
[ROCm/amdsmi commit: 9eccf20f0c ]
2023-09-27 23:31:09 -04:00
Maisam Arif
806adfa83c
SWDEV-412847 - Changed junction to hotspot
...
Change-Id: I7f6c1a0a77e6a09d2a3e831463cf03e35266bf40
Signed-off-by: Maisam Arif <maisarif@amd.com >
[ROCm/amdsmi commit: d2ef113457 ]
2023-09-14 17:43:26 -05:00
Shuzhou Liu
0825443a75
Merge "Add API for the memory type" into amd-dev
...
[ROCm/amdsmi commit: ab615f6b2a ]
2023-09-12 09:34:03 -04:00
Naveen Krishna Chatradhi
37075cd685
Merge "Updated esmi error checking for graceful return" into amd-dev
...
[ROCm/amdsmi commit: 9a8770246a ]
2023-09-11 05:36:58 -04:00
Bill(Shuzhou) Liu
8a4aead84b
Add API for the memory type
...
Get the memory type from libdrm and add a new API.
Change-Id: I89327bca2ef860f2e3f4f6ca20def2331eba66c0
[ROCm/amdsmi commit: b52034fed8 ]
2023-09-07 13:05:58 -05:00
Deepak Mewar
9d8c10b3e5
Updated esmi error checking for graceful return
...
Change-Id: I1bcd498e3482dc7acd92b1a762f892b3dd978ff2
[ROCm/amdsmi commit: 14cf5f2762 ]
2023-09-04 08:27:12 -04:00
Galantsev, Dmitrii
7edc93a1b4
Fix temperature reads
...
Change-Id: Iad5e5201911f620495985591e21fc5aaae028faf
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
[ROCm/amdsmi commit: 489991a322 ]
2023-08-31 18:50:58 -05:00
Dmitrii Galantsev
2aab123f47
Merge "Update amdsmi_wrapper.py and name fields" into amd-dev
...
[ROCm/amdsmi commit: f96c7663b5 ]
2023-08-30 17:30:38 -04:00
Galantsev, Dmitrii
5ac201fe42
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 >
[ROCm/amdsmi commit: 03cfdeefd5 ]
2023-08-30 16:30:03 -05:00
Deepak Mewar
89d8f62fc4
Renamed esmi library APIs and bound the APIs
...
to cpusocket handle
Change-Id: I6e3d8aa667df475339c28b27294349843f32230c
[ROCm/amdsmi commit: 0baa3f6b6a ]
2023-08-29 05:15:12 -04:00
Deepak Mewar
180b9a55e6
Wrapper APIs and sample tests for esmi power control,
...
boostlimit monitor, boostlimit control, esmi error status
Change-Id: Id8db926eab2f6be386ed21081e651fcc9b389a22
[ROCm/amdsmi commit: a7d7c5c6e1 ]
2023-08-29 05:14:26 -04:00
Maisam Arif
e2a1fed08c
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 >
[ROCm/amdsmi commit: 82ac307f9b ]
2023-08-02 23:42:48 -05:00
Deepak Mewar
263a9fb6f4
esmi library integration update v1.0
...
1. new class files for cpu socket and cpu core created
2. wrapper API's for getting energy monitoring, system
statistics, power monitoring values implemented
3. modified amdsmi init & cleanup functions for esmi lib support
4. modified amdsmi system class for esmi lib support
5. sample test code created in example dir
Change-Id: Ic41f31641c283a681de696bb4346b557265bad42
[ROCm/amdsmi commit: 8a9771b225 ]
2023-07-27 17:29:27 -05:00
Bill(Shuzhou) Liu
4d4f8a4f8c
Change API to get the driver date
...
Support the driver date from libdrm.
Change-Id: I88e694732b538220e11fdb4029712bb5a6f44380
[ROCm/amdsmi commit: 55bf9cbe13 ]
2023-07-21 08:28:06 -05:00