Commit Graph

63 Commits

Author SHA1 Message Date
Maisam Arif 6d0adab4fd Added is_clock_locked placeholder
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ia8750b4233bf37c4eab81b7815fd9aaebe3f1ca3
2023-09-23 23:01:58 -05:00
Maisam Arif 7b28fdf9c5 Corrected voltage output to N/A in metric --power
Change-Id: I0e8da0821196602842d35841470e36b91ba31ce3
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-09-23 23:57:22 -04:00
Maisam Arif 4ce4b7fda1 Changed pcie_slot_type to slot_type
Change-Id: Iab63397b049bbed4e0e52357c3eff7c1bcfe9590
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-09-23 23:53:25 -04:00
Maisam Arif 93c5112cdf Corrected mem_usage command
Dropped redundant fb_usage argument

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I85d72683085270415f735e9817e359baf6b36773
2023-09-23 23:53:05 -04:00
Maisam Arif 6dcfd4a815 Added vram info to static --vram
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I48f6875d5131440848ef6f5875c6d385fee871e3
2023-09-23 23:52:50 -04:00
Maisam Arif def17accbe Corrected voltage_read call in amdsmi_get_power_info
Change-Id: I4097b3ac5699360d4e91c8b8254431b6b6768c3e
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-09-21 23:41:38 -05:00
Maisam Arif e4fac177c1 SWDEV-417124 - Implement Power Management
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ib0d37038e49cec61d5415076a46a5666d95dcea2
2023-09-21 14:23:26 -05:00
Maisam Arif d8de6d3375 Added debug logging for amdsmi library calls
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ifb3692f50a2aaa7691b9c7afb89dd89799577e48
2023-09-19 13:00:57 -04:00
Maisam Arif fab2184e71 Changed discovery to list
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ib712a182e839343472f4c6fd87a34d045b63f619
2023-09-19 12:00:49 -05:00
Maisam Arif 93c54f52cd Added slowdown temperature metrics
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ibeb7968c4fb352ff215a617908e0c0abc33a38a4
2023-09-18 18:11:55 -05:00
Maisam Arif df9e05a4b1 Adjusted power limits
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I8586c4a6c9d0a6a05003013c702f88cc42d05114
2023-09-18 18:11:39 -05:00
Maisam Arif 1394f74b92 Fixed metric temp try catch
Fixed tabbing
	Fixed gpu is to gpu ==
	Fixed metric temperature calls to do as much as possible and not
	error when one metric is not supported

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I360c380ad18581ab2e0cc8f7d1109d3da2556907
2023-09-14 18:44:00 -04:00
Maisam Arif 42b030def3 Spell check bandwith to bandwidth
Change-Id: Icfb3b2398fe0590dbab6e531c8ec1cdceebe658d
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-09-14 18:43:49 -04:00
Maisam Arif d2ef113457 SWDEV-412847 - Changed junction to hotspot
Change-Id: I7f6c1a0a77e6a09d2a3e831463cf03e35266bf40
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-09-14 17:43:26 -05:00
Maisam Arif cc4417d301 Removed replay_count from Virtual OS's
Change-Id: I5abb12d32e756f954f7e36595979bb8f1cbe5ad9
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-08-30 10:43:35 -05:00
Maisam Arif c8f8734bc6 Updated amdsmi lib version call
Change-Id: Ibdf978760f0cd9126897a6a93b3c07ed34ee05cd
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-08-03 23:45:39 -05:00
Maisam Arif 38598c2ec5 Corrected bad_pages error checking
Change-Id: I9d00407987b28fcec523dfde7cab8db830c41174
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-08-03 00:43:14 -04:00
Maisam Arif d839192f21 SWDEV-412848 - Added power limit for parity with Host
Change-Id: Icb67a3642502107394bb525fcf6efb9e1830bbbd
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-08-03 00:43:09 -04:00
Maisam Arif 07a8287a18 SWDEV-412847 - Added Hotspot temp and edge limit checks
Change-Id: If549ee45214e784a28a3420f60bae7f4ae1a1022
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-08-03 00:43:05 -04:00
Maisam Arif 82ac307f9b Added Gen type to pcie info
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Icaa050a6f53fad608ed0353b2a0cbea33dee1dd2
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-08-02 23:42:48 -05:00
Maisam Arif 6be5a69ef8 Checks before adding Units to output
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ib3f2cd8595693dd033a69523ed69d5807dc83346
2023-08-01 14:28:51 -04:00
Maisam Arif d5ad387252 Removed cmdline options
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I3f98829e988468d657f280db6765f2f5e28ff5f1
2023-08-01 14:28:40 -04:00
Maisam Arif ca59a60a9a Updated Versioning
corrected to amd-smi version from rocm-smi version
	Added newline characters in the gpu choices
	Updated cli versioning to 23.2.1.0 to match amd-smi

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ia6db3a281e2349e05a09209bdcfdfa5ac48e3a86
2023-08-01 14:28:27 -04:00
Maisam Arif d705801adf ASIC serial updates
Corrected asic serial fallback to use rsmi's unique id
	Removed product serial due to duplication

