Commit Graph

185 Commits

Author SHA1 Message Date
Maisam Arif 95f4b4eaf3 Updated engine_activity api
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I3f62e093fdc0254015c0837dca59763551d3659c


[ROCm/amdsmi commit: 0550c9352c]
2024-01-24 22:23:48 -05:00
Charis Poag f357c180e7 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>


[ROCm/amdsmi commit: 34bd26c68e]
2024-01-24 21:23:40 -06:00
Bill(Shuzhou) Liu 25ffbb0304 Unified API
amdsmi_get_link_metrics() and amdsmi_get_pcie_info()

Change-Id: Iea060e449813b842236243b772e8809497ce98fe


[ROCm/amdsmi commit: 0b67c2ccc4]
2024-01-24 18:27:20 -05:00
Maisam Arif d269c35312 Fix subvendor_id error handling
Change-Id: Ibb2e8e329233221e72247674b4f2fbaef51baa32
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: 5e25c0771b]
2024-01-24 10:59:14 -06:00
Maisam Arif b6a3bb8109 Corrected AmdSmiCacheTypeNames interface class
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Iec9c6097aec460b180a112be2d24293a40bde125


[ROCm/amdsmi commit: 94f41f2b70]
2024-01-24 07:48:30 -06:00
Maisam Arif 084d8f89d1 SWDEV-434348: Corrected Guest Vendor Name values
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Iee0d45fc64386f0417a0e30cce05608ca2186990


[ROCm/amdsmi commit: 53177525bf]
2024-01-24 07:34:06 -06:00
Maisam Arif 5edb7a559f Corrected Cache Type Enum
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I7d861d022e2855c35e4a79681f83977cc633d1c6


[ROCm/amdsmi commit: 2c87d95ffb]
2024-01-24 07:28:04 -06:00
Maisam Arif 3273fb6239 SWDEV-440760: Removed specific gpu_metric calls & fixed pcie metrics
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I679ecede4825c119925de3c9140453653f3f84aa


[ROCm/amdsmi commit: fec1173321]
2024-01-24 05:51:36 -06:00
Maisam Arif 037a4283cd SWDEV-441635: Updated amdsmi_get_utilization_count python API
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I588e1a61e000d9a5f77f0e8c63f4fef1ec76063e


[ROCm/amdsmi commit: 1ed5080433]
2024-01-24 05:51:36 -06:00
Charis Poag f2587543e8 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>


[ROCm/amdsmi commit: fe86afed8c]
2024-01-24 06:21:55 -05:00
khashaik a66efce2da amdsmi_cli: Add checks for no gpu devices, cpu and core devices
- Add checks for no gpu devices, cpu and core devices
  - Update units for core energy and cpu energy

Change-Id: Ieea43f1bb7fc303ebbbdf72f1ab22644a28df25c


[ROCm/amdsmi commit: 18d8087711]
2024-01-16 11:41:22 -06:00
khashaik 47ca69f2a6 amdsmi_cli: Fix issues for CPU related API's for DIMM
- Fix interface issues for dimm temperature, dimm refresh rate and dimm power consumption

Change-Id: I998209c8314e4d78a842187c5a0b127aea7dbef2


[ROCm/amdsmi commit: 4971466c22]
2024-01-16 11:41:22 -06:00
Deepak Mewar 1a2b556dce amdsmi interface updated to additionally return the freq src
from amdsmi_get_cpu_socket_current_active_freq_limit

Change-Id: I48f1026474115848a30352637415e7a1a52f3481


[ROCm/amdsmi commit: 7dcd5a3fd6]
2024-01-16 11:41:22 -06:00
Deepak Mewar 148ecb1805 amdsmi interface updated for amdsmi_get_metrics_table units
Change-Id: If211292e894df9d832b879252bebf91c17112d14


[ROCm/amdsmi commit: 898c4bc06f]
2024-01-16 11:41:22 -06:00
khashaik 323cf14a9c amdsmi_cli: Fix issues in cpu API "cpu_lclk_dpm_level"
- Fix issues in cpu API "cpu_lclk_dpm_level"
  - Fix issue for invalid core id
  - Update the error message for invalid devices

Change-Id: I71216ff72f89cfe0c86928ae3dce1f88eae91665


[ROCm/amdsmi commit: 256907989b]
2024-01-16 11:41:22 -06:00
Deepak Mewar 5d5bb11625 amdsmi interface updated for amdsmi_get_metrics_table encodings
Change-Id: Iffed4071d5b2b5645f8118f3fbce26ab258e7882


[ROCm/amdsmi commit: 1b1591571b]
2024-01-16 11:41:22 -06:00
Deepak Mewar 52c1014196 amdsmi interface updated for amdsmi_get_metrics_table
Change-Id: I0618dd411caf6d30f74793e937984273f9c5b70e


