نمودار کامیت

1558 کامیت‌ها

مولف SHA1 پیام تاریخ
Maisam Arif 542bfc0c77 SWDEV-445664 - Aligned Metric Command with Host
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I905ee72272bb4c5ccde3e237d2663ec6e0e55034
2024-02-22 07:15:17 -05:00
Oliveira, Daniel 475424525e fix: [rocm/amd_smi_lib] TestFrequenciesRead & TestPciReadWrite test cases failed
Fixes asserts in unit tests, and 'pp_dpm_pcie' condition

Code changes related to the following:
  * rsmi_dev_pci_bandwidth_set()
  * Functional tests

Change-Id: Id5e6851393fa3b51bb8cad87daca1efaf500a7e0
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com>
2024-02-22 03:40:50 -05:00
Maisam Arif a719ae9707 SWDEV-445396 - Aligned Static Command with Host
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I4182b9104e173f54830fc44819a61d74d31d65d7
2024-02-22 03:35:00 -05:00
Bill(Shuzhou) Liu db33cda0c1 Unify the amdsmi_get_pcie_info python interface
Make the python interface consistent with the C interface.

Change-Id: Idda08f888947c757e475d5a024b0ec3d8e1d846a
2024-02-22 03:33:59 -05:00
Maisam Arif f58613561c Refactor ESMI Initialization and Argument Parsing
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Iefab3a8110e0d3c525ee0cef1bdef9101550e9de
2024-02-21 19:02:14 -05:00
Maisam Arif 180f893791 Unified human readable output tabbing with Host
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ie8ebe783e0e2cd445a0b29431c11302a0675a010
2024-02-21 06:46:02 -06:00
Deepak Mewar 84608807da Fix for multiple hsmp freq sources not reported on some setups
Change-Id: I8afe7076bd7790cf408ef104c50ac8d258b7d3fc
Signed-off-by: Maisam Arif <maisarif@amd.com>
2024-02-21 06:30:03 -06:00
Maisam Arif 703fdb0ed2 Aligned cache property enum with Host
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ie64a33f55c9a9a7cc8c806419509897351f37c70
2024-02-20 05:48:53 -06:00
Maisam Arif 482930eee3 Cleanup & rev_id fix
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I497037939b3f13b4f835762f2cdd42261e7f26f4
Signed-off-by: Maisam Arif <maisarif@amd.com>
2024-02-15 16:50:10 -06:00
Maisam Arif fad7339c39 Merge amd-dev into amd-master 20240215
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I089fcea8184d323f5e65311bb63c231cb94890e3
2024-02-15 16:28:31 -06:00
Maisam Arif 61f8888488 24.3.0 Version update
Change-Id: I936c896117ad64d06ea919a8b7bd6ba4cc388592
Signed-off-by: Maisam Arif <maisarif@amd.com>
2024-02-15 17:21:24 -05:00
Maisam Arif dd18c117e6 Added Monitor command to Guest Linux
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I378a1fcf49d7a69b09b6c93d77a4b084144a5633
2024-02-15 09:45:42 -06:00
Maisam Arif 77710921a4 Align list and cache_info to Host
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I4fa55b360b74d5a202d0b9b4eb7aee660b0a1bcf
2024-02-15 01:47:59 -05:00
Deepak Mewar 34ccbb5d1b Updated amdsmi header for ESMI doxygen formatting
Referencing htttps://github.com/ROCm/amdsmi/pull/10

Change-Id: I516e3643130db8a4213aee7dfcaca27363e3171e
Signed-off-by: Maisam Arif <maisarif@amd.com>
2024-02-14 02:03:05 -06:00
Oliveira, Daniel 78074d7d77 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>
2024-02-13 10:15:17 -06:00
Maisam Arif f831cf49f7 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
2024-02-12 16:30:18 -06:00
Maisam Arif 7a19dbbfe6 SWDEV-439217 - Updated amdsmi_get_gpu_asic_info python api
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Iafcfb10bec9a9a04574afdd95f10971f537e433b
2024-02-12 15:37:45 -05:00
guanyu12 12f7dd5ea2 Merge amd-dev into amd-master 20240208
Signed-off-by: guanyu12 <guanyu12@amd.com>
Change-Id: I94f867792b9ee29054ff893e34957433c1055c25
2024-02-08 10:19:18 +08:00
Bill(Shuzhou) Liu 86d025daaa Add @platform doxygen alias
The @platform alias will describe which platform (for example,
gpu_baremetal or/and host) an API can be used.