Change-Id: Ib4e9ac00d2bf31ccbc35060bc84f7e79e5332d37
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-08-01 14:28:19 -04:00
Bill(Shuzhou) Liu 55bf9cbe13 Change API to get the driver date
Support the driver date from libdrm.

Change-Id: I88e694732b538220e11fdb4029712bb5a6f44380
2023-07-21 08:28:06 -05:00
Marko Oblak 9077411fcb SWDEV-410048 - Remove --caps from tool
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: I3b71c8210401cbbe28905371febe084a4fdaf4ba
2023-07-20 15:56:53 +02:00
Vukasin Nedeljkovic 59b2b7bea4 SWDEV-407430 [AMDSMI][Tool][Linux][BM] PCIE unit update
Signed-off-by: Vukasin Nedeljkovic <Vukasin.Nedeljkovic@amd.com>
Change-Id: I7615cd1fcf504719e1032076bb836964fc44f4e0
2023-07-12 08:36:29 +02:00
Vukasin Nedeljkovic 3f0441a74c SWDEV-407428 [AMDSMI][Tool][Linux][BM] static update to HEX
Signed-off-by: Vukasin Nedeljkovic <Vukasin.Nedeljkovic@amd.com>
Change-Id: I4db506a2467b460c9c635e4e2790dd1e8fd0a196
2023-07-11 13:05:41 +02:00
Maisam Arif 36671450f0 Corrected temp_vram_limit variable reference
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: Ic54cc62a8ac1ea9c63b2270810d95e6589059160
2023-06-29 16:34:41 -04:00
Maisam Arif b6d7570bd4 Changed RPM dependencies to suggestions
Change-Id: I3d2918cc1f86733aaee41f86e1619bd22316398b
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
2023-06-22 11:44:28 -05:00
Maisam Arif 0a1e486214 CMAKE: Changed dependency to suggestion for centos
Updated pyproject.toml to depend on clang via pip
	Changed python38 dependency to a suggestion for rpm builds
Change-Id: Idf3bd94aafaf715f600dead0a3a9cb95cff29368
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
2023-06-15 00:51:45 -05:00
Maisam Arif 9cebc93cee Cleaned up APIs
Change-Id: I93487e01d7126bdfa77439b571df927a6af3bb70
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
2023-06-07 10:48:37 -04:00
Sam Wu 7104b6fe31 Sphinx Documentation Setup
Added README links to Python library and CLI tool
Get correct version number from header file
Updated base README with sphinx documentation steps