[ROCm/amdsmi commit: 31dc8d0ee8]
2024-01-16 11:41:22 -06:00
Charis Poag 23a0cb827f GPU Usage/activity update
CLI:
Every usage field is notated by "activity"
gfx_usage -> gfx_activity
umc_usage -> umc_activity
vcn_activities -> vcn_activity
jpeg_activities[AID#] -> jpeg_activity

Wrapper: fixed metric output, misalignment
with generator

update_wrapper.sh:
DOCKER_BUILDKIT to 0 (if unset)

API:
amdsmi_get_gpu_metrics_info:
1.3: Removed commenting out avg socket power

Signed-off-by: Charis Poag <Charis.Poag@amd.com>
Change-Id: Id3fcc20aef420c7b7a90ba22fa3bc643b2716333


[ROCm/amdsmi commit: 4575990ae7]
2024-01-15 23:34:08 -06:00
khashaik 313dbe77b9 amdsmi: Interface: Add units to the cpu related interfaces.
Change-Id: I294439c345a3e4ca399eb6b3f53eb1f18777180a


[ROCm/amdsmi commit: cdf31b8d6a]
2023-12-21 00:09:23 -05:00
Naveen Krishna Chatradhi 37f1d47b0e amdsmi: py-interface: Add python interface for esmi api
Change-Id: I4a3ab1168a7d1bf011ecc9c508e111c281503520


[ROCm/amdsmi commit: 94d3c563a3]
2023-12-18 06:31:35 -05:00
Charis Poag 4f502e5dab Add vcn and jpeg activity
Changes:
    - Add new engine field vcn_activity (from 1.4/1.5
      gpu_metrics
    - Updated log output to enhance view of gpu_metric
      data as json pretty print
    - Added new fields provided in 1.5
    - Added unit overview in python API, CLI is WIP

Signed-off-by: Charis Poag <Charis.Poag@amd.com>
Change-Id: I7d9f29e7ecc35dcd0697814c222cdd02b0d5518e


[ROCm/amdsmi commit: 8f3861e1d9]
2023-12-15 22:18:46 -05:00
Bill(Shuzhou) Liu 9dc60e00cb Support max_num_cu_shared and num_cache_instance
Add above fields for cache info. Remove driver_date in CLI and
Remove the disable properties of cache.

Change-Id: I80672490908d9e32a149076cc37459fa56b8b0bf


[ROCm/amdsmi commit: 59b510de2b]
2023-12-14 09:59:35 -05:00
Maisam Arif 6f778a4c62 SWDEV-413122 - Initial Monitor subcommand
Change-Id: Iaeaef77efeaa4289b19f1f676dcae6245f0e0c9e


[ROCm/amdsmi commit: f91fc97fed]
2023-12-13 23:43:43 -06:00
Maisam Arif a8138bfd5e Change xgmi_physical_id to oam_id
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I35fb36ec0e9f72a7135d8bb9070dbdc0e956b93a


[ROCm/amdsmi commit: b54086a037]
2023-11-22 12:16:38 -06:00
Maisam Arif 09f4046345 Refactor gpu_metrics usage in CLI
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I599878971ab94a768d008f046f2d303ad76fdb3b


[ROCm/amdsmi commit: 5b36b438b7]
2023-11-22 03:32:55 -06:00
Maisam Arif ff96f50145 Refactor gpu_metrics usage in libraries
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I763638d4b546bf49b234e823df81028c357e8f49


[ROCm/amdsmi commit: d790ebc62b]
2023-11-22 03:32:15 -06:00
Maisam Arif 37a41c3bc8 SWDEV-426130 - Updated firmware subcommand output
Corrected truncation
	corrected xgmi to ta_xgmi
	remapped smc(system management controller) to pm(power
management)

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I404cefa7b90a454d4f4b08f6490448b47cf32107


[ROCm/amdsmi commit: 545e57d3e3]
2023-11-14 11:56:43 -05:00
Deepak Mewar dbc139a8b4 another set of esmi python wrappers updated to amdsmi python library
Change-Id: I33557b9021ecfdab76daaf65ad63f624115aa322


[ROCm/amdsmi commit: 14c50c9b4e]
2023-11-10 15:50:42 -05:00
Deepak Mewar 1601835a76 Updated another set of esmi python wrappers to amdsmi python library
Change-Id: Ie8b1aacfd0e7923cf608b0f03f48874b16e5aa0d


[ROCm/amdsmi commit: d4f053b527]
2023-11-07 07:28:48 -05:00
Deepak Mewar 5845c75e51 Updated esmi python wrappers to amdsmi python library
Change-Id: Icf2576926d3649929d2aa580b476a013204daf95


[ROCm/amdsmi commit: 6d46e20598]
2023-11-03 04:58:19 -04:00
Maisam Arif 7dc9618e77 SWDEV-403153 - Fixed eeprom hex casting
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I46531bd9ae60947539d4b95e5b21c7008ec0b3ea


[ROCm/amdsmi commit: 8b0b0490d1]
2023-11-02 15:34:06 -04:00
Maisam Arif 517ea90c12 SWDEV-426130 - Fixed Decimal Firmwares & Readme
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I850105561be91a2c2581106371af9fab1fd8fa98


[ROCm/amdsmi commit: 312732aa8a]
2023-11-02 15:34:06 -04:00
Maisam Arif cf0098c16f SWDEV-417117 - Added Cache Flags
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I78836ba5f87c2859b82f17a7564df6f99ac77ad7


[ROCm/amdsmi commit: aeef485034]
2023-11-02 05:38:44 -05:00
Maisam Arif b14d1ca543 SWDEV-410051 - Updates to board_info struct & CLI
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I8735d8965140ee5da0c35106b388af1dca87ec71


[ROCm/amdsmi commit: 2b4637ff9f]
2023-10-27 16:52:56 -05:00
Maisam Arif a5e1a85a43 Type & import clean-up
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ie09b583a0eb930afc429904e84fe46433ef33b3b


[ROCm/amdsmi commit: 741839d8e4]
2023-10-27 17:48:43 -04:00
Maisam Arif c1fb7e3dc3 Fixed firmware version from int to hex
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ie09c5b14f108f1eb5c3fd60fe37fb731173a9478


[ROCm/amdsmi commit: 6d59e9b71d]
2023-10-27 17:48:27 -04:00
Maisam Arif 3588704718 Enabled events subcommand to non-virtual systems
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ied56ef015bba606b1bca1a1108a237d0c1cc7fdb


[ROCm/amdsmi commit: ec24a0f66d]
2023-10-16 16:52:47 -05:00
Deepak Mewar e114a2ad27 esmi python wrappers for amdsmi python library
Change-Id: I51be2e4ce76f1e99820c50d4722de4e5deb87ceb


[ROCm/amdsmi commit: 806652a697]
2023-10-16 17:49:27 -04:00
Deepak Mewar b734f45231 Added another set of esmi python wrappers for
amdsmi python library

Change-Id: Ib49efe21d4909c3e4a011eddcd96f587a9b6570c


[ROCm/amdsmi commit: e6d82912e3]
2023-10-16 17:49:21 -04:00
Maisam Arif 7ada0bba5a Fixed ecc_correction_schema call in python interface
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I16e2bf566342a8272c07f30b8db4df4acb9c3649


[ROCm/amdsmi commit: 2076b2a736]
2023-10-13 21:31:17 -05:00
Maisam Arif e77abc0a1d Added memory & compute partitions to amd-smi lib
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: If3acea6ad281298f1f05785b2e6d8e70fae8d89b


[ROCm/amdsmi commit: 1f8d9cb9ef]
2023-10-13 21:47:59 -04:00
Maisam Arif 1c23b45a38 Updated interface & wrapper to work with ras_feature
Change-Id: Iadd8c5e736f4dad2662dda2c9587454f00197474
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: f0e6f34bfe]
2023-10-13 02:06:14 -04:00
Maisam Arif 1dd2942136 Added static --cache to cli tool
Change-Id: I494d29aba7915a0b8815036977b2636a2da5264e
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: 66eb3de5e4]
2023-10-12 10:13:56 -04:00
Maisam Arif d7399f690b Placeholders for new ras values
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I66cea253b19a5029172af0a3f4dd2f993c13b309
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: c6e54e09e7]
2023-10-11 19:39:38 -04:00
Maisam Arif 6a15f48028 Added xgmi physical id to static --asic
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I9e9f5929da635d22495aa394f2a9e5e6ce441706