The get_platform.py is a tool to compare APIs in different platforms.

Change-Id: I902bc4fea048269eace6e9f3f4a8e93f3adb7f87
2024-02-07 07:28:38 -05:00
Maisam Arif 9fe10fc98a Added Navi21 Device ID
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I0765283afda4c5cb04e2ad986863ec788da233cc
2024-02-07 05:18:47 -05:00
Deepak Mewar c533085a6a Updated python interface for renaming hsmp metric table elements as per PPR
Change-Id: Ic91ba09af396cc16f3e6461f49f985a034edbe09
2024-02-06 18:46:27 -05:00
Deepak Mewar 6f7273fda5 Added amdsmi cpu family & cpu model
- Updated header and source files
- Updated python interface
- Generated python wrapper for updated header
- Updated the CLI to have cpu family & cpu model
  as part of metric table

Change-Id: Iea440251797270d5d29ffe883b0ad6db790be658
2024-02-06 18:46:27 -05:00
Deepak Mewar 8adf3eba1b Updated python interface for metric table readable timestamp
Change-Id: I251d9ee9c908413e29dd4ce6bf46acb448867a43
2024-02-06 18:46:27 -05:00
Maisam Arif 88192d8b6b SWDEV-436533 - Cache Info Struct Update
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ic640fa657cdcc32d7b00ff78fc9452ec7e05dd07
2024-02-05 16:51:04 -05:00
Bill(Shuzhou) Liu 9683fc26ca UMC ECC count error
Remove another place which will check the size of the file.

Change-Id: If681a84253a8594c9f6d44d84dbf5d04a5e35612
2024-02-05 11:07:29 -06:00
Maisam Arif 505b8584c6 Merge amd-dev into amd-master 20240201
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Id60c9367912605c8edf3df6a395520f870884ed1
2024-02-01 12:10:53 -06:00
Maisam Arif 59d885a9ca Fixed gpu_metric and cache cli checks
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ic71e2b50dfa8fc106a17079842a7564a8e24b69d
2024-02-01 05:47:18 -05:00
guanyu12 3af2f1733b Merge amd-dev into amd-master 20240201
Signed-off-by: guanyu12 <guanyu12@amd.com>
Change-Id: I75565c99893266bcd3436f694880460deb56b353
2024-02-01 14:43:10 +08:00
khashaik 1e708aaad9 amdsmi_cli: Update the smu fw version data output
Change-Id: I8b28f7b5cf32530f5e6b3af4c342d7b6c150012b
2024-01-31 15:55:59 -05:00
Bill(Shuzhou) Liu b125f3ee8f UMC ECC count return not supported
The current code assume err_count sysfs only have 2 lines, which is
changed for umc_err_count by adding extra line for defer errors.
The code is changed to relax such check.

Change-Id: I7129bfcf9ef47346bca3c5a9535bc8c16c670f88
2024-01-30 11:12:40 -06:00
Galantsev, Dmitrii fe94be55dc Update wrapper
Change-Id: Ic3ff273851bde9a8986719a668a3135fe7dd715f
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2024-01-29 17:30:26 -06:00
Oliveira, Daniel 55734d2d7a fix: [rocm/amd_smi_lib] header cleanup Remove non-unified headers
Cleans up individual gpu metric APIs which will be implemented according to 'unified-headers' standards

Code changes related to the following:
  * '_get_gpu_metrics_' APIs
  * Functional tests

Change-Id: I2dd2ecde11c1d77e343e0ae0e10aeb9120ae9b99
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com>
2024-01-26 10:38:48 -05:00
Deepak Mewar 3aabb927b4 amdsmi README updated for python interface
Change-Id: I92c1e8eb646488a9cdc32d0933f27e5db8c172ef
2024-01-25 02:19:38 -05:00
Maisam Arif 0550c9352c Updated engine_activity api
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I3f62e093fdc0254015c0837dca59763551d3659c
2024-01-24 22:23:48 -05:00
Charis Poag 34bd26c68e Fix metric type error output + re-align with ROCm SMI metrics
Changes:
* [CLI] Provide fix for "/opt/rocm/bin/amd-smi metric
TypeError: '>' not supported between instances of 'str' and 'i"
--> Python API was updated, CLI needed to reflect these changes
* [API] Updated amdsmi.h's with ROCm SMI
--> Incorrectly added mem_bandwidth_acc & mem_max_bandwidth
--> Realigned wrapper with updates
* [Test] Added metrics not shown in gpu_metrics_read.cc

