Graf commitů

895 Commity

Autor SHA1 Zpráva Datum
Maisam Arif 262b5b0254 Added xgmi physical id to static --asic
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I9e9f5929da635d22495aa394f2a9e5e6ce441706
2023-10-11 13:28:27 -05:00
Maisam Arif b46ae13011 Corrected total ecc counts
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I48b85d6476b829604044daab420883f94551abe2
2023-10-10 13:23:45 -05:00
Maisam Arif b47d028da2 Removed uncountable blocks from metric --ecc-block
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Iab8ed3f80c8ebd7ffd3bfcf197e1a0b03782b498
2023-10-10 10:32:20 -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
Deepak Mewar 192fb538be added metric table wrapper APIS & test code
Change-Id: I24207b3c32d7294337140a1f5108b81f3bf33580
2023-10-10 00:03:11 -04:00
Deepak Mewar 7a2f3c8d56 Updated the sample test for esmi wrappers
Change-Id: Ie382b84a0aed4ae40f4befa0e922c19ae8a316c8
2023-10-10 00:03:11 -04:00
Maisam Arif 4c66db6b03 Updated human readable output for numa affinity
Change-Id: Id9767100061bd6e0f3b42cd2af80da7b588276b6
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-10-10 00:00:09 -04:00
Maisam Arif 7ce46dcc24 Updated bad-page output error handling
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ibcf4129d1b1cbe0f3df1d4751c61f6a318bb1323
2023-10-09 17:41:08 -05:00
Maisam Arif 12882e7e39 Updated metrics --clock to include vclk0 & vclk1
Change-Id: I3b5df9da603fbd6be52a3d443ba7e0fe1a69fe6e
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-10-09 17:41:08 -05:00
Maisam Arif 3f6d677eb6 SWDEV-418008 - Added placeholders for pcie metric info
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I7975a6fdda3a480866c39253a33723e154a841ce
2023-10-09 17:41:08 -05:00
Maisam Arif 816a020873 Enabled static --board for guest systems
Change-Id: I80e496139e20d8e328a6669f59de8922484c4315
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-10-09 17:41:08 -05:00
Maisam Arif 02b4b67ca0 Added memory information to Guest
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I3e6b4bba3746c9498d34e6d2840461489eb3bc61
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-10-09 17:41:08 -05:00
Maisam Arif 669b9eaedd Updated static --bus output building
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I8f75cfcf1dae96d567ad86bda1467f1cb54e744c
2023-10-09 17:41:08 -05: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 3d3759061a Merge remote-tracking branch 'rocmsmi/amd-staging' into amd-dev
Change-Id: I6037383a3efa777cc281a992fd9aa11d8e9ced28
2023-10-04 19:11:59 -05:00
Galantsev, Dmitrii e962d3b281 TESTS - Don't fail on TestFrequenciesRead
- Return from freq_output function early if clock is unsupported
- Right-align frequencies

Change-Id: I799c9351dac8a5be161bc9243cd3816539728357
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2023-10-04 18:24:56 -05:00
Maisam Arif 572bf563d1 Added driver_name to amdsmi_cli tool
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I8f3d52e0b23298443b2b16afec418cbbbc5f77e0
2023-10-04 08:54:19 -04:00
Galantsev, Dmitrii 6c8767a69a TESTS - Disable same tests as in rocm-smi
Change-Id: I2587baf8a76e4e3a54880e73941b1d973440e7d3
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2023-10-03 09:58:58 -04:00
Galantsev, Dmitrii d862bee754 Add --version to CLI
Change-Id: Id2a8f10f544ed04e874db773820534eddd73f55d
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2023-10-02 17:57:02 -05:00
Bill(Shuzhou) Liu d665157cd1 rocm-smi shows wrong fwinfo
Add new fw block into the rocm-smi tool.

