Galantsev, Dmitrii
df4f5e8bf8
Merge rocmsmi/amd-staging into amd-dev 20231016
...
Change-Id: I137171162a64af4960d82336cc517c1b34a870f3
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-10-16 14:31:13 -05:00
Bill(Shuzhou) Liu
d92d4e4b38
Add new API for RAS related information
...
The API to get the EEPROM version and ECC schema.
Change-Id: Iee6b3c555541a33bf16bf9ac1fd60100dfff5643
2023-10-13 02:06:14 -04:00
Galantsev, Dmitrii
6d72d65c48
Merge rocmsmi/amd-staging into amd-dev 20231010
...
Change-Id: I492562094a004eb78b2cc2b52d14d013d9f97112
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-10-11 18:58:12 -05:00
Bill(Shuzhou) Liu
6ca95c1a2d
Add support to XGMI physical id
...
Get XGMI physical id from sysfs.
Change-Id: Ifd9e431bc2fbfd759d888a71b99046a5eb07b6ed
2023-10-10 09:29:05 -04: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
Bill(Shuzhou) Liu
656f12e0f3
Read PCIe slot type from sysfs
...
Read the PCIe slot type from sysfs instead of libdrm.
Change-Id: I9392b9e18a209ac7332f6902bcafb3b6062c86c1
2023-10-05 09:58:36 -04:00
Galantsev, Dmitrii
aa1dd8391e
Merge remote-tracking branch 'rocmsmi/amd-staging' into HEAD
...
Change-Id: I18c19dc54eedc9a9c851e5d8d0fdfa7b632e23a5
2023-09-26 14:03:23 -05:00
Galantsev, Dmitrii
31cc2eecfb
Merge remote-tracking branch 'rocmsmi/amd-staging' into HEAD
...
Change-Id: I0661926c10eef2bc32b83d9a63a3a6eb6991e781
2023-09-25 04:35:53 -05:00
Galantsev, Dmitrii
5c41319c83
Merge remote-tracking branch 'rocmsmi/amd-staging' into HEAD
...
Change-Id: I65ed7f3a0d1b6e58bc8377932d7c39db21d1b422
2023-09-21 23:43:20 -05:00
Bill(Shuzhou) Liu
f86f62b3f7
Return the driver loading status
...
When init the library, it could return status whether the driver is
loaded or not.
Change-Id: Id26b8058e32881ebe2514067a639a2a871d1f252
2023-09-18 08:38:16 -05:00
Bill(Shuzhou) Liu
9021ef96dc
Support PCIe vendor name
...
Add the support for PCIe vendor name.
Change-Id: Ibc1d289a08731e4c5a14f992f3b0d31b51482396
2023-08-28 16:46:43 -05:00
Galantsev, Dmitrii
14190c5a94
Merge remote-tracking branch 'rocmsmi/amd-staging' into amd-dev
...
Change-Id: I7a35220a2283b92c5b4825ee99d6693401ef8e1e
2023-08-28 16:01:19 -05:00
Galantsev, Dmitrii
936719eeb6
Merge remote-tracking branch 'rocmsmi/amd-staging' into amd-dev
...
Change-Id: I9c38b4facd472b877d1ad133f3176a023c890955
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-08-23 16:04:15 -05:00
Charis Poag
afa174c655
Merge 'rocm-smi/amd-staging' into 'amd-smi/amd-dev'
...
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
Change-Id: Id35c9807c45a965c968fb430e3ce4f3c7069c210
2023-07-19 18:46:28 -05:00
Bill(Shuzhou) Liu
7b107258ff
Handle key not exists errors for voltage sensor
...
Check the key exists or not before access sensor map.
Change-Id: I0ac5d63ae981ec2f984b1d464e93508560a4d030
2023-07-05 09:25:27 -04:00
Bill(Shuzhou) Liu
3b1e2f0817
amdsmi_init() fail when miss voltage sysfs
...
Fix the error handling when voltage sysfs is missing.
Change-Id: I457289eb4fd45bb05af83a67289b056f7e2ad966
2023-06-29 17:19:41 -04:00
Bill(Shuzhou) Liu
145868ad72
Return NOT_SUPPORTED if fail to write to sysfs
...
Check the error and return NOT_SUPPORTED when write to sysfs.
Change-Id: Idaa91816197413643552e230a483b79500d44e08
2023-06-28 09:05:51 -05: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
Bill(Shuzhou) Liu
dc4ba12e00
Return NOT_SUPPORT for set function in VM guest
...
Fix the unit tests which are fail in VM guest environment.
Change-Id: Id7c58887692bbdecba54f5d2d8463b292e19b4ad
2023-05-11 10:42:55 -05:00
Bill(Shuzhou) Liu
b39a56fc52
Crash if no hwmon sysfs
...
Return NOT_SUPPORTED if no hwmon sysfs.
Change-Id: I8f4bea0d74619150aee7dfc21fe62d24018e2994
2023-04-19 05:46:02 -04:00
Bill(Shuzhou) Liu
ad3b7d9f0d
amdsmitst crash when read ECC counter
...
If the amdsmi is fail to read ECC counter from sysfs file, it
still assumes the data is read into vector, which causes crash.
Add the check to make sure the data is read into the vector.
Change-Id: Ia24331ee6e75408120248b0ed7bc58581a2f23ad
2023-03-08 09:13:04 -05: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
Bill(Shuzhou) Liu
8d347bb6c4
Return errors when set clock range
...
Instead of using assert to abort the application, the fix will
return the error code if the input parameters is incorrect.
Change-Id: I00861ddf1198386fb322ea06232a7178fb5ef4bd
2022-12-06 12:39:43 -06:00
Bill(Shuzhou) Liu
0a3ca5c555
SWDEV-370010 - SMILIB returns 'Aborted (core dumped)'
...
When the sysfs file does not exist, it will return NOT_SUPPORTED
instead of assert faiure.
Change-Id: I3a1c9d7cf627901e141e2617496dfafd2e6b3f25
2022-12-02 07:58:17 -06:00
Bill(Shuzhou) Liu
0c91ef919d
Restructure the folder
...
Move rocm_smi related function to rocm_smi folder. Move amd_smi to
top level include/ and src/ folder. Remove obsolte oam folder.
Change the CMakeLists.txt to update folder locations.
Change-Id: I52e6be739e49f3b0545865f25364787f5985e9c3
2022-10-20 09:23:51 -05:00