Change-Id: I60eb3d37d77dab4ff7c8334f94b9c1804edb524b
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
2023-06-07 09:47:37 -05:00
Dalibor Stanisavljevic 8dbc1d7d57 Align header changes with other platforms
Change-Id: I366e57310e0504855692626e2b2014bea235ed6b
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2023-06-02 12:28:09 +02:00
Dalibor Stanisavljevic 1185397d90 Updated python api to match header changes
Change-Id: I02f6dde54f50d1d66f8c4a8777f849bf63b50c85
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2023-06-01 09:40:24 -04:00
Maisam Arif 7477562374 Updated AMD-SMI README install instructions
Change-Id: I9c914e4fb5fbe22e1ff449408beafc250f5b4bf7
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
2023-05-29 16:38:26 -05:00
Maisam Arif 60b2b7fb83 Corrected amdsmi_interface api call & versioning
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I3a80716cb544ab0512073b34702b7fa132767668
2023-05-25 09:53:57 -05:00
Maisam Arif 72638192f7 Updated AMD-SMI README.md with CLI install instructions
Updated amd-smi-lib README with CLI install instructions
	Updated version of the python interface and the CLI tool
		to 0.1.0 due to the ESMI header changes

Change-Id: If175cdcb9ce0352b6e7e7ce4cc0940a80c11501b
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
2023-05-24 10:07:19 -05:00
Maisam Arif da50f4f078 AMD-SMI-CLI - Packaging updates
Added fallback in amdsmi_init.py to access /opt/rocm/share/amd_smi
        if python package is not installed
    Made libamd_smi.so detection more reliable
    Added PyYaml dependency to pyproject.toml
    Added python3-clang dependency in CMakeLists
    Updated python3 version dependency in CMakeLists
    Update Readme
    Added Release Notes

Change-Id: Ie3b85fde7563dd84dce499f229aac1f94bcc2989
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
2023-05-23 10:32:08 -05:00
Maisam Arif 2f18ec7539 SWDEV-396262 - Fixed units for AMDSMI CLI process
Change-Id: Ib85cfb9fe313cfc2eb5cd1d1437426786a99abd9
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
2023-05-23 10:31:50 -05:00
Maisam Arif fe64f426d8 SWDEV-397381 - Corrected ECC per block reporting
Change-Id: If666e2f1a4b13dd08b6a19f08f3c01297515712c
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
2023-05-23 10:31:06 -05:00
Maisam Arif 6b8fe4a377 SWDEV-399063 - Fixed process metrics showing incorrectly for all gpus
Change-Id: I4ae576f34472c3dbbfa0b136f55ce996834323ad
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
2023-05-23 10:25:05 -05:00
Maisam Arif 01bd64c718 AMD-SMI-CLI - Updated amdsmi_interface calls to new headers
Change-Id: I031f08c912f2cc77bba3a6f4356b5121072fb71e
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
2023-05-22 08:35:22 -05:00
Dalibor Stanisavljevic 1bc1d431d8 SWDEV-384793 - Clean up API
Change-Id: I441b315d32df59a454e06d521e5ca8b2c229451a
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2023-05-19 16:40:26 +02:00
Dalibor Stanisavljevic ca7f965018 SWDEV-384797 - Renamed measure to info
Change-Id: I2397ed189fe0171ed29bd6440f8fa0bb210b95a5
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2023-05-17 05:10:58 -04:00
Dalibor Stanisavljevic 6cce103fba SWDEV-397054 - Added ecc info (accummulated number of ECC errors)
Change-Id: I75f6fc402d8c62046c4ccd581347360343aea0e4
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2023-05-09 10:48:02 +02:00
Dalibor Stanisavljevic b36f040bf9 SWDEV-397055 - Remove mm_ip_list from caps
Change-Id: Ia4f337d24744fc545e8336705fe7a2b2d9b5f8db
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2023-04-28 03:54:24 -04:00
Dalibor Stanisavljevic f8e7d93a69 SWDEV-392029 - Added support for guest
If one API fail, tool will work properly for all other arguments

Change-Id: I7b996e6da87873efb9d3210398971ea22203ac44
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2023-04-25 10:17:13 -04:00
Maisam Arif 515adfb61f SWDEV-392033 - Topology gpu index fix
Fixed Topology csv output
	Added README.md for amd-smi

Change-Id: I05819b883af01c19383ee4f220923798fc7453e2
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
2023-04-25 09:16:17 -05:00
Dalibor Stanisavljevic cd15cf1cf4 SWDEV-392029 - Implemented platform detection
Change-Id: Ieefccf65c35f17ffa17761139a0ae56ef5438341
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2023-04-24 14:57:42 +02:00