Change-Id: Id5c7ccc2fc491f7e5d0390aeb4c6f81fd12fa644
2023-10-02 16:28:31 -04:00
Maisam Arif fadf1b6cc9 SWDEV-410230 - Added slot_type to amd-smi static --bus
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I2006a3525a8aa9091bf54501461d364f7237f00f
2023-10-02 10:15:34 -04:00
Maisam Arif b58665e77b Adjust static --board output to be inline with Host
Change-Id: Ia6dcca5be077ef9e04533b632628a62633b63556
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-10-02 09:30:25 -04:00
Maisam Arif f7d631b9cd Sync commands w/ Host
Added ucode as alias to firmware
	Changed pcie_width to pcie_lanes

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ia95a13d937c8e1b7bf092b5001de38ea9c008606
2023-10-02 09:30:25 -04:00
Ori Messinger aa89f2e125 ROCm SMI CLI: Add Missing Firmware Blocks
The purpose of this patch is to add the following missing firmware
blocks to the SMI CLI:
-RSMI_FW_BLOCK_MES
-RSMI_FW_BLOCK_MES_KIQ

Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Change-Id: If9cabdc60ffcf08f27c9e6bdc20e8a26b192a738
2023-09-29 18:13:16 -04:00
Galantsev, Dmitrii 871fae8b25 Upgrade to CXX-17 gtest-1.14 and cmake-3.14
Change-Id: I3bceb90f79235a9c0616c5d7ef9e37e458ffdce6
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2023-09-29 13:18:48 -04:00
Galantsev, Dmitrii cf6bcbbb27 Upgrade to CXX-17 gtest-1.14 and cmake-3.14
Also change the TARGET from amd_smi_libraries to rocm_smi_libraries
This helps reduce confusion between rocm-smi and amd-smi

Change-Id: Ie54cedd831ba24bd9afc341ad15b7e8e20732059
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2023-09-28 12:44:51 -05:00
Bill(Shuzhou) Liu 9eccf20f0c Get PCIe slot type
Add API to get the PCIe slot type.

Change-Id: If6894af53894c524d61c7586c59768541bbf0ac6
2023-09-27 23:31:09 -04:00
Maisam Arif 3fa96a9e02 Updated Driver Error Logging & Exceptions
Change-Id: Idd14904b33e82e4cb5d9f84c75978fe686a9b603
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-09-27 19:24:55 -04:00
Bill(Shuzhou) Liu 016dbf8aa3 Do not print the library name if in default folder
The rocm-smi python tool will not print the library name on default
folder.

Change-Id: I203a872ebe2fc994766a2628049ca50c8bfa7120
2023-09-27 12:14:33 -04:00
Maisam Arif af4f954ae8 Made driver N/A population consistent
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I4bd6d6f9729e62447ad765acc4908f124046e861
2023-09-26 19:13:31 -05:00
Maisam Arif 95337c88fc Added sleep state to amd-smi metric --clock
Change-Id: Idb5fbc84a787ef1affdf0449b6dd77ab6e50e91d
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-09-26 15:21:25 -05: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 8eb9f892d3 Fix out-of-bounds array access for --showvc
get_od_clk_volt_info assumed the size of the file instead of checking
the length. This caused out-of-bounds array element access.

Change-Id: Ibda8f0c3a6d1623d48964641ae5ef610d2072e94
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2023-09-26 13:59:37 -05:00
Maisam Arif 5131e61ce4 Removed comma from vendor_name for output formatting
Change-Id: Ief4b9c2b68cbf16cb994d78bc3ae3f4fe702fd70
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-09-25 14:57:44 -05:00
Galantsev, Dmitrii 21dcf6d66c SWDEV-423796 - Resolve stack smashing issue
Inconsistency between struct fields caused stack smashing