[ROCm/amdsmi commit: 262b5b0254]
2023-10-11 13:28:27 -05:00
Maisam Arif 401d3f229c Added driver_name to amdsmi_cli tool
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I8f3d52e0b23298443b2b16afec418cbbbc5f77e0


[ROCm/amdsmi commit: 572bf563d1]
2023-10-04 08:54:19 -04:00
Maisam Arif a489c16044 Adjust static --board output to be inline with Host
Change-Id: Ia6dcca5be077ef9e04533b632628a62633b63556
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: b58665e77b]
2023-10-02 09:30:25 -04:00
Bill(Shuzhou) Liu 90c9c8de4e Get PCIe slot type
Add API to get the PCIe slot type.

Change-Id: If6894af53894c524d61c7586c59768541bbf0ac6


[ROCm/amdsmi commit: 9eccf20f0c]
2023-09-27 23:31:09 -04:00
Maisam Arif fb0440d493 Added sleep state to amd-smi metric --clock
Change-Id: Idb5fbc84a787ef1affdf0449b6dd77ab6e50e91d
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: 95337c88fc]
2023-09-26 15:21:25 -05:00
Maisam Arif f87489b735 Updated metric --xgmi_err to display string instead of object
Change-Id: I4f67384cdf65b5fa3cb04e1012ba79a53ae72cd7
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: 9c314dfd5c]
2023-09-25 02:02:22 -05:00