Change-Id: Ia3a172377fd5a582254dd5a46d81dbec7e763cd9
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
2024-01-24 21:23:40 -06:00
Maisam Arif fc5ecc166a Merge amd-dev into amd-master 20240124 Part 3
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I521b52af851ad836f166a926a53c36d9fa16e8e0
2024-01-24 17:30:42 -06:00
Bill(Shuzhou) Liu 0b67c2ccc4 Unified API
amdsmi_get_link_metrics() and amdsmi_get_pcie_info()

Change-Id: Iea060e449813b842236243b772e8809497ce98fe
2024-01-24 18:27:20 -05:00
Deepak Mewar 9375b6f820 amdsmi README updated for esmi library usage
Change-Id: I1406f0b0434e735b7d1cc1d931e7a2c92dfba728
2024-01-24 14:30:26 -05:00
Maisam Arif c400a22d4d 24.2.0 Version update
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ied7c24d63ca38c2e5ea5eca6b411e0156f61a403
2024-01-24 11:13:02 -06:00
Maisam Arif c48c989bbc 24.1.0 Version update
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ibfe92d199b10dc48ece85dfdeda1041f5ea98626
2024-01-24 12:09:48 -05:00
Maisam Arif 5e25c0771b Fix subvendor_id error handling
Change-Id: Ibb2e8e329233221e72247674b4f2fbaef51baa32
Signed-off-by: Maisam Arif <maisarif@amd.com>
2024-01-24 10:59:14 -06:00
Maisam Arif 3f53b626f9 Merge amd-dev into amd-master 20240124 Part 2
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ied8b8a6ede28e78cf5b246fc969a753b41b6f104
2024-01-24 07:53:44 -06:00
Maisam Arif 94f41f2b70 Corrected AmdSmiCacheTypeNames interface class
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Iec9c6097aec460b180a112be2d24293a40bde125
2024-01-24 07:48:30 -06:00
Maisam Arif 53177525bf SWDEV-434348: Corrected Guest Vendor Name values
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Iee0d45fc64386f0417a0e30cce05608ca2186990
2024-01-24 07:34:06 -06:00
Maisam Arif 2c87d95ffb Corrected Cache Type Enum
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I7d861d022e2855c35e4a79681f83977cc633d1c6
2024-01-24 07:28:04 -06:00
Maisam Arif f117fbee5c Merge amd-dev into amd-master 20240124
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Id8e8e04bd9932ec00e02fe272b5167249b3d37f7
2024-01-24 05:58:45 -06:00
Maisam Arif fec1173321 SWDEV-440760: Removed specific gpu_metric calls & fixed pcie metrics
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I679ecede4825c119925de3c9140453653f3f84aa
2024-01-24 05:51:36 -06:00
Maisam Arif 1ed5080433 SWDEV-441635: Updated amdsmi_get_utilization_count python API
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I588e1a61e000d9a5f77f0e8c63f4fef1ec76063e
2024-01-24 05:51:36 -06:00
Maisam Arif ee80c2cac4 Handled unkown vram type out of bounds error
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I2d32c7043c78c0651f1b4db565a299b6b96abbcc
2024-01-24 06:50:17 -05:00
Charis Poag fe86afed8c SWDEV-436533 [CLI/Python API] Align Cache Info BM UI to Host
- [CLI] Refactored cache info to display
cache flags as "cache_properties" names.
Names are displayed as a list of comma-separated
cache type strings. Previously, values
were shown one by one as ENABLED.

ex.
CACHE_PROPERTIES = <a,b,c>

- [JSON] mirrors CLI fields.
No longer display "cache_flags", renamed
field as "cache_properties" dictionary. This
allows users to better understand the
list of names provided.

- [Python API] Updated amdsmi_get_gpu_cache_info
to mirror Host return.

README.md - updated to reflect all changes.

Change-Id: Ife2ef5adcef30058937d1376efb01749e45c02fb
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
2024-01-24 06:21:55 -05:00