Shuzhou Liu
ab615f6b2a
Merge "Add API for the memory type" into amd-dev
2023-09-12 09:34:03 -04:00
Naveen Krishna Chatradhi
9a8770246a
Merge "Updated esmi error checking for graceful return" into amd-dev
2023-09-11 05:36:58 -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
Deepak Mewar
14cf5f2762
Updated esmi error checking for graceful return
...
Change-Id: I1bcd498e3482dc7acd92b1a762f892b3dd978ff2
2023-09-04 08:27:12 -04: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
Dmitrii Galantsev
f96c7663b5
Merge "Update amdsmi_wrapper.py and name fields" into amd-dev
2023-08-30 17:30:38 -04: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
Deepak Mewar
0baa3f6b6a
Renamed esmi library APIs and bound the APIs
...
to cpusocket handle
Change-Id: I6e3d8aa667df475339c28b27294349843f32230c
2023-08-29 05:15:12 -04:00
Deepak Mewar
a7d7c5c6e1
Wrapper APIs and sample tests for esmi power control,
...
boostlimit monitor, boostlimit control, esmi error status
Change-Id: Id8db926eab2f6be386ed21081e651fcc9b389a22
2023-08-29 05:14:26 -04: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
Deepak Mewar
8a9771b225
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
2023-07-27 17:29:27 -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
Deepak Mewar
8c8f41f893
Renamed API amdsmi_get_driver_version to
...
amdsmi_get_gpu_driver_version
grep -rli 'amdsmi_get_driver_version' * | xargs -i@ sed -i
's/amdsmi_get_driver_version/amdsmi_get_gpu_driver_version/g' @
Change-Id: Ic1dfb17f7595210ec1fcbd5a936fd259e57e9638
2023-05-11 10:34:42 -04:00
Deepak Mewar
5ed24711c7
Renamed API amdsmi_get_device_uuid to
...
amdsmi_get_gpu_device_uuid
grep -rli 'amdsmi_get_device_uuid' * | xargs -i@ sed -i
's/amdsmi_get_device_uuid/amdsmi_get_gpu_device_uuid/g' @
Change-Id: I40bf740235a1a98d7d12964378b0b45208987c9e
2023-05-11 10:30:32 -04:00
Deepak Mewar
3fec3b4b4a
Renamed API amdsmi_get_device_bdf to amdsmi_get_gpu_device_bdf
...
grep -rli 'amdsmi_get_device_bdf' * | xargs -i@ sed -i
's/amdsmi_get_device_bdf/amdsmi_get_gpu_device_bdf/g' @
Change-Id: I3db605f8bdb0a83b1f0f7f300a663c47563ba651
2023-05-11 10:30:05 -04:00
Suma Hegde
dd00a16124
Change device_type to processor_type
...
also rename amdsmi_get_device_type to amdsmi_get_processor_type
grep -rli 'device_type' * | xargs -i@ sed -i
's/device_type/processor_type/g' @
Change-Id: Ic6a73c1a170757d5ab5d10ad20b4fc2f0b280e78
2023-05-11 10:28:31 -04:00
Suma Hegde
3f9e4d95d4
Change device_handle to processor_handle
...
grep -rli 'device_handle' * | xargs -i@ sed -i
's/device_handle/processor_handle/g' @
Change-Id: Ifc8b7fa3b5488ce1fa8d8cf9eb3981a09450de11
2023-05-11 10:11:24 -04:00
Suma Hegde
3963036a05
Change amdsmi_device_handle to amdsmi_processor_handle
...
grep -rli 'amdsmi_device_handle' * | xargs -i@ sed -i
's/amdsmi_device_handle/amdsmi_processor_handle/g' @
Change-Id: Ie25c51933dcc31e5b34c8070d0d5ba0e8cd05cc1
2023-05-11 10:09:11 -04:00
Maisam Arif
4cc7244fb6
AMDSMI CLI Version 0.0.2
...
Added Rocm Set Commands
Wrapped all amdsmi_interface calls with error handling
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
Change-Id: Ic6b3648ef01ded8ee1fb7f0f14f3ca7bc069c567
2023-03-30 01:25:11 -05:00
AravindanC
689d58d2c9
SWDEV-351540 - ASAN packaging for amd-smi
...
Change-Id: I5f0bf5330727e11159db87c2814904a2832df385
2023-03-23 10:40:10 -07:00
Marko Oblak
db9d8793be
SWDEV-381227 - [AMDSMI][Linux][BM] SMILIB returns wrong temperature value
...
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com >
Change-Id: Idc9929d1cfd882bb33abf040378587f68d22b31a
2023-02-21 17:21:15 +01:00
Dalibor Stanisavljevic
411ef54087
SWDEV-375113 - Fixed process info
...
The format of the fdinfo file has changed
Change-Id: Iad2e26487e75f3e614e364456e929aa1f6f949a4
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-01-23 08:13:55 -05:00
Dalibor Stanisavljevic
cf7a92f383
SWDEV-373282 - Fixed compiler warnings
...
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
Change-Id: Ieacf1057ad23f9a31d47a6d1199c90d8fa0d12db
2023-01-23 03:37:29 -05:00
Galantsev, Dmitrii
6ee793ca03
SWDEV-340919 - Move examples and tests install dir
...
Previous install locations:
- /opt/rocm/share/example/amd-smi
- /opt/rocm/share/tests/amd-smi
New install locations:
- /opt/rocm/share/amd_smi/example
- /opt/rocm/share/amd_smi/tests
Change-Id: I305477b9f66bdc5963923efe6da1c01f87ea2085
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-01-20 09:49:56 -06:00
Maisam Arif
6aa91da74c
Revert "Added AMD-SMI Linux Baremetal"
...
This reverts commit 013400bee7 .
Reason for revert: Branch is still WIP
Change-Id: I75eec813b3d81049f033fe0a534251bd69eeca0e
2023-01-19 11:45:20 -05:00
Maisam Arif
013400bee7
Added AMD-SMI Linux Baremetal
...
Change-Id: I39ec76f4e4a8ca32eba10f4541585b2284e71539
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com >
2023-01-18 03:32:52 -06:00
Jason Albert
86de0f441f
Remove tag values from enum/union/struct declarations
...
The tag values largely were not used and were causing doxygen
generation issues.
In the few cases where the tags were being referenced, clean up
those compile issues.
Signed-off-by: Jason Albert <jason.albert@amd.com >
Change-Id: I7b32eac742fb5af560400c13dda2721705d882bc
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-01-16 13:14:45 +01:00
Bill(Shuzhou) Liu
ec48312c61
Remove duplicate temperature function
...
The amdsmi_dev_get_temp_metric() will cover both function:
amdsmi_get_temperature_measure() using AMDSMI_TEMP_CURRENT
and
amdsmi_get_temperature_limit() using AMDSMI_TEMP_CRITICAL
Remove those two function.
It also merge the amdsmi_get_power_limit() into
amdsmi_get_power_measure()
Change-Id: I40d4afeb2ec0ac7b64832729f36adfaae120c990
2023-01-11 08:13:37 -06:00
Bill(Shuzhou) Liu
79bd9c1d5f
change sensor_type in amdsmi_dev_get_temp_metric() to enum
...
The sensor_type in amdsmi_dev_get_temp_metric() will be changed to
amdsmi_temperature_type_t
Change-Id: I72a7f271b0a55a025acc2ca523062a3d51cc036d
2023-01-04 13:01:04 -06:00
Bill(Shuzhou) Liu
221d6fdc5c
Make amdsmi function name consistent
...
Some of the amdsmi function have the verb (set or get) at the
end of the function. Move it to the middle to be consistent with
other APIs.
Change-Id: I8053d16f46af951c25aaaf8febf2896a33633fa1
2022-12-16 10:20:49 -06:00
Dalibor Stanisavljevic
a80bbd308c
SWDEV-371565 - Fixed retrieval FW versions in python and example
...
Change-Id: I4e512584a50342dcd4f9c93f523112fb4b5099dd
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2022-12-14 13:06:41 +01:00
Galantsev, Dmitrii
a255393b5c
SWDEV-372949 - Resolve ASAN failure
...
Change-Id: I622ba5e8fc4d30d98dae365a67a0b0e99ffae3a5
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2022-12-12 15:49:55 -06:00
Dalibor Stanisavljevic
b4b761d02f
SWDEV-370223 - Change the name of the header to amdsmi.h
...
Change dev to device_handle throughout the file
Change the pcie_info pcie_speed field type to uint32_t
Add AMDSMI prefix before amdsmi_mm_ip enum
Change-Id: I242145389ddc3f2ad05dfd6ca371640f4d118fc4
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2022-12-08 13:34:34 +01:00
Galantsev, Dmitrii
aeb0bf5832
CMAKE: Repackage whole project for ROCm 5.5 release
...
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
Change-Id: I932b11a111c8e0db04bd8c5e0c3d1a470e5b2386
2022-11-29 17:04:32 -06:00