Hao Zhou
befdbaa9a8
Merge amd-staging into amd-master 20230224
...
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com >
Change-Id: I5907cf268e6ba6c98d8e7b47467d42dbc6202ca4
2023-02-24 09:16:32 +08:00
Marko Oblak
7eea4e596b
SWDEV-384678 - Resolve issue with amdsmi build failure
...
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com >
Change-Id: I073113814d2f6740c9eaea1b298d8aff9ea58c72
2023-02-22 11:00:57 +01:00
Marko Oblak
0aadf7eab2
SWDEV-373291 - Added implementation of versioning solution
...
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com >
Change-Id: Ifd0be3f81902466339b6c098ce16d5e49740056c
2023-02-21 17:37:54 +01: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
Galantsev, Dmitrii
3bed2b7b8f
Improve Debian packaging recommendation
...
See: https://cmake.org/cmake/help/latest/cpack_gen/deb.html#variable:CPACK_DEBIAN_PACKAGE_RECOMMENDS
Change-Id: I945cbf2104d108caf0ee6e2e963ecfca9a6320e0
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-02-16 14:40:40 -06:00
Hao Zhou
e79a230f92
Merge amd-staging into amd-master 20230130
...
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com >
Change-Id: Ia1a0eadf0e37a684badaf66a8ac61ec58ced9f40
2023-01-30 13:20:29 +08:00
Dalibor Stanisavljevic
c469c3d505
SWDEV-375213 - Renamed gpu_device to gpudevice for amdsmi_get_power_cap_info
...
Change-Id: I8518587f35e4ce897317a09505435eee7a8f81f8
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-01-26 14:11:26 +01:00
Dalibor Stanisavljevic
ff553cdb56
SWDEV-375213 - Separate smi from rocm part inside functions
...
Change-Id: I81d2e9d02794ac017a74b3273c6f5a8c85b042a0
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-01-26 07:28:53 -05:00
Dalibor Stanisavljevic
08bcaee3e2
SWDEV-373295 - Updated python interface
...
Change-Id: I882179d97a4f522deb0e8b9cdbff85d9b23471ab
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-01-25 14:21:24 +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
Dalibor Stanisavljevic
a926f42599
SWDEV-373295 - Added power_limit field in python api
...
Change-Id: Ie81e78eb9930fb0d8132ee9f119e291afbcad84f
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-01-23 03:36:00 -05:00
Galantsev, Dmitrii
6b1a7ce27a
Merge amd-dev into amd-master 20230120
...
Change-Id: I846879aa2614c45250fa34ef76aead0b08b4e9d5
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-01-20 10:38:32 -06: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
Dalibor Stanisavljevic
ed8f865341
Revert "Adjusted folder naming and moved amdsmi_cli into amdsmi project folder"
...
This reverts commit 3eadf3a216
because build failed
Change-Id: Id9efa22f3e1167e1b1bb235b449aef60256c0e24
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-01-19 15:40:28 +01:00
Dalibor Stanisavljevic
bf79fe4323
SWDEV-378294 - Fixed failing tests
...
Change-Id: Ie0f9dedd6901e05b1a5ca7846624c127d92ed67f
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-01-18 10:28:32 -05:00
Maisam Arif
3eadf3a216
Adjusted folder naming and moved amdsmi_cli into amdsmi project folder
...
Change-Id: I4b7c42161fc92450f496483e5b49c7def6810437
2023-01-18 08:47:38 -06: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
Hao Zhou
272a274313
Merge amd-staging into amd-master 20230118
...
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com >
Change-Id: I4ce0f22e2d1fc3f347ab160d04a16a9c84afe0ab
2023-01-18 10:33:38 +08: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
Dalibor Stanisavljevic
bbcbe896ea
SWDEV-375113 - Updated python wrapper
...
Change-Id: I779cd5d7ff3f3ca231d1fd90dcedcc070540e6e3
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-01-16 12:24:38 +01:00
Dalibor Stanisavljevic
49aad0f898
SWDEV-375098 - Added check if driver sysfs node exists
...
Change-Id: I2524f96e5447fd3a34aa16efe3dfc271b7df62b9
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-01-16 10:58:27 +01:00
Bill(Shuzhou) Liu
f19da1bb2c
Crash when fails to open sysfs file
...
When it fails to open sysfs file, it may crash. Modify the condition
to check the file descriptor after open the file.
Change-Id: I2acdc55f8194a2d734db20d16e1660a20ba09574
2023-01-13 08:15:58 -06:00
Hao Zhou
6cb72bda67
Merge amd-staging into amd-master 20230113
...
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com >
Change-Id: If4c1ada5b8ef50c8cb117efa71d004057d9311cb
2023-01-13 09:42:52 +08:00
Dalibor Stanisavljevic
4caded6dc4
SWDEV-376644 - Renamed usage to engine_usage
...
Change-Id: Icaac74800e30c1769a491ef190359490aba757b7
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-01-12 15:58:29 +01:00
Dalibor Stanisavljevic
943c42f58f
SWDEV-374716 - Fixed asic info
...
Change-Id: I8d806ef09eca4300fcec0ce6a226d13547dfb728
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-01-11 11:03:17 -05: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
Dalibor Stanisavljevic
e217fff82c
SWDEV-375181 - Fixed amdsmi_get_fw_info python output
...
Change-Id: I4bf4bf49cd921d52849e1bb140e464e2756b07c5
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2023-01-11 11:17:49 +01:00
Hao Zhou
f10fb9e99e
Merge amd-staging into amd-master 20230106
...
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com >
Change-Id: I9f9a4caee65d3c11ea81193446a823497182a3db
2023-01-06 13:16:56 +08: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
Galantsev, Dmitrii
2184d0c3d7
SWDEV-374138 - Improve ASAN flags
...
Tests overwritten the linker flags resulting in failed build with clang.
This change improves ASAN linker flag assignment and fixes test issue.
Change-Id: I88f38360d46b20f6cc7298ad0d1fd09ff6ce47d6
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-01-03 16:30:48 -06:00
Hao Zhou
400baca011
Merge amd-staging into amd-master 20221230
...
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com >
Change-Id: I1548ada3cb8b63e9261115ebc7ee402664293298
2022-12-30 10:36:34 +08:00
Dalibor Stanisavljevic
9d345c5797
SWDEV-375271 - Renamed AmdSmiClockType to AmdSmiClkType
...
Change-Id: I6af34f7c4701584357ae5ec1315fbc425f2a9f82
2022-12-28 12:55:15 +01:00
Dalibor Stanisavljevic
0f7c440d95
SWDEV-373280 - Updated python wrapper
...
Use ctypes to import types instead of via amdsmi_wrapper
Change-Id: I217e90b74aafdd39eaab5f50edfda80e0bf91cce
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2022-12-28 10:21:54 +01:00
Dalibor Stanisavljevic
36eb2145d9
SWDEV-373280 - Added new generator
...
Change-Id: I82e3663f8118f17dc6a223a79cadd95634329356
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2022-12-27 10:14:09 +01:00
Dalibor Stanisavljevic
cb013d25ff
SWDEV-370502 - Reserved fields in structs
...
Change-Id: I23aed12baf6b3173eb149eb3b969e55d7e4360ee
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2022-12-26 10:51:44 -05:00
Hao Zhou
4901ac954a
Merge amd-staging into amd-master 20221226
...
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com >
Change-Id: I0df8148f884113f53e7ccb4b9de0361c2663f7d5
2022-12-26 11:52:33 +08:00
Dalibor Stanisavljevic
0bdd45e935
SWDEV-371492 - Updated python wrapper
...
Change-Id: I04f9f825ecdbe06de9ca95cf19e3f5bca972ec95
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2022-12-23 14:09:50 +01:00
Dalibor Stanisavljevic
e22e72d4c3
SWDEV-371492 - Added check that device_handle is valid
...
Change-Id: Ic1b593fd5f781650528c860c372fa9864624255d
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2022-12-22 12:57:42 +01:00
Dalibor Stanisavljevic
4c56e9e3d6
SWDEV-371199 - Return NOT_INIT when amdsmi initialization fails
...
Change-Id: Ifb40aef3a62885b08164e9aa944bf9b5c375ebfd
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2022-12-19 16:29:29 +01: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
Hao Zhou
28d04a8f52
Merge amd-staging into amd-master 20221215
...
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com >
Change-Id: I646d74c4a1185b6fa68659f63685a712618761a7
2022-12-15 09:45:26 +08: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
Bill(Shuzhou) Liu
552a7403bc
SWDEV-373189: build error with g++ v12.1.0
...
Fix the g++ error: ‘memset’ was not declared in this scope
Change-Id: I6231f863801f84a5a8c46543c87499058f2ef381
2022-12-13 08:33:12 -06:00
Galantsev, Dmitrii
5db4424549
Merge branch 'amd-dev' into amd-master 20221212
...
Change-Id: I3dbaaae0e157487afbab1efb96d6f854c1249125
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2022-12-12 20:12:57 -06: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
Galantsev, Dmitrii
0c52236abd
CMAKE: Resolve lib dependencies for tests
...
amdsmitst was failing and not finding libgtest and libamd_smi.
This change resolves the issue by
1. Installing gtest into tests directory
2. Modifying RUNPATH variable to point to libamd_smi.so
Change-Id: I126d01c88116d37c5f2b55b9ecb2c9f1313f26fe
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2022-12-12 14:37:57 -06:00
David Ceranic
ab928f3be5
LWPVATS-4489 - [AMDSMI][LinuxBM] Implement smi-tool for calling rocm APIs using amdsmi wrapper
...
Signed-off-by: David Ceranic <David.Ceranic@amd.com >
Change-Id: I15900a6686e672291b2c0f9d54fd0b5b7e35e589
2022-12-09 16:16:41 +01:00
Dalibor Stanisavljevic
238f885e14
SWDEV-371561 - Fixed vbios version string value
...
Change-Id: Ide06784200084741e6cde606492bf03a760b9601
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com >
2022-12-09 15:19:12 +01:00