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>
[ROCm/amdsmi commit: b4b761d02f]
- Made all doxygen formatting consistent with @ use
- Added @file definition to fix a lot of missed references
- Simplified return definitions for easier maintainability
- Fixed bad formatting and missing section closures
Signed-off-by: Jason Albert <jason.albert@amd.com>
Change-Id: I02cc55f7d0ae277f318a4620978af096f56cac6c
[ROCm/amdsmi commit: b4cde9adec]
Assign fixed values to status codes to prevent enum auto assign
from changing them.
Signed-off-by: Jason Albert <jason.albert@amd.com>
Change-Id: I0ca1de7ba503ce8a75c56026f5a54e212204595b
[ROCm/amdsmi commit: 3b1584915b]
Instead of using assert to abort the application, the fix will
return the error code if the input parameters is incorrect.
Change-Id: I00861ddf1198386fb322ea06232a7178fb5ef4bd
[ROCm/amdsmi commit: 8d347bb6c4]
When the sysfs file does not exist, it will return NOT_SUPPORTED
instead of assert faiure.
Change-Id: I3a1c9d7cf627901e141e2617496dfafd2e6b3f25
[ROCm/amdsmi commit: 0a3ca5c555]
Added pcie, power and memory API
Change-Id: I0b3bd1c110099805c700f53974eceb6acd850930
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
[ROCm/amdsmi commit: 21d6e0f990]
- Added performance counter API calls
- Added part of unsupported functions in virtual env API calls
- README for both additions
Change-Id: I6fdf1fe83370975011fe4ec11c0b0ca2bab0a1b8
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
[ROCm/amdsmi commit: f9f792230e]
- Added Physical State Query API calls
- Added Clock, Power and Performance Query API calls
- README for both additions
Change-Id: Icf412364a13c9e51b9630f19f29a7cdfbe46f7fe
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
[ROCm/amdsmi commit: 62a69fb802]
- Add up to date README file for python tool
Change-Id: I7a02f79469e990870398b3741b033ea447998fdd
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
[ROCm/amdsmi commit: 9cad9e5216]
- Implement context manager event class for easier usage instead of having 4 different
APIs.
- Add support for with statement for easier cleanup.
Change-Id: I396947a93d3f04efc068e17804eab12eefa97cf0
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
[ROCm/amdsmi commit: 23160fa8e0]
- Added APIs for "Supported Function Checks"
- Added first half of the APIs for "Unsupported Functions In Virtual Environment"
Change-Id: Ia83303e6b7ae65aada608bd9ca5f56fd33e4ef34
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
[ROCm/amdsmi commit: a6efdd32ed]
Init the ams_smi using the rocm-smi, which makes the GPU discovery
consistent with or without libdrm.
Change-Id: Ic714781f8ce791451b0c057621525926edb7f5ee
[ROCm/amdsmi commit: b34b7451e8]
Fix a few broken unit tests to handle NOT_YET_IMPLEMENTED errors.
Change-Id: If3afac0dc32f2e3e82d83bffa5906b630bb1894a
[ROCm/amdsmi commit: c8caa80405]
Get the device name from rocm-smi which is not displayed properly
in some cards. Set the vibos version using the rocm-smi.
Change-Id: I138f1760cde94007cb93cad02c6d8cccbb4afa28
[ROCm/amdsmi commit: 9a92ea833f]
Those two APIs are changed to let the user get the handles count,
allocate memory, and then return handles to the allocated memory.
Change-Id: Ibe28a89ad188c99da6af3af1740b2b25ff22ba06
[ROCm/amdsmi commit: 2b2d11c446]
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
[ROCm/amdsmi commit: 0c91ef919d]
A few fields are added to board_info and asic_info for rocm-smi
device information.
Implement rocm-smi related fw block in amdsmi_get_fw_info().
Change-Id: I825d3e5c7feaa07a6e05386d4f1a59ebf528dfc0
[ROCm/amdsmi commit: 1ec3a2182e]
The API support function, performance counter, process information,
topology and xgmi info.
Change-Id: I3350ec75fdd2ca1438e79134582ae83c49763056
[ROCm/amdsmi commit: 86017b799c]
Add gtest based unit test framework. Implement fan read/write function.
Change-Id: I83375c24b99d24d01d12bccda863a38f75f5987f
[ROCm/amdsmi commit: 98df483bef]
Remove the compile time dependency on libdrm. Load it at the run
time instead.
Add the headers missed from smi-lib
Change-Id: Ie1ecf293b51425b6a61c502d11a42809dc099f70
[ROCm/amdsmi commit: 5ba371f285]
The init version includes the amd_smi.h header, an example uses the
amd_smi, folder structure and CMake files.
Add the support to libdrm.
Change-Id: I779e55e4cf9491c61dc226a30d24e96be9bc6016
[ROCm/amdsmi commit: 91ad08aa65]
This patch fixes a --showvoltagerange bug, which attempts to check
the voltage curve on a device that does not have any voltage
regions in its OverDrive voltage frequency data (odvf).
Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Change-Id: I647c30c978ffb13f6819ac3d069ee340710a7f99
[ROCm/amdsmi commit: 786f66671a]
Fixes bug in the 'setPowerOverdrive' function which mishandles
GPUs with secondary dies. Secondary dies have a default power cap
of 0W and cannot be changed, so they are now skipped.
Fixes bug in the 'resetPowerOverdrive' function which incorrectly
resets the wattage to the current value.
Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Change-Id: I483fa3f58b1fa44a3bf7bae3b52c59ce523ae152
[ROCm/amdsmi commit: 4298cbb400]
1. Memory allocated for handle was not deleted
when no variant, subvariant or supported function
was found
2. handle->func_id_iter address was set to 0
before delete[]
Signed-off-by: Divya Shikre <DivyaUday.Shikre@amd.com>
Change-Id: Iab50fdfbe03eec8e6fd0e84e03bd2c47e645b3d8
[ROCm/amdsmi commit: b23cfc0e82]
Show an optional debug log (RSMI_DEBUG_BITFIELD=2) to
the user in the following scenarios:
1. If more than one current frequency is found
2. If frequencies are not read in increasing order of
their value
If current frequency is not available, index for it is
set to -1, values will not have * next to it in the
output. This will also be handled in rocm_smi.py.
Signed-off-by: Divya Shikre <DivyaUday.Shikre@amd.com>
Change-Id: I477ec065f7513c8045d6392f12ef6cb835a6b8f6
[ROCm/amdsmi commit: afe996c2ed]
Add DEBUG_LOG that will optionally print error
message when RSMI_DEBUG_BITFIELD is set to 2.
Signed-off-by: Divya Shikre <DivyaUday.Shikre@amd.com>
Change-Id: I6017e92d8a9e5f9861ae29ece0488d4bc198f996
[ROCm/amdsmi commit: 99be3451d7]