Change-Id: Ib06d67723e062d4306420854ba7ab45fb252ffe3
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2023-09-25 11:24:55 -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 ac8bde5978 CMAKE - Fix --break-system-packages
Change-Id: I4a46859124018b6574d2b53e6ef9e72482784f39
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2023-09-25 02:03:27 -05:00
Maisam Arif 25b055014d Updated tool & lib versions & README.md
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ic41a36bcfa988ce9c8304157593012752857e919
2023-09-25 02:02:22 -05:00
Maisam Arif 053c5d0c53 Fixed vram_type reference to vram_vendor
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I3519992f1cc59c411c2b045f0532be4de63090a2
2023-09-25 02:02:22 -05:00
Maisam Arif 5ab82ad4e6 Added N/A for mixed gpu values with --csv
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Iab730ae61d2c0fb08785e90f05f83bab755b5d94
2023-09-25 02:02:22 -05:00
Maisam Arif b90dff83ea Remove adding .json, .csv, & .txt file extensions
Change-Id: I35172115932a1363c23aedf877151e87b669bca4
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-09-25 02:02:22 -05:00
Maisam Arif 9c314dfd5c Updated metric --xgmi_err to display string instead of object
Change-Id: I4f67384cdf65b5fa3cb04e1012ba79a53ae72cd7
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-09-25 02:02:22 -05:00
Maisam Arif 9281bfbbfa Fixed log handling and exceptions
Updated exceptions
	Added driver load exception
	Fixed logging override by removing previous log handlers
	Updated debug output to use gpu_id vs C-pointer
	Removed AmdSmiRetcode class in favor of using the wrapper
directly
	Added traceback limits for clean errors (Not in debug)

Change-Id: Ia02bb842b8f60d9ab4b68b7f8b1afda30b1c021c
Signed-off-by: Maisam Arif <maisarif@amd.com>
2023-09-25 01:49:35 -05:00
Galantsev, Dmitrii db3e119f7d Remove old gpuv-smi symlink
Change-Id: I39d9aa96eb8ed2dd6a4a222c3c4da9ff2b2de007
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2023-09-25 00:52:17 -05:00
Charis Poag f078375350 Add Current (Instant) Socket Power
* Updates:
    - rocm_smi_logger:
      General cleanup &
      Aligned to cpplint rules for usage
    - rocm_smi_monitor:
      Fixed MonitorTypes
      from not displaying properly in logs
      & Added socket power label + current
      socket power MonitorTypes
    - rocm_smi API:
      Added rsmi_dev_current_socket_power_get API
    - rocm_smi CLI:
      General cleanup,
      Concise info now displays device data
      in variable width (see printLogSpacer's
      new field),
      printLogSpacer now as an adjustable
      variable that overrides appWidth,
      Added Socket Power to base rocm-smi +
      --showpower CLI calls,
      --showpower & base rocm-smi CLI defaults
      to printing socket power (if not available,
      displays average power)
    - Cleaned up temp label references
    - power_read gtests:
      Added current socket power to testing

Change-Id: Ica57e6f98ad96e2584e7c7955e188f68d2dab89d
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
2023-09-25 01:38:54 -04:00
Galantsev, Dmitrii 3d40c4bb2c SWDEV-422836 - Add sleep frequency support
Change-Id: I0bde403b010bf036ce44ed0600cc7eb03742c6b6
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2023-09-25 01:38:27 -04:00
Ori Messinger d44a6ef523 ROCm SMI LIB: Add Missing Firmware Blocks
The purpose of this patch is to add the following missing firmware
blocks to the SMI LIB:
-RSMI_FW_BLOCK_MES
-RSMI_FW_BLOCK_MES_KIQ

Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Change-Id: I5d4d37d883878dd02ef8533d4eb8891d54d70630
2023-09-25 01:37:38 -04:00
Bill(Shuzhou) Liu 2247c4b46c Change the python tool id output label
Change the label from GPU to Device as we call rsmi_dev_id_get().

Change-Id: I8ffe3673d434e5291ebd5cc909afb7d18154ecb6
2023-09-25 01:31:04 -04:00
Bill(Shuzhou) Liu 85df5676d4 Handle the memory frequency with only one line
Change the code to handle the memory frequency if it is only one line.

Change-Id: I09e6ee78a2b9c12c861243dc89296e4e7862da49
2023-09-25 01:30:56 -04:00